This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Update OS/2 support, and first-pass general cleanup
[perl5.git] / myconfig
1 #!/bin/sh
2
3 # This script is designed to provide a handy summary of the configuration
4 # information being used to build perl. This is especially useful if you
5 # are requesting help from comp.lang.perl.misc on usenet or via mail.
6
7 if test -f config.sh; then TOP=.;
8 elif test -f ../config.sh; then TOP=..;
9 elif test -f ../../config.sh; then TOP=../..;
10 elif test -f ../../../config.sh; then TOP=../../..;
11 elif test -f ../../../../config.sh; then TOP=../../../..;
12 else
13         echo "Can't find the perl config.sh file produced by Configure"; exit 1
14 fi
15 . $TOP/config.sh
16
17 # Note that the text lines /^Summary of/ .. /^\s*$/ are copied into Config.pm.
18 # XXX Add d_sigaction (?) once it's defined.
19
20 $spitshell <<!GROK!THIS!
21
22 Summary of my $package ($baserev patchlevel $PATCHLEVEL) configuration:
23   Platform:
24     osname=$osname, osver=$osvers, archname=$archname
25     uname='$myuname'
26     hint=$hint, useposix=$useposix 
27   Compiler:
28     cc='$cc', optimize='$optimize', gccversion=$gccversion
29     cppflags='$cppflags'
30     ccflags ='$ccflags'
31     stdchar='$stdchar', d_stdstdio=$d_stdstdio, usevfork=$usevfork
32     voidflags=$voidflags, castflags=$castflags, d_casti32=$d_casti32, d_castneg=$d_castneg
33     intsize=$intsize, alignbytes=$alignbytes, usemymalloc=$usemymalloc, randbits=$randbits
34   Linker and Libraries:
35     ld='$ld', ldflags ='$ldflags'
36     libpth=$libpth
37     libs=$libs
38     libc=$libc, so=$so
39   Dynamic Linking:
40     dlsrc=$dlsrc, dlext=$dlext, d_dlsymun=$d_dlsymun, ccdlflags='$ccdlflags'
41     cccdlflags='$cccdlflags', lddlflags='$lddlflags'
42
43 !GROK!THIS!