X-Git-Url: http://sru.miketaylor.org.uk/?a=blobdiff_plain;f=configure.ac;h=666de4b37943e422944d8e9b3b962a10a4a46eef;hb=069253101ff93035d077124e6ebfa464a7aa5c0a;hp=99acb1e4c32e7b70ab8a43d68af3a25c96135934;hpb=9c37ed608370ee5d47d5290593bd5a5eeba13594;p=metaproxy-moved-to-github.git diff --git a/configure.ac b/configure.ac index 99acb1e..666de4b 100644 --- a/configure.ac +++ b/configure.ac @@ -34,6 +34,16 @@ fi # Checks for libraries. AC_CHECK_LIB(dl,dlopen) +boostdir="yes" +AC_ARG_WITH(boost, [ ---with-boost=PREFIX Boost library in PREFIX],[boostdir=$withval]) + +if test "$openssl" != "yes"; then + CPPFLAGS="-I${boostdir}/include" + LIBS="-L${boostdir}/lib" +fi + +AC_CHECK_LIB(pthread, main) + AC_CHECK_LIB(boost_thread, main, [],[ AC_MSG_NOTICE([boost thread library not found.]) AC_MSG_ERROR([Install libboost-thread-dev (or similar)])