mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2026-02-12 16:10:54 +00:00
build: use -std=gnu11 by default
We require C11 for stdatomic.h
This commit is contained in:
@ -90,6 +90,14 @@ AC_CHECK_MEMBERS([struct perf_event_attr.use_clockid, struct perf_event_attr.clo
|
|||||||
[[#include <linux/perf_event.h>]])
|
[[#include <linux/perf_event.h>]])
|
||||||
|
|
||||||
|
|
||||||
|
dnl ***********************************************************************
|
||||||
|
dnl Ensure C11 is Supported
|
||||||
|
dnl ***********************************************************************
|
||||||
|
AX_CHECK_COMPILE_FLAG([-std=gnu11],
|
||||||
|
[CFLAGS="$CFLAGS -std=gnu11"],
|
||||||
|
[AC_MSG_ERROR([C compiler cannot compile GNU C11 code])])
|
||||||
|
|
||||||
|
|
||||||
dnl ***********************************************************************
|
dnl ***********************************************************************
|
||||||
dnl Check for required packages
|
dnl Check for required packages
|
||||||
dnl ***********************************************************************
|
dnl ***********************************************************************
|
||||||
|
|||||||
Reference in New Issue
Block a user