]> https://gitweb.dealii.org/ - candi.git/commitdiff
Added an additional output line, if compiler variables are not set
authorUwe Köcher <koecher@hsu-hamburg.de>
Thu, 10 Jul 2014 12:18:02 +0000 (14:18 +0200)
committerUwe Köcher <koecher@hsu-hamburg.de>
Thu, 10 Jul 2014 12:18:02 +0000 (14:18 +0200)
candi.sh

index dbf700c3e9660b19c5baa2868dc630d80dc69671..ae01ebb6d93562aa9737c09080bdfb47c26d1770 100755 (executable)
--- a/candi.sh
+++ b/candi.sh
@@ -506,6 +506,11 @@ if [ $# -eq 0 ]; then
     else
         cecho ${BAD} "FF  variable not set. Please set it with $ export FF  = <Fortran 77 compiler>"
     fi
+    
+    if [ -z "$CC" ] || [ -z "$CXX" ] || [ -z "$FC" ] || [ -z "$FF" ]; then
+        cecho ${BAD} "One or multiple compiler variables (CC,CXX,FC,FF) are not set."
+        cecho ${WARN} "It is strongly recommended to set them to guarantee the same compilers for all dependencies."
+    fi
     echo "-------------------------------------------------------------------------------"
     
     echo ""

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.