mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-13 15:56:23 +01:00
Add support for pthreads under FreeBSD 2.2.[7|8]
Add support for pthreads under FreeBSD 2.2.[7|8]
This commit is contained in:
parent
b9dd5bc19c
commit
883776f035
@ -1,3 +1,7 @@
|
|||||||
|
Sun Jan 17 01:06:38 1999 Timur Bakeyev <mc@bat.ru>
|
||||||
|
|
||||||
|
* configure.in: Add support for FreeBSD 2.2.x macro _THREAD_SAFE.
|
||||||
|
|
||||||
Wed Jan 13 11:27:24 PST 1999 Manish Singh <yosh@gimp.org>
|
Wed Jan 13 11:27:24 PST 1999 Manish Singh <yosh@gimp.org>
|
||||||
|
|
||||||
* glib.h: don't use inline for !__GNUC__ case with g_warning,
|
* glib.h: don't use inline for !__GNUC__ case with g_warning,
|
||||||
|
@ -1,3 +1,7 @@
|
|||||||
|
Sun Jan 17 01:06:38 1999 Timur Bakeyev <mc@bat.ru>
|
||||||
|
|
||||||
|
* configure.in: Add support for FreeBSD 2.2.x macro _THREAD_SAFE.
|
||||||
|
|
||||||
Wed Jan 13 11:27:24 PST 1999 Manish Singh <yosh@gimp.org>
|
Wed Jan 13 11:27:24 PST 1999 Manish Singh <yosh@gimp.org>
|
||||||
|
|
||||||
* glib.h: don't use inline for !__GNUC__ case with g_warning,
|
* glib.h: don't use inline for !__GNUC__ case with g_warning,
|
||||||
|
@ -1,3 +1,7 @@
|
|||||||
|
Sun Jan 17 01:06:38 1999 Timur Bakeyev <mc@bat.ru>
|
||||||
|
|
||||||
|
* configure.in: Add support for FreeBSD 2.2.x macro _THREAD_SAFE.
|
||||||
|
|
||||||
Wed Jan 13 11:27:24 PST 1999 Manish Singh <yosh@gimp.org>
|
Wed Jan 13 11:27:24 PST 1999 Manish Singh <yosh@gimp.org>
|
||||||
|
|
||||||
* glib.h: don't use inline for !__GNUC__ case with g_warning,
|
* glib.h: don't use inline for !__GNUC__ case with g_warning,
|
||||||
|
@ -1,3 +1,7 @@
|
|||||||
|
Sun Jan 17 01:06:38 1999 Timur Bakeyev <mc@bat.ru>
|
||||||
|
|
||||||
|
* configure.in: Add support for FreeBSD 2.2.x macro _THREAD_SAFE.
|
||||||
|
|
||||||
Wed Jan 13 11:27:24 PST 1999 Manish Singh <yosh@gimp.org>
|
Wed Jan 13 11:27:24 PST 1999 Manish Singh <yosh@gimp.org>
|
||||||
|
|
||||||
* glib.h: don't use inline for !__GNUC__ case with g_warning,
|
* glib.h: don't use inline for !__GNUC__ case with g_warning,
|
||||||
|
@ -1,3 +1,7 @@
|
|||||||
|
Sun Jan 17 01:06:38 1999 Timur Bakeyev <mc@bat.ru>
|
||||||
|
|
||||||
|
* configure.in: Add support for FreeBSD 2.2.x macro _THREAD_SAFE.
|
||||||
|
|
||||||
Wed Jan 13 11:27:24 PST 1999 Manish Singh <yosh@gimp.org>
|
Wed Jan 13 11:27:24 PST 1999 Manish Singh <yosh@gimp.org>
|
||||||
|
|
||||||
* glib.h: don't use inline for !__GNUC__ case with g_warning,
|
* glib.h: don't use inline for !__GNUC__ case with g_warning,
|
||||||
|
@ -1,3 +1,7 @@
|
|||||||
|
Sun Jan 17 01:06:38 1999 Timur Bakeyev <mc@bat.ru>
|
||||||
|
|
||||||
|
* configure.in: Add support for FreeBSD 2.2.x macro _THREAD_SAFE.
|
||||||
|
|
||||||
Wed Jan 13 11:27:24 PST 1999 Manish Singh <yosh@gimp.org>
|
Wed Jan 13 11:27:24 PST 1999 Manish Singh <yosh@gimp.org>
|
||||||
|
|
||||||
* glib.h: don't use inline for !__GNUC__ case with g_warning,
|
* glib.h: don't use inline for !__GNUC__ case with g_warning,
|
||||||
|
@ -1,3 +1,7 @@
|
|||||||
|
Sun Jan 17 01:06:38 1999 Timur Bakeyev <mc@bat.ru>
|
||||||
|
|
||||||
|
* configure.in: Add support for FreeBSD 2.2.x macro _THREAD_SAFE.
|
||||||
|
|
||||||
Wed Jan 13 11:27:24 PST 1999 Manish Singh <yosh@gimp.org>
|
Wed Jan 13 11:27:24 PST 1999 Manish Singh <yosh@gimp.org>
|
||||||
|
|
||||||
* glib.h: don't use inline for !__GNUC__ case with g_warning,
|
* glib.h: don't use inline for !__GNUC__ case with g_warning,
|
||||||
|
@ -1,3 +1,7 @@
|
|||||||
|
Sun Jan 17 01:06:38 1999 Timur Bakeyev <mc@bat.ru>
|
||||||
|
|
||||||
|
* configure.in: Add support for FreeBSD 2.2.x macro _THREAD_SAFE.
|
||||||
|
|
||||||
Wed Jan 13 11:27:24 PST 1999 Manish Singh <yosh@gimp.org>
|
Wed Jan 13 11:27:24 PST 1999 Manish Singh <yosh@gimp.org>
|
||||||
|
|
||||||
* glib.h: don't use inline for !__GNUC__ case with g_warning,
|
* glib.h: don't use inline for !__GNUC__ case with g_warning,
|
||||||
|
46
configure.in
46
configure.in
@ -673,31 +673,37 @@ dnl determination of G_THREAD_CFLAGS
|
|||||||
dnl ********************************
|
dnl ********************************
|
||||||
|
|
||||||
if test x"$have_threads" != xnone; then
|
if test x"$have_threads" != xnone; then
|
||||||
G_THREAD_CFLAGS="$G_THREAD_CFLAGS -D_REENTRANT" # good default
|
G_THREAD_CFLAGS="$G_THREAD_CFLAGS -D_REENTRANT" # good default guess
|
||||||
|
|
||||||
case $host in
|
case $host in
|
||||||
*-aix*)
|
*-aix*)
|
||||||
G_THREAD_CFLAGS="$G_THREAD_CFLAGS -D_THREAD_SAFE"
|
G_THREAD_CFLAGS="$G_THREAD_CFLAGS -D_THREAD_SAFE"
|
||||||
if test x"$GCC" = xyes; then
|
if test x"$GCC" = xyes; then
|
||||||
G_THREAD_CFLAGS="$G_THREAD_CFLAGS -mthreads"
|
G_THREAD_CFLAGS="$G_THREAD_CFLAGS -mthreads"
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
esac
|
*-freebsd2.2*)
|
||||||
|
G_THREAD_CFLAGS="$G_THREAD_CFLAGS -D_THREAD_SAFE"
|
||||||
|
|
||||||
# if we are not finding the ctime_r function, then we probably are
|
# FreeBSD 2.2.x shiped with gcc 2.7.2.x, which doesn't support
|
||||||
# not using the proper multithread flag
|
# -mthreads flag.
|
||||||
old_CPPFLAGS=$CPPFLAGS
|
;;
|
||||||
CPPFLAGS="$CPPFLAGS $G_THREAD_CFLAGS"
|
esac
|
||||||
AC_EGREP_HEADER([[^a-zA-Z_]ctime_r[^a-zA-Z_]], time.h, ,
|
|
||||||
G_THREAD_CFLAGS=
|
|
||||||
AC_MSG_WARN($FLAG_DOES_NOT_WORK))
|
|
||||||
CPPFLAGS=$old_CPPFLAGS
|
|
||||||
|
|
||||||
AC_MSG_CHECKING(necessary compiler options)
|
# if we are not finding the ctime_r function, then we probably are
|
||||||
|
# not using the proper multithread flag
|
||||||
|
old_CPPFLAGS=$CPPFLAGS
|
||||||
|
CPPFLAGS="$CPPFLAGS $G_THREAD_CFLAGS"
|
||||||
|
AC_EGREP_HEADER([[^a-zA-Z_]ctime_r[^a-zA-Z_]], time.h, ,
|
||||||
|
G_THREAD_CFLAGS=
|
||||||
|
AC_MSG_WARN($FLAG_DOES_NOT_WORK))
|
||||||
|
CPPFLAGS=$old_CPPFLAGS
|
||||||
|
|
||||||
AC_MSG_RESULT($G_THREAD_CFLAGS)
|
AC_MSG_CHECKING(necessary compiler options)
|
||||||
|
|
||||||
|
AC_MSG_RESULT($G_THREAD_CFLAGS)
|
||||||
else
|
else
|
||||||
G_THREAD_CFLAGS=
|
G_THREAD_CFLAGS=
|
||||||
fi
|
fi
|
||||||
|
|
||||||
AC_DEFINE_UNQUOTED(G_THREAD_SOURCE,"gthread-$have_threads.c")
|
AC_DEFINE_UNQUOTED(G_THREAD_SOURCE,"gthread-$have_threads.c")
|
||||||
|
Loading…
Reference in New Issue
Block a user