1 # Copyright (C) 2010 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.
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([DATASSIM module], [0.1], [andre.ribes@edf.fr], [SalomeDATASSIM])
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 + for shared libraries
79 echo ---------------------------------------------
81 echo ---------------------------------------------
83 dnl first, we set static to no!
84 dnl if we want it, use --enable-static
90 dnl Fix up the INSTALL macro if it s a relative path. We want the
91 dnl full-path to the binary instead.
94 INSTALL='\${KERNEL_ROOT_DIR}'/adm_local/unix/config_files/install-sh
99 echo ---------------------------------------------
101 echo ---------------------------------------------
109 echo ---------------------------------------------
111 echo ---------------------------------------------
117 echo ---------------------------------------------
118 echo Testing html generators
119 echo ---------------------------------------------
122 CHECK_HTML_GENERATORS
125 echo ---------------------------------------------
127 echo ---------------------------------------------
133 echo ---------------------------------------------
135 echo ---------------------------------------------
141 echo ---------------------------------------------
143 echo ---------------------------------------------
147 variables="python_ok qt_ok doxygen_ok Kernel_ok"
149 for var in $variables
151 printf " %10s : " `echo \$var | sed -e "s,_ok,,"`
155 dnl We don t need to say when we re entering directories if we re using
156 dnl GNU make becuase make does it for us.
157 if test "X$GMAKE" = "Xyes"; then
158 AC_SUBST(SETX) SETX=":"
160 AC_SUBST(SETX) SETX="set -x"
163 echo ---------------------------------------------
164 echo generating Makefiles and configure files
165 echo ---------------------------------------------
168 AC_OUTPUT_COMMANDS([ \
172 # This list is initiated using autoscan and must be updated manually
173 # when adding a new file <filename>.in to manage. When you execute
174 # autoscan, the Makefile list is generated in the output file configure.scan.
175 # This could be helpfull to update de configuration.
178 adm_local/unix/Makefile \
180 src/DATASSIM/Makefile \
181 src/DATASSIMGUI/Makefile \