X-Git-Url: https://perl5.git.perl.org/perl5.git/blobdiff_plain/42fde7b2ff12d979bd575ebf1530df889d1680e3..ad517f75025ba4de08890f9694f2e535efc32ab4:/Configure diff --git a/Configure b/Configure index ee4d516..b992563 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 Wed May 7 23:33:48 EET DST 2003 [metaconfig 3.0 PL70] +# Generated on Mon Aug 25 19:47:58 EEST 2003 [metaconfig 3.0 PL70] # (with additional metaconfig patches by perlbug@perl.org) cat >c1$$ < libc.ptf xscan='eval "libc.list"; $echo $n ".$c" >&4' xrun='eval "libc.list"; echo "done." >&4' xxx='[ADTSIW]' -if com="$sed -n -e 's/__IO//' -e 's/^.* $xxx *_[_.]*//p' -e 's/^.* $xxx *//p'";\ +if com="$sed -n -e 's/__IO//' -e 's/^.* $xxx *//p'";\ eval $xscan;\ $contains '^fprintf$' libc.list >/dev/null 2>&1; then eval $xrun @@ -7357,7 +7356,7 @@ csym='tlook=$1; case "$3" in -v) tf=libc.tmp; tc=""; tdc="";; -a) tf=libc.tmp; tc="[0]"; tdc="[]";; -*) tlook="^$1\$"; tf=libc.list; tc="()"; tdc="()";; +*) tlook="^$1\$"; tf=libc.list; tc=""; tdc="()";; esac; tx=yes; case "$reuseval-$4" in @@ -7366,25 +7365,29 @@ true-*) tx=no; eval "tval=\$$4"; case "$tval" in "") tx=yes;; esac;; esac; case "$tx" in yes) - case "$runnm" in - true) - if $contains $tlook $tf >/dev/null 2>&1; - then tval=true; - else tval=false; - fi;; - *) - echo "int main() { extern short $1$tdc; printf(\"%hd\", $1$tc); }" > t.c; - if $cc -o t $optimize $ccflags $ldflags t.c $libs >/dev/null 2>&1; - then tval=true; - else tval=false; + tval=false; + if $test "$runnm" = true; then + if $contains $tlook $tf >/dev/null 2>&1; then + tval=true; + elif $test "$mistrustnm" = compile -o "$mistrustnm" = run; then + echo "int main() { extern void *$1$tdc; if (&$1$tc) return(0); else return(1); }" > try.c; + $cc -o try $optimize $ccflags $ldflags try.c >/dev/null 2>&1 $libs && tval=true; + $test "$mistrustnm" = run -a -x try && { $run ./try >/dev/null 2>&1 || tval=false; }; + $rm -f try try.c core; fi; - $rm -f t t.c;; - esac;; + else + echo "#include " > try.c; + echo "int main() { extern void *$1$tdc; if(&$1$tc) return(0); else return(1); }" > try.c; + $cc -o try $optimize $ccflags $ldflags try.c $libs >/dev/null 2>&1 && tval=true; + $rm -f try try.c; + fi; + ;; *) case "$tval" in $define) tval=true;; *) tval=false;; - esac;; + esac; + ;; esac; eval "$2=$tval"' @@ -8550,11 +8553,11 @@ else fi : determine where add-on html pages go -: There is no standard location, so try to copy the previously-selected +: There is no standard location, so try to copy the previously-selected : directory structure for the core html pages. -case "$sitehtml1" in -'') dflt=`echo "$html1dir" | $sed "s#^$prefix#$siteprefix#"` ;; -*) dflt=$sitehtml1 ;; +case "$sitehtml1dir" in +'') dflt=`echo "$html1dir" | $sed "s#^$prefix#$siteprefix#"` ;; +*) dflt=$sitehtml1dir ;; esac case "$dflt" in ''|' ') dflt=none ;; @@ -8562,23 +8565,21 @@ esac fn=dn+~ rp='Pathname where the site-specific html pages should be installed?' . ./getfile -sitehtml1="$ans" -sitehtml1exp="$ansexp" -: Use ' ' for none so value is preserved next time through Configure -$test X"$sitehtml1" = "X" && sitehtml1=' ' +sitehtml1dir="$ans" +sitehtml1direxp="$ansexp" : Change installation prefix, if necessary. if $test X"$prefix" != X"$installprefix"; then - installsitehtml1=`echo "$sitehtml1exp" | $sed "s#^$prefix#$installprefix#"` + installsitehtml1dir=`echo $sitehtml1direxp | $sed "s#^$prefix#$installprefix#"` else - installsitehtml1="$sitehtml1exp" + installsitehtml1dir="$sitehtml1direxp" fi : determine where add-on library html pages go : There is no standard location, so try to copy the previously-selected : directory structure for the core html pages. -case "$sitehtml3" in -'') dflt=`echo "$html3dir" | $sed "s#^$prefix#$siteprefix#"` ;; -*) dflt=$sitehtml3 ;; +case "$sitehtml3dir" in +'') dflt=`echo "$html3dir" | $sed "s#^$prefix#$siteprefix#"` ;; +*) dflt=$sitehtml3dir ;; esac case "$dflt" in ''|' ') dflt=none ;; @@ -8586,21 +8587,19 @@ esac fn=dn+~ rp='Pathname where the site-specific library html pages should be installed?' . ./getfile -sitehtml3="$ans" -sitehtml3exp="$ansexp" -: Use ' ' for none so value is preserved next time through Configure -$test X"$sitehtml3" = "X" && sitehtml3=' ' +sitehtml3dir="$ans" +sitehtml3direxp="$ansexp" : Change installation prefix, if necessary. if $test X"$prefix" != X"$installprefix"; then - installsitehtml3=`echo "$sitehtml3exp" | $sed "s#^$prefix#$installprefix#"` + installsitehtml3dir=`echo $sitehtml3direxp | $sed "s#^$prefix#$installprefix#"` else - installsitehtml3="$sitehtml3exp" + installsitehtml3dir="$sitehtml3direxp" fi : determine where add-on manual pages go -case "$siteman1" in -'') dflt=`echo "$man1dir" | $sed "s#^$prefix#$siteprefix#"` ;; -*) dflt=$siteman1 ;; +case "$siteman1dir" in +'') dflt=`echo $man1dir | $sed "s#^$prefix#$siteprefix#"` ;; +*) dflt=$siteman1dir ;; esac case "$dflt" in ''|' ') dflt=none ;; @@ -8608,21 +8607,19 @@ esac fn=dn+~ rp='Pathname where the site-specific manual pages should be installed?' . ./getfile -siteman1="$ans" -siteman1exp="$ansexp" -: Use ' ' for none so value is preserved next time through Configure -$test X"$siteman1" = "X" && siteman1=' ' +siteman1dir="$ans" +siteman1direxp="$ansexp" : Change installation prefix, if necessary. if $test X"$prefix" != X"$installprefix"; then - installsiteman1=`echo "$siteman1exp" | $sed "s#^$prefix#$installprefix#"` + installsiteman1dir=`echo $siteman1direxp | $sed "s#^$prefix#$installprefix#"` else - installsiteman1="$siteman1exp" + installsiteman1dir="$siteman1direxp" fi : determine where add-on library man pages go -case "$siteman3" in -'') dflt=`echo "$man3dir" | $sed "s#^$prefix#$siteprefix#"` ;; -*) dflt=$siteman3 ;; +case "$siteman3dir" in +'') dflt=`echo $man3dir | $sed "s#^$prefix#$siteprefix#"` ;; +*) dflt=$siteman3dir ;; esac case "$dflt" in ''|' ') dflt=none ;; @@ -8630,15 +8627,13 @@ esac fn=dn+~ rp='Pathname where the site-specific library manual pages should be installed?' . ./getfile -siteman3="$ans" -siteman3exp="$ansexp" -: Use ' ' for none so value is preserved next time through Configure -$test X"$siteman3" = "X" && siteman3=' ' +siteman3dir="$ans" +siteman3direxp="$ansexp" : Change installation prefix, if necessary. if $test X"$prefix" != X"$installprefix"; then - installsiteman3=`echo "$siteman3exp" | $sed "s#^$prefix#$installprefix#"` + installsiteman3dir=`echo $siteman3direxp | $sed "s#^$prefix#$installprefix#"` else - installsiteman3="$siteman3exp" + installsiteman3dir="$siteman3direxp" fi : determine where add-on public executable scripts go @@ -8955,16 +8950,16 @@ else fi case "$vendorprefix" in -'') vendorhtml1='' - vendorhtml1exp='' +'') vendorhtml1dir='' + vendorhtml1direxp='' ;; *) : determine where vendor-supplied html pages go. : There is no standard location, so try to copy the previously-selected : directory structure for the core html pages. : XXX Better default suggestions would be welcome. - case "$vendorhtml1" in + case "$vendorhtml1dir" in '') dflt=`echo "$html1dir" | $sed "s#^$prefix#$vendorprefix#"` ;; - *) dflt=$vendorhtml1 ;; + *) dflt=$vendorhtml1dir ;; esac case "$dflt" in ''|' ') dflt=none ;; @@ -8972,30 +8967,30 @@ case "$vendorprefix" in fn=dn+~ rp='Pathname for the vendor-supplied html pages?' . ./getfile - vendorhtml1="$ans" - vendorhtml1exp="$ansexp" + vendorhtml1dir="$ans" + vendorhtml1direxp="$ansexp" ;; esac : Use ' ' for none so value is preserved next time through Configure -$test X"$vendorhtml1" = "X" && vendorhtml1=' ' +$test X"$vendorhtml1dir" = "X" && vendorhtml1dir=' ' : Change installation prefix, if necessary. if $test X"$prefix" != X"$installprefix"; then - installvendorhtml1=`echo $vendorhtml1exp | $sed "s#^$prefix#$installprefix#"` + installvendorhtml1dir=`echo $vendorhtml1direxp | $sed "s#^$prefix#$installprefix#"` else - installvendorhtml1="$vendorhtml1exp" + installvendorhtml1dir="$vendorhtml1direxp" fi case "$vendorprefix" in -'') vendorhtml3='' - vendorhtml3exp='' +'') vendorhtml3dir='' + vendorhtml3direxp='' ;; *) : determine where vendor-supplied module html pages go. : There is no standard location, so try to copy the previously-selected : directory structure for the core html pages. : XXX Better default suggestions would be welcome. - case "$vendorhtml3" in + case "$vendorhtml3dir" in '') dflt=`echo "$html3dir" | $sed "s#^$prefix#$vendorprefix#"` ;; - *) dflt=$vendorhtml3 ;; + *) dflt=$vendorhtml3dir ;; esac case "$dflt" in ''|' ') dflt=none ;; @@ -9003,27 +8998,27 @@ case "$vendorprefix" in fn=dn+~ rp='Pathname for the vendor-supplied html pages?' . ./getfile - vendorhtml3="$ans" - vendorhtml3exp="$ansexp" + vendorhtml3dir="$ans" + vendorhtml3direxp="$ansexp" ;; esac : Use ' ' for none so value is preserved next time through Configure -$test X"$vendorhtml3" = "X" && vendorhtml3=' ' +$test X"$vendorhtml3dir" = "X" && vendorhtml3dir=' ' : Change installation prefix, if necessary. if $test X"$prefix" != X"$installprefix"; then - installvendorhtml3=`echo $vendorhtml3exp | $sed "s#^$prefix#$installprefix#"` + installvendorhtml3dir=`echo $vendorhtml3direxp | $sed "s#^$prefix#$installprefix#"` else - installvendorhtml3="$vendorhtml3exp" + installvendorhtml3dir="$vendorhtml3direxp" fi case "$vendorprefix" in -'') vendorman1='' - vendorman1exp='' +'') vendorman1dir='' + vendorman1direxp='' ;; *) : determine where vendor-supplied manual pages go. - case "$vendorman1" in + case "$vendorman1dir" in '') dflt=`echo "$man1dir" | $sed "s#^$prefix#$vendorprefix#"` ;; - *) dflt=$vendorman1 ;; + *) dflt=$vendorman1dir ;; esac case "$dflt" in ''|' ') dflt=none ;; @@ -9031,27 +9026,27 @@ case "$vendorprefix" in fn=nd~+ rp='Pathname for the vendor-supplied manual section 1 pages?' . ./getfile - vendorman1="$ans" - vendorman1exp="$ansexp" + vendorman1dir="$ans" + vendorman1direxp="$ansexp" ;; esac : Use ' ' for none so value is preserved next time through Configure -$test X"$vendorman1" = "X" && vendorman1=' ' +$test X"$vendorman1dir" = "X" && vendorman1dir=' ' : Change installation prefix, if necessary. if $test X"$prefix" != X"$installprefix"; then - installvendorman1=`echo "$vendorman1exp" | $sed "s#^$prefix#$installprefix#"` + installvendorman1dir=`echo "$vendorman1direxp" | $sed "s#^$prefix#$installprefix#"` else - installvendorman1="$vendorman1exp" + installvendorman1dir="$vendorman1direxp" fi case "$vendorprefix" in -'') vendorman3='' - vendorman3exp='' +'') vendorman3dir='' + vendorman3direxp='' ;; *) : determine where vendor-supplied module manual pages go. - case "$vendorman3" in + case "$vendorman3dir" in '') dflt=`echo "$man3dir" | $sed "s#^$prefix#$vendorprefix#"` ;; - *) dflt=$vendorman3 ;; + *) dflt=$vendorman3dir ;; esac case "$dflt" in ''|' ') dflt=none ;; @@ -9059,17 +9054,17 @@ case "$vendorprefix" in fn=nd~+ rp='Pathname for the vendor-supplied manual section 3 pages?' . ./getfile - vendorman3="$ans" - vendorman3exp="$ansexp" + vendorman3dir="$ans" + vendorman3direxp="$ansexp" ;; esac : Use ' ' for none so value is preserved next time through Configure -$test X"$vendorman3" = "X" && vendorman3=' ' +$test X"$vendorman3dir" = "X" && vendorman3dir=' ' : Change installation prefix, if necessary. if $test X"$prefix" != X"$installprefix"; then - installvendorman3=`echo "$vendorman3exp" | $sed "s#^$prefix#$installprefix#"` + installvendorman3dir=`echo "$vendorman3direxp" | $sed "s#^$prefix#$installprefix#"` else - installvendorman3="$vendorman3exp" + installvendorman3dir="$vendorman3direxp" fi case "$vendorprefix" in @@ -9815,7 +9810,7 @@ echo " " echo "Checking whether your compiler can handle __attribute__ ..." >&4 $cat >attrib.c <<'EOCP' #include -void croak (char* pat,...) __attribute__((format(printf,1,2),noreturn)); +void croak (char* pat,...) __attribute__((__format__(__printf__,1,2),noreturn)); EOCP if $cc $ccflags -c attrib.c >attrib.out 2>&1 ; then if $contains 'warning' attrib.out >/dev/null 2>&1; then @@ -14233,10 +14228,6 @@ eval $inlibc set munmap d_munmap eval $inlibc -: see if nanosleep exists -set nanosleep d_nanosleep -eval $inlibc - : see if nice exists set nice d_nice eval $inlibc @@ -14709,6 +14700,10 @@ esac set d_pthread_atfork eval $setvar +: see if pthread_attr_setscope exists +set pthread_attr_setscope d_pthread_attr_setscope +eval $inlibc + : see whether the various POSIXish _yields exist $cat >try.c <." >&4 val="$undef" fi -$rm -f try try.c try.h +$rm -f try try.c set d_union_semun eval $setvar : see how to do semctl IPC_STAT case "$d_sem" in $define) - : see whether semctl IPC_STAT can use union semun echo " " $cat > try.h < try.c < try.c < #include #include @@ -15327,15 +15324,16 @@ int main() { return 0; } END - val="$undef" - set try - if eval $compile; then - xxx=`$run ./try` - case "$xxx" in - semun) val="$define" ;; - esac - fi - $rm -f try try.c + set try + if eval $compile; then + xxx=`$run ./try` + case "$xxx" in + semun) val="$define" ;; + esac + fi + $rm -f try try.c + ;; + esac set d_semctl_semun eval $setvar case "$d_semctl_semun" in @@ -15349,7 +15347,10 @@ END esac : see whether semctl IPC_STAT can use struct semid_ds pointer - $cat > try.c <<'END' + val="$undef" + case "$d_semctl_semid_ds" in + '') + $cat > try.c <<'END' #include #include #include @@ -15385,15 +15386,16 @@ int main() { return 0; } END - val="$undef" - set try - if eval $compile; then - xxx=`$run ./try` - case "$xxx" in - semid_ds) val="$define" ;; - esac - fi - $rm -f try try.c + set try + if eval $compile; then + xxx=`$run ./try` + case "$xxx" in + semid_ds) val="$define" ;; + esac + fi + $rm -f try try.c + ;; + esac set d_semctl_semid_ds eval $setvar case "$d_semctl_semid_ds" in @@ -17229,9 +17231,9 @@ esac : set the base revision baserev=5.0 -: how do we catenate cpp tokens here? +: how do we concatenate cpp tokens here? echo " " -echo "Checking to see how your cpp does stuff like catenate tokens..." >&4 +echo "Checking to see how your cpp does stuff like concatenate tokens..." >&4 $cat >cpp_stuff.c <<'EOCP' #define RCAT(a,b)a/**/b #define ACAT(a,b)a ## b @@ -17250,8 +17252,8 @@ elif $contains 'Reiser' cpp_stuff.out >/dev/null 2>&1; then cpp_stuff=1 else $cat >&4 <&4 for i in $avail_ext; do - case " $i " in - " $noextensions ") echo "Ignoring extension $i." ;; + case " $noextensions " in + *" $i "*) echo "Ignoring extension $i." ;; *) echo "Keeping extension $i."; keepextensions="$keepextensions $i" ;; @@ -20708,7 +20710,6 @@ d_msgsnd='$d_msgsnd' d_msync='$d_msync' d_munmap='$d_munmap' d_mymalloc='$d_mymalloc' -d_nanosleep='$d_nanosleep' d_nice='$d_nice' d_nl_langinfo='$d_nl_langinfo' d_nv_preserves_uv='$d_nv_preserves_uv' @@ -20726,6 +20727,7 @@ d_poll='$d_poll' d_portable='$d_portable' d_procselfexe='$d_procselfexe' d_pthread_atfork='$d_pthread_atfork' +d_pthread_attr_setscope='$d_pthread_attr_setscope' d_pthread_yield='$d_pthread_yield' d_pwage='$d_pwage' d_pwchange='$d_pwchange' @@ -21080,21 +21082,21 @@ installprivlib='$installprivlib' installscript='$installscript' installsitearch='$installsitearch' installsitebin='$installsitebin' -installsitehtml1='$installsitehtml1' -installsitehtml3='$installsitehtml3' +installsitehtml1dir='$installsitehtml1dir' +installsitehtml3dir='$installsitehtml3dir' installsitelib='$installsitelib' -installsiteman1='$installsiteman1' -installsiteman3='$installsiteman3' +installsiteman1dir='$installsiteman1dir' +installsiteman3dir='$installsiteman3dir' installsitescript='$installsitescript' installstyle='$installstyle' installusrbinperl='$installusrbinperl' installvendorarch='$installvendorarch' installvendorbin='$installvendorbin' -installvendorhtml1='$installvendorhtml1' -installvendorhtml3='$installvendorhtml3' +installvendorhtml1dir='$installvendorhtml1dir' +installvendorhtml3dir='$installvendorhtml3dir' installvendorlib='$installvendorlib' -installvendorman1='$installvendorman1' -installvendorman3='$installvendorman3' +installvendorman1dir='$installvendorman1dir' +installvendorman3dir='$installvendorman3dir' installvendorscript='$installvendorscript' intsize='$intsize' issymlink='$issymlink' @@ -21150,6 +21152,7 @@ man3dir='$man3dir' man3direxp='$man3direxp' man3ext='$man3ext' mips_type='$mips_type' +mistrustnm='$mistrustnm' mkdir='$mkdir' mmaptype='$mmaptype' modetype='$modetype' @@ -21274,17 +21277,17 @@ sitearch='$sitearch' sitearchexp='$sitearchexp' sitebin='$sitebin' sitebinexp='$sitebinexp' -sitehtml1='$sitehtml1' -sitehtml1exp='$sitehtml1exp' -sitehtml3='$sitehtml3' -sitehtml3exp='$sitehtml3exp' +sitehtml1dir='$sitehtml1dir' +sitehtml1direxp='$sitehtml1direxp' +sitehtml3dir='$sitehtml3dir' +sitehtml3direxp='$sitehtml3direxp' sitelib='$sitelib' sitelib_stem='$sitelib_stem' sitelibexp='$sitelibexp' -siteman1='$siteman1' -siteman1exp='$siteman1exp' -siteman3='$siteman3' -siteman3exp='$siteman3exp' +siteman1dir='$siteman1dir' +siteman1direxp='$siteman1direxp' +siteman3dir='$siteman3dir' +siteman3direxp='$siteman3direxp' siteprefix='$siteprefix' siteprefixexp='$siteprefixexp' sitescript='$sitescript' @@ -21384,17 +21387,17 @@ vendorarch='$vendorarch' vendorarchexp='$vendorarchexp' vendorbin='$vendorbin' vendorbinexp='$vendorbinexp' -vendorhtml1='$vendorhtml1' -vendorhtml1exp='$vendorhtml1exp' -vendorhtml3='$vendorhtml3' -vendorhtml3exp='$vendorhtml3exp' +vendorhtml1dir='$vendorhtml1dir' +vendorhtml1direxp='$vendorhtml1direxp' +vendorhtml3dir='$vendorhtml3dir' +vendorhtml3direxp='$vendorhtml3direxp' vendorlib='$vendorlib' vendorlib_stem='$vendorlib_stem' vendorlibexp='$vendorlibexp' -vendorman1='$vendorman1' -vendorman1exp='$vendorman1exp' -vendorman3='$vendorman3' -vendorman3exp='$vendorman3exp' +vendorman1dir='$vendorman1dir' +vendorman1direxp='$vendorman1direxp' +vendorman3dir='$vendorman3dir' +vendorman3direxp='$vendorman3direxp' vendorprefix='$vendorprefix' vendorprefixexp='$vendorprefixexp' vendorscript='$vendorscript'