cvs: php4 /ext/imap config.m4
| From: | Sascha Schumann | Date: | Tue, 01 Aug 2000 15:24:56 +0000 |
| Subject: | cvs: php4 /ext/imap config.m4 | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-1009@lists.php.net to get a copy of this message | ||
sas Tue Aug 1 08:24:56 2000 EDT
Modified files:
/php4/ext/imap config.m4
Log:
Enable building PHP against kerberized IMAP libraries
Index: php4/ext/imap/config.m4
diff -u php4/ext/imap/config.m4:1.20 php4/ext/imap/config.m4:1.21
--- php4/ext/imap/config.m4:1.20 Thu Jun 1 13:19:26 2000
+++ php4/ext/imap/config.m4 Tue Aug 1 08:24:56 2000
@@ -1,4 +1,4 @@
-dnl $Id: config.m4,v 1.20 2000/06/01 20:19:26 chagenbu Exp $
+dnl $Id: config.m4,v 1.21 2000/08/01 15:24:56 sas Exp $
AC_DEFUN(IMAP_INC_CHK,[if test -r $i$1/rfc822.h; then IMAP_DIR=$i; IMAP_INC_DIR=$i$1])
@@ -12,6 +12,17 @@
done
])
+PHP_ARG_WITH(kerberos,for Kerberos support in IMAP,
+[ --with-kerberos[=DIR] Include Kerberos support in IMAP.])
+
+if test "$PHP_KERBEROS" = "yes"; then
+ test -d /usr/kerberos && PHP_KERBEROS=/usr/kerberos
+fi
+
+if test "$PHP_KERBEROS" != "no"; then
+ PHP_KERBEROS_LIBDIR=$PHP_KERBEROS/lib
+fi
+
PHP_ARG_WITH(imap,for IMAP support,
[ --with-imap[=DIR] Include IMAP support. DIR is the IMAP include
and c-client.a directory.])
@@ -56,6 +67,14 @@
else
AC_ADD_LIBPATH($IMAP_LIBDIR)
AC_ADD_LIBRARY_DEFER($IMAP_LIB)
+ fi
+
+ if test "$PHP_KERBEROS" != "no"; then
+ AC_ADD_LIBPATH($PHP_KERBEROS_LIBDIR, IMAP_SHARED_LIBADD)
+ AC_ADD_LIBRARY(com_err,, IMAP_SHARED_LIBADD)
+ AC_ADD_LIBRARY(k5crypto,, IMAP_SHARED_LIBADD)
+ AC_ADD_LIBRARY(krb5,, IMAP_SHARED_LIBADD)
+ AC_ADD_LIBRARY(gssapi_krb5,, IMAP_SHARED_LIBADD)
fi
PHP_EXTENSION(imap, $ext_shared)