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.