From: Adam Dickmeiss Date: Sun, 11 Dec 2005 17:25:59 +0000 (+0000) Subject: Only if HAVE_DL_SUPPORT is enabled the factory test for dl loaded X-Git-Tag: YP2.0.0.2~125 X-Git-Url: http://git.indexdata.com/?a=commitdiff_plain;h=8a1fc033fb9d28393e03ded5cc4725af2b9d671e;p=metaproxy-moved-to-github.git Only if HAVE_DL_SUPPORT is enabled the factory test for dl loaded filters is executed. Note that configure has been changed, so running buildconf.sh is necessary. --- diff --git a/configure.ac b/configure.ac index 01a82aa..6c5246f 100644 --- a/configure.ac +++ b/configure.ac @@ -26,6 +26,11 @@ AM_PROG_LIBTOOL # Use C++ compilers only for tests AC_LANG(C++) +if test "$enable_shared" = "yes"; then + AC_DEFINE([HAVE_DL_SUPPORT],[1], + [Define to 1 if you have shared module support]) +fi + # Checks for libraries. AC_CHECK_LIB(boost_thread, main, [],[ AC_MSG_NOTICE([boost thread library not found.]) diff --git a/src/test_filter_factory.cpp b/src/test_filter_factory.cpp index b9190e3..fb28d36 100644 --- a/src/test_filter_factory.cpp +++ b/src/test_filter_factory.cpp @@ -1,4 +1,4 @@ -/* $Id: test_filter_factory.cpp,v 1.7 2005-12-10 09:59:10 adam Exp $ +/* $Id: test_filter_factory.cpp,v 1.8 2005-12-11 17:25:59 adam Exp $ Copyright (c) 2005, Index Data. %LICENSE% @@ -87,6 +87,7 @@ BOOST_AUTO_UNIT_TEST( test_filter_factory_1 ) } } +#if HAVE_DL_SUPPORT #if HAVE_DLFCN_H BOOST_AUTO_UNIT_TEST( test_filter_factory_2 ) { @@ -112,6 +113,7 @@ BOOST_AUTO_UNIT_TEST( test_filter_factory_2 ) } } #endif +#endif /* * Local variables: