blob: 0809bf206e7f7a52388bcb74464250ed120c59ea [file] [log] [blame]
Reid Spencer820dab72004-09-04 19:48:50 +00001#!/bin/sh
2die () {
3 echo "$@" 1>&2
4 exit 1
5}
6test -d autoconf && test -f autoconf/configure.ac && cd autoconf
7[ -f configure.ac ] || die "Can't find 'autoconf' dir; please cd into it first"
8echo "Regenerating aclocal.m4 with aclocal"
9aclocal || die "aclocal failed"
10autoconf --version | egrep '2\.5[0-9]' > /dev/null
11if test $? -ne 0
12then
13 die "Your autoconf was not detected as being 2.5x"
14fi
15echo "Regenerating configure with autoconf 2.5x"
16autoconf -o ../configure configure.ac || die "autoconf failed"
17cd ..
18exit 0