aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrent Cook <busterb@gmail.com>2021-11-09 23:04:29 -0600
committerBrent Cook <busterb@gmail.com>2021-11-09 23:04:29 -0600
commit2ac3d32ec532b9e62efe20f3e7d03245cd2b09c3 (patch)
tree232f4f698846e7ab19f76e8d553f47c14a0d3c97
parentf69066726257d07257fce6c5f076bbf27f49b376 (diff)
downloadportable-2ac3d32ec532b9e62efe20f3e7d03245cd2b09c3.tar.gz
portable-2ac3d32ec532b9e62efe20f3e7d03245cd2b09c3.tar.bz2
portable-2ac3d32ec532b9e62efe20f3e7d03245cd2b09c3.zip
Update CMake for new header checks
-rw-r--r--CMakeLists.txt10
1 files changed, 10 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 8338ab9..ef9070b 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -286,11 +286,21 @@ if(HAVE_MEMMEM)
286 add_definitions(-DHAVE_MEMMEM) 286 add_definitions(-DHAVE_MEMMEM)
287endif() 287endif()
288 288
289check_include_files(endian.h HAVE_ENDIAN_H)
290if(HAVE_ENDIAN_H)
291 add_definitions(-DHAVE_ENDIAN_H)
292endif()
293
289check_include_files(err.h HAVE_ERR_H) 294check_include_files(err.h HAVE_ERR_H)
290if(HAVE_ERR_H) 295if(HAVE_ERR_H)
291 add_definitions(-DHAVE_ERR_H) 296 add_definitions(-DHAVE_ERR_H)
292endif() 297endif()
293 298
299check_include_files(netinet/ip.h HAVE_NETINET_IP_H)
300if(HAVE_NETINET_IP_H)
301 add_definitions(-DHAVE_NETINET_IP_H)
302endif()
303
294if(ENABLE_ASM) 304if(ENABLE_ASM)
295 if("${CMAKE_C_COMPILER_ABI}" STREQUAL "ELF") 305 if("${CMAKE_C_COMPILER_ABI}" STREQUAL "ELF")
296 if("${CMAKE_SYSTEM_PROCESSOR}" MATCHES "(x86_64|amd64)") 306 if("${CMAKE_SYSTEM_PROCESSOR}" MATCHES "(x86_64|amd64)")