diff options
author | Jarkko Hietaniemi <jhi@iki.fi> | 2000-01-15 22:26:16 +0000 |
---|---|---|
committer | Jarkko Hietaniemi <jhi@iki.fi> | 2000-01-15 22:26:16 +0000 |
commit | ff935051c0581ebaf8a1cbeb640d7c48ba85cbbc (patch) | |
tree | afb0bc01beeadf71f36cb170573472e37b457d58 /Configure | |
parent | 434d2535978fdc93cf6e9722bc7f9d272a9c2632 (diff) | |
download | perl-ff935051c0581ebaf8a1cbeb640d7c48ba85cbbc.tar.gz |
Metaconfig and Porting patches from Andy; start using the new
long long and long double thingies from #4804; regen Configure.
p4raw-id: //depot/cfgperl@4805
Diffstat (limited to 'Configure')
-rwxr-xr-x | Configure | 448 |
1 files changed, 282 insertions, 166 deletions
@@ -20,7 +20,7 @@ # $Id: Head.U,v 3.0.1.9 1997/02/28 15:02:09 ram Exp $ # -# Generated on Fri Jan 7 16:14:30 EST 2000 [metaconfig 3.0 PL70] +# Generated on Sat Jan 15 23:59:51 EET 2000 [metaconfig 3.0 PL70] # (with additional metaconfig patches by perlbug@perl.com) cat >/tmp/c1$$ <<EOF @@ -442,6 +442,7 @@ old_pthread_create_joinable='' d_pthread_yield='' d_sched_yield='' sched_yield='' +d_qgcvt='' d_readdir='' d_rewinddir='' d_seekdir='' @@ -529,7 +530,10 @@ d_sysernlst='' d_syserrlst='' d_strtod='' d_strtol='' +d_strtold='' d_strtoul='' +d_strtoull='' +d_strtouq='' d_strxfrm='' d_symlink='' d_syscall='' @@ -666,6 +670,7 @@ i_stdarg='' i_varargs='' i_varhdr='' i_vfork='' +inc_version_list='' installprefix='' installprefixexp='' installstyle='' @@ -746,9 +751,10 @@ ranlib='' package='' spackage='' pager='' -apirevision='' -apisubversion='' -apiversion='' +api_revision='' +api_subversion='' +api_version='' +api_versionstring='' patchlevel='' subversion='' version='' @@ -843,7 +849,6 @@ startsh='' stdchar='' d_stdio_stream_array='' stdio_stream_array='' -d_strtoull='' sysman='' trnl='' uidformat='' @@ -900,14 +905,6 @@ if test -f /etc/unixtovms.exe; then fi i_whoami='' -: Possible local include directories to search. -: Set locincpth to "" in a hint file to defeat local include searches. -locincpth="/usr/local/include /opt/local/include /usr/gnu/include" -locincpth="$locincpth /opt/gnu/include /usr/GNU/include /opt/GNU/include" -: -: no include file wanted by default -inclwanted='' - : list of known cpp symbols, sorted alphabetically al="AMIX BIT_MSF BSD BSD4_3 BSD_NET2 CMU CRAY DGUX DOLPHIN DPX2" al="$al GO32 GOULD_PN HP700 I386 I80960 I960 Lynx M68000 M68K MACH" @@ -973,10 +970,22 @@ al="$al tower32_800 tower32_850 tss u370 u3b u3b2 u3b20 u3b200" al="$al u3b20d u3b5 ultrix unix unixpc unos vax venix vms" al="$al xenix z8000" +: set useposix=false in your hint file to disable the POSIX extension. +useposix=true +: set useopcode=false in your hint file to disable the Opcode extension. +useopcode=true : Trailing extension. Override this in a hint file, if needed. _exe='' : Extra object files, if any, needed on this platform. archobjs='' +: Possible local include directories to search. +: Set locincpth to "" in a hint file to defeat local include searches. +locincpth="/usr/local/include /opt/local/include /usr/gnu/include" +locincpth="$locincpth /opt/gnu/include /usr/GNU/include /opt/GNU/include" +: +: no include file wanted by default +inclwanted='' + groupstype='' : change the next line if compiling for Xenix/286 on Xenix/386 xlibpth='/usr/lib/386 /lib/386' @@ -1000,16 +1009,12 @@ plibpth='' libswanted='' : some systems want to use only the non-versioned libso:s ignore_versioned_solibs='' -: full support for void wanted by default -defvoidused=15 - -: set useposix=false in your hint file to disable the POSIX extension. -useposix=true -: set useopcode=false in your hint file to disable the Opcode extension. -useopcode=true : set usemultiplicity on the Configure command line to enable multiplicity. : set usesocks on the Configure command line to enable socks. : set usethreads on the Configure command line to enable threads. +: full support for void wanted by default +defvoidused=15 + : List of libraries we want. : If anyone needs -lnet, put it in a hint file. libswanted='sfio socket inet nsl nm ndbm gdbm dbm db malloc dl' @@ -1890,7 +1895,6 @@ comm cp echo expr -find grep ls make @@ -1912,14 +1916,12 @@ date egrep gzip less -line ln more nm nroff perl pg -sendmail test uname zip @@ -2741,20 +2743,21 @@ EOM ;; esac -case "$useithreads" in -$define|true|[yY]*) - echo "Interpreter threads requested, multiple interpreter support enabled..." >&4 - val="$define" ;; -*) - cat <<EOM - - Perl can be built so that multiple Perl interpreters can coexist - within the same Perl executable. To do so, Configure must be run with - -Dusemultiplicity. +cat <<EOM - Normally you do not need this and you should answer no. +Perl can be built so that multiple Perl interpreters can coexist +within the same Perl executable. +EOM +case "$useithreads" in +$define) + cat <<EOM +This multiple interpreter support is required for interpreter-based threads. EOM + val="$define" + ;; +*) + echo 'Normally you do not need this and you should answer no.' case "$usemultiplicity" in $define|true|[yY]*) dflt='y';; *) dflt='n';; @@ -2762,13 +2765,13 @@ EOM rp='Build Perl for multiplicity?' . ./myread case "$ans" in - y|Y) val="$define" ;; + y|Y) val="$define" ;; *) val="$undef" ;; esac ;; esac set usemultiplicity -eval $setvar +eval $setvar : determine where manual pages are on this system echo " " @@ -4654,23 +4657,25 @@ prefixit='case "$3" in esac;; esac' -: get the revision, patchlevel, subversion +: set the base revision +baserev=5.0 + + +: get the patchlevel echo " " echo "Getting the current patchlevel..." >&4 if $test -r $rsrc/patchlevel.h;then - baserev=`awk '/define[ ]+PERL_REVISION/ {print $3}' $rsrc/patchlevel.h` patchlevel=`awk '/define[ ]+PERL_VERSION/ {print $3}' $rsrc/patchlevel.h` subversion=`awk '/define[ ]+PERL_SUBVERSION/ {print $3}' $rsrc/patchlevel.h` - apirevision=`awk '/define[ ]+PERL_API_REVISION/ {print $3}' $rsrc/patchlevel.h` - apiversion=`awk '/define[ ]+PERL_API_VERSION/ {print $3}' $rsrc/patchlevel.h` - apisubversion=`awk '/define[ ]+PERL_API_SUBVERSION/ {print $3}' $rsrc/patchlevel.h` + api_revision=`awk '/define[ ]+PERL_API_REVISION/ {print $3}' $rsrc/patchlevel.h` + api_version=`awk '/define[ ]+PERL_API_VERSION/ {print $3}' $rsrc/patchlevel.h` + api_subversion=`awk '/define[ ]+PERL_API_SUBVERSION/ {print $3}' $rsrc/patchlevel.h` else - baserev=0 patchlevel=0 subversion=0 - apirevision=0 - apiversion=0 - apisubversion=0 + api_revision=0 + api_version=0 + api_subversion=0 fi $echo $n "(You have $package" $c case "$package" in @@ -4680,15 +4685,25 @@ esac $echo $n " patchlevel $patchlevel" $c test 0 -eq "$subversion" || $echo $n " subversion $subversion" $c echo ".)" - -if $test -n $osname -a "$osname" = "dos"; then - version=`LC_ALL=C; export LC_ALL; \ - echo $baserev $patchlevel $subversion | \ +case "$osname" in +dos|cygwin|vms|win32) + : XXX Should be a Configure test for double-dots in filenames. + version=`echo $baserev $patchlevel $subversion | \ $awk '{ printf "%d_%d_%d\n", $1, $2, $3 }'` -else - version=`LC_ALL=C; export LC_ALL; \ - echo $baserev $patchlevel $subversion | \ + api_versionstring=`echo $api_revision $api_version $api_subversion | \ + $awk '{ printf "%d_%d_%d\n", $1, $2, $3 }'` + ;; +*) + version=`echo $baserev $patchlevel $subversion | \ + $awk '{ printf "%d.%d.%d\n", $1, $2, $3 }'` + api_versionstring=`echo $api_revision $api_version $api_subversion | \ $awk '{ printf "%d.%d.%d\n", $1, $2, $3 }'` + ;; +esac +: Special case the 5.005_xx maintenance series, which used 5.005 +: without any subversion label as a subdirectory in $sitelib +if test "${api_revision}${api_version}${api_subversion}" = "550"; then + api_versionstring='5.005' fi : determine installation style @@ -5252,6 +5267,146 @@ else installbin="$binexp" fi +$cat <<EOM + +After $package is installed, you may wish to install various +add-on modules and utilities. Typically, these add-ons will +be installed under $prefix with the rest +of this package. However, you may wish to install such add-ons +elsewhere under a different prefix. + +If you do not wish to put everything under a single prefix, that's +ok. You will be prompted for the individual locations; this siteprefix +is only used to suggest the defaults. + +The default should be fine for most people. + +EOM +fn=d~+ +rp='Installation prefix to use for add-on modules and utilities?' +: XXX Here might be another good place for an installstyle setting. +case "$siteprefix" in +'') dflt=$prefix ;; +*) dflt=$siteprefix ;; +esac +. ./getfile +oldsiteprefix='' +case "$siteprefix" in +'') ;; +*) + case "$ans" in + "$prefix") ;; + *) oldsiteprefix="$prefix";; + esac + ;; +esac +siteprefix="$ans" +siteprefixexp="$ansexp" + +: determine where site specific libraries go. +: Usual default is /usr/local/lib/perl5/site_perl/$version +: The default "style" setting is made in installstyle.U +: XXX No longer works with Prefixit stuff. +prog=`echo $package | $sed 's/-*[0-9.]*$//'` +case "$installstyle" in +*lib/perl5*) dflt=$siteprefix/lib/$package/site_$prog/$version ;; +*) dflt=$siteprefix/lib/site_$prog/$version ;; +esac +$cat <<EOM + +The installation process will create a directory for +site-specific extensions and modules. Most users find it convenient +to place all site-specific files in this directory rather than in the +main distribution directory. + +EOM +fn=d~+ +rp='Pathname for the site-specific library files?' +. ./getfile +sitelib="$ans" +sitelibexp="$ansexp" +: Change installation prefix, if necessary. +if $test X"$prefix" != X"$installprefix"; then + installsitelib=`echo $sitelibexp | sed "s#^$prefix#$installprefix#"` +else + installsitelib="$sitelibexp" +fi + +: Determine list of previous versions to include in @INC +$cat > getverlist <<EOPL +#!$perl -w +use File::Basename; +\$api_versionstring = "$api_versionstring"; +\$version = "$version"; +\$sitelib = "$sitelib"; +\$archname = "$archname"; +EOPL + $cat >> getverlist <<'EOPL' +# Can't have leading @ because metaconfig interprets it as a command! +;@inc_version_list=(); +$stem=dirname($sitelib); +# Redo to do opendir/readdir? +if (-d $stem) { + chdir($stem); + ;@candidates = glob("5.*"); +} +else { + ;@candidates = (); +} + +foreach $d (@candidates) { + if ($d lt $version) { + if ($d ge $api_versionstring) { + unshift(@inc_version_list, "$d/$archname", $d); + } + elsif ($d ge "5.005") { + unshift(@inc_version_list, $d); + } + } + else { + # Skip newer version. I.e. don't look in + # 5.7.0 if we're installing 5.6.1. + } +} + +if (@inc_version_list) { + print '"'; + print join('", "', @inc_version_list); + print '"'; +} +else { + # Blank space to preserve value for next Configure run. + print " "; +} +EOPL +chmod +x getverlist +case "$inc_version_list" in +'') if test -x $perl; then + dflt=`$perl getverlist` + else + dflt='' + fi + ;; +*) dflt="$inc_version_list" ;; +esac +$cat <<'EOM' + +In order to ease the process of upgrading, this version of perl +can be configured to use modules built and installed with earlier +versions of perl that were installed under $prefix. Specify here +the list of earlier versions that this version of perl should check. +If Configure detected no earlier versions of perl installed under +$prefix, then the list will be empty. + +The default should almost always be sensible, so if you're not sure, +just accept the default. +EOM + +rp='list of earlier versions to include in @INC?' +. ./myread +inc_version_list="$ans" +$rm -f getverlist + : determine whether to install perl also as /usr/bin/perl echo " " @@ -6802,71 +6957,6 @@ else installscript="$scriptdirexp" fi -$cat <<EOM - -After $package is installed, you may wish to install various -add-on modules and utilities. Typically, these add-ons will -be installed under $prefix with the rest -of this package. However, you may wish to install such add-ons -elsewhere under a different prefix. - -If you do not wish to put everything under a single prefix, that's -ok. You will be prompted for the individual locations; this siteprefix -is only used to suggest the defaults. - -The default should be fine for most people. - -EOM -fn=d~+ -rp='Installation prefix to use for add-on modules and utilities?' -: XXX Here might be another good place for an installstyle setting. -case "$siteprefix" in -'') dflt=$prefix ;; -*) dflt=$siteprefix ;; -esac -. ./getfile -oldsiteprefix='' -case "$siteprefix" in -'') ;; -*) - case "$ans" in - "$prefix") ;; - *) oldsiteprefix="$prefix";; - esac - ;; -esac -siteprefix="$ans" -siteprefixexp="$ansexp" - -: determine where site specific libraries go. -: Usual default is /usr/local/lib/perl5/site_perl/$version -: The default "style" setting is made in installstyle.U -: XXX No longer works with Prefixit stuff. -prog=`echo $package | $sed 's/-*[0-9.]*$//'` -case "$installstyle" in -*lib/perl5*) dflt=$siteprefix/lib/$package/site_$prog/$version ;; -*) dflt=$siteprefix/lib/site_$prog/$version ;; -esac -$cat <<EOM - -The installation process will create a directory for -site-specific extensions and modules. Most users find it convenient -to place all site-specific files in this directory rather than in the -main distribution directory. - -EOM -fn=d~+ -rp='Pathname for the site-specific library files?' -. ./getfile -sitelib="$ans" -sitelibexp="$ansexp" -: Change installation prefix, if necessary. -if $test X"$prefix" != X"$installprefix"; then - installsitelib=`echo $sitelibexp | sed "s#^$prefix#$installprefix#"` -else - installsitelib="$sitelibexp" -fi - : determine where site specific architecture-dependent libraries go. : sitelib default is /usr/local/lib/perl5/site_perl/$version : sitearch default is /usr/local/lib/perl5/site_perl/$version/$archname @@ -7056,6 +7146,10 @@ case "$vendorprefix" in ;; esac +: see if qgcvt exists +set qgcvt d_qgcvt +eval $inlibc + : Check how to convert floats to strings. if test "X$d_Gconvert" = X; then echo " " @@ -7069,6 +7163,10 @@ char *myname = "gconvert"; #define Gconvert(x,n,t,b) gcvt((x),(n),(b)) char *myname = "gcvt"; #endif +#ifdef TRY_qgcvt +#define Gconvert(x,n,t,b) qgcvt((x),(n),(b)) +char *myname = "qgcvt"; +#endif #ifdef TRY_sprintf #define Gconvert(x,n,t,b) sprintf((b),"%.*g",(n),(x)) char *myname = "sprintf"; @@ -7125,8 +7223,12 @@ EOP *) xxx_list='gconvert gcvt sprintf' ;; esac + case "$uselongdouble$d_qgcvt" in + definedefine) xxx_list="`echo $xxx_list|sed s/gcvt/qgcvt/`" ;; + esac + for xxx_convert in $xxx_list; do - echo "Trying $xxx_convert" + echo "Trying $xxx_convert..." $rm -f try try$_o set try -DTRY_$xxx_convert if eval $compile; then @@ -7145,6 +7247,7 @@ EOP case "$xxx_convert" in gconvert) d_Gconvert='gconvert((x),(n),(t),(b))' ;; gcvt) d_Gconvert='gcvt((x),(n),(b))' ;; + qgcvt) d_Gconvert='qgcvt((x),(n),(b))' ;; *) d_Gconvert='sprintf((b),"%.*g",(n),(x))' ;; esac fi @@ -9174,51 +9277,6 @@ set d_index; eval $setvar set inet_aton d_inetaton eval $inlibc -: see if inttypes.h is available -: we want a real compile instead of Inhdr because some systems -: have an inttypes.h which includes non-existent headers -echo " " -$cat >try.c <<EOCP -#include <inttypes.h> -int main() { - static int32_t foo32 = 0x12345678; -} -EOCP -set try -if eval $compile; then - echo "<inttypes.h> found." >&4 - val="$define" -else - echo "<inttypes.h> NOT found." >&4 - val="$undef" -fi -$rm -f try.c try -set i_inttypes -eval $setvar - -: check for int64_t -echo " " -$echo $n "Checking to see if your system supports int64_t...$c" >&4 -$cat >try.c <<EOCP -#include <sys/types.h> -#$i_inttypes I_INTTYPES -#ifdef I_INTTYPES -#include <inttypes.h> -#endif -int main() { int64_t x = 7; } -EOCP -set try -if eval $compile; then - val="$define" - echo " Yes, it does." >&4 -else - val="$undef" - echo " No, it doesn't." >&4 -fi -$rm -f try try.* -set d_int64t -eval $setvar - : Look for isascii echo " " $cat >isascii.c <<'EOCP' @@ -9706,6 +9764,51 @@ $define) ;; esac +: see if inttypes.h is available +: we want a real compile instead of Inhdr because some systems +: have an inttypes.h which includes non-existent headers +echo " " +$cat >try.c <<EOCP +#include <inttypes.h> +int main() { + static int32_t foo32 = 0x12345678; +} +EOCP +set try +if eval $compile; then + echo "<inttypes.h> found." >&4 + val="$define" +else + echo "<inttypes.h> NOT found." >&4 + val="$undef" +fi +$rm -f try.c try +set i_inttypes +eval $setvar + +: check for int64_t +echo " " +$echo $n "Checking to see if your system supports int64_t...$c" >&4 +$cat >try.c <<EOCP +#include <sys/types.h> +#$i_inttypes I_INTTYPES +#ifdef I_INTTYPES +#include <inttypes.h> +#endif +int main() { int64_t x = 7; } +EOCP +set try +if eval $compile; then + val="$define" + echo " Yes, it does." >&4 +else + val="$undef" + echo " No, it doesn't." >&4 +fi +$rm -f try try.* +set d_int64t +eval $setvar + echo " " echo "Checking which 64-bit integer type we could use..." >&4 @@ -10851,6 +10954,10 @@ eval $inlibc set strtol d_strtol eval $inlibc +: see if strtold exists +set strtold d_strtold +eval $inlibc + : see if strtoul exists set strtoul d_strtoul eval $inlibc @@ -10859,6 +10966,10 @@ eval $inlibc set strtoull d_strtoull eval $inlibc +: see if strtouq exists +set strtouq d_strtouq +eval $inlibc + : see if strxfrm exists set strxfrm d_strxfrm eval $inlibc @@ -14231,9 +14342,10 @@ afs='$afs' alignbytes='$alignbytes' ansi2knr='$ansi2knr' aphostname='$aphostname' -apirevision='$apirevision' -apisubversion='$apisubversion' -apiversion='$apiversion' +api_revision='$api_revision' +api_subversion='$api_subversion' +api_version='$api_version' +api_versionstring='$api_versionstring' ar='$ar' archlib='$archlib' archlibexp='$archlibexp' @@ -14449,6 +14561,7 @@ d_pwexpire='$d_pwexpire' d_pwgecos='$d_pwgecos' d_pwpasswd='$d_pwpasswd' d_pwquota='$d_pwquota' +d_qgcvt='$d_qgcvt' d_quad='$d_quad' d_readdir='$d_readdir' d_readlink='$d_readlink' @@ -14520,8 +14633,10 @@ d_strerrm='$d_strerrm' d_strerror='$d_strerror' d_strtod='$d_strtod' d_strtol='$d_strtol' +d_strtold='$d_strtold' d_strtoul='$d_strtoul' d_strtoull='$d_strtoull' +d_strtouq='$d_strtouq' d_strxfrm='$d_strxfrm' d_suidsafe='$d_suidsafe' d_symlink='$d_symlink' @@ -14679,6 +14794,7 @@ i_varargs='$i_varargs' i_varhdr='$i_varhdr' i_vfork='$i_vfork' ignore_versioned_solibs='$ignore_versioned_solibs' +inc_version_list='$inc_version_list' incpath='$incpath' inews='$inews' installarchlib='$installarchlib' |