From 9180ae86628584b0c001ce1769798c7ac3642f6f Mon Sep 17 00:00:00 2001 From: aet Date: Tue, 22 Jan 2002 17:41:46 +0000 Subject: [PATCH] Fix pthread.h checking for recent releases of Tru64 git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@189 c6295689-39f2-0310-b995-f0e70906c6a9 --- aclocal/acx_pthread.m4 | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/aclocal/acx_pthread.m4 b/aclocal/acx_pthread.m4 index 64450625..6729fcd7 100644 --- a/aclocal/acx_pthread.m4 +++ b/aclocal/acx_pthread.m4 @@ -42,7 +42,18 @@ acx_pthread_ok=no # First, check if the POSIX threads header, pthread.h, is available. # If it isn't, don't bother looking for the threads libraries. -AC_CHECK_HEADER(pthread.h, , acx_pthread_ok=noheader) + +# Latest Tru64's require that you always use -pthread, +# just assume pthread.h exists + +case "${host_cpu}-${host_os}" in + alpha*-osf*) acx_pthread_check_header=no; acx_pthread_ok=yes ;; + *) acx_pthread_check_header=yes ;; +esac + +if test "x$acx_pthread_check_header" = xyes; then + AC_CHECK_HEADER(pthread.h, , acx_pthread_ok=noheader) +fi # We must check for the threads library under a number of different # names; the ordering is very important because some systems