|
22 | 22 | AC_PREREQ(2.57) |
23 | 23 | m4_define([libhttpserver_MAJOR_VERSION],[0])dnl |
24 | 24 | m4_define([libhttpserver_MINOR_VERSION],[18])dnl |
25 | | -m4_define([libhttpserver_REVISION],[1])dnl |
| 25 | +m4_define([libhttpserver_REVISION],[2])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, [electrictwister2000@gmail.com]) |
@@ -97,17 +97,17 @@ AC_CHECK_HEADER([gnutls/gnutls.h],[have_gnutls="yes"],[AC_MSG_WARN("gnutls/gnutl |
97 | 97 | if test x"$host" = x"$build"; then |
98 | 98 | AC_CHECK_HEADER([microhttpd.h], |
99 | 99 | AC_CHECK_LIB([microhttpd], [MHD_get_fdset2], |
100 | | - [AC_MSG_CHECKING([for libmicrohttpd >= 0.9.52]) |
| 100 | + [AC_MSG_CHECKING([for libmicrohttpd >= 0.9.53]) |
101 | 101 | AC_COMPILE_IFELSE( |
102 | 102 | [AC_LANG_SOURCE([ |
103 | 103 | #include <microhttpd.h> |
104 | | - #if (MHD_VERSION < 0x00095102) |
105 | | - #error needs at least version 0.9.52 |
| 104 | + #if (MHD_VERSION < 0x00095300) |
| 105 | + #error needs at least version 0.9.53 |
106 | 106 | #endif |
107 | 107 | int main () { return 0; } |
108 | 108 | ])], |
109 | 109 | [], |
110 | | - [AC_MSG_ERROR("libmicrohttpd is too old - install libmicrohttpd >= 0.9.52")] |
| 110 | + [AC_MSG_ERROR("libmicrohttpd is too old - install libmicrohttpd >= 0.9.53")] |
111 | 111 | ) |
112 | 112 | ], |
113 | 113 | [AC_MSG_ERROR(["libmicrohttpd not found"])] |
@@ -157,83 +157,6 @@ if test x"$fastopen" = x"yes"; then |
157 | 157 | fi |
158 | 158 | fi |
159 | 159 |
|
160 | | -AC_ARG_ENABLE([[poll]], |
161 | | - [AS_HELP_STRING([[--enable-poll[=ARG]]], [enable poll support (yes, no, auto) [auto]])], |
162 | | - [enable_poll=${enableval}], |
163 | | - [enable_poll='auto'] |
164 | | - ) |
165 | | - |
166 | | -if test "$enable_poll" != "no"; then |
167 | | - if test "$os_is_native_w32" != "yes"; then |
168 | | - AC_CHECK_HEADERS([poll.h], |
169 | | - [ |
170 | | - AC_CHECK_FUNCS([poll], [have_poll='yes'], [have_poll='no']) |
171 | | - ], [], [AC_INCLUDES_DEFAULT]) |
172 | | - else |
173 | | - AC_MSG_CHECKING([for WSAPoll()]) |
174 | | - AC_LINK_IFELSE([ |
175 | | - AC_LANG_PROGRAM([[ |
176 | | -#include <winsock2.h> |
177 | | - ]], [[ |
178 | | -WSAPOLLFD fda[2]; |
179 | | -WSAPoll(fda, 2, 0);]])], |
180 | | - [ |
181 | | - have_poll='yes' |
182 | | - AC_DEFINE([HAVE_POLL],[1]) |
183 | | - ], [have_poll='no']) |
184 | | - AC_MSG_RESULT([$have_poll]) |
185 | | - fi |
186 | | - if test "$enable_poll" = "yes" && test "$have_poll" != "yes"; then |
187 | | - AC_MSG_ERROR([[Support for poll was explicitly requested but cannot be enabled on this platform.]]) |
188 | | - fi |
189 | | - enable_poll="$have_poll" |
190 | | -fi |
191 | | - |
192 | | -if test x"$enable_poll" = x"yes"; then |
193 | | - AM_CXXFLAGS="$AM_CXXFLAGS -DENABLE_POLL" |
194 | | - AM_CFLAGS="$AM_CXXFLAGS -DENABLE_POLL" |
195 | | -fi |
196 | | - |
197 | | -AC_ARG_ENABLE([[epoll]], |
198 | | - [AS_HELP_STRING([[--enable-epoll[=ARG]]], [enable epoll support (yes, no, auto) [auto]])], |
199 | | - [enable_epoll=${enableval}], |
200 | | - [enable_epoll='auto'] |
201 | | - ) |
202 | | - |
203 | | -if test "$enable_epoll" != "no"; then |
204 | | - AX_HAVE_EPOLL |
205 | | - if test "${ax_cv_have_epoll}" = "yes"; then |
206 | | - AC_DEFINE([[EPOLL_SUPPORT]],[[1]],[Define to 1 to enable epoll support]) |
207 | | - enable_epoll='yes' |
208 | | - else |
209 | | - if test "$enable_epoll" = "yes"; then |
210 | | - AC_MSG_ERROR([[Support for epoll was explicitly requested but cannot be enabled on this platform.]]) |
211 | | - fi |
212 | | - enable_epoll='no' |
213 | | - fi |
214 | | -fi |
215 | | - |
216 | | -AM_CONDITIONAL([MHD_HAVE_EPOLL], [[test "x$enable_epoll" = xyes]]) |
217 | | - |
218 | | -if test "x$enable_epoll" = "xyes"; then |
219 | | - AC_CACHE_CHECK([for epoll_create1()], [mhd_cv_have_epoll_create1], [ |
220 | | - AC_LINK_IFELSE([ |
221 | | - AC_LANG_PROGRAM([[ |
222 | | -#include <sys/epoll.h> |
223 | | - ]], [[ |
224 | | -int fd; |
225 | | -fd = epoll_create1(EPOLL_CLOEXEC);]])], |
226 | | - [mhd_cv_have_epoll_create1=yes], |
227 | | - [mhd_cv_have_epoll_create1=no])]) |
228 | | - AS_IF([test "x$mhd_cv_have_epoll_create1" = "xyes"],[ |
229 | | - AC_DEFINE([[HAVE_EPOLL_CREATE1]], [[1]], [Define if you have epoll_create1 function.])]) |
230 | | -fi |
231 | | - |
232 | | -if test x"$enable_epoll" = x"yes"; then |
233 | | - AM_CXXFLAGS="$AM_CXXFLAGS -DENABLE_EPOLL" |
234 | | - AM_CFLAGS="$AM_CXXFLAGS -DENABLE_EPOLL" |
235 | | -fi |
236 | | - |
237 | 160 | AC_MSG_CHECKING([whether to link statically]) |
238 | 161 | AC_ARG_ENABLE([static], |
239 | 162 | [AS_HELP_STRING([--enable-static], |
@@ -371,8 +294,6 @@ AC_MSG_NOTICE([Configuration Summary: |
371 | 294 | Debug : ${debugit} |
372 | 295 | TLS Enabled : ${have_gnutls} |
373 | 296 | TCP_FASTOPEN : ${is_fastopen_supported} |
374 | | - poll support : ${enable_poll=no} |
375 | | - epoll support : ${enable_epoll=no} |
376 | 297 | Static : ${static} |
377 | 298 | Build examples : ${enable_examples} |
378 | 299 | ]) |
0 commit comments