File: configure.in

package info (click to toggle)
lirc-xmms-plugin 1.2-3
  • links: PTS
  • area: main
  • in suites: woody
  • size: 572 kB
  • ctags: 63
  • sloc: sh: 7,327; ansic: 1,199; makefile: 51
file content (43 lines) | stat: -rw-r--r-- 925 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
dnl $Id: configure.in,v 1.10 2001/01/06 15:41:31 columbus Exp $

dnl Process this file with autoconf to produce a configure script.
AC_INIT(lirc.c)
AM_INIT_AUTOMAKE(lirc-xmms-plugin, 1.2)
AM_CONFIG_HEADER(config.h)
AM_DISABLE_STATIC
AM_PROG_LIBTOOL

CFLAGS="-O2 -g -Wall"

dnl Checks for programs.
AC_PROG_CC
AC_PROG_INSTALL
AC_PROG_LN_S
AC_PROG_MAKE_SET

dnl Checks for libraries.

AC_PATH_VIAVOICE_TTS
AM_PATH_GTK(1.2.0)
AM_PATH_XMMS(0.9.5.1,,
  AC_MSG_ERROR([*** XMMS >= 0.9.5.1 not installed - please install first ***]))

LIBS_save=$LIBS
LIBS="$XMMS_LIBS $LIBS"
AC_CHECK_FUNCS([xmms_remote_quit])
LIBS=$LIBS_save

dnl Check for LIRC client support

have_lirc=yes
AC_REQUIRE_CPP
AC_CHECK_LIB(lirc_client,lirc_init,
AC_CHECK_HEADER(lirc/lirc_client.h,true,have_lirc=no),have_lirc=no)

if test "$have_lirc" = "yes"; then
      true;
else
  AC_MSG_ERROR([*** LIRC client support not available ***]);
fi

AC_OUTPUT(Makefile)