#! /bin/sh -e
#
# Configuration build script: ggz-*
# build-depends: automake1.7, gettext, libtool, autoconf2.50
#
ACLOCAL_FLAGS="-I /usr/local/share/aclocal"
export ACLOCAL_FLAGS

autogen () {
    aclocal
    grep -q "^AM_GNU_GETTEXT"   configure.ac && gettextize -c -f
    grep -q "^A._PROG_LIBTOOL"  configure.ac && libtoolize -c -f --automake
    grep -q "^A._CONFIG_HEADER" configure.ac && autoheader -f
    automake -acf --foreign
    autoconf -f
}

autogen

