/[cvs]/ccvs/m4/getcwd-path-max.m4
ViewVC logotype

Diff of /ccvs/m4/getcwd-path-max.m4

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.3 by dprice, Fri Jun 10 20:31:04 2005 UTC revision 1.4 by dprice, Fri Aug 12 20:57:46 2005 UTC
# Line 1  Line 1 
1  #serial 9  #serial 10
2  # Check for several getcwd bugs with long file names.  # Check for several getcwd bugs with long file names.
3  # If so, arrange to compile the wrapper function.  # If so, arrange to compile the wrapper function.
4    
# Line 16  Line 16 
16  AC_DEFUN([gl_FUNC_GETCWD_PATH_MAX],  AC_DEFUN([gl_FUNC_GETCWD_PATH_MAX],
17  [  [
18    AC_CHECK_DECLS_ONCE(getcwd)    AC_CHECK_DECLS_ONCE(getcwd)
   AC_CHECK_HEADERS_ONCE(fcntl.h)  
19    AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS])    AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS])
20    AC_CACHE_CHECK([whether getcwd handles long file names properly],    AC_CACHE_CHECK([whether getcwd handles long file names properly],
21      gl_cv_func_getcwd_path_max,      gl_cv_func_getcwd_path_max,
# Line 32  AC_DEFUN([gl_FUNC_GETCWD_PATH_MAX], Line 31  AC_DEFUN([gl_FUNC_GETCWD_PATH_MAX],
31  #include <limits.h>  #include <limits.h>
32  #include <sys/stat.h>  #include <sys/stat.h>
33  #include <sys/types.h>  #include <sys/types.h>
34  #if HAVE_FCNTL_H  #include <fcntl.h>
 # include <fcntl.h>  
 #endif  
35    
36  #ifndef AT_FDCWD  #ifndef AT_FDCWD
37  # define AT_FDCWD 0  # define AT_FDCWD 0

Legend:
Removed from v.1.3  
changed lines
  Added in v.1.4

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26