From: Douglas Gregor Date: Mon, 27 Jul 2009 18:23:41 +0000 (+0000) Subject: CMake configuration: find mkdtemp, mkstemp, mktemp. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=a4e387933940539d811e4ec8561fc101a9fed48a;p=oota-llvm.git CMake configuration: find mkdtemp, mkstemp, mktemp. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77219 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/cmake/config-ix.cmake b/cmake/config-ix.cmake index 3d97d42cd65..c52b70bfb82 100755 --- a/cmake/config-ix.cmake +++ b/cmake/config-ix.cmake @@ -65,6 +65,9 @@ check_symbol_exists(floorf math.h HAVE_FLOORF) check_symbol_exists(mallinfo malloc.h HAVE_MALLINFO) check_symbol_exists(malloc_zone_statistics malloc/malloc.h HAVE_MALLOC_ZONE_STATISTICS) +check_symbol_exists(mkdtemp unistd.h HAVE_MKDTEMP) +check_symbol_exists(mkstemp unistd.h HAVE_MKSTEMP) +check_symbol_exists(mktemp unistd.h HAVE_MKTEMP) check_symbol_exists(pthread_mutex_lock pthread.h HAVE_PTHREAD_MUTEX_LOCK) check_symbol_exists(strtoll stdlib.h HAVE_STRTOLL) check_symbol_exists(strerror string.h HAVE_STRERROR) diff --git a/include/llvm/Config/config.h.cmake b/include/llvm/Config/config.h.cmake index 8a52f92503b..3a0a67f92b1 100644 --- a/include/llvm/Config/config.h.cmake +++ b/include/llvm/Config/config.h.cmake @@ -237,13 +237,13 @@ #cmakedefine HAVE_MEMORY_H ${HAVE_MEMORY_H} /* Define to 1 if you have the `mkdtemp' function. */ -#undef HAVE_MKDTEMP +#cmakedefine HAVE_MKDTEMP ${HAVE_MKDTEMP} /* Define to 1 if you have the `mkstemp' function. */ -#undef HAVE_MKSTEMP +#cmakedefine HAVE_MKSTEMP ${HAVE_MKSTEMP} /* Define to 1 if you have the `mktemp' function. */ -#undef HAVE_MKTEMP +#cmakedefine HAVE_MKTEMP ${HAVE_MKTEMP} /* Define to 1 if you have a working `mmap' system call. */ #undef HAVE_MMAP