From b94c52ccbf2697d627b61ef5f3ab1482057d2bbd Mon Sep 17 00:00:00 2001 From: Dick Porter Date: Sun, 23 Sep 2001 12:46:54 +0000 Subject: Cope with systems that have pthread.h but no libpthread svn path=/trunk/mono/; revision=935 --- configure.in | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'configure.in') 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) -- cgit v1.2.3