* aclocal.m4 (KRB5_AC_ENABLE_THREADS): If thread support is not enabled, zap
authorKen Raeburn <raeburn@mit.edu>
Fri, 4 Feb 2005 23:10:48 +0000 (23:10 +0000)
committerKen Raeburn <raeburn@mit.edu>
Fri, 4 Feb 2005 23:10:48 +0000 (23:10 +0000)
the PTHREAD_ variables.

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

src/ChangeLog
src/aclocal.m4

index e053ae05d74668eba21b873fe2c73276edbdc443..3240c2662ad57567d54ce9c359c31c8cded7a084 100644 (file)
@@ -1,3 +1,8 @@
+2005-02-04  Ken Raeburn  <raeburn@mit.edu>
+
+       * aclocal.m4 (KRB5_AC_ENABLE_THREADS): If thread support is not
+       enabled, zap the PTHREAD_ variables.
+
 2005-01-12  Tom Yu  <tlyu@mit.edu>
 
        * aclocal.m4 (AC_LIBRARY_NET): Also check for res_ndestroy.
index d135d5c10cab9cc04d4be21da7a6fcff4d1e5c2f..0e8f4bd562cc05f4d2e1842c81c7d7408856bc1d 100644 (file)
@@ -166,6 +166,10 @@ if test "$enable_thread_support" = yes; then
       CFLAGS="-D_REENTRANT -D_THREAD_SAFE -D_POSIX_C_SOURCE=199506L"
       ;;
   esac
+else
+  PTHREAD_CC="$CC"
+  PTHREAD_CFLAGS=""
+  PTHREAD_LIBS=""
 fi
 dnl We want to know where these routines live, so on systems with weak
 dnl reference support we can figure out whether or not the pthread library