]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
CPP safety test
authorDavid MacKenzie <djm@djmnet.org>
Fri, 26 Aug 1994 04:59:56 +0000 (04:59 +0000)
committerDavid MacKenzie <djm@djmnet.org>
Fri, 26 Aug 1994 04:59:56 +0000 (04:59 +0000)
acspecific.m4
lib/autoconf/specific.m4

index 887da666daf19427b4ec9b4cf1b546b4b824455a..93fbcda86bb1e57a77709e0719dda34d8129bfd7 100644 (file)
@@ -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
index 887da666daf19427b4ec9b4cf1b546b4b824455a..93fbcda86bb1e57a77709e0719dda34d8129bfd7 100644 (file)
@@ -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