projects
/
gnulib.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
gettimeofday: port recent C++ fix to Emacs
[gnulib.git]
/
m4
/
mkfifo.m4
diff --git
a/m4/mkfifo.m4
b/m4/mkfifo.m4
index
3c88e62
..
e571c64
100644
(file)
--- a/
m4/mkfifo.m4
+++ b/
m4/mkfifo.m4
@@
-1,7
+1,7
@@
-# serial
3
+# serial
4
# See if we need to provide mkfifo replacement.
# See if we need to provide mkfifo replacement.
-dnl Copyright (C) 2009-201
2
Free Software Foundation, Inc.
+dnl Copyright (C) 2009-201
3
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.
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.
@@
-11,6
+11,7
@@
dnl with or without modifications, as long as this notice is preserved.
AC_DEFUN([gl_FUNC_MKFIFO],
[
AC_REQUIRE([gl_SYS_STAT_H_DEFAULTS])
AC_DEFUN([gl_FUNC_MKFIFO],
[
AC_REQUIRE([gl_SYS_STAT_H_DEFAULTS])
+ AC_REQUIRE([AC_CANONICAL_HOST]) dnl for cross-compiles
AC_CHECK_FUNCS_ONCE([mkfifo])
if test $ac_cv_func_mkfifo = no; then
HAVE_MKFIFO=0
AC_CHECK_FUNCS_ONCE([mkfifo])
if test $ac_cv_func_mkfifo = no; then
HAVE_MKFIFO=0
@@
-37,12
+38,21
@@
AC_DEFUN([gl_FUNC_MKFIFO],
return result;
]])],
[gl_cv_func_mkfifo_works=yes], [gl_cv_func_mkfifo_works=no],
return result;
]])],
[gl_cv_func_mkfifo_works=yes], [gl_cv_func_mkfifo_works=no],
- [gl_cv_func_mkfifo_works="guessing no"])
+ [case "$host_os" in
+ # Guess yes on glibc systems.
+ *-gnu*) gl_cv_func_mkfifo_works="guessing yes" ;;
+ # If we don't know, assume the worst.
+ *) gl_cv_func_mkfifo_works="guessing no" ;;
+ esac
+ ])
rm -f conftest.tmp conftest.lnk])
rm -f conftest.tmp conftest.lnk])
- if test "$gl_cv_func_mkfifo_works" != yes; then
- AC_DEFINE([MKFIFO_TRAILING_SLASH_BUG], [1], [Define to 1 if mkfifo
- does not reject trailing slash])
- REPLACE_MKFIFO=1
- fi
+ case "$gl_cv_func_mkfifo_works" in
+ *yes) ;;
+ *)
+ AC_DEFINE([MKFIFO_TRAILING_SLASH_BUG], [1], [Define to 1 if mkfifo
+ does not reject trailing slash])
+ REPLACE_MKFIFO=1
+ ;;
+ esac
fi
])
fi
])