Skip to content
Browse files

Merge pull request #498 from psychon/configure-flag-for-charset

configure: Add --enable/disable-charset
  • Loading branch information...
2 parents ef533a4 + a074c23 commit 40536fbf00a0d9858566b20b03a5f1c3f52da030 @DarthGandalf DarthGandalf committed Feb 25, 2014
Showing with 8 additions and 1 deletion.
  1. +8 −1 configure.ac
View
9 configure.ac
@@ -576,14 +576,21 @@ then
LIBS="$my_saved_LIBS"
fi
-dnl Wait, what? No --disable flag for this?
+AC_ARG_ENABLE( [charset],
+ AS_HELP_STRING([--disable-charset], [disable ICU support]),
+ [HAVE_ICU="$enableval"],
+ [HAVE_ICU="auto"])
+old_HAVE_ICU="$HAVE_ICU"
PKG_CHECK_MODULES([icu], [icu-uc], [
appendLib "$icu_LIBS"
appendCXX "$icu_CFLAGS"
HAVE_ICU=yes
AC_DEFINE([HAVE_ICU], [1], [Enable ICU library for Unicode handling])
AC_DEFINE([U_USING_ICU_NAMESPACE], [0], [Do not clutter global namespace with ICU C++ stuff])
], [
+ ZNC_AUTO_FAIL([HAVE_ICU],
+ [support for charset conversion not found. Try --disable-charset.],
+ [support for charset conversion not found and thus disabled])
HAVE_ICU="no (icu-uc not found via pkg-config)"
])

0 comments on commit 40536fb

Please sign in to comment.
Something went wrong with that request. Please try again.