]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
(GL_FUNC_GETCWD_PATH_MAX): Check for the
authorJim Meyering <jim@meyering.net>
Tue, 6 May 2003 08:51:26 +0000 (08:51 +0000)
committerJim Meyering <jim@meyering.net>
Tue, 6 May 2003 08:51:26 +0000 (08:51 +0000)
declaration of getcwd *before* checking for the getcwd kernel bug.
Otherwise, configure-time `checking ...' messages would be intermixed.

m4/getcwd-path-max.m4

index 923a34c3f6a25efaaa6afc2dcd04d7dbac581b48..a6f5c08c67f5255170faa60ee0b9800430f38b89 100644 (file)
@@ -1,4 +1,4 @@
-#serial 3
+#serial 4
 # Check whether getcwd has the bug that it succeeds for a working directory
 # longer than PATH_MAX, yet returns a truncated directory name.
 # If so, arrange to compile the wrapper function.
 
 AC_DEFUN([GL_FUNC_GETCWD_PATH_MAX],
 [
+  AC_CHECK_DECLS([getcwd])
   AC_CACHE_CHECK([whether getcwd properly handles paths longer than PATH_MAX],
                  gl_cv_func_getcwd_vs_path_max,
   [
-  AC_CHECK_DECLS([getcwd])
   # Arrange for deletion of the temporary directory this test creates.
   ac_clean_files="$ac_clean_files confdir3"
   AC_RUN_IFELSE([AC_LANG_SOURCE([[