1 # Check availability of SIERPINSKY binary distribution
3 # Author : Marc Tajchman (CEA, 2002)
4 #------------------------------------------------------------
6 AC_DEFUN([CHECK_SIERPINSKY],[
8 AC_CHECKING(for Sierpinsky)
13 --with-sierpinsky=DIR root directory path of SIERPINSKY build or installation,
14 SIERPINSKY_DIR="$withval",SIERPINSKY_DIR="")
16 if test "x$SIERPINSKY_DIR" = "x" ; then
18 # no --with-gui-dir option used
20 if test "x$SIERPINSKY_ROOT_DIR" != "x" ; then
22 # SALOME_ROOT_DIR environment variable defined
23 SIERPINSKY_DIR=$SIERPINSKY_ROOT_DIR
27 # search Salome binaries in PATH variable
28 AC_PATH_PROG(TEMP, libSIERPINSKY.so)
29 if test "x$TEMP" != "x" ; then
30 SIERPINSKY_DIR=`dirname $TEMP`
37 if test -f ${SIERPINSKY_DIR}/lib${LIB_LOCATION_SUFFIX}/salome/libSIERPINSKY.so ; then
39 AC_MSG_RESULT(Using SIERPINSKY module distribution in ${SIERPINSKY_DIR})
41 if test "x$SIERPINSKY_ROOT_DIR" == "x" ; then
42 SIERPINSKY_ROOT_DIR=${SIERPINSKY_DIR}
45 SIERPINSKY_LDFLAGS=-L${SIERPINSKY_ROOT_DIR}/lib${LIB_LOCATION_SUFFIX}/salome
46 SIERPINSKY_CXXFLAGS=-I${SIERPINSKY_ROOT_DIR}/include/salome
48 AC_SUBST(SIERPINSKY_ROOT_DIR)
49 AC_SUBST(SIERPINSKY_LDFLAGS)
50 AC_SUBST(SIERPINSKY_CXXFLAGS)
53 AC_MSG_WARN("Cannot find compiled SIERPINSKY module distribution")
56 AC_MSG_RESULT(for SIERPINSKY: $Sierpinsky_ok)