1 # Copyright (C) 2006-2022 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
30 dnl Initialize source and build root directories
34 ROOT_SRCDIR=`echo $0 | sed -e "s,[[^/]]*$,,;s,/$,,;s,^$,.,"`
40 AC_SUBST(ROOT_BUILDDIR)
43 echo Source root directory : $ROOT_SRCDIR
44 echo Build root directory : $ROOT_BUILDDIR
48 if test -z "$AR"; then
49 AC_CHECK_PROGS(AR,ar xar,:,$PATH)
53 dnl Export the AR macro so that it will be placed in the libtool file
58 echo ---------------------------------------------
60 echo ---------------------------------------------
66 dnl libtool macro check for CC, LD, NM, LN_S, RANLIB, STRIP + for shared libraries
71 echo ---------------------------------------------
73 echo ---------------------------------------------
75 dnl first, we set static to no!
76 dnl if we want it, use --enable-static
82 dnl Fix up the INSTALL macro if it s a relative path. We want the
83 dnl full-path to the binary instead.
86 INSTALL='\${KERNEL_ROOT_DIR}'/salome_adm/unix/config_files/install-sh
91 echo ---------------------------------------------
93 echo ---------------------------------------------
97 dnl inutil car libtool
101 AC_CXX_TEMPLATE_OPTIONS
104 # AC_CC_WARNINGS([ansi])
108 AC_CHECK_LIB(dl,dlopen)
110 dnl Library librt : for alpha/osf
111 AC_CHECK_LIB(rt,nanosleep)
113 dnl add library libm :
116 AC_CXX_USE_STD_IOSTREAM
120 dnl ---------------------------------------------
122 dnl ---------------------------------------------
128 echo ---------------------------------------------
130 echo ---------------------------------------------
136 echo ---------------------------------------------
138 echo ---------------------------------------------
144 echo ---------------------------------------------
146 echo ---------------------------------------------
152 echo ---------------------------------------------
154 echo ---------------------------------------------
160 echo ---------------------------------------------
162 echo ---------------------------------------------
168 echo ---------------------------------------------
169 echo Testing OpenCascade
170 echo ---------------------------------------------
176 echo ---------------------------------------------
178 echo ---------------------------------------------
184 echo ---------------------------------------------
185 echo default ORB : omniORB
186 echo ---------------------------------------------
194 CORBA=adm_local/unix/$corba
197 echo ---------------------------------------------
199 echo ---------------------------------------------
203 AM_CONDITIONAL([SALOME_KERNEL], [test "x$KERNEL_ROOT_DIR" != "x"])
206 echo ---------------------------------------------
208 echo ---------------------------------------------
212 AM_CONDITIONAL([SALOME_GUI], [test "x$GUI_ROOT_DIR" != "x"])
215 echo ---------------------------------------------
217 echo ---------------------------------------------
223 echo ---------------------------------------------
224 echo testing MED AND MED2
225 echo ---------------------------------------------
232 echo ---------------------------------------------
233 echo testing Component Evironment
234 echo ---------------------------------------------
240 echo ---------------------------------------------
242 echo ---------------------------------------------
246 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"
248 for var in $variables
250 printf " %10s : " `echo \$var | sed -e "s,_ok,,"`
255 echo "Default ORB : $DEFAULT_ORB"
258 dnl generals files which could be included in every makefile
260 dnl We don t need to say when we re entering directories if we re using
261 dnl GNU make becuase make does it for us.
262 if test "X$GMAKE" = "Xyes"; then
263 AC_SUBST(SETX) SETX=":"
265 AC_SUBST(SETX) SETX="set -x"
268 # make other build directories
269 for rep in adm_local doc bin/salome include/salome lib/salome share/salome/resources share/salome/doc idl
275 echo ---------------------------------------------
276 echo copying resource files, shell scripts, and
278 echo ---------------------------------------------
281 dnl copy shells and utilities contained in the bin directory
282 dnl excluding .in files (treated in AC-OUTPUT below) and CVS
286 for i in $ROOT_SRCDIR/bin/*
288 local_bin=`echo $i | sed -e "s,$ROOT_SRCDIR,.,"`
292 *) ln -fs $i; echo $local_bin ;;
298 echo ---------------------------------------------
299 echo generating Makefiles and configure files
300 echo ---------------------------------------------
303 AC_OUTPUT_COMMANDS([ \
307 ## do not delete this line