1 dnl XIPH_ macros are GPL, from http://svn.xiph.org/icecast/trunk/m4
4 # Test for implementation of va_copy, or define appropriately if missing
5 AC_DEFUN([XIPH_FUNC_VA_COPY],
7 AC_MSG_CHECKING([for va_copy])
8 AC_TRY_LINK([#include <stdarg.h>], [va_list ap1, ap2; va_copy(ap1, ap2);],
9 AC_MSG_RESULT([va_copy]),
11 AH_TEMPLATE([va_copy], [define if va_copy is not available])
12 AC_TRY_LINK([#include <stdarg.h>], [va_list ap1, ap2; __va_copy(ap1, ap2);],
14 AC_DEFINE([va_copy], [__va_copy])
15 AC_MSG_RESULT([__va_copy])],
17 AC_DEFINE([va_copy(dest,src)], [memcpy(&dest,&src,sizeof(va_list))])
18 AC_MSG_RESULT([memcpy])
22 ])dnl XIPH_FUNC_VA_COPY