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
|
# -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.
AC_PREREQ([2.69.56])
AC_INIT([cgish-httpd], [1])
AC_CONFIG_SRCDIR([chttpd/chttpd-server.c])
AC_CONFIG_HEADERS([config.h])
AM_INIT_AUTOMAKE([foreign])
AM_SILENT_RULES([yes])
AC_DEFINE([_POSIX_C_SOURCE], [200809L], [Enable POSIX.1-2008 support])
AC_DEFINE([_XOPEN_SOURCE], [700], [Enable X/OPEN system interfaces])
# Checks for programs.
AC_PROG_CC([clang gcc cc])
AC_PROG_CC_STDC
AC_C__GENERIC
AC_PROG_RANLIB
if test x"${ac_cv_prog_cc_c99}" = xno; then
AC_MSG_ERROR([C99 support is required to compile $PACKAGE])
fi
# Checks for typedefs, structures, and compiler characteristics.
AC_CHECK_HEADER_STDBOOL
AC_C_INLINE
AC_TYPE_OFF_T
AC_TYPE_PID_T
AC_TYPE_SIZE_T
AC_TYPE_SSIZE_T
# Checks for library functions.
AC_FUNC_MALLOC
AC_FUNC_REALLOC
AC_FUNC_STRERROR_R
# Misc options
AC_ARG_ENABLE([restriction],
[AS_HELP_STRING([--enable-restriction],
[Enable some extra restriction to meet homework requirement])],
[enable_restriction="$enableval"], [enable_restriction="no"])
AS_IF([test "x$enable_restriction" = "xyes"],
[AC_DEFINE([SPHW_RESTRICTION], [1], [SPHW restriction])])
AC_CONFIG_FILES([Makefile])
AC_OUTPUT
|