From: rm@fabula.de
Cc: rm@fabula.de, Han-Wen Nienhuys <hanwen@cs.uu.nl>,
Dirk Herrmann <dirk@sallust.ida.ing.tu-bs.de>,
guile-devel@gnu.org
Subject: Re: Release Guile, now ;-) [was:] Re: GC rewrite, first version.
Date: Fri, 2 Aug 2002 11:35:47 +0200 [thread overview]
Message-ID: <20020802093547.GA8943@www> (raw)
In-Reply-To: <871y9i8aow.fsf@raven.i.defaultvalue.org>
Hi Rob,
I feel sorry seeing that my complaints cause such a lot of trouble.
On Thu, Aug 01, 2002 at 05:40:31PM -0500, Rob Browning wrote:
> Rob Browning <rlb@defaultvalue.org> writes:
>
> > 1.5.7 was ready to go. However since I'm waiting to upload anyway
> > I'll go see how extensive the changes to fix it might be.
>
> OK, after looking in to it, it seems like we probably need a number of
> changes to get things "right". One of the main questions is how do
> you generate a header that can be included in the install tree
> containing info based on configure's results, but doesn't refer to any
> of those results (at least not to the generic names).
Hmm, i don't understand this. The offending header file is not generated
by 'autoheader', it's processed by 'configure'. Instead of writing a custom
c program that emits all needed #defines wouldn't it be sufficient to
create scmconfig.h.in by hand?
> After poking
> around a bit I propose the following solution:
>
> * change our configure generated header to be config.h via
> config.h.in as per the normal autoconf expectations and put it in
> the normal place ./config.h.in. This will now be a completely
> private header, not installed, and not included by anything but .c
> files.
Good idea, IMHO.
> [...]
> * add a rule to libguile/Makefile.am like this:
>
> scmconfig.h: ${builddir}/scmconfig-generate
> ${builddir}/scmconfig-generate > scmconfig.h.tmp
> mv scmconfig.h.tmp scmconfig.h
>
> * write libguile/scmconfig-generate.c to use the values in
> <config.h> to generate a config.h independent header like this:
>
> #include <config.h>
> #include <stdio.h>
>
> int
> main (int argc, char *argv[])
> {
> printf(
> [...]
> This allows us to autogenerate the file from the contents of
> config.h without having to do anything too fancy with
> sed/config.status, etc.
>
> * go through and add items to scmconfig-generate.c as needed, but
> leave as much as possible in <config.h> -- where it'll be private.
> For example, I'm guessing that most of the HAVE_FOO macros won't
> be public, and the ones that must be public (i.e. in scmconfig.h)
> should be renamed to SCM_HAVE_FOO, or similar.
But if you want to select the values you want/need to export anyway,
why not use the autoconf machinery for that. Instead of putting these
values as string constants into a C program might as well have:
*----------------------------------------------------------------------
|
| dnl file: public_defines.ac
| dnl This files describes the #defines detected
| dnl during libguile's build process that need to
| dnl be visible to users of the library.
|
| AC_PREREQ(2.53)
| AC_INIT
|
| AM_CONFIG_HEADER(libguile/scmconfig.h)
|
| AC_DEFINE(GUILE_DEBUG_FREELIST, 1,
| [Define this if you want to debug the free list (helps w/ GC bugs).])
| AC_DEFINE(GUILE ......
|
and then have it processed by autoheader with an invocation like this:
autoheader public_defines.ac
that's all that's needed, as far as i understand.
>
> But this looks like a non-trivial amount of work. I've already done
> all the steps but the last in a test tree, but that's the big one.
> So the question is, does this have to be done before 1.6.1?
May i offer my help?
Ralf Mattes
_______________________________________________
Guile-devel mailing list
Guile-devel@gnu.org
http://mail.gnu.org/mailman/listinfo/guile-devel
next prev parent reply other threads:[~2002-08-02 9:35 UTC|newest]
Thread overview: 31+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-07-27 22:54 GC rewrite, first version Han-Wen
2002-07-28 16:40 ` Rob Browning
2002-07-29 20:11 ` Dirk Herrmann
2002-07-29 21:04 ` Rob Browning
2002-07-29 22:05 ` Han-Wen
2002-07-31 17:03 ` Dirk Herrmann
2002-07-31 18:02 ` Han-Wen Nienhuys
2002-07-31 21:15 ` Rob Browning
2002-08-01 9:20 ` Release Guile, now ;-) [was:] " rm
2002-08-01 16:27 ` Rob Browning
2002-08-01 16:44 ` rm
2002-08-01 18:37 ` Sergey Poznyakoff
2002-08-01 22:21 ` Rob Browning
2002-08-02 6:09 ` Sergey Poznyakoff
2002-08-02 14:36 ` Rob Browning
2002-08-02 17:29 ` Sergey Poznyakoff
2002-08-02 18:10 ` Bruce Korb
2002-08-02 19:50 ` Rob Browning
2002-08-03 7:13 ` Sergey Poznyakoff
2002-08-04 20:43 ` Bruce Korb
2002-08-04 20:57 ` Sergey Poznyakoff
2002-08-01 22:40 ` Rob Browning
2002-08-02 9:35 ` rm [this message]
2002-08-02 11:59 ` rm
2002-08-02 15:00 ` Rob Browning
2002-08-02 14:50 ` Rob Browning
2002-08-01 9:59 ` Han-Wen Nienhuys
2002-08-01 8:46 ` Marius Vollmer
2002-07-31 18:46 ` Neil Jerram
2002-08-01 9:58 ` Han-Wen Nienhuys
2002-07-28 16:51 ` Michael Livshin
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/guile/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20020802093547.GA8943@www \
--to=rm@fabula.de \
--cc=dirk@sallust.ida.ing.tu-bs.de \
--cc=guile-devel@gnu.org \
--cc=hanwen@cs.uu.nl \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).