diff options
author | mdejong <mdejong> | 2004-11-22 23:02:44 (GMT) |
---|---|---|
committer | mdejong <mdejong> | 2004-11-22 23:02:44 (GMT) |
commit | 59317f4e489fb79017034911d3e0fd2a01eb2b4e (patch) | |
tree | 3d67cec551736d2f06c9857ae2bf382fffc06d7a /unix/tcl.m4 | |
parent | fe96f0fa28a0a74e364c71258018723dccbe1e92 (diff) | |
download | tcl-59317f4e489fb79017034911d3e0fd2a01eb2b4e.zip tcl-59317f4e489fb79017034911d3e0fd2a01eb2b4e.tar.gz tcl-59317f4e489fb79017034911d3e0fd2a01eb2b4e.tar.bz2 |
* unix/configure: Regen.
* unix/tcl.m4 (SC_TCL_64BIT_FLAGS): Define HAVE_TYPE_OFF64_T
only when off64_t, open64(), and lseek64() are defined.
IRIX 5.3 is known to not include an open64 function.
[Bug 1030465]
Diffstat (limited to 'unix/tcl.m4')
-rw-r--r-- | unix/tcl.m4 | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/unix/tcl.m4 b/unix/tcl.m4 index 1cbc199..197c83e 100644 --- a/unix/tcl.m4 +++ b/unix/tcl.m4 @@ -2525,8 +2525,15 @@ AC_DEFUN(SC_TCL_64BIT_FLAGS, [ AC_TRY_COMPILE([#include <sys/types.h>],[off64_t offset; ], tcl_cv_type_off64_t=yes,tcl_cv_type_off64_t=no)]) - if test "x${tcl_cv_type_off64_t}" = "xyes" ; then - AC_DEFINE(HAVE_TYPE_OFF64_T) + AC_CHECK_FUNCS(open64 lseek64) + dnl Define HAVE_TYPE_OFF64_T only when the off64_t type and the + dnl functions lseek64 and open64 are defined. + if test "x${tcl_cv_type_off64_t}" = "xyes" && \ + test "x${ac_cv_func_lseek64}" = "xyes" && \ + test "x${ac_cv_func_open64}" = "xyes" ; then + AC_DEFINE(HAVE_TYPE_OFF64_T, 1, [Is off64_t in <sys/types.h>?]) + AC_MSG_RESULT(yes) + else + AC_MSG_RESULT(no) fi - AC_MSG_RESULT(${tcl_cv_type_off64_t}) fi]) |