-
Notifications
You must be signed in to change notification settings - Fork 0
/
configure.ac
63 lines (52 loc) · 1.91 KB
/
configure.ac
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
# -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.
AC_INIT([simple_logger], [0.3.1], [[email protected]], [simple_logger], dnl
[https://github.com/Timothy-Liuxf/simple_logger])
AC_CONFIG_SRCDIR([include/simple_logger/simple_logger.hpp])
AC_CONFIG_HEADERS([config.h])
AC_CONFIG_MACRO_DIRS([third_party/autoconf-archive/m4])
AM_INIT_AUTOMAKE([foreign subdir-objects tar-pax])
AX_CXX_COMPILE_STDCXX_17([noext], [mandatory])
CXXFLAGS=""
AX_APPEND_COMPILE_FLAGS([-Wall -Wpedantic -Wextra -Werror], [CXXFLAGS])
AX_APPEND_COMPILE_FLAGS([ dnl
-Iinclude dnl
-Ithird_party/fmt/include dnl
], [CXXFLAGS])
# Whether to build test examples
AM_CONDITIONAL([BUILD_TEST_EXAMPLES], [test "x$BUILD_TEST_EXAMPLES" = "x1"])
# Checks for programs.
AC_PROG_CXX
AC_PROG_CPP
AC_PROG_MAKE_SET
# Checks for libraries.
# Checks for header files.
AC_CHECK_HEADERS([arpa/inet.h fcntl.h netdb.h stdint.h strings.h sys/param.h sys/socket.h sys/time.h sys/timeb.h unistd.h])
# Checks for typedefs, structures, and compiler characteristics.
AC_CHECK_HEADER_STDBOOL
AC_C_INLINE
AC_TYPE_INT16_T
AC_TYPE_INT32_T
AC_TYPE_INT64_T
AC_TYPE_MODE_T
AC_TYPE_OFF_T
AC_TYPE_PID_T
AC_TYPE_SIZE_T
AC_TYPE_SSIZE_T
AC_STRUCT_TIMEZONE
AC_TYPE_UINT16_T
AC_TYPE_UINT32_T
AC_TYPE_UINT64_T
AC_TYPE_UINT8_T
AC_CHECK_TYPES([ptrdiff_t])
# Checks for library functions.
AC_FUNC_ERROR_AT_LINE
AC_FUNC_FORK
AC_FUNC_MALLOC
AC_FUNC_MKTIME
AC_FUNC_MMAP
AC_FUNC_STRTOD
AC_CHECK_FUNCS([dup2 fchdir floor getcwd getpagesize localtime_r memchr memset mkdir munmap pow regcomp rmdir socket sqrt strcasecmp strchr strdup strerror strrchr strstr strtol strtoull])
AC_CONFIG_FILES([Makefile])
# AC_CONFIG_SUBDIRS([third_party/autoconf-archive])
AC_OUTPUT