summaryrefslogtreecommitdiff
path: root/m4/ax_boost_thread.m4
diff options
context:
space:
mode:
authorJim Meyering <meyering@redhat.com>2010-09-24 11:35:21 +0200
committerPeter Simons <simons@cryp.to>2010-09-24 20:33:04 +0200
commit0d80193e96124d3add33ecbf22a5d05e2823ec84 (patch)
tree3f95a3baa79d4a9d839e901243c4fd7b23446536 /m4/ax_boost_thread.m4
parentc69bae34a01e41021a21c4c33e632422992fd856 (diff)
downloadautoconf-archive-0d80193e96124d3add33ecbf22a5d05e2823ec84.tar.gz
build: m4-quote use of AC_LANG_PROGRAM to avoid warning from new autoconf
Using autoconf-2.68 would evoke many new warnings like this: configure.ac:78: 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/general.m4:2032: AC_CACHE_VAL is expanded from... ../../lib/autoconf/general.m4:2053: AC_CACHE_CHECK is expanded from... ax/ax_boost_thread.m4:35: AX_BOOST_THREAD is expanded from... configure.ac:78: the top level Autoconf was unable to detect the existing use of AC_LANG_SOURCE because it was underquoted. Fix that.
Diffstat (limited to 'm4/ax_boost_thread.m4')
-rw-r--r--m4/ax_boost_thread.m44
1 files changed, 2 insertions, 2 deletions
diff --git a/m4/ax_boost_thread.m4 b/m4/ax_boost_thread.m4
index 49f6287..1fcb867 100644
--- a/m4/ax_boost_thread.m4
+++ b/m4/ax_boost_thread.m4
@@ -75,9 +75,9 @@ AC_DEFUN([AX_BOOST_THREAD],
else
CXXFLAGS="-pthread $CXXFLAGS"
fi
- AC_COMPILE_IFELSE(AC_LANG_PROGRAM([[@%:@include <boost/thread/thread.hpp>]],
+ AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[@%:@include <boost/thread/thread.hpp>]],
[[boost::thread_group thrds;
- return 0;]]),
+ return 0;]])],
ax_cv_boost_thread=yes, ax_cv_boost_thread=no)
CXXFLAGS=$CXXFLAGS_SAVE
AC_LANG_POP([C++])