diff options
author | David Herrmann <dh.herrmann@gmail.com> | 2013-10-29 07:50:05 +0100 |
---|---|---|
committer | David Herrmann <dh.herrmann@gmail.com> | 2013-10-29 07:50:05 +0100 |
commit | 6a1faab3e333b948a266a42d6b725ebd5a59ebb7 (patch) | |
tree | 61a1193492495675bc28690668493a5a7b9d3692 | |
parent | bd52696633247055ecd8e7aedb99394d84433d29 (diff) |
build: make autogen.sh comply to gnome-build rules
Fix some minor autogen.sh features so we comply to common build-chain
rules.
Signed-off-by: David Herrmann <dh.herrmann@gmail.com>
-rwxr-xr-x | autogen.sh | 15 |
1 files changed, 12 insertions, 3 deletions
@@ -1,8 +1,17 @@ #!/bin/sh set -e + +srcdir=`dirname $0` +test -z "$srcdir" && srcdir=. + +origdir=`pwd` +cd $srcdir + mkdir -p m4 -autoreconf -is +autoreconf -is --force + +cd $origdir -if test ! "x$NOCONFIGURE" = "x1" ; then - exec ./configure "$@" +if test -z "$NOCONFIGURE" ; then + exec $srcdir/configure "$@" fi |