2 |
|
|
3 |
AC_REVISION([$Id$]) |
AC_REVISION([$Id$]) |
4 |
|
|
5 |
AC_PREREQ(2.69) |
AC_PREREQ([2.69]) |
6 |
AC_INIT([ircd-hybrid], [TRUNK], [bugs@ircd-hybrid.org]) |
AC_INIT([ircd-hybrid], [TRUNK], [bugs@ircd-hybrid.org]) |
7 |
AM_INIT_AUTOMAKE(1.16.1 subdir-objects) |
AM_INIT_AUTOMAKE([1.16.1 subdir-objects]) |
8 |
AM_MAINTAINER_MODE |
AM_MAINTAINER_MODE |
9 |
AC_CONFIG_MACRO_DIR([m4]) |
AC_CONFIG_MACRO_DIR([m4]) |
10 |
AC_CONFIG_HEADERS(config.h) |
AC_CONFIG_HEADERS([config.h]) |
11 |
AC_CONFIG_SRCDIR(src/ircd.c) |
AC_CONFIG_SRCDIR([src/ircd.c]) |
12 |
|
|
13 |
# Checks for programs. |
# Checks for programs. |
14 |
AC_PROG_CC_C99 |
AC_PROG_CC_C99 |
33 |
AC_C_BIGENDIAN |
AC_C_BIGENDIAN |
34 |
|
|
35 |
# Checks for library functions. |
# Checks for library functions. |
36 |
AC_CHECK_FUNCS_ONCE(strlcat \ |
AC_CHECK_FUNCS_ONCE([strlcat strlcpy]) |
|
strlcpy) |
|
37 |
|
|
38 |
# Checks for header files. |
# Checks for header files. |
39 |
AC_CHECK_HEADERS_ONCE(crypt.h \ |
AC_CHECK_HEADERS_ONCE([ |
40 |
sys/param.h \ |
crypt.h |
41 |
types.h \ |
sys/param.h |
42 |
socket.h \ |
types.h |
43 |
sys/wait.h) |
socket.h |
44 |
|
sys/wait.h |
45 |
|
]) |
46 |
|
|
47 |
AC_SEARCH_LIBS(crypt, crypt) |
AC_SEARCH_LIBS([crypt], [crypt]) |
48 |
|
|
49 |
# Argument processing. |
# Argument processing. |
50 |
AX_ARG_IOLOOP_MECHANISM |
AX_ARG_IOLOOP_MECHANISM |
57 |
# Disable -Wformat-truncation |
# Disable -Wformat-truncation |
58 |
AX_APPEND_COMPILE_FLAGS([-Wno-format-truncation]) |
AX_APPEND_COMPILE_FLAGS([-Wno-format-truncation]) |
59 |
|
|
60 |
AX_DEFINE_DIR([PREFIX],[prefix],[Set to prefix.]) |
AX_DEFINE_DIR([PREFIX], [prefix], [Set to prefix.]) |
61 |
AX_DEFINE_DIR([SYSCONFDIR],[sysconfdir],[Set to sysconfdir.]) |
AX_DEFINE_DIR([SYSCONFDIR], [sysconfdir], [Set to sysconfdir.]) |
62 |
AX_DEFINE_DIR([LIBDIR],[libdir],[Set to libdir.]) |
AX_DEFINE_DIR([LIBDIR], [libdir], [Set to libdir.]) |
63 |
AX_DEFINE_DIR([DATADIR],[datadir],[Set to datadir.]) |
AX_DEFINE_DIR([DATADIR], [datadir], [Set to datadir.]) |
64 |
AX_DEFINE_DIR([LOCALSTATEDIR],[localstatedir],[Set to localstatedir.]) |
AX_DEFINE_DIR([LOCALSTATEDIR], [localstatedir], [Set to localstatedir.]) |
65 |
|
|
66 |
AC_CONFIG_FILES( \ |
AC_CONFIG_FILES([ |
67 |
Makefile \ |
Makefile |
68 |
src/Makefile \ |
src/Makefile |
69 |
libltdl/Makefile \ |
libltdl/Makefile |
70 |
modules/Makefile \ |
modules/Makefile |
71 |
modules/core/Makefile \ |
modules/core/Makefile |
72 |
modules/extra/Makefile \ |
modules/extra/Makefile |
73 |
doc/Makefile \ |
doc/Makefile |
74 |
help/Makefile \ |
help/Makefile |
75 |
tools/Makefile) |
tools/Makefile |
76 |
|
]) |
77 |
|
|
78 |
AC_OUTPUT |
AC_OUTPUT |
79 |
|
|