xref: /OK3568_Linux_fs/buildroot/package/pcre2/Config.in (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1config BR2_PACKAGE_PCRE2
2	bool "pcre2"
3	help
4	  Perl Compatible Regular Expressions. By default, only the
5	  8-bits libpcre2 is built. To get the 16-bits and/or 32-bits
6	  variants libpcre2-16/libpcre2-32, use the package
7	  sub-options.
8
9	  http://www.pcre.org/
10
11if BR2_PACKAGE_PCRE2
12
13config BR2_PACKAGE_PCRE2_16
14	bool "16-bit pcre2"
15	help
16	  This option builds the 16-bits pcre2 library, i.e
17	  'libpcre2-16'
18
19config BR2_PACKAGE_PCRE2_32
20	bool "32-bit pcre2"
21	help
22	  This option builds the 32-bits pcre2 library, i.e
23	  'libpcre2-32'
24
25config BR2_PACKAGE_PCRE2_JIT_ARCH_SUPPORTS
26	bool
27	default y if BR2_aarch64
28	default y if BR2_arm || BR2_armeb
29	default y if BR2_i386 || BR2_x86_64
30	default y if BR2_mips || BR2_mipsel || BR2_mips64 || BR2_mips64el
31	default y if BR2_powerpc
32	default y if BR2_sparc
33
34config BR2_PACKAGE_PCRE2_JIT
35	bool "enable JIT support"
36	depends on BR2_PACKAGE_PCRE2_JIT_ARCH_SUPPORTS
37	depends on BR2_TOOLCHAIN_HAS_THREADS
38	help
39	  This option enables JIT support
40
41comment "JIT support needs a toolchain w/ threads"
42	depends on BR2_PACKAGE_PCRE2_JIT_ARCH_SUPPORTS
43	depends on !BR2_TOOLCHAIN_HAS_THREADS
44
45endif
46