+2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
+
+ * configure.ac: Don't add -no-itegrated-as on clang on non-x86.
+
2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
Allow compiling with clang (not really supported though).
]])],
[grub_cv_cc_target_clang=no], [grub_cv_cc_target_clang=yes])])
-if test "x$grub_cv_cc_target_clang" = xyes; then
+# clang doesn't support .code16
+if test "x$grub_cv_cc_target_clang" = xyes && ( test "x$target_cpu" = xi386 || test "x$target_cpu" = xx86_64 ); then
TARGET_CCASFLAGS="$TARGET_CCASFLAGS -no-integrated-as"
fi