This configure check was broken by looking for GL/egl.h instead of
EGL/egl.h as it should. This failure was masked on any system with an
EGL implementation providing a pkg-config file (egl.pc).
fi
rm -f glx-minimal glx-minimal.c
fi
rm -f glx-minimal glx-minimal.c
-printf " Checking for GL/egl.h... "
+printf " Checking for EGL/egl.h... "
have_egl=No
if pkg-config --exists egl; then
printf "Yes.\n"
have_egl=Yes
egl_cflags=$(pkg-config --cflags egl)
else
have_egl=No
if pkg-config --exists egl; then
printf "Yes.\n"
have_egl=Yes
egl_cflags=$(pkg-config --cflags egl)
else
- printf "#include <GL/egl.h>\nint main(void){return 0;}\n" > egl-minimal.c
+ printf "#include <EGL/egl.h>\nint main(void){return 0;}\n" > egl-minimal.c
if ${CC} -o egl-minimal egl-minimal.c ${gl_cflags} > /dev/null 2>&1
then
printf "Yes.\n"
if ${CC} -o egl-minimal egl-minimal.c ${gl_cflags} > /dev/null 2>&1
then
printf "Yes.\n"