Re: [pcre-dev] [PATCH] Generating config.h.generic

Top Page
Delete this message
Author: Daniel Richard G
Date:  
To: pcre-dev
Subject: Re: [pcre-dev] [PATCH] Generating config.h.generic
On Sat, 18 Aug 2012, Philip Hazel wrote:

>> This is a small patch that I've been sitting on for some time. It moves
>> the generation of config.h.generic from the PrepareRelease script to
>> Makefile.am, for consistency with the existing pcre.h.generic rule.
>> Also, it adds a missing backslash to PrepareRelease.
>
> Perhaps I'm being stupid, but I do not understand how the code you have
> put in Makefile.am causes ./configure to run in order to generate a
> default config.h.


The code is invoked when you do "make dist" or "make distcheck" (after
having run ./configure, of course) to generate a distribution tarball.

(Given that config.h.generic is a generated file, and its contents depend
on what's in configure.ac, it makes sense for this file to be produced by
a makefile rule. So you can do "make config.h.generic".)


--Daniel


--
Daniel Richard G. || danielg@??? || Software Developer
Teragram Linguistic Technologies (a division of SAS)
http://www.teragram.com/