From: Rafael Garcia-Suarez Date: Fri, 26 Jan 2007 18:28:42 +0000 (+0000) Subject: cflags.SH was broken: it was compiling a C file for testing available X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=6ef8aa7c9cfbc9b6bc5d5b07d6e1506e3058b4aa;p=p5sagit%2Fp5-mst-13.2.git cflags.SH was broken: it was compiling a C file for testing available command-line options, but this C file was including perl.h, which in turn includes config.h, which might not be present at that time. So force the generation of config.h. p4raw-id: //depot/perl@30019 --- diff --git a/cflags.SH b/cflags.SH index a52c850..62d19d6 100755 --- a/cflags.SH +++ b/cflags.SH @@ -17,6 +17,10 @@ case "$0" in */*) cd `expr X$0 : 'X\(.*\)/'` ;; esac +if ! test -f config.h; then + . ./config_h.SH +fi + warn='' # Add -Wall for the core modules iff gcc and not already -Wall