瀏覽代碼

add a new helper macro to deal with conditional ./configure flags

SVN-Revision: 20570
Felix Fietkau 15 年之前
父節點
當前提交
e10df8d2b5
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      include/autotools.mk

+ 1 - 0
include/autotools.mk

@@ -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