From 21af83013f3b1bae511a61b9e27224ab3de235c1 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Mon, 30 Apr 2007 11:22:08 +0000 Subject: Did more work on the utility code. --- configure.in | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) (limited to 'configure.in') diff --git a/configure.in b/configure.in index 8259d1fe..d72e668f 100644 --- a/configure.in +++ b/configure.in @@ -127,6 +127,27 @@ else AC_MSG_FAILURE("Could not find boost_date_time library (set CPPFLAGS and LDFLAGS?)") fi +# check for boost_filesystem +AC_CACHE_CHECK( + [if boost_filesystem is available], + [boost_filesystem_cpplib_avail], + [boost_filesystem_save_libs=$LIBS + LIBS="-lboost_filesystem $LIBS" + AC_LANG_PUSH(C++) + AC_TRY_LINK( + [#include ], + [boost::filesystem::path this_path("Hello");], + [boost_filesystem_cpplib_avail=true], + [boost_filesystem_cpplib_avail=false]) + AC_LANG_POP + LIBS=$boost_filesystem_save_libs]) + +if [test x$boost_filesystem_cpplib_avail = xtrue ]; then + LIBS="-lboost_filesystem $LIBS" +else + AC_MSG_FAILURE("Could not find boost_filesystem library (set CPPFLAGS and LDFLAGS?)") +fi + # check for gmp AC_CACHE_CHECK( [if libgmp is available], -- cgit v1.2.3