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)
29 dnl Initialize source and build root directories
33 ROOT_SRCDIR=`echo $0 | sed -e "s,[[^/]]*$,,;s,/$,,;s,^$,.,"`
39 AC_SUBST(ROOT_BUILDDIR)
42 echo Source root directory : $ROOT_SRCDIR
43 echo Build root directory : $ROOT_BUILDDIR
47 dnl Modification B. Secher portage sur osf CCRT
48 AC_CHECK_PROG(SHELL,sh,,)
51 if test -z "$AR"; then
52 AC_CHECK_PROGS(AR,ar xar,:,$PATH)
56 dnl Export the AR macro so that it will be placed in the libtool file
61 echo ---------------------------------------------
63 echo ---------------------------------------------
69 dnl libtool macro check for CC, LD, NM, LN_S, RANLIB, STRIP + pour les librairies dynamiques !
74 echo ---------------------------------------------
76 echo ---------------------------------------------
78 dnl first, we set static to no!
79 dnl if we want it, use --enable-static
85 dnl Fix up the INSTALL macro if it s a relative path. We want the
86 dnl full-path to the binary instead.
89 INSTALL="\${KERNEL_ROOT_DIR}/salome_adm/unix/config_files/install-sh -c"
94 echo ---------------------------------------------
96 echo ---------------------------------------------
100 dnl inutil car libtool
104 AC_CXX_TEMPLATE_OPTIONS
106 # AC_CC_WARNINGS([ansi])
110 AC_CHECK_LIB(dl,dlopen)
112 dnl add library libm :
115 dnl Library librt : for alpha/osf
116 AC_CHECK_LIB(rt,nanosleep)
119 dnl Check if we use std iostream by default or if we must add
120 dnl a compiler directive for that
123 AC_CXX_USE_STD_IOSTREAM
126 dnl Well we use sstream which is not in gcc pre-2.95.3
127 dnl We must test if it exists. If not, add it in include !
133 dnl ---------------------------------------------
135 dnl ---------------------------------------------
141 dnl ---------------------------------------------
143 dnl ---------------------------------------------
150 dnl ---------------------------------------------
152 dnl ---------------------------------------------
158 echo ---------------------------------------------
159 echo testing LEX \& YACC
160 echo ---------------------------------------------
169 echo ---------------------------------------------
171 echo ---------------------------------------------
177 dnl echo ---------------------------------------------
178 dnl echo testing java
179 dnl echo ---------------------------------------------
185 echo ---------------------------------------------
187 echo ---------------------------------------------
193 echo ---------------------------------------------
195 echo ---------------------------------------------
201 echo ---------------------------------------------
203 echo ---------------------------------------------
209 dnl echo ---------------------------------------------
210 dnl echo testing mico
211 dnl echo ---------------------------------------------
217 echo ---------------------------------------------
218 echo default ORB : omniORB
219 echo ---------------------------------------------
227 CORBA=adm_local/unix/$corba
230 echo ---------------------------------------------
232 echo ---------------------------------------------
238 echo ---------------------------------------------
240 echo ---------------------------------------------
246 echo ---------------------------------------------
248 echo ---------------------------------------------
254 echo ---------------------------------------------
256 echo ---------------------------------------------
262 echo ---------------------------------------------
264 echo ---------------------------------------------
270 echo ---------------------------------------------
271 echo Testing OpenCascade
272 echo ---------------------------------------------
278 echo ---------------------------------------------
279 echo Testing html generators
280 echo ---------------------------------------------
283 CHECK_HTML_GENERATORS
286 echo ---------------------------------------------
288 echo ---------------------------------------------
294 echo ---------------------------------------------
296 echo ---------------------------------------------
300 variables="cc_ok lex_yacc_ok python_ok swig_ok threads_ok OpenGL_ok qt_ok vtk_ok hdf5_ok med2_ok omniORB_ok occ_ok doxygen_ok graphviz_ok Kernel_ok"
302 for var in $variables
304 printf " %10s : " `echo \$var | sed -e "s,_ok,,"`
309 echo "Default ORB : $DEFAULT_ORB"
312 dnl generals files which could be included in every makefile
314 AC_SUBST_FILE(COMMENCE) COMMENCE=adm_local/unix/make_commence
315 AC_SUBST_FILE(CONCLUDE) CONCLUDE=adm_local/unix/make_conclude
316 AC_SUBST_FILE(MODULE) MODULE=salome_adm/unix/make_module
319 AC_SUBST_FILE(DEPEND) DEPEND=salome_adm/unix/depend
321 dnl We don t need to say when we re entering directories if we re using
322 dnl GNU make becuase make does it for us.
323 if test "X$GMAKE" = "Xyes"; then
324 AC_SUBST(SETX) SETX=":"
326 AC_SUBST(SETX) SETX="set -x"
329 # make other build directories
330 for rep in salome_adm adm_local doc bin/salome include/salome lib/salome share/salome/resources idl
332 # if test ! -d $rep ; then
340 echo ---------------------------------------------
341 echo copying resource files, shell scripts, and
343 echo ---------------------------------------------
347 dnl copy resources directories
349 #for i in `find $ROOT_SRCDIR -name 'resources' -print`
351 # local_res=`echo $i | sed -e "s,$ROOT_SRCDIR,.,"`
352 # local_res_dir=`echo $local_res | sed -e "s,[[^/]]*$,,;s,/$,,;s,^$,.,"`
353 # mkdir -p $local_res_dir
360 dnl copy shells and utilities contained in the bin directory
361 dnl excluding .in files (treated in AC-OUTPUT below) and CVS
367 for i in $ROOT_SRCDIR/bin/*
369 local_bin=`echo $i | sed -e "s,$ROOT_SRCDIR,.,"`
372 ./bin/CVS | ./bin/salome) ;;
373 *) ln -fs $i .; echo $local_bin ;;
378 AC_SUBST_FILE(ENVSCRIPT) ENVSCRIPT=salome_adm/unix/envScript
380 dnl copy xml files to the build tree (lib directory)
384 #for i in `find $ROOT_SRCDIR -name "*.xml" -print`
387 # echo `echo $i | sed -e "s,$ROOT_SRCDIR,.,"`
393 echo ---------------------------------------------
394 echo generating Makefiles and configure files
395 echo ---------------------------------------------
398 AC_OUTPUT_COMMANDS([ \
402 ## do not delete this line