master
1#---------------------------------------------------------------------------
2#
3# xc-val-flgs.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.
10#
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.
18#
19# SPDX-License-Identifier: ISC
20#
21#---------------------------------------------------------------------------
23dnl serial 1
26dnl _XC_CHECK_VAR_LIBS
27dnl -------------------------------------------------
28dnl Private macro.
30AC_DEFUN([_XC_CHECK_VAR_LIBS], [
31 xc_bad_var_libs=no
32 for xc_word in $LIBS; do
33 case "$xc_word" in
34 -l* | --library=*)
35 :
36 ;;
37 *)
38 xc_bad_var_libs=yes
39 ;;
40 esac
41 done
42 if test "$xc_bad_var_libs" = "yes"; then
43 AC_MSG_NOTICE([using LIBS: $LIBS])
44 AC_MSG_NOTICE([LIBS note: LIBS should only be used to specify libraries (-lname).])
45 fi
46])
49dnl _XC_CHECK_VAR_LDFLAGS
50dnl -------------------------------------------------
51dnl Private macro.
53AC_DEFUN([_XC_CHECK_VAR_LDFLAGS], [
54 xc_bad_var_ldflags=no
55 for xc_word in $LDFLAGS; do
56 case "$xc_word" in
57 -D*)
58 xc_bad_var_ldflags=yes
59 ;;
60 -U*)
61 xc_bad_var_ldflags=yes
62 ;;
63 -I*)
64 xc_bad_var_ldflags=yes
65 ;;
66 -l* | --library=*)
67 xc_bad_var_ldflags=yes
68 ;;
69 esac
70 done
71 if test "$xc_bad_var_ldflags" = "yes"; then
72 AC_MSG_NOTICE([using LDFLAGS: $LDFLAGS])
73 xc_bad_var_msg="LDFLAGS note: LDFLAGS should only be used to specify linker flags, not"
74 for xc_word in $LDFLAGS; do
75 case "$xc_word" in
76 -D*)
77 AC_MSG_NOTICE([$xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word])
78 ;;
79 -U*)
80 AC_MSG_NOTICE([$xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word])
81 ;;
82 -I*)
83 AC_MSG_NOTICE([$xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word])
84 ;;
85 -l* | --library=*)
86 AC_MSG_NOTICE([$xc_bad_var_msg libraries. Use LIBS for: $xc_word])
87 ;;
88 esac
89 done
90 fi
91])
94dnl _XC_CHECK_VAR_CPPFLAGS
95dnl -------------------------------------------------
96dnl Private macro.
98AC_DEFUN([_XC_CHECK_VAR_CPPFLAGS], [
99 xc_bad_var_cppflags=no
100 for xc_word in $CPPFLAGS; do
101 case "$xc_word" in
102 -rpath*)
103 xc_bad_var_cppflags=yes
104 ;;
105 -L* | --library-path=*)
106 xc_bad_var_cppflags=yes
107 ;;
108 -l* | --library=*)
109 xc_bad_var_cppflags=yes
110 ;;
111 esac
112 done
113 if test "$xc_bad_var_cppflags" = "yes"; then
114 AC_MSG_NOTICE([using CPPFLAGS: $CPPFLAGS])
115 xc_bad_var_msg="CPPFLAGS note: CPPFLAGS should only be used to specify C preprocessor flags, not"
116 for xc_word in $CPPFLAGS; do
117 case "$xc_word" in
118 -rpath*)
119 AC_MSG_NOTICE([$xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word])
120 ;;
121 -L* | --library-path=*)
122 AC_MSG_NOTICE([$xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word])
123 ;;
124 -l* | --library=*)
125 AC_MSG_NOTICE([$xc_bad_var_msg libraries. Use LIBS for: $xc_word])
126 ;;
127 esac
128 done
129 fi
130])
133dnl _XC_CHECK_VAR_CFLAGS
134dnl -------------------------------------------------
135dnl Private macro.
137AC_DEFUN([_XC_CHECK_VAR_CFLAGS], [
138 xc_bad_var_cflags=no
139 for xc_word in $CFLAGS; do
140 case "$xc_word" in
141 -D*)
142 xc_bad_var_cflags=yes
143 ;;
144 -U*)
145 xc_bad_var_cflags=yes
146 ;;
147 -I*)
148 xc_bad_var_cflags=yes
149 ;;
150 -rpath*)
151 xc_bad_var_cflags=yes
152 ;;
153 -L* | --library-path=*)
154 xc_bad_var_cflags=yes
155 ;;
156 -l* | --library=*)
157 xc_bad_var_cflags=yes
158 ;;
159 esac
160 done
161 if test "$xc_bad_var_cflags" = "yes"; then
162 AC_MSG_NOTICE([using CFLAGS: $CFLAGS])
163 xc_bad_var_msg="CFLAGS note: CFLAGS should only be used to specify C compiler flags, not"
164 for xc_word in $CFLAGS; do
165 case "$xc_word" in
166 -D*)
167 AC_MSG_NOTICE([$xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word])
168 ;;
169 -U*)
170 AC_MSG_NOTICE([$xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word])
171 ;;
172 -I*)
173 AC_MSG_NOTICE([$xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word])
174 ;;
175 -rpath*)
176 AC_MSG_NOTICE([$xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word])
177 ;;
178 -L* | --library-path=*)
179 AC_MSG_NOTICE([$xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word])
180 ;;
181 -l* | --library=*)
182 AC_MSG_NOTICE([$xc_bad_var_msg libraries. Use LIBS for: $xc_word])
183 ;;
184 esac
185 done
186 fi
187])
190dnl XC_CHECK_USER_FLAGS
191dnl -------------------------------------------------
192dnl Public macro.
193dnl
194dnl Performs some sanity checks for LIBS, LDFLAGS,
195dnl CPPFLAGS and CFLAGS values that the user might
196dnl have set. When checks fails, user is noticed
197dnl about errors detected in all of them and script
198dnl execution is halted.
199dnl
200dnl Intended to be used early in configure script.
202AC_DEFUN([XC_CHECK_USER_FLAGS], [
203 AC_PREREQ([2.50])
204 AC_BEFORE([$0],[XC_CHECK_PROG_CC])
205 dnl check order below matters
206 _XC_CHECK_VAR_LIBS
207 _XC_CHECK_VAR_LDFLAGS
208 _XC_CHECK_VAR_CPPFLAGS
209 _XC_CHECK_VAR_CFLAGS
210 if test "$xc_bad_var_libs" = "yes" ||
211 test "$xc_bad_var_cflags" = "yes" ||
212 test "$xc_bad_var_ldflags" = "yes" ||
213 test "$xc_bad_var_cppflags" = "yes"; then
214 AC_MSG_ERROR([Can not continue. Fix errors mentioned immediately above this line.])
215 fi
216])
219dnl XC_CHECK_BUILD_FLAGS
220dnl -------------------------------------------------
221dnl Public macro.
222dnl
223dnl Performs some sanity checks for LIBS, LDFLAGS,
224dnl CPPFLAGS and CFLAGS values that the configure
225dnl script might have set. When checks fails, user
226dnl is noticed about errors detected in all of them
227dnl but script continues execution.
228dnl
229dnl Intended to be used late in configure script.
231AC_DEFUN([XC_CHECK_BUILD_FLAGS], [
232 AC_PREREQ([2.50])
233 dnl check order below matters
234 _XC_CHECK_VAR_LIBS
235 _XC_CHECK_VAR_LDFLAGS
236 _XC_CHECK_VAR_CPPFLAGS
237 _XC_CHECK_VAR_CFLAGS
238 if test "$xc_bad_var_libs" = "yes" ||
239 test "$xc_bad_var_cflags" = "yes" ||
240 test "$xc_bad_var_ldflags" = "yes" ||
241 test "$xc_bad_var_cppflags" = "yes"; then
242 AC_MSG_WARN([Continuing even with errors mentioned immediately above this line.])
243 fi
244])
Diagnostics4 git calls · 146 ms
CallStatusSizeTime0146 ms
discover200152 B2 ms
git.upload-pack discover http.response.status_code=200 git.upstream.cf_ray=- git.upstream.phase=fetch git.upstream.dur_ms=2 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 · hit2 ms
git.upload-pack ls-refs http.response.status_code=200 git.upstream.cf_ray=- git.upstream.phase=ls-refs git.upstream.dur_ms=2 git.response.bytes=149 git.response.cache=HIT git.response.duration_ms=2 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=141 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=86Open pack map
fetch2001.7 KiB141 ms
git.upload-pack fetch http.response.status_code=200 git.response.bytes=1737 git.response.cache=MISS git.response.duration_ms=141 git.fetch.wants=7d3322b512e42c0090b861688358ea7dc586c597 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=1737 git.pkt.payload.max=1716 git.sideband.band1.bytes=1715 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
- a5e383b4eb1a231f
- Request
- b86689b4…
- Protocol
- v2 · sha1
- Agent
- gitty/1.0
- Filter
- advertised
- Fetch
- shallow filter sideband-all
- Capabilities
- agent ls-refs fetch object-format