Decrease the debugging level as it has the same usefulness: -ggdb3 -> -ggdb2
Provide default debugging flags also for gcj(1).
#! /bin/sh
# $Id$
+configure="./configure"
+if [ "${1#*/configure}" != "$1" ];then
+ configure="$1"
+ shift
+fi
(
set -ex
rm -f config.cache
- export CFLAGS="-ggdb3"
- export CXXFLAGS="-ggdb3"
- ./configure --enable-static --disable-shared --enable-debug "$@"
+ flags="-ggdb2"
+ export CFLAGS="$flags"
+ export CXXFLAGS="$flags"
+ export GCJFLAGS="$flags"
+ "$configure" --enable-static --disable-shared --enable-debug "$@"
) 2>&1|tee errs1