From eb7b42003a7d3a1d4c0253c6d5a248c9078c6d19 Mon Sep 17 00:00:00 2001 From: Jeff Mahoney Date: Mon, 30 Apr 2018 10:37:08 -0400 Subject: btrfs-progs: build: detect whether -std=gnu90 is supported GCC releases prior to 4.5.0 don't support -std=gnu90 so btrfs-progs won't build at all on older distros. We can detect whether the compiler supports -std=gnu90 and fall back to -std=gnu89 if it doesn't. AX_CHECK_COMPILE_FLAG is the right way to do this, but it depends on autoconf 2.64. AX_GCC_VERSION has been deprecated, so we'll use that only for earlier autoconf versions so we can drop it when we drop support for older autoconf releases. Signed-off-by: Jeff Mahoney Signed-off-by: David Sterba --- Makefile.inc.in | 1 + 1 file changed, 1 insertion(+) (limited to 'Makefile.inc.in') diff --git a/Makefile.inc.in b/Makefile.inc.in index 52410f69..fb324614 100644 --- a/Makefile.inc.in +++ b/Makefile.inc.in @@ -4,6 +4,7 @@ export CC = @CC@ +CSTD = @BTRFS_CSTD_FLAGS@ LN_S = @LN_S@ AR = @AR@ RM = @RM@ -- cgit v1.2.3