build: Fix running autogen.sh out-of-tree
This commit is contained in:
parent
487dae0d2f
commit
9570c36fd4
1 changed files with 9 additions and 1 deletions
10
autogen.sh
10
autogen.sh
|
@ -1,10 +1,18 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
|
srcdir=`dirname $0`
|
||||||
|
test -z "$srcdir" && srcdir=.
|
||||||
|
|
||||||
|
pushd $srcdir
|
||||||
|
|
||||||
libtoolize --copy --force || exit 1
|
libtoolize --copy --force || exit 1
|
||||||
aclocal || exit 1
|
aclocal || exit 1
|
||||||
autoheader || exit 1
|
autoheader || exit 1
|
||||||
autoconf || exit 1
|
autoconf || exit 1
|
||||||
automake -a -c || exit 1
|
automake -a -c || exit 1
|
||||||
|
popd
|
||||||
|
|
||||||
if test -z "$NOCONFIGURE"; then
|
if test -z "$NOCONFIGURE"; then
|
||||||
exec ./configure --enable-maintainer-mode --enable-examples-build \
|
$srcdir/configure --enable-maintainer-mode --enable-examples-build \
|
||||||
--enable-x11-examples-build --enable-debug-log $*
|
--enable-x11-examples-build --enable-debug-log $*
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue