summaryrefslogtreecommitdiffstats
path: root/unix/tcl.m4
diff options
context:
space:
mode:
authormdejong <mdejong>2004-11-22 23:02:44 (GMT)
committermdejong <mdejong>2004-11-22 23:02:44 (GMT)
commit59317f4e489fb79017034911d3e0fd2a01eb2b4e (patch)
tree3d67cec551736d2f06c9857ae2bf382fffc06d7a /unix/tcl.m4
parentfe96f0fa28a0a74e364c71258018723dccbe1e92 (diff)
downloadtcl-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.m413
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])