From: foobar Date: Sat, 17 Jan 2004 00:01:06 +0000 (+0000) Subject: MFH: Fixed bug #26923 (ext/imap: pam and crypt libraries missing when build as shared) X-Git-Tag: php-4.3.5RC2~71 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=12d27576f329d1e0b0e243780e211dfbd310d393;p=php MFH: Fixed bug #26923 (ext/imap: pam and crypt libraries missing when build as shared) --- diff --git a/NEWS b/NEWS index 26970fcab5..5e3d00fffa 100644 --- a/NEWS +++ b/NEWS @@ -3,6 +3,8 @@ PHP 4 NEWS ?? Jan 2004, Version 4.3.5 - Fixed bug #26937 (Warning in xml.c). (Jani) - Fixed Bug #26927 (preg_quote() does not escape \0). (Ilia) +- Fixed bug #26923 (ext/imap: pam and crypt libraries missing when build as + shared extension). (Jani) - Fixed bug #26909 (crash in imap_mime_header_decode() when no encoding is used). (Ilia) - Fixed bug #26892 (ORA-21301 in ocinewcollection() call). (Antony) diff --git a/ext/imap/config.m4 b/ext/imap/config.m4 index ceefb0d04a..b653d83a41 100644 --- a/ext/imap/config.m4 +++ b/ext/imap/config.m4 @@ -158,8 +158,17 @@ if test "$PHP_IMAP" != "no"; then ],[]) CPPFLAGS=$old_CPPFLAGS - AC_CHECK_LIB(pam, pam_start) - AC_CHECK_LIB(crypt, crypt) + PHP_CHECK_LIBRARY(pam, pam_start, + [ + PHP_ADD_LIBRARY(pam,, IMAP_SHARED_LIBADD) + AC_DEFINE(HAVE_LIBPAM,1,[ ]) + ]) + + PHP_CHECK_LIBRARY(crypt, crypt, + [ + PHP_ADD_LIBRARY(crypt,, IMAP_SHARED_LIBADD) + AC_DEFINE(HAVE_LIBCRYPT,1,[ ]) + ]) PHP_EXPAND_PATH($IMAP_DIR, IMAP_DIR)