From 70b4ec9404b6f0c8178172d320d36b95137f9c22 Mon Sep 17 00:00:00 2001 From: Dick Porter Date: Sun, 23 Sep 2001 12:32:33 +0000 Subject: 2001-09-23 Dick Porter * threads-dummy.c: * threads-dummy.h: New files of dummy threading routines * Makefile.am (THREAD_SOURCE): Arrange to compile different thread support code based on system specifics Rename PTHREAD_LIBS to THREAD_LIBS 2001-09-23 Dick Porter * configure.in: Arrange to compile dummy thread support routines if pthread isnt available 2001-09-23 Dick Porter * Makefile.am (testjit_LDADD): rename PTHREAD_LIBS to THREAD_LIBS 2001-09-23 Dick Porter * Makefile.am (mint_LDADD): rename PTHREAD_LIBS to THREAD_LIBS svn path=/trunk/mono/; revision=934 --- configure.in | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) (limited to 'configure.in') diff --git a/configure.in b/configure.in index 047c4b5fff7..2ecf6c455bf 100644 --- a/configure.in +++ b/configure.in @@ -37,9 +37,17 @@ dnl ***************************** dnl *** Checks for libpthread *** dnl ***************************** AC_CHECK_HEADERS(pthread.h) -AC_CHECK_LIB(pthread,pthread_create,PTHREAD_LIBS=-lpthread, - AC_MSG_ERROR([Cannot find libpthread])) -AC_SUBST(PTHREAD_LIBS) +AC_CHECK_LIB(pthread, pthread_create, [ + THREAD_LIBS=-lpthread + AM_CONDITIONAL(THREADS_PTHREAD, true) + ], [ + 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 + ]) +AC_SUBST(THREAD_LIBS) CFLAGS='-g -Wall -Wunused -Wmissing-prototypes -Wmissing-declarations' -- cgit v1.2.3