From b076b768162950579fb9831b1f8dd8be5fdc3154 Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Mon, 21 Apr 2008 11:29:27 +0200 Subject: [PATCH] Use AC_LANG_SOURCE instead of AC_LANG_PROGRAM for unit lib test --- boost.m4 | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/boost.m4 b/boost.m4 index 13c7f3d..64e6ecc 100644 --- a/boost.m4 +++ b/boost.m4 @@ -81,7 +81,7 @@ int x = BOOST_VERSION; BOOST_TEST_LIB="" for l in boost_unit_test_framework-mt boost_unit_test_framework; do LIBS="${saveLIBS} -l${l}" - AC_LINK_IFELSE([AC_LANG_PROGRAM([[ + AC_LINK_IFELSE([AC_LANG_SOURCE([[ #define BOOST_TEST_DYN_LINK #define BOOST_AUTO_TEST_MAIN #include @@ -89,7 +89,6 @@ BOOST_AUTO_TEST_CASE( t ) { BOOST_CHECK(1); } -]],[[ ]])],[ BOOST_TEST_LIB="-l${l}" break -- 1.7.10.4