diff options
author | Ryan Lortie <desrt@desrt.ca> | 2012-03-08 11:29:05 -0500 |
---|---|---|
committer | Ryan Lortie <desrt@desrt.ca> | 2012-03-08 11:29:05 -0500 |
commit | eec74b9603f02ae63bd6b43c016972eb218a53bf (patch) | |
tree | 7bcdd75c637f0c398290da591f75f8b17750f15a /autogen.sh | |
parent | f5ecb0181dd680260bc11e73ae739f4a02ed6b75 (diff) | |
download | dconf-eec74b9603f02ae63bd6b43c016972eb218a53bf.tar.gz |
autogen.sh: support calling from out of tree
Diffstat (limited to 'autogen.sh')
-rwxr-xr-x | autogen.sh | 10 |
1 files changed, 9 insertions, 1 deletions
@@ -2,6 +2,12 @@ set -e +test -n "$srcdir" || srcdir=`dirname "$0"` +test -n "$srcdir" || srcdir=. + +olddir=`pwd` +cd "$srcdir" + if [ "$1" = "clean" ]; then rm -f aclocal.m4 configure config.* `find . -name Makefile.in` libtool rm -rf autom4te.cache m4 aux @@ -25,7 +31,9 @@ CFLAGS=${CFLAGS=-ggdb} LDFLAGS=${LDFLAGS=-Wl,-O1} export CFLAGS LDFLAGS +cd "$olddir" + if test -z "$NOCONFIGURE"; then - ./configure "$@" + "$srcdir"/configure "$@" fi |