Skip to content

Commit 81a7c22

Browse files
committed
autogen.sh: simplify a bit
Do not use $DEBUG to add --enable-debug - needless, moreover $DEBUG is too general and the user may have it defined by accident for a different purpose. Remove cd to $ORIG_DIR, that has already been performed.
1 parent 2a315d4 commit 81a7c22

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

autogen.sh

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -30,16 +30,8 @@ if test -n "$RES" -a -z "$(echo $RES | grep Makefile.am)"; then
3030
exit 1
3131
fi
3232

33-
CONFIGURE_OPTS=
34-
35-
if [ -n "$DEBUG" ]; then
36-
CONFIGURE_OPTS="$CONFIGURE_OPTS --enable-debug"
37-
fi
38-
3933
cd $ORIGDIR
4034

4135
echo "Running configure..."
42-
$srcdir/configure $CONFIGURE_OPTS "$@"
43-
44-
cd $ORIGDIR
36+
"$srcdir"/configure "$@"
4537

0 commit comments

Comments
 (0)