summaryrefslogtreecommitdiff
path: root/ext/imap/config.m4
diff options
context:
space:
mode:
authorfoobar <sniper@php.net>2002-07-12 22:11:54 +0000
committerfoobar <sniper@php.net>2002-07-12 22:11:54 +0000
commit7b0b6d0b8cbfe12e300ba20f84d80984888d6ee4 (patch)
treefd384827862db233bcaa7d0a586bab0a2889f28d /ext/imap/config.m4
parent36fbe5c93380a51b924ec3011a2441d8b9f890b9 (diff)
downloadphp-git-7b0b6d0b8cbfe12e300ba20f84d80984888d6ee4.tar.gz
Bail out the given path does not have the libraries in it.
Diffstat (limited to 'ext/imap/config.m4')
-rw-r--r--ext/imap/config.m46
1 files changed, 6 insertions, 0 deletions
diff --git a/ext/imap/config.m4 b/ext/imap/config.m4
index a2a0647895..6768dedf18 100644
--- a/ext/imap/config.m4
+++ b/ext/imap/config.m4
@@ -68,6 +68,12 @@ AC_DEFUN(PHP_IMAP_KRB_CHK, [
fi
if test "$PHP_KERBEROS" != "no"; then
+ if test ! -f $PHP_KERBEROS/lib/libkrb5.a && test ! -f $PHP_KERBEROS/lib/libkrb5.$SHLIB_SUFFIX_NAME; then
+ AC_MSG_ERROR([Kerberos libraries not found in $PHP_KERBEROS/lib.
+
+ Check the path given to --with-kerberos (if no path is given, defaults to /usr/kerberos )
+ ])
+ fi
AC_DEFINE(HAVE_IMAP_KRB,1,[ ])
PHP_ADD_LIBPATH($PHP_KERBEROS/lib, IMAP_SHARED_LIBADD)
PHP_ADD_LIBRARY(gssapi_krb5, 1, IMAP_SHARED_LIBADD)