Commit 19735fbd authored by Christophe Fergeau's avatar Christophe Fergeau Committed by Nikias Bassen

Allow to run autogen.sh outside $top_srcdir

This makes it more convenient to do builds out of the source dir.
parent 2af73182
#!/bin/sh
gprefix=`which glibtoolize 2>&1 >/dev/null`
if [ $? -eq 0 ]; then
glibtoolize --force
else
libtoolize --force
fi
aclocal -I m4
autoheader
automake --add-missing
autoconf
srcdir=`dirname $0`
test -z "$srcdir" && srcdir=.
(
cd "$srcdir"
gprefix=`which glibtoolize 2>&1 >/dev/null`
if [ $? -eq 0 ]; then
glibtoolize --force
else
libtoolize --force
fi
aclocal -I m4
autoheader
automake --add-missing
autoconf
)
if [ -z "$NOCONFIGURE" ]; then
./configure "$@"
"$srcdir/configure" "$@"
fi
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment