From: Paolo Bonzini Date: Mon, 3 Nov 2008 09:19:44 +0000 (+0100) Subject: Use preprocessor in cpp tests. X-Git-Tag: v2.63b~149 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d6777ebf7e855a2c1e3fc528653076555f5e04b0;p=thirdparty%2Fautoconf.git Use preprocessor in cpp tests. * tests/c.at (CPP tests): Use AC_CHECK_HEADERS(..., [-]). --- diff --git a/tests/c.at b/tests/c.at index bc07c6ebc..d7a1886b4 100644 --- a/tests/c.at +++ b/tests/c.at @@ -124,7 +124,9 @@ _AT_CHECK_AC_MACRO( test "x$ac_c_preproc_warn_flag" = xyes && AC_MSG_ERROR([preprocessor has no warning option], 77) CPP="./mycpp $CPP" -AC_CHECK_HEADERS(stdio.h autoconf_io.h)]]) + +# Exercise CPP. +AC_CHECK_HEADERS(stdio.h autoconf_io.h, [], [], [-])]]) AT_CHECK_DEFINES( [/* #undef HAVE_AUTOCONF_IO_H */ @@ -158,7 +160,9 @@ _AT_CHECK_AC_MACRO( AC_PROG_CPP test "x$ac_c_preproc_warn_flag" != xyes && AC_MSG_ERROR([failed to detect preprocessor warning option]) -AC_CHECK_HEADERS(stdio.h autoconf_io.h)]]) + +# Exercise CPP. +AC_CHECK_HEADERS(stdio.h autoconf_io.h, [], [], [-])]]) AT_CHECK_DEFINES( [/* #undef HAVE_AUTOCONF_IO_H */ @@ -203,7 +207,7 @@ test "$CPP" != "$CC -E" && AC_MSG_ERROR([error messages on stderr cause the preprocessor selection to fail]) # Exercise CPP. -AC_CHECK_HEADERS(stdio.h autoconf_io.h)]]) +AC_CHECK_HEADERS(stdio.h autoconf_io.h, [], [], [-])]]) AT_CHECK_DEFINES( [/* #undef HAVE_AUTOCONF_IO_H */