1 # Copyright (C) 2009-2013 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.2.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 ---------------------------------------------
160 echo ---------------------------------------------
162 echo ---------------------------------------------
174 echo ---------------------------------------------
176 echo ---------------------------------------------
182 echo ---------------------------------------------
183 echo Testing OpenCascade
184 echo ---------------------------------------------
190 echo ---------------------------------------------
192 echo ---------------------------------------------
198 echo ---------------------------------------------
199 echo default ORB : omniORB
200 echo ---------------------------------------------
208 CORBA=adm_local/unix/$corba
213 echo ----------------------------------------------
214 echo testing CPPUNIT only required for unit testing
215 echo ----------------------------------------------
222 echo ----------------------------------------------
224 echo ----------------------------------------------
232 echo ---------------------------------------------
234 echo ---------------------------------------------
242 echo ---------------------------------------------
244 echo ---------------------------------------------
250 if test "${SalomeGUI_need}" != "no" -a "${FullGUI_ok}" = "yes" ; then
254 AM_CONDITIONAL(HEXABLOCK_ENABLE_GUI, [test "${gui_ok}" = "yes"])
256 echo WITH GUI: ${gui_ok}
259 echo ---------------------------------------------
261 echo ---------------------------------------------
268 echo ---------------------------------------------
270 echo ---------------------------------------------
276 echo ---------------------------------------------
278 echo ---------------------------------------------
285 echo ---------------------------------------------
287 echo ---------------------------------------------
293 echo ---------------------------------------------
295 echo ---------------------------------------------
299 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"
301 for var in $variables
303 printf " %10s : " `echo \$var | sed -e "s,_ok,,"`
308 echo "Default ORB : $DEFAULT_ORB"
311 dnl AM_CONDITIONAL(ENABLE_VTKVIEWER, [test "$DISABLE_VTKVIEWER" = no])
312 dnl We don t need to say when we re entering directories if we re using
313 dnl GNU make becuase make does it for us.
314 if test "X$GMAKE" = "Xyes"; then
315 AC_SUBST(SETX) SETX=":"
317 AC_SUBST(SETX) SETX="set -x"
320 echo ---------------------------------------------
321 echo generating Makefiles and configure files
322 echo ---------------------------------------------
325 AC_OUTPUT_COMMANDS([ \
331 AM_CONDITIONAL(WINDOWS, [ test ])
333 # This list is initiated using autoscan and must be updated manually
334 # when adding a new file <filename>.in to manage. When you execute
335 # autoscan, the Makefile list is generated in the output file configure.scan.
337 # This could be helpfull to update de configuration.
339 salome_adm/unix/SALOMEconfig.h \
341 adm_local/unix/Makefile \
342 adm_local/unix/config_files/Makefile \
348 HEXABLOCK_version.h \
350 src/HEXABLOCKGUI/Makefile \
351 src/HEXABLOCKGUI/MyDlgRef/Makefile \
352 src/HEXABLOCKGUI/resources/HEXABLOCKCatalog.xml \
353 src/HEXABLOCKGUI/resources/SalomeApp.xml \
354 src/HEXABLOCK/Makefile \
355 src/HEXABLOCK_SWIG/Makefile \
356 src/TEST_CPP/Makefile \
357 src/TEST_PY/Makefile \