+2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
+
+ * configure.ac: Do CPU substitution even if it's specified explicitly.
+ Reported and tested by: Alain Greppin.
+
2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
* grub-core/Makefile.am (rs_decoder.S): Force compilation with -Os.
platform="$with_platform"
fi
-# Adjust CPU unless target was explicitly specified.
-if test -z "$target_alias"; then
- case "$target_cpu"-"$platform" in
- x86_64-efi) ;;
- x86_64-emu) ;;
- x86_64-*) target_cpu=i386 ;;
- powerpc64-ieee1275) target_cpu=powerpc ;;
- esac
-fi
+case "$target_cpu"-"$platform" in
+ x86_64-efi) ;;
+ x86_64-emu) ;;
+ x86_64-*) target_cpu=i386 ;;
+ powerpc64-ieee1275) target_cpu=powerpc ;;
+esac
# Check if the platform is supported, make final adjustments.
case "$target_cpu"-"$platform" in