| 1 | #!/bin/sh |
| 2 | |
| 3 | case $PERL_CONFIG_SH in |
| 4 | '') |
| 5 | if test -f config.sh; then TOP=.; |
| 6 | elif test -f ../config.sh; then TOP=..; |
| 7 | elif test -f ../../config.sh; then TOP=../..; |
| 8 | elif test -f ../../../config.sh; then TOP=../../..; |
| 9 | elif test -f ../../../../config.sh; then TOP=../../../..; |
| 10 | else |
| 11 | echo "Can't find the perl config.sh file produced by Configure"; |
| 12 | exit 1 |
| 13 | fi |
| 14 | . $TOP/config.sh |
| 15 | ;; |
| 16 | esac |
| 17 | : This forces SH files to create target in same directory as SH file. |
| 18 | : This is so that make depend always knows where to find SH derivatives. |
| 19 | case "$0" in |
| 20 | */*) cd `expr X$0 : 'X\(.*\)/'` ;; |
| 21 | esac |
| 22 | echo "Extracting myconfig (with variable substitutions)" |
| 23 | $spitshell >myconfig <<!GROK!THIS! |
| 24 | $startsh |
| 25 | |
| 26 | # This script is designed to provide a handy summary of the configuration |
| 27 | # information being used to build perl. This is especially useful if you |
| 28 | # are requesting help online or via email. |
| 29 | |
| 30 | # Note that the text lines /^Summary of/ .. /^\s*$/ are copied into Config.pm. |
| 31 | cat <<'!NO!SUBS!' |
| 32 | Summary of my $package (revision $revision $version_patchlevel_string) configuration: |
| 33 | $git_commit_id_title $git_commit_id$git_ancestor_line |
| 34 | Platform: |
| 35 | osname=$osname |
| 36 | osvers=$osvers |
| 37 | archname=$archname |
| 38 | uname='$myuname' |
| 39 | config_args='$config_args' |
| 40 | hint=$hint |
| 41 | useposix=$useposix |
| 42 | d_sigaction=$d_sigaction |
| 43 | useithreads=$useithreads |
| 44 | usemultiplicity=$usemultiplicity |
| 45 | use64bitint=$use64bitint |
| 46 | use64bitall=$use64bitall |
| 47 | uselongdouble=$uselongdouble |
| 48 | usemymalloc=$usemymalloc |
| 49 | default_inc_excludes_dot=$default_inc_excludes_dot |
| 50 | bincompat5005=undef |
| 51 | Compiler: |
| 52 | cc='$cc' |
| 53 | ccflags ='$ccflags' |
| 54 | optimize='$optimize' |
| 55 | cppflags='$cppflags' |
| 56 | ccversion='$ccversion' |
| 57 | gccversion='$gccversion' |
| 58 | gccosandvers='$gccosandvers' |
| 59 | intsize=$intsize |
| 60 | longsize=$longsize |
| 61 | ptrsize=$ptrsize |
| 62 | doublesize=$doublesize |
| 63 | byteorder=$byteorder |
| 64 | doublekind=$doublekind |
| 65 | d_longlong=$d_longlong |
| 66 | longlongsize=$longlongsize |
| 67 | d_longdbl=$d_longdbl |
| 68 | longdblsize=$longdblsize |
| 69 | longdblkind=$longdblkind |
| 70 | ivtype='$ivtype' |
| 71 | ivsize=$ivsize |
| 72 | nvtype='$nvtype' |
| 73 | nvsize=$nvsize |
| 74 | Off_t='$lseektype' |
| 75 | lseeksize=$lseeksize |
| 76 | alignbytes=$alignbytes |
| 77 | prototype=$prototype |
| 78 | Linker and Libraries: |
| 79 | ld='$ld' |
| 80 | ldflags ='$ldflags' |
| 81 | libpth=$libpth |
| 82 | libs=$libs |
| 83 | perllibs=$perllibs |
| 84 | libc=$libc |
| 85 | so=$so |
| 86 | useshrplib=$useshrplib |
| 87 | libperl=$libperl |
| 88 | gnulibc_version='$gnulibc_version' |
| 89 | Dynamic Linking: |
| 90 | dlsrc=$dlsrc |
| 91 | dlext=$dlext |
| 92 | d_dlsymun=$d_dlsymun |
| 93 | ccdlflags='$ccdlflags' |
| 94 | cccdlflags='$cccdlflags' |
| 95 | lddlflags='$lddlflags' |
| 96 | |
| 97 | !NO!SUBS! |
| 98 | !GROK!THIS! |
| 99 | chmod 755 myconfig |
| 100 | $eunicefix myconfig |