Fix enablement of SASL

This commit is contained in:
Daniel P. Berrange 2008-01-23 19:37:10 +00:00
parent 9cf2573c8a
commit 38b2478b41
2 changed files with 7 additions and 3 deletions

View File

@ -1,3 +1,7 @@
Wed Jan 23 14:36:00 EST 2008 Daniel P. Berrange <berrange@redhat.com>
* configure.in: Fix enablement of SASL
Wed Jan 23 14:47:00 BST 2008 Richard W.M. Jones <rjones@redhat.com> Wed Jan 23 14:47:00 BST 2008 Richard W.M. Jones <rjones@redhat.com>
Portability improvements for Mac OS X. Portability improvements for Mac OS X.

View File

@ -398,12 +398,12 @@ if test "x$with_sasl" != "xno"; then
[You must install the Cyrus SASL development package in order to compile libvirt]) [You must install the Cyrus SASL development package in order to compile libvirt])
fi]) fi])
if test "x$with_sasl" != "xno" ; then if test "x$with_sasl" != "xno" ; then
AC_CHECK_LIB(sasl2, sasl_client_init,[],[ AC_CHECK_LIB(sasl2, sasl_client_init,[with_sasl=yes],[
if test "x$with_sasl" = "xcheck" ; then if test "x$with_sasl" = "xcheck" ; then
with_sasl=no with_sasl=no
else else
AC_MSG_ERROR( AC_MSG_ERROR(
[You must install the Cyrus SASL library in order to compile and run libvirt]) [You must install the Cyrus SASL library in order to compile and run libvirt])
fi]) fi])
fi fi
CFLAGS="$old_cflags" CFLAGS="$old_cflags"