summaryrefslogtreecommitdiff
path: root/hints/hpux.sh
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2000-01-28 09:52:22 +0000
committerJarkko Hietaniemi <jhi@iki.fi>2000-01-28 09:52:22 +0000
commit1583b7694e3bb2614d652f0ca30669f35da51d42 (patch)
tree8308c2819f7d4c60c7dcfdd536608c580cb93a24 /hints/hpux.sh
parentcc31225e4d4aa42bdd0b59e2f2e27664df411220 (diff)
downloadperl-1583b7694e3bb2614d652f0ca30669f35da51d42.tar.gz
In HP-UX no largefiles if no 64 bits.
p4raw-id: //depot/cfgperl@4919
Diffstat (limited to 'hints/hpux.sh')
-rw-r--r--hints/hpux.sh27
1 files changed, 20 insertions, 7 deletions
diff --git a/hints/hpux.sh b/hints/hpux.sh
index 66fe7c4606..b1fa80aa81 100644
--- a/hints/hpux.sh
+++ b/hints/hpux.sh
@@ -290,6 +290,10 @@ EOM
esac
EOCBU
+# Existence of the 64-bit libraries dictating whether to use large files?
+# Twisted? You betcha.
+test -f /lib/pa20_64/libc.sl || uselargefiles="$undef"
+
# This script UU/uselfs.cbu will get 'called-back' by Configure
# after it has prompted the user for whether to use 64 bits.
cat > UU/uselfs.cbu <<'EOCBU'
@@ -305,16 +309,25 @@ $define|true|[yY]*)
# (+DD64), too. A callback file (a hack) calling another, yuck.
case "$use64bits" in
$undef|false|[nN]*|'')
- use64bits="$define"
- if $test -f use64bits.cbu; then
- echo "(Large files in HP-UX require also 64-bitness, picking up 64-bit hints...)"
- . ./use64bits.cbu
+ if [ -f /lib/pa20_64/libc.sl ]; then
+ use64bits="$define"
+ if $test -f use64bits.cbu; then
+ echo "(Large files in HP-UX require also 64-bitness, picking up 64-bit hints...)"
+ . ./use64bits.cbu
+ fi
+ else
+ echo "(No 64-bit libraries, therefore no large files, either...)"
+ uselargefiles="$undef"
fi
;;
+ *) use64bits="$define" ;;
esac
- ccflags="$ccflags $lfcflags"
- ldflags="$ldflags $ldldflags"
- libswanted="$libswanted $lflibs"
+ case "$use64bits" in
+ $define) ccflags="$ccflags $lfcflags"
+ ldflags="$ldflags $ldldflags"
+ libswanted="$libswanted $lflibs"
+ ;;
+ esac
;;
esac
lfcflags=''