libafcgi is a libev based asynchronous FastCGI library https://redmine.lighttpd.net/projects/libafcgi
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.
 
 
 
 

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