ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/svn/ircd-hybrid/branches/8.2.x/configure.ac
Revision: 10083
Committed: Sat Jun 11 12:28:03 2022 UTC (3 years, 2 months ago) by michael
Content type: application/pkix-attr-cert
File size: 2216 byte(s)
Log Message:
- Replace deprecated autoconf macros

File Contents

# User Rev Content
1 michael 6120 dnl Process this file with autoconf to produce a configure script.
2 adx 30
3 michael 953 AC_REVISION([$Id$])
4    
5 michael 10083 AC_PREREQ([2.71])
6 michael 10014 AC_INIT([ircd-hybrid], [8.2.40], [bugs@ircd-hybrid.org])
7 michael 9937 AM_INIT_AUTOMAKE([1.16.1 subdir-objects])
8 stu 908 AM_MAINTAINER_MODE
9 michael 2480 AC_CONFIG_MACRO_DIR([m4])
10 michael 9937 AC_CONFIG_HEADERS([config.h])
11     AC_CONFIG_SRCDIR([src/ircd.c])
12 adx 30
13 michael 10083 AC_PROG_CC
14 michael 912 AC_PROG_YACC
15 michael 10083 AC_PROG_LEX([noyywrap])
16 stu 908 AC_PROG_INSTALL
17 michael 945
18 michael 1015 # Initializing libtool.
19 michael 1084 LT_CONFIG_LTDL_DIR([libltdl])
20 michael 977 LT_INIT([dlopen disable-static])
21 michael 1092 LTDL_INIT([recursive convenience])
22 michael 1053 LIBTOOL="$LIBTOOL --silent"
23 adx 30
24 stu 908 # Checks for libraries.
25 michael 8368 AX_GCC_STACK_PROTECT_CC
26     AX_GCC_STACK_PROTECT_LIB
27 michael 4359 AX_LIBRARY_NET
28 michael 2594
29 stu 908 # Checks for typedefs, structures, and compiler characteristics.
30 adx 30 AC_C_BIGENDIAN
31    
32 stu 908 # Checks for library functions.
33 michael 9937 AC_CHECK_FUNCS_ONCE([strlcat strlcpy])
34 adx 30
35 michael 923 # Checks for header files.
36 michael 9937 AC_CHECK_HEADERS_ONCE([
37     crypt.h
38     sys/param.h
39     types.h
40     socket.h
41     sys/wait.h
42     ])
43 michael 912
44 michael 9937 AC_SEARCH_LIBS([crypt], [crypt])
45 michael 923
46 michael 9989 # Set -Werror=unknown-warning-option for clang so subsequent
47     # AX_APPEND_COMPILE_FLAGS executions work properly.
48     AX_APPEND_COMPILE_FLAGS([-Werror=unknown-warning-option])
49     # Disable -Wformat-truncation specifically for gcc.
50     AX_APPEND_COMPILE_FLAGS([-Wno-format-truncation])
51    
52 stu 908 # Argument processing.
53 michael 4359 AX_ARG_IOLOOP_MECHANISM
54 michael 4978 AX_ARG_ENABLE_ASSERT
55 stu 908 AX_ARG_ENABLE_DEBUGGING
56     AX_ARG_ENABLE_WARNINGS
57 michael 8328 AX_ARG_ENABLE_EFENCE
58 michael 9183 AX_ARG_WITH_TLS
59 adx 30
60 michael 9937 AX_DEFINE_DIR([PREFIX], [prefix], [Set to prefix.])
61     AX_DEFINE_DIR([SYSCONFDIR], [sysconfdir], [Set to sysconfdir.])
62     AX_DEFINE_DIR([LIBDIR], [libdir], [Set to libdir.])
63     AX_DEFINE_DIR([DATADIR], [datadir], [Set to datadir.])
64     AX_DEFINE_DIR([LOCALSTATEDIR], [localstatedir], [Set to localstatedir.])
65 adx 30
66 michael 9937 AC_CONFIG_FILES([
67     Makefile
68     src/Makefile
69     libltdl/Makefile
70     modules/Makefile
71     modules/core/Makefile
72     modules/extra/Makefile
73     doc/Makefile
74     help/Makefile
75     tools/Makefile
76     ])
77 adx 30
78     AC_OUTPUT
79 michael 5394
80     echo "###############################################################################"
81     echo "Configuration complete. Type make (or gmake on some *BSD machines) to compile."
82     echo
83     echo "ircd-hybrid will be installed in ${prefix}. To change this, run:"
84     echo " ./configure --prefix=DIRECTORY"
85     echo "###############################################################################"

Properties

Name Value
svn:eol-style native
svn:keywords Id