configure.ac: define a c standard instead of using the compilers default

Change-Id: I9867adbed211db0a7b42ac3557f56c3042a67936
This commit is contained in:
Alexander Couzens 2021-01-01 17:04:23 +01:00 committed by daniel
parent 3c56a2aeb5
commit 78e56f15c4
1 changed files with 3 additions and 0 deletions

View File

@ -39,6 +39,9 @@ m4_ifdef([AX_CHECK_COMPILE_FLAG], [], [
AC_MSG_ERROR([Please install autoconf-archive; re-run 'autoreconf -fi' for it to take effect.])
])
dnl use a defined standard across all builds and don't depend on compiler default
CFLAGS="$CFLAGS -std=gnu11"
dnl checks for libraries
AC_SEARCH_LIBS([dlopen], [dl dld], [LIBRARY_DL="$LIBS";LIBS=""])
AC_SUBST(LIBRARY_DL)