summaryrefslogtreecommitdiff
path: root/m4/getcwd.m4
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2005-02-09 09:59:53 +0000
committerJim Meyering <jim@meyering.net>2005-02-09 09:59:53 +0000
commit0f25baf0616918bd806fa48c64168c21f8581f3d (patch)
treedfffaaa278a136932811a8d1e30f023c8acc8606 /m4/getcwd.m4
parent4738975f66ad34ddcefcba17dbf482bcc3e74a85 (diff)
downloadcoreutils-0f25baf0616918bd806fa48c64168c21f8581f3d.tar.xz
(gl_FUNC_GETCWD_NULL): Use AC_LIBSOURCES to list the required source files.
Diffstat (limited to 'm4/getcwd.m4')
-rw-r--r--m4/getcwd.m44
1 files changed, 3 insertions, 1 deletions
diff --git a/m4/getcwd.m4 b/m4/getcwd.m4
index c2524916e..3e7e5dcba 100644
--- a/m4/getcwd.m4
+++ b/m4/getcwd.m4
@@ -1,6 +1,6 @@
# getcwd.m4 - check for working getcwd that is compatible with glibc
-# Copyright (C) 2001, 2003, 2004 Free Software Foundation, Inc.
+# Copyright (C) 2001, 2003, 2004, 2005 Free Software Foundation, Inc.
# This file is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it,
# with or without modifications, as long as this notice is preserved.
@@ -9,6 +9,8 @@
AC_DEFUN([gl_FUNC_GETCWD_NULL],
[
+ AC_LIBSOURCES([getcwd.c, getcwd.h])
+
AC_CHECK_HEADERS_ONCE(unistd.h)
AC_CACHE_CHECK([whether getcwd (NULL, 0) allocates memory for result],
[gl_cv_func_getcwd_null],