+2004-08-08 Ken Raeburn <raeburn@mit.edu>
+
+ * 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 <raeburn@mit.edu>
* aclocal.m4 (KRB5_AC_INET6, KRB5_AC_CHECK_SOCKADDR_STORAGE,
# 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
*) 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