Signed-off-by: Jens Axboe <axboe@kernel.dk>
fatal "compile test failed"
fi
fatal "compile test failed"
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
##########################################
# check endianness
if test "$bigendian" != "yes" ; then