From dd351a80b9bd1054ffbfd9483d40222b99c731c8 Mon Sep 17 00:00:00 2001 From: riccardom Date: Mon, 18 Apr 2011 20:01:59 +0000 Subject: [PATCH] build: Shut up aureconf warnings with autoconf 2.68 autoreconf: running: aclocal --force configure.ac:46: warning: AC_LANG_CONFTEST: no AC_LANG_SOURCE call detected in body ../../lib/autoconf/lang.m4:194: AC_LANG_CONFTEST is expanded from... ../../lib/autoconf/general.m4:2591: _AC_COMPILE_IFELSE is expanded from... ../../lib/autoconf/general.m4:2607: AC_COMPILE_IFELSE is expanded from... ../../lib/m4sugar/m4sh.m4:606: AS_IF is expanded from... ../../lib/autoconf/libs.m4:100: AC_CHECK_LIB is expanded from... configure.ac:46: the top level The fix is to put AC_LANG_PROGRAM inside [] --- desmume/configure.ac | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/desmume/configure.ac b/desmume/configure.ac index e317a460b..820daad6b 100644 --- a/desmume/configure.ac +++ b/desmume/configure.ac @@ -47,10 +47,10 @@ AC_CHECK_LIB(zzip, zzip_open, [ LIBS="-lzzip $LIBS" AC_DEFINE([HAVE_LIBZZIP]) AC_MSG_CHECKING([[whether zzip use void * as second parameter]]) - AC_COMPILE_IFELSE(AC_LANG_PROGRAM([[#include ]], [[ + AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include ]], [[ void * v; - zzip_read(NULL, v, 0);]]), - AC_MSG_RESULT(yes), + zzip_read(NULL, v, 0);]])], + AC_MSG_RESULT(yes), AC_DEFINE([ZZIP_OLD_READ]) AC_MSG_RESULT(no)) ])