X-Git-Url: http://www.privoxy.org/gitweb/?p=privoxy.git;a=blobdiff_plain;f=configure.in;h=381b1b0fa330e6c8485d7d0135510e63525150af;hp=6e629ff10d7db80e732493ae74e5a980ffa4fbb0;hb=ed7e5327924ec7d200fe324f3a2a074091941836;hpb=e37bdfeeaedccc5b50881a93e84962e9b1336980 diff --git a/configure.in b/configure.in index 6e629ff1..381b1b0f 100644 --- a/configure.in +++ b/configure.in @@ -1,6 +1,6 @@ dnl Process this file with autoconf to produce a configure script. dnl -dnl $Id: configure.in,v 1.66 2002/05/03 00:41:56 oes Exp $ +dnl $Id: configure.in,v 1.68 2002/05/25 16:54:54 jongfoster Exp $ dnl dnl Written by and Copyright (C) 2001, 2002 the SourceForge dnl Privoxy team. http://www.privoxy.org/ @@ -28,6 +28,14 @@ dnl or write to the Free Software Foundation, Inc., 59 dnl Temple Place - Suite 330, Boston, MA 02111-1307, USA. dnl dnl $Log: configure.in,v $ +dnl Revision 1.68 2002/05/25 16:54:54 jongfoster +dnl Detect if the compiler supports -pthread. +dnl Hopefully this will fix bug 560442. (I don't have a HP PA-RISC +dnl machine to test this!) +dnl +dnl Revision 1.67 2002/05/03 14:33:59 oes +dnl Generate doc/soucre/ldp.dsl +dnl dnl Revision 1.66 2002/05/03 00:41:56 oes dnl Set version to 2.9.15 to comply with new versioning scheme dnl @@ -362,7 +370,7 @@ dnl ================================================================= dnl AutoConf Initialization dnl ================================================================= -AC_REVISION($Revision: 1.66 $) +AC_REVISION($Revision: 1.68 $) AC_INIT(jcc.c) if test ! -f config.h.in; then @@ -406,10 +414,10 @@ dnl ================================================================= dnl Application version number dnl ================================================================= -VERSION_MAJOR=2 -VERSION_MINOR=9 -VERSION_POINT=15 -CODE_STATUS="beta" +VERSION_MAJOR=3 +VERSION_MINOR=1 +VERSION_POINT=1 +CODE_STATUS="alpha" dnl CODE_STATUS can be "alpha", "beta", or "stable", and will be dnl used for CGI output @@ -673,11 +681,17 @@ if test $have_pthread = yes; then if test "$GCC" = "yes"; then # Set a GCC specific switch: if test "$target_type" = "unix"; then - # This compiler switch makes Linux thread-safe - # Don't know about other OS's? Is this switch - # supported? - PTHREAD_LIB= - SPECIAL_CFLAGS="-pthread" + ac_jgf_save_CFLAGS=$CFLAGS + CFLAGS="$CFLAGS -pthread" + AC_TRY_LINK([#include ], + [void *p = pthread_create;], + [ + # This compiler switch makes GCC on Linux thread-safe + # However, it's not supported on most other OS. + PTHREAD_LIB= + SPECIAL_CFLAGS="-pthread" + ]) + CFLAGS=$ac_jgf_save_CFLAGS fi fi else