#!/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
