Allow using things that were deprecated in gtk+-3.22.
[freeciv.git] / m4 / winsock2.m4
blob0151b9c91e224f8a5238c66f75648b115a5ec472
1 # Macros to help with winsock2 setup
3 # serial 1
5 # Prepend winsock2.h to default includes if possible.
6 # Set HAVE_WINSOCK2 if winsock2.h was found.
8 # FC_WINSOCK2_INCLUDE([ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]])
10 AC_DEFUN([FC_WINSOCK2_INCLUDE],
12   dnl We have to poke autoconf internals so we get correct include order for the tests
13   _backup_includes_default="${ac_include_headers}"
14   ac_includes_default="\
15 #include <winsock2.h>
16 ${ac_includes_default}"
17   AC_CHECK_HEADER([winsock2.h], [$1], [ac_includes_default="$_backup_includes_default"
18 $2])