autoconf: add check for the boost_program_options library

check for the existence of boost_program_options library in
configure.ac since several files need that library

Signed-off-by: Xing Lin <xinglin@cs.utah.edu>
This commit is contained in:
Xing Lin 2013-11-10 17:06:55 -07:00
parent 729c1528a8
commit 125582e08e

View File

@ -553,6 +553,19 @@ AC_CHECK_LIB(boost_thread-mt, main, [],
[AC_CHECK_LIB(boost_thread, main, [],
AC_MSG_FAILURE(["Boost thread library not found."]))])
#
# Check for boost_program_options library (defines BOOST_PROGRAM_OPTIONS_LIBS).
#
BOOST_PROGRAM_OPTIONS_LIBS=""
saved_LIBS="${LIBS}"
LIBS=""
AC_CHECK_LIB(boost_program_options-mt, main, [],
[AC_CHECK_LIB(boost_program_options, main, [],
AC_MSG_FAILURE(["Boost program options library not found."]))])
BOOST_PROGRAM_OPTIONS_LIBS="${LIBS}"
LIBS="${saved_LIBS}"
AC_SUBST(BOOST_PROGRAM_OPTIONS_LIBS)
AC_LANG([C])
AC_CHECK_MEMBER([struct fiemap_extent.fe_logical],