Skip to content

Commit

Permalink
configure.ac: check if we build in C99 mode (via CC name or CFLAGS co…
Browse files Browse the repository at this point in the history
…ntent); advise if not

Signed-off-by: Jim Klimov <[email protected]>
  • Loading branch information
jimklimov committed Aug 12, 2024
1 parent d0cabbb commit a2f9e06
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,13 @@ AC_CHECK_HEADERS(unistd.h stdlib.h stdio.h string.h signal.h ctype.h stdarg.h X1
dnl Checks for library functions.
dnl AC_FUNC_MALLOC

AC_MSG_CHECKING([whether we build in C99/GNU99 mode])
AS_CASE(["${CC}${CFLAGS}"],
[*99*], [AC_MSG_RESULT(yes)],
[AC_MSG_RESULT(no)
AC_MSG_WARN([If your build fails due to standard system header method and type names, or ISO C90 warnings, make sure you build in C99 mode (or newer)])
])

AC_CONFIG_FILES([
Makefile
src/Makefile
Expand Down

0 comments on commit a2f9e06

Please sign in to comment.