Blame SOURCES/autogen.sh

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