From: John Crispin Date: Tue, 24 Jul 2012 23:07:30 +0000 (+0000) Subject: package-version-override always calls autoreconf X-Git-Tag: reboot~13302 X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=8029fefe5c42e8e71ee9944d64b322afbdeaf8a6;p=openwrt%2Fstaging%2Fblogic.git package-version-override always calls autoreconf make it conditional on the existance of autoreconf Signed-off-by: Ryan Nowakowski SVN-Revision: 32831 --- diff --git a/include/package-version-override.mk b/include/package-version-override.mk index eaaa3520f83d..f69d9b1776b4 100644 --- a/include/package-version-override.mk +++ b/include/package-version-override.mk @@ -62,7 +62,7 @@ define prepare_custom_source_directory rm -Rf $(PKG_BUILD_DIR); \ echo "Preparing Custom Source Directory link: $(CONFIG_$(PKG_NAME)_CUSTOM_SOURCE_DIR)"; \ ln -snf $(CONFIG_$(PKG_NAME)_CUSTOM_SOURCE_DIR) $(PKG_BUILD_DIR); \ - ( cd $(PKG_BUILD_DIR); autoreconf -i; ) \ + [ -x "$(PKG_BUILD_DIR)/autoreconf" ] && (cd $(PKG_BUILD_DIR); autoreconf -i;) \ else \ echo "Custom Source Directory $(CONFIG_$(PKG_NAME)_CUSTOM_SOURCE_DIR) is invalid"; \ false; \