-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathconfigure.ac
More file actions
58 lines (48 loc) · 1.79 KB
/
configure.ac
File metadata and controls
58 lines (48 loc) · 1.79 KB
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
# -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.
AC_INIT([PFNET], [1.3.5], [ttinoco5687@gmail.com])
AM_INIT_AUTOMAKE([foreign])
AC_CONFIG_SRCDIR([src/net/net.c])
AC_CONFIG_HEADERS([include/pfnet/pfnet_config.h])
AC_CONFIG_MACRO_DIR([m4])
# Add libtools
LT_INIT
# Checks for programs.
AC_PROG_CC
AC_PROG_INSTALL
AC_PROG_MAKE_SET
# Chew flags
AX_CHECK_COMPILE_FLAG([-Wall], [CFLAGS="$CFLAGS -Wall"], [], [])
AX_CHECK_COMPILE_FLAG([-Werror], [CFLAGS="$CFLAGS -Werror"], [], [])
# Checks for raw parser
AC_SUBST(rawtop_srcdir,$RAW_PARSER)
AC_CHECK_FILES([$RAW_PARSER/src/RAW_parser.c],
[AC_DEFINE([HAVE_RAW_PARSER],[1],[Define to 1 if you have the raw parser library.])
AM_CONDITIONAL(HAS_RAW_PARSER,true)
AC_SUBST(raw_dir,$RAW_PARSER)],
[AC_DEFINE([HAVE_RAW_PARSER],[0],[Define to 0 if you do not have the raw parser library.])
AM_CONDITIONAL(HAS_RAW_PARSER,false)])
# Checks for epc parser
AC_SUBST(epctop_srcdir,$EPC_PARSER)
AC_CHECK_FILES([$EPC_PARSER/src/EPC_parser.c],
[AC_DEFINE([HAVE_EPC_PARSER],[1],[Define to 1 if you have the epc parser library.])
AM_CONDITIONAL(HAS_EPC_PARSER,true)
AC_SUBST(epc_dir,$EPC_PARSER)],
[AC_DEFINE([HAVE_EPC_PARSER],[0],[Define to 0 if you do not have the epc parser library.])
AM_CONDITIONAL(HAS_EPC_PARSER,false)])
# Checks for other header files.
AC_CHECK_HEADERS([stddef.h stdint.h stdlib.h string.h])
# Checks for typedefs, structures, and compiler characteristics.
AC_TYPE_SIZE_T
AC_TYPE_UINT16_T
AC_TYPE_UINT32_T
AC_TYPE_UINT8_T
AC_CHECK_TYPES([ptrdiff_t])
# Checks for library functions.
AC_FUNC_ERROR_AT_LINE
AC_FUNC_MALLOC
AC_CHECK_FUNCS([memset pow sqrt strchr strdup strstr])
AC_CONFIG_FILES([Makefile
src/Makefile
tests/Makefile])
AC_OUTPUT