Add version printout for PGI/NVIDIA compiler
authorMartin Kroeker <martin@ruby.chemie.uni-freiburg.de>
Sat, 19 Dec 2020 21:06:56 +0000 (22:06 +0100)
committerGitHub <noreply@github.com>
Sat, 19 Dec 2020 21:06:56 +0000 (22:06 +0100)
Makefile

index 54dd3be..de0735c 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -59,6 +59,9 @@ endif
        @$(CC) --version > /dev/null 2>&1;\
        if [ $$? -eq 0 ]; then \
           cverinfo=`$(CC) --version | sed -n '1p'`; \
+          if [ -z "$${cverinfo}" ]; then \
+          cverinfo=`$(CC) --version | sed -n '2p'`; \
+          fi; \
           echo "  C compiler       ... $(C_COMPILER)  (cmd & version : $${cverinfo})";\
        else  \
           echo "  C compiler       ... $(C_COMPILER)  (command line : $(CC))";\
@@ -67,6 +70,9 @@ ifeq ($(NOFORTRAN), $(filter 0,$(NOFORTRAN)))
        @$(FC) --version > /dev/null 2>&1;\
        if [ $$? -eq 0 ]; then \
           fverinfo=`$(FC) --version | sed -n '1p'`; \
+          if [ -z "$${fverinfo}" ]; then \
+          fverinfo=`$(FC) --version | sed -n '2p'`; \
+          fi; \
           echo "  Fortran compiler ... $(F_COMPILER)  (cmd & version : $${fverinfo})";\
        else \
           echo "  Fortran compiler ... $(F_COMPILER)  (command line : $(FC))";\