[Nagiosplug-checkins] nagiosplug configure.in,1.141,1.142

M. Sean Finney seanius at users.sourceforge.net
Sun May 1 12:51:12 CEST 2005


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

Modified Files:
	configure.in 
Log Message:
provide a --with-perl option

Index: configure.in
===================================================================
RCS file: /cvsroot/nagiosplug/nagiosplug/configure.in,v
retrieving revision 1.141
retrieving revision 1.142
diff -u -d -r1.141 -r1.142
--- configure.in	19 Apr 2005 00:09:18 -0000	1.141
+++ configure.in	1 May 2005 19:50:15 -0000	1.142
@@ -101,8 +101,15 @@
 
 dnl Checks for programs.
 AC_PATH_PROG(PYTHON,python)
-AC_PATH_PROG(PERL,perl)
 AC_PATH_PROG(SH,sh)
+AC_PATH_PROG(PERL,perl)
+
+dnl allow them to override the path of perl
+AC_ARG_WITH(perl,
+        ACX_HELP_STRING([--with-perl=PATH],
+	                [sets path to perl executable]),
+			with_perl=$withval,with_perl=$PERL)
+AC_SUBST(PERL, $with_perl)
 
 AC_PATH_PROG(HOSTNAME,hostname)
 AC_PATH_PROG(BASENAME,basename)
@@ -1515,6 +1522,7 @@
   po/Makefile.in 
 )
 
+ACX_FEATURE([with],[perl])
 ACX_FEATURE([with],[cgiurl])
 ACX_FEATURE([with],[nagios-user])
 ACX_FEATURE([with],[nagios-group])





More information about the Commits mailing list