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)
30 # Created from configure.in.base
32 AC_INIT([Salome2 Project COMPONENT module], [5.1.0], [webmaster.salome@opencascade.com], [SalomeCOMPONENT])
33 AC_CONFIG_AUX_DIR(salome_adm/unix/config_files)
38 XVERSION=`echo $VERSION | awk -F. '{printf("0x%02x%02x%02x",$1,$2,$3)}'`
41 # set up MODULE_NAME variable for dynamic construction of directories (resources, etc.)
46 dnl Initialize source and build root directories
50 ROOT_SRCDIR=`echo $0 | sed -e "s,[[^/]]*$,,;s,/$,,;s,^$,.,"`
56 AC_SUBST(ROOT_BUILDDIR)
59 echo Source root directory : $ROOT_SRCDIR
60 echo Build root directory : $ROOT_BUILDDIR
64 AC_CHECK_PROG(SHELL,sh)
67 if test -z "$AR"; then
68 AC_CHECK_PROGS(AR,ar xar,:,$PATH)
72 dnl Export the AR macro so that it will be placed in the libtool file
77 echo ---------------------------------------------
79 echo ---------------------------------------------
85 dnl libtool macro check for CC, LD, NM, LN_S, RANLIB, STRIP + pour les librairies dynamiques !
90 echo ---------------------------------------------
92 echo ---------------------------------------------
94 dnl first, we set static to no!
95 dnl if we want it, use --enable-static
101 dnl Fix up the INSTALL macro if it s a relative path. We want the
102 dnl full-path to the binary instead.
105 INSTALL="${KERNEL_ROOT_DIR}/salome_adm/unix/config_files/install-sh -c"
110 echo ---------------------------------------------
112 echo ---------------------------------------------
116 dnl inutil car libtool
120 AC_CXX_TEMPLATE_OPTIONS
122 # AC_CC_WARNINGS([ansi])
126 AC_CHECK_LIB(dl,dlopen)
128 dnl Library librt : for alpha/osf
129 AC_CHECK_LIB(rt,nanosleep)
131 dnl add library libm :
134 AC_CXX_USE_STD_IOSTREAM
138 dnl ---------------------------------------------
140 dnl ---------------------------------------------
148 echo ---------------------------------------------
150 echo ---------------------------------------------
156 dnl ---------------------------------------------
158 dnl ---------------------------------------------
164 dnl ---------------------------------------------
166 dnl ---------------------------------------------
172 dnl ---------------------------------------------
174 dnl ---------------------------------------------
178 echo ---------------------------------------------
180 echo ---------------------------------------------
185 dnl openpbs_ok is set to yes by CHECK_OPENPBS
188 dnl ---------------------------------------------
190 dnl ---------------------------------------------
194 echo ---------------------------------------------
196 echo ---------------------------------------------
201 dnl lsf_ok is set to yes by CHECK_LSF
204 dnl ---------------------------------------------
206 dnl ---------------------------------------------
210 test x$openpbs_ok = xyes || test x$lsf_ok = xyes && WITH_BATCH=yes
214 echo ---------------------------------------------
215 echo testing LEX \& YACC
216 echo ---------------------------------------------
225 echo ---------------------------------------------
227 echo ---------------------------------------------
235 dnl echo ---------------------------------------------
236 dnl echo testing java
237 dnl echo ---------------------------------------------
243 echo ---------------------------------------------
245 echo ---------------------------------------------
251 echo ---------------------------------------------
253 echo ---------------------------------------------
259 dnl echo ---------------------------------------------
260 dnl echo testing mico
261 dnl echo ---------------------------------------------
267 echo ---------------------------------------------
268 echo default ORB : omniORB
269 echo ---------------------------------------------
277 CORBA=adm_local/unix/$corba
280 echo ---------------------------------------------
282 echo ---------------------------------------------
288 echo ---------------------------------------------
290 echo ---------------------------------------------
296 echo ---------------------------------------------
298 echo ---------------------------------------------
304 echo ---------------------------------------------
305 echo Testing OpenCascade
306 echo ---------------------------------------------
312 echo ---------------------------------------------
313 echo Testing html generators
314 echo ---------------------------------------------
317 CHECK_HTML_GENERATORS
319 COMPONENT_WITH_GUI=no
321 AM_CONDITIONAL(COMPONENT_ENABLE_GUI, [test "${COMPONENT_WITH_GUI}" = "yes"])
323 if test "${COMPONENT_WITH_GUI}" = "yes"; then
325 echo ---------------------------------------------
327 echo ---------------------------------------------
333 echo ---------------------------------------------
334 echo Testing full GUI
335 echo ---------------------------------------------
339 if test "x${CORBA_IN_GUI}" != "xyes"; then
340 echo "failed : For configure COMPONENT module necessary full GUI !"
346 echo ---------------------------------------------
348 echo ---------------------------------------------
354 echo ---------------------------------------------
356 echo ---------------------------------------------
360 if test "${COMPONENT_WITH_GUI}" = "yes"; then
361 variables="cc_ok lex_yacc_ok python_ok swig_ok threads_ok hdf5_ok med2_ok omniORB_ok occ_ok"
363 if test "${COMPONENT_WITH_GUI}" = "no"; then
364 variables="cc_ok python_ok swig_ok threads_ok hdf5_ok med2_ok omniORB_ok occ_ok "
367 for var in $variables
369 printf " %10s : " `echo \$var | sed -e "s,_ok,,"`
374 variables="mpi_ok cppunit_ok openpbs_ok lsf_ok doxygen_ok graphviz_ok"
376 for var in $variables
379 if test x$toto != "x"; then
380 printf " %10s : " `echo \$var | sed -e "s,_ok,,"`
386 echo "Default ORB : $DEFAULT_ORB"
389 dnl We don t need to say when we re entering directories if we re using
390 dnl GNU make becuase make does it for us.
391 if test "X$GMAKE" = "Xyes"; then
392 AC_SUBST(SETX) SETX=":"
394 AC_SUBST(SETX) SETX="set -x"
397 echo ---------------------------------------------
398 echo generating Makefiles and configure files
399 echo ---------------------------------------------
402 AC_OUTPUT_COMMANDS([ \
406 # This list is initiated using autoscan and must be updated manually
407 # when adding a new file <filename>.in to manage. When you execute
408 # autoscan, the Makefile list is generated in the output file configure.scan.
409 # This could be helpfull to update de configuration.
411 ./salome_adm/unix/SALOMEconfig.h \
412 ./adm_local/Makefile \
413 ./adm_local/unix/Makefile \
414 ./adm_local/unix/config_files/Makefile \
417 ./COMPONENT_version.h \
419 ./src/AddComponent/Makefile \
420 ./src/AdditionComponent/Makefile \
421 ./src/CalculatorComponent/Makefile \
422 ./src/DataStreamComponent/Makefile \
423 ./src/DivComponent/Makefile \
424 ./src/FactorialComponent/Makefile \
425 ./src/MulComponent/Makefile \
426 ./src/SIGNALSComponent/Makefile \
427 ./src/SIGNALSComponent_Swig/Makefile \
428 ./src/SubComponent/Makefile \
429 ./src/SyrComponent/Makefile \
430 ./src/SyrControlComponent/Makefile \
431 ./src/TestFunctions/Makefile \
432 ./src/TypesCheck/Makefile \
433 ./src/UndefinedSymbolComponent/Makefile \
434 ./resources/Makefile \
435 ./resources/COMPONENTCatalog.xml \