------------------------------------------------------------ revno: 12527 revision-id: squid3@treenet.co.nz-20130418052931-t4xhtz09kibo3ky0 parent: squid3@treenet.co.nz-20130418052816-e332i43c6kc93my2 author: Stuart Henderson committer: Amos Jeffries branch nick: 3.3 timestamp: Wed 2013-04-17 23:29:31 -0600 message: OpenBSD: libpthreads requires OpenBSD 5.2 or later This patch imported from the OpenBSD ports packaging implements a TODO in DiskThreads component regarding wider system support for libpthreads. ------------------------------------------------------------ # Bazaar merge directive format 2 (Bazaar 0.90) # revision_id: squid3@treenet.co.nz-20130418052931-t4xhtz09kibo3ky0 # target_branch: http://bzr.squid-cache.org/bzr/squid3/3.3 # testament_sha1: c5ebfe643094142ebb8fd081d863ecc81307c344 # timestamp: 2013-04-18 05:35:42 +0000 # source_branch: http://bzr.squid-cache.org/bzr/squid3/3.3 # base_revision_id: squid3@treenet.co.nz-20130418052816-\ # e332i43c6kc93my2 # # Begin patch === modified file 'configure.ac' --- configure.ac 2013-04-18 05:28:16 +0000 +++ configure.ac 2013-04-18 05:29:31 +0000 @@ -590,6 +590,16 @@ 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"