diff options
author | foobar <sniper@php.net> | 2001-05-11 10:04:06 +0000 |
---|---|---|
committer | foobar <sniper@php.net> | 2001-05-11 10:04:06 +0000 |
commit | cf75b18a8dc8a6df594efc0ee156a42a7333a766 (patch) | |
tree | 0c6565912be7776342a66aa75933ece8be08cc3a /ext/imap/config.m4 | |
parent | 7f3291ae8ca6252578035bbb21b7dabb16bac989 (diff) | |
download | php-git-cf75b18a8dc8a6df594efc0ee156a42a7333a766.tar.gz |
Fixed problems which were caused by the previous patches.
#And the usage of PHP_ADD_LIBRARY_DEFER is clear to me now..:)
Diffstat (limited to 'ext/imap/config.m4')
-rw-r--r-- | ext/imap/config.m4 | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/ext/imap/config.m4 b/ext/imap/config.m4 index d006e3a3c4..5777e0793b 100644 --- a/ext/imap/config.m4 +++ b/ext/imap/config.m4 @@ -52,6 +52,11 @@ AC_DEFUN(PHP_IMAP_SSL_CHK, [ PHP_ADD_LIBRARY(ssl,, IMAP_SHARED_LIBADD) PHP_ADD_LIBRARY(crypto,, IMAP_SHARED_LIBADD) + old_LIBS=$LIBS + LIBS="$LIBS -lc-client" + if test $PHP_KERBEROS != "no"; then + LIBS="$LIBS -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err" + fi AC_TRY_RUN([ void mm_log(void){} void mm_dlog(void){} @@ -78,6 +83,7 @@ AC_DEFUN(PHP_IMAP_SSL_CHK, [ ], [ AC_MSG_ERROR(This c-client library does not support SSL. Recompile or remove --with-imap-ssl from configure line.) ]) + LIBS=$old_LIBS fi ]) @@ -128,7 +134,7 @@ if test "$PHP_IMAP" != "no"; then PHP_ADD_INCLUDE($IMAP_INC_DIR) PHP_ADD_LIBPATH($IMAP_LIBDIR, IMAP_SHARED_LIBADD) - PHP_ADD_LIBRARY($IMAP_LIB,, IMAP_SHARED_LIBADD) + PHP_ADD_LIBRARY_DEFER($IMAP_LIB) PHP_IMAP_KRB_CHK PHP_IMAP_SSL_CHK fi |