X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;ds=sidebyside;f=configure.in;h=e08d6b135207c1c9c6e2320b74742900e66d6468;hb=eb2b742588ce07fb4516bbca22c93b938b13e433;hp=7d7d07446a7b30597e1c4f7e6ae5c8f196326429;hpb=83533000f9456dcab2fc171abafd84d6104d4087;p=idzebra-moved-to-github.git diff --git a/configure.in b/configure.in index 7d7d074..e08d6b1 100644 --- a/configure.in +++ b/configure.in @@ -1,5 +1,5 @@ dnl Zebra, Index Data Aps, 1994-1999 -dnl $Id: configure.in,v 1.16 2000-03-01 10:02:04 adam Exp $ +dnl $Id: configure.in,v 1.17 2000-03-15 15:00:30 adam Exp $ dnl See the file LICENSE.2 for details. dnl AC_INIT(include/zebraver.h) @@ -60,6 +60,26 @@ else AC_MSG_RESULT(Not found) fi dnl +dnl ------ Threads +AC_ARG_ENABLE(threads, [ --disable-threads disable threads],[enable_threads=$enableval],[enable_threads=yes]) +if test "$enable_threads" = "yes"; then + AC_CHECK_LIB(pthread,main) + AC_MSG_CHECKING(for working POSIX Threads) + AC_TRY_LINK([#include + int func(void *p) { return 0; } + ],[ + pthread_t pthread_id; + int r = pthread_create (&pthread_id, 0, func, 0);], + thread_ok=yes,thread_ok=no) + if test "$thread_ok" = "yes"; then + AC_MSG_RESULT(yes) + AC_DEFINE(HAVE_PTHREAD_H) + AC_DEFINE(_REENTRANT) + else + AC_MSG_RESULT(no) + fi +fi +dnl dnl ------ Look for Tcl dnl See if user has specified location of tclConfig.sh; otherwise dnl see if tclConfig.sh exists in same prefix lcoation as tclsh; otherwise