From 8d0fe341f760339ca64e23495d52808607bf0002 Mon Sep 17 00:00:00 2001 From: Ruben Kerkhof Date: Sat, 4 Jun 2016 19:28:22 +0200 Subject: [PATCH] configure.ac: fix autoreconf warnings configure.ac:804: warning: AC_LANG_CONFTEST: no AC_LANG_SOURCE call detected in body ../../lib/autoconf/lang.m4:193: AC_LANG_CONFTEST is expanded from... configure.ac:804: the top level --- configure.ac | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/configure.ac b/configure.ac index 5ab5f0d7..eb5d17b5 100644 --- a/configure.ac +++ b/configure.ac @@ -800,12 +800,14 @@ AC_CHECK_FUNCS(gettimeofday select strdup strtol getaddrinfo getnameinfo strchr AC_FUNC_STRERROR_R test_cxx_flags() { - AC_LANG_PUSH(C++) - AC_LANG_CONFTEST([int main(void){}]) + AC_LANG_PUSH([C++]) + AC_LANG_CONFTEST([ + AC_LANG_SOURCE([[int main(void){}]]) + ]) $CXX -c conftest.cpp $CXXFLAGS $@ > /dev/null 2> /dev/null ret=$? rm -f conftest.o - AC_LANG_POP(C++) + AC_LANG_POP([C++]) return $ret } -- 2.30.2