Lines Matching refs:iconv

5 PHP_ARG_WITH(iconv, for iconv support,
6 [ --without-iconv[=DIR] Exclude iconv support], yes)
19 if test -f "$i/include/iconv.h" || test -f "$i/include/giconv.h"; then
37 PHP_ICONV_H_PATH="$PHP_ICONV_PREFIX/include/iconv.h"
40 AC_MSG_CHECKING([if iconv is glibc's])
72 AC_MSG_CHECKING([if iconv is Konstantin Chuguev's])
73 AC_TRY_LINK([#include <iconv.h>],[iconv_ccs_init(NULL, NULL);],
83 AC_MSG_CHECKING([if using IBM iconv])
86 AC_TRY_LINK([#include <iconv.h>],[cstoccsid("");],
96 echo > ext/iconv/php_have_bsd_iconv.h
97 echo > ext/iconv/php_have_glibc_iconv.h
98 echo > ext/iconv/php_have_libiconv.h
99 echo > ext/iconv/php_have_ibm_iconv.h
103 PHP_DEFINE([PHP_ICONV_IMPL],[\"libiconv\"],[ext/iconv])
104 AC_DEFINE([PHP_ICONV_IMPL],["libiconv"],[Which iconv implementation to use])
105 PHP_DEFINE([HAVE_LIBICONV],1,[ext/iconv])
106 PHP_ADD_LIBRARY_WITH_PATH(iconv, "$PHP_ICONV_PREFIX/$PHP_LIBDIR", ICONV_SHARED_LIBADD)
110 PHP_DEFINE([HAVE_BSD_ICONV],1,[ext/iconv])
111 AC_DEFINE([HAVE_BSD_ICONV],1,[Konstantin Chuguev's iconv implementation])
112 PHP_DEFINE([PHP_ICONV_IMPL],[\"BSD iconv\"],[ext/iconv])
113 AC_DEFINE([PHP_ICONV_IMPL],["BSD iconv"],[Which iconv implementation to use])
117 PHP_DEFINE([HAVE_GLIBC_ICONV],1,[ext/iconv])
118 AC_DEFINE([HAVE_GLIBC_ICONV],1,[glibc's iconv implementation])
119 PHP_DEFINE([PHP_ICONV_IMPL],[\"glibc\"],[ext/iconv])
120 AC_DEFINE([PHP_ICONV_IMPL],["glibc"],[Which iconv implementation to use])
123 PHP_DEFINE([HAVE_IBM_ICONV],1,[ext/iconv])
124 AC_DEFINE([HAVE_IBM_ICONV],1,[IBM iconv implementation])
125 PHP_DEFINE([PHP_ICONV_IMPL],[\"IBM iconv\"],[ext/iconv])
126 AC_DEFINE([PHP_ICONV_IMPL],["IBM iconv"],[Which iconv implementation to use])
130 AC_MSG_CHECKING([if iconv supports errno])
150 PHP_DEFINE([ICONV_SUPPORTS_ERRNO],1,[ext/iconv])
151 AC_DEFINE([ICONV_SUPPORTS_ERRNO],1,[Whether iconv supports error no or not])
154 PHP_DEFINE([ICONV_SUPPORTS_ERRNO],0,[ext/iconv])
155 AC_DEFINE([ICONV_SUPPORTS_ERRNO],0,[Whether iconv supports error no or not])
158 PHP_DEFINE([ICONV_SUPPORTS_ERRNO],0,[ext/iconv])
159 AC_DEFINE([ICONV_SUPPORTS_ERRNO],0,[Whether iconv supports error no or not])
162 AC_MSG_CHECKING([if iconv supports //IGNORE])
173 size_t result = iconv(cd, (char **) &in_p, &in_left, (char **) &out_p, &out_left);
181 PHP_DEFINE([ICONV_BROKEN_IGNORE],0,[ext/iconv])
182 AC_DEFINE([ICONV_BROKEN_IGNORE],0,[Whether iconv supports IGNORE])
185 PHP_DEFINE([ICONV_BROKEN_IGNORE],1,[ext/iconv])
186 AC_DEFINE([ICONV_BROKEN_IGNORE],1,[Whether iconv supports IGNORE])
189 PHP_DEFINE([ICONV_BROKEN_IGNORE],0,[ext/iconv])
190 AC_DEFINE([ICONV_BROKEN_IGNORE],0,[Whether iconv supports IGNORE])
199 PHP_DEFINE([PHP_ICONV_H_PATH], [<$PHP_ICONV_H_PATH>],[ext/iconv])
200 AC_DEFINE_UNQUOTED([PHP_ICONV_H_PATH], [<$PHP_ICONV_H_PATH>], [Path to iconv.h])
205 PHP_NEW_EXTENSION(iconv, iconv.c, $ext_shared,, [-I\"$PHP_ICONV_PREFIX/include\"])
207 PHP_INSTALL_HEADERS([ext/iconv/])
209 AC_MSG_ERROR(Please reinstall the iconv library.)