-noinst_PROGRAMS = test-cleanup
+noinst_PROGRAMS = test-cleanup test-reuse
INCLUDES = -I$(top_srcdir) -I$(srcdir)
AM_CFLAGS = $(GST_PLUGINS_BASE_CFLAGS) $(GST_CFLAGS)
AM_LDFLAGS = \
$(GST_LIBS) \
- $(top_builddir)/gst/rtsp-server/libgstrtspserver-@GST_MAJORMINOR@.la
+ $(top_builddir)/gst/rtsp-server/libgstrtspserver-@GST_API_VERSION@.la
+if HAVE_CHECK
+SUBDIRS_CHECK = check
+else
+SUBDIRS_CHECK =
+endif
+
+SUBDIRS = \
+ $(SUBDIRS_CHECK)
+
+DIST_SUBDIRS = \
+ check