Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 47772 - autoconf incorrectly runs 2.58 if AC_PREREQ(2.12) is in aclocal.m4
Summary: autoconf incorrectly runs 2.58 if AC_PREREQ(2.12) is in aclocal.m4
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-04-13 16:55 UTC by Scott Smith
Modified: 2004-05-27 06:40 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Scott Smith 2004-04-13 16:55:32 UTC
the multiversion autoconf script incorrectly extracts AC_PREREQ from aclocal.m4, (but correctly extracts it from autoconf).

Reproducible: Always
Steps to Reproduce:
1. mkdir foo
2. cd foo
3. autoconf --version
(you should see 2.13)
4. echo 'AC_PREREQ(2.12) > aclocal.m4'
5. autoconf --version
(you should see 2.58)





autoconf 2.58-r1, automake 1.8.3
Comment 1 Scott Smith 2004-04-16 15:51:15 UTC
In addition, the automake wrapper does not correctly scan configure.ac as it does configure.in when trying to determine whether to run aclocal/automake 1.5 or 1.6, and thus misses the AC_PREREQ in configure.ac.
Comment 2 Caleb Tennis (RETIRED) gentoo-dev 2004-05-27 06:22:53 UTC
So it looks to me like the fix for this is to change the ac-wrapper-3.pl to:


|| (cat_('configure.in') =~ /^\s*\[?AC_PREREQ\(\[?([^\)]{3})[^\)]*\]?\)/m ? $1 : '') gt '2.13'
|| (cat_('configure') =~ /^# Generated by Autoconf (\S+)/m ? $1 : '') gt '2.13'
|| (cat_('Makefile.in') =~ /^# Makefile\.in generated by automake (\S+)/ ? $1 : '') ge '1.6'
|| (cat_('aclocal.m4') =~ /^\s*\[?AC_PREREQ\(\[?([^\)]{3}[0-9]?)[^\)]*\]?\)/m ? $1 : '') gt '2.13'))) {


Whereas before it was "gt '2.1'"  ?
Comment 3 Caleb Tennis (RETIRED) gentoo-dev 2004-05-27 06:40:13 UTC
The above change has been committed to ac-wrapper-4 which is used in autoconf-2.59-r4.