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)
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;}
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
if test $glib_flag_works = yes ; then
G_THREAD_CFLAGS=-$flag
G_THREAD_LIBS=-$flag
+ break;
fi
done
;;