From: Ken Raeburn Date: Sun, 8 Aug 2004 22:53:20 +0000 (+0000) Subject: * aclocal.m4 (WITH_CC): Log messages when adding AIX compiler options X-Git-Tag: krb5-1.4-beta1~157 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=fd34a4f2b02b65b82589fe6df6b7194ee9cb33dd;p=krb5.git * aclocal.m4 (WITH_CC): Log messages when adding AIX compiler options git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16651 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/ChangeLog b/src/ChangeLog index 1271185cf..bbbfc4991 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -5,7 +5,8 @@ PTHREAD_CFLAGS and PTHREAD_LIBS to avoid duplicating the options later. (WITH_CC): If on AIX and not using gcc, add -qhalt=e and -O to - CFLAGS if similar options are not already present. + CFLAGS if similar options are not already present. Log messages + when doing so. 2004-07-16 Ken Raeburn diff --git a/src/aclocal.m4 b/src/aclocal.m4 index bfc465e65..97b0050d1 100644 --- a/src/aclocal.m4 +++ b/src/aclocal.m4 @@ -584,7 +584,10 @@ else # in function calls. Let's try to fix that with -qhalt=e. case "$CC $CFLAGS" in *-qhalt=*) ;; - *) CFLAGS="$CFLAGS -qhalt=e" ;; + *) + CFLAGS="$CFLAGS -qhalt=e" + AC_MSG_NOTICE(adding -qhalt=e for better error reporting) + ;; esac # Also, the optimizer isn't turned on by default, which means # the static inline functions get left in random object files, @@ -592,7 +595,10 @@ else # includes k5-int.h whether it uses threads or not. case "$CC $CFLAGS" in *-O*) ;; - *) CFLAGS="$CFLAGS -O" ;; + *) + CFLAGS="$CFLAGS -O" + AC_MSG_NOTICE(adding -O for inline thread-support function elimination) + ;; esac fi fi