From 3047e1c4f98979dfb431b62e892360c673e70fb9 Mon Sep 17 00:00:00 2001 From: Oliver Sander <sander@igpm.rwth-aachen.de> Date: Thu, 5 Mar 2009 18:47:11 +0000 Subject: [PATCH] m4-test to check the presence of this module [[Imported from SVN: r10050]] --- Makefile.am | 2 +- configure.ac | 3 ++- m4/Makefile.am | 8 ++++++++ m4/elasticity.m4 | 7 +++++++ 4 files changed, 18 insertions(+), 2 deletions(-) create mode 100644 m4/Makefile.am create mode 100644 m4/elasticity.m4 diff --git a/Makefile.am b/Makefile.am index ef19243..2e7f7c9 100644 --- a/Makefile.am +++ b/Makefile.am @@ -21,7 +21,7 @@ nonlinelast_SOURCES = nonlinelast.cc viscoelast_SOURCES = viscoelast.cc # Build the unit tests as well -SUBDIRS = test +SUBDIRS = test m4 # don't follow the full GNU-standard # we need automake 1.5 diff --git a/configure.ac b/configure.ac index 565f851..af3bdfb 100644 --- a/configure.ac +++ b/configure.ac @@ -16,7 +16,8 @@ AC_SUBST(AM_LDFLAGS, $DUNE_LDFLAGS) LIBS="$DUNE_LIBS" AC_CONFIG_FILES([Makefile - test/Makefile]) + test/Makefile + m4/Makefile]) AC_OUTPUT # finally print the summary information diff --git a/m4/Makefile.am b/m4/Makefile.am new file mode 100644 index 0000000..6f4a54c --- /dev/null +++ b/m4/Makefile.am @@ -0,0 +1,8 @@ +ALLM4S = elasticity.m4 + +aclocaldir = $(datadir)/aclocal +aclocal_DATA = $(ALLM4S) + +EXTRA_DIST = $(ALLM4S) + +include $(top_srcdir)/am/global-rules diff --git a/m4/elasticity.m4 b/m4/elasticity.m4 new file mode 100644 index 0000000..73f30cf --- /dev/null +++ b/m4/elasticity.m4 @@ -0,0 +1,7 @@ +AC_DEFUN([ELASTICITY_CHECKS],[ +# AC_REQUIRE([DUNE_IPOPT]) +]) + +AC_DEFUN([ELASTICITY_CHECK_MODULE],[ + DUNE_CHECK_MODULES([elasticity], [src/elasticityhelpers.hh]) +]) -- GitLab