diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2011-02-21 17:55:20 -0800 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2011-02-21 17:55:20 -0800 |
commit | f68c809d7e91fcde5ee2e4f7f15def3d7e48b720 (patch) | |
tree | 9df8577ff5f281f066f778dee44bdb839eb13daf /configure.in | |
parent | 5ecec6a7f4a1ce83abd53a14fba7f51b668c6336 (diff) | |
download | emacs-f68c809d7e91fcde5ee2e4f7f15def3d7e48b720.tar.gz |
[ChangeLog]
Assume S_ISLNK etc. work, since gnulib supports this.
* Makefile.in (GNULIB_MODULES): Add sys_stat.
* configure.in: Check for lstat and set HAVE_LSTAT=0 if not.
Pretend to be using the gnulib lstat module for benefit of sys/stat.h.
* configure, lib/Makefile.in, lib/gnulib.mk: Regenerate.
[lib-src/ChangeLog]
Assume S_ISLNK etc. work, since gnulib supports this.
* etags.c (S_ISREG): Remove.
[src/ChangeLog]
Assume S_ISLNK etc. work, since gnulib supports this.
* config.in: Regenerate.
* dired.c (lstat): Remove.
(file_name_completion): Assume S_ISDIR works.
(file_name_completion_stat): Assume S_ISLNK works.
Do not bother calling stat unless lstat says it's a symlink.
* fileio.c (S_ISLNK, S_ISFIFO, S_ISREG, lstat): Remove.
(Fcopy_file): Assume S_ISREG and S_ISLNK work.
(check_writable, Ffile_writable_p, Fset_file_times):
Assume S_ISDIR works.
(Ffile_readable_p): Use S_IFIFO, not S_ISFIFO, to guess whether
fifos exist.
(Ffile_regular_p, Finsert_file_contents): Assumes S_ISREG works.
* filelock.c (S_ISLNK): Remove.
* lread.c (openp): Assume S_ISDIR works.
* xrdb.c (S_ISDIR): Remove.
Diffstat (limited to 'configure.in')
-rw-r--r-- | configure.in | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/configure.in b/configure.in index 376c82c4ca4..fa5ae960c59 100644 --- a/configure.in +++ b/configure.in @@ -2661,6 +2661,15 @@ gl_ASSERT_NO_GNULIB_POSIXCHECK gl_ASSERT_NO_GNULIB_TESTS gl_INIT +# Emacs does not care about lstat's behavior on files whose names end in +# trailing slashes, so it does not use the gnulib lstat module. +# However, Emacs does want the "#define lstat stat" in sys/stat.h +# when lstat does not exist, so it pretends to use the lstat module +# even though it implements only the lstat-checking part of that module. +AC_CHECK_FUNCS_ONCE([lstat]) +test $ac_cv_func_lstat = yes || HAVE_LSTAT=0 +gl_SYS_STAT_MODULE_INDICATOR([lstat]) + # UNIX98 PTYs. AC_CHECK_FUNCS(grantpt) |