diff options
author | Max Kellermann <max@duempel.org> | 2014-02-23 19:27:08 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2014-02-24 20:39:37 +0100 |
commit | 33fc3af775ca35ae343a4e50de36e8853cabb86d (patch) | |
tree | bfa5312e28ae2e62ecb167436ccb62a70250bd0a /configure.ac | |
parent | 6d9739165eaf3d81e00f60124cfc48aba509a9a6 (diff) | |
download | mpd-33fc3af775ca35ae343a4e50de36e8853cabb86d.tar.gz mpd-33fc3af775ca35ae343a4e50de36e8853cabb86d.tar.xz mpd-33fc3af775ca35ae343a4e50de36e8853cabb86d.zip |
SongSort, ...: use libicu instead of GLib's g_utf8_*()
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index f05c17b2a..f449c2d2e 100644 --- a/configure.ac +++ b/configure.ac @@ -627,6 +627,19 @@ dnl --------------------------------------------------------------------------- dnl Mandatory Libraries dnl --------------------------------------------------------------------------- +AC_ARG_ENABLE(icu, + AS_HELP_STRING([--enable-icu], + [enable libicu for Unicode (default: enabled)]),, + enable_icu=yes) + +if test x$enable_icu = xyes; then + PKG_CHECK_MODULES([ICU], [icu-i18n],, + [AC_MSG_ERROR([libicu not found])]) + + AC_DEFINE(HAVE_ICU, 1, [Define if libicu is used]) +fi +AM_CONDITIONAL(HAVE_ICU, test x$enable_icu = xyes) + AC_ARG_ENABLE(glib, AS_HELP_STRING([--enable-glib], [enable GLib usage (default: enabled)]),, |