cmake: tidy-ups
—
$ git checkout -f acbc6b703f6b0ee568d053f6f2565fbc107b5fd3
Previous HEAD position was 93d1af4011 pytests: add tests for HEAD requests in all HTTP versions
HEAD is now at acbc6b703f cmake: tidy-ups
$ git clean -fdx
Removing Makefile
Removing Makefile.in
Removing aclocal.m4
Removing autom4te.cache/
Removing compile
Removing config.guess
Removing config.log
Removing config.status
Removing config.sub
Removing configure
Removing curl-config
Removing depcomp
Removing docs/Makefile
Removing docs/Makefile.in
Removing docs/cmdline-opts/Makefile
Removing docs/cmdline-opts/Makefile.in
Removing docs/examples/.deps/
Removing docs/examples/Makefile
Removing docs/examples/Makefile.in
Removing docs/libcurl/Makefile
Removing docs/libcurl/Makefile.in
Removing docs/libcurl/opts/Makefile
Removing docs/libcurl/opts/Makefile.in
Removing include/Makefile
Removing include/Makefile.in
Removing include/curl/Makefile
Removing include/curl/Makefile.in
Removing install-sh
Removing lib/.deps/
Removing lib/.dirstamp
Removing lib/.libs/
Removing lib/Makefile
Removing lib/Makefile.in
Removing lib/base64.o
Removing lib/curl_config.h
Removing lib/curl_config.h.in
Removing lib/curl_multibyte.o
Removing lib/dynbuf.o
Removing lib/libcurl.la
Removing lib/libcurl.vers
Removing lib/libcurl_la-altsvc.lo
Removing lib/libcurl_la-altsvc.o
Removing lib/libcurl_la-amigaos.lo
Removing lib/libcurl_la-amigaos.o
Removing lib/libcurl_la-asyn-ares.lo
Removing lib/libcurl_la-asyn-ares.o
Removing lib/libcurl_la-asyn-thread.lo
Removing lib/libcurl_la-asyn-thread.o
Removing lib/libcurl_la-base64.lo
Removing lib/libcurl_la-base64.o
Removing lib/libcurl_la-bufq.lo
Removing lib/libcurl_la-bufq.o
Removing lib/libcurl_la-bufref.lo
Removing lib/libcurl_la-bufref.o
Removing lib/libcurl_la-c-hyper.lo
Removing lib/libcurl_la-c-hyper.o
Removing lib/libcurl_la-cf-h1-proxy.lo
Removing lib/libcurl_la-cf-h1-proxy.o
Removing lib/libcurl_la-cf-h2-proxy.lo
Removing lib/libcurl_la-cf-h2-proxy.o
Removing lib/libcurl_la-cf-haproxy.lo
Removing lib/libcurl_la-cf-haproxy.o
Removing lib/libcurl_la-cf-https-connect.lo
Removing lib/libcurl_la-cf-https-connect.o
Removing lib/libcurl_la-cf-socket.lo
Removing lib/libcurl_la-cf-socket.o
Removing lib/libcurl_la-cfilters.lo
Removing lib/libcurl_la-cfilters.o
Removing lib/libcurl_la-conncache.lo
Removing lib/libcurl_la-conncache.o
Removing lib/libcurl_la-connect.lo
Removing lib/libcurl_la-connect.o
Removing lib/libcurl_la-content_encoding.lo
Removing lib/libcurl_la-content_encoding.o
Removing lib/libcurl_la-cookie.lo
Removing lib/libcurl_la-cookie.o
Removing lib/libcurl_la-curl_addrinfo.lo
Removing lib/libcurl_la-curl_addrinfo.o
Removing lib/libcurl_la-curl_des.lo
Removing lib/libcurl_la-curl_des.o
Removing lib/libcurl_la-curl_endian.lo
Removing lib/libcurl_la-curl_endian.o
Removing lib/libcurl_la-curl_fnmatch.lo
Removing lib/libcurl_la-curl_fnmatch.o
Removing lib/libcurl_la-curl_get_line.lo
Removing lib/libcurl_la-curl_get_line.o
Removing lib/libcurl_la-curl_gethostname.lo
Removing lib/libcurl_la-curl_gethostname.o
Removing lib/libcurl_la-curl_gssapi.lo
Removing lib/libcurl_la-curl_gssapi.o
Removing lib/libcurl_la-curl_memrchr.lo
Removing lib/libcurl_la-curl_memrchr.o
Removing lib/libcurl_la-curl_multibyte.lo
Removing lib/libcurl_la-curl_multibyte.o
Removing lib/libcurl_la-curl_ntlm_core.lo
Removing lib/libcurl_la-curl_ntlm_core.o
Removing lib/libcurl_la-curl_path.lo
Removing lib/libcurl_la-curl_path.o
Removing lib/libcurl_la-curl_range.lo
Removing lib/libcurl_la-curl_range.o
Removing lib/libcurl_la-curl_rtmp.lo
Removing lib/libcurl_la-curl_rtmp.o
Removing lib/libcurl_la-curl_sasl.lo
Removing lib/libcurl_la-curl_sasl.o
Removing lib/libcurl_la-curl_sha512_256.lo
Removing lib/libcurl_la-curl_sha512_256.o
Removing lib/libcurl_la-curl_sspi.lo
Removing lib/libcurl_la-curl_sspi.o
Removing lib/libcurl_la-curl_threads.lo
Removing lib/libcurl_la-curl_threads.o
Removing lib/libcurl_la-curl_trc.lo
Removing lib/libcurl_la-curl_trc.o
Removing lib/libcurl_la-cw-out.lo
Removing lib/libcurl_la-cw-out.o
Removing lib/libcurl_la-dict.lo
Removing lib/libcurl_la-dict.o
Removing lib/libcurl_la-dllmain.lo
Removing lib/libcurl_la-dllmain.o
Removing lib/libcurl_la-doh.lo
Removing lib/libcurl_la-doh.o
Removing lib/libcurl_la-dynbuf.lo
Removing lib/libcurl_la-dynbuf.o
Removing lib/libcurl_la-dynhds.lo
Removing lib/libcurl_la-dynhds.o
Removing lib/libcurl_la-easy.lo
Removing lib/libcurl_la-easy.o
Removing lib/libcurl_la-easygetopt.lo
Removing lib/libcurl_la-easygetopt.o
Removing lib/libcurl_la-easyoptions.lo
Removing lib/libcurl_la-easyoptions.o
Removing lib/libcurl_la-escape.lo
Removing lib/libcurl_la-escape.o
Removing lib/libcurl_la-file.lo
Removing lib/libcurl_la-file.o
Removing lib/libcurl_la-fileinfo.lo
Removing lib/libcurl_la-fileinfo.o
Removing lib/libcurl_la-fopen.lo
Removing lib/libcurl_la-fopen.o
Removing lib/libcurl_la-formdata.lo
Removing lib/libcurl_la-formdata.o
Removing lib/libcurl_la-ftp.lo
Removing lib/libcurl_la-ftp.o
Removing lib/libcurl_la-ftplistparser.lo
Removing lib/libcurl_la-ftplistparser.o
Removing lib/libcurl_la-getenv.lo
Removing lib/libcurl_la-getenv.o
Removing lib/libcurl_la-getinfo.lo
Removing lib/libcurl_la-getinfo.o
Removing lib/libcurl_la-gopher.lo
Removing lib/libcurl_la-gopher.o
Removing lib/libcurl_la-hash.lo
Removing lib/libcurl_la-hash.o
Removing lib/libcurl_la-headers.lo
Removing lib/libcurl_la-headers.o
Removing lib/libcurl_la-hmac.lo
Removing lib/libcurl_la-hmac.o
Removing lib/libcurl_la-hostasyn.lo
Removing lib/libcurl_la-hostasyn.o
Removing lib/libcurl_la-hostip.lo
Removing lib/libcurl_la-hostip.o
Removing lib/libcurl_la-hostip4.lo
Removing lib/libcurl_la-hostip4.o
Removing lib/libcurl_la-hostip6.lo
Removing lib/libcurl_la-hostip6.o
Removing lib/libcurl_la-hostsyn.lo
Removing lib/libcurl_la-hostsyn.o
Removing lib/libcurl_la-hsts.lo
Removing lib/libcurl_la-hsts.o
Removing lib/libcurl_la-http.lo
Removing lib/libcurl_la-http.o
Removing lib/libcurl_la-http1.lo
Removing lib/libcurl_la-http1.o
Removing lib/libcurl_la-http2.lo
Removing lib/libcurl_la-http2.o
Removing lib/libcurl_la-http_aws_sigv4.lo
Removing lib/libcurl_la-http_aws_sigv4.o
Removing lib/libcurl_la-http_chunks.lo
Removing lib/libcurl_la-http_chunks.o
Removing lib/libcurl_la-http_digest.lo
Removing lib/libcurl_la-http_digest.o
Removing lib/libcurl_la-http_negotiate.lo
Removing lib/libcurl_la-http_negotiate.o
Removing lib/libcurl_la-http_ntlm.lo
Removing lib/libcurl_la-http_ntlm.o
Removing lib/libcurl_la-http_proxy.lo
Removing lib/libcurl_la-http_proxy.o
Removing lib/libcurl_la-idn.lo
Removing lib/libcurl_la-idn.o
Removing lib/libcurl_la-if2ip.lo
Removing lib/libcurl_la-if2ip.o
Removing lib/libcurl_la-imap.lo
Removing lib/libcurl_la-imap.o
Removing lib/libcurl_la-inet_ntop.lo
Removing lib/libcurl_la-inet_ntop.o
Removing lib/libcurl_la-inet_pton.lo
Removing lib/libcurl_la-inet_pton.o
Removing lib/libcurl_la-krb5.lo
Removing lib/libcurl_la-krb5.o
Removing lib/libcurl_la-ldap.lo
Removing lib/libcurl_la-ldap.o
Removing lib/libcurl_la-llist.lo
Removing lib/libcurl_la-llist.o
Removing lib/libcurl_la-macos.lo
Removing lib/libcurl_la-macos.o
Removing lib/libcurl_la-md4.lo
Removing lib/libcurl_la-md4.o
Removing lib/libcurl_la-md5.lo
Removing lib/libcurl_la-md5.o
Removing lib/libcurl_la-memdebug.lo
Removing lib/libcurl_la-memdebug.o
Removing lib/libcurl_la-mime.lo
Removing lib/libcurl_la-mime.o
Removing lib/libcurl_la-mprintf.lo
Removing lib/libcurl_la-mprintf.o
Removing lib/libcurl_la-mqtt.lo
Removing lib/libcurl_la-mqtt.o
Removing lib/libcurl_la-multi.lo
Removing lib/libcurl_la-multi.o
Removing lib/libcurl_la-netrc.lo
Removing lib/libcurl_la-netrc.o
Removing lib/libcurl_la-nonblock.lo
Removing lib/libcurl_la-nonblock.o
Removing lib/libcurl_la-noproxy.lo
Removing lib/libcurl_la-noproxy.o
Removing lib/libcurl_la-openldap.lo
Removing lib/libcurl_la-openldap.o
Removing lib/libcurl_la-parsedate.lo
Removing lib/libcurl_la-parsedate.o
Removing lib/libcurl_la-pingpong.lo
Removing lib/libcurl_la-pingpong.o
Removing lib/libcurl_la-pop3.lo
Removing lib/libcurl_la-pop3.o
Removing lib/libcurl_la-progress.lo
Removing lib/libcurl_la-progress.o
Removing lib/libcurl_la-psl.lo
Removing lib/libcurl_la-psl.o
Removing lib/libcurl_la-rand.lo
Removing lib/libcurl_la-rand.o
Removing lib/libcurl_la-rename.lo
Removing lib/libcurl_la-rename.o
Removing lib/libcurl_la-request.lo
Removing lib/libcurl_la-request.o
Removing lib/libcurl_la-rtsp.lo
Removing lib/libcurl_la-rtsp.o
Removing lib/libcurl_la-select.lo
Removing lib/libcurl_la-select.o
Removing lib/libcurl_la-sendf.lo
Removing lib/libcurl_la-sendf.o
Removing lib/libcurl_la-setopt.lo
Removing lib/libcurl_la-setopt.o
Removing lib/libcurl_la-sha256.lo
Removing lib/libcurl_la-sha256.o
Removing lib/libcurl_la-share.lo
Removing lib/libcurl_la-share.o
Removing lib/libcurl_la-slist.lo
Removing lib/libcurl_la-slist.o
Removing lib/libcurl_la-smb.lo
Removing lib/libcurl_la-smb.o
Removing lib/libcurl_la-smtp.lo
Removing lib/libcurl_la-smtp.o
Removing lib/libcurl_la-socketpair.lo
Removing lib/libcurl_la-socketpair.o
Removing lib/libcurl_la-socks.lo
Removing lib/libcurl_la-socks.o
Removing lib/libcurl_la-socks_gssapi.lo
Removing lib/libcurl_la-socks_gssapi.o
Removing lib/libcurl_la-socks_sspi.lo
Removing lib/libcurl_la-socks_sspi.o
Removing lib/libcurl_la-speedcheck.lo
Removing lib/libcurl_la-speedcheck.o
Removing lib/libcurl_la-splay.lo
Removing lib/libcurl_la-splay.o
Removing lib/libcurl_la-strcase.lo
Removing lib/libcurl_la-strcase.o
Removing lib/libcurl_la-strdup.lo
Removing lib/libcurl_la-strdup.o
Removing lib/libcurl_la-strerror.lo
Removing lib/libcurl_la-strerror.o
Removing lib/libcurl_la-strtok.lo
Removing lib/libcurl_la-strtok.o
Removing lib/libcurl_la-strtoofft.lo
Removing lib/libcurl_la-strtoofft.o
Removing lib/libcurl_la-system_win32.lo
Removing lib/libcurl_la-system_win32.o
Removing lib/libcurl_la-telnet.lo
Removing lib/libcurl_la-telnet.o
Removing lib/libcurl_la-tftp.lo
Removing lib/libcurl_la-tftp.o
Removing lib/libcurl_la-timediff.lo
Removing lib/libcurl_la-timediff.o
Removing lib/libcurl_la-timeval.lo
Removing lib/libcurl_la-timeval.o
Removing lib/libcurl_la-transfer.lo
Removing lib/libcurl_la-transfer.o
Removing lib/libcurl_la-url.lo
Removing lib/libcurl_la-url.o
Removing lib/libcurl_la-urlapi.lo
Removing lib/libcurl_la-urlapi.o
Removing lib/libcurl_la-version.lo
Removing lib/libcurl_la-version.o
Removing lib/libcurl_la-version_win32.lo
Removing lib/libcurl_la-version_win32.o
Removing lib/libcurl_la-warnless.lo
Removing lib/libcurl_la-warnless.o
Removing lib/libcurl_la-ws.lo
Removing lib/libcurl_la-ws.o
Removing lib/nonblock.o
Removing lib/stamp-h1
Removing lib/strtoofft.o
Removing lib/timediff.o
Removing lib/vauth/.deps/
Removing lib/vauth/.dirstamp
Removing lib/vauth/libcurl_la-cleartext.lo
Removing lib/vauth/libcurl_la-cleartext.o
Removing lib/vauth/libcurl_la-cram.lo
Removing lib/vauth/libcurl_la-cram.o
Removing lib/vauth/libcurl_la-digest.lo
Removing lib/vauth/libcurl_la-digest.o
Removing lib/vauth/libcurl_la-digest_sspi.lo
Removing lib/vauth/libcurl_la-digest_sspi.o
Removing lib/vauth/libcurl_la-gsasl.lo
Removing lib/vauth/libcurl_la-gsasl.o
Removing lib/vauth/libcurl_la-krb5_gssapi.lo
Removing lib/vauth/libcurl_la-krb5_gssapi.o
Removing lib/vauth/libcurl_la-krb5_sspi.lo
Removing lib/vauth/libcurl_la-krb5_sspi.o
Removing lib/vauth/libcurl_la-ntlm.lo
Removing lib/vauth/libcurl_la-ntlm.o
Removing lib/vauth/libcurl_la-ntlm_sspi.lo
Removing lib/vauth/libcurl_la-ntlm_sspi.o
Removing lib/vauth/libcurl_la-oauth2.lo
Removing lib/vauth/libcurl_la-oauth2.o
Removing lib/vauth/libcurl_la-spnego_gssapi.lo
Removing lib/vauth/libcurl_la-spnego_gssapi.o
Removing lib/vauth/libcurl_la-spnego_sspi.lo
Removing lib/vauth/libcurl_la-spnego_sspi.o
Removing lib/vauth/libcurl_la-vauth.lo
Removing lib/vauth/libcurl_la-vauth.o
Removing lib/version_win32.o
Removing lib/vquic/.deps/
Removing lib/vquic/.dirstamp
Removing lib/vquic/libcurl_la-curl_msh3.lo
Removing lib/vquic/libcurl_la-curl_msh3.o
Removing lib/vquic/libcurl_la-curl_ngtcp2.lo
Removing lib/vquic/libcurl_la-curl_ngtcp2.o
Removing lib/vquic/libcurl_la-curl_osslq.lo
Removing lib/vquic/libcurl_la-curl_osslq.o
Removing lib/vquic/libcurl_la-curl_quiche.lo
Removing lib/vquic/libcurl_la-curl_quiche.o
Removing lib/vquic/libcurl_la-vquic-tls.lo
Removing lib/vquic/libcurl_la-vquic-tls.o
Removing lib/vquic/libcurl_la-vquic.lo
Removing lib/vquic/libcurl_la-vquic.o
Removing lib/vssh/.deps/
Removing lib/vssh/.dirstamp
Removing lib/vssh/libcurl_la-libssh.lo
Removing lib/vssh/libcurl_la-libssh.o
Removing lib/vssh/libcurl_la-libssh2.lo
Removing lib/vssh/libcurl_la-libssh2.o
Removing lib/vssh/libcurl_la-wolfssh.lo
Removing lib/vssh/libcurl_la-wolfssh.o
Removing lib/vtls/.deps/
Removing lib/vtls/.dirstamp
Removing lib/vtls/libcurl_la-bearssl.lo
Removing lib/vtls/libcurl_la-bearssl.o
Removing lib/vtls/libcurl_la-cipher_suite.lo
Removing lib/vtls/libcurl_la-cipher_suite.o
Removing lib/vtls/libcurl_la-gtls.lo
Removing lib/vtls/libcurl_la-gtls.o
Removing lib/vtls/libcurl_la-hostcheck.lo
Removing lib/vtls/libcurl_la-hostcheck.o
Removing lib/vtls/libcurl_la-keylog.lo
Removing lib/vtls/libcurl_la-keylog.o
Removing lib/vtls/libcurl_la-mbedtls.lo
Removing lib/vtls/libcurl_la-mbedtls.o
Removing lib/vtls/libcurl_la-mbedtls_threadlock.lo
Removing lib/vtls/libcurl_la-mbedtls_threadlock.o
Removing lib/vtls/libcurl_la-openssl.lo
Removing lib/vtls/libcurl_la-openssl.o
Removing lib/vtls/libcurl_la-rustls.lo
Removing lib/vtls/libcurl_la-rustls.o
Removing lib/vtls/libcurl_la-schannel.lo
Removing lib/vtls/libcurl_la-schannel.o
Removing lib/vtls/libcurl_la-schannel_verify.lo
Removing lib/vtls/libcurl_la-schannel_verify.o
Removing lib/vtls/libcurl_la-sectransp.lo
Removing lib/vtls/libcurl_la-sectransp.o
Removing lib/vtls/libcurl_la-vtls.lo
Removing lib/vtls/libcurl_la-vtls.o
Removing lib/vtls/libcurl_la-wolfssl.lo
Removing lib/vtls/libcurl_la-wolfssl.o
Removing lib/vtls/libcurl_la-x509asn1.lo
Removing lib/vtls/libcurl_la-x509asn1.o
Removing lib/warnless.o
Removing libcurl.pc
Removing libtool
Removing ltmain.sh
Removing m4/libtool.m4
Removing m4/ltoptions.m4
Removing m4/ltsugar.m4
Removing m4/ltversion.m4
Removing m4/lt~obsolete.m4
Removing missing
Removing packages/Makefile
Removing packages/Makefile.in
Removing packages/vms/Makefile
Removing packages/vms/Makefile.in
Removing scripts/Makefile
Removing scripts/Makefile.in
Removing src/.deps/
Removing src/.libs/
Removing src/Makefile
Removing src/Makefile.in
Removing src/curl
Removing src/slist_wc.o
Removing src/terminal.o
Removing src/tool_binmode.o
Removing src/tool_bname.o
Removing src/tool_ca_embed.c
Removing src/tool_ca_embed.o
Removing src/tool_cb_dbg.o
Removing src/tool_cb_hdr.o
Removing src/tool_cb_prg.o
Removing src/tool_cb_rea.o
Removing src/tool_cb_see.o
Removing src/tool_cb_soc.o
Removing src/tool_cb_wrt.o
Removing src/tool_cfgable.o
Removing src/tool_dirhie.o
Removing src/tool_doswin.o
Removing src/tool_easysrc.o
Removing src/tool_filetime.o
Removing src/tool_findfile.o
Removing src/tool_formparse.o
Removing src/tool_getparam.o
Removing src/tool_getpass.o
Removing src/tool_help.o
Removing src/tool_helpers.o
Removing src/tool_hugehelp.c
Removing src/tool_hugehelp.o
Removing src/tool_ipfs.o
Removing src/tool_libinfo.o
Removing src/tool_listhelp.o
Removing src/tool_main.o
Removing src/tool_msgs.o
Removing src/tool_operate.o
Removing src/tool_operhlp.o
Removing src/tool_paramhlp.o
Removing src/tool_parsecfg.o
Removing src/tool_progress.o
Removing src/tool_setopt.o
Removing src/tool_sleep.o
Removing src/tool_stderr.o
Removing src/tool_strdup.o
Removing src/tool_urlglob.o
Removing src/tool_util.o
Removing src/tool_vms.o
Removing src/tool_writeout.o
Removing src/tool_writeout_json.o
Removing src/tool_xattr.o
Removing src/var.o
Removing tests/Makefile
Removing tests/Makefile.in
Removing tests/certs/Makefile
Removing tests/certs/Makefile.in
Removing tests/certs/scripts/Makefile
Removing tests/certs/scripts/Makefile.in
Removing tests/config
Removing tests/configurehelp.pm
Removing tests/data/Makefile
Removing tests/data/Makefile.in
Removing tests/http/Makefile
Removing tests/http/Makefile.in
Removing tests/http/clients/.deps/
Removing tests/http/clients/Makefile
Removing tests/http/clients/Makefile.in
Removing tests/http/config.ini
Removing tests/libtest/.deps/
Removing tests/libtest/Makefile
Removing tests/libtest/Makefile.in
Removing tests/server/.deps/
Removing tests/server/Makefile
Removing tests/server/Makefile.in
Removing tests/unit/.deps/
Removing tests/unit/Makefile
Removing tests/unit/Makefile.in
$ autoreconf -fi
libtoolize: putting auxiliary files in '.'.
libtoolize: copying file './ltmain.sh'
libtoolize: putting macros in AC_CONFIG_MACRO_DIRS, 'm4'.
libtoolize: copying file 'm4/libtool.m4'
libtoolize: copying file 'm4/ltoptions.m4'
libtoolize: copying file 'm4/ltsugar.m4'
libtoolize: copying file 'm4/ltversion.m4'
libtoolize: copying file 'm4/lt~obsolete.m4'
libtoolize: Remember to add 'LT_INIT' to configure.ac.
configure.ac:125: installing './compile'
configure.ac:437: installing './config.guess'
configure.ac:437: installing './config.sub'
configure.ac:125: installing './install-sh'
configure.ac:131: installing './missing'
docs/examples/Makefile.am: installing './depcomp'
$ bash -c find . -name config.guess -exec cp /usr/share/misc/config.guess {} \;
$ bash -c find . -name config.sub -exec cp /usr/share/misc/config.sub {} \;
$ chmod +x configure
$ ./configure --disable-shared --without-ssl --disable-docs
checking whether to enable maintainer-specific portions of Makefiles... no
checking whether make supports nested variables... yes
checking whether to enable debug build options... no
checking whether to enable compiler optimizer... (assumed) yes
checking whether to enable strict compiler warnings... no
checking whether to enable compiler warnings as errors... no
checking whether to enable curl debug memory tracking... no
checking whether to enable hiding of library internal symbols... yes
checking whether to enable c-ares for DNS lookups... no
checking whether to disable dependency on -lrt... (assumed no)
checking whether to enable HTTPSRR support... no
checking whether to enable ECH support... no
checking for path separator... :
checking for sed... /usr/bin/sed
checking for grep... /usr/bin/grep
checking that grep -E works... yes
checking for ar... /usr/bin/ar
checking for a BSD-compatible install... /usr/bin/install -c
checking for gcc... ccache gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether the compiler supports GNU C... yes
checking whether ccache gcc accepts -g... yes
checking for ccache gcc option to enable C11 features... none needed
checking whether ccache gcc understands -c and -o together... yes
checking how to run the C preprocessor... ccache gcc -E
checking for stdio.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for strings.h... yes
checking for sys/stat.h... yes
checking for sys/types.h... yes
checking for unistd.h... yes
checking for stdatomic.h... yes
checking if _Atomic is available... yes
checking for a sed that does not truncate output... (cached) /usr/bin/sed
checking for code coverage support... no
checking whether build environment is sane... yes
checking for a race-free mkdir -p... /usr/bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports the include directive... yes (GNU style)
checking dependency style of ccache gcc... gcc3
checking curl version... 8.10.0-DEV
checking for httpd... no
checking for apache2... no
checking for apachectl... no
checking for apxs... no
configure: httpd/apache2 not in PATH, http tests disabled
configure: apxs not in PATH, http tests disabled
checking for nghttpx... no
checking for caddy... /usr/bin/caddy
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking for grep that handles long lines and -e... (cached) /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking if OS is AIX (to define _ALL_SOURCE)... no
checking if _THREAD_SAFE is already defined... no
checking if _THREAD_SAFE is actually needed... no
checking if _THREAD_SAFE is onwards defined... no
checking if _REENTRANT is already defined... no
checking if _REENTRANT is actually needed... no
checking if _REENTRANT is onwards defined... no
checking for special C compiler options needed for large files... no
checking for _FILE_OFFSET_BITS value needed for large files... no
checking how to print strings... printf
checking for a sed that does not truncate output... (cached) /usr/bin/sed
checking for fgrep... /usr/bin/grep -F
checking for ld used by ccache gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 1572864
checking how to convert x86_64-pc-linux-gnu file names to x86_64-pc-linux-gnu format... func_convert_file_noop
checking how to convert x86_64-pc-linux-gnu file names to toolchain format... func_convert_file_noop
checking for /usr/bin/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for dlltool... no
checking how to associate runtime and link libraries... printf %s\n
checking for archiver @FILE support... @
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from ccache gcc object... ok
checking for sysroot... no
checking for a working dd... /usr/bin/dd
checking how to truncate binary pipes... /usr/bin/dd bs=4096 count=1
checking for mt... mt
checking if mt is a manifest tool... no
checking for dlfcn.h... yes
checking for objdir... .libs
checking if ccache gcc supports -fno-rtti -fno-exceptions... no
checking for ccache gcc option to produce PIC... -fPIC -DPIC
checking if ccache gcc PIC flag -fPIC -DPIC works... yes
checking if ccache gcc static flag -static works... yes
checking if ccache gcc supports -c -o file.o... yes
checking if ccache gcc supports -c -o file.o... (cached) yes
checking whether the ccache gcc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... no
checking whether to build static libraries... yes
checking whether to build shared libraries with -version-info... yes
checking whether to build shared libraries with -no-undefined... no
checking whether to build shared libraries with -mimpure-text... no
checking whether to build shared libraries with PIC... yes
checking whether to build static libraries with PIC... yes
checking whether to build shared libraries only... no
checking whether to build static libraries only... yes
checking for windres... no
checking if cpp -P is needed... yes
checking if cpp -P works... yes
checking if compiler is DEC/Compaq/HP C... no
checking if compiler is HP-UX C... no
checking if compiler is IBM C... no
checking if compiler is Intel C... no
checking if compiler is clang... no
checking if compiler is GNU C... yes
checking compiler version... gcc '1100' (raw: '11')
checking if compiler is SunPro C... no
checking if compiler is Tiny C... no
checking whether build target is a native Windows one... no
checking if compiler accepts some basic options... yes
configure: compiler options added: -Werror-implicit-function-declaration
checking if compiler optimizer assumed setting might be used... yes
checking if compiler accepts optimizer enabling options... yes
configure: compiler options added: -O2
checking if compiler accepts strict warning options... yes
configure: compiler options added: -Wno-system-headers
checking if compiler halts on compilation errors... yes
checking if compiler halts on negative sized arrays... yes
checking if compiler halts on function prototype mismatch... yes
checking if compiler supports hiding library internal symbols... yes
checking whether build target supports WIN32 file API... no
checking whether build target supports WIN32 crypto API... no
checking for good-to-use Darwin CFLAGS... no
checking whether to support http... yes
checking whether to support ftp... yes
checking whether to support file... yes
checking whether to support ldap... yes
checking whether to support ldaps... yes
checking whether to support rtsp... yes
checking whether to support proxies... yes
checking whether to support dict... yes
checking whether to support telnet... yes
checking whether to support tftp... yes
checking whether to support pop3... yes
checking whether to support imap... yes
checking whether to support smb... yes
checking whether to support smtp... yes
checking whether to support gopher... yes
checking whether to support mqtt... no
checking whether to provide built-in manual... yes
checking whether to build documentation... no
checking whether to enable generation of C code... yes
checking whether to use libgcc... no
checking if X/Open network library is required... no
checking for gethostbyname... yes
checking whether build target is a native Windows one... (cached) no
checking for proto/bsdsocket.h... no
checking for connect in libraries... yes
checking for sys/types.h... (cached) yes
checking for sys/time.h... yes
checking for monotonic clock_gettime... yes
checking for clock_gettime in libraries... no additional lib required
checking if monotonic clock_gettime works... yes
checking for sys/types.h... (cached) yes
checking for sys/time.h... (cached) yes
checking for raw monotonic clock_gettime... yes
checking for pkg-config... /usr/bin/pkg-config
checking for zlib options with pkg-config... found
checking for zlib.h... yes
configure: found both libz and libz.h header
checking for BrotliDecoderDecompress in -lbrotlidec... no
checking for brotli/decode.h... no
checking for ZSTD_createDStream in -lzstd... no
checking for zstd.h... no
checking for lber.h... no
checking for ldap.h... no
checking for ldap_ssl.h... no
checking for LDAP libraries... cannot find LDAP libraries
checking whether to enable IPv6... yes
checking if struct sockaddr_in6 has sin6_scope_id member... yes
checking if argv can be written to... yes
checking if GSS-API support is requested... no
checking whether to enable Windows native SSL/TLS... no
checking whether to enable Secure Transport... no
checking whether to enable Amiga native SSL/TLS (AmiSSL v5)... no
checking for psl_builtin in -lpsl... yes
checking for libpsl.h... yes
checking for library containing gsasl_init... no
checking for RTMP_Init in -lrtmp... no
checking whether versioned symbols are wanted... no
checking whether to enable Windows native IDN (Windows native builds only)... no
checking whether to build with libidn2... (assumed) yes
checking for pkg-config... (cached) /usr/bin/pkg-config
checking for libidn2 options with pkg-config... no
configure: IDN_LIBS: "-lidn2"
configure: IDN_LDFLAGS: ""
configure: IDN_CPPFLAGS: ""
configure: IDN_DIR: ""
checking if idn2_lookup_ul can be linked... no
checking for idn2.h... no
checking for pkg-config... (cached) /usr/bin/pkg-config
checking for libnghttp2 options with pkg-config... no
checking for nghttp2_session_get_stream_local_window_size in -lnghttp2... no
checking for sys/types.h... (cached) yes
checking for sys/time.h... (cached) yes
checking for sys/select.h... yes
checking for sys/socket.h... yes
checking for sys/ioctl.h... yes
checking for unistd.h... (cached) yes
checking for stdlib.h... (cached) yes
checking for arpa/inet.h... yes
checking for net/if.h... yes
checking for netinet/in.h... yes
checking for netinet/in6.h... no
checking for sys/un.h... yes
checking for linux/tcp.h... yes
checking for netinet/tcp.h... yes
checking for netinet/udp.h... yes
checking for netdb.h... yes
checking for sys/sockio.h... no
checking for sys/stat.h... (cached) yes
checking for sys/param.h... yes
checking for termios.h... yes
checking for termio.h... yes
checking for fcntl.h... yes
checking for io.h... no
checking for pwd.h... yes
checking for utime.h... yes
checking for sys/utime.h... no
checking for sys/poll.h... yes
checking for poll.h... yes
checking for socket.h... no
checking for sys/resource.h... yes
checking for libgen.h... yes
checking for locale.h... yes
checking for stdbool.h... yes
checking for sys/filio.h... no
checking for sys/wait.h... yes
checking for sys/eventfd.h... yes
checking for setjmp.h... yes
checking for an ANSI C-conforming const... yes
checking for size_t... yes
checking for sys/types.h... (cached) yes
checking for sys/time.h... (cached) yes
checking for sys/socket.h... (cached) yes
checking for struct timeval... yes
checking run-time libs availability... fine
checking size of size_t... 8
checking size of long... 8
checking size of int... 4
checking size of time_t... 8
checking size of off_t... 8
checking size of curl_off_t... 8
checking size of curl_socket_t... 4
checking for long long... yes
checking for ssize_t... yes
checking for bool... yes
checking for sa_family_t... yes
checking for suseconds_t... yes
checking if time_t is unsigned... no
checking for in_addr_t... yes
checking for struct sockaddr_storage... yes
checking for sys/select.h... (cached) yes
checking for sys/socket.h... (cached) yes
checking for select... yes
checking for sys/types.h... (cached) yes
checking for sys/socket.h... (cached) yes
checking for recv... yes
checking for sys/types.h... (cached) yes
checking for sys/socket.h... (cached) yes
checking for send... yes
checking for sys/types.h... (cached) yes
checking for sys/socket.h... (cached) yes
checking for MSG_NOSIGNAL... yes
checking for sys/types.h... (cached) yes
checking for unistd.h... (cached) yes
checking if alarm can be linked... yes
checking if alarm is prototyped... yes
checking if alarm is compilable... yes
checking if alarm usage allowed... yes
checking if alarm might be used... yes
checking for sys/types.h... (cached) yes
checking for strings.h... (cached) yes
checking for sys/types.h... (cached) yes
checking for libgen.h... (cached) yes
checking if basename can be linked... yes
checking if basename is prototyped... yes
checking if basename is compilable... yes
checking if basename usage allowed... yes
checking if basename might be used... yes
checking for sys/types.h... (cached) yes
checking for socket.h... (cached) no
checking if closesocket can be linked... no
checking if closesocket might be used... no
checking for sys/types.h... (cached) yes
checking for sys/socket.h... (cached) yes
checking if CloseSocket can be linked... no
checking if CloseSocket might be used... no
checking for sys/types.h... (cached) yes
checking for unistd.h... (cached) yes
checking for fcntl.h... (cached) yes
checking if fcntl can be linked... yes
checking if fcntl is prototyped... yes
checking if fcntl is compilable... yes
checking if fcntl usage allowed... yes
checking if fcntl might be used... yes
checking if fcntl O_NONBLOCK is compilable... yes
checking if fcntl O_NONBLOCK usage allowed... yes
checking if fcntl O_NONBLOCK might be used... yes
checking whether build target is a native Windows one... (cached) no
checking for sys/types.h... (cached) yes
checking for netdb.h... (cached) yes
checking if freeaddrinfo can be linked... yes
checking if freeaddrinfo is prototyped... yes
checking if freeaddrinfo is compilable... yes
checking if freeaddrinfo usage allowed... yes
checking if freeaddrinfo might be used... yes
checking for sys/types.h... (cached) yes
checking for sys/xattr.h... yes
checking if fsetxattr can be linked... yes
checking if fsetxattr is prototyped... yes
checking if fsetxattr takes 5 args.... yes
checking if fsetxattr is compilable... yes
checking if fsetxattr usage allowed... yes
checking if fsetxattr might be used... yes
checking if ftruncate can be linked... yes
checking if ftruncate is prototyped... yes
checking if ftruncate is compilable... yes
checking if ftruncate usage allowed... yes
checking if ftruncate might be used... yes
checking for sys/types.h... (cached) yes
checking if getaddrinfo can be linked... yes
checking if getaddrinfo is prototyped... yes
checking if getaddrinfo is compilable... yes
checking if getaddrinfo seems to work... yes
checking if getaddrinfo usage allowed... yes
checking if getaddrinfo might be used... yes
checking if getaddrinfo is threadsafe... yes
checking if gethostbyname can be linked... yes
checking if gethostbyname is prototyped... yes
checking if gethostbyname is compilable... yes
checking if gethostbyname usage allowed... yes
checking if gethostbyname might be used... yes
checking if gethostbyname_r can be linked... yes
checking if gethostbyname_r is prototyped... yes
checking if gethostbyname_r takes 3 args.... no
checking if gethostbyname_r takes 5 args.... no
checking if gethostbyname_r takes 6 args.... yes
checking if gethostbyname_r is compilable... yes
checking if gethostbyname_r usage allowed... yes
checking if gethostbyname_r might be used... yes
checking if gethostname can be linked... yes
checking if gethostname is prototyped... yes
checking if gethostname is compilable... yes
checking for gethostname arg 2 data type... size_t
checking if gethostname usage allowed... yes
checking if gethostname might be used... yes
checking if getpeername can be linked... yes
checking if getpeername is prototyped... yes
checking if getpeername is compilable... yes
checking if getpeername usage allowed... yes
checking if getpeername might be used... yes
checking if getsockname can be linked... yes
checking if getsockname is prototyped... yes
checking if getsockname is compilable... yes
checking if getsockname usage allowed... yes
checking if getsockname might be used... yes
checking for net/if.h... (cached) yes
checking if if_nametoindex can be linked... yes
checking if if_nametoindex is prototyped... yes
checking if if_nametoindex is compilable... yes
checking if if_nametoindex usage allowed... yes
checking if if_nametoindex might be used... yes
checking for sys/types.h... (cached) yes
checking for sys/socket.h... (cached) yes
checking for netinet/in.h... (cached) yes
checking for ifaddrs.h... yes
checking if getifaddrs can be linked... yes
checking if getifaddrs is prototyped... yes
checking if getifaddrs is compilable... yes
checking if getifaddrs seems to work... yes
checking if getifaddrs usage allowed... yes
checking if getifaddrs might be used... yes
checking for sys/types.h... (cached) yes
checking for sys/time.h... (cached) yes
checking if gmtime_r can be linked... yes
checking if gmtime_r is prototyped... yes
checking if gmtime_r is compilable... yes
checking if gmtime_r seems to work... yes
checking if gmtime_r usage allowed... yes
checking if gmtime_r might be used... yes
checking for sys/types.h... (cached) yes
checking for sys/socket.h... (cached) yes
checking for netinet/in.h... (cached) yes
checking for arpa/inet.h... (cached) yes
checking if inet_ntop can be linked... yes
checking if inet_ntop is prototyped... yes
checking if inet_ntop is compilable... yes
checking if inet_ntop seems to work... yes
checking if inet_ntop usage allowed... yes
checking if inet_ntop might be used... yes
checking if inet_pton can be linked... yes
checking if inet_pton is prototyped... yes
checking if inet_pton is compilable... yes
checking if inet_pton seems to work... yes
checking if inet_pton usage allowed... yes
checking if inet_pton might be used... yes
checking for sys/types.h... (cached) yes
checking for unistd.h... (cached) yes
checking for sys/socket.h... (cached) yes
checking for sys/ioctl.h... (cached) yes
checking for stropts.h... no
checking if ioctl can be linked... yes
checking if ioctl is prototyped... yes
checking if ioctl is compilable... yes
checking if ioctl usage allowed... yes
checking if ioctl might be used... yes
checking if ioctl FIONBIO is compilable... yes
checking if ioctl FIONBIO usage allowed... yes
checking if ioctl FIONBIO might be used... yes
checking if ioctl SIOCGIFADDR is compilable... yes
checking if ioctl SIOCGIFADDR usage allowed... yes
checking if ioctl SIOCGIFADDR might be used... yes
checking if ioctlsocket can be linked... no
checking if ioctlsocket might be used... no
checking if IoctlSocket can be linked... no
checking if IoctlSocket might be used... no
checking if memrchr can be linked... yes
checking if memrchr is prototyped... no
checking if memrchr might be used... no
checking for sys/types.h... (cached) yes
checking for poll.h... (cached) yes
checking for sys/poll.h... (cached) yes
checking if poll can be linked... yes
checking if poll is prototyped... yes
checking if poll is compilable... yes
checking if poll seems to work... yes
checking if poll usage allowed... yes
checking if poll might be used... yes
checking for sys/types.h... (cached) yes
checking if sigaction can be linked... yes
checking if sigaction is prototyped... yes
checking if sigaction is compilable... yes
checking if sigaction usage allowed... yes
checking if sigaction might be used... yes
checking if siginterrupt can be linked... yes
checking if siginterrupt is prototyped... yes
checking if siginterrupt is compilable... yes
checking if siginterrupt usage allowed... yes
checking if siginterrupt might be used... yes
checking if signal can be linked... yes
checking if signal is prototyped... yes
checking if signal is compilable... yes
checking if signal usage allowed... yes
checking if signal might be used... yes
checking for sys/types.h... (cached) yes
checking if sigsetjmp can be linked... no
checking if sigsetjmp seems a macro... yes
checking if sigsetjmp is compilable... yes
checking if sigsetjmp usage allowed... yes
checking if sigsetjmp might be used... yes
checking if socket can be linked... yes
checking if socket is prototyped... yes
checking if socket is compilable... yes
checking if socket usage allowed... yes
checking if socket might be used... yes
checking if socketpair can be linked... yes
checking if socketpair is prototyped... yes
checking if socketpair is compilable... yes
checking if socketpair usage allowed... yes
checking if socketpair might be used... yes
checking if strcasecmp can be linked... yes
checking if strcasecmp is prototyped... yes
checking if strcasecmp is compilable... yes
checking if strcasecmp usage allowed... yes
checking if strcasecmp might be used... yes
checking if strcmpi can be linked... no
checking if strcmpi might be used... no
checking if strdup can be linked... yes
checking if strdup is prototyped... yes
checking if strdup is compilable... yes
checking if strdup usage allowed... yes
checking if strdup might be used... yes
checking if strerror_r can be linked... yes
checking if strerror_r is prototyped... yes
checking if strerror_r is compilable... yes
checking if strerror_r is glibc like... no
checking if strerror_r is POSIX like... yes
checking if strerror_r seems to work... yes
checking if strerror_r usage allowed... yes
checking if strerror_r might be used... yes
checking if stricmp can be linked... no
checking if stricmp might be used... no
checking if strtok_r can be linked... yes
checking if strtok_r is prototyped... yes
checking if strtok_r is compilable... yes
checking if strtok_r usage allowed... yes
checking if strtok_r might be used... yes
checking if strtoll can be linked... yes
checking if strtoll is prototyped... yes
checking if strtoll is compilable... yes
checking if strtoll usage allowed... yes
checking if strtoll might be used... yes
checking for ccache gcc options needed to detect all undeclared functions... none needed
checking whether getpwuid_r is declared... yes
checking for _fseeki64... no
checking for arc4random... no
checking for eventfd... yes
checking for fnmatch... yes
checking for fseeko... yes
checking for geteuid... yes
checking for getpass_r... no
checking for getppid... yes
checking for getpwuid... yes
checking for getpwuid_r... yes
checking for getrlimit... yes
checking for gettimeofday... yes
checking for if_nametoindex... yes
checking for mach_absolute_time... no
checking for pipe... yes
checking for sched_yield... yes
checking for sendmsg... yes
checking for setlocale... yes
checking for setmode... no
checking for setrlimit... yes
checking for snprintf... yes
checking for utime... yes
checking for utimes... yes
checking whether fseeko is declared... yes
checking how to set a socket into non-blocking mode... fcntl O_NONBLOCK
checking whether to enable the threaded resolver... yes
checking whether to link macOS CoreFoundation, CoreServices, and SystemConfiguration frameworks... no
checking whether to use POSIX threads for threaded resolver... auto
checking for pthread.h... yes
checking for pthread_create... yes
checking for dirent.h... yes
checking for opendir... yes
checking convert -I options to -isystem... yes
checking whether to enable verbose strings... yes
checking whether to enable SSPI support (Windows native builds only)... no
checking whether to enable basic authentication method... yes
checking whether to enable bearer authentication method... yes
checking whether to enable digest authentication method... yes
checking whether to enable kerberos authentication method... yes
checking whether to enable negotiate authentication method... yes
checking whether to enable aws sig methods... yes
checking whether to support NTLM... yes
checking whether to enable TLS-SRP authentication... yes
checking whether to enable Unix domain sockets... auto
checking for struct sockaddr_un.sun_path... yes
checking whether to support cookies... yes
checking whether to support socketpair... yes
checking whether to support HTTP authentication... yes
checking whether to support DoH... yes
checking whether to support the MIME API... yes
checking whether to support binding connections locally... yes
checking whether to support the form API... yes
checking whether to support date parsing... yes
checking whether to support netrc parsing... yes
checking whether to support progress-meter... yes
checking whether to support DNS shuffling... yes
checking whether to support curl_easy_option*... yes
checking whether to support alt-svc... yes
checking whether to support headers-api... yes
configure: disables HSTS due to lack of SSL
checking whether to support WebSockets... no
checking whether hiding of library internal symbols will actually happen... yes
checking if this build supports HTTPS-proxy... no
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating docs/Makefile
config.status: creating docs/examples/Makefile
config.status: creating docs/libcurl/Makefile
config.status: creating docs/libcurl/opts/Makefile
config.status: creating docs/cmdline-opts/Makefile
config.status: creating include/Makefile
config.status: creating include/curl/Makefile
config.status: creating src/Makefile
config.status: creating lib/Makefile
config.status: creating scripts/Makefile
config.status: creating lib/libcurl.vers
config.status: creating tests/Makefile
config.status: creating tests/config
config.status: creating tests/certs/Makefile
config.status: creating tests/certs/scripts/Makefile
config.status: creating tests/data/Makefile
config.status: creating tests/server/Makefile
config.status: creating tests/libtest/Makefile
config.status: creating tests/unit/Makefile
config.status: creating tests/http/config.ini
config.status: creating tests/http/Makefile
config.status: creating tests/http/clients/Makefile
config.status: creating packages/Makefile
config.status: creating packages/vms/Makefile
config.status: creating curl-config
config.status: creating libcurl.pc
config.status: creating lib/curl_config.h
config.status: executing depfiles commands
config.status: executing libtool commands
configure: Configured to build curl/libcurl:
Host setup: x86_64-pc-linux-gnu
Install prefix: /usr/local
Compiler: ccache gcc
CFLAGS: -Werror-implicit-function-declaration -O2 -Wno-system-headers
CFLAGS extras:
CPPFLAGS:
LDFLAGS:
LIBS: -lpsl -lz
curl version: 8.10.0-DEV
SSL: no (--with-{openssl,gnutls,mbedtls,wolfssl,schannel,secure-transport,amissl,bearssl,rustls} )
SSH: no (--with-{libssh,libssh2})
zlib: enabled
brotli: no (--with-brotli)
zstd: no (--with-zstd)
GSS-API: no (--with-gssapi)
GSASL: no (libgsasl not found)
TLS-SRP: no (--enable-tls-srp)
resolver: POSIX threaded
IPv6: enabled
Unix sockets: enabled
IDN: no (--with-{libidn2,winidn})
Build docs: no
Build libcurl: Shared=no, Static=yes
Built-in manual: no (--enable-manual)
--libcurl option: enabled (--disable-libcurl-option)
Verbose errors: enabled (--disable-verbose)
Code coverage: disabled
SSPI: no (--enable-sspi)
ca cert bundle: no
ca cert path:
ca fallback:
LDAP: no (--enable-ldap / --with-ldap-lib / --with-lber-lib)
LDAPS: no (--enable-ldaps)
RTSP: enabled
RTMP: no (--with-librtmp)
PSL: enabled
Alt-svc: enabled (--disable-alt-svc)
Headers API: enabled (--disable-headers-api)
HSTS: no (--enable-hsts)
HTTP1: enabled (internal)
HTTP2: no (--with-nghttp2)
HTTP3: no (--with-ngtcp2 --with-nghttp3, --with-quiche, --with-openssl-quic, --with-msh3)
ECH: no (--enable-ech)
WebSockets: no (--enable-websockets)
Protocols: dict file ftp gopher http imap ipfs ipns mqtt pop3 rtsp smtp telnet tftp
Features: alt-svc AsynchDNS IPv6 Largefile libz PSL threadsafe UnixSockets
configure: WARNING: Cannot find libraries for LDAP support: LDAP disabled
configure: WARNING: libgsasl was not found
configure: WARNING: Cannot find libraries for IDN support: IDN disabled
$ make -j3
Making all in lib
make[1]: Entering directory '/root/asi_db/builds/curl/_worktrees/w0/lib'
make all-am
make[2]: Entering directory '/root/asi_db/builds/curl/_worktrees/w0/lib'
CC libcurl_la-altsvc.lo
CC libcurl_la-amigaos.lo
CC libcurl_la-asyn-ares.lo
CC libcurl_la-asyn-thread.lo
CC libcurl_la-base64.lo
CC libcurl_la-bufq.lo
CC libcurl_la-bufref.lo
CC libcurl_la-c-hyper.lo
CC libcurl_la-cf-h1-proxy.lo
CC libcurl_la-cf-h2-proxy.lo
CC libcurl_la-cf-haproxy.lo
CC libcurl_la-cf-https-connect.lo
CC libcurl_la-cf-socket.lo
CC libcurl_la-cfilters.lo
CC libcurl_la-conncache.lo
CC libcurl_la-connect.lo
CC libcurl_la-content_encoding.lo
CC libcurl_la-cookie.lo
CC libcurl_la-curl_addrinfo.lo
CC libcurl_la-curl_des.lo
CC libcurl_la-curl_endian.lo
CC libcurl_la-curl_fnmatch.lo
CC libcurl_la-curl_get_line.lo
CC libcurl_la-curl_gethostname.lo
CC libcurl_la-curl_gssapi.lo
CC libcurl_la-curl_memrchr.lo
CC libcurl_la-curl_multibyte.lo
CC libcurl_la-curl_ntlm_core.lo
CC libcurl_la-curl_path.lo
CC libcurl_la-curl_range.lo
CC libcurl_la-curl_rtmp.lo
CC libcurl_la-curl_sasl.lo
CC libcurl_la-curl_sha512_256.lo
CC libcurl_la-curl_sspi.lo
CC libcurl_la-curl_threads.lo
CC libcurl_la-curl_trc.lo
CC libcurl_la-cw-out.lo
CC libcurl_la-dict.lo
CC libcurl_la-dllmain.lo
CC libcurl_la-doh.lo
CC libcurl_la-dynbuf.lo
CC libcurl_la-dynhds.lo
CC libcurl_la-easy.lo
CC libcurl_la-easygetopt.lo
CC libcurl_la-easyoptions.lo
CC libcurl_la-escape.lo
CC libcurl_la-file.lo
CC libcurl_la-fileinfo.lo
CC libcurl_la-fopen.lo
CC libcurl_la-formdata.lo
CC libcurl_la-ftp.lo
CC libcurl_la-ftplistparser.lo
CC libcurl_la-getenv.lo
CC libcurl_la-getinfo.lo
CC libcurl_la-gopher.lo
CC libcurl_la-hash.lo
CC libcurl_la-headers.lo
CC libcurl_la-hmac.lo
CC libcurl_la-hostasyn.lo
CC libcurl_la-hostip.lo
CC libcurl_la-hostip4.lo
CC libcurl_la-hostip6.lo
CC libcurl_la-hostsyn.lo
CC libcurl_la-hsts.lo
CC libcurl_la-http.lo
CC libcurl_la-http1.lo
CC libcurl_la-http2.lo
CC libcurl_la-http_aws_sigv4.lo
CC libcurl_la-http_chunks.lo
CC libcurl_la-http_digest.lo
CC libcurl_la-http_negotiate.lo
CC libcurl_la-http_ntlm.lo
CC libcurl_la-http_proxy.lo
CC libcurl_la-idn.lo
CC libcurl_la-if2ip.lo
CC libcurl_la-imap.lo
CC libcurl_la-inet_ntop.lo
CC libcurl_la-inet_pton.lo
CC libcurl_la-krb5.lo
CC libcurl_la-ldap.lo
CC libcurl_la-llist.lo
CC libcurl_la-macos.lo
CC libcurl_la-md4.lo
CC libcurl_la-md5.lo
CC libcurl_la-memdebug.lo
CC libcurl_la-mime.lo
CC libcurl_la-mprintf.lo
CC libcurl_la-mqtt.lo
CC libcurl_la-multi.lo
CC libcurl_la-netrc.lo
CC libcurl_la-nonblock.lo
CC libcurl_la-noproxy.lo
CC libcurl_la-openldap.lo
CC libcurl_la-parsedate.lo
CC libcurl_la-pingpong.lo
CC libcurl_la-pop3.lo
CC libcurl_la-progress.lo
CC libcurl_la-psl.lo
CC libcurl_la-rand.lo
CC libcurl_la-rename.lo
CC libcurl_la-request.lo
CC libcurl_la-rtsp.lo
CC libcurl_la-select.lo
CC libcurl_la-sendf.lo
CC libcurl_la-setopt.lo
CC libcurl_la-sha256.lo
CC libcurl_la-share.lo
CC libcurl_la-slist.lo
CC libcurl_la-smb.lo
CC libcurl_la-smtp.lo
CC libcurl_la-socketpair.lo
CC libcurl_la-socks.lo
CC libcurl_la-socks_gssapi.lo
CC libcurl_la-socks_sspi.lo
CC libcurl_la-speedcheck.lo
CC libcurl_la-splay.lo
CC libcurl_la-strcase.lo
CC libcurl_la-strdup.lo
CC libcurl_la-strerror.lo
CC libcurl_la-strtok.lo
CC libcurl_la-strtoofft.lo
CC libcurl_la-system_win32.lo
CC libcurl_la-telnet.lo
CC libcurl_la-tftp.lo
CC libcurl_la-timediff.lo
CC libcurl_la-timeval.lo
CC libcurl_la-transfer.lo
CC libcurl_la-url.lo
CC libcurl_la-urlapi.lo
CC libcurl_la-version.lo
CC libcurl_la-version_win32.lo
CC libcurl_la-warnless.lo
CC libcurl_la-ws.lo
CC vauth/libcurl_la-cleartext.lo
CC vauth/libcurl_la-cram.lo
CC vauth/libcurl_la-digest.lo
CC vauth/libcurl_la-digest_sspi.lo
CC vauth/libcurl_la-gsasl.lo
CC vauth/libcurl_la-krb5_gssapi.lo
CC vauth/libcurl_la-krb5_sspi.lo
CC vauth/libcurl_la-ntlm.lo
CC vauth/libcurl_la-ntlm_sspi.lo
CC vauth/libcurl_la-oauth2.lo
CC vauth/libcurl_la-spnego_sspi.lo
CC vauth/libcurl_la-spnego_gssapi.lo
CC vauth/libcurl_la-vauth.lo
CC vtls/libcurl_la-bearssl.lo
CC vtls/libcurl_la-cipher_suite.lo
CC vtls/libcurl_la-gtls.lo
CC vtls/libcurl_la-hostcheck.lo
CC vtls/libcurl_la-keylog.lo
CC vtls/libcurl_la-mbedtls.lo
CC vtls/libcurl_la-mbedtls_threadlock.lo
CC vtls/libcurl_la-openssl.lo
CC vtls/libcurl_la-rustls.lo
CC vtls/libcurl_la-schannel.lo
CC vtls/libcurl_la-schannel_verify.lo
CC vtls/libcurl_la-sectransp.lo
CC vtls/libcurl_la-vtls.lo
CC vtls/libcurl_la-wolfssl.lo
CC vtls/libcurl_la-x509asn1.lo
CC vquic/libcurl_la-curl_msh3.lo
CC vquic/libcurl_la-curl_ngtcp2.lo
CC vquic/libcurl_la-curl_osslq.lo
CC vquic/libcurl_la-curl_quiche.lo
CC vquic/libcurl_la-vquic.lo
CC vquic/libcurl_la-vquic-tls.lo
CC vssh/libcurl_la-libssh.lo
CC vssh/libcurl_la-libssh2.lo
CC vssh/libcurl_la-wolfssh.lo
CCLD libcurl.la
make[2]: Leaving directory '/root/asi_db/builds/curl/_worktrees/w0/lib'
make[1]: Leaving directory '/root/asi_db/builds/curl/_worktrees/w0/lib'
Making all in docs
make[1]: Entering directory '/root/asi_db/builds/curl/_worktrees/w0/docs'
Making all in .
make[2]: Entering directory '/root/asi_db/builds/curl/_worktrees/w0/docs'
make[2]: Nothing to be done for 'all-am'.
make[2]: Leaving directory '/root/asi_db/builds/curl/_worktrees/w0/docs'
Making all in cmdline-opts
make[2]: Entering directory '/root/asi_db/builds/curl/_worktrees/w0/docs/cmdline-opts'
make[2]: Nothing to be done for 'all'.
make[2]: Leaving directory '/root/asi_db/builds/curl/_worktrees/w0/docs/cmdline-opts'
Making all in libcurl
make[2]: Entering directory '/root/asi_db/builds/curl/_worktrees/w0/docs/libcurl'
Making all in opts
make[3]: Entering directory '/root/asi_db/builds/curl/_worktrees/w0/docs/libcurl/opts'
make[3]: Nothing to be done for 'all'.
make[3]: Leaving directory '/root/asi_db/builds/curl/_worktrees/w0/docs/libcurl/opts'
make[3]: Entering directory '/root/asi_db/builds/curl/_worktrees/w0/docs/libcurl'
make[3]: Nothing to be done for 'all-am'.
make[3]: Leaving directory '/root/asi_db/builds/curl/_worktrees/w0/docs/libcurl'
make[2]: Leaving directory '/root/asi_db/builds/curl/_worktrees/w0/docs/libcurl'
make[1]: Leaving directory '/root/asi_db/builds/curl/_worktrees/w0/docs'
Making all in src
make[1]: Entering directory '/root/asi_db/builds/curl/_worktrees/w0/src'
CC slist_wc.o
CC terminal.o
CC tool_binmode.o
CC tool_bname.o
CC tool_cb_dbg.o
CC tool_cb_hdr.o
CC tool_cb_prg.o
CC tool_cb_rea.o
CC tool_cb_see.o
CC tool_cb_soc.o
CC tool_cb_wrt.o
CC tool_cfgable.o
CC tool_dirhie.o
CC tool_doswin.o
CC tool_easysrc.o
CC tool_filetime.o
CC tool_findfile.o
CC tool_formparse.o
CC tool_getparam.o
CC tool_getpass.o
CC tool_helpers.o
CC tool_help.o
echo '#include "tool_hugehelp.h"' >> tool_hugehelp.c
CC tool_ipfs.o
CC tool_libinfo.o
CC tool_listhelp.o
CC tool_main.o
CC tool_msgs.o
CC tool_operate.o
CC tool_operhlp.o
CC tool_paramhlp.o
CC tool_parsecfg.o
CC tool_progress.o
CC tool_setopt.o
CC tool_sleep.o
CC tool_stderr.o
CC tool_strdup.o
CC tool_urlglob.o
CC tool_util.o
CC tool_vms.o
CC tool_writeout.o
CC tool_writeout_json.o
CC tool_xattr.o
CC var.o
echo 'extern const void *curl_ca_embed; const void *curl_ca_embed;' > tool_ca_embed.c
CC tool_hugehelp.o
CC tool_ca_embed.o
CC ../lib/base64.o
CC ../lib/curl_multibyte.o
CC ../lib/dynbuf.o
CC ../lib/nonblock.o
CC ../lib/strtoofft.o
CC ../lib/timediff.o
CC ../lib/version_win32.o
CC ../lib/warnless.o
CCLD curl
make[1]: Leaving directory '/root/asi_db/builds/curl/_worktrees/w0/src'
Making all in scripts
make[1]: Entering directory '/root/asi_db/builds/curl/_worktrees/w0/scripts'
make[1]: Nothing to be done for 'all'.
make[1]: Leaving directory '/root/asi_db/builds/curl/_worktrees/w0/scripts'
make[1]: Entering directory '/root/asi_db/builds/curl/_worktrees/w0'
make[1]: Nothing to be done for 'all-am'.
make[1]: Leaving directory '/root/asi_db/builds/curl/_worktrees/w0'
| @@ -23,7 +23,7 @@ | |
| ########################################################################### | |
| include(CheckCSourceCompiles) | |
| - | option(CURL_HIDDEN_SYMBOLS "Set to ON to hide libcurl internal symbols (=hide all symbols that aren't officially external)." ON) |
| + | option(CURL_HIDDEN_SYMBOLS "Set to ON to hide libcurl internal symbols (=hide all symbols that are not officially external)." ON) |
| mark_as_advanced(CURL_HIDDEN_SYMBOLS) | |
| if(WIN32 AND (ENABLE_DEBUG OR ENABLE_CURLDEBUG)) | |
| @@ -42,7 +42,7 @@ if(CURL_HIDDEN_SYMBOLS) | |
| set(_CFLAG_SYMBOLS_HIDE "-fvisibility=hidden") | |
| elseif(CMAKE_COMPILER_IS_GNUCC) | |
| if(NOT CMAKE_C_COMPILER_VERSION VERSION_LESS 3.4) | |
| - | # note: this is considered buggy prior to 4.0 but the autotools don't care, so let's ignore that fact |
| + | # Note: This is considered buggy prior to 4.0 but the autotools do not care, so let us ignore that fact |
| set(SUPPORTS_SYMBOL_HIDING TRUE) | |
| set(_SYMBOL_EXTERN "__attribute__ ((__visibility__ (\"default\")))") | |
| set(_CFLAG_SYMBOLS_HIDE "-fvisibility=hidden") | |
| @@ -52,13 +52,13 @@ if(CURL_HIDDEN_SYMBOLS) | |
| set(_SYMBOL_EXTERN "__global") | |
| set(_CFLAG_SYMBOLS_HIDE "-xldscope=hidden") | |
| elseif(CMAKE_C_COMPILER_ID MATCHES "Intel" AND NOT CMAKE_C_COMPILER_VERSION VERSION_LESS 9.0) | |
| - | # note: this should probably just check for version 9.1.045 but I'm not 100% sure |
| - | # so let's do it the same way autotools do. |
| + | # Note: This should probably just check for version 9.1.045 but I am not 100% sure |
| + | # so let us do it the same way autotools do. |
| set(SUPPORTS_SYMBOL_HIDING TRUE) | |
| set(_SYMBOL_EXTERN "__attribute__ ((__visibility__ (\"default\")))") | |
| set(_CFLAG_SYMBOLS_HIDE "-fvisibility=hidden") | |
| check_c_source_compiles("#include <stdio.h> | |
| - | int main (void) { printf(\"icc fvisibility bug test\"); return 0; }" _no_bug) |
| + | int main (void) { printf(\"icc fvisibility bug test\"); return 0; }" _no_bug) |
| if(NOT _no_bug) | |
| set(SUPPORTS_SYMBOL_HIDING FALSE) | |
| set(_SYMBOL_EXTERN "") | |
| @@ -152,7 +152,7 @@ int main(void) { return 0; } | |
| #define _FILE_OFFSET_BITS 64 | |
| #include <sys/types.h> | |
| /* Check that off_t can represent 2**63 - 1 correctly. | |
| - | We can't simply define LARGE_OFF_T to be 9223372036854775807, |
| + | We cannot simply define LARGE_OFF_T to be 9223372036854775807, |
| since some C++ compilers masquerading as C compilers | |
| incorrectly reject 9223372036854775807. */ | |
| #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
| @@ -337,7 +337,7 @@ int main(void) | |
| #include <string.h> | |
| #include <errno.h> | |
| - | /* float, because a pointer can't be implicitly cast to float */ |
| + | /* Float, because a pointer cannot be implicitly cast to float */ |
| void check(float f) {} | |
| int main(void) | |
| @@ -35,7 +35,7 @@ find_path(CARES_INCLUDE_DIR ares.h) | |
| set(CARES_NAMES ${CARES_NAMES} cares) | |
| find_library(CARES_LIBRARY | |
| NAMES ${CARES_NAMES} | |
| - | ) |
| + | ) |
| include(FindPackageHandleStandardArgs) | |
| find_package_handle_standard_args(CARES | |
| @@ -44,4 +44,4 @@ find_package_handle_standard_args(CARES | |
| mark_as_advanced( | |
| CARES_LIBRARY | |
| CARES_INCLUDE_DIR | |
| - | ) |
| + | ) |
| @@ -22,7 +22,7 @@ | |
| # | |
| ########################################################################### | |
| # - Try to find the GSS Kerberos library | |
| - | # Once done this will define |
| + | # Once done this defines |
| # | |
| # GSS_ROOT_DIR - Set this variable to the root installation of GSS | |
| # | |
| @@ -35,7 +35,7 @@ | |
| # GSS_LINKER_FLAGS - Additional linker flags | |
| # GSS_COMPILER_FLAGS - Additional compiler flags | |
| # GSS_VERSION - This is set to version advertised by pkg-config or read from manifest. | |
| - | # In case the library is found but no version info available it'll be set to "unknown" |
| + | # In case the library is found but no version info available it is set to "unknown" |
| set(_MIT_MODNAME mit-krb5-gssapi) | |
| set(_HEIMDAL_MODNAME heimdal-gssapi) | |
| @@ -49,7 +49,7 @@ set(_GSS_ROOT_HINTS | |
| "$ENV{GSS_ROOT_DIR}" | |
| ) | |
| - | # try to find library using system pkg-config if user didn't specify root dir |
| + | # Try to find library using system pkg-config if user did not specify root dir |
| if(NOT GSS_ROOT_DIR AND NOT "$ENV{GSS_ROOT_DIR}") | |
| if(UNIX) | |
| find_package(PkgConfig QUIET) | |
| @@ -60,7 +60,7 @@ if(NOT GSS_ROOT_DIR AND NOT "$ENV{GSS_ROOT_DIR}") | |
| endif() | |
| endif() | |
| - | if(NOT _GSS_FOUND) #not found by pkg-config. Let's take more traditional approach. |
| + | if(NOT _GSS_FOUND) # Not found by pkg-config. Let us take more traditional approach. |
| find_file(_GSS_CONFIGURE_SCRIPT | |
| NAMES | |
| "krb5-config" | |
| @@ -72,7 +72,7 @@ if(NOT _GSS_FOUND) #not found by pkg-config. Let's take more traditional approac | |
| NO_CMAKE_ENVIRONMENT_PATH | |
| ) | |
| - | # if not found in user-supplied directories, maybe system knows better |
| + | # If not found in user-supplied directories, maybe system knows better |
| find_file(_GSS_CONFIGURE_SCRIPT | |
| NAMES | |
| "krb5-config" | |
| @@ -86,10 +86,10 @@ if(NOT _GSS_FOUND) #not found by pkg-config. Let's take more traditional approac | |
| OUTPUT_VARIABLE _GSS_CFLAGS | |
| RESULT_VARIABLE _GSS_CONFIGURE_FAILED | |
| OUTPUT_STRIP_TRAILING_WHITESPACE | |
| - | ) |
| + | ) |
| message(STATUS "CFLAGS: ${_GSS_CFLAGS}") | |
| - | if(NOT _GSS_CONFIGURE_FAILED) # 0 means success |
| - | # should also work in an odd case when multiple directories are given |
| + | if(NOT _GSS_CONFIGURE_FAILED) # 0 means success |
| + | # Should also work in an odd case when multiple directories are given |
| string(STRIP "${_GSS_CFLAGS}" _GSS_CFLAGS) | |
| string(REGEX REPLACE " +-I" ";" _GSS_CFLAGS "${_GSS_CFLAGS}") | |
| string(REGEX REPLACE " +-([^I][^ \\t;]*)" ";-\\1" _GSS_CFLAGS "${_GSS_CFLAGS}") | |
| @@ -113,7 +113,7 @@ if(NOT _GSS_FOUND) #not found by pkg-config. Let's take more traditional approac | |
| message(STATUS "LDFLAGS: ${_GSS_LIB_FLAGS}") | |
| if(NOT _GSS_CONFIGURE_FAILED) # 0 means success | |
| - | # this script gives us libraries and link directories. Blah. We have to deal with it. |
| + | # This script gives us libraries and link directories. Blah. We have to deal with it. |
| string(STRIP "${_GSS_LIB_FLAGS}" _GSS_LIB_FLAGS) | |
| string(REGEX REPLACE " +-(L|l)" ";-\\1" _GSS_LIB_FLAGS "${_GSS_LIB_FLAGS}") | |
| string(REGEX REPLACE " +-([^Ll][^ \\t;]*)" ";-\\1" _GSS_LIB_FLAGS "${_GSS_LIB_FLAGS}") | |
| @@ -138,7 +138,7 @@ if(NOT _GSS_FOUND) #not found by pkg-config. Let's take more traditional approac | |
| OUTPUT_STRIP_TRAILING_WHITESPACE | |
| ) | |
| - | # older versions may not have the "--version" parameter. In this case we just don't care. |
| + | # Older versions may not have the "--version" parameter. In this case we just do not care. |
| if(_GSS_CONFIGURE_FAILED) | |
| set(_GSS_VERSION 0) | |
| endif() | |
| @@ -150,9 +150,9 @@ if(NOT _GSS_FOUND) #not found by pkg-config. Let's take more traditional approac | |
| OUTPUT_STRIP_TRAILING_WHITESPACE | |
| ) | |
| - | # older versions may not have the "--vendor" parameter. In this case we just don't care. |
| + | # Older versions may not have the "--vendor" parameter. In this case we just do not care. |
| if(_GSS_CONFIGURE_FAILED) | |
| - | set(GSS_FLAVOUR "Heimdal") # most probably, shouldn't really matter |
| + | set(GSS_FLAVOUR "Heimdal") # most probably, should not really matter |
| else() | |
| if(_GSS_VENDOR MATCHES ".*H|heimdal.*") | |
| set(GSS_FLAVOUR "Heimdal") | |
| @@ -161,7 +161,7 @@ if(NOT _GSS_FOUND) #not found by pkg-config. Let's take more traditional approac | |
| endif() | |
| endif() | |
| - | else() # either there is no config script or we are on a platform that doesn't provide one (Windows?) |
| + | else() # Either there is no config script or we are on a platform that does not provide one (Windows?) |
| find_path(_GSS_INCLUDE_DIR | |
| NAMES | |
| @@ -173,14 +173,14 @@ if(NOT _GSS_FOUND) #not found by pkg-config. Let's take more traditional approac | |
| inc | |
| ) | |
| - | if(_GSS_INCLUDE_DIR) #jay, we've found something |
| + | if(_GSS_INCLUDE_DIR) # jay, we have found something |
| set(CMAKE_REQUIRED_INCLUDES "${_GSS_INCLUDE_DIR}") | |
| check_include_files( "gssapi/gssapi_generic.h;gssapi/gssapi_krb5.h" _GSS_HAVE_MIT_HEADERS) | |
| if(_GSS_HAVE_MIT_HEADERS) | |
| set(GSS_FLAVOUR "MIT") | |
| else() | |
| - | # prevent compiling the header - just check if we can include it |
| + | # Prevent compiling the header - just check if we can include it |
| list(APPEND CMAKE_REQUIRED_DEFINITIONS -D__ROKEN_H__) | |
| check_include_file( "roken.h" _GSS_HAVE_ROKEN_H) | |
| @@ -191,7 +191,7 @@ if(NOT _GSS_FOUND) #not found by pkg-config. Let's take more traditional approac | |
| list(REMOVE_ITEM CMAKE_REQUIRED_DEFINITIONS -D__ROKEN_H__) | |
| endif() | |
| else() | |
| - | # I'm not convinced if this is the right way but this is what autotools do at the moment |
| + | # I am not convinced if this is the right way but this is what autotools do at the moment |
| find_path(_GSS_INCLUDE_DIR | |
| NAMES | |
| "gssapi.h" | |
| @@ -207,7 +207,7 @@ if(NOT _GSS_FOUND) #not found by pkg-config. Let's take more traditional approac | |
| endif() | |
| endif() | |
| - | # if we have headers, check if we can link libraries |
| + | # If we have headers, check if we can link libraries |
| if(GSS_FLAVOUR) | |
| set(_GSS_LIBDIR_SUFFIXES "") | |
| set(_GSS_LIBDIR_HINTS ${_GSS_ROOT_HINTS}) | |
| @@ -231,7 +231,7 @@ if(NOT _GSS_FOUND) #not found by pkg-config. Let's take more traditional approac | |
| endif() | |
| endif() | |
| else() | |
| - | list(APPEND _GSS_LIBDIR_SUFFIXES "lib;lib64") # those suffixes are not checked for HINTS |
| + | list(APPEND _GSS_LIBDIR_SUFFIXES "lib;lib64") # those suffixes are not checked for HINTS |
| if(GSS_FLAVOUR STREQUAL "MIT") | |
| set(_GSS_LIBNAME "gssapi_krb5") | |
| else() | |
| @@ -247,7 +247,6 @@ if(NOT _GSS_FOUND) #not found by pkg-config. Let's take more traditional approac | |
| PATH_SUFFIXES | |
| ${_GSS_LIBDIR_SUFFIXES} | |
| ) | |
| - | |
| endif() | |
| endif() | |
| else() | |
| @@ -276,11 +275,11 @@ if(GSS_FLAVOUR) | |
| endif() | |
| if(EXISTS "${GSS_INCLUDE_DIR}/${HEIMDAL_MANIFEST_FILE}") | |
| - | file(STRINGS "${GSS_INCLUDE_DIR}/${HEIMDAL_MANIFEST_FILE}" heimdal_version_str |
| - | REGEX "^.*version=\"[0-9]\\.[^\"]+\".*$") |
| + | file(STRINGS "${GSS_INCLUDE_DIR}/${HEIMDAL_MANIFEST_FILE}" _heimdal_version_str |
| + | REGEX "^.*version=\"[0-9]\\.[^\"]+\".*$") |
| string(REGEX MATCH "[0-9]\\.[^\"]+" | |
| - | GSS_VERSION "${heimdal_version_str}") |
| + | GSS_VERSION "${_heimdal_version_str}") |
| endif() | |
| if(NOT GSS_VERSION) | |
| @@ -22,7 +22,7 @@ | |
| # | |
| ########################################################################### | |
| # - Try to find the libpsl library | |
| - | # Once done this will define |
| + | # Once done this defines |
| # | |
| # LIBPSL_FOUND - system has the libpsl library | |
| # LIBPSL_INCLUDE_DIR - the libpsl include directory | |
| @@ -22,7 +22,7 @@ | |
| # | |
| ########################################################################### | |
| # - Try to find the libssh2 library | |
| - | # Once done this will define |
| + | # Once done this defines |
| # | |
| # LIBSSH2_FOUND - system has the libssh2 library | |
| # LIBSSH2_INCLUDE_DIR - the libssh2 include directory | |
| @@ -21,23 +21,13 @@ | |
| # SPDX-License-Identifier: curl | |
| # | |
| ########################################################################### | |
| + | # Find the msh3 library |
| + | # |
| + | # Result Variables: |
| + | # MSH3_FOUND System has msh3 |
| + | # MSH3_INCLUDE_DIRS The msh3 include directories. |
| + | # MSH3_LIBRARIES The libraries needed to use msh3 |
| - | #[=======================================================================[.rst: |
| - | FindMSH3 |
| - | ---------- |
| - | |
| - | Find the msh3 library |
| - | |
| - | Result Variables |
| - | ^^^^^^^^^^^^^^^^ |
| - | |
| - | ``MSH3_FOUND`` |
| - | System has msh3 |
| - | ``MSH3_INCLUDE_DIRS`` |
| - | The msh3 include directories. |
| - | ``MSH3_LIBRARIES`` |
| - | The libraries needed to use msh3 |
| - | #]=======================================================================] |
| if(UNIX) | |
| find_package(PkgConfig QUIET) | |
| pkg_search_module(PC_MSH3 libmsh3) | |
| @@ -21,25 +21,13 @@ | |
| # SPDX-License-Identifier: curl | |
| # | |
| ########################################################################### | |
| - | |
| - | #[=======================================================================[.rst: |
| - | FindNGHTTP3 |
| - | ---------- |
| - | |
| - | Find the nghttp3 library |
| - | |
| - | Result Variables |
| - | ^^^^^^^^^^^^^^^^ |
| - | |
| - | ``NGHTTP3_FOUND`` |
| - | System has nghttp3 |
| - | ``NGHTTP3_INCLUDE_DIRS`` |
| - | The nghttp3 include directories. |
| - | ``NGHTTP3_LIBRARIES`` |
| - | The libraries needed to use nghttp3 |
| - | ``NGHTTP3_VERSION`` |
| - | version of nghttp3. |
| - | #]=======================================================================] |
| + | # Find the nghttp3 library |
| + | # |
| + | # Result Variables: |
| + | # NGHTTP3_FOUND System has nghttp3 |
| + | # NGHTTP3_INCLUDE_DIRS The nghttp3 include directories. |
| + | # NGHTTP3_LIBRARIES The libraries needed to use nghttp3 |
| + | # NGHTTP3_VERSION version of nghttp3. |
| if(UNIX) | |
| find_package(PkgConfig QUIET) | |
| @@ -21,33 +21,21 @@ | |
| # SPDX-License-Identifier: curl | |
| # | |
| ########################################################################### | |
| - | |
| - | #[=======================================================================[.rst: |
| - | FindNGTCP2 |
| - | ---------- |
| - | |
| - | Find the ngtcp2 library |
| - | |
| - | This module accepts optional COMPONENTS to control the crypto library (these are |
| - | mutually exclusive):: |
| - | |
| - | quictls, LibreSSL: Use libngtcp2_crypto_quictls |
| - | BoringSSL, AWS-LC: Use libngtcp2_crypto_boringssl |
| - | wolfSSL: Use libngtcp2_crypto_wolfssl |
| - | GnuTLS: Use libngtcp2_crypto_gnutls |
| - | |
| - | Result Variables |
| - | ^^^^^^^^^^^^^^^^ |
| - | |
| - | ``NGTCP2_FOUND`` |
| - | System has ngtcp2 |
| - | ``NGTCP2_INCLUDE_DIRS`` |
| - | The ngtcp2 include directories. |
| - | ``NGTCP2_LIBRARIES`` |
| - | The libraries needed to use ngtcp2 |
| - | ``NGTCP2_VERSION`` |
| - | version of ngtcp2. |
| - | #]=======================================================================] |
| + | # Find the ngtcp2 library |
| + | # |
| + | # This module accepts optional COMPONENTS to control the crypto library (these are |
| + | # mutually exclusive): |
| + | # |
| + | # quictls, LibreSSL: Use libngtcp2_crypto_quictls |
| + | # BoringSSL, AWS-LC: Use libngtcp2_crypto_boringssl |
| + | # wolfSSL: Use libngtcp2_crypto_wolfssl |
| + | # GnuTLS: Use libngtcp2_crypto_gnutls |
| + | # |
| + | # Result Variables: |
| + | # NGTCP2_FOUND System has ngtcp2 |
| + | # NGTCP2_INCLUDE_DIRS The ngtcp2 include directories. |
| + | # NGTCP2_LIBRARIES The libraries needed to use ngtcp2 |
| + | # NGTCP2_VERSION version of ngtcp2. |
| if(UNIX) | |
| find_package(PkgConfig QUIET) | |
| @@ -72,12 +60,12 @@ endif() | |
| if(NGTCP2_FIND_COMPONENTS) | |
| set(NGTCP2_CRYPTO_BACKEND "") | |
| - | foreach(component IN LISTS NGTCP2_FIND_COMPONENTS) |
| - | if(component MATCHES "^(BoringSSL|quictls|wolfSSL|GnuTLS)") |
| + | foreach(_component IN LISTS NGTCP2_FIND_COMPONENTS) |
| + | if(_component MATCHES "^(BoringSSL|quictls|wolfSSL|GnuTLS)") |
| if(NGTCP2_CRYPTO_BACKEND) | |
| message(FATAL_ERROR "NGTCP2: Only one crypto library can be selected") | |
| endif() | |
| - | set(NGTCP2_CRYPTO_BACKEND ${component}) |
| + | set(NGTCP2_CRYPTO_BACKEND ${_component}) |
| endif() | |
| endforeach() | |
| @@ -22,7 +22,7 @@ | |
| # | |
| ########################################################################### | |
| # - Try to find the nettle library | |
| - | # Once done this will define |
| + | # Once done this defines |
| # | |
| # NETTLE_FOUND - system has nettle | |
| # NETTLE_INCLUDE_DIRS - nettle include directories | |
| @@ -21,23 +21,13 @@ | |
| # SPDX-License-Identifier: curl | |
| # | |
| ########################################################################### | |
| + | # Find the quiche library |
| + | # |
| + | # Result Variables: |
| + | # QUICHE_FOUND System has quiche |
| + | # QUICHE_INCLUDE_DIRS The quiche include directories |
| + | # QUICHE_LIBRARIES The libraries needed to use quiche |
| - | #[=======================================================================[.rst: |
| - | FindQUICHE |
| - | ---------- |
| - | |
| - | Find the quiche library |
| - | |
| - | Result Variables |
| - | ^^^^^^^^^^^^^^^^ |
| - | |
| - | ``QUICHE_FOUND`` |
| - | System has quiche |
| - | ``QUICHE_INCLUDE_DIRS`` |
| - | The quiche include directories. |
| - | ``QUICHE_LIBRARIES`` |
| - | The libraries needed to use quiche |
| - | #]=======================================================================] |
| if(UNIX) | |
| find_package(PkgConfig QUIET) | |
| pkg_search_module(PC_QUICHE quiche) | |
| @@ -21,23 +21,12 @@ | |
| # SPDX-License-Identifier: curl | |
| # | |
| ########################################################################### | |
| - | |
| - | #[=======================================================================[.rst: |
| - | FindZstd |
| - | ---------- |
| - | |
| - | Find the zstd library |
| - | |
| - | Result Variables |
| - | ^^^^^^^^^^^^^^^^ |
| - | |
| - | ``Zstd_FOUND`` |
| - | System has zstd |
| - | ``Zstd_INCLUDE_DIRS`` |
| - | The zstd include directories. |
| - | ``Zstd_LIBRARIES`` |
| - | The libraries needed to use zstd |
| - | #]=======================================================================] |
| + | # Find the zstd library |
| + | # |
| + | # Result Variables |
| + | # Zstd_FOUND System has zstd |
| + | # Zstd_INCLUDE_DIRS The zstd include directories. |
| + | # Zstd_LIBRARIES The libraries needed to use zstd |
| if(UNIX) | |
| find_package(PkgConfig QUIET) | |
| @@ -21,54 +21,55 @@ | |
| # SPDX-License-Identifier: curl | |
| # | |
| ########################################################################### | |
| - | #File defines convenience macros for available feature testing |
| + | # File defines convenience macros for available feature testing |
| # Check if header file exists and add it to the list. | |
| # This macro is intended to be called multiple times with a sequence of | |
| # possibly dependent header files. Some headers depend on others to be | |
| # compiled correctly. | |
| - | macro(check_include_file_concat FILE VARIABLE) |
| - | check_include_files("${CURL_INCLUDES};${FILE}" ${VARIABLE}) |
| - | if(${VARIABLE}) |
| - | set(CURL_INCLUDES ${CURL_INCLUDES} ${FILE}) |
| - | set(CURL_TEST_DEFINES "${CURL_TEST_DEFINES} -D${VARIABLE}") |
| + | macro(check_include_file_concat file variable) |
| + | check_include_files("${CURL_INCLUDES};${file}" ${variable}) |
| + | if(${variable}) |
| + | set(CURL_INCLUDES ${CURL_INCLUDES} ${file}) |
| + | set(CURL_TEST_DEFINES "${CURL_TEST_DEFINES} -D${variable}") |
| endif() | |
| endmacro() | |
| # For other curl specific tests, use this macro. | |
| - | macro(curl_internal_test CURL_TEST) |
| - | if(NOT DEFINED "${CURL_TEST}") |
| + | # Return result in variable: CURL_TEST_OUTPUT |
| + | macro(curl_internal_test curl_test) |
| + | if(NOT DEFINED "${curl_test}") |
| set(MACRO_CHECK_FUNCTION_DEFINITIONS | |
| - | "-D${CURL_TEST} ${CURL_TEST_DEFINES} ${CMAKE_REQUIRED_FLAGS}") |
| + | "-D${curl_test} ${CURL_TEST_DEFINES} ${CMAKE_REQUIRED_FLAGS}") |
| if(CMAKE_REQUIRED_LIBRARIES) | |
| set(CURL_TEST_ADD_LIBRARIES | |
| "-DLINK_LIBRARIES:STRING=${CMAKE_REQUIRED_LIBRARIES}") | |
| endif() | |
| - | message(STATUS "Performing Test ${CURL_TEST}") |
| - | try_compile(${CURL_TEST} |
| + | message(STATUS "Performing Test ${curl_test}") |
| + | try_compile(${curl_test} |
| ${CMAKE_BINARY_DIR} | |
| ${CMAKE_CURRENT_SOURCE_DIR}/CMake/CurlTests.c | |
| CMAKE_FLAGS -DCOMPILE_DEFINITIONS:STRING=${MACRO_CHECK_FUNCTION_DEFINITIONS} | |
| "${CURL_TEST_ADD_LIBRARIES}" | |
| - | OUTPUT_VARIABLE OUTPUT) |
| - | if(${CURL_TEST}) |
| - | set(${CURL_TEST} 1 CACHE INTERNAL "Curl test") |
| - | message(STATUS "Performing Test ${CURL_TEST} - Success") |
| + | OUTPUT_VARIABLE CURL_TEST_OUTPUT) |
| + | if(${curl_test}) |
| + | set(${curl_test} 1 CACHE INTERNAL "Curl test") |
| + | message(STATUS "Performing Test ${curl_test} - Success") |
| else() | |
| - | set(${CURL_TEST} "" CACHE INTERNAL "Curl test") |
| - | message(STATUS "Performing Test ${CURL_TEST} - Failed") |
| + | set(${curl_test} "" CACHE INTERNAL "Curl test") |
| + | message(STATUS "Performing Test ${curl_test} - Failed") |
| endif() | |
| endif() | |
| endmacro() | |
| - | macro(optional_dependency DEPENDENCY) |
| - | set(CURL_${DEPENDENCY} AUTO CACHE STRING "Build curl with ${DEPENDENCY} support (AUTO, ON or OFF)") |
| - | set_property(CACHE CURL_${DEPENDENCY} PROPERTY STRINGS AUTO ON OFF) |
| + | macro(optional_dependency dependency) |
| + | set(CURL_${dependency} AUTO CACHE STRING "Build curl with ${dependency} support (AUTO, ON or OFF)") |
| + | set_property(CACHE CURL_${dependency} PROPERTY STRINGS AUTO ON OFF) |
| - | if(CURL_${DEPENDENCY} STREQUAL AUTO) |
| - | find_package(${DEPENDENCY}) |
| - | elseif(CURL_${DEPENDENCY}) |
| - | find_package(${DEPENDENCY} REQUIRED) |
| + | if(CURL_${dependency} STREQUAL AUTO) |
| + | find_package(${dependency}) |
| + | elseif(CURL_${dependency}) |
| + | find_package(${dependency} REQUIRED) |
| endif() | |
| endmacro() | |
| @@ -221,20 +221,20 @@ if(PICKY_COMPILER) | |
| # | |
| - | foreach(_CCOPT IN LISTS WPICKY_ENABLE) |
| - | set(WPICKY "${WPICKY} ${_CCOPT}") |
| + | foreach(_ccopt IN LISTS WPICKY_ENABLE) |
| + | set(WPICKY "${WPICKY} ${_ccopt}") |
| endforeach() | |
| - | foreach(_CCOPT IN LISTS WPICKY_DETECT) |
| + | foreach(_ccopt IN LISTS WPICKY_DETECT) |
| # surprisingly, CHECK_C_COMPILER_FLAG needs a new variable to store each new | |
| # test result in. | |
| - | string(MAKE_C_IDENTIFIER "OPT${_CCOPT}" _optvarname) |
| + | string(MAKE_C_IDENTIFIER "OPT${_ccopt}" _optvarname) |
| # GCC only warns about unknown -Wno- options if there are also other diagnostic messages, | |
| # so test for the positive form instead | |
| - | string(REPLACE "-Wno-" "-W" _CCOPT_ON "${_CCOPT}") |
| - | check_c_compiler_flag(${_CCOPT_ON} ${_optvarname}) |
| + | string(REPLACE "-Wno-" "-W" _ccopt_on "${_ccopt}") |
| + | check_c_compiler_flag(${_ccopt_on} ${_optvarname}) |
| if(${_optvarname}) | |
| - | set(WPICKY "${WPICKY} ${_CCOPT}") |
| + | set(WPICKY "${WPICKY} ${_ccopt}") |
| endif() | |
| endforeach() | |
| endif() | |
| @@ -30,20 +30,20 @@ if(NOT DEFINED CMAKE_INSTALL_PREFIX) | |
| endif() | |
| message(${CMAKE_INSTALL_PREFIX}) | |
| - | file(READ "@CMAKE_CURRENT_BINARY_DIR@/install_manifest.txt" files) |
| - | string(REGEX REPLACE "\n" ";" files "${files}") |
| - | foreach(file ${files}) |
| - | message(STATUS "Uninstalling $ENV{DESTDIR}${file}") |
| - | if(IS_SYMLINK "$ENV{DESTDIR}${file}" OR EXISTS "$ENV{DESTDIR}${file}") |
| + | file(READ "@CMAKE_CURRENT_BINARY_DIR@/install_manifest.txt" _files) |
| + | string(REGEX REPLACE "\n" ";" _files "${_files}") |
| + | foreach(_file ${_files}) |
| + | message(STATUS "Uninstalling $ENV{DESTDIR}${_file}") |
| + | if(IS_SYMLINK "$ENV{DESTDIR}${_file}" OR EXISTS "$ENV{DESTDIR}${_file}") |
| exec_program( | |
| - | "@CMAKE_COMMAND@" ARGS "-E remove \"$ENV{DESTDIR}${file}\"" |
| + | "@CMAKE_COMMAND@" ARGS "-E remove \"$ENV{DESTDIR}${_file}\"" |
| OUTPUT_VARIABLE rm_out | |
| RETURN_VALUE rm_retval | |
| ) | |
| if(NOT "${rm_retval}" STREQUAL 0) | |
| - | message(FATAL_ERROR "Problem when removing $ENV{DESTDIR}${file}") |
| + | message(FATAL_ERROR "Problem when removing $ENV{DESTDIR}${_file}") |
| endif() | |
| else() | |
| - | message(STATUS "File $ENV{DESTDIR}${file} does not exist.") |
| + | message(STATUS "File $ENV{DESTDIR}${_file} does not exist.") |
| endif() | |
| endforeach() | |
| @@ -24,11 +24,11 @@ | |
| # by Tetetest and Sukender (Benoit Neil) | |
| # Note: By default this CMake build script detects the version of some | |
| - | # dependencies using `check_symbol_exists`. Those checks do not work |
| - | # in the case that both CURL and its dependency are included as |
| - | # sub-projects in a larger build using `FetchContent`. To support |
| - | # that case, additional variables may be defined by the parent |
| - | # project, ideally in the "extra" find package redirect file: |
| + | # dependencies using `check_symbol_exists`. Those checks do not work in |
| + | # the case that both CURL and its dependency are included as sub-projects |
| + | # in a larger build using `FetchContent`. To support that case, additional |
| + | # variables may be defined by the parent project, ideally in the "extra" |
| + | # find package redirect file: |
| # https://cmake.org/cmake/help/latest/module/FetchContent.html#integrating-with-find-package | |
| # | |
| # The following variables are available: | |
| @@ -40,8 +40,8 @@ | |
| # HAVE_ECH: ECH API checks for OpenSSL, BoringSSL or wolfSSL | |
| # | |
| # For each of the above variables, if the variable is DEFINED (either | |
| - | # to ON or OFF), the symbol detection will be skipped. If the |
| - | # variable is NOT DEFINED, the symbol detection will be performed. |
| + | # to ON or OFF), the symbol detection is skipped. If the variable is |
| + | # NOT DEFINED, the symbol detection is performed. |
| cmake_minimum_required(VERSION 3.7...3.16 FATAL_ERROR) | |
| message(STATUS "Using CMake version ${CMAKE_VERSION}") | |
| @@ -54,24 +54,16 @@ include(CheckCCompilerFlag) | |
| project(CURL C) | |
| - | file(STRINGS ${CURL_SOURCE_DIR}/include/curl/curlver.h CURL_VERSION_H_CONTENTS REGEX "#define LIBCURL_VERSION( |_NUM )") |
| + | file(STRINGS ${CURL_SOURCE_DIR}/include/curl/curlver.h _curl_version_h_contents REGEX "#define LIBCURL_VERSION( |_NUM )") |
| string(REGEX MATCH "#define LIBCURL_VERSION \"[^\"]*" | |
| - | CURL_VERSION ${CURL_VERSION_H_CONTENTS}) |
| + | CURL_VERSION ${_curl_version_h_contents}) |
| string(REGEX REPLACE "[^\"]+\"" "" CURL_VERSION ${CURL_VERSION}) | |
| string(REGEX MATCH "#define LIBCURL_VERSION_NUM 0x[0-9a-fA-F]+" | |
| - | CURL_VERSION_NUM ${CURL_VERSION_H_CONTENTS}) |
| + | CURL_VERSION_NUM ${_curl_version_h_contents}) |
| string(REGEX REPLACE "[^0]+0x" "" CURL_VERSION_NUM ${CURL_VERSION_NUM}) | |
| - | |
| - | # Setup package meta-data |
| - | # set(PACKAGE "curl") |
| message(STATUS "curl version=[${CURL_VERSION}]") | |
| - | # set(PACKAGE_TARNAME "curl") |
| - | # set(PACKAGE_NAME "curl") |
| - | # set(PACKAGE_VERSION "-") |
| - | # set(PACKAGE_STRING "curl-") |
| - | # set(PACKAGE_BUGREPORT "a suitable curl mailing list => https://curl.se/mail/") |
| - | set(OPERATING_SYSTEM "${CMAKE_SYSTEM_NAME}") |
| + | |
| if(CMAKE_C_COMPILER_TARGET) | |
| set(OS "\"${CMAKE_C_COMPILER_TARGET}\"") | |
| else() | |
| @@ -143,21 +135,21 @@ elseif(BUILD_STATIC_CURL AND NOT BUILD_STATIC_LIBS) | |
| set(BUILD_STATIC_CURL OFF) | |
| endif() | |
| - | # lib flavour selected for curl tool |
| + | # Lib flavour selected for curl tool |
| if(BUILD_STATIC_CURL) | |
| set(LIB_SELECTED_FOR_EXE ${LIB_STATIC}) | |
| else() | |
| set(LIB_SELECTED_FOR_EXE ${LIB_SHARED}) | |
| endif() | |
| - | # lib flavour selected for example and test programs. |
| + | # Lib flavour selected for example and test programs. |
| if(BUILD_SHARED_LIBS) | |
| set(LIB_SELECTED ${LIB_SHARED}) | |
| else() | |
| set(LIB_SELECTED ${LIB_STATIC}) | |
| endif() | |
| - | # initialize CURL_LIBS |
| + | # Initialize CURL_LIBS |
| set(CURL_LIBS "") | |
| set(LIBCURL_PC_REQUIRES_PRIVATE "") | |
| @@ -197,8 +189,9 @@ option(CURL_DISABLE_DOH "disables DNS-over-HTTPS" OFF) | |
| mark_as_advanced(CURL_DISABLE_DOH) | |
| option(CURL_DISABLE_FILE "disables FILE" OFF) | |
| mark_as_advanced(CURL_DISABLE_FILE) | |
| - | cmake_dependent_option(CURL_DISABLE_FORM_API "disables form api" OFF |
| - | "NOT CURL_DISABLE_MIME" ON) |
| + | cmake_dependent_option(CURL_DISABLE_FORM_API "disables form api" |
| + | OFF "NOT CURL_DISABLE_MIME" |
| + | ON) |
| mark_as_advanced(CURL_DISABLE_FORM_API) | |
| option(CURL_DISABLE_FTP "disables FTP" OFF) | |
| mark_as_advanced(CURL_DISABLE_FTP) | |
| @@ -358,7 +351,7 @@ include(CheckSymbolExists) | |
| include(CheckTypeSize) | |
| include(CheckCSourceCompiles) | |
| - | # On windows preload settings |
| + | # Preload settings on Windows |
| if(WIN32) | |
| include(${CMAKE_CURRENT_SOURCE_DIR}/CMake/Platforms/WindowsCache.cmake) | |
| endif() | |
| @@ -386,7 +379,7 @@ if(WIN32) | |
| list(APPEND CURL_LIBS "ws2_32" "bcrypt") | |
| endif() | |
| - | # check SSL libraries |
| + | # Check SSL libraries |
| option(CURL_ENABLE_SSL "Enable SSL support" ON) | |
| if(CURL_DEFAULT_SSL_BACKEND) | |
| @@ -405,11 +398,11 @@ cmake_dependent_option(CURL_USE_BEARSSL "Enable BearSSL for SSL/TLS" OFF CURL_EN | |
| cmake_dependent_option(CURL_USE_WOLFSSL "Enable wolfSSL for SSL/TLS" OFF CURL_ENABLE_SSL OFF) | |
| cmake_dependent_option(CURL_USE_GNUTLS "Enable GnuTLS for SSL/TLS" OFF CURL_ENABLE_SSL OFF) | |
| - | set(openssl_default ON) |
| + | set(_openssl_default ON) |
| if(WIN32 OR CURL_USE_SECTRANSP OR CURL_USE_SCHANNEL OR CURL_USE_MBEDTLS OR CURL_USE_WOLFSSL) | |
| - | set(openssl_default OFF) |
| + | set(_openssl_default OFF) |
| endif() | |
| - | cmake_dependent_option(CURL_USE_OPENSSL "Enable OpenSSL for SSL/TLS" ${openssl_default} CURL_ENABLE_SSL OFF) |
| + | cmake_dependent_option(CURL_USE_OPENSSL "Enable OpenSSL for SSL/TLS" ${_openssl_default} CURL_ENABLE_SSL OFF) |
| option(CURL_DISABLE_OPENSSL_AUTO_LOAD_CONFIG "Disable automatic loading of OpenSSL configuration" OFF) | |
| count_true(enabled_ssl_options_count | |
| @@ -642,7 +635,7 @@ macro(openssl_check_symbol_exists SYMBOL FILES VARIABLE EXTRA_LIBS) | |
| endif() | |
| list(APPEND CMAKE_REQUIRED_DEFINITIONS -DHAVE_UINTPTR_T) # to pull in stdint.h (as of wolfSSL v5.5.4) | |
| endif() | |
| - | if(NOT "${EXTRA_LIBS}" STREQUAL "") |
| + | if(NOT EXTRA_LIBS STREQUAL "") |
| list(APPEND CMAKE_REQUIRED_LIBRARIES "${EXTRA_LIBS}") | |
| endif() | |
| check_symbol_exists("${SYMBOL}" "${FILES}" "${VARIABLE}") | |
| @@ -821,7 +814,7 @@ if(NOT CURL_DISABLE_LDAP) | |
| set(CMAKE_LDAP_LIB "ldap" CACHE STRING "Name or full path to ldap library") | |
| set(CMAKE_LBER_LIB "lber" CACHE STRING "Name or full path to lber library") | |
| - | # Now that we know, we're not using windows LDAP... |
| + | # Now that we know, we are not using Windows LDAP... |
| if(NOT USE_WIN32_LDAP) | |
| # Check for LDAP | |
| set(CMAKE_REQUIRED_LIBRARIES ${OPENSSL_LIBRARIES}) | |
| @@ -837,34 +830,34 @@ if(NOT CURL_DISABLE_LDAP) | |
| if(CMAKE_LDAP_INCLUDE_DIR) | |
| list(APPEND CMAKE_REQUIRED_INCLUDES ${CMAKE_LDAP_INCLUDE_DIR}) | |
| endif() | |
| - | check_include_file_concat("ldap.h" HAVE_LDAP_H) |
| - | check_include_file_concat("lber.h" HAVE_LBER_H) |
| + | check_include_file_concat("ldap.h" HAVE_LDAP_H) |
| + | check_include_file_concat("lber.h" HAVE_LBER_H) |
| if(NOT HAVE_LDAP_H) | |
| message(STATUS "LDAP_H not found CURL_DISABLE_LDAP set ON") | |
| set(CURL_DISABLE_LDAP ON CACHE BOOL "" FORCE) | |
| - | set(CMAKE_REQUIRED_INCLUDES ${CMAKE_REQUIRED_INCLUDES_BAK}) #LDAP includes won't be used |
| + | set(CMAKE_REQUIRED_INCLUDES ${CMAKE_REQUIRED_INCLUDES_BAK}) # LDAP includes will not be used |
| elseif(NOT HAVE_LIBLDAP) | |
| message(STATUS "LDAP library '${CMAKE_LDAP_LIB}' not found CURL_DISABLE_LDAP set ON") | |
| set(CURL_DISABLE_LDAP ON CACHE BOOL "" FORCE) | |
| - | set(CMAKE_REQUIRED_INCLUDES ${CMAKE_REQUIRED_INCLUDES_BAK}) #LDAP includes won't be used |
| + | set(CMAKE_REQUIRED_INCLUDES ${CMAKE_REQUIRED_INCLUDES_BAK}) # LDAP includes will not be used |
| else() | |
| if(CMAKE_LDAP_INCLUDE_DIR) | |
| include_directories(${CMAKE_LDAP_INCLUDE_DIR}) | |
| endif() | |
| set(NEED_LBER_H ON) | |
| - | set(_HEADER_LIST) |
| + | set(_header_list) |
| if(WIN32) | |
| - | list(APPEND _HEADER_LIST "windows.h") |
| + | list(APPEND _header_list "windows.h") |
| endif() | |
| if(HAVE_SYS_TYPES_H) | |
| - | list(APPEND _HEADER_LIST "sys/types.h") |
| + | list(APPEND _header_list "sys/types.h") |
| endif() | |
| - | list(APPEND _HEADER_LIST "ldap.h") |
| + | list(APPEND _header_list "ldap.h") |
| - | set(_INCLUDE_STRING "") |
| - | foreach(_HEADER ${_HEADER_LIST}) |
| - | set(_INCLUDE_STRING "${_INCLUDE_STRING}#include <${_HEADER}>\n") |
| + | set(_include_string "") |
| + | foreach(_header IN LISTS _header_list) |
| + | set(_include_string "${_include_string}#include <${_header}>\n") |
| endforeach() | |
| list(APPEND CMAKE_REQUIRED_DEFINITIONS -DLDAP_DEPRECATED=1) | |
| @@ -876,7 +869,7 @@ if(NOT CURL_DISABLE_LDAP) | |
| endif() | |
| check_c_source_compiles(" | |
| - | ${_INCLUDE_STRING} |
| + | ${_include_string} |
| int main(int argc, char ** argv) | |
| { | |
| BerValue *bvp = NULL; | |
| @@ -980,7 +973,7 @@ if(CURL_USE_LIBPSL) | |
| endif() | |
| # libssh2 | |
| - | option(CURL_USE_LIBSSH2 "Use libssh2" ON) |
| + | option(CURL_USE_LIBSSH2 "Use libssh2" ON) # FIXME: default is OFF in autotools |
| mark_as_advanced(CURL_USE_LIBSSH2) | |
| set(USE_LIBSSH2 OFF) | |
| @@ -1060,7 +1053,7 @@ if(CURL_USE_GSSAPI) | |
| string(REPLACE ";" " " _COMPILER_FLAGS_STR "${GSS_COMPILER_FLAGS}") | |
| string(REPLACE ";" " " _LINKER_FLAGS_STR "${GSS_LINKER_FLAGS}") | |
| - | foreach(_dir ${GSS_LINK_DIRECTORIES}) |
| + | foreach(_dir IN LISTS GSS_LINK_DIRECTORIES) |
| set(_LINKER_FLAGS_STR "${_LINKER_FLAGS_STR} -L\"${_dir}\"") | |
| endforeach() | |
| @@ -1128,13 +1121,13 @@ endif() | |
| # | |
| if(curl_ca_bundle_supported) | |
| set(CURL_CA_BUNDLE "auto" CACHE STRING | |
| - | "Path to the CA bundle. Set 'none' to disable or 'auto' for auto-detection. Defaults to 'auto'.") |
| + | "Path to the CA bundle. Set 'none' to disable or 'auto' for auto-detection. Defaults to 'auto'.") |
| set(CURL_CA_FALLBACK OFF CACHE BOOL | |
| - | "Set ON to use built-in CA store of TLS backend. Defaults to OFF") |
| + | "Set ON to use built-in CA store of TLS backend. Defaults to OFF") |
| set(CURL_CA_PATH "auto" CACHE STRING | |
| - | "Location of default CA path. Set 'none' to disable or 'auto' for auto-detection. Defaults to 'auto'.") |
| + | "Location of default CA path. Set 'none' to disable or 'auto' for auto-detection. Defaults to 'auto'.") |
| set(CURL_CA_EMBED "" CACHE STRING | |
| - | "Path to the CA bundle to embed into the curl tool.") |
| + | "Path to the CA bundle to embed into the curl tool.") |
| if(CURL_CA_BUNDLE STREQUAL "") | |
| message(FATAL_ERROR "Invalid value of CURL_CA_BUNDLE. Use 'none', 'auto' or file path.") | |
| @@ -1170,16 +1163,16 @@ if(curl_ca_bundle_supported) | |
| # First try auto-detecting a CA bundle, then a CA path | |
| if(CURL_CA_BUNDLE_AUTODETECT) | |
| - | foreach(SEARCH_CA_BUNDLE_PATH IN ITEMS |
| + | foreach(_search_ca_bundle_path IN ITEMS |
| "/etc/ssl/certs/ca-certificates.crt" | |
| "/etc/pki/tls/certs/ca-bundle.crt" | |
| "/usr/share/ssl/certs/ca-bundle.crt" | |
| "/usr/local/share/certs/ca-root-nss.crt" | |
| "/etc/ssl/cert.pem") | |
| - | if(EXISTS "${SEARCH_CA_BUNDLE_PATH}") |
| - | message(STATUS "Found CA bundle: ${SEARCH_CA_BUNDLE_PATH}") |
| - | set(CURL_CA_BUNDLE "${SEARCH_CA_BUNDLE_PATH}" CACHE STRING |
| - | "Path to the CA bundle. Set 'none' to disable or 'auto' for auto-detection. Defaults to 'auto'.") |
| + | if(EXISTS "${_search_ca_bundle_path}") |
| + | message(STATUS "Found CA bundle: ${_search_ca_bundle_path}") |
| + | set(CURL_CA_BUNDLE "${_search_ca_bundle_path}" CACHE STRING |
| + | "Path to the CA bundle. Set 'none' to disable or 'auto' for auto-detection. Defaults to 'auto'.") |
| set(CURL_CA_BUNDLE_SET TRUE CACHE BOOL "Path to the CA bundle has been set") | |
| break() | |
| endif() | |
| @@ -1187,13 +1180,13 @@ if(curl_ca_bundle_supported) | |
| endif() | |
| if(CURL_CA_PATH_AUTODETECT AND NOT CURL_CA_PATH_SET) | |
| - | set(SEARCH_CA_PATH "/etc/ssl/certs") |
| - | file(GLOB curl_ca_files_found "${SEARCH_CA_PATH}/[0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f].0") |
| - | if(curl_ca_files_found) |
| - | unset(curl_ca_files_found) |
| - | message(STATUS "Found CA path: ${SEARCH_CA_PATH}") |
| - | set(CURL_CA_PATH "${SEARCH_CA_PATH}" CACHE STRING |
| - | "Location of default CA path. Set 'none' to disable or 'auto' for auto-detection. Defaults to 'auto'.") |
| + | set(_search_ca_path "/etc/ssl/certs") |
| + | file(GLOB _curl_ca_files_found "${_search_ca_path}/[0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f].0") |
| + | if(_curl_ca_files_found) |
| + | unset(_curl_ca_files_found) |
| + | message(STATUS "Found CA path: ${_search_ca_path}") |
| + | set(CURL_CA_PATH "${_search_ca_path}" CACHE STRING |
| + | "Location of default CA path. Set 'none' to disable or 'auto' for auto-detection. Defaults to 'auto'.") |
| set(CURL_CA_PATH_SET TRUE CACHE BOOL "Path to the CA bundle has been set") | |
| endif() | |
| endif() | |
| @@ -1217,16 +1210,16 @@ if(WIN32) | |
| endif() | |
| if(WIN32) | |
| - | # detect actual value of _WIN32_WINNT and store as HAVE_WIN32_WINNT |
| + | # Detect actual value of _WIN32_WINNT and store as HAVE_WIN32_WINNT |
| curl_internal_test(HAVE_WIN32_WINNT) | |
| if(HAVE_WIN32_WINNT) | |
| - | string(REGEX MATCH ".*_WIN32_WINNT=0x[0-9a-fA-F]+" OUTPUT "${OUTPUT}") |
| - | string(REGEX REPLACE ".*_WIN32_WINNT=" "" OUTPUT "${OUTPUT}") |
| - | string(REGEX REPLACE "0x([0-9a-f][0-9a-f][0-9a-f])$" "0x0\\1" OUTPUT "${OUTPUT}") # pad to 4 digits |
| - | string(TOLOWER "${OUTPUT}" HAVE_WIN32_WINNT) |
| + | string(REGEX MATCH ".*_WIN32_WINNT=0x[0-9a-fA-F]+" CURL_TEST_OUTPUT "${CURL_TEST_OUTPUT}") |
| + | string(REGEX REPLACE ".*_WIN32_WINNT=" "" CURL_TEST_OUTPUT "${CURL_TEST_OUTPUT}") |
| + | string(REGEX REPLACE "0x([0-9a-f][0-9a-f][0-9a-f])$" "0x0\\1" CURL_TEST_OUTPUT "${CURL_TEST_OUTPUT}") # pad to 4 digits |
| + | string(TOLOWER "${CURL_TEST_OUTPUT}" HAVE_WIN32_WINNT) |
| message(STATUS "Found _WIN32_WINNT=${HAVE_WIN32_WINNT}") | |
| endif() | |
| - | # avoid storing HAVE_WIN32_WINNT in CMake cache |
| + | # Avoid storing HAVE_WIN32_WINNT in CMake cache |
| unset(HAVE_WIN32_WINNT CACHE) | |
| if(HAVE_WIN32_WINNT) | |
| @@ -1235,7 +1228,7 @@ if(WIN32) | |
| message(FATAL_ERROR "Building for Windows XP or newer is required.") | |
| endif() | |
| - | # pre-fill detection results based on target OS version |
| + | # Pre-fill detection results based on target OS version |
| if(MINGW OR MSVC) | |
| if(HAVE_WIN32_WINNT STRLESS "0x0600") | |
| set(HAVE_INET_NTOP 0) | |
| @@ -1328,92 +1321,92 @@ elseif(HAVE_LIBSOCKET) | |
| set(CMAKE_REQUIRED_LIBRARIES socket) | |
| endif() | |
| - | check_symbol_exists(fnmatch "${CURL_INCLUDES};fnmatch.h" HAVE_FNMATCH) |
| - | check_symbol_exists(basename "${CURL_INCLUDES};string.h" HAVE_BASENAME) |
| - | check_symbol_exists(opendir "${CURL_INCLUDES};dirent.h" HAVE_OPENDIR) |
| - | check_symbol_exists(socket "${CURL_INCLUDES}" HAVE_SOCKET) |
| - | check_symbol_exists(sched_yield "${CURL_INCLUDES};sched.h" HAVE_SCHED_YIELD) |
| - | check_symbol_exists(socketpair "${CURL_INCLUDES}" HAVE_SOCKETPAIR) |
| - | check_symbol_exists(recv "${CURL_INCLUDES}" HAVE_RECV) |
| - | check_symbol_exists(send "${CURL_INCLUDES}" HAVE_SEND) |
| - | check_symbol_exists(sendmsg "${CURL_INCLUDES}" HAVE_SENDMSG) |
| - | check_symbol_exists(select "${CURL_INCLUDES}" HAVE_SELECT) |
| - | check_symbol_exists(strdup "${CURL_INCLUDES};string.h" HAVE_STRDUP) |
| - | check_symbol_exists(strtok_r "${CURL_INCLUDES};string.h" HAVE_STRTOK_R) |
| - | check_symbol_exists(strcasecmp "${CURL_INCLUDES};string.h" HAVE_STRCASECMP) |
| - | check_symbol_exists(stricmp "${CURL_INCLUDES};string.h" HAVE_STRICMP) |
| - | check_symbol_exists(strcmpi "${CURL_INCLUDES};string.h" HAVE_STRCMPI) |
| - | check_symbol_exists(memrchr "${CURL_INCLUDES};string.h" HAVE_MEMRCHR) |
| - | check_symbol_exists(alarm "${CURL_INCLUDES}" HAVE_ALARM) |
| - | check_symbol_exists(arc4random "${CURL_INCLUDES};stdlib.h" HAVE_ARC4RANDOM) |
| - | check_symbol_exists(fcntl "${CURL_INCLUDES}" HAVE_FCNTL) |
| - | check_symbol_exists(getppid "${CURL_INCLUDES}" HAVE_GETPPID) |
| - | check_symbol_exists(utimes "${CURL_INCLUDES}" HAVE_UTIMES) |
| - | |
| - | check_symbol_exists(gettimeofday "${CURL_INCLUDES}" HAVE_GETTIMEOFDAY) |
| - | check_symbol_exists(closesocket "${CURL_INCLUDES}" HAVE_CLOSESOCKET) |
| - | check_symbol_exists(sigsetjmp "${CURL_INCLUDES};setjmp.h" HAVE_SIGSETJMP) |
| - | check_symbol_exists(getpass_r "${CURL_INCLUDES}" HAVE_GETPASS_R) |
| - | check_symbol_exists(getpwuid "${CURL_INCLUDES}" HAVE_GETPWUID) |
| - | check_symbol_exists(getpwuid_r "${CURL_INCLUDES}" HAVE_GETPWUID_R) |
| - | check_symbol_exists(geteuid "${CURL_INCLUDES}" HAVE_GETEUID) |
| - | check_symbol_exists(utime "${CURL_INCLUDES}" HAVE_UTIME) |
| - | check_symbol_exists(gmtime_r "${CURL_INCLUDES};stdlib.h;time.h" HAVE_GMTIME_R) |
| + | check_symbol_exists(fnmatch "${CURL_INCLUDES};fnmatch.h" HAVE_FNMATCH) |
| + | check_symbol_exists(basename "${CURL_INCLUDES};string.h" HAVE_BASENAME) |
| + | check_symbol_exists(opendir "${CURL_INCLUDES};dirent.h" HAVE_OPENDIR) |
| + | check_symbol_exists(socket "${CURL_INCLUDES}" HAVE_SOCKET) |
| + | check_symbol_exists(sched_yield "${CURL_INCLUDES};sched.h" HAVE_SCHED_YIELD) |
| + | check_symbol_exists(socketpair "${CURL_INCLUDES}" HAVE_SOCKETPAIR) |
| + | check_symbol_exists(recv "${CURL_INCLUDES}" HAVE_RECV) |
| + | check_symbol_exists(send "${CURL_INCLUDES}" HAVE_SEND) |
| + | check_symbol_exists(sendmsg "${CURL_INCLUDES}" HAVE_SENDMSG) |
| + | check_symbol_exists(select "${CURL_INCLUDES}" HAVE_SELECT) |
| + | check_symbol_exists(strdup "${CURL_INCLUDES};string.h" HAVE_STRDUP) |
| + | check_symbol_exists(strtok_r "${CURL_INCLUDES};string.h" HAVE_STRTOK_R) |
| + | check_symbol_exists(strcasecmp "${CURL_INCLUDES};string.h" HAVE_STRCASECMP) |
| + | check_symbol_exists(stricmp "${CURL_INCLUDES};string.h" HAVE_STRICMP) |
| + | check_symbol_exists(strcmpi "${CURL_INCLUDES};string.h" HAVE_STRCMPI) |
| + | check_symbol_exists(memrchr "${CURL_INCLUDES};string.h" HAVE_MEMRCHR) |
| + | check_symbol_exists(alarm "${CURL_INCLUDES}" HAVE_ALARM) |
| + | check_symbol_exists(arc4random "${CURL_INCLUDES};stdlib.h" HAVE_ARC4RANDOM) |
| + | check_symbol_exists(fcntl "${CURL_INCLUDES}" HAVE_FCNTL) |
| + | check_symbol_exists(getppid "${CURL_INCLUDES}" HAVE_GETPPID) |
| + | check_symbol_exists(utimes "${CURL_INCLUDES}" HAVE_UTIMES) |
| + | |
| + | check_symbol_exists(gettimeofday "${CURL_INCLUDES}" HAVE_GETTIMEOFDAY) |
| + | check_symbol_exists(closesocket "${CURL_INCLUDES}" HAVE_CLOSESOCKET) |
| + | check_symbol_exists(sigsetjmp "${CURL_INCLUDES};setjmp.h" HAVE_SIGSETJMP) |
| + | check_symbol_exists(getpass_r "${CURL_INCLUDES}" HAVE_GETPASS_R) |
| + | check_symbol_exists(getpwuid "${CURL_INCLUDES}" HAVE_GETPWUID) |
| + | check_symbol_exists(getpwuid_r "${CURL_INCLUDES}" HAVE_GETPWUID_R) |
| + | check_symbol_exists(geteuid "${CURL_INCLUDES}" HAVE_GETEUID) |
| + | check_symbol_exists(utime "${CURL_INCLUDES}" HAVE_UTIME) |
| + | check_symbol_exists(gmtime_r "${CURL_INCLUDES};stdlib.h;time.h" HAVE_GMTIME_R) |
| check_symbol_exists(gethostbyname_r "${CURL_INCLUDES}" HAVE_GETHOSTBYNAME_R) | |
| - | check_symbol_exists(signal "${CURL_INCLUDES};signal.h" HAVE_SIGNAL) |
| - | check_symbol_exists(strtoll "${CURL_INCLUDES};stdlib.h" HAVE_STRTOLL) |
| - | check_symbol_exists(strerror_r "${CURL_INCLUDES};stdlib.h;string.h" HAVE_STRERROR_R) |
| - | check_symbol_exists(sigaction "signal.h" HAVE_SIGACTION) |
| - | check_symbol_exists(siginterrupt "${CURL_INCLUDES};signal.h" HAVE_SIGINTERRUPT) |
| - | check_symbol_exists(getaddrinfo "${CURL_INCLUDES};stdlib.h;string.h" HAVE_GETADDRINFO) |
| - | check_symbol_exists(getifaddrs "${CURL_INCLUDES};stdlib.h" HAVE_GETIFADDRS) |
| - | check_symbol_exists(freeaddrinfo "${CURL_INCLUDES}" HAVE_FREEADDRINFO) |
| - | check_symbol_exists(pipe "${CURL_INCLUDES}" HAVE_PIPE) |
| - | check_symbol_exists(eventfd "${CURL_INCLUDES};sys/eventfd.h" HAVE_EVENTFD) |
| - | check_symbol_exists(ftruncate "${CURL_INCLUDES}" HAVE_FTRUNCATE) |
| - | check_symbol_exists(_fseeki64 "${CURL_INCLUDES};stdio.h" HAVE__FSEEKI64) |
| - | check_symbol_exists(getpeername "${CURL_INCLUDES}" HAVE_GETPEERNAME) |
| - | check_symbol_exists(getsockname "${CURL_INCLUDES}" HAVE_GETSOCKNAME) |
| - | check_symbol_exists(if_nametoindex "${CURL_INCLUDES}" HAVE_IF_NAMETOINDEX) |
| - | check_symbol_exists(getrlimit "${CURL_INCLUDES}" HAVE_GETRLIMIT) |
| - | check_symbol_exists(setlocale "${CURL_INCLUDES}" HAVE_SETLOCALE) |
| - | check_symbol_exists(setmode "${CURL_INCLUDES}" HAVE_SETMODE) |
| - | check_symbol_exists(setrlimit "${CURL_INCLUDES}" HAVE_SETRLIMIT) |
| + | check_symbol_exists(signal "${CURL_INCLUDES};signal.h" HAVE_SIGNAL) |
| + | check_symbol_exists(strtoll "${CURL_INCLUDES};stdlib.h" HAVE_STRTOLL) |
| + | check_symbol_exists(strerror_r "${CURL_INCLUDES};stdlib.h;string.h" HAVE_STRERROR_R) |
| + | check_symbol_exists(sigaction "signal.h" HAVE_SIGACTION) |
| + | check_symbol_exists(siginterrupt "${CURL_INCLUDES};signal.h" HAVE_SIGINTERRUPT) |
| + | check_symbol_exists(getaddrinfo "${CURL_INCLUDES};stdlib.h;string.h" HAVE_GETADDRINFO) |
| + | check_symbol_exists(getifaddrs "${CURL_INCLUDES};stdlib.h" HAVE_GETIFADDRS) |
| + | check_symbol_exists(freeaddrinfo "${CURL_INCLUDES}" HAVE_FREEADDRINFO) |
| + | check_symbol_exists(pipe "${CURL_INCLUDES}" HAVE_PIPE) |
| + | check_symbol_exists(eventfd "${CURL_INCLUDES};sys/eventfd.h" HAVE_EVENTFD) |
| + | check_symbol_exists(ftruncate "${CURL_INCLUDES}" HAVE_FTRUNCATE) |
| + | check_symbol_exists(_fseeki64 "${CURL_INCLUDES};stdio.h" HAVE__FSEEKI64) |
| + | check_symbol_exists(getpeername "${CURL_INCLUDES}" HAVE_GETPEERNAME) |
| + | check_symbol_exists(getsockname "${CURL_INCLUDES}" HAVE_GETSOCKNAME) |
| + | check_symbol_exists(if_nametoindex "${CURL_INCLUDES}" HAVE_IF_NAMETOINDEX) |
| + | check_symbol_exists(getrlimit "${CURL_INCLUDES}" HAVE_GETRLIMIT) |
| + | check_symbol_exists(setlocale "${CURL_INCLUDES}" HAVE_SETLOCALE) |
| + | check_symbol_exists(setmode "${CURL_INCLUDES}" HAVE_SETMODE) |
| + | check_symbol_exists(setrlimit "${CURL_INCLUDES}" HAVE_SETRLIMIT) |
| if(NOT MSVC OR (MSVC_VERSION GREATER_EQUAL 1900)) | |
| - | # earlier MSVC compilers had faulty snprintf implementations |
| - | check_symbol_exists(snprintf "stdio.h" HAVE_SNPRINTF) |
| + | # Earlier MSVC compilers had faulty snprintf implementations |
| + | check_symbol_exists(snprintf "stdio.h" HAVE_SNPRINTF) |
| endif() | |
| check_function_exists(mach_absolute_time HAVE_MACH_ABSOLUTE_TIME) | |
| - | check_symbol_exists(inet_ntop "${CURL_INCLUDES};stdlib.h;string.h" HAVE_INET_NTOP) |
| + | check_symbol_exists(inet_ntop "${CURL_INCLUDES};stdlib.h;string.h" HAVE_INET_NTOP) |
| if(MSVC AND (MSVC_VERSION LESS_EQUAL 1600)) | |
| set(HAVE_INET_NTOP OFF) | |
| endif() | |
| - | check_symbol_exists(inet_pton "${CURL_INCLUDES};stdlib.h;string.h" HAVE_INET_PTON) |
| + | check_symbol_exists(inet_pton "${CURL_INCLUDES};stdlib.h;string.h" HAVE_INET_PTON) |
| check_symbol_exists(fsetxattr "${CURL_INCLUDES}" HAVE_FSETXATTR) | |
| if(HAVE_FSETXATTR) | |
| - | foreach(CURL_TEST HAVE_FSETXATTR_5 HAVE_FSETXATTR_6) |
| - | curl_internal_test(${CURL_TEST}) |
| + | foreach(_curl_test IN ITEMS HAVE_FSETXATTR_5 HAVE_FSETXATTR_6) |
| + | curl_internal_test(${_curl_test}) |
| endforeach() | |
| endif() | |
| - | set(CMAKE_EXTRA_INCLUDE_FILES "sys/socket.h") |
| - | check_type_size("sa_family_t" SIZEOF_SA_FAMILY_T) |
| - | set(HAVE_SA_FAMILY_T ${HAVE_SIZEOF_SA_FAMILY_T}) |
| - | set(CMAKE_EXTRA_INCLUDE_FILES "") |
| + | set(CMAKE_EXTRA_INCLUDE_FILES "sys/socket.h") |
| + | check_type_size("sa_family_t" SIZEOF_SA_FAMILY_T) |
| + | set(HAVE_SA_FAMILY_T ${HAVE_SIZEOF_SA_FAMILY_T}) |
| + | set(CMAKE_EXTRA_INCLUDE_FILES "") |
| if(WIN32) | |
| - | set(CMAKE_EXTRA_INCLUDE_FILES "winsock2.h") |
| - | check_type_size("ADDRESS_FAMILY" SIZEOF_ADDRESS_FAMILY) |
| - | set(HAVE_ADDRESS_FAMILY ${HAVE_SIZEOF_ADDRESS_FAMILY}) |
| - | set(CMAKE_EXTRA_INCLUDE_FILES "") |
| + | set(CMAKE_EXTRA_INCLUDE_FILES "winsock2.h") |
| + | check_type_size("ADDRESS_FAMILY" SIZEOF_ADDRESS_FAMILY) |
| + | set(HAVE_ADDRESS_FAMILY ${HAVE_SIZEOF_ADDRESS_FAMILY}) |
| + | set(CMAKE_EXTRA_INCLUDE_FILES "") |
| endif() | |
| # Do curl specific tests | |
| - | foreach(CURL_TEST |
| + | foreach(_curl_test IN ITEMS |
| HAVE_FCNTL_O_NONBLOCK | |
| HAVE_IOCTLSOCKET | |
| HAVE_IOCTLSOCKET_CAMEL | |
| @@ -1435,34 +1428,34 @@ foreach(CURL_TEST | |
| HAVE_FILE_OFFSET_BITS | |
| HAVE_ATOMIC | |
| ) | |
| - | curl_internal_test(${CURL_TEST}) |
| + | curl_internal_test(${_curl_test}) |
| endforeach() | |
| if(HAVE_FILE_OFFSET_BITS) | |
| set(_FILE_OFFSET_BITS 64) | |
| set(CMAKE_REQUIRED_FLAGS "-D_FILE_OFFSET_BITS=64") | |
| endif() | |
| - | check_type_size("off_t" SIZEOF_OFF_T) |
| + | check_type_size("off_t" SIZEOF_OFF_T) |
| # fseeko may not exist with _FILE_OFFSET_BITS=64 but can exist with | |
| # _FILE_OFFSET_BITS unset or 32 (e.g. Android ARMv7 with NDK 26b and API level < 24) | |
| # so we need to test fseeko after testing for _FILE_OFFSET_BITS | |
| - | check_symbol_exists(fseeko "${CURL_INCLUDES};stdio.h" HAVE_FSEEKO) |
| + | check_symbol_exists(fseeko "${CURL_INCLUDES};stdio.h" HAVE_FSEEKO) |
| if(HAVE_FSEEKO) | |
| set(HAVE_DECL_FSEEKO 1) | |
| endif() | |
| - | # include this header to get the type |
| + | # Include this header to get the type |
| set(CMAKE_REQUIRED_INCLUDES "${CURL_SOURCE_DIR}/include") | |
| set(CMAKE_EXTRA_INCLUDE_FILES "curl/system.h") | |
| - | check_type_size("curl_off_t" SIZEOF_CURL_OFF_T) |
| + | check_type_size("curl_off_t" SIZEOF_CURL_OFF_T) |
| set(CMAKE_EXTRA_INCLUDE_FILES "curl/curl.h") | |
| - | check_type_size("curl_socket_t" SIZEOF_CURL_SOCKET_T) |
| + | check_type_size("curl_socket_t" SIZEOF_CURL_SOCKET_T) |
| set(CMAKE_EXTRA_INCLUDE_FILES "") | |
| if(NOT WIN32 AND NOT CMAKE_CROSSCOMPILING) | |
| - | # on not-Windows and not-crosscompiling, check for writable argv[] |
| + | # On non-Windows and not cross-compiling, check for writable argv[] |
| include(CheckCSourceRuns) | |
| check_c_source_runs(" | |
| int main(int argc, char **argv) | |
| @@ -1485,33 +1478,33 @@ if(ENABLE_WEBSOCKETS) | |
| endif() | |
| endif() | |
| - | foreach(CURL_TEST |
| + | foreach(_curl_test IN ITEMS |
| HAVE_GLIBC_STRERROR_R | |
| HAVE_POSIX_STRERROR_R | |
| ) | |
| - | curl_internal_test(${CURL_TEST}) |
| + | curl_internal_test(${_curl_test}) |
| endforeach() | |
| # Check for reentrant | |
| - | foreach(CURL_TEST |
| + | foreach(_curl_test IN ITEMS |
| HAVE_GETHOSTBYNAME_R_3 | |
| HAVE_GETHOSTBYNAME_R_5 | |
| HAVE_GETHOSTBYNAME_R_6) | |
| - | if(NOT ${CURL_TEST}) |
| - | if(${CURL_TEST}_REENTRANT) |
| + | if(NOT ${_curl_test}) |
| + | if(${_curl_test}_REENTRANT) |
| set(NEED_REENTRANT 1) | |
| endif() | |
| endif() | |
| endforeach() | |
| if(NEED_REENTRANT) | |
| - | foreach(CURL_TEST |
| + | foreach(_curl_test IN ITEMS |
| HAVE_GETHOSTBYNAME_R_3 | |
| HAVE_GETHOSTBYNAME_R_5 | |
| HAVE_GETHOSTBYNAME_R_6) | |
| - | set(${CURL_TEST} 0) |
| - | if(${CURL_TEST}_REENTRANT) |
| - | set(${CURL_TEST} 1) |
| + | set(${_curl_test} 0) |
| + | if(${_curl_test}_REENTRANT) |
| + | set(${_curl_test} 1) |
| endif() | |
| endforeach() | |
| endif() | |
| @@ -1600,7 +1593,7 @@ if(CURL_WERROR) | |
| if(MSVC_VERSION) | |
| set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} /WX") | |
| else() | |
| - | # this assumes clang or gcc style options |
| + | # This assumes clang or gcc style options |
| set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Werror") | |
| endif() | |
| endif() | |
| @@ -1617,7 +1610,7 @@ if(CURL_LTO) | |
| if(CURL_HAS_LTO) | |
| message(STATUS "LTO supported and enabled") | |
| else() | |
| - | message(FATAL_ERROR "LTO was requested - but compiler doesn't support it\n${CURL_LTO_ERROR}") |
| + | message(FATAL_ERROR "LTO was requested - but compiler does not support it\n${CURL_LTO_ERROR}") |
| endif() | |
| endif() | |
| @@ -1626,24 +1619,24 @@ endif() | |
| # (= regenerate it). | |
| function(transform_makefile_inc INPUT_FILE OUTPUT_FILE) | |
| file(STRINGS "${INPUT_FILE}" _makefile_inc_lines) | |
| - | set(MAKEFILE_INC_TEXT "") |
| + | set(_makefile_inc_text "") |
| foreach(_line IN LISTS _makefile_inc_lines) | |
| if(_line MATCHES "### USE SIMPLE LIST ASSIGMENTS ABOVE THIS LINE ###") | |
| break() | |
| endif() | |
| - | set(MAKEFILE_INC_TEXT "${MAKEFILE_INC_TEXT}${_line}\n") |
| + | set(_makefile_inc_text "${_makefile_inc_text}${_line}\n") |
| endforeach() | |
| - | string(REPLACE "$(top_srcdir)" "\${CURL_SOURCE_DIR}" MAKEFILE_INC_TEXT ${MAKEFILE_INC_TEXT}) |
| - | string(REPLACE "$(top_builddir)" "\${CURL_BINARY_DIR}" MAKEFILE_INC_TEXT ${MAKEFILE_INC_TEXT}) |
| + | string(REPLACE "$(top_srcdir)" "\${CURL_SOURCE_DIR}" _makefile_inc_text ${_makefile_inc_text}) |
| + | string(REPLACE "$(top_builddir)" "\${CURL_BINARY_DIR}" _makefile_inc_text ${_makefile_inc_text}) |
| - | string(REGEX REPLACE "\\\\\n" "!π!α!" MAKEFILE_INC_TEXT ${MAKEFILE_INC_TEXT}) |
| - | string(REGEX REPLACE "([a-zA-Z_][a-zA-Z0-9_]*)[\t ]*=[\t ]*([^\n]*)" "SET(\\1 \\2)" MAKEFILE_INC_TEXT ${MAKEFILE_INC_TEXT}) |
| - | string(REPLACE "!π!α!" "\n" MAKEFILE_INC_TEXT ${MAKEFILE_INC_TEXT}) |
| + | string(REGEX REPLACE "\\\\\n" "!π!α!" _makefile_inc_text ${_makefile_inc_text}) |
| + | string(REGEX REPLACE "([a-zA-Z_][a-zA-Z0-9_]*)[\t ]*=[\t ]*([^\n]*)" "SET(\\1 \\2)" _makefile_inc_text ${_makefile_inc_text}) |
| + | string(REPLACE "!π!α!" "\n" _makefile_inc_text ${_makefile_inc_text}) |
| - | string(REGEX REPLACE "\\$\\(([a-zA-Z_][a-zA-Z0-9_]*)\\)" "\${\\1}" MAKEFILE_INC_TEXT ${MAKEFILE_INC_TEXT}) # Replace $() with ${} |
| - | string(REGEX REPLACE "@([a-zA-Z_][a-zA-Z0-9_]*)@" "\${\\1}" MAKEFILE_INC_TEXT ${MAKEFILE_INC_TEXT}) # Replace @@ with ${}, even if that may not be read by CMake scripts. |
| - | file(WRITE ${OUTPUT_FILE} ${MAKEFILE_INC_TEXT}) |
| + | string(REGEX REPLACE "\\$\\(([a-zA-Z_][a-zA-Z0-9_]*)\\)" "\${\\1}" _makefile_inc_text ${_makefile_inc_text}) # Replace $() with ${} |
| + | string(REGEX REPLACE "@([a-zA-Z_][a-zA-Z0-9_]*)@" "\${\\1}" _makefile_inc_text ${_makefile_inc_text}) # Replace @@ with ${}, even if that may not be read by CMake scripts. |
| + | file(WRITE ${OUTPUT_FILE} ${_makefile_inc_text}) |
| set_property(DIRECTORY APPEND PROPERTY CMAKE_CONFIGURE_DEPENDS "${INPUT_FILE}") | |
| endfunction() | |
| @@ -1651,9 +1644,9 @@ include(GNUInstallDirs) | |
| set(CURL_INSTALL_CMAKE_DIR ${CMAKE_INSTALL_LIBDIR}/cmake/${PROJECT_NAME}) | |
| set(TARGETS_EXPORT_NAME "${PROJECT_NAME}Targets") | |
| - | set(generated_dir "${CMAKE_CURRENT_BINARY_DIR}/generated") |
| - | set(project_config "${generated_dir}/${PROJECT_NAME}Config.cmake") |
| - | set(version_config "${generated_dir}/${PROJECT_NAME}ConfigVersion.cmake") |
| + | set(_generated_dir "${CMAKE_CURRENT_BINARY_DIR}/generated") |
| + | set(_project_config "${_generated_dir}/${PROJECT_NAME}Config.cmake") |
| + | set(_version_config "${_generated_dir}/${PROJECT_NAME}ConfigVersion.cmake") |
| cmake_dependent_option(BUILD_TESTING "Build tests" | |
| ON "PERL_FOUND;NOT CURL_DISABLE_TESTS" | |
| @@ -1684,11 +1677,11 @@ if(ENABLE_DIST_TEST) | |
| transform_makefile_inc("Makefile.am" "${CMAKE_CURRENT_BINARY_DIR}/Makefile.am.cmake") | |
| include(${CMAKE_CURRENT_BINARY_DIR}/Makefile.am.cmake) | |
| - | file(GLOB_RECURSE curl_cmake_files_found RELATIVE "${CMAKE_CURRENT_SOURCE_DIR}" |
| + | file(GLOB_RECURSE _curl_cmake_files_found RELATIVE "${CMAKE_CURRENT_SOURCE_DIR}" |
| "${CMAKE_CURRENT_SOURCE_DIR}/CMake/*.cmake" | |
| "${CMAKE_CURRENT_SOURCE_DIR}/CMake/*.in") | |
| - | foreach(_item IN LISTS curl_cmake_files_found) |
| + | foreach(_item IN LISTS _curl_cmake_files_found) |
| if(NOT _item IN_LIST CMAKE_DIST) | |
| message(FATAL_ERROR "Source file missing from the Makefile.am CMAKE_DIST list: ${_item}") | |
| endif() | |
| @@ -1698,16 +1691,16 @@ endif() | |
| if(NOT CURL_DISABLE_INSTALL) | |
| install(FILES "${PROJECT_SOURCE_DIR}/scripts/mk-ca-bundle.pl" | |
| - | DESTINATION ${CMAKE_INSTALL_BINDIR} |
| - | PERMISSIONS |
| - | OWNER_READ OWNER_WRITE OWNER_EXECUTE |
| - | GROUP_READ GROUP_EXECUTE |
| - | WORLD_READ WORLD_EXECUTE) |
| + | DESTINATION ${CMAKE_INSTALL_BINDIR} |
| + | PERMISSIONS |
| + | OWNER_READ OWNER_WRITE OWNER_EXECUTE |
| + | GROUP_READ GROUP_EXECUTE |
| + | WORLD_READ WORLD_EXECUTE) |
| # Helper to populate a list (_items) with a label when conditions | |
| # (the remaining args) are satisfied | |
| macro(_add_if label) | |
| - | # needs to be a macro to allow this indirection |
| + | # Needs to be a macro to allow this indirection |
| if(${ARGN}) | |
| set(_items ${_items} "${label}") | |
| endif() | |
| @@ -1766,7 +1759,7 @@ if(NOT CURL_DISABLE_INSTALL) | |
| endif() | |
| string(REPLACE ";" " " SUPPORT_PROTOCOLS "${_items}") | |
| string(TOLOWER "${SUPPORT_PROTOCOLS}" SUPPORT_PROTOCOLS_LOWER) | |
| - | message(STATUS "Protocols: ${SUPPORT_PROTOCOLS_LOWER}") |
| + | message("Protocols: ${SUPPORT_PROTOCOLS_LOWER}") |
| # Clear list and try to detect available features | |
| set(_items) | |
| @@ -1818,7 +1811,7 @@ if(NOT CURL_DISABLE_INSTALL) | |
| endif() | |
| endif() | |
| string(REPLACE ";" " " SUPPORT_FEATURES "${_items}") | |
| - | message(STATUS "Features: ${SUPPORT_FEATURES}") |
| + | message("Features: ${SUPPORT_FEATURES}") |
| # Clear list and collect SSL backends | |
| set(_items) | |
| @@ -1845,7 +1838,7 @@ if(NOT CURL_DISABLE_INSTALL) | |
| # curl-config needs the following options to be set. | |
| set(CC "${CMAKE_C_COMPILER}") | |
| - | # TODO probably put a -D... options here? |
| + | # TODO: probably put a -D... options here? |
| set(CONFIGURE_OPTIONS "") | |
| set(CURLVERSION "${CURL_VERSION}") | |
| set(exec_prefix "\${prefix}") | |
| @@ -1860,7 +1853,7 @@ if(NOT CURL_DISABLE_INSTALL) | |
| set(_libcurl_libs_dirs) | |
| # To avoid getting unnecessary -L options for known system directories, | |
| # _libcurl_libs_dirs is seeded with them. | |
| - | foreach(_libdir ${CMAKE_SYSTEM_PREFIX_PATH}) |
| + | foreach(_libdir IN LISTS CMAKE_SYSTEM_PREFIX_PATH) |
| if(_libdir MATCHES "/$") | |
| set(_libdir "${_libdir}lib") | |
| else() | |
| @@ -1877,13 +1870,13 @@ if(NOT CURL_DISABLE_INSTALL) | |
| endif() | |
| endforeach() | |
| - | foreach(_lib ${CMAKE_C_IMPLICIT_LINK_LIBRARIES} ${CURL_LIBS}) |
| + | foreach(_lib IN LISTS CMAKE_C_IMPLICIT_LINK_LIBRARIES CURL_LIBS) |
| if(TARGET "${_lib}") | |
| set(_libname "${_lib}") | |
| get_target_property(_imported "${_libname}" IMPORTED) | |
| if(NOT _imported) | |
| # Reading the LOCATION property on non-imported target will error out. | |
| - | # Assume the user won't need this information in the .pc file. |
| + | # Assume the user will not need this information in the .pc file. |
| continue() | |
| endif() | |
| get_target_property(_lib "${_libname}" LOCATION) | |
| @@ -1893,7 +1886,7 @@ if(NOT CURL_DISABLE_INSTALL) | |
| endif() | |
| endif() | |
| if(_lib MATCHES "^-") | |
| - | set(LIBCURL_LIBS "${LIBCURL_LIBS} ${_lib}") |
| + | set(LIBCURL_LIBS "${LIBCURL_LIBS} ${_lib}") |
| elseif(_lib MATCHES ".*/.*") | |
| # This gets a bit more complex, because we want to specify the | |
| # directory separately, and only once per directory | |
| @@ -1903,15 +1896,15 @@ if(NOT CURL_DISABLE_INSTALL) | |
| list(FIND _libcurl_libs_dirs "${_libdir}" _libdir_index) | |
| if(_libdir_index LESS 0) | |
| list(APPEND _libcurl_libs_dirs "${_libdir}") | |
| - | set(LIBCURL_LIBS "${LIBCURL_LIBS} -L${_libdir}") |
| + | set(LIBCURL_LIBS "${LIBCURL_LIBS} -L${_libdir}") |
| endif() | |
| string(REGEX REPLACE "^lib" "" _libname "${_libname}") | |
| - | set(LIBCURL_LIBS "${LIBCURL_LIBS} -l${_libname}") |
| + | set(LIBCURL_LIBS "${LIBCURL_LIBS} -l${_libname}") |
| else() | |
| - | set(LIBCURL_LIBS "${LIBCURL_LIBS} ${_lib}") |
| + | set(LIBCURL_LIBS "${LIBCURL_LIBS} ${_lib}") |
| endif() | |
| else() | |
| - | set(LIBCURL_LIBS "${LIBCURL_LIBS} -l${_lib}") |
| + | set(LIBCURL_LIBS "${LIBCURL_LIBS} -l${_lib}") |
| endif() | |
| endforeach() | |
| @@ -1923,29 +1916,29 @@ if(NOT CURL_DISABLE_INSTALL) | |
| # Merge pkg-config private fields into public ones when static-only | |
| if(BUILD_SHARED_LIBS) | |
| - | set(ENABLE_SHARED "yes") |
| - | set(LIBCURL_PC_REQUIRES "") |
| - | set(LIBCURL_NO_SHARED "") |
| + | set(ENABLE_SHARED "yes") |
| + | set(LIBCURL_PC_REQUIRES "") |
| + | set(LIBCURL_NO_SHARED "") |
| set(CPPFLAG_CURL_STATICLIB "") | |
| else() | |
| - | set(ENABLE_SHARED "no") |
| - | set(LIBCURL_PC_REQUIRES "${LIBCURL_PC_REQUIRES_PRIVATE}") |
| - | set(LIBCURL_NO_SHARED "${LIBCURL_LIBS}") |
| + | set(ENABLE_SHARED "no") |
| + | set(LIBCURL_PC_REQUIRES "${LIBCURL_PC_REQUIRES_PRIVATE}") |
| + | set(LIBCURL_NO_SHARED "${LIBCURL_LIBS}") |
| set(CPPFLAG_CURL_STATICLIB "${LIBCURL_PC_CFLAGS_PRIVATE}") | |
| endif() | |
| if(BUILD_STATIC_LIBS) | |
| - | set(ENABLE_STATIC "yes") |
| + | set(ENABLE_STATIC "yes") |
| else() | |
| - | set(ENABLE_STATIC "no") |
| + | set(ENABLE_STATIC "no") |
| endif() | |
| # "a" (Linux) or "lib" (Windows) | |
| string(REPLACE "." "" libext "${CMAKE_STATIC_LIBRARY_SUFFIX}") | |
| - | set(prefix "${CMAKE_INSTALL_PREFIX}") |
| + | set(prefix "${CMAKE_INSTALL_PREFIX}") |
| # Set this to "yes" to append all libraries on which -lcurl is dependent | |
| - | set(REQUIRE_LIB_DEPS "no") |
| + | set(REQUIRE_LIB_DEPS "no") |
| # SUPPORT_FEATURES | |
| # SUPPORT_PROTOCOLS | |
| - | set(VERSIONNUM "${CURL_VERSION_NUM}") |
| + | set(VERSIONNUM "${CURL_VERSION_NUM}") |
| # Finally generate a "curl-config" matching this config | |
| # Use: | |
| @@ -1954,58 +1947,53 @@ if(NOT CURL_DISABLE_INSTALL) | |
| configure_file("${CURL_SOURCE_DIR}/curl-config.in" | |
| "${CURL_BINARY_DIR}/curl-config" @ONLY) | |
| install(FILES "${CURL_BINARY_DIR}/curl-config" | |
| - | DESTINATION ${CMAKE_INSTALL_BINDIR} |
| - | PERMISSIONS |
| - | OWNER_READ OWNER_WRITE OWNER_EXECUTE |
| - | GROUP_READ GROUP_EXECUTE |
| - | WORLD_READ WORLD_EXECUTE) |
| + | DESTINATION ${CMAKE_INSTALL_BINDIR} |
| + | PERMISSIONS |
| + | OWNER_READ OWNER_WRITE OWNER_EXECUTE |
| + | GROUP_READ GROUP_EXECUTE |
| + | WORLD_READ WORLD_EXECUTE) |
| # Finally generate a pkg-config file matching this config | |
| configure_file("${CURL_SOURCE_DIR}/libcurl.pc.in" | |
| "${CURL_BINARY_DIR}/libcurl.pc" @ONLY) | |
| install(FILES "${CURL_BINARY_DIR}/libcurl.pc" | |
| - | DESTINATION ${CMAKE_INSTALL_LIBDIR}/pkgconfig) |
| + | DESTINATION ${CMAKE_INSTALL_LIBDIR}/pkgconfig) |
| - | # install headers |
| + | # Install headers |
| install(DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/include/curl" | |
| - | DESTINATION ${CMAKE_INSTALL_INCLUDEDIR} |
| - | FILES_MATCHING PATTERN "*.h") |
| + | DESTINATION ${CMAKE_INSTALL_INCLUDEDIR} |
| + | FILES_MATCHING PATTERN "*.h") |
| include(CMakePackageConfigHelpers) | |
| write_basic_package_version_file( | |
| - | "${version_config}" |
| - | VERSION ${CURL_VERSION} |
| - | COMPATIBILITY SameMajorVersion |
| - | ) |
| - | file(READ "${version_config}" generated_version_config) |
| - | file(WRITE "${version_config}" " |
| - | if(NOT PACKAGE_FIND_VERSION_RANGE AND PACKAGE_FIND_VERSION_MAJOR STREQUAL \"7\") |
| - | # Version 8 satisfies version 7... requirements |
| - | set(PACKAGE_FIND_VERSION_MAJOR 8) |
| - | set(PACKAGE_FIND_VERSION_COUNT 1) |
| - | endif() |
| - | ${generated_version_config}" |
| - | ) |
| + | "${_version_config}" |
| + | VERSION ${CURL_VERSION} |
| + | COMPATIBILITY SameMajorVersion) |
| + | file(READ "${_version_config}" _generated_version_config) |
| + | file(WRITE "${_version_config}" " |
| + | if(NOT PACKAGE_FIND_VERSION_RANGE AND PACKAGE_FIND_VERSION_MAJOR STREQUAL \"7\") |
| + | # Version 8 satisfies version 7... requirements |
| + | set(PACKAGE_FIND_VERSION_MAJOR 8) |
| + | set(PACKAGE_FIND_VERSION_COUNT 1) |
| + | endif() |
| + | ${_generated_version_config}") |
| # Use: | |
| # * TARGETS_EXPORT_NAME | |
| # * PROJECT_NAME | |
| - | configure_package_config_file(CMake/curl-config.cmake.in |
| - | "${project_config}" |
| + | configure_package_config_file("CMake/curl-config.cmake.in" |
| + | "${_project_config}" |
| INSTALL_DESTINATION ${CURL_INSTALL_CMAKE_DIR} | |
| - | PATH_VARS CMAKE_INSTALL_INCLUDEDIR |
| - | ) |
| + | PATH_VARS CMAKE_INSTALL_INCLUDEDIR) |
| if(CURL_ENABLE_EXPORT_TARGET) | |
| install(EXPORT "${TARGETS_EXPORT_NAME}" | |
| - | NAMESPACE "${PROJECT_NAME}::" |
| - | DESTINATION ${CURL_INSTALL_CMAKE_DIR} |
| - | ) |
| + | NAMESPACE "${PROJECT_NAME}::" |
| + | DESTINATION ${CURL_INSTALL_CMAKE_DIR}) |
| endif() | |
| - | install(FILES ${version_config} ${project_config} |
| - | DESTINATION ${CURL_INSTALL_CMAKE_DIR} |
| - | ) |
| + | install(FILES ${_version_config} ${_project_config} |
| + | DESTINATION ${CURL_INSTALL_CMAKE_DIR}) |
| # Workaround for MSVS10 to avoid the Dialog Hell | |
| # FIXME: This could be removed with future version of CMake. | |
| @@ -24,7 +24,7 @@ | |
| set(MANPAGE "${CURL_BINARY_DIR}/docs/cmdline-opts/curl.1") | |
| set(ASCIIPAGE "${CURL_BINARY_DIR}/docs/cmdline-opts/curl.txt") | |
| - | # Load DPAGES and OTHERPAGES from shared file |
| + | # Get 'DPAGES' variable |
| transform_makefile_inc("Makefile.inc" "${CMAKE_CURRENT_BINARY_DIR}/Makefile.inc.cmake") | |
| include("${CMAKE_CURRENT_BINARY_DIR}/Makefile.inc.cmake") | |
| @@ -22,23 +22,23 @@ | |
| # | |
| ########################################################################### | |
| + | # Get 'check_PROGRAMS' variable |
| transform_makefile_inc("Makefile.inc" | |
| "${CMAKE_CURRENT_BINARY_DIR}/Makefile.inc.cmake") | |
| include(${CMAKE_CURRENT_BINARY_DIR}/Makefile.inc.cmake) | |
| - | # Get 'check_PROGRAMS' variable |
| - | foreach(example IN LISTS check_PROGRAMS) |
| - | set(example_target "curl-example-${example}") |
| - | add_executable(${example_target} "${example}.c") |
| - | target_include_directories(${example_target} PRIVATE |
| + | foreach(_example IN LISTS check_PROGRAMS) |
| + | set(_example_target "curl-example-${_example}") |
| + | add_executable(${_example_target} "${_example}.c") |
| + | target_include_directories(${_example_target} PRIVATE |
| "${CURL_SOURCE_DIR}/lib" # for "curl_setup_once.h" | |
| "${CURL_BINARY_DIR}/lib" # for "curl_config.h" | |
| "${CURL_BINARY_DIR}/include" # for "curl/curl.h" | |
| ) | |
| - | target_link_libraries(${example_target} ${LIB_SELECTED} ${CURL_LIBS}) |
| - | target_compile_definitions(${example_target} PRIVATE "CURL_NO_OLDIES") |
| + | target_link_libraries(${_example_target} ${LIB_SELECTED} ${CURL_LIBS}) |
| + | target_compile_definitions(${_example_target} PRIVATE "CURL_NO_OLDIES") |
| if(LIB_SELECTED STREQUAL LIB_STATIC AND WIN32) | |
| - | set_property(TARGET ${example_target} APPEND PROPERTY COMPILE_DEFINITIONS "CURL_STATICLIB") |
| + | set_property(TARGET ${_example_target} APPEND PROPERTY COMPILE_DEFINITIONS "CURL_STATICLIB") |
| endif() | |
| - | set_target_properties(${example_target} PROPERTIES OUTPUT_NAME "${example}" UNITY_BUILD OFF) |
| + | set_target_properties(${_example_target} PROPERTIES OUTPUT_NAME "${_example}" UNITY_BUILD OFF) |
| endforeach() | |
| @@ -21,7 +21,7 @@ | |
| # SPDX-License-Identifier: curl | |
| # | |
| ########################################################################### | |
| - | # Load man_MANS from shared file |
| + | # Get 'man_MANS' variable |
| transform_makefile_inc("Makefile.inc" "${CMAKE_CURRENT_BINARY_DIR}/Makefile.inc.cmake") | |
| include("${CMAKE_CURRENT_BINARY_DIR}/Makefile.inc.cmake") | |
| @@ -76,7 +76,7 @@ add_manual_pages(man_MANS) | |
| add_custom_target(curl-man ALL DEPENDS ${man_MANS}) | |
| if(NOT CURL_DISABLE_INSTALL) | |
| unset(_src) | |
| - | foreach(_f ${man_MANS}) |
| + | foreach(_f IN LISTS man_MANS) |
| list(APPEND _src "${CMAKE_CURRENT_BINARY_DIR}/${_f}") | |
| endforeach() | |
| install(FILES ${_src} DESTINATION ${CMAKE_INSTALL_MANDIR}/man3) | |
| @@ -21,7 +21,7 @@ | |
| # SPDX-License-Identifier: curl | |
| # | |
| ########################################################################### | |
| - | # Load man_MANS from shared file |
| + | # Get 'man_MANS' variable |
| transform_makefile_inc("Makefile.inc" "${CMAKE_CURRENT_BINARY_DIR}/Makefile.inc.cmake") | |
| include("${CMAKE_CURRENT_BINARY_DIR}/Makefile.inc.cmake") | |
| @@ -30,7 +30,7 @@ add_custom_target(curl-opts-man DEPENDS ${man_MANS}) | |
| add_dependencies(curl-man curl-opts-man) | |
| if(NOT CURL_DISABLE_INSTALL) | |
| unset(_src) | |
| - | foreach(_f ${man_MANS}) |
| + | foreach(_f IN LISTS man_MANS) |
| list(APPEND _src "${CMAKE_CURRENT_BINARY_DIR}/${_f}") | |
| endforeach() | |
| install(FILES ${_src} DESTINATION ${CMAKE_INSTALL_MANDIR}/man3) | |
| @@ -28,6 +28,7 @@ add_definitions(-DBUILDING_LIBCURL) | |
| configure_file(curl_config.h.cmake | |
| ${CMAKE_CURRENT_BINARY_DIR}/curl_config.h) | |
| + | # Get 'CSOURCES', 'HHEADERS' variables |
| transform_makefile_inc("Makefile.inc" "${CMAKE_CURRENT_BINARY_DIR}/Makefile.inc.cmake") | |
| include(${CMAKE_CURRENT_BINARY_DIR}/Makefile.inc.cmake) | |
| @@ -38,19 +39,21 @@ list(APPEND HHEADERS ${CMAKE_CURRENT_BINARY_DIR}/curl_config.h) | |
| # The rest of the build | |
| - | include_directories(${CMAKE_CURRENT_BINARY_DIR}/../include) |
| - | include_directories(${CMAKE_CURRENT_SOURCE_DIR}/..) |
| - | include_directories(${CMAKE_CURRENT_SOURCE_DIR}/../include) |
| - | include_directories(${CMAKE_CURRENT_BINARY_DIR}/..) |
| - | include_directories(${CMAKE_CURRENT_SOURCE_DIR}) |
| - | include_directories(${CMAKE_CURRENT_BINARY_DIR}) |
| + | include_directories( |
| + | ${CMAKE_CURRENT_BINARY_DIR}/../include |
| + | ${CMAKE_CURRENT_SOURCE_DIR}/.. |
| + | ${CMAKE_CURRENT_SOURCE_DIR}/../include |
| + | ${CMAKE_CURRENT_BINARY_DIR}/.. |
| + | ${CMAKE_CURRENT_SOURCE_DIR} |
| + | ${CMAKE_CURRENT_BINARY_DIR} |
| + | ) |
| if(USE_ARES) | |
| include_directories(${CARES_INCLUDE_DIR}) | |
| endif() | |
| if(BUILD_TESTING) | |
| add_library( | |
| - | curlu # special libcurlu library just for unittests |
| + | curlu # special libcurlu library just for unittests |
| STATIC | |
| EXCLUDE_FROM_ALL | |
| ${HHEADERS} ${CSOURCES} | |
| @@ -122,7 +125,7 @@ else() | |
| set(LIB_SOURCE ${HHEADERS} ${CSOURCES}) | |
| endif() | |
| - | # we want it to be called libcurl on all platforms |
| + | # We want it to be called libcurl on all platforms |
| if(BUILD_STATIC_LIBS) | |
| list(APPEND libcurl_export ${LIB_STATIC}) | |
| add_library(${LIB_STATIC} STATIC ${LIB_SOURCE}) | |
| @@ -203,22 +206,23 @@ if(BUILD_SHARED_LIBS) | |
| # up to v3.x and ELF from v3.x. I cannot imagine someone running CMake | |
| # on those ancient systems. | |
| CMAKE_SYSTEM_NAME STREQUAL "FreeBSD") | |
| - | set(soversion_default TRUE) |
| + | set(_soversion_default TRUE) |
| else() | |
| - | set(soversion_default FALSE) |
| + | set(_soversion_default FALSE) |
| endif() | |
| - | option(CURL_LIBCURL_SOVERSION "Enable libcurl SOVERSION" ${soversion_default}) |
| + | option(CURL_LIBCURL_SOVERSION "Enable libcurl SOVERSION" ${_soversion_default}) |
| if(CURL_LIBCURL_SOVERSION) | |
| + | # Get 'VERSIONCHANGE', 'VERSIONADD', 'VERSIONDEL', 'VERSIONINFO' variables |
| transform_makefile_inc("Makefile.soname" "${CMAKE_CURRENT_BINARY_DIR}/Makefile.soname.cmake") | |
| include(${CMAKE_CURRENT_BINARY_DIR}/Makefile.soname.cmake) | |
| - | math(EXPR CMAKESONAME "${VERSIONCHANGE} - ${VERSIONDEL}") |
| - | set(CMAKEVERSION "${CMAKESONAME}.${VERSIONDEL}.${VERSIONADD}") |
| + | math(EXPR _cmakesoname "${VERSIONCHANGE} - ${VERSIONDEL}") |
| + | set(_cmakeversion "${_cmakesoname}.${VERSIONDEL}.${VERSIONADD}") |
| set_target_properties(${LIB_SHARED} PROPERTIES | |
| - | VERSION "${CMAKEVERSION}" SOVERSION "${CMAKESONAME}") |
| + | VERSION "${_cmakeversion}" SOVERSION "${_cmakesoname}") |
| endif() | |
| endif() | |
| @@ -244,7 +248,7 @@ if(CURL_ENABLE_EXPORT_TARGET) | |
| endif() | |
| export(TARGETS ${libcurl_export} | |
| - | FILE ${PROJECT_BINARY_DIR}/libcurl-target.cmake |
| - | NAMESPACE ${PROJECT_NAME}:: |
| + | FILE ${PROJECT_BINARY_DIR}/libcurl-target.cmake |
| + | NAMESPACE ${PROJECT_NAME}:: |
| ) | |
| endif() | |
| @@ -48,9 +48,9 @@ else() | |
| DEPENDS | |
| "${CMAKE_CURRENT_SOURCE_DIR}/tool_hugehelp.h" | |
| VERBATIM) | |
| - | |
| endif() | |
| + | # Get 'CURL_CFILES', 'CURLX_CFILES', 'CURL_HFILES', 'CURLTOOL_LIBCURL_CFILES' variables |
| transform_makefile_inc("Makefile.inc" "${CMAKE_CURRENT_BINARY_DIR}/Makefile.inc.cmake") | |
| include(${CMAKE_CURRENT_BINARY_DIR}/Makefile.inc.cmake) | |
| @@ -74,8 +74,6 @@ if(WIN32) | |
| list(APPEND CURL_CFILES curl.rc) | |
| endif() | |
| - | # CURL_CFILES, CURLX_CFILES, CURL_HFILES, CURLTOOL_LIBCURL_CFILES |
| - | # come from Makefile.inc |
| if(BUILD_STATIC_CURL) | |
| set(CURLX_CFILES ${CURLTOOL_LIBCURL_CFILES}) | |
| endif() | |
| @@ -89,12 +87,12 @@ endif() | |
| add_executable( | |
| ${EXE_NAME} | |
| ${CURL_CFILES} ${CURLX_CFILES} ${CURL_HFILES} | |
| - | ) |
| + | ) |
| add_executable( | |
| ${PROJECT_NAME}::${EXE_NAME} | |
| ALIAS ${EXE_NAME} | |
| - | ) |
| + | ) |
| add_library( | |
| curltool # special libcurltool library just for unittests | |
| @@ -125,21 +123,15 @@ include_directories( | |
| ${CURL_BINARY_DIR}/include # for "curl/curl.h" | |
| # This is needed as tool_hugehelp.c is generated in the binary dir | |
| ${CURL_SOURCE_DIR}/src # for "tool_hugehelp.h" | |
| - | ) |
| + | ) |
| # Build curl executable | |
| target_link_libraries(${EXE_NAME} ${LIB_SELECTED_FOR_EXE} ${CURL_LIBS}) | |
| ################################################################################ | |
| - | #set_target_properties(${EXE_NAME} ARCHIVE_OUTPUT_DIRECTORY "blah blah blah") |
| - | #set_target_properties(${EXE_NAME} RUNTIME_OUTPUT_DIRECTORY "blah blah blah") |
| - | #set_target_properties(${EXE_NAME} LIBRARY_OUTPUT_DIRECTORY "blah blah blah") |
| - | |
| - | #include(ModuleInstall OPTIONAL) |
| - | |
| install(TARGETS ${EXE_NAME} EXPORT ${TARGETS_EXPORT_NAME} DESTINATION ${CMAKE_INSTALL_BINDIR}) | |
| export(TARGETS ${EXE_NAME} | |
| - | FILE ${PROJECT_BINARY_DIR}/curl-target.cmake |
| - | NAMESPACE ${PROJECT_NAME}:: |
| + | FILE ${PROJECT_BINARY_DIR}/curl-target.cmake |
| + | NAMESPACE ${PROJECT_NAME}:: |
| ) | |
| @@ -33,11 +33,11 @@ function(add_runtests targetname test_flags) | |
| # replaced by the contents of the environment variable in runtests.pl. | |
| # This is a workaround for CMake's limitation where commands executed by | |
| # 'make' or 'ninja' cannot portably reference environment variables. | |
| - | string(REPLACE " " ";" test_flags_list "${test_flags}") |
| + | string(REPLACE " " ";" _test_flags_list "${test_flags}") |
| add_custom_target(${targetname} | |
| COMMAND | |
| "${PERL_EXECUTABLE}" "${CMAKE_CURRENT_SOURCE_DIR}/runtests.pl" | |
| - | ${test_flags_list} |
| + | ${_test_flags_list} |
| "\$TFLAGS" | |
| DEPENDS testdeps | |
| VERBATIM USES_TERMINAL | |
| @@ -86,7 +86,7 @@ use vars qw( | |
| add_runtests(test-quiet "-a -s") | |
| add_runtests(test-am "-a -am") | |
| add_runtests(test-full "-a -p -r") | |
| - | # ~flaky means that it'll ignore results of tests using the flaky keyword |
| + | # ~flaky means that it ignores results of tests using the flaky keyword |
| add_runtests(test-nonflaky "-a -p ~flaky ~timing-dependent") | |
| add_runtests(test-ci "-a -p ~flaky ~timing-dependent -r -rm -j2") | |
| add_runtests(test-torture "-a -t") | |
| @@ -23,49 +23,49 @@ | |
| ########################################################################### | |
| set(TARGET_LABEL_PREFIX "Test ") | |
| - | function(setup_test TEST_NAME) # ARGN are the files in the test |
| + | function(setup_test test_name) # ARGN are the files in the test |
| if(LIB_SELECTED STREQUAL LIB_STATIC) | |
| # These are part of the libcurl static lib. Do not compile/link them again. | |
| list(REMOVE_ITEM ARGN ${WARNLESS} ${MULTIBYTE} ${TIMEDIFF}) | |
| endif() | |
| - | add_executable(${TEST_NAME} EXCLUDE_FROM_ALL ${ARGN}) |
| - | add_dependencies(testdeps ${TEST_NAME}) |
| - | string(TOUPPER ${TEST_NAME} UPPER_TEST_NAME) |
| + | add_executable(${test_name} EXCLUDE_FROM_ALL ${ARGN}) |
| + | add_dependencies(testdeps ${test_name}) |
| + | string(TOUPPER ${test_name} UPPER_TEST_NAME) |
| include_directories( | |
| ${CURL_SOURCE_DIR}/lib # for "curl_setup_once.h" | |
| ${CURL_BINARY_DIR}/lib # for "curl_config.h" | |
| ${CURL_BINARY_DIR}/include # for "curl/curl.h" | |
| ${CURL_SOURCE_DIR}/tests/libtest # to be able to build generated tests | |
| - | ) |
| + | ) |
| if(USE_ARES) | |
| include_directories(${CARES_INCLUDE_DIR}) | |
| endif() | |
| - | target_link_libraries(${TEST_NAME} ${LIB_SELECTED} ${CURL_LIBS}) |
| + | target_link_libraries(${test_name} ${LIB_SELECTED} ${CURL_LIBS}) |
| - | set_target_properties(${TEST_NAME} |
| + | set_target_properties(${test_name} |
| PROPERTIES COMPILE_DEFINITIONS ${UPPER_TEST_NAME}) | |
| - | set_target_properties(${TEST_NAME} |
| - | PROPERTIES PROJECT_LABEL "${TARGET_LABEL_PREFIX}${TEST_NAME}") |
| + | set_target_properties(${test_name} |
| + | PROPERTIES PROJECT_LABEL "${TARGET_LABEL_PREFIX}${test_name}") |
| endfunction() | |
| - | |
| + | # Get 'noinst_PROGRAMS', '*_SOURCES' variables |
| transform_makefile_inc("Makefile.inc" "${CMAKE_CURRENT_BINARY_DIR}/Makefile.inc.cmake") | |
| include(${CMAKE_CURRENT_BINARY_DIR}/Makefile.inc.cmake) | |
| - | foreach(TEST_NAME ${noinst_PROGRAMS}) |
| - | if(DEFINED ${TEST_NAME}_SOURCES) |
| - | setup_test(${TEST_NAME} ${${TEST_NAME}_SOURCES}) |
| + | foreach(_test_name IN LISTS noinst_PROGRAMS) |
| + | if(DEFINED ${_test_name}_SOURCES) |
| + | setup_test(${_test_name} ${${_test_name}_SOURCES}) |
| else() | |
| - | setup_test(${TEST_NAME} ${nodist_${TEST_NAME}_SOURCES}) |
| + | setup_test(${_test_name} ${nodist_${_test_name}_SOURCES}) |
| endif() | |
| endforeach() | |
| # Allows for hostname override to make tests machine independent. | |
| - | # TODO this cmake build assumes a shared build, detect static linking here! |
| + | # TODO: this cmake build assumes a shared build, detect static linking here! |
| if(NOT WIN32) | |
| add_library(hostname MODULE EXCLUDE_FROM_ALL sethostname.c) | |
| add_dependencies(testdeps hostname) | |
| @@ -27,55 +27,39 @@ if(MSVC) | |
| set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} /wd4306") | |
| endif() | |
| - | function(SETUP_EXECUTABLE TEST_NAME) # ARGN are the files in the test |
| - | add_executable(${TEST_NAME} EXCLUDE_FROM_ALL ${ARGN}) |
| - | add_dependencies(testdeps ${TEST_NAME}) |
| + | function(setup_executable test_name) # ARGN are the files in the test |
| + | add_executable(${test_name} EXCLUDE_FROM_ALL ${ARGN}) |
| + | add_dependencies(testdeps ${test_name}) |
| include_directories( | |
| ${CURL_SOURCE_DIR}/lib # for "curl_setup_once.h" | |
| ${CURL_BINARY_DIR}/lib # for "curl_config.h" | |
| ${CURL_BINARY_DIR}/include # for "curl/curl.h" | |
| ${CURL_SOURCE_DIR}/src # for "tool_xattr.h" | |
| - | ) |
| + | ) |
| if(USE_ARES) | |
| include_directories(${CARES_INCLUDE_DIR}) | |
| endif() | |
| - | target_link_libraries(${TEST_NAME} ${CURL_LIBS}) |
| + | target_link_libraries(${test_name} ${CURL_LIBS}) |
| # Test servers simply are standalone programs that do not use libcurl | |
| # library. For convenience and to ease portability of these servers, | |
| # some source code files from the libcurl subdirectory are also used | |
| # to build the servers. In order to achieve proper linkage of these | |
| - | # files on Win32 targets it is necessary to build the test servers |
| + | # files on Windows targets it is necessary to build the test servers |
| # with CURL_STATICLIB defined, independently of how libcurl is built. | |
| - | set_target_properties(${TEST_NAME} PROPERTIES |
| + | set_target_properties(${test_name} PROPERTIES |
| COMPILE_DEFINITIONS CURL_STATICLIB) | |
| - | set_target_properties(${TEST_NAME} PROPERTIES |
| - | PROJECT_LABEL "${TARGET_LABEL_PREFIX}${TEST_NAME}") |
| + | set_target_properties(${test_name} PROPERTIES |
| + | PROJECT_LABEL "${TARGET_LABEL_PREFIX}${test_name}") |
| endfunction() | |
| - | |
| + | # Get 'noinst_PROGRAMS', '<target>_SOURCES' variables |
| transform_makefile_inc("Makefile.inc" | |
| "${CMAKE_CURRENT_BINARY_DIR}/Makefile.inc.cmake") | |
| include(${CMAKE_CURRENT_BINARY_DIR}/Makefile.inc.cmake) | |
| - | foreach(EXECUTABLE_NAME ${noinst_PROGRAMS}) |
| - | setup_executable(${EXECUTABLE_NAME} ${${EXECUTABLE_NAME}_SOURCES}) |
| + | foreach(_executable_name IN LISTS noinst_PROGRAMS) |
| + | setup_executable(${_executable_name} ${${_executable_name}_SOURCES}) |
| endforeach() | |
| - | |
| - | |
| - | # set(useful |
| - | # getpart.c getpart.h |
| - | # ${CURL_SOURCE_DIR}/lib/strequal.c |
| - | # ${CURL_SOURCE_DIR}/lib/base64.c |
| - | # ${CURL_SOURCE_DIR}/lib/mprintf.c |
| - | # ${CURL_SOURCE_DIR}/lib/memdebug.c |
| - | # ${CURL_SOURCE_DIR}/lib/timeval.c |
| - | # ) |
| - | |
| - | # setup_executable(sws sws.c util.c util.h ${useful}) |
| - | # setup_executable(resolve resolve.c util.c util.h ${useful}) |
| - | # setup_executable(sockfilt sockfilt.c util.c util.h ${useful} ${CURL_SOURCE_DIR}/lib/inet_pton.c) |
| - | # setup_executable(getpart testpart.c ${useful}) |
| - | # setup_executable(tftpd tftpd.c util.c util.h ${useful} tftp.h) |
| @@ -22,6 +22,7 @@ | |
| # | |
| ########################################################################### | |
| + | # Get 'UNITPROGS', 'UNITFILES' variables |
| transform_makefile_inc("Makefile.inc" "${CMAKE_CURRENT_BINARY_DIR}/Makefile.inc.cmake") | |
| include(${CMAKE_CURRENT_BINARY_DIR}/Makefile.inc.cmake) | |
| @@ -33,7 +34,7 @@ include_directories( | |
| ${CURL_BINARY_DIR}/include # for "curl/curl.h" | |
| ) | |
| - | foreach(_testfile ${UNITPROGS}) |
| + | foreach(_testfile IN LISTS UNITPROGS) |
| add_executable(${_testfile} EXCLUDE_FROM_ALL ${_testfile}.c ${UNITFILES}) | |
| add_dependencies(testdeps ${_testfile}) | |
| target_link_libraries(${_testfile} curltool curlu) | |