Browse Source

configure.ac: Fix inline function test

fixes #1171
master
Samuel Thibault 3 years ago
parent
commit
a25849e4d5
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      configure.ac

+ 2
- 2
configure.ac View File

AC_MSG_CHECKING([if $CC supports C99 without any flags]) AC_MSG_CHECKING([if $CC supports C99 without any flags])
AC_COMPILE_IFELSE( AC_COMPILE_IFELSE(
[AC_LANG_PROGRAM( [AC_LANG_PROGRAM(
[[static inline int c99_restrict(int *restrict c99_restrict) {}]],
[[static inline void c99_restrict(int *restrict c99_restrict) {}]],
[[]])], [[]])],
[AC_MSG_RESULT([yes]) [AC_MSG_RESULT([yes])
have_c99_native=yes], have_c99_native=yes],
AC_MSG_CHECKING([if $CC supports C99 with the -std=c99 flag]) AC_MSG_CHECKING([if $CC supports C99 with the -std=c99 flag])
AC_COMPILE_IFELSE( AC_COMPILE_IFELSE(
[AC_LANG_PROGRAM( [AC_LANG_PROGRAM(
[[static inline int c99_restrict(int *restrict c99_restrict) {}]],
[[static inline void c99_restrict(int *restrict c99_restrict) {}]],
[[]])], [[]])],
[AC_MSG_RESULT([yes]) [AC_MSG_RESULT([yes])
have_c99_c99=yes], have_c99_c99=yes],

Loading…
Cancel
Save