X-Git-Url: https://perl5.git.perl.org/perl5.git/blobdiff_plain/9d1a8da0e35084d837dfe2fc0bd2964ee8ade5f1..5b67adb87165fc2a1a93bd8079f144d6390c23c3:/Configure diff --git a/Configure b/Configure index 6c71218..f8982cf 100755 --- a/Configure +++ b/Configure @@ -14,7 +14,7 @@ # Note: this Configure script was generated automatically. Rather than # working with this copy of Configure, you may wish to get metaconfig. # The dist package (which contains metaconfig) is available via SVN: -# svn co https://svn.sourceforge.net/svnroot/dist/trunk/dist +# svn co https://svn.code.sf.net/p/dist/code/trunk/dist # # Though this script was generated by metaconfig from metaunits, it is # OK to send patches against Configure itself. It's up to the Configure @@ -28,7 +28,7 @@ # See Porting/pumpkin.pod for more information on metaconfig. # -# Generated on Sat Mar 9 17:50:01 CET 2013 [metaconfig 3.5 PL0] +# Generated on Mon May 27 09:27:16 CEST 2013 [metaconfig 3.5 PL0] # (with additional metaconfig patches by perlbug@perl.org) cat >c1$$ <&1 >/dev/null ; then is_os2=yes elif test -n "$DJGPP"; then case "X${MACHTYPE:-nonesuchmach}" in - *cygwin) ;; + *cygwin|*msys) ;; *) p_=\; ;; esac fi @@ -1425,10 +1425,10 @@ esac case "$sh" in '') cat >&2 </dev/null; then @@ -3103,7 +3103,7 @@ case "$config_sh" in myuname=`$uname -a 2>/dev/null` $test -z "$myuname" && myuname=`hostname 2>/dev/null` # Downcase everything to avoid ambiguity. -# Remove slashes and single quotes so we can use parts of this in +# Remove slashes and single quotes so we can use parts of this in # directory and file names. # Remove newlines so myuname is sane to use elsewhere. # tr '[A-Z]' '[a-z]' would not work in EBCDIC @@ -3993,7 +3993,7 @@ else fi : determine installation prefix for where package is to be installed. -if $afs; then +if $afs; then $cat <&4 - echo "'nm' won't be sufficient on this sytem." >&4 + echo "'nm' won't be sufficient on this system." >&4 dflt=n fi ;; @@ -8048,7 +8048,21 @@ EOM ;; linux|irix*|gnu*) dflt="-shared $optimize" ;; next) dflt='none' ;; - solaris) dflt='-G' ;; + solaris) # See [perl #66604]. + # On Solaris 11, gcc -m64 on amd64 + # appears not to understand -G. gcc versions at + # least as old as 3.4.3 support -shared, so just + # use that with Solaris 11 and later, but keep + # the old behavior for older Solaris versions. + case "$gccversion" in + '') dflt='-G' ;; + *) case "$osvers" in + 2.?|2.10) dflt='-G' ;; + *) dflt='-shared' ;; + esac + ;; + esac + ;; sunos) dflt='-assert nodefinitions' ;; svr4*|esix*|nonstopux) dflt="-G $ldflags" ;; *) dflt='none' ;; @@ -8384,7 +8398,7 @@ esac : determine where manual pages are on this system echo " " case "$sysman" in -'') +'') syspath='/usr/share/man/man1 /usr/man/man1' syspath="$syspath /usr/man/mann /usr/man/manl /usr/man/local/man1" syspath="$syspath /usr/man/u_man/man1" @@ -8868,7 +8882,13 @@ EOM cont=x while test "$cont"; do case "$MAILDOMAIN" in - '') maildomain="$myhostname$mydomain";; + '') + if $test -s /etc/mailname; then + maildomain=`$cat /etc/mailname` + else + maildomain="$myhostname$mydomain" + fi + ;; *) maildomain="$MAILDOMAIN";; esac case "$cf_email" in @@ -10831,7 +10851,7 @@ else valstd="$undef" fi -: see if varags is available +: see if varargs is available echo " " if $test `./findhdr varargs.h`; then echo " found." >&4 @@ -10883,7 +10903,7 @@ chmod +x varargs : now check which varargs header should be included echo " " i_varhdr='' -val="" +val='' case "$valstd" in "$define") if `./varargs I_STDARG`; then @@ -11965,7 +11985,7 @@ $cat >dirfd.c <= 0) @@ -12468,7 +12488,7 @@ $define) $rm -f $$.h ;; *) - val="$undef"; + val="$undef"; set d_pwquota; eval $setvar set d_pwage; eval $setvar set d_pwchange; eval $setvar @@ -17639,7 +17659,7 @@ EOP if eval $compile_ok; then val="$define" else - echo "But you don't seem to have a useable struct sigaction." >&4 + echo "But you don't seem to have a usable struct sigaction." >&4 val="$undef" fi else @@ -18074,7 +18094,7 @@ EOCP # Respect a hint (or previous) value for perl_static_inline, if there is one. case "$perl_static_inline" in '') # Check the various possibilities, and break out on success. - # For gcc, prefer __inline__, which will still permit + # For gcc, prefer __inline__, which will still permit # cflags.SH to add in -ansi. case "$gccversion" in '') xxx="inline __inline__ __inline _inline";; @@ -18204,11 +18224,11 @@ if test "X$d_strerror" = X -o "X$d_syserrlst" = X; then echo 'strerror() found.' >&4 d_strerror="$define" d_strerrm='strerror(e)' - if set sys_errlist val -a d_syserrlst; eval $csym; $val; then - echo "(You also have sys_errlist[], so we could roll our own strerror.)" + if set sys_errlist val -a d_syserrlst; eval $csym; $val; then + echo "(You also have sys_errlist[], so we could roll our own strerror.)" d_syserrlst="$define" else - echo "(Since you don't have sys_errlist[], sterror() is welcome.)" + echo "(Since you don't have sys_errlist[], strerror() is welcome.)" d_syserrlst="$undef" fi elif xxx=`./findhdr string.h`; test "$xxx" || xxx=`./findhdr strings.h`; \ @@ -18216,7 +18236,7 @@ if test "X$d_strerror" = X -o "X$d_syserrlst" = X; then echo 'strerror() found in string header.' >&4 d_strerror="$define" d_strerrm='strerror(e)' - if set sys_errlist val -a d_syserrlst; eval $csym; $val; then + if set sys_errlist val -a d_syserrlst; eval $csym; $val; then echo "(Most probably, strerror() uses sys_errlist[] for descriptions.)" d_syserrlst="$define" else @@ -19164,7 +19184,7 @@ $rm_try set ebcdic eval $setvar -: length of character in bytes. Is always 1, otherwise it isnt C +: length of character in bytes. Is always 1, otherwise it is not C : This used to be a test using sizeof charsize=1 @@ -19444,7 +19464,7 @@ case "$randfunc" in echo "OK, found random()." >&4 else dflt="rand" - echo "Yick, looks like I have to use rand()." >&4 + echo "Yuck, looks like I have to use rand()." >&4 fi echo " " ;; @@ -19664,7 +19684,7 @@ if $test "X$fflushNULL" = X -o "X$fflushall" = X; then ;; esac fi -: check for fflush NULL behaviour +: check for fflush NULL behavior case "$fflushNULL" in '') set try -DTRY_FFLUSH_NULL $output if eval $compile; then @@ -20362,6 +20382,7 @@ EOCP $rm_try ;; *) echo "You don't have , not checking for va_copy()." >&4 + need_va_copy="$undef" ;; esac @@ -21816,7 +21837,7 @@ case "$yacc" in *-y*) ;; *) yacc="$yacc -y" - echo "(Adding -y option to bison to get yacc-compatible behaviour.)" + echo "(Adding -y option to bison to get yacc-compatible behavior.)" ;; esac ;; @@ -22051,7 +22072,7 @@ EOSH chmod +x Cppsym.try $eunicefix Cppsym.try ./Cppsym < Cppsym.know | $sort | $uniq > Cppsym.true -: Add in any linux cpp "predefined macros": +: Add in any Linux cpp "predefined macros": case "$osname::$gccversion" in *linux*::*.*|*gnukfreebsd*::*.*|gnu::*.*) tHdrH=_tmpHdr @@ -22381,7 +22402,7 @@ find_extensions=' n*|N*) ;; *) echo >&4; echo "Ok. Stopping Configure." >&4; - echo "Please remove the duplicate directory (eg using git clean) and then re-run Configure" >&4; + echo "Please remove the duplicate directory (e.g. using git clean) and then re-run Configure" >&4; exit 1;; esac; echo "Ok. You will need to correct config.sh before running make." >&4; @@ -22770,7 +22791,7 @@ sunos*X4*) ;; *) case "$usedl" in $define|true|[yY]*) - set X `echo " $libs " | sed -e 's@ -lndbm @ @' -e 's@ -lgdbm @ @' -e 's@ -lgdbm_compat @ @' -e 's@ -ldbm @ @' -e 's@ -ldb @ @'` + set X `echo " $libs " | sed -e 's@ -lndbm @ @' -e 's@ -lgdbm @ @' -e 's@ -lgdbm_compat @ @' -e 's@ -ldbm @ @' -e 's@ -ldb @ @'` shift perllibs="$*" ;;