summaryrefslogtreecommitdiff
path: root/m4/fclose.m4
diff options
context:
space:
mode:
authorDaniel Richard G <skunk@iSKUNK.ORG>2016-08-17 16:09:38 -0700
committerPaul Eggert <eggert@cs.ucla.edu>2016-08-17 17:44:56 -0700
commit17b66f6152d4e398aa6ef35d644a00fe56bdb67c (patch)
treef9245c6a45a72e9fc02aeb30e5f231daac376bb3 /m4/fclose.m4
parent9015588ad066d32b224a697c21e7b1826f67709d (diff)
downloadgnulib-17b66f6152d4e398aa6ef35d644a00fe56bdb67c.tar.gz
fclose, strstr-simple, wchar: port to z/OS
* m4/fclose.m4, m4/strstr.m4, m4/wchar_h.m4: Changes to the Autoconf M4 code to support z/OS. Note that fclose() is broken in a different way on z/OS than it is on other systems, thus the special-case in fclose.m4.
Diffstat (limited to 'm4/fclose.m4')
-rw-r--r--m4/fclose.m47
1 files changed, 6 insertions, 1 deletions
diff --git a/m4/fclose.m4 b/m4/fclose.m4
index 363b7fee83..3fa25b1052 100644
--- a/m4/fclose.m4
+++ b/m4/fclose.m4
@@ -1,4 +1,4 @@
-# fclose.m4 serial 6
+# fclose.m4 serial 7
dnl Copyright (C) 2008-2016 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
@@ -7,6 +7,7 @@ dnl with or without modifications, as long as this notice is preserved.
AC_DEFUN([gl_FUNC_FCLOSE],
[
AC_REQUIRE([gl_STDIO_H_DEFAULTS])
+ AC_REQUIRE([AC_CANONICAL_HOST])
gl_FUNC_FFLUSH_STDIN
if test $gl_cv_func_fflush_stdin != yes; then
@@ -17,4 +18,8 @@ AC_DEFUN([gl_FUNC_FCLOSE],
if test $REPLACE_CLOSE = 1; then
REPLACE_FCLOSE=1
fi
+
+ case "$host_os" in
+ openedition) REPLACE_FCLOSE=1 ;;
+ esac
])