gl: fix build if libjpeg is not available

If libjpeg is not available, leave HAVE_JPEG undefined in
config.h, instead of defining it to 0. Fixes mismatch between
autotools conditional and ifdefs in the code.
This commit is contained in:
Tim-Philipp Müller 2017-12-20 16:01:38 +00:00
parent 0dd66648c3
commit a6976b7e1b

View file

@ -1022,7 +1022,6 @@ fi
if test x$HAVE_JPEG = xyes; then
AC_DEFINE(HAVE_JPEG, [1], [Use libjpeg])
else
AC_DEFINE(HAVE_JPEG, [0], [Use libjpeg])
JPEG_LIBS=
fi
AC_SUBST(JPEG_LIBS)