Changeset d469e63


Ignore:
Timestamp:
Mar 11, 2015 3:58:00 PM (4 years ago)
Author:
Ted Faber <faber@…>
Branches:
master
Children:
6d1f32f
Parents:
84eeb9e
Message:

Use autoconf to set no-error=header-guard

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • Makefile.am

    r84eeb9e rd469e63  
    132132           $(XMLSEC1_INCLUDES) $(XML2_INCLUDES) $(OPENSSL_INCLUDEs)
    133133
    134 AM_CFLAGS = -DABAC_VERSION=\""$(VERSION)\"" -Wall -Werror -Wno-error=header-guard
     134AM_CFLAGS = -DABAC_VERSION=\""$(VERSION)\"" -Wall -Werror
    135135
    136136ACLOCAL_AMFLAGS=-I m4
  • configure.ac

    rb569222 rd469e63  
    5353AC_SUBST(SITE_PERL)
    5454
     55AC_LANG(C)
    5556# Checks for header files.
    5657AC_CHECK_HEADERS([inttypes.h stddef.h stdlib.h string.h readpassphrase.h paths.h])
     
    6364AC_TYPE_UINT8_T
    6465AC_CHECK_TYPES([ptrdiff_t])
     66HOLD_CFLAGS=$CFLAGS
     67CFLAGS="$CFLAGS -Wno-error=header-guard"
     68AC_COMPILE_IFELSE([[]],,CFLAGS=$HOLD_CFLAGS)
    6569
    6670AC_CHECK_DECL([_PATH_TTY],[],AC_DEFINE_UNQUOTED([_PATH_TTY],"/dev/tty",[Define to tty device node path]),[
Note: See TracChangeset for help on using the changeset viewer.