Allow configuration outside $(srcdir)

This commit is contained in:
Martin Blanchard 2018-02-22 21:30:48 +00:00 committed by GitHub
parent af0296ecc8
commit 422968b0c1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 9 additions and 0 deletions

View File

@ -1,6 +1,13 @@
#!/bin/sh
set -e
test -n "$srcdir" || srcdir=`dirname "$0"`
test -n "$srcdir" || srcdir=.
olddir=`pwd`
cd "$srcdir"
autoreconf --force --install --symlink --warnings=all
if test -z "${NOCONFIGURE}"; then
@ -8,3 +15,5 @@ if test -z "${NOCONFIGURE}"; then
./configure --prefix=/usr "$@"
make clean
fi
cd "$olddir"