From cvs-return-4742-apmail-apr-cvs-archive=apr.apache.org@apr.apache.org Tue Feb 11 15:05:22 2003 Return-Path: Delivered-To: apmail-apr-cvs-archive@apr.apache.org Received: (qmail 88192 invoked by uid 500); 11 Feb 2003 15:05:22 -0000 Mailing-List: contact cvs-help@apr.apache.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Reply-To: dev@apr.apache.org Delivered-To: mailing list cvs@apr.apache.org Received: (qmail 88154 invoked from network); 11 Feb 2003 15:05:21 -0000 Date: 11 Feb 2003 15:05:20 -0000 Message-ID: <20030211150520.672.qmail@icarus.apache.org> From: jorton@apache.org To: apr-cvs@apache.org Subject: cvs commit: apr configure.in X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N jorton 2003/02/11 07:05:19 Modified: . configure.in Log: Remove the run-time tests in the check for pthread_mutexattr_setrobust_np(), since the code is only compiled and never executed. Revision Changes Path 1.512 +2 -13 apr/configure.in Index: configure.in =================================================================== RCS file: /home/cvs/apr/configure.in,v retrieving revision 1.511 retrieving revision 1.512 diff -u -r1.511 -r1.512 --- configure.in 4 Feb 2003 20:56:15 -0000 1.511 +++ configure.in 11 Feb 2003 15:05:19 -0000 1.512 @@ -1473,20 +1473,9 @@ #include ],[ int main() { - pthread_mutex_t mutex; pthread_mutexattr_t attr; - if (pthread_mutexattr_init(&attr)) - exit(1); - if (pthread_mutexattr_setrobust_np(&attr, - PTHREAD_MUTEX_ROBUST_NP)) - exit(2); - if (pthread_mutex_init(&mutex, &attr)) - exit(3); - if (pthread_mutexattr_destroy(&attr)) - exit(4); - if (pthread_mutex_destroy(&mutex)) - exit(5); - exit(0); + pthread_mutexattr_setrobust_np(&attr, PTHREAD_MUTEX_ROBUST_NP); + return 0; }], [ac_cv_func_pthread_mutexattr_setrobust_np=yes], []) if test "$ac_cv_func_pthread_mutexattr_setrobust_np" = "yes"; then APR_ADDTO(CPPFLAGS, -D_POSIX_THREAD_PRIO_INHERIT)