From: Jarkko Hietaniemi Date: Thu, 24 Feb 2000 19:26:33 +0000 (+0000) Subject: Largefileness in Solaris doesn't require long longs; X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=6f587e792af4c67f5f5661a100d005c762882b46;p=p5sagit%2Fp5-mst-13.2.git Largefileness in Solaris doesn't require long longs; use64bits enhancements; introduce usefull64bits. p4raw-id: //depot/cfgperl@5244 --- diff --git a/hints/aix.sh b/hints/aix.sh index d78494b..4addec6 100644 --- a/hints/aix.sh +++ b/hints/aix.sh @@ -222,10 +222,6 @@ EOM exit 1 ;; esac - case "$ccflags" in - *-DUSE_64_BITS*) ;; - *) ccflags="$ccflags -DUSE_64_BITS" ;; - esac # When a 64-bit cc becomes available $archname64 # may need setting so that $archname gets it attached. ;; diff --git a/hints/hpux.sh b/hints/hpux.sh index 6ba51cf..ad213f2 100644 --- a/hints/hpux.sh +++ b/hints/hpux.sh @@ -101,15 +101,6 @@ EOM ;; esac -# Backward compatibility (uselonglong is deprecated). -case "$uselonglolong" in -"$define"|true|[yY]*) - case "$use64bits" in - '') use64bits="$define" ;; - esac - ;; -esac - # Determine the architecture type of this system. # Keep leading tab below -- Configure Black Magic -- RAM, 03/02/97 xxOsRevMajor=`uname -r | sed -e 's/^[^0-9]*//' | cut -d. -f1`; diff --git a/hints/irix_6.sh b/hints/irix_6.sh index 17a9e00..8dc3cba 100644 --- a/hints/irix_6.sh +++ b/hints/irix_6.sh @@ -248,15 +248,6 @@ EOM exit 1 ;; esac - case "$cc $ccflags" in - *-n32*) - case "$ccflags" in - *-DUSE_64_BITS*) ;; - *) ccflags="$ccflags -DUSE_64_BITS" ;; - esac - archname64="-n32" - ;; - esac ;; esac EOCBU diff --git a/hints/solaris_2.sh b/hints/solaris_2.sh index cbc71d8..dc11d82 100644 --- a/hints/solaris_2.sh +++ b/hints/solaris_2.sh @@ -333,33 +333,13 @@ EOM esac EOCBU -# This script UU/uselfs.cbu will get 'called-back' by Configure -# after it has prompted the user for whether to use large files. -cat > UU/uselfs.cbu <<'EOCBU' case "$uselargefiles" in $define|true|[yY]*) - lfcflags="`getconf LFS_CFLAGS 2>/dev/null`" - lfldflags="`getconf LFS_LDFLAGS 2>/dev/null`" - lflibs="`getconf LFS_LIBS 2>/dev/null|sed -e 's@^-l@@' -e 's@ -l@ @g`" - case "$lfcflags$lfldflags$lflibs" in - '');; - *) use64bits="$define" - echo "(Large files in Solaris require also using long longs...)" - case "$ccflags" in - *-DUSE_64_BITS*) ;; - *) ccflags="$ccflags -DUSE_64_BITS" ;; - esac - ccflags="$ccflags $lfcflags" - ldflags="$ldflags $lfldflags" - libswanted="$libswanted $lflibs" - ;; - esac - lfcflags='' - lfldflags='' - lflibs='' - ;; + ccflags="$ccflags `getconf LFS_CFLAGS 2>/dev/null`" + ldflags="$ldflags `getconf LFS_LDFLAGS 2>/dev/null`" + libswanted="$libswanted `getconf LFS_LIBS 2>/dev/null|sed -e 's@^-l@@' -e 's@ -l@ @g`" + ;; esac -EOCBU # This script UU/use64bits.cbu will get 'called-back' by Configure # after it has prompted the user for whether to use 64 bits. @@ -375,16 +355,25 @@ EOM exit 1 ;; esac - case "$ccflags" in - *-DUSE_64_BITS*) ;; - *) ccflags="$ccflags -DUSE_64_BITS" ;; - esac # When a 64-bit cc becomes available $archname64 # may need setting so that $archname gets it attached. ;; esac EOCBU +case "$usefull64bits" in +$define|true|[yY]*) + case "$ccflags" in + *-DUSE_FULL_64_BITS*) ;; + *) ccflags="$ccflags -DUSE_FULL_64_BITS" ;; + esac + ccflags="$ccflags `getconf XBS5_LP64_OFF64_CFLAGS`" + ldflags="$ccflags `getconf XBS5_LP64_OFF64_LDFLAGS`" + lddlflags="$lddlflags -G `getconf XBS5_LP64_OFF64_LDFLAGS`" + loclibpth=/usr/lib/sparcv9 + ;; +esac + # This is just a trick to include some useful notes. cat > /dev/null <<'End_of_Solaris_Notes'