Allow configuration outside $(srcdir)
This commit is contained in:
parent
af0296ecc8
commit
422968b0c1
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue