C11 checks
This commit is contained in:
parent
acf94f5710
commit
5998ad3ae8
15
configure.ac
15
configure.ac
|
@ -7,14 +7,27 @@ AM_INIT_AUTOMAKE
|
||||||
AC_CONFIG_SRCDIR([src/main.c])
|
AC_CONFIG_SRCDIR([src/main.c])
|
||||||
AC_CONFIG_HEADERS([config.h])
|
AC_CONFIG_HEADERS([config.h])
|
||||||
|
|
||||||
|
AC_LANG([C]) # Use C not C++
|
||||||
|
|
||||||
# Checks for programs.
|
# Checks for programs.
|
||||||
AC_PROG_CC
|
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
|
AC_PROG_INSTALL
|
||||||
|
|
||||||
# Checks for libraries.
|
# Checks for libraries.
|
||||||
|
|
||||||
# Checks for header files.
|
# 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.
|
# Checks for typedefs, structures, and compiler characteristics.
|
||||||
|
|
||||||
|
|
|
@ -1,2 +1,3 @@
|
||||||
bin_PROGRAMS = myexecutable
|
bin_PROGRAMS = myexecutable
|
||||||
myexecutable_SOURCES = main.c
|
myexecutable_SOURCES = main.c
|
||||||
|
myexecutable_CFLAGS = #--std=c11 # CFLAGS applicable to myexecutable_SOURCES
|
||||||
|
|
Loading…
Reference in New Issue
Block a user