+ find -name config.cache|xargs rm -f
+
+ # sourceware.org?
+ if test -f `dirname $configure`/bfd/elf64-x86-64.c \
+ -o -f `dirname $configure`/gcc/reload.c;then
+ maintainer=""
+ else
+ :
+# maintainer="--enable-maintainer-mode"
+ fi
+ if test -f `dirname $configure`/bfd/elf64-x86-64.c;then
+ test -f g77 || (test -f /usr/bin/gfortran && ln -s /usr/bin/gfortran g77)
+ fi
+ if ! $fast;then
+ targets="$targets --enable-64-bit-bfd"
+ fi
+ if ! $fast && test -f `dirname $configure`/bfd/elf64-x86-64.c -a '(' -d CVS -o -d .git ')';then
+ targets="$targets --enable-targets=all"
+ fi
+
+ if test -f `dirname $configure`/gcc/reload.c;then
+ werror="--disable-werror"
+ customm=""
+ customss="--disable-static --enable-shared"
+ else
+ werror=""
+ fi
+
+ test -z "$CC" && CC=gcc
+ : >errs1.c
+ for flags in \
+ "$debug -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4" \
+ "$debug -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions" \
+ "" \
+ ;do
+ if [ -z "$flags" ];then
+ rm -f errs1.c
+ echo >&2 "flags error"
+ exit 1
+ fi
+ "$CC" $flags -c errs1.c -o /dev/null && break
+ done
+ if test -n "$customm" && "$CC" $customm -c errs1.c -o /dev/null;then
+ flags="$customm $flags"
+ fi
+ rm -f errs1.c
+ export CFLAGS="$flags"
+ export CXXFLAGS="$flags"
+ export GCJFLAGS="$flags"
+ export CFLAGS_FOR_TARGET="$flags"
+ export CXXFLAGS_FOR_TARGET="$flags"
+ export LDFLAGS="$ldflags"
+
+ time nice "$configure" $target $targets $customss --enable-debug --disable-sim $maintainer $werror --with-separate-debug-dir=/usr/lib/debug "$@"
+ touch errs1.ok