diff options
author | Iñigo Martínez <inigomartinez@gmail.com> | 2018-04-13 10:16:10 +0200 |
---|---|---|
committer | Iñigo Martínez <inigomartinez@gmail.com> | 2018-04-13 16:16:38 +0200 |
commit | a1a42371ed4aec2945206313da314b7399829d69 (patch) | |
tree | 6895f8390eff1962015f5e4b13526b742812d594 | |
parent | 31a332fbc9e4bcf147411ba756d14ff2b4906805 (diff) | |
download | libsoup-a1a42371ed4aec2945206313da314b7399829d69.tar.gz |
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
-rw-r--r-- | meson.build | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/meson.build b/meson.build index a95e5432..71d30e31 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 # |