]> Git Repo - qemu.git/commitdiff
configure / meson: Move check for sys/signal.h to meson.build
authorThomas Huth <[email protected]>
Wed, 18 Nov 2020 17:10:50 +0000 (18:10 +0100)
committerLaurent Vivier <[email protected]>
Sun, 13 Dec 2020 22:56:16 +0000 (23:56 +0100)
This check can be done in a much shorter way in meson.build

Signed-off-by: Thomas Huth <[email protected]>
Reviewed-by: Philippe Mathieu-Daudé <[email protected]>
Reviewed-by: Richard Henderson <[email protected]>
Message-Id: <20201118171052[email protected]>
Signed-off-by: Laurent Vivier <[email protected]>
configure
meson.build

index ec2fae9e09c036b2b6a9aadfb12cf11de1416695..4f0f9c99d3d2d5fa2ea38384cc953fde975effbf 100755 (executable)
--- a/configure
+++ b/configure
@@ -3101,13 +3101,6 @@ EOF
     fi
 fi
 
-#########################################
-# sys/signal.h check
-have_sys_signal_h=no
-if check_include "sys/signal.h" ; then
-  have_sys_signal_h=yes
-fi
-
 ##########################################
 # VTE probe
 
@@ -6204,9 +6197,6 @@ fi
 if test "$have_openpty" = "yes" ; then
     echo "HAVE_OPENPTY=y" >> $config_host_mak
 fi
-if test "$have_sys_signal_h" = "yes" ; then
-    echo "HAVE_SYS_SIGNAL_H=y" >> $config_host_mak
-fi
 
 # Work around a system header bug with some kernel/XFS header
 # versions where they both try to define 'struct fsxattr':
index fc7ae6f86826d38da1574705d32a71436bc6926f..a790cc527cf9b083ea2b2143814a5407002cf5ee 100644 (file)
@@ -839,6 +839,7 @@ config_host_data.set('QEMU_VERSION_MICRO', meson.project_version().split('.')[2]
 config_host_data.set('HAVE_DRM_H', cc.has_header('libdrm/drm.h'))
 config_host_data.set('HAVE_PTY_H', cc.has_header('pty.h'))
 config_host_data.set('HAVE_SYS_IOCCOM_H', cc.has_header('sys/ioccom.h'))
+config_host_data.set('HAVE_SYS_SIGNAL_H', cc.has_header('sys/signal.h'))
 
 ignored = ['CONFIG_QEMU_INTERP_PREFIX'] # actually per-target
 arrays = ['CONFIG_AUDIO_DRIVERS', 'CONFIG_BDRV_RW_WHITELIST', 'CONFIG_BDRV_RO_WHITELIST']
This page took 0.036069 seconds and 4 git commands to generate.