Codebase list protobuf-c / fresh-snapshots/main
New upstream release. Debian Janitor 2 years ago
63 changed file(s) with 8670 addition(s) and 6534 deletion(s). Raw diff Collapse all Expand all
0 protobuf-c (1.4.0)
1
2 [ Robert Edmonds ]
3 * Release 1.4.0.
4
5 [ Ilya Lipnitsky ]
6 * c_message.cc: Resolve name conflict between certain enums and oneofs
7 (#427).
8 * protobuf-c.h: Fix Windows DLL export issue with the
9 protobuf_c_empty_string symbol (#428).
10 * Standardize pkg-config for use by autotools and cmake, fix cmake tests
11 (#425).
12 * protobuf-c.c: Cast %lu args to unsigned long int (#429).
13 * protoc-c: Remove leading underscores from structs (#430).
14 * protoc-c: Fix shared lib build on windows, migrate from Travis CI to
15 GitHub Actions (#459).
16 * protobuf-c: Don't use ProtobufCWireType internally (#463).
17 * protoc-c: Add custom options support (#466).
18 * protobuf-c.c: Fix packed repeated bool parsing (#467).
19
20 [ Markus Engel ]
21 * Pack nested messages inline (#431).
22
23 [ Daniel Axtens ]
24 * Travis CI: Test on other platforms (#438).
25
26 [ Adam Cozzette ]
27 * Update the generator to fully qualify std::string (#443).
28
29 [ Piotr Pietraszkiewicz ]
30 * Install MSVC debug symbols alongside the protobuf-c.lib file (#456).
31
32 [ ihsinme ]
33 * Fix invalid unsigned arithmetic (#455).
34
35 [ Wolfram Rösler ]
36 * Avoid "unused function parameter" compiler warning (#453).
37
038 protobuf-c (1.3.3)
139
240 [ Robert Edmonds ]
4141 protobuf-c/libprotobuf-c.la
4242
4343 nobase_include_HEADERS += \
44 protobuf-c/protobuf-c.h
44 protobuf-c/protobuf-c.h \
45 protobuf-c/protobuf-c.proto
4546
4647 protobuf_c_libprotobuf_c_la_SOURCES = \
4748 protobuf-c/protobuf-c.c \
9899 protoc-c/c_service.h \
99100 protoc-c/c_string_field.cc \
100101 protoc-c/c_string_field.h \
102 protobuf-c/protobuf-c.pb.cc \
103 protobuf-c/protobuf-c.pb.h \
101104 protoc-c/main.cc
102105 protoc_c_protoc_gen_c_CXXFLAGS = \
103106 $(AM_CXXFLAGS) \
106109 $(protobuf_LIBS) \
107110 -lprotoc
108111
112 protobuf-c/protobuf-c.pb.cc protobuf-c/protobuf-c.pb.h: @PROTOC@ $(top_srcdir)/protobuf-c/protobuf-c.proto
113 $(AM_V_GEN)@PROTOC@ -I$(top_srcdir) --cpp_out=$(top_builddir) $(top_srcdir)/protobuf-c/protobuf-c.proto
114
115 BUILT_SOURCES += \
116 protobuf-c/protobuf-c.pb.cc \
117 protobuf-c/protobuf-c.pb.h
109118 #
110119 # protoc-c compat link
111120 #
154163
155164 t_generated_code2_cxx_generate_packed_data_SOURCES = \
156165 t/generated-code2/cxx-generate-packed-data.cc \
157 t/test-full.pb.cc
166 t/test-full.pb.cc \
167 protobuf-c/protobuf-c.pb.cc
158168 $(t_generated_code2_cxx_generate_packed_data_OBJECTS): t/test-full.pb.h
159169 t_generated_code2_cxx_generate_packed_data_CXXFLAGS = \
160170 $(AM_CXXFLAGS) \
215225 t_version_version_LDADD = \
216226 protobuf-c/libprotobuf-c.la
217227
228 # Issue #204
229 check_PROGRAMS += \
230 t/issue204/issue204
231 TESTS += \
232 t/issue204/issue204
233 t_issue204_issue204_SOURCES = \
234 t/issue204/issue204.c \
235 t/issue204/issue204.pb-c.c
236 t_issue204_issue204_LDADD = \
237 protobuf-c/libprotobuf-c.la
238 t/issue204/issue204.pb-c.c t/issue204/issue204.pb-c.h: $(top_builddir)/protoc-c/protoc-gen-c$(EXEEXT) $(top_srcdir)/t/issue204/issue204.proto
239 $(AM_V_GEN)@PROTOC@ --plugin=protoc-gen-c=$(top_builddir)/protoc-c/protoc-gen-c$(EXEEXT) -I$(top_srcdir) --c_out=$(top_builddir) $(top_srcdir)/t/issue204/issue204.proto
240 BUILT_SOURCES += \
241 t/issue204/issue204.pb-c.c t/issue204/issue204.pb-c.h
242 EXTRA_DIST += \
243 t/issue204/issue204.proto
244
218245 # Issue #220
219246 check_PROGRAMS += \
220247 t/issue220/issue220
264291 $(AM_V_GEN)@PROTOC@ --plugin=protoc-gen-c=$(top_builddir)/protoc-c/protoc-gen-c$(EXEEXT) -I$(top_srcdir) --c_out=$(top_builddir) $(top_srcdir)/t/issue330/issue330.proto
265292 BUILT_SOURCES += \
266293 t/issue330/issue330.pb-c.c t/issue330/issue330.pb-c.h
294
295 t_issue330_issue330_SOURCES += \
296 t/issue389/issue389.pb-c.c # Tack onto issue330 since there is no need for a separate binary here
297 t/issue389/issue389.pb-c.c t/issue389/issue389.pb-c.h: $(top_builddir)/protoc-c/protoc-gen-c$(EXEEXT) $(top_srcdir)/t/issue389/issue389.proto
298 $(AM_V_GEN)@PROTOC@ --plugin=protoc-gen-c=$(top_builddir)/protoc-c/protoc-gen-c$(EXEEXT) -I$(top_srcdir) --c_out=$(top_builddir) $(top_srcdir)/t/issue389/issue389.proto
299 BUILT_SOURCES += \
300 t/issue389/issue389.pb-c.c t/issue389/issue389.pb-c.h
301 EXTRA_DIST += \
302 t/issue389/issue389.proto
303
304 check_PROGRAMS += \
305 t/issue440/issue440
306 TESTS += \
307 t/issue440/issue440
308 t_issue440_issue440_SOURCES = \
309 t/issue440/issue440.c \
310 t/issue440/issue440.pb-c.c
311 t_issue440_issue440_LDADD = \
312 protobuf-c/libprotobuf-c.la
313 t/issue440/issue440.pb-c.c t/issue440/issue440.pb-c.h: $(top_builddir)/protoc-c/protoc-gen-c$(EXEEXT) $(top_srcdir)/t/issue440/issue440.proto
314 $(AM_V_GEN)@PROTOC@ --plugin=protoc-gen-c=$(top_builddir)/protoc-c/protoc-gen-c$(EXEEXT) -I$(top_srcdir) --c_out=$(top_builddir) $(top_srcdir)/t/issue440/issue440.proto
315 BUILT_SOURCES += \
316 t/issue440/issue440.pb-c.c t/issue440/issue440.pb-c.h
317 EXTRA_DIST += \
318 t/issue440/issue440.proto
267319 endif # BUILD_PROTO3
268320 EXTRA_DIST += \
269321 t/issue330/issue330.proto
0 # Makefile.in generated by automake 1.16.1 from Makefile.am.
0 # Makefile.in generated by automake 1.16.5 from Makefile.am.
11 # @configure_input@
22
3 # Copyright (C) 1994-2018 Free Software Foundation, Inc.
3 # Copyright (C) 1994-2021 Free Software Foundation, Inc.
44
55 # This Makefile.in is free software; the Free Software Foundation
66 # gives unlimited permission to copy and/or distribute it,
107107 # protoc-gen-c
108108 #
109109 @BUILD_COMPILER_TRUE@am__append_3 = protoc-c/protoc-gen-c
110 @BUILD_COMPILER_TRUE@@CROSS_COMPILING_FALSE@am__append_4 = \
111 @BUILD_COMPILER_TRUE@@CROSS_COMPILING_FALSE@ t/generated-code/test-generated-code \
112 @BUILD_COMPILER_TRUE@@CROSS_COMPILING_FALSE@ t/generated-code2/test-generated-code2 \
113 @BUILD_COMPILER_TRUE@@CROSS_COMPILING_FALSE@ t/version/version
110 @BUILD_COMPILER_TRUE@am__append_4 = \
111 @BUILD_COMPILER_TRUE@ protobuf-c/protobuf-c.pb.cc \
112 @BUILD_COMPILER_TRUE@ protobuf-c/protobuf-c.pb.h
114113
115114 @BUILD_COMPILER_TRUE@@CROSS_COMPILING_FALSE@am__append_5 = \
116115 @BUILD_COMPILER_TRUE@@CROSS_COMPILING_FALSE@ t/generated-code/test-generated-code \
118117 @BUILD_COMPILER_TRUE@@CROSS_COMPILING_FALSE@ t/version/version
119118
120119 @BUILD_COMPILER_TRUE@@CROSS_COMPILING_FALSE@am__append_6 = \
120 @BUILD_COMPILER_TRUE@@CROSS_COMPILING_FALSE@ t/generated-code/test-generated-code \
121 @BUILD_COMPILER_TRUE@@CROSS_COMPILING_FALSE@ t/generated-code2/test-generated-code2 \
122 @BUILD_COMPILER_TRUE@@CROSS_COMPILING_FALSE@ t/version/version
123
124 @BUILD_COMPILER_TRUE@@CROSS_COMPILING_FALSE@am__append_7 = \
121125 @BUILD_COMPILER_TRUE@@CROSS_COMPILING_FALSE@ t/generated-code2/cxx-generate-packed-data
122126
123 @BUILD_COMPILER_TRUE@@CROSS_COMPILING_FALSE@am__append_7 = \
127 @BUILD_COMPILER_TRUE@@CROSS_COMPILING_FALSE@am__append_8 = \
124128 @BUILD_COMPILER_TRUE@@CROSS_COMPILING_FALSE@ t/test.pb-c.c t/test.pb-c.h \
125129 @BUILD_COMPILER_TRUE@@CROSS_COMPILING_FALSE@ t/test-full.pb-c.c t/test-full.pb-c.h \
126130 @BUILD_COMPILER_TRUE@@CROSS_COMPILING_FALSE@ t/test-optimized.pb-c.c t/test-optimized.pb-c.h \
127131 @BUILD_COMPILER_TRUE@@CROSS_COMPILING_FALSE@ t/test-full.pb.cc t/test-full.pb.h \
128132 @BUILD_COMPILER_TRUE@@CROSS_COMPILING_FALSE@ t/generated-code2/test-full-cxx-output.inc
129133
130 @BUILD_COMPILER_TRUE@@BUILD_PROTO3_TRUE@@CROSS_COMPILING_FALSE@am__append_8 = \
131 @BUILD_COMPILER_TRUE@@BUILD_PROTO3_TRUE@@CROSS_COMPILING_FALSE@ t/generated-code3/test-generated-code3
132
133134 @BUILD_COMPILER_TRUE@@BUILD_PROTO3_TRUE@@CROSS_COMPILING_FALSE@am__append_9 = \
134135 @BUILD_COMPILER_TRUE@@BUILD_PROTO3_TRUE@@CROSS_COMPILING_FALSE@ t/generated-code3/test-generated-code3
135136
136137 @BUILD_COMPILER_TRUE@@BUILD_PROTO3_TRUE@@CROSS_COMPILING_FALSE@am__append_10 = \
138 @BUILD_COMPILER_TRUE@@BUILD_PROTO3_TRUE@@CROSS_COMPILING_FALSE@ t/generated-code3/test-generated-code3
139
140 @BUILD_COMPILER_TRUE@@BUILD_PROTO3_TRUE@@CROSS_COMPILING_FALSE@am__append_11 = \
137141 @BUILD_COMPILER_TRUE@@BUILD_PROTO3_TRUE@@CROSS_COMPILING_FALSE@ t/test-proto3.pb-c.c t/test-proto3.pb-c.h
138142
139143
144 # Issue #204
145
140146 # Issue #220
141147
142148 # Issue #251
143 @BUILD_COMPILER_TRUE@@CROSS_COMPILING_FALSE@am__append_11 = t/issue220/issue220 \
149 @BUILD_COMPILER_TRUE@@CROSS_COMPILING_FALSE@am__append_12 = t/issue204/issue204 \
150 @BUILD_COMPILER_TRUE@@CROSS_COMPILING_FALSE@ t/issue220/issue220 \
144151 @BUILD_COMPILER_TRUE@@CROSS_COMPILING_FALSE@ t/issue251/issue251
145 @BUILD_COMPILER_TRUE@@CROSS_COMPILING_FALSE@am__append_12 = t/issue220/issue220 \
152 @BUILD_COMPILER_TRUE@@CROSS_COMPILING_FALSE@am__append_13 = t/issue204/issue204 \
153 @BUILD_COMPILER_TRUE@@CROSS_COMPILING_FALSE@ t/issue220/issue220 \
146154 @BUILD_COMPILER_TRUE@@CROSS_COMPILING_FALSE@ t/issue251/issue251
147 @BUILD_COMPILER_TRUE@@CROSS_COMPILING_FALSE@am__append_13 = t/issue220/issue220.pb-c.c \
155 @BUILD_COMPILER_TRUE@@CROSS_COMPILING_FALSE@am__append_14 = t/issue204/issue204.pb-c.c \
156 @BUILD_COMPILER_TRUE@@CROSS_COMPILING_FALSE@ t/issue204/issue204.pb-c.h \
157 @BUILD_COMPILER_TRUE@@CROSS_COMPILING_FALSE@ t/issue220/issue220.pb-c.c \
148158 @BUILD_COMPILER_TRUE@@CROSS_COMPILING_FALSE@ t/issue220/issue220.pb-c.h \
149159 @BUILD_COMPILER_TRUE@@CROSS_COMPILING_FALSE@ t/issue251/issue251.pb-c.c \
150160 @BUILD_COMPILER_TRUE@@CROSS_COMPILING_FALSE@ t/issue251/issue251.pb-c.h
151 @BUILD_COMPILER_TRUE@@CROSS_COMPILING_FALSE@am__append_14 = t/issue220/issue220.proto \
152 @BUILD_COMPILER_TRUE@@CROSS_COMPILING_FALSE@ t/issue251/issue251.proto \
153 @BUILD_COMPILER_TRUE@@CROSS_COMPILING_FALSE@ t/issue330/issue330.proto \
161 @BUILD_COMPILER_TRUE@@CROSS_COMPILING_FALSE@am__append_15 = t/issue204/issue204.proto \
162 @BUILD_COMPILER_TRUE@@CROSS_COMPILING_FALSE@ t/issue220/issue220.proto \
163 @BUILD_COMPILER_TRUE@@CROSS_COMPILING_FALSE@ t/issue251/issue251.proto
164
165 # Issue #330
166 @BUILD_COMPILER_TRUE@@BUILD_PROTO3_TRUE@@CROSS_COMPILING_FALSE@am__append_16 = t/issue330/issue330 \
167 @BUILD_COMPILER_TRUE@@BUILD_PROTO3_TRUE@@CROSS_COMPILING_FALSE@ t/issue440/issue440
168 @BUILD_COMPILER_TRUE@@BUILD_PROTO3_TRUE@@CROSS_COMPILING_FALSE@am__append_17 = t/issue330/issue330 \
169 @BUILD_COMPILER_TRUE@@BUILD_PROTO3_TRUE@@CROSS_COMPILING_FALSE@ t/issue440/issue440
170 @BUILD_COMPILER_TRUE@@BUILD_PROTO3_TRUE@@CROSS_COMPILING_FALSE@am__append_18 = t/issue330/issue330.pb-c.c \
171 @BUILD_COMPILER_TRUE@@BUILD_PROTO3_TRUE@@CROSS_COMPILING_FALSE@ t/issue330/issue330.pb-c.h \
172 @BUILD_COMPILER_TRUE@@BUILD_PROTO3_TRUE@@CROSS_COMPILING_FALSE@ t/issue389/issue389.pb-c.c \
173 @BUILD_COMPILER_TRUE@@BUILD_PROTO3_TRUE@@CROSS_COMPILING_FALSE@ t/issue389/issue389.pb-c.h \
174 @BUILD_COMPILER_TRUE@@BUILD_PROTO3_TRUE@@CROSS_COMPILING_FALSE@ t/issue440/issue440.pb-c.c \
175 @BUILD_COMPILER_TRUE@@BUILD_PROTO3_TRUE@@CROSS_COMPILING_FALSE@ t/issue440/issue440.pb-c.h
176 @BUILD_COMPILER_TRUE@@BUILD_PROTO3_TRUE@@CROSS_COMPILING_FALSE@am__append_19 = t/issue389/issue389.proto \
177 @BUILD_COMPILER_TRUE@@BUILD_PROTO3_TRUE@@CROSS_COMPILING_FALSE@ t/issue440/issue440.proto
178 @BUILD_COMPILER_TRUE@@CROSS_COMPILING_FALSE@am__append_20 = t/issue330/issue330.proto \
154179 @BUILD_COMPILER_TRUE@@CROSS_COMPILING_FALSE@ t/issue375/issue375.proto
155180
156 # Issue #330
157 @BUILD_COMPILER_TRUE@@BUILD_PROTO3_TRUE@@CROSS_COMPILING_FALSE@am__append_15 = \
158 @BUILD_COMPILER_TRUE@@BUILD_PROTO3_TRUE@@CROSS_COMPILING_FALSE@ t/issue330/issue330
159
160 @BUILD_COMPILER_TRUE@@BUILD_PROTO3_TRUE@@CROSS_COMPILING_FALSE@am__append_16 = \
161 @BUILD_COMPILER_TRUE@@BUILD_PROTO3_TRUE@@CROSS_COMPILING_FALSE@ t/issue330/issue330
162
163 @BUILD_COMPILER_TRUE@@BUILD_PROTO3_TRUE@@CROSS_COMPILING_FALSE@am__append_17 = \
164 @BUILD_COMPILER_TRUE@@BUILD_PROTO3_TRUE@@CROSS_COMPILING_FALSE@ t/issue330/issue330.pb-c.c t/issue330/issue330.pb-c.h
165
166
167181 # Issue #375
168 @BUILD_COMPILER_TRUE@@CROSS_COMPILING_FALSE@am__append_18 = \
182 @BUILD_COMPILER_TRUE@@CROSS_COMPILING_FALSE@am__append_21 = \
169183 @BUILD_COMPILER_TRUE@@CROSS_COMPILING_FALSE@ t/issue375/issue375
170184
171 @BUILD_COMPILER_TRUE@@CROSS_COMPILING_FALSE@am__append_19 = \
185 @BUILD_COMPILER_TRUE@@CROSS_COMPILING_FALSE@am__append_22 = \
172186 @BUILD_COMPILER_TRUE@@CROSS_COMPILING_FALSE@ t/issue375/issue375
173187
174 @BUILD_COMPILER_TRUE@@CROSS_COMPILING_FALSE@am__append_20 = \
188 @BUILD_COMPILER_TRUE@@CROSS_COMPILING_FALSE@am__append_23 = \
175189 @BUILD_COMPILER_TRUE@@CROSS_COMPILING_FALSE@ t/issue375/issue375.pb-c.c t/issue375/issue375.pb-c.h
176190
177191 subdir = .
202216 @BUILD_COMPILER_TRUE@@CROSS_COMPILING_FALSE@ t/generated-code2/test-generated-code2$(EXEEXT) \
203217 @BUILD_COMPILER_TRUE@@CROSS_COMPILING_FALSE@ t/version/version$(EXEEXT)
204218 @BUILD_COMPILER_TRUE@@BUILD_PROTO3_TRUE@@CROSS_COMPILING_FALSE@am__EXEEXT_3 = t/generated-code3/test-generated-code3$(EXEEXT)
205 @BUILD_COMPILER_TRUE@@CROSS_COMPILING_FALSE@am__EXEEXT_4 = t/issue220/issue220$(EXEEXT) \
219 @BUILD_COMPILER_TRUE@@CROSS_COMPILING_FALSE@am__EXEEXT_4 = t/issue204/issue204$(EXEEXT) \
220 @BUILD_COMPILER_TRUE@@CROSS_COMPILING_FALSE@ t/issue220/issue220$(EXEEXT) \
206221 @BUILD_COMPILER_TRUE@@CROSS_COMPILING_FALSE@ t/issue251/issue251$(EXEEXT)
207 @BUILD_COMPILER_TRUE@@BUILD_PROTO3_TRUE@@CROSS_COMPILING_FALSE@am__EXEEXT_5 = t/issue330/issue330$(EXEEXT)
222 @BUILD_COMPILER_TRUE@@BUILD_PROTO3_TRUE@@CROSS_COMPILING_FALSE@am__EXEEXT_5 = t/issue330/issue330$(EXEEXT) \
223 @BUILD_COMPILER_TRUE@@BUILD_PROTO3_TRUE@@CROSS_COMPILING_FALSE@ t/issue440/issue440$(EXEEXT)
208224 @BUILD_COMPILER_TRUE@@CROSS_COMPILING_FALSE@am__EXEEXT_6 = t/issue375/issue375$(EXEEXT)
209225 @BUILD_COMPILER_TRUE@@CROSS_COMPILING_FALSE@am__EXEEXT_7 = t/generated-code2/cxx-generate-packed-data$(EXEEXT)
210226 PROGRAMS = $(bin_PROGRAMS) $(noinst_PROGRAMS)
261277 protoc-c/c_message_field.h protoc-c/c_primitive_field.cc \
262278 protoc-c/c_primitive_field.h protoc-c/c_service.cc \
263279 protoc-c/c_service.h protoc-c/c_string_field.cc \
264 protoc-c/c_string_field.h protoc-c/main.cc
280 protoc-c/c_string_field.h protobuf-c/protobuf-c.pb.cc \
281 protobuf-c/protobuf-c.pb.h protoc-c/main.cc
265282 @BUILD_COMPILER_TRUE@am_protoc_c_protoc_gen_c_OBJECTS = protoc-c/protoc_gen_c-c_bytes_field.$(OBJEXT) \
266283 @BUILD_COMPILER_TRUE@ protoc-c/protoc_gen_c-c_enum.$(OBJEXT) \
267284 @BUILD_COMPILER_TRUE@ protoc-c/protoc_gen_c-c_enum_field.$(OBJEXT) \
275292 @BUILD_COMPILER_TRUE@ protoc-c/protoc_gen_c-c_primitive_field.$(OBJEXT) \
276293 @BUILD_COMPILER_TRUE@ protoc-c/protoc_gen_c-c_service.$(OBJEXT) \
277294 @BUILD_COMPILER_TRUE@ protoc-c/protoc_gen_c-c_string_field.$(OBJEXT) \
295 @BUILD_COMPILER_TRUE@ protobuf-c/protoc_c_protoc_gen_c-protobuf-c.pb.$(OBJEXT) \
278296 @BUILD_COMPILER_TRUE@ protoc-c/protoc_gen_c-main.$(OBJEXT)
279297 protoc_c_protoc_gen_c_OBJECTS = $(am_protoc_c_protoc_gen_c_OBJECTS)
280298 am__DEPENDENCIES_1 =
293311 @BUILD_COMPILER_TRUE@@CROSS_COMPILING_FALSE@t_generated_code_test_generated_code_DEPENDENCIES = protobuf-c/libprotobuf-c.la
294312 am__t_generated_code2_cxx_generate_packed_data_SOURCES_DIST = \
295313 t/generated-code2/cxx-generate-packed-data.cc \
296 t/test-full.pb.cc
314 t/test-full.pb.cc protobuf-c/protobuf-c.pb.cc
297315 @BUILD_COMPILER_TRUE@@CROSS_COMPILING_FALSE@am_t_generated_code2_cxx_generate_packed_data_OBJECTS = t/generated-code2/cxx_generate_packed_data-cxx-generate-packed-data.$(OBJEXT) \
298 @BUILD_COMPILER_TRUE@@CROSS_COMPILING_FALSE@ t/generated_code2_cxx_generate_packed_data-test-full.pb.$(OBJEXT)
316 @BUILD_COMPILER_TRUE@@CROSS_COMPILING_FALSE@ t/generated_code2_cxx_generate_packed_data-test-full.pb.$(OBJEXT) \
317 @BUILD_COMPILER_TRUE@@CROSS_COMPILING_FALSE@ protobuf-c/t_generated_code2_cxx_generate_packed_data-protobuf-c.pb.$(OBJEXT)
299318 t_generated_code2_cxx_generate_packed_data_OBJECTS = \
300319 $(am_t_generated_code2_cxx_generate_packed_data_OBJECTS)
301320 @BUILD_COMPILER_TRUE@@CROSS_COMPILING_FALSE@t_generated_code2_cxx_generate_packed_data_DEPENDENCIES = $(am__DEPENDENCIES_1)
320339 t_generated_code3_test_generated_code3_OBJECTS = \
321340 $(am_t_generated_code3_test_generated_code3_OBJECTS)
322341 @BUILD_COMPILER_TRUE@@BUILD_PROTO3_TRUE@@CROSS_COMPILING_FALSE@t_generated_code3_test_generated_code3_DEPENDENCIES = protobuf-c/libprotobuf-c.la
342 am__t_issue204_issue204_SOURCES_DIST = t/issue204/issue204.c \
343 t/issue204/issue204.pb-c.c
344 @BUILD_COMPILER_TRUE@@CROSS_COMPILING_FALSE@am_t_issue204_issue204_OBJECTS = t/issue204/issue204.$(OBJEXT) \
345 @BUILD_COMPILER_TRUE@@CROSS_COMPILING_FALSE@ t/issue204/issue204.pb-c.$(OBJEXT)
346 t_issue204_issue204_OBJECTS = $(am_t_issue204_issue204_OBJECTS)
347 @BUILD_COMPILER_TRUE@@CROSS_COMPILING_FALSE@t_issue204_issue204_DEPENDENCIES = protobuf-c/libprotobuf-c.la
323348 am__t_issue220_issue220_SOURCES_DIST = t/issue220/issue220.c \
324349 t/issue220/issue220.pb-c.c
325350 @BUILD_COMPILER_TRUE@@CROSS_COMPILING_FALSE@am_t_issue220_issue220_OBJECTS = t/issue220/issue220.$(OBJEXT) \
333358 t_issue251_issue251_OBJECTS = $(am_t_issue251_issue251_OBJECTS)
334359 @BUILD_COMPILER_TRUE@@CROSS_COMPILING_FALSE@t_issue251_issue251_DEPENDENCIES = protobuf-c/libprotobuf-c.la
335360 am__t_issue330_issue330_SOURCES_DIST = t/issue330/issue330.c \
336 t/issue330/issue330.pb-c.c
361 t/issue330/issue330.pb-c.c t/issue389/issue389.pb-c.c
337362 @BUILD_COMPILER_TRUE@@BUILD_PROTO3_TRUE@@CROSS_COMPILING_FALSE@am_t_issue330_issue330_OBJECTS = t/issue330/issue330.$(OBJEXT) \
338 @BUILD_COMPILER_TRUE@@BUILD_PROTO3_TRUE@@CROSS_COMPILING_FALSE@ t/issue330/issue330.pb-c.$(OBJEXT)
363 @BUILD_COMPILER_TRUE@@BUILD_PROTO3_TRUE@@CROSS_COMPILING_FALSE@ t/issue330/issue330.pb-c.$(OBJEXT) \
364 @BUILD_COMPILER_TRUE@@BUILD_PROTO3_TRUE@@CROSS_COMPILING_FALSE@ t/issue389/issue389.pb-c.$(OBJEXT)
339365 t_issue330_issue330_OBJECTS = $(am_t_issue330_issue330_OBJECTS)
340366 @BUILD_COMPILER_TRUE@@BUILD_PROTO3_TRUE@@CROSS_COMPILING_FALSE@t_issue330_issue330_DEPENDENCIES = protobuf-c/libprotobuf-c.la
341367 am__t_issue375_issue375_SOURCES_DIST = t/issue375/issue375.c \
344370 @BUILD_COMPILER_TRUE@@CROSS_COMPILING_FALSE@ t/issue375/issue375.pb-c.$(OBJEXT)
345371 t_issue375_issue375_OBJECTS = $(am_t_issue375_issue375_OBJECTS)
346372 @BUILD_COMPILER_TRUE@@CROSS_COMPILING_FALSE@t_issue375_issue375_DEPENDENCIES = protobuf-c/libprotobuf-c.la
373 am__t_issue440_issue440_SOURCES_DIST = t/issue440/issue440.c \
374 t/issue440/issue440.pb-c.c
375 @BUILD_COMPILER_TRUE@@BUILD_PROTO3_TRUE@@CROSS_COMPILING_FALSE@am_t_issue440_issue440_OBJECTS = t/issue440/issue440.$(OBJEXT) \
376 @BUILD_COMPILER_TRUE@@BUILD_PROTO3_TRUE@@CROSS_COMPILING_FALSE@ t/issue440/issue440.pb-c.$(OBJEXT)
377 t_issue440_issue440_OBJECTS = $(am_t_issue440_issue440_OBJECTS)
378 @BUILD_COMPILER_TRUE@@BUILD_PROTO3_TRUE@@CROSS_COMPILING_FALSE@t_issue440_issue440_DEPENDENCIES = protobuf-c/libprotobuf-c.la
347379 am__t_version_version_SOURCES_DIST = t/version/version.c
348380 @BUILD_COMPILER_TRUE@@CROSS_COMPILING_FALSE@am_t_version_version_OBJECTS = t/version/version.$(OBJEXT)
349381 t_version_version_OBJECTS = $(am_t_version_version_OBJECTS)
364396 depcomp = $(SHELL) $(top_srcdir)/build-aux/depcomp
365397 am__maybe_remake_depfiles = depfiles
366398 am__depfiles_remade = protobuf-c/$(DEPDIR)/protobuf-c.Plo \
399 protobuf-c/$(DEPDIR)/protoc_c_protoc_gen_c-protobuf-c.pb.Po \
400 protobuf-c/$(DEPDIR)/t_generated_code2_cxx_generate_packed_data-protobuf-c.pb.Po \
367401 protoc-c/$(DEPDIR)/protoc_gen_c-c_bytes_field.Po \
368402 protoc-c/$(DEPDIR)/protoc_gen_c-c_enum.Po \
369403 protoc-c/$(DEPDIR)/protoc_gen_c-c_enum_field.Po \
386420 t/generated-code/$(DEPDIR)/test-generated-code.Po \
387421 t/generated-code2/$(DEPDIR)/cxx_generate_packed_data-cxx-generate-packed-data.Po \
388422 t/generated-code2/$(DEPDIR)/test-generated-code2.Po \
423 t/issue204/$(DEPDIR)/issue204.Po \
424 t/issue204/$(DEPDIR)/issue204.pb-c.Po \
389425 t/issue220/$(DEPDIR)/issue220.Po \
390426 t/issue220/$(DEPDIR)/issue220.pb-c.Po \
391427 t/issue251/$(DEPDIR)/issue251.Po \
394430 t/issue330/$(DEPDIR)/issue330.pb-c.Po \
395431 t/issue375/$(DEPDIR)/issue375.Po \
396432 t/issue375/$(DEPDIR)/issue375.pb-c.Po \
433 t/issue389/$(DEPDIR)/issue389.pb-c.Po \
434 t/issue440/$(DEPDIR)/issue440.Po \
435 t/issue440/$(DEPDIR)/issue440.pb-c.Po \
397436 t/version/$(DEPDIR)/version.Po
398437 am__mv = mv -f
399438 COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
438477 $(t_generated_code2_cxx_generate_packed_data_SOURCES) \
439478 $(t_generated_code2_test_generated_code2_SOURCES) \
440479 $(t_generated_code3_test_generated_code3_SOURCES) \
441 $(t_issue220_issue220_SOURCES) $(t_issue251_issue251_SOURCES) \
442 $(t_issue330_issue330_SOURCES) $(t_issue375_issue375_SOURCES) \
480 $(t_issue204_issue204_SOURCES) $(t_issue220_issue220_SOURCES) \
481 $(t_issue251_issue251_SOURCES) $(t_issue330_issue330_SOURCES) \
482 $(t_issue375_issue375_SOURCES) $(t_issue440_issue440_SOURCES) \
443483 $(t_version_version_SOURCES)
444484 DIST_SOURCES = $(protobuf_c_libprotobuf_c_la_SOURCES) \
445485 $(am__protoc_c_protoc_gen_c_SOURCES_DIST) \
447487 $(am__t_generated_code2_cxx_generate_packed_data_SOURCES_DIST) \
448488 $(am__t_generated_code2_test_generated_code2_SOURCES_DIST) \
449489 $(am__t_generated_code3_test_generated_code3_SOURCES_DIST) \
490 $(am__t_issue204_issue204_SOURCES_DIST) \
450491 $(am__t_issue220_issue220_SOURCES_DIST) \
451492 $(am__t_issue251_issue251_SOURCES_DIST) \
452493 $(am__t_issue330_issue330_SOURCES_DIST) \
453494 $(am__t_issue375_issue375_SOURCES_DIST) \
495 $(am__t_issue440_issue440_SOURCES_DIST) \
454496 $(am__t_version_version_SOURCES_DIST)
455497 am__can_run_installinfo = \
456498 case $$AM_UPDATE_INFO_DIR in \
459501 esac
460502 DATA = $(pkgconfig_DATA)
461503 HEADERS = $(nobase_include_HEADERS)
462 am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) \
463 $(LISP)config.h.in
504 am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) \
505 config.h.in
464506 # Read a list of newline-separated strings from the standard input,
465507 # and print each of them once, without duplicates. Input order is
466508 # *not* preserved.
477519 unique=`for i in $$list; do \
478520 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
479521 done | $(am__uniquify_input)`
480 ETAGS = etags
481 CTAGS = ctags
482 CSCOPE = cscope
483522 AM_RECURSIVE_TARGETS = cscope check recheck
484523 am__tty_colors_dummy = \
485524 mgn= red= grn= lgn= blu= brg= std=; \
636675 bases='$(TEST_LOGS)'; \
637676 bases=`for i in $$bases; do echo $$i; done | sed 's/\.log$$//'`; \
638677 bases=`echo $$bases`
678 AM_TESTSUITE_SUMMARY_HEADER = ' for $(PACKAGE_STRING)'
639679 RECHECK_LOGS = $(TEST_LOGS)
640680 TEST_SUITE_LOG = test-suite.log
641681 TEST_EXTENSIONS = @EXEEXT@ .test
666706 $(top_srcdir)/build-aux/ltmain.sh \
667707 $(top_srcdir)/build-aux/missing \
668708 $(top_srcdir)/build-aux/test-driver \
669 $(top_srcdir)/protobuf-c/libprotobuf-c.pc.in ChangeLog TODO \
670 build-aux/compile build-aux/config.guess build-aux/config.sub \
671 build-aux/depcomp build-aux/install-sh build-aux/ltmain.sh \
672 build-aux/missing
709 $(top_srcdir)/protobuf-c/libprotobuf-c.pc.in ChangeLog \
710 README.md TODO build-aux/compile build-aux/config.guess \
711 build-aux/config.sub build-aux/depcomp build-aux/install-sh \
712 build-aux/ltmain.sh build-aux/missing
673713 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
674714 distdir = $(PACKAGE)-$(VERSION)
675715 top_distdir = $(distdir)
683723 DIST_ARCHIVES = $(distdir).tar.gz
684724 GZIP_ENV = --best
685725 DIST_TARGETS = dist-gzip
726 # Exists only to be overridden by the user if desired.
727 AM_DISTCHECK_DVI_TARGET = dvi
686728 distuninstallcheck_listfiles = find . -type f -print
687729 am__distuninstallcheck_listfiles = $(distuninstallcheck_listfiles) \
688730 | sed 's|^\./|$(prefix)/|' | grep -v '$(infodir)/dir$$'
701743 CODE_COVERAGE_CFLAGS = @CODE_COVERAGE_CFLAGS@
702744 CODE_COVERAGE_ENABLED = @CODE_COVERAGE_ENABLED@
703745 CODE_COVERAGE_LDFLAGS = @CODE_COVERAGE_LDFLAGS@
704 CPP = @CPP@
705746 CPPFLAGS = @CPPFLAGS@
747 CSCOPE = @CSCOPE@
748 CTAGS = @CTAGS@
706749 CXX = @CXX@
707750 CXXCPP = @CXXCPP@
708751 CXXDEPMODE = @CXXDEPMODE@
719762 ECHO_N = @ECHO_N@
720763 ECHO_T = @ECHO_T@
721764 EGREP = @EGREP@
765 ETAGS = @ETAGS@
722766 EXEEXT = @EXEEXT@
723767 FGREP = @FGREP@
768 FILECMD = @FILECMD@
724769 GENHTML = @GENHTML@
725770 GREP = @GREP@
726771 HAVE_CXX11 = @HAVE_CXX11@
827872 top_builddir = @top_builddir@
828873 top_srcdir = @top_srcdir@
829874 lib_LTLIBRARIES = protobuf-c/libprotobuf-c.la
830 nobase_include_HEADERS = protobuf-c/protobuf-c.h
875 nobase_include_HEADERS = protobuf-c/protobuf-c.h \
876 protobuf-c/protobuf-c.proto
831877 pkgconfig_DATA = protobuf-c/libprotobuf-c.pc
832 BUILT_SOURCES = $(am__append_7) $(am__append_10) $(am__append_13) \
833 $(am__append_17) $(am__append_20)
878 BUILT_SOURCES = $(am__append_4) $(am__append_8) $(am__append_11) \
879 $(am__append_14) $(am__append_18) $(am__append_23)
834880
835881 #
836882 #
838884 CLEANFILES = protobuf-c/libprotobuf-c.pc $(BUILT_SOURCES)
839885 DISTCLEANFILES =
840886 EXTRA_DIST = LICENSE README.md protobuf-c/libprotobuf-c.sym \
841 protobuf-c/libprotobuf-c.pc.in $(am__append_14) t/test.proto \
887 protobuf-c/libprotobuf-c.pc.in $(am__append_15) \
888 $(am__append_19) $(am__append_20) t/test.proto \
842889 t/test-full.proto t/test-optimized.proto t/test-proto3.proto \
843890 t/generated-code2/common-test-arrays.h Doxyfile.in \
844891 DoxygenLayout.xml build-cmake/CMakeLists.txt
896943 @BUILD_COMPILER_TRUE@ protoc-c/c_service.h \
897944 @BUILD_COMPILER_TRUE@ protoc-c/c_string_field.cc \
898945 @BUILD_COMPILER_TRUE@ protoc-c/c_string_field.h \
946 @BUILD_COMPILER_TRUE@ protobuf-c/protobuf-c.pb.cc \
947 @BUILD_COMPILER_TRUE@ protobuf-c/protobuf-c.pb.h \
899948 @BUILD_COMPILER_TRUE@ protoc-c/main.cc
900949
901950 @BUILD_COMPILER_TRUE@protoc_c_protoc_gen_c_CXXFLAGS = \
932981
933982 @BUILD_COMPILER_TRUE@@CROSS_COMPILING_FALSE@t_generated_code2_cxx_generate_packed_data_SOURCES = \
934983 @BUILD_COMPILER_TRUE@@CROSS_COMPILING_FALSE@ t/generated-code2/cxx-generate-packed-data.cc \
935 @BUILD_COMPILER_TRUE@@CROSS_COMPILING_FALSE@ t/test-full.pb.cc
984 @BUILD_COMPILER_TRUE@@CROSS_COMPILING_FALSE@ t/test-full.pb.cc \
985 @BUILD_COMPILER_TRUE@@CROSS_COMPILING_FALSE@ protobuf-c/protobuf-c.pb.cc
936986
937987 @BUILD_COMPILER_TRUE@@CROSS_COMPILING_FALSE@t_generated_code2_cxx_generate_packed_data_CXXFLAGS = \
938988 @BUILD_COMPILER_TRUE@@CROSS_COMPILING_FALSE@ $(AM_CXXFLAGS) \
9571007 @BUILD_COMPILER_TRUE@@CROSS_COMPILING_FALSE@t_version_version_LDADD = \
9581008 @BUILD_COMPILER_TRUE@@CROSS_COMPILING_FALSE@ protobuf-c/libprotobuf-c.la
9591009
1010 @BUILD_COMPILER_TRUE@@CROSS_COMPILING_FALSE@t_issue204_issue204_SOURCES = \
1011 @BUILD_COMPILER_TRUE@@CROSS_COMPILING_FALSE@ t/issue204/issue204.c \
1012 @BUILD_COMPILER_TRUE@@CROSS_COMPILING_FALSE@ t/issue204/issue204.pb-c.c
1013
1014 @BUILD_COMPILER_TRUE@@CROSS_COMPILING_FALSE@t_issue204_issue204_LDADD = \
1015 @BUILD_COMPILER_TRUE@@CROSS_COMPILING_FALSE@ protobuf-c/libprotobuf-c.la
1016
9601017 @BUILD_COMPILER_TRUE@@CROSS_COMPILING_FALSE@t_issue220_issue220_SOURCES = \
9611018 @BUILD_COMPILER_TRUE@@CROSS_COMPILING_FALSE@ t/issue220/issue220.c \
9621019 @BUILD_COMPILER_TRUE@@CROSS_COMPILING_FALSE@ t/issue220/issue220.pb-c.c
9711028 @BUILD_COMPILER_TRUE@@CROSS_COMPILING_FALSE@t_issue251_issue251_LDADD = \
9721029 @BUILD_COMPILER_TRUE@@CROSS_COMPILING_FALSE@ protobuf-c/libprotobuf-c.la
9731030
974 @BUILD_COMPILER_TRUE@@BUILD_PROTO3_TRUE@@CROSS_COMPILING_FALSE@t_issue330_issue330_SOURCES = \
975 @BUILD_COMPILER_TRUE@@BUILD_PROTO3_TRUE@@CROSS_COMPILING_FALSE@ t/issue330/issue330.c \
976 @BUILD_COMPILER_TRUE@@BUILD_PROTO3_TRUE@@CROSS_COMPILING_FALSE@ t/issue330/issue330.pb-c.c
977
1031 @BUILD_COMPILER_TRUE@@BUILD_PROTO3_TRUE@@CROSS_COMPILING_FALSE@t_issue330_issue330_SOURCES = t/issue330/issue330.c \
1032 @BUILD_COMPILER_TRUE@@BUILD_PROTO3_TRUE@@CROSS_COMPILING_FALSE@ t/issue330/issue330.pb-c.c \
1033 @BUILD_COMPILER_TRUE@@BUILD_PROTO3_TRUE@@CROSS_COMPILING_FALSE@ t/issue389/issue389.pb-c.c \
1034 @BUILD_COMPILER_TRUE@@BUILD_PROTO3_TRUE@@CROSS_COMPILING_FALSE@ # \
1035 @BUILD_COMPILER_TRUE@@BUILD_PROTO3_TRUE@@CROSS_COMPILING_FALSE@ Tack \
1036 @BUILD_COMPILER_TRUE@@BUILD_PROTO3_TRUE@@CROSS_COMPILING_FALSE@ onto \
1037 @BUILD_COMPILER_TRUE@@BUILD_PROTO3_TRUE@@CROSS_COMPILING_FALSE@ issue330 \
1038 @BUILD_COMPILER_TRUE@@BUILD_PROTO3_TRUE@@CROSS_COMPILING_FALSE@ since \
1039 @BUILD_COMPILER_TRUE@@BUILD_PROTO3_TRUE@@CROSS_COMPILING_FALSE@ there \
1040 @BUILD_COMPILER_TRUE@@BUILD_PROTO3_TRUE@@CROSS_COMPILING_FALSE@ is \
1041 @BUILD_COMPILER_TRUE@@BUILD_PROTO3_TRUE@@CROSS_COMPILING_FALSE@ no \
1042 @BUILD_COMPILER_TRUE@@BUILD_PROTO3_TRUE@@CROSS_COMPILING_FALSE@ need \
1043 @BUILD_COMPILER_TRUE@@BUILD_PROTO3_TRUE@@CROSS_COMPILING_FALSE@ for \
1044 @BUILD_COMPILER_TRUE@@BUILD_PROTO3_TRUE@@CROSS_COMPILING_FALSE@ a \
1045 @BUILD_COMPILER_TRUE@@BUILD_PROTO3_TRUE@@CROSS_COMPILING_FALSE@ separate \
1046 @BUILD_COMPILER_TRUE@@BUILD_PROTO3_TRUE@@CROSS_COMPILING_FALSE@ binary \
1047 @BUILD_COMPILER_TRUE@@BUILD_PROTO3_TRUE@@CROSS_COMPILING_FALSE@ here
9781048 @BUILD_COMPILER_TRUE@@BUILD_PROTO3_TRUE@@CROSS_COMPILING_FALSE@t_issue330_issue330_LDADD = \
1049 @BUILD_COMPILER_TRUE@@BUILD_PROTO3_TRUE@@CROSS_COMPILING_FALSE@ protobuf-c/libprotobuf-c.la
1050
1051 @BUILD_COMPILER_TRUE@@BUILD_PROTO3_TRUE@@CROSS_COMPILING_FALSE@t_issue440_issue440_SOURCES = \
1052 @BUILD_COMPILER_TRUE@@BUILD_PROTO3_TRUE@@CROSS_COMPILING_FALSE@ t/issue440/issue440.c \
1053 @BUILD_COMPILER_TRUE@@BUILD_PROTO3_TRUE@@CROSS_COMPILING_FALSE@ t/issue440/issue440.pb-c.c
1054
1055 @BUILD_COMPILER_TRUE@@BUILD_PROTO3_TRUE@@CROSS_COMPILING_FALSE@t_issue440_issue440_LDADD = \
9791056 @BUILD_COMPILER_TRUE@@BUILD_PROTO3_TRUE@@CROSS_COMPILING_FALSE@ protobuf-c/libprotobuf-c.la
9801057
9811058 @BUILD_COMPILER_TRUE@@CROSS_COMPILING_FALSE@t_issue375_issue375_SOURCES = \
11871264 protoc-c/$(DEPDIR)/$(am__dirstamp)
11881265 protoc-c/protoc_gen_c-c_string_field.$(OBJEXT): \
11891266 protoc-c/$(am__dirstamp) protoc-c/$(DEPDIR)/$(am__dirstamp)
1267 protobuf-c/protoc_c_protoc_gen_c-protobuf-c.pb.$(OBJEXT): \
1268 protobuf-c/$(am__dirstamp) \
1269 protobuf-c/$(DEPDIR)/$(am__dirstamp)
11901270 protoc-c/protoc_gen_c-main.$(OBJEXT): protoc-c/$(am__dirstamp) \
11911271 protoc-c/$(DEPDIR)/$(am__dirstamp)
11921272
12241304 t/generated-code2/$(DEPDIR)/$(am__dirstamp)
12251305 t/generated_code2_cxx_generate_packed_data-test-full.pb.$(OBJEXT): \
12261306 t/$(am__dirstamp) t/$(DEPDIR)/$(am__dirstamp)
1307 protobuf-c/t_generated_code2_cxx_generate_packed_data-protobuf-c.pb.$(OBJEXT): \
1308 protobuf-c/$(am__dirstamp) \
1309 protobuf-c/$(DEPDIR)/$(am__dirstamp)
12271310
12281311 t/generated-code2/cxx-generate-packed-data$(EXEEXT): $(t_generated_code2_cxx_generate_packed_data_OBJECTS) $(t_generated_code2_cxx_generate_packed_data_DEPENDENCIES) $(EXTRA_t_generated_code2_cxx_generate_packed_data_DEPENDENCIES) t/generated-code2/$(am__dirstamp)
12291312 @rm -f t/generated-code2/cxx-generate-packed-data$(EXEEXT)
12511334 t/generated-code3/test-generated-code3$(EXEEXT): $(t_generated_code3_test_generated_code3_OBJECTS) $(t_generated_code3_test_generated_code3_DEPENDENCIES) $(EXTRA_t_generated_code3_test_generated_code3_DEPENDENCIES) t/generated-code3/$(am__dirstamp)
12521335 @rm -f t/generated-code3/test-generated-code3$(EXEEXT)
12531336 $(AM_V_CCLD)$(LINK) $(t_generated_code3_test_generated_code3_OBJECTS) $(t_generated_code3_test_generated_code3_LDADD) $(LIBS)
1337 t/issue204/$(am__dirstamp):
1338 @$(MKDIR_P) t/issue204
1339 @: > t/issue204/$(am__dirstamp)
1340 t/issue204/$(DEPDIR)/$(am__dirstamp):
1341 @$(MKDIR_P) t/issue204/$(DEPDIR)
1342 @: > t/issue204/$(DEPDIR)/$(am__dirstamp)
1343 t/issue204/issue204.$(OBJEXT): t/issue204/$(am__dirstamp) \
1344 t/issue204/$(DEPDIR)/$(am__dirstamp)
1345 t/issue204/issue204.pb-c.$(OBJEXT): t/issue204/$(am__dirstamp) \
1346 t/issue204/$(DEPDIR)/$(am__dirstamp)
1347
1348 t/issue204/issue204$(EXEEXT): $(t_issue204_issue204_OBJECTS) $(t_issue204_issue204_DEPENDENCIES) $(EXTRA_t_issue204_issue204_DEPENDENCIES) t/issue204/$(am__dirstamp)
1349 @rm -f t/issue204/issue204$(EXEEXT)
1350 $(AM_V_CCLD)$(LINK) $(t_issue204_issue204_OBJECTS) $(t_issue204_issue204_LDADD) $(LIBS)
12541351 t/issue220/$(am__dirstamp):
12551352 @$(MKDIR_P) t/issue220
12561353 @: > t/issue220/$(am__dirstamp)
12891386 t/issue330/$(DEPDIR)/$(am__dirstamp)
12901387 t/issue330/issue330.pb-c.$(OBJEXT): t/issue330/$(am__dirstamp) \
12911388 t/issue330/$(DEPDIR)/$(am__dirstamp)
1389 t/issue389/$(am__dirstamp):
1390 @$(MKDIR_P) t/issue389
1391 @: > t/issue389/$(am__dirstamp)
1392 t/issue389/$(DEPDIR)/$(am__dirstamp):
1393 @$(MKDIR_P) t/issue389/$(DEPDIR)
1394 @: > t/issue389/$(DEPDIR)/$(am__dirstamp)
1395 t/issue389/issue389.pb-c.$(OBJEXT): t/issue389/$(am__dirstamp) \
1396 t/issue389/$(DEPDIR)/$(am__dirstamp)
12921397
12931398 t/issue330/issue330$(EXEEXT): $(t_issue330_issue330_OBJECTS) $(t_issue330_issue330_DEPENDENCIES) $(EXTRA_t_issue330_issue330_DEPENDENCIES) t/issue330/$(am__dirstamp)
12941399 @rm -f t/issue330/issue330$(EXEEXT)
13071412 t/issue375/issue375$(EXEEXT): $(t_issue375_issue375_OBJECTS) $(t_issue375_issue375_DEPENDENCIES) $(EXTRA_t_issue375_issue375_DEPENDENCIES) t/issue375/$(am__dirstamp)
13081413 @rm -f t/issue375/issue375$(EXEEXT)
13091414 $(AM_V_CCLD)$(LINK) $(t_issue375_issue375_OBJECTS) $(t_issue375_issue375_LDADD) $(LIBS)
1415 t/issue440/$(am__dirstamp):
1416 @$(MKDIR_P) t/issue440
1417 @: > t/issue440/$(am__dirstamp)
1418 t/issue440/$(DEPDIR)/$(am__dirstamp):
1419 @$(MKDIR_P) t/issue440/$(DEPDIR)
1420 @: > t/issue440/$(DEPDIR)/$(am__dirstamp)
1421 t/issue440/issue440.$(OBJEXT): t/issue440/$(am__dirstamp) \
1422 t/issue440/$(DEPDIR)/$(am__dirstamp)
1423 t/issue440/issue440.pb-c.$(OBJEXT): t/issue440/$(am__dirstamp) \
1424 t/issue440/$(DEPDIR)/$(am__dirstamp)
1425
1426 t/issue440/issue440$(EXEEXT): $(t_issue440_issue440_OBJECTS) $(t_issue440_issue440_DEPENDENCIES) $(EXTRA_t_issue440_issue440_DEPENDENCIES) t/issue440/$(am__dirstamp)
1427 @rm -f t/issue440/issue440$(EXEEXT)
1428 $(AM_V_CCLD)$(LINK) $(t_issue440_issue440_OBJECTS) $(t_issue440_issue440_LDADD) $(LIBS)
13101429 t/version/$(am__dirstamp):
13111430 @$(MKDIR_P) t/version
13121431 @: > t/version/$(am__dirstamp)
13281447 -rm -f t/*.$(OBJEXT)
13291448 -rm -f t/generated-code/*.$(OBJEXT)
13301449 -rm -f t/generated-code2/*.$(OBJEXT)
1450 -rm -f t/issue204/*.$(OBJEXT)
13311451 -rm -f t/issue220/*.$(OBJEXT)
13321452 -rm -f t/issue251/*.$(OBJEXT)
13331453 -rm -f t/issue330/*.$(OBJEXT)
13341454 -rm -f t/issue375/*.$(OBJEXT)
1455 -rm -f t/issue389/*.$(OBJEXT)
1456 -rm -f t/issue440/*.$(OBJEXT)
13351457 -rm -f t/version/*.$(OBJEXT)
13361458
13371459 distclean-compile:
13381460 -rm -f *.tab.c
13391461
13401462 @AMDEP_TRUE@@am__include@ @am__quote@protobuf-c/$(DEPDIR)/protobuf-c.Plo@am__quote@ # am--include-marker
1463 @AMDEP_TRUE@@am__include@ @am__quote@protobuf-c/$(DEPDIR)/protoc_c_protoc_gen_c-protobuf-c.pb.Po@am__quote@ # am--include-marker
1464 @AMDEP_TRUE@@am__include@ @am__quote@protobuf-c/$(DEPDIR)/t_generated_code2_cxx_generate_packed_data-protobuf-c.pb.Po@am__quote@ # am--include-marker
13411465 @AMDEP_TRUE@@am__include@ @am__quote@protoc-c/$(DEPDIR)/protoc_gen_c-c_bytes_field.Po@am__quote@ # am--include-marker
13421466 @AMDEP_TRUE@@am__include@ @am__quote@protoc-c/$(DEPDIR)/protoc_gen_c-c_enum.Po@am__quote@ # am--include-marker
13431467 @AMDEP_TRUE@@am__include@ @am__quote@protoc-c/$(DEPDIR)/protoc_gen_c-c_enum_field.Po@am__quote@ # am--include-marker
13611485 @AMDEP_TRUE@@am__include@ @am__quote@t/generated-code/$(DEPDIR)/test-generated-code.Po@am__quote@ # am--include-marker
13621486 @AMDEP_TRUE@@am__include@ @am__quote@t/generated-code2/$(DEPDIR)/cxx_generate_packed_data-cxx-generate-packed-data.Po@am__quote@ # am--include-marker
13631487 @AMDEP_TRUE@@am__include@ @am__quote@t/generated-code2/$(DEPDIR)/test-generated-code2.Po@am__quote@ # am--include-marker
1488 @AMDEP_TRUE@@am__include@ @am__quote@t/issue204/$(DEPDIR)/issue204.Po@am__quote@ # am--include-marker
1489 @AMDEP_TRUE@@am__include@ @am__quote@t/issue204/$(DEPDIR)/issue204.pb-c.Po@am__quote@ # am--include-marker
13641490 @AMDEP_TRUE@@am__include@ @am__quote@t/issue220/$(DEPDIR)/issue220.Po@am__quote@ # am--include-marker
13651491 @AMDEP_TRUE@@am__include@ @am__quote@t/issue220/$(DEPDIR)/issue220.pb-c.Po@am__quote@ # am--include-marker
13661492 @AMDEP_TRUE@@am__include@ @am__quote@t/issue251/$(DEPDIR)/issue251.Po@am__quote@ # am--include-marker
13691495 @AMDEP_TRUE@@am__include@ @am__quote@t/issue330/$(DEPDIR)/issue330.pb-c.Po@am__quote@ # am--include-marker
13701496 @AMDEP_TRUE@@am__include@ @am__quote@t/issue375/$(DEPDIR)/issue375.Po@am__quote@ # am--include-marker
13711497 @AMDEP_TRUE@@am__include@ @am__quote@t/issue375/$(DEPDIR)/issue375.pb-c.Po@am__quote@ # am--include-marker
1498 @AMDEP_TRUE@@am__include@ @am__quote@t/issue389/$(DEPDIR)/issue389.pb-c.Po@am__quote@ # am--include-marker
1499 @AMDEP_TRUE@@am__include@ @am__quote@t/issue440/$(DEPDIR)/issue440.Po@am__quote@ # am--include-marker
1500 @AMDEP_TRUE@@am__include@ @am__quote@t/issue440/$(DEPDIR)/issue440.pb-c.Po@am__quote@ # am--include-marker
13721501 @AMDEP_TRUE@@am__include@ @am__quote@t/version/$(DEPDIR)/version.Po@am__quote@ # am--include-marker
13731502
13741503 $(am__depfiles_remade):
16351764 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
16361765 @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(protoc_c_protoc_gen_c_CXXFLAGS) $(CXXFLAGS) -c -o protoc-c/protoc_gen_c-c_string_field.obj `if test -f 'protoc-c/c_string_field.cc'; then $(CYGPATH_W) 'protoc-c/c_string_field.cc'; else $(CYGPATH_W) '$(srcdir)/protoc-c/c_string_field.cc'; fi`
16371766
1767 protobuf-c/protoc_c_protoc_gen_c-protobuf-c.pb.o: protobuf-c/protobuf-c.pb.cc
1768 @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(protoc_c_protoc_gen_c_CXXFLAGS) $(CXXFLAGS) -MT protobuf-c/protoc_c_protoc_gen_c-protobuf-c.pb.o -MD -MP -MF protobuf-c/$(DEPDIR)/protoc_c_protoc_gen_c-protobuf-c.pb.Tpo -c -o protobuf-c/protoc_c_protoc_gen_c-protobuf-c.pb.o `test -f 'protobuf-c/protobuf-c.pb.cc' || echo '$(srcdir)/'`protobuf-c/protobuf-c.pb.cc
1769 @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) protobuf-c/$(DEPDIR)/protoc_c_protoc_gen_c-protobuf-c.pb.Tpo protobuf-c/$(DEPDIR)/protoc_c_protoc_gen_c-protobuf-c.pb.Po
1770 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='protobuf-c/protobuf-c.pb.cc' object='protobuf-c/protoc_c_protoc_gen_c-protobuf-c.pb.o' libtool=no @AMDEPBACKSLASH@
1771 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
1772 @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(protoc_c_protoc_gen_c_CXXFLAGS) $(CXXFLAGS) -c -o protobuf-c/protoc_c_protoc_gen_c-protobuf-c.pb.o `test -f 'protobuf-c/protobuf-c.pb.cc' || echo '$(srcdir)/'`protobuf-c/protobuf-c.pb.cc
1773
1774 protobuf-c/protoc_c_protoc_gen_c-protobuf-c.pb.obj: protobuf-c/protobuf-c.pb.cc
1775 @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(protoc_c_protoc_gen_c_CXXFLAGS) $(CXXFLAGS) -MT protobuf-c/protoc_c_protoc_gen_c-protobuf-c.pb.obj -MD -MP -MF protobuf-c/$(DEPDIR)/protoc_c_protoc_gen_c-protobuf-c.pb.Tpo -c -o protobuf-c/protoc_c_protoc_gen_c-protobuf-c.pb.obj `if test -f 'protobuf-c/protobuf-c.pb.cc'; then $(CYGPATH_W) 'protobuf-c/protobuf-c.pb.cc'; else $(CYGPATH_W) '$(srcdir)/protobuf-c/protobuf-c.pb.cc'; fi`
1776 @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) protobuf-c/$(DEPDIR)/protoc_c_protoc_gen_c-protobuf-c.pb.Tpo protobuf-c/$(DEPDIR)/protoc_c_protoc_gen_c-protobuf-c.pb.Po
1777 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='protobuf-c/protobuf-c.pb.cc' object='protobuf-c/protoc_c_protoc_gen_c-protobuf-c.pb.obj' libtool=no @AMDEPBACKSLASH@
1778 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
1779 @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(protoc_c_protoc_gen_c_CXXFLAGS) $(CXXFLAGS) -c -o protobuf-c/protoc_c_protoc_gen_c-protobuf-c.pb.obj `if test -f 'protobuf-c/protobuf-c.pb.cc'; then $(CYGPATH_W) 'protobuf-c/protobuf-c.pb.cc'; else $(CYGPATH_W) '$(srcdir)/protobuf-c/protobuf-c.pb.cc'; fi`
1780
16381781 protoc-c/protoc_gen_c-main.o: protoc-c/main.cc
16391782 @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(protoc_c_protoc_gen_c_CXXFLAGS) $(CXXFLAGS) -MT protoc-c/protoc_gen_c-main.o -MD -MP -MF protoc-c/$(DEPDIR)/protoc_gen_c-main.Tpo -c -o protoc-c/protoc_gen_c-main.o `test -f 'protoc-c/main.cc' || echo '$(srcdir)/'`protoc-c/main.cc
16401783 @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) protoc-c/$(DEPDIR)/protoc_gen_c-main.Tpo protoc-c/$(DEPDIR)/protoc_gen_c-main.Po
16761819 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='t/test-full.pb.cc' object='t/generated_code2_cxx_generate_packed_data-test-full.pb.obj' libtool=no @AMDEPBACKSLASH@
16771820 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
16781821 @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(t_generated_code2_cxx_generate_packed_data_CXXFLAGS) $(CXXFLAGS) -c -o t/generated_code2_cxx_generate_packed_data-test-full.pb.obj `if test -f 't/test-full.pb.cc'; then $(CYGPATH_W) 't/test-full.pb.cc'; else $(CYGPATH_W) '$(srcdir)/t/test-full.pb.cc'; fi`
1822
1823 protobuf-c/t_generated_code2_cxx_generate_packed_data-protobuf-c.pb.o: protobuf-c/protobuf-c.pb.cc
1824 @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(t_generated_code2_cxx_generate_packed_data_CXXFLAGS) $(CXXFLAGS) -MT protobuf-c/t_generated_code2_cxx_generate_packed_data-protobuf-c.pb.o -MD -MP -MF protobuf-c/$(DEPDIR)/t_generated_code2_cxx_generate_packed_data-protobuf-c.pb.Tpo -c -o protobuf-c/t_generated_code2_cxx_generate_packed_data-protobuf-c.pb.o `test -f 'protobuf-c/protobuf-c.pb.cc' || echo '$(srcdir)/'`protobuf-c/protobuf-c.pb.cc
1825 @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) protobuf-c/$(DEPDIR)/t_generated_code2_cxx_generate_packed_data-protobuf-c.pb.Tpo protobuf-c/$(DEPDIR)/t_generated_code2_cxx_generate_packed_data-protobuf-c.pb.Po
1826 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='protobuf-c/protobuf-c.pb.cc' object='protobuf-c/t_generated_code2_cxx_generate_packed_data-protobuf-c.pb.o' libtool=no @AMDEPBACKSLASH@
1827 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
1828 @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(t_generated_code2_cxx_generate_packed_data_CXXFLAGS) $(CXXFLAGS) -c -o protobuf-c/t_generated_code2_cxx_generate_packed_data-protobuf-c.pb.o `test -f 'protobuf-c/protobuf-c.pb.cc' || echo '$(srcdir)/'`protobuf-c/protobuf-c.pb.cc
1829
1830 protobuf-c/t_generated_code2_cxx_generate_packed_data-protobuf-c.pb.obj: protobuf-c/protobuf-c.pb.cc
1831 @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(t_generated_code2_cxx_generate_packed_data_CXXFLAGS) $(CXXFLAGS) -MT protobuf-c/t_generated_code2_cxx_generate_packed_data-protobuf-c.pb.obj -MD -MP -MF protobuf-c/$(DEPDIR)/t_generated_code2_cxx_generate_packed_data-protobuf-c.pb.Tpo -c -o protobuf-c/t_generated_code2_cxx_generate_packed_data-protobuf-c.pb.obj `if test -f 'protobuf-c/protobuf-c.pb.cc'; then $(CYGPATH_W) 'protobuf-c/protobuf-c.pb.cc'; else $(CYGPATH_W) '$(srcdir)/protobuf-c/protobuf-c.pb.cc'; fi`
1832 @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) protobuf-c/$(DEPDIR)/t_generated_code2_cxx_generate_packed_data-protobuf-c.pb.Tpo protobuf-c/$(DEPDIR)/t_generated_code2_cxx_generate_packed_data-protobuf-c.pb.Po
1833 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='protobuf-c/protobuf-c.pb.cc' object='protobuf-c/t_generated_code2_cxx_generate_packed_data-protobuf-c.pb.obj' libtool=no @AMDEPBACKSLASH@
1834 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
1835 @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(t_generated_code2_cxx_generate_packed_data_CXXFLAGS) $(CXXFLAGS) -c -o protobuf-c/t_generated_code2_cxx_generate_packed_data-protobuf-c.pb.obj `if test -f 'protobuf-c/protobuf-c.pb.cc'; then $(CYGPATH_W) 'protobuf-c/protobuf-c.pb.cc'; else $(CYGPATH_W) '$(srcdir)/protobuf-c/protobuf-c.pb.cc'; fi`
16791836
16801837 mostlyclean-libtool:
16811838 -rm -f *.lo
16871844 -rm -rf t/generated-code/.libs t/generated-code/_libs
16881845 -rm -rf t/generated-code2/.libs t/generated-code2/_libs
16891846 -rm -rf t/generated-code3/.libs t/generated-code3/_libs
1847 -rm -rf t/issue204/.libs t/issue204/_libs
16901848 -rm -rf t/issue220/.libs t/issue220/_libs
16911849 -rm -rf t/issue251/.libs t/issue251/_libs
16921850 -rm -rf t/issue330/.libs t/issue330/_libs
16931851 -rm -rf t/issue375/.libs t/issue375/_libs
1852 -rm -rf t/issue440/.libs t/issue440/_libs
16941853 -rm -rf t/version/.libs t/version/_libs
16951854
16961855 distclean-libtool:
19072066 test x"$$VERBOSE" = x || cat $(TEST_SUITE_LOG); \
19082067 fi; \
19092068 echo "$${col}$$br$${std}"; \
1910 echo "$${col}Testsuite summary for $(PACKAGE_STRING)$${std}"; \
2069 echo "$${col}Testsuite summary"$(AM_TESTSUITE_SUMMARY_HEADER)"$${std}"; \
19112070 echo "$${col}$$br$${std}"; \
19122071 create_testsuite_report --maybe-color; \
19132072 echo "$$col$$br$$std"; \
19692128 --log-file $$b.log --trs-file $$b.trs \
19702129 $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
19712130 "$$tst" $(AM_TESTS_FD_REDIRECT)
2131 t/issue204/issue204.log: t/issue204/issue204$(EXEEXT)
2132 @p='t/issue204/issue204$(EXEEXT)'; \
2133 b='t/issue204/issue204'; \
2134 $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
2135 --log-file $$b.log --trs-file $$b.trs \
2136 $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
2137 "$$tst" $(AM_TESTS_FD_REDIRECT)
19722138 t/issue220/issue220.log: t/issue220/issue220$(EXEEXT)
19732139 @p='t/issue220/issue220$(EXEEXT)'; \
19742140 b='t/issue220/issue220'; \
19862152 t/issue330/issue330.log: t/issue330/issue330$(EXEEXT)
19872153 @p='t/issue330/issue330$(EXEEXT)'; \
19882154 b='t/issue330/issue330'; \
2155 $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
2156 --log-file $$b.log --trs-file $$b.trs \
2157 $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
2158 "$$tst" $(AM_TESTS_FD_REDIRECT)
2159 t/issue440/issue440.log: t/issue440/issue440$(EXEEXT)
2160 @p='t/issue440/issue440$(EXEEXT)'; \
2161 b='t/issue440/issue440'; \
19892162 $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
19902163 --log-file $$b.log --trs-file $$b.trs \
19912164 $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
20112184 @am__EXEEXT_TRUE@ --log-file $$b.log --trs-file $$b.trs \
20122185 @am__EXEEXT_TRUE@ $(am__common_driver_flags) $(AM_TEST_LOG_DRIVER_FLAGS) $(TEST_LOG_DRIVER_FLAGS) -- $(TEST_LOG_COMPILE) \
20132186 @am__EXEEXT_TRUE@ "$$tst" $(AM_TESTS_FD_REDIRECT)
2014
20152187 distdir: $(BUILT_SOURCES)
20162188 $(MAKE) $(AM_MAKEFLAGS) distdir-am
20172189
20732245 tardir=$(distdir) && $(am__tar) | XZ_OPT=$${XZ_OPT--e} xz -c >$(distdir).tar.xz
20742246 $(am__post_remove_distdir)
20752247
2248 dist-zstd: distdir
2249 tardir=$(distdir) && $(am__tar) | zstd -c $${ZSTD_CLEVEL-$${ZSTD_OPT--19}} >$(distdir).tar.zst
2250 $(am__post_remove_distdir)
2251
20762252 dist-tarZ: distdir
20772253 @echo WARNING: "Support for distribution archives compressed with" \
20782254 "legacy program 'compress' is deprecated." >&2
21152291 eval GZIP= gzip $(GZIP_ENV) -dc $(distdir).shar.gz | unshar ;;\
21162292 *.zip*) \
21172293 unzip $(distdir).zip ;;\
2294 *.tar.zst*) \
2295 zstd -dc $(distdir).tar.zst | $(am__untar) ;;\
21182296 esac
21192297 chmod -R a-w $(distdir)
21202298 chmod u+w $(distdir)
21302308 $(DISTCHECK_CONFIGURE_FLAGS) \
21312309 --srcdir=../.. --prefix="$$dc_install_base" \
21322310 && $(MAKE) $(AM_MAKEFLAGS) \
2133 && $(MAKE) $(AM_MAKEFLAGS) dvi \
2311 && $(MAKE) $(AM_MAKEFLAGS) $(AM_DISTCHECK_DVI_TARGET) \
21342312 && $(MAKE) $(AM_MAKEFLAGS) check \
21352313 && $(MAKE) $(AM_MAKEFLAGS) install \
21362314 && $(MAKE) $(AM_MAKEFLAGS) installcheck \
21902368 config.h
21912369 install-binPROGRAMS: install-libLTLIBRARIES
21922370
2371 install-checkPROGRAMS: install-libLTLIBRARIES
2372
21932373 installdirs:
21942374 for dir in "$(DESTDIR)$(bindir)" "$(DESTDIR)$(libdir)" "$(DESTDIR)$(pkgconfigdir)" "$(DESTDIR)$(includedir)"; do \
21952375 test -z "$$dir" || $(MKDIR_P) "$$dir"; \
21962376 done
21972377 install: $(BUILT_SOURCES)
21982378 $(MAKE) $(AM_MAKEFLAGS) install-am
2199 install-exec: install-exec-am
2379 install-exec: $(BUILT_SOURCES)
2380 $(MAKE) $(AM_MAKEFLAGS) install-exec-am
22002381 install-data: install-data-am
22012382 uninstall: uninstall-am
22022383
22362417 -rm -f t/generated-code2/$(DEPDIR)/$(am__dirstamp)
22372418 -rm -f t/generated-code2/$(am__dirstamp)
22382419 -rm -f t/generated-code3/$(am__dirstamp)
2420 -rm -f t/issue204/$(DEPDIR)/$(am__dirstamp)
2421 -rm -f t/issue204/$(am__dirstamp)
22392422 -rm -f t/issue220/$(DEPDIR)/$(am__dirstamp)
22402423 -rm -f t/issue220/$(am__dirstamp)
22412424 -rm -f t/issue251/$(DEPDIR)/$(am__dirstamp)
22442427 -rm -f t/issue330/$(am__dirstamp)
22452428 -rm -f t/issue375/$(DEPDIR)/$(am__dirstamp)
22462429 -rm -f t/issue375/$(am__dirstamp)
2430 -rm -f t/issue389/$(DEPDIR)/$(am__dirstamp)
2431 -rm -f t/issue389/$(am__dirstamp)
2432 -rm -f t/issue440/$(DEPDIR)/$(am__dirstamp)
2433 -rm -f t/issue440/$(am__dirstamp)
22472434 -rm -f t/version/$(DEPDIR)/$(am__dirstamp)
22482435 -rm -f t/version/$(am__dirstamp)
22492436 -test -z "$(DISTCLEANFILES)" || rm -f $(DISTCLEANFILES)
22642451 distclean: distclean-am
22652452 -rm -f $(am__CONFIG_DISTCLEAN_FILES)
22662453 -rm -f protobuf-c/$(DEPDIR)/protobuf-c.Plo
2454 -rm -f protobuf-c/$(DEPDIR)/protoc_c_protoc_gen_c-protobuf-c.pb.Po
2455 -rm -f protobuf-c/$(DEPDIR)/t_generated_code2_cxx_generate_packed_data-protobuf-c.pb.Po
22672456 -rm -f protoc-c/$(DEPDIR)/protoc_gen_c-c_bytes_field.Po
22682457 -rm -f protoc-c/$(DEPDIR)/protoc_gen_c-c_enum.Po
22692458 -rm -f protoc-c/$(DEPDIR)/protoc_gen_c-c_enum_field.Po
22872476 -rm -f t/generated-code/$(DEPDIR)/test-generated-code.Po
22882477 -rm -f t/generated-code2/$(DEPDIR)/cxx_generate_packed_data-cxx-generate-packed-data.Po
22892478 -rm -f t/generated-code2/$(DEPDIR)/test-generated-code2.Po
2479 -rm -f t/issue204/$(DEPDIR)/issue204.Po
2480 -rm -f t/issue204/$(DEPDIR)/issue204.pb-c.Po
22902481 -rm -f t/issue220/$(DEPDIR)/issue220.Po
22912482 -rm -f t/issue220/$(DEPDIR)/issue220.pb-c.Po
22922483 -rm -f t/issue251/$(DEPDIR)/issue251.Po
22952486 -rm -f t/issue330/$(DEPDIR)/issue330.pb-c.Po
22962487 -rm -f t/issue375/$(DEPDIR)/issue375.Po
22972488 -rm -f t/issue375/$(DEPDIR)/issue375.pb-c.Po
2489 -rm -f t/issue389/$(DEPDIR)/issue389.pb-c.Po
2490 -rm -f t/issue440/$(DEPDIR)/issue440.Po
2491 -rm -f t/issue440/$(DEPDIR)/issue440.pb-c.Po
22982492 -rm -f t/version/$(DEPDIR)/version.Po
22992493 -rm -f Makefile
23002494 distclean-am: clean-am distclean-compile distclean-generic \
23462540 -rm -f $(am__CONFIG_DISTCLEAN_FILES)
23472541 -rm -rf $(top_srcdir)/autom4te.cache
23482542 -rm -f protobuf-c/$(DEPDIR)/protobuf-c.Plo
2543 -rm -f protobuf-c/$(DEPDIR)/protoc_c_protoc_gen_c-protobuf-c.pb.Po
2544 -rm -f protobuf-c/$(DEPDIR)/t_generated_code2_cxx_generate_packed_data-protobuf-c.pb.Po
23492545 -rm -f protoc-c/$(DEPDIR)/protoc_gen_c-c_bytes_field.Po
23502546 -rm -f protoc-c/$(DEPDIR)/protoc_gen_c-c_enum.Po
23512547 -rm -f protoc-c/$(DEPDIR)/protoc_gen_c-c_enum_field.Po
23692565 -rm -f t/generated-code/$(DEPDIR)/test-generated-code.Po
23702566 -rm -f t/generated-code2/$(DEPDIR)/cxx_generate_packed_data-cxx-generate-packed-data.Po
23712567 -rm -f t/generated-code2/$(DEPDIR)/test-generated-code2.Po
2568 -rm -f t/issue204/$(DEPDIR)/issue204.Po
2569 -rm -f t/issue204/$(DEPDIR)/issue204.pb-c.Po
23722570 -rm -f t/issue220/$(DEPDIR)/issue220.Po
23732571 -rm -f t/issue220/$(DEPDIR)/issue220.pb-c.Po
23742572 -rm -f t/issue251/$(DEPDIR)/issue251.Po
23772575 -rm -f t/issue330/$(DEPDIR)/issue330.pb-c.Po
23782576 -rm -f t/issue375/$(DEPDIR)/issue375.Po
23792577 -rm -f t/issue375/$(DEPDIR)/issue375.pb-c.Po
2578 -rm -f t/issue389/$(DEPDIR)/issue389.pb-c.Po
2579 -rm -f t/issue440/$(DEPDIR)/issue440.Po
2580 -rm -f t/issue440/$(DEPDIR)/issue440.pb-c.Po
23802581 -rm -f t/version/$(DEPDIR)/version.Po
23812582 -rm -f Makefile
23822583 maintainer-clean-am: distclean-am maintainer-clean-generic
23982599 uninstall-nobase_includeHEADERS uninstall-pkgconfigDATA
23992600
24002601 .MAKE: all check check-am install install-am install-data-am \
2401 install-exec-am install-strip
2602 install-exec install-exec-am install-strip
24022603
24032604 .PHONY: CTAGS GTAGS TAGS all all-am am--depfiles am--refresh check \
24042605 check-TESTS check-am clean clean-binPROGRAMS \
24062607 clean-libLTLIBRARIES clean-libtool clean-local \
24072608 clean-noinstPROGRAMS cscope cscopelist-am ctags ctags-am dist \
24082609 dist-all dist-bzip2 dist-gzip dist-hook dist-lzip dist-shar \
2409 dist-tarZ dist-xz dist-zip distcheck distclean \
2610 dist-tarZ dist-xz dist-zip dist-zstd distcheck distclean \
24102611 distclean-compile distclean-generic distclean-hdr \
24112612 distclean-libtool distclean-tags distcleancheck distdir \
24122613 distuninstallcheck dvi dvi-am html html-am html-local info \
24282629
24292630 @CODE_COVERAGE_RULES@
24302631
2632 @BUILD_COMPILER_TRUE@protobuf-c/protobuf-c.pb.cc protobuf-c/protobuf-c.pb.h: @PROTOC@ $(top_srcdir)/protobuf-c/protobuf-c.proto
2633 @BUILD_COMPILER_TRUE@ $(AM_V_GEN)@PROTOC@ -I$(top_srcdir) --cpp_out=$(top_builddir) $(top_srcdir)/protobuf-c/protobuf-c.proto
24312634 #
24322635 # protoc-c compat link
24332636 #
24542657
24552658 @BUILD_COMPILER_TRUE@@BUILD_PROTO3_TRUE@@CROSS_COMPILING_FALSE@t/test-proto3.pb-c.c t/test-proto3.pb-c.h: $(top_builddir)/protoc-c/protoc-gen-c$(EXEEXT) $(top_srcdir)/t/test-proto3.proto
24562659 @BUILD_COMPILER_TRUE@@BUILD_PROTO3_TRUE@@CROSS_COMPILING_FALSE@ $(AM_V_GEN)@PROTOC@ --plugin=protoc-gen-c=$(top_builddir)/protoc-c/protoc-gen-c$(EXEEXT) -I$(top_srcdir) --c_out=$(top_builddir) $(top_srcdir)/t/test-proto3.proto
2660 @BUILD_COMPILER_TRUE@@CROSS_COMPILING_FALSE@t/issue204/issue204.pb-c.c t/issue204/issue204.pb-c.h: $(top_builddir)/protoc-c/protoc-gen-c$(EXEEXT) $(top_srcdir)/t/issue204/issue204.proto
2661 @BUILD_COMPILER_TRUE@@CROSS_COMPILING_FALSE@ $(AM_V_GEN)@PROTOC@ --plugin=protoc-gen-c=$(top_builddir)/protoc-c/protoc-gen-c$(EXEEXT) -I$(top_srcdir) --c_out=$(top_builddir) $(top_srcdir)/t/issue204/issue204.proto
24572662 @BUILD_COMPILER_TRUE@@CROSS_COMPILING_FALSE@t/issue220/issue220.pb-c.c t/issue220/issue220.pb-c.h: $(top_builddir)/protoc-c/protoc-gen-c$(EXEEXT) $(top_srcdir)/t/issue220/issue220.proto
24582663 @BUILD_COMPILER_TRUE@@CROSS_COMPILING_FALSE@ $(AM_V_GEN)@PROTOC@ --plugin=protoc-gen-c=$(top_builddir)/protoc-c/protoc-gen-c$(EXEEXT) -I$(top_srcdir) --c_out=$(top_builddir) $(top_srcdir)/t/issue220/issue220.proto
24592664 @BUILD_COMPILER_TRUE@@CROSS_COMPILING_FALSE@t/issue251/issue251.pb-c.c t/issue251/issue251.pb-c.h: $(top_builddir)/protoc-c/protoc-gen-c$(EXEEXT) $(top_srcdir)/t/issue251/issue251.proto
24602665 @BUILD_COMPILER_TRUE@@CROSS_COMPILING_FALSE@ $(AM_V_GEN)@PROTOC@ --plugin=protoc-gen-c=$(top_builddir)/protoc-c/protoc-gen-c$(EXEEXT) -I$(top_srcdir) --c_out=$(top_builddir) $(top_srcdir)/t/issue251/issue251.proto
24612666 @BUILD_COMPILER_TRUE@@BUILD_PROTO3_TRUE@@CROSS_COMPILING_FALSE@t/issue330/issue330.pb-c.c t/issue330/issue330.pb-c.h: $(top_builddir)/protoc-c/protoc-gen-c$(EXEEXT) $(top_srcdir)/t/issue330/issue330.proto
24622667 @BUILD_COMPILER_TRUE@@BUILD_PROTO3_TRUE@@CROSS_COMPILING_FALSE@ $(AM_V_GEN)@PROTOC@ --plugin=protoc-gen-c=$(top_builddir)/protoc-c/protoc-gen-c$(EXEEXT) -I$(top_srcdir) --c_out=$(top_builddir) $(top_srcdir)/t/issue330/issue330.proto
2668 @BUILD_COMPILER_TRUE@@BUILD_PROTO3_TRUE@@CROSS_COMPILING_FALSE@t/issue389/issue389.pb-c.c t/issue389/issue389.pb-c.h: $(top_builddir)/protoc-c/protoc-gen-c$(EXEEXT) $(top_srcdir)/t/issue389/issue389.proto
2669 @BUILD_COMPILER_TRUE@@BUILD_PROTO3_TRUE@@CROSS_COMPILING_FALSE@ $(AM_V_GEN)@PROTOC@ --plugin=protoc-gen-c=$(top_builddir)/protoc-c/protoc-gen-c$(EXEEXT) -I$(top_srcdir) --c_out=$(top_builddir) $(top_srcdir)/t/issue389/issue389.proto
2670 @BUILD_COMPILER_TRUE@@BUILD_PROTO3_TRUE@@CROSS_COMPILING_FALSE@t/issue440/issue440.pb-c.c t/issue440/issue440.pb-c.h: $(top_builddir)/protoc-c/protoc-gen-c$(EXEEXT) $(top_srcdir)/t/issue440/issue440.proto
2671 @BUILD_COMPILER_TRUE@@BUILD_PROTO3_TRUE@@CROSS_COMPILING_FALSE@ $(AM_V_GEN)@PROTOC@ --plugin=protoc-gen-c=$(top_builddir)/protoc-c/protoc-gen-c$(EXEEXT) -I$(top_srcdir) --c_out=$(top_builddir) $(top_srcdir)/t/issue440/issue440.proto
24632672 @BUILD_COMPILER_TRUE@@CROSS_COMPILING_FALSE@t/issue375/issue375.pb-c.c t/issue375/issue375.pb-c.h: $(top_builddir)/protoc-c/protoc-gen-c$(EXEEXT) $(top_srcdir)/t/issue375/issue375.proto
24642673 @BUILD_COMPILER_TRUE@@CROSS_COMPILING_FALSE@ $(AM_V_GEN)@PROTOC@ --plugin=protoc-gen-c=$(top_builddir)/protoc-c/protoc-gen-c$(EXEEXT) -I$(top_srcdir) --c_out=$(top_builddir) $(top_srcdir)/t/issue375/issue375.proto
24652674
0 [![Build Status](https://travis-ci.org/protobuf-c/protobuf-c.png?branch=master)](https://travis-ci.org/protobuf-c/protobuf-c) [![Coverage Status](https://coveralls.io/repos/protobuf-c/protobuf-c/badge.png)](https://coveralls.io/r/protobuf-c/protobuf-c)
0 [![Build Status](https://github.com/protobuf-c/protobuf-c/actions/workflows/build.yml/badge.svg)](https://github.com/protobuf-c/protobuf-c/actions) [![Coverage Status](https://coveralls.io/repos/protobuf-c/protobuf-c/badge.png)](https://coveralls.io/r/protobuf-c/protobuf-c)
11
22 ## Overview
33
1919
2020 ./autogen.sh && ./configure && make && make install
2121
22 ## Test
23
24 If you want to execute test cases individually, please run the following command after running `./configure` once:
25
26 make check
27
2228 ## Documentation
2329
24 See the [online Doxygen documentation here](http://lib.protobuf-c.io) or [the Wiki](https://github.com/protobuf-c/protobuf-c/wiki) for a detailed reference. The Doxygen documentation can be built from the source tree by running:
30 See the [online Doxygen documentation here](https://protobuf-c.github.io/protobuf-c) or [the Wiki](https://github.com/protobuf-c/protobuf-c/wiki) for a detailed reference. The Doxygen documentation can be built from the source tree by running:
2531
2632 make html
2733
0 # generated automatically by aclocal 1.16.1 -*- Autoconf -*-
1
2 # Copyright (C) 1996-2018 Free Software Foundation, Inc.
0 # generated automatically by aclocal 1.16.5 -*- Autoconf -*-
1
2 # Copyright (C) 1996-2021 Free Software Foundation, Inc.
33
44 # This file is free software; the Free Software Foundation
55 # gives unlimited permission to copy and/or distribute it,
1313 m4_ifndef([AC_CONFIG_MACRO_DIRS], [m4_defun([_AM_CONFIG_MACRO_DIRS], [])m4_defun([AC_CONFIG_MACRO_DIRS], [_AM_CONFIG_MACRO_DIRS($@)])])
1414 m4_ifndef([AC_AUTOCONF_VERSION],
1515 [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
16 m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.69],,
17 [m4_warning([this file was generated for autoconf 2.69.
16 m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.71],,
17 [m4_warning([this file was generated for autoconf 2.71.
1818 You have another version of autoconf. It may work, but is not guaranteed to.
1919 If you have problems, you may need to regenerate the build system entirely.
2020 To do so, use the procedure documented by the package, typically 'autoreconf'.])])
2121
22 # Copyright (C) 2002-2018 Free Software Foundation, Inc.
22 # Copyright (C) 2002-2021 Free Software Foundation, Inc.
2323 #
2424 # This file is free software; the Free Software Foundation
2525 # gives unlimited permission to copy and/or distribute it,
3434 [am__api_version='1.16'
3535 dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
3636 dnl require some minimum version. Point them to the right macro.
37 m4_if([$1], [1.16.1], [],
37 m4_if([$1], [1.16.5], [],
3838 [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
3939 ])
4040
5050 # Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
5151 # This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
5252 AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
53 [AM_AUTOMAKE_VERSION([1.16.1])dnl
53 [AM_AUTOMAKE_VERSION([1.16.5])dnl
5454 m4_ifndef([AC_AUTOCONF_VERSION],
5555 [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
5656 _AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
5757
5858 # AM_AUX_DIR_EXPAND -*- Autoconf -*-
5959
60 # Copyright (C) 2001-2018 Free Software Foundation, Inc.
60 # Copyright (C) 2001-2021 Free Software Foundation, Inc.
6161 #
6262 # This file is free software; the Free Software Foundation
6363 # gives unlimited permission to copy and/or distribute it,
109109
110110 # AM_COND_IF -*- Autoconf -*-
111111
112 # Copyright (C) 2008-2018 Free Software Foundation, Inc.
112 # Copyright (C) 2008-2021 Free Software Foundation, Inc.
113113 #
114114 # This file is free software; the Free Software Foundation
115115 # gives unlimited permission to copy and/or distribute it,
146146
147147 # AM_CONDITIONAL -*- Autoconf -*-
148148
149 # Copyright (C) 1997-2018 Free Software Foundation, Inc.
149 # Copyright (C) 1997-2021 Free Software Foundation, Inc.
150150 #
151151 # This file is free software; the Free Software Foundation
152152 # gives unlimited permission to copy and/or distribute it,
177177 Usually this means the macro was only invoked conditionally.]])
178178 fi])])
179179
180 # Copyright (C) 1999-2018 Free Software Foundation, Inc.
180 # Copyright (C) 1999-2021 Free Software Foundation, Inc.
181181 #
182182 # This file is free software; the Free Software Foundation
183183 # gives unlimited permission to copy and/or distribute it,
368368
369369 # Generate code to set up dependency tracking. -*- Autoconf -*-
370370
371 # Copyright (C) 1999-2018 Free Software Foundation, Inc.
371 # Copyright (C) 1999-2021 Free Software Foundation, Inc.
372372 #
373373 # This file is free software; the Free Software Foundation
374374 # gives unlimited permission to copy and/or distribute it,
407407 done
408408 if test $am_rc -ne 0; then
409409 AC_MSG_FAILURE([Something went wrong bootstrapping makefile fragments
410 for automatic dependency tracking. Try re-running configure with the
410 for automatic dependency tracking. If GNU make was not used, consider
411 re-running the configure script with MAKE="gmake" (or whatever is
412 necessary). You can also try re-running configure with the
411413 '--disable-dependency-tracking' option to at least be able to build
412414 the package (albeit without support for automatic dependency tracking).])
413415 fi
434436
435437 # Do all the work for Automake. -*- Autoconf -*-
436438
437 # Copyright (C) 1996-2018 Free Software Foundation, Inc.
439 # Copyright (C) 1996-2021 Free Software Foundation, Inc.
438440 #
439441 # This file is free software; the Free Software Foundation
440442 # gives unlimited permission to copy and/or distribute it,
462464 # release and drop the old call support.
463465 AC_DEFUN([AM_INIT_AUTOMAKE],
464466 [AC_PREREQ([2.65])dnl
467 m4_ifdef([_$0_ALREADY_INIT],
468 [m4_fatal([$0 expanded multiple times
469 ]m4_defn([_$0_ALREADY_INIT]))],
470 [m4_define([_$0_ALREADY_INIT], m4_expansion_stack)])dnl
465471 dnl Autoconf wants to disallow AM_ names. We explicitly allow
466472 dnl the ones we care about.
467473 m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
498504 [_AM_SET_OPTIONS([$1])dnl
499505 dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
500506 m4_if(
501 m4_ifdef([AC_PACKAGE_NAME], [ok]):m4_ifdef([AC_PACKAGE_VERSION], [ok]),
507 m4_ifset([AC_PACKAGE_NAME], [ok]):m4_ifset([AC_PACKAGE_VERSION], [ok]),
502508 [ok:ok],,
503509 [m4_fatal([AC_INIT should be called with package and version arguments])])dnl
504510 AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
550556 [m4_define([AC_PROG_OBJCXX],
551557 m4_defn([AC_PROG_OBJCXX])[_AM_DEPENDENCIES([OBJCXX])])])dnl
552558 ])
559 # Variables for tags utilities; see am/tags.am
560 if test -z "$CTAGS"; then
561 CTAGS=ctags
562 fi
563 AC_SUBST([CTAGS])
564 if test -z "$ETAGS"; then
565 ETAGS=etags
566 fi
567 AC_SUBST([ETAGS])
568 if test -z "$CSCOPE"; then
569 CSCOPE=cscope
570 fi
571 AC_SUBST([CSCOPE])
572
553573 AC_REQUIRE([AM_SILENT_RULES])dnl
554574 dnl The testsuite driver may need to know about EXEEXT, so add the
555575 dnl 'am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This
631651 done
632652 echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
633653
634 # Copyright (C) 2001-2018 Free Software Foundation, Inc.
654 # Copyright (C) 2001-2021 Free Software Foundation, Inc.
635655 #
636656 # This file is free software; the Free Software Foundation
637657 # gives unlimited permission to copy and/or distribute it,
652672 fi
653673 AC_SUBST([install_sh])])
654674
655 # Copyright (C) 2003-2018 Free Software Foundation, Inc.
675 # Copyright (C) 2003-2021 Free Software Foundation, Inc.
656676 #
657677 # This file is free software; the Free Software Foundation
658678 # gives unlimited permission to copy and/or distribute it,
673693
674694 # Check to see how 'make' treats includes. -*- Autoconf -*-
675695
676 # Copyright (C) 2001-2018 Free Software Foundation, Inc.
696 # Copyright (C) 2001-2021 Free Software Foundation, Inc.
677697 #
678698 # This file is free software; the Free Software Foundation
679699 # gives unlimited permission to copy and/or distribute it,
716736
717737 # Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
718738
719 # Copyright (C) 1997-2018 Free Software Foundation, Inc.
739 # Copyright (C) 1997-2021 Free Software Foundation, Inc.
720740 #
721741 # This file is free software; the Free Software Foundation
722742 # gives unlimited permission to copy and/or distribute it,
737757 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
738758 AC_REQUIRE_AUX_FILE([missing])dnl
739759 if test x"${MISSING+set}" != xset; then
740 case $am_aux_dir in
741 *\ * | *\ *)
742 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
743 *)
744 MISSING="\${SHELL} $am_aux_dir/missing" ;;
745 esac
760 MISSING="\${SHELL} '$am_aux_dir/missing'"
746761 fi
747762 # Use eval to expand $SHELL
748763 if eval "$MISSING --is-lightweight"; then
755770
756771 # Helper functions for option handling. -*- Autoconf -*-
757772
758 # Copyright (C) 2001-2018 Free Software Foundation, Inc.
773 # Copyright (C) 2001-2021 Free Software Foundation, Inc.
759774 #
760775 # This file is free software; the Free Software Foundation
761776 # gives unlimited permission to copy and/or distribute it,
784799 AC_DEFUN([_AM_IF_OPTION],
785800 [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
786801
787 # Copyright (C) 1999-2018 Free Software Foundation, Inc.
802 # Copyright (C) 1999-2021 Free Software Foundation, Inc.
788803 #
789804 # This file is free software; the Free Software Foundation
790805 # gives unlimited permission to copy and/or distribute it,
831846 # For backward compatibility.
832847 AC_DEFUN_ONCE([AM_PROG_CC_C_O], [AC_REQUIRE([AC_PROG_CC])])
833848
834 # Copyright (C) 2001-2018 Free Software Foundation, Inc.
849 # Copyright (C) 2001-2021 Free Software Foundation, Inc.
835850 #
836851 # This file is free software; the Free Software Foundation
837852 # gives unlimited permission to copy and/or distribute it,
850865
851866 # Check to make sure that the build environment is sane. -*- Autoconf -*-
852867
853 # Copyright (C) 1996-2018 Free Software Foundation, Inc.
868 # Copyright (C) 1996-2021 Free Software Foundation, Inc.
854869 #
855870 # This file is free software; the Free Software Foundation
856871 # gives unlimited permission to copy and/or distribute it,
931946 rm -f conftest.file
932947 ])
933948
934 # Copyright (C) 2009-2018 Free Software Foundation, Inc.
949 # Copyright (C) 2009-2021 Free Software Foundation, Inc.
935950 #
936951 # This file is free software; the Free Software Foundation
937952 # gives unlimited permission to copy and/or distribute it,
9911006 _AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl
9921007 ])
9931008
994 # Copyright (C) 2001-2018 Free Software Foundation, Inc.
1009 # Copyright (C) 2001-2021 Free Software Foundation, Inc.
9951010 #
9961011 # This file is free software; the Free Software Foundation
9971012 # gives unlimited permission to copy and/or distribute it,
10191034 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
10201035 AC_SUBST([INSTALL_STRIP_PROGRAM])])
10211036
1022 # Copyright (C) 2006-2018 Free Software Foundation, Inc.
1037 # Copyright (C) 2006-2021 Free Software Foundation, Inc.
10231038 #
10241039 # This file is free software; the Free Software Foundation
10251040 # gives unlimited permission to copy and/or distribute it,
10381053
10391054 # Check how to create a tarball. -*- Autoconf -*-
10401055
1041 # Copyright (C) 2004-2018 Free Software Foundation, Inc.
1056 # Copyright (C) 2004-2021 Free Software Foundation, Inc.
10421057 #
10431058 # This file is free software; the Free Software Foundation
10441059 # gives unlimited permission to copy and/or distribute it,
22
33 scriptversion=2018-03-07.03; # UTC
44
5 # Copyright (C) 1999-2018 Free Software Foundation, Inc.
5 # Copyright (C) 1999-2021 Free Software Foundation, Inc.
66 # Written by Tom Tromey <tromey@cygnus.com>.
77 #
88 # This program is free software; you can redistribute it and/or modify
5252 MINGW*)
5353 file_conv=mingw
5454 ;;
55 CYGWIN*)
55 CYGWIN* | MSYS*)
5656 file_conv=cygwin
5757 ;;
5858 *)
6666 mingw/*)
6767 file=`cmd //C echo "$file " | sed -e 's/"\(.*\) " *$/\1/'`
6868 ;;
69 cygwin/*)
69 cygwin/* | msys/*)
7070 file=`cygpath -m "$file" || echo "$file"`
7171 ;;
7272 wine/*)
00 #! /bin/sh
11 # Attempt to guess a canonical system name.
2 # Copyright 1992-2018 Free Software Foundation, Inc.
3
4 timestamp='2018-02-24'
2 # Copyright 1992-2022 Free Software Foundation, Inc.
3
4 # shellcheck disable=SC2006,SC2268 # see below for rationale
5
6 timestamp='2022-01-09'
57
68 # This file is free software; you can redistribute it and/or modify it
79 # under the terms of the GNU General Public License as published by
8 # the Free Software Foundation; either version 3 of the License, or
10 # the Free Software Foundation, either version 3 of the License, or
911 # (at your option) any later version.
1012 #
1113 # This program is distributed in the hope that it will be useful, but
2628 # Originally written by Per Bothner; maintained since 2000 by Ben Elliston.
2729 #
2830 # You can get the latest version of this script from:
29 # https://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess
31 # https://git.savannah.gnu.org/cgit/config.git/plain/config.guess
3032 #
3133 # Please send patches to <config-patches@gnu.org>.
34
35
36 # The "shellcheck disable" line above the timestamp inhibits complaints
37 # about features and limitations of the classic Bourne shell that were
38 # superseded or lifted in POSIX. However, this script identifies a wide
39 # variety of pre-POSIX systems that do not have POSIX shells at all, and
40 # even some reasonably current systems (Solaris 10 as case-in-point) still
41 # have a pre-POSIX /bin/sh.
3242
3343
3444 me=`echo "$0" | sed -e 's,.*/,,'`
4959 GNU config.guess ($timestamp)
5060
5161 Originally written by Per Bothner.
52 Copyright 1992-2018 Free Software Foundation, Inc.
62 Copyright 1992-2022 Free Software Foundation, Inc.
5363
5464 This is free software; see the source for copying conditions. There is NO
5565 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
8393 exit 1
8494 fi
8595
86 trap 'exit 1' 1 2 15
96 # Just in case it came from the environment.
97 GUESS=
8798
8899 # CC_FOR_BUILD -- compiler used by this script. Note that the use of a
89100 # compiler to aid in system detection is discouraged as it requires
95106
96107 # Portable tmp directory creation inspired by the Autoconf team.
97108
98 set_cc_for_build='
99 trap "exitcode=\$?; (rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null) && exit \$exitcode" 0 ;
100 trap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" 1 2 13 15 ;
101 : ${TMPDIR=/tmp} ;
102 { tmp=`(umask 077 && mktemp -d "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } ||
103 { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir $tmp) ; } ||
104 { tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir $tmp) && echo "Warning: creating insecure temp directory" >&2 ; } ||
105 { echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; } ;
106 dummy=$tmp/dummy ;
107 tmpfiles="$dummy.c $dummy.o $dummy.rel $dummy" ;
108 case $CC_FOR_BUILD,$HOST_CC,$CC in
109 ,,) echo "int x;" > "$dummy.c" ;
110 for c in cc gcc c89 c99 ; do
111 if ($c -c -o "$dummy.o" "$dummy.c") >/dev/null 2>&1 ; then
112 CC_FOR_BUILD="$c"; break ;
113 fi ;
114 done ;
115 if test x"$CC_FOR_BUILD" = x ; then
116 CC_FOR_BUILD=no_compiler_found ;
117 fi
118 ;;
119 ,,*) CC_FOR_BUILD=$CC ;;
120 ,*,*) CC_FOR_BUILD=$HOST_CC ;;
121 esac ; set_cc_for_build= ;'
109 tmp=
110 # shellcheck disable=SC2172
111 trap 'test -z "$tmp" || rm -fr "$tmp"' 0 1 2 13 15
112
113 set_cc_for_build() {
114 # prevent multiple calls if $tmp is already set
115 test "$tmp" && return 0
116 : "${TMPDIR=/tmp}"
117 # shellcheck disable=SC2039,SC3028
118 { tmp=`(umask 077 && mktemp -d "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } ||
119 { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir "$tmp" 2>/dev/null) ; } ||
120 { tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir "$tmp" 2>/dev/null) && echo "Warning: creating insecure temp directory" >&2 ; } ||
121 { echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; }
122 dummy=$tmp/dummy
123 case ${CC_FOR_BUILD-},${HOST_CC-},${CC-} in
124 ,,) echo "int x;" > "$dummy.c"
125 for driver in cc gcc c89 c99 ; do
126 if ($driver -c -o "$dummy.o" "$dummy.c") >/dev/null 2>&1 ; then
127 CC_FOR_BUILD=$driver
128 break
129 fi
130 done
131 if test x"$CC_FOR_BUILD" = x ; then
132 CC_FOR_BUILD=no_compiler_found
133 fi
134 ;;
135 ,,*) CC_FOR_BUILD=$CC ;;
136 ,*,*) CC_FOR_BUILD=$HOST_CC ;;
137 esac
138 }
122139
123140 # This is needed to find uname on a Pyramid OSx when run in the BSD universe.
124141 # (ghazi@noc.rutgers.edu 1994-08-24)
125 if (test -f /.attbin/uname) >/dev/null 2>&1 ; then
142 if test -f /.attbin/uname ; then
126143 PATH=$PATH:/.attbin ; export PATH
127144 fi
128145
129146 UNAME_MACHINE=`(uname -m) 2>/dev/null` || UNAME_MACHINE=unknown
130147 UNAME_RELEASE=`(uname -r) 2>/dev/null` || UNAME_RELEASE=unknown
131 UNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown
148 UNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown
132149 UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown
133150
134 case "$UNAME_SYSTEM" in
151 case $UNAME_SYSTEM in
135152 Linux|GNU|GNU/*)
136 # If the system lacks a compiler, then just pick glibc.
137 # We could probably try harder.
138 LIBC=gnu
139
140 eval "$set_cc_for_build"
153 LIBC=unknown
154
155 set_cc_for_build
141156 cat <<-EOF > "$dummy.c"
142157 #include <features.h>
143158 #if defined(__UCLIBC__)
144159 LIBC=uclibc
145160 #elif defined(__dietlibc__)
146161 LIBC=dietlibc
162 #elif defined(__GLIBC__)
163 LIBC=gnu
147164 #else
148 LIBC=gnu
165 #include <stdarg.h>
166 /* First heuristic to detect musl libc. */
167 #ifdef __DEFINED_va_list
168 LIBC=musl
169 #endif
149170 #endif
150171 EOF
151 eval "`$CC_FOR_BUILD -E "$dummy.c" 2>/dev/null | grep '^LIBC' | sed 's, ,,g'`"
152
153 # If ldd exists, use it to detect musl libc.
154 if command -v ldd >/dev/null && \
155 ldd --version 2>&1 | grep -q ^musl
156 then
157 LIBC=musl
172 cc_set_libc=`$CC_FOR_BUILD -E "$dummy.c" 2>/dev/null | grep '^LIBC' | sed 's, ,,g'`
173 eval "$cc_set_libc"
174
175 # Second heuristic to detect musl libc.
176 if [ "$LIBC" = unknown ] &&
177 command -v ldd >/dev/null &&
178 ldd --version 2>&1 | grep -q ^musl; then
179 LIBC=musl
180 fi
181
182 # If the system lacks a compiler, then just pick glibc.
183 # We could probably try harder.
184 if [ "$LIBC" = unknown ]; then
185 LIBC=gnu
158186 fi
159187 ;;
160188 esac
161189
162190 # Note: order is significant - the case branches are not exclusive.
163191
164 case "$UNAME_MACHINE:$UNAME_SYSTEM:$UNAME_RELEASE:$UNAME_VERSION" in
192 case $UNAME_MACHINE:$UNAME_SYSTEM:$UNAME_RELEASE:$UNAME_VERSION in
165193 *:NetBSD:*:*)
166194 # NetBSD (nbsd) targets should (where applicable) match one or
167195 # more of the tuples: *-*-netbsdelf*, *-*-netbsdaout*,
173201 #
174202 # Note: NetBSD doesn't particularly care about the vendor
175203 # portion of the name. We always set it to "unknown".
176 sysctl="sysctl -n hw.machine_arch"
177204 UNAME_MACHINE_ARCH=`(uname -p 2>/dev/null || \
178 "/sbin/$sysctl" 2>/dev/null || \
179 "/usr/sbin/$sysctl" 2>/dev/null || \
205 /sbin/sysctl -n hw.machine_arch 2>/dev/null || \
206 /usr/sbin/sysctl -n hw.machine_arch 2>/dev/null || \
180207 echo unknown)`
181 case "$UNAME_MACHINE_ARCH" in
208 case $UNAME_MACHINE_ARCH in
209 aarch64eb) machine=aarch64_be-unknown ;;
182210 armeb) machine=armeb-unknown ;;
183211 arm*) machine=arm-unknown ;;
184212 sh3el) machine=shl-unknown ;;
187215 earmv*)
188216 arch=`echo "$UNAME_MACHINE_ARCH" | sed -e 's,^e\(armv[0-9]\).*$,\1,'`
189217 endian=`echo "$UNAME_MACHINE_ARCH" | sed -ne 's,^.*\(eb\)$,\1,p'`
190 machine="${arch}${endian}"-unknown
218 machine=${arch}${endian}-unknown
191219 ;;
192 *) machine="$UNAME_MACHINE_ARCH"-unknown ;;
220 *) machine=$UNAME_MACHINE_ARCH-unknown ;;
193221 esac
194222 # The Operating System including object format, if it has switched
195223 # to ELF recently (or will in the future) and ABI.
196 case "$UNAME_MACHINE_ARCH" in
224 case $UNAME_MACHINE_ARCH in
197225 earm*)
198226 os=netbsdelf
199227 ;;
200228 arm*|i386|m68k|ns32k|sh3*|sparc|vax)
201 eval "$set_cc_for_build"
229 set_cc_for_build
202230 if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \
203231 | grep -q __ELF__
204232 then
214242 ;;
215243 esac
216244 # Determine ABI tags.
217 case "$UNAME_MACHINE_ARCH" in
245 case $UNAME_MACHINE_ARCH in
218246 earm*)
219247 expr='s/^earmv[0-9]/-eabi/;s/eb$//'
220248 abi=`echo "$UNAME_MACHINE_ARCH" | sed -e "$expr"`
225253 # thus, need a distinct triplet. However, they do not need
226254 # kernel version information, so it can be replaced with a
227255 # suitable tag, in the style of linux-gnu.
228 case "$UNAME_VERSION" in
256 case $UNAME_VERSION in
229257 Debian*)
230258 release='-gnu'
231259 ;;
236264 # Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM:
237265 # contains redundant information, the shorter form:
238266 # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used.
239 echo "$machine-${os}${release}${abi}"
240 exit ;;
267 GUESS=$machine-${os}${release}${abi-}
268 ;;
241269 *:Bitrig:*:*)
242270 UNAME_MACHINE_ARCH=`arch | sed 's/Bitrig.//'`
243 echo "$UNAME_MACHINE_ARCH"-unknown-bitrig"$UNAME_RELEASE"
244 exit ;;
271 GUESS=$UNAME_MACHINE_ARCH-unknown-bitrig$UNAME_RELEASE
272 ;;
245273 *:OpenBSD:*:*)
246274 UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'`
247 echo "$UNAME_MACHINE_ARCH"-unknown-openbsd"$UNAME_RELEASE"
248 exit ;;
275 GUESS=$UNAME_MACHINE_ARCH-unknown-openbsd$UNAME_RELEASE
276 ;;
277 *:SecBSD:*:*)
278 UNAME_MACHINE_ARCH=`arch | sed 's/SecBSD.//'`
279 GUESS=$UNAME_MACHINE_ARCH-unknown-secbsd$UNAME_RELEASE
280 ;;
249281 *:LibertyBSD:*:*)
250282 UNAME_MACHINE_ARCH=`arch | sed 's/^.*BSD\.//'`
251 echo "$UNAME_MACHINE_ARCH"-unknown-libertybsd"$UNAME_RELEASE"
252 exit ;;
283 GUESS=$UNAME_MACHINE_ARCH-unknown-libertybsd$UNAME_RELEASE
284 ;;
253285 *:MidnightBSD:*:*)
254 echo "$UNAME_MACHINE"-unknown-midnightbsd"$UNAME_RELEASE"
255 exit ;;
286 GUESS=$UNAME_MACHINE-unknown-midnightbsd$UNAME_RELEASE
287 ;;
256288 *:ekkoBSD:*:*)
257 echo "$UNAME_MACHINE"-unknown-ekkobsd"$UNAME_RELEASE"
258 exit ;;
289 GUESS=$UNAME_MACHINE-unknown-ekkobsd$UNAME_RELEASE
290 ;;
259291 *:SolidBSD:*:*)
260 echo "$UNAME_MACHINE"-unknown-solidbsd"$UNAME_RELEASE"
261 exit ;;
292 GUESS=$UNAME_MACHINE-unknown-solidbsd$UNAME_RELEASE
293 ;;
294 *:OS108:*:*)
295 GUESS=$UNAME_MACHINE-unknown-os108_$UNAME_RELEASE
296 ;;
262297 macppc:MirBSD:*:*)
263 echo powerpc-unknown-mirbsd"$UNAME_RELEASE"
264 exit ;;
298 GUESS=powerpc-unknown-mirbsd$UNAME_RELEASE
299 ;;
265300 *:MirBSD:*:*)
266 echo "$UNAME_MACHINE"-unknown-mirbsd"$UNAME_RELEASE"
267 exit ;;
301 GUESS=$UNAME_MACHINE-unknown-mirbsd$UNAME_RELEASE
302 ;;
268303 *:Sortix:*:*)
269 echo "$UNAME_MACHINE"-unknown-sortix
270 exit ;;
304 GUESS=$UNAME_MACHINE-unknown-sortix
305 ;;
306 *:Twizzler:*:*)
307 GUESS=$UNAME_MACHINE-unknown-twizzler
308 ;;
271309 *:Redox:*:*)
272 echo "$UNAME_MACHINE"-unknown-redox
273 exit ;;
310 GUESS=$UNAME_MACHINE-unknown-redox
311 ;;
274312 mips:OSF1:*.*)
275 echo mips-dec-osf1
276 exit ;;
313 GUESS=mips-dec-osf1
314 ;;
277315 alpha:OSF1:*:*)
316 # Reset EXIT trap before exiting to avoid spurious non-zero exit code.
317 trap '' 0
278318 case $UNAME_RELEASE in
279319 *4.0)
280320 UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'`
288328 # covers most systems running today. This code pipes the CPU
289329 # types through head -n 1, so we only detect the type of CPU 0.
290330 ALPHA_CPU_TYPE=`/usr/sbin/psrinfo -v | sed -n -e 's/^ The alpha \(.*\) processor.*$/\1/p' | head -n 1`
291 case "$ALPHA_CPU_TYPE" in
331 case $ALPHA_CPU_TYPE in
292332 "EV4 (21064)")
293333 UNAME_MACHINE=alpha ;;
294334 "EV4.5 (21064)")
325365 # A Tn.n version is a released field test version.
326366 # A Xn.n version is an unreleased experimental baselevel.
327367 # 1.2 uses "1.2" for uname -r.
328 echo "$UNAME_MACHINE"-dec-osf"`echo "$UNAME_RELEASE" | sed -e 's/^[PVTX]//' | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz`"
329 # Reset EXIT trap before exiting to avoid spurious non-zero exit code.
330 exitcode=$?
331 trap '' 0
332 exit $exitcode ;;
368 OSF_REL=`echo "$UNAME_RELEASE" | sed -e 's/^[PVTX]//' | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz`
369 GUESS=$UNAME_MACHINE-dec-osf$OSF_REL
370 ;;
333371 Amiga*:UNIX_System_V:4.0:*)
334 echo m68k-unknown-sysv4
335 exit ;;
372 GUESS=m68k-unknown-sysv4
373 ;;
336374 *:[Aa]miga[Oo][Ss]:*:*)
337 echo "$UNAME_MACHINE"-unknown-amigaos
338 exit ;;
375 GUESS=$UNAME_MACHINE-unknown-amigaos
376 ;;
339377 *:[Mm]orph[Oo][Ss]:*:*)
340 echo "$UNAME_MACHINE"-unknown-morphos
341 exit ;;
378 GUESS=$UNAME_MACHINE-unknown-morphos
379 ;;
342380 *:OS/390:*:*)
343 echo i370-ibm-openedition
344 exit ;;
381 GUESS=i370-ibm-openedition
382 ;;
345383 *:z/VM:*:*)
346 echo s390-ibm-zvmoe
347 exit ;;
384 GUESS=s390-ibm-zvmoe
385 ;;
348386 *:OS400:*:*)
349 echo powerpc-ibm-os400
350 exit ;;
387 GUESS=powerpc-ibm-os400
388 ;;
351389 arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*)
352 echo arm-acorn-riscix"$UNAME_RELEASE"
353 exit ;;
390 GUESS=arm-acorn-riscix$UNAME_RELEASE
391 ;;
354392 arm*:riscos:*:*|arm*:RISCOS:*:*)
355 echo arm-unknown-riscos
356 exit ;;
393 GUESS=arm-unknown-riscos
394 ;;
357395 SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*)
358 echo hppa1.1-hitachi-hiuxmpp
359 exit ;;
396 GUESS=hppa1.1-hitachi-hiuxmpp
397 ;;
360398 Pyramid*:OSx*:*:* | MIS*:OSx*:*:* | MIS*:SMP_DC-OSx*:*:*)
361399 # akee@wpdis03.wpafb.af.mil (Earle F. Ake) contributed MIS and NILE.
362 if test "`(/bin/universe) 2>/dev/null`" = att ; then
363 echo pyramid-pyramid-sysv3
364 else
365 echo pyramid-pyramid-bsd
366 fi
367 exit ;;
400 case `(/bin/universe) 2>/dev/null` in
401 att) GUESS=pyramid-pyramid-sysv3 ;;
402 *) GUESS=pyramid-pyramid-bsd ;;
403 esac
404 ;;
368405 NILE*:*:*:dcosx)
369 echo pyramid-pyramid-svr4
370 exit ;;
406 GUESS=pyramid-pyramid-svr4
407 ;;
371408 DRS?6000:unix:4.0:6*)
372 echo sparc-icl-nx6
373 exit ;;
409 GUESS=sparc-icl-nx6
410 ;;
374411 DRS?6000:UNIX_SV:4.2*:7* | DRS?6000:isis:4.2*:7*)
375412 case `/usr/bin/uname -p` in
376 sparc) echo sparc-icl-nx7; exit ;;
377 esac ;;
413 sparc) GUESS=sparc-icl-nx7 ;;
414 esac
415 ;;
378416 s390x:SunOS:*:*)
379 echo "$UNAME_MACHINE"-ibm-solaris2"`echo "$UNAME_RELEASE" | sed -e 's/[^.]*//'`"
380 exit ;;
417 SUN_REL=`echo "$UNAME_RELEASE" | sed -e 's/[^.]*//'`
418 GUESS=$UNAME_MACHINE-ibm-solaris2$SUN_REL
419 ;;
381420 sun4H:SunOS:5.*:*)
382 echo sparc-hal-solaris2"`echo "$UNAME_RELEASE"|sed -e 's/[^.]*//'`"
383 exit ;;
421 SUN_REL=`echo "$UNAME_RELEASE" | sed -e 's/[^.]*//'`
422 GUESS=sparc-hal-solaris2$SUN_REL
423 ;;
384424 sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*)
385 echo sparc-sun-solaris2"`echo "$UNAME_RELEASE" | sed -e 's/[^.]*//'`"
386 exit ;;
425 SUN_REL=`echo "$UNAME_RELEASE" | sed -e 's/[^.]*//'`
426 GUESS=sparc-sun-solaris2$SUN_REL
427 ;;
387428 i86pc:AuroraUX:5.*:* | i86xen:AuroraUX:5.*:*)
388 echo i386-pc-auroraux"$UNAME_RELEASE"
389 exit ;;
429 GUESS=i386-pc-auroraux$UNAME_RELEASE
430 ;;
390431 i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*)
391 eval "$set_cc_for_build"
432 set_cc_for_build
392433 SUN_ARCH=i386
393434 # If there is a compiler, see if it is configured for 64-bit objects.
394435 # Note that the Sun cc does not turn __LP64__ into 1 like gcc does.
395436 # This test works for both compilers.
396 if [ "$CC_FOR_BUILD" != no_compiler_found ]; then
437 if test "$CC_FOR_BUILD" != no_compiler_found; then
397438 if (echo '#ifdef __amd64'; echo IS_64BIT_ARCH; echo '#endif') | \
398 (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | \
439 (CCOPTS="" $CC_FOR_BUILD -m64 -E - 2>/dev/null) | \
399440 grep IS_64BIT_ARCH >/dev/null
400441 then
401442 SUN_ARCH=x86_64
402443 fi
403444 fi
404 echo "$SUN_ARCH"-pc-solaris2"`echo "$UNAME_RELEASE"|sed -e 's/[^.]*//'`"
405 exit ;;
445 SUN_REL=`echo "$UNAME_RELEASE" | sed -e 's/[^.]*//'`
446 GUESS=$SUN_ARCH-pc-solaris2$SUN_REL
447 ;;
406448 sun4*:SunOS:6*:*)
407449 # According to config.sub, this is the proper way to canonicalize
408450 # SunOS6. Hard to guess exactly what SunOS6 will be like, but
409451 # it's likely to be more like Solaris than SunOS4.
410 echo sparc-sun-solaris3"`echo "$UNAME_RELEASE"|sed -e 's/[^.]*//'`"
411 exit ;;
452 SUN_REL=`echo "$UNAME_RELEASE" | sed -e 's/[^.]*//'`
453 GUESS=sparc-sun-solaris3$SUN_REL
454 ;;
412455 sun4*:SunOS:*:*)
413 case "`/usr/bin/arch -k`" in
456 case `/usr/bin/arch -k` in
414457 Series*|S4*)
415458 UNAME_RELEASE=`uname -v`
416459 ;;
417460 esac
418461 # Japanese Language versions have a version number like `4.1.3-JL'.
419 echo sparc-sun-sunos"`echo "$UNAME_RELEASE"|sed -e 's/-/_/'`"
420 exit ;;
462 SUN_REL=`echo "$UNAME_RELEASE" | sed -e 's/-/_/'`
463 GUESS=sparc-sun-sunos$SUN_REL
464 ;;
421465 sun3*:SunOS:*:*)
422 echo m68k-sun-sunos"$UNAME_RELEASE"
423 exit ;;
466 GUESS=m68k-sun-sunos$UNAME_RELEASE
467 ;;
424468 sun*:*:4.2BSD:*)
425469 UNAME_RELEASE=`(sed 1q /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null`
426470 test "x$UNAME_RELEASE" = x && UNAME_RELEASE=3
427 case "`/bin/arch`" in
471 case `/bin/arch` in
428472 sun3)
429 echo m68k-sun-sunos"$UNAME_RELEASE"
473 GUESS=m68k-sun-sunos$UNAME_RELEASE
430474 ;;
431475 sun4)
432 echo sparc-sun-sunos"$UNAME_RELEASE"
476 GUESS=sparc-sun-sunos$UNAME_RELEASE
433477 ;;
434478 esac
435 exit ;;
479 ;;
436480 aushp:SunOS:*:*)
437 echo sparc-auspex-sunos"$UNAME_RELEASE"
438 exit ;;
481 GUESS=sparc-auspex-sunos$UNAME_RELEASE
482 ;;
439483 # The situation for MiNT is a little confusing. The machine name
440484 # can be virtually everything (everything which is not
441485 # "atarist" or "atariste" at least should have a processor
445489 # MiNT. But MiNT is downward compatible to TOS, so this should
446490 # be no problem.
447491 atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*)
448 echo m68k-atari-mint"$UNAME_RELEASE"
449 exit ;;
492 GUESS=m68k-atari-mint$UNAME_RELEASE
493 ;;
450494 atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*)
451 echo m68k-atari-mint"$UNAME_RELEASE"
452 exit ;;
495 GUESS=m68k-atari-mint$UNAME_RELEASE
496 ;;
453497 *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*)
454 echo m68k-atari-mint"$UNAME_RELEASE"
455 exit ;;
498 GUESS=m68k-atari-mint$UNAME_RELEASE
499 ;;
456500 milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*)
457 echo m68k-milan-mint"$UNAME_RELEASE"
458 exit ;;
501 GUESS=m68k-milan-mint$UNAME_RELEASE
502 ;;
459503 hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*)
460 echo m68k-hades-mint"$UNAME_RELEASE"
461 exit ;;
504 GUESS=m68k-hades-mint$UNAME_RELEASE
505 ;;
462506 *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*)
463 echo m68k-unknown-mint"$UNAME_RELEASE"
464 exit ;;
507 GUESS=m68k-unknown-mint$UNAME_RELEASE
508 ;;
465509 m68k:machten:*:*)
466 echo m68k-apple-machten"$UNAME_RELEASE"
467 exit ;;
510 GUESS=m68k-apple-machten$UNAME_RELEASE
511 ;;
468512 powerpc:machten:*:*)
469 echo powerpc-apple-machten"$UNAME_RELEASE"
470 exit ;;
513 GUESS=powerpc-apple-machten$UNAME_RELEASE
514 ;;
471515 RISC*:Mach:*:*)
472 echo mips-dec-mach_bsd4.3
473 exit ;;
516 GUESS=mips-dec-mach_bsd4.3
517 ;;
474518 RISC*:ULTRIX:*:*)
475 echo mips-dec-ultrix"$UNAME_RELEASE"
476 exit ;;
519 GUESS=mips-dec-ultrix$UNAME_RELEASE
520 ;;
477521 VAX*:ULTRIX*:*:*)
478 echo vax-dec-ultrix"$UNAME_RELEASE"
479 exit ;;
522 GUESS=vax-dec-ultrix$UNAME_RELEASE
523 ;;
480524 2020:CLIX:*:* | 2430:CLIX:*:*)
481 echo clipper-intergraph-clix"$UNAME_RELEASE"
482 exit ;;
525 GUESS=clipper-intergraph-clix$UNAME_RELEASE
526 ;;
483527 mips:*:*:UMIPS | mips:*:*:RISCos)
484 eval "$set_cc_for_build"
528 set_cc_for_build
485529 sed 's/^ //' << EOF > "$dummy.c"
486530 #ifdef __cplusplus
487531 #include <stdio.h> /* for printf() prototype */
507551 dummyarg=`echo "$UNAME_RELEASE" | sed -n 's/\([0-9]*\).*/\1/p'` &&
508552 SYSTEM_NAME=`"$dummy" "$dummyarg"` &&
509553 { echo "$SYSTEM_NAME"; exit; }
510 echo mips-mips-riscos"$UNAME_RELEASE"
511 exit ;;
554 GUESS=mips-mips-riscos$UNAME_RELEASE
555 ;;
512556 Motorola:PowerMAX_OS:*:*)
513 echo powerpc-motorola-powermax
514 exit ;;
557 GUESS=powerpc-motorola-powermax
558 ;;
515559 Motorola:*:4.3:PL8-*)
516 echo powerpc-harris-powermax
517 exit ;;
560 GUESS=powerpc-harris-powermax
561 ;;
518562 Night_Hawk:*:*:PowerMAX_OS | Synergy:PowerMAX_OS:*:*)
519 echo powerpc-harris-powermax
520 exit ;;
563 GUESS=powerpc-harris-powermax
564 ;;
521565 Night_Hawk:Power_UNIX:*:*)
522 echo powerpc-harris-powerunix
523 exit ;;
566 GUESS=powerpc-harris-powerunix
567 ;;
524568 m88k:CX/UX:7*:*)
525 echo m88k-harris-cxux7
526 exit ;;
569 GUESS=m88k-harris-cxux7
570 ;;
527571 m88k:*:4*:R4*)
528 echo m88k-motorola-sysv4
529 exit ;;
572 GUESS=m88k-motorola-sysv4
573 ;;
530574 m88k:*:3*:R3*)
531 echo m88k-motorola-sysv3
532 exit ;;
575 GUESS=m88k-motorola-sysv3
576 ;;
533577 AViiON:dgux:*:*)
534578 # DG/UX returns AViiON for all architectures
535579 UNAME_PROCESSOR=`/usr/bin/uname -p`
536 if [ "$UNAME_PROCESSOR" = mc88100 ] || [ "$UNAME_PROCESSOR" = mc88110 ]
580 if test "$UNAME_PROCESSOR" = mc88100 || test "$UNAME_PROCESSOR" = mc88110
537581 then
538 if [ "$TARGET_BINARY_INTERFACE"x = m88kdguxelfx ] || \
539 [ "$TARGET_BINARY_INTERFACE"x = x ]
582 if test "$TARGET_BINARY_INTERFACE"x = m88kdguxelfx || \
583 test "$TARGET_BINARY_INTERFACE"x = x
540584 then
541 echo m88k-dg-dgux"$UNAME_RELEASE"
585 GUESS=m88k-dg-dgux$UNAME_RELEASE
542586 else
543 echo m88k-dg-dguxbcs"$UNAME_RELEASE"
587 GUESS=m88k-dg-dguxbcs$UNAME_RELEASE
544588 fi
545589 else
546 echo i586-dg-dgux"$UNAME_RELEASE"
547 fi
548 exit ;;
590 GUESS=i586-dg-dgux$UNAME_RELEASE
591 fi
592 ;;
549593 M88*:DolphinOS:*:*) # DolphinOS (SVR3)
550 echo m88k-dolphin-sysv3
551 exit ;;
594 GUESS=m88k-dolphin-sysv3
595 ;;
552596 M88*:*:R3*:*)
553597 # Delta 88k system running SVR3
554 echo m88k-motorola-sysv3
555 exit ;;
598 GUESS=m88k-motorola-sysv3
599 ;;
556600 XD88*:*:*:*) # Tektronix XD88 system running UTekV (SVR3)
557 echo m88k-tektronix-sysv3
558 exit ;;
601 GUESS=m88k-tektronix-sysv3
602 ;;
559603 Tek43[0-9][0-9]:UTek:*:*) # Tektronix 4300 system running UTek (BSD)
560 echo m68k-tektronix-bsd
561 exit ;;
604 GUESS=m68k-tektronix-bsd
605 ;;
562606 *:IRIX*:*:*)
563 echo mips-sgi-irix"`echo "$UNAME_RELEASE"|sed -e 's/-/_/g'`"
564 exit ;;
607 IRIX_REL=`echo "$UNAME_RELEASE" | sed -e 's/-/_/g'`
608 GUESS=mips-sgi-irix$IRIX_REL
609 ;;
565610 ????????:AIX?:[12].1:2) # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX.
566 echo romp-ibm-aix # uname -m gives an 8 hex-code CPU id
567 exit ;; # Note that: echo "'`uname -s`'" gives 'AIX '
611 GUESS=romp-ibm-aix # uname -m gives an 8 hex-code CPU id
612 ;; # Note that: echo "'`uname -s`'" gives 'AIX '
568613 i*86:AIX:*:*)
569 echo i386-ibm-aix
570 exit ;;
614 GUESS=i386-ibm-aix
615 ;;
571616 ia64:AIX:*:*)
572 if [ -x /usr/bin/oslevel ] ; then
617 if test -x /usr/bin/oslevel ; then
573618 IBM_REV=`/usr/bin/oslevel`
574619 else
575 IBM_REV="$UNAME_VERSION.$UNAME_RELEASE"
576 fi
577 echo "$UNAME_MACHINE"-ibm-aix"$IBM_REV"
578 exit ;;
620 IBM_REV=$UNAME_VERSION.$UNAME_RELEASE
621 fi
622 GUESS=$UNAME_MACHINE-ibm-aix$IBM_REV
623 ;;
579624 *:AIX:2:3)
580625 if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then
581 eval "$set_cc_for_build"
626 set_cc_for_build
582627 sed 's/^ //' << EOF > "$dummy.c"
583628 #include <sys/systemcfg.h>
584629
592637 EOF
593638 if $CC_FOR_BUILD -o "$dummy" "$dummy.c" && SYSTEM_NAME=`"$dummy"`
594639 then
595 echo "$SYSTEM_NAME"
640 GUESS=$SYSTEM_NAME
596641 else
597 echo rs6000-ibm-aix3.2.5
642 GUESS=rs6000-ibm-aix3.2.5
598643 fi
599644 elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then
600 echo rs6000-ibm-aix3.2.4
645 GUESS=rs6000-ibm-aix3.2.4
601646 else
602 echo rs6000-ibm-aix3.2
603 fi
604 exit ;;
647 GUESS=rs6000-ibm-aix3.2
648 fi
649 ;;
605650 *:AIX:*:[4567])
606651 IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'`
607652 if /usr/sbin/lsattr -El "$IBM_CPU_ID" | grep ' POWER' >/dev/null 2>&1; then
609654 else
610655 IBM_ARCH=powerpc
611656 fi
612 if [ -x /usr/bin/lslpp ] ; then
613 IBM_REV=`/usr/bin/lslpp -Lqc bos.rte.libc |
657 if test -x /usr/bin/lslpp ; then
658 IBM_REV=`/usr/bin/lslpp -Lqc bos.rte.libc | \
614659 awk -F: '{ print $3 }' | sed s/[0-9]*$/0/`
615660 else
616 IBM_REV="$UNAME_VERSION.$UNAME_RELEASE"
617 fi
618 echo "$IBM_ARCH"-ibm-aix"$IBM_REV"
619 exit ;;
661 IBM_REV=$UNAME_VERSION.$UNAME_RELEASE
662 fi
663 GUESS=$IBM_ARCH-ibm-aix$IBM_REV
664 ;;
620665 *:AIX:*:*)
621 echo rs6000-ibm-aix
622 exit ;;
666 GUESS=rs6000-ibm-aix
667 ;;
623668 ibmrt:4.4BSD:*|romp-ibm:4.4BSD:*)
624 echo romp-ibm-bsd4.4
625 exit ;;
669 GUESS=romp-ibm-bsd4.4
670 ;;
626671 ibmrt:*BSD:*|romp-ibm:BSD:*) # covers RT/PC BSD and
627 echo romp-ibm-bsd"$UNAME_RELEASE" # 4.3 with uname added to
628 exit ;; # report: romp-ibm BSD 4.3
672 GUESS=romp-ibm-bsd$UNAME_RELEASE # 4.3 with uname added to
673 ;; # report: romp-ibm BSD 4.3
629674 *:BOSX:*:*)
630 echo rs6000-bull-bosx
631 exit ;;
675 GUESS=rs6000-bull-bosx
676 ;;
632677 DPX/2?00:B.O.S.:*:*)
633 echo m68k-bull-sysv3
634 exit ;;
678 GUESS=m68k-bull-sysv3
679 ;;
635680 9000/[34]??:4.3bsd:1.*:*)
636 echo m68k-hp-bsd
637 exit ;;
681 GUESS=m68k-hp-bsd
682 ;;
638683 hp300:4.4BSD:*:* | 9000/[34]??:4.3bsd:2.*:*)
639 echo m68k-hp-bsd4.4
640 exit ;;
684 GUESS=m68k-hp-bsd4.4
685 ;;
641686 9000/[34678]??:HP-UX:*:*)
642 HPUX_REV=`echo "$UNAME_RELEASE"|sed -e 's/[^.]*.[0B]*//'`
643 case "$UNAME_MACHINE" in
687 HPUX_REV=`echo "$UNAME_RELEASE" | sed -e 's/[^.]*.[0B]*//'`
688 case $UNAME_MACHINE in
644689 9000/31?) HP_ARCH=m68000 ;;
645690 9000/[34]??) HP_ARCH=m68k ;;
646691 9000/[678][0-9][0-9])
647 if [ -x /usr/bin/getconf ]; then
692 if test -x /usr/bin/getconf; then
648693 sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null`
649694 sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null`
650 case "$sc_cpu_version" in
695 case $sc_cpu_version in
651696 523) HP_ARCH=hppa1.0 ;; # CPU_PA_RISC1_0
652697 528) HP_ARCH=hppa1.1 ;; # CPU_PA_RISC1_1
653698 532) # CPU_PA_RISC2_0
654 case "$sc_kernel_bits" in
699 case $sc_kernel_bits in
655700 32) HP_ARCH=hppa2.0n ;;
656701 64) HP_ARCH=hppa2.0w ;;
657702 '') HP_ARCH=hppa2.0 ;; # HP-UX 10.20
658703 esac ;;
659704 esac
660705 fi
661 if [ "$HP_ARCH" = "" ]; then
662 eval "$set_cc_for_build"
706 if test "$HP_ARCH" = ""; then
707 set_cc_for_build
663708 sed 's/^ //' << EOF > "$dummy.c"
664709
665710 #define _HPUX_SOURCE
697742 test -z "$HP_ARCH" && HP_ARCH=hppa
698743 fi ;;
699744 esac
700 if [ "$HP_ARCH" = hppa2.0w ]
745 if test "$HP_ARCH" = hppa2.0w
701746 then
702 eval "$set_cc_for_build"
747 set_cc_for_build
703748
704749 # hppa2.0w-hp-hpux* has a 64-bit kernel and a compiler generating
705750 # 32-bit code. hppa64-hp-hpux* has the same kernel and a compiler
718763 HP_ARCH=hppa64
719764 fi
720765 fi
721 echo "$HP_ARCH"-hp-hpux"$HPUX_REV"
722 exit ;;
766 GUESS=$HP_ARCH-hp-hpux$HPUX_REV
767 ;;
723768 ia64:HP-UX:*:*)
724 HPUX_REV=`echo "$UNAME_RELEASE"|sed -e 's/[^.]*.[0B]*//'`
725 echo ia64-hp-hpux"$HPUX_REV"
726 exit ;;
769 HPUX_REV=`echo "$UNAME_RELEASE" | sed -e 's/[^.]*.[0B]*//'`
770 GUESS=ia64-hp-hpux$HPUX_REV
771 ;;
727772 3050*:HI-UX:*:*)
728 eval "$set_cc_for_build"
773 set_cc_for_build
729774 sed 's/^ //' << EOF > "$dummy.c"
730775 #include <unistd.h>
731776 int
753798 EOF
754799 $CC_FOR_BUILD -o "$dummy" "$dummy.c" && SYSTEM_NAME=`"$dummy"` &&
755800 { echo "$SYSTEM_NAME"; exit; }
756 echo unknown-hitachi-hiuxwe2
757 exit ;;
801 GUESS=unknown-hitachi-hiuxwe2
802 ;;
758803 9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:*)
759 echo hppa1.1-hp-bsd
760 exit ;;
804 GUESS=hppa1.1-hp-bsd
805 ;;
761806 9000/8??:4.3bsd:*:*)
762 echo hppa1.0-hp-bsd
763 exit ;;
807 GUESS=hppa1.0-hp-bsd
808 ;;
764809 *9??*:MPE/iX:*:* | *3000*:MPE/iX:*:*)
765 echo hppa1.0-hp-mpeix
766 exit ;;
810 GUESS=hppa1.0-hp-mpeix
811 ;;
767812 hp7??:OSF1:*:* | hp8?[79]:OSF1:*:*)
768 echo hppa1.1-hp-osf
769 exit ;;
813 GUESS=hppa1.1-hp-osf
814 ;;
770815 hp8??:OSF1:*:*)
771 echo hppa1.0-hp-osf
772 exit ;;
816 GUESS=hppa1.0-hp-osf
817 ;;
773818 i*86:OSF1:*:*)
774 if [ -x /usr/sbin/sysversion ] ; then
775 echo "$UNAME_MACHINE"-unknown-osf1mk
819 if test -x /usr/sbin/sysversion ; then
820 GUESS=$UNAME_MACHINE-unknown-osf1mk
776821 else
777 echo "$UNAME_MACHINE"-unknown-osf1
778 fi
779 exit ;;
822 GUESS=$UNAME_MACHINE-unknown-osf1
823 fi
824 ;;
780825 parisc*:Lites*:*:*)
781 echo hppa1.1-hp-lites
782 exit ;;
826 GUESS=hppa1.1-hp-lites
827 ;;
783828 C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*)
784 echo c1-convex-bsd
785 exit ;;
829 GUESS=c1-convex-bsd
830 ;;
786831 C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*)
787832 if getsysinfo -f scalar_acc
788833 then echo c32-convex-bsd
790835 fi
791836 exit ;;
792837 C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*)
793 echo c34-convex-bsd
794 exit ;;
838 GUESS=c34-convex-bsd
839 ;;
795840 C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*)
796 echo c38-convex-bsd
797 exit ;;
841 GUESS=c38-convex-bsd
842 ;;
798843 C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*)
799 echo c4-convex-bsd
800 exit ;;
844 GUESS=c4-convex-bsd
845 ;;
801846 CRAY*Y-MP:*:*:*)
802 echo ymp-cray-unicos"$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/'
803 exit ;;
847 CRAY_REL=`echo "$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/'`
848 GUESS=ymp-cray-unicos$CRAY_REL
849 ;;
804850 CRAY*[A-Z]90:*:*:*)
805851 echo "$UNAME_MACHINE"-cray-unicos"$UNAME_RELEASE" \
806852 | sed -e 's/CRAY.*\([A-Z]90\)/\1/' \
808854 -e 's/\.[^.]*$/.X/'
809855 exit ;;
810856 CRAY*TS:*:*:*)
811 echo t90-cray-unicos"$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/'
812 exit ;;
857 CRAY_REL=`echo "$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/'`
858 GUESS=t90-cray-unicos$CRAY_REL
859 ;;
813860 CRAY*T3E:*:*:*)
814 echo alphaev5-cray-unicosmk"$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/'
815 exit ;;
861 CRAY_REL=`echo "$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/'`
862 GUESS=alphaev5-cray-unicosmk$CRAY_REL
863 ;;
816864 CRAY*SV1:*:*:*)
817 echo sv1-cray-unicos"$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/'
818 exit ;;
865 CRAY_REL=`echo "$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/'`
866 GUESS=sv1-cray-unicos$CRAY_REL
867 ;;
819868 *:UNICOS/mp:*:*)
820 echo craynv-cray-unicosmp"$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/'
821 exit ;;
869 CRAY_REL=`echo "$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/'`
870 GUESS=craynv-cray-unicosmp$CRAY_REL
871 ;;
822872 F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*)
823873 FUJITSU_PROC=`uname -m | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz`
824874 FUJITSU_SYS=`uname -p | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz | sed -e 's/\///'`
825875 FUJITSU_REL=`echo "$UNAME_RELEASE" | sed -e 's/ /_/'`
826 echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
827 exit ;;
876 GUESS=${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}
877 ;;
828878 5000:UNIX_System_V:4.*:*)
829879 FUJITSU_SYS=`uname -p | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz | sed -e 's/\///'`
830880 FUJITSU_REL=`echo "$UNAME_RELEASE" | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz | sed -e 's/ /_/'`
831 echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
832 exit ;;
881 GUESS=sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}
882 ;;
833883 i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*)
834 echo "$UNAME_MACHINE"-pc-bsdi"$UNAME_RELEASE"
835 exit ;;
884 GUESS=$UNAME_MACHINE-pc-bsdi$UNAME_RELEASE
885 ;;
836886 sparc*:BSD/OS:*:*)
837 echo sparc-unknown-bsdi"$UNAME_RELEASE"
838 exit ;;
887 GUESS=sparc-unknown-bsdi$UNAME_RELEASE
888 ;;
839889 *:BSD/OS:*:*)
840 echo "$UNAME_MACHINE"-unknown-bsdi"$UNAME_RELEASE"
841 exit ;;
890 GUESS=$UNAME_MACHINE-unknown-bsdi$UNAME_RELEASE
891 ;;
892 arm:FreeBSD:*:*)
893 UNAME_PROCESSOR=`uname -p`
894 set_cc_for_build
895 if echo __ARM_PCS_VFP | $CC_FOR_BUILD -E - 2>/dev/null \
896 | grep -q __ARM_PCS_VFP
897 then
898 FREEBSD_REL=`echo "$UNAME_RELEASE" | sed -e 's/[-(].*//'`
899 GUESS=$UNAME_PROCESSOR-unknown-freebsd$FREEBSD_REL-gnueabi
900 else
901 FREEBSD_REL=`echo "$UNAME_RELEASE" | sed -e 's/[-(].*//'`
902 GUESS=$UNAME_PROCESSOR-unknown-freebsd$FREEBSD_REL-gnueabihf
903 fi
904 ;;
842905 *:FreeBSD:*:*)
843906 UNAME_PROCESSOR=`/usr/bin/uname -p`
844 case "$UNAME_PROCESSOR" in
907 case $UNAME_PROCESSOR in
845908 amd64)
846909 UNAME_PROCESSOR=x86_64 ;;
847910 i386)
848911 UNAME_PROCESSOR=i586 ;;
849912 esac
850 echo "$UNAME_PROCESSOR"-unknown-freebsd"`echo "$UNAME_RELEASE"|sed -e 's/[-(].*//'`"
851 exit ;;
913 FREEBSD_REL=`echo "$UNAME_RELEASE" | sed -e 's/[-(].*//'`
914 GUESS=$UNAME_PROCESSOR-unknown-freebsd$FREEBSD_REL
915 ;;
852916 i*:CYGWIN*:*)
853 echo "$UNAME_MACHINE"-pc-cygwin
854 exit ;;
917 GUESS=$UNAME_MACHINE-pc-cygwin
918 ;;
855919 *:MINGW64*:*)
856 echo "$UNAME_MACHINE"-pc-mingw64
857 exit ;;
920 GUESS=$UNAME_MACHINE-pc-mingw64
921 ;;
858922 *:MINGW*:*)
859 echo "$UNAME_MACHINE"-pc-mingw32
860 exit ;;
923 GUESS=$UNAME_MACHINE-pc-mingw32
924 ;;
861925 *:MSYS*:*)
862 echo "$UNAME_MACHINE"-pc-msys
863 exit ;;
926 GUESS=$UNAME_MACHINE-pc-msys
927 ;;
864928 i*:PW*:*)
865 echo "$UNAME_MACHINE"-pc-pw32
866 exit ;;
929 GUESS=$UNAME_MACHINE-pc-pw32
930 ;;
931 *:SerenityOS:*:*)
932 GUESS=$UNAME_MACHINE-pc-serenity
933 ;;
867934 *:Interix*:*)
868 case "$UNAME_MACHINE" in
935 case $UNAME_MACHINE in
869936 x86)
870 echo i586-pc-interix"$UNAME_RELEASE"
871 exit ;;
937 GUESS=i586-pc-interix$UNAME_RELEASE
938 ;;
872939 authenticamd | genuineintel | EM64T)
873 echo x86_64-unknown-interix"$UNAME_RELEASE"
874 exit ;;
940 GUESS=x86_64-unknown-interix$UNAME_RELEASE
941 ;;
875942 IA64)
876 echo ia64-unknown-interix"$UNAME_RELEASE"
877 exit ;;
943 GUESS=ia64-unknown-interix$UNAME_RELEASE
944 ;;
878945 esac ;;
879946 i*:UWIN*:*)
880 echo "$UNAME_MACHINE"-pc-uwin
881 exit ;;
947 GUESS=$UNAME_MACHINE-pc-uwin
948 ;;
882949 amd64:CYGWIN*:*:* | x86_64:CYGWIN*:*:*)
883 echo x86_64-unknown-cygwin
884 exit ;;
950 GUESS=x86_64-pc-cygwin
951 ;;
885952 prep*:SunOS:5.*:*)
886 echo powerpcle-unknown-solaris2"`echo "$UNAME_RELEASE"|sed -e 's/[^.]*//'`"
887 exit ;;
953 SUN_REL=`echo "$UNAME_RELEASE" | sed -e 's/[^.]*//'`
954 GUESS=powerpcle-unknown-solaris2$SUN_REL
955 ;;
888956 *:GNU:*:*)
889957 # the GNU system
890 echo "`echo "$UNAME_MACHINE"|sed -e 's,[-/].*$,,'`-unknown-$LIBC`echo "$UNAME_RELEASE"|sed -e 's,/.*$,,'`"
891 exit ;;
958 GNU_ARCH=`echo "$UNAME_MACHINE" | sed -e 's,[-/].*$,,'`
959 GNU_REL=`echo "$UNAME_RELEASE" | sed -e 's,/.*$,,'`
960 GUESS=$GNU_ARCH-unknown-$LIBC$GNU_REL
961 ;;
892962 *:GNU/*:*:*)
893963 # other systems with GNU libc and userland
894 echo "$UNAME_MACHINE-unknown-`echo "$UNAME_SYSTEM" | sed 's,^[^/]*/,,' | tr "[:upper:]" "[:lower:]"``echo "$UNAME_RELEASE"|sed -e 's/[-(].*//'`-$LIBC"
895 exit ;;
896 i*86:Minix:*:*)
897 echo "$UNAME_MACHINE"-pc-minix
898 exit ;;
964 GNU_SYS=`echo "$UNAME_SYSTEM" | sed 's,^[^/]*/,,' | tr "[:upper:]" "[:lower:]"`
965 GNU_REL=`echo "$UNAME_RELEASE" | sed -e 's/[-(].*//'`
966 GUESS=$UNAME_MACHINE-unknown-$GNU_SYS$GNU_REL-$LIBC
967 ;;
968 *:Minix:*:*)
969 GUESS=$UNAME_MACHINE-unknown-minix
970 ;;
899971 aarch64:Linux:*:*)
900 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
901 exit ;;
972 GUESS=$UNAME_MACHINE-unknown-linux-$LIBC
973 ;;
902974 aarch64_be:Linux:*:*)
903975 UNAME_MACHINE=aarch64_be
904 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
905 exit ;;
976 GUESS=$UNAME_MACHINE-unknown-linux-$LIBC
977 ;;
906978 alpha:Linux:*:*)
907 case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in
979 case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' /proc/cpuinfo 2>/dev/null` in
908980 EV5) UNAME_MACHINE=alphaev5 ;;
909981 EV56) UNAME_MACHINE=alphaev56 ;;
910982 PCA56) UNAME_MACHINE=alphapca56 ;;
915987 esac
916988 objdump --private-headers /bin/sh | grep -q ld.so.1
917989 if test "$?" = 0 ; then LIBC=gnulibc1 ; fi
918 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
919 exit ;;
920 arc:Linux:*:* | arceb:Linux:*:*)
921 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
922 exit ;;
990 GUESS=$UNAME_MACHINE-unknown-linux-$LIBC
991 ;;
992 arc:Linux:*:* | arceb:Linux:*:* | arc32:Linux:*:* | arc64:Linux:*:*)
993 GUESS=$UNAME_MACHINE-unknown-linux-$LIBC
994 ;;
923995 arm*:Linux:*:*)
924 eval "$set_cc_for_build"
996 set_cc_for_build
925997 if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \
926998 | grep -q __ARM_EABI__
927999 then
928 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
1000 GUESS=$UNAME_MACHINE-unknown-linux-$LIBC
9291001 else
9301002 if echo __ARM_PCS_VFP | $CC_FOR_BUILD -E - 2>/dev/null \
9311003 | grep -q __ARM_PCS_VFP
9321004 then
933 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"eabi
1005 GUESS=$UNAME_MACHINE-unknown-linux-${LIBC}eabi
9341006 else
935 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"eabihf
1007 GUESS=$UNAME_MACHINE-unknown-linux-${LIBC}eabihf
9361008 fi
9371009 fi
938 exit ;;
1010 ;;
9391011 avr32*:Linux:*:*)
940 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
941 exit ;;
1012 GUESS=$UNAME_MACHINE-unknown-linux-$LIBC
1013 ;;
9421014 cris:Linux:*:*)
943 echo "$UNAME_MACHINE"-axis-linux-"$LIBC"
944 exit ;;
1015 GUESS=$UNAME_MACHINE-axis-linux-$LIBC
1016 ;;
9451017 crisv32:Linux:*:*)
946 echo "$UNAME_MACHINE"-axis-linux-"$LIBC"
947 exit ;;
1018 GUESS=$UNAME_MACHINE-axis-linux-$LIBC
1019 ;;
9481020 e2k:Linux:*:*)
949 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
950 exit ;;
1021 GUESS=$UNAME_MACHINE-unknown-linux-$LIBC
1022 ;;
9511023 frv:Linux:*:*)
952 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
953 exit ;;
1024 GUESS=$UNAME_MACHINE-unknown-linux-$LIBC
1025 ;;
9541026 hexagon:Linux:*:*)
955 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
956 exit ;;
1027 GUESS=$UNAME_MACHINE-unknown-linux-$LIBC
1028 ;;
9571029 i*86:Linux:*:*)
958 echo "$UNAME_MACHINE"-pc-linux-"$LIBC"
959 exit ;;
1030 GUESS=$UNAME_MACHINE-pc-linux-$LIBC
1031 ;;
9601032 ia64:Linux:*:*)
961 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
962 exit ;;
1033 GUESS=$UNAME_MACHINE-unknown-linux-$LIBC
1034 ;;
9631035 k1om:Linux:*:*)
964 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
965 exit ;;
1036 GUESS=$UNAME_MACHINE-unknown-linux-$LIBC
1037 ;;
1038 loongarch32:Linux:*:* | loongarch64:Linux:*:* | loongarchx32:Linux:*:*)
1039 GUESS=$UNAME_MACHINE-unknown-linux-$LIBC
1040 ;;
9661041 m32r*:Linux:*:*)
967 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
968 exit ;;
1042 GUESS=$UNAME_MACHINE-unknown-linux-$LIBC
1043 ;;
9691044 m68*:Linux:*:*)
970 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
971 exit ;;
1045 GUESS=$UNAME_MACHINE-unknown-linux-$LIBC
1046 ;;
9721047 mips:Linux:*:* | mips64:Linux:*:*)
973 eval "$set_cc_for_build"
1048 set_cc_for_build
1049 IS_GLIBC=0
1050 test x"${LIBC}" = xgnu && IS_GLIBC=1
9741051 sed 's/^ //' << EOF > "$dummy.c"
9751052 #undef CPU
976 #undef ${UNAME_MACHINE}
977 #undef ${UNAME_MACHINE}el
1053 #undef mips
1054 #undef mipsel
1055 #undef mips64
1056 #undef mips64el
1057 #if ${IS_GLIBC} && defined(_ABI64)
1058 LIBCABI=gnuabi64
1059 #else
1060 #if ${IS_GLIBC} && defined(_ABIN32)
1061 LIBCABI=gnuabin32
1062 #else
1063 LIBCABI=${LIBC}
1064 #endif
1065 #endif
1066
1067 #if ${IS_GLIBC} && defined(__mips64) && defined(__mips_isa_rev) && __mips_isa_rev>=6
1068 CPU=mipsisa64r6
1069 #else
1070 #if ${IS_GLIBC} && !defined(__mips64) && defined(__mips_isa_rev) && __mips_isa_rev>=6
1071 CPU=mipsisa32r6
1072 #else
1073 #if defined(__mips64)
1074 CPU=mips64
1075 #else
1076 CPU=mips
1077 #endif
1078 #endif
1079 #endif
1080
9781081 #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
979 CPU=${UNAME_MACHINE}el
1082 MIPS_ENDIAN=el
9801083 #else
9811084 #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
982 CPU=${UNAME_MACHINE}
1085 MIPS_ENDIAN=
9831086 #else
984 CPU=
1087 MIPS_ENDIAN=
9851088 #endif
9861089 #endif
9871090 EOF
988 eval "`$CC_FOR_BUILD -E "$dummy.c" 2>/dev/null | grep '^CPU'`"
989 test "x$CPU" != x && { echo "$CPU-unknown-linux-$LIBC"; exit; }
1091 cc_set_vars=`$CC_FOR_BUILD -E "$dummy.c" 2>/dev/null | grep '^CPU\|^MIPS_ENDIAN\|^LIBCABI'`
1092 eval "$cc_set_vars"
1093 test "x$CPU" != x && { echo "$CPU${MIPS_ENDIAN}-unknown-linux-$LIBCABI"; exit; }
9901094 ;;
9911095 mips64el:Linux:*:*)
992 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
993 exit ;;
1096 GUESS=$UNAME_MACHINE-unknown-linux-$LIBC
1097 ;;
9941098 openrisc*:Linux:*:*)
995 echo or1k-unknown-linux-"$LIBC"
996 exit ;;
1099 GUESS=or1k-unknown-linux-$LIBC
1100 ;;
9971101 or32:Linux:*:* | or1k*:Linux:*:*)
998 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
999 exit ;;
1102 GUESS=$UNAME_MACHINE-unknown-linux-$LIBC
1103 ;;
10001104 padre:Linux:*:*)
1001 echo sparc-unknown-linux-"$LIBC"
1002 exit ;;
1105 GUESS=sparc-unknown-linux-$LIBC
1106 ;;
10031107 parisc64:Linux:*:* | hppa64:Linux:*:*)
1004 echo hppa64-unknown-linux-"$LIBC"
1005 exit ;;
1108 GUESS=hppa64-unknown-linux-$LIBC
1109 ;;
10061110 parisc:Linux:*:* | hppa:Linux:*:*)
10071111 # Look for CPU level
10081112 case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in
1009 PA7*) echo hppa1.1-unknown-linux-"$LIBC" ;;
1010 PA8*) echo hppa2.0-unknown-linux-"$LIBC" ;;
1011 *) echo hppa-unknown-linux-"$LIBC" ;;
1113 PA7*) GUESS=hppa1.1-unknown-linux-$LIBC ;;
1114 PA8*) GUESS=hppa2.0-unknown-linux-$LIBC ;;
1115 *) GUESS=hppa-unknown-linux-$LIBC ;;
10121116 esac
1013 exit ;;
1117 ;;
10141118 ppc64:Linux:*:*)
1015 echo powerpc64-unknown-linux-"$LIBC"
1016 exit ;;
1119 GUESS=powerpc64-unknown-linux-$LIBC
1120 ;;
10171121 ppc:Linux:*:*)
1018 echo powerpc-unknown-linux-"$LIBC"
1019 exit ;;
1122 GUESS=powerpc-unknown-linux-$LIBC
1123 ;;
10201124 ppc64le:Linux:*:*)
1021 echo powerpc64le-unknown-linux-"$LIBC"
1022 exit ;;
1125 GUESS=powerpc64le-unknown-linux-$LIBC
1126 ;;
10231127 ppcle:Linux:*:*)
1024 echo powerpcle-unknown-linux-"$LIBC"
1025 exit ;;
1026 riscv32:Linux:*:* | riscv64:Linux:*:*)
1027 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
1028 exit ;;
1128 GUESS=powerpcle-unknown-linux-$LIBC
1129 ;;
1130 riscv32:Linux:*:* | riscv32be:Linux:*:* | riscv64:Linux:*:* | riscv64be:Linux:*:*)
1131 GUESS=$UNAME_MACHINE-unknown-linux-$LIBC
1132 ;;
10291133 s390:Linux:*:* | s390x:Linux:*:*)
1030 echo "$UNAME_MACHINE"-ibm-linux-"$LIBC"
1031 exit ;;
1134 GUESS=$UNAME_MACHINE-ibm-linux-$LIBC
1135 ;;
10321136 sh64*:Linux:*:*)
1033 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
1034 exit ;;
1137 GUESS=$UNAME_MACHINE-unknown-linux-$LIBC
1138 ;;
10351139 sh*:Linux:*:*)
1036 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
1037 exit ;;
1140 GUESS=$UNAME_MACHINE-unknown-linux-$LIBC
1141 ;;
10381142 sparc:Linux:*:* | sparc64:Linux:*:*)
1039 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
1040 exit ;;
1143 GUESS=$UNAME_MACHINE-unknown-linux-$LIBC
1144 ;;
10411145 tile*:Linux:*:*)
1042 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
1043 exit ;;
1146 GUESS=$UNAME_MACHINE-unknown-linux-$LIBC
1147 ;;
10441148 vax:Linux:*:*)
1045 echo "$UNAME_MACHINE"-dec-linux-"$LIBC"
1046 exit ;;
1149 GUESS=$UNAME_MACHINE-dec-linux-$LIBC
1150 ;;
10471151 x86_64:Linux:*:*)
1048 if objdump -f /bin/sh | grep -q elf32-x86-64; then
1049 echo "$UNAME_MACHINE"-pc-linux-"$LIBC"x32
1050 else
1051 echo "$UNAME_MACHINE"-pc-linux-"$LIBC"
1052 fi
1053 exit ;;
1152 set_cc_for_build
1153 LIBCABI=$LIBC
1154 if test "$CC_FOR_BUILD" != no_compiler_found; then
1155 if (echo '#ifdef __ILP32__'; echo IS_X32; echo '#endif') | \
1156 (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | \
1157 grep IS_X32 >/dev/null
1158 then
1159 LIBCABI=${LIBC}x32
1160 fi
1161 fi
1162 GUESS=$UNAME_MACHINE-pc-linux-$LIBCABI
1163 ;;
10541164 xtensa*:Linux:*:*)
1055 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
1056 exit ;;
1165 GUESS=$UNAME_MACHINE-unknown-linux-$LIBC
1166 ;;
10571167 i*86:DYNIX/ptx:4*:*)
10581168 # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there.
10591169 # earlier versions are messed up and put the nodename in both
10601170 # sysname and nodename.
1061 echo i386-sequent-sysv4
1062 exit ;;
1171 GUESS=i386-sequent-sysv4
1172 ;;
10631173 i*86:UNIX_SV:4.2MP:2.*)
10641174 # Unixware is an offshoot of SVR4, but it has its own version
10651175 # number series starting with 2...
10661176 # I am not positive that other SVR4 systems won't match this,
10671177 # I just have to hope. -- rms.
10681178 # Use sysv4.2uw... so that sysv4* matches it.
1069 echo "$UNAME_MACHINE"-pc-sysv4.2uw"$UNAME_VERSION"
1070 exit ;;
1179 GUESS=$UNAME_MACHINE-pc-sysv4.2uw$UNAME_VERSION
1180 ;;
10711181 i*86:OS/2:*:*)
10721182 # If we were able to find `uname', then EMX Unix compatibility
10731183 # is probably installed.
1074 echo "$UNAME_MACHINE"-pc-os2-emx
1075 exit ;;
1184 GUESS=$UNAME_MACHINE-pc-os2-emx
1185 ;;
10761186 i*86:XTS-300:*:STOP)
1077 echo "$UNAME_MACHINE"-unknown-stop
1078 exit ;;
1187 GUESS=$UNAME_MACHINE-unknown-stop
1188 ;;
10791189 i*86:atheos:*:*)
1080 echo "$UNAME_MACHINE"-unknown-atheos
1081 exit ;;
1190 GUESS=$UNAME_MACHINE-unknown-atheos
1191 ;;
10821192 i*86:syllable:*:*)
1083 echo "$UNAME_MACHINE"-pc-syllable
1084 exit ;;
1193 GUESS=$UNAME_MACHINE-pc-syllable
1194 ;;
10851195 i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.[02]*:*)
1086 echo i386-unknown-lynxos"$UNAME_RELEASE"
1087 exit ;;
1196 GUESS=i386-unknown-lynxos$UNAME_RELEASE
1197 ;;
10881198 i*86:*DOS:*:*)
1089 echo "$UNAME_MACHINE"-pc-msdosdjgpp
1090 exit ;;
1199 GUESS=$UNAME_MACHINE-pc-msdosdjgpp
1200 ;;
10911201 i*86:*:4.*:*)
10921202 UNAME_REL=`echo "$UNAME_RELEASE" | sed 's/\/MP$//'`
10931203 if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then
1094 echo "$UNAME_MACHINE"-univel-sysv"$UNAME_REL"
1204 GUESS=$UNAME_MACHINE-univel-sysv$UNAME_REL
10951205 else
1096 echo "$UNAME_MACHINE"-pc-sysv"$UNAME_REL"
1097 fi
1098 exit ;;
1206 GUESS=$UNAME_MACHINE-pc-sysv$UNAME_REL
1207 fi
1208 ;;
10991209 i*86:*:5:[678]*)
11001210 # UnixWare 7.x, OpenUNIX and OpenServer 6.
11011211 case `/bin/uname -X | grep "^Machine"` in
11031213 *Pentium) UNAME_MACHINE=i586 ;;
11041214 *Pent*|*Celeron) UNAME_MACHINE=i686 ;;
11051215 esac
1106 echo "$UNAME_MACHINE-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}{$UNAME_VERSION}"
1107 exit ;;
1216 GUESS=$UNAME_MACHINE-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}${UNAME_VERSION}
1217 ;;
11081218 i*86:*:3.2:*)
11091219 if test -f /usr/options/cb.name; then
11101220 UNAME_REL=`sed -n 's/.*Version //p' </usr/options/cb.name`
1111 echo "$UNAME_MACHINE"-pc-isc"$UNAME_REL"
1221 GUESS=$UNAME_MACHINE-pc-isc$UNAME_REL
11121222 elif /bin/uname -X 2>/dev/null >/dev/null ; then
11131223 UNAME_REL=`(/bin/uname -X|grep Release|sed -e 's/.*= //')`
11141224 (/bin/uname -X|grep i80486 >/dev/null) && UNAME_MACHINE=i486
11181228 && UNAME_MACHINE=i686
11191229 (/bin/uname -X|grep '^Machine.*Pentium Pro' >/dev/null) \
11201230 && UNAME_MACHINE=i686
1121 echo "$UNAME_MACHINE"-pc-sco"$UNAME_REL"
1231 GUESS=$UNAME_MACHINE-pc-sco$UNAME_REL
11221232 else
1123 echo "$UNAME_MACHINE"-pc-sysv32
1124 fi
1125 exit ;;
1233 GUESS=$UNAME_MACHINE-pc-sysv32
1234 fi
1235 ;;
11261236 pc:*:*:*)
11271237 # Left here for compatibility:
11281238 # uname -m prints for DJGPP always 'pc', but it prints nothing about
11301240 # Note: whatever this is, it MUST be the same as what config.sub
11311241 # prints for the "djgpp" host, or else GDB configure will decide that
11321242 # this is a cross-build.
1133 echo i586-pc-msdosdjgpp
1134 exit ;;
1243 GUESS=i586-pc-msdosdjgpp
1244 ;;
11351245 Intel:Mach:3*:*)
1136 echo i386-pc-mach3
1137 exit ;;
1246 GUESS=i386-pc-mach3
1247 ;;
11381248 paragon:*:*:*)
1139 echo i860-intel-osf1
1140 exit ;;
1249 GUESS=i860-intel-osf1
1250 ;;
11411251 i860:*:4.*:*) # i860-SVR4
11421252 if grep Stardent /usr/include/sys/uadmin.h >/dev/null 2>&1 ; then
1143 echo i860-stardent-sysv"$UNAME_RELEASE" # Stardent Vistra i860-SVR4
1253 GUESS=i860-stardent-sysv$UNAME_RELEASE # Stardent Vistra i860-SVR4
11441254 else # Add other i860-SVR4 vendors below as they are discovered.
1145 echo i860-unknown-sysv"$UNAME_RELEASE" # Unknown i860-SVR4
1146 fi
1147 exit ;;
1255 GUESS=i860-unknown-sysv$UNAME_RELEASE # Unknown i860-SVR4
1256 fi
1257 ;;
11481258 mini*:CTIX:SYS*5:*)
11491259 # "miniframe"
1150 echo m68010-convergent-sysv
1151 exit ;;
1260 GUESS=m68010-convergent-sysv
1261 ;;
11521262 mc68k:UNIX:SYSTEM5:3.51m)
1153 echo m68k-convergent-sysv
1154 exit ;;
1263 GUESS=m68k-convergent-sysv
1264 ;;
11551265 M680?0:D-NIX:5.3:*)
1156 echo m68k-diab-dnix
1157 exit ;;
1266 GUESS=m68k-diab-dnix
1267 ;;
11581268 M68*:*:R3V[5678]*:*)
11591269 test -r /sysV68 && { echo 'm68k-motorola-sysv'; exit; } ;;
11601270 3[345]??:*:4.0:3.0 | 3[34]??A:*:4.0:3.0 | 3[34]??,*:*:4.0:3.0 | 3[34]??/*:*:4.0:3.0 | 4400:*:4.0:3.0 | 4850:*:4.0:3.0 | SKA40:*:4.0:3.0 | SDS2:*:4.0:3.0 | SHG2:*:4.0:3.0 | S7501*:*:4.0:3.0)
11791289 /bin/uname -p 2>/dev/null | /bin/grep pteron >/dev/null \
11801290 && { echo i586-ncr-sysv4.3"$OS_REL"; exit; } ;;
11811291 m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*)
1182 echo m68k-unknown-lynxos"$UNAME_RELEASE"
1183 exit ;;
1292 GUESS=m68k-unknown-lynxos$UNAME_RELEASE
1293 ;;
11841294 mc68030:UNIX_System_V:4.*:*)
1185 echo m68k-atari-sysv4
1186 exit ;;
1295 GUESS=m68k-atari-sysv4
1296 ;;
11871297 TSUNAMI:LynxOS:2.*:*)
1188 echo sparc-unknown-lynxos"$UNAME_RELEASE"
1189 exit ;;
1298 GUESS=sparc-unknown-lynxos$UNAME_RELEASE
1299 ;;
11901300 rs6000:LynxOS:2.*:*)
1191 echo rs6000-unknown-lynxos"$UNAME_RELEASE"
1192 exit ;;
1301 GUESS=rs6000-unknown-lynxos$UNAME_RELEASE
1302 ;;
11931303 PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.[02]*:*)
1194 echo powerpc-unknown-lynxos"$UNAME_RELEASE"
1195 exit ;;
1304 GUESS=powerpc-unknown-lynxos$UNAME_RELEASE
1305 ;;
11961306 SM[BE]S:UNIX_SV:*:*)
1197 echo mips-dde-sysv"$UNAME_RELEASE"
1198 exit ;;
1307 GUESS=mips-dde-sysv$UNAME_RELEASE
1308 ;;
11991309 RM*:ReliantUNIX-*:*:*)
1200 echo mips-sni-sysv4
1201 exit ;;
1310 GUESS=mips-sni-sysv4
1311 ;;
12021312 RM*:SINIX-*:*:*)
1203 echo mips-sni-sysv4
1204 exit ;;
1313 GUESS=mips-sni-sysv4
1314 ;;
12051315 *:SINIX-*:*:*)
12061316 if uname -p 2>/dev/null >/dev/null ; then
12071317 UNAME_MACHINE=`(uname -p) 2>/dev/null`
1208 echo "$UNAME_MACHINE"-sni-sysv4
1318 GUESS=$UNAME_MACHINE-sni-sysv4
12091319 else
1210 echo ns32k-sni-sysv
1211 fi
1212 exit ;;
1320 GUESS=ns32k-sni-sysv
1321 fi
1322 ;;
12131323 PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort
12141324 # says <Richard.M.Bartel@ccMail.Census.GOV>
1215 echo i586-unisys-sysv4
1216 exit ;;
1325 GUESS=i586-unisys-sysv4
1326 ;;
12171327 *:UNIX_System_V:4*:FTX*)
12181328 # From Gerald Hewes <hewes@openmarket.com>.
12191329 # How about differentiating between stratus architectures? -djm
1220 echo hppa1.1-stratus-sysv4
1221 exit ;;
1330 GUESS=hppa1.1-stratus-sysv4
1331 ;;
12221332 *:*:*:FTX*)
12231333 # From seanf@swdc.stratus.com.
1224 echo i860-stratus-sysv4
1225 exit ;;
1334 GUESS=i860-stratus-sysv4
1335 ;;
12261336 i*86:VOS:*:*)
12271337 # From Paul.Green@stratus.com.
1228 echo "$UNAME_MACHINE"-stratus-vos
1229 exit ;;
1338 GUESS=$UNAME_MACHINE-stratus-vos
1339 ;;
12301340 *:VOS:*:*)
12311341 # From Paul.Green@stratus.com.
1232 echo hppa1.1-stratus-vos
1233 exit ;;
1342 GUESS=hppa1.1-stratus-vos
1343 ;;
12341344 mc68*:A/UX:*:*)
1235 echo m68k-apple-aux"$UNAME_RELEASE"
1236 exit ;;
1345 GUESS=m68k-apple-aux$UNAME_RELEASE
1346 ;;
12371347 news*:NEWS-OS:6*:*)
1238 echo mips-sony-newsos6
1239 exit ;;
1348 GUESS=mips-sony-newsos6
1349 ;;
12401350 R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*)
1241 if [ -d /usr/nec ]; then
1242 echo mips-nec-sysv"$UNAME_RELEASE"
1351 if test -d /usr/nec; then
1352 GUESS=mips-nec-sysv$UNAME_RELEASE
12431353 else
1244 echo mips-unknown-sysv"$UNAME_RELEASE"
1245 fi
1246 exit ;;
1354 GUESS=mips-unknown-sysv$UNAME_RELEASE
1355 fi
1356 ;;
12471357 BeBox:BeOS:*:*) # BeOS running on hardware made by Be, PPC only.
1248 echo powerpc-be-beos
1249 exit ;;
1358 GUESS=powerpc-be-beos
1359 ;;
12501360 BeMac:BeOS:*:*) # BeOS running on Mac or Mac clone, PPC only.
1251 echo powerpc-apple-beos
1252 exit ;;
1361 GUESS=powerpc-apple-beos
1362 ;;
12531363 BePC:BeOS:*:*) # BeOS running on Intel PC compatible.
1254 echo i586-pc-beos
1255 exit ;;
1364 GUESS=i586-pc-beos
1365 ;;
12561366 BePC:Haiku:*:*) # Haiku running on Intel PC compatible.
1257 echo i586-pc-haiku
1258 exit ;;
1367 GUESS=i586-pc-haiku
1368 ;;
12591369 x86_64:Haiku:*:*)
1260 echo x86_64-unknown-haiku
1261 exit ;;
1370 GUESS=x86_64-unknown-haiku
1371 ;;
12621372 SX-4:SUPER-UX:*:*)
1263 echo sx4-nec-superux"$UNAME_RELEASE"
1264 exit ;;
1373 GUESS=sx4-nec-superux$UNAME_RELEASE
1374 ;;
12651375 SX-5:SUPER-UX:*:*)
1266 echo sx5-nec-superux"$UNAME_RELEASE"
1267 exit ;;
1376 GUESS=sx5-nec-superux$UNAME_RELEASE
1377 ;;
12681378 SX-6:SUPER-UX:*:*)
1269 echo sx6-nec-superux"$UNAME_RELEASE"
1270 exit ;;
1379 GUESS=sx6-nec-superux$UNAME_RELEASE
1380 ;;
12711381 SX-7:SUPER-UX:*:*)
1272 echo sx7-nec-superux"$UNAME_RELEASE"
1273 exit ;;
1382 GUESS=sx7-nec-superux$UNAME_RELEASE
1383 ;;
12741384 SX-8:SUPER-UX:*:*)
1275 echo sx8-nec-superux"$UNAME_RELEASE"
1276 exit ;;
1385 GUESS=sx8-nec-superux$UNAME_RELEASE
1386 ;;
12771387 SX-8R:SUPER-UX:*:*)
1278 echo sx8r-nec-superux"$UNAME_RELEASE"
1279 exit ;;
1388 GUESS=sx8r-nec-superux$UNAME_RELEASE
1389 ;;
12801390 SX-ACE:SUPER-UX:*:*)
1281 echo sxace-nec-superux"$UNAME_RELEASE"
1282 exit ;;
1391 GUESS=sxace-nec-superux$UNAME_RELEASE
1392 ;;
12831393 Power*:Rhapsody:*:*)
1284 echo powerpc-apple-rhapsody"$UNAME_RELEASE"
1285 exit ;;
1394 GUESS=powerpc-apple-rhapsody$UNAME_RELEASE
1395 ;;
12861396 *:Rhapsody:*:*)
1287 echo "$UNAME_MACHINE"-apple-rhapsody"$UNAME_RELEASE"
1288 exit ;;
1397 GUESS=$UNAME_MACHINE-apple-rhapsody$UNAME_RELEASE
1398 ;;
1399 arm64:Darwin:*:*)
1400 GUESS=aarch64-apple-darwin$UNAME_RELEASE
1401 ;;
12891402 *:Darwin:*:*)
1290 UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown
1291 eval "$set_cc_for_build"
1292 if test "$UNAME_PROCESSOR" = unknown ; then
1293 UNAME_PROCESSOR=powerpc
1294 fi
1295 if test "`echo "$UNAME_RELEASE" | sed -e 's/\..*//'`" -le 10 ; then
1296 if [ "$CC_FOR_BUILD" != no_compiler_found ]; then
1297 if (echo '#ifdef __LP64__'; echo IS_64BIT_ARCH; echo '#endif') | \
1298 (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | \
1299 grep IS_64BIT_ARCH >/dev/null
1300 then
1301 case $UNAME_PROCESSOR in
1302 i386) UNAME_PROCESSOR=x86_64 ;;
1303 powerpc) UNAME_PROCESSOR=powerpc64 ;;
1304 esac
1305 fi
1306 # On 10.4-10.6 one might compile for PowerPC via gcc -arch ppc
1307 if (echo '#ifdef __POWERPC__'; echo IS_PPC; echo '#endif') | \
1308 (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | \
1309 grep IS_PPC >/dev/null
1310 then
1311 UNAME_PROCESSOR=powerpc
1312 fi
1403 UNAME_PROCESSOR=`uname -p`
1404 case $UNAME_PROCESSOR in
1405 unknown) UNAME_PROCESSOR=powerpc ;;
1406 esac
1407 if command -v xcode-select > /dev/null 2> /dev/null && \
1408 ! xcode-select --print-path > /dev/null 2> /dev/null ; then
1409 # Avoid executing cc if there is no toolchain installed as
1410 # cc will be a stub that puts up a graphical alert
1411 # prompting the user to install developer tools.
1412 CC_FOR_BUILD=no_compiler_found
1413 else
1414 set_cc_for_build
1415 fi
1416 if test "$CC_FOR_BUILD" != no_compiler_found; then
1417 if (echo '#ifdef __LP64__'; echo IS_64BIT_ARCH; echo '#endif') | \
1418 (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | \
1419 grep IS_64BIT_ARCH >/dev/null
1420 then
1421 case $UNAME_PROCESSOR in
1422 i386) UNAME_PROCESSOR=x86_64 ;;
1423 powerpc) UNAME_PROCESSOR=powerpc64 ;;
1424 esac
1425 fi
1426 # On 10.4-10.6 one might compile for PowerPC via gcc -arch ppc
1427 if (echo '#ifdef __POWERPC__'; echo IS_PPC; echo '#endif') | \
1428 (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | \
1429 grep IS_PPC >/dev/null
1430 then
1431 UNAME_PROCESSOR=powerpc
13131432 fi
13141433 elif test "$UNAME_PROCESSOR" = i386 ; then
1315 # Avoid executing cc on OS X 10.9, as it ships with a stub
1316 # that puts up a graphical alert prompting to install
1317 # developer tools. Any system running Mac OS X 10.7 or
1318 # later (Darwin 11 and later) is required to have a 64-bit
1319 # processor. This is not true of the ARM version of Darwin
1320 # that Apple uses in portable devices.
1321 UNAME_PROCESSOR=x86_64
1322 fi
1323 echo "$UNAME_PROCESSOR"-apple-darwin"$UNAME_RELEASE"
1324 exit ;;
1434 # uname -m returns i386 or x86_64
1435 UNAME_PROCESSOR=$UNAME_MACHINE
1436 fi
1437 GUESS=$UNAME_PROCESSOR-apple-darwin$UNAME_RELEASE
1438 ;;
13251439 *:procnto*:*:* | *:QNX:[0123456789]*:*)
13261440 UNAME_PROCESSOR=`uname -p`
13271441 if test "$UNAME_PROCESSOR" = x86; then
13281442 UNAME_PROCESSOR=i386
13291443 UNAME_MACHINE=pc
13301444 fi
1331 echo "$UNAME_PROCESSOR"-"$UNAME_MACHINE"-nto-qnx"$UNAME_RELEASE"
1332 exit ;;
1445 GUESS=$UNAME_PROCESSOR-$UNAME_MACHINE-nto-qnx$UNAME_RELEASE
1446 ;;
13331447 *:QNX:*:4*)
1334 echo i386-pc-qnx
1335 exit ;;
1448 GUESS=i386-pc-qnx
1449 ;;
13361450 NEO-*:NONSTOP_KERNEL:*:*)
1337 echo neo-tandem-nsk"$UNAME_RELEASE"
1338 exit ;;
1451 GUESS=neo-tandem-nsk$UNAME_RELEASE
1452 ;;
13391453 NSE-*:NONSTOP_KERNEL:*:*)
1340 echo nse-tandem-nsk"$UNAME_RELEASE"
1341 exit ;;
1454 GUESS=nse-tandem-nsk$UNAME_RELEASE
1455 ;;
13421456 NSR-*:NONSTOP_KERNEL:*:*)
1343 echo nsr-tandem-nsk"$UNAME_RELEASE"
1344 exit ;;
1457 GUESS=nsr-tandem-nsk$UNAME_RELEASE
1458 ;;
13451459 NSV-*:NONSTOP_KERNEL:*:*)
1346 echo nsv-tandem-nsk"$UNAME_RELEASE"
1347 exit ;;
1460 GUESS=nsv-tandem-nsk$UNAME_RELEASE
1461 ;;
13481462 NSX-*:NONSTOP_KERNEL:*:*)
1349 echo nsx-tandem-nsk"$UNAME_RELEASE"
1350 exit ;;
1463 GUESS=nsx-tandem-nsk$UNAME_RELEASE
1464 ;;
13511465 *:NonStop-UX:*:*)
1352 echo mips-compaq-nonstopux
1353 exit ;;
1466 GUESS=mips-compaq-nonstopux
1467 ;;
13541468 BS2000:POSIX*:*:*)
1355 echo bs2000-siemens-sysv
1356 exit ;;
1469 GUESS=bs2000-siemens-sysv
1470 ;;
13571471 DS/*:UNIX_System_V:*:*)
1358 echo "$UNAME_MACHINE"-"$UNAME_SYSTEM"-"$UNAME_RELEASE"
1359 exit ;;
1472 GUESS=$UNAME_MACHINE-$UNAME_SYSTEM-$UNAME_RELEASE
1473 ;;
13601474 *:Plan9:*:*)
13611475 # "uname -m" is not consistent, so use $cputype instead. 386
13621476 # is converted to i386 for consistency with other x86
13631477 # operating systems.
1364 if test "$cputype" = 386; then
1478 if test "${cputype-}" = 386; then
13651479 UNAME_MACHINE=i386
1366 else
1367 UNAME_MACHINE="$cputype"
1368 fi
1369 echo "$UNAME_MACHINE"-unknown-plan9
1370 exit ;;
1480 elif test "x${cputype-}" != x; then
1481 UNAME_MACHINE=$cputype
1482 fi
1483 GUESS=$UNAME_MACHINE-unknown-plan9
1484 ;;
13711485 *:TOPS-10:*:*)
1372 echo pdp10-unknown-tops10
1373 exit ;;
1486 GUESS=pdp10-unknown-tops10
1487 ;;
13741488 *:TENEX:*:*)
1375 echo pdp10-unknown-tenex
1376 exit ;;
1489 GUESS=pdp10-unknown-tenex
1490 ;;
13771491 KS10:TOPS-20:*:* | KL10:TOPS-20:*:* | TYPE4:TOPS-20:*:*)
1378 echo pdp10-dec-tops20
1379 exit ;;
1492 GUESS=pdp10-dec-tops20
1493 ;;
13801494 XKL-1:TOPS-20:*:* | TYPE5:TOPS-20:*:*)
1381 echo pdp10-xkl-tops20
1382 exit ;;
1495 GUESS=pdp10-xkl-tops20
1496 ;;
13831497 *:TOPS-20:*:*)
1384 echo pdp10-unknown-tops20
1385 exit ;;
1498 GUESS=pdp10-unknown-tops20
1499 ;;
13861500 *:ITS:*:*)
1387 echo pdp10-unknown-its
1388 exit ;;
1501 GUESS=pdp10-unknown-its
1502 ;;
13891503 SEI:*:*:SEIUX)
1390 echo mips-sei-seiux"$UNAME_RELEASE"
1391 exit ;;
1504 GUESS=mips-sei-seiux$UNAME_RELEASE
1505 ;;
13921506 *:DragonFly:*:*)
1393 echo "$UNAME_MACHINE"-unknown-dragonfly"`echo "$UNAME_RELEASE"|sed -e 's/[-(].*//'`"
1394 exit ;;
1507 DRAGONFLY_REL=`echo "$UNAME_RELEASE" | sed -e 's/[-(].*//'`
1508 GUESS=$UNAME_MACHINE-unknown-dragonfly$DRAGONFLY_REL
1509 ;;
13951510 *:*VMS:*:*)
13961511 UNAME_MACHINE=`(uname -p) 2>/dev/null`
1397 case "$UNAME_MACHINE" in
1398 A*) echo alpha-dec-vms ; exit ;;
1399 I*) echo ia64-dec-vms ; exit ;;
1400 V*) echo vax-dec-vms ; exit ;;
1512 case $UNAME_MACHINE in
1513 A*) GUESS=alpha-dec-vms ;;
1514 I*) GUESS=ia64-dec-vms ;;
1515 V*) GUESS=vax-dec-vms ;;
14011516 esac ;;
14021517 *:XENIX:*:SysV)
1403 echo i386-pc-xenix
1404 exit ;;
1518 GUESS=i386-pc-xenix
1519 ;;
14051520 i*86:skyos:*:*)
1406 echo "$UNAME_MACHINE"-pc-skyos"`echo "$UNAME_RELEASE" | sed -e 's/ .*$//'`"
1407 exit ;;
1521 SKYOS_REL=`echo "$UNAME_RELEASE" | sed -e 's/ .*$//'`
1522 GUESS=$UNAME_MACHINE-pc-skyos$SKYOS_REL
1523 ;;
14081524 i*86:rdos:*:*)
1409 echo "$UNAME_MACHINE"-pc-rdos
1410 exit ;;
1411 i*86:AROS:*:*)
1412 echo "$UNAME_MACHINE"-pc-aros
1413 exit ;;
1525 GUESS=$UNAME_MACHINE-pc-rdos
1526 ;;
1527 i*86:Fiwix:*:*)
1528 GUESS=$UNAME_MACHINE-pc-fiwix
1529 ;;
1530 *:AROS:*:*)
1531 GUESS=$UNAME_MACHINE-unknown-aros
1532 ;;
14141533 x86_64:VMkernel:*:*)
1415 echo "$UNAME_MACHINE"-unknown-esx
1416 exit ;;
1534 GUESS=$UNAME_MACHINE-unknown-esx
1535 ;;
14171536 amd64:Isilon\ OneFS:*:*)
1418 echo x86_64-unknown-onefs
1419 exit ;;
1537 GUESS=x86_64-unknown-onefs
1538 ;;
1539 *:Unleashed:*:*)
1540 GUESS=$UNAME_MACHINE-unknown-unleashed$UNAME_RELEASE
1541 ;;
14201542 esac
14211543
1544 # Do we have a guess based on uname results?
1545 if test "x$GUESS" != x; then
1546 echo "$GUESS"
1547 exit
1548 fi
1549
1550 # No uname command or uname output not recognized.
1551 set_cc_for_build
1552 cat > "$dummy.c" <<EOF
1553 #ifdef _SEQUENT_
1554 #include <sys/types.h>
1555 #include <sys/utsname.h>
1556 #endif
1557 #if defined(ultrix) || defined(_ultrix) || defined(__ultrix) || defined(__ultrix__)
1558 #if defined (vax) || defined (__vax) || defined (__vax__) || defined(mips) || defined(__mips) || defined(__mips__) || defined(MIPS) || defined(__MIPS__)
1559 #include <signal.h>
1560 #if defined(_SIZE_T_) || defined(SIGLOST)
1561 #include <sys/utsname.h>
1562 #endif
1563 #endif
1564 #endif
1565 main ()
1566 {
1567 #if defined (sony)
1568 #if defined (MIPSEB)
1569 /* BFD wants "bsd" instead of "newsos". Perhaps BFD should be changed,
1570 I don't know.... */
1571 printf ("mips-sony-bsd\n"); exit (0);
1572 #else
1573 #include <sys/param.h>
1574 printf ("m68k-sony-newsos%s\n",
1575 #ifdef NEWSOS4
1576 "4"
1577 #else
1578 ""
1579 #endif
1580 ); exit (0);
1581 #endif
1582 #endif
1583
1584 #if defined (NeXT)
1585 #if !defined (__ARCHITECTURE__)
1586 #define __ARCHITECTURE__ "m68k"
1587 #endif
1588 int version;
1589 version=`(hostinfo | sed -n 's/.*NeXT Mach \([0-9]*\).*/\1/p') 2>/dev/null`;
1590 if (version < 4)
1591 printf ("%s-next-nextstep%d\n", __ARCHITECTURE__, version);
1592 else
1593 printf ("%s-next-openstep%d\n", __ARCHITECTURE__, version);
1594 exit (0);
1595 #endif
1596
1597 #if defined (MULTIMAX) || defined (n16)
1598 #if defined (UMAXV)
1599 printf ("ns32k-encore-sysv\n"); exit (0);
1600 #else
1601 #if defined (CMU)
1602 printf ("ns32k-encore-mach\n"); exit (0);
1603 #else
1604 printf ("ns32k-encore-bsd\n"); exit (0);
1605 #endif
1606 #endif
1607 #endif
1608
1609 #if defined (__386BSD__)
1610 printf ("i386-pc-bsd\n"); exit (0);
1611 #endif
1612
1613 #if defined (sequent)
1614 #if defined (i386)
1615 printf ("i386-sequent-dynix\n"); exit (0);
1616 #endif
1617 #if defined (ns32000)
1618 printf ("ns32k-sequent-dynix\n"); exit (0);
1619 #endif
1620 #endif
1621
1622 #if defined (_SEQUENT_)
1623 struct utsname un;
1624
1625 uname(&un);
1626 if (strncmp(un.version, "V2", 2) == 0) {
1627 printf ("i386-sequent-ptx2\n"); exit (0);
1628 }
1629 if (strncmp(un.version, "V1", 2) == 0) { /* XXX is V1 correct? */
1630 printf ("i386-sequent-ptx1\n"); exit (0);
1631 }
1632 printf ("i386-sequent-ptx\n"); exit (0);
1633 #endif
1634
1635 #if defined (vax)
1636 #if !defined (ultrix)
1637 #include <sys/param.h>
1638 #if defined (BSD)
1639 #if BSD == 43
1640 printf ("vax-dec-bsd4.3\n"); exit (0);
1641 #else
1642 #if BSD == 199006
1643 printf ("vax-dec-bsd4.3reno\n"); exit (0);
1644 #else
1645 printf ("vax-dec-bsd\n"); exit (0);
1646 #endif
1647 #endif
1648 #else
1649 printf ("vax-dec-bsd\n"); exit (0);
1650 #endif
1651 #else
1652 #if defined(_SIZE_T_) || defined(SIGLOST)
1653 struct utsname un;
1654 uname (&un);
1655 printf ("vax-dec-ultrix%s\n", un.release); exit (0);
1656 #else
1657 printf ("vax-dec-ultrix\n"); exit (0);
1658 #endif
1659 #endif
1660 #endif
1661 #if defined(ultrix) || defined(_ultrix) || defined(__ultrix) || defined(__ultrix__)
1662 #if defined(mips) || defined(__mips) || defined(__mips__) || defined(MIPS) || defined(__MIPS__)
1663 #if defined(_SIZE_T_) || defined(SIGLOST)
1664 struct utsname *un;
1665 uname (&un);
1666 printf ("mips-dec-ultrix%s\n", un.release); exit (0);
1667 #else
1668 printf ("mips-dec-ultrix\n"); exit (0);
1669 #endif
1670 #endif
1671 #endif
1672
1673 #if defined (alliant) && defined (i860)
1674 printf ("i860-alliant-bsd\n"); exit (0);
1675 #endif
1676
1677 exit (1);
1678 }
1679 EOF
1680
1681 $CC_FOR_BUILD -o "$dummy" "$dummy.c" 2>/dev/null && SYSTEM_NAME=`"$dummy"` &&
1682 { echo "$SYSTEM_NAME"; exit; }
1683
1684 # Apollos put the system type in the environment.
1685 test -d /usr/apollo && { echo "$ISP-apollo-$SYSTYPE"; exit; }
1686
14221687 echo "$0: unable to guess system type" >&2
14231688
1424 case "$UNAME_MACHINE:$UNAME_SYSTEM" in
1689 case $UNAME_MACHINE:$UNAME_SYSTEM in
14251690 mips:Linux | mips64:Linux)
14261691 # If we got here on MIPS GNU/Linux, output extra information.
14271692 cat >&2 <<EOF
14381703 operating system you are using. If your script is old, overwrite *all*
14391704 copies of config.guess and config.sub with the latest versions from:
14401705
1441 https://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess
1706 https://git.savannah.gnu.org/cgit/config.git/plain/config.guess
14421707 and
1443 https://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub
1708 https://git.savannah.gnu.org/cgit/config.git/plain/config.sub
1709 EOF
1710
1711 our_year=`echo $timestamp | sed 's,-.*,,'`
1712 thisyear=`date +%Y`
1713 # shellcheck disable=SC2003
1714 script_age=`expr "$thisyear" - "$our_year"`
1715 if test "$script_age" -lt 3 ; then
1716 cat >&2 <<EOF
14441717
14451718 If $0 has already been updated, send the following data and any
14461719 information you think might be pertinent to config-patches@gnu.org to
14681741 UNAME_SYSTEM = "$UNAME_SYSTEM"
14691742 UNAME_VERSION = "$UNAME_VERSION"
14701743 EOF
1744 fi
14711745
14721746 exit 1
14731747
14741748 # Local variables:
1475 # eval: (add-hook 'write-file-functions 'time-stamp)
1749 # eval: (add-hook 'before-save-hook 'time-stamp)
14761750 # time-stamp-start: "timestamp='"
14771751 # time-stamp-format: "%:y-%02m-%02d"
14781752 # time-stamp-end: "'"
00 #! /bin/sh
11 # Configuration validation subroutine script.
2 # Copyright 1992-2018 Free Software Foundation, Inc.
3
4 timestamp='2018-02-22'
2 # Copyright 1992-2022 Free Software Foundation, Inc.
3
4 # shellcheck disable=SC2006,SC2268 # see below for rationale
5
6 timestamp='2022-01-03'
57
68 # This file is free software; you can redistribute it and/or modify it
79 # under the terms of the GNU General Public License as published by
8 # the Free Software Foundation; either version 3 of the License, or
10 # the Free Software Foundation, either version 3 of the License, or
911 # (at your option) any later version.
1012 #
1113 # This program is distributed in the hope that it will be useful, but
3234 # Otherwise, we print the canonical config type on stdout and succeed.
3335
3436 # You can get the latest version of this script from:
35 # https://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub
37 # https://git.savannah.gnu.org/cgit/config.git/plain/config.sub
3638
3739 # This file is supposed to be the same for all GNU packages
3840 # and recognize all the CPU types, system types and aliases
4951 # CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM
5052 # It is wrong to echo any other type of specification.
5153
54 # The "shellcheck disable" line above the timestamp inhibits complaints
55 # about features and limitations of the classic Bourne shell that were
56 # superseded or lifted in POSIX. However, this script identifies a wide
57 # variety of pre-POSIX systems that do not have POSIX shells at all, and
58 # even some reasonably current systems (Solaris 10 as case-in-point) still
59 # have a pre-POSIX /bin/sh.
60
5261 me=`echo "$0" | sed -e 's,.*/,,'`
5362
5463 usage="\
6675 version="\
6776 GNU config.sub ($timestamp)
6877
69 Copyright 1992-2018 Free Software Foundation, Inc.
78 Copyright 1992-2022 Free Software Foundation, Inc.
7079
7180 This is free software; see the source for copying conditions. There is NO
7281 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
8897 - ) # Use stdin as input.
8998 break ;;
9099 -* )
91 echo "$me: invalid option $1$help"
100 echo "$me: invalid option $1$help" >&2
92101 exit 1 ;;
93102
94103 *local*)
109118 exit 1;;
110119 esac
111120
112 # Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any).
113 # Here we must recognize all the valid KERNEL-OS combinations.
114 maybe_os=`echo "$1" | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
115 case $maybe_os in
116 nto-qnx* | linux-gnu* | linux-android* | linux-dietlibc | linux-newlib* | \
117 linux-musl* | linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | \
118 knetbsd*-gnu* | netbsd*-gnu* | netbsd*-eabi* | \
119 kopensolaris*-gnu* | cloudabi*-eabi* | \
120 storm-chaos* | os2-emx* | rtmk-nova*)
121 os=-$maybe_os
122 basic_machine=`echo "$1" | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
123 ;;
124 android-linux)
125 os=-linux-android
126 basic_machine=`echo "$1" | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`-unknown
127 ;;
128 *)
129 basic_machine=`echo "$1" | sed 's/-[^-]*$//'`
130 if [ "$basic_machine" != "$1" ]
131 then os=`echo "$1" | sed 's/.*-/-/'`
132 else os=; fi
133 ;;
121 # Split fields of configuration type
122 # shellcheck disable=SC2162
123 saved_IFS=$IFS
124 IFS="-" read field1 field2 field3 field4 <<EOF
125 $1
126 EOF
127 IFS=$saved_IFS
128
129 # Separate into logical components for further validation
130 case $1 in
131 *-*-*-*-*)
132 echo Invalid configuration \`"$1"\': more than four components >&2
133 exit 1
134 ;;
135 *-*-*-*)
136 basic_machine=$field1-$field2
137 basic_os=$field3-$field4
138 ;;
139 *-*-*)
140 # Ambiguous whether COMPANY is present, or skipped and KERNEL-OS is two
141 # parts
142 maybe_os=$field2-$field3
143 case $maybe_os in
144 nto-qnx* | linux-* | uclinux-uclibc* \
145 | uclinux-gnu* | kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* \
146 | netbsd*-eabi* | kopensolaris*-gnu* | cloudabi*-eabi* \
147 | storm-chaos* | os2-emx* | rtmk-nova*)
148 basic_machine=$field1
149 basic_os=$maybe_os
150 ;;
151 android-linux)
152 basic_machine=$field1-unknown
153 basic_os=linux-android
154 ;;
155 *)
156 basic_machine=$field1-$field2
157 basic_os=$field3
158 ;;
159 esac
160 ;;
161 *-*)
162 # A lone config we happen to match not fitting any pattern
163 case $field1-$field2 in
164 decstation-3100)
165 basic_machine=mips-dec
166 basic_os=
167 ;;
168 *-*)
169 # Second component is usually, but not always the OS
170 case $field2 in
171 # Prevent following clause from handling this valid os
172 sun*os*)
173 basic_machine=$field1
174 basic_os=$field2
175 ;;
176 zephyr*)
177 basic_machine=$field1-unknown
178 basic_os=$field2
179 ;;
180 # Manufacturers
181 dec* | mips* | sequent* | encore* | pc533* | sgi* | sony* \
182 | att* | 7300* | 3300* | delta* | motorola* | sun[234]* \
183 | unicom* | ibm* | next | hp | isi* | apollo | altos* \
184 | convergent* | ncr* | news | 32* | 3600* | 3100* \
185 | hitachi* | c[123]* | convex* | sun | crds | omron* | dg \
186 | ultra | tti* | harris | dolphin | highlevel | gould \
187 | cbm | ns | masscomp | apple | axis | knuth | cray \
188 | microblaze* | sim | cisco \
189 | oki | wec | wrs | winbond)
190 basic_machine=$field1-$field2
191 basic_os=
192 ;;
193 *)
194 basic_machine=$field1
195 basic_os=$field2
196 ;;
197 esac
198 ;;
199 esac
200 ;;
201 *)
202 # Convert single-component short-hands not valid as part of
203 # multi-component configurations.
204 case $field1 in
205 386bsd)
206 basic_machine=i386-pc
207 basic_os=bsd
208 ;;
209 a29khif)
210 basic_machine=a29k-amd
211 basic_os=udi
212 ;;
213 adobe68k)
214 basic_machine=m68010-adobe
215 basic_os=scout
216 ;;
217 alliant)
218 basic_machine=fx80-alliant
219 basic_os=
220 ;;
221 altos | altos3068)
222 basic_machine=m68k-altos
223 basic_os=
224 ;;
225 am29k)
226 basic_machine=a29k-none
227 basic_os=bsd
228 ;;
229 amdahl)
230 basic_machine=580-amdahl
231 basic_os=sysv
232 ;;
233 amiga)
234 basic_machine=m68k-unknown
235 basic_os=
236 ;;
237 amigaos | amigados)
238 basic_machine=m68k-unknown
239 basic_os=amigaos
240 ;;
241 amigaunix | amix)
242 basic_machine=m68k-unknown
243 basic_os=sysv4
244 ;;
245 apollo68)
246 basic_machine=m68k-apollo
247 basic_os=sysv
248 ;;
249 apollo68bsd)
250 basic_machine=m68k-apollo
251 basic_os=bsd
252 ;;
253 aros)
254 basic_machine=i386-pc
255 basic_os=aros
256 ;;
257 aux)
258 basic_machine=m68k-apple
259 basic_os=aux
260 ;;
261 balance)
262 basic_machine=ns32k-sequent
263 basic_os=dynix
264 ;;
265 blackfin)
266 basic_machine=bfin-unknown
267 basic_os=linux
268 ;;
269 cegcc)
270 basic_machine=arm-unknown
271 basic_os=cegcc
272 ;;
273 convex-c1)
274 basic_machine=c1-convex
275 basic_os=bsd
276 ;;
277 convex-c2)
278 basic_machine=c2-convex
279 basic_os=bsd
280 ;;
281 convex-c32)
282 basic_machine=c32-convex
283 basic_os=bsd
284 ;;
285 convex-c34)
286 basic_machine=c34-convex
287 basic_os=bsd
288 ;;
289 convex-c38)
290 basic_machine=c38-convex
291 basic_os=bsd
292 ;;
293 cray)
294 basic_machine=j90-cray
295 basic_os=unicos
296 ;;
297 crds | unos)
298 basic_machine=m68k-crds
299 basic_os=
300 ;;
301 da30)
302 basic_machine=m68k-da30
303 basic_os=
304 ;;
305 decstation | pmax | pmin | dec3100 | decstatn)
306 basic_machine=mips-dec
307 basic_os=
308 ;;
309 delta88)
310 basic_machine=m88k-motorola
311 basic_os=sysv3
312 ;;
313 dicos)
314 basic_machine=i686-pc
315 basic_os=dicos
316 ;;
317 djgpp)
318 basic_machine=i586-pc
319 basic_os=msdosdjgpp
320 ;;
321 ebmon29k)
322 basic_machine=a29k-amd
323 basic_os=ebmon
324 ;;
325 es1800 | OSE68k | ose68k | ose | OSE)
326 basic_machine=m68k-ericsson
327 basic_os=ose
328 ;;
329 gmicro)
330 basic_machine=tron-gmicro
331 basic_os=sysv
332 ;;
333 go32)
334 basic_machine=i386-pc
335 basic_os=go32
336 ;;
337 h8300hms)
338 basic_machine=h8300-hitachi
339 basic_os=hms
340 ;;
341 h8300xray)
342 basic_machine=h8300-hitachi
343 basic_os=xray
344 ;;
345 h8500hms)
346 basic_machine=h8500-hitachi
347 basic_os=hms
348 ;;
349 harris)
350 basic_machine=m88k-harris
351 basic_os=sysv3
352 ;;
353 hp300 | hp300hpux)
354 basic_machine=m68k-hp
355 basic_os=hpux
356 ;;
357 hp300bsd)
358 basic_machine=m68k-hp
359 basic_os=bsd
360 ;;
361 hppaosf)
362 basic_machine=hppa1.1-hp
363 basic_os=osf
364 ;;
365 hppro)
366 basic_machine=hppa1.1-hp
367 basic_os=proelf
368 ;;
369 i386mach)
370 basic_machine=i386-mach
371 basic_os=mach
372 ;;
373 isi68 | isi)
374 basic_machine=m68k-isi
375 basic_os=sysv
376 ;;
377 m68knommu)
378 basic_machine=m68k-unknown
379 basic_os=linux
380 ;;
381 magnum | m3230)
382 basic_machine=mips-mips
383 basic_os=sysv
384 ;;
385 merlin)
386 basic_machine=ns32k-utek
387 basic_os=sysv
388 ;;
389 mingw64)
390 basic_machine=x86_64-pc
391 basic_os=mingw64
392 ;;
393 mingw32)
394 basic_machine=i686-pc
395 basic_os=mingw32
396 ;;
397 mingw32ce)
398 basic_machine=arm-unknown
399 basic_os=mingw32ce
400 ;;
401 monitor)
402 basic_machine=m68k-rom68k
403 basic_os=coff
404 ;;
405 morphos)
406 basic_machine=powerpc-unknown
407 basic_os=morphos
408 ;;
409 moxiebox)
410 basic_machine=moxie-unknown
411 basic_os=moxiebox
412 ;;
413 msdos)
414 basic_machine=i386-pc
415 basic_os=msdos
416 ;;
417 msys)
418 basic_machine=i686-pc
419 basic_os=msys
420 ;;
421 mvs)
422 basic_machine=i370-ibm
423 basic_os=mvs
424 ;;
425 nacl)
426 basic_machine=le32-unknown
427 basic_os=nacl
428 ;;
429 ncr3000)
430 basic_machine=i486-ncr
431 basic_os=sysv4
432 ;;
433 netbsd386)
434 basic_machine=i386-pc
435 basic_os=netbsd
436 ;;
437 netwinder)
438 basic_machine=armv4l-rebel
439 basic_os=linux
440 ;;
441 news | news700 | news800 | news900)
442 basic_machine=m68k-sony
443 basic_os=newsos
444 ;;
445 news1000)
446 basic_machine=m68030-sony
447 basic_os=newsos
448 ;;
449 necv70)
450 basic_machine=v70-nec
451 basic_os=sysv
452 ;;
453 nh3000)
454 basic_machine=m68k-harris
455 basic_os=cxux
456 ;;
457 nh[45]000)
458 basic_machine=m88k-harris
459 basic_os=cxux
460 ;;
461 nindy960)
462 basic_machine=i960-intel
463 basic_os=nindy
464 ;;
465 mon960)
466 basic_machine=i960-intel
467 basic_os=mon960
468 ;;
469 nonstopux)
470 basic_machine=mips-compaq
471 basic_os=nonstopux
472 ;;
473 os400)
474 basic_machine=powerpc-ibm
475 basic_os=os400
476 ;;
477 OSE68000 | ose68000)
478 basic_machine=m68000-ericsson
479 basic_os=ose
480 ;;
481 os68k)
482 basic_machine=m68k-none
483 basic_os=os68k
484 ;;
485 paragon)
486 basic_machine=i860-intel
487 basic_os=osf
488 ;;
489 parisc)
490 basic_machine=hppa-unknown
491 basic_os=linux
492 ;;
493 psp)
494 basic_machine=mipsallegrexel-sony
495 basic_os=psp
496 ;;
497 pw32)
498 basic_machine=i586-unknown
499 basic_os=pw32
500 ;;
501 rdos | rdos64)
502 basic_machine=x86_64-pc
503 basic_os=rdos
504 ;;
505 rdos32)
506 basic_machine=i386-pc
507 basic_os=rdos
508 ;;
509 rom68k)
510 basic_machine=m68k-rom68k
511 basic_os=coff
512 ;;
513 sa29200)
514 basic_machine=a29k-amd
515 basic_os=udi
516 ;;
517 sei)
518 basic_machine=mips-sei
519 basic_os=seiux
520 ;;
521 sequent)
522 basic_machine=i386-sequent
523 basic_os=
524 ;;
525 sps7)
526 basic_machine=m68k-bull
527 basic_os=sysv2
528 ;;
529 st2000)
530 basic_machine=m68k-tandem
531 basic_os=
532 ;;
533 stratus)
534 basic_machine=i860-stratus
535 basic_os=sysv4
536 ;;
537 sun2)
538 basic_machine=m68000-sun
539 basic_os=
540 ;;
541 sun2os3)
542 basic_machine=m68000-sun
543 basic_os=sunos3
544 ;;
545 sun2os4)
546 basic_machine=m68000-sun
547 basic_os=sunos4
548 ;;
549 sun3)
550 basic_machine=m68k-sun
551 basic_os=
552 ;;
553 sun3os3)
554 basic_machine=m68k-sun
555 basic_os=sunos3
556 ;;
557 sun3os4)
558 basic_machine=m68k-sun
559 basic_os=sunos4
560 ;;
561 sun4)
562 basic_machine=sparc-sun
563 basic_os=
564 ;;
565 sun4os3)
566 basic_machine=sparc-sun
567 basic_os=sunos3
568 ;;
569 sun4os4)
570 basic_machine=sparc-sun
571 basic_os=sunos4
572 ;;
573 sun4sol2)
574 basic_machine=sparc-sun
575 basic_os=solaris2
576 ;;
577 sun386 | sun386i | roadrunner)
578 basic_machine=i386-sun
579 basic_os=
580 ;;
581 sv1)
582 basic_machine=sv1-cray
583 basic_os=unicos
584 ;;
585 symmetry)
586 basic_machine=i386-sequent
587 basic_os=dynix
588 ;;
589 t3e)
590 basic_machine=alphaev5-cray
591 basic_os=unicos
592 ;;
593 t90)
594 basic_machine=t90-cray
595 basic_os=unicos
596 ;;
597 toad1)
598 basic_machine=pdp10-xkl
599 basic_os=tops20
600 ;;
601 tpf)
602 basic_machine=s390x-ibm
603 basic_os=tpf
604 ;;
605 udi29k)
606 basic_machine=a29k-amd
607 basic_os=udi
608 ;;
609 ultra3)
610 basic_machine=a29k-nyu
611 basic_os=sym1
612 ;;
613 v810 | necv810)
614 basic_machine=v810-nec
615 basic_os=none
616 ;;
617 vaxv)
618 basic_machine=vax-dec
619 basic_os=sysv
620 ;;
621 vms)
622 basic_machine=vax-dec
623 basic_os=vms
624 ;;
625 vsta)
626 basic_machine=i386-pc
627 basic_os=vsta
628 ;;
629 vxworks960)
630 basic_machine=i960-wrs
631 basic_os=vxworks
632 ;;
633 vxworks68)
634 basic_machine=m68k-wrs
635 basic_os=vxworks
636 ;;
637 vxworks29k)
638 basic_machine=a29k-wrs
639 basic_os=vxworks
640 ;;
641 xbox)
642 basic_machine=i686-pc
643 basic_os=mingw32
644 ;;
645 ymp)
646 basic_machine=ymp-cray
647 basic_os=unicos
648 ;;
649 *)
650 basic_machine=$1
651 basic_os=
652 ;;
653 esac
654 ;;
134655 esac
135656
136 ### Let's recognize common machines as not being operating systems so
137 ### that things like config.sub decstation-3100 work. We also
138 ### recognize some manufacturers as not being operating systems, so we
139 ### can provide default operating systems below.
140 case $os in
141 -sun*os*)
142 # Prevent following clause from handling this invalid input.
143 ;;
144 -dec* | -mips* | -sequent* | -encore* | -pc532* | -sgi* | -sony* | \
145 -att* | -7300* | -3300* | -delta* | -motorola* | -sun[234]* | \
146 -unicom* | -ibm* | -next | -hp | -isi* | -apollo | -altos* | \
147 -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\
148 -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \
149 -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \
150 -apple | -axis | -knuth | -cray | -microblaze*)
151 os=
152 basic_machine=$1
153 ;;
154 -bluegene*)
155 os=-cnk
156 ;;
157 -sim | -cisco | -oki | -wec | -winbond)
158 os=
159 basic_machine=$1
160 ;;
161 -scout)
162 ;;
163 -wrs)
164 os=-vxworks
165 basic_machine=$1
166 ;;
167 -chorusos*)
168 os=-chorusos
169 basic_machine=$1
170 ;;
171 -chorusrdb)
172 os=-chorusrdb
173 basic_machine=$1
174 ;;
175 -hiux*)
176 os=-hiuxwe2
177 ;;
178 -sco6)
179 os=-sco5v6
180 basic_machine=`echo "$1" | sed -e 's/86-.*/86-pc/'`
181 ;;
182 -sco5)
183 os=-sco3.2v5
184 basic_machine=`echo "$1" | sed -e 's/86-.*/86-pc/'`
185 ;;
186 -sco4)
187 os=-sco3.2v4
188 basic_machine=`echo "$1" | sed -e 's/86-.*/86-pc/'`
189 ;;
190 -sco3.2.[4-9]*)
191 os=`echo $os | sed -e 's/sco3.2./sco3.2v/'`
192 basic_machine=`echo "$1" | sed -e 's/86-.*/86-pc/'`
193 ;;
194 -sco3.2v[4-9]*)
195 # Don't forget version if it is 3.2v4 or newer.
196 basic_machine=`echo "$1" | sed -e 's/86-.*/86-pc/'`
197 ;;
198 -sco5v6*)
199 # Don't forget version if it is 3.2v4 or newer.
200 basic_machine=`echo "$1" | sed -e 's/86-.*/86-pc/'`
201 ;;
202 -sco*)
203 os=-sco3.2v2
204 basic_machine=`echo "$1" | sed -e 's/86-.*/86-pc/'`
205 ;;
206 -udk*)
207 basic_machine=`echo "$1" | sed -e 's/86-.*/86-pc/'`
208 ;;
209 -isc)
210 os=-isc2.2
211 basic_machine=`echo "$1" | sed -e 's/86-.*/86-pc/'`
212 ;;
213 -clix*)
214 basic_machine=clipper-intergraph
215 ;;
216 -isc*)
217 basic_machine=`echo "$1" | sed -e 's/86-.*/86-pc/'`
218 ;;
219 -lynx*178)
220 os=-lynxos178
221 ;;
222 -lynx*5)
223 os=-lynxos5
224 ;;
225 -lynx*)
226 os=-lynxos
227 ;;
228 -ptx*)
229 basic_machine=`echo "$1" | sed -e 's/86-.*/86-sequent/'`
230 ;;
231 -psos*)
232 os=-psos
233 ;;
234 -mint | -mint[0-9]*)
235 basic_machine=m68k-atari
236 os=-mint
237 ;;
238 esac
239
240 # Decode aliases for certain CPU-COMPANY combinations.
657 # Decode 1-component or ad-hoc basic machines
241658 case $basic_machine in
242 # Recognize the basic CPU types without company name.
243 # Some are omitted here because they have special meanings below.
244 1750a | 580 \
245 | a29k \
246 | aarch64 | aarch64_be \
247 | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \
248 | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \
249 | am33_2.0 \
250 | arc | arceb \
251 | arm | arm[bl]e | arme[lb] | armv[2-8] | armv[3-8][lb] | armv7[arm] \
252 | avr | avr32 \
253 | ba \
254 | be32 | be64 \
255 | bfin \
256 | c4x | c8051 | clipper \
257 | d10v | d30v | dlx | dsp16xx \
258 | e2k | epiphany \
259 | fido | fr30 | frv | ft32 \
260 | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
261 | hexagon \
262 | i370 | i860 | i960 | ia16 | ia64 \
263 | ip2k | iq2000 \
264 | k1om \
265 | le32 | le64 \
266 | lm32 \
267 | m32c | m32r | m32rle | m68000 | m68k | m88k \
268 | maxq | mb | microblaze | microblazeel | mcore | mep | metag \
269 | mips | mipsbe | mipseb | mipsel | mipsle \
270 | mips16 \
271 | mips64 | mips64el \
272 | mips64octeon | mips64octeonel \
273 | mips64orion | mips64orionel \
274 | mips64r5900 | mips64r5900el \
275 | mips64vr | mips64vrel \
276 | mips64vr4100 | mips64vr4100el \
277 | mips64vr4300 | mips64vr4300el \
278 | mips64vr5000 | mips64vr5000el \
279 | mips64vr5900 | mips64vr5900el \
280 | mipsisa32 | mipsisa32el \
281 | mipsisa32r2 | mipsisa32r2el \
282 | mipsisa32r6 | mipsisa32r6el \
283 | mipsisa64 | mipsisa64el \
284 | mipsisa64r2 | mipsisa64r2el \
285 | mipsisa64r6 | mipsisa64r6el \
286 | mipsisa64sb1 | mipsisa64sb1el \
287 | mipsisa64sr71k | mipsisa64sr71kel \
288 | mipsr5900 | mipsr5900el \
289 | mipstx39 | mipstx39el \
290 | mn10200 | mn10300 \
291 | moxie \
292 | mt \
293 | msp430 \
294 | nds32 | nds32le | nds32be \
295 | nios | nios2 | nios2eb | nios2el \
296 | ns16k | ns32k \
297 | open8 | or1k | or1knd | or32 \
298 | pdp10 | pj | pjl \
299 | powerpc | powerpc64 | powerpc64le | powerpcle \
300 | pru \
301 | pyramid \
302 | riscv32 | riscv64 \
303 | rl78 | rx \
304 | score \
305 | sh | sh[1234] | sh[24]a | sh[24]aeb | sh[23]e | sh[234]eb | sheb | shbe | shle | sh[1234]le | sh3ele \
306 | sh64 | sh64le \
307 | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \
308 | sparcv8 | sparcv9 | sparcv9b | sparcv9v \
309 | spu \
310 | tahoe | tic4x | tic54x | tic55x | tic6x | tic80 | tron \
311 | ubicom32 \
312 | v850 | v850e | v850e1 | v850e2 | v850es | v850e2v3 \
313 | visium \
314 | wasm32 \
315 | x86 | xc16x | xstormy16 | xtensa \
316 | z8k | z80)
317 basic_machine=$basic_machine-unknown
318 ;;
319 c54x)
320 basic_machine=tic54x-unknown
321 ;;
322 c55x)
323 basic_machine=tic55x-unknown
324 ;;
325 c6x)
326 basic_machine=tic6x-unknown
659 # Here we handle the default manufacturer of certain CPU types. It is in
660 # some cases the only manufacturer, in others, it is the most popular.
661 w89k)
662 cpu=hppa1.1
663 vendor=winbond
664 ;;
665 op50n)
666 cpu=hppa1.1
667 vendor=oki
668 ;;
669 op60c)
670 cpu=hppa1.1
671 vendor=oki
672 ;;
673 ibm*)
674 cpu=i370
675 vendor=ibm
676 ;;
677 orion105)
678 cpu=clipper
679 vendor=highlevel
680 ;;
681 mac | mpw | mac-mpw)
682 cpu=m68k
683 vendor=apple
684 ;;
685 pmac | pmac-mpw)
686 cpu=powerpc
687 vendor=apple
688 ;;
689
690 # Recognize the various machine names and aliases which stand
691 # for a CPU type and a company and sometimes even an OS.
692 3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc)
693 cpu=m68000
694 vendor=att
695 ;;
696 3b*)
697 cpu=we32k
698 vendor=att
699 ;;
700 bluegene*)
701 cpu=powerpc
702 vendor=ibm
703 basic_os=cnk
704 ;;
705 decsystem10* | dec10*)
706 cpu=pdp10
707 vendor=dec
708 basic_os=tops10
709 ;;
710 decsystem20* | dec20*)
711 cpu=pdp10
712 vendor=dec
713 basic_os=tops20
714 ;;
715 delta | 3300 | motorola-3300 | motorola-delta \
716 | 3300-motorola | delta-motorola)
717 cpu=m68k
718 vendor=motorola
719 ;;
720 dpx2*)
721 cpu=m68k
722 vendor=bull
723 basic_os=sysv3
724 ;;
725 encore | umax | mmax)
726 cpu=ns32k
727 vendor=encore
728 ;;
729 elxsi)
730 cpu=elxsi
731 vendor=elxsi
732 basic_os=${basic_os:-bsd}
733 ;;
734 fx2800)
735 cpu=i860
736 vendor=alliant
737 ;;
738 genix)
739 cpu=ns32k
740 vendor=ns
741 ;;
742 h3050r* | hiux*)
743 cpu=hppa1.1
744 vendor=hitachi
745 basic_os=hiuxwe2
746 ;;
747 hp3k9[0-9][0-9] | hp9[0-9][0-9])
748 cpu=hppa1.0
749 vendor=hp
750 ;;
751 hp9k2[0-9][0-9] | hp9k31[0-9])
752 cpu=m68000
753 vendor=hp
754 ;;
755 hp9k3[2-9][0-9])
756 cpu=m68k
757 vendor=hp
758 ;;
759 hp9k6[0-9][0-9] | hp6[0-9][0-9])
760 cpu=hppa1.0
761 vendor=hp
762 ;;
763 hp9k7[0-79][0-9] | hp7[0-79][0-9])
764 cpu=hppa1.1
765 vendor=hp
766 ;;
767 hp9k78[0-9] | hp78[0-9])
768 # FIXME: really hppa2.0-hp
769 cpu=hppa1.1
770 vendor=hp
771 ;;
772 hp9k8[67]1 | hp8[67]1 | hp9k80[24] | hp80[24] | hp9k8[78]9 | hp8[78]9 | hp9k893 | hp893)
773 # FIXME: really hppa2.0-hp
774 cpu=hppa1.1
775 vendor=hp
776 ;;
777 hp9k8[0-9][13679] | hp8[0-9][13679])
778 cpu=hppa1.1
779 vendor=hp
780 ;;
781 hp9k8[0-9][0-9] | hp8[0-9][0-9])
782 cpu=hppa1.0
783 vendor=hp
784 ;;
785 i*86v32)
786 cpu=`echo "$1" | sed -e 's/86.*/86/'`
787 vendor=pc
788 basic_os=sysv32
789 ;;
790 i*86v4*)
791 cpu=`echo "$1" | sed -e 's/86.*/86/'`
792 vendor=pc
793 basic_os=sysv4
794 ;;
795 i*86v)
796 cpu=`echo "$1" | sed -e 's/86.*/86/'`
797 vendor=pc
798 basic_os=sysv
799 ;;
800 i*86sol2)
801 cpu=`echo "$1" | sed -e 's/86.*/86/'`
802 vendor=pc
803 basic_os=solaris2
804 ;;
805 j90 | j90-cray)
806 cpu=j90
807 vendor=cray
808 basic_os=${basic_os:-unicos}
809 ;;
810 iris | iris4d)
811 cpu=mips
812 vendor=sgi
813 case $basic_os in
814 irix*)
815 ;;
816 *)
817 basic_os=irix4
818 ;;
819 esac
820 ;;
821 miniframe)
822 cpu=m68000
823 vendor=convergent
824 ;;
825 *mint | mint[0-9]* | *MiNT | *MiNT[0-9]*)
826 cpu=m68k
827 vendor=atari
828 basic_os=mint
829 ;;
830 news-3600 | risc-news)
831 cpu=mips
832 vendor=sony
833 basic_os=newsos
834 ;;
835 next | m*-next)
836 cpu=m68k
837 vendor=next
838 case $basic_os in
839 openstep*)
840 ;;
841 nextstep*)
842 ;;
843 ns2*)
844 basic_os=nextstep2
845 ;;
846 *)
847 basic_os=nextstep3
848 ;;
849 esac
850 ;;
851 np1)
852 cpu=np1
853 vendor=gould
854 ;;
855 op50n-* | op60c-*)
856 cpu=hppa1.1
857 vendor=oki
858 basic_os=proelf
859 ;;
860 pa-hitachi)
861 cpu=hppa1.1
862 vendor=hitachi
863 basic_os=hiuxwe2
864 ;;
865 pbd)
866 cpu=sparc
867 vendor=tti
868 ;;
869 pbb)
870 cpu=m68k
871 vendor=tti
872 ;;
873 pc532)
874 cpu=ns32k
875 vendor=pc532
876 ;;
877 pn)
878 cpu=pn
879 vendor=gould
880 ;;
881 power)
882 cpu=power
883 vendor=ibm
884 ;;
885 ps2)
886 cpu=i386
887 vendor=ibm
888 ;;
889 rm[46]00)
890 cpu=mips
891 vendor=siemens
892 ;;
893 rtpc | rtpc-*)
894 cpu=romp
895 vendor=ibm
896 ;;
897 sde)
898 cpu=mipsisa32
899 vendor=sde
900 basic_os=${basic_os:-elf}
901 ;;
902 simso-wrs)
903 cpu=sparclite
904 vendor=wrs
905 basic_os=vxworks
906 ;;
907 tower | tower-32)
908 cpu=m68k
909 vendor=ncr
910 ;;
911 vpp*|vx|vx-*)
912 cpu=f301
913 vendor=fujitsu
914 ;;
915 w65)
916 cpu=w65
917 vendor=wdc
918 ;;
919 w89k-*)
920 cpu=hppa1.1
921 vendor=winbond
922 basic_os=proelf
923 ;;
924 none)
925 cpu=none
926 vendor=none
327927 ;;
328928 leon|leon[3-9])
329 basic_machine=sparc-$basic_machine
330 ;;
331 m6811 | m68hc11 | m6812 | m68hc12 | m68hcs12x | nvptx | picochip)
332 basic_machine=$basic_machine-unknown
333 os=-none
334 ;;
335 m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65)
336 ;;
337 ms1)
338 basic_machine=mt-unknown
339 ;;
340
341 strongarm | thumb | xscale)
342 basic_machine=arm-unknown
343 ;;
344 xgate)
345 basic_machine=$basic_machine-unknown
346 os=-none
347 ;;
348 xscaleeb)
349 basic_machine=armeb-unknown
350 ;;
351
352 xscaleel)
353 basic_machine=armel-unknown
354 ;;
355
929 cpu=sparc
930 vendor=$basic_machine
931 ;;
932 leon-*|leon[3-9]-*)
933 cpu=sparc
934 vendor=`echo "$basic_machine" | sed 's/-.*//'`
935 ;;
936
937 *-*)
938 # shellcheck disable=SC2162
939 saved_IFS=$IFS
940 IFS="-" read cpu vendor <<EOF
941 $basic_machine
942 EOF
943 IFS=$saved_IFS
944 ;;
356945 # We use `pc' rather than `unknown'
357946 # because (1) that's what they normally are, and
358947 # (2) the word "unknown" tends to confuse beginning users.
359948 i*86 | x86_64)
360 basic_machine=$basic_machine-pc
361 ;;
362 # Object if more than one company name word.
363 *-*-*)
364 echo Invalid configuration \`"$1"\': machine \`"$basic_machine"\' not recognized 1>&2
365 exit 1
366 ;;
367 # Recognize the basic CPU types with company name.
368 580-* \
369 | a29k-* \
370 | aarch64-* | aarch64_be-* \
371 | alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \
372 | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \
373 | alphapca5[67]-* | alpha64pca5[67]-* | arc-* | arceb-* \
374 | arm-* | armbe-* | armle-* | armeb-* | armv*-* \
375 | avr-* | avr32-* \
376 | ba-* \
377 | be32-* | be64-* \
378 | bfin-* | bs2000-* \
379 | c[123]* | c30-* | [cjt]90-* | c4x-* \
380 | c8051-* | clipper-* | craynv-* | cydra-* \
381 | d10v-* | d30v-* | dlx-* \
382 | e2k-* | elxsi-* \
383 | f30[01]-* | f700-* | fido-* | fr30-* | frv-* | fx80-* \
384 | h8300-* | h8500-* \
385 | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \
386 | hexagon-* \
387 | i*86-* | i860-* | i960-* | ia16-* | ia64-* \
388 | ip2k-* | iq2000-* \
389 | k1om-* \
390 | le32-* | le64-* \
391 | lm32-* \
392 | m32c-* | m32r-* | m32rle-* \
393 | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \
394 | m88110-* | m88k-* | maxq-* | mcore-* | metag-* \
395 | microblaze-* | microblazeel-* \
396 | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \
397 | mips16-* \
398 | mips64-* | mips64el-* \
399 | mips64octeon-* | mips64octeonel-* \
400 | mips64orion-* | mips64orionel-* \
401 | mips64r5900-* | mips64r5900el-* \
402 | mips64vr-* | mips64vrel-* \
403 | mips64vr4100-* | mips64vr4100el-* \
404 | mips64vr4300-* | mips64vr4300el-* \
405 | mips64vr5000-* | mips64vr5000el-* \
406 | mips64vr5900-* | mips64vr5900el-* \
407 | mipsisa32-* | mipsisa32el-* \
408 | mipsisa32r2-* | mipsisa32r2el-* \
409 | mipsisa32r6-* | mipsisa32r6el-* \
410 | mipsisa64-* | mipsisa64el-* \
411 | mipsisa64r2-* | mipsisa64r2el-* \
412 | mipsisa64r6-* | mipsisa64r6el-* \
413 | mipsisa64sb1-* | mipsisa64sb1el-* \
414 | mipsisa64sr71k-* | mipsisa64sr71kel-* \
415 | mipsr5900-* | mipsr5900el-* \
416 | mipstx39-* | mipstx39el-* \
417 | mmix-* \
418 | mt-* \
419 | msp430-* \
420 | nds32-* | nds32le-* | nds32be-* \
421 | nios-* | nios2-* | nios2eb-* | nios2el-* \
422 | none-* | np1-* | ns16k-* | ns32k-* \
423 | open8-* \
424 | or1k*-* \
425 | orion-* \
426 | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \
427 | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* \
428 | pru-* \
429 | pyramid-* \
430 | riscv32-* | riscv64-* \
431 | rl78-* | romp-* | rs6000-* | rx-* \
432 | sh-* | sh[1234]-* | sh[24]a-* | sh[24]aeb-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \
433 | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \
434 | sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \
435 | sparclite-* \
436 | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | sv1-* | sx*-* \
437 | tahoe-* \
438 | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \
439 | tile*-* \
440 | tron-* \
441 | ubicom32-* \
442 | v850-* | v850e-* | v850e1-* | v850es-* | v850e2-* | v850e2v3-* \
443 | vax-* \
444 | visium-* \
445 | wasm32-* \
446 | we32k-* \
447 | x86-* | x86_64-* | xc16x-* | xps100-* \
448 | xstormy16-* | xtensa*-* \
449 | ymp-* \
450 | z8k-* | z80-*)
451 ;;
452 # Recognize the basic CPU types without company name, with glob match.
453 xtensa*)
454 basic_machine=$basic_machine-unknown
455 ;;
456 # Recognize the various machine names and aliases which stand
457 # for a CPU type and a company and sometimes even an OS.
458 386bsd)
459 basic_machine=i386-pc
460 os=-bsd
461 ;;
462 3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc)
463 basic_machine=m68000-att
464 ;;
465 3b*)
466 basic_machine=we32k-att
467 ;;
468 a29khif)
469 basic_machine=a29k-amd
470 os=-udi
471 ;;
472 abacus)
473 basic_machine=abacus-unknown
474 ;;
475 adobe68k)
476 basic_machine=m68010-adobe
477 os=-scout
478 ;;
479 alliant | fx80)
480 basic_machine=fx80-alliant
481 ;;
482 altos | altos3068)
483 basic_machine=m68k-altos
484 ;;
485 am29k)
486 basic_machine=a29k-none
487 os=-bsd
488 ;;
489 amd64)
490 basic_machine=x86_64-pc
491 ;;
949 cpu=$basic_machine
950 vendor=pc
951 ;;
952 # These rules are duplicated from below for sake of the special case above;
953 # i.e. things that normalized to x86 arches should also default to "pc"
954 pc98)
955 cpu=i386
956 vendor=pc
957 ;;
958 x64 | amd64)
959 cpu=x86_64
960 vendor=pc
961 ;;
962 # Recognize the basic CPU types without company name.
963 *)
964 cpu=$basic_machine
965 vendor=unknown
966 ;;
967 esac
968
969 unset -v basic_machine
970
971 # Decode basic machines in the full and proper CPU-Company form.
972 case $cpu-$vendor in
973 # Here we handle the default manufacturer of certain CPU types in canonical form. It is in
974 # some cases the only manufacturer, in others, it is the most popular.
975 craynv-unknown)
976 vendor=cray
977 basic_os=${basic_os:-unicosmp}
978 ;;
979 c90-unknown | c90-cray)
980 vendor=cray
981 basic_os=${Basic_os:-unicos}
982 ;;
983 fx80-unknown)
984 vendor=alliant
985 ;;
986 romp-unknown)
987 vendor=ibm
988 ;;
989 mmix-unknown)
990 vendor=knuth
991 ;;
992 microblaze-unknown | microblazeel-unknown)
993 vendor=xilinx
994 ;;
995 rs6000-unknown)
996 vendor=ibm
997 ;;
998 vax-unknown)
999 vendor=dec
1000 ;;
1001 pdp11-unknown)
1002 vendor=dec
1003 ;;
1004 we32k-unknown)
1005 vendor=att
1006 ;;
1007 cydra-unknown)
1008 vendor=cydrome
1009 ;;
1010 i370-ibm*)
1011 vendor=ibm
1012 ;;
1013 orion-unknown)
1014 vendor=highlevel
1015 ;;
1016 xps-unknown | xps100-unknown)
1017 cpu=xps100
1018 vendor=honeywell
1019 ;;
1020
1021 # Here we normalize CPU types with a missing or matching vendor
1022 armh-unknown | armh-alt)
1023 cpu=armv7l
1024 vendor=alt
1025 basic_os=${basic_os:-linux-gnueabihf}
1026 ;;
1027 dpx20-unknown | dpx20-bull)
1028 cpu=rs6000
1029 vendor=bull
1030 basic_os=${basic_os:-bosx}
1031 ;;
1032
1033 # Here we normalize CPU types irrespective of the vendor
4921034 amd64-*)
493 basic_machine=x86_64-`echo "$basic_machine" | sed 's/^[^-]*-//'`
494 ;;
495 amdahl)
496 basic_machine=580-amdahl
497 os=-sysv
498 ;;
499 amiga | amiga-*)
500 basic_machine=m68k-unknown
501 ;;
502 amigaos | amigados)
503 basic_machine=m68k-unknown
504 os=-amigaos
505 ;;
506 amigaunix | amix)
507 basic_machine=m68k-unknown
508 os=-sysv4
509 ;;
510 apollo68)
511 basic_machine=m68k-apollo
512 os=-sysv
513 ;;
514 apollo68bsd)
515 basic_machine=m68k-apollo
516 os=-bsd
517 ;;
518 aros)
519 basic_machine=i386-pc
520 os=-aros
521 ;;
522 asmjs)
523 basic_machine=asmjs-unknown
524 ;;
525 aux)
526 basic_machine=m68k-apple
527 os=-aux
528 ;;
529 balance)
530 basic_machine=ns32k-sequent
531 os=-dynix
532 ;;
533 blackfin)
534 basic_machine=bfin-unknown
535 os=-linux
1035 cpu=x86_64
5361036 ;;
5371037 blackfin-*)
538 basic_machine=bfin-`echo "$basic_machine" | sed 's/^[^-]*-//'`
539 os=-linux
540 ;;
541 bluegene*)
542 basic_machine=powerpc-ibm
543 os=-cnk
1038 cpu=bfin
1039 basic_os=linux
5441040 ;;
5451041 c54x-*)
546 basic_machine=tic54x-`echo "$basic_machine" | sed 's/^[^-]*-//'`
1042 cpu=tic54x
5471043 ;;
5481044 c55x-*)
549 basic_machine=tic55x-`echo "$basic_machine" | sed 's/^[^-]*-//'`
1045 cpu=tic55x
5501046 ;;
5511047 c6x-*)
552 basic_machine=tic6x-`echo "$basic_machine" | sed 's/^[^-]*-//'`
553 ;;
554 c90)
555 basic_machine=c90-cray
556 os=-unicos
557 ;;
558 cegcc)
559 basic_machine=arm-unknown
560 os=-cegcc
561 ;;
562 convex-c1)
563 basic_machine=c1-convex
564 os=-bsd
565 ;;
566 convex-c2)
567 basic_machine=c2-convex
568 os=-bsd
569 ;;
570 convex-c32)
571 basic_machine=c32-convex
572 os=-bsd
573 ;;
574 convex-c34)
575 basic_machine=c34-convex
576 os=-bsd
577 ;;
578 convex-c38)
579 basic_machine=c38-convex
580 os=-bsd
581 ;;
582 cray | j90)
583 basic_machine=j90-cray
584 os=-unicos
585 ;;
586 craynv)
587 basic_machine=craynv-cray
588 os=-unicosmp
589 ;;
590 cr16 | cr16-*)
591 basic_machine=cr16-unknown
592 os=-elf
593 ;;
594 crds | unos)
595 basic_machine=m68k-crds
596 ;;
597 crisv32 | crisv32-* | etraxfs*)
598 basic_machine=crisv32-axis
599 ;;
600 cris | cris-* | etrax*)
601 basic_machine=cris-axis
602 ;;
603 crx)
604 basic_machine=crx-unknown
605 os=-elf
606 ;;
607 da30 | da30-*)
608 basic_machine=m68k-da30
609 ;;
610 decstation | decstation-3100 | pmax | pmax-* | pmin | dec3100 | decstatn)
611 basic_machine=mips-dec
612 ;;
613 decsystem10* | dec10*)
614 basic_machine=pdp10-dec
615 os=-tops10
616 ;;
617 decsystem20* | dec20*)
618 basic_machine=pdp10-dec
619 os=-tops20
620 ;;
621 delta | 3300 | motorola-3300 | motorola-delta \
622 | 3300-motorola | delta-motorola)
623 basic_machine=m68k-motorola
624 ;;
625 delta88)
626 basic_machine=m88k-motorola
627 os=-sysv3
628 ;;
629 dicos)
630 basic_machine=i686-pc
631 os=-dicos
632 ;;
633 djgpp)
634 basic_machine=i586-pc
635 os=-msdosdjgpp
636 ;;
637 dpx20 | dpx20-*)
638 basic_machine=rs6000-bull
639 os=-bosx
640 ;;
641 dpx2*)
642 basic_machine=m68k-bull
643 os=-sysv3
644 ;;
645 e500v[12])
646 basic_machine=powerpc-unknown
647 os=$os"spe"
1048 cpu=tic6x
6481049 ;;
6491050 e500v[12]-*)
650 basic_machine=powerpc-`echo "$basic_machine" | sed 's/^[^-]*-//'`
651 os=$os"spe"
652 ;;
653 ebmon29k)
654 basic_machine=a29k-amd
655 os=-ebmon
656 ;;
657 elxsi)
658 basic_machine=elxsi-elxsi
659 os=-bsd
660 ;;
661 encore | umax | mmax)
662 basic_machine=ns32k-encore
663 ;;
664 es1800 | OSE68k | ose68k | ose | OSE)
665 basic_machine=m68k-ericsson
666 os=-ose
667 ;;
668 fx2800)
669 basic_machine=i860-alliant
670 ;;
671 genix)
672 basic_machine=ns32k-ns
673 ;;
674 gmicro)
675 basic_machine=tron-gmicro
676 os=-sysv
677 ;;
678 go32)
679 basic_machine=i386-pc
680 os=-go32
681 ;;
682 h3050r* | hiux*)
683 basic_machine=hppa1.1-hitachi
684 os=-hiuxwe2
685 ;;
686 h8300hms)
687 basic_machine=h8300-hitachi
688 os=-hms
689 ;;
690 h8300xray)
691 basic_machine=h8300-hitachi
692 os=-xray
693 ;;
694 h8500hms)
695 basic_machine=h8500-hitachi
696 os=-hms
697 ;;
698 harris)
699 basic_machine=m88k-harris
700 os=-sysv3
701 ;;
702 hp300-*)
703 basic_machine=m68k-hp
704 ;;
705 hp300bsd)
706 basic_machine=m68k-hp
707 os=-bsd
708 ;;
709 hp300hpux)
710 basic_machine=m68k-hp
711 os=-hpux
712 ;;
713 hp3k9[0-9][0-9] | hp9[0-9][0-9])
714 basic_machine=hppa1.0-hp
715 ;;
716 hp9k2[0-9][0-9] | hp9k31[0-9])
717 basic_machine=m68000-hp
718 ;;
719 hp9k3[2-9][0-9])
720 basic_machine=m68k-hp
721 ;;
722 hp9k6[0-9][0-9] | hp6[0-9][0-9])
723 basic_machine=hppa1.0-hp
724 ;;
725 hp9k7[0-79][0-9] | hp7[0-79][0-9])
726 basic_machine=hppa1.1-hp
727 ;;
728 hp9k78[0-9] | hp78[0-9])
729 # FIXME: really hppa2.0-hp
730 basic_machine=hppa1.1-hp
731 ;;
732 hp9k8[67]1 | hp8[67]1 | hp9k80[24] | hp80[24] | hp9k8[78]9 | hp8[78]9 | hp9k893 | hp893)
733 # FIXME: really hppa2.0-hp
734 basic_machine=hppa1.1-hp
735 ;;
736 hp9k8[0-9][13679] | hp8[0-9][13679])
737 basic_machine=hppa1.1-hp
738 ;;
739 hp9k8[0-9][0-9] | hp8[0-9][0-9])
740 basic_machine=hppa1.0-hp
741 ;;
742 hppaosf)
743 basic_machine=hppa1.1-hp
744 os=-osf
745 ;;
746 hppro)
747 basic_machine=hppa1.1-hp
748 os=-proelf
749 ;;
750 i370-ibm* | ibm*)
751 basic_machine=i370-ibm
752 ;;
753 i*86v32)
754 basic_machine=`echo "$1" | sed -e 's/86.*/86-pc/'`
755 os=-sysv32
756 ;;
757 i*86v4*)
758 basic_machine=`echo "$1" | sed -e 's/86.*/86-pc/'`
759 os=-sysv4
760 ;;
761 i*86v)
762 basic_machine=`echo "$1" | sed -e 's/86.*/86-pc/'`
763 os=-sysv
764 ;;
765 i*86sol2)
766 basic_machine=`echo "$1" | sed -e 's/86.*/86-pc/'`
767 os=-solaris2
768 ;;
769 i386mach)
770 basic_machine=i386-mach
771 os=-mach
772 ;;
773 vsta)
774 basic_machine=i386-unknown
775 os=-vsta
776 ;;
777 iris | iris4d)
778 basic_machine=mips-sgi
779 case $os in
780 -irix*)
781 ;;
782 *)
783 os=-irix4
784 ;;
1051 cpu=powerpc
1052 basic_os=${basic_os}"spe"
1053 ;;
1054 mips3*-*)
1055 cpu=mips64
1056 ;;
1057 ms1-*)
1058 cpu=mt
1059 ;;
1060 m68knommu-*)
1061 cpu=m68k
1062 basic_os=linux
1063 ;;
1064 m9s12z-* | m68hcs12z-* | hcs12z-* | s12z-*)
1065 cpu=s12z
1066 ;;
1067 openrisc-*)
1068 cpu=or32
1069 ;;
1070 parisc-*)
1071 cpu=hppa
1072 basic_os=linux
1073 ;;
1074 pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*)
1075 cpu=i586
1076 ;;
1077 pentiumpro-* | p6-* | 6x86-* | athlon-* | athalon_*-*)
1078 cpu=i686
1079 ;;
1080 pentiumii-* | pentium2-* | pentiumiii-* | pentium3-*)
1081 cpu=i686
1082 ;;
1083 pentium4-*)
1084 cpu=i786
1085 ;;
1086 pc98-*)
1087 cpu=i386
1088 ;;
1089 ppc-* | ppcbe-*)
1090 cpu=powerpc
1091 ;;
1092 ppcle-* | powerpclittle-*)
1093 cpu=powerpcle
1094 ;;
1095 ppc64-*)
1096 cpu=powerpc64
1097 ;;
1098 ppc64le-* | powerpc64little-*)
1099 cpu=powerpc64le
1100 ;;
1101 sb1-*)
1102 cpu=mipsisa64sb1
1103 ;;
1104 sb1el-*)
1105 cpu=mipsisa64sb1el
1106 ;;
1107 sh5e[lb]-*)
1108 cpu=`echo "$cpu" | sed 's/^\(sh.\)e\(.\)$/\1\2e/'`
1109 ;;
1110 spur-*)
1111 cpu=spur
1112 ;;
1113 strongarm-* | thumb-*)
1114 cpu=arm
1115 ;;
1116 tx39-*)
1117 cpu=mipstx39
1118 ;;
1119 tx39el-*)
1120 cpu=mipstx39el
1121 ;;
1122 x64-*)
1123 cpu=x86_64
1124 ;;
1125 xscale-* | xscalee[bl]-*)
1126 cpu=`echo "$cpu" | sed 's/^xscale/arm/'`
1127 ;;
1128 arm64-* | aarch64le-*)
1129 cpu=aarch64
1130 ;;
1131
1132 # Recognize the canonical CPU Types that limit and/or modify the
1133 # company names they are paired with.
1134 cr16-*)
1135 basic_os=${basic_os:-elf}
1136 ;;
1137 crisv32-* | etraxfs*-*)
1138 cpu=crisv32
1139 vendor=axis
1140 ;;
1141 cris-* | etrax*-*)
1142 cpu=cris
1143 vendor=axis
1144 ;;
1145 crx-*)
1146 basic_os=${basic_os:-elf}
1147 ;;
1148 neo-tandem)
1149 cpu=neo
1150 vendor=tandem
1151 ;;
1152 nse-tandem)
1153 cpu=nse
1154 vendor=tandem
1155 ;;
1156 nsr-tandem)
1157 cpu=nsr
1158 vendor=tandem
1159 ;;
1160 nsv-tandem)
1161 cpu=nsv
1162 vendor=tandem
1163 ;;
1164 nsx-tandem)
1165 cpu=nsx
1166 vendor=tandem
1167 ;;
1168 mipsallegrexel-sony)
1169 cpu=mipsallegrexel
1170 vendor=sony
1171 ;;
1172 tile*-*)
1173 basic_os=${basic_os:-linux-gnu}
1174 ;;
1175
1176 *)
1177 # Recognize the canonical CPU types that are allowed with any
1178 # company name.
1179 case $cpu in
1180 1750a | 580 \
1181 | a29k \
1182 | aarch64 | aarch64_be \
1183 | abacus \
1184 | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] \
1185 | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] \
1186 | alphapca5[67] | alpha64pca5[67] \
1187 | am33_2.0 \
1188 | amdgcn \
1189 | arc | arceb | arc32 | arc64 \
1190 | arm | arm[lb]e | arme[lb] | armv* \
1191 | avr | avr32 \
1192 | asmjs \
1193 | ba \
1194 | be32 | be64 \
1195 | bfin | bpf | bs2000 \
1196 | c[123]* | c30 | [cjt]90 | c4x \
1197 | c8051 | clipper | craynv | csky | cydra \
1198 | d10v | d30v | dlx | dsp16xx \
1199 | e2k | elxsi | epiphany \
1200 | f30[01] | f700 | fido | fr30 | frv | ft32 | fx80 \
1201 | h8300 | h8500 \
1202 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
1203 | hexagon \
1204 | i370 | i*86 | i860 | i960 | ia16 | ia64 \
1205 | ip2k | iq2000 \
1206 | k1om \
1207 | le32 | le64 \
1208 | lm32 \
1209 | loongarch32 | loongarch64 | loongarchx32 \
1210 | m32c | m32r | m32rle \
1211 | m5200 | m68000 | m680[012346]0 | m68360 | m683?2 | m68k \
1212 | m6811 | m68hc11 | m6812 | m68hc12 | m68hcs12x \
1213 | m88110 | m88k | maxq | mb | mcore | mep | metag \
1214 | microblaze | microblazeel \
1215 | mips | mipsbe | mipseb | mipsel | mipsle \
1216 | mips16 \
1217 | mips64 | mips64eb | mips64el \
1218 | mips64octeon | mips64octeonel \
1219 | mips64orion | mips64orionel \
1220 | mips64r5900 | mips64r5900el \
1221 | mips64vr | mips64vrel \
1222 | mips64vr4100 | mips64vr4100el \
1223 | mips64vr4300 | mips64vr4300el \
1224 | mips64vr5000 | mips64vr5000el \
1225 | mips64vr5900 | mips64vr5900el \
1226 | mipsisa32 | mipsisa32el \
1227 | mipsisa32r2 | mipsisa32r2el \
1228 | mipsisa32r3 | mipsisa32r3el \
1229 | mipsisa32r5 | mipsisa32r5el \
1230 | mipsisa32r6 | mipsisa32r6el \
1231 | mipsisa64 | mipsisa64el \
1232 | mipsisa64r2 | mipsisa64r2el \
1233 | mipsisa64r3 | mipsisa64r3el \
1234 | mipsisa64r5 | mipsisa64r5el \
1235 | mipsisa64r6 | mipsisa64r6el \
1236 | mipsisa64sb1 | mipsisa64sb1el \
1237 | mipsisa64sr71k | mipsisa64sr71kel \
1238 | mipsr5900 | mipsr5900el \
1239 | mipstx39 | mipstx39el \
1240 | mmix \
1241 | mn10200 | mn10300 \
1242 | moxie \
1243 | mt \
1244 | msp430 \
1245 | nds32 | nds32le | nds32be \
1246 | nfp \
1247 | nios | nios2 | nios2eb | nios2el \
1248 | none | np1 | ns16k | ns32k | nvptx \
1249 | open8 \
1250 | or1k* \
1251 | or32 \
1252 | orion \
1253 | picochip \
1254 | pdp10 | pdp11 | pj | pjl | pn | power \
1255 | powerpc | powerpc64 | powerpc64le | powerpcle | powerpcspe \
1256 | pru \
1257 | pyramid \
1258 | riscv | riscv32 | riscv32be | riscv64 | riscv64be \
1259 | rl78 | romp | rs6000 | rx \
1260 | s390 | s390x \
1261 | score \
1262 | sh | shl \
1263 | sh[1234] | sh[24]a | sh[24]ae[lb] | sh[23]e | she[lb] | sh[lb]e \
1264 | sh[1234]e[lb] | sh[12345][lb]e | sh[23]ele | sh64 | sh64le \
1265 | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet \
1266 | sparclite \
1267 | sparcv8 | sparcv9 | sparcv9b | sparcv9v | sv1 | sx* \
1268 | spu \
1269 | tahoe \
1270 | thumbv7* \
1271 | tic30 | tic4x | tic54x | tic55x | tic6x | tic80 \
1272 | tron \
1273 | ubicom32 \
1274 | v70 | v850 | v850e | v850e1 | v850es | v850e2 | v850e2v3 \
1275 | vax \
1276 | visium \
1277 | w65 \
1278 | wasm32 | wasm64 \
1279 | we32k \
1280 | x86 | x86_64 | xc16x | xgate | xps100 \
1281 | xstormy16 | xtensa* \
1282 | ymp \
1283 | z8k | z80)
1284 ;;
1285
1286 *)
1287 echo Invalid configuration \`"$1"\': machine \`"$cpu-$vendor"\' not recognized 1>&2
1288 exit 1
1289 ;;
7851290 esac
7861291 ;;
787 isi68 | isi)
788 basic_machine=m68k-isi
789 os=-sysv
790 ;;
791 leon-*|leon[3-9]-*)
792 basic_machine=sparc-`echo "$basic_machine" | sed 's/-.*//'`
793 ;;
794 m68knommu)
795 basic_machine=m68k-unknown
796 os=-linux
797 ;;
798 m68knommu-*)
799 basic_machine=m68k-`echo "$basic_machine" | sed 's/^[^-]*-//'`
800 os=-linux
801 ;;
802 magnum | m3230)
803 basic_machine=mips-mips
804 os=-sysv
805 ;;
806 merlin)
807 basic_machine=ns32k-utek
808 os=-sysv
809 ;;
810 microblaze*)
811 basic_machine=microblaze-xilinx
812 ;;
813 mingw64)
814 basic_machine=x86_64-pc
815 os=-mingw64
816 ;;
817 mingw32)
818 basic_machine=i686-pc
819 os=-mingw32
820 ;;
821 mingw32ce)
822 basic_machine=arm-unknown
823 os=-mingw32ce
824 ;;
825 miniframe)
826 basic_machine=m68000-convergent
827 ;;
828 *mint | -mint[0-9]* | *MiNT | *MiNT[0-9]*)
829 basic_machine=m68k-atari
830 os=-mint
831 ;;
832 mips3*-*)
833 basic_machine=`echo "$basic_machine" | sed -e 's/mips3/mips64/'`
834 ;;
835 mips3*)
836 basic_machine=`echo "$basic_machine" | sed -e 's/mips3/mips64/'`-unknown
837 ;;
838 monitor)
839 basic_machine=m68k-rom68k
840 os=-coff
841 ;;
842 morphos)
843 basic_machine=powerpc-unknown
844 os=-morphos
845 ;;
846 moxiebox)
847 basic_machine=moxie-unknown
848 os=-moxiebox
849 ;;
850 msdos)
851 basic_machine=i386-pc
852 os=-msdos
853 ;;
854 ms1-*)
855 basic_machine=`echo "$basic_machine" | sed -e 's/ms1-/mt-/'`
856 ;;
857 msys)
858 basic_machine=i686-pc
859 os=-msys
860 ;;
861 mvs)
862 basic_machine=i370-ibm
863 os=-mvs
864 ;;
865 nacl)
866 basic_machine=le32-unknown
867 os=-nacl
868 ;;
869 ncr3000)
870 basic_machine=i486-ncr
871 os=-sysv4
872 ;;
873 netbsd386)
874 basic_machine=i386-unknown
875 os=-netbsd
876 ;;
877 netwinder)
878 basic_machine=armv4l-rebel
879 os=-linux
880 ;;
881 news | news700 | news800 | news900)
882 basic_machine=m68k-sony
883 os=-newsos
884 ;;
885 news1000)
886 basic_machine=m68030-sony
887 os=-newsos
888 ;;
889 news-3600 | risc-news)
890 basic_machine=mips-sony
891 os=-newsos
892 ;;
893 necv70)
894 basic_machine=v70-nec
895 os=-sysv
896 ;;
897 next | m*-next)
898 basic_machine=m68k-next
899 case $os in
900 -nextstep* )
901 ;;
902 -ns2*)
903 os=-nextstep2
904 ;;
905 *)
906 os=-nextstep3
907 ;;
908 esac
909 ;;
910 nh3000)
911 basic_machine=m68k-harris
912 os=-cxux
913 ;;
914 nh[45]000)
915 basic_machine=m88k-harris
916 os=-cxux
917 ;;
918 nindy960)
919 basic_machine=i960-intel
920 os=-nindy
921 ;;
922 mon960)
923 basic_machine=i960-intel
924 os=-mon960
925 ;;
926 nonstopux)
927 basic_machine=mips-compaq
928 os=-nonstopux
929 ;;
930 np1)
931 basic_machine=np1-gould
932 ;;
933 neo-tandem)
934 basic_machine=neo-tandem
935 ;;
936 nse-tandem)
937 basic_machine=nse-tandem
938 ;;
939 nsr-tandem)
940 basic_machine=nsr-tandem
941 ;;
942 nsv-tandem)
943 basic_machine=nsv-tandem
944 ;;
945 nsx-tandem)
946 basic_machine=nsx-tandem
947 ;;
948 op50n-* | op60c-*)
949 basic_machine=hppa1.1-oki
950 os=-proelf
951 ;;
952 openrisc | openrisc-*)
953 basic_machine=or32-unknown
954 ;;
955 os400)
956 basic_machine=powerpc-ibm
957 os=-os400
958 ;;
959 OSE68000 | ose68000)
960 basic_machine=m68000-ericsson
961 os=-ose
962 ;;
963 os68k)
964 basic_machine=m68k-none
965 os=-os68k
966 ;;
967 pa-hitachi)
968 basic_machine=hppa1.1-hitachi
969 os=-hiuxwe2
970 ;;
971 paragon)
972 basic_machine=i860-intel
973 os=-osf
974 ;;
975 parisc)
976 basic_machine=hppa-unknown
977 os=-linux
978 ;;
979 parisc-*)
980 basic_machine=hppa-`echo "$basic_machine" | sed 's/^[^-]*-//'`
981 os=-linux
982 ;;
983 pbd)
984 basic_machine=sparc-tti
985 ;;
986 pbb)
987 basic_machine=m68k-tti
988 ;;
989 pc532 | pc532-*)
990 basic_machine=ns32k-pc532
991 ;;
992 pc98)
993 basic_machine=i386-pc
994 ;;
995 pc98-*)
996 basic_machine=i386-`echo "$basic_machine" | sed 's/^[^-]*-//'`
997 ;;
998 pentium | p5 | k5 | k6 | nexgen | viac3)
999 basic_machine=i586-pc
1000 ;;
1001 pentiumpro | p6 | 6x86 | athlon | athlon_*)
1002 basic_machine=i686-pc
1003 ;;
1004 pentiumii | pentium2 | pentiumiii | pentium3)
1005 basic_machine=i686-pc
1006 ;;
1007 pentium4)
1008 basic_machine=i786-pc
1009 ;;
1010 pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*)
1011 basic_machine=i586-`echo "$basic_machine" | sed 's/^[^-]*-//'`
1012 ;;
1013 pentiumpro-* | p6-* | 6x86-* | athlon-*)
1014 basic_machine=i686-`echo "$basic_machine" | sed 's/^[^-]*-//'`
1015 ;;
1016 pentiumii-* | pentium2-* | pentiumiii-* | pentium3-*)
1017 basic_machine=i686-`echo "$basic_machine" | sed 's/^[^-]*-//'`
1018 ;;
1019 pentium4-*)
1020 basic_machine=i786-`echo "$basic_machine" | sed 's/^[^-]*-//'`
1021 ;;
1022 pn)
1023 basic_machine=pn-gould
1024 ;;
1025 power) basic_machine=power-ibm
1026 ;;
1027 ppc | ppcbe) basic_machine=powerpc-unknown
1028 ;;
1029 ppc-* | ppcbe-*)
1030 basic_machine=powerpc-`echo "$basic_machine" | sed 's/^[^-]*-//'`
1031 ;;
1032 ppcle | powerpclittle)
1033 basic_machine=powerpcle-unknown
1034 ;;
1035 ppcle-* | powerpclittle-*)
1036 basic_machine=powerpcle-`echo "$basic_machine" | sed 's/^[^-]*-//'`
1037 ;;
1038 ppc64) basic_machine=powerpc64-unknown
1039 ;;
1040 ppc64-*) basic_machine=powerpc64-`echo "$basic_machine" | sed 's/^[^-]*-//'`
1041 ;;
1042 ppc64le | powerpc64little)
1043 basic_machine=powerpc64le-unknown
1044 ;;
1045 ppc64le-* | powerpc64little-*)
1046 basic_machine=powerpc64le-`echo "$basic_machine" | sed 's/^[^-]*-//'`
1047 ;;
1048 ps2)
1049 basic_machine=i386-ibm
1050 ;;
1051 pw32)
1052 basic_machine=i586-unknown
1053 os=-pw32
1054 ;;
1055 rdos | rdos64)
1056 basic_machine=x86_64-pc
1057 os=-rdos
1058 ;;
1059 rdos32)
1060 basic_machine=i386-pc
1061 os=-rdos
1062 ;;
1063 rom68k)
1064 basic_machine=m68k-rom68k
1065 os=-coff
1066 ;;
1067 rm[46]00)
1068 basic_machine=mips-siemens
1069 ;;
1070 rtpc | rtpc-*)
1071 basic_machine=romp-ibm
1072 ;;
1073 s390 | s390-*)
1074 basic_machine=s390-ibm
1075 ;;
1076 s390x | s390x-*)
1077 basic_machine=s390x-ibm
1078 ;;
1079 sa29200)
1080 basic_machine=a29k-amd
1081 os=-udi
1082 ;;
1083 sb1)
1084 basic_machine=mipsisa64sb1-unknown
1085 ;;
1086 sb1el)
1087 basic_machine=mipsisa64sb1el-unknown
1088 ;;
1089 sde)
1090 basic_machine=mipsisa32-sde
1091 os=-elf
1092 ;;
1093 sei)
1094 basic_machine=mips-sei
1095 os=-seiux
1096 ;;
1097 sequent)
1098 basic_machine=i386-sequent
1099 ;;
1100 sh5el)
1101 basic_machine=sh5le-unknown
1102 ;;
1103 simso-wrs)
1104 basic_machine=sparclite-wrs
1105 os=-vxworks
1106 ;;
1107 sps7)
1108 basic_machine=m68k-bull
1109 os=-sysv2
1110 ;;
1111 spur)
1112 basic_machine=spur-unknown
1113 ;;
1114 st2000)
1115 basic_machine=m68k-tandem
1116 ;;
1117 stratus)
1118 basic_machine=i860-stratus
1119 os=-sysv4
1120 ;;
1121 strongarm-* | thumb-*)
1122 basic_machine=arm-`echo "$basic_machine" | sed 's/^[^-]*-//'`
1123 ;;
1124 sun2)
1125 basic_machine=m68000-sun
1126 ;;
1127 sun2os3)
1128 basic_machine=m68000-sun
1129 os=-sunos3
1130 ;;
1131 sun2os4)
1132 basic_machine=m68000-sun
1133 os=-sunos4
1134 ;;
1135 sun3os3)
1136 basic_machine=m68k-sun
1137 os=-sunos3
1138 ;;
1139 sun3os4)
1140 basic_machine=m68k-sun
1141 os=-sunos4
1142 ;;
1143 sun4os3)
1144 basic_machine=sparc-sun
1145 os=-sunos3
1146 ;;
1147 sun4os4)
1148 basic_machine=sparc-sun
1149 os=-sunos4
1150 ;;
1151 sun4sol2)
1152 basic_machine=sparc-sun
1153 os=-solaris2
1154 ;;
1155 sun3 | sun3-*)
1156 basic_machine=m68k-sun
1157 ;;
1158 sun4)
1159 basic_machine=sparc-sun
1160 ;;
1161 sun386 | sun386i | roadrunner)
1162 basic_machine=i386-sun
1163 ;;
1164 sv1)
1165 basic_machine=sv1-cray
1166 os=-unicos
1167 ;;
1168 symmetry)
1169 basic_machine=i386-sequent
1170 os=-dynix
1171 ;;
1172 t3e)
1173 basic_machine=alphaev5-cray
1174 os=-unicos
1175 ;;
1176 t90)
1177 basic_machine=t90-cray
1178 os=-unicos
1179 ;;
1180 tile*)
1181 basic_machine=$basic_machine-unknown
1182 os=-linux-gnu
1183 ;;
1184 tx39)
1185 basic_machine=mipstx39-unknown
1186 ;;
1187 tx39el)
1188 basic_machine=mipstx39el-unknown
1189 ;;
1190 toad1)
1191 basic_machine=pdp10-xkl
1192 os=-tops20
1193 ;;
1194 tower | tower-32)
1195 basic_machine=m68k-ncr
1196 ;;
1197 tpf)
1198 basic_machine=s390x-ibm
1199 os=-tpf
1200 ;;
1201 udi29k)
1202 basic_machine=a29k-amd
1203 os=-udi
1204 ;;
1205 ultra3)
1206 basic_machine=a29k-nyu
1207 os=-sym1
1208 ;;
1209 v810 | necv810)
1210 basic_machine=v810-nec
1211 os=-none
1212 ;;
1213 vaxv)
1214 basic_machine=vax-dec
1215 os=-sysv
1216 ;;
1217 vms)
1218 basic_machine=vax-dec
1219 os=-vms
1220 ;;
1221 vpp*|vx|vx-*)
1222 basic_machine=f301-fujitsu
1223 ;;
1224 vxworks960)
1225 basic_machine=i960-wrs
1226 os=-vxworks
1227 ;;
1228 vxworks68)
1229 basic_machine=m68k-wrs
1230 os=-vxworks
1231 ;;
1232 vxworks29k)
1233 basic_machine=a29k-wrs
1234 os=-vxworks
1235 ;;
1236 w65*)
1237 basic_machine=w65-wdc
1238 os=-none
1239 ;;
1240 w89k-*)
1241 basic_machine=hppa1.1-winbond
1242 os=-proelf
1243 ;;
1244 x64)
1245 basic_machine=x86_64-pc
1246 ;;
1247 xbox)
1248 basic_machine=i686-pc
1249 os=-mingw32
1250 ;;
1251 xps | xps100)
1252 basic_machine=xps100-honeywell
1253 ;;
1254 xscale-* | xscalee[bl]-*)
1255 basic_machine=`echo "$basic_machine" | sed 's/^xscale/arm/'`
1256 ;;
1257 ymp)
1258 basic_machine=ymp-cray
1259 os=-unicos
1260 ;;
1261 none)
1262 basic_machine=none-none
1263 os=-none
1264 ;;
1265
1266 # Here we handle the default manufacturer of certain CPU types. It is in
1267 # some cases the only manufacturer, in others, it is the most popular.
1268 w89k)
1269 basic_machine=hppa1.1-winbond
1270 ;;
1271 op50n)
1272 basic_machine=hppa1.1-oki
1273 ;;
1274 op60c)
1275 basic_machine=hppa1.1-oki
1276 ;;
1277 romp)
1278 basic_machine=romp-ibm
1279 ;;
1280 mmix)
1281 basic_machine=mmix-knuth
1282 ;;
1283 rs6000)
1284 basic_machine=rs6000-ibm
1285 ;;
1286 vax)
1287 basic_machine=vax-dec
1288 ;;
1289 pdp11)
1290 basic_machine=pdp11-dec
1291 ;;
1292 we32k)
1293 basic_machine=we32k-att
1294 ;;
1295 sh[1234] | sh[24]a | sh[24]aeb | sh[34]eb | sh[1234]le | sh[23]ele)
1296 basic_machine=sh-unknown
1297 ;;
1298 cydra)
1299 basic_machine=cydra-cydrome
1300 ;;
1301 orion)
1302 basic_machine=orion-highlevel
1303 ;;
1304 orion105)
1305 basic_machine=clipper-highlevel
1306 ;;
1307 mac | mpw | mac-mpw)
1308 basic_machine=m68k-apple
1309 ;;
1310 pmac | pmac-mpw)
1311 basic_machine=powerpc-apple
1312 ;;
1313 *-unknown)
1314 # Make sure to match an already-canonicalized machine name.
1292 esac
1293
1294 # Here we canonicalize certain aliases for manufacturers.
1295 case $vendor in
1296 digital*)
1297 vendor=dec
1298 ;;
1299 commodore*)
1300 vendor=cbm
13151301 ;;
13161302 *)
1317 echo Invalid configuration \`"$1"\': machine \`"$basic_machine"\' not recognized 1>&2
1318 exit 1
13191303 ;;
13201304 esac
13211305
1322 # Here we canonicalize certain aliases for manufacturers.
1323 case $basic_machine in
1324 *-digital*)
1325 basic_machine=`echo "$basic_machine" | sed 's/digital.*/dec/'`
1326 ;;
1327 *-commodore*)
1328 basic_machine=`echo "$basic_machine" | sed 's/commodore.*/cbm/'`
1306 # Decode manufacturer-specific aliases for certain operating systems.
1307
1308 if test x$basic_os != x
1309 then
1310
1311 # First recognize some ad-hoc cases, or perhaps split kernel-os, or else just
1312 # set os.
1313 case $basic_os in
1314 gnu/linux*)
1315 kernel=linux
1316 os=`echo "$basic_os" | sed -e 's|gnu/linux|gnu|'`
1317 ;;
1318 os2-emx)
1319 kernel=os2
1320 os=`echo "$basic_os" | sed -e 's|os2-emx|emx|'`
1321 ;;
1322 nto-qnx*)
1323 kernel=nto
1324 os=`echo "$basic_os" | sed -e 's|nto-qnx|qnx|'`
1325 ;;
1326 *-*)
1327 # shellcheck disable=SC2162
1328 saved_IFS=$IFS
1329 IFS="-" read kernel os <<EOF
1330 $basic_os
1331 EOF
1332 IFS=$saved_IFS
1333 ;;
1334 # Default OS when just kernel was specified
1335 nto*)
1336 kernel=nto
1337 os=`echo "$basic_os" | sed -e 's|nto|qnx|'`
1338 ;;
1339 linux*)
1340 kernel=linux
1341 os=`echo "$basic_os" | sed -e 's|linux|gnu|'`
13291342 ;;
13301343 *)
1344 kernel=
1345 os=$basic_os
13311346 ;;
13321347 esac
13331348
1334 # Decode manufacturer-specific aliases for certain operating systems.
1335
1336 if [ x"$os" != x"" ]
1337 then
1349 # Now, normalize the OS (knowing we just have one component, it's not a kernel,
1350 # etc.)
13381351 case $os in
13391352 # First match some system type aliases that might get confused
13401353 # with valid system types.
1341 # -solaris* is a basic system type, with this one exception.
1342 -auroraux)
1343 os=-auroraux
1344 ;;
1345 -solaris1 | -solaris1.*)
1346 os=`echo $os | sed -e 's|solaris1|sunos4|'`
1347 ;;
1348 -solaris)
1349 os=-solaris2
1350 ;;
1351 -unixware*)
1352 os=-sysv4.2uw
1353 ;;
1354 -gnu/linux*)
1355 os=`echo $os | sed -e 's|gnu/linux|linux-gnu|'`
1354 # solaris* is a basic system type, with this one exception.
1355 auroraux)
1356 os=auroraux
1357 ;;
1358 bluegene*)
1359 os=cnk
1360 ;;
1361 solaris1 | solaris1.*)
1362 os=`echo "$os" | sed -e 's|solaris1|sunos4|'`
1363 ;;
1364 solaris)
1365 os=solaris2
1366 ;;
1367 unixware*)
1368 os=sysv4.2uw
13561369 ;;
13571370 # es1800 is here to avoid being matched by es* (a different OS)
1358 -es1800*)
1359 os=-ose
1360 ;;
1361 # Now accept the basic system types.
1362 # The portable systems comes first.
1363 # Each alternative MUST end in a * to match a version number.
1364 # -sysv* is not here because it comes later, after sysvr4.
1365 -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \
1366 | -*vms* | -sco* | -esix* | -isc* | -aix* | -cnk* | -sunos | -sunos[34]*\
1367 | -hpux* | -unos* | -osf* | -luna* | -dgux* | -auroraux* | -solaris* \
1368 | -sym* | -kopensolaris* | -plan9* \
1369 | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \
1370 | -aos* | -aros* | -cloudabi* | -sortix* \
1371 | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
1372 | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
1373 | -hiux* | -knetbsd* | -mirbsd* | -netbsd* \
1374 | -bitrig* | -openbsd* | -solidbsd* | -libertybsd* \
1375 | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \
1376 | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
1377 | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
1378 | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
1379 | -chorusos* | -chorusrdb* | -cegcc* | -glidix* \
1380 | -cygwin* | -msys* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
1381 | -midipix* | -mingw32* | -mingw64* | -linux-gnu* | -linux-android* \
1382 | -linux-newlib* | -linux-musl* | -linux-uclibc* \
1383 | -uxpv* | -beos* | -mpeix* | -udk* | -moxiebox* \
1384 | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* \
1385 | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
1386 | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \
1387 | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \
1388 | -morphos* | -superux* | -rtmk* | -windiss* \
1389 | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \
1390 | -skyos* | -haiku* | -rdos* | -toppers* | -drops* | -es* \
1391 | -onefs* | -tirtos* | -phoenix* | -fuchsia* | -redox* | -bme* \
1392 | -midnightbsd*)
1393 # Remember, each alternative MUST END IN *, to match a version number.
1394 ;;
1395 -qnx*)
1396 case $basic_machine in
1397 x86-* | i*86-*)
1398 ;;
1399 *)
1400 os=-nto$os
1401 ;;
1402 esac
1403 ;;
1404 -nto-qnx*)
1405 ;;
1406 -nto*)
1407 os=`echo $os | sed -e 's|nto|nto-qnx|'`
1408 ;;
1409 -sim | -xray | -os68k* | -v88r* \
1410 | -windows* | -osx | -abug | -netware* | -os9* \
1411 | -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*)
1412 ;;
1413 -mac*)
1371 es1800*)
1372 os=ose
1373 ;;
1374 # Some version numbers need modification
1375 chorusos*)
1376 os=chorusos
1377 ;;
1378 isc)
1379 os=isc2.2
1380 ;;
1381 sco6)
1382 os=sco5v6
1383 ;;
1384 sco5)
1385 os=sco3.2v5
1386 ;;
1387 sco4)
1388 os=sco3.2v4
1389 ;;
1390 sco3.2.[4-9]*)
1391 os=`echo "$os" | sed -e 's/sco3.2./sco3.2v/'`
1392 ;;
1393 sco*v* | scout)
1394 # Don't match below
1395 ;;
1396 sco*)
1397 os=sco3.2v2
1398 ;;
1399 psos*)
1400 os=psos
1401 ;;
1402 qnx*)
1403 os=qnx
1404 ;;
1405 hiux*)
1406 os=hiuxwe2
1407 ;;
1408 lynx*178)
1409 os=lynxos178
1410 ;;
1411 lynx*5)
1412 os=lynxos5
1413 ;;
1414 lynxos*)
1415 # don't get caught up in next wildcard
1416 ;;
1417 lynx*)
1418 os=lynxos
1419 ;;
1420 mac[0-9]*)
14141421 os=`echo "$os" | sed -e 's|mac|macos|'`
14151422 ;;
1416 -linux-dietlibc)
1417 os=-linux-dietlibc
1418 ;;
1419 -linux*)
1420 os=`echo $os | sed -e 's|linux|linux-gnu|'`
1421 ;;
1422 -sunos5*)
1423 opened*)
1424 os=openedition
1425 ;;
1426 os400*)
1427 os=os400
1428 ;;
1429 sunos5*)
14231430 os=`echo "$os" | sed -e 's|sunos5|solaris2|'`
14241431 ;;
1425 -sunos6*)
1432 sunos6*)
14261433 os=`echo "$os" | sed -e 's|sunos6|solaris3|'`
14271434 ;;
1428 -opened*)
1429 os=-openedition
1430 ;;
1431 -os400*)
1432 os=-os400
1433 ;;
1434 -wince*)
1435 os=-wince
1436 ;;
1437 -utek*)
1438 os=-bsd
1439 ;;
1440 -dynix*)
1441 os=-bsd
1442 ;;
1443 -acis*)
1444 os=-aos
1445 ;;
1446 -atheos*)
1447 os=-atheos
1448 ;;
1449 -syllable*)
1450 os=-syllable
1451 ;;
1452 -386bsd)
1453 os=-bsd
1454 ;;
1455 -ctix* | -uts*)
1456 os=-sysv
1457 ;;
1458 -nova*)
1459 os=-rtmk-nova
1460 ;;
1461 -ns2)
1462 os=-nextstep2
1463 ;;
1464 -nsk*)
1465 os=-nsk
1435 wince*)
1436 os=wince
1437 ;;
1438 utek*)
1439 os=bsd
1440 ;;
1441 dynix*)
1442 os=bsd
1443 ;;
1444 acis*)
1445 os=aos
1446 ;;
1447 atheos*)
1448 os=atheos
1449 ;;
1450 syllable*)
1451 os=syllable
1452 ;;
1453 386bsd)
1454 os=bsd
1455 ;;
1456 ctix* | uts*)
1457 os=sysv
1458 ;;
1459 nova*)
1460 os=rtmk-nova
1461 ;;
1462 ns2)
1463 os=nextstep2
14661464 ;;
14671465 # Preserve the version number of sinix5.
1468 -sinix5.*)
1469 os=`echo $os | sed -e 's|sinix|sysv|'`
1470 ;;
1471 -sinix*)
1472 os=-sysv4
1473 ;;
1474 -tpf*)
1475 os=-tpf
1476 ;;
1477 -triton*)
1478 os=-sysv3
1479 ;;
1480 -oss*)
1481 os=-sysv3
1482 ;;
1483 -svr4*)
1484 os=-sysv4
1485 ;;
1486 -svr3)
1487 os=-sysv3
1488 ;;
1489 -sysvr4)
1490 os=-sysv4
1491 ;;
1492 # This must come after -sysvr4.
1493 -sysv*)
1494 ;;
1495 -ose*)
1496 os=-ose
1497 ;;
1498 -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*)
1499 os=-mint
1500 ;;
1501 -zvmoe)
1502 os=-zvmoe
1503 ;;
1504 -dicos*)
1505 os=-dicos
1506 ;;
1507 -pikeos*)
1466 sinix5.*)
1467 os=`echo "$os" | sed -e 's|sinix|sysv|'`
1468 ;;
1469 sinix*)
1470 os=sysv4
1471 ;;
1472 tpf*)
1473 os=tpf
1474 ;;
1475 triton*)
1476 os=sysv3
1477 ;;
1478 oss*)
1479 os=sysv3
1480 ;;
1481 svr4*)
1482 os=sysv4
1483 ;;
1484 svr3)
1485 os=sysv3
1486 ;;
1487 sysvr4)
1488 os=sysv4
1489 ;;
1490 ose*)
1491 os=ose
1492 ;;
1493 *mint | mint[0-9]* | *MiNT | MiNT[0-9]*)
1494 os=mint
1495 ;;
1496 dicos*)
1497 os=dicos
1498 ;;
1499 pikeos*)
15081500 # Until real need of OS specific support for
15091501 # particular features comes up, bare metal
15101502 # configurations are quite functional.
1511 case $basic_machine in
1503 case $cpu in
15121504 arm*)
1513 os=-eabi
1505 os=eabi
15141506 ;;
15151507 *)
1516 os=-elf
1508 os=elf
15171509 ;;
15181510 esac
15191511 ;;
1520 -nacl*)
1521 ;;
1522 -ios)
1523 ;;
1524 -none)
1525 ;;
15261512 *)
1527 # Get rid of the `-' at the beginning of $os.
1528 os=`echo $os | sed 's/[^-]*-//'`
1529 echo Invalid configuration \`"$1"\': system \`"$os"\' not recognized 1>&2
1530 exit 1
1513 # No normalization, but not necessarily accepted, that comes below.
15311514 ;;
15321515 esac
1516
15331517 else
15341518
15351519 # Here we handle the default operating systems that come with various machines.
15421526 # will signal an error saying that MANUFACTURER isn't an operating
15431527 # system, and we'll never get to this point.
15441528
1545 case $basic_machine in
1529 kernel=
1530 case $cpu-$vendor in
15461531 score-*)
1547 os=-elf
1532 os=elf
15481533 ;;
15491534 spu-*)
1550 os=-elf
1535 os=elf
15511536 ;;
15521537 *-acorn)
1553 os=-riscix1.2
1538 os=riscix1.2
15541539 ;;
15551540 arm*-rebel)
1556 os=-linux
1541 kernel=linux
1542 os=gnu
15571543 ;;
15581544 arm*-semi)
1559 os=-aout
1545 os=aout
15601546 ;;
15611547 c4x-* | tic4x-*)
1562 os=-coff
1548 os=coff
15631549 ;;
15641550 c8051-*)
1565 os=-elf
1551 os=elf
1552 ;;
1553 clipper-intergraph)
1554 os=clix
15661555 ;;
15671556 hexagon-*)
1568 os=-elf
1557 os=elf
15691558 ;;
15701559 tic54x-*)
1571 os=-coff
1560 os=coff
15721561 ;;
15731562 tic55x-*)
1574 os=-coff
1563 os=coff
15751564 ;;
15761565 tic6x-*)
1577 os=-coff
1566 os=coff
15781567 ;;
15791568 # This must come before the *-dec entry.
15801569 pdp10-*)
1581 os=-tops20
1570 os=tops20
15821571 ;;
15831572 pdp11-*)
1584 os=-none
1573 os=none
15851574 ;;
15861575 *-dec | vax-*)
1587 os=-ultrix4.2
1576 os=ultrix4.2
15881577 ;;
15891578 m68*-apollo)
1590 os=-domain
1579 os=domain
15911580 ;;
15921581 i386-sun)
1593 os=-sunos4.0.2
1582 os=sunos4.0.2
15941583 ;;
15951584 m68000-sun)
1596 os=-sunos3
1585 os=sunos3
15971586 ;;
15981587 m68*-cisco)
1599 os=-aout
1588 os=aout
16001589 ;;
16011590 mep-*)
1602 os=-elf
1591 os=elf
16031592 ;;
16041593 mips*-cisco)
1605 os=-elf
1594 os=elf
16061595 ;;
16071596 mips*-*)
1608 os=-elf
1597 os=elf
16091598 ;;
16101599 or32-*)
1611 os=-coff
1600 os=coff
16121601 ;;
16131602 *-tti) # must be before sparc entry or we get the wrong os.
1614 os=-sysv3
1603 os=sysv3
16151604 ;;
16161605 sparc-* | *-sun)
1617 os=-sunos4.1.1
1606 os=sunos4.1.1
16181607 ;;
16191608 pru-*)
1620 os=-elf
1609 os=elf
16211610 ;;
16221611 *-be)
1623 os=-beos
1612 os=beos
16241613 ;;
16251614 *-ibm)
1626 os=-aix
1615 os=aix
16271616 ;;
16281617 *-knuth)
1629 os=-mmixware
1618 os=mmixware
16301619 ;;
16311620 *-wec)
1632 os=-proelf
1621 os=proelf
16331622 ;;
16341623 *-winbond)
1635 os=-proelf
1624 os=proelf
16361625 ;;
16371626 *-oki)
1638 os=-proelf
1627 os=proelf
16391628 ;;
16401629 *-hp)
1641 os=-hpux
1630 os=hpux
16421631 ;;
16431632 *-hitachi)
1644 os=-hiux
1633 os=hiux
16451634 ;;
16461635 i860-* | *-att | *-ncr | *-altos | *-motorola | *-convergent)
1647 os=-sysv
1636 os=sysv
16481637 ;;
16491638 *-cbm)
1650 os=-amigaos
1639 os=amigaos
16511640 ;;
16521641 *-dg)
1653 os=-dgux
1642 os=dgux
16541643 ;;
16551644 *-dolphin)
1656 os=-sysv3
1645 os=sysv3
16571646 ;;
16581647 m68k-ccur)
1659 os=-rtu
1648 os=rtu
16601649 ;;
16611650 m88k-omron*)
1662 os=-luna
1651 os=luna
16631652 ;;
16641653 *-next)
1665 os=-nextstep
1654 os=nextstep
16661655 ;;
16671656 *-sequent)
1668 os=-ptx
1657 os=ptx
16691658 ;;
16701659 *-crds)
1671 os=-unos
1660 os=unos
16721661 ;;
16731662 *-ns)
1674 os=-genix
1663 os=genix
16751664 ;;
16761665 i370-*)
1677 os=-mvs
1666 os=mvs
16781667 ;;
16791668 *-gould)
1680 os=-sysv
1669 os=sysv
16811670 ;;
16821671 *-highlevel)
1683 os=-bsd
1672 os=bsd
16841673 ;;
16851674 *-encore)
1686 os=-bsd
1675 os=bsd
16871676 ;;
16881677 *-sgi)
1689 os=-irix
1678 os=irix
16901679 ;;
16911680 *-siemens)
1692 os=-sysv4
1681 os=sysv4
16931682 ;;
16941683 *-masscomp)
1695 os=-rtu
1684 os=rtu
16961685 ;;
16971686 f30[01]-fujitsu | f700-fujitsu)
1698 os=-uxpv
1687 os=uxpv
16991688 ;;
17001689 *-rom68k)
1701 os=-coff
1690 os=coff
17021691 ;;
17031692 *-*bug)
1704 os=-coff
1693 os=coff
17051694 ;;
17061695 *-apple)
1707 os=-macos
1696 os=macos
17081697 ;;
17091698 *-atari*)
1710 os=-mint
1699 os=mint
1700 ;;
1701 *-wrs)
1702 os=vxworks
17111703 ;;
17121704 *)
1713 os=-none
1705 os=none
17141706 ;;
17151707 esac
1708
17161709 fi
1710
1711 # Now, validate our (potentially fixed-up) OS.
1712 case $os in
1713 # Sometimes we do "kernel-libc", so those need to count as OSes.
1714 musl* | newlib* | relibc* | uclibc*)
1715 ;;
1716 # Likewise for "kernel-abi"
1717 eabi* | gnueabi*)
1718 ;;
1719 # VxWorks passes extra cpu info in the 4th filed.
1720 simlinux | simwindows | spe)
1721 ;;
1722 # Now accept the basic system types.
1723 # The portable systems comes first.
1724 # Each alternative MUST end in a * to match a version number.
1725 gnu* | android* | bsd* | mach* | minix* | genix* | ultrix* | irix* \
1726 | *vms* | esix* | aix* | cnk* | sunos | sunos[34]* \
1727 | hpux* | unos* | osf* | luna* | dgux* | auroraux* | solaris* \
1728 | sym* | plan9* | psp* | sim* | xray* | os68k* | v88r* \
1729 | hiux* | abug | nacl* | netware* | windows* \
1730 | os9* | macos* | osx* | ios* \
1731 | mpw* | magic* | mmixware* | mon960* | lnews* \
1732 | amigaos* | amigados* | msdos* | newsos* | unicos* | aof* \
1733 | aos* | aros* | cloudabi* | sortix* | twizzler* \
1734 | nindy* | vxsim* | vxworks* | ebmon* | hms* | mvs* \
1735 | clix* | riscos* | uniplus* | iris* | isc* | rtu* | xenix* \
1736 | mirbsd* | netbsd* | dicos* | openedition* | ose* \
1737 | bitrig* | openbsd* | secbsd* | solidbsd* | libertybsd* | os108* \
1738 | ekkobsd* | freebsd* | riscix* | lynxos* | os400* \
1739 | bosx* | nextstep* | cxux* | aout* | elf* | oabi* \
1740 | ptx* | coff* | ecoff* | winnt* | domain* | vsta* \
1741 | udi* | lites* | ieee* | go32* | aux* | hcos* \
1742 | chorusrdb* | cegcc* | glidix* | serenity* \
1743 | cygwin* | msys* | pe* | moss* | proelf* | rtems* \
1744 | midipix* | mingw32* | mingw64* | mint* \
1745 | uxpv* | beos* | mpeix* | udk* | moxiebox* \
1746 | interix* | uwin* | mks* | rhapsody* | darwin* \
1747 | openstep* | oskit* | conix* | pw32* | nonstopux* \
1748 | storm-chaos* | tops10* | tenex* | tops20* | its* \
1749 | os2* | vos* | palmos* | uclinux* | nucleus* | morphos* \
1750 | scout* | superux* | sysv* | rtmk* | tpf* | windiss* \
1751 | powermax* | dnix* | nx6 | nx7 | sei* | dragonfly* \
1752 | skyos* | haiku* | rdos* | toppers* | drops* | es* \
1753 | onefs* | tirtos* | phoenix* | fuchsia* | redox* | bme* \
1754 | midnightbsd* | amdhsa* | unleashed* | emscripten* | wasi* \
1755 | nsk* | powerunix* | genode* | zvmoe* | qnx* | emx* | zephyr* \
1756 | fiwix* )
1757 ;;
1758 # This one is extra strict with allowed versions
1759 sco3.2v2 | sco3.2v[4-9]* | sco5v6*)
1760 # Don't forget version if it is 3.2v4 or newer.
1761 ;;
1762 none)
1763 ;;
1764 *)
1765 echo Invalid configuration \`"$1"\': OS \`"$os"\' not recognized 1>&2
1766 exit 1
1767 ;;
1768 esac
1769
1770 # As a final step for OS-related things, validate the OS-kernel combination
1771 # (given a valid OS), if there is a kernel.
1772 case $kernel-$os in
1773 linux-gnu* | linux-dietlibc* | linux-android* | linux-newlib* \
1774 | linux-musl* | linux-relibc* | linux-uclibc* )
1775 ;;
1776 uclinux-uclibc* )
1777 ;;
1778 -dietlibc* | -newlib* | -musl* | -relibc* | -uclibc* )
1779 # These are just libc implementations, not actual OSes, and thus
1780 # require a kernel.
1781 echo "Invalid configuration \`$1': libc \`$os' needs explicit kernel." 1>&2
1782 exit 1
1783 ;;
1784 kfreebsd*-gnu* | kopensolaris*-gnu*)
1785 ;;
1786 vxworks-simlinux | vxworks-simwindows | vxworks-spe)
1787 ;;
1788 nto-qnx*)
1789 ;;
1790 os2-emx)
1791 ;;
1792 *-eabi* | *-gnueabi*)
1793 ;;
1794 -*)
1795 # Blank kernel with real OS is always fine.
1796 ;;
1797 *-*)
1798 echo "Invalid configuration \`$1': Kernel \`$kernel' not known to work with OS \`$os'." 1>&2
1799 exit 1
1800 ;;
1801 esac
17171802
17181803 # Here we handle the case where we know the os, and the CPU type, but not the
17191804 # manufacturer. We pick the logical manufacturer.
1720 vendor=unknown
1721 case $basic_machine in
1722 *-unknown)
1723 case $os in
1724 -riscix*)
1805 case $vendor in
1806 unknown)
1807 case $cpu-$os in
1808 *-riscix*)
17251809 vendor=acorn
17261810 ;;
1727 -sunos*)
1811 *-sunos*)
17281812 vendor=sun
17291813 ;;
1730 -cnk*|-aix*)
1814 *-cnk* | *-aix*)
17311815 vendor=ibm
17321816 ;;
1733 -beos*)
1817 *-beos*)
17341818 vendor=be
17351819 ;;
1736 -hpux*)
1820 *-hpux*)
17371821 vendor=hp
17381822 ;;
1739 -mpeix*)
1823 *-mpeix*)
17401824 vendor=hp
17411825 ;;
1742 -hiux*)
1826 *-hiux*)
17431827 vendor=hitachi
17441828 ;;
1745 -unos*)
1829 *-unos*)
17461830 vendor=crds
17471831 ;;
1748 -dgux*)
1832 *-dgux*)
17491833 vendor=dg
17501834 ;;
1751 -luna*)
1835 *-luna*)
17521836 vendor=omron
17531837 ;;
1754 -genix*)
1838 *-genix*)
17551839 vendor=ns
17561840 ;;
1757 -mvs* | -opened*)
1841 *-clix*)
1842 vendor=intergraph
1843 ;;
1844 *-mvs* | *-opened*)
17581845 vendor=ibm
17591846 ;;
1760 -os400*)
1847 *-os400*)
17611848 vendor=ibm
17621849 ;;
1763 -ptx*)
1850 s390-* | s390x-*)
1851 vendor=ibm
1852 ;;
1853 *-ptx*)
17641854 vendor=sequent
17651855 ;;
1766 -tpf*)
1856 *-tpf*)
17671857 vendor=ibm
17681858 ;;
1769 -vxsim* | -vxworks* | -windiss*)
1859 *-vxsim* | *-vxworks* | *-windiss*)
17701860 vendor=wrs
17711861 ;;
1772 -aux*)
1862 *-aux*)
17731863 vendor=apple
17741864 ;;
1775 -hms*)
1865 *-hms*)
17761866 vendor=hitachi
17771867 ;;
1778 -mpw* | -macos*)
1868 *-mpw* | *-macos*)
17791869 vendor=apple
17801870 ;;
1781 -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*)
1871 *-*mint | *-mint[0-9]* | *-*MiNT | *-MiNT[0-9]*)
17821872 vendor=atari
17831873 ;;
1784 -vos*)
1874 *-vos*)
17851875 vendor=stratus
17861876 ;;
17871877 esac
1788 basic_machine=`echo "$basic_machine" | sed "s/unknown/$vendor/"`
17891878 ;;
17901879 esac
17911880
1792 echo "$basic_machine$os"
1881 echo "$cpu-$vendor-${kernel:+$kernel-}$os"
17931882 exit
17941883
17951884 # Local variables:
1796 # eval: (add-hook 'write-file-functions 'time-stamp)
1885 # eval: (add-hook 'before-save-hook 'time-stamp)
17971886 # time-stamp-start: "timestamp='"
17981887 # time-stamp-format: "%:y-%02m-%02d"
17991888 # time-stamp-end: "'"
22
33 scriptversion=2018-03-07.03; # UTC
44
5 # Copyright (C) 1999-2018 Free Software Foundation, Inc.
5 # Copyright (C) 1999-2021 Free Software Foundation, Inc.
66
77 # This program is free software; you can redistribute it and/or modify
88 # it under the terms of the GNU General Public License as published by
00 #!/bin/sh
11 # install - install a program, script, or datafile
22
3 scriptversion=2018-03-11.20; # UTC
3 scriptversion=2020-11-14.01; # UTC
44
55 # This originates from X11R5 (mit/util/scripts/install.sh), which was
66 # later released in X11R6 (xc/config/util/install.sh) with the
6868 # Desired mode of installed file.
6969 mode=0755
7070
71 # Create dirs (including intermediate dirs) using mode 755.
72 # This is like GNU 'install' as of coreutils 8.32 (2020).
73 mkdir_umask=22
74
75 backupsuffix=
7176 chgrpcmd=
7277 chmodcmd=$chmodprog
7378 chowncmd=
98103 --version display version info and exit.
99104
100105 -c (ignored)
101 -C install only if different (preserve the last data modification time)
106 -C install only if different (preserve data modification time)
102107 -d create directories instead of installing files.
103108 -g GROUP $chgrpprog installed files to GROUP.
104109 -m MODE $chmodprog installed files to MODE.
105110 -o USER $chownprog installed files to USER.
111 -p pass -p to $cpprog.
106112 -s $stripprog installed files.
113 -S SUFFIX attempt to back up existing files, with suffix SUFFIX.
107114 -t DIRECTORY install into DIRECTORY.
108115 -T report an error if DSTFILE is a directory.
109116
110117 Environment variables override the default commands:
111118 CHGRPPROG CHMODPROG CHOWNPROG CMPPROG CPPROG MKDIRPROG MVPROG
112119 RMPROG STRIPPROG
120
121 By default, rm is invoked with -f; when overridden with RMPROG,
122 it's up to you to specify -f if you want it.
123
124 If -S is not specified, no backups are attempted.
125
126 Email bug reports to bug-automake@gnu.org.
127 Automake home page: https://www.gnu.org/software/automake/
113128 "
114129
115130 while test $# -ne 0; do
136151 -o) chowncmd="$chownprog $2"
137152 shift;;
138153
154 -p) cpprog="$cpprog -p";;
155
139156 -s) stripcmd=$stripprog;;
157
158 -S) backupsuffix="$2"
159 shift;;
140160
141161 -t)
142162 is_target_a_directory=always
254274 dstdir=$dst
255275 test -d "$dstdir"
256276 dstdir_status=$?
277 # Don't chown directories that already exist.
278 if test $dstdir_status = 0; then
279 chowncmd=""
280 fi
257281 else
258282
259283 # Waiting for this to be detected by the "$cpprog $src $dsttmp" command
300324 if test $dstdir_status != 0; then
301325 case $posix_mkdir in
302326 '')
303 # Create intermediate dirs using mode 755 as modified by the umask.
304 # This is like FreeBSD 'install' as of 1997-10-28.
305 umask=`umask`
306 case $stripcmd.$umask in
307 # Optimize common cases.
308 *[2367][2367]) mkdir_umask=$umask;;
309 .*0[02][02] | .[02][02] | .[02]) mkdir_umask=22;;
310
311 *[0-7])
312 mkdir_umask=`expr $umask + 22 \
313 - $umask % 100 % 40 + $umask % 20 \
314 - $umask % 10 % 4 + $umask % 2
315 `;;
316 *) mkdir_umask=$umask,go-w;;
317 esac
318
319327 # With -d, create the new directory with the user-specified mode.
320328 # Otherwise, rely on $mkdir_umask.
321329 if test -n "$dir_arg"; then
325333 fi
326334
327335 posix_mkdir=false
328 case $umask in
329 *[123567][0-7][0-7])
330 # POSIX mkdir -p sets u+wx bits regardless of umask, which
331 # is incompatible with FreeBSD 'install' when (umask & 300) != 0.
332 ;;
333 *)
334 # Note that $RANDOM variable is not portable (e.g. dash); Use it
335 # here however when possible just to lower collision chance.
336 tmpdir=${TMPDIR-/tmp}/ins$RANDOM-$$
337
338 trap 'ret=$?; rmdir "$tmpdir/a/b" "$tmpdir/a" "$tmpdir" 2>/dev/null; exit $ret' 0
339
340 # Because "mkdir -p" follows existing symlinks and we likely work
341 # directly in world-writeable /tmp, make sure that the '$tmpdir'
342 # directory is successfully created first before we actually test
343 # 'mkdir -p' feature.
344 if (umask $mkdir_umask &&
345 $mkdirprog $mkdir_mode "$tmpdir" &&
346 exec $mkdirprog $mkdir_mode -p -- "$tmpdir/a/b") >/dev/null 2>&1
347 then
348 if test -z "$dir_arg" || {
349 # Check for POSIX incompatibilities with -m.
350 # HP-UX 11.23 and IRIX 6.5 mkdir -m -p sets group- or
351 # other-writable bit of parent directory when it shouldn't.
352 # FreeBSD 6.1 mkdir -m -p sets mode of existing directory.
353 test_tmpdir="$tmpdir/a"
354 ls_ld_tmpdir=`ls -ld "$test_tmpdir"`
355 case $ls_ld_tmpdir in
356 d????-?r-*) different_mode=700;;
357 d????-?--*) different_mode=755;;
358 *) false;;
359 esac &&
360 $mkdirprog -m$different_mode -p -- "$test_tmpdir" && {
361 ls_ld_tmpdir_1=`ls -ld "$test_tmpdir"`
362 test "$ls_ld_tmpdir" = "$ls_ld_tmpdir_1"
363 }
364 }
365 then posix_mkdir=:
366 fi
367 rmdir "$tmpdir/a/b" "$tmpdir/a" "$tmpdir"
368 else
369 # Remove any dirs left behind by ancient mkdir implementations.
370 rmdir ./$mkdir_mode ./-p ./-- "$tmpdir" 2>/dev/null
371 fi
372 trap '' 0;;
373 esac;;
336 # The $RANDOM variable is not portable (e.g., dash). Use it
337 # here however when possible just to lower collision chance.
338 tmpdir=${TMPDIR-/tmp}/ins$RANDOM-$$
339
340 trap '
341 ret=$?
342 rmdir "$tmpdir/a/b" "$tmpdir/a" "$tmpdir" 2>/dev/null
343 exit $ret
344 ' 0
345
346 # Because "mkdir -p" follows existing symlinks and we likely work
347 # directly in world-writeable /tmp, make sure that the '$tmpdir'
348 # directory is successfully created first before we actually test
349 # 'mkdir -p'.
350 if (umask $mkdir_umask &&
351 $mkdirprog $mkdir_mode "$tmpdir" &&
352 exec $mkdirprog $mkdir_mode -p -- "$tmpdir/a/b") >/dev/null 2>&1
353 then
354 if test -z "$dir_arg" || {
355 # Check for POSIX incompatibilities with -m.
356 # HP-UX 11.23 and IRIX 6.5 mkdir -m -p sets group- or
357 # other-writable bit of parent directory when it shouldn't.
358 # FreeBSD 6.1 mkdir -m -p sets mode of existing directory.
359 test_tmpdir="$tmpdir/a"
360 ls_ld_tmpdir=`ls -ld "$test_tmpdir"`
361 case $ls_ld_tmpdir in
362 d????-?r-*) different_mode=700;;
363 d????-?--*) different_mode=755;;
364 *) false;;
365 esac &&
366 $mkdirprog -m$different_mode -p -- "$test_tmpdir" && {
367 ls_ld_tmpdir_1=`ls -ld "$test_tmpdir"`
368 test "$ls_ld_tmpdir" = "$ls_ld_tmpdir_1"
369 }
370 }
371 then posix_mkdir=:
372 fi
373 rmdir "$tmpdir/a/b" "$tmpdir/a" "$tmpdir"
374 else
375 # Remove any dirs left behind by ancient mkdir implementations.
376 rmdir ./$mkdir_mode ./-p ./-- "$tmpdir" 2>/dev/null
377 fi
378 trap '' 0;;
374379 esac
375380
376381 if
381386 then :
382387 else
383388
384 # The umask is ridiculous, or mkdir does not conform to POSIX,
389 # mkdir does not conform to POSIX,
385390 # or it failed possibly due to a race condition. Create the
386391 # directory the slow way, step by step, checking for races as we go.
387392
410415 prefixes=
411416 else
412417 if $posix_mkdir; then
413 (umask=$mkdir_umask &&
418 (umask $mkdir_umask &&
414419 $doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir") && break
415420 # Don't fail if two instances are running concurrently.
416421 test -d "$prefix" || exit 1
450455 trap 'ret=$?; rm -f "$dsttmp" "$rmtmp" && exit $ret' 0
451456
452457 # Copy the file name to the temp name.
453 (umask $cp_umask && $doit_exec $cpprog "$src" "$dsttmp") &&
458 (umask $cp_umask &&
459 { test -z "$stripcmd" || {
460 # Create $dsttmp read-write so that cp doesn't create it read-only,
461 # which would cause strip to fail.
462 if test -z "$doit"; then
463 : >"$dsttmp" # No need to fork-exec 'touch'.
464 else
465 $doit touch "$dsttmp"
466 fi
467 }
468 } &&
469 $doit_exec $cpprog "$src" "$dsttmp") &&
454470
455471 # and set any options; do chmod last to preserve setuid bits.
456472 #
476492 then
477493 rm -f "$dsttmp"
478494 else
495 # If $backupsuffix is set, and the file being installed
496 # already exists, attempt a backup. Don't worry if it fails,
497 # e.g., if mv doesn't support -f.
498 if test -n "$backupsuffix" && test -f "$dst"; then
499 $doit $mvcmd -f "$dst" "$dst$backupsuffix" 2>/dev/null
500 fi
501
479502 # Rename the file to the real destination.
480503 $doit $mvcmd -f "$dsttmp" "$dst" 2>/dev/null ||
481504
490513 # file should still install successfully.
491514 {
492515 test ! -f "$dst" ||
493 $doit $rmcmd -f "$dst" 2>/dev/null ||
516 $doit $rmcmd "$dst" 2>/dev/null ||
494517 { $doit $mvcmd -f "$dst" "$rmtmp" 2>/dev/null &&
495 { $doit $rmcmd -f "$rmtmp" 2>/dev/null; :; }
518 { $doit $rmcmd "$rmtmp" 2>/dev/null; :; }
496519 } ||
497520 { echo "$0: cannot unlink or rename $dst" >&2
498521 (exit 1); exit 1
0 #! /bin/sh
0 #! /usr/bin/env sh
11 ## DO NOT EDIT - This file generated from ./build-aux/ltmain.in
2 ## by inline-source v2014-01-03.01
2 ## by inline-source v2019-02-19.15
33
44 # libtool (GNU libtool) 2.4.6
55 # Provide generalized library-building support services.
66 # Written by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
77
8 # Copyright (C) 1996-2015 Free Software Foundation, Inc.
8 # Copyright (C) 1996-2019, 2021-2022 Free Software Foundation, Inc.
99 # This is free software; see the source for copying conditions. There is NO
1010 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
1111
3030
3131 PROGRAM=libtool
3232 PACKAGE=libtool
33 VERSION="2.4.6 Debian-2.4.6-12"
33 VERSION="2.4.6 Debian-2.4.7-1"
3434 package_revision=2.4.6
3535
3636
6363 # libraries, which are installed to $pkgauxdir.
6464
6565 # Set a version string for this script.
66 scriptversion=2015-01-20.17; # UTC
66 scriptversion=2019-02-19.15; # UTC
6767
6868 # General shell script boiler plate, and helper functions.
6969 # Written by Gary V. Vaughan, 2004
7070
71 # Copyright (C) 2004-2015 Free Software Foundation, Inc.
72 # This is free software; see the source for copying conditions. There is NO
73 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
74
75 # This program is free software; you can redistribute it and/or modify
76 # it under the terms of the GNU General Public License as published by
77 # the Free Software Foundation; either version 3 of the License, or
78 # (at your option) any later version.
79
80 # As a special exception to the GNU General Public License, if you distribute
81 # this file as part of a program or library that is built using GNU Libtool,
82 # you may include this file under the same distribution terms that you use
83 # for the rest of that program.
84
85 # This program is distributed in the hope that it will be useful,
86 # but WITHOUT ANY WARRANTY; without even the implied warranty of
87 # MERCHANTABILITY or FITNES FOR A PARTICULAR PURPOSE. See the GNU
88 # General Public License for more details.
89
90 # You should have received a copy of the GNU General Public License
91 # along with this program. If not, see <http://www.gnu.org/licenses/>.
92
93 # Please report bugs or propose patches to gary@gnu.org.
71 # This is free software. There is NO warranty; not even for
72 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
73 #
74 # Copyright (C) 2004-2019, 2021 Bootstrap Authors
75 #
76 # This file is dual licensed under the terms of the MIT license
77 # <https://opensource.org/license/MIT>, and GPL version 2 or later
78 # <http://www.gnu.org/licenses/gpl-2.0.html>. You must apply one of
79 # these licenses when using or redistributing this software or any of
80 # the files within it. See the URLs above, or the file `LICENSE`
81 # included in the Bootstrap distribution for the full license texts.
82
83 # Please report bugs or propose patches to:
84 # <https://github.com/gnulib-modules/bootstrap/issues>
9485
9586
9687 ## ------ ##
138129 _G_safe_locale=\"$_G_var=C; \$_G_safe_locale\"
139130 fi"
140131 done
141
142 # CDPATH.
143 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
132 # These NLS vars are set unconditionally (bootstrap issue #24). Unset those
133 # in case the environment reset is needed later and the $save_* variant is not
134 # defined (see the code above).
135 LC_ALL=C
136 LANGUAGE=C
137 export LANGUAGE LC_ALL
144138
145139 # Make sure IFS has a sensible default
146140 sp=' '
157151 }
158152 fi
159153
154
155 # func_unset VAR
156 # --------------
157 # Portably unset VAR.
158 # In some shells, an 'unset VAR' statement leaves a non-zero return
159 # status if VAR is already unset, which might be problematic if the
160 # statement is used at the end of a function (thus poisoning its return
161 # value) or when 'set -e' is active (causing even a spurious abort of
162 # the script in this case).
163 func_unset ()
164 {
165 { eval $1=; (eval unset $1) >/dev/null 2>&1 && eval unset $1 || : ; }
166 }
167
168
169 # Make sure CDPATH doesn't cause `cd` commands to output the target dir.
170 func_unset CDPATH
171
172 # Make sure ${,E,F}GREP behave sanely.
173 func_unset GREP_OPTIONS
160174
161175
162176 ## ------------------------- ##
258272 rm -f conftest.in conftest.tmp conftest.nl conftest.out
259273 }
260274
261 func_path_progs "sed gsed" func_check_prog_sed $PATH:/usr/xpg4/bin
275 func_path_progs "sed gsed" func_check_prog_sed "$PATH:/usr/xpg4/bin"
262276 rm -f conftest.sed
263277 SED=$func_path_progs_result
264278 }
294308 rm -f conftest.in conftest.tmp conftest.nl conftest.out
295309 }
296310
297 func_path_progs "grep ggrep" func_check_prog_grep $PATH:/usr/xpg4/bin
311 func_path_progs "grep ggrep" func_check_prog_grep "$PATH:/usr/xpg4/bin"
298312 GREP=$func_path_progs_result
299313 }
300314
358372 s/^$_G_bs2$_G_dollar/$_G_bs&/
359373 s/\\([^$_G_bs]\\)$_G_bs2$_G_dollar/\\1$_G_bs2$_G_bs$_G_dollar/g
360374 s/\n//g"
375
376 # require_check_ifs_backslash
377 # ---------------------------
378 # Check if we can use backslash as IFS='\' separator, and set
379 # $check_ifs_backshlash_broken to ':' or 'false'.
380 require_check_ifs_backslash=func_require_check_ifs_backslash
381 func_require_check_ifs_backslash ()
382 {
383 _G_save_IFS=$IFS
384 IFS='\'
385 _G_check_ifs_backshlash='a\\b'
386 for _G_i in $_G_check_ifs_backshlash
387 do
388 case $_G_i in
389 a)
390 check_ifs_backshlash_broken=false
391 ;;
392 '')
393 break
394 ;;
395 *)
396 check_ifs_backshlash_broken=:
397 break
398 ;;
399 esac
400 done
401 IFS=$_G_save_IFS
402 require_check_ifs_backslash=:
403 }
361404
362405
363406 ## ----------------- ##
579622 {
580623 $debug_cmd
581624
582 func_quote_for_eval "$2"
583 eval "$1+=\\ \$func_quote_for_eval_result"
625 func_quote_arg pretty "$2"
626 eval "$1+=\\ \$func_quote_arg_result"
584627 }'
585628 else
586629 func_append_quoted ()
587630 {
588631 $debug_cmd
589632
590 func_quote_for_eval "$2"
591 eval "$1=\$$1\\ \$func_quote_for_eval_result"
633 func_quote_arg pretty "$2"
634 eval "$1=\$$1\\ \$func_quote_arg_result"
592635 }
593636 fi
594637
10901133 }
10911134
10921135
1093 # func_quote_for_eval ARG...
1094 # --------------------------
1095 # Aesthetically quote ARGs to be evaled later.
1096 # This function returns two values:
1097 # i) func_quote_for_eval_result
1098 # double-quoted, suitable for a subsequent eval
1099 # ii) func_quote_for_eval_unquoted_result
1100 # has all characters that are still active within double
1101 # quotes backslashified.
1102 func_quote_for_eval ()
1136 # func_quote_portable EVAL ARG
1137 # ----------------------------
1138 # Internal function to portably implement func_quote_arg. Note that we still
1139 # keep attention to performance here so we as much as possible try to avoid
1140 # calling sed binary (so far O(N) complexity as long as func_append is O(1)).
1141 func_quote_portable ()
11031142 {
11041143 $debug_cmd
11051144
1106 func_quote_for_eval_unquoted_result=
1107 func_quote_for_eval_result=
1108 while test 0 -lt $#; do
1145 $require_check_ifs_backslash
1146
1147 func_quote_portable_result=$2
1148
1149 # one-time-loop (easy break)
1150 while true
1151 do
1152 if $1; then
1153 func_quote_portable_result=`$ECHO "$2" | $SED \
1154 -e "$sed_double_quote_subst" -e "$sed_double_backslash"`
1155 break
1156 fi
1157
1158 # Quote for eval.
1159 case $func_quote_portable_result in
1160 *[\\\`\"\$]*)
1161 # Fallback to sed for $func_check_bs_ifs_broken=:, or when the string
1162 # contains the shell wildcard characters.
1163 case $check_ifs_backshlash_broken$func_quote_portable_result in
1164 :*|*[\[\*\?]*)
1165 func_quote_portable_result=`$ECHO "$func_quote_portable_result" \
1166 | $SED "$sed_quote_subst"`
1167 break
1168 ;;
1169 esac
1170
1171 func_quote_portable_old_IFS=$IFS
1172 for _G_char in '\' '`' '"' '$'
1173 do
1174 # STATE($1) PREV($2) SEPARATOR($3)
1175 set start "" ""
1176 func_quote_portable_result=dummy"$_G_char$func_quote_portable_result$_G_char"dummy
1177 IFS=$_G_char
1178 for _G_part in $func_quote_portable_result
1179 do
1180 case $1 in
1181 quote)
1182 func_append func_quote_portable_result "$3$2"
1183 set quote "$_G_part" "\\$_G_char"
1184 ;;
1185 start)
1186 set first "" ""
1187 func_quote_portable_result=
1188 ;;
1189 first)
1190 set quote "$_G_part" ""
1191 ;;
1192 esac
1193 done
1194 done
1195 IFS=$func_quote_portable_old_IFS
1196 ;;
1197 *) ;;
1198 esac
1199 break
1200 done
1201
1202 func_quote_portable_unquoted_result=$func_quote_portable_result
1203 case $func_quote_portable_result in
1204 # double-quote args containing shell metacharacters to delay
1205 # word splitting, command substitution and variable expansion
1206 # for a subsequent eval.
1207 # many bourne shells cannot handle close brackets correctly
1208 # in scan sets, so we specify it separately.
1209 *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
1210 func_quote_portable_result=\"$func_quote_portable_result\"
1211 ;;
1212 esac
1213 }
1214
1215
1216 # func_quotefast_eval ARG
1217 # -----------------------
1218 # Quote one ARG (internal). This is equivalent to 'func_quote_arg eval ARG',
1219 # but optimized for speed. Result is stored in $func_quotefast_eval.
1220 if test xyes = `(x=; printf -v x %q yes; echo x"$x") 2>/dev/null`; then
1221 printf -v _GL_test_printf_tilde %q '~'
1222 if test '\~' = "$_GL_test_printf_tilde"; then
1223 func_quotefast_eval ()
1224 {
1225 printf -v func_quotefast_eval_result %q "$1"
1226 }
1227 else
1228 # Broken older Bash implementations. Make those faster too if possible.
1229 func_quotefast_eval ()
1230 {
11091231 case $1 in
1110 *[\\\`\"\$]*)
1111 _G_unquoted_arg=`printf '%s\n' "$1" |$SED "$sed_quote_subst"` ;;
1112 *)
1113 _G_unquoted_arg=$1 ;;
1114 esac
1115 if test -n "$func_quote_for_eval_unquoted_result"; then
1116 func_append func_quote_for_eval_unquoted_result " $_G_unquoted_arg"
1117 else
1118 func_append func_quote_for_eval_unquoted_result "$_G_unquoted_arg"
1119 fi
1120
1121 case $_G_unquoted_arg in
1122 # Double-quote args containing shell metacharacters to delay
1123 # word splitting, command substitution and variable expansion
1124 # for a subsequent eval.
1125 # Many Bourne shells cannot handle close brackets correctly
1126 # in scan sets, so we specify it separately.
1127 *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
1128 _G_quoted_arg=\"$_G_unquoted_arg\"
1232 '~'*)
1233 func_quote_portable false "$1"
1234 func_quotefast_eval_result=$func_quote_portable_result
11291235 ;;
11301236 *)
1131 _G_quoted_arg=$_G_unquoted_arg
1132 ;;
1237 printf -v func_quotefast_eval_result %q "$1"
1238 ;;
11331239 esac
1134
1135 if test -n "$func_quote_for_eval_result"; then
1136 func_append func_quote_for_eval_result " $_G_quoted_arg"
1240 }
1241 fi
1242 else
1243 func_quotefast_eval ()
1244 {
1245 func_quote_portable false "$1"
1246 func_quotefast_eval_result=$func_quote_portable_result
1247 }
1248 fi
1249
1250
1251 # func_quote_arg MODEs ARG
1252 # ------------------------
1253 # Quote one ARG to be evaled later. MODEs argument may contain zero or more
1254 # specifiers listed below separated by ',' character. This function returns two
1255 # values:
1256 # i) func_quote_arg_result
1257 # double-quoted (when needed), suitable for a subsequent eval
1258 # ii) func_quote_arg_unquoted_result
1259 # has all characters that are still active within double
1260 # quotes backslashified. Available only if 'unquoted' is specified.
1261 #
1262 # Available modes:
1263 # ----------------
1264 # 'eval' (default)
1265 # - escape shell special characters
1266 # 'expand'
1267 # - the same as 'eval'; but do not quote variable references
1268 # 'pretty'
1269 # - request aesthetic output, i.e. '"a b"' instead of 'a\ b'. This might
1270 # be used later in func_quote to get output like: 'echo "a b"' instead
1271 # of 'echo a\ b'. This is slower than default on some shells.
1272 # 'unquoted'
1273 # - produce also $func_quote_arg_unquoted_result which does not contain
1274 # wrapping double-quotes.
1275 #
1276 # Examples for 'func_quote_arg pretty,unquoted string':
1277 #
1278 # string | *_result | *_unquoted_result
1279 # ------------+-----------------------+-------------------
1280 # " | \" | \"
1281 # a b | "a b" | a b
1282 # "a b" | "\"a b\"" | \"a b\"
1283 # * | "*" | *
1284 # z="${x-$y}" | "z=\"\${x-\$y}\"" | z=\"\${x-\$y}\"
1285 #
1286 # Examples for 'func_quote_arg pretty,unquoted,expand string':
1287 #
1288 # string | *_result | *_unquoted_result
1289 # --------------+---------------------+--------------------
1290 # z="${x-$y}" | "z=\"${x-$y}\"" | z=\"${x-$y}\"
1291 func_quote_arg ()
1292 {
1293 _G_quote_expand=false
1294 case ,$1, in
1295 *,expand,*)
1296 _G_quote_expand=:
1297 ;;
1298 esac
1299
1300 case ,$1, in
1301 *,pretty,*|*,expand,*|*,unquoted,*)
1302 func_quote_portable $_G_quote_expand "$2"
1303 func_quote_arg_result=$func_quote_portable_result
1304 func_quote_arg_unquoted_result=$func_quote_portable_unquoted_result
1305 ;;
1306 *)
1307 # Faster quote-for-eval for some shells.
1308 func_quotefast_eval "$2"
1309 func_quote_arg_result=$func_quotefast_eval_result
1310 ;;
1311 esac
1312 }
1313
1314
1315 # func_quote MODEs ARGs...
1316 # ------------------------
1317 # Quote all ARGs to be evaled later and join them into single command. See
1318 # func_quote_arg's description for more info.
1319 func_quote ()
1320 {
1321 $debug_cmd
1322 _G_func_quote_mode=$1 ; shift
1323 func_quote_result=
1324 while test 0 -lt $#; do
1325 func_quote_arg "$_G_func_quote_mode" "$1"
1326 if test -n "$func_quote_result"; then
1327 func_append func_quote_result " $func_quote_arg_result"
11371328 else
1138 func_append func_quote_for_eval_result "$_G_quoted_arg"
1329 func_append func_quote_result "$func_quote_arg_result"
11391330 fi
11401331 shift
11411332 done
1142 }
1143
1144
1145 # func_quote_for_expand ARG
1146 # -------------------------
1147 # Aesthetically quote ARG to be evaled later; same as above,
1148 # but do not quote variable references.
1149 func_quote_for_expand ()
1150 {
1151 $debug_cmd
1152
1153 case $1 in
1154 *[\\\`\"]*)
1155 _G_arg=`$ECHO "$1" | $SED \
1156 -e "$sed_double_quote_subst" -e "$sed_double_backslash"` ;;
1157 *)
1158 _G_arg=$1 ;;
1159 esac
1160
1161 case $_G_arg in
1162 # Double-quote args containing shell metacharacters to delay
1163 # word splitting and command substitution for a subsequent eval.
1164 # Many Bourne shells cannot handle close brackets correctly
1165 # in scan sets, so we specify it separately.
1166 *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
1167 _G_arg=\"$_G_arg\"
1168 ;;
1169 esac
1170
1171 func_quote_for_expand_result=$_G_arg
11721333 }
11731334
11741335
12141375 _G_cmd=$1
12151376 _G_fail_exp=${2-':'}
12161377
1217 func_quote_for_expand "$_G_cmd"
1218 eval "func_notquiet $func_quote_for_expand_result"
1378 func_quote_arg pretty,expand "$_G_cmd"
1379 eval "func_notquiet $func_quote_arg_result"
12191380
12201381 $opt_dry_run || {
12211382 eval "$_G_cmd"
12401401 _G_fail_exp=${2-':'}
12411402
12421403 $opt_quiet || {
1243 func_quote_for_expand "$_G_cmd"
1244 eval "func_echo $func_quote_for_expand_result"
1404 func_quote_arg expand,pretty "$_G_cmd"
1405 eval "func_echo $func_quote_arg_result"
12451406 }
12461407
12471408 $opt_dry_run || {
13681529 # End:
13691530 #! /bin/sh
13701531
1371 # Set a version string for this script.
1372 scriptversion=2015-10-07.11; # UTC
1373
13741532 # A portable, pluggable option parser for Bourne shell.
13751533 # Written by Gary V. Vaughan, 2010
13761534
1377 # Copyright (C) 2010-2015 Free Software Foundation, Inc.
1378 # This is free software; see the source for copying conditions. There is NO
1379 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
1380
1381 # This program is free software: you can redistribute it and/or modify
1382 # it under the terms of the GNU General Public License as published by
1383 # the Free Software Foundation, either version 3 of the License, or
1384 # (at your option) any later version.
1385
1386 # This program is distributed in the hope that it will be useful,
1387 # but WITHOUT ANY WARRANTY; without even the implied warranty of
1388 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1389 # GNU General Public License for more details.
1390
1391 # You should have received a copy of the GNU General Public License
1392 # along with this program. If not, see <http://www.gnu.org/licenses/>.
1393
1394 # Please report bugs or propose patches to gary@gnu.org.
1535 # This is free software. There is NO warranty; not even for
1536 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
1537 #
1538 # Copyright (C) 2010-2019, 2021 Bootstrap Authors
1539 #
1540 # This file is dual licensed under the terms of the MIT license
1541 # <https://opensource.org/license/MIT>, and GPL version 2 or later
1542 # <http://www.gnu.org/licenses/gpl-2.0.html>. You must apply one of
1543 # these licenses when using or redistributing this software or any of
1544 # the files within it. See the URLs above, or the file `LICENSE`
1545 # included in the Bootstrap distribution for the full license texts.
1546
1547 # Please report bugs or propose patches to:
1548 # <https://github.com/gnulib-modules/bootstrap/issues>
1549
1550 # Set a version string for this script.
1551 scriptversion=2019-02-19.15; # UTC
13951552
13961553
13971554 ## ------ ##
14141571 #
14151572 # In order for the '--version' option to work, you will need to have a
14161573 # suitably formatted comment like the one at the top of this file
1417 # starting with '# Written by ' and ending with '# warranty; '.
1574 # starting with '# Written by ' and ending with '# Copyright'.
14181575 #
14191576 # For '-h' and '--help' to work, you will also need a one line
14201577 # description of your script's purpose in a comment directly above the
14261583 # to display verbose messages only when your user has specified
14271584 # '--verbose'.
14281585 #
1429 # After sourcing this file, you can plug processing for additional
1586 # After sourcing this file, you can plug in processing for additional
14301587 # options by amending the variables from the 'Configuration' section
14311588 # below, and following the instructions in the 'Option parsing'
14321589 # section further down.
14751632 ## ------------------------- ##
14761633
14771634 # This section contains functions for adding, removing, and running hooks
1478 # to the main code. A hook is just a named list of of function, that can
1479 # be run in order later on.
1635 # in the main code. A hook is just a list of function names that can be
1636 # run in order later on.
14801637
14811638 # func_hookable FUNC_NAME
14821639 # -----------------------
15091666
15101667 # func_remove_hook FUNC_NAME HOOK_FUNC
15111668 # ------------------------------------
1512 # Remove HOOK_FUNC from the list of functions called by FUNC_NAME.
1669 # Remove HOOK_FUNC from the list of hook functions to be called by
1670 # FUNC_NAME.
15131671 func_remove_hook ()
15141672 {
15151673 $debug_cmd
15161674
15171675 eval ${1}_hooks='`$ECHO "\$'$1'_hooks" |$SED "s| '$2'||"`'
1676 }
1677
1678
1679 # func_propagate_result FUNC_NAME_A FUNC_NAME_B
1680 # ---------------------------------------------
1681 # If the *_result variable of FUNC_NAME_A _is set_, assign its value to
1682 # *_result variable of FUNC_NAME_B.
1683 func_propagate_result ()
1684 {
1685 $debug_cmd
1686
1687 func_propagate_result_result=:
1688 if eval "test \"\${${1}_result+set}\" = set"
1689 then
1690 eval "${2}_result=\$${1}_result"
1691 else
1692 func_propagate_result_result=false
1693 fi
15181694 }
15191695
15201696
15211697 # func_run_hooks FUNC_NAME [ARG]...
15221698 # ---------------------------------
15231699 # Run all hook functions registered to FUNC_NAME.
1524 # It is assumed that the list of hook functions contains nothing more
1700 # It's assumed that the list of hook functions contains nothing more
15251701 # than a whitespace-delimited list of legal shell function names, and
15261702 # no effort is wasted trying to catch shell meta-characters or preserve
15271703 # whitespace.
15331709
15341710 case " $hookable_fns " in
15351711 *" $1 "*) ;;
1536 *) func_fatal_error "'$1' does not support hook funcions.n" ;;
1712 *) func_fatal_error "'$1' does not support hook functions." ;;
15371713 esac
15381714
15391715 eval _G_hook_fns=\$$1_hooks; shift
15401716
15411717 for _G_hook in $_G_hook_fns; do
1542 if eval $_G_hook '"$@"'; then
1543 # store returned options list back into positional
1544 # parameters for next 'cmd' execution.
1545 eval _G_hook_result=\$${_G_hook}_result
1546 eval set dummy "$_G_hook_result"; shift
1547 _G_rc_run_hooks=:
1718 func_unset "${_G_hook}_result"
1719 eval $_G_hook '${1+"$@"}'
1720 func_propagate_result $_G_hook func_run_hooks
1721 if $func_propagate_result_result; then
1722 eval set dummy "$func_run_hooks_result"; shift
15481723 fi
15491724 done
1550
1551 $_G_rc_run_hooks && func_run_hooks_result=$_G_hook_result
15521725 }
15531726
15541727
15581731 ## --------------- ##
15591732
15601733 # In order to add your own option parsing hooks, you must accept the
1561 # full positional parameter list in your hook function, you may remove/edit
1562 # any options that you action, and then pass back the remaining unprocessed
1563 # options in '<hooked_function_name>_result', escaped suitably for
1564 # 'eval'. In this case you also must return $EXIT_SUCCESS to let the
1565 # hook's caller know that it should pay attention to
1566 # '<hooked_function_name>_result'. Returning $EXIT_FAILURE signalizes that
1567 # arguments are left untouched by the hook and therefore caller will ignore the
1568 # result variable.
1734 # full positional parameter list from your hook function. You may remove
1735 # or edit any options that you action, and then pass back the remaining
1736 # unprocessed options in '<hooked_function_name>_result', escaped
1737 # suitably for 'eval'.
1738 #
1739 # The '<hooked_function_name>_result' variable is automatically unset
1740 # before your hook gets called; for best performance, only set the
1741 # *_result variable when necessary (i.e. don't call the 'func_quote'
1742 # function unnecessarily because it can be an expensive operation on some
1743 # machines).
15691744 #
15701745 # Like this:
15711746 #
15771752 # usage_message=$usage_message'
15781753 # -s, --silent don'\''t print informational messages
15791754 # '
1580 # # No change in '$@' (ignored completely by this hook). There is
1581 # # no need to do the equivalent (but slower) action:
1582 # # func_quote_for_eval ${1+"$@"}
1583 # # my_options_prep_result=$func_quote_for_eval_result
1584 # false
1755 # # No change in '$@' (ignored completely by this hook). Leave
1756 # # my_options_prep_result variable intact.
15851757 # }
15861758 # func_add_hook func_options_prep my_options_prep
15871759 #
15921764 #
15931765 # args_changed=false
15941766 #
1595 # # Note that for efficiency, we parse as many options as we can
1767 # # Note that, for efficiency, we parse as many options as we can
15961768 # # recognise in a loop before passing the remainder back to the
15971769 # # caller on the first unrecognised argument we encounter.
15981770 # while test $# -gt 0; do
16091781 # args_changed=:
16101782 # ;;
16111783 # *) # Make sure the first unrecognised option "$_G_opt"
1612 # # is added back to "$@", we could need that later
1613 # # if $args_changed is true.
1784 # # is added back to "$@" in case we need it later,
1785 # # if $args_changed was set to 'true'.
16141786 # set dummy "$_G_opt" ${1+"$@"}; shift; break ;;
16151787 # esac
16161788 # done
16171789 #
1790 # # Only call 'func_quote' here if we processed at least one argument.
16181791 # if $args_changed; then
1619 # func_quote_for_eval ${1+"$@"}
1620 # my_silent_option_result=$func_quote_for_eval_result
1792 # func_quote eval ${1+"$@"}
1793 # my_silent_option_result=$func_quote_result
16211794 # fi
1622 #
1623 # $args_changed
16241795 # }
16251796 # func_add_hook func_parse_options my_silent_option
16261797 #
16311802 #
16321803 # $opt_silent && $opt_verbose && func_fatal_help "\
16331804 # '--silent' and '--verbose' options are mutually exclusive."
1634 #
1635 # false
16361805 # }
16371806 # func_add_hook func_validate_options my_option_validation
16381807 #
16481817 {
16491818 $debug_cmd
16501819
1651 _G_func_options_finish_exit=false
1652 if func_run_hooks func_options ${1+"$@"}; then
1653 func_options_finish_result=$func_run_hooks_result
1654 _G_func_options_finish_exit=:
1655 fi
1656
1657 $_G_func_options_finish_exit
1820 func_run_hooks func_options ${1+"$@"}
1821 func_propagate_result func_run_hooks func_options_finish
16581822 }
16591823
16601824
16671831 {
16681832 $debug_cmd
16691833
1670 _G_rc_options=false
1834 _G_options_quoted=false
16711835
16721836 for my_func in options_prep parse_options validate_options options_finish
16731837 do
1674 if eval func_$my_func '${1+"$@"}'; then
1675 eval _G_res_var='$'"func_${my_func}_result"
1676 eval set dummy "$_G_res_var" ; shift
1677 _G_rc_options=:
1838 func_unset func_${my_func}_result
1839 func_unset func_run_hooks_result
1840 eval func_$my_func '${1+"$@"}'
1841 func_propagate_result func_$my_func func_options
1842 if $func_propagate_result_result; then
1843 eval set dummy "$func_options_result"; shift
1844 _G_options_quoted=:
16781845 fi
16791846 done
16801847
1681 # Save modified positional parameters for caller. As a top-level
1682 # options-parser function we always need to set the 'func_options_result'
1683 # variable (regardless the $_G_rc_options value).
1684 if $_G_rc_options; then
1685 func_options_result=$_G_res_var
1686 else
1687 func_quote_for_eval ${1+"$@"}
1688 func_options_result=$func_quote_for_eval_result
1689 fi
1690
1691 $_G_rc_options
1848 $_G_options_quoted || {
1849 # As we (func_options) are top-level options-parser function and
1850 # nobody quoted "$@" for us yet, we need to do it explicitly for
1851 # caller.
1852 func_quote eval ${1+"$@"}
1853 func_options_result=$func_quote_result
1854 }
16921855 }
16931856
16941857
16981861 # Note that when calling hook functions, we pass through the list of
16991862 # positional parameters. If a hook function modifies that list, and
17001863 # needs to propagate that back to rest of this script, then the complete
1701 # modified list must be put in 'func_run_hooks_result' before
1702 # returning $EXIT_SUCCESS (otherwise $EXIT_FAILURE is returned).
1864 # modified list must be put in 'func_run_hooks_result' before returning.
17031865 func_hookable func_options_prep
17041866 func_options_prep ()
17051867 {
17091871 opt_verbose=false
17101872 opt_warning_types=
17111873
1712 _G_rc_options_prep=false
1713 if func_run_hooks func_options_prep ${1+"$@"}; then
1714 _G_rc_options_prep=:
1715 # save modified positional parameters for caller
1716 func_options_prep_result=$func_run_hooks_result
1717 fi
1718
1719 $_G_rc_options_prep
1874 func_run_hooks func_options_prep ${1+"$@"}
1875 func_propagate_result func_run_hooks func_options_prep
17201876 }
17211877
17221878
17281884 {
17291885 $debug_cmd
17301886
1731 func_parse_options_result=
1732
1733 _G_rc_parse_options=false
1887 _G_parse_options_requote=false
17341888 # this just eases exit handling
17351889 while test $# -gt 0; do
17361890 # Defer to hook functions for initial option parsing, so they
17371891 # get priority in the event of reusing an option name.
1738 if func_run_hooks func_parse_options ${1+"$@"}; then
1739 eval set dummy "$func_run_hooks_result"; shift
1740 _G_rc_parse_options=:
1892 func_run_hooks func_parse_options ${1+"$@"}
1893 func_propagate_result func_run_hooks func_parse_options
1894 if $func_propagate_result_result; then
1895 eval set dummy "$func_parse_options_result"; shift
1896 # Even though we may have changed "$@", we passed the "$@" array
1897 # down into the hook and it quoted it for us (because we are in
1898 # this if-branch). No need to quote it again.
1899 _G_parse_options_requote=false
17411900 fi
17421901
17431902 # Break out of the loop if we already parsed every option.
17441903 test $# -gt 0 || break
17451904
1905 # We expect that one of the options parsed in this function matches
1906 # and thus we remove _G_opt from "$@" and need to re-quote.
17461907 _G_match_parse_options=:
17471908 _G_opt=$1
17481909 shift
17491910 case $_G_opt in
17501911 --debug|-x) debug_cmd='set -x'
1751 func_echo "enabling shell trace mode"
1912 func_echo "enabling shell trace mode" >&2
17521913 $debug_cmd
17531914 ;;
17541915
17591920
17601921 --warnings|--warning|-W)
17611922 if test $# = 0 && func_missing_arg $_G_opt; then
1762 _G_rc_parse_options=:
1923 _G_parse_options_requote=:
17631924 break
17641925 fi
17651926 case " $warning_categories $1" in
18141975 shift
18151976 ;;
18161977
1817 --) _G_rc_parse_options=: ; break ;;
1978 --) _G_parse_options_requote=: ; break ;;
18181979 -*) func_fatal_help "unrecognised option: '$_G_opt'" ;;
18191980 *) set dummy "$_G_opt" ${1+"$@"}; shift
18201981 _G_match_parse_options=false
18221983 ;;
18231984 esac
18241985
1825 $_G_match_parse_options && _G_rc_parse_options=:
1986 if $_G_match_parse_options; then
1987 _G_parse_options_requote=:
1988 fi
18261989 done
18271990
1828
1829 if $_G_rc_parse_options; then
1991 if $_G_parse_options_requote; then
18301992 # save modified positional parameters for caller
1831 func_quote_for_eval ${1+"$@"}
1832 func_parse_options_result=$func_quote_for_eval_result
1993 func_quote eval ${1+"$@"}
1994 func_parse_options_result=$func_quote_result
18331995 fi
1834
1835 $_G_rc_parse_options
18361996 }
18371997
18381998
18452005 {
18462006 $debug_cmd
18472007
1848 _G_rc_validate_options=false
1849
18502008 # Display all warnings if -W was not given.
18512009 test -n "$opt_warning_types" || opt_warning_types=" $warning_categories"
18522010
1853 if func_run_hooks func_validate_options ${1+"$@"}; then
1854 # save modified positional parameters for caller
1855 func_validate_options_result=$func_run_hooks_result
1856 _G_rc_validate_options=:
1857 fi
2011 func_run_hooks func_validate_options ${1+"$@"}
2012 func_propagate_result func_run_hooks func_validate_options
18582013
18592014 # Bail if the options were screwed!
18602015 $exit_cmd $EXIT_FAILURE
1861
1862 $_G_rc_validate_options
18632016 }
18642017
18652018
19152068
19162069 # func_split_equals STRING
19172070 # ------------------------
1918 # Set func_split_equals_lhs and func_split_equals_rhs shell variables after
1919 # splitting STRING at the '=' sign.
2071 # Set func_split_equals_lhs and func_split_equals_rhs shell variables
2072 # after splitting STRING at the '=' sign.
19202073 test -z "$_G_HAVE_XSI_OPS" \
19212074 && (eval 'x=a/b/c;
19222075 test 5aa/bb/cc = "${#x}${x%%/*}${x%/*}${x#*/}${x##*/}"') 2>/dev/null \
19312084
19322085 func_split_equals_lhs=${1%%=*}
19332086 func_split_equals_rhs=${1#*=}
1934 test "x$func_split_equals_lhs" = "x$1" \
1935 && func_split_equals_rhs=
2087 if test "x$func_split_equals_lhs" = "x$1"; then
2088 func_split_equals_rhs=
2089 fi
19362090 }'
19372091 else
19382092 # ...otherwise fall back to using expr, which is often a shell builtin.
19422096
19432097 func_split_equals_lhs=`expr "x$1" : 'x\([^=]*\)'`
19442098 func_split_equals_rhs=
1945 test "x$func_split_equals_lhs" = "x$1" \
2099 test "x$func_split_equals_lhs=" = "x$1" \
19462100 || func_split_equals_rhs=`expr "x$1" : 'x[^=]*=\(.*\)$'`
19472101 }
19482102 fi #func_split_equals
19682122 {
19692123 $debug_cmd
19702124
1971 func_split_short_opt_name=`expr "x$1" : 'x-\(.\)'`
2125 func_split_short_opt_name=`expr "x$1" : 'x\(-.\)'`
19722126 func_split_short_opt_arg=`expr "x$1" : 'x-.\(.*\)$'`
19732127 }
19742128 fi #func_split_short_opt
20102164 # func_version
20112165 # ------------
20122166 # Echo version message to standard output and exit.
2167 # The version message is extracted from the calling file's header
2168 # comments, with leading '# ' stripped:
2169 # 1. First display the progname and version
2170 # 2. Followed by the header comment line matching /^# Written by /
2171 # 3. Then a blank line followed by the first following line matching
2172 # /^# Copyright /
2173 # 4. Immediately followed by any lines between the previous matches,
2174 # except lines preceding the intervening completely blank line.
2175 # For example, see the header comments of this file.
20132176 func_version ()
20142177 {
20152178 $debug_cmd
20162179
20172180 printf '%s\n' "$progname $scriptversion"
20182181 $SED -n '
2019 /(C)/!b go
2020 :more
2021 /\./!{
2022 N
2023 s|\n# | |
2024 b more
2182 /^# Written by /!b
2183 s|^# ||; p; n
2184
2185 :fwd2blnk
2186 /./ {
2187 n
2188 b fwd2blnk
20252189 }
2026 :go
2027 /^# Written by /,/# warranty; / {
2028 s|^# ||
2029 s|^# *$||
2030 s|\((C)\)[ 0-9,-]*[ ,-]\([1-9][0-9]* \)|\1 \2|
2031 p
2190 p; n
2191
2192 :holdwrnt
2193 s|^# ||
2194 s|^# *$||
2195 /^Copyright /!{
2196 /./H
2197 n
2198 b holdwrnt
20322199 }
2033 /^# Written by / {
2034 s|^# ||
2035 p
2036 }
2037 /^warranty; /q' < "$progpath"
2200
2201 s|\((C)\)[ 0-9,-]*[ ,-]\([1-9][0-9]* \)|\1 \2|
2202 G
2203 s|\(\n\)\n*|\1|g
2204 p; q' < "$progpath"
20382205
20392206 exit $?
20402207 }
20442211 # mode: shell-script
20452212 # sh-indentation: 2
20462213 # eval: (add-hook 'before-save-hook 'time-stamp)
2047 # time-stamp-pattern: "10/scriptversion=%:y-%02m-%02d.%02H; # UTC"
2214 # time-stamp-pattern: "30/scriptversion=%:y-%02m-%02d.%02H; # UTC"
20482215 # time-stamp-time-zone: "UTC"
20492216 # End:
20502217
21402307 compiler: $LTCC
21412308 compiler flags: $LTCFLAGS
21422309 linker: $LD (gnu? $with_gnu_ld)
2143 version: $progname $scriptversion Debian-2.4.6-12
2310 version: $progname $scriptversion Debian-2.4.7-1
21442311 automake: `($AUTOMAKE --version) 2>/dev/null |$SED 1q`
21452312 autoconf: `($AUTOCONF --version) 2>/dev/null |$SED 1q`
21462313
21962363 # a configuration failure hint, and exit.
21972364 func_fatal_configuration ()
21982365 {
2199 func__fatal_error ${1+"$@"} \
2366 func_fatal_error ${1+"$@"} \
22002367 "See the $PACKAGE documentation for more information." \
22012368 "Fatal configuration error."
22022369 }
23412508
23422509 nonopt=
23432510 preserve_args=
2511
2512 _G_rc_lt_options_prep=:
23442513
23452514 _G_rc_lt_options_prep=:
23462515
23742543
23752544 if $_G_rc_lt_options_prep; then
23762545 # Pass back the list of options.
2377 func_quote_for_eval ${1+"$@"}
2378 libtool_options_prep_result=$func_quote_for_eval_result
2546 func_quote eval ${1+"$@"}
2547 libtool_options_prep_result=$func_quote_result
23792548 fi
2380
2381 $_G_rc_lt_options_prep
23822549 }
23832550 func_add_hook func_options_prep libtool_options_prep
23842551
24812648
24822649 if $_G_rc_lt_parse_options; then
24832650 # save modified positional parameters for caller
2484 func_quote_for_eval ${1+"$@"}
2485 libtool_parse_options_result=$func_quote_for_eval_result
2651 func_quote eval ${1+"$@"}
2652 libtool_parse_options_result=$func_quote_result
24862653 fi
2487
2488 $_G_rc_lt_parse_options
24892654 }
24902655 func_add_hook func_parse_options libtool_parse_options
24912656
25422707 }
25432708
25442709 # Pass back the unparsed argument list
2545 func_quote_for_eval ${1+"$@"}
2546 libtool_validate_options_result=$func_quote_for_eval_result
2710 func_quote eval ${1+"$@"}
2711 libtool_validate_options_result=$func_quote_result
25472712 }
25482713 func_add_hook func_validate_options libtool_validate_options
25492714
35093674 esac
35103675 done
35113676
3512 func_quote_for_eval "$libobj"
3513 test "X$libobj" != "X$func_quote_for_eval_result" \
3677 func_quote_arg pretty "$libobj"
3678 test "X$libobj" != "X$func_quote_arg_result" \
35143679 && $ECHO "X$libobj" | $GREP '[]~#^*{};<>?"'"'"' &()|`$[]' \
35153680 && func_warning "libobj name '$libobj' may not contain shell special characters."
35163681 func_dirname_and_basename "$obj" "/" ""
35833748
35843749 func_to_tool_file "$srcfile" func_convert_file_msys_to_w32
35853750 srcfile=$func_to_tool_file_result
3586 func_quote_for_eval "$srcfile"
3587 qsrcfile=$func_quote_for_eval_result
3751 func_quote_arg pretty "$srcfile"
3752 qsrcfile=$func_quote_arg_result
35883753
35893754 # Only build a PIC object if we are building libtool libraries.
35903755 if test yes = "$build_libtool_libs"; then
37393904 -prefer-non-pic try to build non-PIC objects only
37403905 -shared do not build a '.o' file suitable for static linking
37413906 -static only build a '.o' file suitable for static linking
3742 -Wc,FLAG pass FLAG directly to the compiler
3907 -Wc,FLAG
3908 -Xcompiler FLAG pass FLAG directly to the compiler
37433909
37443910 COMPILE-COMMAND is a command to be used in creating a 'standard' object file
37453911 from the given SOURCEFILE.
38454011 -weak LIBNAME declare that the target provides the LIBNAME interface
38464012 -Wc,FLAG
38474013 -Xcompiler FLAG pass linker-specific FLAG directly to the compiler
4014 -Wa,FLAG
4015 -Xassembler FLAG pass linker-specific FLAG directly to the assembler
38484016 -Wl,FLAG
38494017 -Xlinker FLAG pass linker-specific FLAG directly to the linker
38504018 -XCClinker FLAG pass link-specific FLAG to the compiler driver (CC)
41874355 case $nonopt in *shtool*) :;; *) false;; esac
41884356 then
41894357 # Aesthetically quote it.
4190 func_quote_for_eval "$nonopt"
4191 install_prog="$func_quote_for_eval_result "
4358 func_quote_arg pretty "$nonopt"
4359 install_prog="$func_quote_arg_result "
41924360 arg=$1
41934361 shift
41944362 else
41984366
41994367 # The real first argument should be the name of the installation program.
42004368 # Aesthetically quote it.
4201 func_quote_for_eval "$arg"
4202 func_append install_prog "$func_quote_for_eval_result"
4369 func_quote_arg pretty "$arg"
4370 func_append install_prog "$func_quote_arg_result"
42034371 install_shared_prog=$install_prog
42044372 case " $install_prog " in
42054373 *[\\\ /]cp\ *) install_cp=: ;;
42564424 esac
42574425
42584426 # Aesthetically quote the argument.
4259 func_quote_for_eval "$arg"
4260 func_append install_prog " $func_quote_for_eval_result"
4427 func_quote_arg pretty "$arg"
4428 func_append install_prog " $func_quote_arg_result"
42614429 if test -n "$arg2"; then
4262 func_quote_for_eval "$arg2"
4430 func_quote_arg pretty "$arg2"
42634431 fi
4264 func_append install_shared_prog " $func_quote_for_eval_result"
4432 func_append install_shared_prog " $func_quote_arg_result"
42654433 done
42664434
42674435 test -z "$install_prog" && \
42724440
42734441 if test -n "$install_override_mode" && $no_mode; then
42744442 if $install_cp; then :; else
4275 func_quote_for_eval "$install_override_mode"
4276 func_append install_shared_prog " -m $func_quote_for_eval_result"
4443 func_quote_arg pretty "$install_override_mode"
4444 func_append install_shared_prog " -m $func_quote_arg_result"
42774445 fi
42784446 fi
42794447
45694737 relink_command=`$ECHO "$relink_command" | $SED 's%@OUTPUT@%'"$outputname"'%g'`
45704738
45714739 $opt_quiet || {
4572 func_quote_for_expand "$relink_command"
4573 eval "func_echo $func_quote_for_expand_result"
4740 func_quote_arg expand,pretty "$relink_command"
4741 eval "func_echo $func_quote_arg_result"
45744742 }
45754743 if eval "$relink_command"; then :
45764744 else
53495517 if test \"\$libtool_execute_magic\" != \"$magic\"; then
53505518 file=\"\$0\""
53515519
5352 qECHO=`$ECHO "$ECHO" | $SED "$sed_quote_subst"`
5520 func_quote_arg pretty "$ECHO"
5521 qECHO=$func_quote_arg_result
53535522 $ECHO "\
53545523
53555524 # A function that is used when there is no print builtin or printf.
53595528 \$1
53605529 _LTECHO_EOF'
53615530 }
5362 ECHO=\"$qECHO\"
5531 ECHO=$qECHO
53635532 fi
53645533
53655534 # Very basic option parsing. These options are (a) specific to
67026871 while test "$#" -gt 0; do
67036872 arg=$1
67046873 shift
6705 func_quote_for_eval "$arg"
6706 qarg=$func_quote_for_eval_unquoted_result
6707 func_append libtool_args " $func_quote_for_eval_result"
6874 func_quote_arg pretty,unquoted "$arg"
6875 qarg=$func_quote_arg_unquoted_result
6876 func_append libtool_args " $func_quote_arg_result"
67086877
67096878 # If the previous option needs an argument, assign it.
67106879 if test -n "$prev"; then
69407109 prev=
69417110 continue
69427111 ;;
7112 xassembler)
7113 func_append compiler_flags " -Xassembler $qarg"
7114 prev=
7115 func_append compile_command " -Xassembler $qarg"
7116 func_append finalize_command " -Xassembler $qarg"
7117 continue
7118 ;;
69437119 xcclinker)
69447120 func_append linker_flags " $qarg"
69457121 func_append compiler_flags " $qarg"
71107286 # These systems don't actually have a C library (as such)
71117287 test X-lc = "X$arg" && continue
71127288 ;;
7113 *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* | *-*-bitrig*)
7289 *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* | *-*-bitrig* | *-*-midnightbsd*)
71147290 # Do not include libc due to us having libc/libc_r.
71157291 test X-lc = "X$arg" && continue
71167292 ;;
71307306 esac
71317307 elif test X-lc_r = "X$arg"; then
71327308 case $host in
7133 *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* | *-*-bitrig*)
7309 *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* | *-*-bitrig* | *-*-midnightbsd*)
71347310 # Do not include libc_r directly, use -pthread flag.
71357311 continue
71367312 ;;
71607336 prev=xcompiler
71617337 continue
71627338 ;;
7163
7164 -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe \
7339 # Solaris ld rejects as of 11.4. Refer to Oracle bug 22985199.
7340 -pthread)
7341 case $host in
7342 *solaris2*) ;;
7343 *)
7344 case "$new_inherited_linker_flags " in
7345 *" $arg "*) ;;
7346 * ) func_append new_inherited_linker_flags " $arg" ;;
7347 esac
7348 ;;
7349 esac
7350 continue
7351 ;;
7352 -mt|-mthreads|-kthread|-Kthread|-pthreads|--thread-safe \
71657353 |-threads|-fopenmp|-openmp|-mp|-xopenmp|-omp|-qsmp=*)
71667354 func_append compiler_flags " $arg"
71677355 func_append compile_command " $arg"
73027490 save_ifs=$IFS; IFS=,
73037491 for flag in $args; do
73047492 IFS=$save_ifs
7305 func_quote_for_eval "$flag"
7306 func_append arg " $func_quote_for_eval_result"
7307 func_append compiler_flags " $func_quote_for_eval_result"
7493 func_quote_arg pretty "$flag"
7494 func_append arg " $func_quote_arg_result"
7495 func_append compiler_flags " $func_quote_arg_result"
73087496 done
73097497 IFS=$save_ifs
73107498 func_stripname ' ' '' "$arg"
73187506 save_ifs=$IFS; IFS=,
73197507 for flag in $args; do
73207508 IFS=$save_ifs
7321 func_quote_for_eval "$flag"
7322 func_append arg " $wl$func_quote_for_eval_result"
7323 func_append compiler_flags " $wl$func_quote_for_eval_result"
7324 func_append linker_flags " $func_quote_for_eval_result"
7509 func_quote_arg pretty "$flag"
7510 func_append arg " $wl$func_quote_arg_result"
7511 func_append compiler_flags " $wl$func_quote_arg_result"
7512 func_append linker_flags " $func_quote_arg_result"
73257513 done
73267514 IFS=$save_ifs
73277515 func_stripname ' ' '' "$arg"
73287516 arg=$func_stripname_result
73297517 ;;
73307518
7519 -Xassembler)
7520 prev=xassembler
7521 continue
7522 ;;
7523
73317524 -Xcompiler)
73327525 prev=xcompiler
73337526 continue
73457538
73467539 # -msg_* for osf cc
73477540 -msg_*)
7348 func_quote_for_eval "$arg"
7349 arg=$func_quote_for_eval_result
7541 func_quote_arg pretty "$arg"
7542 arg=$func_quote_arg_result
73507543 ;;
73517544
73527545 # Flags to be passed through unchanged, with rationale:
73697562 # -fuse-ld=* Linker select flags for GCC
73707563 # -static-* direct GCC to link specific libraries statically
73717564 # -fcilkplus Cilk Plus language extension features for C/C++
7565 # -Wa,* Pass flags directly to the assembler
73727566 -64|-mips[0-9]|-r[0-9][0-9]*|-xarch=*|-xtarget=*|+DA*|+DD*|-q*|-m*| \
73737567 -t[45]*|-txscale*|-p|-pg|--coverage|-fprofile-*|-F*|@*|-tp=*|--sysroot=*| \
73747568 -O*|-g*|-flto*|-fwhopr*|-fuse-linker-plugin|-fstack-protector*|-stdlib=*| \
7375 -specs=*|-fsanitize=*|-fuse-ld=*|-static-*|-fcilkplus)
7376 func_quote_for_eval "$arg"
7377 arg=$func_quote_for_eval_result
7569 -specs=*|-fsanitize=*|-fuse-ld=*|-static-*|-fcilkplus|-Wa,*)
7570 func_quote_arg pretty "$arg"
7571 arg=$func_quote_arg_result
73787572 func_append compile_command " $arg"
73797573 func_append finalize_command " $arg"
73807574 func_append compiler_flags " $arg"
73957589 continue
73967590 else
73977591 # Otherwise treat like 'Some other compiler flag' below
7398 func_quote_for_eval "$arg"
7399 arg=$func_quote_for_eval_result
7592 func_quote_arg pretty "$arg"
7593 arg=$func_quote_arg_result
74007594 fi
74017595 ;;
74027596
74037597 # Some other compiler flag.
74047598 -* | +*)
7405 func_quote_for_eval "$arg"
7406 arg=$func_quote_for_eval_result
7599 func_quote_arg pretty "$arg"
7600 arg=$func_quote_arg_result
74077601 ;;
74087602
74097603 *.$objext)
75237717 *)
75247718 # Unknown arguments in both finalize_command and compile_command need
75257719 # to be aesthetically quoted because they are evaled later.
7526 func_quote_for_eval "$arg"
7527 arg=$func_quote_for_eval_result
7720 func_quote_arg pretty "$arg"
7721 arg=$func_quote_arg_result
75287722 ;;
75297723 esac # arg
75307724
87328926 test CXX = "$tagname" && {
87338927 case $host_os in
87348928 linux*)
8735 case `$CC -V 2>&1 | sed 5q` in
8929 case `$CC -V 2>&1 | $SED 5q` in
87368930 *Sun\ C*) # Sun C++ 5.9
87378931 func_suncc_cstd_abi
87388932
89059099 #
89069100 case $version_type in
89079101 # correct linux to gnu/linux during the next big refactor
8908 darwin|freebsd-elf|linux|osf|windows|none)
9102 darwin|freebsd-elf|linux|midnightbsd-elf|osf|windows|none)
89099103 func_arith $number_major + $number_minor
89109104 current=$func_arith_result
89119105 age=$number_minor
89999193 versuffix=.$current.$revision
90009194 ;;
90019195
9002 freebsd-elf)
9196 freebsd-elf | midnightbsd-elf)
90039197 func_arith $current - $age
90049198 major=.$func_arith_result
90059199 versuffix=$major.$age.$revision
92259419 *-*-netbsd*)
92269420 # Don't link with libc until the a.out ld.so is fixed.
92279421 ;;
9228 *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*)
9422 *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* | *-*-midnightbsd*)
92299423 # Do not include libc due to us having libc/libc_r.
92309424 ;;
92319425 *-*-sco3.2v5* | *-*-sco5v6*)
1003610230 for cmd in $concat_cmds; do
1003710231 IFS=$save_ifs
1003810232 $opt_quiet || {
10039 func_quote_for_expand "$cmd"
10040 eval "func_echo $func_quote_for_expand_result"
10233 func_quote_arg expand,pretty "$cmd"
10234 eval "func_echo $func_quote_arg_result"
1004110235 }
1004210236 $opt_dry_run || eval "$cmd" || {
1004310237 lt_exit=$?
1013010324 eval cmd=\"$cmd\"
1013110325 IFS=$save_ifs
1013210326 $opt_quiet || {
10133 func_quote_for_expand "$cmd"
10134 eval "func_echo $func_quote_for_expand_result"
10327 func_quote_arg expand,pretty "$cmd"
10328 eval "func_echo $func_quote_arg_result"
1013510329 }
1013610330 $opt_dry_run || eval "$cmd" || {
1013710331 lt_exit=$?
1060510799 elif eval var_value=\$$var; test -z "$var_value"; then
1060610800 relink_command="$var=; export $var; $relink_command"
1060710801 else
10608 func_quote_for_eval "$var_value"
10609 relink_command="$var=$func_quote_for_eval_result; export $var; $relink_command"
10802 func_quote_arg pretty "$var_value"
10803 relink_command="$var=$func_quote_arg_result; export $var; $relink_command"
1061010804 fi
1061110805 done
10612 relink_command="(cd `pwd`; $relink_command)"
10613 relink_command=`$ECHO "$relink_command" | $SED "$sed_quote_subst"`
10806 func_quote eval cd "`pwd`"
10807 func_quote_arg pretty,unquoted "($func_quote_result; $relink_command)"
10808 relink_command=$func_quote_arg_unquoted_result
1061410809 fi
1061510810
1061610811 # Only actually do things if not in dry run mode.
1085011045 elif eval var_value=\$$var; test -z "$var_value"; then
1085111046 relink_command="$var=; export $var; $relink_command"
1085211047 else
10853 func_quote_for_eval "$var_value"
10854 relink_command="$var=$func_quote_for_eval_result; export $var; $relink_command"
11048 func_quote_arg pretty,unquoted "$var_value"
11049 relink_command="$var=$func_quote_arg_unquoted_result; export $var; $relink_command"
1085511050 fi
1085611051 done
1085711052 # Quote the link command for shipping.
10858 relink_command="(cd `pwd`; $SHELL \"$progpath\" $preserve_args --mode=relink $libtool_args @inst_prefix_dir@)"
10859 relink_command=`$ECHO "$relink_command" | $SED "$sed_quote_subst"`
11053 func_quote eval cd "`pwd`"
11054 relink_command="($func_quote_result; $SHELL \"$progpath\" $preserve_args --mode=relink $libtool_args @inst_prefix_dir@)"
11055 func_quote_arg pretty,unquoted "$relink_command"
11056 relink_command=$func_quote_arg_unquoted_result
1086011057 if test yes = "$hardcode_automatic"; then
1086111058 relink_command=
1086211059 fi
22
33 scriptversion=2018-03-07.03; # UTC
44
5 # Copyright (C) 1996-2018 Free Software Foundation, Inc.
5 # Copyright (C) 1996-2021 Free Software Foundation, Inc.
66 # Originally written by Fran,cois Pinard <pinard@iro.umontreal.ca>, 1996.
77
88 # This program is free software; you can redistribute it and/or modify
22
33 scriptversion=2018-03-07.03; # UTC
44
5 # Copyright (C) 2011-2018 Free Software Foundation, Inc.
5 # Copyright (C) 2011-2021 Free Software Foundation, Inc.
66 #
77 # This program is free software; you can redistribute it and/or modify
88 # it under the terms of the GNU General Public License as published by
4141 {
4242 cat <<END
4343 Usage:
44 test-driver --test-name=NAME --log-file=PATH --trs-file=PATH
45 [--expect-failure={yes|no}] [--color-tests={yes|no}]
46 [--enable-hard-errors={yes|no}] [--]
44 test-driver --test-name NAME --log-file PATH --trs-file PATH
45 [--expect-failure {yes|no}] [--color-tests {yes|no}]
46 [--enable-hard-errors {yes|no}] [--]
4747 TEST-SCRIPT [TEST-SCRIPT-ARGUMENTS]
48
4849 The '--test-name', '--log-file' and '--trs-file' options are mandatory.
50 See the GNU Automake documentation for information.
4951 END
5052 }
5153
102104 trap "st=141; $do_exit" 13
103105 trap "st=143; $do_exit" 15
104106
105 # Test script is run here.
106 "$@" >$log_file 2>&1
107 # Test script is run here. We create the file first, then append to it,
108 # to ameliorate tests themselves also writing to the log file. Our tests
109 # don't, but others can (automake bug#35762).
110 : >"$log_file"
111 "$@" >>"$log_file" 2>&1
107112 estatus=$?
108113
109114 if test $enable_hard_errors = no && test $estatus -eq 99; then
125130 # know whether the test passed or failed simply by looking at the '.log'
126131 # file, without the need of also peaking into the corresponding '.trs'
127132 # file (automake bug#11814).
128 echo "$res $test_name (exit status: $estatus)" >>$log_file
133 echo "$res $test_name (exit status: $estatus)" >>"$log_file"
129134
130135 # Report outcome to console.
131136 echo "${col}${res}${std}: $test_name"
00 SET(PACKAGE protobuf-c)
11 SET(PACKAGE_NAME protobuf-c)
2 SET(PACKAGE_VERSION 1.3.3)
3
4
5 CMAKE_MINIMUM_REQUIRED(VERSION 2.8 FATAL_ERROR)
2 SET(PACKAGE_VERSION 1.4.0)
3 SET(PACKAGE_URL https://github.com/protobuf-c/protobuf-c)
4 SET(PACKAGE_DESCRIPTION "Protocol Buffers implementation in C")
5
6 CMAKE_MINIMUM_REQUIRED(VERSION 3.10 FATAL_ERROR)
67
78 PROJECT(protobuf-c)
89
910 #options
10 option(MSVC_STATIC_BUILD "MSVC_STATIC_BUILD" OFF)
1111 option(BUILD_PROTO3 "BUILD_PROTO3" ON)
12 option(BUILD_PROTOC "Build protoc-gen-c" ON)
13 if(CMAKE_BUILD_TYPE MATCHES Debug)
14 option(BUILD_TESTS "Build tests" ON)
15 else()
16 option(BUILD_TESTS "Build tests" OFF)
17 endif()
1218
1319 INCLUDE(TestBigEndian)
1420 TEST_BIG_ENDIAN(WORDS_BIGENDIAN)
2026 ADD_DEFINITIONS(-DWORDS_BIGENDIAN)
2127 endif()
2228
29 IF (MSVC AND BUILD_SHARED_LIBS)
30 ADD_DEFINITIONS(-DPROTOBUF_C_USE_SHARED_LIB)
31 ENDIF (MSVC AND BUILD_SHARED_LIBS)
32
2333 if(MSVC)
2434 # using Visual Studio C++
2535 SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} /wd4267 /wd4244")
3646 ${MAIN_DIR}/protobuf-c/protobuf-c.h)
3747
3848 ADD_LIBRARY(protobuf-c ${PC_SOURCES})
49 set_target_properties(protobuf-c PROPERTIES COMPILE_PDB_NAME protobuf-c)
50 IF (MSVC AND BUILD_SHARED_LIBS)
51 TARGET_COMPILE_DEFINITIONS(protobuf-c PRIVATE -DPROTOBUF_C_EXPORT)
52 ENDIF (MSVC AND BUILD_SHARED_LIBS)
3953
4054 INCLUDE_DIRECTORIES(${MAIN_DIR})
4155 INCLUDE_DIRECTORIES(${MAIN_DIR}/protobuf-c)
56
57 IF(BUILD_PROTOC)
4258 INCLUDE_DIRECTORIES(${CMAKE_BINARY_DIR}) # for generated files
59
60 if (MSVC AND NOT BUILD_SHARED_LIBS)
61 SET(Protobuf_USE_STATIC_LIBS ON)
62 endif (MSVC AND NOT BUILD_SHARED_LIBS)
4363
4464 FIND_PACKAGE(Protobuf REQUIRED)
4565 INCLUDE_DIRECTORIES(${PROTOBUF_INCLUDE_DIR})
4767 if (BUILD_PROTO3)
4868 ADD_DEFINITIONS(-DHAVE_PROTO3)
4969 endif()
50
51 if (MSVC AND MSVC_STATIC_BUILD)
70 ENDIF()
71
72 if (MSVC AND NOT BUILD_SHARED_LIBS)
5273 # In case we are building static libraries, link also the runtime library statically
5374 # so that MSVCR*.DLL is not required at runtime.
5475 # https://msdn.microsoft.com/en-us/library/2kzt1wy3.aspx
6384 string(REGEX REPLACE "/MD" "/MT" ${flag_var} "${${flag_var}}")
6485 endif(${flag_var} MATCHES "/MD")
6586 endforeach(flag_var)
66 endif (MSVC AND MSVC_STATIC_BUILD)
87 endif (MSVC AND NOT BUILD_SHARED_LIBS)
88
89 IF(BUILD_PROTOC)
90 SET(CMAKE_CXX_STANDARD 11)
91 SET(CMAKE_CXX_STANDARD_REQUIRED ON)
92 SET(CMAKE_CXX_EXTENSIONS OFF)
93 ADD_CUSTOM_COMMAND(OUTPUT protobuf-c/protobuf-c.pb.cc protobuf-c/protobuf-c.pb.h
94 COMMAND ${PROTOBUF_PROTOC_EXECUTABLE}
95 ARGS --cpp_out ${CMAKE_BINARY_DIR} -I${MAIN_DIR} ${MAIN_DIR}/protobuf-c/protobuf-c.proto)
6796 FILE(GLOB PROTOC_GEN_C_SRC ${MAIN_DIR}/protoc-c/*.h ${MAIN_DIR}/protoc-c/*.cc )
68 ADD_EXECUTABLE(protoc-gen-c ${PROTOC_GEN_C_SRC})
97 ADD_EXECUTABLE(protoc-gen-c ${PROTOC_GEN_C_SRC} protobuf-c/protobuf-c.pb.cc protobuf-c/protobuf-c.pb.h)
6998
7099 TARGET_LINK_LIBRARIES(protoc-gen-c ${PROTOBUF_PROTOC_LIBRARY} ${PROTOBUF_LIBRARY})
100
101 IF (MSVC AND BUILD_SHARED_LIBS)
102 TARGET_COMPILE_DEFINITIONS(protoc-gen-c PRIVATE -DPROTOBUF_USE_DLLS)
103 GET_FILENAME_COMPONENT(PROTOBUF_DLL_DIR ${PROTOBUF_PROTOC_EXECUTABLE} DIRECTORY)
104 FILE(GLOB PROTOBUF_DLLS ${PROTOBUF_DLL_DIR}/*.dll)
105 FILE(COPY ${PROTOBUF_DLLS} DESTINATION ${CMAKE_BINARY_DIR})
106 ENDIF (MSVC AND BUILD_SHARED_LIBS)
71107
72108 IF(CMAKE_HOST_UNIX)
73109 ADD_CUSTOM_COMMAND(TARGET ${PROJECT_NAME} POST_BUILD
83119 ENDFUNCTION()
84120
85121
86 IF(CMAKE_BUILD_TYPE MATCHES Debug)
122 IF(BUILD_TESTS)
87123 ENABLE_TESTING()
88124
89125 GENERATE_TEST_SOURCES(${TEST_DIR}/test.proto t/test.pb-c.c t/test.pb-c.h)
98134
99135 GENERATE_TEST_SOURCES(${TEST_DIR}/test-full.proto t/test-full.pb-c.c t/test-full.pb-c.h)
100136
101 ADD_EXECUTABLE(cxx-generate-packed-data ${TEST_DIR}/generated-code2/cxx-generate-packed-data.cc t/test-full.pb.h t/test-full.pb.cc)
137 ADD_EXECUTABLE(cxx-generate-packed-data ${TEST_DIR}/generated-code2/cxx-generate-packed-data.cc t/test-full.pb.h t/test-full.pb.cc protobuf-c/protobuf-c.pb.cc protobuf-c/protobuf-c.pb.h)
102138 TARGET_LINK_LIBRARIES(cxx-generate-packed-data ${PROTOBUF_LIBRARY})
139 IF (MSVC AND BUILD_SHARED_LIBS)
140 TARGET_COMPILE_DEFINITIONS(cxx-generate-packed-data PRIVATE -DPROTOBUF_USE_DLLS)
141 ENDIF (MSVC AND BUILD_SHARED_LIBS)
103142
104143 FILE(MAKE_DIRECTORY ${CMAKE_BINARY_DIR}/t/generated-code2)
105144 ADD_CUSTOM_COMMAND(OUTPUT t/generated-code2/test-full-cxx-output.inc
130169 TARGET_COMPILE_DEFINITIONS(test-generated-code3 PUBLIC -DPROTO3)
131170 TARGET_LINK_LIBRARIES(test-generated-code3 protobuf-c)
132171
133 ENDIF()
134
135 INSTALL(TARGETS protoc-gen-c protobuf-c RUNTIME DESTINATION bin LIBRARY DESTINATION lib ARCHIVE DESTINATION lib)
136 INSTALL(FILES ${MAIN_DIR}/protobuf-c/protobuf-c.h DESTINATION include/protobuf-c)
172 ENDIF() # BUILD_TESTS
173
174 # https://github.com/protocolbuffers/protobuf/issues/5107
175 IF(CMAKE_HOST_UNIX)
176 FIND_PACKAGE(Threads REQUIRED)
177 TARGET_LINK_LIBRARIES(protoc-gen-c ${CMAKE_THREAD_LIBS_INIT})
178 IF(BUILD_TESTS)
179 TARGET_LINK_LIBRARIES(cxx-generate-packed-data ${CMAKE_THREAD_LIBS_INIT})
180 ENDIF()
181 ENDIF()
182
183 INSTALL(TARGETS protoc-gen-c RUNTIME DESTINATION bin)
184 ENDIF() # BUILD_PROTOC
185
186 INSTALL(TARGETS protobuf-c LIBRARY DESTINATION lib ARCHIVE DESTINATION lib RUNTIME DESTINATION bin)
187 INSTALL(FILES ${MAIN_DIR}/protobuf-c/protobuf-c.h ${MAIN_DIR}/protobuf-c/protobuf-c.proto DESTINATION include/protobuf-c)
137188 INSTALL(FILES ${MAIN_DIR}/protobuf-c/protobuf-c.h DESTINATION include)
189 INSTALL(FILES ${CMAKE_BINARY_DIR}/protobuf-c.pdb DESTINATION lib OPTIONAL)
138190
139191 IF(CMAKE_HOST_UNIX)
140192 INSTALL(CODE "EXECUTE_PROCESS (COMMAND ln -sf protoc-gen-c protoc-c WORKING_DIRECTORY ${CMAKE_INSTALL_PREFIX}/bin)")
141193 ENDIF()
142194
195 INCLUDE(GNUInstallDirs)
196 SET(prefix ${CMAKE_INSTALL_PREFIX})
197 SET(exec_prefix \${prefix})
198 SET(bindir \${exec_prefix}/${CMAKE_INSTALL_BINDIR})
199 SET(libdir \${exec_prefix}/${CMAKE_INSTALL_LIBDIR})
200 SET(includedir \${prefix}/${CMAKE_INSTALL_INCLUDEDIR})
201 CONFIGURE_FILE(${MAIN_DIR}/protobuf-c/libprotobuf-c.pc.in libprotobuf-c.pc @ONLY)
202 INSTALL(FILES ${CMAKE_BINARY_DIR}/libprotobuf-c.pc DESTINATION ${CMAKE_INSTALL_LIBDIR}/pkgconfig)
203
204 IF(BUILD_TESTS)
143205 INCLUDE(Dart)
144206
145207 SET(DART_TESTING_TIMEOUT 5)
149211 ADD_TEST(test-issue220 test-issue220)
150212 ADD_TEST(test-issue251 test-issue251)
151213 ADD_TEST(test-version test-version)
214 ENDIF()
152215
153216
154217 INCLUDE(CPack)
1515 /* Define to 1 if you have the <inttypes.h> header file. */
1616 #undef HAVE_INTTYPES_H
1717
18 /* Define to 1 if you have the <memory.h> header file. */
19 #undef HAVE_MEMORY_H
18 /* Define to 1 if you have the <minix/config.h> header file. */
19 #undef HAVE_MINIX_CONFIG_H
2020
2121 /* Support proto3 syntax */
2222 #undef HAVE_PROTO3
2323
2424 /* Define to 1 if you have the <stdint.h> header file. */
2525 #undef HAVE_STDINT_H
26
27 /* Define to 1 if you have the <stdio.h> header file. */
28 #undef HAVE_STDIO_H
2629
2730 /* Define to 1 if you have the <stdlib.h> header file. */
2831 #undef HAVE_STDLIB_H
4144
4245 /* Define to 1 if you have the <unistd.h> header file. */
4346 #undef HAVE_UNISTD_H
47
48 /* Define to 1 if you have the <wchar.h> header file. */
49 #undef HAVE_WCHAR_H
4450
4551 /* Define to the sub-directory where libtool stores uninstalled libraries. */
4652 #undef LT_OBJDIR
6672 /* Define to the version of this package. */
6773 #undef PACKAGE_VERSION
6874
69 /* Define to 1 if you have the ANSI C header files. */
75 /* Define to 1 if all of the C90 standard headers exist (not just the ones
76 required in a freestanding environment). This macro is provided for
77 backward compatibility; new code need not use it. */
7078 #undef STDC_HEADERS
7179
7280 /* Enable extensions on AIX 3, Interix. */
7381 #ifndef _ALL_SOURCE
7482 # undef _ALL_SOURCE
7583 #endif
84 /* Enable general extensions on macOS. */
85 #ifndef _DARWIN_C_SOURCE
86 # undef _DARWIN_C_SOURCE
87 #endif
88 /* Enable general extensions on Solaris. */
89 #ifndef __EXTENSIONS__
90 # undef __EXTENSIONS__
91 #endif
7692 /* Enable GNU extensions on systems that have them. */
7793 #ifndef _GNU_SOURCE
7894 # undef _GNU_SOURCE
7995 #endif
80 /* Enable threading extensions on Solaris. */
96 /* Enable X/Open compliant socket functions that do not require linking
97 with -lxnet on HP-UX 11.11. */
98 #ifndef _HPUX_ALT_XOPEN_SOCKET_API
99 # undef _HPUX_ALT_XOPEN_SOCKET_API
100 #endif
101 /* Identify the host operating system as Minix.
102 This macro does not affect the system headers' behavior.
103 A future release of Autoconf may stop defining this macro. */
104 #ifndef _MINIX
105 # undef _MINIX
106 #endif
107 /* Enable general extensions on NetBSD.
108 Enable NetBSD compatibility extensions on Minix. */
109 #ifndef _NETBSD_SOURCE
110 # undef _NETBSD_SOURCE
111 #endif
112 /* Enable OpenBSD compatibility extensions on NetBSD.
113 Oddly enough, this does nothing on OpenBSD. */
114 #ifndef _OPENBSD_SOURCE
115 # undef _OPENBSD_SOURCE
116 #endif
117 /* Define to 1 if needed for POSIX-compatible behavior. */
118 #ifndef _POSIX_SOURCE
119 # undef _POSIX_SOURCE
120 #endif
121 /* Define to 2 if needed for POSIX-compatible behavior. */
122 #ifndef _POSIX_1_SOURCE
123 # undef _POSIX_1_SOURCE
124 #endif
125 /* Enable POSIX-compatible threading on Solaris. */
81126 #ifndef _POSIX_PTHREAD_SEMANTICS
82127 # undef _POSIX_PTHREAD_SEMANTICS
128 #endif
129 /* Enable extensions specified by ISO/IEC TS 18661-5:2014. */
130 #ifndef __STDC_WANT_IEC_60559_ATTRIBS_EXT__
131 # undef __STDC_WANT_IEC_60559_ATTRIBS_EXT__
132 #endif
133 /* Enable extensions specified by ISO/IEC TS 18661-1:2014. */
134 #ifndef __STDC_WANT_IEC_60559_BFP_EXT__
135 # undef __STDC_WANT_IEC_60559_BFP_EXT__
136 #endif
137 /* Enable extensions specified by ISO/IEC TS 18661-2:2015. */
138 #ifndef __STDC_WANT_IEC_60559_DFP_EXT__
139 # undef __STDC_WANT_IEC_60559_DFP_EXT__
140 #endif
141 /* Enable extensions specified by ISO/IEC TS 18661-4:2015. */
142 #ifndef __STDC_WANT_IEC_60559_FUNCS_EXT__
143 # undef __STDC_WANT_IEC_60559_FUNCS_EXT__
144 #endif
145 /* Enable extensions specified by ISO/IEC TS 18661-3:2015. */
146 #ifndef __STDC_WANT_IEC_60559_TYPES_EXT__
147 # undef __STDC_WANT_IEC_60559_TYPES_EXT__
148 #endif
149 /* Enable extensions specified by ISO/IEC TR 24731-2:2010. */
150 #ifndef __STDC_WANT_LIB_EXT2__
151 # undef __STDC_WANT_LIB_EXT2__
152 #endif
153 /* Enable extensions specified by ISO/IEC 24747:2009. */
154 #ifndef __STDC_WANT_MATH_SPEC_FUNCS__
155 # undef __STDC_WANT_MATH_SPEC_FUNCS__
83156 #endif
84157 /* Enable extensions on HP NonStop. */
85158 #ifndef _TANDEM_SOURCE
86159 # undef _TANDEM_SOURCE
87160 #endif
88 /* Enable general extensions on Solaris. */
89 #ifndef __EXTENSIONS__
90 # undef __EXTENSIONS__
161 /* Enable X/Open extensions. Define to 500 only if necessary
162 to make mbstate_t available. */
163 #ifndef _XOPEN_SOURCE
164 # undef _XOPEN_SOURCE
91165 #endif
92166
93167
106180 # endif
107181 #endif
108182
109 /* Enable large inode numbers on Mac OS X 10.5. */
110 #ifndef _DARWIN_USE_64_BIT_INODE
111 # define _DARWIN_USE_64_BIT_INODE 1
112 #endif
113
114183 /* Number of bits in a file offset, on hosts where this is settable. */
115184 #undef _FILE_OFFSET_BITS
116185
117186 /* Define for large files, on AIX-style hosts. */
118187 #undef _LARGE_FILES
119
120 /* Define to 1 if on MINIX. */
121 #undef _MINIX
122
123 /* Define to 2 if the system does not provide POSIX.1 features except with
124 this defined. */
125 #undef _POSIX_1_SOURCE
126
127 /* Define to 1 if you need to in order for `stat' and other things to work. */
128 #undef _POSIX_SOURCE
+4180
-3417
configure less more
00 #! /bin/sh
11 # Guess values for system-dependent variables and create Makefiles.
2 # Generated by GNU Autoconf 2.69 for protobuf-c 1.3.3.
2 # Generated by GNU Autoconf 2.71 for protobuf-c 1.4.0.
33 #
44 # Report bugs to <https://github.com/protobuf-c/protobuf-c/issues>.
55 #
66 #
7 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
7 # Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation,
8 # Inc.
89 #
910 #
1011 # This configure script is free software; the Free Software Foundation
1516
1617 # Be more Bourne compatible
1718 DUALCASE=1; export DUALCASE # for MKS sh
18 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
19 as_nop=:
20 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
21 then :
1922 emulate sh
2023 NULLCMD=:
2124 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
2225 # is contrary to our usage. Disable this feature.
2326 alias -g '${1+"$@"}'='"$@"'
2427 setopt NO_GLOB_SUBST
25 else
28 else $as_nop
2629 case `(set -o) 2>/dev/null` in #(
2730 *posix*) :
2831 set -o posix ;; #(
3235 fi
3336
3437
38
39 # Reset variables that may have inherited troublesome values from
40 # the environment.
41
42 # IFS needs to be set, to space, tab, and newline, in precisely that order.
43 # (If _AS_PATH_WALK were called with IFS unset, it would have the
44 # side effect of setting IFS to empty, thus disabling word splitting.)
45 # Quoting is to prevent editors from complaining about space-tab.
3546 as_nl='
3647 '
3748 export as_nl
38 # Printing a long string crashes Solaris 7 /usr/bin/printf.
39 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
42 # Prefer a ksh shell builtin over an external printf program on Solaris,
43 # but without wasting forks for bash or zsh.
44 if test -z "$BASH_VERSION$ZSH_VERSION" \
45 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
46 as_echo='print -r --'
47 as_echo_n='print -rn --'
48 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
49 as_echo='printf %s\n'
50 as_echo_n='printf %s'
51 else
52 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
53 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
54 as_echo_n='/usr/ucb/echo -n'
55 else
56 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
57 as_echo_n_body='eval
58 arg=$1;
59 case $arg in #(
60 *"$as_nl"*)
61 expr "X$arg" : "X\\(.*\\)$as_nl";
62 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
63 esac;
64 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
65 '
66 export as_echo_n_body
67 as_echo_n='sh -c $as_echo_n_body as_echo'
68 fi
69 export as_echo_body
70 as_echo='sh -c $as_echo_body as_echo'
71 fi
49 IFS=" "" $as_nl"
50
51 PS1='$ '
52 PS2='> '
53 PS4='+ '
54
55 # Ensure predictable behavior from utilities with locale-dependent output.
56 LC_ALL=C
57 export LC_ALL
58 LANGUAGE=C
59 export LANGUAGE
60
61 # We cannot yet rely on "unset" to work, but we need these variables
62 # to be unset--not just set to an empty or harmless value--now, to
63 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
64 # also avoids known problems related to "unset" and subshell syntax
65 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
66 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
67 do eval test \${$as_var+y} \
68 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
69 done
70
71 # Ensure that fds 0, 1, and 2 are open.
72 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
73 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
74 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
7275
7376 # The user is always right.
74 if test "${PATH_SEPARATOR+set}" != set; then
77 if ${PATH_SEPARATOR+false} :; then
7578 PATH_SEPARATOR=:
7679 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
7780 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
7982 }
8083 fi
8184
82
83 # IFS
84 # We need space, tab and new line, in precisely that order. Quoting is
85 # there to prevent editors from complaining about space-tab.
86 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
87 # splitting by setting IFS to empty value.)
88 IFS=" "" $as_nl"
8985
9086 # Find who we are. Look in the path if we contain no directory separator.
9187 as_myself=
9591 for as_dir in $PATH
9692 do
9793 IFS=$as_save_IFS
98 test -z "$as_dir" && as_dir=.
99 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
94 case $as_dir in #(((
95 '') as_dir=./ ;;
96 */) ;;
97 *) as_dir=$as_dir/ ;;
98 esac
99 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
100100 done
101101 IFS=$as_save_IFS
102102
108108 as_myself=$0
109109 fi
110110 if test ! -f "$as_myself"; then
111 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
112112 exit 1
113113 fi
114114
115 # Unset variables that we do not need and which cause bugs (e.g. in
116 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
117 # suppresses any "Segmentation fault" message there. '((' could
118 # trigger a bug in pdksh 5.2.14.
119 for as_var in BASH_ENV ENV MAIL MAILPATH
120 do eval test x\${$as_var+set} = xset \
121 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
122 done
123 PS1='$ '
124 PS2='> '
125 PS4='+ '
126
127 # NLS nuisances.
128 LC_ALL=C
129 export LC_ALL
130 LANGUAGE=C
131 export LANGUAGE
132
133 # CDPATH.
134 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135115
136116 # Use a proper internal environment variable to ensure we don't fall
137117 # into an infinite loop, continuously re-executing ourselves.
153133 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
154134 # Admittedly, this is quite paranoid, since all the known shells bail
155135 # out after a failed `exec'.
156 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
157 as_fn_exit 255
136 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
137 exit 255
158138 fi
159139 # We don't want this to propagate to other subprocesses.
160140 { _as_can_reexec=; unset _as_can_reexec;}
161141 if test "x$CONFIG_SHELL" = x; then
162 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
142 as_bourne_compatible="as_nop=:
143 if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
144 then :
163145 emulate sh
164146 NULLCMD=:
165147 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
166148 # is contrary to our usage. Disable this feature.
167149 alias -g '\${1+\"\$@\"}'='\"\$@\"'
168150 setopt NO_GLOB_SUBST
169 else
151 else \$as_nop
170152 case \`(set -o) 2>/dev/null\` in #(
171153 *posix*) :
172154 set -o posix ;; #(
186168 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
187169 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
188170 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
189 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
190
191 else
171 if ( set x; as_fn_ret_success y && test x = \"\$1\" )
172 then :
173
174 else \$as_nop
192175 exitcode=1; echo positional parameters were not saved.
193176 fi
194177 test x\$exitcode = x0 || exit 1
178 blah=\$(echo \$(echo blah))
179 test x\"\$blah\" = xblah || exit 1
195180 test -x / || exit 1"
196181 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
197182 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
198183 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
199184 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
200 test \$(( 1 + 1 )) = 2 || exit 1
201185
202186 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
203187 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
205189 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206190 PATH=/empty FPATH=/empty; export PATH FPATH
207191 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
208 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
209 if (eval "$as_required") 2>/dev/null; then :
192 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
193 test \$(( 1 + 1 )) = 2 || exit 1"
194 if (eval "$as_required") 2>/dev/null
195 then :
210196 as_have_required=yes
211 else
197 else $as_nop
212198 as_have_required=no
213199 fi
214 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
215
216 else
200 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
201 then :
202
203 else $as_nop
217204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
218205 as_found=false
219206 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
220207 do
221208 IFS=$as_save_IFS
222 test -z "$as_dir" && as_dir=.
209 case $as_dir in #(((
210 '') as_dir=./ ;;
211 */) ;;
212 *) as_dir=$as_dir/ ;;
213 esac
223214 as_found=:
224215 case $as_dir in #(
225216 /*)
226217 for as_base in sh bash ksh sh5; do
227218 # Try only shells that exist, to save several forks.
228 as_shell=$as_dir/$as_base
219 as_shell=$as_dir$as_base
229220 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
230 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
221 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
222 then :
231223 CONFIG_SHELL=$as_shell as_have_required=yes
232 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
224 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
225 then :
233226 break 2
234227 fi
235228 fi
237230 esac
238231 as_found=false
239232 done
240 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
241 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
233 IFS=$as_save_IFS
234 if $as_found
235 then :
236
237 else $as_nop
238 if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
239 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
240 then :
242241 CONFIG_SHELL=$SHELL as_have_required=yes
243 fi; }
244 IFS=$as_save_IFS
245
246
247 if test "x$CONFIG_SHELL" != x; then :
242 fi
243 fi
244
245
246 if test "x$CONFIG_SHELL" != x
247 then :
248248 export CONFIG_SHELL
249249 # We cannot yet assume a decent shell, so we have to provide a
250250 # neutralization value for shells without unset; and this also
262262 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
263263 # Admittedly, this is quite paranoid, since all the known shells bail
264264 # out after a failed `exec'.
265 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
265 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
266266 exit 255
267267 fi
268268
269 if test x$as_have_required = xno; then :
270 $as_echo "$0: This script requires a shell more modern than all"
271 $as_echo "$0: the shells that I found on your system."
272 if test x${ZSH_VERSION+set} = xset ; then
273 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
274 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
269 if test x$as_have_required = xno
270 then :
271 printf "%s\n" "$0: This script requires a shell more modern than all"
272 printf "%s\n" "$0: the shells that I found on your system."
273 if test ${ZSH_VERSION+y} ; then
274 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
275276 else
276 $as_echo "$0: Please tell bug-autoconf@gnu.org and
277 printf "%s\n" "$0: Please tell bug-autoconf@gnu.org and
277278 $0: https://github.com/protobuf-c/protobuf-c/issues about
278279 $0: your system, including any error possibly output before
279280 $0: this message. Then install a modern shell, or manually
301302 }
302303 as_unset=as_fn_unset
303304
305
304306 # as_fn_set_status STATUS
305307 # -----------------------
306308 # Set $? to STATUS, without forking.
318320 as_fn_set_status $1
319321 exit $1
320322 } # as_fn_exit
323 # as_fn_nop
324 # ---------
325 # Do nothing but, unlike ":", preserve the value of $?.
326 as_fn_nop ()
327 {
328 return $?
329 }
330 as_nop=as_fn_nop
321331
322332 # as_fn_mkdir_p
323333 # -------------
332342 as_dirs=
333343 while :; do
334344 case $as_dir in #(
335 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
345 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
336346 *) as_qdir=$as_dir;;
337347 esac
338348 as_dirs="'$as_qdir' $as_dirs"
341351 X"$as_dir" : 'X\(//\)[^/]' \| \
342352 X"$as_dir" : 'X\(//\)$' \| \
343353 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
344 $as_echo X"$as_dir" |
354 printf "%s\n" X"$as_dir" |
345355 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
346356 s//\1/
347357 q
380390 # advantage of any shell optimizations that allow amortized linear growth over
381391 # repeated appends, instead of the typical quadratic growth present in naive
382392 # implementations.
383 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
393 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
394 then :
384395 eval 'as_fn_append ()
385396 {
386397 eval $1+=\$2
387398 }'
388 else
399 else $as_nop
389400 as_fn_append ()
390401 {
391402 eval $1=\$$1\$2
397408 # Perform arithmetic evaluation on the ARGs, and store the result in the
398409 # global $as_val. Take advantage of shells that can avoid forks. The arguments
399410 # must be portable across $(()) and expr.
400 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
411 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
412 then :
401413 eval 'as_fn_arith ()
402414 {
403415 as_val=$(( $* ))
404416 }'
405 else
417 else $as_nop
406418 as_fn_arith ()
407419 {
408420 as_val=`expr "$@" || test $? -eq 1`
409421 }
410422 fi # as_fn_arith
411423
424 # as_fn_nop
425 # ---------
426 # Do nothing but, unlike ":", preserve the value of $?.
427 as_fn_nop ()
428 {
429 return $?
430 }
431 as_nop=as_fn_nop
412432
413433 # as_fn_error STATUS ERROR [LINENO LOG_FD]
414434 # ----------------------------------------
420440 as_status=$1; test $as_status -eq 0 && as_status=1
421441 if test "$4"; then
422442 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
423 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
443 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
424444 fi
425 $as_echo "$as_me: error: $2" >&2
445 printf "%s\n" "$as_me: error: $2" >&2
426446 as_fn_exit $as_status
427447 } # as_fn_error
428448
449469 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
450470 X"$0" : 'X\(//\)$' \| \
451471 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
452 $as_echo X/"$0" |
472 printf "%s\n" X/"$0" |
453473 sed '/^.*\/\([^/][^/]*\)\/*$/{
454474 s//\1/
455475 q
493513 s/-\n.*//
494514 ' >$as_me.lineno &&
495515 chmod +x "$as_me.lineno" ||
496 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
516 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
497517
498518 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
499519 # already done that, so ensure we don't try to do so again and fall
507527 exit
508528 }
509529
530
531 # Determine whether it's possible to make 'echo' print without a newline.
532 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
533 # for compatibility with existing Makefiles.
510534 ECHO_C= ECHO_N= ECHO_T=
511535 case `echo -n x` in #(((((
512536 -n*)
519543 *)
520544 ECHO_N='-n';;
521545 esac
546
547 # For backward compatibility with old third-party macros, we provide
548 # the shell variables $as_echo and $as_echo_n. New code should use
549 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
550 as_echo='printf %s\n'
551 as_echo_n='printf %s'
552
522553
523554 rm -f conf$$ conf$$.exe conf$$.file
524555 if test -d conf$$.dir; then
589620 # Identity of this package.
590621 PACKAGE_NAME='protobuf-c'
591622 PACKAGE_TARNAME='protobuf-c'
592 PACKAGE_VERSION='1.3.3'
593 PACKAGE_STRING='protobuf-c 1.3.3'
623 PACKAGE_VERSION='1.4.0'
624 PACKAGE_STRING='protobuf-c 1.4.0'
594625 PACKAGE_BUGREPORT='https://github.com/protobuf-c/protobuf-c/issues'
595626 PACKAGE_URL='https://github.com/protobuf-c/protobuf-c'
596627
597628 ac_unique_file="protobuf-c/protobuf-c.c"
598629 # Factoring default headers for most tests.
599630 ac_includes_default="\
600 #include <stdio.h>
601 #ifdef HAVE_SYS_TYPES_H
602 # include <sys/types.h>
631 #include <stddef.h>
632 #ifdef HAVE_STDIO_H
633 # include <stdio.h>
603634 #endif
604 #ifdef HAVE_SYS_STAT_H
605 # include <sys/stat.h>
606 #endif
607 #ifdef STDC_HEADERS
635 #ifdef HAVE_STDLIB_H
608636 # include <stdlib.h>
609 # include <stddef.h>
610 #else
611 # ifdef HAVE_STDLIB_H
612 # include <stdlib.h>
613 # endif
614637 #endif
615638 #ifdef HAVE_STRING_H
616 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
617 # include <memory.h>
618 # endif
619639 # include <string.h>
620 #endif
621 #ifdef HAVE_STRINGS_H
622 # include <strings.h>
623640 #endif
624641 #ifdef HAVE_INTTYPES_H
625642 # include <inttypes.h>
627644 #ifdef HAVE_STDINT_H
628645 # include <stdint.h>
629646 #endif
647 #ifdef HAVE_STRINGS_H
648 # include <strings.h>
649 #endif
650 #ifdef HAVE_SYS_TYPES_H
651 # include <sys/types.h>
652 #endif
653 #ifdef HAVE_SYS_STAT_H
654 # include <sys/stat.h>
655 #endif
630656 #ifdef HAVE_UNISTD_H
631657 # include <unistd.h>
632658 #endif"
633659
660 ac_header_c_list=
634661 ac_subst_vars='am__EXEEXT_FALSE
635662 am__EXEEXT_TRUE
636663 LTLIBOBJS
678705 AR
679706 DLLTOOL
680707 OBJDUMP
708 FILECMD
681709 NM
682710 ac_ct_DUMPBIN
683711 DUMPBIN
684712 LD
685713 FGREP
714 EGREP
715 GREP
686716 SED
687717 host_os
688718 host_vendor
693723 build_cpu
694724 build
695725 LIBTOOL
696 EGREP
697 GREP
698 CPP
699726 LN_S
700727 am__fastdepCXX_FALSE
701728 am__fastdepCXX_TRUE
723750 AM_DEFAULT_VERBOSITY
724751 AM_DEFAULT_V
725752 AM_V
753 CSCOPE
754 ETAGS
755 CTAGS
726756 am__untar
727757 am__tar
728758 AMTAR
818848 CXX
819849 CXXFLAGS
820850 CCC
821 CPP
822851 LT_SYS_LIBRARY_PATH
823852 CXXCPP
824853 PKG_CONFIG
895924 *) ac_optarg=yes ;;
896925 esac
897926
898 # Accept the important Cygnus configure options, so we can diagnose typos.
899
900927 case $ac_dashdash$ac_option in
901928 --)
902929 ac_dashdash=yes ;;
937964 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
938965 # Reject names that are not valid shell variable names.
939966 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
940 as_fn_error $? "invalid feature name: $ac_useropt"
967 as_fn_error $? "invalid feature name: \`$ac_useropt'"
941968 ac_useropt_orig=$ac_useropt
942 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
969 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
943970 case $ac_user_opts in
944971 *"
945972 "enable_$ac_useropt"
963990 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
964991 # Reject names that are not valid shell variable names.
965992 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
966 as_fn_error $? "invalid feature name: $ac_useropt"
993 as_fn_error $? "invalid feature name: \`$ac_useropt'"
967994 ac_useropt_orig=$ac_useropt
968 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
995 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
969996 case $ac_user_opts in
970997 *"
971998 "enable_$ac_useropt"
11761203 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
11771204 # Reject names that are not valid shell variable names.
11781205 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1179 as_fn_error $? "invalid package name: $ac_useropt"
1206 as_fn_error $? "invalid package name: \`$ac_useropt'"
11801207 ac_useropt_orig=$ac_useropt
1181 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1208 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
11821209 case $ac_user_opts in
11831210 *"
11841211 "with_$ac_useropt"
11921219 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
11931220 # Reject names that are not valid shell variable names.
11941221 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1195 as_fn_error $? "invalid package name: $ac_useropt"
1222 as_fn_error $? "invalid package name: \`$ac_useropt'"
11961223 ac_useropt_orig=$ac_useropt
1197 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1224 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
11981225 case $ac_user_opts in
11991226 *"
12001227 "with_$ac_useropt"
12381265
12391266 *)
12401267 # FIXME: should be removed in autoconf 3.0.
1241 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1268 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
12421269 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1243 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1270 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
12441271 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
12451272 ;;
12461273
12561283 case $enable_option_checking in
12571284 no) ;;
12581285 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1259 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1286 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
12601287 esac
12611288 fi
12621289
13201347 X"$as_myself" : 'X\(//\)[^/]' \| \
13211348 X"$as_myself" : 'X\(//\)$' \| \
13221349 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1323 $as_echo X"$as_myself" |
1350 printf "%s\n" X"$as_myself" |
13241351 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13251352 s//\1/
13261353 q
13771404 # Omit some internal or obsolete options to make the list less imposing.
13781405 # This message is too long to be a string in the A/UX 3.1 sh.
13791406 cat <<_ACEOF
1380 \`configure' configures protobuf-c 1.3.3 to adapt to many kinds of systems.
1407 \`configure' configures protobuf-c 1.4.0 to adapt to many kinds of systems.
13811408
13821409 Usage: $0 [OPTION]... [VAR=VALUE]...
13831410
14481475
14491476 if test -n "$ac_init_help"; then
14501477 case $ac_init_help in
1451 short | recursive ) echo "Configuration of protobuf-c 1.3.3:";;
1478 short | recursive ) echo "Configuration of protobuf-c 1.4.0:";;
14521479 esac
14531480 cat <<\_ACEOF
14541481
14991526 you have headers in a nonstandard directory <include dir>
15001527 CXX C++ compiler command
15011528 CXXFLAGS C++ compiler flags
1502 CPP C preprocessor
15031529 LT_SYS_LIBRARY_PATH
15041530 User-defined run-time library search path.
15051531 CXXCPP C++ preprocessor
15341560 case "$ac_dir" in
15351561 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15361562 *)
1537 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1563 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
15381564 # A ".." for each directory in $ac_dir_suffix.
1539 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1565 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15401566 case $ac_top_builddir_sub in
15411567 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15421568 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15641590 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15651591
15661592 cd "$ac_dir" || { ac_status=$?; continue; }
1567 # Check for guested configure.
1593 # Check for configure.gnu first; this name is used for a wrapper for
1594 # Metaconfig's "Configure" on case-insensitive file systems.
15681595 if test -f "$ac_srcdir/configure.gnu"; then
15691596 echo &&
15701597 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
15721599 echo &&
15731600 $SHELL "$ac_srcdir/configure" --help=recursive
15741601 else
1575 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1602 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
15761603 fi || ac_status=$?
15771604 cd "$ac_pwd" || { ac_status=$?; break; }
15781605 done
15811608 test -n "$ac_init_help" && exit $ac_status
15821609 if $ac_init_version; then
15831610 cat <<\_ACEOF
1584 protobuf-c configure 1.3.3
1585 generated by GNU Autoconf 2.69
1586
1587 Copyright (C) 2012 Free Software Foundation, Inc.
1611 protobuf-c configure 1.4.0
1612 generated by GNU Autoconf 2.71
1613
1614 Copyright (C) 2021 Free Software Foundation, Inc.
15881615 This configure script is free software; the Free Software Foundation
15891616 gives unlimited permission to copy, distribute and modify it.
15901617 _ACEOF
16011628 ac_fn_c_try_compile ()
16021629 {
16031630 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1604 rm -f conftest.$ac_objext
1631 rm -f conftest.$ac_objext conftest.beam
16051632 if { { ac_try="$ac_compile"
16061633 case "(($ac_try" in
16071634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16081635 *) ac_try_echo=$ac_try;;
16091636 esac
16101637 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1611 $as_echo "$ac_try_echo"; } >&5
1638 printf "%s\n" "$ac_try_echo"; } >&5
16121639 (eval "$ac_compile") 2>conftest.err
16131640 ac_status=$?
16141641 if test -s conftest.err; then
16161643 cat conftest.er1 >&5
16171644 mv -f conftest.er1 conftest.err
16181645 fi
1619 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1646 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16201647 test $ac_status = 0; } && {
16211648 test -z "$ac_c_werror_flag" ||
16221649 test ! -s conftest.err
1623 } && test -s conftest.$ac_objext; then :
1650 } && test -s conftest.$ac_objext
1651 then :
16241652 ac_retval=0
1625 else
1626 $as_echo "$as_me: failed program was:" >&5
1653 else $as_nop
1654 printf "%s\n" "$as_me: failed program was:" >&5
16271655 sed 's/^/| /' conftest.$ac_ext >&5
16281656
16291657 ac_retval=1
16391667 ac_fn_cxx_try_compile ()
16401668 {
16411669 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1642 rm -f conftest.$ac_objext
1670 rm -f conftest.$ac_objext conftest.beam
16431671 if { { ac_try="$ac_compile"
16441672 case "(($ac_try" in
16451673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16461674 *) ac_try_echo=$ac_try;;
16471675 esac
16481676 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1649 $as_echo "$ac_try_echo"; } >&5
1677 printf "%s\n" "$ac_try_echo"; } >&5
16501678 (eval "$ac_compile") 2>conftest.err
16511679 ac_status=$?
16521680 if test -s conftest.err; then
16541682 cat conftest.er1 >&5
16551683 mv -f conftest.er1 conftest.err
16561684 fi
1657 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1685 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16581686 test $ac_status = 0; } && {
16591687 test -z "$ac_cxx_werror_flag" ||
16601688 test ! -s conftest.err
1661 } && test -s conftest.$ac_objext; then :
1689 } && test -s conftest.$ac_objext
1690 then :
16621691 ac_retval=0
1663 else
1664 $as_echo "$as_me: failed program was:" >&5
1692 else $as_nop
1693 printf "%s\n" "$as_me: failed program was:" >&5
16651694 sed 's/^/| /' conftest.$ac_ext >&5
16661695
16671696 ac_retval=1
16701699 as_fn_set_status $ac_retval
16711700
16721701 } # ac_fn_cxx_try_compile
1673
1674 # ac_fn_c_try_cpp LINENO
1675 # ----------------------
1676 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1677 ac_fn_c_try_cpp ()
1678 {
1679 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1680 if { { ac_try="$ac_cpp conftest.$ac_ext"
1681 case "(($ac_try" in
1682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1683 *) ac_try_echo=$ac_try;;
1684 esac
1685 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1686 $as_echo "$ac_try_echo"; } >&5
1687 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1688 ac_status=$?
1689 if test -s conftest.err; then
1690 grep -v '^ *+' conftest.err >conftest.er1
1691 cat conftest.er1 >&5
1692 mv -f conftest.er1 conftest.err
1693 fi
1694 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1695 test $ac_status = 0; } > conftest.i && {
1696 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1697 test ! -s conftest.err
1698 }; then :
1699 ac_retval=0
1700 else
1701 $as_echo "$as_me: failed program was:" >&5
1702 sed 's/^/| /' conftest.$ac_ext >&5
1703
1704 ac_retval=1
1705 fi
1706 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1707 as_fn_set_status $ac_retval
1708
1709 } # ac_fn_c_try_cpp
1710
1711 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1712 # -------------------------------------------------------
1713 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1714 # the include files in INCLUDES and setting the cache variable VAR
1715 # accordingly.
1716 ac_fn_c_check_header_mongrel ()
1717 {
1718 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1719 if eval \${$3+:} false; then :
1720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1721 $as_echo_n "checking for $2... " >&6; }
1722 if eval \${$3+:} false; then :
1723 $as_echo_n "(cached) " >&6
1724 fi
1725 eval ac_res=\$$3
1726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1727 $as_echo "$ac_res" >&6; }
1728 else
1729 # Is the header compilable?
1730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1731 $as_echo_n "checking $2 usability... " >&6; }
1732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1733 /* end confdefs.h. */
1734 $4
1735 #include <$2>
1736 _ACEOF
1737 if ac_fn_c_try_compile "$LINENO"; then :
1738 ac_header_compiler=yes
1739 else
1740 ac_header_compiler=no
1741 fi
1742 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1744 $as_echo "$ac_header_compiler" >&6; }
1745
1746 # Is the header present?
1747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1748 $as_echo_n "checking $2 presence... " >&6; }
1749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1750 /* end confdefs.h. */
1751 #include <$2>
1752 _ACEOF
1753 if ac_fn_c_try_cpp "$LINENO"; then :
1754 ac_header_preproc=yes
1755 else
1756 ac_header_preproc=no
1757 fi
1758 rm -f conftest.err conftest.i conftest.$ac_ext
1759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1760 $as_echo "$ac_header_preproc" >&6; }
1761
1762 # So? What about this header?
1763 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1764 yes:no: )
1765 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1766 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1767 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1768 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1769 ;;
1770 no:yes:* )
1771 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1772 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1773 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1774 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1775 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1776 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1777 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1778 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1779 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1780 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1781 ( $as_echo "## -------------------------------------------------------------- ##
1782 ## Report this to https://github.com/protobuf-c/protobuf-c/issues ##
1783 ## -------------------------------------------------------------- ##"
1784 ) | sed "s/^/$as_me: WARNING: /" >&2
1785 ;;
1786 esac
1787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1788 $as_echo_n "checking for $2... " >&6; }
1789 if eval \${$3+:} false; then :
1790 $as_echo_n "(cached) " >&6
1791 else
1792 eval "$3=\$ac_header_compiler"
1793 fi
1794 eval ac_res=\$$3
1795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1796 $as_echo "$ac_res" >&6; }
1797 fi
1798 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1799
1800 } # ac_fn_c_check_header_mongrel
1801
1802 # ac_fn_c_try_run LINENO
1803 # ----------------------
1804 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1805 # that executables *can* be run.
1806 ac_fn_c_try_run ()
1807 {
1808 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1809 if { { ac_try="$ac_link"
1810 case "(($ac_try" in
1811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1812 *) ac_try_echo=$ac_try;;
1813 esac
1814 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1815 $as_echo "$ac_try_echo"; } >&5
1816 (eval "$ac_link") 2>&5
1817 ac_status=$?
1818 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1819 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1820 { { case "(($ac_try" in
1821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1822 *) ac_try_echo=$ac_try;;
1823 esac
1824 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1825 $as_echo "$ac_try_echo"; } >&5
1826 (eval "$ac_try") 2>&5
1827 ac_status=$?
1828 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1829 test $ac_status = 0; }; }; then :
1830 ac_retval=0
1831 else
1832 $as_echo "$as_me: program exited with status $ac_status" >&5
1833 $as_echo "$as_me: failed program was:" >&5
1834 sed 's/^/| /' conftest.$ac_ext >&5
1835
1836 ac_retval=$ac_status
1837 fi
1838 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1839 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1840 as_fn_set_status $ac_retval
1841
1842 } # ac_fn_c_try_run
18431702
18441703 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
18451704 # -------------------------------------------------------
18481707 ac_fn_c_check_header_compile ()
18491708 {
18501709 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1852 $as_echo_n "checking for $2... " >&6; }
1853 if eval \${$3+:} false; then :
1854 $as_echo_n "(cached) " >&6
1855 else
1710 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1711 printf %s "checking for $2... " >&6; }
1712 if eval test \${$3+y}
1713 then :
1714 printf %s "(cached) " >&6
1715 else $as_nop
18561716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18571717 /* end confdefs.h. */
18581718 $4
18591719 #include <$2>
18601720 _ACEOF
1861 if ac_fn_c_try_compile "$LINENO"; then :
1721 if ac_fn_c_try_compile "$LINENO"
1722 then :
18621723 eval "$3=yes"
1863 else
1724 else $as_nop
18641725 eval "$3=no"
18651726 fi
1866 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1727 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18671728 fi
18681729 eval ac_res=\$$3
1869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1870 $as_echo "$ac_res" >&6; }
1730 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1731 printf "%s\n" "$ac_res" >&6; }
18711732 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
18721733
18731734 } # ac_fn_c_check_header_compile
18781739 ac_fn_c_try_link ()
18791740 {
18801741 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1881 rm -f conftest.$ac_objext conftest$ac_exeext
1742 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
18821743 if { { ac_try="$ac_link"
18831744 case "(($ac_try" in
18841745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18851746 *) ac_try_echo=$ac_try;;
18861747 esac
18871748 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1888 $as_echo "$ac_try_echo"; } >&5
1749 printf "%s\n" "$ac_try_echo"; } >&5
18891750 (eval "$ac_link") 2>conftest.err
18901751 ac_status=$?
18911752 if test -s conftest.err; then
18931754 cat conftest.er1 >&5
18941755 mv -f conftest.er1 conftest.err
18951756 fi
1896 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1757 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18971758 test $ac_status = 0; } && {
18981759 test -z "$ac_c_werror_flag" ||
18991760 test ! -s conftest.err
19001761 } && test -s conftest$ac_exeext && {
19011762 test "$cross_compiling" = yes ||
19021763 test -x conftest$ac_exeext
1903 }; then :
1764 }
1765 then :
19041766 ac_retval=0
1905 else
1906 $as_echo "$as_me: failed program was:" >&5
1767 else $as_nop
1768 printf "%s\n" "$as_me: failed program was:" >&5
19071769 sed 's/^/| /' conftest.$ac_ext >&5
19081770
19091771 ac_retval=1
19241786 ac_fn_c_check_func ()
19251787 {
19261788 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1928 $as_echo_n "checking for $2... " >&6; }
1929 if eval \${$3+:} false; then :
1930 $as_echo_n "(cached) " >&6
1931 else
1789 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1790 printf %s "checking for $2... " >&6; }
1791 if eval test \${$3+y}
1792 then :
1793 printf %s "(cached) " >&6
1794 else $as_nop
19321795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19331796 /* end confdefs.h. */
19341797 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
19361799 #define $2 innocuous_$2
19371800
19381801 /* System header to define __stub macros and hopefully few prototypes,
1939 which can conflict with char $2 (); below.
1940 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1941 <limits.h> exists even on freestanding compilers. */
1942
1943 #ifdef __STDC__
1944 # include <limits.h>
1945 #else
1946 # include <assert.h>
1947 #endif
1948
1802 which can conflict with char $2 (); below. */
1803
1804 #include <limits.h>
19491805 #undef $2
19501806
19511807 /* Override any GCC internal prototype to avoid an error.
19631819 #endif
19641820
19651821 int
1966 main ()
1822 main (void)
19671823 {
19681824 return $2 ();
19691825 ;
19701826 return 0;
19711827 }
19721828 _ACEOF
1973 if ac_fn_c_try_link "$LINENO"; then :
1829 if ac_fn_c_try_link "$LINENO"
1830 then :
19741831 eval "$3=yes"
1975 else
1832 else $as_nop
19761833 eval "$3=no"
19771834 fi
1978 rm -f core conftest.err conftest.$ac_objext \
1835 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19791836 conftest$ac_exeext conftest.$ac_ext
19801837 fi
19811838 eval ac_res=\$$3
1982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1983 $as_echo "$ac_res" >&6; }
1839 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1840 printf "%s\n" "$ac_res" >&6; }
19841841 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
19851842
19861843 } # ac_fn_c_check_func
19971854 *) ac_try_echo=$ac_try;;
19981855 esac
19991856 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2000 $as_echo "$ac_try_echo"; } >&5
1857 printf "%s\n" "$ac_try_echo"; } >&5
20011858 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
20021859 ac_status=$?
20031860 if test -s conftest.err; then
20051862 cat conftest.er1 >&5
20061863 mv -f conftest.er1 conftest.err
20071864 fi
2008 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1865 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20091866 test $ac_status = 0; } > conftest.i && {
20101867 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
20111868 test ! -s conftest.err
2012 }; then :
1869 }
1870 then :
20131871 ac_retval=0
2014 else
2015 $as_echo "$as_me: failed program was:" >&5
1872 else $as_nop
1873 printf "%s\n" "$as_me: failed program was:" >&5
20161874 sed 's/^/| /' conftest.$ac_ext >&5
20171875
20181876 ac_retval=1
20281886 ac_fn_cxx_try_link ()
20291887 {
20301888 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2031 rm -f conftest.$ac_objext conftest$ac_exeext
1889 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
20321890 if { { ac_try="$ac_link"
20331891 case "(($ac_try" in
20341892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20351893 *) ac_try_echo=$ac_try;;
20361894 esac
20371895 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2038 $as_echo "$ac_try_echo"; } >&5
1896 printf "%s\n" "$ac_try_echo"; } >&5
20391897 (eval "$ac_link") 2>conftest.err
20401898 ac_status=$?
20411899 if test -s conftest.err; then
20431901 cat conftest.er1 >&5
20441902 mv -f conftest.er1 conftest.err
20451903 fi
2046 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1904 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20471905 test $ac_status = 0; } && {
20481906 test -z "$ac_cxx_werror_flag" ||
20491907 test ! -s conftest.err
20501908 } && test -s conftest$ac_exeext && {
20511909 test "$cross_compiling" = yes ||
20521910 test -x conftest$ac_exeext
2053 }; then :
1911 }
1912 then :
20541913 ac_retval=0
2055 else
2056 $as_echo "$as_me: failed program was:" >&5
1914 else $as_nop
1915 printf "%s\n" "$as_me: failed program was:" >&5
20571916 sed 's/^/| /' conftest.$ac_ext >&5
20581917
20591918 ac_retval=1
20681927
20691928 } # ac_fn_cxx_try_link
20701929
2071 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
1930 # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
20721931 # ---------------------------------------------------------
2073 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2074 # the include files in INCLUDES and setting the cache variable VAR
2075 # accordingly.
2076 ac_fn_cxx_check_header_mongrel ()
1932 # Tests whether HEADER exists and can be compiled using the include files in
1933 # INCLUDES, setting the cache variable VAR accordingly.
1934 ac_fn_cxx_check_header_compile ()
20771935 {
20781936 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2079 if eval \${$3+:} false; then :
2080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2081 $as_echo_n "checking for $2... " >&6; }
2082 if eval \${$3+:} false; then :
2083 $as_echo_n "(cached) " >&6
2084 fi
2085 eval ac_res=\$$3
2086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2087 $as_echo "$ac_res" >&6; }
2088 else
2089 # Is the header compilable?
2090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2091 $as_echo_n "checking $2 usability... " >&6; }
2092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1937 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1938 printf %s "checking for $2... " >&6; }
1939 if eval test \${$3+y}
1940 then :
1941 printf %s "(cached) " >&6
1942 else $as_nop
1943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20931944 /* end confdefs.h. */
20941945 $4
20951946 #include <$2>
20961947 _ACEOF
2097 if ac_fn_cxx_try_compile "$LINENO"; then :
2098 ac_header_compiler=yes
2099 else
2100 ac_header_compiler=no
2101 fi
2102 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2104 $as_echo "$ac_header_compiler" >&6; }
2105
2106 # Is the header present?
2107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2108 $as_echo_n "checking $2 presence... " >&6; }
2109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2110 /* end confdefs.h. */
2111 #include <$2>
2112 _ACEOF
2113 if ac_fn_cxx_try_cpp "$LINENO"; then :
2114 ac_header_preproc=yes
2115 else
2116 ac_header_preproc=no
2117 fi
2118 rm -f conftest.err conftest.i conftest.$ac_ext
2119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2120 $as_echo "$ac_header_preproc" >&6; }
2121
2122 # So? What about this header?
2123 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2124 yes:no: )
2125 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2126 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2127 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2128 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2129 ;;
2130 no:yes:* )
2131 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2132 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2133 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2134 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2135 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2136 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2137 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2138 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2139 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2140 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2141 ( $as_echo "## -------------------------------------------------------------- ##
2142 ## Report this to https://github.com/protobuf-c/protobuf-c/issues ##
2143 ## -------------------------------------------------------------- ##"
2144 ) | sed "s/^/$as_me: WARNING: /" >&2
2145 ;;
2146 esac
2147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2148 $as_echo_n "checking for $2... " >&6; }
2149 if eval \${$3+:} false; then :
2150 $as_echo_n "(cached) " >&6
2151 else
2152 eval "$3=\$ac_header_compiler"
1948 if ac_fn_cxx_try_compile "$LINENO"
1949 then :
1950 eval "$3=yes"
1951 else $as_nop
1952 eval "$3=no"
1953 fi
1954 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
21531955 fi
21541956 eval ac_res=\$$3
2155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2156 $as_echo "$ac_res" >&6; }
2157 fi
1957 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1958 printf "%s\n" "$ac_res" >&6; }
21581959 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
21591960
2160 } # ac_fn_cxx_check_header_mongrel
1961 } # ac_fn_cxx_check_header_compile
21611962
21621963 # ac_fn_cxx_try_run LINENO
21631964 # ------------------------
2164 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2165 # that executables *can* be run.
1965 # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
1966 # executables *can* be run.
21661967 ac_fn_cxx_try_run ()
21671968 {
21681969 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
21721973 *) ac_try_echo=$ac_try;;
21731974 esac
21741975 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2175 $as_echo "$ac_try_echo"; } >&5
1976 printf "%s\n" "$ac_try_echo"; } >&5
21761977 (eval "$ac_link") 2>&5
21771978 ac_status=$?
2178 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1979 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21791980 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
21801981 { { case "(($ac_try" in
21811982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21821983 *) ac_try_echo=$ac_try;;
21831984 esac
21841985 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2185 $as_echo "$ac_try_echo"; } >&5
1986 printf "%s\n" "$ac_try_echo"; } >&5
21861987 (eval "$ac_try") 2>&5
21871988 ac_status=$?
2188 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2189 test $ac_status = 0; }; }; then :
1989 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1990 test $ac_status = 0; }; }
1991 then :
21901992 ac_retval=0
2191 else
2192 $as_echo "$as_me: program exited with status $ac_status" >&5
2193 $as_echo "$as_me: failed program was:" >&5
1993 else $as_nop
1994 printf "%s\n" "$as_me: program exited with status $ac_status" >&5
1995 printf "%s\n" "$as_me: failed program was:" >&5
21941996 sed 's/^/| /' conftest.$ac_ext >&5
21951997
21961998 ac_retval=$ac_status
22002002 as_fn_set_status $ac_retval
22012003
22022004 } # ac_fn_cxx_try_run
2005 ac_configure_args_raw=
2006 for ac_arg
2007 do
2008 case $ac_arg in
2009 *\'*)
2010 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2011 esac
2012 as_fn_append ac_configure_args_raw " '$ac_arg'"
2013 done
2014
2015 case $ac_configure_args_raw in
2016 *$as_nl*)
2017 ac_safe_unquote= ;;
2018 *)
2019 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
2020 ac_unsafe_a="$ac_unsafe_z#~"
2021 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
2022 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
2023 esac
2024
22032025 cat >config.log <<_ACEOF
22042026 This file contains any messages produced by compilers while
22052027 running configure, to aid debugging if configure makes a mistake.
22062028
2207 It was created by protobuf-c $as_me 1.3.3, which was
2208 generated by GNU Autoconf 2.69. Invocation command line was
2209
2210 $ $0 $@
2029 It was created by protobuf-c $as_me 1.4.0, which was
2030 generated by GNU Autoconf 2.71. Invocation command line was
2031
2032 $ $0$ac_configure_args_raw
22112033
22122034 _ACEOF
22132035 exec 5>>config.log
22402062 for as_dir in $PATH
22412063 do
22422064 IFS=$as_save_IFS
2243 test -z "$as_dir" && as_dir=.
2244 $as_echo "PATH: $as_dir"
2065 case $as_dir in #(((
2066 '') as_dir=./ ;;
2067 */) ;;
2068 *) as_dir=$as_dir/ ;;
2069 esac
2070 printf "%s\n" "PATH: $as_dir"
22452071 done
22462072 IFS=$as_save_IFS
22472073
22762102 | -silent | --silent | --silen | --sile | --sil)
22772103 continue ;;
22782104 *\'*)
2279 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2105 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22802106 esac
22812107 case $ac_pass in
22822108 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
23112137 # WARNING: Use '\'' to represent an apostrophe within the trap.
23122138 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
23132139 trap 'exit_status=$?
2140 # Sanitize IFS.
2141 IFS=" "" $as_nl"
23142142 # Save into config.log some information that might help in debugging.
23152143 {
23162144 echo
23172145
2318 $as_echo "## ---------------- ##
2146 printf "%s\n" "## ---------------- ##
23192147 ## Cache variables. ##
23202148 ## ---------------- ##"
23212149 echo
23262154 case $ac_val in #(
23272155 *${as_nl}*)
23282156 case $ac_var in #(
2329 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2330 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2157 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2158 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
23312159 esac
23322160 case $ac_var in #(
23332161 _ | IFS | as_nl) ;; #(
23512179 )
23522180 echo
23532181
2354 $as_echo "## ----------------- ##
2182 printf "%s\n" "## ----------------- ##
23552183 ## Output variables. ##
23562184 ## ----------------- ##"
23572185 echo
23592187 do
23602188 eval ac_val=\$$ac_var
23612189 case $ac_val in
2362 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2190 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
23632191 esac
2364 $as_echo "$ac_var='\''$ac_val'\''"
2192 printf "%s\n" "$ac_var='\''$ac_val'\''"
23652193 done | sort
23662194 echo
23672195
23682196 if test -n "$ac_subst_files"; then
2369 $as_echo "## ------------------- ##
2197 printf "%s\n" "## ------------------- ##
23702198 ## File substitutions. ##
23712199 ## ------------------- ##"
23722200 echo
23742202 do
23752203 eval ac_val=\$$ac_var
23762204 case $ac_val in
2377 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2205 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
23782206 esac
2379 $as_echo "$ac_var='\''$ac_val'\''"
2207 printf "%s\n" "$ac_var='\''$ac_val'\''"
23802208 done | sort
23812209 echo
23822210 fi
23832211
23842212 if test -s confdefs.h; then
2385 $as_echo "## ----------- ##
2213 printf "%s\n" "## ----------- ##
23862214 ## confdefs.h. ##
23872215 ## ----------- ##"
23882216 echo
23902218 echo
23912219 fi
23922220 test "$ac_signal" != 0 &&
2393 $as_echo "$as_me: caught signal $ac_signal"
2394 $as_echo "$as_me: exit $exit_status"
2221 printf "%s\n" "$as_me: caught signal $ac_signal"
2222 printf "%s\n" "$as_me: exit $exit_status"
23952223 } >&5
23962224 rm -f core *.core core.conftest.* &&
23972225 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
24052233 # confdefs.h avoids OS command line length limits that DEFS can exceed.
24062234 rm -f -r conftest* confdefs.h
24072235
2408 $as_echo "/* confdefs.h */" > confdefs.h
2236 printf "%s\n" "/* confdefs.h */" > confdefs.h
24092237
24102238 # Predefined preprocessor variables.
24112239
2412 cat >>confdefs.h <<_ACEOF
2413 #define PACKAGE_NAME "$PACKAGE_NAME"
2414 _ACEOF
2415
2416 cat >>confdefs.h <<_ACEOF
2417 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2418 _ACEOF
2419
2420 cat >>confdefs.h <<_ACEOF
2421 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2422 _ACEOF
2423
2424 cat >>confdefs.h <<_ACEOF
2425 #define PACKAGE_STRING "$PACKAGE_STRING"
2426 _ACEOF
2427
2428 cat >>confdefs.h <<_ACEOF
2429 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2430 _ACEOF
2431
2432 cat >>confdefs.h <<_ACEOF
2433 #define PACKAGE_URL "$PACKAGE_URL"
2434 _ACEOF
2240 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2241
2242 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2243
2244 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2245
2246 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2247
2248 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2249
2250 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
24352251
24362252
24372253 # Let the site file select an alternate cache file if it wants to.
24382254 # Prefer an explicitly selected file to automatically selected ones.
2439 ac_site_file1=NONE
2440 ac_site_file2=NONE
24412255 if test -n "$CONFIG_SITE"; then
2442 # We do not want a PATH search for config.site.
2443 case $CONFIG_SITE in #((
2444 -*) ac_site_file1=./$CONFIG_SITE;;
2445 */*) ac_site_file1=$CONFIG_SITE;;
2446 *) ac_site_file1=./$CONFIG_SITE;;
2447 esac
2256 ac_site_files="$CONFIG_SITE"
24482257 elif test "x$prefix" != xNONE; then
2449 ac_site_file1=$prefix/share/config.site
2450 ac_site_file2=$prefix/etc/config.site
2258 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
24512259 else
2452 ac_site_file1=$ac_default_prefix/share/config.site
2453 ac_site_file2=$ac_default_prefix/etc/config.site
2454 fi
2455 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2260 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2261 fi
2262
2263 for ac_site_file in $ac_site_files
24562264 do
2457 test "x$ac_site_file" = xNONE && continue
2458 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2459 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2460 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2265 case $ac_site_file in #(
2266 */*) :
2267 ;; #(
2268 *) :
2269 ac_site_file=./$ac_site_file ;;
2270 esac
2271 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2272 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2273 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
24612274 sed 's/^/| /' "$ac_site_file" >&5
24622275 . "$ac_site_file" \
2463 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2464 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2276 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2277 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
24652278 as_fn_error $? "failed to load site script $ac_site_file
24662279 See \`config.log' for more details" "$LINENO" 5; }
24672280 fi
24712284 # Some versions of bash will fail to source /dev/null (special files
24722285 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
24732286 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2474 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2475 $as_echo "$as_me: loading cache $cache_file" >&6;}
2287 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2288 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
24762289 case $cache_file in
24772290 [\\/]* | ?:[\\/]* ) . "$cache_file";;
24782291 *) . "./$cache_file";;
24792292 esac
24802293 fi
24812294 else
2482 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2483 $as_echo "$as_me: creating cache $cache_file" >&6;}
2295 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2296 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
24842297 >$cache_file
2298 fi
2299
2300 # Test code for whether the C compiler supports C89 (global declarations)
2301 ac_c_conftest_c89_globals='
2302 /* Does the compiler advertise C89 conformance?
2303 Do not test the value of __STDC__, because some compilers set it to 0
2304 while being otherwise adequately conformant. */
2305 #if !defined __STDC__
2306 # error "Compiler does not advertise C89 conformance"
2307 #endif
2308
2309 #include <stddef.h>
2310 #include <stdarg.h>
2311 struct stat;
2312 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2313 struct buf { int x; };
2314 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2315 static char *e (p, i)
2316 char **p;
2317 int i;
2318 {
2319 return p[i];
2320 }
2321 static char *f (char * (*g) (char **, int), char **p, ...)
2322 {
2323 char *s;
2324 va_list v;
2325 va_start (v,p);
2326 s = g (p, va_arg (v,int));
2327 va_end (v);
2328 return s;
2329 }
2330
2331 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2332 function prototypes and stuff, but not \xHH hex character constants.
2333 These do not provoke an error unfortunately, instead are silently treated
2334 as an "x". The following induces an error, until -std is added to get
2335 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2336 array size at least. It is necessary to write \x00 == 0 to get something
2337 that is true only with -std. */
2338 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2339
2340 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2341 inside strings and character constants. */
2342 #define FOO(x) '\''x'\''
2343 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2344
2345 int test (int i, double x);
2346 struct s1 {int (*f) (int a);};
2347 struct s2 {int (*f) (double a);};
2348 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2349 int, int);'
2350
2351 # Test code for whether the C compiler supports C89 (body of main).
2352 ac_c_conftest_c89_main='
2353 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2354 '
2355
2356 # Test code for whether the C compiler supports C99 (global declarations)
2357 ac_c_conftest_c99_globals='
2358 // Does the compiler advertise C99 conformance?
2359 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2360 # error "Compiler does not advertise C99 conformance"
2361 #endif
2362
2363 #include <stdbool.h>
2364 extern int puts (const char *);
2365 extern int printf (const char *, ...);
2366 extern int dprintf (int, const char *, ...);
2367 extern void *malloc (size_t);
2368
2369 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2370 // dprintf is used instead of fprintf to avoid needing to declare
2371 // FILE and stderr.
2372 #define debug(...) dprintf (2, __VA_ARGS__)
2373 #define showlist(...) puts (#__VA_ARGS__)
2374 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2375 static void
2376 test_varargs_macros (void)
2377 {
2378 int x = 1234;
2379 int y = 5678;
2380 debug ("Flag");
2381 debug ("X = %d\n", x);
2382 showlist (The first, second, and third items.);
2383 report (x>y, "x is %d but y is %d", x, y);
2384 }
2385
2386 // Check long long types.
2387 #define BIG64 18446744073709551615ull
2388 #define BIG32 4294967295ul
2389 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2390 #if !BIG_OK
2391 #error "your preprocessor is broken"
2392 #endif
2393 #if BIG_OK
2394 #else
2395 #error "your preprocessor is broken"
2396 #endif
2397 static long long int bignum = -9223372036854775807LL;
2398 static unsigned long long int ubignum = BIG64;
2399
2400 struct incomplete_array
2401 {
2402 int datasize;
2403 double data[];
2404 };
2405
2406 struct named_init {
2407 int number;
2408 const wchar_t *name;
2409 double average;
2410 };
2411
2412 typedef const char *ccp;
2413
2414 static inline int
2415 test_restrict (ccp restrict text)
2416 {
2417 // See if C++-style comments work.
2418 // Iterate through items via the restricted pointer.
2419 // Also check for declarations in for loops.
2420 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2421 continue;
2422 return 0;
2423 }
2424
2425 // Check varargs and va_copy.
2426 static bool
2427 test_varargs (const char *format, ...)
2428 {
2429 va_list args;
2430 va_start (args, format);
2431 va_list args_copy;
2432 va_copy (args_copy, args);
2433
2434 const char *str = "";
2435 int number = 0;
2436 float fnumber = 0;
2437
2438 while (*format)
2439 {
2440 switch (*format++)
2441 {
2442 case '\''s'\'': // string
2443 str = va_arg (args_copy, const char *);
2444 break;
2445 case '\''d'\'': // int
2446 number = va_arg (args_copy, int);
2447 break;
2448 case '\''f'\'': // float
2449 fnumber = va_arg (args_copy, double);
2450 break;
2451 default:
2452 break;
2453 }
2454 }
2455 va_end (args_copy);
2456 va_end (args);
2457
2458 return *str && number && fnumber;
2459 }
2460 '
2461
2462 # Test code for whether the C compiler supports C99 (body of main).
2463 ac_c_conftest_c99_main='
2464 // Check bool.
2465 _Bool success = false;
2466 success |= (argc != 0);
2467
2468 // Check restrict.
2469 if (test_restrict ("String literal") == 0)
2470 success = true;
2471 char *restrict newvar = "Another string";
2472
2473 // Check varargs.
2474 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2475 test_varargs_macros ();
2476
2477 // Check flexible array members.
2478 struct incomplete_array *ia =
2479 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2480 ia->datasize = 10;
2481 for (int i = 0; i < ia->datasize; ++i)
2482 ia->data[i] = i * 1.234;
2483
2484 // Check named initializers.
2485 struct named_init ni = {
2486 .number = 34,
2487 .name = L"Test wide string",
2488 .average = 543.34343,
2489 };
2490
2491 ni.number = 58;
2492
2493 int dynamic_array[ni.number];
2494 dynamic_array[0] = argv[0][0];
2495 dynamic_array[ni.number - 1] = 543;
2496
2497 // work around unused variable warnings
2498 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2499 || dynamic_array[ni.number - 1] != 543);
2500 '
2501
2502 # Test code for whether the C compiler supports C11 (global declarations)
2503 ac_c_conftest_c11_globals='
2504 // Does the compiler advertise C11 conformance?
2505 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2506 # error "Compiler does not advertise C11 conformance"
2507 #endif
2508
2509 // Check _Alignas.
2510 char _Alignas (double) aligned_as_double;
2511 char _Alignas (0) no_special_alignment;
2512 extern char aligned_as_int;
2513 char _Alignas (0) _Alignas (int) aligned_as_int;
2514
2515 // Check _Alignof.
2516 enum
2517 {
2518 int_alignment = _Alignof (int),
2519 int_array_alignment = _Alignof (int[100]),
2520 char_alignment = _Alignof (char)
2521 };
2522 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2523
2524 // Check _Noreturn.
2525 int _Noreturn does_not_return (void) { for (;;) continue; }
2526
2527 // Check _Static_assert.
2528 struct test_static_assert
2529 {
2530 int x;
2531 _Static_assert (sizeof (int) <= sizeof (long int),
2532 "_Static_assert does not work in struct");
2533 long int y;
2534 };
2535
2536 // Check UTF-8 literals.
2537 #define u8 syntax error!
2538 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2539
2540 // Check duplicate typedefs.
2541 typedef long *long_ptr;
2542 typedef long int *long_ptr;
2543 typedef long_ptr long_ptr;
2544
2545 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2546 struct anonymous
2547 {
2548 union {
2549 struct { int i; int j; };
2550 struct { int k; long int l; } w;
2551 };
2552 int m;
2553 } v1;
2554 '
2555
2556 # Test code for whether the C compiler supports C11 (body of main).
2557 ac_c_conftest_c11_main='
2558 _Static_assert ((offsetof (struct anonymous, i)
2559 == offsetof (struct anonymous, w.k)),
2560 "Anonymous union alignment botch");
2561 v1.i = 2;
2562 v1.w.k = 5;
2563 ok |= v1.i != 5;
2564 '
2565
2566 # Test code for whether the C compiler supports C11 (complete).
2567 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2568 ${ac_c_conftest_c99_globals}
2569 ${ac_c_conftest_c11_globals}
2570
2571 int
2572 main (int argc, char **argv)
2573 {
2574 int ok = 0;
2575 ${ac_c_conftest_c89_main}
2576 ${ac_c_conftest_c99_main}
2577 ${ac_c_conftest_c11_main}
2578 return ok;
2579 }
2580 "
2581
2582 # Test code for whether the C compiler supports C99 (complete).
2583 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2584 ${ac_c_conftest_c99_globals}
2585
2586 int
2587 main (int argc, char **argv)
2588 {
2589 int ok = 0;
2590 ${ac_c_conftest_c89_main}
2591 ${ac_c_conftest_c99_main}
2592 return ok;
2593 }
2594 "
2595
2596 # Test code for whether the C compiler supports C89 (complete).
2597 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2598
2599 int
2600 main (int argc, char **argv)
2601 {
2602 int ok = 0;
2603 ${ac_c_conftest_c89_main}
2604 return ok;
2605 }
2606 "
2607
2608 # Test code for whether the C++ compiler supports C++98 (global declarations)
2609 ac_cxx_conftest_cxx98_globals='
2610 // Does the compiler advertise C++98 conformance?
2611 #if !defined __cplusplus || __cplusplus < 199711L
2612 # error "Compiler does not advertise C++98 conformance"
2613 #endif
2614
2615 // These inclusions are to reject old compilers that
2616 // lack the unsuffixed header files.
2617 #include <cstdlib>
2618 #include <exception>
2619
2620 // <cassert> and <cstring> are *not* freestanding headers in C++98.
2621 extern void assert (int);
2622 namespace std {
2623 extern int strcmp (const char *, const char *);
2624 }
2625
2626 // Namespaces, exceptions, and templates were all added after "C++ 2.0".
2627 using std::exception;
2628 using std::strcmp;
2629
2630 namespace {
2631
2632 void test_exception_syntax()
2633 {
2634 try {
2635 throw "test";
2636 } catch (const char *s) {
2637 // Extra parentheses suppress a warning when building autoconf itself,
2638 // due to lint rules shared with more typical C programs.
2639 assert (!(strcmp) (s, "test"));
2640 }
2641 }
2642
2643 template <typename T> struct test_template
2644 {
2645 T const val;
2646 explicit test_template(T t) : val(t) {}
2647 template <typename U> T add(U u) { return static_cast<T>(u) + val; }
2648 };
2649
2650 } // anonymous namespace
2651 '
2652
2653 # Test code for whether the C++ compiler supports C++98 (body of main)
2654 ac_cxx_conftest_cxx98_main='
2655 assert (argc);
2656 assert (! argv[0]);
2657 {
2658 test_exception_syntax ();
2659 test_template<double> tt (2.0);
2660 assert (tt.add (4) == 6.0);
2661 assert (true && !false);
2662 }
2663 '
2664
2665 # Test code for whether the C++ compiler supports C++11 (global declarations)
2666 ac_cxx_conftest_cxx11_globals='
2667 // Does the compiler advertise C++ 2011 conformance?
2668 #if !defined __cplusplus || __cplusplus < 201103L
2669 # error "Compiler does not advertise C++11 conformance"
2670 #endif
2671
2672 namespace cxx11test
2673 {
2674 constexpr int get_val() { return 20; }
2675
2676 struct testinit
2677 {
2678 int i;
2679 double d;
2680 };
2681
2682 class delegate
2683 {
2684 public:
2685 delegate(int n) : n(n) {}
2686 delegate(): delegate(2354) {}
2687
2688 virtual int getval() { return this->n; };
2689 protected:
2690 int n;
2691 };
2692
2693 class overridden : public delegate
2694 {
2695 public:
2696 overridden(int n): delegate(n) {}
2697 virtual int getval() override final { return this->n * 2; }
2698 };
2699
2700 class nocopy
2701 {
2702 public:
2703 nocopy(int i): i(i) {}
2704 nocopy() = default;
2705 nocopy(const nocopy&) = delete;
2706 nocopy & operator=(const nocopy&) = delete;
2707 private:
2708 int i;
2709 };
2710
2711 // for testing lambda expressions
2712 template <typename Ret, typename Fn> Ret eval(Fn f, Ret v)
2713 {
2714 return f(v);
2715 }
2716
2717 // for testing variadic templates and trailing return types
2718 template <typename V> auto sum(V first) -> V
2719 {
2720 return first;
2721 }
2722 template <typename V, typename... Args> auto sum(V first, Args... rest) -> V
2723 {
2724 return first + sum(rest...);
2725 }
2726 }
2727 '
2728
2729 # Test code for whether the C++ compiler supports C++11 (body of main)
2730 ac_cxx_conftest_cxx11_main='
2731 {
2732 // Test auto and decltype
2733 auto a1 = 6538;
2734 auto a2 = 48573953.4;
2735 auto a3 = "String literal";
2736
2737 int total = 0;
2738 for (auto i = a3; *i; ++i) { total += *i; }
2739
2740 decltype(a2) a4 = 34895.034;
2741 }
2742 {
2743 // Test constexpr
2744 short sa[cxx11test::get_val()] = { 0 };
2745 }
2746 {
2747 // Test initializer lists
2748 cxx11test::testinit il = { 4323, 435234.23544 };
2749 }
2750 {
2751 // Test range-based for
2752 int array[] = {9, 7, 13, 15, 4, 18, 12, 10, 5, 3,
2753 14, 19, 17, 8, 6, 20, 16, 2, 11, 1};
2754 for (auto &x : array) { x += 23; }
2755 }
2756 {
2757 // Test lambda expressions
2758 using cxx11test::eval;
2759 assert (eval ([](int x) { return x*2; }, 21) == 42);
2760 double d = 2.0;
2761 assert (eval ([&](double x) { return d += x; }, 3.0) == 5.0);
2762 assert (d == 5.0);
2763 assert (eval ([=](double x) mutable { return d += x; }, 4.0) == 9.0);
2764 assert (d == 5.0);
2765 }
2766 {
2767 // Test use of variadic templates
2768 using cxx11test::sum;
2769 auto a = sum(1);
2770 auto b = sum(1, 2);
2771 auto c = sum(1.0, 2.0, 3.0);
2772 }
2773 {
2774 // Test constructor delegation
2775 cxx11test::delegate d1;
2776 cxx11test::delegate d2();
2777 cxx11test::delegate d3(45);
2778 }
2779 {
2780 // Test override and final
2781 cxx11test::overridden o1(55464);
2782 }
2783 {
2784 // Test nullptr
2785 char *c = nullptr;
2786 }
2787 {
2788 // Test template brackets
2789 test_template<::test_template<int>> v(test_template<int>(12));
2790 }
2791 {
2792 // Unicode literals
2793 char const *utf8 = u8"UTF-8 string \u2500";
2794 char16_t const *utf16 = u"UTF-8 string \u2500";
2795 char32_t const *utf32 = U"UTF-32 string \u2500";
2796 }
2797 '
2798
2799 # Test code for whether the C compiler supports C++11 (complete).
2800 ac_cxx_conftest_cxx11_program="${ac_cxx_conftest_cxx98_globals}
2801 ${ac_cxx_conftest_cxx11_globals}
2802
2803 int
2804 main (int argc, char **argv)
2805 {
2806 int ok = 0;
2807 ${ac_cxx_conftest_cxx98_main}
2808 ${ac_cxx_conftest_cxx11_main}
2809 return ok;
2810 }
2811 "
2812
2813 # Test code for whether the C compiler supports C++98 (complete).
2814 ac_cxx_conftest_cxx98_program="${ac_cxx_conftest_cxx98_globals}
2815 int
2816 main (int argc, char **argv)
2817 {
2818 int ok = 0;
2819 ${ac_cxx_conftest_cxx98_main}
2820 return ok;
2821 }
2822 "
2823
2824 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2825 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2826 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2827 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2828 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2829 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2830 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2831 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2832 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2833 as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H"
2834 as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H"
2835
2836 # Auxiliary files required by this configure script.
2837 ac_aux_files="config.guess config.sub ltmain.sh compile missing install-sh"
2838
2839 # Locations in which to look for auxiliary files.
2840 ac_aux_dir_candidates="${srcdir}/build-aux"
2841
2842 # Search for a directory containing all of the required auxiliary files,
2843 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2844 # If we don't find one directory that contains all the files we need,
2845 # we report the set of missing files from the *first* directory in
2846 # $ac_aux_dir_candidates and give up.
2847 ac_missing_aux_files=""
2848 ac_first_candidate=:
2849 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2851 as_found=false
2852 for as_dir in $ac_aux_dir_candidates
2853 do
2854 IFS=$as_save_IFS
2855 case $as_dir in #(((
2856 '') as_dir=./ ;;
2857 */) ;;
2858 *) as_dir=$as_dir/ ;;
2859 esac
2860 as_found=:
2861
2862 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
2863 ac_aux_dir_found=yes
2864 ac_install_sh=
2865 for ac_aux in $ac_aux_files
2866 do
2867 # As a special case, if "install-sh" is required, that requirement
2868 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2869 # and $ac_install_sh is set appropriately for whichever one is found.
2870 if test x"$ac_aux" = x"install-sh"
2871 then
2872 if test -f "${as_dir}install-sh"; then
2873 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
2874 ac_install_sh="${as_dir}install-sh -c"
2875 elif test -f "${as_dir}install.sh"; then
2876 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
2877 ac_install_sh="${as_dir}install.sh -c"
2878 elif test -f "${as_dir}shtool"; then
2879 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
2880 ac_install_sh="${as_dir}shtool install -c"
2881 else
2882 ac_aux_dir_found=no
2883 if $ac_first_candidate; then
2884 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2885 else
2886 break
2887 fi
2888 fi
2889 else
2890 if test -f "${as_dir}${ac_aux}"; then
2891 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
2892 else
2893 ac_aux_dir_found=no
2894 if $ac_first_candidate; then
2895 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2896 else
2897 break
2898 fi
2899 fi
2900 fi
2901 done
2902 if test "$ac_aux_dir_found" = yes; then
2903 ac_aux_dir="$as_dir"
2904 break
2905 fi
2906 ac_first_candidate=false
2907
2908 as_found=false
2909 done
2910 IFS=$as_save_IFS
2911 if $as_found
2912 then :
2913
2914 else $as_nop
2915 as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
2916 fi
2917
2918
2919 # These three variables are undocumented and unsupported,
2920 # and are intended to be withdrawn in a future Autoconf release.
2921 # They can cause serious problems if a builder's source tree is in a directory
2922 # whose full name contains unusual characters.
2923 if test -f "${ac_aux_dir}config.guess"; then
2924 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2925 fi
2926 if test -f "${ac_aux_dir}config.sub"; then
2927 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2928 fi
2929 if test -f "$ac_aux_dir/configure"; then
2930 ac_configure="$SHELL ${ac_aux_dir}configure"
24852931 fi
24862932
24872933 # Check that the precious variables saved in the cache have kept the same
24942940 eval ac_new_val=\$ac_env_${ac_var}_value
24952941 case $ac_old_set,$ac_new_set in
24962942 set,)
2497 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2498 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2943 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2944 printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
24992945 ac_cache_corrupted=: ;;
25002946 ,set)
2501 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2502 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2947 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2948 printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
25032949 ac_cache_corrupted=: ;;
25042950 ,);;
25052951 *)
25082954 ac_old_val_w=`echo x $ac_old_val`
25092955 ac_new_val_w=`echo x $ac_new_val`
25102956 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2511 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2512 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2957 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2958 printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
25132959 ac_cache_corrupted=:
25142960 else
2515 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2516 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2961 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2962 printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
25172963 eval $ac_var=\$ac_old_val
25182964 fi
2519 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2520 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2521 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2522 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2965 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2966 printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;}
2967 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2968 printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;}
25232969 fi;;
25242970 esac
25252971 # Pass precious variables to config.status.
25262972 if test "$ac_new_set" = set; then
25272973 case $ac_new_val in
2528 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2974 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
25292975 *) ac_arg=$ac_var=$ac_new_val ;;
25302976 esac
25312977 case " $ac_configure_args " in
25352981 fi
25362982 done
25372983 if $ac_cache_corrupted; then
2538 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2539 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2540 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2541 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2542 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2984 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2985 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2986 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2987 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2988 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
2989 and start over" "$LINENO" 5
25432990 fi
25442991 ## -------------------- ##
25452992 ## Main body of script. ##
25563003
25573004
25583005
2559 ac_aux_dir=
2560 for ac_dir in build-aux "$srcdir"/build-aux; do
2561 if test -f "$ac_dir/install-sh"; then
2562 ac_aux_dir=$ac_dir
2563 ac_install_sh="$ac_aux_dir/install-sh -c"
2564 break
2565 elif test -f "$ac_dir/install.sh"; then
2566 ac_aux_dir=$ac_dir
2567 ac_install_sh="$ac_aux_dir/install.sh -c"
2568 break
2569 elif test -f "$ac_dir/shtool"; then
2570 ac_aux_dir=$ac_dir
2571 ac_install_sh="$ac_aux_dir/shtool install -c"
2572 break
2573 fi
2574 done
2575 if test -z "$ac_aux_dir"; then
2576 as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
2577 fi
2578
2579 # These three variables are undocumented and unsupported,
2580 # and are intended to be withdrawn in a future Autoconf release.
2581 # They can cause serious problems if a builder's source tree is in a directory
2582 # whose full name contains unusual characters.
2583 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2584 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2585 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2586
25873006
25883007 am__api_version='1.16'
25893008
2590 # Find a good install program. We prefer a C program (faster),
3009
3010
3011 # Find a good install program. We prefer a C program (faster),
25913012 # so one script is as good as another. But avoid the broken or
25923013 # incompatible versions:
25933014 # SysV /etc/install, /usr/sbin/install
26013022 # OS/2's system install, which has a completely different semantic
26023023 # ./install, which can be erroneously created by make from ./install.sh.
26033024 # Reject install programs that cannot install multiple files.
2604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2605 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3025 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3026 printf %s "checking for a BSD-compatible install... " >&6; }
26063027 if test -z "$INSTALL"; then
2607 if ${ac_cv_path_install+:} false; then :
2608 $as_echo_n "(cached) " >&6
2609 else
3028 if test ${ac_cv_path_install+y}
3029 then :
3030 printf %s "(cached) " >&6
3031 else $as_nop
26103032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26113033 for as_dir in $PATH
26123034 do
26133035 IFS=$as_save_IFS
2614 test -z "$as_dir" && as_dir=.
2615 # Account for people who put trailing slashes in PATH elements.
2616 case $as_dir/ in #((
2617 ./ | .// | /[cC]/* | \
3036 case $as_dir in #(((
3037 '') as_dir=./ ;;
3038 */) ;;
3039 *) as_dir=$as_dir/ ;;
3040 esac
3041 # Account for fact that we put trailing slashes in our PATH walk.
3042 case $as_dir in #((
3043 ./ | /[cC]/* | \
26183044 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
26193045 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
26203046 /usr/ucb/* ) ;;
26243050 # by default.
26253051 for ac_prog in ginstall scoinst install; do
26263052 for ac_exec_ext in '' $ac_executable_extensions; do
2627 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3053 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
26283054 if test $ac_prog = install &&
2629 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3055 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
26303056 # AIX install. It has an incompatible calling convention.
26313057 :
26323058 elif test $ac_prog = install &&
2633 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3059 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
26343060 # program-specific install script used by HP pwplus--don't use.
26353061 :
26363062 else
26383064 echo one > conftest.one
26393065 echo two > conftest.two
26403066 mkdir conftest.dir
2641 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3067 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
26423068 test -s conftest.one && test -s conftest.two &&
26433069 test -s conftest.dir/conftest.one &&
26443070 test -s conftest.dir/conftest.two
26453071 then
2646 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3072 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
26473073 break 3
26483074 fi
26493075 fi
26593085 rm -rf conftest.one conftest.two conftest.dir
26603086
26613087 fi
2662 if test "${ac_cv_path_install+set}" = set; then
3088 if test ${ac_cv_path_install+y}; then
26633089 INSTALL=$ac_cv_path_install
26643090 else
26653091 # As a last resort, use the slow shell script. Don't cache a
26693095 INSTALL=$ac_install_sh
26703096 fi
26713097 fi
2672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2673 $as_echo "$INSTALL" >&6; }
3098 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3099 printf "%s\n" "$INSTALL" >&6; }
26743100
26753101 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
26763102 # It thinks the first close brace ends the variable substitution.
26803106
26813107 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
26823108
2683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2684 $as_echo_n "checking whether build environment is sane... " >&6; }
3109 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3110 printf %s "checking whether build environment is sane... " >&6; }
26853111 # Reject unsafe characters in $srcdir or the absolute working directory
26863112 # name. Accept space and tab only in the latter.
26873113 am_lf='
27353161 as_fn_error $? "newly created file is older than distributed files!
27363162 Check your system clock" "$LINENO" 5
27373163 fi
2738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2739 $as_echo "yes" >&6; }
3164 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3165 printf "%s\n" "yes" >&6; }
27403166 # If we didn't sleep, we still need to ensure time stamps of config.status and
27413167 # generated files are strictly newer.
27423168 am_sleep_pid=
27553181 # Double any \ or $.
27563182 # By default was `s,x,x', remove it if useless.
27573183 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2758 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3184 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
3185
27593186
27603187 # Expand $ac_aux_dir to an absolute path.
27613188 am_aux_dir=`cd "$ac_aux_dir" && pwd`
27623189
2763 if test x"${MISSING+set}" != xset; then
2764 case $am_aux_dir in
2765 *\ * | *\ *)
2766 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2767 *)
2768 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2769 esac
3190
3191 if test x"${MISSING+set}" != xset; then
3192 MISSING="\${SHELL} '$am_aux_dir/missing'"
27703193 fi
27713194 # Use eval to expand $SHELL
27723195 if eval "$MISSING --is-lightweight"; then
27733196 am_missing_run="$MISSING "
27743197 else
27753198 am_missing_run=
2776 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2777 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3199 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3200 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
27783201 fi
27793202
27803203 if test x"${install_sh+set}" != xset; then
27943217 if test -n "$ac_tool_prefix"; then
27953218 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
27963219 set dummy ${ac_tool_prefix}strip; ac_word=$2
2797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2798 $as_echo_n "checking for $ac_word... " >&6; }
2799 if ${ac_cv_prog_STRIP+:} false; then :
2800 $as_echo_n "(cached) " >&6
2801 else
3220 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3221 printf %s "checking for $ac_word... " >&6; }
3222 if test ${ac_cv_prog_STRIP+y}
3223 then :
3224 printf %s "(cached) " >&6
3225 else $as_nop
28023226 if test -n "$STRIP"; then
28033227 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
28043228 else
28063230 for as_dir in $PATH
28073231 do
28083232 IFS=$as_save_IFS
2809 test -z "$as_dir" && as_dir=.
3233 case $as_dir in #(((
3234 '') as_dir=./ ;;
3235 */) ;;
3236 *) as_dir=$as_dir/ ;;
3237 esac
28103238 for ac_exec_ext in '' $ac_executable_extensions; do
2811 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3239 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
28123240 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2813 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3241 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
28143242 break 2
28153243 fi
28163244 done
28213249 fi
28223250 STRIP=$ac_cv_prog_STRIP
28233251 if test -n "$STRIP"; then
2824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2825 $as_echo "$STRIP" >&6; }
3252 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3253 printf "%s\n" "$STRIP" >&6; }
28263254 else
2827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2828 $as_echo "no" >&6; }
3255 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3256 printf "%s\n" "no" >&6; }
28293257 fi
28303258
28313259
28343262 ac_ct_STRIP=$STRIP
28353263 # Extract the first word of "strip", so it can be a program name with args.
28363264 set dummy strip; ac_word=$2
2837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2838 $as_echo_n "checking for $ac_word... " >&6; }
2839 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2840 $as_echo_n "(cached) " >&6
2841 else
3265 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3266 printf %s "checking for $ac_word... " >&6; }
3267 if test ${ac_cv_prog_ac_ct_STRIP+y}
3268 then :
3269 printf %s "(cached) " >&6
3270 else $as_nop
28423271 if test -n "$ac_ct_STRIP"; then
28433272 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
28443273 else
28463275 for as_dir in $PATH
28473276 do
28483277 IFS=$as_save_IFS
2849 test -z "$as_dir" && as_dir=.
3278 case $as_dir in #(((
3279 '') as_dir=./ ;;
3280 */) ;;
3281 *) as_dir=$as_dir/ ;;
3282 esac
28503283 for ac_exec_ext in '' $ac_executable_extensions; do
2851 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3284 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
28523285 ac_cv_prog_ac_ct_STRIP="strip"
2853 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3286 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
28543287 break 2
28553288 fi
28563289 done
28613294 fi
28623295 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
28633296 if test -n "$ac_ct_STRIP"; then
2864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2865 $as_echo "$ac_ct_STRIP" >&6; }
3297 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3298 printf "%s\n" "$ac_ct_STRIP" >&6; }
28663299 else
2867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2868 $as_echo "no" >&6; }
3300 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3301 printf "%s\n" "no" >&6; }
28693302 fi
28703303
28713304 if test "x$ac_ct_STRIP" = x; then
28733306 else
28743307 case $cross_compiling:$ac_tool_warned in
28753308 yes:)
2876 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2877 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3309 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3310 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
28783311 ac_tool_warned=yes ;;
28793312 esac
28803313 STRIP=$ac_ct_STRIP
28863319 fi
28873320 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
28883321
2889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2890 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3322
3323 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
3324 printf %s "checking for a race-free mkdir -p... " >&6; }
28913325 if test -z "$MKDIR_P"; then
2892 if ${ac_cv_path_mkdir+:} false; then :
2893 $as_echo_n "(cached) " >&6
2894 else
3326 if test ${ac_cv_path_mkdir+y}
3327 then :
3328 printf %s "(cached) " >&6
3329 else $as_nop
28953330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28963331 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
28973332 do
28983333 IFS=$as_save_IFS
2899 test -z "$as_dir" && as_dir=.
3334 case $as_dir in #(((
3335 '') as_dir=./ ;;
3336 */) ;;
3337 *) as_dir=$as_dir/ ;;
3338 esac
29003339 for ac_prog in mkdir gmkdir; do
29013340 for ac_exec_ext in '' $ac_executable_extensions; do
2902 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2903 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2904 'mkdir (GNU coreutils) '* | \
2905 'mkdir (coreutils) '* | \
3341 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
3342 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
3343 'mkdir ('*'coreutils) '* | \
3344 'BusyBox '* | \
29063345 'mkdir (fileutils) '4.1*)
2907 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3346 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
29083347 break 3;;
29093348 esac
29103349 done
29153354 fi
29163355
29173356 test -d ./--version && rmdir ./--version
2918 if test "${ac_cv_path_mkdir+set}" = set; then
3357 if test ${ac_cv_path_mkdir+y}; then
29193358 MKDIR_P="$ac_cv_path_mkdir -p"
29203359 else
29213360 # As a last resort, use the slow shell script. Don't cache a
29253364 MKDIR_P="$ac_install_sh -d"
29263365 fi
29273366 fi
2928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2929 $as_echo "$MKDIR_P" >&6; }
3367 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3368 printf "%s\n" "$MKDIR_P" >&6; }
29303369
29313370 for ac_prog in gawk mawk nawk awk
29323371 do
29333372 # Extract the first word of "$ac_prog", so it can be a program name with args.
29343373 set dummy $ac_prog; ac_word=$2
2935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2936 $as_echo_n "checking for $ac_word... " >&6; }
2937 if ${ac_cv_prog_AWK+:} false; then :
2938 $as_echo_n "(cached) " >&6
2939 else
3374 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3375 printf %s "checking for $ac_word... " >&6; }
3376 if test ${ac_cv_prog_AWK+y}
3377 then :
3378 printf %s "(cached) " >&6
3379 else $as_nop
29403380 if test -n "$AWK"; then
29413381 ac_cv_prog_AWK="$AWK" # Let the user override the test.
29423382 else
29443384 for as_dir in $PATH
29453385 do
29463386 IFS=$as_save_IFS
2947 test -z "$as_dir" && as_dir=.
3387 case $as_dir in #(((
3388 '') as_dir=./ ;;
3389 */) ;;
3390 *) as_dir=$as_dir/ ;;
3391 esac
29483392 for ac_exec_ext in '' $ac_executable_extensions; do
2949 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3393 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
29503394 ac_cv_prog_AWK="$ac_prog"
2951 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3395 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
29523396 break 2
29533397 fi
29543398 done
29593403 fi
29603404 AWK=$ac_cv_prog_AWK
29613405 if test -n "$AWK"; then
2962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2963 $as_echo "$AWK" >&6; }
3406 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3407 printf "%s\n" "$AWK" >&6; }
29643408 else
2965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2966 $as_echo "no" >&6; }
3409 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3410 printf "%s\n" "no" >&6; }
29673411 fi
29683412
29693413
29703414 test -n "$AWK" && break
29713415 done
29723416
2973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2974 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3417 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3418 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
29753419 set x ${MAKE-make}
2976 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2977 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2978 $as_echo_n "(cached) " >&6
2979 else
3420 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3421 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
3422 then :
3423 printf %s "(cached) " >&6
3424 else $as_nop
29803425 cat >conftest.make <<\_ACEOF
29813426 SHELL = /bin/sh
29823427 all:
29923437 rm -f conftest.make
29933438 fi
29943439 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2996 $as_echo "yes" >&6; }
3440 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3441 printf "%s\n" "yes" >&6; }
29973442 SET_MAKE=
29983443 else
2999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3000 $as_echo "no" >&6; }
3444 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3445 printf "%s\n" "no" >&6; }
30013446 SET_MAKE="MAKE=${MAKE-make}"
30023447 fi
30033448
30113456 rmdir .tst 2>/dev/null
30123457
30133458 # Check whether --enable-silent-rules was given.
3014 if test "${enable_silent_rules+set}" = set; then :
3459 if test ${enable_silent_rules+y}
3460 then :
30153461 enableval=$enable_silent_rules;
30163462 fi
30173463
30213467 *) AM_DEFAULT_VERBOSITY=1;;
30223468 esac
30233469 am_make=${MAKE-make}
3024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3025 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3026 if ${am_cv_make_support_nested_variables+:} false; then :
3027 $as_echo_n "(cached) " >&6
3028 else
3029 if $as_echo 'TRUE=$(BAR$(V))
3470 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3471 printf %s "checking whether $am_make supports nested variables... " >&6; }
3472 if test ${am_cv_make_support_nested_variables+y}
3473 then :
3474 printf %s "(cached) " >&6
3475 else $as_nop
3476 if printf "%s\n" 'TRUE=$(BAR$(V))
30303477 BAR0=false
30313478 BAR1=true
30323479 V=1
30383485 am_cv_make_support_nested_variables=no
30393486 fi
30403487 fi
3041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3042 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3488 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3489 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
30433490 if test $am_cv_make_support_nested_variables = yes; then
30443491 AM_V='$(V)'
30453492 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
30713518
30723519 # Define the identity of the package.
30733520 PACKAGE='protobuf-c'
3074 VERSION='1.3.3'
3075
3076
3077 cat >>confdefs.h <<_ACEOF
3078 #define PACKAGE "$PACKAGE"
3079 _ACEOF
3080
3081
3082 cat >>confdefs.h <<_ACEOF
3083 #define VERSION "$VERSION"
3084 _ACEOF
3521 VERSION='1.4.0'
3522
3523
3524 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
3525
3526
3527 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
30853528
30863529 # Some tools Automake needs.
30873530
31193562
31203563
31213564
3565
3566
3567 # Variables for tags utilities; see am/tags.am
3568 if test -z "$CTAGS"; then
3569 CTAGS=ctags
3570 fi
3571
3572 if test -z "$ETAGS"; then
3573 ETAGS=etags
3574 fi
3575
3576 if test -z "$CSCOPE"; then
3577 CSCOPE=cscope
3578 fi
31223579
31233580
31243581
31643621 fi
31653622 fi
31663623
3624
3625
3626
3627
3628
3629
3630
3631
3632
31673633 DEPDIR="${am__leading_dot}deps"
31683634
31693635 ac_config_commands="$ac_config_commands depfiles"
31703636
3171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3172 $as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; }
3637 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3638 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
31733639 cat > confinc.mk << 'END'
31743640 am__doit:
31753641 @echo this is the am__doit target >confinc.out
32053671 fi
32063672 done
32073673 rm -f confinc.* confmf.*
3208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3209 $as_echo "${_am_result}" >&6; }
3674 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3675 printf "%s\n" "${_am_result}" >&6; }
32103676
32113677 # Check whether --enable-dependency-tracking was given.
3212 if test "${enable_dependency_tracking+set}" = set; then :
3678 if test ${enable_dependency_tracking+y}
3679 then :
32133680 enableval=$enable_dependency_tracking;
32143681 fi
32153682
32353702 if test -n "$ac_tool_prefix"; then
32363703 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
32373704 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3239 $as_echo_n "checking for $ac_word... " >&6; }
3240 if ${ac_cv_prog_CC+:} false; then :
3241 $as_echo_n "(cached) " >&6
3242 else
3705 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3706 printf %s "checking for $ac_word... " >&6; }
3707 if test ${ac_cv_prog_CC+y}
3708 then :
3709 printf %s "(cached) " >&6
3710 else $as_nop
32433711 if test -n "$CC"; then
32443712 ac_cv_prog_CC="$CC" # Let the user override the test.
32453713 else
32473715 for as_dir in $PATH
32483716 do
32493717 IFS=$as_save_IFS
3250 test -z "$as_dir" && as_dir=.
3718 case $as_dir in #(((
3719 '') as_dir=./ ;;
3720 */) ;;
3721 *) as_dir=$as_dir/ ;;
3722 esac
32513723 for ac_exec_ext in '' $ac_executable_extensions; do
3252 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3724 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
32533725 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3254 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3726 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
32553727 break 2
32563728 fi
32573729 done
32623734 fi
32633735 CC=$ac_cv_prog_CC
32643736 if test -n "$CC"; then
3265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3266 $as_echo "$CC" >&6; }
3737 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3738 printf "%s\n" "$CC" >&6; }
32673739 else
3268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3269 $as_echo "no" >&6; }
3740 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3741 printf "%s\n" "no" >&6; }
32703742 fi
32713743
32723744
32753747 ac_ct_CC=$CC
32763748 # Extract the first word of "gcc", so it can be a program name with args.
32773749 set dummy gcc; ac_word=$2
3278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3279 $as_echo_n "checking for $ac_word... " >&6; }
3280 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3281 $as_echo_n "(cached) " >&6
3282 else
3750 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3751 printf %s "checking for $ac_word... " >&6; }
3752 if test ${ac_cv_prog_ac_ct_CC+y}
3753 then :
3754 printf %s "(cached) " >&6
3755 else $as_nop
32833756 if test -n "$ac_ct_CC"; then
32843757 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
32853758 else
32873760 for as_dir in $PATH
32883761 do
32893762 IFS=$as_save_IFS
3290 test -z "$as_dir" && as_dir=.
3763 case $as_dir in #(((
3764 '') as_dir=./ ;;
3765 */) ;;
3766 *) as_dir=$as_dir/ ;;
3767 esac
32913768 for ac_exec_ext in '' $ac_executable_extensions; do
3292 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3769 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
32933770 ac_cv_prog_ac_ct_CC="gcc"
3294 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3771 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
32953772 break 2
32963773 fi
32973774 done
33023779 fi
33033780 ac_ct_CC=$ac_cv_prog_ac_ct_CC
33043781 if test -n "$ac_ct_CC"; then
3305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3306 $as_echo "$ac_ct_CC" >&6; }
3782 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3783 printf "%s\n" "$ac_ct_CC" >&6; }
33073784 else
3308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3309 $as_echo "no" >&6; }
3785 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3786 printf "%s\n" "no" >&6; }
33103787 fi
33113788
33123789 if test "x$ac_ct_CC" = x; then
33143791 else
33153792 case $cross_compiling:$ac_tool_warned in
33163793 yes:)
3317 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3318 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3794 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3795 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
33193796 ac_tool_warned=yes ;;
33203797 esac
33213798 CC=$ac_ct_CC
33283805 if test -n "$ac_tool_prefix"; then
33293806 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
33303807 set dummy ${ac_tool_prefix}cc; ac_word=$2
3331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3332 $as_echo_n "checking for $ac_word... " >&6; }
3333 if ${ac_cv_prog_CC+:} false; then :
3334 $as_echo_n "(cached) " >&6
3335 else
3808 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3809 printf %s "checking for $ac_word... " >&6; }
3810 if test ${ac_cv_prog_CC+y}
3811 then :
3812 printf %s "(cached) " >&6
3813 else $as_nop
33363814 if test -n "$CC"; then
33373815 ac_cv_prog_CC="$CC" # Let the user override the test.
33383816 else
33403818 for as_dir in $PATH
33413819 do
33423820 IFS=$as_save_IFS
3343 test -z "$as_dir" && as_dir=.
3821 case $as_dir in #(((
3822 '') as_dir=./ ;;
3823 */) ;;
3824 *) as_dir=$as_dir/ ;;
3825 esac
33443826 for ac_exec_ext in '' $ac_executable_extensions; do
3345 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3827 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
33463828 ac_cv_prog_CC="${ac_tool_prefix}cc"
3347 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3829 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
33483830 break 2
33493831 fi
33503832 done
33553837 fi
33563838 CC=$ac_cv_prog_CC
33573839 if test -n "$CC"; then
3358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3359 $as_echo "$CC" >&6; }
3840 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3841 printf "%s\n" "$CC" >&6; }
33603842 else
3361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3362 $as_echo "no" >&6; }
3843 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3844 printf "%s\n" "no" >&6; }
33633845 fi
33643846
33653847
33683850 if test -z "$CC"; then
33693851 # Extract the first word of "cc", so it can be a program name with args.
33703852 set dummy cc; ac_word=$2
3371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3372 $as_echo_n "checking for $ac_word... " >&6; }
3373 if ${ac_cv_prog_CC+:} false; then :
3374 $as_echo_n "(cached) " >&6
3375 else
3853 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3854 printf %s "checking for $ac_word... " >&6; }
3855 if test ${ac_cv_prog_CC+y}
3856 then :
3857 printf %s "(cached) " >&6
3858 else $as_nop
33763859 if test -n "$CC"; then
33773860 ac_cv_prog_CC="$CC" # Let the user override the test.
33783861 else
33813864 for as_dir in $PATH
33823865 do
33833866 IFS=$as_save_IFS
3384 test -z "$as_dir" && as_dir=.
3867 case $as_dir in #(((
3868 '') as_dir=./ ;;
3869 */) ;;
3870 *) as_dir=$as_dir/ ;;
3871 esac
33853872 for ac_exec_ext in '' $ac_executable_extensions; do
3386 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3387 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3873 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3874 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
33883875 ac_prog_rejected=yes
33893876 continue
33903877 fi
33913878 ac_cv_prog_CC="cc"
3392 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3879 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
33933880 break 2
33943881 fi
33953882 done
34053892 # However, it has the same basename, so the bogon will be chosen
34063893 # first if we set CC to just the basename; use the full file name.
34073894 shift
3408 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3895 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
34093896 fi
34103897 fi
34113898 fi
34123899 fi
34133900 CC=$ac_cv_prog_CC
34143901 if test -n "$CC"; then
3415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3416 $as_echo "$CC" >&6; }
3902 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3903 printf "%s\n" "$CC" >&6; }
34173904 else
3418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3419 $as_echo "no" >&6; }
3905 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3906 printf "%s\n" "no" >&6; }
34203907 fi
34213908
34223909
34273914 do
34283915 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
34293916 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3431 $as_echo_n "checking for $ac_word... " >&6; }
3432 if ${ac_cv_prog_CC+:} false; then :
3433 $as_echo_n "(cached) " >&6
3434 else
3917 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3918 printf %s "checking for $ac_word... " >&6; }
3919 if test ${ac_cv_prog_CC+y}
3920 then :
3921 printf %s "(cached) " >&6
3922 else $as_nop
34353923 if test -n "$CC"; then
34363924 ac_cv_prog_CC="$CC" # Let the user override the test.
34373925 else
34393927 for as_dir in $PATH
34403928 do
34413929 IFS=$as_save_IFS
3442 test -z "$as_dir" && as_dir=.
3930 case $as_dir in #(((
3931 '') as_dir=./ ;;
3932 */) ;;
3933 *) as_dir=$as_dir/ ;;
3934 esac
34433935 for ac_exec_ext in '' $ac_executable_extensions; do
3444 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3936 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
34453937 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3446 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3938 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
34473939 break 2
34483940 fi
34493941 done
34543946 fi
34553947 CC=$ac_cv_prog_CC
34563948 if test -n "$CC"; then
3457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3458 $as_echo "$CC" >&6; }
3949 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3950 printf "%s\n" "$CC" >&6; }
34593951 else
3460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3461 $as_echo "no" >&6; }
3952 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3953 printf "%s\n" "no" >&6; }
34623954 fi
34633955
34643956
34713963 do
34723964 # Extract the first word of "$ac_prog", so it can be a program name with args.
34733965 set dummy $ac_prog; ac_word=$2
3474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3475 $as_echo_n "checking for $ac_word... " >&6; }
3476 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3477 $as_echo_n "(cached) " >&6
3478 else
3966 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3967 printf %s "checking for $ac_word... " >&6; }
3968 if test ${ac_cv_prog_ac_ct_CC+y}
3969 then :
3970 printf %s "(cached) " >&6
3971 else $as_nop
34793972 if test -n "$ac_ct_CC"; then
34803973 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
34813974 else
34833976 for as_dir in $PATH
34843977 do
34853978 IFS=$as_save_IFS
3486 test -z "$as_dir" && as_dir=.
3979 case $as_dir in #(((
3980 '') as_dir=./ ;;
3981 */) ;;
3982 *) as_dir=$as_dir/ ;;
3983 esac
34873984 for ac_exec_ext in '' $ac_executable_extensions; do
3488 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3985 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
34893986 ac_cv_prog_ac_ct_CC="$ac_prog"
3490 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3987 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
34913988 break 2
34923989 fi
34933990 done
34983995 fi
34993996 ac_ct_CC=$ac_cv_prog_ac_ct_CC
35003997 if test -n "$ac_ct_CC"; then
3501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3502 $as_echo "$ac_ct_CC" >&6; }
3998 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3999 printf "%s\n" "$ac_ct_CC" >&6; }
35034000 else
3504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3505 $as_echo "no" >&6; }
4001 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4002 printf "%s\n" "no" >&6; }
35064003 fi
35074004
35084005
35144011 else
35154012 case $cross_compiling:$ac_tool_warned in
35164013 yes:)
3517 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3518 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4014 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4015 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
35194016 ac_tool_warned=yes ;;
35204017 esac
35214018 CC=$ac_ct_CC
35234020 fi
35244021
35254022 fi
3526
3527
3528 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3529 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4023 if test -z "$CC"; then
4024 if test -n "$ac_tool_prefix"; then
4025 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
4026 set dummy ${ac_tool_prefix}clang; ac_word=$2
4027 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4028 printf %s "checking for $ac_word... " >&6; }
4029 if test ${ac_cv_prog_CC+y}
4030 then :
4031 printf %s "(cached) " >&6
4032 else $as_nop
4033 if test -n "$CC"; then
4034 ac_cv_prog_CC="$CC" # Let the user override the test.
4035 else
4036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4037 for as_dir in $PATH
4038 do
4039 IFS=$as_save_IFS
4040 case $as_dir in #(((
4041 '') as_dir=./ ;;
4042 */) ;;
4043 *) as_dir=$as_dir/ ;;
4044 esac
4045 for ac_exec_ext in '' $ac_executable_extensions; do
4046 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4047 ac_cv_prog_CC="${ac_tool_prefix}clang"
4048 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4049 break 2
4050 fi
4051 done
4052 done
4053 IFS=$as_save_IFS
4054
4055 fi
4056 fi
4057 CC=$ac_cv_prog_CC
4058 if test -n "$CC"; then
4059 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4060 printf "%s\n" "$CC" >&6; }
4061 else
4062 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4063 printf "%s\n" "no" >&6; }
4064 fi
4065
4066
4067 fi
4068 if test -z "$ac_cv_prog_CC"; then
4069 ac_ct_CC=$CC
4070 # Extract the first word of "clang", so it can be a program name with args.
4071 set dummy clang; ac_word=$2
4072 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4073 printf %s "checking for $ac_word... " >&6; }
4074 if test ${ac_cv_prog_ac_ct_CC+y}
4075 then :
4076 printf %s "(cached) " >&6
4077 else $as_nop
4078 if test -n "$ac_ct_CC"; then
4079 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4080 else
4081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4082 for as_dir in $PATH
4083 do
4084 IFS=$as_save_IFS
4085 case $as_dir in #(((
4086 '') as_dir=./ ;;
4087 */) ;;
4088 *) as_dir=$as_dir/ ;;
4089 esac
4090 for ac_exec_ext in '' $ac_executable_extensions; do
4091 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4092 ac_cv_prog_ac_ct_CC="clang"
4093 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4094 break 2
4095 fi
4096 done
4097 done
4098 IFS=$as_save_IFS
4099
4100 fi
4101 fi
4102 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4103 if test -n "$ac_ct_CC"; then
4104 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4105 printf "%s\n" "$ac_ct_CC" >&6; }
4106 else
4107 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4108 printf "%s\n" "no" >&6; }
4109 fi
4110
4111 if test "x$ac_ct_CC" = x; then
4112 CC=""
4113 else
4114 case $cross_compiling:$ac_tool_warned in
4115 yes:)
4116 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4117 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4118 ac_tool_warned=yes ;;
4119 esac
4120 CC=$ac_ct_CC
4121 fi
4122 else
4123 CC="$ac_cv_prog_CC"
4124 fi
4125
4126 fi
4127
4128
4129 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4130 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
35304131 as_fn_error $? "no acceptable C compiler found in \$PATH
35314132 See \`config.log' for more details" "$LINENO" 5; }
35324133
35334134 # Provide some information about the compiler.
3534 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4135 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
35354136 set X $ac_compile
35364137 ac_compiler=$2
3537 for ac_option in --version -v -V -qversion; do
4138 for ac_option in --version -v -V -qversion -version; do
35384139 { { ac_try="$ac_compiler $ac_option >&5"
35394140 case "(($ac_try" in
35404141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35414142 *) ac_try_echo=$ac_try;;
35424143 esac
35434144 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3544 $as_echo "$ac_try_echo"; } >&5
4145 printf "%s\n" "$ac_try_echo"; } >&5
35454146 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
35464147 ac_status=$?
35474148 if test -s conftest.err; then
35514152 cat conftest.er1 >&5
35524153 fi
35534154 rm -f conftest.er1 conftest.err
3554 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4155 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35554156 test $ac_status = 0; }
35564157 done
35574158
35594160 /* end confdefs.h. */
35604161
35614162 int
3562 main ()
4163 main (void)
35634164 {
35644165
35654166 ;
35714172 # Try to create an executable without -o first, disregard a.out.
35724173 # It will help us diagnose broken compilers, and finding out an intuition
35734174 # of exeext.
3574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3575 $as_echo_n "checking whether the C compiler works... " >&6; }
3576 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4175 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4176 printf %s "checking whether the C compiler works... " >&6; }
4177 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
35774178
35784179 # The possible output files:
35794180 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
35944195 *) ac_try_echo=$ac_try;;
35954196 esac
35964197 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3597 $as_echo "$ac_try_echo"; } >&5
4198 printf "%s\n" "$ac_try_echo"; } >&5
35984199 (eval "$ac_link_default") 2>&5
35994200 ac_status=$?
3600 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3601 test $ac_status = 0; }; then :
4201 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4202 test $ac_status = 0; }
4203 then :
36024204 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
36034205 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
36044206 # in a Makefile. We should not override ac_cv_exeext if it was cached,
36154217 # certainly right.
36164218 break;;
36174219 *.* )
3618 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4220 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
36194221 then :; else
36204222 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
36214223 fi
36314233 done
36324234 test "$ac_cv_exeext" = no && ac_cv_exeext=
36334235
3634 else
4236 else $as_nop
36354237 ac_file=''
36364238 fi
3637 if test -z "$ac_file"; then :
3638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3639 $as_echo "no" >&6; }
3640 $as_echo "$as_me: failed program was:" >&5
4239 if test -z "$ac_file"
4240 then :
4241 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4242 printf "%s\n" "no" >&6; }
4243 printf "%s\n" "$as_me: failed program was:" >&5
36414244 sed 's/^/| /' conftest.$ac_ext >&5
36424245
3643 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3644 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4246 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4247 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
36454248 as_fn_error 77 "C compiler cannot create executables
36464249 See \`config.log' for more details" "$LINENO" 5; }
3647 else
3648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3649 $as_echo "yes" >&6; }
3650 fi
3651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3652 $as_echo_n "checking for C compiler default output file name... " >&6; }
3653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3654 $as_echo "$ac_file" >&6; }
4250 else $as_nop
4251 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4252 printf "%s\n" "yes" >&6; }
4253 fi
4254 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4255 printf %s "checking for C compiler default output file name... " >&6; }
4256 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4257 printf "%s\n" "$ac_file" >&6; }
36554258 ac_exeext=$ac_cv_exeext
36564259
36574260 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
36584261 ac_clean_files=$ac_clean_files_save
3659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3660 $as_echo_n "checking for suffix of executables... " >&6; }
4262 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4263 printf %s "checking for suffix of executables... " >&6; }
36614264 if { { ac_try="$ac_link"
36624265 case "(($ac_try" in
36634266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36644267 *) ac_try_echo=$ac_try;;
36654268 esac
36664269 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3667 $as_echo "$ac_try_echo"; } >&5
4270 printf "%s\n" "$ac_try_echo"; } >&5
36684271 (eval "$ac_link") 2>&5
36694272 ac_status=$?
3670 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3671 test $ac_status = 0; }; then :
4273 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4274 test $ac_status = 0; }
4275 then :
36724276 # If both `conftest.exe' and `conftest' are `present' (well, observable)
36734277 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
36744278 # work properly (i.e., refer to `conftest.exe'), while it won't with
36824286 * ) break;;
36834287 esac
36844288 done
3685 else
3686 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3687 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4289 else $as_nop
4290 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4291 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
36884292 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
36894293 See \`config.log' for more details" "$LINENO" 5; }
36904294 fi
36914295 rm -f conftest conftest$ac_cv_exeext
3692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3693 $as_echo "$ac_cv_exeext" >&6; }
4296 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4297 printf "%s\n" "$ac_cv_exeext" >&6; }
36944298
36954299 rm -f conftest.$ac_ext
36964300 EXEEXT=$ac_cv_exeext
36994303 /* end confdefs.h. */
37004304 #include <stdio.h>
37014305 int
3702 main ()
4306 main (void)
37034307 {
37044308 FILE *f = fopen ("conftest.out", "w");
37054309 return ferror (f) || fclose (f) != 0;
37114315 ac_clean_files="$ac_clean_files conftest.out"
37124316 # Check that the compiler produces executables we can run. If not, either
37134317 # the compiler is broken, or we cross compile.
3714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3715 $as_echo_n "checking whether we are cross compiling... " >&6; }
4318 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4319 printf %s "checking whether we are cross compiling... " >&6; }
37164320 if test "$cross_compiling" != yes; then
37174321 { { ac_try="$ac_link"
37184322 case "(($ac_try" in
37204324 *) ac_try_echo=$ac_try;;
37214325 esac
37224326 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3723 $as_echo "$ac_try_echo"; } >&5
4327 printf "%s\n" "$ac_try_echo"; } >&5
37244328 (eval "$ac_link") 2>&5
37254329 ac_status=$?
3726 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4330 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
37274331 test $ac_status = 0; }
37284332 if { ac_try='./conftest$ac_cv_exeext'
37294333 { { case "(($ac_try" in
37314335 *) ac_try_echo=$ac_try;;
37324336 esac
37334337 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3734 $as_echo "$ac_try_echo"; } >&5
4338 printf "%s\n" "$ac_try_echo"; } >&5
37354339 (eval "$ac_try") 2>&5
37364340 ac_status=$?
3737 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4341 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
37384342 test $ac_status = 0; }; }; then
37394343 cross_compiling=no
37404344 else
37414345 if test "$cross_compiling" = maybe; then
37424346 cross_compiling=yes
37434347 else
3744 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3745 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3746 as_fn_error $? "cannot run C compiled programs.
4348 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4349 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4350 as_fn_error 77 "cannot run C compiled programs.
37474351 If you meant to cross compile, use \`--host'.
37484352 See \`config.log' for more details" "$LINENO" 5; }
37494353 fi
37504354 fi
37514355 fi
3752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3753 $as_echo "$cross_compiling" >&6; }
4356 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4357 printf "%s\n" "$cross_compiling" >&6; }
37544358
37554359 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
37564360 ac_clean_files=$ac_clean_files_save
3757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3758 $as_echo_n "checking for suffix of object files... " >&6; }
3759 if ${ac_cv_objext+:} false; then :
3760 $as_echo_n "(cached) " >&6
3761 else
4361 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4362 printf %s "checking for suffix of object files... " >&6; }
4363 if test ${ac_cv_objext+y}
4364 then :
4365 printf %s "(cached) " >&6
4366 else $as_nop
37624367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37634368 /* end confdefs.h. */
37644369
37654370 int
3766 main ()
4371 main (void)
37674372 {
37684373
37694374 ;
37774382 *) ac_try_echo=$ac_try;;
37784383 esac
37794384 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3780 $as_echo "$ac_try_echo"; } >&5
4385 printf "%s\n" "$ac_try_echo"; } >&5
37814386 (eval "$ac_compile") 2>&5
37824387 ac_status=$?
3783 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3784 test $ac_status = 0; }; then :
4388 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4389 test $ac_status = 0; }
4390 then :
37854391 for ac_file in conftest.o conftest.obj conftest.*; do
37864392 test -f "$ac_file" || continue;
37874393 case $ac_file in
37904396 break;;
37914397 esac
37924398 done
3793 else
3794 $as_echo "$as_me: failed program was:" >&5
4399 else $as_nop
4400 printf "%s\n" "$as_me: failed program was:" >&5
37954401 sed 's/^/| /' conftest.$ac_ext >&5
37964402
3797 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3798 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4403 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4404 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
37994405 as_fn_error $? "cannot compute suffix of object files: cannot compile
38004406 See \`config.log' for more details" "$LINENO" 5; }
38014407 fi
38024408 rm -f conftest.$ac_cv_objext conftest.$ac_ext
38034409 fi
3804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3805 $as_echo "$ac_cv_objext" >&6; }
4410 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4411 printf "%s\n" "$ac_cv_objext" >&6; }
38064412 OBJEXT=$ac_cv_objext
38074413 ac_objext=$OBJEXT
3808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3809 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3810 if ${ac_cv_c_compiler_gnu+:} false; then :
3811 $as_echo_n "(cached) " >&6
3812 else
4414 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
4415 printf %s "checking whether the compiler supports GNU C... " >&6; }
4416 if test ${ac_cv_c_compiler_gnu+y}
4417 then :
4418 printf %s "(cached) " >&6
4419 else $as_nop
38134420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38144421 /* end confdefs.h. */
38154422
38164423 int
3817 main ()
4424 main (void)
38184425 {
38194426 #ifndef __GNUC__
38204427 choke me
38244431 return 0;
38254432 }
38264433 _ACEOF
3827 if ac_fn_c_try_compile "$LINENO"; then :
4434 if ac_fn_c_try_compile "$LINENO"
4435 then :
38284436 ac_compiler_gnu=yes
3829 else
4437 else $as_nop
38304438 ac_compiler_gnu=no
38314439 fi
3832 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4440 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
38334441 ac_cv_c_compiler_gnu=$ac_compiler_gnu
38344442
38354443 fi
3836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3837 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4444 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4445 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4446 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4447
38384448 if test $ac_compiler_gnu = yes; then
38394449 GCC=yes
38404450 else
38414451 GCC=
38424452 fi
3843 ac_test_CFLAGS=${CFLAGS+set}
4453 ac_test_CFLAGS=${CFLAGS+y}
38444454 ac_save_CFLAGS=$CFLAGS
3845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3846 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3847 if ${ac_cv_prog_cc_g+:} false; then :
3848 $as_echo_n "(cached) " >&6
3849 else
4455 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4456 printf %s "checking whether $CC accepts -g... " >&6; }
4457 if test ${ac_cv_prog_cc_g+y}
4458 then :
4459 printf %s "(cached) " >&6
4460 else $as_nop
38504461 ac_save_c_werror_flag=$ac_c_werror_flag
38514462 ac_c_werror_flag=yes
38524463 ac_cv_prog_cc_g=no
38554466 /* end confdefs.h. */
38564467
38574468 int
3858 main ()
4469 main (void)
38594470 {
38604471
38614472 ;
38624473 return 0;
38634474 }
38644475 _ACEOF
3865 if ac_fn_c_try_compile "$LINENO"; then :
4476 if ac_fn_c_try_compile "$LINENO"
4477 then :
38664478 ac_cv_prog_cc_g=yes
3867 else
4479 else $as_nop
38684480 CFLAGS=""
38694481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38704482 /* end confdefs.h. */
38714483
38724484 int
3873 main ()
4485 main (void)
38744486 {
38754487
38764488 ;
38774489 return 0;
38784490 }
38794491 _ACEOF
3880 if ac_fn_c_try_compile "$LINENO"; then :
3881
3882 else
4492 if ac_fn_c_try_compile "$LINENO"
4493 then :
4494
4495 else $as_nop
38834496 ac_c_werror_flag=$ac_save_c_werror_flag
38844497 CFLAGS="-g"
38854498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38864499 /* end confdefs.h. */
38874500
38884501 int
3889 main ()
4502 main (void)
38904503 {
38914504
38924505 ;
38934506 return 0;
38944507 }
38954508 _ACEOF
3896 if ac_fn_c_try_compile "$LINENO"; then :
4509 if ac_fn_c_try_compile "$LINENO"
4510 then :
38974511 ac_cv_prog_cc_g=yes
38984512 fi
3899 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3900 fi
3901 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3902 fi
3903 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4513 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4514 fi
4515 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4516 fi
4517 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
39044518 ac_c_werror_flag=$ac_save_c_werror_flag
39054519 fi
3906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3907 $as_echo "$ac_cv_prog_cc_g" >&6; }
3908 if test "$ac_test_CFLAGS" = set; then
4520 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4521 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4522 if test $ac_test_CFLAGS; then
39094523 CFLAGS=$ac_save_CFLAGS
39104524 elif test $ac_cv_prog_cc_g = yes; then
39114525 if test "$GCC" = yes; then
39204534 CFLAGS=
39214535 fi
39224536 fi
3923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3924 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3925 if ${ac_cv_prog_cc_c89+:} false; then :
3926 $as_echo_n "(cached) " >&6
3927 else
4537 ac_prog_cc_stdc=no
4538 if test x$ac_prog_cc_stdc = xno
4539 then :
4540 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4541 printf %s "checking for $CC option to enable C11 features... " >&6; }
4542 if test ${ac_cv_prog_cc_c11+y}
4543 then :
4544 printf %s "(cached) " >&6
4545 else $as_nop
4546 ac_cv_prog_cc_c11=no
4547 ac_save_CC=$CC
4548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4549 /* end confdefs.h. */
4550 $ac_c_conftest_c11_program
4551 _ACEOF
4552 for ac_arg in '' -std=gnu11
4553 do
4554 CC="$ac_save_CC $ac_arg"
4555 if ac_fn_c_try_compile "$LINENO"
4556 then :
4557 ac_cv_prog_cc_c11=$ac_arg
4558 fi
4559 rm -f core conftest.err conftest.$ac_objext conftest.beam
4560 test "x$ac_cv_prog_cc_c11" != "xno" && break
4561 done
4562 rm -f conftest.$ac_ext
4563 CC=$ac_save_CC
4564 fi
4565
4566 if test "x$ac_cv_prog_cc_c11" = xno
4567 then :
4568 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4569 printf "%s\n" "unsupported" >&6; }
4570 else $as_nop
4571 if test "x$ac_cv_prog_cc_c11" = x
4572 then :
4573 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4574 printf "%s\n" "none needed" >&6; }
4575 else $as_nop
4576 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4577 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4578 CC="$CC $ac_cv_prog_cc_c11"
4579 fi
4580 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4581 ac_prog_cc_stdc=c11
4582 fi
4583 fi
4584 if test x$ac_prog_cc_stdc = xno
4585 then :
4586 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4587 printf %s "checking for $CC option to enable C99 features... " >&6; }
4588 if test ${ac_cv_prog_cc_c99+y}
4589 then :
4590 printf %s "(cached) " >&6
4591 else $as_nop
4592 ac_cv_prog_cc_c99=no
4593 ac_save_CC=$CC
4594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4595 /* end confdefs.h. */
4596 $ac_c_conftest_c99_program
4597 _ACEOF
4598 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4599 do
4600 CC="$ac_save_CC $ac_arg"
4601 if ac_fn_c_try_compile "$LINENO"
4602 then :
4603 ac_cv_prog_cc_c99=$ac_arg
4604 fi
4605 rm -f core conftest.err conftest.$ac_objext conftest.beam
4606 test "x$ac_cv_prog_cc_c99" != "xno" && break
4607 done
4608 rm -f conftest.$ac_ext
4609 CC=$ac_save_CC
4610 fi
4611
4612 if test "x$ac_cv_prog_cc_c99" = xno
4613 then :
4614 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4615 printf "%s\n" "unsupported" >&6; }
4616 else $as_nop
4617 if test "x$ac_cv_prog_cc_c99" = x
4618 then :
4619 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4620 printf "%s\n" "none needed" >&6; }
4621 else $as_nop
4622 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4623 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4624 CC="$CC $ac_cv_prog_cc_c99"
4625 fi
4626 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4627 ac_prog_cc_stdc=c99
4628 fi
4629 fi
4630 if test x$ac_prog_cc_stdc = xno
4631 then :
4632 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4633 printf %s "checking for $CC option to enable C89 features... " >&6; }
4634 if test ${ac_cv_prog_cc_c89+y}
4635 then :
4636 printf %s "(cached) " >&6
4637 else $as_nop
39284638 ac_cv_prog_cc_c89=no
39294639 ac_save_CC=$CC
39304640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39314641 /* end confdefs.h. */
3932 #include <stdarg.h>
3933 #include <stdio.h>
3934 struct stat;
3935 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3936 struct buf { int x; };
3937 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3938 static char *e (p, i)
3939 char **p;
3940 int i;
3941 {
3942 return p[i];
3943 }
3944 static char *f (char * (*g) (char **, int), char **p, ...)
3945 {
3946 char *s;
3947 va_list v;
3948 va_start (v,p);
3949 s = g (p, va_arg (v,int));
3950 va_end (v);
3951 return s;
3952 }
3953
3954 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3955 function prototypes and stuff, but not '\xHH' hex character constants.
3956 These don't provoke an error unfortunately, instead are silently treated
3957 as 'x'. The following induces an error, until -std is added to get
3958 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3959 array size at least. It's necessary to write '\x00'==0 to get something
3960 that's true only with -std. */
3961 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3962
3963 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3964 inside strings and character constants. */
3965 #define FOO(x) 'x'
3966 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3967
3968 int test (int i, double x);
3969 struct s1 {int (*f) (int a);};
3970 struct s2 {int (*f) (double a);};
3971 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3972 int argc;
3973 char **argv;
3974 int
3975 main ()
3976 {
3977 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3978 ;
3979 return 0;
3980 }
4642 $ac_c_conftest_c89_program
39814643 _ACEOF
3982 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3983 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4644 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
39844645 do
39854646 CC="$ac_save_CC $ac_arg"
3986 if ac_fn_c_try_compile "$LINENO"; then :
4647 if ac_fn_c_try_compile "$LINENO"
4648 then :
39874649 ac_cv_prog_cc_c89=$ac_arg
39884650 fi
3989 rm -f core conftest.err conftest.$ac_objext
4651 rm -f core conftest.err conftest.$ac_objext conftest.beam
39904652 test "x$ac_cv_prog_cc_c89" != "xno" && break
39914653 done
39924654 rm -f conftest.$ac_ext
39934655 CC=$ac_save_CC
3994
3995 fi
3996 # AC_CACHE_VAL
3997 case "x$ac_cv_prog_cc_c89" in
3998 x)
3999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4000 $as_echo "none needed" >&6; } ;;
4001 xno)
4002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4003 $as_echo "unsupported" >&6; } ;;
4004 *)
4005 CC="$CC $ac_cv_prog_cc_c89"
4006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4007 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4008 esac
4009 if test "x$ac_cv_prog_cc_c89" != xno; then :
4010
4656 fi
4657
4658 if test "x$ac_cv_prog_cc_c89" = xno
4659 then :
4660 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4661 printf "%s\n" "unsupported" >&6; }
4662 else $as_nop
4663 if test "x$ac_cv_prog_cc_c89" = x
4664 then :
4665 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4666 printf "%s\n" "none needed" >&6; }
4667 else $as_nop
4668 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4669 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4670 CC="$CC $ac_cv_prog_cc_c89"
4671 fi
4672 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4673 ac_prog_cc_stdc=c89
4674 fi
40114675 fi
40124676
40134677 ac_ext=c
40164680 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40174681 ac_compiler_gnu=$ac_cv_c_compiler_gnu
40184682
4019 ac_ext=c
4683
4684 ac_ext=c
40204685 ac_cpp='$CPP $CPPFLAGS'
40214686 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40224687 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40234688 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4025 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4026 if ${am_cv_prog_cc_c_o+:} false; then :
4027 $as_echo_n "(cached) " >&6
4028 else
4689 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4690 printf %s "checking whether $CC understands -c and -o together... " >&6; }
4691 if test ${am_cv_prog_cc_c_o+y}
4692 then :
4693 printf %s "(cached) " >&6
4694 else $as_nop
40294695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40304696 /* end confdefs.h. */
40314697
40324698 int
4033 main ()
4699 main (void)
40344700 {
40354701
40364702 ;
40584724 rm -f core conftest*
40594725 unset am_i
40604726 fi
4061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4062 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4727 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4728 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
40634729 if test "$am_cv_prog_cc_c_o" != yes; then
40644730 # Losing compiler, so override with the script.
40654731 # FIXME: It is wrong to rewrite CC.
40774743
40784744 depcc="$CC" am_compiler_list=
40794745
4080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4081 $as_echo_n "checking dependency style of $depcc... " >&6; }
4082 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4083 $as_echo_n "(cached) " >&6
4084 else
4746 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4747 printf %s "checking dependency style of $depcc... " >&6; }
4748 if test ${am_cv_CC_dependencies_compiler_type+y}
4749 then :
4750 printf %s "(cached) " >&6
4751 else $as_nop
40854752 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
40864753 # We make a subdir and do the tests there. Otherwise we can end up
40874754 # making bogus files that we don't know about and never remove. For
41884855 fi
41894856
41904857 fi
4191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4192 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4858 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4859 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
41934860 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
41944861
41954862 if
42034870 fi
42044871
42054872
4206 case $ac_cv_prog_cc_stdc in #(
4207 no) :
4208 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
4209 *) :
4210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
4211 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
4212 if ${ac_cv_prog_cc_c99+:} false; then :
4213 $as_echo_n "(cached) " >&6
4214 else
4215 ac_cv_prog_cc_c99=no
4216 ac_save_CC=$CC
4217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4218 /* end confdefs.h. */
4219 #include <stdarg.h>
4220 #include <stdbool.h>
4221 #include <stdlib.h>
4222 #include <wchar.h>
4223 #include <stdio.h>
4224
4225 // Check varargs macros. These examples are taken from C99 6.10.3.5.
4226 #define debug(...) fprintf (stderr, __VA_ARGS__)
4227 #define showlist(...) puts (#__VA_ARGS__)
4228 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4229 static void
4230 test_varargs_macros (void)
4231 {
4232 int x = 1234;
4233 int y = 5678;
4234 debug ("Flag");
4235 debug ("X = %d\n", x);
4236 showlist (The first, second, and third items.);
4237 report (x>y, "x is %d but y is %d", x, y);
4238 }
4239
4240 // Check long long types.
4241 #define BIG64 18446744073709551615ull
4242 #define BIG32 4294967295ul
4243 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4244 #if !BIG_OK
4245 your preprocessor is broken;
4246 #endif
4247 #if BIG_OK
4248 #else
4249 your preprocessor is broken;
4250 #endif
4251 static long long int bignum = -9223372036854775807LL;
4252 static unsigned long long int ubignum = BIG64;
4253
4254 struct incomplete_array
4255 {
4256 int datasize;
4257 double data[];
4258 };
4259
4260 struct named_init {
4261 int number;
4262 const wchar_t *name;
4263 double average;
4264 };
4265
4266 typedef const char *ccp;
4267
4268 static inline int
4269 test_restrict (ccp restrict text)
4270 {
4271 // See if C++-style comments work.
4272 // Iterate through items via the restricted pointer.
4273 // Also check for declarations in for loops.
4274 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4275 continue;
4276 return 0;
4277 }
4278
4279 // Check varargs and va_copy.
4280 static void
4281 test_varargs (const char *format, ...)
4282 {
4283 va_list args;
4284 va_start (args, format);
4285 va_list args_copy;
4286 va_copy (args_copy, args);
4287
4288 const char *str;
4289 int number;
4290 float fnumber;
4291
4292 while (*format)
4293 {
4294 switch (*format++)
4295 {
4296 case 's': // string
4297 str = va_arg (args_copy, const char *);
4298 break;
4299 case 'd': // int
4300 number = va_arg (args_copy, int);
4301 break;
4302 case 'f': // float
4303 fnumber = va_arg (args_copy, double);
4304 break;
4305 default:
4306 break;
4307 }
4308 }
4309 va_end (args_copy);
4310 va_end (args);
4311 }
4312
4313 int
4314 main ()
4315 {
4316
4317 // Check bool.
4318 _Bool success = false;
4319
4320 // Check restrict.
4321 if (test_restrict ("String literal") == 0)
4322 success = true;
4323 char *restrict newvar = "Another string";
4324
4325 // Check varargs.
4326 test_varargs ("s, d' f .", "string", 65, 34.234);
4327 test_varargs_macros ();
4328
4329 // Check flexible array members.
4330 struct incomplete_array *ia =
4331 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4332 ia->datasize = 10;
4333 for (int i = 0; i < ia->datasize; ++i)
4334 ia->data[i] = i * 1.234;
4335
4336 // Check named initializers.
4337 struct named_init ni = {
4338 .number = 34,
4339 .name = L"Test wide string",
4340 .average = 543.34343,
4341 };
4342
4343 ni.number = 58;
4344
4345 int dynamic_array[ni.number];
4346 dynamic_array[ni.number - 1] = 543;
4347
4348 // work around unused variable warnings
4349 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4350 || dynamic_array[ni.number - 1] != 543);
4351
4352 ;
4353 return 0;
4354 }
4355 _ACEOF
4356 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
4357 do
4358 CC="$ac_save_CC $ac_arg"
4359 if ac_fn_c_try_compile "$LINENO"; then :
4360 ac_cv_prog_cc_c99=$ac_arg
4361 fi
4362 rm -f core conftest.err conftest.$ac_objext
4363 test "x$ac_cv_prog_cc_c99" != "xno" && break
4364 done
4365 rm -f conftest.$ac_ext
4366 CC=$ac_save_CC
4367
4368 fi
4369 # AC_CACHE_VAL
4370 case "x$ac_cv_prog_cc_c99" in
4371 x)
4372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4373 $as_echo "none needed" >&6; } ;;
4374 xno)
4375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4376 $as_echo "unsupported" >&6; } ;;
4377 *)
4378 CC="$CC $ac_cv_prog_cc_c99"
4379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4380 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4381 esac
4382 if test "x$ac_cv_prog_cc_c99" != xno; then :
4383 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4384 else
4385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4386 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4387 if ${ac_cv_prog_cc_c89+:} false; then :
4388 $as_echo_n "(cached) " >&6
4389 else
4390 ac_cv_prog_cc_c89=no
4391 ac_save_CC=$CC
4392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4393 /* end confdefs.h. */
4394 #include <stdarg.h>
4395 #include <stdio.h>
4396 struct stat;
4397 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4398 struct buf { int x; };
4399 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4400 static char *e (p, i)
4401 char **p;
4402 int i;
4403 {
4404 return p[i];
4405 }
4406 static char *f (char * (*g) (char **, int), char **p, ...)
4407 {
4408 char *s;
4409 va_list v;
4410 va_start (v,p);
4411 s = g (p, va_arg (v,int));
4412 va_end (v);
4413 return s;
4414 }
4415
4416 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4417 function prototypes and stuff, but not '\xHH' hex character constants.
4418 These don't provoke an error unfortunately, instead are silently treated
4419 as 'x'. The following induces an error, until -std is added to get
4420 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4421 array size at least. It's necessary to write '\x00'==0 to get something
4422 that's true only with -std. */
4423 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4424
4425 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4426 inside strings and character constants. */
4427 #define FOO(x) 'x'
4428 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4429
4430 int test (int i, double x);
4431 struct s1 {int (*f) (int a);};
4432 struct s2 {int (*f) (double a);};
4433 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4434 int argc;
4435 char **argv;
4436 int
4437 main ()
4438 {
4439 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4440 ;
4441 return 0;
4442 }
4443 _ACEOF
4444 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4445 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4446 do
4447 CC="$ac_save_CC $ac_arg"
4448 if ac_fn_c_try_compile "$LINENO"; then :
4449 ac_cv_prog_cc_c89=$ac_arg
4450 fi
4451 rm -f core conftest.err conftest.$ac_objext
4452 test "x$ac_cv_prog_cc_c89" != "xno" && break
4453 done
4454 rm -f conftest.$ac_ext
4455 CC=$ac_save_CC
4456
4457 fi
4458 # AC_CACHE_VAL
4459 case "x$ac_cv_prog_cc_c89" in
4460 x)
4461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4462 $as_echo "none needed" >&6; } ;;
4463 xno)
4464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4465 $as_echo "unsupported" >&6; } ;;
4466 *)
4467 CC="$CC $ac_cv_prog_cc_c89"
4468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4469 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4470 esac
4471 if test "x$ac_cv_prog_cc_c89" != xno; then :
4472 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4473 else
4474 ac_cv_prog_cc_stdc=no
4475 fi
4476
4477 fi
4478 ;;
4479 esac
4480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
4481 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
4482 if ${ac_cv_prog_cc_stdc+:} false; then :
4483 $as_echo_n "(cached) " >&6
4484 fi
4485
4486 case $ac_cv_prog_cc_stdc in #(
4487 no) :
4488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4489 $as_echo "unsupported" >&6; } ;; #(
4490 '') :
4491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4492 $as_echo "none needed" >&6; } ;; #(
4493 *) :
4494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
4495 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
4496 esac
4873
4874
4875
4876
4877
4878
44974879
44984880 ac_ext=cpp
44994881 ac_cpp='$CXXCPP $CPPFLAGS'
45054887 CXX=$CCC
45064888 else
45074889 if test -n "$ac_tool_prefix"; then
4508 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4890 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
45094891 do
45104892 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
45114893 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4513 $as_echo_n "checking for $ac_word... " >&6; }
4514 if ${ac_cv_prog_CXX+:} false; then :
4515 $as_echo_n "(cached) " >&6
4516 else
4894 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4895 printf %s "checking for $ac_word... " >&6; }
4896 if test ${ac_cv_prog_CXX+y}
4897 then :
4898 printf %s "(cached) " >&6
4899 else $as_nop
45174900 if test -n "$CXX"; then
45184901 ac_cv_prog_CXX="$CXX" # Let the user override the test.
45194902 else
45214904 for as_dir in $PATH
45224905 do
45234906 IFS=$as_save_IFS
4524 test -z "$as_dir" && as_dir=.
4907 case $as_dir in #(((
4908 '') as_dir=./ ;;
4909 */) ;;
4910 *) as_dir=$as_dir/ ;;
4911 esac
45254912 for ac_exec_ext in '' $ac_executable_extensions; do
4526 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4913 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
45274914 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4528 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4915 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
45294916 break 2
45304917 fi
45314918 done
45364923 fi
45374924 CXX=$ac_cv_prog_CXX
45384925 if test -n "$CXX"; then
4539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4540 $as_echo "$CXX" >&6; }
4926 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4927 printf "%s\n" "$CXX" >&6; }
45414928 else
4542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4543 $as_echo "no" >&6; }
4929 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4930 printf "%s\n" "no" >&6; }
45444931 fi
45454932
45464933
45494936 fi
45504937 if test -z "$CXX"; then
45514938 ac_ct_CXX=$CXX
4552 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4939 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
45534940 do
45544941 # Extract the first word of "$ac_prog", so it can be a program name with args.
45554942 set dummy $ac_prog; ac_word=$2
4556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4557 $as_echo_n "checking for $ac_word... " >&6; }
4558 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4559 $as_echo_n "(cached) " >&6
4560 else
4943 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4944 printf %s "checking for $ac_word... " >&6; }
4945 if test ${ac_cv_prog_ac_ct_CXX+y}
4946 then :
4947 printf %s "(cached) " >&6
4948 else $as_nop
45614949 if test -n "$ac_ct_CXX"; then
45624950 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
45634951 else
45654953 for as_dir in $PATH
45664954 do
45674955 IFS=$as_save_IFS
4568 test -z "$as_dir" && as_dir=.
4956 case $as_dir in #(((
4957 '') as_dir=./ ;;
4958 */) ;;
4959 *) as_dir=$as_dir/ ;;
4960 esac
45694961 for ac_exec_ext in '' $ac_executable_extensions; do
4570 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4962 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
45714963 ac_cv_prog_ac_ct_CXX="$ac_prog"
4572 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4964 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
45734965 break 2
45744966 fi
45754967 done
45804972 fi
45814973 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
45824974 if test -n "$ac_ct_CXX"; then
4583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4584 $as_echo "$ac_ct_CXX" >&6; }
4975 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4976 printf "%s\n" "$ac_ct_CXX" >&6; }
45854977 else
4586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4587 $as_echo "no" >&6; }
4978 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4979 printf "%s\n" "no" >&6; }
45884980 fi
45894981
45904982
45964988 else
45974989 case $cross_compiling:$ac_tool_warned in
45984990 yes:)
4599 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4600 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4991 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4992 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
46014993 ac_tool_warned=yes ;;
46024994 esac
46034995 CXX=$ac_ct_CXX
46074999 fi
46085000 fi
46095001 # Provide some information about the compiler.
4610 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
5002 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
46115003 set X $ac_compile
46125004 ac_compiler=$2
46135005 for ac_option in --version -v -V -qversion; do
46175009 *) ac_try_echo=$ac_try;;
46185010 esac
46195011 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4620 $as_echo "$ac_try_echo"; } >&5
5012 printf "%s\n" "$ac_try_echo"; } >&5
46215013 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
46225014 ac_status=$?
46235015 if test -s conftest.err; then
46275019 cat conftest.er1 >&5
46285020 fi
46295021 rm -f conftest.er1 conftest.err
4630 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5022 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
46315023 test $ac_status = 0; }
46325024 done
46335025
4634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4635 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4636 if ${ac_cv_cxx_compiler_gnu+:} false; then :
4637 $as_echo_n "(cached) " >&6
4638 else
5026 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C++" >&5
5027 printf %s "checking whether the compiler supports GNU C++... " >&6; }
5028 if test ${ac_cv_cxx_compiler_gnu+y}
5029 then :
5030 printf %s "(cached) " >&6
5031 else $as_nop
46395032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
46405033 /* end confdefs.h. */
46415034
46425035 int
4643 main ()
5036 main (void)
46445037 {
46455038 #ifndef __GNUC__
46465039 choke me
46505043 return 0;
46515044 }
46525045 _ACEOF
4653 if ac_fn_cxx_try_compile "$LINENO"; then :
5046 if ac_fn_cxx_try_compile "$LINENO"
5047 then :
46545048 ac_compiler_gnu=yes
4655 else
5049 else $as_nop
46565050 ac_compiler_gnu=no
46575051 fi
4658 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5052 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
46595053 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
46605054
46615055 fi
4662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4663 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5056 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5057 printf "%s\n" "$ac_cv_cxx_compiler_gnu" >&6; }
5058 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5059
46645060 if test $ac_compiler_gnu = yes; then
46655061 GXX=yes
46665062 else
46675063 GXX=
46685064 fi
4669 ac_test_CXXFLAGS=${CXXFLAGS+set}
5065 ac_test_CXXFLAGS=${CXXFLAGS+y}
46705066 ac_save_CXXFLAGS=$CXXFLAGS
4671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4672 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4673 if ${ac_cv_prog_cxx_g+:} false; then :
4674 $as_echo_n "(cached) " >&6
4675 else
5067 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5068 printf %s "checking whether $CXX accepts -g... " >&6; }
5069 if test ${ac_cv_prog_cxx_g+y}
5070 then :
5071 printf %s "(cached) " >&6
5072 else $as_nop
46765073 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
46775074 ac_cxx_werror_flag=yes
46785075 ac_cv_prog_cxx_g=no
46815078 /* end confdefs.h. */
46825079
46835080 int
4684 main ()
5081 main (void)
46855082 {
46865083
46875084 ;
46885085 return 0;
46895086 }
46905087 _ACEOF
4691 if ac_fn_cxx_try_compile "$LINENO"; then :
5088 if ac_fn_cxx_try_compile "$LINENO"
5089 then :
46925090 ac_cv_prog_cxx_g=yes
4693 else
5091 else $as_nop
46945092 CXXFLAGS=""
46955093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
46965094 /* end confdefs.h. */
46975095
46985096 int
4699 main ()
5097 main (void)
47005098 {
47015099
47025100 ;
47035101 return 0;
47045102 }
47055103 _ACEOF
4706 if ac_fn_cxx_try_compile "$LINENO"; then :
4707
4708 else
5104 if ac_fn_cxx_try_compile "$LINENO"
5105 then :
5106
5107 else $as_nop
47095108 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
47105109 CXXFLAGS="-g"
47115110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
47125111 /* end confdefs.h. */
47135112
47145113 int
4715 main ()
5114 main (void)
47165115 {
47175116
47185117 ;
47195118 return 0;
47205119 }
47215120 _ACEOF
4722 if ac_fn_cxx_try_compile "$LINENO"; then :
5121 if ac_fn_cxx_try_compile "$LINENO"
5122 then :
47235123 ac_cv_prog_cxx_g=yes
47245124 fi
4725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4726 fi
4727 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4728 fi
4729 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5125 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5126 fi
5127 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5128 fi
5129 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
47305130 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
47315131 fi
4732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4733 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4734 if test "$ac_test_CXXFLAGS" = set; then
5132 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5133 printf "%s\n" "$ac_cv_prog_cxx_g" >&6; }
5134 if test $ac_test_CXXFLAGS; then
47355135 CXXFLAGS=$ac_save_CXXFLAGS
47365136 elif test $ac_cv_prog_cxx_g = yes; then
47375137 if test "$GXX" = yes; then
47465146 CXXFLAGS=
47475147 fi
47485148 fi
5149 ac_prog_cxx_stdcxx=no
5150 if test x$ac_prog_cxx_stdcxx = xno
5151 then :
5152 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++11 features" >&5
5153 printf %s "checking for $CXX option to enable C++11 features... " >&6; }
5154 if test ${ac_cv_prog_cxx_11+y}
5155 then :
5156 printf %s "(cached) " >&6
5157 else $as_nop
5158 ac_cv_prog_cxx_11=no
5159 ac_save_CXX=$CXX
5160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5161 /* end confdefs.h. */
5162 $ac_cxx_conftest_cxx11_program
5163 _ACEOF
5164 for ac_arg in '' -std=gnu++11 -std=gnu++0x -std=c++11 -std=c++0x -qlanglvl=extended0x -AA
5165 do
5166 CXX="$ac_save_CXX $ac_arg"
5167 if ac_fn_cxx_try_compile "$LINENO"
5168 then :
5169 ac_cv_prog_cxx_cxx11=$ac_arg
5170 fi
5171 rm -f core conftest.err conftest.$ac_objext conftest.beam
5172 test "x$ac_cv_prog_cxx_cxx11" != "xno" && break
5173 done
5174 rm -f conftest.$ac_ext
5175 CXX=$ac_save_CXX
5176 fi
5177
5178 if test "x$ac_cv_prog_cxx_cxx11" = xno
5179 then :
5180 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5181 printf "%s\n" "unsupported" >&6; }
5182 else $as_nop
5183 if test "x$ac_cv_prog_cxx_cxx11" = x
5184 then :
5185 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5186 printf "%s\n" "none needed" >&6; }
5187 else $as_nop
5188 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx11" >&5
5189 printf "%s\n" "$ac_cv_prog_cxx_cxx11" >&6; }
5190 CXX="$CXX $ac_cv_prog_cxx_cxx11"
5191 fi
5192 ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx11
5193 ac_prog_cxx_stdcxx=cxx11
5194 fi
5195 fi
5196 if test x$ac_prog_cxx_stdcxx = xno
5197 then :
5198 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++98 features" >&5
5199 printf %s "checking for $CXX option to enable C++98 features... " >&6; }
5200 if test ${ac_cv_prog_cxx_98+y}
5201 then :
5202 printf %s "(cached) " >&6
5203 else $as_nop
5204 ac_cv_prog_cxx_98=no
5205 ac_save_CXX=$CXX
5206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5207 /* end confdefs.h. */
5208 $ac_cxx_conftest_cxx98_program
5209 _ACEOF
5210 for ac_arg in '' -std=gnu++98 -std=c++98 -qlanglvl=extended -AA
5211 do
5212 CXX="$ac_save_CXX $ac_arg"
5213 if ac_fn_cxx_try_compile "$LINENO"
5214 then :
5215 ac_cv_prog_cxx_cxx98=$ac_arg
5216 fi
5217 rm -f core conftest.err conftest.$ac_objext conftest.beam
5218 test "x$ac_cv_prog_cxx_cxx98" != "xno" && break
5219 done
5220 rm -f conftest.$ac_ext
5221 CXX=$ac_save_CXX
5222 fi
5223
5224 if test "x$ac_cv_prog_cxx_cxx98" = xno
5225 then :
5226 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5227 printf "%s\n" "unsupported" >&6; }
5228 else $as_nop
5229 if test "x$ac_cv_prog_cxx_cxx98" = x
5230 then :
5231 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5232 printf "%s\n" "none needed" >&6; }
5233 else $as_nop
5234 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx98" >&5
5235 printf "%s\n" "$ac_cv_prog_cxx_cxx98" >&6; }
5236 CXX="$CXX $ac_cv_prog_cxx_cxx98"
5237 fi
5238 ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx98
5239 ac_prog_cxx_stdcxx=cxx98
5240 fi
5241 fi
5242
47495243 ac_ext=c
47505244 ac_cpp='$CPP $CPPFLAGS'
47515245 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
47545248
47555249 depcc="$CXX" am_compiler_list=
47565250
4757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4758 $as_echo_n "checking dependency style of $depcc... " >&6; }
4759 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
4760 $as_echo_n "(cached) " >&6
4761 else
5251 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5252 printf %s "checking dependency style of $depcc... " >&6; }
5253 if test ${am_cv_CXX_dependencies_compiler_type+y}
5254 then :
5255 printf %s "(cached) " >&6
5256 else $as_nop
47625257 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
47635258 # We make a subdir and do the tests there. Otherwise we can end up
47645259 # making bogus files that we don't know about and never remove. For
48655360 fi
48665361
48675362 fi
4868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4869 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
5363 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
5364 printf "%s\n" "$am_cv_CXX_dependencies_compiler_type" >&6; }
48705365 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
48715366
48725367 if
48805375 fi
48815376
48825377
4883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4884 $as_echo_n "checking whether ln -s works... " >&6; }
5378 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5379 printf %s "checking whether ln -s works... " >&6; }
48855380 LN_S=$as_ln_s
48865381 if test "$LN_S" = "ln -s"; then
4887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4888 $as_echo "yes" >&6; }
5382 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5383 printf "%s\n" "yes" >&6; }
48895384 else
4890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4891 $as_echo "no, using $LN_S" >&6; }
4892 fi
4893
4894
4895
4896 ac_ext=c
4897 ac_cpp='$CPP $CPPFLAGS'
4898 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4899 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4900 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4902 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4903 # On Suns, sometimes $CPP names a directory.
4904 if test -n "$CPP" && test -d "$CPP"; then
4905 CPP=
4906 fi
4907 if test -z "$CPP"; then
4908 if ${ac_cv_prog_CPP+:} false; then :
4909 $as_echo_n "(cached) " >&6
4910 else
4911 # Double quotes because CPP needs to be expanded
4912 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4913 do
4914 ac_preproc_ok=false
4915 for ac_c_preproc_warn_flag in '' yes
5385 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5386 printf "%s\n" "no, using $LN_S" >&6; }
5387 fi
5388
5389
5390
5391 ac_header= ac_cache=
5392 for ac_item in $ac_header_c_list
49165393 do
4917 # Use a header file that comes with gcc, so configuring glibc
4918 # with a fresh cross-compiler works.
4919 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4920 # <limits.h> exists even on freestanding compilers.
4921 # On the NeXT, cc -E runs the code through the compiler's parser,
4922 # not just through cpp. "Syntax error" is here to catch this case.
5394 if test $ac_cache; then
5395 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
5396 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
5397 printf "%s\n" "#define $ac_item 1" >> confdefs.h
5398 fi
5399 ac_header= ac_cache=
5400 elif test $ac_header; then
5401 ac_cache=$ac_item
5402 else
5403 ac_header=$ac_item
5404 fi
5405 done
5406
5407
5408
5409
5410
5411
5412
5413
5414 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
5415 then :
5416
5417 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
5418
5419 fi
5420
5421
5422
5423
5424
5425
5426 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5427 printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5428 if test ${ac_cv_safe_to_define___extensions__+y}
5429 then :
5430 printf %s "(cached) " >&6
5431 else $as_nop
49235432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
49245433 /* end confdefs.h. */
4925 #ifdef __STDC__
4926 # include <limits.h>
4927 #else
4928 # include <assert.h>
4929 #endif
4930 Syntax error
4931 _ACEOF
4932 if ac_fn_c_try_cpp "$LINENO"; then :
4933
4934 else
4935 # Broken: fails on valid input.
4936 continue
4937 fi
4938 rm -f conftest.err conftest.i conftest.$ac_ext
4939
4940 # OK, works on sane cases. Now check whether nonexistent headers
4941 # can be detected and how.
4942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4943 /* end confdefs.h. */
4944 #include <ac_nonexistent.h>
4945 _ACEOF
4946 if ac_fn_c_try_cpp "$LINENO"; then :
4947 # Broken: success on invalid input.
4948 continue
4949 else
4950 # Passes both tests.
4951 ac_preproc_ok=:
4952 break
4953 fi
4954 rm -f conftest.err conftest.i conftest.$ac_ext
4955
4956 done
4957 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4958 rm -f conftest.i conftest.err conftest.$ac_ext
4959 if $ac_preproc_ok; then :
4960 break
4961 fi
4962
4963 done
4964 ac_cv_prog_CPP=$CPP
4965
4966 fi
4967 CPP=$ac_cv_prog_CPP
4968 else
4969 ac_cv_prog_CPP=$CPP
4970 fi
4971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4972 $as_echo "$CPP" >&6; }
4973 ac_preproc_ok=false
4974 for ac_c_preproc_warn_flag in '' yes
4975 do
4976 # Use a header file that comes with gcc, so configuring glibc
4977 # with a fresh cross-compiler works.
4978 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4979 # <limits.h> exists even on freestanding compilers.
4980 # On the NeXT, cc -E runs the code through the compiler's parser,
4981 # not just through cpp. "Syntax error" is here to catch this case.
4982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4983 /* end confdefs.h. */
4984 #ifdef __STDC__
4985 # include <limits.h>
4986 #else
4987 # include <assert.h>
4988 #endif
4989 Syntax error
4990 _ACEOF
4991 if ac_fn_c_try_cpp "$LINENO"; then :
4992
4993 else
4994 # Broken: fails on valid input.
4995 continue
4996 fi
4997 rm -f conftest.err conftest.i conftest.$ac_ext
4998
4999 # OK, works on sane cases. Now check whether nonexistent headers
5000 # can be detected and how.
5001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5002 /* end confdefs.h. */
5003 #include <ac_nonexistent.h>
5004 _ACEOF
5005 if ac_fn_c_try_cpp "$LINENO"; then :
5006 # Broken: success on invalid input.
5007 continue
5008 else
5009 # Passes both tests.
5010 ac_preproc_ok=:
5011 break
5012 fi
5013 rm -f conftest.err conftest.i conftest.$ac_ext
5014
5015 done
5016 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5017 rm -f conftest.i conftest.err conftest.$ac_ext
5018 if $ac_preproc_ok; then :
5019
5020 else
5021 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5022 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5023 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5024 See \`config.log' for more details" "$LINENO" 5; }
5025 fi
5026
5027 ac_ext=c
5028 ac_cpp='$CPP $CPPFLAGS'
5029 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5030 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5031 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5032
5033
5034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5035 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5036 if ${ac_cv_path_GREP+:} false; then :
5037 $as_echo_n "(cached) " >&6
5038 else
5039 if test -z "$GREP"; then
5040 ac_path_GREP_found=false
5041 # Loop through the user's path and test for each of PROGNAME-LIST
5042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5043 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5044 do
5045 IFS=$as_save_IFS
5046 test -z "$as_dir" && as_dir=.
5047 for ac_prog in grep ggrep; do
5048 for ac_exec_ext in '' $ac_executable_extensions; do
5049 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5050 as_fn_executable_p "$ac_path_GREP" || continue
5051 # Check for GNU ac_path_GREP and select it if it is found.
5052 # Check for GNU $ac_path_GREP
5053 case `"$ac_path_GREP" --version 2>&1` in
5054 *GNU*)
5055 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5056 *)
5057 ac_count=0
5058 $as_echo_n 0123456789 >"conftest.in"
5059 while :
5060 do
5061 cat "conftest.in" "conftest.in" >"conftest.tmp"
5062 mv "conftest.tmp" "conftest.in"
5063 cp "conftest.in" "conftest.nl"
5064 $as_echo 'GREP' >> "conftest.nl"
5065 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5066 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5067 as_fn_arith $ac_count + 1 && ac_count=$as_val
5068 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5069 # Best one so far, save it but keep looking for a better one
5070 ac_cv_path_GREP="$ac_path_GREP"
5071 ac_path_GREP_max=$ac_count
5072 fi
5073 # 10*(2^10) chars as input seems more than enough
5074 test $ac_count -gt 10 && break
5075 done
5076 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5077 esac
5078
5079 $ac_path_GREP_found && break 3
5080 done
5081 done
5082 done
5083 IFS=$as_save_IFS
5084 if test -z "$ac_cv_path_GREP"; then
5085 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5086 fi
5087 else
5088 ac_cv_path_GREP=$GREP
5089 fi
5090
5091 fi
5092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5093 $as_echo "$ac_cv_path_GREP" >&6; }
5094 GREP="$ac_cv_path_GREP"
5095
5096
5097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5098 $as_echo_n "checking for egrep... " >&6; }
5099 if ${ac_cv_path_EGREP+:} false; then :
5100 $as_echo_n "(cached) " >&6
5101 else
5102 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5103 then ac_cv_path_EGREP="$GREP -E"
5104 else
5105 if test -z "$EGREP"; then
5106 ac_path_EGREP_found=false
5107 # Loop through the user's path and test for each of PROGNAME-LIST
5108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5109 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5110 do
5111 IFS=$as_save_IFS
5112 test -z "$as_dir" && as_dir=.
5113 for ac_prog in egrep; do
5114 for ac_exec_ext in '' $ac_executable_extensions; do
5115 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5116 as_fn_executable_p "$ac_path_EGREP" || continue
5117 # Check for GNU ac_path_EGREP and select it if it is found.
5118 # Check for GNU $ac_path_EGREP
5119 case `"$ac_path_EGREP" --version 2>&1` in
5120 *GNU*)
5121 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5122 *)
5123 ac_count=0
5124 $as_echo_n 0123456789 >"conftest.in"
5125 while :
5126 do
5127 cat "conftest.in" "conftest.in" >"conftest.tmp"
5128 mv "conftest.tmp" "conftest.in"
5129 cp "conftest.in" "conftest.nl"
5130 $as_echo 'EGREP' >> "conftest.nl"
5131 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5132 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5133 as_fn_arith $ac_count + 1 && ac_count=$as_val
5134 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5135 # Best one so far, save it but keep looking for a better one
5136 ac_cv_path_EGREP="$ac_path_EGREP"
5137 ac_path_EGREP_max=$ac_count
5138 fi
5139 # 10*(2^10) chars as input seems more than enough
5140 test $ac_count -gt 10 && break
5141 done
5142 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5143 esac
5144
5145 $ac_path_EGREP_found && break 3
5146 done
5147 done
5148 done
5149 IFS=$as_save_IFS
5150 if test -z "$ac_cv_path_EGREP"; then
5151 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5152 fi
5153 else
5154 ac_cv_path_EGREP=$EGREP
5155 fi
5156
5157 fi
5158 fi
5159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5160 $as_echo "$ac_cv_path_EGREP" >&6; }
5161 EGREP="$ac_cv_path_EGREP"
5162
5163
5164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5165 $as_echo_n "checking for ANSI C header files... " >&6; }
5166 if ${ac_cv_header_stdc+:} false; then :
5167 $as_echo_n "(cached) " >&6
5168 else
5169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5170 /* end confdefs.h. */
5171 #include <stdlib.h>
5172 #include <stdarg.h>
5173 #include <string.h>
5174 #include <float.h>
5175
5434
5435 # define __EXTENSIONS__ 1
5436 $ac_includes_default
51765437 int
5177 main ()
5438 main (void)
51785439 {
51795440
51805441 ;
51815442 return 0;
51825443 }
51835444 _ACEOF
5184 if ac_fn_c_try_compile "$LINENO"; then :
5185 ac_cv_header_stdc=yes
5186 else
5187 ac_cv_header_stdc=no
5188 fi
5189 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5190
5191 if test $ac_cv_header_stdc = yes; then
5192 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5445 if ac_fn_c_try_compile "$LINENO"
5446 then :
5447 ac_cv_safe_to_define___extensions__=yes
5448 else $as_nop
5449 ac_cv_safe_to_define___extensions__=no
5450 fi
5451 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5452 fi
5453 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5454 printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; }
5455
5456 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
5457 printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; }
5458 if test ${ac_cv_should_define__xopen_source+y}
5459 then :
5460 printf %s "(cached) " >&6
5461 else $as_nop
5462 ac_cv_should_define__xopen_source=no
5463 if test $ac_cv_header_wchar_h = yes
5464 then :
51935465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
51945466 /* end confdefs.h. */
5195 #include <string.h>
5196
5197 _ACEOF
5198 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5199 $EGREP "memchr" >/dev/null 2>&1; then :
5200
5201 else
5202 ac_cv_header_stdc=no
5203 fi
5204 rm -f conftest*
5205
5206 fi
5207
5208 if test $ac_cv_header_stdc = yes; then
5209 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5211 /* end confdefs.h. */
5212 #include <stdlib.h>
5213
5214 _ACEOF
5215 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5216 $EGREP "free" >/dev/null 2>&1; then :
5217
5218 else
5219 ac_cv_header_stdc=no
5220 fi
5221 rm -f conftest*
5222
5223 fi
5224
5225 if test $ac_cv_header_stdc = yes; then
5226 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5227 if test "$cross_compiling" = yes; then :
5228 :
5229 else
5230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5231 /* end confdefs.h. */
5232 #include <ctype.h>
5233 #include <stdlib.h>
5234 #if ((' ' & 0x0FF) == 0x020)
5235 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5236 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5237 #else
5238 # define ISLOWER(c) \
5239 (('a' <= (c) && (c) <= 'i') \
5240 || ('j' <= (c) && (c) <= 'r') \
5241 || ('s' <= (c) && (c) <= 'z'))
5242 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5243 #endif
5244
5245 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5467
5468 #include <wchar.h>
5469 mbstate_t x;
52465470 int
5247 main ()
5248 {
5249 int i;
5250 for (i = 0; i < 256; i++)
5251 if (XOR (islower (i), ISLOWER (i))
5252 || toupper (i) != TOUPPER (i))
5253 return 2;
5254 return 0;
5255 }
5256 _ACEOF
5257 if ac_fn_c_try_run "$LINENO"; then :
5258
5259 else
5260 ac_cv_header_stdc=no
5261 fi
5262 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5263 conftest.$ac_objext conftest.beam conftest.$ac_ext
5264 fi
5265
5266 fi
5267 fi
5268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5269 $as_echo "$ac_cv_header_stdc" >&6; }
5270 if test $ac_cv_header_stdc = yes; then
5271
5272 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5273
5274 fi
5275
5276 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5277 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5278 inttypes.h stdint.h unistd.h
5279 do :
5280 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5281 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5282 "
5283 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5284 cat >>confdefs.h <<_ACEOF
5285 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5286 _ACEOF
5287
5288 fi
5289
5290 done
5291
5292
5293
5294 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5295 if test "x$ac_cv_header_minix_config_h" = xyes; then :
5296 MINIX=yes
5297 else
5298 MINIX=
5299 fi
5300
5301
5302 if test "$MINIX" = yes; then
5303
5304 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5305
5306
5307 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5308
5309
5310 $as_echo "#define _MINIX 1" >>confdefs.h
5311
5312 fi
5313
5314
5315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5316 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5317 if ${ac_cv_safe_to_define___extensions__+:} false; then :
5318 $as_echo_n "(cached) " >&6
5319 else
5320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5321 /* end confdefs.h. */
5322
5323 # define __EXTENSIONS__ 1
5324 $ac_includes_default
5325 int
5326 main ()
5471 main (void)
53275472 {
53285473
53295474 ;
53305475 return 0;
53315476 }
53325477 _ACEOF
5333 if ac_fn_c_try_compile "$LINENO"; then :
5334 ac_cv_safe_to_define___extensions__=yes
5335 else
5336 ac_cv_safe_to_define___extensions__=no
5337 fi
5338 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5339 fi
5340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5341 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5342 test $ac_cv_safe_to_define___extensions__ = yes &&
5343 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5344
5345 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5346
5347 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5348
5349 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5350
5351 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5352
5478 if ac_fn_c_try_compile "$LINENO"
5479 then :
5480
5481 else $as_nop
5482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5483 /* end confdefs.h. */
5484
5485 #define _XOPEN_SOURCE 500
5486 #include <wchar.h>
5487 mbstate_t x;
5488 int
5489 main (void)
5490 {
5491
5492 ;
5493 return 0;
5494 }
5495 _ACEOF
5496 if ac_fn_c_try_compile "$LINENO"
5497 then :
5498 ac_cv_should_define__xopen_source=yes
5499 fi
5500 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5501 fi
5502 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5503 fi
5504 fi
5505 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
5506 printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; }
5507
5508 printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h
5509
5510 printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h
5511
5512 printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h
5513
5514 printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h
5515
5516 printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h
5517
5518 printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h
5519
5520 printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5521
5522 printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h
5523
5524 printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h
5525
5526 printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h
5527
5528 printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h
5529
5530 printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h
5531
5532 printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h
5533
5534 printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h
5535
5536 printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h
5537
5538 if test $ac_cv_header_minix_config_h = yes
5539 then :
5540 MINIX=yes
5541 printf "%s\n" "#define _MINIX 1" >>confdefs.h
5542
5543 printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h
5544
5545 printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h
5546
5547 else $as_nop
5548 MINIX=
5549 fi
5550 if test $ac_cv_safe_to_define___extensions__ = yes
5551 then :
5552 printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h
5553
5554 fi
5555 if test $ac_cv_should_define__xopen_source = yes
5556 then :
5557 printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h
5558
5559 fi
53535560
53545561 # Check whether --enable-largefile was given.
5355 if test "${enable_largefile+set}" = set; then :
5562 if test ${enable_largefile+y}
5563 then :
53565564 enableval=$enable_largefile;
53575565 fi
53585566
53595567 if test "$enable_largefile" != no; then
53605568
5361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5362 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5363 if ${ac_cv_sys_largefile_CC+:} false; then :
5364 $as_echo_n "(cached) " >&6
5365 else
5569 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5570 printf %s "checking for special C compiler options needed for large files... " >&6; }
5571 if test ${ac_cv_sys_largefile_CC+y}
5572 then :
5573 printf %s "(cached) " >&6
5574 else $as_nop
53665575 ac_cv_sys_largefile_CC=no
53675576 if test "$GCC" != yes; then
53685577 ac_save_CC=$CC
53765585 We can't simply define LARGE_OFF_T to be 9223372036854775807,
53775586 since some C++ compilers masquerading as C compilers
53785587 incorrectly reject 9223372036854775807. */
5379 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
5588 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
53805589 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
53815590 && LARGE_OFF_T % 2147483647 == 1)
53825591 ? 1 : -1];
53835592 int
5384 main ()
5593 main (void)
53855594 {
53865595
53875596 ;
53885597 return 0;
53895598 }
53905599 _ACEOF
5391 if ac_fn_c_try_compile "$LINENO"; then :
5600 if ac_fn_c_try_compile "$LINENO"
5601 then :
53925602 break
53935603 fi
5394 rm -f core conftest.err conftest.$ac_objext
5604 rm -f core conftest.err conftest.$ac_objext conftest.beam
53955605 CC="$CC -n32"
5396 if ac_fn_c_try_compile "$LINENO"; then :
5606 if ac_fn_c_try_compile "$LINENO"
5607 then :
53975608 ac_cv_sys_largefile_CC=' -n32'; break
53985609 fi
5399 rm -f core conftest.err conftest.$ac_objext
5610 rm -f core conftest.err conftest.$ac_objext conftest.beam
54005611 break
54015612 done
54025613 CC=$ac_save_CC
54035614 rm -f conftest.$ac_ext
54045615 fi
54055616 fi
5406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5407 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5617 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5618 printf "%s\n" "$ac_cv_sys_largefile_CC" >&6; }
54085619 if test "$ac_cv_sys_largefile_CC" != no; then
54095620 CC=$CC$ac_cv_sys_largefile_CC
54105621 fi
54115622
5412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5413 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5414 if ${ac_cv_sys_file_offset_bits+:} false; then :
5415 $as_echo_n "(cached) " >&6
5416 else
5623 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5624 printf %s "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5625 if test ${ac_cv_sys_file_offset_bits+y}
5626 then :
5627 printf %s "(cached) " >&6
5628 else $as_nop
54175629 while :; do
54185630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
54195631 /* end confdefs.h. */
54225634 We can't simply define LARGE_OFF_T to be 9223372036854775807,
54235635 since some C++ compilers masquerading as C compilers
54245636 incorrectly reject 9223372036854775807. */
5425 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
5637 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
54265638 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
54275639 && LARGE_OFF_T % 2147483647 == 1)
54285640 ? 1 : -1];
54295641 int
5430 main ()
5642 main (void)
54315643 {
54325644
54335645 ;
54345646 return 0;
54355647 }
54365648 _ACEOF
5437 if ac_fn_c_try_compile "$LINENO"; then :
5649 if ac_fn_c_try_compile "$LINENO"
5650 then :
54385651 ac_cv_sys_file_offset_bits=no; break
54395652 fi
5440 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5653 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
54415654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
54425655 /* end confdefs.h. */
54435656 #define _FILE_OFFSET_BITS 64
54465659 We can't simply define LARGE_OFF_T to be 9223372036854775807,
54475660 since some C++ compilers masquerading as C compilers
54485661 incorrectly reject 9223372036854775807. */
5449 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
5662 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
54505663 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
54515664 && LARGE_OFF_T % 2147483647 == 1)
54525665 ? 1 : -1];
54535666 int
5454 main ()
5667 main (void)
54555668 {
54565669
54575670 ;
54585671 return 0;
54595672 }
54605673 _ACEOF
5461 if ac_fn_c_try_compile "$LINENO"; then :
5674 if ac_fn_c_try_compile "$LINENO"
5675 then :
54625676 ac_cv_sys_file_offset_bits=64; break
54635677 fi
5464 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5678 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
54655679 ac_cv_sys_file_offset_bits=unknown
54665680 break
54675681 done
54685682 fi
5469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5470 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5683 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5684 printf "%s\n" "$ac_cv_sys_file_offset_bits" >&6; }
54715685 case $ac_cv_sys_file_offset_bits in #(
54725686 no | unknown) ;;
54735687 *)
5474 cat >>confdefs.h <<_ACEOF
5475 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5476 _ACEOF
5688 printf "%s\n" "#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits" >>confdefs.h
54775689 ;;
54785690 esac
54795691 rm -rf conftest*
54805692 if test $ac_cv_sys_file_offset_bits = unknown; then
5481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5482 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5483 if ${ac_cv_sys_large_files+:} false; then :
5484 $as_echo_n "(cached) " >&6
5485 else
5693 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5694 printf %s "checking for _LARGE_FILES value needed for large files... " >&6; }
5695 if test ${ac_cv_sys_large_files+y}
5696 then :
5697 printf %s "(cached) " >&6
5698 else $as_nop
54865699 while :; do
54875700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
54885701 /* end confdefs.h. */
54915704 We can't simply define LARGE_OFF_T to be 9223372036854775807,
54925705 since some C++ compilers masquerading as C compilers
54935706 incorrectly reject 9223372036854775807. */
5494 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
5707 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
54955708 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
54965709 && LARGE_OFF_T % 2147483647 == 1)
54975710 ? 1 : -1];
54985711 int
5499 main ()
5712 main (void)
55005713 {
55015714
55025715 ;
55035716 return 0;
55045717 }
55055718 _ACEOF
5506 if ac_fn_c_try_compile "$LINENO"; then :
5719 if ac_fn_c_try_compile "$LINENO"
5720 then :
55075721 ac_cv_sys_large_files=no; break
55085722 fi
5509 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5723 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
55105724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
55115725 /* end confdefs.h. */
55125726 #define _LARGE_FILES 1
55155729 We can't simply define LARGE_OFF_T to be 9223372036854775807,
55165730 since some C++ compilers masquerading as C compilers
55175731 incorrectly reject 9223372036854775807. */
5518 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
5732 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
55195733 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
55205734 && LARGE_OFF_T % 2147483647 == 1)
55215735 ? 1 : -1];
55225736 int
5523 main ()
5737 main (void)
55245738 {
55255739
55265740 ;
55275741 return 0;
55285742 }
55295743 _ACEOF
5530 if ac_fn_c_try_compile "$LINENO"; then :
5744 if ac_fn_c_try_compile "$LINENO"
5745 then :
55315746 ac_cv_sys_large_files=1; break
55325747 fi
5533 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5748 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
55345749 ac_cv_sys_large_files=unknown
55355750 break
55365751 done
55375752 fi
5538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5539 $as_echo "$ac_cv_sys_large_files" >&6; }
5753 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5754 printf "%s\n" "$ac_cv_sys_large_files" >&6; }
55405755 case $ac_cv_sys_large_files in #(
55415756 no | unknown) ;;
55425757 *)
5543 cat >>confdefs.h <<_ACEOF
5544 #define _LARGE_FILES $ac_cv_sys_large_files
5545 _ACEOF
5758 printf "%s\n" "#define _LARGE_FILES $ac_cv_sys_large_files" >>confdefs.h
55465759 ;;
55475760 esac
55485761 rm -rf conftest*
55495762 fi
5550
5551
55525763 fi
55535764
55545765
55555766 # Check whether --enable-silent-rules was given.
5556 if test "${enable_silent_rules+set}" = set; then :
5767 if test ${enable_silent_rules+y}
5768 then :
55575769 enableval=$enable_silent_rules;
55585770 fi
55595771
55635775 *) AM_DEFAULT_VERBOSITY=0;;
55645776 esac
55655777 am_make=${MAKE-make}
5566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
5567 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
5568 if ${am_cv_make_support_nested_variables+:} false; then :
5569 $as_echo_n "(cached) " >&6
5570 else
5571 if $as_echo 'TRUE=$(BAR$(V))
5778 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
5779 printf %s "checking whether $am_make supports nested variables... " >&6; }
5780 if test ${am_cv_make_support_nested_variables+y}
5781 then :
5782 printf %s "(cached) " >&6
5783 else $as_nop
5784 if printf "%s\n" 'TRUE=$(BAR$(V))
55725785 BAR0=false
55735786 BAR1=true
55745787 V=1
55805793 am_cv_make_support_nested_variables=no
55815794 fi
55825795 fi
5583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
5584 $as_echo "$am_cv_make_support_nested_variables" >&6; }
5796 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
5797 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
55855798 if test $am_cv_make_support_nested_variables = yes; then
55865799 AM_V='$(V)'
55875800 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
55935806
55945807 case `pwd` in
55955808 *\ * | *\ *)
5596 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5597 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5809 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5810 printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
55985811 esac
55995812
56005813
56145827
56155828
56165829
5830
56175831 ltmain=$ac_aux_dir/ltmain.sh
56185832
5619 # Make sure we can run config.sub.
5620 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5621 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5622
5623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5624 $as_echo_n "checking build system type... " >&6; }
5625 if ${ac_cv_build+:} false; then :
5626 $as_echo_n "(cached) " >&6
5627 else
5833
5834
5835 # Make sure we can run config.sub.
5836 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
5837 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
5838
5839 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5840 printf %s "checking build system type... " >&6; }
5841 if test ${ac_cv_build+y}
5842 then :
5843 printf %s "(cached) " >&6
5844 else $as_nop
56285845 ac_build_alias=$build_alias
56295846 test "x$ac_build_alias" = x &&
5630 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5847 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
56315848 test "x$ac_build_alias" = x &&
56325849 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5633 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5634 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5635
5636 fi
5637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5638 $as_echo "$ac_cv_build" >&6; }
5850 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
5851 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
5852
5853 fi
5854 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5855 printf "%s\n" "$ac_cv_build" >&6; }
56395856 case $ac_cv_build in
56405857 *-*-*) ;;
56415858 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
56545871 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
56555872
56565873
5657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5658 $as_echo_n "checking host system type... " >&6; }
5659 if ${ac_cv_host+:} false; then :
5660 $as_echo_n "(cached) " >&6
5661 else
5874 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5875 printf %s "checking host system type... " >&6; }
5876 if test ${ac_cv_host+y}
5877 then :
5878 printf %s "(cached) " >&6
5879 else $as_nop
56625880 if test "x$host_alias" = x; then
56635881 ac_cv_host=$ac_cv_build
56645882 else
5665 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5666 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5667 fi
5668
5669 fi
5670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5671 $as_echo "$ac_cv_host" >&6; }
5883 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
5884 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
5885 fi
5886
5887 fi
5888 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5889 printf "%s\n" "$ac_cv_host" >&6; }
56725890 case $ac_cv_host in
56735891 *-*-*) ;;
56745892 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
57085926 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
57095927 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
57105928
5711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5712 $as_echo_n "checking how to print strings... " >&6; }
5929 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5930 printf %s "checking how to print strings... " >&6; }
57135931 # Test print first, because it will be a builtin if present.
57145932 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
57155933 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
57355953 }
57365954
57375955 case $ECHO in
5738 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5739 $as_echo "printf" >&6; } ;;
5740 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5741 $as_echo "print -r" >&6; } ;;
5742 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5743 $as_echo "cat" >&6; } ;;
5956 printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5957 printf "%s\n" "printf" >&6; } ;;
5958 print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5959 printf "%s\n" "print -r" >&6; } ;;
5960 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5961 printf "%s\n" "cat" >&6; } ;;
57445962 esac
57455963
57465964
57565974
57575975
57585976
5759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5760 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5761 if ${ac_cv_path_SED+:} false; then :
5762 $as_echo_n "(cached) " >&6
5763 else
5977 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5978 printf %s "checking for a sed that does not truncate output... " >&6; }
5979 if test ${ac_cv_path_SED+y}
5980 then :
5981 printf %s "(cached) " >&6
5982 else $as_nop
57645983 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
57655984 for ac_i in 1 2 3 4 5 6 7; do
57665985 ac_script="$ac_script$as_nl$ac_script"
57745993 for as_dir in $PATH
57755994 do
57765995 IFS=$as_save_IFS
5777 test -z "$as_dir" && as_dir=.
5778 for ac_prog in sed gsed; do
5996 case $as_dir in #(((
5997 '') as_dir=./ ;;
5998 */) ;;
5999 *) as_dir=$as_dir/ ;;
6000 esac
6001 for ac_prog in sed gsed
6002 do
57796003 for ac_exec_ext in '' $ac_executable_extensions; do
5780 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6004 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
57816005 as_fn_executable_p "$ac_path_SED" || continue
57826006 # Check for GNU ac_path_SED and select it if it is found.
57836007 # Check for GNU $ac_path_SED
57866010 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
57876011 *)
57886012 ac_count=0
5789 $as_echo_n 0123456789 >"conftest.in"
6013 printf %s 0123456789 >"conftest.in"
57906014 while :
57916015 do
57926016 cat "conftest.in" "conftest.in" >"conftest.tmp"
57936017 mv "conftest.tmp" "conftest.in"
57946018 cp "conftest.in" "conftest.nl"
5795 $as_echo '' >> "conftest.nl"
6019 printf "%s\n" '' >> "conftest.nl"
57966020 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
57976021 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
57986022 as_fn_arith $ac_count + 1 && ac_count=$as_val
58206044 fi
58216045
58226046 fi
5823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5824 $as_echo "$ac_cv_path_SED" >&6; }
6047 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6048 printf "%s\n" "$ac_cv_path_SED" >&6; }
58256049 SED="$ac_cv_path_SED"
58266050 rm -f conftest.sed
58276051
58386062
58396063
58406064
5841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5842 $as_echo_n "checking for fgrep... " >&6; }
5843 if ${ac_cv_path_FGREP+:} false; then :
5844 $as_echo_n "(cached) " >&6
6065 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6066 printf %s "checking for grep that handles long lines and -e... " >&6; }
6067 if test ${ac_cv_path_GREP+y}
6068 then :
6069 printf %s "(cached) " >&6
6070 else $as_nop
6071 if test -z "$GREP"; then
6072 ac_path_GREP_found=false
6073 # Loop through the user's path and test for each of PROGNAME-LIST
6074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6075 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6076 do
6077 IFS=$as_save_IFS
6078 case $as_dir in #(((
6079 '') as_dir=./ ;;
6080 */) ;;
6081 *) as_dir=$as_dir/ ;;
6082 esac
6083 for ac_prog in grep ggrep
6084 do
6085 for ac_exec_ext in '' $ac_executable_extensions; do
6086 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
6087 as_fn_executable_p "$ac_path_GREP" || continue
6088 # Check for GNU ac_path_GREP and select it if it is found.
6089 # Check for GNU $ac_path_GREP
6090 case `"$ac_path_GREP" --version 2>&1` in
6091 *GNU*)
6092 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6093 *)
6094 ac_count=0
6095 printf %s 0123456789 >"conftest.in"
6096 while :
6097 do
6098 cat "conftest.in" "conftest.in" >"conftest.tmp"
6099 mv "conftest.tmp" "conftest.in"
6100 cp "conftest.in" "conftest.nl"
6101 printf "%s\n" 'GREP' >> "conftest.nl"
6102 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6103 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6104 as_fn_arith $ac_count + 1 && ac_count=$as_val
6105 if test $ac_count -gt ${ac_path_GREP_max-0}; then
6106 # Best one so far, save it but keep looking for a better one
6107 ac_cv_path_GREP="$ac_path_GREP"
6108 ac_path_GREP_max=$ac_count
6109 fi
6110 # 10*(2^10) chars as input seems more than enough
6111 test $ac_count -gt 10 && break
6112 done
6113 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6114 esac
6115
6116 $ac_path_GREP_found && break 3
6117 done
6118 done
6119 done
6120 IFS=$as_save_IFS
6121 if test -z "$ac_cv_path_GREP"; then
6122 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6123 fi
58456124 else
6125 ac_cv_path_GREP=$GREP
6126 fi
6127
6128 fi
6129 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6130 printf "%s\n" "$ac_cv_path_GREP" >&6; }
6131 GREP="$ac_cv_path_GREP"
6132
6133
6134 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6135 printf %s "checking for egrep... " >&6; }
6136 if test ${ac_cv_path_EGREP+y}
6137 then :
6138 printf %s "(cached) " >&6
6139 else $as_nop
6140 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6141 then ac_cv_path_EGREP="$GREP -E"
6142 else
6143 if test -z "$EGREP"; then
6144 ac_path_EGREP_found=false
6145 # Loop through the user's path and test for each of PROGNAME-LIST
6146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6147 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6148 do
6149 IFS=$as_save_IFS
6150 case $as_dir in #(((
6151 '') as_dir=./ ;;
6152 */) ;;
6153 *) as_dir=$as_dir/ ;;
6154 esac
6155 for ac_prog in egrep
6156 do
6157 for ac_exec_ext in '' $ac_executable_extensions; do
6158 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
6159 as_fn_executable_p "$ac_path_EGREP" || continue
6160 # Check for GNU ac_path_EGREP and select it if it is found.
6161 # Check for GNU $ac_path_EGREP
6162 case `"$ac_path_EGREP" --version 2>&1` in
6163 *GNU*)
6164 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6165 *)
6166 ac_count=0
6167 printf %s 0123456789 >"conftest.in"
6168 while :
6169 do
6170 cat "conftest.in" "conftest.in" >"conftest.tmp"
6171 mv "conftest.tmp" "conftest.in"
6172 cp "conftest.in" "conftest.nl"
6173 printf "%s\n" 'EGREP' >> "conftest.nl"
6174 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6175 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6176 as_fn_arith $ac_count + 1 && ac_count=$as_val
6177 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6178 # Best one so far, save it but keep looking for a better one
6179 ac_cv_path_EGREP="$ac_path_EGREP"
6180 ac_path_EGREP_max=$ac_count
6181 fi
6182 # 10*(2^10) chars as input seems more than enough
6183 test $ac_count -gt 10 && break
6184 done
6185 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6186 esac
6187
6188 $ac_path_EGREP_found && break 3
6189 done
6190 done
6191 done
6192 IFS=$as_save_IFS
6193 if test -z "$ac_cv_path_EGREP"; then
6194 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6195 fi
6196 else
6197 ac_cv_path_EGREP=$EGREP
6198 fi
6199
6200 fi
6201 fi
6202 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6203 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
6204 EGREP="$ac_cv_path_EGREP"
6205
6206
6207 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6208 printf %s "checking for fgrep... " >&6; }
6209 if test ${ac_cv_path_FGREP+y}
6210 then :
6211 printf %s "(cached) " >&6
6212 else $as_nop
58466213 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
58476214 then ac_cv_path_FGREP="$GREP -F"
58486215 else
58536220 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
58546221 do
58556222 IFS=$as_save_IFS
5856 test -z "$as_dir" && as_dir=.
5857 for ac_prog in fgrep; do
6223 case $as_dir in #(((
6224 '') as_dir=./ ;;
6225 */) ;;
6226 *) as_dir=$as_dir/ ;;
6227 esac
6228 for ac_prog in fgrep
6229 do
58586230 for ac_exec_ext in '' $ac_executable_extensions; do
5859 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6231 ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
58606232 as_fn_executable_p "$ac_path_FGREP" || continue
58616233 # Check for GNU ac_path_FGREP and select it if it is found.
58626234 # Check for GNU $ac_path_FGREP
58656237 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
58666238 *)
58676239 ac_count=0
5868 $as_echo_n 0123456789 >"conftest.in"
6240 printf %s 0123456789 >"conftest.in"
58696241 while :
58706242 do
58716243 cat "conftest.in" "conftest.in" >"conftest.tmp"
58726244 mv "conftest.tmp" "conftest.in"
58736245 cp "conftest.in" "conftest.nl"
5874 $as_echo 'FGREP' >> "conftest.nl"
6246 printf "%s\n" 'FGREP' >> "conftest.nl"
58756247 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
58766248 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
58776249 as_fn_arith $ac_count + 1 && ac_count=$as_val
59006272
59016273 fi
59026274 fi
5903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5904 $as_echo "$ac_cv_path_FGREP" >&6; }
6275 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6276 printf "%s\n" "$ac_cv_path_FGREP" >&6; }
59056277 FGREP="$ac_cv_path_FGREP"
59066278
59076279
59266298
59276299
59286300 # Check whether --with-gnu-ld was given.
5929 if test "${with_gnu_ld+set}" = set; then :
6301 if test ${with_gnu_ld+y}
6302 then :
59306303 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
5931 else
6304 else $as_nop
59326305 with_gnu_ld=no
59336306 fi
59346307
59356308 ac_prog=ld
59366309 if test yes = "$GCC"; then
59376310 # Check if gcc -print-prog-name=ld gives a path.
5938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5939 $as_echo_n "checking for ld used by $CC... " >&6; }
6311 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6312 printf %s "checking for ld used by $CC... " >&6; }
59406313 case $host in
59416314 *-*-mingw*)
59426315 # gcc leaves a trailing carriage return, which upsets mingw
59656338 ;;
59666339 esac
59676340 elif test yes = "$with_gnu_ld"; then
5968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5969 $as_echo_n "checking for GNU ld... " >&6; }
6341 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6342 printf %s "checking for GNU ld... " >&6; }
59706343 else
5971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5972 $as_echo_n "checking for non-GNU ld... " >&6; }
5973 fi
5974 if ${lt_cv_path_LD+:} false; then :
5975 $as_echo_n "(cached) " >&6
5976 else
6344 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6345 printf %s "checking for non-GNU ld... " >&6; }
6346 fi
6347 if test ${lt_cv_path_LD+y}
6348 then :
6349 printf %s "(cached) " >&6
6350 else $as_nop
59776351 if test -z "$LD"; then
59786352 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
59796353 for ac_dir in $PATH; do
60026376
60036377 LD=$lt_cv_path_LD
60046378 if test -n "$LD"; then
6005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6006 $as_echo "$LD" >&6; }
6379 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6380 printf "%s\n" "$LD" >&6; }
60076381 else
6008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6009 $as_echo "no" >&6; }
6382 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6383 printf "%s\n" "no" >&6; }
60106384 fi
60116385 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6013 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6014 if ${lt_cv_prog_gnu_ld+:} false; then :
6015 $as_echo_n "(cached) " >&6
6016 else
6386 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6387 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
6388 if test ${lt_cv_prog_gnu_ld+y}
6389 then :
6390 printf %s "(cached) " >&6
6391 else $as_nop
60176392 # I'd rather use --version here, but apparently some GNU lds only accept -v.
60186393 case `$LD -v 2>&1 </dev/null` in
60196394 *GNU* | *'with BFD'*)
60246399 ;;
60256400 esac
60266401 fi
6027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6028 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6402 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6403 printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
60296404 with_gnu_ld=$lt_cv_prog_gnu_ld
60306405
60316406
60366411
60376412
60386413
6039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6040 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6041 if ${lt_cv_path_NM+:} false; then :
6042 $as_echo_n "(cached) " >&6
6043 else
6414 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6415 printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6416 if test ${lt_cv_path_NM+y}
6417 then :
6418 printf %s "(cached) " >&6
6419 else $as_nop
60446420 if test -n "$NM"; then
60456421 # Let the user override the test.
60466422 lt_cv_path_NM=$NM
60656441 mingw*) lt_bad_file=conftest.nm/nofile ;;
60666442 *) lt_bad_file=/dev/null ;;
60676443 esac
6068 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
6444 case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in
60696445 *$lt_bad_file* | *'Invalid file or object type'*)
60706446 lt_cv_path_NM="$tmp_nm -B"
60716447 break 2
60726448 ;;
60736449 *)
6074 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6450 case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in
60756451 */dev/null*)
60766452 lt_cv_path_NM="$tmp_nm -p"
60776453 break 2
60906466 : ${lt_cv_path_NM=no}
60916467 fi
60926468 fi
6093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6094 $as_echo "$lt_cv_path_NM" >&6; }
6469 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6470 printf "%s\n" "$lt_cv_path_NM" >&6; }
60956471 if test no != "$lt_cv_path_NM"; then
60966472 NM=$lt_cv_path_NM
60976473 else
61046480 do
61056481 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
61066482 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6108 $as_echo_n "checking for $ac_word... " >&6; }
6109 if ${ac_cv_prog_DUMPBIN+:} false; then :
6110 $as_echo_n "(cached) " >&6
6111 else
6483 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6484 printf %s "checking for $ac_word... " >&6; }
6485 if test ${ac_cv_prog_DUMPBIN+y}
6486 then :
6487 printf %s "(cached) " >&6
6488 else $as_nop
61126489 if test -n "$DUMPBIN"; then
61136490 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
61146491 else
61166493 for as_dir in $PATH
61176494 do
61186495 IFS=$as_save_IFS
6119 test -z "$as_dir" && as_dir=.
6496 case $as_dir in #(((
6497 '') as_dir=./ ;;
6498 */) ;;
6499 *) as_dir=$as_dir/ ;;
6500 esac
61206501 for ac_exec_ext in '' $ac_executable_extensions; do
6121 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6502 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
61226503 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6123 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6504 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
61246505 break 2
61256506 fi
61266507 done
61316512 fi
61326513 DUMPBIN=$ac_cv_prog_DUMPBIN
61336514 if test -n "$DUMPBIN"; then
6134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6135 $as_echo "$DUMPBIN" >&6; }
6515 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6516 printf "%s\n" "$DUMPBIN" >&6; }
61366517 else
6137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6138 $as_echo "no" >&6; }
6518 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6519 printf "%s\n" "no" >&6; }
61396520 fi
61406521
61416522
61486529 do
61496530 # Extract the first word of "$ac_prog", so it can be a program name with args.
61506531 set dummy $ac_prog; ac_word=$2
6151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6152 $as_echo_n "checking for $ac_word... " >&6; }
6153 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
6154 $as_echo_n "(cached) " >&6
6155 else
6532 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6533 printf %s "checking for $ac_word... " >&6; }
6534 if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
6535 then :
6536 printf %s "(cached) " >&6
6537 else $as_nop
61566538 if test -n "$ac_ct_DUMPBIN"; then
61576539 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
61586540 else
61606542 for as_dir in $PATH
61616543 do
61626544 IFS=$as_save_IFS
6163 test -z "$as_dir" && as_dir=.
6545 case $as_dir in #(((
6546 '') as_dir=./ ;;
6547 */) ;;
6548 *) as_dir=$as_dir/ ;;
6549 esac
61646550 for ac_exec_ext in '' $ac_executable_extensions; do
6165 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6551 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
61666552 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6167 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6553 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
61686554 break 2
61696555 fi
61706556 done
61756561 fi
61766562 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
61776563 if test -n "$ac_ct_DUMPBIN"; then
6178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6179 $as_echo "$ac_ct_DUMPBIN" >&6; }
6564 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6565 printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
61806566 else
6181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6182 $as_echo "no" >&6; }
6567 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6568 printf "%s\n" "no" >&6; }
61836569 fi
61846570
61856571
61916577 else
61926578 case $cross_compiling:$ac_tool_warned in
61936579 yes:)
6194 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6195 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6580 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6581 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
61966582 ac_tool_warned=yes ;;
61976583 esac
61986584 DUMPBIN=$ac_ct_DUMPBIN
61996585 fi
62006586 fi
62016587
6202 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
6588 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in
62036589 *COFF*)
62046590 DUMPBIN="$DUMPBIN -symbols -headers"
62056591 ;;
62206606
62216607
62226608
6223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6224 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6225 if ${lt_cv_nm_interface+:} false; then :
6226 $as_echo_n "(cached) " >&6
6227 else
6609 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6610 printf %s "checking the name lister ($NM) interface... " >&6; }
6611 if test ${lt_cv_nm_interface+y}
6612 then :
6613 printf %s "(cached) " >&6
6614 else $as_nop
62286615 lt_cv_nm_interface="BSD nm"
62296616 echo "int some_variable = 0;" > conftest.$ac_ext
62306617 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
62406627 fi
62416628 rm -f conftest*
62426629 fi
6243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6244 $as_echo "$lt_cv_nm_interface" >&6; }
6630 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6631 printf "%s\n" "$lt_cv_nm_interface" >&6; }
62456632
62466633 # find the maximum length of command line arguments
6247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6248 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6249 if ${lt_cv_sys_max_cmd_len+:} false; then :
6250 $as_echo_n "(cached) " >&6
6251 else
6634 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6635 printf %s "checking the maximum length of command line arguments... " >&6; }
6636 if test ${lt_cv_sys_max_cmd_len+y}
6637 then :
6638 printf %s "(cached) " >&6
6639 else $as_nop
62526640 i=0
62536641 teststring=ABCD
62546642
62906678 lt_cv_sys_max_cmd_len=8192;
62916679 ;;
62926680
6293 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
6681 bitrig* | darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
62946682 # This has been around since 386BSD, at least. Likely further.
62956683 if test -x /sbin/sysctl; then
62966684 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
63336721 sysv5* | sco5v6* | sysv4.2uw2*)
63346722 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
63356723 if test -n "$kargmax"; then
6336 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6724 lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[ ]//'`
63376725 else
63386726 lt_cv_sys_max_cmd_len=32768
63396727 fi
63756763 fi
63766764
63776765 if test -n "$lt_cv_sys_max_cmd_len"; then
6378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6379 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6766 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6767 printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
63806768 else
6381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6382 $as_echo "none" >&6; }
6769 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
6770 printf "%s\n" "none" >&6; }
63836771 fi
63846772 max_cmd_len=$lt_cv_sys_max_cmd_len
63856773
64236811
64246812
64256813
6426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6427 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
6428 if ${lt_cv_to_host_file_cmd+:} false; then :
6429 $as_echo_n "(cached) " >&6
6430 else
6814 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6815 printf %s "checking how to convert $build file names to $host format... " >&6; }
6816 if test ${lt_cv_to_host_file_cmd+y}
6817 then :
6818 printf %s "(cached) " >&6
6819 else $as_nop
64316820 case $host in
64326821 *-*-mingw* )
64336822 case $build in
64636852 fi
64646853
64656854 to_host_file_cmd=$lt_cv_to_host_file_cmd
6466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6467 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
6468
6469
6470
6471
6472
6473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6474 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
6475 if ${lt_cv_to_tool_file_cmd+:} false; then :
6476 $as_echo_n "(cached) " >&6
6477 else
6855 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6856 printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
6857
6858
6859
6860
6861
6862 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6863 printf %s "checking how to convert $build file names to toolchain format... " >&6; }
6864 if test ${lt_cv_to_tool_file_cmd+y}
6865 then :
6866 printf %s "(cached) " >&6
6867 else $as_nop
64786868 #assume ordinary cross tools, or native build.
64796869 lt_cv_to_tool_file_cmd=func_convert_file_noop
64806870 case $host in
64906880 fi
64916881
64926882 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6494 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
6495
6496
6497
6498
6499
6500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6501 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6502 if ${lt_cv_ld_reload_flag+:} false; then :
6503 $as_echo_n "(cached) " >&6
6504 else
6883 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6884 printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
6885
6886
6887
6888
6889
6890 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6891 printf %s "checking for $LD option to reload object files... " >&6; }
6892 if test ${lt_cv_ld_reload_flag+y}
6893 then :
6894 printf %s "(cached) " >&6
6895 else $as_nop
65056896 lt_cv_ld_reload_flag='-r'
65066897 fi
6507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6508 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6898 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6899 printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
65096900 reload_flag=$lt_cv_ld_reload_flag
65106901 case $reload_flag in
65116902 "" | " "*) ;;
65366927
65376928
65386929 if test -n "$ac_tool_prefix"; then
6930 # Extract the first word of "${ac_tool_prefix}file", so it can be a program name with args.
6931 set dummy ${ac_tool_prefix}file; ac_word=$2
6932 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6933 printf %s "checking for $ac_word... " >&6; }
6934 if test ${ac_cv_prog_FILECMD+y}
6935 then :
6936 printf %s "(cached) " >&6
6937 else $as_nop
6938 if test -n "$FILECMD"; then
6939 ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test.
6940 else
6941 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6942 for as_dir in $PATH
6943 do
6944 IFS=$as_save_IFS
6945 case $as_dir in #(((
6946 '') as_dir=./ ;;
6947 */) ;;
6948 *) as_dir=$as_dir/ ;;
6949 esac
6950 for ac_exec_ext in '' $ac_executable_extensions; do
6951 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6952 ac_cv_prog_FILECMD="${ac_tool_prefix}file"
6953 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6954 break 2
6955 fi
6956 done
6957 done
6958 IFS=$as_save_IFS
6959
6960 fi
6961 fi
6962 FILECMD=$ac_cv_prog_FILECMD
6963 if test -n "$FILECMD"; then
6964 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5
6965 printf "%s\n" "$FILECMD" >&6; }
6966 else
6967 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6968 printf "%s\n" "no" >&6; }
6969 fi
6970
6971
6972 fi
6973 if test -z "$ac_cv_prog_FILECMD"; then
6974 ac_ct_FILECMD=$FILECMD
6975 # Extract the first word of "file", so it can be a program name with args.
6976 set dummy file; ac_word=$2
6977 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6978 printf %s "checking for $ac_word... " >&6; }
6979 if test ${ac_cv_prog_ac_ct_FILECMD+y}
6980 then :
6981 printf %s "(cached) " >&6
6982 else $as_nop
6983 if test -n "$ac_ct_FILECMD"; then
6984 ac_cv_prog_ac_ct_FILECMD="$ac_ct_FILECMD" # Let the user override the test.
6985 else
6986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6987 for as_dir in $PATH
6988 do
6989 IFS=$as_save_IFS
6990 case $as_dir in #(((
6991 '') as_dir=./ ;;
6992 */) ;;
6993 *) as_dir=$as_dir/ ;;
6994 esac
6995 for ac_exec_ext in '' $ac_executable_extensions; do
6996 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6997 ac_cv_prog_ac_ct_FILECMD="file"
6998 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6999 break 2
7000 fi
7001 done
7002 done
7003 IFS=$as_save_IFS
7004
7005 fi
7006 fi
7007 ac_ct_FILECMD=$ac_cv_prog_ac_ct_FILECMD
7008 if test -n "$ac_ct_FILECMD"; then
7009 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FILECMD" >&5
7010 printf "%s\n" "$ac_ct_FILECMD" >&6; }
7011 else
7012 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7013 printf "%s\n" "no" >&6; }
7014 fi
7015
7016 if test "x$ac_ct_FILECMD" = x; then
7017 FILECMD=":"
7018 else
7019 case $cross_compiling:$ac_tool_warned in
7020 yes:)
7021 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7022 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7023 ac_tool_warned=yes ;;
7024 esac
7025 FILECMD=$ac_ct_FILECMD
7026 fi
7027 else
7028 FILECMD="$ac_cv_prog_FILECMD"
7029 fi
7030
7031
7032
7033
7034
7035
7036
7037 if test -n "$ac_tool_prefix"; then
65397038 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
65407039 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6542 $as_echo_n "checking for $ac_word... " >&6; }
6543 if ${ac_cv_prog_OBJDUMP+:} false; then :
6544 $as_echo_n "(cached) " >&6
6545 else
7040 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7041 printf %s "checking for $ac_word... " >&6; }
7042 if test ${ac_cv_prog_OBJDUMP+y}
7043 then :
7044 printf %s "(cached) " >&6
7045 else $as_nop
65467046 if test -n "$OBJDUMP"; then
65477047 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
65487048 else
65507050 for as_dir in $PATH
65517051 do
65527052 IFS=$as_save_IFS
6553 test -z "$as_dir" && as_dir=.
7053 case $as_dir in #(((
7054 '') as_dir=./ ;;
7055 */) ;;
7056 *) as_dir=$as_dir/ ;;
7057 esac
65547058 for ac_exec_ext in '' $ac_executable_extensions; do
6555 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7059 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
65567060 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6557 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7061 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
65587062 break 2
65597063 fi
65607064 done
65657069 fi
65667070 OBJDUMP=$ac_cv_prog_OBJDUMP
65677071 if test -n "$OBJDUMP"; then
6568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6569 $as_echo "$OBJDUMP" >&6; }
7072 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7073 printf "%s\n" "$OBJDUMP" >&6; }
65707074 else
6571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6572 $as_echo "no" >&6; }
7075 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7076 printf "%s\n" "no" >&6; }
65737077 fi
65747078
65757079
65787082 ac_ct_OBJDUMP=$OBJDUMP
65797083 # Extract the first word of "objdump", so it can be a program name with args.
65807084 set dummy objdump; ac_word=$2
6581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6582 $as_echo_n "checking for $ac_word... " >&6; }
6583 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6584 $as_echo_n "(cached) " >&6
6585 else
7085 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7086 printf %s "checking for $ac_word... " >&6; }
7087 if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
7088 then :
7089 printf %s "(cached) " >&6
7090 else $as_nop
65867091 if test -n "$ac_ct_OBJDUMP"; then
65877092 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
65887093 else
65907095 for as_dir in $PATH
65917096 do
65927097 IFS=$as_save_IFS
6593 test -z "$as_dir" && as_dir=.
7098 case $as_dir in #(((
7099 '') as_dir=./ ;;
7100 */) ;;
7101 *) as_dir=$as_dir/ ;;
7102 esac
65947103 for ac_exec_ext in '' $ac_executable_extensions; do
6595 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7104 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
65967105 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6597 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7106 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
65987107 break 2
65997108 fi
66007109 done
66057114 fi
66067115 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
66077116 if test -n "$ac_ct_OBJDUMP"; then
6608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6609 $as_echo "$ac_ct_OBJDUMP" >&6; }
7117 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7118 printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
66107119 else
6611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6612 $as_echo "no" >&6; }
7120 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7121 printf "%s\n" "no" >&6; }
66137122 fi
66147123
66157124 if test "x$ac_ct_OBJDUMP" = x; then
66177126 else
66187127 case $cross_compiling:$ac_tool_warned in
66197128 yes:)
6620 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6621 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7129 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7130 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
66227131 ac_tool_warned=yes ;;
66237132 esac
66247133 OBJDUMP=$ac_ct_OBJDUMP
66377146
66387147
66397148
6640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6641 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6642 if ${lt_cv_deplibs_check_method+:} false; then :
6643 $as_echo_n "(cached) " >&6
6644 else
7149 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
7150 printf %s "checking how to recognize dependent libraries... " >&6; }
7151 if test ${lt_cv_deplibs_check_method+y}
7152 then :
7153 printf %s "(cached) " >&6
7154 else $as_nop
66457155 lt_cv_file_magic_cmd='$MAGIC_CMD'
66467156 lt_cv_file_magic_test_file=
66477157 lt_cv_deplibs_check_method='unknown'
66677177
66687178 bsdi[45]*)
66697179 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6670 lt_cv_file_magic_cmd='/usr/bin/file -L'
7180 lt_cv_file_magic_cmd='$FILECMD -L'
66717181 lt_cv_file_magic_test_file=/shlib/libc.so
66727182 ;;
66737183
67017211 lt_cv_deplibs_check_method=pass_all
67027212 ;;
67037213
6704 freebsd* | dragonfly*)
7214 freebsd* | dragonfly* | midnightbsd*)
67057215 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
67067216 case $host_cpu in
67077217 i*86 )
67087218 # Not sure whether the presence of OpenBSD here was a mistake.
67097219 # Let's accept both of them until this is cleared up.
67107220 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6711 lt_cv_file_magic_cmd=/usr/bin/file
7221 lt_cv_file_magic_cmd=$FILECMD
67127222 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
67137223 ;;
67147224 esac
67227232 ;;
67237233
67247234 hpux10.20* | hpux11*)
6725 lt_cv_file_magic_cmd=/usr/bin/file
7235 lt_cv_file_magic_cmd=$FILECMD
67267236 case $host_cpu in
67277237 ia64*)
67287238 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
67697279
67707280 newos6*)
67717281 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6772 lt_cv_file_magic_cmd=/usr/bin/file
7282 lt_cv_file_magic_cmd=$FILECMD
67737283 lt_cv_file_magic_test_file=/usr/lib/libnls.so
67747284 ;;
67757285
68377347 esac
68387348
68397349 fi
6840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6841 $as_echo "$lt_cv_deplibs_check_method" >&6; }
7350 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7351 printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
68427352
68437353 file_magic_glob=
68447354 want_nocaseglob=no
68827392 if test -n "$ac_tool_prefix"; then
68837393 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
68847394 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6886 $as_echo_n "checking for $ac_word... " >&6; }
6887 if ${ac_cv_prog_DLLTOOL+:} false; then :
6888 $as_echo_n "(cached) " >&6
6889 else
7395 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7396 printf %s "checking for $ac_word... " >&6; }
7397 if test ${ac_cv_prog_DLLTOOL+y}
7398 then :
7399 printf %s "(cached) " >&6
7400 else $as_nop
68907401 if test -n "$DLLTOOL"; then
68917402 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
68927403 else
68947405 for as_dir in $PATH
68957406 do
68967407 IFS=$as_save_IFS
6897 test -z "$as_dir" && as_dir=.
7408 case $as_dir in #(((
7409 '') as_dir=./ ;;
7410 */) ;;
7411 *) as_dir=$as_dir/ ;;
7412 esac
68987413 for ac_exec_ext in '' $ac_executable_extensions; do
6899 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7414 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
69007415 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6901 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7416 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
69027417 break 2
69037418 fi
69047419 done
69097424 fi
69107425 DLLTOOL=$ac_cv_prog_DLLTOOL
69117426 if test -n "$DLLTOOL"; then
6912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6913 $as_echo "$DLLTOOL" >&6; }
7427 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7428 printf "%s\n" "$DLLTOOL" >&6; }
69147429 else
6915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6916 $as_echo "no" >&6; }
7430 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7431 printf "%s\n" "no" >&6; }
69177432 fi
69187433
69197434
69227437 ac_ct_DLLTOOL=$DLLTOOL
69237438 # Extract the first word of "dlltool", so it can be a program name with args.
69247439 set dummy dlltool; ac_word=$2
6925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6926 $as_echo_n "checking for $ac_word... " >&6; }
6927 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6928 $as_echo_n "(cached) " >&6
6929 else
7440 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7441 printf %s "checking for $ac_word... " >&6; }
7442 if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
7443 then :
7444 printf %s "(cached) " >&6
7445 else $as_nop
69307446 if test -n "$ac_ct_DLLTOOL"; then
69317447 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
69327448 else
69347450 for as_dir in $PATH
69357451 do
69367452 IFS=$as_save_IFS
6937 test -z "$as_dir" && as_dir=.
7453 case $as_dir in #(((
7454 '') as_dir=./ ;;
7455 */) ;;
7456 *) as_dir=$as_dir/ ;;
7457 esac
69387458 for ac_exec_ext in '' $ac_executable_extensions; do
6939 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7459 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
69407460 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6941 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7461 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
69427462 break 2
69437463 fi
69447464 done
69497469 fi
69507470 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
69517471 if test -n "$ac_ct_DLLTOOL"; then
6952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6953 $as_echo "$ac_ct_DLLTOOL" >&6; }
7472 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7473 printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
69547474 else
6955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6956 $as_echo "no" >&6; }
7475 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7476 printf "%s\n" "no" >&6; }
69577477 fi
69587478
69597479 if test "x$ac_ct_DLLTOOL" = x; then
69617481 else
69627482 case $cross_compiling:$ac_tool_warned in
69637483 yes:)
6964 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6965 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7484 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7485 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
69667486 ac_tool_warned=yes ;;
69677487 esac
69687488 DLLTOOL=$ac_ct_DLLTOOL
69827502
69837503
69847504
6985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6986 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6987 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6988 $as_echo_n "(cached) " >&6
6989 else
7505 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
7506 printf %s "checking how to associate runtime and link libraries... " >&6; }
7507 if test ${lt_cv_sharedlib_from_linklib_cmd+y}
7508 then :
7509 printf %s "(cached) " >&6
7510 else $as_nop
69907511 lt_cv_sharedlib_from_linklib_cmd='unknown'
69917512
69927513 case $host_os in
70097530 esac
70107531
70117532 fi
7012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
7013 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
7533 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
7534 printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
70147535 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
70157536 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
70167537
70257546 do
70267547 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
70277548 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7029 $as_echo_n "checking for $ac_word... " >&6; }
7030 if ${ac_cv_prog_AR+:} false; then :
7031 $as_echo_n "(cached) " >&6
7032 else
7549 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7550 printf %s "checking for $ac_word... " >&6; }
7551 if test ${ac_cv_prog_AR+y}
7552 then :
7553 printf %s "(cached) " >&6
7554 else $as_nop
70337555 if test -n "$AR"; then
70347556 ac_cv_prog_AR="$AR" # Let the user override the test.
70357557 else
70377559 for as_dir in $PATH
70387560 do
70397561 IFS=$as_save_IFS
7040 test -z "$as_dir" && as_dir=.
7562 case $as_dir in #(((
7563 '') as_dir=./ ;;
7564 */) ;;
7565 *) as_dir=$as_dir/ ;;
7566 esac
70417567 for ac_exec_ext in '' $ac_executable_extensions; do
7042 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7568 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
70437569 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
7044 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7570 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
70457571 break 2
70467572 fi
70477573 done
70527578 fi
70537579 AR=$ac_cv_prog_AR
70547580 if test -n "$AR"; then
7055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7056 $as_echo "$AR" >&6; }
7581 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7582 printf "%s\n" "$AR" >&6; }
70577583 else
7058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7059 $as_echo "no" >&6; }
7584 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7585 printf "%s\n" "no" >&6; }
70607586 fi
70617587
70627588
70697595 do
70707596 # Extract the first word of "$ac_prog", so it can be a program name with args.
70717597 set dummy $ac_prog; ac_word=$2
7072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7073 $as_echo_n "checking for $ac_word... " >&6; }
7074 if ${ac_cv_prog_ac_ct_AR+:} false; then :
7075 $as_echo_n "(cached) " >&6
7076 else
7598 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7599 printf %s "checking for $ac_word... " >&6; }
7600 if test ${ac_cv_prog_ac_ct_AR+y}
7601 then :
7602 printf %s "(cached) " >&6
7603 else $as_nop
70777604 if test -n "$ac_ct_AR"; then
70787605 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
70797606 else
70817608 for as_dir in $PATH
70827609 do
70837610 IFS=$as_save_IFS
7084 test -z "$as_dir" && as_dir=.
7611 case $as_dir in #(((
7612 '') as_dir=./ ;;
7613 */) ;;
7614 *) as_dir=$as_dir/ ;;
7615 esac
70857616 for ac_exec_ext in '' $ac_executable_extensions; do
7086 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7617 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
70877618 ac_cv_prog_ac_ct_AR="$ac_prog"
7088 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7619 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
70897620 break 2
70907621 fi
70917622 done
70967627 fi
70977628 ac_ct_AR=$ac_cv_prog_ac_ct_AR
70987629 if test -n "$ac_ct_AR"; then
7099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7100 $as_echo "$ac_ct_AR" >&6; }
7630 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7631 printf "%s\n" "$ac_ct_AR" >&6; }
71017632 else
7102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7103 $as_echo "no" >&6; }
7633 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7634 printf "%s\n" "no" >&6; }
71047635 fi
71057636
71067637
71127643 else
71137644 case $cross_compiling:$ac_tool_warned in
71147645 yes:)
7115 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7116 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7646 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7647 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
71177648 ac_tool_warned=yes ;;
71187649 esac
71197650 AR=$ac_ct_AR
71217652 fi
71227653
71237654 : ${AR=ar}
7124 : ${AR_FLAGS=cr}
7125
7126
7127
7128
7129
7130
7131
7132
7133
7134
7135
7136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
7137 $as_echo_n "checking for archiver @FILE support... " >&6; }
7138 if ${lt_cv_ar_at_file+:} false; then :
7139 $as_echo_n "(cached) " >&6
7140 else
7655
7656
7657
7658
7659
7660
7661 # Use ARFLAGS variable as AR's operation code to sync the variable naming with
7662 # Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have
7663 # higher priority because thats what people were doing historically (setting
7664 # ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS
7665 # variable obsoleted/removed.
7666
7667 test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr}
7668 lt_ar_flags=$AR_FLAGS
7669
7670
7671
7672
7673
7674
7675 # Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override
7676 # by AR_FLAGS because that was never working and AR_FLAGS is about to die.
7677
7678
7679
7680
7681
7682
7683 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
7684 printf %s "checking for archiver @FILE support... " >&6; }
7685 if test ${lt_cv_ar_at_file+y}
7686 then :
7687 printf %s "(cached) " >&6
7688 else $as_nop
71417689 lt_cv_ar_at_file=no
71427690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
71437691 /* end confdefs.h. */
71447692
71457693 int
7146 main ()
7694 main (void)
71477695 {
71487696
71497697 ;
71507698 return 0;
71517699 }
71527700 _ACEOF
7153 if ac_fn_c_try_compile "$LINENO"; then :
7701 if ac_fn_c_try_compile "$LINENO"
7702 then :
71547703 echo conftest.$ac_objext > conftest.lst
71557704 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
71567705 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
71577706 (eval $lt_ar_try) 2>&5
71587707 ac_status=$?
7159 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7708 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
71607709 test $ac_status = 0; }
71617710 if test 0 -eq "$ac_status"; then
71627711 # Ensure the archiver fails upon bogus file names.
71647713 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
71657714 (eval $lt_ar_try) 2>&5
71667715 ac_status=$?
7167 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7716 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
71687717 test $ac_status = 0; }
71697718 if test 0 -ne "$ac_status"; then
71707719 lt_cv_ar_at_file=@
71737722 rm -f conftest.* libconftest.a
71747723
71757724 fi
7176 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7177
7178 fi
7179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
7180 $as_echo "$lt_cv_ar_at_file" >&6; }
7725 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7726
7727 fi
7728 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
7729 printf "%s\n" "$lt_cv_ar_at_file" >&6; }
71817730
71827731 if test no = "$lt_cv_ar_at_file"; then
71837732 archiver_list_spec=
71947743 if test -n "$ac_tool_prefix"; then
71957744 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
71967745 set dummy ${ac_tool_prefix}strip; ac_word=$2
7197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7198 $as_echo_n "checking for $ac_word... " >&6; }
7199 if ${ac_cv_prog_STRIP+:} false; then :
7200 $as_echo_n "(cached) " >&6
7201 else
7746 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7747 printf %s "checking for $ac_word... " >&6; }
7748 if test ${ac_cv_prog_STRIP+y}
7749 then :
7750 printf %s "(cached) " >&6
7751 else $as_nop
72027752 if test -n "$STRIP"; then
72037753 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
72047754 else
72067756 for as_dir in $PATH
72077757 do
72087758 IFS=$as_save_IFS
7209 test -z "$as_dir" && as_dir=.
7759 case $as_dir in #(((
7760 '') as_dir=./ ;;
7761 */) ;;
7762 *) as_dir=$as_dir/ ;;
7763 esac
72107764 for ac_exec_ext in '' $ac_executable_extensions; do
7211 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7765 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
72127766 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7213 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7767 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
72147768 break 2
72157769 fi
72167770 done
72217775 fi
72227776 STRIP=$ac_cv_prog_STRIP
72237777 if test -n "$STRIP"; then
7224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7225 $as_echo "$STRIP" >&6; }
7778 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7779 printf "%s\n" "$STRIP" >&6; }
72267780 else
7227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7228 $as_echo "no" >&6; }
7781 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7782 printf "%s\n" "no" >&6; }
72297783 fi
72307784
72317785
72347788 ac_ct_STRIP=$STRIP
72357789 # Extract the first word of "strip", so it can be a program name with args.
72367790 set dummy strip; ac_word=$2
7237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7238 $as_echo_n "checking for $ac_word... " >&6; }
7239 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
7240 $as_echo_n "(cached) " >&6
7241 else
7791 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7792 printf %s "checking for $ac_word... " >&6; }
7793 if test ${ac_cv_prog_ac_ct_STRIP+y}
7794 then :
7795 printf %s "(cached) " >&6
7796 else $as_nop
72427797 if test -n "$ac_ct_STRIP"; then
72437798 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
72447799 else
72467801 for as_dir in $PATH
72477802 do
72487803 IFS=$as_save_IFS
7249 test -z "$as_dir" && as_dir=.
7804 case $as_dir in #(((
7805 '') as_dir=./ ;;
7806 */) ;;
7807 *) as_dir=$as_dir/ ;;
7808 esac
72507809 for ac_exec_ext in '' $ac_executable_extensions; do
7251 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7810 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
72527811 ac_cv_prog_ac_ct_STRIP="strip"
7253 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7812 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
72547813 break 2
72557814 fi
72567815 done
72617820 fi
72627821 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
72637822 if test -n "$ac_ct_STRIP"; then
7264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7265 $as_echo "$ac_ct_STRIP" >&6; }
7823 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7824 printf "%s\n" "$ac_ct_STRIP" >&6; }
72667825 else
7267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7268 $as_echo "no" >&6; }
7826 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7827 printf "%s\n" "no" >&6; }
72697828 fi
72707829
72717830 if test "x$ac_ct_STRIP" = x; then
72737832 else
72747833 case $cross_compiling:$ac_tool_warned in
72757834 yes:)
7276 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7277 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7835 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7836 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
72787837 ac_tool_warned=yes ;;
72797838 esac
72807839 STRIP=$ac_ct_STRIP
72937852 if test -n "$ac_tool_prefix"; then
72947853 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
72957854 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7297 $as_echo_n "checking for $ac_word... " >&6; }
7298 if ${ac_cv_prog_RANLIB+:} false; then :
7299 $as_echo_n "(cached) " >&6
7300 else
7855 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7856 printf %s "checking for $ac_word... " >&6; }
7857 if test ${ac_cv_prog_RANLIB+y}
7858 then :
7859 printf %s "(cached) " >&6
7860 else $as_nop
73017861 if test -n "$RANLIB"; then
73027862 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
73037863 else
73057865 for as_dir in $PATH
73067866 do
73077867 IFS=$as_save_IFS
7308 test -z "$as_dir" && as_dir=.
7868 case $as_dir in #(((
7869 '') as_dir=./ ;;
7870 */) ;;
7871 *) as_dir=$as_dir/ ;;
7872 esac
73097873 for ac_exec_ext in '' $ac_executable_extensions; do
7310 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7874 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
73117875 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7312 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7876 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
73137877 break 2
73147878 fi
73157879 done
73207884 fi
73217885 RANLIB=$ac_cv_prog_RANLIB
73227886 if test -n "$RANLIB"; then
7323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7324 $as_echo "$RANLIB" >&6; }
7887 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7888 printf "%s\n" "$RANLIB" >&6; }
73257889 else
7326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7327 $as_echo "no" >&6; }
7890 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7891 printf "%s\n" "no" >&6; }
73287892 fi
73297893
73307894
73337897 ac_ct_RANLIB=$RANLIB
73347898 # Extract the first word of "ranlib", so it can be a program name with args.
73357899 set dummy ranlib; ac_word=$2
7336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7337 $as_echo_n "checking for $ac_word... " >&6; }
7338 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7339 $as_echo_n "(cached) " >&6
7340 else
7900 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7901 printf %s "checking for $ac_word... " >&6; }
7902 if test ${ac_cv_prog_ac_ct_RANLIB+y}
7903 then :
7904 printf %s "(cached) " >&6
7905 else $as_nop
73417906 if test -n "$ac_ct_RANLIB"; then
73427907 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
73437908 else
73457910 for as_dir in $PATH
73467911 do
73477912 IFS=$as_save_IFS
7348 test -z "$as_dir" && as_dir=.
7913 case $as_dir in #(((
7914 '') as_dir=./ ;;
7915 */) ;;
7916 *) as_dir=$as_dir/ ;;
7917 esac
73497918 for ac_exec_ext in '' $ac_executable_extensions; do
7350 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7919 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
73517920 ac_cv_prog_ac_ct_RANLIB="ranlib"
7352 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7921 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
73537922 break 2
73547923 fi
73557924 done
73607929 fi
73617930 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
73627931 if test -n "$ac_ct_RANLIB"; then
7363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7364 $as_echo "$ac_ct_RANLIB" >&6; }
7932 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7933 printf "%s\n" "$ac_ct_RANLIB" >&6; }
73657934 else
7366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7367 $as_echo "no" >&6; }
7935 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7936 printf "%s\n" "no" >&6; }
73687937 fi
73697938
73707939 if test "x$ac_ct_RANLIB" = x; then
73727941 else
73737942 case $cross_compiling:$ac_tool_warned in
73747943 yes:)
7375 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7376 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7944 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7945 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
73777946 ac_tool_warned=yes ;;
73787947 esac
73797948 RANLIB=$ac_ct_RANLIB
74628031
74638032
74648033 # Check for command to grab the raw symbol name followed by C symbol from nm.
7465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7466 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7467 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7468 $as_echo_n "(cached) " >&6
7469 else
8034 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
8035 printf %s "checking command to parse $NM output from $compiler object... " >&6; }
8036 if test ${lt_cv_sys_global_symbol_pipe+y}
8037 then :
8038 printf %s "(cached) " >&6
8039 else $as_nop
74708040
74718041 # These are sane defaults that work on at least a few old systems.
74728042 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
75218091
75228092 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
75238093 # Gets list of data symbols to import.
7524 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
8094 lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'"
75258095 # Adjust the below global symbol transforms to fixup imported variables.
75268096 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
75278097 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
75398109 # Transform an extracted symbol line into a proper C declaration.
75408110 # Some systems (esp. on ia64) link data and code symbols differently,
75418111 # so use this general approach.
7542 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
8112 lt_cv_sys_global_symbol_to_cdecl="$SED -n"\
75438113 $lt_cdecl_hook\
75448114 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
75458115 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
75468116
75478117 # Transform an extracted symbol line into symbol name and symbol address
7548 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
8118 lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\
75498119 $lt_c_name_hook\
75508120 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
75518121 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
75528122
75538123 # Transform an extracted symbol line into symbol name with lib prefix and
75548124 # symbol address.
7555 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
8125 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\
75568126 $lt_c_name_lib_hook\
75578127 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
75588128 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
75768146 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
75778147 # Fake it for dumpbin and say T for any non-static function,
75788148 # D for any global variable and I for any imported variable.
7579 # Also find C++ and __fastcall symbols from MSVC++,
8149 # Also find C++ and __fastcall symbols from MSVC++ or ICC,
75808150 # which start with @ or ?.
75818151 lt_cv_sys_global_symbol_pipe="$AWK '"\
75828152 " {last_section=section; section=\$ 3};"\
75948164 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
75958165 " ' prfx=^$ac_symprfx"
75968166 else
7597 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
8167 lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
75988168 fi
7599 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
8169 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'"
76008170
76018171 # Check to see that the pipe works correctly.
76028172 pipe_works=no
76188188 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
76198189 (eval $ac_compile) 2>&5
76208190 ac_status=$?
7621 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8191 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
76228192 test $ac_status = 0; }; then
76238193 # Now try to grab the symbols.
76248194 nlist=conftest.nm
76918261 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
76928262 (eval $ac_link) 2>&5
76938263 ac_status=$?
7694 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8264 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
76958265 test $ac_status = 0; } && test -s conftest$ac_exeext; then
76968266 pipe_works=yes
76978267 fi
77268296 lt_cv_sys_global_symbol_to_cdecl=
77278297 fi
77288298 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7730 $as_echo "failed" >&6; }
8299 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
8300 printf "%s\n" "failed" >&6; }
77318301 else
7732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7733 $as_echo "ok" >&6; }
8302 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8303 printf "%s\n" "ok" >&6; }
77348304 fi
77358305
77368306 # Response file support.
77768346
77778347
77788348
7779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7780 $as_echo_n "checking for sysroot... " >&6; }
8349 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
8350 printf %s "checking for sysroot... " >&6; }
77818351
77828352 # Check whether --with-sysroot was given.
7783 if test "${with_sysroot+set}" = set; then :
8353 if test ${with_sysroot+y}
8354 then :
77848355 withval=$with_sysroot;
7785 else
8356 else $as_nop
77868357 with_sysroot=no
77878358 fi
77888359
77958366 fi
77968367 ;; #(
77978368 /*)
7798 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
8369 lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"`
77998370 ;; #(
78008371 no|'')
78018372 ;; #(
78028373 *)
7803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
7804 $as_echo "$with_sysroot" >&6; }
8374 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
8375 printf "%s\n" "$with_sysroot" >&6; }
78058376 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
78068377 ;;
78078378 esac
78088379
7809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7810 $as_echo "${lt_sysroot:-no}" >&6; }
7811
7812
7813
7814
7815
7816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
7817 $as_echo_n "checking for a working dd... " >&6; }
7818 if ${ac_cv_path_lt_DD+:} false; then :
7819 $as_echo_n "(cached) " >&6
7820 else
8380 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
8381 printf "%s\n" "${lt_sysroot:-no}" >&6; }
8382
8383
8384
8385
8386
8387 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
8388 printf %s "checking for a working dd... " >&6; }
8389 if test ${ac_cv_path_lt_DD+y}
8390 then :
8391 printf %s "(cached) " >&6
8392 else $as_nop
78218393 printf 0123456789abcdef0123456789abcdef >conftest.i
78228394 cat conftest.i conftest.i >conftest2.i
78238395 : ${lt_DD:=$DD}
78288400 for as_dir in $PATH
78298401 do
78308402 IFS=$as_save_IFS
7831 test -z "$as_dir" && as_dir=.
7832 for ac_prog in dd; do
8403 case $as_dir in #(((
8404 '') as_dir=./ ;;
8405 */) ;;
8406 *) as_dir=$as_dir/ ;;
8407 esac
8408 for ac_prog in dd
8409 do
78338410 for ac_exec_ext in '' $ac_executable_extensions; do
7834 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
8411 ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
78358412 as_fn_executable_p "$ac_path_lt_DD" || continue
78368413 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
78378414 cmp -s conftest.i conftest.out \
78518428
78528429 rm -f conftest.i conftest2.i conftest.out
78538430 fi
7854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7855 $as_echo "$ac_cv_path_lt_DD" >&6; }
7856
7857
7858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7859 $as_echo_n "checking how to truncate binary pipes... " >&6; }
7860 if ${lt_cv_truncate_bin+:} false; then :
7861 $as_echo_n "(cached) " >&6
7862 else
8431 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
8432 printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
8433
8434
8435 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
8436 printf %s "checking how to truncate binary pipes... " >&6; }
8437 if test ${lt_cv_truncate_bin+y}
8438 then :
8439 printf %s "(cached) " >&6
8440 else $as_nop
78638441 printf 0123456789abcdef0123456789abcdef >conftest.i
78648442 cat conftest.i conftest.i >conftest2.i
78658443 lt_cv_truncate_bin=
78708448 rm -f conftest.i conftest2.i conftest.out
78718449 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
78728450 fi
7873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7874 $as_echo "$lt_cv_truncate_bin" >&6; }
8451 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
8452 printf "%s\n" "$lt_cv_truncate_bin" >&6; }
78758453
78768454
78778455
78948472 }
78958473
78968474 # Check whether --enable-libtool-lock was given.
7897 if test "${enable_libtool_lock+set}" = set; then :
8475 if test ${enable_libtool_lock+y}
8476 then :
78988477 enableval=$enable_libtool_lock;
78998478 fi
79008479
79108489 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
79118490 (eval $ac_compile) 2>&5
79128491 ac_status=$?
7913 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8492 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
79148493 test $ac_status = 0; }; then
7915 case `/usr/bin/file conftest.$ac_objext` in
8494 case `$FILECMD conftest.$ac_objext` in
79168495 *ELF-32*)
79178496 HPUX_IA64_MODE=32
79188497 ;;
79308509 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
79318510 (eval $ac_compile) 2>&5
79328511 ac_status=$?
7933 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8512 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
79348513 test $ac_status = 0; }; then
79358514 if test yes = "$lt_cv_prog_gnu_ld"; then
7936 case `/usr/bin/file conftest.$ac_objext` in
8515 case `$FILECMD conftest.$ac_objext` in
79378516 *32-bit*)
79388517 LD="${LD-ld} -melf32bsmip"
79398518 ;;
79458524 ;;
79468525 esac
79478526 else
7948 case `/usr/bin/file conftest.$ac_objext` in
8527 case `$FILECMD conftest.$ac_objext` in
79498528 *32-bit*)
79508529 LD="${LD-ld} -32"
79518530 ;;
79688547 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
79698548 (eval $ac_compile) 2>&5
79708549 ac_status=$?
7971 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8550 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
79728551 test $ac_status = 0; }; then
79738552 emul=elf
7974 case `/usr/bin/file conftest.$ac_objext` in
8553 case `$FILECMD conftest.$ac_objext` in
79758554 *32-bit*)
79768555 emul="${emul}32"
79778556 ;;
79798558 emul="${emul}64"
79808559 ;;
79818560 esac
7982 case `/usr/bin/file conftest.$ac_objext` in
8561 case `$FILECMD conftest.$ac_objext` in
79838562 *MSB*)
79848563 emul="${emul}btsmip"
79858564 ;;
79878566 emul="${emul}ltsmip"
79888567 ;;
79898568 esac
7990 case `/usr/bin/file conftest.$ac_objext` in
8569 case `$FILECMD conftest.$ac_objext` in
79918570 *N32*)
79928571 emul="${emul}n32"
79938572 ;;
80098588 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
80108589 (eval $ac_compile) 2>&5
80118590 ac_status=$?
8012 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8591 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
80138592 test $ac_status = 0; }; then
8014 case `/usr/bin/file conftest.o` in
8593 case `$FILECMD conftest.o` in
80158594 *32-bit*)
80168595 case $host in
80178596 x86_64-*kfreebsd*-gnu)
80188597 LD="${LD-ld} -m elf_i386_fbsd"
80198598 ;;
80208599 x86_64-*linux*)
8021 case `/usr/bin/file conftest.o` in
8600 case `$FILECMD conftest.o` in
80228601 *x86-64*)
80238602 LD="${LD-ld} -m elf32_x86_64"
80248603 ;;
80728651 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
80738652 SAVE_CFLAGS=$CFLAGS
80748653 CFLAGS="$CFLAGS -belf"
8075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8076 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
8077 if ${lt_cv_cc_needs_belf+:} false; then :
8078 $as_echo_n "(cached) " >&6
8079 else
8654 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8655 printf %s "checking whether the C compiler needs -belf... " >&6; }
8656 if test ${lt_cv_cc_needs_belf+y}
8657 then :
8658 printf %s "(cached) " >&6
8659 else $as_nop
80808660 ac_ext=c
80818661 ac_cpp='$CPP $CPPFLAGS'
80828662 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
80878667 /* end confdefs.h. */
80888668
80898669 int
8090 main ()
8670 main (void)
80918671 {
80928672
80938673 ;
80948674 return 0;
80958675 }
80968676 _ACEOF
8097 if ac_fn_c_try_link "$LINENO"; then :
8677 if ac_fn_c_try_link "$LINENO"
8678 then :
80988679 lt_cv_cc_needs_belf=yes
8099 else
8680 else $as_nop
81008681 lt_cv_cc_needs_belf=no
81018682 fi
8102 rm -f core conftest.err conftest.$ac_objext \
8683 rm -f core conftest.err conftest.$ac_objext conftest.beam \
81038684 conftest$ac_exeext conftest.$ac_ext
81048685 ac_ext=c
81058686 ac_cpp='$CPP $CPPFLAGS'
81088689 ac_compiler_gnu=$ac_cv_c_compiler_gnu
81098690
81108691 fi
8111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8112 $as_echo "$lt_cv_cc_needs_belf" >&6; }
8692 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8693 printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
81138694 if test yes != "$lt_cv_cc_needs_belf"; then
81148695 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
81158696 CFLAGS=$SAVE_CFLAGS
81228703 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
81238704 (eval $ac_compile) 2>&5
81248705 ac_status=$?
8125 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8706 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
81268707 test $ac_status = 0; }; then
8127 case `/usr/bin/file conftest.o` in
8708 case `$FILECMD conftest.o` in
81288709 *64-bit*)
81298710 case $lt_cv_prog_gnu_ld in
81308711 yes*)
81598740 if test -n "$ac_tool_prefix"; then
81608741 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
81618742 set dummy ${ac_tool_prefix}mt; ac_word=$2
8162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8163 $as_echo_n "checking for $ac_word... " >&6; }
8164 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
8165 $as_echo_n "(cached) " >&6
8166 else
8743 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8744 printf %s "checking for $ac_word... " >&6; }
8745 if test ${ac_cv_prog_MANIFEST_TOOL+y}
8746 then :
8747 printf %s "(cached) " >&6
8748 else $as_nop
81678749 if test -n "$MANIFEST_TOOL"; then
81688750 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
81698751 else
81718753 for as_dir in $PATH
81728754 do
81738755 IFS=$as_save_IFS
8174 test -z "$as_dir" && as_dir=.
8756 case $as_dir in #(((
8757 '') as_dir=./ ;;
8758 */) ;;
8759 *) as_dir=$as_dir/ ;;
8760 esac
81758761 for ac_exec_ext in '' $ac_executable_extensions; do
8176 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8762 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
81778763 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
8178 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8764 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
81798765 break 2
81808766 fi
81818767 done
81868772 fi
81878773 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
81888774 if test -n "$MANIFEST_TOOL"; then
8189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
8190 $as_echo "$MANIFEST_TOOL" >&6; }
8775 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
8776 printf "%s\n" "$MANIFEST_TOOL" >&6; }
81918777 else
8192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8193 $as_echo "no" >&6; }
8778 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8779 printf "%s\n" "no" >&6; }
81948780 fi
81958781
81968782
81998785 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
82008786 # Extract the first word of "mt", so it can be a program name with args.
82018787 set dummy mt; ac_word=$2
8202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8203 $as_echo_n "checking for $ac_word... " >&6; }
8204 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
8205 $as_echo_n "(cached) " >&6
8206 else
8788 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8789 printf %s "checking for $ac_word... " >&6; }
8790 if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
8791 then :
8792 printf %s "(cached) " >&6
8793 else $as_nop
82078794 if test -n "$ac_ct_MANIFEST_TOOL"; then
82088795 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
82098796 else
82118798 for as_dir in $PATH
82128799 do
82138800 IFS=$as_save_IFS
8214 test -z "$as_dir" && as_dir=.
8801 case $as_dir in #(((
8802 '') as_dir=./ ;;
8803 */) ;;
8804 *) as_dir=$as_dir/ ;;
8805 esac
82158806 for ac_exec_ext in '' $ac_executable_extensions; do
8216 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8807 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
82178808 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
8218 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8809 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
82198810 break 2
82208811 fi
82218812 done
82268817 fi
82278818 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
82288819 if test -n "$ac_ct_MANIFEST_TOOL"; then
8229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
8230 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
8820 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
8821 printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
82318822 else
8232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8233 $as_echo "no" >&6; }
8823 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8824 printf "%s\n" "no" >&6; }
82348825 fi
82358826
82368827 if test "x$ac_ct_MANIFEST_TOOL" = x; then
82388829 else
82398830 case $cross_compiling:$ac_tool_warned in
82408831 yes:)
8241 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8242 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8832 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8833 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
82438834 ac_tool_warned=yes ;;
82448835 esac
82458836 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
82498840 fi
82508841
82518842 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
8252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
8253 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
8254 if ${lt_cv_path_mainfest_tool+:} false; then :
8255 $as_echo_n "(cached) " >&6
8256 else
8843 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
8844 printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
8845 if test ${lt_cv_path_mainfest_tool+y}
8846 then :
8847 printf %s "(cached) " >&6
8848 else $as_nop
82578849 lt_cv_path_mainfest_tool=no
82588850 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
82598851 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
82638855 fi
82648856 rm -f conftest*
82658857 fi
8266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
8267 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
8858 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
8859 printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; }
82688860 if test yes != "$lt_cv_path_mainfest_tool"; then
82698861 MANIFEST_TOOL=:
82708862 fi
82798871 if test -n "$ac_tool_prefix"; then
82808872 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
82818873 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8283 $as_echo_n "checking for $ac_word... " >&6; }
8284 if ${ac_cv_prog_DSYMUTIL+:} false; then :
8285 $as_echo_n "(cached) " >&6
8286 else
8874 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8875 printf %s "checking for $ac_word... " >&6; }
8876 if test ${ac_cv_prog_DSYMUTIL+y}
8877 then :
8878 printf %s "(cached) " >&6
8879 else $as_nop
82878880 if test -n "$DSYMUTIL"; then
82888881 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
82898882 else
82918884 for as_dir in $PATH
82928885 do
82938886 IFS=$as_save_IFS
8294 test -z "$as_dir" && as_dir=.
8887 case $as_dir in #(((
8888 '') as_dir=./ ;;
8889 */) ;;
8890 *) as_dir=$as_dir/ ;;
8891 esac
82958892 for ac_exec_ext in '' $ac_executable_extensions; do
8296 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8893 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
82978894 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8298 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8895 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
82998896 break 2
83008897 fi
83018898 done
83068903 fi
83078904 DSYMUTIL=$ac_cv_prog_DSYMUTIL
83088905 if test -n "$DSYMUTIL"; then
8309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8310 $as_echo "$DSYMUTIL" >&6; }
8906 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8907 printf "%s\n" "$DSYMUTIL" >&6; }
83118908 else
8312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8313 $as_echo "no" >&6; }
8909 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8910 printf "%s\n" "no" >&6; }
83148911 fi
83158912
83168913
83198916 ac_ct_DSYMUTIL=$DSYMUTIL
83208917 # Extract the first word of "dsymutil", so it can be a program name with args.
83218918 set dummy dsymutil; ac_word=$2
8322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8323 $as_echo_n "checking for $ac_word... " >&6; }
8324 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
8325 $as_echo_n "(cached) " >&6
8326 else
8919 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8920 printf %s "checking for $ac_word... " >&6; }
8921 if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
8922 then :
8923 printf %s "(cached) " >&6
8924 else $as_nop
83278925 if test -n "$ac_ct_DSYMUTIL"; then
83288926 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
83298927 else
83318929 for as_dir in $PATH
83328930 do
83338931 IFS=$as_save_IFS
8334 test -z "$as_dir" && as_dir=.
8932 case $as_dir in #(((
8933 '') as_dir=./ ;;
8934 */) ;;
8935 *) as_dir=$as_dir/ ;;
8936 esac
83358937 for ac_exec_ext in '' $ac_executable_extensions; do
8336 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8938 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
83378939 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8338 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8940 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
83398941 break 2
83408942 fi
83418943 done
83468948 fi
83478949 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
83488950 if test -n "$ac_ct_DSYMUTIL"; then
8349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8350 $as_echo "$ac_ct_DSYMUTIL" >&6; }
8951 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8952 printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
83518953 else
8352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8353 $as_echo "no" >&6; }
8954 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8955 printf "%s\n" "no" >&6; }
83548956 fi
83558957
83568958 if test "x$ac_ct_DSYMUTIL" = x; then
83588960 else
83598961 case $cross_compiling:$ac_tool_warned in
83608962 yes:)
8361 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8362 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8963 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8964 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
83638965 ac_tool_warned=yes ;;
83648966 esac
83658967 DSYMUTIL=$ac_ct_DSYMUTIL
83718973 if test -n "$ac_tool_prefix"; then
83728974 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
83738975 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8375 $as_echo_n "checking for $ac_word... " >&6; }
8376 if ${ac_cv_prog_NMEDIT+:} false; then :
8377 $as_echo_n "(cached) " >&6
8378 else
8976 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8977 printf %s "checking for $ac_word... " >&6; }
8978 if test ${ac_cv_prog_NMEDIT+y}
8979 then :
8980 printf %s "(cached) " >&6
8981 else $as_nop
83798982 if test -n "$NMEDIT"; then
83808983 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
83818984 else
83838986 for as_dir in $PATH
83848987 do
83858988 IFS=$as_save_IFS
8386 test -z "$as_dir" && as_dir=.
8989 case $as_dir in #(((
8990 '') as_dir=./ ;;
8991 */) ;;
8992 *) as_dir=$as_dir/ ;;
8993 esac
83878994 for ac_exec_ext in '' $ac_executable_extensions; do
8388 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8995 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
83898996 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8390 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8997 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
83918998 break 2
83928999 fi
83939000 done
83989005 fi
83999006 NMEDIT=$ac_cv_prog_NMEDIT
84009007 if test -n "$NMEDIT"; then
8401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8402 $as_echo "$NMEDIT" >&6; }
9008 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
9009 printf "%s\n" "$NMEDIT" >&6; }
84039010 else
8404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8405 $as_echo "no" >&6; }
9011 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9012 printf "%s\n" "no" >&6; }
84069013 fi
84079014
84089015
84119018 ac_ct_NMEDIT=$NMEDIT
84129019 # Extract the first word of "nmedit", so it can be a program name with args.
84139020 set dummy nmedit; ac_word=$2
8414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8415 $as_echo_n "checking for $ac_word... " >&6; }
8416 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
8417 $as_echo_n "(cached) " >&6
8418 else
9021 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9022 printf %s "checking for $ac_word... " >&6; }
9023 if test ${ac_cv_prog_ac_ct_NMEDIT+y}
9024 then :
9025 printf %s "(cached) " >&6
9026 else $as_nop
84199027 if test -n "$ac_ct_NMEDIT"; then
84209028 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
84219029 else
84239031 for as_dir in $PATH
84249032 do
84259033 IFS=$as_save_IFS
8426 test -z "$as_dir" && as_dir=.
9034 case $as_dir in #(((
9035 '') as_dir=./ ;;
9036 */) ;;
9037 *) as_dir=$as_dir/ ;;
9038 esac
84279039 for ac_exec_ext in '' $ac_executable_extensions; do
8428 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9040 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
84299041 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8430 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9042 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
84319043 break 2
84329044 fi
84339045 done
84389050 fi
84399051 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
84409052 if test -n "$ac_ct_NMEDIT"; then
8441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8442 $as_echo "$ac_ct_NMEDIT" >&6; }
9053 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
9054 printf "%s\n" "$ac_ct_NMEDIT" >&6; }
84439055 else
8444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8445 $as_echo "no" >&6; }
9056 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9057 printf "%s\n" "no" >&6; }
84469058 fi
84479059
84489060 if test "x$ac_ct_NMEDIT" = x; then
84509062 else
84519063 case $cross_compiling:$ac_tool_warned in
84529064 yes:)
8453 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8454 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9065 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9066 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
84559067 ac_tool_warned=yes ;;
84569068 esac
84579069 NMEDIT=$ac_ct_NMEDIT
84639075 if test -n "$ac_tool_prefix"; then
84649076 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
84659077 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8467 $as_echo_n "checking for $ac_word... " >&6; }
8468 if ${ac_cv_prog_LIPO+:} false; then :
8469 $as_echo_n "(cached) " >&6
8470 else
9078 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9079 printf %s "checking for $ac_word... " >&6; }
9080 if test ${ac_cv_prog_LIPO+y}
9081 then :
9082 printf %s "(cached) " >&6
9083 else $as_nop
84719084 if test -n "$LIPO"; then
84729085 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
84739086 else
84759088 for as_dir in $PATH
84769089 do
84779090 IFS=$as_save_IFS
8478 test -z "$as_dir" && as_dir=.
9091 case $as_dir in #(((
9092 '') as_dir=./ ;;
9093 */) ;;
9094 *) as_dir=$as_dir/ ;;
9095 esac
84799096 for ac_exec_ext in '' $ac_executable_extensions; do
8480 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9097 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
84819098 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8482 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9099 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
84839100 break 2
84849101 fi
84859102 done
84909107 fi
84919108 LIPO=$ac_cv_prog_LIPO
84929109 if test -n "$LIPO"; then
8493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8494 $as_echo "$LIPO" >&6; }
9110 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
9111 printf "%s\n" "$LIPO" >&6; }
84959112 else
8496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8497 $as_echo "no" >&6; }
9113 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9114 printf "%s\n" "no" >&6; }
84989115 fi
84999116
85009117
85039120 ac_ct_LIPO=$LIPO
85049121 # Extract the first word of "lipo", so it can be a program name with args.
85059122 set dummy lipo; ac_word=$2
8506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8507 $as_echo_n "checking for $ac_word... " >&6; }
8508 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
8509 $as_echo_n "(cached) " >&6
8510 else
9123 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9124 printf %s "checking for $ac_word... " >&6; }
9125 if test ${ac_cv_prog_ac_ct_LIPO+y}
9126 then :
9127 printf %s "(cached) " >&6
9128 else $as_nop
85119129 if test -n "$ac_ct_LIPO"; then
85129130 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
85139131 else
85159133 for as_dir in $PATH
85169134 do
85179135 IFS=$as_save_IFS
8518 test -z "$as_dir" && as_dir=.
9136 case $as_dir in #(((
9137 '') as_dir=./ ;;
9138 */) ;;
9139 *) as_dir=$as_dir/ ;;
9140 esac
85199141 for ac_exec_ext in '' $ac_executable_extensions; do
8520 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9142 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
85219143 ac_cv_prog_ac_ct_LIPO="lipo"
8522 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9144 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
85239145 break 2
85249146 fi
85259147 done
85309152 fi
85319153 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
85329154 if test -n "$ac_ct_LIPO"; then
8533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8534 $as_echo "$ac_ct_LIPO" >&6; }
9155 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
9156 printf "%s\n" "$ac_ct_LIPO" >&6; }
85359157 else
8536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8537 $as_echo "no" >&6; }
9158 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9159 printf "%s\n" "no" >&6; }
85389160 fi
85399161
85409162 if test "x$ac_ct_LIPO" = x; then
85429164 else
85439165 case $cross_compiling:$ac_tool_warned in
85449166 yes:)
8545 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8546 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9167 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9168 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
85479169 ac_tool_warned=yes ;;
85489170 esac
85499171 LIPO=$ac_ct_LIPO
85559177 if test -n "$ac_tool_prefix"; then
85569178 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
85579179 set dummy ${ac_tool_prefix}otool; ac_word=$2
8558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8559 $as_echo_n "checking for $ac_word... " >&6; }
8560 if ${ac_cv_prog_OTOOL+:} false; then :
8561 $as_echo_n "(cached) " >&6
8562 else
9180 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9181 printf %s "checking for $ac_word... " >&6; }
9182 if test ${ac_cv_prog_OTOOL+y}
9183 then :
9184 printf %s "(cached) " >&6
9185 else $as_nop
85639186 if test -n "$OTOOL"; then
85649187 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
85659188 else
85679190 for as_dir in $PATH
85689191 do
85699192 IFS=$as_save_IFS
8570 test -z "$as_dir" && as_dir=.
9193 case $as_dir in #(((
9194 '') as_dir=./ ;;
9195 */) ;;
9196 *) as_dir=$as_dir/ ;;
9197 esac
85719198 for ac_exec_ext in '' $ac_executable_extensions; do
8572 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9199 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
85739200 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8574 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9201 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
85759202 break 2
85769203 fi
85779204 done
85829209 fi
85839210 OTOOL=$ac_cv_prog_OTOOL
85849211 if test -n "$OTOOL"; then
8585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8586 $as_echo "$OTOOL" >&6; }
9212 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
9213 printf "%s\n" "$OTOOL" >&6; }
85879214 else
8588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8589 $as_echo "no" >&6; }
9215 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9216 printf "%s\n" "no" >&6; }
85909217 fi
85919218
85929219
85959222 ac_ct_OTOOL=$OTOOL
85969223 # Extract the first word of "otool", so it can be a program name with args.
85979224 set dummy otool; ac_word=$2
8598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8599 $as_echo_n "checking for $ac_word... " >&6; }
8600 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8601 $as_echo_n "(cached) " >&6
8602 else
9225 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9226 printf %s "checking for $ac_word... " >&6; }
9227 if test ${ac_cv_prog_ac_ct_OTOOL+y}
9228 then :
9229 printf %s "(cached) " >&6
9230 else $as_nop
86039231 if test -n "$ac_ct_OTOOL"; then
86049232 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
86059233 else
86079235 for as_dir in $PATH
86089236 do
86099237 IFS=$as_save_IFS
8610 test -z "$as_dir" && as_dir=.
9238 case $as_dir in #(((
9239 '') as_dir=./ ;;
9240 */) ;;
9241 *) as_dir=$as_dir/ ;;
9242 esac
86119243 for ac_exec_ext in '' $ac_executable_extensions; do
8612 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9244 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
86139245 ac_cv_prog_ac_ct_OTOOL="otool"
8614 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9246 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
86159247 break 2
86169248 fi
86179249 done
86229254 fi
86239255 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
86249256 if test -n "$ac_ct_OTOOL"; then
8625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8626 $as_echo "$ac_ct_OTOOL" >&6; }
9257 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
9258 printf "%s\n" "$ac_ct_OTOOL" >&6; }
86279259 else
8628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8629 $as_echo "no" >&6; }
9260 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9261 printf "%s\n" "no" >&6; }
86309262 fi
86319263
86329264 if test "x$ac_ct_OTOOL" = x; then
86349266 else
86359267 case $cross_compiling:$ac_tool_warned in
86369268 yes:)
8637 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8638 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9269 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9270 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
86399271 ac_tool_warned=yes ;;
86409272 esac
86419273 OTOOL=$ac_ct_OTOOL
86479279 if test -n "$ac_tool_prefix"; then
86489280 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
86499281 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8651 $as_echo_n "checking for $ac_word... " >&6; }
8652 if ${ac_cv_prog_OTOOL64+:} false; then :
8653 $as_echo_n "(cached) " >&6
8654 else
9282 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9283 printf %s "checking for $ac_word... " >&6; }
9284 if test ${ac_cv_prog_OTOOL64+y}
9285 then :
9286 printf %s "(cached) " >&6
9287 else $as_nop
86559288 if test -n "$OTOOL64"; then
86569289 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
86579290 else
86599292 for as_dir in $PATH
86609293 do
86619294 IFS=$as_save_IFS
8662 test -z "$as_dir" && as_dir=.
9295 case $as_dir in #(((
9296 '') as_dir=./ ;;
9297 */) ;;
9298 *) as_dir=$as_dir/ ;;
9299 esac
86639300 for ac_exec_ext in '' $ac_executable_extensions; do
8664 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9301 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
86659302 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8666 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9303 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
86679304 break 2
86689305 fi
86699306 done
86749311 fi
86759312 OTOOL64=$ac_cv_prog_OTOOL64
86769313 if test -n "$OTOOL64"; then
8677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8678 $as_echo "$OTOOL64" >&6; }
9314 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
9315 printf "%s\n" "$OTOOL64" >&6; }
86799316 else
8680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8681 $as_echo "no" >&6; }
9317 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9318 printf "%s\n" "no" >&6; }
86829319 fi
86839320
86849321
86879324 ac_ct_OTOOL64=$OTOOL64
86889325 # Extract the first word of "otool64", so it can be a program name with args.
86899326 set dummy otool64; ac_word=$2
8690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8691 $as_echo_n "checking for $ac_word... " >&6; }
8692 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8693 $as_echo_n "(cached) " >&6
8694 else
9327 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9328 printf %s "checking for $ac_word... " >&6; }
9329 if test ${ac_cv_prog_ac_ct_OTOOL64+y}
9330 then :
9331 printf %s "(cached) " >&6
9332 else $as_nop
86959333 if test -n "$ac_ct_OTOOL64"; then
86969334 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
86979335 else
86999337 for as_dir in $PATH
87009338 do
87019339 IFS=$as_save_IFS
8702 test -z "$as_dir" && as_dir=.
9340 case $as_dir in #(((
9341 '') as_dir=./ ;;
9342 */) ;;
9343 *) as_dir=$as_dir/ ;;
9344 esac
87039345 for ac_exec_ext in '' $ac_executable_extensions; do
8704 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9346 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
87059347 ac_cv_prog_ac_ct_OTOOL64="otool64"
8706 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9348 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
87079349 break 2
87089350 fi
87099351 done
87149356 fi
87159357 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
87169358 if test -n "$ac_ct_OTOOL64"; then
8717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8718 $as_echo "$ac_ct_OTOOL64" >&6; }
9359 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
9360 printf "%s\n" "$ac_ct_OTOOL64" >&6; }
87199361 else
8720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8721 $as_echo "no" >&6; }
9362 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9363 printf "%s\n" "no" >&6; }
87229364 fi
87239365
87249366 if test "x$ac_ct_OTOOL64" = x; then
87269368 else
87279369 case $cross_compiling:$ac_tool_warned in
87289370 yes:)
8729 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8730 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9371 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9372 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
87319373 ac_tool_warned=yes ;;
87329374 esac
87339375 OTOOL64=$ac_ct_OTOOL64
87629404
87639405
87649406
8765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8766 $as_echo_n "checking for -single_module linker flag... " >&6; }
8767 if ${lt_cv_apple_cc_single_mod+:} false; then :
8768 $as_echo_n "(cached) " >&6
8769 else
9407 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
9408 printf %s "checking for -single_module linker flag... " >&6; }
9409 if test ${lt_cv_apple_cc_single_mod+y}
9410 then :
9411 printf %s "(cached) " >&6
9412 else $as_nop
87709413 lt_cv_apple_cc_single_mod=no
87719414 if test -z "$LT_MULTI_MODULE"; then
87729415 # By default we will add the -single_module flag. You can override
87959438 rm -f conftest.*
87969439 fi
87979440 fi
8798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8799 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8800
8801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8802 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8803 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8804 $as_echo_n "(cached) " >&6
8805 else
9441 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
9442 printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
9443
9444 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
9445 printf %s "checking for -exported_symbols_list linker flag... " >&6; }
9446 if test ${lt_cv_ld_exported_symbols_list+y}
9447 then :
9448 printf %s "(cached) " >&6
9449 else $as_nop
88069450 lt_cv_ld_exported_symbols_list=no
88079451 save_LDFLAGS=$LDFLAGS
88089452 echo "_main" > conftest.sym
88119455 /* end confdefs.h. */
88129456
88139457 int
8814 main ()
9458 main (void)
88159459 {
88169460
88179461 ;
88189462 return 0;
88199463 }
88209464 _ACEOF
8821 if ac_fn_c_try_link "$LINENO"; then :
9465 if ac_fn_c_try_link "$LINENO"
9466 then :
88229467 lt_cv_ld_exported_symbols_list=yes
8823 else
9468 else $as_nop
88249469 lt_cv_ld_exported_symbols_list=no
88259470 fi
8826 rm -f core conftest.err conftest.$ac_objext \
9471 rm -f core conftest.err conftest.$ac_objext conftest.beam \
88279472 conftest$ac_exeext conftest.$ac_ext
88289473 LDFLAGS=$save_LDFLAGS
88299474
88309475 fi
8831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8832 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8833
8834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8835 $as_echo_n "checking for -force_load linker flag... " >&6; }
8836 if ${lt_cv_ld_force_load+:} false; then :
8837 $as_echo_n "(cached) " >&6
8838 else
9476 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
9477 printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
9478
9479 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
9480 printf %s "checking for -force_load linker flag... " >&6; }
9481 if test ${lt_cv_ld_force_load+y}
9482 then :
9483 printf %s "(cached) " >&6
9484 else $as_nop
88399485 lt_cv_ld_force_load=no
88409486 cat > conftest.c << _LT_EOF
88419487 int forced_loaded() { return 2;}
88429488 _LT_EOF
88439489 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
88449490 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8845 echo "$AR cr libconftest.a conftest.o" >&5
8846 $AR cr libconftest.a conftest.o 2>&5
9491 echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5
9492 $AR $AR_FLAGS libconftest.a conftest.o 2>&5
88479493 echo "$RANLIB libconftest.a" >&5
88489494 $RANLIB libconftest.a 2>&5
88499495 cat > conftest.c << _LT_EOF
88639509 rm -rf conftest.dSYM
88649510
88659511 fi
8866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8867 $as_echo "$lt_cv_ld_force_load" >&6; }
9512 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
9513 printf "%s\n" "$lt_cv_ld_force_load" >&6; }
88689514 case $host_os in
88699515 rhapsody* | darwin1.[012])
88709516 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
88719517 darwin1.*)
88729518 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8873 darwin*) # darwin 5.x on
8874 # if running on 10.5 or later, the deployment target defaults
8875 # to the OS version, if on x86, and 10.4, the deployment
8876 # target defaults to 10.4. Don't you love it?
8877 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8878 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8879 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8880 10.[012][,.]*)
8881 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8882 10.*)
8883 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
9519 darwin*)
9520 case $MACOSX_DEPLOYMENT_TARGET,$host in
9521 10.[012],*|,*powerpc*-darwin[5-8]*)
9522 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
9523 *)
9524 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
88849525 esac
88859526 ;;
88869527 esac
89359576 esac
89369577 }
89379578
8938 for ac_header in dlfcn.h
8939 do :
8940 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9579 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
89419580 "
8942 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8943 cat >>confdefs.h <<_ACEOF
8944 #define HAVE_DLFCN_H 1
8945 _ACEOF
8946
8947 fi
8948
8949 done
9581 if test "x$ac_cv_header_dlfcn_h" = xyes
9582 then :
9583 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
9584
9585 fi
89509586
89519587
89529588
89749610
89759611
89769612 # Check whether --enable-shared was given.
8977 if test "${enable_shared+set}" = set; then :
9613 if test ${enable_shared+y}
9614 then :
89789615 enableval=$enable_shared; p=${PACKAGE-default}
89799616 case $enableval in
89809617 yes) enable_shared=yes ;;
89929629 IFS=$lt_save_ifs
89939630 ;;
89949631 esac
8995 else
9632 else $as_nop
89969633 enable_shared=yes
89979634 fi
89989635
90059642
90069643
90079644 # Check whether --enable-static was given.
9008 if test "${enable_static+set}" = set; then :
9645 if test ${enable_static+y}
9646 then :
90099647 enableval=$enable_static; p=${PACKAGE-default}
90109648 case $enableval in
90119649 yes) enable_static=yes ;;
90239661 IFS=$lt_save_ifs
90249662 ;;
90259663 esac
9026 else
9664 else $as_nop
90279665 enable_static=yes
90289666 fi
90299667
90379675
90389676
90399677 # Check whether --with-pic was given.
9040 if test "${with_pic+set}" = set; then :
9678 if test ${with_pic+y}
9679 then :
90419680 withval=$with_pic; lt_p=${PACKAGE-default}
90429681 case $withval in
90439682 yes|no) pic_mode=$withval ;;
90549693 IFS=$lt_save_ifs
90559694 ;;
90569695 esac
9057 else
9696 else $as_nop
90589697 pic_mode=default
90599698 fi
90609699
90669705
90679706
90689707 # Check whether --enable-fast-install was given.
9069 if test "${enable_fast_install+set}" = set; then :
9708 if test ${enable_fast_install+y}
9709 then :
90709710 enableval=$enable_fast_install; p=${PACKAGE-default}
90719711 case $enableval in
90729712 yes) enable_fast_install=yes ;;
90849724 IFS=$lt_save_ifs
90859725 ;;
90869726 esac
9087 else
9727 else $as_nop
90889728 enable_fast_install=yes
90899729 fi
90909730
90989738 shared_archive_member_spec=
90999739 case $host,$enable_shared in
91009740 power*-*-aix[5-9]*,yes)
9101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
9102 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
9741 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
9742 printf %s "checking which variant of shared library versioning to provide... " >&6; }
91039743
91049744 # Check whether --with-aix-soname was given.
9105 if test "${with_aix_soname+set}" = set; then :
9745 if test ${with_aix_soname+y}
9746 then :
91069747 withval=$with_aix_soname; case $withval in
91079748 aix|svr4|both)
91089749 ;;
91119752 ;;
91129753 esac
91139754 lt_cv_with_aix_soname=$with_aix_soname
9114 else
9115 if ${lt_cv_with_aix_soname+:} false; then :
9116 $as_echo_n "(cached) " >&6
9117 else
9755 else $as_nop
9756 if test ${lt_cv_with_aix_soname+y}
9757 then :
9758 printf %s "(cached) " >&6
9759 else $as_nop
91189760 lt_cv_with_aix_soname=aix
91199761 fi
91209762
91219763 with_aix_soname=$lt_cv_with_aix_soname
91229764 fi
91239765
9124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
9125 $as_echo "$with_aix_soname" >&6; }
9766 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
9767 printf "%s\n" "$with_aix_soname" >&6; }
91269768 if test aix != "$with_aix_soname"; then
91279769 # For the AIX way of multilib, we name the shared archive member
91289770 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
92049846 setopt NO_GLOB_SUBST
92059847 fi
92069848
9207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9208 $as_echo_n "checking for objdir... " >&6; }
9209 if ${lt_cv_objdir+:} false; then :
9210 $as_echo_n "(cached) " >&6
9211 else
9849 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9850 printf %s "checking for objdir... " >&6; }
9851 if test ${lt_cv_objdir+y}
9852 then :
9853 printf %s "(cached) " >&6
9854 else $as_nop
92129855 rm -f .libs 2>/dev/null
92139856 mkdir .libs 2>/dev/null
92149857 if test -d .libs; then
92199862 fi
92209863 rmdir .libs 2>/dev/null
92219864 fi
9222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9223 $as_echo "$lt_cv_objdir" >&6; }
9865 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9866 printf "%s\n" "$lt_cv_objdir" >&6; }
92249867 objdir=$lt_cv_objdir
92259868
92269869
92279870
92289871
92299872
9230 cat >>confdefs.h <<_ACEOF
9231 #define LT_OBJDIR "$lt_cv_objdir/"
9232 _ACEOF
9873 printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
92339874
92349875
92359876
92509891 ofile=libtool
92519892 can_build_shared=yes
92529893
9253 # All known linkers require a '.a' archive for static linking (except MSVC,
9254 # which needs '.lib').
9894 # All known linkers require a '.a' archive for static linking (except MSVC and
9895 # ICC, which need '.lib').
92559896 libext=a
92569897
92579898 with_gnu_ld=$lt_cv_prog_gnu_ld
92759916 case $deplibs_check_method in
92769917 file_magic*)
92779918 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9279 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9280 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9281 $as_echo_n "(cached) " >&6
9282 else
9919 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9920 printf %s "checking for ${ac_tool_prefix}file... " >&6; }
9921 if test ${lt_cv_path_MAGIC_CMD+y}
9922 then :
9923 printf %s "(cached) " >&6
9924 else $as_nop
92839925 case $MAGIC_CMD in
92849926 [\\/*] | ?:[\\/]*)
92859927 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
93289970
93299971 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
93309972 if test -n "$MAGIC_CMD"; then
9331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9332 $as_echo "$MAGIC_CMD" >&6; }
9973 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9974 printf "%s\n" "$MAGIC_CMD" >&6; }
93339975 else
9334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9335 $as_echo "no" >&6; }
9976 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9977 printf "%s\n" "no" >&6; }
93369978 fi
93379979
93389980
93419983
93429984 if test -z "$lt_cv_path_MAGIC_CMD"; then
93439985 if test -n "$ac_tool_prefix"; then
9344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9345 $as_echo_n "checking for file... " >&6; }
9346 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9347 $as_echo_n "(cached) " >&6
9348 else
9986 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9987 printf %s "checking for file... " >&6; }
9988 if test ${lt_cv_path_MAGIC_CMD+y}
9989 then :
9990 printf %s "(cached) " >&6
9991 else $as_nop
93499992 case $MAGIC_CMD in
93509993 [\\/*] | ?:[\\/]*)
93519994 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
939410037
939510038 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
939610039 if test -n "$MAGIC_CMD"; then
9397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9398 $as_echo "$MAGIC_CMD" >&6; }
10040 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10041 printf "%s\n" "$MAGIC_CMD" >&6; }
939910042 else
9400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9401 $as_echo "no" >&6; }
10043 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10044 printf "%s\n" "no" >&6; }
940210045 fi
940310046
940410047
948310126 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
948410127 esac
948510128
9486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9487 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9488 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9489 $as_echo_n "(cached) " >&6
9490 else
10129 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
10130 printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
10131 if test ${lt_cv_prog_compiler_rtti_exceptions+y}
10132 then :
10133 printf %s "(cached) " >&6
10134 else $as_nop
949110135 lt_cv_prog_compiler_rtti_exceptions=no
949210136 ac_outfile=conftest.$ac_objext
949310137 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
951810162 $RM conftest*
951910163
952010164 fi
9521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9522 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
10165 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
10166 printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
952310167
952410168 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
952510169 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
976610410 lt_prog_compiler_static='-qstaticlink'
976710411 ;;
976810412 *)
9769 case `$CC -V 2>&1 | sed 5q` in
10413 case `$CC -V 2>&1 | $SED 5q` in
977010414 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
977110415 # Sun Fortran 8.3 passes all unrecognized flags to the linker
977210416 lt_prog_compiler_pic='-KPIC'
988210526 ;;
988310527 esac
988410528
9885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9886 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9887 if ${lt_cv_prog_compiler_pic+:} false; then :
9888 $as_echo_n "(cached) " >&6
9889 else
10529 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
10530 printf %s "checking for $compiler option to produce PIC... " >&6; }
10531 if test ${lt_cv_prog_compiler_pic+y}
10532 then :
10533 printf %s "(cached) " >&6
10534 else $as_nop
989010535 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
989110536 fi
9892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9893 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
10537 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
10538 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
989410539 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
989510540
989610541 #
989710542 # Check to make sure the PIC flag actually works.
989810543 #
989910544 if test -n "$lt_prog_compiler_pic"; then
9900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9901 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9902 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9903 $as_echo_n "(cached) " >&6
9904 else
10545 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10546 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10547 if test ${lt_cv_prog_compiler_pic_works+y}
10548 then :
10549 printf %s "(cached) " >&6
10550 else $as_nop
990510551 lt_cv_prog_compiler_pic_works=no
990610552 ac_outfile=conftest.$ac_objext
990710553 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
993210578 $RM conftest*
993310579
993410580 fi
9935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9936 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
10581 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10582 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
993710583
993810584 if test yes = "$lt_cv_prog_compiler_pic_works"; then
993910585 case $lt_prog_compiler_pic in
996110607 # Check to make sure the static flag actually works.
996210608 #
996310609 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9965 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9966 if ${lt_cv_prog_compiler_static_works+:} false; then :
9967 $as_echo_n "(cached) " >&6
9968 else
10610 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10611 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10612 if test ${lt_cv_prog_compiler_static_works+y}
10613 then :
10614 printf %s "(cached) " >&6
10615 else $as_nop
996910616 lt_cv_prog_compiler_static_works=no
997010617 save_LDFLAGS=$LDFLAGS
997110618 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
998910636 LDFLAGS=$save_LDFLAGS
999010637
999110638 fi
9992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9993 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
10639 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10640 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
999410641
999510642 if test yes = "$lt_cv_prog_compiler_static_works"; then
999610643 :
1000410651
1000510652
1000610653
10007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10008 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10009 if ${lt_cv_prog_compiler_c_o+:} false; then :
10010 $as_echo_n "(cached) " >&6
10011 else
10654 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10655 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10656 if test ${lt_cv_prog_compiler_c_o+y}
10657 then :
10658 printf %s "(cached) " >&6
10659 else $as_nop
1001210660 lt_cv_prog_compiler_c_o=no
1001310661 $RM -r conftest 2>/dev/null
1001410662 mkdir conftest
1005110699 $RM conftest*
1005210700
1005310701 fi
10054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10055 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10056
10057
10058
10059
10060
10061
10062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10063 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10064 if ${lt_cv_prog_compiler_c_o+:} false; then :
10065 $as_echo_n "(cached) " >&6
10066 else
10702 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10703 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
10704
10705
10706
10707
10708
10709
10710 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10711 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10712 if test ${lt_cv_prog_compiler_c_o+y}
10713 then :
10714 printf %s "(cached) " >&6
10715 else $as_nop
1006710716 lt_cv_prog_compiler_c_o=no
1006810717 $RM -r conftest 2>/dev/null
1006910718 mkdir conftest
1010610755 $RM conftest*
1010710756
1010810757 fi
10109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10110 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10758 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10759 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
1011110760
1011210761
1011310762
1011510764 hard_links=nottested
1011610765 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
1011710766 # do not overwrite the value of need_locks provided by the user
10118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10119 $as_echo_n "checking if we can lock with hard links... " >&6; }
10767 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10768 printf %s "checking if we can lock with hard links... " >&6; }
1012010769 hard_links=yes
1012110770 $RM conftest*
1012210771 ln conftest.a conftest.b 2>/dev/null && hard_links=no
1012310772 touch conftest.a
1012410773 ln conftest.a conftest.b 2>&5 || hard_links=no
1012510774 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10127 $as_echo "$hard_links" >&6; }
10775 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10776 printf "%s\n" "$hard_links" >&6; }
1012810777 if test no = "$hard_links"; then
10129 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
10130 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
10778 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
10779 printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
1013110780 need_locks=warn
1013210781 fi
1013310782 else
1013910788
1014010789
1014110790
10142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10143 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10791 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10792 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
1014410793
1014510794 runpath_var=
1014610795 allow_undefined_flag=
1018410833
1018510834 case $host_os in
1018610835 cygwin* | mingw* | pw32* | cegcc*)
10187 # FIXME: the MSVC++ port hasn't been tested in a loooong time
10836 # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
1018810837 # When not using gcc, we currently assume that we are using
10189 # Microsoft Visual C++.
10838 # Microsoft Visual C++ or Intel C++ Compiler.
1019010839 if test yes != "$GCC"; then
1019110840 with_gnu_ld=no
1019210841 fi
1019310842 ;;
1019410843 interix*)
10195 # we just hope/assume this is gcc and not c89 (= MSVC++)
10844 # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC)
1019610845 with_gnu_ld=yes
1019710846 ;;
1019810847 openbsd* | bitrig*)
1024710896 whole_archive_flag_spec=
1024810897 fi
1024910898 supports_anon_versioning=no
10250 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
10899 case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
1025110900 *GNU\ gold*) supports_anon_versioning=yes ;;
1025210901 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
1025310902 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
1035911008 emximp -o $lib $output_objdir/$libname.def'
1036011009 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
1036111010 enable_shared_with_static_runtimes=yes
11011 file_list_spec='@'
1036211012 ;;
1036311013
1036411014 interix[3-9]*)
1037311023 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
1037411024 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
1037511025 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10376 archive_expsym_cmds='sed "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--retain-symbols-file,$output_objdir/$soname.expsym $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11026 archive_expsym_cmds='$SED "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--retain-symbols-file,$output_objdir/$soname.expsym $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
1037711027 ;;
1037811028
1037911029 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
1041611066 compiler_needs_object=yes
1041711067 ;;
1041811068 esac
10419 case `$CC -V 2>&1 | sed 5q` in
11069 case `$CC -V 2>&1 | $SED 5q` in
1042011070 *Sun\ C*) # Sun C 5.9
1042111071 whole_archive_flag_spec='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
1042211072 compiler_needs_object=yes
1042811078
1042911079 if test yes = "$supports_anon_versioning"; then
1043011080 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10431 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11081 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
1043211082 echo "local: *; };" >> $output_objdir/$libname.ver~
1043311083 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
1043411084 fi
1044411094 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
1044511095 if test yes = "$supports_anon_versioning"; then
1044611096 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10447 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11097 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
1044811098 echo "local: *; };" >> $output_objdir/$libname.ver~
1044911099 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
1045011100 fi
1057611226 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
1057711227 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
1057811228 else
10579 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
11229 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
1058011230 fi
1058111231 aix_use_runtimelinking=no
1058211232
1069811348 if test set = "${lt_cv_aix_libpath+set}"; then
1069911349 aix_libpath=$lt_cv_aix_libpath
1070011350 else
10701 if ${lt_cv_aix_libpath_+:} false; then :
10702 $as_echo_n "(cached) " >&6
10703 else
11351 if test ${lt_cv_aix_libpath_+y}
11352 then :
11353 printf %s "(cached) " >&6
11354 else $as_nop
1070411355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1070511356 /* end confdefs.h. */
1070611357
1070711358 int
10708 main ()
11359 main (void)
1070911360 {
1071011361
1071111362 ;
1071211363 return 0;
1071311364 }
1071411365 _ACEOF
10715 if ac_fn_c_try_link "$LINENO"; then :
11366 if ac_fn_c_try_link "$LINENO"
11367 then :
1071611368
1071711369 lt_aix_libpath_sed='
1071811370 /Import File Strings/,/^$/ {
1072711379 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
1072811380 fi
1072911381 fi
10730 rm -f core conftest.err conftest.$ac_objext \
11382 rm -f core conftest.err conftest.$ac_objext conftest.beam \
1073111383 conftest$ac_exeext conftest.$ac_ext
1073211384 if test -z "$lt_cv_aix_libpath_"; then
1073311385 lt_cv_aix_libpath_=/usr/lib:/lib
1075111403 if test set = "${lt_cv_aix_libpath+set}"; then
1075211404 aix_libpath=$lt_cv_aix_libpath
1075311405 else
10754 if ${lt_cv_aix_libpath_+:} false; then :
10755 $as_echo_n "(cached) " >&6
10756 else
11406 if test ${lt_cv_aix_libpath_+y}
11407 then :
11408 printf %s "(cached) " >&6
11409 else $as_nop
1075711410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1075811411 /* end confdefs.h. */
1075911412
1076011413 int
10761 main ()
11414 main (void)
1076211415 {
1076311416
1076411417 ;
1076511418 return 0;
1076611419 }
1076711420 _ACEOF
10768 if ac_fn_c_try_link "$LINENO"; then :
11421 if ac_fn_c_try_link "$LINENO"
11422 then :
1076911423
1077011424 lt_aix_libpath_sed='
1077111425 /Import File Strings/,/^$/ {
1078011434 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
1078111435 fi
1078211436 fi
10783 rm -f core conftest.err conftest.$ac_objext \
11437 rm -f core conftest.err conftest.$ac_objext conftest.beam \
1078411438 conftest$ac_exeext conftest.$ac_ext
1078511439 if test -z "$lt_cv_aix_libpath_"; then
1078611440 lt_cv_aix_libpath_=/usr/lib:/lib
1084311497
1084411498 cygwin* | mingw* | pw32* | cegcc*)
1084511499 # When not using gcc, we currently assume that we are using
10846 # Microsoft Visual C++.
11500 # Microsoft Visual C++ or Intel C++ Compiler.
1084711501 # hardcode_libdir_flag_spec is actually meaningless, as there is
1084811502 # no search path for DLLs.
1084911503 case $cc_basename in
10850 cl*)
10851 # Native MSVC
11504 cl* | icl*)
11505 # Native MSVC or ICC
1085211506 hardcode_libdir_flag_spec=' '
1085311507 allow_undefined_flag=unsupported
1085411508 always_export_symbols=yes
1088911543 fi'
1089011544 ;;
1089111545 *)
10892 # Assume MSVC wrapper
11546 # Assume MSVC and ICC wrapper
1089311547 hardcode_libdir_flag_spec=' '
1089411548 allow_undefined_flag=unsupported
1089511549 # Tell ltmain to make .lib files, not .a files.
1093011584 output_verbose_link_cmd=func_echo_all
1093111585 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
1093211586 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
10933 archive_expsym_cmds="sed 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dar_export_syms$_lt_dsymutil"
10934 module_expsym_cmds="sed -e 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dar_export_syms$_lt_dsymutil"
11587 archive_expsym_cmds="$SED 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dar_export_syms$_lt_dsymutil"
11588 module_expsym_cmds="$SED -e 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dar_export_syms$_lt_dsymutil"
1093511589
1093611590 else
1093711591 ld_shlibs=no
1096511619 ;;
1096611620
1096711621 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10968 freebsd* | dragonfly*)
11622 freebsd* | dragonfly* | midnightbsd*)
1096911623 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
1097011624 hardcode_libdir_flag_spec='-R$libdir'
1097111625 hardcode_direct=yes
1103111685
1103211686 # Older versions of the 11.00 compiler do not understand -b yet
1103311687 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11035 $as_echo_n "checking if $CC understands -b... " >&6; }
11036 if ${lt_cv_prog_compiler__b+:} false; then :
11037 $as_echo_n "(cached) " >&6
11038 else
11688 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11689 printf %s "checking if $CC understands -b... " >&6; }
11690 if test ${lt_cv_prog_compiler__b+y}
11691 then :
11692 printf %s "(cached) " >&6
11693 else $as_nop
1103911694 lt_cv_prog_compiler__b=no
1104011695 save_LDFLAGS=$LDFLAGS
1104111696 LDFLAGS="$LDFLAGS -b"
1105911714 LDFLAGS=$save_LDFLAGS
1106011715
1106111716 fi
11062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11063 $as_echo "$lt_cv_prog_compiler__b" >&6; }
11717 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11718 printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
1106411719
1106511720 if test yes = "$lt_cv_prog_compiler__b"; then
1106611721 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
1110011755 # work, assume that -exports_file does not work either and
1110111756 # implicitly export all symbols.
1110211757 # This should be the same for all languages, so no per-tag cache variable.
11103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
11104 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
11105 if ${lt_cv_irix_exported_symbol+:} false; then :
11106 $as_echo_n "(cached) " >&6
11107 else
11758 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
11759 printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
11760 if test ${lt_cv_irix_exported_symbol+y}
11761 then :
11762 printf %s "(cached) " >&6
11763 else $as_nop
1110811764 save_LDFLAGS=$LDFLAGS
1110911765 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
1111011766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1111111767 /* end confdefs.h. */
1111211768 int foo (void) { return 0; }
1111311769 _ACEOF
11114 if ac_fn_c_try_link "$LINENO"; then :
11770 if ac_fn_c_try_link "$LINENO"
11771 then :
1111511772 lt_cv_irix_exported_symbol=yes
11116 else
11773 else $as_nop
1111711774 lt_cv_irix_exported_symbol=no
1111811775 fi
11119 rm -f core conftest.err conftest.$ac_objext \
11776 rm -f core conftest.err conftest.$ac_objext conftest.beam \
1112011777 conftest$ac_exeext conftest.$ac_ext
1112111778 LDFLAGS=$save_LDFLAGS
1112211779 fi
11123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11124 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
11780 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11781 printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
1112511782 if test yes = "$lt_cv_irix_exported_symbol"; then
1112611783 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations $wl-exports_file $wl$export_symbols -o $lib'
1112711784 fi
1121411871 emximp -o $lib $output_objdir/$libname.def'
1121511872 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
1121611873 enable_shared_with_static_runtimes=yes
11874 file_list_spec='@'
1121711875 ;;
1121811876
1121911877 osf3*)
1140212060 fi
1140312061 fi
1140412062
11405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11406 $as_echo "$ld_shlibs" >&6; }
12063 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
12064 printf "%s\n" "$ld_shlibs" >&6; }
1140712065 test no = "$ld_shlibs" && can_build_shared=no
1140812066
1140912067 with_gnu_ld=$with_gnu_ld
1143912097 # Test whether the compiler implicitly links with -lc since on some
1144012098 # systems, -lgcc has to come before -lc. If gcc already passes -lc
1144112099 # to ld, don't add -lc before -lgcc.
11442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11443 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11444 if ${lt_cv_archive_cmds_need_lc+:} false; then :
11445 $as_echo_n "(cached) " >&6
11446 else
12100 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
12101 printf %s "checking whether -lc should be explicitly linked in... " >&6; }
12102 if test ${lt_cv_archive_cmds_need_lc+y}
12103 then :
12104 printf %s "(cached) " >&6
12105 else $as_nop
1144712106 $RM conftest*
1144812107 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
1144912108
1145012109 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1145112110 (eval $ac_compile) 2>&5
1145212111 ac_status=$?
11453 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12112 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1145412113 test $ac_status = 0; } 2>conftest.err; then
1145512114 soname=conftest
1145612115 lib=conftest
1146812127 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
1146912128 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
1147012129 ac_status=$?
11471 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12130 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1147212131 test $ac_status = 0; }
1147312132 then
1147412133 lt_cv_archive_cmds_need_lc=no
1148212141 $RM conftest*
1148312142
1148412143 fi
11485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11486 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
12144 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
12145 printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
1148712146 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
1148812147 ;;
1148912148 esac
1164212301
1164312302
1164412303
11645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11646 $as_echo_n "checking dynamic linker characteristics... " >&6; }
12304 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
12305 printf %s "checking dynamic linker characteristics... " >&6; }
1164712306
1164812307 if test yes = "$GCC"; then
1164912308 case $host_os in
1190512564 case $host_os in
1190612565 cygwin*)
1190712566 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11908 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12567 soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
1190912568
1191012569 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
1191112570 ;;
1191512574 ;;
1191612575 pw32*)
1191712576 # pw32 DLLs use 'pw' prefix rather than 'lib'
11918 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12577 library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
1191912578 ;;
1192012579 esac
1192112580 dynamic_linker='Win32 ld.exe'
1192212581 ;;
1192312582
11924 *,cl*)
11925 # Native MSVC
12583 *,cl* | *,icl*)
12584 # Native MSVC or ICC
1192612585 libname_spec='$name'
1192712586 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
1192812587 library_names_spec='$libname.dll.lib'
1194112600 done
1194212601 IFS=$lt_save_ifs
1194312602 # Convert to MSYS style.
11944 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
12603 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
1194512604 ;;
1194612605 cygwin*)
1194712606 # Convert to unix form, then to dos form, then back to unix form
1197812637 ;;
1197912638
1198012639 *)
11981 # Assume MSVC wrapper
12640 # Assume MSVC and ICC wrapper
1198212641 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
1198312642 dynamic_linker='Win32 ld.exe'
1198412643 ;;
1201112670 shlibpath_var=LD_LIBRARY_PATH
1201212671 ;;
1201312672
12014 freebsd* | dragonfly*)
12673 freebsd* | dragonfly* | midnightbsd*)
1201512674 # DragonFly does not have aout. When/if they implement a new
1201612675 # versioning mechanism, adjust this.
1201712676 if test -x /usr/bin/objformat; then
1220412863 shlibpath_overrides_runpath=no
1220512864
1220612865 # Some binutils ld are patched to set DT_RUNPATH
12207 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
12208 $as_echo_n "(cached) " >&6
12209 else
12866 if test ${lt_cv_shlibpath_overrides_runpath+y}
12867 then :
12868 printf %s "(cached) " >&6
12869 else $as_nop
1221012870 lt_cv_shlibpath_overrides_runpath=no
1221112871 save_LDFLAGS=$LDFLAGS
1221212872 save_libdir=$libdir
1221612876 /* end confdefs.h. */
1221712877
1221812878 int
12219 main ()
12879 main (void)
1222012880 {
1222112881
1222212882 ;
1222312883 return 0;
1222412884 }
1222512885 _ACEOF
12226 if ac_fn_c_try_link "$LINENO"; then :
12227 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
12886 if ac_fn_c_try_link "$LINENO"
12887 then :
12888 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
12889 then :
1222812890 lt_cv_shlibpath_overrides_runpath=yes
1222912891 fi
1223012892 fi
12231 rm -f core conftest.err conftest.$ac_objext \
12893 rm -f core conftest.err conftest.$ac_objext conftest.beam \
1223212894 conftest$ac_exeext conftest.$ac_ext
1223312895 LDFLAGS=$save_LDFLAGS
1223412896 libdir=$save_libdir
1247213134 dynamic_linker=no
1247313135 ;;
1247413136 esac
12475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12476 $as_echo "$dynamic_linker" >&6; }
13137 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
13138 printf "%s\n" "$dynamic_linker" >&6; }
1247713139 test no = "$dynamic_linker" && can_build_shared=no
1247813140
1247913141 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
1259413256
1259513257
1259613258
12597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12598 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13259 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13260 printf %s "checking how to hardcode library paths into programs... " >&6; }
1259913261 hardcode_action=
1260013262 if test -n "$hardcode_libdir_flag_spec" ||
1260113263 test -n "$runpath_var" ||
1261913281 # directories.
1262013282 hardcode_action=unsupported
1262113283 fi
12622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12623 $as_echo "$hardcode_action" >&6; }
13284 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
13285 printf "%s\n" "$hardcode_action" >&6; }
1262413286
1262513287 if test relink = "$hardcode_action" ||
1262613288 test yes = "$inherit_rpath"; then
1266413326
1266513327 darwin*)
1266613328 # if libdl is installed we need to link against it
12667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12668 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12669 if ${ac_cv_lib_dl_dlopen+:} false; then :
12670 $as_echo_n "(cached) " >&6
12671 else
13329 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13330 printf %s "checking for dlopen in -ldl... " >&6; }
13331 if test ${ac_cv_lib_dl_dlopen+y}
13332 then :
13333 printf %s "(cached) " >&6
13334 else $as_nop
1267213335 ac_check_lib_save_LIBS=$LIBS
1267313336 LIBS="-ldl $LIBS"
1267413337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1267713340 /* Override any GCC internal prototype to avoid an error.
1267813341 Use char because int might match the return type of a GCC
1267913342 builtin and then its argument prototype would still apply. */
12680 #ifdef __cplusplus
12681 extern "C"
12682 #endif
1268313343 char dlopen ();
1268413344 int
12685 main ()
13345 main (void)
1268613346 {
1268713347 return dlopen ();
1268813348 ;
1268913349 return 0;
1269013350 }
1269113351 _ACEOF
12692 if ac_fn_c_try_link "$LINENO"; then :
13352 if ac_fn_c_try_link "$LINENO"
13353 then :
1269313354 ac_cv_lib_dl_dlopen=yes
12694 else
13355 else $as_nop
1269513356 ac_cv_lib_dl_dlopen=no
1269613357 fi
12697 rm -f core conftest.err conftest.$ac_objext \
13358 rm -f core conftest.err conftest.$ac_objext conftest.beam \
1269813359 conftest$ac_exeext conftest.$ac_ext
1269913360 LIBS=$ac_check_lib_save_LIBS
1270013361 fi
12701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12702 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12703 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
13362 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13363 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
13364 if test "x$ac_cv_lib_dl_dlopen" = xyes
13365 then :
1270413366 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12705 else
13367 else $as_nop
1270613368
1270713369 lt_cv_dlopen=dyld
1270813370 lt_cv_dlopen_libs=
1272213384
1272313385 *)
1272413386 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12725 if test "x$ac_cv_func_shl_load" = xyes; then :
13387 if test "x$ac_cv_func_shl_load" = xyes
13388 then :
1272613389 lt_cv_dlopen=shl_load
12727 else
12728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12729 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12730 if ${ac_cv_lib_dld_shl_load+:} false; then :
12731 $as_echo_n "(cached) " >&6
12732 else
13390 else $as_nop
13391 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
13392 printf %s "checking for shl_load in -ldld... " >&6; }
13393 if test ${ac_cv_lib_dld_shl_load+y}
13394 then :
13395 printf %s "(cached) " >&6
13396 else $as_nop
1273313397 ac_check_lib_save_LIBS=$LIBS
1273413398 LIBS="-ldld $LIBS"
1273513399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1273813402 /* Override any GCC internal prototype to avoid an error.
1273913403 Use char because int might match the return type of a GCC
1274013404 builtin and then its argument prototype would still apply. */
12741 #ifdef __cplusplus
12742 extern "C"
12743 #endif
1274413405 char shl_load ();
1274513406 int
12746 main ()
13407 main (void)
1274713408 {
1274813409 return shl_load ();
1274913410 ;
1275013411 return 0;
1275113412 }
1275213413 _ACEOF
12753 if ac_fn_c_try_link "$LINENO"; then :
13414 if ac_fn_c_try_link "$LINENO"
13415 then :
1275413416 ac_cv_lib_dld_shl_load=yes
12755 else
13417 else $as_nop
1275613418 ac_cv_lib_dld_shl_load=no
1275713419 fi
12758 rm -f core conftest.err conftest.$ac_objext \
13420 rm -f core conftest.err conftest.$ac_objext conftest.beam \
1275913421 conftest$ac_exeext conftest.$ac_ext
1276013422 LIBS=$ac_check_lib_save_LIBS
1276113423 fi
12762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12763 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12764 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
13424 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
13425 printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
13426 if test "x$ac_cv_lib_dld_shl_load" = xyes
13427 then :
1276513428 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
12766 else
13429 else $as_nop
1276713430 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12768 if test "x$ac_cv_func_dlopen" = xyes; then :
13431 if test "x$ac_cv_func_dlopen" = xyes
13432 then :
1276913433 lt_cv_dlopen=dlopen
12770 else
12771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12772 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12773 if ${ac_cv_lib_dl_dlopen+:} false; then :
12774 $as_echo_n "(cached) " >&6
12775 else
13434 else $as_nop
13435 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13436 printf %s "checking for dlopen in -ldl... " >&6; }
13437 if test ${ac_cv_lib_dl_dlopen+y}
13438 then :
13439 printf %s "(cached) " >&6
13440 else $as_nop
1277613441 ac_check_lib_save_LIBS=$LIBS
1277713442 LIBS="-ldl $LIBS"
1277813443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1278113446 /* Override any GCC internal prototype to avoid an error.
1278213447 Use char because int might match the return type of a GCC
1278313448 builtin and then its argument prototype would still apply. */
12784 #ifdef __cplusplus
12785 extern "C"
12786 #endif
1278713449 char dlopen ();
1278813450 int
12789 main ()
13451 main (void)
1279013452 {
1279113453 return dlopen ();
1279213454 ;
1279313455 return 0;
1279413456 }
1279513457 _ACEOF
12796 if ac_fn_c_try_link "$LINENO"; then :
13458 if ac_fn_c_try_link "$LINENO"
13459 then :
1279713460 ac_cv_lib_dl_dlopen=yes
12798 else
13461 else $as_nop
1279913462 ac_cv_lib_dl_dlopen=no
1280013463 fi
12801 rm -f core conftest.err conftest.$ac_objext \
13464 rm -f core conftest.err conftest.$ac_objext conftest.beam \
1280213465 conftest$ac_exeext conftest.$ac_ext
1280313466 LIBS=$ac_check_lib_save_LIBS
1280413467 fi
12805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12806 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12807 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
13468 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13469 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
13470 if test "x$ac_cv_lib_dl_dlopen" = xyes
13471 then :
1280813472 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12809 else
12810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12811 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12812 if ${ac_cv_lib_svld_dlopen+:} false; then :
12813 $as_echo_n "(cached) " >&6
12814 else
13473 else $as_nop
13474 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
13475 printf %s "checking for dlopen in -lsvld... " >&6; }
13476 if test ${ac_cv_lib_svld_dlopen+y}
13477 then :
13478 printf %s "(cached) " >&6
13479 else $as_nop
1281513480 ac_check_lib_save_LIBS=$LIBS
1281613481 LIBS="-lsvld $LIBS"
1281713482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1282013485 /* Override any GCC internal prototype to avoid an error.
1282113486 Use char because int might match the return type of a GCC
1282213487 builtin and then its argument prototype would still apply. */
12823 #ifdef __cplusplus
12824 extern "C"
12825 #endif
1282613488 char dlopen ();
1282713489 int
12828 main ()
13490 main (void)
1282913491 {
1283013492 return dlopen ();
1283113493 ;
1283213494 return 0;
1283313495 }
1283413496 _ACEOF
12835 if ac_fn_c_try_link "$LINENO"; then :
13497 if ac_fn_c_try_link "$LINENO"
13498 then :
1283613499 ac_cv_lib_svld_dlopen=yes
12837 else
13500 else $as_nop
1283813501 ac_cv_lib_svld_dlopen=no
1283913502 fi
12840 rm -f core conftest.err conftest.$ac_objext \
13503 rm -f core conftest.err conftest.$ac_objext conftest.beam \
1284113504 conftest$ac_exeext conftest.$ac_ext
1284213505 LIBS=$ac_check_lib_save_LIBS
1284313506 fi
12844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12845 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12846 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
13507 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
13508 printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
13509 if test "x$ac_cv_lib_svld_dlopen" = xyes
13510 then :
1284713511 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
12848 else
12849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12850 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12851 if ${ac_cv_lib_dld_dld_link+:} false; then :
12852 $as_echo_n "(cached) " >&6
12853 else
13512 else $as_nop
13513 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
13514 printf %s "checking for dld_link in -ldld... " >&6; }
13515 if test ${ac_cv_lib_dld_dld_link+y}
13516 then :
13517 printf %s "(cached) " >&6
13518 else $as_nop
1285413519 ac_check_lib_save_LIBS=$LIBS
1285513520 LIBS="-ldld $LIBS"
1285613521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1285913524 /* Override any GCC internal prototype to avoid an error.
1286013525 Use char because int might match the return type of a GCC
1286113526 builtin and then its argument prototype would still apply. */
12862 #ifdef __cplusplus
12863 extern "C"
12864 #endif
1286513527 char dld_link ();
1286613528 int
12867 main ()
13529 main (void)
1286813530 {
1286913531 return dld_link ();
1287013532 ;
1287113533 return 0;
1287213534 }
1287313535 _ACEOF
12874 if ac_fn_c_try_link "$LINENO"; then :
13536 if ac_fn_c_try_link "$LINENO"
13537 then :
1287513538 ac_cv_lib_dld_dld_link=yes
12876 else
13539 else $as_nop
1287713540 ac_cv_lib_dld_dld_link=no
1287813541 fi
12879 rm -f core conftest.err conftest.$ac_objext \
13542 rm -f core conftest.err conftest.$ac_objext conftest.beam \
1288013543 conftest$ac_exeext conftest.$ac_ext
1288113544 LIBS=$ac_check_lib_save_LIBS
1288213545 fi
12883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12884 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12885 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
13546 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
13547 printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
13548 if test "x$ac_cv_lib_dld_dld_link" = xyes
13549 then :
1288613550 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
1288713551 fi
1288813552
1292113585 save_LIBS=$LIBS
1292213586 LIBS="$lt_cv_dlopen_libs $LIBS"
1292313587
12924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12925 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12926 if ${lt_cv_dlopen_self+:} false; then :
12927 $as_echo_n "(cached) " >&6
12928 else
13588 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
13589 printf %s "checking whether a program can dlopen itself... " >&6; }
13590 if test ${lt_cv_dlopen_self+y}
13591 then :
13592 printf %s "(cached) " >&6
13593 else $as_nop
1292913594 if test yes = "$cross_compiling"; then :
1293013595 lt_cv_dlopen_self=cross
1293113596 else
1300413669 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
1300513670 (eval $ac_link) 2>&5
1300613671 ac_status=$?
13007 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13672 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1300813673 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
1300913674 (./conftest; exit; ) >&5 2>/dev/null
1301013675 lt_status=$?
1302213687
1302313688
1302413689 fi
13025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
13026 $as_echo "$lt_cv_dlopen_self" >&6; }
13690 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
13691 printf "%s\n" "$lt_cv_dlopen_self" >&6; }
1302713692
1302813693 if test yes = "$lt_cv_dlopen_self"; then
1302913694 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
13030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
13031 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
13032 if ${lt_cv_dlopen_self_static+:} false; then :
13033 $as_echo_n "(cached) " >&6
13034 else
13695 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
13696 printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
13697 if test ${lt_cv_dlopen_self_static+y}
13698 then :
13699 printf %s "(cached) " >&6
13700 else $as_nop
1303513701 if test yes = "$cross_compiling"; then :
1303613702 lt_cv_dlopen_self_static=cross
1303713703 else
1311013776 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
1311113777 (eval $ac_link) 2>&5
1311213778 ac_status=$?
13113 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13779 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1311413780 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
1311513781 (./conftest; exit; ) >&5 2>/dev/null
1311613782 lt_status=$?
1312813794
1312913795
1313013796 fi
13131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13132 $as_echo "$lt_cv_dlopen_self_static" >&6; }
13797 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13798 printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
1313313799 fi
1313413800
1313513801 CPPFLAGS=$save_CPPFLAGS
1316713833
1316813834 striplib=
1316913835 old_striplib=
13170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13171 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
13172 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13173 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13174 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13176 $as_echo "yes" >&6; }
13836 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13837 printf %s "checking whether stripping libraries is possible... " >&6; }
13838 if test -z "$STRIP"; then
13839 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13840 printf "%s\n" "no" >&6; }
1317713841 else
13178 # FIXME - insert some real tests, host_os isn't really good enough
13179 case $host_os in
13180 darwin*)
13181 if test -n "$STRIP"; then
13842 if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13843 old_striplib="$STRIP --strip-debug"
13844 striplib="$STRIP --strip-unneeded"
13845 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13846 printf "%s\n" "yes" >&6; }
13847 else
13848 case $host_os in
13849 darwin*)
13850 # FIXME - insert some real tests, host_os isn't really good enough
1318213851 striplib="$STRIP -x"
1318313852 old_striplib="$STRIP -S"
13184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13185 $as_echo "yes" >&6; }
13186 else
13187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13188 $as_echo "no" >&6; }
13189 fi
13190 ;;
13191 *)
13192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13193 $as_echo "no" >&6; }
13194 ;;
13195 esac
13853 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13854 printf "%s\n" "yes" >&6; }
13855 ;;
13856 freebsd*)
13857 if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
13858 old_striplib="$STRIP --strip-debug"
13859 striplib="$STRIP --strip-unneeded"
13860 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13861 printf "%s\n" "yes" >&6; }
13862 else
13863 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13864 printf "%s\n" "no" >&6; }
13865 fi
13866 ;;
13867 *)
13868 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13869 printf "%s\n" "no" >&6; }
13870 ;;
13871 esac
13872 fi
1319613873 fi
1319713874
1319813875
1320713884
1320813885
1320913886 # Report what library types will actually be built
13210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13211 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
13212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13213 $as_echo "$can_build_shared" >&6; }
13214
13215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13216 $as_echo_n "checking whether to build shared libraries... " >&6; }
13887 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13888 printf %s "checking if libtool supports shared libraries... " >&6; }
13889 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13890 printf "%s\n" "$can_build_shared" >&6; }
13891
13892 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13893 printf %s "checking whether to build shared libraries... " >&6; }
1321713894 test no = "$can_build_shared" && enable_shared=no
1321813895
1321913896 # On AIX, shared libraries and static libraries use the same namespace, and
1323713914 fi
1323813915 ;;
1323913916 esac
13240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13241 $as_echo "$enable_shared" >&6; }
13242
13243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13244 $as_echo_n "checking whether to build static libraries... " >&6; }
13917 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13918 printf "%s\n" "$enable_shared" >&6; }
13919
13920 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13921 printf %s "checking whether to build static libraries... " >&6; }
1324513922 # Make sure either enable_shared or enable_static is yes.
1324613923 test yes = "$enable_shared" || enable_static=yes
13247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13248 $as_echo "$enable_static" >&6; }
13924 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13925 printf "%s\n" "$enable_static" >&6; }
1324913926
1325013927
1325113928
1326713944 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1326813945 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1326913946 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
13271 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
13947 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
13948 printf %s "checking how to run the C++ preprocessor... " >&6; }
1327213949 if test -z "$CXXCPP"; then
13273 if ${ac_cv_prog_CXXCPP+:} false; then :
13274 $as_echo_n "(cached) " >&6
13275 else
13276 # Double quotes because CXXCPP needs to be expanded
13277 for CXXCPP in "$CXX -E" "/lib/cpp"
13950 if test ${ac_cv_prog_CXXCPP+y}
13951 then :
13952 printf %s "(cached) " >&6
13953 else $as_nop
13954 # Double quotes because $CXX needs to be expanded
13955 for CXXCPP in "$CXX -E" cpp /lib/cpp
1327813956 do
1327913957 ac_preproc_ok=false
1328013958 for ac_cxx_preproc_warn_flag in '' yes
1328113959 do
1328213960 # Use a header file that comes with gcc, so configuring glibc
1328313961 # with a fresh cross-compiler works.
13284 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13285 # <limits.h> exists even on freestanding compilers.
1328613962 # On the NeXT, cc -E runs the code through the compiler's parser,
1328713963 # not just through cpp. "Syntax error" is here to catch this case.
1328813964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1328913965 /* end confdefs.h. */
13290 #ifdef __STDC__
13291 # include <limits.h>
13292 #else
13293 # include <assert.h>
13294 #endif
13966 #include <limits.h>
1329513967 Syntax error
1329613968 _ACEOF
13297 if ac_fn_cxx_try_cpp "$LINENO"; then :
13298
13299 else
13969 if ac_fn_cxx_try_cpp "$LINENO"
13970 then :
13971
13972 else $as_nop
1330013973 # Broken: fails on valid input.
1330113974 continue
1330213975 fi
1330813981 /* end confdefs.h. */
1330913982 #include <ac_nonexistent.h>
1331013983 _ACEOF
13311 if ac_fn_cxx_try_cpp "$LINENO"; then :
13984 if ac_fn_cxx_try_cpp "$LINENO"
13985 then :
1331213986 # Broken: success on invalid input.
1331313987 continue
13314 else
13988 else $as_nop
1331513989 # Passes both tests.
1331613990 ac_preproc_ok=:
1331713991 break
1332113995 done
1332213996 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
1332313997 rm -f conftest.i conftest.err conftest.$ac_ext
13324 if $ac_preproc_ok; then :
13998 if $ac_preproc_ok
13999 then :
1332514000 break
1332614001 fi
1332714002
1333314008 else
1333414009 ac_cv_prog_CXXCPP=$CXXCPP
1333514010 fi
13336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
13337 $as_echo "$CXXCPP" >&6; }
14011 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
14012 printf "%s\n" "$CXXCPP" >&6; }
1333814013 ac_preproc_ok=false
1333914014 for ac_cxx_preproc_warn_flag in '' yes
1334014015 do
1334114016 # Use a header file that comes with gcc, so configuring glibc
1334214017 # with a fresh cross-compiler works.
13343 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13344 # <limits.h> exists even on freestanding compilers.
1334514018 # On the NeXT, cc -E runs the code through the compiler's parser,
1334614019 # not just through cpp. "Syntax error" is here to catch this case.
1334714020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1334814021 /* end confdefs.h. */
13349 #ifdef __STDC__
13350 # include <limits.h>
13351 #else
13352 # include <assert.h>
13353 #endif
14022 #include <limits.h>
1335414023 Syntax error
1335514024 _ACEOF
13356 if ac_fn_cxx_try_cpp "$LINENO"; then :
13357
13358 else
14025 if ac_fn_cxx_try_cpp "$LINENO"
14026 then :
14027
14028 else $as_nop
1335914029 # Broken: fails on valid input.
1336014030 continue
1336114031 fi
1336714037 /* end confdefs.h. */
1336814038 #include <ac_nonexistent.h>
1336914039 _ACEOF
13370 if ac_fn_cxx_try_cpp "$LINENO"; then :
14040 if ac_fn_cxx_try_cpp "$LINENO"
14041 then :
1337114042 # Broken: success on invalid input.
1337214043 continue
13373 else
14044 else $as_nop
1337414045 # Passes both tests.
1337514046 ac_preproc_ok=:
1337614047 break
1338014051 done
1338114052 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
1338214053 rm -f conftest.i conftest.err conftest.$ac_ext
13383 if $ac_preproc_ok; then :
13384
13385 else
13386 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13387 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14054 if $ac_preproc_ok
14055 then :
14056
14057 else $as_nop
14058 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14059 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
1338814060 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
1338914061 See \`config.log' for more details" "$LINENO" 5; }
1339014062 fi
1352014192
1352114193
1352214194 # Check whether --with-gnu-ld was given.
13523 if test "${with_gnu_ld+set}" = set; then :
14195 if test ${with_gnu_ld+y}
14196 then :
1352414197 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
13525 else
14198 else $as_nop
1352614199 with_gnu_ld=no
1352714200 fi
1352814201
1352914202 ac_prog=ld
1353014203 if test yes = "$GCC"; then
1353114204 # Check if gcc -print-prog-name=ld gives a path.
13532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
13533 $as_echo_n "checking for ld used by $CC... " >&6; }
14205 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
14206 printf %s "checking for ld used by $CC... " >&6; }
1353414207 case $host in
1353514208 *-*-mingw*)
1353614209 # gcc leaves a trailing carriage return, which upsets mingw
1355914232 ;;
1356014233 esac
1356114234 elif test yes = "$with_gnu_ld"; then
13562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13563 $as_echo_n "checking for GNU ld... " >&6; }
14235 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
14236 printf %s "checking for GNU ld... " >&6; }
1356414237 else
13565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13566 $as_echo_n "checking for non-GNU ld... " >&6; }
13567 fi
13568 if ${lt_cv_path_LD+:} false; then :
13569 $as_echo_n "(cached) " >&6
13570 else
14238 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
14239 printf %s "checking for non-GNU ld... " >&6; }
14240 fi
14241 if test ${lt_cv_path_LD+y}
14242 then :
14243 printf %s "(cached) " >&6
14244 else $as_nop
1357114245 if test -z "$LD"; then
1357214246 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
1357314247 for ac_dir in $PATH; do
1359614270
1359714271 LD=$lt_cv_path_LD
1359814272 if test -n "$LD"; then
13599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13600 $as_echo "$LD" >&6; }
14273 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
14274 printf "%s\n" "$LD" >&6; }
1360114275 else
13602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13603 $as_echo "no" >&6; }
14276 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14277 printf "%s\n" "no" >&6; }
1360414278 fi
1360514279 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
13606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13607 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13608 if ${lt_cv_prog_gnu_ld+:} false; then :
13609 $as_echo_n "(cached) " >&6
13610 else
14280 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
14281 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
14282 if test ${lt_cv_prog_gnu_ld+y}
14283 then :
14284 printf %s "(cached) " >&6
14285 else $as_nop
1361114286 # I'd rather use --version here, but apparently some GNU lds only accept -v.
1361214287 case `$LD -v 2>&1 </dev/null` in
1361314288 *GNU* | *'with BFD'*)
1361814293 ;;
1361914294 esac
1362014295 fi
13621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
13622 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
14296 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
14297 printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
1362314298 with_gnu_ld=$lt_cv_prog_gnu_ld
1362414299
1362514300
1367314348 fi
1367414349
1367514350 # PORTME: fill in a description of your system's C++ link characteristics
13676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13677 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14351 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14352 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
1367814353 ld_shlibs_CXX=yes
1367914354 case $host_os in
1368014355 aix3*)
1381214487 if test set = "${lt_cv_aix_libpath+set}"; then
1381314488 aix_libpath=$lt_cv_aix_libpath
1381414489 else
13815 if ${lt_cv_aix_libpath__CXX+:} false; then :
13816 $as_echo_n "(cached) " >&6
13817 else
14490 if test ${lt_cv_aix_libpath__CXX+y}
14491 then :
14492 printf %s "(cached) " >&6
14493 else $as_nop
1381814494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1381914495 /* end confdefs.h. */
1382014496
1382114497 int
13822 main ()
14498 main (void)
1382314499 {
1382414500
1382514501 ;
1382614502 return 0;
1382714503 }
1382814504 _ACEOF
13829 if ac_fn_cxx_try_link "$LINENO"; then :
14505 if ac_fn_cxx_try_link "$LINENO"
14506 then :
1383014507
1383114508 lt_aix_libpath_sed='
1383214509 /Import File Strings/,/^$/ {
1384114518 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
1384214519 fi
1384314520 fi
13844 rm -f core conftest.err conftest.$ac_objext \
14521 rm -f core conftest.err conftest.$ac_objext conftest.beam \
1384514522 conftest$ac_exeext conftest.$ac_ext
1384614523 if test -z "$lt_cv_aix_libpath__CXX"; then
1384714524 lt_cv_aix_libpath__CXX=/usr/lib:/lib
1386614543 if test set = "${lt_cv_aix_libpath+set}"; then
1386714544 aix_libpath=$lt_cv_aix_libpath
1386814545 else
13869 if ${lt_cv_aix_libpath__CXX+:} false; then :
13870 $as_echo_n "(cached) " >&6
13871 else
14546 if test ${lt_cv_aix_libpath__CXX+y}
14547 then :
14548 printf %s "(cached) " >&6
14549 else $as_nop
1387214550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1387314551 /* end confdefs.h. */
1387414552
1387514553 int
13876 main ()
14554 main (void)
1387714555 {
1387814556
1387914557 ;
1388014558 return 0;
1388114559 }
1388214560 _ACEOF
13883 if ac_fn_cxx_try_link "$LINENO"; then :
14561 if ac_fn_cxx_try_link "$LINENO"
14562 then :
1388414563
1388514564 lt_aix_libpath_sed='
1388614565 /Import File Strings/,/^$/ {
1389514574 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
1389614575 fi
1389714576 fi
13898 rm -f core conftest.err conftest.$ac_objext \
14577 rm -f core conftest.err conftest.$ac_objext conftest.beam \
1389914578 conftest$ac_exeext conftest.$ac_ext
1390014579 if test -z "$lt_cv_aix_libpath__CXX"; then
1390114580 lt_cv_aix_libpath__CXX=/usr/lib:/lib
1396014639
1396114640 cygwin* | mingw* | pw32* | cegcc*)
1396214641 case $GXX,$cc_basename in
13963 ,cl* | no,cl*)
13964 # Native MSVC
14642 ,cl* | no,cl* | ,icl* | no,icl*)
14643 # Native MSVC or ICC
1396514644 # hardcode_libdir_flag_spec is actually meaningless, as there is
1396614645 # no search path for DLLs.
1396714646 hardcode_libdir_flag_spec_CXX=' '
1405214731 output_verbose_link_cmd=func_echo_all
1405314732 archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
1405414733 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
14055 archive_expsym_cmds_CXX="sed 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dar_export_syms$_lt_dsymutil"
14056 module_expsym_cmds_CXX="sed -e 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dar_export_syms$_lt_dsymutil"
14734 archive_expsym_cmds_CXX="$SED 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dar_export_syms$_lt_dsymutil"
14735 module_expsym_cmds_CXX="$SED -e 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dar_export_syms$_lt_dsymutil"
1405714736 if test yes != "$lt_cv_apple_cc_single_mod"; then
1405814737 archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \$lib-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$lib-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring$_lt_dsymutil"
14059 archive_expsym_cmds_CXX="sed 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \$lib-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$lib-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring$_lt_dar_export_syms$_lt_dsymutil"
14738 archive_expsym_cmds_CXX="$SED 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \$lib-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$lib-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring$_lt_dar_export_syms$_lt_dsymutil"
1406014739 fi
1406114740
1406214741 else
1409114770 emximp -o $lib $output_objdir/$libname.def'
1409214771 old_archive_From_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
1409314772 enable_shared_with_static_runtimes_CXX=yes
14773 file_list_spec_CXX='@'
1409414774 ;;
1409514775
1409614776 dgux*)
1412114801 archive_cmds_need_lc_CXX=no
1412214802 ;;
1412314803
14124 freebsd* | dragonfly*)
14804 freebsd* | dragonfly* | midnightbsd*)
1412514805 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
1412614806 # conventions
1412714807 ld_shlibs_CXX=yes
1425814938 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
1425914939 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
1426014940 archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14261 archive_expsym_cmds_CXX='sed "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--retain-symbols-file,$output_objdir/$soname.expsym $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14941 archive_expsym_cmds_CXX='$SED "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--retain-symbols-file,$output_objdir/$soname.expsym $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
1426214942 ;;
1426314943 irix5* | irix6*)
1426414944 case $cc_basename in
1439815078 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
1439915079 if test yes = "$supports_anon_versioning"; then
1440015080 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
14401 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15081 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
1440215082 echo "local: *; };" >> $output_objdir/$libname.ver~
1440315083 $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
1440415084 fi
1440515085 ;;
1440615086 *)
14407 case `$CC -V 2>&1 | sed 5q` in
15087 case `$CC -V 2>&1 | $SED 5q` in
1440815088 *Sun\ C*)
1440915089 # Sun C++ 5.9
1441015090 no_undefined_flag_CXX=' -zdefs'
1474615426 ;;
1474715427 esac
1474815428
14749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14750 $as_echo "$ld_shlibs_CXX" >&6; }
15429 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15430 printf "%s\n" "$ld_shlibs_CXX" >&6; }
1475115431 test no = "$ld_shlibs_CXX" && can_build_shared=no
1475215432
1475315433 GCC_CXX=$GXX
1478515465 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1478615466 (eval $ac_compile) 2>&5
1478715467 ac_status=$?
14788 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15468 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1478915469 test $ac_status = 0; }; then
1479015470 # Parse the compiler output and extract the necessary
1479115471 # objects, libraries and library flags.
1506115741 ;;
1506215742 esac
1506315743 ;;
15064 freebsd* | dragonfly*)
15744 freebsd* | dragonfly* | midnightbsd*)
1506515745 # FreeBSD uses GNU C++
1506615746 ;;
1506715747 hpux9* | hpux10* | hpux11*)
1514415824 lt_prog_compiler_static_CXX='-qstaticlink'
1514515825 ;;
1514615826 *)
15147 case `$CC -V 2>&1 | sed 5q` in
15827 case `$CC -V 2>&1 | $SED 5q` in
1514815828 *Sun\ C*)
1514915829 # Sun C++ 5.9
1515015830 lt_prog_compiler_pic_CXX='-KPIC'
1526615946 ;;
1526715947 esac
1526815948
15269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15270 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15271 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
15272 $as_echo_n "(cached) " >&6
15273 else
15949 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15950 printf %s "checking for $compiler option to produce PIC... " >&6; }
15951 if test ${lt_cv_prog_compiler_pic_CXX+y}
15952 then :
15953 printf %s "(cached) " >&6
15954 else $as_nop
1527415955 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
1527515956 fi
15276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
15277 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
15957 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
15958 printf "%s\n" "$lt_cv_prog_compiler_pic_CXX" >&6; }
1527815959 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
1527915960
1528015961 #
1528115962 # Check to make sure the PIC flag actually works.
1528215963 #
1528315964 if test -n "$lt_prog_compiler_pic_CXX"; then
15284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
15285 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
15286 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
15287 $as_echo_n "(cached) " >&6
15288 else
15965 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
15966 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
15967 if test ${lt_cv_prog_compiler_pic_works_CXX+y}
15968 then :
15969 printf %s "(cached) " >&6
15970 else $as_nop
1528915971 lt_cv_prog_compiler_pic_works_CXX=no
1529015972 ac_outfile=conftest.$ac_objext
1529115973 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
1531615998 $RM conftest*
1531715999
1531816000 fi
15319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
15320 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
16001 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
16002 printf "%s\n" "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
1532116003
1532216004 if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
1532316005 case $lt_prog_compiler_pic_CXX in
1533916021 # Check to make sure the static flag actually works.
1534016022 #
1534116023 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
15342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15343 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15344 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
15345 $as_echo_n "(cached) " >&6
15346 else
16024 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16025 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
16026 if test ${lt_cv_prog_compiler_static_works_CXX+y}
16027 then :
16028 printf %s "(cached) " >&6
16029 else $as_nop
1534716030 lt_cv_prog_compiler_static_works_CXX=no
1534816031 save_LDFLAGS=$LDFLAGS
1534916032 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
1536716050 LDFLAGS=$save_LDFLAGS
1536816051
1536916052 fi
15370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
15371 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
16053 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
16054 printf "%s\n" "$lt_cv_prog_compiler_static_works_CXX" >&6; }
1537216055
1537316056 if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
1537416057 :
1537916062
1538016063
1538116064
15382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15383 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15384 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
15385 $as_echo_n "(cached) " >&6
15386 else
16065 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
16066 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16067 if test ${lt_cv_prog_compiler_c_o_CXX+y}
16068 then :
16069 printf %s "(cached) " >&6
16070 else $as_nop
1538716071 lt_cv_prog_compiler_c_o_CXX=no
1538816072 $RM -r conftest 2>/dev/null
1538916073 mkdir conftest
1542616110 $RM conftest*
1542716111
1542816112 fi
15429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15430 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15431
15432
15433
15434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15435 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15436 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
15437 $as_echo_n "(cached) " >&6
15438 else
16113 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
16114 printf "%s\n" "$lt_cv_prog_compiler_c_o_CXX" >&6; }
16115
16116
16117
16118 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
16119 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16120 if test ${lt_cv_prog_compiler_c_o_CXX+y}
16121 then :
16122 printf %s "(cached) " >&6
16123 else $as_nop
1543916124 lt_cv_prog_compiler_c_o_CXX=no
1544016125 $RM -r conftest 2>/dev/null
1544116126 mkdir conftest
1547816163 $RM conftest*
1547916164
1548016165 fi
15481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15482 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
16166 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
16167 printf "%s\n" "$lt_cv_prog_compiler_c_o_CXX" >&6; }
1548316168
1548416169
1548516170
1548716172 hard_links=nottested
1548816173 if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then
1548916174 # do not overwrite the value of need_locks provided by the user
15490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15491 $as_echo_n "checking if we can lock with hard links... " >&6; }
16175 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
16176 printf %s "checking if we can lock with hard links... " >&6; }
1549216177 hard_links=yes
1549316178 $RM conftest*
1549416179 ln conftest.a conftest.b 2>/dev/null && hard_links=no
1549516180 touch conftest.a
1549616181 ln conftest.a conftest.b 2>&5 || hard_links=no
1549716182 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15499 $as_echo "$hard_links" >&6; }
16183 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
16184 printf "%s\n" "$hard_links" >&6; }
1550016185 if test no = "$hard_links"; then
15501 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
15502 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
16186 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
16187 printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
1550316188 need_locks=warn
1550416189 fi
1550516190 else
1550816193
1550916194
1551016195
15511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15512 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
16196 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16197 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
1551316198
1551416199 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
1551516200 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
1552616211 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
1552716212 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
1552816213 else
15529 export_symbols_cmds_CXX='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
16214 export_symbols_cmds_CXX='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
1553016215 fi
1553116216 ;;
1553216217 pw32*)
1553416219 ;;
1553516220 cygwin* | mingw* | cegcc*)
1553616221 case $cc_basename in
15537 cl*)
16222 cl* | icl*)
1553816223 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
1553916224 ;;
1554016225 *)
1555116236 ;;
1555216237 esac
1555316238
15554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15555 $as_echo "$ld_shlibs_CXX" >&6; }
16239 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
16240 printf "%s\n" "$ld_shlibs_CXX" >&6; }
1555616241 test no = "$ld_shlibs_CXX" && can_build_shared=no
1555716242
1555816243 with_gnu_ld_CXX=$with_gnu_ld
1557916264 # Test whether the compiler implicitly links with -lc since on some
1558016265 # systems, -lgcc has to come before -lc. If gcc already passes -lc
1558116266 # to ld, don't add -lc before -lgcc.
15582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15583 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15584 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
15585 $as_echo_n "(cached) " >&6
15586 else
16267 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16268 printf %s "checking whether -lc should be explicitly linked in... " >&6; }
16269 if test ${lt_cv_archive_cmds_need_lc_CXX+y}
16270 then :
16271 printf %s "(cached) " >&6
16272 else $as_nop
1558716273 $RM conftest*
1558816274 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
1558916275
1559016276 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1559116277 (eval $ac_compile) 2>&5
1559216278 ac_status=$?
15593 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16279 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1559416280 test $ac_status = 0; } 2>conftest.err; then
1559516281 soname=conftest
1559616282 lib=conftest
1560816294 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
1560916295 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
1561016296 ac_status=$?
15611 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16297 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1561216298 test $ac_status = 0; }
1561316299 then
1561416300 lt_cv_archive_cmds_need_lc_CXX=no
1562216308 $RM conftest*
1562316309
1562416310 fi
15625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
15626 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
16311 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
16312 printf "%s\n" "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
1562716313 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
1562816314 ;;
1562916315 esac
1569216378
1569316379
1569416380
15695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15696 $as_echo_n "checking dynamic linker characteristics... " >&6; }
16381 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16382 printf %s "checking dynamic linker characteristics... " >&6; }
1569716383
1569816384 library_names_spec=
1569916385 libname_spec='lib$name'
1588416570 case $host_os in
1588516571 cygwin*)
1588616572 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15887 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
16573 soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
1588816574
1588916575 ;;
1589016576 mingw* | cegcc*)
1589316579 ;;
1589416580 pw32*)
1589516581 # pw32 DLLs use 'pw' prefix rather than 'lib'
15896 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
16582 library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
1589716583 ;;
1589816584 esac
1589916585 dynamic_linker='Win32 ld.exe'
1590016586 ;;
1590116587
15902 *,cl*)
15903 # Native MSVC
16588 *,cl* | *,icl*)
16589 # Native MSVC or ICC
1590416590 libname_spec='$name'
1590516591 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
1590616592 library_names_spec='$libname.dll.lib'
1591916605 done
1592016606 IFS=$lt_save_ifs
1592116607 # Convert to MSYS style.
15922 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
16608 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
1592316609 ;;
1592416610 cygwin*)
1592516611 # Convert to unix form, then to dos form, then back to unix form
1595616642 ;;
1595716643
1595816644 *)
15959 # Assume MSVC wrapper
16645 # Assume MSVC and ICC wrapper
1596016646 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
1596116647 dynamic_linker='Win32 ld.exe'
1596216648 ;;
1598816674 shlibpath_var=LD_LIBRARY_PATH
1598916675 ;;
1599016676
15991 freebsd* | dragonfly*)
16677 freebsd* | dragonfly* | midnightbsd*)
1599216678 # DragonFly does not have aout. When/if they implement a new
1599316679 # versioning mechanism, adjust this.
1599416680 if test -x /usr/bin/objformat; then
1618116867 shlibpath_overrides_runpath=no
1618216868
1618316869 # Some binutils ld are patched to set DT_RUNPATH
16184 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
16185 $as_echo_n "(cached) " >&6
16186 else
16870 if test ${lt_cv_shlibpath_overrides_runpath+y}
16871 then :
16872 printf %s "(cached) " >&6
16873 else $as_nop
1618716874 lt_cv_shlibpath_overrides_runpath=no
1618816875 save_LDFLAGS=$LDFLAGS
1618916876 save_libdir=$libdir
1619316880 /* end confdefs.h. */
1619416881
1619516882 int
16196 main ()
16883 main (void)
1619716884 {
1619816885
1619916886 ;
1620016887 return 0;
1620116888 }
1620216889 _ACEOF
16203 if ac_fn_cxx_try_link "$LINENO"; then :
16204 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
16890 if ac_fn_cxx_try_link "$LINENO"
16891 then :
16892 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
16893 then :
1620516894 lt_cv_shlibpath_overrides_runpath=yes
1620616895 fi
1620716896 fi
16208 rm -f core conftest.err conftest.$ac_objext \
16897 rm -f core conftest.err conftest.$ac_objext conftest.beam \
1620916898 conftest$ac_exeext conftest.$ac_ext
1621016899 LDFLAGS=$save_LDFLAGS
1621116900 libdir=$save_libdir
1644917138 dynamic_linker=no
1645017139 ;;
1645117140 esac
16452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16453 $as_echo "$dynamic_linker" >&6; }
17141 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17142 printf "%s\n" "$dynamic_linker" >&6; }
1645417143 test no = "$dynamic_linker" && can_build_shared=no
1645517144
1645617145 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
1651417203
1651517204
1651617205
16517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16518 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17206 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17207 printf %s "checking how to hardcode library paths into programs... " >&6; }
1651917208 hardcode_action_CXX=
1652017209 if test -n "$hardcode_libdir_flag_spec_CXX" ||
1652117210 test -n "$runpath_var_CXX" ||
1653917228 # directories.
1654017229 hardcode_action_CXX=unsupported
1654117230 fi
16542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
16543 $as_echo "$hardcode_action_CXX" >&6; }
17231 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
17232 printf "%s\n" "$hardcode_action_CXX" >&6; }
1654417233
1654517234 if test relink = "$hardcode_action_CXX" ||
1654617235 test yes = "$inherit_rpath_CXX"; then
1662217311 "
1662317312 #AX_CHECK_COMPILE_FLAG(["-Wc90-c99-compat"],
1662417313 # [my_CFLAGS="$my_CFLAGS -Wc90-c99-compat"])
16625 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__"-Wc99-c11-compat"" | $as_tr_sh`
16626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts \"-Wc99-c11-compat\"" >&5
16627 $as_echo_n "checking whether C compiler accepts \"-Wc99-c11-compat\"... " >&6; }
16628 if eval \${$as_CACHEVAR+:} false; then :
16629 $as_echo_n "(cached) " >&6
16630 else
17314 as_CACHEVAR=`printf "%s\n" "ax_cv_check_cflags__"-Wc99-c11-compat"" | $as_tr_sh`
17315 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts \"-Wc99-c11-compat\"" >&5
17316 printf %s "checking whether C compiler accepts \"-Wc99-c11-compat\"... " >&6; }
17317 if eval test \${$as_CACHEVAR+y}
17318 then :
17319 printf %s "(cached) " >&6
17320 else $as_nop
1663117321
1663217322 ax_check_save_flags=$CFLAGS
1663317323 CFLAGS="$CFLAGS "-Wc99-c11-compat""
1663517325 /* end confdefs.h. */
1663617326
1663717327 int
16638 main ()
17328 main (void)
1663917329 {
1664017330
1664117331 ;
1664217332 return 0;
1664317333 }
1664417334 _ACEOF
16645 if ac_fn_c_try_compile "$LINENO"; then :
17335 if ac_fn_c_try_compile "$LINENO"
17336 then :
1664617337 eval "$as_CACHEVAR=yes"
16647 else
17338 else $as_nop
1664817339 eval "$as_CACHEVAR=no"
1664917340 fi
16650 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17341 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1665117342 CFLAGS=$ax_check_save_flags
1665217343 fi
1665317344 eval ac_res=\$$as_CACHEVAR
16654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16655 $as_echo "$ac_res" >&6; }
16656 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
17345 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17346 printf "%s\n" "$ac_res" >&6; }
17347 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"
17348 then :
1665717349 my_CFLAGS="$my_CFLAGS -Wc99-c11-compat"
16658 else
17350 else $as_nop
1665917351 :
1666017352 fi
1666117353
16662 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__"-Werror=incompatible-pointer-types"" | $as_tr_sh`
16663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts \"-Werror=incompatible-pointer-types\"" >&5
16664 $as_echo_n "checking whether C compiler accepts \"-Werror=incompatible-pointer-types\"... " >&6; }
16665 if eval \${$as_CACHEVAR+:} false; then :
16666 $as_echo_n "(cached) " >&6
16667 else
17354 as_CACHEVAR=`printf "%s\n" "ax_cv_check_cflags__"-Werror=incompatible-pointer-types"" | $as_tr_sh`
17355 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts \"-Werror=incompatible-pointer-types\"" >&5
17356 printf %s "checking whether C compiler accepts \"-Werror=incompatible-pointer-types\"... " >&6; }
17357 if eval test \${$as_CACHEVAR+y}
17358 then :
17359 printf %s "(cached) " >&6
17360 else $as_nop
1666817361
1666917362 ax_check_save_flags=$CFLAGS
1667017363 CFLAGS="$CFLAGS "-Werror=incompatible-pointer-types""
1667217365 /* end confdefs.h. */
1667317366
1667417367 int
16675 main ()
17368 main (void)
1667617369 {
1667717370
1667817371 ;
1667917372 return 0;
1668017373 }
1668117374 _ACEOF
16682 if ac_fn_c_try_compile "$LINENO"; then :
17375 if ac_fn_c_try_compile "$LINENO"
17376 then :
1668317377 eval "$as_CACHEVAR=yes"
16684 else
17378 else $as_nop
1668517379 eval "$as_CACHEVAR=no"
1668617380 fi
16687 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17381 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1668817382 CFLAGS=$ax_check_save_flags
1668917383 fi
1669017384 eval ac_res=\$$as_CACHEVAR
16691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16692 $as_echo "$ac_res" >&6; }
16693 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
17385 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17386 printf "%s\n" "$ac_res" >&6; }
17387 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"
17388 then :
1669417389 my_CFLAGS="$my_CFLAGS -Werror=incompatible-pointer-types"
16695 else
17390 else $as_nop
1669617391 :
1669717392 fi
1669817393
16699 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__"-Werror=int-conversion"" | $as_tr_sh`
16700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts \"-Werror=int-conversion\"" >&5
16701 $as_echo_n "checking whether C compiler accepts \"-Werror=int-conversion\"... " >&6; }
16702 if eval \${$as_CACHEVAR+:} false; then :
16703 $as_echo_n "(cached) " >&6
16704 else
17394 as_CACHEVAR=`printf "%s\n" "ax_cv_check_cflags__"-Werror=int-conversion"" | $as_tr_sh`
17395 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts \"-Werror=int-conversion\"" >&5
17396 printf %s "checking whether C compiler accepts \"-Werror=int-conversion\"... " >&6; }
17397 if eval test \${$as_CACHEVAR+y}
17398 then :
17399 printf %s "(cached) " >&6
17400 else $as_nop
1670517401
1670617402 ax_check_save_flags=$CFLAGS
1670717403 CFLAGS="$CFLAGS "-Werror=int-conversion""
1670917405 /* end confdefs.h. */
1671017406
1671117407 int
16712 main ()
17408 main (void)
1671317409 {
1671417410
1671517411 ;
1671617412 return 0;
1671717413 }
1671817414 _ACEOF
16719 if ac_fn_c_try_compile "$LINENO"; then :
17415 if ac_fn_c_try_compile "$LINENO"
17416 then :
1672017417 eval "$as_CACHEVAR=yes"
16721 else
17418 else $as_nop
1672217419 eval "$as_CACHEVAR=no"
1672317420 fi
16724 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17421 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1672517422 CFLAGS=$ax_check_save_flags
1672617423 fi
1672717424 eval ac_res=\$$as_CACHEVAR
16728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16729 $as_echo "$ac_res" >&6; }
16730 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
17425 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17426 printf "%s\n" "$ac_res" >&6; }
17427 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"
17428 then :
1673117429 my_CFLAGS="$my_CFLAGS -Werror=int-conversion"
16732 else
17430 else $as_nop
1673317431 :
1673417432 fi
1673517433
16736 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__"-Wnull-dereference"" | $as_tr_sh`
16737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts \"-Wnull-dereference\"" >&5
16738 $as_echo_n "checking whether C compiler accepts \"-Wnull-dereference\"... " >&6; }
16739 if eval \${$as_CACHEVAR+:} false; then :
16740 $as_echo_n "(cached) " >&6
16741 else
17434 as_CACHEVAR=`printf "%s\n" "ax_cv_check_cflags__"-Wnull-dereference"" | $as_tr_sh`
17435 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts \"-Wnull-dereference\"" >&5
17436 printf %s "checking whether C compiler accepts \"-Wnull-dereference\"... " >&6; }
17437 if eval test \${$as_CACHEVAR+y}
17438 then :
17439 printf %s "(cached) " >&6
17440 else $as_nop
1674217441
1674317442 ax_check_save_flags=$CFLAGS
1674417443 CFLAGS="$CFLAGS "-Wnull-dereference""
1674617445 /* end confdefs.h. */
1674717446
1674817447 int
16749 main ()
17448 main (void)
1675017449 {
1675117450
1675217451 ;
1675317452 return 0;
1675417453 }
1675517454 _ACEOF
16756 if ac_fn_c_try_compile "$LINENO"; then :
17455 if ac_fn_c_try_compile "$LINENO"
17456 then :
1675717457 eval "$as_CACHEVAR=yes"
16758 else
17458 else $as_nop
1675917459 eval "$as_CACHEVAR=no"
1676017460 fi
16761 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17461 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1676217462 CFLAGS=$ax_check_save_flags
1676317463 fi
1676417464 eval ac_res=\$$as_CACHEVAR
16765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16766 $as_echo "$ac_res" >&6; }
16767 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
17465 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17466 printf "%s\n" "$ac_res" >&6; }
17467 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"
17468 then :
1676817469 my_CFLAGS="$my_CFLAGS -Wnull-dereference"
16769 else
17470 else $as_nop
1677017471 :
1677117472 fi
1677217473
1677617477 do
1677717478 # Extract the first word of "$ac_prog", so it can be a program name with args.
1677817479 set dummy $ac_prog; ac_word=$2
16779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16780 $as_echo_n "checking for $ac_word... " >&6; }
16781 if ${ac_cv_prog_DOXYGEN+:} false; then :
16782 $as_echo_n "(cached) " >&6
16783 else
17480 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17481 printf %s "checking for $ac_word... " >&6; }
17482 if test ${ac_cv_prog_DOXYGEN+y}
17483 then :
17484 printf %s "(cached) " >&6
17485 else $as_nop
1678417486 if test -n "$DOXYGEN"; then
1678517487 ac_cv_prog_DOXYGEN="$DOXYGEN" # Let the user override the test.
1678617488 else
1678817490 for as_dir in $PATH
1678917491 do
1679017492 IFS=$as_save_IFS
16791 test -z "$as_dir" && as_dir=.
17493 case $as_dir in #(((
17494 '') as_dir=./ ;;
17495 */) ;;
17496 *) as_dir=$as_dir/ ;;
17497 esac
1679217498 for ac_exec_ext in '' $ac_executable_extensions; do
16793 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17499 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
1679417500 ac_cv_prog_DOXYGEN="$ac_prog"
16795 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17501 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
1679617502 break 2
1679717503 fi
1679817504 done
1680317509 fi
1680417510 DOXYGEN=$ac_cv_prog_DOXYGEN
1680517511 if test -n "$DOXYGEN"; then
16806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOXYGEN" >&5
16807 $as_echo "$DOXYGEN" >&6; }
17512 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DOXYGEN" >&5
17513 printf "%s\n" "$DOXYGEN" >&6; }
1680817514 else
16809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16810 $as_echo "no" >&6; }
17515 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17516 printf "%s\n" "no" >&6; }
1681117517 fi
1681217518
1681317519
1684117547 if test -n "$ac_tool_prefix"; then
1684217548 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
1684317549 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
16844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16845 $as_echo_n "checking for $ac_word... " >&6; }
16846 if ${ac_cv_path_PKG_CONFIG+:} false; then :
16847 $as_echo_n "(cached) " >&6
16848 else
17550 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17551 printf %s "checking for $ac_word... " >&6; }
17552 if test ${ac_cv_path_PKG_CONFIG+y}
17553 then :
17554 printf %s "(cached) " >&6
17555 else $as_nop
1684917556 case $PKG_CONFIG in
1685017557 [\\/]* | ?:[\\/]*)
1685117558 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
1685517562 for as_dir in $PATH
1685617563 do
1685717564 IFS=$as_save_IFS
16858 test -z "$as_dir" && as_dir=.
17565 case $as_dir in #(((
17566 '') as_dir=./ ;;
17567 */) ;;
17568 *) as_dir=$as_dir/ ;;
17569 esac
1685917570 for ac_exec_ext in '' $ac_executable_extensions; do
16860 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16861 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
16862 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17571 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
17572 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
17573 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
1686317574 break 2
1686417575 fi
1686517576 done
1687117582 fi
1687217583 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
1687317584 if test -n "$PKG_CONFIG"; then
16874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
16875 $as_echo "$PKG_CONFIG" >&6; }
17585 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
17586 printf "%s\n" "$PKG_CONFIG" >&6; }
1687617587 else
16877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16878 $as_echo "no" >&6; }
17588 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17589 printf "%s\n" "no" >&6; }
1687917590 fi
1688017591
1688117592
1688417595 ac_pt_PKG_CONFIG=$PKG_CONFIG
1688517596 # Extract the first word of "pkg-config", so it can be a program name with args.
1688617597 set dummy pkg-config; ac_word=$2
16887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16888 $as_echo_n "checking for $ac_word... " >&6; }
16889 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
16890 $as_echo_n "(cached) " >&6
16891 else
17598 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17599 printf %s "checking for $ac_word... " >&6; }
17600 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
17601 then :
17602 printf %s "(cached) " >&6
17603 else $as_nop
1689217604 case $ac_pt_PKG_CONFIG in
1689317605 [\\/]* | ?:[\\/]*)
1689417606 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
1689817610 for as_dir in $PATH
1689917611 do
1690017612 IFS=$as_save_IFS
16901 test -z "$as_dir" && as_dir=.
17613 case $as_dir in #(((
17614 '') as_dir=./ ;;
17615 */) ;;
17616 *) as_dir=$as_dir/ ;;
17617 esac
1690217618 for ac_exec_ext in '' $ac_executable_extensions; do
16903 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16904 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
16905 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17619 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
17620 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
17621 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
1690617622 break 2
1690717623 fi
1690817624 done
1691417630 fi
1691517631 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
1691617632 if test -n "$ac_pt_PKG_CONFIG"; then
16917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
16918 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
17633 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
17634 printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
1691917635 else
16920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16921 $as_echo "no" >&6; }
17636 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17637 printf "%s\n" "no" >&6; }
1692217638 fi
1692317639
1692417640 if test "x$ac_pt_PKG_CONFIG" = x; then
1692617642 else
1692717643 case $cross_compiling:$ac_tool_warned in
1692817644 yes:)
16929 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16930 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17645 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17646 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
1693117647 ac_tool_warned=yes ;;
1693217648 esac
1693317649 PKG_CONFIG=$ac_pt_PKG_CONFIG
1693917655 fi
1694017656 if test -n "$PKG_CONFIG"; then
1694117657 _pkg_min_version=0.9.0
16942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
16943 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
17658 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
17659 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
1694417660 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
16945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16946 $as_echo "yes" >&6; }
17661 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17662 printf "%s\n" "yes" >&6; }
1694717663 else
16948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16949 $as_echo "no" >&6; }
17664 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17665 printf "%s\n" "no" >&6; }
1695017666 PKG_CONFIG=""
1695117667 fi
1695217668 fi
1695717673
1695817674
1695917675 # Check whether --with-pkgconfigdir was given.
16960 if test "${with_pkgconfigdir+set}" = set; then :
17676 if test ${with_pkgconfigdir+y}
17677 then :
1696117678 withval=$with_pkgconfigdir;
16962 else
17679 else $as_nop
1696317680 with_pkgconfigdir='${prefix}/libdata/pkgconfig'
1696417681 fi
1696517682
1697317690
1697417691
1697517692 # Check whether --with-pkgconfigdir was given.
16976 if test "${with_pkgconfigdir+set}" = set; then :
17693 if test ${with_pkgconfigdir+y}
17694 then :
1697717695 withval=$with_pkgconfigdir;
16978 else
17696 else $as_nop
1697917697 with_pkgconfigdir='${libdir}/pkgconfig'
1698017698 fi
1698117699
1699017708 proto3_supported="no"
1699117709
1699217710 # Check whether --enable-protoc was given.
16993 if test "${enable_protoc+set}" = set; then :
17711 if test ${enable_protoc+y}
17712 then :
1699417713 enableval=$enable_protoc;
1699517714 fi
1699617715
1701517734 if test x$ac_success = xno; then
1701617735 for alternative in ${ax_cxx_compile_alternatives}; do
1701717736 for switch in -std=c++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do
17018 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
17019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
17020 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
17021 if eval \${$cachevar+:} false; then :
17022 $as_echo_n "(cached) " >&6
17023 else
17737 cachevar=`printf "%s\n" "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
17738 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
17739 printf %s "checking whether $CXX supports C++11 features with $switch... " >&6; }
17740 if eval test \${$cachevar+y}
17741 then :
17742 printf %s "(cached) " >&6
17743 else $as_nop
1702417744 ac_save_CXX="$CXX"
1702517745 CXX="$CXX $switch"
1702617746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1731218032
1731318033
1731418034 _ACEOF
17315 if ac_fn_cxx_try_compile "$LINENO"; then :
18035 if ac_fn_cxx_try_compile "$LINENO"
18036 then :
1731618037 eval $cachevar=yes
17317 else
18038 else $as_nop
1731818039 eval $cachevar=no
1731918040 fi
17320 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18041 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1732118042 CXX="$ac_save_CXX"
1732218043 fi
1732318044 eval ac_res=\$$cachevar
17324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17325 $as_echo "$ac_res" >&6; }
18045 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18046 printf "%s\n" "$ac_res" >&6; }
1732618047 if eval test x\$$cachevar = xyes; then
1732718048 CXX="$CXX $switch"
1732818049 if test -n "$CXXCPP" ; then
1735018071 fi
1735118072 if test x$ac_success = xno; then
1735218073 HAVE_CXX11=0
17353 { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5
17354 $as_echo "$as_me: No compiler with C++11 support was found" >&6;}
18074 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5
18075 printf "%s\n" "$as_me: No compiler with C++11 support was found" >&6;}
1735518076 else
1735618077 HAVE_CXX11=1
1735718078
17358 $as_echo "#define HAVE_CXX11 1" >>confdefs.h
18079 printf "%s\n" "#define HAVE_CXX11 1" >>confdefs.h
1735918080
1736018081 fi
1736118082
1736318084
1736418085
1736518086 pkg_failed=no
17366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for protobuf" >&5
17367 $as_echo_n "checking for protobuf... " >&6; }
18087 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for protobuf" >&5
18088 printf %s "checking for protobuf... " >&6; }
1736818089
1736918090 if test -n "$protobuf_CFLAGS"; then
1737018091 pkg_cv_protobuf_CFLAGS="$protobuf_CFLAGS"
1737118092 elif test -n "$PKG_CONFIG"; then
1737218093 if test -n "$PKG_CONFIG" && \
17373 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"protobuf >= 3.0.0\""; } >&5
18094 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"protobuf >= 3.0.0\""; } >&5
1737418095 ($PKG_CONFIG --exists --print-errors "protobuf >= 3.0.0") 2>&5
1737518096 ac_status=$?
17376 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18097 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1737718098 test $ac_status = 0; }; then
1737818099 pkg_cv_protobuf_CFLAGS=`$PKG_CONFIG --cflags "protobuf >= 3.0.0" 2>/dev/null`
1737918100 test "x$?" != "x0" && pkg_failed=yes
1738718108 pkg_cv_protobuf_LIBS="$protobuf_LIBS"
1738818109 elif test -n "$PKG_CONFIG"; then
1738918110 if test -n "$PKG_CONFIG" && \
17390 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"protobuf >= 3.0.0\""; } >&5
18111 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"protobuf >= 3.0.0\""; } >&5
1739118112 ($PKG_CONFIG --exists --print-errors "protobuf >= 3.0.0") 2>&5
1739218113 ac_status=$?
17393 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18114 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1739418115 test $ac_status = 0; }; then
1739518116 pkg_cv_protobuf_LIBS=`$PKG_CONFIG --libs "protobuf >= 3.0.0" 2>/dev/null`
1739618117 test "x$?" != "x0" && pkg_failed=yes
1740418125
1740518126
1740618127 if test $pkg_failed = yes; then
17407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17408 $as_echo "no" >&6; }
18128 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18129 printf "%s\n" "no" >&6; }
1740918130
1741018131 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
1741118132 _pkg_short_errors_supported=yes
1742218143
1742318144
1742418145 pkg_failed=no
17425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for protobuf" >&5
17426 $as_echo_n "checking for protobuf... " >&6; }
18146 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for protobuf" >&5
18147 printf %s "checking for protobuf... " >&6; }
1742718148
1742818149 if test -n "$protobuf_CFLAGS"; then
1742918150 pkg_cv_protobuf_CFLAGS="$protobuf_CFLAGS"
1743018151 elif test -n "$PKG_CONFIG"; then
1743118152 if test -n "$PKG_CONFIG" && \
17432 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"protobuf >= 2.6.0\""; } >&5
18153 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"protobuf >= 2.6.0\""; } >&5
1743318154 ($PKG_CONFIG --exists --print-errors "protobuf >= 2.6.0") 2>&5
1743418155 ac_status=$?
17435 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18156 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1743618157 test $ac_status = 0; }; then
1743718158 pkg_cv_protobuf_CFLAGS=`$PKG_CONFIG --cflags "protobuf >= 2.6.0" 2>/dev/null`
1743818159 test "x$?" != "x0" && pkg_failed=yes
1744618167 pkg_cv_protobuf_LIBS="$protobuf_LIBS"
1744718168 elif test -n "$PKG_CONFIG"; then
1744818169 if test -n "$PKG_CONFIG" && \
17449 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"protobuf >= 2.6.0\""; } >&5
18170 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"protobuf >= 2.6.0\""; } >&5
1745018171 ($PKG_CONFIG --exists --print-errors "protobuf >= 2.6.0") 2>&5
1745118172 ac_status=$?
17452 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18173 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1745318174 test $ac_status = 0; }; then
1745418175 pkg_cv_protobuf_LIBS=`$PKG_CONFIG --libs "protobuf >= 2.6.0" 2>/dev/null`
1745518176 test "x$?" != "x0" && pkg_failed=yes
1746318184
1746418185
1746518186 if test $pkg_failed = yes; then
17466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17467 $as_echo "no" >&6; }
18187 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18188 printf "%s\n" "no" >&6; }
1746818189
1746918190 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
1747018191 _pkg_short_errors_supported=yes
1749018211 and protobuf_LIBS to avoid the need to call pkg-config.
1749118212 See the pkg-config man page for more details." "$LINENO" 5
1749218213 elif test $pkg_failed = untried; then
17493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17494 $as_echo "no" >&6; }
17495 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17496 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18214 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18215 printf "%s\n" "no" >&6; }
18216 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18217 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
1749718218 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
1749818219 is in your PATH or set the PKG_CONFIG environment variable to the full
1749918220 path to pkg-config.
1750718228 else
1750818229 protobuf_CFLAGS=$pkg_cv_protobuf_CFLAGS
1750918230 protobuf_LIBS=$pkg_cv_protobuf_LIBS
17510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17511 $as_echo "yes" >&6; }
18231 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18232 printf "%s\n" "yes" >&6; }
1751218233
1751318234 fi
1751418235
1751518236 elif test $pkg_failed = untried; then
17516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17517 $as_echo "no" >&6; }
18237 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18238 printf "%s\n" "no" >&6; }
1751818239
1751918240 pkg_failed=no
17520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for protobuf" >&5
17521 $as_echo_n "checking for protobuf... " >&6; }
18241 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for protobuf" >&5
18242 printf %s "checking for protobuf... " >&6; }
1752218243
1752318244 if test -n "$protobuf_CFLAGS"; then
1752418245 pkg_cv_protobuf_CFLAGS="$protobuf_CFLAGS"
1752518246 elif test -n "$PKG_CONFIG"; then
1752618247 if test -n "$PKG_CONFIG" && \
17527 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"protobuf >= 2.6.0\""; } >&5
18248 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"protobuf >= 2.6.0\""; } >&5
1752818249 ($PKG_CONFIG --exists --print-errors "protobuf >= 2.6.0") 2>&5
1752918250 ac_status=$?
17530 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18251 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1753118252 test $ac_status = 0; }; then
1753218253 pkg_cv_protobuf_CFLAGS=`$PKG_CONFIG --cflags "protobuf >= 2.6.0" 2>/dev/null`
1753318254 test "x$?" != "x0" && pkg_failed=yes
1754118262 pkg_cv_protobuf_LIBS="$protobuf_LIBS"
1754218263 elif test -n "$PKG_CONFIG"; then
1754318264 if test -n "$PKG_CONFIG" && \
17544 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"protobuf >= 2.6.0\""; } >&5
18265 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"protobuf >= 2.6.0\""; } >&5
1754518266 ($PKG_CONFIG --exists --print-errors "protobuf >= 2.6.0") 2>&5
1754618267 ac_status=$?
17547 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18268 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1754818269 test $ac_status = 0; }; then
1754918270 pkg_cv_protobuf_LIBS=`$PKG_CONFIG --libs "protobuf >= 2.6.0" 2>/dev/null`
1755018271 test "x$?" != "x0" && pkg_failed=yes
1755818279
1755918280
1756018281 if test $pkg_failed = yes; then
17561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17562 $as_echo "no" >&6; }
18282 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18283 printf "%s\n" "no" >&6; }
1756318284
1756418285 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
1756518286 _pkg_short_errors_supported=yes
1758518306 and protobuf_LIBS to avoid the need to call pkg-config.
1758618307 See the pkg-config man page for more details." "$LINENO" 5
1758718308 elif test $pkg_failed = untried; then
17588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17589 $as_echo "no" >&6; }
17590 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17591 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18309 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18310 printf "%s\n" "no" >&6; }
18311 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18312 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
1759218313 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
1759318314 is in your PATH or set the PKG_CONFIG environment variable to the full
1759418315 path to pkg-config.
1760218323 else
1760318324 protobuf_CFLAGS=$pkg_cv_protobuf_CFLAGS
1760418325 protobuf_LIBS=$pkg_cv_protobuf_LIBS
17605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17606 $as_echo "yes" >&6; }
18326 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18327 printf "%s\n" "yes" >&6; }
1760718328
1760818329 fi
1760918330
1761018331 else
1761118332 protobuf_CFLAGS=$pkg_cv_protobuf_CFLAGS
1761218333 protobuf_LIBS=$pkg_cv_protobuf_LIBS
17613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17614 $as_echo "yes" >&6; }
18334 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18335 printf "%s\n" "yes" >&6; }
1761518336 proto3_supported=yes
1761618337 fi
1761718338
1761818339 save_CPPFLAGS="$CPPFLAGS"
1761918340 CPPFLAGS="$save_CPPFLAGS $protobuf_CFLAGS"
17620
17621 for ac_header in google/protobuf/compiler/command_line_interface.h
18341 for ac_header in google/protobuf/compiler/command_line_interface.h
1762218342 do :
17623 ac_fn_cxx_check_header_mongrel "$LINENO" "google/protobuf/compiler/command_line_interface.h" "ac_cv_header_google_protobuf_compiler_command_line_interface_h" "$ac_includes_default"
17624 if test "x$ac_cv_header_google_protobuf_compiler_command_line_interface_h" = xyes; then :
17625 cat >>confdefs.h <<_ACEOF
17626 #define HAVE_GOOGLE_PROTOBUF_COMPILER_COMMAND_LINE_INTERFACE_H 1
17627 _ACEOF
17628
17629 else
18343 ac_fn_cxx_check_header_compile "$LINENO" "google/protobuf/compiler/command_line_interface.h" "ac_cv_header_google_protobuf_compiler_command_line_interface_h" "$ac_includes_default"
18344 if test "x$ac_cv_header_google_protobuf_compiler_command_line_interface_h" = xyes
18345 then :
18346 printf "%s\n" "#define HAVE_GOOGLE_PROTOBUF_COMPILER_COMMAND_LINE_INTERFACE_H 1" >>confdefs.h
18347
18348 else $as_nop
1763018349 as_fn_error $? "required protobuf header file not found" "$LINENO" 5
1763118350 fi
1763218351
1763318352 done
17634
1763518353 CPPFLAGS="$save_CPPFLAGS"
1763618354
1763718355
1763818356 # Extract the first word of "protoc", so it can be a program name with args.
1763918357 set dummy protoc; ac_word=$2
17640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17641 $as_echo_n "checking for $ac_word... " >&6; }
17642 if ${ac_cv_path_PROTOC+:} false; then :
17643 $as_echo_n "(cached) " >&6
17644 else
18358 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18359 printf %s "checking for $ac_word... " >&6; }
18360 if test ${ac_cv_path_PROTOC+y}
18361 then :
18362 printf %s "(cached) " >&6
18363 else $as_nop
1764518364 case $PROTOC in
1764618365 [\\/]* | ?:[\\/]*)
1764718366 ac_cv_path_PROTOC="$PROTOC" # Let the user override the test with a path.
1765218371 for as_dir in $as_dummy
1765318372 do
1765418373 IFS=$as_save_IFS
17655 test -z "$as_dir" && as_dir=.
18374 case $as_dir in #(((
18375 '') as_dir=./ ;;
18376 */) ;;
18377 *) as_dir=$as_dir/ ;;
18378 esac
1765618379 for ac_exec_ext in '' $ac_executable_extensions; do
17657 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17658 ac_cv_path_PROTOC="$as_dir/$ac_word$ac_exec_ext"
17659 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18380 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
18381 ac_cv_path_PROTOC="$as_dir$ac_word$ac_exec_ext"
18382 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
1766018383 break 2
1766118384 fi
1766218385 done
1766818391 fi
1766918392 PROTOC=$ac_cv_path_PROTOC
1767018393 if test -n "$PROTOC"; then
17671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROTOC" >&5
17672 $as_echo "$PROTOC" >&6; }
18394 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PROTOC" >&5
18395 printf "%s\n" "$PROTOC" >&6; }
1767318396 else
17674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17675 $as_echo "no" >&6; }
18397 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18398 printf "%s\n" "no" >&6; }
1767618399 fi
1767718400
1767818401
1771318436
1771418437 if test -z "$BUILD_PROTO3_TRUE"; then :
1771518438
17716 $as_echo "#define HAVE_PROTO3 1" >>confdefs.h
18439 printf "%s\n" "#define HAVE_PROTO3 1" >>confdefs.h
1771718440
1771818441 fi
1771918442
1772018443
1772118444 # Check whether --enable-ld-version-script was given.
17722 if test "${enable_ld_version_script+set}" = set; then :
18445 if test ${enable_ld_version_script+y}
18446 then :
1772318447 enableval=$enable_ld_version_script; have_ld_version_script=$enableval
1772418448 fi
1772518449
1772618450 if test -z "$have_ld_version_script"; then
17727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LD -Wl,--version-script works" >&5
17728 $as_echo_n "checking if LD -Wl,--version-script works... " >&6; }
18451 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if LD -Wl,--version-script works" >&5
18452 printf %s "checking if LD -Wl,--version-script works... " >&6; }
1772918453 save_LDFLAGS="$LDFLAGS"
1773018454 LDFLAGS="$LDFLAGS -Wl,--version-script=conftest.map"
1773118455 cat > conftest.map <<EOF
1773518459 /* end confdefs.h. */
1773618460
1773718461 int
17738 main ()
18462 main (void)
1773918463 {
1774018464
1774118465 ;
1774218466 return 0;
1774318467 }
1774418468 _ACEOF
17745 if ac_fn_cxx_try_link "$LINENO"; then :
18469 if ac_fn_cxx_try_link "$LINENO"
18470 then :
1774618471 accepts_syntax_errors=yes
17747 else
18472 else $as_nop
1774818473 accepts_syntax_errors=no
1774918474 fi
17750 rm -f core conftest.err conftest.$ac_objext \
18475 rm -f core conftest.err conftest.$ac_objext conftest.beam \
1775118476 conftest$ac_exeext conftest.$ac_ext
1775218477 if test "$accepts_syntax_errors" = no; then
1775318478 cat > conftest.map <<EOF
1776318488 /* end confdefs.h. */
1776418489
1776518490 int
17766 main ()
18491 main (void)
1776718492 {
1776818493
1776918494 ;
1777018495 return 0;
1777118496 }
1777218497 _ACEOF
17773 if ac_fn_cxx_try_link "$LINENO"; then :
18498 if ac_fn_cxx_try_link "$LINENO"
18499 then :
1777418500 have_ld_version_script=yes
17775 else
18501 else $as_nop
1777618502 have_ld_version_script=no
1777718503 fi
17778 rm -f core conftest.err conftest.$ac_objext \
18504 rm -f core conftest.err conftest.$ac_objext conftest.beam \
1777918505 conftest$ac_exeext conftest.$ac_ext
1778018506 else
1778118507 have_ld_version_script=no
1778218508 fi
1778318509 rm -f conftest.map
1778418510 LDFLAGS="$save_LDFLAGS"
17785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_ld_version_script" >&5
17786 $as_echo "$have_ld_version_script" >&6; }
18511 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_ld_version_script" >&5
18512 printf "%s\n" "$have_ld_version_script" >&6; }
1778718513 fi
1778818514 if test "$have_ld_version_script" = "yes"; then
1778918515 HAVE_LD_VERSION_SCRIPT_TRUE=
1779718523
1779818524
1779918525 # Check whether --enable-valgrind-tests was given.
17800 if test "${enable_valgrind_tests+set}" = set; then :
18526 if test ${enable_valgrind_tests+y}
18527 then :
1780118528 enableval=$enable_valgrind_tests; opt_valgrind_tests=$enableval
17802 else
18529 else $as_nop
1780318530 opt_valgrind_tests=no
1780418531 fi
1780518532
1781018537 do
1781118538 # Extract the first word of "$ac_prog", so it can be a program name with args.
1781218539 set dummy $ac_prog; ac_word=$2
17813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17814 $as_echo_n "checking for $ac_word... " >&6; }
17815 if ${ac_cv_prog_VALGRIND+:} false; then :
17816 $as_echo_n "(cached) " >&6
17817 else
18540 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18541 printf %s "checking for $ac_word... " >&6; }
18542 if test ${ac_cv_prog_VALGRIND+y}
18543 then :
18544 printf %s "(cached) " >&6
18545 else $as_nop
1781818546 if test -n "$VALGRIND"; then
1781918547 ac_cv_prog_VALGRIND="$VALGRIND" # Let the user override the test.
1782018548 else
1782218550 for as_dir in $PATH
1782318551 do
1782418552 IFS=$as_save_IFS
17825 test -z "$as_dir" && as_dir=.
18553 case $as_dir in #(((
18554 '') as_dir=./ ;;
18555 */) ;;
18556 *) as_dir=$as_dir/ ;;
18557 esac
1782618558 for ac_exec_ext in '' $ac_executable_extensions; do
17827 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18559 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
1782818560 ac_cv_prog_VALGRIND="$ac_prog"
17829 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18561 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
1783018562 break 2
1783118563 fi
1783218564 done
1783718569 fi
1783818570 VALGRIND=$ac_cv_prog_VALGRIND
1783918571 if test -n "$VALGRIND"; then
17840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VALGRIND" >&5
17841 $as_echo "$VALGRIND" >&6; }
18572 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $VALGRIND" >&5
18573 printf "%s\n" "$VALGRIND" >&6; }
1784218574 else
17843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17844 $as_echo "no" >&6; }
18575 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18576 printf "%s\n" "no" >&6; }
1784518577 fi
1784618578
1784718579
1785918591 VALGRIND=
1786018592 fi
1786118593
17862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether self tests are run under valgrind" >&5
17863 $as_echo_n "checking whether self tests are run under valgrind... " >&6; }
17864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $opt_valgrind_tests" >&5
17865 $as_echo "$opt_valgrind_tests" >&6; }
17866
17867
17868
17869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with code coverage support" >&5
17870 $as_echo_n "checking whether to build with code coverage support... " >&6; }
18594 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether self tests are run under valgrind" >&5
18595 printf %s "checking whether self tests are run under valgrind... " >&6; }
18596 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $opt_valgrind_tests" >&5
18597 printf "%s\n" "$opt_valgrind_tests" >&6; }
18598
18599
18600
18601 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build with code coverage support" >&5
18602 printf %s "checking whether to build with code coverage support... " >&6; }
1787118603 # Check whether --enable-code-coverage was given.
17872 if test "${enable_code_coverage+set}" = set; then :
18604 if test ${enable_code_coverage+y}
18605 then :
1787318606 enableval=$enable_code_coverage;
17874 else
18607 else $as_nop
1787518608 enable_code_coverage=no
1787618609 fi
1787718610
1788518618
1788618619 CODE_COVERAGE_ENABLED=$enable_code_coverage
1788718620
17888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_code_coverage" >&5
17889 $as_echo "$enable_code_coverage" >&6; }
17890
17891 if test "$enable_code_coverage" = "yes" ; then :
17892
17893 if test "$GCC" = "no" ; then :
18621 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_code_coverage" >&5
18622 printf "%s\n" "$enable_code_coverage" >&6; }
18623
18624 if test "$enable_code_coverage" = "yes"
18625 then :
18626
18627 if test "$GCC" = "no"
18628 then :
1789418629
1789518630 as_fn_error $? "not compiling with gcc, which is required for gcov code coverage" "$LINENO" 5
1789618631
1789818633
1789918634 # Extract the first word of "lcov", so it can be a program name with args.
1790018635 set dummy lcov; ac_word=$2
17901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17902 $as_echo_n "checking for $ac_word... " >&6; }
17903 if ${ac_cv_prog_LCOV+:} false; then :
17904 $as_echo_n "(cached) " >&6
17905 else
18636 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18637 printf %s "checking for $ac_word... " >&6; }
18638 if test ${ac_cv_prog_LCOV+y}
18639 then :
18640 printf %s "(cached) " >&6
18641 else $as_nop
1790618642 if test -n "$LCOV"; then
1790718643 ac_cv_prog_LCOV="$LCOV" # Let the user override the test.
1790818644 else
1791018646 for as_dir in $PATH
1791118647 do
1791218648 IFS=$as_save_IFS
17913 test -z "$as_dir" && as_dir=.
18649 case $as_dir in #(((
18650 '') as_dir=./ ;;
18651 */) ;;
18652 *) as_dir=$as_dir/ ;;
18653 esac
1791418654 for ac_exec_ext in '' $ac_executable_extensions; do
17915 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18655 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
1791618656 ac_cv_prog_LCOV="lcov"
17917 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18657 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
1791818658 break 2
1791918659 fi
1792018660 done
1792518665 fi
1792618666 LCOV=$ac_cv_prog_LCOV
1792718667 if test -n "$LCOV"; then
17928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LCOV" >&5
17929 $as_echo "$LCOV" >&6; }
18668 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LCOV" >&5
18669 printf "%s\n" "$LCOV" >&6; }
1793018670 else
17931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17932 $as_echo "no" >&6; }
18671 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18672 printf "%s\n" "no" >&6; }
1793318673 fi
1793418674
1793518675
1793618676 # Extract the first word of "genhtml", so it can be a program name with args.
1793718677 set dummy genhtml; ac_word=$2
17938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17939 $as_echo_n "checking for $ac_word... " >&6; }
17940 if ${ac_cv_prog_GENHTML+:} false; then :
17941 $as_echo_n "(cached) " >&6
17942 else
18678 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18679 printf %s "checking for $ac_word... " >&6; }
18680 if test ${ac_cv_prog_GENHTML+y}
18681 then :
18682 printf %s "(cached) " >&6
18683 else $as_nop
1794318684 if test -n "$GENHTML"; then
1794418685 ac_cv_prog_GENHTML="$GENHTML" # Let the user override the test.
1794518686 else
1794718688 for as_dir in $PATH
1794818689 do
1794918690 IFS=$as_save_IFS
17950 test -z "$as_dir" && as_dir=.
18691 case $as_dir in #(((
18692 '') as_dir=./ ;;
18693 */) ;;
18694 *) as_dir=$as_dir/ ;;
18695 esac
1795118696 for ac_exec_ext in '' $ac_executable_extensions; do
17952 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18697 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
1795318698 ac_cv_prog_GENHTML="genhtml"
17954 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18699 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
1795518700 break 2
1795618701 fi
1795718702 done
1796218707 fi
1796318708 GENHTML=$ac_cv_prog_GENHTML
1796418709 if test -n "$GENHTML"; then
17965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GENHTML" >&5
17966 $as_echo "$GENHTML" >&6; }
18710 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GENHTML" >&5
18711 printf "%s\n" "$GENHTML" >&6; }
1796718712 else
17968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17969 $as_echo "no" >&6; }
17970 fi
17971
17972
17973
17974 if test -z "$LCOV" ; then :
18713 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18714 printf "%s\n" "no" >&6; }
18715 fi
18716
18717
18718
18719 if test -z "$LCOV"
18720 then :
1797518721
1797618722 as_fn_error $? "The lcov program was not found. Please install lcov!" "$LINENO" 5
1797718723
1797818724 fi
1797918725
17980 if test -z "$GENHTML" ; then :
18726 if test -z "$GENHTML"
18727 then :
1798118728
1798218729 as_fn_error $? "The genhtml program was not found. Please install lcov!" "$LINENO" 5
1798318730
1807418821
1807518822
1807618823
18077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
18078 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
18079 if ${ac_cv_c_bigendian+:} false; then :
18080 $as_echo_n "(cached) " >&6
18081 else
18824 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
18825 printf %s "checking whether byte ordering is bigendian... " >&6; }
18826 if test ${ac_cv_c_bigendian+y}
18827 then :
18828 printf %s "(cached) " >&6
18829 else $as_nop
1808218830 ac_cv_c_bigendian=unknown
1808318831 # See if we're dealing with a universal compiler.
1808418832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1808918837 typedef int dummy;
1809018838
1809118839 _ACEOF
18092 if ac_fn_cxx_try_compile "$LINENO"; then :
18840 if ac_fn_cxx_try_compile "$LINENO"
18841 then :
1809318842
1809418843 # Check for potential -arch flags. It is not universal unless
1809518844 # there are at least two -arch flags with different values.
1811318862 fi
1811418863 done
1811518864 fi
18116 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18865 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1811718866 if test $ac_cv_c_bigendian = unknown; then
1811818867 # See if sys/param.h defines the BYTE_ORDER macro.
1811918868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1812218871 #include <sys/param.h>
1812318872
1812418873 int
18125 main ()
18874 main (void)
1812618875 {
1812718876 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
1812818877 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
1813418883 return 0;
1813518884 }
1813618885 _ACEOF
18137 if ac_fn_cxx_try_compile "$LINENO"; then :
18886 if ac_fn_cxx_try_compile "$LINENO"
18887 then :
1813818888 # It does; now see whether it defined to BIG_ENDIAN or not.
1813918889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1814018890 /* end confdefs.h. */
1814218892 #include <sys/param.h>
1814318893
1814418894 int
18145 main ()
18895 main (void)
1814618896 {
1814718897 #if BYTE_ORDER != BIG_ENDIAN
1814818898 not big endian
1815218902 return 0;
1815318903 }
1815418904 _ACEOF
18155 if ac_fn_cxx_try_compile "$LINENO"; then :
18905 if ac_fn_cxx_try_compile "$LINENO"
18906 then :
1815618907 ac_cv_c_bigendian=yes
18157 else
18908 else $as_nop
1815818909 ac_cv_c_bigendian=no
1815918910 fi
18160 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18161 fi
18162 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18911 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18912 fi
18913 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1816318914 fi
1816418915 if test $ac_cv_c_bigendian = unknown; then
1816518916 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
1816818919 #include <limits.h>
1816918920
1817018921 int
18171 main ()
18922 main (void)
1817218923 {
1817318924 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
1817418925 bogus endian macros
1817818929 return 0;
1817918930 }
1818018931 _ACEOF
18181 if ac_fn_cxx_try_compile "$LINENO"; then :
18932 if ac_fn_cxx_try_compile "$LINENO"
18933 then :
1818218934 # It does; now see whether it defined to _BIG_ENDIAN or not.
1818318935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1818418936 /* end confdefs.h. */
1818518937 #include <limits.h>
1818618938
1818718939 int
18188 main ()
18940 main (void)
1818918941 {
1819018942 #ifndef _BIG_ENDIAN
1819118943 not big endian
1819518947 return 0;
1819618948 }
1819718949 _ACEOF
18198 if ac_fn_cxx_try_compile "$LINENO"; then :
18950 if ac_fn_cxx_try_compile "$LINENO"
18951 then :
1819918952 ac_cv_c_bigendian=yes
18200 else
18953 else $as_nop
1820118954 ac_cv_c_bigendian=no
1820218955 fi
18203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18204 fi
18205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18956 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18957 fi
18958 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1820618959 fi
1820718960 if test $ac_cv_c_bigendian = unknown; then
1820818961 # Compile a test program.
18209 if test "$cross_compiling" = yes; then :
18962 if test "$cross_compiling" = yes
18963 then :
1821018964 # Try to guess by grepping values from an object file.
1821118965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1821218966 /* end confdefs.h. */
18213 short int ascii_mm[] =
18967 unsigned short int ascii_mm[] =
1821418968 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
18215 short int ascii_ii[] =
18969 unsigned short int ascii_ii[] =
1821618970 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
1821718971 int use_ascii (int i) {
1821818972 return ascii_mm[i] + ascii_ii[i];
1821918973 }
18220 short int ebcdic_ii[] =
18974 unsigned short int ebcdic_ii[] =
1822118975 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
18222 short int ebcdic_mm[] =
18976 unsigned short int ebcdic_mm[] =
1822318977 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
1822418978 int use_ebcdic (int i) {
1822518979 return ebcdic_mm[i] + ebcdic_ii[i];
1822718981 extern int foo;
1822818982
1822918983 int
18230 main ()
18984 main (void)
1823118985 {
1823218986 return use_ascii (foo) == use_ebcdic (foo);
1823318987 ;
1823418988 return 0;
1823518989 }
1823618990 _ACEOF
18237 if ac_fn_cxx_try_compile "$LINENO"; then :
18991 if ac_fn_cxx_try_compile "$LINENO"
18992 then :
1823818993 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
1823918994 ac_cv_c_bigendian=yes
1824018995 fi
1824719002 fi
1824819003 fi
1824919004 fi
18250 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18251 else
19005 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19006 else $as_nop
1825219007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1825319008 /* end confdefs.h. */
1825419009 $ac_includes_default
1825519010 int
18256 main ()
19011 main (void)
1825719012 {
1825819013
1825919014 /* Are we little or big endian? From Harbison&Steele. */
1826919024 return 0;
1827019025 }
1827119026 _ACEOF
18272 if ac_fn_cxx_try_run "$LINENO"; then :
19027 if ac_fn_cxx_try_run "$LINENO"
19028 then :
1827319029 ac_cv_c_bigendian=no
18274 else
19030 else $as_nop
1827519031 ac_cv_c_bigendian=yes
1827619032 fi
1827719033 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
1828019036
1828119037 fi
1828219038 fi
18283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
18284 $as_echo "$ac_cv_c_bigendian" >&6; }
19039 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
19040 printf "%s\n" "$ac_cv_c_bigendian" >&6; }
1828519041 case $ac_cv_c_bigendian in #(
1828619042 yes)
18287 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
19043 printf "%s\n" "#define WORDS_BIGENDIAN 1" >>confdefs.h
1828819044 ;; #(
1828919045 no)
1829019046 ;; #(
1829119047 universal)
1829219048
18293 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
19049 printf "%s\n" "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
1829419050
1829519051 ;; #(
1829619052 *)
1832619082 case $ac_val in #(
1832719083 *${as_nl}*)
1832819084 case $ac_var in #(
18329 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
18330 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
19085 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
19086 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1833119087 esac
1833219088 case $ac_var in #(
1833319089 _ | IFS | as_nl) ;; #(
1835719113 /^ac_cv_env_/b end
1835819114 t clear
1835919115 :clear
18360 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19116 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
1836119117 t end
1836219118 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
1836319119 :end' >>confcache
1836419120 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
1836519121 if test -w "$cache_file"; then
1836619122 if test "x$cache_file" != "x/dev/null"; then
18367 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
18368 $as_echo "$as_me: updating cache $cache_file" >&6;}
19123 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
19124 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
1836919125 if test ! -f "$cache_file" || test -h "$cache_file"; then
1837019126 cat confcache >"$cache_file"
1837119127 else
1837919135 fi
1838019136 fi
1838119137 else
18382 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
18383 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
19138 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
19139 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
1838419140 fi
1838519141 fi
1838619142 rm -f confcache
1839719153 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
1839819154 # 1. Remove the extension, and $U if already installed.
1839919155 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18400 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
19156 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
1840119157 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
1840219158 # will be set to the directory where LIBOBJS objects are built.
1840319159 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
1840819164 LTLIBOBJS=$ac_ltlibobjs
1840919165
1841019166
18411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
18412 $as_echo_n "checking that generated files are newer than configure... " >&6; }
19167 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
19168 printf %s "checking that generated files are newer than configure... " >&6; }
1841319169 if test -n "$am_sleep_pid"; then
1841419170 # Hide warnings about reused PIDs.
1841519171 wait $am_sleep_pid 2>/dev/null
1841619172 fi
18417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
18418 $as_echo "done" >&6; }
19173 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
19174 printf "%s\n" "done" >&6; }
1841919175 if test -n "$EXEEXT"; then
1842019176 am__EXEEXT_TRUE=
1842119177 am__EXEEXT_FALSE='#'
1846619222 ac_write_fail=0
1846719223 ac_clean_files_save=$ac_clean_files
1846819224 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18469 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
18470 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
19225 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
19226 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
1847119227 as_write_fail=0
1847219228 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
1847319229 #! $SHELL
1849019246
1849119247 # Be more Bourne compatible
1849219248 DUALCASE=1; export DUALCASE # for MKS sh
18493 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
19249 as_nop=:
19250 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
19251 then :
1849419252 emulate sh
1849519253 NULLCMD=:
1849619254 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
1849719255 # is contrary to our usage. Disable this feature.
1849819256 alias -g '${1+"$@"}'='"$@"'
1849919257 setopt NO_GLOB_SUBST
18500 else
19258 else $as_nop
1850119259 case `(set -o) 2>/dev/null` in #(
1850219260 *posix*) :
1850319261 set -o posix ;; #(
1850719265 fi
1850819266
1850919267
19268
19269 # Reset variables that may have inherited troublesome values from
19270 # the environment.
19271
19272 # IFS needs to be set, to space, tab, and newline, in precisely that order.
19273 # (If _AS_PATH_WALK were called with IFS unset, it would have the
19274 # side effect of setting IFS to empty, thus disabling word splitting.)
19275 # Quoting is to prevent editors from complaining about space-tab.
1851019276 as_nl='
1851119277 '
1851219278 export as_nl
18513 # Printing a long string crashes Solaris 7 /usr/bin/printf.
18514 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
18515 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
18516 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
18517 # Prefer a ksh shell builtin over an external printf program on Solaris,
18518 # but without wasting forks for bash or zsh.
18519 if test -z "$BASH_VERSION$ZSH_VERSION" \
18520 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
18521 as_echo='print -r --'
18522 as_echo_n='print -rn --'
18523 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
18524 as_echo='printf %s\n'
18525 as_echo_n='printf %s'
18526 else
18527 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
18528 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
18529 as_echo_n='/usr/ucb/echo -n'
18530 else
18531 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
18532 as_echo_n_body='eval
18533 arg=$1;
18534 case $arg in #(
18535 *"$as_nl"*)
18536 expr "X$arg" : "X\\(.*\\)$as_nl";
18537 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
18538 esac;
18539 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
18540 '
18541 export as_echo_n_body
18542 as_echo_n='sh -c $as_echo_n_body as_echo'
18543 fi
18544 export as_echo_body
18545 as_echo='sh -c $as_echo_body as_echo'
18546 fi
19279 IFS=" "" $as_nl"
19280
19281 PS1='$ '
19282 PS2='> '
19283 PS4='+ '
19284
19285 # Ensure predictable behavior from utilities with locale-dependent output.
19286 LC_ALL=C
19287 export LC_ALL
19288 LANGUAGE=C
19289 export LANGUAGE
19290
19291 # We cannot yet rely on "unset" to work, but we need these variables
19292 # to be unset--not just set to an empty or harmless value--now, to
19293 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
19294 # also avoids known problems related to "unset" and subshell syntax
19295 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
19296 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
19297 do eval test \${$as_var+y} \
19298 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
19299 done
19300
19301 # Ensure that fds 0, 1, and 2 are open.
19302 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
19303 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
19304 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
1854719305
1854819306 # The user is always right.
18549 if test "${PATH_SEPARATOR+set}" != set; then
19307 if ${PATH_SEPARATOR+false} :; then
1855019308 PATH_SEPARATOR=:
1855119309 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
1855219310 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
1855419312 }
1855519313 fi
1855619314
18557
18558 # IFS
18559 # We need space, tab and new line, in precisely that order. Quoting is
18560 # there to prevent editors from complaining about space-tab.
18561 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
18562 # splitting by setting IFS to empty value.)
18563 IFS=" "" $as_nl"
1856419315
1856519316 # Find who we are. Look in the path if we contain no directory separator.
1856619317 as_myself=
1857019321 for as_dir in $PATH
1857119322 do
1857219323 IFS=$as_save_IFS
18573 test -z "$as_dir" && as_dir=.
18574 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19324 case $as_dir in #(((
19325 '') as_dir=./ ;;
19326 */) ;;
19327 *) as_dir=$as_dir/ ;;
19328 esac
19329 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
1857519330 done
1857619331 IFS=$as_save_IFS
1857719332
1858319338 as_myself=$0
1858419339 fi
1858519340 if test ! -f "$as_myself"; then
18586 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
19341 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
1858719342 exit 1
1858819343 fi
1858919344
18590 # Unset variables that we do not need and which cause bugs (e.g. in
18591 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
18592 # suppresses any "Segmentation fault" message there. '((' could
18593 # trigger a bug in pdksh 5.2.14.
18594 for as_var in BASH_ENV ENV MAIL MAILPATH
18595 do eval test x\${$as_var+set} = xset \
18596 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
18597 done
18598 PS1='$ '
18599 PS2='> '
18600 PS4='+ '
18601
18602 # NLS nuisances.
18603 LC_ALL=C
18604 export LC_ALL
18605 LANGUAGE=C
18606 export LANGUAGE
18607
18608 # CDPATH.
18609 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
1861019345
1861119346
1861219347 # as_fn_error STATUS ERROR [LINENO LOG_FD]
1861919354 as_status=$1; test $as_status -eq 0 && as_status=1
1862019355 if test "$4"; then
1862119356 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
18622 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
19357 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
1862319358 fi
18624 $as_echo "$as_me: error: $2" >&2
19359 printf "%s\n" "$as_me: error: $2" >&2
1862519360 as_fn_exit $as_status
1862619361 } # as_fn_error
19362
1862719363
1862819364
1862919365 # as_fn_set_status STATUS
1865219388 { eval $1=; unset $1;}
1865319389 }
1865419390 as_unset=as_fn_unset
19391
1865519392 # as_fn_append VAR VALUE
1865619393 # ----------------------
1865719394 # Append the text in VALUE to the end of the definition contained in VAR. Take
1865819395 # advantage of any shell optimizations that allow amortized linear growth over
1865919396 # repeated appends, instead of the typical quadratic growth present in naive
1866019397 # implementations.
18661 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
19398 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
19399 then :
1866219400 eval 'as_fn_append ()
1866319401 {
1866419402 eval $1+=\$2
1866519403 }'
18666 else
19404 else $as_nop
1866719405 as_fn_append ()
1866819406 {
1866919407 eval $1=\$$1\$2
1867519413 # Perform arithmetic evaluation on the ARGs, and store the result in the
1867619414 # global $as_val. Take advantage of shells that can avoid forks. The arguments
1867719415 # must be portable across $(()) and expr.
18678 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
19416 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
19417 then :
1867919418 eval 'as_fn_arith ()
1868019419 {
1868119420 as_val=$(( $* ))
1868219421 }'
18683 else
19422 else $as_nop
1868419423 as_fn_arith ()
1868519424 {
1868619425 as_val=`expr "$@" || test $? -eq 1`
1871119450 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
1871219451 X"$0" : 'X\(//\)$' \| \
1871319452 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18714 $as_echo X/"$0" |
19453 printf "%s\n" X/"$0" |
1871519454 sed '/^.*\/\([^/][^/]*\)\/*$/{
1871619455 s//\1/
1871719456 q
1873319472 as_cr_digits='0123456789'
1873419473 as_cr_alnum=$as_cr_Letters$as_cr_digits
1873519474
19475
19476 # Determine whether it's possible to make 'echo' print without a newline.
19477 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
19478 # for compatibility with existing Makefiles.
1873619479 ECHO_C= ECHO_N= ECHO_T=
1873719480 case `echo -n x` in #(((((
1873819481 -n*)
1874519488 *)
1874619489 ECHO_N='-n';;
1874719490 esac
19491
19492 # For backward compatibility with old third-party macros, we provide
19493 # the shell variables $as_echo and $as_echo_n. New code should use
19494 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
19495 as_echo='printf %s\n'
19496 as_echo_n='printf %s'
1874819497
1874919498 rm -f conf$$ conf$$.exe conf$$.file
1875019499 if test -d conf$$.dir; then
1878719536 as_dirs=
1878819537 while :; do
1878919538 case $as_dir in #(
18790 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19539 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
1879119540 *) as_qdir=$as_dir;;
1879219541 esac
1879319542 as_dirs="'$as_qdir' $as_dirs"
1879619545 X"$as_dir" : 'X\(//\)[^/]' \| \
1879719546 X"$as_dir" : 'X\(//\)$' \| \
1879819547 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18799 $as_echo X"$as_dir" |
19548 printf "%s\n" X"$as_dir" |
1880019549 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1880119550 s//\1/
1880219551 q
1885819607 # report actual input values of CONFIG_FILES etc. instead of their
1885919608 # values after options handling.
1886019609 ac_log="
18861 This file was extended by protobuf-c $as_me 1.3.3, which was
18862 generated by GNU Autoconf 2.69. Invocation command line was
19610 This file was extended by protobuf-c $as_me 1.4.0, which was
19611 generated by GNU Autoconf 2.71. Invocation command line was
1886319612
1886419613 CONFIG_FILES = $CONFIG_FILES
1886519614 CONFIG_HEADERS = $CONFIG_HEADERS
1892219671 protobuf-c home page: <https://github.com/protobuf-c/protobuf-c>."
1892319672
1892419673 _ACEOF
19674 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
19675 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
1892519676 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18926 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
19677 ac_cs_config='$ac_cs_config_escaped'
1892719678 ac_cs_version="\\
18928 protobuf-c config.status 1.3.3
18929 configured by $0, generated by GNU Autoconf 2.69,
19679 protobuf-c config.status 1.4.0
19680 configured by $0, generated by GNU Autoconf 2.71,
1893019681 with options \\"\$ac_cs_config\\"
1893119682
18932 Copyright (C) 2012 Free Software Foundation, Inc.
19683 Copyright (C) 2021 Free Software Foundation, Inc.
1893319684 This config.status script is free software; the Free Software Foundation
1893419685 gives unlimited permission to copy, distribute and modify it."
1893519686
1896919720 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1897019721 ac_cs_recheck=: ;;
1897119722 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
18972 $as_echo "$ac_cs_version"; exit ;;
19723 printf "%s\n" "$ac_cs_version"; exit ;;
1897319724 --config | --confi | --conf | --con | --co | --c )
18974 $as_echo "$ac_cs_config"; exit ;;
19725 printf "%s\n" "$ac_cs_config"; exit ;;
1897519726 --debug | --debu | --deb | --de | --d | -d )
1897619727 debug=: ;;
1897719728 --file | --fil | --fi | --f )
1897819729 $ac_shift
1897919730 case $ac_optarg in
18980 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19731 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
1898119732 '') as_fn_error $? "missing file argument" ;;
1898219733 esac
1898319734 as_fn_append CONFIG_FILES " '$ac_optarg'"
1898519736 --header | --heade | --head | --hea )
1898619737 $ac_shift
1898719738 case $ac_optarg in
18988 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19739 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
1898919740 esac
1899019741 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
1899119742 ac_need_defaults=false;;
1899419745 as_fn_error $? "ambiguous option: \`$1'
1899519746 Try \`$0 --help' for more information.";;
1899619747 --help | --hel | -h )
18997 $as_echo "$ac_cs_usage"; exit ;;
19748 printf "%s\n" "$ac_cs_usage"; exit ;;
1899819749 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1899919750 | -silent | --silent | --silen | --sile | --sil | --si | --s)
1900019751 ac_cs_silent=: ;;
1902219773 if \$ac_cs_recheck; then
1902319774 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
1902419775 shift
19025 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
19776 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
1902619777 CONFIG_SHELL='$SHELL'
1902719778 export CONFIG_SHELL
1902819779 exec "\$@"
1903619787 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
1903719788 ## Running $as_me. ##
1903819789 _ASBOX
19039 $as_echo "$ac_log"
19790 printf "%s\n" "$ac_log"
1904019791 } >&5
1904119792
1904219793 _ACEOF
1908819839 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
1908919840 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
1909019841 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
19842 FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`'
1909119843 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
1909219844 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
1909319845 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
1909619848 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
1909719849 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
1909819850 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
19851 lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`'
1909919852 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
1910019853 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
1910119854 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
1927020023 lt_SP2NL \
1927120024 lt_NL2SP \
1927220025 reload_flag \
20026 FILECMD \
1927320027 OBJDUMP \
1927420028 deplibs_check_method \
1927520029 file_magic_cmd \
1927820032 DLLTOOL \
1927920033 sharedlib_from_linklib_cmd \
1928020034 AR \
19281 AR_FLAGS \
1928220035 archiver_list_spec \
1928320036 STRIP \
1928420037 RANLIB \
1945220205 # We use the long form for the default assignment because of an extremely
1945320206 # bizarre bug on SunOS 4.1.3.
1945420207 if $ac_need_defaults; then
19455 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19456 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19457 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20208 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
20209 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
20210 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
1945820211 fi
1945920212
1946020213 # Have a temporary directory for convenience. Make it in the build tree
1979020543 esac ||
1979120544 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
1979220545 esac
19793 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
20546 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
1979420547 as_fn_append ac_file_inputs " '$ac_f'"
1979520548 done
1979620549
1979820551 # use $as_me), people would be surprised to read:
1979920552 # /* config.h. Generated by config.status. */
1980020553 configure_input='Generated from '`
19801 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
20554 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
1980220555 `' by configure.'
1980320556 if test x"$ac_file" != x-; then
1980420557 configure_input="$ac_file. $configure_input"
19805 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
19806 $as_echo "$as_me: creating $ac_file" >&6;}
20558 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
20559 printf "%s\n" "$as_me: creating $ac_file" >&6;}
1980720560 fi
1980820561 # Neutralize special characters interpreted by sed in replacement strings.
1980920562 case $configure_input in #(
1981020563 *\&* | *\|* | *\\* )
19811 ac_sed_conf_input=`$as_echo "$configure_input" |
20564 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
1981220565 sed 's/[\\\\&|]/\\\\&/g'`;; #(
1981320566 *) ac_sed_conf_input=$configure_input;;
1981420567 esac
1982520578 X"$ac_file" : 'X\(//\)[^/]' \| \
1982620579 X"$ac_file" : 'X\(//\)$' \| \
1982720580 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19828 $as_echo X"$ac_file" |
20581 printf "%s\n" X"$ac_file" |
1982920582 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1983020583 s//\1/
1983120584 q
1984920602 case "$ac_dir" in
1985020603 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1985120604 *)
19852 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
20605 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1985320606 # A ".." for each directory in $ac_dir_suffix.
19854 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
20607 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1985520608 case $ac_top_builddir_sub in
1985620609 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1985720610 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1991320666 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
1991420667 *datarootdir*) ac_datarootdir_seen=yes;;
1991520668 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19916 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19917 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
20669 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
20670 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
1991820671 _ACEOF
1991920672 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1992020673 ac_datarootdir_hack='
1995820711 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
1995920712 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
1996020713 "$ac_tmp/out"`; test -z "$ac_out"; } &&
19961 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20714 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
1996220715 which seems to be undefined. Please make sure it is defined" >&5
19963 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20716 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
1996420717 which seems to be undefined. Please make sure it is defined" >&2;}
1996520718
1996620719 rm -f "$ac_tmp/stdin"
1997620729 #
1997720730 if test x"$ac_file" != x-; then
1997820731 {
19979 $as_echo "/* $configure_input */" \
20732 printf "%s\n" "/* $configure_input */" >&1 \
1998020733 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
1998120734 } >"$ac_tmp/config.h" \
1998220735 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
1998320736 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
19984 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
19985 $as_echo "$as_me: $ac_file is unchanged" >&6;}
20737 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
20738 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
1998620739 else
1998720740 rm -f "$ac_file"
1998820741 mv "$ac_tmp/config.h" "$ac_file" \
1998920742 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
1999020743 fi
1999120744 else
19992 $as_echo "/* $configure_input */" \
20745 printf "%s\n" "/* $configure_input */" >&1 \
1999320746 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
1999420747 || as_fn_error $? "could not create -" "$LINENO" 5
1999520748 fi
2000920762 X"$_am_arg" : 'X\(//\)[^/]' \| \
2001020763 X"$_am_arg" : 'X\(//\)$' \| \
2001120764 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
20012 $as_echo X"$_am_arg" |
20765 printf "%s\n" X"$_am_arg" |
2001320766 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
2001420767 s//\1/
2001520768 q
2002920782 s/.*/./; q'`/stamp-h$_am_stamp_count
2003020783 ;;
2003120784
20032 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
20033 $as_echo "$as_me: executing $ac_file commands" >&6;}
20785 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
20786 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
2003420787 ;;
2003520788 esac
2003620789
2005620809 for am_mf
2005720810 do
2005820811 # Strip MF so we end up with the name of the file.
20059 am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'`
20812 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
2006020813 # Check whether this is an Automake generated Makefile which includes
2006120814 # dependency-tracking related rules and includes.
2006220815 # Grep'ing the whole file directly is not great: AIX grep has a line
2006820821 X"$am_mf" : 'X\(//\)[^/]' \| \
2006920822 X"$am_mf" : 'X\(//\)$' \| \
2007020823 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
20071 $as_echo X"$am_mf" |
20824 printf "%s\n" X"$am_mf" |
2007220825 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
2007320826 s//\1/
2007420827 q
2009020843 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
2009120844 X"$am_mf" : 'X\(//\)$' \| \
2009220845 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
20093 $as_echo X/"$am_mf" |
20846 printf "%s\n" X/"$am_mf" |
2009420847 sed '/^.*\/\([^/][^/]*\)\/*$/{
2009520848 s//\1/
2009620849 q
2011520868 (exit $ac_status); } || am_rc=$?
2011620869 done
2011720870 if test $am_rc -ne 0; then
20118 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20119 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20871 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20872 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2012020873 as_fn_error $? "Something went wrong bootstrapping makefile fragments
20121 for automatic dependency tracking. Try re-running configure with the
20874 for automatic dependency tracking. If GNU make was not used, consider
20875 re-running the configure script with MAKE=\"gmake\" (or whatever is
20876 necessary). You can also try re-running configure with the
2012220877 '--disable-dependency-tracking' option to at least be able to build
2012320878 the package (albeit without support for automatic dependency tracking).
2012420879 See \`config.log' for more details" "$LINENO" 5; }
2026421019 # convert \$build files to toolchain format.
2026521020 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
2026621021
21022 # A file(cmd) program that detects file types.
21023 FILECMD=$lt_FILECMD
21024
2026721025 # An object symbol dumper.
2026821026 OBJDUMP=$lt_OBJDUMP
2026921027
2028821046 # The archiver.
2028921047 AR=$lt_AR
2029021048
21049 # Flags to create an archive (by configure).
21050 lt_ar_flags=$lt_ar_flags
21051
2029121052 # Flags to create an archive.
20292 AR_FLAGS=$lt_AR_FLAGS
21053 AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"}
2029321054
2029421055 # How to feed a file listing to the archiver.
2029521056 archiver_list_spec=$lt_archiver_list_spec
2067121432 esac
2067221433
2067321434
21435
2067421436 ltmain=$ac_aux_dir/ltmain.sh
2067521437
2067621438
2067821440 # if finds mixed CR/LF and LF-only lines. Since sed operates in
2067921441 # text mode, it properly converts lines to CR/LF. This bash problem
2068021442 # is reportedly fixed, but why not run on old versions too?
20681 sed '$q' "$ltmain" >> "$cfgfile" \
21443 $SED '$q' "$ltmain" >> "$cfgfile" \
2068221444 || (rm -f "$cfgfile"; exit 1)
2068321445
2068421446 mv -f "$cfgfile" "$ofile" ||
2087321635 $ac_cs_success || as_fn_exit 1
2087421636 fi
2087521637 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
20876 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
20877 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
20878 fi
20879
20880 { $as_echo "$as_me:${as_lineno-$LINENO}: result:
21638 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
21639 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
21640 fi
21641
21642 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result:
2088121643 $PACKAGE $VERSION
2088221644
2088321645 CC: ${CC}
2089621658 bigendian: ${ac_cv_c_bigendian}
2089721659 protobuf version: ${PROTOBUF_VERSION}
2089821660 " >&5
20899 $as_echo "
21661 printf "%s\n" "
2090021662 $PACKAGE $VERSION
2090121663
2090221664 CC: ${CC}
2091521677 bigendian: ${ac_cv_c_bigendian}
2091621678 protobuf version: ${PROTOBUF_VERSION}
2091721679 " >&6; }
21680
00 AC_PREREQ(2.63)
11
22 AC_INIT([protobuf-c],
3 [1.3.3],
3 [1.4.0],
44 [https://github.com/protobuf-c/protobuf-c/issues],
55 [protobuf-c],
66 [https://github.com/protobuf-c/protobuf-c])
0 protobuf-c (1.4.0-1) UNRELEASED; urgency=low
1
2 * New upstream release.
3
4 -- Debian Janitor <janitor@jelmer.uk> Fri, 25 Mar 2022 23:33:42 -0000
5
06 protobuf-c (1.3.3-1) unstable; urgency=medium
17
28 * New upstream version 1.3.3
00 # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
11 #
2 # Copyright (C) 1996-2001, 2003-2015 Free Software Foundation, Inc.
2 # Copyright (C) 1996-2001, 2003-2019, 2021-2022 Free Software
3 # Foundation, Inc.
34 # Written by Gordon Matzigkeit, 1996
45 #
56 # This file is free software; the Free Software Foundation gives
3031 # along with this program. If not, see <http://www.gnu.org/licenses/>.
3132 ])
3233
33 # serial 58 LT_INIT
34 # serial 59 LT_INIT
3435
3536
3637 # LT_PREREQ(VERSION)
180181 m4_require([_LT_CHECK_SHELL_FEATURES])dnl
181182 m4_require([_LT_PATH_CONVERSION_FUNCTIONS])dnl
182183 m4_require([_LT_CMD_RELOAD])dnl
184 m4_require([_LT_DECL_FILECMD])dnl
183185 m4_require([_LT_CHECK_MAGIC_METHOD])dnl
184186 m4_require([_LT_CHECK_SHAREDLIB_FROM_LINKLIB])dnl
185187 m4_require([_LT_CMD_OLD_ARCHIVE])dnl
218220 ofile=libtool
219221 can_build_shared=yes
220222
221 # All known linkers require a '.a' archive for static linking (except MSVC,
222 # which needs '.lib').
223 # All known linkers require a '.a' archive for static linking (except MSVC and
224 # ICC, which need '.lib').
223225 libext=a
224226
225227 with_gnu_ld=$lt_cv_prog_gnu_ld
776778 # if finds mixed CR/LF and LF-only lines. Since sed operates in
777779 # text mode, it properly converts lines to CR/LF. This bash problem
778780 # is reportedly fixed, but why not run on old versions too?
779 sed '$q' "$ltmain" >> "$cfgfile" \
781 $SED '$q' "$ltmain" >> "$cfgfile" \
780782 || (rm -f "$cfgfile"; exit 1)
781783
782784 mv -f "$cfgfile" "$ofile" ||
10401042 _LT_EOF
10411043 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&AS_MESSAGE_LOG_FD
10421044 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&AS_MESSAGE_LOG_FD
1043 echo "$AR cr libconftest.a conftest.o" >&AS_MESSAGE_LOG_FD
1044 $AR cr libconftest.a conftest.o 2>&AS_MESSAGE_LOG_FD
1045 echo "$AR $AR_FLAGS libconftest.a conftest.o" >&AS_MESSAGE_LOG_FD
1046 $AR $AR_FLAGS libconftest.a conftest.o 2>&AS_MESSAGE_LOG_FD
10451047 echo "$RANLIB libconftest.a" >&AS_MESSAGE_LOG_FD
10461048 $RANLIB libconftest.a 2>&AS_MESSAGE_LOG_FD
10471049 cat > conftest.c << _LT_EOF
10651067 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
10661068 darwin1.*)
10671069 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
1068 darwin*) # darwin 5.x on
1069 # if running on 10.5 or later, the deployment target defaults
1070 # to the OS version, if on x86, and 10.4, the deployment
1071 # target defaults to 10.4. Don't you love it?
1072 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
1073 10.0,*86*-darwin8*|10.0,*-darwin[[91]]*)
1074 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
1075 10.[[012]][[,.]]*)
1076 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
1077 10.*)
1078 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
1070 darwin*)
1071 case $MACOSX_DEPLOYMENT_TARGET,$host in
1072 10.[[012]],*|,*powerpc*-darwin[[5-8]]*)
1073 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
1074 *)
1075 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
10791076 esac
10801077 ;;
10811078 esac
11241121 output_verbose_link_cmd=func_echo_all
11251122 _LT_TAGVAR(archive_cmds, $1)="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
11261123 _LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
1127 _LT_TAGVAR(archive_expsym_cmds, $1)="sed 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dar_export_syms$_lt_dsymutil"
1128 _LT_TAGVAR(module_expsym_cmds, $1)="sed -e 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dar_export_syms$_lt_dsymutil"
1124 _LT_TAGVAR(archive_expsym_cmds, $1)="$SED 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dar_export_syms$_lt_dsymutil"
1125 _LT_TAGVAR(module_expsym_cmds, $1)="$SED -e 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dar_export_syms$_lt_dsymutil"
11291126 m4_if([$1], [CXX],
11301127 [ if test yes != "$lt_cv_apple_cc_single_mod"; then
11311128 _LT_TAGVAR(archive_cmds, $1)="\$CC -r -keep_private_externs -nostdlib -o \$lib-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$lib-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring$_lt_dsymutil"
1132 _LT_TAGVAR(archive_expsym_cmds, $1)="sed 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \$lib-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$lib-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring$_lt_dar_export_syms$_lt_dsymutil"
1129 _LT_TAGVAR(archive_expsym_cmds, $1)="$SED 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \$lib-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$lib-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring$_lt_dar_export_syms$_lt_dsymutil"
11331130 fi
11341131 ],[])
11351132 else
12431240 # _LT_WITH_SYSROOT
12441241 # ----------------
12451242 AC_DEFUN([_LT_WITH_SYSROOT],
1246 [AC_MSG_CHECKING([for sysroot])
1243 [m4_require([_LT_DECL_SED])dnl
1244 AC_MSG_CHECKING([for sysroot])
12471245 AC_ARG_WITH([sysroot],
12481246 [AS_HELP_STRING([--with-sysroot@<:@=DIR@:>@],
12491247 [Search for dependent libraries within DIR (or the compiler's sysroot
12601258 fi
12611259 ;; #(
12621260 /*)
1263 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
1261 lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"`
12641262 ;; #(
12651263 no|'')
12661264 ;; #(
12901288 # options accordingly.
12911289 echo 'int i;' > conftest.$ac_ext
12921290 if AC_TRY_EVAL(ac_compile); then
1293 case `/usr/bin/file conftest.$ac_objext` in
1291 case `$FILECMD conftest.$ac_objext` in
12941292 *ELF-32*)
12951293 HPUX_IA64_MODE=32
12961294 ;;
13071305 echo '[#]line '$LINENO' "configure"' > conftest.$ac_ext
13081306 if AC_TRY_EVAL(ac_compile); then
13091307 if test yes = "$lt_cv_prog_gnu_ld"; then
1310 case `/usr/bin/file conftest.$ac_objext` in
1308 case `$FILECMD conftest.$ac_objext` in
13111309 *32-bit*)
13121310 LD="${LD-ld} -melf32bsmip"
13131311 ;;
13191317 ;;
13201318 esac
13211319 else
1322 case `/usr/bin/file conftest.$ac_objext` in
1320 case `$FILECMD conftest.$ac_objext` in
13231321 *32-bit*)
13241322 LD="${LD-ld} -32"
13251323 ;;
13411339 echo '[#]line '$LINENO' "configure"' > conftest.$ac_ext
13421340 if AC_TRY_EVAL(ac_compile); then
13431341 emul=elf
1344 case `/usr/bin/file conftest.$ac_objext` in
1342 case `$FILECMD conftest.$ac_objext` in
13451343 *32-bit*)
13461344 emul="${emul}32"
13471345 ;;
13491347 emul="${emul}64"
13501348 ;;
13511349 esac
1352 case `/usr/bin/file conftest.$ac_objext` in
1350 case `$FILECMD conftest.$ac_objext` in
13531351 *MSB*)
13541352 emul="${emul}btsmip"
13551353 ;;
13571355 emul="${emul}ltsmip"
13581356 ;;
13591357 esac
1360 case `/usr/bin/file conftest.$ac_objext` in
1358 case `$FILECMD conftest.$ac_objext` in
13611359 *N32*)
13621360 emul="${emul}n32"
13631361 ;;
13771375 # not appear in the list.
13781376 echo 'int i;' > conftest.$ac_ext
13791377 if AC_TRY_EVAL(ac_compile); then
1380 case `/usr/bin/file conftest.o` in
1378 case `$FILECMD conftest.o` in
13811379 *32-bit*)
13821380 case $host in
13831381 x86_64-*kfreebsd*-gnu)
13841382 LD="${LD-ld} -m elf_i386_fbsd"
13851383 ;;
13861384 x86_64-*linux*)
1387 case `/usr/bin/file conftest.o` in
1385 case `$FILECMD conftest.o` in
13881386 *x86-64*)
13891387 LD="${LD-ld} -m elf32_x86_64"
13901388 ;;
14521450 # options accordingly.
14531451 echo 'int i;' > conftest.$ac_ext
14541452 if AC_TRY_EVAL(ac_compile); then
1455 case `/usr/bin/file conftest.o` in
1453 case `$FILECMD conftest.o` in
14561454 *64-bit*)
14571455 case $lt_cv_prog_gnu_ld in
14581456 yes*)
14911489 m4_defun([_LT_PROG_AR],
14921490 [AC_CHECK_TOOLS(AR, [ar], false)
14931491 : ${AR=ar}
1494 : ${AR_FLAGS=cr}
14951492 _LT_DECL([], [AR], [1], [The archiver])
1496 _LT_DECL([], [AR_FLAGS], [1], [Flags to create an archive])
1493
1494 # Use ARFLAGS variable as AR's operation code to sync the variable naming with
1495 # Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have
1496 # higher priority because thats what people were doing historically (setting
1497 # ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS
1498 # variable obsoleted/removed.
1499
1500 test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr}
1501 lt_ar_flags=$AR_FLAGS
1502 _LT_DECL([], [lt_ar_flags], [0], [Flags to create an archive (by configure)])
1503
1504 # Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override
1505 # by AR_FLAGS because that was never working and AR_FLAGS is about to die.
1506 _LT_DECL([], [AR_FLAGS], [\@S|@{ARFLAGS-"\@S|@lt_ar_flags"}],
1507 [Flags to create an archive])
14971508
14981509 AC_CACHE_CHECK([for archiver @FILE support], [lt_cv_ar_at_file],
14991510 [lt_cv_ar_at_file=no
17121723 lt_cv_sys_max_cmd_len=8192;
17131724 ;;
17141725
1715 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
1726 bitrig* | darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
17161727 # This has been around since 386BSD, at least. Likely further.
17171728 if test -x /sbin/sysctl; then
17181729 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
17551766 sysv5* | sco5v6* | sysv4.2uw2*)
17561767 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
17571768 if test -n "$kargmax"; then
1758 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'`
1769 lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[[ ]]//'`
17591770 else
17601771 lt_cv_sys_max_cmd_len=32768
17611772 fi
22052216 striplib=
22062217 old_striplib=
22072218 AC_MSG_CHECKING([whether stripping libraries is possible])
2208 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
2209 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
2210 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
2211 AC_MSG_RESULT([yes])
2219 if test -z "$STRIP"; then
2220 AC_MSG_RESULT([no])
22122221 else
2213 # FIXME - insert some real tests, host_os isn't really good enough
2214 case $host_os in
2215 darwin*)
2216 if test -n "$STRIP"; then
2222 if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
2223 old_striplib="$STRIP --strip-debug"
2224 striplib="$STRIP --strip-unneeded"
2225 AC_MSG_RESULT([yes])
2226 else
2227 case $host_os in
2228 darwin*)
2229 # FIXME - insert some real tests, host_os isn't really good enough
22172230 striplib="$STRIP -x"
22182231 old_striplib="$STRIP -S"
22192232 AC_MSG_RESULT([yes])
2220 else
2233 ;;
2234 freebsd*)
2235 if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
2236 old_striplib="$STRIP --strip-debug"
2237 striplib="$STRIP --strip-unneeded"
2238 AC_MSG_RESULT([yes])
2239 else
2240 AC_MSG_RESULT([no])
2241 fi
2242 ;;
2243 *)
22212244 AC_MSG_RESULT([no])
2222 fi
2223 ;;
2224 *)
2225 AC_MSG_RESULT([no])
2226 ;;
2227 esac
2245 ;;
2246 esac
2247 fi
22282248 fi
22292249 _LT_DECL([], [old_striplib], [1], [Commands to strip libraries])
22302250 _LT_DECL([], [striplib], [1])
25472567 case $host_os in
25482568 cygwin*)
25492569 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
2550 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
2570 soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
25512571 m4_if([$1], [],[
25522572 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"])
25532573 ;;
25572577 ;;
25582578 pw32*)
25592579 # pw32 DLLs use 'pw' prefix rather than 'lib'
2560 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
2580 library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
25612581 ;;
25622582 esac
25632583 dynamic_linker='Win32 ld.exe'
25642584 ;;
25652585
2566 *,cl*)
2567 # Native MSVC
2586 *,cl* | *,icl*)
2587 # Native MSVC or ICC
25682588 libname_spec='$name'
25692589 soname_spec='$libname`echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
25702590 library_names_spec='$libname.dll.lib'
25832603 done
25842604 IFS=$lt_save_ifs
25852605 # Convert to MSYS style.
2586 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([[a-zA-Z]]\\):| /\\1|g' -e 's|^ ||'`
2606 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([[a-zA-Z]]\\):| /\\1|g' -e 's|^ ||'`
25872607 ;;
25882608 cygwin*)
25892609 # Convert to unix form, then to dos form, then back to unix form
26202640 ;;
26212641
26222642 *)
2623 # Assume MSVC wrapper
2643 # Assume MSVC and ICC wrapper
26242644 library_names_spec='$libname`echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext $libname.lib'
26252645 dynamic_linker='Win32 ld.exe'
26262646 ;;
26532673 shlibpath_var=LD_LIBRARY_PATH
26542674 ;;
26552675
2656 freebsd* | dragonfly*)
2676 freebsd* | dragonfly* | midnightbsd*)
26572677 # DragonFly does not have aout. When/if they implement a new
26582678 # versioning mechanism, adjust this.
26592679 if test -x /usr/bin/objformat; then
34643484
34653485 bsdi[[45]]*)
34663486 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)'
3467 lt_cv_file_magic_cmd='/usr/bin/file -L'
3487 lt_cv_file_magic_cmd='$FILECMD -L'
34683488 lt_cv_file_magic_test_file=/shlib/libc.so
34693489 ;;
34703490
34983518 lt_cv_deplibs_check_method=pass_all
34993519 ;;
35003520
3501 freebsd* | dragonfly*)
3521 freebsd* | dragonfly* | midnightbsd*)
35023522 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
35033523 case $host_cpu in
35043524 i*86 )
35053525 # Not sure whether the presence of OpenBSD here was a mistake.
35063526 # Let's accept both of them until this is cleared up.
35073527 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library'
3508 lt_cv_file_magic_cmd=/usr/bin/file
3528 lt_cv_file_magic_cmd=$FILECMD
35093529 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
35103530 ;;
35113531 esac
35193539 ;;
35203540
35213541 hpux10.20* | hpux11*)
3522 lt_cv_file_magic_cmd=/usr/bin/file
3542 lt_cv_file_magic_cmd=$FILECMD
35233543 case $host_cpu in
35243544 ia64*)
35253545 lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64'
35663586
35673587 newos6*)
35683588 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)'
3569 lt_cv_file_magic_cmd=/usr/bin/file
3589 lt_cv_file_magic_cmd=$FILECMD
35703590 lt_cv_file_magic_test_file=/usr/lib/libnls.so
35713591 ;;
35723592
36933713 mingw*) lt_bad_file=conftest.nm/nofile ;;
36943714 *) lt_bad_file=/dev/null ;;
36953715 esac
3696 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
3716 case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in
36973717 *$lt_bad_file* | *'Invalid file or object type'*)
36983718 lt_cv_path_NM="$tmp_nm -B"
36993719 break 2
37003720 ;;
37013721 *)
3702 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3722 case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in
37033723 */dev/null*)
37043724 lt_cv_path_NM="$tmp_nm -p"
37053725 break 2
37253745 # Let the user override the test.
37263746 else
37273747 AC_CHECK_TOOLS(DUMPBIN, [dumpbin "link -dump"], :)
3728 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
3748 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in
37293749 *COFF*)
37303750 DUMPBIN="$DUMPBIN -symbols -headers"
37313751 ;;
39653985
39663986 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
39673987 # Gets list of data symbols to import.
3968 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
3988 lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'"
39693989 # Adjust the below global symbol transforms to fixup imported variables.
39703990 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
39713991 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
39834003 # Transform an extracted symbol line into a proper C declaration.
39844004 # Some systems (esp. on ia64) link data and code symbols differently,
39854005 # so use this general approach.
3986 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
4006 lt_cv_sys_global_symbol_to_cdecl="$SED -n"\
39874007 $lt_cdecl_hook\
39884008 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
39894009 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
39904010
39914011 # Transform an extracted symbol line into symbol name and symbol address
3992 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
4012 lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\
39934013 $lt_c_name_hook\
39944014 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
39954015 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
39964016
39974017 # Transform an extracted symbol line into symbol name with lib prefix and
39984018 # symbol address.
3999 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
4019 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\
40004020 $lt_c_name_lib_hook\
40014021 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
40024022 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
40204040 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
40214041 # Fake it for dumpbin and say T for any non-static function,
40224042 # D for any global variable and I for any imported variable.
4023 # Also find C++ and __fastcall symbols from MSVC++,
4043 # Also find C++ and __fastcall symbols from MSVC++ or ICC,
40244044 # which start with @ or ?.
40254045 lt_cv_sys_global_symbol_pipe="$AWK ['"\
40264046 " {last_section=section; section=\$ 3};"\
40384058 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
40394059 " ' prfx=^$ac_symprfx]"
40404060 else
4041 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
4061 lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
40424062 fi
4043 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
4063 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'"
40444064
40454065 # Check to see that the pipe works correctly.
40464066 pipe_works=no
43284348 ;;
43294349 esac
43304350 ;;
4331 freebsd* | dragonfly*)
4351 freebsd* | dragonfly* | midnightbsd*)
43324352 # FreeBSD uses GNU C++
43334353 ;;
43344354 hpux9* | hpux10* | hpux11*)
44114431 _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
44124432 ;;
44134433 *)
4414 case `$CC -V 2>&1 | sed 5q` in
4434 case `$CC -V 2>&1 | $SED 5q` in
44154435 *Sun\ C*)
44164436 # Sun C++ 5.9
44174437 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
47534773 _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
47544774 ;;
47554775 *)
4756 case `$CC -V 2>&1 | sed 5q` in
4776 case `$CC -V 2>&1 | $SED 5q` in
47574777 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [[1-7]].* | *Sun*Fortran*\ 8.[[0-3]]*)
47584778 # Sun Fortran 8.3 passes all unrecognized flags to the linker
47594779 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
49364956 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
49374957 _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && ([substr](\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
49384958 else
4939 _LT_TAGVAR(export_symbols_cmds, $1)='`func_echo_all $NM | $SED -e '\''s/B\([[^B]]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && ([substr](\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
4959 _LT_TAGVAR(export_symbols_cmds, $1)='`func_echo_all $NM | $SED -e '\''s/B\([[^B]]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && ([substr](\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
49404960 fi
49414961 ;;
49424962 pw32*)
49444964 ;;
49454965 cygwin* | mingw* | cegcc*)
49464966 case $cc_basename in
4947 cl*)
4967 cl* | icl*)
49484968 _LT_TAGVAR(exclude_expsyms, $1)='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
49494969 ;;
49504970 *)
50045024
50055025 case $host_os in
50065026 cygwin* | mingw* | pw32* | cegcc*)
5007 # FIXME: the MSVC++ port hasn't been tested in a loooong time
5027 # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
50085028 # When not using gcc, we currently assume that we are using
5009 # Microsoft Visual C++.
5029 # Microsoft Visual C++ or Intel C++ Compiler.
50105030 if test yes != "$GCC"; then
50115031 with_gnu_ld=no
50125032 fi
50135033 ;;
50145034 interix*)
5015 # we just hope/assume this is gcc and not c89 (= MSVC++)
5035 # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC)
50165036 with_gnu_ld=yes
50175037 ;;
50185038 openbsd* | bitrig*)
50675087 _LT_TAGVAR(whole_archive_flag_spec, $1)=
50685088 fi
50695089 supports_anon_versioning=no
5070 case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
5090 case `$LD -v | $SED -e 's/([[^)]]\+)\s\+//' 2>&1` in
50715091 *GNU\ gold*) supports_anon_versioning=yes ;;
50725092 *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
50735093 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
51795199 emximp -o $lib $output_objdir/$libname.def'
51805200 _LT_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
51815201 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
5202 _LT_TAGVAR(file_list_spec, $1)='@'
51825203 ;;
51835204
51845205 interix[[3-9]]*)
51935214 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
51945215 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
51955216 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
5196 _LT_TAGVAR(archive_expsym_cmds, $1)='sed "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--retain-symbols-file,$output_objdir/$soname.expsym $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
5217 _LT_TAGVAR(archive_expsym_cmds, $1)='$SED "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--retain-symbols-file,$output_objdir/$soname.expsym $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
51975218 ;;
51985219
51995220 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
52365257 _LT_TAGVAR(compiler_needs_object, $1)=yes
52375258 ;;
52385259 esac
5239 case `$CC -V 2>&1 | sed 5q` in
5260 case `$CC -V 2>&1 | $SED 5q` in
52405261 *Sun\ C*) # Sun C 5.9
52415262 _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
52425263 _LT_TAGVAR(compiler_needs_object, $1)=yes
52485269
52495270 if test yes = "$supports_anon_versioning"; then
52505271 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
5251 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
5272 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
52525273 echo "local: *; };" >> $output_objdir/$libname.ver~
52535274 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
52545275 fi
52645285 _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
52655286 if test yes = "$supports_anon_versioning"; then
52665287 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
5267 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
5288 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
52685289 echo "local: *; };" >> $output_objdir/$libname.ver~
52695290 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
52705291 fi
53965417 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
53975418 _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && ([substr](\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
53985419 else
5399 _LT_TAGVAR(export_symbols_cmds, $1)='`func_echo_all $NM | $SED -e '\''s/B\([[^B]]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && ([substr](\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
5420 _LT_TAGVAR(export_symbols_cmds, $1)='`func_echo_all $NM | $SED -e '\''s/B\([[^B]]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && ([substr](\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
54005421 fi
54015422 aix_use_runtimelinking=no
54025423
55795600
55805601 cygwin* | mingw* | pw32* | cegcc*)
55815602 # When not using gcc, we currently assume that we are using
5582 # Microsoft Visual C++.
5603 # Microsoft Visual C++ or Intel C++ Compiler.
55835604 # hardcode_libdir_flag_spec is actually meaningless, as there is
55845605 # no search path for DLLs.
55855606 case $cc_basename in
5586 cl*)
5587 # Native MSVC
5607 cl* | icl*)
5608 # Native MSVC or ICC
55885609 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
55895610 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
55905611 _LT_TAGVAR(always_export_symbols, $1)=yes
56255646 fi'
56265647 ;;
56275648 *)
5628 # Assume MSVC wrapper
5649 # Assume MSVC and ICC wrapper
56295650 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
56305651 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
56315652 # Tell ltmain to make .lib files, not .a files.
56735694 ;;
56745695
56755696 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
5676 freebsd* | dragonfly*)
5697 freebsd* | dragonfly* | midnightbsd*)
56775698 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
56785699 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
56795700 _LT_TAGVAR(hardcode_direct, $1)=yes
58855906 emximp -o $lib $output_objdir/$libname.def'
58865907 _LT_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
58875908 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
5909 _LT_TAGVAR(file_list_spec, $1)='@'
58885910 ;;
58895911
58905912 osf3*)
66556677
66566678 cygwin* | mingw* | pw32* | cegcc*)
66576679 case $GXX,$cc_basename in
6658 ,cl* | no,cl*)
6659 # Native MSVC
6680 ,cl* | no,cl* | ,icl* | no,icl*)
6681 # Native MSVC or ICC
66606682 # hardcode_libdir_flag_spec is actually meaningless, as there is
66616683 # no search path for DLLs.
66626684 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
67546776 emximp -o $lib $output_objdir/$libname.def'
67556777 _LT_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
67566778 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
6779 _LT_TAGVAR(file_list_spec, $1)='@'
67576780 ;;
67586781
67596782 dgux*)
67846807 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
67856808 ;;
67866809
6787 freebsd* | dragonfly*)
6810 freebsd* | dragonfly* | midnightbsd*)
67886811 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
67896812 # conventions
67906813 _LT_TAGVAR(ld_shlibs, $1)=yes
69216944 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
69226945 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
69236946 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
6924 _LT_TAGVAR(archive_expsym_cmds, $1)='sed "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--retain-symbols-file,$output_objdir/$soname.expsym $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
6947 _LT_TAGVAR(archive_expsym_cmds, $1)='$SED "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--retain-symbols-file,$output_objdir/$soname.expsym $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
69256948 ;;
69266949 irix5* | irix6*)
69276950 case $cc_basename in
70617084 _LT_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
70627085 if test yes = "$supports_anon_versioning"; then
70637086 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
7064 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7087 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
70657088 echo "local: *; };" >> $output_objdir/$libname.ver~
70667089 $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
70677090 fi
70687091 ;;
70697092 *)
7070 case `$CC -V 2>&1 | sed 5q` in
7093 case `$CC -V 2>&1 | $SED 5q` in
70717094 *Sun\ C*)
70727095 # Sun C++ 5.9
70737096 _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
82128235 _LT_DECL([], [DLLTOOL], [1], [DLL creation program])
82138236 AC_SUBST([DLLTOOL])
82148237 ])
8238
8239 # _LT_DECL_FILECMD
8240 # ----------------
8241 # Check for a file(cmd) program that can be used to detect file type and magic
8242 m4_defun([_LT_DECL_FILECMD],
8243 [AC_CHECK_TOOL([FILECMD], [file], [:])
8244 _LT_DECL([], [FILECMD], [1], [A file(cmd) program that detects file types])
8245 ])# _LD_DECL_FILECMD
82158246
82168247 # _LT_DECL_SED
82178248 # ------------
00 # Helper functions for option handling. -*- Autoconf -*-
11 #
2 # Copyright (C) 2004-2005, 2007-2009, 2011-2015 Free Software
3 # Foundation, Inc.
2 # Copyright (C) 2004-2005, 2007-2009, 2011-2019, 2021-2022 Free
3 # Software Foundation, Inc.
44 # Written by Gary V. Vaughan, 2004
55 #
66 # This file is free software; the Free Software Foundation gives
00 # ltsugar.m4 -- libtool m4 base layer. -*-Autoconf-*-
11 #
2 # Copyright (C) 2004-2005, 2007-2008, 2011-2015 Free Software
2 # Copyright (C) 2004-2005, 2007-2008, 2011-2019, 2021-2022 Free Software
33 # Foundation, Inc.
44 # Written by Gary V. Vaughan, 2004
55 #
00 # ltversion.m4 -- version numbers -*- Autoconf -*-
11 #
2 # Copyright (C) 2004, 2011-2015 Free Software Foundation, Inc.
2 # Copyright (C) 2004, 2011-2019, 2021-2022 Free Software Foundation,
3 # Inc.
34 # Written by Scott James Remnant, 2004
45 #
56 # This file is free software; the Free Software Foundation gives
00 # lt~obsolete.m4 -- aclocal satisfying obsolete definitions. -*-Autoconf-*-
11 #
2 # Copyright (C) 2004-2005, 2007, 2009, 2011-2015 Free Software
3 # Foundation, Inc.
2 # Copyright (C) 2004-2005, 2007, 2009, 2011-2019, 2021-2022 Free
3 # Software Foundation, Inc.
44 # Written by Scott James Remnant, 2004.
55 #
66 # This file is free software; the Free Software Foundation gives
33 includedir=@includedir@
44 bindir=@bindir@
55
6 Name: libprotobuf-c
7 Description: Protocol Buffers C library
8 Version: @VERSION@
6 Name: @PACKAGE_NAME@
7 Description: @PACKAGE_DESCRIPTION@
8 Version: @PACKAGE_VERSION@
9 URL: @PACKAGE_URL@
910 Libs: -L${libdir} -lprotobuf-c
1011 Libs.private:
1112 Cflags: -I${includedir}
8383 # define PROTOBUF_C_UNPACK_ERROR(...)
8484 #endif
8585
86 #if !defined(_WIN32) || !defined(PROTOBUF_C_USE_SHARED_LIB)
8687 const char protobuf_c_empty_string[] = "";
88 #endif
8789
8890 /**
8991 * Internal `ProtobufCMessage` manipulation macro.
147149 static void *
148150 system_alloc(void *allocator_data, size_t size)
149151 {
152 (void)allocator_data;
150153 return malloc(size);
151154 }
152155
153156 static void
154157 system_free(void *allocator_data, void *data)
155158 {
159 (void)allocator_data;
156160 free(data);
157161 }
158162
16171621 break;
16181622 }
16191623 case PROTOBUF_C_TYPE_MESSAGE: {
1620 uint8_t simple_buffer_scratch[256];
1621 size_t sublen;
16221624 const ProtobufCMessage *msg = *(ProtobufCMessage * const *) member;
1623 ProtobufCBufferSimple simple_buffer =
1624 PROTOBUF_C_BUFFER_SIMPLE_INIT(simple_buffer_scratch);
1625
1625
16261626 scratch[0] |= PROTOBUF_C_WIRE_TYPE_LENGTH_PREFIXED;
1627 if (msg == NULL)
1628 sublen = 0;
1629 else
1630 sublen = protobuf_c_message_pack_to_buffer(msg, &simple_buffer.base);
1631 rv += uint32_pack(sublen, scratch + rv);
1632 buffer->append(buffer, rv, scratch);
1633 buffer->append(buffer, sublen, simple_buffer.data);
1634 rv += sublen;
1635 PROTOBUF_C_BUFFER_SIMPLE_CLEAR(&simple_buffer);
1627 if (msg == NULL) {
1628 rv += uint32_pack(0, scratch + rv);
1629 buffer->append(buffer, rv, scratch);
1630 } else {
1631 size_t sublen = protobuf_c_message_get_packed_size(msg);
1632 rv += uint32_pack(sublen, scratch + rv);
1633 buffer->append(buffer, rv, scratch);
1634 protobuf_c_message_pack_to_buffer(msg, buffer);
1635 rv += sublen;
1636 }
16361637 break;
16371638 }
16381639 default:
20622063 parse_tag_and_wiretype(size_t len,
20632064 const uint8_t *data,
20642065 uint32_t *tag_out,
2065 ProtobufCWireType *wiretype_out)
2066 uint8_t *wiretype_out)
20662067 {
20672068 unsigned max_rv = len > 5 ? 5 : len;
20682069 uint32_t tag = (data[0] & 0x7f) >> 3;
20942095
20952096 /* sizeof(ScannedMember) must be <= (1UL<<BOUND_SIZEOF_SCANNED_MEMBER_LOG2) */
20962097 #define BOUND_SIZEOF_SCANNED_MEMBER_LOG2 5
2097 typedef struct _ScannedMember ScannedMember;
2098 typedef struct ScannedMember ScannedMember;
20982099 /** Field as it's being read. */
2099 struct _ScannedMember {
2100 struct ScannedMember {
21002101 uint32_t tag; /**< Field tag. */
21012102 uint8_t wire_type; /**< Field type. */
21022103 uint8_t length_prefix_len; /**< Prefix length. */
21312132 // Protobuf messages should always be less than 2 GiB in size.
21322133 // We also want to return early here so that hdr_len + val does
21332134 // not overflow on 32-bit systems.
2134 PROTOBUF_C_UNPACK_ERROR("length prefix of %lu is too large", val);
2135 PROTOBUF_C_UNPACK_ERROR("length prefix of %lu is too large",
2136 (unsigned long int)val);
21352137 return 0;
21362138 }
21372139 if (hdr_len + val > len) {
2138 PROTOBUF_C_UNPACK_ERROR("data too short after length-prefix of %lu", val);
2140 PROTOBUF_C_UNPACK_ERROR("data too short after length-prefix of %lu",
2141 (unsigned long int)val);
21392142 return 0;
21402143 }
21412144 return hdr_len + val;
24972500 {
24982501 unsigned len = scanned_member->len;
24992502 const uint8_t *data = scanned_member->data;
2500 ProtobufCWireType wire_type = scanned_member->wire_type;
2503 uint8_t wire_type = scanned_member->wire_type;
25012504
25022505 switch (scanned_member->field->type) {
25032506 case PROTOBUF_C_TYPE_ENUM:
25782581 {
25792582 do_free(allocator, bd->data);
25802583 }
2581 if (len - pref_len > 0) {
2584 if (len > pref_len) {
25822585 bd->data = do_alloc(allocator, len - pref_len);
25832586 if (bd->data == NULL)
25842587 return FALSE;
27462749 const uint8_t *at = scanned_member->data + scanned_member->length_prefix_len;
27472750 size_t rem = scanned_member->len - scanned_member->length_prefix_len;
27482751 size_t count = 0;
2752 #if defined(WORDS_BIGENDIAN)
27492753 unsigned i;
2754 #endif
27502755
27512756 switch (field->type) {
27522757 case PROTOBUF_C_TYPE_SFIXED32:
28392844 }
28402845 break;
28412846 case PROTOBUF_C_TYPE_BOOL:
2842 count = rem;
2843 for (i = 0; i < count; i++) {
2844 if (at[i] > 1) {
2847 while (rem > 0) {
2848 unsigned s = scan_varint(rem, at);
2849 if (s == 0) {
28452850 PROTOBUF_C_UNPACK_ERROR("bad packed-repeated boolean value");
28462851 return FALSE;
28472852 }
2848 ((protobuf_c_boolean *) array)[i] = at[i];
2853 ((protobuf_c_boolean *) array)[count++] = parse_boolean(s, at);
2854 at += s;
2855 rem -= s;
28492856 }
28502857 break;
28512858 default:
30793086
30803087 while (rem > 0) {
30813088 uint32_t tag;
3082 ProtobufCWireType wire_type;
3089 uint8_t wire_type;
30833090 size_t used = parse_tag_and_wiretype(rem, at, &tag, &wire_type);
30843091 const ProtobufCFieldDescriptor *field;
30853092 ScannedMember tmp;
237237 #define PROTOBUF_C__ENUM_DESCRIPTOR_MAGIC 0x114315af
238238
239239 /* Empty string used for initializers */
240 #if defined(_WIN32) && defined(PROTOBUF_C_USE_SHARED_LIB)
241 static const char protobuf_c_empty_string[] = "";
242 #else
240243 extern const char protobuf_c_empty_string[];
244 #endif
241245
242246 /**
243247 * \defgroup api Public API
789793 * The version of the protobuf-c headers, represented as a string using the same
790794 * format as protobuf_c_version().
791795 */
792 #define PROTOBUF_C_VERSION "1.3.3"
796 #define PROTOBUF_C_VERSION "1.4.0"
793797
794798 /**
795799 * The version of the protobuf-c headers, represented as an integer using the
796800 * same format as protobuf_c_version_number().
797801 */
798 #define PROTOBUF_C_VERSION_NUMBER 1003003
802 #define PROTOBUF_C_VERSION_NUMBER 1004000
799803
800804 /**
801805 * The minimum protoc-c version which works with the current version of the
0 /*
1 * Copyright (c) 2021, the protobuf-c authors.
2 * All rights reserved.
3 *
4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are
6 * met:
7 *
8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer.
10 *
11 * * Redistributions in binary form must reproduce the above
12 * copyright notice, this list of conditions and the following disclaimer
13 * in the documentation and/or other materials provided with the
14 * distribution.
15 *
16 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
17 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
18 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
19 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
20 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
21 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
22 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
23 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
24 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
26 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27 */
28
29 syntax = "proto2";
30 import "google/protobuf/descriptor.proto";
31
32 // We never need to generate protobuf-c.pb-c.{c,h}, the options are used
33 // only by protoc-gen-c, never by the protobuf-c runtime itself
34 option (pb_c_file).no_generate = true;
35
36 message ProtobufCFileOptions {
37 // Suppresses pb-c.{c,h} file output completely.
38 optional bool no_generate = 1 [default = false];
39
40 // Generate helper pack/unpack functions?
41 // For backwards compatibility, if this field is not explicitly set,
42 // only top-level message pack/unpack functions will be generated
43 optional bool gen_pack_helpers = 2 [default = true];
44
45 // Generate helper init message functions?
46 optional bool gen_init_helpers = 3 [default = true];
47
48 // Use const char * instead of char * for string fields
49 optional bool const_strings = 4 [default = false];
50
51 // For oneof fields, set ProtobufCFieldDescriptor name field to the
52 // name of the containing oneof, instead of the field name
53 optional bool use_oneof_field_name = 5 [default = false];
54
55 // Overrides the package name, if present
56 optional string c_package = 6;
57 }
58
59 extend google.protobuf.FileOptions {
60 optional ProtobufCFileOptions pb_c_file = 1019;
61 }
62
63 message ProtobufCMessageOptions {
64 // Overrides the parent setting only if present
65 optional bool gen_pack_helpers = 1 [default = false];
66
67 // Overrides the parent setting only if present
68 optional bool gen_init_helpers = 2 [default = true];
69
70 // Reserved base message field name
71 optional string base_field_name = 3 [default = "base"];
72 }
73
74 extend google.protobuf.MessageOptions {
75 optional ProtobufCMessageOptions pb_c_msg = 1019;
76 }
77
78 message ProtobufCFieldOptions {
79 // Treat string as bytes in generated code
80 optional bool string_as_bytes = 1 [default = false];
81 }
82
83 extend google.protobuf.FieldOptions {
84 optional ProtobufCFieldOptions pb_c_field = 1019;
85 }
6363 #include <protoc-c/c_helpers.h>
6464 #include <google/protobuf/io/printer.h>
6565 #include <google/protobuf/wire_format.h>
66 #include <google/protobuf/descriptor.pb.h>
66 #include <protobuf-c/protobuf-c.pb.h>
6767
6868 namespace google {
6969 namespace protobuf {
7373 using internal::WireFormat;
7474
7575 void SetBytesVariables(const FieldDescriptor* descriptor,
76 std::map<string, string>* variables) {
76 std::map<std::string, std::string>* variables) {
7777 (*variables)["name"] = FieldName(descriptor);
7878 (*variables)["default"] =
7979 "\"" + CEscape(descriptor->default_value_string()) + "\"";
8888 SetBytesVariables(descriptor, &variables_);
8989 variables_["default_value"] = descriptor->has_default_value()
9090 ? GetDefaultValue()
91 : string("{0,NULL}");
91 : std::string("{0,NULL}");
9292 }
9393
9494 BytesFieldGenerator::~BytesFieldGenerator() {}
112112 }
113113 void BytesFieldGenerator::GenerateDefaultValueDeclarations(io::Printer* printer) const
114114 {
115 std::map<string, string> vars;
116 vars["default_value_data"] = FullNameToLower(descriptor_->full_name())
115 std::map<std::string, std::string> vars;
116 vars["default_value_data"] = FullNameToLower(descriptor_->full_name(), descriptor_->file())
117117 + "__default_value_data";
118118 printer->Print(vars, "extern uint8_t $default_value_data$[];\n");
119119 }
120120
121121 void BytesFieldGenerator::GenerateDefaultValueImplementations(io::Printer* printer) const
122122 {
123 std::map<string, string> vars;
124 vars["default_value_data"] = FullNameToLower(descriptor_->full_name())
123 std::map<std::string, std::string> vars;
124 vars["default_value_data"] = FullNameToLower(descriptor_->full_name(), descriptor_->file())
125125 + "__default_value_data";
126126 vars["escaped"] = CEscape(descriptor_->default_value_string());
127127 printer->Print(vars, "uint8_t $default_value_data$[] = \"$escaped$\";\n");
128128 }
129 string BytesFieldGenerator::GetDefaultValue(void) const
129 std::string BytesFieldGenerator::GetDefaultValue(void) const
130130 {
131131 return "{ "
132132 + SimpleItoa(descriptor_->default_value_string().size())
133133 + ", "
134 + FullNameToLower(descriptor_->full_name())
134 + FullNameToLower(descriptor_->full_name(), descriptor_->file())
135135 + "__default_value_data }";
136136 }
137137 void BytesFieldGenerator::GenerateStaticInit(io::Printer* printer) const
8181 void GenerateDescriptorInitializer(io::Printer* printer) const;
8282 void GenerateDefaultValueDeclarations(io::Printer* printer) const;
8383 void GenerateDefaultValueImplementations(io::Printer* printer) const;
84 string GetDefaultValue(void) const;
84 std::string GetDefaultValue(void) const;
8585 void GenerateStaticInit(io::Printer* printer) const;
8686
8787 private:
88 std::map<string, string> variables_;
88 std::map<std::string, std::string> variables_;
8989
9090 GOOGLE_DISALLOW_EVIL_CONSTRUCTORS(BytesFieldGenerator);
9191 };
7272 namespace c {
7373
7474 EnumGenerator::EnumGenerator(const EnumDescriptor* descriptor,
75 const string& dllexport_decl)
75 const std::string& dllexport_decl)
7676 : descriptor_(descriptor),
7777 dllexport_decl_(dllexport_decl) {
7878 }
8080 EnumGenerator::~EnumGenerator() {}
8181
8282 void EnumGenerator::GenerateDefinition(io::Printer* printer) {
83 std::map<string, string> vars;
84 vars["classname"] = FullNameToC(descriptor_->full_name());
83 std::map<std::string, std::string> vars;
84 vars["classname"] = FullNameToC(descriptor_->full_name(), descriptor_->file());
8585 vars["shortname"] = descriptor_->name();
86 vars["uc_name"] = FullNameToUpper(descriptor_->full_name());
86 vars["uc_name"] = FullNameToUpper(descriptor_->full_name(), descriptor_->file());
8787
8888 SourceLocation sourceLoc;
8989 descriptor_->GetSourceLocation(&sourceLoc);
9797
9898
9999 vars["opt_comma"] = ",";
100 vars["prefix"] = FullNameToUpper(descriptor_->full_name()) + "__";
100 vars["prefix"] = FullNameToUpper(descriptor_->full_name(), descriptor_->file()) + "__";
101101 for (int i = 0; i < descriptor_->value_count(); i++) {
102102 vars["name"] = descriptor_->value(i)->name();
103103 vars["number"] = SimpleItoa(descriptor_->value(i)->number());
125125 }
126126
127127 void EnumGenerator::GenerateDescriptorDeclarations(io::Printer* printer) {
128 std::map<string, string> vars;
128 std::map<std::string, std::string> vars;
129129 if (dllexport_decl_.empty()) {
130130 vars["dllexport"] = "";
131131 } else {
132132 vars["dllexport"] = dllexport_decl_ + " ";
133133 }
134 vars["classname"] = FullNameToC(descriptor_->full_name());
135 vars["lcclassname"] = FullNameToLower(descriptor_->full_name());
134 vars["classname"] = FullNameToC(descriptor_->full_name(), descriptor_->file());
135 vars["lcclassname"] = FullNameToLower(descriptor_->full_name(), descriptor_->file());
136136
137137 printer->Print(vars,
138138 "extern $dllexport$const ProtobufCEnumDescriptor $lcclassname$__descriptor;\n");
148148 void EnumGenerator::GenerateValueInitializer(io::Printer *printer, int index)
149149 {
150150 const EnumValueDescriptor *vd = descriptor_->value(index);
151 std::map<string, string> vars;
151 std::map<std::string, std::string> vars;
152152 bool optimize_code_size = descriptor_->file()->options().has_optimize_for() &&
153153 descriptor_->file()->options().optimize_for() ==
154154 FileOptions_OptimizeMode_CODE_SIZE;
155155 vars["enum_value_name"] = vd->name();
156 vars["c_enum_value_name"] = FullNameToUpper(descriptor_->full_name()) + "__" + vd->name();
156 vars["c_enum_value_name"] = FullNameToUpper(descriptor_->full_name(), descriptor_->file()) + "__" + vd->name();
157157 vars["value"] = SimpleItoa(vd->number());
158158 if (optimize_code_size)
159159 printer->Print(vars, " { NULL, NULL, $value$ }, /* CODE_SIZE */\n");
181181 }
182182
183183 void EnumGenerator::GenerateEnumDescriptor(io::Printer* printer) {
184 std::map<string, string> vars;
184 std::map<std::string, std::string> vars;
185185 vars["fullname"] = descriptor_->full_name();
186 vars["lcclassname"] = FullNameToLower(descriptor_->full_name());
187 vars["cname"] = FullNameToC(descriptor_->full_name());
186 vars["lcclassname"] = FullNameToLower(descriptor_->full_name(), descriptor_->file());
187 vars["cname"] = FullNameToC(descriptor_->full_name(), descriptor_->file());
188188 vars["shortname"] = descriptor_->name();
189189 vars["packagename"] = descriptor_->file()->package();
190190 vars["value_count"] = SimpleItoa(descriptor_->value_count());
8080 public:
8181 // See generator.cc for the meaning of dllexport_decl.
8282 explicit EnumGenerator(const EnumDescriptor* descriptor,
83 const string& dllexport_decl);
83 const std::string& dllexport_decl);
8484 ~EnumGenerator();
8585
8686 // Header stuff.
104104
105105 private:
106106 const EnumDescriptor* descriptor_;
107 string dllexport_decl_;
107 std::string dllexport_decl_;
108108
109109 GOOGLE_DISALLOW_EVIL_CONSTRUCTORS(EnumGenerator);
110110 };
7474 // TODO(kenton): Factor out a "SetCommonFieldVariables()" to get rid of
7575 // repeat code between this and the other field types.
7676 void SetEnumVariables(const FieldDescriptor* descriptor,
77 std::map<string, string>* variables) {
77 std::map<std::string, std::string>* variables) {
7878
7979 (*variables)["name"] = FieldName(descriptor);
80 (*variables)["type"] = FullNameToC(descriptor->enum_type()->full_name());
80 (*variables)["type"] = FullNameToC(descriptor->enum_type()->full_name(), descriptor->enum_type()->file());
8181 const EnumValueDescriptor* default_value = descriptor->default_value_enum();
82 (*variables)["default"] = FullNameToUpper(default_value->type()->full_name())
82 (*variables)["default"] = FullNameToUpper(default_value->type()->full_name(), default_value->type()->file())
8383 + "__" + default_value->name();
8484 (*variables)["deprecated"] = FieldDeprecated(descriptor);
8585 }
113113 }
114114 }
115115
116 string EnumFieldGenerator::GetDefaultValue(void) const
116 std::string EnumFieldGenerator::GetDefaultValue(void) const
117117 {
118118 return variables_.find("default")->second;
119119 }
137137
138138 void EnumFieldGenerator::GenerateDescriptorInitializer(io::Printer* printer) const
139139 {
140 string addr = "&" + FullNameToLower(descriptor_->enum_type()->full_name()) + "__descriptor";
140 std::string addr = "&" + FullNameToLower(descriptor_->enum_type()->full_name(), descriptor_->enum_type()->file()) + "__descriptor";
141141 GenerateDescriptorInitializerGeneric(printer, true, "ENUM", addr);
142142 }
143143
7979 // implements FieldGenerator ---------------------------------------
8080 void GenerateStructMembers(io::Printer* printer) const;
8181 void GenerateDescriptorInitializer(io::Printer* printer) const;
82 string GetDefaultValue(void) const;
82 std::string GetDefaultValue(void) const;
8383 void GenerateStaticInit(io::Printer* printer) const;
8484
8585 private:
86 std::map<string, string> variables_;
86 std::map<std::string, std::string> variables_;
8787
8888 GOOGLE_DISALLOW_EVIL_CONSTRUCTORS(EnumFieldGenerator);
8989 };
6969 namespace c {
7070
7171 ExtensionGenerator::ExtensionGenerator(const FieldDescriptor* descriptor,
72 const string& dllexport_decl)
72 const std::string& dllexport_decl)
7373 : descriptor_(descriptor),
7474 dllexport_decl_(dllexport_decl) {
7575 }
8484 public:
8585 // See generator.cc for the meaning of dllexport_decl.
8686 explicit ExtensionGenerator(const FieldDescriptor* descriptor,
87 const string& dllexport_decl);
87 const std::string& dllexport_decl);
8888 ~ExtensionGenerator();
8989
9090 // Header stuff.
9595
9696 private:
9797 const FieldDescriptor* descriptor_;
98 string type_traits_;
99 string dllexport_decl_;
98 std::string type_traits_;
99 std::string dllexport_decl_;
100100
101101 GOOGLE_DISALLOW_EVIL_CONSTRUCTORS(ExtensionGenerator);
102102 };
6666 #include <protoc-c/c_enum_field.h>
6767 #include <protoc-c/c_message_field.h>
6868 #include <protoc-c/c_helpers.h>
69 #include <google/protobuf/descriptor.pb.h>
69 #include <protobuf-c/protobuf-c.pb.h>
7070 #include <google/protobuf/stubs/common.h>
7171 #include <google/protobuf/io/printer.h>
7272
102102
103103 void FieldGenerator::GenerateDescriptorInitializerGeneric(io::Printer* printer,
104104 bool optional_uses_has,
105 const string &type_macro,
106 const string &descriptor_addr) const
105 const std::string &type_macro,
106 const std::string &descriptor_addr) const
107107 {
108 std::map<string, string> variables;
108 std::map<std::string, std::string> variables;
109 const OneofDescriptor *oneof = descriptor_->containing_oneof();
110 const ProtobufCFileOptions opt = descriptor_->file()->options().GetExtension(pb_c_file);
109111 variables["TYPE"] = type_macro;
110 variables["classname"] = FullNameToC(FieldScope(descriptor_)->full_name());
112 variables["classname"] = FullNameToC(FieldScope(descriptor_)->full_name(), FieldScope(descriptor_)->file());
111113 variables["name"] = FieldName(descriptor_);
112 variables["proto_name"] = descriptor_->name();
114 if (opt.use_oneof_field_name())
115 variables["proto_name"] = oneof->name();
116 else
117 variables["proto_name"] = descriptor_->name();
113118 variables["descriptor_addr"] = descriptor_addr;
114119 variables["value"] = SimpleItoa(descriptor_->number());
115 const OneofDescriptor *oneof = descriptor_->containing_oneof();
116120 if (oneof != NULL)
117 variables["oneofname"] = FullNameToLower(oneof->name());
121 variables["oneofname"] = CamelToLower(oneof->name());
118122
119123 if (FieldSyntax(descriptor_) == 3 &&
120124 descriptor_->label() == FieldDescriptor::LABEL_OPTIONAL) {
125129 }
126130
127131 if (descriptor_->has_default_value()) {
128 variables["default_value"] = string("&")
129 + FullNameToLower(descriptor_->full_name())
132 variables["default_value"] = std::string("&")
133 + FullNameToLower(descriptor_->full_name(), descriptor_->file())
130134 + "__default_value";
131135 } else if (FieldSyntax(descriptor_) == 3 &&
132136 descriptor_->type() == FieldDescriptor::TYPE_STRING) {
202206 }
203207
204208 FieldGenerator* FieldGeneratorMap::MakeGenerator(const FieldDescriptor* field) {
209 const ProtobufCFieldOptions opt = field->options().GetExtension(pb_c_field);
205210 switch (field->type()) {
206211 case FieldDescriptor::TYPE_MESSAGE:
207212 return new MessageFieldGenerator(field);
208213 case FieldDescriptor::TYPE_STRING:
209 return new StringFieldGenerator(field);
214 if (opt.string_as_bytes())
215 return new BytesFieldGenerator(field);
216 else
217 return new StringFieldGenerator(field);
210218 case FieldDescriptor::TYPE_BYTES:
211219 return new BytesFieldGenerator(field);
212220 case FieldDescriptor::TYPE_ENUM:
9090
9191 virtual void GenerateDefaultValueDeclarations(io::Printer* printer) const { }
9292 virtual void GenerateDefaultValueImplementations(io::Printer* printer) const { }
93 virtual string GetDefaultValue() const = 0;
93 virtual std::string GetDefaultValue() const = 0;
9494
9595 // Generate members to initialize this field from a static initializer
9696 virtual void GenerateStaticInit(io::Printer* printer) const = 0;
9999 protected:
100100 void GenerateDescriptorInitializerGeneric(io::Printer* printer,
101101 bool optional_uses_has,
102 const string &type_macro,
103 const string &descriptor_addr) const;
102 const std::string &type_macro,
103 const std::string &descriptor_addr) const;
104104 const FieldDescriptor *descriptor_;
105105
106106 private:
6767 #include <protoc-c/c_helpers.h>
6868 #include <protoc-c/c_message.h>
6969 #include <google/protobuf/io/printer.h>
70 #include <google/protobuf/descriptor.pb.h>
70 #include <protobuf-c/protobuf-c.pb.h>
7171
7272 #include "protobuf-c.h"
7373
7979 // ===================================================================
8080
8181 FileGenerator::FileGenerator(const FileDescriptor* file,
82 const string& dllexport_decl)
82 const std::string& dllexport_decl)
8383 : file_(file),
8484 message_generators_(
8585 new std::unique_ptr<MessageGenerator>[file->message_type_count()]),
109109 extension_generators_[i].reset(
110110 new ExtensionGenerator(file->extension(i), dllexport_decl));
111111 }
112
113 SplitStringUsing(file_->package(), ".", &package_parts_);
114112 }
115113
116114 FileGenerator::~FileGenerator() {}
117115
118116 void FileGenerator::GenerateHeader(io::Printer* printer) {
119 string filename_identifier = FilenameIdentifier(file_->name());
117 std::string filename_identifier = FilenameIdentifier(file_->name());
120118
121119 int min_header_version = 1000000;
122120 #if defined(HAVE_PROTO3)
156154 "protoc_version", SimpleItoa(PROTOBUF_C_VERSION_NUMBER));
157155
158156 for (int i = 0; i < file_->dependency_count(); i++) {
159 printer->Print(
160 "#include \"$dependency$.pb-c.h\"\n",
161 "dependency", StripProto(file_->dependency(i)->name()));
157 const ProtobufCFileOptions opt =
158 file_->dependency(i)->options().GetExtension(pb_c_file);
159 if (!opt.no_generate()) {
160 printer->Print(
161 "#include \"$dependency$.pb-c.h\"\n",
162 "dependency", StripProto(file_->dependency(i)->name()));
163 }
162164 }
163165
164166 printer->Print("\n");
186188 }
187189
188190 for (int i = 0; i < file_->message_type_count(); i++) {
189 message_generators_[i]->GenerateHelperFunctionDeclarations(printer, false);
191 const ProtobufCFileOptions opt = file_->options().GetExtension(pb_c_file);
192
193 message_generators_[i]->GenerateHelperFunctionDeclarations(
194 printer,
195 opt.has_gen_pack_helpers(),
196 opt.gen_pack_helpers(),
197 opt.gen_init_helpers());
190198 }
191199
192200 printer->Print("/* --- per-message closures --- */\n\n");
237245 "filename", file_->name(),
238246 "basename", StripProto(file_->name()));
239247
240 #if 0
241 // For each dependency, write a prototype for that dependency's
242 // BuildDescriptors() function. We don't expose these in the header because
243 // they are internal implementation details, and since this is generated code
244 // we don't have the usual risks involved with declaring external functions
245 // within a .cc file.
246 for (int i = 0; i < file_->dependency_count(); i++) {
247 const FileDescriptor* dependency = file_->dependency(i);
248 // Open the dependency's namespace.
249 vector<string> dependency_package_parts;
250 SplitStringUsing(dependency->package(), ".", &dependency_package_parts);
251 // Declare its BuildDescriptors() function.
252 printer->Print(
253 "void $function$();",
254 "function", GlobalBuildDescriptorsName(dependency->name()));
255 // Close the namespace.
256 for (int i = 0; i < dependency_package_parts.size(); i++) {
257 printer->Print(" }");
258 }
259 printer->Print("\n");
260 }
261 #endif
262
263 for (int i = 0; i < file_->message_type_count(); i++) {
264 message_generators_[i]->GenerateHelperFunctionDefinitions(printer, false);
265 }
266 for (int i = 0; i < file_->message_type_count(); i++) {
267 message_generators_[i]->GenerateMessageDescriptor(printer);
248 const ProtobufCFileOptions opt = file_->options().GetExtension(pb_c_file);
249
250 for (int i = 0; i < file_->message_type_count(); i++) {
251 message_generators_[i]->GenerateHelperFunctionDefinitions(
252 printer,
253 opt.has_gen_pack_helpers(),
254 opt.gen_pack_helpers(),
255 opt.gen_init_helpers());
256 }
257 for (int i = 0; i < file_->message_type_count(); i++) {
258 message_generators_[i]->GenerateMessageDescriptor(printer,
259 opt.gen_init_helpers());
268260 }
269261 for (int i = 0; i < file_->enum_type_count(); i++) {
270262 enum_generators_[i]->GenerateEnumDescriptor(printer);
8989 public:
9090 // See generator.cc for the meaning of dllexport_decl.
9191 explicit FileGenerator(const FileDescriptor* file,
92 const string& dllexport_decl);
92 const std::string& dllexport_decl);
9393 ~FileGenerator();
9494
9595 void GenerateHeader(io::Printer* printer);
103103 std::unique_ptr<std::unique_ptr<ServiceGenerator>[]> service_generators_;
104104 std::unique_ptr<std::unique_ptr<ExtensionGenerator>[]> extension_generators_;
105105
106 // E.g. if the package is foo.bar, package_parts_ is {"foo", "bar"}.
107 std::vector<string> package_parts_;
108
109106 GOOGLE_DISALLOW_EVIL_CONSTRUCTORS(FileGenerator);
110107 };
111108
6969 #include <protoc-c/c_helpers.h>
7070 #include <google/protobuf/io/printer.h>
7171 #include <google/protobuf/io/zero_copy_stream.h>
72 #include <google/protobuf/descriptor.pb.h>
72 #include <protobuf-c/protobuf-c.pb.h>
7373
7474 namespace google {
7575 namespace protobuf {
8080 // "foo=bar,baz,qux=corge"
8181 // parses to the pairs:
8282 // ("foo", "bar"), ("baz", ""), ("qux", "corge")
83 void ParseOptions(const string& text, std::vector<std::pair<string, string> >* output) {
84 std::vector<string> parts;
83 void ParseOptions(const std::string& text, std::vector<std::pair<std::string, std::string> >* output) {
84 std::vector<std::string> parts;
8585 SplitStringUsing(text, ",", &parts);
8686
8787 for (unsigned i = 0; i < parts.size(); i++) {
88 string::size_type equals_pos = parts[i].find_first_of('=');
89 std::pair<string, string> value;
90 if (equals_pos == string::npos) {
88 std::string::size_type equals_pos = parts[i].find_first_of('=');
89 std::pair<std::string, std::string> value;
90 if (equals_pos == std::string::npos) {
9191 value.first = parts[i];
9292 value.second = "";
9393 } else {
102102 CGenerator::~CGenerator() {}
103103
104104 bool CGenerator::Generate(const FileDescriptor* file,
105 const string& parameter,
105 const std::string& parameter,
106106 OutputDirectory* output_directory,
107 string* error) const {
108 std::vector<std::pair<string, string> > options;
107 std::string* error) const {
108 if (file->options().GetExtension(pb_c_file).no_generate())
109 return true;
110
111 std::vector<std::pair<std::string, std::string> > options;
109112 ParseOptions(parameter, &options);
110113
111114 // -----------------------------------------------------------------
128131 // }
129132 // FOO_EXPORT is a macro which should expand to __declspec(dllexport) or
130133 // __declspec(dllimport) depending on what is being compiled.
131 string dllexport_decl;
134 std::string dllexport_decl;
132135
133136 for (unsigned i = 0; i < options.size(); i++) {
134137 if (options[i].first == "dllexport_decl") {
142145 // -----------------------------------------------------------------
143146
144147
145 string basename = StripProto(file->name());
148 std::string basename = StripProto(file->name());
146149 basename.append(".pb-c");
147150
148151 FileGenerator file_generator(file, dllexport_decl);
6767 #include <string>
6868 #include <google/protobuf/compiler/code_generator.h>
6969
70 #if defined(_WIN32) && defined(PROTOBUF_C_USE_SHARED_LIB)
71 # define PROTOC_C_EXPORT __declspec(dllexport)
72 #else
73 # define PROTOC_C_EXPORT
74 #endif
75
7076 namespace google {
7177 namespace protobuf {
7278 namespace compiler {
7682 // header. If you create your own protocol compiler binary and you want
7783 // it to support C++ output, you can do so by registering an instance of this
7884 // CodeGenerator with the CommandLineInterface in your main() function.
79 class LIBPROTOC_EXPORT CGenerator : public CodeGenerator {
85 class PROTOC_C_EXPORT CGenerator : public CodeGenerator {
8086 public:
8187 CGenerator();
8288 ~CGenerator();
8389
8490 // implements CodeGenerator ----------------------------------------
8591 bool Generate(const FileDescriptor* file,
86 const string& parameter,
92 const std::string& parameter,
8793 OutputDirectory* output_directory,
88 string* error) const;
94 std::string* error) const;
8995
9096 private:
9197 GOOGLE_DISALLOW_EVIL_CONSTRUCTORS(CGenerator);
8686 #pragma warning(disable:4996)
8787 #endif
8888
89 string DotsToUnderscores(const string& name) {
89 std::string DotsToUnderscores(const std::string& name) {
9090 return StringReplace(name, ".", "_", true);
9191 }
9292
93 string DotsToColons(const string& name) {
93 std::string DotsToColons(const std::string& name) {
9494 return StringReplace(name, ".", "::", true);
9595 }
9696
97 string SimpleFtoa(float f) {
97 std::string SimpleFtoa(float f) {
9898 char buf[100];
9999 snprintf(buf,sizeof(buf),"%.*g", FLT_DIG, f);
100100 buf[sizeof(buf)-1] = 0; /* should NOT be necessary */
101101 return buf;
102102 }
103 string SimpleDtoa(double d) {
103 std::string SimpleDtoa(double d) {
104104 char buf[100];
105105 snprintf(buf,sizeof(buf),"%.*g", DBL_DIG, d);
106106 buf[sizeof(buf)-1] = 0; /* should NOT be necessary */
107107 return buf;
108108 }
109109
110 string CamelToUpper(const string &name) {
110 std::string CamelToUpper(const std::string &name) {
111111 bool was_upper = true; // suppress initial _
112 string rv = "";
112 std::string rv = "";
113113 int len = name.length();
114114 for (int i = 0; i < len; i++) {
115115 bool is_upper = isupper(name[i]);
124124 }
125125 return rv;
126126 }
127 string CamelToLower(const string &name) {
127 std::string CamelToLower(const std::string &name) {
128128 bool was_upper = true; // suppress initial _
129 string rv = "";
129 std::string rv = "";
130130 int len = name.length();
131131 for (int i = 0; i < len; i++) {
132132 bool is_upper = isupper(name[i]);
143143 }
144144
145145
146 string ToUpper(const string &name) {
147 string rv = "";
146 std::string ToUpper(const std::string &name) {
147 std::string rv = "";
148148 int len = name.length();
149149 for (int i = 0; i < len; i++) {
150150 rv += toupper(name[i]);
151151 }
152152 return rv;
153153 }
154 string ToLower(const string &name) {
155 string rv = "";
154 std::string ToLower(const std::string &name) {
155 std::string rv = "";
156156 int len = name.length();
157157 for (int i = 0; i < len; i++) {
158158 rv += tolower(name[i]);
159159 }
160160 return rv;
161161 }
162 string ToCamel(const string &name) {
163 string rv = "";
162 std::string ToCamel(const std::string &name) {
163 std::string rv = "";
164164 int len = name.length();
165165 bool next_is_upper = true;
166166 for (int i = 0; i < len; i++) {
176176 return rv;
177177 }
178178
179 string FullNameToLower(const string &full_name) {
180 std::vector<string> pieces;
181 SplitStringUsing(full_name, ".", &pieces);
182 string rv = "";
179 std::string OverrideFullName(const std::string &full_name,
180 const FileDescriptor *file) {
181 const ProtobufCFileOptions opt = file->options().GetExtension(pb_c_file);
182 if (!opt.has_c_package())
183 return full_name;
184
185 std::string new_name = opt.c_package();
186 if (file->package().empty())
187 new_name += ".";
188
189 return new_name + full_name.substr(file->package().length());
190 }
191
192 std::string FullNameToLower(const std::string &full_name,
193 const FileDescriptor *file) {
194 std::vector<std::string> pieces;
195 SplitStringUsing(OverrideFullName(full_name, file), ".", &pieces);
196 std::string rv = "";
183197 for (unsigned i = 0; i < pieces.size(); i++) {
184198 if (pieces[i] == "") continue;
185199 if (rv != "") rv += "__";
187201 }
188202 return rv;
189203 }
190 string FullNameToUpper(const string &full_name) {
191 std::vector<string> pieces;
192 SplitStringUsing(full_name, ".", &pieces);
193 string rv = "";
204 std::string FullNameToUpper(const std::string &full_name,
205 const FileDescriptor *file) {
206 std::vector<std::string> pieces;
207 SplitStringUsing(OverrideFullName(full_name, file), ".", &pieces);
208 std::string rv = "";
194209 for (unsigned i = 0; i < pieces.size(); i++) {
195210 if (pieces[i] == "") continue;
196211 if (rv != "") rv += "__";
198213 }
199214 return rv;
200215 }
201 string FullNameToC(const string &full_name) {
202 std::vector<string> pieces;
203 SplitStringUsing(full_name, ".", &pieces);
204 string rv = "";
216 std::string FullNameToC(const std::string &full_name,
217 const FileDescriptor *file) {
218 std::vector<std::string> pieces;
219 SplitStringUsing(OverrideFullName(full_name, file), ".", &pieces);
220 std::string rv = "";
205221 for (unsigned i = 0; i < pieces.size(); i++) {
206222 if (pieces[i] == "") continue;
207223 if (rv != "") rv += "__";
210226 return rv;
211227 }
212228
213 void PrintComment (io::Printer* printer, string comment)
229 void PrintComment (io::Printer* printer, std::string comment)
214230 {
215231 if (!comment.empty())
216232 {
217 std::vector<string> comment_lines;
233 std::vector<std::string> comment_lines;
218234 SplitStringUsing (comment, "\r\n", &comment_lines);
219235 printer->Print ("/*\n");
220236 for (int i = 0; i < comment_lines.size(); i++)
227243
228244 /* Or cause other compiler issues. */
229245 size_t delim_i;
230 while ((delim_i = comment_lines[i].find("/*")) != string::npos)
246 while ((delim_i = comment_lines[i].find("/*")) != std::string::npos)
231247 comment_lines[i][delim_i] = ' ';
232248
233 while ((delim_i = comment_lines[i].find("*/")) != string::npos)
249 while ((delim_i = comment_lines[i].find("*/")) != std::string::npos)
234250 comment_lines[i][delim_i + 1] = ' ';
235251
236252 printer->Print (" *$line$\n", "line", comment_lines[i]);
240256 }
241257 }
242258
243 string ConvertToSpaces(const string &input) {
244 return string(input.size(), ' ');
259 std::string ConvertToSpaces(const std::string &input) {
260 return std::string(input.size(), ' ');
245261 }
246262
247263 int compare_name_indices_by_name(const void *a, const void *b)
252268 }
253269
254270
255 string CEscape(const string& src);
271 std::string CEscape(const std::string& src);
256272
257273 const char* const kKeywordList[] = {
258274 "and", "and_eq", "asm", "auto", "bitand", "bitor", "bool", "break", "case",
267283 "void", "volatile", "wchar_t", "while", "xor", "xor_eq"
268284 };
269285
270 std::set<string> MakeKeywordsMap() {
271 std::set<string> result;
286 std::set<std::string> MakeKeywordsMap() {
287 std::set<std::string> result;
272288 for (int i = 0; i < GOOGLE_ARRAYSIZE(kKeywordList); i++) {
273289 result.insert(kKeywordList[i]);
274290 }
275291 return result;
276292 }
277293
278 std::set<string> kKeywords = MakeKeywordsMap();
279
280 string ClassName(const Descriptor* descriptor, bool qualified) {
281 // Find "outer", the descriptor of the top-level message in which
282 // "descriptor" is embedded.
283 const Descriptor* outer = descriptor;
284 while (outer->containing_type() != NULL) outer = outer->containing_type();
285
286 const string& outer_name = outer->full_name();
287 string inner_name = descriptor->full_name().substr(outer_name.size());
288
289 if (qualified) {
290 return "::" + DotsToColons(outer_name) + DotsToUnderscores(inner_name);
291 } else {
292 return outer->name() + DotsToUnderscores(inner_name);
293 }
294 }
295
296 string ClassName(const EnumDescriptor* enum_descriptor, bool qualified) {
297 if (enum_descriptor->containing_type() == NULL) {
298 if (qualified) {
299 return DotsToColons(enum_descriptor->full_name());
300 } else {
301 return enum_descriptor->name();
302 }
303 } else {
304 string result = ClassName(enum_descriptor->containing_type(), qualified);
305 result += '_';
306 result += enum_descriptor->name();
307 return result;
308 }
309 }
310
311 string FieldName(const FieldDescriptor* field) {
312 string result = ToLower(field->name());
294 std::set<std::string> kKeywords = MakeKeywordsMap();
295
296 std::string FieldName(const FieldDescriptor* field) {
297 std::string result = ToLower(field->name());
313298 if (kKeywords.count(result) > 0) {
314299 result.append("_");
315300 }
316301 return result;
317302 }
318303
319 string FieldDeprecated(const FieldDescriptor* field) {
304 std::string FieldDeprecated(const FieldDescriptor* field) {
320305 if (field->options().deprecated()) {
321306 return " PROTOBUF_C__DEPRECATED";
322307 }
323308 return "";
324309 }
325310
326 string StripProto(const string& filename) {
311 std::string StripProto(const std::string& filename) {
327312 if (HasSuffixString(filename, ".protodevel")) {
328313 return StripSuffixString(filename, ".protodevel");
329314 } else {
332317 }
333318
334319 // Convert a file name into a valid identifier.
335 string FilenameIdentifier(const string& filename) {
336 string result;
320 std::string FilenameIdentifier(const std::string& filename) {
321 std::string result;
337322 for (unsigned i = 0; i < filename.size(); i++) {
338323 if (isalnum(filename[i])) {
339324 result.push_back(filename[i]);
349334 }
350335
351336 // Return the name of the BuildDescriptors() function for a given file.
352 string GlobalBuildDescriptorsName(const string& filename) {
337 std::string GlobalBuildDescriptorsName(const std::string& filename) {
353338 return "proto_BuildDescriptors_" + FilenameIdentifier(filename);
354339 }
355340
356 string GetLabelName(FieldDescriptor::Label label) {
341 std::string GetLabelName(FieldDescriptor::Label label) {
357342 switch (label) {
358343 case FieldDescriptor::LABEL_OPTIONAL: return "optional";
359344 case FieldDescriptor::LABEL_REQUIRED: return "required";
363348 }
364349
365350 unsigned
366 WriteIntRanges(io::Printer* printer, int n_values, const int *values, const string &name)
351 WriteIntRanges(io::Printer* printer, int n_values, const int *values, const std::string &name)
367352 {
368 std::map<string, string> vars;
353 std::map<std::string, std::string> vars;
369354 vars["name"] = name;
370355 if (n_values > 0) {
371356 int n_ranges = 1;
419404 // it only replaces the first instance of "old."
420405 // ----------------------------------------------------------------------
421406
422 void StringReplace(const string& s, const string& oldsub,
423 const string& newsub, bool replace_all,
424 string* res) {
407 void StringReplace(const std::string& s, const std::string& oldsub,
408 const std::string& newsub, bool replace_all,
409 std::string* res) {
425410 if (oldsub.empty()) {
426411 res->append(s); // if empty, append the given string.
427412 return;
428413 }
429414
430 string::size_type start_pos = 0;
431 string::size_type pos;
415 std::string::size_type start_pos = 0;
416 std::string::size_type pos;
432417 do {
433418 pos = s.find(oldsub, start_pos);
434 if (pos == string::npos) {
419 if (pos == std::string::npos) {
435420 break;
436421 }
437422 res->append(s, start_pos, pos - start_pos);
451436 // happened or not.
452437 // ----------------------------------------------------------------------
453438
454 string StringReplace(const string& s, const string& oldsub,
455 const string& newsub, bool replace_all) {
456 string ret;
439 std::string StringReplace(const std::string& s, const std::string& oldsub,
440 const std::string& newsub, bool replace_all) {
441 std::string ret;
457442 StringReplace(s, oldsub, newsub, replace_all, &ret);
458443 return ret;
459444 }
468453 // ----------------------------------------------------------------------
469454 template <typename ITR>
470455 static inline
471 void SplitStringToIteratorUsing(const string& full,
456 void SplitStringToIteratorUsing(const std::string& full,
472457 const char* delim,
473458 ITR& result) {
474459 // Optimize the common case where delim is a single character.
482467 } else {
483468 const char* start = p;
484469 while (++p != end && *p != c);
485 *result++ = string(start, p - start);
470 *result++ = std::string(start, p - start);
486471 }
487472 }
488473 return;
489474 }
490475
491 string::size_type begin_index, end_index;
476 std::string::size_type begin_index, end_index;
492477 begin_index = full.find_first_not_of(delim);
493 while (begin_index != string::npos) {
478 while (begin_index != std::string::npos) {
494479 end_index = full.find_first_of(delim, begin_index);
495 if (end_index == string::npos) {
480 if (end_index == std::string::npos) {
496481 *result++ = full.substr(begin_index);
497482 return;
498483 }
501486 }
502487 }
503488
504 void SplitStringUsing(const string& full,
489 void SplitStringUsing(const std::string& full,
505490 const char* delim,
506 std::vector<string>* result) {
507 std::back_insert_iterator< std::vector<string> > it(*result);
491 std::vector<std::string>* result) {
492 std::back_insert_iterator< std::vector<std::string> > it(*result);
508493 SplitStringToIteratorUsing(full, delim, it);
509494 }
510495
557542 dest[used] = '\0'; // doesn't count towards return value though
558543 return used;
559544 }
560 string CEscape(const string& src) {
545 std::string CEscape(const std::string& src) {
561546 const int dest_length = src.size() * 4 + 1; // Maximum possible expansion
562547 std::unique_ptr<char[]> dest(new char[dest_length]);
563548 const int len = CEscapeInternal(src.data(), src.size(),
564549 dest.get(), dest_length, false);
565550 GOOGLE_DCHECK_GE(len, 0);
566 return string(dest.get(), len);
551 return std::string(dest.get(), len);
567552 }
568553
569554 } // namespace c
6666 #include <vector>
6767 #include <sstream>
6868 #include <google/protobuf/descriptor.h>
69 #include <google/protobuf/descriptor.pb.h>
69 #include <protobuf-c/protobuf-c.pb.h>
7070 #include <google/protobuf/io/printer.h>
7171
7272 namespace google {
7474 namespace compiler {
7575 namespace c {
7676
77 // Returns the non-nested type name for the given type. If "qualified" is
78 // true, prefix the type with the full namespace. For example, if you had:
79 // package foo.bar;
80 // message Baz { message Qux {} }
81 // Then the qualified ClassName for Qux would be:
82 // Foo__Bar__Baz_Qux
83 // While the non-qualified version would be:
84 // Baz_Qux
85 string ClassName(const Descriptor* descriptor, bool qualified);
86 string ClassName(const EnumDescriptor* enum_descriptor, bool qualified);
87
8877 // --- Borrowed from stubs. ---
89 template <typename T> string SimpleItoa(T n) {
78 template <typename T> std::string SimpleItoa(T n) {
9079 std::stringstream stream;
9180 stream << n;
9281 return stream.str();
9382 }
9483
95 string SimpleFtoa(float f);
96 string SimpleDtoa(double f);
97 void SplitStringUsing(const string &str, const char *delim, std::vector<string> *out);
98 string CEscape(const string& src);
99 string StringReplace(const string& s, const string& oldsub, const string& newsub, bool replace_all);
100 inline bool HasSuffixString(const string& str, const string& suffix) { return str.size() >= suffix.size() && str.compare(str.size() - suffix.size(), suffix.size(), suffix) == 0; }
101 inline string StripSuffixString(const string& str, const string& suffix) { if (HasSuffixString(str, suffix)) { return str.substr(0, str.size() - suffix.size()); } else { return str; } }
84 std::string SimpleFtoa(float f);
85 std::string SimpleDtoa(double f);
86 void SplitStringUsing(const std::string &str, const char *delim, std::vector<std::string> *out);
87 std::string CEscape(const std::string& src);
88 std::string StringReplace(const std::string& s, const std::string& oldsub, const std::string& newsub, bool replace_all);
89 inline bool HasSuffixString(const std::string& str, const std::string& suffix) { return str.size() >= suffix.size() && str.compare(str.size() - suffix.size(), suffix.size(), suffix) == 0; }
90 inline std::string StripSuffixString(const std::string& str, const std::string& suffix) { if (HasSuffixString(str, suffix)) { return str.substr(0, str.size() - suffix.size()); } else { return str; } }
10291 char* FastHexToBuffer(int i, char* buffer);
10392
10493
10695 // The name is coerced to lower-case to emulate proto1 behavior. People
10796 // should be using lowercase-with-underscores style for proto field names
10897 // anyway, so normally this just returns field->name().
109 string FieldName(const FieldDescriptor* field);
98 std::string FieldName(const FieldDescriptor* field);
11099
111100 // Get macro string for deprecated field
112 string FieldDeprecated(const FieldDescriptor* field);
101 std::string FieldDeprecated(const FieldDescriptor* field);
113102
114103 // Returns the scope where the field was defined (for extensions, this is
115104 // different from the message type to which the field applies).
120109
121110 // convert a CamelCase class name into an all uppercase affair
122111 // with underscores separating words, e.g. MyClass becomes MY_CLASS.
123 string CamelToUpper(const string &class_name);
124 string CamelToLower(const string &class_name);
112 std::string CamelToUpper(const std::string &class_name);
113 std::string CamelToLower(const std::string &class_name);
125114
126115 // lowercased, underscored name to camel case
127 string ToCamel(const string &name);
116 std::string ToCamel(const std::string &name);
128117
129118 // lowercase the string
130 string ToLower(const string &class_name);
131 string ToUpper(const string &class_name);
119 std::string ToLower(const std::string &class_name);
120 std::string ToUpper(const std::string &class_name);
132121
133122 // full_name() to lowercase with underscores
134 string FullNameToLower(const string &full_name);
135 string FullNameToUpper(const string &full_name);
123 std::string FullNameToLower(const std::string &full_name, const FileDescriptor *file);
124 std::string FullNameToUpper(const std::string &full_name, const FileDescriptor *file);
136125
137126 // full_name() to c-typename (with underscores for packages, otherwise camel case)
138 string FullNameToC(const string &class_name);
127 std::string FullNameToC(const std::string &class_name, const FileDescriptor *file);
139128
140129 // Splits, indents, formats, and prints comment lines
141 void PrintComment (io::Printer* printer, string comment);
130 void PrintComment (io::Printer* printer, std::string comment);
142131
143132 // make a string of spaces as long as input
144 string ConvertToSpaces(const string &input);
133 std::string ConvertToSpaces(const std::string &input);
145134
146135 // Strips ".proto" or ".protodevel" from the end of a filename.
147 string StripProto(const string& filename);
136 std::string StripProto(const std::string& filename);
148137
149138 // Get the C++ type name for a primitive type (e.g. "double", "::google::protobuf::int32", etc.).
150139 // Note: non-built-in type names will be qualified, meaning they will start
158147 const char* DeclaredTypeMethodName(FieldDescriptor::Type type);
159148
160149 // Convert a file name into a valid identifier.
161 string FilenameIdentifier(const string& filename);
150 std::string FilenameIdentifier(const std::string& filename);
162151
163152 // Return the name of the BuildDescriptors() function for a given file.
164 string GlobalBuildDescriptorsName(const string& filename);
153 std::string GlobalBuildDescriptorsName(const std::string& filename);
165154
166155 // return 'required', 'optional', or 'repeated'
167 string GetLabelName(FieldDescriptor::Label label);
156 std::string GetLabelName(FieldDescriptor::Label label);
168157
169158
170159 // write IntRanges entries for a bunch of sorted values.
171160 // returns the number of ranges there are to bsearch.
172 unsigned WriteIntRanges(io::Printer* printer, int n_values, const int *values, const string &name);
161 unsigned WriteIntRanges(io::Printer* printer, int n_values, const int *values, const std::string &name);
173162
174163 struct NameIndex
175164 {
6969 #include <google/protobuf/io/printer.h>
7070 #include <google/protobuf/io/coded_stream.h>
7171 #include <google/protobuf/wire_format.h>
72 #include <google/protobuf/descriptor.pb.h>
72 #include <protobuf-c/protobuf-c.pb.h>
7373
7474 namespace google {
7575 namespace protobuf {
7979 // ===================================================================
8080
8181 MessageGenerator::MessageGenerator(const Descriptor* descriptor,
82 const string& dllexport_decl)
82 const std::string& dllexport_decl)
8383 : descriptor_(descriptor),
8484 dllexport_decl_(dllexport_decl),
8585 field_generators_(descriptor),
110110
111111 void MessageGenerator::
112112 GenerateStructTypedef(io::Printer* printer) {
113 printer->Print("typedef struct _$classname$ $classname$;\n",
114 "classname", FullNameToC(descriptor_->full_name()));
113 printer->Print("typedef struct $classname$ $classname$;\n",
114 "classname", FullNameToC(descriptor_->full_name(), descriptor_->file()));
115115
116116 for (int i = 0; i < descriptor_->nested_type_count(); i++) {
117117 nested_generators_[i]->GenerateStructTypedef(printer);
136136 nested_generators_[i]->GenerateStructDefinition(printer);
137137 }
138138
139 std::map<string, string> vars;
140 vars["classname"] = FullNameToC(descriptor_->full_name());
141 vars["lcclassname"] = FullNameToLower(descriptor_->full_name());
142 vars["ucclassname"] = FullNameToUpper(descriptor_->full_name());
139 std::map<std::string, std::string> vars;
140 vars["classname"] = FullNameToC(descriptor_->full_name(), descriptor_->file());
141 vars["lcclassname"] = FullNameToLower(descriptor_->full_name(), descriptor_->file());
142 vars["ucclassname"] = FullNameToUpper(descriptor_->full_name(), descriptor_->file());
143143 vars["field_count"] = SimpleItoa(descriptor_->field_count());
144144 if (dllexport_decl_.empty()) {
145145 vars["dllexport"] = "";
152152 const OneofDescriptor *oneof = descriptor_->oneof_decl(i);
153153 vars["opt_comma"] = ",";
154154
155 vars["oneofname"] = FullNameToUpper(oneof->name());
156 vars["foneofname"] = FullNameToC(oneof->full_name());
155 vars["oneofname"] = CamelToUpper(oneof->name());
156 vars["foneofname"] = FullNameToC(oneof->full_name(), oneof->file());
157157
158158 printer->Print("typedef enum {\n");
159159 printer->Indent();
160160 printer->Print(vars, "$ucclassname$__$oneofname$__NOT_SET = 0,\n");
161161 for (int j = 0; j < oneof->field_count(); j++) {
162162 const FieldDescriptor *field = oneof->field(j);
163 vars["fieldname"] = FullNameToUpper(field->name());
163 vars["fieldname"] = CamelToUpper(field->name());
164164 vars["fieldnum"] = SimpleItoa(field->number());
165165 bool isLast = j == oneof->field_count() - 1;
166166 if (isLast) {
168168 }
169169 printer->Print(vars, "$ucclassname$__$oneofname$_$fieldname$ = $fieldnum$$opt_comma$\n");
170170 }
171 printer->Print(vars, " PROTOBUF_C__FORCE_ENUM_TO_BE_INT_SIZE($ucclassname$__$oneofname$)\n");
171 printer->Print(vars, " PROTOBUF_C__FORCE_ENUM_TO_BE_INT_SIZE($ucclassname$__$oneofname$__CASE)\n");
172172 printer->Outdent();
173173 printer->Print(vars, "} $foneofname$Case;\n\n");
174174 }
177177 descriptor_->GetSourceLocation(&msgSourceLoc);
178178 PrintComment (printer, msgSourceLoc.leading_comments);
179179
180 printer->Print(vars,
181 "struct $dllexport$ _$classname$\n"
180 const ProtobufCMessageOptions opt =
181 descriptor_->options().GetExtension(pb_c_msg);
182 vars["base"] = opt.base_field_name();
183
184 printer->Print(vars,
185 "struct $dllexport$ $classname$\n"
182186 "{\n"
183 " ProtobufCMessage base;\n");
187 " ProtobufCMessage $base$;\n");
184188
185189 // Generate fields.
186190 printer->Indent();
199203 // Generate unions from oneofs.
200204 for (int i = 0; i < descriptor_->oneof_decl_count(); i++) {
201205 const OneofDescriptor *oneof = descriptor_->oneof_decl(i);
202 vars["oneofname"] = FullNameToLower(oneof->name());
203 vars["foneofname"] = FullNameToC(oneof->full_name());
206 vars["oneofname"] = CamelToLower(oneof->name());
207 vars["foneofname"] = FullNameToC(oneof->full_name(), oneof->file());
204208
205209 printer->Print(vars, "$foneofname$Case $oneofname$_case;\n");
206210
240244 }
241245 for (int i = 0; i < descriptor_->oneof_decl_count(); i++) {
242246 const OneofDescriptor *oneof = descriptor_->oneof_decl(i);
243 vars["foneofname"] = FullNameToUpper(oneof->full_name());
247 vars["foneofname"] = FullNameToUpper(oneof->full_name(), oneof->file());
244248 // Initialize the case enum
245249 printer->Print(vars, ", $foneofname$__NOT_SET");
246250 // Initialize the union
251255 }
252256
253257 void MessageGenerator::
254 GenerateHelperFunctionDeclarations(io::Printer* printer, bool is_submessage)
258 GenerateHelperFunctionDeclarations(io::Printer* printer,
259 bool is_pack_deep,
260 bool gen_pack,
261 bool gen_init)
255262 {
263 const ProtobufCMessageOptions opt =
264 descriptor_->options().GetExtension(pb_c_msg);
265
266 // Override parent settings, if needed
267 if (opt.has_gen_pack_helpers())
268 gen_pack = opt.gen_pack_helpers();
269 if (opt.has_gen_init_helpers())
270 gen_init = opt.gen_init_helpers();
271
256272 for (int i = 0; i < descriptor_->nested_type_count(); i++) {
257 nested_generators_[i]->GenerateHelperFunctionDeclarations(printer, true);
258 }
259
260 std::map<string, string> vars;
261 vars["classname"] = FullNameToC(descriptor_->full_name());
262 vars["lcclassname"] = FullNameToLower(descriptor_->full_name());
263 printer->Print(vars,
273 bool nested_pack = !is_pack_deep ? opt.gen_pack_helpers() : gen_pack;
274 nested_generators_[i]->GenerateHelperFunctionDeclarations(printer, true,
275 nested_pack,
276 gen_init);
277 }
278
279 std::map<std::string, std::string> vars;
280 vars["classname"] = FullNameToC(descriptor_->full_name(), descriptor_->file());
281 vars["lcclassname"] = FullNameToLower(descriptor_->full_name(), descriptor_->file());
282 if (gen_init) {
283 printer->Print(vars,
264284 "/* $classname$ methods */\n"
265285 "void $lcclassname$__init\n"
266286 " ($classname$ *message);\n"
267287 );
268 if (!is_submessage) {
288 }
289 if (gen_pack) {
269290 printer->Print(vars,
270291 "size_t $lcclassname$__get_packed_size\n"
271292 " (const $classname$ *message);\n"
290311 void MessageGenerator::
291312 GenerateDescriptorDeclarations(io::Printer* printer) {
292313 printer->Print("extern const ProtobufCMessageDescriptor $name$__descriptor;\n",
293 "name", FullNameToLower(descriptor_->full_name()));
314 "name", FullNameToLower(descriptor_->full_name(), descriptor_->file()));
294315
295316 for (int i = 0; i < descriptor_->nested_type_count(); i++) {
296317 nested_generators_[i]->GenerateDescriptorDeclarations(printer);
305326 for (int i = 0; i < descriptor_->nested_type_count(); i++) {
306327 nested_generators_[i]->GenerateClosureTypedef(printer);
307328 }
308 std::map<string, string> vars;
309 vars["name"] = FullNameToC(descriptor_->full_name());
329 std::map<std::string, std::string> vars;
330 vars["name"] = FullNameToC(descriptor_->full_name(), descriptor_->file());
310331 printer->Print(vars,
311332 "typedef void (*$name$_Closure)\n"
312333 " (const $name$ *message,\n"
324345 }
325346
326347 void MessageGenerator::
327 GenerateHelperFunctionDefinitions(io::Printer* printer, bool is_submessage)
348 GenerateHelperFunctionDefinitions(io::Printer* printer,
349 bool is_pack_deep,
350 bool gen_pack,
351 bool gen_init)
328352 {
353 const ProtobufCMessageOptions opt =
354 descriptor_->options().GetExtension(pb_c_msg);
355
356 // Override parent settings, if needed
357 if (opt.has_gen_pack_helpers())
358 gen_pack = opt.gen_pack_helpers();
359 if (opt.has_gen_init_helpers())
360 gen_init = opt.gen_init_helpers();
361
329362 for (int i = 0; i < descriptor_->nested_type_count(); i++) {
330 nested_generators_[i]->GenerateHelperFunctionDefinitions(printer, true);
331 }
332
333 std::map<string, string> vars;
334 vars["classname"] = FullNameToC(descriptor_->full_name());
335 vars["lcclassname"] = FullNameToLower(descriptor_->full_name());
336 vars["ucclassname"] = FullNameToUpper(descriptor_->full_name());
337 printer->Print(vars,
363 bool nested_pack = !is_pack_deep ? opt.gen_pack_helpers() : gen_pack;
364 nested_generators_[i]->GenerateHelperFunctionDefinitions(printer, true,
365 nested_pack,
366 gen_init);
367 }
368
369 std::map<std::string, std::string> vars;
370 vars["classname"] = FullNameToC(descriptor_->full_name(), descriptor_->file());
371 vars["lcclassname"] = FullNameToLower(descriptor_->full_name(), descriptor_->file());
372 vars["ucclassname"] = FullNameToUpper(descriptor_->full_name(), descriptor_->file());
373 vars["base"] = opt.base_field_name();
374 if (gen_init) {
375 printer->Print(vars,
338376 "void $lcclassname$__init\n"
339377 " ($classname$ *message)\n"
340378 "{\n"
341379 " static const $classname$ init_value = $ucclassname$__INIT;\n"
342380 " *message = init_value;\n"
343381 "}\n");
344 if (!is_submessage) {
382 }
383 if (gen_pack) {
345384 printer->Print(vars,
346385 "size_t $lcclassname$__get_packed_size\n"
347386 " (const $classname$ *message)\n"
348387 "{\n"
349 " assert(message->base.descriptor == &$lcclassname$__descriptor);\n"
388 " assert(message->$base$.descriptor == &$lcclassname$__descriptor);\n"
350389 " return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message));\n"
351390 "}\n"
352391 "size_t $lcclassname$__pack\n"
353392 " (const $classname$ *message,\n"
354393 " uint8_t *out)\n"
355394 "{\n"
356 " assert(message->base.descriptor == &$lcclassname$__descriptor);\n"
395 " assert(message->$base$.descriptor == &$lcclassname$__descriptor);\n"
357396 " return protobuf_c_message_pack ((const ProtobufCMessage*)message, out);\n"
358397 "}\n"
359398 "size_t $lcclassname$__pack_to_buffer\n"
360399 " (const $classname$ *message,\n"
361400 " ProtobufCBuffer *buffer)\n"
362401 "{\n"
363 " assert(message->base.descriptor == &$lcclassname$__descriptor);\n"
402 " assert(message->$base$.descriptor == &$lcclassname$__descriptor);\n"
364403 " return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer);\n"
365404 "}\n"
366405 "$classname$ *\n"
379418 "{\n"
380419 " if(!message)\n"
381420 " return;\n"
382 " assert(message->base.descriptor == &$lcclassname$__descriptor);\n"
421 " assert(message->$base$.descriptor == &$lcclassname$__descriptor);\n"
383422 " protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator);\n"
384423 "}\n"
385424 );
387426 }
388427
389428 void MessageGenerator::
390 GenerateMessageDescriptor(io::Printer* printer) {
391 std::map<string, string> vars;
429 GenerateMessageDescriptor(io::Printer* printer, bool gen_init) {
430 std::map<std::string, std::string> vars;
392431 vars["fullname"] = descriptor_->full_name();
393 vars["classname"] = FullNameToC(descriptor_->full_name());
394 vars["lcclassname"] = FullNameToLower(descriptor_->full_name());
432 vars["classname"] = FullNameToC(descriptor_->full_name(), descriptor_->file());
433 vars["lcclassname"] = FullNameToLower(descriptor_->full_name(), descriptor_->file());
395434 vars["shortname"] = ToCamel(descriptor_->name());
396435 vars["n_fields"] = SimpleItoa(descriptor_->field_count());
397436 vars["packagename"] = descriptor_->file()->package();
400439 descriptor_->file()->options().optimize_for() ==
401440 FileOptions_OptimizeMode_CODE_SIZE;
402441
442 const ProtobufCMessageOptions opt =
443 descriptor_->options().GetExtension(pb_c_msg);
444 // Override parent settings, if needed
445 if (opt.has_gen_init_helpers())
446 gen_init = opt.gen_init_helpers();
447
403448 for (int i = 0; i < descriptor_->nested_type_count(); i++) {
404 nested_generators_[i]->GenerateMessageDescriptor(printer);
449 nested_generators_[i]->GenerateMessageDescriptor(printer, gen_init);
405450 }
406451
407452 for (int i = 0; i < descriptor_->enum_type_count(); i++) {
417462
418463 for (int i = 0; i < descriptor_->field_count(); i++) {
419464 const FieldDescriptor *fd = descriptor_->field(i);
465 const ProtobufCFieldOptions opt = fd->options().GetExtension(pb_c_field);
420466 if (fd->has_default_value()) {
421467
422468 bool already_defined = false;
455501 GOOGLE_LOG(DFATAL) << "Messages can't have default values!";
456502 break;
457503 case FieldDescriptor::CPPTYPE_STRING:
458 if (fd->type() == FieldDescriptor::TYPE_BYTES)
504 if (fd->type() == FieldDescriptor::TYPE_BYTES || opt.string_as_bytes())
459505 {
460506 vars["field_dv_ctype"] = "ProtobufCBinaryData";
461507 }
470516 case FieldDescriptor::CPPTYPE_ENUM:
471517 {
472518 const EnumValueDescriptor *vd = fd->default_value_enum();
473 vars["field_dv_ctype"] = FullNameToC(vd->type()->full_name());
519 vars["field_dv_ctype"] = FullNameToC(vd->type()->full_name(), vd->type()->file());
474520 break;
475521 }
476522 default:
567613 }
568614 printer->Print(vars,
569615 " $n_ranges$,"
570 " $lcclassname$__number_ranges,\n"
571 " (ProtobufCMessageInit) $lcclassname$__init,\n"
616 " $lcclassname$__number_ranges,\n");
617 if (gen_init) {
618 printer->Print(vars,
619 " (ProtobufCMessageInit) $lcclassname$__init,\n");
620 } else {
621 printer->Print(vars,
622 " NULL, /* gen_init_helpers = false */\n");
623 }
624 printer->Print(vars,
572625 " NULL,NULL,NULL /* reserved[123] */\n"
573626 "};\n");
574627 }
8585 public:
8686 // See generator.cc for the meaning of dllexport_decl.
8787 explicit MessageGenerator(const Descriptor* descriptor,
88 const string& dllexport_decl);
88 const std::string& dllexport_decl);
8989 ~MessageGenerator();
9090
9191 // Header stuff.
110110 void GenerateStructStaticInitMacro(io::Printer* printer);
111111
112112 // Generate standard helper functions declarations for this message.
113 void GenerateHelperFunctionDeclarations(io::Printer* printer, bool is_submessage);
113 void GenerateHelperFunctionDeclarations(io::Printer* printer,
114 bool is_pack_deep,
115 bool gen_pack,
116 bool gen_init);
114117
115118 // Source file stuff.
116119
117120 // Generate code that initializes the global variable storing the message's
118121 // descriptor.
119 void GenerateMessageDescriptor(io::Printer* printer);
120 void GenerateHelperFunctionDefinitions(io::Printer* printer, bool is_submessage);
122 void GenerateMessageDescriptor(io::Printer* printer, bool gen_init);
123 void GenerateHelperFunctionDefinitions(io::Printer* printer,
124 bool is_pack_deep,
125 bool gen_pack,
126 bool gen_init);
121127
122128 private:
123129
124 string GetDefaultValueC(const FieldDescriptor *fd);
130 std::string GetDefaultValueC(const FieldDescriptor *fd);
125131
126132 const Descriptor* descriptor_;
127 string dllexport_decl_;
133 std::string dllexport_decl_;
128134 FieldGeneratorMap field_generators_;
129135 std::unique_ptr<std::unique_ptr<MessageGenerator>[]> nested_generators_;
130136 std::unique_ptr<std::unique_ptr<EnumGenerator>[]> enum_generators_;
8282
8383 void MessageFieldGenerator::GenerateStructMembers(io::Printer* printer) const
8484 {
85 std::map<string, string> vars;
85 std::map<std::string, std::string> vars;
8686 vars["name"] = FieldName(descriptor_);
87 vars["type"] = FullNameToC(descriptor_->message_type()->full_name());
87 vars["type"] = FullNameToC(descriptor_->message_type()->full_name(), descriptor_->message_type()->file());
8888 vars["deprecated"] = FieldDeprecated(descriptor_);
8989 switch (descriptor_->label()) {
9090 case FieldDescriptor::LABEL_REQUIRED:
9797 break;
9898 }
9999 }
100 string MessageFieldGenerator::GetDefaultValue(void) const
100 std::string MessageFieldGenerator::GetDefaultValue(void) const
101101 {
102102 /* XXX: update when protobuf gets support
103103 * for default-values of message fields.
118118 }
119119 void MessageFieldGenerator::GenerateDescriptorInitializer(io::Printer* printer) const
120120 {
121 string addr = "&" + FullNameToLower(descriptor_->message_type()->full_name()) + "__descriptor";
121 std::string addr = "&" + FullNameToLower(descriptor_->message_type()->full_name(), descriptor_->message_type()->file()) + "__descriptor";
122122 GenerateDescriptorInitializerGeneric(printer, false, "MESSAGE", addr);
123123 }
124124
7979 // implements FieldGenerator ---------------------------------------
8080 void GenerateStructMembers(io::Printer* printer) const;
8181 void GenerateDescriptorInitializer(io::Printer* printer) const;
82 string GetDefaultValue(void) const;
82 std::string GetDefaultValue(void) const;
8383 void GenerateStaticInit(io::Printer* printer) const;
8484
8585 private:
7878
7979 void PrimitiveFieldGenerator::GenerateStructMembers(io::Printer* printer) const
8080 {
81 string c_type;
82 std::map<string, string> vars;
81 std::string c_type;
82 std::map<std::string, std::string> vars;
8383 switch (descriptor_->type()) {
8484 case FieldDescriptor::TYPE_SINT32 :
8585 case FieldDescriptor::TYPE_SFIXED32:
122122 break;
123123 }
124124 }
125 string PrimitiveFieldGenerator::GetDefaultValue() const
125 std::string PrimitiveFieldGenerator::GetDefaultValue() const
126126 {
127127 /* XXX: SimpleItoa seems woefully inadequate for anything but int32,
128128 * but that's what protobuf uses. */
148148 }
149149 void PrimitiveFieldGenerator::GenerateStaticInit(io::Printer* printer) const
150150 {
151 std::map<string, string> vars;
151 std::map<std::string, std::string> vars;
152152 if (descriptor_->has_default_value()) {
153153 vars["default_value"] = GetDefaultValue();
154154 } else {
171171
172172 void PrimitiveFieldGenerator::GenerateDescriptorInitializer(io::Printer* printer) const
173173 {
174 string c_type_macro;
174 std::string c_type_macro;
175175 switch (descriptor_->type()) {
176176 #define WRITE_CASE(shortname) case FieldDescriptor::TYPE_##shortname: c_type_macro = #shortname; break;
177177 WRITE_CASE(INT32)
7979 // implements FieldGenerator ---------------------------------------
8080 void GenerateStructMembers(io::Printer* printer) const;
8181 void GenerateDescriptorInitializer(io::Printer* printer) const;
82 string GetDefaultValue(void) const;
82 std::string GetDefaultValue(void) const;
8383 void GenerateStaticInit(io::Printer* printer) const;
8484
8585 private:
6969 namespace c {
7070
7171 ServiceGenerator::ServiceGenerator(const ServiceDescriptor* descriptor,
72 const string& dllexport_decl)
72 const std::string& dllexport_decl)
7373 : descriptor_(descriptor) {
7474 vars_["name"] = descriptor_->name();
7575 vars_["fullname"] = descriptor_->full_name();
76 vars_["cname"] = FullNameToC(descriptor_->full_name());
77 vars_["lcfullname"] = FullNameToLower(descriptor_->full_name());
78 vars_["ucfullname"] = FullNameToUpper(descriptor_->full_name());
76 vars_["cname"] = FullNameToC(descriptor_->full_name(), descriptor_->file());
77 vars_["lcfullname"] = FullNameToLower(descriptor_->full_name(), descriptor_->file());
78 vars_["ucfullname"] = FullNameToUpper(descriptor_->full_name(), descriptor_->file());
7979 vars_["lcfullpadd"] = ConvertToSpaces(vars_["lcfullname"]);
8080 vars_["package"] = descriptor_->file()->package();
8181 if (dllexport_decl.empty()) {
9797 void ServiceGenerator::GenerateVfuncs(io::Printer* printer)
9898 {
9999 printer->Print(vars_,
100 "typedef struct _$cname$_Service $cname$_Service;\n"
101 "struct _$cname$_Service\n"
100 "typedef struct $cname$_Service $cname$_Service;\n"
101 "struct $cname$_Service\n"
102102 "{\n"
103103 " ProtobufCService base;\n");
104104 for (int i = 0; i < descriptor_->method_count(); i++) {
105105 const MethodDescriptor *method = descriptor_->method(i);
106 string lcname = CamelToLower(method->name());
107 vars_["method"] = lcname;
108 vars_["metpad"] = ConvertToSpaces(lcname);
109 vars_["input_typename"] = FullNameToC(method->input_type()->full_name());
110 vars_["output_typename"] = FullNameToC(method->output_type()->full_name());
106 std::string lcname = CamelToLower(method->name());
107 vars_["method"] = lcname;
108 vars_["metpad"] = ConvertToSpaces(lcname);
109 vars_["input_typename"] = FullNameToC(method->input_type()->full_name(), method->input_type()->file());
110 vars_["output_typename"] = FullNameToC(method->output_type()->full_name(), method->output_type()->file());
111111 printer->Print(vars_,
112112 " void (*$method$)($cname$_Service *service,\n"
113113 " $metpad$ const $input_typename$ *input,\n"
130130 " { $ucfullname$__BASE_INIT");
131131 for (int i = 0; i < descriptor_->method_count(); i++) {
132132 const MethodDescriptor *method = descriptor_->method(i);
133 string lcname = CamelToLower(method->name());
133 std::string lcname = CamelToLower(method->name());
134134 vars_["method"] = lcname;
135135 vars_["metpad"] = ConvertToSpaces(lcname);
136136 printer->Print(vars_,
143143 {
144144 for (int i = 0; i < descriptor_->method_count(); i++) {
145145 const MethodDescriptor *method = descriptor_->method(i);
146 string lcname = CamelToLower(method->name());
147 string lcfullname = FullNameToLower(descriptor_->full_name());
148 vars_["method"] = lcname;
149 vars_["metpad"] = ConvertToSpaces(lcname);
150 vars_["input_typename"] = FullNameToC(method->input_type()->full_name());
151 vars_["output_typename"] = FullNameToC(method->output_type()->full_name());
146 std::string lcname = CamelToLower(method->name());
147 std::string lcfullname = FullNameToLower(descriptor_->full_name(), descriptor_->file());
148 vars_["method"] = lcname;
149 vars_["metpad"] = ConvertToSpaces(lcname);
150 vars_["input_typename"] = FullNameToC(method->input_type()->full_name(), method->input_type()->file());
151 vars_["output_typename"] = FullNameToC(method->output_type()->full_name(), method->output_type()->file());
152152 vars_["padddddddddddddddddd"] = ConvertToSpaces(lcfullname + "__" + lcname);
153153 printer->Print(vars_,
154154 "void $lcfullname$__$method$(ProtobufCService *service,\n"
207207 for (int i = 0; i < n_methods; i++) {
208208 const MethodDescriptor *method = descriptor_->method(i);
209209 vars_["method"] = method->name();
210 vars_["input_descriptor"] = "&" + FullNameToLower(method->input_type()->full_name()) + "__descriptor";
211 vars_["output_descriptor"] = "&" + FullNameToLower(method->output_type()->full_name()) + "__descriptor";
210 vars_["input_descriptor"] = "&" + FullNameToLower(method->input_type()->full_name(), method->input_type()->file()) + "__descriptor";
211 vars_["output_descriptor"] = "&" + FullNameToLower(method->output_type()->full_name(), method->output_type()->file()) + "__descriptor";
212212 if (optimize_code_size) {
213213 printer->Print(vars_,
214214 " { NULL, $input_descriptor$, $output_descriptor$ }, /* CODE_SIZE */\n");
265265 {
266266 for (int i = 0; i < descriptor_->method_count(); i++) {
267267 const MethodDescriptor *method = descriptor_->method(i);
268 string lcname = CamelToLower(method->name());
269 string lcfullname = FullNameToLower(descriptor_->full_name());
270 vars_["method"] = lcname;
271 vars_["metpad"] = ConvertToSpaces(lcname);
272 vars_["input_typename"] = FullNameToC(method->input_type()->full_name());
273 vars_["output_typename"] = FullNameToC(method->output_type()->full_name());
268 std::string lcname = CamelToLower(method->name());
269 std::string lcfullname = FullNameToLower(descriptor_->full_name(), descriptor_->file());
270 vars_["method"] = lcname;
271 vars_["metpad"] = ConvertToSpaces(lcname);
272 vars_["input_typename"] = FullNameToC(method->input_type()->full_name(), method->input_type()->file());
273 vars_["output_typename"] = FullNameToC(method->output_type()->full_name(), method->output_type()->file());
274274 vars_["padddddddddddddddddd"] = ConvertToSpaces(lcfullname + "__" + lcname);
275275 vars_["index"] = SimpleItoa(i);
276276
8181 public:
8282 // See generator.cc for the meaning of dllexport_decl.
8383 explicit ServiceGenerator(const ServiceDescriptor* descriptor,
84 const string& dllexport_decl);
84 const std::string& dllexport_decl);
8585 ~ServiceGenerator();
8686
8787 // Header stuff.
9898 void GenerateCallersImplementations(io::Printer* printer);
9999
100100 const ServiceDescriptor* descriptor_;
101 std::map<string, string> vars_;
101 std::map<std::string, std::string> vars_;
102102
103103 GOOGLE_DISALLOW_EVIL_CONSTRUCTORS(ServiceGenerator);
104104 };
6363 #include <protoc-c/c_helpers.h>
6464 #include <google/protobuf/io/printer.h>
6565 #include <google/protobuf/wire_format.h>
66 #include <google/protobuf/descriptor.pb.h>
66 #include <protobuf-c/protobuf-c.pb.h>
6767
6868 namespace google {
6969 namespace protobuf {
7373 using internal::WireFormat;
7474
7575 void SetStringVariables(const FieldDescriptor* descriptor,
76 std::map<string, string>* variables) {
76 std::map<std::string, std::string>* variables) {
7777 (*variables)["name"] = FieldName(descriptor);
78 (*variables)["default"] = FullNameToLower(descriptor->full_name())
78 (*variables)["default"] = FullNameToLower(descriptor->full_name(), descriptor->file())
7979 + "__default_value";
8080 (*variables)["deprecated"] = FieldDeprecated(descriptor);
8181 }
9292
9393 void StringFieldGenerator::GenerateStructMembers(io::Printer* printer) const
9494 {
95 const ProtobufCFileOptions opt = descriptor_->file()->options().GetExtension(pb_c_file);
96
9597 switch (descriptor_->label()) {
9698 case FieldDescriptor::LABEL_REQUIRED:
9799 case FieldDescriptor::LABEL_OPTIONAL:
100 if (opt.const_strings())
101 printer->Print(variables_, "const ");
98102 printer->Print(variables_, "char *$name$$deprecated$;\n");
99103 break;
100104 case FieldDescriptor::LABEL_REPEATED:
101105 printer->Print(variables_, "size_t n_$name$$deprecated$;\n");
106 if (opt.const_strings())
107 printer->Print(variables_, "const ");
102108 printer->Print(variables_, "char **$name$$deprecated$;\n");
103109 break;
104110 }
109115 }
110116 void StringFieldGenerator::GenerateDefaultValueImplementations(io::Printer* printer) const
111117 {
112 std::map<string, string> vars;
118 std::map<std::string, std::string> vars;
113119 vars["default"] = variables_.find("default")->second;
114120 vars["escaped"] = CEscape(descriptor_->default_value_string());
115121 printer->Print(vars, "char $default$[] = \"$escaped$\";\n");
116122 }
117123
118 string StringFieldGenerator::GetDefaultValue(void) const
124 std::string StringFieldGenerator::GetDefaultValue(void) const
119125 {
120126 return variables_.find("default")->second;
121127 }
122128 void StringFieldGenerator::GenerateStaticInit(io::Printer* printer) const
123129 {
124 std::map<string, string> vars;
130 std::map<std::string, std::string> vars;
131 const ProtobufCFileOptions opt = descriptor_->file()->options().GetExtension(pb_c_file);
125132 if (descriptor_->has_default_value()) {
126133 vars["default"] = GetDefaultValue();
127134 } else if (FieldSyntax(descriptor_) == 2) {
128135 vars["default"] = "NULL";
136 } else if (opt.const_strings()) {
137 vars["default"] = "(const char *)protobuf_c_empty_string";
129138 } else {
130139 vars["default"] = "(char *)protobuf_c_empty_string";
131140 }
8181 void GenerateDescriptorInitializer(io::Printer* printer) const;
8282 void GenerateDefaultValueDeclarations(io::Printer* printer) const;
8383 void GenerateDefaultValueImplementations(io::Printer* printer) const;
84 string GetDefaultValue(void) const;
84 std::string GetDefaultValue(void) const;
8585 void GenerateStaticInit(io::Printer* printer) const;
8686
8787 private:
88 std::map<string, string> variables_;
88 std::map<std::string, std::string> variables_;
8989
9090 GOOGLE_DISALLOW_EVIL_CONSTRUCTORS(StringFieldGenerator);
9191 };
5555 T(0), T(2097152), T(268435455), T(127), T(16383), T(16384) };
5656 #undef T
5757
58 char *repeated_strings_0[] = { (char*)"onestring" };
59 char *repeated_strings_1[] = { (char*)"two", (char*)"string" };
60 char *repeated_strings_2[] = { (char*)"many", (char*)"tiny", (char*)"little", (char*)"strings", (char*)"should", (char*)"be", (char*)"handled" };
61 char *repeated_strings_3[] = { (char*)"one very long strings XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX" };
58 const char *repeated_strings_0[] = { "onestring" };
59 const char *repeated_strings_1[] = { "two", "string" };
60 const char *repeated_strings_2[] = { "many", "tiny", "little", "strings", "should", "be", "handled" };
61 const char *repeated_strings_3[] = { "one very long strings XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX" };
431431 #undef DO_TEST
432432 }
433433
434 static size_t foo__test_mess_optional__get_packed_size
435 (const Foo__TestMessOptional *message)
436 {
437 assert(message->base.descriptor == &foo__test_mess_optional__descriptor);
438 return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message));
439 }
440 static size_t foo__test_mess_optional__pack
441 (const Foo__TestMessOptional *message,
442 uint8_t *out)
443 {
444 assert(message->base.descriptor == &foo__test_mess_optional__descriptor);
445 return protobuf_c_message_pack ((const ProtobufCMessage*)message, out);
446 }
447 static Foo__TestMessOptional *
448 foo__test_mess_optional__unpack
449 (ProtobufCAllocator *allocator,
450 size_t len,
451 const uint8_t *data)
452 {
453 return (Foo__TestMessOptional *)
454 protobuf_c_message_unpack (&foo__test_mess_optional__descriptor,
455 allocator, len, data);
456 }
457 static void foo__test_mess_optional__free_unpacked
458 (Foo__TestMessOptional *message,
459 ProtobufCAllocator *allocator)
460 {
461 if(!message)
462 return;
463 assert(message->base.descriptor == &foo__test_mess_optional__descriptor);
464 protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator);
465 }
466
434467 /* === Optional type fields === */
435468 static void test_empty_optional (void)
436469 {
12401273 {
12411274
12421275 #define DO_TEST(static_array, example_packed_data) \
1243 DO_TEST_REPEATED(test_string, (char **), \
1276 DO_TEST_REPEATED(test_string, (const char **), \
12441277 static_array, example_packed_data, \
12451278 STRING_EQUALS)
12461279
20752108 Foo__TestMessageCheck__SubMessage sm = FOO__TEST_MESSAGE_CHECK__SUB_MESSAGE__INIT;
20762109 Foo__TestMessageCheck__SubMessage sm2 = FOO__TEST_MESSAGE_CHECK__SUB_MESSAGE__INIT;
20772110 Foo__TestMessageCheck m = FOO__TEST_MESSAGE_CHECK__INIT;
2078 char *null = NULL;
2079 char *str = "";
2111 const char *null = NULL;
2112 const char *str = "";
20802113 Foo__TestMessageCheck__SubMessage *sm_p;
20812114 ProtobufCBinaryData bd;
20822115
0 #include <stdlib.h>
1
2 #include "t/issue251/issue251.pb-c.h"
3
4 int main(void)
5 {
6 TwoOneofs msg = TWO_ONEOFS__INIT;
7 const ProtobufCFieldDescriptor *field;
8 unsigned off1, off2, off_name;
9 field = protobuf_c_message_descriptor_get_field_by_name(
10 msg.base.descriptor,
11 "first_oneof");
12 assert (field);
13 off_name = field->offset;
14 field = protobuf_c_message_descriptor_get_field(
15 msg.base.descriptor,
16 10);
17 assert (field);
18 off1 = field->offset;
19 field = protobuf_c_message_descriptor_get_field(
20 msg.base.descriptor,
21 11);
22 assert (field);
23 off2 = field->offset;
24
25 assert (off_name == off1);
26 assert (off1 == off2);
27
28 field = protobuf_c_message_descriptor_get_field_by_name(
29 msg.base.descriptor,
30 "second_oneof");
31 assert (field);
32 off_name = field->offset;
33 field = protobuf_c_message_descriptor_get_field(
34 msg.base.descriptor,
35 20);
36 assert (field);
37 off1 = field->offset;
38 field = protobuf_c_message_descriptor_get_field(
39 msg.base.descriptor,
40 21);
41 assert (field);
42 off2 = field->offset;
43
44 assert (off_name == off1);
45 assert (off1 == off2);
46 return EXIT_SUCCESS;
47 }
0 import "protobuf-c/protobuf-c.proto";
1
2 option (pb_c_file).use_oneof_field_name = true;
3
4 message two_oneofs {
5 oneof first_oneof {
6 bool a = 10;
7 bool b = 11;
8 }
9
10 oneof second_oneof {
11 bool c = 20;
12 bool d = 21;
13 }
14 }
77 {
88 assert(_MESSAGE_TYPE1__FLAG_IS_INT_SIZE == INT_MAX);
99 assert(_MESSAGE_TYPE2__ANOTHER_FLAG_IS_INT_SIZE == INT_MAX);
10 assert(_TOP_LEVEL__SUBMESSAGES_IS_INT_SIZE == INT_MAX);
10 assert(_TOP_LEVEL__SUBMESSAGES__CASE_IS_INT_SIZE == INT_MAX);
1111 return EXIT_SUCCESS;
1212 }
0 syntax = "proto3";
1
2 message EnumIntTest {
3 enum Label {
4 LABEL_1 = 0;
5 LABEL_2 = 1;
6 }
7 oneof label {
8 Label label_label = 123;
9 uint64 label_uint64 = 124;
10 }
11 }
0 #include <stdlib.h>
1 #include <string.h>
2
3 #include "t/issue440/issue440.pb-c.h"
4
5 int main(void)
6 {
7 /* Output of $ echo "int: 1 int: -142342 int: 0 int: 423423222" | \
8 * protoc issue440.proto --encode=Int | xxd -i:
9 * 0x0a, 0x11, 0x01, 0xfa, 0xa7, 0xf7, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
10 * 0x01, 0x00, 0xf6, 0xd9, 0xf3, 0xc9, 0x01
11 *
12 * Output of $ echo "int: 1 int: -142342 int: 0 int: 423423222" | \
13 * protoc issue440.proto --encode=Int | protoc issue440.proto \
14 * --decode=Boolean: boolean: true boolean: true boolean: false boolean: true
15 */
16 uint8_t protoc[] = {0x0a, 0x11, 0x01, 0xfa, 0xa7, 0xf7, 0xff, 0xff,
17 0xff, 0xff, 0xff, 0xff, 0x01, 0x00, 0xf6, 0xd9, 0xf3, 0xc9,
18 0x01};
19 Boolean *msg = boolean__unpack (NULL, sizeof protoc, protoc);
20 assert(msg);
21 assert(msg->n_boolean == 4);
22 assert(msg->boolean[0] == 1);
23 assert(msg->boolean[1] == 1);
24 assert(msg->boolean[2] == 0);
25 assert(msg->boolean[3] == 1);
26 boolean__free_unpacked (msg, NULL);
27
28 return EXIT_SUCCESS;
29 }
0 syntax = "proto3";
1
2 message Int {
3 repeated int32 int = 1;
4 }
5
6 message Boolean {
7 repeated bool boolean = 1;
8 }
00 package foo;
1
2 import "protobuf-c/protobuf-c.proto";
3
4 option (pb_c_file).const_strings = true;
15
26 message SubMess {
37 required int32 test = 4;
1014 repeated int32 rep = 4;
1115 optional bytes bytes1 = 2 [default = "a \0 char"];
1216 optional string str1 = 3 [default = "hello world\n"];
17 optional string str2 = 5 [default = "hello\0world\n",
18 (pb_c_field).string_as_bytes = true];
1319 }
1420 optional SubSubMess sub1 = 9;
1521 optional SubSubMess sub2 = 10;
114120 }
115121
116122 message TestMessOptional {
123 option (pb_c_msg).gen_pack_helpers = false;
124 option (pb_c_msg).gen_init_helpers = false;
117125 optional int32 test_int32 = 1;
118126 optional sint32 test_sint32 = 2;
119127 optional sfixed32 test_sfixed32 = 3;
00 package foo;
1
2 import "protobuf-c/protobuf-c.proto";
3
4 option (pb_c_file).c_package = "foo";
15
26 message Person {
37 required string name = 1;