diff options
author | Andy Polyakov <appro@openssl.org> | 2003-11-20 19:33:20 +0100 |
---|---|---|
committer | Andy Polyakov <appro@openssl.org> | 2003-11-20 19:33:20 +0100 |
commit | 0a4c8baf5ef506b440a907cb0191bcd0493e1bed (patch) | |
tree | 45d29a34d78ecb4a058ba764bc5f710775d3781b /config | |
parent | Make sure to initialize AES counters to obtain proper results. (diff) | |
download | openssl-0a4c8baf5ef506b440a907cb0191bcd0493e1bed.tar.xz openssl-0a4c8baf5ef506b440a907cb0191bcd0493e1bed.zip |
./config failed to correctly detect if gcc uses 64-bit ABI on HP-UX.
PR: 772
Diffstat (limited to 'config')
-rwxr-xr-x | config | 9 |
1 files changed, 5 insertions, 4 deletions
@@ -134,7 +134,7 @@ case "${SYSTEM}:${RELEASE}:${VERSION}:${MACHINE}" in HPUXVER=`echo ${RELEASE}|sed -e 's/[^.]*.[0B]*//'` case "$HPUXVER" in 1[0-9].*) # HPUX 10 and 11 targets are unified - echo "${MACHINE}-hp-hpux10"; exit 0 + echo "${MACHINE}-hp-hpux1x"; exit 0 ;; *) echo "${MACHINE}-hp-hpux"; exit 0 @@ -410,9 +410,10 @@ if [ "$SYSTEM" = "HP-UX" ];then 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 + # We check if the preprocessor symbol __LP64__ is defined... + if echo "__LP64__" | gcc -v -E -x c - 2>/dev/null | grep "^__LP64__" 2>&1 > /dev/null; then + : # __LP64__ has slipped through, it therefore is not defined + else GCC_BITS="64" fi fi |