]> granicus.if.org Git - apache/commitdiff
Create a feature macro that determines if Autoconf was used to configure
authorRyan Bloom <rbb@apache.org>
Thu, 2 Nov 2000 18:51:08 +0000 (18:51 +0000)
committerRyan Bloom <rbb@apache.org>
Thu, 2 Nov 2000 18:51:08 +0000 (18:51 +0000)
the server.  The ap_ugly_hack variable is only valid if Autoconf was used
for the configuration.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@86802 13f79535-47bb-0310-9956-ffa450edef68

configure.in
include/http_main.h
server/main.c

index 716bdf4f761b6a59a5fe2233f985ddb654d2b3e4..3e662fbdb0a316a89028a531df4c2bdad76eb603 100644 (file)
@@ -184,6 +184,9 @@ fi
 APACHE_SUBST(AP_LIB_DIRS)
 APACHE_SUBST(AP_LIBS)
 
+AC_DEFINE(AP_USING_AUTOCONF, 1,
+               [Using autoconf to configure Apache])
+
 dnl check for endianness
 if test "$cross_compiling" = "no"; then
   AC_C_BIGENDIAN
@@ -256,4 +259,3 @@ AC_OUTPUT($APACHE_OUTPUT_FILES support/apxs support/apachectl,,[
   APACHE_GEN_MAKEFILES
 ])
 
-
index a70a91b9f7ec13dd8debb207577694eccafef990..16eaa2482e335b280ece064fc2b1dea40fe11a1f 100644 (file)
@@ -89,7 +89,7 @@ extern AP_DECLARE_DATA apr_array_header_t *ap_server_post_read_config;
  *  effect the server based on command line options */
 extern AP_DECLARE_DATA apr_array_header_t *ap_server_config_defines;
 
-#ifndef WIN32 /* A -feature- (?) macro is needed here */
+#ifdef AP_USING_AUTOCONF
 extern void *ap_ugly_hack;
 #endif
 
index 24324efcb561195135f4088d480f45735bc6d374..1bd55076a18c8d07919a5b1d8cbaf41f69d2aff1 100644 (file)
@@ -294,7 +294,7 @@ int main(int argc, char *argv[])
 
     apr_initialize();
 
-#ifndef WIN32 /* A -feature- (?) macro is needed here */
+#ifdef AP_USING_AUTOCONF
     /* This ugly little hack pulls any function referenced in exports.c into
      * the web server.  exports.c is generated by buildconf, and it
      * has all of the apr functions specified by httpd.exp.