summaryrefslogtreecommitdiffstats
path: root/client_examples/Makefile.am
diff options
context:
space:
mode:
authordscho <dscho>2005-06-06 19:48:38 +0000
committerdscho <dscho>2005-06-06 19:48:38 +0000
commit714bd045e7dc5bbd77773d63a2e7fec4bd54a7cd (patch)
treed331f1c8d262a0ac4cf5017431aa228a73b75b85 /client_examples/Makefile.am
parent89148d774ffe8f31f733683997974f50a522deb5 (diff)
downloadlibvncserver-714bd045e7dc5bbd77773d63a2e7fec4bd54a7cd.zip
libvncserver-714bd045e7dc5bbd77773d63a2e7fec4bd54a7cd.tar.gz
link to libmp3lame only if exists
Diffstat (limited to 'client_examples/Makefile.am')
-rw-r--r--client_examples/Makefile.am6
1 files changed, 5 insertions, 1 deletions
diff --git a/client_examples/Makefile.am b/client_examples/Makefile.am
index 1a6cdc5..7951d0e 100644
--- a/client_examples/Makefile.am
+++ b/client_examples/Makefile.am
@@ -4,8 +4,12 @@ LDADD = ../libvncclient/libvncclient.a @WSOCKLIB@
if WITH_FFMPEG
FFMPEG_HOME=@with_ffmpeg@
+if HAVE_MP3LAME
+MP3LAME_LIB=-lmp3lame
+endif
+
vnc2mpg_CFLAGS=-I$(FFMPEG_HOME)/libavformat -I$(FFMPEG_HOME)/libavcodec
-vnc2mpg_LDADD=$(LDADD) $(FFMPEG_HOME)/libavformat/libavformat.a $(FFMPEG_HOME)/libavcodec/libavcodec.a -lmp3lame -lm
+vnc2mpg_LDADD=$(LDADD) $(FFMPEG_HOME)/libavformat/libavformat.a $(FFMPEG_HOME)/libavcodec/libavcodec.a $(MP3LAME_LIB) -lm
FFMPEG_CLIENT=vnc2mpg
endif
OpenPOWER on IntegriCloud