1 # Copyright (C) 2007-2008 CEA/DEN, EDF R&D, OPEN CASCADE
3 # Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
4 # CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
6 # This library is free software; you can redistribute it and/or
7 # modify it under the terms of the GNU Lesser General Public
8 # License as published by the Free Software Foundation; either
9 # version 2.1 of the License.
11 # This library is distributed in the hope that it will be useful,
12 # but WITHOUT ANY WARRANTY; without even the implied warranty of
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 # Lesser General Public License for more details.
16 # You should have received a copy of the GNU Lesser General Public
17 # License along with this library; if not, write to the Free Software
18 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
20 # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
22 # PLEASE DO NOT MODIFY configure.in FILE
23 # ALL CHANGES WILL BE DISCARDED BY THE NEXT
24 # build_configure COMMAND
25 # CHANGES MUST BE MADE IN configure.in.base FILE
26 # Author : Marc Tajchman (CEA)
28 # Modified by : Patrick GOLDBRONN (CEA)
29 # Modified by : Marc Tajchman (CEA)
31 AC_INIT([Salome2 Project CALCULATOR module], [5.1.0], [webmaster.salome@opencascade.com], [SalomeCALCULATOR])
32 AC_CONFIG_AUX_DIR(salome_adm/unix/config_files)
37 XVERSION=`echo $VERSION | awk -F. '{printf("0x%02x%02x%02x",$1,$2,$3)}'`
40 # set up MODULE_NAME variable for dynamic construction of directories (resources, etc.)
41 MODULE_NAME=calculator
45 dnl Initialize source and build root directories
49 ROOT_SRCDIR=`echo $0 | sed -e "s,[[^/]]*$,,;s,/$,,;s,^$,.,"`
55 AC_SUBST(ROOT_BUILDDIR)
58 echo Source root directory : $ROOT_SRCDIR
59 echo Build root directory : $ROOT_BUILDDIR
63 AC_CHECK_PROG(SHELL,sh)
66 if test -z "$AR"; then
67 AC_CHECK_PROGS(AR,ar xar,:,$PATH)
71 dnl Export the AR macro so that it will be placed in the libtool file
76 echo ---------------------------------------------
78 echo ---------------------------------------------
84 dnl libtool macro check for CC, LD, NM, LN_S, RANLIB, STRIP + for shared libraries
89 echo ---------------------------------------------
91 echo ---------------------------------------------
93 dnl first, we set static to no!
94 dnl if we want it, use --enable-static
100 dnl Fix up the INSTALL macro if it s a relative path. We want the
101 dnl full-path to the binary instead.
104 #INSTALL='\${ROOT_BUILDDIR}'/salome_adm/unix/config_files/install-sh
108 INSTALL="${AUX_CONFIG_DIR}/install-sh -c"
111 INSTALL='\${AUX_CONFIG_DIR}'/install-sh
117 echo ---------------------------------------------
119 echo ---------------------------------------------
123 dnl inutil car libtool
127 AC_CXX_TEMPLATE_OPTIONS
129 # AC_CC_WARNINGS([ansi])
133 AC_CHECK_LIB(dl,dlopen)
135 dnl Library librt : for alpha/osf
136 AC_CHECK_LIB(rt,nanosleep)
138 dnl add library libm :
142 dnl Check if we use std iostream by default or if we must add
143 dnl a compiler directive for that
146 AC_CXX_USE_STD_IOSTREAM
149 dnl Well we use sstream which is not in gcc pre-2.95.3
150 dnl We must test if it exists. If not, add it in include !
154 #AM_CONDITIONAL(MED_ENABLE_SSTREAM, [test "$HAVE_SSTREAM" = yes])
157 dnl ---------------------------------------------
159 dnl ---------------------------------------------
165 echo ---------------------------------------------
167 echo ---------------------------------------------
173 echo ---------------------------------------------
175 echo ---------------------------------------------
181 echo ---------------------------------------------
183 echo ---------------------------------------------
188 #AM_CONDITIONAL(MED_SWIG_1_3_21, [test "$SWIG_VERSION" = 1.3.21])
191 echo ---------------------------------------------
193 echo ---------------------------------------------
199 echo ---------------------------------------------
201 echo ---------------------------------------------
207 echo ---------------------------------------------
209 echo ---------------------------------------------
215 echo ---------------------------------------------
217 echo ---------------------------------------------
223 echo ---------------------------------------------
224 echo default ORB : omniORB
225 echo ---------------------------------------------
233 CORBA=adm_local/unix/$corba
236 echo ---------------------------------------------
237 echo Testing OpenCascade
238 echo ---------------------------------------------
244 echo ---------------------------------------------
246 echo ---------------------------------------------
251 dnl For the sake of $MACHINE needed for MED Wrapper
255 CALCULATOR_WITH_GUI=no
257 AM_CONDITIONAL(CALCULATOR_ENABLE_GUI, [test "${CALCULATOR_WITH_GUI}" = "yes"])
259 if test "${CALCULATOR_WITH_GUI}" = "yes"; then
261 echo ---------------------------------------------
263 echo ---------------------------------------------
269 echo ---------------------------------------------
270 echo Testing full GUI
271 echo ---------------------------------------------
275 if test "x${CORBA_IN_GUI}" != "xyes"; then
276 echo "failed : For configure CALCULATOR module necessary full GUI !"
283 echo ---------------------------------------------
285 echo ---------------------------------------------
291 echo ---------------------------------------------
293 echo ---------------------------------------------
297 variables="python_ok omniORB_ok Kernel_ok"
299 for var in $variables
301 printf " %10s : " `echo \$var | sed -e "s,_ok,,"`
306 echo "Default ORB : $DEFAULT_ORB"
309 dnl We don t need to say when we re entering directories if we re using
310 dnl GNU make becuase make does it for us.
311 if test "X$GMAKE" = "Xyes"; then
312 AC_SUBST(SETX) SETX=":"
314 AC_SUBST(SETX) SETX="set -x"
318 echo ---------------------------------------------
319 echo generating Makefiles and configure files
320 echo ---------------------------------------------
323 AC_OUTPUT_COMMANDS([ \
327 # This list is initiated using autoscan and must be updated manually
328 # when adding a new file <filename>.in to manage. When you execute
329 # autoscan, the Makefile list is generated in the output file configure.scan.
330 # This could be helpfull to update de configuration.
332 ./salome_adm/unix/SALOMEconfig.h \
333 ./adm_local/Makefile \
334 ./adm_local/unix/Makefile \
335 ./adm_local/unix/config_files/Makefile \
340 ./CALCULATOR_version.h \
342 ./src/CALCULATOR/Makefile \
343 ./resources/Makefile \
344 ./resources/CALCULATORCatalog.xml \
349 dnl To avoid recompiling half of the sources because of SALOMEconfig.h recreating
350 touch -d 01Jan2007 ./salome_adm/unix/SALOMEconfig.h