meson: Add configure option and autodetection of HAVE_INPUTTHREAD.

Signed-off-by: Eric Anholt <eric@anholt.net>
1 job for meson in 1 minute and 35 seconds (queued for 1 second)