summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--configure.in18
1 files changed, 16 insertions, 2 deletions
diff --git a/configure.in b/configure.in
index e7af9018..86a9cc62 100644
--- a/configure.in
+++ b/configure.in
@@ -612,6 +612,20 @@ else
612 AC_MSG_WARN("nslookup command not found") 612 AC_MSG_WARN("nslookup command not found")
613fi 613fi
614 614
615AC_PATH_PROG(PATH_TO_HOST,host)
616if test -n "$ac_cv_path_PATH_TO_HOST"
617then
618 AC_MSG_CHECKING("host syntax")
619 if [host 127.0.0.1 2>&1 | grep -v "ommand not found" > /dev/null]
620 then
621 AC_MSG_RESULT("$PATH_TO_HOST")
622 AC_DEFINE_UNQUOTED(HOST_COMMAND,"$PATH_TO_HOST")
623 fi
624 EXTRAS="$EXTRAS check_dns"
625else
626 AC_MSG_WARN("host command not found")
627fi
628
615AC_PATH_PROG(PATH_TO_UPTIME,uptime) 629AC_PATH_PROG(PATH_TO_UPTIME,uptime)
616AC_DEFINE_UNQUOTED(PATH_TO_UPTIME,"$PATH_TO_UPTIME") 630AC_DEFINE_UNQUOTED(PATH_TO_UPTIME,"$PATH_TO_UPTIME")
617 631
@@ -629,7 +643,7 @@ then
629 AC_DEFINE_UNQUOTED(PATH_TO_SNMPGET,"$PATH_TO_SNMPGET") 643 AC_DEFINE_UNQUOTED(PATH_TO_SNMPGET,"$PATH_TO_SNMPGET")
630 EXTRAS="$EXTRAS check_hpjd check_snmp" 644 EXTRAS="$EXTRAS check_hpjd check_snmp"
631else 645else
632 echo "** Get snmpget from http://ucd-snmp.ucdavis.edu to make check_hpjd and check_snmp plugins" 646 echo "** Get snmpget from http://net-snmp.sourceforge.net to make check_hpjd and check_snmp plugins"
633fi 647fi
634 648
635AC_PATH_PROG(PATH_TO_SNMPGETNEXT,snmpgetnext) 649AC_PATH_PROG(PATH_TO_SNMPGETNEXT,snmpgetnext)
@@ -658,7 +672,7 @@ then
658 AC_DEFINE_UNQUOTED(PATH_TO_FPING,"$PATH_TO_FPING") 672 AC_DEFINE_UNQUOTED(PATH_TO_FPING,"$PATH_TO_FPING")
659 EXTRAS="$EXTRAS check_fping" 673 EXTRAS="$EXTRAS check_fping"
660else 674else
661 echo "** Get fping from http://www.stanford.edu/~schemers/docs/fping/fping.html in order to make check_fping plugin" 675 echo "** Get fping from http://www.fping.com in order to make check_fping plugin"
662fi 676fi
663 677
664AC_PATH_PROG(PATH_TO_SSH,ssh) 678AC_PATH_PROG(PATH_TO_SSH,ssh)