diff --git a/src/Makefile.am b/src/Makefile.am index 65e05f5c9..338a6f64d 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -87,11 +87,16 @@ neutrino_LDADD = \ $(FLACLIBS) \ $(VORBISLIBS) \ -ldvbsi++ \ - -lungif \ -ljpeg \ -lOpenThreads \ -lrt -lpthread +if ENABLE_GIFLIB +neutrino_LDADD += -lgif +else +neutrino_LDADD += -lungif +endif + if ENABLE_UPNP neutrino_LDADD += \ $(top_builddir)/lib/libupnpclient/libtuxbox-upnpclient.a