Pthread is now conditionally included in makefile, see ticket #910 (CVS 1974)

FossilOrigin-Name: a35e52276998f8db2407115b07f30bd490982944
This commit is contained in:
dougcurrie
2004-09-20 14:57:23 +00:00
parent ad6d94607f
commit 65623c78e8
5 changed files with 111 additions and 17 deletions
+11 -1
View File
@@ -138,7 +138,7 @@ AC_INIT(src/sqlite.h.in)
dnl Put the RCS revision string after AC_INIT so that it will also
dnl show in in configure.
# The following RCS revision string applies to configure.in
# $Revision: 1.10 $
# $Revision: 1.11 $
#########
# Programs needed
@@ -305,6 +305,16 @@ else
fi
AC_SUBST(THREADSAFE)
if test "$THREADSAFE" = "1"; then
LIBS=""
AC_CHECK_LIB(pthread, pthread_create)
TARGET_THREAD_LIB="$LIBS"
LIBS=""
else
TARGET_THREAD_LIB=""
fi
AC_SUBST(TARGET_THREAD_LIB)
##########
# Do we want to support release
#