+
+AC_DEFUN([GCC_STACK_PROTECT_CC],[
+ ssp_cc=yes
+ if test "X$CC" != "X"; then
+ AC_MSG_CHECKING([whether ${CC} accepts -fstack-protector])
+ ssp_old_cflags="$CFLAGS"
+ CFLAGS="$CFLAGS -fstack-protector"
+ AC_TRY_COMPILE(,,, ssp_cc=no)
+ echo $ssp_cc
+ if test "X$ssp_cc" = "Xno"; then
+ CFLAGS="$ssp_old_cflags"
+ else
+ AC_DEFINE([ENABLE_SSP_CC], 1, [Define if SSP C support is enabled.])
+ fi
+ fi
+])
+
+GCC_STACK_PROTECT_CC
+