diff options
| author | Fabián Ezequiel Gallina | 2015-01-28 00:09:39 -0300 |
|---|---|---|
| committer | Fabián Ezequiel Gallina | 2015-01-28 00:09:39 -0300 |
| commit | 8e9166c92c97e7c2041eecee4e00d412a1eca1be (patch) | |
| tree | 41dc296808281e0883fcc3f70b4323fbad65b69c /m4 | |
| parent | be2d23e58721b7acc68c0ea654a38e5109df2aa2 (diff) | |
| parent | a012c7bbca887c3da837ce3d7ec01be697cffe64 (diff) | |
| download | emacs-8e9166c92c97e7c2041eecee4e00d412a1eca1be.tar.gz emacs-8e9166c92c97e7c2041eecee4e00d412a1eca1be.zip | |
Merge from origin/emacs-24
a012c7b Fix copyright years by hand
732fd4c Update copyright year to 2015
Conflicts:
INSTALL.REPO
admin/notes/lel-TODO
doc/man/grep-changelog.1
doc/misc/eww.texi
etc/CONTRIBUTE
etc/GNU
etc/NEWS
etc/refcards/emacsver.tex
etc/refcards/ru-refcard.tex
lib-src/grep-changelog
lib-src/test-distrib.c
lib/alloca.in.h
lib/binary-io.h
lib/c-ctype.h
lib/c-strcasecmp.c
lib/c-strncasecmp.c
lib/careadlinkat.c
lib/close-stream.c
lib/dosname.h
lib/dup2.c
lib/filemode.h
lib/fpending.c
lib/fpending.h
lib/getgroups.c
lib/getloadavg.c
lib/getopt.in.h
lib/getopt1.c
lib/getopt_int.h
lib/gettext.h
lib/gettime.c
lib/gettimeofday.c
lib/group-member.c
lib/md5.c
lib/md5.h
lib/memrchr.c
lib/sha1.c
lib/sig2str.c
lib/stdarg.in.h
lib/stdbool.in.h
lib/stdlib.in.h
lib/strftime.c
lib/strtoimax.c
lib/strtol.c
lib/strtoll.c
lib/strtoull.c
lib/tempname.c
lib/time_r.c
lib/unsetenv.c
lib/xalloc-oversized.h
lisp/gnus/gnus-setup.el
lisp/progmodes/cap-words.el
lisp/w32-common-fns.el
m4/alloca.m4
m4/dup2.m4
m4/filemode.m4
m4/getgroups.m4
m4/getloadavg.m4
m4/gettime.m4
m4/gettimeofday.m4
m4/gnulib-common.m4
m4/group-member.m4
m4/manywarnings.m4
m4/memrchr.m4
m4/mktime.m4
m4/pathmax.m4
m4/pthread_sigmask.m4
m4/sig2str.m4
m4/ssize_t.m4
m4/st_dm_mode.m4
m4/stat-time.m4
m4/stdarg.m4
m4/stdbool.m4
m4/stddef_h.m4
m4/stdio_h.m4
m4/strftime.m4
m4/strtoimax.m4
m4/strtoll.m4
m4/strtoull.m4
m4/strtoumax.m4
m4/time_h.m4
m4/timer_time.m4
m4/timespec.m4
m4/unistd_h.m4
m4/utimbuf.m4
nextstep/README
nt/addsection.c
src/insdel.c
src/w32heap.c
test/automated/package-x-test.el
Diffstat (limited to 'm4')
| -rw-r--r-- | m4/alloca.m4 | 4 | ||||
| -rw-r--r-- | m4/dup2.m4 | 3 | ||||
| -rw-r--r-- | m4/filemode.m4 | 3 | ||||
| -rw-r--r-- | m4/getgroups.m4 | 3 | ||||
| -rw-r--r-- | m4/getloadavg.m4 | 4 | ||||
| -rw-r--r-- | m4/gettime.m4 | 3 | ||||
| -rw-r--r-- | m4/gettimeofday.m4 | 3 | ||||
| -rw-r--r-- | m4/group-member.m4 | 3 | ||||
| -rw-r--r-- | m4/memrchr.m4 | 4 | ||||
| -rw-r--r-- | m4/mktime.m4 | 4 | ||||
| -rw-r--r-- | m4/pathmax.m4 | 4 | ||||
| -rw-r--r-- | m4/sig2str.m4 | 3 | ||||
| -rw-r--r-- | m4/ssize_t.m4 | 3 | ||||
| -rw-r--r-- | m4/st_dm_mode.m4 | 3 | ||||
| -rw-r--r-- | m4/stat-time.m4 | 4 | ||||
| -rw-r--r-- | m4/stdarg.m4 | 78 | ||||
| -rw-r--r-- | m4/stdbool.m4 | 100 | ||||
| -rw-r--r-- | m4/strftime.m4 | 3 | ||||
| -rw-r--r-- | m4/strtoimax.m4 | 3 | ||||
| -rw-r--r-- | m4/strtoll.m4 | 3 | ||||
| -rw-r--r-- | m4/strtoull.m4 | 3 | ||||
| -rw-r--r-- | m4/strtoumax.m4 | 3 | ||||
| -rw-r--r-- | m4/time_h.m4 | 3 | ||||
| -rw-r--r-- | m4/timespec.m4 | 3 | ||||
| -rw-r--r-- | m4/utimbuf.m4 | 4 |
25 files changed, 224 insertions, 30 deletions
diff --git a/m4/alloca.m4 b/m4/alloca.m4 index 8408bed2882..e89f19bf697 100644 --- a/m4/alloca.m4 +++ b/m4/alloca.m4 | |||
| @@ -1,6 +1,6 @@ | |||
| 1 | # alloca.m4 serial 14 | 1 | # alloca.m4 serial 14 |
| 2 | dnl Copyright (C) 2002-2004, 2006-2007, 2009-2015 Free Software Foundation, | 2 | dnl Copyright (C) 2002-2004, 2006-2007, 2009-2015 Free Software |
| 3 | dnl Inc. | 3 | dnl Foundation, Inc. |
| 4 | dnl This file is free software; the Free Software Foundation | 4 | dnl This file is free software; the Free Software Foundation |
| 5 | dnl gives unlimited permission to copy and/or distribute it, | 5 | dnl gives unlimited permission to copy and/or distribute it, |
| 6 | dnl with or without modifications, as long as this notice is preserved. | 6 | dnl with or without modifications, as long as this notice is preserved. |
diff --git a/m4/dup2.m4 b/m4/dup2.m4 index 0354c6ad478..bae6d01cd53 100644 --- a/m4/dup2.m4 +++ b/m4/dup2.m4 | |||
| @@ -1,5 +1,6 @@ | |||
| 1 | #serial 20 | 1 | #serial 20 |
| 2 | dnl Copyright (C) 2002, 2005, 2007, 2009-2015 Free Software Foundation, Inc. | 2 | dnl Copyright (C) 2002, 2005, 2007, 2009-2015 Free Software Foundation, |
| 3 | dnl Inc. | ||
| 3 | dnl This file is free software; the Free Software Foundation | 4 | dnl This file is free software; the Free Software Foundation |
| 4 | dnl gives unlimited permission to copy and/or distribute it, | 5 | dnl gives unlimited permission to copy and/or distribute it, |
| 5 | dnl with or without modifications, as long as this notice is preserved. | 6 | dnl with or without modifications, as long as this notice is preserved. |
diff --git a/m4/filemode.m4 b/m4/filemode.m4 index e2a195c04ef..343719a5d56 100644 --- a/m4/filemode.m4 +++ b/m4/filemode.m4 | |||
| @@ -1,5 +1,6 @@ | |||
| 1 | # filemode.m4 serial 8 | 1 | # filemode.m4 serial 8 |
| 2 | dnl Copyright (C) 2002, 2005-2006, 2009-2015 Free Software Foundation, Inc. | 2 | dnl Copyright (C) 2002, 2005-2006, 2009-2015 Free Software Foundation, |
| 3 | dnl Inc. | ||
| 3 | dnl This file is free software; the Free Software Foundation | 4 | dnl This file is free software; the Free Software Foundation |
| 4 | dnl gives unlimited permission to copy and/or distribute it, | 5 | dnl gives unlimited permission to copy and/or distribute it, |
| 5 | dnl with or without modifications, as long as this notice is preserved. | 6 | dnl with or without modifications, as long as this notice is preserved. |
diff --git a/m4/getgroups.m4 b/m4/getgroups.m4 index 16e72c7bf3c..8989a5ce430 100644 --- a/m4/getgroups.m4 +++ b/m4/getgroups.m4 | |||
| @@ -3,7 +3,8 @@ | |||
| 3 | dnl From Jim Meyering. | 3 | dnl From Jim Meyering. |
| 4 | dnl A wrapper around AC_FUNC_GETGROUPS. | 4 | dnl A wrapper around AC_FUNC_GETGROUPS. |
| 5 | 5 | ||
| 6 | # Copyright (C) 1996-1997, 1999-2004, 2008-2015 Free Software Foundation, Inc. | 6 | # Copyright (C) 1996-1997, 1999-2004, 2008-2015 Free Software |
| 7 | # Foundation, Inc. | ||
| 7 | # | 8 | # |
| 8 | # This file is free software; the Free Software Foundation | 9 | # This file is free software; the Free Software Foundation |
| 9 | # gives unlimited permission to copy and/or distribute it, | 10 | # gives unlimited permission to copy and/or distribute it, |
diff --git a/m4/getloadavg.m4 b/m4/getloadavg.m4 index 1234ba9fe2b..4844ae37a15 100644 --- a/m4/getloadavg.m4 +++ b/m4/getloadavg.m4 | |||
| @@ -1,7 +1,7 @@ | |||
| 1 | # Check for getloadavg. | 1 | # Check for getloadavg. |
| 2 | 2 | ||
| 3 | # Copyright (C) 1992-1996, 1999-2000, 2002-2003, 2006, 2008-2015 Free Software | 3 | # Copyright (C) 1992-1996, 1999-2000, 2002-2003, 2006, 2008-2015 Free |
| 4 | # Foundation, Inc. | 4 | # Software Foundation, Inc. |
| 5 | 5 | ||
| 6 | # This file is free software; the Free Software Foundation | 6 | # This file is free software; the Free Software Foundation |
| 7 | # gives unlimited permission to copy and/or distribute it, | 7 | # gives unlimited permission to copy and/or distribute it, |
diff --git a/m4/gettime.m4 b/m4/gettime.m4 index cd499ff5d79..175e482050a 100644 --- a/m4/gettime.m4 +++ b/m4/gettime.m4 | |||
| @@ -1,5 +1,6 @@ | |||
| 1 | # gettime.m4 serial 8 | 1 | # gettime.m4 serial 8 |
| 2 | dnl Copyright (C) 2002, 2004-2006, 2009-2015 Free Software Foundation, Inc. | 2 | dnl Copyright (C) 2002, 2004-2006, 2009-2015 Free Software Foundation, |
| 3 | dnl Inc. | ||
| 3 | dnl This file is free software; the Free Software Foundation | 4 | dnl This file is free software; the Free Software Foundation |
| 4 | dnl gives unlimited permission to copy and/or distribute it, | 5 | dnl gives unlimited permission to copy and/or distribute it, |
| 5 | dnl with or without modifications, as long as this notice is preserved. | 6 | dnl with or without modifications, as long as this notice is preserved. |
diff --git a/m4/gettimeofday.m4 b/m4/gettimeofday.m4 index ce246e18bc2..95317d3c1e8 100644 --- a/m4/gettimeofday.m4 +++ b/m4/gettimeofday.m4 | |||
| @@ -1,6 +1,7 @@ | |||
| 1 | # serial 21 | 1 | # serial 21 |
| 2 | 2 | ||
| 3 | # Copyright (C) 2001-2003, 2005, 2007, 2009-2015 Free Software Foundation, Inc. | 3 | # Copyright (C) 2001-2003, 2005, 2007, 2009-2015 Free Software |
| 4 | # Foundation, Inc. | ||
| 4 | # This file is free software; the Free Software Foundation | 5 | # This file is free software; the Free Software Foundation |
| 5 | # gives unlimited permission to copy and/or distribute it, | 6 | # gives unlimited permission to copy and/or distribute it, |
| 6 | # with or without modifications, as long as this notice is preserved. | 7 | # with or without modifications, as long as this notice is preserved. |
diff --git a/m4/group-member.m4 b/m4/group-member.m4 index 526a67a895b..b18e95bead2 100644 --- a/m4/group-member.m4 +++ b/m4/group-member.m4 | |||
| @@ -1,6 +1,7 @@ | |||
| 1 | # serial 14 | 1 | # serial 14 |
| 2 | 2 | ||
| 3 | # Copyright (C) 1999-2001, 2003-2007, 2009-2015 Free Software Foundation, Inc. | 3 | # Copyright (C) 1999-2001, 2003-2007, 2009-2015 Free Software |
| 4 | # Foundation, Inc. | ||
| 4 | 5 | ||
| 5 | # This file is free software; the Free Software Foundation | 6 | # This file is free software; the Free Software Foundation |
| 6 | # gives unlimited permission to copy and/or distribute it, | 7 | # gives unlimited permission to copy and/or distribute it, |
diff --git a/m4/memrchr.m4 b/m4/memrchr.m4 index f3f74b82cc0..bac0a7a95a0 100644 --- a/m4/memrchr.m4 +++ b/m4/memrchr.m4 | |||
| @@ -1,6 +1,6 @@ | |||
| 1 | # memrchr.m4 serial 10 | 1 | # memrchr.m4 serial 10 |
| 2 | dnl Copyright (C) 2002-2003, 2005-2007, 2009-2015 Free Software Foundation, | 2 | dnl Copyright (C) 2002-2003, 2005-2007, 2009-2015 Free Software |
| 3 | dnl Inc. | 3 | dnl Foundation, Inc. |
| 4 | dnl This file is free software; the Free Software Foundation | 4 | dnl This file is free software; the Free Software Foundation |
| 5 | dnl gives unlimited permission to copy and/or distribute it, | 5 | dnl gives unlimited permission to copy and/or distribute it, |
| 6 | dnl with or without modifications, as long as this notice is preserved. | 6 | dnl with or without modifications, as long as this notice is preserved. |
diff --git a/m4/mktime.m4 b/m4/mktime.m4 index 3f0e1eee440..aa1b98564e0 100644 --- a/m4/mktime.m4 +++ b/m4/mktime.m4 | |||
| @@ -1,6 +1,6 @@ | |||
| 1 | # serial 25 | 1 | # serial 25 |
| 2 | dnl Copyright (C) 2002-2003, 2005-2007, 2009-2015 Free Software Foundation, | 2 | dnl Copyright (C) 2002-2003, 2005-2007, 2009-2015 Free Software |
| 3 | dnl Inc. | 3 | dnl Foundation, Inc. |
| 4 | dnl This file is free software; the Free Software Foundation | 4 | dnl This file is free software; the Free Software Foundation |
| 5 | dnl gives unlimited permission to copy and/or distribute it, | 5 | dnl gives unlimited permission to copy and/or distribute it, |
| 6 | dnl with or without modifications, as long as this notice is preserved. | 6 | dnl with or without modifications, as long as this notice is preserved. |
diff --git a/m4/pathmax.m4 b/m4/pathmax.m4 index 0e3db7a237b..ee4ed0b1799 100644 --- a/m4/pathmax.m4 +++ b/m4/pathmax.m4 | |||
| @@ -1,6 +1,6 @@ | |||
| 1 | # pathmax.m4 serial 10 | 1 | # pathmax.m4 serial 10 |
| 2 | dnl Copyright (C) 2002-2003, 2005-2006, 2009-2015 Free Software Foundation, | 2 | dnl Copyright (C) 2002-2003, 2005-2006, 2009-2015 Free Software |
| 3 | dnl Inc. | 3 | dnl Foundation, Inc. |
| 4 | dnl This file is free software; the Free Software Foundation | 4 | dnl This file is free software; the Free Software Foundation |
| 5 | dnl gives unlimited permission to copy and/or distribute it, | 5 | dnl gives unlimited permission to copy and/or distribute it, |
| 6 | dnl with or without modifications, as long as this notice is preserved. | 6 | dnl with or without modifications, as long as this notice is preserved. |
diff --git a/m4/sig2str.m4 b/m4/sig2str.m4 index 71cfa4b2bfa..f9b2e118907 100644 --- a/m4/sig2str.m4 +++ b/m4/sig2str.m4 | |||
| @@ -1,5 +1,6 @@ | |||
| 1 | # serial 7 | 1 | # serial 7 |
| 2 | dnl Copyright (C) 2002, 2005-2006, 2009-2015 Free Software Foundation, Inc. | 2 | dnl Copyright (C) 2002, 2005-2006, 2009-2015 Free Software Foundation, |
| 3 | dnl Inc. | ||
| 3 | dnl This file is free software; the Free Software Foundation | 4 | dnl This file is free software; the Free Software Foundation |
| 4 | dnl gives unlimited permission to copy and/or distribute it, | 5 | dnl gives unlimited permission to copy and/or distribute it, |
| 5 | dnl with or without modifications, as long as this notice is preserved. | 6 | dnl with or without modifications, as long as this notice is preserved. |
diff --git a/m4/ssize_t.m4 b/m4/ssize_t.m4 index 25bd4514343..06d3b60eeac 100644 --- a/m4/ssize_t.m4 +++ b/m4/ssize_t.m4 | |||
| @@ -1,5 +1,6 @@ | |||
| 1 | # ssize_t.m4 serial 5 (gettext-0.18.2) | 1 | # ssize_t.m4 serial 5 (gettext-0.18.2) |
| 2 | dnl Copyright (C) 2001-2003, 2006, 2010-2015 Free Software Foundation, Inc. | 2 | dnl Copyright (C) 2001-2003, 2006, 2010-2015 Free Software Foundation, |
| 3 | dnl Inc. | ||
| 3 | dnl This file is free software; the Free Software Foundation | 4 | dnl This file is free software; the Free Software Foundation |
| 4 | dnl gives unlimited permission to copy and/or distribute it, | 5 | dnl gives unlimited permission to copy and/or distribute it, |
| 5 | dnl with or without modifications, as long as this notice is preserved. | 6 | dnl with or without modifications, as long as this notice is preserved. |
diff --git a/m4/st_dm_mode.m4 b/m4/st_dm_mode.m4 index 6543bf625b5..df69a8413c6 100644 --- a/m4/st_dm_mode.m4 +++ b/m4/st_dm_mode.m4 | |||
| @@ -1,6 +1,7 @@ | |||
| 1 | # serial 6 | 1 | # serial 6 |
| 2 | 2 | ||
| 3 | # Copyright (C) 1998-1999, 2001, 2009-2015 Free Software Foundation, Inc. | 3 | # Copyright (C) 1998-1999, 2001, 2009-2015 Free Software Foundation, |
| 4 | # Inc. | ||
| 4 | # This file is free software; the Free Software Foundation | 5 | # This file is free software; the Free Software Foundation |
| 5 | # gives unlimited permission to copy and/or distribute it, | 6 | # gives unlimited permission to copy and/or distribute it, |
| 6 | # with or without modifications, as long as this notice is preserved. | 7 | # with or without modifications, as long as this notice is preserved. |
diff --git a/m4/stat-time.m4 b/m4/stat-time.m4 index 9c8ceec1893..c7cacaa494f 100644 --- a/m4/stat-time.m4 +++ b/m4/stat-time.m4 | |||
| @@ -1,7 +1,7 @@ | |||
| 1 | # Checks for stat-related time functions. | 1 | # Checks for stat-related time functions. |
| 2 | 2 | ||
| 3 | # Copyright (C) 1998-1999, 2001, 2003, 2005-2007, 2009-2015 Free Software | 3 | # Copyright (C) 1998-1999, 2001, 2003, 2005-2007, 2009-2015 Free |
| 4 | # Foundation, Inc. | 4 | # Software Foundation, Inc. |
| 5 | 5 | ||
| 6 | # This file is free software; the Free Software Foundation | 6 | # This file is free software; the Free Software Foundation |
| 7 | # gives unlimited permission to copy and/or distribute it, | 7 | # gives unlimited permission to copy and/or distribute it, |
diff --git a/m4/stdarg.m4 b/m4/stdarg.m4 new file mode 100644 index 00000000000..d208eb35e43 --- /dev/null +++ b/m4/stdarg.m4 | |||
| @@ -0,0 +1,78 @@ | |||
| 1 | # stdarg.m4 serial 6 | ||
| 2 | dnl Copyright (C) 2006, 2008-2015 Free Software Foundation, Inc. | ||
| 3 | dnl This file is free software; the Free Software Foundation | ||
| 4 | dnl gives unlimited permission to copy and/or distribute it, | ||
| 5 | dnl with or without modifications, as long as this notice is preserved. | ||
| 6 | |||
| 7 | dnl From Bruno Haible. | ||
| 8 | dnl Provide a working va_copy in combination with <stdarg.h>. | ||
| 9 | |||
| 10 | AC_DEFUN([gl_STDARG_H], | ||
| 11 | [ | ||
| 12 | STDARG_H='' | ||
| 13 | NEXT_STDARG_H='<stdarg.h>' | ||
| 14 | AC_MSG_CHECKING([for va_copy]) | ||
| 15 | AC_CACHE_VAL([gl_cv_func_va_copy], [ | ||
| 16 | AC_COMPILE_IFELSE( | ||
| 17 | [AC_LANG_PROGRAM( | ||
| 18 | [[#include <stdarg.h>]], | ||
| 19 | [[ | ||
| 20 | #ifndef va_copy | ||
| 21 | void (*func) (va_list, va_list) = va_copy; | ||
| 22 | #endif | ||
| 23 | ]])], | ||
| 24 | [gl_cv_func_va_copy=yes], | ||
| 25 | [gl_cv_func_va_copy=no])]) | ||
| 26 | AC_MSG_RESULT([$gl_cv_func_va_copy]) | ||
| 27 | if test $gl_cv_func_va_copy = no; then | ||
| 28 | dnl Provide a substitute. | ||
| 29 | dnl Usually a simple definition in <config.h> is enough. Not so on AIX 5 | ||
| 30 | dnl with some versions of the /usr/vac/bin/cc compiler. It has an <stdarg.h> | ||
| 31 | dnl which does '#undef va_copy', leading to a missing va_copy symbol. For | ||
| 32 | dnl this platform, we use an <stdarg.h> substitute. But we cannot use this | ||
| 33 | dnl approach on other platforms, because <stdarg.h> often defines only | ||
| 34 | dnl preprocessor macros and gl_ABSOLUTE_HEADER, gl_CHECK_NEXT_HEADERS do | ||
| 35 | dnl not work in this situation. | ||
| 36 | AC_EGREP_CPP([vaccine], | ||
| 37 | [#if defined _AIX && !defined __GNUC__ | ||
| 38 | AIX vaccine | ||
| 39 | #endif | ||
| 40 | ], [gl_aixcc=yes], [gl_aixcc=no]) | ||
| 41 | if test $gl_aixcc = yes; then | ||
| 42 | dnl Provide a substitute <stdarg.h> file. | ||
| 43 | STDARG_H=stdarg.h | ||
| 44 | gl_NEXT_HEADERS([stdarg.h]) | ||
| 45 | dnl Fallback for the case when <stdarg.h> contains only macro definitions. | ||
| 46 | if test "$gl_cv_next_stdarg_h" = '""'; then | ||
| 47 | gl_cv_next_stdarg_h='"///usr/include/stdarg.h"' | ||
| 48 | NEXT_STDARG_H="$gl_cv_next_stdarg_h" | ||
| 49 | fi | ||
| 50 | else | ||
| 51 | dnl Provide a substitute in <config.h>, either __va_copy or as a simple | ||
| 52 | dnl assignment. | ||
| 53 | gl_CACHE_VAL_SILENT([gl_cv_func___va_copy], [ | ||
| 54 | AC_COMPILE_IFELSE( | ||
| 55 | [AC_LANG_PROGRAM( | ||
| 56 | [[#include <stdarg.h>]], | ||
| 57 | [[ | ||
| 58 | #ifndef __va_copy | ||
| 59 | error, bail out | ||
| 60 | #endif | ||
| 61 | ]])], | ||
| 62 | [gl_cv_func___va_copy=yes], | ||
| 63 | [gl_cv_func___va_copy=no])]) | ||
| 64 | if test $gl_cv_func___va_copy = yes; then | ||
| 65 | AC_DEFINE([va_copy], [__va_copy], | ||
| 66 | [Define as a macro for copying va_list variables.]) | ||
| 67 | else | ||
| 68 | AH_VERBATIM([gl_VA_COPY], [/* A replacement for va_copy, if needed. */ | ||
| 69 | #define gl_va_copy(a,b) ((a) = (b))]) | ||
| 70 | AC_DEFINE([va_copy], [gl_va_copy], | ||
| 71 | [Define as a macro for copying va_list variables.]) | ||
| 72 | fi | ||
| 73 | fi | ||
| 74 | fi | ||
| 75 | AC_SUBST([STDARG_H]) | ||
| 76 | AM_CONDITIONAL([GL_GENERATE_STDARG_H], [test -n "$STDARG_H"]) | ||
| 77 | AC_SUBST([NEXT_STDARG_H]) | ||
| 78 | ]) | ||
diff --git a/m4/stdbool.m4 b/m4/stdbool.m4 new file mode 100644 index 00000000000..7273b822465 --- /dev/null +++ b/m4/stdbool.m4 | |||
| @@ -0,0 +1,100 @@ | |||
| 1 | # Check for stdbool.h that conforms to C99. | ||
| 2 | |||
| 3 | dnl Copyright (C) 2002-2006, 2009-2015 Free Software Foundation, Inc. | ||
| 4 | dnl This file is free software; the Free Software Foundation | ||
| 5 | dnl gives unlimited permission to copy and/or distribute it, | ||
| 6 | dnl with or without modifications, as long as this notice is preserved. | ||
| 7 | |||
| 8 | #serial 5 | ||
| 9 | |||
| 10 | # Prepare for substituting <stdbool.h> if it is not supported. | ||
| 11 | |||
| 12 | AC_DEFUN([AM_STDBOOL_H], | ||
| 13 | [ | ||
| 14 | AC_REQUIRE([AC_CHECK_HEADER_STDBOOL]) | ||
| 15 | |||
| 16 | # Define two additional variables used in the Makefile substitution. | ||
| 17 | |||
| 18 | if test "$ac_cv_header_stdbool_h" = yes; then | ||
| 19 | STDBOOL_H='' | ||
| 20 | else | ||
| 21 | STDBOOL_H='stdbool.h' | ||
| 22 | fi | ||
| 23 | AC_SUBST([STDBOOL_H]) | ||
| 24 | AM_CONDITIONAL([GL_GENERATE_STDBOOL_H], [test -n "$STDBOOL_H"]) | ||
| 25 | |||
| 26 | if test "$ac_cv_type__Bool" = yes; then | ||
| 27 | HAVE__BOOL=1 | ||
| 28 | else | ||
| 29 | HAVE__BOOL=0 | ||
| 30 | fi | ||
| 31 | AC_SUBST([HAVE__BOOL]) | ||
| 32 | ]) | ||
| 33 | |||
| 34 | # AM_STDBOOL_H will be renamed to gl_STDBOOL_H in the future. | ||
| 35 | AC_DEFUN([gl_STDBOOL_H], [AM_STDBOOL_H]) | ||
| 36 | |||
| 37 | # This version of the macro is needed in autoconf <= 2.68. | ||
| 38 | |||
| 39 | AC_DEFUN([AC_CHECK_HEADER_STDBOOL], | ||
| 40 | [AC_CACHE_CHECK([for stdbool.h that conforms to C99], | ||
| 41 | [ac_cv_header_stdbool_h], | ||
| 42 | [AC_COMPILE_IFELSE( | ||
| 43 | [AC_LANG_PROGRAM( | ||
| 44 | [[ | ||
| 45 | #include <stdbool.h> | ||
| 46 | #ifndef bool | ||
| 47 | "error: bool is not defined" | ||
| 48 | #endif | ||
| 49 | #ifndef false | ||
| 50 | "error: false is not defined" | ||
| 51 | #endif | ||
| 52 | #if false | ||
| 53 | "error: false is not 0" | ||
| 54 | #endif | ||
| 55 | #ifndef true | ||
| 56 | "error: true is not defined" | ||
| 57 | #endif | ||
| 58 | #if true != 1 | ||
| 59 | "error: true is not 1" | ||
| 60 | #endif | ||
| 61 | #ifndef __bool_true_false_are_defined | ||
| 62 | "error: __bool_true_false_are_defined is not defined" | ||
| 63 | #endif | ||
| 64 | |||
| 65 | struct s { _Bool s: 1; _Bool t; } s; | ||
| 66 | |||
| 67 | char a[true == 1 ? 1 : -1]; | ||
| 68 | char b[false == 0 ? 1 : -1]; | ||
| 69 | char c[__bool_true_false_are_defined == 1 ? 1 : -1]; | ||
| 70 | char d[(bool) 0.5 == true ? 1 : -1]; | ||
| 71 | /* See body of main program for 'e'. */ | ||
| 72 | char f[(_Bool) 0.0 == false ? 1 : -1]; | ||
| 73 | char g[true]; | ||
| 74 | char h[sizeof (_Bool)]; | ||
| 75 | char i[sizeof s.t]; | ||
| 76 | enum { j = false, k = true, l = false * true, m = true * 256 }; | ||
| 77 | /* The following fails for | ||
| 78 | HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */ | ||
| 79 | _Bool n[m]; | ||
| 80 | char o[sizeof n == m * sizeof n[0] ? 1 : -1]; | ||
| 81 | char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1]; | ||
| 82 | /* Catch a bug in an HP-UX C compiler. See | ||
| 83 | http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html | ||
| 84 | http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html | ||
| 85 | */ | ||
| 86 | _Bool q = true; | ||
| 87 | _Bool *pq = &q; | ||
| 88 | ]], | ||
| 89 | [[ | ||
| 90 | bool e = &s; | ||
| 91 | *pq |= q; | ||
| 92 | *pq |= ! q; | ||
| 93 | /* Refer to every declared value, to avoid compiler optimizations. */ | ||
| 94 | return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l | ||
| 95 | + !m + !n + !o + !p + !q + !pq); | ||
| 96 | ]])], | ||
| 97 | [ac_cv_header_stdbool_h=yes], | ||
| 98 | [ac_cv_header_stdbool_h=no])]) | ||
| 99 | AC_CHECK_TYPES([_Bool]) | ||
| 100 | ]) | ||
diff --git a/m4/strftime.m4 b/m4/strftime.m4 index 4557626ae08..dafcbaa733b 100644 --- a/m4/strftime.m4 +++ b/m4/strftime.m4 | |||
| @@ -1,6 +1,7 @@ | |||
| 1 | # serial 33 | 1 | # serial 33 |
| 2 | 2 | ||
| 3 | # Copyright (C) 1996-1997, 1999-2007, 2009-2015 Free Software Foundation, Inc. | 3 | # Copyright (C) 1996-1997, 1999-2007, 2009-2015 Free Software |
| 4 | # Foundation, Inc. | ||
| 4 | # | 5 | # |
| 5 | # This file is free software; the Free Software Foundation | 6 | # This file is free software; the Free Software Foundation |
| 6 | # gives unlimited permission to copy and/or distribute it, | 7 | # gives unlimited permission to copy and/or distribute it, |
diff --git a/m4/strtoimax.m4 b/m4/strtoimax.m4 index fde732aa90a..7662cf8b372 100644 --- a/m4/strtoimax.m4 +++ b/m4/strtoimax.m4 | |||
| @@ -1,5 +1,6 @@ | |||
| 1 | # strtoimax.m4 serial 14 | 1 | # strtoimax.m4 serial 14 |
| 2 | dnl Copyright (C) 2002-2004, 2006, 2009-2015 Free Software Foundation, Inc. | 2 | dnl Copyright (C) 2002-2004, 2006, 2009-2015 Free Software Foundation, |
| 3 | dnl Inc. | ||
| 3 | dnl This file is free software; the Free Software Foundation | 4 | dnl This file is free software; the Free Software Foundation |
| 4 | dnl gives unlimited permission to copy and/or distribute it, | 5 | dnl gives unlimited permission to copy and/or distribute it, |
| 5 | dnl with or without modifications, as long as this notice is preserved. | 6 | dnl with or without modifications, as long as this notice is preserved. |
diff --git a/m4/strtoll.m4 b/m4/strtoll.m4 index 666f44a6ba2..43365e140d8 100644 --- a/m4/strtoll.m4 +++ b/m4/strtoll.m4 | |||
| @@ -1,5 +1,6 @@ | |||
| 1 | # strtoll.m4 serial 7 | 1 | # strtoll.m4 serial 7 |
| 2 | dnl Copyright (C) 2002, 2004, 2006, 2008-2015 Free Software Foundation, Inc. | 2 | dnl Copyright (C) 2002, 2004, 2006, 2008-2015 Free Software Foundation, |
| 3 | dnl Inc. | ||
| 3 | dnl This file is free software; the Free Software Foundation | 4 | dnl This file is free software; the Free Software Foundation |
| 4 | dnl gives unlimited permission to copy and/or distribute it, | 5 | dnl gives unlimited permission to copy and/or distribute it, |
| 5 | dnl with or without modifications, as long as this notice is preserved. | 6 | dnl with or without modifications, as long as this notice is preserved. |
diff --git a/m4/strtoull.m4 b/m4/strtoull.m4 index 4267bd72569..982286259bd 100644 --- a/m4/strtoull.m4 +++ b/m4/strtoull.m4 | |||
| @@ -1,5 +1,6 @@ | |||
| 1 | # strtoull.m4 serial 7 | 1 | # strtoull.m4 serial 7 |
| 2 | dnl Copyright (C) 2002, 2004, 2006, 2008-2015 Free Software Foundation, Inc. | 2 | dnl Copyright (C) 2002, 2004, 2006, 2008-2015 Free Software Foundation, |
| 3 | dnl Inc. | ||
| 3 | dnl This file is free software; the Free Software Foundation | 4 | dnl This file is free software; the Free Software Foundation |
| 4 | dnl gives unlimited permission to copy and/or distribute it, | 5 | dnl gives unlimited permission to copy and/or distribute it, |
| 5 | dnl with or without modifications, as long as this notice is preserved. | 6 | dnl with or without modifications, as long as this notice is preserved. |
diff --git a/m4/strtoumax.m4 b/m4/strtoumax.m4 index 5312ef4d518..d9d7893f1fb 100644 --- a/m4/strtoumax.m4 +++ b/m4/strtoumax.m4 | |||
| @@ -1,5 +1,6 @@ | |||
| 1 | # strtoumax.m4 serial 12 | 1 | # strtoumax.m4 serial 12 |
| 2 | dnl Copyright (C) 2002-2004, 2006, 2009-2015 Free Software Foundation, Inc. | 2 | dnl Copyright (C) 2002-2004, 2006, 2009-2015 Free Software Foundation, |
| 3 | dnl Inc. | ||
| 3 | dnl This file is free software; the Free Software Foundation | 4 | dnl This file is free software; the Free Software Foundation |
| 4 | dnl gives unlimited permission to copy and/or distribute it, | 5 | dnl gives unlimited permission to copy and/or distribute it, |
| 5 | dnl with or without modifications, as long as this notice is preserved. | 6 | dnl with or without modifications, as long as this notice is preserved. |
diff --git a/m4/time_h.m4 b/m4/time_h.m4 index 0f0b7d9a2ac..03579a3ae37 100644 --- a/m4/time_h.m4 +++ b/m4/time_h.m4 | |||
| @@ -1,6 +1,7 @@ | |||
| 1 | # Configure a more-standard replacement for <time.h>. | 1 | # Configure a more-standard replacement for <time.h>. |
| 2 | 2 | ||
| 3 | # Copyright (C) 2000-2001, 2003-2007, 2009-2015 Free Software Foundation, Inc. | 3 | # Copyright (C) 2000-2001, 2003-2007, 2009-2015 Free Software |
| 4 | # Foundation, Inc. | ||
| 4 | 5 | ||
| 5 | # serial 8 | 6 | # serial 8 |
| 6 | 7 | ||
diff --git a/m4/timespec.m4 b/m4/timespec.m4 index 06b3533e42f..e5dc48d8ec4 100644 --- a/m4/timespec.m4 +++ b/m4/timespec.m4 | |||
| @@ -1,6 +1,7 @@ | |||
| 1 | #serial 15 | 1 | #serial 15 |
| 2 | 2 | ||
| 3 | # Copyright (C) 2000-2001, 2003-2007, 2009-2015 Free Software Foundation, Inc. | 3 | # Copyright (C) 2000-2001, 2003-2007, 2009-2015 Free Software |
| 4 | # Foundation, Inc. | ||
| 4 | 5 | ||
| 5 | # This file is free software; the Free Software Foundation | 6 | # This file is free software; the Free Software Foundation |
| 6 | # gives unlimited permission to copy and/or distribute it, | 7 | # gives unlimited permission to copy and/or distribute it, |
diff --git a/m4/utimbuf.m4 b/m4/utimbuf.m4 index 7c33ae94923..fae96f1a2da 100644 --- a/m4/utimbuf.m4 +++ b/m4/utimbuf.m4 | |||
| @@ -1,7 +1,7 @@ | |||
| 1 | # serial 9 | 1 | # serial 9 |
| 2 | 2 | ||
| 3 | # Copyright (C) 1998-2001, 2003-2004, 2007, 2009-2015 Free Software Foundation, | 3 | # Copyright (C) 1998-2001, 2003-2004, 2007, 2009-2015 Free Software |
| 4 | # Inc. | 4 | # Foundation, Inc. |
| 5 | # | 5 | # |
| 6 | # This file is free software; the Free Software Foundation | 6 | # This file is free software; the Free Software Foundation |
| 7 | # gives unlimited permission to copy and/or distribute it, | 7 | # gives unlimited permission to copy and/or distribute it, |