1 # Copyright (C) 2007-2011 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.4.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)}'`
29 # set up MODULE_NAME variable for dynamic construction of directories (resources, etc.)
34 dnl Initialize source and build root directories
38 ROOT_SRCDIR=`echo $0 | sed -e "s,[[^/]]*$,,;s,/$,,;s,^$,.,"`
44 AC_SUBST(ROOT_BUILDDIR)
47 echo Source root directory : $ROOT_SRCDIR
48 echo Build root directory : $ROOT_BUILDDIR
52 AC_CHECK_PROG(SHELL,sh)
55 if test -z "$AR"; then
56 AC_CHECK_PROGS(AR,ar xar,:,$PATH)
60 dnl Export the AR macro so that it will be placed in the libtool file
65 echo ---------------------------------------------
67 echo ---------------------------------------------
74 dnl libtool macro check for CC, LD, NM, LN_S, RANLIB, STRIP + pour les librairies dynamiques !
79 echo ---------------------------------------------
81 echo ---------------------------------------------
83 dnl first, we set static to no!
84 dnl if we want it, use --enable-static
91 echo ---------------------------------------------
93 echo ---------------------------------------------
97 dnl inutil car libtool
101 AC_CXX_TEMPLATE_OPTIONS
103 # AC_CC_WARNINGS([ansi])
107 AC_CHECK_LIB(dl,dlopen)
109 dnl add library libm :
112 dnl Library librt : for alpha/osf
113 AC_CHECK_LIB(rt,nanosleep)
116 dnl Check if we use std iostream by default or if we must add
117 dnl a compiler directive for that
120 AC_CXX_USE_STD_IOSTREAM
123 dnl Well we use sstream which is not in gcc pre-2.95.3
124 dnl We must test if it exists. If not, add it in include !
130 dnl ---------------------------------------------
132 dnl ---------------------------------------------
138 dnl ---------------------------------------------
140 dnl ---------------------------------------------
146 echo ---------------------------------------------
147 echo testing LEX \& YACC
148 echo ---------------------------------------------
157 echo ---------------------------------------------
159 echo ---------------------------------------------
167 echo ---------------------------------------------
169 echo ---------------------------------------------
175 echo ---------------------------------------------
177 echo ---------------------------------------------
183 echo ---------------------------------------------
185 echo ---------------------------------------------
191 echo ---------------------------------------------
193 echo ---------------------------------------------
199 echo ---------------------------------------------
201 echo ---------------------------------------------
207 echo ---------------------------------------------
209 echo ---------------------------------------------
215 echo ---------------------------------------------
216 echo Testing OpenCascade
217 echo ---------------------------------------------
223 echo ---------------------------------------------
225 echo ---------------------------------------------
232 echo ---------------------------------------------
234 echo ---------------------------------------------
240 echo ---------------------------------------------
241 echo Testing html generators
242 echo ---------------------------------------------
245 CHECK_HTML_GENERATORS
248 echo ---------------------------------------------
250 echo ---------------------------------------------
256 echo ---------------------------------------------
258 echo ---------------------------------------------
264 echo ---------------------------------------------
266 echo ---------------------------------------------
270 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"
272 for var in $variables
274 printf " %10s : " `echo \$var | sed -e "s,_ok,,"`
278 dnl We don't need to say when we re entering directories if we re using
279 dnl GNU make because make does it for us.
280 if test "X$GMAKE" = "Xyes"; then
281 AC_SUBST(SETX) SETX=":"
283 AC_SUBST(SETX) SETX="set -x"
286 AC_OUTPUT_COMMANDS([ \
291 echo ---------------------------------------------
292 echo generating Makefiles and configure files
293 echo ---------------------------------------------
296 # This list is initiated using autoscan and must be updated manually
297 # when adding a new file <filename>.in to manage. When you execute
298 # autoscan, the Makefile list is generated in the output file configure.scan.
299 # This could be helpfull to update de configuration.
302 adm_local/unix/Makefile \
303 adm_local/unix/config_files/Makefile \
307 resources/SalomeApp.xml \
309 src/ATOMICGUI/Makefile \
310 src/AtomicPy/Makefile \