1 # Copyright (C) 2009-2012 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([Salome6 Project HEXABLOCK module],[7.0.0], [webmaster.salome@opencascade.com], [SalomeHEXABLOCK])
21 AC_CONFIG_AUX_DIR(adm_local/unix/config_files)
24 AM_INIT_AUTOMAKE([-Wno-portability])
26 SHORT_VERSION=`echo $VERSION | awk -F. '{printf("%d.%d",$1,$2)}'`
27 AC_SUBST(SHORT_VERSION)
28 XVERSION=`echo $VERSION | awk -F. '{printf("0x%02x%02x%02x",$1,$2,$3)}'`
33 # set up MODULE_NAME variable for dynamic construction of directories (resources, etc.)
38 dnl Initialize source and build root directories
42 ROOT_SRCDIR=`echo $0 | sed -e "s,[[^/]]*$,,;s,/$,,;s,^$,.,"`
48 AC_SUBST(ROOT_BUILDDIR)
51 echo Source root directory : $ROOT_SRCDIR
52 echo Build root directory : $ROOT_BUILDDIR
56 AC_CHECK_PROG(SHELL,sh)
59 if test -z "$AR"; then
60 AC_CHECK_PROGS(AR,ar xar,:,$PATH)
64 dnl Export the AR macro so that it will be placed in the libtool file
69 echo ---------------------------------------------
71 echo ---------------------------------------------
77 dnl libtool macro check for CC, LD, NM, LN_S, RANLIB, STRIP + for shared libraries
82 echo ---------------------------------------------
84 echo ---------------------------------------------
86 dnl first, we set static to no!
87 dnl if we want it, use --enable-static
93 dnl Fix up the INSTALL macro if it s a relative path. We want the
94 dnl full-path to the binary instead.
97 INSTALL='\${KERNEL_ROOT_DIR}'/salome_adm/unix/config_files/install-sh
102 echo ---------------------------------------------
104 echo ---------------------------------------------
108 dnl inutil car libtool
112 AC_CXX_TEMPLATE_OPTIONS
114 # AC_CC_WARNINGS([ansi])
118 AC_CHECK_LIB(dl,dlopen)
120 dnl Library librt : for alpha/osf
121 AC_CHECK_LIB(rt,nanosleep)
123 dnl add library libm :
126 AC_CXX_USE_STD_IOSTREAM
130 dnl ---------------------------------------------
132 dnl ---------------------------------------------
138 echo ---------------------------------------------
140 echo ---------------------------------------------
146 echo ---------------------------------------------
148 echo ---------------------------------------------
156 echo ---------------------------------------------
158 echo ---------------------------------------------
170 echo ---------------------------------------------
172 echo ---------------------------------------------
178 echo ---------------------------------------------
179 echo Testing OpenCascade
180 echo ---------------------------------------------
186 echo ---------------------------------------------
188 echo ---------------------------------------------
194 echo ---------------------------------------------
195 echo default ORB : omniORB
196 echo ---------------------------------------------
204 CORBA=adm_local/unix/$corba
209 echo ----------------------------------------------
210 echo testing CPPUNIT only required for unit testing
211 echo ----------------------------------------------
218 echo ----------------------------------------------
220 echo ----------------------------------------------
228 echo ---------------------------------------------
230 echo ---------------------------------------------
238 echo ---------------------------------------------
240 echo ---------------------------------------------
248 echo ---------------------------------------------
250 echo ---------------------------------------------
257 echo ---------------------------------------------
258 echo Testing full GUI
259 echo ---------------------------------------------
263 if test "x${CORBA_IN_GUI}" != "xyes"; then
264 echo "failed : For configure HEXABLOCK module necessary full GUI !"
272 echo ---------------------------------------------
274 echo ---------------------------------------------
280 echo ---------------------------------------------
282 echo ---------------------------------------------
289 echo ---------------------------------------------
291 echo ---------------------------------------------
297 echo ---------------------------------------------
299 echo ---------------------------------------------
303 variables="cc_ok threads_ok boost_ok python_ok omniORB_ok qt_ok occ_ok sphinx_ok vtk_ok Kernel_ok SalomeGUI_ok Geom_ok"
305 for var in $variables
307 printf " %10s : " `echo \$var | sed -e "s,_ok,,"`
312 echo "Default ORB : $DEFAULT_ORB"
315 dnl AM_CONDITIONAL(ENABLE_VTKVIEWER, [test "$DISABLE_VTKVIEWER" = no])
316 dnl We don t need to say when we re entering directories if we re using
317 dnl GNU make becuase make does it for us.
318 if test "X$GMAKE" = "Xyes"; then
319 AC_SUBST(SETX) SETX=":"
321 AC_SUBST(SETX) SETX="set -x"
324 echo ---------------------------------------------
325 echo generating Makefiles and configure files
326 echo ---------------------------------------------
329 AC_OUTPUT_COMMANDS([ \
335 AM_CONDITIONAL(WINDOWS, [ test ])
337 # This list is initiated using autoscan and must be updated manually
338 # when adding a new file <filename>.in to manage. When you execute
339 # autoscan, the Makefile list is generated in the output file configure.scan.
341 # This could be helpfull to update de configuration.
343 salome_adm/unix/SALOMEconfig.h \
345 adm_local/unix/Makefile \
346 adm_local/unix/config_files/Makefile \
352 HEXABLOCK_version.h \
354 src/HEXABLOCKGUI/Makefile \
355 src/HEXABLOCKGUI/MyDlgRef/Makefile \
356 src/HEXABLOCKGUI/resources/HEXABLOCKCatalog.xml \
357 src/HEXABLOCKGUI/resources/SalomeApp.xml \
358 src/HEXABLOCK/Makefile \
359 src/HEXABLOCK_I/Makefile \
360 src/TEST_CPP/Makefile \
361 src/TEST_PY/Makefile \