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.

81 lines
1.7 KiB

12 years ago
12 years ago
11 years ago
11 years ago
12 years ago
11 years ago
12 years ago
12 years ago
12 years ago
11 years ago
12 years ago
12 years ago
12 years ago
12 years ago
12 years ago
12 years ago
11 years ago
12 years ago
12 years ago
11 years ago
11 years ago
12 years ago
  1. # -*- Autoconf -*-
  2. # Process this file with autoconf to produce a configure script.
  3. AC_PREREQ([2.67])
  4. AC_INIT([shadowsocks], [1.1], [max.c.lv@gmail.com])
  5. AC_CONFIG_SRCDIR([src/encrypt.c])
  6. AC_CONFIG_HEADERS([config.h])
  7. AM_INIT_AUTOMAKE([foreign -Wall -Werror])
  8. AM_PROG_AR
  9. # Checks for programs.
  10. AC_PROG_CC
  11. AC_PROG_INSTALL
  12. AC_PROG_LIBTOOL
  13. AC_PROG_LN_S
  14. AC_PROG_MAKE_SET
  15. m4_include([libev/libev.m4])
  16. # Checks for host.
  17. AC_MSG_CHECKING(for what kind of host)
  18. case $host in
  19. *-linux*)
  20. os_support=linux
  21. AC_MSG_RESULT(Linux)
  22. ;;
  23. *)
  24. AC_MSG_RESULT(transparent proxy does not support for $host)
  25. ;;
  26. esac
  27. AM_CONDITIONAL(BUILD_REDIRECTOR, test "$os_support" = "linux")
  28. # Checks for header files.
  29. AC_CHECK_HEADERS([stdint.h inttypes.h arpa/inet.h fcntl.h langinfo.h locale.h netdb.h netinet/in.h stdlib.h string.h strings.h sys/socket.h unistd.h])
  30. AC_C_BIGENDIAN
  31. # Checks for typedefs, structures, and compiler characteristics.
  32. AC_C_INLINE
  33. AC_TYPE_SSIZE_T
  34. dnl Checks for header files.
  35. AC_HEADER_ASSERT
  36. AC_HEADER_STDC
  37. AC_HEADER_SYS_WAIT
  38. dnl Checks for typedefs, structures, and compiler characteristics.
  39. AC_C_CONST
  40. AC_TYPE_PID_T
  41. AC_TYPE_SIZE_T
  42. AC_TYPE_SSIZE_T
  43. AC_TYPE_UINT16_T
  44. AC_TYPE_UINT8_T
  45. AC_HEADER_TIME
  46. dnl Checks for library functions.
  47. AC_FUNC_FORK
  48. AC_FUNC_MALLOC
  49. AC_FUNC_SELECT_ARGTYPES
  50. AC_TYPE_SIGNAL
  51. AC_CHECK_FUNCS([memset select strndup setresuid setreuid strerror])
  52. AC_SYS_LARGEFILE
  53. AC_CHECK_LIB(socket, connect)
  54. # Checks for library functions.
  55. AC_CHECK_FUNCS([malloc memset socket])
  56. ACX_PTHREAD
  57. AC_CONFIG_MACRO_DIR([m4])
  58. AC_CONFIG_FILES([Makefile
  59. libasyncns/Makefile
  60. libev/Makefile
  61. src/Makefile])
  62. AC_OUTPUT