Fix buffer length misatch that breaks GRUB installation

Signed-off-by: Richard Yao <ryao@cs.stonybrook.edu>
Fix undefined uint32_t and uint64_t problem

Signed-off-by: Richard Yao <ryao@cs.stonybrook.edu>
Fix whitespace so that building with gmake works

Signed-off-by: Richard Yao <ryao@cs.stonybrook.edu>
Disable strict aliasing

This is 900_all_grub-0.97-no-strict-aliasing.patch from Gentoo

Signed-off-by: Richard Yao <ryao@cs.stonybrook.edu>
Fix infinite boot loop with >=gcc-4.6

This is patch/901_all_grub-0.97-fix-gcc46-reboot-issue.patch from Gentoo

https://bugs.gentoo.org/show_bug.cgi?id=360513
http://code.google.com/p/grub4dos-chenall/source/browse/trunk/stage2/bios.c?spec=svn290&r=290

Signed-off-by: Richard Yao <ryao@cs.stonybrook.edu>
Disable SSE Code Generation

Attempting to use the CPU's SSE capabilities in GRUB requires
initializing SSE support. GRUB does not do that, so we disable SSE
assembly generation.

This is 908_all_grub-0.97-no-sse.patch from Gentoo.

http://wiki.osdev.org/SSE#Adding_support
https://bugs.gentoo.org/360513

Signed-off-by: Richard Yao <ryao@cs.stonybrook.edu>
Fix miscompilation with GCC 4.6

This is 012_all_grub-0.97-gcc46.patch from Gentoo

Signed-off-by: Richard Yao <ryao@cs.stonybrook.edu>
Automake files use reserved keyword

This is 825_all_grub-0.97-automake-pkglib.patch from Gentoo.

Signed-off-by: Richard Yao <ryao@cs.stonybrook.edu>
GPT Partition Support

This is 600_all_grub-0.97-gpt-partition-table.patch from Gentoo.

Signed-off-by: Richard Yao <ryao@cs.stonybrook.edu>
Use AM_PROG_AS

This is 008_all_grub-0.97-AM_PROG_AS.patch from Gentoo.

Signed-off-by: Richard Yao <ryao@cs.stonybrook.edu>
Remove superfluous trailing backslash

The following error being output from automake caused a build failure in
Gentoo:

stage2/Makefile.am:30: blank line following trailing backslash

Signed-off-by: Richard Yao <ryao@cs.stonybrook.edu>
PIC Support

This is 005_all_grub-0.96-PIC.patch from Gentoo.

Signed-off-by: Richard Yao <ryao@cs.stonybrook.edu>
Make gpt.h use types.h

Signed-off-by: Richard Yao <ryao@cs.stonybrook.edu>
Silence GCC warning about the address of 'config_file' always being true

This is 018_all_grub-0.97-config-file-chk.patch from Gentoo

Signed-off-by: Richard Yao <ryao@cs.stonybrook.edu>
Add PIE configure check

This is 860_all_grub-0.97-pie.patch from Gentoo

Signed-off-by: Richard Yao <ryao@cs.stonybrook.edu>