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.

308 lines
9.2 KiB

  1. #ifndef _SHADOWSOCKS_CONFIG_H
  2. #define _SHADOWSOCKS_CONFIG_H
  3. /* Define if building universal (internal helper macro) */
  4. #cmakedefine AC_APPLE_UNIVERSAL_BUILD
  5. /* errno for incomplete non-blocking connect(2) */
  6. #cmakedefine CONNECT_IN_PROGRESS @CONNECT_IN_PROGRESS@
  7. /* Define to 1 if you have the <arpa/inet.h> header file. */
  8. #cmakedefine HAVE_ARPA_INET_H 1
  9. /* Define to 1 if you have the declaration of `inet_ntop', and to 0 if you
  10. don't. */
  11. #cmakedefine HAVE_DECL_INET_NTOP 1
  12. /* Define to 1 if you have the <dlfcn.h> header file. */
  13. #cmakedefine HAVE_DLFCN_H 1
  14. /* Define to 1 if you have the <ev.h> header file. */
  15. #cmakedefine HAVE_EV_H 1
  16. /* Define to 1 if you have the <fcntl.h> header file. */
  17. #cmakedefine HAVE_FCNTL_H 1
  18. /* Define to 1 if you have the `fork' function. */
  19. #cmakedefine HAVE_FORK 1
  20. /* Define to 1 if you have the `getpwnam_r' function. */
  21. #cmakedefine HAVE_GETPWNAM_R 1
  22. /* Define to 1 if you have the `inet_ntop' function. */
  23. #cmakedefine HAVE_INET_NTOP 1
  24. /* Define to 1 if you have the <inttypes.h> header file. */
  25. #cmakedefine HAVE_INTTYPES_H 1
  26. /* Enable IPv6 support in libudns */
  27. #cmakedefine HAVE_IPv6 1
  28. /* Define to 1 if you have the <langinfo.h> header file. */
  29. #cmakedefine HAVE_LANGINFO_H 1
  30. /* Compiling with pcre support */
  31. #cmakedefine HAVE_LIBPCRE 1
  32. /* Define to 1 if you have the `socket' library (-lsocket). */
  33. #cmakedefine HAVE_LIBSOCKET 1
  34. /* Define to 1 if you have the <limits.h> header file. */
  35. #cmakedefine HAVE_LIMITS_H 1
  36. /* Define to 1 if you have the <linux/if.h> header file. */
  37. #cmakedefine HAVE_LINUX_IF_H 1
  38. /* Define to 1 if you have the <linux/netfilter_ipv4.h> header file. */
  39. #cmakedefine HAVE_LINUX_NETFILTER_IPV4_H 1
  40. /* Define to 1 if you have the <linux/netfilter_ipv6/ip6_tables.h> header
  41. file. */
  42. #cmakedefine HAVE_LINUX_NETFILTER_IPV6_IP6_TABLES_H 1
  43. /* Define to 1 if you have the <locale.h> header file. */
  44. #cmakedefine HAVE_LOCALE_H 1
  45. /* Define to 1 if you have the `malloc' function. */
  46. #cmakedefine HAVE_MALLOC 1
  47. /* Define to 1 if you have the <memory.h> header file. */
  48. #cmakedefine HAVE_MEMORY_H 1
  49. /* Define to 1 if you have the `memset' function. */
  50. #cmakedefine HAVE_MEMSET 1
  51. /* Define to 1 if you have the <netdb.h> header file. */
  52. #cmakedefine HAVE_NETDB_H 1
  53. /* Define to 1 if you have the <netinet/in.h> header file. */
  54. #cmakedefine HAVE_NETINET_IN_H 1
  55. /* Define to 1 if you have the <net/if.h> header file. */
  56. #cmakedefine HAVE_NET_IF_H 1
  57. /* Define to 1 if you have the <pcre.h> header file. */
  58. #cmakedefine HAVE_PCRE_H 1
  59. /* Define to 1 if you have the <pcre/pcre.h> header file. */
  60. #cmakedefine HAVE_PCRE_PCRE_H 1
  61. /* Have PTHREAD_PRIO_INHERIT. */
  62. #cmakedefine HAVE_PTHREAD_PRIO_INHERIT 1
  63. /* Define to 1 if you have the `select' function. */
  64. #cmakedefine HAVE_SELECT 1
  65. /* Define to 1 if you have the `setresuid' function. */
  66. #cmakedefine HAVE_SETRESUID 1
  67. /* Define to 1 if you have the `setreuid' function. */
  68. #cmakedefine HAVE_SETREUID 1
  69. /* Define to 1 if you have the `setrlimit' function. */
  70. #cmakedefine HAVE_SETRLIMIT 1
  71. /* Define to 1 if you have the `socket' function. */
  72. #cmakedefine HAVE_SOCKET 1
  73. /* Define to 1 if you have the <stdint.h> header file. */
  74. #cmakedefine HAVE_STDINT_H 1
  75. /* Define to 1 if you have the <stdlib.h> header file. */
  76. #cmakedefine HAVE_STDLIB_H 1
  77. /* Define to 1 if you have the `strerror' function. */
  78. #cmakedefine HAVE_STRERROR 1
  79. /* Define to 1 if you have the <strings.h> header file. */
  80. #cmakedefine HAVE_STRINGS_H 1
  81. /* Define to 1 if you have the <string.h> header file. */
  82. #cmakedefine HAVE_STRING_H 1
  83. /* Define to 1 if you have the <sys/ioctl.h> header file. */
  84. #cmakedefine HAVE_SYS_IOCTL_H 1
  85. /* Define to 1 if you have the <sys/select.h> header file. */
  86. #cmakedefine HAVE_SYS_SELECT_H 1
  87. /* Define to 1 if you have the <sys/socket.h> header file. */
  88. #cmakedefine HAVE_SYS_SOCKET_H 1
  89. /* Define to 1 if you have the <sys/stat.h> header file. */
  90. #cmakedefine HAVE_SYS_STAT_H 1
  91. /* Define to 1 if you have the <sys/types.h> header file. */
  92. #cmakedefine HAVE_SYS_TYPES_H 1
  93. /* Define to 1 if you have <sys/wait.h> that is POSIX.1 compatible. */
  94. #cmakedefine HAVE_SYS_WAIT_H 1
  95. /* Define to 1 if you have the <udns.h> header file. */
  96. #cmakedefine HAVE_UDNS_H 1
  97. /* Define to 1 if you have the <unistd.h> header file. */
  98. #cmakedefine HAVE_UNISTD_H 1
  99. /* Define to 1 if you have the `vfork' function. */
  100. #cmakedefine HAVE_VFORK 1
  101. /* Define to 1 if you have the <vfork.h> header file. */
  102. #cmakedefine HAVE_VFORK_H 1
  103. /* Define to 1 if `fork' works. */
  104. #cmakedefine HAVE_WORKING_FORK 1
  105. /* Define to 1 if `vfork' works. */
  106. #cmakedefine HAVE_WORKING_VFORK 1
  107. /* Define to the sub-directory where libtool stores uninstalled libraries. */
  108. #cmakedefine LT_OBJDIR "@LT_OBJDIR@"
  109. /* Define to 1 if assertions should be disabled. */
  110. #cmakedefine NDEBUG 1
  111. /* Name of package */
  112. #define PACKAGE "@PROJECT_NAME@"
  113. /* Define to the address where bug reports for this package should be sent. */
  114. #define PACKAGE_BUGREPORT "@PACKAGE_BUGREPORT@"
  115. /* Define to the full name of this package. */
  116. #define PACKAGE_NAME "@PROJECT_NAME@"
  117. /* Define to the full name and version of this package. */
  118. #define PACKAGE_STRING "@PROJECT_NAME@ @PROJECT_VERSION@"
  119. /* Define to the one symbol short name of this package. */
  120. #define PACKAGE_TARNAME "@PROJECT_NAME@"
  121. /* Define to the home page for this package. */
  122. #define PACKAGE_URL "@PACKAGE_URL@"
  123. /* Define to the version of this package. */
  124. #define PACKAGE_VERSION "@PROJECT_VERSION@"
  125. /* Define to necessary symbol if this constant uses a non-standard name on
  126. your system. */
  127. #cmakedefine PTHREAD_CREATE_JOINABLE 1
  128. /* Define as the return type of signal handlers (`int' or `void'). */
  129. #cmakedefine RETSIGTYPE @RETSIGTYPE@
  130. /* Define to the type of arg 1 for `select'. */
  131. #cmakedefine SELECT_TYPE_ARG1 @SELECT_TYPE_ARG1@
  132. /* Define to the type of args 2, 3 and 4 for `select'. */
  133. #cmakedefine SELECT_TYPE_ARG234 @SELECT_TYPE_ARG234@
  134. /* Define to the type of arg 5 for `select'. */
  135. #cmakedefine SELECT_TYPE_ARG5 @SELECT_TYPE_ARG5@
  136. /* Define to 1 if you have the ANSI C header files. */
  137. #cmakedefine STDC_HEADERS 1
  138. /* Define to 1 if you can safely include both <sys/time.h> and <time.h>. */
  139. #cmakedefine TIME_WITH_SYS_TIME 1
  140. /* If the compiler supports a TLS storage class define it to that here */
  141. #cmakedefine TLS @TLS@
  142. /* Enable extensions on AIX 3, Interix. */
  143. #ifndef _ALL_SOURCE
  144. #cmakedefine _ALL_SOURCE 1
  145. #endif
  146. /* Enable GNU extensions on systems that have them. */
  147. #ifndef _GNU_SOURCE
  148. #cmakedefine _GNU_SOURCE 1
  149. #endif
  150. /* Enable threading extensions on Solaris. */
  151. #ifndef _POSIX_PTHREAD_SEMANTICS
  152. #cmakedefine _POSIX_PTHREAD_SEMANTICS 1
  153. #endif
  154. /* Enable extensions on HP NonStop. */
  155. #ifndef _TANDEM_SOURCE
  156. #cmakedefine _TANDEM_SOURCE 1
  157. #endif
  158. /* Enable general extensions on Solaris. */
  159. #ifndef __EXTENSIONS__
  160. #cmakedefine __EXTENSIONS__ 1
  161. #endif
  162. /* Define if use system shared lib. */
  163. #cmakedefine USE_SYSTEM_SHARED_LIB 1
  164. /* Version number of package */
  165. #define VERSION "@PROJECT_VERSION@"
  166. /* Define WORDS_BIGENDIAN to 1 if your processor stores words with the most
  167. significant byte first (like Motorola and SPARC, unlike Intel). */
  168. #if defined AC_APPLE_UNIVERSAL_BUILD
  169. # if defined __BIG_ENDIAN__
  170. # define WORDS_BIGENDIAN 1
  171. # endif
  172. #else
  173. # ifndef WORDS_BIGENDIAN
  174. #cmakedefine WORDS_BIGENDIAN 1
  175. # endif
  176. #endif
  177. /* Define to 1 if on MINIX. */
  178. #cmakedefine _MINIX 1
  179. /* Define to 2 if the system does not provide POSIX.1 features except with
  180. this defined. */
  181. #cmakedefine _POSIX_1_SOURCE 1
  182. /* Define to 1 if you need to in order for `stat' and other things to work. */
  183. #cmakedefine _POSIX_SOURCE 1
  184. /* Define for Solaris 2.5.1 so the uint8_t typedef from <sys/synch.h>,
  185. <pthread.h>, or <semaphore.h> is not used. If the typedef were allowed, the
  186. #define below would cause a syntax error. */
  187. #cmakedefine _UINT8_T 1
  188. /* Define to empty if `const' does not conform to ANSI C. */
  189. #cmakedefine const 1
  190. /* Define to `__inline__' or `__inline' if that's what the C compiler
  191. calls it, or to nothing if 'inline' is not supported under any name. */
  192. #ifndef __cplusplus
  193. #cmakedefine inline 1
  194. #endif
  195. /* Define to `int' if <sys/types.h> does not define. */
  196. #cmakedefine pid_t @pid_t@
  197. /* Define to the equivalent of the C99 'restrict' keyword, or to
  198. nothing if this is not supported. Do not define if restrict is
  199. supported directly. */
  200. #cmakedefine restrict @restrict@
  201. /* Work around a bug in Sun C++: it does not support _Restrict or
  202. __restrict__, even though the corresponding Sun C compiler ends up with
  203. "#define restrict _Restrict" or "#define restrict __restrict__" in the
  204. previous line. Perhaps some future version of Sun C++ will work with
  205. restrict; if so, hopefully it defines __RESTRICT like Sun C does. */
  206. #if defined __SUNPRO_CC && !defined __RESTRICT
  207. # define _Restrict
  208. # define __restrict__
  209. #endif
  210. /* Define to `unsigned int' if <sys/types.h> does not define. */
  211. #cmakedefine size_t unsigned int
  212. /* Define to `int' if <sys/types.h> does not define. */
  213. #cmakedefine ssize_t int
  214. /* Define to the type of an unsigned integer type of width exactly 16 bits if
  215. such a type exists and the standard includes do not define it. */
  216. #cmakedefine uint16_t @uint16_t@
  217. /* Define to the type of an unsigned integer type of width exactly 8 bits if
  218. such a type exists and the standard includes do not define it. */
  219. #cmakedefine uint8_t @uint8_t@
  220. /* Define as `fork' if `vfork' does not work. */
  221. #cmakedefine vfork
  222. #endif