]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
Add a header check for priv.h to mod_privileges.
authorRainer Jung <rjung@apache.org>
Fri, 2 Jan 2009 13:55:52 +0000 (13:55 +0000)
committerRainer Jung <rjung@apache.org>
Fri, 2 Jan 2009 13:55:52 +0000 (13:55 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@730718 13f79535-47bb-0310-9956-ffa450edef68

modules/arch/unix/config5.m4

index 645d08482cfaff236169f9a048c9e3515509b0f6..bef8eb53ff17a8176bd86665466f6520070334bf 100644 (file)
@@ -10,7 +10,13 @@ else
 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