Mercurial > vim
comparison src/auto/configure @ 25953:d7e1cf30728c v8.2.3510
patch 8.2.3510: changes are only detected with one second accuracy
Commit: https://github.com/vim/vim/commit/0a7984af5601323fae7b3398f05a48087db7b767
Author: Leah Neukirchen <leah@vuxu.org>
Date: Thu Oct 14 21:27:55 2021 +0100
patch 8.2.3510: changes are only detected with one second accuracy
Problem: Changes are only detected with one second accuracy.
Solution: Use the nanosecond time if possible. (Leah Neukirchen,
closes #8873, closes #8875)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Thu, 14 Oct 2021 22:30:04 +0200 |
parents | 076f9b8e9632 |
children | 13e09dc59f0f |
comparison
equal
deleted
inserted
replaced
25952:7eded0585ee0 | 25953:d7e1cf30728c |
---|---|
13147 if test "x$vim_cv_stat_ignores_slash" = "xyes" ; then | 13147 if test "x$vim_cv_stat_ignores_slash" = "xyes" ; then |
13148 $as_echo "#define STAT_IGNORES_SLASH 1" >>confdefs.h | 13148 $as_echo "#define STAT_IGNORES_SLASH 1" >>confdefs.h |
13149 | 13149 |
13150 fi | 13150 fi |
13151 | 13151 |
13152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nanoseconds field of struct stat" >&5 | |
13153 $as_echo_n "checking for nanoseconds field of struct stat... " >&6; } | |
13154 if ${ac_cv_struct_st_mtim_nsec+:} false; then : | |
13155 $as_echo_n "(cached) " >&6 | |
13156 else | |
13157 ac_save_CPPFLAGS="$CPPFLAGS" | |
13158 ac_cv_struct_st_mtim_nsec=no | |
13159 # st_mtim.tv_nsec -- the usual case | |
13160 # st_mtim._tv_nsec -- Solaris 2.6, if | |
13161 # (defined _XOPEN_SOURCE && _XOPEN_SOURCE_EXTENDED == 1 | |
13162 # && !defined __EXTENSIONS__) | |
13163 # st_mtim.st__tim.tv_nsec -- UnixWare 2.1.2 | |
13164 # st_mtime_n -- AIX 5.2 and above | |
13165 # st_mtimespec.tv_nsec -- Darwin (Mac OSX) | |
13166 for ac_val in st_mtim.tv_nsec st_mtim._tv_nsec st_mtim.st__tim.tv_nsec st_mtime_n st_mtimespec.tv_nsec; do | |
13167 CPPFLAGS="$ac_save_CPPFLAGS -DST_MTIM_NSEC=$ac_val" | |
13168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13169 /* end confdefs.h. */ | |
13170 #include <sys/types.h> | |
13171 #include <sys/stat.h> | |
13172 int | |
13173 main () | |
13174 { | |
13175 struct stat s; s.ST_MTIM_NSEC; | |
13176 ; | |
13177 return 0; | |
13178 } | |
13179 _ACEOF | |
13180 if ac_fn_c_try_compile "$LINENO"; then : | |
13181 ac_cv_struct_st_mtim_nsec=$ac_val; break | |
13182 fi | |
13183 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
13184 done | |
13185 CPPFLAGS="$ac_save_CPPFLAGS" | |
13186 | |
13187 fi | |
13188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_st_mtim_nsec" >&5 | |
13189 $as_echo "$ac_cv_struct_st_mtim_nsec" >&6; } | |
13190 if test $ac_cv_struct_st_mtim_nsec != no; then | |
13191 | |
13192 cat >>confdefs.h <<_ACEOF | |
13193 #define ST_MTIM_NSEC $ac_cv_struct_st_mtim_nsec | |
13194 _ACEOF | |
13195 | |
13196 fi | |
13197 | |
13152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv_open()" >&5 | 13198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv_open()" >&5 |
13153 $as_echo_n "checking for iconv_open()... " >&6; } | 13199 $as_echo_n "checking for iconv_open()... " >&6; } |
13154 save_LIBS="$LIBS" | 13200 save_LIBS="$LIBS" |
13155 LIBS="$LIBS -liconv" | 13201 LIBS="$LIBS -liconv" |
13156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 13202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |