mistake
[irreco.git] / backend / lirc / configure.ac
blob75c0e29ce0cf24cc1ea4facb00fddb6f7cbb0c51
1 #                                               -*- Autoconf -*-
2 # Process this file with autoconf to produce a configure script.
4 AC_PREREQ(2.59)
5 AC_INIT([irreco-backend-lirc], [0.0.1])
6 AM_INIT_AUTOMAKE
7 AC_CONFIG_SRCDIR([src/backend_lirc.c])
8 AC_CONFIG_HEADER([config.h])
11 # Checks for programs.
12 AC_PROG_CC
13 AC_PROG_INSTALL
14 AC_PROG_LIBTOOL
15 AC_PROG_INTLTOOL([0.23])
18 # Debug option
19 AC_ARG_ENABLE([debug], 
20         [AC_HELP_STRING([--enable-debug=ARG],
21         [Enable / disable debugging. Disabled by default])], 
22         [enable_debug=$enableval], 
23         [enable_debug=no])
24 AS_IF(  [test "$enable_debug" != "yes"], [enable_debug=no])
25 AS_IF(  [test "$enable_debug" = "yes"], 
26         [CFLAGS="$CFLAGS -O0 -Wall -Werror -ansi -pedantic -ggdb -DDEBUG"],
27         [CFLAGS="$CFLAGS -O2 -Wall -Werror -ansi -pedantic"])
28 AC_SUBST(enable_debug)
31 # Backend dependencies
32 PKG_CHECK_MODULES(IRRECO, irreco irreco-util)
33 AC_SUBST(IRRECO_LIBS)
34 AC_SUBST(IRRECO_CFLAGS)
37 # Backend install directory.
38 irreco_backend_dir=`$PKG_CONFIG irreco --variable=backenddir`
39 AC_SUBST(irreco_backend_dir)
40 AC_DEFINE_UNQUOTED([IRRECO_BACKEND_DIR], "${irreco_backend_dir}", \
41                    [Backend Directory])
44 AC_CONFIG_FILES([Makefile
45                  po/Makefile.in
46                  po/Makefile
47                  src/Makefile])
48 AC_OUTPUT