]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
(jm_MACROS): Include $(EXEEXT) in DF_PROG's program
authorJim Meyering <jim@meyering.net>
Wed, 19 Mar 2003 09:03:40 +0000 (09:03 +0000)
committerJim Meyering <jim@meyering.net>
Wed, 19 Mar 2003 09:03:40 +0000 (09:03 +0000)
name, since automake only adds $(EXEEXT) to programs in its *_PROGRAMS.
Arrange to compile the corresponding stub function if fchdir is missing.

m4/jm-macros.m4

index 1a3f317e1816f5d1298e071228fe69efa4c6ff2f..f4143b1a3bccccc4bd522a0d8c2005e0a225ae2a 100644 (file)
@@ -1,4 +1,4 @@
-#serial 60   -*- autoconf -*-
+#serial 61   -*- autoconf -*-
 
 m4_undefine([AC_LANG_SOURCE(C)])
 dnl The following is identical to the definition in c.m4
@@ -220,7 +220,7 @@ AC_DEFUN([jm_MACROS],
   jm_FSTYPENAME
   jm_FILE_SYSTEM_USAGE([space=yes], [space=no])
   if test $list_mounted_fs = yes && test $space = yes; then
-    DF_PROG=df
+    DF_PROG='df$(EXEEXT)'
     AC_LIBOBJ(fsusage)
     AC_LIBOBJ(mountlist)
   fi
@@ -229,6 +229,7 @@ AC_DEFUN([jm_MACROS],
 
   # If any of these functions don't exist (e.g. DJGPP 2.03),
   # use the corresponding stub.
+  AC_CHECK_FUNC([fchdir], , [AC_LIBOBJ(fchdir-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)])