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 ---------------------------------------------
101 AC_CHECK_PROG(HAS_CMAKE,cmake,"yes")
102 AM_CONDITIONAL(BUILD_PLUGINS, test "$HAS_CMAKE" = "yes")
103 if test "$HAS_CMAKE" != "yes"; then
104 AC_MSG_WARN(CMake not found so ParaView plugins will not be built)
108 echo ---------------------------------------------
110 echo ---------------------------------------------
114 dnl inutil car libtool
118 AC_CXX_TEMPLATE_OPTIONS
120 # AC_CC_WARNINGS([ansi])
124 AC_CHECK_LIB(dl,dlopen)
126 dnl add library libm :
129 dnl Library librt : for alpha/osf
130 AC_CHECK_LIB(rt,nanosleep)
133 dnl Check if we use std iostream by default or if we must add
134 dnl a compiler directive for that
137 AC_CXX_USE_STD_IOSTREAM
140 dnl Well we use sstream which is not in gcc pre-2.95.3
141 dnl We must test if it exists. If not, add it in include !
147 dnl ---------------------------------------------
149 dnl ---------------------------------------------
155 dnl ---------------------------------------------
157 dnl ---------------------------------------------
164 dnl ---------------------------------------------
166 dnl ---------------------------------------------
172 echo ---------------------------------------------
173 echo testing LEX \& YACC
174 echo ---------------------------------------------
183 echo ---------------------------------------------
185 echo ---------------------------------------------
193 dnl echo ---------------------------------------------
194 dnl echo testing java
195 dnl echo ---------------------------------------------
201 #echo ---------------------------------------------
203 #echo ---------------------------------------------
209 echo ---------------------------------------------
211 echo ---------------------------------------------
217 echo ---------------------------------------------
219 echo ---------------------------------------------
225 echo ---------------------------------------------
227 echo ---------------------------------------------
233 echo ---------------------------------------------
235 echo ---------------------------------------------
241 echo ---------------------------------------------
242 echo testing ParaView
243 echo ---------------------------------------------
249 echo ---------------------------------------------
250 echo Testing OpenCascade
251 echo ---------------------------------------------
257 echo ---------------------------------------------
258 echo Testing html generators
259 echo ---------------------------------------------
262 CHECK_HTML_GENERATORS
265 echo ---------------------------------------------
267 echo ---------------------------------------------
273 echo ---------------------------------------------
275 echo ---------------------------------------------
281 echo ---------------------------------------------
283 echo ---------------------------------------------
287 variables="cc_ok lex_yacc_ok python_ok threads_ok OpenGL_ok qt_ok hdf5_ok paraview_ok occ_ok doxygen_ok graphviz_ok Kernel_ok SalomeGUI_ok"
289 for var in $variables
291 printf " %10s : " `echo \$var | sed -e "s,_ok,,"`
295 # Generating makefiles for ParaView plugins using CMake
296 # cmake executable must be available in PATH
297 if test "$HAS_CMAKE" = "yes"; then
300 echo ---------------------------------------------
301 echo Invoking CMake to generate Makefiles for ParaView plugins
302 echo ---------------------------------------------
306 if ! test -d ${ROOT_BUILDDIR}/src/Plugins; then
307 mkdir -p ${ROOT_BUILDDIR}/src/Plugins
309 cd ${ROOT_BUILDDIR}/src/Plugins
310 cmake -D ParaView_DIR=${PVINSTALLHOME} -D CMAKE_BUILD_TYPE=Debug -D CMAKE_INSTALL_PREFIX=${PARAVIS_ROOT_DIR}/lib/salome ${ROOT_SRCDIR}/src/Plugins
315 dnl We don t need to say when we re entering directories if we re using
316 dnl GNU make becuase make does it for us.
317 if test "X$GMAKE" = "Xyes"; then
318 AC_SUBST(SETX) SETX=":"
320 AC_SUBST(SETX) SETX="set -x"
323 echo ---------------------------------------------
324 echo generating Makefiles and configure files
325 echo ---------------------------------------------
328 AC_OUTPUT_COMMANDS([ \
332 # This list is initiated using autoscan and must be updated manually
333 # when adding a new file <filename>.in to manage. When you execute
334 # autoscan, the Makefile list is generated in the output file configure.scan.
335 # This could be helpfull to update de configuration.
337 ./salome_adm/unix/SALOMEconfig.h \
338 ./adm_local/Makefile \
339 ./adm_local/unix/Makefile \
340 ./adm_local/unix/config_files/Makefile \
344 ./doc/salome/Makefile \
345 ./doc/salome/gui/Makefile \
346 ./doc/salome/gui/doxyfile \
348 ./src/PVGUI/Makefile \
349 ./resources/Makefile \
350 ./PARAVIS_version.h \