Update AC_TRY_LINK checks (mainly effects pthread detection).

This commit is contained in:
Kurt Zeilenga 1999-02-08 19:38:00 +00:00
parent a3a576c3b9
commit 44a12f35ab
2 changed files with 329 additions and 333 deletions

642
configure vendored

File diff suppressed because it is too large Load diff

View file

@ -517,7 +517,7 @@ 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();],[
AC_TRY_LINK([char pthread_create();],[
pthread_create();
], ol_cv_kthread_flag=yes, ol_cv_kthread_flag=no)
dnl restore the LIBS
@ -537,7 +537,7 @@ 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();],[
AC_TRY_LINK([char pthread_create();],[
pthread_create();
], ol_cv_pthread_flag=yes, ol_cv_pthread_flag=no)
dnl restore the LIBS
@ -557,8 +557,10 @@ if test $ol_with_threads = auto -o $ol_with_threads = yes \
dnl save the flags
save_LIBS="$LIBS"
LIBS="-pthreads $LIBS"
AC_TRY_LINK([char pthread();],[
pthread_create();
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"
@ -577,7 +579,7 @@ 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();],[
AC_TRY_LINK([char pthread_create();],[
pthread_create();
], ol_cv_thread_flag=yes, ol_cv_thread_flag=no)
dnl restore the LIBS
@ -705,7 +707,7 @@ if test $ol_with_threads = auto -o $ol_with_threads = yes \
dnl save the flags
save_LIBS="$LIBS"
LIBS="-threads $LIBS"
AC_TRY_LINK([char pthread();],[
AC_TRY_LINK([char pthread_create();],[
pthread_create();
], ol_cv_thread_flag=yes, ol_cv_thread_flag=no)
dnl restore the LIBS
@ -1061,11 +1063,7 @@ if test $ol_link_threads != no ; then
dnl with the thread libraries
AC_CACHE_CHECK([for thread specific errno],
[ol_cv_errno_thread_specific], [
AC_TRY_LINK([
#include <errno.h>
], [
int x = errno;
],
AC_TRY_LINK([#include <errno.h>], [int x = errno;],
[ol_cv_errno_thread_specific=yes],
[ol_cv_errno_thread_specific=no])
])