Branch: Tag:

2008-03-29

2008-03-29 11:50:56 by Martin Stjernholm <mast@lysator.liu.se>

Fixed configure stuff for va_copy.

Rev: src/acconfig.h:1.158
Rev: src/configure.in:1.1051
Rev: src/error.c:1.153

1: - AC_REVISION("$Id: configure.in,v 1.1050 2008/03/09 13:28:42 grubba Exp $") + AC_REVISION("$Id: configure.in,v 1.1051 2008/03/29 11:50:55 mast Exp $")   AC_INIT(interpret.c)   AC_CONFIG_HEADER(machine.h)   
2361:    # MinGW system.    cat <<\EOF   #!/bin/sh - # Automatically generated by $Id: configure.in,v 1.1050 2008/03/09 13:28:42 grubba Exp $. + # Automatically generated by $Id: configure.in,v 1.1051 2008/03/29 11:50:55 mast Exp $.   # MinGW-version. Do NOT edit.   posix_name="`cat`"   posix_prefix="/"
2399:    # Native POSIX system.    cat <<\EOF   #!/bin/sh - # Automatically generated by $Id: configure.in,v 1.1050 2008/03/09 13:28:42 grubba Exp $. + # Automatically generated by $Id: configure.in,v 1.1051 2008/03/29 11:50:55 mast Exp $.   # POSIX-version. Do NOT edit.   cat   EOF
2408:    # rntcl-style    cat <<\EOF   #!/bin/sh - # Automatically generated by $Id: configure.in,v 1.1050 2008/03/09 13:28:42 grubba Exp $. + # Automatically generated by $Id: configure.in,v 1.1051 2008/03/29 11:50:55 mast Exp $.   # RNTCL-version. Do NOT edit.   sed -e "$PIKE_PATH_TRANSLATE"   EOF
6630:    AC_MSG_RESULT(no)   fi    + # Can't use AC_CHECK_FUNC for this since it usually is a macro. + AC_MSG_CHECKING(for va_copy) + AC_CACHE_VAL(pike_cv_has_va_copy, [ +  AC_TRY_LINK([ + #include <stdarg.h> + #ifndef va_copy + void *f = (void *) va_copy; + #endif + ], [ + #ifdef va_copy + /* If there's a macro with this name we assume it takes the place of the function. */ + return 0; + #else + return f != va_copy; + #endif + ], pike_cv_has_va_copy=yes, pike_cv_has_va_copy=no) + ]) + if test "$pike_cv_has_va_copy" = yes; then +  AC_MSG_RESULT(yes) +  AC_DEFINE(HAVE_VA_COPY) + else +  AC_MSG_RESULT(no) + fi +    #############################################################################      AC_MSG_CHECKING(how to set things nonblocking)