From: Bruno Haible Date: Sun, 5 Aug 2018 22:16:43 +0000 (+0200) Subject: monetary: Generate header file when module 'posixcheck' is in use. X-Git-Tag: v1.0~5496 X-Git-Url: https://gitweb.git.savannah.gnu.org/gitweb/?a=commitdiff_plain;h=48b436436425794f1e3116e1bafe085a9de13ab5;p=gnulib.git 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/ChangeLog b/ChangeLog index c36294fa3a..75022d0ac0 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +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. + 2018-08-05 Bruno Haible iconv-h: Generate header file when module 'posixcheck' is in use. diff --git a/m4/monetary_h.m4 b/m4/monetary_h.m4 index 7eb3b756bd..0866b80826 100644 --- a/m4/monetary_h.m4 +++ b/m4/monetary_h.m4 @@ -1,4 +1,4 @@ -# monetary_h.m4 serial 1 +# monetary_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, @@ -18,7 +18,7 @@ AC_DEFUN([gl_MONETARY_H_BODY], AC_CHECK_HEADERS_ONCE([monetary.h]) dnl For now, we provide a wrapper only if the system already dnl has a . - if test $ac_cv_header_monetary_h = yes; then + if m4_ifdef([gl_POSIXCHECK],[true],[test $ac_cv_header_monetary_h = yes]); then MONETARY_H='monetary.h' gl_CHECK_NEXT_HEADERS([monetary.h])