Blame m4/__inline.m4

Packit Service c30d13
# Test for __inline keyword
Packit Service c30d13
dnl Copyright 2017-2018 Free Software Foundation, Inc.
Packit Service c30d13
dnl This file is free software; the Free Software Foundation
Packit Service c30d13
dnl gives unlimited permission to copy and/or distribute it,
Packit Service c30d13
dnl with or without modifications, as long as this notice is preserved.
Packit Service c30d13
Packit Service c30d13
AC_DEFUN([gl___INLINE],
Packit Service c30d13
[
Packit Service c30d13
  AC_CACHE_CHECK([whether the compiler supports the __inline keyword],
Packit Service c30d13
    [gl_cv_c___inline],
Packit Service c30d13
    [AC_COMPILE_IFELSE(
Packit Service c30d13
       [AC_LANG_PROGRAM(
Packit Service c30d13
         [[typedef int foo_t;
Packit Service c30d13
           static __inline foo_t foo (void) { return 0; }]],
Packit Service c30d13
         [[return foo ();]])],
Packit Service c30d13
       [gl_cv_c___inline=yes],
Packit Service c30d13
       [gl_cv_c___inline=no])])
Packit Service c30d13
  if test $gl_cv_c___inline = yes; then
Packit Service c30d13
    AC_DEFINE([HAVE___INLINE], [1],
Packit Service c30d13
      [Define to 1 if the compiler supports the keyword '__inline'.])
Packit Service c30d13
  fi
Packit Service c30d13
])