]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[367-kea-does-not-compile-with-boost-installed-at-not-default-location] Retry with... 367-kea-does-not-compile-with-boost-installed-at-not-default-location
authorFrancis Dupont <fdupont@isc.org>
Sat, 29 Dec 2018 13:37:31 +0000 (14:37 +0100)
committerFrancis Dupont <fdupont@isc.org>
Fri, 11 Jan 2019 23:03:25 +0000 (18:03 -0500)
m4macros/ax_boost_for_kea.m4

index 0a90447b547e3c82c8de2f01d6957610ee476bea..f38601a2200d9ce8daa5808ec266817d8f1fe85f 100644 (file)
@@ -206,8 +206,19 @@ if test "x${BOOST_LIBS}" != "x"; then
      [AC_LANG_PROGRAM([#include <boost/system/error_code.hpp>],
                       [boost::system::error_code ec;])],
      [AC_MSG_RESULT([checking for Boost system library... yes])],
-     [AC_MSG_RESULT([checking for Boost system library... no])
-      AC_MSG_ERROR([Linking with ${BOOST_LIBS} is not enough: please make sure libboost_system is installed; Check config.log for details, you may be missing other libraries.])])
+     [if test "x${BOOST_LIB_DIR}" = "x"; then
+         BOOST_LIB_DIR="$boost_lib_path"
+      fi
+      if test "x${BOOST_LIB_DIR}" != "x"; then
+         BOOST_LIBS="-L$BOOST_LIB_DIR $BOOST_LIBS"
+      fi
+      LIBS="$BOOST_LIBS $LIBS_SAVED"
+      AC_LINK_IFELSE(
+        [AC_LANG_PROGRAM([#include <boost/system/error_code.hpp>],
+                         [boost::system::error_code ec;])],
+        [AC_MSG_RESULT([checking for Boost system library... yes])],
+        [AC_MSG_RESULT([checking for Boost system library... no])
+         AC_MSG_ERROR([Linking with ${BOOST_LIBS} is not enough: please make sure libboost_system is installed in an expected location; Check config.log for details, you may be missing other libraries.])])])
 
    LIBS="$LIBS_SAVED"
 fi