Sergio Durigan Junior wrote:
   $ find . -name '*.log' -exec grep '\<host_os=' {} \; | sort -u
   host_os='linux-gnu'

   > 19 If you build and run the gl_cv_func_getcwd_path_max test program on
   > 20 that platform, what value does it return?

   It returns zero.

In that case, please try the attached patch.
diff --git a/m4/getcwd-path-max.m4 b/m4/getcwd-path-max.m4
index e312bd475..dfdbf165a 100644
--- a/m4/getcwd-path-max.m4
+++ b/m4/getcwd-path-max.m4
@@ -1,4 +1,4 @@
-# serial 20
+# serial 21
 # Check for several getcwd bugs with long file names.
 # If so, arrange to compile the wrapper function.
 
@@ -211,6 +211,7 @@ main ()
         esac],
        [case "$host_os" in
           aix*) gl_cv_func_getcwd_path_max='no, it has the AIX bug';;
+          *-gnu | gnu*) gl_cv_func_getcwd_path_max='yes';;
           *) gl_cv_func_getcwd_path_max=no;;
         esac])
     ])

Reply via email to