- fix CC_VERSION and CXX_VERSION for compilers that return multiple lines of

output for "--version" (e.g. gcc 3.x)
This commit is contained in:
unknown 2002-12-23 13:33:55 +01:00
parent b69d8f4a6f
commit f0a3a93741

View file

@ -130,7 +130,7 @@ AC_PROG_CXX
AC_PROG_CPP
# Print version of CC and CXX compiler (if they support --version)
CC_VERSION=`$CC --version`
CC_VERSION=`$CC --version | sed 1q`
if test $? -eq "0"
then
AC_MSG_CHECKING("C Compiler version");
@ -138,7 +138,7 @@ then
else
CC_VERSION=""
fi
CXX_VERSION=`$CXX --version`
CXX_VERSION=`$CXX --version | sed 1q`
if test $? -eq "0"
then
AC_MSG_CHECKING("C++ compiler version");