removed a spare alsa check, and made sure it fails for alsa 0.9.x
authorErik Walthinsen <omega@temple-baptist.org>
Sun, 27 May 2001 23:52:20 +0000 (23:52 +0000)
committerErik Walthinsen <omega@temple-baptist.org>
Sun, 27 May 2001 23:52:20 +0000 (23:52 +0000)
Original commit message from CVS:
removed a spare alsa check, and made sure it fails for alsa 0.9.x

configure.in

index 18e0b66..686026e 100644 (file)
@@ -252,6 +252,12 @@ dnl Check for libasound
 alsa_save_LIBS=$LIBS
 alsa_save_CFLAGS=$CFLAGS
 AM_PATH_ALSA(0.5.0, HAVE_LIBASOUND=yes, HAVE_LIBASOUND=no)
+AM_PATH_ALSA(0.9.0,
+  HAVE_LIBASOUND=no
+  AC_MSG_WARN(
+***** NOTE: These plugins won't be built: gstalsa
+)
+  , )
 LIBS=$alsa_save_LIBS
 CFLAGS=$alsa_save_CFLAGS
 AC_ARG_ENABLE(alsasink,
@@ -277,20 +283,6 @@ else
 fi
 AC_SUBST(AUDIOFILE_LIBS)
 
-alsa_save_LIBS=$LIBS
-alsa_save_CFLAGS=$CFLAGS
-AM_PATH_ALSA(0.5.0, HAVE_LIBASOUND=yes, HAVE_LIBASOUND=no)
-LIBS=$alsa_save_LIBS
-CFLAGS=$alsa_save_CFLAGS
-AC_ARG_ENABLE(alsasink,
-[  --enable-alsasink          enable the building of the alsasink],
-[case "${enableval}" in
-       yes) HAVE_LIBASOUND=$HAVE_LIBASOUND ;;
-       no) HAVE_LIBASOUND=no ;;
-       *) AC_MSG_ERROR(bad value ${enableval} for --enable-alsasink) ;;
-esac],
-[HAVE_LIBASOUND=$HAVE_LIBASOUND])
-
 dnl Check for libgdk-pixbuf
 AC_PATH_PROG(GDK_PIXBUF_CONFIG, gdk-pixbuf-config, no)
 if test x$GDK_PIXBUF_CONFIG = xno; then