CVS update: /ccvs/m4/

[email protected] 3 May 2005 14:59:00 -0000
Newsgroups gmane.comp.version-control.cvs.cvs
Message-ID <[email protected]>
User: dprice  
Date: 05/05/03 07:59:00

Added:
 /ccvs/m4/
  unistd-safer.m4

Modified:
 /ccvs/m4/
  ChangeLog, clock_time.m4, gnulib.m4, lstat.m4, mkstemp.m4, nanosleep.m4,
  stat-macros.m4

Log:
 Update from GNULIB.
 * clock_time.m4, gnulib.m4, lstat.m4, mkstemp.m4, nanosleep.m4,
 stat-macros.m4: Updated.
 * unistd-safer.m4: New file.

File Changes:

Directory: /ccvs/m4/
====================

File [changed]: ChangeLog
Url: https://ccvs.cvshome.org/source/browse/ccvs/m4/ChangeLog?r1=1.116&r2=1.117
Delta lines:  +7 -0
-------------------
--- ChangeLog	2 May 2005 07:24:29 -0000	1.116
+++ ChangeLog	3 May 2005 14:58:58 -0000	1.117
@@ -1,3 +1,10 @@
+2005-05-03  Derek Price  <[email protected]>
+
+	Update from GNULIB.
+	* clock_time.m4, gnulib.m4, lstat.m4, mkstemp.m4, nanosleep.m4,
+	stat-macros.m4: Updated.
+	* unistd-safer.m4: New file.
+
 2005-05-01  Mark D. Baushke  <[email protected]>
 
 	* mmap-anon.m4: Update from GNULIB.

File [changed]: clock_time.m4
Url: https://ccvs.cvshome.org/source/browse/ccvs/m4/clock_time.m4?r1=1.2&r2=1.3
Delta lines:  +4 -4
-------------------
--- clock_time.m4	1 Mar 2005 18:15:07 -0000	1.2
+++ clock_time.m4	3 May 2005 14:58:58 -0000	1.3
@@ -1,5 +1,5 @@
-# clock_time.m4 serial 5
-dnl Copyright (C) 2002, 2003, 2004 Free Software Foundation, Inc.
+# clock_time.m4 serial 6
+dnl Copyright (C) 2002, 2003, 2004, 2005 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.
@@ -16,11 +16,11 @@
   # Save and restore LIBS so e.g., -lrt, isn't added to it.  Otherwise, *all*
   # programs in the package would end up linked with that potentially-shared
   # library, inducing unnecessary run-time overhead.
-  fetish_saved_libs=$LIBS
+  gl_saved_libs=$LIBS
     AC_SEARCH_LIBS(clock_gettime, [rt posix4],
                    [test "$ac_cv_search_clock_gettime" = "none required" ||
                     LIB_CLOCK_GETTIME=$ac_cv_search_clock_gettime])
     AC_SUBST(LIB_CLOCK_GETTIME)
     AC_CHECK_FUNCS(clock_gettime clock_settime)
-  LIBS=$fetish_saved_libs
+  LIBS=$gl_saved_libs
 ])

File [changed]: gnulib.m4
Url: https://ccvs.cvshome.org/source/browse/ccvs/m4/gnulib.m4?r1=1.45&r2=1.46
Delta lines:  +2 -1
-------------------
--- gnulib.m4	25 Apr 2005 20:28:35 -0000	1.45
+++ gnulib.m4	3 May 2005 14:58:58 -0000	1.46
@@ -8,7 +8,7 @@
 # Generated by gnulib-tool.
 #
 # Invoked as: gnulib-tool --import gettext vasnprintf regex atexit save-cwd dirname error exit exitfail extensions fnmatch-posix fnmatch mkstemp getopt stdbool getline getnline getndelim2 gethostname strcase getpass-gnu gettimeofday timespec gettime unlocked-io tzset restrict time_r mktime minmax memmove nanosleep stat lstat strerror vasprintf malloc realloc strftime xsize getpagesize md5 stdint yesno allocsa setenv getdate readlink xreadlink xgethostname mkdir rename dup2 strstr ftruncate strtoul pathmax xalloc-die pagealign_alloc closeout
-# Reproduce by: gnulib-tool --import --dir=. --lib=libgnu --source-base=lib --m4-base=m4 --aux-dir=build-aux   alloca alloca-opt allocsa atexit chdir-long closeout dirname dup2 error exit exitfail extensions fnmatch fnmatch-posix fpending ftruncate getcwd getdate gethostname getline getndelim2 getnline getopt getpagesize getpass-gnu gettext gettime gettimeofday lstat malloc md5 memmove mempcpy memrchr minmax mkdir mkstemp mktime nanosleep openat pagealign_alloc pathmax quotearg readlink realloc regex rename restrict rpmatch save-cwd setenv stat stat-macros stdbool stdint strcase strerror strftime strstr strtol strtoul time_r timespec tzset unlocked-io vasnprintf vasprintf xalloc xalloc-die xgetcwd xgethostname xreadlink xsize yesno
+# Reproduce by: gnulib-tool --import --dir=. --lib=libgnu --source-base=lib --m4-base=m4 --aux-dir=build-aux   alloca alloca-opt allocsa atexit chdir-long closeout dirname dup2 error exit exitfail extensions fnmatch fnmatch-posix fpending ftruncate getcwd getdate gethostname getline getndelim2 getnline getopt getpagesize getpass-gnu gettext gettime gettimeofday lstat malloc md5 memmove mempcpy memrchr minmax mkdir mkstemp mktime nanosleep openat pagealign_alloc pathmax quotearg readlink realloc regex rename restrict rpmatch save-cwd setenv stat stat-macros stdbool stdint strcase strerror strftime strstr strtol strtoul time_r timespec tzset unistd-safer unlocked-io vasnprintf vasprintf xalloc xalloc-die xgetcwd xgethostname xreadlink xsize yesno
 
 AC_DEFUN([gl_EARLY],
 [
@@ -79,6 +79,7 @@
   gl_TIME_R
   gl_TIMESPEC
   gl_FUNC_TZSET_CLOBBER
+  gl_UNISTD_SAFER
   gl_FUNC_GLIBC_UNLOCKED_IO
   gl_FUNC_VASNPRINTF
   gl_FUNC_VASPRINTF

File [changed]: lstat.m4
Url: https://ccvs.cvshome.org/source/browse/ccvs/m4/lstat.m4?r1=1.5&r2=1.6
Delta lines:  +3 -12
--------------------
--- lstat.m4	1 Mar 2005 18:15:07 -0000	1.5
+++ lstat.m4	3 May 2005 14:58:58 -0000	1.6
@@ -1,6 +1,6 @@
-#serial 12
+#serial 13
 
-# Copyright (C) 1997, 1998, 1999, 2000, 2001, 2003, 2004 Free Software
+# Copyright (C) 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005 Free Software
 # Foundation, Inc.
 #
 # This file is free software; the Free Software Foundation
@@ -18,16 +18,7 @@
 
 AC_DEFUN([gl_FUNC_LSTAT],
 [
-  AC_FUNC_LSTAT
+  AC_REQUIRE([AC_FUNC_LSTAT])
   dnl Note: AC_FUNC_LSTAT does AC_LIBOBJ(lstat).
-  if test $ac_cv_func_lstat_empty_string_bug = yes; then
-    gl_PREREQ_LSTAT
-  fi
-])
-
-# Prerequisites of lib/lstat.c.
-AC_DEFUN([gl_PREREQ_LSTAT],
-[
-  AC_REQUIRE([AC_HEADER_STAT])
   :
 ])

File [changed]: mkstemp.m4
Url: https://ccvs.cvshome.org/source/browse/ccvs/m4/mkstemp.m4?r1=1.3&r2=1.4
Delta lines:  +2 -4
-------------------
--- mkstemp.m4	1 Mar 2005 18:15:07 -0000	1.3
+++ mkstemp.m4	3 May 2005 14:58:58 -0000	1.4
@@ -1,4 +1,4 @@
-#serial 9
+#serial 10
 
 # Copyright (C) 2001, 2003, 2004, 2005 Free Software Foundation, Inc.
 # This file is free software; the Free Software Foundation
@@ -65,9 +65,7 @@
 # Prerequisites of lib/tempname.c.
 AC_DEFUN([gl_PREREQ_TEMPNAME],
 [
-  AC_REQUIRE([AC_HEADER_STAT])
-  AC_CHECK_HEADERS_ONCE(fcntl.h sys/time.h unistd.h)
-  AC_CHECK_HEADERS(stdint.h)
+  AC_CHECK_HEADERS_ONCE(fcntl.h sys/time.h stdint.h unistd.h)
   AC_CHECK_FUNCS(__secure_getenv gettimeofday)
   AC_CHECK_DECLS_ONCE(getenv)
   AC_REQUIRE([gl_AC_TYPE_UINTMAX_T])

File [changed]: nanosleep.m4
Url: https://ccvs.cvshome.org/source/browse/ccvs/m4/nanosleep.m4?r1=1.3&r2=1.4
Delta lines:  +2 -1
-------------------
--- nanosleep.m4	23 Mar 2005 00:04:29 -0000	1.3
+++ nanosleep.m4	3 May 2005 14:58:58 -0000	1.4
@@ -1,4 +1,4 @@
-#serial 12
+#serial 13
 
 dnl From Jim Meyering.
 dnl Check for the nanosleep function.
@@ -68,4 +68,5 @@
 AC_DEFUN([gl_PREREQ_NANOSLEEP],
 [
   AC_CHECK_HEADERS_ONCE(unistd.h)
+  AC_CHECK_FUNCS_ONCE(siginterrupt)
 ])

File [changed]: stat-macros.m4
Url: https://ccvs.cvshome.org/source/browse/ccvs/m4/stat-macros.m4?r1=1.1&r2=1.2
Delta lines:  +3 -1
-------------------
--- stat-macros.m4	23 Mar 2005 00:04:29 -0000	1.1
+++ stat-macros.m4	3 May 2005 14:58:58 -0000	1.2
@@ -1,4 +1,4 @@
-#serial 1
+#serial 2
 
 # Copyright (C) 2005 Free Software Foundation, Inc.
 #
@@ -9,4 +9,6 @@
 AC_DEFUN([gl_STAT_MACROS],
 [
   AC_LIBSOURCES([stat-macros.h])
+  
+  AC_REQUIRE([AC_HEADER_STAT])
 ])

File [added]: unistd-safer.m4
Url: https://ccvs.cvshome.org/source/browse/ccvs/m4/unistd-safer.m4?rev=1.1&content-type=text/vnd.viewcvs-markup
Added lines: 25
---------------
# unistd-safer.m4 serial 3
dnl Copyright (C) 2002, 2005 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_DEFUN([gl_UNISTD_SAFER],
[
  AC_LIBSOURCES([dup-safer.c, fd-safer.c, unistd-safer.h])
  AC_LIBOBJ([dup-safer])
  AC_LIBOBJ([fd-safer])

  gl_PREREQ_DUP_SAFER
  gl_PREREQ_FD_SAFER
])

# Prerequisites of lib/dup-safer.c.
AC_DEFUN([gl_PREREQ_DUP_SAFER], [
  AC_CHECK_HEADERS_ONCE(fcntl.h unistd.h)
])

# Prerequisites of lib/fd-safer.c.
AC_DEFUN([gl_PREREQ_FD_SAFER], [
  AC_CHECK_HEADERS_ONCE(unistd.h)
])