diff options
author | Jeff Mahoney <jeffm@suse.com> | 2018-04-30 10:37:08 -0400 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2018-06-07 16:37:35 +0200 |
commit | eb7b42003a7d3a1d4c0253c6d5a248c9078c6d19 (patch) | |
tree | f09fbe12c1bac6772668daa4fabc6f48e56bc835 /configure.ac | |
parent | 1c73f56f5a41f44a6196d06675cfb0fcdd2bbd9d (diff) |
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 <jeffm@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index 3db28b4c..2567de12 100644 --- a/configure.ac +++ b/configure.ac @@ -26,6 +26,7 @@ AC_CONFIG_SRCDIR([btrfs.c]) AC_PREFIX_DEFAULT([/usr/local]) AC_PROG_CC +BTRFS_DETECT_CSTD AC_CANONICAL_HOST AC_C_CONST AC_C_VOLATILE |