mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-30 21:04:13 +02:00
Fix the pthread compiler flag detection.
2006-08-25 Matthias Clasen <mclasen@redhat.com> * configure.in: Fix the pthread compiler flag detection. * glib/gunicode.h: * glib/gutf8.c (_g_utf8_make_valid): Rename make_valid_utf8 from gconvert.c, move it to gutf8.c, and export it privately. * glib/gconvert.c (g_filename_display_name): Adjust callers. * glib/gkeyfile.c: Use _g_utf8_make_valid() in a number of places to ensure error messages are valid UTF-8. (#351853, Simon Budig)
This commit is contained in:
committed by
Matthias Clasen
parent
c2441aea68
commit
8f05c1da81
@@ -856,6 +856,12 @@ AC_MSG_RESULT(unsigned $glib_size_type)
|
||||
|
||||
# Check for some functions
|
||||
AC_CHECK_FUNCS(lstat strerror strsignal memmove vsnprintf stpcpy strcasecmp strncasecmp poll getcwd nanosleep vasprintf setenv unsetenv getc_unlocked readlink symlink)
|
||||
AC_CHECK_FUNCS(clock_gettime, [], [
|
||||
AC_CHECK_LIB(rt, clock_gettime, [
|
||||
AC_DEFINE(HAVE_CLOCK_GETTIME, 1)
|
||||
LIBS="$LIBS -lrt"
|
||||
])
|
||||
])
|
||||
|
||||
AC_CHECK_HEADERS(crt_externs.h)
|
||||
AC_CHECK_FUNCS(_NSGetEnviron)
|
||||
@@ -1539,6 +1545,7 @@ 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;}
|
||||
|
Reference in New Issue
Block a user