Refine the build option checking.
Refine the build option checking.

Signed-off-by: Yang Rong <78759e37dc7114caed18f74e7515c5cb519dbf6d@intel.com>
Reviewed-by: "Song, Ruiling" <286a174c1339c6eff91abc41c3a1012c95030c95@intel.com>

ignatenkobrain/beignet,ignatenkobrain/beignet,wdv4758h/beignet,zhenyw/beignet,wdv4758h/beignet,zhenyw/beignet,zhenyw/beignet,wdv4758h/beignet,wdv4758h/beignet,ignatenkobrain/beignet,freedesktop-unofficial-mirror/beignet,zhenyw/beignet,freedesktop-unofficial-mirror/beignet,freedesktop-unofficial-mirror/beignet,ignatenkobrain/beignet,zhenyw/beignet,freedesktop-unofficial-mirror/beignet,ignatenkobrain/beignet,wdv4758h/beignet