summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJens Axboe <axboe@kernel.dk>2020-07-25 08:01:03 -0600
committerJens Axboe <axboe@kernel.dk>2020-07-25 08:01:03 -0600
commit1d458e5b8044d81b96cccfc82e3fd99cbb1eebf9 (patch)
tree27ae198627640986177f08e61f143e8f0b6f5878
parentc355011a2509fdf6caa2a220e1534d61f14c4801 (diff)
downloadfio-1d458e5b8044d81b96cccfc82e3fd99cbb1eebf9.tar.gz
fio-1d458e5b8044d81b96cccfc82e3fd99cbb1eebf9.tar.bz2
configure: error early on too old compier
Signed-off-by: Jens Axboe <axboe@kernel.dk>
-rwxr-xr-xconfigure14
1 files changed, 14 insertions, 0 deletions
diff --git a/configure b/configure
index b079a2a5..6a7bdeef 100755
--- a/configure
+++ b/configure
@@ -496,6 +496,20 @@ else
fi
##########################################
+# check compiler version
+
+cat > $TMPC <<EOF
+#include "$(pwd)/compiler/compiler.h"
+int main(void)
+{
+ return 0;
+}
+EOF
+if ! compile_prog "" "" "compiler check"; then
+ fatal "Your compiler is too old, needs GCC 4.9 or higher"
+fi
+
+##########################################
# check endianness
if test "$bigendian" != "yes" ; then
bigendian="no"