1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-19 10:03:58 +03:00

Fix for non-__va_copy systems. I had used AC_TRY_COMPILE, but even though

__va_copy wasn't defined, it compiled as though it were a function, but
fails on a link.  Oops.
This commit is contained in:
Jim McDonough -
parent 2605e483b3
commit d3222ecd1a
2 changed files with 2 additions and 2 deletions

2
source/configure vendored
View File

@ -9753,7 +9753,7 @@ int main() {
__va_copy(ap1,ap2);
; return 0; }
EOF
if { (eval echo configure:9757: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
if { (eval echo configure:9757: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
samba_cv_HAVE_VA_COPY=yes
else

View File

@ -1174,7 +1174,7 @@ if test x"$samba_cv_HAVE_GETTIMEOFDAY_TZ" = x"yes"; then
fi
AC_CACHE_CHECK([for __va_copy],samba_cv_HAVE_VA_COPY,[
AC_TRY_COMPILE([#include <stdarg.h>
AC_TRY_LINK([#include <stdarg.h>
va_list ap1,ap2;], [__va_copy(ap1,ap2);],
samba_cv_HAVE_VA_COPY=yes,samba_cv_HAVE_VA_COPY=no)])
if test x"$samba_cv_HAVE_VA_COPY" = x"yes"; then