Do not hardcode the list of 64-bit CPUs. Signed-off-by: Paolo Bonzini <pbonz...@redhat.com> --- configure | 14 ++++++++------ 1 files changed, 8 insertions(+), 6 deletions(-)
diff --git a/configure b/configure index cb76177..873e4a6 100755 --- a/configure +++ b/configure @@ -1088,12 +1088,14 @@ esac fi # host long bits test -hostlongbits="32" -case "$cpu" in - x86_64|alpha|ia64|sparc64|ppc64|s390x) - hostlongbits=64 - ;; -esac +cat > $TMPC << EOF +int sizeof_long_is_8[sizeof(long) == 8 ? 1 : -1]; +EOF +if compile_object; then +hostlongbits=64 +else +hostlongbits=32 +fi ########################################## -- 1.7.2.3