From: hno <> Date: Wed, 17 Oct 2001 20:54:36 +0000 (+0000) Subject: --use-pthreads needs to add thread compiler options on Solaris X-Git-Tag: SQUID_3_0_PRE1~1355 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=b71119d9d16ba9bc77dd6771ce6e1f9cd370daa8;p=thirdparty%2Fsquid.git --use-pthreads needs to add thread compiler options on Solaris --- diff --git a/configure.in b/configure.in index 5d452957db..a1bef7939b 100644 --- a/configure.in +++ b/configure.in @@ -3,7 +3,7 @@ dnl Configuration input file for Squid dnl dnl Duane Wessels, wessels@nlanr.net, February 1996 (autoconf v2.9) dnl -dnl $Id: configure.in,v 1.235 2001/10/03 09:02:24 hno Exp $ +dnl $Id: configure.in,v 1.236 2001/10/17 14:54:36 hno Exp $ dnl dnl dnl @@ -11,7 +11,7 @@ AC_INIT(src/main.c) AC_CONFIG_AUX_DIR(cfgaux) AM_INIT_AUTOMAKE(Squid, 2.5-DEVEL) AM_CONFIG_HEADER(include/autoconf.h) -AC_REVISION($Revision: 1.235 $)dnl +AC_REVISION($Revision: 1.236 $)dnl AC_PREFIX_DEFAULT(/usr/local/squid) AM_MAINTAINER_MODE @@ -299,6 +299,13 @@ if test "$with_pthreads"; then fi fi ;; + *-solaris2.*) + if test "$GCC" = "yes" ; then + CFLAGS="$CFLAGS -pthreads" + else + CFLAGS="$CFLAGS -mt" + fi + ;; esac fi AC_SUBST(SQUID_PTHREAD_LIB)