Lines Matching refs:iconv
1 PHP_ARG_WITH([iconv],
2 [for iconv support],
3 [AS_HELP_STRING([[--without-iconv[=DIR]]],
4 [Exclude iconv support])],
9 [AC_MSG_FAILURE([The iconv not found.])])
16 AC_CACHE_CHECK([for iconv implementation], [php_cv_iconv_implementation], [
23 [AC_LINK_IFELSE([AC_LANG_PROGRAM([#include <iconv.h>],
28 dnl BSD iconv by Konstantin Chuguev.
30 [AC_LINK_IFELSE([AC_LANG_PROGRAM([#include <iconv.h>],
36 [AC_LINK_IFELSE([AC_LANG_PROGRAM([#include <iconv.h>],
42 AH_TEMPLATE([PHP_ICONV_IMPL], [The iconv implementation.])
47 [Define to 1 if iconv implementation is glibc.])
54 [BSD], [AC_DEFINE([PHP_ICONV_IMPL], ["BSD iconv"])],
57 [Define to 1 if iconv implementation is IBM.])
58 AC_DEFINE([PHP_ICONV_IMPL], ["IBM iconv"])
61 AC_CACHE_CHECK([if iconv supports errno], [php_cv_iconv_errno],
63 #include <iconv.h>
84 [AC_MSG_FAILURE([The iconv check failed, 'errno' is missing.])])
86 AC_CACHE_CHECK([if iconv supports //IGNORE], [php_cv_iconv_ignore],
88 #include <iconv.h>
100 size_t result = iconv(cd, (char **) &in_p, &in_left, (char **) &out_p, &out_left);
112 [Define to 1 if iconv has broken IGNORE.])])
118 [Define to 1 if the PHP extension 'iconv' is available.])
120 PHP_NEW_EXTENSION([iconv],
121 [iconv.c],
125 PHP_INSTALL_HEADERS([ext/iconv], [php_iconv.h])