comparison libpurple/plugins/ssl/Makefile.am @ 24294:e39cafdbe089

Only build SSL plugins if the corresponding library is present. Previously, stub versions of the plugins were built which refused to load if the corresponding library was missing, which seems ... unconventional to me.
author Will Thompson <will.thompson@collabora.co.uk>
date Sat, 25 Oct 2008 14:33:54 +0000
parents 441945083737
children bcad7dc4b453
comparison
equal deleted inserted replaced
24293:9fc78d436de3 24294:e39cafdbe089
7 ssl_gnutls_la_LDFLAGS = -module -avoid-version 7 ssl_gnutls_la_LDFLAGS = -module -avoid-version
8 ssl_nss_la_LDFLAGS = -module -avoid-version 8 ssl_nss_la_LDFLAGS = -module -avoid-version
9 9
10 if PLUGINS 10 if PLUGINS
11 11
12 # I'm sorry to report that Automake Conditionals don't support
13 # if USE_GNUTLS && USE_NSS
14 # but only support testing a single variable. Hence:
15
16 if USE_GNUTLS
17 if USE_NSS
12 plugin_LTLIBRARIES = \ 18 plugin_LTLIBRARIES = \
13 ssl.la \ 19 ssl.la \
14 ssl-gnutls.la \ 20 ssl-gnutls.la \
15 ssl-nss.la 21 ssl-nss.la
22 else
23 plugin_LTLIBRARIES = \
24 ssl.la \
25 ssl-gnutls.la
26 endif
27 else
28 if USE_NSS
29 plugin_LTLIBRARIES = \
30 ssl.la \
31 ssl-nss.la
32 else
33 plugin_LTLIBRARIES = \
34 ssl.la
35 endif
36 endif
16 37
17 ssl_la_SOURCES = ssl.c 38 ssl_la_SOURCES = ssl.c
18 ssl_gnutls_la_SOURCES = ssl-gnutls.c 39 ssl_gnutls_la_SOURCES = ssl-gnutls.c
19 ssl_nss_la_SOURCES = ssl-nss.c 40 ssl_nss_la_SOURCES = ssl-nss.c
20 41