]> Savannah Git Hosting - gnulib.git/commitdiff
utime-h: Generate an utime.h file always.
authorBruno Haible <bruno@clisp.org>
Fri, 14 Aug 2020 22:14:14 +0000 (00:14 +0200)
committerBruno Haible <bruno@clisp.org>
Fri, 14 Aug 2020 22:14:14 +0000 (00:14 +0200)
* modules/utime-h (Makefile.am): Generate utime.h always.
* m4/utime_h.m4 (gl_UTIME_H): Don't set UTIME_H. Don't define
GL_GENERATE_UTIME_H.

ChangeLog
m4/utime_h.m4
modules/utime-h

index 23e7442d9e213465ee4911d686f3843d4c2dc1e2..1810d56f3c807bb7c71662b73c1559db8661de35 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2020-08-14  Bruno Haible  <bruno@clisp.org>
+
+       utime-h: Generate an utime.h file always.
+       * modules/utime-h (Makefile.am): Generate utime.h always.
+       * m4/utime_h.m4 (gl_UTIME_H): Don't set UTIME_H. Don't define
+       GL_GENERATE_UTIME_H.
+
 2020-08-14  Bruno Haible  <bruno@clisp.org>
 
        mktime, mktime-internal: Remove obsolete code.
index 2a73636f51409510cc9545c61155cfd016067134..6b5dfc5442ec8f0e34d5fe80054f87f006b213c5 100644 (file)
@@ -1,4 +1,4 @@
-# utime_h.m4 serial 3
+# utime_h.m4 serial 4
 dnl Copyright (C) 2017-2020 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -21,28 +21,6 @@ AC_DEFUN([gl_UTIME_H],
   fi
   AC_SUBST([HAVE_UTIME_H])
 
-  m4_ifdef([gl_POSIXCHECK],
-    [UTIME_H=utime.h],
-    [UTIME_H=''
-     if m4_ifdef([gl_ANSI_CXX], [test "$CXX" != no], [false]); then
-       dnl Override <utime.h> always, to support the C++ GNULIB_NAMESPACE.
-       UTIME_H=utime.h
-     else
-       if test $ac_cv_header_utime_h != yes; then
-         dnl Provide a substitute <utime.h> file.
-         UTIME_H=utime.h
-       else
-         case "$host_os" in
-           mingw*) dnl Need special handling of 'struct utimbuf'.
-             UTIME_H=utime.h
-             ;;
-         esac
-       fi
-     fi
-    ])
-  AC_SUBST([UTIME_H])
-  AM_CONDITIONAL([GL_GENERATE_UTIME_H], [test -n "$UTIME_H"])
-
   dnl Check for declarations of anything we want to poison if the
   dnl corresponding gnulib module is not in use.
   gl_WARN_ON_USE_PREPARE([[#include <utime.h>
index 5cd5317c7dc32809024f1e221dd88cf55aa4b81f..fb1f1ba3898ab8b8d0d5506b96c5465c66503657 100644 (file)
@@ -15,11 +15,10 @@ configure.ac:
 gl_UTIME_H
 
 Makefile.am:
-BUILT_SOURCES += $(UTIME_H)
+BUILT_SOURCES += utime.h
 
 # We need the following in order to create <utime.h> when the system
 # doesn't have one that works with the given compiler.
-if GL_GENERATE_UTIME_H
 utime.h: utime.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(ARG_NONNULL_H) $(WARN_ON_USE_H)
        $(AM_V_GEN)rm -f $@-t $@ && \
        { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */' && \
@@ -38,10 +37,6 @@ utime.h: utime.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(ARG_NONNULL_H)
              < $(srcdir)/utime.in.h; \
        } > $@-t && \
        mv $@-t $@
-else
-utime.h: $(top_builddir)/config.status
-       rm -f $@
-endif
 MOSTLYCLEANFILES += utime.h utime.h-t
 
 Include: