diff --git a/cmake/config-ix.cmake b/cmake/config-ix.cmake index b70e6566747..d0ba8ee9f1b 100755 --- a/cmake/config-ix.cmake +++ b/cmake/config-ix.cmake @@ -176,16 +176,6 @@ 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 ) - check_symbol_exists(lrand48 stdlib.h HAVE_RAND48_LRAND48) - if( HAVE_RAND48_LRAND48 ) - check_symbol_exists(drand48 stdlib.h HAVE_RAND48_DRAND48) - if( HAVE_RAND48_DRAND48 ) - set(HAVE_RAND48 1 CACHE INTERNAL "are srand48/lrand48/drand48 available?") - endif() - endif() -endif() check_symbol_exists(strtoll stdlib.h HAVE_STRTOLL) check_symbol_exists(strtoq stdlib.h HAVE_STRTOQ) 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 27486fff464..deecd0bc9da 100644 --- a/include/llvm/Config/config.h.cmake +++ b/include/llvm/Config/config.h.cmake @@ -212,9 +212,6 @@ /* Have pthread_rwlock_init */ #cmakedefine HAVE_PTHREAD_RWLOCK_INIT ${HAVE_PTHREAD_RWLOCK_INIT} -/* Define to 1 if srand48/lrand48/drand48 exist in */ -#cmakedefine HAVE_RAND48 ${HAVE_RAND48} - /* Define to 1 if you have the `realpath' function. */ #cmakedefine HAVE_REALPATH ${HAVE_REALPATH}