summaryrefslogtreecommitdiff
path: root/hints/hpux.sh
diff options
context:
space:
mode:
authorGurusamy Sarathy <gsar@cpan.org>2000-03-09 11:34:51 +0000
committerGurusamy Sarathy <gsar@cpan.org>2000-03-09 11:34:51 +0000
commitf1bed3166f0852b804c0d849b76ab3ef76c18a33 (patch)
tree9e19d9aaebe450307f784203570067458c496ee6 /hints/hpux.sh
parentb3f66c6826305b811380423899df98c19b2337d3 (diff)
downloadperl-f1bed3166f0852b804c0d849b76ab3ef76c18a33.tar.gz
abort build on HP-UX if bundled non-ANSI compiler is detected
(from Dominic Dunlop <domo@computer.org>) p4raw-id: //depot/perl@5626
Diffstat (limited to 'hints/hpux.sh')
-rw-r--r--hints/hpux.sh18
1 files changed, 9 insertions, 9 deletions
diff --git a/hints/hpux.sh b/hints/hpux.sh
index 9a0d362b24..67d823adf6 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