configure.ac: Use AC_LANG_SOURCE for if else macros
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Sat, 7 Jan 2012 17:57:24 +0000 (12:57 -0500)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Sat, 7 Jan 2012 17:57:24 +0000 (12:57 -0500)
Ref. http://www.flameeyes.eu/autotools-mythbuster/forwardporting/autoconf.html
"Noteworthy changes in autoconf version 2.66 through 2.68"

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
configure.ac

index a3f18a9dfe15e95b291e5b4c9ff3e3c1a5878d42..3bc9964bbd4a8b4d34936f864d543afd834d5e5b 100644 (file)
@@ -85,7 +85,7 @@ AC_CHECK_HEADERS([urcu-bp.h], [], [AC_MSG_ERROR([Cannot find [URCU] headers (urc
 This error can also occur when the liburcu package's configure script has not been run.])])
 
 AC_MSG_CHECKING([caa_likely()])
-AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
+AC_COMPILE_IFELSE([AC_LANG_SOURCE([[
 #include <urcu/compiler.h>
 ]], [[
 void fct(void)
@@ -156,7 +156,7 @@ AC_MSG_RESULT($LIBFORMAT)
 
 if test "x$host_cpu" = "xarm" ; then
 AC_MSG_CHECKING([checking for armv5])
-AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
+AC_COMPILE_IFELSE([AC_LANG_SOURCE([[
 ]], [[
 #ifndef __ARM_ARCH_5TEJ__
 #error "no arm5 here"
This page took 0.02507 seconds and 4 git commands to generate.