]> git.alsa-project.org Git - alsa-utils.git/commitdiff
GTK build fixed...
authorJaroslav Kysela <perex@perex.cz>
Fri, 4 Jun 1999 14:53:01 +0000 (14:53 +0000)
committerJaroslav Kysela <perex@perex.cz>
Fri, 4 Jun 1999 14:53:01 +0000 (14:53 +0000)
Makefile.am
configure.in

index c8fd5f3dad020bd9feca28a9585fb4547cfe8e50..d4920cf926db0375bd288e2ae83d5f813e21f2a6 100644 (file)
@@ -1,5 +1,10 @@
 INCLUDES=-I$(top_srcdir)/include
-SUBDIRS=include alsactl alsamixer amixer aplay utils xamixer2
+SUBDIRS1=include alsactl alsamixer amixer aplay utils
+if COND_XAMIXER2
+SUBDIRS=$(SUBDIRS1) xamixer2
+else
+SUBDIRS=$(SUBDIRS1)
+endif
 EXTRA_DIST=ChangeLog INSTALL README configure cvscompile
 
 rpm: dist
index 5aafc31de59db10ab69dcf6e578c48394fce47ac..2e214c1d1a379910377b26377fb23bc83d8d444e 100644 (file)
@@ -41,13 +41,9 @@ AC_PROG_GCC_TRADITIONAL
 
 SAVE_UTIL_VERSION
 
-if test "$GTK_LIBS" != ""; then 
+AM_CONDITIONAL(COND_XAMIXER2, test "x$GTK_LIBS" != "x")
+if test "x$GTK_LIBS" = "x"; then
+  AC_MSG_RESULT(Not building XAmixer2 as Gtk+ was not found.)
+fi
 AC_OUTPUT(Makefile alsactl/Makefile alsamixer/Makefile amixer/Makefile aplay/Makefile \
           include/Makefile utils/Makefile utils/alsa-utils.spec xamixer2/Makefile)
-
-else
-       AC_MSG_RESULT(Not building XAmixer2 as Gtk+ was not found.)
-AC_OUTPUT(Makefile alsactl/Makefile alsamixer/Makefile amixer/Makefile aplay/Makefile \
-          include/Makefile utils/Makefile utils/alsa-utils.spec)
-fi
-