Compatibility module for dunecontrol-driven clients

If a client generated with duneproject/built with dunecontrol has a
dependency to opm-material, the macros defined in this file is expected
to exist and will be called to search for the opm-material library.

All that is done here is to use the pkg-config helper module and
import the configuration that was written by the CMake system (which
even may have been called earlier in the same dunecontrol "session")
This commit is contained in:
Roland Kaufmann
2013-05-24 11:41:05 +02:00
parent 5984e04b32
commit 57812653f3

12
m4/opm_material.m4 Normal file
View File

@@ -0,0 +1,12 @@
dnl -*- autoconf -*-
dnl locate opm-material library itself; this macro is called by every module
dnl that depends on opm-material
AC_DEFUN([OPM_MATERIAL_CHECK_MODULE],
[
OPM_CHECK_PKG_MODULE([opm-material],[1.0],[Provides Thermodynamic Relations, Capillary Pressure Curves, etc.])
])
dnl find all prerequisites of opm-core; nothing to do here since this
dnl is done by the CMake module and then stored in the -config file.
AC_DEFUN([OPM_MATERIAL_CHECKS],[])