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.3], [webmaster.salome@opencascade.com], [SalomeVISU])
29 AC_CONFIG_AUX_DIR(adm_local/unix/config_files)
32 AM_INIT_AUTOMAKE([-Wno-portability])
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 ---------------------------------------------
79 dnl libtool macro check for CC, LD, NM, LN_S, RANLIB, STRIP + pour les librairies dynamiques !
84 echo ---------------------------------------------
86 echo ---------------------------------------------
88 dnl first, we set static to no!
89 dnl if we want it, use --enable-static
95 dnl Fix up the INSTALL macro if it s a relative path. We want the
96 dnl full-path to the binary instead.
99 INSTALL='\${KERNEL_ROOT_DIR}'/adm_local/unix/config_files/install-sh
104 echo ---------------------------------------------
106 echo ---------------------------------------------
110 dnl inutil car libtool
114 # AC_CC_WARNINGS([ansi])
118 AC_CHECK_LIB(dl,dlopen)
120 dnl add library libm :
124 dnl Well we use sstream which is not in gcc pre-2.95.3
125 dnl We must test if it exists. If not, add it in include !
128 AC_CXX_USE_STD_IOSTREAM
134 dnl ---------------------------------------------
136 dnl ---------------------------------------------
142 echo ---------------------------------------------
143 echo testing LEX \& YACC
144 echo ---------------------------------------------
153 echo ---------------------------------------------
155 echo ---------------------------------------------
161 dnl echo ---------------------------------------------
162 dnl echo testing java
163 dnl echo ---------------------------------------------
169 echo ---------------------------------------------
171 echo ---------------------------------------------
178 echo ---------------------------------------------
180 echo ---------------------------------------------
186 echo ---------------------------------------------
188 echo ---------------------------------------------
194 dnl echo ---------------------------------------------
195 dnl echo testing mico
196 dnl echo ---------------------------------------------
202 echo ---------------------------------------------
203 echo default ORB : omniORB
204 echo ---------------------------------------------
212 CORBA=adm_local/unix/$corba
215 echo ---------------------------------------------
217 echo ---------------------------------------------
223 echo ---------------------------------------------
225 echo ---------------------------------------------
231 dnl echo ---------------------------------------------
232 dnl echo testing msg2qm
233 dnl echo ---------------------------------------------
239 echo ---------------------------------------------
241 echo ---------------------------------------------
247 echo ---------------------------------------------
249 echo ---------------------------------------------
255 echo ---------------------------------------------
257 echo ---------------------------------------------
263 echo ---------------------------------------------
264 echo Testing OpenCascade
265 echo ---------------------------------------------
271 echo ---------------------------------------------
273 echo ---------------------------------------------
279 echo ---------------------------------------------
280 echo Testing html generators
281 echo ---------------------------------------------
284 CHECK_HTML_GENERATORS
287 echo ---------------------------------------------
289 echo ---------------------------------------------
295 echo ---------------------------------------------
296 echo Testing full GUI
297 echo ---------------------------------------------
301 if test "x${CORBA_IN_GUI}" != "xyes"; then
302 echo "failed : For configure VISU module necessary full GUI !"
307 echo ---------------------------------------------
309 echo ---------------------------------------------
315 echo ---------------------------------------------
317 echo ---------------------------------------------
322 AM_CONDITIONAL(MED_ENABLE_MULTIPR, [test "$ENABLE_MULTIPR" = yes])
325 echo ---------------------------------------------
327 echo ---------------------------------------------
331 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"
333 for var in $variables
335 printf " %10s : " `echo \$var | sed -e "s,_ok,,"`
340 echo "Default ORB : $DEFAULT_ORB"
343 dnl We don t need to say when we re entering directories if we re using
344 dnl GNU make becuase make does it for us.
345 if test "X$GMAKE" = "Xyes"; then
346 AC_SUBST(SETX) SETX=":"
348 AC_SUBST(SETX) SETX="set -x"
352 echo ---------------------------------------------
353 echo generating Makefiles and configure files
354 echo ---------------------------------------------
357 AC_OUTPUT_COMMANDS([ \
361 # This list is initiated using autoscan and must be updated manually
362 # when adding a new file <filename>.in to manage. When you execute
363 # autoscan, the Makefile list is generated in the output file configure.scan.
364 # This could be helpfull to update de configuration.
369 adm_local/cmake_files/Makefile \
370 adm_local/unix/Makefile \
371 adm_local/unix/config_files/Makefile \
375 doc/salome/Makefile \
376 doc/salome/gui/Makefile \
377 doc/salome/gui/VISU/Makefile \
378 doc/salome/gui/VISU/doxyfile \
379 doc/salome/gui/VISU/doxyfile_idl \
380 doc/salome/tui/Makefile \
381 doc/salome/tui/doxyfile \
383 resources/VISUCatalog.xml \
386 src/CONVERTOR/Makefile \
387 src/PIPELINE/Makefile \
388 src/OBJECT/Makefile \
390 src/GUITOOLS/Makefile \
391 src/VISU_I/Makefile \
392 src/VISUGUI/Makefile \
393 src/VISU_SWIG/Makefile \