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
|
# -*- Autoconf -*-
# Configuration for Wyslij-po
#
# Copyright (C) 2007, 2009-2010, 2016-2017 Sergey Poznyakoff
#
# Wyslij-po 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.
#
# Wyslij-po 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 Wyslij-po. If not, see <http://www.gnu.org/licenses/>. */
AC_PREREQ(2.63)
AC_INIT([wyslij-po], [3.1], [bug-wyslij-po@gnu.org.ua],
[wyslij-po], [http://www.gnu.org.ua/software/wyslij-po])
AC_CONFIG_AUX_DIR([build-aux])
AC_CONFIG_SRCDIR([src/wyslij-po.h])
AM_INIT_AUTOMAKE(gnits 1.11 tar-ustar std-options silent-rules)
AC_CONFIG_HEADERS([config.h])
# Enable silent rules by default:
AM_SILENT_RULES([yes])
# Checks for programs.
AC_PROG_CC
gl_EARLY
# Checks for libraries.
# Checks for header files.
# Checks for typedefs, structures, and compiler characteristics.
AC_TYPE_SIZE_T
# Checks for library functions.
gl_INIT
# Check for GNU Mailutils
AM_GNU_MAILUTILS(3.0, [auth mailer])
# Gettext.
AM_ICONV
AM_GNU_GETTEXT([external], [need-formatstring-macros])
AM_GNU_GETTEXT_VERSION([0.17])
# Doc hints.
# Select a rendition level:
# DISTRIB for stable releases (at most one dot in the version number)
# and maintenance releases (two dots, patchlevel < 50)
# PROOF for alpha releases.
# PUBLISH can only be required manually when running make in doc/
AC_SUBST(RENDITION)
case `echo $VERSION|sed 's/[[^.]]//g'` in
""|".") RENDITION=DISTRIB;;
"..") if test `echo $VERSION | sed 's/.*\.//'` -lt 50; then
RENDITION=DISTRIB
else
RENDITION=PROOF
fi;;
*) RENDITION=PROOF;;
esac
AC_CONFIG_FILES([Makefile
lib/Makefile
src/Makefile
doc/Makefile
po/Makefile.in])
AC_OUTPUT
|