Fix regression caused by 027a1298c22aeecc2fee2d270cd86790530892f6
Fix regression caused by 027a1298c22aeecc2fee2d270cd86790530892f6

VA/EGL depends on EGL/egl.h, so checking for eglGetDisplay in -lEGL
doesn't mean it could be compiled or not.

Signed-off-by: Xiang, Haihao <8d677183e5993577d4fa73a419b76987913292d6@intel.com>

Distrotech/libva,chenxianqin/vaapi-libva,pma1/libva,01org/iotg-lin-gfx-libva,pma1/libva,01org/iotg-lin-gfx-libva,pma1/libva,zzhhui/libva,01org/libva-cros,gbeauchesne/libva,01org/iotg-lin-gfx-libva,Distrotech/libva,gbeauchesne/libva,zzhhui/libva,01org/libva-cros,01org/libva-cros,chenxianqin/vaapi-libva,chenxianqin/vaapi-libva,gbeauchesne/libva,Distrotech/libva,zzhhui/libva