Re: [PATCH cygport v2] autotools.cygclass: correctly detect Autoconf 2.70+

2022-03-14 Thread Adam Dinwoodie
On Mon, Mar 14, 2022 at 07:05:20PM +, Jon Turney wrote: > On 13/03/2022 20:44, Adam Dinwoodie wrote: > > configure="${confdir}/configure" > > confver=$(grep -m 1 'GNU Autoconf' ${configure} | cut -d ' ' -f 6) > > + confver_maj=${confver%%.*} > > + confver_min=${confver##*.} > > +

Re: [PATCH cygport v2] autotools.cygclass: correctly detect Autoconf 2.70+

2022-03-14 Thread Jon Turney
On 13/03/2022 20:44, Adam Dinwoodie wrote: configure="${confdir}/configure" confver=$(grep -m 1 'GNU Autoconf' ${configure} | cut -d ' ' -f 6) + confver_maj=${confver%%.*} + confver_min=${confver##*.} + if [ $confver_maj -ne 2 ] + then + error "

[PATCH cygport v2] autotools.cygclass: correctly detect Autoconf 2.70+

2022-03-13 Thread Adam Dinwoodie
The latest version of Autoconf is 2.71, but the version detection incorrectly considers 2.70 and higher as being the same as 2.59 and lower for the purposes of specifying documentation directories. Correct that, and make the version detection a bit more future-proof by parsing out the actual versi