Changeset 1f86d5e for configure.ac


Ignore:
Timestamp:
Feb 10, 2019, 10:12:55 AM (6 years ago)
Author:
Peter A. Buhr <pabuhr@…>
Branches:
ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, persistent-indexer, pthread-emulation, qualifiedEnum
Children:
015dc50
Parents:
4fd45bc
Message:

remove unnecessary requirements in configure.ac, add check for -Wcast-function-type and _FloatNN, disable -Wcast-function-type for gcc-8

File:
1 edited

Legend:

Unmodified
Added
Removed
  • configure.ac

    r4fd45bc r1f86d5e  
    178178AC_PROG_CC
    179179AM_PROG_AS
    180 AM_PROG_CC_C_O  # deprecated
    181180# These are often not installed and people miss seeing the "no", so stop the configure.
    182181AC_PROG_YACC
     
    186185AC_PROG_LIBTOOL
    187186AC_PROG_INSTALL
    188 AC_PROG_MAKE_SET
    189187
    190188# Checks for libraries.
     
    193191
    194192# Checks for header files.
    195 AC_FUNC_ALLOCA
    196 AC_CHECK_HEADERS([fenv.h float.h inttypes.h libintl.h limits.h malloc.h stddef.h stdlib.h string.h unistd.h])
     193AC_CHECK_HEADERS([libintl.h malloc.h unistd.h], [], [echo "Error: Missing required header"; exit 1])
    197194
    198195# Checks for typedefs, structures, and compiler characteristics.
    199 AC_HEADER_STDBOOL
    200 AC_C_INLINE
    201 AC_TYPE_INT16_T
    202 AC_TYPE_INT32_T
    203 AC_TYPE_INT8_T
    204 AC_C_RESTRICT
    205 AC_TYPE_SIZE_T
    206 AC_TYPE_UINT16_T
    207 AC_TYPE_UINT32_T
    208 AC_TYPE_UINT8_T
    209 
    210 # Checks for library functions.
    211 AC_CHECK_FUNCS([memset putenv strchr strtol])
     196AC_CHECK_TYPES([_Float32], AC_DEFINE([HAVE_KEYWORDS_FLOATXX], [], [Have keywords _FloatXX.]), [], [[]])
     197
     198# Checks for compiler flags.
     199M4CFA_CHECK_COMPILE_FLAG([-Wcast-function-type], AC_DEFINE([HAVE_CAST_FUNCTION_TYPE], [], [Have compiler warning cast-function-type.]))
    212200
    213201#==============================================================================
Note: See TracChangeset for help on using the changeset viewer.