diff options
author | Ken Raeburn <raeburn@mit.edu> | 2004-08-08 21:09:38 +0000 |
---|---|---|
committer | Ken Raeburn <raeburn@mit.edu> | 2004-08-08 21:09:38 +0000 |
commit | aa3cf7af33d635a101be1e416325d026d0b7a32c (patch) | |
tree | ecf09294d1c73fbb6ea94254c0d05acdf7e1bc54 /src/aclocal.m4 | |
parent | 952ae42cdb5120d7b9410edc4f46f2e624176df4 (diff) | |
download | krb5-aa3cf7af33d635a101be1e416325d026d0b7a32c.tar.gz krb5-aa3cf7af33d635a101be1e416325d026d0b7a32c.tar.xz krb5-aa3cf7af33d635a101be1e416325d026d0b7a32c.zip |
* 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
Diffstat (limited to 'src/aclocal.m4')
-rw-r--r-- | src/aclocal.m4 | 10 |
1 files changed, 9 insertions, 1 deletions
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 |