1 dnl Copyright (C) 2007-2008 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
19 dnl File : check_HexoticPLUGIN.m4
20 dnl Author : Vadim SANDLER, Open CASCADE S.A.S (vadim.sandler@opencascade.com)
22 AC_DEFUN([CHECK_HEXOTICPLUGIN],[
24 AC_CHECKING(for Hexotic mesh plugin)
28 HexoticPLUGIN_LDFLAGS=""
29 HexoticPLUGIN_CXXFLAGS=""
31 AC_ARG_WITH(Hexoticplugin,
32 [ --with-Hexoticplugin=DIR root directory path of Hexotic mesh plugin installation ])
34 if test "$with_Hexoticplugin" != "no" ; then
35 if test "$with_Hexoticplugin" == "yes" || test "$with_Hexoticplugin" == "auto"; then
36 if test "x$HexoticPLUGIN_ROOT_DIR" != "x" ; then
37 HexoticPLUGIN_DIR=$HexoticPLUGIN_ROOT_DIR
40 HexoticPLUGIN_DIR="$with_Hexoticplugin"
43 if test "x$HexoticPLUGIN_DIR" != "x" ; then
44 if test -f ${HexoticPLUGIN_DIR}/lib${LIB_LOCATION_SUFFIX}/salome/libHexoticEngine.so ; then
46 AC_MSG_RESULT(Using Hexotic mesh plugin distribution in ${HexoticPLUGIN_DIR})
47 HexoticPLUGIN_ROOT_DIR=${HexoticPLUGIN_DIR}
48 HexoticPLUGIN_LDFLAGS=-L${HexoticPLUGIN_DIR}/lib${LIB_LOCATION_SUFFIX}/salome
49 HexoticPLUGIN_CXXFLAGS=-I${HexoticPLUGIN_DIR}/include/salome
51 AC_MSG_WARN("Cannot find compiled Hexotic mesh plugin distribution")
54 AC_MSG_WARN("Cannot find compiled Hexotic mesh plugin distribution")
58 AC_MSG_RESULT(for Hexotic mesh plugin: $Hexoticplugin_ok)
60 AC_SUBST(HexoticPLUGIN_ROOT_DIR)
61 AC_SUBST(HexoticPLUGIN_LDFLAGS)
62 AC_SUBST(HexoticPLUGIN_CXXFLAGS)