Rename GETTIMEOFDAY_REPLACEMENT to REPLACE_GETTIMEOFDAY.
authorBruno Haible <bruno@clisp.org>
Sun, 4 Mar 2007 23:41:27 +0000 (23:41 +0000)
committerBruno Haible <bruno@clisp.org>
Sun, 4 Mar 2007 23:41:27 +0000 (23:41 +0000)
ChangeLog
lib/sys_time_.h
m4/gettimeofday.m4
m4/sys_time_h.m4
modules/sys_time

index 874e0745c243a4ca95c066cde34f571a9361638d..0088e7c1aa515aa1e950abe30bdb5ae436eeaea0 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2007-03-04  Bruno Haible  <bruno@clisp.org>
+
+       * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
+       REPLACE_GETTIMEOFDAY.
+       * modules/sys_time (Makefile.am): Likewise.
+       * m4/sys_time_h.m4: Likewise.
+       * m4/gettimeofday.m4: Likewise.
+
 2007-03-04  Bruno Haible  <bruno@clisp.org>
 
        * modules/vasnprintf-posix-tests: New file.
index a377c65311884b38286dd970e4ad2fca4f32c901..46cdb70914a7b5ae2dcac28322dbe7be6d75f266 100644 (file)
@@ -35,7 +35,7 @@ struct timeval
 };
 #endif
 
-#if @GETTIMEOFDAY_REPLACEMENT@
+#if @REPLACE_GETTIMEOFDAY@
 # undef gettimeofday
 # define gettimeofday rpl_gettimeofday
 int gettimeofday (struct timeval *restrict, void *restrict);
index 770434ad90c171c4abbe359458c99f0999bec571..b9bbb1081bcf18e1c322f4b1395f6c787f16a773 100644 (file)
@@ -31,7 +31,7 @@ AC_DEFUN([gl_FUNC_GETTIMEOFDAY],
   gl_FUNC_GETTIMEOFDAY_CLOBBER
 
   if test $gl_cv_func_gettimeofday_posix_signature != yes; then
-    GETTIMEOFDAY_REPLACEMENT=1
+    REPLACE_GETTIMEOFDAY=1
     SYS_TIME_H=sys/time.h
     if test $gl_cv_func_gettimeofday_clobber != yes; then
       AC_LIBOBJ(gettimeofday)
@@ -77,7 +77,7 @@ AC_DEFUN([gl_FUNC_GETTIMEOFDAY_CLOBBER],
      [gl_cv_func_gettimeofday_clobber=yes])])
 
  if test $gl_cv_func_gettimeofday_clobber = yes; then
-   GETTIMEOFDAY_REPLACEMENT=1
+   REPLACE_GETTIMEOFDAY=1
    SYS_TIME_H=sys/time.h
    gl_GETTIMEOFDAY_REPLACE_LOCALTIME
    AC_DEFINE([GETTIMEOFDAY_CLOBBERS_LOCALTIME], 1,
index fc29f88e5fba210bd4448f3df73e904bf26cb931..b38e1bc5f1a38dd14fa56367f3e90708226ebaf6 100644 (file)
@@ -9,8 +9,8 @@
 
 AC_DEFUN([gl_HEADER_SYS_TIME_H],
 [
-  dnl Use AC_REQUIRE here, so that the GETTIMEOFDAY_REPLACEMENT=0 statement
-  dnl below is expanded once only, before all GETTIMEOFDAY_REPLACEMENT=1
+  dnl Use AC_REQUIRE here, so that the REPLACE_GETTIMEOFDAY=0 statement
+  dnl below is expanded once only, before all REPLACE_GETTIMEOFDAY=1
   dnl statements that occur in other macros.
   AC_REQUIRE([gl_HEADER_SYS_TIME_H_BODY])
 ])
@@ -50,8 +50,8 @@ AC_DEFUN([gl_HEADER_SYS_TIME_H_BODY],
   AC_SUBST([HAVE_STRUCT_TIMEVAL])
 
   dnl Assume POSIX behavior unless another module says otherwise.
-  GETTIMEOFDAY_REPLACEMENT=0
-  AC_SUBST([GETTIMEOFDAY_REPLACEMENT])
+  REPLACE_GETTIMEOFDAY=0
+  AC_SUBST([REPLACE_GETTIMEOFDAY])
   if test $HAVE_SYS_TIME_H = 0 || test $HAVE_STRUCT_TIMEVAL = 0; then
     SYS_TIME_H=sys/time.h
   else
index ffa714d13136c679e4e7688124aa7b3e16cc94d3..0edf4f9b52b809ea96b869e2436c2180554bcf05 100644 (file)
@@ -23,7 +23,7 @@ sys/time.h: sys_time_.h
        { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
          sed -e 's/@''HAVE_SYS_TIME_H''@/$(HAVE_SYS_TIME_H)/g' \
              -e 's|@''ABSOLUTE_SYS_TIME_H''@|$(ABSOLUTE_SYS_TIME_H)|g' \
-             -e 's/@''GETTIMEOFDAY_REPLACEMENT''@/$(GETTIMEOFDAY_REPLACEMENT)/g' \
+             -e 's/@''REPLACE_GETTIMEOFDAY''@/$(REPLACE_GETTIMEOFDAY)/g' \
              -e 's/@''HAVE_STRUCT_TIMEVAL''@/$(HAVE_STRUCT_TIMEVAL)/g' \
              < $(srcdir)/sys_time_.h; \
        } > $@-t