]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
(jm_MACROS): Arrange to compile the corresponding stub
authorJim Meyering <jim@meyering.net>
Thu, 13 Mar 2003 13:06:44 +0000 (13:06 +0000)
committerJim Meyering <jim@meyering.net>
Thu, 13 Mar 2003 13:06:44 +0000 (13:06 +0000)
function if any of the following is missing: fchown, lstat, readlink.
From Richard Dawe.

m4/jm-macros.m4

index f74a7cd75d1b264ad1dd02853377f7ddcb86a2c7..1a3f317e1816f5d1298e071228fe69efa4c6ff2f 100644 (file)
@@ -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,