]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
PR: compatibility with Debian Sarge boost libraries BR_V3_1_0_PR
authorprascle <prascle>
Thu, 2 Feb 2006 10:23:57 +0000 (10:23 +0000)
committerprascle <prascle>
Thu, 2 Feb 2006 10:23:57 +0000 (10:23 +0000)
salome_adm/unix/config_files/check_boost.m4

index c77edba5d14faec79d9d4288ece7b480efd56b67..b5e475ffa3b244ea4072f04ebfa35b000d80151b 100644 (file)
@@ -32,6 +32,9 @@ BOOST_CPPFLAGS=""
 AC_SUBST(BOOST_LIBS)
 BOOST_LIBS=""
 
+AC_SUBST(BOOST_LIBTHREAD)
+BOOST_LIBTHREAD=""
+
 boost_ok=no
 
 if test -z ${BOOSTDIR}; then
@@ -60,6 +63,17 @@ else
     if test "x${boost_ok}" = "xyes" ; then
       BOOST_LIBS="-L${BOOSTDIR}/lib"
       AC_MSG_RESULT(\$BOOST_LIBS = ${BOOST_LIBS})
+      BOOST_LIBTHREAD="libboost_thread-mt.so"
+      AC_MSG_RESULT(\$BOOST_LIBTHREAD = ${BOOST_LIBTHREAD})
+    else
+      AC_CHECKING(for libboost_thread.so library file)
+      AC_CHECK_FILE(${BOOSTDIR}/lib/libboost_thread.so,boost_ok=yes,boost_ok=no)
+      if test "x${boost_ok}" = "xyes" ; then
+        BOOST_LIBS="-L${BOOSTDIR}/lib"
+        AC_MSG_RESULT(\$BOOST_LIBS = ${BOOST_LIBS})
+        BOOST_LIBTHREAD="libboost_thread.so"
+        AC_MSG_RESULT(\$BOOST_LIBTHREAD = ${BOOST_LIBTHREAD})
+      fi
     fi
   fi
 fi