configure: update use of Boost unit test.
authorAdam Dickmeiss <adam@indexdata.dk>
Tue, 16 Aug 2011 13:31:24 +0000 (15:31 +0200)
committerAdam Dickmeiss <adam@indexdata.dk>
Tue, 16 Aug 2011 13:31:24 +0000 (15:31 +0200)
Use BOOST_TEST_MODULE instead of BOOST_AUTO_TEST_MAIN and include
unit_test.hpp instead of auto_unit_test.hpp.

boost.m4

index 1f6f03a..d2dd704 100644 (file)
--- a/boost.m4
+++ b/boost.m4
@@ -99,8 +99,8 @@ int x = BOOST_VERSION;
                            LIBS="${saveLIBS} -l${l}"
                            AC_LINK_IFELSE([AC_LANG_SOURCE([[
 #define BOOST_TEST_DYN_LINK
-#define BOOST_AUTO_TEST_MAIN
-#include <boost/test/auto_unit_test.hpp>
+#define BOOST_TEST_MODULE configure
+#include <boost/test/unit_test.hpp>
 BOOST_AUTO_TEST_CASE( t ) 
 {
     BOOST_CHECK(1);