1 # Copyright (C) 2007-2010 CEA/DEN, EDF R&D, OPEN CASCADE
3 # Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
4 # CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
6 # This library is free software; you can redistribute it and/or
7 # modify it under the terms of the GNU Lesser General Public
8 # License as published by the Free Software Foundation; either
9 # version 2.1 of the License.
11 # This library is distributed in the hope that it will be useful,
12 # but WITHOUT ANY WARRANTY; without even the implied warranty of
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 # Lesser General Public License for more details.
16 # You should have received a copy of the GNU Lesser General Public
17 # License along with this library; if not, write to the Free Software
18 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
20 # See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org
22 AC_INIT([Salome2 Project ATOMIC module], [0.3.0], [webmaster.salome@opencascade.com], [SalomeATOMIC])
23 AC_CONFIG_AUX_DIR(adm_local/unix/config_files)
26 AM_INIT_AUTOMAKE([-Wno-portability])
28 XVERSION=`echo $VERSION | awk -F. '{printf("0x%02x%02x%02x",$1,$2,$3)}'`
31 # set up MODULE_NAME variable for dynamic construction of directories (resources, etc.)
36 dnl Initialize source and build root directories
40 ROOT_SRCDIR=`echo $0 | sed -e "s,[[^/]]*$,,;s,/$,,;s,^$,.,"`
46 AC_SUBST(ROOT_BUILDDIR)
49 echo Source root directory : $ROOT_SRCDIR
50 echo Build root directory : $ROOT_BUILDDIR
54 AC_CHECK_PROG(SHELL,sh)
57 if test -z "$AR"; then
58 AC_CHECK_PROGS(AR,ar xar,:,$PATH)
62 dnl Export the AR macro so that it will be placed in the libtool file
67 echo ---------------------------------------------
69 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
93 echo ---------------------------------------------
95 echo ---------------------------------------------
99 dnl inutil car libtool
103 AC_CXX_TEMPLATE_OPTIONS
105 # AC_CC_WARNINGS([ansi])
109 AC_CHECK_LIB(dl,dlopen)
111 dnl add library libm :
114 dnl Library librt : for alpha/osf
115 AC_CHECK_LIB(rt,nanosleep)
118 dnl Check if we use std iostream by default or if we must add
119 dnl a compiler directive for that
122 AC_CXX_USE_STD_IOSTREAM
125 dnl Well we use sstream which is not in gcc pre-2.95.3
126 dnl We must test if it exists. If not, add it in include !
132 dnl ---------------------------------------------
134 dnl ---------------------------------------------
140 dnl ---------------------------------------------
142 dnl ---------------------------------------------
148 echo ---------------------------------------------
149 echo testing LEX \& YACC
150 echo ---------------------------------------------
159 echo ---------------------------------------------
161 echo ---------------------------------------------
169 echo ---------------------------------------------
171 echo ---------------------------------------------
177 echo ---------------------------------------------
179 echo ---------------------------------------------
185 echo ---------------------------------------------
187 echo ---------------------------------------------
193 echo ---------------------------------------------
195 echo ---------------------------------------------
201 echo ---------------------------------------------
203 echo ---------------------------------------------
209 echo ---------------------------------------------
210 echo Testing OpenCascade
211 echo ---------------------------------------------
217 echo ---------------------------------------------
218 echo Testing html generators
219 echo ---------------------------------------------
222 CHECK_HTML_GENERATORS
225 echo ---------------------------------------------
226 echo Testing gd library
227 echo ---------------------------------------------
233 echo ---------------------------------------------
235 echo ---------------------------------------------
241 echo ---------------------------------------------
243 echo ---------------------------------------------
249 echo ---------------------------------------------
251 echo ---------------------------------------------
255 variables="cc_ok lex_yacc_ok python_ok threads_ok OpenGL_ok qt_ok vtk_ok hdf5_ok occ_ok doxygen_ok graphviz_ok gd_ok Kernel_ok SalomeGUI_ok"
257 for var in $variables
259 printf " %10s : " `echo \$var | sed -e "s,_ok,,"`
263 dnl We don't need to say when we re entering directories if we re using
264 dnl GNU make because make does it for us.
265 if test "X$GMAKE" = "Xyes"; then
266 AC_SUBST(SETX) SETX=":"
268 AC_SUBST(SETX) SETX="set -x"
271 AC_OUTPUT_COMMANDS([ \
276 echo ---------------------------------------------
277 echo generating Makefiles and configure files
278 echo ---------------------------------------------
281 # This list is initiated using autoscan and must be updated manually
282 # when adding a new file <filename>.in to manage. When you execute
283 # autoscan, the Makefile list is generated in the output file configure.scan.
284 # This could be helpfull to update de configuration.
287 adm_local/unix/Makefile \
288 adm_local/unix/config_files/Makefile \
293 src/ATOMICGUI/Makefile \