AC_PROG_GNUCPP: translate backward slashes into forward ones.
AC_HAVE_GCC: tweaked sed regexp to catch cygnus gcc snapshot
version strings (i.e., version cygnus-2.7.2...)
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 \\\< \1 \\\* 10 + \2/g' `"
+ cmd_string="`$CC -v 2>&1 | grep 'version ' | sed -e 's/.*version [^0-9]*\([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 ''
echo > conftest.c
gcc -v -E conftest.c >/dev/null 2>conftest.out
echo '/(\S+(\/|\\\\)cpp)/ && print "[$]1";' > conftest.pl
- ac_cv_gnu_cpp="`eval $PerlCmd -n conftest.pl conftest.out`"
+ ac_cv_gnu_cpp="`eval $PerlCmd -n conftest.pl conftest.out | tr '\\\' / `"
rm -fr conftest*
else
# We need to be able to invoke CPP directly, preferably