config.w32.h.in 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176
  1. /*
  2. Build Configuration Template for Win32.
  3. $Id$
  4. */
  5. /* Define the minimum supported version */
  6. #undef _WIN32_WINNT
  7. #undef NTDDI_VERSION
  8. #define _WIN32_WINNT 0x0600
  9. #define NTDDI_VERSION 0x06000100
  10. /* Default PHP / PEAR directories */
  11. #define PHP_CONFIG_FILE_PATH (getenv("SystemRoot"))?getenv("SystemRoot"):""
  12. #define CONFIGURATION_FILE_PATH "php.ini"
  13. #define PEAR_INSTALLDIR "@PREFIX@\\pear"
  14. #define PHP_BINDIR "@PREFIX@"
  15. #define PHP_DATADIR "@PREFIX@"
  16. #define PHP_EXTENSION_DIR "@PREFIX@\\ext"
  17. #define PHP_INCLUDE_PATH ".;@PREFIX@\\pear"
  18. #define PHP_LIBDIR "@PREFIX@"
  19. #define PHP_LOCALSTATEDIR "@PREFIX@"
  20. #define PHP_PREFIX "@PREFIX@"
  21. #define PHP_SYSCONFDIR "@PREFIX@"
  22. /* Enable / Disable crypt() function (default: enabled) */
  23. #define HAVE_CRYPT 1
  24. #define PHP_STD_DES_CRYPT 1
  25. #define PHP_EXT_DES_CRYPT 1
  26. #define PHP_MD5_CRYPT 1
  27. #define PHP_BLOWFISH_CRYPT 1
  28. #define PHP_SHA512_CRYPT 1
  29. #define PHP_SHA256_CRYPT 1
  30. /* PHP Runtime Configuration */
  31. #define PHP_URL_FOPEN 1
  32. #define USE_CONFIG_FILE 1
  33. #define DEFAULT_SHORT_OPEN_TAG "1"
  34. /* Platform-Specific Configuration. Should not be changed. */
  35. #define PHP_SIGCHILD 0
  36. #define HAVE_LIBBIND 1
  37. #define HAVE_GETSERVBYNAME 1
  38. #define HAVE_GETSERVBYPORT 1
  39. #define HAVE_GETPROTOBYNAME 1
  40. #define HAVE_GETPROTOBYNUMBER 1
  41. #define HAVE_GETHOSTNAME 1
  42. #define STDIN_FILENO 0
  43. #define STDOUT_FILENO 1
  44. #define STDERR_FILENO 2
  45. #define HAVE_ERRMSG_H 0
  46. #undef HAVE_ADABAS
  47. #undef HAVE_SOLID
  48. #undef HAVE_LINK
  49. #undef HAVE_SYMLINK
  50. /* its in win32/time.c */
  51. #define HAVE_USLEEP 1
  52. #define HAVE_NANOSLEEP 1
  53. #define PHP_SLEEP_NON_VOID 1
  54. #define HAVE_GETHOSTNAME 1
  55. #define HAVE_GETCWD 1
  56. #define HAVE_POSIX_READDIR_R 1
  57. #define NEED_ISBLANK 1
  58. #define DISCARD_PATH 0
  59. #undef HAVE_SETITIMER
  60. #undef HAVE_SIGSETJMP
  61. #undef HAVE_IODBC
  62. #define HAVE_LIBDL 1
  63. #define HAVE_GETTIMEOFDAY 1
  64. #define HAVE_PUTENV 1
  65. #define HAVE_LIMITS_H 1
  66. #define HAVE_TZSET 1
  67. #define HAVE_TZNAME 1
  68. #undef HAVE_FLOCK
  69. #define HAVE_ALLOCA 1
  70. #undef HAVE_SYS_TIME_H
  71. #define HAVE_SIGNAL_H 1
  72. #undef HAVE_ST_BLKSIZE
  73. #undef HAVE_ST_BLOCKS
  74. #define HAVE_ST_RDEV 1
  75. #define HAVE_UTIME_NULL 1
  76. #define HAVE_VPRINTF 1
  77. #define STDC_HEADERS 1
  78. #define REGEX 1
  79. #define HSREGEX 1
  80. #define HAVE_GCVT 1
  81. #define HAVE_GETLOGIN 1
  82. #define HAVE_GETTIMEOFDAY 1
  83. #define HAVE_MEMCPY 1
  84. #define HAVE_MEMMOVE 1
  85. #define HAVE_PUTENV 1
  86. #define HAVE_REGCOMP 1
  87. #define HAVE_SETLOCALE 1
  88. #define HAVE_LOCALECONV 1
  89. #define HAVE_LOCALE_H 1
  90. #ifndef HAVE_LIBBIND
  91. # define HAVE_SETVBUF 1
  92. #endif
  93. #define HAVE_SHUTDOWN 1
  94. #define HAVE_SNPRINTF 1
  95. #define HAVE_VSNPRINTF 1
  96. #define HAVE_STRCASECMP 1
  97. #define HAVE_STRDUP 1
  98. #define HAVE_STRERROR 1
  99. #define HAVE_STRSTR 1
  100. #define HAVE_TEMPNAM 1
  101. #define HAVE_UTIME 1
  102. #undef HAVE_DIRENT_H
  103. #define HAVE_ASSERT_H 1
  104. #define HAVE_FCNTL_H 1
  105. #define HAVE_GRP_H 0
  106. #undef HAVE_PWD_H
  107. #define HAVE_STRING_H 1
  108. #undef HAVE_SYS_FILE_H
  109. #undef HAVE_SYS_SOCKET_H
  110. #undef HAVE_SYS_WAIT_H
  111. #define HAVE_SYSLOG_H 1
  112. #undef HAVE_UNISTD_H
  113. #define HAVE_SYS_TYPES_H 1
  114. #define HAVE_STDARG_H 1
  115. #undef HAVE_ALLOCA_H
  116. #undef HAVE_KILL
  117. #define HAVE_GETPID 1
  118. #define HAVE_LIBM 1
  119. #define HAVE_CUSERID 0
  120. #undef HAVE_RINT
  121. #define HAVE_STRFTIME 1
  122. #define SIZEOF_SHORT 2
  123. /* int and long are stll 32bit in 64bit compiles */
  124. #define SIZEOF_INT 4
  125. #define SIZEOF_LONG 4
  126. /* MSVC.6/NET don't allow 'long long' or know 'intmax_t' */
  127. #define SIZEOF_LONG_LONG_INT 0
  128. #define SIZEOF_LONG_LONG 8 /* defined as __int64 */
  129. #define SIZEOF_INTMAX_T 0
  130. #define ssize_t SSIZE_T
  131. #ifdef _WIN64
  132. # define SIZEOF_SIZE_T 8
  133. # define SIZEOF_PTRDIFF_T 8
  134. #else
  135. # define SIZEOF_SIZE_T 4
  136. # define SIZEOF_PTRDIFF_T 4
  137. #endif
  138. #define HAVE_FNMATCH
  139. #define HAVE_GLOB
  140. #define PHP_SHLIB_SUFFIX "dll"
  141. #define HAVE_SQLDATASOURCES
  142. /* Win32 supports strcoll */
  143. #define HAVE_STRCOLL 1
  144. /* Win32 supports socketpair by the emulation in win32/sockets.c */
  145. #define HAVE_SOCKETPAIR 1
  146. #define HAVE_SOCKLEN_T 1
  147. /* Win32 support proc_open */
  148. #define PHP_CAN_SUPPORT_PROC_OPEN 1
  149. /* inet_ntop() / inet_pton() */
  150. #define HAVE_INET_PTON 1
  151. #define HAVE_INET_NTOP 1
  152. #define HAVE_MBLEN
  153. #undef HAVE_ATOF_ACCEPTS_NAN
  154. #undef HAVE_ATOF_ACCEPTS_INF
  155. #define HAVE_HUGE_VAL_NAN 0
  156. /* vs.net 2005 has a 64-bit time_t. This will likely break
  157. * 3rdParty libs that were built with older compilers; switch
  158. * back to 32-bit */
  159. #ifndef _WIN64
  160. # define _USE_32BIT_TIME_T 1
  161. #endif
  162. #define HAVE_STDLIB_H 1