Skip to content
Snippets Groups Projects
Commit ed58f300 authored by Henrik (Grubba) Grubbström's avatar Henrik (Grubba) Grubbström
Browse files

ZXID: Added check for zxid_cgi.uri_path.

parent 661183e7
No related branches found
No related tags found
No related merge requests found
......@@ -16,4 +16,7 @@
/* Define this if your struct zxid_conf has the burl member. */
#undef HAVE_STRUCT_ZXID_CONF_BURL
/* Define this if your struct zxid_cgi has the uri_path member. */
#undef HAVE_STRUCT_ZXID_CGI_URI_PATH
#endif
......@@ -52,6 +52,28 @@ then
else
AC_MSG_RESULT(no)
fi
AC_MSG_CHECKING(if struct zxid_cgi has an uri_path member)
AC_CACHE_VAL(pike_cv_struct_zxid_cgi_uri_path, [
AC_TRY_COMPILE([
#include <zx/zx.h>
#include <zxid/zxid.h>
], [
struct zxid_cgi cgi;
cgi.uri_path = "URI_PATH";
], [
pike_cv_struct_zxid_cgi_uri_path="yes"
], [
pike_cv_struct_zxid_cgit_uri_path="no"
])
])
if test "x$pike_cv_struct_zxid_cgi_uri_path" = "xyes"; then
# ZXID 1.18:2013-11-17 or later.
AC_MSG_RESULT(yes)
AC_DEFINE(HAVE_STRUCT_ZXID_CGI_URI_PATH)
else
AC_MSG_RESULT(no)
fi
else
LIBS="$ORIG_LIBS"
fi
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment