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 echo ---------------------------------------------
112 echo ---------------------------------------------
117 AC_F77_LIBRARY_LDFLAGS
119 AC_FC_LIBRARY_LDFLAGS
120 if test "X$FC" != "X" ; then
127 AC_CHECK_LIB(dl,dlopen)
129 dnl add library libm :
133 dnl Well we use sstream which is not in gcc pre-2.95.3
134 dnl We must test if it exists. If not, add it in include !
140 echo ---------------------------------------------
142 echo ---------------------------------------------
148 dnl ---------------------------------------------
150 dnl ---------------------------------------------
156 dnl ---------------------------------------------
158 dnl ---------------------------------------------
164 echo ---------------------------------------------
165 echo testing LEX \& YACC
166 echo ---------------------------------------------
175 echo ---------------------------------------------
177 echo ---------------------------------------------
183 dnl echo ---------------------------------------------
184 dnl echo testing java
185 dnl echo ---------------------------------------------
191 echo ---------------------------------------------
193 echo ---------------------------------------------
199 echo ---------------------------------------------
201 echo ---------------------------------------------
207 echo ---------------------------------------------
209 echo ---------------------------------------------
215 dnl echo ---------------------------------------------
216 dnl echo testing mico
217 dnl echo ---------------------------------------------
223 echo ---------------------------------------------
224 echo default ORB : omniORB
225 echo ---------------------------------------------
233 CORBA=adm_local/unix/$corba
235 if test "X$WITHIHM" = "Xyes"; then
237 echo ---------------------------------------------
239 echo ---------------------------------------------
246 echo ---------------------------------------------
248 echo ---------------------------------------------
254 echo ---------------------------------------------
256 echo ---------------------------------------------
261 if test "X$WITHIHM" = "Xyes"; then
263 echo ---------------------------------------------
265 echo ---------------------------------------------
272 echo ---------------------------------------------
274 echo ---------------------------------------------
280 echo ---------------------------------------------
281 echo Testing OpenCascade
282 echo ---------------------------------------------
288 echo ---------------------------------------------
289 echo Testing html generators
290 echo ---------------------------------------------
293 CHECK_HTML_GENERATORS
295 if test "X$WITHIHM" = "Xyes"; then
297 echo ---------------------------------------------
299 echo ---------------------------------------------
305 echo ---------------------------------------------
306 echo Testing full GUI
307 echo ---------------------------------------------
311 if test "x${CORBA_IN_GUI}" != "xyes"; then
312 echo "failed : For configure NETGENPLUGIN module necessary full GUI !"
318 echo ---------------------------------------------
320 echo ---------------------------------------------
326 echo ---------------------------------------------
328 echo ---------------------------------------------
334 # echo ---------------------------------------------
336 # echo ---------------------------------------------
342 echo ---------------------------------------------
344 echo ---------------------------------------------
350 echo ---------------------------------------------
352 echo ---------------------------------------------
358 echo ---------------------------------------------
360 echo ---------------------------------------------
364 variables="cc_ok fortran_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"
366 for var in $variables
368 printf " %10s : " `echo \$var | sed -e "s,_ok,,"`
373 echo "Default ORB : $DEFAULT_ORB"
376 dnl generals files which could be included in every makefile
378 AC_SUBST_FILE(COMMENCE) COMMENCE=adm_local/unix/make_commence
379 AC_SUBST_FILE(CONCLUDE) CONCLUDE=salome_adm/unix/make_conclude
380 AC_SUBST_FILE(MODULE) MODULE=salome_adm/unix/make_module
383 AC_SUBST_FILE(DEPEND) DEPEND=salome_adm/unix/depend
385 dnl We don t need to say when we re entering directories if we re using
386 dnl GNU make becuase make does it for us.
387 if test "X$GMAKE" = "Xyes"; then
388 AC_SUBST(SETX) SETX=":"
390 AC_SUBST(SETX) SETX="set -x"
393 # make other build directories
394 for rep in salome_adm adm_local doc bin/salome include/salome lib${LIB_LOCATION_SUFFIX}/salome share/salome/resources/${MODULE_NAME} idl
396 # if test ! -d $rep ; then
403 echo ---------------------------------------------
404 echo copying resource files, shell scripts, and
406 echo ---------------------------------------------
410 dnl copy resources directories
412 #for i in `find $ROOT_SRCDIR -name 'resources' -print`
414 # local_res=`echo $i | sed -e "s,$ROOT_SRCDIR,.,"`
415 # local_res_dir=`echo $local_res | sed -e "s,[[^/]]*$,,;s,/$,,;s,^$,.,"`
416 # mkdir -p $local_res_dir
423 dnl copy shells and utilities contained in the bin directory
424 dnl excluding .in files (treated in AC-OUTPUT below) and CVS
429 #for i in $ROOT_SRCDIR/bin/*
431 # local_bin=`echo $i | sed -e "s,$ROOT_SRCDIR,.,"`
432 # case "$local_bin" in
434 # ./bin/CVS | ./bin/salome) ;;
435 # *) /usr/bin/install -C $i .; echo $local_bin ;;
440 AC_SUBST_FILE(ENVSCRIPT) ENVSCRIPT=salome_adm/unix/envScript
442 dnl copy xml files to the build tree (lib directory)
446 #for i in `find $ROOT_SRCDIR -name "*.xml" -print`
449 # echo `echo $i | sed -e "s,$ROOT_SRCDIR,.,"`
455 echo ---------------------------------------------
456 echo generating Makefiles and configure files
457 echo ---------------------------------------------
460 #AC_OUTPUT_COMMANDS([ \
464 ## do not delete this line