config.h.in 13.4 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34
/*
 * This file is part of the Sofia-SIP package
 *
 * Copyright (C) 2005 Nokia Corporation.
 *
 * Contact: Pekka Pessi <pekka.pessi@nokia.com>
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public License
 * as published by the Free Software Foundation; either version 2.1 of
 * the License, or (at your option) any later version.
 *
 * This library is distributed in the hope that it will be useful, but
 * WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with this library; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
 * 02110-1301 USA
 *
 */

/**@file win32/config.h.in
 * @brief <config.h> used by Windows.
 *
 * Use this on WIN32. 
 *
 * @author Pekka Pessi <Pekka.Pessi@nokia.com>
 *
 * @date Created: Tue Sep 12 19:22:54 2000 ppessi
 */

Pekka Pessi's avatar
Pekka Pessi committed
35
/* Define to as the random number source name. */
36 37
#undef DEV_URANDOM

Pekka Pessi's avatar
Pekka Pessi committed
38
/* Define to 1 if you have addrinfo structure. */
39 40 41 42 43 44 45 46 47 48 49 50 51 52
#define HAVE_ADDRINFO 1

/* Define to 1 if you have the `alarm' function. */
#undef HAVE_ALARM

/* Define to 1 if you have the <arpa/inet.h> header file. */
#undef HAVE_ARPA_INET_H

/* Define to 1 if you have the `clock_getcpuclockid' function. */
#undef HAVE_CLOCK_GETCPUCLOCKID

/* Define to 1 if you have the `clock_gettime' function. */
#undef HAVE_CLOCK_GETTIME

Pekka Pessi's avatar
Pekka Pessi committed
53
/* Define to 1 if you have /dev/urandom. */
54 55
#undef HAVE_DEV_URANDOM

Pekka Pessi's avatar
Pekka Pessi committed
56 57 58
/* Define to 1 if you have the <dirent.h> header file. */
#undef HAVE_DIRENT_H

59 60 61
/* Define to 1 if you have the <dlfcn.h> header file. */
#undef HAVE_DLFCN_H

Pekka Pessi's avatar
Pekka Pessi committed
62
/* Define to 1 if you have epoll interface. */
63 64
#undef HAVE_EPOLL

Pekka Pessi's avatar
Pekka Pessi committed
65 66 67
/* Define to 1 if you have the <fcntl.h> header file. */
#undef HAVE_FCNTL_H

68 69 70 71 72 73 74 75 76 77
/* Define this as 1 if you have WIN32 FILETIME type and
   GetSystemTimeAsFileTime(). */
#define HAVE_FILETIME 1

/* Define to 1 if you have the `flock' function. */
#undef HAVE_FLOCK

/* Define to 1 if you have the `freeaddrinfo' function. */
#define HAVE_FREEADDRINFO 1

Pekka Pessi's avatar
Pekka Pessi committed
78
/* Define to 1 if the C compiler supports __func__ */
79 80
#undef HAVE_FUNC

Pekka Pessi's avatar
Pekka Pessi committed
81
/* Define to 1 if the C compiler supports __FUNCTION__ */
82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119
#undef HAVE_FUNCTION

/* Define to 1 if you have the `gai_strerror' function. */
#define HAVE_GAI_STRERROR 1

/* Define to 1 if you have the `getaddrinfo' function. */
#define HAVE_GETADDRINFO 1

/* Define to 1 if you have the `getdelim' function. */
#undef HAVE_GETDELIM

/* Define to 1 if you have the `gethostbyname' function. */
#define HAVE_GETHOSTBYNAME 1

/* Define to 1 if you have the `gethostname' function. */
#define HAVE_GETHOSTNAME 1

/* Define to 1 if you have the `getifaddrs' function. */
#undef HAVE_GETIFADDRS

/* Define to 1 if you have the `getipnodebyname' function. */
#undef HAVE_GETIPNODEBYNAME

/* Define to 1 if you have the `getline' function. */
#undef HAVE_GETLINE

/* Define to 1 if you have the `getnameinfo' function. */
#define HAVE_GETNAMEINFO 1

/* Define to 1 if you have the `getpass' function. */
#undef HAVE_GETPASS

/* Define to 1 if you have the `gettimeofday' function. */
#undef HAVE_GETTIMEOFDAY

/* Define to 1 if you have the <ifaddr.h> header file. */
#undef HAVE_IFADDR_H

Pekka Pessi's avatar
Pekka Pessi committed
120
/* Define to 1 if you have SIOCGIFCONF */
121 122
#undef HAVE_IFCONF

Pekka Pessi's avatar
Pekka Pessi committed
123
/* Define to 1 if you have SIOCGIFNUM ioctl */
124 125
#undef HAVE_IFNUM

Pekka Pessi's avatar
Pekka Pessi committed
126
/* Define to 1 if you have ifr_ifindex in <net/if.h> */
127 128
#undef HAVE_IFR_IFINDEX

Pekka Pessi's avatar
Pekka Pessi committed
129
/* Define to 1 if you have ifr_index in <net/if.h> */
130 131 132 133 134 135 136 137 138 139 140 141 142 143
#undef HAVE_IFR_INDEX

/* Define to 1 if you have the `if_nameindex' function. */
#undef HAVE_IF_NAMEINDEX

/* Define to 1 if you have the `inet_ntop' function. */
#undef HAVE_INET_NTOP

/* Define to 1 if you have the `inet_pton' function. */
#undef HAVE_INET_PTON

/* Define to 1 if you have the `initstate' function. */
#undef HAVE_INITSTATE

Pekka Pessi's avatar
Pekka Pessi committed
144
/* Define to 1 if you have inlining compiler */
145 146
#define HAVE_INLINE 1

Pekka Pessi's avatar
Pekka Pessi committed
147
/* Define to 1 if you have WIN32 INTERFACE_INFO_EX type. */
148 149 150 151 152
#undef HAVE_INTERFACE_INFO_EX

/* Define to 1 if you have the <inttypes.h> header file. */
#undef HAVE_INTTYPES_H

Pekka Pessi's avatar
Pekka Pessi committed
153
/* Define to 1 if you have the <iphlpapi.h> header file. */
154 155 156
// XXX: vehmanek-win32-fix:
#undef HAVE_IPHLPAPI_H

Pekka Pessi's avatar
Pekka Pessi committed
157
/* Define to 1 if you have IPV6_RECVERR in <netinet/in6.h> */
158 159
#undef HAVE_IPV6_RECVERR

Pekka Pessi's avatar
Pekka Pessi committed
160
/* Define to 1 if you have IP_RECVERR in <netinet/in.h> */
161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189
#undef HAVE_IP_RECVERR

/* Define to 1 if you have the `crypto' library (-lcrypto). */
#undef HAVE_LIBCRYPTO

/* Define to 1 if you have the `pthread' library (-lpthread). */
#define HAVE_LIBPTHREAD 1

/* Define to 1 if you have the `socket' library (-lsocket). */
#undef HAVE_LIBSOCKET

/* Define to 1 if you have the `ssl' library (-lssl). */
#undef HAVE_LIBSSL

/* Define to 1 if you have the `memccpy' function. */
#undef HAVE_MEMCCPY

/* Define to 1 if you have the `memcspn' function. */
#undef HAVE_MEMCSPN

/* Define to 1 if you have the `memmem' function. */
#undef HAVE_MEMMEM

/* Define to 1 if you have the <memory.h> header file. */
#undef HAVE_MEMORY_H

/* Define to 1 if you have the `memspn' function. */
#undef HAVE_MEMSPN

Pekka Pessi's avatar
Pekka Pessi committed
190
/* Define to 1 if you are compiling in MinGW environment */
191 192
#undef HAVE_MINGW

Pekka Pessi's avatar
Pekka Pessi committed
193 194 195
/* Define to 1 if you have MSG_TRUNC flag */
#undef HAVE_MSG_TRUNC

196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216
/* Define to 1 if you have the <netdb.h> header file. */
#undef HAVE_NETDB_H

/* Define to 1 if you have the <netinet/in.h> header file. */
#undef HAVE_NETINET_IN_H

/* Define to 1 if you have the <netinet/sctp.h> header file. */
#undef HAVE_NETINET_SCTP_H

/* Define to 1 if you have the <netinet/tcp.h> header file. */
#undef HAVE_NETINET_TCP_H

/* Define to 1 if you have the <netpacket/packet.h> header file. */
#undef HAVE_NETPACKET_PACKET_H

/* Define to 1 if you have the <net/if.h> header file. */
#undef HAVE_NET_IF_H

/* Define to 1 if you have the <net/if_types.h> header file. */
#undef HAVE_NET_IF_TYPES_H

Pekka Pessi's avatar
Pekka Pessi committed
217
/* Define to 1 if you have OpenSSL */
218 219 220 221 222 223 224 225
#undef HAVE_OPENSSL

/* Define to 1 if you have the <openssl/tls1.h> header file. */
#undef HAVE_OPENSSL_TLS1_H

/* Define to 1 if you have the `poll' function. */
#undef HAVE_POLL

Pekka Pessi's avatar
Pekka Pessi committed
226 227 228 229
/* Define to 1 if you use poll in su_port. */
#define HAVE_POLL_PORT 1

/* Define to 1 if you have /proc/net/if_inet6 control file */
230 231
#undef HAVE_PROC_NET_IF_INET6

Pekka Pessi's avatar
Pekka Pessi committed
232 233 234 235 236 237 238
/* Define to 1 if you have working pthread_rwlock_t implementation. A thread
   may hold multiple concurrent read locks on rwlock - that is, successfully
   call the pthread_rwlock_rdlock() function n times. If so, the application
   shall ensure that the thread performs matching unlocks - that is, it calls
   the pthread_rwlock_unlock() function n times. */
#undef HAVE_PTHREAD_RWLOCK

239 240 241 242 243 244 245
/* Define to 1 if you have the <pthread.h> header file. */
#define HAVE_PTHREAD_H 1

/* Define to 1 if you have the `random' function. */
/* See later */
#define HAVE_RANDOM 1

Pekka Pessi's avatar
Pekka Pessi committed
246
/* Define to 1 if you have sa_len in struct sockaddr */
247 248
#undef HAVE_SA_LEN

Pekka Pessi's avatar
Pekka Pessi committed
249
/* Define to 1 if you have SCTP */
250 251 252 253 254
#undef HAVE_SCTP

/* Define to 1 if you have the `select' function. */
#undef HAVE_SELECT

Pekka Pessi's avatar
Pekka Pessi committed
255
/* Define to 1 if you have Sofia sigcomp >= 2.5 */
256 257 258 259 260
#undef HAVE_SIGCOMP

/* Define to 1 if you have the <sigcomp.h> header file. */
#undef HAVE_SIGCOMP_H

Pekka Pessi's avatar
Pekka Pessi committed
261 262 263 264
/* Define to 1 if you have the `signal' function. */
#define HAVE_SIGNAL 1

/* Define to 1 if you have SIGPIPE */
265 266
#undef HAVE_SIGPIPE

Pekka Pessi's avatar
Pekka Pessi committed
267
/* Define to 1 if you have IPv6 structures and constants */
268 269
#define HAVE_SIN6 1

Pekka Pessi's avatar
Pekka Pessi committed
270
/* Define to 1 if you have WIN32 WSAIoctl SIO_ADDRESS_LIST_QUERY. */
271 272 273 274 275
#define HAVE_SIO_ADDRESS_LIST_QUERY 1

/* Define to 1 if you have the `socketpair' function. */
#undef HAVE_SOCKETPAIR

276 277 278
/* Define to 1 if we use NTH library */
#define HAVE_SOFIA_NTH 1

Pekka Pessi's avatar
Pekka Pessi committed
279 280 281 282
/* Define to 1 if we use NTLM library */
#undef HAVE_SOFIA_NTLM

/* Define to 1 if you have Sofia sigcomp >= 2.5 */
283 284
#undef HAVE_SOFIA_SIGCOMP

Pekka Pessi's avatar
Pekka Pessi committed
285
/* Define to 1 always */
286 287
#define HAVE_SOFIA_SIP 1

Pekka Pessi's avatar
Pekka Pessi committed
288
/* Define to 1 if we use S/MIME library */
289 290
#undef HAVE_SOFIA_SMIME

Pekka Pessi's avatar
Pekka Pessi committed
291
/* Define to 1 if we use DNS library */
292 293
#define HAVE_SOFIA_SRESOLV 1

Pekka Pessi's avatar
Pekka Pessi committed
294
/* Define to 1 if we use STUN library */
295 296
#undef HAVE_SOFIA_STUN

Pekka Pessi's avatar
Pekka Pessi committed
297
/* Define to 1 always */
298 299
#define HAVE_SOFIA_SU 1

Pekka Pessi's avatar
Pekka Pessi committed
300
/* Define to 1 if we use SRTP */
301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323
#undef HAVE_SRTP

/* Define to 1 if you have the <stdint.h> header file. */
#undef HAVE_STDINT_H

/* Define to 1 if you have the <stdlib.h> header file. */
#define HAVE_STDLIB_H 1

/* Define to 1 if you have the `strcasestr' function. */
#undef HAVE_STRCASESTR

/* Define to 1 if you have the `strerror' function. */
#define HAVE_STRERROR 1

/* Define to 1 if you have the <strings.h> header file. */
#undef HAVE_STRINGS_H

/* Define to 1 if you have the <string.h> header file. */
#define HAVE_STRING_H 1

/* Define to 1 if you have the `strtoull' function. */
#undef HAVE_STRTOULL

Pekka Pessi's avatar
Pekka Pessi committed
324
/* Define to 1 if your CC supports C99 struct initialization */
325 326 327 328 329
#undef HAVE_STRUCT_KEYWORDS

/* Define to 1 if you have the <sofia-sip/su_wait.h> header file. */
#define HAVE_SU_WAIT_H 1

Pekka Pessi's avatar
Pekka Pessi committed
330 331 332
/* Define to 1 if you have the <sys/epoll.h> header file. */
#undef HAVE_SYS_EPOLL_H

333 334 335
/* Define to 1 if you have the <sys/filio.h> header file. */
#undef HAVE_SYS_FILIO_H

Pekka Pessi's avatar
Pekka Pessi committed
336 337 338
/* Define to 1 if you have the <sys/ioctl.h> header file. */
#undef HAVE_SYS_IOCTL_H

339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359
/* Define to 1 if you have the <sys/select.h> header file. */
#undef HAVE_SYS_SELECT_H

/* Define to 1 if you have the <sys/socket.h> header file. */
#undef HAVE_SYS_SOCKET_H

/* Define to 1 if you have the <sys/sockio.h> header file. */
#undef HAVE_SYS_SOCKIO_H

/* Define to 1 if you have the <sys/stat.h> header file. */
#define HAVE_SYS_STAT_H 1

/* Define to 1 if you have the <sys/time.h> header file. */
#undef HAVE_SYS_TIME_H

/* Define to 1 if you have the <sys/types.h> header file. */
#define HAVE_SYS_TYPES_H 1

/* Define to 1 if you have the `tcsetattr' function. */
#undef HAVE_TCSETATTR

Pekka Pessi's avatar
Pekka Pessi committed
360
/* Define to 1 if you have TLS */
361 362 363 364 365
#undef HAVE_TLS

/* Define to 1 if you have the <unistd.h> header file. */
#undef HAVE_UNISTD_H

Pekka Pessi's avatar
Pekka Pessi committed
366
/* Define to 1 if we use UPnP */
367 368
#undef HAVE_UPNP

Pekka Pessi's avatar
Pekka Pessi committed
369
/* Define to 1 you have WIN32 */
370 371 372 373 374 375 376 377 378 379 380
#define HAVE_WIN32 1

/* Define to 1 if you have the <windef.h> header file. */
#define HAVE_WINDEF_H 1

/* Define to 1 if you have the <winsock2.h> header file. */
#define HAVE_WINSOCK2_H 1

/* Define to 1 if you have the <ws2tcpip.h> header file. */
#define HAVE_WS2TCPIP_H 1

Pekka Pessi's avatar
Pekka Pessi committed
381
/* Define to format (%lli) for long long */
382 383
#define LLI "%I64i"

Pekka Pessi's avatar
Pekka Pessi committed
384
/* Define to format (%llu) for unsigned long long */
385 386
#define LLU "%I64u"

Pekka Pessi's avatar
Pekka Pessi committed
387
/* Define to format (%llx) for long long hex */
388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463
#define LLX "%I64x"

/* Name of package */
#define PACKAGE "@PACKAGE@"

/* Define to the address where bug reports for this package should be sent. */
#define PACKAGE_BUGREPORT "@PACKAGE_BUGREPORT@"

/* Define to the full name of this package. */
#define PACKAGE_NAME "@PACKAGE_NAME@"

/* Define to the full name and version of this package. */
#define PACKAGE_STRING "@PACKAGE_STRING@"

/* Define to the one symbol short name of this package. */
#define PACKAGE_TARNAME "@PACKAGE_TARNAME@"

/* Define to the version of this package. */
#define PACKAGE_VERSION "@PACKAGE_VERSION@"

/* Define as the return type of signal handlers (`int' or `void'). */
#define RETSIGTYPE void

/* Define to 1 if you have the ANSI C header files. */
#define STDC_HEADERS 1

/* Define to 1 if you can safely include both <sys/time.h> and <time.h>. */
#undef TIME_WITH_SYS_TIME

/* Version number of package */
#define VERSION "@PACKAGE_VERSION@"

/* Define to 1 if your processor stores words with the most significant byte
   first (like Motorola and SPARC, unlike Intel and VAX). */
#undef WORDS_BIGENDIAN

/* Enable GNU extensions on systems that have them.  */
#ifndef _GNU_SOURCE
# define _GNU_SOURCE 1
#endif

/* Define to empty if `const' does not conform to ANSI C. */
#undef const

/* Define to `__inline__' or `__inline' if that's what the C compiler
   calls it, or to nothing if 'inline' is not supported under any name.  */
#ifndef __cplusplus
#define inline __inline
#endif

/* Define as at least 64-bit int type */
#define longlong __int64

/* Define to `unsigned' if <sys/types.h> does not define. */
/* PPe: defined in stddef.h */
#undef size_t

#define HOSTTYPE "pc-xp-win32"
/* #define HOSTTYPE "pc-98-win32" */
/* #define HOSTTYPE "pc-nt-win32" */

/* Define this as locale-independent strcmp().  */
#define strcasecmp  _stricmp

/* Define this as locale-independent strncmp().  */
#define strncasecmp _strnicmp

#define snprintf _snprintf
#define vsnprintf _vsnprintf

#define srandom(x)    srand((x))
#define random()      rand()

/* This is GCC magic  */
#define __attribute__(x)

Pekka Pessi's avatar
Pekka Pessi committed
464
/* Define to 1 if you have TimeGetTime() */
465 466 467 468 469 470
#define HAVE_TIMEGETTIME     1

#define PATH_MAX _MAX_PATH

#define HAVE_WINMM 1

Pekka Pessi's avatar
Pekka Pessi committed
471
/* Define to 1 if you have FILETIME */
472 473
#define HAVE_FILETIME 1

Pekka Pessi's avatar
Pekka Pessi committed
474
/* Define to 1 if you have WinSock2 ioctl SIO_ADDRESS_LIST_QUERY */
475 476
#define HAVE_SIO_ADDRESS_LIST_QUERY 1

Pekka Pessi's avatar
Pekka Pessi committed
477
/* Define to 1 if you have INTERFACE_INFO ioctl */
478 479 480 481 482 483 484
#define HAVE_INTERFACE_INFO 	   (1) 

/* Ignore certain warnings */
#ifdef _MSC_VER
#pragma warning( disable : 4090 4204 4244 4018 4514 4706 4761)
/* VC does not grok const */
#pragma warning( disable : 4022 4028 )
485 486
/* Temporarily disable high frequency, low value warnings.  
   We may still want to re-enable and fix these */
487
#pragma warning( disable : 4132 4100 4127 4152)
488 489 490 491 492 493 494 495
#if (_MSC_VER >= 1400) // VC8+
#ifndef _CRT_SECURE_NO_DEPRECATE
#define _CRT_SECURE_NO_DEPRECATE
#endif
#ifndef _CRT_NONSTDC_NO_DEPRECATE
#define _CRT_NONSTDC_NO_DEPRECATE
#endif
#endif // VC8+
496
#endif
497 498 499 500 501

/* size_t/ssize_t modifiers 
 * ref: http://msdn2.microsoft.com/en-us/library/tcxf1dw6.aspx */
#define MOD_ZD "%ld"
#define MOD_ZU "%lu"