/usr/share/dune/aclocal/eigen.m4 is in libdune-pdelab-dev 2.0.0-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 | dnl DUNE_EIGEN
dnl ------------------------------------------------------
dnl use pkgconfig to check if EIGEN is usable and working
AC_DEFUN([DUNE_EIGEN], [
AC_REQUIRE([PKG_PROG_PKG_CONFIG])
# use pkg-config to search for eigen
PKG_CHECK_MODULES([EIGEN], [eigen3], [
HAVE_EIGEN=yes
# we use C++ ... rename CFLAGS to CXXFLAGS
EIGEN_CXXFLAGS="$EIGEN_CFLAGS -DENABLE_EIGEN=1"
EIGEN_CFLAGS=""
AC_SUBST(EIGEN_CXXFLAGS)
AC_SUBST(EIGEN_CFLAGS)
], [
AC_MSG_WARN($EIGEN_PKG_ERRORS)
HAVE_EIGEN=no
])
# use the ENABLE_* trick
AC_DEFINE([HAVE_EIGEN], ENABLE_EIGEN,
[This is only true if EIGEN was found by configure
_and_ if the application uses the EIGEN_CXXFLAGS])
# add automake conditionsl
AM_CONDITIONAL(EIGEN, test x$HAVE_EIGEN = xyes)
# print summary
DUNE_ADD_SUMMARY_ENTRY([Eigen],["$HAVE_EIGEN"])
])
|