The logs show: checking whether fopen recognizes a trailing slash... no
checking whether open recognizes a trailing slash... no gl_cv_func_fopen_slash=${gl_cv_func_fopen_slash=no} gl_cv_func_open_slash=${gl_cv_func_open_slash=no} I'm updating the doc and cross-compilation guesses: 2010-07-30 Bruno Haible <br...@clisp.org> open, fopen: Update regarding AIX. * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX. * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise. * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX. * doc/posix-functions/fopen.texi: Likewise. Reported by Rainer Tammer. --- doc/posix-functions/fopen.texi.orig Fri Jul 30 18:44:34 2010 +++ doc/posix-functions/fopen.texi Fri Jul 30 10:38:08 2010 @@ -12,7 +12,7 @@ This function does not fail when the file name argument ends in a slash and (without the slash) names a nonexistent file or a file that is not a directory, on some platforms: -HP-UX 11.00, Solaris 9, Irix 5.3. +HP-UX 11.00, AIX 7.1, Solaris 9, Irix 5.3. @item On Windows platforms (excluding Cygwin), this function does usually not recognize the @file{/dev/null} filename. --- doc/posix-functions/open.texi.orig Fri Jul 30 18:44:34 2010 +++ doc/posix-functions/open.texi Fri Jul 30 11:03:29 2010 @@ -12,7 +12,7 @@ This function does not fail when the file name argument ends in a slash and (without the slash) names a nonexistent file or a file that is not a directory, on some platforms: -FreeBSD 7.2, HP-UX 11.00, Solaris 9, Irix 5.3. +FreeBSD 7.2, AIX 7.1, HP-UX 11.00, Solaris 9, Irix 5.3. @item On Windows platforms (excluding Cygwin), this function does usually not recognize the @file{/dev/null} filename. --- m4/fopen.m4.orig Fri Jul 30 18:44:35 2010 +++ m4/fopen.m4 Fri Jul 30 10:40:09 2010 @@ -1,4 +1,4 @@ -# fopen.m4 serial 5 +# fopen.m4 serial 6 dnl Copyright (C) 2007-2010 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, @@ -31,9 +31,10 @@ [ changequote(,)dnl case "$host_os" in - solaris2.[0-9]*) gl_cv_func_fopen_slash="guessing no" ;; - hpux*) gl_cv_func_fopen_slash="guessing no" ;; - *) gl_cv_func_fopen_slash="guessing yes" ;; + aix* | hpux* | solaris2.[0-9]*) + gl_cv_func_fopen_slash="guessing no" ;; + *) + gl_cv_func_fopen_slash="guessing yes" ;; esac changequote([,])dnl ]) --- m4/open.m4.orig Fri Jul 30 18:44:35 2010 +++ m4/open.m4 Fri Jul 30 11:04:06 2010 @@ -1,4 +1,4 @@ -# open.m4 serial 8 +# open.m4 serial 9 dnl Copyright (C) 2007-2010 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, @@ -37,10 +37,10 @@ [ changequote(,)dnl case "$host_os" in - freebsd*) gl_cv_func_open_slash="guessing no" ;; - solaris2.[0-9]*) gl_cv_func_open_slash="guessing no" ;; - hpux*) gl_cv_func_open_slash="guessing no" ;; - *) gl_cv_func_open_slash="guessing yes" ;; + freebsd* | aix* | hpux* | solaris2.[0-9]*) + gl_cv_func_open_slash="guessing no" ;; + *) + gl_cv_func_open_slash="guessing yes" ;; esac changequote([,])dnl ])