summaryrefslogtreecommitdiff
path: root/net/nagios-plugins/files/patch-configure.in
diff options
context:
space:
mode:
authorPete Fritchman <petef@FreeBSD.org>2003-01-03 19:08:00 +0000
committerPete Fritchman <petef@FreeBSD.org>2003-01-03 19:08:00 +0000
commit40e5056d192fdc0429a063ae8e5291c0917a4ff8 (patch)
treefe64becc91a297123e4ba10f4e892fed5799e3c5 /net/nagios-plugins/files/patch-configure.in
parentUpdate to 1.0. (diff)
Update to 1.3.0.b2.
Submitted by: maintainer
Notes
Notes: svn path=/head/; revision=72439
Diffstat (limited to 'net/nagios-plugins/files/patch-configure.in')
-rw-r--r--net/nagios-plugins/files/patch-configure.in98
1 files changed, 35 insertions, 63 deletions
diff --git a/net/nagios-plugins/files/patch-configure.in b/net/nagios-plugins/files/patch-configure.in
index 0718e05db52c..33cece3ebf56 100644
--- a/net/nagios-plugins/files/patch-configure.in
+++ b/net/nagios-plugins/files/patch-configure.in
@@ -1,7 +1,7 @@
---- configure.in.orig Thu Jun 13 05:03:07 2002
-+++ configure.in Fri Jul 19 21:31:32 2002
-@@ -7,7 +7,7 @@
- dnl AM_INIT_AUTOMAKE(nagios-plugins,$VERSION)
+--- configure.in.orig Fri Nov 22 03:46:49 2002
++++ configure.in Tue Nov 26 14:48:27 2002
+@@ -14,7 +14,7 @@
+ AM_INIT_AUTOMAKE(nagios-plugins,${PACKAGE_VERSION})
AM_CONFIG_HEADER(plugins/config.h plugins/common.h plugins/version.h plugins/netutils.h plugins/utils.h plugins/popen.h)
-AC_PREFIX_DEFAULT(/usr/local/nagios)
@@ -9,7 +9,7 @@
dnl Figure out how to invoke "install" and what install options to use.
-@@ -46,7 +46,6 @@
+@@ -56,7 +56,6 @@
AC_ARG_WITH(nagios_group,--with-nagios-group=<group> sets group name to run nagios,nagios_grp=$withval,nagios_grp=nagios)
AC_SUBST(nagios_usr)
AC_SUBST(nagios_grp)
@@ -17,7 +17,7 @@
AC_SUBST(INSTALL_OPTS)
AC_ARG_WITH(trusted_path,--with-trusted-path=/bin:/sbin:/usr/bin:/usr/sbin sets trusted path for executables called by scripts,trusted_path=$withval,trusted_path=/bin:/sbin:/usr/bin:/usr/sbin)
-@@ -98,8 +97,8 @@
+@@ -102,8 +101,8 @@
AC_CHECK_HEADERS(postgresql/libpq-fe.h)
AC_CHECK_HEADERS(libpq-fe.h)
if test "$ac_cv_header_pgsql_libpq_fe_h" = "yes"; then
@@ -28,7 +28,7 @@
elif test "$ac_cv_header_postgresql_libpq_fe_h" = "yes"; then
PGLIBS="-L$PGSQL/lib -lpq -lcrypt"
PGINCLUDE="-I/usr/include/postgresql"
-@@ -127,25 +126,37 @@
+@@ -131,25 +130,37 @@
LIBS="$_SAVEDLIBS"
CPPFLAGS="$_SAVEDCPPFLAGS"
@@ -72,70 +72,42 @@
AC_SUBST(LDAPLIBS)
AC_SUBST(LDAPINCLUDE)
EXTRAS="$EXTRAS check_ldap"
-@@ -154,13 +165,14 @@
+@@ -158,7 +169,7 @@
AC_MSG_WARN([install LDAP libs to compile this plugin (see Requirements).])
fi
LIBS="$_SAVEDLIBS"
+-
+fi
dnl Check for mysql libraries
_SAVEDLIBS="$LIBS"
- _SAVEDCPPFLAGS="$CPPFLAGS"
--CPPFLAGS="-I/usr/include"
-+CPPFLAGS="-I${LOCALBASE}/include"
- AC_ARG_WITH(mysqllibdir,--with-mysqllibdir=<dir> sets path to mysql libraries,[MYSQLLIBDIR=$withval])
--if test -n "$MYSQLLIBS"; then
-+if test -n "$MYSQLLIBDIR"; then
- AC_CHECK_LIB(mysqlclient,mysql_init,MYSQLLIBS="-lmysqlclient -lz" check_mysql_LDFLAGS="-L$MYSQLLIBDIR",,-L$MYSQLLIBDIR -lz)
- elif test -f /usr/lib/libmysqlclient.so; then
- AC_CHECK_LIB(mysqlclient,mysql_init,MYSQLLIBS="-lmysqlclient -lz",,-lz)
-@@ -176,7 +188,8 @@
- AC_CHECK_LIB(mysqlclient,mysql_close,MYSQLLIBS="-lmysqlclient" check_mysql_LDFLAGS="-L/usr/lib/mysql",,-L/usr/lib/mysql)
- fi
- if test "$ac_cv_lib_mysqlclient_mysql_init" = "yes" -o "$ac_cv_lib_mysqlclient_mysql_close" = "yes"; then
-- AC_CHECK_HEADERS(mysql/mysql.h mysql/errmsg.h)
-+ AC_CHECK_HEADERS(mysql/mysql.h mysql/errmsg.h,MYSQLINCLUDE="-I${LOCALBASE}/include")
-+ AC_SUBST(MYSQLINCLUDE)
- if test "$ac_cv_header_mysql_mysql_h" = "yes" -a "$ac_cv_header_mysql_errmsg_h" = "yes"; then
- EXTRAS="$EXTRAS check_mysql"
- AC_SUBST(MYSQLLIBS)
-@@ -190,7 +203,7 @@
- AC_MSG_WARN([install mysql client libs to compile this plugin (see Requirements).])
+@@ -351,24 +362,6 @@
+ LIBS="$LIBS -lsnprintf" DEPLIBS="$DEPLIBS libsnprintf.a"
fi
- LIBS="$_SAVEDLIBS"
--CPPFLAGS="$_SAVEDCPPFLAGS"
-+CPPFLAGS="$_SAVEDCPPFLAGS $MYSQLINCLUDE"
-
- dnl Check for OpenSSL location
- AC_PATH_PROG(OPENSSL,openssl)
-@@ -269,16 +282,16 @@
- dnl AC_SUBST(libgetopt_a_DEPENDENCIES)
- dnl AC_SUBST(libsnprintf_a_SOURCES)
+-dnl We used to not do long options unless a compatible lib was found
+-dnl Now we provide code and make libgetopt if native is not suitable
-AC_MSG_CHECKING(for getopt_long)
-AC_TRY_COMPILE([#include <getopt.h>
--#include <stdlib.h>],
--[int option_index=0;
--static struct option *long_options;
--getopt_long(0,NULL,"+h",long_options,&option_index);],
--[AC_DEFINE(HAVE_GETOPT_H) AC_DEFINE(HAVE_GETOPT_LONG) AC_MSG_RESULT(yes)],
--[AC_DEFINE(HAVE_GETOPT_H) AC_DEFINE(HAVE_GETOPT_LONG) AC_MSG_RESULT(no) import_sources=getopt])
-+dnl AC_MSG_CHECKING(for getopt_long)
-+dnl AC_TRY_COMPILE([#include <getopt.h>
-+dnl #include <stdlib.h>],
-+dnl [int option_index=0;
-+dnl static struct option *long_options;
-+dnl getopt_long(0,NULL,"+h",long_options,&option_index);],
-+dnl [AC_DEFINE(HAVE_GETOPT_H) AC_DEFINE(HAVE_GETOPT_LONG) AC_MSG_RESULT(yes)],
-+dnl [AC_DEFINE(HAVE_GETOPT_H) AC_DEFINE(HAVE_GETOPT_LONG) AC_MSG_RESULT(no) import_sources=getopt])
-
--AC_CHECK_FUNCS(getopt_long_only,,LIBS="$LIBS -lgetopt" DEPLIBS="$DEPLIBS libgetopt.a")
-+dnl AC_CHECK_FUNCS(getopt_long_only,,LIBS="$LIBS -lgetopt" DEPLIBS="$DEPLIBS libgetopt.a")
-
- AC_CHECK_FUNC(vsnprintf,,LIBS="$LIBS -lsnprintf" DEPLIBS="$DEPLIBS libsnprintf.a")
-
-@@ -683,6 +696,8 @@
- AC_DEFINE_UNQUOTED(WHO_COMMAND,"$PATH_TO_WHO")
+- #include <stdlib.h>],
+- [int option_index=0;
+- static struct option *long_options;
+- getopt_long(0,NULL,"+h",long_options,&option_index);],
+- [AC_DEFINE(HAVE_GETOPT_H,1,[Define if getopt headers are found])
+- AC_DEFINE(HAVE_GETOPT_LONG,1,[Define if getopt_long is found])
+- AC_MSG_RESULT(yes)],
+- [AC_DEFINE(HAVE_GETOPT_H,1,[Define if getopt headers are found])
+- AC_DEFINE(HAVE_GETOPT_LONG,1,[Define if getopt_long is found])
+- AC_MSG_RESULT(no)
+- import_sources=getopt
+- LIBS="$LIBS -lgetopt"
+- DEPLIBS="$DEPLIBS libgetopt.a"])
+-
+ AC_TRY_COMPILE([#include <sys/time.h>],
+ [struct timeval *tv;
+ struct timezone *tz;],
+@@ -775,6 +768,8 @@
+ AC_DEFINE_UNQUOTED(WHO_COMMAND,"$PATH_TO_WHO",[path and arguments for invoking 'who'])
fi
+AC_ARG_ENABLE(snmp,--enable-snmp compile check_hpjd and check_snmp)
@@ -143,7 +115,7 @@
AC_PATH_PROG(PATH_TO_SNMPGET,snmpget)
if test -x "$PATH_TO_SNMPGET"
then
-@@ -705,7 +720,10 @@
+@@ -797,7 +792,10 @@
echo "** Tried $PERL - install Net::SNMP perl module if you want to"
echo " use the perl snmp plugins"
fi
@@ -154,7 +126,7 @@
AC_PATH_PROG(PATH_TO_QUAKESTAT,quakestat)
AC_PATH_PROG(PATH_TO_QSTAT,qstat)
if test -x "$PATH_TO_QUAKESTAT"
-@@ -719,7 +737,10 @@
+@@ -811,7 +809,10 @@
else
echo "** Get qstat from http://www.activesw.com/people/steve/qstat.html in order to make check_game plugin"
fi
@@ -165,7 +137,7 @@
AC_PATH_PROG(PATH_TO_FPING,fping)
if test -x "$PATH_TO_FPING"
then
-@@ -727,6 +748,7 @@
+@@ -819,6 +820,7 @@
EXTRAS="$EXTRAS check_fping"
else
echo "** Get fping from http://www.fping.com in order to make check_fping plugin"