From 69aeb3a06cae7b6c26fa0d11c98a82f9f6898989 Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Wed, 8 Dec 2010 01:15:38 +0000 Subject: [PATCH] autotools.mk: if ./autogen.sh exists, call that. Call autoreconfig only if configure.in or configure.ac exists SVN-Revision: 24319 --- include/autotools.mk | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/include/autotools.mk b/include/autotools.mk index a2d57d6971b..32036046824 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 -- 2.30.2