From 133252175b90159d18151b004bf767d5a43812ea Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Mon, 17 Feb 2014 21:17:06 +1100 Subject: [PATCH] Only run ./configure with autogen.sh if extra parameters are passed to it. --- autogen.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/autogen.sh b/autogen.sh index 79bcea88..8b48add3 100755 --- a/autogen.sh +++ b/autogen.sh @@ -4,3 +4,8 @@ bs_dir="$(dirname $(readlink -f $0))" #Some versions of libtoolize don't like there being no ltmain.sh file already touch "${bs_dir}"/ltmain.sh autoreconf -fi "${bs_dir}" + +if test -n "$1" && test -z "$NOCONFIGURE" ; then + echo 'Configuring...' + "$bs_dir"/configure "$@" +fi