1# Description: 2# curl is a tool for talking to web servers. 3 4licenses(["notice"]) # MIT/X derivative license 5 6exports_files(["COPYING"]) 7 8CURL_WIN_COPTS = [ 9 "/Iexternal/curl/lib", 10 "/DBUILDING_LIBCURL", 11 "/DHAVE_CONFIG_H", 12 "/DCURL_DISABLE_FTP", 13 "/DCURL_DISABLE_NTLM", 14 "/DCURL_DISABLE_PROXY", 15 "/DHAVE_LIBZ", 16 "/DHAVE_ZLIB_H", 17 # Defining _USING_V110_SDK71_ is hackery to defeat curl's incorrect 18 # detection of what OS releases we can build on with VC 2012. This 19 # may not be needed (or may have to change) if the WINVER setting 20 # changes in //third_party/msvc/vc_12_0/CROSSTOOL. 21 "/D_USING_V110_SDK71_", 22] 23 24CURL_WIN_SRCS = [ 25 "lib/asyn-thread.c", 26 "lib/inet_ntop.c", 27 "lib/system_win32.c", 28 "lib/setup-win32.h", 29] 30 31cc_library( 32 name = "curl", 33 srcs = [ 34 "include/curl_config.h", 35 "lib/altsvc.c", 36 "lib/altsvc.h", 37 "lib/amigaos.c", 38 "lib/amigaos.h", 39 "lib/arpa_telnet.h", 40 "lib/asyn-ares.c", 41 "lib/asyn.h", 42 "lib/base64.c", 43 "lib/bufref.c", 44 "lib/bufref.h", 45 "lib/c-hyper.c", 46 "lib/c-hyper.h", 47 "lib/config-amigaos.h", 48 "lib/config-dos.h", 49 "lib/config-mac.h", 50 "lib/config-os400.h", 51 "lib/config-plan9.h", 52 "lib/config-riscos.h", 53 "lib/config-win32.h", 54 "lib/config-win32ce.h", 55 "lib/conncache.c", 56 "lib/conncache.h", 57 "lib/connect.c", 58 "lib/connect.h", 59 "lib/content_encoding.c", 60 "lib/content_encoding.h", 61 "lib/cookie.c", 62 "lib/cookie.h", 63 "lib/curl_addrinfo.c", 64 "lib/curl_addrinfo.h", 65 "lib/curl_base64.h", 66 "lib/curl_ctype.c", 67 "lib/curl_ctype.h", 68 "lib/curl_des.c", 69 "lib/curl_des.h", 70 "lib/curl_endian.c", 71 "lib/curl_endian.h", 72 "lib/curl_fnmatch.c", 73 "lib/curl_fnmatch.h", 74 "lib/curl_get_line.c", 75 "lib/curl_get_line.h", 76 "lib/curl_gethostname.c", 77 "lib/curl_gethostname.h", 78 "lib/curl_gssapi.c", 79 "lib/curl_gssapi.h", 80 "lib/curl_hmac.h", 81 "lib/curl_krb5.h", 82 "lib/curl_ldap.h", 83 "lib/curl_md4.h", 84 "lib/curl_md5.h", 85 "lib/curl_memory.h", 86 "lib/curl_memrchr.c", 87 "lib/curl_memrchr.h", 88 "lib/curl_multibyte.c", 89 "lib/curl_multibyte.h", 90 "lib/curl_ntlm_core.c", 91 "lib/curl_ntlm_core.h", 92 "lib/curl_ntlm_wb.c", 93 "lib/curl_ntlm_wb.h", 94 "lib/curl_path.c", 95 "lib/curl_path.h", 96 "lib/curl_printf.h", 97 "lib/curl_range.c", 98 "lib/curl_range.h", 99 "lib/curl_rtmp.c", 100 "lib/curl_rtmp.h", 101 "lib/curl_sasl.c", 102 "lib/curl_sasl.h", 103 "lib/curl_setup.h", 104 "lib/curl_setup_once.h", 105 "lib/curl_sha256.h", 106 "lib/curl_sspi.c", 107 "lib/curl_sspi.h", 108 "lib/curl_threads.c", 109 "lib/curl_threads.h", 110 "lib/curlx.h", 111 "lib/dict.c", 112 "lib/dict.h", 113 "lib/doh.c", 114 "lib/doh.h", 115 "lib/dotdot.c", 116 "lib/dotdot.h", 117 "lib/dynbuf.c", 118 "lib/dynbuf.h", 119 "lib/easy.c", 120 "lib/easygetopt.c", 121 "lib/easyif.h", 122 "lib/easyoptions.c", 123 "lib/easyoptions.h", 124 "lib/easy_lock.h", 125 "lib/escape.c", 126 "lib/escape.h", 127 "lib/file.c", 128 "lib/file.h", 129 "lib/fileinfo.c", 130 "lib/fileinfo.h", 131 "lib/fopen.c", 132 "lib/fopen.h", 133 "lib/formdata.c", 134 "lib/formdata.h", 135 "lib/ftp.c", 136 "lib/ftp.h", 137 "lib/ftplistparser.c", 138 "lib/ftplistparser.h", 139 "lib/getenv.c", 140 "lib/getinfo.c", 141 "lib/getinfo.h", 142 "lib/gopher.c", 143 "lib/gopher.h", 144 "lib/h2h3.c", 145 "lib/h2h3.h", 146 "lib/hash.c", 147 "lib/hash.h", 148 "lib/headers.c", 149 "lib/headers.h", 150 "lib/hmac.c", 151 "lib/hostasyn.c", 152 "lib/hostip.c", 153 "lib/hostip.h", 154 "lib/hostip4.c", 155 "lib/hostip6.c", 156 "lib/hostsyn.c", 157 "lib/hsts.c", 158 "lib/hsts.h", 159 "lib/http.c", 160 "lib/http.h", 161 "lib/http2.c", 162 "lib/http2.h", 163 "lib/http_chunks.c", 164 "lib/http_chunks.h", 165 "lib/http_digest.c", 166 "lib/http_digest.h", 167 "lib/http_negotiate.c", 168 "lib/http_negotiate.h", 169 "lib/http_ntlm.c", 170 "lib/http_ntlm.h", 171 "lib/http_proxy.c", 172 "lib/http_proxy.h", 173 "lib/http_aws_sigv4.c", 174 "lib/http_aws_sigv4.h", 175 "lib/idn_win32.c", 176 "lib/if2ip.c", 177 "lib/if2ip.h", 178 "lib/imap.c", 179 "lib/imap.h", 180 "lib/inet_ntop.h", 181 "lib/inet_pton.c", 182 "lib/inet_pton.h", 183 "lib/krb5.c", 184 "lib/ldap.c", 185 "lib/llist.c", 186 "lib/llist.h", 187 "lib/md4.c", 188 "lib/md5.c", 189 "lib/memdebug.c", 190 "lib/memdebug.h", 191 "lib/mime.c", 192 "lib/mime.h", 193 "lib/mprintf.c", 194 "lib/mqtt.c", 195 "lib/mqtt.h", 196 "lib/multi.c", 197 "lib/multihandle.h", 198 "lib/multiif.h", 199 "lib/netrc.c", 200 "lib/netrc.h", 201 "lib/nonblock.c", 202 "lib/nonblock.h", 203 "lib/openldap.c", 204 "lib/parsedate.c", 205 "lib/parsedate.h", 206 "lib/pingpong.c", 207 "lib/pingpong.h", 208 "lib/pop3.c", 209 "lib/pop3.h", 210 "lib/progress.c", 211 "lib/progress.h", 212 "lib/psl.c", 213 "lib/psl.h", 214 "lib/quic.h", 215 "lib/rand.c", 216 "lib/rand.h", 217 "lib/rename.c", 218 "lib/rename.h", 219 "lib/rtsp.c", 220 "lib/rtsp.h", 221 "lib/select.c", 222 "lib/select.h", 223 "lib/sendf.c", 224 "lib/sendf.h", 225 "lib/setopt.c", 226 "lib/setopt.h", 227 "lib/setup-vms.h", 228 "lib/sha256.c", 229 "lib/share.c", 230 "lib/share.h", 231 "lib/sigpipe.h", 232 "lib/slist.c", 233 "lib/slist.h", 234 "lib/smb.c", 235 "lib/smb.h", 236 "lib/smtp.c", 237 "lib/smtp.h", 238 "lib/sockaddr.h", 239 "lib/socketpair.c", 240 "lib/socketpair.h", 241 "lib/socks.c", 242 "lib/socks.h", 243 "lib/socks_gssapi.c", 244 "lib/socks_sspi.c", 245 "lib/speedcheck.c", 246 "lib/speedcheck.h", 247 "lib/splay.c", 248 "lib/splay.h", 249 "lib/strcase.c", 250 "lib/strcase.h", 251 "lib/strdup.c", 252 "lib/strdup.h", 253 "lib/strerror.c", 254 "lib/strerror.h", 255 "lib/strtok.c", 256 "lib/strtok.h", 257 "lib/strtoofft.c", 258 "lib/strtoofft.h", 259 "lib/system_win32.h", 260 "lib/telnet.c", 261 "lib/telnet.h", 262 "lib/tftp.c", 263 "lib/tftp.h", 264 "lib/timediff.c", 265 "lib/timediff.h", 266 "lib/timeval.c", 267 "lib/timeval.h", 268 "lib/transfer.c", 269 "lib/transfer.h", 270 "lib/url.c", 271 "lib/url.h", 272 "lib/urldata.h", 273 "lib/urlapi-int.h", 274 "lib/urlapi.c", 275 "lib/version.c", 276 "lib/version_win32.c", 277 "lib/version_win32.h", 278 "lib/warnless.c", 279 "lib/warnless.h", 280 "lib/wildcard.c", 281 "lib/wildcard.h", 282 "lib/vauth/cleartext.c", 283 "lib/vauth/cram.c", 284 "lib/vauth/digest.c", 285 "lib/vauth/digest.h", 286 "lib/vauth/digest_sspi.c", 287 "lib/vauth/krb5_gssapi.c", 288 "lib/vauth/krb5_sspi.c", 289 "lib/vauth/ntlm.c", 290 "lib/vauth/ntlm.h", 291 "lib/vauth/ntlm_sspi.c", 292 "lib/vauth/oauth2.c", 293 "lib/vauth/spnego_sspi.c", 294 "lib/vauth/vauth.c", 295 "lib/vauth/vauth.h", 296 "lib/vquic/msh3.c", 297 "lib/vquic/msh3.h", 298 "lib/vquic/ngtcp2.c", 299 "lib/vquic/ngtcp2.h", 300 "lib/vquic/quiche.c", 301 "lib/vquic/quiche.h", 302 "lib/vquic/vquic.c", 303 "lib/vquic/vquic.h", 304 "lib/vssh/libssh.c", 305 "lib/vssh/libssh2.c", 306 "lib/vssh/ssh.h", 307 "lib/vssh/wolfssh.c", 308 "lib/vtls/bearssl.c", 309 "lib/vtls/bearssl.h", 310 "lib/vtls/gskit.c", 311 "lib/vtls/gskit.h", 312 "lib/vtls/gtls.c", 313 "lib/vtls/gtls.h", 314 "lib/vtls/hostcheck.c", 315 "lib/vtls/hostcheck.h", 316 "lib/vtls/keylog.c", 317 "lib/vtls/keylog.h", 318 "lib/vtls/mbedtls.c", 319 "lib/vtls/mbedtls.h", 320 "lib/vtls/mbedtls_threadlock.c", 321 "lib/vtls/mbedtls_threadlock.h", 322 "lib/vtls/nss.c", 323 "lib/vtls/nssg.h", 324 "lib/vtls/openssl.c", 325 "lib/vtls/openssl.h", 326 "lib/vtls/rustls.c", 327 "lib/vtls/rustls.h", 328 "lib/vtls/schannel.c", 329 "lib/vtls/schannel.h", 330 "lib/vtls/schannel_verify.c", 331 "lib/vtls/sectransp.h", 332 "lib/vtls/vtls.c", 333 "lib/vtls/vtls.h", 334 "lib/vtls/wolfssl.c", 335 "lib/vtls/wolfssl.h", 336 "lib/vtls/x509asn1.c", 337 "lib/vtls/x509asn1.h", 338 ] + select({ 339 "@org_tensorflow//tensorflow:macos": [ 340 "lib/vtls/sectransp.c", 341 ], 342 "@org_tensorflow//tensorflow:ios": [ 343 "lib/vtls/sectransp.c", 344 ], 345 "@org_tensorflow//tensorflow:windows": CURL_WIN_SRCS, 346 "//conditions:default": [ 347 ], 348 }), 349 hdrs = [ 350 "include/curl/curl.h", 351 "include/curl/curlver.h", 352 "include/curl/easy.h", 353 "include/curl/header.h", 354 "include/curl/mprintf.h", 355 "include/curl/multi.h", 356 "include/curl/options.h", 357 "include/curl/stdcheaders.h", 358 "include/curl/system.h", 359 "include/curl/typecheck-gcc.h", 360 "include/curl/urlapi.h", 361 ], 362 copts = select({ 363 "@org_tensorflow//tensorflow:windows": CURL_WIN_COPTS, 364 "//conditions:default": [ 365 "-Iexternal/curl/lib", 366 "-D_GNU_SOURCE", 367 "-DBUILDING_LIBCURL", 368 "-DHAVE_CONFIG_H", 369 "-DCURL_DISABLE_FTP", 370 "-DCURL_DISABLE_NTLM", # turning it off in configure is not enough 371 "-DHAVE_LIBZ", 372 "-DHAVE_ZLIB_H", 373 "-Wno-string-plus-int", 374 ], 375 }) + select({ 376 "@org_tensorflow//tensorflow:macos": [ 377 "-fno-constant-cfstrings", 378 ], 379 "@org_tensorflow//tensorflow:windows": [ 380 # See curl.h for discussion of write size and Windows 381 "/DCURL_MAX_WRITE_SIZE=16384", 382 ], 383 "//conditions:default": [ 384 "-DCURL_MAX_WRITE_SIZE=65536", 385 ], 386 }), 387 defines = ["CURL_STATICLIB"], 388 includes = ["include"], 389 linkopts = select({ 390 "@org_tensorflow//tensorflow:android": [ 391 "-pie", 392 ], 393 "@org_tensorflow//tensorflow:macos": [ 394 "-Wl,-framework", 395 "-Wl,CoreFoundation", 396 "-Wl,-framework", 397 "-Wl,SystemConfiguration", 398 "-Wl,-framework", 399 "-Wl,Security", 400 ], 401 "@org_tensorflow//tensorflow:ios": [], 402 "@org_tensorflow//tensorflow:windows": [ 403 "-DEFAULTLIB:ws2_32.lib", 404 "-DEFAULTLIB:advapi32.lib", 405 "-DEFAULTLIB:crypt32.lib", 406 "-DEFAULTLIB:Normaliz.lib", 407 ], 408 "//conditions:default": [ 409 "-lrt", 410 ], 411 }), 412 visibility = ["//visibility:public"], 413 deps = [ 414 "@zlib", 415 ] + select({ 416 "@org_tensorflow//tensorflow:ios": [], 417 "@org_tensorflow//tensorflow:windows": [], 418 "//conditions:default": [ 419 "@boringssl//:ssl", 420 ], 421 }), 422) 423 424CURL_BIN_WIN_COPTS = [ 425 "/Iexternal/curl/lib", 426 "/DHAVE_CONFIG_H", 427 "/DCURL_DISABLE_LIBCURL_OPTION", 428] 429 430cc_binary( 431 name = "curl_bin", 432 srcs = [ 433 "lib/config-win32.h", 434 "src/slist_wc.c", 435 "src/slist_wc.h", 436 "src/tool_binmode.c", 437 "src/tool_binmode.h", 438 "src/tool_bname.c", 439 "src/tool_bname.h", 440 "src/tool_cb_dbg.c", 441 "src/tool_cb_dbg.h", 442 "src/tool_cb_hdr.c", 443 "src/tool_cb_hdr.h", 444 "src/tool_cb_prg.c", 445 "src/tool_cb_prg.h", 446 "src/tool_cb_rea.c", 447 "src/tool_cb_rea.h", 448 "src/tool_cb_see.c", 449 "src/tool_cb_see.h", 450 "src/tool_cb_wrt.c", 451 "src/tool_cb_wrt.h", 452 "src/tool_cfgable.c", 453 "src/tool_cfgable.h", 454 "src/tool_dirhie.c", 455 "src/tool_dirhie.h", 456 "src/tool_doswin.c", 457 "src/tool_doswin.h", 458 "src/tool_easysrc.c", 459 "src/tool_easysrc.h", 460 "src/tool_filetime.c", 461 "src/tool_filetime.h", 462 "src/tool_formparse.c", 463 "src/tool_formparse.h", 464 "src/tool_getparam.c", 465 "src/tool_getparam.h", 466 "src/tool_getpass.c", 467 "src/tool_getpass.h", 468 "src/tool_help.c", 469 "src/tool_help.h", 470 "src/tool_helpers.c", 471 "src/tool_helpers.h", 472 "src/tool_homedir.c", 473 "src/tool_homedir.h", 474 "src/tool_hugehelp.c", 475 "src/tool_hugehelp.h", 476 "src/tool_libinfo.c", 477 "src/tool_libinfo.h", 478 "src/tool_main.c", 479 "src/tool_main.h", 480 "src/tool_metalink.c", 481 "src/tool_metalink.h", 482 "src/tool_mfiles.c", 483 "src/tool_mfiles.h", 484 "src/tool_msgs.c", 485 "src/tool_msgs.h", 486 "src/tool_operate.c", 487 "src/tool_operate.h", 488 "src/tool_operhlp.c", 489 "src/tool_operhlp.h", 490 "src/tool_panykey.c", 491 "src/tool_panykey.h", 492 "src/tool_paramhlp.c", 493 "src/tool_paramhlp.h", 494 "src/tool_parsecfg.c", 495 "src/tool_parsecfg.h", 496 "src/tool_progress.c", 497 "src/tool_progress.h", 498 "src/tool_sdecls.h", 499 "src/tool_setopt.c", 500 "src/tool_setopt.h", 501 "src/tool_setup.h", 502 "src/tool_sleep.c", 503 "src/tool_sleep.h", 504 "src/tool_strdup.c", 505 "src/tool_strdup.h", 506 "src/tool_urlglob.c", 507 "src/tool_urlglob.h", 508 "src/tool_util.c", 509 "src/tool_util.h", 510 "src/tool_version.h", 511 "src/tool_vms.c", 512 "src/tool_vms.h", 513 "src/tool_writeenv.c", 514 "src/tool_writeenv.h", 515 "src/tool_writeout.c", 516 "src/tool_writeout.h", 517 "src/tool_writeout_json.c", 518 "src/tool_writeout_json.h", 519 "src/tool_xattr.c", 520 "src/tool_xattr.h", 521 ], 522 copts = select({ 523 "@org_tensorflow//tensorflow:windows": CURL_BIN_WIN_COPTS, 524 "//conditions:default": [ 525 "-Iexternal/curl/lib", 526 "-D_GNU_SOURCE", 527 "-DHAVE_CONFIG_H", 528 "-DCURL_DISABLE_LIBCURL_OPTION", 529 "-Wno-string-plus-int", 530 ], 531 }), 532 deps = [":curl"], 533) 534 535genrule( 536 name = "configure", 537 outs = ["include/curl_config.h"], 538 cmd = "\n".join([ 539 "cat <<'EOF' >$@", 540 "#ifndef EXTERNAL_CURL_INCLUDE_CURL_CONFIG_H_", 541 "#define EXTERNAL_CURL_INCLUDE_CURL_CONFIG_H_", 542 "", 543 "#if !defined(_WIN32) && !defined(__APPLE__)", 544 "# include <openssl/opensslv.h>", 545 "# if defined(OPENSSL_IS_BORINGSSL)", 546 "# define HAVE_BORINGSSL 1", 547 "# endif", 548 "#endif", 549 "", 550 "#if defined(_WIN32)", 551 "# include \"lib/config-win32.h\"", 552 "# define BUILDING_LIBCURL 1", 553 "# define CURL_DISABLE_CRYPTO_AUTH 1", 554 "# define CURL_DISABLE_DICT 1", 555 "# define CURL_DISABLE_FILE 1", 556 "# define CURL_DISABLE_GOPHER 1", 557 "# define CURL_DISABLE_IMAP 1", 558 "# define CURL_DISABLE_LDAP 1", 559 "# define CURL_DISABLE_LDAPS 1", 560 "# define CURL_DISABLE_POP3 1", 561 "# define CURL_PULL_WS2TCPIP_H 1", 562 "# define CURL_DISABLE_SMTP 1", 563 "# define CURL_DISABLE_TELNET 1", 564 "# define CURL_DISABLE_TFTP 1", 565 "# define CURL_PULL_WS2TCPIP_H 1", 566 "# define USE_WINDOWS_SSPI 1", 567 "# define USE_WIN32_IDN 1", 568 "# define USE_SCHANNEL 1", 569 "# define WANT_IDN_PROTOTYPES 1", 570 "#elif defined(__APPLE__)", 571 "# define HAVE_FSETXATTR_6 1", 572 "# define HAVE_SETMODE 1", 573 "# define HAVE_SYS_FILIO_H 1", 574 "# define HAVE_SYS_SOCKIO_H 1", 575 "# define OS \"x86_64-apple-darwin15.5.0\"", 576 "# define USE_SECTRANSP 1", 577 "#else", 578 "# define CURL_CA_BUNDLE \"/etc/ssl/certs/ca-certificates.crt\"", 579 "# define GETSERVBYPORT_R_ARGS 6", 580 "# define GETSERVBYPORT_R_BUFSIZE 4096", 581 "# define HAVE_BORINGSSL 1", 582 "# define HAVE_CLOCK_GETTIME_MONOTONIC 1", 583 "# define HAVE_CRYPTO_CLEANUP_ALL_EX_DATA 1", 584 "# define HAVE_FSETXATTR_5 1", 585 "# define HAVE_GETHOSTBYADDR_R 1", 586 "# define HAVE_GETHOSTBYADDR_R_8 1", 587 "# define HAVE_GETHOSTBYNAME_R 1", 588 "# define HAVE_GETHOSTBYNAME_R_6 1", 589 "# define HAVE_GETSERVBYPORT_R 1", 590 "# define HAVE_LIBSSL 1", 591 "# define HAVE_MALLOC_H 1", 592 "# define HAVE_MSG_NOSIGNAL 1", 593 "# define HAVE_OPENSSL_CRYPTO_H 1", 594 "# define HAVE_OPENSSL_ERR_H 1", 595 "# define HAVE_OPENSSL_PEM_H 1", 596 "# define HAVE_OPENSSL_PKCS12_H 1", 597 "# define HAVE_OPENSSL_RSA_H 1", 598 "# define HAVE_OPENSSL_SSL_H 1", 599 "# define HAVE_OPENSSL_X509_H 1", 600 "# define HAVE_RAND_EGD 1", 601 "# define HAVE_RAND_STATUS 1", 602 "# define HAVE_SSL_GET_SHUTDOWN 1", 603 "# define HAVE_TERMIOS_H 1", 604 "# define OS \"x86_64-pc-linux-gnu\"", 605 "# define RANDOM_FILE \"/dev/urandom\"", 606 "# define USE_OPENSSL 1", 607 "#endif", 608 "", 609 "#if !defined(_WIN32)", 610 "# define CURL_DISABLE_DICT 1", 611 "# define CURL_DISABLE_FILE 1", 612 "# define CURL_DISABLE_GOPHER 1", 613 "# define CURL_DISABLE_IMAP 1", 614 "# define CURL_DISABLE_LDAP 1", 615 "# define CURL_DISABLE_LDAPS 1", 616 "# define CURL_DISABLE_POP3 1", 617 "# define CURL_DISABLE_SMTP 1", 618 "# define CURL_DISABLE_TELNET 1", 619 "# define CURL_DISABLE_TFTP 1", 620 "# define CURL_EXTERN_SYMBOL __attribute__ ((__visibility__ (\"default\")))", 621 "# define ENABLE_IPV6 1", 622 "# define GETHOSTNAME_TYPE_ARG2 size_t", 623 "# define GETNAMEINFO_QUAL_ARG1 const", 624 "# define GETNAMEINFO_TYPE_ARG1 struct sockaddr *", 625 "# define GETNAMEINFO_TYPE_ARG2 socklen_t", 626 "# define GETNAMEINFO_TYPE_ARG46 socklen_t", 627 "# define GETNAMEINFO_TYPE_ARG7 int", 628 "# define HAVE_ALARM 1", 629 "# define HAVE_ALLOCA_H 1", 630 "# define HAVE_ARPA_INET_H 1", 631 "# define HAVE_ARPA_TFTP_H 1", 632 "# define HAVE_ASSERT_H 1", 633 "# define HAVE_BASENAME 1", 634 "# define HAVE_BOOL_T 1", 635 "# define HAVE_CONNECT 1", 636 "# define HAVE_DLFCN_H 1", 637 "# define HAVE_ERRNO_H 1", 638 "# define HAVE_FCNTL 1", 639 "# define HAVE_FCNTL_H 1", 640 "# define HAVE_FCNTL_O_NONBLOCK 1", 641 "# define HAVE_FDOPEN 1", 642 "# define HAVE_FORK 1", 643 "# define HAVE_FREEADDRINFO 1", 644 "# define HAVE_FREEIFADDRS 1", 645 "# if !defined(__ANDROID__)", 646 "# define HAVE_FSETXATTR 1", 647 "# endif", 648 "# define HAVE_FTRUNCATE 1", 649 "# define HAVE_GAI_STRERROR 1", 650 "# define HAVE_GETADDRINFO 1", 651 "# define HAVE_GETADDRINFO_THREADSAFE 1", 652 "# define HAVE_GETEUID 1", 653 "# define HAVE_GETHOSTBYADDR 1", 654 "# define HAVE_GETHOSTBYNAME 1", 655 "# define HAVE_GETHOSTNAME 1", 656 "# if !defined(__ANDROID__)", 657 "# define HAVE_GETIFADDRS 1", 658 "# endif", 659 "# define HAVE_GETNAMEINFO 1", 660 "# define HAVE_GETPPID 1", 661 "# define HAVE_GETPROTOBYNAME 1", 662 "# define HAVE_GETPWUID 1", 663 "# if !defined(__ANDROID__)", 664 "# define HAVE_GETPWUID_R 1", 665 "# endif", 666 "# define HAVE_GETRLIMIT 1", 667 "# define HAVE_GETTIMEOFDAY 1", 668 "# define HAVE_GMTIME_R 1", 669 "# if !defined(__ANDROID__)", 670 "# define HAVE_IFADDRS_H 1", 671 "# endif", 672 "# define HAVE_IF_NAMETOINDEX 1", 673 "# define HAVE_INET_ADDR 1", 674 "# define HAVE_INET_NTOP 1", 675 "# define HAVE_INET_PTON 1", 676 "# define HAVE_INTTYPES_H 1", 677 "# define HAVE_IOCTL 1", 678 "# define HAVE_IOCTL_FIONBIO 1", 679 "# define HAVE_IOCTL_SIOCGIFADDR 1", 680 "# define HAVE_LIBGEN_H 1", 681 "# define HAVE_LIBZ 1", 682 "# define HAVE_LIMITS_H 1", 683 "# define HAVE_LL 1", 684 "# define HAVE_LOCALE_H 1", 685 "# define HAVE_LOCALTIME_R 1", 686 "# define HAVE_LONGLONG 1", 687 "# define HAVE_MEMORY_H 1", 688 "# define HAVE_NETDB_H 1", 689 "# define HAVE_NETINET_IN_H 1", 690 "# define HAVE_NETINET_TCP_H 1", 691 "# define HAVE_NET_IF_H 1", 692 "# define HAVE_PERROR 1", 693 "# define HAVE_PIPE 1", 694 "# define HAVE_POLL 1", 695 "# define HAVE_POLL_FINE 1", 696 "# define HAVE_POLL_H 1", 697 "# define HAVE_POSIX_STRERROR_R 1", 698 "# define HAVE_PWD_H 1", 699 "# define HAVE_RECV 1", 700 "# define HAVE_SELECT 1", 701 "# define HAVE_SEND 1", 702 "# define HAVE_SETJMP_H 1", 703 "# define HAVE_SETLOCALE 1", 704 "# define HAVE_SETRLIMIT 1", 705 "# define HAVE_SETSOCKOPT 1", 706 "# define HAVE_SGTTY_H 1", 707 "# define HAVE_SIGACTION 1", 708 "# define HAVE_SIGINTERRUPT 1", 709 "# define HAVE_SIGNAL 1", 710 "# define HAVE_SIGNAL_H 1", 711 "# define HAVE_SIGSETJMP 1", 712 "# define HAVE_SIG_ATOMIC_T 1", 713 "# define HAVE_SOCKADDR_IN6_SIN6_SCOPE_ID 1", 714 "# define HAVE_SOCKET 1", 715 "# define HAVE_SOCKETPAIR 1", 716 "# define HAVE_STDBOOL_H 1", 717 "# define HAVE_STDINT_H 1", 718 "# define HAVE_STDIO_H 1", 719 "# define HAVE_STDLIB_H 1", 720 "# define HAVE_STRCASECMP 1", 721 "# define HAVE_STRDUP 1", 722 "# define HAVE_STRERROR_R 1", 723 "# define HAVE_STRINGS_H 1", 724 "# define HAVE_STRING_H 1", 725 "# define HAVE_STRNCASECMP 1", 726 "# define HAVE_STRSTR 1", 727 "# define HAVE_STRTOK_R 1", 728 "# define HAVE_STRTOLL 1", 729 "# define HAVE_STRUCT_SOCKADDR_STORAGE 1", 730 "# define HAVE_STRUCT_TIMEVAL 1", 731 "# define HAVE_SYS_IOCTL_H 1", 732 "# define HAVE_SYS_PARAM_H 1", 733 "# define HAVE_SYS_POLL_H 1", 734 "# define HAVE_SYS_RESOURCE_H 1", 735 "# define HAVE_SYS_SELECT_H 1", 736 "# define HAVE_SYS_SOCKET_H 1", 737 "# define HAVE_SYS_STAT_H 1", 738 "# define HAVE_SYS_TIME_H 1", 739 "# define HAVE_SYS_TYPES_H 1", 740 "# define HAVE_SYS_UIO_H 1", 741 "# define HAVE_SYS_UN_H 1", 742 "# define HAVE_SYS_WAIT_H 1", 743 "# define HAVE_SYS_XATTR_H 1", 744 "# define HAVE_TIME_H 1", 745 "# define HAVE_UNAME 1", 746 "# define HAVE_UNISTD_H 1", 747 "# define HAVE_UTIME 1", 748 "# define HAVE_UTIME_H 1", 749 "# define HAVE_VARIADIC_MACROS_C99 1", 750 "# define HAVE_VARIADIC_MACROS_GCC 1", 751 "# define HAVE_WRITABLE_ARGV 1", 752 "# define HAVE_WRITEV 1", 753 "# define HAVE_ZLIB_H 1", 754 "# define LT_OBJDIR \".libs/\"", 755 "# define PACKAGE \"curl\"", 756 "# define PACKAGE_BUGREPORT \"a suitable curl mailing list: https://curl.haxx.se/mail/\"", 757 "# define PACKAGE_NAME \"curl\"", 758 "# define PACKAGE_STRING \"curl -\"", 759 "# define PACKAGE_TARNAME \"curl\"", 760 "# define PACKAGE_URL \"\"", 761 "# define PACKAGE_VERSION \"-\"", 762 "# define RECV_TYPE_ARG1 int", 763 "# define RECV_TYPE_ARG2 void *", 764 "# define RECV_TYPE_ARG3 size_t", 765 "# define RECV_TYPE_ARG4 int", 766 "# define RECV_TYPE_RETV ssize_t", 767 "# define RETSIGTYPE void", 768 "# define SELECT_QUAL_ARG5", 769 "# define SELECT_TYPE_ARG1 int", 770 "# define SELECT_TYPE_ARG234 fd_set *", 771 "# define SELECT_TYPE_ARG5 struct timeval *", 772 "# define SELECT_TYPE_RETV int", 773 "# define SEND_QUAL_ARG2 const", 774 "# define SEND_TYPE_ARG1 int", 775 "# define SEND_TYPE_ARG2 void *", 776 "# define SEND_TYPE_ARG3 size_t", 777 "# define SEND_TYPE_ARG4 int", 778 "# define SEND_TYPE_RETV ssize_t", 779 "# define SIZEOF_INT 4", 780 "# define SIZEOF_LONG 8", 781 "# define SIZEOF_OFF_T 8", 782 "# define SIZEOF_CURL_OFF_T 8", 783 "# define SIZEOF_SHORT 2", 784 "# define SIZEOF_SIZE_T 8", 785 "# define SIZEOF_TIME_T 8", 786 "# define SIZEOF_VOIDP 8", 787 "# define STDC_HEADERS 1", 788 "# define STRERROR_R_TYPE_ARG3 size_t", 789 "# define TIME_WITH_SYS_TIME 1", 790 "# define VERSION \"-\"", 791 "# ifndef _DARWIN_USE_64_BIT_INODE", 792 "# define _DARWIN_USE_64_BIT_INODE 1", 793 "# endif", 794 "#endif", 795 "", 796 "#endif // EXTERNAL_CURL_INCLUDE_CURL_CONFIG_H_", 797 "EOF", 798 ]), 799) 800