$OpenBSD: patch-configure_ac,v 1.1 2008/04/01 17:41:13 kurt Exp $ --- configure.ac.orig Sat Jun 30 11:40:15 2007 +++ configure.ac Fri Feb 8 17:29:19 2008 @@ -113,6 +113,12 @@ case "$THREADS" in *-*-hpux10*) AC_MSG_WARN("Only HP-UX 11 POSIX threads are supported.") ;; + *-*-openbsd*) + AC_DEFINE(GC_OPENBSD_THREADS) + THREADDLLIBS=-pthread + INCLUDES="$INCLUDES -pthread" + openbsd_threads=true + ;; *-*-freebsd*) AC_MSG_WARN("FreeBSD does not yet fully support threads with Boehm GC.") AC_DEFINE(GC_FREEBSD_THREADS) @@ -222,6 +228,7 @@ AM_CONDITIONAL(THREADS, test x$THREADS != xnone) AM_CONDITIONAL(PTHREADS, test x$THREADS = xposix) AM_CONDITIONAL(DARWIN_THREADS, test x$darwin_threads = xtrue) AM_CONDITIONAL(WIN32_THREADS, test x$win32_threads = xtrue) +AM_CONDITIONAL(OPENBSD_THREADS, test x$openbsd_threads = xtrue) case "$host" in powerpc-*-darwin*) @@ -394,6 +401,9 @@ case "$host" in ;; sparc-*-netbsd*) machdep="mach_dep.lo sparc_netbsd_mach_dep.lo" + ;; + sparc*-*-openbsd*) + machdep="mach_dep.lo sparc_mach_dep.lo" ;; sparc-sun-solaris2.3) machdep="mach_dep.lo sparc_mach_dep.lo"