]> granicus.if.org Git - apache/commitdiff
Eliminate the .h.stub files; AC_DEFINE can generate the necessary
authorManoj Kasichainula <manoj@apache.org>
Mon, 20 Dec 1999 03:09:50 +0000 (03:09 +0000)
committerManoj Kasichainula <manoj@apache.org>
Mon, 20 Dec 1999 03:09:50 +0000 (03:09 +0000)
#defines in the config header for us.

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

acinclude.m4
configure.in
server/config.m4
server/mpm/config.m4

index c999048f223961e9e0a01695fff64a395eb03212..f45bc2ce1eba7e9455accdfea565e00d692a3989 100644 (file)
@@ -58,7 +58,8 @@ YES_IS_DEFINED
 #endif
   ], ac_cv_define_$1=yes, ac_cv_define_$1=no))
   if test "$ac_cv_define_$1" = "yes" ; then
-      AC_DEFINE(HAVE_$1)
+      AC_DEFINE(HAVE_$1,,
+          [Define if the macro "$1" is defined on this system])
   fi
 ])
 
@@ -75,7 +76,8 @@ AC_DEFUN(AC_TYPE_RLIM_T, [
     ])
   ])
   if test "$ac_ac_type_rlim_t" = "no" ; then
-      AC_DEFINE(rlim_t, int)
+      AC_DEFINE(rlim_t, int,
+          [Define to 'int' if <sys/resource.h> doesn't define it for us])
   fi
 ])
 
index b57260a8ced9ec6d8dfa1b9506a3b0d59885cb17..c392e2a0e78a4b49068124f334e9f2472c7cd79d 100644 (file)
@@ -100,7 +100,8 @@ if test "$ac_cv_func_select_arg1" != "int" \
         -o "$ac_cv_func_select_arg234" != "fd_set *" \
         -o "$ac_cv_func_select_arg5" != "struct timeval *" ; then
 
-    AC_DEFINE(SELECT_NEEDS_CAST)
+    AC_DEFINE(SELECT_NEEDS_CAST,,
+        [Define if arguments to select() aren't what we expect])
 fi
 
 AM_PROG_LIBTOOL
index c45474061b1f367f3b68426129433d9fa1da3c6a..6c146cff7fefeb878b162257dbf2d5112d449bf4 100644 (file)
@@ -1,5 +1,7 @@
 dnl ## Check for libraries
 
+AC_DEFUN(APACHE_DEFINE_HAVE_CRYPT, [
+])
 AC_CHECK_LIB(nsl, gethostname, [
  AC_ADD_LIBRARY(nsl) ], [])
 
@@ -11,10 +13,14 @@ AC_CHECK_LIB(nsl, gethostbyaddr, [
 
 AC_CHECK_LIB(crypt, crypt, [
  AC_ADD_LIBRARY(crypt) 
- AC_DEFINE(HAVE_CRYPT)], [])
-
-AC_CHECK_LIB(c, crypt, [
- AC_DEFINE(HAVE_CRYPT)], [])
+ apache_have_crypt=1
+], [
+ AC_CHECK_LIB(c, crypt, [
+  apache_have_crypt=1], [])
+])
+if test "$apache_have_crypt" = "1" ; then
+    AC_DEFINE(HAVE_CRYPT,,[Define if this platform has crypt()])
+fi
 
 dnl ## Check for header files
 
@@ -37,7 +43,8 @@ AC_CACHE_CHECK([for tm_gmtoff in struct tm], ac_cv_struct_tm_gmtoff,
   ac_cv_struct_tm_gmtoff=yes, ac_cv_struct_tm_gmtoff=no)])
 
 if test "$ac_cv_struct_tm_gmtoff" = "yes"; then
-    AC_DEFINE(HAVE_GMTOFF)
+    AC_DEFINE(HAVE_GMTOFF,,
+        [Define if struct tm has a tm_gmtoff member])
 fi
 
 dnl ## Check for library functions
index 10366965d6c97b122e68f2fb26bb1451d57dc5a7..3af2173aea8d4a4b779d1a035dc7327d6e401e60 100644 (file)
@@ -29,10 +29,12 @@ AC_DEFUN(APACHE_MPM_CHECK_SHMEM, [
     
     AC_MSG_CHECKING(which shared memory mechanism to use)
     if test "$ac_cv_func_shmget" = "yes" ; then
-        AC_DEFINE(USE_SHMGET_SCOREBOARD)
+        AC_DEFINE(USE_SHMGET_SCOREBOARD,,
+            [Define if MPMs should use shmget to implement their shared memory])
         AC_MSG_RESULT(shmget)
     elif test "$ac_cv_func_mmap" = "yes" ; then
-        AC_DEFINE(USE_MMAP_SCOREBOARD)
+        AC_DEFINE(USE_MMAP_SCOREBOARD,,
+            [Define if MPMs should use mmap to implement their shared memory])
         AC_MSG_RESULT(mmap)
     else
         AC_MSG_ERROR(No known shared memory system)
@@ -55,5 +57,6 @@ dnl platform. This will cover a couple of them, anyway
     ])
 
     dnl User threads libraries need pthread.h included everywhere
-    AC_DEFINE(PTHREAD_EVERYWHERE)
+    AC_DEFINE(PTHREAD_EVERYWHERE,,
+        [Define if all code should have #include <pthread.h>])
 ])