From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: rm@fabula.de Newsgroups: gmane.lisp.guile.devel Subject: Autoconf-like #defines in distributed header file Date: Sat, 27 Jul 2002 18:52:58 +0200 Sender: guile-devel-admin@gnu.org Message-ID: <20020727165258.GA27310@www> NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1027788166 7030 127.0.0.1 (27 Jul 2002 16:42:46 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sat, 27 Jul 2002 16:42:46 +0000 (UTC) Return-path: Original-Received: from fencepost.gnu.org ([199.232.76.164]) by main.gmane.org with esmtp (Exim 3.33 #1 (Debian)) id 17YUeS-0001pH-00 for ; Sat, 27 Jul 2002 18:42:44 +0200 Original-Received: from localhost ([127.0.0.1] helo=fencepost.gnu.org) by fencepost.gnu.org with esmtp (Exim 3.35 #1 (Debian)) id 17YUem-0003q8-00; Sat, 27 Jul 2002 12:43:04 -0400 Original-Received: from www.elogos.de ([212.18.192.92]) by fencepost.gnu.org with smtp (Exim 3.35 #1 (Debian)) id 17YUdp-0003pk-00 for ; Sat, 27 Jul 2002 12:42:05 -0400 Original-Received: by www.elogos.de (Postfix, from userid 5001) id 2195110499E; Sat, 27 Jul 2002 18:52:58 +0200 (CEST) Original-To: guile-devel@gnu.org Content-Disposition: inline User-Agent: Mutt/1.3.24i Errors-To: guile-devel-admin@gnu.org X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.0.11 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Developers list for Guile, the GNU extensibility library List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.lisp.guile.devel:865 X-Report-Spam: http://spam.gmane.org/gmane.lisp.guile.devel:865 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 | | ... '#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