From: Stuart Henderson Date: Sun, 7 Apr 2013 02:47:50 +0000 (-0600) Subject: OpenBSD: libpthreads requires OpenBSD 5.2 or later X-Git-Tag: SQUID_3_4_0_1~208 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=ec264296ecf86643cad14b92e2caff277a0f66cd;p=thirdparty%2Fsquid.git OpenBSD: libpthreads requires OpenBSD 5.2 or later This patch imported form teh OpenBSD ports packaging implements a TODO in DiskThreads component regarding wider system support for libpthreads. --- diff --git a/configure.ac b/configure.ac index 93c276879f..a72e1d70a6 100644 --- a/configure.ac +++ b/configure.ac @@ -589,6 +589,16 @@ for module in $squid_disk_module_candidates none; do fi fi ;; + openbsd) + if test `echo "$squid_host_os_version" | tr -d .` -lt 52 ; then + AC_MSG_NOTICE(pthread library requires OpenBSD 5.2 or later) + squid_opt_use_diskthreads="no" + else + SQUID_CFLAGS="$SQUID_CFLAGS -D_REENTRANT" + SQUID_CXXFLAGS="$SQUID_CXXFLAGS -D_REENTRANT" + LDFLAGS="$LDFLAGS -lpthread" + fi + ;; solaris) if test "x$GCC" = "xyes" ; then SQUID_CFLAGS="$SQUID_CFLAGS -D_REENTRANT -pthreads"