1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-07-26 16:45:12 -04:00

Remove __va_copy configure test

__va_copy is a macro and can be detected via #ifdef.
This commit is contained in:
Felix Janda 2017-11-23 19:15:35 -05:00
parent bfb4733f39
commit 9555619c50
2 changed files with 1 additions and 8 deletions

View File

@ -322,13 +322,6 @@ if test x"$HAVE_RAISE" = x; then
fi
fi
AC_CACHE_CHECK([for __va_copy],el_cv_HAVE_VA_COPY,[
AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <stdarg.h>
va_list ap1,ap2;]], [[__va_copy(ap1,ap2);]])],[el_cv_HAVE_VA_COPY=yes],[el_cv_HAVE_VA_COPY=no])])
if test x"$el_cv_HAVE_VA_COPY" = x"yes"; then
EL_DEFINE(HAVE_VA_COPY, __va_copy)
fi
AC_CACHE_CHECK([for sysconf(_SC_PAGE_SIZE)],el_cv_HAVE_SC_PAGE_SIZE,[
AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <unistd.h>
]], [[int page_size = sysconf(_SC_PAGE_SIZE);]])],[el_cv_HAVE_SC_PAGE_SIZE=yes],[el_cv_HAVE_SC_PAGE_SIZE=no])])

View File

@ -12,7 +12,7 @@
/* XXX: This is not quite the best place for it, perhaps. But do we have
* a better one now? --pasky */
#ifndef VA_COPY
#ifdef HAVE_VA_COPY
#ifdef __va_copy
#define VA_COPY(dest, src) __va_copy(dest, src)
#else
#define VA_COPY(dest, src) (dest) = (src)