[ekiga/gnome-2-26] Applied patch from Michael Rickmann about libsasl2 detection



commit be2a9023c5e2a6a704978fb8f4b42583da49b8fc
Author: Julien Puydt <jpuydt src gnome org>
Date:   Mon Mar 30 17:43:13 2009 +0000

    Applied patch from Michael Rickmann about libsasl2 detection
    
    svn path=/trunk/; revision=7834
---
 configure.ac |   12 +++++++++++-
 1 files changed, 11 insertions(+), 1 deletions(-)

diff --git a/configure.ac b/configure.ac
index 0034f81..02cbe13 100644
--- a/configure.ac
+++ b/configure.ac
@@ -346,7 +346,17 @@ if test "x$enable_ldap" = "xyes"; then
   fi
 
   dnl Checking for libsasl2
-  AC_CHECK_HEADER(sasl/sasl.h,,AC_MSG_ERROR([*** libsasl2 headers not found]))
+  AC_ARG_WITH(libsasl2-dir, AS_HELP_STRING([--with-libsasl2-dir=PFX],[location of LIBSASL2]), with_libsasl2_dir="$withval", with_libsasl2_dir="/usr")
+
+  dnl Check for the libsasl2 includes presence
+  AC_MSG_CHECKING(for LIBSASL2 includes in ${with_libsasl2_dir}/include/)
+  AC_MSG_RESULT()
+
+  if test -f ${with_libsasl2_dir}/include/sasl/sasl.h; then
+  	LDAP_CFLAGS="-I${with_libsasl2_dir}/include"
+  else
+  	AC_MSG_ERROR(*** libsasl2 headers not found)
+  fi
   LDAP_LIBS="$LDAP_LIBS -lsasl2"
 
   dnl Checking for libresolv



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]