1 # Copyright (C) 2007-2020 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_HYBRID.m4
23 # Author : Vadim SANDLER, Open CASCADE S.A.S (vadim.sandler@opencascade.com)
27 AC_DEFUN([CHECK_HYBRID],[
29 AC_REQUIRE([AC_PROG_CXX])dnl
30 AC_REQUIRE([AC_PROG_CXXCPP])dnl
32 AC_CHECKING(for HYBRID(MG_hybrid) commercial product)
38 [ --with-hybrid=DIR root directory path of HYBRID (MG_hybrid) installation])
42 if test "$with_hybrid" == "no" ; then
43 AC_MSG_WARN(You have choosen building plugin without HYBRID)
45 if test "$with_hybrid" == "yes" || test "$with_hybrid" == "auto"; then
48 HYBRID_HOME="$with_hybrid"
51 if test "$HYBRID_HOME" == "" ; then
52 if test "x$HYBRIDHOME" != "x" ; then
53 HYBRID_HOME=$HYBRIDHOME
55 AC_MSG_WARN(Build plugin without HYBRID)
59 if test "x$HYBRID_HOME" != "x"; then
62 echo -------------------------------------------------
63 echo You are about to choose to use somehow the
64 echo "HYBRID(MG-hybrid) commercial product to generate 3D tetra-hexahedral mesh."
67 AC_CHECKING(for HYBRID(MG-hybrid) executable)
69 AC_CHECK_PROG(HYBRID,MG-hybrid,found)
71 if test "x$HYBRID" == x ; then
72 AC_MSG_WARN(MG-hybrid program not found in PATH variable)
73 AC_MSG_WARN(Build plugin without HYBRID)
81 AC_MSG_RESULT(for HYBRID: $HYBRID_ok)