summaryrefslogtreecommitdiff
path: root/hints/hpux.sh
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2000-03-13 05:03:37 +0000
committerJarkko Hietaniemi <jhi@iki.fi>2000-03-13 05:03:37 +0000
commit43bf06b71cccf28eee4a8747add26d531e3cf2e6 (patch)
tree12e8539d9b99b6c2061d091f79f76adf8a387b61 /hints/hpux.sh
parenta0147706c7338180f73e56bd8451114029a08571 (diff)
downloadperl-43bf06b71cccf28eee4a8747add26d531e3cf2e6.tar.gz
hints nibbling continues
p4raw-id: //depot/cfgperl@5698
Diffstat (limited to 'hints/hpux.sh')
-rw-r--r--hints/hpux.sh29
1 files changed, 11 insertions, 18 deletions
diff --git a/hints/hpux.sh b/hints/hpux.sh
index 4a22643796..e4da964725 100644
--- a/hints/hpux.sh
+++ b/hints/hpux.sh
@@ -179,30 +179,26 @@ EOM
*LP64*|*PA-RISC2.0*) ;;
*) xxx=/no/64-bit$xxx ;;
esac'
- case "$ccisgcc" in
- "$define") ld=$cc ;;
- *) ld=/usr/bin/ld ;;
- esac
+ if test -n "$ccisgcc" -o -n "$gccversion"; then
+ ld="$cc"
+ else
+ ld=/usr/bin/ld
+ fi
ar=/usr/bin/ar
full_ar=$ar
- case "$ccisgcc" in
- "$define") ;;
- *) # The strict ANSI mode (-Aa) doesn't like the LL suffixes.
+ if test -z "$ccisgcc" -a -z "$gccversion"; then
+ # The strict ANSI mode (-Aa) doesn't like the LL suffixes.
ccflags=`echo " $ccflags "|sed 's@ -Aa @ @g'`
case "$ccflags" in
*-Ae*) ;;
*) ccflags="$ccflags -Ae" ;;
esac
- ;;
- esac
+ fi
set `echo " $libswanted " | sed -e 's@ dl @ @'`
libswanted="$*"
- case "$ccisgcc" in
- "$define") ;;
- esac
;;
esac
@@ -211,7 +207,6 @@ case "$ccisgcc" in
"$define") test -d /lib/pa1.1 && ccflags="$ccflags -L/lib/pa1.1" ;;
esac
-
case "$ccisgcc" in
"$define") ;;
*) case "`getconf KERNEL_BITS 2>/dev/null`" in
@@ -392,16 +387,14 @@ case "$uselargefiles" in
# but we cheat for now.
ccflags="$ccflags -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
- case "$ccisgcc" in
- "$define") ;;
- *) # The strict ANSI mode (-Aa) doesn't like large files.
+ if test -z "$ccisgcc" -a -z "$gccversion"; then
+ # The strict ANSI mode (-Aa) doesn't like large files.
ccflags=`echo " $ccflags "|sed 's@ -Aa @ @g'`
case "$ccflags" in
*-Ae*) ;;
*) ccflags="$ccflags -Ae" ;;
esac
- ;;
- esac
+ fi
;;
esac