configure
changeset 9424 a3344156e514
parent 9318 3ad27ca380f3
child 9547 208ccaf7b64c
equal deleted inserted replaced
9423:3df83030dab9 9424:a3344156e514
 21914             has_recursive_mutexes=no
 21914             has_recursive_mutexes=no
 21915             if test x$has_recursive_mutexes = xno; then
 21915             if test x$has_recursive_mutexes = xno; then
 21916                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 21916                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 21917 /* end confdefs.h.  */
 21917 /* end confdefs.h.  */
 21918 
 21918 
       
 21919                   #define _GNU_SOURCE 1
 21919                   #include <pthread.h>
 21920                   #include <pthread.h>
 21920 
 21921 
 21921 int
 21922 int
 21922 main ()
 21923 main ()
 21923 {
 21924 {
 21927 
 21928 
 21928   ;
 21929   ;
 21929   return 0;
 21930   return 0;
 21930 }
 21931 }
 21931 _ACEOF
 21932 _ACEOF
 21932 if ac_fn_c_try_compile "$LINENO"; then :
 21933 if ac_fn_c_try_link "$LINENO"; then :
 21933 
 21934 
 21934                 has_recursive_mutexes=yes
 21935                 has_recursive_mutexes=yes
 21935 
 21936 
 21936 $as_echo "#define SDL_THREAD_PTHREAD_RECURSIVE_MUTEX 1" >>confdefs.h
 21937 $as_echo "#define SDL_THREAD_PTHREAD_RECURSIVE_MUTEX 1" >>confdefs.h
 21937 
 21938 
 21938 
 21939 
 21939 fi
 21940 fi
 21940 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 21941 rm -f core conftest.err conftest.$ac_objext \
       
 21942     conftest$ac_exeext conftest.$ac_ext
 21941             fi
 21943             fi
 21942             if test x$has_recursive_mutexes = xno; then
 21944             if test x$has_recursive_mutexes = xno; then
 21943                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 21945                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 21944 /* end confdefs.h.  */
 21946 /* end confdefs.h.  */
 21945 
 21947 
       
 21948                   #define _GNU_SOURCE 1
 21946                   #include <pthread.h>
 21949                   #include <pthread.h>
 21947 
 21950 
 21948 int
 21951 int
 21949 main ()
 21952 main ()
 21950 {
 21953 {
 21954 
 21957 
 21955   ;
 21958   ;
 21956   return 0;
 21959   return 0;
 21957 }
 21960 }
 21958 _ACEOF
 21961 _ACEOF
 21959 if ac_fn_c_try_compile "$LINENO"; then :
 21962 if ac_fn_c_try_link "$LINENO"; then :
 21960 
 21963 
 21961                 has_recursive_mutexes=yes
 21964                 has_recursive_mutexes=yes
 21962 
 21965 
 21963 $as_echo "#define SDL_THREAD_PTHREAD_RECURSIVE_MUTEX_NP 1" >>confdefs.h
 21966 $as_echo "#define SDL_THREAD_PTHREAD_RECURSIVE_MUTEX_NP 1" >>confdefs.h
 21964 
 21967 
 21965 
 21968 
 21966 fi
 21969 fi
 21967 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 21970 rm -f core conftest.err conftest.$ac_objext \
       
 21971     conftest$ac_exeext conftest.$ac_ext
 21968             fi
 21972             fi
 21969             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_recursive_mutexes" >&5
 21973             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_recursive_mutexes" >&5
 21970 $as_echo "$has_recursive_mutexes" >&6; }
 21974 $as_echo "$has_recursive_mutexes" >&6; }
 21971 
 21975 
 21972             # Check to see if pthread semaphore support is missing
 21976             # Check to see if pthread semaphore support is missing