From f9a7132df8f8e0dd0f54fd603d358fc5a2285011 Mon Sep 17 00:00:00 2001 From: Joerg Sonnenberger Date: Mon, 25 Mar 2013 13:13:33 +0000 Subject: Refine fenv.h handling: check if the desired macros exist, before using it. NetBSD/ARM and TILE-Gx are examples for platforms that have an unusable fenv.h and this avoids the need for a blacklist. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@177865 91177308-0d34-0410-b5e6-96231b3b80d8 --- autoconf/configure.ac | 1 + 1 file changed, 1 insertion(+) (limited to 'autoconf') diff --git a/autoconf/configure.ac b/autoconf/configure.ac index 9d61c24e7a..0097db3d68 100644 --- a/autoconf/configure.ac +++ b/autoconf/configure.ac @@ -1493,6 +1493,7 @@ AC_CHECK_HEADERS([sys/mman.h sys/param.h sys/resource.h sys/time.h sys/uio.h]) AC_CHECK_HEADERS([sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h]) AC_CHECK_HEADERS([valgrind/valgrind.h]) AC_CHECK_HEADERS([fenv.h]) +AC_CHECK_DECLS([FE_ALL_EXCEPT, FE_INEXACT], [], [], [[#include ]]) if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then AC_CHECK_HEADERS(pthread.h, AC_SUBST(HAVE_PTHREAD, 1), -- cgit v1.2.3-18-g5258