aboutsummaryrefslogtreecommitdiffstats
path: root/include/autotools.mk
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2010-12-08 01:15:38 +0000
committerJo-Philipp Wich <jow@openwrt.org>2010-12-08 01:15:38 +0000
commit69aeb3a06cae7b6c26fa0d11c98a82f9f6898989 (patch)
tree5d1b72af3d8c8f7d668e6e71274ba938dbea1be2 /include/autotools.mk
parent591190e215c9d5958f2630550164963f69db57aa (diff)
downloadupstream-69aeb3a06cae7b6c26fa0d11c98a82f9f6898989.tar.gz
upstream-69aeb3a06cae7b6c26fa0d11c98a82f9f6898989.tar.bz2
upstream-69aeb3a06cae7b6c26fa0d11c98a82f9f6898989.zip
autotools.mk: if ./autogen.sh exists, call that. Call autoreconfig only if configure.in or configure.ac exists
SVN-Revision: 24319
Diffstat (limited to 'include/autotools.mk')
-rw-r--r--include/autotools.mk9
1 files changed, 8 insertions, 1 deletions
diff --git a/include/autotools.mk b/include/autotools.mk
index a2d57d6971..3203604682 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