httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rj...@apache.org
Subject svn commit: r730718 - /httpd/httpd/trunk/modules/arch/unix/config5.m4
Date Fri, 02 Jan 2009 13:55:52 GMT
Author: rjung
Date: Fri Jan  2 05:55:52 2009
New Revision: 730718

URL: http://svn.apache.org/viewvc?rev=730718&view=rev
Log:
Add a header check for priv.h to mod_privileges.

Modified:
    httpd/httpd/trunk/modules/arch/unix/config5.m4

Modified: httpd/httpd/trunk/modules/arch/unix/config5.m4
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/modules/arch/unix/config5.m4?rev=730718&r1=730717&r2=730718&view=diff
==============================================================================
--- httpd/httpd/trunk/modules/arch/unix/config5.m4 (original)
+++ httpd/httpd/trunk/modules/arch/unix/config5.m4 Fri Jan  2 05:55:52 2009
@@ -10,7 +10,13 @@
 fi
 
 APACHE_MODULE(unixd, unix specific support, , , $unixd_mods_enable)
-APACHE_MODULE(privileges, Per-virtualhost Unix UserIDs and enhanced security for Solaris,
, , no)
+APACHE_MODULE(privileges, Per-virtualhost Unix UserIDs and enhanced security for Solaris,
, , no, [
+  AC_CHECK_HEADERS(priv.h, [], [ap_HAVE_PRIV_H="no"])
+  if test $ap_HAVE_PRIV_H = "no"; then
+    AC_MSG_WARN([Your system does not support privileges.])
+    enable_privileges="no"
+  fi
+])
 
 APACHE_MODPATH_FINISH
 



Mime
View raw message