pike.git / src / configure.in

version» Context lines:

pike.git/src/configure.in:2883:   #define __USE_NETINET_IN_H   #endif   #ifndef __BUILTIN_VA_ARG_INCR   #define __BUILTIN_VA_ARG_INCR 1   #endif /* !__BUILTIN_VA_ARG_INCR */   #ifdef HAVE_WINDOWS_H   #include <windows.h>   #undef HAVE_WINDOWS_H   #endif   /* Necessary to find sys/socket.h on MacOS X 10.3 */ - #if HAVE_SYS_TYPES_H +    # include <sys/types.h> - #endif +    /* Necessary to find ws2tcpip.h on WIN32. */   #ifdef HAVE_WINSOCK2_H   # include <winsock2.h>   #endif   /* Necessary to find sys/user.h on OpenBSD */   #ifdef HAVE_SYS_PARAM_H   # include <sys/param.h>   #endif   ])   
pike.git/src/configure.in:2989:    if test "x$pike_cv_epoll_works" = "xyes"; then    AC_DEFINE(WITH_EPOLL)    fi    fi   fi      # some Linux systems have a broken resource.h that compiles anyway /Mirar   AC_MSG_CHECKING([for sys/resource.h])   AC_CACHE_VAL(pike_cv_sys_resource_h, [    AC_TRY_COMPILE([ - #ifdef HAVE_SYS_TYPES_H +    #include <sys/types.h> - #endif /* HAVE_SYS_TYPES_H */ +    #include <time.h>   #ifdef HAVE_SYS_TIME_H   #include <sys/time.h>   #endif /* HAVE_SYS_TIME_H */      #include <sys/resource.h>       ],[],    [pike_cv_sys_resource_h=yes], [pike_cv_sys_resource_h=no])   ])
pike.git/src/configure.in:3922:      if test "x$ac_cv_func_mmap_fixed_mapped" = "xyes"; then    # Mac OS X has an mmap that fails with ENODEV if we try    # to use it for mexec_alloc et al.    #    # NB: mmap with MAP_ANON does however work.    AC_MSG_CHECKING([if mmap can be used to allocate PROT_EXEC])    AC_CACHE_VAL(pike_cv_mmap_PROT_EXEC, [    AC_TRY_RUN([   #include <stdio.h> -  - #ifdef HAVE_SYS_TYPES_H +    #include <sys/types.h> - #endif +       #ifdef HAVE_SYS_MMAN_H   #include <sys/mman.h>   #endif      #ifdef HAVE_SYS_STAT_H   #include <sys/stat.h>   #endif      #ifdef HAVE_FCNTL_H
pike.git/src/configure.in:3978:    return 2;    }    return 0;    }    ], [    pike_cv_mmap_PROT_EXEC="yes"    ], [    pike_cv_mmap_PROT_EXEC="no"    ], [    AC_TRY_COMPILE([ - #ifdef HAVE_SYS_TYPES_H +    #include <sys/types.h> - #endif +       #ifdef HAVE_SYS_MMAN_H   #include <sys/mman.h>   #endif      #ifdef HAVE_SYS_STAT_H   #include <sys/stat.h>   #endif      #ifdef HAVE_FCNTL_H
pike.git/src/configure.in:4318:    exit(0);   ])   #############################################################################      # FreeBSD 3.0 has broken F_SETFD when running with threads.      AC_MSG_CHECKING(whether F_SETFD exists and works)      AC_CACHE_VAL(pike_cv_broken_f_setfd, [    AC_TRY_RUN([ - #ifdef HAVE_SYS_TYPES_H +    #include <sys/types.h> - #endif /* HAVE_SYS_TYPES_H */ +    #include <sys/stat.h>   #ifdef HAVE_FCNTL_H   #include <fcntl.h>   #endif /* HAVE_FCNTL_H */   #include <stdio.h>   #ifndef FD_CLOEXEC   #define FD_CLOEXEC 1   #endif /* FD_CLOEXEC */   int main(int argc, char **argv)   {
pike.git/src/configure.in:4386:      # No test for this yet...   AC_DEFINE(HAVE_STRUCT_TIMEVAL)      #############################################################################      AC_MSG_CHECKING(struct sockaddr_in6)      AC_CACHE_VAL(pike_cv_has_struct_sockaddr_in6,[   AC_TRY_LINK([ - #ifdef HAVE_SYS_TYPES_H +    #include <sys/types.h> - #endif /* HAVE_SYS_TYPES_H */ +    #ifdef HAVE_UNISTD_H   #include <unistd.h>   #endif /* HAVE_UNISTD_H */   #ifdef HAVE_SYS_SOCKET_H   #include <sys/socket.h>   #endif /* HAVE_SYS_SOCKET_H */   #ifdef HAVE_NETINET_IN_H   #include <netinet/in.h>   #endif /* HAVE_NETINET_IN_H */   #ifdef HAVE_WINSOCK2_H
pike.git/src/configure.in:4608:   fi      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 ])
pike.git/src/configure.in:4636:    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 ])
pike.git/src/configure.in:4682:    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 ])
pike.git/src/configure.in:4789:   fi      if test "x$ac_cv_func_ptrace" = "xyes"; then    AC_MSG_CHECKING(no of arguments to ptrace)    AC_CACHE_VAL(pike_cv_ptrace_takes_four_args,    [    AC_TRY_COMPILE([   #ifdef HAVE_UNISTD_H   #include <unistd.h>   #endif /* HAVE_UNISTD_H */ - #ifdef HAVE_SYS_TYPES_H +    #include <sys/types.h> - #endif /* HAVE_SYS_TYPES_H */ +    #ifdef HAVE_SYS_PTRACE_H   #include <sys/ptrace.h>   #endif /* HAVE_SYS_PTRACE_H */    ],[    ptrace(0,0,0,0);    ],pike_cv_ptrace_takes_four_args=yes,pike_cv_ptrace_takes_four_args=no)    ])    if test "$pike_cv_ptrace_takes_four_args" = yes; then    AC_MSG_RESULT(4)    AC_DEFINE(PTRACE_TAKES_FOUR_ARGS)    else    AC_MSG_RESULT(5)    fi    AC_MSG_CHECKING([type of argument 3 (addr) to ptrace])    AC_CACHE_VAL(pike_cv_ptrace_addr_type, [    AC_TRY_COMPILE([   #ifdef HAVE_UNISTD_H   #include <unistd.h>   #endif /* HAVE_UNISTD_H */ - #ifdef HAVE_SYS_TYPES_H +    #include <sys/types.h> - #endif /* HAVE_SYS_TYPES_H */ +    #ifdef HAVE_SYS_PTRACE_H   #include <sys/ptrace.h>   #endif /* HAVE_SYS_PTRACE_H */    ],[   #ifdef PTRACE_TAKES_FOUR_ARGS    ptrace(0,0,(void *)0,0);   #else    ptrace(0,0,(void *)0,0,0);   #endif    ],pike_cv_ptrace_addr_type=pointer,pike_cv_ptrace_addr_type=integer)
pike.git/src/configure.in:5149:   }   ],[pike_cv_have_rdtsc=yes],[pike_cv_have_rdtsc=no],[pike_cv_have_rdtsc="possibly not"])])   AC_MSG_RESULT($pike_cv_have_rdtsc)   if test "$pike_cv_have_rdtsc" = yes; then    AC_DEFINE(HAVE_RDTSC)   fi      ########################################################################   MY_CHECK_FUNCTION(fork,   [ - #ifdef HAVE_SYS_TYPES_H +    #include <sys/types.h> - #endif +    #ifdef HAVE_UNISTD_H   #include <unistd.h>   #endif   ], [    exit(fork()==-1);   ])      ########################################################################   MY_CHECK_FUNCTION(fpsetmask,   [