mirror of
https://gitlab.freedesktop.org/dbus/dbus.git
synced 2026-01-01 10:30:12 +01:00
Bug 21657 - Fix configure checks for va_list in maintainer mode
Include the right headers.
This commit is contained in:
parent
5baf2f856a
commit
fe86222d10
1 changed files with 6 additions and 3 deletions
|
|
@ -513,7 +513,8 @@ dnl we currently check for all three va_copy possibilities, so we get
|
|||
dnl all results in config.log for bug reports.
|
||||
AC_CACHE_CHECK([for an implementation of va_copy()],dbus_cv_va_copy,[
|
||||
AC_LINK_IFELSE([#include <stdarg.h>
|
||||
void f (int i, ...) {
|
||||
#include <stdlib.h>
|
||||
static void f (int i, ...) {
|
||||
va_list args1, args2;
|
||||
va_start (args1, i);
|
||||
va_copy (args2, args1);
|
||||
|
|
@ -530,7 +531,8 @@ AC_CACHE_CHECK([for an implementation of va_copy()],dbus_cv_va_copy,[
|
|||
])
|
||||
AC_CACHE_CHECK([for an implementation of __va_copy()],dbus_cv___va_copy,[
|
||||
AC_LINK_IFELSE([#include <stdarg.h>
|
||||
void f (int i, ...) {
|
||||
#include <stdlib.h>
|
||||
static void f (int i, ...) {
|
||||
va_list args1, args2;
|
||||
va_start (args1, i);
|
||||
__va_copy (args2, args1);
|
||||
|
|
@ -563,9 +565,10 @@ AC_CACHE_CHECK([whether va_lists can be copied by value],
|
|||
[AC_RUN_IFELSE([AC_LANG_PROGRAM(
|
||||
[[
|
||||
#include <stdarg.h>
|
||||
#include <stdlib.h>
|
||||
]],
|
||||
[[
|
||||
void f (int i, ...) {
|
||||
static void f (int i, ...) {
|
||||
va_list args1, args2;
|
||||
va_start (args1, i);
|
||||
args2 = args1;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue