summaryrefslogtreecommitdiff
path: root/hints/hpux.sh
diff options
context:
space:
mode:
authorCharles Bailey <bailey@newman.upenn.edu>2000-03-13 02:31:44 +0000
committerbailey <bailey@newman.upenn.edu>2000-03-13 02:31:44 +0000
commita32e82edde068d007913f66170d881838f070558 (patch)
treeb263f210818e8a9977e4a12080386f6af4a33282 /hints/hpux.sh
parentfd7385b97d6c0b537b272f194ad6f88a70d3dd39 (diff)
parent24ef60581ee187bb6d4388e124dfc34b8cf0b663 (diff)
downloadperl-a32e82edde068d007913f66170d881838f070558.tar.gz
Resync with mainline post RC1
p4raw-id: //depot/vmsperl@5690
Diffstat (limited to 'hints/hpux.sh')
-rw-r--r--hints/hpux.sh33
1 files changed, 18 insertions, 15 deletions
diff --git a/hints/hpux.sh b/hints/hpux.sh
index 9a0d362b24..91ba86831e 100644
--- a/hints/hpux.sh
+++ b/hints/hpux.sh
@@ -21,8 +21,10 @@
# Don't assume every OS != 10 is < 10, (e.g., 11).
# From: Chuck Phillips <cdp@fc.hp.com>
# HP-UX 10 pthreads hints: Matthew T Harden <mthard@mthard1.monsanto.com>
+# From: Dominic Dunlop <domo@computer.org>
+# Abort and offer advice if bundled (non-ANSI) C compiler selected
-# This version: August 15, 1997
+# This version: March 8, 2000
# Current maintainer: Jeff Okamoto <okamoto@corp.hp.com>
#--------------------------------------------------------------------
@@ -64,21 +66,19 @@
ccflags="$ccflags -D_HPUX_SOURCE"
# Check if you're using the bundled C compiler. This compiler doesn't support
-# ANSI C (the -Aa flag) nor can it produce shared libraries. Thus we have
-# to turn off dynamic loading.
+# ANSI C (the -Aa flag) and so is not suitable for perl 5.5 and later.
case "$cc" in
'') if cc $ccflags -Aa 2>&1 | $contains 'option' >/dev/null
then
- case "$usedl" in
- '') usedl="$undef"
cat <<'EOM' >&4
-The bundled C compiler can not produce shared libraries, so you will
-not be able to use dynamic loading.
+The bundled C compiler is not ANSI-compliant, and so cannot be used to
+build perl. Please see the file README.hpux for advice on alternative
+compilers.
+Cannot continue, aborting.
EOM
- ;;
- esac
+ exit 1
else
ccflags="$ccflags -Aa" # The add-on compiler supports ANSI C
# cppstdin and cpprun need the -Aa option if you use the unbundled
@@ -92,12 +92,15 @@ EOM
cppminus='-'
cpplast='-'
fi
- # For HP's ANSI C compiler, up to "+O3" is safe for everything
- # except shared libraries (PIC code). Max safe for PIC is "+O2".
- # Setting both causes innocuous warnings.
- #optimize='+O3'
- #cccdlflags='+z +O2'
- optimize='-O'
+ case "$optimize" in
+ # For HP's ANSI C compiler, up to "+O3" is safe for everything
+ # except shared libraries (PIC code). Max safe for PIC is "+O2".
+ # Setting both causes innocuous warnings.
+ '') optimize='-O'
+ #optimize='+O3'
+ #cccdlflags='+z +O2'
+ ;;
+ esac
cc=cc
;;
esac