Commit d34c3ea1 authored by Sven Neumann's avatar Sven Neumann Committed by Peter Korsgaard
Browse files

pcre: add options to enable UTF and UCP support



Allow to compile PCRE with UTF-8/16/32 support and with
support for Unicode properties.

[Peter: whitespace fix]
Signed-off-by: default avatarSven Neumann <neumann@teufel.de>
Acked-by: default avatarArnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
Signed-off-by: default avatarPeter Korsgaard <peter@korsgaard.com>
parent 12da132c
Loading
Loading
Loading
Loading
+12 −0
Original line number Diff line number Diff line
@@ -19,4 +19,16 @@ 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 in pcre"
	help
	  This option builds the pcre library with UTF-8/16/32 support

config BR2_PACKAGE_PCRE_UCP
	bool "Unicode properties support in pcre"
	select BR2_PACKAGE_PCRE_UTF
	help
	  This option builds the pcre library with Unicode properties
	  support (implies UTF-8/16/32 support)'

endif
+2 −0
Original line number Diff line number Diff line
@@ -19,5 +19,7 @@ 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-utf,--disable-utf)
PCRE_CONF_OPT += $(if $(BR2_PACKAGE_PCRE_UCP),--enable-unicode-properties,--disable-unicode-properties)

$(eval $(autotools-package))