0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-06-18 18:08:21 +02:00

configure: use AX_BOOST macros when not building built-in boost

This commit is contained in:
William Pitcock 2016-07-30 19:56:01 -05:00
parent b3edc74a07
commit e108151c20

View file

@ -817,12 +817,13 @@ AC_HELP_STRING([--with-included-boost[[[=shared]]]], [Use the boost sources from
],[ ],[
AC_MSG_RESULT([no]) AC_MSG_RESULT([no])
AC_SEARCH_LIBS(boost_system, boost_system, AX_BOOST_BASE([1.60], [
[
AC_DEFINE(HAVE_LIB_BOOST_SYSTEM, 1, [Define if you have boost_system]) AC_DEFINE(HAVE_LIB_BOOST_SYSTEM, 1, [Define if you have boost_system])
], [ ], [
AC_MSG_ERROR([Failed to find boost_system library. (try --with-included-boost)]) AC_MSG_ERROR([Failed to find boost_system library. (try --with-included-boost)])
]) ])
AX_BOOST_ASIO
AX_BOOST_SYSTEM
AC_SUBST(BOOST_CPPFLAGS, "") AC_SUBST(BOOST_CPPFLAGS, "")
AC_SUBST(BOOST_LDFLAGS, "") AC_SUBST(BOOST_LDFLAGS, "")