* m4/lib-link.m4 (m4_default_quoted): New, for older autoconfs. (AC_LIB_HAVE_LINKFLAGS): Double-quote missing message. Use m4_default_quoted. --- m4/lib-link.m4 | 5 ++++- 1 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/m4/lib-link.m4 b/m4/lib-link.m4 index 90e1ac9..c2118e9 100644 --- a/m4/lib-link.m4 +++ b/m4/lib-link.m4 @@ -8,6 +8,9 @@ dnl From Bruno Haible. AC_PREREQ([2.54]) +m4_define([m4_default_quoted], +[m4_if([$1], [], [[$2]], [[$1]])]) + dnl AC_LIB_LINKFLAGS(name [, dependencies]) searches for libname and dnl the libraries corresponding to explicit and implicit dependencies. dnl Sets and AC_SUBSTs the LIB${NAME} and LTLIB${NAME} variables and @@ -77,7 +80,7 @@ AC_DEFUN([AC_LIB_HAVE_LINKFLAGS], LIBS="$LIBS $LIB[]NAME" AC_TRY_LINK([$3], [$4], [ac_cv_lib[]Name=yes], - [ac_cv_lib[]Name='m4_if([$5], [], [no], [[$5]])']) + [ac_cv_lib[]Name="m4_default_quoted([$5], [no])"]) LIBS="$ac_save_LIBS" ]) if test "$ac_cv_lib[]Name" = yes; then -- 1.6.6.1