diff options
author | Sjoerd Simons <sjoerd.simons@collabora.co.uk> | 2009-04-10 15:09:53 +0100 |
---|---|---|
committer | Sjoerd Simons <sjoerd.simons@collabora.co.uk> | 2009-04-13 15:01:07 +0100 |
commit | 7e83807aa0a84dd83889c660619a64327fb5925d (patch) | |
tree | f13f228cd26473ef21fca8ca27590db81dba9edc /configure.ac | |
parent | 36b170b45e6f305fdf88d3c3ef9ed07038c64356 (diff) |
build the sasl tests
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index 0bdc639..22d7dfc 100644 --- a/configure.ac +++ b/configure.ac @@ -112,6 +112,20 @@ AC_SUBST(GLIB_GENMARSHAL) dnl Check for libxml2 PKG_CHECK_MODULES(LIBXML2, [libxml-2.0]) +dnl check for libsasl2 (for sasl test) +AC_CHECK_LIB(sasl2, sasl_server_new, + [LIBSASL2_LIBS="-lsasl2" + LIBSASL2_CFLAGS="" + HAVE_LIBSASL2=yes + AC_DEFINE(HAVE_LIBSASL2, 1, + [Define if libsasl2 support is available]) + ], + [ AC_MSG_WARN(libsasl2 not found: not building sasl tests) ] ) + +AC_SUBST(LIBSASL2_LIBS) +AC_SUBST(LIBSASL2_CFLAGS) +AM_CONDITIONAL(HAVE_LIBSASL2, test "x$HAVE_LIBSASL2" = "xyes") + AC_SUBST(LIBXML2_CFLAGS) AC_SUBST(LIBXML2_LIBS) |