From: foobar Date: Fri, 12 Jul 2002 22:11:54 +0000 (+0000) Subject: Bail out the given path does not have the libraries in it. X-Git-Tag: dev~337 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7b0b6d0b8cbfe12e300ba20f84d80984888d6ee4;p=php Bail out the given path does not have the libraries in it. --- 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)