>From c9d2b6f28e7814f34a36801dd186d18776a4ff75 Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Mon, 6 Aug 2018 00:18:17 +0200 Subject: [PATCH 3/3] utime-h: Generate header file when module 'posixcheck' is in use. * m4/utime_h.m4 (gl_UTIME_H): If module 'posixcheck' is in use, set UTIME_H to non-empty. --- ChangeLog | 6 ++++++ m4/utime_h.m4 | 27 +++++++++++++++------------ 2 files changed, 21 insertions(+), 12 deletions(-) diff --git a/ChangeLog b/ChangeLog index 75022d0..c7d0999 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,11 @@ 2018-08-05 Bruno Haible + utime-h: Generate header file when module 'posixcheck' is in use. + * m4/utime_h.m4 (gl_UTIME_H): If module 'posixcheck' is in use, set + UTIME_H to non-empty. + +2018-08-05 Bruno Haible + monetary: Generate header file when module 'posixcheck' is in use. * m4/monetary_h.m4 (gl_MONETARY_H_BODY): If module 'posixcheck' is in use, set MONETARY_H to non-empty. diff --git a/m4/utime_h.m4 b/m4/utime_h.m4 index 89e301b..ab459fe 100644 --- a/m4/utime_h.m4 +++ b/m4/utime_h.m4 @@ -1,4 +1,4 @@ -# utime_h.m4 serial 1 +# utime_h.m4 serial 2 dnl Copyright (C) 2017-2018 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, @@ -20,17 +20,20 @@ AC_DEFUN([gl_UTIME_H], fi AC_SUBST([HAVE_UTIME_H]) - UTIME_H='' - if test $ac_cv_header_utime_h != yes; then - dnl Provide a substitute file. - UTIME_H=utime.h - else - case "$host_os" in - mingw*) dnl Need special handling of 'struct utimbuf'. - UTIME_H=utime.h - ;; - esac - fi + m4_ifdef([gl_POSIXCHECK], + [UTIME_H=utime.h], + [UTIME_H='' + if test $ac_cv_header_utime_h != yes; then + dnl Provide a substitute file. + UTIME_H=utime.h + else + case "$host_os" in + mingw*) dnl Need special handling of 'struct utimbuf'. + UTIME_H=utime.h + ;; + esac + fi + ]) AC_SUBST([UTIME_H]) AM_CONDITIONAL([GL_GENERATE_UTIME_H], [test -n "$UTIME_H"]) -- 2.7.4