From 5d3efae463822e925927de0b3dd50eba800c4cb0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Love=20H=C3=B6rnquist=20=C3=85strand?= Date: Wed, 1 Jun 2005 11:21:02 +0000 Subject: [PATCH] aix case: assume gcc handles -pthread, in the non-gcc case, use the compiler as hint (xlc vs xlc_r) if this environment handles threads or not git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15333 ec53bebd-3082-4978-b11e-865c3cabbd6b --- cf/pthreads.m4 | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/cf/pthreads.m4 b/cf/pthreads.m4 index d89adbdbc..00a13b216 100644 --- a/cf/pthreads.m4 +++ b/cf/pthreads.m4 @@ -40,7 +40,15 @@ case "$host" in esac ;; *-*-aix*) - enable_pthread_support=yes + if test "$GCC" = yes; then + enable_pthread_support=yes + else if expr "$CC" : ".*_r" > /dev/null ; then + enable_pthread_support=yes + PTHREADS_CFLAGS="" + PTHREADS_LIBS="" + else + enable_pthread_support=no + fi ;; mips-sgi-irix6.[[5-9]]) # maybe works for earlier versions too enable_pthread_support=yes