Lines Matching refs:iconv
1 dnl config.m4 for extension iconv
3 PHP_ARG_WITH(iconv, for iconv support,
4 [ --without-iconv[=DIR] Exclude iconv support], yes)
17 if test -f "$i/include/iconv.h" || test -f "$i/include/giconv.h"; then
35 PHP_ICONV_H_PATH="$PHP_ICONV_PREFIX/include/iconv.h"
38 AC_MSG_CHECKING([if iconv is glibc's])
69 AC_MSG_CHECKING([if iconv is Konstantin Chuguev's])
70 AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <iconv.h>]], [[iconv_ccs_init(NULL, NULL);]])],[
79 AC_MSG_CHECKING([if using IBM iconv])
82 AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <iconv.h>]], [[cstoccsid("");]])],[
91 echo > ext/iconv/php_have_bsd_iconv.h
92 echo > ext/iconv/php_have_glibc_iconv.h
93 echo > ext/iconv/php_have_libiconv.h
94 echo > ext/iconv/php_have_ibm_iconv.h
98 PHP_DEFINE([PHP_ICONV_IMPL],[\"libiconv\"],[ext/iconv])
99 AC_DEFINE([PHP_ICONV_IMPL],["libiconv"],[Which iconv implementation to use])
100 PHP_DEFINE([HAVE_LIBICONV],1,[ext/iconv])
101 PHP_ADD_LIBRARY_WITH_PATH(iconv, "$PHP_ICONV_PREFIX/$PHP_LIBDIR", ICONV_SHARED_LIBADD)
105 PHP_DEFINE([HAVE_BSD_ICONV],1,[ext/iconv])
106 AC_DEFINE([HAVE_BSD_ICONV],1,[Konstantin Chuguev's iconv implementation])
107 PHP_DEFINE([PHP_ICONV_IMPL],[\"BSD iconv\"],[ext/iconv])
108 AC_DEFINE([PHP_ICONV_IMPL],["BSD iconv"],[Which iconv implementation to use])
112 PHP_DEFINE([HAVE_GLIBC_ICONV],1,[ext/iconv])
113 AC_DEFINE([HAVE_GLIBC_ICONV],1,[glibc's iconv implementation])
114 PHP_DEFINE([PHP_ICONV_IMPL],[\"glibc\"],[ext/iconv])
115 AC_DEFINE([PHP_ICONV_IMPL],["glibc"],[Which iconv implementation to use])
118 PHP_DEFINE([HAVE_IBM_ICONV],1,[ext/iconv])
119 AC_DEFINE([HAVE_IBM_ICONV],1,[IBM iconv implementation])
120 PHP_DEFINE([PHP_ICONV_IMPL],[\"IBM iconv\"],[ext/iconv])
121 AC_DEFINE([PHP_ICONV_IMPL],["IBM iconv"],[Which iconv implementation to use])
125 AC_MSG_CHECKING([if iconv supports errno])
145 PHP_DEFINE([ICONV_SUPPORTS_ERRNO],1,[ext/iconv])
146 AC_DEFINE([ICONV_SUPPORTS_ERRNO],1,[Whether iconv supports error no or not])
149 PHP_DEFINE([ICONV_SUPPORTS_ERRNO],0,[ext/iconv])
150 AC_DEFINE([ICONV_SUPPORTS_ERRNO],0,[Whether iconv supports error no or not])
153 PHP_DEFINE([ICONV_SUPPORTS_ERRNO],0,[ext/iconv])
154 AC_DEFINE([ICONV_SUPPORTS_ERRNO],0,[Whether iconv supports error no or not])
157 AC_MSG_CHECKING([if iconv supports //IGNORE])
171 size_t result = iconv(cd, (char **) &in_p, &in_left, (char **) &out_p, &out_left);
179 PHP_DEFINE([ICONV_BROKEN_IGNORE],0,[ext/iconv])
180 AC_DEFINE([ICONV_BROKEN_IGNORE],0,[Whether iconv supports IGNORE])
183 PHP_DEFINE([ICONV_BROKEN_IGNORE],1,[ext/iconv])
184 AC_DEFINE([ICONV_BROKEN_IGNORE],1,[Whether iconv supports IGNORE])
187 PHP_DEFINE([ICONV_BROKEN_IGNORE],0,[ext/iconv])
188 AC_DEFINE([ICONV_BROKEN_IGNORE],0,[Whether iconv supports IGNORE])
197 PHP_DEFINE([PHP_ICONV_H_PATH], [<$PHP_ICONV_H_PATH>],[ext/iconv])
198 AC_DEFINE_UNQUOTED([PHP_ICONV_H_PATH], [<$PHP_ICONV_H_PATH>], [Path to iconv.h])
203 …PHP_NEW_EXTENSION(iconv, iconv.c, $ext_shared,, [-I\"$PHP_ICONV_PREFIX/include\" -DZEND_ENABLE_STA…
205 PHP_INSTALL_HEADERS([ext/iconv/])
207 AC_MSG_ERROR(Please reinstall the iconv library.)