Changeset 227 for trunk/aclocal.m4


Ignore:
Timestamp:
Apr 20, 2009, 5:59:31 PM (16 years ago)
Author:
katerina
Message:

Fix warnings with -fstack-check

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/aclocal.m4

    r202 r227  
    12021202])
    12031203
     1204AC_DEFUN([GCC_STACK_CHECK_CC],[
     1205  AC_LANG_ASSERT(C)
     1206  if test "X$CC" != "X"; then
     1207    AC_CACHE_CHECK([whether ${CC} accepts -fstack-check],
     1208      stackcheck_cv_cc,
     1209      [stackcheck_old_cflags="$CFLAGS"
     1210       CFLAGS="$CFLAGS -fstack-check"
     1211       AC_TRY_COMPILE(,, stackcheck_cv_cc=yes, stackcheck_cv_cc=no)
     1212       CFLAGS="$stackcheck_old_cflags"
     1213      ])
     1214    if test $stackcheck_cv_cc = yes; then
     1215      CFLAGS="$CFLAGS -fstack-check"
     1216    fi
     1217  fi
     1218])
     1219
    12041220AC_DEFUN([GCC_WEMPTY_BODY],[
    12051221  AC_LANG_ASSERT(C)
Note: See TracChangeset for help on using the changeset viewer.