[Buildroot] [PATCH v5 3/4] pcre: add UTF-8/16/32 support option

Yegor Yefremov yegorslists at googlemail.com
Wed Nov 13 20:57:40 UTC 2013


Add BR2_PACKAGE_PCRE_UTF option, that activates
--enable-unicode-properties for UTF-8/16/32.

Signed-off-by: Yegor Yefremov <yegorslists at googlemail.com>
---
Changes:
        v3: change option to "UTF-8/16/32 support"

 package/pcre/Config.in | 5 +++++
 package/pcre/pcre.mk   | 1 +
 2 files changed, 6 insertions(+)

diff --git a/package/pcre/Config.in b/package/pcre/Config.in
index dc92274..e49d693 100644
--- a/package/pcre/Config.in
+++ b/package/pcre/Config.in
@@ -19,4 +19,9 @@ config BR2_PACKAGE_PCRE_32
 	help
 	  This option builds the 32-bits pcre library, i.e 'libpcre32'

+config BR2_PACKAGE_PCRE_UTF
+	bool "UTF-8/16/32 support"
+	help
+	  This option enables UTF support
+
 endif
diff --git a/package/pcre/pcre.mk b/package/pcre/pcre.mk
index bf86a3d..0d1d66b 100644
--- a/package/pcre/pcre.mk
+++ b/package/pcre/pcre.mk
@@ -19,5 +19,6 @@ endif
 PCRE_CONF_OPT += --enable-pcre8
 PCRE_CONF_OPT += $(if $(BR2_PACKAGE_PCRE_16),--enable-pcre16,--disable-pcre16)
 PCRE_CONF_OPT += $(if $(BR2_PACKAGE_PCRE_32),--enable-pcre32,--disable-pcre32)
+PCRE_CONF_OPT += $(if $(BR2_PACKAGE_PCRE_UTF),--enable-unicode-properties,--disable-unicode-properties)

 $(eval $(autotools-package))
--
1.8.1.2



More information about the buildroot mailing list