summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin Franzke <benjaminfranzke@googlemail.com>2011-10-20 10:34:32 +0200
committerBenjamin Franzke <benjaminfranzke@googlemail.com>2011-10-20 10:34:32 +0200
commit05df6eb3d1b49bd1c0f255712dac5f60f0cd4c35 (patch)
tree1b3e02d2cb50a77a38f6fb01af83d0c9a2ad6379
parentb565b6950bbd689be453983e3940235003ffcc45 (diff)
downloadpa-sink-ctl-05df6eb3d1b49bd1c0f255712dac5f60f0cd4c35.tar.gz
pa-sink-ctl-05df6eb3d1b49bd1c0f255712dac5f60f0cd4c35.tar.bz2
pa-sink-ctl-05df6eb3d1b49bd1c0f255712dac5f60f0cd4c35.zip
Update autogen.sh
-rwxr-xr-xautogen.sh11
1 files changed, 9 insertions, 2 deletions
diff --git a/autogen.sh b/autogen.sh
index 0fb6c4f..916169a 100755
--- a/autogen.sh
+++ b/autogen.sh
@@ -1,2 +1,9 @@
-#!/bin/sh
-autoreconf --install
+#! /bin/sh
+
+test -n "$srcdir" || srcdir=`dirname "$0"`
+test -n "$srcdir" || srcdir=.
+(
+ cd "$srcdir" &&
+ autoreconf --force -v --install
+) || exit
+test -n "$NOCONFIGURE" || "$srcdir/configure" "$@"