]> SALOME platform Git repositories - plugins/blsurfplugin.git/blob - adm_local/unix/config_files/check_BLSURFPLUGIN.m4
Salome HOME
1756adf544d336a331fcad9019241032404ad2d0
[plugins/blsurfplugin.git] / adm_local / unix / config_files / check_BLSURFPLUGIN.m4
1 dnl  Copyright (C) 2007-2008  CEA/DEN, EDF R&D
2 dnl
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.
7 dnl
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.
12 dnl
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
16 dnl
17 dnl  See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
18 dnl
19 dnl  File   : check_BLSURFPLUGIN.m4
20 dnl  Author : Vadim SANDLER, Open CASCADE S.A.S (vadim.sandler@opencascade.com)
21
22 AC_DEFUN([CHECK_BLSURFPLUGIN],[
23
24 AC_CHECKING(for BLSURF mesh plugin)
25
26 BLSURFplugin_ok=no
27
28 BLSURFPLUGIN_LDFLAGS=""
29 BLSURFPLUGIN_CXXFLAGS=""
30
31 AC_ARG_WITH(BLSURFplugin,
32             [  --with-BLSURFplugin=DIR root directory path of BLSURF mesh plugin installation ])
33
34 if test "$with_BLSURFplugin" != "no" ; then
35     if test "$with_BLSURFplugin" == "yes" || test "$with_BLSURFplugin" == "auto"; then
36         if test "x$BLSURFPLUGIN_ROOT_DIR" != "x" ; then
37             BLSURFPLUGIN_DIR=$BLSURFPLUGIN_ROOT_DIR
38         fi
39     else
40         BLSURFPLUGIN_DIR="$with_BLSURFplugin"
41     fi
42
43     if test "x$BLSURFPLUGIN_DIR" != "x" ; then
44         if test -f ${BLSURFPLUGIN_DIR}/lib${LIB_LOCATION_SUFFIX}/salome/libBLSURFEngine.so ; then
45             BLSURFplugin_ok=yes
46             AC_MSG_RESULT(Using BLSURF mesh plugin distribution in ${BLSURFPLUGIN_DIR})
47             BLSURFPLUGIN_ROOT_DIR=${BLSURFPLUGIN_DIR}
48             BLSURFPLUGIN_LDFLAGS=-L${BLSURFPLUGIN_DIR}/lib${LIB_LOCATION_SUFFIX}/salome
49             BLSURFPLUGIN_CXXFLAGS=-I${BLSURFPLUGIN_DIR}/include/salome
50         else
51             AC_MSG_WARN("Cannot find compiled BLSURF mesh plugin distribution")
52         fi
53     else
54         AC_MSG_WARN("Cannot find compiled BLSURF mesh plugin distribution")
55     fi
56 fi
57
58 AC_MSG_RESULT(for BLSURF mesh plugin: $BLSURFplugin_ok)
59
60 AC_SUBST(BLSURFPLUGIN_ROOT_DIR)
61 AC_SUBST(BLSURFPLUGIN_LDFLAGS)
62 AC_SUBST(BLSURFPLUGIN_CXXFLAGS)
63  
64 ])dnl