From 3ab62d09be9f033ba546d3d512c90e59b7bbff41 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Uwe=20K=C3=B6cher?= Date: Wed, 9 Jul 2014 13:21:53 +0200 Subject: [PATCH] Added output for compiler variables CC,CXX,FC,FF and warning printout if they are not set --- candi.sh | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/candi.sh b/candi.sh index 257d660..dbf700c 100755 --- a/candi.sh +++ b/candi.sh @@ -480,6 +480,33 @@ if [ $# -eq 0 ]; then cecho ${GOOD} "$(module list)" echo "-------------------------------------------------------------------------------" fi + + echo "-------------------------------------------------------------------------------" + echo "Compiler Variables:" + if [ -n "$CC" ]; then + cecho ${WARN} "CC = $(which $CC)" + else + cecho ${BAD} "CC variable not set. Please set it with $ export CC = " + fi + + if [ -n "$CXX" ]; then + cecho ${WARN} "CXX = $(which $CXX)" + else + cecho ${BAD} "CXX variable not set. Please set it with $ export CXX = " + fi + + if [ -n "$FC" ]; then + cecho ${WARN} "FC = $(which $FC)" + else + cecho ${BAD} "FC variable not set. Please set it with $ export FC = " + fi + + if [ -n "$FF" ]; then + cecho ${WARN} "FF = $(which $FF)" + else + cecho ${BAD} "FF variable not set. Please set it with $ export FF = " + fi + echo "-------------------------------------------------------------------------------" echo "" cecho ${GOOD} "Once ready, hit enter to continue!" -- 2.39.5