config BR2_PACKAGE_ICU
	bool "icu"
	depends on BR2_INSTALL_LIBSTDCPP
	depends on BR2_USE_WCHAR
	depends on BR2_HOST_GCC_AT_LEAST_4_9 # C++11 PR56019
	depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_9 # C++11 PR56019
	depends on BR2_TOOLCHAIN_HAS_THREADS
	# icu does some funky things by generating by itself an ELF
	# file, and it cannot easily be changed to generate FLAT
	# format.
	depends on !BR2_BINFMT_FLAT
	help
	  International Components for Unicode.

	  https://icu.unicode.org/

if BR2_PACKAGE_ICU

config BR2_PACKAGE_ICU_CUSTOM_DATA_PATH
	string "Path to custom data library file"
	help
	  This option allows to define the path to a custom data
	  library generated with http://apps.icu-project.org/datacustom/
	  Make sure you select the appropiate version to match the one
	  provided by buildroot.
	  Leave empty to not use this functionality.

endif

comment "icu needs a toolchain w/ C++, wchar, threads, gcc >= 4.9, host gcc >= 4.9"
	depends on !BR2_BINFMT_FLAT
	depends on !BR2_INSTALL_LIBSTDCPP || !BR2_USE_WCHAR || \
		!BR2_TOOLCHAIN_HAS_THREADS || \
		!BR2_TOOLCHAIN_GCC_AT_LEAST_4_9 || \
		!BR2_HOST_GCC_AT_LEAST_4_9
