This allows the script to be run from somewhere other than the top-level build directory. --- autogen.sh | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/autogen.sh b/autogen.sh index 1a9a020..ab52ab6 100755 --- a/autogen.sh +++ b/autogen.sh @@ -2,6 +2,13 @@ # Run this to set up the build system: configure, makefiles, etc. # We trust that the user has a recent enough autoconf & automake setup # (not older than a few years...) +set -e + +srcdir=`dirname $0` +test -n "$srcdir" && cd "$srcdir" + +echo "Updating build configuration files for FLAC, please wait...." + touch config.rpath -autoreconf -i -#$srcdir/configure "$@" && echo +autoreconf -isf +#./configure "$@" && echo -- 1.7.12 --------------080508040406010003090404--