SCGI application to run cgi applications https://redmine.lighttpd.net/projects/scgi-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.
 
 
 
 
 
 

50 lines
1.5 KiB

  1. # -*- Autoconf -*-
  2. # Process this file with autoconf to produce a configure script.
  3. AC_PREREQ([2.63])
  4. AC_INIT([scgi-cgi], [0.1.1], [lighttpd@stbuehler.de])
  5. AC_CONFIG_SRCDIR([scgi-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. # libevent
  13. PKG_CHECK_MODULES(LIBEVENT, libevent >= 2.0, [],[AC_MSG_ERROR("libevent >= 2.0 not found")])
  14. # Checks for header files.
  15. AC_CHECK_HEADERS([arpa/inet.h fcntl.h stdlib.h string.h sys/socket.h unistd.h])
  16. # Checks for typedefs, structures, and compiler characteristics.
  17. AC_TYPE_PID_T
  18. AC_TYPE_SIZE_T
  19. # Checks for library functions.
  20. AC_FUNC_FORK
  21. AC_CHECK_FUNCS([dup2])
  22. # check for extra compiler options (warning options)
  23. if test "${GCC}" = "yes"; then
  24. CFLAGS="${CFLAGS} -Wall -W -Wshadow -pedantic -std=gnu99"
  25. fi
  26. AC_ARG_ENABLE([extra-warnings],
  27. [AS_HELP_STRING([--enable-extra-warnings],[enable extra warnings (gcc specific)])],
  28. [case "${enableval}" in
  29. yes) extrawarnings=true ;;
  30. no) extrawarnings=false ;;
  31. *) AC_MSG_ERROR([bad value ${enableval} for --enable-extra-warnings]) ;;
  32. esac],[extrawarnings=false])
  33. if test x$extrawarnings = xtrue; then
  34. 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"
  35. fi
  36. AC_CONFIG_FILES([Makefile])
  37. AC_OUTPUT