diff options
author | M. Sean Finney <seanius@users.sourceforge.net> | 2005-10-23 11:59:43 (GMT) |
---|---|---|
committer | M. Sean Finney <seanius@users.sourceforge.net> | 2005-10-23 11:59:43 (GMT) |
commit | 4c77862ce3dacfad980977490d4dec76fdbdf3d8 (patch) | |
tree | f7656bf1a65c9ff9e434cdbf4cfee6fc5e073b58 /plugins/Makefile.am | |
parent | cf66a717e9e8f55315d50b3b33a70b8a6f140981 (diff) | |
download | monitoring-plugins-4c77862ce3dacfad980977490d4dec76fdbdf3d8.tar.gz |
- compartmentalized ssl code into seperate sslutils.c
- ssl-related cleanups in configure.in, and now openssl/gnutls options
automatically disable each other.
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1258 f882894a-f735-0410-b71e-b25c423dba1c
Diffstat (limited to 'plugins/Makefile.am')
-rw-r--r-- | plugins/Makefile.am | 23 |
1 files changed, 13 insertions, 10 deletions
diff --git a/plugins/Makefile.am b/plugins/Makefile.am index beefb32..9222771 100644 --- a/plugins/Makefile.am +++ b/plugins/Makefile.am | |||
@@ -24,13 +24,15 @@ EXTRA_PROGRAMS = check_mysql check_radius check_pgsql check_snmp check_hpjd \ | |||
24 | check_nagios check_by_ssh check_dns check_nt check_ide_smart \ | 24 | check_nagios check_by_ssh check_dns check_nt check_ide_smart \ |
25 | check_procs | 25 | check_procs |
26 | 26 | ||
27 | EXTRA_DIST = t utils.c netutils.c popen.c utils.h netutils.h popen.h common.h \ | 27 | EXTRA_DIST = t utils.c netutils.c sslutils.c popen.c utils.h netutils.h \ |
28 | getaddrinfo.c getaddrinfo.h gethostbyname.c gethostbyname.h | 28 | popen.h common.h getaddrinfo.c getaddrinfo.h \ |
29 | gethostbyname.c gethostbyname.h | ||
29 | 30 | ||
30 | PLUGINHDRS = common.h | 31 | PLUGINHDRS = common.h |
31 | 32 | ||
32 | BASEOBJS = utils.o ../lib/libnagiosplug.a ../lib/libcoreutils.a | 33 | BASEOBJS = utils.o ../lib/libnagiosplug.a ../lib/libcoreutils.a |
33 | NETOBJS = netutils.o $(BASEOBJS) $(EXTRA_NETOBJS) | 34 | NETOBJS = netutils.o $(BASEOBJS) $(EXTRA_NETOBJS) |
35 | SSLOBJS = sslutils.o | ||
34 | NETLIBS = $(NETOBJS) $(SOCKETLIBS) | 36 | NETLIBS = $(NETOBJS) $(SOCKETLIBS) |
35 | 37 | ||
36 | TESTS_ENVIRONMENT = perl -I $(top_builddir) -I $(top_srcdir) | 38 | TESTS_ENVIRONMENT = perl -I $(top_builddir) -I $(top_srcdir) |
@@ -51,7 +53,7 @@ check_dns_LDADD = $(NETLIBS) popen.o | |||
51 | check_dummy_LDADD = $(BASEOBJS) | 53 | check_dummy_LDADD = $(BASEOBJS) |
52 | check_fping_LDADD = $(NETLIBS) popen.o | 54 | check_fping_LDADD = $(NETLIBS) popen.o |
53 | check_game_LDADD = $(BASEOBJS) popen.o | 55 | check_game_LDADD = $(BASEOBJS) popen.o |
54 | check_http_LDADD = $(NETLIBS) | 56 | check_http_LDADD = $(SSLOBJS) $(NETLIBS) |
55 | check_hpjd_LDADD = $(NETLIBS) popen.o | 57 | check_hpjd_LDADD = $(NETLIBS) popen.o |
56 | check_ldap_LDADD = $(NETLIBS) $(LDAPLIBS) | 58 | check_ldap_LDADD = $(NETLIBS) $(LDAPLIBS) |
57 | check_load_LDADD = $(BASEOBJS) popen.o | 59 | check_load_LDADD = $(BASEOBJS) popen.o |
@@ -68,12 +70,12 @@ check_procs_LDADD = $(BASEOBJS) popen.o | |||
68 | check_radius_LDADD = $(NETLIBS) $(RADIUSLIBS) | 70 | check_radius_LDADD = $(NETLIBS) $(RADIUSLIBS) |
69 | check_real_LDADD = $(NETLIBS) | 71 | check_real_LDADD = $(NETLIBS) |
70 | check_snmp_LDADD = $(BASEOBJS) popen.o | 72 | check_snmp_LDADD = $(BASEOBJS) popen.o |
71 | check_smtp_LDADD = $(NETLIBS) | 73 | check_smtp_LDADD = $(SSLOBJS) $(NETLIBS) |
72 | check_ssh_LDADD = $(NETLIBS) | 74 | check_ssh_LDADD = $(NETLIBS) |
73 | check_swap_LDADD = $(MATHLIBS) $(BASEOBJS) popen.o | 75 | check_swap_LDADD = $(MATHLIBS) $(BASEOBJS) popen.o |
74 | check_tcp_LDADD = $(NETLIBS) | 76 | check_tcp_LDADD = $(SSLOBJS) $(NETLIBS) |
75 | check_time_LDADD = $(NETLIBS) | 77 | check_time_LDADD = $(NETLIBS) |
76 | check_udp_LDADD = $(NETLIBS) | 78 | check_udp_LDADD = $(SSLOBJS) $(NETLIBS) |
77 | check_ups_LDADD = $(NETLIBS) | 79 | check_ups_LDADD = $(NETLIBS) |
78 | check_users_LDADD = $(BASEOBJS) popen.o | 80 | check_users_LDADD = $(BASEOBJS) popen.o |
79 | check_by_ssh_LDADD = $(NETLIBS) popen.o | 81 | check_by_ssh_LDADD = $(NETLIBS) popen.o |
@@ -87,7 +89,7 @@ check_dns_DEPENDENCIES = check_dns.c $(NETOBJS) popen.o $(DEPLIBS) | |||
87 | check_dummy_DEPENDENCIES = check_dummy.c $(DEPLIBS) | 89 | check_dummy_DEPENDENCIES = check_dummy.c $(DEPLIBS) |
88 | check_fping_DEPENDENCIES = check_fping.c $(NETOBJS) popen.o $(DEPLIBS) | 90 | check_fping_DEPENDENCIES = check_fping.c $(NETOBJS) popen.o $(DEPLIBS) |
89 | check_game_DEPENDENCIES = check_game.c $(DEPLIBS) | 91 | check_game_DEPENDENCIES = check_game.c $(DEPLIBS) |
90 | check_http_DEPENDENCIES = check_http.c $(NETOBJS) $(DEPLIBS) | 92 | check_http_DEPENDENCIES = check_http.c $(SSLOBJS) $(NETOBJS) $(DEPLIBS) |
91 | check_hpjd_DEPENDENCIES = check_hpjd.c $(NETOBJS) popen.o $(DEPLIBS) | 93 | check_hpjd_DEPENDENCIES = check_hpjd.c $(NETOBJS) popen.o $(DEPLIBS) |
92 | check_ide_smart_DEPENDENCIES = check_ide_smart.c $(BASEOBJS) $(DEPLIBS) | 94 | check_ide_smart_DEPENDENCIES = check_ide_smart.c $(BASEOBJS) $(DEPLIBS) |
93 | check_ldap_DEPENDENCIES = check_ldap.c $(NETOBJS) $(DEPLIBS) | 95 | check_ldap_DEPENDENCIES = check_ldap.c $(NETOBJS) $(DEPLIBS) |
@@ -105,12 +107,12 @@ check_procs_DEPENDENCIES = check_procs.c $(BASEOBJS) popen.o $(DEPLIBS) | |||
105 | check_radius_DEPENDENCIES = check_radius.c $(NETOBJS) $(DEPLIBS) | 107 | check_radius_DEPENDENCIES = check_radius.c $(NETOBJS) $(DEPLIBS) |
106 | check_real_DEPENDENCIES = check_real.c $(NETOBJS) $(DEPLIBS) | 108 | check_real_DEPENDENCIES = check_real.c $(NETOBJS) $(DEPLIBS) |
107 | check_snmp_DEPENDENCIES = check_snmp.c $(BASEOBJS) popen.o $(DEPLIBS) | 109 | check_snmp_DEPENDENCIES = check_snmp.c $(BASEOBJS) popen.o $(DEPLIBS) |
108 | check_smtp_DEPENDENCIES = check_smtp.c $(NETOBJS) $(DEPLIBS) | 110 | check_smtp_DEPENDENCIES = check_smtp.c $(SSLOBJS) $(NETOBJS) $(DEPLIBS) |
109 | check_ssh_DEPENDENCIES = check_ssh.c $(NETOBJS) $(DEPLIBS) | 111 | check_ssh_DEPENDENCIES = check_ssh.c $(NETOBJS) $(DEPLIBS) |
110 | check_swap_DEPENDENCIES = check_swap.c $(BASEOBJS) popen.o $(DEPLIBS) | 112 | check_swap_DEPENDENCIES = check_swap.c $(BASEOBJS) popen.o $(DEPLIBS) |
111 | check_tcp_DEPENDENCIES = check_tcp.c $(NETOBJS) $(DEPLIBS) | 113 | check_tcp_DEPENDENCIES = check_tcp.c $(SSLOBJS) $(NETOBJS) $(DEPLIBS) |
112 | check_time_DEPENDENCIES = check_time.c $(NETOBJS) $(DEPLIBS) | 114 | check_time_DEPENDENCIES = check_time.c $(NETOBJS) $(DEPLIBS) |
113 | check_udp_DEPENDENCIES = check_udp.c $(NETOBJS) $(DEPLIBS) | 115 | check_udp_DEPENDENCIES = check_udp.c $(SSLOBJS) $(NETOBJS) $(DEPLIBS) |
114 | check_ups_DEPENDENCIES = check_ups.c $(NETOBJS) $(DEPLIBS) | 116 | check_ups_DEPENDENCIES = check_ups.c $(NETOBJS) $(DEPLIBS) |
115 | check_users_DEPENDENCIES = check_users.c $(BASEOBJS) popen.o $(DEPLIBS) | 117 | check_users_DEPENDENCIES = check_users.c $(BASEOBJS) popen.o $(DEPLIBS) |
116 | check_by_ssh_DEPENDENCIES = check_by_ssh.c $(NETOBJS) popen.o $(DEPLIBS) | 118 | check_by_ssh_DEPENDENCIES = check_by_ssh.c $(NETOBJS) popen.o $(DEPLIBS) |
@@ -125,6 +127,7 @@ popen.o: popen.c popen.h $(PLUGINHDRS) | |||
125 | utils.o: utils.c utils.h $(PLUGINHDRS) | 127 | utils.o: utils.c utils.h $(PLUGINHDRS) |
126 | 128 | ||
127 | netutils.o: netutils.c netutils.h $(PLUGINHDRS) | 129 | netutils.o: netutils.c netutils.h $(PLUGINHDRS) |
130 | sslutils.o: sslutils.c netutils.h $(PLUGINHDRS) | ||
128 | 131 | ||
129 | getaddrinfo.o: getaddrinfo.h $(PLUGINHDRS) | 132 | getaddrinfo.o: getaddrinfo.h $(PLUGINHDRS) |
130 | 133 | ||