add a new helper macro to deal with conditional ./configure flags
authorFelix Fietkau <nbd@openwrt.org>
Mon, 29 Mar 2010 03:38:40 +0000 (03:38 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Mon, 29 Mar 2010 03:38:40 +0000 (03:38 +0000)
SVN-Revision: 20570

include/autotools.mk

index e1535d0b16b3c61a440c92d8582578f44b02c572..c941a4949d09a0f1d8a036b4c709e81f54f49b19 100644 (file)
@@ -32,6 +32,7 @@ update_libtool_ucxx = \
        ) \
        $(call update_libtool_common)
 
+autoconf_bool = $(patsubst %,$(if $($(1)),--enable,--disable)-%,$(2))
 
 # prevent libtool from linking against host development libraries
 define libtool_fixup_libdir