This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Use AC_CHECK_SIZEOF in gcc/configure.ac


Jones Desougi asked me to commit this patch for them.  It is no longer
necessary to use a local macro instead of AC_CHECK_SIZEOF, as that now
works when cross-compiling.  As the change is (a) completely
mechanical, and (b) impossible to write any other way, copyright does
not attach.

Bootstrapped i686-linux.  If someone is feeling paranoid, testing
build != host would be nice, but I trust the autoconf developers to
have gotten this right (in fact, the old AC_COMPILE_CHECK_SIZEOF was a
backport to autoconf 2.13 of the 2.5x version of AC_CHECK_SIZEOF).

zw

2004-09-17  Jones Desougi  <jones@ingate.com>

        * configure.ac: Replace AC_COMPILE_CHECK_SIZEOF with AC_CHECK_SIZEOF.
        * configure, config.in: Regenerate.

===================================================================
Index: configure.ac
--- configure.ac	17 Sep 2004 12:45:34 -0000	2.67
+++ configure.ac	18 Sep 2004 00:47:30 -0000
@@ -289,15 +289,15 @@ AC_C_INLINE
 gcc_AC_C_LONG_LONG
 
 # sizeof(char) is 1 by definition.
-AC_COMPILE_CHECK_SIZEOF(void *)
-AC_COMPILE_CHECK_SIZEOF(short)
-AC_COMPILE_CHECK_SIZEOF(int)
-AC_COMPILE_CHECK_SIZEOF(long)
+AC_CHECK_SIZEOF(void *)
+AC_CHECK_SIZEOF(short)
+AC_CHECK_SIZEOF(int)
+AC_CHECK_SIZEOF(long)
 if test $ac_cv_c_long_long = yes; then
-  AC_COMPILE_CHECK_SIZEOF(long long)
+  AC_CHECK_SIZEOF(long long)
 fi
 if test $ac_cv_c___int64 = yes; then
-  AC_COMPILE_CHECK_SIZEOF(__int64)
+  AC_CHECK_SIZEOF(__int64)
 fi
 
 # ---------------------


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]