Hi,

This is a request for information.  The question is waaaay down
at the bottom.  Sorry.

The only .m4 file I explicitly choose to install is autoopts.m4
for use by autoopts clients to check for proper version and
installation.  Gary wrote the thing years ago and it hasn't
been touched since.  In this bug report:

> -------- Original Message --------
> Subject: [Bug 347095] sys-devel/autogen installs colliding \
>  m4 macros which break random packages
> 
> To comment on this bug, please visit:
> 
> Clear-Text: http://bugs.gentoo.org/show_bug.cgi?id=347095
> Secure: https://bugs.gentoo.org/show_bug.cgi?id=347095

In this comment:
> http://bugs.gentoo.org/show_bug.cgi?id=347095#c29

there is a complaint about stuff installed to /usr/share/aclocal:
> these files are fine as they're "autogen" namespaced and such:
> /usr/share/autogen/autoopts.m4
> /usr/share/aclocal/ag_macros.m4
> /usr/share/aclocal/autoopts.m4
> 
> these dont seem terribly useful, but maybe Bruce knows more:
> /usr/share/aclocal/liboptschk.m4
> /usr/share/aclocal/snprintfv.m4
> 
> these files make no sense ... they're coming from gnulib (which should never 
> be
> installed) or libopts (which is a package all by itself) or colliding with
> standard autoconf macros:
> /usr/share/aclocal/unlocked-io.m4
> /usr/share/aclocal/extensions.m4
> /usr/share/aclocal/libopts.m4

The patch that allows Gentoo to build is:

> --- autogen-5.11.1/config/extensions.m4       2010/12/05 19:19:47     1.1
> +++ autogen-5.11.1/config/extensions.m4       2010/12/05 19:21:43
> @@ -38,7 +38,9 @@ AC_DEFUN_ONCE([AC_USE_SYSTEM_EXTENSIONS]
>  [AC_BEFORE([$0], [AC_COMPILE_IFELSE])dnl
>  AC_BEFORE([$0], [AC_RUN_IFELSE])dnl
>  
> -  AC_REQUIRE([AC_CANONICAL_HOST])
> +  dnl AC_CANONICAL_HOST pulls in AC_CANONICAL_BUILD, which can cause trouble
> +  dnl with some packages - http://bugs.gentoo.org/347095
> +  AC_BEFORE([AC_CANONICAL_HOST], [$0])dnl
>  
>    AC_CHECK_HEADER([minix/config.h], [MINIX=yes], [MINIX=])
>    if test "$MINIX" = yes; then

But this is not my file -- it gets rolled up into the tarball because
I use a macro that it contains.  So, it needs to be distributed,
but the only thing I think I need to install is "autoopts.m4", which
is installed to /usr/share/autogen (yes?).  There are two more m4
files that are installed:

> libopts-33.3.8/m4/liboptschk.m4
> libopts-33.3.8/m4/libopts.m4

but these are installed *inside* the libopts "tear-off library" for
use by package authors (e.g. NTP) who need to ensure that libopts
gets installed when it is not present.

So, the questions:

1. Should these m4 files be installed?
2. If so, why and how can the reported conflicts be averted?
3. If not, where's the magic for suppressing the installation?
4. This Google expression (and several variations) did not yield
   useful information:
   autoconf install "m4 macros|macro" site:gnu.org

_______________________________________________
Autoconf mailing list
Autoconf@gnu.org
http://lists.gnu.org/mailman/listinfo/autoconf

Reply via email to