]> SALOME platform Git repositories - modules/yacs.git/blob - src/wrappergen/bin/HXX2SALOME_GENERIC_CLASS_NAME_SRC/adm_local/unix/config_files/check_GUI.m4
Salome HOME
dd6c65583b72c490220df2a56cc6b57388c5811d
[modules/yacs.git] / src / wrappergen / bin / HXX2SALOME_GENERIC_CLASS_NAME_SRC / adm_local / unix / config_files / check_GUI.m4
1 dnl  Copyright (C) 2006-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 #------------------------------------------------------------
20 #  Check availability of Salome binary distribution
21 #
22 #  Author : Marc Tajchman (CEA, 2002)
23 #------------------------------------------------------------
24
25 AC_DEFUN([CHECK_SALOME_GUI],[
26
27 AC_CHECKING(for SalomeGUI)
28
29 SalomeGUI_ok=yes
30
31 AC_ARG_WITH(gui,
32             --with-salome_gui=DIR root directory path of SALOME GUI installation,
33             SALOME_GUI_DIR="$withval",SALOME_GUI_DIR="")
34
35 if test "x$SALOME_GUI_DIR" = "x" ; then
36   if test "x$GUI_ROOT_DIR" != "x" ; then
37     SALOME_GUI_DIR=$GUI_ROOT_DIR
38   else
39     # search Salome binaries in PATH variable
40     AC_PATH_PROG(TEMP, libSalomeApp.so)
41     if test "x$TEMP" != "x" ; then
42       SALOME_GUI_DIR=`dirname $TEMP`
43     fi
44   fi
45 fi
46
47 if test -f ${SALOME_GUI_DIR}/lib/salome/libSalomeApp.so  ; then
48   SalomeGUI_ok=yes
49   AC_MSG_RESULT(Using SALOME GUI distribution in ${SALOME_GUI_DIR})
50   GUI_ROOT_DIR=${SALOME_GUI_DIR}
51   AC_SUBST(GUI_ROOT_DIR)
52 else
53   AC_MSG_WARN("Cannot find compiled SALOME GUI distribution")
54 fi
55   
56 AC_MSG_RESULT(for SALOME GUI: $SalomeGUI_ok)
57  
58 ])dnl
59