Don't nest AC_MSG_CHECKING calls, it produces confuing output.

This commit is contained in:
Mike Alexander 2014-05-05 16:27:08 -04:00
parent cc41107269
commit 7f746724fe

View File

@ -1317,7 +1317,6 @@ then
warnFLAGS="${warnFLAGS} -Wdeclaration-after-statement"
fi
elif test "`echo ${GCC_VERSION} | cut -d. -f1`" -ge 4; then
AC_MSG_CHECKING(OK To use fortify source?)
# This is gcc >= 4.x.x
warnFLAGS="${warnFLAGS} -Wdeclaration-after-statement -Wno-pointer-sign"
# rpmbuild on FC4 forces this flag. Only add it when optimizing
@ -1327,9 +1326,7 @@ then
#include <stdio.h>
]],
[[ printf( "%s\n", "Hello World!");]])],
[warnFLAGS="${warnFLAGS} -D_FORTIFY_SOURCE=2"
AC_MSG_RESULT(OK)],
[AC_MSG_RESULT(No)])
[warnFLAGS="${warnFLAGS} -D_FORTIFY_SOURCE=2"])
CFLAGS="$cflags_save"
fi
CFLAGS="${warnFLAGS} ${CFLAGS}"