helpAutoconf - Support: sr #108503, Running autoscan in a directory...


sr #108503: Running autoscan in a directory with produces conflicting warnings with libtoolize about AC_PROG_RANLIB

Submitter:  Eric Gallager <egallager>
Submitted:  Thu 13 Feb 2014 12:58:01 AM UTC
Votes:  6  
Category:  None Priority:  5 - Normal
Severity:  2 - Minor Status:  Invalid
Privacy:  Public Assigned to:  None
Open/Closed:  Closed Operating System:  Mac OS
* Mandatory Fields

Add a New Comment (Rich Markup)

Comment Type & Canned Response:


Fri 10 Jul 2020 06:56:30 PM UTC, comment #2: 

Filed bug #110261 on Libtool.

Zack Weinberg <zackw>
Project Administrator
Fri 10 Jul 2020 06:42:35 PM UTC, comment #1: 

This is a bug in libtool.m4, not in autoconf.  AC_PROG_RANLIB is not obsolete.  Libtool's internal macro LT_CMD_OLD_ARCHIVE inlines the definition of AC_PROG_RANLIB, but there's no good reason for it to do this.  (Maybe a _very long time ago AC_PROG_RANLIB didn't use AC_CHECK_TOOL?  If so, it would have been before the beginning of the VCS history in 2001, though.)

If I manually change _LT_CMD_OLD_ARCHIVE to do AC_REQUIRE([AC_PROG_RANLIB]) instead of what it does, then autoscan stops suggesting the addition of AC_PROG_RANLIB.

I'll bounce this to the libtool maintainers.

Zack Weinberg <zackw>
Project Administrator
Thu 13 Feb 2014 12:58:01 AM UTC, original submission:  

Let's say that, in an empty directory, I have a file that looks like this:


Then I autoreconf, which puts into the current directory. Now when I run autoscan, it produces the following warnings:

Local-Admins-MacBook-Pro:autoconf_bug_reports_dir localadmin$ autoscan warning: missing AC_PROG_CXX wanted by: warning: missing AC_PROG_INSTALL wanted by: warning: missing AC_PROG_MAKE_SET wanted by: warning: missing AC_PROG_RANLIB wanted by:

So I add these macros to my, and now, when I autoreconf again, it includes this warning:

glibtoolize: `AC_PROG_RANLIB' is rendered obsolete by `LT_INIT'

If I then go and remove AC_PROG_RANLIB, autoscan will then warn about it being missing again the next time I run it, leading to an endless cycle of conflicting warnings. Perhaps autoscan could be modified to just ignore when scanning?

Eric Gallager <egallager>


(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:

No files currently attached


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -email is unavailable- added by zackw (Posted a comment)
  • -email is unavailable- added by egallager (This might actually be libtool's bug)
  • -email is unavailable- added by pho (Voted)
  • -email is unavailable- added by egallager (Voted in favor of this item)
  • -email is unavailable- added by egallager (Submitted the item)
  • -email is unavailable- added by egallager (autoscan --version says he is one of the authors)

    There are 6 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.





    Follow 6 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2020-07-10 zackw StatusNone Invalid
        Open/ClosedOpen Closed
    2016-02-18 egallager Carbon-Copy- Added -email is unavailable-
    2014-02-13 pho Carbon-Copy- Added pho
    2014-02-13 egallager Carbon-Copy- Added egallager
    2014-02-13 egallager Carbon-Copy- Added -email is unavailable-

    Back to the top

    Powered by Savane 3.9