Merge branch 'master' of ssh://pege77@mercury.wipsl.com/var/git/irreco-theme-editor
[irreco.git] / backend / browser / configure.ac
blob1bba9186bd2b643b03e9cab78fbff70c9a3637cd
1 #                                               -*- Autoconf -*-
2 # Process this file with autoconf to produce a configure script.
4 AC_PREREQ(2.59)
5 AC_INIT([irreco-backend-browser], [0.0.1])
6 AM_INIT_AUTOMAKE
7 AC_CONFIG_SRCDIR([src/backend_api.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 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