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
19 AC_CONFIG_AUX_DIR(${KERNEL_ROOT_DIR}/salome_adm/unix/config_files)
30 # set up MODULE_NAME variable for dynamic construction of directories (resources, etc.)
31 MODULE_NAME=netgenplugin
35 dnl Initialize source and build root directories
39 ROOT_SRCDIR=`echo $0 | sed -e "s,[[^/]]*$,,;s,/$,,;s,^$,.,"`
45 AC_SUBST(ROOT_BUILDDIR)
48 echo Source root directory : $ROOT_SRCDIR
49 echo Build root directory : $ROOT_BUILDDIR
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
96 echo ---------------------------------------------
98 echo ---------------------------------------------
102 dnl inutil car libtool
106 # AC_CC_WARNINGS([ansi])
110 AC_CHECK_LIB(dl,dlopen)
112 dnl add library libm :
116 dnl Well we use sstream which is not in gcc pre-2.95.3
117 dnl We must test if it exists. If not, add it in include !
123 echo ---------------------------------------------
125 echo ---------------------------------------------
131 dnl ---------------------------------------------
133 dnl ---------------------------------------------
139 echo ---------------------------------------------
140 echo testing LEX \& YACC
141 echo ---------------------------------------------
150 echo ---------------------------------------------
152 echo ---------------------------------------------
158 dnl echo ---------------------------------------------
159 dnl echo testing java
160 dnl echo ---------------------------------------------
166 echo ---------------------------------------------
168 echo ---------------------------------------------
174 echo ---------------------------------------------
176 echo ---------------------------------------------
182 echo ---------------------------------------------
184 echo ---------------------------------------------
190 dnl echo ---------------------------------------------
191 dnl echo testing mico
192 dnl echo ---------------------------------------------
198 echo ---------------------------------------------
199 echo default ORB : omniORB
200 echo ---------------------------------------------
208 CORBA=adm_local/unix/$corba
211 echo ---------------------------------------------
213 echo ---------------------------------------------
219 echo ---------------------------------------------
221 echo ---------------------------------------------
227 echo ---------------------------------------------
229 echo ---------------------------------------------
235 echo ---------------------------------------------
237 echo ---------------------------------------------
243 echo ---------------------------------------------
245 echo ---------------------------------------------
251 echo ---------------------------------------------
252 echo Testing OpenCascade
253 echo ---------------------------------------------
259 echo ---------------------------------------------
260 echo Testing html generators
261 echo ---------------------------------------------
264 CHECK_HTML_GENERATORS
267 echo ---------------------------------------------
269 echo ---------------------------------------------
275 echo ---------------------------------------------
276 echo Testing full GUI
277 echo ---------------------------------------------
281 if test "x${CORBA_IN_GUI}" != "xyes"; then
282 echo "failed : For configure NETGENPLUGIN module necessary full GUI !"
287 echo ---------------------------------------------
289 echo ---------------------------------------------
295 echo ---------------------------------------------
297 echo ---------------------------------------------
303 # echo ---------------------------------------------
305 # echo ---------------------------------------------
311 echo ---------------------------------------------
313 echo ---------------------------------------------
319 echo ---------------------------------------------
321 echo ---------------------------------------------
327 echo ---------------------------------------------
329 echo ---------------------------------------------
333 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 doxygen_ok graphviz_ok Kernel_ok Geom_ok SMesh_ok Netgen_ok"
335 for var in $variables
337 printf " %10s : " `echo \$var | sed -e "s,_ok,,"`
342 echo "Default ORB : $DEFAULT_ORB"
345 dnl generals files which could be included in every makefile
347 AC_SUBST_FILE(COMMENCE) COMMENCE=adm_local/unix/make_commence
348 AC_SUBST_FILE(CONCLUDE) CONCLUDE=salome_adm/unix/make_conclude
349 AC_SUBST_FILE(MODULE) MODULE=salome_adm/unix/make_module
352 AC_SUBST_FILE(DEPEND) DEPEND=salome_adm/unix/depend
354 dnl We don t need to say when we re entering directories if we re using
355 dnl GNU make becuase make does it for us.
356 if test "X$GMAKE" = "Xyes"; then
357 AC_SUBST(SETX) SETX=":"
359 AC_SUBST(SETX) SETX="set -x"
362 # make other build directories
363 for rep in salome_adm adm_local doc bin/salome include/salome lib${LIB_LOCATION_SUFFIX}/salome share/salome/resources/${MODULE_NAME} idl
365 # if test ! -d $rep ; then
372 echo ---------------------------------------------
373 echo copying resource files, shell scripts, and
375 echo ---------------------------------------------
379 dnl copy resources directories
381 #for i in `find $ROOT_SRCDIR -name 'resources' -print`
383 # local_res=`echo $i | sed -e "s,$ROOT_SRCDIR,.,"`
384 # local_res_dir=`echo $local_res | sed -e "s,[[^/]]*$,,;s,/$,,;s,^$,.,"`
385 # mkdir -p $local_res_dir
392 dnl copy shells and utilities contained in the bin directory
393 dnl excluding .in files (treated in AC-OUTPUT below) and CVS
398 #for i in $ROOT_SRCDIR/bin/*
400 # local_bin=`echo $i | sed -e "s,$ROOT_SRCDIR,.,"`
401 # case "$local_bin" in
403 # ./bin/CVS | ./bin/salome) ;;
404 # *) /usr/bin/install -C $i .; echo $local_bin ;;
409 AC_SUBST_FILE(ENVSCRIPT) ENVSCRIPT=salome_adm/unix/envScript
411 dnl copy xml files to the build tree (lib directory)
415 #for i in `find $ROOT_SRCDIR -name "*.xml" -print`
418 # echo `echo $i | sed -e "s,$ROOT_SRCDIR,.,"`
424 echo ---------------------------------------------
425 echo generating Makefiles and configure files
426 echo ---------------------------------------------
429 #AC_OUTPUT_COMMANDS([ \
433 ## do not delete this line