Commit d3e23e38 authored by Ansgar Burchardt's avatar Ansgar Burchardt

Remove autotools.

parent c2f8f2ac
Pipeline #4890 failed with stage
in 12 minutes and 25 seconds
# $Id: Makefile.am 731 2007-03-17 20:53:00Z christi $
# we need the module file to be able to build via dunecontrol
EXTRA_DIST=dune.module \
CMakeLists.txt
# don't follow the full GNU-standard
# need automake >= 1.5
AUTOMAKE_OPTIONS = foreign 1.5
SUBDIRS = dune doc m4 cmake
pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = dune-fufem.pc
# use configured compiler for "make distcheck"
# doxygen is difficult to convince to build in a special directory...
DISTCHECK_CONFIGURE_FLAGS = --with-dune-common="$(DUNE_COMMON_ROOT)" --with-dune-geometry="$(DUNE_GEOMETRY_ROOT)" --with-dune-grid="$(DUNE_GRID_ROOT)" --with-dune-istl="$(DUNE_ISTL_ROOT)" --with-dune-localfunctions="$(DUNE_LOCALFUNCTIONS_ROOT)" CXX="$(CXX)" CC="$(CC)" DOXYGEN="true" --enable-parallel=@ENABLE_PARALLEL@ MPICC="$(MPICC)"
include $(top_srcdir)/am/global-rules
# Generate package configuration files for finding
# installed modules with CMake
include $(top_srcdir)/am/cmake-pkg-config
SUBDIRS = modules
include $(top_srcdir)/am/global-rules
MODULES = DuneFufemMacros.cmake
modulesdir = $(datadir)/dune/cmake/modules
dist_modules_DATA = ${MODULES}
include $(top_srcdir)/am/global-rules
EXTRA_DIST = CMakeLists.txt AddPythonFlags.cmake DuneFufemMacros.cmake AddAdolcFlags.cmake FindAdolc.cmake
#! /bin/bash
# $Id: configure.ac 848 2008-01-07 16:29:01Z christi $
# Process this file with autoconf to produce a configure script.
DUNE_AC_INIT
AM_INIT_AUTOMAKE
AC_CONFIG_SRCDIR([dune/fufem/boundarypatch.hh])
AC_CONFIG_HEADERS([config.h])
# check all dune-module stuff
DUNE_CHECK_ALL
# preset variable to path such that #include <dune/...> works
AC_SUBST([AM_CPPFLAGS], '$(DUNE_CPPFLAGS) -I$(top_srcdir)')
AC_SUBST([AM_LDFLAGS], '$(DUNE_LDFLAGS) $(DUNE_LIBS)')
DUNE_SUMMARY_ALL
# write output
AC_CONFIG_FILES([Makefile
cmake/Makefile
cmake/modules/Makefile
doc/doxygen/Makefile
doc/doxygen/Doxyfile
doc/Makefile
dune/Makefile
dune/fufem/assemblers/Makefile
dune/fufem/assemblers/localassemblers/Makefile
dune/fufem/estimators/Makefile
dune/fufem/functionspacebases/Makefile
dune/fufem/functiontools/Makefile
dune/fufem/functions/Makefile
dune/fufem/mechanics/Makefile
dune/fufem/python/Makefile
dune/fufem/quadraturerules/Makefile
dune/fufem/test/Makefile
dune/fufem/utilities/Makefile
dune/fufem/Makefile
m4/Makefile
dune-fufem.pc])
AC_OUTPUT
SUBDIRS = doxygen
CURDIR = doc
BASEDIR = ..
# where to install the documentation
docdir=$(datadir)/doc/dune-fufem
include $(top_srcdir)/am/webstuff
include $(top_srcdir)/am/global-rules
# $Id: Makefile.am 724 2007-03-01 11:30:49Z christi $
SUBDIRS = doxygen
docdir=$(datadir)/doc/dune-fufem
#doc_DATA = istl.pdf
CONFIG_CLEAN_FILES = *.dist
include $(top_srcdir)/am/latex
include $(top_srcdir)/am/webstuff
include $(top_srcdir)/am/global-rules
BASEDIR=../..
CURDIR=doc/doxygen
include $(top_srcdir)/am/doxygen
include $(top_srcdir)/am/global-rules
# $Id: $
SUBDIRS = fufem
include $(top_srcdir)/am/global-rules
# $Id: Makefile.am 810 2007-08-20 19:42:04Z mblatt $
SUBDIRS = assemblers estimators functions functionspacebases functiontools mechanics python quadraturerules utilities test
fufemdir = $(includedir)/dune/fufem
fufem_HEADERS = any.hh \
arcofcircle.hh \
arithmetic.hh \
blockmatrixview.hh \
boundaryiterator.hh \
boundarypatch.hh \
boundarypatchprolongator.hh \
boundarywriter.hh \
boundingbox.hh \
box.hh \
concept.hh \
dataio.hh \
dgindexset.hh \
dgpqkindexset.hh \
differencenormsquared.hh \
discretizationerror.hh \
dunedataio.hh \
dunepython.hh \
facehierarchy.hh \
facelocalfiniteelement.hh \
formatstring.hh \
globalintersectioniterator.hh \
improvegrid.hh \
indexedsliceiterator.hh \
interval.hh \
lumpmatrix.hh \
makehalfcircle.hh \
makesphere.hh \
mappedmatrix.hh \
matlab_io.hh \
prolongboundarypatch.hh \
readbitfield.hh \
referenceelementhelper.hh \
refinedfehelper.hh \
sampleonbitfield.hh \
sharedpointermap.hh \
staticmatrixtools.hh \
surfmassmatrix.hh \
symmetrictensor.hh \
ulis_tools.hh
headercheck_IGNORE =
include $(top_srcdir)/am/global-rules
SUBDIRS = localassemblers
assemblersdir = $(includedir)/dune/fufem/assemblers
assemblers_HEADERS = assembler.hh \
boundaryoperatorassembler.hh \
functionalassembler.hh \
localassembler.hh \
localoperatorassembler.hh \
localfunctionalassembler.hh \
operatorassembler.hh \
transferoperatorassembler.hh \
preconditioneddefectassembler.hh \
integraloperatorassembler.hh \
boundaryfunctionalassembler.hh \
intersectionoperatorassembler.hh \
localboundaryassembler.hh
include $(top_srcdir)/am/global-rules
SUBDIRS =
localassemblersdir = $(includedir)/dune/fufem/assemblers/localassemblers
localassemblers_HEADERS = adolclinearizationassembler.hh \
adolchessianassembler.hh \
adolclocalenergy.hh \
generalizedlaplaceassembler.hh \
l2functionalassembler.hh \
lumpedmassassembler.hh \
massassembler.hh \
gradientassembler.hh \
laplaceassembler.hh \
subgridl2functionalassembler.hh \
stvenantkirchhoffassembler.hh \
convolutionassembler.hh \
neumannboundaryassembler.hh \
normalstressboundaryassembler.hh \
viscosityassembler.hh \
h1functionalassembler.hh \
subgridh1functionalassembler.hh \
boundarymassassembler.hh \
weightedmassassembler.hh \
geomexactstvenantkirchhoffoperatorassembler.hh \
geomexactstvenantkirchhofffunctionalassembler.hh \
secondorderoperatorassembler.hh
include $(top_srcdir)/am/global-rules
SUBDIRS =
estimatorsdir = $(includedir)/dune/fufem/estimators
estimators_HEADERS = errorfractionmarking.hh geometricmarking.hh hierarchicalestimator.hh \
refinementindicator.hh fractionalmarking.hh hierarchicestimatorbase.hh
include $(top_srcdir)/am/global-rules
SUBDIRS =
functionsdir = $(includedir)/dune/fufem/functions
functions_HEADERS = alienelementlocalbasisfunction.hh \
analyticgridfunction.hh \
basisgridfunction.hh \
cachedcomponentwrapper.hh \
coarsegridfunctionwrapper.hh \
composedfunction.hh \
composedgridfunction.hh \
constantfunction.hh \
deformationfunction.hh \
localbasisderivativefunction.hh \
localbasisjacobianfunction.hh \
polynomial.hh \
portablegreymap.hh \
portablepixelmap.hh \
sumfunction.hh \
sumgridfunction.hh \
virtualdifferentiablefunction.hh \
virtualgridfunction.hh \
virtualfunctiontoboundarysegmentadapter.hh \
vtkbasisgridfunction.hh
include $(top_srcdir)/am/global-rules
SUBDIRS =
functionspacebasesdir = $(includedir)/dune/fufem/functionspacebases
functionspacebases_HEADERS = conformingbasis.hh \
dofconstraints.hh \
dunefunctionsbasis.hh \
extensionbasis.hh \
functionspacebasis.hh \
p0basis.hh \
p1nodalbasis.hh \
p2hierarchicalbasis.hh \
p2hierarchicalwithelementbubblesbasis.hh \
p2nodalbasis.hh \
p3nodalbasis.hh \
q1nodalbasis.hh \
reducedconformingbasis.hh \
refinedp0basis.hh \
refinedp1nodalbasis.hh
include $(top_srcdir)/am/global-rules
SUBDIRS =
functiontoolsdir = $(includedir)/dune/fufem/functiontools
functiontools_HEADERS = basisidmapper.hh \
namedfunctionmap.hh \
amirameshbasiswriter.hh \
vtkbasiswriter.hh \
gridfunctionadaptor.hh \
boundarydofs.hh \
functionintegrator.hh \
gradientbasis.hh \
basisinterpolator.hh \
p0p1interpolation.hh
include $(top_srcdir)/am/global-rules
SUBDIRS =
mechanicsdir = $(includedir)/dune/fufem/mechanics
mechanics_HEADERS = \
cubictensor.hh \
elasticitytensor.hh \
isotropictensor.hh \
newpfeassembler.hh \
tetratensor.hh
include $(top_srcdir)/am/global-rules
# $Id: $
SUBDIRS =
pythondir = $(includedir)/dune/fufem/python
python_HEADERS = \
callable.hh \
common.hh \
conversion.hh \
function.hh \
module.hh \
reference.hh
include $(top_srcdir)/am/global-rules
SUBDIRS =
quadraturerulesdir = $(includedir)/dune/fufem/quadraturerules
quadraturerules_HEADERS = \
compositequadraturerule.hh \
lumpingquadraturerule.hh \
quadraturerulecache.hh \
refinedquadraturerule.hh
include $(top_srcdir)/am/global-rules
# list of tests to run
TESTS = arithmetictest\
basisgridfunctiontest \
basisinterpolatortest \
basisinterpolationmatrixtest \
boundarypatchtest \
coarsegridfunctionwrappertest \
composedfunctiontest \
constantfunctiontest \
functionintegratortest \
generalizedlaplaceassemblertest \
gradientassemblertest \
gridfunctiontest \
gridfunctionadaptortest \
h1functionalassemblertest \
integraloperatorassemblertest \
laplaceassemblertest \
pgmtest \
polynomialtest \
ppmtest \
secondorderassemblertest \
serializationtest \
staticmatrixtoolstest \
subgridxyfunctionalassemblertest \
sumfunctiontest \
tensortest
CLEANFILES = $(TESTS) dataiotest
# programs just to build when "make check" is used
check_PROGRAMS = $(TESTS)
noinst_HEADERS = common.hh
# collect some common flags
COMMON_CPPFLAGS = $(AM_CPPFLAGS) $(DUNEMPICPPFLAGS)
COMMON_LDADD = $(DUNE_LDFLAGS) $(DUNE_LIBS) $(DUNEMPILIBS) $(LDADD)
COMMON_LDFLAGS = $(AM_LDFLAGS) $(DUNEMPILDFLAGS) $(DUNE_LDFLAGS)
GRID_CPPFLAGS = $(UG_CPPFLAGS) $(ALUGRID_CPPFLAGS)
GRID_LDADD = $(UG_LDFLAGS) $(UG_LIBS) $(ALUGRID_LDFLAGS) $(ALUGRID_LIBS)
GRID_LDFLAGS = $(UG_LDFLAGS) $(ALUGRID_LDFLAGS)
# define the programs
arithmetictest_SOURCES = arithmetictest.cc
arithmetictest_CPPFLAGS = $(COMMON_CPPFLAGS)
arithmetictest_LDADD = $(COMMON_LDADD)
arithmetictest_LDFLAGS = $(COMMON_LDFLAGS)
if ADOLC
TESTS += adolctest
adolctest_SOURCES = adolctest.cc
adolctest_CPPFLAGS = $(COMMON_CPPFLAGS) $(GRID_CPPFLAGS) $(ADOLC_CPPFLAGS)
adolctest_LDADD = $(COMMON_LDADD) $(GRID_LDADD) $(ADOLC_LDFLAGS)
adolctest_LDFLAGS = $(COMMON_LDFLAGS) $(GRID_LDFLAGS) $(ADOLC_LDFLAGS)
endif
basisgridfunctiontest_SOURCES = basisgridfunctiontest.cc
basisgridfunctiontest_CPPFLAGS = $(COMMON_CPPFLAGS) $(GRID_CPPFLAGS)
basisgridfunctiontest_LDADD = $(COMMON_LDADD) $(GRID_LDADD)
basisgridfunctiontest_LDFLAGS = $(COMMON_LDFLAGS) $(GRID_LDFLAGS)
basisinterpolatortest_SOURCES = basisinterpolatortest.cc
basisinterpolatortest_CPPFLAGS = $(COMMON_CPPFLAGS) $(GRID_CPPFLAGS)
basisinterpolatortest_LDADD = $(COMMON_LDADD) $(GRID_LDADD)
basisinterpolatortest_LDFLAGS = $(COMMON_LDFLAGS) $(GRID_LDFLAGS)
basisinterpolationmatrixtest_SOURCES = basisinterpolationmatrixtest.cc
basisinterpolationmatrixtest_CPPFLAGS = $(COMMON_CPPFLAGS) $(GRID_CPPFLAGS)
basisinterpolationmatrixtest_LDADD = $(COMMON_LDADD) $(GRID_LDADD)
basisinterpolationmatrixtest_LDFLAGS = $(COMMON_LDFLAGS) $(GRID_LDFLAGS)
boundarypatchtest_SOURCES = boundarypatchtest.cc
boundarypatchtest_CPPFLAGS = $(COMMON_CPPFLAGS) $(GRID_CPPFLAGS)
boundarypatchtest_LDADD = $(COMMON_LDADD) $(GRID_LDADD)
boundarypatchtest_LDFLAGS = $(COMMON_LDFLAGS) $(GRID_LDFLAGS)
coarsegridfunctionwrappertest_SOURCES = coarsegridfunctionwrappertest.cc
coarsegridfunctionwrappertest_CPPFLAGS = $(COMMON_CPPFLAGS) $(GRID_CPPFLAGS)
coarsegridfunctionwrappertest_LDADD = $(COMMON_LDADD) $(GRID_LDADD)
coarsegridfunctionwrappertest_LDFLAGS = $(COMMON_LDFLAGS) $(GRID_LDFLAGS)
if PYTHON
TESTS += dunepythontest
dunepythontest_SOURCES = dunepythontest.cc
dunepythontest_CPPFLAGS = \
$(PYTHON_CPPFLAGS) $(COMMON_CPPFLAGS) $(GRID_CPPFLAGS) \
-DDUNE_FUFEM_TEST_MODULE_PATH=\"$(srcdir)\"
dunepythontest_LDADD = $(PYTHON_LIBS) $(COMMON_LDADD) $(GRID_LDADD)
dunepythontest_LDFLAGS = $(PYTHON_LDFLAGS) $(COMMON_LDFLAGS) $(GRID_LDFLAGS)
endif
generalizedlaplaceassemblertest_SOURCES = generalizedlaplaceassemblertest.cc
generalizedlaplaceassemblertest_CPPFLAGS = $(COMMON_CPPFLAGS) $(GRID_CPPFLAGS)
generalizedlaplaceassemblertest_LDADD = $(COMMON_LDADD) $(GRID_LDADD)
generalizedlaplaceassemblertest_LDFLAGS = $(COMMON_LDFLAGS) $(GRID_LDFLAGS)
gradientassemblertest_SOURCES = gradientassemblertest.cc
gradientassemblertest_CPPFLAGS = $(COMMON_CPPFLAGS) $(GRID_CPPFLAGS)
gradientassemblertest_LDADD = $(COMMON_LDADD) $(GRID_LDADD)
gradientassemblertest_LDFLAGS = $(COMMON_LDFLAGS) $(GRID_LDFLAGS)
gridfunctiontest_SOURCES = gridfunctiontest.cc
gridfunctiontest_CPPFLAGS = $(COMMON_CPPFLAGS) $(GRID_CPPFLAGS)
gridfunctiontest_LDADD = $(COMMON_LDADD) $(GRID_LDADD)
gridfunctiontest_LDFLAGS = $(COMMON_LDFLAGS) $(GRID_LDFLAGS)
gridfunctionadaptortest_SOURCES = gridfunctionadaptortest.cc
gridfunctionadaptortest_CPPFLAGS = $(COMMON_CPPFLAGS) $(GRID_CPPFLAGS)
gridfunctionadaptortest_LDADD = $(COMMON_LDADD) $(GRID_LDADD)
gridfunctionadaptortest_LDFLAGS = $(COMMON_LDFLAGS) $(GRID_LDFLAGS)
h1functionalassemblertest_SOURCES = h1functionalassemblertest.cc
h1functionalassemblertest_CPPFLAGS = $(COMMON_CPPFLAGS) $(GRID_CPPFLAGS)
h1functionalassemblertest_LDADD = $(COMMON_LDADD) $(GRID_LDADD)
h1functionalassemblertest_LDFLAGS = $(COMMON_LDFLAGS) $(GRID_LDFLAGS)
integraloperatorassemblertest_SOURCES = integraloperatorassemblertest.cc
integraloperatorassemblertest_CPPFLAGS = $(COMMON_CPPFLAGS) $(GRID_CPPFLAGS)
integraloperatorassemblertest_LDADD = $(COMMON_LDADD) $(GRID_LDADD)
integraloperatorassemblertest_LDFLAGS = $(COMMON_LDFLAGS) $(GRID_LDFLAGS)
laplaceassemblertest_SOURCES = laplaceassemblertest.cc
laplaceassemblertest_CPPFLAGS = $(COMMON_CPPFLAGS) $(GRID_CPPFLAGS)
laplaceassemblertest_LDADD = $(COMMON_LDADD) $(GRID_LDADD)
laplaceassemblertest_LDFLAGS = $(COMMON_LDFLAGS) $(GRID_LDFLAGS)
pgmtest_SOURCES = pgmtest.cc
pgmtest_CPPFLAGS = $(COMMON_CPPFLAGS) $(GRID_CPPFLAGS)
pgmtest_LDADD = $(COMMON_LDADD) $(GRID_LDADD)
pgmtest_LDFLAGS = $(COMMON_LDFLAGS) $(GRID_LDFLAGS)
polynomialtest_SOURCES = polynomialtest.cc
polynomialtest_CPPFLAGS = $(COMMON_CPPFLAGS) $(GRID_CPPFLAGS)
polynomialtest_LDADD = $(COMMON_LDADD) $(GRID_LDADD)
polynomialtest_LDFLAGS = $(COMMON_LDFLAGS) $(GRID_LDFLAGS)
ppmtest_SOURCES = ppmtest.cc
ppmtest_CPPFLAGS = $(COMMON_CPPFLAGS) $(GRID_CPPFLAGS)
ppmtest_LDADD = $(COMMON_LDADD) $(GRID_LDADD)
ppmtest_LDFLAGS = $(COMMON_LDFLAGS) $(GRID_LDFLAGS)
composedfunctiontest_SOURCES = composedfunctiontest.cc
composedfunctiontest_CPPFLAGS = $(COMMON_CPPFLAGS) $(GRID_CPPFLAGS)
composedfunctiontest_LDADD = $(COMMON_LDADD) $(GRID_LDADD)
composedfunctiontest_LDFLAGS = $(COMMON_LDFLAGS) $(GRID_LDFLAGS)
constantfunctiontest_SOURCES = constantfunctiontest.cc
constantfunctiontest_CPPFLAGS = $(COMMON_CPPFLAGS) $(GRID_CPPFLAGS)
constantfunctiontest_LDADD = $(COMMON_LDADD) $(GRID_LDADD)
constantfunctiontest_LDFLAGS = $(COMMON_LDFLAGS) $(GRID_LDFLAGS)
functionintegratortest_SOURCES = functionintegratortest.cc
functionintegratortest_CPPFLAGS = $(COMMON_CPPFLAGS) $(GRID_CPPFLAGS)
functionintegratortest_LDADD = $(COMMON_LDADD) $(GRID_LDADD)
functionintegratortest_LDFLAGS = $(COMMON_LDFLAGS) $(GRID_LDFLAGS)
if UG
TESTS += functionspacebasistest
functionspacebasistest_SOURCES = functionspacebasistest.cc
functionspacebasistest_CPPFLAGS = $(COMMON_CPPFLAGS) $(GRID_CPPFLAGS)
functionspacebasistest_LDADD = $(COMMON_LDADD) $(GRID_LDADD)
functionspacebasistest_LDFLAGS = $(COMMON_LDFLAGS) $(GRID_LDFLAGS)
endif
serializationtest_SOURCES = serializationtest.cc
serializationtest_CXXFLAGS = $(COMMON_CPPFLAGS) $(BOOST_CPPFLAGS)
serializationtest_LDADD = $(COMMON_LDADD) $(BOOST_SERIALIZATION_LIB)
serializationtest_LDFLAGS = $(COMMON_LDFLAGS)
secondorderassemblertest_SOURCES = secondorderassemblertest.cc
secondorderassemblertest_CXXFLAGS = $(COMMON_CPPFLAGS)
secondorderassemblertest_LDADD = $(COMMON_LDADD)
secondorderassemblertest_LDFLAGS = $(COMMON_LDFLAGS)
staticmatrixtoolstest_SOURCES = staticmatrixtoolstest.cc
staticmatrixtoolstest_CPPFLAGS = $(COMMON_CPPFLAGS)
staticmatrixtoolstest_LDADD = $(COMMON_LDADD)
staticmatrixtoolstest_LDFLAGS = $(COMMON_LDFLAGS)
subgridxyfunctionalassemblertest_SOURCES = subgridxyfunctionalassemblertest.cc
subgridxyfunctionalassemblertest_CPPFLAGS = $(COMMON_CPPFLAGS) $(GRID_CPPFLAGS) $(AMIRAMESH_CPPFLAGS) -Wno-deprecated-declarations
subgridxyfunctionalassemblertest_LDADD = $(COMMON_LDADD) $(GRID_LDADD) $(AMIRAMESH_LDFLAGS) $(AMIRAMESH_LIBS)
subgridxyfunctionalassemblertest_LDFLAGS = $(COMMON_LDFLAGS) $(GRID_LDFLAGS)
sumfunctiontest_SOURCES = sumfunctiontest.cc
sumfunctiontest_CPPFLAGS = $(COMMON_CPPFLAGS) $(GRID_CPPFLAGS)
sumfunctiontest_LDADD = $(COMMON_LDADD) $(GRID_LDADD)
sumfunctiontest_LDFLAGS = $(COMMON_LDFLAGS) $(GRID_LDFLAGS)
tensortest_SOURCES = tensortest.cc
include $(top_srcdir)/am/global-rules
# $Id: $
SUBDIRS =
utilitiesdir = $(includedir)/dune/fufem/utilities
utilities_HEADERS = adolcnamespaceinjections.hh
hierarchicleafiterator.hh
include $(top_srcdir)/am/global-rules
install(FILES
ax_python_devel.m4
adolc.m4
dune_fufem.m4
m4_ax_boost_base.m4
m4_ax_boost_serialization.m4
DESTINATION share/dune/aclocal)
# $Id: Makefile.am 5184 2008-04-27 17:37:27Z christi $
ALLM4S = dune_fufem.m4 ax_python_devel.m4 m4_ax_boost_base.m4 m4_ax_boost_serialization.m4 adolc.m4
aclocaldir = $(datadir)/dune/aclocal
aclocal_DATA = $(ALLM4S)
EXTRA_DIST = $(ALLM4S)
include $(top_srcdir)/am/global-rules
# searches for Adol-C headers and libs
AC_DEFUN([DUNE_ADOLC],[
AC_REQUIRE([AC_PROG_CXX])
AC_CHECK_HEADERS(cstddef stddef.h)
AC_ARG_WITH(adolc,
AC_HELP_STRING([--with-adolc=PATH],[directory with Adol-C inside]))
# store values
ac_save_LDFLAGS="$LDFLAGS"
ac_save_CPPFLAGS="$CPPFLAGS"
ac_save_LIBS="$LIBS"
ac_save_PKG_CONFIG_PATH="$PKG_CONFIG_PATH"
## do nothing if --without-adolc is used
AS_IF([test x$with_adolc != xno], [
# is --with-adolc=bla used?
AS_IF([test "x$with_adolc" != xyes], [
AS_IF([! test -d $with_adolc], [
AC_MSG_WARN([Adol-C directory $with_adolc does not exist])
], [
# expand tilde / other stuff
ADOLCROOT=`cd $with_adolc && pwd`
])
])
AS_IF([test "x$ADOLCROOT" = x], [
# use some default value...
ADOLCROOT="/usr/local/adolc"
])
ADOLC_LIB_PATH="$ADOLCROOT/lib"
# Check for adol-c and set ADOLC_*
export PKG_CONFIG_PATH="$ADOLC_LIB_PATH/pkgconfig:$PKG_CONFIG_PATH"
PKG_CHECK_MODULES([ADOLC], [adolc], [
HAVE_ADOLC="1"
], [ dnl default rule would fail
AC_MSG_WARN([Adol-C not found in $ADOLCROOT])
])
dnl For some strange reason, PKG_CHECK_MODULES puts the stuff we would expect
dnl in ADOLC_CPPFLAGS (namely, -I<path>)in ADOLC_CFLAGS
dnl We therefore copy it by hand
ADOLC_CPPFLAGS="$ADOLC_CFLAGS -DENABLE_ADOLC"
LDFLAGS="$LDFLAGS $ADOLC_LDFLAGS"
CPPFLAGS="$CPPFLAGS $ADOLC_CPPFLAGS"
LIBS="$LIBS $ADOLC_LIBS"
])
with_adolc="no"
# survived all tests?
AS_IF([test x$HAVE_ADOLC = x1], [
AC_SUBST(ADOLC_LIBS, $ADOLC_LIBS)
AC_SUBST(ADOLC_LDFLAGS, $ADOLC_LDFLAGS)
AC_SUBST(ADOLC_CPPFLAGS, $ADOLC_CPPFLAGS)
AC_DEFINE(HAVE_ADOLC, [ENABLE_ADOLC], [Define to ENABLE_ADOLC if Adol-C library is found])
# add to global list
DUNE_PKG_LDFLAGS="$DUNE_PKG_LDFLAGS $ADOLC_LDFLAGS"
DUNE_PKG_LIBS="$DUNE_PKG_LIBS $ADOLC_LIBS"
DUNE_PKG_CPPFLAGS="$DUNE_PKG_CPPFLAGS $ADOLC_CPPFLAGS"
# set variable for summary
with_adolc="yes"
], [
unset ADOLC_LIBS
AC_SUBST(ADOLC_LIBS, "")
unset ADOLC_LDFLAGS
AC_SUBST(ADOLC_LDFLAGS, "")
unset ADOLC_CPPFLAGS
AC_SUBST(ADOLC_CPPFLAGS, "")
])
# also tell automake
AM_CONDITIONAL(ADOLC, test x$HAVE_ADOLC = x1)
# reset old values
LIBS="$ac_save_LIBS"
CPPFLAGS="$ac_save_CPPFLAGS"
LDFLAGS="$ac_save_LDFLAGS"
PKG_CONFIG_PATH="$ac_save_PKG_CONFIG_PATH"
DUNE_ADD_SUMMARY_ENTRY([Adol-C],[$with_adolc])
])
This diff is collapsed.
AC_DEFUN([DUNE_FUFEM_CHECKS],[
AC_REQUIRE([AX_PYTHON_DEVEL])
AC_REQUIRE([AX_BOOST_BASE])
AC_REQUIRE([AX_BOOST_SERIALIZATION])
AC_REQUIRE([DUNE_ADOLC])
])
AC_DEFUN([DUNE_FUFEM_CHECK_MODULE],[
DUNE_CHECK_MODULES([dune-fufem], [fufem/boundarypatch.hh])
])
This diff is collapsed.
# ===========================================================================
# http://www.gnu.org/software/autoconf-archive/ax_boost_serialization.html
# ===========================================================================
#
# SYNOPSIS
#
# AX_BOOST_SERIALIZATION
#
# DESCRIPTION
#
# Test for Serialization library from the Boost C++ libraries. The macro
# requires a preceding call to AX_BOOST_BASE. Further documentation is
# available at <http://randspringer.de/boost/index.html>.
#
# This macro calls:
#
# AC_SUBST(BOOST_SERIALIZATION_LIB)
#
# And sets:
#
# HAVE_BOOST_SERIALIZATION
#
# LICENSE
#
# Copyright (c) 2008 Thomas Porschberg <thomas@randspringer.de>
#
# Copying and distribution of this file, with or without modification, are
# permitted in any medium without royalty provided the copyright notice
# and this notice are preserved. This file is offered as-is, without any
# warranty.
#serial 18
AC_DEFUN([AX_BOOST_SERIALIZATION],
[
AC_ARG_WITH([boost-serialization],
AS_HELP_STRING([--with-boost-serialization@<:@=special-lib@:>@],