1 # Copyright (C) 2007-2021 CEA/DEN, EDF R&D
3 # This library is free software; you can redistribute it and/or
4 # modify it under the terms of the GNU Lesser General Public
5 # License as published by the Free Software Foundation; either
6 # version 2.1 of the License, or (at your option) any later version.
8 # This library is distributed in the hope that it will be useful,
9 # but WITHOUT ANY WARRANTY; without even the implied warranty of
10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11 # Lesser General Public License for more details.
13 # You should have received a copy of the GNU Lesser General Public
14 # License along with this library; if not, write to the Free Software
15 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17 # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
22 # File : check_GHS3DPRL.m4
23 # Author : Vadim SANDLER, Open CASCADE S.A.S (vadim.sandler@opencascade.com)
27 AC_DEFUN([CHECK_GHS3DPRL],[
29 AC_REQUIRE([AC_PROG_CXX])dnl
30 AC_REQUIRE([AC_PROG_CXXCPP])dnl
32 AC_CHECKING(for GHS3DPRL(Tepal) commercial product)
38 [ --with-ghs3dprl=DIR root directory path of GHS3DPRL (Tepal) installation])
42 if test "$with_ghs3dprl" == "no" ; then
43 AC_MSG_WARN(You have choosen building plugin without GHS3DPRL)
45 if test "$with_ghs3dprl" == "yes" || test "$with_ghs3dprl" == "auto"; then
48 GHS3DPRL_HOME="$with_ghs3dprl"
51 if test "$GHS3DPRL_HOME" == "" ; then
52 if test "x$GHS3DPRLHOME" != "x" ; then
53 GHS3DPRL_HOME=$GHS3DPRLHOME
55 AC_MSG_WARN(Build plugin without GHS3DPRL)
59 if test "x$GHS3DPRL_HOME" != "x"; then
62 echo -------------------------------------------------
63 echo You are about to choose to use somehow the
64 echo "GHS3DPRL(Tepal) commercial product to generate 3D tetrahedral mesh."
67 AC_CHECKING(for GHS3DPRL(Tepal) executable)
69 AC_CHECK_PROG(GHS3DPRL,tepal,found)
71 if test "x$GHS3DPRL" == x ; then
72 AC_MSG_WARN(Tepal program not found in PATH variable)
73 AC_MSG_WARN(Build plugin without GHS3DPRL)
81 AC_MSG_RESULT(for GHS3DPRL(Tepal): $GHS3DPRL_ok)