New upstream version 2.2
This commit is contained in:
parent
ea115afa68
commit
c845af032a
101 changed files with 4649 additions and 22969 deletions
578
configure
vendored
578
configure
vendored
|
@ -1,6 +1,6 @@
|
|||
#! /bin/sh
|
||||
# Guess values for system-dependent variables and create Makefiles.
|
||||
# Generated by GNU Autoconf 2.69 for monitoring-plugins 2.1.2.
|
||||
# Generated by GNU Autoconf 2.69 for monitoring-plugins 2.2.
|
||||
#
|
||||
#
|
||||
# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
|
||||
|
@ -587,8 +587,8 @@ MAKEFLAGS=
|
|||
# Identity of this package.
|
||||
PACKAGE_NAME='monitoring-plugins'
|
||||
PACKAGE_TARNAME='monitoring-plugins'
|
||||
PACKAGE_VERSION='2.1.2'
|
||||
PACKAGE_STRING='monitoring-plugins 2.1.2'
|
||||
PACKAGE_VERSION='2.2'
|
||||
PACKAGE_STRING='monitoring-plugins 2.2'
|
||||
PACKAGE_BUGREPORT=''
|
||||
PACKAGE_URL=''
|
||||
|
||||
|
@ -1618,6 +1618,7 @@ PATH_TO_SWAPINFO
|
|||
PATH_TO_SWAP
|
||||
PATH_TO_QMAIL_QSTAT
|
||||
PATH_TO_MAILQ
|
||||
PATH_TO_SUDO
|
||||
PATH_TO_SSH
|
||||
PATH_TO_FPING6
|
||||
PATH_TO_FPING
|
||||
|
@ -1633,6 +1634,7 @@ PATH_TO_NSLOOKUP
|
|||
PATH_TO_PING6
|
||||
PATH_TO_PING
|
||||
PST3CFLAGS
|
||||
PATH_TO_ENV
|
||||
PATH_TO_PS
|
||||
SSLLIBS
|
||||
check_tcp_ssl
|
||||
|
@ -1837,6 +1839,7 @@ with_qstat_command
|
|||
with_fping_command
|
||||
with_fping6_command
|
||||
with_ssh_command
|
||||
with_sudo_command
|
||||
with_mailq_command
|
||||
with_qmail_qstat_command
|
||||
with_proc_meminfo
|
||||
|
@ -2400,7 +2403,7 @@ if test "$ac_init_help" = "long"; then
|
|||
# Omit some internal or obsolete options to make the list less imposing.
|
||||
# This message is too long to be a string in the A/UX 3.1 sh.
|
||||
cat <<_ACEOF
|
||||
\`configure' configures monitoring-plugins 2.1.2 to adapt to many kinds of systems.
|
||||
\`configure' configures monitoring-plugins 2.2 to adapt to many kinds of systems.
|
||||
|
||||
Usage: $0 [OPTION]... [VAR=VALUE]...
|
||||
|
||||
|
@ -2471,7 +2474,7 @@ fi
|
|||
|
||||
if test -n "$ac_init_help"; then
|
||||
case $ac_init_help in
|
||||
short | recursive ) echo "Configuration of monitoring-plugins 2.1.2:";;
|
||||
short | recursive ) echo "Configuration of monitoring-plugins 2.2:";;
|
||||
esac
|
||||
cat <<\_ACEOF
|
||||
|
||||
|
@ -2544,6 +2547,7 @@ Optional Packages:
|
|||
--with-fping-command=PATH Path to fping command
|
||||
--with-fping6-command=PATH Path to fping6 command
|
||||
--with-ssh-command=PATH sets path for ssh
|
||||
--with-sudo-command=PATH sets path to sudo
|
||||
--with-mailq-command=PATH sets path to mailq
|
||||
--with-qmail-qstat-command=PATH sets path to qmail-qstat
|
||||
--with-proc-meminfo=PATH path to /proc/meminfo or equivalent
|
||||
|
@ -2637,7 +2641,7 @@ fi
|
|||
test -n "$ac_init_help" && exit $ac_status
|
||||
if $ac_init_version; then
|
||||
cat <<\_ACEOF
|
||||
monitoring-plugins configure 2.1.2
|
||||
monitoring-plugins configure 2.2
|
||||
generated by GNU Autoconf 2.69
|
||||
|
||||
Copyright (C) 2012 Free Software Foundation, Inc.
|
||||
|
@ -3342,7 +3346,7 @@ cat >config.log <<_ACEOF
|
|||
This file contains any messages produced by compilers while
|
||||
running configure, to aid debugging if configure makes a mistake.
|
||||
|
||||
It was created by monitoring-plugins $as_me 2.1.2, which was
|
||||
It was created by monitoring-plugins $as_me 2.2, which was
|
||||
generated by GNU Autoconf 2.69. Invocation command line was
|
||||
|
||||
$ $0 $@
|
||||
|
@ -4213,7 +4217,7 @@ fi
|
|||
|
||||
# Define the identity of the package.
|
||||
PACKAGE='monitoring-plugins'
|
||||
VERSION='2.1.2'
|
||||
VERSION='2.2'
|
||||
|
||||
|
||||
cat >>confdefs.h <<_ACEOF
|
||||
|
@ -6581,6 +6585,8 @@ fi
|
|||
# Code from module stdio:
|
||||
# Code from module stdlib:
|
||||
# Code from module strcase:
|
||||
# Code from module strcasestr:
|
||||
# Code from module strcasestr-simple:
|
||||
# Code from module streq:
|
||||
# Code from module strerror:
|
||||
# Code from module strerror-override:
|
||||
|
@ -14963,7 +14969,57 @@ fi
|
|||
if test "x$with_radius" != "xno"; then :
|
||||
|
||||
_SAVEDLIBS="$LIBS"
|
||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for rc_read_config in -lfreeradius-client" >&5
|
||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for rc_read_config in -lradcli" >&5
|
||||
$as_echo_n "checking for rc_read_config in -lradcli... " >&6; }
|
||||
if ${ac_cv_lib_radcli_rc_read_config+:} false; then :
|
||||
$as_echo_n "(cached) " >&6
|
||||
else
|
||||
ac_check_lib_save_LIBS=$LIBS
|
||||
LIBS="-lradcli $LIBS"
|
||||
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
||||
/* end confdefs.h. */
|
||||
|
||||
/* Override any GCC internal prototype to avoid an error.
|
||||
Use char because int might match the return type of a GCC
|
||||
builtin and then its argument prototype would still apply. */
|
||||
#ifdef __cplusplus
|
||||
extern "C"
|
||||
#endif
|
||||
char rc_read_config ();
|
||||
int
|
||||
main ()
|
||||
{
|
||||
return rc_read_config ();
|
||||
;
|
||||
return 0;
|
||||
}
|
||||
_ACEOF
|
||||
if ac_fn_c_try_link "$LINENO"; then :
|
||||
ac_cv_lib_radcli_rc_read_config=yes
|
||||
else
|
||||
ac_cv_lib_radcli_rc_read_config=no
|
||||
fi
|
||||
rm -f core conftest.err conftest.$ac_objext \
|
||||
conftest$ac_exeext conftest.$ac_ext
|
||||
LIBS=$ac_check_lib_save_LIBS
|
||||
fi
|
||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_radcli_rc_read_config" >&5
|
||||
$as_echo "$ac_cv_lib_radcli_rc_read_config" >&6; }
|
||||
if test "x$ac_cv_lib_radcli_rc_read_config" = xyes; then :
|
||||
cat >>confdefs.h <<_ACEOF
|
||||
#define HAVE_LIBRADCLI 1
|
||||
_ACEOF
|
||||
|
||||
LIBS="-lradcli $LIBS"
|
||||
|
||||
fi
|
||||
|
||||
if test "$ac_cv_lib_radcli_rc_read_config" = "yes"; then
|
||||
EXTRAS="$EXTRAS check_radius\$(EXEEXT)"
|
||||
RADIUSLIBS="-lradcli"
|
||||
|
||||
else
|
||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for rc_read_config in -lfreeradius-client" >&5
|
||||
$as_echo_n "checking for rc_read_config in -lfreeradius-client... " >&6; }
|
||||
if ${ac_cv_lib_freeradius_client_rc_read_config+:} false; then :
|
||||
$as_echo_n "(cached) " >&6
|
||||
|
@ -15008,12 +15064,12 @@ _ACEOF
|
|||
|
||||
fi
|
||||
|
||||
if test "$ac_cv_lib_freeradius_client_rc_read_config" = "yes"; then
|
||||
EXTRAS="$EXTRAS check_radius\$(EXEEXT)"
|
||||
RADIUSLIBS="-lfreeradius-client"
|
||||
if test "$ac_cv_lib_freeradius_client_rc_read_config" = "yes"; then
|
||||
EXTRAS="$EXTRAS check_radius\$(EXEEXT)"
|
||||
RADIUSLIBS="-lfreeradius-client"
|
||||
|
||||
else
|
||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for rc_read_config in -lradiusclient-ng" >&5
|
||||
else
|
||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for rc_read_config in -lradiusclient-ng" >&5
|
||||
$as_echo_n "checking for rc_read_config in -lradiusclient-ng... " >&6; }
|
||||
if ${ac_cv_lib_radiusclient_ng_rc_read_config+:} false; then :
|
||||
$as_echo_n "(cached) " >&6
|
||||
|
@ -15058,12 +15114,12 @@ _ACEOF
|
|||
|
||||
fi
|
||||
|
||||
if test "$ac_cv_lib_radiusclient_ng_rc_read_config" = "yes"; then
|
||||
EXTRAS="$EXTRAS check_radius\$(EXEEXT)"
|
||||
RADIUSLIBS="-lradiusclient-ng"
|
||||
if test "$ac_cv_lib_radiusclient_ng_rc_read_config" = "yes"; then
|
||||
EXTRAS="$EXTRAS check_radius\$(EXEEXT)"
|
||||
RADIUSLIBS="-lradiusclient-ng"
|
||||
|
||||
else
|
||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for rc_read_config in -lradiusclient" >&5
|
||||
else
|
||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for rc_read_config in -lradiusclient" >&5
|
||||
$as_echo_n "checking for rc_read_config in -lradiusclient... " >&6; }
|
||||
if ${ac_cv_lib_radiusclient_rc_read_config+:} false; then :
|
||||
$as_echo_n "(cached) " >&6
|
||||
|
@ -15108,15 +15164,16 @@ _ACEOF
|
|||
|
||||
fi
|
||||
|
||||
if test "$ac_cv_lib_radiusclient_rc_read_config" = "yes"; then
|
||||
EXTRAS="$EXTRAS check_radius\$(EXEEXT)"
|
||||
RADIUSLIBS="-lradiusclient"
|
||||
if test "$ac_cv_lib_radiusclient_rc_read_config" = "yes"; then
|
||||
EXTRAS="$EXTRAS check_radius\$(EXEEXT)"
|
||||
RADIUSLIBS="-lradiusclient"
|
||||
|
||||
else
|
||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Skipping radius plugin" >&5
|
||||
else
|
||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Skipping radius plugin" >&5
|
||||
$as_echo "$as_me: WARNING: Skipping radius plugin" >&2;}
|
||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: install radius libs to compile this plugin (see REQUIREMENTS)." >&5
|
||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: install radius libs to compile this plugin (see REQUIREMENTS)." >&5
|
||||
$as_echo "$as_me: WARNING: install radius libs to compile this plugin (see REQUIREMENTS)." >&2;}
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
|
@ -15775,9 +15832,9 @@ done
|
|||
|
||||
_SAVEDLIBS="$LIBS"
|
||||
LIBS="-L${with_openssl}/lib"
|
||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CRYPTO_lock in -lcrypto" >&5
|
||||
$as_echo_n "checking for CRYPTO_lock in -lcrypto... " >&6; }
|
||||
if ${ac_cv_lib_crypto_CRYPTO_lock+:} false; then :
|
||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CRYPTO_new_ex_data in -lcrypto" >&5
|
||||
$as_echo_n "checking for CRYPTO_new_ex_data in -lcrypto... " >&6; }
|
||||
if ${ac_cv_lib_crypto_CRYPTO_new_ex_data+:} false; then :
|
||||
$as_echo_n "(cached) " >&6
|
||||
else
|
||||
ac_check_lib_save_LIBS=$LIBS
|
||||
|
@ -15791,27 +15848,27 @@ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|||
#ifdef __cplusplus
|
||||
extern "C"
|
||||
#endif
|
||||
char CRYPTO_lock ();
|
||||
char CRYPTO_new_ex_data ();
|
||||
int
|
||||
main ()
|
||||
{
|
||||
return CRYPTO_lock ();
|
||||
return CRYPTO_new_ex_data ();
|
||||
;
|
||||
return 0;
|
||||
}
|
||||
_ACEOF
|
||||
if ac_fn_c_try_link "$LINENO"; then :
|
||||
ac_cv_lib_crypto_CRYPTO_lock=yes
|
||||
ac_cv_lib_crypto_CRYPTO_new_ex_data=yes
|
||||
else
|
||||
ac_cv_lib_crypto_CRYPTO_lock=no
|
||||
ac_cv_lib_crypto_CRYPTO_new_ex_data=no
|
||||
fi
|
||||
rm -f core conftest.err conftest.$ac_objext \
|
||||
conftest$ac_exeext conftest.$ac_ext
|
||||
LIBS=$ac_check_lib_save_LIBS
|
||||
fi
|
||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_CRYPTO_lock" >&5
|
||||
$as_echo "$ac_cv_lib_crypto_CRYPTO_lock" >&6; }
|
||||
if test "x$ac_cv_lib_crypto_CRYPTO_lock" = xyes; then :
|
||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_CRYPTO_new_ex_data" >&5
|
||||
$as_echo "$ac_cv_lib_crypto_CRYPTO_new_ex_data" >&6; }
|
||||
if test "x$ac_cv_lib_crypto_CRYPTO_new_ex_data" = xyes; then :
|
||||
cat >>confdefs.h <<_ACEOF
|
||||
#define HAVE_LIBCRYPTO 1
|
||||
_ACEOF
|
||||
|
@ -15820,7 +15877,7 @@ _ACEOF
|
|||
|
||||
fi
|
||||
|
||||
if test "$ac_cv_lib_crypto_CRYPTO_lock" = "yes"; then
|
||||
if test "$ac_cv_lib_crypto_CRYPTO_new_ex_data" = "yes"; then
|
||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lssl" >&5
|
||||
$as_echo_n "checking for main in -lssl... " >&6; }
|
||||
if ${ac_cv_lib_ssl_main+:} false; then :
|
||||
|
@ -15858,7 +15915,7 @@ fi
|
|||
fi
|
||||
LIBS="$_SAVEDLIBS"
|
||||
|
||||
if test "$ac_cv_lib_crypto_CRYPTO_lock" = "yes"; then
|
||||
if test "$ac_cv_lib_crypto_CRYPTO_new_ex_data" = "yes"; then
|
||||
if test "$ac_cv_lib_ssl_main" = "yes"; then
|
||||
if test "$FOUNDINCLUDE" = "yes"; then
|
||||
FOUNDOPENSSL="yes"
|
||||
|
@ -16433,6 +16490,46 @@ $as_echo "no" >&6; }
|
|||
fi
|
||||
|
||||
|
||||
# Extract the first word of "env", so it can be a program name with args.
|
||||
set dummy env; ac_word=$2
|
||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
||||
$as_echo_n "checking for $ac_word... " >&6; }
|
||||
if ${ac_cv_path_PATH_TO_ENV+:} false; then :
|
||||
$as_echo_n "(cached) " >&6
|
||||
else
|
||||
case $PATH_TO_ENV in
|
||||
[\\/]* | ?:[\\/]*)
|
||||
ac_cv_path_PATH_TO_ENV="$PATH_TO_ENV" # Let the user override the test with a path.
|
||||
;;
|
||||
*)
|
||||
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
||||
for as_dir in $PATH
|
||||
do
|
||||
IFS=$as_save_IFS
|
||||
test -z "$as_dir" && as_dir=.
|
||||
for ac_exec_ext in '' $ac_executable_extensions; do
|
||||
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
||||
ac_cv_path_PATH_TO_ENV="$as_dir/$ac_word$ac_exec_ext"
|
||||
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
||||
break 2
|
||||
fi
|
||||
done
|
||||
done
|
||||
IFS=$as_save_IFS
|
||||
|
||||
;;
|
||||
esac
|
||||
fi
|
||||
PATH_TO_ENV=$ac_cv_path_PATH_TO_ENV
|
||||
if test -n "$PATH_TO_ENV"; then
|
||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_TO_ENV" >&5
|
||||
$as_echo "$PATH_TO_ENV" >&6; }
|
||||
else
|
||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
||||
$as_echo "no" >&6; }
|
||||
fi
|
||||
|
||||
|
||||
|
||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ps syntax" >&5
|
||||
$as_echo_n "checking for ps syntax... " >&6; }
|
||||
|
@ -16822,6 +16919,16 @@ then
|
|||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_ps_command" >&5
|
||||
$as_echo "$ac_cv_ps_command" >&6; }
|
||||
|
||||
elif env UNIX95=1 ps -eo 'state uid ruid user ruser pid ppid vsz pcpu comm args' 2>/dev/null | head -n 1 | \
|
||||
egrep -i "^ *S +UID +RUID +USER +RUSER +PID +PPID +VSZ +%CPU +COMMAND +COMMAND" >/dev/null
|
||||
then
|
||||
ac_cv_ps_varlist="procstat,&procuid,&procpid,&procppid,&procvsz,&procpcpu,procprog,&pos"
|
||||
ac_cv_ps_command="$PATH_TO_ENV UNIX95=1 $PATH_TO_PS -eo 'state uid pid ppid vsz pcpu comm args'"
|
||||
ac_cv_ps_format="%s %d %d %d %d %f %s %n"
|
||||
ac_cv_ps_cols=8
|
||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_ps_command" >&5
|
||||
$as_echo "$ac_cv_ps_command" >&6; }
|
||||
|
||||
elif ps -el 2>/dev/null | \
|
||||
egrep -i "^ *F +S +UID +PID +PPID +C +PRI +NI +ADDR +SZ +WCHAN +TTY +TIME +[RGSCOMDNA]+" >/dev/null
|
||||
then
|
||||
|
@ -18078,6 +18185,63 @@ else
|
|||
$as_echo "$as_me: WARNING: Get ssh in order to make check_by_ssh plugin" >&2;}
|
||||
fi
|
||||
|
||||
# Extract the first word of "sudo", so it can be a program name with args.
|
||||
set dummy sudo; ac_word=$2
|
||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
||||
$as_echo_n "checking for $ac_word... " >&6; }
|
||||
if ${ac_cv_path_PATH_TO_SUDO+:} false; then :
|
||||
$as_echo_n "(cached) " >&6
|
||||
else
|
||||
case $PATH_TO_SUDO in
|
||||
[\\/]* | ?:[\\/]*)
|
||||
ac_cv_path_PATH_TO_SUDO="$PATH_TO_SUDO" # Let the user override the test with a path.
|
||||
;;
|
||||
*)
|
||||
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
||||
for as_dir in $PATH
|
||||
do
|
||||
IFS=$as_save_IFS
|
||||
test -z "$as_dir" && as_dir=.
|
||||
for ac_exec_ext in '' $ac_executable_extensions; do
|
||||
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
||||
ac_cv_path_PATH_TO_SUDO="$as_dir/$ac_word$ac_exec_ext"
|
||||
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
||||
break 2
|
||||
fi
|
||||
done
|
||||
done
|
||||
IFS=$as_save_IFS
|
||||
|
||||
;;
|
||||
esac
|
||||
fi
|
||||
PATH_TO_SUDO=$ac_cv_path_PATH_TO_SUDO
|
||||
if test -n "$PATH_TO_SUDO"; then
|
||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_TO_SUDO" >&5
|
||||
$as_echo "$PATH_TO_SUDO" >&6; }
|
||||
else
|
||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
||||
$as_echo "no" >&6; }
|
||||
fi
|
||||
|
||||
|
||||
|
||||
# Check whether --with-sudo_command was given.
|
||||
if test "${with_sudo_command+set}" = set; then :
|
||||
withval=$with_sudo_command; PATH_TO_SUDO=$withval
|
||||
fi
|
||||
|
||||
if test -n "$PATH_TO_SUDO"
|
||||
then
|
||||
|
||||
cat >>confdefs.h <<_ACEOF
|
||||
#define PATH_TO_SUDO "$PATH_TO_SUDO"
|
||||
_ACEOF
|
||||
|
||||
else
|
||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find sudo or eqivalent" >&5
|
||||
$as_echo "$as_me: WARNING: Could not find sudo or eqivalent" >&2;}
|
||||
fi
|
||||
|
||||
# Extract the first word of "mailq", so it can be a program name with args.
|
||||
set dummy mailq; ac_word=$2
|
||||
|
@ -28288,6 +28452,103 @@ fi
|
|||
HAVE_DECL_STRNCASECMP=1;
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
for ac_func in strcasestr
|
||||
do :
|
||||
ac_fn_c_check_func "$LINENO" "strcasestr" "ac_cv_func_strcasestr"
|
||||
if test "x$ac_cv_func_strcasestr" = xyes; then :
|
||||
cat >>confdefs.h <<_ACEOF
|
||||
#define HAVE_STRCASESTR 1
|
||||
_ACEOF
|
||||
|
||||
fi
|
||||
done
|
||||
|
||||
if test $ac_cv_func_strcasestr = no; then
|
||||
HAVE_STRCASESTR=0
|
||||
else
|
||||
if test "$gl_cv_func_memchr_works" != yes; then
|
||||
REPLACE_STRCASESTR=1
|
||||
else
|
||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strcasestr works" >&5
|
||||
$as_echo_n "checking whether strcasestr works... " >&6; }
|
||||
if ${gl_cv_func_strcasestr_works_always+:} false; then :
|
||||
$as_echo_n "(cached) " >&6
|
||||
else
|
||||
if test "$cross_compiling" = yes; then :
|
||||
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
||||
/* end confdefs.h. */
|
||||
|
||||
#ifdef __GNU_LIBRARY__
|
||||
#include <features.h>
|
||||
#if ((__GLIBC__ == 2 && __GLIBC_MINOR__ > 12) || (__GLIBC__ > 2)) \
|
||||
|| defined __UCLIBC__
|
||||
Lucky user
|
||||
#endif
|
||||
#elif defined __CYGWIN__
|
||||
#include <cygwin/version.h>
|
||||
#if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
|
||||
Lucky user
|
||||
#endif
|
||||
#else
|
||||
Lucky user
|
||||
#endif
|
||||
|
||||
_ACEOF
|
||||
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
||||
$EGREP "Lucky user" >/dev/null 2>&1; then :
|
||||
gl_cv_func_strcasestr_works_always="guessing yes"
|
||||
else
|
||||
gl_cv_func_strcasestr_works_always="guessing no"
|
||||
fi
|
||||
rm -f conftest*
|
||||
|
||||
|
||||
else
|
||||
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
||||
/* end confdefs.h. */
|
||||
|
||||
#include <string.h> /* for strcasestr */
|
||||
#define P "_EF_BF_BD"
|
||||
#define HAYSTACK "F_BD_CE_BD" P P P P "_C3_88_20" P P P "_C3_A7_20" P
|
||||
#define NEEDLE P P P P P
|
||||
|
||||
int
|
||||
main ()
|
||||
{
|
||||
return !!strcasestr (HAYSTACK, NEEDLE);
|
||||
|
||||
;
|
||||
return 0;
|
||||
}
|
||||
_ACEOF
|
||||
if ac_fn_c_try_run "$LINENO"; then :
|
||||
gl_cv_func_strcasestr_works_always=yes
|
||||
else
|
||||
gl_cv_func_strcasestr_works_always=no
|
||||
fi
|
||||
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
|
||||
conftest.$ac_objext conftest.beam conftest.$ac_ext
|
||||
fi
|
||||
|
||||
|
||||
fi
|
||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strcasestr_works_always" >&5
|
||||
$as_echo "$gl_cv_func_strcasestr_works_always" >&6; }
|
||||
case "$gl_cv_func_strcasestr_works_always" in
|
||||
*yes) ;;
|
||||
*)
|
||||
REPLACE_STRCASESTR=1
|
||||
;;
|
||||
esac
|
||||
fi
|
||||
fi
|
||||
|
||||
|
||||
REPLACE_STRERROR_0=0
|
||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror(0) succeeds" >&5
|
||||
$as_echo_n "checking whether strerror(0) succeeds... " >&6; }
|
||||
|
@ -37665,6 +37926,245 @@ _ACEOF
|
|||
fi
|
||||
|
||||
|
||||
if test $HAVE_STRCASESTR = 1 && test $REPLACE_STRCASESTR = 0; then
|
||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strcasestr works in linear time" >&5
|
||||
$as_echo_n "checking whether strcasestr works in linear time... " >&6; }
|
||||
if ${gl_cv_func_strcasestr_linear+:} false; then :
|
||||
$as_echo_n "(cached) " >&6
|
||||
else
|
||||
if test "$cross_compiling" = yes; then :
|
||||
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
||||
/* end confdefs.h. */
|
||||
|
||||
#include <features.h>
|
||||
#ifdef __GNU_LIBRARY__
|
||||
#if ((__GLIBC__ == 2 && __GLIBC_MINOR__ > 12) || (__GLIBC__ > 2)) \
|
||||
&& !defined __UCLIBC__
|
||||
Lucky user
|
||||
#endif
|
||||
#endif
|
||||
#ifdef __CYGWIN__
|
||||
#include <cygwin/version.h>
|
||||
#if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
|
||||
Lucky user
|
||||
#endif
|
||||
#endif
|
||||
|
||||
_ACEOF
|
||||
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
||||
$EGREP "Lucky user" >/dev/null 2>&1; then :
|
||||
gl_cv_func_strcasestr_linear="guessing yes"
|
||||
else
|
||||
gl_cv_func_strcasestr_linear="guessing no"
|
||||
fi
|
||||
rm -f conftest*
|
||||
|
||||
|
||||
else
|
||||
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
||||
/* end confdefs.h. */
|
||||
|
||||
#include <signal.h> /* for signal */
|
||||
#include <string.h> /* for strcasestr */
|
||||
#include <stdlib.h> /* for malloc */
|
||||
#include <unistd.h> /* for alarm */
|
||||
static void quit (int sig) { exit (sig + 128); }
|
||||
|
||||
int
|
||||
main ()
|
||||
{
|
||||
|
||||
int result = 0;
|
||||
size_t m = 1000000;
|
||||
char *haystack = (char *) malloc (2 * m + 2);
|
||||
char *needle = (char *) malloc (m + 2);
|
||||
/* Failure to compile this test due to missing alarm is okay,
|
||||
since all such platforms (mingw) also lack strcasestr. */
|
||||
signal (SIGALRM, quit);
|
||||
alarm (5);
|
||||
/* Check for quadratic performance. */
|
||||
if (haystack && needle)
|
||||
{
|
||||
memset (haystack, 'A', 2 * m);
|
||||
haystack[2 * m] = 'B';
|
||||
haystack[2 * m + 1] = 0;
|
||||
memset (needle, 'A', m);
|
||||
needle[m] = 'B';
|
||||
needle[m + 1] = 0;
|
||||
if (!strcasestr (haystack, needle))
|
||||
result |= 1;
|
||||
}
|
||||
return result;
|
||||
|
||||
;
|
||||
return 0;
|
||||
}
|
||||
_ACEOF
|
||||
if ac_fn_c_try_run "$LINENO"; then :
|
||||
gl_cv_func_strcasestr_linear=yes
|
||||
else
|
||||
gl_cv_func_strcasestr_linear=no
|
||||
fi
|
||||
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
|
||||
conftest.$ac_objext conftest.beam conftest.$ac_ext
|
||||
fi
|
||||
|
||||
|
||||
fi
|
||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strcasestr_linear" >&5
|
||||
$as_echo "$gl_cv_func_strcasestr_linear" >&6; }
|
||||
case "$gl_cv_func_strcasestr_linear" in
|
||||
*yes) ;;
|
||||
*)
|
||||
REPLACE_STRCASESTR=1
|
||||
;;
|
||||
esac
|
||||
fi
|
||||
|
||||
if test $HAVE_STRCASESTR = 0 || test $REPLACE_STRCASESTR = 1; then
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
gl_LIBOBJS="$gl_LIBOBJS strcasestr.$ac_objext"
|
||||
|
||||
|
||||
:
|
||||
|
||||
fi
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
for ac_func in strcasestr
|
||||
do :
|
||||
ac_fn_c_check_func "$LINENO" "strcasestr" "ac_cv_func_strcasestr"
|
||||
if test "x$ac_cv_func_strcasestr" = xyes; then :
|
||||
cat >>confdefs.h <<_ACEOF
|
||||
#define HAVE_STRCASESTR 1
|
||||
_ACEOF
|
||||
|
||||
fi
|
||||
done
|
||||
|
||||
if test $ac_cv_func_strcasestr = no; then
|
||||
HAVE_STRCASESTR=0
|
||||
else
|
||||
if test "$gl_cv_func_memchr_works" != yes; then
|
||||
REPLACE_STRCASESTR=1
|
||||
else
|
||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strcasestr works" >&5
|
||||
$as_echo_n "checking whether strcasestr works... " >&6; }
|
||||
if ${gl_cv_func_strcasestr_works_always+:} false; then :
|
||||
$as_echo_n "(cached) " >&6
|
||||
else
|
||||
if test "$cross_compiling" = yes; then :
|
||||
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
||||
/* end confdefs.h. */
|
||||
|
||||
#ifdef __GNU_LIBRARY__
|
||||
#include <features.h>
|
||||
#if ((__GLIBC__ == 2 && __GLIBC_MINOR__ > 12) || (__GLIBC__ > 2)) \
|
||||
|| defined __UCLIBC__
|
||||
Lucky user
|
||||
#endif
|
||||
#elif defined __CYGWIN__
|
||||
#include <cygwin/version.h>
|
||||
#if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
|
||||
Lucky user
|
||||
#endif
|
||||
#else
|
||||
Lucky user
|
||||
#endif
|
||||
|
||||
_ACEOF
|
||||
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
||||
$EGREP "Lucky user" >/dev/null 2>&1; then :
|
||||
gl_cv_func_strcasestr_works_always="guessing yes"
|
||||
else
|
||||
gl_cv_func_strcasestr_works_always="guessing no"
|
||||
fi
|
||||
rm -f conftest*
|
||||
|
||||
|
||||
else
|
||||
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
||||
/* end confdefs.h. */
|
||||
|
||||
#include <string.h> /* for strcasestr */
|
||||
#define P "_EF_BF_BD"
|
||||
#define HAYSTACK "F_BD_CE_BD" P P P P "_C3_88_20" P P P "_C3_A7_20" P
|
||||
#define NEEDLE P P P P P
|
||||
|
||||
int
|
||||
main ()
|
||||
{
|
||||
return !!strcasestr (HAYSTACK, NEEDLE);
|
||||
|
||||
;
|
||||
return 0;
|
||||
}
|
||||
_ACEOF
|
||||
if ac_fn_c_try_run "$LINENO"; then :
|
||||
gl_cv_func_strcasestr_works_always=yes
|
||||
else
|
||||
gl_cv_func_strcasestr_works_always=no
|
||||
fi
|
||||
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
|
||||
conftest.$ac_objext conftest.beam conftest.$ac_ext
|
||||
fi
|
||||
|
||||
|
||||
fi
|
||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strcasestr_works_always" >&5
|
||||
$as_echo "$gl_cv_func_strcasestr_works_always" >&6; }
|
||||
case "$gl_cv_func_strcasestr_works_always" in
|
||||
*yes) ;;
|
||||
*)
|
||||
REPLACE_STRCASESTR=1
|
||||
;;
|
||||
esac
|
||||
fi
|
||||
fi
|
||||
|
||||
if test $HAVE_STRCASESTR = 0 || test $REPLACE_STRCASESTR = 1; then
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
gl_LIBOBJS="$gl_LIBOBJS strcasestr.$ac_objext"
|
||||
|
||||
|
||||
:
|
||||
|
||||
fi
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
GNULIB_STRCASESTR=1
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
$as_echo "#define GNULIB_TEST_STRCASESTR 1" >>confdefs.h
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
@ -40937,7 +41437,7 @@ cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
|
|||
# report actual input values of CONFIG_FILES etc. instead of their
|
||||
# values after options handling.
|
||||
ac_log="
|
||||
This file was extended by monitoring-plugins $as_me 2.1.2, which was
|
||||
This file was extended by monitoring-plugins $as_me 2.2, which was
|
||||
generated by GNU Autoconf 2.69. Invocation command line was
|
||||
|
||||
CONFIG_FILES = $CONFIG_FILES
|
||||
|
@ -41003,7 +41503,7 @@ _ACEOF
|
|||
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
|
||||
ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
|
||||
ac_cs_version="\\
|
||||
monitoring-plugins config.status 2.1.2
|
||||
monitoring-plugins config.status 2.2
|
||||
configured by $0, generated by GNU Autoconf 2.69,
|
||||
with options \\"\$ac_cs_config\\"
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue