Commit 62aa6b06 by Loren J. Rittle Committed by Loren J. Rittle

configure.in: Add support for --enable-threads=posix on FreeBSD.

        * configure.in: Add support for --enable-threads=posix on FreeBSD.
        * configure: Rebuilt.

From-SVN: r41845
parent 3750bc81
2001-05-04 Loren J. Rittle <ljrittle@acm.org>
with final tuning by Bryce McKinlay
* configure.in: Add support for --enable-threads=posix on FreeBSD.
* configure: Rebuilt.
2001-05-01 Jeffrey Oldham <oldham@codesourcery.com> 2001-05-01 Jeffrey Oldham <oldham@codesourcery.com>
* gc_priv.h (UNLOCK): Change type of GC_noop1 argument. * gc_priv.h (UNLOCK): Change type of GC_noop1 argument.
......
...@@ -38,11 +38,18 @@ case "$THREADS" in ...@@ -38,11 +38,18 @@ case "$THREADS" in
;; ;;
posix | pthreads) posix | pthreads)
THREADS=posix THREADS=posix
THREADLIBS=-lpthread
case "$host" in case "$host" in
*-*-linux*) *-*-linux*)
AC_DEFINE(LINUX_THREADS) AC_DEFINE(LINUX_THREADS)
AC_DEFINE(_REENTRANT) AC_DEFINE(_REENTRANT)
;; ;;
*-*-freebsd*)
AC_MSG_WARN("FreeBSD does not yet fully support threads with Boehm GC.")
AC_DEFINE(FREEBSD_THREADS)
INCLUDES=-pthread
THREADLIBS=-pthread
;;
*-*-solaris*) *-*-solaris*)
AC_DEFINE(SOLARIS_THREADS) AC_DEFINE(SOLARIS_THREADS)
AC_DEFINE(_SOLARIS_PTHREADS) AC_DEFINE(_SOLARIS_PTHREADS)
...@@ -51,7 +58,6 @@ case "$THREADS" in ...@@ -51,7 +58,6 @@ case "$THREADS" in
AC_DEFINE(IRIX_THREADS) AC_DEFINE(IRIX_THREADS)
;; ;;
esac esac
THREADLIBS=-lpthread
;; ;;
decosf1 | irix | mach | os2 | solaris | win32 | dce | vxworks) decosf1 | irix | mach | os2 | solaris | win32 | dce | vxworks)
AC_MSG_ERROR(thread package $THREADS not yet supported) AC_MSG_ERROR(thread package $THREADS not yet supported)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment