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
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/>.
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.
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])
45 # Checks for typedefs, structures, and compiler characteristics.
49 AC_CHECK_MEMBERS([struct stat.st_rdev])
52 # Checks for library functions.
54 AC_CHECK_FUNCS([strerror strtol])
56 # Runtime dependencies
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
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])