2 # Author : Marc Tajchman (CEA)
4 # Modified by : Patrick GOLDBRONN (CEA)
5 # Modified by : Marc Tajchman (CEA)
6 # Modified by : Alexander BORODIN (OCN) - autotools usage
8 # Created from configure.in.base
12 AC_INIT([Salome2 Project SMESH module], [4.0.0], [webmaster.salome@opencascade.com], [salome])
13 AC_CONFIG_AUX_DIR(salome_adm/unix/config_files)
18 XVERSION=`echo $VERSION | awk -F. '{printf("0x%02x%02x%02x",$1,$2,$3)}'`
21 # set up MODULE_NAME variable for dynamic construction of directories (resources, etc.)
26 echo ---------------------------------------------
27 echo Initialize source and build root directories
28 echo ---------------------------------------------
32 dnl Initialize source and build root directories
36 ROOT_SRCDIR=`echo $0 | sed -e "s,[[^/]]*$,,;s,/$,,;s,^$,.,"`
42 AC_SUBST(ROOT_BUILDDIR)
45 echo Source root directory : $ROOT_SRCDIR
46 echo Build root directory : $ROOT_BUILDDIR
50 if test -z "$AR"; then
51 AC_CHECK_PROGS(AR,ar xar,:,$PATH)
55 dnl Export the AR macro so that it will be placed in the libtool file
60 echo ---------------------------------------------
62 echo ---------------------------------------------
68 dnl libtool macro check for CC, LD, NM, LN_S, RANLIB, STRIP + pour les librairies dynamiques !
71 echo ---------------------------------------------
72 echo Coniguring production
73 echo ---------------------------------------------
78 echo ---------------------------------------------
80 echo ---------------------------------------------
82 dnl first, we set static to no!
83 dnl if we want it, use --enable-static
89 dnl Fix up the INSTALL macro if it s a relative path. We want the
90 dnl full-path to the binary instead.
93 INSTALL='\${ROOT_BUILDDIR}'/salome_adm/unix/config_files/install-sh
98 echo ---------------------------------------------
100 echo ---------------------------------------------
104 dnl inutil car libtool
108 AC_CXX_TEMPLATE_OPTIONS
110 # AC_CC_WARNINGS([ansi])
114 echo ---------------------------------------------
116 echo ---------------------------------------------
121 AC_F77_LIBRARY_LDFLAGS
123 AC_FC_LIBRARY_LDFLAGS
124 if test "X$FC" != "X" ; then
128 dnl AM_CONDITIONAL( USE_GFORTRAN, [test "$F77" = "gfortran"])
133 AC_CHECK_LIB(dl,dlopen)
135 dnl add library libm :
139 dnl Well we use sstream which is not in gcc pre-2.95.3
140 dnl We must test if it exists. If not, add it in include !
146 dnl ---------------------------------------------
148 dnl ---------------------------------------------
154 echo ---------------------------------------------
155 echo testing LEX \& YACC
156 echo ---------------------------------------------
165 echo ---------------------------------------------
167 echo ---------------------------------------------
173 dnl echo ---------------------------------------------
174 dnl echo testing java
175 dnl echo ---------------------------------------------
181 echo ---------------------------------------------
183 echo ---------------------------------------------
190 echo ---------------------------------------------
192 echo ---------------------------------------------
197 if test "x${GUI_DISABLE_CORBA}" != "xyes" ; then
199 echo ---------------------------------------------
201 echo ---------------------------------------------
207 dnl echo ---------------------------------------------
208 dnl echo testing mico
209 dnl echo ---------------------------------------------
215 echo ---------------------------------------------
216 echo default ORB : omniORB
217 echo ---------------------------------------------
223 echo ---------------------------------------------
225 echo ---------------------------------------------
232 CORBA=adm_local/unix/$corba
236 echo ---------------------------------------------
238 echo ---------------------------------------------
244 echo ---------------------------------------------
246 echo ---------------------------------------------
252 echo ---------------------------------------------
254 echo ---------------------------------------------
260 echo ---------------------------------------------
262 echo ---------------------------------------------
268 echo ---------------------------------------------
270 echo ---------------------------------------------
276 echo ---------------------------------------------
278 echo ---------------------------------------------
284 echo ---------------------------------------------
285 echo Testing OpenCascade
286 echo ---------------------------------------------
292 echo ---------------------------------------------
294 echo ---------------------------------------------
300 echo ---------------------------------------------
301 echo Testing html generators
302 echo ---------------------------------------------
305 CHECK_HTML_GENERATORS
308 echo ---------------------------------------------
310 echo ---------------------------------------------
316 echo ---------------------------------------------
317 echo Testing full GUI
318 echo ---------------------------------------------
322 if test "x${CORBA_IN_GUI}" != "xyes"; then
323 echo "failed : For configure SMESH module necessary full GUI !"
328 echo ---------------------------------------------
330 echo ---------------------------------------------
336 echo ---------------------------------------------
338 echo ---------------------------------------------
344 echo ---------------------------------------------
346 echo ---------------------------------------------
354 echo ---------------------------------------------
356 echo ---------------------------------------------
360 variables="cc_ok fortran_ok boost_ok lex_yacc_ok python_ok swig_ok threads_ok OpenGL_ok qt_ok vtk_ok hdf5_ok omniORB_ok occ_ok doxygen_ok graphviz_ok qwt_ok Kernel_ok Geom_ok Med_ok"
362 for var in $variables
364 printf " %10s : " `echo \$var | sed -e "s,_ok,,"`
369 echo "Default ORB : $DEFAULT_ORB"
372 dnl We don t need to say when we re entering directories if we re using
373 dnl GNU make becuase make does it for us.
374 if test "X$GMAKE" = "Xyes"; then
375 AC_SUBST(SETX) SETX=":"
377 AC_SUBST(SETX) SETX="set -x"
380 dnl AM_CONDITIONAL(GUI_ENABLE_CORBA, [test "$GUI_DISABLE_CORBA" = no])
381 dnl AM_CONDITIONAL(ENABLE_PYCONSOLE, [test "$DISABLE_PYCONSOLE" = no])
382 dnl AM_CONDITIONAL(ENABLE_GLVIEWER, [test "$DISABLE_GLVIEWER" = no])
383 dnl AM_CONDITIONAL(ENABLE_PLOT2DVIEWER, [test "$DISABLE_PLOT2DVIEWER" = no])
384 dnl AM_CONDITIONAL(ENABLE_SUPERVGRAPHVIEWER, [test "$DISABLE_SUPERVGRAPHVIEWER" = no])
385 dnl AM_CONDITIONAL(ENABLE_OCCVIEWER, [test "$DISABLE_OCCVIEWER" = no])
386 dnl AM_CONDITIONAL(ENABLE_VTKVIEWER, [test "$DISABLE_VTKVIEWER" = no])
387 dnl AM_CONDITIONAL(ENABLE_SALOMEOBJECT, [test "$DISABLE_SALOMEOBJECT" = no])
390 echo ---------------------------------------------
391 echo copying resource files, shell scripts, and
393 echo ---------------------------------------------
397 dnl copy shells and utilities contained in the bin directory
398 dnl excluding .in files (treated in AC-OUTPUT below) and CVS
404 for i in $ROOT_SRCDIR/bin/*
406 local_bin=`echo $i | sed -e "s,$ROOT_SRCDIR,.,"`
409 ./bin/CVS | ./bin/salome) ;;
410 *) $INSTALL $i . ; echo $local_bin ;;
416 echo ---------------------------------------------
417 echo generating Makefiles and configure files
418 echo ---------------------------------------------
421 AC_OUTPUT_COMMANDS([ \
423 chmod +x ./bin/salome/*; \
426 # This list is initiated using autoscan and must be updated manually
427 # when adding a new file <filename>.in to manage. When you execute
428 # autoscan, the Makefile list is generated in the output file configure.scan.
429 # This could be helpfull to update de configuration.
431 ./salome_adm/unix/SALOMEconfig.h \
432 ./adm_local/Makefile \
433 ./adm_local/unix/Makefile \
434 ./adm_local/unix/config_files/Makefile \
439 ./doc/salome/Makefile \
440 ./doc/salome/gui/Makefile \
441 ./doc/salome/tui/Makefile \
442 ./doc/salome/tui/SMESH/doxyfile \
443 ./doc/salome/tui/SMESH/sources/static/tree.js \
445 ./src/Controls/Makefile \
446 ./src/Driver/Makefile \
447 ./src/DriverDAT/Makefile \
448 ./src/DriverMED/Makefile \
449 ./src/DriverSTL/Makefile \
450 ./src/DriverUNV/Makefile \
451 ./src/MEFISTO2/Makefile \
452 ./src/OBJECT/Makefile \
453 ./src/SMDS/Makefile \
454 ./src/SMESH/Makefile \
455 ./src/SMESHClient/Makefile \
456 ./src/SMESHDS/Makefile \
457 ./src/SMESHFiltersSelection/Makefile \
458 ./src/SMESHGUI/Makefile \
459 ./src/SMESH_I/Makefile \
460 ./src/SMESH_SWIG/Makefile \
461 ./src/StdMeshers/Makefile \
462 ./src/StdMeshersGUI/Makefile \
463 ./src/StdMeshers_I/Makefile \
464 ./resources/Makefile \
465 ./resources/SMESHCatalog.xml \