pw-cli: Work without readline too

Build and install pw-cli using getline() (standardized in POSIX.1-2008)
if readline is not found.
This commit is contained in:
Jonas Holmberg 2022-06-15 16:00:22 +02:00
parent b9fa0e6f28
commit 671fc51d27
3 changed files with 41 additions and 12 deletions

View file

@ -266,6 +266,7 @@ if not readline_dep.found()
endif
summary({'readline (for pw-cli)': readline_dep.found()}, bool_yn: true, section: 'Misc dependencies')
cdata.set('HAVE_READLINE', readline_dep.found())
ncurses_dep = dependency('ncursesw', required : false)
sndfile_dep = dependency('sndfile', version : '>= 1.0.20', required : get_option('sndfile'))
summary({'sndfile': sndfile_dep.found()}, bool_yn: true, section: 'pw-cat/pw-play/pw-dump/filter-chain')