summaryrefslogtreecommitdiff
path: root/cflags.SH
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgarciasuarez@gmail.com>2007-01-26 18:28:42 +0000
committerRafael Garcia-Suarez <rgarciasuarez@gmail.com>2007-01-26 18:28:42 +0000
commit6ef8aa7c9cfbc9b6bc5d5b07d6e1506e3058b4aa (patch)
tree57cf5bfed12af50f8bd79ff2f0be8e665df779ad /cflags.SH
parent52944de88edafadedb887e82afd3ce438ba96487 (diff)
downloadperl-6ef8aa7c9cfbc9b6bc5d5b07d6e1506e3058b4aa.tar.gz
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
Diffstat (limited to 'cflags.SH')
-rwxr-xr-xcflags.SH4
1 files changed, 4 insertions, 0 deletions
diff --git a/cflags.SH b/cflags.SH
index a52c850527..62d19d635d 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