Upgrade bison from 2.3 to 2.7

See README.android for how the upgrade was done.

Bug: 8517572
Change-Id: I1e42ab59ff385130a7e488371c6058a13add244d
Merge "Upgrade bison from 2.3 to 2.7"
Don't set PKGDATADIR to an absolute path

For we are going to check in a prebuilt bison to the source tree,
it makes no sense to embed a full absolute path in the bison binary.
That means you can run the built bison only from the top of the source
tree.
To run it from somewhere else, you need to set up environmental variable
BISON_PKGDATADIR.

Bug: 8517572
Change-Id: Iaa81b30781a6a9162c775cdadaa759dad79a179d
resolved conflicts for merge of 5656a481 to jb-mr2-dev-plus-aosp

Change-Id: I9d8dfaf94cd66233c4ae99d73c85152517885965
Merge "Don't set PKGDATADIR to an absolute path"
resolved conflicts for merge of a48f77b5 to jb-mr2-dev-plus-aosp

Change-Id: I6f978c9bd94fbe23a3789b2ae81ab7d86b3c2d71
Fix bison build with MacOSX SDK 10.6

10.6 doesn't have strndup and getline needed by bison 2.7
Add missing libraries from lib/.  Work for 10.7.x and 10.8.x too.

Change-Id: I10641f90a491c2e41e99d446b0dcccfef7fe3efc
Merge "Fix bison build with MacOSX SDK 10.6"
am 73e72295: Merge "Fix bison build with MacOSX SDK 10.6"

* commit '73e722959b6a8ced494ddfc1256e3d6db1a646c4':
  Fix bison build with MacOSX SDK 10.6
Merge tag 'tags/android-4.4_r1' into kitkat-staging

Android 4.4 Release 1.0