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.1], [webmaster.salome@opencascade.com], [SalomeBLSURFPLUGIN])
26 AC_CONFIG_AUX_DIR(salome_adm/unix/config_files)
29 AM_INIT_AUTOMAKE([-Wno-portability])
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
232 echo ---------------------------------------------
234 echo ---------------------------------------------
240 if test "${SalomeGUI_need}" != "no" -a "${FullGUI_ok}" = "yes" ; then
244 AM_CONDITIONAL(BLSURFPLUGIN_ENABLE_GUI, [test "${gui_ok}" = "yes"])
246 if test "${SalomeGUI_need}" == "yes"; then
247 if test "${FullGUI_ok}" != "yes"; then
248 AC_MSG_WARN(For configure BLSURFPLUGIN module necessary full GUI!)
250 elif test "${SalomeGUI_need}" == "auto"; then
251 if test "${FullGUI_ok}" != "yes"; then
252 AC_MSG_WARN(Full GUI not found. Build will be done without GUI!)
254 elif test "${SalomeGUI_need}" == "no"; then
255 echo Build without GUI option has been chosen
258 if test "${gui_ok}" = "yes"; then
260 echo ---------------------------------------------
262 echo ---------------------------------------------
268 echo ---------------------------------------------
270 echo ---------------------------------------------
276 echo ---------------------------------------------
278 echo ---------------------------------------------
285 echo ---------------------------------------------
287 echo ---------------------------------------------
293 echo ---------------------------------------------
294 echo Testing OpenCascade
295 echo ---------------------------------------------
301 echo ---------------------------------------------
302 echo Testing html generators
303 echo ---------------------------------------------
306 CHECK_HTML_GENERATORS
309 echo ---------------------------------------------
311 echo ---------------------------------------------
317 echo ---------------------------------------------
319 echo ---------------------------------------------
325 echo ---------------------------------------------
327 echo ---------------------------------------------
333 echo ---------------------------------------------
335 echo ---------------------------------------------
341 echo ---------------------------------------------
343 echo ---------------------------------------------
349 echo ---------------------------------------------
351 echo ---------------------------------------------
354 #AM_CONDITIONAL( USE_GFORTRAN, [test "$F77" = "gfortran"])
358 if test "${gui_ok}" = "yes"; then
359 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 gui_ok BLSURF_ok"
360 elif test "${SalomeGUI_need}" != "no"; then
361 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 gui_ok BLSURF_ok"
363 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"
366 for var in $variables
368 printf " %10s : " `echo \$var | sed -e "s,_ok,,"`
373 echo "Default ORB : $DEFAULT_ORB"
376 dnl We don t need to say when we re entering directories if we re using
377 dnl GNU make becuase make does it for us.
378 if test "X$GMAKE" = "Xyes"; then
379 AC_SUBST(SETX) SETX=":"
381 AC_SUBST(SETX) SETX="set -x"
384 dnl copy shells and utilities contained in the bin directory
385 dnl excluding .in files (treated in AC-OUTPUT below) and CVS
389 echo ---------------------------------------------
390 echo generating Makefiles and configure files
391 echo ---------------------------------------------
394 #AC_OUTPUT_COMMANDS([ \
395 # chmod +x ./bin/*; \
396 # chmod +x ./bin/salome/*;
399 # This list is initiated using autoscan and must be updated manually
400 # when adding a new file <filename>.in to manage. When you execute
401 # autoscan, the Makefile list is generated in the output file configure.scan.
402 # This could be helpfull to update de configuration.
404 salome_adm/unix/SALOMEconfig.h \
406 adm_local/unix/Makefile \
407 adm_local/unix/config_files/Makefile \
413 src/BLSURFPlugin/Makefile \
415 BLSURFPLUGIN_version.h \