* aclocal.m4 (KRB5_AC_ENABLE_THREADS): Use PTHREAD_CFLAGS and PTHREAD_LIBS when
authorKen Raeburn <raeburn@mit.edu>
Sun, 11 Jul 2004 06:05:24 +0000 (06:05 +0000)
committerKen Raeburn <raeburn@mit.edu>
Sun, 11 Jul 2004 06:05:24 +0000 (06:05 +0000)
checking for pthread_mutexattr_setrobust_np availability with thread support
enabled.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16577 dc483132-0cff-0310-8789-dd5450dbe970

src/ChangeLog
src/aclocal.m4

index 45b63c4e7d3590d798b6aa75c26ad63a653c1af4..282b79520e99efe7deefde10233310c5e22d3a3d 100644 (file)
@@ -1,3 +1,9 @@
+2004-07-11  Ken Raeburn  <raeburn@mit.edu>
+
+       * aclocal.m4 (KRB5_AC_ENABLE_THREADS): Use PTHREAD_CFLAGS and
+       PTHREAD_LIBS when checking for pthread_mutexattr_setrobust_np
+       availability with thread support enabled.
+
 2004-07-09  Ken Raeburn  <raeburn@mit.edu>
 
        * aclocal.m4 (KRB5_AC_ENABLE_THREADS): Don't test for pthread.h
index 22610ad0e68eac364b49e2fc875c076558960185..8fce1c9661e2b4e36de189794673223df58ad536 100644 (file)
@@ -162,16 +162,18 @@ AC_CHECK_FUNCS(pthread_once pthread_mutexattr_setrobust_np)
 old_CC="$CC"
 test "$PTHREAD_CC" != "" && test "$ac_cv_c_compiler_gnu" = no && CC=$PTHREAD_CC
 old_CFLAGS="$CFLAGS"
-#CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
+# On Solaris, -pthreads is added to CFLAGS, no extra explicit libraries.
+CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
 AC_SUBST(PTHREAD_CFLAGS)
 old_LIBS="$LIBS"
-#LIBS="$PTHREAD_LIBS $LIBS"
+LIBS="$PTHREAD_LIBS $LIBS"
 AC_MSG_NOTICE(rechecking with PTHREAD_... options)
 AC_CHECK_LIB(c, pthread_mutexattr_setrobust_np,
   [AC_DEFINE(HAVE_PTHREAD_MUTEXATTR_SETROBUST_NP_IN_THREAD_LIB,1,[Define if pthread_mutexattr_setrobust_np is provided in the thread library.])])
 ])
 LIBS="$old_LIBS"
 CC="$old_CC"
+CFLAGS="$old_CFLAGS"
 fi
 
 dnl This is somewhat gross and should go away when the build system