X-Spam-Check-By: sourceware.org Message-ID: <45353B6B.9080106@cygwin.com> Date: Tue, 17 Oct 2006 16:22:03 -0400 From: "Larry Hall (Cygwin)" Reply-To: cygwin AT cygwin DOT com User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.0.7) Gecko/20060916 Fedora/1.5.0.7-1.fc4.remi Thunderbird/1.5.0.7 Mnenhy/0.7.4.0 MIME-Version: 1.0 To: cygwin AT cygwin DOT com Subject: Re: wxwidgets configure script won't run, syntax errors References: <453538B9 DOT 3080607 AT metro DOT cx> In-Reply-To: <453538B9.3080607@metro.cx> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Koen Martens wrote: > Hi All, > > I'm new to cygwin, so my problem below is probably quite simple to > solve. I have installed cygwin recently, downloaded from one of the > mirrors. The version reported by uname -a is NT-5.1. > > I also got the latest wxwidgets from www.wxwidgets.org > (wxMSW-2.6.3), however I don't think my problem is at all related to > wxwidgets. > > The problem is, the gnu configure script included with wxwidgets > won't run, giving a syntax error: > > bash-3.1$ ./configure > : command not found4: > ./configure: line 22: syntax error near unexpected token `elif' > ./configure: line 22: `elif test -n "${BASH_VERSION+set}" && (set -o > posix) >/de > '/null 2>&1; then > bash-3.1$ > > Now, afaik 'elif' is valid syntax for sh/bash.. In fact, any gnu > configure script has this syntax. > > My guess is that there is some basic thing I missed in setting up > the cygwin environment, and I'm hoping someone on the list knows. > > I've searched the mailing list archive, to no avail. Also, google is > not my friend in this case. > > Sorry for wasting time! You have CRNL as line endings in your files (bad) and you apparently have put them on a binary mount (good). In short, you'd see this same problem on Linux with the files in question (or using the tools that you did to unpack the files). I recommend running all the files through 'd2u'. You'll have better luck then. -- Larry Hall http://www.rfk.com RFK Partners, Inc. (508) 893-9779 - RFK Office 216 Dalton Rd. (508) 893-9889 - FAX Holliston, MA 01746 -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/