change the package "pretty name" to CDimg|tools
[cdimgtools.git] / configure.ac
blob7d152a76e3f86f08ad3a638497bc39ba5f45692e
1 # -*- Autoconf -*-
2 # configure.ac - process this file with autoconf to produce a configure script
3 # Copyright © 2012,2013 Géraud Meyer <graud@gmx.com>
4 #   This file is part of CDimg|tools.
6 #   CDimg|tools is free software; you can redistribute it and/or modify it under
7 #   the terms of the GNU General Public License version 2 as published by the
8 #   Free Software Foundation.
10 #   This package is distributed in the hope that it will be useful, but WITHOUT
11 #   ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
12 #   FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
13 #   more details.
15 #   You should have received a copy of the GNU General Public License
16 #   along with CDimg|tools.  If not, see <http://www.gnu.org/licenses/>.
18 AC_PREREQ([2.62])
19 define([dynamic_version], [esyscmd(./version.sh | tr -d '\n')])
20 AC_INIT([CDimg|tools], [dynamic_version], [g_raud@gna.org], [cdimgtools])
21 AC_CONFIG_SRCDIR([cssdec.c])
22 AC_CONFIG_HEADERS([config.h])
23 m4_include([m4/ax_prog_perl_modules.m4])
25 # Checks for programs.
26 AC_PROG_SED
27 AC_PROG_CC
28 AC_PROG_INSTALL
29 AC_PROG_LN_S
30 AC_PROG_MAKE_SET
32 AC_CHECK_PROGS(ASCIIDOC, [asciidoc], [false])
33 AC_CHECK_PROGS(POD2MAN, [pod2man], [false])
34 AC_CHECK_PROGS(POD2HTML, [pod2html], [false])
35 AC_CHECK_PROGS(XMLTO, [xmlto], [false])
37 # Checks for libraries.
38 AC_CHECK_LIB([dvdcss], [dvdcss_open], [], [AC_MSG_ERROR([Could not find libdvdcss])])
39 AC_CHECK_LIB([dvdread], [UDFFindFile], [], [AC_MSG_ERROR([Could not find libdvdread])])
41 # Checks for header files.
42 AC_CHECK_HEADERS([fcntl.h limits.h stdlib.h string.h unistd.h])
43 AC_SYS_LARGEFILE
45 # Checks for typedefs, structures, and compiler characteristics.
46 AC_TYPE_OFF_T
47 AC_TYPE_SIZE_T
48 AC_TYPE_SSIZE_T
49 AC_CHECK_MEMBERS([struct stat.st_rdev])
50 AC_TYPE_UINT32_T
52 # Checks for library functions.
53 AC_FUNC_MALLOC
54 AC_CHECK_FUNCS([strerror strtol])
56 # Runtime dependencies
57 AC_SYS_INTERPRETER
58 if test x$interpval = xno; then
59         AC_MSG_WARN([the scripts provided may be unusable])
61 AC_PATH_PROG(PERL, perl perl5.004 perl5.003 perl5.002 perl5.001 perl5, no)
62 if test x$PERL = xno; then
63         PERL=/usr/bin/perl
64         AC_MSG_WARN([perl not found; default of $PERL used])
66 AX_PROG_PERL_MODULES([Pod::Usage String::Escape Data::Hexdumper], ,
67         AC_MSG_WARN([some Perl modules not found]))
69 AC_CONFIG_FILES([config.make])
70 AC_OUTPUT