[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] Support AC_CONFIG_LIBOBJ_DIR
From: |
Alexandre Duret-Lutz |
Subject: |
Re: [PATCH] Support AC_CONFIG_LIBOBJ_DIR |
Date: |
Mon, 18 Apr 2005 23:50:20 +0200 |
User-agent: |
Gnus/5.110003 (No Gnus v0.3) Emacs/21.3.50 (gnu/linux) |
Hi Gary,
>>> "Gary" == Gary V Vaughan <address@hidden> writes:
Gary> Hallo again,
Gary> It turns out that the automake patch is not enough :-(
Sorry, I think you are misunderstanding the purpose of
AC_CONFIG_LIBOBJ_DIR. But you are breaking common uses of
@LIBOBJS@ while bending it the way you think it should work. Or
maybe I am just misreading your patches. At least I would like
to see a test case proving the converse.
Right now many people use @LIBOBJS@ in lib/Makefile.in, and
expect it to be a list of filenames without leading directories.
AFAICT this has always been like so. Now people are also using
AC_CONFIG_LIBOBJ_DIR because some autoconf checks need to use
these source files to work (the Autoconf manual explains that).
This recently introduced macro is completely independent of how
@LIBOBJS@ is defined.
If the contents of @LIBOBJS@ substituted in lib/Makefile are
prefixed with lib/ then the build rules in lib/Makefile cannot
work.
I do agree that the current @LIBOBJS@ interface lacks some
features. For instance the ability to refer to objects in other
directories (this is more than what you were after: some people
want to use @LIBOBJS@ in src/Makefile.in while the object files
are in lib/, so the object files in @LIBOBJS@ should look like
../lib/foobar.$(OBJEXT)). Or the possibility to the several
@address@hidden variables and not only one (some examples in the
links below). Maybe doing these require a new interface, and
maybe the actual @LIBOBJS@ can be a special case of that new
interface (I know I'm vague :))
Please see
http://sources.redhat.com/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=automake&pr=401
and
http://lists.gnu.org/archive/html/bug-gnulib/2004-12/msg00058.html
and
http://lists.gnu.org/archive/html/bug-gnulib/2005-01/msg00113.html
and the end of
http://sources.redhat.com/automake/automake.html#LIBOBJS
Gary> --- lib/autoconf/general.m4.orig 2003-10-27 11:10:56.000000000 +0000
Gary> +++ lib/autoconf/general.m4 2005-04-18 18:00:20.000000000 +0100
Gary> @@ -1,6 +1,6 @@
Gary> # This file is part of Autoconf. -*- Autoconf -*-
Gary> # Parameterized macros.
Gary> -# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
Gary> +# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
2005,
Gary> # 2002, 2003, Free Software Foundation, Inc.
Oops. (And where does this trailing comma come BTW?)
Gary> # This program is free software; you can redistribute it and/or modify
Gary> @@ -2436,14 +2436,19 @@
Gary> # _AC_LIBOBJS_NORMALIZE
Gary> # ---------------------
Gary> # Clean up LIBOBJS abd LTLIBOBJS so that they work with 1. ac_objext,
abd -> and
--
Alexandre Duret-Lutz
Re: [PATCH] Support AC_CONFIG_LIBOBJ_DIR,
Alexandre Duret-Lutz <=
- Re: [PATCH] Support AC_CONFIG_LIBOBJ_DIR, Gary V. Vaughan, 2005/04/20
- Re: [PATCH] Support AC_CONFIG_LIBOBJ_DIR (fixes PR/401), Gary V. Vaughan, 2005/04/20
- Re: [PATCH] Support AC_CONFIG_LIBOBJ_DIR (fixes PR/401), Paul Eggert, 2005/04/20
- Re: [PATCH] Support AC_CONFIG_LIBOBJ_DIR (fixes PR/401), Alexandre Duret-Lutz, 2005/04/21
- Re: [PATCH] Support AC_CONFIG_LIBOBJ_DIR (fixes PR/401), Gary V. Vaughan, 2005/04/25
- Re: [PATCH] Support AC_CONFIG_LIBOBJ_DIR (fixes PR/401), Alexandre Duret-Lutz, 2005/04/25
- Re: [PATCH] Support AC_CONFIG_LIBOBJ_DIR (fixes PR/401), Gary V. Vaughan, 2005/04/29