1 # Copyright (C) 2009-2010 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
22 AC_INIT([Salome GENERICSOLVER module],[5.1.5],[webmaster.salome@opencascade.com],[SalomeGENERICSOLVER])
23 AC_CONFIG_AUX_DIR(salome_adm/unix/config_files)
28 XVERSION=`echo $VERSION | awk -F. '{printf("0x%02x%02x%02x",$1,$2,$3)}'`
31 # set up MODULE_NAME variable for dynamic construction of directories (resources, etc.)
32 MODULE_NAME=genericsolver
36 dnl Initialize source and build root directories
40 ROOT_SRCDIR=`echo $0 | sed -e "s,[[^/]]*$,,;s,/$,,;s,^$,.,"`
46 AC_SUBST(ROOT_BUILDDIR)
49 echo Source root directory : $ROOT_SRCDIR
50 echo Build root directory : $ROOT_BUILDDIR
54 AC_CHECK_PROG(SHELL,sh)
58 echo ---------------------------------------------
60 echo ---------------------------------------------
69 dnl Fix up the INSTALL macro if it s a relative path. We want the
70 dnl full-path to the binary instead.
73 INSTALL='\${KERNEL_ROOT_DIR}'/salome_adm/unix/config_files/install-sh
78 echo ---------------------------------------------
80 echo ---------------------------------------------
88 echo ---------------------------------------------
90 echo ---------------------------------------------
96 echo ---------------------------------------------
97 echo default ORB : omniORB
98 echo ---------------------------------------------
106 CORBA=adm_local/unix/$corba
109 echo ---------------------------------------------
111 echo ---------------------------------------------
117 echo ---------------------------------------------
119 echo ---------------------------------------------
125 echo ---------------------------------------------
127 echo ---------------------------------------------
133 echo ---------------------------------------------
134 echo Testing full GUI
135 echo ---------------------------------------------
139 if test "x${CORBA_IN_GUI}" != "xyes"; then
140 echo "failed : For configure GENERICSOLVER module necessary full GUI !"
147 echo ---------------------------------------------
149 echo ---------------------------------------------
153 variables="python_ok omniORB_ok qt_ok Kernel_ok"
155 for var in $variables
157 printf " %10s : " `echo \$var | sed -e "s,_ok,,"`
162 echo "Default ORB : $DEFAULT_ORB"
165 dnl We don t need to say when we re entering directories if we re using
166 dnl GNU make becuase make does it for us.
167 if test "X$GMAKE" = "Xyes"; then
168 AC_SUBST(SETX) SETX=":"
170 AC_SUBST(SETX) SETX="set -x"
173 echo ---------------------------------------------
174 echo generating Makefiles and configure files
175 echo ---------------------------------------------
178 AC_CONFIG_COMMANDS([default-1],[[ \
182 # This list is initiated using autoscan and must be updated manually
183 # when adding a new file <filename>.in to manage. When you execute
184 # autoscan, the Makefile list is generated in the output file configure.scan.
185 # This could be helpful to update de configuration.
187 salome_adm/unix/SALOMEconfig.h \
189 adm_local/unix/Makefile \
190 adm_local/unix/config_files/Makefile \
193 src/GENERICSOLVER/Makefile \
194 src/GENERICSOLVERGUI/Makefile \
196 resources/GENERICSOLVERCatalog.xml \