summaryrefslogtreecommitdiffstats
path: root/unix
diff options
context:
space:
mode:
authorhobbs <hobbs>2000-10-31 00:23:28 (GMT)
committerhobbs <hobbs>2000-10-31 00:23:28 (GMT)
commit0a27a911fd61065e1b887959b5ddbbed8229f348 (patch)
tree97cb6c88f6f6d4b14d1dd6c608dbc85e42e94e13 /unix
parent5907ef28509328a25c88c96b50386719d37fe779 (diff)
downloadtcl-0a27a911fd61065e1b887959b5ddbbed8229f348.zip
tcl-0a27a911fd61065e1b887959b5ddbbed8229f348.tar.gz
tcl-0a27a911fd61065e1b887959b5ddbbed8229f348.tar.bz2
unix/tcl.m4: consolidated gettimeofday check for AIX.
Diffstat (limited to 'unix')
-rw-r--r--unix/tcl.m419
1 files changed, 6 insertions, 13 deletions
diff --git a/unix/tcl.m4 b/unix/tcl.m4
index 37593dd..98109f3 100644
--- a/unix/tcl.m4
+++ b/unix/tcl.m4
@@ -1579,19 +1579,6 @@ AC_DEFUN(SC_TIME_HANDLER, [
AC_MSG_RESULT(no))
fi
- #
- # AIX does not have a timezone field in struct tm. When the AIX bsd
- # library is used, the timezone global and the gettimeofday methods are
- # to be avoided for timezone deduction instead, we deduce the timezone
- # by comparing the localtime result on a known GMT value.
- #
-
- if test "`uname -s`" = "AIX" ; then
- AC_CHECK_LIB(bsd, gettimeofday, libbsd=yes)
- if test $libbsd = yes; then
- AC_DEFINE(USE_DELTA_FOR_TZ)
- fi
- fi
])
#--------------------------------------------------------------------
@@ -1689,6 +1676,11 @@ AC_DEFUN(SC_TCL_LINK_LIBS, [
# the MATH_LIBS or it breaks the pow() function. The way to
# insure proper sequencing, is to add it to the tail of MATH_LIBS.
# This library also supplies gettimeofday.
+ #
+ # AIX does not have a timezone field in struct tm. When the AIX bsd
+ # library is used, the timezone global and the gettimeofday methods are
+ # to be avoided for timezone deduction instead, we deduce the timezone
+ # by comparing the localtime result on a known GMT value.
#--------------------------------------------------------------------
libbsd=no
@@ -1696,6 +1688,7 @@ AC_DEFUN(SC_TCL_LINK_LIBS, [
AC_CHECK_LIB(bsd, gettimeofday, libbsd=yes)
if test $libbsd = yes; then
MATH_LIBS="$MATH_LIBS -lbsd"
+ AC_DEFINE(USE_DELTA_FOR_TZ)
fi
fi