From e9baf8567a6a991d46f3fe90ba33b4c40de46a71 Mon Sep 17 00:00:00 2001 From: Ken Raeburn Date: Mon, 2 Jul 2007 19:13:05 +0000 Subject: [PATCH] Test for va_copy should be a link test, not a compile test git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@19659 dc483132-0cff-0310-8789-dd5450dbe970 --- src/configure.in | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/configure.in b/src/configure.in index 68a03d7d5..9e41b62c3 100644 --- a/src/configure.in +++ b/src/configure.in @@ -15,12 +15,18 @@ dnl AC_REQUIRE_CPP dnl AC_CACHE_CHECK(if va_copy is available, krb5_cv_va_copy, -[AC_COMPILE_IFELSE([ +[AC_LINK_IFELSE([ #include void f(va_list ap) { va_list ap2; va_copy(ap2, ap); va_end(ap2); +} +va_list x; +int main() +{ + f(x); + return 0; }], krb5_cv_va_copy=yes, krb5_cv_va_copy=no)]) if test "$krb5_cv_va_copy" = yes; then AC_DEFINE(HAS_VA_COPY,1,[Define if va_copy macro or function is available.]) -- 2.26.2