diff options
author | dgp <dgp@users.sourceforge.net> | 2018-06-12 19:14:47 (GMT) |
---|---|---|
committer | dgp <dgp@users.sourceforge.net> | 2018-06-12 19:14:47 (GMT) |
commit | 9e3e0498e7809842960b810cbad933f8f6679231 (patch) | |
tree | 653dfd51eed2dfef7f77de94ba81dc02d3a250f8 /unix/tcl.m4 | |
parent | 38be8d3de6482550ac70bbb23c6e7f260b01d9ab (diff) | |
parent | b5e61d9f54b0a0579e07552cbca1e7b7a13444f8 (diff) | |
download | tcl-9e3e0498e7809842960b810cbad933f8f6679231.zip tcl-9e3e0498e7809842960b810cbad933f8f6679231.tar.gz tcl-9e3e0498e7809842960b810cbad933f8f6679231.tar.bz2 |
merge 8.7
Diffstat (limited to 'unix/tcl.m4')
-rw-r--r-- | unix/tcl.m4 | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/unix/tcl.m4 b/unix/tcl.m4 index 2d2f190..d705480 100644 --- a/unix/tcl.m4 +++ b/unix/tcl.m4 @@ -2413,7 +2413,7 @@ AC_DEFUN([SC_TCL_EARLY_FLAGS],[ # Might define the following vars: # TCL_WIDE_INT_IS_LONG # TCL_WIDE_INT_TYPE -# HAVE_STRUCT_DIRENT64 +# HAVE_STRUCT_DIRENT64, HAVE_DIR64 # HAVE_STRUCT_STAT64 # HAVE_TYPE_OFF64_T # @@ -2449,6 +2449,15 @@ AC_DEFUN([SC_TCL_64BIT_FLAGS], [ AC_DEFINE(HAVE_STRUCT_DIRENT64, 1, [Is 'struct dirent64' in <sys/types.h>?]) fi + AC_CACHE_CHECK([for DIR64], tcl_cv_DIR64,[ + AC_TRY_COMPILE([#include <sys/types.h> +#include <dirent.h>],[struct dirent64 *p; DIR64 d = opendir64("."); + p = readdir64(d); rewinddir64(d); closedir64(d);], + tcl_cv_DIR64=yes,tcl_cv_DIR64=no)]) + if test "x${tcl_cv_DIR64}" = "xyes" ; then + AC_DEFINE(HAVE_DIR64, 1, [Is 'DIR64' in <sys/types.h>?]) + fi + AC_CACHE_CHECK([for struct stat64], tcl_cv_struct_stat64,[ AC_TRY_COMPILE([#include <sys/stat.h>],[struct stat64 p; ], |