diff options
author | Larry Wall <lwall@netlabs.com> | 1995-03-12 22:32:14 -0800 |
---|---|---|
committer | Larry Wall <lwall@netlabs.com> | 1995-03-12 22:32:14 -0800 |
commit | 748a93069b3d16374a9859d1456065dd3ae11394 (patch) | |
tree | 308ca14de9933a313dceacce8be77db67d9368c7 /configpm | |
parent | fec02dd38faf8f83471b031857d89cb76fea1ca0 (diff) | |
download | perl-748a93069b3d16374a9859d1456065dd3ae11394.tar.gz |
Perl 5.001perl-5.001
[See the Changes file for a list of changes]
Diffstat (limited to 'configpm')
-rwxr-xr-x | configpm | 31 |
1 files changed, 31 insertions, 0 deletions
@@ -95,6 +95,37 @@ sub EXISTS{ sub readonly { die "\%Config::Config is read-only\n" } +sub myconfig { + my($output); + + $output = <<'END'; +Summary of my $package (patchlevel $PATCHLEVEL) configuration: + Platform: + osname=$osname, osver=$osvers, archname=$archname + uname='$myuname' + hint=$hint + Compiler: + cc='$cc', optimize='$optimize' + cppflags='$cppflags' + ccflags ='$ccflags' + ldflags ='$ldflags' + stdchar='$stdchar', d_stdstdio=$d_stdstdio, usevfork=$usevfork + voidflags=$voidflags, castflags=$castflags, d_casti32=$d_casti32, d_castneg=$d_castneg + intsize=$intsize, alignbytes=$alignbytes, usemymalloc=$usemymalloc, randbits=$randbits + Libraries: + so=$so + libpth=$libpth + libs=$libs + libc=$libc + Dynamic Linking: + dlsrc=$dlsrc, dlext=$dlext, d_dlsymun=$d_dlsymun + cccdlflags='$cccdlflags', ccdlflags='$ccdlflags', lddlflags='$lddlflags' + +END + $output =~ s/\$(\w+)/$Config{$1}/ge; + $output; +} + sub STORE { &readonly } sub DELETE{ &readonly } sub CLEAR { &readonly } |