Import support for -kthread from devel.

This commit is contained in:
Kurt Zeilenga 1999-01-22 05:36:59 +00:00
parent 59c6327ae5
commit ae153bedcb
2 changed files with 383 additions and 322 deletions

685
configure vendored

File diff suppressed because it is too large Load diff

View file

@ -393,6 +393,26 @@ if test $ol_with_threads = auto -o $ol_with_threads = yes \
dnl Check for pthread support in current $LIBS
AC_CHECK_FUNC(pthread_create,[ol_link_threads=yes])
if test $ol_link_threads = no ; then
dnl try -kthread
AC_CACHE_CHECK([for pthread_create with -kthread],
[ol_cv_kthread_flag], [
dnl save the flags
save_LIBS="$LIBS"
LIBS="-kthread $LIBS"
AC_TRY_LINK([char pthread();],[
pthread_create();
], ol_cv_kthread_flag=yes, ol_cv_kthread_flag=no)
dnl restore the LIBS
LIBS="$save_LIBS"
])
if test $ol_cv_kthread_flag = yes ; then
LTHREAD_LIBS="$LTHREAD_LIBS -kthread"
ol_link_threads=posix
fi
fi
if test $ol_link_threads = no ; then
dnl try -pthread
AC_CACHE_CHECK([for pthread_create with -pthread],