]> git.sur5r.net Git - ptouch-print/blob - configure.ac
cleanup unneeded stuff
[ptouch-print] / configure.ac
1 #
2 #       ptouch-print - Print labels with images or text on a Brother P-Touch
3 #       
4 #       Copyright (C) 2015 Dominic Radermacher <blip@mockmoon-cybernetics.ch>
5 #
6 #       This program is free software; you can redistribute it and/or modify it
7 #       under the terms of the GNU General Public License version 3 as
8 #       published by the Free Software Foundation
9 #       
10 #       This program is distributed in the hope that it will be useful, but
11 #       WITHOUT ANY WARRANTY; without even the implied warranty of
12 #       MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
13 #       See the GNU General Public License for more details.
14 #       
15 #       You should have received a copy of the GNU General Public License
16 #       along with this program; if not, write to the Free Software Foundation,
17 #       Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18
19 #                                               -*- Autoconf -*-
20 # Process this file with autoconf to produce a configure script.
21
22 AC_PREREQ([2.69])
23 AC_INIT([ptouch], [1.3.4], [blip@mockmoon-cybernetics.ch])
24 AC_CONFIG_SRCDIR([src/libptouch.c])
25 AC_CONFIG_HEADERS([config.h])
26
27 # Checks for programs.
28 AC_PROG_CC
29 AC_PROG_INSTALL
30 AM_INIT_AUTOMAKE
31 AM_GNU_GETTEXT([external])
32 AM_GNU_GETTEXT_VERSION(0.19)
33
34 # Checks for libraries.
35 AC_CHECK_LIB([gd], [gdImageStringFT])
36 AC_CHECK_LIB([usb-1.0], [libusb_init])
37
38 # Checks for header files.
39 AC_CHECK_HEADERS([fcntl.h libintl.h stdint.h stdlib.h string.h])
40 AC_CHECK_HEADERS([gd.h], [], [AC_MSG_ERROR([libgd headers missing - maybe you need to install package gd-dev or gd-devel?])])
41 AC_CHECK_HEADERS([libusb-1.0/libusb.h], [], [AC_MSG_ERROR([libusb headers missing - maybe you need to install package libusb-dev or libusb-devel?])])
42
43 # Checks for typedefs, structures, and compiler characteristics.
44 AC_TYPE_SSIZE_T
45 AC_TYPE_UINT8_T
46
47 # Checks for library functions.
48 AC_FUNC_MALLOC
49 AC_CHECK_FUNCS([memset setlocale strpbrk strtol])
50
51 AC_CONFIG_FILES([Makefile po/Makefile.in])
52 AC_OUTPUT