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/DEPRECATED)
30 # set up MODULE_NAME variable for dynamic construction of directories (resources, etc.)
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
62 if test `uname -r` = "2.4.18-14" || test `uname -r` = "2.4.20-20.8"; then
68 echo ---------------------------------------------
70 echo ---------------------------------------------
76 dnl libtool macro check for CC, LD, NM, LN_S, RANLIB, STRIP + pour les librairies dynamiques !
81 echo ---------------------------------------------
83 echo ---------------------------------------------
85 dnl first, we set static to no!
86 dnl if we want it, use --enable-static
92 dnl Fix up the INSTALL macro if it s a relative path. We want the
93 dnl full-path to the binary instead.
96 INSTALL='\${KERNEL_ROOT_DIR}'/salome_adm/unix/config_files/install-sh
101 echo ---------------------------------------------
103 echo ---------------------------------------------
107 dnl inutil car libtool
111 # AC_CC_WARNINGS([ansi])
115 AC_CHECK_LIB(dl,dlopen)
117 dnl add library libm :
121 dnl Well we use sstream which is not in gcc pre-2.95.3
122 dnl We must test if it exists. If not, add it in include !
128 dnl ---------------------------------------------
130 dnl ---------------------------------------------
136 echo ---------------------------------------------
137 echo testing LEX \& YACC
138 echo ---------------------------------------------
147 echo ---------------------------------------------
149 echo ---------------------------------------------
155 dnl echo ---------------------------------------------
156 dnl echo testing java
157 dnl echo ---------------------------------------------
163 echo ---------------------------------------------
165 echo ---------------------------------------------
171 echo ---------------------------------------------
173 echo ---------------------------------------------
179 echo ---------------------------------------------
181 echo ---------------------------------------------
187 dnl echo ---------------------------------------------
188 dnl echo testing mico
189 dnl echo ---------------------------------------------
195 echo ---------------------------------------------
196 echo default ORB : omniORB
197 echo ---------------------------------------------
205 CORBA=adm_local/unix/$corba
208 echo ---------------------------------------------
210 echo ---------------------------------------------
216 dnl ---------------------------------------------
218 dnl ---------------------------------------------
223 if test "X$WITHIHM" = "Xyes"; then
226 echo ---------------------------------------------
228 echo ---------------------------------------------
234 echo ---------------------------------------------
236 echo ---------------------------------------------
242 echo ---------------------------------------------
244 echo ---------------------------------------------
252 echo ---------------------------------------------
254 echo ---------------------------------------------
260 echo ---------------------------------------------
262 echo ---------------------------------------------
268 echo ---------------------------------------------
269 echo Testing OpenCascade
270 echo ---------------------------------------------
276 echo ---------------------------------------------
277 echo Testing html generators
278 echo ---------------------------------------------
281 CHECK_HTML_GENERATORS
283 if test "X$WITHIHM" = "Xyes"; then
287 echo ---------------------------------------------
289 echo ---------------------------------------------
295 echo ---------------------------------------------
296 echo Testing full GUI
297 echo ---------------------------------------------
301 if test "x${CORBA_IN_GUI}" != "xyes"; then
302 echo "failed : For configure SUPERV module necessary full GUI !"
307 echo ---------------------------------------------
309 echo ---------------------------------------------
315 echo ---------------------------------------------
317 echo ---------------------------------------------
321 if test "X$WITHIHM" = "Xyes"; then
322 variables="cc_ok lex_yacc_ok python_ok swig_ok threads_ok OpenGL_ok qt_ok vtk_ok hdf5_ok omniORB_ok boost_ok occ_ok doxygen_ok graphviz_ok Kernel_ok"
324 if test "X$WITHIHM" = "Xno"; then
325 variables="cc_ok lex_yacc_ok python_ok swig_ok threads_ok qt_ok hdf5_ok omniORB_ok boost_ok occ_ok Kernel_ok"
328 for var in $variables
330 printf " %10s : " `echo \$var | sed -e "s,_ok,,"`
335 echo "Default ORB : $DEFAULT_ORB"
338 dnl generals files which could be included in every makefile
340 AC_SUBST_FILE(COMMENCE) COMMENCE=adm_local/unix/make_commence
341 AC_SUBST_FILE(CONCLUDE) CONCLUDE=salome_adm/unix/make_conclude
342 AC_SUBST_FILE(MODULE) MODULE=salome_adm/unix/make_module
345 AC_SUBST_FILE(DEPEND) DEPEND=salome_adm/unix/depend
347 dnl We don t need to say when we re entering directories if we re using
348 dnl GNU make becuase make does it for us.
349 if test "X$GMAKE" = "Xyes"; then
350 AC_SUBST(SETX) SETX=":"
352 AC_SUBST(SETX) SETX="set -x"
355 # make other build directories
356 for rep in salome_adm adm_local doc bin/salome include/salome lib${LIB_LOCATION_SUFFIX}/salome share/salome/resources/${MODULE_NAME} idl
358 # if test ! -d $rep ; then
365 echo ---------------------------------------------
366 echo copying resource files, shell scripts, and
368 echo ---------------------------------------------
372 dnl copy resources directories
374 #for i in `find $ROOT_SRCDIR -name 'resources' -print`
376 # local_res=`echo $i | sed -e "s,$ROOT_SRCDIR,.,"`
377 # local_res_dir=`echo $local_res | sed -e "s,[[^/]]*$,,;s,/$,,;s,^$,.,"`
378 # mkdir -p $local_res_dir
385 dnl copy shells and utilities contained in the bin directory
386 dnl excluding .in files (treated in AC-OUTPUT below) and CVS
391 for i in $ROOT_SRCDIR/bin/*
393 local_bin=`echo $i | sed -e "s,$ROOT_SRCDIR,.,"`
396 ./bin/CVS | ./bin/salome) ;;
397 *) /usr/bin/install $i .; echo $local_bin ;;
402 AC_SUBST_FILE(ENVSCRIPT) ENVSCRIPT=salome_adm/unix/envScript
404 dnl copy xml files to the build tree (lib directory)
408 #for i in `find $ROOT_SRCDIR -name "*.xml" -print`
411 # echo `echo $i | sed -e "s,$ROOT_SRCDIR,.,"`
417 echo ---------------------------------------------
418 echo generating Makefiles and configure files
419 echo ---------------------------------------------
422 AC_OUTPUT_COMMANDS([ \
426 ## do not delete this line