[Dune] dunecontrol

Andreas Dedner dedner at mathematik.uni-freiburg.de
Tue May 6 11:40:18 CEST 2008


Hi,
we have to suggestions for dunecontrol and the checks - we
are not experts so we are not just commiting them...
1) in projects based on the duneproject script, configure.ac
contains DUNE_CHECK_ALL and not DUNE_CHECK_ALL_M - which makes
sense, but we had some problems with, e.g., finding the tr1/tuple.
Probably a AC_LANG_PUSH([C++]) is missing in DUNE_CHECK_ALL?
Everything works fine with the following patch to dune_all.m4:

 AC_DEFUN([DUNE_CHECK_ALL],[
+  AC_LANG_PUSH([C++])
   # doxygen and latex take a lot of time...
   AC_REQUIRE([DUNE_DOCUMENTATION])
   AC_REQUIRE([DUNE_WEB])
@@ -83,6 +84,7 @@
   AC_SUBST(ALL_PKG_CPPFLAGS, "$CPPFLAGS $DUNE_PKG_CPPFLAGS")

   AC_SUBST(am_dir, $DUNE_COMMON_ROOT/am)
+  AC_LANG_POP([C++])

2) In the find_modules_in_path() function:
   Adding a maxpdepth argument to the find, e.g.,
         $(find "$dir" -maxdepth 2 -name $CONTROL | $GREP -v  ...
   leads to a reduction in execution time of the dunecontrol and also
   of duneporject script - especially on slow disc.
   And also it is then possible to have a directory (e.g. old) where
   one can have copies of dune modules. Probably  checking for
   dune.module in subsubdirectories has some other reason which I do not
   know about?

Best
Andreas




More information about the Dune mailing list