cvs: php-src /ext/imap config.m4
| From: | Antony Dovgal | Date: | Thu, 18 Jan 2007 14:05:07 +0000 |
| Subject: | cvs: php-src /ext/imap config.m4 | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-42770@lists.php.net to get a copy of this message | ||
tony2001 Thu Jan 18 14:05:07 2007 UTC
Modified files:
/php-src/ext/imap config.m4
Log:
improve check configure for new version of utf8_mime2text()
http://cvs.php.net/viewvc.cgi/php-src/ext/imap/config.m4?r1=1.71&r2=1.72&diff_format=u
Index: php-src/ext/imap/config.m4
diff -u php-src/ext/imap/config.m4:1.71 php-src/ext/imap/config.m4:1.72
--- php-src/ext/imap/config.m4:1.71 Mon Jan 8 18:23:23 2007
+++ php-src/ext/imap/config.m4 Thu Jan 18 14:05:07 2007
@@ -1,5 +1,5 @@
dnl
-dnl $Id: config.m4,v 1.71 2007/01/08 18:23:23 andrei Exp $
+dnl $Id: config.m4,v 1.72 2007/01/18 14:05:07 tony2001 Exp $
dnl
AC_DEFUN([IMAP_INC_CHK],[if test -r "$i$1/c-client.h"; then
@@ -117,11 +117,26 @@
AC_EGREP_HEADER(mail_fetch_overview_sequence, $IMAP_INC_DIR/mail.h, [
AC_DEFINE(HAVE_IMAP2004,1,[ ])
])
-
+
dnl Check for new version of the utf8_mime2text() function
- AC_EGREP_HEADER(mail_append_set, $IMAP_INC_DIR/mail.h, [
- AC_DEFINE(HAVE_NEW_MIME2TEXT,1,[ ])
- ])
+ old_CFLAGS=$CFLAGS
+ CFLAGS="-I$IMAP_INC_DIR"
+ AC_CACHE_CHECK(for utf8_mime2text signature, ac_cv_utf8_mime2text,
+ AC_TRY_COMPILE([
+#include <c-client.h>
+ ],[
+ SIZEDTEXT *src, *dst;
+ utf8_mime2text(src, dst);
+ ],[
+ ac_cv_utf8_mime2text=old
+ ],[
+ ac_cv_utf8_mime2text=new
+ ])
+ )
+ if test "$ac_cv_utf8_mime2text" = "new"; then
+ AC_DEFINE(HAVE_NEW_MIME2TEXT, 1, [Whether utf8_mime2text() has new signature])
+ fi
+ CFLAGS=$old_CPPFLAGS
dnl Check for c-client version 2001
old_CPPFLAGS=$CPPFLAGS