Ticket #65528: config.txt

File config.txt, 53.2 KB (added by geoffd2, 22 months ago)

Configure log

Line 
1This file contains any messages produced by compilers while
2running configure, to aid debugging if configure makes a mistake.
3
4It was created by configure, which was
5generated by GNU Autoconf 2.71.  Invocation command line was
6
7  $ ./configure --prefix=/opt/local --with-php-config=/opt/local/bin/php-config56 --with-imap=/opt/local --with-imap-ssl=/opt/local --with-kerberos=/opt/local
8
9## --------- ##
10## Platform. ##
11## --------- ##
12
13hostname = Power-Mac-G4.local
14uname -m = Power Macintosh
15uname -r = 8.11.0
16uname -s = Darwin
17uname -v = Darwin Kernel Version 8.11.0: Wed Oct 10 18:26:00 PDT 2007; root:xnu-792.24.17~1/RELEASE_PPC
18
19/usr/bin/uname -p = powerpc
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 8.11.0: Wed Oct 10 18:26:00 PDT 2007; root:xnu-792.24.17~1/RELEASE_PPC
27Kernel configured for a single processor only.
281 processor is physically available.
29Processor type: ppc7400 (PowerPC 7400)
30Processor active: 0
31Primary memory available: 768.00 megabytes
32Default processor set: 78 tasks, 220 threads, 1 processors
33Load average: 4.12, Mach factor: 0.19
34/bin/machine           = unknown
35/usr/bin/oslevel       = unknown
36/bin/universe          = unknown
37
38PATH: /opt/local/bin/
39PATH: /opt/local/sbin/
40PATH: /bin/
41PATH: /sbin/
42PATH: /usr/bin/
43PATH: /usr/sbin/
44
45
46## ----------- ##
47## Core tests. ##
48## ----------- ##
49
50configure:2523: looking for aux files: config.guess config.sub
51configure:2536:  trying ./
52configure:2565:   ./config.guess found
53configure:2565:   ./config.sub found
54configure:2680: checking for grep that handles long lines and -e
55configure:2744: result: /usr/bin/grep
56configure:2749: checking for egrep
57configure:2817: result: /usr/bin/grep -E
58configure:2822: checking for a sed that does not truncate output
59configure:2877: result: /opt/local/bin/gsed
60configure:3086: checking for C compiler version
61configure:3095: /opt/local/bin/gcc-apple-4.2 --version >&5
62powerpc-apple-darwin8-gcc-apple-4.2.1 (GCC) 4.2.1 (Apple Inc. build 5666) (dot 3) (MacPorts apple-gcc42 5666.3_16)
63Copyright (C) 2007 Free Software Foundation, Inc.
64This is free software; see the source for copying conditions.  There is NO
65warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
66
67configure:3106: $? = 0
68configure:3095: /opt/local/bin/gcc-apple-4.2 -v >&5
69Using built-in specs.
70Target: powerpc-apple-darwin8
71Configured with: /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_apple-gcc42/apple-gcc42/work/objroot/src/configure --disable-checking --enable-werror --prefix=/opt/local --mandir=/opt/local/share/man --enable-languages=c,c++,objc,obj-c++ --libexecdir=/opt/local/libexec/apple-gcc42 --libdir=/opt/local/lib/apple-gcc42 --includedir=/opt/local/include/apple-gcc42 --program-suffix=-apple-4.2 --with-system-zlib --disable-nls --with-slibdir=/usr/lib --build=powerpc-apple-darwin8 --with-gxx-include-dir=/usr/include/c++/4.0.0 --host=powerpc-apple-darwin8 --target=powerpc-apple-darwin8
72Thread model: posix
73gcc version 4.2.1 (Apple Inc. build 5666) (dot 3) (MacPorts apple-gcc42 5666.3_16)
74configure:3106: $? = 0
75configure:3095: /opt/local/bin/gcc-apple-4.2 -V >&5
76gcc-apple-4.2: argument to `-V' is missing
77configure:3106: $? = 1
78configure:3095: /opt/local/bin/gcc-apple-4.2 -qversion >&5
79powerpc-apple-darwin8-gcc-apple-4.2.1: no input files
80configure:3106: $? = 1
81configure:3095: /opt/local/bin/gcc-apple-4.2 -version >&5
82powerpc-apple-darwin8-gcc-apple-4.2.1: no input files
83configure:3106: $? = 1
84configure:3126: checking whether the C compiler works
85configure:3148: /opt/local/bin/gcc-apple-4.2 -pipe -Os -arch ppc -I/opt/local/include -L/opt/local/lib -Wl,-headerpad_max_install_names -arch ppc conftest.c  >&5
86configure:3152: $? = 0
87configure:3202: result: yes
88configure:3205: checking for C compiler default output file name
89configure:3207: result: a.out
90configure:3213: checking for suffix of executables
91configure:3220: /opt/local/bin/gcc-apple-4.2 -o conftest -pipe -Os -arch ppc -I/opt/local/include -L/opt/local/lib -Wl,-headerpad_max_install_names -arch ppc conftest.c  >&5
92configure:3224: $? = 0
93configure:3247: result:
94configure:3269: checking whether we are cross compiling
95configure:3277: /opt/local/bin/gcc-apple-4.2 -o conftest -pipe -Os -arch ppc -I/opt/local/include -L/opt/local/lib -Wl,-headerpad_max_install_names -arch ppc conftest.c  >&5
96configure:3281: $? = 0
97configure:3288: ./conftest
98configure:3292: $? = 0
99configure:3307: result: no
100configure:3312: checking for suffix of object files
101configure:3335: /opt/local/bin/gcc-apple-4.2 -c -pipe -Os -arch ppc -I/opt/local/include conftest.c >&5
102configure:3339: $? = 0
103configure:3361: result: o
104configure:3365: checking whether the compiler supports GNU C
105configure:3385: /opt/local/bin/gcc-apple-4.2 -c -pipe -Os -arch ppc -I/opt/local/include conftest.c >&5
106configure:3385: $? = 0
107configure:3395: result: yes
108configure:3406: checking whether /opt/local/bin/gcc-apple-4.2 accepts -g
109configure:3427: /opt/local/bin/gcc-apple-4.2 -c -g -I/opt/local/include conftest.c >&5
110configure:3427: $? = 0
111configure:3471: result: yes
112configure:3491: checking for /opt/local/bin/gcc-apple-4.2 option to enable C11 features
113configure:3506: /opt/local/bin/gcc-apple-4.2  -c -pipe -Os -arch ppc -I/opt/local/include conftest.c >&5
114conftest.c:61:3: error: #error "Compiler does not advertise C99 conformance"
115conftest.c:116: error: expected ';', ',' or ')' before 'text'
116conftest.c:165:3: error: #error "Compiler does not advertise C11 conformance"
117conftest.c: In function '_Alignas':
118conftest.c:169: error: expected declaration specifiers before 'aligned_as_double'
119conftest.c:170: error: expected declaration specifiers or '...' before numeric constant
120conftest.c:170: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'no_special_alignment'
121conftest.c:171: error: storage class specified for parameter 'aligned_as_int'
122conftest.c:172: error: expected declaration specifiers or '...' before numeric constant
123conftest.c:172: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_Alignas'
124conftest.c:177: error: expected expression before 'int'
125conftest.c:177: error: enumerator value for 'int_alignment' is not an integer constant
126conftest.c:178: error: expected expression before 'int'
127conftest.c:178: error: enumerator value for 'int_array_alignment' is not an integer constant
128conftest.c:179: error: expected expression before 'char'
129conftest.c:180: error: enumerator value for 'char_alignment' is not an integer constant
130conftest.c:180: warning: empty declaration
131conftest.c:181: error: expected declaration specifiers before '_Static_assert'
132conftest.c:184: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'does_not_return'
133conftest.c:190: error: expected specifier-qualifier-list before '_Static_assert'
134conftest.c:193: warning: empty declaration
135conftest.c:197: error: parameter 'utf8_literal' is initialized
136conftest.c:197: error: 'syntax' undeclared (first use in this function)
137conftest.c:197: error: (Each undeclared identifier is reported only once
138conftest.c:197: error: for each function it appears in.)
139conftest.c:197: error: expected ',' or ';' before 'error'
140conftest.c:200: error: storage class specified for parameter 'long_ptr'
141conftest.c:201: error: storage class specified for parameter 'long_ptr'
142conftest.c:201: error: redefinition of parameter 'long_ptr'
143conftest.c:200: error: previous definition of 'long_ptr' was here
144conftest.c:202: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'long_ptr'
145conftest.c:217: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
146conftest.c:269: error: old-style parameter declarations in prototyped function definition
147conftest.c:169: error: parameter name omitted
148conftest.c:269: error: expected '{' at end of input
149configure:3506: $? = 1
150configure: failed program was:
151| /* confdefs.h */
152| #define PACKAGE_NAME ""
153| #define PACKAGE_TARNAME ""
154| #define PACKAGE_VERSION ""
155| #define PACKAGE_STRING ""
156| #define PACKAGE_BUGREPORT ""
157| #define PACKAGE_URL ""
158| /* end confdefs.h.  */
159|
160| /* Does the compiler advertise C89 conformance?
161|    Do not test the value of __STDC__, because some compilers set it to 0
162|    while being otherwise adequately conformant. */
163| #if !defined __STDC__
164| # error "Compiler does not advertise C89 conformance"
165| #endif
166|
167| #include <stddef.h>
168| #include <stdarg.h>
169| struct stat;
170| /* Most of the following tests are stolen from RCS 5.7 src/conf.sh.  */
171| struct buf { int x; };
172| struct buf * (*rcsopen) (struct buf *, struct stat *, int);
173| static char *e (p, i)
174|      char **p;
175|      int i;
176| {
177|   return p[i];
178| }
179| static char *f (char * (*g) (char **, int), char **p, ...)
180| {
181|   char *s;
182|   va_list v;
183|   va_start (v,p);
184|   s = g (p, va_arg (v,int));
185|   va_end (v);
186|   return s;
187| }
188|
189| /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
190|    function prototypes and stuff, but not \xHH hex character constants.
191|    These do not provoke an error unfortunately, instead are silently treated
192|    as an "x".  The following induces an error, until -std is added to get
193|    proper ANSI mode.  Curiously \x00 != x always comes out true, for an
194|    array size at least.  It is necessary to write \x00 == 0 to get something
195|    that is true only with -std.  */
196| int osf4_cc_array ['\x00' == 0 ? 1 : -1];
197|
198| /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
199|    inside strings and character constants.  */
200| #define FOO(x) 'x'
201| int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
202|
203| int test (int i, double x);
204| struct s1 {int (*f) (int a);};
205| struct s2 {int (*f) (double a);};
206| int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
207|                int, int);
208|
209| // Does the compiler advertise C99 conformance?
210| #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
211| # error "Compiler does not advertise C99 conformance"
212| #endif
213|
214| #include <stdbool.h>
215| extern int puts (const char *);
216| extern int printf (const char *, ...);
217| extern int dprintf (int, const char *, ...);
218| extern void *malloc (size_t);
219|
220| // Check varargs macros.  These examples are taken from C99 6.10.3.5.
221| // dprintf is used instead of fprintf to avoid needing to declare
222| // FILE and stderr.
223| #define debug(...) dprintf (2, __VA_ARGS__)
224| #define showlist(...) puts (#__VA_ARGS__)
225| #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
226| static void
227| test_varargs_macros (void)
228| {
229|   int x = 1234;
230|   int y = 5678;
231|   debug ("Flag");
232|   debug ("X = %d\n", x);
233|   showlist (The first, second, and third items.);
234|   report (x>y, "x is %d but y is %d", x, y);
235| }
236|
237| // Check long long types.
238| #define BIG64 18446744073709551615ull
239| #define BIG32 4294967295ul
240| #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
241| #if !BIG_OK
242|   #error "your preprocessor is broken"
243| #endif
244| #if BIG_OK
245| #else
246|   #error "your preprocessor is broken"
247| #endif
248| static long long int bignum = -9223372036854775807LL;
249| static unsigned long long int ubignum = BIG64;
250|
251| struct incomplete_array
252| {
253|   int datasize;
254|   double data[];
255| };
256|
257| struct named_init {
258|   int number;
259|   const wchar_t *name;
260|   double average;
261| };
262|
263| typedef const char *ccp;
264|
265| static inline int
266| test_restrict (ccp restrict text)
267| {
268|   // See if C++-style comments work.
269|   // Iterate through items via the restricted pointer.
270|   // Also check for declarations in for loops.
271|   for (unsigned int i = 0; *(text+i) != '\0'; ++i)
272|     continue;
273|   return 0;
274| }
275|
276| // Check varargs and va_copy.
277| static bool
278| test_varargs (const char *format, ...)
279| {
280|   va_list args;
281|   va_start (args, format);
282|   va_list args_copy;
283|   va_copy (args_copy, args);
284|
285|   const char *str = "";
286|   int number = 0;
287|   float fnumber = 0;
288|
289|   while (*format)
290|     {
291|       switch (*format++)
292|       {
293|       case 's': // string
294|         str = va_arg (args_copy, const char *);
295|         break;
296|       case 'd': // int
297|         number = va_arg (args_copy, int);
298|         break;
299|       case 'f': // float
300|         fnumber = va_arg (args_copy, double);
301|         break;
302|       default:
303|         break;
304|       }
305|     }
306|   va_end (args_copy);
307|   va_end (args);
308|
309|   return *str && number && fnumber;
310| }
311|
312|
313| // Does the compiler advertise C11 conformance?
314| #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
315| # error "Compiler does not advertise C11 conformance"
316| #endif
317|
318| // Check _Alignas.
319| char _Alignas (double) aligned_as_double;
320| char _Alignas (0) no_special_alignment;
321| extern char aligned_as_int;
322| char _Alignas (0) _Alignas (int) aligned_as_int;
323|
324| // Check _Alignof.
325| enum
326| {
327|   int_alignment = _Alignof (int),
328|   int_array_alignment = _Alignof (int[100]),
329|   char_alignment = _Alignof (char)
330| };
331| _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
332|
333| // Check _Noreturn.
334| int _Noreturn does_not_return (void) { for (;;) continue; }
335|
336| // Check _Static_assert.
337| struct test_static_assert
338| {
339|   int x;
340|   _Static_assert (sizeof (int) <= sizeof (long int),
341|                   "_Static_assert does not work in struct");
342|   long int y;
343| };
344|
345| // Check UTF-8 literals.
346| #define u8 syntax error!
347| char const utf8_literal[] = u8"happens to be ASCII" "another string";
348|
349| // Check duplicate typedefs.
350| typedef long *long_ptr;
351| typedef long int *long_ptr;
352| typedef long_ptr long_ptr;
353|
354| // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
355| struct anonymous
356| {
357|   union {
358|     struct { int i; int j; };
359|     struct { int k; long int l; } w;
360|   };
361|   int m;
362| } v1;
363|
364|
365| int
366| main (int argc, char **argv)
367| {
368|   int ok = 0;
369|   
370| ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
371|
372|   
373|   // Check bool.
374|   _Bool success = false;
375|   success |= (argc != 0);
376|
377|   // Check restrict.
378|   if (test_restrict ("String literal") == 0)
379|     success = true;
380|   char *restrict newvar = "Another string";
381|
382|   // Check varargs.
383|   success &= test_varargs ("s, d' f .", "string", 65, 34.234);
384|   test_varargs_macros ();
385|
386|   // Check flexible array members.
387|   struct incomplete_array *ia =
388|     malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
389|   ia->datasize = 10;
390|   for (int i = 0; i < ia->datasize; ++i)
391|     ia->data[i] = i * 1.234;
392|
393|   // Check named initializers.
394|   struct named_init ni = {
395|     .number = 34,
396|     .name = L"Test wide string",
397|     .average = 543.34343,
398|   };
399|
400|   ni.number = 58;
401|
402|   int dynamic_array[ni.number];
403|   dynamic_array[0] = argv[0][0];
404|   dynamic_array[ni.number - 1] = 543;
405|
406|   // work around unused variable warnings
407|   ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
408|        || dynamic_array[ni.number - 1] != 543);
409|
410|   
411|   _Static_assert ((offsetof (struct anonymous, i)
412|                  == offsetof (struct anonymous, w.k)),
413|                 "Anonymous union alignment botch");
414|   v1.i = 2;
415|   v1.w.k = 5;
416|   ok |= v1.i != 5;
417|
418|   return ok;
419| }
420|
421configure:3506: /opt/local/bin/gcc-apple-4.2 -std=gnu11 -c -pipe -Os -arch ppc -I/opt/local/include conftest.c >&5
422cc1: error: unrecognized command line option "-std=gnu11"
423configure:3506: $? = 1
424configure: failed program was:
425| /* confdefs.h */
426| #define PACKAGE_NAME ""
427| #define PACKAGE_TARNAME ""
428| #define PACKAGE_VERSION ""
429| #define PACKAGE_STRING ""
430| #define PACKAGE_BUGREPORT ""
431| #define PACKAGE_URL ""
432| /* end confdefs.h.  */
433|
434| /* Does the compiler advertise C89 conformance?
435|    Do not test the value of __STDC__, because some compilers set it to 0
436|    while being otherwise adequately conformant. */
437| #if !defined __STDC__
438| # error "Compiler does not advertise C89 conformance"
439| #endif
440|
441| #include <stddef.h>
442| #include <stdarg.h>
443| struct stat;
444| /* Most of the following tests are stolen from RCS 5.7 src/conf.sh.  */
445| struct buf { int x; };
446| struct buf * (*rcsopen) (struct buf *, struct stat *, int);
447| static char *e (p, i)
448|      char **p;
449|      int i;
450| {
451|   return p[i];
452| }
453| static char *f (char * (*g) (char **, int), char **p, ...)
454| {
455|   char *s;
456|   va_list v;
457|   va_start (v,p);
458|   s = g (p, va_arg (v,int));
459|   va_end (v);
460|   return s;
461| }
462|
463| /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
464|    function prototypes and stuff, but not \xHH hex character constants.
465|    These do not provoke an error unfortunately, instead are silently treated
466|    as an "x".  The following induces an error, until -std is added to get
467|    proper ANSI mode.  Curiously \x00 != x always comes out true, for an
468|    array size at least.  It is necessary to write \x00 == 0 to get something
469|    that is true only with -std.  */
470| int osf4_cc_array ['\x00' == 0 ? 1 : -1];
471|
472| /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
473|    inside strings and character constants.  */
474| #define FOO(x) 'x'
475| int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
476|
477| int test (int i, double x);
478| struct s1 {int (*f) (int a);};
479| struct s2 {int (*f) (double a);};
480| int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
481|                int, int);
482|
483| // Does the compiler advertise C99 conformance?
484| #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
485| # error "Compiler does not advertise C99 conformance"
486| #endif
487|
488| #include <stdbool.h>
489| extern int puts (const char *);
490| extern int printf (const char *, ...);
491| extern int dprintf (int, const char *, ...);
492| extern void *malloc (size_t);
493|
494| // Check varargs macros.  These examples are taken from C99 6.10.3.5.
495| // dprintf is used instead of fprintf to avoid needing to declare
496| // FILE and stderr.
497| #define debug(...) dprintf (2, __VA_ARGS__)
498| #define showlist(...) puts (#__VA_ARGS__)
499| #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
500| static void
501| test_varargs_macros (void)
502| {
503|   int x = 1234;
504|   int y = 5678;
505|   debug ("Flag");
506|   debug ("X = %d\n", x);
507|   showlist (The first, second, and third items.);
508|   report (x>y, "x is %d but y is %d", x, y);
509| }
510|
511| // Check long long types.
512| #define BIG64 18446744073709551615ull
513| #define BIG32 4294967295ul
514| #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
515| #if !BIG_OK
516|   #error "your preprocessor is broken"
517| #endif
518| #if BIG_OK
519| #else
520|   #error "your preprocessor is broken"
521| #endif
522| static long long int bignum = -9223372036854775807LL;
523| static unsigned long long int ubignum = BIG64;
524|
525| struct incomplete_array
526| {
527|   int datasize;
528|   double data[];
529| };
530|
531| struct named_init {
532|   int number;
533|   const wchar_t *name;
534|   double average;
535| };
536|
537| typedef const char *ccp;
538|
539| static inline int
540| test_restrict (ccp restrict text)
541| {
542|   // See if C++-style comments work.
543|   // Iterate through items via the restricted pointer.
544|   // Also check for declarations in for loops.
545|   for (unsigned int i = 0; *(text+i) != '\0'; ++i)
546|     continue;
547|   return 0;
548| }
549|
550| // Check varargs and va_copy.
551| static bool
552| test_varargs (const char *format, ...)
553| {
554|   va_list args;
555|   va_start (args, format);
556|   va_list args_copy;
557|   va_copy (args_copy, args);
558|
559|   const char *str = "";
560|   int number = 0;
561|   float fnumber = 0;
562|
563|   while (*format)
564|     {
565|       switch (*format++)
566|       {
567|       case 's': // string
568|         str = va_arg (args_copy, const char *);
569|         break;
570|       case 'd': // int
571|         number = va_arg (args_copy, int);
572|         break;
573|       case 'f': // float
574|         fnumber = va_arg (args_copy, double);
575|         break;
576|       default:
577|         break;
578|       }
579|     }
580|   va_end (args_copy);
581|   va_end (args);
582|
583|   return *str && number && fnumber;
584| }
585|
586|
587| // Does the compiler advertise C11 conformance?
588| #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
589| # error "Compiler does not advertise C11 conformance"
590| #endif
591|
592| // Check _Alignas.
593| char _Alignas (double) aligned_as_double;
594| char _Alignas (0) no_special_alignment;
595| extern char aligned_as_int;
596| char _Alignas (0) _Alignas (int) aligned_as_int;
597|
598| // Check _Alignof.
599| enum
600| {
601|   int_alignment = _Alignof (int),
602|   int_array_alignment = _Alignof (int[100]),
603|   char_alignment = _Alignof (char)
604| };
605| _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
606|
607| // Check _Noreturn.
608| int _Noreturn does_not_return (void) { for (;;) continue; }
609|
610| // Check _Static_assert.
611| struct test_static_assert
612| {
613|   int x;
614|   _Static_assert (sizeof (int) <= sizeof (long int),
615|                   "_Static_assert does not work in struct");
616|   long int y;
617| };
618|
619| // Check UTF-8 literals.
620| #define u8 syntax error!
621| char const utf8_literal[] = u8"happens to be ASCII" "another string";
622|
623| // Check duplicate typedefs.
624| typedef long *long_ptr;
625| typedef long int *long_ptr;
626| typedef long_ptr long_ptr;
627|
628| // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
629| struct anonymous
630| {
631|   union {
632|     struct { int i; int j; };
633|     struct { int k; long int l; } w;
634|   };
635|   int m;
636| } v1;
637|
638|
639| int
640| main (int argc, char **argv)
641| {
642|   int ok = 0;
643|   
644| ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
645|
646|   
647|   // Check bool.
648|   _Bool success = false;
649|   success |= (argc != 0);
650|
651|   // Check restrict.
652|   if (test_restrict ("String literal") == 0)
653|     success = true;
654|   char *restrict newvar = "Another string";
655|
656|   // Check varargs.
657|   success &= test_varargs ("s, d' f .", "string", 65, 34.234);
658|   test_varargs_macros ();
659|
660|   // Check flexible array members.
661|   struct incomplete_array *ia =
662|     malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
663|   ia->datasize = 10;
664|   for (int i = 0; i < ia->datasize; ++i)
665|     ia->data[i] = i * 1.234;
666|
667|   // Check named initializers.
668|   struct named_init ni = {
669|     .number = 34,
670|     .name = L"Test wide string",
671|     .average = 543.34343,
672|   };
673|
674|   ni.number = 58;
675|
676|   int dynamic_array[ni.number];
677|   dynamic_array[0] = argv[0][0];
678|   dynamic_array[ni.number - 1] = 543;
679|
680|   // work around unused variable warnings
681|   ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
682|        || dynamic_array[ni.number - 1] != 543);
683|
684|   
685|   _Static_assert ((offsetof (struct anonymous, i)
686|                  == offsetof (struct anonymous, w.k)),
687|                 "Anonymous union alignment botch");
688|   v1.i = 2;
689|   v1.w.k = 5;
690|   ok |= v1.i != 5;
691|
692|   return ok;
693| }
694|
695configure:3519: result: unsupported
696configure:3537: checking for /opt/local/bin/gcc-apple-4.2 option to enable C99 features
697configure:3552: /opt/local/bin/gcc-apple-4.2  -c -pipe -Os -arch ppc -I/opt/local/include conftest.c >&5
698conftest.c:61:3: error: #error "Compiler does not advertise C99 conformance"
699conftest.c:116: error: expected ';', ',' or ')' before 'text'
700conftest.c: In function 'main':
701conftest.c:178: error: nested functions are disabled, use -fnested-functions to re-enable
702conftest.c:178: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'newvar'
703conftest.c:178: error: 'newvar' undeclared (first use in this function)
704conftest.c:178: error: (Each undeclared identifier is reported only once
705conftest.c:178: error: for each function it appears in.)
706conftest.c:188: error: 'for' loop initial declaration used outside C99 mode
707configure:3552: $? = 1
708configure: failed program was:
709| /* confdefs.h */
710| #define PACKAGE_NAME ""
711| #define PACKAGE_TARNAME ""
712| #define PACKAGE_VERSION ""
713| #define PACKAGE_STRING ""
714| #define PACKAGE_BUGREPORT ""
715| #define PACKAGE_URL ""
716| /* end confdefs.h.  */
717|
718| /* Does the compiler advertise C89 conformance?
719|    Do not test the value of __STDC__, because some compilers set it to 0
720|    while being otherwise adequately conformant. */
721| #if !defined __STDC__
722| # error "Compiler does not advertise C89 conformance"
723| #endif
724|
725| #include <stddef.h>
726| #include <stdarg.h>
727| struct stat;
728| /* Most of the following tests are stolen from RCS 5.7 src/conf.sh.  */
729| struct buf { int x; };
730| struct buf * (*rcsopen) (struct buf *, struct stat *, int);
731| static char *e (p, i)
732|      char **p;
733|      int i;
734| {
735|   return p[i];
736| }
737| static char *f (char * (*g) (char **, int), char **p, ...)
738| {
739|   char *s;
740|   va_list v;
741|   va_start (v,p);
742|   s = g (p, va_arg (v,int));
743|   va_end (v);
744|   return s;
745| }
746|
747| /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
748|    function prototypes and stuff, but not \xHH hex character constants.
749|    These do not provoke an error unfortunately, instead are silently treated
750|    as an "x".  The following induces an error, until -std is added to get
751|    proper ANSI mode.  Curiously \x00 != x always comes out true, for an
752|    array size at least.  It is necessary to write \x00 == 0 to get something
753|    that is true only with -std.  */
754| int osf4_cc_array ['\x00' == 0 ? 1 : -1];
755|
756| /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
757|    inside strings and character constants.  */
758| #define FOO(x) 'x'
759| int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
760|
761| int test (int i, double x);
762| struct s1 {int (*f) (int a);};
763| struct s2 {int (*f) (double a);};
764| int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
765|                int, int);
766|
767| // Does the compiler advertise C99 conformance?
768| #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
769| # error "Compiler does not advertise C99 conformance"
770| #endif
771|
772| #include <stdbool.h>
773| extern int puts (const char *);
774| extern int printf (const char *, ...);
775| extern int dprintf (int, const char *, ...);
776| extern void *malloc (size_t);
777|
778| // Check varargs macros.  These examples are taken from C99 6.10.3.5.
779| // dprintf is used instead of fprintf to avoid needing to declare
780| // FILE and stderr.
781| #define debug(...) dprintf (2, __VA_ARGS__)
782| #define showlist(...) puts (#__VA_ARGS__)
783| #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
784| static void
785| test_varargs_macros (void)
786| {
787|   int x = 1234;
788|   int y = 5678;
789|   debug ("Flag");
790|   debug ("X = %d\n", x);
791|   showlist (The first, second, and third items.);
792|   report (x>y, "x is %d but y is %d", x, y);
793| }
794|
795| // Check long long types.
796| #define BIG64 18446744073709551615ull
797| #define BIG32 4294967295ul
798| #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
799| #if !BIG_OK
800|   #error "your preprocessor is broken"
801| #endif
802| #if BIG_OK
803| #else
804|   #error "your preprocessor is broken"
805| #endif
806| static long long int bignum = -9223372036854775807LL;
807| static unsigned long long int ubignum = BIG64;
808|
809| struct incomplete_array
810| {
811|   int datasize;
812|   double data[];
813| };
814|
815| struct named_init {
816|   int number;
817|   const wchar_t *name;
818|   double average;
819| };
820|
821| typedef const char *ccp;
822|
823| static inline int
824| test_restrict (ccp restrict text)
825| {
826|   // See if C++-style comments work.
827|   // Iterate through items via the restricted pointer.
828|   // Also check for declarations in for loops.
829|   for (unsigned int i = 0; *(text+i) != '\0'; ++i)
830|     continue;
831|   return 0;
832| }
833|
834| // Check varargs and va_copy.
835| static bool
836| test_varargs (const char *format, ...)
837| {
838|   va_list args;
839|   va_start (args, format);
840|   va_list args_copy;
841|   va_copy (args_copy, args);
842|
843|   const char *str = "";
844|   int number = 0;
845|   float fnumber = 0;
846|
847|   while (*format)
848|     {
849|       switch (*format++)
850|       {
851|       case 's': // string
852|         str = va_arg (args_copy, const char *);
853|         break;
854|       case 'd': // int
855|         number = va_arg (args_copy, int);
856|         break;
857|       case 'f': // float
858|         fnumber = va_arg (args_copy, double);
859|         break;
860|       default:
861|         break;
862|       }
863|     }
864|   va_end (args_copy);
865|   va_end (args);
866|
867|   return *str && number && fnumber;
868| }
869|
870|
871| int
872| main (int argc, char **argv)
873| {
874|   int ok = 0;
875|   
876| ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
877|
878|   
879|   // Check bool.
880|   _Bool success = false;
881|   success |= (argc != 0);
882|
883|   // Check restrict.
884|   if (test_restrict ("String literal") == 0)
885|     success = true;
886|   char *restrict newvar = "Another string";
887|
888|   // Check varargs.
889|   success &= test_varargs ("s, d' f .", "string", 65, 34.234);
890|   test_varargs_macros ();
891|
892|   // Check flexible array members.
893|   struct incomplete_array *ia =
894|     malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
895|   ia->datasize = 10;
896|   for (int i = 0; i < ia->datasize; ++i)
897|     ia->data[i] = i * 1.234;
898|
899|   // Check named initializers.
900|   struct named_init ni = {
901|     .number = 34,
902|     .name = L"Test wide string",
903|     .average = 543.34343,
904|   };
905|
906|   ni.number = 58;
907|
908|   int dynamic_array[ni.number];
909|   dynamic_array[0] = argv[0][0];
910|   dynamic_array[ni.number - 1] = 543;
911|
912|   // work around unused variable warnings
913|   ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
914|        || dynamic_array[ni.number - 1] != 543);
915|
916|   return ok;
917| }
918|
919configure:3552: /opt/local/bin/gcc-apple-4.2 -std=gnu99 -c -pipe -Os -arch ppc -I/opt/local/include conftest.c >&5
920configure:3552: $? = 0
921configure:3573: result: -std=gnu99
922configure:3640: checking how to run the C preprocessor
923configure:3666: /opt/local/bin/gcc-apple-4.2 -std=gnu99 -E -I/opt/local/include conftest.c
924configure:3666: $? = 0
925configure:3681: /opt/local/bin/gcc-apple-4.2 -std=gnu99 -E -I/opt/local/include conftest.c
926conftest.c:9:28: error: ac_nonexistent.h: No such file or directory
927configure:3681: $? = 1
928configure: failed program was:
929| /* confdefs.h */
930| #define PACKAGE_NAME ""
931| #define PACKAGE_TARNAME ""
932| #define PACKAGE_VERSION ""
933| #define PACKAGE_STRING ""
934| #define PACKAGE_BUGREPORT ""
935| #define PACKAGE_URL ""
936| /* end confdefs.h.  */
937| #include <ac_nonexistent.h>
938configure:3708: result: /opt/local/bin/gcc-apple-4.2 -std=gnu99 -E
939configure:3722: /opt/local/bin/gcc-apple-4.2 -std=gnu99 -E -I/opt/local/include conftest.c
940configure:3722: $? = 0
941configure:3737: /opt/local/bin/gcc-apple-4.2 -std=gnu99 -E -I/opt/local/include conftest.c
942conftest.c:9:28: error: ac_nonexistent.h: No such file or directory
943configure:3737: $? = 1
944configure: failed program was:
945| /* confdefs.h */
946| #define PACKAGE_NAME ""
947| #define PACKAGE_TARNAME ""
948| #define PACKAGE_VERSION ""
949| #define PACKAGE_STRING ""
950| #define PACKAGE_BUGREPORT ""
951| #define PACKAGE_URL ""
952| /* end confdefs.h.  */
953| #include <ac_nonexistent.h>
954configure:3770: checking for icc
955configure:3780: result: no
956configure:3794: checking for suncc
957configure:3804: result: no
958configure:3819: checking whether /opt/local/bin/gcc-apple-4.2 -std=gnu99 and cc understand -c and -o together
959configure:3851: /opt/local/bin/gcc-apple-4.2 -std=gnu99 -c conftest.c -o conftest2.o >&5
960configure:3855: $? = 0
961configure:3861: /opt/local/bin/gcc-apple-4.2 -std=gnu99 -c conftest.c -o conftest2.o >&5
962configure:3865: $? = 0
963configure:3876: cc -c conftest.c >&5
964configure:3880: $? = 0
965configure:3888: cc -c conftest.c -o conftest2.o >&5
966configure:3892: $? = 0
967configure:3898: cc -c conftest.c -o conftest2.o >&5
968configure:3902: $? = 0
969configure:3920: result: yes
970configure:3934: checking for system library directory
971configure:3950: result: lib
972configure:3957: checking if compiler supports -R
973configure:3977: /opt/local/bin/gcc-apple-4.2 -std=gnu99 -o conftest -pipe -Os -arch ppc -I/opt/local/include -L/opt/local/lib -Wl,-headerpad_max_install_names -arch ppc conftest.c -R /usr/lib  >&5
974ld: in /usr/lib, can't map file, errno=22
975collect2: ld returned 1 exit status
976configure:3977: $? = 1
977configure: failed program was:
978| /* confdefs.h */
979| #define PACKAGE_NAME ""
980| #define PACKAGE_TARNAME ""
981| #define PACKAGE_VERSION ""
982| #define PACKAGE_STRING ""
983| #define PACKAGE_BUGREPORT ""
984| #define PACKAGE_URL ""
985| /* end confdefs.h.  */
986|
987| int
988| main (void)
989| {
990|
991|   ;
992|   return 0;
993| }
994configure:3988: result: no
995configure:3993: checking if compiler supports -Wl,-rpath,
996configure:4013: /opt/local/bin/gcc-apple-4.2 -std=gnu99 -o conftest -pipe -Os -arch ppc -I/opt/local/include -L/opt/local/lib -Wl,-headerpad_max_install_names -arch ppc conftest.c -Wl,-rpath,/usr/lib  >&5
997ld: -rpath can only be used when targeting Mac OS X 10.5 or later
998collect2: ld returned 1 exit status
999configure:4013: $? = 1
1000configure: failed program was:
1001| /* confdefs.h */
1002| #define PACKAGE_NAME ""
1003| #define PACKAGE_TARNAME ""
1004| #define PACKAGE_VERSION ""
1005| #define PACKAGE_STRING ""
1006| #define PACKAGE_BUGREPORT ""
1007| #define PACKAGE_URL ""
1008| /* end confdefs.h.  */
1009|
1010| int
1011| main (void)
1012| {
1013|
1014|   ;
1015|   return 0;
1016| }
1017configure:4024: result: no
1018configure:4043: checking build system type
1019configure:4058: result: powerpc-apple-darwin8.11.0
1020configure:4078: checking host system type
1021configure:4092: result: powerpc-apple-darwin8.11.0
1022configure:4112: checking target system type
1023configure:4126: result: powerpc-apple-darwin8.11.0
1024configure:4230: checking for PHP prefix
1025configure:4232: result: /opt/local
1026configure:4234: checking for PHP includes
1027configure:4236: result: -I/opt/local/include/php56/php -I/opt/local/include/php56/php/main -I/opt/local/include/php56/php/TSRM -I/opt/local/include/php56/php/Zend -I/opt/local/include/php56/php/ext -I/opt/local/include/php56/php/ext/date/lib -I/opt/local/include
1028configure:4238: checking for PHP extension directory
1029configure:4240: result: /opt/local/lib/php56/extensions/no-debug-non-zts-20131226
1030configure:4242: checking for PHP installed headers prefix
1031configure:4244: result: /opt/local/include/php56/php
1032configure:4247: checking if debug is enabled
1033configure:4274: result: no
1034configure:4277: checking if zts is enabled
1035configure:4304: result: no
1036configure:4375: checking for re2c
1037configure:4396: found /opt/local/bin/re2c
1038configure:4407: result: re2c
1039configure:4416: checking for re2c version
1040configure:4431: result: 3.0 (ok)
1041configure:4450: checking for gawk
1042configure:4486: result: no
1043configure:4450: checking for nawk
1044configure:4486: result: no
1045configure:4450: checking for awk
1046configure:4472: found /usr/bin/awk
1047configure:4483: result: awk
1048configure:4506: checking if awk is broken
1049configure:4513: result: no
1050configure:4538: checking for IMAP support
1051configure:4579: result: yes, shared
1052configure:4588: checking for IMAP Kerberos support
1053configure:4604: result: /opt/local
1054configure:4613: checking for IMAP SSL support
1055configure:4629: result: /opt/local
1056configure:5030: checking for utf8_mime2text signature
1057configure:5053: /opt/local/bin/gcc-apple-4.2 -std=gnu99 -c -I/opt/local/include/c-client -I/opt/local/include conftest.c >&5
1058conftest.c: In function 'main':
1059conftest.c:22: error: too few arguments to function 'utf8_mime2text'
1060configure:5053: $? = 1
1061configure: failed program was:
1062| /* confdefs.h */
1063| #define PACKAGE_NAME ""
1064| #define PACKAGE_TARNAME ""
1065| #define PACKAGE_VERSION ""
1066| #define PACKAGE_STRING ""
1067| #define PACKAGE_BUGREPORT ""
1068| #define PACKAGE_URL ""
1069| #define COMPILE_DL_IMAP 1
1070| #define HAVE_IMAP 1
1071| #define HAVE_IMAP2000 1
1072| #define HAVE_IMAP2004 1
1073| /* end confdefs.h.  */
1074|
1075| #include <stdio.h>
1076| #include <c-client.h>
1077|
1078| int
1079| main (void)
1080| {
1081|
1082|         SIZEDTEXT *src, *dst;
1083|         utf8_mime2text(src, dst);
1084|
1085|   ;
1086|   return 0;
1087| }
1088configure:5066: result: new
1089configure:5077: checking for U8T_DECOMPOSE
1090configure:5098: /opt/local/bin/gcc-apple-4.2 -std=gnu99 -c -I/opt/local/include/c-client -I/opt/local/include conftest.c >&5
1091configure:5098: $? = 0
1092configure:5111: result:
1093configure:5241: checking for pam_start in -lpam
1094configure:5264: /opt/local/bin/gcc-apple-4.2 -std=gnu99 -o conftest -pipe -Os -arch ppc -I/opt/local/include -L/opt/local/lib -Wl,-headerpad_max_install_names -arch ppc conftest.c -lpam   >&5
1095configure:5264: $? = 0
1096configure:5274: result: yes
1097configure:5415: checking for crypt in -lcrypt
1098configure:5438: /opt/local/bin/gcc-apple-4.2 -std=gnu99 -o conftest -pipe -Os -arch ppc -I/opt/local/include -L/opt/local/lib -Wl,-headerpad_max_install_names -arch ppc conftest.c -lcrypt   >&5
1099ld: library not found for -lcrypt
1100collect2: ld returned 1 exit status
1101configure:5438: $? = 1
1102configure: failed program was:
1103| /* confdefs.h */
1104| #define PACKAGE_NAME ""
1105| #define PACKAGE_TARNAME ""
1106| #define PACKAGE_VERSION ""
1107| #define PACKAGE_STRING ""
1108| #define PACKAGE_BUGREPORT ""
1109| #define PACKAGE_URL ""
1110| #define COMPILE_DL_IMAP 1
1111| #define HAVE_IMAP 1
1112| #define HAVE_IMAP2000 1
1113| #define HAVE_IMAP2004 1
1114| #define HAVE_NEW_MIME2TEXT 1
1115| #define HAVE_LIBPAM 1
1116| /* end confdefs.h.  */
1117|
1118| /* Override any GCC internal prototype to avoid an error.
1119|    Use char because int might match the return type of a GCC
1120|    builtin and then its argument prototype would still apply.  */
1121| char crypt ();
1122| int
1123| main (void)
1124| {
1125| return crypt ();
1126|   ;
1127|   return 0;
1128| }
1129configure:5448: result: no
1130configure:5638: checking for krb5-config
1131configure:5662: found /opt/local/bin/krb5-config
1132configure:5675: result: /opt/local/bin/krb5-config
1133configure:6058: checking for pkg-config
1134configure:6081: found /opt/local/bin/pkg-config
1135configure:6094: result: /opt/local/bin/pkg-config
1136configure:6275: checking for OpenSSL version
1137configure:6290: result: >= 0.9.6
1138configure:6431: checking for CRYPTO_free in -lcrypto
1139configure:6454: /opt/local/bin/gcc-apple-4.2 -std=gnu99 -o conftest -pipe -Os -arch ppc -I/opt/local/include -L/opt/local/lib -L/opt/local/lib -L/opt/local/lib -Wl,-headerpad_max_install_names -arch ppc conftest.c -lcrypto   >&5
1140configure:6454: $? = 0
1141configure:6464: result: yes
1142configure:6608: checking for SSL_CTX_set_ssl_version in -lssl
1143configure:6631: /opt/local/bin/gcc-apple-4.2 -std=gnu99 -o conftest -pipe -Os -arch ppc -I/opt/local/include -L/opt/local/lib -L/opt/local/lib -L/opt/local/lib -Wl,-headerpad_max_install_names -arch ppc conftest.c -lssl   -lcrypto >&5
1144configure:6631: $? = 0
1145configure:6641: result: yes
1146configure:6835: /opt/local/bin/gcc-apple-4.2 -std=gnu99 -o conftest -pipe -Os -arch ppc -I/opt/local/include -L/opt/local/lib -Wl,-headerpad_max_install_names -arch ppc conftest.c  -L/opt/local/lib -L/opt/local/lib -lcrypto -lssl -lcrypto -L/opt/local/lib -L/opt/local/lib -L/opt/local/lib -L/opt/local/lib -L/opt/local/lib -L/opt/local/lib -lc-client4 -lpam  -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err  >&5
1147Undefined symbols:
1148  "_SSL_state", referenced from:
1149      _ssl_start in libc-client4.a(osdep.o)
1150  "_ERR_load_crypto_strings", referenced from:
1151      _ssl_server_init in libc-client4.a(osdep.o)
1152  "_SSL_load_error_strings", referenced from:
1153      _ssl_server_init in libc-client4.a(osdep.o)
1154  "_SSLv23_client_method", referenced from:
1155      _ssl_start in libc-client4.a(osdep.o)
1156  "_sk_num", referenced from:
1157      _ssl_start in libc-client4.a(osdep.o)
1158  "_SSLv23_server_method", referenced from:
1159      _ssl_server_init in libc-client4.a(osdep.o)
1160  "_sk_value", referenced from:
1161      _ssl_start in libc-client4.a(osdep.o)
1162  "_SSL_get_peer_certificate", referenced from:
1163      _ssl_start in libc-client4.a(osdep.o)
1164  "_SSL_library_init", referenced from:
1165      _ssl_onceonlyinit in libc-client4.a(osdep.o)
1166  "_SSL_CTX_set_tmp_rsa_callback", referenced from:
1167      _ssl_server_init in libc-client4.a(osdep.o)
1168ld: symbol(s) not found
1169collect2: ld returned 1 exit status
1170configure:6835: $? = 1
1171configure: program exited with status 1
1172configure: failed program was:
1173| /* confdefs.h */
1174| #define PACKAGE_NAME ""
1175| #define PACKAGE_TARNAME ""
1176| #define PACKAGE_VERSION ""
1177| #define PACKAGE_STRING ""
1178| #define PACKAGE_BUGREPORT ""
1179| #define PACKAGE_URL ""
1180| #define COMPILE_DL_IMAP 1
1181| #define HAVE_IMAP 1
1182| #define HAVE_IMAP2000 1
1183| #define HAVE_IMAP2004 1
1184| #define HAVE_NEW_MIME2TEXT 1
1185| #define HAVE_LIBPAM 1
1186| #define HAVE_IMAP_KRB 1
1187| #define HAVE_IMAP_SSL 1
1188| /* end confdefs.h.  */
1189|
1190|
1191|
1192| #if defined(__GNUC__) && __GNUC__ >= 4
1193| # define PHP_IMAP_EXPORT __attribute__ ((visibility("default")))
1194| #else
1195| # define PHP_IMAP_EXPORT
1196| #endif
1197|
1198|     PHP_IMAP_EXPORT void mm_log(void){}
1199|     PHP_IMAP_EXPORT void mm_dlog(void){}
1200|     PHP_IMAP_EXPORT void mm_flags(void){}
1201|     PHP_IMAP_EXPORT void mm_fatal(void){}
1202|     PHP_IMAP_EXPORT void mm_critical(void){}
1203|     PHP_IMAP_EXPORT void mm_nocritical(void){}
1204|     PHP_IMAP_EXPORT void mm_notify(void){}
1205|     PHP_IMAP_EXPORT void mm_login(void){}
1206|     PHP_IMAP_EXPORT void mm_diskerror(void){}
1207|     PHP_IMAP_EXPORT void mm_status(void){}
1208|     PHP_IMAP_EXPORT void mm_lsub(void){}
1209|     PHP_IMAP_EXPORT void mm_list(void){}
1210|     PHP_IMAP_EXPORT void mm_exists(void){}
1211|     PHP_IMAP_EXPORT void mm_searched(void){}
1212|     PHP_IMAP_EXPORT void mm_expunged(void){}
1213|
1214|     char auth_gssapi_valid();
1215|     int main() {
1216|       auth_gssapi_valid();
1217|       return 0;
1218|     }
1219|
1220configure:6904: /opt/local/bin/gcc-apple-4.2 -std=gnu99 -o conftest -pipe -Os -arch ppc -I/opt/local/include -L/opt/local/lib -Wl,-headerpad_max_install_names -arch ppc conftest.c  -L/opt/local/lib -L/opt/local/lib -lcrypto -lssl -lcrypto -L/opt/local/lib -L/opt/local/lib -L/opt/local/lib -L/opt/local/lib -L/opt/local/lib -L/opt/local/lib -lc-client4 -lpam  -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err  >&5
1221conftest.c: In function 'utf8_to_mutf7_php':
1222conftest.c:19: warning: implicit declaration of function 'utf8_to_mutf7'
1223Undefined symbols:
1224  "_SSL_state", referenced from:
1225      _ssl_start in libc-client4.a(osdep.o)
1226  "_ERR_load_crypto_strings", referenced from:
1227      _ssl_server_init in libc-client4.a(osdep.o)
1228  "_SSL_load_error_strings", referenced from:
1229      _ssl_server_init in libc-client4.a(osdep.o)
1230  "_SSLv23_client_method", referenced from:
1231      _ssl_start in libc-client4.a(osdep.o)
1232  "_sk_num", referenced from:
1233      _ssl_start in libc-client4.a(osdep.o)
1234  "_SSLv23_server_method", referenced from:
1235      _ssl_server_init in libc-client4.a(osdep.o)
1236  "_sk_value", referenced from:
1237      _ssl_start in libc-client4.a(osdep.o)
1238  "_SSL_get_peer_certificate", referenced from:
1239      _ssl_start in libc-client4.a(osdep.o)
1240  "_SSL_library_init", referenced from:
1241      _ssl_onceonlyinit in libc-client4.a(osdep.o)
1242  "_SSL_CTX_set_tmp_rsa_callback", referenced from:
1243      _ssl_server_init in libc-client4.a(osdep.o)
1244ld: symbol(s) not found
1245collect2: ld returned 1 exit status
1246configure:6904: $? = 1
1247configure: program exited with status 1
1248configure: failed program was:
1249| /* confdefs.h */
1250| #define PACKAGE_NAME ""
1251| #define PACKAGE_TARNAME ""
1252| #define PACKAGE_VERSION ""
1253| #define PACKAGE_STRING ""
1254| #define PACKAGE_BUGREPORT ""
1255| #define PACKAGE_URL ""
1256| #define COMPILE_DL_IMAP 1
1257| #define HAVE_IMAP 1
1258| #define HAVE_IMAP2000 1
1259| #define HAVE_IMAP2004 1
1260| #define HAVE_NEW_MIME2TEXT 1
1261| #define HAVE_LIBPAM 1
1262| #define HAVE_IMAP_KRB 1
1263| #define HAVE_IMAP_SSL 1
1264| /* end confdefs.h.  */
1265|
1266|
1267|       char utf8_to_mutf7_php(){ return utf8_to_mutf7(""); }
1268|
1269|
1270| #if defined(__GNUC__) && __GNUC__ >= 4
1271| # define PHP_IMAP_EXPORT __attribute__ ((visibility("default")))
1272| #else
1273| # define PHP_IMAP_EXPORT
1274| #endif
1275|
1276|     PHP_IMAP_EXPORT void mm_log(void){}
1277|     PHP_IMAP_EXPORT void mm_dlog(void){}
1278|     PHP_IMAP_EXPORT void mm_flags(void){}
1279|     PHP_IMAP_EXPORT void mm_fatal(void){}
1280|     PHP_IMAP_EXPORT void mm_critical(void){}
1281|     PHP_IMAP_EXPORT void mm_nocritical(void){}
1282|     PHP_IMAP_EXPORT void mm_notify(void){}
1283|     PHP_IMAP_EXPORT void mm_login(void){}
1284|     PHP_IMAP_EXPORT void mm_diskerror(void){}
1285|     PHP_IMAP_EXPORT void mm_status(void){}
1286|     PHP_IMAP_EXPORT void mm_lsub(void){}
1287|     PHP_IMAP_EXPORT void mm_list(void){}
1288|     PHP_IMAP_EXPORT void mm_exists(void){}
1289|     PHP_IMAP_EXPORT void mm_searched(void){}
1290|     PHP_IMAP_EXPORT void mm_expunged(void){}
1291|
1292|     char utf8_to_mutf7_php();
1293|     int main() {
1294|       utf8_to_mutf7_php();
1295|       return 0;
1296|     }
1297|
1298configure:6927: checking whether rfc822_output_address_list function present
1299configure:6976: /opt/local/bin/gcc-apple-4.2 -std=gnu99 -o conftest -pipe -Os -arch ppc -I/opt/local/include -L/opt/local/lib -Wl,-headerpad_max_install_names -arch ppc conftest.c
1300       -L/opt/local/lib -L/opt/local/lib -lcrypto -lssl -lcrypto -L/opt/local/lib -L/opt/local/lib -L/opt/local/lib -L/opt/local/lib -L/opt/local/lib -L/opt/local/lib -lc-client4 -lpam  -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err
1301      >&5
1302Undefined symbols:
1303  "_SSL_state", referenced from:
1304      _ssl_start in libc-client4.a(osdep.o)
1305  "_ERR_load_crypto_strings", referenced from:
1306      _ssl_server_init in libc-client4.a(osdep.o)
1307  "_SSL_load_error_strings", referenced from:
1308      _ssl_server_init in libc-client4.a(osdep.o)
1309  "_SSLv23_client_method", referenced from:
1310      _ssl_start in libc-client4.a(osdep.o)
1311  "_sk_num", referenced from:
1312      _ssl_start in libc-client4.a(osdep.o)
1313  "_SSLv23_server_method", referenced from:
1314      _ssl_server_init in libc-client4.a(osdep.o)
1315  "_sk_value", referenced from:
1316      _ssl_start in libc-client4.a(osdep.o)
1317  "_SSL_get_peer_certificate", referenced from:
1318      _ssl_start in libc-client4.a(osdep.o)
1319  "_SSL_library_init", referenced from:
1320      _ssl_onceonlyinit in libc-client4.a(osdep.o)
1321  "_SSL_CTX_set_tmp_rsa_callback", referenced from:
1322      _ssl_server_init in libc-client4.a(osdep.o)
1323ld: symbol(s) not found
1324collect2: ld returned 1 exit status
1325configure:6976: $? = 1
1326configure: program exited with status 1
1327configure: failed program was:
1328| /* confdefs.h */
1329| #define PACKAGE_NAME ""
1330| #define PACKAGE_TARNAME ""
1331| #define PACKAGE_VERSION ""
1332| #define PACKAGE_STRING ""
1333| #define PACKAGE_BUGREPORT ""
1334| #define PACKAGE_URL ""
1335| #define COMPILE_DL_IMAP 1
1336| #define HAVE_IMAP 1
1337| #define HAVE_IMAP2000 1
1338| #define HAVE_IMAP2004 1
1339| #define HAVE_NEW_MIME2TEXT 1
1340| #define HAVE_LIBPAM 1
1341| #define HAVE_IMAP_KRB 1
1342| #define HAVE_IMAP_SSL 1
1343| /* end confdefs.h.  */
1344|
1345|
1346| #if defined(__GNUC__) && __GNUC__ >= 4
1347| # define PHP_IMAP_EXPORT __attribute__ ((visibility("default")))
1348| #else
1349| # define PHP_IMAP_EXPORT
1350| #endif
1351|
1352|       PHP_IMAP_EXPORT void mm_log(void){}
1353|       PHP_IMAP_EXPORT void mm_dlog(void){}
1354|       PHP_IMAP_EXPORT void mm_flags(void){}
1355|       PHP_IMAP_EXPORT void mm_fatal(void){}
1356|       PHP_IMAP_EXPORT void mm_critical(void){}
1357|       PHP_IMAP_EXPORT void mm_nocritical(void){}
1358|       PHP_IMAP_EXPORT void mm_notify(void){}
1359|       PHP_IMAP_EXPORT void mm_login(void){}
1360|       PHP_IMAP_EXPORT void mm_diskerror(void){}
1361|       PHP_IMAP_EXPORT void mm_status(void){}
1362|       PHP_IMAP_EXPORT void mm_lsub(void){}
1363|       PHP_IMAP_EXPORT void mm_list(void){}
1364|       PHP_IMAP_EXPORT void mm_exists(void){}
1365|       PHP_IMAP_EXPORT void mm_searched(void){}
1366|       PHP_IMAP_EXPORT void mm_expunged(void){}
1367|       void rfc822_output_address_list(void);
1368|       void (*f)(void);
1369|       char foobar () {f = rfc822_output_address_list;}
1370|
1371|     char foobar();
1372|     int main() {
1373|       foobar();
1374|       return 0;
1375|     }
1376|
1377configure:6992: result: no
1378configure:7003: checking whether build with IMAP works
1379configure:7049: /opt/local/bin/gcc-apple-4.2 -std=gnu99 -o conftest -pipe -Os -arch ppc -I/opt/local/include -L/opt/local/lib -Wl,-headerpad_max_install_names -arch ppc conftest.c  -L/opt/local/lib -L/opt/local/lib -lcrypto -lssl -lcrypto -L/opt/local/lib -L/opt/local/lib -L/opt/local/lib -L/opt/local/lib -L/opt/local/lib -L/opt/local/lib -lc-client4 -lpam  -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err  >&5
1380Undefined symbols:
1381  "_SSL_state", referenced from:
1382      _ssl_start in libc-client4.a(osdep.o)
1383  "_ERR_load_crypto_strings", referenced from:
1384      _ssl_server_init in libc-client4.a(osdep.o)
1385  "_SSL_load_error_strings", referenced from:
1386      _ssl_server_init in libc-client4.a(osdep.o)
1387  "_SSLv23_client_method", referenced from:
1388      _ssl_start in libc-client4.a(osdep.o)
1389  "_sk_num", referenced from:
1390      _ssl_start in libc-client4.a(osdep.o)
1391  "_SSLv23_server_method", referenced from:
1392      _ssl_server_init in libc-client4.a(osdep.o)
1393  "_sk_value", referenced from:
1394      _ssl_start in libc-client4.a(osdep.o)
1395  "_SSL_get_peer_certificate", referenced from:
1396      _ssl_start in libc-client4.a(osdep.o)
1397  "_SSL_library_init", referenced from:
1398      _ssl_onceonlyinit in libc-client4.a(osdep.o)
1399  "_SSL_CTX_set_tmp_rsa_callback", referenced from:
1400      _ssl_server_init in libc-client4.a(osdep.o)
1401ld: symbol(s) not found
1402collect2: ld returned 1 exit status
1403configure:7049: $? = 1
1404configure: program exited with status 1
1405configure: failed program was:
1406| /* confdefs.h */
1407| #define PACKAGE_NAME ""
1408| #define PACKAGE_TARNAME ""
1409| #define PACKAGE_VERSION ""
1410| #define PACKAGE_STRING ""
1411| #define PACKAGE_BUGREPORT ""
1412| #define PACKAGE_URL ""
1413| #define COMPILE_DL_IMAP 1
1414| #define HAVE_IMAP 1
1415| #define HAVE_IMAP2000 1
1416| #define HAVE_IMAP2004 1
1417| #define HAVE_NEW_MIME2TEXT 1
1418| #define HAVE_LIBPAM 1
1419| #define HAVE_IMAP_KRB 1
1420| #define HAVE_IMAP_SSL 1
1421| /* end confdefs.h.  */
1422|
1423|
1424|
1425| #if defined(__GNUC__) && __GNUC__ >= 4
1426| # define PHP_IMAP_EXPORT __attribute__ ((visibility("default")))
1427| #else
1428| # define PHP_IMAP_EXPORT
1429| #endif
1430|
1431|     PHP_IMAP_EXPORT void mm_log(void){}
1432|     PHP_IMAP_EXPORT void mm_dlog(void){}
1433|     PHP_IMAP_EXPORT void mm_flags(void){}
1434|     PHP_IMAP_EXPORT void mm_fatal(void){}
1435|     PHP_IMAP_EXPORT void mm_critical(void){}
1436|     PHP_IMAP_EXPORT void mm_nocritical(void){}
1437|     PHP_IMAP_EXPORT void mm_notify(void){}
1438|     PHP_IMAP_EXPORT void mm_login(void){}
1439|     PHP_IMAP_EXPORT void mm_diskerror(void){}
1440|     PHP_IMAP_EXPORT void mm_status(void){}
1441|     PHP_IMAP_EXPORT void mm_lsub(void){}
1442|     PHP_IMAP_EXPORT void mm_list(void){}
1443|     PHP_IMAP_EXPORT void mm_exists(void){}
1444|     PHP_IMAP_EXPORT void mm_searched(void){}
1445|     PHP_IMAP_EXPORT void mm_expunged(void){}
1446|
1447|     char mail_newbody();
1448|     int main() {
1449|       mail_newbody();
1450|       return 0;
1451|     }
1452|
1453configure:7062: result: no
1454configure:7064: error: build test failed. Please check the config.log for details.
1455
1456## ---------------- ##
1457## Cache variables. ##
1458## ---------------- ##
1459
1460ac_cv_build=powerpc-apple-darwin8.11.0
1461ac_cv_c_compiler_gnu=yes
1462ac_cv_env_CC_set=set
1463ac_cv_env_CC_value=/opt/local/bin/gcc-apple-4.2
1464ac_cv_env_CFLAGS_set=set
1465ac_cv_env_CFLAGS_value='-pipe -Os -arch ppc'
1466ac_cv_env_CPPFLAGS_set=set
1467ac_cv_env_CPPFLAGS_value=-I/opt/local/include
1468ac_cv_env_CPP_set=
1469ac_cv_env_CPP_value=
1470ac_cv_env_LDFLAGS_set=set
1471ac_cv_env_LDFLAGS_value='-L/opt/local/lib -Wl,-headerpad_max_install_names -arch ppc'
1472ac_cv_env_LIBS_set=
1473ac_cv_env_LIBS_value=
1474ac_cv_env_build_alias_set=
1475ac_cv_env_build_alias_value=
1476ac_cv_env_host_alias_set=
1477ac_cv_env_host_alias_value=
1478ac_cv_env_target_alias_set=
1479ac_cv_env_target_alias_value=
1480ac_cv_host=powerpc-apple-darwin8.11.0
1481ac_cv_lib_crypto_CRYPTO_free=yes
1482ac_cv_lib_pam_pam_start=yes
1483ac_cv_lib_ssl_SSL_CTX_set_ssl_version=yes
1484ac_cv_objext=o
1485ac_cv_path_EGREP='/usr/bin/grep -E'
1486ac_cv_path_GREP=/usr/bin/grep
1487ac_cv_path_KRB5_CONFIG=/opt/local/bin/krb5-config
1488ac_cv_path_PKG_CONFIG=/opt/local/bin/pkg-config
1489ac_cv_prog_AWK=awk
1490ac_cv_prog_CPP='/opt/local/bin/gcc-apple-4.2 -std=gnu99 -E'
1491ac_cv_prog_RE2C=re2c
1492ac_cv_prog_cc__opt_local_bin_gcc_apple_4_2_c_o=yes
1493ac_cv_prog_cc_c11=no
1494ac_cv_prog_cc_c99=-std=gnu99
1495ac_cv_prog_cc_g=yes
1496ac_cv_prog_cc_stdc=-std=gnu99
1497ac_cv_target=powerpc-apple-darwin8.11.0
1498ac_cv_u8t_decompose=yes
1499ac_cv_utf8_mime2text=new
1500lt_cv_path_SED=/opt/local/bin/gsed
1501php_cv_cc_dashr=no
1502php_cv_cc_rpath=no
1503php_cv_re2c_version='3.0 (ok)'
1504
1505## ----------------- ##
1506## Output variables. ##
1507## ----------------- ##
1508
1509AR=''
1510AWK='awk'
1511CC='/opt/local/bin/gcc-apple-4.2 -std=gnu99'
1512CFLAGS='-pipe -Os -arch ppc'
1513CONFIGURE_COMMAND=' '\''./configure'\''  '\''--prefix=/opt/local'\'' '\''--with-php-config=/opt/local/bin/php-config56'\'' '\''--with-imap=/opt/local'\'' '\''--with-imap-ssl=/opt/local'\'' '\''--with-kerberos=/opt/local'\'' '\''CC=/opt/local/bin/gcc-apple-4.2'\'' '\''CFLAGS=-pipe '\''-Os'\'' '\''-arch'\'' '\''LDFLAGS=-L/opt/local/lib '\''-Wl,-headerpad_max_install_names'\'' '\''-arch'\'' '\''CPPFLAGS=-I/opt/local/include'\'''
1514CONFIGURE_OPTIONS=' '\''--prefix=/opt/local'\'' '\''--with-php-config=/opt/local/bin/php-config56'\'' '\''--with-imap=/opt/local'\'' '\''--with-imap-ssl=/opt/local'\'' '\''--with-kerberos=/opt/local'\'' '\''CC=/opt/local/bin/gcc-apple-4.2'\'' '\''CFLAGS=-pipe '\''-Os'\'' '\''-arch'\'' '\''LDFLAGS=-L/opt/local/lib '\''-Wl,-headerpad_max_install_names'\'' '\''-arch'\'' '\''CPPFLAGS=-I/opt/local/include'\'''
1515CPP='/opt/local/bin/gcc-apple-4.2 -std=gnu99 -E'
1516CPPFLAGS='-I/opt/local/include'
1517DEFS=''
1518DSYMUTIL=''
1519ECHO='echo'
1520ECHO_C=''
1521ECHO_N='-n'
1522ECHO_T=''
1523EGREP='/usr/bin/grep -E'
1524EXEEXT=''
1525GREP='/usr/bin/grep'
1526KRB5_CONFIG='/opt/local/bin/krb5-config'
1527LDFLAGS='-L/opt/local/lib -Wl,-headerpad_max_install_names -arch ppc'
1528LIBOBJS=''
1529LIBS=''
1530LIBTOOL=''
1531LN_S=''
1532LTLIBOBJS=''
1533NMEDIT=''
1534OBJEXT='o'
1535OPENSSL_INCDIR_OPT='-I/opt/local/include'
1536PACKAGE_BUGREPORT=''
1537PACKAGE_NAME=''
1538PACKAGE_STRING=''
1539PACKAGE_TARNAME=''
1540PACKAGE_URL=''
1541PACKAGE_VERSION=''
1542PATH_SEPARATOR=':'
1543PKG_CONFIG='/opt/local/bin/pkg-config'
1544RANLIB=''
1545RE2C='re2c'
1546SED='/opt/local/bin/gsed'
1547SHELL='/bin/sh'
1548SHLIB_DL_SUFFIX_NAME='so'
1549SHLIB_SUFFIX_NAME='dylib'
1550STRIP=''
1551ac_ct_CC=''
1552bindir='${exec_prefix}/bin'
1553build='powerpc-apple-darwin8.11.0'
1554build_alias=''
1555build_cpu='powerpc'
1556build_os='darwin8.11.0'
1557build_vendor='apple'
1558datadir='${datarootdir}'
1559datarootdir='${prefix}/share'
1560docdir='${datarootdir}/doc/${PACKAGE}'
1561dvidir='${docdir}'
1562exec_prefix='NONE'
1563host='powerpc-apple-darwin8.11.0'
1564host_alias='powerpc-apple-darwin8.11.0'
1565host_cpu='powerpc'
1566host_os='darwin8.11.0'
1567host_vendor='apple'
1568htmldir='${docdir}'
1569includedir='${prefix}/include'
1570infodir='${datarootdir}/info'
1571libdir='${exec_prefix}/lib'
1572libexecdir='${exec_prefix}/libexec'
1573localedir='${datarootdir}/locale'
1574localstatedir='${prefix}/var'
1575mandir='${datarootdir}/man'
1576oldincludedir='/usr/include'
1577pdfdir='${docdir}'
1578prefix='/opt/local'
1579program_transform_name='s,x,x,'
1580psdir='${docdir}'
1581runstatedir='${localstatedir}/run'
1582sbindir='${exec_prefix}/sbin'
1583sharedstatedir='${prefix}/com'
1584sysconfdir='${prefix}/etc'
1585target='powerpc-apple-darwin8.11.0'
1586target_alias=''
1587target_cpu='powerpc'
1588target_os='darwin8.11.0'
1589target_vendor='apple'
1590
1591## ----------- ##
1592## confdefs.h. ##
1593## ----------- ##
1594
1595/* confdefs.h */
1596#define PACKAGE_NAME ""
1597#define PACKAGE_TARNAME ""
1598#define PACKAGE_VERSION ""
1599#define PACKAGE_STRING ""
1600#define PACKAGE_BUGREPORT ""
1601#define PACKAGE_URL ""
1602#define COMPILE_DL_IMAP 1
1603#define HAVE_IMAP 1
1604#define HAVE_IMAP2000 1
1605#define HAVE_IMAP2004 1
1606#define HAVE_NEW_MIME2TEXT 1
1607#define HAVE_LIBPAM 1
1608#define HAVE_IMAP_KRB 1
1609#define HAVE_IMAP_SSL 1
1610
1611configure: exit 1