Nicholas Clifton 11c397
diff -rup ../binutils-2.19.51.0.10.orig/bfd/configure ./bfd/configure
Nicholas Clifton 11c397
--- ../binutils-2.19.51.0.10.orig/bfd/configure	2009-06-22 16:16:08.000000000 +0100
Nicholas Clifton 11c397
+++ ./bfd/configure	2009-06-22 16:16:14.000000000 +0100
Nicholas Clifton 11c397
@@ -13924,11 +13924,13 @@ if test "x${ac_cv_sizeof_long}" = "x8"; 
Jan Kratochvil 4140ce
   BFD_HOST_64BIT_LONG=1
Jan Kratochvil 4140ce
   test -n "${HOST_64BIT_TYPE}" || HOST_64BIT_TYPE="long"
Jan Kratochvil 4140ce
   test -n "${HOST_U_64BIT_TYPE}" || HOST_U_64BIT_TYPE="unsigned long"
Jan Kratochvil 4140ce
-elif test "x${ac_cv_sizeof_long_long}" = "x8"; then
Jan Kratochvil 4140ce
+fi
Jan Kratochvil 4140ce
+if test "x${ac_cv_sizeof_long_long}" = "x8"; then
Jan Kratochvil 4140ce
   BFD_HOST_64BIT_LONG_LONG=1
Jan Kratochvil 4140ce
   test -n "${HOST_64BIT_TYPE}" || HOST_64BIT_TYPE="long long"
Jan Kratochvil 4140ce
   test -n "${HOST_U_64BIT_TYPE}" || HOST_U_64BIT_TYPE="unsigned long long"
Jan Kratochvil 4140ce
-  if test "x${ac_cv_sizeof_void_p}" = "x8"; then
Jan Kratochvil 4140ce
+  if test "x${ac_cv_sizeof_void_p}" = "x8" \
Jan Kratochvil 4140ce
+          -a "x${ac_cv_sizeof_long}" != "x8"; then
Jan Kratochvil 4140ce
     BFD_HOSTPTR_T="unsigned long long"
Jan Kratochvil 4140ce
   fi
Jan Kratochvil 4140ce
 fi
Nicholas Clifton 11c397
diff -rup ../binutils-2.19.51.0.10.orig/bfd/configure.in ./bfd/configure.in
Nicholas Clifton 11c397
--- ../binutils-2.19.51.0.10.orig/bfd/configure.in	2009-06-22 16:16:08.000000000 +0100
Nicholas Clifton 11c397
+++ ./bfd/configure.in	2009-06-22 16:16:14.000000000 +0100
Nicholas Clifton 11c397
@@ -172,11 +172,13 @@ if test "x${ac_cv_sizeof_long}" = "x8"; 
Jan Kratochvil 4140ce
   BFD_HOST_64BIT_LONG=1
Jan Kratochvil 4140ce
   test -n "${HOST_64BIT_TYPE}" || HOST_64BIT_TYPE="long"
Jan Kratochvil 4140ce
   test -n "${HOST_U_64BIT_TYPE}" || HOST_U_64BIT_TYPE="unsigned long"
Jan Kratochvil 4140ce
-elif test "x${ac_cv_sizeof_long_long}" = "x8"; then
Jan Kratochvil 4140ce
+fi
Jan Kratochvil 4140ce
+if test "x${ac_cv_sizeof_long_long}" = "x8"; then
Jan Kratochvil 4140ce
   BFD_HOST_64BIT_LONG_LONG=1
Jan Kratochvil 4140ce
   test -n "${HOST_64BIT_TYPE}" || HOST_64BIT_TYPE="long long"
Jan Kratochvil 4140ce
   test -n "${HOST_U_64BIT_TYPE}" || HOST_U_64BIT_TYPE="unsigned long long"
Jan Kratochvil 4140ce
-  if test "x${ac_cv_sizeof_void_p}" = "x8"; then
Jan Kratochvil 4140ce
+  if test "x${ac_cv_sizeof_void_p}" = "x8" \
Jan Kratochvil 4140ce
+          -a "x${ac_cv_sizeof_long}" != "x8"; then
Jan Kratochvil 4140ce
     BFD_HOSTPTR_T="unsigned long long"
Jan Kratochvil 4140ce
   fi
Jan Kratochvil 4140ce
 fi