1 # Copyright (C) 2005-2008 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
19 # PLEASE DO NOT MODIFY configure.in FILE
20 # ALL CHANGES WILL BE DISCARDED BY THE NEXT
21 # build_configure COMMAND
22 # CHANGES MUST BE MADE IN configure.in.base FILE
23 # Author : Marc Tajchman (CEA)
25 # Modified by : Patrick GOLDBRONN (CEA)
26 # Modified by : Marc Tajchman (CEA)
27 # Created from configure.in.base
29 AC_INIT([Salome2 Project RANDOMIZER module],[5.1.0], [webmaster.salome@opencascade.com], [SalomeRANDOMIZER])
30 AC_CONFIG_AUX_DIR(salome_adm/unix/config_files)
35 XVERSION=`echo $VERSION | awk -F. '{printf("0x%02x%02x%02x",$1,$2,$3)}'`
38 # set up MODULE_NAME variable for dynamic construction of directories (resources, etc.)
39 MODULE_NAME=randomizer
43 dnl Initialize source and build root directories
47 ROOT_SRCDIR=`echo $0 | sed -e "s,[[^/]]*$,,;s,/$,,;s,^$,.,"`
53 AC_SUBST(ROOT_BUILDDIR)
56 echo Source root directory : $ROOT_SRCDIR
57 echo Build root directory : $ROOT_BUILDDIR
61 AC_CHECK_PROG(SHELL,sh)
64 if test -z "$AR"; then
65 AC_CHECK_PROGS(AR,ar xar,:,$PATH)
69 dnl Export the AR macro so that it will be placed in the libtool file
74 echo ---------------------------------------------
76 echo ---------------------------------------------
82 dnl libtool macro check for CC, LD, NM, LN_S, RANLIB, STRIP + pour les librairies dynamiques !
87 echo ---------------------------------------------
89 echo ---------------------------------------------
91 dnl first, we set static to no!
92 dnl if we want it, use --enable-static
98 dnl Fix up the INSTALL macro if it s a relative path. We want the
99 dnl full-path to the binary instead.
102 INSTALL='\${KERNEL_ROOT_DIR}'/salome_adm/unix/config_files/install-sh
106 echo ---------------------------------------------
108 echo ---------------------------------------------
112 dnl inutil car libtool
116 AC_CXX_TEMPLATE_OPTIONS
118 # AC_CC_WARNINGS([ansi])
122 AC_CHECK_LIB(dl,dlopen)
124 dnl Library librt : for alpha/osf
125 AC_CHECK_LIB(rt,nanosleep)
127 dnl add library libm :
130 AC_CXX_USE_STD_IOSTREAM
134 dnl ---------------------------------------------
136 dnl ---------------------------------------------
142 echo ---------------------------------------------
144 echo ---------------------------------------------
150 echo ---------------------------------------------
152 echo ---------------------------------------------
160 echo ---------------------------------------------
162 echo ---------------------------------------------
168 echo ---------------------------------------------
169 echo default ORB : omniORB
170 echo ---------------------------------------------
178 CORBA=adm_local/unix/$corba
181 echo ---------------------------------------------
182 echo Testing html generators
183 echo ---------------------------------------------
186 CHECK_HTML_GENERATORS
189 echo ---------------------------------------------
191 echo ---------------------------------------------
197 echo ---------------------------------------------
198 echo Testing full GUI
199 echo ---------------------------------------------
203 if test "x${CORBA_IN_GUI}" != "xyes"; then
204 echo "failed : For configure CALCULATOR module necessary full GUI !"
209 echo ---------------------------------------------
211 echo ---------------------------------------------
217 echo ---------------------------------------------
219 echo ---------------------------------------------
223 variables="python_ok omniORB_ok doxygen_ok graphviz_ok Kernel_ok"
225 for var in $variables
227 printf " %10s : " `echo \$var | sed -e "s,_ok,,"`
232 echo "Default ORB : $DEFAULT_ORB"
235 dnl We don t need to say when we re entering directories if we re using
236 dnl GNU make becuase make does it for us.
237 if test "X$GMAKE" = "Xyes"; then
238 AC_SUBST(SETX) SETX=":"
240 AC_SUBST(SETX) SETX="set -x"
243 echo ---------------------------------------------
244 echo generating Makefiles and configure files
245 echo ---------------------------------------------
248 AC_OUTPUT_COMMANDS([ \
252 # This list is initiated using autoscan and must be updated manually
253 # when adding a new file <filename>.in to manage. When you execute
254 # autoscan, the Makefile list is generated in the output file configure.scan.
255 # This could be helpfull to update de configuration.
257 ./salome_adm/unix/SALOMEconfig.h \
258 ./adm_local/Makefile \
259 ./adm_local/unix/Makefile \
260 ./adm_local/unix/config_files/Makefile \
264 ./src/Randomizer/Makefile \
265 ./resources/Makefile \
266 ./resources/RANDOMIZERCatalog.xml \