4 # Check that the various config.sh-clones have (at least) all the
5 # same symbols as the top-level config_h.SH so that the (potentially)
6 # needed symbols are not lagging after how Configure thinks the world
9 # VMS is probably not handled properly here, due to their own
10 # rather elaborate DCL scripting.
15 my $MASTER_CFG = "config_h.SH";
19 # This list contains both 5.8.x and 5.9.x files,
20 # we check from MANIFEST whether they are expected to be present.
21 "Cross/config.sh-arm-linux",
26 "plan9/config_sh.sample",
27 "vos/config.alpha.def",
39 if (open(my $fh, $fn)) {
45 die "$0: Failed to open '$fn' for reading: $!\n";
49 sub config_h_SH_reader {
52 return if 1../^echo \"Extracting \$CONFIG_H/;
53 while (/[^\\]\$(\w+)/g) {
55 next if $v =~ /^(CONFIG_H|CONFIG_SH)$/;
61 read_file($MASTER_CFG,
62 config_h_SH_reader(\%MASTER_CFG));
68 $MANIFEST{$1}++ if /^(.+?)\t/;
71 my @MASTER_CFG = sort keys %MASTER_CFG;
75 for my $v (@MASTER_CFG) {
76 print "$fn: missing '$v'\n" unless exists $cfg->{$v};
81 unless (exists $MANIFEST{$cfg}) {
82 print "[skipping not-expected '$cfg']\n";
88 return if /^\#/ || /^\s*$/;
89 return if $cfg eq 'configure.com' &&
90 ! /^\$\s+WC "(\w+)='(.*)'"$/;
93 # $foo='bar' # VOS 5.8.x specialty
94 # $foo=bar # VOS 5.8.x specialty
95 if (/^\$?(\w+)='(.*)'$/) {
98 elsif (/^\$?(\w+)=(.*)$/) {
101 elsif (/^\$\s+WC "(\w+)='(.*)'"$/) {
107 check_cfg($cfg, \%cfg);