diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2023-07-10 09:53:07 -0700 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2023-07-10 09:55:58 -0700 |
commit | 845ff9563d47568ddd5cb37c62a53deade2d4693 (patch) | |
tree | ecae947f9a2ab44a922309dfd8f17544b5efe10e | |
parent | 31cae9d9d6a00a33fb4a18d9725ff4d6b103c176 (diff) | |
download | emacs-845ff9563d47568ddd5cb37c62a53deade2d4693.tar.gz |
Further simplify configure-time locale testing
* configure.ac (gl_STDLIB_H): Replace this, not gt_LOCALE_FR_UTF8,
as this lets us also omit MB_CUR_MAX checking that will never be
executed, and also lets us remove testing for ecvt, fcvt, gcvt
that Emacs doesn’t need.
(AC_C_RESTRICT): Invoke explicitly, as Emacs uses ‘restrict’
directly. Also, simplifies the replacement for gl_STDLIB_H, which
would otherwise need to AC_REQUIRE AC_C_RESTRICT.
* lib/gnulib.mk.in: Regenerate via admin/merge-gnulib.
-rw-r--r-- | configure.ac | 7 | ||||
-rw-r--r-- | lib/gnulib.mk.in | 1 |
2 files changed, 4 insertions, 4 deletions
diff --git a/configure.ac b/configure.ac index 890b06905c1..a51aa44cf2c 100644 --- a/configure.ac +++ b/configure.ac @@ -902,9 +902,9 @@ AC_DEFUN([gt_TYPE_WINT_T], [GNULIBHEADERS_OVERRIDE_WINT_T=0 AC_SUBST([GNULIBHEADERS_OVERRIDE_WINT_T])]) # Emacs does not need precise checks for the Solaris 10 MB_CUR_MAX bug. -AC_DEFUN([gt_LOCALE_FR_UTF8], - [LOCALE_FR_UTF8=none - AC_SUBST([LOCALE_FR_UTF8])]) +AC_DEFUN_ONCE([gl_STDLIB_H], + [AC_REQUIRE([gl_STDLIB_H_DEFAULTS]) + gl_NEXT_HEADERS([stdlib.h])]) # Initialize gnulib right after choosing the compiler. dnl Amongst other things, this sets AR and ARFLAGS. @@ -6305,6 +6305,7 @@ if test "$emacs_cv_struct_alignment" = yes; then structure to an N-byte boundary.]) fi +AC_C_RESTRICT AC_C_TYPEOF AC_CACHE_CHECK([for statement expressions], diff --git a/lib/gnulib.mk.in b/lib/gnulib.mk.in index a25bee25aae..3ef36bf8af6 100644 --- a/lib/gnulib.mk.in +++ b/lib/gnulib.mk.in @@ -961,7 +961,6 @@ LIB_WSOCK32 = @LIB_WSOCK32@ LIB_XATTR = @LIB_XATTR@ LIMITS_H = @LIMITS_H@ LN_S_FILEONLY = @LN_S_FILEONLY@ -LOCALE_FR_UTF8 = @LOCALE_FR_UTF8@ LTLIBGMP = @LTLIBGMP@ LTLIBINTL = @LTLIBINTL@ LTLIBOBJS = @LTLIBOBJS@ |