Commit 77332513 authored by Matthias Clasen's avatar Matthias Clasen

fix pthread compiler flag detection

parent 72520d46
2006-08-27 Matthias Clasen <mclasen@redhat.com>
* configure.in: Fix pthread compiler flag detection.
* glib/gtimer.c: Use Posix monotonic clocks instead of
gettimeofday when available. (#336114, William Jon McCann)
......
......@@ -1545,7 +1545,6 @@ dnl
dnl Test program for basic POSIX threads functionality
dnl
m4_define([glib_thread_test],[
#include <stdlib.h>
#include <pthread.h>
int check_me = 0;
void* func(void* data) {check_me = 42; return &check_me;}
......@@ -1554,7 +1553,7 @@ int main()
void *ret;
pthread_create (&t, $1, func, 0);
pthread_join (t, &ret);
exit (check_me != 42 || ret != &check_me);
return (check_me != 42 || ret != &check_me);
}])
dnl
......@@ -1594,6 +1593,7 @@ if test x"$have_threads" != xno; then
if test $glib_flag_works = yes ; then
G_THREAD_CFLAGS=-$flag
G_THREAD_LIBS=-$flag
break;
fi
done
;;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment