1 # Check availability of SUPERV module binary distribution
3 # Author : Marc Tajchman (CEA, 2002)
4 #------------------------------------------------------------
6 AC_DEFUN([CHECK_SUPERV],[
8 AC_CHECKING(for Superv)
16 --with-superv=DIR root directory path of SUPERV installation,
17 SUPERV_DIR="$withval",SUPERV_DIR="")
19 if test "x$SUPERV_DIR" = "x" ; then
21 # no --with-gui-dir option used
23 if test "x$SUPERV_ROOT_DIR" != "x" ; then
25 # SUPERV_ROOT_DIR environment variable defined
26 SUPERV_DIR=$SUPERV_ROOT_DIR
30 # search SUPERV binaries in PATH variable
31 AC_PATH_PROG(TEMP, libSUPERV.so)
32 if test "x$TEMP" != "x" ; then
33 SUPERV_BIN_DIR=`dirname $TEMP`
34 SUPERV_DIR=`dirname $SUPERV_BIN_DIR`
41 if test -f ${SUPERV_DIR}/lib/salome/libSUPERV.so ; then
43 AC_MSG_RESULT(Using SUPERV distribution in ${SUPERV_DIR})
45 if test "x$SUPERV_ROOT_DIR" == "x" ; then
46 SUPERV_ROOT_DIR=${SUPERV_DIR}
48 AC_SUBST(SUPERV_ROOT_DIR)
50 SUPERV_LDFLAGS=-L${SUPERV_DIR}/lib${LIB_LOCATION_SUFFIX}/salome
51 SUPERV_CXXFLAGS=-I${SUPERV_DIR}/include/salome
53 AC_SUBST(SUPERV_LDFLAGS)
54 AC_SUBST(SUPERV_CXXFLAGS)
57 AC_MSG_WARN("Cannot find compiled SUPERV distribution")
60 AC_MSG_RESULT(for SUPERV: $Superv_ok)