mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-11-24 02:34:06 +02:00
[include] autotools.mk: explicately pass toolchain versions of automake, autoconf, libtoolize, ... to autoreconf
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@24570 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
5270be5f80
commit
fc265da758
@ -13,6 +13,16 @@ define libtool_remove_files
|
|||||||
find $(1) -name '*.la' | $(XARGS) rm -f;
|
find $(1) -name '*.la' | $(XARGS) rm -f;
|
||||||
endef
|
endef
|
||||||
|
|
||||||
|
|
||||||
|
AM_TOOL_PATHS:= \
|
||||||
|
AUTOM4TE=$(STAGING_DIR_HOST)/bin/autom4te \
|
||||||
|
AUTOCONF=$(STAGING_DIR_HOST)/bin/autoconf \
|
||||||
|
AUTOMAKE=$(STAGING_DIR_HOST)/bin/automake \
|
||||||
|
ACLOCAL=$(STAGING_DIR_HOST)/bin/aclocal \
|
||||||
|
AUTOHEADER=$(STAGING_DIR_HOST)/bin/autoheader \
|
||||||
|
LIBTOOLIZE=$(STAGING_DIR_HOST)/bin/libtoolize \
|
||||||
|
M4=$(STAGING_DIR_HOST)/bin/m4
|
||||||
|
|
||||||
# 1: build dir
|
# 1: build dir
|
||||||
# 2: remove files
|
# 2: remove files
|
||||||
# 3: automake paths
|
# 3: automake paths
|
||||||
@ -23,11 +33,11 @@ define autoreconf
|
|||||||
$(patsubst %,rm -f %;,$(2)) \
|
$(patsubst %,rm -f %;,$(2)) \
|
||||||
$(foreach p,$(3), \
|
$(foreach p,$(3), \
|
||||||
if [ -x $(p)/autogen.sh ]; then \
|
if [ -x $(p)/autogen.sh ]; then \
|
||||||
$(p)/autogen.sh || true; \
|
$(AM_TOOL_PATHS) $(p)/autogen.sh || true; \
|
||||||
elif [ -f $(p)/configure.ac ] || [ -f $(p)/configure.in ]; then \
|
elif [ -f $(p)/configure.ac ] || [ -f $(p)/configure.in ]; then \
|
||||||
[ -f $(p)/aclocal.m4 ] && [ ! -f $(p)/acinclude.m4 ] && mv aclocal.m4 acinclude.m4; \
|
[ -f $(p)/aclocal.m4 ] && [ ! -f $(p)/acinclude.m4 ] && mv aclocal.m4 acinclude.m4; \
|
||||||
[ -d $(p)/autom4te.cache ] && rm -rf autom4te.cache; \
|
[ -d $(p)/autom4te.cache ] && rm -rf autom4te.cache; \
|
||||||
$(STAGING_DIR_HOST)/bin/autoreconf -v -f -i -s \
|
$(AM_TOOL_PATHS) $(STAGING_DIR_HOST)/bin/autoreconf -v -f -i -s \
|
||||||
-B $(STAGING_DIR_HOST)/share/aclocal \
|
-B $(STAGING_DIR_HOST)/share/aclocal \
|
||||||
$(patsubst %,-B %,$(5)) \
|
$(patsubst %,-B %,$(5)) \
|
||||||
$(patsubst %,-I %,$(4)) $(4) || true; \
|
$(patsubst %,-I %,$(4)) $(4) || true; \
|
||||||
|
Loading…
Reference in New Issue
Block a user