GH-93207: Remove HAVE_STDARG_PROTOTYPES configure check for stdarg.h (#93215)

This commit is contained in:
Kumar Aditya 2022-05-27 17:00:45 +05:30 committed by GitHub
parent ddc4a782d3
commit cb04a09d2d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
19 changed files with 9 additions and 171 deletions

46
configure generated vendored
View file

@ -18416,52 +18416,6 @@ if test "x$ac_cv_function_prototypes" = xyes; then :
$as_echo "#define HAVE_PROTOTYPES 1" >>confdefs.h
fi
works=no
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for variable length prototypes and stdarg.h" >&5
$as_echo_n "checking for variable length prototypes and stdarg.h... " >&6; }
if ${ac_cv_stdarg_prototypes+:} false; then :
$as_echo_n "(cached) " >&6
else
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
#include <stdarg.h>
int foo(int x, ...) {
va_list va;
va_start(va, x);
va_arg(va, int);
va_arg(va, char *);
va_arg(va, double);
return 0;
}
int
main ()
{
return foo(10, "", 3.14);
;
return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
ac_cv_stdarg_prototypes=yes
else
ac_cv_stdarg_prototypes=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_stdarg_prototypes" >&5
$as_echo "$ac_cv_stdarg_prototypes" >&6; }
if test "x$ac_cv_stdarg_prototypes" = xyes; then :
$as_echo "#define HAVE_STDARG_PROTOTYPES 1" >>confdefs.h
fi