1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
|
# -*- Autoconf -*-
# This file is part of Idest.
# Copyright (C) 2009-2011, 2015, 2016, 2017 Sergey Poznyakoff
#
# Idest is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3, or (at your option)
# any later version.
#
# Idest is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with Idest. If not, see <http://www.gnu.org/licenses/>.
AC_PREREQ(2.61)
AC_INIT([idest], [2.1], [bug-idest@gnu.org.ua])
AC_CONFIG_SRCDIR([src/idest.h])
AC_CONFIG_HEADER([config.h])
AC_CONFIG_AUX_DIR([build-aux])
AM_INIT_AUTOMAKE([1.9 gnits tar-ustar std-options silent-rules])
# Enable silent rules by default:
AM_SILENT_RULES([yes])
# Checks for programs.
AC_PROG_CC
gl_EARLY
# Checks for libraries.
AM_ICONV
AC_CHECK_HEADERS(iconv.h)
AC_CHECK_TYPE(iconv_t,:,
AC_DEFINE(iconv_t, int,
[Conversion descriptor type]),
[
#ifdef HAVE_ICONV_H
# include <iconv.h>
#endif
])
# Checks for header files.
AC_HEADER_STDC
# Checks for typedefs, structures, and compiler characteristics.
AC_C_CONST
AC_TYPE_SIZE_T
# Checks for library functions.
AC_FUNC_MEMCMP
AC_CHECK_FUNCS([memset strcasecmp strerror strncasecmp])
gl_INIT
GINT_INIT([gint],[1.8 with-guile nodoc],
[status_guile=yes],
[status_guile=no])
AM_CONDITIONAL([IDEST_COND_GUILE],[test $status_guile = yes])
AC_CONFIG_SUBDIRS(libid3tag)
AC_CONFIG_COMMANDS([status],[
cat <<EOF
*******************************************************************
IdEst configured with the following settings:
Use Guile...................... $status_guile
*******************************************************************
Before proceeding, verify if these satisfy your requirements.
EOF
],
[status_guile=$status_guile])
# Initialize the test suite.
AC_CONFIG_TESTDIR(tests)
AC_CONFIG_FILES([tests/Makefile tests/atlocal])
AM_MISSING_PROG([AUTOM4TE], [autom4te])
AC_CONFIG_FILES([Makefile
gnu/Makefile
gint/Makefile
src/Makefile
doc/Makefile
examples/Makefile
scheme/Makefile])
AC_OUTPUT
|