summaryrefslogtreecommitdiff
path: root/autoconf
diff options
context:
space:
mode:
authorNAKAMURA Takumi <geek4civic@gmail.com>2011-02-09 04:18:48 +0000
committerNAKAMURA Takumi <geek4civic@gmail.com>2011-02-09 04:18:48 +0000
commite29b0aca51e3568a92869daa70c4a0351750fd1e (patch)
tree8d1829f0069c79afc3a5e02cf97bd42e5dbd3163 /autoconf
parentfd289497a5e8f83c6d83f1eb7e30fdc52621bf15 (diff)
downloadllvm-e29b0aca51e3568a92869daa70c4a0351750fd1e.tar.gz
llvm-e29b0aca51e3568a92869daa70c4a0351750fd1e.tar.bz2
llvm-e29b0aca51e3568a92869daa70c4a0351750fd1e.tar.xz
lib/Support/Errno.cpp: Check strerror_s() with HAVE_DECL_STRERROR_S in config.h.*.
AC_CHECK_FUNCS seeks a symbol only in libs. We should check the declaration in string.h. FIXME: I have never seen mingw(s) have strerror_s() (not _strerror_s()). FIXME: Autoconf/CMake may seek strerror_s() with the definition MINGW_HAS_SECURE_API in future. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@125172 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'autoconf')
-rw-r--r--autoconf/configure.ac5
1 files changed, 4 insertions, 1 deletions
diff --git a/autoconf/configure.ac b/autoconf/configure.ac
index 5a65d35830..9259633de9 100644
--- a/autoconf/configure.ac
+++ b/autoconf/configure.ac
@@ -1391,12 +1391,15 @@ AC_CHECK_FUNCS([powf fmodf strtof round ])
AC_CHECK_FUNCS([getpagesize getrusage getrlimit setrlimit gettimeofday ])
AC_CHECK_FUNCS([isatty mkdtemp mkstemp ])
AC_CHECK_FUNCS([mktemp posix_spawn realpath sbrk setrlimit strdup ])
-AC_CHECK_FUNCS([strerror strerror_r strerror_s setenv ])
+AC_CHECK_FUNCS([strerror strerror_r setenv ])
AC_CHECK_FUNCS([strtoll strtoq sysconf malloc_zone_statistics ])
AC_CHECK_FUNCS([setjmp longjmp sigsetjmp siglongjmp writev])
AC_C_PRINTF_A
AC_FUNC_RAND48
+dnl Check the declaration "Secure API" on Windows environments.
+AC_CHECK_DECLS([strerror_s])
+
dnl Check symbols in libgcc.a for JIT on Mingw.
if test "$llvm_cv_os_type" = "MingW" ; then
AC_CHECK_LIB(gcc,_alloca,AC_DEFINE([HAVE__ALLOCA],[1],[Have host's _alloca]))