1 #ifndef HEADER_CURL_CONFIG_OS400_H
2 #define HEADER_CURL_CONFIG_OS400_H
3 /***************************************************************************
5 * Project ___| | | | _ \| |
7 * | (__| |_| | _ <| |___
8 * \___|\___/|_| \_\_____|
10 * Copyright (C) 1998 - 2013, Daniel Stenberg, <daniel@haxx.se>, et al.
12 * This software is licensed as described in the file COPYING, which
13 * you should have received as part of this distribution. The terms
14 * are also available at http://curl.haxx.se/docs/copyright.html.
16 * You may opt to use, copy, modify, merge, publish, distribute and/or sell
17 * copies of the Software, and permit persons to whom the Software is
18 * furnished to do so, under the terms of the COPYING file.
20 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
21 * KIND, either express or implied.
23 ***************************************************************************/
25 /* ================================================================ */
26 /* Hand crafted config file for OS/400 */
27 /* ================================================================ */
33 /* Version number of this archive. */
36 /* Define if you have the getpass function. */
39 /* Define cpu-machine-OS */
42 /* Define if you have the gethostbyaddr_r() function with 5 arguments */
43 #define HAVE_GETHOSTBYADDR_R_5
45 /* Define if you have the gethostbyaddr_r() function with 7 arguments */
46 #undef HAVE_GETHOSTBYADDR_R_7
48 /* Define if you have the gethostbyaddr_r() function with 8 arguments */
49 #undef HAVE_GETHOSTBYADDR_R_8
51 /* OS400 supports a 3-argument ASCII version of gethostbyaddr_r(), but its
52 * prototype is incompatible with the "standard" one (1st argument is not
53 * const). However, getaddrinfo() is supported (ASCII version defined as
54 * a local wrapper in setup-os400.h) in a threadsafe way: we can then
55 * configure getaddrinfo() as such and get rid of gethostbyname_r() without
56 * loss of threadsafeness. */
57 #undef HAVE_GETHOSTBYNAME_R
58 #undef HAVE_GETHOSTBYNAME_R_3
59 #undef HAVE_GETHOSTBYNAME_R_5
60 #undef HAVE_GETHOSTBYNAME_R_6
61 #define HAVE_GETADDRINFO
62 #define HAVE_GETADDRINFO_THREADSAFE
64 /* Define if you need the _REENTRANT define for some functions */
67 /* Define if you have the Kerberos4 libraries (including -ldes) */
70 /* Define if you want to enable IPv6 support */
73 /* Define if struct sockaddr_in6 has the sin6_scope_id member */
74 #define HAVE_SOCKADDR_IN6_SIN6_SCOPE_ID 1
76 /* Define this to 'int' if ssize_t is not an available typedefed type */
79 /* Define this as a suitable file to read random data from */
82 /* Define this to your Entropy Gathering Daemon socket pathname */
85 /* Define to 1 if you have the alarm function. */
88 /* Define if you have the <alloca.h> header file. */
91 /* Define if you have the <arpa/inet.h> header file. */
92 #define HAVE_ARPA_INET_H
94 /* Define if you have the `closesocket' function. */
95 #undef HAVE_CLOSESOCKET
97 /* Define if you have the <crypto.h> header file. */
100 /* Define if you have the <des.h> header file. */
103 /* Define if you have the <errno.h> header file. */
106 /* Define if you have the <err.h> header file. */
109 /* Define if you have the <fcntl.h> header file. */
112 /* Define if you have the `geteuid' function. */
115 /* Define if you have the `gethostbyaddr' function. */
116 #define HAVE_GETHOSTBYADDR
118 /* Define if you have the `gethostbyaddr_r' function. */
119 #define HAVE_GETHOSTBYADDR_R
121 /* Define if you have the `gethostname' function. */
122 #define HAVE_GETHOSTNAME
124 /* Define if you have the <getopt.h> header file. */
127 /* Define if you have the `getpass_r' function. */
128 #undef HAVE_GETPASS_R
130 /* Define if you have the `getpwuid' function. */
131 #define HAVE_GETPWUID
133 /* Define if you have the `getservbyname' function. */
134 #define HAVE_GETSERVBYNAME
136 /* Define if you have the `gettimeofday' function. */
137 #define HAVE_GETTIMEOFDAY
139 /* Define if you have the `timeval' struct. */
140 #define HAVE_STRUCT_TIMEVAL
142 /* Define if you have the `inet_addr' function. */
143 #define HAVE_INET_ADDR
145 /* Define if you have the <inttypes.h> header file. */
146 #define HAVE_INTTYPES_H
148 /* Define if you have the <io.h> header file. */
151 /* Define if you have the `krb_get_our_ip_for_realm' function. */
152 #undef HAVE_KRB_GET_OUR_IP_FOR_REALM
154 /* Define if you have the <krb.h> header file. */
157 /* Define if you have the `crypto' library (-lcrypto). */
158 #undef HAVE_LIBCRYPTO
160 /* Define if you have the `nsl' library (-lnsl). */
163 /* Define if you have the `resolv' library (-lresolv). */
164 #undef HAVE_LIBRESOLV
166 /* Define if you have the `resolve' library (-lresolve). */
167 #undef HAVE_LIBRESOLVE
169 /* Define if you have the `socket' library (-lsocket). */
170 #undef HAVE_LIBSOCKET
172 /* Define if you have the `ssl' library (-lssl). */
175 /* Define if you have GSS API. */
178 /* Define if you have the `ucb' library (-lucb). */
181 /* Define if you have the `localtime_r' function. */
182 #define HAVE_LOCALTIME_R
184 /* Define if you have the <malloc.h> header file. */
185 #define HAVE_MALLOC_H
187 /* Define if you need the malloc.h header file even with stdlib.h */
188 /* #define NEED_MALLOC_H 1 */
190 /* Define if you have the <memory.h> header file. */
193 /* Define if you have the <netdb.h> header file. */
196 /* Define if you have the <netinet/if_ether.h> header file. */
197 #undef HAVE_NETINET_IF_ETHER_H
199 /* Define if you have the <netinet/in.h> header file. */
200 #define HAVE_NETINET_IN_H
202 /* Define if you have the <net/if.h> header file. */
203 #define HAVE_NET_IF_H
205 /* Define if you have the <openssl/crypto.h> header file. */
206 #undef HAVE_OPENSSL_CRYPTO_H
208 /* Define if you have the <openssl/err.h> header file. */
209 #undef HAVE_OPENSSL_ERR_H
211 /* Define if you have the <openssl/pem.h> header file. */
212 #undef HAVE_OPENSSL_PEM_H
214 /* Define if you have the <openssl/rsa.h> header file. */
215 #undef HAVE_OPENSSL_RSA_H
217 /* Define if you have the <openssl/ssl.h> header file. */
218 #undef HAVE_OPENSSL_SSL_H
220 /* Define if you have the <openssl/x509.h> header file. */
221 #undef HAVE_OPENSSL_X509_H
223 /* Define if you have the <pem.h> header file. */
226 /* Define if you have the `perror' function. */
229 /* Define if you have the <pwd.h> header file. */
232 /* Define if you have the `RAND_egd' function. */
235 /* Define if you have the `RAND_screen' function. */
236 #undef HAVE_RAND_SCREEN
238 /* Define if you have the `RAND_status' function. */
239 #undef HAVE_RAND_STATUS
241 /* Define if you have the <rsa.h> header file. */
244 /* Define if you have the `select' function. */
247 /* Define if you have the `setvbuf' function. */
250 /* Define if you have the <sgtty.h> header file. */
253 /* Define if you have the `sigaction' function. */
254 #define HAVE_SIGACTION
256 /* Define if you have the `signal' function. */
259 /* Define if you have the <signal.h> header file. */
260 #define HAVE_SIGNAL_H
262 /* Define if sig_atomic_t is an available typedef. */
263 #define HAVE_SIG_ATOMIC_T
265 /* Define if sig_atomic_t is already defined as volatile. */
266 #undef HAVE_SIG_ATOMIC_T_VOLATILE
268 /* Define if you have the `socket' function. */
271 /* Define if you have the <ssl.h> header file. */
274 /* Define if you have the <stdint.h> header file. */
277 /* Define if you have the <stdlib.h> header file. */
278 #define HAVE_STDLIB_H
281 /* The following define is needed on OS400 to enable strcmpi(), stricmp() and
283 #define __cplusplus__strings__
285 /* Define if you have the `strcasecmp' function. */
286 #undef HAVE_STRCASECMP
288 /* Define if you have the `strcmpi' function. */
291 /* Define if you have the `stricmp' function. */
294 /* Define if you have the `strdup' function. */
298 /* Define if you have the `strftime' function. */
299 #define HAVE_STRFTIME
301 /* Define if you have the <strings.h> header file. */
302 #define HAVE_STRINGS_H
304 /* Define if you have the <string.h> header file. */
305 #define HAVE_STRING_H
307 /* Define if you have the `strlcpy' function. */
310 /* Define if you have the <stropts.h> header file. */
311 #undef HAVE_STROPTS_H
313 /* Define if you have the `strstr' function. */
316 /* Define if you have the `strtok_r' function. */
317 #define HAVE_STRTOK_R
319 /* Define if you have the `strtoll' function. */
320 #undef HAVE_STRTOLL /* Allows ASCII compile on V5R1. */
322 /* Define if you have the <sys/param.h> header file. */
323 #define HAVE_SYS_PARAM_H
325 /* Define if you have the <sys/select.h> header file. */
326 #undef HAVE_SYS_SELECT_H
328 /* Define if you have the <sys/socket.h> header file. */
329 #define HAVE_SYS_SOCKET_H
331 /* Define if you have the <sys/sockio.h> header file. */
332 #undef HAVE_SYS_SOCKIO_H
334 /* Define if you have the <sys/stat.h> header file. */
335 #define HAVE_SYS_STAT_H
337 /* Define if you have the <sys/time.h> header file. */
338 #define HAVE_SYS_TIME_H
340 /* Define if you have the <sys/types.h> header file. */
341 #define HAVE_SYS_TYPES_H
343 /* Define if you have the <sys/un.h> header file. */
344 #define HAVE_SYS_UN_H
346 /* Define if you have the <sys/ioctl.h> header file. */
347 #define HAVE_SYS_IOCTL_H
349 /* Define if you have the `tcgetattr' function. */
350 #undef HAVE_TCGETATTR
352 /* Define if you have the `tcsetattr' function. */
353 #undef HAVE_TCSETATTR
355 /* Define if you have the <termios.h> header file. */
356 #undef HAVE_TERMIOS_H
358 /* Define if you have the <termio.h> header file. */
361 /* Define if you have the <time.h> header file. */
364 /* Define if you have the `uname' function. */
367 /* Define if you have the <unistd.h> header file. */
368 #define HAVE_UNISTD_H
370 /* Define if you have the <winsock.h> header file. */
371 #undef HAVE_WINSOCK_H
373 /* Define if you have the <x509.h> header file. */
376 /* Name of package */
379 /* Define as the return type of signal handlers (`int' or `void'). */
380 #define RETSIGTYPE void
382 /* The size of `int', as computed by sizeof. */
385 /* The size of a `long double', as computed by sizeof. */
386 #define SIZEOF_LONG_DOUBLE 8
388 /* Define if the compiler supports the 'long long' data type. */
389 #define HAVE_LONGLONG
391 /* The size of a `long long', as computed by sizeof. */
392 #define SIZEOF_LONG_LONG 8
394 /* The size of `short', as computed by sizeof. */
395 #define SIZEOF_SHORT 2
397 /* The size of `size_t', as computed by sizeof. */
398 #define SIZEOF_SIZE_T 8
400 /* Whether long long constants must be suffixed by LL. */
404 /* Define this if you have struct sockaddr_storage */
405 #define HAVE_STRUCT_SOCKADDR_STORAGE
407 /* Define if you have the ANSI C header files. */
410 /* Define if you can safely include both <sys/time.h> and <time.h>. */
411 #define TIME_WITH_SYS_TIME
413 /* Version number of package */
416 /* Number of bits in a file offset, on hosts where this is settable. */
417 #undef _FILE_OFFSET_BITS
419 /* Define for large files, on AIX-style hosts. */
422 /* Define to empty if `const' does not conform to ANSI C. */
425 /* type to use in place of in_addr_t if not defined */
426 #define in_addr_t unsigned long
428 /* Define to `unsigned' if <sys/types.h> does not define. */
431 /* Define if you have the ioctl function. */
434 /* Define if you have a working ioctl FIONBIO function. */
435 #define HAVE_IOCTL_FIONBIO
437 /* Define if you have a working ioctl SIOCGIFADDR function. */
438 #define HAVE_IOCTL_SIOCGIFADDR
440 /* To disable LDAP */
441 #undef CURL_DISABLE_LDAP
443 /* Definition to make a library symbol externally visible. */
444 #define CURL_EXTERN_SYMBOL
446 /* Define if you have the ldap_url_parse procedure. */
447 /* #define HAVE_LDAP_URL_PARSE */ /* Disabled because of an IBM bug. */
449 /* Define if you have the getnameinfo function. */
450 /* OS400 has no ASCII version of this procedure: wrapped in setup-os400.h. */
451 #define HAVE_GETNAMEINFO
453 /* Define to the type qualifier of arg 1 for getnameinfo. */
454 #define GETNAMEINFO_QUAL_ARG1 const
456 /* Define to the type of arg 1 for getnameinfo. */
457 #define GETNAMEINFO_TYPE_ARG1 struct sockaddr *
459 /* Define to the type of arg 2 for getnameinfo. */
460 #define GETNAMEINFO_TYPE_ARG2 socklen_t
462 /* Define to the type of args 4 and 6 for getnameinfo. */
463 #define GETNAMEINFO_TYPE_ARG46 socklen_t
465 /* Define to the type of arg 7 for getnameinfo. */
466 #define GETNAMEINFO_TYPE_ARG7 int
468 /* Define if you have the recv function. */
471 /* Define to the type of arg 1 for recv. */
472 #define RECV_TYPE_ARG1 int
474 /* Define to the type of arg 2 for recv. */
475 #define RECV_TYPE_ARG2 char *
477 /* Define to the type of arg 3 for recv. */
478 #define RECV_TYPE_ARG3 int
480 /* Define to the type of arg 4 for recv. */
481 #define RECV_TYPE_ARG4 int
483 /* Define to the function return type for recv. */
484 #define RECV_TYPE_RETV int
486 /* Define if you have the recvfrom function. */
487 #define HAVE_RECVFROM
489 /* Define to the type of arg 1 for recvfrom. */
490 #define RECVFROM_TYPE_ARG1 int
492 /* Define to the type pointed by arg 2 for recvfrom. */
493 #define RECVFROM_TYPE_ARG2 char
495 /* Define to the type of arg 3 for recvfrom. */
496 #define RECVFROM_TYPE_ARG3 int
498 /* Define to the type of arg 4 for recvfrom. */
499 #define RECVFROM_TYPE_ARG4 int
501 /* Define to the type pointed by arg 5 for recvfrom. */
502 #define RECVFROM_TYPE_ARG5 struct sockaddr
504 /* Define to the type pointed by arg 6 for recvfrom. */
505 #define RECVFROM_TYPE_ARG6 int
507 /* Define to the function return type for recvfrom. */
508 #define RECVFROM_TYPE_RETV int
510 /* Define if you have the send function. */
513 /* Define to the type of arg 1 for send. */
514 #define SEND_TYPE_ARG1 int
516 /* Define to the type qualifier of arg 2 for send. */
517 #define SEND_QUAL_ARG2
519 /* Define to the type of arg 2 for send. */
520 #define SEND_TYPE_ARG2 char *
522 /* Define to the type of arg 3 for send. */
523 #define SEND_TYPE_ARG3 int
525 /* Define to the type of arg 4 for send. */
526 #define SEND_TYPE_ARG4 int
528 /* Define to the function return type for send. */
529 #define SEND_TYPE_RETV int
531 /* Define to use the QsoSSL package. */
534 /* Define to use the GSKit package. */
537 /* Use the system keyring as the default CA bundle. */
538 #define CURL_CA_BUNDLE "/QIBM/UserData/ICSS/Cert/Server/DEFAULT.KDB"
540 /* ---------------------------------------------------------------- */
541 /* ADDITIONAL DEFINITIONS */
542 /* ---------------------------------------------------------------- */
544 /* The following must be defined BEFORE system header files inclusion. */
546 #define __ptr128 /* No teraspace. */
547 #define qadrt_use_fputc_inline /* Generate fputc() wrapper inline. */
548 #define qadrt_use_fread_inline /* Generate fread() wrapper inline. */
549 #define qadrt_use_fwrite_inline /* Generate fwrite() wrapper inline. */
551 #endif /* HEADER_CURL_CONFIG_OS400_H */