Tests about a simple python3 fastcgi runner using libfcgi and the Python-C API.
python
c
wsgi
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.

configure.ac 1.4KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. # -*- Autoconf -*-
  2. # Process this file with autoconf to produce a configure script.
  3. AC_PREREQ([2.69])
  4. AC_INIT([PyFCGI], [0.0.1], [yann.weber@member.fsf.org])
  5. AC_CONFIG_SRCDIR([src/main.c])
  6. AC_CONFIG_HEADERS([include/config.h])
  7. AC_ARG_ENABLE([debug],
  8. AS_HELP_STRING([--enable-debug], [Enable debug, disabling -Werror, etc.]))
  9. # Checks for programs.
  10. AC_PROG_CC
  11. AC_PROG_RANLIB
  12. AC_CHECK_PROG(PYTHON_CONFIG, [python3-config], [yes])
  13. if test x"${PYTHON_CONFIG}" == x"yes"; then
  14. PYTHON_CFLAGS=`python3-config --includes`
  15. PYTHON_LDFLAGS=`python3-config --libs`
  16. AC_SUBST([PYTHON_CFLAGS])
  17. AC_SUBST([PYTHON_LDFLAGS])
  18. else
  19. AC_MSG_ERROR([Unable to find python3-config])
  20. fi
  21. if test x"${enable_debug}" = x"yes"; then
  22. AM_CFLAGS="-Wall -g"
  23. else
  24. AM_CFLAGS="-Wall -Werror -O2"
  25. fi
  26. AC_SUBST([AM_CFLAGS])
  27. # Checks for libraries.
  28. AC_CHECK_LIB([fcgi], [FCGI_Accept])
  29. PKG_CHECK_MODULES([CHECK], [check >= 0.9.4])
  30. # Checks for header files.
  31. AC_CHECK_HEADERS([fcntl.h limits.h stdlib.h string.h syslog.h unistd.h sem.h])
  32. # Checks for typedefs, structures, and compiler characteristics.
  33. AC_TYPE_PID_T
  34. AC_TYPE_SIZE_T
  35. # Checks for library functions.
  36. AC_FUNC_FORK
  37. AC_FUNC_MALLOC
  38. AC_FUNC_REALLOC
  39. AC_CHECK_FUNCS([bzero getcwd gettimeofday memmove strdup strerror strndup semop clone])
  40. AM_INIT_AUTOMAKE
  41. AC_CONFIG_FILES([Makefile
  42. src/Makefile
  43. tests/Makefile])
  44. AC_OUTPUT