# Allow invocation from a separate build directory; in that case, we change
# to the source directory to run the auto*, then change back before running configure
-srcdir=`dirname $0`
+srcdir=`dirname "$0"`
test -z "$srcdir" && srcdir=.
ORIGDIR=`pwd`
-cd $srcdir
+cd "$srcdir" || exit 1
rm -f $top_srcdir/autom4te.cache
fi
autoreconf --verbose --install -I Source/autotools $ACLOCAL_FLAGS|| exit $?
-cd $ORIGDIR || exit 1
+cd "$ORIGDIR" || exit 1
if test -z "$NOCONFIGURE"; then
- $srcdir/configure $AUTOGEN_CONFIGURE_ARGS "$@" || exit $?
+ "$srcdir"/configure $AUTOGEN_CONFIGURE_ARGS "$@" || exit $?
fi