Commit 9f409eed authored by Uwe Schulzweida's avatar Uwe Schulzweida
Browse files

configure.ac: Check compiler version with full path of the compiler.

parent c9ab57a2
Pipeline #3553 passed with stages
in 15 minutes and 23 seconds
......@@ -83,34 +83,34 @@ AC_CHECK_FUNCS(getrlimit)
# Check compiler version
case "$CXX" in
pgc*) CXX_VERSION=`$CXX -V | head -2 | tail -n 1`;;
*gcc*) CXX_VERSION=`$CXX --version | head -n 1`;;
g++*) CXX_VERSION=`$CXX --version | head -n 1`;;
clang*) CXX_VERSION=`$CXX --version | head -n 1`;;
icpc*) CXX_VERSION=`$CXX --version | head -n 1`;;
sxc*) CXX_VERSION=`$CXX -V 2>&1 | tail -n 1`;;
xlc*) CXX_VERSION=`$CXX -qversion 2>&1 | head -n 1`;;
*) CXX_VERSION=`$CXX -V 2>&1 | head -n 1 | grep -v error`;;
*pgc*) CXX_VERSION=`$CXX -V | head -2 | tail -n 1`;;
*gcc*) CXX_VERSION=`$CXX --version | head -n 1`;;
*g++*) CXX_VERSION=`$CXX --version | head -n 1`;;
*clang*) CXX_VERSION=`$CXX --version | head -n 1`;;
*icpc*) CXX_VERSION=`$CXX --version | head -n 1`;;
*sxc*) CXX_VERSION=`$CXX -V 2>&1 | tail -n 1`;;
*xlc*) CXX_VERSION=`$CXX -qversion 2>&1 | head -n 1`;;
*) CXX_VERSION=`$CXX -V 2>&1 | head -n 1 | grep -v error`;;
esac
case "$CC" in
pgc*) C_VERSION=`$CC -V | head -2 | tail -n 1`;;
*gcc*) C_VERSION=`$CC --version | head -n 1`;;
g++*) C_VERSION=`$CC --version | head -n 1`;;
clang*) C_VERSION=`$CC --version | head -n 1`;;
icc*) C_VERSION=`$CC --version | head -n 1`;;
sxc*) C_VERSION=`$CC -V 2>&1 | tail -n 1`;;
xlc*) C_VERSION=`$CC -qversion 2>&1 | head -n 1`;;
*) C_VERSION=`$CC -V 2>&1 | head -n 1 | grep -v error`;;
*pgc*) C_VERSION=`$CC -V | head -2 | tail -n 1`;;
*gcc*) C_VERSION=`$CC --version | head -n 1`;;
*g++*) C_VERSION=`$CC --version | head -n 1`;;
*clang*) C_VERSION=`$CC --version | head -n 1`;;
*icc*) C_VERSION=`$CC --version | head -n 1`;;
*sxc*) C_VERSION=`$CC -V 2>&1 | tail -n 1`;;
*xlc*) C_VERSION=`$CC -qversion 2>&1 | head -n 1`;;
*) C_VERSION=`$CC -V 2>&1 | head -n 1 | grep -v error`;;
esac
if test -n "$F77" ; then
case "$F77" in
pgf*) F77_VERSION=`$F77 -V | head -2 | tail -n 1`;;
gfortran*) F77_VERSION=`$F77 --version | head -n 1`;;
ifort*) F77_VERSION=`$F77 --version | head -n 1`;;
f77*) F77_VERSION=`$F77 --version | head -n 1`;;
*) F77_VERSION=`$F77 -V 2>&1 | head -n 1 | grep -v error`;;
*pgf*) F77_VERSION=`$F77 -V | head -2 | tail -n 1`;;
*gfortran*) F77_VERSION=`$F77 --version | head -n 1`;;
*ifort*) F77_VERSION=`$F77 --version | head -n 1`;;
*f77*) F77_VERSION=`$F77 --version | head -n 1`;;
*) F77_VERSION=`$F77 -V 2>&1 | head -n 1 | grep -v error`;;
esac
fi
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment