1 dnl --------------------------------------------------------------------------
2 dnl PA_CHECK_BAD_STDC_INLINE
4 dnl Some versions of gcc seem to apply -Wmissing-prototypes to C99
5 dnl inline functions, which means we need to use GNU inline syntax
6 dnl --------------------------------------------------------------------------
7 AC_DEFUN([PA_CHECK_BAD_STDC_INLINE],
8 [AC_MSG_CHECKING([if $CC supports C99 external inlines])
9 AC_COMPILE_IFELSE([AC_LANG_SOURCE([
12 /* Don't mistake GNU inlines for c99 */
13 #if defined(__GNUC__) && !defined(__GNUC_STDC_INLINE__)
14 # error "Using gnu inline standard"
23 AC_DEFINE([HAVE_STDC_INLINE], 1,
24 [Define to 1 if your compiler supports C99 extern inline])],
26 PA_ADD_CFLAGS([-fgnu89-inline])])])