* aclocal.m4 (KRB5_AC_ENABLE_THREADS): On HP-UX, define some preprocessor
authorKen Raeburn <raeburn@mit.edu>
Wed, 6 Oct 2004 01:10:09 +0000 (01:10 +0000)
committerKen Raeburn <raeburn@mit.edu>
Wed, 6 Oct 2004 01:10:09 +0000 (01:10 +0000)
symbols that -pthread defines, but don't use -pthread so we can avoid forcing
linking against pthread libraries.

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

src/ChangeLog
src/aclocal.m4

index d333e864bc6557a725084f3c4386a1ea92e3bbd6..4b5653f7cf57237cb80db93ce90b9160a87089bd 100644 (file)
@@ -1,3 +1,9 @@
+2004-10-05  Ken Raeburn  <raeburn@mit.edu>
+
+       * aclocal.m4 (KRB5_AC_ENABLE_THREADS): On HP-UX, define some
+       preprocessor symbols that -pthread defines, but don't use -pthread
+       so we can avoid forcing linking against pthread libraries.
+
 2004-09-24  Tom Yu  <tlyu@mit.edu>
 
        * configure.in: Update to get RELTAIL from patchlevel.h as well.
index a9e775294f07ea7e24c5943378fb1ea3b23f014a..a060ac94f6040d5a4fc7656d636983c831569e18 100644 (file)
@@ -159,6 +159,12 @@ if test "$enable_thread_support" = yes; then
       PTHREAD_LIBS=
       PTHREAD_CFLAGS=
       ;;
+    hpux*)
+      # These are the flags that "gcc -pthread" adds.  But we don't
+      # want "-pthread" because that has link-time effects, and we
+      # don't exclude CFLAGS when linking.  *sigh*
+      CFLAGS="-D_REENTRANT -D_THREAD_SAFE -D_POSIX_C_SOURCE=199506L"
+      ;;
   esac
 fi
 dnl We want to know where these routines live, so on systems with weak