diff options
-rw-r--r-- | Makefile.am | 8 | ||||
-rw-r--r-- | sharkd_session.c | 4 |
2 files changed, 12 insertions, 0 deletions
diff --git a/Makefile.am b/Makefile.am index 519e0043a2..ff2bc694ee 100644 --- a/Makefile.am +++ b/Makefile.am @@ -587,6 +587,10 @@ sharkd_SOURCES = \ sharkd_CPPFLAGS = $(AM_CPPFLAGS) $(GLIB_CFLAGS) +if HAVE_SPEEXDSP +sharkd_CPPFLAGS += $(SPEEXDSP_CFLAGS) +endif + sharkd_LDFLAGS = $(AM_LDFLAGS) $(EXTRALINKFLAGS) # Libraries and plugin flags with which to link sharkd. @@ -604,6 +608,10 @@ sharkd_LDADD = \ @SYSTEMCONFIGURATION_FRAMEWORKS@ \ @COREFOUNDATION_FRAMEWORKS@ +if HAVE_SPEEXDSP +sharkd_LDADD += $(SPEEXDSP_LIBS) +endif + text2pcap_SOURCES = \ text2pcap.c \ text2pcap-scanner.l \ diff --git a/sharkd_session.c b/sharkd_session.c index 6dc6f3b84d..842c32c5d8 100644 --- a/sharkd_session.c +++ b/sharkd_session.c @@ -64,7 +64,11 @@ #include <epan/addr_resolv.h> #include <epan/dissectors/packet-rtp.h> #include <ui/rtp_media.h> +#ifdef HAVE_SPEEXDSP +#include <speex/speex_resampler.h> +#else #include <codecs/speex/speex_resampler.h> +#endif /* HAVE_SPEEXDSP */ #ifdef HAVE_GEOIP # include <GeoIP.h> |