2 # PLEASE DO NOT MODIFY configure.in FILE
4 # ALL CHANGES WILL BE DISCARDED BY THE NEXT
5 # build_configure COMMAND
7 # CHANGES MUST BE MADE IN configure.in.base FILE
10 # Author : Marc Tajchman (CEA)
12 # Modified by : Patrick GOLDBRONN (CEA)
13 # Modified by : Marc Tajchman (CEA)
15 # Created from configure.in.base
18 AC_INIT([PARAVIS - SALOME GUI for ParaView], [0.1.0], [webmaster.salome@opencascade.com], [PARAVIS])
19 AC_CONFIG_AUX_DIR(salome_adm/unix/config_files)
24 XVERSION=`echo $VERSION | awk -F. '{printf("0x%02x%02x%02x",$1,$2,$3)}'`
27 # set up MODULE_NAME variable for dynamic construction of directories (resources, etc.)
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 AC_CHECK_PROG(SHELL,sh)
53 if test -z "$AR"; then
54 AC_CHECK_PROGS(AR,ar xar,:,$PATH)
58 dnl Export the AR macro so that it will be placed in the libtool file
63 echo ---------------------------------------------
65 echo ---------------------------------------------
71 dnl libtool macro check for CC, LD, NM, LN_S, RANLIB, STRIP + pour les librairies dynamiques !
76 echo ---------------------------------------------
78 echo ---------------------------------------------
80 dnl first, we set static to no!
81 dnl if we want it, use --enable-static
87 dnl Fix up the INSTALL macro if it s a relative path. We want the
88 dnl full-path to the binary instead.
91 INSTALL="\${KERNEL_ROOT_DIR}/salome_adm/unix/config_files/install-sh -c"
96 echo ---------------------------------------------
98 echo ---------------------------------------------
102 dnl inutil car libtool
106 AC_CXX_TEMPLATE_OPTIONS
108 # AC_CC_WARNINGS([ansi])
112 AC_CHECK_LIB(dl,dlopen)
114 dnl add library libm :
117 dnl Library librt : for alpha/osf
118 AC_CHECK_LIB(rt,nanosleep)
121 dnl Check if we use std iostream by default or if we must add
122 dnl a compiler directive for that
125 AC_CXX_USE_STD_IOSTREAM
128 dnl Well we use sstream which is not in gcc pre-2.95.3
129 dnl We must test if it exists. If not, add it in include !
135 dnl ---------------------------------------------
137 dnl ---------------------------------------------
143 dnl ---------------------------------------------
145 dnl ---------------------------------------------
152 dnl ---------------------------------------------
154 dnl ---------------------------------------------
160 echo ---------------------------------------------
161 echo testing LEX \& YACC
162 echo ---------------------------------------------
171 echo ---------------------------------------------
173 echo ---------------------------------------------
181 dnl echo ---------------------------------------------
182 dnl echo testing java
183 dnl echo ---------------------------------------------
189 #echo ---------------------------------------------
191 #echo ---------------------------------------------
197 echo ---------------------------------------------
199 echo ---------------------------------------------
205 echo ---------------------------------------------
207 echo ---------------------------------------------
213 echo ---------------------------------------------
215 echo ---------------------------------------------
221 echo ---------------------------------------------
222 echo testing ParaView
223 echo ---------------------------------------------
229 echo ---------------------------------------------
231 echo ---------------------------------------------
237 echo ---------------------------------------------
238 echo Testing OpenCascade
239 echo ---------------------------------------------
245 echo ---------------------------------------------
246 echo Testing html generators
247 echo ---------------------------------------------
250 CHECK_HTML_GENERATORS
253 echo ---------------------------------------------
255 echo ---------------------------------------------
261 echo ---------------------------------------------
263 echo ---------------------------------------------
269 echo ---------------------------------------------
271 echo ---------------------------------------------
275 variables="cc_ok lex_yacc_ok python_ok threads_ok OpenGL_ok qt_ok paraview_ok hdf5_ok occ_ok doxygen_ok graphviz_ok Kernel_ok SalomeGUI_ok"
277 for var in $variables
279 printf " %10s : " `echo \$var | sed -e "s,_ok,,"`
283 dnl We don t need to say when we re entering directories if we re using
284 dnl GNU make becuase make does it for us.
285 if test "X$GMAKE" = "Xyes"; then
286 AC_SUBST(SETX) SETX=":"
288 AC_SUBST(SETX) SETX="set -x"
291 echo ---------------------------------------------
292 echo generating Makefiles and configure files
293 echo ---------------------------------------------
296 AC_OUTPUT_COMMANDS([ \
300 # This list is initiated using autoscan and must be updated manually
301 # when adding a new file <filename>.in to manage. When you execute
302 # autoscan, the Makefile list is generated in the output file configure.scan.
303 # This could be helpfull to update de configuration.
305 ./salome_adm/unix/SALOMEconfig.h \
306 ./adm_local/Makefile \
307 ./adm_local/unix/Makefile \
308 ./adm_local/unix/config_files/Makefile \
312 ./doc/salome/Makefile \
313 ./doc/salome/gui/Makefile \
314 ./doc/salome/gui/doxyfile \
316 ./src/PVGUI/Makefile \
317 ./resources/Makefile \
318 ./PARAVIS_version.h \