1if (WITH_DOC)
2  find_package (Doxygen)
3endif (WITH_DOC)
4
5if (WITH_LIBMETAL_FIND)
6  find_package (Libmetal REQUIRED)
7  collect (PROJECT_INC_DIRS "${LIBMETAL_INCLUDE_DIR}")
8  collect (PROJECT_LIB_DIRS "${LIBMETAL_LIB_DIR}")
9  collect (PROJECT_LIB_DEPS "${LIBMETAL_LIB}")
10endif (WITH_LIBMETAL_FIND)
11
12if ("${CMAKE_SYSTEM_NAME}" STREQUAL "Linux")
13  check_include_files (stdatomic.h HAVE_STDATOMIC_H)
14  check_include_files (fcntl.h HAVE_FCNTL_H)
15else ("${CMAKE_SYSTEM_NAME}" STREQUAL "Linux")
16  set (_saved_cmake_required_flags ${CMAKE_REQUIRED_FLAGS})
17  set (CMAKE_REQUIRED_FLAGS "-c")
18  check_include_files (stdatomic.h HAVE_STDATOMIC_H)
19  check_include_files (fcntl.h HAVE_FCNTL_H)
20  set (CMAKE_REQUIRED_FLAGS ${_saved_cmake_required_flags})
21endif ("${CMAKE_SYSTEM_NAME}" STREQUAL "Linux")
22
23if (NOT HAVE_FCNTL_H)
24  unset (WITH_PROXY CACHE)
25endif (NOT HAVE_FCNTL_H)
26