[3476] in Kerberos-V5-bugs

home help back first fref pref prev next nref lref last post

Re: [krbdev.mit.edu #1188] aclocal.m4 should use AC_CONFIG_FILES

daemon@ATHENA.MIT.EDU (Ken Raeburn)
Thu Sep 19 18:36:13 2002

To: rt@krbdev.MIT.EDU
Cc: krb5-prs@mit.edu
From: Ken Raeburn <raeburn@mit.edu>
In-Reply-To: <rt-1188-3053.7.53207029024395@krbdev.mit.edu> ("Ezra Peisach
 via RT"'s message of "Wed, 18 Sep 2002 14:55:51 -0400 (EDT)")
Message-ID: <tx165x1txo7.fsf@mit.edu>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Errors-To: krb5-bugs-admin@mit.edu
Date: Thu, 19 Sep 2002 18:35:52 -0400


Ezra writes:

> The added benefit, is that eventually, we will be able to 
> do something like "./config.status lib/Makefile" and have it
> generate the proper Makefile.

Looks like a win.  Much better than trying to get the right collection
of environment variables to feed to config.status.

>  The only problem is that for the code to generate a single Makefile,
> krb5_pre_in and krb5_post_in cannot be shell variables and must be
> expanded when the configure script is made. I am working on this now.

Here's an idea I've been mulling over recently:

  - Use AC_SUBST_FILE and @foo@ markers in Makefile.in to insert
    lib.in and libobj.in.  (Is the ordering of definitions relative to
    post.in still going to be okay?)

  - Move the configure-substituted definitions from lib.in and
    libobj.in into pre.in or post.in.

I believe that, if we do those, the pre- and post-fragments specified
by the configure script then become constant -- they'd always be
pre.in and post.in and nothing else.

It would also eliminate one of the obstacles to further combining some
of the configure scripts so we can reduce their number, which is why I
was thinking about it in the first place.

I don't know how difficult your current change is going to be, but if
it's a lot of work, you could consider this as an alternative.

> Initially - this change reduces the size of configure by 20-40K depending
> on the number of subdirs having Makefiles output.

Nice!
_______________________________________________
krb5-bugs mailing list
krb5-bugs@mit.edu
http://mailman.mit.edu/mailman/listinfo/krb5-bugs

home help back first fref pref prev next nref lref last post