public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
* [PATCH] Stop using accross.m4 in bfd
@ 2005-05-09 20:53 Kelley Cook
  2005-05-09 21:15 ` Daniel Jacobowitz
  0 siblings, 1 reply; 2+ messages in thread
From: Kelley Cook @ 2005-05-09 20:53 UTC (permalink / raw)
  To: binutils

[-- Attachment #1: Type: text/plain, Size: 443 bytes --]

BFD will soon be the sole user of accross.m4 in uberbaum and I would 
like to be able to delete it.

BFD includes it for AC_COMPILE_CHECK_SIZEOF and that macro's 
functionality has been superceded by autoconf 2.59's AC_CHECK_SIZEOF.

This simple patch replaces those occurences.

Tested with i686-pc-cygwin native and i686-pc-gnu-linux to 
powerpc-unknown-elf newlib cross.  No changes in stripped binaries with 
this patch.

OK to install?



[-- Attachment #2: accross_binutils.patch --]
[-- Type: text/plain, Size: 1398 bytes --]

2005-05-09  Kelley Cook  <kcook@gcc.gnu.org>

	* configure.in: Replace AC_COMPILE_CHECK_SIZEOF with AC_CHECK_SIZEOF.
	* acinclude.m4: Don't sinclude accross.m4.
	* config.in, configure, Makefile.in, doc/Makefile.in: Regenerate

diff -prud ../bfd.orig/acinclude.m4 ./acinclude.m4
--- ../bfd.orig/acinclude.m4	2005-04-14 01:26:17.000000000 -0400
+++ ./acinclude.m4	2005-05-09 16:26:14.707348100 -0400
@@ -1,4 +1,3 @@
-sinclude(../config/accross.m4)
 sinclude(../config/acx.m4)
 sinclude(../bfd/bfd.m4)
 sinclude(../bfd/warning.m4)
diff -prud ../bfd.orig/configure.in ./configure.in
--- ../bfd.orig/configure.in	2005-05-06 01:39:23.000000000 -0400
+++ ./configure.in	2005-05-09 16:26:42.216355500 -0400
@@ -93,10 +93,10 @@ AC_CACHE_VAL(bfd_cv_has_long_long,
 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)
+  AC_CHECK_SIZEOF(long long)
 fi
 
-AC_COMPILE_CHECK_SIZEOF(long)
+AC_CHECK_SIZEOF(long)
 if test "x${ac_cv_sizeof_long}" = "x8"; then
   host64=true
   BFD_HOST_64BIT_LONG=1
@@ -907,7 +907,7 @@ AC_SUBST(bfd_default_target_size)
 # upward compatible.
 AC_CHECK_FUNCS(ftello ftello64 fseeko fseeko64)
 if test x"$ac_cv_func_ftello" = xyes -a x"$ac_cv_func_fseeko" = xyes; then
-    AC_COMPILE_CHECK_SIZEOF(off_t)
+    AC_CHECK_SIZEOF(off_t)
 fi
 AC_MSG_CHECKING([file_ptr type])
 bfd_file_ptr="long"

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] Stop using accross.m4 in bfd
  2005-05-09 20:53 [PATCH] Stop using accross.m4 in bfd Kelley Cook
@ 2005-05-09 21:15 ` Daniel Jacobowitz
  0 siblings, 0 replies; 2+ messages in thread
From: Daniel Jacobowitz @ 2005-05-09 21:15 UTC (permalink / raw)
  To: Kelley Cook; +Cc: binutils

On Mon, May 09, 2005 at 04:48:16PM -0400, Kelley Cook wrote:
> BFD will soon be the sole user of accross.m4 in uberbaum and I would 
> like to be able to delete it.
> 
> BFD includes it for AC_COMPILE_CHECK_SIZEOF and that macro's 
> functionality has been superceded by autoconf 2.59's AC_CHECK_SIZEOF.
> 
> This simple patch replaces those occurences.
> 
> Tested with i686-pc-cygwin native and i686-pc-gnu-linux to 
> powerpc-unknown-elf newlib cross.  No changes in stripped binaries with 
> this patch.
> 
> OK to install?
> 
> 

> 2005-05-09  Kelley Cook  <kcook@gcc.gnu.org>
> 
> 	* configure.in: Replace AC_COMPILE_CHECK_SIZEOF with AC_CHECK_SIZEOF.
> 	* acinclude.m4: Don't sinclude accross.m4.
> 	* config.in, configure, Makefile.in, doc/Makefile.in: Regenerate

This is OK.

-- 
Daniel Jacobowitz
CodeSourcery, LLC

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2005-05-09 20:53 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-05-09 20:53 [PATCH] Stop using accross.m4 in bfd Kelley Cook
2005-05-09 21:15 ` Daniel Jacobowitz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).