From 2c201c2140f9a75f3698e988880f00f8d0492315 Mon Sep 17 00:00:00 2001 From: Zbigniew Jędrzejewski-Szmek Date: Thu, 27 Apr 2017 21:13:08 -0400 Subject: meson: use booleans for conf.set and drop unecessary conditionals Using conf.set() with a boolean argument does the right thing: either #ifdef or #undef. This means that conf.set can be used unconditionally. Previously I used '1' as the placeholder value, and that needs to be changed to 'true' for consistency (under meson 1 cannot be used in boolean context). All checks need to be adjusted. --- docs/sysvinit/meson.build | 2 +- docs/var-log/meson.build | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'docs') diff --git a/docs/sysvinit/meson.build b/docs/sysvinit/meson.build index a8f5b519a3..79d1babf16 100644 --- a/docs/sysvinit/meson.build +++ b/docs/sysvinit/meson.build @@ -3,7 +3,7 @@ file = configure_file( output : 'README', configuration : substs) -if conf.get('HAVE_SYSV_COMPAT', 0) == 1 +if conf.get('HAVE_SYSV_COMPAT', false) install_data(file, install_dir : sysvinit_path) endif diff --git a/docs/var-log/meson.build b/docs/var-log/meson.build index c833f0f5b0..d8364e38b9 100644 --- a/docs/var-log/meson.build +++ b/docs/var-log/meson.build @@ -3,7 +3,7 @@ file = configure_file( output : 'README', configuration : substs) -if conf.get('HAVE_SYSV_COMPAT', 0) == 1 +if conf.get('HAVE_SYSV_COMPAT', false) install_data(file, install_dir : varlogdir) endif -- cgit v1.2.3-54-g00ecf