[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH, committed] Use AC_CHECK_HEADERS(..., [-]) in cpp tests
From: |
Paolo Bonzini |
Subject: |
[PATCH, committed] Use AC_CHECK_HEADERS(..., [-]) in cpp tests |
Date: |
Mon, 03 Nov 2008 10:33:38 +0100 |
User-agent: |
Thunderbird 2.0.0.17 (Macintosh/20080914) |
These are the ones I spotted.
Ciao,
Paolo
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 bc07c6e..d7a1886 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 */
@@ -204,6 +208,6 @@ test "$CPP" != "$CC -E" &&
# 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 */
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [PATCH, committed] Use AC_CHECK_HEADERS(..., [-]) in cpp tests,
Paolo Bonzini <=