[libsoup] meson: Avoid a conditional expression when checking cURL



commit a1a42371ed4aec2945206313da314b7399829d69
Author: Iñigo Martínez <inigomartinez gmail com>
Date:   Fri Apr 13 10:16:10 2018 +0200

    meson: Avoid a conditional expression when checking cURL
    
    The `HAVE_CURL` definition in the `config.h` file can use the
    conditional expression directly without a previous evaluation.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=795233

 meson.build |    4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)
---
diff --git a/meson.build b/meson.build
index a95e543..71d30e3 100644
--- a/meson.build
+++ b/meson.build
@@ -151,9 +151,7 @@ if have_apache
   cdata.set('IF_HAVE_MOD_UNIXD', apache_mod_unixd.returncode() == 0 ? '' : '#')
 endif
 
-if find_program('curl', required : false).found()
-  cdata.set('HAVE_CURL', '1')
-endif
+cdata.set('HAVE_CURL', find_program('curl', required : false).found())
 
 ##################
 # GSSAPI support #


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]