--- libdv-0.99/configure.ac.orig 2003-05-13 15:12:50.000000000 +0200 +++ libdv-0.99/configure.ac 2003-05-13 15:12:54.000000000 +0200 @@ -150,11 +150,13 @@ AM_CONDITIONAL(HOST_X86, $arch_x86) dnl Checks for libraries. - +if $use_gtk; then REQUIRES='glib >= 1.2.4 gtk+ >= 1.2.4' PKG_CHECK_MODULES(GTK,$REQUIRES) dnl Libs above are required for the apps, but not for the lib itself. +else REQUIRES='' +fi dnl pass-thru to .pc files AC_SUBST(REQUIRES) @@ -233,4 +235,17 @@ AC_SUBST(ac_aux_dir) AC_SUBST(RPM_RELEASE) -AC_OUTPUT(Makefile libdv.spec libdv.pc libdv/Makefile playdv/Makefile encodedv/Makefile) +if $use_gtk; then +subdirs="libdv playdv encodedv" +else +subdirs="libdv" +fi +AC_SUBST(subdirs) + +if $use_gtk; then +makefiles="Makefile libdv.spec libdv.pc libdv/Makefile playdv/Makefile encodedv/Makefile" +else +makefiles="Makefile libdv.spec libdv.pc libdv/Makefile" +fi +AC_CONFIG_FILES($makefiles) +AC_OUTPUT()