From ad8114677f3a87507c44552603577b293854af44 Mon Sep 17 00:00:00 2001 From: jfa Date: Fri, 16 Feb 2007 14:36:22 +0000 Subject: [PATCH] Check presence of include file program_options.hpp, required for MEDSPLITTER compilation. --- salome_adm/unix/config_files/check_boost.m4 | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/salome_adm/unix/config_files/check_boost.m4 b/salome_adm/unix/config_files/check_boost.m4 index 0298be6ee..d1b673c81 100644 --- a/salome_adm/unix/config_files/check_boost.m4 +++ b/salome_adm/unix/config_files/check_boost.m4 @@ -68,6 +68,14 @@ if test "x${BOOSTDIR}" != "x" ; then boost_include_dir_ok=no) fi +BOOST_PROGRAM_OPTIONS_LIB=no +if test "x${boost_include_dir_ok}" = "xyes" ; then + AC_CHECK_FILE(${BOOSTDIR}/include/boost/program_options.hpp, + BOOST_PROGRAM_OPTIONS_LIB=yes, + BOOST_PROGRAM_OPTIONS_LIB=no) +fi +AC_MSG_RESULT(for boost program_options tool: $BOOST_PROGRAM_OPTIONS_LIB) + if test "x${boost_include_dir_ok}" = "xyes" ; then AC_TRY_COMPILE([#include ], [boost::shared_ptr(new int)], @@ -137,6 +145,7 @@ AC_MSG_RESULT(for boost: $boost_ok) AC_SUBST(BOOST_CPPFLAGS) AC_SUBST(BOOST_LIBSUFFIX) AC_SUBST(BOOST_LIBS) +AC_SUBST(BOOST_PROGRAM_OPTIONS_LIB) AC_LANG_RESTORE -- 2.39.2