diff options
author | Ton Voon <tonvoon@users.sourceforge.net> | 2006-03-21 14:20:13 (GMT) |
---|---|---|
committer | Ton Voon <tonvoon@users.sourceforge.net> | 2006-03-21 14:20:13 (GMT) |
commit | 60991b12cbfdb95c412293a22b54c5641e27f001 (patch) | |
tree | 2d06b970dc450e72f382b2d24d44d9770a57a342 /configure.in | |
parent | 4e157fb8cd6aa5dc93f316bb6d474c8a51f37bfe (diff) | |
download | monitoring-plugins-60991b12cbfdb95c412293a22b54c5641e27f001.tar.gz |
Stop check_dns from compiling if nslookup does not exist (Sakari Lehtonen -
1412721)
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1338 f882894a-f735-0410-b71e-b25c423dba1c
Diffstat (limited to 'configure.in')
-rw-r--r-- | configure.in | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/configure.in b/configure.in index 6ce6b0b..40a323c 100644 --- a/configure.in +++ b/configure.in | |||
@@ -1209,17 +1209,17 @@ fi | |||
1209 | fi | 1209 | fi |
1210 | 1210 | ||
1211 | 1211 | ||
1212 | AC_MSG_CHECKING(for nslookup syntax) | ||
1213 | AC_ARG_WITH(nslookup_command, | 1212 | AC_ARG_WITH(nslookup_command, |
1214 | ACX_HELP_STRING([--with-nslookup-command=PATH], | 1213 | ACX_HELP_STRING([--with-nslookup-command=PATH], |
1215 | [sets path to nslookup executable]), | 1214 | [sets path to nslookup executable]), |
1216 | ac_cv_nslookup_command=$withval) | 1215 | ac_cv_nslookup_command=$withval) |
1217 | if test -n "$ac_cv_nslookup_command"; then | 1216 | if test -n "$ac_cv_nslookup_command"; then |
1218 | AC_MSG_RESULT([(command line) $ac_cv_nslookup_command]) | 1217 | AC_MSG_NOTICE([Using specific nslookup at $ac_cv_nslookup_command]) |
1219 | else | 1218 | else |
1220 | AC_PATH_PROG(PATH_TO_NSLOOKUP,nslookup) | 1219 | AC_PATH_PROG(PATH_TO_NSLOOKUP,nslookup) |
1221 | if test -n "$PATH_TO_NSLOOKUP" | 1220 | if test -n "$PATH_TO_NSLOOKUP" |
1222 | then | 1221 | then |
1222 | AC_MSG_CHECKING(for nslookup syntax) | ||
1223 | if $PATH_TO_NSLOOKUP -sil 127.0.0.1 2>&1 | grep ["Invalid option: sil"] >/dev/null | 1223 | if $PATH_TO_NSLOOKUP -sil 127.0.0.1 2>&1 | grep ["Invalid option: sil"] >/dev/null |
1224 | then | 1224 | then |
1225 | ac_cv_nslookup_command="$PATH_TO_NSLOOKUP" | 1225 | ac_cv_nslookup_command="$PATH_TO_NSLOOKUP" |
@@ -1240,12 +1240,6 @@ if test -n "$ac_cv_nslookup_command"; then | |||
1240 | AC_DEFINE_UNQUOTED(NSLOOKUP_COMMAND,"$ac_cv_nslookup_command", [path and args for nslookup]) | 1240 | AC_DEFINE_UNQUOTED(NSLOOKUP_COMMAND,"$ac_cv_nslookup_command", [path and args for nslookup]) |
1241 | fi | 1241 | fi |
1242 | 1242 | ||
1243 | AC_PATH_PROG(PATH_TO_HOST,host) | ||
1244 | if test -n "$ac_cv_path_PATH_TO_HOST" | ||
1245 | then | ||
1246 | EXTRAS="$EXTRAS check_dns" | ||
1247 | fi | ||
1248 | |||
1249 | AC_PATH_PROG(PATH_TO_UPTIME,uptime) | 1243 | AC_PATH_PROG(PATH_TO_UPTIME,uptime) |
1250 | AC_ARG_WITH(uptime_command, | 1244 | AC_ARG_WITH(uptime_command, |
1251 | ACX_HELP_STRING([--with-uptime-command=PATH], | 1245 | ACX_HELP_STRING([--with-uptime-command=PATH], |