1 | This file contains any messages produced by compilers while |
---|
2 | running configure, to aid debugging if configure makes a mistake. |
---|
3 | |
---|
4 | It was created by flac configure 1.3.3, which was |
---|
5 | generated by GNU Autoconf 2.71. Invocation command line was |
---|
6 | |
---|
7 | $ ./configure --prefix=/opt/local --disable-silent-rules --disable-xmms-plugin |
---|
8 | |
---|
9 | ## --------- ## |
---|
10 | ## Platform. ## |
---|
11 | ## --------- ## |
---|
12 | |
---|
13 | hostname = Sergey-Fedorovs-Mac-mini.local |
---|
14 | uname -m = x86_64 |
---|
15 | uname -r = 10.8.0 |
---|
16 | uname -s = Darwin |
---|
17 | uname -v = Darwin Kernel Version 10.8.0: Thu Sep 6 11:44:53 AST 2012; root:xnu-1504.15.3/BUILD/obj//RELEASE_X86_64 |
---|
18 | |
---|
19 | /usr/bin/uname -p = i386 |
---|
20 | /bin/uname -X = unknown |
---|
21 | |
---|
22 | /bin/arch = unknown |
---|
23 | /usr/bin/arch -k = unknown |
---|
24 | /usr/convex/getsysinfo = unknown |
---|
25 | /usr/bin/hostinfo = Mach kernel version: |
---|
26 | Darwin Kernel Version 10.8.0: Thu Sep 6 11:44:53 AST 2012; root:xnu-1504.15.3/BUILD/obj//RELEASE_X86_64 |
---|
27 | Kernel configured for up to 8 processors. |
---|
28 | 4 processors are physically available. |
---|
29 | 8 processors are logically available. |
---|
30 | Processor type: i486 (Intel 80486) |
---|
31 | Processors active: 0 1 2 3 4 5 6 7 |
---|
32 | Primary memory available: 16.00 gigabytes |
---|
33 | Default processor set: 53 tasks, 279 threads, 8 processors |
---|
34 | Load average: 1.00, Mach factor: 6.99 |
---|
35 | /bin/machine = unknown |
---|
36 | /usr/bin/oslevel = unknown |
---|
37 | /bin/universe = unknown |
---|
38 | |
---|
39 | PATH: /opt/local/bin/ |
---|
40 | PATH: /opt/local/sbin/ |
---|
41 | PATH: /bin/ |
---|
42 | PATH: /sbin/ |
---|
43 | PATH: /usr/bin/ |
---|
44 | PATH: /usr/sbin/ |
---|
45 | |
---|
46 | |
---|
47 | ## ----------- ## |
---|
48 | ## Core tests. ## |
---|
49 | ## ----------- ## |
---|
50 | |
---|
51 | configure:3188: looking for aux files: config.rpath config.guess config.sub ltmain.sh ar-lib compile missing install-sh |
---|
52 | configure:3201: trying ./ |
---|
53 | configure:3230: ./config.rpath found |
---|
54 | configure:3230: ./config.guess found |
---|
55 | configure:3230: ./config.sub found |
---|
56 | configure:3230: ./ltmain.sh found |
---|
57 | configure:3230: ./ar-lib found |
---|
58 | configure:3230: ./compile found |
---|
59 | configure:3230: ./missing found |
---|
60 | configure:3212: ./install-sh found |
---|
61 | configure:3363: checking for a BSD-compatible install |
---|
62 | configure:3436: result: /usr/bin/install -c |
---|
63 | configure:3447: checking whether build environment is sane |
---|
64 | configure:3502: result: yes |
---|
65 | configure:3661: checking for a race-free mkdir -p |
---|
66 | configure:3705: result: /opt/local/bin/gmkdir -p |
---|
67 | configure:3712: checking for gawk |
---|
68 | configure:3733: found /opt/local/bin/gawk |
---|
69 | configure:3744: result: gawk |
---|
70 | configure:3755: checking whether make sets $(MAKE) |
---|
71 | configure:3778: result: yes |
---|
72 | configure:3808: checking whether make supports nested variables |
---|
73 | configure:3826: result: yes |
---|
74 | configure:3901: checking how to create a pax tar archive |
---|
75 | configure:3912: tar --version |
---|
76 | bsdtar 2.6.2 - libarchive 2.6.2 |
---|
77 | configure:3915: $? = 0 |
---|
78 | configure:3955: tardir=conftest.dir && eval tar --format=posix -chf - "$tardir" >conftest.tar |
---|
79 | configure:3958: $? = 0 |
---|
80 | configure:3962: tar -xf - <conftest.tar |
---|
81 | configure:3965: $? = 0 |
---|
82 | configure:3967: cat conftest.dir/file |
---|
83 | GrepMe |
---|
84 | configure:3970: $? = 0 |
---|
85 | configure:3984: result: gnutar |
---|
86 | configure:4060: checking whether make supports nested variables |
---|
87 | configure:4078: result: yes |
---|
88 | configure:4090: checking whether configure should try to set CFLAGS/CXXFLAGS/CPPFLAGS/LDFLAGS |
---|
89 | configure:4099: result: no |
---|
90 | configure:4103: checking whether to enable debugging |
---|
91 | configure:4168: result: no |
---|
92 | configure:4219: checking whether make supports the include directive |
---|
93 | configure:4234: make -f confmf.GNU && cat confinc.out |
---|
94 | this is the am__doit target |
---|
95 | configure:4237: $? = 0 |
---|
96 | configure:4256: result: yes (GNU style) |
---|
97 | configure:4332: checking for gcc |
---|
98 | configure:4364: result: /usr/bin/gcc-4.2 |
---|
99 | configure:4717: checking for C compiler version |
---|
100 | configure:4726: /usr/bin/gcc-4.2 --version >&5 |
---|
101 | i686-apple-darwin10-gcc-4.2.1 (GCC) 4.2.1 (Apple Inc. build 5646) |
---|
102 | Copyright (C) 2007 Free Software Foundation, Inc. |
---|
103 | This is free software; see the source for copying conditions. There is NO |
---|
104 | warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
---|
105 | |
---|
106 | configure:4737: $? = 0 |
---|
107 | configure:4726: /usr/bin/gcc-4.2 -v >&5 |
---|
108 | Using built-in specs. |
---|
109 | Target: i686-apple-darwin10 |
---|
110 | Configured with: /var/tmp/gcc/gcc-5646~6/src/configure --disable-checking --enable-werror --prefix=/usr --mandir=/share/man --enable-languages=c,objc,c++,obj-c++ --program-transform-name=/^[cg][^.-]*$/s/$/-4.2/ --with-slibdir=/usr/lib --build=i686-apple-darwin10 --with-gxx-include-dir=/include/c++/4.2.1 --program-prefix=i686-apple-darwin10- --host=x86_64-apple-darwin10 --target=i686-apple-darwin10 |
---|
111 | Thread model: posix |
---|
112 | gcc version 4.2.1 (Apple Inc. build 5646) |
---|
113 | configure:4737: $? = 0 |
---|
114 | configure:4726: /usr/bin/gcc-4.2 -V >&5 |
---|
115 | gcc-4.2: argument to `-V' is missing |
---|
116 | configure:4737: $? = 1 |
---|
117 | configure:4726: /usr/bin/gcc-4.2 -qversion >&5 |
---|
118 | i686-apple-darwin10-gcc-4.2.1: no input files |
---|
119 | configure:4737: $? = 1 |
---|
120 | configure:4726: /usr/bin/gcc-4.2 -version >&5 |
---|
121 | i686-apple-darwin10-gcc-4.2.1: no input files |
---|
122 | configure:4737: $? = 1 |
---|
123 | configure:4757: checking whether the C compiler works |
---|
124 | configure:4779: /usr/bin/gcc-4.2 -pipe -Os -std=gnu89 -arch ppc -I/opt/local/include -L/opt/local/lib -Wl,-headerpad_max_install_names -arch ppc conftest.c >&5 |
---|
125 | configure:4783: $? = 0 |
---|
126 | configure:4833: result: yes |
---|
127 | configure:4836: checking for C compiler default output file name |
---|
128 | configure:4838: result: a.out |
---|
129 | configure:4844: checking for suffix of executables |
---|
130 | configure:4851: /usr/bin/gcc-4.2 -o conftest -pipe -Os -std=gnu89 -arch ppc -I/opt/local/include -L/opt/local/lib -Wl,-headerpad_max_install_names -arch ppc conftest.c >&5 |
---|
131 | configure:4855: $? = 0 |
---|
132 | configure:4878: result: |
---|
133 | configure:4900: checking whether we are cross compiling |
---|
134 | configure:4908: /usr/bin/gcc-4.2 -o conftest -pipe -Os -std=gnu89 -arch ppc -I/opt/local/include -L/opt/local/lib -Wl,-headerpad_max_install_names -arch ppc conftest.c >&5 |
---|
135 | configure:4912: $? = 0 |
---|
136 | configure:4919: ./conftest |
---|
137 | configure:4923: $? = 0 |
---|
138 | configure:4938: result: no |
---|
139 | configure:4943: checking for suffix of object files |
---|
140 | configure:4966: /usr/bin/gcc-4.2 -c -pipe -Os -std=gnu89 -arch ppc -I/opt/local/include conftest.c >&5 |
---|
141 | configure:4970: $? = 0 |
---|
142 | configure:4992: result: o |
---|
143 | configure:4996: checking whether the compiler supports GNU C |
---|
144 | configure:5016: /usr/bin/gcc-4.2 -c -pipe -Os -std=gnu89 -arch ppc -I/opt/local/include conftest.c >&5 |
---|
145 | configure:5016: $? = 0 |
---|
146 | configure:5026: result: yes |
---|
147 | configure:5037: checking whether /usr/bin/gcc-4.2 accepts -g |
---|
148 | configure:5058: /usr/bin/gcc-4.2 -c -g -I/opt/local/include conftest.c >&5 |
---|
149 | configure:5058: $? = 0 |
---|
150 | configure:5102: result: yes |
---|
151 | configure:5122: checking for /usr/bin/gcc-4.2 option to enable C11 features |
---|
152 | configure:5137: /usr/bin/gcc-4.2 -c -pipe -Os -std=gnu89 -arch ppc -I/opt/local/include conftest.c >&5 |
---|
153 | conftest.c:64:3: error: #error "Compiler does not advertise C99 conformance" |
---|
154 | conftest.c:119: error: expected ';', ',' or ')' before 'text' |
---|
155 | conftest.c:168:3: error: #error "Compiler does not advertise C11 conformance" |
---|
156 | conftest.c: In function '_Alignas': |
---|
157 | conftest.c:172: error: expected declaration specifiers before 'aligned_as_double' |
---|
158 | conftest.c:173: error: expected declaration specifiers or '...' before numeric constant |
---|
159 | conftest.c:173: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'no_special_alignment' |
---|
160 | conftest.c:174: error: storage class specified for parameter 'aligned_as_int' |
---|
161 | conftest.c:175: error: expected declaration specifiers or '...' before numeric constant |
---|
162 | conftest.c:175: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_Alignas' |
---|
163 | conftest.c:180: error: expected expression before 'int' |
---|
164 | conftest.c:180: error: enumerator value for 'int_alignment' is not an integer constant |
---|
165 | conftest.c:181: error: expected expression before 'int' |
---|
166 | conftest.c:181: error: enumerator value for 'int_array_alignment' is not an integer constant |
---|
167 | conftest.c:182: error: expected expression before 'char' |
---|
168 | conftest.c:183: error: enumerator value for 'char_alignment' is not an integer constant |
---|
169 | conftest.c:183: warning: empty declaration |
---|
170 | conftest.c:184: error: expected declaration specifiers before '_Static_assert' |
---|
171 | conftest.c:187: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'does_not_return' |
---|
172 | conftest.c:193: error: expected specifier-qualifier-list before '_Static_assert' |
---|
173 | conftest.c:196: warning: empty declaration |
---|
174 | conftest.c:200: error: parameter 'utf8_literal' is initialized |
---|
175 | conftest.c:200: error: 'syntax' undeclared (first use in this function) |
---|
176 | conftest.c:200: error: (Each undeclared identifier is reported only once |
---|
177 | conftest.c:200: error: for each function it appears in.) |
---|
178 | conftest.c:200: error: expected ',' or ';' before 'error' |
---|
179 | conftest.c:203: error: storage class specified for parameter 'long_ptr' |
---|
180 | conftest.c:204: error: storage class specified for parameter 'long_ptr' |
---|
181 | conftest.c:204: error: redefinition of parameter 'long_ptr' |
---|
182 | conftest.c:203: error: previous definition of 'long_ptr' was here |
---|
183 | conftest.c:205: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'long_ptr' |
---|
184 | conftest.c:220: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token |
---|
185 | conftest.c:272: error: old-style parameter declarations in prototyped function definition |
---|
186 | conftest.c:172: error: parameter name omitted |
---|
187 | conftest.c:272: error: expected '{' at end of input |
---|
188 | configure:5137: $? = 1 |
---|
189 | configure: failed program was: |
---|
190 | | /* confdefs.h */ |
---|
191 | | #define PACKAGE_NAME "flac" |
---|
192 | | #define PACKAGE_TARNAME "flac" |
---|
193 | | #define PACKAGE_VERSION "1.3.3" |
---|
194 | | #define PACKAGE_STRING "flac 1.3.3" |
---|
195 | | #define PACKAGE_BUGREPORT "flac-dev@xiph.org" |
---|
196 | | #define PACKAGE_URL "https://www.xiph.org/flac/" |
---|
197 | | #define PACKAGE "flac" |
---|
198 | | #define VERSION "1.3.3" |
---|
199 | | #define NDEBUG /**/ |
---|
200 | | /* end confdefs.h. */ |
---|
201 | | |
---|
202 | | /* Does the compiler advertise C89 conformance? |
---|
203 | | Do not test the value of __STDC__, because some compilers set it to 0 |
---|
204 | | while being otherwise adequately conformant. */ |
---|
205 | | #if !defined __STDC__ |
---|
206 | | # error "Compiler does not advertise C89 conformance" |
---|
207 | | #endif |
---|
208 | | |
---|
209 | | #include <stddef.h> |
---|
210 | | #include <stdarg.h> |
---|
211 | | struct stat; |
---|
212 | | /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */ |
---|
213 | | struct buf { int x; }; |
---|
214 | | struct buf * (*rcsopen) (struct buf *, struct stat *, int); |
---|
215 | | static char *e (p, i) |
---|
216 | | char **p; |
---|
217 | | int i; |
---|
218 | | { |
---|
219 | | return p[i]; |
---|
220 | | } |
---|
221 | | static char *f (char * (*g) (char **, int), char **p, ...) |
---|
222 | | { |
---|
223 | | char *s; |
---|
224 | | va_list v; |
---|
225 | | va_start (v,p); |
---|
226 | | s = g (p, va_arg (v,int)); |
---|
227 | | va_end (v); |
---|
228 | | return s; |
---|
229 | | } |
---|
230 | | |
---|
231 | | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
---|
232 | | function prototypes and stuff, but not \xHH hex character constants. |
---|
233 | | These do not provoke an error unfortunately, instead are silently treated |
---|
234 | | as an "x". The following induces an error, until -std is added to get |
---|
235 | | proper ANSI mode. Curiously \x00 != x always comes out true, for an |
---|
236 | | array size at least. It is necessary to write \x00 == 0 to get something |
---|
237 | | that is true only with -std. */ |
---|
238 | | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
---|
239 | | |
---|
240 | | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
---|
241 | | inside strings and character constants. */ |
---|
242 | | #define FOO(x) 'x' |
---|
243 | | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
---|
244 | | |
---|
245 | | int test (int i, double x); |
---|
246 | | struct s1 {int (*f) (int a);}; |
---|
247 | | struct s2 {int (*f) (double a);}; |
---|
248 | | int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int), |
---|
249 | | int, int); |
---|
250 | | |
---|
251 | | // Does the compiler advertise C99 conformance? |
---|
252 | | #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L |
---|
253 | | # error "Compiler does not advertise C99 conformance" |
---|
254 | | #endif |
---|
255 | | |
---|
256 | | #include <stdbool.h> |
---|
257 | | extern int puts (const char *); |
---|
258 | | extern int printf (const char *, ...); |
---|
259 | | extern int dprintf (int, const char *, ...); |
---|
260 | | extern void *malloc (size_t); |
---|
261 | | |
---|
262 | | // Check varargs macros. These examples are taken from C99 6.10.3.5. |
---|
263 | | // dprintf is used instead of fprintf to avoid needing to declare |
---|
264 | | // FILE and stderr. |
---|
265 | | #define debug(...) dprintf (2, __VA_ARGS__) |
---|
266 | | #define showlist(...) puts (#__VA_ARGS__) |
---|
267 | | #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) |
---|
268 | | static void |
---|
269 | | test_varargs_macros (void) |
---|
270 | | { |
---|
271 | | int x = 1234; |
---|
272 | | int y = 5678; |
---|
273 | | debug ("Flag"); |
---|
274 | | debug ("X = %d\n", x); |
---|
275 | | showlist (The first, second, and third items.); |
---|
276 | | report (x>y, "x is %d but y is %d", x, y); |
---|
277 | | } |
---|
278 | | |
---|
279 | | // Check long long types. |
---|
280 | | #define BIG64 18446744073709551615ull |
---|
281 | | #define BIG32 4294967295ul |
---|
282 | | #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) |
---|
283 | | #if !BIG_OK |
---|
284 | | #error "your preprocessor is broken" |
---|
285 | | #endif |
---|
286 | | #if BIG_OK |
---|
287 | | #else |
---|
288 | | #error "your preprocessor is broken" |
---|
289 | | #endif |
---|
290 | | static long long int bignum = -9223372036854775807LL; |
---|
291 | | static unsigned long long int ubignum = BIG64; |
---|
292 | | |
---|
293 | | struct incomplete_array |
---|
294 | | { |
---|
295 | | int datasize; |
---|
296 | | double data[]; |
---|
297 | | }; |
---|
298 | | |
---|
299 | | struct named_init { |
---|
300 | | int number; |
---|
301 | | const wchar_t *name; |
---|
302 | | double average; |
---|
303 | | }; |
---|
304 | | |
---|
305 | | typedef const char *ccp; |
---|
306 | | |
---|
307 | | static inline int |
---|
308 | | test_restrict (ccp restrict text) |
---|
309 | | { |
---|
310 | | // See if C++-style comments work. |
---|
311 | | // Iterate through items via the restricted pointer. |
---|
312 | | // Also check for declarations in for loops. |
---|
313 | | for (unsigned int i = 0; *(text+i) != '\0'; ++i) |
---|
314 | | continue; |
---|
315 | | return 0; |
---|
316 | | } |
---|
317 | | |
---|
318 | | // Check varargs and va_copy. |
---|
319 | | static bool |
---|
320 | | test_varargs (const char *format, ...) |
---|
321 | | { |
---|
322 | | va_list args; |
---|
323 | | va_start (args, format); |
---|
324 | | va_list args_copy; |
---|
325 | | va_copy (args_copy, args); |
---|
326 | | |
---|
327 | | const char *str = ""; |
---|
328 | | int number = 0; |
---|
329 | | float fnumber = 0; |
---|
330 | | |
---|
331 | | while (*format) |
---|
332 | | { |
---|
333 | | switch (*format++) |
---|
334 | | { |
---|
335 | | case 's': // string |
---|
336 | | str = va_arg (args_copy, const char *); |
---|
337 | | break; |
---|
338 | | case 'd': // int |
---|
339 | | number = va_arg (args_copy, int); |
---|
340 | | break; |
---|
341 | | case 'f': // float |
---|
342 | | fnumber = va_arg (args_copy, double); |
---|
343 | | break; |
---|
344 | | default: |
---|
345 | | break; |
---|
346 | | } |
---|
347 | | } |
---|
348 | | va_end (args_copy); |
---|
349 | | va_end (args); |
---|
350 | | |
---|
351 | | return *str && number && fnumber; |
---|
352 | | } |
---|
353 | | |
---|
354 | | |
---|
355 | | // Does the compiler advertise C11 conformance? |
---|
356 | | #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L |
---|
357 | | # error "Compiler does not advertise C11 conformance" |
---|
358 | | #endif |
---|
359 | | |
---|
360 | | // Check _Alignas. |
---|
361 | | char _Alignas (double) aligned_as_double; |
---|
362 | | char _Alignas (0) no_special_alignment; |
---|
363 | | extern char aligned_as_int; |
---|
364 | | char _Alignas (0) _Alignas (int) aligned_as_int; |
---|
365 | | |
---|
366 | | // Check _Alignof. |
---|
367 | | enum |
---|
368 | | { |
---|
369 | | int_alignment = _Alignof (int), |
---|
370 | | int_array_alignment = _Alignof (int[100]), |
---|
371 | | char_alignment = _Alignof (char) |
---|
372 | | }; |
---|
373 | | _Static_assert (0 < -_Alignof (int), "_Alignof is signed"); |
---|
374 | | |
---|
375 | | // Check _Noreturn. |
---|
376 | | int _Noreturn does_not_return (void) { for (;;) continue; } |
---|
377 | | |
---|
378 | | // Check _Static_assert. |
---|
379 | | struct test_static_assert |
---|
380 | | { |
---|
381 | | int x; |
---|
382 | | _Static_assert (sizeof (int) <= sizeof (long int), |
---|
383 | | "_Static_assert does not work in struct"); |
---|
384 | | long int y; |
---|
385 | | }; |
---|
386 | | |
---|
387 | | // Check UTF-8 literals. |
---|
388 | | #define u8 syntax error! |
---|
389 | | char const utf8_literal[] = u8"happens to be ASCII" "another string"; |
---|
390 | | |
---|
391 | | // Check duplicate typedefs. |
---|
392 | | typedef long *long_ptr; |
---|
393 | | typedef long int *long_ptr; |
---|
394 | | typedef long_ptr long_ptr; |
---|
395 | | |
---|
396 | | // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1. |
---|
397 | | struct anonymous |
---|
398 | | { |
---|
399 | | union { |
---|
400 | | struct { int i; int j; }; |
---|
401 | | struct { int k; long int l; } w; |
---|
402 | | }; |
---|
403 | | int m; |
---|
404 | | } v1; |
---|
405 | | |
---|
406 | | |
---|
407 | | int |
---|
408 | | main (int argc, char **argv) |
---|
409 | | { |
---|
410 | | int ok = 0; |
---|
411 | | |
---|
412 | | ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]); |
---|
413 | | |
---|
414 | | |
---|
415 | | // Check bool. |
---|
416 | | _Bool success = false; |
---|
417 | | success |= (argc != 0); |
---|
418 | | |
---|
419 | | // Check restrict. |
---|
420 | | if (test_restrict ("String literal") == 0) |
---|
421 | | success = true; |
---|
422 | | char *restrict newvar = "Another string"; |
---|
423 | | |
---|
424 | | // Check varargs. |
---|
425 | | success &= test_varargs ("s, d' f .", "string", 65, 34.234); |
---|
426 | | test_varargs_macros (); |
---|
427 | | |
---|
428 | | // Check flexible array members. |
---|
429 | | struct incomplete_array *ia = |
---|
430 | | malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); |
---|
431 | | ia->datasize = 10; |
---|
432 | | for (int i = 0; i < ia->datasize; ++i) |
---|
433 | | ia->data[i] = i * 1.234; |
---|
434 | | |
---|
435 | | // Check named initializers. |
---|
436 | | struct named_init ni = { |
---|
437 | | .number = 34, |
---|
438 | | .name = L"Test wide string", |
---|
439 | | .average = 543.34343, |
---|
440 | | }; |
---|
441 | | |
---|
442 | | ni.number = 58; |
---|
443 | | |
---|
444 | | int dynamic_array[ni.number]; |
---|
445 | | dynamic_array[0] = argv[0][0]; |
---|
446 | | dynamic_array[ni.number - 1] = 543; |
---|
447 | | |
---|
448 | | // work around unused variable warnings |
---|
449 | | ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' |
---|
450 | | || dynamic_array[ni.number - 1] != 543); |
---|
451 | | |
---|
452 | | |
---|
453 | | _Static_assert ((offsetof (struct anonymous, i) |
---|
454 | | == offsetof (struct anonymous, w.k)), |
---|
455 | | "Anonymous union alignment botch"); |
---|
456 | | v1.i = 2; |
---|
457 | | v1.w.k = 5; |
---|
458 | | ok |= v1.i != 5; |
---|
459 | | |
---|
460 | | return ok; |
---|
461 | | } |
---|
462 | | |
---|
463 | configure:5137: /usr/bin/gcc-4.2 -std=gnu11 -c -pipe -Os -std=gnu89 -arch ppc -I/opt/local/include conftest.c >&5 |
---|
464 | cc1: error: unrecognized command line option "-std=gnu11" |
---|
465 | configure:5137: $? = 1 |
---|
466 | configure: failed program was: |
---|
467 | | /* confdefs.h */ |
---|
468 | | #define PACKAGE_NAME "flac" |
---|
469 | | #define PACKAGE_TARNAME "flac" |
---|
470 | | #define PACKAGE_VERSION "1.3.3" |
---|
471 | | #define PACKAGE_STRING "flac 1.3.3" |
---|
472 | | #define PACKAGE_BUGREPORT "flac-dev@xiph.org" |
---|
473 | | #define PACKAGE_URL "https://www.xiph.org/flac/" |
---|
474 | | #define PACKAGE "flac" |
---|
475 | | #define VERSION "1.3.3" |
---|
476 | | #define NDEBUG /**/ |
---|
477 | | /* end confdefs.h. */ |
---|
478 | | |
---|
479 | | /* Does the compiler advertise C89 conformance? |
---|
480 | | Do not test the value of __STDC__, because some compilers set it to 0 |
---|
481 | | while being otherwise adequately conformant. */ |
---|
482 | | #if !defined __STDC__ |
---|
483 | | # error "Compiler does not advertise C89 conformance" |
---|
484 | | #endif |
---|
485 | | |
---|
486 | | #include <stddef.h> |
---|
487 | | #include <stdarg.h> |
---|
488 | | struct stat; |
---|
489 | | /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */ |
---|
490 | | struct buf { int x; }; |
---|
491 | | struct buf * (*rcsopen) (struct buf *, struct stat *, int); |
---|
492 | | static char *e (p, i) |
---|
493 | | char **p; |
---|
494 | | int i; |
---|
495 | | { |
---|
496 | | return p[i]; |
---|
497 | | } |
---|
498 | | static char *f (char * (*g) (char **, int), char **p, ...) |
---|
499 | | { |
---|
500 | | char *s; |
---|
501 | | va_list v; |
---|
502 | | va_start (v,p); |
---|
503 | | s = g (p, va_arg (v,int)); |
---|
504 | | va_end (v); |
---|
505 | | return s; |
---|
506 | | } |
---|
507 | | |
---|
508 | | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
---|
509 | | function prototypes and stuff, but not \xHH hex character constants. |
---|
510 | | These do not provoke an error unfortunately, instead are silently treated |
---|
511 | | as an "x". The following induces an error, until -std is added to get |
---|
512 | | proper ANSI mode. Curiously \x00 != x always comes out true, for an |
---|
513 | | array size at least. It is necessary to write \x00 == 0 to get something |
---|
514 | | that is true only with -std. */ |
---|
515 | | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
---|
516 | | |
---|
517 | | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
---|
518 | | inside strings and character constants. */ |
---|
519 | | #define FOO(x) 'x' |
---|
520 | | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
---|
521 | | |
---|
522 | | int test (int i, double x); |
---|
523 | | struct s1 {int (*f) (int a);}; |
---|
524 | | struct s2 {int (*f) (double a);}; |
---|
525 | | int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int), |
---|
526 | | int, int); |
---|
527 | | |
---|
528 | | // Does the compiler advertise C99 conformance? |
---|
529 | | #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L |
---|
530 | | # error "Compiler does not advertise C99 conformance" |
---|
531 | | #endif |
---|
532 | | |
---|
533 | | #include <stdbool.h> |
---|
534 | | extern int puts (const char *); |
---|
535 | | extern int printf (const char *, ...); |
---|
536 | | extern int dprintf (int, const char *, ...); |
---|
537 | | extern void *malloc (size_t); |
---|
538 | | |
---|
539 | | // Check varargs macros. These examples are taken from C99 6.10.3.5. |
---|
540 | | // dprintf is used instead of fprintf to avoid needing to declare |
---|
541 | | // FILE and stderr. |
---|
542 | | #define debug(...) dprintf (2, __VA_ARGS__) |
---|
543 | | #define showlist(...) puts (#__VA_ARGS__) |
---|
544 | | #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) |
---|
545 | | static void |
---|
546 | | test_varargs_macros (void) |
---|
547 | | { |
---|
548 | | int x = 1234; |
---|
549 | | int y = 5678; |
---|
550 | | debug ("Flag"); |
---|
551 | | debug ("X = %d\n", x); |
---|
552 | | showlist (The first, second, and third items.); |
---|
553 | | report (x>y, "x is %d but y is %d", x, y); |
---|
554 | | } |
---|
555 | | |
---|
556 | | // Check long long types. |
---|
557 | | #define BIG64 18446744073709551615ull |
---|
558 | | #define BIG32 4294967295ul |
---|
559 | | #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) |
---|
560 | | #if !BIG_OK |
---|
561 | | #error "your preprocessor is broken" |
---|
562 | | #endif |
---|
563 | | #if BIG_OK |
---|
564 | | #else |
---|
565 | | #error "your preprocessor is broken" |
---|
566 | | #endif |
---|
567 | | static long long int bignum = -9223372036854775807LL; |
---|
568 | | static unsigned long long int ubignum = BIG64; |
---|
569 | | |
---|
570 | | struct incomplete_array |
---|
571 | | { |
---|
572 | | int datasize; |
---|
573 | | double data[]; |
---|
574 | | }; |
---|
575 | | |
---|
576 | | struct named_init { |
---|
577 | | int number; |
---|
578 | | const wchar_t *name; |
---|
579 | | double average; |
---|
580 | | }; |
---|
581 | | |
---|
582 | | typedef const char *ccp; |
---|
583 | | |
---|
584 | | static inline int |
---|
585 | | test_restrict (ccp restrict text) |
---|
586 | | { |
---|
587 | | // See if C++-style comments work. |
---|
588 | | // Iterate through items via the restricted pointer. |
---|
589 | | // Also check for declarations in for loops. |
---|
590 | | for (unsigned int i = 0; *(text+i) != '\0'; ++i) |
---|
591 | | continue; |
---|
592 | | return 0; |
---|
593 | | } |
---|
594 | | |
---|
595 | | // Check varargs and va_copy. |
---|
596 | | static bool |
---|
597 | | test_varargs (const char *format, ...) |
---|
598 | | { |
---|
599 | | va_list args; |
---|
600 | | va_start (args, format); |
---|
601 | | va_list args_copy; |
---|
602 | | va_copy (args_copy, args); |
---|
603 | | |
---|
604 | | const char *str = ""; |
---|
605 | | int number = 0; |
---|
606 | | float fnumber = 0; |
---|
607 | | |
---|
608 | | while (*format) |
---|
609 | | { |
---|
610 | | switch (*format++) |
---|
611 | | { |
---|
612 | | case 's': // string |
---|
613 | | str = va_arg (args_copy, const char *); |
---|
614 | | break; |
---|
615 | | case 'd': // int |
---|
616 | | number = va_arg (args_copy, int); |
---|
617 | | break; |
---|
618 | | case 'f': // float |
---|
619 | | fnumber = va_arg (args_copy, double); |
---|
620 | | break; |
---|
621 | | default: |
---|
622 | | break; |
---|
623 | | } |
---|
624 | | } |
---|
625 | | va_end (args_copy); |
---|
626 | | va_end (args); |
---|
627 | | |
---|
628 | | return *str && number && fnumber; |
---|
629 | | } |
---|
630 | | |
---|
631 | | |
---|
632 | | // Does the compiler advertise C11 conformance? |
---|
633 | | #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L |
---|
634 | | # error "Compiler does not advertise C11 conformance" |
---|
635 | | #endif |
---|
636 | | |
---|
637 | | // Check _Alignas. |
---|
638 | | char _Alignas (double) aligned_as_double; |
---|
639 | | char _Alignas (0) no_special_alignment; |
---|
640 | | extern char aligned_as_int; |
---|
641 | | char _Alignas (0) _Alignas (int) aligned_as_int; |
---|
642 | | |
---|
643 | | // Check _Alignof. |
---|
644 | | enum |
---|
645 | | { |
---|
646 | | int_alignment = _Alignof (int), |
---|
647 | | int_array_alignment = _Alignof (int[100]), |
---|
648 | | char_alignment = _Alignof (char) |
---|
649 | | }; |
---|
650 | | _Static_assert (0 < -_Alignof (int), "_Alignof is signed"); |
---|
651 | | |
---|
652 | | // Check _Noreturn. |
---|
653 | | int _Noreturn does_not_return (void) { for (;;) continue; } |
---|
654 | | |
---|
655 | | // Check _Static_assert. |
---|
656 | | struct test_static_assert |
---|
657 | | { |
---|
658 | | int x; |
---|
659 | | _Static_assert (sizeof (int) <= sizeof (long int), |
---|
660 | | "_Static_assert does not work in struct"); |
---|
661 | | long int y; |
---|
662 | | }; |
---|
663 | | |
---|
664 | | // Check UTF-8 literals. |
---|
665 | | #define u8 syntax error! |
---|
666 | | char const utf8_literal[] = u8"happens to be ASCII" "another string"; |
---|
667 | | |
---|
668 | | // Check duplicate typedefs. |
---|
669 | | typedef long *long_ptr; |
---|
670 | | typedef long int *long_ptr; |
---|
671 | | typedef long_ptr long_ptr; |
---|
672 | | |
---|
673 | | // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1. |
---|
674 | | struct anonymous |
---|
675 | | { |
---|
676 | | union { |
---|
677 | | struct { int i; int j; }; |
---|
678 | | struct { int k; long int l; } w; |
---|
679 | | }; |
---|
680 | | int m; |
---|
681 | | } v1; |
---|
682 | | |
---|
683 | | |
---|
684 | | int |
---|
685 | | main (int argc, char **argv) |
---|
686 | | { |
---|
687 | | int ok = 0; |
---|
688 | | |
---|
689 | | ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]); |
---|
690 | | |
---|
691 | | |
---|
692 | | // Check bool. |
---|
693 | | _Bool success = false; |
---|
694 | | success |= (argc != 0); |
---|
695 | | |
---|
696 | | // Check restrict. |
---|
697 | | if (test_restrict ("String literal") == 0) |
---|
698 | | success = true; |
---|
699 | | char *restrict newvar = "Another string"; |
---|
700 | | |
---|
701 | | // Check varargs. |
---|
702 | | success &= test_varargs ("s, d' f .", "string", 65, 34.234); |
---|
703 | | test_varargs_macros (); |
---|
704 | | |
---|
705 | | // Check flexible array members. |
---|
706 | | struct incomplete_array *ia = |
---|
707 | | malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); |
---|
708 | | ia->datasize = 10; |
---|
709 | | for (int i = 0; i < ia->datasize; ++i) |
---|
710 | | ia->data[i] = i * 1.234; |
---|
711 | | |
---|
712 | | // Check named initializers. |
---|
713 | | struct named_init ni = { |
---|
714 | | .number = 34, |
---|
715 | | .name = L"Test wide string", |
---|
716 | | .average = 543.34343, |
---|
717 | | }; |
---|
718 | | |
---|
719 | | ni.number = 58; |
---|
720 | | |
---|
721 | | int dynamic_array[ni.number]; |
---|
722 | | dynamic_array[0] = argv[0][0]; |
---|
723 | | dynamic_array[ni.number - 1] = 543; |
---|
724 | | |
---|
725 | | // work around unused variable warnings |
---|
726 | | ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' |
---|
727 | | || dynamic_array[ni.number - 1] != 543); |
---|
728 | | |
---|
729 | | |
---|
730 | | _Static_assert ((offsetof (struct anonymous, i) |
---|
731 | | == offsetof (struct anonymous, w.k)), |
---|
732 | | "Anonymous union alignment botch"); |
---|
733 | | v1.i = 2; |
---|
734 | | v1.w.k = 5; |
---|
735 | | ok |= v1.i != 5; |
---|
736 | | |
---|
737 | | return ok; |
---|
738 | | } |
---|
739 | | |
---|
740 | configure:5150: result: unsupported |
---|
741 | configure:5168: checking for /usr/bin/gcc-4.2 option to enable C99 features |
---|
742 | configure:5183: /usr/bin/gcc-4.2 -c -pipe -Os -std=gnu89 -arch ppc -I/opt/local/include conftest.c >&5 |
---|
743 | conftest.c:64:3: error: #error "Compiler does not advertise C99 conformance" |
---|
744 | conftest.c:119: error: expected ';', ',' or ')' before 'text' |
---|
745 | conftest.c: In function 'main': |
---|
746 | conftest.c:181: error: nested functions are disabled, use -fnested-functions to re-enable |
---|
747 | conftest.c:181: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'newvar' |
---|
748 | conftest.c:181: error: 'newvar' undeclared (first use in this function) |
---|
749 | conftest.c:181: error: (Each undeclared identifier is reported only once |
---|
750 | conftest.c:181: error: for each function it appears in.) |
---|
751 | conftest.c:191: error: 'for' loop initial declaration used outside C99 mode |
---|
752 | configure:5183: $? = 1 |
---|
753 | configure: failed program was: |
---|
754 | | /* confdefs.h */ |
---|
755 | | #define PACKAGE_NAME "flac" |
---|
756 | | #define PACKAGE_TARNAME "flac" |
---|
757 | | #define PACKAGE_VERSION "1.3.3" |
---|
758 | | #define PACKAGE_STRING "flac 1.3.3" |
---|
759 | | #define PACKAGE_BUGREPORT "flac-dev@xiph.org" |
---|
760 | | #define PACKAGE_URL "https://www.xiph.org/flac/" |
---|
761 | | #define PACKAGE "flac" |
---|
762 | | #define VERSION "1.3.3" |
---|
763 | | #define NDEBUG /**/ |
---|
764 | | /* end confdefs.h. */ |
---|
765 | | |
---|
766 | | /* Does the compiler advertise C89 conformance? |
---|
767 | | Do not test the value of __STDC__, because some compilers set it to 0 |
---|
768 | | while being otherwise adequately conformant. */ |
---|
769 | | #if !defined __STDC__ |
---|
770 | | # error "Compiler does not advertise C89 conformance" |
---|
771 | | #endif |
---|
772 | | |
---|
773 | | #include <stddef.h> |
---|
774 | | #include <stdarg.h> |
---|
775 | | struct stat; |
---|
776 | | /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */ |
---|
777 | | struct buf { int x; }; |
---|
778 | | struct buf * (*rcsopen) (struct buf *, struct stat *, int); |
---|
779 | | static char *e (p, i) |
---|
780 | | char **p; |
---|
781 | | int i; |
---|
782 | | { |
---|
783 | | return p[i]; |
---|
784 | | } |
---|
785 | | static char *f (char * (*g) (char **, int), char **p, ...) |
---|
786 | | { |
---|
787 | | char *s; |
---|
788 | | va_list v; |
---|
789 | | va_start (v,p); |
---|
790 | | s = g (p, va_arg (v,int)); |
---|
791 | | va_end (v); |
---|
792 | | return s; |
---|
793 | | } |
---|
794 | | |
---|
795 | | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
---|
796 | | function prototypes and stuff, but not \xHH hex character constants. |
---|
797 | | These do not provoke an error unfortunately, instead are silently treated |
---|
798 | | as an "x". The following induces an error, until -std is added to get |
---|
799 | | proper ANSI mode. Curiously \x00 != x always comes out true, for an |
---|
800 | | array size at least. It is necessary to write \x00 == 0 to get something |
---|
801 | | that is true only with -std. */ |
---|
802 | | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
---|
803 | | |
---|
804 | | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
---|
805 | | inside strings and character constants. */ |
---|
806 | | #define FOO(x) 'x' |
---|
807 | | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
---|
808 | | |
---|
809 | | int test (int i, double x); |
---|
810 | | struct s1 {int (*f) (int a);}; |
---|
811 | | struct s2 {int (*f) (double a);}; |
---|
812 | | int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int), |
---|
813 | | int, int); |
---|
814 | | |
---|
815 | | // Does the compiler advertise C99 conformance? |
---|
816 | | #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L |
---|
817 | | # error "Compiler does not advertise C99 conformance" |
---|
818 | | #endif |
---|
819 | | |
---|
820 | | #include <stdbool.h> |
---|
821 | | extern int puts (const char *); |
---|
822 | | extern int printf (const char *, ...); |
---|
823 | | extern int dprintf (int, const char *, ...); |
---|
824 | | extern void *malloc (size_t); |
---|
825 | | |
---|
826 | | // Check varargs macros. These examples are taken from C99 6.10.3.5. |
---|
827 | | // dprintf is used instead of fprintf to avoid needing to declare |
---|
828 | | // FILE and stderr. |
---|
829 | | #define debug(...) dprintf (2, __VA_ARGS__) |
---|
830 | | #define showlist(...) puts (#__VA_ARGS__) |
---|
831 | | #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) |
---|
832 | | static void |
---|
833 | | test_varargs_macros (void) |
---|
834 | | { |
---|
835 | | int x = 1234; |
---|
836 | | int y = 5678; |
---|
837 | | debug ("Flag"); |
---|
838 | | debug ("X = %d\n", x); |
---|
839 | | showlist (The first, second, and third items.); |
---|
840 | | report (x>y, "x is %d but y is %d", x, y); |
---|
841 | | } |
---|
842 | | |
---|
843 | | // Check long long types. |
---|
844 | | #define BIG64 18446744073709551615ull |
---|
845 | | #define BIG32 4294967295ul |
---|
846 | | #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) |
---|
847 | | #if !BIG_OK |
---|
848 | | #error "your preprocessor is broken" |
---|
849 | | #endif |
---|
850 | | #if BIG_OK |
---|
851 | | #else |
---|
852 | | #error "your preprocessor is broken" |
---|
853 | | #endif |
---|
854 | | static long long int bignum = -9223372036854775807LL; |
---|
855 | | static unsigned long long int ubignum = BIG64; |
---|
856 | | |
---|
857 | | struct incomplete_array |
---|
858 | | { |
---|
859 | | int datasize; |
---|
860 | | double data[]; |
---|
861 | | }; |
---|
862 | | |
---|
863 | | struct named_init { |
---|
864 | | int number; |
---|
865 | | const wchar_t *name; |
---|
866 | | double average; |
---|
867 | | }; |
---|
868 | | |
---|
869 | | typedef const char *ccp; |
---|
870 | | |
---|
871 | | static inline int |
---|
872 | | test_restrict (ccp restrict text) |
---|
873 | | { |
---|
874 | | // See if C++-style comments work. |
---|
875 | | // Iterate through items via the restricted pointer. |
---|
876 | | // Also check for declarations in for loops. |
---|
877 | | for (unsigned int i = 0; *(text+i) != '\0'; ++i) |
---|
878 | | continue; |
---|
879 | | return 0; |
---|
880 | | } |
---|
881 | | |
---|
882 | | // Check varargs and va_copy. |
---|
883 | | static bool |
---|
884 | | test_varargs (const char *format, ...) |
---|
885 | | { |
---|
886 | | va_list args; |
---|
887 | | va_start (args, format); |
---|
888 | | va_list args_copy; |
---|
889 | | va_copy (args_copy, args); |
---|
890 | | |
---|
891 | | const char *str = ""; |
---|
892 | | int number = 0; |
---|
893 | | float fnumber = 0; |
---|
894 | | |
---|
895 | | while (*format) |
---|
896 | | { |
---|
897 | | switch (*format++) |
---|
898 | | { |
---|
899 | | case 's': // string |
---|
900 | | str = va_arg (args_copy, const char *); |
---|
901 | | break; |
---|
902 | | case 'd': // int |
---|
903 | | number = va_arg (args_copy, int); |
---|
904 | | break; |
---|
905 | | case 'f': // float |
---|
906 | | fnumber = va_arg (args_copy, double); |
---|
907 | | break; |
---|
908 | | default: |
---|
909 | | break; |
---|
910 | | } |
---|
911 | | } |
---|
912 | | va_end (args_copy); |
---|
913 | | va_end (args); |
---|
914 | | |
---|
915 | | return *str && number && fnumber; |
---|
916 | | } |
---|
917 | | |
---|
918 | | |
---|
919 | | int |
---|
920 | | main (int argc, char **argv) |
---|
921 | | { |
---|
922 | | int ok = 0; |
---|
923 | | |
---|
924 | | ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]); |
---|
925 | | |
---|
926 | | |
---|
927 | | // Check bool. |
---|
928 | | _Bool success = false; |
---|
929 | | success |= (argc != 0); |
---|
930 | | |
---|
931 | | // Check restrict. |
---|
932 | | if (test_restrict ("String literal") == 0) |
---|
933 | | success = true; |
---|
934 | | char *restrict newvar = "Another string"; |
---|
935 | | |
---|
936 | | // Check varargs. |
---|
937 | | success &= test_varargs ("s, d' f .", "string", 65, 34.234); |
---|
938 | | test_varargs_macros (); |
---|
939 | | |
---|
940 | | // Check flexible array members. |
---|
941 | | struct incomplete_array *ia = |
---|
942 | | malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); |
---|
943 | | ia->datasize = 10; |
---|
944 | | for (int i = 0; i < ia->datasize; ++i) |
---|
945 | | ia->data[i] = i * 1.234; |
---|
946 | | |
---|
947 | | // Check named initializers. |
---|
948 | | struct named_init ni = { |
---|
949 | | .number = 34, |
---|
950 | | .name = L"Test wide string", |
---|
951 | | .average = 543.34343, |
---|
952 | | }; |
---|
953 | | |
---|
954 | | ni.number = 58; |
---|
955 | | |
---|
956 | | int dynamic_array[ni.number]; |
---|
957 | | dynamic_array[0] = argv[0][0]; |
---|
958 | | dynamic_array[ni.number - 1] = 543; |
---|
959 | | |
---|
960 | | // work around unused variable warnings |
---|
961 | | ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' |
---|
962 | | || dynamic_array[ni.number - 1] != 543); |
---|
963 | | |
---|
964 | | return ok; |
---|
965 | | } |
---|
966 | | |
---|
967 | configure:5183: /usr/bin/gcc-4.2 -std=gnu99 -c -pipe -Os -std=gnu89 -arch ppc -I/opt/local/include conftest.c >&5 |
---|
968 | conftest.c:64:3: error: #error "Compiler does not advertise C99 conformance" |
---|
969 | conftest.c:119: error: expected ';', ',' or ')' before 'text' |
---|
970 | conftest.c: In function 'main': |
---|
971 | conftest.c:181: error: nested functions are disabled, use -fnested-functions to re-enable |
---|
972 | conftest.c:181: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'newvar' |
---|
973 | conftest.c:181: error: 'newvar' undeclared (first use in this function) |
---|
974 | conftest.c:181: error: (Each undeclared identifier is reported only once |
---|
975 | conftest.c:181: error: for each function it appears in.) |
---|
976 | conftest.c:191: error: 'for' loop initial declaration used outside C99 mode |
---|
977 | configure:5183: $? = 1 |
---|
978 | configure: failed program was: |
---|
979 | | /* confdefs.h */ |
---|
980 | | #define PACKAGE_NAME "flac" |
---|
981 | | #define PACKAGE_TARNAME "flac" |
---|
982 | | #define PACKAGE_VERSION "1.3.3" |
---|
983 | | #define PACKAGE_STRING "flac 1.3.3" |
---|
984 | | #define PACKAGE_BUGREPORT "flac-dev@xiph.org" |
---|
985 | | #define PACKAGE_URL "https://www.xiph.org/flac/" |
---|
986 | | #define PACKAGE "flac" |
---|
987 | | #define VERSION "1.3.3" |
---|
988 | | #define NDEBUG /**/ |
---|
989 | | /* end confdefs.h. */ |
---|
990 | | |
---|
991 | | /* Does the compiler advertise C89 conformance? |
---|
992 | | Do not test the value of __STDC__, because some compilers set it to 0 |
---|
993 | | while being otherwise adequately conformant. */ |
---|
994 | | #if !defined __STDC__ |
---|
995 | | # error "Compiler does not advertise C89 conformance" |
---|
996 | | #endif |
---|
997 | | |
---|
998 | | #include <stddef.h> |
---|
999 | | #include <stdarg.h> |
---|
1000 | | struct stat; |
---|
1001 | | /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */ |
---|
1002 | | struct buf { int x; }; |
---|
1003 | | struct buf * (*rcsopen) (struct buf *, struct stat *, int); |
---|
1004 | | static char *e (p, i) |
---|
1005 | | char **p; |
---|
1006 | | int i; |
---|
1007 | | { |
---|
1008 | | return p[i]; |
---|
1009 | | } |
---|
1010 | | static char *f (char * (*g) (char **, int), char **p, ...) |
---|
1011 | | { |
---|
1012 | | char *s; |
---|
1013 | | va_list v; |
---|
1014 | | va_start (v,p); |
---|
1015 | | s = g (p, va_arg (v,int)); |
---|
1016 | | va_end (v); |
---|
1017 | | return s; |
---|
1018 | | } |
---|
1019 | | |
---|
1020 | | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
---|
1021 | | function prototypes and stuff, but not \xHH hex character constants. |
---|
1022 | | These do not provoke an error unfortunately, instead are silently treated |
---|
1023 | | as an "x". The following induces an error, until -std is added to get |
---|
1024 | | proper ANSI mode. Curiously \x00 != x always comes out true, for an |
---|
1025 | | array size at least. It is necessary to write \x00 == 0 to get something |
---|
1026 | | that is true only with -std. */ |
---|
1027 | | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
---|
1028 | | |
---|
1029 | | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
---|
1030 | | inside strings and character constants. */ |
---|
1031 | | #define FOO(x) 'x' |
---|
1032 | | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
---|
1033 | | |
---|
1034 | | int test (int i, double x); |
---|
1035 | | struct s1 {int (*f) (int a);}; |
---|
1036 | | struct s2 {int (*f) (double a);}; |
---|
1037 | | int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int), |
---|
1038 | | int, int); |
---|
1039 | | |
---|
1040 | | // Does the compiler advertise C99 conformance? |
---|
1041 | | #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L |
---|
1042 | | # error "Compiler does not advertise C99 conformance" |
---|
1043 | | #endif |
---|
1044 | | |
---|
1045 | | #include <stdbool.h> |
---|
1046 | | extern int puts (const char *); |
---|
1047 | | extern int printf (const char *, ...); |
---|
1048 | | extern int dprintf (int, const char *, ...); |
---|
1049 | | extern void *malloc (size_t); |
---|
1050 | | |
---|
1051 | | // Check varargs macros. These examples are taken from C99 6.10.3.5. |
---|
1052 | | // dprintf is used instead of fprintf to avoid needing to declare |
---|
1053 | | // FILE and stderr. |
---|
1054 | | #define debug(...) dprintf (2, __VA_ARGS__) |
---|
1055 | | #define showlist(...) puts (#__VA_ARGS__) |
---|
1056 | | #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) |
---|
1057 | | static void |
---|
1058 | | test_varargs_macros (void) |
---|
1059 | | { |
---|
1060 | | int x = 1234; |
---|
1061 | | int y = 5678; |
---|
1062 | | debug ("Flag"); |
---|
1063 | | debug ("X = %d\n", x); |
---|
1064 | | showlist (The first, second, and third items.); |
---|
1065 | | report (x>y, "x is %d but y is %d", x, y); |
---|
1066 | | } |
---|
1067 | | |
---|
1068 | | // Check long long types. |
---|
1069 | | #define BIG64 18446744073709551615ull |
---|
1070 | | #define BIG32 4294967295ul |
---|
1071 | | #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) |
---|
1072 | | #if !BIG_OK |
---|
1073 | | #error "your preprocessor is broken" |
---|
1074 | | #endif |
---|
1075 | | #if BIG_OK |
---|
1076 | | #else |
---|
1077 | | #error "your preprocessor is broken" |
---|
1078 | | #endif |
---|
1079 | | static long long int bignum = -9223372036854775807LL; |
---|
1080 | | static unsigned long long int ubignum = BIG64; |
---|
1081 | | |
---|
1082 | | struct incomplete_array |
---|
1083 | | { |
---|
1084 | | int datasize; |
---|
1085 | | double data[]; |
---|
1086 | | }; |
---|
1087 | | |
---|
1088 | | struct named_init { |
---|
1089 | | int number; |
---|
1090 | | const wchar_t *name; |
---|
1091 | | double average; |
---|
1092 | | }; |
---|
1093 | | |
---|
1094 | | typedef const char *ccp; |
---|
1095 | | |
---|
1096 | | static inline int |
---|
1097 | | test_restrict (ccp restrict text) |
---|
1098 | | { |
---|
1099 | | // See if C++-style comments work. |
---|
1100 | | // Iterate through items via the restricted pointer. |
---|
1101 | | // Also check for declarations in for loops. |
---|
1102 | | for (unsigned int i = 0; *(text+i) != '\0'; ++i) |
---|
1103 | | continue; |
---|
1104 | | return 0; |
---|
1105 | | } |
---|
1106 | | |
---|
1107 | | // Check varargs and va_copy. |
---|
1108 | | static bool |
---|
1109 | | test_varargs (const char *format, ...) |
---|
1110 | | { |
---|
1111 | | va_list args; |
---|
1112 | | va_start (args, format); |
---|
1113 | | va_list args_copy; |
---|
1114 | | va_copy (args_copy, args); |
---|
1115 | | |
---|
1116 | | const char *str = ""; |
---|
1117 | | int number = 0; |
---|
1118 | | float fnumber = 0; |
---|
1119 | | |
---|
1120 | | while (*format) |
---|
1121 | | { |
---|
1122 | | switch (*format++) |
---|
1123 | | { |
---|
1124 | | case 's': // string |
---|
1125 | | str = va_arg (args_copy, const char *); |
---|
1126 | | break; |
---|
1127 | | case 'd': // int |
---|
1128 | | number = va_arg (args_copy, int); |
---|
1129 | | break; |
---|
1130 | | case 'f': // float |
---|
1131 | | fnumber = va_arg (args_copy, double); |
---|
1132 | | break; |
---|
1133 | | default: |
---|
1134 | | break; |
---|
1135 | | } |
---|
1136 | | } |
---|
1137 | | va_end (args_copy); |
---|
1138 | | va_end (args); |
---|
1139 | | |
---|
1140 | | return *str && number && fnumber; |
---|
1141 | | } |
---|
1142 | | |
---|
1143 | | |
---|
1144 | | int |
---|
1145 | | main (int argc, char **argv) |
---|
1146 | | { |
---|
1147 | | int ok = 0; |
---|
1148 | | |
---|
1149 | | ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]); |
---|
1150 | | |
---|
1151 | | |
---|
1152 | | // Check bool. |
---|
1153 | | _Bool success = false; |
---|
1154 | | success |= (argc != 0); |
---|
1155 | | |
---|
1156 | | // Check restrict. |
---|
1157 | | if (test_restrict ("String literal") == 0) |
---|
1158 | | success = true; |
---|
1159 | | char *restrict newvar = "Another string"; |
---|
1160 | | |
---|
1161 | | // Check varargs. |
---|
1162 | | success &= test_varargs ("s, d' f .", "string", 65, 34.234); |
---|
1163 | | test_varargs_macros (); |
---|
1164 | | |
---|
1165 | | // Check flexible array members. |
---|
1166 | | struct incomplete_array *ia = |
---|
1167 | | malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); |
---|
1168 | | ia->datasize = 10; |
---|
1169 | | for (int i = 0; i < ia->datasize; ++i) |
---|
1170 | | ia->data[i] = i * 1.234; |
---|
1171 | | |
---|
1172 | | // Check named initializers. |
---|
1173 | | struct named_init ni = { |
---|
1174 | | .number = 34, |
---|
1175 | | .name = L"Test wide string", |
---|
1176 | | .average = 543.34343, |
---|
1177 | | }; |
---|
1178 | | |
---|
1179 | | ni.number = 58; |
---|
1180 | | |
---|
1181 | | int dynamic_array[ni.number]; |
---|
1182 | | dynamic_array[0] = argv[0][0]; |
---|
1183 | | dynamic_array[ni.number - 1] = 543; |
---|
1184 | | |
---|
1185 | | // work around unused variable warnings |
---|
1186 | | ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' |
---|
1187 | | || dynamic_array[ni.number - 1] != 543); |
---|
1188 | | |
---|
1189 | | return ok; |
---|
1190 | | } |
---|
1191 | | |
---|
1192 | configure:5183: /usr/bin/gcc-4.2 -std=c99 -c -pipe -Os -std=gnu89 -arch ppc -I/opt/local/include conftest.c >&5 |
---|
1193 | conftest.c:64:3: error: #error "Compiler does not advertise C99 conformance" |
---|
1194 | conftest.c:119: error: expected ';', ',' or ')' before 'text' |
---|
1195 | conftest.c: In function 'main': |
---|
1196 | conftest.c:181: error: nested functions are disabled, use -fnested-functions to re-enable |
---|
1197 | conftest.c:181: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'newvar' |
---|
1198 | conftest.c:181: error: 'newvar' undeclared (first use in this function) |
---|
1199 | conftest.c:181: error: (Each undeclared identifier is reported only once |
---|
1200 | conftest.c:181: error: for each function it appears in.) |
---|
1201 | conftest.c:191: error: 'for' loop initial declaration used outside C99 mode |
---|
1202 | configure:5183: $? = 1 |
---|
1203 | configure: failed program was: |
---|
1204 | | /* confdefs.h */ |
---|
1205 | | #define PACKAGE_NAME "flac" |
---|
1206 | | #define PACKAGE_TARNAME "flac" |
---|
1207 | | #define PACKAGE_VERSION "1.3.3" |
---|
1208 | | #define PACKAGE_STRING "flac 1.3.3" |
---|
1209 | | #define PACKAGE_BUGREPORT "flac-dev@xiph.org" |
---|
1210 | | #define PACKAGE_URL "https://www.xiph.org/flac/" |
---|
1211 | | #define PACKAGE "flac" |
---|
1212 | | #define VERSION "1.3.3" |
---|
1213 | | #define NDEBUG /**/ |
---|
1214 | | /* end confdefs.h. */ |
---|
1215 | | |
---|
1216 | | /* Does the compiler advertise C89 conformance? |
---|
1217 | | Do not test the value of __STDC__, because some compilers set it to 0 |
---|
1218 | | while being otherwise adequately conformant. */ |
---|
1219 | | #if !defined __STDC__ |
---|
1220 | | # error "Compiler does not advertise C89 conformance" |
---|
1221 | | #endif |
---|
1222 | | |
---|
1223 | | #include <stddef.h> |
---|
1224 | | #include <stdarg.h> |
---|
1225 | | struct stat; |
---|
1226 | | /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */ |
---|
1227 | | struct buf { int x; }; |
---|
1228 | | struct buf * (*rcsopen) (struct buf *, struct stat *, int); |
---|
1229 | | static char *e (p, i) |
---|
1230 | | char **p; |
---|
1231 | | int i; |
---|
1232 | | { |
---|
1233 | | return p[i]; |
---|
1234 | | } |
---|
1235 | | static char *f (char * (*g) (char **, int), char **p, ...) |
---|
1236 | | { |
---|
1237 | | char *s; |
---|
1238 | | va_list v; |
---|
1239 | | va_start (v,p); |
---|
1240 | | s = g (p, va_arg (v,int)); |
---|
1241 | | va_end (v); |
---|
1242 | | return s; |
---|
1243 | | } |
---|
1244 | | |
---|
1245 | | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
---|
1246 | | function prototypes and stuff, but not \xHH hex character constants. |
---|
1247 | | These do not provoke an error unfortunately, instead are silently treated |
---|
1248 | | as an "x". The following induces an error, until -std is added to get |
---|
1249 | | proper ANSI mode. Curiously \x00 != x always comes out true, for an |
---|
1250 | | array size at least. It is necessary to write \x00 == 0 to get something |
---|
1251 | | that is true only with -std. */ |
---|
1252 | | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
---|
1253 | | |
---|
1254 | | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
---|
1255 | | inside strings and character constants. */ |
---|
1256 | | #define FOO(x) 'x' |
---|
1257 | | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
---|
1258 | | |
---|
1259 | | int test (int i, double x); |
---|
1260 | | struct s1 {int (*f) (int a);}; |
---|
1261 | | struct s2 {int (*f) (double a);}; |
---|
1262 | | int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int), |
---|
1263 | | int, int); |
---|
1264 | | |
---|
1265 | | // Does the compiler advertise C99 conformance? |
---|
1266 | | #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L |
---|
1267 | | # error "Compiler does not advertise C99 conformance" |
---|
1268 | | #endif |
---|
1269 | | |
---|
1270 | | #include <stdbool.h> |
---|
1271 | | extern int puts (const char *); |
---|
1272 | | extern int printf (const char *, ...); |
---|
1273 | | extern int dprintf (int, const char *, ...); |
---|
1274 | | extern void *malloc (size_t); |
---|
1275 | | |
---|
1276 | | // Check varargs macros. These examples are taken from C99 6.10.3.5. |
---|
1277 | | // dprintf is used instead of fprintf to avoid needing to declare |
---|
1278 | | // FILE and stderr. |
---|
1279 | | #define debug(...) dprintf (2, __VA_ARGS__) |
---|
1280 | | #define showlist(...) puts (#__VA_ARGS__) |
---|
1281 | | #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) |
---|
1282 | | static void |
---|
1283 | | test_varargs_macros (void) |
---|
1284 | | { |
---|
1285 | | int x = 1234; |
---|
1286 | | int y = 5678; |
---|
1287 | | debug ("Flag"); |
---|
1288 | | debug ("X = %d\n", x); |
---|
1289 | | showlist (The first, second, and third items.); |
---|
1290 | | report (x>y, "x is %d but y is %d", x, y); |
---|
1291 | | } |
---|
1292 | | |
---|
1293 | | // Check long long types. |
---|
1294 | | #define BIG64 18446744073709551615ull |
---|
1295 | | #define BIG32 4294967295ul |
---|
1296 | | #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) |
---|
1297 | | #if !BIG_OK |
---|
1298 | | #error "your preprocessor is broken" |
---|
1299 | | #endif |
---|
1300 | | #if BIG_OK |
---|
1301 | | #else |
---|
1302 | | #error "your preprocessor is broken" |
---|
1303 | | #endif |
---|
1304 | | static long long int bignum = -9223372036854775807LL; |
---|
1305 | | static unsigned long long int ubignum = BIG64; |
---|
1306 | | |
---|
1307 | | struct incomplete_array |
---|
1308 | | { |
---|
1309 | | int datasize; |
---|
1310 | | double data[]; |
---|
1311 | | }; |
---|
1312 | | |
---|
1313 | | struct named_init { |
---|
1314 | | int number; |
---|
1315 | | const wchar_t *name; |
---|
1316 | | double average; |
---|
1317 | | }; |
---|
1318 | | |
---|
1319 | | typedef const char *ccp; |
---|
1320 | | |
---|
1321 | | static inline int |
---|
1322 | | test_restrict (ccp restrict text) |
---|
1323 | | { |
---|
1324 | | // See if C++-style comments work. |
---|
1325 | | // Iterate through items via the restricted pointer. |
---|
1326 | | // Also check for declarations in for loops. |
---|
1327 | | for (unsigned int i = 0; *(text+i) != '\0'; ++i) |
---|
1328 | | continue; |
---|
1329 | | return 0; |
---|
1330 | | } |
---|
1331 | | |
---|
1332 | | // Check varargs and va_copy. |
---|
1333 | | static bool |
---|
1334 | | test_varargs (const char *format, ...) |
---|
1335 | | { |
---|
1336 | | va_list args; |
---|
1337 | | va_start (args, format); |
---|
1338 | | va_list args_copy; |
---|
1339 | | va_copy (args_copy, args); |
---|
1340 | | |
---|
1341 | | const char *str = ""; |
---|
1342 | | int number = 0; |
---|
1343 | | float fnumber = 0; |
---|
1344 | | |
---|
1345 | | while (*format) |
---|
1346 | | { |
---|
1347 | | switch (*format++) |
---|
1348 | | { |
---|
1349 | | case 's': // string |
---|
1350 | | str = va_arg (args_copy, const char *); |
---|
1351 | | break; |
---|
1352 | | case 'd': // int |
---|
1353 | | number = va_arg (args_copy, int); |
---|
1354 | | break; |
---|
1355 | | case 'f': // float |
---|
1356 | | fnumber = va_arg (args_copy, double); |
---|
1357 | | break; |
---|
1358 | | default: |
---|
1359 | | break; |
---|
1360 | | } |
---|
1361 | | } |
---|
1362 | | va_end (args_copy); |
---|
1363 | | va_end (args); |
---|
1364 | | |
---|
1365 | | return *str && number && fnumber; |
---|
1366 | | } |
---|
1367 | | |
---|
1368 | | |
---|
1369 | | int |
---|
1370 | | main (int argc, char **argv) |
---|
1371 | | { |
---|
1372 | | int ok = 0; |
---|
1373 | | |
---|
1374 | | ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]); |
---|
1375 | | |
---|
1376 | | |
---|
1377 | | // Check bool. |
---|
1378 | | _Bool success = false; |
---|
1379 | | success |= (argc != 0); |
---|
1380 | | |
---|
1381 | | // Check restrict. |
---|
1382 | | if (test_restrict ("String literal") == 0) |
---|
1383 | | success = true; |
---|
1384 | | char *restrict newvar = "Another string"; |
---|
1385 | | |
---|
1386 | | // Check varargs. |
---|
1387 | | success &= test_varargs ("s, d' f .", "string", 65, 34.234); |
---|
1388 | | test_varargs_macros (); |
---|
1389 | | |
---|
1390 | | // Check flexible array members. |
---|
1391 | | struct incomplete_array *ia = |
---|
1392 | | malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); |
---|
1393 | | ia->datasize = 10; |
---|
1394 | | for (int i = 0; i < ia->datasize; ++i) |
---|
1395 | | ia->data[i] = i * 1.234; |
---|
1396 | | |
---|
1397 | | // Check named initializers. |
---|
1398 | | struct named_init ni = { |
---|
1399 | | .number = 34, |
---|
1400 | | .name = L"Test wide string", |
---|
1401 | | .average = 543.34343, |
---|
1402 | | }; |
---|
1403 | | |
---|
1404 | | ni.number = 58; |
---|
1405 | | |
---|
1406 | | int dynamic_array[ni.number]; |
---|
1407 | | dynamic_array[0] = argv[0][0]; |
---|
1408 | | dynamic_array[ni.number - 1] = 543; |
---|
1409 | | |
---|
1410 | | // work around unused variable warnings |
---|
1411 | | ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' |
---|
1412 | | || dynamic_array[ni.number - 1] != 543); |
---|
1413 | | |
---|
1414 | | return ok; |
---|
1415 | | } |
---|
1416 | | |
---|
1417 | configure:5183: /usr/bin/gcc-4.2 -c99 -c -pipe -Os -std=gnu89 -arch ppc -I/opt/local/include conftest.c >&5 |
---|
1418 | conftest.c:64:3: error: #error "Compiler does not advertise C99 conformance" |
---|
1419 | conftest.c:119: error: expected ';', ',' or ')' before 'text' |
---|
1420 | conftest.c: In function 'main': |
---|
1421 | conftest.c:181: error: nested functions are disabled, use -fnested-functions to re-enable |
---|
1422 | conftest.c:181: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'newvar' |
---|
1423 | conftest.c:181: error: 'newvar' undeclared (first use in this function) |
---|
1424 | conftest.c:181: error: (Each undeclared identifier is reported only once |
---|
1425 | conftest.c:181: error: for each function it appears in.) |
---|
1426 | conftest.c:191: error: 'for' loop initial declaration used outside C99 mode |
---|
1427 | configure:5183: $? = 1 |
---|
1428 | configure: failed program was: |
---|
1429 | | /* confdefs.h */ |
---|
1430 | | #define PACKAGE_NAME "flac" |
---|
1431 | | #define PACKAGE_TARNAME "flac" |
---|
1432 | | #define PACKAGE_VERSION "1.3.3" |
---|
1433 | | #define PACKAGE_STRING "flac 1.3.3" |
---|
1434 | | #define PACKAGE_BUGREPORT "flac-dev@xiph.org" |
---|
1435 | | #define PACKAGE_URL "https://www.xiph.org/flac/" |
---|
1436 | | #define PACKAGE "flac" |
---|
1437 | | #define VERSION "1.3.3" |
---|
1438 | | #define NDEBUG /**/ |
---|
1439 | | /* end confdefs.h. */ |
---|
1440 | | |
---|
1441 | | /* Does the compiler advertise C89 conformance? |
---|
1442 | | Do not test the value of __STDC__, because some compilers set it to 0 |
---|
1443 | | while being otherwise adequately conformant. */ |
---|
1444 | | #if !defined __STDC__ |
---|
1445 | | # error "Compiler does not advertise C89 conformance" |
---|
1446 | | #endif |
---|
1447 | | |
---|
1448 | | #include <stddef.h> |
---|
1449 | | #include <stdarg.h> |
---|
1450 | | struct stat; |
---|
1451 | | /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */ |
---|
1452 | | struct buf { int x; }; |
---|
1453 | | struct buf * (*rcsopen) (struct buf *, struct stat *, int); |
---|
1454 | | static char *e (p, i) |
---|
1455 | | char **p; |
---|
1456 | | int i; |
---|
1457 | | { |
---|
1458 | | return p[i]; |
---|
1459 | | } |
---|
1460 | | static char *f (char * (*g) (char **, int), char **p, ...) |
---|
1461 | | { |
---|
1462 | | char *s; |
---|
1463 | | va_list v; |
---|
1464 | | va_start (v,p); |
---|
1465 | | s = g (p, va_arg (v,int)); |
---|
1466 | | va_end (v); |
---|
1467 | | return s; |
---|
1468 | | } |
---|
1469 | | |
---|
1470 | | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
---|
1471 | | function prototypes and stuff, but not \xHH hex character constants. |
---|
1472 | | These do not provoke an error unfortunately, instead are silently treated |
---|
1473 | | as an "x". The following induces an error, until -std is added to get |
---|
1474 | | proper ANSI mode. Curiously \x00 != x always comes out true, for an |
---|
1475 | | array size at least. It is necessary to write \x00 == 0 to get something |
---|
1476 | | that is true only with -std. */ |
---|
1477 | | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
---|
1478 | | |
---|
1479 | | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
---|
1480 | | inside strings and character constants. */ |
---|
1481 | | #define FOO(x) 'x' |
---|
1482 | | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
---|
1483 | | |
---|
1484 | | int test (int i, double x); |
---|
1485 | | struct s1 {int (*f) (int a);}; |
---|
1486 | | struct s2 {int (*f) (double a);}; |
---|
1487 | | int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int), |
---|
1488 | | int, int); |
---|
1489 | | |
---|
1490 | | // Does the compiler advertise C99 conformance? |
---|
1491 | | #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L |
---|
1492 | | # error "Compiler does not advertise C99 conformance" |
---|
1493 | | #endif |
---|
1494 | | |
---|
1495 | | #include <stdbool.h> |
---|
1496 | | extern int puts (const char *); |
---|
1497 | | extern int printf (const char *, ...); |
---|
1498 | | extern int dprintf (int, const char *, ...); |
---|
1499 | | extern void *malloc (size_t); |
---|
1500 | | |
---|
1501 | | // Check varargs macros. These examples are taken from C99 6.10.3.5. |
---|
1502 | | // dprintf is used instead of fprintf to avoid needing to declare |
---|
1503 | | // FILE and stderr. |
---|
1504 | | #define debug(...) dprintf (2, __VA_ARGS__) |
---|
1505 | | #define showlist(...) puts (#__VA_ARGS__) |
---|
1506 | | #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) |
---|
1507 | | static void |
---|
1508 | | test_varargs_macros (void) |
---|
1509 | | { |
---|
1510 | | int x = 1234; |
---|
1511 | | int y = 5678; |
---|
1512 | | debug ("Flag"); |
---|
1513 | | debug ("X = %d\n", x); |
---|
1514 | | showlist (The first, second, and third items.); |
---|
1515 | | report (x>y, "x is %d but y is %d", x, y); |
---|
1516 | | } |
---|
1517 | | |
---|
1518 | | // Check long long types. |
---|
1519 | | #define BIG64 18446744073709551615ull |
---|
1520 | | #define BIG32 4294967295ul |
---|
1521 | | #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) |
---|
1522 | | #if !BIG_OK |
---|
1523 | | #error "your preprocessor is broken" |
---|
1524 | | #endif |
---|
1525 | | #if BIG_OK |
---|
1526 | | #else |
---|
1527 | | #error "your preprocessor is broken" |
---|
1528 | | #endif |
---|
1529 | | static long long int bignum = -9223372036854775807LL; |
---|
1530 | | static unsigned long long int ubignum = BIG64; |
---|
1531 | | |
---|
1532 | | struct incomplete_array |
---|
1533 | | { |
---|
1534 | | int datasize; |
---|
1535 | | double data[]; |
---|
1536 | | }; |
---|
1537 | | |
---|
1538 | | struct named_init { |
---|
1539 | | int number; |
---|
1540 | | const wchar_t *name; |
---|
1541 | | double average; |
---|
1542 | | }; |
---|
1543 | | |
---|
1544 | | typedef const char *ccp; |
---|
1545 | | |
---|
1546 | | static inline int |
---|
1547 | | test_restrict (ccp restrict text) |
---|
1548 | | { |
---|
1549 | | // See if C++-style comments work. |
---|
1550 | | // Iterate through items via the restricted pointer. |
---|
1551 | | // Also check for declarations in for loops. |
---|
1552 | | for (unsigned int i = 0; *(text+i) != '\0'; ++i) |
---|
1553 | | continue; |
---|
1554 | | return 0; |
---|
1555 | | } |
---|
1556 | | |
---|
1557 | | // Check varargs and va_copy. |
---|
1558 | | static bool |
---|
1559 | | test_varargs (const char *format, ...) |
---|
1560 | | { |
---|
1561 | | va_list args; |
---|
1562 | | va_start (args, format); |
---|
1563 | | va_list args_copy; |
---|
1564 | | va_copy (args_copy, args); |
---|
1565 | | |
---|
1566 | | const char *str = ""; |
---|
1567 | | int number = 0; |
---|
1568 | | float fnumber = 0; |
---|
1569 | | |
---|
1570 | | while (*format) |
---|
1571 | | { |
---|
1572 | | switch (*format++) |
---|
1573 | | { |
---|
1574 | | case 's': // string |
---|
1575 | | str = va_arg (args_copy, const char *); |
---|
1576 | | break; |
---|
1577 | | case 'd': // int |
---|
1578 | | number = va_arg (args_copy, int); |
---|
1579 | | break; |
---|
1580 | | case 'f': // float |
---|
1581 | | fnumber = va_arg (args_copy, double); |
---|
1582 | | break; |
---|
1583 | | default: |
---|
1584 | | break; |
---|
1585 | | } |
---|
1586 | | } |
---|
1587 | | va_end (args_copy); |
---|
1588 | | va_end (args); |
---|
1589 | | |
---|
1590 | | return *str && number && fnumber; |
---|
1591 | | } |
---|
1592 | | |
---|
1593 | | |
---|
1594 | | int |
---|
1595 | | main (int argc, char **argv) |
---|
1596 | | { |
---|
1597 | | int ok = 0; |
---|
1598 | | |
---|
1599 | | ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]); |
---|
1600 | | |
---|
1601 | | |
---|
1602 | | // Check bool. |
---|
1603 | | _Bool success = false; |
---|
1604 | | success |= (argc != 0); |
---|
1605 | | |
---|
1606 | | // Check restrict. |
---|
1607 | | if (test_restrict ("String literal") == 0) |
---|
1608 | | success = true; |
---|
1609 | | char *restrict newvar = "Another string"; |
---|
1610 | | |
---|
1611 | | // Check varargs. |
---|
1612 | | success &= test_varargs ("s, d' f .", "string", 65, 34.234); |
---|
1613 | | test_varargs_macros (); |
---|
1614 | | |
---|
1615 | | // Check flexible array members. |
---|
1616 | | struct incomplete_array *ia = |
---|
1617 | | malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); |
---|
1618 | | ia->datasize = 10; |
---|
1619 | | for (int i = 0; i < ia->datasize; ++i) |
---|
1620 | | ia->data[i] = i * 1.234; |
---|
1621 | | |
---|
1622 | | // Check named initializers. |
---|
1623 | | struct named_init ni = { |
---|
1624 | | .number = 34, |
---|
1625 | | .name = L"Test wide string", |
---|
1626 | | .average = 543.34343, |
---|
1627 | | }; |
---|
1628 | | |
---|
1629 | | ni.number = 58; |
---|
1630 | | |
---|
1631 | | int dynamic_array[ni.number]; |
---|
1632 | | dynamic_array[0] = argv[0][0]; |
---|
1633 | | dynamic_array[ni.number - 1] = 543; |
---|
1634 | | |
---|
1635 | | // work around unused variable warnings |
---|
1636 | | ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' |
---|
1637 | | || dynamic_array[ni.number - 1] != 543); |
---|
1638 | | |
---|
1639 | | return ok; |
---|
1640 | | } |
---|
1641 | | |
---|
1642 | configure:5183: /usr/bin/gcc-4.2 -qlanglvl=extc1x -c -pipe -Os -std=gnu89 -arch ppc -I/opt/local/include conftest.c >&5 |
---|
1643 | conftest.c:64:3: error: #error "Compiler does not advertise C99 conformance" |
---|
1644 | conftest.c:119: error: expected ';', ',' or ')' before 'text' |
---|
1645 | conftest.c: In function 'main': |
---|
1646 | conftest.c:181: error: nested functions are disabled, use -fnested-functions to re-enable |
---|
1647 | conftest.c:181: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'newvar' |
---|
1648 | conftest.c:181: error: 'newvar' undeclared (first use in this function) |
---|
1649 | conftest.c:181: error: (Each undeclared identifier is reported only once |
---|
1650 | conftest.c:181: error: for each function it appears in.) |
---|
1651 | conftest.c:191: error: 'for' loop initial declaration used outside C99 mode |
---|
1652 | configure:5183: $? = 1 |
---|
1653 | configure: failed program was: |
---|
1654 | | /* confdefs.h */ |
---|
1655 | | #define PACKAGE_NAME "flac" |
---|
1656 | | #define PACKAGE_TARNAME "flac" |
---|
1657 | | #define PACKAGE_VERSION "1.3.3" |
---|
1658 | | #define PACKAGE_STRING "flac 1.3.3" |
---|
1659 | | #define PACKAGE_BUGREPORT "flac-dev@xiph.org" |
---|
1660 | | #define PACKAGE_URL "https://www.xiph.org/flac/" |
---|
1661 | | #define PACKAGE "flac" |
---|
1662 | | #define VERSION "1.3.3" |
---|
1663 | | #define NDEBUG /**/ |
---|
1664 | | /* end confdefs.h. */ |
---|
1665 | | |
---|
1666 | | /* Does the compiler advertise C89 conformance? |
---|
1667 | | Do not test the value of __STDC__, because some compilers set it to 0 |
---|
1668 | | while being otherwise adequately conformant. */ |
---|
1669 | | #if !defined __STDC__ |
---|
1670 | | # error "Compiler does not advertise C89 conformance" |
---|
1671 | | #endif |
---|
1672 | | |
---|
1673 | | #include <stddef.h> |
---|
1674 | | #include <stdarg.h> |
---|
1675 | | struct stat; |
---|
1676 | | /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */ |
---|
1677 | | struct buf { int x; }; |
---|
1678 | | struct buf * (*rcsopen) (struct buf *, struct stat *, int); |
---|
1679 | | static char *e (p, i) |
---|
1680 | | char **p; |
---|
1681 | | int i; |
---|
1682 | | { |
---|
1683 | | return p[i]; |
---|
1684 | | } |
---|
1685 | | static char *f (char * (*g) (char **, int), char **p, ...) |
---|
1686 | | { |
---|
1687 | | char *s; |
---|
1688 | | va_list v; |
---|
1689 | | va_start (v,p); |
---|
1690 | | s = g (p, va_arg (v,int)); |
---|
1691 | | va_end (v); |
---|
1692 | | return s; |
---|
1693 | | } |
---|
1694 | | |
---|
1695 | | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
---|
1696 | | function prototypes and stuff, but not \xHH hex character constants. |
---|
1697 | | These do not provoke an error unfortunately, instead are silently treated |
---|
1698 | | as an "x". The following induces an error, until -std is added to get |
---|
1699 | | proper ANSI mode. Curiously \x00 != x always comes out true, for an |
---|
1700 | | array size at least. It is necessary to write \x00 == 0 to get something |
---|
1701 | | that is true only with -std. */ |
---|
1702 | | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
---|
1703 | | |
---|
1704 | | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
---|
1705 | | inside strings and character constants. */ |
---|
1706 | | #define FOO(x) 'x' |
---|
1707 | | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
---|
1708 | | |
---|
1709 | | int test (int i, double x); |
---|
1710 | | struct s1 {int (*f) (int a);}; |
---|
1711 | | struct s2 {int (*f) (double a);}; |
---|
1712 | | int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int), |
---|
1713 | | int, int); |
---|
1714 | | |
---|
1715 | | // Does the compiler advertise C99 conformance? |
---|
1716 | | #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L |
---|
1717 | | # error "Compiler does not advertise C99 conformance" |
---|
1718 | | #endif |
---|
1719 | | |
---|
1720 | | #include <stdbool.h> |
---|
1721 | | extern int puts (const char *); |
---|
1722 | | extern int printf (const char *, ...); |
---|
1723 | | extern int dprintf (int, const char *, ...); |
---|
1724 | | extern void *malloc (size_t); |
---|
1725 | | |
---|
1726 | | // Check varargs macros. These examples are taken from C99 6.10.3.5. |
---|
1727 | | // dprintf is used instead of fprintf to avoid needing to declare |
---|
1728 | | // FILE and stderr. |
---|
1729 | | #define debug(...) dprintf (2, __VA_ARGS__) |
---|
1730 | | #define showlist(...) puts (#__VA_ARGS__) |
---|
1731 | | #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) |
---|
1732 | | static void |
---|
1733 | | test_varargs_macros (void) |
---|
1734 | | { |
---|
1735 | | int x = 1234; |
---|
1736 | | int y = 5678; |
---|
1737 | | debug ("Flag"); |
---|
1738 | | debug ("X = %d\n", x); |
---|
1739 | | showlist (The first, second, and third items.); |
---|
1740 | | report (x>y, "x is %d but y is %d", x, y); |
---|
1741 | | } |
---|
1742 | | |
---|
1743 | | // Check long long types. |
---|
1744 | | #define BIG64 18446744073709551615ull |
---|
1745 | | #define BIG32 4294967295ul |
---|
1746 | | #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) |
---|
1747 | | #if !BIG_OK |
---|
1748 | | #error "your preprocessor is broken" |
---|
1749 | | #endif |
---|
1750 | | #if BIG_OK |
---|
1751 | | #else |
---|
1752 | | #error "your preprocessor is broken" |
---|
1753 | | #endif |
---|
1754 | | static long long int bignum = -9223372036854775807LL; |
---|
1755 | | static unsigned long long int ubignum = BIG64; |
---|
1756 | | |
---|
1757 | | struct incomplete_array |
---|
1758 | | { |
---|
1759 | | int datasize; |
---|
1760 | | double data[]; |
---|
1761 | | }; |
---|
1762 | | |
---|
1763 | | struct named_init { |
---|
1764 | | int number; |
---|
1765 | | const wchar_t *name; |
---|
1766 | | double average; |
---|
1767 | | }; |
---|
1768 | | |
---|
1769 | | typedef const char *ccp; |
---|
1770 | | |
---|
1771 | | static inline int |
---|
1772 | | test_restrict (ccp restrict text) |
---|
1773 | | { |
---|
1774 | | // See if C++-style comments work. |
---|
1775 | | // Iterate through items via the restricted pointer. |
---|
1776 | | // Also check for declarations in for loops. |
---|
1777 | | for (unsigned int i = 0; *(text+i) != '\0'; ++i) |
---|
1778 | | continue; |
---|
1779 | | return 0; |
---|
1780 | | } |
---|
1781 | | |
---|
1782 | | // Check varargs and va_copy. |
---|
1783 | | static bool |
---|
1784 | | test_varargs (const char *format, ...) |
---|
1785 | | { |
---|
1786 | | va_list args; |
---|
1787 | | va_start (args, format); |
---|
1788 | | va_list args_copy; |
---|
1789 | | va_copy (args_copy, args); |
---|
1790 | | |
---|
1791 | | const char *str = ""; |
---|
1792 | | int number = 0; |
---|
1793 | | float fnumber = 0; |
---|
1794 | | |
---|
1795 | | while (*format) |
---|
1796 | | { |
---|
1797 | | switch (*format++) |
---|
1798 | | { |
---|
1799 | | case 's': // string |
---|
1800 | | str = va_arg (args_copy, const char *); |
---|
1801 | | break; |
---|
1802 | | case 'd': // int |
---|
1803 | | number = va_arg (args_copy, int); |
---|
1804 | | break; |
---|
1805 | | case 'f': // float |
---|
1806 | | fnumber = va_arg (args_copy, double); |
---|
1807 | | break; |
---|
1808 | | default: |
---|
1809 | | break; |
---|
1810 | | } |
---|
1811 | | } |
---|
1812 | | va_end (args_copy); |
---|
1813 | | va_end (args); |
---|
1814 | | |
---|
1815 | | return *str && number && fnumber; |
---|
1816 | | } |
---|
1817 | | |
---|
1818 | | |
---|
1819 | | int |
---|
1820 | | main (int argc, char **argv) |
---|
1821 | | { |
---|
1822 | | int ok = 0; |
---|
1823 | | |
---|
1824 | | ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]); |
---|
1825 | | |
---|
1826 | | |
---|
1827 | | // Check bool. |
---|
1828 | | _Bool success = false; |
---|
1829 | | success |= (argc != 0); |
---|
1830 | | |
---|
1831 | | // Check restrict. |
---|
1832 | | if (test_restrict ("String literal") == 0) |
---|
1833 | | success = true; |
---|
1834 | | char *restrict newvar = "Another string"; |
---|
1835 | | |
---|
1836 | | // Check varargs. |
---|
1837 | | success &= test_varargs ("s, d' f .", "string", 65, 34.234); |
---|
1838 | | test_varargs_macros (); |
---|
1839 | | |
---|
1840 | | // Check flexible array members. |
---|
1841 | | struct incomplete_array *ia = |
---|
1842 | | malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); |
---|
1843 | | ia->datasize = 10; |
---|
1844 | | for (int i = 0; i < ia->datasize; ++i) |
---|
1845 | | ia->data[i] = i * 1.234; |
---|
1846 | | |
---|
1847 | | // Check named initializers. |
---|
1848 | | struct named_init ni = { |
---|
1849 | | .number = 34, |
---|
1850 | | .name = L"Test wide string", |
---|
1851 | | .average = 543.34343, |
---|
1852 | | }; |
---|
1853 | | |
---|
1854 | | ni.number = 58; |
---|
1855 | | |
---|
1856 | | int dynamic_array[ni.number]; |
---|
1857 | | dynamic_array[0] = argv[0][0]; |
---|
1858 | | dynamic_array[ni.number - 1] = 543; |
---|
1859 | | |
---|
1860 | | // work around unused variable warnings |
---|
1861 | | ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' |
---|
1862 | | || dynamic_array[ni.number - 1] != 543); |
---|
1863 | | |
---|
1864 | | return ok; |
---|
1865 | | } |
---|
1866 | | |
---|
1867 | configure:5183: /usr/bin/gcc-4.2 -qlanglvl=extc99 -c -pipe -Os -std=gnu89 -arch ppc -I/opt/local/include conftest.c >&5 |
---|
1868 | conftest.c:64:3: error: #error "Compiler does not advertise C99 conformance" |
---|
1869 | conftest.c:119: error: expected ';', ',' or ')' before 'text' |
---|
1870 | conftest.c: In function 'main': |
---|
1871 | conftest.c:181: error: nested functions are disabled, use -fnested-functions to re-enable |
---|
1872 | conftest.c:181: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'newvar' |
---|
1873 | conftest.c:181: error: 'newvar' undeclared (first use in this function) |
---|
1874 | conftest.c:181: error: (Each undeclared identifier is reported only once |
---|
1875 | conftest.c:181: error: for each function it appears in.) |
---|
1876 | conftest.c:191: error: 'for' loop initial declaration used outside C99 mode |
---|
1877 | configure:5183: $? = 1 |
---|
1878 | configure: failed program was: |
---|
1879 | | /* confdefs.h */ |
---|
1880 | | #define PACKAGE_NAME "flac" |
---|
1881 | | #define PACKAGE_TARNAME "flac" |
---|
1882 | | #define PACKAGE_VERSION "1.3.3" |
---|
1883 | | #define PACKAGE_STRING "flac 1.3.3" |
---|
1884 | | #define PACKAGE_BUGREPORT "flac-dev@xiph.org" |
---|
1885 | | #define PACKAGE_URL "https://www.xiph.org/flac/" |
---|
1886 | | #define PACKAGE "flac" |
---|
1887 | | #define VERSION "1.3.3" |
---|
1888 | | #define NDEBUG /**/ |
---|
1889 | | /* end confdefs.h. */ |
---|
1890 | | |
---|
1891 | | /* Does the compiler advertise C89 conformance? |
---|
1892 | | Do not test the value of __STDC__, because some compilers set it to 0 |
---|
1893 | | while being otherwise adequately conformant. */ |
---|
1894 | | #if !defined __STDC__ |
---|
1895 | | # error "Compiler does not advertise C89 conformance" |
---|
1896 | | #endif |
---|
1897 | | |
---|
1898 | | #include <stddef.h> |
---|
1899 | | #include <stdarg.h> |
---|
1900 | | struct stat; |
---|
1901 | | /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */ |
---|
1902 | | struct buf { int x; }; |
---|
1903 | | struct buf * (*rcsopen) (struct buf *, struct stat *, int); |
---|
1904 | | static char *e (p, i) |
---|
1905 | | char **p; |
---|
1906 | | int i; |
---|
1907 | | { |
---|
1908 | | return p[i]; |
---|
1909 | | } |
---|
1910 | | static char *f (char * (*g) (char **, int), char **p, ...) |
---|
1911 | | { |
---|
1912 | | char *s; |
---|
1913 | | va_list v; |
---|
1914 | | va_start (v,p); |
---|
1915 | | s = g (p, va_arg (v,int)); |
---|
1916 | | va_end (v); |
---|
1917 | | return s; |
---|
1918 | | } |
---|
1919 | | |
---|
1920 | | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
---|
1921 | | function prototypes and stuff, but not \xHH hex character constants. |
---|
1922 | | These do not provoke an error unfortunately, instead are silently treated |
---|
1923 | | as an "x". The following induces an error, until -std is added to get |
---|
1924 | | proper ANSI mode. Curiously \x00 != x always comes out true, for an |
---|
1925 | | array size at least. It is necessary to write \x00 == 0 to get something |
---|
1926 | | that is true only with -std. */ |
---|
1927 | | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
---|
1928 | | |
---|
1929 | | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
---|
1930 | | inside strings and character constants. */ |
---|
1931 | | #define FOO(x) 'x' |
---|
1932 | | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
---|
1933 | | |
---|
1934 | | int test (int i, double x); |
---|
1935 | | struct s1 {int (*f) (int a);}; |
---|
1936 | | struct s2 {int (*f) (double a);}; |
---|
1937 | | int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int), |
---|
1938 | | int, int); |
---|
1939 | | |
---|
1940 | | // Does the compiler advertise C99 conformance? |
---|
1941 | | #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L |
---|
1942 | | # error "Compiler does not advertise C99 conformance" |
---|
1943 | | #endif |
---|
1944 | | |
---|
1945 | | #include <stdbool.h> |
---|
1946 | | extern int puts (const char *); |
---|
1947 | | extern int printf (const char *, ...); |
---|
1948 | | extern int dprintf (int, const char *, ...); |
---|
1949 | | extern void *malloc (size_t); |
---|
1950 | | |
---|
1951 | | // Check varargs macros. These examples are taken from C99 6.10.3.5. |
---|
1952 | | // dprintf is used instead of fprintf to avoid needing to declare |
---|
1953 | | // FILE and stderr. |
---|
1954 | | #define debug(...) dprintf (2, __VA_ARGS__) |
---|
1955 | | #define showlist(...) puts (#__VA_ARGS__) |
---|
1956 | | #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) |
---|
1957 | | static void |
---|
1958 | | test_varargs_macros (void) |
---|
1959 | | { |
---|
1960 | | int x = 1234; |
---|
1961 | | int y = 5678; |
---|
1962 | | debug ("Flag"); |
---|
1963 | | debug ("X = %d\n", x); |
---|
1964 | | showlist (The first, second, and third items.); |
---|
1965 | | report (x>y, "x is %d but y is %d", x, y); |
---|
1966 | | } |
---|
1967 | | |
---|
1968 | | // Check long long types. |
---|
1969 | | #define BIG64 18446744073709551615ull |
---|
1970 | | #define BIG32 4294967295ul |
---|
1971 | | #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) |
---|
1972 | | #if !BIG_OK |
---|
1973 | | #error "your preprocessor is broken" |
---|
1974 | | #endif |
---|
1975 | | #if BIG_OK |
---|
1976 | | #else |
---|
1977 | | #error "your preprocessor is broken" |
---|
1978 | | #endif |
---|
1979 | | static long long int bignum = -9223372036854775807LL; |
---|
1980 | | static unsigned long long int ubignum = BIG64; |
---|
1981 | | |
---|
1982 | | struct incomplete_array |
---|
1983 | | { |
---|
1984 | | int datasize; |
---|
1985 | | double data[]; |
---|
1986 | | }; |
---|
1987 | | |
---|
1988 | | struct named_init { |
---|
1989 | | int number; |
---|
1990 | | const wchar_t *name; |
---|
1991 | | double average; |
---|
1992 | | }; |
---|
1993 | | |
---|
1994 | | typedef const char *ccp; |
---|
1995 | | |
---|
1996 | | static inline int |
---|
1997 | | test_restrict (ccp restrict text) |
---|
1998 | | { |
---|
1999 | | // See if C++-style comments work. |
---|
2000 | | // Iterate through items via the restricted pointer. |
---|
2001 | | // Also check for declarations in for loops. |
---|
2002 | | for (unsigned int i = 0; *(text+i) != '\0'; ++i) |
---|
2003 | | continue; |
---|
2004 | | return 0; |
---|
2005 | | } |
---|
2006 | | |
---|
2007 | | // Check varargs and va_copy. |
---|
2008 | | static bool |
---|
2009 | | test_varargs (const char *format, ...) |
---|
2010 | | { |
---|
2011 | | va_list args; |
---|
2012 | | va_start (args, format); |
---|
2013 | | va_list args_copy; |
---|
2014 | | va_copy (args_copy, args); |
---|
2015 | | |
---|
2016 | | const char *str = ""; |
---|
2017 | | int number = 0; |
---|
2018 | | float fnumber = 0; |
---|
2019 | | |
---|
2020 | | while (*format) |
---|
2021 | | { |
---|
2022 | | switch (*format++) |
---|
2023 | | { |
---|
2024 | | case 's': // string |
---|
2025 | | str = va_arg (args_copy, const char *); |
---|
2026 | | break; |
---|
2027 | | case 'd': // int |
---|
2028 | | number = va_arg (args_copy, int); |
---|
2029 | | break; |
---|
2030 | | case 'f': // float |
---|
2031 | | fnumber = va_arg (args_copy, double); |
---|
2032 | | break; |
---|
2033 | | default: |
---|
2034 | | break; |
---|
2035 | | } |
---|
2036 | | } |
---|
2037 | | va_end (args_copy); |
---|
2038 | | va_end (args); |
---|
2039 | | |
---|
2040 | | return *str && number && fnumber; |
---|
2041 | | } |
---|
2042 | | |
---|
2043 | | |
---|
2044 | | int |
---|
2045 | | main (int argc, char **argv) |
---|
2046 | | { |
---|
2047 | | int ok = 0; |
---|
2048 | | |
---|
2049 | | ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]); |
---|
2050 | | |
---|
2051 | | |
---|
2052 | | // Check bool. |
---|
2053 | | _Bool success = false; |
---|
2054 | | success |= (argc != 0); |
---|
2055 | | |
---|
2056 | | // Check restrict. |
---|
2057 | | if (test_restrict ("String literal") == 0) |
---|
2058 | | success = true; |
---|
2059 | | char *restrict newvar = "Another string"; |
---|
2060 | | |
---|
2061 | | // Check varargs. |
---|
2062 | | success &= test_varargs ("s, d' f .", "string", 65, 34.234); |
---|
2063 | | test_varargs_macros (); |
---|
2064 | | |
---|
2065 | | // Check flexible array members. |
---|
2066 | | struct incomplete_array *ia = |
---|
2067 | | malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); |
---|
2068 | | ia->datasize = 10; |
---|
2069 | | for (int i = 0; i < ia->datasize; ++i) |
---|
2070 | | ia->data[i] = i * 1.234; |
---|
2071 | | |
---|
2072 | | // Check named initializers. |
---|
2073 | | struct named_init ni = { |
---|
2074 | | .number = 34, |
---|
2075 | | .name = L"Test wide string", |
---|
2076 | | .average = 543.34343, |
---|
2077 | | }; |
---|
2078 | | |
---|
2079 | | ni.number = 58; |
---|
2080 | | |
---|
2081 | | int dynamic_array[ni.number]; |
---|
2082 | | dynamic_array[0] = argv[0][0]; |
---|
2083 | | dynamic_array[ni.number - 1] = 543; |
---|
2084 | | |
---|
2085 | | // work around unused variable warnings |
---|
2086 | | ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' |
---|
2087 | | || dynamic_array[ni.number - 1] != 543); |
---|
2088 | | |
---|
2089 | | return ok; |
---|
2090 | | } |
---|
2091 | | |
---|
2092 | configure:5183: /usr/bin/gcc-4.2 -AC99 -c -pipe -Os -std=gnu89 -arch ppc -I/opt/local/include conftest.c >&5 |
---|
2093 | <command-line>: error: missing '(' after predicate |
---|
2094 | conftest.c:64:3: error: #error "Compiler does not advertise C99 conformance" |
---|
2095 | conftest.c:119: error: expected ';', ',' or ')' before 'text' |
---|
2096 | conftest.c: In function 'main': |
---|
2097 | conftest.c:181: error: nested functions are disabled, use -fnested-functions to re-enable |
---|
2098 | conftest.c:181: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'newvar' |
---|
2099 | conftest.c:181: error: 'newvar' undeclared (first use in this function) |
---|
2100 | conftest.c:181: error: (Each undeclared identifier is reported only once |
---|
2101 | conftest.c:181: error: for each function it appears in.) |
---|
2102 | conftest.c:191: error: 'for' loop initial declaration used outside C99 mode |
---|
2103 | configure:5183: $? = 1 |
---|
2104 | configure: failed program was: |
---|
2105 | | /* confdefs.h */ |
---|
2106 | | #define PACKAGE_NAME "flac" |
---|
2107 | | #define PACKAGE_TARNAME "flac" |
---|
2108 | | #define PACKAGE_VERSION "1.3.3" |
---|
2109 | | #define PACKAGE_STRING "flac 1.3.3" |
---|
2110 | | #define PACKAGE_BUGREPORT "flac-dev@xiph.org" |
---|
2111 | | #define PACKAGE_URL "https://www.xiph.org/flac/" |
---|
2112 | | #define PACKAGE "flac" |
---|
2113 | | #define VERSION "1.3.3" |
---|
2114 | | #define NDEBUG /**/ |
---|
2115 | | /* end confdefs.h. */ |
---|
2116 | | |
---|
2117 | | /* Does the compiler advertise C89 conformance? |
---|
2118 | | Do not test the value of __STDC__, because some compilers set it to 0 |
---|
2119 | | while being otherwise adequately conformant. */ |
---|
2120 | | #if !defined __STDC__ |
---|
2121 | | # error "Compiler does not advertise C89 conformance" |
---|
2122 | | #endif |
---|
2123 | | |
---|
2124 | | #include <stddef.h> |
---|
2125 | | #include <stdarg.h> |
---|
2126 | | struct stat; |
---|
2127 | | /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */ |
---|
2128 | | struct buf { int x; }; |
---|
2129 | | struct buf * (*rcsopen) (struct buf *, struct stat *, int); |
---|
2130 | | static char *e (p, i) |
---|
2131 | | char **p; |
---|
2132 | | int i; |
---|
2133 | | { |
---|
2134 | | return p[i]; |
---|
2135 | | } |
---|
2136 | | static char *f (char * (*g) (char **, int), char **p, ...) |
---|
2137 | | { |
---|
2138 | | char *s; |
---|
2139 | | va_list v; |
---|
2140 | | va_start (v,p); |
---|
2141 | | s = g (p, va_arg (v,int)); |
---|
2142 | | va_end (v); |
---|
2143 | | return s; |
---|
2144 | | } |
---|
2145 | | |
---|
2146 | | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
---|
2147 | | function prototypes and stuff, but not \xHH hex character constants. |
---|
2148 | | These do not provoke an error unfortunately, instead are silently treated |
---|
2149 | | as an "x". The following induces an error, until -std is added to get |
---|
2150 | | proper ANSI mode. Curiously \x00 != x always comes out true, for an |
---|
2151 | | array size at least. It is necessary to write \x00 == 0 to get something |
---|
2152 | | that is true only with -std. */ |
---|
2153 | | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
---|
2154 | | |
---|
2155 | | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
---|
2156 | | inside strings and character constants. */ |
---|
2157 | | #define FOO(x) 'x' |
---|
2158 | | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
---|
2159 | | |
---|
2160 | | int test (int i, double x); |
---|
2161 | | struct s1 {int (*f) (int a);}; |
---|
2162 | | struct s2 {int (*f) (double a);}; |
---|
2163 | | int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int), |
---|
2164 | | int, int); |
---|
2165 | | |
---|
2166 | | // Does the compiler advertise C99 conformance? |
---|
2167 | | #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L |
---|
2168 | | # error "Compiler does not advertise C99 conformance" |
---|
2169 | | #endif |
---|
2170 | | |
---|
2171 | | #include <stdbool.h> |
---|
2172 | | extern int puts (const char *); |
---|
2173 | | extern int printf (const char *, ...); |
---|
2174 | | extern int dprintf (int, const char *, ...); |
---|
2175 | | extern void *malloc (size_t); |
---|
2176 | | |
---|
2177 | | // Check varargs macros. These examples are taken from C99 6.10.3.5. |
---|
2178 | | // dprintf is used instead of fprintf to avoid needing to declare |
---|
2179 | | // FILE and stderr. |
---|
2180 | | #define debug(...) dprintf (2, __VA_ARGS__) |
---|
2181 | | #define showlist(...) puts (#__VA_ARGS__) |
---|
2182 | | #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) |
---|
2183 | | static void |
---|
2184 | | test_varargs_macros (void) |
---|
2185 | | { |
---|
2186 | | int x = 1234; |
---|
2187 | | int y = 5678; |
---|
2188 | | debug ("Flag"); |
---|
2189 | | debug ("X = %d\n", x); |
---|
2190 | | showlist (The first, second, and third items.); |
---|
2191 | | report (x>y, "x is %d but y is %d", x, y); |
---|
2192 | | } |
---|
2193 | | |
---|
2194 | | // Check long long types. |
---|
2195 | | #define BIG64 18446744073709551615ull |
---|
2196 | | #define BIG32 4294967295ul |
---|
2197 | | #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) |
---|
2198 | | #if !BIG_OK |
---|
2199 | | #error "your preprocessor is broken" |
---|
2200 | | #endif |
---|
2201 | | #if BIG_OK |
---|
2202 | | #else |
---|
2203 | | #error "your preprocessor is broken" |
---|
2204 | | #endif |
---|
2205 | | static long long int bignum = -9223372036854775807LL; |
---|
2206 | | static unsigned long long int ubignum = BIG64; |
---|
2207 | | |
---|
2208 | | struct incomplete_array |
---|
2209 | | { |
---|
2210 | | int datasize; |
---|
2211 | | double data[]; |
---|
2212 | | }; |
---|
2213 | | |
---|
2214 | | struct named_init { |
---|
2215 | | int number; |
---|
2216 | | const wchar_t *name; |
---|
2217 | | double average; |
---|
2218 | | }; |
---|
2219 | | |
---|
2220 | | typedef const char *ccp; |
---|
2221 | | |
---|
2222 | | static inline int |
---|
2223 | | test_restrict (ccp restrict text) |
---|
2224 | | { |
---|
2225 | | // See if C++-style comments work. |
---|
2226 | | // Iterate through items via the restricted pointer. |
---|
2227 | | // Also check for declarations in for loops. |
---|
2228 | | for (unsigned int i = 0; *(text+i) != '\0'; ++i) |
---|
2229 | | continue; |
---|
2230 | | return 0; |
---|
2231 | | } |
---|
2232 | | |
---|
2233 | | // Check varargs and va_copy. |
---|
2234 | | static bool |
---|
2235 | | test_varargs (const char *format, ...) |
---|
2236 | | { |
---|
2237 | | va_list args; |
---|
2238 | | va_start (args, format); |
---|
2239 | | va_list args_copy; |
---|
2240 | | va_copy (args_copy, args); |
---|
2241 | | |
---|
2242 | | const char *str = ""; |
---|
2243 | | int number = 0; |
---|
2244 | | float fnumber = 0; |
---|
2245 | | |
---|
2246 | | while (*format) |
---|
2247 | | { |
---|
2248 | | switch (*format++) |
---|
2249 | | { |
---|
2250 | | case 's': // string |
---|
2251 | | str = va_arg (args_copy, const char *); |
---|
2252 | | break; |
---|
2253 | | case 'd': // int |
---|
2254 | | number = va_arg (args_copy, int); |
---|
2255 | | break; |
---|
2256 | | case 'f': // float |
---|
2257 | | fnumber = va_arg (args_copy, double); |
---|
2258 | | break; |
---|
2259 | | default: |
---|
2260 | | break; |
---|
2261 | | } |
---|
2262 | | } |
---|
2263 | | va_end (args_copy); |
---|
2264 | | va_end (args); |
---|
2265 | | |
---|
2266 | | return *str && number && fnumber; |
---|
2267 | | } |
---|
2268 | | |
---|
2269 | | |
---|
2270 | | int |
---|
2271 | | main (int argc, char **argv) |
---|
2272 | | { |
---|
2273 | | int ok = 0; |
---|
2274 | | |
---|
2275 | | ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]); |
---|
2276 | | |
---|
2277 | | |
---|
2278 | | // Check bool. |
---|
2279 | | _Bool success = false; |
---|
2280 | | success |= (argc != 0); |
---|
2281 | | |
---|
2282 | | // Check restrict. |
---|
2283 | | if (test_restrict ("String literal") == 0) |
---|
2284 | | success = true; |
---|
2285 | | char *restrict newvar = "Another string"; |
---|
2286 | | |
---|
2287 | | // Check varargs. |
---|
2288 | | success &= test_varargs ("s, d' f .", "string", 65, 34.234); |
---|
2289 | | test_varargs_macros (); |
---|
2290 | | |
---|
2291 | | // Check flexible array members. |
---|
2292 | | struct incomplete_array *ia = |
---|
2293 | | malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); |
---|
2294 | | ia->datasize = 10; |
---|
2295 | | for (int i = 0; i < ia->datasize; ++i) |
---|
2296 | | ia->data[i] = i * 1.234; |
---|
2297 | | |
---|
2298 | | // Check named initializers. |
---|
2299 | | struct named_init ni = { |
---|
2300 | | .number = 34, |
---|
2301 | | .name = L"Test wide string", |
---|
2302 | | .average = 543.34343, |
---|
2303 | | }; |
---|
2304 | | |
---|
2305 | | ni.number = 58; |
---|
2306 | | |
---|
2307 | | int dynamic_array[ni.number]; |
---|
2308 | | dynamic_array[0] = argv[0][0]; |
---|
2309 | | dynamic_array[ni.number - 1] = 543; |
---|
2310 | | |
---|
2311 | | // work around unused variable warnings |
---|
2312 | | ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' |
---|
2313 | | || dynamic_array[ni.number - 1] != 543); |
---|
2314 | | |
---|
2315 | | return ok; |
---|
2316 | | } |
---|
2317 | | |
---|
2318 | configure:5183: /usr/bin/gcc-4.2 -D_STDC_C99= -c -pipe -Os -std=gnu89 -arch ppc -I/opt/local/include conftest.c >&5 |
---|
2319 | conftest.c:64:3: error: #error "Compiler does not advertise C99 conformance" |
---|
2320 | conftest.c:119: error: expected ';', ',' or ')' before 'text' |
---|
2321 | conftest.c: In function 'main': |
---|
2322 | conftest.c:181: error: nested functions are disabled, use -fnested-functions to re-enable |
---|
2323 | conftest.c:181: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'newvar' |
---|
2324 | conftest.c:181: error: 'newvar' undeclared (first use in this function) |
---|
2325 | conftest.c:181: error: (Each undeclared identifier is reported only once |
---|
2326 | conftest.c:181: error: for each function it appears in.) |
---|
2327 | conftest.c:191: error: 'for' loop initial declaration used outside C99 mode |
---|
2328 | configure:5183: $? = 1 |
---|
2329 | configure: failed program was: |
---|
2330 | | /* confdefs.h */ |
---|
2331 | | #define PACKAGE_NAME "flac" |
---|
2332 | | #define PACKAGE_TARNAME "flac" |
---|
2333 | | #define PACKAGE_VERSION "1.3.3" |
---|
2334 | | #define PACKAGE_STRING "flac 1.3.3" |
---|
2335 | | #define PACKAGE_BUGREPORT "flac-dev@xiph.org" |
---|
2336 | | #define PACKAGE_URL "https://www.xiph.org/flac/" |
---|
2337 | | #define PACKAGE "flac" |
---|
2338 | | #define VERSION "1.3.3" |
---|
2339 | | #define NDEBUG /**/ |
---|
2340 | | /* end confdefs.h. */ |
---|
2341 | | |
---|
2342 | | /* Does the compiler advertise C89 conformance? |
---|
2343 | | Do not test the value of __STDC__, because some compilers set it to 0 |
---|
2344 | | while being otherwise adequately conformant. */ |
---|
2345 | | #if !defined __STDC__ |
---|
2346 | | # error "Compiler does not advertise C89 conformance" |
---|
2347 | | #endif |
---|
2348 | | |
---|
2349 | | #include <stddef.h> |
---|
2350 | | #include <stdarg.h> |
---|
2351 | | struct stat; |
---|
2352 | | /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */ |
---|
2353 | | struct buf { int x; }; |
---|
2354 | | struct buf * (*rcsopen) (struct buf *, struct stat *, int); |
---|
2355 | | static char *e (p, i) |
---|
2356 | | char **p; |
---|
2357 | | int i; |
---|
2358 | | { |
---|
2359 | | return p[i]; |
---|
2360 | | } |
---|
2361 | | static char *f (char * (*g) (char **, int), char **p, ...) |
---|
2362 | | { |
---|
2363 | | char *s; |
---|
2364 | | va_list v; |
---|
2365 | | va_start (v,p); |
---|
2366 | | s = g (p, va_arg (v,int)); |
---|
2367 | | va_end (v); |
---|
2368 | | return s; |
---|
2369 | | } |
---|
2370 | | |
---|
2371 | | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
---|
2372 | | function prototypes and stuff, but not \xHH hex character constants. |
---|
2373 | | These do not provoke an error unfortunately, instead are silently treated |
---|
2374 | | as an "x". The following induces an error, until -std is added to get |
---|
2375 | | proper ANSI mode. Curiously \x00 != x always comes out true, for an |
---|
2376 | | array size at least. It is necessary to write \x00 == 0 to get something |
---|
2377 | | that is true only with -std. */ |
---|
2378 | | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
---|
2379 | | |
---|
2380 | | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
---|
2381 | | inside strings and character constants. */ |
---|
2382 | | #define FOO(x) 'x' |
---|
2383 | | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
---|
2384 | | |
---|
2385 | | int test (int i, double x); |
---|
2386 | | struct s1 {int (*f) (int a);}; |
---|
2387 | | struct s2 {int (*f) (double a);}; |
---|
2388 | | int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int), |
---|
2389 | | int, int); |
---|
2390 | | |
---|
2391 | | // Does the compiler advertise C99 conformance? |
---|
2392 | | #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L |
---|
2393 | | # error "Compiler does not advertise C99 conformance" |
---|
2394 | | #endif |
---|
2395 | | |
---|
2396 | | #include <stdbool.h> |
---|
2397 | | extern int puts (const char *); |
---|
2398 | | extern int printf (const char *, ...); |
---|
2399 | | extern int dprintf (int, const char *, ...); |
---|
2400 | | extern void *malloc (size_t); |
---|
2401 | | |
---|
2402 | | // Check varargs macros. These examples are taken from C99 6.10.3.5. |
---|
2403 | | // dprintf is used instead of fprintf to avoid needing to declare |
---|
2404 | | // FILE and stderr. |
---|
2405 | | #define debug(...) dprintf (2, __VA_ARGS__) |
---|
2406 | | #define showlist(...) puts (#__VA_ARGS__) |
---|
2407 | | #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) |
---|
2408 | | static void |
---|
2409 | | test_varargs_macros (void) |
---|
2410 | | { |
---|
2411 | | int x = 1234; |
---|
2412 | | int y = 5678; |
---|
2413 | | debug ("Flag"); |
---|
2414 | | debug ("X = %d\n", x); |
---|
2415 | | showlist (The first, second, and third items.); |
---|
2416 | | report (x>y, "x is %d but y is %d", x, y); |
---|
2417 | | } |
---|
2418 | | |
---|
2419 | | // Check long long types. |
---|
2420 | | #define BIG64 18446744073709551615ull |
---|
2421 | | #define BIG32 4294967295ul |
---|
2422 | | #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) |
---|
2423 | | #if !BIG_OK |
---|
2424 | | #error "your preprocessor is broken" |
---|
2425 | | #endif |
---|
2426 | | #if BIG_OK |
---|
2427 | | #else |
---|
2428 | | #error "your preprocessor is broken" |
---|
2429 | | #endif |
---|
2430 | | static long long int bignum = -9223372036854775807LL; |
---|
2431 | | static unsigned long long int ubignum = BIG64; |
---|
2432 | | |
---|
2433 | | struct incomplete_array |
---|
2434 | | { |
---|
2435 | | int datasize; |
---|
2436 | | double data[]; |
---|
2437 | | }; |
---|
2438 | | |
---|
2439 | | struct named_init { |
---|
2440 | | int number; |
---|
2441 | | const wchar_t *name; |
---|
2442 | | double average; |
---|
2443 | | }; |
---|
2444 | | |
---|
2445 | | typedef const char *ccp; |
---|
2446 | | |
---|
2447 | | static inline int |
---|
2448 | | test_restrict (ccp restrict text) |
---|
2449 | | { |
---|
2450 | | // See if C++-style comments work. |
---|
2451 | | // Iterate through items via the restricted pointer. |
---|
2452 | | // Also check for declarations in for loops. |
---|
2453 | | for (unsigned int i = 0; *(text+i) != '\0'; ++i) |
---|
2454 | | continue; |
---|
2455 | | return 0; |
---|
2456 | | } |
---|
2457 | | |
---|
2458 | | // Check varargs and va_copy. |
---|
2459 | | static bool |
---|
2460 | | test_varargs (const char *format, ...) |
---|
2461 | | { |
---|
2462 | | va_list args; |
---|
2463 | | va_start (args, format); |
---|
2464 | | va_list args_copy; |
---|
2465 | | va_copy (args_copy, args); |
---|
2466 | | |
---|
2467 | | const char *str = ""; |
---|
2468 | | int number = 0; |
---|
2469 | | float fnumber = 0; |
---|
2470 | | |
---|
2471 | | while (*format) |
---|
2472 | | { |
---|
2473 | | switch (*format++) |
---|
2474 | | { |
---|
2475 | | case 's': // string |
---|
2476 | | str = va_arg (args_copy, const char *); |
---|
2477 | | break; |
---|
2478 | | case 'd': // int |
---|
2479 | | number = va_arg (args_copy, int); |
---|
2480 | | break; |
---|
2481 | | case 'f': // float |
---|
2482 | | fnumber = va_arg (args_copy, double); |
---|
2483 | | break; |
---|
2484 | | default: |
---|
2485 | | break; |
---|
2486 | | } |
---|
2487 | | } |
---|
2488 | | va_end (args_copy); |
---|
2489 | | va_end (args); |
---|
2490 | | |
---|
2491 | | return *str && number && fnumber; |
---|
2492 | | } |
---|
2493 | | |
---|
2494 | | |
---|
2495 | | int |
---|
2496 | | main (int argc, char **argv) |
---|
2497 | | { |
---|
2498 | | int ok = 0; |
---|
2499 | | |
---|
2500 | | ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]); |
---|
2501 | | |
---|
2502 | | |
---|
2503 | | // Check bool. |
---|
2504 | | _Bool success = false; |
---|
2505 | | success |= (argc != 0); |
---|
2506 | | |
---|
2507 | | // Check restrict. |
---|
2508 | | if (test_restrict ("String literal") == 0) |
---|
2509 | | success = true; |
---|
2510 | | char *restrict newvar = "Another string"; |
---|
2511 | | |
---|
2512 | | // Check varargs. |
---|
2513 | | success &= test_varargs ("s, d' f .", "string", 65, 34.234); |
---|
2514 | | test_varargs_macros (); |
---|
2515 | | |
---|
2516 | | // Check flexible array members. |
---|
2517 | | struct incomplete_array *ia = |
---|
2518 | | malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); |
---|
2519 | | ia->datasize = 10; |
---|
2520 | | for (int i = 0; i < ia->datasize; ++i) |
---|
2521 | | ia->data[i] = i * 1.234; |
---|
2522 | | |
---|
2523 | | // Check named initializers. |
---|
2524 | | struct named_init ni = { |
---|
2525 | | .number = 34, |
---|
2526 | | .name = L"Test wide string", |
---|
2527 | | .average = 543.34343, |
---|
2528 | | }; |
---|
2529 | | |
---|
2530 | | ni.number = 58; |
---|
2531 | | |
---|
2532 | | int dynamic_array[ni.number]; |
---|
2533 | | dynamic_array[0] = argv[0][0]; |
---|
2534 | | dynamic_array[ni.number - 1] = 543; |
---|
2535 | | |
---|
2536 | | // work around unused variable warnings |
---|
2537 | | ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' |
---|
2538 | | || dynamic_array[ni.number - 1] != 543); |
---|
2539 | | |
---|
2540 | | return ok; |
---|
2541 | | } |
---|
2542 | | |
---|
2543 | configure:5196: result: unsupported |
---|
2544 | configure:5214: checking for /usr/bin/gcc-4.2 option to enable C89 features |
---|
2545 | configure:5229: /usr/bin/gcc-4.2 -c -pipe -Os -std=gnu89 -arch ppc -I/opt/local/include conftest.c >&5 |
---|
2546 | configure:5229: $? = 0 |
---|
2547 | configure:5247: result: none needed |
---|
2548 | configure:5271: checking whether /usr/bin/gcc-4.2 understands -c and -o together |
---|
2549 | configure:5294: /usr/bin/gcc-4.2 -c conftest.c -o conftest2.o |
---|
2550 | configure:5297: $? = 0 |
---|
2551 | configure:5294: /usr/bin/gcc-4.2 -c conftest.c -o conftest2.o |
---|
2552 | configure:5297: $? = 0 |
---|
2553 | configure:5309: result: yes |
---|
2554 | configure:5328: checking dependency style of /usr/bin/gcc-4.2 |
---|
2555 | configure:5440: result: gcc3 |
---|
2556 | configure:5461: checking for stdio.h |
---|
2557 | configure:5461: /usr/bin/gcc-4.2 -c -pipe -Os -std=gnu89 -arch ppc -I/opt/local/include conftest.c >&5 |
---|
2558 | configure:5461: $? = 0 |
---|
2559 | configure:5461: result: yes |
---|
2560 | configure:5461: checking for stdlib.h |
---|
2561 | configure:5461: /usr/bin/gcc-4.2 -c -pipe -Os -std=gnu89 -arch ppc -I/opt/local/include conftest.c >&5 |
---|
2562 | configure:5461: $? = 0 |
---|
2563 | configure:5461: result: yes |
---|
2564 | configure:5461: checking for string.h |
---|
2565 | configure:5461: /usr/bin/gcc-4.2 -c -pipe -Os -std=gnu89 -arch ppc -I/opt/local/include conftest.c >&5 |
---|
2566 | configure:5461: $? = 0 |
---|
2567 | configure:5461: result: yes |
---|
2568 | configure:5461: checking for inttypes.h |
---|
2569 | configure:5461: /usr/bin/gcc-4.2 -c -pipe -Os -std=gnu89 -arch ppc -I/opt/local/include conftest.c >&5 |
---|
2570 | configure:5461: $? = 0 |
---|
2571 | configure:5461: result: yes |
---|
2572 | configure:5461: checking for stdint.h |
---|
2573 | configure:5461: /usr/bin/gcc-4.2 -c -pipe -Os -std=gnu89 -arch ppc -I/opt/local/include conftest.c >&5 |
---|
2574 | configure:5461: $? = 0 |
---|
2575 | configure:5461: result: yes |
---|
2576 | configure:5461: checking for strings.h |
---|
2577 | configure:5461: /usr/bin/gcc-4.2 -c -pipe -Os -std=gnu89 -arch ppc -I/opt/local/include conftest.c >&5 |
---|
2578 | configure:5461: $? = 0 |
---|
2579 | configure:5461: result: yes |
---|
2580 | configure:5461: checking for sys/stat.h |
---|
2581 | configure:5461: /usr/bin/gcc-4.2 -c -pipe -Os -std=gnu89 -arch ppc -I/opt/local/include conftest.c >&5 |
---|
2582 | configure:5461: $? = 0 |
---|
2583 | configure:5461: result: yes |
---|
2584 | configure:5461: checking for sys/types.h |
---|
2585 | configure:5461: /usr/bin/gcc-4.2 -c -pipe -Os -std=gnu89 -arch ppc -I/opt/local/include conftest.c >&5 |
---|
2586 | configure:5461: $? = 0 |
---|
2587 | configure:5461: result: yes |
---|
2588 | configure:5461: checking for unistd.h |
---|
2589 | configure:5461: /usr/bin/gcc-4.2 -c -pipe -Os -std=gnu89 -arch ppc -I/opt/local/include conftest.c >&5 |
---|
2590 | configure:5461: $? = 0 |
---|
2591 | configure:5461: result: yes |
---|
2592 | configure:5461: checking for wchar.h |
---|
2593 | configure:5461: /usr/bin/gcc-4.2 -c -pipe -Os -std=gnu89 -arch ppc -I/opt/local/include conftest.c >&5 |
---|
2594 | configure:5461: $? = 0 |
---|
2595 | configure:5461: result: yes |
---|
2596 | configure:5461: checking for minix/config.h |
---|
2597 | configure:5461: /usr/bin/gcc-4.2 -c -pipe -Os -std=gnu89 -arch ppc -I/opt/local/include conftest.c >&5 |
---|
2598 | conftest.c:50:26: error: minix/config.h: No such file or directory |
---|
2599 | configure:5461: $? = 1 |
---|
2600 | configure: failed program was: |
---|
2601 | | /* confdefs.h */ |
---|
2602 | | #define PACKAGE_NAME "flac" |
---|
2603 | | #define PACKAGE_TARNAME "flac" |
---|
2604 | | #define PACKAGE_VERSION "1.3.3" |
---|
2605 | | #define PACKAGE_STRING "flac 1.3.3" |
---|
2606 | | #define PACKAGE_BUGREPORT "flac-dev@xiph.org" |
---|
2607 | | #define PACKAGE_URL "https://www.xiph.org/flac/" |
---|
2608 | | #define PACKAGE "flac" |
---|
2609 | | #define VERSION "1.3.3" |
---|
2610 | | #define NDEBUG /**/ |
---|
2611 | | #define HAVE_STDIO_H 1 |
---|
2612 | | #define HAVE_STDLIB_H 1 |
---|
2613 | | #define HAVE_STRING_H 1 |
---|
2614 | | #define HAVE_INTTYPES_H 1 |
---|
2615 | | #define HAVE_STDINT_H 1 |
---|
2616 | | #define HAVE_STRINGS_H 1 |
---|
2617 | | #define HAVE_SYS_STAT_H 1 |
---|
2618 | | #define HAVE_SYS_TYPES_H 1 |
---|
2619 | | #define HAVE_UNISTD_H 1 |
---|
2620 | | #define HAVE_WCHAR_H 1 |
---|
2621 | | /* end confdefs.h. */ |
---|
2622 | | #include <stddef.h> |
---|
2623 | | #ifdef HAVE_STDIO_H |
---|
2624 | | # include <stdio.h> |
---|
2625 | | #endif |
---|
2626 | | #ifdef HAVE_STDLIB_H |
---|
2627 | | # include <stdlib.h> |
---|
2628 | | #endif |
---|
2629 | | #ifdef HAVE_STRING_H |
---|
2630 | | # include <string.h> |
---|
2631 | | #endif |
---|
2632 | | #ifdef HAVE_INTTYPES_H |
---|
2633 | | # include <inttypes.h> |
---|
2634 | | #endif |
---|
2635 | | #ifdef HAVE_STDINT_H |
---|
2636 | | # include <stdint.h> |
---|
2637 | | #endif |
---|
2638 | | #ifdef HAVE_STRINGS_H |
---|
2639 | | # include <strings.h> |
---|
2640 | | #endif |
---|
2641 | | #ifdef HAVE_SYS_TYPES_H |
---|
2642 | | # include <sys/types.h> |
---|
2643 | | #endif |
---|
2644 | | #ifdef HAVE_SYS_STAT_H |
---|
2645 | | # include <sys/stat.h> |
---|
2646 | | #endif |
---|
2647 | | #ifdef HAVE_UNISTD_H |
---|
2648 | | # include <unistd.h> |
---|
2649 | | #endif |
---|
2650 | | #include <minix/config.h> |
---|
2651 | configure:5461: result: no |
---|
2652 | configure:5492: checking whether it is safe to define __EXTENSIONS__ |
---|
2653 | configure:5511: /usr/bin/gcc-4.2 -c -pipe -Os -std=gnu89 -arch ppc -I/opt/local/include conftest.c >&5 |
---|
2654 | configure:5511: $? = 0 |
---|
2655 | configure:5519: result: yes |
---|
2656 | configure:5522: checking whether _XOPEN_SOURCE should be defined |
---|
2657 | configure:5544: /usr/bin/gcc-4.2 -c -pipe -Os -std=gnu89 -arch ppc -I/opt/local/include conftest.c >&5 |
---|
2658 | configure:5544: $? = 0 |
---|
2659 | configure:5571: result: no |
---|
2660 | configure:5682: checking for ar |
---|
2661 | configure:5703: found /opt/local/bin/ar |
---|
2662 | configure:5714: result: ar |
---|
2663 | configure:5740: checking the archiver (ar) interface |
---|
2664 | configure:5757: /usr/bin/gcc-4.2 -c -pipe -Os -std=gnu89 -arch ppc -I/opt/local/include conftest.c >&5 |
---|
2665 | configure:5757: $? = 0 |
---|
2666 | configure:5760: ar cru libconftest.a conftest.o >&5 |
---|
2667 | configure:5763: $? = 0 |
---|
2668 | configure:5791: result: ar |
---|
2669 | configure:5843: checking build system type |
---|
2670 | configure:5858: result: x86_64-apple-darwin10.8.0 |
---|
2671 | configure:5878: checking host system type |
---|
2672 | configure:5892: result: x86_64-apple-darwin10.8.0 |
---|
2673 | configure:5933: checking how to print strings |
---|
2674 | configure:5960: result: printf |
---|
2675 | configure:5981: checking for a sed that does not truncate output |
---|
2676 | configure:6051: result: /opt/local/bin/gsed |
---|
2677 | configure:6069: checking for grep that handles long lines and -e |
---|
2678 | configure:6133: result: /opt/local/bin/ggrep |
---|
2679 | configure:6138: checking for egrep |
---|
2680 | configure:6206: result: /opt/local/bin/ggrep -E |
---|
2681 | configure:6211: checking for fgrep |
---|
2682 | configure:6279: result: /opt/local/bin/ggrep -F |
---|
2683 | configure:6315: checking for ld used by /usr/bin/gcc-4.2 |
---|
2684 | configure:6383: result: /usr/libexec/gcc/i686-apple-darwin10/4.2.1/ld |
---|
2685 | configure:6390: checking if the linker (/usr/libexec/gcc/i686-apple-darwin10/4.2.1/ld) is GNU ld |
---|
2686 | configure:6406: result: no |
---|
2687 | configure:6418: checking for BSD- or MS-compatible name lister (nm) |
---|
2688 | configure:6473: result: /opt/local/bin/nm |
---|
2689 | configure:6613: checking the name lister (/opt/local/bin/nm) interface |
---|
2690 | configure:6621: /usr/bin/gcc-4.2 -c -pipe -Os -std=gnu89 -arch ppc -I/opt/local/include conftest.c >&5 |
---|
2691 | configure:6624: /opt/local/bin/nm "conftest.o" |
---|
2692 | configure:6627: output |
---|
2693 | 00000000 D _some_variable |
---|
2694 | configure:6634: result: BSD nm |
---|
2695 | configure:6637: checking whether ln -s works |
---|
2696 | configure:6641: result: yes |
---|
2697 | configure:6649: checking the maximum length of command line arguments |
---|
2698 | configure:6781: result: 196608 |
---|
2699 | configure:6829: checking how to convert x86_64-apple-darwin10.8.0 file names to x86_64-apple-darwin10.8.0 format |
---|
2700 | configure:6870: result: func_convert_file_noop |
---|
2701 | configure:6877: checking how to convert x86_64-apple-darwin10.8.0 file names to toolchain format |
---|
2702 | configure:6898: result: func_convert_file_noop |
---|
2703 | configure:6905: checking for /usr/libexec/gcc/i686-apple-darwin10/4.2.1/ld option to reload object files |
---|
2704 | configure:6913: result: -r |
---|
2705 | configure:6992: checking for objdump |
---|
2706 | configure:7027: result: no |
---|
2707 | configure:7053: checking how to recognize dependent libraries |
---|
2708 | configure:7254: result: pass_all |
---|
2709 | configure:7344: checking for dlltool |
---|
2710 | configure:7379: result: no |
---|
2711 | configure:7406: checking how to associate runtime and link libraries |
---|
2712 | configure:7434: result: printf %s\n |
---|
2713 | configure:7568: checking for archiver @FILE support |
---|
2714 | configure:7586: /usr/bin/gcc-4.2 -c -pipe -Os -std=gnu89 -arch ppc -I/opt/local/include conftest.c >&5 |
---|
2715 | configure:7586: $? = 0 |
---|
2716 | configure:7590: ar cru libconftest.a @conftest.lst >&5 |
---|
2717 | ar: @conftest.lst: No such file or directory |
---|
2718 | configure:7593: $? = 1 |
---|
2719 | configure:7613: result: no |
---|
2720 | configure:7676: checking for strip |
---|
2721 | configure:7697: found /opt/local/bin/strip |
---|
2722 | configure:7708: result: strip |
---|
2723 | configure:7785: checking for ranlib |
---|
2724 | configure:7806: found /opt/local/bin/ranlib |
---|
2725 | configure:7817: result: ranlib |
---|
2726 | configure:7919: checking command to parse /opt/local/bin/nm output from /usr/bin/gcc-4.2 object |
---|
2727 | configure:8073: /usr/bin/gcc-4.2 -c -pipe -Os -std=gnu89 -arch ppc -I/opt/local/include conftest.c >&5 |
---|
2728 | configure:8076: $? = 0 |
---|
2729 | configure:8080: /opt/local/bin/nm conftest.o \| sed -n -e 's/^.*[ ]\([BCDEGRST][BCDEGRST]*\)[ ][ ]*\([_A-Za-z][_A-Za-z0-9]*\)$/\1 \2 \2/p' | sed '/ __gnu_lto/d' \> conftest.nm |
---|
2730 | configure:8083: $? = 0 |
---|
2731 | cannot find nm_test_var in conftest.nm |
---|
2732 | configure:8073: /usr/bin/gcc-4.2 -c -pipe -Os -std=gnu89 -arch ppc -I/opt/local/include conftest.c >&5 |
---|
2733 | configure:8076: $? = 0 |
---|
2734 | configure:8080: /opt/local/bin/nm conftest.o \| sed -n -e 's/^.*[ ]\([BCDEGRST][BCDEGRST]*\)[ ][ ]*_\([_A-Za-z][_A-Za-z0-9]*\)$/\1 _\2 \2/p' | sed '/ __gnu_lto/d' \> conftest.nm |
---|
2735 | configure:8083: $? = 0 |
---|
2736 | configure:8149: /usr/bin/gcc-4.2 -o conftest -pipe -Os -std=gnu89 -arch ppc -I/opt/local/include -L/opt/local/lib -Wl,-headerpad_max_install_names -arch ppc conftest.c conftstm.o >&5 |
---|
2737 | configure:8152: $? = 0 |
---|
2738 | configure:8190: result: ok |
---|
2739 | configure:8237: checking for sysroot |
---|
2740 | configure:8268: result: no |
---|
2741 | configure:8275: checking for a working dd |
---|
2742 | configure:8319: result: /bin/dd |
---|
2743 | configure:8323: checking how to truncate binary pipes |
---|
2744 | configure:8339: result: /bin/dd bs=4096 count=1 |
---|
2745 | configure:8676: checking for mt |
---|
2746 | configure:8711: result: no |
---|
2747 | configure:8731: checking if : is a manifest tool |
---|
2748 | configure:8738: : '-?' |
---|
2749 | configure:8746: result: no |
---|
2750 | configure:8807: checking for dsymutil |
---|
2751 | configure:8828: found /usr/bin/dsymutil |
---|
2752 | configure:8839: result: dsymutil |
---|
2753 | configure:8909: checking for nmedit |
---|
2754 | configure:8930: found /opt/local/bin/nmedit |
---|
2755 | configure:8941: result: nmedit |
---|
2756 | configure:9011: checking for lipo |
---|
2757 | configure:9032: found /opt/local/bin/lipo |
---|
2758 | configure:9043: result: lipo |
---|
2759 | configure:9113: checking for otool |
---|
2760 | configure:9134: found /opt/local/bin/otool |
---|
2761 | configure:9145: result: otool |
---|
2762 | configure:9215: checking for otool64 |
---|
2763 | configure:9250: result: no |
---|
2764 | configure:9295: checking for -single_module linker flag |
---|
2765 | /usr/bin/gcc-4.2 -pipe -Os -std=gnu89 -arch ppc -L/opt/local/lib -Wl,-headerpad_max_install_names -arch ppc -o libconftest.dylib -dynamiclib -Wl,-single_module conftest.c |
---|
2766 | configure:9329: result: yes |
---|
2767 | configure:9332: checking for -exported_symbols_list linker flag |
---|
2768 | configure:9353: /usr/bin/gcc-4.2 -o conftest -pipe -Os -std=gnu89 -arch ppc -I/opt/local/include -L/opt/local/lib -Wl,-headerpad_max_install_names -arch ppc -Wl,-exported_symbols_list,conftest.sym conftest.c >&5 |
---|
2769 | configure:9353: $? = 0 |
---|
2770 | configure:9364: result: yes |
---|
2771 | configure:9367: checking for -force_load linker flag |
---|
2772 | /usr/bin/gcc-4.2 -pipe -Os -std=gnu89 -arch ppc -c -o conftest.o conftest.c |
---|
2773 | ar cru libconftest.a conftest.o |
---|
2774 | ranlib libconftest.a |
---|
2775 | /usr/bin/gcc-4.2 -pipe -Os -std=gnu89 -arch ppc -L/opt/local/lib -Wl,-headerpad_max_install_names -arch ppc -o conftest conftest.c -Wl,-force_load,./libconftest.a |
---|
2776 | configure:9400: result: yes |
---|
2777 | configure:9467: checking for dlfcn.h |
---|
2778 | configure:9467: /usr/bin/gcc-4.2 -c -pipe -Os -std=gnu89 -arch ppc -I/opt/local/include conftest.c >&5 |
---|
2779 | configure:9467: $? = 0 |
---|
2780 | configure:9467: result: yes |
---|
2781 | configure:10052: checking for objdir |
---|
2782 | configure:10068: result: .libs |
---|
2783 | configure:10332: checking if /usr/bin/gcc-4.2 supports -fno-rtti -fno-exceptions |
---|
2784 | configure:10351: /usr/bin/gcc-4.2 -c -pipe -Os -std=gnu89 -arch ppc -I/opt/local/include -fno-rtti -fno-exceptions conftest.c >&5 |
---|
2785 | cc1: warning: command line option "-fno-rtti" is valid for C++/ObjC++ but not for C |
---|
2786 | configure:10355: $? = 0 |
---|
2787 | configure:10368: result: no |
---|
2788 | configure:10726: checking for /usr/bin/gcc-4.2 option to produce PIC |
---|
2789 | configure:10734: result: -fno-common -DPIC |
---|
2790 | configure:10742: checking if /usr/bin/gcc-4.2 PIC flag -fno-common -DPIC works |
---|
2791 | configure:10761: /usr/bin/gcc-4.2 -c -pipe -Os -std=gnu89 -arch ppc -I/opt/local/include -fno-common -DPIC -DPIC conftest.c >&5 |
---|
2792 | configure:10765: $? = 0 |
---|
2793 | configure:10778: result: yes |
---|
2794 | configure:10807: checking if /usr/bin/gcc-4.2 static flag -static works |
---|
2795 | configure:10836: result: no |
---|
2796 | configure:10851: checking if /usr/bin/gcc-4.2 supports -c -o file.o |
---|
2797 | configure:10873: /usr/bin/gcc-4.2 -c -pipe -Os -std=gnu89 -arch ppc -I/opt/local/include -o out/conftest2.o conftest.c >&5 |
---|
2798 | configure:10877: $? = 0 |
---|
2799 | configure:10899: result: yes |
---|
2800 | configure:10907: checking if /usr/bin/gcc-4.2 supports -c -o file.o |
---|
2801 | configure:10955: result: yes |
---|
2802 | configure:10988: checking whether the /usr/bin/gcc-4.2 linker (/usr/libexec/gcc/i686-apple-darwin10/4.2.1/ld) supports shared libraries |
---|
2803 | configure:12254: result: yes |
---|
2804 | configure:12495: checking dynamic linker characteristics |
---|
2805 | configure:13316: result: darwin10.8.0 dyld |
---|
2806 | configure:13438: checking how to hardcode library paths into programs |
---|
2807 | configure:13463: result: immediate |
---|
2808 | configure:14015: checking whether stripping libraries is possible |
---|
2809 | configure:14029: result: yes |
---|
2810 | configure:14055: checking if libtool supports shared libraries |
---|
2811 | configure:14057: result: yes |
---|
2812 | configure:14060: checking whether to build shared libraries |
---|
2813 | configure:14085: result: yes |
---|
2814 | configure:14088: checking whether to build static libraries |
---|
2815 | configure:14092: result: no |
---|
2816 | configure:14138: checking dependency style of /usr/bin/gcc-4.2 |
---|
2817 | configure:14248: result: gcc3 |
---|
2818 | configure:14391: checking for C++ compiler version |
---|
2819 | configure:14400: /usr/bin/g++-4.2 --version >&5 |
---|
2820 | i686-apple-darwin10-g++-4.2.1 (GCC) 4.2.1 (Apple Inc. build 5646) |
---|
2821 | Copyright (C) 2007 Free Software Foundation, Inc. |
---|
2822 | This is free software; see the source for copying conditions. There is NO |
---|
2823 | warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
---|
2824 | |
---|
2825 | configure:14411: $? = 0 |
---|
2826 | configure:14400: /usr/bin/g++-4.2 -v >&5 |
---|
2827 | Using built-in specs. |
---|
2828 | Target: i686-apple-darwin10 |
---|
2829 | Configured with: /var/tmp/gcc/gcc-5646~6/src/configure --disable-checking --enable-werror --prefix=/usr --mandir=/share/man --enable-languages=c,objc,c++,obj-c++ --program-transform-name=/^[cg][^.-]*$/s/$/-4.2/ --with-slibdir=/usr/lib --build=i686-apple-darwin10 --with-gxx-include-dir=/include/c++/4.2.1 --program-prefix=i686-apple-darwin10- --host=x86_64-apple-darwin10 --target=i686-apple-darwin10 |
---|
2830 | Thread model: posix |
---|
2831 | gcc version 4.2.1 (Apple Inc. build 5646) |
---|
2832 | configure:14411: $? = 0 |
---|
2833 | configure:14400: /usr/bin/g++-4.2 -V >&5 |
---|
2834 | g++-4.2: argument to `-V' is missing |
---|
2835 | configure:14411: $? = 1 |
---|
2836 | configure:14400: /usr/bin/g++-4.2 -qversion >&5 |
---|
2837 | i686-apple-darwin10-g++-4.2.1: no input files |
---|
2838 | configure:14411: $? = 1 |
---|
2839 | configure:14415: checking whether the compiler supports GNU C++ |
---|
2840 | configure:14435: /usr/bin/g++-4.2 -c -pipe -Os -arch ppc -I/opt/local/include conftest.cpp >&5 |
---|
2841 | configure:14435: $? = 0 |
---|
2842 | configure:14445: result: yes |
---|
2843 | configure:14456: checking whether /usr/bin/g++-4.2 accepts -g |
---|
2844 | configure:14477: /usr/bin/g++-4.2 -c -g -I/opt/local/include conftest.cpp >&5 |
---|
2845 | configure:14477: $? = 0 |
---|
2846 | configure:14521: result: yes |
---|
2847 | configure:14541: checking for /usr/bin/g++-4.2 option to enable C++11 features |
---|
2848 | configure:14556: /usr/bin/g++-4.2 -c -pipe -Os -arch ppc -I/opt/local/include conftest.cpp >&5 |
---|
2849 | conftest.cpp:44:3: error: #error "Compiler does not advertise C++98 conformance" |
---|
2850 | conftest.cpp:87:3: error: #error "Compiler does not advertise C++11 conformance" |
---|
2851 | conftest.cpp:92: error: expected constructor, destructor, or type conversion before 'int' |
---|
2852 | conftest.cpp: In constructor 'cxx11test::delegate::delegate()': |
---|
2853 | conftest.cpp:104: error: type 'cxx11test::delegate' is not a direct base of 'cxx11test::delegate' |
---|
2854 | conftest.cpp: At global scope: |
---|
2855 | conftest.cpp:115: error: expected ';' before 'override' |
---|
2856 | conftest.cpp:116: error: expected `;' before '}' token |
---|
2857 | conftest.cpp:122: error: invalid pure specifier (only `= 0' is allowed) before ';' token |
---|
2858 | conftest.cpp:123: error: invalid pure specifier (only `= 0' is allowed) before ';' token |
---|
2859 | conftest.cpp:124: error: invalid pure specifier (only `= 0' is allowed) before ';' token |
---|
2860 | conftest.cpp:122: error: initializer specified for non-virtual method 'cxx11test::nocopy::nocopy()' |
---|
2861 | conftest.cpp:123: error: initializer specified for non-virtual method 'cxx11test::nocopy::nocopy(const cxx11test::nocopy&)' |
---|
2862 | conftest.cpp:124: error: initializer specified for non-virtual method 'cxx11test::nocopy& cxx11test::nocopy::operator=(const cxx11test::nocopy&)' |
---|
2863 | conftest.cpp:136: error: expected initializer before '->' token |
---|
2864 | conftest.cpp:140: error: expected nested-name-specifier before '...' token |
---|
2865 | conftest.cpp:140: error: expected '>' before '...' token |
---|
2866 | conftest.cpp:140: error: 'Args' has not been declared |
---|
2867 | conftest.cpp:140: error: expected `)' before 'rest' |
---|
2868 | conftest.cpp:140: error: expected initializer before 'rest' |
---|
2869 | conftest.cpp: In function 'int main(int, char**)': |
---|
2870 | conftest.cpp:164: error: ISO C++ forbids declaration of 'a1' with no type |
---|
2871 | conftest.cpp:165: error: ISO C++ forbids declaration of 'a2' with no type |
---|
2872 | conftest.cpp:166: error: ISO C++ forbids declaration of 'a3' with no type |
---|
2873 | conftest.cpp:166: error: invalid conversion from 'const char*' to 'int' |
---|
2874 | conftest.cpp:169: error: ISO C++ forbids declaration of 'i' with no type |
---|
2875 | conftest.cpp:169: error: invalid type argument of 'unary *' |
---|
2876 | conftest.cpp:169: error: invalid type argument of 'unary *' |
---|
2877 | conftest.cpp:171: error: 'decltype' was not declared in this scope |
---|
2878 | conftest.cpp:171: error: expected `;' before 'a4' |
---|
2879 | conftest.cpp:175: error: 'get_val' is not a member of 'cxx11test' |
---|
2880 | conftest.cpp:185: error: a function-definition is not allowed here before ':' token |
---|
2881 | conftest.cpp:186: error: expected primary-expression before '}' token |
---|
2882 | conftest.cpp:186: error: expected `;' before '}' token |
---|
2883 | conftest.cpp:186: error: expected primary-expression before '}' token |
---|
2884 | conftest.cpp:186: error: expected `)' before '}' token |
---|
2885 | conftest.cpp:186: error: expected primary-expression before '}' token |
---|
2886 | conftest.cpp:186: error: expected `;' before '}' token |
---|
2887 | conftest.cpp:190: error: expected primary-expression before '[' token |
---|
2888 | conftest.cpp:190: error: expected primary-expression before ']' token |
---|
2889 | conftest.cpp:190: error: expected primary-expression before 'int' |
---|
2890 | conftest.cpp:192: error: expected primary-expression before '[' token |
---|
2891 | conftest.cpp:192: error: expected primary-expression before ']' token |
---|
2892 | conftest.cpp:192: error: expected primary-expression before 'double' |
---|
2893 | conftest.cpp:194: error: expected primary-expression before '[' token |
---|
2894 | conftest.cpp:194: error: expected primary-expression before '=' token |
---|
2895 | conftest.cpp:194: error: expected primary-expression before ']' token |
---|
2896 | conftest.cpp:194: error: expected primary-expression before 'double' |
---|
2897 | conftest.cpp:199: error: 'cxx11test::sum' has not been declared |
---|
2898 | conftest.cpp:200: error: ISO C++ forbids declaration of 'a' with no type |
---|
2899 | conftest.cpp:200: error: 'sum' was not declared in this scope |
---|
2900 | conftest.cpp:201: error: ISO C++ forbids declaration of 'b' with no type |
---|
2901 | conftest.cpp:202: error: ISO C++ forbids declaration of 'c' with no type |
---|
2902 | conftest.cpp:216: error: 'nullptr' was not declared in this scope |
---|
2903 | conftest.cpp:220: error: '>>' should be '> >' within a nested template argument list |
---|
2904 | conftest.cpp:220: error: '<::' cannot begin a template-argument list |
---|
2905 | conftest.cpp:220: note: '<:' is an alternate spelling for '['. Insert whitespace between '<' and '::' |
---|
2906 | conftest.cpp:220: note: (if you use -fpermissive G++ will accept your code) |
---|
2907 | conftest.cpp:224: error: 'u8' was not declared in this scope |
---|
2908 | conftest.cpp:224: error: expected ',' or ';' before string constant |
---|
2909 | conftest.cpp:225: error: 'char16_t' was not declared in this scope |
---|
2910 | conftest.cpp:225: error: expected `;' before 'const' |
---|
2911 | conftest.cpp:226: error: 'char32_t' was not declared in this scope |
---|
2912 | conftest.cpp:226: error: expected `;' before 'const' |
---|
2913 | configure:14556: $? = 1 |
---|
2914 | configure: failed program was: |
---|
2915 | | /* confdefs.h */ |
---|
2916 | | #define PACKAGE_NAME "flac" |
---|
2917 | | #define PACKAGE_TARNAME "flac" |
---|
2918 | | #define PACKAGE_VERSION "1.3.3" |
---|
2919 | | #define PACKAGE_STRING "flac 1.3.3" |
---|
2920 | | #define PACKAGE_BUGREPORT "flac-dev@xiph.org" |
---|
2921 | | #define PACKAGE_URL "https://www.xiph.org/flac/" |
---|
2922 | | #define PACKAGE "flac" |
---|
2923 | | #define VERSION "1.3.3" |
---|
2924 | | #define NDEBUG /**/ |
---|
2925 | | #define HAVE_STDIO_H 1 |
---|
2926 | | #define HAVE_STDLIB_H 1 |
---|
2927 | | #define HAVE_STRING_H 1 |
---|
2928 | | #define HAVE_INTTYPES_H 1 |
---|
2929 | | #define HAVE_STDINT_H 1 |
---|
2930 | | #define HAVE_STRINGS_H 1 |
---|
2931 | | #define HAVE_SYS_STAT_H 1 |
---|
2932 | | #define HAVE_SYS_TYPES_H 1 |
---|
2933 | | #define HAVE_UNISTD_H 1 |
---|
2934 | | #define HAVE_WCHAR_H 1 |
---|
2935 | | #define STDC_HEADERS 1 |
---|
2936 | | #define _ALL_SOURCE 1 |
---|
2937 | | #define _DARWIN_C_SOURCE 1 |
---|
2938 | | #define _GNU_SOURCE 1 |
---|
2939 | | #define _HPUX_ALT_XOPEN_SOCKET_API 1 |
---|
2940 | | #define _NETBSD_SOURCE 1 |
---|
2941 | | #define _OPENBSD_SOURCE 1 |
---|
2942 | | #define _POSIX_PTHREAD_SEMANTICS 1 |
---|
2943 | | #define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1 |
---|
2944 | | #define __STDC_WANT_IEC_60559_BFP_EXT__ 1 |
---|
2945 | | #define __STDC_WANT_IEC_60559_DFP_EXT__ 1 |
---|
2946 | | #define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1 |
---|
2947 | | #define __STDC_WANT_IEC_60559_TYPES_EXT__ 1 |
---|
2948 | | #define __STDC_WANT_LIB_EXT2__ 1 |
---|
2949 | | #define __STDC_WANT_MATH_SPEC_FUNCS__ 1 |
---|
2950 | | #define _TANDEM_SOURCE 1 |
---|
2951 | | #define __EXTENSIONS__ 1 |
---|
2952 | | #define HAVE_DLFCN_H 1 |
---|
2953 | | #define LT_OBJDIR ".libs/" |
---|
2954 | | /* end confdefs.h. */ |
---|
2955 | | |
---|
2956 | | // Does the compiler advertise C++98 conformance? |
---|
2957 | | #if !defined __cplusplus || __cplusplus < 199711L |
---|
2958 | | # error "Compiler does not advertise C++98 conformance" |
---|
2959 | | #endif |
---|
2960 | | |
---|
2961 | | // These inclusions are to reject old compilers that |
---|
2962 | | // lack the unsuffixed header files. |
---|
2963 | | #include <cstdlib> |
---|
2964 | | #include <exception> |
---|
2965 | | |
---|
2966 | | // <cassert> and <cstring> are *not* freestanding headers in C++98. |
---|
2967 | | extern void assert (int); |
---|
2968 | | namespace std { |
---|
2969 | | extern int strcmp (const char *, const char *); |
---|
2970 | | } |
---|
2971 | | |
---|
2972 | | // Namespaces, exceptions, and templates were all added after "C++ 2.0". |
---|
2973 | | using std::exception; |
---|
2974 | | using std::strcmp; |
---|
2975 | | |
---|
2976 | | namespace { |
---|
2977 | | |
---|
2978 | | void test_exception_syntax() |
---|
2979 | | { |
---|
2980 | | try { |
---|
2981 | | throw "test"; |
---|
2982 | | } catch (const char *s) { |
---|
2983 | | // Extra parentheses suppress a warning when building autoconf itself, |
---|
2984 | | // due to lint rules shared with more typical C programs. |
---|
2985 | | assert (!(strcmp) (s, "test")); |
---|
2986 | | } |
---|
2987 | | } |
---|
2988 | | |
---|
2989 | | template <typename T> struct test_template |
---|
2990 | | { |
---|
2991 | | T const val; |
---|
2992 | | explicit test_template(T t) : val(t) {} |
---|
2993 | | template <typename U> T add(U u) { return static_cast<T>(u) + val; } |
---|
2994 | | }; |
---|
2995 | | |
---|
2996 | | } // anonymous namespace |
---|
2997 | | |
---|
2998 | | |
---|
2999 | | // Does the compiler advertise C++ 2011 conformance? |
---|
3000 | | #if !defined __cplusplus || __cplusplus < 201103L |
---|
3001 | | # error "Compiler does not advertise C++11 conformance" |
---|
3002 | | #endif |
---|
3003 | | |
---|
3004 | | namespace cxx11test |
---|
3005 | | { |
---|
3006 | | constexpr int get_val() { return 20; } |
---|
3007 | | |
---|
3008 | | struct testinit |
---|
3009 | | { |
---|
3010 | | int i; |
---|
3011 | | double d; |
---|
3012 | | }; |
---|
3013 | | |
---|
3014 | | class delegate |
---|
3015 | | { |
---|
3016 | | public: |
---|
3017 | | delegate(int n) : n(n) {} |
---|
3018 | | delegate(): delegate(2354) {} |
---|
3019 | | |
---|
3020 | | virtual int getval() { return this->n; }; |
---|
3021 | | protected: |
---|
3022 | | int n; |
---|
3023 | | }; |
---|
3024 | | |
---|
3025 | | class overridden : public delegate |
---|
3026 | | { |
---|
3027 | | public: |
---|
3028 | | overridden(int n): delegate(n) {} |
---|
3029 | | virtual int getval() override final { return this->n * 2; } |
---|
3030 | | }; |
---|
3031 | | |
---|
3032 | | class nocopy |
---|
3033 | | { |
---|
3034 | | public: |
---|
3035 | | nocopy(int i): i(i) {} |
---|
3036 | | nocopy() = default; |
---|
3037 | | nocopy(const nocopy&) = delete; |
---|
3038 | | nocopy & operator=(const nocopy&) = delete; |
---|
3039 | | private: |
---|
3040 | | int i; |
---|
3041 | | }; |
---|
3042 | | |
---|
3043 | | // for testing lambda expressions |
---|
3044 | | template <typename Ret, typename Fn> Ret eval(Fn f, Ret v) |
---|
3045 | | { |
---|
3046 | | return f(v); |
---|
3047 | | } |
---|
3048 | | |
---|
3049 | | // for testing variadic templates and trailing return types |
---|
3050 | | template <typename V> auto sum(V first) -> V |
---|
3051 | | { |
---|
3052 | | return first; |
---|
3053 | | } |
---|
3054 | | template <typename V, typename... Args> auto sum(V first, Args... rest) -> V |
---|
3055 | | { |
---|
3056 | | return first + sum(rest...); |
---|
3057 | | } |
---|
3058 | | } |
---|
3059 | | |
---|
3060 | | |
---|
3061 | | int |
---|
3062 | | main (int argc, char **argv) |
---|
3063 | | { |
---|
3064 | | int ok = 0; |
---|
3065 | | |
---|
3066 | | assert (argc); |
---|
3067 | | assert (! argv[0]); |
---|
3068 | | { |
---|
3069 | | test_exception_syntax (); |
---|
3070 | | test_template<double> tt (2.0); |
---|
3071 | | assert (tt.add (4) == 6.0); |
---|
3072 | | assert (true && !false); |
---|
3073 | | } |
---|
3074 | | |
---|
3075 | | |
---|
3076 | | { |
---|
3077 | | // Test auto and decltype |
---|
3078 | | auto a1 = 6538; |
---|
3079 | | auto a2 = 48573953.4; |
---|
3080 | | auto a3 = "String literal"; |
---|
3081 | | |
---|
3082 | | int total = 0; |
---|
3083 | | for (auto i = a3; *i; ++i) { total += *i; } |
---|
3084 | | |
---|
3085 | | decltype(a2) a4 = 34895.034; |
---|
3086 | | } |
---|
3087 | | { |
---|
3088 | | // Test constexpr |
---|
3089 | | short sa[cxx11test::get_val()] = { 0 }; |
---|
3090 | | } |
---|
3091 | | { |
---|
3092 | | // Test initializer lists |
---|
3093 | | cxx11test::testinit il = { 4323, 435234.23544 }; |
---|
3094 | | } |
---|
3095 | | { |
---|
3096 | | // Test range-based for |
---|
3097 | | int array[] = {9, 7, 13, 15, 4, 18, 12, 10, 5, 3, |
---|
3098 | | 14, 19, 17, 8, 6, 20, 16, 2, 11, 1}; |
---|
3099 | | for (auto &x : array) { x += 23; } |
---|
3100 | | } |
---|
3101 | | { |
---|
3102 | | // Test lambda expressions |
---|
3103 | | using cxx11test::eval; |
---|
3104 | | assert (eval ([](int x) { return x*2; }, 21) == 42); |
---|
3105 | | double d = 2.0; |
---|
3106 | | assert (eval ([&](double x) { return d += x; }, 3.0) == 5.0); |
---|
3107 | | assert (d == 5.0); |
---|
3108 | | assert (eval ([=](double x) mutable { return d += x; }, 4.0) == 9.0); |
---|
3109 | | assert (d == 5.0); |
---|
3110 | | } |
---|
3111 | | { |
---|
3112 | | // Test use of variadic templates |
---|
3113 | | using cxx11test::sum; |
---|
3114 | | auto a = sum(1); |
---|
3115 | | auto b = sum(1, 2); |
---|
3116 | | auto c = sum(1.0, 2.0, 3.0); |
---|
3117 | | } |
---|
3118 | | { |
---|
3119 | | // Test constructor delegation |
---|
3120 | | cxx11test::delegate d1; |
---|
3121 | | cxx11test::delegate d2(); |
---|
3122 | | cxx11test::delegate d3(45); |
---|
3123 | | } |
---|
3124 | | { |
---|
3125 | | // Test override and final |
---|
3126 | | cxx11test::overridden o1(55464); |
---|
3127 | | } |
---|
3128 | | { |
---|
3129 | | // Test nullptr |
---|
3130 | | char *c = nullptr; |
---|
3131 | | } |
---|
3132 | | { |
---|
3133 | | // Test template brackets |
---|
3134 | | test_template<::test_template<int>> v(test_template<int>(12)); |
---|
3135 | | } |
---|
3136 | | { |
---|
3137 | | // Unicode literals |
---|
3138 | | char const *utf8 = u8"UTF-8 string \u2500"; |
---|
3139 | | char16_t const *utf16 = u"UTF-8 string \u2500"; |
---|
3140 | | char32_t const *utf32 = U"UTF-32 string \u2500"; |
---|
3141 | | } |
---|
3142 | | |
---|
3143 | | return ok; |
---|
3144 | | } |
---|
3145 | | |
---|
3146 | configure:14574: result: none needed |
---|
3147 | configure:14640: checking dependency style of /usr/bin/g++-4.2 |
---|
3148 | configure:14752: result: gcc3 |
---|
3149 | configure:14785: checking how to run the C++ preprocessor |
---|
3150 | configure:14807: /usr/bin/g++-4.2 -E -I/opt/local/include conftest.cpp |
---|
3151 | configure:14807: $? = 0 |
---|
3152 | configure:14822: /usr/bin/g++-4.2 -E -I/opt/local/include conftest.cpp |
---|
3153 | conftest.cpp:41:28: error: ac_nonexistent.h: No such file or directory |
---|
3154 | configure:14822: $? = 1 |
---|
3155 | configure: failed program was: |
---|
3156 | | /* confdefs.h */ |
---|
3157 | | #define PACKAGE_NAME "flac" |
---|
3158 | | #define PACKAGE_TARNAME "flac" |
---|
3159 | | #define PACKAGE_VERSION "1.3.3" |
---|
3160 | | #define PACKAGE_STRING "flac 1.3.3" |
---|
3161 | | #define PACKAGE_BUGREPORT "flac-dev@xiph.org" |
---|
3162 | | #define PACKAGE_URL "https://www.xiph.org/flac/" |
---|
3163 | | #define PACKAGE "flac" |
---|
3164 | | #define VERSION "1.3.3" |
---|
3165 | | #define NDEBUG /**/ |
---|
3166 | | #define HAVE_STDIO_H 1 |
---|
3167 | | #define HAVE_STDLIB_H 1 |
---|
3168 | | #define HAVE_STRING_H 1 |
---|
3169 | | #define HAVE_INTTYPES_H 1 |
---|
3170 | | #define HAVE_STDINT_H 1 |
---|
3171 | | #define HAVE_STRINGS_H 1 |
---|
3172 | | #define HAVE_SYS_STAT_H 1 |
---|
3173 | | #define HAVE_SYS_TYPES_H 1 |
---|
3174 | | #define HAVE_UNISTD_H 1 |
---|
3175 | | #define HAVE_WCHAR_H 1 |
---|
3176 | | #define STDC_HEADERS 1 |
---|
3177 | | #define _ALL_SOURCE 1 |
---|
3178 | | #define _DARWIN_C_SOURCE 1 |
---|
3179 | | #define _GNU_SOURCE 1 |
---|
3180 | | #define _HPUX_ALT_XOPEN_SOCKET_API 1 |
---|
3181 | | #define _NETBSD_SOURCE 1 |
---|
3182 | | #define _OPENBSD_SOURCE 1 |
---|
3183 | | #define _POSIX_PTHREAD_SEMANTICS 1 |
---|
3184 | | #define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1 |
---|
3185 | | #define __STDC_WANT_IEC_60559_BFP_EXT__ 1 |
---|
3186 | | #define __STDC_WANT_IEC_60559_DFP_EXT__ 1 |
---|
3187 | | #define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1 |
---|
3188 | | #define __STDC_WANT_IEC_60559_TYPES_EXT__ 1 |
---|
3189 | | #define __STDC_WANT_LIB_EXT2__ 1 |
---|
3190 | | #define __STDC_WANT_MATH_SPEC_FUNCS__ 1 |
---|
3191 | | #define _TANDEM_SOURCE 1 |
---|
3192 | | #define __EXTENSIONS__ 1 |
---|
3193 | | #define HAVE_DLFCN_H 1 |
---|
3194 | | #define LT_OBJDIR ".libs/" |
---|
3195 | | /* end confdefs.h. */ |
---|
3196 | | #include <ac_nonexistent.h> |
---|
3197 | configure:14849: result: /usr/bin/g++-4.2 -E |
---|
3198 | configure:14863: /usr/bin/g++-4.2 -E -I/opt/local/include conftest.cpp |
---|
3199 | configure:14863: $? = 0 |
---|
3200 | configure:14878: /usr/bin/g++-4.2 -E -I/opt/local/include conftest.cpp |
---|
3201 | conftest.cpp:41:28: error: ac_nonexistent.h: No such file or directory |
---|
3202 | configure:14878: $? = 1 |
---|
3203 | configure: failed program was: |
---|
3204 | | /* confdefs.h */ |
---|
3205 | | #define PACKAGE_NAME "flac" |
---|
3206 | | #define PACKAGE_TARNAME "flac" |
---|
3207 | | #define PACKAGE_VERSION "1.3.3" |
---|
3208 | | #define PACKAGE_STRING "flac 1.3.3" |
---|
3209 | | #define PACKAGE_BUGREPORT "flac-dev@xiph.org" |
---|
3210 | | #define PACKAGE_URL "https://www.xiph.org/flac/" |
---|
3211 | | #define PACKAGE "flac" |
---|
3212 | | #define VERSION "1.3.3" |
---|
3213 | | #define NDEBUG /**/ |
---|
3214 | | #define HAVE_STDIO_H 1 |
---|
3215 | | #define HAVE_STDLIB_H 1 |
---|
3216 | | #define HAVE_STRING_H 1 |
---|
3217 | | #define HAVE_INTTYPES_H 1 |
---|
3218 | | #define HAVE_STDINT_H 1 |
---|
3219 | | #define HAVE_STRINGS_H 1 |
---|
3220 | | #define HAVE_SYS_STAT_H 1 |
---|
3221 | | #define HAVE_SYS_TYPES_H 1 |
---|
3222 | | #define HAVE_UNISTD_H 1 |
---|
3223 | | #define HAVE_WCHAR_H 1 |
---|
3224 | | #define STDC_HEADERS 1 |
---|
3225 | | #define _ALL_SOURCE 1 |
---|
3226 | | #define _DARWIN_C_SOURCE 1 |
---|
3227 | | #define _GNU_SOURCE 1 |
---|
3228 | | #define _HPUX_ALT_XOPEN_SOCKET_API 1 |
---|
3229 | | #define _NETBSD_SOURCE 1 |
---|
3230 | | #define _OPENBSD_SOURCE 1 |
---|
3231 | | #define _POSIX_PTHREAD_SEMANTICS 1 |
---|
3232 | | #define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1 |
---|
3233 | | #define __STDC_WANT_IEC_60559_BFP_EXT__ 1 |
---|
3234 | | #define __STDC_WANT_IEC_60559_DFP_EXT__ 1 |
---|
3235 | | #define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1 |
---|
3236 | | #define __STDC_WANT_IEC_60559_TYPES_EXT__ 1 |
---|
3237 | | #define __STDC_WANT_LIB_EXT2__ 1 |
---|
3238 | | #define __STDC_WANT_MATH_SPEC_FUNCS__ 1 |
---|
3239 | | #define _TANDEM_SOURCE 1 |
---|
3240 | | #define __EXTENSIONS__ 1 |
---|
3241 | | #define HAVE_DLFCN_H 1 |
---|
3242 | | #define LT_OBJDIR ".libs/" |
---|
3243 | | /* end confdefs.h. */ |
---|
3244 | | #include <ac_nonexistent.h> |
---|
3245 | configure:15043: checking for ld used by /usr/bin/g++-4.2 |
---|
3246 | configure:15111: result: /usr/libexec/gcc/i686-apple-darwin10/4.2.1/ld |
---|
3247 | configure:15118: checking if the linker (/usr/libexec/gcc/i686-apple-darwin10/4.2.1/ld) is GNU ld |
---|
3248 | configure:15134: result: no |
---|
3249 | configure:15189: checking whether the /usr/bin/g++-4.2 linker (/usr/libexec/gcc/i686-apple-darwin10/4.2.1/ld) supports shared libraries |
---|
3250 | configure:16266: result: yes |
---|
3251 | configure:16302: /usr/bin/g++-4.2 -c -pipe -Os -arch ppc -I/opt/local/include conftest.cpp >&5 |
---|
3252 | configure:16305: $? = 0 |
---|
3253 | configure:16786: checking for /usr/bin/g++-4.2 option to produce PIC |
---|
3254 | configure:16794: result: -fno-common -DPIC |
---|
3255 | configure:16802: checking if /usr/bin/g++-4.2 PIC flag -fno-common -DPIC works |
---|
3256 | configure:16821: /usr/bin/g++-4.2 -c -pipe -Os -arch ppc -I/opt/local/include -fno-common -DPIC -DPIC conftest.cpp >&5 |
---|
3257 | configure:16825: $? = 0 |
---|
3258 | configure:16838: result: yes |
---|
3259 | configure:16861: checking if /usr/bin/g++-4.2 static flag -static works |
---|
3260 | configure:16890: result: no |
---|
3261 | configure:16902: checking if /usr/bin/g++-4.2 supports -c -o file.o |
---|
3262 | configure:16924: /usr/bin/g++-4.2 -c -pipe -Os -arch ppc -I/opt/local/include -o out/conftest2.o conftest.cpp >&5 |
---|
3263 | configure:16928: $? = 0 |
---|
3264 | configure:16950: result: yes |
---|
3265 | configure:16955: checking if /usr/bin/g++-4.2 supports -c -o file.o |
---|
3266 | configure:17003: result: yes |
---|
3267 | configure:17033: checking whether the /usr/bin/g++-4.2 linker (/usr/libexec/gcc/i686-apple-darwin10/4.2.1/ld) supports shared libraries |
---|
3268 | configure:17073: result: yes |
---|
3269 | configure:17215: checking dynamic linker characteristics |
---|
3270 | configure:17963: result: darwin10.8.0 dyld |
---|
3271 | configure:18028: checking how to hardcode library paths into programs |
---|
3272 | configure:18053: result: immediate |
---|
3273 | configure:18093: checking whether we are using the CLANG C compiler |
---|
3274 | configure:18117: /usr/bin/gcc-4.2 -o conftest -pipe -Os -std=gnu89 -arch ppc -I/opt/local/include -L/opt/local/lib -Wl,-headerpad_max_install_names -arch ppc conftest.c >&5 |
---|
3275 | conftest.c: In function 'main': |
---|
3276 | conftest.c:49: error: 'This' undeclared (first use in this function) |
---|
3277 | conftest.c:49: error: (Each undeclared identifier is reported only once |
---|
3278 | conftest.c:49: error: for each function it appears in.) |
---|
3279 | conftest.c:49: error: expected ';' before 'is' |
---|
3280 | configure:18117: $? = 1 |
---|
3281 | configure: failed program was: |
---|
3282 | | /* confdefs.h */ |
---|
3283 | | #define PACKAGE_NAME "flac" |
---|
3284 | | #define PACKAGE_TARNAME "flac" |
---|
3285 | | #define PACKAGE_VERSION "1.3.3" |
---|
3286 | | #define PACKAGE_STRING "flac 1.3.3" |
---|
3287 | | #define PACKAGE_BUGREPORT "flac-dev@xiph.org" |
---|
3288 | | #define PACKAGE_URL "https://www.xiph.org/flac/" |
---|
3289 | | #define PACKAGE "flac" |
---|
3290 | | #define VERSION "1.3.3" |
---|
3291 | | #define NDEBUG /**/ |
---|
3292 | | #define HAVE_STDIO_H 1 |
---|
3293 | | #define HAVE_STDLIB_H 1 |
---|
3294 | | #define HAVE_STRING_H 1 |
---|
3295 | | #define HAVE_INTTYPES_H 1 |
---|
3296 | | #define HAVE_STDINT_H 1 |
---|
3297 | | #define HAVE_STRINGS_H 1 |
---|
3298 | | #define HAVE_SYS_STAT_H 1 |
---|
3299 | | #define HAVE_SYS_TYPES_H 1 |
---|
3300 | | #define HAVE_UNISTD_H 1 |
---|
3301 | | #define HAVE_WCHAR_H 1 |
---|
3302 | | #define STDC_HEADERS 1 |
---|
3303 | | #define _ALL_SOURCE 1 |
---|
3304 | | #define _DARWIN_C_SOURCE 1 |
---|
3305 | | #define _GNU_SOURCE 1 |
---|
3306 | | #define _HPUX_ALT_XOPEN_SOCKET_API 1 |
---|
3307 | | #define _NETBSD_SOURCE 1 |
---|
3308 | | #define _OPENBSD_SOURCE 1 |
---|
3309 | | #define _POSIX_PTHREAD_SEMANTICS 1 |
---|
3310 | | #define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1 |
---|
3311 | | #define __STDC_WANT_IEC_60559_BFP_EXT__ 1 |
---|
3312 | | #define __STDC_WANT_IEC_60559_DFP_EXT__ 1 |
---|
3313 | | #define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1 |
---|
3314 | | #define __STDC_WANT_IEC_60559_TYPES_EXT__ 1 |
---|
3315 | | #define __STDC_WANT_LIB_EXT2__ 1 |
---|
3316 | | #define __STDC_WANT_MATH_SPEC_FUNCS__ 1 |
---|
3317 | | #define _TANDEM_SOURCE 1 |
---|
3318 | | #define __EXTENSIONS__ 1 |
---|
3319 | | #define HAVE_DLFCN_H 1 |
---|
3320 | | #define LT_OBJDIR ".libs/" |
---|
3321 | | /* end confdefs.h. */ |
---|
3322 | | |
---|
3323 | | #include <stdio.h> |
---|
3324 | | |
---|
3325 | | int |
---|
3326 | | main (void) |
---|
3327 | | { |
---|
3328 | | |
---|
3329 | | #ifndef __clang__ |
---|
3330 | | This is not clang! |
---|
3331 | | #endif |
---|
3332 | | |
---|
3333 | | ; |
---|
3334 | | return 0; |
---|
3335 | | } |
---|
3336 | configure:18124: result: no |
---|
3337 | configure:18150: /usr/bin/gcc-4.2 -o conftest -pipe -Os -std=gnu89 -arch ppc -I/opt/local/include -L/opt/local/lib -Wl,-headerpad_max_install_names -arch ppc conftest.c >&5 |
---|
3338 | configure:18150: $? = 0 |
---|
3339 | configure:18161: checking whether make sets $(MAKE) |
---|
3340 | configure:18184: result: yes |
---|
3341 | configure:18203: checking for special C compiler options needed for large files |
---|
3342 | configure:18251: result: no |
---|
3343 | configure:18257: checking for _FILE_OFFSET_BITS value needed for large files |
---|
3344 | configure:18283: /usr/bin/gcc-4.2 -c -pipe -Os -std=gnu89 -arch ppc -I/opt/local/include conftest.c >&5 |
---|
3345 | configure:18283: $? = 0 |
---|
3346 | configure:18317: result: no |
---|
3347 | configure:18399: checking for _LARGEFILE_SOURCE value needed for large files |
---|
3348 | configure:18419: /usr/bin/gcc-4.2 -o conftest -pipe -Os -std=gnu89 -arch ppc -I/opt/local/include -L/opt/local/lib -Wl,-headerpad_max_install_names -arch ppc conftest.c >&5 |
---|
3349 | configure:18419: $? = 0 |
---|
3350 | configure:18449: result: no |
---|
3351 | configure:18473: checking size of off_t |
---|
3352 | configure:18479: /usr/bin/gcc-4.2 -o conftest -pipe -Os -std=gnu89 -arch ppc -I/opt/local/include -L/opt/local/lib -Wl,-headerpad_max_install_names -arch ppc conftest.c >&5 |
---|
3353 | configure:18479: $? = 0 |
---|
3354 | configure:18479: ./conftest |
---|
3355 | configure:18479: $? = 0 |
---|
3356 | configure:18494: result: 8 |
---|
3357 | configure:18506: checking size of void* |
---|
3358 | configure:18512: /usr/bin/gcc-4.2 -o conftest -pipe -Os -std=gnu89 -arch ppc -I/opt/local/include -L/opt/local/lib -Wl,-headerpad_max_install_names -arch ppc conftest.c >&5 |
---|
3359 | configure:18512: $? = 0 |
---|
3360 | configure:18512: ./conftest |
---|
3361 | configure:18512: $? = 0 |
---|
3362 | configure:18527: result: 4 |
---|
3363 | configure:18535: checking for library containing lround |
---|
3364 | configure:18565: /usr/bin/gcc-4.2 -o conftest -pipe -Os -std=gnu89 -arch ppc -I/opt/local/include -L/opt/local/lib -Wl,-headerpad_max_install_names -arch ppc conftest.c >&5 |
---|
3365 | conftest.c:48: warning: conflicting types for built-in function 'lround' |
---|
3366 | configure:18565: $? = 0 |
---|
3367 | configure:18585: result: none required |
---|
3368 | configure:18606: checking for variable-length arrays |
---|
3369 | configure:18664: /usr/bin/g++-4.2 -c -pipe -Os -arch ppc -I/opt/local/include conftest.cpp >&5 |
---|
3370 | conftest.cpp:55: error: 'm' was not declared in this scope |
---|
3371 | conftest.cpp:55: error: 'm' was not declared in this scope |
---|
3372 | conftest.cpp:58: error: expected primary-expression before 'static' |
---|
3373 | conftest.cpp:58: error: expected `]' before 'static' |
---|
3374 | conftest.cpp:58: error: expected ',' or '...' before 'static' |
---|
3375 | conftest.cpp: In function 'int simple(int)': |
---|
3376 | conftest.cpp:60: error: 'all' was not declared in this scope |
---|
3377 | conftest.cpp: At global scope: |
---|
3378 | conftest.cpp:64: error: 'm' was not declared in this scope |
---|
3379 | conftest.cpp:64: error: 'm' was not declared in this scope |
---|
3380 | conftest.cpp: In function 'int fvla(int)': |
---|
3381 | conftest.cpp:69: error: cannot convert 'int (*)[100]' to 'int (*)[(((long unsigned int)(((int)m) - 1)) + 1u)]' in initialization |
---|
3382 | conftest.cpp:70: error: cannot convert 'int (*)[(((long unsigned int)(((int)m) - 1)) + 1u)]' to 'int (*)[(((long unsigned int)(((int)n) - 1)) + 1u)]' in initialization |
---|
3383 | conftest.cpp:71: error: 'C' was not declared in this scope |
---|
3384 | configure:18664: $? = 1 |
---|
3385 | configure: failed program was: |
---|
3386 | | /* confdefs.h */ |
---|
3387 | | #define PACKAGE_NAME "flac" |
---|
3388 | | #define PACKAGE_TARNAME "flac" |
---|
3389 | | #define PACKAGE_VERSION "1.3.3" |
---|
3390 | | #define PACKAGE_STRING "flac 1.3.3" |
---|
3391 | | #define PACKAGE_BUGREPORT "flac-dev@xiph.org" |
---|
3392 | | #define PACKAGE_URL "https://www.xiph.org/flac/" |
---|
3393 | | #define PACKAGE "flac" |
---|
3394 | | #define VERSION "1.3.3" |
---|
3395 | | #define NDEBUG /**/ |
---|
3396 | | #define HAVE_STDIO_H 1 |
---|
3397 | | #define HAVE_STDLIB_H 1 |
---|
3398 | | #define HAVE_STRING_H 1 |
---|
3399 | | #define HAVE_INTTYPES_H 1 |
---|
3400 | | #define HAVE_STDINT_H 1 |
---|
3401 | | #define HAVE_STRINGS_H 1 |
---|
3402 | | #define HAVE_SYS_STAT_H 1 |
---|
3403 | | #define HAVE_SYS_TYPES_H 1 |
---|
3404 | | #define HAVE_UNISTD_H 1 |
---|
3405 | | #define HAVE_WCHAR_H 1 |
---|
3406 | | #define STDC_HEADERS 1 |
---|
3407 | | #define _ALL_SOURCE 1 |
---|
3408 | | #define _DARWIN_C_SOURCE 1 |
---|
3409 | | #define _GNU_SOURCE 1 |
---|
3410 | | #define _HPUX_ALT_XOPEN_SOCKET_API 1 |
---|
3411 | | #define _NETBSD_SOURCE 1 |
---|
3412 | | #define _OPENBSD_SOURCE 1 |
---|
3413 | | #define _POSIX_PTHREAD_SEMANTICS 1 |
---|
3414 | | #define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1 |
---|
3415 | | #define __STDC_WANT_IEC_60559_BFP_EXT__ 1 |
---|
3416 | | #define __STDC_WANT_IEC_60559_DFP_EXT__ 1 |
---|
3417 | | #define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1 |
---|
3418 | | #define __STDC_WANT_IEC_60559_TYPES_EXT__ 1 |
---|
3419 | | #define __STDC_WANT_LIB_EXT2__ 1 |
---|
3420 | | #define __STDC_WANT_MATH_SPEC_FUNCS__ 1 |
---|
3421 | | #define _TANDEM_SOURCE 1 |
---|
3422 | | #define __EXTENSIONS__ 1 |
---|
3423 | | #define HAVE_DLFCN_H 1 |
---|
3424 | | #define LT_OBJDIR ".libs/" |
---|
3425 | | #define HAVE_FSEEKO 1 |
---|
3426 | | #define SIZEOF_OFF_T 8 |
---|
3427 | | #define SIZEOF_VOIDP 4 |
---|
3428 | | #define HAVE_LROUND 1 |
---|
3429 | | /* end confdefs.h. */ |
---|
3430 | | /* Test for VLA support. This test is partly inspired |
---|
3431 | | from examples in the C standard. Use at least two VLA |
---|
3432 | | functions to detect the GCC 3.4.3 bug described in: |
---|
3433 | | https://lists.gnu.org/archive/html/bug-gnulib/2014-08/msg00014.html |
---|
3434 | | */ |
---|
3435 | | #ifdef __STDC_NO_VLA__ |
---|
3436 | | syntax error; |
---|
3437 | | #else |
---|
3438 | | extern int n; |
---|
3439 | | int B[100]; |
---|
3440 | | int fvla (int m, int C[m][m]); |
---|
3441 | | |
---|
3442 | | int |
---|
3443 | | simple (int count, int all[static count]) |
---|
3444 | | { |
---|
3445 | | return all[count - 1]; |
---|
3446 | | } |
---|
3447 | | |
---|
3448 | | int |
---|
3449 | | fvla (int m, int C[m][m]) |
---|
3450 | | { |
---|
3451 | | typedef int VLA[m][m]; |
---|
3452 | | VLA x; |
---|
3453 | | int D[m]; |
---|
3454 | | static int (*q)[m] = &B; |
---|
3455 | | int (*s)[n] = q; |
---|
3456 | | return C && &x[0][0] == &D[0] && &D[0] == s[0]; |
---|
3457 | | } |
---|
3458 | | #endif |
---|
3459 | | |
---|
3460 | | int |
---|
3461 | | main (void) |
---|
3462 | | { |
---|
3463 | | |
---|
3464 | | ; |
---|
3465 | | return 0; |
---|
3466 | | } |
---|
3467 | configure:18675: result: no |
---|
3468 | configure:18703: checking for egrep |
---|
3469 | configure:18771: result: /opt/local/bin/ggrep -E |
---|
3470 | configure:18778: checking for inline |
---|
3471 | configure:18795: /usr/bin/gcc-4.2 -c -pipe -Os -std=gnu89 -arch ppc -I/opt/local/include conftest.c >&5 |
---|
3472 | configure:18795: $? = 0 |
---|
3473 | configure:18804: result: inline |
---|
3474 | configure:18827: checking how to run the C preprocessor |
---|
3475 | configure:18853: /usr/bin/gcc-4.2 -E -I/opt/local/include conftest.c |
---|
3476 | configure:18853: $? = 0 |
---|
3477 | configure:18868: /usr/bin/gcc-4.2 -E -I/opt/local/include conftest.c |
---|
3478 | conftest.c:46:28: error: ac_nonexistent.h: No such file or directory |
---|
3479 | configure:18868: $? = 1 |
---|
3480 | configure: failed program was: |
---|
3481 | | /* confdefs.h */ |
---|
3482 | | #define PACKAGE_NAME "flac" |
---|
3483 | | #define PACKAGE_TARNAME "flac" |
---|
3484 | | #define PACKAGE_VERSION "1.3.3" |
---|
3485 | | #define PACKAGE_STRING "flac 1.3.3" |
---|
3486 | | #define PACKAGE_BUGREPORT "flac-dev@xiph.org" |
---|
3487 | | #define PACKAGE_URL "https://www.xiph.org/flac/" |
---|
3488 | | #define PACKAGE "flac" |
---|
3489 | | #define VERSION "1.3.3" |
---|
3490 | | #define NDEBUG /**/ |
---|
3491 | | #define HAVE_STDIO_H 1 |
---|
3492 | | #define HAVE_STDLIB_H 1 |
---|
3493 | | #define HAVE_STRING_H 1 |
---|
3494 | | #define HAVE_INTTYPES_H 1 |
---|
3495 | | #define HAVE_STDINT_H 1 |
---|
3496 | | #define HAVE_STRINGS_H 1 |
---|
3497 | | #define HAVE_SYS_STAT_H 1 |
---|
3498 | | #define HAVE_SYS_TYPES_H 1 |
---|
3499 | | #define HAVE_UNISTD_H 1 |
---|
3500 | | #define HAVE_WCHAR_H 1 |
---|
3501 | | #define STDC_HEADERS 1 |
---|
3502 | | #define _ALL_SOURCE 1 |
---|
3503 | | #define _DARWIN_C_SOURCE 1 |
---|
3504 | | #define _GNU_SOURCE 1 |
---|
3505 | | #define _HPUX_ALT_XOPEN_SOCKET_API 1 |
---|
3506 | | #define _NETBSD_SOURCE 1 |
---|
3507 | | #define _OPENBSD_SOURCE 1 |
---|
3508 | | #define _POSIX_PTHREAD_SEMANTICS 1 |
---|
3509 | | #define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1 |
---|
3510 | | #define __STDC_WANT_IEC_60559_BFP_EXT__ 1 |
---|
3511 | | #define __STDC_WANT_IEC_60559_DFP_EXT__ 1 |
---|
3512 | | #define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1 |
---|
3513 | | #define __STDC_WANT_IEC_60559_TYPES_EXT__ 1 |
---|
3514 | | #define __STDC_WANT_LIB_EXT2__ 1 |
---|
3515 | | #define __STDC_WANT_MATH_SPEC_FUNCS__ 1 |
---|
3516 | | #define _TANDEM_SOURCE 1 |
---|
3517 | | #define __EXTENSIONS__ 1 |
---|
3518 | | #define HAVE_DLFCN_H 1 |
---|
3519 | | #define LT_OBJDIR ".libs/" |
---|
3520 | | #define HAVE_FSEEKO 1 |
---|
3521 | | #define SIZEOF_OFF_T 8 |
---|
3522 | | #define SIZEOF_VOIDP 4 |
---|
3523 | | #define HAVE_LROUND 1 |
---|
3524 | | #define __STDC_NO_VLA__ 1 |
---|
3525 | | /* end confdefs.h. */ |
---|
3526 | | #include <ac_nonexistent.h> |
---|
3527 | configure:18895: result: /usr/bin/gcc-4.2 -E |
---|
3528 | configure:18909: /usr/bin/gcc-4.2 -E -I/opt/local/include conftest.c |
---|
3529 | configure:18909: $? = 0 |
---|
3530 | configure:18924: /usr/bin/gcc-4.2 -E -I/opt/local/include conftest.c |
---|
3531 | conftest.c:46:28: error: ac_nonexistent.h: No such file or directory |
---|
3532 | configure:18924: $? = 1 |
---|
3533 | configure: failed program was: |
---|
3534 | | /* confdefs.h */ |
---|
3535 | | #define PACKAGE_NAME "flac" |
---|
3536 | | #define PACKAGE_TARNAME "flac" |
---|
3537 | | #define PACKAGE_VERSION "1.3.3" |
---|
3538 | | #define PACKAGE_STRING "flac 1.3.3" |
---|
3539 | | #define PACKAGE_BUGREPORT "flac-dev@xiph.org" |
---|
3540 | | #define PACKAGE_URL "https://www.xiph.org/flac/" |
---|
3541 | | #define PACKAGE "flac" |
---|
3542 | | #define VERSION "1.3.3" |
---|
3543 | | #define NDEBUG /**/ |
---|
3544 | | #define HAVE_STDIO_H 1 |
---|
3545 | | #define HAVE_STDLIB_H 1 |
---|
3546 | | #define HAVE_STRING_H 1 |
---|
3547 | | #define HAVE_INTTYPES_H 1 |
---|
3548 | | #define HAVE_STDINT_H 1 |
---|
3549 | | #define HAVE_STRINGS_H 1 |
---|
3550 | | #define HAVE_SYS_STAT_H 1 |
---|
3551 | | #define HAVE_SYS_TYPES_H 1 |
---|
3552 | | #define HAVE_UNISTD_H 1 |
---|
3553 | | #define HAVE_WCHAR_H 1 |
---|
3554 | | #define STDC_HEADERS 1 |
---|
3555 | | #define _ALL_SOURCE 1 |
---|
3556 | | #define _DARWIN_C_SOURCE 1 |
---|
3557 | | #define _GNU_SOURCE 1 |
---|
3558 | | #define _HPUX_ALT_XOPEN_SOCKET_API 1 |
---|
3559 | | #define _NETBSD_SOURCE 1 |
---|
3560 | | #define _OPENBSD_SOURCE 1 |
---|
3561 | | #define _POSIX_PTHREAD_SEMANTICS 1 |
---|
3562 | | #define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1 |
---|
3563 | | #define __STDC_WANT_IEC_60559_BFP_EXT__ 1 |
---|
3564 | | #define __STDC_WANT_IEC_60559_DFP_EXT__ 1 |
---|
3565 | | #define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1 |
---|
3566 | | #define __STDC_WANT_IEC_60559_TYPES_EXT__ 1 |
---|
3567 | | #define __STDC_WANT_LIB_EXT2__ 1 |
---|
3568 | | #define __STDC_WANT_MATH_SPEC_FUNCS__ 1 |
---|
3569 | | #define _TANDEM_SOURCE 1 |
---|
3570 | | #define __EXTENSIONS__ 1 |
---|
3571 | | #define HAVE_DLFCN_H 1 |
---|
3572 | | #define LT_OBJDIR ".libs/" |
---|
3573 | | #define HAVE_FSEEKO 1 |
---|
3574 | | #define SIZEOF_OFF_T 8 |
---|
3575 | | #define SIZEOF_VOIDP 4 |
---|
3576 | | #define HAVE_LROUND 1 |
---|
3577 | | #define __STDC_NO_VLA__ 1 |
---|
3578 | | /* end confdefs.h. */ |
---|
3579 | | #include <ac_nonexistent.h> |
---|
3580 | configure:18956: checking for variable-length arrays |
---|
3581 | configure:19025: result: no |
---|
3582 | configure:19038: checking for typeof syntax and keyword spelling |
---|
3583 | configure:19070: /usr/bin/gcc-4.2 -c -pipe -Os -std=gnu89 -arch ppc -I/opt/local/include conftest.c >&5 |
---|
3584 | conftest.c:45:1: warning: "__STDC_NO_VLA__" redefined |
---|
3585 | conftest.c:44:1: warning: this is the location of the previous definition |
---|
3586 | configure:19070: $? = 0 |
---|
3587 | configure:19078: result: typeof |
---|
3588 | configure:19092: checking for stdint.h |
---|
3589 | configure:19092: result: yes |
---|
3590 | configure:19098: checking for inttypes.h |
---|
3591 | configure:19098: result: yes |
---|
3592 | configure:19104: checking for byteswap.h |
---|
3593 | configure:19104: /usr/bin/gcc-4.2 -c -pipe -Os -std=gnu89 -arch ppc -I/opt/local/include conftest.c >&5 |
---|
3594 | conftest.c:45:1: warning: "__STDC_NO_VLA__" redefined |
---|
3595 | conftest.c:44:1: warning: this is the location of the previous definition |
---|
3596 | conftest.c:78:22: error: byteswap.h: No such file or directory |
---|
3597 | configure:19104: $? = 1 |
---|
3598 | configure: failed program was: |
---|
3599 | | /* confdefs.h */ |
---|
3600 | | #define PACKAGE_NAME "flac" |
---|
3601 | | #define PACKAGE_TARNAME "flac" |
---|
3602 | | #define PACKAGE_VERSION "1.3.3" |
---|
3603 | | #define PACKAGE_STRING "flac 1.3.3" |
---|
3604 | | #define PACKAGE_BUGREPORT "flac-dev@xiph.org" |
---|
3605 | | #define PACKAGE_URL "https://www.xiph.org/flac/" |
---|
3606 | | #define PACKAGE "flac" |
---|
3607 | | #define VERSION "1.3.3" |
---|
3608 | | #define NDEBUG /**/ |
---|
3609 | | #define HAVE_STDIO_H 1 |
---|
3610 | | #define HAVE_STDLIB_H 1 |
---|
3611 | | #define HAVE_STRING_H 1 |
---|
3612 | | #define HAVE_INTTYPES_H 1 |
---|
3613 | | #define HAVE_STDINT_H 1 |
---|
3614 | | #define HAVE_STRINGS_H 1 |
---|
3615 | | #define HAVE_SYS_STAT_H 1 |
---|
3616 | | #define HAVE_SYS_TYPES_H 1 |
---|
3617 | | #define HAVE_UNISTD_H 1 |
---|
3618 | | #define HAVE_WCHAR_H 1 |
---|
3619 | | #define STDC_HEADERS 1 |
---|
3620 | | #define _ALL_SOURCE 1 |
---|
3621 | | #define _DARWIN_C_SOURCE 1 |
---|
3622 | | #define _GNU_SOURCE 1 |
---|
3623 | | #define _HPUX_ALT_XOPEN_SOCKET_API 1 |
---|
3624 | | #define _NETBSD_SOURCE 1 |
---|
3625 | | #define _OPENBSD_SOURCE 1 |
---|
3626 | | #define _POSIX_PTHREAD_SEMANTICS 1 |
---|
3627 | | #define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1 |
---|
3628 | | #define __STDC_WANT_IEC_60559_BFP_EXT__ 1 |
---|
3629 | | #define __STDC_WANT_IEC_60559_DFP_EXT__ 1 |
---|
3630 | | #define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1 |
---|
3631 | | #define __STDC_WANT_IEC_60559_TYPES_EXT__ 1 |
---|
3632 | | #define __STDC_WANT_LIB_EXT2__ 1 |
---|
3633 | | #define __STDC_WANT_MATH_SPEC_FUNCS__ 1 |
---|
3634 | | #define _TANDEM_SOURCE 1 |
---|
3635 | | #define __EXTENSIONS__ 1 |
---|
3636 | | #define HAVE_DLFCN_H 1 |
---|
3637 | | #define LT_OBJDIR ".libs/" |
---|
3638 | | #define HAVE_FSEEKO 1 |
---|
3639 | | #define SIZEOF_OFF_T 8 |
---|
3640 | | #define SIZEOF_VOIDP 4 |
---|
3641 | | #define HAVE_LROUND 1 |
---|
3642 | | #define __STDC_NO_VLA__ 1 |
---|
3643 | | #define __STDC_NO_VLA__ 1 |
---|
3644 | | #define HAVE_TYPEOF 1 |
---|
3645 | | #define HAVE_STDINT_H 1 |
---|
3646 | | #define HAVE_INTTYPES_H 1 |
---|
3647 | | /* end confdefs.h. */ |
---|
3648 | | #include <stddef.h> |
---|
3649 | | #ifdef HAVE_STDIO_H |
---|
3650 | | # include <stdio.h> |
---|
3651 | | #endif |
---|
3652 | | #ifdef HAVE_STDLIB_H |
---|
3653 | | # include <stdlib.h> |
---|
3654 | | #endif |
---|
3655 | | #ifdef HAVE_STRING_H |
---|
3656 | | # include <string.h> |
---|
3657 | | #endif |
---|
3658 | | #ifdef HAVE_INTTYPES_H |
---|
3659 | | # include <inttypes.h> |
---|
3660 | | #endif |
---|
3661 | | #ifdef HAVE_STDINT_H |
---|
3662 | | # include <stdint.h> |
---|
3663 | | #endif |
---|
3664 | | #ifdef HAVE_STRINGS_H |
---|
3665 | | # include <strings.h> |
---|
3666 | | #endif |
---|
3667 | | #ifdef HAVE_SYS_TYPES_H |
---|
3668 | | # include <sys/types.h> |
---|
3669 | | #endif |
---|
3670 | | #ifdef HAVE_SYS_STAT_H |
---|
3671 | | # include <sys/stat.h> |
---|
3672 | | #endif |
---|
3673 | | #ifdef HAVE_UNISTD_H |
---|
3674 | | # include <unistd.h> |
---|
3675 | | #endif |
---|
3676 | | #include <byteswap.h> |
---|
3677 | configure:19104: result: no |
---|
3678 | configure:19110: checking for sys/param.h |
---|
3679 | configure:19110: /usr/bin/gcc-4.2 -c -pipe -Os -std=gnu89 -arch ppc -I/opt/local/include conftest.c >&5 |
---|
3680 | conftest.c:45:1: warning: "__STDC_NO_VLA__" redefined |
---|
3681 | conftest.c:44:1: warning: this is the location of the previous definition |
---|
3682 | configure:19110: $? = 0 |
---|
3683 | configure:19110: result: yes |
---|
3684 | configure:19116: checking for sys/ioctl.h |
---|
3685 | configure:19116: /usr/bin/gcc-4.2 -c -pipe -Os -std=gnu89 -arch ppc -I/opt/local/include conftest.c >&5 |
---|
3686 | conftest.c:45:1: warning: "__STDC_NO_VLA__" redefined |
---|
3687 | conftest.c:44:1: warning: this is the location of the previous definition |
---|
3688 | configure:19116: $? = 0 |
---|
3689 | configure:19116: result: yes |
---|
3690 | configure:19122: checking for termios.h |
---|
3691 | configure:19122: /usr/bin/gcc-4.2 -c -pipe -Os -std=gnu89 -arch ppc -I/opt/local/include conftest.c >&5 |
---|
3692 | conftest.c:45:1: warning: "__STDC_NO_VLA__" redefined |
---|
3693 | conftest.c:44:1: warning: this is the location of the previous definition |
---|
3694 | configure:19122: $? = 0 |
---|
3695 | configure:19122: result: yes |
---|
3696 | configure:19128: checking for x86intrin.h |
---|
3697 | configure:19128: /usr/bin/gcc-4.2 -c -pipe -Os -std=gnu89 -arch ppc -I/opt/local/include conftest.c >&5 |
---|
3698 | conftest.c:45:1: warning: "__STDC_NO_VLA__" redefined |
---|
3699 | conftest.c:44:1: warning: this is the location of the previous definition |
---|
3700 | conftest.c:81:23: error: x86intrin.h: No such file or directory |
---|
3701 | configure:19128: $? = 1 |
---|
3702 | configure: failed program was: |
---|
3703 | | /* confdefs.h */ |
---|
3704 | | #define PACKAGE_NAME "flac" |
---|
3705 | | #define PACKAGE_TARNAME "flac" |
---|
3706 | | #define PACKAGE_VERSION "1.3.3" |
---|
3707 | | #define PACKAGE_STRING "flac 1.3.3" |
---|
3708 | | #define PACKAGE_BUGREPORT "flac-dev@xiph.org" |
---|
3709 | | #define PACKAGE_URL "https://www.xiph.org/flac/" |
---|
3710 | | #define PACKAGE "flac" |
---|
3711 | | #define VERSION "1.3.3" |
---|
3712 | | #define NDEBUG /**/ |
---|
3713 | | #define HAVE_STDIO_H 1 |
---|
3714 | | #define HAVE_STDLIB_H 1 |
---|
3715 | | #define HAVE_STRING_H 1 |
---|
3716 | | #define HAVE_INTTYPES_H 1 |
---|
3717 | | #define HAVE_STDINT_H 1 |
---|
3718 | | #define HAVE_STRINGS_H 1 |
---|
3719 | | #define HAVE_SYS_STAT_H 1 |
---|
3720 | | #define HAVE_SYS_TYPES_H 1 |
---|
3721 | | #define HAVE_UNISTD_H 1 |
---|
3722 | | #define HAVE_WCHAR_H 1 |
---|
3723 | | #define STDC_HEADERS 1 |
---|
3724 | | #define _ALL_SOURCE 1 |
---|
3725 | | #define _DARWIN_C_SOURCE 1 |
---|
3726 | | #define _GNU_SOURCE 1 |
---|
3727 | | #define _HPUX_ALT_XOPEN_SOCKET_API 1 |
---|
3728 | | #define _NETBSD_SOURCE 1 |
---|
3729 | | #define _OPENBSD_SOURCE 1 |
---|
3730 | | #define _POSIX_PTHREAD_SEMANTICS 1 |
---|
3731 | | #define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1 |
---|
3732 | | #define __STDC_WANT_IEC_60559_BFP_EXT__ 1 |
---|
3733 | | #define __STDC_WANT_IEC_60559_DFP_EXT__ 1 |
---|
3734 | | #define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1 |
---|
3735 | | #define __STDC_WANT_IEC_60559_TYPES_EXT__ 1 |
---|
3736 | | #define __STDC_WANT_LIB_EXT2__ 1 |
---|
3737 | | #define __STDC_WANT_MATH_SPEC_FUNCS__ 1 |
---|
3738 | | #define _TANDEM_SOURCE 1 |
---|
3739 | | #define __EXTENSIONS__ 1 |
---|
3740 | | #define HAVE_DLFCN_H 1 |
---|
3741 | | #define LT_OBJDIR ".libs/" |
---|
3742 | | #define HAVE_FSEEKO 1 |
---|
3743 | | #define SIZEOF_OFF_T 8 |
---|
3744 | | #define SIZEOF_VOIDP 4 |
---|
3745 | | #define HAVE_LROUND 1 |
---|
3746 | | #define __STDC_NO_VLA__ 1 |
---|
3747 | | #define __STDC_NO_VLA__ 1 |
---|
3748 | | #define HAVE_TYPEOF 1 |
---|
3749 | | #define HAVE_STDINT_H 1 |
---|
3750 | | #define HAVE_INTTYPES_H 1 |
---|
3751 | | #define HAVE_SYS_PARAM_H 1 |
---|
3752 | | #define HAVE_SYS_IOCTL_H 1 |
---|
3753 | | #define HAVE_TERMIOS_H 1 |
---|
3754 | | /* end confdefs.h. */ |
---|
3755 | | #include <stddef.h> |
---|
3756 | | #ifdef HAVE_STDIO_H |
---|
3757 | | # include <stdio.h> |
---|
3758 | | #endif |
---|
3759 | | #ifdef HAVE_STDLIB_H |
---|
3760 | | # include <stdlib.h> |
---|
3761 | | #endif |
---|
3762 | | #ifdef HAVE_STRING_H |
---|
3763 | | # include <string.h> |
---|
3764 | | #endif |
---|
3765 | | #ifdef HAVE_INTTYPES_H |
---|
3766 | | # include <inttypes.h> |
---|
3767 | | #endif |
---|
3768 | | #ifdef HAVE_STDINT_H |
---|
3769 | | # include <stdint.h> |
---|
3770 | | #endif |
---|
3771 | | #ifdef HAVE_STRINGS_H |
---|
3772 | | # include <strings.h> |
---|
3773 | | #endif |
---|
3774 | | #ifdef HAVE_SYS_TYPES_H |
---|
3775 | | # include <sys/types.h> |
---|
3776 | | #endif |
---|
3777 | | #ifdef HAVE_SYS_STAT_H |
---|
3778 | | # include <sys/stat.h> |
---|
3779 | | #endif |
---|
3780 | | #ifdef HAVE_UNISTD_H |
---|
3781 | | # include <unistd.h> |
---|
3782 | | #endif |
---|
3783 | | #include <x86intrin.h> |
---|
3784 | configure:19128: result: no |
---|
3785 | configure:19134: checking for cpuid.h |
---|
3786 | configure:19134: /usr/bin/gcc-4.2 -c -pipe -Os -std=gnu89 -arch ppc -I/opt/local/include conftest.c >&5 |
---|
3787 | conftest.c:45:1: warning: "__STDC_NO_VLA__" redefined |
---|
3788 | conftest.c:44:1: warning: this is the location of the previous definition |
---|
3789 | conftest.c:81:19: error: cpuid.h: No such file or directory |
---|
3790 | configure:19134: $? = 1 |
---|
3791 | configure: failed program was: |
---|
3792 | | /* confdefs.h */ |
---|
3793 | | #define PACKAGE_NAME "flac" |
---|
3794 | | #define PACKAGE_TARNAME "flac" |
---|
3795 | | #define PACKAGE_VERSION "1.3.3" |
---|
3796 | | #define PACKAGE_STRING "flac 1.3.3" |
---|
3797 | | #define PACKAGE_BUGREPORT "flac-dev@xiph.org" |
---|
3798 | | #define PACKAGE_URL "https://www.xiph.org/flac/" |
---|
3799 | | #define PACKAGE "flac" |
---|
3800 | | #define VERSION "1.3.3" |
---|
3801 | | #define NDEBUG /**/ |
---|
3802 | | #define HAVE_STDIO_H 1 |
---|
3803 | | #define HAVE_STDLIB_H 1 |
---|
3804 | | #define HAVE_STRING_H 1 |
---|
3805 | | #define HAVE_INTTYPES_H 1 |
---|
3806 | | #define HAVE_STDINT_H 1 |
---|
3807 | | #define HAVE_STRINGS_H 1 |
---|
3808 | | #define HAVE_SYS_STAT_H 1 |
---|
3809 | | #define HAVE_SYS_TYPES_H 1 |
---|
3810 | | #define HAVE_UNISTD_H 1 |
---|
3811 | | #define HAVE_WCHAR_H 1 |
---|
3812 | | #define STDC_HEADERS 1 |
---|
3813 | | #define _ALL_SOURCE 1 |
---|
3814 | | #define _DARWIN_C_SOURCE 1 |
---|
3815 | | #define _GNU_SOURCE 1 |
---|
3816 | | #define _HPUX_ALT_XOPEN_SOCKET_API 1 |
---|
3817 | | #define _NETBSD_SOURCE 1 |
---|
3818 | | #define _OPENBSD_SOURCE 1 |
---|
3819 | | #define _POSIX_PTHREAD_SEMANTICS 1 |
---|
3820 | | #define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1 |
---|
3821 | | #define __STDC_WANT_IEC_60559_BFP_EXT__ 1 |
---|
3822 | | #define __STDC_WANT_IEC_60559_DFP_EXT__ 1 |
---|
3823 | | #define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1 |
---|
3824 | | #define __STDC_WANT_IEC_60559_TYPES_EXT__ 1 |
---|
3825 | | #define __STDC_WANT_LIB_EXT2__ 1 |
---|
3826 | | #define __STDC_WANT_MATH_SPEC_FUNCS__ 1 |
---|
3827 | | #define _TANDEM_SOURCE 1 |
---|
3828 | | #define __EXTENSIONS__ 1 |
---|
3829 | | #define HAVE_DLFCN_H 1 |
---|
3830 | | #define LT_OBJDIR ".libs/" |
---|
3831 | | #define HAVE_FSEEKO 1 |
---|
3832 | | #define SIZEOF_OFF_T 8 |
---|
3833 | | #define SIZEOF_VOIDP 4 |
---|
3834 | | #define HAVE_LROUND 1 |
---|
3835 | | #define __STDC_NO_VLA__ 1 |
---|
3836 | | #define __STDC_NO_VLA__ 1 |
---|
3837 | | #define HAVE_TYPEOF 1 |
---|
3838 | | #define HAVE_STDINT_H 1 |
---|
3839 | | #define HAVE_INTTYPES_H 1 |
---|
3840 | | #define HAVE_SYS_PARAM_H 1 |
---|
3841 | | #define HAVE_SYS_IOCTL_H 1 |
---|
3842 | | #define HAVE_TERMIOS_H 1 |
---|
3843 | | /* end confdefs.h. */ |
---|
3844 | | #include <stddef.h> |
---|
3845 | | #ifdef HAVE_STDIO_H |
---|
3846 | | # include <stdio.h> |
---|
3847 | | #endif |
---|
3848 | | #ifdef HAVE_STDLIB_H |
---|
3849 | | # include <stdlib.h> |
---|
3850 | | #endif |
---|
3851 | | #ifdef HAVE_STRING_H |
---|
3852 | | # include <string.h> |
---|
3853 | | #endif |
---|
3854 | | #ifdef HAVE_INTTYPES_H |
---|
3855 | | # include <inttypes.h> |
---|
3856 | | #endif |
---|
3857 | | #ifdef HAVE_STDINT_H |
---|
3858 | | # include <stdint.h> |
---|
3859 | | #endif |
---|
3860 | | #ifdef HAVE_STRINGS_H |
---|
3861 | | # include <strings.h> |
---|
3862 | | #endif |
---|
3863 | | #ifdef HAVE_SYS_TYPES_H |
---|
3864 | | # include <sys/types.h> |
---|
3865 | | #endif |
---|
3866 | | #ifdef HAVE_SYS_STAT_H |
---|
3867 | | # include <sys/stat.h> |
---|
3868 | | #endif |
---|
3869 | | #ifdef HAVE_UNISTD_H |
---|
3870 | | # include <unistd.h> |
---|
3871 | | #endif |
---|
3872 | | #include <cpuid.h> |
---|
3873 | configure:19134: result: no |
---|
3874 | configure:19142: checking for bswap32 intrinsic |
---|
3875 | configure:19163: /usr/bin/gcc-4.2 -o conftest -pipe -Os -std=gnu89 -arch ppc -I/opt/local/include -L/opt/local/lib -Wl,-headerpad_max_install_names -arch ppc conftest.c >&5 |
---|
3876 | conftest.c:45:1: warning: "__STDC_NO_VLA__" redefined |
---|
3877 | conftest.c:44:1: warning: this is the location of the previous definition |
---|
3878 | configure:19163: $? = 0 |
---|
3879 | configure:19177: result: yes |
---|
3880 | configure:19180: checking for bswap16 intrinsic |
---|
3881 | configure:19201: /usr/bin/gcc-4.2 -o conftest -pipe -Os -std=gnu89 -arch ppc -I/opt/local/include -L/opt/local/lib -Wl,-headerpad_max_install_names -arch ppc conftest.c >&5 |
---|
3882 | conftest.c:45:1: warning: "__STDC_NO_VLA__" redefined |
---|
3883 | conftest.c:44:1: warning: this is the location of the previous definition |
---|
3884 | Undefined symbols: |
---|
3885 | "___builtin_bswap16", referenced from: |
---|
3886 | _main in cc2HSp8N.o |
---|
3887 | ld: symbol(s) not found |
---|
3888 | collect2: ld returned 1 exit status |
---|
3889 | configure:19201: $? = 1 |
---|
3890 | configure: failed program was: |
---|
3891 | | /* confdefs.h */ |
---|
3892 | | #define PACKAGE_NAME "flac" |
---|
3893 | | #define PACKAGE_TARNAME "flac" |
---|
3894 | | #define PACKAGE_VERSION "1.3.3" |
---|
3895 | | #define PACKAGE_STRING "flac 1.3.3" |
---|
3896 | | #define PACKAGE_BUGREPORT "flac-dev@xiph.org" |
---|
3897 | | #define PACKAGE_URL "https://www.xiph.org/flac/" |
---|
3898 | | #define PACKAGE "flac" |
---|
3899 | | #define VERSION "1.3.3" |
---|
3900 | | #define NDEBUG /**/ |
---|
3901 | | #define HAVE_STDIO_H 1 |
---|
3902 | | #define HAVE_STDLIB_H 1 |
---|
3903 | | #define HAVE_STRING_H 1 |
---|
3904 | | #define HAVE_INTTYPES_H 1 |
---|
3905 | | #define HAVE_STDINT_H 1 |
---|
3906 | | #define HAVE_STRINGS_H 1 |
---|
3907 | | #define HAVE_SYS_STAT_H 1 |
---|
3908 | | #define HAVE_SYS_TYPES_H 1 |
---|
3909 | | #define HAVE_UNISTD_H 1 |
---|
3910 | | #define HAVE_WCHAR_H 1 |
---|
3911 | | #define STDC_HEADERS 1 |
---|
3912 | | #define _ALL_SOURCE 1 |
---|
3913 | | #define _DARWIN_C_SOURCE 1 |
---|
3914 | | #define _GNU_SOURCE 1 |
---|
3915 | | #define _HPUX_ALT_XOPEN_SOCKET_API 1 |
---|
3916 | | #define _NETBSD_SOURCE 1 |
---|
3917 | | #define _OPENBSD_SOURCE 1 |
---|
3918 | | #define _POSIX_PTHREAD_SEMANTICS 1 |
---|
3919 | | #define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1 |
---|
3920 | | #define __STDC_WANT_IEC_60559_BFP_EXT__ 1 |
---|
3921 | | #define __STDC_WANT_IEC_60559_DFP_EXT__ 1 |
---|
3922 | | #define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1 |
---|
3923 | | #define __STDC_WANT_IEC_60559_TYPES_EXT__ 1 |
---|
3924 | | #define __STDC_WANT_LIB_EXT2__ 1 |
---|
3925 | | #define __STDC_WANT_MATH_SPEC_FUNCS__ 1 |
---|
3926 | | #define _TANDEM_SOURCE 1 |
---|
3927 | | #define __EXTENSIONS__ 1 |
---|
3928 | | #define HAVE_DLFCN_H 1 |
---|
3929 | | #define LT_OBJDIR ".libs/" |
---|
3930 | | #define HAVE_FSEEKO 1 |
---|
3931 | | #define SIZEOF_OFF_T 8 |
---|
3932 | | #define SIZEOF_VOIDP 4 |
---|
3933 | | #define HAVE_LROUND 1 |
---|
3934 | | #define __STDC_NO_VLA__ 1 |
---|
3935 | | #define __STDC_NO_VLA__ 1 |
---|
3936 | | #define HAVE_TYPEOF 1 |
---|
3937 | | #define HAVE_STDINT_H 1 |
---|
3938 | | #define HAVE_INTTYPES_H 1 |
---|
3939 | | #define HAVE_SYS_PARAM_H 1 |
---|
3940 | | #define HAVE_SYS_IOCTL_H 1 |
---|
3941 | | #define HAVE_TERMIOS_H 1 |
---|
3942 | | #define HAVE_BSWAP32 1 |
---|
3943 | | /* end confdefs.h. */ |
---|
3944 | | |
---|
3945 | | int |
---|
3946 | | main (void) |
---|
3947 | | { |
---|
3948 | | return __builtin_bswap16 (0) ; |
---|
3949 | | ; |
---|
3950 | | return 0; |
---|
3951 | | } |
---|
3952 | configure:19215: result: no |
---|
3953 | configure:19221: checking whether byte ordering is bigendian |
---|
3954 | configure:19237: /usr/bin/gcc-4.2 -c -pipe -Os -std=gnu89 -arch ppc -I/opt/local/include conftest.c >&5 |
---|
3955 | conftest.c:45:1: warning: "__STDC_NO_VLA__" redefined |
---|
3956 | conftest.c:44:1: warning: this is the location of the previous definition |
---|
3957 | configure:19237: $? = 0 |
---|
3958 | configure:19283: /usr/bin/gcc-4.2 -c -pipe -Os -std=gnu89 -arch ppc -I/opt/local/include conftest.c >&5 |
---|
3959 | conftest.c:45:1: warning: "__STDC_NO_VLA__" redefined |
---|
3960 | conftest.c:44:1: warning: this is the location of the previous definition |
---|
3961 | configure:19283: $? = 0 |
---|
3962 | configure:19302: /usr/bin/gcc-4.2 -c -pipe -Os -std=gnu89 -arch ppc -I/opt/local/include conftest.c >&5 |
---|
3963 | conftest.c:45:1: warning: "__STDC_NO_VLA__" redefined |
---|
3964 | conftest.c:44:1: warning: this is the location of the previous definition |
---|
3965 | configure:19302: $? = 0 |
---|
3966 | configure:19436: result: yes |
---|
3967 | configure:19496: checking for socklen_t |
---|
3968 | configure:19496: /usr/bin/gcc-4.2 -c -pipe -Os -std=gnu89 -arch ppc -I/opt/local/include conftest.c >&5 |
---|
3969 | conftest.c:45:1: warning: "__STDC_NO_VLA__" redefined |
---|
3970 | conftest.c:44:1: warning: this is the location of the previous definition |
---|
3971 | conftest.c: In function 'main': |
---|
3972 | conftest.c:89: error: 'socklen_t' undeclared (first use in this function) |
---|
3973 | conftest.c:89: error: (Each undeclared identifier is reported only once |
---|
3974 | conftest.c:89: error: for each function it appears in.) |
---|
3975 | configure:19496: $? = 1 |
---|
3976 | configure: failed program was: |
---|
3977 | | /* confdefs.h */ |
---|
3978 | | #define PACKAGE_NAME "flac" |
---|
3979 | | #define PACKAGE_TARNAME "flac" |
---|
3980 | | #define PACKAGE_VERSION "1.3.3" |
---|
3981 | | #define PACKAGE_STRING "flac 1.3.3" |
---|
3982 | | #define PACKAGE_BUGREPORT "flac-dev@xiph.org" |
---|
3983 | | #define PACKAGE_URL "https://www.xiph.org/flac/" |
---|
3984 | | #define PACKAGE "flac" |
---|
3985 | | #define VERSION "1.3.3" |
---|
3986 | | #define NDEBUG /**/ |
---|
3987 | | #define HAVE_STDIO_H 1 |
---|
3988 | | #define HAVE_STDLIB_H 1 |
---|
3989 | | #define HAVE_STRING_H 1 |
---|
3990 | | #define HAVE_INTTYPES_H 1 |
---|
3991 | | #define HAVE_STDINT_H 1 |
---|
3992 | | #define HAVE_STRINGS_H 1 |
---|
3993 | | #define HAVE_SYS_STAT_H 1 |
---|
3994 | | #define HAVE_SYS_TYPES_H 1 |
---|
3995 | | #define HAVE_UNISTD_H 1 |
---|
3996 | | #define HAVE_WCHAR_H 1 |
---|
3997 | | #define STDC_HEADERS 1 |
---|
3998 | | #define _ALL_SOURCE 1 |
---|
3999 | | #define _DARWIN_C_SOURCE 1 |
---|
4000 | | #define _GNU_SOURCE 1 |
---|
4001 | | #define _HPUX_ALT_XOPEN_SOCKET_API 1 |
---|
4002 | | #define _NETBSD_SOURCE 1 |
---|
4003 | | #define _OPENBSD_SOURCE 1 |
---|
4004 | | #define _POSIX_PTHREAD_SEMANTICS 1 |
---|
4005 | | #define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1 |
---|
4006 | | #define __STDC_WANT_IEC_60559_BFP_EXT__ 1 |
---|
4007 | | #define __STDC_WANT_IEC_60559_DFP_EXT__ 1 |
---|
4008 | | #define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1 |
---|
4009 | | #define __STDC_WANT_IEC_60559_TYPES_EXT__ 1 |
---|
4010 | | #define __STDC_WANT_LIB_EXT2__ 1 |
---|
4011 | | #define __STDC_WANT_MATH_SPEC_FUNCS__ 1 |
---|
4012 | | #define _TANDEM_SOURCE 1 |
---|
4013 | | #define __EXTENSIONS__ 1 |
---|
4014 | | #define HAVE_DLFCN_H 1 |
---|
4015 | | #define LT_OBJDIR ".libs/" |
---|
4016 | | #define HAVE_FSEEKO 1 |
---|
4017 | | #define SIZEOF_OFF_T 8 |
---|
4018 | | #define SIZEOF_VOIDP 4 |
---|
4019 | | #define HAVE_LROUND 1 |
---|
4020 | | #define __STDC_NO_VLA__ 1 |
---|
4021 | | #define __STDC_NO_VLA__ 1 |
---|
4022 | | #define HAVE_TYPEOF 1 |
---|
4023 | | #define HAVE_STDINT_H 1 |
---|
4024 | | #define HAVE_INTTYPES_H 1 |
---|
4025 | | #define HAVE_SYS_PARAM_H 1 |
---|
4026 | | #define HAVE_SYS_IOCTL_H 1 |
---|
4027 | | #define HAVE_TERMIOS_H 1 |
---|
4028 | | #define HAVE_BSWAP32 1 |
---|
4029 | | #define HAVE_BSWAP16 0 |
---|
4030 | | #define CPU_IS_BIG_ENDIAN 1 |
---|
4031 | | #define CPU_IS_LITTLE_ENDIAN 0 |
---|
4032 | | #define WORDS_BIGENDIAN 1 |
---|
4033 | | /* end confdefs.h. */ |
---|
4034 | | #include <stddef.h> |
---|
4035 | | #ifdef HAVE_STDIO_H |
---|
4036 | | # include <stdio.h> |
---|
4037 | | #endif |
---|
4038 | | #ifdef HAVE_STDLIB_H |
---|
4039 | | # include <stdlib.h> |
---|
4040 | | #endif |
---|
4041 | | #ifdef HAVE_STRING_H |
---|
4042 | | # include <string.h> |
---|
4043 | | #endif |
---|
4044 | | #ifdef HAVE_INTTYPES_H |
---|
4045 | | # include <inttypes.h> |
---|
4046 | | #endif |
---|
4047 | | #ifdef HAVE_STDINT_H |
---|
4048 | | # include <stdint.h> |
---|
4049 | | #endif |
---|
4050 | | #ifdef HAVE_STRINGS_H |
---|
4051 | | # include <strings.h> |
---|
4052 | | #endif |
---|
4053 | | #ifdef HAVE_SYS_TYPES_H |
---|
4054 | | # include <sys/types.h> |
---|
4055 | | #endif |
---|
4056 | | #ifdef HAVE_SYS_STAT_H |
---|
4057 | | # include <sys/stat.h> |
---|
4058 | | #endif |
---|
4059 | | #ifdef HAVE_UNISTD_H |
---|
4060 | | # include <unistd.h> |
---|
4061 | | #endif |
---|
4062 | | int |
---|
4063 | | main (void) |
---|
4064 | | { |
---|
4065 | | if (sizeof (socklen_t)) |
---|
4066 | | return 0; |
---|
4067 | | ; |
---|
4068 | | return 0; |
---|
4069 | | } |
---|
4070 | configure:19496: result: no |
---|
4071 | configure:19506: checking for getopt_long |
---|
4072 | configure:19506: /usr/bin/gcc-4.2 -o conftest -pipe -Os -std=gnu89 -arch ppc -I/opt/local/include -L/opt/local/lib -Wl,-headerpad_max_install_names -arch ppc conftest.c >&5 |
---|
4073 | conftest.c:45:1: warning: "__STDC_NO_VLA__" redefined |
---|
4074 | conftest.c:44:1: warning: this is the location of the previous definition |
---|
4075 | configure:19506: $? = 0 |
---|
4076 | configure:19506: result: yes |
---|
4077 | configure:19518: checking size of void* |
---|
4078 | configure:19539: result: 4 |
---|
4079 | configure:20010: checking for doxygen |
---|
4080 | configure:20031: found /opt/local/bin/doxygen |
---|
4081 | configure:20042: result: doxygen |
---|
4082 | configure:20436: checking for Ogg |
---|
4083 | configure:20472: /usr/bin/gcc-4.2 -o conftest -pipe -Os -std=gnu89 -arch ppc -I/opt/local/include -I/opt/local/include -L/opt/local/lib -Wl,-headerpad_max_install_names -arch ppc conftest.c -L/opt/local/lib -logg >&5 |
---|
4084 | conftest.c:45:1: warning: "__STDC_NO_VLA__" redefined |
---|
4085 | conftest.c:44:1: warning: this is the location of the previous definition |
---|
4086 | configure:20472: $? = 0 |
---|
4087 | configure:20472: ./conftest |
---|
4088 | configure:20472: $? = 0 |
---|
4089 | configure:20492: result: yes |
---|
4090 | configure:20628: checking for ld used by /usr/bin/gcc-4.2 |
---|
4091 | configure:20696: result: /usr/libexec/gcc/i686-apple-darwin10/4.2.1/ld |
---|
4092 | configure:20703: checking if the linker (/usr/libexec/gcc/i686-apple-darwin10/4.2.1/ld) is GNU ld |
---|
4093 | configure:20719: result: no |
---|
4094 | configure:20727: checking for shared library run path origin |
---|
4095 | configure:20741: result: done |
---|
4096 | configure:21323: checking for iconv |
---|
4097 | configure:21348: /usr/bin/gcc-4.2 -o conftest -pipe -Os -std=gnu89 -arch ppc -I/opt/local/include -L/opt/local/lib -Wl,-headerpad_max_install_names -arch ppc conftest.c >&5 |
---|
4098 | conftest.c:45:1: warning: "__STDC_NO_VLA__" redefined |
---|
4099 | conftest.c:44:1: warning: this is the location of the previous definition |
---|
4100 | Undefined symbols: |
---|
4101 | "_libiconv_open", referenced from: |
---|
4102 | _main in ccMenYlf.o |
---|
4103 | "_libiconv", referenced from: |
---|
4104 | _main in ccMenYlf.o |
---|
4105 | "_libiconv_close", referenced from: |
---|
4106 | _main in ccMenYlf.o |
---|
4107 | ld: symbol(s) not found |
---|
4108 | collect2: ld returned 1 exit status |
---|
4109 | configure:21348: $? = 1 |
---|
4110 | configure: failed program was: |
---|
4111 | | /* confdefs.h */ |
---|
4112 | | #define PACKAGE_NAME "flac" |
---|
4113 | | #define PACKAGE_TARNAME "flac" |
---|
4114 | | #define PACKAGE_VERSION "1.3.3" |
---|
4115 | | #define PACKAGE_STRING "flac 1.3.3" |
---|
4116 | | #define PACKAGE_BUGREPORT "flac-dev@xiph.org" |
---|
4117 | | #define PACKAGE_URL "https://www.xiph.org/flac/" |
---|
4118 | | #define PACKAGE "flac" |
---|
4119 | | #define VERSION "1.3.3" |
---|
4120 | | #define NDEBUG /**/ |
---|
4121 | | #define HAVE_STDIO_H 1 |
---|
4122 | | #define HAVE_STDLIB_H 1 |
---|
4123 | | #define HAVE_STRING_H 1 |
---|
4124 | | #define HAVE_INTTYPES_H 1 |
---|
4125 | | #define HAVE_STDINT_H 1 |
---|
4126 | | #define HAVE_STRINGS_H 1 |
---|
4127 | | #define HAVE_SYS_STAT_H 1 |
---|
4128 | | #define HAVE_SYS_TYPES_H 1 |
---|
4129 | | #define HAVE_UNISTD_H 1 |
---|
4130 | | #define HAVE_WCHAR_H 1 |
---|
4131 | | #define STDC_HEADERS 1 |
---|
4132 | | #define _ALL_SOURCE 1 |
---|
4133 | | #define _DARWIN_C_SOURCE 1 |
---|
4134 | | #define _GNU_SOURCE 1 |
---|
4135 | | #define _HPUX_ALT_XOPEN_SOCKET_API 1 |
---|
4136 | | #define _NETBSD_SOURCE 1 |
---|
4137 | | #define _OPENBSD_SOURCE 1 |
---|
4138 | | #define _POSIX_PTHREAD_SEMANTICS 1 |
---|
4139 | | #define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1 |
---|
4140 | | #define __STDC_WANT_IEC_60559_BFP_EXT__ 1 |
---|
4141 | | #define __STDC_WANT_IEC_60559_DFP_EXT__ 1 |
---|
4142 | | #define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1 |
---|
4143 | | #define __STDC_WANT_IEC_60559_TYPES_EXT__ 1 |
---|
4144 | | #define __STDC_WANT_LIB_EXT2__ 1 |
---|
4145 | | #define __STDC_WANT_MATH_SPEC_FUNCS__ 1 |
---|
4146 | | #define _TANDEM_SOURCE 1 |
---|
4147 | | #define __EXTENSIONS__ 1 |
---|
4148 | | #define HAVE_DLFCN_H 1 |
---|
4149 | | #define LT_OBJDIR ".libs/" |
---|
4150 | | #define HAVE_FSEEKO 1 |
---|
4151 | | #define SIZEOF_OFF_T 8 |
---|
4152 | | #define SIZEOF_VOIDP 4 |
---|
4153 | | #define HAVE_LROUND 1 |
---|
4154 | | #define __STDC_NO_VLA__ 1 |
---|
4155 | | #define __STDC_NO_VLA__ 1 |
---|
4156 | | #define HAVE_TYPEOF 1 |
---|
4157 | | #define HAVE_STDINT_H 1 |
---|
4158 | | #define HAVE_INTTYPES_H 1 |
---|
4159 | | #define HAVE_SYS_PARAM_H 1 |
---|
4160 | | #define HAVE_SYS_IOCTL_H 1 |
---|
4161 | | #define HAVE_TERMIOS_H 1 |
---|
4162 | | #define HAVE_BSWAP32 1 |
---|
4163 | | #define HAVE_BSWAP16 0 |
---|
4164 | | #define CPU_IS_BIG_ENDIAN 1 |
---|
4165 | | #define CPU_IS_LITTLE_ENDIAN 0 |
---|
4166 | | #define WORDS_BIGENDIAN 1 |
---|
4167 | | #define HAVE_GETOPT_LONG 1 |
---|
4168 | | #define SIZEOF_VOIDP 4 |
---|
4169 | | #define FLAC__CPU_IA32 1 |
---|
4170 | | #define FLAC__HAS_X86INTRIN 0 |
---|
4171 | | #define FLAC__SYS_DARWIN 1 |
---|
4172 | | #define FLAC__ALIGN_MALLOC_DATA 1 |
---|
4173 | | #define FLAC__USE_ALTIVEC 1 |
---|
4174 | | #define FLAC__USE_VSX 1 |
---|
4175 | | #define FLAC__USE_AVX 1 |
---|
4176 | | #define ENABLE_64_BIT_WORDS 0 |
---|
4177 | | #define FLAC__HAS_OGG 1 |
---|
4178 | | /* end confdefs.h. */ |
---|
4179 | | |
---|
4180 | | #include <stdlib.h> |
---|
4181 | | #include <iconv.h> |
---|
4182 | | |
---|
4183 | | int |
---|
4184 | | main (void) |
---|
4185 | | { |
---|
4186 | | iconv_t cd = iconv_open("",""); |
---|
4187 | | iconv(cd,NULL,NULL,NULL,NULL); |
---|
4188 | | iconv_close(cd); |
---|
4189 | | ; |
---|
4190 | | return 0; |
---|
4191 | | } |
---|
4192 | configure:21373: /usr/bin/gcc-4.2 -o conftest -pipe -Os -std=gnu89 -arch ppc -I/opt/local/include -L/opt/local/lib -Wl,-headerpad_max_install_names -arch ppc conftest.c -liconv >&5 |
---|
4193 | conftest.c:45:1: warning: "__STDC_NO_VLA__" redefined |
---|
4194 | conftest.c:44:1: warning: this is the location of the previous definition |
---|
4195 | configure:21373: $? = 0 |
---|
4196 | configure:21384: result: yes |
---|
4197 | configure:21387: checking for working iconv |
---|
4198 | configure:21509: /usr/bin/gcc-4.2 -o conftest -pipe -Os -std=gnu89 -arch ppc -I/opt/local/include -L/opt/local/lib -Wl,-headerpad_max_install_names -arch ppc conftest.c -liconv >&5 |
---|
4199 | conftest.c:45:1: warning: "__STDC_NO_VLA__" redefined |
---|
4200 | conftest.c:44:1: warning: this is the location of the previous definition |
---|
4201 | configure:21509: $? = 0 |
---|
4202 | configure:21509: ./conftest |
---|
4203 | configure:21509: $? = 0 |
---|
4204 | configure:21522: result: yes |
---|
4205 | configure:21537: checking how to link with libiconv |
---|
4206 | configure:21539: result: -liconv |
---|
4207 | configure:21550: checking for iconv declaration |
---|
4208 | configure:21580: /usr/bin/gcc-4.2 -c -pipe -Os -std=gnu89 -arch ppc -I/opt/local/include conftest.c >&5 |
---|
4209 | conftest.c:45:1: warning: "__STDC_NO_VLA__" redefined |
---|
4210 | conftest.c:44:1: warning: this is the location of the previous definition |
---|
4211 | configure:21580: $? = 0 |
---|
4212 | configure:21591: result: |
---|
4213 | extern size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft); |
---|
4214 | configure:21602: checking for nl_langinfo and CODESET |
---|
4215 | configure:21619: /usr/bin/gcc-4.2 -o conftest -pipe -Os -std=gnu89 -arch ppc -I/opt/local/include -L/opt/local/lib -Wl,-headerpad_max_install_names -arch ppc conftest.c >&5 |
---|
4216 | conftest.c:45:1: warning: "__STDC_NO_VLA__" redefined |
---|
4217 | conftest.c:44:1: warning: this is the location of the previous definition |
---|
4218 | configure:21619: $? = 0 |
---|
4219 | configure:21629: result: yes |
---|
4220 | configure:21642: checking for docbook-to-man |
---|
4221 | configure:21677: result: no |
---|
4222 | configure:21642: checking for docbook2man |
---|
4223 | configure:21677: result: no |
---|
4224 | configure:21699: checking for clock_gettime in -lrt |
---|
4225 | configure:21722: /usr/bin/gcc-4.2 -o conftest -pipe -Os -std=gnu89 -arch ppc -I/opt/local/include -L/opt/local/lib -Wl,-headerpad_max_install_names -arch ppc conftest.c -lrt >&5 |
---|
4226 | conftest.c:45:1: warning: "__STDC_NO_VLA__" redefined |
---|
4227 | conftest.c:44:1: warning: this is the location of the previous definition |
---|
4228 | ld: library not found for -lrt |
---|
4229 | collect2: ld returned 1 exit status |
---|
4230 | configure:21722: $? = 1 |
---|
4231 | configure: failed program was: |
---|
4232 | | /* confdefs.h */ |
---|
4233 | | #define PACKAGE_NAME "flac" |
---|
4234 | | #define PACKAGE_TARNAME "flac" |
---|
4235 | | #define PACKAGE_VERSION "1.3.3" |
---|
4236 | | #define PACKAGE_STRING "flac 1.3.3" |
---|
4237 | | #define PACKAGE_BUGREPORT "flac-dev@xiph.org" |
---|
4238 | | #define PACKAGE_URL "https://www.xiph.org/flac/" |
---|
4239 | | #define PACKAGE "flac" |
---|
4240 | | #define VERSION "1.3.3" |
---|
4241 | | #define NDEBUG /**/ |
---|
4242 | | #define HAVE_STDIO_H 1 |
---|
4243 | | #define HAVE_STDLIB_H 1 |
---|
4244 | | #define HAVE_STRING_H 1 |
---|
4245 | | #define HAVE_INTTYPES_H 1 |
---|
4246 | | #define HAVE_STDINT_H 1 |
---|
4247 | | #define HAVE_STRINGS_H 1 |
---|
4248 | | #define HAVE_SYS_STAT_H 1 |
---|
4249 | | #define HAVE_SYS_TYPES_H 1 |
---|
4250 | | #define HAVE_UNISTD_H 1 |
---|
4251 | | #define HAVE_WCHAR_H 1 |
---|
4252 | | #define STDC_HEADERS 1 |
---|
4253 | | #define _ALL_SOURCE 1 |
---|
4254 | | #define _DARWIN_C_SOURCE 1 |
---|
4255 | | #define _GNU_SOURCE 1 |
---|
4256 | | #define _HPUX_ALT_XOPEN_SOCKET_API 1 |
---|
4257 | | #define _NETBSD_SOURCE 1 |
---|
4258 | | #define _OPENBSD_SOURCE 1 |
---|
4259 | | #define _POSIX_PTHREAD_SEMANTICS 1 |
---|
4260 | | #define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1 |
---|
4261 | | #define __STDC_WANT_IEC_60559_BFP_EXT__ 1 |
---|
4262 | | #define __STDC_WANT_IEC_60559_DFP_EXT__ 1 |
---|
4263 | | #define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1 |
---|
4264 | | #define __STDC_WANT_IEC_60559_TYPES_EXT__ 1 |
---|
4265 | | #define __STDC_WANT_LIB_EXT2__ 1 |
---|
4266 | | #define __STDC_WANT_MATH_SPEC_FUNCS__ 1 |
---|
4267 | | #define _TANDEM_SOURCE 1 |
---|
4268 | | #define __EXTENSIONS__ 1 |
---|
4269 | | #define HAVE_DLFCN_H 1 |
---|
4270 | | #define LT_OBJDIR ".libs/" |
---|
4271 | | #define HAVE_FSEEKO 1 |
---|
4272 | | #define SIZEOF_OFF_T 8 |
---|
4273 | | #define SIZEOF_VOIDP 4 |
---|
4274 | | #define HAVE_LROUND 1 |
---|
4275 | | #define __STDC_NO_VLA__ 1 |
---|
4276 | | #define __STDC_NO_VLA__ 1 |
---|
4277 | | #define HAVE_TYPEOF 1 |
---|
4278 | | #define HAVE_STDINT_H 1 |
---|
4279 | | #define HAVE_INTTYPES_H 1 |
---|
4280 | | #define HAVE_SYS_PARAM_H 1 |
---|
4281 | | #define HAVE_SYS_IOCTL_H 1 |
---|
4282 | | #define HAVE_TERMIOS_H 1 |
---|
4283 | | #define HAVE_BSWAP32 1 |
---|
4284 | | #define HAVE_BSWAP16 0 |
---|
4285 | | #define CPU_IS_BIG_ENDIAN 1 |
---|
4286 | | #define CPU_IS_LITTLE_ENDIAN 0 |
---|
4287 | | #define WORDS_BIGENDIAN 1 |
---|
4288 | | #define HAVE_GETOPT_LONG 1 |
---|
4289 | | #define SIZEOF_VOIDP 4 |
---|
4290 | | #define FLAC__CPU_IA32 1 |
---|
4291 | | #define FLAC__HAS_X86INTRIN 0 |
---|
4292 | | #define FLAC__SYS_DARWIN 1 |
---|
4293 | | #define FLAC__ALIGN_MALLOC_DATA 1 |
---|
4294 | | #define FLAC__USE_ALTIVEC 1 |
---|
4295 | | #define FLAC__USE_VSX 1 |
---|
4296 | | #define FLAC__USE_AVX 1 |
---|
4297 | | #define ENABLE_64_BIT_WORDS 0 |
---|
4298 | | #define FLAC__HAS_OGG 1 |
---|
4299 | | #define HAVE_ICONV 1 |
---|
4300 | | #define ICONV_CONST |
---|
4301 | | #define HAVE_LANGINFO_CODESET 1 |
---|
4302 | | /* end confdefs.h. */ |
---|
4303 | | |
---|
4304 | | /* Override any GCC internal prototype to avoid an error. |
---|
4305 | | Use char because int might match the return type of a GCC |
---|
4306 | | builtin and then its argument prototype would still apply. */ |
---|
4307 | | char clock_gettime (); |
---|
4308 | | int |
---|
4309 | | main (void) |
---|
4310 | | { |
---|
4311 | | return clock_gettime (); |
---|
4312 | | ; |
---|
4313 | | return 0; |
---|
4314 | | } |
---|
4315 | configure:21732: result: no |
---|
4316 | configure:21749: checking for nasm |
---|
4317 | configure:21770: found /usr/bin/nasm |
---|
4318 | configure:21781: result: nasm |
---|
4319 | configure:21816: checking for version of /usr/bin/gcc-4.2 |
---|
4320 | configure:21819: result: 4.2.1 |
---|
4321 | configure:21836: checking if /usr/bin/gcc-4.2 accepts -Wdeclaration-after-statement |
---|
4322 | configure:21853: /usr/bin/gcc-4.2 -o conftest -Wdeclaration-after-statement -I/opt/local/include -L/opt/local/lib -Wl,-headerpad_max_install_names -arch ppc conftest.c >&5 |
---|
4323 | conftest.c:45:1: warning: "__STDC_NO_VLA__" redefined |
---|
4324 | conftest.c:44:1: warning: this is the location of the previous definition |
---|
4325 | configure:21853: $? = 0 |
---|
4326 | configure:21855: result: yes |
---|
4327 | configure:21869: checking whether to add -D_FORTIFY_SOURCE=2 to CPPFLAGS |
---|
4328 | configure:21885: /usr/bin/gcc-4.2 -o conftest -pipe -Os -std=gnu89 -arch ppc -Wall -Wextra -Wstrict-prototypes -Wmissing-prototypes -Waggregate-return -Wcast-align -Wnested-externs -Wshadow -Wundef -Wmissing-declarations -Winline -Wdeclaration-after-statement -I/opt/local/include -L/opt/local/lib -Wl,-headerpad_max_install_names -arch ppc conftest.c >&5 |
---|
4329 | conftest.c:45:1: warning: "__STDC_NO_VLA__" redefined |
---|
4330 | conftest.c:44:1: warning: this is the location of the previous definition |
---|
4331 | conftest.c:75: warning: function declaration isn't a prototype |
---|
4332 | configure:21885: $? = 0 |
---|
4333 | configure:21888: result: yes |
---|
4334 | configure:21908: checking if /usr/bin/g++-4.2 accepts -Weffc++ |
---|
4335 | configure:21926: /usr/bin/g++-4.2 -o conftest -Weffc++ -I/opt/local/include -D_FORTIFY_SOURCE=2 -L/opt/local/lib -Wl,-headerpad_max_install_names -arch ppc conftest.cpp >&5 |
---|
4336 | conftest.cpp:45:1: warning: "__STDC_NO_VLA__" redefined |
---|
4337 | conftest.cpp:44:1: warning: this is the location of the previous definition |
---|
4338 | configure:21926: $? = 0 |
---|
4339 | configure:21928: result: yes |
---|
4340 | configure:21960: checking if /usr/bin/gcc-4.2 accepts -fgnu89-inline |
---|
4341 | configure:21977: /usr/bin/gcc-4.2 -o conftest -fgnu89-inline -I/opt/local/include -D_FORTIFY_SOURCE=2 -DFLAC__USE_VISIBILITY_ATTR -L/opt/local/lib -Wl,-headerpad_max_install_names -arch ppc conftest.c >&5 |
---|
4342 | conftest.c:45:1: warning: "__STDC_NO_VLA__" redefined |
---|
4343 | conftest.c:44:1: warning: this is the location of the previous definition |
---|
4344 | configure:21977: $? = 0 |
---|
4345 | configure:21979: result: yes |
---|
4346 | configure:22028: checking if /usr/bin/gcc-4.2 accepts -msse2 |
---|
4347 | configure:22045: /usr/bin/gcc-4.2 -o conftest -msse2 -I/opt/local/include -D_FORTIFY_SOURCE=2 -DFLAC__USE_VISIBILITY_ATTR -L/opt/local/lib -Wl,-headerpad_max_install_names -arch ppc conftest.c >&5 |
---|
4348 | conftest.c:45:1: warning: "__STDC_NO_VLA__" redefined |
---|
4349 | conftest.c:44:1: warning: this is the location of the previous definition |
---|
4350 | configure:22045: $? = 0 |
---|
4351 | configure:22047: result: yes |
---|
4352 | configure:22369: checking that generated files are newer than configure |
---|
4353 | configure:22375: result: done |
---|
4354 | configure:22491: creating ./config.status |
---|
4355 | |
---|
4356 | ## ---------------------- ## |
---|
4357 | ## Running config.status. ## |
---|
4358 | ## ---------------------- ## |
---|
4359 | |
---|
4360 | This file was extended by flac config.status 1.3.3, which was |
---|
4361 | generated by GNU Autoconf 2.71. Invocation command line was |
---|
4362 | |
---|
4363 | CONFIG_FILES = |
---|
4364 | CONFIG_HEADERS = |
---|
4365 | CONFIG_LINKS = |
---|
4366 | CONFIG_COMMANDS = |
---|
4367 | $ ./config.status |
---|
4368 | |
---|
4369 | on Sergey-Fedorovs-Mac-mini.local |
---|
4370 | |
---|
4371 | config.status:1339: creating Makefile |
---|
4372 | config.status:1339: creating src/Makefile |
---|
4373 | config.status:1339: creating src/libFLAC/Makefile |
---|
4374 | config.status:1339: creating src/libFLAC/flac.pc |
---|
4375 | config.status:1339: creating src/libFLAC/ia32/Makefile |
---|
4376 | config.status:1339: creating src/libFLAC/include/Makefile |
---|
4377 | config.status:1339: creating src/libFLAC/include/private/Makefile |
---|
4378 | config.status:1339: creating src/libFLAC/include/protected/Makefile |
---|
4379 | config.status:1339: creating src/libFLAC++/Makefile |
---|
4380 | config.status:1339: creating src/libFLAC++/flac++.pc |
---|
4381 | config.status:1339: creating src/flac/Makefile |
---|
4382 | config.status:1339: creating src/metaflac/Makefile |
---|
4383 | config.status:1339: creating src/plugin_common/Makefile |
---|
4384 | config.status:1339: creating src/plugin_xmms/Makefile |
---|
4385 | config.status:1339: creating src/share/Makefile |
---|
4386 | config.status:1339: creating src/test_grabbag/Makefile |
---|
4387 | config.status:1339: creating src/test_grabbag/cuesheet/Makefile |
---|
4388 | config.status:1339: creating src/test_grabbag/picture/Makefile |
---|
4389 | config.status:1339: creating src/test_libs_common/Makefile |
---|
4390 | config.status:1339: creating src/test_libFLAC/Makefile |
---|
4391 | config.status:1339: creating src/test_libFLAC++/Makefile |
---|
4392 | config.status:1339: creating src/test_seeking/Makefile |
---|
4393 | config.status:1339: creating src/test_streams/Makefile |
---|
4394 | config.status:1339: creating src/utils/Makefile |
---|
4395 | config.status:1339: creating src/utils/flacdiff/Makefile |
---|
4396 | config.status:1339: creating src/utils/flactimer/Makefile |
---|
4397 | config.status:1339: creating examples/Makefile |
---|
4398 | config.status:1339: creating examples/c/Makefile |
---|
4399 | config.status:1339: creating examples/c/decode/Makefile |
---|
4400 | config.status:1339: creating examples/c/decode/file/Makefile |
---|
4401 | config.status:1339: creating examples/c/encode/Makefile |
---|
4402 | config.status:1339: creating examples/c/encode/file/Makefile |
---|
4403 | config.status:1339: creating examples/cpp/Makefile |
---|
4404 | config.status:1339: creating examples/cpp/decode/Makefile |
---|
4405 | config.status:1339: creating examples/cpp/decode/file/Makefile |
---|
4406 | config.status:1339: creating examples/cpp/encode/Makefile |
---|
4407 | config.status:1339: creating examples/cpp/encode/file/Makefile |
---|
4408 | config.status:1339: creating include/Makefile |
---|
4409 | config.status:1339: creating include/FLAC/Makefile |
---|
4410 | config.status:1339: creating include/FLAC++/Makefile |
---|
4411 | config.status:1339: creating include/share/Makefile |
---|
4412 | config.status:1339: creating include/share/grabbag/Makefile |
---|
4413 | config.status:1339: creating include/test_libs_common/Makefile |
---|
4414 | config.status:1339: creating doc/Doxyfile |
---|
4415 | config.status:1339: creating doc/Makefile |
---|
4416 | config.status:1339: creating doc/html/Makefile |
---|
4417 | config.status:1339: creating doc/html/images/Makefile |
---|
4418 | config.status:1339: creating m4/Makefile |
---|
4419 | config.status:1339: creating man/Makefile |
---|
4420 | config.status:1339: creating test/common.sh |
---|
4421 | config.status:1339: creating test/Makefile |
---|
4422 | config.status:1339: creating test/cuesheets/Makefile |
---|
4423 | config.status:1339: creating test/flac-to-flac-metadata-test-files/Makefile |
---|
4424 | config.status:1339: creating test/metaflac-test-files/Makefile |
---|
4425 | config.status:1339: creating test/pictures/Makefile |
---|
4426 | config.status:1339: creating build/Makefile |
---|
4427 | config.status:1339: creating objs/Makefile |
---|
4428 | config.status:1339: creating objs/debug/Makefile |
---|
4429 | config.status:1339: creating objs/debug/bin/Makefile |
---|
4430 | config.status:1339: creating objs/debug/lib/Makefile |
---|
4431 | config.status:1339: creating objs/release/Makefile |
---|
4432 | config.status:1339: creating objs/release/bin/Makefile |
---|
4433 | config.status:1339: creating objs/release/lib/Makefile |
---|
4434 | config.status:1339: creating microbench/Makefile |
---|
4435 | config.status:1339: creating config.h |
---|
4436 | config.status:1568: executing depfiles commands |
---|
4437 | config.status:1645: cd src/libFLAC && sed -e '/# am--include-marker/d' Makefile | make -f - am--depfiles |
---|
4438 | config.status:1650: $? = 0 |
---|
4439 | config.status:1645: cd src/libFLAC++ && sed -e '/# am--include-marker/d' Makefile | make -f - am--depfiles |
---|
4440 | config.status:1650: $? = 0 |
---|
4441 | config.status:1645: cd src/flac && sed -e '/# am--include-marker/d' Makefile | make -f - am--depfiles |
---|
4442 | config.status:1650: $? = 0 |
---|
4443 | config.status:1645: cd src/metaflac && sed -e '/# am--include-marker/d' Makefile | make -f - am--depfiles |
---|
4444 | config.status:1650: $? = 0 |
---|
4445 | config.status:1645: cd src/plugin_common && sed -e '/# am--include-marker/d' Makefile | make -f - am--depfiles |
---|
4446 | config.status:1650: $? = 0 |
---|
4447 | config.status:1645: cd src/plugin_xmms && sed -e '/# am--include-marker/d' Makefile | make -f - am--depfiles |
---|
4448 | config.status:1650: $? = 0 |
---|
4449 | config.status:1645: cd src/share && sed -e '/# am--include-marker/d' Makefile | make -f - am--depfiles |
---|
4450 | config.status:1650: $? = 0 |
---|
4451 | config.status:1645: cd src/test_grabbag/cuesheet && sed -e '/# am--include-marker/d' Makefile | make -f - am--depfiles |
---|
4452 | config.status:1650: $? = 0 |
---|
4453 | config.status:1645: cd src/test_grabbag/picture && sed -e '/# am--include-marker/d' Makefile | make -f - am--depfiles |
---|
4454 | config.status:1650: $? = 0 |
---|
4455 | config.status:1645: cd src/test_libs_common && sed -e '/# am--include-marker/d' Makefile | make -f - am--depfiles |
---|
4456 | config.status:1650: $? = 0 |
---|
4457 | config.status:1645: cd src/test_libFLAC && sed -e '/# am--include-marker/d' Makefile | make -f - am--depfiles |
---|
4458 | config.status:1650: $? = 0 |
---|
4459 | config.status:1645: cd src/test_libFLAC++ && sed -e '/# am--include-marker/d' Makefile | make -f - am--depfiles |
---|
4460 | config.status:1650: $? = 0 |
---|
4461 | config.status:1645: cd src/test_seeking && sed -e '/# am--include-marker/d' Makefile | make -f - am--depfiles |
---|
4462 | config.status:1650: $? = 0 |
---|
4463 | config.status:1645: cd src/test_streams && sed -e '/# am--include-marker/d' Makefile | make -f - am--depfiles |
---|
4464 | config.status:1650: $? = 0 |
---|
4465 | config.status:1645: cd examples/c/decode/file && sed -e '/# am--include-marker/d' Makefile | make -f - am--depfiles |
---|
4466 | config.status:1650: $? = 0 |
---|
4467 | config.status:1645: cd examples/c/encode/file && sed -e '/# am--include-marker/d' Makefile | make -f - am--depfiles |
---|
4468 | config.status:1650: $? = 0 |
---|
4469 | config.status:1645: cd examples/cpp/decode/file && sed -e '/# am--include-marker/d' Makefile | make -f - am--depfiles |
---|
4470 | config.status:1650: $? = 0 |
---|
4471 | config.status:1645: cd examples/cpp/encode/file && sed -e '/# am--include-marker/d' Makefile | make -f - am--depfiles |
---|
4472 | config.status:1650: $? = 0 |
---|
4473 | config.status:1645: cd microbench && sed -e '/# am--include-marker/d' Makefile | make -f - am--depfiles |
---|
4474 | config.status:1650: $? = 0 |
---|
4475 | config.status:1568: executing libtool commands |
---|
4476 | configure:24968: result: |
---|
4477 | -=-=-=-=-=-=-=-=-=-= Configuration Complete =-=-=-=-=-=-=-=-=-=- |
---|
4478 | |
---|
4479 | Configuration summary : |
---|
4480 | |
---|
4481 | FLAC version : ........................ 1.3.3 |
---|
4482 | |
---|
4483 | Host CPU : ............................ x86_64 |
---|
4484 | Host Vendor : ......................... apple |
---|
4485 | Host OS : ............................. darwin10.8.0 |
---|
4486 | |
---|
4487 | |
---|
4488 | ## ---------------- ## |
---|
4489 | ## Cache variables. ## |
---|
4490 | ## ---------------- ## |
---|
4491 | |
---|
4492 | ac_cv_build=x86_64-apple-darwin10.8.0 |
---|
4493 | ac_cv_c_big_endian=1 |
---|
4494 | ac_cv_c_bigendian=yes |
---|
4495 | ac_cv_c_bswap16=no |
---|
4496 | ac_cv_c_bswap32=yes |
---|
4497 | ac_cv_c_compiler_gnu=yes |
---|
4498 | ac_cv_c_inline=inline |
---|
4499 | ac_cv_c_little_endian=0 |
---|
4500 | ac_cv_c_typeof=typeof |
---|
4501 | ac_cv_c_vararrays=no |
---|
4502 | ac_cv_cxx_compiler_gnu=yes |
---|
4503 | ac_cv_env_CCASFLAGS_set= |
---|
4504 | ac_cv_env_CCASFLAGS_value= |
---|
4505 | ac_cv_env_CCAS_set= |
---|
4506 | ac_cv_env_CCAS_value= |
---|
4507 | ac_cv_env_CCC_set= |
---|
4508 | ac_cv_env_CCC_value= |
---|
4509 | ac_cv_env_CC_set=set |
---|
4510 | ac_cv_env_CC_value=/usr/bin/gcc-4.2 |
---|
4511 | ac_cv_env_CFLAGS_set=set |
---|
4512 | ac_cv_env_CFLAGS_value='-pipe -Os -std=gnu89 -arch ppc' |
---|
4513 | ac_cv_env_CPPFLAGS_set=set |
---|
4514 | ac_cv_env_CPPFLAGS_value=-I/opt/local/include |
---|
4515 | ac_cv_env_CPP_set= |
---|
4516 | ac_cv_env_CPP_value= |
---|
4517 | ac_cv_env_CXXCPP_set= |
---|
4518 | ac_cv_env_CXXCPP_value= |
---|
4519 | ac_cv_env_CXXFLAGS_set=set |
---|
4520 | ac_cv_env_CXXFLAGS_value='-pipe -Os -arch ppc' |
---|
4521 | ac_cv_env_CXX_set=set |
---|
4522 | ac_cv_env_CXX_value=/usr/bin/g++-4.2 |
---|
4523 | ac_cv_env_LDFLAGS_set=set |
---|
4524 | ac_cv_env_LDFLAGS_value='-L/opt/local/lib -Wl,-headerpad_max_install_names -arch ppc' |
---|
4525 | ac_cv_env_LIBS_set= |
---|
4526 | ac_cv_env_LIBS_value= |
---|
4527 | ac_cv_env_LT_SYS_LIBRARY_PATH_set= |
---|
4528 | ac_cv_env_LT_SYS_LIBRARY_PATH_value= |
---|
4529 | ac_cv_env_build_alias_set= |
---|
4530 | ac_cv_env_build_alias_value= |
---|
4531 | ac_cv_env_host_alias_set= |
---|
4532 | ac_cv_env_host_alias_value= |
---|
4533 | ac_cv_env_target_alias_set= |
---|
4534 | ac_cv_env_target_alias_value= |
---|
4535 | ac_cv_func_getopt_long=yes |
---|
4536 | ac_cv_header_byteswap_h=no |
---|
4537 | ac_cv_header_cpuid_h=no |
---|
4538 | ac_cv_header_dlfcn_h=yes |
---|
4539 | ac_cv_header_inttypes_h=yes |
---|
4540 | ac_cv_header_minix_config_h=no |
---|
4541 | ac_cv_header_stdint_h=yes |
---|
4542 | ac_cv_header_stdio_h=yes |
---|
4543 | ac_cv_header_stdlib_h=yes |
---|
4544 | ac_cv_header_string_h=yes |
---|
4545 | ac_cv_header_strings_h=yes |
---|
4546 | ac_cv_header_sys_ioctl_h=yes |
---|
4547 | ac_cv_header_sys_param_h=yes |
---|
4548 | ac_cv_header_sys_stat_h=yes |
---|
4549 | ac_cv_header_sys_types_h=yes |
---|
4550 | ac_cv_header_termios_h=yes |
---|
4551 | ac_cv_header_unistd_h=yes |
---|
4552 | ac_cv_header_wchar_h=yes |
---|
4553 | ac_cv_header_x86intrin_h=no |
---|
4554 | ac_cv_host=x86_64-apple-darwin10.8.0 |
---|
4555 | ac_cv_lib_rt_clock_gettime=no |
---|
4556 | ac_cv_objext=o |
---|
4557 | ac_cv_path_EGREP='/opt/local/bin/ggrep -E' |
---|
4558 | ac_cv_path_FGREP='/opt/local/bin/ggrep -F' |
---|
4559 | ac_cv_path_GREP=/opt/local/bin/ggrep |
---|
4560 | ac_cv_path_SED=/opt/local/bin/gsed |
---|
4561 | ac_cv_path_lt_DD=/bin/dd |
---|
4562 | ac_cv_path_mkdir=/opt/local/bin/gmkdir |
---|
4563 | ac_cv_prog_AWK=gawk |
---|
4564 | ac_cv_prog_CPP='/usr/bin/gcc-4.2 -E' |
---|
4565 | ac_cv_prog_CXXCPP='/usr/bin/g++-4.2 -E' |
---|
4566 | ac_cv_prog_DOXYGEN=doxygen |
---|
4567 | ac_cv_prog_NASM=nasm |
---|
4568 | ac_cv_prog_ac_ct_AR=ar |
---|
4569 | ac_cv_prog_ac_ct_CC=/usr/bin/gcc-4.2 |
---|
4570 | ac_cv_prog_ac_ct_DSYMUTIL=dsymutil |
---|
4571 | ac_cv_prog_ac_ct_LIPO=lipo |
---|
4572 | ac_cv_prog_ac_ct_NMEDIT=nmedit |
---|
4573 | ac_cv_prog_ac_ct_OTOOL=otool |
---|
4574 | ac_cv_prog_ac_ct_RANLIB=ranlib |
---|
4575 | ac_cv_prog_ac_ct_STRIP=strip |
---|
4576 | ac_cv_prog_cc_c11=no |
---|
4577 | ac_cv_prog_cc_c89= |
---|
4578 | ac_cv_prog_cc_c99=no |
---|
4579 | ac_cv_prog_cc_g=yes |
---|
4580 | ac_cv_prog_cc_stdc= |
---|
4581 | ac_cv_prog_cxx_11=no |
---|
4582 | ac_cv_prog_cxx_g=yes |
---|
4583 | ac_cv_prog_cxx_stdcxx= |
---|
4584 | ac_cv_prog_make_make_set=yes |
---|
4585 | ac_cv_safe_to_define___extensions__=yes |
---|
4586 | ac_cv_search_lround='none required' |
---|
4587 | ac_cv_should_define__xopen_source=no |
---|
4588 | ac_cv_sizeof_off_t=8 |
---|
4589 | ac_cv_sizeof_voidp=4 |
---|
4590 | ac_cv_sys_file_offset_bits=no |
---|
4591 | ac_cv_sys_largefile_CC=no |
---|
4592 | ac_cv_sys_largefile_source=no |
---|
4593 | ac_cv_type_socklen_t=no |
---|
4594 | acl_cv_path_LD=/usr/libexec/gcc/i686-apple-darwin10/4.2.1/ld |
---|
4595 | acl_cv_prog_gnu_ld=no |
---|
4596 | acl_cv_rpath=done |
---|
4597 | am_cv_CCAS_dependencies_compiler_type=gcc3 |
---|
4598 | am_cv_CC_dependencies_compiler_type=gcc3 |
---|
4599 | am_cv_CXX_dependencies_compiler_type=gcc3 |
---|
4600 | am_cv_ar_interface=ar |
---|
4601 | am_cv_func_iconv=yes |
---|
4602 | am_cv_func_iconv_works=yes |
---|
4603 | am_cv_langinfo_codeset=yes |
---|
4604 | am_cv_lib_iconv=yes |
---|
4605 | am_cv_make_support_nested_variables=yes |
---|
4606 | am_cv_prog_cc_c_o=yes |
---|
4607 | am_cv_prog_tar_pax=gnutar |
---|
4608 | am_cv_proto_iconv='extern size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);' |
---|
4609 | am_cv_proto_iconv_arg1= |
---|
4610 | lt_cv_apple_cc_single_mod=yes |
---|
4611 | lt_cv_ar_at_file=no |
---|
4612 | lt_cv_deplibs_check_method=pass_all |
---|
4613 | lt_cv_file_magic_cmd='$MAGIC_CMD' |
---|
4614 | lt_cv_file_magic_test_file= |
---|
4615 | lt_cv_ld_exported_symbols_list=yes |
---|
4616 | lt_cv_ld_force_load=yes |
---|
4617 | lt_cv_ld_reload_flag=-r |
---|
4618 | lt_cv_nm_interface='BSD nm' |
---|
4619 | lt_cv_objdir=.libs |
---|
4620 | lt_cv_path_LD=/usr/libexec/gcc/i686-apple-darwin10/4.2.1/ld |
---|
4621 | lt_cv_path_LDCXX=/usr/libexec/gcc/i686-apple-darwin10/4.2.1/ld |
---|
4622 | lt_cv_path_NM=/opt/local/bin/nm |
---|
4623 | lt_cv_path_mainfest_tool=no |
---|
4624 | lt_cv_prog_compiler_c_o=yes |
---|
4625 | lt_cv_prog_compiler_c_o_CXX=yes |
---|
4626 | lt_cv_prog_compiler_pic='-fno-common -DPIC' |
---|
4627 | lt_cv_prog_compiler_pic_CXX='-fno-common -DPIC' |
---|
4628 | lt_cv_prog_compiler_pic_works=yes |
---|
4629 | lt_cv_prog_compiler_pic_works_CXX=yes |
---|
4630 | lt_cv_prog_compiler_rtti_exceptions=no |
---|
4631 | lt_cv_prog_compiler_static_works=no |
---|
4632 | lt_cv_prog_compiler_static_works_CXX=no |
---|
4633 | lt_cv_prog_gnu_ld=no |
---|
4634 | lt_cv_prog_gnu_ldcxx=no |
---|
4635 | lt_cv_sharedlib_from_linklib_cmd='printf %s\n' |
---|
4636 | lt_cv_sys_global_symbol_pipe='sed -n -e '\''s/^.*[ ]\([BCDEGRST][BCDEGRST]*\)[ ][ ]*_\([_A-Za-z][_A-Za-z0-9]*\)$/\1 _\2 \2/p'\'' | sed '\''/ __gnu_lto/d'\''' |
---|
4637 | lt_cv_sys_global_symbol_to_c_name_address='sed -n -e '\''s/^: \(.*\) .*$/ {"\1", (void *) 0},/p'\'' -e '\''s/^[BCDEGRST][BCDEGRST]* .* \(.*\)$/ {"\1", (void *) \&\1},/p'\''' |
---|
4638 | lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='sed -n -e '\''s/^: \(.*\) .*$/ {"\1", (void *) 0},/p'\'' -e '\''s/^[BCDEGRST][BCDEGRST]* .* \(lib.*\)$/ {"\1", (void *) \&\1},/p'\'' -e '\''s/^[BCDEGRST][BCDEGRST]* .* \(.*\)$/ {"lib\1", (void *) \&\1},/p'\''' |
---|
4639 | lt_cv_sys_global_symbol_to_cdecl='sed -n -e '\''s/^T .* \(.*\)$/extern int \1();/p'\'' -e '\''s/^[BCDEGRST][BCDEGRST]* .* \(.*\)$/extern char \1;/p'\''' |
---|
4640 | lt_cv_sys_global_symbol_to_import= |
---|
4641 | lt_cv_sys_max_cmd_len=196608 |
---|
4642 | lt_cv_to_host_file_cmd=func_convert_file_noop |
---|
4643 | lt_cv_to_tool_file_cmd=func_convert_file_noop |
---|
4644 | lt_cv_truncate_bin='/bin/dd bs=4096 count=1' |
---|
4645 | xiph_cv_c_compiler_clang=no |
---|
4646 | |
---|
4647 | ## ----------------- ## |
---|
4648 | ## Output variables. ## |
---|
4649 | ## ----------------- ## |
---|
4650 | |
---|
4651 | ACLOCAL='${SHELL} '\''/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_audio_flac/flac/work/flac-1.3.3/missing'\'' aclocal-1.16' |
---|
4652 | AMDEPBACKSLASH='\' |
---|
4653 | AMDEP_FALSE='#' |
---|
4654 | AMDEP_TRUE='' |
---|
4655 | AMTAR='$${TAR-tar}' |
---|
4656 | AM_BACKSLASH='\' |
---|
4657 | AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' |
---|
4658 | AM_DEFAULT_VERBOSITY='1' |
---|
4659 | AM_V='$(V)' |
---|
4660 | AR='ar' |
---|
4661 | AS='as' |
---|
4662 | AUTOCONF='${SHELL} '\''/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_audio_flac/flac/work/flac-1.3.3/missing'\'' autoconf' |
---|
4663 | AUTOHEADER='${SHELL} '\''/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_audio_flac/flac/work/flac-1.3.3/missing'\'' autoheader' |
---|
4664 | AUTOMAKE='${SHELL} '\''/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_audio_flac/flac/work/flac-1.3.3/missing'\'' automake-1.16' |
---|
4665 | AWK='gawk' |
---|
4666 | CC='/usr/bin/gcc-4.2' |
---|
4667 | CCAS='/usr/bin/gcc-4.2' |
---|
4668 | CCASDEPMODE='depmode=gcc3' |
---|
4669 | CCASFLAGS='-pipe -Os -std=gnu89 -arch ppc' |
---|
4670 | CCDEPMODE='depmode=gcc3' |
---|
4671 | CFLAGS='-pipe -Os -std=gnu89 -arch ppc -Wall -Wextra -Wstrict-prototypes -Wmissing-prototypes -Waggregate-return -Wcast-align -Wnested-externs -Wshadow -Wundef -Wmissing-declarations -Winline -Wdeclaration-after-statement -fvisibility=hidden -fgnu89-inline -msse2' |
---|
4672 | CPP='/usr/bin/gcc-4.2 -E' |
---|
4673 | CPPFLAGS='-I/opt/local/include -D_FORTIFY_SOURCE=2 -DFLAC__USE_VISIBILITY_ATTR' |
---|
4674 | CSCOPE='cscope' |
---|
4675 | CTAGS='ctags' |
---|
4676 | CXX='/usr/bin/g++-4.2' |
---|
4677 | CXXCPP='/usr/bin/g++-4.2 -E' |
---|
4678 | CXXDEPMODE='depmode=gcc3' |
---|
4679 | CXXFLAGS='-pipe -Os -arch ppc -Wall -Wextra -Wcast-align -Wshadow -Wwrite-strings -Wctor-dtor-privacy -Wnon-virtual-dtor -Wreorder -Wsign-promo -Wundef -Weffc++ -fvisibility=hidden' |
---|
4680 | CYGPATH_W='echo' |
---|
4681 | DEBUG_FALSE='' |
---|
4682 | DEBUG_TRUE='#' |
---|
4683 | DEFS='-DHAVE_CONFIG_H' |
---|
4684 | DEPDIR='.deps' |
---|
4685 | DLLTOOL='false' |
---|
4686 | DOCBOOK_TO_MAN='' |
---|
4687 | DOXYGEN='doxygen' |
---|
4688 | DSYMUTIL='dsymutil' |
---|
4689 | DUMPBIN='' |
---|
4690 | ECHO_C='\c' |
---|
4691 | ECHO_N='' |
---|
4692 | ECHO_T='' |
---|
4693 | EGREP='/opt/local/bin/ggrep -E' |
---|
4694 | ENABLE_64_BIT_WORDS='' |
---|
4695 | ETAGS='etags' |
---|
4696 | EXAMPLES_FALSE='#' |
---|
4697 | EXAMPLES_TRUE='' |
---|
4698 | EXEEXT='' |
---|
4699 | FGREP='/opt/local/bin/ggrep -F' |
---|
4700 | FLAC__CPU_X86_64_FALSE='' |
---|
4701 | FLAC__CPU_X86_64_TRUE='#' |
---|
4702 | FLAC__HAS_OGG='1' |
---|
4703 | FLAC__TEST_LEVEL='1' |
---|
4704 | FLAC__TEST_WITH_VALGRIND='no' |
---|
4705 | FLaC__CPU_IA32_FALSE='#' |
---|
4706 | FLaC__CPU_IA32_TRUE='' |
---|
4707 | FLaC__CPU_PPC64_FALSE='' |
---|
4708 | FLaC__CPU_PPC64_TRUE='#' |
---|
4709 | FLaC__CPU_PPC_FALSE='' |
---|
4710 | FLaC__CPU_PPC_TRUE='#' |
---|
4711 | FLaC__CPU_SPARC_FALSE='' |
---|
4712 | FLaC__CPU_SPARC_TRUE='#' |
---|
4713 | FLaC__HAS_DOCBOOK_TO_MAN_FALSE='' |
---|
4714 | FLaC__HAS_DOCBOOK_TO_MAN_TRUE='#' |
---|
4715 | FLaC__HAS_DOXYGEN_FALSE='#' |
---|
4716 | FLaC__HAS_DOXYGEN_TRUE='' |
---|
4717 | FLaC__HAS_NASM_FALSE='#' |
---|
4718 | FLaC__HAS_NASM_TRUE='' |
---|
4719 | FLaC__HAS_OGG_FALSE='#' |
---|
4720 | FLaC__HAS_OGG_TRUE='' |
---|
4721 | FLaC__HAS_XMMS_FALSE='' |
---|
4722 | FLaC__HAS_XMMS_TRUE='#' |
---|
4723 | FLaC__INSTALL_XMMS_PLUGIN_LOCALLY_FALSE='' |
---|
4724 | FLaC__INSTALL_XMMS_PLUGIN_LOCALLY_TRUE='#' |
---|
4725 | FLaC__NO_ASM_FALSE='' |
---|
4726 | FLaC__NO_ASM_TRUE='#' |
---|
4727 | FLaC__SYS_DARWIN_FALSE='#' |
---|
4728 | FLaC__SYS_DARWIN_TRUE='' |
---|
4729 | FLaC__SYS_LINUX_FALSE='' |
---|
4730 | FLaC__SYS_LINUX_TRUE='#' |
---|
4731 | FLaC__USE_ALTIVEC_FALSE='#' |
---|
4732 | FLaC__USE_ALTIVEC_TRUE='' |
---|
4733 | FLaC__USE_AVX_FALSE='#' |
---|
4734 | FLaC__USE_AVX_TRUE='' |
---|
4735 | FLaC__USE_VSX_FALSE='#' |
---|
4736 | FLaC__USE_VSX_TRUE='' |
---|
4737 | FLaC__WITH_CPPLIBS_FALSE='#' |
---|
4738 | FLaC__WITH_CPPLIBS_TRUE='' |
---|
4739 | GCC_MAJOR_VERSION='4' |
---|
4740 | GCC_MINOR_VERSION='2' |
---|
4741 | GCC_VERSION='4.2.1' |
---|
4742 | GREP='/opt/local/bin/ggrep' |
---|
4743 | INSTALL_DATA='${INSTALL} -m 644' |
---|
4744 | INSTALL_PROGRAM='${INSTALL}' |
---|
4745 | INSTALL_SCRIPT='${INSTALL}' |
---|
4746 | INSTALL_STRIP_PROGRAM='$(install_sh) -c -s' |
---|
4747 | LD='/usr/libexec/gcc/i686-apple-darwin10/4.2.1/ld' |
---|
4748 | LDFLAGS='-L/opt/local/lib -Wl,-headerpad_max_install_names -arch ppc' |
---|
4749 | LIBICONV='-liconv' |
---|
4750 | LIBOBJS='' |
---|
4751 | LIBS='' |
---|
4752 | LIBTOOL='$(SHELL) $(top_builddir)/libtool' |
---|
4753 | LIB_CLOCK_GETTIME='' |
---|
4754 | LIPO='lipo' |
---|
4755 | LN_S='ln -s' |
---|
4756 | LTLIBICONV='-liconv' |
---|
4757 | LTLIBOBJS='' |
---|
4758 | LT_SYS_LIBRARY_PATH='' |
---|
4759 | MAKEINFO='${SHELL} '\''/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_audio_flac/flac/work/flac-1.3.3/missing'\'' makeinfo' |
---|
4760 | MANIFEST_TOOL=':' |
---|
4761 | MKDIR_P='/opt/local/bin/gmkdir -p' |
---|
4762 | NASM='nasm' |
---|
4763 | NM='/opt/local/bin/nm' |
---|
4764 | NMEDIT='nmedit' |
---|
4765 | OBJDUMP='false' |
---|
4766 | OBJEXT='o' |
---|
4767 | OBJ_FORMAT='macho' |
---|
4768 | OGG_CFLAGS='-I/opt/local/include' |
---|
4769 | OGG_LIBS='-L/opt/local/lib -logg' |
---|
4770 | OGG_PACKAGE='ogg' |
---|
4771 | OS_IS_WINDOWS_FALSE='' |
---|
4772 | OS_IS_WINDOWS_TRUE='#' |
---|
4773 | OTOOL64=':' |
---|
4774 | OTOOL='otool' |
---|
4775 | PACKAGE='flac' |
---|
4776 | PACKAGE_BUGREPORT='flac-dev@xiph.org' |
---|
4777 | PACKAGE_NAME='flac' |
---|
4778 | PACKAGE_STRING='flac 1.3.3' |
---|
4779 | PACKAGE_TARNAME='flac' |
---|
4780 | PACKAGE_URL='https://www.xiph.org/flac/' |
---|
4781 | PACKAGE_VERSION='1.3.3' |
---|
4782 | PATH_SEPARATOR=':' |
---|
4783 | RANLIB='ranlib' |
---|
4784 | SED='/opt/local/bin/gsed' |
---|
4785 | SET_MAKE='' |
---|
4786 | SHELL='/bin/sh' |
---|
4787 | STRIP='strip' |
---|
4788 | VERSION='1.3.3' |
---|
4789 | XMMS_CFLAGS='' |
---|
4790 | XMMS_CONFIG='' |
---|
4791 | XMMS_DATA_DIR='' |
---|
4792 | XMMS_EFFECT_PLUGIN_DIR='' |
---|
4793 | XMMS_GENERAL_PLUGIN_DIR='' |
---|
4794 | XMMS_INPUT_PLUGIN_DIR='' |
---|
4795 | XMMS_LIBS='' |
---|
4796 | XMMS_OUTPUT_PLUGIN_DIR='' |
---|
4797 | XMMS_PLUGIN_DIR='' |
---|
4798 | XMMS_VERSION='' |
---|
4799 | XMMS_VISUALIZATION_PLUGIN_DIR='' |
---|
4800 | ac_ct_AR='ar' |
---|
4801 | ac_ct_CC='/usr/bin/gcc-4.2' |
---|
4802 | ac_ct_CXX='' |
---|
4803 | ac_ct_DUMPBIN='' |
---|
4804 | am__EXEEXT_FALSE='' |
---|
4805 | am__EXEEXT_TRUE='#' |
---|
4806 | am__fastdepCCAS_FALSE='#' |
---|
4807 | am__fastdepCCAS_TRUE='' |
---|
4808 | am__fastdepCC_FALSE='#' |
---|
4809 | am__fastdepCC_TRUE='' |
---|
4810 | am__fastdepCXX_FALSE='#' |
---|
4811 | am__fastdepCXX_TRUE='' |
---|
4812 | am__include='include' |
---|
4813 | am__isrc='' |
---|
4814 | am__leading_dot='.' |
---|
4815 | am__nodep='_no' |
---|
4816 | am__quote='' |
---|
4817 | am__tar='tar --format=posix -chf - "$$tardir"' |
---|
4818 | am__untar='tar -xf -' |
---|
4819 | bindir='${exec_prefix}/bin' |
---|
4820 | build='x86_64-apple-darwin10.8.0' |
---|
4821 | build_alias='' |
---|
4822 | build_cpu='x86_64' |
---|
4823 | build_os='darwin10.8.0' |
---|
4824 | build_vendor='apple' |
---|
4825 | datadir='${datarootdir}' |
---|
4826 | datarootdir='${prefix}/share' |
---|
4827 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
---|
4828 | dvidir='${docdir}' |
---|
4829 | exec_prefix='${prefix}' |
---|
4830 | host='x86_64-apple-darwin10.8.0' |
---|
4831 | host_alias='' |
---|
4832 | host_cpu='x86_64' |
---|
4833 | host_os='darwin10.8.0' |
---|
4834 | host_vendor='apple' |
---|
4835 | htmldir='${docdir}' |
---|
4836 | includedir='${prefix}/include' |
---|
4837 | infodir='${datarootdir}/info' |
---|
4838 | install_sh='${SHELL} /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_audio_flac/flac/work/flac-1.3.3/install-sh' |
---|
4839 | libdir='${exec_prefix}/lib' |
---|
4840 | libexecdir='${exec_prefix}/libexec' |
---|
4841 | localedir='${datarootdir}/locale' |
---|
4842 | localstatedir='${prefix}/var' |
---|
4843 | mandir='${datarootdir}/man' |
---|
4844 | mkdir_p='$(MKDIR_P)' |
---|
4845 | oldincludedir='/usr/include' |
---|
4846 | pdfdir='${docdir}' |
---|
4847 | prefix='/opt/local' |
---|
4848 | program_transform_name='s,x,x,' |
---|
4849 | psdir='${docdir}' |
---|
4850 | runstatedir='${localstatedir}/run' |
---|
4851 | sbindir='${exec_prefix}/sbin' |
---|
4852 | sharedstatedir='${prefix}/com' |
---|
4853 | sysconfdir='${prefix}/etc' |
---|
4854 | target_alias='' |
---|
4855 | |
---|
4856 | ## ----------- ## |
---|
4857 | ## confdefs.h. ## |
---|
4858 | ## ----------- ## |
---|
4859 | |
---|
4860 | /* confdefs.h */ |
---|
4861 | #define PACKAGE_NAME "flac" |
---|
4862 | #define PACKAGE_TARNAME "flac" |
---|
4863 | #define PACKAGE_VERSION "1.3.3" |
---|
4864 | #define PACKAGE_STRING "flac 1.3.3" |
---|
4865 | #define PACKAGE_BUGREPORT "flac-dev@xiph.org" |
---|
4866 | #define PACKAGE_URL "https://www.xiph.org/flac/" |
---|
4867 | #define PACKAGE "flac" |
---|
4868 | #define VERSION "1.3.3" |
---|
4869 | #define NDEBUG /**/ |
---|
4870 | #define HAVE_STDIO_H 1 |
---|
4871 | #define HAVE_STDLIB_H 1 |
---|
4872 | #define HAVE_STRING_H 1 |
---|
4873 | #define HAVE_INTTYPES_H 1 |
---|
4874 | #define HAVE_STDINT_H 1 |
---|
4875 | #define HAVE_STRINGS_H 1 |
---|
4876 | #define HAVE_SYS_STAT_H 1 |
---|
4877 | #define HAVE_SYS_TYPES_H 1 |
---|
4878 | #define HAVE_UNISTD_H 1 |
---|
4879 | #define HAVE_WCHAR_H 1 |
---|
4880 | #define STDC_HEADERS 1 |
---|
4881 | #define _ALL_SOURCE 1 |
---|
4882 | #define _DARWIN_C_SOURCE 1 |
---|
4883 | #define _GNU_SOURCE 1 |
---|
4884 | #define _HPUX_ALT_XOPEN_SOCKET_API 1 |
---|
4885 | #define _NETBSD_SOURCE 1 |
---|
4886 | #define _OPENBSD_SOURCE 1 |
---|
4887 | #define _POSIX_PTHREAD_SEMANTICS 1 |
---|
4888 | #define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1 |
---|
4889 | #define __STDC_WANT_IEC_60559_BFP_EXT__ 1 |
---|
4890 | #define __STDC_WANT_IEC_60559_DFP_EXT__ 1 |
---|
4891 | #define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1 |
---|
4892 | #define __STDC_WANT_IEC_60559_TYPES_EXT__ 1 |
---|
4893 | #define __STDC_WANT_LIB_EXT2__ 1 |
---|
4894 | #define __STDC_WANT_MATH_SPEC_FUNCS__ 1 |
---|
4895 | #define _TANDEM_SOURCE 1 |
---|
4896 | #define __EXTENSIONS__ 1 |
---|
4897 | #define HAVE_DLFCN_H 1 |
---|
4898 | #define LT_OBJDIR ".libs/" |
---|
4899 | #define HAVE_FSEEKO 1 |
---|
4900 | #define SIZEOF_OFF_T 8 |
---|
4901 | #define SIZEOF_VOIDP 4 |
---|
4902 | #define HAVE_LROUND 1 |
---|
4903 | #define __STDC_NO_VLA__ 1 |
---|
4904 | #define __STDC_NO_VLA__ 1 |
---|
4905 | #define HAVE_TYPEOF 1 |
---|
4906 | #define HAVE_STDINT_H 1 |
---|
4907 | #define HAVE_INTTYPES_H 1 |
---|
4908 | #define HAVE_SYS_PARAM_H 1 |
---|
4909 | #define HAVE_SYS_IOCTL_H 1 |
---|
4910 | #define HAVE_TERMIOS_H 1 |
---|
4911 | #define HAVE_BSWAP32 1 |
---|
4912 | #define HAVE_BSWAP16 0 |
---|
4913 | #define CPU_IS_BIG_ENDIAN 1 |
---|
4914 | #define CPU_IS_LITTLE_ENDIAN 0 |
---|
4915 | #define WORDS_BIGENDIAN 1 |
---|
4916 | #define HAVE_GETOPT_LONG 1 |
---|
4917 | #define SIZEOF_VOIDP 4 |
---|
4918 | #define FLAC__CPU_IA32 1 |
---|
4919 | #define FLAC__HAS_X86INTRIN 0 |
---|
4920 | #define FLAC__SYS_DARWIN 1 |
---|
4921 | #define FLAC__ALIGN_MALLOC_DATA 1 |
---|
4922 | #define FLAC__USE_ALTIVEC 1 |
---|
4923 | #define FLAC__USE_VSX 1 |
---|
4924 | #define FLAC__USE_AVX 1 |
---|
4925 | #define ENABLE_64_BIT_WORDS 0 |
---|
4926 | #define FLAC__HAS_OGG 1 |
---|
4927 | #define HAVE_ICONV 1 |
---|
4928 | #define ICONV_CONST |
---|
4929 | #define HAVE_LANGINFO_CODESET 1 |
---|
4930 | #define FLAC__HAS_NASM 1 |
---|
4931 | |
---|
4932 | configure: exit 0 |
---|