aboutsummaryrefslogtreecommitdiffstats
path: root/configure.ac
diff options
context:
space:
mode:
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac15
1 files changed, 13 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac
index b69b043..6e52005 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1,5 +1,4 @@
-# Process this file with autoconf to produce a configure script.
-AC_PREREQ(2.52)
+# Process this file with autoconf to produce a configure script.AC_PREREQ(2.52)
AC_INIT(tvtime, 1.0.2, http://tvtime.net/)
AC_CONFIG_SRCDIR([src/tvtime.c])
AM_INIT_AUTOMAKE(tvtime,1.0.2)
@@ -91,6 +90,18 @@ AC_SUBST(XML2_FLAG)
dnl ---------------------------------------------
+dnl asound
+dnl ---------------------------------------------
+dnl Test for libasound
+AC_CHECK_LIB(asound, snd_pcm_open,
+ [ AC_CHECK_HEADER(alsa/asoundlib.h,
+ have_asound=yes
+ ASOUND_LIBS="-lasound",)], AC_MSG_ERROR(asound needed))
+
+AM_CONDITIONAL(HAVE_ASOUND, [test x"$have_asound" = "xyes"])
+AC_SUBST(ASOUND_LIBS)
+
+dnl ---------------------------------------------
dnl check for gtk+-2.0
dnl ---------------------------------------------
dnl PKG_CHECK_MODULES(GTK, gtk+-2.0)

Privacy Policy