[Nagiosplug-checkins] CVS: nagiosplug configure.in,1.102,1.103

Karl DeBisschop kdebisschop at users.sourceforge.net
Tue Feb 24 23:57:01 CET 2004


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

Modified Files:
	configure.in 
Log Message:
pass timeout to ping if supported with -w parameter (linux)

Index: configure.in
===================================================================
RCS file: /cvsroot/nagiosplug/nagiosplug/configure.in,v
retrieving revision 1.102
retrieving revision 1.103
diff -C2 -r1.102 -r1.103
*** configure.in	18 Feb 2004 14:57:27 -0000	1.102
--- configure.in	25 Feb 2004 07:49:12 -0000	1.103
***************
*** 872,875 ****
--- 872,876 ----
  AC_MSG_CHECKING(for ICMP ping syntax)
  ac_cv_ping_packets_first=no
+ ac_cv_ping_has_timeout=no
  if test -n "$with_ping_command"
  then
***************
*** 888,891 ****
--- 889,900 ----
  	AC_MSG_RESULT([$with_ping_command])
  
+ elif $PATH_TO_PING -n -U -w 10 -c 1 127.0.0.1 2>/dev/null | \
+ 	egrep -i "^round-trip|^rtt" >/dev/null
+ then
+         with_ping_command="$PATH_TO_PING -n -U -w %d -c %d %s"
+ 	ac_cv_ping_packets_first=yes
+   ac_cv_ping_has_timeout=yes
+ 	AC_MSG_RESULT([$with_ping_command])
+ 
  elif $PATH_TO_PING -n -U -c 1 127.0.0.1 2>/dev/null | \
  	egrep -i "^round-trip|^rtt" >/dev/null
***************
*** 953,956 ****
--- 962,971 ----
  fi
  
+ if test "x$ac_cv_ping_has_timeout" != "xno"
+ then
+ 	AC_DEFINE(PING_HAS_TIMEOUT,1,
+ 		[Define if ping has its own timeout option that should be set])
+ fi
+ 
  AC_ARG_WITH(ping6_command,
  	ACX_HELP_STRING([--with-ping6-command=SYNTAX],





More information about the Commits mailing list