1 # Copyright (C) 2011 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.
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
19 # Author : Marc Tajchman (CEA, 2002)
20 #------------------------------------------------------------
22 AC_DEFUN([CHECK_SALOME_GUI],[
24 AC_CHECKING(for Salome GUI)
29 --with-salome_gui=DIR root directory path of SALOME GUI installation,
30 SALOME_GUI_DIR="$withval",SALOME_GUI_DIR="")
32 if test "x$SALOME_GUI_DIR" = "x" ; then
33 if test "x$GUI_ROOT_DIR" != "x" ; then
34 SALOME_GUI_DIR=$GUI_ROOT_DIR
36 # search Salome binaries in PATH variable
37 AC_PATH_PROG(TEMP, SUITApp)
38 if test "x$TEMP" != "x" ; then
39 SALOME_GUI_BIN_DIR=`dirname $TEMP`
40 SALOME_GUI_DIR=`dirname $SALOME_GUI_BIN_DIR`
45 if test "x$SALOME_GUI_DIR" != "x" ; then
46 if test -f ${SALOME_GUI_DIR}/bin/salome/SUITApp ; then
48 AC_MSG_RESULT(Using SALOME GUI distribution in ${SALOME_GUI_DIR})
49 GUI_ROOT_DIR=${SALOME_GUI_DIR}
52 if test "x$SalomeGUI_ok" == "xno" ; then
53 AC_MSG_WARN("Cannot find compiled SALOME GUI distribution")
56 AC_SUBST(GUI_ROOT_DIR)
58 AC_MSG_RESULT(for SALOME GUI: $SalomeGUI_ok)