Skip to content
Snippets Groups Projects
Commit 0680474a authored by Martin Nolte's avatar Martin Nolte
Browse files

make autoconf work for dune-istl again (at least for me)

- autoconf documentation states that ifelse is remapped to m4_if
- the library check is AC_CHECK_LIB

I hope this is what was intended

@Christian: Could you please verify this?

[[Imported from SVN: r5823]]
parent c9f51295
No related branches found
No related tags found
No related merge requests found
......@@ -8,13 +8,13 @@ AC_DEFUN([DUNE_CHECK_LIB_EXT],
[
dune_cle_save_LDFLAGS="$LDFLAGS"
LDFLAGS="$LDFLAGS -L$1"
m4_ifelse(m4_eval([$# <= 3]), [1],
[AC_CHECK_LIBS([$2], [$3],
m4_if(m4_eval([$# <= 3]), [1],
[AC_CHECK_LIB([$2], [$3],
[
LIBS="-L$1 -l$2 $LIBS"
AC_DEFINE([HAVE_LIB]m4_translit([[$2]], [-a-z], [_A-Z]), [1],
[Define to 1 if you have the `$2' library (-l$2).])
])],
[AC_CHECK_LIBS(m4_shift($@))])
[AC_CHECK_LIB(m4_shift($@))])
LDFLAGS="$dune_cle_save_LDFLAGS"
])
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