aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--macros/autogen.sh18
1 files changed, 14 insertions, 4 deletions
diff --git a/macros/autogen.sh b/macros/autogen.sh
index 9ced626851..998bc88a30 100644
--- a/macros/autogen.sh
+++ b/macros/autogen.sh
@@ -77,11 +77,21 @@ do
fi
done
-if test x$NOCONFIGURE = x; then
conf_flags="--enable-maintainer-mode --enable-compile-warnings" #--enable-iso-c
-echo running $srcdir/configure $conf_flags "$@"
-$srcdir/configure $conf_flags "$@" \
-&& echo Now type \`make\' to compile $PKG_NAME
+if [ ! -z "$OBJ_DIR" ]; then
+ mkdir -p "$OBJ_DIR"
+ cd "$OBJ_DIR"
+fi
+
+if test x$NOCONFIGURE = x; then
+echo running $srcdir/$OBJ_DIR/configure $conf_flags "$@"
+if [ -z "$OBJ_DIR" ]; then
+ $srcdir/configure $conf_flags "$@" \
+ && echo Now type \`make\' to compile $PKG_NAME
+else
+ $srcdir/../configure $conf_flags "$@" \
+ && echo Now type \`make\' to compile $PKG_NAME
+fi
else
echo Skipping configure process.
fi