mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2024-12-26 09:20:34 +05:00
NRI : Add GEOM check local.
This commit is contained in:
parent
dc6045b6f3
commit
046671a7ec
54
adm_local/unix/config_files/check_Geom.m4
Normal file
54
adm_local/unix/config_files/check_Geom.m4
Normal file
@ -0,0 +1,54 @@
|
|||||||
|
# Check availability of Geom binary distribution
|
||||||
|
#
|
||||||
|
# Author : Nicolas REJNERI (OPEN CASCADE, 2003)
|
||||||
|
#
|
||||||
|
|
||||||
|
AC_DEFUN([CHECK_GEOM],[
|
||||||
|
|
||||||
|
AC_CHECKING(for Geom)
|
||||||
|
|
||||||
|
Geom_ok=no
|
||||||
|
|
||||||
|
AC_ARG_WITH(geom,
|
||||||
|
[ --with-geom=DIR root directory path of GEOM installation ],
|
||||||
|
GEOM_DIR="$withval",GEOM_DIR="")
|
||||||
|
|
||||||
|
if test "x$GEOM_DIR" == "x" ; then
|
||||||
|
|
||||||
|
# no --with-geom-dir option used
|
||||||
|
|
||||||
|
if test "x$GEOM_ROOT_DIR" != "x" ; then
|
||||||
|
|
||||||
|
# GEOM_ROOT_DIR environment variable defined
|
||||||
|
GEOM_DIR=$GEOM_ROOT_DIR
|
||||||
|
|
||||||
|
else
|
||||||
|
|
||||||
|
# search Geom binaries in PATH variable
|
||||||
|
AC_PATH_PROG(TEMP, libGEOM_Swig.py)
|
||||||
|
if test "x$TEMP" != "x" ; then
|
||||||
|
GEOM_BIN_DIR=`dirname $TEMP`
|
||||||
|
GEOM_DIR=`dirname $GEOM_BIN_DIR`
|
||||||
|
fi
|
||||||
|
|
||||||
|
fi
|
||||||
|
#
|
||||||
|
fi
|
||||||
|
|
||||||
|
if test -f ${GEOM_DIR}/bin/salome/libGEOM_Swig.py ; then
|
||||||
|
Geom_ok=yes
|
||||||
|
AC_MSG_RESULT(Using Geom module distribution in ${GEOM_DIR})
|
||||||
|
|
||||||
|
if test "x$GEOM_ROOT_DIR" == "x" ; then
|
||||||
|
GEOM_ROOT_DIR=${GEOM_DIR}
|
||||||
|
fi
|
||||||
|
AC_SUBST(GEOM_ROOT_DIR)
|
||||||
|
|
||||||
|
else
|
||||||
|
AC_MSG_WARN("Cannot find compiled Geom module distribution")
|
||||||
|
fi
|
||||||
|
|
||||||
|
AC_MSG_RESULT(for Geom: $Geom_ok)
|
||||||
|
|
||||||
|
])dnl
|
||||||
|
|
@ -272,7 +272,7 @@ echo ---------------------------------------------
|
|||||||
echo
|
echo
|
||||||
|
|
||||||
echo Configure
|
echo Configure
|
||||||
variables="cc_ok lex_yacc_ok python_ok java_ok swig_ok threads_ok OpenGL_ok qt_ok vtk_ok hdf5_ok med2_ok omniORB_ok mico_ok occ_ok doxygen_ok graphviz_ok Kernel_ok Geom_Ok"
|
variables="cc_ok lex_yacc_ok python_ok java_ok swig_ok threads_ok OpenGL_ok qt_ok vtk_ok hdf5_ok med2_ok omniORB_ok mico_ok occ_ok doxygen_ok graphviz_ok Kernel_ok Geom_ok"
|
||||||
|
|
||||||
for var in $variables
|
for var in $variables
|
||||||
do
|
do
|
||||||
|
Loading…
Reference in New Issue
Block a user