On Sun, 19 Aug 2012, Daniel Richard G. wrote:
> Yes, but the configure script that gets those arguments is the
> temporarily-present ./pcre-X.YY/configure, for checking purposes, not
> ./configure. It is the latter that determines the content of config.h.generic,
> not the former.
>
> Or, to put it another way: The tarball produced by "make distcheck" is
> identical to the one produced by "make dist", yet the latter target does not
> use DISTCHECK_CONFIGURE_FLAGS.
>
> Please give the patch a try. There should not be any differences in the
> generated file.
I tried it. I applied your patch to Makefile.am, ran ./autogen.sh, then
ran "make dist". I'm afraid there are differences. I got a
pcre.h.generic that had all the settings for "make distcheck", which was
very different to the version that is distributed in the 8.31 tarball. I
was expecting this, because when I ran "make dist" I saw a PCRE
configuration that had all those settings, even though I wasn't running
"distcheck".