Mercurial > hg > octave-lyh > gnulib-hg
changeset 12566:88db63e00b06
fdopendir: fix configure test
A typo was causing spurious rejection of fdopendir.
* m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
Signed-off-by: Eric Blake <ebb9@byu.net>
author | Eric Blake <ebb9@byu.net> |
---|---|
date | Mon, 04 Jan 2010 06:36:13 -0700 |
parents | a700dd79a042 |
children | ceb1562f60a5 |
files | ChangeLog m4/fdopendir.m4 |
diffstat | 2 files changed, 7 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2010-01-04 Eric Blake <ebb9@byu.net> + + fdopendir: fix configure test + * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file. + 2010-01-01 Bruno Haible <bruno@clisp.org> wchar: Remove unused configure check.
--- a/m4/fdopendir.m4 +++ b/m4/fdopendir.m4 @@ -1,4 +1,4 @@ -# serial 2 +# serial 3 # See if we need to provide fdopendir. dnl Copyright (C) 2009-2010 Free Software Foundation, Inc. @@ -23,7 +23,7 @@ [AC_RUN_IFELSE([AC_LANG_PROGRAM([[ #include <dirent.h> #include <fcntl.h> -]], [int fd = open ("conftest.h", O_RDONLY); +]], [int fd = open ("conftest.c", O_RDONLY); if (fd < 0) return 2; return !!fdopendir (fd);])], [gl_cv_func_fdopendir_works=yes],