Revision efd6d12b configure.in

View differences:

configure.in
87 87
	AC_MSG_ERROR([This program requires the GNU C Compiler.])
88 88
fi
89 89

  
90
AC_MSG_CHECKING([what CFLAGS should we use])
91 90
if test "$bird_cflags_default" = yes ; then
92
	BIRD_CHECK_GCC_OPTIONS
91
	BIRD_CHECK_GCC_OPTION(bird_cv_c_option_wno_pointer_sign, -Wno-pointer-sign, -Wall)
92
	BIRD_CHECK_GCC_OPTION(bird_cv_c_option_fno_strict_aliasing, -fno-strict-aliasing)
93
	BIRD_CHECK_GCC_OPTION(bird_cv_c_option_fno_strict_overflow, -fno-strict-overflow)
93 94

  
94 95
	CFLAGS="$CFLAGS -Wall -Wstrict-prototypes -Wno-parentheses"
95
	if test "$bird_cv_c_option_no_pointer_sign" = yes ; then
96
		CFLAGS="$CFLAGS -Wno-pointer-sign"
97
	fi
96
	BIRD_ADD_GCC_OPTION(bird_cv_c_option_wno_pointer_sign, -Wno-pointer-sign)
97
	BIRD_ADD_GCC_OPTION(bird_cv_c_option_fno_strict_aliasing, -fno-strict-aliasing)
98
	BIRD_ADD_GCC_OPTION(bird_cv_c_option_fno_strict_overflow, -fno-strict-overflow)
98 99
fi
100
AC_MSG_CHECKING([CFLAGS])
99 101
AC_MSG_RESULT($CFLAGS)
100 102

  
101 103

  

Also available in: Unified diff