Update for libswo decoder API changes
[swodec.git] / configure.ac
blobd6d6f651e58fa08779ad61ee0255d8c22d5ec2b2
1 ##
2 ## This file is part of the swodec project.
3 ##
4 ## Copyright (C) 2014 Marc Schink <swo-dev@marcschink.de>
5 ##
6 ## This program is free software: you can redistribute it and/or modify
7 ## it under the terms of the GNU General Public License as published by
8 ## the Free Software Foundation, either version 3 of the License, or
9 ## (at your option) any later version.
11 ## This program is distributed in the hope that it will be useful,
12 ## but WITHOUT ANY WARRANTY; without even the implied warranty of
13 ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14 ## GNU General Public License for more details.
16 ## You should have received a copy of the GNU General Public License
17 ## along with this program.  If not, see <http://www.gnu.org/licenses/>.
20 AC_PREREQ([2.69])
22 AC_INIT([swodec], [0.1.0], [BUG-REPORT-ADDRESS])
23 AC_CONFIG_HEADERS([config.h])
24 AC_CONFIG_MACRO_DIR([m4])
25 AC_CONFIG_AUX_DIR([build-aux])
27 AM_INIT_AUTOMAKE([foreign -Wall -Werror])
29 # Enable additional compiler warnings via -Wall and -Wextra.
30 CFLAGS="$CFLAGS -Wall -Wextra -Werror"
32 # Checks for programs.
33 AC_PROG_CC
35 # Initialize pkg-config.
36 PKG_PROG_PKG_CONFIG
38 # Checks for libraries.
40 # Check for glib-2.0 which is always needed.
41 PKG_CHECK_MODULES([glib], [glib-2.0 >= 2.28.0],
42         [CFLAGS="$CFLAGS $glib_CFLAGS"; LIBS="$LIBS $glib_LIBS"])
44 # Check for libswo-0.1 which is always needed.
45 PKG_CHECK_MODULES([libswo], [libswo >= 0.1.0],
46         [CFLAGS="$CFLAGS $libswo_CFLAGS"; LIBS="$LIBS $libswo_LIBS"])
48 # Checks for header files.
50 # Checks for typedefs, structures, and compiler characteristics.
52 # Checks for library functions.
54 AC_CONFIG_FILES([Makefile])
55 AC_CONFIG_FILES([src/Makefile])
57 AC_OUTPUT