diff options
author | Lutz Jänicke <jaenicke@openssl.org> | 2002-06-14 20:10:24 +0000 |
---|---|---|
committer | Lutz Jänicke <jaenicke@openssl.org> | 2002-06-14 20:10:24 +0000 |
commit | ef92312b417869bd498e5e0a126afab41340b981 (patch) | |
tree | 0652494cc600783885095f0af28184ef1fb44d34 /config | |
parent | 46734617893b42b6678086279c0b12803e566e71 (diff) |
Initial support for hpux64-parisc-gcc
Submitted by: ross.alexander@uk.neceur.com
Reviewed by:
PR: 96
Diffstat (limited to 'config')
-rwxr-xr-x | config | 24 |
1 files changed, 22 insertions, 2 deletions
@@ -403,7 +403,18 @@ else CC=cc fi GCCVER=${GCCVER:-0} - +if [ "$SYSTEM" = "HP-UX" ];then + # By default gcc is a ILP32 compiler (with long long == 64). + GCC_BITS="32" + if [ $GCCVER -ge 30 ]; then + # PA64 support only came in with gcc 3.0.x. + # We look for the preprocessor symbol __LP64__ indicating + # 64bit bit long and pointer. sizeof(int) == 32 on HPUX64. + if gcc -v -E -x c /dev/null 2>&1 | grep __LP64__ > /dev/null; then + GCC_BITS="64" + fi + fi +fi if [ "$SYSTEM" = "SunOS" ]; then if [ $GCCVER -ge 30 ]; then # 64-bit ABI isn't officially supported in gcc 3.0, but it appears @@ -661,7 +672,16 @@ EOF RM*-siemens-sysv4) OUT="ReliantUNIX" ;; *-siemens-sysv4) OUT="SINIX" ;; *-hpux1*) - OUT="hpux-parisc-$CC" + if [ $CC = "gcc" ]; + then + if [ $GCC_BITS = "64" ]; then + OUT="hpux64-parisc-gcc" + else + OUT="hpux-parisc-gcc" + fi + else + OUT="hpux-parisc-$CC" + fi KERNEL_BITS=`(getconf KERNEL_BITS) 2>/dev/null` KERNEL_BITS=${KERNEL_BITS:-32} CPU_VERSION=`(getconf CPU_VERSION) 2>/dev/null` |