summaryrefslogtreecommitdiff
path: root/hints
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>1999-07-04 22:26:48 +0000
committerJarkko Hietaniemi <jhi@iki.fi>1999-07-04 22:26:48 +0000
commitefeaa891beb26deace23d0f0d79d1dabb1e7e0a1 (patch)
treef597182453a95d6289a6a7da9334714e016b9403 /hints
parentb0ca42139c4342976311d6fdf20047dfeb44a8cb (diff)
downloadperl-efeaa891beb26deace23d0f0d79d1dabb1e7e0a1.tar.gz
Added 64-bit support for AIX 4.3 or better
based on Martin H. Rusoff's observations. p4raw-id: //depot/cfgperl@3575
Diffstat (limited to 'hints')
-rw-r--r--hints/aix.sh24
1 files changed, 24 insertions, 0 deletions
diff --git a/hints/aix.sh b/hints/aix.sh
index 9c8bc2e9df..0614ce7ee9 100644
--- a/hints/aix.sh
+++ b/hints/aix.sh
@@ -227,3 +227,27 @@ esac
EOCBU
lddlflags="$lddlflags $lddllibc"
+
+# This script UU/use64bits.cbu will get 'called-back' by Configure
+# after it has prompted the user for whether to use 64 bits.
+cat > UU/use64bits.cbu <<'EOCBU'
+case "$use64bits" in
+$define|true|[yY]*)
+ case "`uname -r`" in
+ 3.*|4.[012].*)
+ cat >&4 <<EOM
+AIX `uname -r` does not support 64-bit interfaces.
+You should upgrade to at least AIX 4.3.
+EOM
+ exit 1
+ ;;
+ esac
+ ccflags="$ccflags `getconf XBS5_LPBIG_OFFBIG_CFLAGS`"
+ ccflags="$ccflags -DUSE_LONG_LONG"
+ ldflags="$ldflags `getconf XBS5_LPBIG_OFFBIG_LDFLAGS`"
+ libswanted="$libswanted `getconf XBS5_LPBIG_OFFBIG_LIBS`"
+ # When a 64-bit cc becomes available $archname64
+ # may need setting so that $archname gets it attached.
+ ;;
+esac
+EOCBU