diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 3 | ||||
| -rw-r--r-- | src/aclocal.m4 | 25 |
2 files changed, 14 insertions, 14 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 282b79520..44e51373b 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -2,7 +2,8 @@ * aclocal.m4 (KRB5_AC_ENABLE_THREADS): Use PTHREAD_CFLAGS and PTHREAD_LIBS when checking for pthread_mutexattr_setrobust_np - availability with thread support enabled. + availability with thread support enabled. Fix typo that caused + some code to be omitted. 2004-07-09 Ken Raeburn <raeburn@mit.edu> diff --git a/src/aclocal.m4 b/src/aclocal.m4 index 8fce1c966..a0691cf8d 100644 --- a/src/aclocal.m4 +++ b/src/aclocal.m4 @@ -142,17 +142,17 @@ 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])]) -AC_MSG_NOTICE(PTHREAD_CC = $PTHREAD_CC) -AC_MSG_NOTICE(PTHREAD_CFLAGS = $PTHREAD_CFLAGS) -AC_MSG_NOTICE(PTHREAD_LIBS = $PTHREAD_LIBS) -dnl Not really needed -- if pthread.h isn't found, ACX_PTHREAD will fail. -dnl AC_CHECK_HEADERS(pthread.h) -# AIX and Tru64 don't support weak references, and don't have -# stub versions of the pthread code in libc. -case "${host_os}" in - aix* | osf*) LIBS="$LIBS $PTHREAD_LIBS" ;; -esac + ACX_PTHREAD(,[AC_MSG_ERROR([cannot determine options for enabling thread support])]) + AC_MSG_NOTICE(PTHREAD_CC = $PTHREAD_CC) + AC_MSG_NOTICE(PTHREAD_CFLAGS = $PTHREAD_CFLAGS) + AC_MSG_NOTICE(PTHREAD_LIBS = $PTHREAD_LIBS) + dnl Not really needed -- if pthread.h isn't found, ACX_PTHREAD will fail. + dnl AC_CHECK_HEADERS(pthread.h) + # AIX and Tru64 don't support weak references, and don't have + # stub versions of the pthread code in libc. + case "${host_os}" in + aix* | osf*) LIBS="$LIBS $PTHREAD_LIBS" ;; + esac 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 @@ -170,11 +170,10 @@ 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 dnl is revamped. -- tlyu |
