Path: blob/main/irc/hexchat/files/patch-meson.build
18157 views
--- meson.build.orig 2021-10-01 21:52:09.000000000 +02001+++ meson.build 2021-10-07 10:35:49.739120000 +02002@@ -15,7 +15,7 @@34libgio_dep = dependency('gio-2.0', version: '>= 2.34.0')5libgmodule_dep = dependency('gmodule-2.0')6-7+libssl_dep_found = false8libcanberra_dep = dependency('libcanberra', version: '>= 0.22',9required: get_option('libcanberra'))10dbus_glib_dep = dependency('dbus-glib-1', required: get_option('dbus'))11@@ -25,7 +25,16 @@12libssl_dep = cc.find_library('libssl')13else14libssl_dep = dependency('openssl', version: '>= 0.9.8',15- required: get_option('tls'))16+ required: false)17+ if not libssl_dep.found()18+ libssl_dep = [19+ cc.find_library('ssl', required: get_option('tls')),20+ cc.find_library('crypto', required: get_option('tls'))21+ ]22+ libssl_dep_found = libssl_dep[0].found()23+ else24+ libssl_dep_found = libssl_dep.found()25+ endif26endif2728config_h = configuration_data()29@@ -37,7 +46,7 @@30config_h.set10('ENABLE_NLS', true)3132# Optional features33-config_h.set('USE_OPENSSL', libssl_dep.found())34+config_h.set('USE_OPENSSL', libssl_dep_found)35config_h.set('USE_LIBCANBERRA', libcanberra_dep.found())36config_h.set('USE_DBUS', dbus_glib_dep.found())37config_h.set('USE_PLUGIN', get_option('plugin'))38@@ -57,7 +66,7 @@39join_paths(get_option('prefix'), get_option('libdir'), 'hexchat/plugins')40)4142-if libssl_dep.found()43+if libssl_dep_found44config_h.set('HAVE_X509_GET_SIGNATURE_NID',45cc.has_function('X509_get_signature_nid', dependencies: libssl_dep)46)47@@ -178,7 +187,7 @@48}, section: 'Directories')4950summary({51- 'TLS (openssl)': libssl_dep.found(),52+ 'TLS (openssl)': libssl_dep_found,53'Plugin Support': get_option('plugin'),54'DBus Support': dbus_glib_dep.found(),55'libcanberra': libcanberra_dep.found(),565758