4 customss="--enable-static --disable-shared"
5 if [ "$1" = "--origss" ];then
11 if [ "$1" = "--origm" ];then
16 configure="./configure"
17 if [ "${1#*/configure}" != "$1" ];then
27 "-ggdb2 -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4" \
28 "-ggdb2 -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions" \
31 if [ -z "$flags" ];then
33 echo >&2 "flags error"
36 gcc $flags -c errs1.c -o /dev/null && break
38 if test -n "$customm" && gcc $customm -c errs1.c -o /dev/null;then
39 flags="$customm $flags"
42 export CFLAGS="$flags"
43 export CXXFLAGS="$flags"
44 export GCJFLAGS="$flags"
45 time nice "$configure" $customss --enable-debug "$@"