diff options
author | Ken Raeburn <raeburn@mit.edu> | 2005-03-05 00:12:44 +0000 |
---|---|---|
committer | Ken Raeburn <raeburn@mit.edu> | 2005-03-05 00:12:44 +0000 |
commit | 01a98daf756011f4ab9cf7264833ae40b0a214e1 (patch) | |
tree | 41ff2fe0f9d776154fa1a85c92675801ba1f6324 /src | |
parent | eea918a7732c97fdbf2b37461f50e3c53ba4f27d (diff) | |
download | krb5-01a98daf756011f4ab9cf7264833ae40b0a214e1.tar.gz krb5-01a98daf756011f4ab9cf7264833ae40b0a214e1.tar.xz krb5-01a98daf756011f4ab9cf7264833ae40b0a214e1.zip |
I think the hpux change here should prevent it from overriding the
user-specified options, but still add in the necessary flags.
* aclocal.m4 (KRB5_AC_ENABLE_THREADS): Expand on error message if failing.
Substitute THREAD_SUPPORT -> 0 or 1 in makefiles. For HP-UX, set
PTHREAD_CFLAGS, not CFLAGS.
ticket: 2929
status: open
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17119 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src')
-rw-r--r-- | src/ChangeLog | 6 | ||||
-rw-r--r-- | src/aclocal.m4 | 7 |
2 files changed, 11 insertions, 2 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 0e684ca6d..6113b7b82 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,9 @@ +2005-03-04 Ken Raeburn <raeburn@mit.edu> + + * aclocal.m4 (KRB5_AC_ENABLE_THREADS): Expand on error message if + failing. Substitute THREAD_SUPPORT -> 0 or 1 in makefiles. For + HP-UX, set PTHREAD_CFLAGS, not CFLAGS. + 2005-02-04 Ken Raeburn <raeburn@mit.edu> * Makefile.in (config.status): Depend on shlib.conf. diff --git a/src/aclocal.m4 b/src/aclocal.m4 index 0e8f4bd56..afa8ed068 100644 --- a/src/aclocal.m4 +++ b/src/aclocal.m4 @@ -142,7 +142,7 @@ if test "$enable_thread_support" = yes ; then fi dnl Maybe this should be inside the conditional above? Doesn't cache.... if test "$enable_thread_support" = yes; then - ACX_PTHREAD(,[AC_MSG_ERROR([cannot determine options for enabling thread support])]) + ACX_PTHREAD(,[AC_MSG_ERROR([cannot determine options for enabling thread support; try --disable-thread-support])]) AC_MSG_NOTICE(PTHREAD_CC = $PTHREAD_CC) AC_MSG_NOTICE(PTHREAD_CFLAGS = $PTHREAD_CFLAGS) AC_MSG_NOTICE(PTHREAD_LIBS = $PTHREAD_LIBS) @@ -163,14 +163,17 @@ if test "$enable_thread_support" = yes; then # 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" + PTHREAD_CFLAGS="-D_REENTRANT -D_THREAD_SAFE -D_POSIX_C_SOURCE=199506L" ;; esac + THREAD_SUPPORT=1 else PTHREAD_CC="$CC" PTHREAD_CFLAGS="" PTHREAD_LIBS="" + THREAD_SUPPORT=0 fi +AC_SUBST(THREAD_SUPPORT) 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 dnl has been linked in. |