unofficial mirror of guile-devel@gnu.org 
 help / color / mirror / Atom feed
* Autoconf-like #defines in distributed header file
@ 2002-07-27 16:52 rm
  2002-08-05 11:54 ` Han-Wen Nienhuys
  0 siblings, 1 reply; 3+ messages in thread
From: rm @ 2002-07-27 16:52 UTC (permalink / raw)


Hello list/maintainers,

working on the autoconf-ing of mod_guile i
just realized that the guile build process
(via autogen.sh) uses 'atoheader' to produce 
libguile/scmconfig.h.in which is later processed
by configure to generate libguile/scmconfig.h.
I think this use of autoheader to produce a header 
file that gets distributed might create problems in
situations where libguile is used by other autoconf-
enabled software. If suchsoftware uses its own version
of 'config.h' (which is _not_ supposed to get installed)
like in the following example:

| 
| #include "config.h"
| ...
| #include <libguile.h>
| 
| 

... '#define's from the build phase of libguile leak into the
software's build. '#define PACKAGE_VERSION ""' from scmconfig.h
will override the softwares own version of the value and possibly
introduce errant behaviour if the software uses this value for 
its own version testing.

Fix: probably create scmconfig.h.in maually, avoiding the general
'#define's (or moving them to config.h.in or any similar file that
doesn't get installed).


 Ralf Mattes

_______________________________________________
Guile-devel mailing list
Guile-devel@gnu.org
http://mail.gnu.org/mailman/listinfo/guile-devel


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2002-08-05 16:30 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-07-27 16:52 Autoconf-like #defines in distributed header file rm
2002-08-05 11:54 ` Han-Wen Nienhuys
2002-08-05 16:30   ` Rob Browning

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).