summaryrefslogtreecommitdiff
path: root/m4
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2005-11-30 12:38:02 +0000
committerJim Meyering <jim@meyering.net>2005-11-30 12:38:02 +0000
commit7214c0bf705a865007d21371168f6b130f576b39 (patch)
tree0576d9673657b6a33303e2ebd693b529ce7c3104 /m4
parentfc0fa751c4500713344aaa9f148be1be6e6db2e7 (diff)
downloadcoreutils-7214c0bf705a865007d21371168f6b130f576b39.tar.xz
(gl_FUNC_OPENAT): Require and compile mkdirat.c.
Diffstat (limited to 'm4')
-rw-r--r--m4/openat.m47
1 files changed, 6 insertions, 1 deletions
diff --git a/m4/openat.m4 b/m4/openat.m4
index 15085c97f..ffeb06a08 100644
--- a/m4/openat.m4
+++ b/m4/openat.m4
@@ -1,4 +1,4 @@
-#serial 6
+#serial 7
# See if we need to use our replacement for Solaris' openat function.
dnl Copyright (C) 2004, 2005 Free Software Foundation, Inc.
@@ -11,6 +11,11 @@ dnl with or without modifications, as long as this notice is preserved.
AC_DEFUN([gl_FUNC_OPENAT],
[
AC_LIBSOURCES([openat.c, openat.h, openat-die.c])
+ AC_LIBSOURCES([mkdirat.c])
+
+ # No system provides a mkdirat function; compile it unconditionally.
+ AC_LIBOBJ([mkdirat])
+
AC_LIBOBJ([openat-die])
AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS])
AC_CHECK_FUNCS_ONCE([fdopendir])