Salome HOME
PR: merge from tag BR_CCRT2_mergeto_V2_1_0b1
[modules/kernel.git] / salome_adm / unix / config_files / check_withihm.m4
1 dnl  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
2 dnl  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
3 dnl 
4 dnl  This library is free software; you can redistribute it and/or 
5 dnl  modify it under the terms of the GNU Lesser General Public 
6 dnl  License as published by the Free Software Foundation; either 
7 dnl  version 2.1 of the License. 
8 dnl 
9 dnl  This library is distributed in the hope that it will be useful, 
10 dnl  but WITHOUT ANY WARRANTY; without even the implied warranty of 
11 dnl  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
12 dnl  Lesser General Public License for more details. 
13 dnl 
14 dnl  You should have received a copy of the GNU Lesser General Public 
15 dnl  License along with this library; if not, write to the Free Software 
16 dnl  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
17 dnl 
18 dnl  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
19 dnl
20 dnl
21 dnl
22
23 AC_DEFUN([CHECK_WITHIHM],[
24
25 AC_ARG_WITH(ihm,
26             --with-ihm [default=yes],
27             WITHIHM="yes",WITHIHM="no")
28
29 if test "${with_ihm}" = yes; then
30
31   echo
32   echo ---------------------------------------------
33   echo testing WITH_IHM : yes
34   echo ---------------------------------------------
35   echo
36   WITHIHM="yes"
37   if test "${with_ihm}" = "yes";then
38     withihm_ok=yes
39   fi
40
41 elif test "${with_ihm}" = no; then
42
43   echo
44   echo ---------------------------------------------
45   echo testing WITH_IHM : no
46   echo ---------------------------------------------
47   echo
48   WITHIHM="no"
49   if test "${with_ihm}" = "no";then
50     withihm_ok=no
51   fi
52
53 else
54
55   echo
56   echo ---------------------------------------------
57   echo testing WITH_IHM : yes
58   echo ---------------------------------------------
59   echo
60   WITHIHM="yes"
61   if test "${with_ihm}" = "yes";then
62     withihm_ok=yes
63   fi
64
65 fi
66 AC_SUBST(WITHIHM)
67
68 ])dnl