forked from edporras/sigen
-
Notifications
You must be signed in to change notification settings - Fork 0
/
configure.ac
68 lines (56 loc) · 2.42 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
64
65
66
67
68
# Copyright 1999-2019 Ed Porras
#
# Permission is hereby granted, free of charge, to any person
# obtaining a copy of this software and associated documentation
# files (the "Software"), to deal in the Software without
# restriction, including without limitation the rights to use, copy,
# modify, merge, publish, distribute, sublicense, and/or sell copies
# of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
# NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
# BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
# ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
# CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
# SOFTWARE.
# -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.
m4_define([sigen_version],[2.7.3])
AC_PREREQ([2.69])
AC_INIT([sigen], [sigen_version], [[email protected]])
AM_INIT_AUTOMAKE
LT_INIT
AC_CONFIG_SRCDIR([src/version.cc])
AC_CONFIG_HEADERS([config.h])
AC_CONFIG_FILES([Makefile src/Makefile tests/Makefile])
AC_CONFIG_MACRO_DIR([m4])
AC_DEFINE_UNQUOTED([SIGEN_VERSION], ["sigen_version"], [Explicitly named version])
# Checks for programs.
AC_PROG_CXX
AC_PROG_CC
AX_CXX_COMPILE_STDCXX_14
# Checks for header files.
# Checks for typedefs, structures, and compiler characteristics.
AC_CHECK_HEADER_STDBOOL
AC_C_INLINE
AC_TYPE_UINT16_T
AC_TYPE_UINT32_T
AC_TYPE_UINT8_T
# ENABLE_DUMP on / off. On by default but can be disabled with --disable-text-dump option
AC_ARG_ENABLE([text-dump], AS_HELP_STRING([--disable-text-dump], [Disable text dump output]))
AS_IF([test "x$enable_text_dump" != "xno"], [
AC_DEFINE([ENABLE_DUMP], [1], [enable text dump output])
])
# for the makefiles
AM_CONDITIONAL([ENABLE_DUMP_SRC], [test "x$enable_text_dump" != "xno"])
# prevent tables from storing duplicated items in loops
AC_ARG_ENABLE([duplicate-checks], AS_HELP_STRING([--disable-duplicate-checks], [Disable checks to prevent duplicates in table loops]))
AS_IF([test "x$enable_duplicate_checks" != "xno"], [
AC_DEFINE([CHECK_DUPLICATES], [1], [enable duplicate checks])
])
# Checks for library functions.
AC_CHECK_FUNCS([memset])
AC_OUTPUT