xref: /aosp_15_r20/external/federated-compute/third_party/curl.BUILD.bzl (revision 14675a029014e728ec732f129a32e299b2da0601)
1"""
2A custom build file for curl
3"""
4
5licenses(["notice"])
6
7exports_files(["COPYING"])
8
9cc_library(
10    name = "curl",
11    srcs = [
12        "include/curl_config.h",
13        "lib/altsvc.c",
14        "lib/altsvc.h",
15        "lib/amigaos.c",
16        "lib/amigaos.h",
17        "lib/arpa_telnet.h",
18        "lib/asyn-ares.c",
19        "lib/asyn.h",
20        "lib/base64.c",
21        "lib/bufref.c",
22        "lib/bufref.h",
23        "lib/c-hyper.c",
24        "lib/c-hyper.h",
25        "lib/config-amigaos.h",
26        "lib/config-dos.h",
27        "lib/config-mac.h",
28        "lib/config-os400.h",
29        "lib/config-plan9.h",
30        "lib/config-riscos.h",
31        "lib/config-win32.h",
32        "lib/config-win32ce.h",
33        "lib/conncache.c",
34        "lib/conncache.h",
35        "lib/connect.c",
36        "lib/connect.h",
37        "lib/content_encoding.c",
38        "lib/content_encoding.h",
39        "lib/cookie.c",
40        "lib/cookie.h",
41        "lib/curl_addrinfo.c",
42        "lib/curl_addrinfo.h",
43        "lib/curl_base64.h",
44        "lib/curl_ctype.c",
45        "lib/curl_ctype.h",
46        "lib/curl_des.c",
47        "lib/curl_des.h",
48        "lib/curl_endian.c",
49        "lib/curl_endian.h",
50        "lib/curl_fnmatch.c",
51        "lib/curl_fnmatch.h",
52        "lib/curl_get_line.c",
53        "lib/curl_get_line.h",
54        "lib/curl_gethostname.c",
55        "lib/curl_gethostname.h",
56        "lib/curl_gssapi.c",
57        "lib/curl_gssapi.h",
58        "lib/curl_hmac.h",
59        "lib/curl_krb5.h",
60        "lib/curl_ldap.h",
61        "lib/curl_md4.h",
62        "lib/curl_md5.h",
63        "lib/curl_memory.h",
64        "lib/curl_memrchr.c",
65        "lib/curl_memrchr.h",
66        "lib/curl_multibyte.c",
67        "lib/curl_multibyte.h",
68        "lib/curl_ntlm_core.c",
69        "lib/curl_ntlm_core.h",
70        "lib/curl_ntlm_wb.c",
71        "lib/curl_ntlm_wb.h",
72        "lib/curl_path.c",
73        "lib/curl_path.h",
74        "lib/curl_printf.h",
75        "lib/curl_range.c",
76        "lib/curl_range.h",
77        "lib/curl_rtmp.c",
78        "lib/curl_rtmp.h",
79        "lib/curl_sasl.c",
80        "lib/curl_sasl.h",
81        "lib/curl_setup.h",
82        "lib/curl_setup_once.h",
83        "lib/curl_sha256.h",
84        "lib/curl_sspi.c",
85        "lib/curl_sspi.h",
86        "lib/curl_threads.c",
87        "lib/curl_threads.h",
88        "lib/curlx.h",
89        "lib/dict.c",
90        "lib/dict.h",
91        "lib/doh.c",
92        "lib/doh.h",
93        "lib/dotdot.c",
94        "lib/dotdot.h",
95        "lib/dynbuf.c",
96        "lib/dynbuf.h",
97        "lib/easy.c",
98        "lib/easygetopt.c",
99        "lib/easyif.h",
100        "lib/easyoptions.c",
101        "lib/easyoptions.h",
102        "lib/easy_lock.h",
103        "lib/escape.c",
104        "lib/escape.h",
105        "lib/file.c",
106        "lib/file.h",
107        "lib/fileinfo.c",
108        "lib/fileinfo.h",
109        "lib/fopen.c",
110        "lib/fopen.h",
111        "lib/formdata.c",
112        "lib/formdata.h",
113        "lib/ftp.c",
114        "lib/ftp.h",
115        "lib/ftplistparser.c",
116        "lib/ftplistparser.h",
117        "lib/getenv.c",
118        "lib/getinfo.c",
119        "lib/getinfo.h",
120        "lib/gopher.c",
121        "lib/gopher.h",
122        "lib/h2h3.c",
123        "lib/h2h3.h",
124        "lib/hash.c",
125        "lib/hash.h",
126        "lib/headers.c",
127        "lib/headers.h",
128        "lib/hmac.c",
129        "lib/hostasyn.c",
130        "lib/hostip.c",
131        "lib/hostip.h",
132        "lib/hostip4.c",
133        "lib/hostip6.c",
134        "lib/hostsyn.c",
135        "lib/hsts.c",
136        "lib/hsts.h",
137        "lib/http.c",
138        "lib/http.h",
139        "lib/http2.c",
140        "lib/http2.h",
141        "lib/http_chunks.c",
142        "lib/http_chunks.h",
143        "lib/http_digest.c",
144        "lib/http_digest.h",
145        "lib/http_negotiate.c",
146        "lib/http_negotiate.h",
147        "lib/http_ntlm.c",
148        "lib/http_ntlm.h",
149        "lib/http_proxy.c",
150        "lib/http_proxy.h",
151        "lib/http_aws_sigv4.c",
152        "lib/http_aws_sigv4.h",
153        "lib/idn_win32.c",
154        "lib/if2ip.c",
155        "lib/if2ip.h",
156        "lib/imap.c",
157        "lib/imap.h",
158        "lib/inet_ntop.h",
159        "lib/inet_pton.c",
160        "lib/inet_pton.h",
161        "lib/krb5.c",
162        "lib/ldap.c",
163        "lib/llist.c",
164        "lib/llist.h",
165        "lib/md4.c",
166        "lib/md5.c",
167        "lib/memdebug.c",
168        "lib/memdebug.h",
169        "lib/mime.c",
170        "lib/mime.h",
171        "lib/mprintf.c",
172        "lib/mqtt.c",
173        "lib/mqtt.h",
174        "lib/multi.c",
175        "lib/multihandle.h",
176        "lib/multiif.h",
177        "lib/netrc.c",
178        "lib/netrc.h",
179        "lib/nonblock.c",
180        "lib/nonblock.h",
181        "lib/openldap.c",
182        "lib/parsedate.c",
183        "lib/parsedate.h",
184        "lib/pingpong.c",
185        "lib/pingpong.h",
186        "lib/pop3.c",
187        "lib/pop3.h",
188        "lib/progress.c",
189        "lib/progress.h",
190        "lib/psl.c",
191        "lib/psl.h",
192        "lib/quic.h",
193        "lib/rand.c",
194        "lib/rand.h",
195        "lib/rename.c",
196        "lib/rename.h",
197        "lib/rtsp.c",
198        "lib/rtsp.h",
199        "lib/select.c",
200        "lib/select.h",
201        "lib/sendf.c",
202        "lib/sendf.h",
203        "lib/setopt.c",
204        "lib/setopt.h",
205        "lib/setup-vms.h",
206        "lib/sha256.c",
207        "lib/share.c",
208        "lib/share.h",
209        "lib/sigpipe.h",
210        "lib/slist.c",
211        "lib/slist.h",
212        "lib/smb.c",
213        "lib/smb.h",
214        "lib/smtp.c",
215        "lib/smtp.h",
216        "lib/sockaddr.h",
217        "lib/socketpair.c",
218        "lib/socketpair.h",
219        "lib/socks.c",
220        "lib/socks.h",
221        "lib/socks_gssapi.c",
222        "lib/socks_sspi.c",
223        "lib/speedcheck.c",
224        "lib/speedcheck.h",
225        "lib/splay.c",
226        "lib/splay.h",
227        "lib/strcase.c",
228        "lib/strcase.h",
229        "lib/strdup.c",
230        "lib/strdup.h",
231        "lib/strerror.c",
232        "lib/strerror.h",
233        "lib/strtok.c",
234        "lib/strtok.h",
235        "lib/strtoofft.c",
236        "lib/strtoofft.h",
237        "lib/system_win32.h",
238        "lib/telnet.c",
239        "lib/telnet.h",
240        "lib/tftp.c",
241        "lib/tftp.h",
242        "lib/timediff.c",
243        "lib/timediff.h",
244        "lib/timeval.c",
245        "lib/timeval.h",
246        "lib/transfer.c",
247        "lib/transfer.h",
248        "lib/url.c",
249        "lib/url.h",
250        "lib/urldata.h",
251        "lib/urlapi-int.h",
252        "lib/urlapi.c",
253        "lib/version.c",
254        "lib/version_win32.c",
255        "lib/version_win32.h",
256        "lib/warnless.c",
257        "lib/warnless.h",
258        "lib/wildcard.c",
259        "lib/wildcard.h",
260        "lib/vauth/cleartext.c",
261        "lib/vauth/cram.c",
262        "lib/vauth/digest.c",
263        "lib/vauth/digest.h",
264        "lib/vauth/digest_sspi.c",
265        "lib/vauth/krb5_gssapi.c",
266        "lib/vauth/krb5_sspi.c",
267        "lib/vauth/ntlm.c",
268        "lib/vauth/ntlm.h",
269        "lib/vauth/ntlm_sspi.c",
270        "lib/vauth/oauth2.c",
271        "lib/vauth/spnego_sspi.c",
272        "lib/vauth/vauth.c",
273        "lib/vauth/vauth.h",
274        "lib/vquic/msh3.c",
275        "lib/vquic/msh3.h",
276        "lib/vquic/ngtcp2.c",
277        "lib/vquic/ngtcp2.h",
278        "lib/vquic/quiche.c",
279        "lib/vquic/quiche.h",
280        "lib/vquic/vquic.c",
281        "lib/vquic/vquic.h",
282        "lib/vssh/libssh.c",
283        "lib/vssh/libssh2.c",
284        "lib/vssh/ssh.h",
285        "lib/vssh/wolfssh.c",
286        "lib/vtls/bearssl.c",
287        "lib/vtls/bearssl.h",
288        "lib/vtls/gskit.c",
289        "lib/vtls/gskit.h",
290        "lib/vtls/gtls.c",
291        "lib/vtls/gtls.h",
292        "lib/vtls/hostcheck.c",
293        "lib/vtls/hostcheck.h",
294        "lib/vtls/keylog.c",
295        "lib/vtls/keylog.h",
296        "lib/vtls/mbedtls.c",
297        "lib/vtls/mbedtls.h",
298        "lib/vtls/mbedtls_threadlock.c",
299        "lib/vtls/mbedtls_threadlock.h",
300        "lib/vtls/nss.c",
301        "lib/vtls/nssg.h",
302        "lib/vtls/openssl.c",
303        "lib/vtls/openssl.h",
304        "lib/vtls/rustls.c",
305        "lib/vtls/rustls.h",
306        "lib/vtls/schannel.c",
307        "lib/vtls/schannel.h",
308        "lib/vtls/schannel_verify.c",
309        "lib/vtls/sectransp.h",
310        "lib/vtls/vtls.c",
311        "lib/vtls/vtls.h",
312        "lib/vtls/wolfssl.c",
313        "lib/vtls/wolfssl.h",
314        "lib/vtls/x509asn1.c",
315        "lib/vtls/x509asn1.h",
316    ],
317    hdrs = [
318        "include/curl/curl.h",
319        "include/curl/curlver.h",
320        "include/curl/easy.h",
321        "include/curl/header.h",
322        "include/curl/mprintf.h",
323        "include/curl/multi.h",
324        "include/curl/options.h",
325        "include/curl/stdcheaders.h",
326        "include/curl/system.h",
327        "include/curl/typecheck-gcc.h",
328        "include/curl/urlapi.h",
329    ],
330    copts = [
331        "-Iexternal/curl/lib",
332        "-D_GNU_SOURCE",
333        "-DBUILDING_LIBCURL",
334        "-DHAVE_CONFIG_H",
335        "-DCURL_DISABLE_FTP",
336        "-DCURL_DISABLE_NTLM",
337        "-DHAVE_LIBZ",
338        "-DHAVE_ZLIB_H",
339        "-Wno-string-plus-int",
340        "-DCURL_MAX_WRITE_SIZE=65536",
341    ],
342    defines = ["CURL_STATICLIB"],
343    includes = ["include", "lib"],
344    linkopts = [
345        "-lrt",
346    ],
347    visibility = ["//visibility:public"],
348    deps = [
349        "@zlib",
350        "@boringssl//:ssl",
351    ],
352)
353
354genrule(
355    name = "configure",
356    outs = ["include/curl_config.h"],
357    cmd = "\n".join([
358        "cat <<'EOF' >$@",
359        "#ifndef EXTERNAL_CURL_INCLUDE_CURL_CONFIG_H_",
360        "#define EXTERNAL_CURL_INCLUDE_CURL_CONFIG_H_",
361        "",
362        "#if !defined(_WIN32) && !defined(__APPLE__)",
363        "#  include <openssl/opensslv.h>",
364        "#  if defined(OPENSSL_IS_BORINGSSL)",
365        "#    define HAVE_BORINGSSL 1",
366        "#  endif",
367        "#endif",
368        "",
369        "#if defined(_WIN32)",
370        "#  include \"lib/config-win32.h\"",
371        "#  define BUILDING_LIBCURL 1",
372        "#  define CURL_DISABLE_CRYPTO_AUTH 1",
373        "#  define CURL_DISABLE_DICT 1",
374        "#  define CURL_DISABLE_FILE 1",
375        "#  define CURL_DISABLE_GOPHER 1",
376        "#  define CURL_DISABLE_IMAP 1",
377        "#  define CURL_DISABLE_LDAP 1",
378        "#  define CURL_DISABLE_LDAPS 1",
379        "#  define CURL_DISABLE_POP3 1",
380        "#  define CURL_PULL_WS2TCPIP_H 1",
381        "#  define CURL_DISABLE_SMTP 1",
382        "#  define CURL_DISABLE_TELNET 1",
383        "#  define CURL_DISABLE_TFTP 1",
384        "#  define CURL_PULL_WS2TCPIP_H 1",
385        "#  define USE_WINDOWS_SSPI 1",
386        "#  define USE_WIN32_IDN 1",
387        "#  define USE_SCHANNEL 1",
388        "#  define WANT_IDN_PROTOTYPES 1",
389        "#elif defined(__APPLE__)",
390        "#  define HAVE_FSETXATTR_6 1",
391        "#  define HAVE_SETMODE 1",
392        "#  define HAVE_SYS_FILIO_H 1",
393        "#  define HAVE_SYS_SOCKIO_H 1",
394        "#  define OS \"x86_64-apple-darwin15.5.0\"",
395        "#  define USE_SECTRANSP 1",
396        "#else",
397        "#  define CURL_CA_BUNDLE \"/etc/ssl/certs/ca-certificates.crt\"",
398        "#  define GETSERVBYPORT_R_ARGS 6",
399        "#  define GETSERVBYPORT_R_BUFSIZE 4096",
400        "#  define HAVE_BORINGSSL 1",
401        "#  define HAVE_CLOCK_GETTIME_MONOTONIC 1",
402        "#  define HAVE_CRYPTO_CLEANUP_ALL_EX_DATA 1",
403        "#  define HAVE_FSETXATTR_5 1",
404        "#  define HAVE_GETHOSTBYADDR_R 1",
405        "#  define HAVE_GETHOSTBYADDR_R_8 1",
406        "#  define HAVE_GETHOSTBYNAME_R 1",
407        "#  define HAVE_GETHOSTBYNAME_R_6 1",
408        "#  define HAVE_GETSERVBYPORT_R 1",
409        "#  define HAVE_LIBSSL 1",
410        "#  define HAVE_MALLOC_H 1",
411        "#  define HAVE_MSG_NOSIGNAL 1",
412        "#  define HAVE_OPENSSL_CRYPTO_H 1",
413        "#  define HAVE_OPENSSL_ERR_H 1",
414        "#  define HAVE_OPENSSL_PEM_H 1",
415        "#  define HAVE_OPENSSL_PKCS12_H 1",
416        "#  define HAVE_OPENSSL_RSA_H 1",
417        "#  define HAVE_OPENSSL_SSL_H 1",
418        "#  define HAVE_OPENSSL_X509_H 1",
419        "#  define HAVE_RAND_EGD 1",
420        "#  define HAVE_RAND_STATUS 1",
421        "#  define HAVE_SSL_GET_SHUTDOWN 1",
422        "#  define HAVE_TERMIOS_H 1",
423        "#  define OS \"x86_64-pc-linux-gnu\"",
424        "#  define RANDOM_FILE \"/dev/urandom\"",
425        "#  define USE_OPENSSL 1",
426        "#endif",
427        "",
428        "#if !defined(_WIN32)",
429        "#  define CURL_DISABLE_DICT 1",
430        "#  define CURL_DISABLE_FILE 1",
431        "#  define CURL_DISABLE_GOPHER 1",
432        "#  define CURL_DISABLE_IMAP 1",
433        "#  define CURL_DISABLE_LDAP 1",
434        "#  define CURL_DISABLE_LDAPS 1",
435        "#  define CURL_DISABLE_POP3 1",
436        "#  define CURL_DISABLE_SMTP 1",
437        "#  define CURL_DISABLE_TELNET 1",
438        "#  define CURL_DISABLE_TFTP 1",
439        "#  define CURL_EXTERN_SYMBOL __attribute__ ((__visibility__ (\"default\")))",
440        "#  define ENABLE_IPV6 1",
441        "#  define GETHOSTNAME_TYPE_ARG2 size_t",
442        "#  define GETNAMEINFO_QUAL_ARG1 const",
443        "#  define GETNAMEINFO_TYPE_ARG1 struct sockaddr *",
444        "#  define GETNAMEINFO_TYPE_ARG2 socklen_t",
445        "#  define GETNAMEINFO_TYPE_ARG46 socklen_t",
446        "#  define GETNAMEINFO_TYPE_ARG7 int",
447        "#  define HAVE_ALARM 1",
448        "#  define HAVE_ALLOCA_H 1",
449        "#  define HAVE_ARPA_INET_H 1",
450        "#  define HAVE_ARPA_TFTP_H 1",
451        "#  define HAVE_ASSERT_H 1",
452        "#  define HAVE_BASENAME 1",
453        "#  define HAVE_BOOL_T 1",
454        "#  define HAVE_CONNECT 1",
455        "#  define HAVE_DLFCN_H 1",
456        "#  define HAVE_ERRNO_H 1",
457        "#  define HAVE_FCNTL 1",
458        "#  define HAVE_FCNTL_H 1",
459        "#  define HAVE_FCNTL_O_NONBLOCK 1",
460        "#  define HAVE_FDOPEN 1",
461        "#  define HAVE_FORK 1",
462        "#  define HAVE_FREEADDRINFO 1",
463        "#  define HAVE_FREEIFADDRS 1",
464        "#  if !defined(__ANDROID__)",
465        "#    define HAVE_FSETXATTR 1",
466        "#  endif",
467        "#  define HAVE_FTRUNCATE 1",
468        "#  define HAVE_GAI_STRERROR 1",
469        "#  define HAVE_GETADDRINFO 1",
470        "#  define HAVE_GETADDRINFO_THREADSAFE 1",
471        "#  define HAVE_GETEUID 1",
472        "#  define HAVE_GETHOSTBYADDR 1",
473        "#  define HAVE_GETHOSTBYNAME 1",
474        "#  define HAVE_GETHOSTNAME 1",
475        "#  if !defined(__ANDROID__)",
476        "#    define HAVE_GETIFADDRS 1",
477        "#  endif",
478        "#  define HAVE_GETNAMEINFO 1",
479        "#  define HAVE_GETPPID 1",
480        "#  define HAVE_GETPROTOBYNAME 1",
481        "#  define HAVE_GETPWUID 1",
482        "#  if !defined(__ANDROID__)",
483        "#    define HAVE_GETPWUID_R 1",
484        "#  endif",
485        "#  define HAVE_GETRLIMIT 1",
486        "#  define HAVE_GETTIMEOFDAY 1",
487        "#  define HAVE_GMTIME_R 1",
488        "#  if !defined(__ANDROID__)",
489        "#    define HAVE_IFADDRS_H 1",
490        "#  endif",
491        "#  define HAVE_IF_NAMETOINDEX 1",
492        "#  define HAVE_INET_ADDR 1",
493        "#  define HAVE_INET_NTOP 1",
494        "#  define HAVE_INET_PTON 1",
495        "#  define HAVE_INTTYPES_H 1",
496        "#  define HAVE_IOCTL 1",
497        "#  define HAVE_IOCTL_FIONBIO 1",
498        "#  define HAVE_IOCTL_SIOCGIFADDR 1",
499        "#  define HAVE_LIBGEN_H 1",
500        "#  define HAVE_LIBZ 1",
501        "#  define HAVE_LIMITS_H 1",
502        "#  define HAVE_LL 1",
503        "#  define HAVE_LOCALE_H 1",
504        "#  define HAVE_LOCALTIME_R 1",
505        "#  define HAVE_LONGLONG 1",
506        "#  define HAVE_MEMORY_H 1",
507        "#  define HAVE_NETDB_H 1",
508        "#  define HAVE_NETINET_IN_H 1",
509        "#  define HAVE_NETINET_TCP_H 1",
510        "#  define HAVE_NET_IF_H 1",
511        "#  define HAVE_PERROR 1",
512        "#  define HAVE_PIPE 1",
513        "#  define HAVE_POLL 1",
514        "#  define HAVE_POLL_FINE 1",
515        "#  define HAVE_POLL_H 1",
516        "#  define HAVE_POSIX_STRERROR_R 1",
517        "#  define HAVE_PWD_H 1",
518        "#  define HAVE_RECV 1",
519        "#  define HAVE_SELECT 1",
520        "#  define HAVE_SEND 1",
521        "#  define HAVE_SETJMP_H 1",
522        "#  define HAVE_SETLOCALE 1",
523        "#  define HAVE_SETRLIMIT 1",
524        "#  define HAVE_SETSOCKOPT 1",
525        "#  define HAVE_SGTTY_H 1",
526        "#  define HAVE_SIGACTION 1",
527        "#  define HAVE_SIGINTERRUPT 1",
528        "#  define HAVE_SIGNAL 1",
529        "#  define HAVE_SIGNAL_H 1",
530        "#  define HAVE_SIGSETJMP 1",
531        "#  define HAVE_SIG_ATOMIC_T 1",
532        "#  define HAVE_SOCKADDR_IN6_SIN6_SCOPE_ID 1",
533        "#  define HAVE_SOCKET 1",
534        "#  define HAVE_SOCKETPAIR 1",
535        "#  define HAVE_STDBOOL_H 1",
536        "#  define HAVE_STDINT_H 1",
537        "#  define HAVE_STDIO_H 1",
538        "#  define HAVE_STDLIB_H 1",
539        "#  define HAVE_STRCASECMP 1",
540        "#  define HAVE_STRDUP 1",
541        "#  define HAVE_STRERROR_R 1",
542        "#  define HAVE_STRINGS_H 1",
543        "#  define HAVE_STRING_H 1",
544        "#  define HAVE_STRNCASECMP 1",
545        "#  define HAVE_STRSTR 1",
546        "#  define HAVE_STRTOK_R 1",
547        "#  define HAVE_STRTOLL 1",
548        "#  define HAVE_STRUCT_SOCKADDR_STORAGE 1",
549        "#  define HAVE_STRUCT_TIMEVAL 1",
550        "#  define HAVE_SYS_IOCTL_H 1",
551        "#  define HAVE_SYS_PARAM_H 1",
552        "#  define HAVE_SYS_POLL_H 1",
553        "#  define HAVE_SYS_RESOURCE_H 1",
554        "#  define HAVE_SYS_SELECT_H 1",
555        "#  define HAVE_SYS_SOCKET_H 1",
556        "#  define HAVE_SYS_STAT_H 1",
557        "#  define HAVE_SYS_TIME_H 1",
558        "#  define HAVE_SYS_TYPES_H 1",
559        "#  define HAVE_SYS_UIO_H 1",
560        "#  define HAVE_SYS_UN_H 1",
561        "#  define HAVE_SYS_WAIT_H 1",
562        "#  define HAVE_SYS_XATTR_H 1",
563        "#  define HAVE_TIME_H 1",
564        "#  define HAVE_UNAME 1",
565        "#  define HAVE_UNISTD_H 1",
566        "#  define HAVE_UTIME 1",
567        "#  define HAVE_UTIME_H 1",
568        "#  define HAVE_VARIADIC_MACROS_C99 1",
569        "#  define HAVE_VARIADIC_MACROS_GCC 1",
570        "#  define HAVE_WRITABLE_ARGV 1",
571        "#  define HAVE_WRITEV 1",
572        "#  define HAVE_ZLIB_H 1",
573        "#  define LT_OBJDIR \".libs/\"",
574        "#  define PACKAGE \"curl\"",
575        "#  define PACKAGE_BUGREPORT \"a suitable curl mailing list: https://curl.haxx.se/mail/\"",
576        "#  define PACKAGE_NAME \"curl\"",
577        "#  define PACKAGE_STRING \"curl -\"",
578        "#  define PACKAGE_TARNAME \"curl\"",
579        "#  define PACKAGE_URL \"\"",
580        "#  define PACKAGE_VERSION \"-\"",
581        "#  define RECV_TYPE_ARG1 int",
582        "#  define RECV_TYPE_ARG2 void *",
583        "#  define RECV_TYPE_ARG3 size_t",
584        "#  define RECV_TYPE_ARG4 int",
585        "#  define RECV_TYPE_RETV ssize_t",
586        "#  define RETSIGTYPE void",
587        "#  define SELECT_QUAL_ARG5",
588        "#  define SELECT_TYPE_ARG1 int",
589        "#  define SELECT_TYPE_ARG234 fd_set *",
590        "#  define SELECT_TYPE_ARG5 struct timeval *",
591        "#  define SELECT_TYPE_RETV int",
592        "#  define SEND_QUAL_ARG2 const",
593        "#  define SEND_TYPE_ARG1 int",
594        "#  define SEND_TYPE_ARG2 void *",
595        "#  define SEND_TYPE_ARG3 size_t",
596        "#  define SEND_TYPE_ARG4 int",
597        "#  define SEND_TYPE_RETV ssize_t",
598        "#  define SIZEOF_INT 4",
599        "#  define SIZEOF_LONG 8",
600        "#  define SIZEOF_OFF_T 8",
601        "#  define SIZEOF_CURL_OFF_T 8",
602        "#  define SIZEOF_SHORT 2",
603        "#  define SIZEOF_SIZE_T 8",
604        "#  define SIZEOF_TIME_T 8",
605        "#  define SIZEOF_VOIDP 8",
606        "#  define STDC_HEADERS 1",
607        "#  define STRERROR_R_TYPE_ARG3 size_t",
608        "#  define TIME_WITH_SYS_TIME 1",
609        "#  define VERSION \"-\"",
610        "#  ifndef _DARWIN_USE_64_BIT_INODE",
611        "#    define _DARWIN_USE_64_BIT_INODE 1",
612        "#  endif",
613        "#endif",
614        "",
615        "#endif  // EXTERNAL_CURL_INCLUDE_CURL_CONFIG_H_",
616        "EOF",
617    ]),
618)
619