diff options
author | Nick Clifton <nickc@redhat.com> | 2007-07-12 07:16:41 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2007-07-12 07:16:41 +0000 |
commit | d2df793a7137120047017593d26669e5092e3841 (patch) | |
tree | 691f20fd53ad1cb970387e3a5f434824cb1fb2fe /bfd/configure.in | |
parent | db42c6e8ee92965ca26f4ccf2183d26a8c560931 (diff) | |
download | ppe42-binutils-d2df793a7137120047017593d26669e5092e3841.tar.gz ppe42-binutils-d2df793a7137120047017593d26669e5092e3841.zip |
Add support for building on a 64-bit Windows host.
Diffstat (limited to 'bfd/configure.in')
-rw-r--r-- | bfd/configure.in | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/bfd/configure.in b/bfd/configure.in index 1ea98ae025..193907ce2f 100644 --- a/bfd/configure.in +++ b/bfd/configure.in @@ -107,10 +107,12 @@ AC_SUBST(HDEFINES) AC_PROG_INSTALL BFD_HOST_64BIT_LONG=0 +BFD_HOST_64BIT_LONG_LONG=0 BFD_HOST_LONG_LONG=0 BFD_HOST_64_BIT_DEFINED=0 BFD_HOST_64_BIT= BFD_HOST_U_64_BIT= +BFD_HOSTPTR_T="unsigned long" AC_MSG_CHECKING([for long long]) AC_CACHE_VAL(bfd_cv_has_long_long, @@ -121,12 +123,21 @@ if test $bfd_cv_has_long_long = yes; then AC_CHECK_SIZEOF(long long) fi +AC_CHECK_SIZEOF(void *) AC_CHECK_SIZEOF(long) -if test "x${ac_cv_sizeof_long}" = "x8"; then + +if test "x${ac_cv_sizeof_void_p}" = "x8"; then host64=true + if test "x${ac_cv_sizeof_long}" = "x8"; then BFD_HOST_64BIT_LONG=1 test -n "${HOST_64BIT_TYPE}" || HOST_64BIT_TYPE="long" test -n "${HOST_U_64BIT_TYPE}" || HOST_U_64BIT_TYPE="unsigned long" + elif test "x${ac_cv_sizeof_long_long}" = "x8"; then + BFD_HOST_64BIT_LONG_LONG=1 + test -n "${HOST_64BIT_TYPE}" || HOST_64BIT_TYPE="long long" + test -n "${HOST_U_64BIT_TYPE}" || HOST_U_64BIT_TYPE="unsigned long long" + BFD_HOSTPTR_T="unsigned long long" + fi elif test "x${ac_cv_sizeof_long_long}" = "x8"; then test -n "${HOST_64BIT_TYPE}" || HOST_64BIT_TYPE="long long" test -n "${HOST_U_64BIT_TYPE}" || HOST_U_64BIT_TYPE="unsigned long long" @@ -139,10 +150,12 @@ if test -n "${HOST_64BIT_TYPE}" -a -n "${HOST_U_64BIT_TYPE}"; then fi AC_SUBST(BFD_HOST_64BIT_LONG) +AC_SUBST(BFD_HOST_64BIT_LONG_LONG) AC_SUBST(BFD_HOST_LONG_LONG) AC_SUBST(BFD_HOST_64_BIT_DEFINED) AC_SUBST(BFD_HOST_64_BIT) AC_SUBST(BFD_HOST_U_64_BIT) +AC_SUBST(BFD_HOSTPTR_T) BFD_CC_FOR_BUILD |