meson: Add fallback for openssl
authorJakub Adam <jakub.adam@collabora.com>
Wed, 2 Jan 2019 11:53:56 +0000 (12:53 +0100)
committerJakub Adam <jakub.adam@collabora.com>
Wed, 2 Jan 2019 12:06:10 +0000 (13:06 +0100)
meson.build

index c905399..f6d7d93 100644 (file)
@@ -188,7 +188,8 @@ if opt_cryptolib != 'openssl'
     if opt_cryptolib != 'auto'
       error('GnuTLS requested as crypto library, but not found')
     endif
-    crypto_dep = dependency('openssl', required: false)
+    crypto_dep = dependency('openssl', required: false, 
+      fallback: ['openssl', 'openssl_dep'])
     cdata.set('HAVE_OPENSSL', crypto_dep.found())
   endif
 else