diff options
author | Sergey Poznyakoff <gray@gnu.org.ua> | 2009-09-15 10:40:29 +0300 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org.ua> | 2009-09-15 10:40:54 +0300 |
commit | 989a5bbb74c3620abaa2191ce2c4f8d5968dbf0a (patch) | |
tree | c0b2324a523905c3c17201cc2468c9078976fc74 /configure.ac | |
parent | dbad35177723e19147ab49b59a3728e00fe05875 (diff) | |
download | pies-989a5bbb74c3620abaa2191ce2c4f8d5968dbf0a.tar.gz pies-989a5bbb74c3620abaa2191ce2c4f8d5968dbf0a.tar.bz2 |
Branch off from the Mailfromd project into a separate repository.
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 97 |
1 files changed, 97 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac new file mode 100644 index 0000000..192fc53 --- /dev/null +++ b/configure.ac | |||
@@ -0,0 +1,97 @@ | |||
1 | # This file is part of Pies. -*- autoconf -*- | ||
2 | # Copyright (C) 2009 Sergey Poznyakoff | ||
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 3, or (at your option) | ||
7 | # 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, see <http://www.gnu.org/licenses/>. | ||
16 | # Process this file with autoconf to produce a configure script. | ||
17 | |||
18 | AC_PREREQ([2.63]) | ||
19 | AC_INIT([pies], [1.0], [bug-mailfromd@gnu.org.ua]) | ||
20 | AC_CONFIG_SRCDIR([src/pies.h]) | ||
21 | AC_CONFIG_AUX_DIR([build-aux]) | ||
22 | AC_CONFIG_HEADERS([config.h]) | ||
23 | AM_INIT_AUTOMAKE([1.11 gnits tar-ustar dist-bzip2 std-options silent-rules]) | ||
24 | |||
25 | # Enable silent rules by default: | ||
26 | AM_SILENT_RULES([yes]) | ||
27 | |||
28 | # Checks for programs. | ||
29 | AC_PROG_CC | ||
30 | gl_EARLY | ||
31 | AC_PROG_MAKE_SET | ||
32 | AC_PROG_RANLIB | ||
33 | AC_PROG_YACC | ||
34 | AC_PROG_LEX | ||
35 | |||
36 | # Checks for libraries. | ||
37 | |||
38 | # Checks for header files. | ||
39 | AC_CHECK_HEADERS([arpa/inet.h fcntl.h netdb.h netinet/in.h stdint.h stdlib.h string.h sys/socket.h sys/time.h syslog.h unistd.h]) | ||
40 | |||
41 | # Checks for typedefs, structures, and compiler characteristics. | ||
42 | AC_TYPE_UID_T | ||
43 | AC_TYPE_MODE_T | ||
44 | AC_TYPE_PID_T | ||
45 | AC_TYPE_SIZE_T | ||
46 | AC_TYPE_SIGNAL | ||
47 | |||
48 | IU_CHECK_MEMBERS([struct msghdr.msg_control, struct msghdr.msg_accrights], , , | ||
49 | [#include <sys/types.h> | ||
50 | #include <sys/socket.h>]) | ||
51 | |||
52 | # Checks for library functions. | ||
53 | AC_FUNC_CHOWN | ||
54 | AC_FUNC_FORK | ||
55 | AC_CHECK_FUNCS([alarm dup2 gethostbyname isascii memmove memset select setenv socket strchr strcspn strtol strtoul sysconf getdtablesize]) | ||
56 | |||
57 | # Gnulib | ||
58 | gl_INIT | ||
59 | |||
60 | # ********************** | ||
61 | # Mailutils | ||
62 | # ********************** | ||
63 | # FIXME | ||
64 | AM_GNU_MAILUTILS(2.0, [mailer cfg argp], [:]) | ||
65 | |||
66 | # Test for setproctitle | ||
67 | MF_PROCTITLE | ||
68 | |||
69 | # Gettext. | ||
70 | AM_ICONV | ||
71 | AM_GNU_GETTEXT([external], [need-formatstring-macros]) | ||
72 | AM_GNU_GETTEXT_VERSION([0.17]) | ||
73 | |||
74 | # Doc hints. | ||
75 | # Select a rendition level: | ||
76 | # DISTRIB for stable releases (at most one dot in the version number) | ||
77 | # and maintenance releases (two dots, patchlevel < 50) | ||
78 | # PROOF for alpha releases. | ||
79 | # PUBLISH can only be required manually when running make in doc/ | ||
80 | AC_SUBST(RENDITION) | ||
81 | case `echo $VERSION|sed 's/[[^.]]//g'` in | ||
82 | ""|".") RENDITION=DISTRIB;; | ||
83 | "..") if test `echo $VERSION | sed 's/.*\.//'` -lt 50; then | ||
84 | RENDITION=DISTRIB | ||
85 | else | ||
86 | RENDITION=PROOF | ||
87 | fi;; | ||
88 | *) RENDITION=PROOF;; | ||
89 | esac | ||
90 | |||
91 | AC_CONFIG_FILES([Makefile | ||
92 | gnu/Makefile | ||
93 | lib/Makefile | ||
94 | src/Makefile | ||
95 | doc/Makefile | ||
96 | po/Makefile.in]) | ||
97 | AC_OUTPUT | ||