summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGaetan Nadon <memsize@videotron.ca>2011-06-01 08:59:53 -0400
committerGaetan Nadon <memsize@videotron.ca>2011-06-05 07:18:32 -0400
commit45c7d622657d295b2c02a46061765827ea37f00f (patch)
tree9a449b6689317739fe53d7f2a40728aec8b53f73
parent10a865fa671382dce50f7e49624ca5a730372d08 (diff)
downloadxorg-util-macros-45c7d622657d295b2c02a46061765827ea37f00f.tar.gz
XORG_PROG_RAWCPP: use AC_LANG_SOURCE to prevent warnings
The source for the AC_LANG_CONFTEST should be passed to AC_LANG_SOURCE to satisfy the more stringent testing done by autoconf 2.68. It is available in autoconf 2.60 where AC_LANG_DEFINES_PROVIDED is not. Reviewed-by: Alan Coopersmith <alan.coopersmith@oracle.com> Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
-rw-r--r--xorg-macros.m4.in6
1 files changed, 2 insertions, 4 deletions
diff --git a/xorg-macros.m4.in b/xorg-macros.m4.in
index a21cf7e..d2ad154 100644
--- a/xorg-macros.m4.in
+++ b/xorg-macros.m4.in
@@ -64,8 +64,7 @@ AC_PATH_PROGS(RAWCPP, [cpp], [${CPP}],
# which is not the best choice for supporting other OS'es, but covers most
# of the ones we need for now.
AC_MSG_CHECKING([if $RAWCPP requires -undef])
-AC_LANG_CONFTEST([Does cpp redefine unix ?
- AC_LANG_DEFINES_PROVIDED])
+AC_LANG_CONFTEST([AC_LANG_SOURCE([[Does cpp redefine unix ?]])])
if test `${RAWCPP} < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then
AC_MSG_RESULT([no])
else
@@ -83,8 +82,7 @@ fi
rm -f conftest.$ac_ext
AC_MSG_CHECKING([if $RAWCPP requires -traditional])
-AC_LANG_CONFTEST([Does cpp preserve "whitespace"?
- AC_LANG_DEFINES_PROVIDED])
+AC_LANG_CONFTEST([AC_LANG_SOURCE([[Does cpp preserve "whitespace"?]])])
if test `${RAWCPP} < conftest.$ac_ext | grep -c 'preserve \"'` -eq 1 ; then
AC_MSG_RESULT([no])
else