[backfire] merge r26589
authorjow <jow@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Mon, 11 Apr 2011 14:19:34 +0000 (14:19 +0000)
committerjow <jow@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Mon, 11 Apr 2011 14:19:34 +0000 (14:19 +0000)
git-svn-id: svn://svn.openwrt.org/openwrt/branches/backfire@26590 3c298f89-4303-0410-b956-a3cf2f4a3e73

include/autotools.mk

index 7797031fd6143376a702ac9794d670f60d965065..7fe376cc156b7e5401192288ab1be614e009f078 100644 (file)
@@ -38,6 +38,7 @@ define autoreconf
                                [ -d $(p)/autom4te.cache ] && rm -rf autom4te.cache; \
                                touch NEWS AUTHORS COPYING ChangeLog; \
                                $(AM_TOOL_PATHS) $(STAGING_DIR_HOST)/bin/autoreconf -v -f -i -s \
                                [ -d $(p)/autom4te.cache ] && rm -rf autom4te.cache; \
                                touch NEWS AUTHORS COPYING ChangeLog; \
                                $(AM_TOOL_PATHS) $(STAGING_DIR_HOST)/bin/autoreconf -v -f -i -s \
+                                       $(if $(word 2,$(3)),--no-recursive) \
                                        -B $(STAGING_DIR_HOST)/share/aclocal \
                                        $(patsubst %,-I %,$(5)) \
                                        $(patsubst %,-I %,$(4)) $(4) || true; \
                                        -B $(STAGING_DIR_HOST)/share/aclocal \
                                        $(patsubst %,-I %,$(5)) \
                                        $(patsubst %,-I %,$(4)) $(4) || true; \