[Nagiosplug-checkins] nagiosplug configure.in,1.155,1.156

M. Sean Finney seanius at users.sourceforge.net
Sat Sep 24 13:02:46 CEST 2005


Update of /cvsroot/nagiosplug/nagiosplug
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv24566

Modified Files:
	configure.in 
Log Message:
a final change to hardcode the path for where plugins are installed.
it's a very, very ugly hack... if anyone can think of a better way
to do it, i'm all ears.


Index: configure.in
===================================================================
RCS file: /cvsroot/nagiosplug/nagiosplug/configure.in,v
retrieving revision 1.155
retrieving revision 1.156
diff -u -d -r1.155 -r1.156
--- configure.in	22 Sep 2005 12:10:19 -0000	1.155
+++ configure.in	24 Sep 2005 20:01:44 -0000	1.156
@@ -601,7 +601,23 @@
 
 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





More information about the Commits mailing list