targets=
configure="./configure"
debug="-ggdb2"
+ldflags=""
while true
do
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)
targets="--enable-targets=all"
+ ldflags="-lmcheck"
fi
if test -f `dirname $configure`/gcc/reload.c;then
export GCJFLAGS="$flags"
export CFLAGS_FOR_TARGET="$flags"
export CXXFLAGS_FOR_TARGET="$flags"
+ export LDFLAGS="$ldflags"
time nice "$configure" $target $targets $customss --enable-debug $maintainer $werror "$@"
) 2>&1|tee errs1