Revision 72be9e73 configure

View differences:

configure
551 551
EOF
552 552
}
553 553

  
554
check_type(){
555
    log check_type "$@"
556
    headers=$1
557
    type=$2
558
    shift 2
559
    disable $type
560
    incs=""
561
    for hdr in $headers; do
562
        incs="$incs
563
#include <$hdr>"
564
    done
565
    check_cc "$@" <<EOF && enable $type
566
$incs
567
$type v;
568
EOF
569
}
570

  
554 571
require(){
555 572
    name="$1"
556 573
    header="$2"
......
720 737
    roundf
721 738
    sdl
722 739
    sdl_video_size
740
    socklen_t
723 741
    soundcard_h
724 742
    sys_poll_h
725 743
    sys_select_h
......
1684 1702

  
1685 1703
texi2html -version >/dev/null 2>&1 && enable texi2html || disable texi2html
1686 1704

  
1705
check_type sys/socket.h socklen_t
1706

  
1687 1707
##########################################
1688 1708
# Network check
1689 1709

  
......
1693 1713
        check_func closesocket
1694 1714
    elif check_header winsock2.h ; then
1695 1715
        network_extralibs="-lws2_32"
1716
        check_type ws2tcpip.h socklen_t
1696 1717
        check_func2 winsock2.h closesocket
1697 1718
    fi
1698 1719
fi

Also available in: Unified diff