config BR2_PACKAGE_POLKIT
	bool "polkit"
	depends on BR2_HOST_GCC_AT_LEAST_4_9 # spidermonkey
	depends on BR2_INSTALL_LIBSTDCPP # spidermonkey
	depends on BR2_PACKAGE_SPIDERMONKEY_ARCH_SUPPORTS # spidermonkey
	depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_9 # spidermonkey
	depends on BR2_TOOLCHAIN_HAS_THREADS_NPTL # spidermonkey
	depends on BR2_USE_MMU # libglib2, dbus
	depends on BR2_USE_WCHAR # libglib2
	depends on !BR2_STATIC_LIBS # spidermonkey
	depends on !BR2_TOOLCHAIN_USES_UCLIBC # spidermonkey
	select BR2_PACKAGE_DBUS # runtime
	select BR2_PACKAGE_EXPAT
	select BR2_PACKAGE_LIBGLIB2
	select BR2_PACKAGE_SPIDERMONKEY
	help
	  PolicyKit is a toolkit for defining and handling
	  authorizations. It is used for allowing unprivileged
	  processes to speak to privileged processes.

	  http://www.freedesktop.org/wiki/Software/polkit

comment "polkit needs a glibc or musl toolchain with C++, wchar, dynamic library, NPTL, gcc >= 4.9"
	depends on BR2_USE_MMU
	depends on BR2_PACKAGE_SPIDERMONKEY_ARCH_SUPPORTS
	depends on BR2_TOOLCHAIN_USES_UCLIBC || \
		!BR2_INSTALL_LIBSTDCPP || \
		BR2_STATIC_LIBS || \
		!BR2_TOOLCHAIN_HAS_THREADS_NPTL || \
		!BR2_HOST_GCC_AT_LEAST_4_9 || \
		!BR2_TOOLCHAIN_GCC_AT_LEAST_4_9 || \
		!BR2_USE_WCHAR
