X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=Configure;h=a6d567c7284a15ab945fc969427e5eedd20e4a15;hb=ac8eabc1ebb57d426c973b83f7ee5241b2084b4e;hp=02997705836af76ebd969b0050a313a30174efab;hpb=f96a0a5d8141abf4d6f9689ccee6e13683e0f146;p=p5sagit%2Fp5-mst-13.2.git diff --git a/Configure b/Configure index 0299770..a6d567c 100755 --- a/Configure +++ b/Configure @@ -20,7 +20,7 @@ # $Id: Head.U,v 3.0.1.9 1997/02/28 15:02:09 ram Exp $ # -# Generated on Tue Sep 14 23:20:30 EET DST 1999 [metaconfig 3.0 PL70] +# Generated on Sat Oct 2 13:06:57 EET DST 1999 [metaconfig 3.0 PL70] # (with additional metaconfig patches by perlbug@perl.com) cat >/tmp/c1$$ <> posthint.sh - ;; + echo "$yyy=\"\${$yyy}$zzz\"" >> posthint.sh ;; clear) - echo "$yyy=''" >> posthint.sh - ;; + echo "$yyy=''" >> posthint.sh ;; define) case "$zzz" in '') zzz=define ;; esac - echo "$yyy='$zzz'" >> posthint.sh - ;; + echo "$yyy='$zzz'" >> posthint.sh ;; eval) - echo "eval \"$yyy=$zzz\"" >> posthint.sh - ;; + echo "eval \"$yyy=$zzz\"" >> posthint.sh ;; prepend) - echo "$yyy=\"$zzz\${$yyy}\"" >> posthint.sh - ;; + echo "$yyy=\"$zzz\${$yyy}\"" >> posthint.sh ;; undef) case "$zzz" in '') zzz="$uuu" ;; esac - echo "$yyy=$zzz" >> posthint.sh - ;; - *) echo "$me: unknown -A command '$xxx', ignoring -A $1" >&2 - ;; + echo "$yyy=$zzz" >> posthint.sh ;; + *) echo "$me: unknown -A command '$xxx', ignoring -A $1" >&2 ;; esac ;; -V) echo "$me generated by metaconfig 3.0 PL70." >&2 - exit 0;; + exit 0;; --) break;; -*) echo "$me: unknown option $1" >&2; shift; error=true;; *) break;; @@ -1296,9 +1298,9 @@ Usage: $me [-dehrsEKOSV] [-f config.sh] [-D symbol] [-D symbol=value] -U symbol symbol gets the value 'undef' -U symbol= symbol gets completely empty -A : manipulate symbol after the platform specific hints have been applied: + -A symbol=value append " "value to symbol -A append:symbol=value append value to symbol -A define:symbol=value define symbol to have value - -A symbol=value define symbol to have value -A clear:symbol define symbol to be '' -A define:symbol define symbol to be 'define' -A eval:symbol=value define symbol to be eval of value @@ -1332,7 +1334,6 @@ touch optdef.sh . ./optdef.sh : create the posthint manipulation script and leave the file out there... touch posthint.sh -. ./posthint.sh : set package name package=perl5 @@ -2311,7 +2312,10 @@ EOM mips) osname=mips_osf1 ;; esac ;; - uts) osname=uts + unixware) osname=svr5 + osvers="$4" + ;; + uts) osname=uts osvers="$3" ;; qnx) osname=qnx @@ -3014,12 +3018,47 @@ case "$gccversion" in 1*) cpp=`./loc gcc-cpp $cpp $pth` ;; esac + +case "$usemorebits" in +"$define"|true|[yY]*) + use64bits="$define" + uselongdouble="$define" + usemorebits="$define" + ;; +*) usemorebits="$undef" + ;; +esac + + +cat <&4 if $test -r $rsrc/patchlevel.h;then patchlevel=`awk '/define[ ]+PERL_VERSION/ {print $3}' $rsrc/patchlevel.h` subversion=`awk '/define[ ]+PERL_SUBVERSION/ {print $3}' $rsrc/patchlevel.h` + apiversion=`awk '/define[ ]+PERL_APIVERSION/ {print $3}' $rsrc/patchlevel.h` else patchlevel=0 subversion=0 + apiversion=0 fi $echo $n "(You have $package" $c case "$package" in @@ -3561,15 +3602,6 @@ else echo $baserev $patchlevel $subversion | \ $awk '{ printf "%.5f\n", $1 + $2/1000.0 + $3/100000.0 }'` fi -: Figure out perl API version. Perhaps this should be in patchlevel.h -if test "$subversion" -lt 50; then - apiversion=`LC_ALL=C; export LC_ALL; \ - LANGUAGE=C; export LANGUAGE; \ - echo $baserev $patchlevel | \ - $awk '{ printf "%.3f\n", $1 + $2/1000.0 }'` -else - apiversion="$version" -fi : determine installation style : For now, try to deduce it from prefix unless it is already set. @@ -4261,7 +4293,7 @@ default|recommended) case "$gccversion" in 1*) ;; 2.[0-8]*) ;; - *) echo " " + ?*) echo " " echo "Checking if your compiler accepts -fno-strict-aliasing" 2>&1 echo 'int main(void) { return 0; }' > gcctest.c if $cc -O2 -fno-strict-aliasing -o gcctest gcctest.c; then @@ -10185,7 +10217,7 @@ if set sigaction val -f d_sigaction; eval $csym; $val; then int main() { struct sigaction act, oact; - act.flags = 0; + act.sa_flags = 0; oact.sa_handler = 0; } EOP @@ -11908,6 +11940,15 @@ rp="What is the type of process ids on this system?" set pid_t pidtype int stdio.h sys/types.h eval $typedef_ask +: Find earliest binary compatible site_perl subdirectory perl can use. +case "$bincompat5005" in +"$define") xs_apiversion='5.005' ;; +*) xs_apiversion=$apiversion ;; # The current site_perl version. +esac +: Find earliest pure perl site_perl subdirectory perl can use. +: The versioned directories started at 5.005. +pm_apiversion='5.005' + : check for length of pointer echo " " case "$ptrsize" in @@ -13871,6 +13912,7 @@ pg='$pg' phostname='$phostname' pidtype='$pidtype' plibpth='$plibpth' +pm_apiversion='$pm_apiversion' pmake='$pmake' pr='$pr' prefix='$prefix' @@ -13969,7 +14011,9 @@ uname='$uname' uniq='$uniq' use64bits='$use64bits' usedl='$usedl' +uselargefiles='$uselargefiles' uselongdouble='$uselongdouble' +usemorebits='$usemorebits' usemultiplicity='$usemultiplicity' usemymalloc='$usemymalloc' usenm='$usenm' @@ -13992,6 +14036,7 @@ version='$version' vi='$vi' voidflags='$voidflags' xlibpth='$xlibpth' +xs_apiversion='$xs_apiversion' zcat='$zcat' zip='$zip' EOT