# Checks for header files.
AC_HEADER_STDC
-AC_CHECK_HEADERS([string.h strings.h unistd.h fcntl.h sys/types.h sys/stat.h sys/mman.h])
+AC_CHECK_HEADERS([string.h strings.h unistd.h fcntl.h sys/types.h sys/stat.h sys/mman.h libgen.h])
# Checks for typedefs, structures, and compiler characteristics.
AC_C_CONST
int rtn;
char* device_id;
+ ap_log_rerror(APLOG_MARK, APLOG_DEBUG, 0, r, "start chxj_specified_device()");
conf = ap_get_module_config(r->per_dir_config, &chxj_module);
for (dtl = conf->devices; dtl; dtl = dtl->next)
{
if (dtl->pattern == NULL)
{
+ ap_log_rerror(APLOG_MARK, APLOG_DEBUG, 0, r, "pattern is null");
continue;
}
+
+ ap_log_rerror(APLOG_MARK, APLOG_DEBUG, 0, r, "pattern is [%s]", dtl->pattern);
regexp = ap_pregcomp(r->pool, (const char*)dtl->pattern, AP_REG_EXTENDED|AP_REG_ICASE);
if (regexp == NULL)
{
+ ap_log_rerror(APLOG_MARK, APLOG_DEBUG, 0, r, "compile failed.");
return returnType;
}
ap_pregfree(r->pool, regexp);
if (returnType != &UNKNOWN_DEVICE)
{
+ ap_log_rerror(APLOG_MARK, APLOG_DEBUG, 0, r, "end chxj_specified_device()");
return returnType;
}
}
+ ap_log_rerror(APLOG_MARK, APLOG_DEBUG, 0, r, "end chxj_specified_device()");
return returnType;
}