]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
Bibliothèque de classes Batch (new)
authordutka <dutka>
Thu, 7 Oct 2004 07:22:33 +0000 (07:22 +0000)
committerdutka <dutka>
Thu, 7 Oct 2004 07:22:33 +0000 (07:22 +0000)
salome_adm/unix/config_files/check_boost.m4
salome_adm/unix/config_files/check_openpbs.m4 [new file with mode: 0644]
salome_adm/unix/make_commence.in

index 66efc5a13b15d0ff660e2d1a03968ab0b2acd556..7dfe5826e05ac682862cbea94f31df1a5129ca63 100644 (file)
@@ -37,13 +37,12 @@ else
   AC_CHECKING(for boost/shared_ptr.hpp header file)
   dnl BOOST headers
   CPPFLAGS_old="${CPPFLAGS}"
-  BOOST_CPPFLAGS="-ftemplate-depth-32 -I${BOOSTDIR}"
+  BOOST_CPPFLAGS="-ftemplate-depth-32 -I`ls -d ${BOOSTDIR}/include/boost-*`"
   CPPFLAGS="${CPPFLAGS} ${BOOST_CPPFLAGS}"
 
   AC_CHECK_HEADER(boost/shared_ptr.hpp,boost_ok=yes,boost_ok=no)
 
   CPPFLAGS="${CPPFLAGS_old}"
-  boost_ok=yes
 fi
 
 AC_LANG_RESTORE
diff --git a/salome_adm/unix/config_files/check_openpbs.m4 b/salome_adm/unix/config_files/check_openpbs.m4
new file mode 100644 (file)
index 0000000..9598285
--- /dev/null
@@ -0,0 +1,57 @@
+# Check for OpenPBS
+AC_DEFUN([CHECK_OPENPBS],
+[
+ AC_ARG_VAR([OPENPBS], [OpenPBS home directory])
+ AC_ARG_WITH([openpbs], 
+             AC_HELP_STRING([--with-openpbs=<path>],
+                            [tell configure script to use OpenPBS that is located at <path>]),
+             [test ! x"${withval}" = xyes && OPENPBS=${withval}],
+             [])
+
+ dnl AC_ARG_VAR([OPENPBSSERVERNAME], [OpenPBS server_name file])
+ dnl AC_ARG_WITH([openpbs-server-name], 
+ dnl             AC_HELP_STRING([--with-openpbs-server-name=<path>],
+ dnl                            [tell configure script to use OpenPBS server_name file that is located at <path>]),
+ dnl             [test ! x"${withval}" = xyes && OPENPBSSERVERNAME=${withval}],
+ dnl             [with_openpbs_server_name=""])
+
+
+ if test -z "${OPENPBS}"
+ then
+   AC_MSG_WARN([Environment variable OPENPBS not set. Skipping OpenPBS configuration.])
+
+ else
+
+   OPENPBS_INCLUDES="-I${OPENPBS}/include"
+   saved_CPPFLAGS=${CPPFLAGS}
+   CPPFLAGS="${CPPFLAGS} ${OPENPBS_INCLUDES}"
+   AC_CHECK_HEADER([pbs_ifl.h], [openpbs_header_found=yes], [openpbs_header_found=no], [])
+   test x${openpbs_header_found} = xno && AC_MSG_WARN([OpenPBS include file not found])
+   CPPFLAGS=${saved_CPPFLAGS}
+   AC_SUBST(OPENPBS_INCLUDES)
+   OPENPBS_LIBDIR="-L${OPENPBS}/lib"
+   OPENPBS_LIBS="-lpbs"
+   saved_LDFLAGS=${LDFLAGS}
+   saved_LIBS=${LIBS}
+   LDFLAGS="${LDFLAGS} ${OPENPBS_LIBDIR}"
+   AC_CHECK_LIB([pbs], [pbs_connect], [openpbs_lib_found=yes], [openpbs_lib_found=no], [])
+   test x${openpbs_lib_found} = xno && AC_MSG_WARN([OpenPBS library not found])
+   LIBS="${LIBS} ${OPENPBS_LIBS}"
+   LDFLAGS=${saved_LDFLAGS}
+   LIBS=${saved_LIBS}
+   AC_SUBST(OPENPBS_LIBDIR)
+   AC_SUBST(OPENPBS_LIBS)
+   dnl test -z "${OPENPBSSERVERNAME}" && OPENPBSSERVERNAME="/usr/spool/PBS/server_name"
+   dnl AC_CHECK_FILE([${OPENPBSSERVERNAME}], [openpbs_server_name_found=yes], [openpbs_server_name_found=no])
+
+   test x${openpbs_header_found} = xyes && test x${openpbs_lib_found} = xyes  && openpbs_ok="yes"
+
+ fi
+
+ WITHOPENPBS=$openpbs_ok
+ AC_SUBST(WITHOPENPBS)
+
+])
+
index 72033bdcd7dd38181d5b963ba5013099e98d65f1..7768713deb3943c8b2d9b79db83608098c62c849 100644 (file)
@@ -38,6 +38,12 @@ CXX_DEPEND_FLAG = @CXX_DEPEND_FLAG@
 
 BOOST_CPPFLAGS = @BOOST_CPPFLAGS@
 
+# OpenPBS
+
+OPENPBS_INCLUDES = @OPENPBS_INCLUDES@
+OPENPBS_LIBDIR   = @OPENPBS_LIBDIR@
+OPENPBS_LIBS     = @OPENPBS_LIBS@
+
 # JAVA
 
 JAVA_INCLUDES = @JAVA_INCLUDES@