mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-05 22:20:24 -08:00
Update from Gnulib by running admin/merge-gnulib
* m4/wchar_t.m4: Remove; no longer needed.
This commit is contained in:
parent
fad7109e52
commit
4a8c8021cc
23 changed files with 558 additions and 269 deletions
|
|
@ -1,5 +1,5 @@
|
|||
# canonicalize.m4
|
||||
# serial 39
|
||||
# serial 40
|
||||
|
||||
dnl Copyright (C) 2003-2007, 2009-2024 Free Software Foundation, Inc.
|
||||
|
||||
|
|
@ -113,7 +113,7 @@ AC_DEFUN([gl_FUNC_REALPATH_WORKS],
|
|||
result |= 2;
|
||||
free (name);
|
||||
}
|
||||
/* This test fails on Cygwin 2.9. */
|
||||
/* This test fails on macOS 14, Cygwin 2.9. */
|
||||
#if HAVE_LSTAT
|
||||
{
|
||||
char *name = realpath ("conftest.l/../conftest.a", NULL);
|
||||
|
|
@ -122,7 +122,7 @@ AC_DEFUN([gl_FUNC_REALPATH_WORKS],
|
|||
free (name);
|
||||
}
|
||||
#endif
|
||||
/* This test fails on Mac OS X 10.13, OpenBSD 6.0. */
|
||||
/* This test fails on macOS 14, OpenBSD 6.0. */
|
||||
{
|
||||
char *name = realpath ("conftest.a/", NULL);
|
||||
if (name != NULL)
|
||||
|
|
@ -163,6 +163,8 @@ AC_DEFUN([gl_FUNC_REALPATH_WORKS],
|
|||
*-gnu* | gnu*) gl_cv_func_realpath_works="guessing yes" ;;
|
||||
# Guess 'nearly' on musl systems.
|
||||
*-musl*) gl_cv_func_realpath_works="guessing nearly" ;;
|
||||
# Guess no on macOS.
|
||||
darwin*) gl_cv_func_realpath_works="guessing no" ;;
|
||||
# Guess no on Cygwin.
|
||||
cygwin*) gl_cv_func_realpath_works="guessing no" ;;
|
||||
# Guess no on native Windows.
|
||||
|
|
|
|||
|
|
@ -1646,7 +1646,6 @@ AC_DEFUN([gl_FILE_LIST], [
|
|||
m4/vararrays.m4
|
||||
m4/warn-on-use.m4
|
||||
m4/warnings.m4
|
||||
m4/wchar_t.m4
|
||||
m4/wint_t.m4
|
||||
m4/xattr.m4
|
||||
m4/zzgnulib.m4
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
# largefile.m4
|
||||
# serial 1
|
||||
# serial 2
|
||||
dnl Copyright 1992-1996, 1998-2024 Free Software Foundation, Inc.
|
||||
dnl This file is free software; the Free Software Foundation
|
||||
dnl gives unlimited permission to copy and/or distribute it,
|
||||
|
|
@ -88,7 +88,7 @@ m4_define([_AC_SYS_YEAR2038_OPTIONS], m4_normalize(
|
|||
# If you change this macro you may also need to change
|
||||
# _AC_SYS_YEAR2038_OPTIONS.
|
||||
AC_DEFUN([_AC_SYS_YEAR2038_PROBE],
|
||||
[AC_CACHE_CHECK([for $CPPFLAGS option for timestamps after 2038],
|
||||
[AC_CACHE_CHECK([for $CC option to support timestamps after 2038],
|
||||
[ac_cv_sys_year2038_opts],
|
||||
[ac_save_CPPFLAGS="$CPPFLAGS"
|
||||
ac_opt_found=no
|
||||
|
|
@ -234,7 +234,7 @@ m4_define([_AC_SYS_LARGEFILE_OPTIONS], m4_normalize(
|
|||
# If you change this macro you may also need to change
|
||||
# _AC_SYS_LARGEFILE_OPTIONS.
|
||||
AC_DEFUN([_AC_SYS_LARGEFILE_PROBE],
|
||||
[AC_CACHE_CHECK([for $CPPFLAGS option for large files],
|
||||
[AC_CACHE_CHECK([for $CC option to support large files],
|
||||
[ac_cv_sys_largefile_opts],
|
||||
[ac_save_CPPFLAGS=$CPPFLAGS
|
||||
ac_opt_found=no
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
# nstrftime.m4
|
||||
# serial 38
|
||||
# serial 40
|
||||
dnl Copyright (C) 1996-1997, 1999-2007, 2009-2024 Free Software Foundation, Inc.
|
||||
dnl This file is free software; the Free Software Foundation
|
||||
dnl gives unlimited permission to copy and/or distribute it,
|
||||
|
|
@ -11,8 +11,6 @@ AC_DEFUN([gl_FUNC_GNU_STRFTIME],
|
|||
[
|
||||
AC_REQUIRE([AC_C_RESTRICT])
|
||||
|
||||
# This defines (or not) HAVE_TZNAME and HAVE_STRUCT_TM_TM_ZONE.
|
||||
AC_REQUIRE([AC_STRUCT_TIMEZONE])
|
||||
|
||||
AC_REQUIRE([gl_TM_GMTOFF])
|
||||
AC_CHECK_FUNCS_ONCE([strftime_z])
|
||||
])
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
# readlinkat.m4
|
||||
# serial 9
|
||||
# serial 10
|
||||
dnl Copyright (C) 2009-2024 Free Software Foundation, Inc.
|
||||
dnl This file is free software; the Free Software Foundation
|
||||
dnl gives unlimited permission to copy and/or distribute it,
|
||||
|
|
@ -34,7 +34,7 @@ AC_DEFUN([gl_FUNC_READLINKAT],
|
|||
[gl_cv_decl_readlinkat_works=no])
|
||||
])
|
||||
# Assume readlinkat has the same bugs as readlink,
|
||||
# as is the case on OS X 10.10 with trailing slashes.
|
||||
# as is the case on macOS 14 with trailing slashes.
|
||||
case $gl_cv_decl_readlinkat_works,$gl_cv_func_readlink_trailing_slash,$gl_cv_func_readlink_truncate in
|
||||
*yes,*yes,*yes)
|
||||
;;
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
# stddef_h.m4
|
||||
# serial 16
|
||||
# serial 17
|
||||
dnl Copyright (C) 2009-2024 Free Software Foundation, Inc.
|
||||
dnl This file is free software; the Free Software Foundation
|
||||
dnl gives unlimited permission to copy and/or distribute it,
|
||||
|
|
@ -10,7 +10,6 @@ dnl A placeholder for <stddef.h>, for platforms that have issues.
|
|||
AC_DEFUN_ONCE([gl_STDDEF_H],
|
||||
[
|
||||
AC_REQUIRE([gl_STDDEF_H_DEFAULTS])
|
||||
AC_REQUIRE([gt_TYPE_WCHAR_T])
|
||||
|
||||
dnl Persuade OpenBSD <stddef.h> to declare max_align_t.
|
||||
AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS])
|
||||
|
|
@ -52,11 +51,6 @@ AC_DEFUN_ONCE([gl_STDDEF_H],
|
|||
GL_GENERATE_STDDEF_H=true
|
||||
fi
|
||||
|
||||
if test $gt_cv_c_wchar_t = no; then
|
||||
HAVE_WCHAR_T=0
|
||||
GL_GENERATE_STDDEF_H=true
|
||||
fi
|
||||
|
||||
AC_CACHE_CHECK([whether NULL can be used in arbitrary expressions],
|
||||
[gl_cv_decl_null_works],
|
||||
[AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <stddef.h>
|
||||
|
|
@ -148,5 +142,4 @@ AC_DEFUN([gl_STDDEF_H_DEFAULTS],
|
|||
STDDEF_NOT_IDEMPOTENT=0; AC_SUBST([STDDEF_NOT_IDEMPOTENT])
|
||||
REPLACE_NULL=0; AC_SUBST([REPLACE_NULL])
|
||||
HAVE_MAX_ALIGN_T=1; AC_SUBST([HAVE_MAX_ALIGN_T])
|
||||
HAVE_WCHAR_T=1; AC_SUBST([HAVE_WCHAR_T])
|
||||
])
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
# stdio_h.m4
|
||||
# serial 63
|
||||
# serial 69
|
||||
dnl Copyright (C) 2007-2024 Free Software Foundation, Inc.
|
||||
dnl This file is free software; the Free Software Foundation
|
||||
dnl gives unlimited permission to copy and/or distribute it,
|
||||
|
|
@ -159,6 +159,7 @@ AC_DEFUN([gl_STDIO_H_REQUIRE_DEFAULTS],
|
|||
gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_GETLINE])
|
||||
gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_OBSTACK_PRINTF])
|
||||
gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_OBSTACK_PRINTF_POSIX])
|
||||
gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_OBSTACK_ZPRINTF])
|
||||
gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_PCLOSE])
|
||||
gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_PERROR])
|
||||
gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_POPEN])
|
||||
|
|
@ -177,6 +178,7 @@ AC_DEFUN([gl_STDIO_H_REQUIRE_DEFAULTS],
|
|||
gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_STDIO_H_SIGPIPE])
|
||||
gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_TMPFILE])
|
||||
gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_VASPRINTF])
|
||||
gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_VAZSPRINTF])
|
||||
gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_VFSCANF])
|
||||
gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_VSCANF])
|
||||
gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_VDPRINTF])
|
||||
|
|
@ -186,6 +188,10 @@ AC_DEFUN([gl_STDIO_H_REQUIRE_DEFAULTS],
|
|||
gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_VPRINTF_POSIX])
|
||||
gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_VSNPRINTF])
|
||||
gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_VSPRINTF_POSIX])
|
||||
gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_VZSNPRINTF])
|
||||
gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_VZSPRINTF])
|
||||
gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_ZSNPRINTF])
|
||||
gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_ZSPRINTF])
|
||||
dnl Support Microsoft deprecated alias function names by default.
|
||||
gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_MDA_FCLOSEALL], [1])
|
||||
gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_MDA_FDOPEN], [1])
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
# time_h.m4
|
||||
# serial 25
|
||||
# serial 26
|
||||
dnl Copyright (C) 2000-2001, 2003-2007, 2009-2024 Free Software Foundation, Inc.
|
||||
dnl This file is free software; the Free Software Foundation
|
||||
dnl gives unlimited permission to copy and/or distribute it,
|
||||
|
|
@ -145,6 +145,7 @@ AC_DEFUN([gl_TIME_H_REQUIRE_DEFAULTS],
|
|||
gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_TIMESPEC_GETRES])
|
||||
gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_TIME_R])
|
||||
gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_TIME_RZ])
|
||||
gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_TZNAME])
|
||||
gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_TZSET])
|
||||
dnl Support Microsoft deprecated alias function names by default.
|
||||
gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_MDA_TZSET], [1])
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
# time_rz.m4
|
||||
# serial 1
|
||||
# serial 2
|
||||
dnl Copyright (C) 2015-2024 Free Software Foundation, Inc.
|
||||
dnl This file is free software; the Free Software Foundation
|
||||
dnl gives unlimited permission to copy and/or distribute it,
|
||||
|
|
@ -13,7 +13,6 @@ AC_DEFUN([gl_TIME_RZ],
|
|||
[
|
||||
AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS])
|
||||
AC_REQUIRE([gl_TIME_H_DEFAULTS])
|
||||
AC_REQUIRE([AC_STRUCT_TIMEZONE])
|
||||
|
||||
# On Mac OS X 10.6, localtime loops forever with some time_t values.
|
||||
# See Bug#27706, Bug#27736, and
|
||||
|
|
|
|||
|
|
@ -1,15 +1,29 @@
|
|||
# tm_gmtoff.m4
|
||||
# serial 3
|
||||
# serial 5
|
||||
dnl Copyright (C) 2002, 2009-2024 Free Software Foundation, Inc.
|
||||
dnl This file is free software; the Free Software Foundation
|
||||
dnl gives unlimited permission to copy and/or distribute it,
|
||||
dnl with or without modifications, as long as this notice is preserved.
|
||||
|
||||
dnl Check for tm_gmtoff and tm_zone in struct tm, and #define
|
||||
dnl HAVE_STRUCT_TM_TM_GMTOFF and HAVE_STRUCT_TM_TM_ZONE accordingly.
|
||||
dnl Most code that needs one needs the other, so there seemed little
|
||||
dnl point to having two macros to check them individually.
|
||||
dnl Although all platforms that we know of have either both members or
|
||||
dnl neither member, check for the two members separately just in case.
|
||||
dnl
|
||||
dnl These days this macro is more useful than AC_STRUCT_TIMEZONE, which also
|
||||
dnl checks for the obsolescent tzname and does not check for tm_gmtoff.
|
||||
AC_DEFUN([gl_TM_GMTOFF],
|
||||
[
|
||||
AC_CHECK_MEMBER([struct tm.tm_gmtoff],
|
||||
[AC_DEFINE([HAVE_TM_GMTOFF], [1],
|
||||
[Define if struct tm has the tm_gmtoff member.])],
|
||||
,
|
||||
[#include <time.h>])
|
||||
AC_CHECK_MEMBERS([struct tm.tm_gmtoff, struct tm.tm_zone], [], [],
|
||||
[[#include <time.h>
|
||||
]])
|
||||
|
||||
dnl Backward compatibility with 2024-and-earlier versions of this macro.
|
||||
AS_IF([test "$ac_cv_member_struct_tm_tm_gmtoff" = yes],
|
||||
[AC_DEFINE([HAVE_TM_GMTOFF], [1],
|
||||
[Define if struct tm has the tm_gmtoff member.
|
||||
This macro is obsolete.
|
||||
New code should use HAVE_STRUCT_TM_TM_GMTOFF.])])
|
||||
])
|
||||
|
|
|
|||
|
|
@ -1,25 +0,0 @@
|
|||
# wchar_t.m4
|
||||
# serial 4 (gettext-0.18.2)
|
||||
dnl Copyright (C) 2002-2003, 2008-2024 Free Software Foundation, Inc.
|
||||
dnl This file is free software; the Free Software Foundation
|
||||
dnl gives unlimited permission to copy and/or distribute it,
|
||||
dnl with or without modifications, as long as this notice is preserved.
|
||||
|
||||
dnl From Bruno Haible.
|
||||
dnl Test whether <stddef.h> has the 'wchar_t' type.
|
||||
dnl Prerequisite: AC_PROG_CC
|
||||
|
||||
AC_DEFUN([gt_TYPE_WCHAR_T],
|
||||
[
|
||||
AC_CACHE_CHECK([for wchar_t], [gt_cv_c_wchar_t],
|
||||
[AC_COMPILE_IFELSE(
|
||||
[AC_LANG_PROGRAM(
|
||||
[[#include <stddef.h>
|
||||
wchar_t foo = (wchar_t)'\0';]],
|
||||
[[]])],
|
||||
[gt_cv_c_wchar_t=yes],
|
||||
[gt_cv_c_wchar_t=no])])
|
||||
if test $gt_cv_c_wchar_t = yes; then
|
||||
AC_DEFINE([HAVE_WCHAR_T], [1], [Define if you have the 'wchar_t' type.])
|
||||
fi
|
||||
])
|
||||
Loading…
Add table
Add a link
Reference in a new issue