bug-autoconf
[Top][All Lists]
Advanced

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

[sr #110397] autoconf 2.70: autotest.m4 error


From: Zack Weinberg
Subject: [sr #110397] autoconf 2.70: autotest.m4 error
Date: Sun, 13 Dec 2020 20:06:00 -0500 (EST)
User-agent: Mozilla/5.0 (X11; Linux aarch64; rv:83.0) Gecko/20100101 Firefox/83.0

Follow-up Comment #12, sr #110397 (project autoconf):

First off, yes, automake should change its test to read something like


AC_INIT([smoketest], [1])
AC_OUTPUT


(Calling `AC_INIT` with no arguments is also deprecated.)

However, something else is wrong as well -- I have a bad feeling that this may
affect any diagnostic emitted by autoconf.  What happens if you run autoconf
2.70 on _this_ test file?


AC_INIT([test], [1])
AC_USG
AC_OUTPUT


You ought to get output more or less like this:


conftest.ac:2: warning: The macro `AC_USG' is obsolete.
conftest.ac:2: You should run autoupdate.
../lib/autoconf/headers.m4:822: AC_USG is expanded from...
conftest.ac:2: the top level


It would also be interesting to know what this command prints:


m4 --nesting-limit=1024 --gnu --include=$PREFIX/share/autoconf \
   --debug=aflq --fatal-warning --trace=_m4_warn \
   --reload-state=$PREFIX/share/autoconf/autoconf.m4f \
   $PREFIX/share/autoconf/trailer.m4 conftest.ac > /dev/null


where $PREFIX is the installation prefix.  It _ought_ to print something like
this:


m4trace:conftest.ac:2: -1- _m4_warn([obsolete], [The macro `AC_USG' is
obsolete.
You should run autoupdate.], [../lib/autoconf/headers.m4:822: AC_USG is
expanded from...
conftest.ac:2: the top level])


    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/support/?110397>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

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