]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
Fix for IRIX 6.5.
authorBruno Haible <bruno@clisp.org>
Fri, 22 Jul 2005 20:46:24 +0000 (20:46 +0000)
committerBruno Haible <bruno@clisp.org>
Tue, 23 Jun 2009 10:12:40 +0000 (12:12 +0200)
gettext-runtime/m4/lock.m4

index be6a7176d6077440301978a20db174378b26a5ed..d7b2365f34bd7c11ed35b96180c7eaa6f1177013 100644 (file)
@@ -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.h>],
-          [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.)