diff options
author | Yu Watanabe <watanabe.yu+github@gmail.com> | 2019-06-28 20:13:30 +0200 |
---|---|---|
committer | Yu Watanabe <watanabe.yu+github@gmail.com> | 2019-06-28 20:13:36 +0200 |
commit | 1b9313991b3adefadc5bde1b3555450fc2b65259 (patch) | |
tree | fcb3ea097446bc559f6c974792c3f77666ac423f /meson.build | |
parent | meson: drop unused debug option (diff) | |
download | systemd-1b9313991b3adefadc5bde1b3555450fc2b65259.tar.xz systemd-1b9313991b3adefadc5bde1b3555450fc2b65259.zip |
meson: default to use libidn2 if both libidn2 and libidn are installed
Diffstat (limited to 'meson.build')
-rw-r--r-- | meson.build | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/meson.build b/meson.build index 0f44814db4..c60c4ab873 100644 --- a/meson.build +++ b/meson.build @@ -985,24 +985,24 @@ if want_libidn == 'true' and want_libidn2 == 'true' error('libidn and libidn2 cannot be requested simultaneously') endif -if want_libidn != 'false' and want_libidn2 != 'true' and not skip_deps - libidn = dependency('libidn', - required : want_libidn == 'true') +if want_libidn2 != 'false' and want_libidn != 'true' and not skip_deps + libidn = dependency('libidn2', + required : want_libidn2 == 'true') have = libidn.found() else have = false libidn = [] endif -conf.set10('HAVE_LIBIDN', have) -if not have and want_libidn2 != 'false' and not skip_deps +conf.set10('HAVE_LIBIDN2', have) +if not have and want_libidn != 'false' and not skip_deps # libidn is used for both libidn and libidn2 objects - libidn = dependency('libidn2', - required : want_libidn2 == 'true') + libidn = dependency('libidn', + required : want_libidn == 'true') have = libidn.found() else have = false endif -conf.set10('HAVE_LIBIDN2', have) +conf.set10('HAVE_LIBIDN', have) want_libiptc = get_option('libiptc') if want_libiptc != 'false' and not skip_deps |