Commit 6e61ccb1 authored by Sebastian Wilhelmi's avatar Sebastian Wilhelmi Committed by Sebastian Wilhelmi

Fixed recognition of dce. Do not use -lc_r on OpenBSD and FreeBSD. Instead


2002-03-06  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>

	* configure.in: Fixed recognition of dce. Do not use -lc_r on
	OpenBSD and FreeBSD. Instead use -pthread. Move scheduling
	parameter check to after the case..esac block for finding the
	right thread libs.
parent 70bdb43b
2002-03-06 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
* configure.in: Fixed recognition of dce. Do not use -lc_r on
OpenBSD and FreeBSD. Instead use -pthread. Move scheduling
parameter check to after the case..esac block for finding the
right thread libs.
Tue Mar 5 19:41:02 2002 Owen Taylor <otaylor@redhat.com>
* GTK+-2.0.0 rc1
......
2002-03-06 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
* configure.in: Fixed recognition of dce. Do not use -lc_r on
OpenBSD and FreeBSD. Instead use -pthread. Move scheduling
parameter check to after the case..esac block for finding the
right thread libs.
Tue Mar 5 19:41:02 2002 Owen Taylor <otaylor@redhat.com>
* GTK+-2.0.0 rc1
......
2002-03-06 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
* configure.in: Fixed recognition of dce. Do not use -lc_r on
OpenBSD and FreeBSD. Instead use -pthread. Move scheduling
parameter check to after the case..esac block for finding the
right thread libs.
Tue Mar 5 19:41:02 2002 Owen Taylor <otaylor@redhat.com>
* GTK+-2.0.0 rc1
......
2002-03-06 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
* configure.in: Fixed recognition of dce. Do not use -lc_r on
OpenBSD and FreeBSD. Instead use -pthread. Move scheduling
parameter check to after the case..esac block for finding the
right thread libs.
Tue Mar 5 19:41:02 2002 Owen Taylor <otaylor@redhat.com>
* GTK+-2.0.0 rc1
......
2002-03-06 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
* configure.in: Fixed recognition of dce. Do not use -lc_r on
OpenBSD and FreeBSD. Instead use -pthread. Move scheduling
parameter check to after the case..esac block for finding the
right thread libs.
Tue Mar 5 19:41:02 2002 Owen Taylor <otaylor@redhat.com>
* GTK+-2.0.0 rc1
......
2002-03-06 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
* configure.in: Fixed recognition of dce. Do not use -lc_r on
OpenBSD and FreeBSD. Instead use -pthread. Move scheduling
parameter check to after the case..esac block for finding the
right thread libs.
Tue Mar 5 19:41:02 2002 Owen Taylor <otaylor@redhat.com>
* GTK+-2.0.0 rc1
......
2002-03-06 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
* configure.in: Fixed recognition of dce. Do not use -lc_r on
OpenBSD and FreeBSD. Instead use -pthread. Move scheduling
parameter check to after the case..esac block for finding the
right thread libs.
Tue Mar 5 19:41:02 2002 Owen Taylor <otaylor@redhat.com>
* GTK+-2.0.0 rc1
......
2002-03-06 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
* configure.in: Fixed recognition of dce. Do not use -lc_r on
OpenBSD and FreeBSD. Instead use -pthread. Move scheduling
parameter check to after the case..esac block for finding the
right thread libs.
Tue Mar 5 19:41:02 2002 Owen Taylor <otaylor@redhat.com>
* GTK+-2.0.0 rc1
......
......@@ -1088,7 +1088,7 @@ if test "x$want_threads" = xyes || test "x$want_threads" = xposix \
if test "x$have_threads" = xno; then
AC_TRY_COMPILE([#include <pthread.h>],
[pthread_attr_t attr; pthread_attr_create(&attr);],
have_threads=posix)
have_threads=dce)
fi
CPPFLAGS="$glib_save_CPPFLAGS"
fi
......@@ -1196,8 +1196,13 @@ case $have_threads in
G_THREAD_LIBS="-pthread"
fi
;;
*-*-openbsd* | *-*-freebsd*)
# FreeBSD and OpenBSD want us to use the -pthread flag
# instead of linking to -lc_r and libtool enforces that.
G_THREAD_LIBS="-pthread"
;;
*)
for thread_lib in "" pthread pthread32 pthreads c_r thread dce; do
for thread_lib in "" pthread pthread32 pthreads thread dce; do
if test x"$thread_lib" = x; then
add_thread_lib=""
IN=""
......@@ -1229,6 +1234,8 @@ case $have_threads in
break],
[AC_MSG_RESULT(no)])
done
;;
esac
if test "x$G_THREAD_LIBS" = xerror; then
AC_MSG_ERROR($LIBS_NOT_FOUND_1$have_threads$LIBS_NOT_FOUND_2)
fi
......@@ -1248,8 +1255,7 @@ case $have_threads in
int main() {
errno = 0;
return sched_get_priority_min(SCHED_OTHER)==-1
&& errno != 0;
}],
&& errno != 0;}],
[AC_MSG_RESULT(yes)
G_THREAD_LIBS="$G_THREAD_LIBS $add_thread_lib"
posix_priority_min="sched_get_priority_min(SCHED_OTHER)"
......@@ -1258,8 +1264,6 @@ case $have_threads in
[AC_MSG_RESULT(no)])
done
LIBS="$glib_save_LIBS"
;;
esac
mutex_has_default=yes
mutex_default_type='pthread_mutex_t'
mutex_default_init='PTHREAD_MUTEX_INITIALIZER'
......
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