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💯 AC_CHECK_LIB is expanded from...
configure.ac:46: the top level
The fix is to put AC_LANG_PROGRAM inside []
This commit is contained in:
parent
dc78778ae2
commit
dd351a80b9
|
@ -47,10 +47,10 @@ AC_CHECK_LIB(zzip, zzip_open, [
|
||||||
LIBS="-lzzip $LIBS"
|
LIBS="-lzzip $LIBS"
|
||||||
AC_DEFINE([HAVE_LIBZZIP])
|
AC_DEFINE([HAVE_LIBZZIP])
|
||||||
AC_MSG_CHECKING([[whether zzip use void * as second parameter]])
|
AC_MSG_CHECKING([[whether zzip use void * as second parameter]])
|
||||||
AC_COMPILE_IFELSE(AC_LANG_PROGRAM([[#include <zzip/lib.h>]], [[
|
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <zzip/lib.h>]], [[
|
||||||
void * v;
|
void * v;
|
||||||
zzip_read(NULL, v, 0);]]),
|
zzip_read(NULL, v, 0);]])],
|
||||||
AC_MSG_RESULT(yes),
|
AC_MSG_RESULT(yes),
|
||||||
AC_DEFINE([ZZIP_OLD_READ])
|
AC_DEFINE([ZZIP_OLD_READ])
|
||||||
AC_MSG_RESULT(no))
|
AC_MSG_RESULT(no))
|
||||||
])
|
])
|
||||||
|
|
Loading…
Reference in New Issue