From 4f1f1bc0daa4f78bdabc81734e34c26fc28ba6f0 Mon Sep 17 00:00:00 2001 From: adam Date: Thu, 2 Jun 2005 13:12:10 +0000 Subject: [PATCH] If BOOSTDIR is not defined, search in system --- salome_adm/unix/config_files/check_boost.m4 | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/salome_adm/unix/config_files/check_boost.m4 b/salome_adm/unix/config_files/check_boost.m4 index 789167b4c..56ed87e79 100644 --- a/salome_adm/unix/config_files/check_boost.m4 +++ b/salome_adm/unix/config_files/check_boost.m4 @@ -31,7 +31,11 @@ BOOST_CPPFLAGS="" boost_ok=no if test -z ${BOOSTDIR}; then - AC_MSG_WARN(You must provide BOOSTDIR variable) + dnl E.A. : If BOOSTDIR is not defined, trying in system + AC_CHECK_HEADER(boost/shared_ptr.hpp,boost_ok=yes,boost_ok=no) + if test boost_ok = no ; then + AC_MSG_WARN(You must provide BOOSTDIR variable) + fi else AC_MSG_RESULT(\$BOOSTDIR = ${BOOSTDIR}) AC_CHECKING(for boost/shared_ptr.hpp header file) -- 2.39.2