summaryrefslogtreecommitdiff
path: root/hints
diff options
context:
space:
mode:
Diffstat (limited to 'hints')
-rw-r--r--hints/hpux.sh19
1 files changed, 13 insertions, 6 deletions
diff --git a/hints/hpux.sh b/hints/hpux.sh
index 3ac43ffc5b..ded6d4fe84 100644
--- a/hints/hpux.sh
+++ b/hints/hpux.sh
@@ -3,12 +3,13 @@
# This file is based on
# hints/hpux_9.sh, Perl Configure hints file for Hewlett Packard HP-UX 9.x
# Use Configure -Dcc=gcc to use gcc.
-# From: Jeff Okamoto <okamoto@hpcc123.corp.hp.com>
+# From: Jeff Okamoto <okamoto@corp.hp.com>
# and
# hints/hpux_10.sh, Perl Configure hints file for Hewlett Packard HP-UX 10.x
# From: Giles Lean <giles@nemeton.com.au>
-# This version: December 4, 1996
+# This version: December 27, 1996
+# Current maintainer: Jeff Okamoto <okamoto@corp.hp.com>
# Use Configure -Dcc=gcc to use gcc.
# Use Configure -Dprefix=/usr/local to install in /usr/local.
@@ -51,8 +52,9 @@ xxuname=`uname -r`
if echo $xxuname | $contains '10'
then
# This system is running 10.0
- xxcpu=`printf %#x \`getconf CPU_VERSION\``
- xxcontext=`grep "$xxcpu" /usr/include/sys/unistd.h`
+ xxcpu1=`getconf CPU_VERSION`
+ xxcpu2=`printf %#x ${xxcpu1}`
+ xxcontext=`grep "$xxcpu2" /usr/include/sys/unistd.h`
if echo "$xxcontext" | $contains 'PA-RISC1.1'
then
archname='PA-RISC1.1'
@@ -109,7 +111,12 @@ ccdlflags="-Wl,-E -Wl,-B,deferred $ccdlflags"
usemymalloc='y'
alignbytes=8
-selecttype='int *'
+selecttype='int *'
+
+# For no good reason, HP-UX sets argv[0] to the name of a script
+# executed with #!, which makes $^X wrong. This macro enables a
+# workaround.
+toke_cflags='ccflags="$ccflags -DARG_ZERO_IS_SCRIPT"'
# If your compile complains about FLT_MIN, uncomment the next line
# POSIX_cflags='ccflags="$ccflags -DFLT_MIN=1.17549435E-38"'
@@ -117,7 +124,7 @@ selecttype='int *'
# Comment this out if you don't want to follow the SVR4 filesystem layout
# that HP-UX 10.0 uses
case "$prefix" in
-'') prefix='/opt/perl5' ;;
+'') prefix='/opt/perl5.003' ;;
esac
# Date: Fri, 6 Sep 96 23:15:31 CDT