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 BLSURFPLUGIN module], [5.1.0], [webmaster.salome@opencascade.com], [SalomeBLSURFPLUGIN])
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=blsurfplugin
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 BLSURFPLUGIN_WITH_GUI=yes
233 AM_CONDITIONAL(BLSURFPLUGIN_ENABLE_GUI, [test "${BLSURFPLUGIN_WITH_GUI}" = "yes"])
235 if test "${BLSURFPLUGIN_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 BLSURFPLUGIN 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"])
354 if test "${BLSURFPLUGIN_WITH_GUI}" = "yes"; then
355 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 BLSURF_ok"
357 if test "${BLSURFPLUGIN_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 BLSURF_ok"
361 for var in $variables
363 printf " %10s : " `echo \$var | sed -e "s,_ok,,"`
368 echo "Default ORB : $DEFAULT_ORB"
371 dnl We don t need to say when we re entering directories if we re using
372 dnl GNU make becuase make does it for us.
373 if test "X$GMAKE" = "Xyes"; then
374 AC_SUBST(SETX) SETX=":"
376 AC_SUBST(SETX) SETX="set -x"
379 dnl copy shells and utilities contained in the bin directory
380 dnl excluding .in files (treated in AC-OUTPUT below) and CVS
384 echo ---------------------------------------------
385 echo generating Makefiles and configure files
386 echo ---------------------------------------------
389 #AC_OUTPUT_COMMANDS([ \
390 # chmod +x ./bin/*; \
391 # chmod +x ./bin/salome/*;
394 # This list is initiated using autoscan and must be updated manually
395 # when adding a new file <filename>.in to manage. When you execute
396 # autoscan, the Makefile list is generated in the output file configure.scan.
397 # This could be helpfull to update de configuration.
399 ./salome_adm/unix/SALOMEconfig.h \
400 ./adm_local/Makefile \
401 ./adm_local/unix/Makefile \
402 ./adm_local/unix/config_files/Makefile \
404 ./doc/salome/Makefile \
405 ./doc/salome/gui/Makefile \
406 ./doc/salome/gui/doxyfile \
407 ./doc/salome/tui/Makefile \
408 ./doc/salome/tui/doxyfile \
412 ./resources/Makefile \
414 ./src/PluginUtils/Makefile \
415 ./src/BLSURFPlugin/Makefile \
417 ./BLSURFPLUGIN_version.h \