Mercurial > gnulib
comparison m4/mkfifo.m4 @ 40052:dfa4e2718b92
mkfifo: bring back HAVE_MKFIFO macro
* m4/mkfifo.m4 (gl_FUNC_MKFIFO): #define HAVE_MKFIFO as needed.
Problem reported by Andrew Janke in:
https://lists.gnu.org/r/bug-gnulib/2018-12/msg00147.html
author | Paul Eggert <eggert@cs.ucla.edu> |
---|---|
date | Thu, 27 Dec 2018 22:22:41 -0800 |
parents | d7562698c771 |
children | b06060465f09 |
comparison
equal
deleted
inserted
replaced
40051:fc22144891c0 | 40052:dfa4e2718b92 |
---|---|
1 # serial 7 | 1 # serial 8 |
2 # See if we need to provide mkfifo replacement. | 2 # See if we need to provide mkfifo replacement. |
3 | 3 |
4 dnl Copyright (C) 2009-2018 Free Software Foundation, Inc. | 4 dnl Copyright (C) 2009-2018 Free Software Foundation, Inc. |
5 dnl This file is free software; the Free Software Foundation | 5 dnl This file is free software; the Free Software Foundation |
6 dnl gives unlimited permission to copy and/or distribute it, | 6 dnl gives unlimited permission to copy and/or distribute it, |
25 [gl_cv_func_mkfifo=no]) | 25 [gl_cv_func_mkfifo=no]) |
26 ]) | 26 ]) |
27 if test $gl_cv_func_mkfifo = no; then | 27 if test $gl_cv_func_mkfifo = no; then |
28 HAVE_MKFIFO=0 | 28 HAVE_MKFIFO=0 |
29 else | 29 else |
30 AC_DEFINE([HAVE_MKFIFO], [1], | |
31 [Define to 1 if you have a 'mkfifo' function.]) | |
30 dnl Check for Solaris 9 and FreeBSD bug with trailing slash. | 32 dnl Check for Solaris 9 and FreeBSD bug with trailing slash. |
31 AC_CHECK_FUNCS_ONCE([lstat]) | 33 AC_CHECK_FUNCS_ONCE([lstat]) |
32 AC_CACHE_CHECK([whether mkfifo rejects trailing slashes], | 34 AC_CACHE_CHECK([whether mkfifo rejects trailing slashes], |
33 [gl_cv_func_mkfifo_works], | 35 [gl_cv_func_mkfifo_works], |
34 [# Assume that if we have lstat, we can also check symlinks. | 36 [# Assume that if we have lstat, we can also check symlinks. |