Skip to content
Snippets Groups Projects
Commit 871d68fc authored by Christian Engwer's avatar Christian Engwer
Browse files

added configure check to determin the dependiecies of this module

[[Imported from SVN: r4736]]
parent e8dca93d
No related branches found
No related tags found
No related merge requests found
......@@ -17,6 +17,18 @@ AC_DEFUN([DUNE_DISABLE_LIBCHECK],[
AC_ARG_ENABLE(dunelibcheck,[],,enable_dunelibcheck=yes)
])
AC_DEFUN([DUNE_PKG_CONFIG_REQUIRES],[
AC_MSG_CHECKING([$PACKAGE_NAME requirements])
REQUIRES="`grep ^Depends: $srcdir/dune.module | cut -d ':' -f 2`" \
|| failure=yes
if test x$failure = xyes; then
AC_MSG_RESULT([Failure])
AC_MSG_ERROR([Could not determin requirements for $PACKAGE_NAME])
fi
AC_MSG_RESULT([$REQUIRES])
AC_SUBST(REQUIRES, [$REQUIRES])
])
AC_DEFUN([DUNE_CHECK_MODULES],[
AC_REQUIRE([AC_PROG_CXX])
AC_REQUIRE([AC_PROG_CXXCPP])
......
......@@ -197,6 +197,7 @@ AC_DEFUN([DUNE_CHECK_ALL_M],[
DUNE_MODULE_DEPENDENCIES($@)
AC_REQUIRE([DUNE_CHECK_ALL])
AC_REQUIRE([DUNE_DEV_MODE])
AC_REQUIRE([DUNE_PKG_CONFIG_REQUIRES])
AC_LANG_POP([C++])
])
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment