-only enable developer logic if MHD is recent enough

This commit is contained in:
Christian Grothoff 2016-11-11 15:46:04 +01:00
parent 44ddaaca7f
commit cd4616dc34
No known key found for this signature in database
GPG Key ID: 939E6BE1E29FC3CC
2 changed files with 3 additions and 1 deletions

View File

@ -362,6 +362,8 @@ AC_MSG_RESULT($enable_developer)
AM_CONDITIONAL([HAVE_DEVELOPER], [test "x$enable_developer" = "xyes"]) AM_CONDITIONAL([HAVE_DEVELOPER], [test "x$enable_developer" = "xyes"])
enable_dev=1 enable_dev=1
AS_IF([test "x$enableval" = "xno"], [enable_dev=0]) AS_IF([test "x$enableval" = "xno"], [enable_dev=0])
# developer-logic requires a more recent MHD than usual.
AC_CHECK_DECL([MHD_OPTION_NOTIFY_CONNECTION],,[enable_dev=0],[[#include <microhttpd.h>]])
AC_DEFINE_UNQUOTED([HAVE_DEVELOPER],[$enable_dev],[1 if developer logic is enabled, 0 otherwise]) AC_DEFINE_UNQUOTED([HAVE_DEVELOPER],[$enable_dev],[1 if developer logic is enabled, 0 otherwise])

View File

@ -691,6 +691,7 @@ exchange_serve_process_config ()
/* Developer logic for supporting the `-f' option. */ /* Developer logic for supporting the `-f' option. */
#if HAVE_DEVELOPER #if HAVE_DEVELOPER
/** /**
* Option `-f' (specifies an input file to give to the HTTP server). * Option `-f' (specifies an input file to give to the HTTP server).
*/ */
@ -797,7 +798,6 @@ connection_done (void *cls,
/* end of HAVE_DEVELOPER */ /* end of HAVE_DEVELOPER */
#endif #endif
/** /**
* Function called for logging by MHD. * Function called for logging by MHD.
* *