|
a |
|
b/unac/configure.ac |
|
|
1 |
#
|
|
|
2 |
# Copyright (C) 2000, 2001, 2002 Loic Dachary <loic@senga.org>
|
|
|
3 |
#
|
|
|
4 |
# This program is free software; you can redistribute it and/or modify
|
|
|
5 |
# it under the terms of the GNU General Public License as published by
|
|
|
6 |
# the Free Software Foundation; either version 2 of the License, or
|
|
|
7 |
# (at your option) any later version.
|
|
|
8 |
#
|
|
|
9 |
# This program is distributed in the hope that it will be useful,
|
|
|
10 |
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
11 |
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
12 |
# GNU General Public License for more details.
|
|
|
13 |
#
|
|
|
14 |
# You should have received a copy of the GNU General Public License
|
|
|
15 |
# along with this program; if not, write to the Free Software
|
|
|
16 |
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
|
|
17 |
#
|
|
|
18 |
AC_INIT(config.h.in)
|
|
|
19 |
VERSION=`cat ${srcdir}/.version`
|
|
|
20 |
MAJOR_VERSION=[`expr $VERSION : '\([0-9][0-9]*\)'`]
|
|
|
21 |
AC_SUBST(MAJOR_VERSION)
|
|
|
22 |
MINOR_VERSION=[`expr $VERSION : '[0-9][0-9]*\.\([0-9][0-9]*\)'`]
|
|
|
23 |
AC_SUBST(MINOR_VERSION)
|
|
|
24 |
MICRO_VERSION=[`expr $VERSION : '[0-9][0-9]*\.[0-9][0-9]*\.\([0-9][0-9]*\)'`]
|
|
|
25 |
AC_SUBST(MICRO_VERSION)
|
|
|
26 |
AM_INIT_AUTOMAKE([unac], $VERSION, nosubst)
|
|
|
27 |
AC_PREREQ(2.13)
|
|
|
28 |
|
|
|
29 |
AM_CONFIG_HEADER(config.h)
|
|
|
30 |
|
|
|
31 |
AC_PROG_MAKE_SET
|
|
|
32 |
|
|
|
33 |
dnl
|
|
|
34 |
dnl Unicode version used by unac, as published at http://www.unicode.org/Public/
|
|
|
35 |
dnl
|
|
|
36 |
UNICODE_VERSION=3.2.0
|
|
|
37 |
AC_SUBST(UNICODE_VERSION)
|
|
|
38 |
|
|
|
39 |
AC_PROG_CC
|
|
|
40 |
AC_AIX
|
|
|
41 |
AC_COMPILE_WARNINGS
|
|
|
42 |
|
|
|
43 |
AM_PROG_LIBTOOL
|
|
|
44 |
|
|
|
45 |
AC_PATH_PROG(PERL, perl, /usr/bin/perl)
|
|
|
46 |
AC_PATH_PROG(SH, sh, /bin/sh)
|
|
|
47 |
|
|
|
48 |
AM_MAINTAINER_MODE
|
|
|
49 |
|
|
|
50 |
AM_ICONV
|
|
|
51 |
|
|
|
52 |
AC_CHECK_FUNCS(iconv_open,,AC_MSG_ERROR([
|
|
|
53 |
iconv_open not found try to install replacement from
|
|
|
54 |
http://www.gnu.org/software/libiconv/
|
|
|
55 |
ftp://ftp.gnu.org/pub/gnu/libiconv/libiconv-1.8.tar.gz]))
|
|
|
56 |
|
|
|
57 |
AC_CHECK_FUNCS(vsnprintf)
|
|
|
58 |
|
|
|
59 |
AC_LIBSOURCES(getopt.c)
|
|
|
60 |
AC_CHECK_FUNCS(getopt_long,,[AC_LIBOBJ(getopt)])
|
|
|
61 |
|
|
|
62 |
AC_OUTPUT(Makefile unac.pc unac.spec t_unac builder, chmod +x t_unac)
|