From aa3cf7af33d635a101be1e416325d026d0b7a32c Mon Sep 17 00:00:00 2001 From: Ken Raeburn Date: Sun, 8 Aug 2004 21:09:38 +0000 Subject: [PATCH] * aclocal.m4 (KRB5_AC_ENABLE_THREADS): On AIX and OSF/1, always add $PTHREAD_CFLAGS to CFLAGS for use in later tests. (WITH_CC): If on AIX and not using gcc, add -qhalt=e to CFLAGS. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16646 dc483132-0cff-0310-8789-dd5450dbe970 --- src/ChangeLog | 6 ++++++ src/aclocal.m4 | 10 +++++++++- 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/src/ChangeLog b/src/ChangeLog index 0ed80f027..b843fdfb0 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,9 @@ +2004-08-08 Ken Raeburn + + * aclocal.m4 (KRB5_AC_ENABLE_THREADS): On AIX and OSF/1, always + add $PTHREAD_CFLAGS to CFLAGS for use in later tests. + (WITH_CC): If on AIX and not using gcc, add -qhalt=e to CFLAGS. + 2004-07-16 Ken Raeburn * aclocal.m4 (KRB5_AC_INET6, KRB5_AC_CHECK_SOCKADDR_STORAGE, diff --git a/src/aclocal.m4 b/src/aclocal.m4 index 82ce7f425..1d106ddea 100644 --- a/src/aclocal.m4 +++ b/src/aclocal.m4 @@ -151,7 +151,7 @@ if test "$enable_thread_support" = yes; then # 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" ;; + aix* | osf*) LIBS="$LIBS $PTHREAD_LIBS" ; CFLAGS="$CFLAGS $PTHREAD_CFLAGS" ;; esac fi dnl We want to know where these routines live, so on systems with weak @@ -569,6 +569,14 @@ if test "$GCC" = yes ; then *) LDFLAGS="${LDFLAGS} -Wl,-search_paths_first" ;; esac fi +else + if test "`uname -s`" = AIX ; then + # Using AIX but not GCC, assume native compiler. + # The native compiler appears not to give a nonzero exit + # status for certain classes of errors, like missing arguments + # in function calls. Let's try to fix that. + CFLAGS="$CFLAGS -qhalt=e" + fi fi ])dnl dnl -- 2.26.2