diff --git a/ext/gl/Makefile.am b/ext/gl/Makefile.am index b1796f69cc..2d1376529d 100644 --- a/ext/gl/Makefile.am +++ b/ext/gl/Makefile.am @@ -47,11 +47,6 @@ OPENGL_SOURCES += \ gstglbumper.h \ gstgldifferencematte.c \ gstgldifferencematte.h -if HAVE_JPEG -OPENGL_SOURCES += \ - gstgloverlay.c \ - gstgloverlay.h -endif endif endif @@ -85,6 +80,14 @@ libgstopengl_la_SOURCES += \ gstgltransformation.h endif +if HAVE_JPEG +if HAVE_PNG +libgstopengl_la_SOURCES += \ + gstgloverlay.c \ + gstgloverlay.h +endif +endif + # check order of CFLAGS and LIBS, shouldn't the order be the other way around # (like in AM_CFLAGS)? libgstopengl_la_CFLAGS = \