-#
-# ICU
-#
-ICU_CFLAGS=""
-ICU_LIBS=""
-enable_icu="no; default"
-
-probe_icu=false
-AC_ARG_WITH(icu, [ --with-icu=yes/no],
- if test x$with_icu = xno; then
- probe_icu=false;
- AC_MSG_RESULT(Will not probe for ICU)
- fi
- if test x$with_icu = xyes; then
- probe_icu=true;
- fi
-)
-
-if $probe_icu; then
- AC_PATH_PROG(ICU_CONFIG, icu-config, no)
- if test "x$ICU_CONFIG" = "xno" -o ! -x "$ICU_CONFIG"; then
- AC_MSG_WARN([Only invariant locale available; install ICU for I18N support])
- enable_icu="no, if you want full i18n support download it from: http://oss.software.ibm.com/icu/index.html"
- else
- enable_icu="yes. Version: `$ICU_CONFIG --version`"
- AC_DEFINE(HAVE_ICU)
- ICU_CFLAGS=`$ICU_CONFIG --cppflags`
- ICU_LIBS=`$ICU_CONFIG --ldflags`
- fi
-fi
-AC_SUBST(ICU_CFLAGS)
-AC_SUBST(ICU_LIBS)
-