C11 checks

This commit is contained in:
Ruben Laguna 2015-01-28 22:22:23 +01:00
parent acf94f5710
commit 5998ad3ae8
2 changed files with 15 additions and 1 deletions

View File

@ -7,14 +7,27 @@ AM_INIT_AUTOMAKE
AC_CONFIG_SRCDIR([src/main.c])
AC_CONFIG_HEADERS([config.h])
AC_LANG([C]) # Use C not C++
# Checks for programs.
AC_PROG_CC
# In case that you want to check for specific versions of gcc
# For example in case that you need C11 support you want to
# check for gcc-4.9
#AC_PROG_CC([gcc-4.9 gcc cc])
AC_PROG_INSTALL
# Checks for libraries.
# Checks for header files.
AC_CHECK_HEADERS([stdlib.h])
AC_CHECK_HEADER([stdlib.h])
# Check for C11's optional Atomic operations library
# AC_CHECK_HEADER([stdatomic.h], [], [
# AC_MSG_ERROR([C11 with atomic support needed.])
# ])
# Checks for typedefs, structures, and compiler characteristics.

View File

@ -1,2 +1,3 @@
bin_PROGRAMS = myexecutable
myexecutable_SOURCES = main.c
myexecutable_CFLAGS = #--std=c11 # CFLAGS applicable to myexecutable_SOURCES