summaryrefslogtreecommitdiff
path: root/hints/hpux_9.sh
diff options
context:
space:
mode:
Diffstat (limited to 'hints/hpux_9.sh')
-rw-r--r--hints/hpux_9.sh17
1 files changed, 15 insertions, 2 deletions
diff --git a/hints/hpux_9.sh b/hints/hpux_9.sh
index 8d2556a2b2..98ff92f228 100644
--- a/hints/hpux_9.sh
+++ b/hints/hpux_9.sh
@@ -1,8 +1,21 @@
+# hints/hpux_9.sh, Perl Configure hints file for Hewlett Packard HP/UX 9.x
+# Use Configure -Dcc=gcc to use gcc.
+ccflags="$ccflags -D_POSIX_SOURCE -D_HPUX_SOURCE"
+case "$cc" in
+'') if cc $ccflags -Aa 2>&1 | $contains 'Unknown option "A"' >/dev/null
+ then # The bundled (limited) compiler doesn't
+ case "$usedl" in # support -Aa for "ANSI C mode".
+ '') usedl="$undef";; # Nor can it produce shared libraries.
+ esac
+ else
+ ccflags="$ccflags -Aa" # The add-on compiler supports ANSI C
+ fi
+ optimize='+O1'
+ ;;
+esac
libswanted='ndbm m dld'
-ccflags="$ccflags -Aa -D_POSIX_SOURCE -D_HPUX_SOURCE"
# ldflags="-Wl,-E -Wl,-a,shared" # Force all shared?
ldflags="-Wl,-E"
-optimize='+O1'
usemymalloc='y'
alignbytes=8
selecttype='int *'