From: Darren S. <ds...@us...> - 2005-05-11 19:55:11
|
Update of /cvsroot/xine/gnome-xine/m4 In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv7795/m4 Added Files: _gxine.m4 Log Message: Define always_inline using the GCC 'always_inline' attribute (where supported). --- NEW FILE: _gxine.m4 --- dnl AC_C_ALWAYS_INLINE dnl Define inline to something appropriate, including the new always_inline dnl attribute from gcc 3.1 dnl Based on code by Michel LESPINASSE <wa...@zo...> dnl This variant leaves inline unchanged and defines always_inline. AC_DEFUN([AC_C_ALWAYS_INLINE], [AC_C_INLINE if test x"$GCC" = x"yes" -a x"$ac_cv_c_inline" = x"inline"; then AC_MSG_CHECKING([for always_inline]) SAVE_CFLAGS="$CFLAGS" CFLAGS="$CFLAGS -Wall -Werror" AC_TRY_COMPILE([],[inline __attribute__ ((__always_inline__)) void f (void);], [ac_cv_always_inline=yes],[ac_cv_always_inline=no]) CFLAGS="$SAVE_CFLAGS" AC_MSG_RESULT([$ac_cv_always_inline]) if test x"$ac_cv_always_inline" = x"yes"; then always_inline='inline __attribute__ ((__always_inline__))' else always_inline=inline fi else always_inline='' fi AC_DEFINE_UNQUOTED([always_inline],[$always_inline],[use to force inlining (if possible)]) ]) |