2 # Run this to generate configure and initial GNUmakefiles
7 if [ ! -f aclocal.
m4 -o stepmake
/aclocal.
m4 -nt aclocal.
m4 ]; then
8 echo "stepmake/aclocal.m4 is newer. Copying file."
9 cp -f stepmake
/aclocal.
m4 aclocal.
m4
12 if [ ! -f autogen.sh
-o stepmake
/autogen.sh
-nt autogen.sh
]; then
13 echo "stepmake/autogen.sh is newer. Copying file."
14 cp -f stepmake
/autogen.sh autogen.sh
15 exec .
/autogen.sh
"$@"
18 # Be paranoid: check for autoconf >= 2.50
19 # Some setups have both autoconf 2.13 and 2.5x available through
20 # a wrapper script: /usr/bin/autoconf.
21 # This wrapper may incorrectly autoselect autoconf 2.50, but it
22 # advertises itself as autoconf 2.13.
23 # If you have such a setup, invoke this script as:
24 # autoconf=autoconf2.50 ./autogen.sh
25 for i
in autoconf2.50 autoconf-2.50 autoconf false
; do
26 version
=`$i --version 2>/dev/null | head -n 1 | awk '{print $NF}' | awk -F. '{print $1 * 100 + $2}'`
27 if test "0$version" -ge 250; then
33 if test -z "$autoconf"; then
34 echo "ERROR: Please install autoconf 2.50 or newer"
38 for i
in $srcdir/configure.
in #`find $srcdir -name configure.in -print`
44 echo "Running autoconf ..."
49 #conf_flags="--enable-maintainer-mode --enable-compile-warnings" #--enable-iso-c
50 if test -n "$NOCONFIGURE"; then
51 echo Skipping configure process.
56 echo "warning: about to run \`./configure' without arguments."
57 echo "arguments on the \`$0\'"
58 echo "command line will be passed to \`./configure'."
62 echo Running
$srcdir/configure
$conf_flags "$@" ...
63 $srcdir/configure
$conf_flags "$@"