httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sas...@locus.apache.org
Subject cvs commit: apache-2.0/src/modules/mpm config.m4
Date Sun, 30 Apr 2000 02:31:07 GMT
sascha      00/04/29 19:31:07

  Modified:    src/modules/mpm config.m4
  Log:
  Work around the non-working pthread.h detection on OpenBSD.
  
  We can savely assume that pthread.h exists on every system which
  supports Pthreads.
  
  PR: #29
  
  Revision  Changes    Path
  1.14      +6 -13     apache-2.0/src/modules/mpm/config.m4
  
  Index: config.m4
  ===================================================================
  RCS file: /home/cvs/apache-2.0/src/modules/mpm/config.m4,v
  retrieving revision 1.13
  retrieving revision 1.14
  diff -u -u -r1.13 -r1.14
  --- config.m4	2000/04/29 23:57:54	1.13
  +++ config.m4	2000/04/30 02:31:07	1.14
  @@ -61,18 +61,11 @@
   
   dnl Check for pthreads and attempt to support it
   AC_DEFUN(APACHE_MPM_PTHREAD, [
  +  if test "$pthreads_working" != "yes"; then
  +    AC_MSG_ERROR(This MPM requires pthreads. Try --with-mpm=prefork.)
  +  fi
   
  -dnl XXX - We should be checking for the proper flags to use on a particular 
  -dnl platform. This will cover a couple of them, anyway
  -
  -    AC_CHECK_HEADER(pthread.h, [ ],[
  -        AC_MSG_ERROR(This MPM requires pthreads. Try --with-mpm=prefork.)
  -    ])
  -    AC_CHECK_FUNC(pthread_create, [ ],[
  -        AC_MSG_ERROR(Can't compile pthread code.)
  -    ])
  -
  -    dnl User threads libraries need pthread.h included everywhere
  -    AC_DEFINE(PTHREAD_EVERYWHERE,,
  -        [Define if all code should have #include <pthread.h>])
  +  dnl User threads libraries need pthread.h included everywhere
  +  AC_DEFINE(PTHREAD_EVERYWHERE,,
  +    [Define if all code should have #include <pthread.h>])
   ])
  
  
  

Mime
View raw message