diff options
author | Alan Modra <amodra@gmail.com> | 2007-09-13 14:58:47 +0000 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2007-09-13 14:58:47 +0000 |
commit | bce5e5c97f9a4eb337885de846187dc288533d79 (patch) | |
tree | a140caa0290625286869483b67217d0e7d2a65ec /bfd/configure.in | |
parent | 39dbeff83eda4b7d3c2799e698db3c047e9d3a22 (diff) | |
download | gdb-bce5e5c97f9a4eb337885de846187dc288533d79.zip gdb-bce5e5c97f9a4eb337885de846187dc288533d79.tar.gz gdb-bce5e5c97f9a4eb337885de846187dc288533d79.tar.bz2 |
bfd/
* configure.in: Delete BFD_HOST_LONG_LONG and bfd checks for
long long. Partly revert 2007-07-12 change, so that
BFD_HOST_64BIT_LONG and BFD_HOST_64BIT_LONG_LONG are set
independent of "void *" size.
* configure: Regenerate.
* config.in: Regenerate.
* Makefile.in: Regenerate.
bfd/doc/
* Makefile.in: Regenerate.
Diffstat (limited to 'bfd/configure.in')
-rw-r--r-- | bfd/configure.in | 26 |
1 files changed, 8 insertions, 18 deletions
diff --git a/bfd/configure.in b/bfd/configure.in index aecda8b..7210308 100644 --- a/bfd/configure.in +++ b/bfd/configure.in @@ -108,39 +108,30 @@ 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, -[AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[]], [[unsigned long long ll = 18446744073709551615ULL;]])],[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_CHECK_SIZEOF(long long) -fi - +AC_CHECK_SIZEOF(long long) AC_CHECK_SIZEOF(void *) AC_CHECK_SIZEOF(long) if test "x${ac_cv_sizeof_void_p}" = "x8"; then host64=true - if test "x${ac_cv_sizeof_long}" = "x8"; then +fi + +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 + 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" + if test "x${ac_cv_sizeof_void_p}" = "x8"; then + BFD_HOSTPTR_T="unsigned long long" + fi fi if test -n "${HOST_64BIT_TYPE}" -a -n "${HOST_U_64BIT_TYPE}"; then @@ -151,7 +142,6 @@ 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) |