ccflags="$cc_cppflags"
if [ "X$gccversion" = "X" ]; then
# Done too late in Configure if hinted
- gccversion=`$cc --version | sed 's/.*(GCC) *//'`
+ gccversion=`$cc -dumpversion`
fi
case "$gccversion" in
[012]*) # HP-UX and gcc-2.* break UINT32_MAX :-(
done
[ -z "$cc_found" ] && cc_found=`which cc`
what $cc_found >&4
- ccversion=`what $cc_found | awk '/Compiler/{print $2}/Itanium/{print $6,$7}/for Integrity/{print $7}'`
+ ccversion=`what $cc_found | awk '/Compiler/{print $2}/Itanium/{print $6,$7}/for Integrity/{print $6}'`
case "$ccflags" in
"-Ae "*) ;;
*) ccflags="-Ae $cc_cppflags"
echo '#include <stdio.h>\nint main(){long l;printf("%d\\n",sizeof(l));}'>try.c
$cc -o try $ccflags $ldflags try.c
if [ "`try`" = "8" ]; then
- cat <<EOM >&4
+ case "$use64bitall" in
+ $define|true|[Yy]) ;;
+ *) cat <<EOM >&4
*** This version of gcc uses 64 bit longs. -Duse64bitall is
*** implicitly set to enable continuation
EOM
+ esac
use64bitall=$define
gcc_64native=yes
fi
EOM
regexec_cflags=''
doop_cflags=''
+op_cflags=''
fi
case "$ccisgcc" in
# maint (5.8.8+) and blead (5.9.3+)
# -O1/+O1 passed all tests (m)'05 [ 10 Jan 2005 ]
optimize="$opt" ;;
- *) doop_cflags="optimize=\"$opt\"" ;;
+ *) doop_cflags="optimize=\"$opt\""
+ op_cflags="optimize=\"$opt\"" ;;
esac
;;
esac
set `echo X "$libswanted "| sed -e 's/ c / pthread c /'`
shift
libswanted="$*"
- fi
+ # HP-UX 11.X seems to have no easy
+ # way of detecting these *time_r protos.
+ d_gmtime_r_proto='define'
+ gmtime_r_proto='REENTRANT_PROTO_S_TS'
+ d_localtime_r_proto='define'
+ localtime_r_proto='REENTRANT_PROTO_S_TS'
+ fi
;;
esac
EOCBU