Configure misdetects clang as a K&R (i.e. pre-ANSI) C compiler due to
insufficient quoting in the autoconf test. Brackets after 'argv' get
removed by m4 resulting in the main prototype being int main(int *,
char *). That causes just a warning with gcc, but an error with clang.
Change-Id: Ie0c34d55382c99762b6be0636d277fd957dac851
AC_CACHE_CHECK([whether build system compiler is ANSI],
gmp_cv_c_for_build_ansi,
[cat >conftest.c <<EOF
-int
+[int
main (int argc, char *argv[])
{
exit(0);
-}
+}]
EOF
gmp_compile="$CC_FOR_BUILD conftest.c"
if AC_TRY_EVAL(gmp_compile); then