diff options
author | Larry Wall <lwall@scalpel.netlabs.com> | 1995-11-21 10:01:00 +1200 |
---|---|---|
committer | Larry <lwall@scalpel.netlabs.com> | 1995-11-21 10:01:00 +1200 |
commit | 4633a7c4bad06b471d9310620b7fe8ddd158cccd (patch) | |
tree | 37ebeb26a64f123784fd8fac6243b124767243b0 /hints/hpux.sh | |
parent | 8e07c86ebc651fe92eb7e3b25f801f57cfb8dd6f (diff) | |
download | perl-4633a7c4bad06b471d9310620b7fe8ddd158cccd.tar.gz |
5.002 beta 1
If you're adventurous, have a look at
ftp://ftp.sems.com/pub/outgoing/perl5.0/perl5.002beta1.tar.gz
Many thanks to Andy for doing the integration.
Obviously, if you consult the bugs database, you'll note there are
still plenty of buglets that need fixing, and several enhancements that
I've intended to put in still haven't made it in (Hi, Tim and Ilya).
But I think it'll be pretty stable. And you can start to fiddle around
with prototypes (which are, of course, still totally undocumented).
Packrats, don't worry too much about readvertising this widely.
Nowadays we're on a T1 here, so our bandwidth is okay.
Have the appropriate amount of jollity.
Larry
Diffstat (limited to 'hints/hpux.sh')
-rw-r--r-- | hints/hpux.sh | 51 |
1 files changed, 44 insertions, 7 deletions
diff --git a/hints/hpux.sh b/hints/hpux.sh index 27513ce196..626d069f18 100644 --- a/hints/hpux.sh +++ b/hints/hpux.sh @@ -13,6 +13,9 @@ # Use Configure -Dcc=gcc to use gcc. # Use Configure -Dprefix=/usr/local to install in /usr/local. +# Some users have reported problems with dynamic loading if the +# environment variable LDOPTS='-a archive' . + # Turn on the _HPUX_SOURCE flag to get many of the HP add-ons ccflags="$ccflags -D_HPUX_SOURCE" ldflags="$ldflags" @@ -40,6 +43,45 @@ EOM ;; esac +# Determine the architecture type of this system. +xxuname=`uname -r` +if echo $xxuname | $contains '10' +then + # This system is running 10.0 + xxcontext=`grep $(printf %#x $(getconf CPU_VERSION)) /usr/include/sys/unistd.h` + if echo "$xxcontext" | $contains 'PA-RISC1.1' + then + archname='PA-RISC1.1' + elif echo "$xxcontext" | $contains 'PA-RISC1.0' + then + archname='PA-RISC1.0' + elif echo "$xxcontext" | $contains 'PA-RISC2' + then + archname='PA-RISC2' + else + echo "This 10.0 system is of a PA-RISC type I don't recognize." + echo "Debugging output: $xxcontext" + archname='' + fi +else + # This system is not running 10.0 + xxcontext=`/bin/getcontext` + if echo "$xxcontext" | $contains 'PA-RISC1.1' + then + archname='PA-RISC1.1' + elif echo "$xxcontext" | $contains 'PA-RISC1.0' + then + archname='PA-RISC1.0' + elif echo "$xxcontext" | $contains 'HP-MC' + then + archname='HP-MC68K' + else + echo "I cannot recognize what chip set this system is using." + echo "Debugging output: $xxcontext" + archname='' + fi +fi + # Remove bad libraries that will cause problems # (This doesn't remove libraries that don't actually exist) # -lld is unneeded (and I can't figure out what it's used for anyway) @@ -71,13 +113,8 @@ d_bsdpgrp='define' # If your compile complains about FLT_MIN, uncomment the next line # POSIX_cflags='ccflags="$ccflags -DFLT_MIN=1.17549435E-38"' -# Comment these out if you don't want to follow the SVR4 filesystem layout +# 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' - privlib='/opt/perl5/lib' - archlib='/opt/perl5/lib/hpux' - man3dir='/opt/perl5/man/man3' - ;; +'') prefix='/opt/perl5' ;; esac - |