rather than gl_C_RESTRICT.
+2006-08-09 Paul Eggert <eggert@cs.ucla.edu>
+
+ * modules/restrict: Remove; no longer needed now that we assume
+ Autoconf 2.59 or later.
+ * MODULES.html.sh: Remove 'restrict'.
+ * modules/argp (Depends-on): Remove 'restrict'.
+ * modules/base64 (Depends-on): Likewise.
+ * modules/gc (Depends-on): Likewise.
+ * modules/getaddrinfo (Depends-on): Likewise.
+ * modules/glob (Depends-on): Likewise.
+ * modules/inet_ntop (Depends-on): Likewise.
+ * modules/inet_pton (Depends-on): Likewise.
+ * modules/memxor (Depends-on): Likewise.
+ * modules/regex (Depends-on): Likewise.
+ * modules/strtok_r (Depends-on): Likewise.
+ * modules/time_r (Depends-on): Likewise.
+
2006-08-08 Eric Blake <ebb9@byu.net>
* modules/verror: New module.
func_wrap H2
func_echo "$element"
- element="Keywords"
- element=`printf "%s" "$element" | sed -e "$sed_lt" -e "$sed_gt"`
- func_section_wrap isoc_sup_keywords
- func_wrap H3
- func_echo "$element"
-
- func_begin_table
- func_module restrict
- func_end_table
-
element="Sizes of integer types <limits.h>"
element=`printf "%s" "$element" | sed -e "$sed_lt" -e "$sed_gt"`
func_section_wrap isoc_sup_limits
2006-08-09 Paul Eggert <eggert@cs.ucla.edu>
+ * argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
+ * gc.m4 (gl_PREREQ_GC): Likewise.
+ * glob.m4 (gl_PREREQ_GLOB): Likewise.
+ * inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
+ * inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
+ * memxor.m4 (gl_MEMXOR): Likewise.
+ * restrict.m4: Remove; no longer needed. All remaining uses of
+ gl_C_RESTRICT replaced by AC_C_RESTRICT.
+
Merge from coreutils.
* regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
-# argp.m4 serial 6
+# argp.m4 serial 7
dnl Copyright (C) 2003-2006 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
AC_DEFUN([gl_ARGP],
[
AC_REQUIRE([AC_C_INLINE])
+ AC_REQUIRE([AC_C_RESTRICT])
AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS])
AC_REQUIRE([gl_GETOPT_SUBSTITUTE])
-# base64.m4 serial 2
-dnl Copyright (C) 2004 Free Software Foundation, Inc.
+# base64.m4 serial 3
+dnl Copyright (C) 2004, 2006 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.
# Prerequisites of lib/base64.c.
AC_DEFUN([gl_PREREQ_BASE64], [
AC_REQUIRE([AC_C_INLINE])
- AC_REQUIRE([gl_C_RESTRICT])
+ AC_REQUIRE([AC_C_RESTRICT])
])
-# gc.m4 serial 2
+# gc.m4 serial 3
dnl Copyright (C) 2005, 2006 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
])
# Prerequisites of lib/gc.h
-AC_DEFUN([gl_PREREQ_GC], [:])
+AC_DEFUN([gl_PREREQ_GC],
+[
+ AC_REQUIRE([AC_C_RESTRICT])
+ :
+])
-# getaddrinfo.m4 serial 10
+# getaddrinfo.m4 serial 11
dnl Copyright (C) 2004, 2005, 2006 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
LIBS="$LIBS -lws2_32"
fi
])
- AC_REQUIRE([gl_C_RESTRICT])
+ AC_REQUIRE([AC_C_RESTRICT])
AC_REQUIRE([gl_SOCKET_FAMILIES])
AC_REQUIRE([gl_HEADER_SYS_SOCKET])
AC_REQUIRE([AC_C_INLINE])
-# glob.m4 serial 5
+# glob.m4 serial 6
dnl Copyright (C) 2005, 2006 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
# Prerequisites of lib/glob.*.
AC_DEFUN([gl_PREREQ_GLOB],
[ AC_REQUIRE([gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE])dnl
+ AC_REQUIRE([AC_C_RESTRICT])dnl
AC_REQUIRE([AC_GNU_SOURCE])dnl
AC_CHECK_HEADERS_ONCE([sys/cdefs.h unistd.h])dnl
AC_CHECK_FUNCS_ONCE([getlogin_r getpwnam_r])dnl
-# inet_ntop.m4 serial 2
+# inet_ntop.m4 serial 3
dnl Copyright (C) 2005, 2006 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
AC_CHECK_HEADERS_ONCE([netinet/in.h arpa/inet.h])
AC_CHECK_DECLS([inet_ntop],,,[#include <arpa/inet.h>])
AC_REQUIRE([gl_SOCKET_FAMILIES])
+ AC_REQUIRE([AC_C_RESTRICT])
])
-# inet_pton.m4 serial 1
+# inet_pton.m4 serial 2
dnl Copyright (C) 2006 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
AC_CHECK_HEADERS_ONCE([netinet/in.h arpa/inet.h])
AC_CHECK_DECLS([inet_pton],,,[#include <arpa/inet.h>])
AC_REQUIRE([gl_SOCKET_FAMILIES])
+ AC_REQUIRE([AC_C_RESTRICT])
])
-# memxor.m4 serial 1
-dnl Copyright (C) 2005 Free Software Foundation, Inc.
+# memxor.m4 serial 2
+dnl Copyright (C) 2006 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.
[
AC_LIBSOURCES([memxor.h, memxor.c])
AC_LIBOBJ([memxor])
+ AC_REQUIRE([AC_C_RESTRICT])
])
+++ /dev/null
-#serial 1003
-dnl Copyright (C) 2003 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.
-
-# This macro can be removed once we can rely on Autoconf 2.57a or later,
-# since we can then use its AC_C_RESTRICT.
-
-# gl_C_RESTRICT
-# --------------
-# Determine whether the C/C++ compiler supports the "restrict" keyword
-# introduced in ANSI C99, or an equivalent. Do nothing if the compiler
-# accepts it. Otherwise, if the compiler supports an equivalent,
-# define "restrict" to be that. Here are some variants:
-# - GCC supports both __restrict and __restrict__
-# - older DEC Alpha C compilers support only __restrict
-# - _Restrict is the only spelling accepted by Sun WorkShop 6 update 2 C
-# Otherwise, define "restrict" to be empty.
-AC_DEFUN([gl_C_RESTRICT],
-[AC_CACHE_CHECK([for C/C++ restrict keyword], gl_cv_c_restrict,
- [gl_cv_c_restrict=no
- # Try the official restrict keyword, then gcc's __restrict, and
- # the less common variants.
- for ac_kw in restrict __restrict __restrict__ _Restrict; do
- AC_COMPILE_IFELSE([AC_LANG_SOURCE(
- [float * $ac_kw x;])],
- [gl_cv_c_restrict=$ac_kw; break])
- done
- ])
- case $gl_cv_c_restrict in
- restrict) ;;
- no) AC_DEFINE(restrict,,
- [Define to equivalent of C99 restrict keyword, or to nothing if this
- is not supported. Do not define if restrict is supported directly.]) ;;
- *) AC_DEFINE_UNQUOTED(restrict, $gl_cv_c_restrict) ;;
- esac
-])
sysexits
mempcpy
strndup
-restrict
strcase
extensions
vsnprintf
Depends-on:
stdbool
-restrict
configure.ac:
gl_FUNC_BASE64
Depends-on:
havelib
-restrict
configure.ac:
gl_GC
m4/getaddrinfo.m4
Depends-on:
-restrict
gettext-h
snprintf
socklen
fnmatch
getlogin_r
mempcpy
-restrict
stat-macros
stdbool
strdup
m4/inet_ntop.m4
Depends-on:
-restrict
socklen
sys_socket
arpa_inet
m4/inet_pton.m4
Depends-on:
-restrict
socklen
sys_socket
arpa_inet
m4/memxor.m4
Depends-on:
-restrict
configure.ac:
gl_MEMXOR
extensions
gettext-h
malloc
-restrict
strcase
ssize_t
+++ /dev/null
-Description:
-The C99 'restrict' keyword.
-
-Files:
-m4/restrict.m4
-
-Depends-on:
-
-configure.ac:
-gl_C_RESTRICT
-
-Makefile.am:
-
-Include:
-
-License:
-LGPL
-
-Maintainer:
-Paul Eggert and Jim Meyering
m4/strtok_r.m4
Depends-on:
-restrict
configure.ac:
gl_FUNC_STRTOK_R
Depends-on:
extensions
-restrict
configure.ac:
gl_TIME_R