diff --git a/scripts/autoreconf b/scripts/autoreconf index 38ab044005..d2da9f8a82 100755 --- a/scripts/autoreconf +++ b/scripts/autoreconf @@ -22,11 +22,14 @@ [ ! -f "$PKG_BUILD/configure.in" -a ! -f "$PKG_BUILD/configure.ac" ] && echo "configure.in or configure.ac not found" && exit 1 -printf "%${BUILD_INDENT}c ${boldmagenta}AUTORECONF${endcolor} $1\n" ' '>&$SILENT_OUT export BUILD_INDENT=$((${BUILD_INDENT:-1}+$BUILD_INDENT_SIZE)) touch $PKG_BUILD/NEWS $PKG_BUILD/AUTHORS $PKG_BUILD/ChangeLog mkdir -p $PKG_BUILD/m4 -do_autoreconf $PKG_BUILD +if [ ! -f $PKG_BUILD/.autoreconf-done ] ; then + printf "%${BUILD_INDENT}c ${boldmagenta}AUTORECONF${endcolor} $1\n" ' '>&$SILENT_OUT + do_autoreconf $PKG_BUILD + touch $PKG_BUILD/.autoreconf-done +fi exit 0