aboutsummaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>2005-06-05 17:10:39 +0000
committerbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>2005-06-05 17:10:39 +0000
commitb685369795f028535862cb3caddaf219c655db2a (patch)
tree5b9ee45e89d4e9a6adb28c98d9ac2c7deddf1cf5 /configure
parent3f1a88f450fecaf5955642cac074ca4b3a4c2aef (diff)
added HOST_LONG_BITS in configure
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1457 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure7
1 files changed, 7 insertions, 0 deletions
diff --git a/configure b/configure
index ed4c4f745b..9e4bfe03d8 100755
--- a/configure
+++ b/configure
@@ -246,6 +246,12 @@ fi
fi
+# host long bits test
+hostlongbits="32"
+if test "$cpu" = "sparc64" -o "$cpu" = "ia64" -o "$cpu" = "x86_64" -o "$cpu" = "alpha"; then
+ hostlongbits="64"
+fi
+
# check gcc options support
cat > $TMPC <<EOF
int main(void) {
@@ -520,6 +526,7 @@ if test "$bigendian" = "yes" ; then
echo "WORDS_BIGENDIAN=yes" >> $config_mak
echo "#define WORDS_BIGENDIAN 1" >> $config_h
fi
+echo "#define HOST_LONG_BITS $hostlongbits" >> $config_h
if test "$mingw32" = "yes" ; then
echo "CONFIG_WIN32=yes" >> $config_mak
echo "#define CONFIG_WIN32 1" >> $config_h