meson: add -Didn=yes|no option

This commit is contained in:
Zbigniew Jędrzejewski-Szmek 2017-06-16 09:16:28 -04:00
parent 6326a14326
commit d1bf56759b
2 changed files with 4 additions and 0 deletions

View File

@ -1009,6 +1009,7 @@ foreach pair : [['utmp', 'HAVE_UTMP'],
['ima', 'HAVE_IMA'],
['smack', 'HAVE_SMACK'],
['gshadow', 'ENABLE_GSHADOW'],
['idn', 'ENABLE_IDN'],
]
if get_option(pair[0])
@ -2448,6 +2449,7 @@ foreach tuple : [
['microhttpd'],
['gnutls'],
['libcurl'],
['idn'],
['libidn2'],
['libidn'],
['libiptc'],

View File

@ -197,6 +197,8 @@ option('libcryptsetup', type : 'combo', choices : ['auto', 'true', 'false'],
description : 'libcryptsetup support')
option('libcurl', type : 'combo', choices : ['auto', 'true', 'false'],
description : 'libcurl support')
option('idn', type : 'boolean',
description : 'use IDN when printing host names')
option('libidn2', type : 'combo', choices : ['auto', 'true', 'false'],
description : 'libidn2 support')
option('libidn', type : 'combo', choices : ['auto', 'true', 'false'],