summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorTodd C. Miller <Todd.Miller@courtesan.com>2014-02-16 11:00:41 -0700
committerTodd C. Miller <Todd.Miller@courtesan.com>2014-02-16 11:00:41 -0700
commitc18328a2ea8b21c76a124fcaf21d20701b4a1a09 (patch)
tree64549d0ff5e1f6b1c49eb5a2933f3c1518835e53 /configure.ac
parent6678d48f05a43749f24696b3b35c6935a0e636c3 (diff)
downloadsudo-c18328a2ea8b21c76a124fcaf21d20701b4a1a09.tar.gz
Use correct init.d dir on HP-UX.
Fix pp warnings from rc.d and init.d dirs.
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac9
1 files changed, 8 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index 6d21732cb..4cc650bd8 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1691,8 +1691,15 @@ case "$host" in
: ${mansectsu='1m'}
: ${mansectform='4'}
+ # HP-UX does not clear /var/run so we need to do it
+ INIT_SCRIPT=hpux.sh
+ INIT_DIR=/sbin/rc.d/init.d
+ RC_LINK=/sbin/rc2.d/S900sudo
+
# HP-UX shared libs must be executable
SHLIB_MODE=0755
+
+ AC_CHECK_FUNCS(pstat_getproc)
;;
*-*-hpux*)
# AFS support needs -lBSD
@@ -1704,7 +1711,7 @@ case "$host" in
# HP-UX does not clear /var/run so we need to do it
INIT_SCRIPT=hpux.sh
- INIT_DIR=/etc/rc.d/init.d
+ INIT_DIR=/sbin/rc.d/init.d
RC_LINK=/sbin/rc2.d/S900sudo
# HP-UX shared libs must be executable