bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: ./configure compares non-numbers with -gt


From: Chet Ramey
Subject: Re: ./configure compares non-numbers with -gt
Date: Tue, 5 Feb 2002 16:28:30 -0500

> I get this output from ./configure for 2.05a:
> checking version of installed readline library... ./configure: test: 2a: 
> integer expression expected
> 4.2a
> 
> (I had to run the configure script with bash to get even this; pdksh
> was giving me "Memory fault" and dying from SIGSEGV, although I
> haven't been able to reproduce it outside bash's configure script.)
> 
> The relevant part of the configure script (line 3238, apparently
> generated by line 389 of configure.in):
> elif test $RL_MAJOR -gt 4 || { test $RL_MAJOR = 4 && test $RL_MINOR -gt 2 ; } 
> ; then
> 
> In my case, $RL_MINOR is 2a.  Maybe this test should be changed to
> something like this:

The problem is m4 quoting in the sed command that strips non-digits from the
minor version.  It's in the assignment to RL_MINOR from $ac_cv_rl_version;
the pattern needs to be 's:[[a-zA-Z]]*$::' with the extra set of brackets
added.

Chet

-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
( ``Discere est Dolere'' -- chet)

Chet Ramey, CWRU    address@hidden    http://cnswww.cns.cwru.edu/~chet/



reply via email to

[Prev in Thread] Current Thread [Next in Thread]