diff options
author | Simon McVittie <simon.mcvittie@collabora.co.uk> | 2011-05-09 18:48:52 +0100 |
---|---|---|
committer | Simon McVittie <simon.mcvittie@collabora.co.uk> | 2011-05-25 16:57:13 +0100 |
commit | 5a665203001d30b3167089fb06af0f1c4a8e1885 (patch) | |
tree | 6b0cf8ecceefc5c5c0a75b8c469893458606c9c5 | |
parent | 80d08470121a9b96dcc0368e9c55df28269bfcc4 (diff) | |
download | dbus-5a665203001d30b3167089fb06af0f1c4a8e1885.tar.gz |
When checking for va_copy, use AC_LANG_SOURCE to shut up recent autoconf
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=19681
Reviewed-by: Colin Walters <walters@verbum.org>
-rw-r--r-- | configure.ac | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/configure.ac b/configure.ac index e097718d..6df79fd6 100644 --- a/configure.ac +++ b/configure.ac @@ -357,7 +357,7 @@ dnl ********************************** 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> + AC_LINK_IFELSE([AC_LANG_SOURCE([#include <stdarg.h> #include <stdlib.h> static void f (int i, ...) { va_list args1, args2; @@ -370,12 +370,12 @@ AC_CACHE_CHECK([for an implementation of va_copy()],dbus_cv_va_copy,[ int main() { f (0, 42); return 0; - }], + }])], [dbus_cv_va_copy=yes], [dbus_cv_va_copy=no]) ]) AC_CACHE_CHECK([for an implementation of __va_copy()],dbus_cv___va_copy,[ - AC_LINK_IFELSE([#include <stdarg.h> + AC_LINK_IFELSE([AC_LANG_SOURCE([#include <stdarg.h> #include <stdlib.h> static void f (int i, ...) { va_list args1, args2; @@ -388,7 +388,7 @@ AC_CACHE_CHECK([for an implementation of __va_copy()],dbus_cv___va_copy,[ int main() { f (0, 42); return 0; - }], + }])], [dbus_cv___va_copy=yes], [dbus_cv___va_copy=no]) ]) |