summaryrefslogtreecommitdiff
path: root/m4/creat.m4
blob: 0c2207cadd784acffa74bfdd91653ca6d5b44de5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# creat.m4 serial 1
dnl Copyright (C) 2019-2023 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
dnl with or without modifications, as long as this notice is preserved.

AC_DEFUN([gl_FUNC_CREAT],
[
  AC_REQUIRE([AC_CANONICAL_HOST])
  case "$host_os" in
    mingw*)
      REPLACE_CREAT=1
      ;;
    *)
      gl_OPEN_TRAILING_SLASH_BUG
      case "$gl_cv_func_open_slash" in
        *no)
          REPLACE_CREAT=1
          ;;
      esac
      ;;
  esac
])