Don't check for libintl.h on Darwin (OSX) (dotnet/coreclr#20094)
authorDavis Goodin <dagood@users.noreply.github.com>
Mon, 24 Sep 2018 23:48:05 +0000 (18:48 -0500)
committerJan Vorlicek <janvorli@microsoft.com>
Mon, 24 Sep 2018 23:48:05 +0000 (01:48 +0200)
Commit migrated from https://github.com/dotnet/coreclr/commit/4e4665f127d2ec8f361ad068690f79be20a63280

src/coreclr/src/pal/src/configure.cmake

index 8b3fb09..c8b4d44 100644 (file)
@@ -37,7 +37,10 @@ check_include_files(sys/prctl.h HAVE_PRCTL_H)
 check_include_files(numa.h HAVE_NUMA_H)
 check_include_files(pthread_np.h HAVE_PTHREAD_NP_H)
 check_include_files("sys/auxv.h;asm/hwcap.h" HAVE_AUXV_HWCAP_H)
-check_include_files("libintl.h" HAVE_LIBINTL_H)
+
+if(NOT CMAKE_SYSTEM_NAME STREQUAL Darwin)
+  check_include_files("libintl.h" HAVE_LIBINTL_H)
+endif()
 
 if(NOT CMAKE_SYSTEM_NAME STREQUAL FreeBSD AND NOT CMAKE_SYSTEM_NAME STREQUAL NetBSD)
   set(CMAKE_REQUIRED_FLAGS "-ldl")