async library for manda (adaptive backend manager protocol)
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.
 
 
 
 

55 lines
1.6 KiB

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