summaryrefslogtreecommitdiff
path: root/configure.ac
blob: e9e1da187c23e24632140e41e49f91c5853cd8f0 (plain)
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
AC_INIT([simple-snake], [0.1])
AC_CONFIG_SRCDIR([src/draw.c])
AC_CONFIG_HEADERS([config.h])

AM_INIT_AUTOMAKE

# Checks for programs
AC_PROG_CC

# Checks for libraries.
AC_CHECK_LIB([m], [log10])

# Checks for header files.
AC_CHECK_HEADERS([stdlib.h string.h unistd.h])

# Checks for typedefs, structures, and compiler characteristics.
AC_CHECK_HEADER_STDBOOL

# Checks for library functions.
AC_FUNC_MALLOC
AC_CHECK_FUNCS([mkdir])

AC_CONFIG_FILES([Makefile 
				 src/Makefile])

# Check that curses.h exists
AX_WITH_CURSES
if test "x$ax_cv_curses" != xyes; then
	AC_MSG_ERROR([requires an X/Open-compatible Curses library with color])
fi

# Check if mkdir takes one or more arguments
AX_FUNC_MKDIR

AC_OUTPUT