On 10/10/10 09:11, Bruno Haible wrote: > Bruce Korb wrote: >> Whether you use one file or multiple, it is still useful to >> *not* construct the thing where your template sources live. >> Since the AC_INIT macro clearly must be auto-edited, you >> must construe these files to be templates ... > > That means a configure.ac.in? Nah, that's overkill.
Since when is this stuff not about overkill? :-D > You can have a > version number generated through a shell script (although, admittedly, > autoconf does not make it easy). See how GNU gettext does it. For many reasons (not the least of which being "let's blow everything away and start over" recovery method), it is still better to create the project in a directory separate from the original file(s). Given that, and given that you must not auto-edit original files, and given the obscurity of the gl_INIT_PACKAGE([gettext], [$VERSION_NUMBER]) wizardry, and add to that the fact it is generally better to follow recommended practices so others have good templates to follow, my plan is to sed the source file, replacing the version. It will make it easier to comprehend the resultant project, too. The template can be stored either in the bootstrap script or in a file named configure.ac or whatever else you like. RE: memory leak: Bruce Korb wrote: > > Here are my "make distcheck" results: > > > > [...] > > FAIL: test-dprintf-posix2.sh > > [...] > > FAIL: test-fprintf-posix3.sh > > [...] This indicates a memory leak in dprintf and fprintf. On which platform is this, and which libc version? $ cat /etc/*elease ; /lib64/libc.so.6 openSUSE 11.3 (x86_64) VERSION = 11.3 LSB_VERSION="core-2.0-noarch:core-3.2-noarch:core-4.0-noarch:core-2.0-x86_64:core-3.2-x86_64:core-4.0-x86_64" GNU C Library stable release version 2.11.2 (20100531), by Roland McGrath et al. Copyright (C) 2009 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Configured for x86_64-suse-linux. Compiled by GNU CC version 4.5.0 20100604 [gcc-4_5-branch revision 160292]. Compiled on a Linux 2.6.32 system on 2010-07-19. Available extensions: crypt add-on version 2.1 by Michael Glad and others GNU Libidn by Simon Josefsson Native POSIX Threads Library by Ulrich Drepper et al BIND-8.2.3-T5B For bug reporting instructions, please see: <http://www.gnu.org/software/libc/bugs.html>.