blob: f0880cb9504d8f047595e951a89def5ed3365278 [file] [log] [blame]
Brian Gaeke4940c572004-02-08 07:44:48 +00001#!/bin/sh
2die () {
3 echo "$@" 1>&2
4 exit 1
5}
Reid Spencerd00b82e2004-12-22 05:56:41 +00006outfile=configure
7configfile=configure.ac
Reid Spencer6843e382004-10-08 05:33:35 +00008test -d autoconf && test -f autoconf/$configfile && cd autoconf
9test -f $configfile || die "Can't find 'autoconf' dir; please cd into it first"
Reid Spencera773bd52006-08-04 18:18:08 +000010autoconf --version | grep '2\.60' > /dev/null
11test $? -eq 0 || die "Your autoconf was not detected as being 2.60"
12aclocal --version | grep '^aclocal.*1\.9\.6' > /dev/null
13test $? -eq 0 || die "Your aclocal was not detected as being 1.9.6"
14autoheader --version | grep '^autoheader.*2\.60' > /dev/null
15test $? -eq 0 || die "Your autoheader was not detected as being 2.60"
16libtool --version | grep '1\.5\.22' > /dev/null
17test $? -eq 0 || die "Your libtool was not detected as being 1.5.22"
Reid Spencer8eacb0c2004-09-19 22:30:53 +000018echo ""
19echo "### NOTE: ############################################################"
Reid Spencer5d6c4a52004-09-21 17:13:23 +000020echo "### If you get *any* warnings from autoconf below you MUST fix the"
21echo "### scripts in the m4 directory because there are future forward"
Reid Spencer8eacb0c2004-09-19 22:30:53 +000022echo "### compatibility or platform support issues at risk. Please do NOT"
Reid Spencer6843e382004-10-08 05:33:35 +000023echo "### commit any configure script that was generated with warnings"
24echo "### present. You should get just three 'Regenerating..' lines."
Reid Spencer8eacb0c2004-09-19 22:30:53 +000025echo "######################################################################"
26echo ""
Reid Spencera773bd52006-08-04 18:18:08 +000027echo "Regenerating aclocal.m4 with aclocal 1.9.6"
Reid Spencerdcd38752004-09-07 16:00:48 +000028cwd=`pwd`
Reid Spencerb03adb82004-09-19 22:14:24 +000029aclocal --force -I $cwd/m4 || die "aclocal failed"
Reid Spencera773bd52006-08-04 18:18:08 +000030echo "Regenerating configure with autoconf 2.60"
Reid Spencer6843e382004-10-08 05:33:35 +000031autoconf --force --warnings=all -o ../$outfile $configfile || die "autoconf failed"
Brian Gaeke4940c572004-02-08 07:44:48 +000032cd ..
Reid Spencera773bd52006-08-04 18:18:08 +000033echo "Regenerating config.h.in with autoheader 2.60"
Reid Spencerabec8f92004-10-27 23:03:44 +000034autoheader --warnings=all -I autoconf -I autoconf/m4 autoconf/$configfile || die "autoheader failed"
Brian Gaeke4940c572004-02-08 07:44:48 +000035exit 0