Blame SOURCES/autogen.sh

8b8af0
#!/bin/sh
8b8af0
# Run this to generate all the initial makefiles, etc.
8b8af0
test -n "$srcdir" || srcdir=`dirname "$0"`
8b8af0
test -n "$srcdir" || srcdir=.
8b8af0
8b8af0
olddir=`pwd`
8b8af0
8b8af0
cd $srcdir
8b8af0
8b8af0
(test -f configure.ac) || {
8b8af0
	echo "*** ERROR: Directory "\`$srcdir\'" does not look like the top-level project directory ***"
8b8af0
	exit 1
8b8af0
}
8b8af0
8b8af0
PKG_NAME=`autoconf --trace 'AC_INIT:$1' configure.ac`
8b8af0
8b8af0
if [ "$#" = 0 -a "x$NOCONFIGURE" = "x" ]; then
8b8af0
	echo "*** WARNING: I am going to run \`configure' with no arguments." >&2
8b8af0
	echo "*** If you wish to pass any to it, please specify them on the" >&2
8b8af0
	echo "*** \`$0\' command line." >&2
8b8af0
	echo "" >&2
8b8af0
fi
8b8af0
8b8af0
aclocal --install || exit 1
8b8af0
autoreconf --verbose --force --install -Wno-portability || exit 1
8b8af0
8b8af0
cd $olddir
8b8af0
if [ "$NOCONFIGURE" = "" ]; then
8b8af0
	$srcdir/configure "$@" || exit 1
8b8af0
8b8af0
	if [ "$1" = "--help" ]; then exit 0 else
8b8af0
		echo "Now type \`make\' to compile $PKG_NAME" || exit 1
8b8af0
	fi
8b8af0
else
8b8af0
	echo "Skipping configure process."
8b8af0
fi
8b8af0