Backported #6865: Disable websockets command line option
[platform/upstream/freerdp.git] / cmake / FindDevD.cmake
1 # Configure devd environment
2 #
3 # DEVD_FOUND - system has a devd
4 # DEVD_BIN_DIR - devd bin dir
5 # DEVD_SKT_DIR - devd socket dir
6 #
7 # Copyright (c) 2015 Rozhuk Ivan <rozhuk.im@gmail.com>
8 # Redistribution and use is allowed according to the terms of the BSD license.
9 #
10
11
12 FIND_PATH(
13     DEVD_BIN_DIR
14     NAMES devd
15     PATHS /sbin /usr/sbin /usr/local/sbin
16 )
17
18 FIND_PATH(
19     DEVD_SKT_DIR
20     NAMES devd.seqpacket.pipe devd.pipe
21     PATHS /var/run/
22 )
23
24
25 if (DEVD_BIN_DIR)
26     set(DEVD_FOUND "YES")
27     message(STATUS "devd found")
28     if (NOT DEVD_SKT_DIR)
29         message(STATUS "devd not running!")
30     endif (NOT DEVD_SKT_DIR)
31 endif (DEVD_BIN_DIR)