Skip to content

Commit

Permalink
Fix #480 Build error on CentOS
Browse files Browse the repository at this point in the history
  • Loading branch information
phaag committed Nov 1, 2023
1 parent fded574 commit cbc617f
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions m4/c17.m4
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,15 @@ AC_DEFUN([AX_CHECK_C17],
[AX_APPEND_FLAG([-std=gnu17])],
[AX_CHECK_COMPILE_FLAG([-std=c17],
[AX_APPEND_FLAG([-std=c17])],
[AX_CHECK_COMPILE_FLAG([-std=c99],
[AX_APPEND_FLAG([-std=c99])],
[AC_MSG_ERROR([C compiled does not support at least C99!])])
[AX_CHECK_COMPILE_FLAG([-std=gnu11],
[AX_APPEND_FLAG([-std=gnu11])],
[AX_CHECK_COMPILE_FLAG([-std=c11],
[AX_APPEND_FLAG([-std=c11])],
[AX_CHECK_COMPILE_FLAG([-std=c99],
[AX_APPEND_FLAG([-std=c99])],
[AC_MSG_ERROR([C compiled does not support at least C99!])])
])
])
])
])
])

0 comments on commit cbc617f

Please sign in to comment.