722200 - configure script does not pick the correct am_cv_scanf version

Wrap SCANF_FOO_CHECK calls with CFLAGs including -Wall -Werror so
that the tests fail to compile and %lld fails as it does during the
build.
This commit is contained in:
John Ralls 2014-06-03 09:39:44 -07:00
parent c5de3a9c46
commit 8ac8c70cf1

View File

@ -170,6 +170,8 @@ AC_CHECK_FUNCS(setenv,,[
])
STRUCT_TM_GMTOFF_CHECK
cflags_save=${CFLAGS}
CFLAGS="${CFLAGS} -Wall -Werror"
SCANF_LLD_CHECK
if test x$am_cv_scanf_lld = "xno"; then
SCANF_QD_CHECK
@ -181,6 +183,7 @@ if test x$am_cv_scanf_lld = "xno"; then
fi
fi
fi
CFLAGS="${cflags_save}"
# test whether we are building directly from svn/svk/git/bzr
AC_MSG_CHECKING(if building from an scm managed directory)