1 # Check availability of CALCULATOR binary distribution
3 # Author : Marc Tajchman (CEA, 2002)
4 #------------------------------------------------------------
6 AC_DEFUN([CHECK_CALCULATOR],[
8 AC_CHECKING(for Calculator)
13 --with-calculator=DIR root directory path of CALCULATOR build or installation,
14 CALCULATOR_DIR="$withval",CALCULATOR_DIR="")
16 if test "x$CALCULATOR_DIR" = "x" ; then
18 # no --with-gui-dir option used
20 if test "x$CALCULATOR_ROOT_DIR" != "x" ; then
22 # SALOME_ROOT_DIR environment variable defined
23 CALCULATOR_DIR=$CALCULATOR_ROOT_DIR
27 # search Salome binaries in PATH variable
28 AC_PATH_PROG(TEMP, libCALCULATOREngine.so)
29 if test "x$TEMP" != "x" ; then
30 CALCULATOR_DIR=`dirname $TEMP`
37 if test -f ${CALCULATOR_DIR}/lib/salome/libCALCULATOREngine.so ; then
39 AC_MSG_RESULT(Using CALCULATOR module distribution in ${CALCULATOR_DIR})
41 if test "x$CALCULATOR_ROOT_DIR" == "x" ; then
42 CALCULATOR_ROOT_DIR=${CALCULATOR_DIR}
44 AC_SUBST(CALCULATOR_ROOT_DIR)
46 AC_MSG_WARN("Cannot find compiled CALCULATOR module distribution")
49 AC_MSG_RESULT(for CALCULATOR: $Calculator_ok)