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 # Author : Marc Tajchman (CEA)
24 # Modified by : Patrick GOLDBRONN (CEA)
25 # Modified by : Marc Tajchman (CEA)
26 # Modified by : Mikhail Ponikarov (OCN)
28 AC_INIT([Salome2 Project VISU module], [5.1.0], [webmaster.salome@opencascade.com], [SalomeVISU])
29 AC_CONFIG_AUX_DIR(salome_adm/unix/config_files)
34 XVERSION=`echo $VERSION | awk -F. '{printf("0x%02x%02x%02x",$1,$2,$3)}'`
37 # set up MODULE_NAME variable for dynamic construction of directories (resources, etc.)
42 dnl Initialize source and build root directories
46 ROOT_SRCDIR=`echo $0 | sed -e "s,[[^/]]*$,,;s,/$,,;s,^$,.,"`
52 AC_SUBST(ROOT_BUILDDIR)
55 echo Source root directory : $ROOT_SRCDIR
56 echo Build root directory : $ROOT_BUILDDIR
60 if test -z "$AR"; then
61 AC_CHECK_PROGS(AR,ar xar,:,$PATH)
65 dnl Export the AR macro so that it will be placed in the libtool file
70 echo ---------------------------------------------
72 echo ---------------------------------------------
78 dnl libtool macro check for CC, LD, NM, LN_S, RANLIB, STRIP + pour les librairies dynamiques !
83 echo ---------------------------------------------
85 echo ---------------------------------------------
87 dnl first, we set static to no!
88 dnl if we want it, use --enable-static
94 dnl Fix up the INSTALL macro if it s a relative path. We want the
95 dnl full-path to the binary instead.
98 INSTALL='\${KERNEL_ROOT_DIR}'/salome_adm/unix/config_files/install-sh
103 echo ---------------------------------------------
105 echo ---------------------------------------------
109 dnl inutil car libtool
113 # AC_CC_WARNINGS([ansi])
117 AC_CHECK_LIB(dl,dlopen)
119 dnl add library libm :
123 dnl Well we use sstream which is not in gcc pre-2.95.3
124 dnl We must test if it exists. If not, add it in include !
127 AC_CXX_USE_STD_IOSTREAM
133 dnl ---------------------------------------------
135 dnl ---------------------------------------------
141 echo ---------------------------------------------
142 echo testing LEX \& YACC
143 echo ---------------------------------------------
152 echo ---------------------------------------------
154 echo ---------------------------------------------
160 dnl echo ---------------------------------------------
161 dnl echo testing java
162 dnl echo ---------------------------------------------
168 echo ---------------------------------------------
170 echo ---------------------------------------------
177 echo ---------------------------------------------
179 echo ---------------------------------------------
185 echo ---------------------------------------------
187 echo ---------------------------------------------
193 dnl echo ---------------------------------------------
194 dnl echo testing mico
195 dnl echo ---------------------------------------------
201 echo ---------------------------------------------
202 echo default ORB : omniORB
203 echo ---------------------------------------------
211 CORBA=adm_local/unix/$corba
214 echo ---------------------------------------------
216 echo ---------------------------------------------
222 echo ---------------------------------------------
224 echo ---------------------------------------------
230 dnl echo ---------------------------------------------
231 dnl echo testing msg2qm
232 dnl echo ---------------------------------------------
238 echo ---------------------------------------------
240 echo ---------------------------------------------
246 echo ---------------------------------------------
248 echo ---------------------------------------------
254 echo ---------------------------------------------
256 echo ---------------------------------------------
262 echo ---------------------------------------------
263 echo Testing OpenCascade
264 echo ---------------------------------------------
270 echo ---------------------------------------------
272 echo ---------------------------------------------
278 echo ---------------------------------------------
279 echo Testing html generators
280 echo ---------------------------------------------
283 CHECK_HTML_GENERATORS
286 echo ---------------------------------------------
288 echo ---------------------------------------------
294 echo ---------------------------------------------
295 echo Testing full GUI
296 echo ---------------------------------------------
300 if test "x${CORBA_IN_GUI}" != "xyes"; then
301 echo "failed : For configure VISU module necessary full GUI !"
306 echo ---------------------------------------------
308 echo ---------------------------------------------
314 echo ---------------------------------------------
316 echo ---------------------------------------------
321 AM_CONDITIONAL(MED_ENABLE_MULTIPR, [test "$ENABLE_MULTIPR" = yes])
324 echo ---------------------------------------------
326 echo ---------------------------------------------
330 variables="cc_ok boost_ok lex_yacc_ok python_ok swig_ok threads_ok OpenGL_ok qt_ok vtk_ok hdf5_ok omniORB_ok occ_ok qwt_ok doxygen_ok graphviz_ok Kernel_ok Med_ok SalomeGUI_ok"
332 for var in $variables
334 printf " %10s : " `echo \$var | sed -e "s,_ok,,"`
339 echo "Default ORB : $DEFAULT_ORB"
342 dnl We don t need to say when we re entering directories if we re using
343 dnl GNU make becuase make does it for us.
344 if test "X$GMAKE" = "Xyes"; then
345 AC_SUBST(SETX) SETX=":"
347 AC_SUBST(SETX) SETX="set -x"
351 echo ---------------------------------------------
352 echo generating Makefiles and configure files
353 echo ---------------------------------------------
356 AC_OUTPUT_COMMANDS([ \
360 # This list is initiated using autoscan and must be updated manually
361 # when adding a new file <filename>.in to manage. When you execute
362 # autoscan, the Makefile list is generated in the output file configure.scan.
363 # This could be helpfull to update de configuration.
365 ./salome_adm/unix/SALOMEconfig.h \
368 ./adm_local/Makefile \
369 ./adm_local/unix/Makefile \
370 ./adm_local/unix/config_files/Makefile \
374 ./doc/salome/Makefile \
375 ./doc/salome/gui/Makefile \
376 ./doc/salome/gui/VISU/Makefile \
377 ./doc/salome/gui/VISU/doxyfile \
378 ./doc/salome/gui/VISU/doxyfile_idl \
379 ./doc/salome/tui/Makefile \
380 ./doc/salome/tui/doxyfile \
382 ./resources/VISUCatalog.xml \
383 ./resources/Makefile \
385 ./src/CONVERTOR/Makefile \
386 ./src/PIPELINE/Makefile \
387 ./src/OBJECT/Makefile \
388 ./src/VVTK/Makefile \
389 ./src/GUITOOLS/Makefile \
390 ./src/VISU_I/Makefile \
391 ./src/VISUGUI/Makefile \
392 ./src/VISU_SWIG/Makefile \
393 ./src/ENGINE/Makefile