-SUBDIRS = autoplug \
+
+if HAVE_GNOME
+GNOME_SUBDS = autoplug
+else
+GNOME_SUBDS =
+endif
+
+SUBDIRS = $(GNOME_SUBDS) \
helloworld helloworld2 \
queue queue2 queue3 queue4 \
launch thread xml plugins typefind
# FIXME FIXME
-noinst_PROGRAMS = qtest spectrum record wave mp3 teardown buffer mp3parse \
- mpeg2parse mp1parse mp3play ac3parse ac3play dvdcat fake cobin videotest \
- aviparse vidcapture avi2mpg mp2tomp1 mp1tomp1 pipetest \
- vidcapture2 mp2toavi mp3tovorbis mpeg2parse2 xmmstest videotest2 \
- mp3mad video2mp1 dvshow dv2mp1
+if HAVE_GNOME
+GNOME_PROGS = spectrum wave mpeg2parse mp1parse videotest aviparse \
+ mpeg2parse2 videotest2 video2mp1 dvshow dv2mp1
+else
+GNOME_PROGS =
+endif
+
+noinst_PROGRAMS = qtest $(GNOME_PROGS) record mp3 teardown buffer mp3parse \
+ mp3play ac3parse ac3play dvdcat fake cobin \
+ vidcapture avi2mpg mp2tomp1 mp1tomp1 pipetest \
+ vidcapture2 mp2toavi mp3tovorbis xmmstest \
+ mp3mad
SUBDIRS = xml bindings