File: TestForSIGS.cmake

package info (click to toggle)
s3d 0.2.3-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 5,708 kB
  • sloc: ansic: 23,609; python: 488; perl: 98; makefile: 31; sh: 29
file content (16 lines) | stat: -rw-r--r-- 420 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# SPDX-License-Identifier: BSD-3-Clause
# SPDX-FileCopyrightText: 2007-2015  Sven Eckelmann <sven@narfation.org>

include(CheckFunctionExists)
check_function_exists(signal HAVE_SIGS_FUNC)

include(CheckCSourceCompiles)
check_c_source_compiles("#include<signal.h>
	int main() {
	sig_t test;
	return 0;
}" SIG_T_DEFINED)

if (HAVE_SIGS_FUNC AND SIG_T_DEFINED)
	set(HAVE_SIGS TRUE)
endif (HAVE_SIGS_FUNC AND SIG_T_DEFINED)