Branch: Tag:

2009-03-17

2009-03-17 19:07:44 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Moved {send,recv}msg() stuff from modules/files/configure.in to the main configure.in.

Rev: src/acconfig.h:1.161
Rev: src/configure.in:1.1076
Rev: src/modules/files/acconfig.h:1.31
Rev: src/modules/files/configure.in:1.114

1: - AC_REVISION("$Id: configure.in,v 1.1075 2009/03/13 16:02:33 mast Exp $") + AC_REVISION("$Id: configure.in,v 1.1076 2009/03/17 19:07:43 grubba Exp $")   AC_INIT(interpret.c)   AC_CONFIG_HEADER(machine.h)   
2414:    # MinGW system.    cat <<\EOF   #!/bin/sh - # Automatically generated by $Id: configure.in,v 1.1075 2009/03/13 16:02:33 mast Exp $. + # Automatically generated by $Id: configure.in,v 1.1076 2009/03/17 19:07:43 grubba Exp $.   # MinGW-version. Do NOT edit.   posix_name="`cat`"   posix_prefix="/"
2452:    # Native POSIX system.    cat <<\EOF   #!/bin/sh - # Automatically generated by $Id: configure.in,v 1.1075 2009/03/13 16:02:33 mast Exp $. + # Automatically generated by $Id: configure.in,v 1.1076 2009/03/17 19:07:43 grubba Exp $.   # POSIX-version. Do NOT edit.   cat   EOF
2461:    # rntcl-style    cat <<\EOF   #!/bin/sh - # Automatically generated by $Id: configure.in,v 1.1075 2009/03/13 16:02:33 mast Exp $. + # Automatically generated by $Id: configure.in,v 1.1076 2009/03/17 19:07:43 grubba Exp $.   # RNTCL-version. Do NOT edit.   sed -e "$PIKE_PATH_TRANSLATE"   EOF
3201:    sys/mman.h setjmp.h sys/user.h limits.h pthread.h \    crt/signal.h sys/id.h mach-o/dyld.h sys/ptrace.h \    thread.h dlfcn.h dld.h dl.h sys/times.h sched.h \ -  sys/procfs.h sys/ioct.h sys/socket.h \ +  sys/procfs.h sys/ioct.h sys/socket.h fcntl.h \    malloc.h netinet/in.h sys/wait.h windows.h grp.h pwd.h \    passwd.h group.h winsock.h signal.h sys/file.h poll.h \    sys/poll.h socket.h ieeefp.h fp_class.h floatingpoint.h \
4403:    mktime \    perror \    ptrace \ +  recvmsg \    rindex \ -  +  sendmsg \    setbuf \    setlocale \    setrlimit \
4995:   AC_MSG_RESULT($pike_cv_struct_tm_has___tm_gmtoff)      ############################################################################# + # iovec    -  + AC_MSG_CHECKING(if struct iovec is defined) + AC_CACHE_VAL(pike_cv_struct_iovec, [ +  AC_TRY_COMPILE([ + #ifdef HAVE_SYS_TYPES_H + #include <sys/types.h> + #endif /* HAVE_SYS_TYPES_H */ + #include <unistd.h> + #ifdef HAVE_SYS_UIO_H + #include <sys/uio.h> + #endif /* HAVE_SYS_UIO_H */ +  ],[ +  struct iovec iov; +  +  iov.iov_base = (void *)0; +  iov.iov_len = 0; +  ], [ pike_cv_struct_iovec=yes ], [ pike_cv_struct_iovec=no ]) + ]) + if test "$pike_cv_struct_iovec" = "yes"; then +  AC_MSG_RESULT(yes) +  AC_DEFINE(HAVE_STRUCT_IOVEC) + else +  AC_MSG_RESULT(no) + fi +  + ############################################################################# + # msghdr et al. +  + AC_MSG_CHECKING(if struct msghdr is defined) + AC_CACHE_VAL(pike_cv_struct_msghdr, [ +  AC_TRY_COMPILE([ + /* Needed for <sys/socket.h> on FreeBSD 4.9. */ + #ifdef HAVE_SYS_TYPES_H + #include <sys/types.h> + #endif + #ifdef HAVE_SYS_SOCKET_H + #include <sys/socket.h> + #endif +  ],[ +  struct msghdr msg; +  +  msg.msg_iov = (void *)0; +  msg.msg_iovlen = 0; +  ], [ pike_cv_struct_msghdr=yes ], [ pike_cv_struct_msghdr=no ]) + ]) + if test "$pike_cv_struct_msghdr" = "yes"; then +  AC_MSG_RESULT(yes) +  AC_DEFINE(HAVE_STRUCT_MSGHDR) +  +  AC_MSG_CHECKING(if struct msghdr has the member msg_control (XPG 4.2)) +  AC_CACHE_VAL(pike_cv_struct_msghdr_msg_control, [ +  AC_TRY_COMPILE([ + /* Needed for <sys/socket.h> on FreeBSD 4.9. */ + #ifdef HAVE_SYS_TYPES_H + #include <sys/types.h> + #endif + #ifdef HAVE_SYS_SOCKET_H + #include <sys/socket.h> + #endif +  ],[ +  struct msghdr msg; +  +  msg.msg_control = (void *)0; +  msg.msg_controllen = 0; +  ], [ pike_cv_struct_msghdr_msg_control=yes ], [ +  pike_cv_struct_msghdr_msg_control=no ]) +  ]) +  if test "$pike_cv_struct_msghdr_msg_control" = "yes"; then +  AC_MSG_RESULT(yes) +  AC_DEFINE(HAVE_STRUCT_MSGHDR_MSG_CONTROL) +  else +  AC_MSG_RESULT(no) +  fi +  +  AC_MSG_CHECKING(if struct msghdr has the member msg_accrights (old BSD)) +  AC_CACHE_VAL(pike_cv_struct_msghdr_msg_accrights, [ +  AC_TRY_COMPILE([ + /* Needed for <sys/socket.h> on FreeBSD 4.9. */ + #ifdef HAVE_SYS_TYPES_H + #include <sys/types.h> + #endif + #ifdef HAVE_SYS_SOCKET_H + #include <sys/socket.h> + #endif +  ],[ +  struct msghdr msg; +  +  msg.msg_accrights = (void *)0; +  msg.msg_accrightslen = 0; +  ], [ pike_cv_struct_msghdr_msg_accrights=yes ], [ +  pike_cv_struct_msghdr_msg_accrights=no ]) +  ]) +  if test "$pike_cv_struct_msghdr_msg_accrights" = "yes"; then +  AC_MSG_RESULT(yes) +  AC_DEFINE(HAVE_STRUCT_MSGHDR_MSG_ACCRIGHTS) +  else +  AC_MSG_RESULT(no) +  fi +  + else +  AC_MSG_RESULT(no) + fi +  + ############################################################################# +    AC_MSG_CHECKING(for USHRT_MAX definition)      AC_CACHE_VAL(pike_cv_ushrt_max_is_defined,[