From 205dda8d6e2922661cd4c33c94cb42739b397920 Mon Sep 17 00:00:00 2001 From: "M. Sean Finney" Date: Sun, 1 May 2005 19:50:15 +0000 Subject: [PATCH] provide a --with-perl option git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1168 f882894a-f735-0410-b71e-b25c423dba1c --- configure.in | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/configure.in b/configure.in index 65c7b31..256fb29 100644 --- a/configure.in +++ b/configure.in @@ -101,8 +101,15 @@ AC_SUBST(REV_TIMESTAMP) 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 @@ AC_OUTPUT( po/Makefile.in ) +ACX_FEATURE([with],[perl]) ACX_FEATURE([with],[cgiurl]) ACX_FEATURE([with],[nagios-user]) ACX_FEATURE([with],[nagios-group]) -- 2.30.2