Implement a Makefile for Inform.
[inform.git] / configure.ac
1 # Process this file with autoconf to produce a configure script.
2 #
3 # This file is part of Inform.
4 #
5 # Inform is free software: you can redistribute it and/or modify it
6 # under the terms of the GNU General Public License as published by
7 # theFree Software Foundation, either version 3 of the License, or
8 #(at your option) any later version.
9 #
10 # Inform is distributed in the hope that it will be useful, but
11 # WITHOUT ANY WARRANTY; without even the implied warranty of
12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 # General Public License for more details.
14 #
15 # You should have received a copy of the GNU General Public License
16 # along with Inform. If not, see https://gnu.org/licenses/
17
18 AC_INIT([inform], m4_esyscmd_s([./version.sh]), [j@jxself.org])
19 AM_INIT_AUTOMAKE([foreign])
20 AC_OUTPUT(Makefile src/Makefile)
21
22 # Checks for programs.
23 AC_PROG_CC
24
25 # Checks for libraries.
26
27 # Checks for header files.
28 AC_CHECK_HEADERS([limits.h stdlib.h string.h unistd.h])
29
30 # Checks for typedefs, structures, and compiler characteristics.
31 AC_CHECK_HEADER_STDBOOL
32 AC_TYPE_SIZE_T
33
34 # Checks for library functions.
35 AC_FUNC_ERROR_AT_LINE
36 AC_FUNC_MALLOC
37 AC_FUNC_REALLOC
38 AC_CHECK_FUNCS([memmove memset realpath strchr strtol])
39
40 AC_OUTPUT