summaryrefslogtreecommitdiffstats
path: root/src/external/cwrap.m4
diff options
context:
space:
mode:
Diffstat (limited to 'src/external/cwrap.m4')
-rw-r--r--src/external/cwrap.m47
1 files changed, 3 insertions, 4 deletions
diff --git a/src/external/cwrap.m4 b/src/external/cwrap.m4
index 0bd0bc9c9..b03d1ef00 100644
--- a/src/external/cwrap.m4
+++ b/src/external/cwrap.m4
@@ -4,20 +4,19 @@ dnl AM_CHECK_WRAPPER(name, conditional)
dnl If the cwrap library is found, sets the HAVE_$name conditional
AC_DEFUN([AM_CHECK_WRAPPER],
[
- FOUND_WRAPPER=0
-
AC_MSG_CHECKING([for $1])
PKG_CHECK_EXISTS([$1],
[
AC_MSG_RESULT([yes])
- FOUND_WRAPPER=1
+ AC_SUBST([$2], [yes])
],
[
AC_MSG_RESULT([no])
+ AC_SUBST([$2], [no])
AC_MSG_WARN([cwrap library $1 not found, some tests will not run])
])
- AM_CONDITIONAL($2, [ test x$FOUND_WRAPPER = x1])
+ AM_CONDITIONAL($2, [ test x$2 = xyes])
])
AC_DEFUN([AM_CHECK_UID_WRAPPER],