diff options
author | jow <jow@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2010-12-08 01:15:38 +0000 |
---|---|---|
committer | jow <jow@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2010-12-08 01:15:38 +0000 |
commit | 833f7d02418247e5db690f00ab2a8e8ff3543407 (patch) | |
tree | a1b383cdd1c0d423a35c834c59d90a0b80ca2805 | |
parent | 78e0d837146f7d5b8fd1365d19f7975695660be1 (diff) |
[include] autotools.mk: if ./autogen.sh exists, call that. Call autoreconfig only if configure.in or configure.ac exists
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@24319 3c298f89-4303-0410-b956-a3cf2f4a3e73
-rw-r--r-- | include/autotools.mk | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/include/autotools.mk b/include/autotools.mk index a2d57d697..320360468 100644 --- a/include/autotools.mk +++ b/include/autotools.mk @@ -23,7 +23,14 @@ define libtool_remove_files endef define autoreconf - (cd $(PKG_BUILD_DIR); $(STAGING_DIR_HOST)/bin/autoreconf -v -f -i -s $(patsubst %,-I %,$(PKG_LIBTOOL_PATHS)) $(PKG_LIBTOOL_PATHS)); + (cd $(PKG_BUILD_DIR); \ + if [ -x ./autogen.sh ]; then \ + ./autogen.sh; \ + elif [ -f ./configure.ac ] || [ -f ./configure.in ]; then \ + $(STAGING_DIR_HOST)/bin/autoreconf -v -f -i -s \ + $(patsubst %,-I %,$(PKG_LIBTOOL_PATHS)) $(PKG_LIBTOOL_PATHS); \ + fi \ + ); endef Hooks/InstallDev/Post += libtool_remove_files |