diff --git a/scripts/autoreconf b/scripts/autoreconf new file mode 100755 index 0000000000..674164a079 --- /dev/null +++ b/scripts/autoreconf @@ -0,0 +1,13 @@ +#!/bin/sh + +. config/options $1 + +[ ! -f "$PKG_BUILD/configure.in" -a ! -f "$PKG_BUILD/configure.ac" ] && echo "configure.in or configure.ac not found" && exit 1 +#[ ! -f "$PKG_BUILD/Makefile.am" -a ! -f "$PKG_BUILD/Makefile.in" ] && echo "Makefile.am or Makefile.in not found" && exit 1 + +printf "%${INDENT}c AUTORECONF $1\n" >&$SILENT_OUT +export INDENT=$((${INDENT:-1}+$INDENT_SIZE)) + +do_autoreconf $PKG_BUILD + +exit 0