Changeset 1f86d5e for automake


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
  • automake/cfa.m4

    r4fd45bc r1f86d5e  
    8080        esac
    8181])
     82
     83# http://git.savannah.gnu.org/gitweb/?p=autoconf-archive.git;a=blob_plain;f=m4/ax_check_compile_flag.m4
     84AC_DEFUN([M4CFA_CHECK_COMPILE_FLAG],
     85[AC_PREREQ(2.64)dnl for _AC_LANG_PREFIX and AS_VAR_IF
     86AS_VAR_PUSHDEF([CACHEVAR],[m4cfa_cv_check_[]_AC_LANG_ABBREV[]flags_$4_$1])dnl
     87AC_CACHE_CHECK([whether _AC_LANG compiler accepts $1], CACHEVAR, [
     88        m4cfa_check_save_flags=$[]_AC_LANG_PREFIX[]FLAGS
     89        _AC_LANG_PREFIX[]FLAGS="$[]_AC_LANG_PREFIX[]FLAGS $4 $1"
     90        AC_COMPILE_IFELSE([m4_default([$5],[AC_LANG_PROGRAM()])],
     91                [AS_VAR_SET(CACHEVAR,[yes])],
     92                [AS_VAR_SET(CACHEVAR,[no])])
     93        _AC_LANG_PREFIX[]FLAGS=$m4cfa_check_save_flags])
     94AS_VAR_IF(CACHEVAR,yes,
     95        [m4_default([$2], :)],
     96        [m4_default([$3], :)])
     97AS_VAR_POPDEF([CACHEVAR])dnl
     98])dnl M4CFA_CHECK_COMPILE_FLAGS
Note: See TracChangeset for help on using the changeset viewer.