1 ########################################################################
2 # LIGHT : sample (no-corba-engine) SALOME module
4 # Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
5 # CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
7 # This library is free software; you can redistribute it and/or
8 # modify it under the terms of the GNU Lesser General Public
9 # License as published by the Free Software Foundation; either
10 # version 2.1 of the License.
12 # This library is distributed in the hope that it will be useful,
13 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 # Lesser General Public License for more details.
17 # You should have received a copy of the GNU Lesser General Public
18 # License along with this library; if not, write to the Free Software
19 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
21 # See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org
23 # Author : Marc Tajchman (CEA)
27 ########################################################################
29 # PLEASE DO NOT MODIFY configure.in FILE
31 # ALL CHANGES WILL BE DISCARDED BY THE NEXT
32 # build_configure COMMAND
34 # CHANGES MUST BE MADE IN configure.in.base FILE
36 ########################################################################
39 AC_CONFIG_AUX_DIR(${KERNEL_ROOT_DIR}/salome_adm/unix/config_files)
49 dnl Initialize source and build root directories
53 ROOT_SRCDIR=`echo $0 | sed -e "s,[[^/]]*$,,;s,/$,,;s,^$,.,"`
59 AC_SUBST(ROOT_BUILDDIR)
62 echo Source root directory : $ROOT_SRCDIR
63 echo Build root directory : $ROOT_BUILDDIR
67 dnl Modification B. Secher portage sur osf CCRT
68 AC_CHECK_PROG(SHELL,sh,,)
71 if test -z "$AR"; then
72 AC_CHECK_PROGS(AR,ar xar,:,$PATH)
76 dnl Export the AR macro so that it will be placed in the libtool file
81 echo ---------------------------------------------
83 echo ---------------------------------------------
89 dnl libtool macro check for CC, LD, NM, LN_S, RANLIB, STRIP + pour les librairies dynamiques !
94 echo ---------------------------------------------
96 echo ---------------------------------------------
98 dnl first, we set static to no!
99 dnl if we want it, use --enable-static
105 dnl Fix up the INSTALL macro if it s a relative path. We want the
106 dnl full-path to the binary instead.
109 INSTALL="\${KERNEL_ROOT_DIR}/salome_adm/unix/config_files/install-sh -c"
114 echo ---------------------------------------------
116 echo ---------------------------------------------
120 dnl inutil car libtool
124 AC_CXX_TEMPLATE_OPTIONS
126 # AC_CC_WARNINGS([ansi])
130 AC_CHECK_LIB(dl,dlopen)
132 dnl add library libm :
135 dnl Library librt : for alpha/osf
136 AC_CHECK_LIB(rt,nanosleep)
139 dnl Check if we use std iostream by default or if we must add
140 dnl a compiler directive for that
143 AC_CXX_USE_STD_IOSTREAM
146 dnl Well we use sstream which is not in gcc pre-2.95.3
147 dnl We must test if it exists. If not, add it in include !
153 dnl ---------------------------------------------
155 dnl ---------------------------------------------
161 dnl ---------------------------------------------
163 dnl ---------------------------------------------
170 dnl ---------------------------------------------
172 dnl ---------------------------------------------
178 echo ---------------------------------------------
179 echo testing LEX \& YACC
180 echo ---------------------------------------------
189 echo ---------------------------------------------
191 echo ---------------------------------------------
197 dnl echo ---------------------------------------------
198 dnl echo testing java
199 dnl echo ---------------------------------------------
205 echo ---------------------------------------------
207 echo ---------------------------------------------
213 echo ---------------------------------------------
215 echo ---------------------------------------------
221 echo ---------------------------------------------
223 echo ---------------------------------------------
229 dnl echo ---------------------------------------------
230 dnl echo testing mico
231 dnl echo ---------------------------------------------
237 echo ---------------------------------------------
238 echo default ORB : omniORB
239 echo ---------------------------------------------
247 CORBA=adm_local/unix/$corba
250 echo ---------------------------------------------
252 echo ---------------------------------------------
258 echo ---------------------------------------------
260 echo ---------------------------------------------
266 echo ---------------------------------------------
268 echo ---------------------------------------------
274 echo ---------------------------------------------
276 echo ---------------------------------------------
282 echo ---------------------------------------------
284 echo ---------------------------------------------
290 echo ---------------------------------------------
292 echo ---------------------------------------------
298 echo ---------------------------------------------
299 echo Testing OpenCascade
300 echo ---------------------------------------------
306 echo ---------------------------------------------
307 echo Testing html generators
308 echo ---------------------------------------------
311 CHECK_HTML_GENERATORS
314 echo ---------------------------------------------
316 echo ---------------------------------------------
322 echo ---------------------------------------------
324 echo ---------------------------------------------
330 echo ---------------------------------------------
332 echo ---------------------------------------------
336 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 SalomeGUI_ok"
338 for var in $variables
340 printf " %10s : " `echo \$var | sed -e "s,_ok,,"`
345 echo "Default ORB : $DEFAULT_ORB"
348 dnl generals files which could be included in every makefile
350 AC_SUBST_FILE(COMMENCE) COMMENCE=adm_local/unix/make_commence
351 AC_SUBST_FILE(CONCLUDE) CONCLUDE=salome_adm/unix/make_conclude
352 AC_SUBST_FILE(MODULE) MODULE=salome_adm/unix/make_module
355 AC_SUBST_FILE(DEPEND) DEPEND=salome_adm/unix/depend
357 dnl We don t need to say when we re entering directories if we re using
358 dnl GNU make becuase make does it for us.
359 if test "X$GMAKE" = "Xyes"; then
360 AC_SUBST(SETX) SETX=":"
362 AC_SUBST(SETX) SETX="set -x"
365 # make other build directories
366 for rep in salome_adm adm_local doc bin/salome include/salome lib/salome share/salome/resources idl
368 # if test ! -d $rep ; then
376 echo ---------------------------------------------
377 echo copying resource files, shell scripts, and
379 echo ---------------------------------------------
383 dnl copy resources directories
385 #for i in `find $ROOT_SRCDIR -name 'resources' -print`
387 # local_res=`echo $i | sed -e "s,$ROOT_SRCDIR,.,"`
388 # local_res_dir=`echo $local_res | sed -e "s,[[^/]]*$,,;s,/$,,;s,^$,.,"`
389 # mkdir -p $local_res_dir
396 dnl copy shells and utilities contained in the bin directory
397 dnl excluding .in files (treated in AC-OUTPUT below) and CVS
403 for i in $ROOT_SRCDIR/bin/*
405 local_bin=`echo $i | sed -e "s,$ROOT_SRCDIR,.,"`
408 ./bin/CVS | ./bin/salome) ;;
409 *) ln -fs $i .; echo $local_bin ;;
414 AC_SUBST_FILE(ENVSCRIPT) ENVSCRIPT=salome_adm/unix/envScript
416 dnl copy xml files to the build tree (lib directory)
420 #for i in `find $ROOT_SRCDIR -name "*.xml" -print`
423 # echo `echo $i | sed -e "s,$ROOT_SRCDIR,.,"`
429 echo ---------------------------------------------
430 echo generating Makefiles and configure files
431 echo ---------------------------------------------
434 AC_OUTPUT_COMMANDS([ \
438 ## do not delete this line