summaryrefslogtreecommitdiff
path: root/m4
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2003-03-13 13:06:44 +0000
committerJim Meyering <jim@meyering.net>2003-03-13 13:06:44 +0000
commit4f5960c9fb018d0b68a4aba5f3e44a4da184ae25 (patch)
tree5fed52d23357e0d1d45096e03bf92e302f4e9908 /m4
parent250680570265227c79761c5f30659238d69b576c (diff)
downloadcoreutils-4f5960c9fb018d0b68a4aba5f3e44a4da184ae25.tar.xz
(jm_MACROS): Arrange to compile the corresponding stub
function if any of the following is missing: fchown, lstat, readlink. From Richard Dawe.
Diffstat (limited to 'm4')
-rw-r--r--m4/jm-macros.m46
1 files changed, 6 insertions, 0 deletions
diff --git a/m4/jm-macros.m4 b/m4/jm-macros.m4
index f74a7cd75..1a3f317e1 100644
--- a/m4/jm-macros.m4
+++ b/m4/jm-macros.m4
@@ -227,6 +227,12 @@ AC_DEFUN([jm_MACROS],
AC_REQUIRE([jm_AC_DOS])
AC_REQUIRE([AC_FUNC_CANONICALIZE_FILE_NAME])
+ # If any of these functions don't exist (e.g. DJGPP 2.03),
+ # use the corresponding stub.
+ AC_CHECK_FUNC([fchown], , [AC_LIBOBJ(fchown-stub)])
+ AC_CHECK_FUNC([lstat], , [AC_LIBOBJ(lstat-stub)])
+ AC_CHECK_FUNC([readlink], , [AC_LIBOBJ(readlink-stub)])
+
])
# These tests must be run before any use of AC_CHECK_TYPE,