Commit 562d4436 authored by Paul Eggert's avatar Paul Eggert
Browse files

Merge from gnulib.

2012-08-19 ignore-value, stat-time, timespec: omit AC_C_INLINE
2012-08-19 mktime, sys_select: avoid 'static inline'
2012-08-19 gnulib-tool: Fix indentation.
parent b69a6d22
2012-08-19 Paul Eggert <eggert@cs.ucla.edu>
Merge from gnulib, incorporating:
2012-08-19 ignore-value, stat-time, timespec: omit AC_C_INLINE
2012-08-19 mktime, sys_select: avoid 'static inline'
2012-08-19 gnulib-tool: Fix indentation.
2012-08-18 Paul Eggert <eggert@cs.ucla.edu> 2012-08-18 Paul Eggert <eggert@cs.ucla.edu>
* lib/sigprocmask.c, m4/signalblocking.m4: Remove. * lib/sigprocmask.c, m4/signalblocking.m4: Remove.
......
...@@ -21,7 +21,7 @@ ...@@ -21,7 +21,7 @@
# the same distribution terms as the rest of that program. # the same distribution terms as the rest of that program.
# #
# Generated by gnulib-tool. # Generated by gnulib-tool.
# Reproduce by: gnulib-tool --import --dir=. --lib=libgnu --source-base=lib --m4-base=m4 --doc-base=doc --tests-base=tests --aux-dir=build-aux --avoid=errno --avoid=fcntl --avoid=fcntl-h --avoid=fstat --avoid=msvc-inval --avoid=msvc-nothrow --avoid=raise --avoid=select --avoid=sigprocmask --avoid=sys_types --avoid=threadlib --makefile-name=gnulib.mk --conditional-dependencies --no-libtool --macro-prefix=gl --no-vc-files alloca-opt c-strcase careadlinkat crypto/md5 crypto/sha1 crypto/sha256 crypto/sha512 dtoastr dtotimespec dup2 environ filemode getloadavg getopt-gnu gettime gettimeofday ignore-value intprops largefile lstat manywarnings mktime pselect pthread_sigmask readlink socklen stat-time stdalign stdarg stdio strftime strtoimax strtoumax symlink sys_stat sys_time time timespec-add timespec-sub utimens warnings # Reproduce by: gnulib-tool --import --dir=. --lib=libgnu --source-base=lib --m4-base=m4 --doc-base=doc --tests-base=tests --aux-dir=build-aux --avoid=errno --avoid=fcntl --avoid=fcntl-h --avoid=fstat --avoid=msvc-inval --avoid=msvc-nothrow --avoid=raise --avoid=select --avoid=sigprocmask --avoid=sys_types --avoid=threadlib --makefile-name=gnulib.mk --conditional-dependencies --no-libtool --macro-prefix=gl --no-vc-files alloca-opt c-ctype c-strcase careadlinkat crypto/md5 crypto/sha1 crypto/sha256 crypto/sha512 dtoastr dtotimespec dup2 environ filemode getloadavg getopt-gnu gettime gettimeofday ignore-value intprops largefile lstat manywarnings mktime pselect pthread_sigmask readlink socklen stat-time stdalign stdarg stdbool stdio strftime strtoimax strtoumax symlink sys_stat sys_time time timespec-add timespec-sub utimens warnings
MOSTLYCLEANFILES += core *.stackdump MOSTLYCLEANFILES += core *.stackdump
......
...@@ -142,7 +142,7 @@ verify (twos_complement_arithmetic, ...@@ -142,7 +142,7 @@ verify (twos_complement_arithmetic,
verify (base_year_is_a_multiple_of_100, TM_YEAR_BASE % 100 == 0); verify (base_year_is_a_multiple_of_100, TM_YEAR_BASE % 100 == 0);
/* Return 1 if YEAR + TM_YEAR_BASE is a leap year. */ /* Return 1 if YEAR + TM_YEAR_BASE is a leap year. */
static inline int static int
leapyear (long_int year) leapyear (long_int year)
{ {
/* Don't add YEAR to TM_YEAR_BASE, as that might overflow. /* Don't add YEAR to TM_YEAR_BASE, as that might overflow.
...@@ -196,7 +196,7 @@ isdst_differ (int a, int b) ...@@ -196,7 +196,7 @@ isdst_differ (int a, int b)
The result may overflow. It is the caller's responsibility to The result may overflow. It is the caller's responsibility to
detect overflow. */ detect overflow. */
static inline time_t static time_t
ydhms_diff (long_int year1, long_int yday1, int hour1, int min1, int sec1, ydhms_diff (long_int year1, long_int yday1, int hour1, int min1, int sec1,
int year0, int yday0, int hour0, int min0, int sec0) int year0, int yday0, int hour0, int min0, int sec0)
{ {
......
...@@ -130,7 +130,7 @@ ...@@ -130,7 +130,7 @@
/* Re-define FD_ISSET to avoid a WSA call while we are not using /* Re-define FD_ISSET to avoid a WSA call while we are not using
network sockets. */ network sockets. */
static inline int static int
rpl_fd_isset (SOCKET fd, fd_set * set) rpl_fd_isset (SOCKET fd, fd_set * set)
{ {
u_int i; u_int i;
......
...@@ -136,135 +136,134 @@ AC_DEFUN([gl_INIT], ...@@ -136,135 +136,134 @@ AC_DEFUN([gl_INIT],
m4_pushdef([gl_LIBSOURCES_DIR], []) m4_pushdef([gl_LIBSOURCES_DIR], [])
gl_COMMON gl_COMMON
gl_source_base='lib' gl_source_base='lib'
gl_FUNC_ALLOCA gl_FUNC_ALLOCA
AC_CHECK_FUNCS_ONCE([readlinkat]) AC_CHECK_FUNCS_ONCE([readlinkat])
gl_CLOCK_TIME gl_CLOCK_TIME
gl_MD5 gl_MD5
gl_SHA1 gl_SHA1
gl_SHA256 gl_SHA256
gl_SHA512 gl_SHA512
AC_REQUIRE([gl_C99_STRTOLD]) AC_REQUIRE([gl_C99_STRTOLD])
gl_FUNC_DUP2 gl_FUNC_DUP2
if test $HAVE_DUP2 = 0 || test $REPLACE_DUP2 = 1; then if test $HAVE_DUP2 = 0 || test $REPLACE_DUP2 = 1; then
AC_LIBOBJ([dup2]) AC_LIBOBJ([dup2])
gl_PREREQ_DUP2 gl_PREREQ_DUP2
fi fi
gl_UNISTD_MODULE_INDICATOR([dup2]) gl_UNISTD_MODULE_INDICATOR([dup2])
gl_ENVIRON gl_ENVIRON
gl_UNISTD_MODULE_INDICATOR([environ]) gl_UNISTD_MODULE_INDICATOR([environ])
AC_REQUIRE([gl_EXTERN_INLINE]) AC_REQUIRE([gl_EXTERN_INLINE])
gl_FILEMODE gl_FILEMODE
gl_GETLOADAVG gl_GETLOADAVG
if test $HAVE_GETLOADAVG = 0; then if test $HAVE_GETLOADAVG = 0; then
AC_LIBOBJ([getloadavg]) AC_LIBOBJ([getloadavg])
gl_PREREQ_GETLOADAVG gl_PREREQ_GETLOADAVG
fi fi
gl_STDLIB_MODULE_INDICATOR([getloadavg]) gl_STDLIB_MODULE_INDICATOR([getloadavg])
gl_FUNC_GETOPT_GNU gl_FUNC_GETOPT_GNU
if test $REPLACE_GETOPT = 1; then if test $REPLACE_GETOPT = 1; then
AC_LIBOBJ([getopt]) AC_LIBOBJ([getopt])
AC_LIBOBJ([getopt1]) AC_LIBOBJ([getopt1])
gl_PREREQ_GETOPT gl_PREREQ_GETOPT
dnl Arrange for unistd.h to include getopt.h. dnl Arrange for unistd.h to include getopt.h.
GNULIB_GL_UNISTD_H_GETOPT=1 GNULIB_GL_UNISTD_H_GETOPT=1
fi fi
AC_SUBST([GNULIB_GL_UNISTD_H_GETOPT]) AC_SUBST([GNULIB_GL_UNISTD_H_GETOPT])
gl_MODULE_INDICATOR_FOR_TESTS([getopt-gnu]) gl_MODULE_INDICATOR_FOR_TESTS([getopt-gnu])
gl_FUNC_GETOPT_POSIX gl_FUNC_GETOPT_POSIX
if test $REPLACE_GETOPT = 1; then if test $REPLACE_GETOPT = 1; then
AC_LIBOBJ([getopt]) AC_LIBOBJ([getopt])
AC_LIBOBJ([getopt1]) AC_LIBOBJ([getopt1])
gl_PREREQ_GETOPT gl_PREREQ_GETOPT
dnl Arrange for unistd.h to include getopt.h. dnl Arrange for unistd.h to include getopt.h.
GNULIB_GL_UNISTD_H_GETOPT=1 GNULIB_GL_UNISTD_H_GETOPT=1
fi fi
AC_SUBST([GNULIB_GL_UNISTD_H_GETOPT]) AC_SUBST([GNULIB_GL_UNISTD_H_GETOPT])
gl_GETTIME gl_GETTIME
gl_FUNC_GETTIMEOFDAY gl_FUNC_GETTIMEOFDAY
if test $HAVE_GETTIMEOFDAY = 0 || test $REPLACE_GETTIMEOFDAY = 1; then if test $HAVE_GETTIMEOFDAY = 0 || test $REPLACE_GETTIMEOFDAY = 1; then
AC_LIBOBJ([gettimeofday]) AC_LIBOBJ([gettimeofday])
gl_PREREQ_GETTIMEOFDAY gl_PREREQ_GETTIMEOFDAY
fi fi
gl_SYS_TIME_MODULE_INDICATOR([gettimeofday]) gl_SYS_TIME_MODULE_INDICATOR([gettimeofday])
AC_REQUIRE([AC_C_INLINE]) gl_INTTYPES_INCOMPLETE
gl_INTTYPES_INCOMPLETE AC_REQUIRE([gl_LARGEFILE])
AC_REQUIRE([gl_LARGEFILE]) gl_FUNC_LSTAT
gl_FUNC_LSTAT if test $REPLACE_LSTAT = 1; then
if test $REPLACE_LSTAT = 1; then AC_LIBOBJ([lstat])
AC_LIBOBJ([lstat]) gl_PREREQ_LSTAT
gl_PREREQ_LSTAT fi
fi gl_SYS_STAT_MODULE_INDICATOR([lstat])
gl_SYS_STAT_MODULE_INDICATOR([lstat]) gl_FUNC_MKTIME
gl_FUNC_MKTIME if test $REPLACE_MKTIME = 1; then
if test $REPLACE_MKTIME = 1; then AC_LIBOBJ([mktime])
AC_LIBOBJ([mktime]) gl_PREREQ_MKTIME
gl_PREREQ_MKTIME fi
fi gl_TIME_MODULE_INDICATOR([mktime])
gl_TIME_MODULE_INDICATOR([mktime]) gl_MULTIARCH
gl_MULTIARCH gl_FUNC_PSELECT
gl_FUNC_PSELECT if test $HAVE_PSELECT = 0 || test $REPLACE_PSELECT = 1; then
if test $HAVE_PSELECT = 0 || test $REPLACE_PSELECT = 1; then AC_LIBOBJ([pselect])
AC_LIBOBJ([pselect]) fi
fi gl_SYS_SELECT_MODULE_INDICATOR([pselect])
gl_SYS_SELECT_MODULE_INDICATOR([pselect]) gl_FUNC_PTHREAD_SIGMASK
gl_FUNC_PTHREAD_SIGMASK if test $HAVE_PTHREAD_SIGMASK = 0 || test $REPLACE_PTHREAD_SIGMASK = 1; then
if test $HAVE_PTHREAD_SIGMASK = 0 || test $REPLACE_PTHREAD_SIGMASK = 1; then AC_LIBOBJ([pthread_sigmask])
AC_LIBOBJ([pthread_sigmask]) gl_PREREQ_PTHREAD_SIGMASK
gl_PREREQ_PTHREAD_SIGMASK fi
fi gl_SIGNAL_MODULE_INDICATOR([pthread_sigmask])
gl_SIGNAL_MODULE_INDICATOR([pthread_sigmask]) gl_FUNC_READLINK
gl_FUNC_READLINK if test $HAVE_READLINK = 0 || test $REPLACE_READLINK = 1; then
if test $HAVE_READLINK = 0 || test $REPLACE_READLINK = 1; then AC_LIBOBJ([readlink])
AC_LIBOBJ([readlink]) gl_PREREQ_READLINK
gl_PREREQ_READLINK fi
fi gl_UNISTD_MODULE_INDICATOR([readlink])
gl_UNISTD_MODULE_INDICATOR([readlink]) gl_SIGNAL_H
gl_SIGNAL_H gl_TYPE_SOCKLEN_T
gl_TYPE_SOCKLEN_T gt_TYPE_SSIZE_T
gt_TYPE_SSIZE_T gl_STAT_TIME
gl_STAT_TIME gl_STAT_BIRTHTIME
gl_STAT_BIRTHTIME gl_STDALIGN_H
gl_STDALIGN_H gl_STDARG_H
gl_STDARG_H AM_STDBOOL_H
AM_STDBOOL_H gl_STDDEF_H
gl_STDDEF_H gl_STDINT_H
gl_STDINT_H gl_STDIO_H
gl_STDIO_H gl_STDLIB_H
gl_STDLIB_H gl_FUNC_GNU_STRFTIME
gl_FUNC_GNU_STRFTIME gl_FUNC_STRTOIMAX
gl_FUNC_STRTOIMAX if test $HAVE_STRTOIMAX = 0 || test $REPLACE_STRTOIMAX = 1; then
if test $HAVE_STRTOIMAX = 0 || test $REPLACE_STRTOIMAX = 1; then AC_LIBOBJ([strtoimax])
AC_LIBOBJ([strtoimax]) gl_PREREQ_STRTOIMAX
gl_PREREQ_STRTOIMAX fi
fi gl_INTTYPES_MODULE_INDICATOR([strtoimax])
gl_INTTYPES_MODULE_INDICATOR([strtoimax]) gl_FUNC_STRTOUMAX
gl_FUNC_STRTOUMAX if test $ac_cv_func_strtoumax = no; then
if test $ac_cv_func_strtoumax = no; then AC_LIBOBJ([strtoumax])
AC_LIBOBJ([strtoumax]) gl_PREREQ_STRTOUMAX
gl_PREREQ_STRTOUMAX fi
fi gl_INTTYPES_MODULE_INDICATOR([strtoumax])
gl_INTTYPES_MODULE_INDICATOR([strtoumax]) gl_FUNC_SYMLINK
gl_FUNC_SYMLINK if test $HAVE_SYMLINK = 0 || test $REPLACE_SYMLINK = 1; then
if test $HAVE_SYMLINK = 0 || test $REPLACE_SYMLINK = 1; then AC_LIBOBJ([symlink])
AC_LIBOBJ([symlink]) fi
fi gl_UNISTD_MODULE_INDICATOR([symlink])
gl_UNISTD_MODULE_INDICATOR([symlink]) gl_HEADER_SYS_SELECT
gl_HEADER_SYS_SELECT AC_PROG_MKDIR_P
AC_PROG_MKDIR_P gl_HEADER_SYS_STAT_H
gl_HEADER_SYS_STAT_H AC_PROG_MKDIR_P
AC_PROG_MKDIR_P gl_HEADER_SYS_TIME_H
gl_HEADER_SYS_TIME_H AC_PROG_MKDIR_P
AC_PROG_MKDIR_P gl_HEADER_TIME_H
gl_HEADER_TIME_H gl_TIME_R
gl_TIME_R if test $HAVE_LOCALTIME_R = 0 || test $REPLACE_LOCALTIME_R = 1; then
if test $HAVE_LOCALTIME_R = 0 || test $REPLACE_LOCALTIME_R = 1; then AC_LIBOBJ([time_r])
AC_LIBOBJ([time_r]) gl_PREREQ_TIME_R
gl_PREREQ_TIME_R fi
fi gl_TIME_MODULE_INDICATOR([time_r])
gl_TIME_MODULE_INDICATOR([time_r]) gl_TIMESPEC
gl_TIMESPEC gl_UNISTD_H
gl_UNISTD_H gl_UTIMENS
gl_UTIMENS
gl_gnulib_enabled_dosname=false gl_gnulib_enabled_dosname=false
gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36=false gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36=false
gl_gnulib_enabled_pathmax=false gl_gnulib_enabled_pathmax=false
...@@ -281,27 +280,27 @@ gl_UTIMENS ...@@ -281,27 +280,27 @@ gl_UTIMENS
func_gl_gnulib_m4code_be453cec5eecf5731a274f2de7f2db36 () func_gl_gnulib_m4code_be453cec5eecf5731a274f2de7f2db36 ()
{ {
if ! $gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36; then if ! $gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36; then
AC_SUBST([LIBINTL]) AC_SUBST([LIBINTL])
AC_SUBST([LTLIBINTL]) AC_SUBST([LTLIBINTL])
gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36=true gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36=true
fi fi
} }
func_gl_gnulib_m4code_pathmax () func_gl_gnulib_m4code_pathmax ()
{ {
if ! $gl_gnulib_enabled_pathmax; then if ! $gl_gnulib_enabled_pathmax; then
gl_PATHMAX gl_PATHMAX
gl_gnulib_enabled_pathmax=true gl_gnulib_enabled_pathmax=true
fi fi
} }
func_gl_gnulib_m4code_stat () func_gl_gnulib_m4code_stat ()
{ {
if ! $gl_gnulib_enabled_stat; then if ! $gl_gnulib_enabled_stat; then
gl_FUNC_STAT gl_FUNC_STAT
if test $REPLACE_STAT = 1; then if test $REPLACE_STAT = 1; then
AC_LIBOBJ([stat]) AC_LIBOBJ([stat])
gl_PREREQ_STAT gl_PREREQ_STAT
fi fi
gl_SYS_STAT_MODULE_INDICATOR([stat]) gl_SYS_STAT_MODULE_INDICATOR([stat])
gl_gnulib_enabled_stat=true gl_gnulib_enabled_stat=true
if test $REPLACE_STAT = 1; then if test $REPLACE_STAT = 1; then
func_gl_gnulib_m4code_dosname func_gl_gnulib_m4code_dosname
...@@ -317,24 +316,24 @@ gl_SYS_STAT_MODULE_INDICATOR([stat]) ...@@ -317,24 +316,24 @@ gl_SYS_STAT_MODULE_INDICATOR([stat])
func_gl_gnulib_m4code_strtoll () func_gl_gnulib_m4code_strtoll ()
{ {
if ! $gl_gnulib_enabled_strtoll; then if ! $gl_gnulib_enabled_strtoll; then
gl_FUNC_STRTOLL gl_FUNC_STRTOLL
if test $HAVE_STRTOLL = 0; then if test $HAVE_STRTOLL = 0; then
AC_LIBOBJ([strtoll]) AC_LIBOBJ([strtoll])
gl_PREREQ_STRTOLL gl_PREREQ_STRTOLL
fi fi
gl_STDLIB_MODULE_INDICATOR([strtoll]) gl_STDLIB_MODULE_INDICATOR([strtoll])
gl_gnulib_enabled_strtoll=true gl_gnulib_enabled_strtoll=true
fi fi
} }
func_gl_gnulib_m4code_strtoull () func_gl_gnulib_m4code_strtoull ()
{ {
if ! $gl_gnulib_enabled_strtoull; then if ! $gl_gnulib_enabled_strtoull; then
gl_FUNC_STRTOULL gl_FUNC_STRTOULL
if test $HAVE_STRTOULL = 0; then if test $HAVE_STRTOULL = 0; then
AC_LIBOBJ([strtoull]) AC_LIBOBJ([strtoull])
gl_PREREQ_STRTOULL gl_PREREQ_STRTOULL
fi fi
gl_STDLIB_MODULE_INDICATOR([strtoull]) gl_STDLIB_MODULE_INDICATOR([strtoull])
gl_gnulib_enabled_strtoull=true gl_gnulib_enabled_strtoull=true
fi fi
} }
......
# serial 23 # serial 24
dnl Copyright (C) 2002-2003, 2005-2007, 2009-2012 Free Software Foundation, dnl Copyright (C) 2002-2003, 2005-2007, 2009-2012 Free Software Foundation,
dnl Inc. dnl Inc.
dnl This file is free software; the Free Software Foundation dnl This file is free software; the Free Software Foundation
...@@ -247,7 +247,4 @@ AC_DEFUN([gl_FUNC_MKTIME_INTERNAL], [ ...@@ -247,7 +247,4 @@ AC_DEFUN([gl_FUNC_MKTIME_INTERNAL], [
]) ])
# Prerequisites of lib/mktime.c. # Prerequisites of lib/mktime.c.
AC_DEFUN([gl_PREREQ_MKTIME], AC_DEFUN([gl_PREREQ_MKTIME], [:])
[
AC_REQUIRE([AC_C_INLINE])
])
...@@ -19,7 +19,6 @@ dnl From Paul Eggert. ...@@ -19,7 +19,6 @@ dnl From Paul Eggert.
AC_DEFUN([gl_STAT_TIME], AC_DEFUN([gl_STAT_TIME],
[ [
AC_REQUIRE([AC_C_INLINE])
AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS]) AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS])
AC_CHECK_HEADERS_ONCE([sys/time.h]) AC_CHECK_HEADERS_ONCE([sys/time.h])
...@@ -70,7 +69,6 @@ AC_DEFUN([gl_STAT_TIME], ...@@ -70,7 +69,6 @@ AC_DEFUN([gl_STAT_TIME],
# #
AC_DEFUN([gl_STAT_BIRTHTIME], AC_DEFUN([gl_STAT_BIRTHTIME],
[ [
AC_REQUIRE([AC_C_INLINE])
AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS]) AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS])
AC_CHECK_HEADERS_ONCE([sys/time.h]) AC_CHECK_HEADERS_ONCE([sys/time.h])
AC_CHECK_MEMBERS([struct stat.st_birthtimespec.tv_nsec], [], AC_CHECK_MEMBERS([struct stat.st_birthtimespec.tv_nsec], [],
......
#serial 14 #serial 15
# Copyright (C) 2000-2001, 2003-2007, 2009-2012 Free Software Foundation, Inc. # Copyright (C) 2000-2001, 2003-2007, 2009-2012 Free Software Foundation, Inc.
...@@ -8,8 +8,4 @@ ...@@ -8,8 +8,4 @@
dnl From Jim Meyering dnl From Jim Meyering
AC_DEFUN([gl_TIMESPEC], AC_DEFUN([gl_TIMESPEC], [:])
[
dnl Prerequisites of lib/timespec.h.
AC_REQUIRE([AC_C_INLINE])
])
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment