2 # Copyright (C) 2007-2008 CEA/DEN, EDF R&D
4 # This library is free software; you can redistribute it and/or
5 # modify it under the terms of the GNU Lesser General Public
6 # License as published by the Free Software Foundation; either
7 # version 2.1 of the License.
9 # This library is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 # Lesser General Public License for more details.
14 # You should have received a copy of the GNU Lesser General Public
15 # License along with this library; if not, write to the Free Software
16 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18 # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
22 # Author : Vadim SANDLER, Open CASCADE S.A.S (vadim.sandler@opencascade.com)
25 AC_INIT([Salome2 Project HexoticPLUGIN module], [5.1.0], [webmaster.salome@opencascade.com], [SalomeHexoticPLUGIN])
26 AC_CONFIG_AUX_DIR(salome_adm/unix/config_files)
31 XVERSION=`echo $VERSION | awk -F. '{printf("0x%02x%02x%02x",$1,$2,$3)}'`
34 # set up MODULE_NAME variable for dynamic construction of directories (resources, etc.)
35 MODULE_NAME=hexoticplugin
39 dnl Initialize source and build root directories
43 ROOT_SRCDIR=`echo $0 | sed -e "s,[[^/]]*$,,;s,/$,,;s,^$,.,"`
49 AC_SUBST(ROOT_BUILDDIR)
52 echo Source root directory : $ROOT_SRCDIR
53 echo Build root directory : $ROOT_BUILDDIR
57 if test -z "$AR"; then
58 AC_CHECK_PROGS(AR,ar xar,:,$PATH)
62 dnl Export the AR macro so that it will be placed in the libtool file
67 echo ---------------------------------------------
69 echo ---------------------------------------------
75 dnl libtool macro check for CC, LD, NM, LN_S, RANLIB, STRIP + pour les librairies dynamiques !
80 echo ---------------------------------------------
82 echo ---------------------------------------------
84 dnl first, we set static to no!
85 dnl if we want it, use --enable-static
91 dnl Fix up the INSTALL macro if it s a relative path. We want the
92 dnl full-path to the binary instead.
95 INSTALL='\${KERNEL_ROOT_DIR}'/salome_adm/unix/config_files/install-sh
100 echo ---------------------------------------------
102 echo ---------------------------------------------
106 dnl inutil car libtool
110 # AC_CC_WARNINGS([ansi])
114 echo ---------------------------------------------
116 echo ---------------------------------------------
121 AC_F77_LIBRARY_LDFLAGS
123 AC_FC_LIBRARY_LDFLAGS
124 if test "X$FC" != "X" ; then
129 AC_CHECK_LIB(dl,dlopen)
131 dnl add library libm :
135 dnl Well we use sstream which is not in gcc pre-2.95.3
136 dnl We must test if it exists. If not, add it in include !
142 echo ---------------------------------------------
144 echo ---------------------------------------------
150 dnl ---------------------------------------------
152 dnl ---------------------------------------------
158 echo ---------------------------------------------
159 echo testing LEX \& YACC
160 echo ---------------------------------------------
169 echo ---------------------------------------------
171 echo ---------------------------------------------
179 dnl echo ---------------------------------------------
180 dnl echo testing java
181 dnl echo ---------------------------------------------
187 echo ---------------------------------------------
189 echo ---------------------------------------------
195 echo ---------------------------------------------
197 echo ---------------------------------------------
203 echo ---------------------------------------------
205 echo ---------------------------------------------
211 dnl echo ---------------------------------------------
212 dnl echo testing mico
213 dnl echo ---------------------------------------------
219 echo ---------------------------------------------
220 echo default ORB : omniORB
221 echo ---------------------------------------------
229 CORBA=adm_local/unix/$corba
231 HEXOTICPLUGIN_WITH_GUI=yes
233 AM_CONDITIONAL(HEXOTICPLUGIN_ENABLE_GUI, [test "${HEXOTICPLUGIN_WITH_GUI}" = "yes"])
235 if test "${HEXOTICPLUGIN_WITH_GUI}" = "yes"; then
237 echo ---------------------------------------------
239 echo ---------------------------------------------
245 echo ---------------------------------------------
247 echo ---------------------------------------------
253 echo ---------------------------------------------
255 echo ---------------------------------------------
261 echo ---------------------------------------------
263 echo ---------------------------------------------
269 echo ---------------------------------------------
270 echo Testing full GUI
271 echo ---------------------------------------------
275 if test "x${CORBA_IN_GUI}" != "xyes"; then
276 echo "failed : For configure HexoticPLUGIN module necessary full GUI !"
282 echo ---------------------------------------------
284 echo ---------------------------------------------
290 echo ---------------------------------------------
291 echo Testing OpenCascade
292 echo ---------------------------------------------
298 echo ---------------------------------------------
299 echo Testing html generators
300 echo ---------------------------------------------
303 CHECK_HTML_GENERATORS
306 echo ---------------------------------------------
308 echo ---------------------------------------------
314 echo ---------------------------------------------
316 echo ---------------------------------------------
322 echo ---------------------------------------------
324 echo ---------------------------------------------
330 echo ---------------------------------------------
332 echo ---------------------------------------------
338 echo ---------------------------------------------
340 echo ---------------------------------------------
346 echo ---------------------------------------------
348 echo ---------------------------------------------
351 #AM_CONDITIONAL( USE_GFORTRAN, [test "$F77" = "gfortran"])
353 if test "${HEXOTICPLUGIN_WITH_GUI}" = "yes"; then
354 variables="cc_ok boost_ok lex_yacc_ok python_ok swig_ok threads_ok OpenGL_ok qt_ok vtk_ok hdf5_ok omniORB_ok occ_ok doxygen_ok graphviz_ok Kernel_ok Geom_ok Med_ok SMesh_ok SalomeGUI_ok"
355 opt_variables="Hexotic_ok"
357 if test "${HEXOTICPLUGIN_WITH_GUI}" = "no"; then
358 variables="cc_ok boost_ok lex_yacc_ok python_ok swig_ok threads_ok hdf5_ok omniORB_ok occ_ok doxygen_ok graphviz_ok Kernel_ok Geom_ok Med_ok SMesh_ok"
359 opt_variables="Hexotic_ok"
363 echo --- Mandatory products :
366 for var in $variables
368 printf " %10s : " `echo \$var | sed -e "s,_ok,,"`
373 echo --- Optional products :
376 for var in $opt_variables
378 printf " %10s : " `echo \$var | sed -e "s,_ok,,"`
384 echo "Default ORB : $DEFAULT_ORB"
387 dnl We don t need to say when we re entering directories if we re using
388 dnl GNU make becuase make does it for us.
389 if test "X$GMAKE" = "Xyes"; then
390 AC_SUBST(SETX) SETX=":"
392 AC_SUBST(SETX) SETX="set -x"
395 dnl copy shells and utilities contained in the bin directory
396 dnl excluding .in files (treated in AC-OUTPUT below) and CVS
400 echo ---------------------------------------------
401 echo generating Makefiles and configure files
402 echo ---------------------------------------------
405 #AC_OUTPUT_COMMANDS([ \
406 # chmod +x ./bin/*; \
407 # chmod +x ./bin/salome/*;
410 # This list is initiated using autoscan and must be updated manually
411 # when adding a new file <filename>.in to manage. When you execute
412 # autoscan, the Makefile list is generated in the output file configure.scan.
413 # This could be helpfull to update de configuration.
415 ./salome_adm/unix/SALOMEconfig.h \
416 ./adm_local/Makefile \
417 ./adm_local/unix/Makefile \
418 ./adm_local/unix/config_files/Makefile \
422 ./resources/Makefile \
424 ./src/HexoticPlugin/Makefile \
426 ./HexoticPLUGIN_version.h \