?C:.
?H:#$multiarch MULTIARCH /**/
?H:.
+: Check if is a multiplatform env
case "$osname" in
next|rhapsody|darwin) multiarch="$define" ;;
esac
?H:.
?LINT:set quadtype
?LINT:set uquadtype
-
+: Check if 64bit ints have a quad type
echo " "
echo "Checking which 64-bit integer type we could use..." >&4
?X: We prefer quad types in order of int, long, long long, int64_t.
?LINT:define csym
?LINT:use libc
?LINT:extern mistrustnm
-?LINT:change mistrustnm
?LINT:set mistrustnm
?S:csym:
?S: This shell variable is used internally by Configure to check
?RCS: Revision 3.0 1993/08/18 12:05:39 ram
?RCS: Baseline for dist 3.0 netwide release.
?RCS:
-?MAKE:nofile d_gettblsz tablesize: Compile Myread Guess libc cat \
+?MAKE:nofile d_gettblsz tablesize: Compile Myread Guess cat \
test rm Csym +cc +ccflags +optimize +ldflags +libs
?MAKE: -pick add $@ %<
?S:nofile:
?H:?%<:#if defined(HAS_GNULIBC) && !defined(_GNU_SOURCE)
?H:?%<:# define _GNU_SOURCE
?H:?%<:#endif
-?H.
+?H:.
?LINT: set d_gnulibc
?X: gnulibc can be executed by calling __libc_main().
?X: Ulrich Drepper doesn't think any other libc does that,
?X: Although the exact format isn't documented, __gnu_get_libc_version()
?X: returns a simple string '2.1.3' in glibc 2.1.3.
?X:
+: Check if we are using the GNU C library
echo " "
echo "Checking for GNU C Library..." >&4
cat >try.c <<'EOCP'
?H:.
?T:val
?LINT:set d_sigaction
-echo " "
: see if we have sigaction
+echo " "
if set sigaction val -f d_sigaction; eval $csym; $val; then
echo 'sigaction() found.' >&4
?X:
?H:?d_stdiobase:#endif
?H:.
?W:d_stdiobase:FILE_base FILE_bufsiz
-?LINT:set d_stdstdio d_stdiobase d_stdio_ptr_lval d_stdio_cnt_lval
+?LINT:set d_stdstdio d_stdiobase
?T:ptr_lval cnt_lval filbuf xxx
: see if _ptr and _cnt from stdio act std
echo " "
?C:.
?H:#define PTRSIZE $ptrsize /**/
?H:.
-?LINT:change use64bitall
?LINT:extern use64bitint
-?LINT:change use64bitint
: check for length of pointer
echo " "
case "$ptrsize" in
?H:#$ebcdic EBCDIC /**/
?H:.
?LINT:set ebcdic
+: Determine if this is an EBCDIC system
echo " "
echo "Determining whether or not we are on an EBCDIC system..." >&4
$cat >try.c <<'EOM'
?S: newline is not necessarily '\012'.
?S:.
?T: DJGPP
-echo " "
: Find the appropriate value for a newline for tr
+echo " "
?X: dos djgpp uses '\015\012', but reportedly is happy with '\012' in the
?X: tr command. I don't know why it passes the '\n' test but later
?X: refuses to work correctly with it. --AD 6/14/98
?RCS:
?RCS:
?MAKE:localarch localarchexp installlocalarch installlocalarchexp: \
- afs cat sed Getfile \
+ afs cat Getfile \
Oldconfig Prefixit test archname uselocallib locallib sitearch
?MAKE: -pick add $@ %<
?Y:TOP
?H:.
?T:tdflt
?LINT:extern sitearch
+: Set the localarch variables
case "$uselocallib" in
"$define")
case "$sitearch" in
?RCS:
?RCS:
?MAKE:uselocallib locallib locallibexp installlocallib installlocallibexp: \
- cat Getfile Oldconfig Prefixit test sed afs sitelib
+ cat Getfile Oldconfig Prefixit test afs sitelib
?MAKE: -pick add $@ %<
?Y:TOP
?S:uselocallib:
?X:
?MAKE:man1dir man1direxp man1ext installman1dir: cat nroff Loc Oldconfig \
spackage test Getfile Setprefixvar Prefixit Prefixup sysman Myread \
- sed prefixexp
+ prefixexp
?MAKE: -pick add $@ %<
?LINT:change prefixvar
?Y:TOP
?RCS: Baseline for dist 3.0 netwide release.
?RCS:
?MAKE:scriptdir scriptdirexp installscript: cat test Getfile Loc \
- Oldconfig +bin sed Prefixit Setprefixvar prefixexp Prefixup
+ Oldconfig +bin Prefixit Setprefixvar prefixexp Prefixup
?MAKE: -pick add $@ %<
?LINT:change prefixvar
?Y:TOP
?S: This variable is set non-null if the siteprefix was previously defined
?S: and gets set to a new value. Used internally by Configure only.
?S:.
+: Set the siteprefix variables
$cat <<EOM
After $package is installed, you may wish to install various
?RCS: $Log: sitescript.U,v $
?RCS:
?MAKE:sitescript sitescriptexp installsitescript : Getfile Oldconfig test \
- Setprefixvar sitebin siteprefix sed
+ Setprefixvar sitebin siteprefix
?MAKE: -pick add $@ %<
?LINT:change prefixvar
?Y:TOP
?H:#$d_vendorarch PERL_VENDORARCH "$vendorarch" /**/
?H:#$d_vendorarch PERL_VENDORARCH_EXP "$vendorarchexp" /**/
?H:.
+: Set the vendorarch variables
case "$vendorprefix" in
'') d_vendorarch="$undef"
vendorarch=''
?RCS:
?RCS:
?MAKE:d_vendorbin vendorbin vendorbinexp installvendorbin: Getfile \
- Setprefixvar Oldconfig Prefixit vendorprefix sed
+ Setprefixvar Oldconfig Prefixit vendorprefix
?MAKE: -pick add $@ %<
?LINT:change prefixvar
?Y:TOP
?H:#$d_vendorbin PERL_VENDORBIN "$vendorbin" /**/
?H:#$d_vendorbin PERL_VENDORBIN_EXP "$vendorbinexp" /**/
?H:.
+: Set the vendorbin variables
case "$vendorprefix" in
'') d_vendorbin="$undef"
vendorbin=''
?S: those systems using AFS. For extra portability, only this variable
?S: should be used in makefiles.
?S:.
+: Set the vendorhtml1 variables
case "$vendorprefix" in
'') vendorhtml1=''
vendorhtml1exp=''
?S: those systems using AFS. For extra portability, only this variable
?S: should be used in makefiles.
?S:.
+: Set the vendorhtml1dir variables
case "$vendorprefix" in
'') vendorhtml1dir=''
vendorhtml1direxp=''
?S: those systems using AFS. For extra portability, only this variable
?S: should be used in makefiles.
?S:.
+: Set the vendorhtml3 variables
case "$vendorprefix" in
'') vendorhtml3=''
vendorhtml3exp=''
?S: those systems using AFS. For extra portability, only this variable
?S: should be used in makefiles.
?S:.
+: Set the vendorhtml3dir variables
case "$vendorprefix" in
'') vendorhtml3dir=''
vendorhtml3direxp=''
?H:#$d_vendorlib PERL_VENDORLIB_STEM "$vendorlib_stem" /**/
?H:.
?T:prog
+: Set the vendorlib variables
case "$vendorprefix" in
'') d_vendorlib="$undef"
vendorlib=''
?S: those systems using AFS. For extra portability, only this variable
?S: should be used in makefiles.
?S:.
+: Set the vendorman1 variables
case "$vendorprefix" in
'') vendorman1=''
vendorman1exp=''
?S: those systems using AFS. For extra portability, only this variable
?S: should be used in makefiles.
?S:.
+: Set the vendorman1dir variables
case "$vendorprefix" in
'') vendorman1dir=''
vendorman1direxp=''
?S: those systems using AFS. For extra portability, only this variable
?S: should be used in makefiles.
?S:.
+: Set the vendorman3 variables
case "$vendorprefix" in
'') vendorman3=''
vendorman3exp=''
?S: those systems using AFS. For extra portability, only this variable
?S: should be used in makefiles.
?S:.
+: Set the vendorman3dir variables
case "$vendorprefix" in
'') vendorman3dir=''
vendorman3direxp=''
?S: This variable is set non-null if the vendorprefix was previously defined
?S: and gets set to a new value. Used internally by Configure only.
?S:.
+: Set the vendorprefix variables
$cat <<EOM
The installation process will also create a directory for
?RCS:
?RCS:
?MAKE:d_vendorscript vendorscript vendorscriptexp installvendorscript: Getfile \
- vendorbin cat sed Setprefixvar Oldconfig Prefixit test vendorprefix
+ vendorbin cat Setprefixvar Oldconfig Prefixit test vendorprefix
?MAKE: -pick add $@ %<
?LINT:change prefixvar
?Y:TOP
?H:#$d_vendorscript PERL_VENDORSCRIPT "$vendorscript" /**/
?H:#$d_vendorscript PERL_VENDORSCRIPT_EXP "$vendorscriptexp" /**/
?H:.
+: Set the vendorscript variables
case "$vendorprefix" in
'') d_vendorscript="$undef"
vendorscript=''
?LINT:change ccflags
?LINT:extern ccflags
?LINT:extern ldflags
+: Check what type of C compiler we use
cat <<EOS >trygcc
$startsh
EOS
?C: This symbol, if defined, indicates the target architecture
?C: Perl has been cross-compiled to. Undefined if not a cross-compile.
?C:.
-?H:
?H:?%<:#ifndef USE_CROSS_COMPILE
?H:?%<:#$usecrosscompile USE_CROSS_COMPILE /**/
?H:?%<:#define PERL_TARGETARCH "$targetarch" /**/
?LINT:extern loclibpth
?LINT:change locincpth
?LINT:change loclibpth
-
+: Check for Cross-Compilation
case "$usecrosscompile" in
$define|true|[yY]*)
$echo "Cross-compiling..."
?LINT:change usedevel
?LINT:change versiononly
?LINT:change installusrbinperl
+: See if we are using a devel version and want that
xversion=`awk '/define[ ]+PERL_VERSION/ {print $3}' $rsrc/patchlevel.h`
case "$usedevel" in
$define|true|[yY]*) ;;
?LINT:extern noextensions
?LINT:extern onlyextensions
?T:keepextensions i
+: Check extensions
echo " "
echo "Looking for extensions..." >&4
: If we are using the old config.sh, known_extensions may contain
?S:extras:
?S: This variable holds a list of extra modules to install.
?S:.
+: See if we want extra modules installed
echo " "
case "$extras" in
'') dflt='n';;
?S: not the user has specified 'portability'. This is only used
?S: in the Makefile.SH.
?S:.
-?LINT:use ar
: Store the full pathname to the ar program for use in the C program
: Respect a hint or command line value for full_ar.
case "$full_ar" in
?S: Currently, this is not supported, so we just abort.
?S:.
?Y:TOP
-?LINT:set ansi2knr
+: Check if ansi2knr is required
case "$prototype" in
"$define") ;;
*) ansi2knr='ansi2knr'
?C:.
?H:#$d_bincompat3 BINCOMPAT3 /**/
?H:.
-?LINT: set d_bincompat3
-
: Binary compatibility with 5.003 is not possible with 5.004_50 and later.
if test $patchlevel -gt 4 -o $subversion -ge 50; then
d_bincompat3=$undef
?C:.
?H:#$d_bincompat5005 PERL_BINCOMPAT_5005 /**/
?H:.
-?LINT: set d_bincompat5005
-
: Binary compatibility with 5.005 is not possible for builds
: with advanced features
case "$usethreads$usemultiplicity" in
?C:.
?H:#$d_c99_variadic_macros HAS_C99_VARIADIC_MACROS /**/
?H:.
-?LINT:set d_c99_variadic_macros
: see if the Compiler supports C99 variadic macros
case "$i_stdarg$i_stdlib" in
"$define$define")
?C:.
?H:#$d_futimes HAS_FUTIMES /**/
?H:.
-?LINT:set d_futimes
?T:rc
-d_futimes="$undef"
: check for a working futimes
+d_futimes="$undef"
echo " "
echo "Checking if you have a working futimes()" >&4
$cat >try.c <<EOCP
?H:#$d_libm_lib_version LIBM_LIB_VERSION /**/
?H:.
?T:foo
-?LINT:set d_libm_lib_version
+: check to see if math.h defines _LIB_VERSION
d_libm_lib_version="$undef"
case $i_math in
$define)
- : check to see if math.h defines _LIB_VERSION
echo " "
echo "Checking to see if your libm supports _LIB_VERSION..." >&4
$cat >try.c <<EOCP
?H:#$d_modfl_pow32_bug HAS_MODFL_POW32_BUG /**/
?H:.
?T:foo saveccflags
-?LINT:set d_modfl
?LINT:set d_modflproto
-?LINT:set d_modfl_pow32_bug
?LINT:change ccflags
-?LINT:change uselongdouble
?T: message
: see if modfl exists
set modfl d_modfl
?C:.
?H:#define PRINTF_EXP_DIGITS $d_printf_exp_digits
?H:.
-?LINT:set d_strtoll
+: Check sprintf exponent digits
echo " "
echo "Checking how many exponent digits your sprintf formats use..."
$cat >try.c <<'EOSC'
?H:?%<:#endif
?H:.
?LINT: set d_procselfexe
-?LINT: set procselfexe
+: Check if exe is symlink to abs path of executing program
echo " "
procselfexe=''
val="$undef"
?H:#$d_snprintf HAS_SNPRINTF /**/
?H:#$d_vsnprintf HAS_VSNPRINTF /**/
?H:.
-?LINT:set d_snprintf d_vsnprintf
+?F:try
: see if snprintf exists
set snprintf d_snprintf
eval $inlibc