comment "python-libconfig needs a glibc or uClibc toolchain w/ C++, threads"
	depends on !BR2_INSTALL_LIBSTDCPP || !BR2_TOOLCHAIN_HAS_THREADS || \
		BR2_TOOLCHAIN_USES_MUSL

config BR2_PACKAGE_PYTHON_LIBCONFIG
	bool "python-libconfig"
	depends on BR2_INSTALL_LIBSTDCPP
	depends on BR2_TOOLCHAIN_HAS_THREADS
	# error: invalid use of incomplete type 'struct _IO_FILE'
	depends on !BR2_TOOLCHAIN_USES_MUSL
	select BR2_PACKAGE_BOOST
	select BR2_PACKAGE_BOOST_PYTHON
	select BR2_PACKAGE_LIBCONFIG
	help
	  Python bindings to the C++ library libconfig

	  Libconfig is a simple library for manipulating structured
	  configuration files. The file format is more compact and more
	  readable than XML. And unlike XML, it is type-aware, so it is
	  not necessary to do string parsing in application code.
	  http://www.hyperrealm.com/libconfig/

	  https://github.com/cnangel/python-libconfig
