diff options
author | Jordan Williams <jordan@jwillikers.com> | 2024-04-22 11:02:39 -0500 |
---|---|---|
committer | Jordan Williams <jordan@jwillikers.com> | 2024-04-24 15:30:30 -0500 |
commit | f71723ef67d4d1ab5762492c4a162498c53e51eb (patch) | |
tree | 7acca0676c11e34472c24015f0ce3b1b8403c321 | |
parent | 3e6d539e6e283927639c02792c968848f6c7dc71 (diff) | |
download | util-linux-f71723ef67d4d1ab5762492c4a162498c53e51eb.tar.gz |
meson: Add have_pty variable to check if pty is available
Signed-off-by: Jordan Williams <jordan@jwillikers.com>
-rw-r--r-- | meson.build | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/meson.build b/meson.build index 8a73248320..68d6b8bed8 100644 --- a/meson.build +++ b/meson.build @@ -796,9 +796,9 @@ int main(void) { have = cc.compiles(code, name : 'using __progname') conf.set('HAVE___PROGNAME', have ? 1 : false) -have = conf.get('HAVE_PTY_H').to_string() == '1' \ - and conf.get('HAVE_SYS_SIGNALFD_H').to_string() == '1' -conf.set('HAVE_PTY', have ? 1 : false) +have_pty = conf.get('HAVE_PTY_H').to_string() == '1' \ + and conf.get('HAVE_SYS_SIGNALFD_H').to_string() == '1' +conf.set('HAVE_PTY', have_pty ? 1 : false) have_opal_get_status= cc.has_header_symbol('linux/sed-opal.h', 'IOC_OPAL_GET_STATUS') conf.set('HAVE_OPAL_GET_STATUS', have_opal_get_status ? 1 : false) @@ -3327,7 +3327,7 @@ if conf.get('HAVE_OPENAT').to_string() == '1' \ exes += exe endif -if conf.get('HAVE_PTY').to_string() == '1' +if have_pty exe = executable( 'test_pty', pty_session_c, |