1 # Check availability of PYHELLO binary distribution
3 # Author : Marc Tajchman (CEA, 2002)
4 #------------------------------------------------------------
6 AC_DEFUN([CHECK_PYHELLO],[
8 AC_CHECKING(for PyHello)
13 --with-py-hello=DIR root directory path of PYHELLO installation,
14 PYHELLO_DIR="$withval",PYHELLO_DIR="")
16 if test "x$PYHELLO_DIR" = "x" ; then
18 # no --with-py-hello option used
20 if test "x$PYHELLO_ROOT_DIR" != "x" ; then
22 # PYHELLO_ROOT_DIR environment variable defined
23 PYHELLO_DIR=$PYHELLO_ROOT_DIR
27 # search PyHello binaries in PATH variable
28 AC_PATH_PROG(TEMP, PYHELLOGUI.py)
29 if test "x$TEMP" != "x" ; then
30 PYHELLO_BIN_DIR=`dirname $TEMP`
31 PYHELLO_DIR=`dirname $PYHELLO_BIN_DIR`
38 if test -f ${PYHELLO_DIR}/bin/salome/PYHELLOGUI.py ; then
40 AC_MSG_RESULT(Using PYHELLO distribution in ${PYHELLO_DIR})
42 if test "x$PYHELLO_ROOT_DIR" == "x" ; then
43 PYHELLO_ROOT_DIR=${PYHELLO_DIR}
45 AC_SUBST(PYHELLO_ROOT_DIR)
47 AC_MSG_WARN("Cannot find compiled PYHELLO distribution")
50 AC_MSG_RESULT(for PYHELLO: $PyHello_ok)