m4/as-linux.m4: Add extra quoting in AS_CHECK_REDHAT_PRE_FC2 macro
authorIan Abbott <abbotti@mev.co.uk>
Mon, 21 Jan 2013 16:47:04 +0000 (16:47 +0000)
committerIan Abbott <abbotti@mev.co.uk>
Mon, 21 Jan 2013 16:47:04 +0000 (16:47 +0000)
Avoid the following warning:

$ ./autogen.sh
configure.ac:42: warning: AC_LANG_CONFTEST: no AC_LANG_SOURCE call
detected in body
../../lib/autoconf/lang.m4:193: AC_LANG_CONFTEST is expanded from...
../../lib/autoconf/general.m4:2590: _AC_COMPILE_IFELSE is expanded
from...
../../lib/autoconf/general.m4:2606: AC_COMPILE_IFELSE is expanded
from...
m4/as-linux.m4:435: AS_CHECK_REDHAT_PRE_FC2 is expanded from...
m4/as-linux.m4:69: AS_LINUX is expanded from...
configure.ac:42: the top level

Signed-off-by: Ian Abbott <abbotti@mev.co.uk>
m4/as-linux.m4

index 65e2a16eca5ff7a0743f0016dcd1e823ca325a5f..848234364861328a4ff47c147e39dbaf0cf2ddc6 100644 (file)
@@ -438,10 +438,10 @@ AC_DEFUN([AS_CHECK_REDHAT_PRE_FC2],
         HAVE_REDHAT_KERNEL=false
         ac_save_CFLAGS="$CFLAGS"
         CFLAGS="$CFLAGS -I${LINUX_DIR}/include/linux"
-        AC_COMPILE_IFELSE(AC_LANG_PROGRAM([
+        AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
 #include "rhconfig.h"
 int code = RED_HAT_LINUX_KERNEL;
-       ]),
+       ]])],
         AC_MSG_RESULT(found); HAVE_REDHAT_KERNEL=true,
         AC_MSG_RESULT(not found))
        dnl restore CFLAGS