aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul Eggert2011-04-22 00:36:41 -0700
committerPaul Eggert2011-04-22 00:36:41 -0700
commitc1e127f9f0431e1b7f6ebb705988bfd03ec450a7 (patch)
tree4eb7d62bb3874d8387add0787b3123ac02aadc20
parentce1b6817dd36bc820fe0babf538c61186d92a2ec (diff)
downloademacs-c1e127f9f0431e1b7f6ebb705988bfd03ec450a7.tar.gz
emacs-c1e127f9f0431e1b7f6ebb705988bfd03ec450a7.zip
* configure.in: Suppress unnecessary checks for size_t.
(AC_TYPE_SIZE_T): Define an empty macro, to suppress obsolescent test. (size_t): Do not check for this, and do not typedef. This code is never exercised now.
-rw-r--r--ChangeLog7
-rw-r--r--configure.in9
2 files changed, 10 insertions, 6 deletions
diff --git a/ChangeLog b/ChangeLog
index bb487c652da..64aad9e278a 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
12011-04-22 Paul Eggert <eggert@cs.ucla.edu>
2
3 * configure.in: Suppress unnecessary checks for size_t.
4 (AC_TYPE_SIZE_T): Define an empty macro, to suppress obsolescent test.
5 (size_t): Do not check for this, and do not typedef. This code
6 is never exercised now.
7
12011-04-21 Paul Eggert <eggert@cs.ucla.edu> 82011-04-21 Paul Eggert <eggert@cs.ucla.edu>
2 9
3 * Makefile.in (GNULIB_MODULES): Add strtoumax. 10 * Makefile.in (GNULIB_MODULES): Add strtoumax.
diff --git a/configure.in b/configure.in
index d20dee81e5b..4ab8f58ba4e 100644
--- a/configure.in
+++ b/configure.in
@@ -987,6 +987,9 @@ else
987 CPPFLAGS="$C_SWITCH_SYSTEM $C_SWITCH_MACHINE $CPPFLAGS" 987 CPPFLAGS="$C_SWITCH_SYSTEM $C_SWITCH_MACHINE $CPPFLAGS"
988fi 988fi
989 989
990# Suppress obsolescent Autoconf test for size_t; Emacs assumes C89 or better.
991AC_DEFUN([AC_TYPE_SIZE_T])
992
990dnl Do this early because it can frob feature test macros for Unix-98 &c. 993dnl Do this early because it can frob feature test macros for Unix-98 &c.
991AC_SYS_LARGEFILE 994AC_SYS_LARGEFILE
992 995
@@ -3026,8 +3029,6 @@ if test $emacs_cv_langinfo_codeset = yes; then
3026 [Define if you have <langinfo.h> and nl_langinfo(CODESET).]) 3029 [Define if you have <langinfo.h> and nl_langinfo(CODESET).])
3027fi 3030fi
3028 3031
3029AC_CHECK_TYPES(size_t)
3030
3031AC_TYPE_MBSTATE_T 3032AC_TYPE_MBSTATE_T
3032 3033
3033AC_CACHE_CHECK([for C restricted array declarations], emacs_cv_c_restrict_arr, 3034AC_CACHE_CHECK([for C restricted array declarations], emacs_cv_c_restrict_arr,
@@ -3553,10 +3554,6 @@ extern "C"
3553void *alloca (size_t); 3554void *alloca (size_t);
3554#endif 3555#endif
3555 3556
3556#ifndef HAVE_SIZE_T
3557typedef unsigned size_t;
3558#endif
3559
3560#ifndef HAVE_STRCHR 3557#ifndef HAVE_STRCHR
3561#define strchr(a, b) index (a, b) 3558#define strchr(a, b) index (a, b)
3562#endif 3559#endif