configure.in
changeset 9424 a3344156e514
parent 9318 3ad27ca380f3
child 9547 208ccaf7b64c
     1.1 --- a/configure.in	Mon Mar 23 19:54:33 2015 -0400
     1.2 +++ b/configure.in	Mon Mar 23 20:07:24 2015 -0400
     1.3 @@ -2424,7 +2424,8 @@
     1.4              AC_MSG_CHECKING(for recursive mutexes)
     1.5              has_recursive_mutexes=no
     1.6              if test x$has_recursive_mutexes = xno; then
     1.7 -                AC_TRY_COMPILE([
     1.8 +                AC_TRY_LINK([
     1.9 +                  #define _GNU_SOURCE 1
    1.10                    #include <pthread.h>
    1.11                  ],[
    1.12                    pthread_mutexattr_t attr;
    1.13 @@ -2435,7 +2436,8 @@
    1.14                  ])
    1.15              fi
    1.16              if test x$has_recursive_mutexes = xno; then
    1.17 -                AC_TRY_COMPILE([
    1.18 +                AC_TRY_LINK([
    1.19 +                  #define _GNU_SOURCE 1
    1.20                    #include <pthread.h>
    1.21                  ],[
    1.22                    pthread_mutexattr_t attr;