autogen.sh 503 Bytes
Newer Older
1 2 3
#!/bin/sh
set -e

4
mkdir -p ac
5
aclocal
6 7
autoheader
automake -a -c
Bernhard Link's avatar
Bernhard Link committed
8
autoconf
9
rm -rf autom4te.cache || true
10

11
if [ $# -lt 1 ] ; then
12 13 14
	exit 0
fi

15 16
if [ "x$1" = "x--configure" ] ; then
	shift
17
	repreprodir="`pwd`"
18
	if [ $# -gt 0 ] ; then
19 20
		mkdir -p -- "$1"
		cd "$1" || exit 1
21
		shift
22
	fi
23
	"$repreprodir"/configure --enable-maintainer-mode CFLAGS="-Wall -O2 -g -Wmissing-prototypes -Wstrict-prototypes -Wshadow -Wunused-parameter -Wsign-compare" CPPFLAGS="" "$@"
24 25 26
else
	echo "unsupported option $1" >&2
	exit 1
27
fi