mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2024-11-23 07:19:15 +00:00
dcd76bd48d
836be7a112
; * etc/refcards/ru-refcard.tex: Update Copyright year.86cbc6ee4a
* lisp/net/tramp-sh.el: Adapt copyright yearebe8772f65
; Minor fixes related to copyright years23c1ee6989
; * test/manual/etags/ETAGS.good_N: Adjust to copyright ye...8d3fc7ec89
* src/xfaces.c (face_for_font): Make 'hash' be uintptr_t.19dcb237b5
; Add 2022 to copyright years. # Conflicts: # etc/NEWS # etc/refcards/ru-refcard.tex # lib/cdefs.h # lisp/erc/erc-dcc.el # lisp/erc/erc-imenu.el # lisp/erc/erc-replace.el # lisp/image-dired.el # lisp/progmodes/xref.el # m4/alloca.m4 # m4/byteswap.m4 # m4/errno_h.m4 # m4/getopt.m4 # m4/gnulib-common.m4 # m4/inttypes.m4 # m4/stddef_h.m4 # m4/stdint.m4 # m4/sys_socket_h.m4
42 lines
1.2 KiB
Plaintext
42 lines
1.2 KiB
Plaintext
dnl Check whether limits.h has needed features.
|
|
|
|
dnl Copyright 2016-2022 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 Paul Eggert.
|
|
|
|
AC_DEFUN_ONCE([gl_LIMITS_H],
|
|
[
|
|
gl_CHECK_NEXT_HEADERS([limits.h])
|
|
|
|
AC_CACHE_CHECK([whether limits.h has WORD_BIT, BOOL_WIDTH etc.],
|
|
[gl_cv_header_limits_width],
|
|
[AC_COMPILE_IFELSE(
|
|
[AC_LANG_PROGRAM(
|
|
[[#ifndef __STDC_WANT_IEC_60559_BFP_EXT__
|
|
#define __STDC_WANT_IEC_60559_BFP_EXT__ 1
|
|
#endif
|
|
#include <limits.h>
|
|
long long llm = LLONG_MAX;
|
|
int wb = WORD_BIT;
|
|
int ullw = ULLONG_WIDTH;
|
|
int bw = BOOL_WIDTH;
|
|
]])],
|
|
[gl_cv_header_limits_width=yes],
|
|
[gl_cv_header_limits_width=no])])
|
|
if test "$gl_cv_header_limits_width" = yes; then
|
|
GL_GENERATE_LIMITS_H=false
|
|
else
|
|
GL_GENERATE_LIMITS_H=true
|
|
fi
|
|
])
|
|
|
|
dnl Unconditionally enables the replacement of <limits.h>.
|
|
AC_DEFUN([gl_REPLACE_LIMITS_H],
|
|
[
|
|
AC_REQUIRE([gl_LIMITS_H])
|
|
GL_GENERATE_LIMITS_H=true
|
|
])
|