|
22 | 22 | AC_PREREQ(2.57) |
23 | 23 | m4_define([libhttpserver_MAJOR_VERSION],[0])dnl |
24 | 24 | m4_define([libhttpserver_MINOR_VERSION],[10])dnl |
25 | | -m4_define([libhttpserver_REVISION],[0])dnl |
| 25 | +m4_define([libhttpserver_REVISION],[1])dnl |
26 | 26 | m4_define([libhttpserver_PKG_VERSION],[libhttpserver_MAJOR_VERSION.libhttpserver_MINOR_VERSION.libhttpserver_REVISION])dnl |
27 | 27 | m4_define([libhttpserver_LDF_VERSION],[libhttpserver_MAJOR_VERSION:libhttpserver_MINOR_VERSION:libhttpserver_REVISION])dnl |
28 | 28 | AC_INIT([libhttpserver], libhttpserver_PKG_VERSION, [[email protected]]) |
@@ -56,19 +56,21 @@ if test x"$samedirectory" = x"no"; then |
56 | 56 | fi |
57 | 57 | fi |
58 | 58 |
|
| 59 | +is_windows=yes; |
59 | 60 | case "$host" in |
60 | 61 | *-mingw*) |
61 | | - NETWORK_HEADER="winsock2.h" |
62 | | - REGEX_LIBS="-lregex -lpthread -no-undefined" |
| 62 | + NETWORK_HEADER="winsock2.h" |
| 63 | + REGEX_LIBS="-lregex -lpthread -no-undefined" |
63 | 64 | native_srcdir=$(cd $srcdir; pwd -W) |
64 | 65 | ;; |
65 | 66 | *-cygwin*) |
66 | | - NETWORK_HEADER="winsock2.h" |
67 | | - REGEX_LIBS="-lregex -lpthread -no-undefined" |
| 67 | + NETWORK_HEADER="winsock2.h" |
| 68 | + REGEX_LIBS="-lregex -lpthread -no-undefined" |
68 | 69 | ;; |
69 | 70 | *) |
70 | | - NETWORK_HEADER="arpa/inet.h" |
71 | | - REGEX_LIBS="" |
| 71 | + NETWORK_HEADER="arpa/inet.h" |
| 72 | + REGEX_LIBS="" |
| 73 | + is_windows=no |
72 | 74 | ;; |
73 | 75 | esac |
74 | 76 |
|
@@ -111,6 +113,14 @@ AC_CHECK_HEADER([microhttpd.h], |
111 | 113 | CXXFLAGS="-DHTTPSERVER_COMPILATION -D_REENTRANT $LIBMICROHTTPD_CFLAGS $CXXFLAGS" |
112 | 114 | LDFLAGS="$LIBMICROHTTPD_LIBS $REGEX_LIBS $LD_FLAGS" |
113 | 115 |
|
| 116 | +if test x"$is_windows" = x"no"; then |
| 117 | + if test `uname -r |cut -d. -f1` -ge 3; then |
| 118 | + if test `uname -r |cut -d. -f2` -ge 6; then |
| 119 | + CXXFLAGS="-DUSE_FASTOPEN $CXXFLAGS" |
| 120 | + fi |
| 121 | + fi |
| 122 | +fi |
| 123 | + |
114 | 124 | m4_pattern_allow([AC_TYPE_SIZE_T]) |
115 | 125 | m4_pattern_allow([AC_TYPE_UINT16_T]) |
116 | 126 | m4_pattern_allow([AC_TYPE_UINT32_T]) |
|
0 commit comments