[cmake] Check for realpath availability in CMake
authorAlexey Samsonov <samsonov@google.com>
Mon, 26 Aug 2013 18:11:25 +0000 (18:11 +0000)
committerAlexey Samsonov <samsonov@google.com>
Mon, 26 Aug 2013 18:11:25 +0000 (18:11 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@189249 91177308-0d34-0410-b5e6-96231b3b80d8

cmake/config-ix.cmake
include/llvm/Config/config.h.cmake

index 681a4d629fe5e2224d1470a78cb77f273d416689..3bf75836f1c3c84544b69de795fcb48ce7d6b928 100755 (executable)
@@ -160,6 +160,7 @@ check_symbol_exists(gettimeofday sys/time.h HAVE_GETTIMEOFDAY)
 check_symbol_exists(getrlimit "sys/types.h;sys/time.h;sys/resource.h" HAVE_GETRLIMIT)
 check_symbol_exists(posix_spawn spawn.h HAVE_POSIX_SPAWN)
 check_symbol_exists(pread unistd.h HAVE_PREAD)
+check_symbol_exists(realpath stdlib.h HAVE_REALPATH)
 check_symbol_exists(sbrk unistd.h HAVE_SBRK)
 check_symbol_exists(srand48 stdlib.h HAVE_RAND48_SRAND48)
 if( HAVE_RAND48_SRAND48 )
index 572fb6f58aad412fe8f71a14bcf57130a7cbab31..825349cf26250e38b9ed5e44dfa400e3f7954e06 100644 (file)
 #cmakedefine HAVE_READDIR ${HAVE_READDIR}
 
 /* Define to 1 if you have the `realpath' function. */
-#undef HAVE_REALPATH
+#cmakedefine HAVE_REALPATH ${HAVE_REALPATH}
 
 /* Define to 1 if you have the `rintf' function. */
 #undef HAVE_RINTF