to understand that he was right. :-) Basically, this makes the modules
use ap_config to test for header file inclusion. This method is not to
be used for larger modules that run autoconf theirselves. Including
ap_config is only valid for modules which rely on Apache to do their
configuration. Currently, this is only the core modules.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@84497
13f79535-47bb-0310-9956-
ffa450edef68
API_EXPORT(const char *) ap_get_server_version(void);
API_EXPORT(void) ap_add_version_component(const char *component);
#else
-#define ap_get_server_version() (SERVER_BASEVERSION)
+#define ap_get_server_version() (AP_SERVER_BASEVERSION)
#define ap_add_version_component(x) ((void)0)
#endif
API_EXPORT(const char *) ap_get_server_built(void);
*/
#include "apr_network_io.h"
+#include "ap_config.h"
#include "httpd.h"
#include "http_core.h"
#include "http_config.h"
#include "http_log.h"
#include "http_request.h"
+#ifdef HAVE_STRING_H
#include <string.h>
+#endif
enum allowdeny_type {
T_ENV,
* no control is passed along.
*/
+#include "ap_config.h"
#include "httpd.h"
#include "http_config.h"
#include "http_core.h"
#include "http_log.h"
#include "http_protocol.h"
+#ifdef HAVE_DB_H
#include <db.h>
+#endif
#if defined(DB_VERSION_MAJOR) && (DB_VERSION_MAJOR == 2)
#define DB2
#endif
#include "modules/perl/mod_perl.h"
#else
+#include "ap_config.h"
#include "httpd.h"
#include "http_config.h"
#include "http_request.h"
#include "http_main.h"
#include "util_script.h"
#include <string.h>
-#ifndef WIN32
+#ifdef HAVE_PWD_H
#include <pwd.h>
#endif
#endif
* Adapted to Apache by rst.
*/
+#include "ap_config.h"
#include "httpd.h"
#include "http_config.h"
#include "http_core.h"
#include "http_main.h"
#include "util_script.h"
#include "apr_fnmatch.h"
+#ifdef HAVE_STRING_H
#include <string.h>
+#endif
module MODULE_VAR_EXPORT autoindex_module;
* they fail.
*/
+#include "ap_config.h"
#include "httpd.h"
#include "http_config.h"
#include "http_request.h"
#include "http_log.h"
#include "util_script.h"
#include "http_conf_globals.h"
+#ifdef HAVE_SYS_STAT_H
#include <sys/stat.h>
+#endif
+#ifdef HAVE_STRING_H
#include <string.h>
+#endif
module MODULE_VAR_EXPORT cgi_module;
#define MIME_PRIVATE
+#include "ap_config.h"
#include "httpd.h"
#include "http_config.h"
#include "http_log.h"
#include "http_request.h"
-
+#ifdef HAVE_STRING_H
#include <string.h>
+#endif
typedef struct handlers_info {
char *name;
#define DEFAULT_LOG_FORMAT "%h %l %u %t \"%r\" %>s %b"
+#include "ap_config.h"
#include "httpd.h"
#include "http_config.h"
#include "http_core.h" /* For REMOTE_NAME */
#include "http_log.h"
#include "http_protocol.h"
+#ifdef HAVE_LIMITS_H
#include <limits.h>
+#endif
module MODULE_VAR_EXPORT config_log_module;
* Mark Cox, mark@ukweb.com, Allow relative URLs even when no base specified
*/
+#include "ap_config.h"
#include "httpd.h"
#include "http_config.h"
#include "http_request.h"
#include "http_main.h"
#include "http_log.h"
#include "util_script.h"
+#ifdef HAVE_STRING_H
#include <string.h>
+#endif
#define IMAP_MAGIC_TYPE "application/x-httpd-imap"
#define MAXVERTS 100
* rst
*/
+#include "ap_config.h"
#include "apr_file_io.h"
#include "httpd.h"
#include "http_config.h"
#include "http_core.h"
#include "http_log.h"
#include "util_script.h"
+#ifdef HAVE_STRING_H
#include <string.h>
+#endif
#define MAP_FILE_MAGIC_TYPE "application/x-type-map"
** www.engelschall.com
*/
-
+#include "ap_config.h"
#include "httpd.h"
#include "http_config.h"
#include "http_request.h"
#ifndef NO_WRITEV
#ifndef NETWARE
+#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
+#endif
+#ifdef HAVE_SYS_UIO_H
#include <sys/uio.h>
#endif
+#endif
/*
** +-------------------------------------------------------+
* disabled, except those explicitly turned on with the "enabled" keyword.
*/
+#include "ap_config.h"
#include "httpd.h"
#include "http_config.h"
#include "http_request.h"
-#ifndef WIN32
+#ifdef HAVE_PWD_H
#include <pwd.h>
#endif
* 29.Jun.96 All directives made per-directory.
*/
+#include "ap_config.h"
#include "httpd.h"
#include "http_config.h"
-#include <sys/types.h>
-#include <sys/stat.h>
#include "util_script.h"
#include "http_log.h"
#include "http_request.h"
+#ifdef HAVE_SYS_TYPES_H
+#include <sys/types.h>
+#endif
+#ifdef HAVE_SYS_STAT_H
+#include <sys/stat.h>
+#endif
#define DIR_CMD_PERMS OR_INDEXES
* *** older versions of the module. ***
*/
+#include "ap_config.h"
#include "httpd.h"
#include "http_config.h"
#include "http_request.h"
+#ifdef HAVE_STDLIB_H
#include <stdlib.h>
+#endif
typedef struct {
ap_table_t *vars;
* Hi, welcome to the internet.
*/
+#include "ap_config.h"
+#ifdef HAVE_CTYPE_H
#include <ctype.h>
+#endif
#include "httpd.h"
#include "http_config.h"
#include "http_log.h"
*
*/
+#include "ap_config.h"
#include "httpd.h"
#include "http_config.h"
#include "http_request.h"
#include "http_log.h"
#include "http_protocol.h"
#include "util_script.h"
-
+#ifdef HAVE_UTIME_H
#include <utime.h>
-
+#endif
/*
* data structures and related constants