aboutsummaryrefslogtreecommitdiff
path: root/bfd/configure.in
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2003-09-19 03:55:40 +0000
committerH.J. Lu <hjl.tools@gmail.com>2003-09-19 03:55:40 +0000
commit6726e1ea5d8204965db2e45132a383ab65e19347 (patch)
tree016f91d0d9fc2581b9ed12588e346aa5e4cfcf82 /bfd/configure.in
parent5de3bf90966b027e4a1c63f6331079efc9451a48 (diff)
downloadgdb-6726e1ea5d8204965db2e45132a383ab65e19347.zip
gdb-6726e1ea5d8204965db2e45132a383ab65e19347.tar.gz
gdb-6726e1ea5d8204965db2e45132a383ab65e19347.tar.bz2
2003-09-18 H.J. Lu <hongjiu.lu@intel.com>
* acinclude.m4: Include ../config/accross.m4. * aclocal.m4: Regenerated. * configure.host (HOST_64BIT_TYPE): Remove if it is set to long or long long. (HOST_U_64BIT_TYPE): Remove if it is set to unsigned long long. (host64): Remove if HOST_64BIT_TYPE is set to long. * configure.in (HOST_64BIT_TYPE): Set according to the size of long and long long. (HOST_U_64BIT_TYPE): Likewise. (host64): Likewise. * configure: Regenerated.
Diffstat (limited to 'bfd/configure.in')
-rw-r--r--bfd/configure.in25
1 files changed, 18 insertions, 7 deletions
diff --git a/bfd/configure.in b/bfd/configure.in
index b3a6e68..1cd8e6a 100644
--- a/bfd/configure.in
+++ b/bfd/configure.in
@@ -117,13 +117,6 @@ BFD_HOST_LONG_LONG=0
BFD_HOST_64_BIT_DEFINED=0
BFD_HOST_64_BIT=
BFD_HOST_U_64_BIT=
-if test "x${HOST_64BIT_TYPE}" = "xlong"; then
- BFD_HOST_64BIT_LONG=1
-elif test "x${HOST_64BIT_TYPE}" != "x"; then
- BFD_HOST_64_BIT_DEFINED=1
- BFD_HOST_64_BIT=${HOST_64BIT_TYPE}
- BFD_HOST_U_64_BIT=${HOST_U_64BIT_TYPE}
-fi
AC_MSG_CHECKING([for long long])
AC_CACHE_VAL(bfd_cv_has_long_long,
@@ -133,6 +126,24 @@ bfd_cv_has_long_long=yes, bfd_cv_has_long_long=no)])
AC_MSG_RESULT($bfd_cv_has_long_long)
if test $bfd_cv_has_long_long = yes; then
BFD_HOST_LONG_LONG=1
+ AC_COMPILE_CHECK_SIZEOF(long long)
+fi
+
+AC_COMPILE_CHECK_SIZEOF(long)
+if test "x${ac_cv_sizeof_long}" = "x8"; then
+ host64=true
+ HOST_64BIT_TYPE="long"
+elif test "x${ac_cv_sizeof_long_long}" = "x8"; then
+ HOST_64BIT_TYPE="long long"
+ HOST_U_64BIT_TYPE="unsigned long long"
+fi
+
+if test "x${HOST_64BIT_TYPE}" = "xlong"; then
+ BFD_HOST_64BIT_LONG=1
+elif test "x${HOST_64BIT_TYPE}" != "x"; then
+ BFD_HOST_64_BIT_DEFINED=1
+ BFD_HOST_64_BIT=${HOST_64BIT_TYPE}
+ BFD_HOST_U_64_BIT=${HOST_U_64BIT_TYPE}
fi
AC_SUBST(BFD_HOST_64BIT_LONG)