1 # Copyright (C) 2007-2012 CEA/DEN, EDF R&D, OPEN CASCADE
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.
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 AC_INIT([Salome2 Project ATOMIC module], [6.5.0], [webmaster.salome@opencascade.com], [SalomeATOMIC])
21 AC_CONFIG_AUX_DIR(adm_local/unix/config_files)
24 AM_INIT_AUTOMAKE([-Wno-portability])
26 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 ---------------------------------------------
211 echo ---------------------------------------------
217 echo ---------------------------------------------
218 echo Testing OpenCascade
219 echo ---------------------------------------------
225 echo ---------------------------------------------
227 echo ---------------------------------------------
234 echo ---------------------------------------------
236 echo ---------------------------------------------
242 echo ---------------------------------------------
243 echo Testing html generators
244 echo ---------------------------------------------
247 CHECK_HTML_GENERATORS
250 echo ---------------------------------------------
252 echo ---------------------------------------------
258 echo ---------------------------------------------
260 echo ---------------------------------------------
266 echo ---------------------------------------------
268 echo ---------------------------------------------
272 variables="cc_ok lex_yacc_ok python_ok threads_ok OpenGL_ok qt_ok vtk_ok hdf5_ok occ_ok doxygen_ok graphviz_ok Kernel_ok SalomeGUI_ok"
274 for var in $variables
276 printf " %10s : " `echo \$var | sed -e "s,_ok,,"`
280 dnl We don't need to say when we re entering directories if we re using
281 dnl GNU make because make does it for us.
282 if test "X$GMAKE" = "Xyes"; then
283 AC_SUBST(SETX) SETX=":"
285 AC_SUBST(SETX) SETX="set -x"
288 AC_OUTPUT_COMMANDS([ \
293 echo ---------------------------------------------
294 echo generating Makefiles and configure files
295 echo ---------------------------------------------
298 # This list is initiated using autoscan and must be updated manually
299 # when adding a new file <filename>.in to manage. When you execute
300 # autoscan, the Makefile list is generated in the output file configure.scan.
301 # This could be helpfull to update de configuration.
304 adm_local/unix/Makefile \
305 adm_local/unix/config_files/Makefile \
309 resources/SalomeApp.xml \
311 src/ATOMICGUI/Makefile \
312 src/AtomicPy/Makefile \