diff --git a/configure b/configure index ab0a824d8..de1ad8e7e 100755 --- a/configure +++ b/configure @@ -1925,8 +1925,8 @@ linux* ) g95_version=`$f90 -v 2>&1 | grep "g95"` if test "$ifort_version" != "" then - version=`$f90 -V 2>&1 | grep -o "Version[^,]*" | - awk '{print $2}'` + version=`$f90 -V 2>&1 | grep Version | + sed 's/.*Version//' | awk '{print $1}'` if test `echo $version | sed 's/\..*//'` -lt 8 then f90_id=ifc @@ -2793,8 +2793,8 @@ linux* ) if test "$icc_version" != "" then cc_id=icc - cversion=`$cc -V 2>&1 | grep -o "Version[^,]*" | - awk '{print $2}'` + cversion=`$cc -V 2>&1 | grep Version | + sed 's/.*Version//' | awk '{print $1}'` echo "${ECHO_T}icc $cversion" elif test "$pgcc_version" != "" then diff --git a/configure.ac b/configure.ac index f5ee7b151..c7273b472 100644 --- a/configure.ac +++ b/configure.ac @@ -145,8 +145,8 @@ linux* ) g95_version=`$f90 -v 2>&1 | grep "g95"` if test "$ifort_version" != "" then - version=`$f90 -V 2>&1 | grep -o "Version[[^,]]*" | - awk '{print $2}'` + version=`$f90 -V 2>&1 | grep Version | + sed 's/.*Version//' | awk '{print $1}'` if test `echo $version | sed 's/\..*//'` -lt 8 then f90_id=ifc @@ -275,8 +275,8 @@ linux* ) if test "$icc_version" != "" then cc_id=icc - cversion=`$cc -V 2>&1 | grep -o "Version[[^,]]*" | - awk '{print $2}'` + cversion=`$cc -V 2>&1 | grep Version | + sed 's/.*Version//' | awk '{print $1}'` echo "${ECHO_T}icc $cversion" elif test "$pgcc_version" != "" then diff --git a/install/configure b/install/configure index ab0a824d8..de1ad8e7e 100755 --- a/install/configure +++ b/install/configure @@ -1925,8 +1925,8 @@ linux* ) g95_version=`$f90 -v 2>&1 | grep "g95"` if test "$ifort_version" != "" then - version=`$f90 -V 2>&1 | grep -o "Version[^,]*" | - awk '{print $2}'` + version=`$f90 -V 2>&1 | grep Version | + sed 's/.*Version//' | awk '{print $1}'` if test `echo $version | sed 's/\..*//'` -lt 8 then f90_id=ifc @@ -2793,8 +2793,8 @@ linux* ) if test "$icc_version" != "" then cc_id=icc - cversion=`$cc -V 2>&1 | grep -o "Version[^,]*" | - awk '{print $2}'` + cversion=`$cc -V 2>&1 | grep Version | + sed 's/.*Version//' | awk '{print $1}'` echo "${ECHO_T}icc $cversion" elif test "$pgcc_version" != "" then diff --git a/install/configure.ac b/install/configure.ac index f5ee7b151..c7273b472 100644 --- a/install/configure.ac +++ b/install/configure.ac @@ -145,8 +145,8 @@ linux* ) g95_version=`$f90 -v 2>&1 | grep "g95"` if test "$ifort_version" != "" then - version=`$f90 -V 2>&1 | grep -o "Version[[^,]]*" | - awk '{print $2}'` + version=`$f90 -V 2>&1 | grep Version | + sed 's/.*Version//' | awk '{print $1}'` if test `echo $version | sed 's/\..*//'` -lt 8 then f90_id=ifc @@ -275,8 +275,8 @@ linux* ) if test "$icc_version" != "" then cc_id=icc - cversion=`$cc -V 2>&1 | grep -o "Version[[^,]]*" | - awk '{print $2}'` + cversion=`$cc -V 2>&1 | grep Version | + sed 's/.*Version//' | awk '{print $1}'` echo "${ECHO_T}icc $cversion" elif test "$pgcc_version" != "" then