1 dnl Copyright (C) 2004-2013 CEA/DEN, EDF R&D
3 dnl This library is free software; you can redistribute it and/or
4 dnl modify it under the terms of the GNU Lesser General Public
5 dnl License as published by the Free Software Foundation; either
6 dnl version 2.1 of the License.
8 dnl This library is distributed in the hope that it will be useful,
9 dnl but WITHOUT ANY WARRANTY; without even the implied warranty of
10 dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11 dnl Lesser General Public License for more details.
13 dnl You should have received a copy of the GNU Lesser General Public
14 dnl License along with this library; if not, write to the Free Software
15 dnl Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17 dnl See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
20 # Check availability of HYBRIDPLUGIN binary distribution
22 # Author : Marc Tajchman (CEA, 2002)
23 #------------------------------------------------------------
25 AC_DEFUN([CHECK_HYBRIDPLUGIN],[
27 HYBRIDPLUGIN_LDFLAGS=""
28 HYBRIDPLUGIN_CXXFLAGS=""
30 AC_CHECKING(for GHS3dPlugin)
35 --with-hybridPlugin=DIR root directory path of HYBRIDPLUGIN build or installation,
36 HYBRIDPLUGIN_DIR="$withval",HYBRIDPLUGIN_DIR="")
38 if test "x$HYBRIDPLUGIN_DIR" = "x" ; then
40 # no --with-gui-dir option used
42 if test "x$HYBRIDPLUGIN_ROOT_DIR" != "x" ; then
44 # SALOME_ROOT_DIR environment variable defined
45 HYBRIDPLUGIN_DIR=$HYBRIDPLUGIN_ROOT_DIR
49 # search Salome binaries in PATH variable
50 AC_PATH_PROG(TEMP, libHYBRIDEngine.so)
51 if test "x$TEMP" != "x" ; then
52 HYBRIDPLUGIN_DIR=`dirname $TEMP`
59 if test -f ${HYBRIDPLUGIN_DIR}/lib/salome/libHYBRIDEngine.so ; then
61 AC_MSG_RESULT(Using HYBRIDPLUGIN module distribution in ${HYBRIDPLUGIN_DIR})
63 if test "x$HYBRIDPLUGIN_ROOT_DIR" == "x" ; then
64 HYBRIDPLUGIN_ROOT_DIR=${HYBRIDPLUGIN_DIR}
66 HYBRIDPLUGIN_CXXFLAGS+=-I${HYBRIDPLUGIN_ROOT_DIR}/include/salome
67 HYBRIDPLUGIN_LDFLAGS+=-L${HYBRIDPLUGIN_ROOT_DIR}/lib${LIB_LOCATION_SUFFIX}/salome
68 AC_SUBST(HYBRIDPLUGIN_ROOT_DIR)
69 AC_SUBST(HYBRIDPLUGIN_LDFLAGS)
70 AC_SUBST(HYBRIDPLUGIN_CXXFLAGS)
72 AC_MSG_WARN("Cannot find compiled HYBRIDPLUGIN module distribution")
75 AC_MSG_RESULT(for HYBRIDPLUGIN: $GHS3dPlugin_ok)