From 46ad4fdca1644288025a41e43cc2784c216861d2 Mon Sep 17 00:00:00 2001 From: Guillem Jover Date: Thu, 25 Aug 2011 15:22:26 +0200 Subject: Use AC_LANG_SOURCE inside AC_LANG_CONFTEST to fix autoconf warning * configure.ac (AC_LANG_CONFTEST): Wrap the source into a AC_LANG_SOURCE call. --- configure.ac | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 50ec6b4..91bdea3 100644 --- a/configure.ac +++ b/configure.ac @@ -149,7 +149,8 @@ m4_include([linux/configfrag.ac]) [ssp_possible=yes] AC_MSG_CHECKING([whether the compiler accepts `-fstack-protector']) # Is this a reliable test case? -AC_LANG_CONFTEST([[void foo (void) { volatile char a[8]; a[3]; }]]) +AC_LANG_CONFTEST( + [AC_LANG_SOURCE([[void foo (void) { volatile char a[8]; a[3]; }]])]) [# `$CC -c -o ...' might not be portable. But, oh, well... Is calling # `ac_compile' like this correct, after all? if eval "$ac_compile -S -fstack-protector -o conftest.s" 2> /dev/null; then] -- cgit v1.2.3