sbonazzo / rpms / cyrus-sasl

Forked from rpms/cyrus-sasl 2 years ago
Clone

Blame SOURCES/autogen.sh

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