diff options
author | Pavel Grunt <pgrunt@redhat.com> | 2015-12-16 18:18:58 +0100 |
---|---|---|
committer | Pavel Grunt <pgrunt@redhat.com> | 2015-12-18 14:11:08 +0100 |
commit | 583f0d4d8e81f731143abb2522efc26d397250d0 (patch) | |
tree | fcbb15932e0e9fe06a7991a4261ef6c670452dff | |
parent | b7ed56622b2039b2c91fc886f58552b4939a121d (diff) | |
download | spice-gtk-583f0d4d8e81f731143abb2522efc26d397250d0.tar.gz spice-gtk-583f0d4d8e81f731143abb2522efc26d397250d0.tar.xz spice-gtk-583f0d4d8e81f731143abb2522efc26d397250d0.zip |
build-sys: Use sasl check from spice-common
Support only libsasl2 providing libsasl2.pc file
Acked-by: Christophe Fergeau <cfergeau@redhat.com>
-rw-r--r-- | configure.ac | 47 | ||||
m--------- | spice-common | 0 |
2 files changed, 2 insertions, 45 deletions
diff --git a/configure.ac b/configure.ac index 4860fef..bfafb87 100644 --- a/configure.ac +++ b/configure.ac @@ -111,50 +111,7 @@ AC_SUBST(SSL_CFLAGS) AC_SUBST(SSL_LIBS) SPICE_GLIB_REQUIRES="${SPICE_GLIB_REQUIRES} openssl" -dnl Cyrus SASL -AC_ARG_WITH([sasl], - [AS_HELP_STRING([--with-sasl=@<:@yes/no/auto@:>@], [use cyrus SASL for authentication @<:@default=auto@:>@])], - [], - [with_sasl="auto"]) - -SASL_CFLAGS= -SASL_LIBS= -enable_sasl=no -if test "x$with_sasl" != "xno"; then - if test "x$with_sasl" != "xyes" && test "x$with_sasl" != "xauto"; then - SASL_CFLAGS="-I$with_sasl" - SASL_LIBS="-L$with_sasl" - fi - old_cflags="$CFLAGS" - old_libs="$LIBS" - CFLAGS="$CFLAGS $SASL_CFLAGS" - LIBS="$LIBS $SASL_LIBS" - AC_CHECK_HEADER([sasl/sasl.h],[with_sasl=yes]) - if test "x$with_sasl" = "xyes" ; then - AC_CHECK_LIB([sasl2], [sasl_client_init],[with_sasl2=yes],[with_sasl2=no]) - fi - if test "x$with_sasl2" = "xno" && test "x$with_sasl" = "xyes" ; then - AC_CHECK_LIB([sasl], [sasl_client_init],[with_sasl=yes],[with_sasl=no]) - fi - if test "x$with_sasl2" = "xyes"; then - SASL_LIBS="$SASL_LIBS -lsasl2" - elif test "x$with_sasl" = "xyes"; then - SASL_LIBS="$SASL_LIBS -lsasl" - elif test "x$with_sasl" != "xauto"; then - AC_MSG_ERROR([You must install the Cyrus SASL development package in order to compile spice-gtk]) - fi - CFLAGS="$old_cflags" - LIBS="$old_libs" - if test "x$with_sasl2" = "xyes" || test "x$with_sasl" = "xyes" ; then - AC_DEFINE_UNQUOTED([HAVE_SASL], 1, - [whether Cyrus SASL is available for authentication]) - enable_sasl=yes - fi -fi -AM_CONDITIONAL([HAVE_SASL], [test "x$with_sasl2" = "xyes" || test "x$with_sasl" = "xyes"]) -AC_SUBST([SASL_CFLAGS]) -AC_SUBST([SASL_LIBS]) - +SPICE_CHECK_SASL AC_MSG_CHECKING([which gtk+ version to compile against]) AC_ARG_WITH([gtk], @@ -747,7 +704,7 @@ AC_MSG_NOTICE([ Coroutine: ${with_coroutine} PulseAudio: ${enable_pulse} GStreamer Audio: ${have_gstaudio} - SASL support: ${enable_sasl} + SASL support: ${have_sasl} Smartcard support: ${have_smartcard} USB redirection support: ${have_usbredir} ${with_usbredir_hotplug} DBus: ${have_dbus} diff --git a/spice-common b/spice-common -Subproject 47122befcde4e40a8be0267af2bd77811b838c8 +Subproject c3f2d217af40fa1da2cb42c69ca4a89fd8e7ef0 |