# Check availability of LIGHT module binary distribution # # Author : Marc Tajchman (CEA, 2002) #------------------------------------------------------------ AC_DEFUN([CHECK_LIGHT],[ AC_CHECKING(for Light) Light_ok=no AC_ARG_WITH(gui, --with-light=DIR root directory path of LIGHT installation, LIGHT_DIR="$withval",LIGHT_DIR="") if test "x$LIGHT_DIR" = "x" ; then # no --with-light option used if test "x$LIGHT_ROOT_DIR" != "x" ; then # LIGHT_ROOT_DIR environment variable defined LIGHT_DIR=$LIGHT_ROOT_DIR else # search LIGHT binaries in PATH variable AC_PATH_PROG(TEMP, libLIGHT.so) if test "x$TEMP" != "x" ; then LIGHT_BIN_DIR=`dirname $TEMP` LIGHT_DIR=`dirname $LIGHT_BIN_DIR` fi fi # fi if test -f ${LIGHT_DIR}/lib/salome/libLIGHT.so ; then Light_ok=yes AC_MSG_RESULT(Using LIGHT distribution in ${LIGHT_DIR}) if test "x$LIGHT_ROOT_DIR" == "x" ; then LIGHT_ROOT_DIR=${LIGHT_DIR} fi AC_SUBST(LIGHT_ROOT_DIR) else AC_MSG_WARN("Cannot find compiled LIGHT distribution") fi AC_MSG_RESULT(for LIGHT: $Light_ok) ])dnl