diff options
author | Matthieu Herrb <matthieu@cvs.openbsd.org> | 2017-10-23 16:50:30 +0000 |
---|---|---|
committer | Matthieu Herrb <matthieu@cvs.openbsd.org> | 2017-10-23 16:50:30 +0000 |
commit | d50bf3f8e96b3556f4bd2f53359bd5a29a439575 (patch) | |
tree | 12835ed17bbe13fb4d0b1c534a25771df0433b72 /lib/pixman/configure | |
parent | fa0cc8380ada30004e6570e8ed2ddc62d9de3b5a (diff) |
Remove all references to libpthread-stubs from xenocara.
"looks sane" guenther@.
Diffstat (limited to 'lib/pixman/configure')
-rw-r--r-- | lib/pixman/configure | 75 |
1 files changed, 0 insertions, 75 deletions
diff --git a/lib/pixman/configure b/lib/pixman/configure index 78875bb76..44e3c8529 100644 --- a/lib/pixman/configure +++ b/lib/pixman/configure @@ -14169,81 +14169,6 @@ $as_echo_n "checking for pthreads... " >&6; } CFLAGS="" LDFLAGS="" LIBS="" - CFLAGS=""; LIBS="-L/usr/X11R6/lib -lpthread-stubs" - CFLAGS="$save_CFLAGS $CFLAGS" - LDFLAGS="$save_LDFLAGS $LDFLAGS" - LIBS="$save_LIBS $LIBS" - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -#include <stdlib.h> -#include <pthread.h> - -static pthread_once_t once_control = PTHREAD_ONCE_INIT; -static pthread_key_t key; - -static void -make_key (void) -{ - pthread_key_create (&key, NULL); -} - -int -main () -{ - void *value = NULL; - - if (pthread_once (&once_control, make_key) != 0) - { - value = NULL; - } - else - { - value = pthread_getspecific (key); - if (!value) - { - value = malloc (100); - pthread_setspecific (key, value); - } - } - return 0; -} - -_ACEOF -if ac_fn_c_try_link "$LINENO"; then : - pixman_cc_stderr=`test -f conftest.err && cat conftest.err` - pixman_cc_flag=yes -else - pixman_cc_stderr=`test -f conftest.err && cat conftest.err` - pixman_cc_flag=no -fi -rm -f core conftest.err conftest.$ac_objext \ - conftest$ac_exeext conftest.$ac_ext - - if test "x$pixman_cc_stderr" != "x"; then - pixman_cc_flag=no - fi - - if test "x$pixman_cc_flag" = "xyes"; then - PTHREAD_CFLAGS="$CFLAGS" - PTHREAD_LIBS="$LIBS" - PTHREAD_LDFLAGS="$LDFLAGS" - support_for_pthreads=yes - else - : - fi - CFLAGS="$save_CFLAGS" - LDFLAGS="$save_LDFLAGS" - LIBS="$save_LIBS" - - fi - - if test "z$support_for_pthreads" != "zyes"; then - save_CFLAGS="$CFLAGS" - save_LDFLAGS="$LDFLAGS" - save_LIBS="$LIBS" - CFLAGS="" - LDFLAGS="" - LIBS="" CFLAGS="-pthread"; LDFLAGS="-pthread" CFLAGS="$save_CFLAGS $CFLAGS" LDFLAGS="$save_LDFLAGS $LDFLAGS" |