]> Savannah Git Hosting - gnulib.git/commitdiff
monetary: Generate header file when module 'posixcheck' is in use.
authorBruno Haible <bruno@clisp.org>
Sun, 5 Aug 2018 22:16:43 +0000 (00:16 +0200)
committerBruno Haible <bruno@clisp.org>
Sun, 5 Aug 2018 22:16:43 +0000 (00:16 +0200)
* m4/monetary_h.m4 (gl_MONETARY_H_BODY): If module 'posixcheck' is in
use, set MONETARY_H to non-empty.

ChangeLog
m4/monetary_h.m4

index c36294fa3aa7601bf5d278f05e4692af7b51ac5c..75022d0ac0c77c3cf04727e2e2acc6627fb60018 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2018-08-05  Bruno Haible  <bruno@clisp.org>
+
+       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  <bruno@clisp.org>
 
        iconv-h: Generate header file when module 'posixcheck' is in use.
index 7eb3b756bd18d1c53cbb6b024388a61809e8d3d8..0866b80826148e860f302bc94040bcf1d03180f0 100644 (file)
@@ -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 <monetary.h> wrapper only if the system already
   dnl has a <monetary.h>.
-  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])