diff options
| author | Paul Eggert | 2013-10-22 21:01:46 -0700 |
|---|---|---|
| committer | Paul Eggert | 2013-10-22 21:01:46 -0700 |
| commit | 758bed52afd57bd140409bfbbeabb4a89b5182d3 (patch) | |
| tree | 29883f4b2b1a5e6f5070b02888a0d06241d8f19a | |
| parent | 967a72c957b41e7af82ddfae8487066d6735f5b8 (diff) | |
| download | emacs-758bed52afd57bd140409bfbbeabb4a89b5182d3.tar.gz emacs-758bed52afd57bd140409bfbbeabb4a89b5182d3.zip | |
Merge from gnulib.
This incorporates:
2013-10-14 acl: allow cross-compilation to Gentoo
2013-10-18 extern-inline: make safe for -Wundef usage
2013-09-30 fpending: use pure+const function attrs
* lib/fpending.h, m4/acl.m4, m4/extern-inline.m4: Update from gnulib.
| -rw-r--r-- | ChangeLog | 8 | ||||
| -rw-r--r-- | lib/fpending.h | 2 | ||||
| -rw-r--r-- | m4/acl.m4 | 21 | ||||
| -rw-r--r-- | m4/extern-inline.m4 | 3 |
4 files changed, 23 insertions, 11 deletions
| @@ -1,3 +1,11 @@ | |||
| 1 | 2013-10-23 Paul Eggert <eggert@cs.ucla.edu> | ||
| 2 | |||
| 3 | Merge from gnulib, incorporating: | ||
| 4 | 2013-10-14 acl: allow cross-compilation to Gentoo | ||
| 5 | 2013-10-18 extern-inline: make safe for -Wundef usage | ||
| 6 | 2013-09-30 fpending: use pure+const function attrs | ||
| 7 | * lib/fpending.h, m4/acl.m4, m4/extern-inline.m4: Update from gnulib. | ||
| 8 | |||
| 1 | 2013-10-13 Glenn Morris <rgm@gnu.org> | 9 | 2013-10-13 Glenn Morris <rgm@gnu.org> |
| 2 | 10 | ||
| 3 | * configure.ac [alpha]: Explicit error in non-ELF case. (Bug#15601) | 11 | * configure.ac [alpha]: Explicit error in non-ELF case. (Bug#15601) |
diff --git a/lib/fpending.h b/lib/fpending.h index 4eca3f18e17..30d67fcd74f 100644 --- a/lib/fpending.h +++ b/lib/fpending.h | |||
| @@ -25,5 +25,5 @@ | |||
| 25 | #endif | 25 | #endif |
| 26 | 26 | ||
| 27 | #ifndef __fpending | 27 | #ifndef __fpending |
| 28 | size_t __fpending (FILE *); | 28 | size_t __fpending (FILE *) _GL_ATTRIBUTE_PURE; |
| 29 | #endif | 29 | #endif |
| @@ -1,5 +1,5 @@ | |||
| 1 | # acl.m4 - check for access control list (ACL) primitives | 1 | # acl.m4 - check for access control list (ACL) primitives |
| 2 | # serial 15 | 2 | # serial 16 |
| 3 | 3 | ||
| 4 | # Copyright (C) 2002, 2004-2013 Free Software Foundation, Inc. | 4 | # Copyright (C) 2002, 2004-2013 Free Software Foundation, Inc. |
| 5 | # This file is free software; the Free Software Foundation | 5 | # This file is free software; the Free Software Foundation |
| @@ -141,12 +141,14 @@ int type = ACL_TYPE_EXTENDED;]])], | |||
| 141 | # ------------------------------------- | 141 | # ------------------------------------- |
| 142 | # If 'acl_get_file' works (does not have a particular bug), | 142 | # If 'acl_get_file' works (does not have a particular bug), |
| 143 | # run IF-WORKS, otherwise, IF-NOT. | 143 | # run IF-WORKS, otherwise, IF-NOT. |
| 144 | # This tests for a Darwin 8.7.0 bug, whereby acl_get_file returns NULL, | 144 | # When building natively, test for a Darwin 8.7.0 bug, whereby acl_get_file |
| 145 | # but sets errno = ENOENT for an existing file or directory. | 145 | # returns NULL, but sets errno = ENOENT for an existing file or directory. |
| 146 | # When cross-compiling, assume that this old bug no longer applies. | ||
| 146 | AC_DEFUN([gl_ACL_GET_FILE], | 147 | AC_DEFUN([gl_ACL_GET_FILE], |
| 147 | [ | 148 | [ |
| 148 | AC_CACHE_CHECK([for working acl_get_file], [gl_cv_func_working_acl_get_file], | 149 | AC_CACHE_CHECK([for working acl_get_file], [gl_cv_func_working_acl_get_file], |
| 149 | [AC_RUN_IFELSE( | 150 | [gl_cv_func_working_acl_get_file=no |
| 151 | AC_LINK_IFELSE( | ||
| 150 | [AC_LANG_PROGRAM( | 152 | [AC_LANG_PROGRAM( |
| 151 | [[#include <sys/types.h> | 153 | [[#include <sys/types.h> |
| 152 | #include <sys/acl.h> | 154 | #include <sys/acl.h> |
| @@ -156,9 +158,10 @@ AC_DEFUN([gl_ACL_GET_FILE], | |||
| 156 | return 1; | 158 | return 1; |
| 157 | return 0; | 159 | return 0; |
| 158 | ]])], | 160 | ]])], |
| 159 | [gl_cv_func_working_acl_get_file=yes], | 161 | [if test $cross_compiling = yes; then |
| 160 | [gl_cv_func_working_acl_get_file=no], | 162 | gl_cv_func_working_acl_get_file="guessing yes" |
| 161 | [gl_cv_func_working_acl_get_file=cross-compiling])]) | 163 | elif ./conftest$ac_exeext; then |
| 162 | 164 | gl_cv_func_working_acl_get_file=yes | |
| 163 | AS_IF([test $gl_cv_func_working_acl_get_file = yes], [$1], [$2]) | 165 | fi])]) |
| 166 | AS_IF([test "$gl_cv_func_working_acl_get_file" != no], [$1], [$2]) | ||
| 164 | ]) | 167 | ]) |
diff --git a/m4/extern-inline.m4 b/m4/extern-inline.m4 index 4862d60d8e7..e4454d8fe3d 100644 --- a/m4/extern-inline.m4 +++ b/m4/extern-inline.m4 | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | # extern-inline.m4 serial 2 | ||
| 1 | dnl 'extern inline' a la ISO C99. | 2 | dnl 'extern inline' a la ISO C99. |
| 2 | 3 | ||
| 3 | dnl Copyright 2012-2013 Free Software Foundation, Inc. | 4 | dnl Copyright 2012-2013 Free Software Foundation, Inc. |
| @@ -41,7 +42,7 @@ AC_DEFUN([gl_EXTERN_INLINE], | |||
| 41 | # define _GL_EXTERN_INLINE_IN_USE | 42 | # define _GL_EXTERN_INLINE_IN_USE |
| 42 | #elif (2 < __GNUC__ + (7 <= __GNUC_MINOR__) && !defined __STRICT_ANSI__ \ | 43 | #elif (2 < __GNUC__ + (7 <= __GNUC_MINOR__) && !defined __STRICT_ANSI__ \ |
| 43 | && !defined _GL_EXTERN_INLINE_APPLE_BUG) | 44 | && !defined _GL_EXTERN_INLINE_APPLE_BUG) |
| 44 | # if __GNUC_GNU_INLINE__ | 45 | # if defined __GNUC_GNU_INLINE__ && __GNUC_GNU_INLINE__ |
| 45 | /* __gnu_inline__ suppresses a GCC 4.2 diagnostic. */ | 46 | /* __gnu_inline__ suppresses a GCC 4.2 diagnostic. */ |
| 46 | # define _GL_INLINE extern inline __attribute__ ((__gnu_inline__)) | 47 | # define _GL_INLINE extern inline __attribute__ ((__gnu_inline__)) |
| 47 | # else | 48 | # else |