Trunk cleanup: commandline
[irreco.git] / backend / dummy / trunk / configure.ac
blob0d71f83906054f060c351d90ea55513e05cf31f9
1 #                                               -*- Autoconf -*-
2 # Process this file with autoconf to produce a configure script.
4 AC_PREREQ(2.59)
5 AC_INIT([irreco-backend-dummy], [0.0.1])
6 AM_INIT_AUTOMAKE
7 AC_CONFIG_SRCDIR([src/backend_dummy.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 -ansi -pedantic -ggdb -DDEBUG"],
27         [CFLAGS="$CFLAGS -O2 -Wall -ansi -pedantic"])
28 AC_SUBST(enable_debug)
31 # Backend dependencies
32 PKG_CHECK_MODULES(IRRECO, irreco)
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