diff options
author | dgp <dgp@users.sourceforge.net> | 2015-10-29 13:12:03 (GMT) |
---|---|---|
committer | dgp <dgp@users.sourceforge.net> | 2015-10-29 13:12:03 (GMT) |
commit | 48abc4faa37b34ffbe405b86425aa8415da29e88 (patch) | |
tree | 781b71b889a7de7512ede95a0e96ec7f341ecc19 /unix/tcl.m4 | |
parent | 0dd6aea93ddc469a60059a29582f10a3a472e00d (diff) | |
parent | 18425b42d186aee1a919721890d7ffeb875137c3 (diff) | |
download | tcl-48abc4faa37b34ffbe405b86425aa8415da29e88.zip tcl-48abc4faa37b34ffbe405b86425aa8415da29e88.tar.gz tcl-48abc4faa37b34ffbe405b86425aa8415da29e88.tar.bz2 |
merge 8.5
Diffstat (limited to 'unix/tcl.m4')
-rw-r--r-- | unix/tcl.m4 | 42 |
1 files changed, 0 insertions, 42 deletions
diff --git a/unix/tcl.m4 b/unix/tcl.m4 index d7d6a7b..7a0b677 100644 --- a/unix/tcl.m4 +++ b/unix/tcl.m4 @@ -808,48 +808,6 @@ AC_DEFUN([SC_ENABLE_SYMBOLS], [ ]) #------------------------------------------------------------------------ -# SC_ENABLE_USLEEP -- -# -# Allows use of usleep function. -# This is only relevant for Unix. -# -# Arguments: -# none -# -# Results: -# -# Adds the following arguments to configure: -# --enable-usleep=yes|no (default is yes) -# -# Defines the following vars: -# HAVE_USLEEP Triggers use of usleep if defined. -#------------------------------------------------------------------------ - -AC_DEFUN([SC_ENABLE_USLEEP], [ - AC_ARG_ENABLE(usleep, - AC_HELP_STRING([--enable-usleep], - [use usleep if possible to sleep, otherwise use Tcl_Sleep (default: on)]), - [usleep_ok=$enableval], [usleep_ok=yes]) - - HAVE_USLEEP=0 - if test "$usleep_ok" = "yes"; then - AC_CHECK_HEADER(unistd.h,[usleep_ok=yes],[usleep_ok=no]) - fi - AC_MSG_CHECKING([whether to use usleep]) - if test "$usleep_ok" = "yes"; then - AC_CACHE_VAL(tcl_cv_usleep_h, [ - AC_TRY_COMPILE([#include <unistd.h>], [usleep(0);], - [tcl_cv_usleep_h=yes],[tcl_cv_usleep_h=no])]) - AC_MSG_RESULT([$tcl_cv_usleep_h]) - if test $tcl_cv_usleep_h = yes; then - AC_DEFINE(HAVE_USLEEP, 1, [Do we have usleep()?]) - fi - else - AC_MSG_RESULT([$usleep_ok]) - fi -]) - -#------------------------------------------------------------------------ # SC_ENABLE_LANGINFO -- # # Allows use of modern nl_langinfo check for better l10n. |