[project @ 1997-09-08 09:44:39 by simonm]
authorsimonm <unknown>
Mon, 8 Sep 1997 09:44:39 +0000 (09:44 +0000)
committersimonm <unknown>
Mon, 8 Sep 1997 09:44:39 +0000 (09:44 +0000)
Fix the sed string for the gcc check, it was referring to sub-regexps
that didn't exist.

aclocal.m4

index b1d177a..05e0334 100644 (file)
@@ -240,7 +240,7 @@ AC_DEFUN(AC_HAVE_GCC,
     ac_cv_have_gcc='no'
 else
 changequote(, )dnl
-    cmd_string="`$CC -v 2>&1 | grep 'version ' | sed -e 's/.*version \([0-9][0-9]*\)\.\([0-9][0-9]*\).*/expr 20 \\\< \2 \\\* 10 + \3/g' `"
+    cmd_string="`$CC -v 2>&1 | grep 'version ' | sed -e 's/.*version \([0-9][0-9]*\)\.\([0-9][0-9]*\).*/expr 20 \\\< \1 \\\* 10 + \2/g' `"
 changequote([, ])dnl
     if test `eval $cmd_string 2>/dev/null` != "1"; then
        echo ''