From: David MacKenzie Date: Fri, 26 Aug 1994 04:59:56 +0000 (+0000) Subject: CPP safety test X-Git-Tag: fsf-origin~514 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=84230722a954c957a9cce09b06f2c8e235e6fa55;p=thirdparty%2Fautoconf.git CPP safety test --- diff --git a/acspecific.m4 b/acspecific.m4 index 887da666d..93fbcda86 100644 --- a/acspecific.m4 +++ b/acspecific.m4 @@ -182,6 +182,10 @@ AC_DEFUN(AC_PROG_YACC, dnl AC_DEFUN(AC_PROG_CPP, [AC_MSG_CHECKING(how to run the C preprocessor) +# On Suns, sometimes $CPP names a directory. +if test -n "$CPP" && test -d "$CPP"; then + CPP= +fi if test -z "$CPP"; then AC_CACHE_VAL(ac_cv_prog_CPP, [ # This must be in double quotes, not single quotes, because CPP may get diff --git a/lib/autoconf/specific.m4 b/lib/autoconf/specific.m4 index 887da666d..93fbcda86 100644 --- a/lib/autoconf/specific.m4 +++ b/lib/autoconf/specific.m4 @@ -182,6 +182,10 @@ AC_DEFUN(AC_PROG_YACC, dnl AC_DEFUN(AC_PROG_CPP, [AC_MSG_CHECKING(how to run the C preprocessor) +# On Suns, sometimes $CPP names a directory. +if test -n "$CPP" && test -d "$CPP"; then + CPP= +fi if test -z "$CPP"; then AC_CACHE_VAL(ac_cv_prog_CPP, [ # This must be in double quotes, not single quotes, because CPP may get