1 # Copyright (C) 2007-2008 CEA/DEN, EDF R&D, OPEN CASCADE
3 # Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
4 # CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
6 # This library is free software; you can redistribute it and/or
7 # modify it under the terms of the GNU Lesser General Public
8 # License as published by the Free Software Foundation; either
9 # version 2.1 of the License.
11 # This library is distributed in the hope that it will be useful,
12 # but WITHOUT ANY WARRANTY; without even the implied warranty of
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 # Lesser General Public License for more details.
16 # You should have received a copy of the GNU Lesser General Public
17 # License along with this library; if not, write to the Free Software
18 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
20 # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
22 # PLEASE DO NOT MODIFY configure.in FILE
23 # ALL CHANGES WILL BE DISCARDED BY THE NEXT
24 # build_configure COMMAND
25 # CHANGES MUST BE MADE IN configure.in.base FILE
26 # Author : Marc Tajchman (CEA)
28 # Modified by : Patrick GOLDBRONN (CEA)
29 # Modified by : Marc Tajchman (CEA)
30 # 13/03/2007: Alexander BORODIN - OCN
31 # Reorganization for usage of autotools
32 # Created from configure.in.base
34 AC_INIT([Salome2 Project NETGENPLUGIN module], [5.1.3], [webmaster.salome@opencascade.com], [SalomeNETGENPLUGIN])
35 AC_CONFIG_AUX_DIR(adm_local/unix/config_files)
38 AM_INIT_AUTOMAKE([-Wno-portability])
40 XVERSION=`echo $VERSION | awk -F. '{printf("0x%02x%02x%02x",$1,$2,$3)}'`
43 # set up MODULE_NAME variable for dynamic construction of directories (resources, etc.)
44 MODULE_NAME=netgenplugin
48 dnl Initialize source and build root directories
52 ROOT_SRCDIR=`echo $0 | sed -e "s,[[^/]]*$,,;s,/$,,;s,^$,.,"`
58 AC_SUBST(ROOT_BUILDDIR)
61 echo Source root directory : $ROOT_SRCDIR
62 echo Build root directory : $ROOT_BUILDDIR
66 if test -z "$AR"; then
67 AC_CHECK_PROGS(AR,ar xar,:,$PATH)
71 dnl Export the AR macro so that it will be placed in the libtool file
76 echo ---------------------------------------------
78 echo ---------------------------------------------
85 dnl libtool macro check for CC, LD, NM, LN_S, RANLIB, STRIP + pour les librairies dynamiques !
90 echo ---------------------------------------------
92 echo ---------------------------------------------
94 dnl first, we set static to no!
95 dnl if we want it, use --enable-static
101 dnl Fix up the INSTALL macro if it s a relative path. We want the
102 dnl full-path to the binary instead.
105 INSTALL='\${KERNEL_ROOT_DIR}'/adm_local/unix/config_files/install-sh
110 echo ---------------------------------------------
112 echo ---------------------------------------------
116 dnl inutil car libtool
120 # AC_CC_WARNINGS([ansi])
124 echo ---------------------------------------------
126 echo ---------------------------------------------
131 AC_F77_LIBRARY_LDFLAGS
133 AC_FC_LIBRARY_LDFLAGS
134 if test "X$FC" != "X" ; then
139 AC_CHECK_LIB(dl,dlopen)
141 dnl add library libm :
145 dnl Well we use sstream which is not in gcc pre-2.95.3
146 dnl We must test if it exists. If not, add it in include !
152 echo ---------------------------------------------
154 echo ---------------------------------------------
160 dnl ---------------------------------------------
162 dnl ---------------------------------------------
168 echo ---------------------------------------------
169 echo testing LEX \& YACC
170 echo ---------------------------------------------
179 echo ---------------------------------------------
181 echo ---------------------------------------------
189 dnl echo ---------------------------------------------
190 dnl echo testing java
191 dnl echo ---------------------------------------------
197 echo ---------------------------------------------
199 echo ---------------------------------------------
205 echo ---------------------------------------------
207 echo ---------------------------------------------
213 echo ---------------------------------------------
215 echo ---------------------------------------------
221 dnl echo ---------------------------------------------
222 dnl echo testing mico
223 dnl echo ---------------------------------------------
229 echo ---------------------------------------------
230 echo default ORB : omniORB
231 echo ---------------------------------------------
239 CORBA=adm_local/unix/$corba
242 echo ---------------------------------------------
244 echo ---------------------------------------------
250 if test "${SalomeGUI_need}" != "no" -a "${FullGUI_ok}" = "yes" ; then
254 AM_CONDITIONAL(NETGENPLUGIN_ENABLE_GUI, [test "${gui_ok}" = "yes"])
256 if test "${SalomeGUI_need}" == "yes"; then
257 if test "${FullGUI_ok}" != "yes"; then
258 AC_MSG_WARN(For configure NETGENPLUGIN module necessary full GUI!)
260 elif test "${SalomeGUI_need}" == "auto"; then
261 if test "${FullGUI_ok}" != "yes"; then
262 AC_MSG_WARN(Full GUI not found. Build will be done without GUI!)
264 elif test "${SalomeGUI_need}" == "no"; then
265 echo Build without GUI option has been chosen
268 if test "${gui_ok}" = "yes"; then
270 echo ---------------------------------------------
272 echo ---------------------------------------------
278 echo ---------------------------------------------
280 echo ---------------------------------------------
286 echo ---------------------------------------------
288 echo ---------------------------------------------
295 echo ---------------------------------------------
297 echo ---------------------------------------------
303 echo ---------------------------------------------
304 echo Testing OpenCascade
305 echo ---------------------------------------------
311 echo ---------------------------------------------
312 echo Testing html generators
313 echo ---------------------------------------------
316 CHECK_HTML_GENERATORS
319 echo ---------------------------------------------
321 echo ---------------------------------------------
327 echo ---------------------------------------------
329 echo ---------------------------------------------
335 echo ---------------------------------------------
337 echo ---------------------------------------------
343 echo ---------------------------------------------
345 echo ---------------------------------------------
351 echo ---------------------------------------------
353 echo ---------------------------------------------
359 echo ---------------------------------------------
361 echo ---------------------------------------------
364 #AM_CONDITIONAL( USE_GFORTRAN, [test "$F77" = "gfortran"])
368 if test "${gui_ok}" = "yes"; then
369 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 gui_ok Geom_ok SMesh_ok Netgen_ok"
370 elif test "${SalomeGUI_need}" != "no"; then
371 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 gui_ok Geom_ok SMesh_ok Netgen_ok"
373 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 SMesh_ok Netgen_ok"
376 for var in $variables
378 printf " %10s : " `echo \$var | sed -e "s,_ok,,"`
383 echo "Default ORB : $DEFAULT_ORB"
386 dnl We don t need to say when we re entering directories if we re using
387 dnl GNU make becuase make does it for us.
388 if test "X$GMAKE" = "Xyes"; then
389 AC_SUBST(SETX) SETX=":"
391 AC_SUBST(SETX) SETX="set -x"
394 dnl copy shells and utilities contained in the bin directory
395 dnl excluding .in files (treated in AC-OUTPUT below) and CVS
399 echo ---------------------------------------------
400 echo generating Makefiles and configure files
401 echo ---------------------------------------------
404 #AC_OUTPUT_COMMANDS([ \
405 # chmod +x ./bin/*; \
406 # chmod +x ./bin/salome/*;
409 # This list is initiated using autoscan and must be updated manually
410 # when adding a new file <filename>.in to manage. When you execute
411 # autoscan, the Makefile list is generated in the output file configure.scan.
412 # This could be helpfull to update de configuration.
415 adm_local/unix/Makefile \
416 adm_local/unix/config_files/Makefile \
419 NETGENPLUGIN_version.h \
422 src/NETGEN/Makefile \
423 src/NETGENPlugin/Makefile \