-
Notifications
You must be signed in to change notification settings - Fork 1
/
configure.ac
43 lines (34 loc) · 843 Bytes
/
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
AC_PREREQ([2.69])
AC_INIT([game-of-decay], [0.0.0], [[email protected]])
AC_PROG_CC
AC_CHECK_HEADERS([stdlib.h])
AC_CHECK_HEADERS([string.h])
AC_CHECK_HEADERS([getopt.h])
AC_CHECK_HEADERS([time.h])
AC_CHECK_HEADERS([unistd.h])
AC_CHECK_HEADERS([sys/ioctl.h])
AC_TYPE_SIZE_T
AC_FUNC_MALLOC
AC_CHECK_FUNCS([strdup])
AC_CHECK_FUNCS([snprintf])
AC_CHECK_FUNCS([ioctl])
AC_ARG_ENABLE(
debugging,
AC_HELP_STRING(
[--enable-debugging],
[Pass debugging flags to the compiler]
),
[CFLAGS="${CFLAGS} -O0 -g3"]
)
AC_ARG_ENABLE(
coverage,
AC_HELP_STRING(
[--enable-coverage],
[Pass coverage flags to the compiler]
),
[CFLAGS="${CFLAGS} -O0 -g3 -fprofile-arcs -ftest-coverage"]
)
AC_CONFIG_FILES([Makefile])
AC_CONFIG_FILES([src/Makefile])
AC_CONFIG_FILES([test/Makefile])
AC_OUTPUT