From 9d331ef6b322bc17ffcd4c04728cc39b0b317e13 Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Wed, 17 Aug 2011 12:20:26 +0200 Subject: [PATCH] configure boost unit test check: more quirks Define BOOST_AUTO_TEST_MAIN again. If not, it no longer works with Boost 1.33. Also include auto_unit_test.hpp instead of unix_test.hpp, which also, for some reason, makes a difference. Hopefully this now work with Boost 1.33 through 1.47. --- boost.m4 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/boost.m4 b/boost.m4 index d2dd704..b667071 100644 --- a/boost.m4 +++ b/boost.m4 @@ -99,8 +99,9 @@ int x = BOOST_VERSION; LIBS="${saveLIBS} -l${l}" AC_LINK_IFELSE([AC_LANG_SOURCE([[ #define BOOST_TEST_DYN_LINK +#define BOOST_AUTO_TEST_MAIN #define BOOST_TEST_MODULE configure -#include +#include BOOST_AUTO_TEST_CASE( t ) { BOOST_CHECK(1); -- 1.7.10.4