From: Bruno Haible Date: Fri, 22 Jul 2005 20:46:24 +0000 (+0000) Subject: Fix for IRIX 6.5. X-Git-Tag: v0.15~477 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5de72f1115f8c76aed2f468734df5b0198960875;p=thirdparty%2Fgettext.git Fix for IRIX 6.5. --- diff --git a/gettext-runtime/m4/lock.m4 b/gettext-runtime/m4/lock.m4 index be6a7176d..d7b2365f3 100644 --- a/gettext-runtime/m4/lock.m4 +++ b/gettext-runtime/m4/lock.m4 @@ -62,8 +62,12 @@ AC_HELP_STRING([--disable-threads], [build without multithread safety]), ;; esac gl_have_pthread= + # Test whether both pthread_mutex_lock and pthread_mutexattr_init exist + # in libc. IRIX 6.5 has the first one in both libc and libpthread, but + # the second one only in libpthread, and lock.c needs it. AC_TRY_LINK([#include ], - [pthread_mutex_lock((pthread_mutex_t*)0);], + [pthread_mutex_lock((pthread_mutex_t*)0); + pthread_mutexattr_init((pthread_mutexattr_t*)0);], [gl_have_pthread=yes]) # Test for libpthread by looking for pthread_kill. (Not pthread_self, # since it is defined as a macro on OSF/1.)