I'm trying to cross-compile the gnu Classpath library
0.93 on cygwin.
When I attempt to configure the build I get these error, any ideas how
to fix this?
bash-3.2$ echo $PATH
/usr/bin:/opt/crosstool/gcc-3.3.4-glibc-2.3.2/arm-unknown-linux-gnu/bin:/cygdrive/c/Program
Files/emacs-20.7/bin:/cygdrive/c/Program
Files/emacs-20.7/gnuserv:/cygdrive/c/Program
Files/Java/jdk1.5.0_09/bin:/cygdrive/c/WINDOWS/system32:/cygdrive/c/WINDOWS:/cygdrive/c/WINDOWS/System32/Wbem:/cygdrive/c/Program
Files/MySQL/MySQL Server
5.0/bin:/cygdrive/c/apache-ant-1.6.5/bin:/cygdrive/c/Program
Files/pstools:/cygdrive/c/Program Files/syslinux/win32
bash-3.2$
bash-3.2$ ./configure
./configure: line 13: $'\r': command not found
./configure: line 21: syntax error near unexpected token `elif'
./configure: line 21: `elif test -n "${BASH_VERSION+set}"
&& (set
-o posix) >/dev/null 2>&1; then
'
bash-3.2$
Head of the classpath configure script follows:
#! /bin/sh
# Guess values for system-dependent variables and create Makefiles.
# Generated by GNU Autoconf 2.59 for GNU Classpath 0.93.
#
# Report bugs to <org>.
#
# Copyright (C) 2003 Free Software Foundation, Inc.
# This configure script is free software; the Free Software Foundation
# gives unlimited permission to copy, distribute and modify it.
## --------------------- ##
## M4sh Initialization. ##
## --------------------- ##
# Be Bourne compatible
if test -n "${ZSH_VERSION+set}" && (emulate sh)
>/dev/null 2>&1; then
emulate sh
NULLCMD=:
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
# is contrary to our usage. Disable this feature.
alias -g '${1+"$@"}'='"$@"'
elif test -n "${BASH_VERSION+set}" && (set -o posix)
>/dev/null 2>&1; then
set -o posix
fi
DUALCASE=1; export DUALCASE # for MKS sh
etc...