aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--configure.in18
1 files changed, 17 insertions, 1 deletions
diff --git a/configure.in b/configure.in
index d621ad68..cbc2f3c4 100644
--- a/configure.in
+++ b/configure.in
@@ -601,7 +601,23 @@ AC_MSG_CHECKING(for ps syntax)
dnl Now using the pst3/kmem hack for solaris systems to avoid truncation
if test "$ac_cv_uname_s" = "SunOS"; then
- ac_cv_ps_command="pst3"
+ #
+ # this is a very, very ugly hack, to hardcode the location for plugins
+ #
+ if test "$libexecdir" = '${exec_prefix}/libexec'; then
+ if test "$exec_prefix" = "NONE"; then
+ if test "$prefix" = "NONE"; then
+ pst3="$ac_default_prefix/libexec/pst3"
+ else
+ pst3="$prefix/libexec/pst3"
+ fi
+ else
+ pst3="$exec_prefix/libexec/pst3"
+ fi
+ else
+ pst3="$libexecdir/pst3"
+ fi
+ ac_cv_ps_command="$pst3"
ac_cv_ps_format="%s %d %d %d %d %f %s %n"
ac_cv_ps_varlist="[procstat,&procuid,&procppid,&procvsz,&procrss,&procpcpu,procprog,&pos]"
ac_cv_ps_cols=8