config BR2_PACKAGE_RE2
	bool "re2"
	depends on BR2_PACKAGE_LIBABSEIL_CPP_ARCH_SUPPORTS
	depends on BR2_INSTALL_LIBSTDCPP
	depends on BR2_TOOLCHAIN_GCC_AT_LEAST_8 # C++17
	depends on BR2_TOOLCHAIN_HAS_THREADS
	depends on !BR2_STATIC_LIBS # libabseil-cpp
	select BR2_PACKAGE_LIBABSEIL_CPP
	help
	  RE2 is a fast, safe, thread-friendly alternative
	  to backtracking regular expression engines like
	  those used in PCRE, Perl, and Python.
	  It is a C++ library.

	  https://github.com/google/re2

comment "re2 needs a toolchain w/ C++, threads, dynamic library, gcc >= 8"
	depends on BR2_PACKAGE_LIBABSEIL_CPP_ARCH_SUPPORTS
	depends on !BR2_INSTALL_LIBSTDCPP || \
		!BR2_TOOLCHAIN_HAS_THREADS || \
		BR2_STATIC_LIBS || !BR2_TOOLCHAIN_GCC_AT_LEAST_8
