2001-11-30 19:00:13 +00:00
|
|
|
dnl
|
2001-05-01 01:52:55 +00:00
|
|
|
dnl $Id$
|
2001-11-30 19:00:13 +00:00
|
|
|
dnl
|
2001-05-01 01:52:55 +00:00
|
|
|
|
2002-07-17 00:17:43 +00:00
|
|
|
PHP_ARG_ENABLE(mbstring, whether to enable multibyte string support,
|
2002-11-13 04:36:04 +00:00
|
|
|
[ --enable-mbstring Enable multibyte string support])
|
2002-04-19 06:32:26 +00:00
|
|
|
|
2002-04-30 12:00:42 +00:00
|
|
|
if test "$PHP_MBSTRING" != "no"; then
|
2002-04-19 06:32:26 +00:00
|
|
|
AC_DEFINE(HAVE_MBSTRING,1,[whether to have multibyte string support])
|
2002-04-30 12:00:42 +00:00
|
|
|
|
|
|
|
if test "$PHP_MBSTRING" != "no" -o "$PHP_MBSTRING" = "ja"; then
|
|
|
|
AC_DEFINE(HAVE_MBSTR_JA,1,[whether to have japanese support])
|
|
|
|
fi
|
|
|
|
if test "$PHP_MBSTRING" = "cn"; then
|
|
|
|
AC_DEFINE(HAVE_MBSTR_CN,1,[whether to have simplified chinese support])
|
|
|
|
fi
|
|
|
|
if test "$PHP_MBSTRING" = "tw"; then
|
|
|
|
AC_DEFINE(HAVE_MBSTR_TW,1,[whether to have traditional chinese support])
|
|
|
|
fi
|
|
|
|
if test "$PHP_MBSTRING" = "kr"; then
|
|
|
|
AC_DEFINE(HAVE_MBSTR_KR,1,[whether to have korean support])
|
|
|
|
fi
|
2002-05-21 07:00:34 +00:00
|
|
|
if test "$PHP_MBSTRING" = "ru"; then
|
|
|
|
AC_DEFINE(HAVE_MBSTR_RU,1,[whether to have russian support])
|
|
|
|
fi
|
2002-04-30 12:00:42 +00:00
|
|
|
if test "$PHP_MBSTRING" = "all"; then
|
|
|
|
AC_DEFINE(HAVE_MBSTR_JA,1,[whether to have japanese support])
|
|
|
|
AC_DEFINE(HAVE_MBSTR_CN,1,[whether to have simplified chinese support])
|
|
|
|
AC_DEFINE(HAVE_MBSTR_TW,1,[whether to have traditional chinese support])
|
|
|
|
AC_DEFINE(HAVE_MBSTR_KR,1,[whether to have korean support])
|
2002-05-21 07:00:34 +00:00
|
|
|
AC_DEFINE(HAVE_MBSTR_RU,1,[whether to have russian support])
|
2002-04-30 12:00:42 +00:00
|
|
|
fi
|
2002-09-26 00:53:47 +00:00
|
|
|
|
2002-11-23 20:08:44 +00:00
|
|
|
PHP_NEW_EXTENSION(mbstring, mbfilter_ja.c mbfilter_cn.c mbfilter_tw.c mbfilter_kr.c mbfilter_ru.c mbfilter.c mbstring.c mbregex.c php_mbregex.c html_entities.c php_unicode.c mb_gpc.c, $ext_shared)
|
2001-05-01 01:52:55 +00:00
|
|
|
fi
|
|
|
|
|
2002-07-17 06:01:37 +00:00
|
|
|
PHP_ARG_ENABLE(mbregex, whether to enable multibyte regex support,
|
2002-11-25 17:44:14 +00:00
|
|
|
[ --disable-mbregex Disable multibyte regex support], yes, no)
|
2002-07-17 06:01:37 +00:00
|
|
|
|
2002-11-25 17:44:14 +00:00
|
|
|
if test "$PHP_MBREGEX" != "no" -a "$PHP_MBSTRING" != "no"; then
|
2002-07-17 00:17:43 +00:00
|
|
|
AC_DEFINE(HAVE_MBREGEX, 1, [whether to have multibyte regex support])
|
|
|
|
fi
|