More pthread related changes.

This commit is contained in:
Kurt Zeilenga 1999-02-08 21:52:42 +00:00
parent 0e2fc7970c
commit f02b8965e3
2 changed files with 321 additions and 333 deletions

624
configure vendored

File diff suppressed because it is too large Load diff

View file

@ -424,8 +424,8 @@ if test $ol_with_threads = auto -o $ol_with_threads = yes \
dnl
dnl Check special pthread (final) flags
dnl pthread_create() with -kthread (FreeBSD)
dnl pthread_create() with -pthread (FreeBSD)
dnl pthread_create() with -pthreads (OSF/1)
dnl pthread_create() with -pthread (FreeBSD/Digital Unix)
dnl pthread_create() with -pthreads (?)
dnl pthread_create() with -thread (?)
dnl
dnl Check pthread (final) libraries
@ -457,9 +457,9 @@ if test $ol_with_threads = auto -o $ol_with_threads = yes \
dnl save the flags
save_LIBS="$LIBS"
LIBS="-kthread $LIBS"
AC_TRY_LINK([char pthread_create();],[
pthread_create();
], ol_cv_kthread_flag=yes, ol_cv_kthread_flag=no)
AC_TRY_LINK([#include <pthread.h>],
[pthread_create(NULL,NULL,NULL,NULL);],
[ol_cv_kthread_flag=yes], [ol_cv_kthread_flag=no])
dnl restore the LIBS
LIBS="$save_LIBS"
])
@ -477,9 +477,9 @@ if test $ol_with_threads = auto -o $ol_with_threads = yes \
dnl save the flags
save_LIBS="$LIBS"
LIBS="-pthread $LIBS"
AC_TRY_LINK([char pthread_create();],[
pthread_create();
], ol_cv_pthread_flag=yes, ol_cv_pthread_flag=no)
AC_TRY_LINK([#include <pthread.h>],
[pthread_create(NULL,NULL,NULL,NULL);],
[ol_cv_pthread_flag=yes], [ol_cv_pthread_flag=no])
dnl restore the LIBS
LIBS="$save_LIBS"
])
@ -497,11 +497,9 @@ if test $ol_with_threads = auto -o $ol_with_threads = yes \
dnl save the flags
save_LIBS="$LIBS"
LIBS="-pthreads $LIBS"
AC_TRY_LINK([
#include <pthread.h>
],[
pthread_create(NULL,NULL,NULL,NULL);
], ol_cv_pthreads_flag=yes, ol_cv_pthreads_flag=no)
AC_TRY_LINK([#include <pthread.h>],
[pthread_create(NULL,NULL,NULL,NULL);],
[ol_cv_pthreads_flag=yes], [ol_cv_pthreads_flag=no])
dnl restore the LIBS
LIBS="$save_LIBS"
])
@ -519,9 +517,9 @@ if test $ol_with_threads = auto -o $ol_with_threads = yes \
dnl save the flags
save_LIBS="$LIBS"
LIBS="-thread $LIBS"
AC_TRY_LINK([char pthread_create();],[
pthread_create();
], ol_cv_thread_flag=yes, ol_cv_thread_flag=no)
AC_TRY_LINK([char pthread_create();],
[pthread_create();],
[ol_cv_thread_flag=yes], [ol_cv_thread_flag=no])
dnl restore the LIBS
LIBS="$save_LIBS"
])