diff options
Diffstat (limited to 'configure.in')
-rw-r--r-- | configure.in | 14 |
1 files changed, 11 insertions, 3 deletions
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' |