1 # Copyright (C) 2007-2010 CEA/DEN, EDF R&D, OPEN CASCADE
3 # This library is free software; you can redistribute it and/or
4 # modify it under the terms of the GNU Lesser General Public
5 # License as published by the Free Software Foundation; either
6 # version 2.1 of the License.
8 # This library is distributed in the hope that it will be useful,
9 # but WITHOUT ANY WARRANTY; without even the implied warranty of
10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11 # Lesser General Public License for more details.
13 # You should have received a copy of the GNU Lesser General Public
14 # License along with this library; if not, write to the Free Software
15 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17 # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
20 # Author : Marc Tajchman (CEA)
22 # Modified by : Patrick GOLDBRONN (CEA)
23 # Modified by : Marc Tajchman (CEA)
24 # Modified by : Mikhail Ponikarov (OCN)
26 AC_INIT([Salome2 Project VISU module], [6.2.0], [webmaster.salome@opencascade.com], [SalomeVISU])
27 AC_CONFIG_AUX_DIR(adm_local/unix/config_files)
30 AM_INIT_AUTOMAKE([-Wno-portability])
32 XVERSION=`echo $VERSION | awk -F. '{printf("0x%02x%02x%02x",$1,$2,$3)}'`
35 # set up MODULE_NAME variable for dynamic construction of directories (resources, etc.)
40 dnl Initialize source and build root directories
44 ROOT_SRCDIR=`echo $0 | sed -e "s,[[^/]]*$,,;s,/$,,;s,^$,.,"`
50 AC_SUBST(ROOT_BUILDDIR)
53 echo Source root directory : $ROOT_SRCDIR
54 echo Build root directory : $ROOT_BUILDDIR
58 if test -z "$AR"; then
59 AC_CHECK_PROGS(AR,ar xar,:,$PATH)
63 dnl Export the AR macro so that it will be placed in the libtool file
68 echo ---------------------------------------------
70 echo ---------------------------------------------
77 dnl libtool macro check for CC, LD, NM, LN_S, RANLIB, STRIP + pour les librairies dynamiques !
82 echo ---------------------------------------------
84 echo ---------------------------------------------
86 dnl first, we set static to no!
87 dnl if we want it, use --enable-static
93 dnl Fix up the INSTALL macro if it s a relative path. We want the
94 dnl full-path to the binary instead.
97 INSTALL='\${KERNEL_ROOT_DIR}'/adm_local/unix/config_files/install-sh
102 echo ---------------------------------------------
104 echo ---------------------------------------------
108 dnl inutil car libtool
112 # AC_CC_WARNINGS([ansi])
116 AC_CHECK_LIB(dl,dlopen)
118 dnl add library libm :
122 dnl Well we use sstream which is not in gcc pre-2.95.3
123 dnl We must test if it exists. If not, add it in include !
126 AC_CXX_USE_STD_IOSTREAM
132 dnl ---------------------------------------------
134 dnl ---------------------------------------------
140 echo ---------------------------------------------
142 echo ---------------------------------------------
148 echo ---------------------------------------------
149 echo testing LEX \& YACC
150 echo ---------------------------------------------
159 echo ---------------------------------------------
161 echo ---------------------------------------------
167 dnl echo ---------------------------------------------
168 dnl echo testing java
169 dnl echo ---------------------------------------------
175 echo ---------------------------------------------
177 echo ---------------------------------------------
184 echo ---------------------------------------------
186 echo ---------------------------------------------
192 echo ---------------------------------------------
194 echo ---------------------------------------------
200 dnl echo ---------------------------------------------
201 dnl echo testing mico
202 dnl echo ---------------------------------------------
208 echo ---------------------------------------------
209 echo default ORB : omniORB
210 echo ---------------------------------------------
218 CORBA=adm_local/unix/$corba
221 echo ---------------------------------------------
223 echo ---------------------------------------------
229 echo ---------------------------------------------
231 echo ---------------------------------------------
237 dnl echo ---------------------------------------------
238 dnl echo testing msg2qm
239 dnl echo ---------------------------------------------
245 echo ---------------------------------------------
247 echo ---------------------------------------------
253 echo ---------------------------------------------
255 echo ---------------------------------------------
261 echo ---------------------------------------------
263 echo ---------------------------------------------
269 echo ---------------------------------------------
270 echo Testing OpenCascade
271 echo ---------------------------------------------
277 echo ---------------------------------------------
279 echo ---------------------------------------------
285 echo ---------------------------------------------
286 echo Testing html generators
287 echo ---------------------------------------------
290 CHECK_HTML_GENERATORS
293 echo ---------------------------------------------
295 echo ---------------------------------------------
301 echo ---------------------------------------------
302 echo Testing full GUI
303 echo ---------------------------------------------
307 if test "x${CORBA_IN_GUI}" != "xyes"; then
308 echo "failed : For configure VISU module necessary full GUI !"
313 echo ---------------------------------------------
315 echo ---------------------------------------------
321 echo ---------------------------------------------
323 echo ---------------------------------------------
328 AM_CONDITIONAL(MED_ENABLE_MULTIPR, [test "$ENABLE_MULTIPR" = yes])
331 echo ---------------------------------------------
333 echo ---------------------------------------------
337 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"
339 for var in $variables
341 printf " %10s : " `echo \$var | sed -e "s,_ok,,"`
346 echo "Default ORB : $DEFAULT_ORB"
349 dnl We don t need to say when we re entering directories if we re using
350 dnl GNU make becuase make does it for us.
351 if test "X$GMAKE" = "Xyes"; then
352 AC_SUBST(SETX) SETX=":"
354 AC_SUBST(SETX) SETX="set -x"
358 echo ---------------------------------------------
359 echo generating Makefiles and configure files
360 echo ---------------------------------------------
363 AC_OUTPUT_COMMANDS([ \
368 AC_CONFIG_COMMANDS([hack_libtool],[
369 sed -i "s%^CC=\"\(.*\)\"%hack_libtool (){ \n\
370 $(pwd)/hack_libtool \1 \"\$[@]\" \n\
372 CC=\"hack_libtool\"%g" libtool
373 sed -i "s%\(\s*\)for searchdir in \$newlib_search_path \$lib_search_path \$sys_lib_search_path \$shlib_search_path; do%\1searchdirs=\"\$newlib_search_path \$lib_search_path \$sys_lib_search_path \$shlib_search_path\"\n\1for searchdir in \$searchdirs; do%g" libtool
374 sed -i "s%\(\s*\)searchdirs=\"\$newlib_search_path \$lib_search_path \(.*\)\"%\1searchdirs=\"\$newlib_search_path \$lib_search_path\"\n\1sss_beg=\"\"\n\1sss_end=\"\2\"%g" libtool
375 sed -i "s%\(\s*\)\(for searchdir in \$searchdirs; do\)%\1for sss in \$searchdirs; do\n\1 if ! test -d \$sss; then continue; fi\n\1 ssss=\$(cd \$sss; pwd)\n\1 if test \"\$ssss\" != \"\" \&\& test -d \$ssss; then\n\1 case \$ssss in\n\1 /usr/lib | /usr/lib64 ) ;;\n\1 * ) sss_beg=\"\$sss_beg \$ssss\" ;;\n\1 esac\n\1 fi\n\1done\n\1searchdirs=\"\$sss_beg \$sss_end\"\n\1\2%g" libtool
378 # This list is initiated using autoscan and must be updated manually
379 # when adding a new file <filename>.in to manage. When you execute
380 # autoscan, the Makefile list is generated in the output file configure.scan.
381 # This could be helpfull to update de configuration.
386 adm_local/cmake_files/Makefile \
387 adm_local/unix/Makefile \
388 adm_local/unix/config_files/Makefile \
392 doc/salome/Makefile \
393 doc/salome/gui/Makefile \
394 doc/salome/gui/VISU/Makefile \
395 doc/salome/gui/VISU/doxyfile \
396 doc/salome/gui/VISU/doxyfile_idl \
397 doc/salome/gui/VISU/static/header.html \
398 doc/salome/tui/Makefile \
399 doc/salome/tui/doxyfile \
400 doc/salome/tui/static/header.html \
402 resources/VISUCatalog.xml \
405 src/CONVERTOR/Makefile \
406 src/PIPELINE/Makefile \
407 src/OBJECT/Makefile \
408 src/VISU_I/Makefile \
409 src/VISUGUI/Makefile \
410 src/VISU_SWIG/Makefile \