2 # ptouch-print - Print labels with images or text on a Brother P-Touch
4 # Copyright (C) 2015 Dominic Radermacher <dominic.radermacher@gmail.com>
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
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.
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
20 # Process this file with autoconf to produce a configure script.
23 AC_INIT([ptouch], [1.3.2], [dominic.radermacher@gmail.com])
24 AC_CONFIG_SRCDIR([src/libptouch.c])
25 AC_CONFIG_HEADERS([config.h])
27 # Checks for programs.
31 AM_GNU_GETTEXT([external])
32 AM_GNU_GETTEXT_VERSION(0.19)
34 # Checks for libraries.
35 AC_CHECK_LIB([gd], [gdImageStringFT])
36 AC_CHECK_LIB([usb-1.0], [libusb_init])
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?])])
43 # Checks for typedefs, structures, and compiler characteristics.
47 # Checks for library functions.
49 AC_CHECK_FUNCS([memset setlocale strpbrk strtol])
51 AC_CONFIG_FILES([Makefile po/Makefile.in])