1 # Copyright (C) 2006-2016 CEA/DEN, EDF R&D
3 # This library is free software; you can redistribute it and/or
4 # modify it under the terms of the GNU Lesser General Public
5 # License as published by the Free Software Foundation; either
6 # version 2.1 of the License, or (at your option) any later version.
8 # This library is distributed in the hope that it will be useful,
9 # but WITHOUT ANY WARRANTY; without even the implied warranty of
10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11 # Lesser General Public License for more details.
13 # You should have received a copy of the GNU Lesser General Public
14 # License along with this library; if not, write to the Free Software
15 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17 # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
20 # PLEASE DO NOT MODIFY configure.in FILE
21 # ALL CHANGES WILL BE DISCARDED BY THE NEXT
22 # build_configure COMMAND
23 # CHANGES MUST BE MADE IN configure.in.base FILE
24 # Author : Marc Tajchman (CEA)
26 # Modified by : Patrick GOLDBRONN (CEA)
27 # Modified by : Marc Tajchman (CEA)
28 # Created from configure.in.base
31 AC_CONFIG_AUX_DIR(${KERNEL_ROOT_DIR}/salome_adm/unix/config_files)
41 dnl Initialize source and build root directories
45 ROOT_SRCDIR=`echo $0 | sed -e "s,[[^/]]*$,,;s,/$,,;s,^$,.,"`
51 AC_SUBST(ROOT_BUILDDIR)
54 echo Source root directory : $ROOT_SRCDIR
55 echo Build root directory : $ROOT_BUILDDIR
59 if test -z "$AR"; then
60 AC_CHECK_PROGS(AR,ar xar,:,$PATH)
64 dnl Export the AR macro so that it will be placed in the libtool file
69 echo ---------------------------------------------
71 echo ---------------------------------------------
77 dnl libtool macro check for CC, LD, NM, LN_S, RANLIB, STRIP + for shared libraries
82 echo ---------------------------------------------
84 echo ---------------------------------------------
86 dnl first, we set static to no!
87 dnl if we want it, use --enable-static
93 dnl Fix up the INSTALL macro if it s a relative path. We want the
94 dnl full-path to the binary instead.
97 INSTALL='\${KERNEL_ROOT_DIR}'/salome_adm/unix/config_files/install-sh
102 echo ---------------------------------------------
104 echo ---------------------------------------------
108 dnl inutil car libtool
112 AC_CXX_TEMPLATE_OPTIONS
115 # AC_CC_WARNINGS([ansi])
119 AC_CHECK_LIB(dl,dlopen)
121 dnl Library librt : for alpha/osf
122 AC_CHECK_LIB(rt,nanosleep)
124 dnl add library libm :
127 AC_CXX_USE_STD_IOSTREAM
131 dnl ---------------------------------------------
133 dnl ---------------------------------------------
139 echo ---------------------------------------------
141 echo ---------------------------------------------
147 echo ---------------------------------------------
149 echo ---------------------------------------------
155 echo ---------------------------------------------
157 echo ---------------------------------------------
163 echo ---------------------------------------------
165 echo ---------------------------------------------
171 echo ---------------------------------------------
173 echo ---------------------------------------------
179 echo ---------------------------------------------
180 echo Testing OpenCascade
181 echo ---------------------------------------------
187 echo ---------------------------------------------
189 echo ---------------------------------------------
195 echo ---------------------------------------------
196 echo default ORB : omniORB
197 echo ---------------------------------------------
205 CORBA=adm_local/unix/$corba
208 echo ---------------------------------------------
210 echo ---------------------------------------------
216 echo ---------------------------------------------
218 echo ---------------------------------------------
224 echo ---------------------------------------------
226 echo ---------------------------------------------
232 echo ---------------------------------------------
233 echo testing MED AND MED2
234 echo ---------------------------------------------
241 echo ---------------------------------------------
242 echo testing Component Evironment
243 echo ---------------------------------------------
249 echo ---------------------------------------------
251 echo ---------------------------------------------
255 variables="cc_ok threads_ok boost_ok python_ok omniORB_ok qt_ok msg2qm_ok Kernel_ok SalomeGUI_ok Med_ok med2_ok hdf5_ok Comp_Env_ok"
257 for var in $variables
259 printf " %10s : " `echo \$var | sed -e "s,_ok,,"`
264 echo "Default ORB : $DEFAULT_ORB"
267 dnl generals files which could be included in every makefile
269 AC_SUBST_FILE(COMMENCE) COMMENCE=adm_local/unix/make_commence
270 AC_SUBST_FILE(CONCLUDE) CONCLUDE=salome_adm/unix/make_conclude
271 AC_SUBST_FILE(MODULE) MODULE=salome_adm/unix/make_module
274 AC_SUBST_FILE(DEPEND) DEPEND=salome_adm/unix/depend
276 dnl We don t need to say when we re entering directories if we re using
277 dnl GNU make becuase make does it for us.
278 if test "X$GMAKE" = "Xyes"; then
279 AC_SUBST(SETX) SETX=":"
281 AC_SUBST(SETX) SETX="set -x"
284 # make other build directories
285 for rep in salome_adm adm_local doc bin/salome include/salome lib/salome share/salome/resources share/salome/doc idl
291 echo ---------------------------------------------
292 echo copying resource files, shell scripts, and
294 echo ---------------------------------------------
297 dnl copy shells and utilities contained in the bin directory
298 dnl excluding .in files (treated in AC-OUTPUT below) and CVS
302 for i in $ROOT_SRCDIR/bin/*
304 local_bin=`echo $i | sed -e "s,$ROOT_SRCDIR,.,"`
308 *) ln -fs $i; echo $local_bin ;;
313 AC_SUBST_FILE(ENVSCRIPT) ENVSCRIPT=salome_adm/unix/envScript
316 echo ---------------------------------------------
317 echo generating Makefiles and configure files
318 echo ---------------------------------------------
321 AC_OUTPUT_COMMANDS([ \
325 ## do not delete this line