Commit 38fd3e91b12020e27331814937779ac0ba151364

Con Kolivas 2014-02-17T21:17:06

Only run ./configure with autogen.sh if extra parameters are passed to it.

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/autogen.sh b/autogen.sh
index 7027b2a..8b48add 100755
--- a/autogen.sh
+++ b/autogen.sh
@@ -5,7 +5,7 @@ bs_dir="$(dirname $(readlink -f $0))"
 touch "${bs_dir}"/ltmain.sh
 autoreconf -fi "${bs_dir}"
 
-if test -z "$NOCONFIGURE" ; then
+if test -n "$1" && test -z "$NOCONFIGURE" ; then
 	echo 'Configuring...'
 	"$bs_dir"/configure "$@"
 fi