]> SALOME platform Git repositories - plugins/hexoticplugin.git/blob - adm_local/unix/config_files/check_HexoticPLUGIN.m4
Salome HOME
Import a new plugin, sent by Stephane LIAUZU
[plugins/hexoticplugin.git] / adm_local / unix / config_files / check_HexoticPLUGIN.m4
1 AC_DEFUN([CHECK_HEXOTIC],[
2
3 AC_REQUIRE([AC_PROG_CXX])dnl
4 AC_REQUIRE([AC_PROG_CXXCPP])dnl
5
6 AC_CHECKING(for Hexotic comercial product)
7
8 AC_LANG_SAVE
9 AC_LANG_CPLUSPLUS
10
11 AC_ARG_WITH(,
12             [  --with-Hexotic=DIR root directory path of Hexotic installation],
13             Hexotic_HOME=$withval,Hexotic_HOME="")
14
15 Hexotic_ok=no
16
17 if test "x$Hexotic_HOME" == "x" ; then
18
19 # no --with-Hexotic option used
20    if test "x$HexoticHOME" != "x" ; then
21
22     # HexoticHOME environment variable defined
23       Hexotic_HOME=$HexoticHOME
24
25    fi
26
27 fi
28
29 if test "x$Hexotic_HOME" != "x"; then
30
31   echo
32   echo -------------------------------------------------
33   echo You are about to choose to use somehow the
34   echo Hexotic commercial product to generate 3D hexahedral mesh.
35   echo
36
37   AC_MSG_CHECKING(for Hexotic executable)
38
39   AC_CHECK_PROG(HEXOTIC, hexotic,found)
40
41   if test "x$HEXOTIC" == x ; then
42     AC_MSG_RESULT(no)
43     AC_MSG_WARN(Hexotic program not found in PATH variable)
44   else
45     Hexotic_ok=yes
46   fi
47
48 fi
49
50 AC_MSG_RESULT(for Hexotic: $Hexotic_ok)
51 AC_LANG_RESTORE
52
53 ])dnl