cwrap.m4 revision 40b2be4f4312470044cdef460b02b66003f5c85f
e59faf65ce864fe95dc00f5d52b8323cdbd0608aTimo Sirainendnl A macro to check presence of a cwrap wrapper on the system
fc71e94957d0c2959a609450a2f303640d681858Sascha Wildednl AM_CHECK_WRAPPER(name, conditional)
aba994a4e79a020b4748e0ceffc194e5a18e1d1aTimo Sirainendnl If the cwrap library is found, sets the HAVE_$name conditional
fc71e94957d0c2959a609450a2f303640d681858Sascha WildeAC_DEFUN([AM_CHECK_WRAPPER],
9bb91f1dbf7cf8cfbd2df7784101df98d59fb46dTimo Sirainen FOUND_WRAPPER=0
fc71e94957d0c2959a609450a2f303640d681858Sascha Wilde AC_MSG_CHECKING([for $1])
fc71e94957d0c2959a609450a2f303640d681858Sascha Wilde PKG_CHECK_EXISTS([$1],
fc71e94957d0c2959a609450a2f303640d681858Sascha Wilde AC_MSG_RESULT([yes])
fc71e94957d0c2959a609450a2f303640d681858Sascha Wilde FOUND_WRAPPER=1
fc71e94957d0c2959a609450a2f303640d681858Sascha Wilde AC_MSG_RESULT([no])
aba994a4e79a020b4748e0ceffc194e5a18e1d1aTimo Sirainen AC_MSG_WARN([cwrap library $1 not found, some tests will not run])
aba994a4e79a020b4748e0ceffc194e5a18e1d1aTimo Sirainen AM_CONDITIONAL($2, [ test x$FOUND_WRAPPER = x1])
fc71e94957d0c2959a609450a2f303640d681858Sascha WildeAC_DEFUN([AM_CHECK_UID_WRAPPER],
fc71e94957d0c2959a609450a2f303640d681858Sascha Wilde AM_CHECK_WRAPPER(uid_wrapper, HAVE_UID_WRAPPER)
64bfe7b4a42512971db154937905dfa2bdb9cf2cTimo SirainenAC_DEFUN([AM_CHECK_NSS_WRAPPER],
c5a6a6565be93224fc26522eda855b0990f256e8Timo Sirainen AM_CHECK_WRAPPER(nss_wrapper, HAVE_NSS_WRAPPER)