Optional Two-phase heap tracing
[hiphop-php.git] / hphp / util / hphp-config.h.in
bloba7c4fa1a14a8586d51fcbe9131ad5cb811ab2815
1 #ifndef incl_HPHP_UTIL_HPHP_CONFIG_H_
2 #define incl_HPHP_UTIL_HPHP_CONFIG_H_
4 #ifndef FACEBOOK
5 # define HPHP_OSS 1
6 #endif
8 /* Forced defines. These won't change. */
9 /* Define if built-in ELF support is used for ext_fileinfo */
10 #define BUILTIN_ELF 1
11 /* Define for ELF core file support in ext_fileinfo */
12 #define ELFCORE 1
14 /* HHVM requires zlib, and we use a bundled version if it isn't present
15 * on the build system, so we definitely have this.
17 #define HAVE_LIBZ 1
19 /**
20 * These headers are known to be present because they are either required
21 * for HHVM itself, or else are provided by a bundled component when not
22 * present on the build system.
24 #define HAVE_ZLIB_H 1
26 /**
27 * These functions are known to be present because they are either required
28 * for HHVM itself, or else are provided by a bundled component when not
29 * present on the build system.
31 // None for now.
33 /**
34 * Everything below here should be separated into one section for CMake
35 * and one for non-CMake builds done by FB.
37 * If you add any defines here or in HHVMGenerateConfig.cmake, you must make
38 * sure to update the non-CMake side. If you are not sure if a particular
39 * define should be present, ask your FB reviewer.
42 #ifdef USE_CMAKE
43 #cmakedefine ENABLE_AVX2 1
44 #cmakedefine ENABLE_AARCH64_CRC 1
45 #cmakedefine EXECUTION_PROFILER 1
46 #else
47 /* #undef ENABLE_AVX2 */
48 /* #undef ENABLE_AARCH64_CRC */
49 /* #undef EXECUTION_PROFILER */
50 #endif
52 /* Checked Headers */
53 #ifdef USE_CMAKE
54 ${HHVM_HEADERS_FOUND_DEFINE_STRING}
55 #else
56 # define HAVE_INTTYPES_H 1
57 # define HAVE_LIMITS_H 1
58 # define HAVE_UTIME_H 1
59 # define HAVE_WCHAR_H 1
60 # define HAVE_WCTYPE_H 1
61 # define HAVE_SYS_MMAN_H 1
62 /* #undef HAVE_SYS_UTIME_H */
63 #endif
65 /* Checked Functions */
66 #ifdef USE_CMAKE
67 ${HHVM_FUNCTIONS_FOUND_DEFINE_STRING}
68 #else
69 # define HAVE_GETLINE 1
70 # define HAVE_MBRTOWC 1
71 # define HAVE_MKSTEMP 1
72 # define HAVE_MMAP 1
73 # define HAVE_STRERROR 1
74 /* #undef HAVE_STRLCPY */
75 # define HAVE_STRTOF 1
76 # define HAVE_STRTOUL 1
77 # define HAVE_UTIME 1
78 # define HAVE_UTIMES 1
79 #endif
81 #ifdef USE_CMAKE
82 ${HHVM_COMPILES_DEFINE_STRING}
83 #else
84 # define HAVE_TM_ISDST 1
85 # define HAVE_STRUCT_TM_TM_GMTOFF 1
86 # define HAVE_STRUCT_TM_TM_ZONE 1
87 # define HAVE_DAYLIGHT 1
88 /* #undef MAJOR_IN_MKDEV */
89 /* #undef MAJOR_IN_SYSMACROS */
90 # define HAVE_VISIBILITY 1
91 #endif
93 #ifdef USE_CMAKE
94 # if ${HHVM_EXTENSION_COUNT} != 91
95 # error You need to update the config file for the new builtin extension, and add the define to the FB section
96 # endif
97 ${HHVM_EXTENSIONS_ENABLED_DEFINE_STRING}
98 #else
99 # define ENABLE_EXTENSION_APACHE 1
100 # define ENABLE_EXTENSION_APC 1
101 # define ENABLE_EXTENSION_ASIO 1
102 # define ENABLE_EXTENSION_ARRAY 1
103 # define ENABLE_EXTENSION_ASYNC_MYSQL 1
104 # define ENABLE_EXTENSION_BCMATH 1
105 # define ENABLE_EXTENSION_BZ2 1
106 # define ENABLE_EXTENSION_COLLECTIONS 1
107 # define ENABLE_EXTENSION_CTYPE 1
108 # define ENABLE_EXTENSION_CURL 1
109 # define ENABLE_EXTENSION_DATETIME 1
110 # define ENABLE_EXTENSION_DEBUGGER 1
111 # define ENABLE_EXTENSION_DOMDOCUMENT 1
112 # define ENABLE_EXTENSION_ENUM 1
113 # define ENABLE_EXTENSION_FACTPARSE 1
114 # define ENABLE_EXTENSION_FB 1
115 # define ENABLE_EXTENSION_FILEINFO 1
116 # define ENABLE_EXTENSION_FILTER 1
117 /* #undef ENABLE_EXTENSION_FRIBIDI */
118 # define ENABLE_EXTENSION_GD 1
119 # define ENABLE_EXTENSION_GETTEXT 1
120 # define ENABLE_EXTENSION_GENERATOR 1
121 # define ENABLE_EXTENSION_HASH 1
122 # define ENABLE_EXTENSION_GMP 1
123 # define ENABLE_EXTENSION_HH 1
124 # define ENABLE_EXTENSION_HH_CLIENT 1
125 # define ENABLE_EXTENSION_HOTPROFILER 1
126 # define ENABLE_EXTENSION_ICU 1
127 # define ENABLE_EXTENSION_ICONV 1
128 # define ENABLE_EXTENSION_IMAGICK 1
129 # define ENABLE_EXTENSION_IMAP 1
130 # define ENABLE_EXTENSION_INTERVALTIMER 1
131 # define ENABLE_EXTENSION_IPC 1
132 # define ENABLE_EXTENSION_JSON 1
133 # define ENABLE_EXTENSION_LDAP 1
134 # define ENABLE_EXTENSION_LIBSODIUM 1
135 # define ENABLE_EXTENSION_LIBXML 1
136 # define ENABLE_EXTENSION_LZ4 1
137 # define ENABLE_EXTENSION_MAIL 1
138 # define ENABLE_EXTENSION_MAILPARSE 1
139 # define ENABLE_EXTENSION_MBSTRING 1
140 # define ENABLE_EXTENSION_MCROUTER 1
141 # define ENABLE_EXTENSION_MCRYPT 1
142 # define ENABLE_EXTENSION_MEMCACHED 1
143 # define ENABLE_EXTENSION_MYSQL 1
144 # define ENABLE_EXTENSION_MYSQLI 1
145 # define ENABLE_EXTENSION_MEMCACHE 1
146 # define ENABLE_EXTENSION_OBJPROF 1
147 # define ENABLE_EXTENSION_ODBC 1
148 # define ENABLE_EXTENSION_OPENSSL 1
149 # define ENABLE_EXTENSION_PASSWORD 1
150 # define ENABLE_EXTENSION_PCRE 1
151 # define ENABLE_EXTENSION_PDO 1
152 # define ENABLE_EXTENSION_PDO_MYSQL 1
153 # define ENABLE_EXTENSION_PDO_SQLITE 1
154 /* #undef ENABLE_EXTENSION_PGSQL */
155 # define ENABLE_EXTENSION_PHAR 1
156 # define ENABLE_EXTENSION_POSIX 1
157 # define ENABLE_EXTENSION_PROCESS 1
158 # define ENABLE_EXTENSION_RANDOM 1
159 # define ENABLE_EXTENSION_READLINE 1
160 # define ENABLE_EXTENSION_REFLECTION 1
161 # define ENABLE_EXTENSION_SCRYPT 1
162 # define ENABLE_EXTENSION_SERVER 1
163 # define ENABLE_EXTENSION_SESSION 1
164 # define ENABLE_EXTENSION_SHMOP 1
165 # define ENABLE_EXTENSION_SIMPLEXML 1
166 # define ENABLE_EXTENSION_SNAPPY 1
167 # define ENABLE_EXTENSION_SOAP 1
168 # define ENABLE_EXTENSION_SOCKETS 1
169 # define ENABLE_EXTENSION_SPL 1
170 # define ENABLE_EXTENSION_SQLITE3 1
171 # define ENABLE_EXTENSION_STD 1
172 # define ENABLE_EXTENSION_STREAM 1
173 # define ENABLE_EXTENSION_STRING 1
174 # define ENABLE_EXTENSION_THREAD 1
175 # define ENABLE_EXTENSION_THRIFT 1
176 # define ENABLE_EXTENSION_URL 1
177 # define ENABLE_EXTENSION_VSDEBUG 1
178 # define ENABLE_EXTENSION_WDDX 1
179 # define ENABLE_EXTENSION_WEAKREF 1
180 # define ENABLE_EXTENSION_XDEBUG 1
181 # define ENABLE_EXTENSION_XENON 1
182 # define ENABLE_EXTENSION_XHPROF 1
183 # define ENABLE_EXTENSION_XMLREADER 1
184 # define ENABLE_EXTENSION_XML 1
185 # define ENABLE_EXTENSION_XSL 1
186 # define ENABLE_EXTENSION_ZIP 1
187 # define ENABLE_EXTENSION_WATCHMAN 1
188 # define ENABLE_EXTENSION_XMLWRITER 1
189 # define ENABLE_EXTENSION_ZLIB 1
190 #endif
192 #endif