diff options
author | Ondrej Zajicek <santiago@crfreenet.org> | 2010-03-24 16:39:18 +0100 |
---|---|---|
committer | Ondrej Zajicek <santiago@crfreenet.org> | 2010-03-24 16:39:18 +0100 |
commit | b1c030b0ba59eed6da5271ed592d6b93ed088518 (patch) | |
tree | 360bdf883e05208e63c9ef494b62ac49c377dc71 /aclocal.m4 | |
parent | 4d9a0d1f02134235bf686caf49af44232590c456 (diff) |
Adds autoconf test for -Wno-pointer-sign compliler option.
Diffstat (limited to 'aclocal.m4')
-rw-r--r-- | aclocal.m4 | 13 |
1 files changed, 13 insertions, 0 deletions
@@ -147,6 +147,19 @@ if test -z "$bird_cv_sys_linux_version" ; then fi ])]) +AC_DEFUN(BIRD_CHECK_GCC_OPTIONS, +[AC_CACHE_VAL(bird_cv_c_option_no_pointer_sign, [ +cat >conftest.c <<EOF +int main(void) +{ return 0; } +EOF +if $CC -Wall -Wno-pointer-sign conftest.c >&AS_MESSAGE_LOG_FD 2>&1 ; then + bird_cv_c_option_no_pointer_sign=yes +else + bird_cv_c_option_no_pointer_sign=no +fi +])]) + # BIRD_CHECK_PROG_FLAVOR_GNU(PROGRAM-PATH, IF-SUCCESS, [IF-FAILURE]) # copied autoconf internal _AC_PATH_PROG_FLAVOR_GNU m4_define([BIRD_CHECK_PROG_FLAVOR_GNU], |