perl
view release on metacpan or search on metacpan
submit=''
tail=''
tar=''
tbl=''
tee=''
test=''
touch=''
tr=''
troff=''
uname=''
uniq=''
uuname=''
vi=''
zcat=''
zip=''
full_ar=''
full_sed=''
libswanted=''
hint=''
myuname=''
osname=''
osvers=''
Author=''
Date=''
Header=''
Id=''
Locker=''
Log=''
RCSfile=''
Revision=''
Source=''
State=''
sysroot=''
_a=''
_exe=''
_o=''
archobjs=''
exe_ext=''
firstmakefile=''
lib_ext=''
obj_ext=''
path_sep=''
rm_try=''
afs=''
afsroot=''
alignbytes=''
archlib=''
archlibexp=''
d_archlib=''
installarchlib=''
archname=''
myarchname=''
useversionedarchname=''
d_atolf=''
d_atoll=''
baserev=''
bin=''
binexp=''
initialinstalllocation=''
installbin=''
userelocatableinc=''
byteorder=''
cc=''
ccflags=''
cppflags=''
ldflags=''
lkflags=''
locincpth=''
optimize=''
cf_email=''
cf_by=''
cf_time=''
charbits=''
charsize=''
compiler_warning=''
contains=''
cpp_stuff=''
cpplast=''
cppminus=''
cpprun=''
cppstdin=''
d__fwalk=''
d_accept4=''
d_access=''
d_accessx=''
d_acosh=''
d_aintl=''
d_alarm=''
asctime_r_proto=''
d_asctime_r=''
d_asinh=''
d_atanh=''
d_attribute_always_inline=''
d_attribute_deprecated=''
d_attribute_format=''
d_attribute_malloc=''
d_attribute_nonnull=''
d_attribute_noreturn=''
d_attribute_pure=''
d_attribute_unused=''
d_attribute_visibility=''
d_attribute_warn_unused_result=''
d_printf_format_null=''
d_backtrace=''
d_non_int_bitfields=''
d_builtin_choose_expr=''
d_builtin_expect=''
d_builtin_add_overflow=''
d_builtin_mul_overflow=''
d_builtin_sub_overflow=''
d_c99_variadic_macros=''
d_casti32=''
castflags=''
d_castneg=''
d_cbrt=''
d_chown=''
d_chroot=''
d_chsize=''
d_class=''
d_clearenv=''
d_closedir=''
fi
: set the prefixit variable, to compute a suitable default value
prefixit='case "$3" in
""|none)
case "$oldprefix" in
"") eval "$1=\"\$$2\"";;
*)
case "$3" in
"") eval "$1=";;
none)
eval "tp=\"\$$2\"";
case "$tp" in
""|" "|none) eval "$1=\"\$$2\"";;
*) eval "$1=";;
esac;;
esac;;
esac;;
*)
eval "tp=\"$oldprefix-\$$2-\""; eval "tp=\"$tp\"";
case "$tp" in
--|/*--|\~*--) eval "$1=\"$prefix/$3\"";;
/*-$oldprefix/*|\~*-$oldprefix/*)
eval "$1=\`echo \$$2 | sed \"s,^$oldprefix,$prefix,\"\`";;
*) eval "$1=\"\$$2\"";;
esac;;
esac'
: determine installation style
: For now, try to deduce it from prefix unless it is already set.
: Reproduce behavior of 5.005 and earlier, maybe drop that in 5.7.
case "$installstyle" in
'') case "$prefix" in
*perl*) dflt='lib';;
*) dflt='lib/perl5' ;;
esac
;;
*) dflt="$installstyle" ;;
esac
: Probably not worth prompting for this since we prompt for all
: the directories individually, and the prompt would be too long and
: confusing anyway.
installstyle=$dflt
: determine where public executables go
echo " "
set dflt bin bin
eval $prefixit
fn=d~
rp='Pathname where the public executables will reside?'
. ./getfile
if $test "X$ansexp" != "X$binexp"; then
installbin=''
fi
prefixvar=bin
: XXX Bug? -- ignores Configure -Dinstallprefix setting.
: XXX If this is fixed, also fix the "start perl" hunk below, which relies on
: this via initialinstalllocation
. ./setprefixvar
case "$userelocatableinc" in
$define|true|[yY]*) dflt='y' ;;
*) dflt='n' ;;
esac
cat <<EOM
Would you like to build Perl so that the installation is relocatable, so that
library paths in @INC are determined relative to the path of the perl binary?
This is not advised for system Perl installs, or if you need to run setid
scripts or scripts under taint mode.
If this doesn't make any sense to you, just accept the default '$dflt'.
EOM
rp='Use relocatable @INC?'
. ./myread
case "$ans" in
y|Y) val="$define" ;;
*) val="$undef" ;;
esac
set userelocatableinc
eval $setvar
initialinstalllocation="$binexp"
: Default prefix is now "up one level from where the binaries are"
case "$userelocatableinc" in
$define|true|[yY]*)
bin=".../"
binexp=".../"
prefix=".../.."
prefixexp=".../.."
installprefixexp=".../.."
;;
esac
: determine where private library files go
: Usual default is /usr/local/lib/perl5/$version.
: Also allow things like /opt/perl/lib/$version, since
: /opt/perl/lib/perl5... would be redundant.
: The default "style" setting is made in installstyle.U
case "$installstyle" in
*lib/perl5*) set dflt privlib lib/$package/$version ;;
*) set dflt privlib lib/$version ;;
esac
eval $prefixit
$cat <<EOM
There are some auxiliary files for $package that need to be put into a
private library directory that is accessible by everyone.
EOM
fn=$binexp
fn=d~+
rp='Pathname where the private library files will reside?'
. ./getfile
prefixvar=privlib
. ./setprefixvar
: set the prefixup variable, to restore leading tilda escape
prefixup='case "$prefixexp" in
"$prefix") ;;
*) eval "$1=\`echo \$$1 | sed \"s,^$prefixexp,$prefix,\"\`";;
esac'
: determine where public architecture dependent libraries go
set archlib archlib
eval $prefixit
: privlib default is /usr/local/lib/$package/$version
: archlib default is /usr/local/lib/$package/$version/$archname
: privlib may have an optional trailing /share.
tdflt=`echo $privlib | $sed 's,/share$,,'`
tdflt=$tdflt/$archname
case "$archlib" in
'') dflt=$tdflt
;;
*) dflt="$archlib"
;;
esac
$cat <<EOM
$spackage contains architecture-dependent library files. If you are
sharing libraries in a heterogeneous environment, you might store
these files in a separate location. Otherwise, you can just include
them with the rest of the public library files.
EOM
$ldflags $lddlflags -o a.out try.c \
-Wl,--version-script=try.h >/dev/null 2>&1 \
&& $test -s a.out ; then
echo "ld supports scripting" >&4
ld_can_script="$define"
else
echo "ld does not support scripting" >&4
fi
$rm_try
;;
esac
: Do we want a shared libperl?
also=''
case "$usedl" in
$undef)
# No dynamic loading being used, so don't bother even to prompt.
useshrplib='false'
;;
*) case "$useshrplib" in
'') case "$osname" in
svr4*|nonstopux|dgux|dynixptx|esix|powerux|haiku|cygwin*)
dflt=y
also='Building a shared libperl is required for dynamic loading to work on your system.'
;;
*) dflt=n
;;
esac
;;
$define|true|[Yy]*)
dflt=y
;;
*) dflt=n
;;
esac
$cat << EOM
The perl executable is normally obtained by linking perlmain.c with
libperl${_a}, any static extensions (usually just DynaLoader), and
any other libraries needed on this system (such as -lm, etc.). Since
your system supports dynamic loading, it is probably possible to build
a shared libperl.$so. If you will have more than one executable linked
to libperl.$so, this will significantly reduce the size of each
executable, but it may have a noticeable effect on performance. The
default is probably sensible for your system.
$also
EOM
rp="Build a shared libperl.$so (y/n)"
. ./myread
case "$ans" in
true|$define|[Yy]*)
useshrplib='true' ;;
*) useshrplib='false' ;;
esac
;;
esac
case "$useshrplib" in
true)
case "$userelocatableinc" in
true|define)
echo "Cannot build with both -Duserelocatableinc and -Duseshrplib" >&4
echo "See INSTALL for an explanation why that won't work." >&4
exit 4
;;
esac
case "$libperl" in
'')
# Figure out a good name for libperl.so. Since it gets stored in
# a version-specific architecture-dependent library, the version
# number isn't really that important, except for making cc/ld happy.
#
# A name such as libperl.so.10.1
majmin="libperl.$so.$patchlevel.$subversion"
# A name such as libperl.so.100
majonly=`echo $patchlevel $subversion |
$awk '{printf "%d%02d", $1, $2}'`
majonly=libperl.$so.$majonly
# I'd prefer to keep the os-specific stuff here to a minimum, and
# rely on figuring it out from the naming of libc.
case "${osname}${osvers}" in
*linux*|gnu*) # ld won't link with a bare -lperl otherwise.
dflt=libperl.$so
;;
cygwin*) # ld links now against the dll directly
majmin="cygperl5_${patchlevel}_${subversion}.${so}"
majonly=`echo $patchlevel $subversion |
$awk '{printf "%03d%03d", $1, $2}'`
majonly=cygperl5.$majonly.$so
dflt=$majmin
;;
*) # Try to guess based on whether libc has major.minor.
case "$libc" in
*libc.$so.[0-9]*.[0-9]*) dflt=$majmin ;;
*libc.$so.[0-9]*) dflt=$majonly ;;
*) dflt=libperl.$so ;;
esac
;;
esac
;;
*) dflt=$libperl
;;
esac
cat << EOM
I need to select a good name for the shared libperl. If your system uses
library names with major and minor numbers, then you might want something
like $majmin. Alternatively, if your system uses a single version
number for shared libraries, then you might want to use $majonly.
Or, your system might be quite happy with a simple libperl.$so.
Since the shared libperl will get installed into a version-specific
architecture-dependent directory, the version number of the shared perl
library probably isn't important, so the default should be o.k.
EOM
rp='What name do you want to give to the shared libperl?'
. ./myread
libperl=$ans
echo "Ok, I'll use $libperl"
;;
*)
case "$fastread" in
yes) dflt=y ;;
*) dflt=n ;;
esac
. ./myread
case "$ans" in
y*) cont='' ;;
*) echo " " ;;
esac
;;
esac
done
: Ask e-mail of administrator
$cat <<EOM
If you or somebody else will be maintaining perl at your site, please
fill in the correct e-mail address here so that they may be contacted
if necessary. You may enter "none" for no administrator.
EOM
case "$perladmin" in
'') dflt="$cf_email";;
*) dflt="$perladmin";;
esac
rp='Perl administrator e-mail address'
. ./myread
perladmin="$ans"
: determine whether to use a version number suffix for installed binaries
echo " "
$cat <<EOM
Do you want to use a version number suffix for installed binaries? This
will install 'perl$version' instead of 'perl', and likewise for other
binaries like 'perldoc' and 'cpan'. This allows many versions of perl
to be installed side-by-side. Unless you are a developer, you probably
do *not* want to do this.
EOM
case "$versiononly" in
"$define"|[Yy]*|true) dflt='y' ;;
*) dflt='n';
esac
rp="Do you want to use a version number suffix for installed binaries?"
. ./myread
case "$ans" in
[yY]*) val="$define";;
*) val="$undef" ;;
esac
set versiononly
eval $setvar
case "$versiononly" in
"$define") inc_version_list=''
inc_version_list_init=0
;;
esac
: figure out how to guarantee perl startup
: XXX Note that this currently takes advantage of the bug that binexp ignores
: the Configure -Dinstallprefix setting, which in turn means that under
: relocatable @INC, initialinstalllocation is what binexp started as.
case "$startperl" in
'')
case "$sharpbang" in
*!)
$cat <<EOH
I can use the #! construct to start perl on your system. This will
make startup of perl scripts faster, but may cause problems if you
want to share those scripts and perl is not in a standard place
($initialinstalllocation/perl) on all your platforms. The alternative
is to force a shell by starting the script with a single ':' character.
EOH
case "$versiononly" in
"$define") dflt="$initialinstalllocation/perl$version";;
*) dflt="$initialinstalllocation/perl";;
esac
rp='What shall I put after the #! to start up perl ("none" to not use #!)?'
. ./myread
case "$ans" in
none) startperl=": # use perl";;
*) startperl="#!$ans"
if $test 30 -lt `echo "$ans" | wc -c`; then
$cat >&4 <<EOM
WARNING: Some systems limit the #! command to 32 characters.
If you experience difficulty running Perl scripts with #!, try
installing Perl in a directory with a shorter pathname.
EOM
fi ;;
esac
;;
*) startperl=": # use perl"
;;
esac
;;
esac
echo "I'll use $startperl to start perl scripts."
: figure best path for perl in scripts
case "$perlpath" in
'')
case "$versiononly" in
"$define") perlpath="$initialinstalllocation/perl$version";;
*) perlpath="$initialinstalllocation/perl";;
esac
case "$startperl" in
*!*) ;;
*)
$cat <<EOH
I will use the "eval 'exec'" idiom to start Perl on your system.
I can use the full path of your Perl binary for this purpose, but
doing so may cause problems if you want to share those scripts and
Perl is not always in a standard place ($initialinstalllocation/perl).
EOH
dflt="$initialinstalllocation/perl"
rp="What path shall I use in \"eval 'exec'\"?"
targethost='$targethost'
targetmkdir='$targetmkdir'
targetport='$targetport'
targetsh='$targetsh'
tbl='$tbl'
tee='$tee'
test='$test'
timeincl='$timeincl'
timetype='$timetype'
tmpnam_r_proto='$tmpnam_r_proto'
to='$to'
touch='$touch'
tr='$tr'
trnl='$trnl'
troff='$troff'
ttyname_r_proto='$ttyname_r_proto'
u16size='$u16size'
u16type='$u16type'
u32XUformat='$u32XUformat'
u32oformat='$u32oformat'
u32size='$u32size'
u32type='$u32type'
u32uformat='$u32uformat'
u32xformat='$u32xformat'
u64size='$u64size'
u64type='$u64type'
u8size='$u8size'
u8type='$u8type'
uidformat='$uidformat'
uidsign='$uidsign'
uidsize='$uidsize'
uidtype='$uidtype'
uname='$uname'
uniq='$uniq'
uquadtype='$uquadtype'
use64bitall='$use64bitall'
use64bitint='$use64bitint'
usecbacktrace='$usecbacktrace'
usecrosscompile='$usecrosscompile'
usedefaultstrict='$usedefaultstrict'
usedevel='$usedevel'
usedl='$usedl'
usedtrace='$usedtrace'
usefaststdio='$usefaststdio'
useithreads='$useithreads'
usekernprocpathname='$usekernprocpathname'
uselanginfo='$uselanginfo'
uselargefiles='$uselargefiles'
uselongdouble='$uselongdouble'
usemallocwrap='$usemallocwrap'
usemorebits='$usemorebits'
usemultiplicity='$usemultiplicity'
usemymalloc='$usemymalloc'
usenm='$usenm'
usensgetexecutablepath='$usensgetexecutablepath'
useopcode='$useopcode'
useperlio='$useperlio'
useposix='$useposix'
usequadmath='$usequadmath'
usereentrant='$usereentrant'
userelocatableinc='$userelocatableinc'
useshrplib='$useshrplib'
usesitecustomize='$usesitecustomize'
usesocks='$usesocks'
usethreads='$usethreads'
usevendorprefix='$usevendorprefix'
useversionedarchname='$useversionedarchname'
usevfork='$usevfork'
usrinc='$usrinc'
uuname='$uuname'
uvXUformat='$uvXUformat'
uvoformat='$uvoformat'
uvsize='$uvsize'
uvtype='$uvtype'
uvuformat='$uvuformat'
uvxformat='$uvxformat'
vendorarch='$vendorarch'
vendorarchexp='$vendorarchexp'
vendorbin='$vendorbin'
vendorbinexp='$vendorbinexp'
vendorhtml1dir='$vendorhtml1dir'
vendorhtml1direxp='$vendorhtml1direxp'
vendorhtml3dir='$vendorhtml3dir'
vendorhtml3direxp='$vendorhtml3direxp'
vendorlib='$vendorlib'
vendorlib_stem='$vendorlib_stem'
vendorlibexp='$vendorlibexp'
vendorman1dir='$vendorman1dir'
vendorman1direxp='$vendorman1direxp'
vendorman3dir='$vendorman3dir'
vendorman3direxp='$vendorman3direxp'
vendorprefix='$vendorprefix'
vendorprefixexp='$vendorprefixexp'
vendorscript='$vendorscript'
vendorscriptexp='$vendorscriptexp'
version='$version'
version_patchlevel_string='$version_patchlevel_string'
versiononly='$versiononly'
vi='$vi'
xlibpth='$xlibpth'
xlocale_needed='$xlocale_needed'
yacc='$yacc'
yaccflags='$yaccflags'
zcat='$zcat'
zip='$zip'
EOT
: add special variables
$test -f $src/patchlevel.h && \
awk '/^#define[ ]+PERL_/ {printf "%s=%s\n",$2,$3}' $src/patchlevel.h >>config.sh
echo "PERL_PATCHLEVEL='$perl_patchlevel'" >>config.sh
echo "PERL_CONFIG_SH=true" >>config.sh
: propagate old symbols
if $test -f UU/config.sh; then
<UU/config.sh $sort | $uniq >UU/oldconfig.sh
$sed -n 's/^\([a-zA-Z_0-9]*\)=.*/\1/p' \
config.sh config.sh UU/oldconfig.sh |\
$sort | $uniq -u >UU/oldsyms
set X `$cat UU/oldsyms`
shift
( run in 1.165 second using v1.01-cache-2.11-cpan-5511b514fd6 )