changeset 15168:66dcad99b55e

configure.ac: Correct GCC_VERSION test to return only version number and no other text. * configure.ac: Correct GCC_VERSION test to return only version number and no other text.
author Rik <rik@octave.org>
date Mon, 13 Aug 2012 14:06:47 -0700
parents 1c711a646fa7
children 6242904370bd
files configure.ac
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/configure.ac	Mon Aug 13 14:04:26 2012 -0700
+++ b/configure.ac	Mon Aug 13 14:06:47 2012 -0700
@@ -284,7 +284,8 @@
 GCC_VERSION=
 if test "$GCC" = yes; then
   gcc_version=`$CC -v 2>&1 | grep "^.*gcc version" | \
-    sed -e 's/^.*g.. version *//' -e 's/cygnus-//' -e 's/egcs-//'`
+    sed -e 's/^.*g.. version *//' -e 's/cygnus-//' -e 's/egcs-//' -e 's/ .*//'`
+
   case "$gcc_version" in
     [12].*)
       warn_gcc_version="gcc version $gcc_version is likely to cause problems"