--- Configure.orig Mon Jan 6 22:46:42 2014 +++ Configure Thu Apr 17 22:29:09 2014 @@ -3274,13 +3274,14 @@ EOM osvers="$3" ;; dragonfly) osname=dragonfly - osvers="$3" + osvers=`$uname -r | UU/tr '[A-Z]' '[a-z]'` ;; dynixptx*) osname=dynixptx osvers=`echo "$4"|sed 's/^v//'` ;; freebsd) osname=freebsd - osvers="$3" ;; + osvers=`$uname -r | UU/tr '[A-Z]' '[a-z]'` + ;; genix) osname=genix ;; gnu) osname=gnu osvers="$3" ;; @@ -3301,8 +3302,11 @@ EOM ;; MiNT) osname=mint ;; + minix*) osname=minix + osvers=`$uname -r | UU/tr '[A-Z]' '[a-z]'` + ;; netbsd*) osname=netbsd - osvers="$3" + osvers=`$uname -r | UU/tr '[A-Z]' '[a-z]'` ;; news-os) osvers="$3" case "$3" in @@ -3313,7 +3317,7 @@ EOM next*) osname=next ;; nonstop-ux) osname=nonstopux ;; openbsd) osname=openbsd - osvers="$3" + osvers=`$uname -r | UU/tr '[A-Z]' '[a-z]'` ;; os2) osname=os2 osvers="$4" @@ -3328,6 +3332,9 @@ EOM qnx) osname=qnx osvers="$4" ;; + sco_sv) osname=sco_sv + osvers=`$uname -r`v`$uname -v` + ;; solaris) osname=solaris case "$3" in 5*) osvers=`echo $3 | $sed 's/^5/2/g'` ;; @@ -4722,7 +4729,7 @@ case "$plibpth" in esac case "$libpth" in ' ') dlist='';; -'') dlist="$loclibpth $plibpth $glibpth";; +'') dlist="$plibpth $glibpth $loclibpth";; *) dlist="$libpth";; esac @@ -4730,7 +4737,7 @@ esac libpth='' for xxx in $dlist do - if $test -d $xxx; then + if $test -d $xxx -o "$xxx" = "$prefix/lib"; then case " $libpth " in *" $xxx "*) ;; *) libpth="$libpth $xxx";; @@ -4819,7 +4826,7 @@ lib_ext=$_a obj_ext=$_o path_sep=$p_ -rm_try="$rm -f try try$_exe a.out .out try.[cho] try.$_o core core.try* try.core*" +rm_try="@TOOLS_RM@ -f try try$_exe a.out .out try.[cho] try.$_o core core.try* try.core*" : Which makefile gets called first. This is used by make depend. case "$firstmakefile" in @@ -5119,8 +5126,10 @@ default|recommended) # as that way the compiler can do the right implementation dependant # thing. (NWC) case "$gccversion" in - ?*) set stack-protector -fstack-protector + ?*) if test "X$osname" != "Xsolaris"; then + set stack-protector -fstack-protector eval $checkccflag + fi ;; esac ;; @@ -6486,7 +6495,9 @@ rp='Pathname for the site-specific library files?' . ./getfile prefixvar=sitelib . ./setprefixvar -sitelib_stem=`echo "$sitelibexp" | sed "s,/$version$,,"` +if $test -z "$sitelib_stem"; then + sitelib_stem=`echo "$sitelibexp" | sed "s,/$version$,,"` +fi : Determine list of previous versions to include in @INC $cat > getverlist <cpp_stuff.out 2>&1 -if $contains 'Circus' cpp_stuff.out >/dev/null 2>&1; then +# yuck, what a hack. +# MIPSPro compiler/preprocessor behaves differently if invoked on +# stdin vs file. Here we test for stdin, but lateron we use files. +# So force it to work the way we know it does: +if [ x"${OPSYS}" = x"IRIX" ]; then + echo "Hacking MIPSPro on file vs. stdin..." >&4 + echo "We know we can catify or stringify, separately or together!" + cpp_stuff=42 +elif $contains 'Circus' cpp_stuff.out >/dev/null 2>&1; then echo "Oh! Smells like ANSI's been here." >&4 echo "We can catify or stringify, separately or together!" cpp_stuff=42