Artifactspublic-v0

curl

master
ply4 git calls35 ms290 KiB3 cachedprotocol v2
464 lines12 KiBRaw
1#---------------------------------------------------------------------------
2#
3# xc-lt-iface.m4
4#
5# Copyright (C) Daniel Stenberg, <daniel@haxx.se>
6#
7# Permission to use, copy, modify, and distribute this software for any
8# purpose with or without fee is hereby granted, provided that the above
9# copyright notice and this permission notice appear in all copies.
11# THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
12# WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
13# MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
14# ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
15# WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
16# ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
17# OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
19# SPDX-License-Identifier: ISC
21#---------------------------------------------------------------------------
23dnl serial 1
26dnl _XC_LIBTOOL_PREAMBLE
27dnl -------------------------------------------------
28dnl Private macro.
29dnl
30dnl Checks some configure script options related with
31dnl libtool and customizes its default behavior before
32dnl libtool code is actually used in script.
34m4_define([_XC_LIBTOOL_PREAMBLE],
36dnl ------------------------------------
37dnl Determine libtool default behavior
38dnl ------------------------------------
40dnl
41dnl Default behavior is to enable shared and static libraries on systems
42dnl where libtool knows how to build both library versions, and does not
43dnl require separate configuration and build runs for each flavor.
44dnl
46xc_lt_want_enable_shared='yes'
47xc_lt_want_enable_static='yes'
49dnl
50dnl User may have disabled shared or static libraries.
51dnl
52case "x$enable_shared" in @%:@ (
53 xno)
54 xc_lt_want_enable_shared='no'
55 ;;
56esac
57case "x$enable_static" in @%:@ (
58 xno)
59 xc_lt_want_enable_static='no'
60 ;;
61esac
62if test "$xc_lt_want_enable_shared" = "no" &&
63 test "$xc_lt_want_enable_static" = "no"; then
64 AC_MSG_ERROR([can not disable shared and static libraries simultaneously])
65fi
67dnl
68dnl Default behavior on systems that require independent configuration
69dnl and build runs for shared and static is to enable shared libraries
70dnl and disable static ones. On these systems option '--disable-shared'
71dnl must be used in order to build a proper static library.
72dnl
74if test "$xc_lt_want_enable_shared" = "yes" &&
75 test "$xc_lt_want_enable_static" = "yes"; then
76 case $host_os in @%:@ (
77 os2* | aix*)
78 xc_lt_want_enable_static='no'
79 ;;
80 esac
81fi
83dnl
84dnl Make libtool aware of current shared and static library preferences
85dnl taking in account that, depending on host characteristics, libtool
86dnl may modify these option preferences later in this configure script.
87dnl
89enable_shared=$xc_lt_want_enable_shared
90enable_static=$xc_lt_want_enable_static
92dnl
93dnl Default behavior is to build PIC objects for shared libraries and
94dnl non-PIC objects for static libraries.
95dnl
97xc_lt_want_with_pic='default'
99dnl
100dnl User may have specified PIC preference.
101dnl
103case "x$with_pic" in @%:@ ((
104 xno)
105 xc_lt_want_with_pic='no'
106 ;;
107 xyes)
108 xc_lt_want_with_pic='yes'
109 ;;
110esac
112dnl
113dnl Default behavior on some systems where building a shared library out
114dnl of non-PIC compiled objects fails with following linker error
115dnl "relocation R_X86_64_32 can not be used when making a shared object"
116dnl is to build PIC objects even for static libraries. This behavior may
117dnl be overridden using 'configure --disable-shared --without-pic'.
118dnl
120if test "$xc_lt_want_with_pic" = "default"; then
121 case $host_cpu in @%:@ (
122 x86_64 | amd64 | ia64)
123 case $host_os in @%:@ (
124 linux* | freebsd* | midnightbsd*)
125 xc_lt_want_with_pic='yes'
126 ;;
127 esac
128 ;;
129 esac
130fi
133# Make libtool aware of current PIC preference taking in account that,
134# depending on host characteristics, libtool may modify PIC default
135# behavior to fit host system idiosyncrasies later in this script.
138with_pic=$xc_lt_want_with_pic
140m4_define([$0],[])
141])
144dnl _XC_LIBTOOL_BODY
145dnl -------------------------------------------------
146dnl Private macro.
147dnl
148dnl This macro performs embedding of libtool code into
149dnl configure script, regardless of libtool version in
150dnl use when generating configure script.
152m4_define([_XC_LIBTOOL_BODY],
154dnl -----------------------
155dnl Start of libtool code
156dnl -----------------------
157m4_ifdef([LT_INIT],
159LT_INIT([win32-dll])
160],[
161AC_LIBTOOL_WIN32_DLL
162AC_PROG_LIBTOOL
163])
164dnl ---------------------
165dnl End of libtool code
166dnl ---------------------
167dnl
168m4_define([$0], [])[]
169])
172dnl _XC_CHECK_LT_BUILD_LIBRARIES
173dnl -------------------------------------------------
174dnl Private macro.
175dnl
176dnl Checks whether libtool shared and static libraries
177dnl are finally built depending on user input, default
178dnl behavior and knowledge that libtool has about host
179dnl characteristics.
180dnl Results stored in following shell variables:
181dnl xc_lt_build_shared
182dnl xc_lt_build_static
184m4_define([_XC_CHECK_LT_BUILD_LIBRARIES],
188# Verify if finally libtool shared libraries are built
190case "x$enable_shared" in @%:@ ((
191 xyes | xno)
192 xc_lt_build_shared=$enable_shared
193 ;;
194 *)
195 AC_MSG_ERROR([unexpected libtool enable_shared value: $enable_shared])
196 ;;
197esac
200# Verify if finally libtool static libraries are built
202case "x$enable_static" in @%:@ ((
203 xyes | xno)
204 xc_lt_build_static=$enable_static
205 ;;
206 *)
207 AC_MSG_ERROR([unexpected libtool enable_static value: $enable_static])
208 ;;
209esac
211m4_define([$0],[])
212])
215dnl _XC_CHECK_LT_SHLIB_USE_VERSION_INFO
216dnl -------------------------------------------------
217dnl Private macro.
218dnl
219dnl Checks if the -version-info linker flag must be
220dnl provided when building libtool shared libraries.
221dnl Result stored in xc_lt_shlib_use_version_info.
223m4_define([_XC_CHECK_LT_SHLIB_USE_VERSION_INFO],
226# Verify if libtool shared libraries should be linked using flag -version-info
229AC_MSG_CHECKING([whether to build shared libraries with -version-info])
230xc_lt_shlib_use_version_info='yes'
231if test "$version_type" = "none"; then
232 xc_lt_shlib_use_version_info='no'
233fi
234case $host_os in @%:@ (
235 amigaos*)
236 xc_lt_shlib_use_version_info='yes'
237 ;;
238esac
239AC_MSG_RESULT([$xc_lt_shlib_use_version_info])
241m4_define([$0], [])[]
242])
245dnl _XC_CHECK_LT_SHLIB_USE_NO_UNDEFINED
246dnl -------------------------------------------------
247dnl Private macro.
248dnl
249dnl Checks if the -no-undefined linker flag must be
250dnl provided when building libtool shared libraries.
251dnl Result stored in xc_lt_shlib_use_no_undefined.
253m4_define([_XC_CHECK_LT_SHLIB_USE_NO_UNDEFINED],
256# Verify if libtool shared libraries should be linked using flag -no-undefined
259AC_MSG_CHECKING([whether to build shared libraries with -no-undefined])
260xc_lt_shlib_use_no_undefined='no'
261if test "x$allow_undefined" = "xno"; then
262 xc_lt_shlib_use_no_undefined='yes'
263elif test "x$allow_undefined_flag" = "xunsupported"; then
264 xc_lt_shlib_use_no_undefined='yes'
265fi
266case $host_os in @%:@ (
267 cygwin* | mingw* | os2* | aix*)
268 xc_lt_shlib_use_no_undefined='yes'
269 ;;
270esac
271AC_MSG_RESULT([$xc_lt_shlib_use_no_undefined])
273m4_define([$0], [])[]
274])
277dnl _XC_CHECK_LT_SHLIB_USE_MIMPURE_TEXT
278dnl -------------------------------------------------
279dnl Private macro.
280dnl
281dnl Checks if the -mimpure-text linker flag must be
282dnl provided when building libtool shared libraries.
283dnl Result stored in xc_lt_shlib_use_mimpure_text.
285m4_define([_XC_CHECK_LT_SHLIB_USE_MIMPURE_TEXT],
288# Verify if libtool shared libraries should be linked using flag -mimpure-text
291AC_MSG_CHECKING([whether to build shared libraries with -mimpure-text])
292xc_lt_shlib_use_mimpure_text='no'
293case $host_os in @%:@ (
294 solaris2*)
295 if test "x$GCC" = "xyes"; then
296 xc_lt_shlib_use_mimpure_text='yes'
297 fi
298 ;;
299esac
300AC_MSG_RESULT([$xc_lt_shlib_use_mimpure_text])
302m4_define([$0], [])[]
303])
306dnl _XC_CHECK_LT_BUILD_WITH_PIC
307dnl -------------------------------------------------
308dnl Private macro.
309dnl
310dnl Checks whether libtool shared and static libraries
311dnl would be built with PIC depending on user input,
312dnl default behavior and knowledge that libtool has
313dnl about host characteristics.
314dnl Results stored in following shell variables:
315dnl xc_lt_build_shared_with_pic
316dnl xc_lt_build_static_with_pic
318m4_define([_XC_CHECK_LT_BUILD_WITH_PIC],
321# Find out whether libtool libraries would be built with PIC
324case "x$pic_mode" in @%:@ ((((
325 xdefault)
326 xc_lt_build_shared_with_pic='yes'
327 xc_lt_build_static_with_pic='no'
328 ;;
329 xyes)
330 xc_lt_build_shared_with_pic='yes'
331 xc_lt_build_static_with_pic='yes'
332 ;;
333 xno)
334 xc_lt_build_shared_with_pic='no'
335 xc_lt_build_static_with_pic='no'
336 ;;
337 *)
338 xc_lt_build_shared_with_pic='unknown'
339 xc_lt_build_static_with_pic='unknown'
340 AC_MSG_WARN([unexpected libtool pic_mode value: $pic_mode])
341 ;;
342esac
343AC_MSG_CHECKING([whether to build shared libraries with PIC])
344AC_MSG_RESULT([$xc_lt_build_shared_with_pic])
345AC_MSG_CHECKING([whether to build static libraries with PIC])
346AC_MSG_RESULT([$xc_lt_build_static_with_pic])
348m4_define([$0],[])
349])
352dnl _XC_CHECK_LT_BUILD_SINGLE_VERSION
353dnl -------------------------------------------------
354dnl Private macro.
355dnl
356dnl Checks whether a libtool shared or static library
357dnl is finally built exclusively without the other.
358dnl Results stored in following shell variables:
359dnl xc_lt_build_shared_only
360dnl xc_lt_build_static_only
362m4_define([_XC_CHECK_LT_BUILD_SINGLE_VERSION],
366# Verify if libtool shared libraries are built while static not built
368AC_MSG_CHECKING([whether to build shared libraries only])
369if test "$xc_lt_build_shared" = "yes" &&
370 test "$xc_lt_build_static" = "no"; then
371 xc_lt_build_shared_only='yes'
372else
373 xc_lt_build_shared_only='no'
374fi
375AC_MSG_RESULT([$xc_lt_build_shared_only])
378# Verify if libtool static libraries are built while shared not built
380AC_MSG_CHECKING([whether to build static libraries only])
381if test "$xc_lt_build_static" = "yes" &&
382 test "$xc_lt_build_shared" = "no"; then
383 xc_lt_build_static_only='yes'
384else
385 xc_lt_build_static_only='no'
386fi
387AC_MSG_RESULT([$xc_lt_build_static_only])
389m4_define([$0],[])
390])
393dnl _XC_LIBTOOL_POSTLUDE
394dnl -------------------------------------------------
395dnl Private macro.
396dnl
397dnl Performs several checks related with libtool that
398dnl can not be done unless libtool code has already
399dnl been executed. See individual check descriptions
400dnl for further info.
402m4_define([_XC_LIBTOOL_POSTLUDE],
404_XC_CHECK_LT_BUILD_LIBRARIES
405_XC_CHECK_LT_SHLIB_USE_VERSION_INFO
406_XC_CHECK_LT_SHLIB_USE_NO_UNDEFINED
407_XC_CHECK_LT_SHLIB_USE_MIMPURE_TEXT
408_XC_CHECK_LT_BUILD_WITH_PIC
409_XC_CHECK_LT_BUILD_SINGLE_VERSION
411m4_define([$0],[])
412])
415dnl XC_LIBTOOL
416dnl -------------------------------------------------
417dnl Public macro.
418dnl
419dnl This macro embeds libtool machinery into configure
420dnl script, regardless of libtool version, and performs
421dnl several additional checks whose results can be used
422dnl later on.
423dnl
424dnl Usage of this macro ensures that generated configure
425dnl script uses equivalent logic irrespective of autoconf
426dnl or libtool version being used to generate configure
427dnl script.
428dnl
429dnl Results stored in following shell variables:
430dnl xc_lt_build_shared
431dnl xc_lt_build_static
432dnl xc_lt_shlib_use_version_info
433dnl xc_lt_shlib_use_no_undefined
434dnl xc_lt_shlib_use_mimpure_text
435dnl xc_lt_build_shared_with_pic
436dnl xc_lt_build_static_with_pic
437dnl xc_lt_build_shared_only
438dnl xc_lt_build_static_only
440AC_DEFUN([XC_LIBTOOL],
442AC_PREREQ([2.50])
444AC_BEFORE([$0],[LT_INIT])
445AC_BEFORE([$0],[AC_PROG_LIBTOOL])
446AC_BEFORE([$0],[AC_LIBTOOL_WIN32_DLL])
448AC_REQUIRE([XC_CHECK_PATH_SEPARATOR])
449AC_REQUIRE([AC_CANONICAL_HOST])
450AC_REQUIRE([AC_PROG_CC])
452_XC_LIBTOOL_PREAMBLE
453_XC_LIBTOOL_BODY
454_XC_LIBTOOL_POSTLUDE
456m4_ifdef([AC_LIBTOOL_WIN32_DLL],
457 [m4_undefine([AC_LIBTOOL_WIN32_DLL])])
458m4_ifdef([AC_PROG_LIBTOOL],
459 [m4_undefine([AC_PROG_LIBTOOL])])
460m4_ifdef([LT_INIT],
461 [m4_undefine([LT_INIT])])
463m4_define([$0],[])
464])
Diagnostics4 git calls · 35 ms
CallStatusSizeTime035 ms
discover200152 B4 ms
git.upload-pack discover
http.response.status_code=200
git.upstream.cf_ray=-
git.upstream.phase=fetch
git.upstream.dur_ms=3
git.response.bytes=152
git.server.agent=gitty/1.0
git.server.object_format=sha1
git.server.caps=agent ls-refs fetch object-format
git.server.fetch=shallow filter sideband-all
git.protocol.version=2
git.pkt.frames=8
git.pkt.data=6
git.pkt.flush=2
git.pkt.delim=0
git.pkt.bytes=152
git.pkt.payload.max=34
ls-refs200149 B · hit4 ms
git.upload-pack ls-refs
http.response.status_code=200
git.upstream.cf_ray=-
git.upstream.phase=ls-refs
git.upstream.dur_ms=4
git.response.bytes=149
git.response.cache=HIT
git.response.duration_ms=4
git.protocol.version=2
git.pkt.frames=3
git.pkt.data=2
git.pkt.flush=1
git.pkt.delim=0
git.pkt.bytes=149
git.pkt.payload.max=78
git.ls_refs.count=2
git.ls_refs.head=refs/heads/master
fetchblob:none · deepen 10200287 KiB · hit3 ms
git.upload-pack fetch
http.response.status_code=200
git.upstream.cf_ray=-
git.upstream.phase=fetch
git.upstream.dur_ms=28
git.response.bytes=293470
git.response.cache=HIT
git.response.duration_ms=3
git.fetch.filter=blob:none
git.fetch.filter.requested=tree:0
git.fetch.filter.fallback=blob:none
git.fetch.filter.learned=false
git.fetch.wants=31c911efe5652725e930f4d2e60c9060e5f6646d
git.fetch.haves.count=0
git.fetch.deepen=10
git.fetch.thin_pack=false
git.fetch.ofs_delta=true
git.protocol.version=2
git.pkt.frames=10
git.pkt.data=8
git.pkt.flush=1
git.pkt.delim=1
git.pkt.bytes=293470
git.pkt.payload.max=65516
git.sideband.band1.bytes=293354
git.sideband.band2.bytes=0
git.sideband.band3.bytes=0
git.pack.objects=87
git.pack.bytes=293354
git.pack.ofs_delta=0
git.pack.ref_delta=1
git.pack.chain.max=1
git.pack.trailer=6a646bcda6740bab42e321b51998b52ea15146c0
git.pack.full=86
Open pack map
fetch2003.4 KiB · hit28 ms
git.upload-pack fetch
http.response.status_code=200
git.response.bytes=3459
git.response.cache=HIT
git.response.duration_ms=28
git.fetch.wants=9f79fdb95210345b2689b95eccd152946ae1c43a
git.fetch.haves.count=0
git.fetch.deepen=0
git.fetch.thin_pack=false
git.fetch.ofs_delta=true
git.protocol.version=2
git.pkt.frames=3
git.pkt.data=2
git.pkt.flush=1
git.pkt.delim=0
git.pkt.bytes=3459
git.pkt.payload.max=3438
git.sideband.band1.bytes=3437
git.sideband.band2.bytes=0
git.sideband.band3.bytes=0

Each row is one HTTP round trip ply made to the git server for this page, on one timeline. discover asks what the server speaks, ls-refs lists branch tips, fetch brings objects by id. A hit was served by Workers Cache. Tap a row for its wire details.

Remote
https://5ad2236b39de4c8bd8f6270ea63f3ea9.artifacts.cloudflare.net/git/public-v0/curl.git
Ref
refs/heads/master
Commit
31c911efe5652725e930f4d2e60c9060e5f6646d
cf-ray
a5e37fd81fabc69c
Request
38a8402e…
Protocol
v2 · sha1
Agent
gitty/1.0
Filter
advertised
Fetch
shallow filter sideband-all
Capabilities
agent ls-refs fetch object-format