cvs-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Cvs-cvs] ccvs/m4 .cvsignore ChangeLog gnulib-cache.m4 gn...


From: Derek Robert Price
Subject: [Cvs-cvs] ccvs/m4 .cvsignore ChangeLog gnulib-cache.m4 gn...
Date: Thu, 23 Aug 2007 21:37:48 +0000

CVSROOT:        /cvsroot/cvs
Module name:    ccvs
Changes by:     Derek Robert Price <dprice>     07/08/23 21:37:48

Modified files:
        m4             : .cvsignore ChangeLog gnulib-cache.m4 
                         gnulib-comp.m4 
Added files:
        m4             : fseeko.m4 ftello.m4 lseek.m4 

Log message:
        * .cvsignore: Remove error.m4.
        * m4/fseeko.m4, m4/ftello.m4, m4/lseek.m4: New files from GNULIB.

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/ccvs/m4/.cvsignore?cvsroot=cvs&r1=1.3&r2=1.4
http://cvs.savannah.gnu.org/viewcvs/ccvs/m4/ChangeLog?cvsroot=cvs&r1=1.192&r2=1.193
http://cvs.savannah.gnu.org/viewcvs/ccvs/m4/gnulib-cache.m4?cvsroot=cvs&r1=1.13&r2=1.14
http://cvs.savannah.gnu.org/viewcvs/ccvs/m4/gnulib-comp.m4?cvsroot=cvs&r1=1.27&r2=1.28
http://cvs.savannah.gnu.org/viewcvs/ccvs/m4/fseeko.m4?cvsroot=cvs&rev=1.1
http://cvs.savannah.gnu.org/viewcvs/ccvs/m4/ftello.m4?cvsroot=cvs&rev=1.1
http://cvs.savannah.gnu.org/viewcvs/ccvs/m4/lseek.m4?cvsroot=cvs&rev=1.1

Patches:
Index: .cvsignore
===================================================================
RCS file: /cvsroot/cvs/ccvs/m4/.cvsignore,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -b -r1.3 -r1.4
--- .cvsignore  22 Aug 2007 13:43:55 -0000      1.3
+++ .cvsignore  23 Aug 2007 21:37:47 -0000      1.4
@@ -1,3 +1,2 @@
 .deps
 .dirstamp
-error.m4

Index: ChangeLog
===================================================================
RCS file: /cvsroot/cvs/ccvs/m4/ChangeLog,v
retrieving revision 1.192
retrieving revision 1.193
diff -u -b -r1.192 -r1.193
--- ChangeLog   22 Aug 2007 13:43:55 -0000      1.192
+++ ChangeLog   23 Aug 2007 21:37:48 -0000      1.193
@@ -1,3 +1,8 @@
+2007-08-23  Derek Price  <address@hidden>
+
+       * .cvsignore: Remove error.m4.
+       * m4/fseeko.m4, m4/ftello.m4, m4/lseek.m4: New files from GNULIB.
+
 2007-08-22  Derek Price  <address@hidden>
 
        * .cvsignore: New file from GNULIB.

Index: gnulib-cache.m4
===================================================================
RCS file: /cvsroot/cvs/ccvs/m4/gnulib-cache.m4,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -b -r1.13 -r1.14
--- gnulib-cache.m4     22 Aug 2007 13:43:58 -0000      1.13
+++ gnulib-cache.m4     23 Aug 2007 21:37:48 -0000      1.14
@@ -15,11 +15,11 @@
 
 
 # Specification in the form of a command-line invocation:
-#   gnulib-tool --import --dir=. --lib=libcvs --source-base=lib --m4-base=m4 
--doc-base=doc --aux-dir=build-aux --no-libtool --macro-prefix=gl atexit base64 
canon-host canonicalize closeout crypto/md5 dirname dup2 error exit exitfail 
extensions fnmatch fnmatch-posix ftruncate getdate gethostname getline 
getlogin_r getndelim2 getnline getopt getpagesize getpass-gnu gettext gettime 
gettimeofday glob inttypes lstat malloc mbsstr memmove minmax mkdir mkstemp 
mktime mreadlink-with-size nanosleep pathmax quotearg readlink realloc regex 
rename save-cwd setenv stat-macros stdbool stdint strcase strdup strerror 
strftime strtoul strtoumax time_r timespec tzset unlocked-io vasnprintf 
vasprintf xalloc-die xgethostname xsize yesno
+#   gnulib-tool --import --dir=. --lib=libcvs --source-base=lib --m4-base=m4 
--doc-base=doc --aux-dir=build-aux --no-libtool --macro-prefix=gl atexit base64 
canon-host canonicalize closeout crypto/md5 dirname dup2 error exit exitfail 
extensions fnmatch fnmatch-posix fseeko ftello ftruncate getdate gethostname 
getline getlogin_r getndelim2 getnline getopt getpagesize getpass-gnu gettext 
gettime gettimeofday glob inttypes lstat malloc mbsstr memmove minmax mkdir 
mkstemp mktime mreadlink-with-size nanosleep pathmax quotearg readlink realloc 
regex rename save-cwd setenv stat-macros stdbool stdint strcase strdup strerror 
strftime strtoul strtoumax time_r timespec tzset unlocked-io vasnprintf 
vasprintf xalloc-die xgethostname xsize yesno
 
 # Specification in the form of a few gnulib-tool.m4 macro invocations:
 gl_LOCAL_DIR([])
-gl_MODULES([atexit base64 canon-host canonicalize closeout crypto/md5 dirname 
dup2 error exit exitfail extensions fnmatch fnmatch-posix ftruncate getdate 
gethostname getline getlogin_r getndelim2 getnline getopt getpagesize 
getpass-gnu gettext gettime gettimeofday glob inttypes lstat malloc mbsstr 
memmove minmax mkdir mkstemp mktime mreadlink-with-size nanosleep pathmax 
quotearg readlink realloc regex rename save-cwd setenv stat-macros stdbool 
stdint strcase strdup strerror strftime strtoul strtoumax time_r timespec tzset 
unlocked-io vasnprintf vasprintf xalloc-die xgethostname xsize yesno])
+gl_MODULES([atexit base64 canon-host canonicalize closeout crypto/md5 dirname 
dup2 error exit exitfail extensions fnmatch fnmatch-posix fseeko ftello 
ftruncate getdate gethostname getline getlogin_r getndelim2 getnline getopt 
getpagesize getpass-gnu gettext gettime gettimeofday glob inttypes lstat malloc 
mbsstr memmove minmax mkdir mkstemp mktime mreadlink-with-size nanosleep 
pathmax quotearg readlink realloc regex rename save-cwd setenv stat-macros 
stdbool stdint strcase strdup strerror strftime strtoul strtoumax time_r 
timespec tzset unlocked-io vasnprintf vasprintf xalloc-die xgethostname xsize 
yesno])
 gl_AVOID([])
 gl_SOURCE_BASE([lib])
 gl_M4_BASE([m4])

Index: gnulib-comp.m4
===================================================================
RCS file: /cvsroot/cvs/ccvs/m4/gnulib-comp.m4,v
retrieving revision 1.27
retrieving revision 1.28
diff -u -b -r1.27 -r1.28
--- gnulib-comp.m4      22 Aug 2007 13:43:58 -0000      1.27
+++ gnulib-comp.m4      23 Aug 2007 21:37:48 -0000      1.28
@@ -28,6 +28,8 @@
   AC_REQUIRE([AM_PROG_CC_C_O])
   AC_REQUIRE([AC_GNU_SOURCE])
   AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS])
+  AC_REQUIRE([AC_FUNC_FSEEKO])
+  AC_REQUIRE([AC_FUNC_FSEEKO])
 ])
 
 # This macro should be invoked from ./configure.in, in the section
@@ -79,6 +81,10 @@
   # No macro. You should also use one of fnmatch-posix or fnmatch-gnu.
   gl_FUNC_FNMATCH_POSIX
   gl_FUNC_FPENDING
+  gl_FUNC_FSEEKO
+  gl_STDIO_MODULE_INDICATOR([fseeko])
+  gl_FUNC_FTELLO
+  gl_STDIO_MODULE_INDICATOR([ftello])
   gl_FUNC_FTRUNCATE
   gl_UNISTD_MODULE_INDICATOR([ftruncate])
   gl_GETADDRINFO
@@ -108,6 +114,8 @@
   gl_FUNC_LCHOWN
   gl_UNISTD_MODULE_INDICATOR([lchown])
   gl_LOCALCHARSET
+  gl_FUNC_LSEEK
+  gl_UNISTD_MODULE_INDICATOR([lseek])
   gl_FUNC_LSTAT
   AC_FUNC_MALLOC
   gl_MALLOCA
@@ -294,7 +302,9 @@
   lib/fnmatch.c
   lib/fnmatch_.h
   lib/fnmatch_loop.c
+  lib/fseeko.c
   lib/fstatat.c
+  lib/ftello.c
   lib/ftruncate.c
   lib/gai_strerror.c
   lib/getaddrinfo.c
@@ -332,6 +342,7 @@
   lib/lchown.c
   lib/localcharset.c
   lib/localcharset.h
+  lib/lseek.c
   lib/lstat.c
   lib/lstat.h
   lib/malloc.c
@@ -486,6 +497,8 @@
   m4/float_h.m4
   m4/fnmatch.m4
   m4/fpending.m4
+  m4/fseeko.m4
+  m4/ftello.m4
   m4/ftruncate.m4
   m4/getaddrinfo.m4
   m4/getcwd-abort-bug.m4
@@ -529,6 +542,7 @@
   m4/localcharset.m4
   m4/lock.m4
   m4/longlong.m4
+  m4/lseek.m4
   m4/lstat.m4
   m4/malloca.m4
   m4/mbchar.m4

Index: fseeko.m4
===================================================================
RCS file: fseeko.m4
diff -N fseeko.m4
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ fseeko.m4   23 Aug 2007 21:37:48 -0000      1.1
@@ -0,0 +1,30 @@
+# fseeko.m4 serial 3
+dnl Copyright (C) 2007 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_FUNC_FSEEKO],
+[
+  AC_REQUIRE([gl_STDIO_H_DEFAULTS])
+  AC_REQUIRE([AC_PROG_CC])
+  AC_REQUIRE([gl_STDIN_LARGE_OFFSET])
+  AC_CACHE_CHECK([for fseeko], [gl_cv_func_fseeko],
+    [
+      AC_TRY_LINK([#include <stdio.h>], [fseeko (stdin, 0, 0);],
+       [gl_cv_func_fseeko=yes], [gl_cv_func_fseeko=no])
+    ])
+  if test $gl_cv_func_fseeko = no; then
+    HAVE_FSEEKO=0
+    gl_REPLACE_FSEEKO
+  elif test $gl_cv_var_stdin_large_offset = no; then
+    gl_REPLACE_FSEEKO
+  fi
+])
+
+AC_DEFUN([gl_REPLACE_FSEEKO],
+[
+  AC_LIBOBJ([fseeko])
+  AC_REQUIRE([gl_STDIO_H_DEFAULTS])
+  REPLACE_FSEEKO=1
+])

Index: ftello.m4
===================================================================
RCS file: ftello.m4
diff -N ftello.m4
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ ftello.m4   23 Aug 2007 21:37:48 -0000      1.1
@@ -0,0 +1,30 @@
+# ftello.m4 serial 3
+dnl Copyright (C) 2007 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_FUNC_FTELLO],
+[
+  AC_REQUIRE([gl_STDIO_H_DEFAULTS])
+  AC_REQUIRE([AC_PROG_CC])
+  AC_REQUIRE([gl_STDIN_LARGE_OFFSET])
+  AC_CACHE_CHECK([for ftello], [gl_cv_func_ftello],
+    [
+      AC_TRY_LINK([#include <stdio.h>], [ftello (stdin);],
+       [gl_cv_func_ftello=yes], [gl_cv_func_ftello=no])
+    ])
+  if test $gl_cv_func_ftello = no; then
+    HAVE_FTELLO=0
+    gl_REPLACE_FTELLO
+  elif test $gl_cv_var_stdin_large_offset = no; then
+    gl_REPLACE_FTELLO
+  fi
+])
+
+AC_DEFUN([gl_REPLACE_FTELLO],
+[
+  AC_LIBOBJ([ftello])
+  AC_REQUIRE([gl_STDIO_H_DEFAULTS])
+  REPLACE_FTELLO=1
+])

Index: lseek.m4
===================================================================
RCS file: lseek.m4
diff -N lseek.m4
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ lseek.m4    23 Aug 2007 21:37:48 -0000      1.1
@@ -0,0 +1,50 @@
+# lseek.m4 serial 4
+dnl Copyright (C) 2007 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_FUNC_LSEEK],
+[
+  AC_REQUIRE([gl_UNISTD_H_DEFAULTS])
+  AC_REQUIRE([AC_PROG_CC])
+  AC_CACHE_CHECK([whether lseek detects pipes], [gl_cv_func_lseek_pipe],
+    [if test $cross_compiling = no; then
+       AC_LINK_IFELSE([
+#include <sys/types.h> /* for off_t */
+#include <stdio.h> /* for SEEK_CUR */
+#include <unistd.h>
+int main ()
+{
+  /* Exit with success only if stdin is seekable.  */
+  return lseek (0, (off_t)0, SEEK_CUR) < 0;
+}],
+        [if test -s conftest$ac_exeext \
+            && ./conftest$ac_exeext < conftest.$ac_ext \
+            && { echo hi | ./conftest$ac_exeext; test $? = 1; }; then
+           gl_cv_func_lseek_pipe=yes
+         else
+           gl_cv_func_lseek_pipe=no
+         fi],
+        [gl_cv_func_lseek_pipe=no])
+     else
+       AC_COMPILE_IFELSE([
+#if ((defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__) || defined 
__BEOS__
+/* mingw and BeOS mistakenly return 0 when trying to seek on pipes.  */
+  Choke me.
+#endif],
+        [gl_cv_func_lseek_pipe=yes], [gl_cv_func_lseek_pipe=no])
+     fi])
+  if test $gl_cv_func_lseek_pipe = no; then
+    gl_REPLACE_LSEEK
+  fi
+])
+
+AC_DEFUN([gl_REPLACE_LSEEK],
+[
+  AC_LIBOBJ([lseek])
+  AC_REQUIRE([gl_UNISTD_H_DEFAULTS])
+  REPLACE_LSEEK=1
+  AC_DEFINE([LSEEK_PIPE_BROKEN], [1],
+           [Define to 1 if lseek does not detect pipes.])
+])




reply via email to

[Prev in Thread] Current Thread [Next in Thread]