Commit Graph

14 Commits

Author SHA1 Message Date
Bård Skaflestad
f57ba7dd0b Merge remote-tracking branch 'upstream/ert' into ert
Bring in upstream changes.
2012-06-28 13:30:28 +02:00
Bård Skaflestad
41736965ff Tentative refinement of ERT Autoconf support.
Add a new macro, "ERT", that uses AC_LINK_IFELSE to test if the ECL and
related libraries are available of the local computer system.  Call the
macro from "configure.ac".

Also, adapt the main "Makefile.am" to the results of the "ERT" macro.
2012-06-28 13:27:03 +02:00
Bård Skaflestad
11d90ddeab Add AC macro to determine how to link Boost.Test
Details:
Test suites based on Boost.Test must know how to include the library
support code into the executables.  If the Boost.Test library is
dynamically linked, then test suites must define the pre-processor
symbol "BOOST_TEST_DYN_LINK".  Otherwise, this symbol must *not* be
defined.

Resolution:
Introduce a new Autoconf macro, OPM_DYNLINK_BOOST_TEST, that defines a
secondary symbol--HAVE_DYNAMIC_BOOST_TEST--if the local computer system
uses dynamic linking.  Test suites (e.g., tests/param_test.cpp) may then
inspect this symbol to determine whether or not to #define
BOOST_TEST_DYN_LINK.

Call the macro from "configure.ac".

Suggested by: Joakim Hove
2012-06-27 16:26:52 +02:00
Bård Skaflestad
496be60220 Don't use AC_REQUIRE within a conditional.
Older versions of Autoconf are not able to place the tests at appropriate
locations.
2012-06-05 19:56:17 +02:00
Bård Skaflestad
c724bb6b3a Add preliminary build glue to include AGMG in the OPM-Core library.
The approach will likely be changed due to the presence of
"subdir-objects" in the AM_INIT_AUTOMAKE call.
2012-06-05 19:44:18 +02:00
Bård Skaflestad
40ef0e9573 Revamp Fortran support in preparation of enabling Notay's AGMG solver.
Specifically:
  - Enable C++, Fortran 77 and Fortran (95+) through Libtool's LT_LANG
    if available and through the traditional AC_PROG_* macros if not.

    This configuration is compatible with the versions of Libtool
    easily available for testing.  For whatever reason--possibly a
    programming error in Libtool proper--invoking the AC_PROG_F*
    macros either directly or through AC_REQUIRE following an LT_INIT
    invocation leads to various ``expanded before required'' warnings.

    Searching the Autotools mailing lists does suggest that the
    interaction of C++, Fortran and Libtool is traditionally somewhat
    unstable but has improved in very recent editions of Autoconf and
    Libtool.

  - Re-factor the LAPACK support out to a custom macro, OPM_LAPACK,
    and invoke it from configure.ac.
2012-06-05 18:40:36 +02:00
Bård Skaflestad
e84d334f68 AX_DUNE_ISTL: Enable result caching. 2012-05-23 19:17:08 +02:00
Bård Skaflestad
8b72f2fc93 Re-factor program text out to helper macro. 2012-05-23 19:11:02 +02:00
Bård Skaflestad
6119d97f40 AX_DUNE_COMMON: Enable result caching. 2012-05-23 19:00:45 +02:00
Bård Skaflestad
876f70fc0b Re-factor program text out to helper macro. 2012-05-23 18:45:08 +02:00
Atgeirr Flø Rasmussen
df5043b264 Use AC_REQUIRE for call to AX_DUNE_COMMON. 2012-04-13 15:45:48 +02:00
Atgeirr Flø Rasmussen
bc371d4df1 Initial version of automatic checking for dune-istl in build system. 2012-04-13 15:35:19 +02:00
Atgeirr Flø Rasmussen
81a72be23b Now detects boost and compiles some tests. 2011-12-19 15:26:26 +01:00
Bård Skaflestad
b7b844bd07 Import BLAS/LAPACK Autoconf support from mainline GNU repo
http://www.gnu.org/software/autoconf-archive/
2010-09-28 12:14:13 +00:00