2 ## This file is part of the libjaylink project.
4 ## Copyright (C) 2014-2015 Marc Schink <jaylink-dev@marcschink.de>
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/>.
22 AC_INIT([libjaylink], [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. Use hidden
30 # visibility for all non-static symbols by default with -fvisibility=hidden.
31 CFLAGS="$CFLAGS -Wall -Wextra -Werror -fvisibility=hidden"
33 # Checks for programs.
36 # Automake >= 1.12 requires AM_PROG_AR when using options -Wall and -Werror.
37 # To be compatible with older versions of Automake use AM_PROG_AR if it's
38 # defined only. This line must occur before LT_INIT.
39 m4_ifdef([AM_PROG_AR], [AM_PROG_AR])
44 # Initialize pkg-config.
47 # Checks for libraries.
49 # Check for libusb-1.0 which is always needed.
50 PKG_CHECK_MODULES([libusb], [libusb-1.0 >= 1.0.9],
51 [CFLAGS="$CFLAGS $libusb_CFLAGS"; LIBS="$LIBS $libusb_LIBS"])
53 # Checks for header files.
55 # Checks for typedefs, structures, and compiler characteristics.
58 # Checks for library functions.
60 # Disable progress and informational output of libtool.
61 AC_SUBST(AM_LIBTOOLFLAGS, '--silent')
63 AC_CONFIG_FILES([Makefile])
64 AC_CONFIG_FILES([libjaylink/Makefile])
65 AC_CONFIG_FILES([libjaylink.pc])