From a399e8e8e1566dcfdd67566b4bcda736d995cba1 Mon Sep 17 00:00:00 2001 From: James E Keenan Date: Sat, 4 May 2024 08:15:36 -0400 Subject: [PATCH] Makefile.PL: debugging code Display the directories where the program will look for header files, then list the files found in those directories. --- Makefile.PL | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Makefile.PL b/Makefile.PL index 6ace18bb..73b44b78 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -74,8 +74,16 @@ push @h_dirs, split ' ', $Config{libsdirs}; push @h_dirs, qw(/include /usr/include /usr/local/include /usr/include/mach); @h_dirs = grep { -d $_ } @h_dirs; +print STDERR '@h_dirs:', "\n"; +print STDERR " $_\n" for @h_dirs; + $h_files = find_h_files(@h_dirs); +print STDERR '$h_files:', "\n"; +for (sort keys %$h_files) { + printf STDERR " %-24s%s\n" => ($_, $h_files->{$_}); +} + # See lib/ExtUtils/MakeMaker.pm for details of how to influence # the contents of the Makefile that is written. my %mm_opts;