# Don't pass CXXFLAGS to the following CXX command as some
# of them can't be specified along with '-v'.
- cc_version=["`$CXX -v 2>&1 </dev/null |grep 'gcc version' |\
- sed 's/.*gcc version \([-a-z0-9\.]*\).*/\1/'`"]
+ cc_version=["`$CXX -v 2>&1 </dev/null |grep ' version' |\
+ sed 's/.* version \([-a-z0-9\.]*\).*/\1/'`"]
Workaround used for 'configure.ac' (not a real fix!):
=== modified file 'configure.ac'
--- configure.ac 2012-04-14 20:28:04 +0000
+++ configure.ac 2012-04-30 17:56:22 +0000
@@ -112,8 +112,8 @@
# Don't pass CXXFLAGS to the following CXX command as some 9\.]*\) .*/\1/' `"] 9\.]*\) .*/\1/' `"]
# of them can't be specified along with '-v'.
- cc_version=["`$CXX -v 2>&1 </dev/null |grep 'gcc version' |\
- sed 's/.*gcc version \([-a-z0-
+ cc_version=["`$CXX -v 2>&1 </dev/null |grep ' version' |\
+ sed 's/.* version \([-a-z0-
AC_MSG_ RESULT( [$cc_version] )