From: Jarkko Hietaniemi Date: Wed, 30 Aug 2000 13:51:24 +0000 (+0000) Subject: Reset archname and archname64 always, forcing them be X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=45c9e83b07a146ad42e19f44b9def27ecbdcd9e2;p=p5sagit%2Fp5-mst-13.2.git Reset archname and archname64 always, forcing them be recomputed at each Configure run, make Configure and the hints files agree on the naming of largefiles variables. p4raw-id: //depot/perl@6912 --- diff --git a/Configure b/Configure index d4b6dba..4f8f3cb 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 Aug 30 03:53:15 EET DST 2000 [metaconfig 3.0 PL70] +# Generated on Wed Aug 30 16:44:38 EET DST 2000 [metaconfig 3.0 PL70] # (with additional metaconfig patches by perlbug@perl.org) cat >/tmp/c1$$ < UU/uselargefiles.cbu <<'EOCBU' case "$uselargefiles" in ''|$define|true|[yY]*) # Keep these at the left margin. -ccflags_largefiles="`getconf XBS5_ILP32_OFFBIG_CFLAGS 2>/dev/null`" -ldflags_largefiles="`getconf XBS5_ILP32_OFFBIG_LDFLAGS 2>/dev/null`" +ccflags_uselargefiles="`getconf XBS5_ILP32_OFFBIG_CFLAGS 2>/dev/null`" +ldflags_uselargefiles="`getconf XBS5_ILP32_OFFBIG_LDFLAGS 2>/dev/null`" # _Somehow_ in AIX 4.3.1.0 the above getconf call manages to # insert(?) *something* to $ldflags so that later (in Configure) evaluating # $ldflags causes a newline after the '-b64' (the result of the getconf). # (nothing strange shows up in $ldflags even in hexdump; # so it may be something (a bug) in the shell, instead?) # Try it out: just uncomment the below line and rerun Configure: -# echo >&4 "AIX 4.3.1.0 $ldflags_largefiles mystery" ; exit 1 +# echo >&4 "AIX 4.3.1.0 $ldflags_uselargefiles mystery" ; exit 1 # Just don't ask me how AIX does it, I spent hours wondering. - # Therefore the line re-evaluating ldflags_largefiles: it seems to fix + # Therefore the line re-evaluating ldflags_uselargefiles: it seems to fix # the whatever it was that AIX managed to break. --jhi - ldflags_largefiles="`echo $ldflags_largefiles`" + ldflags_uselargefiles="`echo $ldflags_uselargefiles`" # Keep this at the left margin. -libswanted_largefiles="`getconf XBS5_ILP32_OFFBIG_LIBS 2>/dev/null|sed -e 's@^-l@@' -e 's@ -l@ @g`" - case "$ccflags_largefiles$ldflags_largefiles$libs_largefiles" in +libswanted_uselargefiles="`getconf XBS5_ILP32_OFFBIG_LIBS 2>/dev/null|sed -e 's@^-l@@' -e 's@ -l@ @g`" + case "$ccflags_uselargefiles$ldflags_uselargefiles$libs_uselargefiles" in '');; - *) ccflags="$ccflags $ccflags_largefiles" - ldflags="$ldflags $ldflags_largefiles" - libswanted="$libswanted $libswanted_largefiles" + *) ccflags="$ccflags $ccflags_uselargefiles" + ldflags="$ldflags $ldflags_uselargefiles" + libswanted="$libswanted $libswanted_uselargefiles" ;; esac case "$gccversion" in diff --git a/hints/hpux.sh b/hints/hpux.sh index ecfcb6d..522fd46 100644 --- a/hints/hpux.sh +++ b/hints/hpux.sh @@ -388,9 +388,9 @@ case "$uselargefiles" in ''|$define|true|[yY]*) # there are largefile flags available via getconf(1) # but we cheat for now. (Keep that in the left margin.) -ccflags_largefiles="-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64" +ccflags_uselargefiles="-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64" - ccflags="$ccflags $ccflags_largefiles" + ccflags="$ccflags $ccflags_uselargefiles" if test -z "$ccisgcc" -a -z "$gccversion"; then # The strict ANSI mode (-Aa) doesn't like large files. diff --git a/hints/linux.sh b/hints/linux.sh index 0fa46bd..913cfd0 100644 --- a/hints/linux.sh +++ b/hints/linux.sh @@ -283,9 +283,9 @@ cat > UU/uselargefiles.cbu <<'EOCBU' case "$uselargefiles" in ''|$define|true|[yY]*) # Keep this in the left margin. -ccflags_largefiles="-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64" +ccflags_uselargefiles="-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64" - ccflags="$ccflags $ccflags_largefiles" + ccflags="$ccflags $ccflags_uselargefiles" ;; esac EOCBU diff --git a/hints/solaris_2.sh b/hints/solaris_2.sh index f698a50..bf2f195 100644 --- a/hints/solaris_2.sh +++ b/hints/solaris_2.sh @@ -379,13 +379,13 @@ case "$uselargefiles" in ''|$define|true|[yY]*) # Keep these in the left margin. -ccflags_largefiles="`getconf LFS_CFLAGS 2>/dev/null`" -ldflags_largefiles="`getconf LFS_LDFLAGS 2>/dev/null`" -libswanted_largefiles="`getconf LFS_LIBS 2>/dev/null|sed -e 's@^-l@@' -e 's@ -l@ @g`" +ccflags_uselargefiles="`getconf LFS_CFLAGS 2>/dev/null`" +ldflags_uselargefiles="`getconf LFS_LDFLAGS 2>/dev/null`" +libswanted_uselargefiles="`getconf LFS_LIBS 2>/dev/null|sed -e 's@^-l@@' -e 's@ -l@ @g`" - ccflags="$ccflags $ccflags_largefiles" - ldflags="$ldflags $ldflags_largefiles" - libswanted="$libswanted $libswanted_largefiles" + ccflags="$ccflags $ccflags_uselargefiles" + ldflags="$ldflags $ldflags_uselargefiles" + libswanted="$libswanted $libswanted_uselargefiles" ;; esac EOCBU