From 509b93b58fc2f216b90ecb1ce3336398d5d2a717 Mon Sep 17 00:00:00 2001 From: Toni Uhlig Date: Mon, 18 Jun 2018 18:39:52 +0200 Subject: autoconf: proper extra CFLAG check/handling e.g. -f* and inter-library-dependency checks, snprintf m4 should not fail if xcompiling Signed-off-by: Toni Uhlig --- m4/snprintf.m4 | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'm4') diff --git a/m4/snprintf.m4 b/m4/snprintf.m4 index e66b1c3..b1dda79 100644 --- a/m4/snprintf.m4 +++ b/m4/snprintf.m4 @@ -50,7 +50,7 @@ AC_DEFUN([HW_FUNC_VA_COPY], [[va_list ap, aq; va_copy(aq, ap);]])], [hw_cv_func_va_copy=yes], [hw_cv_func_va_copy=no], - [hw_cv_func_va_copy=no])]) + [hw_cv_func_va_copy=yes])]) AS_IF([test "$hw_cv_func_va_copy" = yes], [AC_DEFINE([HAVE_VA_COPY], [1], [Define to 1 if you have the `va_copy' function or macro.])]) @@ -76,7 +76,7 @@ AC_DEFUN([HW_FUNC___VA_COPY], [[va_list ap, aq; __va_copy(aq, ap);]])], [hw_cv_func___va_copy=yes], [hw_cv_func___va_copy=no], - [hw_cv_func___va_copy=no])]) + [hw_cv_func___va_copy=yes])]) AS_IF([test "$hw_cv_func___va_copy" = yes], [AC_DEFINE([HAVE___VA_COPY], [1], [Define to 1 if you have the `__va_copy' function or macro.])]) @@ -124,7 +124,7 @@ AC_DEFUN([HW_FUNC_VSNPRINTF], return 1;]])], [hw_cv_func_vsnprintf_c99=yes], [hw_cv_func_vsnprintf_c99=no], - [hw_cv_func_vsnprintf_c99=no])])], + [hw_cv_func_vsnprintf_c99=yes])])], [hw_cv_func_snprintf_c99=no]) AS_IF([test "$hw_cv_func_vsnprintf_c99" = yes], [AC_DEFINE([HAVE_VSNPRINTF], [1], @@ -179,7 +179,7 @@ AC_DEFUN([HW_FUNC_SNPRINTF], return 1;]])], [hw_cv_func_snprintf_c99=yes], [hw_cv_func_snprintf_c99=no], - [hw_cv_func_snprintf_c99=no])])], + [hw_cv_func_snprintf_c99=yes])])], [hw_cv_func_snprintf_c99=no]) else hw_cv_func_snprintf_c99=no -- cgit v1.2.3