Mercurial > gnulib
changeset 39522:e4a5a4f0bffb
getcwd: Add cross-compilation guesses.
Reported by Sergio Durigan Junior <sergiodj@redhat.com> in
<https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00130.html>.
Based on a patch by Paul Eggert.
* m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Add cross-compilation
guesses for all GNU systems.
author | Bruno Haible <bruno@clisp.org> |
---|---|
date | Thu, 23 Aug 2018 21:13:19 +0200 |
parents | 00065383ee16 |
children | 20ebc785891a |
files | ChangeLog m4/getcwd-path-max.m4 |
diffstat | 2 files changed, 26 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog Wed Aug 22 17:59:49 2018 -0700 +++ b/ChangeLog Thu Aug 23 21:13:19 2018 +0200 @@ -1,3 +1,12 @@ +2018-08-23 Bruno Haible <bruno@clisp.org> + + getcwd: Add cross-compilation guesses. + Reported by Sergio Durigan Junior <sergiodj@redhat.com> in + <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00130.html>. + Based on a patch by Paul Eggert. + * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Add cross-compilation + guesses for all GNU systems. + 2018-08-19 Bruno Haible <bruno@clisp.org> glob-h: Formalize side effects from other modules.
--- a/m4/getcwd-path-max.m4 Wed Aug 22 17:59:49 2018 -0700 +++ b/m4/getcwd-path-max.m4 Thu Aug 23 21:13:19 2018 +0200 @@ -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. @@ -209,9 +209,21 @@ 32) gl_cv_func_getcwd_path_max='yes, but with shorter paths';; *) gl_cv_func_getcwd_path_max=no;; esac], - [case "$host_os" in - aix*) gl_cv_func_getcwd_path_max='no, it has the AIX bug';; - *) gl_cv_func_getcwd_path_max=no;; - esac]) + [# Cross-compilation guesses: + case "$host_os" in + aix*) # On AIX, it has the AIX bug. + gl_cv_func_getcwd_path_max='no, it has the AIX bug' ;; + gnu*) # On Hurd, it is 'yes'. + gl_cv_func_getcwd_path_max=yes ;; + linux* | kfreebsd*) + # On older Linux+glibc it's 'no, but it is partly working', + # on newer Linux+glibc it's 'yes'. + # On Linux+musl libc, it's 'no, but it is partly working'. + # On kFreeBSD+glibc, it's 'no, but it is partly working'. + gl_cv_func_getcwd_path_max='no, but it is partly working' ;; + *) # If we don't know, assume the worst. + gl_cv_func_getcwd_path_max=no ;; + esac + ]) ]) ])