Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDick Porter <dick@acm.org>2001-09-23 16:46:54 +0400
committerDick Porter <dick@acm.org>2001-09-23 16:46:54 +0400
commitb94c52ccbf2697d627b61ef5f3ab1482057d2bbd (patch)
tree4d8c30c0d34f7e41f65cb07175f515452442ec77 /configure.in
parent70b4ec9404b6f0c8178172d320d36b95137f9c22 (diff)
Cope with systems that have pthread.h but no libpthread
svn path=/trunk/mono/; revision=935
Diffstat (limited to 'configure.in')
-rw-r--r--configure.in6
1 files changed, 4 insertions, 2 deletions
diff --git a/configure.in b/configure.in
index 2ecf6c455bf..0bf4e6f9b66 100644
--- a/configure.in
+++ b/configure.in
@@ -36,16 +36,18 @@ AC_SUBST(GMODULE_LIBS)
dnl *****************************
dnl *** Checks for libpthread ***
dnl *****************************
-AC_CHECK_HEADERS(pthread.h)
AC_CHECK_LIB(pthread, pthread_create, [
THREAD_LIBS=-lpthread
AM_CONDITIONAL(THREADS_PTHREAD, true)
+ AC_DEFINE(HAVE_PTHREAD)
], [
AC_MSG_RESULT([Cannot find libpthread])
# Check for other thread systems here, set THREAD_LIBS to
# whatever is needed, and define
# AM_CONDITIONAL(THREADS_foo, true), and add it to the
- # section in mono/metadata/Makefile.am
+ # section in mono/metadata/Makefile.am, AC_DEFINE(HAVE_foo),
+ # add that to acconfig.h, add the section for that in
+ # mono/metadata/threads.h
])
AC_SUBST(THREAD_LIBS)