# HG changeset patch # User Gerd Moellmann # Date 982935133 0 # Node ID 4a730977cad13288f1e57cab949d871a4c752cc3 # Parent f98c16e68579172a316b5015c7347c69014bd1ac *** empty log message *** diff -r f98c16e68579 -r 4a730977cad1 ChangeLog --- a/ChangeLog Fri Feb 23 13:31:40 2001 +0000 +++ b/ChangeLog Fri Feb 23 13:32:13 2001 +0000 @@ -1,3 +1,9 @@ +2001-02-23 Kenichi Handa + + * configure.in: Use AC_EGREP_CPP to check if the C preprocessor + converts `..' to `. .'. If it converts, set CPP_NEED_TRADITIONAL + to `yes'. Later in AC_OUTPUT, check this variable. + 2001-02-09 Dave Love * AUTHORS: Updated. diff -r f98c16e68579 -r 4a730977cad1 configure --- a/configure Fri Feb 23 13:31:40 2001 +0000 +++ b/configure Fri Feb 23 13:32:13 2001 +0000 @@ -8866,6 +8866,27 @@ test "${exec_prefix}" != NONE && exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'` +## Check if the C preprocessor will convert `..' to `. .'. If so, set +## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile +## from Makefile.c can correctly provide the arg `-traditional' to the +## C preprocessor. + +cat > conftest.$ac_ext <&5 | + egrep "yes..yes" >/dev/null 2>&1; then + rm -rf conftest* + CPP_NEED_TRADITIONAL=no +else + rm -rf conftest* + CPP_NEED_TRADITIONAL=yes +fi +rm -f conftest* + + trap '' 1 2 15 cat > confcache <<\EOF # This file is a shell script that caches the results of configure @@ -9253,7 +9274,7 @@ EOF cat >> $CONFIG_STATUS <> $CONFIG_STATUS <<\EOF @@ -9284,7 +9305,7 @@ # As of 2000-11-19, newest development versions of GNU cpp preprocess # `..' to `. .' unless invoked with -traditional -if test "x$GCC" = xyes && test "x$NON_GNU_CPP" = x; then +if test "x$GCC" = xyes && test "x$CPP_NEED_TRADITIONAL" = xyes; then CPPFLAGS="$CPPFLAGS -traditional" fi