pkg: obsolete package/svr4
[unleashed.git] / contrib / libjeffpc / cmake / config.cmake
blobb1f05f95f192cec536418cf8fee11ac3d65aa5dd
2 # Copyright (c) 2016 Josef 'Jeff' Sipek <jeffpc@josefsipek.net>
4 # Permission is hereby granted, free of charge, to any person obtaining a copy
5 # of this software and associated documentation files (the "Software"), to deal
6 # in the Software without restriction, including without limitation the rights
7 # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8 # copies of the Software, and to permit persons to whom the Software is
9 # furnished to do so, subject to the following conditions:
11 # The above copyright notice and this permission notice shall be included in
12 # all copies or substantial portions of the Software.
14 # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15 # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16 # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17 # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18 # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19 # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20 # SOFTWARE.
23 include(CheckFunctionExists)
24 include(CheckIncludeFiles)
25 include(TestBigEndian)
27 test_big_endian(CPU_BIG_ENDIAN)
29 check_function_exists(arc4random HAVE_ARC4RANDOM)
30 check_function_exists(assfail HAVE_ASSFAIL)
31 check_function_exists(addrtosymstr HAVE_ADDRTOSYMSTR)
32 check_function_exists(pthread_cond_reltimedwait_np
33         HAVE_PTHREAD_COND_RELTIMEDWAIT_NP)
34 check_include_files(sys/debug.h HAVE_SYS_DEBUG_H)
36 include("${CMAKE_DIR}/config-gnu-ld.cmake")
38 set(CMAKE_MODULE_PATH "${CMAKE_DIR}/Modules")
39 find_package(umem)
41 configure_file("${CMAKE_CURRENT_SOURCE_DIR}/include/jeffpc/config.h.in"
42         "${CMAKE_CURRENT_BINARY_DIR}/include/jeffpc/config.h")
44 include_directories("${CMAKE_CURRENT_BINARY_DIR}/include")