FastCGI application to run cgi applications https://redmine.lighttpd.net/projects/fcgi-cgi
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

59 lines
1.8 KiB

  1. # -*- Autoconf -*-
  2. # Process this file with autoconf to produce a configure script.
  3. AC_PREREQ([2.63])
  4. AC_INIT([fcgi-cgi], [0.2.2], [lighttpd@stbuehler.de])
  5. AC_CONFIG_SRCDIR([fcgi-cgi.c])
  6. AC_CONFIG_HEADERS([config.h])
  7. AM_INIT_AUTOMAKE([-Wall -Werror foreign])
  8. # Checks for programs.
  9. AC_PROG_CC
  10. AC_PROG_MAKE_SET
  11. # Checks for libraries.
  12. # glib-2.0
  13. PKG_CHECK_MODULES(GLIB, glib-2.0 >= 2.16.0, [
  14. AC_DEFINE([HAVE_GLIB_H], [1], [glib.h])
  15. ],[AC_MSG_ERROR("glib-2.0 >= 2.16.0 not found")])
  16. # lib ev
  17. AC_CHECK_HEADERS([ev.h], [], [AC_MSG_ERROR("ev.h not found")])
  18. AC_CHECK_LIB([ev], [ev_time], [
  19. LIBS="-lev ${LIBS}"
  20. AC_DEFINE([HAVE_LIBEV], [1], [ev_time in -lev])
  21. ], [AC_MSG_ERROR("libev not found")])
  22. # Checks for header files.
  23. AC_CHECK_HEADERS([arpa/inet.h fcntl.h stdlib.h string.h sys/socket.h unistd.h])
  24. # Checks for typedefs, structures, and compiler characteristics.
  25. AC_TYPE_PID_T
  26. AC_TYPE_SIZE_T
  27. # Checks for library functions.
  28. AC_FUNC_FORK
  29. AC_CHECK_FUNCS([dup2])
  30. # check for extra compiler options (warning options)
  31. if test "${GCC}" = "yes"; then
  32. CFLAGS="${CFLAGS} -Wall -W -Wshadow -pedantic -std=gnu99"
  33. fi
  34. AC_ARG_ENABLE([extra-warnings],
  35. [AS_HELP_STRING([--enable-extra-warnings],[enable extra warnings (gcc specific)])],
  36. [case "${enableval}" in
  37. yes) extrawarnings=true ;;
  38. no) extrawarnings=false ;;
  39. *) AC_MSG_ERROR([bad value ${enableval} for --enable-extra-warnings]) ;;
  40. esac],[extrawarnings=false])
  41. if test x$extrawarnings = xtrue; then
  42. CFLAGS="${CFLAGS} -g -O2 -g2 -Wall -Wmissing-declarations -Wdeclaration-after-statement -Wcast-align -Wsign-compare -Wnested-externs -Wpointer-arith -Wmissing-prototypes -Wshadow -Wno-pointer-sign -Wformat-security -Wl,--as-needed -Wl,--no-undefined"
  43. fi
  44. AC_CONFIG_FILES([Makefile])
  45. AC_OUTPUT