# -*- 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