source: rtems/contrib/crossrpms/patches/newlib-1.14.0-rtems4.8-20061027.diff @ 92b61a71

4.104.114.84.95
Last change on this file since 92b61a71 was 653db3f, checked in by Ralf Corsepius <ralf.corsepius@…>, on Oct 27, 2006 at 8:18:04 AM

New.

  • Property mode set to 100644
File size: 128.7 KB
RevLine 
[653db3f]1diff -uNr newlib-1.14.0.orig/newlib/configure.host newlib-1.14.0/newlib/configure.host
2--- newlib-1.14.0.orig/newlib/configure.host    2005-12-12 12:25:07.000000000 +0100
3+++ newlib-1.14.0/newlib/configure.host 2006-10-27 10:12:40.000000000 +0200
4@@ -96,6 +96,9 @@
5   avr*)
6        newlib_cflags="${newlib_cflags} -DPREFER_SIZE_OVER_SPEED -mcall-prologues"
7        ;;
8+  bfin)
9+       machine_dir=bfin
10+       ;;
11   cris | crisv32)
12        machine_dir=cris
13        ;;
14diff -uNr newlib-1.14.0.orig/newlib/libc/include/machine/ieeefp.h newlib-1.14.0/newlib/libc/include/machine/ieeefp.h
15--- newlib-1.14.0.orig/newlib/libc/include/machine/ieeefp.h     2005-12-13 23:57:31.000000000 +0100
16+++ newlib-1.14.0/newlib/libc/include/machine/ieeefp.h  2006-10-27 10:12:40.000000000 +0200
17@@ -278,6 +278,10 @@
18 #define __IEEE_LITTLE_ENDIAN
19 #endif
20 
21+#ifdef BFIN
22+#define __IEEE_LITTLE_ENDIAN
23+#endif
24+
25 #ifndef __IEEE_BIG_ENDIAN
26 #ifndef __IEEE_LITTLE_ENDIAN
27 #error Endianess not declared!!
28diff -uNr newlib-1.14.0.orig/newlib/libc/include/machine/setjmp.h newlib-1.14.0/newlib/libc/include/machine/setjmp.h
29--- newlib-1.14.0.orig/newlib/libc/include/machine/setjmp.h     2005-12-13 23:57:31.000000000 +0100
30+++ newlib-1.14.0/newlib/libc/include/machine/setjmp.h  2006-10-27 10:12:40.000000000 +0200
31@@ -23,7 +23,7 @@
32 
33 /* necv70 was 9 as well. */
34 
35-#ifdef __mc68000__
36+#if defined(__m68k__) || defined(__mc68000__)
37 /*
38  * onsstack,sigmask,sp,pc,psl,d2-d7,a2-a6,
39  * fp2-fp7     for 68881.
40diff -uNr newlib-1.14.0.orig/newlib/libc/include/pthread.h newlib-1.14.0/newlib/libc/include/pthread.h
41--- newlib-1.14.0.orig/newlib/libc/include/pthread.h    2002-10-08 15:03:07.000000000 +0200
42+++ newlib-1.14.0/newlib/libc/include/pthread.h 2006-10-27 10:11:34.000000000 +0200
43@@ -50,18 +50,18 @@
44 
45 /* Mutex Initialization Attributes, P1003.1c/Draft 10, p. 81 */
46 
47-int    _EXFUN(pthread_mutexattr_init, (pthread_mutexattr_t *attr));
48-int    _EXFUN(pthread_mutexattr_destroy, (pthread_mutexattr_t *attr));
49+int    _EXFUN(pthread_mutexattr_init, (pthread_mutexattr_t *__attr));
50+int    _EXFUN(pthread_mutexattr_destroy, (pthread_mutexattr_t *__attr));
51 int    _EXFUN(pthread_mutexattr_getpshared,
52-               (const pthread_mutexattr_t *attr, int  *pshared));
53+               (_CONST pthread_mutexattr_t *__attr, int  *__pshared));
54 int    _EXFUN(pthread_mutexattr_setpshared,
55-               (pthread_mutexattr_t *attr, int pshared));
56+               (pthread_mutexattr_t *__attr, int __pshared));
57 
58 /* Initializing and Destroying a Mutex, P1003.1c/Draft 10, p. 87 */
59 
60 int    _EXFUN(pthread_mutex_init,
61-       (pthread_mutex_t *mutex, const pthread_mutexattr_t *attr));
62-int    _EXFUN(pthread_mutex_destroy, (pthread_mutex_t *mutex));
63+       (pthread_mutex_t *__mutex, _CONST pthread_mutexattr_t *__attr));
64+int    _EXFUN(pthread_mutex_destroy, (pthread_mutex_t *__mutex));
65 
66 /* This is used to statically initialize a pthread_mutex_t. Example:
67   
68@@ -73,31 +73,31 @@
69 /*  Locking and Unlocking a Mutex, P1003.1c/Draft 10, p. 93
70     NOTE: P1003.4b/D8 adds pthread_mutex_timedlock(), p. 29 */
71 
72-int    _EXFUN(pthread_mutex_lock, (pthread_mutex_t *mutex));
73-int    _EXFUN(pthread_mutex_trylock, (pthread_mutex_t *mutex));
74-int    _EXFUN(pthread_mutex_unlock, (pthread_mutex_t *mutex));
75+int    _EXFUN(pthread_mutex_lock, (pthread_mutex_t *__mutex));
76+int    _EXFUN(pthread_mutex_trylock, (pthread_mutex_t *__mutex));
77+int    _EXFUN(pthread_mutex_unlock, (pthread_mutex_t *__mutex));
78 
79 #if defined(_POSIX_TIMEOUTS)
80 
81 int    _EXFUN(pthread_mutex_timedlock,
82-       (pthread_mutex_t *mutex, const struct timespec *timeout));
83+       (pthread_mutex_t *__mutex, _CONST struct timespec *__timeout));
84 
85 #endif /* _POSIX_TIMEOUTS */
86 
87 /* Condition Variable Initialization Attributes, P1003.1c/Draft 10, p. 96 */
88 
89-int    _EXFUN(pthread_condattr_init, (pthread_condattr_t *attr));
90-int    _EXFUN(pthread_condattr_destroy, (pthread_condattr_t *attr));
91+int    _EXFUN(pthread_condattr_init, (pthread_condattr_t *__attr));
92+int    _EXFUN(pthread_condattr_destroy, (pthread_condattr_t *__attr));
93 int    _EXFUN(pthread_condattr_getpshared,
94-               (const pthread_condattr_t *attr, int *pshared));
95+               (_CONST pthread_condattr_t *__attr, int *__pshared));
96 int    _EXFUN(pthread_condattr_setpshared,
97-               (pthread_condattr_t *attr, int pshared));
98+               (pthread_condattr_t *__attr, int __pshared));
99 
100 /* Initializing and Destroying a Condition Variable, P1003.1c/Draft 10, p. 87 */
101 
102 int    _EXFUN(pthread_cond_init,
103-       (pthread_cond_t *cond, const pthread_condattr_t *attr));
104-int    _EXFUN(pthread_cond_destroy, (pthread_cond_t *mutex));
105+       (pthread_cond_t *__cond, _CONST pthread_condattr_t *__attr));
106+int    _EXFUN(pthread_cond_destroy, (pthread_cond_t *__mutex));
107 
108 /* This is used to statically initialize a pthread_cond_t. Example:
109   
110@@ -108,49 +108,50 @@
111 
112 /* Broadcasting and Signaling a Condition, P1003.1c/Draft 10, p. 101 */
113 
114-int    _EXFUN(pthread_cond_signal, (pthread_cond_t *cond));
115-int    _EXFUN(pthread_cond_broadcast, (pthread_cond_t *cond));
116+int    _EXFUN(pthread_cond_signal, (pthread_cond_t *__cond));
117+int    _EXFUN(pthread_cond_broadcast, (pthread_cond_t *__cond));
118 
119 /* Waiting on a Condition, P1003.1c/Draft 10, p. 105 */
120 
121 int    _EXFUN(pthread_cond_wait,
122-       (pthread_cond_t *cond, pthread_mutex_t *mutex));
123+       (pthread_cond_t *__cond, pthread_mutex_t *__mutex));
124 
125 int    _EXFUN(pthread_cond_timedwait,
126-               (pthread_cond_t *cond, pthread_mutex_t *mutex,
127-               const struct timespec *abstime));
128+               (pthread_cond_t *__cond, pthread_mutex_t *__mutex,
129+               _CONST struct timespec *__abstime));
130 
131 #if defined(_POSIX_THREAD_PRIORITY_SCHEDULING)
132 
133 /* Thread Creation Scheduling Attributes, P1003.1c/Draft 10, p. 120 */
134 
135 int    _EXFUN(pthread_attr_setscope,
136-               (pthread_attr_t *attr, int contentionscope));
137+               (pthread_attr_t *__attr, int __contentionscope));
138 int    _EXFUN(pthread_attr_getscope,
139-       (const pthread_attr_t *attr, int *contentionscope));
140+       (_CONST pthread_attr_t *__attr, int *__contentionscope));
141 int    _EXFUN(pthread_attr_setinheritsched,
142-               (pthread_attr_t *attr, int inheritsched));
143+       (pthread_attr_t *__attr, int __inheritsched));
144 int    _EXFUN(pthread_attr_getinheritsched,
145-               (const pthread_attr_t *attr, int *inheritsched));
146-int    _EXFUN(pthread_attr_setschedpolicy, (pthread_attr_t *attr, int policy));
147+       (_CONST pthread_attr_t *__attr, int *__inheritsched));
148+int    _EXFUN(pthread_attr_setschedpolicy,
149+       (pthread_attr_t *__attr, int __policy));
150 int    _EXFUN(pthread_attr_getschedpolicy,
151-       (const pthread_attr_t *attr, int *policy));
152+       (_CONST pthread_attr_t *__attr, int *__policy));
153 
154 #endif /* defined(_POSIX_THREAD_PRIORITY_SCHEDULING) */
155 
156 int    _EXFUN(pthread_attr_setschedparam,
157-       (pthread_attr_t *attr, const struct sched_param *param));
158+       (pthread_attr_t *__attr, _CONST struct sched_param *__param));
159 int    _EXFUN(pthread_attr_getschedparam,
160-       (const pthread_attr_t *attr, struct sched_param *param));
161+       (_CONST pthread_attr_t *__attr, struct sched_param *__param));
162 
163 #if defined(_POSIX_THREAD_PRIORITY_SCHEDULING)
164 
165 /* Dynamic Thread Scheduling Parameters Access, P1003.1c/Draft 10, p. 124 */
166 
167 int    _EXFUN(pthread_getschedparam,
168-       (pthread_t thread, int *policy, struct sched_param *param));
169+       (pthread_t __pthread, int *__policy, struct sched_param *__param));
170 int    _EXFUN(pthread_setschedparam,
171-       (pthread_t thread, int policy, struct sched_param *param));
172+       (pthread_t __pthread, int __policy, struct sched_param *__param));
173 
174 #endif /* defined(_POSIX_THREAD_PRIORITY_SCHEDULING) */
175 
176@@ -159,13 +160,13 @@
177 /* Mutex Initialization Scheduling Attributes, P1003.1c/Draft 10, p. 128 */
178 
179 int    _EXFUN(pthread_mutexattr_setprotocol,
180-       (pthread_mutexattr_t *attr, int protocol));
181+       (pthread_mutexattr_t *__attr, int __protocol));
182 int    _EXFUN(pthread_mutexattr_getprotocol,
183-               (const pthread_mutexattr_t *attr, int *protocol));
184+       (_CONST pthread_mutexattr_t *__attr, int *__protocol));
185 int    _EXFUN(pthread_mutexattr_setprioceiling,
186-       (pthread_mutexattr_t *attr, int prioceiling));
187+       (pthread_mutexattr_t *__attr, int __prioceiling));
188 int    _EXFUN(pthread_mutexattr_getprioceiling,
189-       (const pthread_mutexattr_t *attr, int *prioceiling));
190+       (_CONST pthread_mutexattr_t *__attr, int *__prioceiling));
191 
192 #endif /* _POSIX_THREAD_PRIO_INHERIT || _POSIX_THREAD_PRIO_PROTECT */
193 
194@@ -174,46 +175,46 @@
195 /* Change the Priority Ceiling of a Mutex, P1003.1c/Draft 10, p. 131 */
196 
197 int    _EXFUN(pthread_mutex_setprioceiling,
198-       (pthread_mutex_t *mutex, int prioceiling, int *old_ceiling));
199+       (pthread_mutex_t *__mutex, int __prioceiling, int *__old_ceiling));
200 int    _EXFUN(pthread_mutex_getprioceiling,
201-       (pthread_mutex_t *mutex, int *prioceiling));
202+       (pthread_mutex_t *__mutex, int *__prioceiling));
203 
204 #endif /* _POSIX_THREAD_PRIO_PROTECT */
205 
206 /* Thread Creation Attributes, P1003.1c/Draft 10, p, 140 */
207 
208-int    _EXFUN(pthread_attr_init, (pthread_attr_t *attr));
209-int    _EXFUN(pthread_attr_destroy, (pthread_attr_t *attr));
210+int    _EXFUN(pthread_attr_init, (pthread_attr_t *__attr));
211+int    _EXFUN(pthread_attr_destroy, (pthread_attr_t *__attr));
212 int    _EXFUN(pthread_attr_getstacksize,
213-       (const pthread_attr_t *attr, size_t *stacksize));
214+       (_CONST pthread_attr_t *__attr, size_t *__stacksize));
215 int    _EXFUN(pthread_attr_setstacksize,
216-       (pthread_attr_t *attr, size_t stacksize));
217+       (pthread_attr_t *__attr, size_t stacksize));
218 int    _EXFUN(pthread_attr_getstackaddr,
219-       (const pthread_attr_t *attr, void **stackaddr));
220+       (_CONST pthread_attr_t *__attr, void **__stackaddr));
221 int    _EXFUN(pthread_attr_setstackaddr,
222-       (pthread_attr_t  *attr, void *stackaddr));
223+       (pthread_attr_t  *__attr, void *__stackaddr));
224 int    _EXFUN(pthread_attr_getdetachstate,
225-       (const pthread_attr_t *attr, int *detachstate));
226+       (_CONST pthread_attr_t *__attr, int *__detachstate));
227 int    _EXFUN(pthread_attr_setdetachstate,
228-       (pthread_attr_t *attr, int detachstate));
229+       (pthread_attr_t *__attr, int __detachstate));
230 
231 /* Thread Creation, P1003.1c/Draft 10, p. 144 */
232 
233 int    _EXFUN(pthread_create,
234-       (pthread_t *thread, const pthread_attr_t  *attr,
235-       void *(*start_routine)( void * ), void *arg));
236+       (pthread_t *__pthread, _CONST pthread_attr_t  *__attr,
237+       void *(*__start_routine)( void * ), void *__arg));
238 
239 /* Wait for Thread Termination, P1003.1c/Draft 10, p. 147 */
240 
241-int    _EXFUN(pthread_join, (pthread_t thread, void **value_ptr));
242+int    _EXFUN(pthread_join, (pthread_t __pthread, void **__value_ptr));
243 
244 /* Detaching a Thread, P1003.1c/Draft 10, p. 149 */
245 
246-int    _EXFUN(pthread_detach, (pthread_t thread));
247+int    _EXFUN(pthread_detach, (pthread_t __pthread));
248 
249 /* Thread Termination, p1003.1c/Draft 10, p. 150 */
250 
251-void   _EXFUN(pthread_exit, (void *value_ptr));
252+void   _EXFUN(pthread_exit, (void *__value_ptr));
253 
254 /* Get Calling Thread's ID, p1003.1c/Draft 10, p. XXX */
255 
256@@ -221,7 +222,7 @@
257 
258 /* Compare Thread IDs, p1003.1c/Draft 10, p. 153 */
259 
260-int    _EXFUN(pthread_equal, (pthread_t t1, pthread_t t2));
261+int    _EXFUN(pthread_equal, (pthread_t __t1, pthread_t __t2));
262 
263 /* Dynamic Package Initialization */
264 
265@@ -234,21 +235,22 @@
266 #define PTHREAD_ONCE_INIT  { 1, 0 }  /* is initialized and not run */
267 
268 int    _EXFUN(pthread_once,
269-       (pthread_once_t *once_control, void (*init_routine)(void)));
270+       (pthread_once_t *__once_control, void (*__init_routine)(void)));
271 
272 /* Thread-Specific Data Key Create, P1003.1c/Draft 10, p. 163 */
273 
274 int    _EXFUN(pthread_key_create,
275-       (pthread_key_t *key, void (*destructor)( void * )));
276+       (pthread_key_t *__key, void (*__destructor)( void * )));
277 
278 /* Thread-Specific Data Management, P1003.1c/Draft 10, p. 165 */
279 
280-int    _EXFUN(pthread_setspecific, (pthread_key_t key, const void *value));
281-void * _EXFUN(pthread_getspecific, (pthread_key_t key));
282+int    _EXFUN(pthread_setspecific,
283+       (pthread_key_t __key, _CONST void *__value));
284+void * _EXFUN(pthread_getspecific, (pthread_key_t __key));
285 
286 /* Thread-Specific Data Key Deletion, P1003.1c/Draft 10, p. 167 */
287 
288-int    _EXFUN(pthread_key_delete, (pthread_key_t key));
289+int    _EXFUN(pthread_key_delete, (pthread_key_t __key));
290 
291 /* Execution of a Thread, P1003.1c/Draft 10, p. 181 */
292 
293@@ -260,38 +262,94 @@
294 
295 #define PTHREAD_CANCELED ((void *) -1)
296 
297-int    _EXFUN(pthread_cancel, (pthread_t thread));
298+int    _EXFUN(pthread_cancel, (pthread_t __pthread));
299 
300 /* Setting Cancelability State, P1003.1c/Draft 10, p. 183 */
301 
302-int    _EXFUN(pthread_setcancelstate, (int state, int *oldstate));
303-int    _EXFUN(pthread_setcanceltype, (int type, int *oldtype));
304+int    _EXFUN(pthread_setcancelstate, (int __state, int *__oldstate));
305+int    _EXFUN(pthread_setcanceltype, (int __type, int *__oldtype));
306 void   _EXFUN(pthread_testcancel, (void));
307 
308 /* Establishing Cancellation Handlers, P1003.1c/Draft 10, p. 184 */
309 
310-void   _EXFUN(pthread_cleanup_push, (void (*routine)( void * ), void *arg));
311-void   _EXFUN(pthread_cleanup_pop, (int execute));
312+void   _EXFUN(pthread_cleanup_push,
313+       (void (*__routine)( void * ), void *__arg));
314+void   _EXFUN(pthread_cleanup_pop, (int __execute));
315 
316 #if defined(_POSIX_THREAD_CPUTIME)
317 
318 /* Accessing a Thread CPU-time Clock, P1003.4b/D8, p. 58 */
319 
320 int    _EXFUN(pthread_getcpuclockid,
321-       (pthread_t thread_id, clockid_t *clock_id));
322+       (pthread_t __pthread_id, clockid_t *__clock_id));
323 
324 /* CPU-time Clock Thread Creation Attribute, P1003.4b/D8, p. 59 */
325 
326 int    _EXFUN(pthread_attr_setcputime,
327-       (pthread_attr_t *attr, int clock_allowed));
328+       (pthread_attr_t *__attr, int __clock_allowed));
329 
330 int    _EXFUN(pthread_attr_getcputime,
331-       (pthread_attr_t *attr, int *clock_allowed));
332+       (pthread_attr_t *__attr, int *__clock_allowed));
333 
334 #endif /* defined(_POSIX_THREAD_CPUTIME) */
335 
336+
337 #endif /* defined(_POSIX_THREADS) */
338 
339+#if defined(_POSIX_BARRIERS)
340+
341+int    _EXFUN(pthread_barrierattr_init, (pthread_barrierattr_t *__attr));
342+int    _EXFUN(pthread_barrierattr_destroy, (pthread_barrierattr_t *__attr));
343+int    _EXFUN(pthread_barrierattr_getpshared,
344+       (_CONST pthread_barrierattr_t *__attr, int *__pshared));
345+int    _EXFUN(pthread_barrierattr_setpshared,
346+       (pthread_barrierattr_t *__attr, int __pshared));
347+
348+#define PTHREAD_BARRIER_SERIAL_THREAD -1
349+
350+int    _EXFUN(pthread_barrier_init,
351+       (pthread_barrier_t *__barrier,
352+       _CONST pthread_barrierattr_t *__attr, unsigned __count));
353+int    _EXFUN(pthread_barrier_destroy, (pthread_barrier_t *__barrier));
354+int    _EXFUN(pthread_barrier_wait,(pthread_barrier_t *__barrier));
355+
356+#endif /* defined(_POSIX_BARRIERS) */
357+
358+#if defined(_POSIX_SPIN_LOCKS)
359+
360+int    _EXFUN(pthread_spin_init,
361+       (pthread_spinlock_t *__spinlock, int __pshared));
362+int    _EXFUN(pthread_spin_destroy, (pthread_spinlock_t *__spinlock));
363+int    _EXFUN(pthread_spin_lock, (pthread_spinlock_t *__spinlock));
364+int    _EXFUN(pthread_spin_trylock, (pthread_spinlock_t *__spinlock));
365+int    _EXFUN(pthread_spin_unlock, (pthread_spinlock_t *__spinlock));
366+
367+#endif /* defined(_POSIX_SPIN_LOCKS) */
368+
369+#if defined(_POSIX_READER_WRITER_LOCKS)
370+
371+int    _EXFUN(pthread_rwlockattr_init, (pthread_rwlockattr_t *__attr));
372+int    _EXFUN(pthread_rwlockattr_destroy, (pthread_rwlockattr_t *__attr));
373+int    _EXFUN(pthread_rwlockattr_getpshared,
374+       (_CONST pthread_rwlockattr_t *__attr, int *__pshared));
375+int    _EXFUN(pthread_rwlockattr_setpshared,
376+       (pthread_rwlockattr_t *__attr, int __pshared));
377+
378+int    _EXFUN(pthread_rwlock_init,
379+       (pthread_rwlock_t *__rwlock, _CONST pthread_rwlockattr_t *__attr));
380+int    _EXFUN(pthread_rwlock_destroy, (pthread_rwlock_t *__rwlock));
381+int    _EXFUN(pthread_rwlock_rdlock,(pthread_rwlock_t *__rwlock));
382+int    _EXFUN(pthread_rwlock_tryrdlock,(pthread_rwlock_t *__rwlock));
383+int    _EXFUN(pthread_rwlock_timedrdlock,
384+        (pthread_rwlock_t *__rwlock, _CONST struct timespec *__abstime));
385+int    _EXFUN(pthread_rwlock_wrlock,(pthread_rwlock_t *__rwlock));
386+int    _EXFUN(pthread_rwlock_trywrlock,(pthread_rwlock_t *__rwlock));
387+int    _EXFUN(pthread_rwlock_timedwrlock,
388+        (pthread_rwlock_t *__rwlock, _CONST struct timespec *__abstime));
389+
390+#endif /* defined(_POSIX_READER_WRITER_LOCKS) */
391+
392+
393 #ifdef __cplusplus
394 }
395 #endif
396diff -uNr newlib-1.14.0.orig/newlib/libc/include/sys/features.h newlib-1.14.0/newlib/libc/include/sys/features.h
397--- newlib-1.14.0.orig/newlib/libc/include/sys/features.h       2005-10-18 20:39:46.000000000 +0200
398+++ newlib-1.14.0/newlib/libc/include/sys/features.h    2006-10-27 10:10:46.000000000 +0200
399@@ -45,6 +45,9 @@
400 #define _POSIX_SHARED_MEMORY_OBJECTS   1
401 #define _POSIX_SYNCHRONIZED_IO         1
402 #define _POSIX_TIMERS                  1
403+#define _POSIX_BARRIERS                 200112L
404+#define _POSIX_READER_WRITER_LOCKS      200112L
405+#define _POSIX_SPIN_LOCKS               200112L
406 
407 
408 /* In P1003.1b but defined by drafts at least as early as P1003.1c/D10  */
409diff -uNr newlib-1.14.0.orig/newlib/libc/include/sys/_types.h newlib-1.14.0/newlib/libc/include/sys/_types.h
410--- newlib-1.14.0.orig/newlib/libc/include/sys/_types.h 2004-06-11 22:37:09.000000000 +0200
411+++ newlib-1.14.0/newlib/libc/include/sys/_types.h      2006-10-27 10:12:40.000000000 +0200
412@@ -39,4 +39,7 @@
413 /* Iconv descriptor type */
414 typedef void *_iconv_t;
415 
416+typedef long * __intptr_t;
417+typedef unsigned long* __uintptr_t;
418+
419 #endif /* _SYS__TYPES_H */
420diff -uNr newlib-1.14.0.orig/newlib/libc/include/sys/types.h newlib-1.14.0/newlib/libc/include/sys/types.h
421--- newlib-1.14.0.orig/newlib/libc/include/sys/types.h  2005-12-08 20:45:43.000000000 +0100
422+++ newlib-1.14.0/newlib/libc/include/sys/types.h       2006-10-27 10:11:58.000000000 +0200
423@@ -373,6 +373,36 @@
424 #endif
425 #endif /* defined(_POSIX_THREADS) */
426 
427+/* POSIX Barrier Types */
428+
429+#if defined(_POSIX_BARRIERS)
430+typedef __uint32_t pthread_barrier_t;        /* POSIX Barrier Object */
431+typedef struct {
432+  int   is_initialized;  /* is this structure initialized? */
433+#if defined(_POSIX_THREAD_PROCESS_SHARED)
434+  int   process_shared;       /* allow this to be shared amongst processes */
435+#endif
436+} pthread_barrierattr_t;
437+#endif /* defined(_POSIX_BARRIERS) */
438+
439+/* POSIX Spin Lock Types */
440+
441+#if defined(_POSIX_SPIN_LOCKS)
442+typedef __uint32_t pthread_spinlock_t;        /* POSIX Spin Lock Object */
443+#endif /* defined(_POSIX_SPIN_LOCKS) */
444+
445+/* POSIX Reader/Writer Lock Types */
446+
447+#if defined(_POSIX_READER_WRITER_LOCKS)
448+typedef __uint32_t pthread_rwlock_t;         /* POSIX RWLock Object */
449+typedef struct {
450+  int   is_initialized;       /* is this structure initialized? */
451+#if defined(_POSIX_THREAD_PROCESS_SHARED)
452+  int   process_shared;       /* allow this to be shared amongst processes */
453+#endif
454+} pthread_rwlockattr_t;
455+#endif /* defined(_POSIX_READER_WRITER_LOCKS) */
456+
457 #endif  /* !__need_inttypes */
458 
459 #undef __need_inttypes
460diff -uNr newlib-1.14.0.orig/newlib/libc/machine/arm/machine/endian.h newlib-1.14.0/newlib/libc/machine/arm/machine/endian.h
461--- newlib-1.14.0.orig/newlib/libc/machine/arm/machine/endian.h 2004-05-07 22:29:24.000000000 +0200
462+++ newlib-1.14.0/newlib/libc/machine/arm/machine/endian.h      1970-01-01 01:00:00.000000000 +0100
463@@ -1,12 +0,0 @@
464-/* ARM configuration file */
465-
466-#ifndef _MACHINE_ENDIAN_H
467-# define _MACHINE_ENDIAN_H
468-
469-#ifdef __ARMEB__
470-#define BYTE_ORDER BIG_ENDIAN
471-#else
472-#define BYTE_ORDER LITTLE_ENDIAN
473-#endif
474-
475-#endif
476diff -uNr newlib-1.14.0.orig/newlib/libc/machine/bfin/aclocal.m4 newlib-1.14.0/newlib/libc/machine/bfin/aclocal.m4
477--- newlib-1.14.0.orig/newlib/libc/machine/bfin/aclocal.m4      1970-01-01 01:00:00.000000000 +0100
478+++ newlib-1.14.0/newlib/libc/machine/bfin/aclocal.m4   2006-10-27 10:12:40.000000000 +0200
479@@ -0,0 +1,366 @@
480+dnl aclocal.m4 generated automatically by aclocal 1.4-p6
481+
482+dnl Copyright (C) 1994, 1995-8, 1999, 2001 Free Software Foundation, Inc.
483+dnl This file is free software; the Free Software Foundation
484+dnl gives unlimited permission to copy and/or distribute it,
485+dnl with or without modifications, as long as this notice is preserved.
486+
487+dnl This program is distributed in the hope that it will be useful,
488+dnl but WITHOUT ANY WARRANTY, to the extent permitted by law; without
489+dnl even the implied warranty of MERCHANTABILITY or FITNESS FOR A
490+dnl PARTICULAR PURPOSE.
491+
492+dnl This provides configure definitions used by all the newlib
493+dnl configure.in files.
494+
495+dnl Basic newlib configury.  This calls basic introductory stuff,
496+dnl including AM_INIT_AUTOMAKE and AC_CANONICAL_HOST.  It also runs
497+dnl configure.host.  The only argument is the relative path to the top
498+dnl newlib directory.
499+
500+AC_DEFUN(NEWLIB_CONFIGURE,
501+[
502+dnl Default to --enable-multilib
503+AC_ARG_ENABLE(multilib,
504+[  --enable-multilib         build many library versions (default)],
505+[case "${enableval}" in
506+  yes) multilib=yes ;;
507+  no)  multilib=no ;;
508+  *)   AC_MSG_ERROR(bad value ${enableval} for multilib option) ;;
509+ esac], [multilib=yes])dnl
510+
511+dnl Support --enable-target-optspace
512+AC_ARG_ENABLE(target-optspace,
513+[  --enable-target-optspace  optimize for space],
514+[case "${enableval}" in
515+  yes) target_optspace=yes ;;
516+  no)  target_optspace=no ;;
517+  *)   AC_MSG_ERROR(bad value ${enableval} for target-optspace option) ;;
518+ esac], [target_optspace=])dnl
519+
520+dnl Support --enable-malloc-debugging - currently only supported for Cygwin
521+AC_ARG_ENABLE(malloc-debugging,
522+[  --enable-malloc-debugging indicate malloc debugging requested],
523+[case "${enableval}" in
524+  yes) malloc_debugging=yes ;;
525+  no)  malloc_debugging=no ;;
526+  *)   AC_MSG_ERROR(bad value ${enableval} for malloc-debugging option) ;;
527+ esac], [malloc_debugging=])dnl
528+
529+dnl Support --enable-newlib-multithread
530+AC_ARG_ENABLE(newlib-multithread,
531+[  --enable-newlib-multithread        enable support for multiple threads],
532+[case "${enableval}" in
533+  yes) newlib_multithread=yes ;;
534+  no)  newlib_multithread=no ;;
535+  *)   AC_MSG_ERROR(bad value ${enableval} for newlib-multithread option) ;;
536+ esac], [newlib_multithread=yes])dnl
537+
538+dnl Support --enable-newlib-iconv
539+AC_ARG_ENABLE(newlib-iconv,
540+[  --enable-newlib-iconv     enable iconv library support],
541+[if test "${newlib_iconv+set}" != set; then
542+   case "${enableval}" in
543+     yes) newlib_iconv=yes ;;
544+     no)  newlib_iconv=no ;;
545+     *)   AC_MSG_ERROR(bad value ${enableval} for newlib-iconv option) ;;
546+   esac
547+ fi], [newlib_iconv=${newlib_iconv}])dnl
548+
549+dnl Support --enable-newlib-elix-level
550+AC_ARG_ENABLE(newlib-elix-level,
551+[  --enable-newlib-elix-level         supply desired elix library level (1-4)],
552+[case "${enableval}" in
553+  0)   newlib_elix_level=0 ;;
554+  1)   newlib_elix_level=1 ;;
555+  2)   newlib_elix_level=2 ;;
556+  3)   newlib_elix_level=3 ;;
557+  4)   newlib_elix_level=4 ;;
558+  *)   AC_MSG_ERROR(bad value ${enableval} for newlib-elix-level option) ;;
559+ esac], [newlib_elix_level=0])dnl
560+
561+dnl Support --disable-newlib-io-float
562+AC_ARG_ENABLE(newlib-io-float,
563+[  --disable-newlib-io-float disable printf/scanf family float support],
564+[case "${enableval}" in
565+  yes) newlib_io_float=yes ;;
566+  no)  newlib_io_float=no ;;
567+  *)   AC_MSG_ERROR(bad value ${enableval} for newlib-io-float option) ;;
568+ esac], [newlib_io_float=yes])dnl
569+
570+dnl Support --disable-newlib-supplied-syscalls
571+AC_ARG_ENABLE(newlib-supplied-syscalls,
572+[  --disable-newlib-supplied-syscalls disable newlib from supplying syscalls],
573+[case "${enableval}" in
574+  yes) newlib_may_supply_syscalls=yes ;;
575+  no)  newlib_may_supply_syscalls=no ;;
576+  *)   AC_MSG_ERROR(bad value ${enableval} for newlib-supplied-syscalls option) ;;
577+ esac], [newlib_may_supply_syscalls=yes])dnl
578+
579+AM_CONDITIONAL(MAY_SUPPLY_SYSCALLS, test x[$]{newlib_may_supply_syscalls} = xyes)
580+
581+dnl We may get other options which we don't document:
582+dnl --with-target-subdir, --with-multisrctop, --with-multisubdir
583+
584+test -z "[$]{with_target_subdir}" && with_target_subdir=.
585+
586+if test "[$]{srcdir}" = "."; then
587+  if test "[$]{with_target_subdir}" != "."; then
588+    newlib_basedir="[$]{srcdir}/[$]{with_multisrctop}../$1"
589+  else
590+    newlib_basedir="[$]{srcdir}/[$]{with_multisrctop}$1"
591+  fi
592+else
593+  newlib_basedir="[$]{srcdir}/$1"
594+fi
595+AC_SUBST(newlib_basedir)
596+
597+AC_CANONICAL_SYSTEM
598+
599+AM_INIT_AUTOMAKE(newlib, 1.14.0)
600+
601+# FIXME: We temporarily define our own version of AC_PROG_CC.  This is
602+# copied from autoconf 2.12, but does not call AC_PROG_CC_WORKS.  We
603+# are probably using a cross compiler, which will not be able to fully
604+# link an executable.  This should really be fixed in autoconf
605+# itself.
606+
607+AC_DEFUN(LIB_AC_PROG_CC,
608+[AC_BEFORE([$0], [AC_PROG_CPP])dnl
609+AC_CHECK_PROG(CC, gcc, gcc)
610+if test -z "$CC"; then
611+  AC_CHECK_PROG(CC, cc, cc, , , /usr/ucb/cc)
612+  test -z "$CC" && AC_MSG_ERROR([no acceptable cc found in \$PATH])
613+fi
614+
615+AC_PROG_CC_GNU
616+
617+if test $ac_cv_prog_gcc = yes; then
618+  GCC=yes
619+dnl Check whether -g works, even if CFLAGS is set, in case the package
620+dnl plays around with CFLAGS (such as to build both debugging and
621+dnl normal versions of a library), tasteless as that idea is.
622+  ac_test_CFLAGS="${CFLAGS+set}"
623+  ac_save_CFLAGS="$CFLAGS"
624+  CFLAGS=
625+  AC_PROG_CC_G
626+  if test "$ac_test_CFLAGS" = set; then
627+    CFLAGS="$ac_save_CFLAGS"
628+  elif test $ac_cv_prog_cc_g = yes; then
629+    CFLAGS="-g -O2"
630+  else
631+    CFLAGS="-O2"
632+  fi
633+else
634+  GCC=
635+  test "${CFLAGS+set}" = set || CFLAGS="-g"
636+fi
637+])
638+
639+LIB_AC_PROG_CC
640+
641+AC_CHECK_TOOL(AS, as)
642+AC_CHECK_TOOL(AR, ar)
643+AC_CHECK_TOOL(RANLIB, ranlib, :)
644+
645+AC_PROG_INSTALL
646+
647+AM_MAINTAINER_MODE
648+
649+# We need AC_EXEEXT to keep automake happy in cygnus mode.  However,
650+# at least currently, we never actually build a program, so we never
651+# need to use $(EXEEXT).  Moreover, the test for EXEEXT normally
652+# fails, because we are probably configuring with a cross compiler
653+# which can't create executables.  So we include AC_EXEEXT to keep
654+# automake happy, but we don't execute it, since we don't care about
655+# the result.
656+if false; then
657+  AC_EXEEXT
658+fi
659+
660+. [$]{newlib_basedir}/configure.host
661+
662+newlib_cflags="[$]{newlib_cflags} -fno-builtin"
663+
664+NEWLIB_CFLAGS=${newlib_cflags}
665+AC_SUBST(NEWLIB_CFLAGS)
666+
667+LDFLAGS=${ldflags}
668+AC_SUBST(LDFLAGS)
669+
670+AM_CONDITIONAL(ELIX_LEVEL_0, test x[$]{newlib_elix_level} = x0)
671+AM_CONDITIONAL(ELIX_LEVEL_1, test x[$]{newlib_elix_level} = x1)
672+AM_CONDITIONAL(ELIX_LEVEL_2, test x[$]{newlib_elix_level} = x2)
673+AM_CONDITIONAL(ELIX_LEVEL_3, test x[$]{newlib_elix_level} = x3)
674+AM_CONDITIONAL(ELIX_LEVEL_4, test x[$]{newlib_elix_level} = x4)
675+
676+AM_CONDITIONAL(USE_LIBTOOL, test x[$]{use_libtool} = xyes)
677+
678+# Hard-code OBJEXT.  Normally it is set by AC_OBJEXT, but we
679+# use oext, which is set in configure.host based on the target platform.
680+OBJEXT=${oext}
681+
682+AC_SUBST(OBJEXT)
683+AC_SUBST(oext)
684+AC_SUBST(aext)
685+
686+AC_SUBST(libm_machine_dir)
687+AC_SUBST(machine_dir)
688+AC_SUBST(sys_dir)
689+])
690+
691+# Do all the work for Automake.  This macro actually does too much --
692+# some checks are only needed if your package does certain things.
693+# But this isn't really a big deal.
694+
695+# serial 1
696+
697+dnl Usage:
698+dnl AM_INIT_AUTOMAKE(package,version, [no-define])
699+
700+AC_DEFUN([AM_INIT_AUTOMAKE],
701+[AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
702+AC_REQUIRE([AC_PROG_INSTALL])
703+PACKAGE=[$1]
704+AC_SUBST(PACKAGE)
705+VERSION=[$2]
706+AC_SUBST(VERSION)
707+dnl test to see if srcdir already configured
708+if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
709+  AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
710+fi
711+ifelse([$3],,
712+AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
713+AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package]))
714+AC_REQUIRE([AM_SANITY_CHECK])
715+AC_REQUIRE([AC_ARG_PROGRAM])
716+dnl FIXME This is truly gross.
717+missing_dir=`cd $ac_aux_dir && pwd`
718+AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version}, $missing_dir)
719+AM_MISSING_PROG(AUTOCONF, autoconf, $missing_dir)
720+AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version}, $missing_dir)
721+AM_MISSING_PROG(AUTOHEADER, autoheader, $missing_dir)
722+AM_MISSING_PROG(MAKEINFO, makeinfo, $missing_dir)
723+AC_REQUIRE([AC_PROG_MAKE_SET])])
724+
725+# Copyright 2002  Free Software Foundation, Inc.
726+
727+# This program is free software; you can redistribute it and/or modify
728+# it under the terms of the GNU General Public License as published by
729+# the Free Software Foundation; either version 2, or (at your option)
730+# any later version.
731+
732+# This program is distributed in the hope that it will be useful,
733+# but WITHOUT ANY WARRANTY; without even the implied warranty of
734+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
735+# GNU General Public License for more details.
736+
737+# You should have received a copy of the GNU General Public License
738+# along with this program; if not, write to the Free Software
739+# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
740+
741+# AM_AUTOMAKE_VERSION(VERSION)
742+# ----------------------------
743+# Automake X.Y traces this macro to ensure aclocal.m4 has been
744+# generated from the m4 files accompanying Automake X.Y.
745+AC_DEFUN([AM_AUTOMAKE_VERSION],[am__api_version="1.4"])
746+
747+# AM_SET_CURRENT_AUTOMAKE_VERSION
748+# -------------------------------
749+# Call AM_AUTOMAKE_VERSION so it can be traced.
750+# This function is AC_REQUIREd by AC_INIT_AUTOMAKE.
751+AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
752+        [AM_AUTOMAKE_VERSION([1.4-p6])])
753+
754+#
755+# Check to make sure that the build environment is sane.
756+#
757+
758+AC_DEFUN([AM_SANITY_CHECK],
759+[AC_MSG_CHECKING([whether build environment is sane])
760+# Just in case
761+sleep 1
762+echo timestamp > conftestfile
763+# Do `set' in a subshell so we don't clobber the current shell's
764+# arguments.  Must try -L first in case configure is actually a
765+# symlink; some systems play weird games with the mod time of symlinks
766+# (eg FreeBSD returns the mod time of the symlink's containing
767+# directory).
768+if (
769+   set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
770+   if test "[$]*" = "X"; then
771+      # -L didn't work.
772+      set X `ls -t $srcdir/configure conftestfile`
773+   fi
774+   if test "[$]*" != "X $srcdir/configure conftestfile" \
775+      && test "[$]*" != "X conftestfile $srcdir/configure"; then
776+
777+      # If neither matched, then we have a broken ls.  This can happen
778+      # if, for instance, CONFIG_SHELL is bash and it inherits a
779+      # broken ls alias from the environment.  This has actually
780+      # happened.  Such a system could not be considered "sane".
781+      AC_MSG_ERROR([ls -t appears to fail.  Make sure there is not a broken
782+alias in your environment])
783+   fi
784+
785+   test "[$]2" = conftestfile
786+   )
787+then
788+   # Ok.
789+   :
790+else
791+   AC_MSG_ERROR([newly created file is older than distributed files!
792+Check your system clock])
793+fi
794+rm -f conftest*
795+AC_MSG_RESULT(yes)])
796+
797+dnl AM_MISSING_PROG(NAME, PROGRAM, DIRECTORY)
798+dnl The program must properly implement --version.
799+AC_DEFUN([AM_MISSING_PROG],
800+[AC_MSG_CHECKING(for working $2)
801+# Run test in a subshell; some versions of sh will print an error if
802+# an executable is not found, even if stderr is redirected.
803+# Redirect stdin to placate older versions of autoconf.  Sigh.
804+if ($2 --version) < /dev/null > /dev/null 2>&1; then
805+   $1=$2
806+   AC_MSG_RESULT(found)
807+else
808+   $1="$3/missing $2"
809+   AC_MSG_RESULT(missing)
810+fi
811+AC_SUBST($1)])
812+
813+# Define a conditional.
814+
815+AC_DEFUN([AM_CONDITIONAL],
816+[AC_SUBST($1_TRUE)
817+AC_SUBST($1_FALSE)
818+if $2; then
819+  $1_TRUE=
820+  $1_FALSE='#'
821+else
822+  $1_TRUE='#'
823+  $1_FALSE=
824+fi])
825+
826+# Add --enable-maintainer-mode option to configure.
827+# From Jim Meyering
828+
829+# serial 1
830+
831+AC_DEFUN([AM_MAINTAINER_MODE],
832+[AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
833+  dnl maintainer-mode is disabled by default
834+  AC_ARG_ENABLE(maintainer-mode,
835+[  --enable-maintainer-mode enable make rules and dependencies not useful
836+                          (and sometimes confusing) to the casual installer],
837+      USE_MAINTAINER_MODE=$enableval,
838+      USE_MAINTAINER_MODE=no)
839+  AC_MSG_RESULT($USE_MAINTAINER_MODE)
840+  AM_CONDITIONAL(MAINTAINER_MODE, test $USE_MAINTAINER_MODE = yes)
841+  MAINT=$MAINTAINER_MODE_TRUE
842+  AC_SUBST(MAINT)dnl
843+]
844+)
845+
846diff -uNr newlib-1.14.0.orig/newlib/libc/machine/bfin/configure newlib-1.14.0/newlib/libc/machine/bfin/configure
847--- newlib-1.14.0.orig/newlib/libc/machine/bfin/configure       1970-01-01 01:00:00.000000000 +0100
848+++ newlib-1.14.0/newlib/libc/machine/bfin/configure    2006-10-27 10:12:40.000000000 +0200
849@@ -0,0 +1,1880 @@
850+#! /bin/sh
851+
852+# Guess values for system-dependent variables and create Makefiles.
853+# Generated automatically using autoconf version 2.13
854+# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
855+#
856+# This configure script is free software; the Free Software Foundation
857+# gives unlimited permission to copy, distribute and modify it.
858+
859+# Defaults:
860+ac_help=
861+ac_default_prefix=/usr/local
862+# Any additions from configure.in:
863+ac_help="$ac_help
864+  --enable-multilib         build many library versions (default)"
865+ac_help="$ac_help
866+  --enable-target-optspace  optimize for space"
867+ac_help="$ac_help
868+  --enable-malloc-debugging indicate malloc debugging requested"
869+ac_help="$ac_help
870+  --enable-newlib-multithread        enable support for multiple threads"
871+ac_help="$ac_help
872+  --enable-newlib-iconv     enable iconv library support"
873+ac_help="$ac_help
874+  --enable-newlib-elix-level         supply desired elix library level (1-4)"
875+ac_help="$ac_help
876+  --disable-newlib-io-float disable printf/scanf family float support"
877+ac_help="$ac_help
878+  --disable-newlib-supplied-syscalls disable newlib from supplying syscalls"
879+ac_help="$ac_help
880+  --enable-maintainer-mode enable make rules and dependencies not useful
881+                          (and sometimes confusing) to the casual installer"
882+
883+# Initialize some variables set by options.
884+# The variables have the same names as the options, with
885+# dashes changed to underlines.
886+build=NONE
887+cache_file=./config.cache
888+exec_prefix=NONE
889+host=NONE
890+no_create=
891+nonopt=NONE
892+no_recursion=
893+prefix=NONE
894+program_prefix=NONE
895+program_suffix=NONE
896+program_transform_name=s,x,x,
897+silent=
898+site=
899+srcdir=
900+target=NONE
901+verbose=
902+x_includes=NONE
903+x_libraries=NONE
904+bindir='${exec_prefix}/bin'
905+sbindir='${exec_prefix}/sbin'
906+libexecdir='${exec_prefix}/libexec'
907+datadir='${prefix}/share'
908+sysconfdir='${prefix}/etc'
909+sharedstatedir='${prefix}/com'
910+localstatedir='${prefix}/var'
911+libdir='${exec_prefix}/lib'
912+includedir='${prefix}/include'
913+oldincludedir='/usr/include'
914+infodir='${prefix}/info'
915+mandir='${prefix}/man'
916+
917+# Initialize some other variables.
918+subdirs=
919+MFLAGS= MAKEFLAGS=
920+SHELL=${CONFIG_SHELL-/bin/sh}
921+# Maximum number of lines to put in a shell here document.
922+ac_max_here_lines=12
923+
924+ac_prev=
925+for ac_option
926+do
927+
928+  # If the previous option needs an argument, assign it.
929+  if test -n "$ac_prev"; then
930+    eval "$ac_prev=\$ac_option"
931+    ac_prev=
932+    continue
933+  fi
934+
935+  case "$ac_option" in
936+  -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
937+  *) ac_optarg= ;;
938+  esac
939+
940+  # Accept the important Cygnus configure options, so we can diagnose typos.
941+
942+  case "$ac_option" in
943+
944+  -bindir | --bindir | --bindi | --bind | --bin | --bi)
945+    ac_prev=bindir ;;
946+  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
947+    bindir="$ac_optarg" ;;
948+
949+  -build | --build | --buil | --bui | --bu)
950+    ac_prev=build ;;
951+  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
952+    build="$ac_optarg" ;;
953+
954+  -cache-file | --cache-file | --cache-fil | --cache-fi \
955+  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
956+    ac_prev=cache_file ;;
957+  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
958+  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
959+    cache_file="$ac_optarg" ;;
960+
961+  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
962+    ac_prev=datadir ;;
963+  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
964+  | --da=*)
965+    datadir="$ac_optarg" ;;
966+
967+  -disable-* | --disable-*)
968+    ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
969+    # Reject names that are not valid shell variable names.
970+    if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
971+      { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
972+    fi
973+    ac_feature=`echo $ac_feature| sed 's/-/_/g'`
974+    eval "enable_${ac_feature}=no" ;;
975+
976+  -enable-* | --enable-*)
977+    ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
978+    # Reject names that are not valid shell variable names.
979+    if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
980+      { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
981+    fi
982+    ac_feature=`echo $ac_feature| sed 's/-/_/g'`
983+    case "$ac_option" in
984+      *=*) ;;
985+      *) ac_optarg=yes ;;
986+    esac
987+    eval "enable_${ac_feature}='$ac_optarg'" ;;
988+
989+  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
990+  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
991+  | --exec | --exe | --ex)
992+    ac_prev=exec_prefix ;;
993+  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
994+  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
995+  | --exec=* | --exe=* | --ex=*)
996+    exec_prefix="$ac_optarg" ;;
997+
998+  -gas | --gas | --ga | --g)
999+    # Obsolete; use --with-gas.
1000+    with_gas=yes ;;
1001+
1002+  -help | --help | --hel | --he)
1003+    # Omit some internal or obsolete options to make the list less imposing.
1004+    # This message is too long to be a string in the A/UX 3.1 sh.
1005+    cat << EOF
1006+Usage: configure [options] [host]
1007+Options: [defaults in brackets after descriptions]
1008+Configuration:
1009+  --cache-file=FILE       cache test results in FILE
1010+  --help                  print this message
1011+  --no-create             do not create output files
1012+  --quiet, --silent       do not print \`checking...' messages
1013+  --version               print the version of autoconf that created configure
1014+Directory and file names:
1015+  --prefix=PREFIX         install architecture-independent files in PREFIX
1016+                          [$ac_default_prefix]
1017+  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1018+                          [same as prefix]
1019+  --bindir=DIR            user executables in DIR [EPREFIX/bin]
1020+  --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
1021+  --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
1022+  --datadir=DIR           read-only architecture-independent data in DIR
1023+                          [PREFIX/share]
1024+  --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
1025+  --sharedstatedir=DIR    modifiable architecture-independent data in DIR
1026+                          [PREFIX/com]
1027+  --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
1028+  --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
1029+  --includedir=DIR        C header files in DIR [PREFIX/include]
1030+  --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
1031+  --infodir=DIR           info documentation in DIR [PREFIX/info]
1032+  --mandir=DIR            man documentation in DIR [PREFIX/man]
1033+  --srcdir=DIR            find the sources in DIR [configure dir or ..]
1034+  --program-prefix=PREFIX prepend PREFIX to installed program names
1035+  --program-suffix=SUFFIX append SUFFIX to installed program names
1036+  --program-transform-name=PROGRAM
1037+                          run sed PROGRAM on installed program names
1038+EOF
1039+    cat << EOF
1040+Host type:
1041+  --build=BUILD           configure for building on BUILD [BUILD=HOST]
1042+  --host=HOST             configure for HOST [guessed]
1043+  --target=TARGET         configure for TARGET [TARGET=HOST]
1044+Features and packages:
1045+  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1046+  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1047+  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1048+  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1049+  --x-includes=DIR        X include files are in DIR
1050+  --x-libraries=DIR       X library files are in DIR
1051+EOF
1052+    if test -n "$ac_help"; then
1053+      echo "--enable and --with options recognized:$ac_help"
1054+    fi
1055+    exit 0 ;;
1056+
1057+  -host | --host | --hos | --ho)
1058+    ac_prev=host ;;
1059+  -host=* | --host=* | --hos=* | --ho=*)
1060+    host="$ac_optarg" ;;
1061+
1062+  -includedir | --includedir | --includedi | --included | --include \
1063+  | --includ | --inclu | --incl | --inc)
1064+    ac_prev=includedir ;;
1065+  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1066+  | --includ=* | --inclu=* | --incl=* | --inc=*)
1067+    includedir="$ac_optarg" ;;
1068+
1069+  -infodir | --infodir | --infodi | --infod | --info | --inf)
1070+    ac_prev=infodir ;;
1071+  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1072+    infodir="$ac_optarg" ;;
1073+
1074+  -libdir | --libdir | --libdi | --libd)
1075+    ac_prev=libdir ;;
1076+  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1077+    libdir="$ac_optarg" ;;
1078+
1079+  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1080+  | --libexe | --libex | --libe)
1081+    ac_prev=libexecdir ;;
1082+  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1083+  | --libexe=* | --libex=* | --libe=*)
1084+    libexecdir="$ac_optarg" ;;
1085+
1086+  -localstatedir | --localstatedir | --localstatedi | --localstated \
1087+  | --localstate | --localstat | --localsta | --localst \
1088+  | --locals | --local | --loca | --loc | --lo)
1089+    ac_prev=localstatedir ;;
1090+  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1091+  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
1092+  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
1093+    localstatedir="$ac_optarg" ;;
1094+
1095+  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1096+    ac_prev=mandir ;;
1097+  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1098+    mandir="$ac_optarg" ;;
1099+
1100+  -nfp | --nfp | --nf)
1101+    # Obsolete; use --without-fp.
1102+    with_fp=no ;;
1103+
1104+  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1105+  | --no-cr | --no-c)
1106+    no_create=yes ;;
1107+
1108+  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1109+  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1110+    no_recursion=yes ;;
1111+
1112+  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1113+  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1114+  | --oldin | --oldi | --old | --ol | --o)
1115+    ac_prev=oldincludedir ;;
1116+  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1117+  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1118+  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1119+    oldincludedir="$ac_optarg" ;;
1120+
1121+  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1122+    ac_prev=prefix ;;
1123+  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1124+    prefix="$ac_optarg" ;;
1125+
1126+  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1127+  | --program-pre | --program-pr | --program-p)
1128+    ac_prev=program_prefix ;;
1129+  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1130+  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1131+    program_prefix="$ac_optarg" ;;
1132+
1133+  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1134+  | --program-suf | --program-su | --program-s)
1135+    ac_prev=program_suffix ;;
1136+  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1137+  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1138+    program_suffix="$ac_optarg" ;;
1139+
1140+  -program-transform-name | --program-transform-name \
1141+  | --program-transform-nam | --program-transform-na \
1142+  | --program-transform-n | --program-transform- \
1143+  | --program-transform | --program-transfor \
1144+  | --program-transfo | --program-transf \
1145+  | --program-trans | --program-tran \
1146+  | --progr-tra | --program-tr | --program-t)
1147+    ac_prev=program_transform_name ;;
1148+  -program-transform-name=* | --program-transform-name=* \
1149+  | --program-transform-nam=* | --program-transform-na=* \
1150+  | --program-transform-n=* | --program-transform-=* \
1151+  | --program-transform=* | --program-transfor=* \
1152+  | --program-transfo=* | --program-transf=* \
1153+  | --program-trans=* | --program-tran=* \
1154+  | --progr-tra=* | --program-tr=* | --program-t=*)
1155+    program_transform_name="$ac_optarg" ;;
1156+
1157+  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1158+  | -silent | --silent | --silen | --sile | --sil)
1159+    silent=yes ;;
1160+
1161+  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1162+    ac_prev=sbindir ;;
1163+  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1164+  | --sbi=* | --sb=*)
1165+    sbindir="$ac_optarg" ;;
1166+
1167+  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1168+  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1169+  | --sharedst | --shareds | --shared | --share | --shar \
1170+  | --sha | --sh)
1171+    ac_prev=sharedstatedir ;;
1172+  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1173+  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1174+  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1175+  | --sha=* | --sh=*)
1176+    sharedstatedir="$ac_optarg" ;;
1177+
1178+  -site | --site | --sit)
1179+    ac_prev=site ;;
1180+  -site=* | --site=* | --sit=*)
1181+    site="$ac_optarg" ;;
1182+
1183+  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1184+    ac_prev=srcdir ;;
1185+  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1186+    srcdir="$ac_optarg" ;;
1187+
1188+  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1189+  | --syscon | --sysco | --sysc | --sys | --sy)
1190+    ac_prev=sysconfdir ;;
1191+  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1192+  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1193+    sysconfdir="$ac_optarg" ;;
1194+
1195+  -target | --target | --targe | --targ | --tar | --ta | --t)
1196+    ac_prev=target ;;
1197+  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1198+    target="$ac_optarg" ;;
1199+
1200+  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1201+    verbose=yes ;;
1202+
1203+  -version | --version | --versio | --versi | --vers)
1204+    echo "configure generated by autoconf version 2.13"
1205+    exit 0 ;;
1206+
1207+  -with-* | --with-*)
1208+    ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
1209+    # Reject names that are not valid shell variable names.
1210+    if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
1211+      { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
1212+    fi
1213+    ac_package=`echo $ac_package| sed 's/-/_/g'`
1214+    case "$ac_option" in
1215+      *=*) ;;
1216+      *) ac_optarg=yes ;;
1217+    esac
1218+    eval "with_${ac_package}='$ac_optarg'" ;;
1219+
1220+  -without-* | --without-*)
1221+    ac_package=`echo $ac_option|sed -e 's/-*without-//'`
1222+    # Reject names that are not valid shell variable names.
1223+    if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
1224+      { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
1225+    fi
1226+    ac_package=`echo $ac_package| sed 's/-/_/g'`
1227+    eval "with_${ac_package}=no" ;;
1228+
1229+  --x)
1230+    # Obsolete; use --with-x.
1231+    with_x=yes ;;
1232+
1233+  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1234+  | --x-incl | --x-inc | --x-in | --x-i)
1235+    ac_prev=x_includes ;;
1236+  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1237+  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1238+    x_includes="$ac_optarg" ;;
1239+
1240+  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1241+  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1242+    ac_prev=x_libraries ;;
1243+  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1244+  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1245+    x_libraries="$ac_optarg" ;;
1246+
1247+  -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
1248+    ;;
1249+
1250+  *)
1251+    if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
1252+      echo "configure: warning: $ac_option: invalid host type" 1>&2
1253+    fi
1254+    if test "x$nonopt" != xNONE; then
1255+      { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
1256+    fi
1257+    nonopt="$ac_option"
1258+    ;;
1259+
1260+  esac
1261+done
1262+
1263+if test -n "$ac_prev"; then
1264+  { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
1265+fi
1266+
1267+trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
1268+
1269+# File descriptor usage:
1270+# 0 standard input
1271+# 1 file creation
1272+# 2 errors and warnings
1273+# 3 some systems may open it to /dev/tty
1274+# 4 used on the Kubota Titan
1275+# 6 checking for... messages and results
1276+# 5 compiler messages saved in config.log
1277+if test "$silent" = yes; then
1278+  exec 6>/dev/null
1279+else
1280+  exec 6>&1
1281+fi
1282+exec 5>./config.log
1283+
1284+echo "\
1285+This file contains any messages produced by compilers while
1286+running configure, to aid debugging if configure makes a mistake.
1287+" 1>&5
1288+
1289+# Strip out --no-create and --no-recursion so they do not pile up.
1290+# Also quote any args containing shell metacharacters.
1291+ac_configure_args=
1292+for ac_arg
1293+do
1294+  case "$ac_arg" in
1295+  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1296+  | --no-cr | --no-c) ;;
1297+  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1298+  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
1299+  *" "*|*"     "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
1300+  ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1301+  *) ac_configure_args="$ac_configure_args $ac_arg" ;;
1302+  esac
1303+done
1304+
1305+# NLS nuisances.
1306+# Only set these to C if already set.  These must not be set unconditionally
1307+# because not all systems understand e.g. LANG=C (notably SCO).
1308+# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
1309+# Non-C LC_CTYPE values break the ctype check.
1310+if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
1311+if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
1312+if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
1313+if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
1314+
1315+# confdefs.h avoids OS command line length limits that DEFS can exceed.
1316+rm -rf conftest* confdefs.h
1317+# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1318+echo > confdefs.h
1319+
1320+# A filename unique to this package, relative to the directory that
1321+# configure is in, which we can look for to find out if srcdir is correct.
1322+ac_unique_file=Makefile.am
1323+
1324+# Find the source files, if location was not specified.
1325+if test -z "$srcdir"; then
1326+  ac_srcdir_defaulted=yes
1327+  # Try the directory containing this script, then its parent.
1328+  ac_prog=$0
1329+  ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
1330+  test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
1331+  srcdir=$ac_confdir
1332+  if test ! -r $srcdir/$ac_unique_file; then
1333+    srcdir=..
1334+  fi
1335+else
1336+  ac_srcdir_defaulted=no
1337+fi
1338+if test ! -r $srcdir/$ac_unique_file; then
1339+  if test "$ac_srcdir_defaulted" = yes; then
1340+    { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
1341+  else
1342+    { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
1343+  fi
1344+fi
1345+srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
1346+
1347+# Prefer explicitly selected file to automatically selected ones.
1348+if test -z "$CONFIG_SITE"; then
1349+  if test "x$prefix" != xNONE; then
1350+    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1351+  else
1352+    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1353+  fi
1354+fi
1355+for ac_site_file in $CONFIG_SITE; do
1356+  if test -r "$ac_site_file"; then
1357+    echo "loading site script $ac_site_file"
1358+    . "$ac_site_file"
1359+  fi
1360+done
1361+
1362+if test -r "$cache_file"; then
1363+  echo "loading cache $cache_file"
1364+  . $cache_file
1365+else
1366+  echo "creating cache $cache_file"
1367+  > $cache_file
1368+fi
1369+
1370+ac_ext=c
1371+# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1372+ac_cpp='$CPP $CPPFLAGS'
1373+ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1374+ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1375+cross_compiling=$ac_cv_prog_cc_cross
1376+
1377+ac_exeext=
1378+ac_objext=o
1379+if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
1380+  # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
1381+  if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
1382+    ac_n= ac_c='
1383+' ac_t='       '
1384+  else
1385+    ac_n=-n ac_c= ac_t=
1386+  fi
1387+else
1388+  ac_n= ac_c='\c' ac_t=
1389+fi
1390+
1391+
1392+
1393+ac_aux_dir=
1394+for ac_dir in ../../../.. $srcdir/../../../..; do
1395+  if test -f $ac_dir/install-sh; then
1396+    ac_aux_dir=$ac_dir
1397+    ac_install_sh="$ac_aux_dir/install-sh -c"
1398+    break
1399+  elif test -f $ac_dir/install.sh; then
1400+    ac_aux_dir=$ac_dir
1401+    ac_install_sh="$ac_aux_dir/install.sh -c"
1402+    break
1403+  fi
1404+done
1405+if test -z "$ac_aux_dir"; then
1406+  { echo "configure: error: can not find install-sh or install.sh in ../../../.. $srcdir/../../../.." 1>&2; exit 1; }
1407+fi
1408+ac_config_guess=$ac_aux_dir/config.guess
1409+ac_config_sub=$ac_aux_dir/config.sub
1410+ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
1411+
1412+
1413+am__api_version="1.4"
1414+# Find a good install program.  We prefer a C program (faster),
1415+# so one script is as good as another.  But avoid the broken or
1416+# incompatible versions:
1417+# SysV /etc/install, /usr/sbin/install
1418+# SunOS /usr/etc/install
1419+# IRIX /sbin/install
1420+# AIX /bin/install
1421+# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1422+# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1423+# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1424+# ./install, which can be erroneously created by make from ./install.sh.
1425+echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1426+echo "configure:578: checking for a BSD compatible install" >&5
1427+if test -z "$INSTALL"; then
1428+if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1429+  echo $ac_n "(cached) $ac_c" 1>&6
1430+else
1431+    IFS="${IFS=        }"; ac_save_IFS="$IFS"; IFS=":"
1432+  for ac_dir in $PATH; do
1433+    # Account for people who put trailing slashes in PATH elements.
1434+    case "$ac_dir/" in
1435+    /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1436+    *)
1437+      # OSF1 and SCO ODT 3.0 have their own names for install.
1438+      # Don't use installbsd from OSF since it installs stuff as root
1439+      # by default.
1440+      for ac_prog in ginstall scoinst install; do
1441+        if test -f $ac_dir/$ac_prog; then
1442+         if test $ac_prog = install &&
1443+            grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1444+           # AIX install.  It has an incompatible calling convention.
1445+           :
1446+         else
1447+           ac_cv_path_install="$ac_dir/$ac_prog -c"
1448+           break 2
1449+         fi
1450+       fi
1451+      done
1452+      ;;
1453+    esac
1454+  done
1455+  IFS="$ac_save_IFS"
1456+
1457+fi
1458+  if test "${ac_cv_path_install+set}" = set; then
1459+    INSTALL="$ac_cv_path_install"
1460+  else
1461+    # As a last resort, use the slow shell script.  We don't cache a
1462+    # path for INSTALL within a source directory, because that will
1463+    # break other packages using the cache if that directory is
1464+    # removed, or if the path is relative.
1465+    INSTALL="$ac_install_sh"
1466+  fi
1467+fi
1468+echo "$ac_t""$INSTALL" 1>&6
1469+
1470+# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1471+# It thinks the first close brace ends the variable substitution.
1472+test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1473+
1474+test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1475+
1476+test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1477+
1478+echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
1479+echo "configure:631: checking whether build environment is sane" >&5
1480+# Just in case
1481+sleep 1
1482+echo timestamp > conftestfile
1483+# Do `set' in a subshell so we don't clobber the current shell's
1484+# arguments.  Must try -L first in case configure is actually a
1485+# symlink; some systems play weird games with the mod time of symlinks
1486+# (eg FreeBSD returns the mod time of the symlink's containing
1487+# directory).
1488+if (
1489+   set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
1490+   if test "$*" = "X"; then
1491+      # -L didn't work.
1492+      set X `ls -t $srcdir/configure conftestfile`
1493+   fi
1494+   if test "$*" != "X $srcdir/configure conftestfile" \
1495+      && test "$*" != "X conftestfile $srcdir/configure"; then
1496+
1497+      # If neither matched, then we have a broken ls.  This can happen
1498+      # if, for instance, CONFIG_SHELL is bash and it inherits a
1499+      # broken ls alias from the environment.  This has actually
1500+      # happened.  Such a system could not be considered "sane".
1501+      { echo "configure: error: ls -t appears to fail.  Make sure there is not a broken
1502+alias in your environment" 1>&2; exit 1; }
1503+   fi
1504+
1505+   test "$2" = conftestfile
1506+   )
1507+then
1508+   # Ok.
1509+   :
1510+else
1511+   { echo "configure: error: newly created file is older than distributed files!
1512+Check your system clock" 1>&2; exit 1; }
1513+fi
1514+rm -f conftest*
1515+echo "$ac_t""yes" 1>&6
1516+if test "$program_transform_name" = s,x,x,; then
1517+  program_transform_name=
1518+else
1519+  # Double any \ or $.  echo might interpret backslashes.
1520+  cat <<\EOF_SED > conftestsed
1521+s,\\,\\\\,g; s,\$,$$,g
1522+EOF_SED
1523+  program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
1524+  rm -f conftestsed
1525+fi
1526+test "$program_prefix" != NONE &&
1527+  program_transform_name="s,^,${program_prefix},; $program_transform_name"
1528+# Use a double $ so make ignores it.
1529+test "$program_suffix" != NONE &&
1530+  program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
1531+
1532+# sed with no file args requires a program.
1533+test "$program_transform_name" = "" && program_transform_name="s,x,x,"
1534+
1535+echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1536+echo "configure:688: checking whether ${MAKE-make} sets \${MAKE}" >&5
1537+set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
1538+if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1539+  echo $ac_n "(cached) $ac_c" 1>&6
1540+else
1541+  cat > conftestmake <<\EOF
1542+all:
1543+       @echo 'ac_maketemp="${MAKE}"'
1544+EOF
1545+# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1546+eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1547+if test -n "$ac_maketemp"; then
1548+  eval ac_cv_prog_make_${ac_make}_set=yes
1549+else
1550+  eval ac_cv_prog_make_${ac_make}_set=no
1551+fi
1552+rm -f conftestmake
1553+fi
1554+if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1555+  echo "$ac_t""yes" 1>&6
1556+  SET_MAKE=
1557+else
1558+  echo "$ac_t""no" 1>&6
1559+  SET_MAKE="MAKE=${MAKE-make}"
1560+fi
1561+
1562+if test $host != $build; then
1563+  ac_tool_prefix=${host_alias}-
1564+else
1565+  ac_tool_prefix=
1566+fi
1567+
1568+echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
1569+echo "configure:721: checking for Cygwin environment" >&5
1570+if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
1571+  echo $ac_n "(cached) $ac_c" 1>&6
1572+else
1573+  cat > conftest.$ac_ext <<EOF
1574+#line 726 "configure"
1575+#include "confdefs.h"
1576+
1577+int main() {
1578+
1579+#ifndef __CYGWIN__
1580+#define __CYGWIN__ __CYGWIN32__
1581+#endif
1582+return __CYGWIN__;
1583+; return 0; }
1584+EOF
1585+if { (eval echo configure:737: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1586+  rm -rf conftest*
1587+  ac_cv_cygwin=yes
1588+else
1589+  echo "configure: failed program was:" >&5
1590+  cat conftest.$ac_ext >&5
1591+  rm -rf conftest*
1592+  ac_cv_cygwin=no
1593+fi
1594+rm -f conftest*
1595+rm -f conftest*
1596+fi
1597+
1598+echo "$ac_t""$ac_cv_cygwin" 1>&6
1599+CYGWIN=
1600+test "$ac_cv_cygwin" = yes && CYGWIN=yes
1601+echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
1602+echo "configure:754: checking for mingw32 environment" >&5
1603+if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
1604+  echo $ac_n "(cached) $ac_c" 1>&6
1605+else
1606+  cat > conftest.$ac_ext <<EOF
1607+#line 759 "configure"
1608+#include "confdefs.h"
1609+
1610+int main() {
1611+return __MINGW32__;
1612+; return 0; }
1613+EOF
1614+if { (eval echo configure:766: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1615+  rm -rf conftest*
1616+  ac_cv_mingw32=yes
1617+else
1618+  echo "configure: failed program was:" >&5
1619+  cat conftest.$ac_ext >&5
1620+  rm -rf conftest*
1621+  ac_cv_mingw32=no
1622+fi
1623+rm -f conftest*
1624+rm -f conftest*
1625+fi
1626+
1627+echo "$ac_t""$ac_cv_mingw32" 1>&6
1628+MINGW32=
1629+test "$ac_cv_mingw32" = yes && MINGW32=yes
1630+
1631+# Check whether --enable-multilib or --disable-multilib was given.
1632+if test "${enable_multilib+set}" = set; then
1633+  enableval="$enable_multilib"
1634+  case "${enableval}" in
1635+  yes) multilib=yes ;;
1636+  no)  multilib=no ;;
1637+  *)   { echo "configure: error: bad value ${enableval} for multilib option" 1>&2; exit 1; } ;;
1638+ esac
1639+else
1640+  multilib=yes
1641+fi
1642+
1643+# Check whether --enable-target-optspace or --disable-target-optspace was given.
1644+if test "${enable_target_optspace+set}" = set; then
1645+  enableval="$enable_target_optspace"
1646+  case "${enableval}" in
1647+  yes) target_optspace=yes ;;
1648+  no)  target_optspace=no ;;
1649+  *)   { echo "configure: error: bad value ${enableval} for target-optspace option" 1>&2; exit 1; } ;;
1650+ esac
1651+else
1652+  target_optspace=
1653+fi
1654+
1655+# Check whether --enable-malloc-debugging or --disable-malloc-debugging was given.
1656+if test "${enable_malloc_debugging+set}" = set; then
1657+  enableval="$enable_malloc_debugging"
1658+  case "${enableval}" in
1659+  yes) malloc_debugging=yes ;;
1660+  no)  malloc_debugging=no ;;
1661+  *)   { echo "configure: error: bad value ${enableval} for malloc-debugging option" 1>&2; exit 1; } ;;
1662+ esac
1663+else
1664+  malloc_debugging=
1665+fi
1666+
1667+# Check whether --enable-newlib-multithread or --disable-newlib-multithread was given.
1668+if test "${enable_newlib_multithread+set}" = set; then
1669+  enableval="$enable_newlib_multithread"
1670+  case "${enableval}" in
1671+  yes) newlib_multithread=yes ;;
1672+  no)  newlib_multithread=no ;;
1673+  *)   { echo "configure: error: bad value ${enableval} for newlib-multithread option" 1>&2; exit 1; } ;;
1674+ esac
1675+else
1676+  newlib_multithread=yes
1677+fi
1678+
1679+# Check whether --enable-newlib-iconv or --disable-newlib-iconv was given.
1680+if test "${enable_newlib_iconv+set}" = set; then
1681+  enableval="$enable_newlib_iconv"
1682+  if test "${newlib_iconv+set}" != set; then
1683+   case "${enableval}" in
1684+     yes) newlib_iconv=yes ;;
1685+     no)  newlib_iconv=no ;;
1686+     *)   { echo "configure: error: bad value ${enableval} for newlib-iconv option" 1>&2; exit 1; } ;;
1687+   esac
1688+ fi
1689+else
1690+  newlib_iconv=${newlib_iconv}
1691+fi
1692+
1693+# Check whether --enable-newlib-elix-level or --disable-newlib-elix-level was given.
1694+if test "${enable_newlib_elix_level+set}" = set; then
1695+  enableval="$enable_newlib_elix_level"
1696+  case "${enableval}" in
1697+  0)   newlib_elix_level=0 ;;
1698+  1)   newlib_elix_level=1 ;;
1699+  2)   newlib_elix_level=2 ;;
1700+  3)   newlib_elix_level=3 ;;
1701+  4)   newlib_elix_level=4 ;;
1702+  *)   { echo "configure: error: bad value ${enableval} for newlib-elix-level option" 1>&2; exit 1; } ;;
1703+ esac
1704+else
1705+  newlib_elix_level=0
1706+fi
1707+
1708+# Check whether --enable-newlib-io-float or --disable-newlib-io-float was given.
1709+if test "${enable_newlib_io_float+set}" = set; then
1710+  enableval="$enable_newlib_io_float"
1711+  case "${enableval}" in
1712+  yes) newlib_io_float=yes ;;
1713+  no)  newlib_io_float=no ;;
1714+  *)   { echo "configure: error: bad value ${enableval} for newlib-io-float option" 1>&2; exit 1; } ;;
1715+ esac
1716+else
1717+  newlib_io_float=yes
1718+fi
1719+
1720+# Check whether --enable-newlib-supplied-syscalls or --disable-newlib-supplied-syscalls was given.
1721+if test "${enable_newlib_supplied_syscalls+set}" = set; then
1722+  enableval="$enable_newlib_supplied_syscalls"
1723+  case "${enableval}" in
1724+  yes) newlib_may_supply_syscalls=yes ;;
1725+  no)  newlib_may_supply_syscalls=no ;;
1726+  *)   { echo "configure: error: bad value ${enableval} for newlib-supplied-syscalls option" 1>&2; exit 1; } ;;
1727+ esac
1728+else
1729+  newlib_may_supply_syscalls=yes
1730+fi
1731+
1732+
1733+
1734+if test x${newlib_may_supply_syscalls} = xyes; then
1735+  MAY_SUPPLY_SYSCALLS_TRUE=
1736+  MAY_SUPPLY_SYSCALLS_FALSE='#'
1737+else
1738+  MAY_SUPPLY_SYSCALLS_TRUE='#'
1739+  MAY_SUPPLY_SYSCALLS_FALSE=
1740+fi
1741+
1742+
1743+test -z "${with_target_subdir}" && with_target_subdir=.
1744+
1745+if test "${srcdir}" = "."; then
1746+  if test "${with_target_subdir}" != "."; then
1747+    newlib_basedir="${srcdir}/${with_multisrctop}../../../.."
1748+  else
1749+    newlib_basedir="${srcdir}/${with_multisrctop}../../.."
1750+  fi
1751+else
1752+  newlib_basedir="${srcdir}/../../.."
1753+fi
1754+
1755+
1756+
1757+# Do some error checking and defaulting for the host and target type.
1758+# The inputs are:
1759+#    configure --host=HOST --target=TARGET --build=BUILD NONOPT
1760+#
1761+# The rules are:
1762+# 1. You are not allowed to specify --host, --target, and nonopt at the
1763+#    same time.
1764+# 2. Host defaults to nonopt.
1765+# 3. If nonopt is not specified, then host defaults to the current host,
1766+#    as determined by config.guess.
1767+# 4. Target and build default to nonopt.
1768+# 5. If nonopt is not specified, then target and build default to host.
1769+
1770+# The aliases save the names the user supplied, while $host etc.
1771+# will get canonicalized.
1772+case $host---$target---$nonopt in
1773+NONE---*---* | *---NONE---* | *---*---NONE) ;;
1774+*) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
1775+esac
1776+
1777+
1778+# Make sure we can run config.sub.
1779+if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
1780+else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1781+fi
1782+
1783+echo $ac_n "checking host system type""... $ac_c" 1>&6
1784+echo "configure:936: checking host system type" >&5
1785+
1786+host_alias=$host
1787+case "$host_alias" in
1788+NONE)
1789+  case $nonopt in
1790+  NONE)
1791+    if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1792+    else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1793+    fi ;;
1794+  *) host_alias=$nonopt ;;
1795+  esac ;;
1796+esac
1797+
1798+host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1799+host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1800+host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1801+host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1802+echo "$ac_t""$host" 1>&6
1803+
1804+echo $ac_n "checking target system type""... $ac_c" 1>&6
1805+echo "configure:957: checking target system type" >&5
1806+
1807+target_alias=$target
1808+case "$target_alias" in
1809+NONE)
1810+  case $nonopt in
1811+  NONE) target_alias=$host_alias ;;
1812+  *) target_alias=$nonopt ;;
1813+  esac ;;
1814+esac
1815+
1816+target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
1817+target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1818+target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1819+target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1820+echo "$ac_t""$target" 1>&6
1821+
1822+echo $ac_n "checking build system type""... $ac_c" 1>&6
1823+echo "configure:975: checking build system type" >&5
1824+
1825+build_alias=$build
1826+case "$build_alias" in
1827+NONE)
1828+  case $nonopt in
1829+  NONE) build_alias=$host_alias ;;
1830+  *) build_alias=$nonopt ;;
1831+  esac ;;
1832+esac
1833+
1834+build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1835+build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1836+build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1837+build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1838+echo "$ac_t""$build" 1>&6
1839+
1840+test "$host_alias" != "$target_alias" &&
1841+  test "$program_prefix$program_suffix$program_transform_name" = \
1842+    NONENONEs,x,x, &&
1843+  program_prefix=${target_alias}-
1844+
1845+
1846+
1847+PACKAGE=newlib
1848+
1849+VERSION=1.14.0
1850+
1851+if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
1852+  { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
1853+fi
1854+cat >> confdefs.h <<EOF
1855+#define PACKAGE "$PACKAGE"
1856+EOF
1857+
1858+cat >> confdefs.h <<EOF
1859+#define VERSION "$VERSION"
1860+EOF
1861+
1862+
1863+
1864+missing_dir=`cd $ac_aux_dir && pwd`
1865+echo $ac_n "checking for working aclocal-${am__api_version}""... $ac_c" 1>&6
1866+echo "configure:1018: checking for working aclocal-${am__api_version}" >&5
1867+# Run test in a subshell; some versions of sh will print an error if
1868+# an executable is not found, even if stderr is redirected.
1869+# Redirect stdin to placate older versions of autoconf.  Sigh.
1870+if (aclocal-${am__api_version} --version) < /dev/null > /dev/null 2>&1; then
1871+   ACLOCAL=aclocal-${am__api_version}
1872+   echo "$ac_t""found" 1>&6
1873+else
1874+   ACLOCAL="$missing_dir/missing aclocal-${am__api_version}"
1875+   echo "$ac_t""missing" 1>&6
1876+fi
1877+
1878+echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
1879+echo "configure:1031: checking for working autoconf" >&5
1880+# Run test in a subshell; some versions of sh will print an error if
1881+# an executable is not found, even if stderr is redirected.
1882+# Redirect stdin to placate older versions of autoconf.  Sigh.
1883+if (autoconf --version) < /dev/null > /dev/null 2>&1; then
1884+   AUTOCONF=autoconf
1885+   echo "$ac_t""found" 1>&6
1886+else
1887+   AUTOCONF="$missing_dir/missing autoconf"
1888+   echo "$ac_t""missing" 1>&6
1889+fi
1890+
1891+echo $ac_n "checking for working automake-${am__api_version}""... $ac_c" 1>&6
1892+echo "configure:1044: checking for working automake-${am__api_version}" >&5
1893+# Run test in a subshell; some versions of sh will print an error if
1894+# an executable is not found, even if stderr is redirected.
1895+# Redirect stdin to placate older versions of autoconf.  Sigh.
1896+if (automake-${am__api_version} --version) < /dev/null > /dev/null 2>&1; then
1897+   AUTOMAKE=automake-${am__api_version}
1898+   echo "$ac_t""found" 1>&6
1899+else
1900+   AUTOMAKE="$missing_dir/missing automake-${am__api_version}"
1901+   echo "$ac_t""missing" 1>&6
1902+fi
1903+
1904+echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
1905+echo "configure:1057: checking for working autoheader" >&5
1906+# Run test in a subshell; some versions of sh will print an error if
1907+# an executable is not found, even if stderr is redirected.
1908+# Redirect stdin to placate older versions of autoconf.  Sigh.
1909+if (autoheader --version) < /dev/null > /dev/null 2>&1; then
1910+   AUTOHEADER=autoheader
1911+   echo "$ac_t""found" 1>&6
1912+else
1913+   AUTOHEADER="$missing_dir/missing autoheader"
1914+   echo "$ac_t""missing" 1>&6
1915+fi
1916+
1917+echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
1918+echo "configure:1070: checking for working makeinfo" >&5
1919+# Run test in a subshell; some versions of sh will print an error if
1920+# an executable is not found, even if stderr is redirected.
1921+# Redirect stdin to placate older versions of autoconf.  Sigh.
1922+if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1923+   MAKEINFO=makeinfo
1924+   echo "$ac_t""found" 1>&6
1925+else
1926+   MAKEINFO="$missing_dir/missing makeinfo"
1927+   echo "$ac_t""missing" 1>&6
1928+fi
1929+
1930+
1931+
1932+# FIXME: We temporarily define our own version of AC_PROG_CC.  This is
1933+# copied from autoconf 2.12, but does not call AC_PROG_CC_WORKS.  We
1934+# are probably using a cross compiler, which will not be able to fully
1935+# link an executable.  This should really be fixed in autoconf
1936+# itself.
1937+
1938+
1939+
1940+# Extract the first word of "gcc", so it can be a program name with args.
1941+set dummy gcc; ac_word=$2
1942+echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1943+echo "configure:1095: checking for $ac_word" >&5
1944+if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1945+  echo $ac_n "(cached) $ac_c" 1>&6
1946+else
1947+  if test -n "$CC"; then
1948+  ac_cv_prog_CC="$CC" # Let the user override the test.
1949+else
1950+  IFS="${IFS=  }"; ac_save_ifs="$IFS"; IFS=":"
1951+  ac_dummy="$PATH"
1952+  for ac_dir in $ac_dummy; do
1953+    test -z "$ac_dir" && ac_dir=.
1954+    if test -f $ac_dir/$ac_word; then
1955+      ac_cv_prog_CC="gcc"
1956+      break
1957+    fi
1958+  done
1959+  IFS="$ac_save_ifs"
1960+fi
1961+fi
1962+CC="$ac_cv_prog_CC"
1963+if test -n "$CC"; then
1964+  echo "$ac_t""$CC" 1>&6
1965+else
1966+  echo "$ac_t""no" 1>&6
1967+fi
1968+
1969+if test -z "$CC"; then
1970+  # Extract the first word of "cc", so it can be a program name with args.
1971+set dummy cc; ac_word=$2
1972+echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1973+echo "configure:1125: checking for $ac_word" >&5
1974+if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1975+  echo $ac_n "(cached) $ac_c" 1>&6
1976+else
1977+  if test -n "$CC"; then
1978+  ac_cv_prog_CC="$CC" # Let the user override the test.
1979+else
1980+  IFS="${IFS=  }"; ac_save_ifs="$IFS"; IFS=":"
1981+  ac_prog_rejected=no
1982+  ac_dummy="$PATH"
1983+  for ac_dir in $ac_dummy; do
1984+    test -z "$ac_dir" && ac_dir=.
1985+    if test -f $ac_dir/$ac_word; then
1986+      if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1987+        ac_prog_rejected=yes
1988+       continue
1989+      fi
1990+      ac_cv_prog_CC="cc"
1991+      break
1992+    fi
1993+  done
1994+  IFS="$ac_save_ifs"
1995+if test $ac_prog_rejected = yes; then
1996+  # We found a bogon in the path, so make sure we never use it.
1997+  set dummy $ac_cv_prog_CC
1998+  shift
1999+  if test $# -gt 0; then
2000+    # We chose a different compiler from the bogus one.
2001+    # However, it has the same basename, so the bogon will be chosen
2002+    # first if we set CC to just the basename; use the full file name.
2003+    shift
2004+    set dummy "$ac_dir/$ac_word" "$@"
2005+    shift
2006+    ac_cv_prog_CC="$@"
2007+  fi
2008+fi
2009+fi
2010+fi
2011+CC="$ac_cv_prog_CC"
2012+if test -n "$CC"; then
2013+  echo "$ac_t""$CC" 1>&6
2014+else
2015+  echo "$ac_t""no" 1>&6
2016+fi
2017+
2018+  test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
2019+fi
2020+
2021+echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
2022+echo "configure:1174: checking whether we are using GNU C" >&5
2023+if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
2024+  echo $ac_n "(cached) $ac_c" 1>&6
2025+else
2026+  cat > conftest.c <<EOF
2027+#ifdef __GNUC__
2028+  yes;
2029+#endif
2030+EOF
2031+if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1183: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
2032+  ac_cv_prog_gcc=yes
2033+else
2034+  ac_cv_prog_gcc=no
2035+fi
2036+fi
2037+
2038+echo "$ac_t""$ac_cv_prog_gcc" 1>&6
2039+
2040+if test $ac_cv_prog_gcc = yes; then
2041+  GCC=yes
2042+  ac_test_CFLAGS="${CFLAGS+set}"
2043+  ac_save_CFLAGS="$CFLAGS"
2044+  CFLAGS=
2045+  echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
2046+echo "configure:1198: checking whether ${CC-cc} accepts -g" >&5
2047+if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
2048+  echo $ac_n "(cached) $ac_c" 1>&6
2049+else
2050+  echo 'void f(){}' > conftest.c
2051+if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2052+  ac_cv_prog_cc_g=yes
2053+else
2054+  ac_cv_prog_cc_g=no
2055+fi
2056+rm -f conftest*
2057+
2058+fi
2059+
2060+echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
2061+  if test "$ac_test_CFLAGS" = set; then
2062+    CFLAGS="$ac_save_CFLAGS"
2063+  elif test $ac_cv_prog_cc_g = yes; then
2064+    CFLAGS="-g -O2"
2065+  else
2066+    CFLAGS="-O2"
2067+  fi
2068+else
2069+  GCC=
2070+  test "${CFLAGS+set}" = set || CFLAGS="-g"
2071+fi
2072+
2073+
2074+# Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
2075+set dummy ${ac_tool_prefix}as; ac_word=$2
2076+echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2077+echo "configure:1229: checking for $ac_word" >&5
2078+if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
2079+  echo $ac_n "(cached) $ac_c" 1>&6
2080+else
2081+  if test -n "$AS"; then
2082+  ac_cv_prog_AS="$AS" # Let the user override the test.
2083+else
2084+  IFS="${IFS=  }"; ac_save_ifs="$IFS"; IFS=":"
2085+  ac_dummy="$PATH"
2086+  for ac_dir in $ac_dummy; do
2087+    test -z "$ac_dir" && ac_dir=.
2088+    if test -f $ac_dir/$ac_word; then
2089+      ac_cv_prog_AS="${ac_tool_prefix}as"
2090+      break
2091+    fi
2092+  done
2093+  IFS="$ac_save_ifs"
2094+  test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="as"
2095+fi
2096+fi
2097+AS="$ac_cv_prog_AS"
2098+if test -n "$AS"; then
2099+  echo "$ac_t""$AS" 1>&6
2100+else
2101+  echo "$ac_t""no" 1>&6
2102+fi
2103+
2104+
2105+
2106+# Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
2107+set dummy ${ac_tool_prefix}ar; ac_word=$2
2108+echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2109+echo "configure:1261: checking for $ac_word" >&5
2110+if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
2111+  echo $ac_n "(cached) $ac_c" 1>&6
2112+else
2113+  if test -n "$AR"; then
2114+  ac_cv_prog_AR="$AR" # Let the user override the test.
2115+else
2116+  IFS="${IFS=  }"; ac_save_ifs="$IFS"; IFS=":"
2117+  ac_dummy="$PATH"
2118+  for ac_dir in $ac_dummy; do
2119+    test -z "$ac_dir" && ac_dir=.
2120+    if test -f $ac_dir/$ac_word; then
2121+      ac_cv_prog_AR="${ac_tool_prefix}ar"
2122+      break
2123+    fi
2124+  done
2125+  IFS="$ac_save_ifs"
2126+  test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
2127+fi
2128+fi
2129+AR="$ac_cv_prog_AR"
2130+if test -n "$AR"; then
2131+  echo "$ac_t""$AR" 1>&6
2132+else
2133+  echo "$ac_t""no" 1>&6
2134+fi
2135+
2136+
2137+
2138+# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2139+set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2140+echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2141+echo "configure:1293: checking for $ac_word" >&5
2142+if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2143+  echo $ac_n "(cached) $ac_c" 1>&6
2144+else
2145+  if test -n "$RANLIB"; then
2146+  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2147+else
2148+  IFS="${IFS=  }"; ac_save_ifs="$IFS"; IFS=":"
2149+  ac_dummy="$PATH"
2150+  for ac_dir in $ac_dummy; do
2151+    test -z "$ac_dir" && ac_dir=.
2152+    if test -f $ac_dir/$ac_word; then
2153+      ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2154+      break
2155+    fi
2156+  done
2157+  IFS="$ac_save_ifs"
2158+fi
2159+fi
2160+RANLIB="$ac_cv_prog_RANLIB"
2161+if test -n "$RANLIB"; then
2162+  echo "$ac_t""$RANLIB" 1>&6
2163+else
2164+  echo "$ac_t""no" 1>&6
2165+fi
2166+
2167+
2168+if test -z "$ac_cv_prog_RANLIB"; then
2169+if test -n "$ac_tool_prefix"; then
2170+  # Extract the first word of "ranlib", so it can be a program name with args.
2171+set dummy ranlib; ac_word=$2
2172+echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2173+echo "configure:1325: checking for $ac_word" >&5
2174+if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2175+  echo $ac_n "(cached) $ac_c" 1>&6
2176+else
2177+  if test -n "$RANLIB"; then
2178+  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2179+else
2180+  IFS="${IFS=  }"; ac_save_ifs="$IFS"; IFS=":"
2181+  ac_dummy="$PATH"
2182+  for ac_dir in $ac_dummy; do
2183+    test -z "$ac_dir" && ac_dir=.
2184+    if test -f $ac_dir/$ac_word; then
2185+      ac_cv_prog_RANLIB="ranlib"
2186+      break
2187+    fi
2188+  done
2189+  IFS="$ac_save_ifs"
2190+  test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2191+fi
2192+fi
2193+RANLIB="$ac_cv_prog_RANLIB"
2194+if test -n "$RANLIB"; then
2195+  echo "$ac_t""$RANLIB" 1>&6
2196+else
2197+  echo "$ac_t""no" 1>&6
2198+fi
2199+
2200+else
2201+  RANLIB=":"
2202+fi
2203+fi
2204+
2205+
2206+# Find a good install program.  We prefer a C program (faster),
2207+# so one script is as good as another.  But avoid the broken or
2208+# incompatible versions:
2209+# SysV /etc/install, /usr/sbin/install
2210+# SunOS /usr/etc/install
2211+# IRIX /sbin/install
2212+# AIX /bin/install
2213+# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2214+# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2215+# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2216+# ./install, which can be erroneously created by make from ./install.sh.
2217+echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
2218+echo "configure:1370: checking for a BSD compatible install" >&5
2219+if test -z "$INSTALL"; then
2220+if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
2221+  echo $ac_n "(cached) $ac_c" 1>&6
2222+else
2223+    IFS="${IFS=        }"; ac_save_IFS="$IFS"; IFS=":"
2224+  for ac_dir in $PATH; do
2225+    # Account for people who put trailing slashes in PATH elements.
2226+    case "$ac_dir/" in
2227+    /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
2228+    *)
2229+      # OSF1 and SCO ODT 3.0 have their own names for install.
2230+      # Don't use installbsd from OSF since it installs stuff as root
2231+      # by default.
2232+      for ac_prog in ginstall scoinst install; do
2233+        if test -f $ac_dir/$ac_prog; then
2234+         if test $ac_prog = install &&
2235+            grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
2236+           # AIX install.  It has an incompatible calling convention.
2237+           :
2238+         else
2239+           ac_cv_path_install="$ac_dir/$ac_prog -c"
2240+           break 2
2241+         fi
2242+       fi
2243+      done
2244+      ;;
2245+    esac
2246+  done
2247+  IFS="$ac_save_IFS"
2248+
2249+fi
2250+  if test "${ac_cv_path_install+set}" = set; then
2251+    INSTALL="$ac_cv_path_install"
2252+  else
2253+    # As a last resort, use the slow shell script.  We don't cache a
2254+    # path for INSTALL within a source directory, because that will
2255+    # break other packages using the cache if that directory is
2256+    # removed, or if the path is relative.
2257+    INSTALL="$ac_install_sh"
2258+  fi
2259+fi
2260+echo "$ac_t""$INSTALL" 1>&6
2261+
2262+# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2263+# It thinks the first close brace ends the variable substitution.
2264+test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2265+
2266+test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
2267+
2268+test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2269+
2270+
2271+echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
2272+echo "configure:1424: checking whether to enable maintainer-specific portions of Makefiles" >&5
2273+    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
2274+if test "${enable_maintainer_mode+set}" = set; then
2275+  enableval="$enable_maintainer_mode"
2276+  USE_MAINTAINER_MODE=$enableval
2277+else
2278+  USE_MAINTAINER_MODE=no
2279+fi
2280+
2281+  echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
2282
2283+
2284+if test $USE_MAINTAINER_MODE = yes; then
2285+  MAINTAINER_MODE_TRUE=
2286+  MAINTAINER_MODE_FALSE='#'
2287+else
2288+  MAINTAINER_MODE_TRUE='#'
2289+  MAINTAINER_MODE_FALSE=
2290+fi
2291+  MAINT=$MAINTAINER_MODE_TRUE
2292
2293+
2294+
2295+# We need AC_EXEEXT to keep automake happy in cygnus mode.  However,
2296+# at least currently, we never actually build a program, so we never
2297+# need to use $(EXEEXT).  Moreover, the test for EXEEXT normally
2298+# fails, because we are probably configuring with a cross compiler
2299+# which can't create executables.  So we include AC_EXEEXT to keep
2300+# automake happy, but we don't execute it, since we don't care about
2301+# the result.
2302+if false; then
2303
2304+
2305+echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
2306+echo "configure:1458: checking for executable suffix" >&5
2307+if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
2308+  echo $ac_n "(cached) $ac_c" 1>&6
2309+else
2310+  if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
2311+  ac_cv_exeext=.exe
2312+else
2313+  rm -f conftest*
2314+  echo 'int main () { return 0; }' > conftest.$ac_ext
2315+  ac_cv_exeext=
2316+  if { (eval echo configure:1468: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
2317+    for file in conftest.*; do
2318+      case $file in
2319+      *.c | *.o | *.obj) ;;
2320+      *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
2321+      esac
2322+    done
2323+  else
2324+    { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
2325+  fi
2326+  rm -f conftest*
2327+  test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
2328+fi
2329+fi
2330+
2331+EXEEXT=""
2332+test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
2333+echo "$ac_t""${ac_cv_exeext}" 1>&6
2334+ac_exeext=$EXEEXT
2335+
2336+fi
2337+
2338+. ${newlib_basedir}/configure.host
2339+
2340+newlib_cflags="${newlib_cflags} -fno-builtin"
2341+
2342+NEWLIB_CFLAGS=${newlib_cflags}
2343+
2344+
2345+LDFLAGS=${ldflags}
2346+
2347+
2348+
2349+
2350+if test x${newlib_elix_level} = x0; then
2351+  ELIX_LEVEL_0_TRUE=
2352+  ELIX_LEVEL_0_FALSE='#'
2353+else
2354+  ELIX_LEVEL_0_TRUE='#'
2355+  ELIX_LEVEL_0_FALSE=
2356+fi
2357+
2358+
2359+if test x${newlib_elix_level} = x1; then
2360+  ELIX_LEVEL_1_TRUE=
2361+  ELIX_LEVEL_1_FALSE='#'
2362+else
2363+  ELIX_LEVEL_1_TRUE='#'
2364+  ELIX_LEVEL_1_FALSE=
2365+fi
2366+
2367+
2368+if test x${newlib_elix_level} = x2; then
2369+  ELIX_LEVEL_2_TRUE=
2370+  ELIX_LEVEL_2_FALSE='#'
2371+else
2372+  ELIX_LEVEL_2_TRUE='#'
2373+  ELIX_LEVEL_2_FALSE=
2374+fi
2375+
2376+
2377+if test x${newlib_elix_level} = x3; then
2378+  ELIX_LEVEL_3_TRUE=
2379+  ELIX_LEVEL_3_FALSE='#'
2380+else
2381+  ELIX_LEVEL_3_TRUE='#'
2382+  ELIX_LEVEL_3_FALSE=
2383+fi
2384+
2385+
2386+if test x${newlib_elix_level} = x4; then
2387+  ELIX_LEVEL_4_TRUE=
2388+  ELIX_LEVEL_4_FALSE='#'
2389+else
2390+  ELIX_LEVEL_4_TRUE='#'
2391+  ELIX_LEVEL_4_FALSE=
2392+fi
2393+
2394+
2395+
2396+if test x${use_libtool} = xyes; then
2397+  USE_LIBTOOL_TRUE=
2398+  USE_LIBTOOL_FALSE='#'
2399+else
2400+  USE_LIBTOOL_TRUE='#'
2401+  USE_LIBTOOL_FALSE=
2402+fi
2403+
2404+# Hard-code OBJEXT.  Normally it is set by AC_OBJEXT, but we
2405+# use oext, which is set in configure.host based on the target platform.
2406+OBJEXT=${oext}
2407+
2408+
2409+
2410+
2411+
2412+
2413+
2414+
2415+
2416+
2417+trap '' 1 2 15
2418+cat > confcache <<\EOF
2419+# This file is a shell script that caches the results of configure
2420+# tests run on this system so they can be shared between configure
2421+# scripts and configure runs.  It is not useful on other systems.
2422+# If it contains results you don't want to keep, you may remove or edit it.
2423+#
2424+# By default, configure uses ./config.cache as the cache file,
2425+# creating it if it does not exist already.  You can give configure
2426+# the --cache-file=FILE option to use a different cache file; that is
2427+# what configure does when it calls configure scripts in
2428+# subdirectories, so they share the cache.
2429+# Giving --cache-file=/dev/null disables caching, for debugging configure.
2430+# config.status only pays attention to the cache file if you give it the
2431+# --recheck option to rerun configure.
2432+#
2433+EOF
2434+# The following way of writing the cache mishandles newlines in values,
2435+# but we know of no workaround that is simple, portable, and efficient.
2436+# So, don't put newlines in cache variables' values.
2437+# Ultrix sh set writes to stderr and can't be redirected directly,
2438+# and sets the high bit in the cache file unless we assign to the vars.
2439+(set) 2>&1 |
2440+  case `(ac_space=' '; set | grep ac_space) 2>&1` in
2441+  *ac_space=\ *)
2442+    # `set' does not quote correctly, so add quotes (double-quote substitution
2443+    # turns \\\\ into \\, and sed turns \\ into \).
2444+    sed -n \
2445+      -e "s/'/'\\\\''/g" \
2446+      -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2447+    ;;
2448+  *)
2449+    # `set' quotes correctly as required by POSIX, so do not add quotes.
2450+    sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2451+    ;;
2452+  esac >> confcache
2453+if cmp -s $cache_file confcache; then
2454+  :
2455+else
2456+  if test -w $cache_file; then
2457+    echo "updating cache $cache_file"
2458+    cat confcache > $cache_file
2459+  else
2460+    echo "not updating unwritable cache $cache_file"
2461+  fi
2462+fi
2463+rm -f confcache
2464+
2465+trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
2466+
2467+test "x$prefix" = xNONE && prefix=$ac_default_prefix
2468+# Let make expand exec_prefix.
2469+test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
2470+
2471+# Any assignment to VPATH causes Sun make to only execute
2472+# the first set of double-colon rules, so remove it if not needed.
2473+# If there is a colon in the path, we need to keep it.
2474+if test "x$srcdir" = x.; then
2475+  ac_vpsub='/^[        ]*VPATH[        ]*=[^:]*$/d'
2476+fi
2477+
2478+trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
2479+
2480+# Transform confdefs.h into DEFS.
2481+# Protect against shell expansion while executing Makefile rules.
2482+# Protect against Makefile macro expansion.
2483+cat > conftest.defs <<\EOF
2484+s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
2485+s%[    `~#$^&*(){}\\|;'"<>?]%\\&%g
2486+s%\[%\\&%g
2487+s%\]%\\&%g
2488+s%\$%$$%g
2489+EOF
2490+DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
2491+rm -f conftest.defs
2492+
2493+
2494+# Without the "./", some shells look in PATH for config.status.
2495+: ${CONFIG_STATUS=./config.status}
2496+
2497+echo creating $CONFIG_STATUS
2498+rm -f $CONFIG_STATUS
2499+cat > $CONFIG_STATUS <<EOF
2500+#! /bin/sh
2501+# Generated automatically by configure.
2502+# Run this file to recreate the current configuration.
2503+# This directory was configured as follows,
2504+# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
2505+#
2506+# $0 $ac_configure_args
2507+#
2508+# Compiler output produced by configure, useful for debugging
2509+# configure, is in ./config.log if it exists.
2510+
2511+ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
2512+for ac_option
2513+do
2514+  case "\$ac_option" in
2515+  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
2516+    echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
2517+    exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
2518+  -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
2519+    echo "$CONFIG_STATUS generated by autoconf version 2.13"
2520+    exit 0 ;;
2521+  -help | --help | --hel | --he | --h)
2522+    echo "\$ac_cs_usage"; exit 0 ;;
2523+  *) echo "\$ac_cs_usage"; exit 1 ;;
2524+  esac
2525+done
2526+
2527+ac_given_srcdir=$srcdir
2528+ac_given_INSTALL="$INSTALL"
2529+
2530+trap 'rm -fr `echo "Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
2531+EOF
2532+cat >> $CONFIG_STATUS <<EOF
2533+
2534+# Protect against being on the right side of a sed subst in config.status.
2535+sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
2536+ s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
2537+$ac_vpsub
2538+$extrasub
2539+s%@SHELL@%$SHELL%g
2540+s%@CFLAGS@%$CFLAGS%g
2541+s%@CPPFLAGS@%$CPPFLAGS%g
2542+s%@CXXFLAGS@%$CXXFLAGS%g
2543+s%@FFLAGS@%$FFLAGS%g
2544+s%@DEFS@%$DEFS%g
2545+s%@LDFLAGS@%$LDFLAGS%g
2546+s%@LIBS@%$LIBS%g
2547+s%@exec_prefix@%$exec_prefix%g
2548+s%@prefix@%$prefix%g
2549+s%@program_transform_name@%$program_transform_name%g
2550+s%@bindir@%$bindir%g
2551+s%@sbindir@%$sbindir%g
2552+s%@libexecdir@%$libexecdir%g
2553+s%@datadir@%$datadir%g
2554+s%@sysconfdir@%$sysconfdir%g
2555+s%@sharedstatedir@%$sharedstatedir%g
2556+s%@localstatedir@%$localstatedir%g
2557+s%@libdir@%$libdir%g
2558+s%@includedir@%$includedir%g
2559+s%@oldincludedir@%$oldincludedir%g
2560+s%@infodir@%$infodir%g
2561+s%@mandir@%$mandir%g
2562+s%@MAY_SUPPLY_SYSCALLS_TRUE@%$MAY_SUPPLY_SYSCALLS_TRUE%g
2563+s%@MAY_SUPPLY_SYSCALLS_FALSE@%$MAY_SUPPLY_SYSCALLS_FALSE%g
2564+s%@newlib_basedir@%$newlib_basedir%g
2565+s%@host@%$host%g
2566+s%@host_alias@%$host_alias%g
2567+s%@host_cpu@%$host_cpu%g
2568+s%@host_vendor@%$host_vendor%g
2569+s%@host_os@%$host_os%g
2570+s%@target@%$target%g
2571+s%@target_alias@%$target_alias%g
2572+s%@target_cpu@%$target_cpu%g
2573+s%@target_vendor@%$target_vendor%g
2574+s%@target_os@%$target_os%g
2575+s%@build@%$build%g
2576+s%@build_alias@%$build_alias%g
2577+s%@build_cpu@%$build_cpu%g
2578+s%@build_vendor@%$build_vendor%g
2579+s%@build_os@%$build_os%g
2580+s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
2581+s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
2582+s%@INSTALL_DATA@%$INSTALL_DATA%g
2583+s%@PACKAGE@%$PACKAGE%g
2584+s%@VERSION@%$VERSION%g
2585+s%@ACLOCAL@%$ACLOCAL%g
2586+s%@AUTOCONF@%$AUTOCONF%g
2587+s%@AUTOMAKE@%$AUTOMAKE%g
2588+s%@AUTOHEADER@%$AUTOHEADER%g
2589+s%@MAKEINFO@%$MAKEINFO%g
2590+s%@SET_MAKE@%$SET_MAKE%g
2591+s%@CC@%$CC%g
2592+s%@AS@%$AS%g
2593+s%@AR@%$AR%g
2594+s%@RANLIB@%$RANLIB%g
2595+s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
2596+s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
2597+s%@MAINT@%$MAINT%g
2598+s%@EXEEXT@%$EXEEXT%g
2599+s%@NEWLIB_CFLAGS@%$NEWLIB_CFLAGS%g
2600+s%@ELIX_LEVEL_0_TRUE@%$ELIX_LEVEL_0_TRUE%g
2601+s%@ELIX_LEVEL_0_FALSE@%$ELIX_LEVEL_0_FALSE%g
2602+s%@ELIX_LEVEL_1_TRUE@%$ELIX_LEVEL_1_TRUE%g
2603+s%@ELIX_LEVEL_1_FALSE@%$ELIX_LEVEL_1_FALSE%g
2604+s%@ELIX_LEVEL_2_TRUE@%$ELIX_LEVEL_2_TRUE%g
2605+s%@ELIX_LEVEL_2_FALSE@%$ELIX_LEVEL_2_FALSE%g
2606+s%@ELIX_LEVEL_3_TRUE@%$ELIX_LEVEL_3_TRUE%g
2607+s%@ELIX_LEVEL_3_FALSE@%$ELIX_LEVEL_3_FALSE%g
2608+s%@ELIX_LEVEL_4_TRUE@%$ELIX_LEVEL_4_TRUE%g
2609+s%@ELIX_LEVEL_4_FALSE@%$ELIX_LEVEL_4_FALSE%g
2610+s%@USE_LIBTOOL_TRUE@%$USE_LIBTOOL_TRUE%g
2611+s%@USE_LIBTOOL_FALSE@%$USE_LIBTOOL_FALSE%g
2612+s%@OBJEXT@%$OBJEXT%g
2613+s%@oext@%$oext%g
2614+s%@aext@%$aext%g
2615+s%@libm_machine_dir@%$libm_machine_dir%g
2616+s%@machine_dir@%$machine_dir%g
2617+s%@sys_dir@%$sys_dir%g
2618+
2619+CEOF
2620+EOF
2621+
2622+cat >> $CONFIG_STATUS <<\EOF
2623+
2624+# Split the substitutions into bite-sized pieces for seds with
2625+# small command number limits, like on Digital OSF/1 and HP-UX.
2626+ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
2627+ac_file=1 # Number of current file.
2628+ac_beg=1 # First line for current file.
2629+ac_end=$ac_max_sed_cmds # Line after last line for current file.
2630+ac_more_lines=:
2631+ac_sed_cmds=""
2632+while $ac_more_lines; do
2633+  if test $ac_beg -gt 1; then
2634+    sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
2635+  else
2636+    sed "${ac_end}q" conftest.subs > conftest.s$ac_file
2637+  fi
2638+  if test ! -s conftest.s$ac_file; then
2639+    ac_more_lines=false
2640+    rm -f conftest.s$ac_file
2641+  else
2642+    if test -z "$ac_sed_cmds"; then
2643+      ac_sed_cmds="sed -f conftest.s$ac_file"
2644+    else
2645+      ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
2646+    fi
2647+    ac_file=`expr $ac_file + 1`
2648+    ac_beg=$ac_end
2649+    ac_end=`expr $ac_end + $ac_max_sed_cmds`
2650+  fi
2651+done
2652+if test -z "$ac_sed_cmds"; then
2653+  ac_sed_cmds=cat
2654+fi
2655+EOF
2656+
2657+cat >> $CONFIG_STATUS <<EOF
2658+
2659+CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
2660+EOF
2661+cat >> $CONFIG_STATUS <<\EOF
2662+for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
2663+  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2664+  case "$ac_file" in
2665+  *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2666+       ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2667+  *) ac_file_in="${ac_file}.in" ;;
2668+  esac
2669+
2670+  # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
2671+
2672+  # Remove last slash and all that follows it.  Not all systems have dirname.
2673+  ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2674+  if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2675+    # The file is in a subdirectory.
2676+    test ! -d "$ac_dir" && mkdir "$ac_dir"
2677+    ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
2678+    # A "../" for each directory in $ac_dir_suffix.
2679+    ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
2680+  else
2681+    ac_dir_suffix= ac_dots=
2682+  fi
2683+
2684+  case "$ac_given_srcdir" in
2685+  .)  srcdir=.
2686+      if test -z "$ac_dots"; then top_srcdir=.
2687+      else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
2688+  /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
2689+  *) # Relative path.
2690+    srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
2691+    top_srcdir="$ac_dots$ac_given_srcdir" ;;
2692+  esac
2693+
2694+  case "$ac_given_INSTALL" in
2695+  [/$]*) INSTALL="$ac_given_INSTALL" ;;
2696+  *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
2697+  esac
2698+
2699+  echo creating "$ac_file"
2700+  rm -f "$ac_file"
2701+  configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
2702+  case "$ac_file" in
2703+  *Makefile*) ac_comsub="1i\\
2704+# $configure_input" ;;
2705+  *) ac_comsub= ;;
2706+  esac
2707+
2708+  ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2709+  sed -e "$ac_comsub
2710+s%@configure_input@%$configure_input%g
2711+s%@srcdir@%$srcdir%g
2712+s%@top_srcdir@%$top_srcdir%g
2713+s%@INSTALL@%$INSTALL%g
2714+" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
2715+fi; done
2716+rm -f conftest.s*
2717+
2718+EOF
2719+cat >> $CONFIG_STATUS <<EOF
2720+
2721+EOF
2722+cat >> $CONFIG_STATUS <<\EOF
2723+
2724+exit 0
2725+EOF
2726+chmod +x $CONFIG_STATUS
2727+rm -fr confdefs* $ac_clean_files
2728+test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
2729+
2730diff -uNr newlib-1.14.0.orig/newlib/libc/machine/bfin/configure.in newlib-1.14.0/newlib/libc/machine/bfin/configure.in
2731--- newlib-1.14.0.orig/newlib/libc/machine/bfin/configure.in    1970-01-01 01:00:00.000000000 +0100
2732+++ newlib-1.14.0/newlib/libc/machine/bfin/configure.in 2006-10-27 10:12:40.000000000 +0200
2733@@ -0,0 +1,12 @@
2734+dnl This is the newlib/libc/machine/bfin configure.in file.
2735+dnl Process this file with autoconf to produce a configure script.
2736+
2737+AC_PREREQ(2.5)
2738+AC_INIT(Makefile.am)
2739+
2740+dnl Can't be done in NEWLIB_CONFIGURE because that confuses automake.
2741+AC_CONFIG_AUX_DIR(../../../..)
2742+
2743+NEWLIB_CONFIGURE(../../..)
2744+
2745+AC_OUTPUT(Makefile)
2746diff -uNr newlib-1.14.0.orig/newlib/libc/machine/bfin/Makefile.am newlib-1.14.0/newlib/libc/machine/bfin/Makefile.am
2747--- newlib-1.14.0.orig/newlib/libc/machine/bfin/Makefile.am     1970-01-01 01:00:00.000000000 +0100
2748+++ newlib-1.14.0/newlib/libc/machine/bfin/Makefile.am  2006-10-27 10:12:40.000000000 +0200
2749@@ -0,0 +1,12 @@
2750+## Process this file with automake to generate Makefile.in
2751+
2752+AUTOMAKE_OPTIONS = cygnus
2753+
2754+INCLUDES = $(NEWLIB_CFLAGS) $(CROSS_CFLAGS) $(TARGET_CFLAGS)
2755+
2756+noinst_LIBRARIES = lib.a
2757+
2758+lib_a_SOURCES = setjmp.S
2759+
2760+ACLOCAL_AMFLAGS = -I ../../..
2761+CONFIG_STATUS_DEPENDENCIES = $(newlib_basedir)/configure.host
2762diff -uNr newlib-1.14.0.orig/newlib/libc/machine/bfin/Makefile.in newlib-1.14.0/newlib/libc/machine/bfin/Makefile.in
2763--- newlib-1.14.0.orig/newlib/libc/machine/bfin/Makefile.in     1970-01-01 01:00:00.000000000 +0100
2764+++ newlib-1.14.0/newlib/libc/machine/bfin/Makefile.in  2006-10-27 10:12:40.000000000 +0200
2765@@ -0,0 +1,327 @@
2766+# Makefile.in generated automatically by automake 1.4-p6 from Makefile.am
2767+
2768+# Copyright (C) 1994, 1995-8, 1999, 2001 Free Software Foundation, Inc.
2769+# This Makefile.in is free software; the Free Software Foundation
2770+# gives unlimited permission to copy and/or distribute it,
2771+# with or without modifications, as long as this notice is preserved.
2772+
2773+# This program is distributed in the hope that it will be useful,
2774+# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
2775+# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
2776+# PARTICULAR PURPOSE.
2777+
2778+
2779+SHELL = @SHELL@
2780+
2781+srcdir = @srcdir@
2782+top_srcdir = @top_srcdir@
2783+VPATH = @srcdir@
2784+prefix = @prefix@
2785+exec_prefix = @exec_prefix@
2786+
2787+bindir = @bindir@
2788+sbindir = @sbindir@
2789+libexecdir = @libexecdir@
2790+datadir = @datadir@
2791+sysconfdir = @sysconfdir@
2792+sharedstatedir = @sharedstatedir@
2793+localstatedir = @localstatedir@
2794+libdir = @libdir@
2795+infodir = @infodir@
2796+mandir = @mandir@
2797+includedir = @includedir@
2798+oldincludedir = /usr/include
2799+
2800+DESTDIR =
2801+
2802+pkgdatadir = $(datadir)/@PACKAGE@
2803+pkglibdir = $(libdir)/@PACKAGE@
2804+pkgincludedir = $(includedir)/@PACKAGE@
2805+
2806+top_builddir = .
2807+
2808+ACLOCAL = @ACLOCAL@
2809+AUTOCONF = @AUTOCONF@
2810+AUTOMAKE = @AUTOMAKE@
2811+AUTOHEADER = @AUTOHEADER@
2812+
2813+INSTALL = @INSTALL@
2814+INSTALL_PROGRAM = @INSTALL_PROGRAM@ $(AM_INSTALL_PROGRAM_FLAGS)
2815+INSTALL_DATA = @INSTALL_DATA@
2816+INSTALL_SCRIPT = @INSTALL_SCRIPT@
2817+transform = @program_transform_name@
2818+
2819+NORMAL_INSTALL = :
2820+PRE_INSTALL = :
2821+POST_INSTALL = :
2822+NORMAL_UNINSTALL = :
2823+PRE_UNINSTALL = :
2824+POST_UNINSTALL = :
2825+build_alias = @build_alias@
2826+build_triplet = @build@
2827+host_alias = @host_alias@
2828+host_triplet = @host@
2829+target_alias = @target_alias@
2830+target_triplet = @target@
2831+AR = @AR@
2832+AS = @AS@
2833+CC = @CC@
2834+CPP = @CPP@
2835+EXEEXT = @EXEEXT@
2836+LDFLAGS = @LDFLAGS@
2837+MAINT = @MAINT@
2838+MAKEINFO = @MAKEINFO@
2839+NEWLIB_CFLAGS = @NEWLIB_CFLAGS@
2840+OBJEXT = @OBJEXT@
2841+PACKAGE = @PACKAGE@
2842+RANLIB = @RANLIB@
2843+VERSION = @VERSION@
2844+aext = @aext@
2845+libm_machine_dir = @libm_machine_dir@
2846+machine_dir = @machine_dir@
2847+newlib_basedir = @newlib_basedir@
2848+oext = @oext@
2849+sys_dir = @sys_dir@
2850+
2851+AUTOMAKE_OPTIONS = cygnus
2852+
2853+INCLUDES = $(NEWLIB_CFLAGS) $(CROSS_CFLAGS) $(TARGET_CFLAGS)
2854+
2855+noinst_LIBRARIES = lib.a
2856+
2857+lib_a_SOURCES = setjmp.S
2858+
2859+ACLOCAL_AMFLAGS = -I ../../..
2860+CONFIG_STATUS_DEPENDENCIES = $(newlib_basedir)/configure.host
2861+ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
2862+mkinstalldirs = $(SHELL) $(top_srcdir)/../../../../mkinstalldirs
2863+CONFIG_CLEAN_FILES =
2864+LIBRARIES =  $(noinst_LIBRARIES)
2865+
2866+
2867+DEFS = @DEFS@ -I. -I$(srcdir)
2868+CPPFLAGS = @CPPFLAGS@
2869+LIBS = @LIBS@
2870+lib_a_LIBADD =
2871+lib_a_OBJECTS =  setjmp.o
2872+CFLAGS = @CFLAGS@
2873+COMPILE = $(CC) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
2874+CCLD = $(CC)
2875+LINK = $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(LDFLAGS) -o $@
2876+DIST_COMMON =  Makefile.am Makefile.in aclocal.m4 configure configure.in
2877+
2878+
2879+DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST)
2880+
2881+TAR = gtar
2882+GZIP_ENV = --best
2883+SOURCES = $(lib_a_SOURCES)
2884+OBJECTS = $(lib_a_OBJECTS)
2885+
2886+all: all-redirect
2887+.SUFFIXES:
2888+.SUFFIXES: .S .c .o .s
2889+$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4)
2890+       cd $(top_srcdir) && $(AUTOMAKE) --cygnus Makefile
2891+
2892+Makefile: $(srcdir)/Makefile.in  $(top_builddir)/config.status
2893+       cd $(top_builddir) \
2894+         && CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status
2895+
2896+$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ configure.in  \
2897+               ../../../acinclude.m4 ../../../aclocal.m4 \
2898+               ../../../libtool.m4
2899+       cd $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS)
2900+
2901+config.status: $(srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
2902+       $(SHELL) ./config.status --recheck
2903+$(srcdir)/configure: @MAINTAINER_MODE_TRUE@$(srcdir)/configure.in $(ACLOCAL_M4) $(CONFIGURE_DEPENDENCIES)
2904+       cd $(srcdir) && $(AUTOCONF)
2905+
2906+mostlyclean-noinstLIBRARIES:
2907+
2908+clean-noinstLIBRARIES:
2909+       -test -z "$(noinst_LIBRARIES)" || rm -f $(noinst_LIBRARIES)
2910+
2911+distclean-noinstLIBRARIES:
2912+
2913+maintainer-clean-noinstLIBRARIES:
2914+
2915+.c.o:
2916+       $(COMPILE) -c $<
2917+
2918+.s.o:
2919+       $(COMPILE) -c $<
2920+
2921+.S.o:
2922+       $(COMPILE) -c $<
2923+
2924+mostlyclean-compile:
2925+       -rm -f *.o core *.core
2926+
2927+clean-compile:
2928+
2929+distclean-compile:
2930+       -rm -f *.tab.c
2931+
2932+maintainer-clean-compile:
2933+
2934+lib.a: $(lib_a_OBJECTS) $(lib_a_DEPENDENCIES)
2935+       -rm -f lib.a
2936+       $(AR) cru lib.a $(lib_a_OBJECTS) $(lib_a_LIBADD)
2937+       $(RANLIB) lib.a
2938+
2939+tags: TAGS
2940+
2941+ID: $(HEADERS) $(SOURCES) $(LISP)
2942+       list='$(SOURCES) $(HEADERS)'; \
2943+       unique=`for i in $$list; do echo $$i; done | \
2944+         awk '    { files[$$0] = 1; } \
2945+              END { for (i in files) print i; }'`; \
2946+       here=`pwd` && cd $(srcdir) \
2947+         && mkid -f$$here/ID $$unique $(LISP)
2948+
2949+TAGS:  $(HEADERS) $(SOURCES)  $(TAGS_DEPENDENCIES) $(LISP)
2950+       tags=; \
2951+       here=`pwd`; \
2952+       list='$(SOURCES) $(HEADERS)'; \
2953+       unique=`for i in $$list; do echo $$i; done | \
2954+         awk '    { files[$$0] = 1; } \
2955+              END { for (i in files) print i; }'`; \
2956+       test -z "$(ETAGS_ARGS)$$unique$(LISP)$$tags" \
2957+         || (cd $(srcdir) && etags $(ETAGS_ARGS) $$tags  $$unique $(LISP) -o $$here/TAGS)
2958+
2959+mostlyclean-tags:
2960+
2961+clean-tags:
2962+
2963+distclean-tags:
2964+       -rm -f TAGS ID
2965+
2966+maintainer-clean-tags:
2967+
2968+distdir = $(PACKAGE)-$(VERSION)
2969+top_distdir = $(distdir)
2970+
2971+# This target untars the dist file and tries a VPATH configuration.  Then
2972+# it guarantees that the distribution is self-contained by making another
2973+# tarfile.
2974+distcheck: dist
2975+       -rm -rf $(distdir)
2976+       GZIP=$(GZIP_ENV) $(TAR) zxf $(distdir).tar.gz
2977+       mkdir $(distdir)/=build
2978+       mkdir $(distdir)/=inst
2979+       dc_install_base=`cd $(distdir)/=inst && pwd`; \
2980+       cd $(distdir)/=build \
2981+         && ../configure --srcdir=.. --prefix=$$dc_install_base \
2982+         && $(MAKE) $(AM_MAKEFLAGS) \
2983+         && $(MAKE) $(AM_MAKEFLAGS) dvi \
2984+         && $(MAKE) $(AM_MAKEFLAGS) check \
2985+         && $(MAKE) $(AM_MAKEFLAGS) install \
2986+         && $(MAKE) $(AM_MAKEFLAGS) installcheck \
2987+         && $(MAKE) $(AM_MAKEFLAGS) dist
2988+       -rm -rf $(distdir)
2989+       @banner="$(distdir).tar.gz is ready for distribution"; \
2990+       dashes=`echo "$$banner" | sed s/./=/g`; \
2991+       echo "$$dashes"; \
2992+       echo "$$banner"; \
2993+       echo "$$dashes"
2994+dist: distdir
2995+       -chmod -R a+r $(distdir)
2996+       GZIP=$(GZIP_ENV) $(TAR) chozf $(distdir).tar.gz $(distdir)
2997+       -rm -rf $(distdir)
2998+dist-all: distdir
2999+       -chmod -R a+r $(distdir)
3000+       GZIP=$(GZIP_ENV) $(TAR) chozf $(distdir).tar.gz $(distdir)
3001+       -rm -rf $(distdir)
3002+distdir: $(DISTFILES)
3003+       -rm -rf $(distdir)
3004+       mkdir $(distdir)
3005+       -chmod 777 $(distdir)
3006+       @for file in $(DISTFILES); do \
3007+         if test -f $$file; then d=.; else d=$(srcdir); fi; \
3008+         if test -d $$d/$$file; then \
3009+           cp -pr $$d/$$file $(distdir)/$$file; \
3010+         else \
3011+           test -f $(distdir)/$$file \
3012+           || ln $$d/$$file $(distdir)/$$file 2> /dev/null \
3013+           || cp -p $$d/$$file $(distdir)/$$file || :; \
3014+         fi; \
3015+       done
3016+info-am:
3017+info: info-am
3018+dvi-am:
3019+dvi: dvi-am
3020+check-am:
3021+check: check-am
3022+installcheck-am:
3023+installcheck: installcheck-am
3024+install-info-am:
3025+install-info: install-info-am
3026+install-exec-am:
3027+install-exec: install-exec-am
3028+
3029+install-data-am:
3030+install-data: install-data-am
3031+
3032+install-am: all-am
3033+       @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
3034+install: install-am
3035+uninstall-am:
3036+uninstall: uninstall-am
3037+all-am: Makefile $(LIBRARIES)
3038+all-redirect: all-am
3039+install-strip:
3040+       $(MAKE) $(AM_MAKEFLAGS) AM_INSTALL_PROGRAM_FLAGS=-s install
3041+installdirs:
3042+
3043+
3044+mostlyclean-generic:
3045+
3046+clean-generic:
3047+
3048+distclean-generic:
3049+       -rm -f Makefile $(CONFIG_CLEAN_FILES)
3050+       -rm -f config.cache config.log stamp-h stamp-h[0-9]*
3051+
3052+maintainer-clean-generic:
3053+mostlyclean-am:  mostlyclean-noinstLIBRARIES mostlyclean-compile \
3054+               mostlyclean-tags mostlyclean-generic
3055+
3056+mostlyclean: mostlyclean-am
3057+
3058+clean-am:  clean-noinstLIBRARIES clean-compile clean-tags clean-generic \
3059+               mostlyclean-am
3060+
3061+clean: clean-am
3062+
3063+distclean-am:  distclean-noinstLIBRARIES distclean-compile \
3064+               distclean-tags distclean-generic clean-am
3065+
3066+distclean: distclean-am
3067+       -rm -f config.status
3068+
3069+maintainer-clean-am:  maintainer-clean-noinstLIBRARIES \
3070+               maintainer-clean-compile maintainer-clean-tags \
3071+               maintainer-clean-generic distclean-am
3072+       @echo "This command is intended for maintainers to use;"
3073+       @echo "it deletes files that may require special tools to rebuild."
3074+
3075+maintainer-clean: maintainer-clean-am
3076+       -rm -f config.status
3077+
3078+.PHONY: mostlyclean-noinstLIBRARIES distclean-noinstLIBRARIES \
3079+clean-noinstLIBRARIES maintainer-clean-noinstLIBRARIES \
3080+mostlyclean-compile distclean-compile clean-compile \
3081+maintainer-clean-compile tags mostlyclean-tags distclean-tags \
3082+clean-tags maintainer-clean-tags distdir info-am info dvi-am dvi check \
3083+check-am installcheck-am installcheck install-info-am install-info \
3084+install-exec-am install-exec install-data-am install-data install-am \
3085+install uninstall-am uninstall all-redirect all-am all installdirs \
3086+mostlyclean-generic distclean-generic clean-generic \
3087+maintainer-clean-generic clean mostlyclean distclean maintainer-clean
3088+
3089+
3090+# Tell versions [3.59,3.63) of GNU make to not export all variables.
3091+# Otherwise a system limit (for SysV at least) may be exceeded.
3092+.NOEXPORT:
3093diff -uNr newlib-1.14.0.orig/newlib/libc/machine/bfin/setjmp.S newlib-1.14.0/newlib/libc/machine/bfin/setjmp.S
3094--- newlib-1.14.0.orig/newlib/libc/machine/bfin/setjmp.S        1970-01-01 01:00:00.000000000 +0100
3095+++ newlib-1.14.0/newlib/libc/machine/bfin/setjmp.S     2006-10-27 10:12:40.000000000 +0200
3096@@ -0,0 +1,196 @@
3097+/*
3098+ * Setjmp/Longjump implementation for the Blackfin Architecture
3099+ */
3100+#define _ASM
3101+#define _SETJMP_H
3102+
3103+.text
3104+.global setjmp
3105+.align 4;
3106+setjmp:
3107+        /*save P0 first*/
3108+       [--SP] = P0;
3109+        P0 = R0;
3110+        [ P0 + 0x00 ] = R0;
3111+        [ P0 + 0x04 ] = R1;
3112+       [ P0 + 0x08 ] = R2;
3113+       [ P0 + 0x0c ] = R3;
3114+       [ P0 + 0x10 ] = R4;
3115+       [ P0 + 0x14 ] = R5;
3116+       [ P0 + 0x18 ] = R6;
3117+       [ P0 + 0x1c ] = R7;
3118+       [ P0 + 0x24 ] = P1;
3119+       /* save the original value of P0 */
3120+       P1 = [SP++];
3121+       [ P0 + 0x20 ] = P1;
3122+       [ P0 + 0x28 ] = P2;
3123+       [ P0 + 0x2c ] = P3;
3124+       [ P0 + 0x30 ] = P4;
3125+       [ P0 + 0x34 ] = P5;
3126+       [ P0 + 0x38 ] = FP;     
3127+       [ P0 + 0x3c ] = SP;
3128+
3129+       /* save ASTAT */
3130+        R0 = ASTAT;
3131+        [P0 + 0x40] = R0;
3132+
3133+        /* save Loop Counters */
3134+        R0 = LC0;
3135+        [P0 + 0x44] = R0;
3136+        R0 = LC1;
3137+        [P0 + 0x48] = R0;
3138+
3139+        /* save Accumulators */
3140+        R0 = A0.W;
3141+        [P0 + 0x4C] = R0;
3142+        R0 = A0.X;
3143+        [P0 + 0x50] = R0;
3144+        R0 = A1.W;
3145+        [P0 + 0x54] = R0;
3146+        R0 = A1.X;
3147+        [P0 + 0x58] = R0;
3148+
3149+        /* save Index Registers */
3150+        R0 = I0;
3151+        [P0 + 0x5C] = R0;
3152+        R0 = I1;
3153+        [P0 + 0x60] = R0;
3154+        R0 = I2;
3155+        [P0 + 0x64] = R0;
3156+        R0 = I3;
3157+        [P0 + 0x68] = R0;
3158+
3159+        /* save Modifier Registers */
3160+        R0 = M0;
3161+        [P0 + 0x6C] = R0;
3162+        R0 = M1;
3163+        [P0 + 0x70] = R0;
3164+        R0 = M2;
3165+        [P0 + 0x74] = R0;
3166+        R0 = M3;
3167+        [P0 + 0x78] = R0;
3168+
3169+        /* save Length Registers */
3170+        R0 = L0;
3171+        [P0 + 0x7c] = R0;
3172+        R0 = L1;
3173+        [P0 + 0x80] = R0;
3174+        R0 = L2;
3175+        [P0 + 0x84] = R0;
3176+        R0 = L3;
3177+        [P0 + 0x88] = R0;
3178+
3179+        /* Base Registers */
3180+        R0 = B0;
3181+        [P0 + 0x8C] = R0;
3182+        R0 = B1;
3183+        [P0 + 0x90] = R0;
3184+        R0 = B2;
3185+        [P0 + 0x94] = R0;
3186+        R0 = B3;
3187+        [P0 + 0x98] = R0;
3188+
3189+        R0 = RETS;
3190+        [P0 + 0x9C] = R0;
3191+
3192+       /* return 0 in R0 */
3193+        R0 = 0x00;
3194+        RTS;
3195+
3196+
3197+.global longjmp
3198+longjmp:
3199+        /*setup P0*/
3200+       P0 = R0;
3201+        R2 = [ P0 + 0x08 ];
3202+        R3 = [ P0 + 0x0c ];
3203+        R4 = [ P0 + 0x10 ];
3204+        R5 = [ P0 + 0x14 ];
3205+        R6 = [ P0 + 0x18 ];
3206+        R7 = [ P0 + 0x1c ];
3207+        P1 = [ P0 + 0x24 ];
3208+        P2 = [ P0 + 0x28 ];
3209+        P3 = [ P0 + 0x2c ];
3210+        P4 = [ P0 + 0x30 ];
3211+        P5 = [ P0 + 0x34 ];
3212+        FP = [ P0 + 0x38 ];
3213+        SP = [ P0 + 0x3c ];
3214+
3215+        /* restore ASTAT */
3216+        R0 = [P0 + 0x40];
3217+        ASTAT = R0;
3218+
3219+        /* restore Loop Counters */
3220+        R0 = [P0 + 0x44];
3221+        LC0 = R0;
3222+        R0 = [P0 + 0x48];
3223+        LC1 = R0;
3224+
3225+        /* restore Accumulators */
3226+        R0 = [P0 + 0x4C];
3227+        A0.W = R0;
3228+        R0 = [P0 + 0x50];
3229+        A0.X = R0;
3230+        R0 = [P0 + 0x54];
3231+        A1.W = R0;
3232+        R0 = [P0 + 0x58];
3233+        A1.X = R0;
3234+
3235+        /* restore Index Registers */
3236+        R0 = [P0 + 0x5C];
3237+        I0 = R0;
3238+        R0 = [P0 + 0x60];
3239+        I1 = R0;
3240+        R0 = [P0 + 0x64];
3241+        I2 = R0;
3242+        R0 = [P0 + 0x68];
3243+        I3 = R0;
3244+
3245+        /* restore Modifier Registers */
3246+        R0 = [P0 + 0x6C];
3247+        M0 = R0;
3248+        R0 = [P0 + 0x70];
3249+        M1 = R0;
3250+        R0 = [P0 + 0x74];
3251+        M2 = R0;
3252+        R0 = [P0 + 0x78];
3253+        M3 = R0;
3254+
3255+        /* restore Length Registers */
3256+        R0 = [P0 + 0x7c];
3257+        L0 = R0;
3258+        R0 = [P0 + 0x80];
3259+        L1 = R0;
3260+        R0 = [P0 + 0x84];
3261+        L2 = R0;
3262+        R0 = [P0 + 0x88];
3263+        L3 = R0;
3264+
3265+        /* restore Base Registers */
3266+        R0 = [P0 + 0x8C];
3267+        B0 = R0;
3268+        R0 = [P0 + 0x90];
3269+        B1 = R0;
3270+        R0 = [P0 + 0x94];
3271+        B2 = R0;
3272+        R0 = [P0 + 0x98];
3273+        B3 = R0;
3274+
3275+        R0 = [P0 + 0x9C];
3276+        RETS = R0;
3277+
3278+
3279+   
3280+       /* return orig R1 should be non zero */
3281+       CC = R1 == 0x0;
3282+       IF CC JUMP return1;
3283+       R0 = R1;
3284+       JUMP finished
3285+return1:
3286+       R0 = 0x1;
3287+jmpfinished:
3288+       /* restore R1 and P0 */
3289+       R1 = [P0 + 0x04]
3290+       P0 = [P0 + 0x20]
3291+        rts;
3292+
3293diff -uNr newlib-1.14.0.orig/newlib/libc/reent/reent.c newlib-1.14.0/newlib/libc/reent/reent.c
3294--- newlib-1.14.0.orig/newlib/libc/reent/reent.c        2004-09-09 21:46:54.000000000 +0200
3295+++ newlib-1.14.0/newlib/libc/reent/reent.c     2006-10-27 10:12:40.000000000 +0200
3296@@ -69,6 +69,8 @@
3297 
3298          _free_r (ptr, _REENT_MP_FREELIST(ptr));
3299        }
3300+      if (_REENT_MP_RESULT(ptr))
3301+       _free_r (ptr, _REENT_MP_RESULT(ptr));
3302 
3303 #ifdef _REENT_SMALL
3304       if (ptr->_emergency)
3305diff -uNr newlib-1.14.0.orig/newlib/libc/search/db_local.h newlib-1.14.0/newlib/libc/search/db_local.h
3306--- newlib-1.14.0.orig/newlib/libc/search/db_local.h    2002-06-25 01:05:08.000000000 +0200
3307+++ newlib-1.14.0/newlib/libc/search/db_local.h 2006-10-27 10:12:40.000000000 +0200
3308@@ -50,7 +50,7 @@
3309 #define        MAX_PAGE_NUMBER 0xffffffff      /* >= # of pages in a file */
3310 typedef __uint32_t     pgno_t;
3311 #define        MAX_PAGE_OFFSET 65535           /* >= # of bytes in a page */
3312-typedef __uint16_t     indx_t;
3313+typedef __uint_least16_t       indx_t;
3314 #define        MAX_REC_NUMBER  0xffffffff      /* >= # of records in a tree */
3315 typedef __uint32_t     recno_t;
3316 
3317@@ -191,12 +191,12 @@
3318  *     P_16_COPY       swap from one location to another
3319  */
3320 #define        M_16_SWAP(a) {                                                  \
3321-       __uint16_t _tmp = a;                                            \
3322+       __uint_least16_t _tmp = a;                                              \
3323        ((char *)&a)[0] = ((char *)&_tmp)[1];                           \
3324        ((char *)&a)[1] = ((char *)&_tmp)[0];                           \
3325 }
3326 #define        P_16_SWAP(a) {                                                  \
3327-       __uint16_t _tmp = *(__uint16_t *)a;                             \
3328+       __uint_least16_t _tmp = *(__uint_least16_t *)a;                         \
3329        ((char *)a)[0] = ((char *)&_tmp)[1];                            \
3330        ((char *)a)[1] = ((char *)&_tmp)[0];                            \
3331 }
3332diff -uNr newlib-1.14.0.orig/newlib/libc/search/extern.h newlib-1.14.0/newlib/libc/search/extern.h
3333--- newlib-1.14.0.orig/newlib/libc/search/extern.h      2002-06-20 21:51:31.000000000 +0200
3334+++ newlib-1.14.0/newlib/libc/search/extern.h   2006-10-27 10:12:40.000000000 +0200
3335@@ -48,7 +48,7 @@
3336 int     __delpair(HTAB *, BUFHEAD *, int);
3337 int     __expand_table(HTAB *);
3338 int     __find_bigpair(HTAB *, BUFHEAD *, int, char *, int);
3339-__uint16_t      __find_last_page(HTAB *, BUFHEAD **);
3340+__uint_least16_t        __find_last_page(HTAB *, BUFHEAD **);
3341 void    __free_ovflpage(HTAB *, BUFHEAD *);
3342 BUFHEAD        *__get_buf(HTAB *, __uint32_t, BUFHEAD *, int);
3343 int     __get_page(HTAB *, char *, __uint32_t, int, int, int);
3344diff -uNr newlib-1.14.0.orig/newlib/libc/search/hash_bigkey.c newlib-1.14.0/newlib/libc/search/hash_bigkey.c
3345--- newlib-1.14.0.orig/newlib/libc/search/hash_bigkey.c 2002-06-25 01:05:08.000000000 +0200
3346+++ newlib-1.14.0/newlib/libc/search/hash_bigkey.c      2006-10-27 10:12:40.000000000 +0200
3347@@ -96,13 +96,13 @@
3348        BUFHEAD *bufp;
3349        const DBT *key, *val;
3350 {
3351-       __uint16_t *p;
3352+       __uint_least16_t *p;
3353        int key_size, n, val_size;
3354-       __uint16_t space, move_bytes, off;
3355+       __uint_least16_t space, move_bytes, off;
3356        char *cp, *key_data, *val_data;
3357 
3358        cp = bufp->page;                /* Character pointer of p. */
3359-       p = (__uint16_t *)cp;
3360+       p = (__uint_least16_t *)cp;
3361 
3362        key_data = (char *)key->data;
3363        key_size = key->size;
3364@@ -140,7 +140,7 @@
3365                                OFFSET(p) = off;
3366                        } else
3367                                p[n - 2] = FULL_KEY;
3368-               p = (__uint16_t *)bufp->page;
3369+               p = (__uint_least16_t *)bufp->page;
3370                cp = bufp->page;
3371                bufp->flags |= BUF_MOD;
3372        }
3373@@ -170,7 +170,7 @@
3374                        if (!bufp)
3375                                return (-1);
3376                        cp = bufp->page;
3377-                       p = (__uint16_t *)cp;
3378+                       p = (__uint_least16_t *)cp;
3379                } else
3380                        p[n] = FULL_KEY_DATA;
3381                bufp->flags |= BUF_MOD;
3382@@ -195,12 +195,12 @@
3383        BUFHEAD *bufp;
3384 {
3385        BUFHEAD *last_bfp, *rbufp;
3386-       __uint16_t *bp, pageno;
3387+       __uint_least16_t *bp, pageno;
3388        int key_done, n;
3389 
3390        rbufp = bufp;
3391        last_bfp = NULL;
3392-       bp = (__uint16_t *)bufp->page;
3393+       bp = (__uint_least16_t *)bufp->page;
3394        pageno = 0;
3395        key_done = 0;
3396 
3397@@ -223,7 +223,7 @@
3398                last_bfp = rbufp;
3399                if (!rbufp)
3400                        return (-1);            /* Error. */
3401-               bp = (__uint16_t *)rbufp->page;
3402+               bp = (__uint_least16_t *)rbufp->page;
3403        }
3404 
3405        /*
3406@@ -238,7 +238,7 @@
3407        pageno = bp[n - 1];
3408 
3409        /* Now, bp is the first page of the pair. */
3410-       bp = (__uint16_t *)bufp->page;
3411+       bp = (__uint_least16_t *)bufp->page;
3412        if (n > 2) {
3413                /* There is an overflow page. */
3414                bp[1] = pageno;
3415@@ -276,13 +276,13 @@
3416        char *key;
3417        int size;
3418 {
3419-       __uint16_t *bp;
3420+       __uint_least16_t *bp;
3421        char *p;
3422        int ksize;
3423-       __uint16_t bytes;
3424+       __uint_least16_t bytes;
3425        char *kkey;
3426 
3427-       bp = (__uint16_t *)bufp->page;
3428+       bp = (__uint_least16_t *)bufp->page;
3429        p = bufp->page;
3430        ksize = size;
3431        kkey = key;
3432@@ -298,7 +298,7 @@
3433                if (!bufp)
3434                        return (-3);
3435                p = bufp->page;
3436-               bp = (__uint16_t *)p;
3437+               bp = (__uint_least16_t *)p;
3438                ndx = 1;
3439        }
3440 
3441@@ -320,17 +320,17 @@
3442  * of the pair; 0 if there isn't any (i.e. big pair is the last key in the
3443  * bucket)
3444  */
3445-extern __uint16_t
3446+extern __uint_least16_t
3447 __find_last_page(hashp, bpp)
3448        HTAB *hashp;
3449        BUFHEAD **bpp;
3450 {
3451        BUFHEAD *bufp;
3452-       __uint16_t *bp, pageno;
3453+       __uint_least16_t *bp, pageno;
3454        int n;
3455 
3456        bufp = *bpp;
3457-       bp = (__uint16_t *)bufp->page;
3458+       bp = (__uint_least16_t *)bufp->page;
3459        for (;;) {
3460                n = bp[0];
3461 
3462@@ -347,7 +347,7 @@
3463                bufp = __get_buf(hashp, pageno, bufp, 0);
3464                if (!bufp)
3465                        return (0);     /* Need to indicate an error! */
3466-               bp = (__uint16_t *)bufp->page;
3467+               bp = (__uint_least16_t *)bufp->page;
3468        }
3469 
3470        *bpp = bufp;
3471@@ -370,15 +370,15 @@
3472        int set_current;
3473 {
3474        BUFHEAD *save_p;
3475-       __uint16_t *bp, len, off, save_addr;
3476+       __uint_least16_t *bp, len, off, save_addr;
3477        char *tp;
3478 
3479-       bp = (__uint16_t *)bufp->page;
3480+       bp = (__uint_least16_t *)bufp->page;
3481        while (bp[ndx + 1] == PARTIAL_KEY) {
3482                bufp = __get_buf(hashp, bp[bp[0] - 1], bufp, 0);
3483                if (!bufp)
3484                        return (-1);
3485-               bp = (__uint16_t *)bufp->page;
3486+               bp = (__uint_least16_t *)bufp->page;
3487                ndx = 1;
3488        }
3489 
3490@@ -386,7 +386,7 @@
3491                bufp = __get_buf(hashp, bp[bp[0] - 1], bufp, 0);
3492                if (!bufp)
3493                        return (-1);
3494-               bp = (__uint16_t *)bufp->page;
3495+               bp = (__uint_least16_t *)bufp->page;
3496                save_p = bufp;
3497                save_addr = save_p->addr;
3498                off = bp[1];
3499@@ -407,7 +407,7 @@
3500                        bufp = __get_buf(hashp, bp[bp[0] - 1], bufp, 0);
3501                        if (!bufp)
3502                                return (-1);
3503-                       bp = (__uint16_t *)bufp->page;
3504+                       bp = (__uint_least16_t *)bufp->page;
3505                } else {
3506                        /* The data is all on one page. */
3507                        tp = (char *)bp;
3508@@ -426,7 +426,7 @@
3509                                        if (!hashp->cpage)
3510                                                return (-1);
3511                                        hashp->cndx = 1;
3512-                                       if (!((__uint16_t *)
3513+                                       if (!((__uint_least16_t *)
3514                                            hashp->cpage->page)[0]) {
3515                                                hashp->cbucket++;
3516                                                hashp->cpage = NULL;
3517@@ -458,14 +458,14 @@
3518        BUFHEAD *bufp;
3519        int len, set;
3520 {
3521-       __uint16_t *bp;
3522+       __uint_least16_t *bp;
3523        char *p;
3524        BUFHEAD *xbp;
3525-       __uint16_t save_addr;
3526+       __uint_least16_t save_addr;
3527        int mylen, totlen;
3528 
3529        p = bufp->page;
3530-       bp = (__uint16_t *)p;
3531+       bp = (__uint_least16_t *)p;
3532        mylen = hashp->BSIZE - bp[1];
3533        save_addr = bufp->addr;
3534 
3535@@ -485,7 +485,7 @@
3536                                    __get_buf(hashp, bp[bp[0] - 1], bufp, 0);
3537                                if (!hashp->cpage)
3538                                        return (-1);
3539-                               else if (!((__uint16_t *)hashp->cpage->page)[0]) {
3540+                               else if (!((__uint_least16_t *)hashp->cpage->page)[0]) {
3541                                        hashp->cbucket++;
3542                                        hashp->cpage = NULL;
3543                                }
3544@@ -537,10 +537,10 @@
3545        BUFHEAD *xbp;
3546        char *p;
3547        int mylen, totlen;
3548-       __uint16_t *bp, save_addr;
3549+       __uint_least16_t *bp, save_addr;
3550 
3551        p = bufp->page;
3552-       bp = (__uint16_t *)p;
3553+       bp = (__uint_least16_t *)p;
3554        mylen = hashp->BSIZE - bp[1];
3555 
3556        save_addr = bufp->addr;
3557@@ -583,11 +583,11 @@
3558        SPLIT_RETURN *ret;
3559 {
3560        BUFHEAD *tmpp;
3561-       __uint16_t *tp;
3562+       __uint_least16_t *tp;
3563        BUFHEAD *bp;
3564        DBT key, val;
3565        __uint32_t change;
3566-       __uint16_t free_space, n, off;
3567+       __uint_least16_t free_space, n, off;
3568 
3569        bp = big_keyp;
3570 
3571@@ -619,14 +619,14 @@
3572            (tmpp->ovfl ? tmpp->ovfl->addr : 0), (bp ? bp->addr : 0));
3573 #endif
3574        tmpp->ovfl = bp;        /* one of op/np point to big_keyp */
3575-       tp = (__uint16_t *)tmpp->page;
3576+       tp = (__uint_least16_t *)tmpp->page;
3577 #ifdef DEBUG
3578        assert(FREESPACE(tp) >= OVFLSIZE);
3579 #endif
3580        n = tp[0];
3581        off = OFFSET(tp);
3582        free_space = FREESPACE(tp);
3583-       tp[++n] = (__uint16_t)addr;
3584+       tp[++n] = (__uint_least16_t)addr;
3585        tp[++n] = OVFLPAGE;
3586        tp[0] = n;
3587        OFFSET(tp) = off;
3588@@ -642,7 +642,7 @@
3589        ret->newp = np;
3590        ret->oldp = op;
3591 
3592-       tp = (__uint16_t *)big_keyp->page;
3593+       tp = (__uint_least16_t *)big_keyp->page;
3594        big_keyp->flags |= BUF_MOD;
3595        if (tp[0] > 2) {
3596                /*
3597diff -uNr newlib-1.14.0.orig/newlib/libc/search/hash_buf.c newlib-1.14.0/newlib/libc/search/hash_buf.c
3598--- newlib-1.14.0.orig/newlib/libc/search/hash_buf.c    2004-05-26 19:57:10.000000000 +0200
3599+++ newlib-1.14.0/newlib/libc/search/hash_buf.c 2006-10-27 10:12:40.000000000 +0200
3600@@ -176,7 +176,7 @@
3601        BUFHEAD *next_xbp;
3602        SEGMENT segp;
3603        int segment_ndx;
3604-       __uint16_t oaddr, *shortp;
3605+       __uint_least16_t oaddr, *shortp;
3606 
3607        oaddr = 0;
3608        bp = LRU;
3609@@ -212,7 +212,7 @@
3610                         * Set oaddr before __put_page so that you get it
3611                         * before bytes are swapped.
3612                         */
3613-                       shortp = (__uint16_t *)bp->page;
3614+                       shortp = (__uint_least16_t *)bp->page;
3615                        if (shortp[0])
3616                                oaddr = shortp[shortp[0] - 1];
3617                        if ((bp->flags & BUF_MOD) && __put_page(hashp, bp->page,
3618@@ -255,7 +255,7 @@
3619                                    (oaddr != xbp->addr))
3620                                        break;
3621 
3622-                               shortp = (__uint16_t *)xbp->page;
3623+                               shortp = (__uint_least16_t *)xbp->page;
3624                                if (shortp[0])
3625                                        /* set before __put_page */
3626                                        oaddr = shortp[shortp[0] - 1];
3627diff -uNr newlib-1.14.0.orig/newlib/libc/search/hash.c newlib-1.14.0/newlib/libc/search/hash.c
3628--- newlib-1.14.0.orig/newlib/libc/search/hash.c        2004-05-26 19:57:10.000000000 +0200
3629+++ newlib-1.14.0/newlib/libc/search/hash.c     2006-10-27 10:12:40.000000000 +0200
3630@@ -628,10 +628,10 @@
3631 {
3632        BUFHEAD *rbufp;
3633        BUFHEAD *bufp, *save_bufp;
3634-       __uint16_t *bp;
3635+       __uint_least16_t *bp;
3636        int n, ndx, off, size;
3637        char *kp;
3638-       __uint16_t pageno;
3639+       __uint_least16_t pageno;
3640 
3641 #ifdef HASH_STATISTICS
3642        hash_accesses++;
3643@@ -647,7 +647,7 @@
3644 
3645        /* Pin the bucket chain */
3646        rbufp->flags |= BUF_PIN;
3647-       for (bp = (__uint16_t *)rbufp->page, n = *bp++, ndx = 1; ndx < n;)
3648+       for (bp = (__uint_least16_t *)rbufp->page, n = *bp++, ndx = 1; ndx < n;)
3649                if (bp[1] >= REAL_KEY) {
3650                        /* Real key/data pair */
3651                        if (size == off - *bp &&
3652@@ -666,7 +666,7 @@
3653                                return (ERROR);
3654                        }
3655                        /* FOR LOOP INIT */
3656-                       bp = (__uint16_t *)rbufp->page;
3657+                       bp = (__uint_least16_t *)rbufp->page;
3658                        n = *bp++;
3659                        ndx = 1;
3660                        off = hashp->BSIZE;
3661@@ -688,7 +688,7 @@
3662                                        return (ERROR);
3663                                }
3664                                /* FOR LOOP INIT */
3665-                               bp = (__uint16_t *)rbufp->page;
3666+                               bp = (__uint_least16_t *)rbufp->page;
3667                                n = *bp++;
3668                                ndx = 1;
3669                                off = hashp->BSIZE;
3670@@ -722,7 +722,7 @@
3671                save_bufp->flags &= ~BUF_PIN;
3672                return (ABNORMAL);
3673        case HASH_GET:
3674-               bp = (__uint16_t *)rbufp->page;
3675+               bp = (__uint_least16_t *)rbufp->page;
3676                if (bp[ndx + 1] < REAL_KEY) {
3677                        if (__big_return(hashp, rbufp, ndx, val, 0))
3678                                return (ERROR);
3679@@ -758,7 +758,7 @@
3680        __uint32_t bucket;
3681        BUFHEAD *bufp;
3682        HTAB *hashp;
3683-       __uint16_t *bp, ndx;
3684+       __uint_least16_t *bp, ndx;
3685 
3686        hashp = (HTAB *)dbp->internal;
3687        if (flag && flag != R_FIRST && flag != R_NEXT) {
3688@@ -783,7 +783,7 @@
3689                                if (!bufp)
3690                                        return (ERROR);
3691                                hashp->cpage = bufp;
3692-                               bp = (__uint16_t *)bufp->page;
3693+                               bp = (__uint_least16_t *)bufp->page;
3694                                if (bp[0])
3695                                        break;
3696                        }
3697@@ -793,7 +793,7 @@
3698                                return (ABNORMAL);
3699                        }
3700                } else
3701-                       bp = (__uint16_t *)hashp->cpage->page;
3702+                       bp = (__uint_least16_t *)hashp->cpage->page;
3703 
3704 #ifdef DEBUG
3705                assert(bp);
3706@@ -804,7 +804,7 @@
3707                            __get_buf(hashp, bp[hashp->cndx], bufp, 0);
3708                        if (!bufp)
3709                                return (ERROR);
3710-                       bp = (__uint16_t *)(bufp->page);
3711+                       bp = (__uint_least16_t *)(bufp->page);
3712                        hashp->cndx = 1;
3713                }
3714                if (!bp[0]) {
3715diff -uNr newlib-1.14.0.orig/newlib/libc/search/hash.h newlib-1.14.0/newlib/libc/search/hash.h
3716--- newlib-1.14.0.orig/newlib/libc/search/hash.h        2002-07-02 20:18:58.000000000 +0200
3717+++ newlib-1.14.0/newlib/libc/search/hash.h     2006-10-27 10:12:40.000000000 +0200
3718@@ -102,7 +102,7 @@
3719 #define NCACHED        32                      /* number of bit maps and spare
3720                                         * points */
3721        int             spares[NCACHED];/* spare pages for overflow */
3722-       __uint16_t      bitmaps[NCACHED];       /* address of overflow page
3723+       __uint_least16_t        bitmaps[NCACHED];       /* address of overflow page
3724                                                 * bitmaps */
3725 } HASHHDR;
3726 
3727diff -uNr newlib-1.14.0.orig/newlib/libc/search/hash_page.c newlib-1.14.0/newlib/libc/search/hash_page.c
3728--- newlib-1.14.0.orig/newlib/libc/search/hash_page.c   2002-09-19 23:28:51.000000000 +0200
3729+++ newlib-1.14.0/newlib/libc/search/hash_page.c        2006-10-27 10:12:40.000000000 +0200
3730@@ -77,16 +77,16 @@
3731 static __uint32_t      *fetch_bitmap(HTAB *, int);
3732 static __uint32_t       first_free(__uint32_t);
3733 static int      open_temp(HTAB *);
3734-static __uint16_t       overflow_page(HTAB *);
3735+static __uint_least16_t         overflow_page(HTAB *);
3736 static void     putpair(char *, const DBT *, const DBT *);
3737-static void     squeeze_key(__uint16_t *, const DBT *, const DBT *);
3738+static void     squeeze_key(__uint_least16_t *, const DBT *, const DBT *);
3739 static int      ugly_split
3740 (HTAB *, __uint32_t, BUFHEAD *, BUFHEAD *, int, int);
3741 
3742 #define        PAGE_INIT(P) { \
3743-       ((__uint16_t *)(P))[0] = 0; \
3744-       ((__uint16_t *)(P))[1] = hashp->BSIZE - 3 * sizeof(__uint16_t); \
3745-       ((__uint16_t *)(P))[2] = hashp->BSIZE; \
3746+       ((__uint_least16_t *)(P))[0] = 0; \
3747+       ((__uint_least16_t *)(P))[1] = hashp->BSIZE - 3 * sizeof(__uint_least16_t); \
3748+       ((__uint_least16_t *)(P))[2] = hashp->BSIZE; \
3749 }
3750 
3751 /*
3752@@ -99,9 +99,9 @@
3753        char *p;
3754        const DBT *key, *val;
3755 {
3756-       __uint16_t *bp, n, off;
3757+       __uint_least16_t *bp, n, off;
3758 
3759-       bp = (__uint16_t *)p;
3760+       bp = (__uint_least16_t *)p;
3761 
3762        /* Enter the key first. */
3763        n = bp[0];
3764@@ -117,7 +117,7 @@
3765 
3766        /* Adjust page info. */
3767        bp[0] = n;
3768-       bp[n + 1] = off - ((n + 3) * sizeof(__uint16_t));
3769+       bp[n + 1] = off - ((n + 3) * sizeof(__uint_least16_t));
3770        bp[n + 2] = off;
3771 }
3772 
3773@@ -132,11 +132,11 @@
3774        BUFHEAD *bufp;
3775        int ndx;
3776 {
3777-       __uint16_t *bp, newoff;
3778+       __uint_least16_t *bp, newoff;
3779        int n;
3780-       __uint16_t pairlen;
3781+       __uint_least16_t pairlen;
3782 
3783-       bp = (__uint16_t *)bufp->page;
3784+       bp = (__uint_least16_t *)bufp->page;
3785        n = bp[0];
3786 
3787        if (bp[ndx + 1] < REAL_KEY)
3788@@ -167,7 +167,7 @@
3789        }
3790        /* Finally adjust the page data */
3791        bp[n] = OFFSET(bp) + pairlen;
3792-       bp[n - 1] = bp[n + 1] + pairlen + 2 * sizeof(__uint16_t);
3793+       bp[n - 1] = bp[n + 1] + pairlen + 2 * sizeof(__uint_least16_t);
3794        bp[0] = n - 2;
3795        hashp->NKEYS--;
3796 
3797@@ -185,15 +185,15 @@
3798        __uint32_t obucket, nbucket;
3799 {
3800        BUFHEAD *new_bufp, *old_bufp;
3801-       __uint16_t *ino;
3802+       __uint_least16_t *ino;
3803        char *np;
3804        DBT key, val;
3805        int n, ndx, retval;
3806-       __uint16_t copyto, diff, off, moved;
3807+       __uint_least16_t copyto, diff, off, moved;
3808        char *op;
3809 
3810-       copyto = (__uint16_t)hashp->BSIZE;
3811-       off = (__uint16_t)hashp->BSIZE;
3812+       copyto = (__uint_least16_t)hashp->BSIZE;
3813+       off = (__uint_least16_t)hashp->BSIZE;
3814        old_bufp = __get_buf(hashp, obucket, NULL, 0);
3815        if (old_bufp == NULL)
3816                return (-1);
3817@@ -204,7 +204,7 @@
3818        old_bufp->flags |= (BUF_MOD | BUF_PIN);
3819        new_bufp->flags |= (BUF_MOD | BUF_PIN);
3820 
3821-       ino = (__uint16_t *)(op = old_bufp->page);
3822+       ino = (__uint_least16_t *)(op = old_bufp->page);
3823        np = new_bufp->page;
3824 
3825        moved = 0;
3826@@ -246,13 +246,13 @@
3827 
3828        /* Now clean up the page */
3829        ino[0] -= moved;
3830-       FREESPACE(ino) = copyto - sizeof(__uint16_t) * (ino[0] + 3);
3831+       FREESPACE(ino) = copyto - sizeof(__uint_least16_t) * (ino[0] + 3);
3832        OFFSET(ino) = copyto;
3833 
3834 #ifdef DEBUG3
3835        (void)fprintf(stderr, "split %d/%d\n",
3836-           ((__uint16_t *)np)[0] / 2,
3837-           ((__uint16_t *)op)[0] / 2);
3838+           ((__uint_least16_t *)np)[0] / 2,
3839+           ((__uint_least16_t *)op)[0] / 2);
3840 #endif
3841        /* unpin both pages */
3842        old_bufp->flags &= ~BUF_PIN;
3843@@ -284,22 +284,22 @@
3844        int moved;              /* Number of pairs moved to new page. */
3845 {
3846        BUFHEAD *bufp;          /* Buffer header for ino */
3847-       __uint16_t *ino;                /* Page keys come off of */
3848-       __uint16_t *np;         /* New page */
3849-       __uint16_t *op;         /* Page keys go on to if they aren't moving */
3850+       __uint_least16_t *ino;          /* Page keys come off of */
3851+       __uint_least16_t *np;           /* New page */
3852+       __uint_least16_t *op;           /* Page keys go on to if they aren't moving */
3853 
3854        BUFHEAD *last_bfp;      /* Last buf header OVFL needing to be freed */
3855        DBT key, val;
3856        SPLIT_RETURN ret;
3857-       __uint16_t n, off, ov_addr, scopyto;
3858+       __uint_least16_t n, off, ov_addr, scopyto;
3859        char *cino;             /* Character value of ino */
3860 
3861        bufp = old_bufp;
3862-       ino = (__uint16_t *)old_bufp->page;
3863-       np = (__uint16_t *)new_bufp->page;
3864-       op = (__uint16_t *)old_bufp->page;
3865+       ino = (__uint_least16_t *)old_bufp->page;
3866+       np = (__uint_least16_t *)new_bufp->page;
3867+       op = (__uint_least16_t *)old_bufp->page;
3868        last_bfp = NULL;
3869-       scopyto = (__uint16_t)copyto;   /* ANSI */
3870+       scopyto = (__uint_least16_t)copyto;     /* ANSI */
3871 
3872        n = ino[0] - 1;
3873        while (n < ino[0]) {
3874@@ -310,16 +310,16 @@
3875                        old_bufp = ret.oldp;
3876                        if (!old_bufp)
3877                                return (-1);
3878-                       op = (__uint16_t *)old_bufp->page;
3879+                       op = (__uint_least16_t *)old_bufp->page;
3880                        new_bufp = ret.newp;
3881                        if (!new_bufp)
3882                                return (-1);
3883-                       np = (__uint16_t *)new_bufp->page;
3884+                       np = (__uint_least16_t *)new_bufp->page;
3885                        bufp = ret.nextp;
3886                        if (!bufp)
3887                                return (0);
3888                        cino = (char *)bufp->page;
3889-                       ino = (__uint16_t *)cino;
3890+                       ino = (__uint_least16_t *)cino;
3891                        last_bfp = ret.nextp;
3892                } else if (ino[n + 1] == OVFLPAGE) {
3893                        ov_addr = ino[n];
3894@@ -329,14 +329,14 @@
3895                         */
3896                        ino[0] -= (moved + 2);
3897                        FREESPACE(ino) =
3898-                           scopyto - sizeof(__uint16_t) * (ino[0] + 3);
3899+                           scopyto - sizeof(__uint_least16_t) * (ino[0] + 3);
3900                        OFFSET(ino) = scopyto;
3901 
3902                        bufp = __get_buf(hashp, ov_addr, bufp, 0);
3903                        if (!bufp)
3904                                return (-1);
3905 
3906-                       ino = (__uint16_t *)bufp->page;
3907+                       ino = (__uint_least16_t *)bufp->page;
3908                        n = 1;
3909                        scopyto = hashp->BSIZE;
3910                        moved = 0;
3911@@ -364,7 +364,7 @@
3912                                            __add_ovflpage(hashp, old_bufp);
3913                                        if (!old_bufp)
3914                                                return (-1);
3915-                                       op = (__uint16_t *)old_bufp->page;
3916+                                       op = (__uint_least16_t *)old_bufp->page;
3917                                        putpair((char *)op, &key, &val);
3918                                }
3919                                old_bufp->flags |= BUF_MOD;
3920@@ -377,7 +377,7 @@
3921                                            __add_ovflpage(hashp, new_bufp);
3922                                        if (!new_bufp)
3923                                                return (-1);
3924-                                       np = (__uint16_t *)new_bufp->page;
3925+                                       np = (__uint_least16_t *)new_bufp->page;
3926                                        putpair((char *)np, &key, &val);
3927                                }
3928                                new_bufp->flags |= BUF_MOD;
3929@@ -402,10 +402,10 @@
3930        BUFHEAD *bufp;
3931        const DBT *key, *val;
3932 {
3933-       __uint16_t *bp, *sop;
3934+       __uint_least16_t *bp, *sop;
3935        int do_expand;
3936 
3937-       bp = (__uint16_t *)bufp->page;
3938+       bp = (__uint_least16_t *)bufp->page;
3939        do_expand = 0;
3940        while (bp[0] && (bp[2] < REAL_KEY || bp[bp[0]] < REAL_KEY))
3941                /* Exception case */
3942@@ -417,7 +417,7 @@
3943                        bufp = __get_buf(hashp, bp[bp[0] - 1], bufp, 0);
3944                        if (!bufp)
3945                                return (-1);
3946-                       bp = (__uint16_t *)bufp->page;
3947+                       bp = (__uint_least16_t *)bufp->page;
3948                } else
3949                        /* Try to squeeze key on this page */
3950                        if (FREESPACE(bp) > PAIRSIZE(key, val)) {
3951@@ -427,7 +427,7 @@
3952                                bufp = __get_buf(hashp, bp[bp[0] - 1], bufp, 0);
3953                                if (!bufp)
3954                                        return (-1);
3955-                               bp = (__uint16_t *)bufp->page;
3956+                               bp = (__uint_least16_t *)bufp->page;
3957                        }
3958 
3959        if (PAIRFITS(bp, key, val))
3960@@ -437,7 +437,7 @@
3961                bufp = __add_ovflpage(hashp, bufp);
3962                if (!bufp)
3963                        return (-1);
3964-               sop = (__uint16_t *)bufp->page;
3965+               sop = (__uint_least16_t *)bufp->page;
3966 
3967                if (PAIRFITS(sop, key, val))
3968                        putpair((char *)sop, key, val);
3969@@ -468,12 +468,12 @@
3970        HTAB *hashp;
3971        BUFHEAD *bufp;
3972 {
3973-       __uint16_t *sp;
3974-       __uint16_t ndx, ovfl_num;
3975+       __uint_least16_t *sp;
3976+       __uint_least16_t ndx, ovfl_num;
3977 #ifdef DEBUG1
3978        int tmp1, tmp2;
3979 #endif
3980-       sp = (__uint16_t *)bufp->page;
3981+       sp = (__uint_least16_t *)bufp->page;
3982 
3983        /* Check if we are dynamically determining the fill factor */
3984        if (hashp->FFACTOR == DEF_FFACTOR) {
3985@@ -525,7 +525,7 @@
3986 {
3987        int fd, page, size;
3988        int rsize;
3989-       __uint16_t *bp;
3990+       __uint_least16_t *bp;
3991 
3992        fd = hashp->fp;
3993        size = hashp->BSIZE;
3994@@ -541,7 +541,7 @@
3995        if ((lseek(fd, (off_t)page << hashp->BSHIFT, SEEK_SET) == -1) ||
3996            ((rsize = read(fd, p, size)) == -1))
3997                return (-1);
3998-       bp = (__uint16_t *)p;
3999+       bp = (__uint_least16_t *)p;
4000        if (!rsize)
4001                bp[0] = 0;      /* We hit the EOF, so initialize a new page */
4002        else
4003@@ -600,9 +600,9 @@
4004                        for (i = 0; i < max; i++)
4005                                M_32_SWAP(((int *)p)[i]);
4006                } else {
4007-                       max = ((__uint16_t *)p)[0] + 2;
4008+                       max = ((__uint_least16_t *)p)[0] + 2;
4009                        for (i = 0; i <= max; i++)
4010-                               M_16_SWAP(((__uint16_t *)p)[i]);
4011+                               M_16_SWAP(((__uint_least16_t *)p)[i]);
4012                }
4013        }
4014        if (is_bucket)
4015@@ -643,7 +643,7 @@
4016            hashp->BSIZE - clearbytes);
4017        ip[clearints - 1] = ALL_SET << (nbits & BYTE_MASK);
4018        SETBIT(ip, 0);
4019-       hashp->BITMAPS[ndx] = (__uint16_t)pnum;
4020+       hashp->BITMAPS[ndx] = (__uint_least16_t)pnum;
4021        hashp->mapp[ndx] = ip;
4022        return (0);
4023 }
4024@@ -663,13 +663,13 @@
4025        return (i);
4026 }
4027 
4028-static __uint16_t
4029+static __uint_least16_t
4030 overflow_page(hashp)
4031        HTAB *hashp;
4032 {
4033        __uint32_t *freep;
4034        int max_free, offset, splitnum;
4035-       __uint16_t addr;
4036+       __uint_least16_t addr;
4037        int bit, first_page, free_bit, free_page, i, in_use_bits, j;
4038 #ifdef DEBUG2
4039        int tmp1, tmp2;
4040@@ -816,16 +816,16 @@
4041        HTAB *hashp;
4042        BUFHEAD *obufp;
4043 {
4044-       __uint16_t addr;
4045+       __uint_least16_t addr;
4046        __uint32_t *freep;
4047        int bit_address, free_page, free_bit;
4048-       __uint16_t ndx;
4049+       __uint_least16_t ndx;
4050 
4051        addr = obufp->addr;
4052 #ifdef DEBUG1
4053        (void)fprintf(stderr, "Freeing %d\n", addr);
4054 #endif
4055-       ndx = (((__uint16_t)addr) >> SPLITSHIFT);
4056+       ndx = (((__uint_least16_t)addr) >> SPLITSHIFT);
4057        bit_address =
4058            (ndx ? hashp->SPARES[ndx - 1] : 0) + (addr & SPLITMASK) - 1;
4059         if (bit_address < hashp->LAST_FREED)
4060@@ -883,11 +883,11 @@
4061  */
4062 static void
4063 squeeze_key(sp, key, val)
4064-       __uint16_t *sp;
4065+       __uint_least16_t *sp;
4066        const DBT *key, *val;
4067 {
4068        char *p;
4069-       __uint16_t free_space, n, off, pageno;
4070+       __uint_least16_t free_space, n, off, pageno;
4071 
4072        p = (char *)sp;
4073        n = sp[0];
4074diff -uNr newlib-1.14.0.orig/newlib/libc/search/page.h newlib-1.14.0/newlib/libc/search/page.h
4075--- newlib-1.14.0.orig/newlib/libc/search/page.h        2002-06-20 21:51:31.000000000 +0200
4076+++ newlib-1.14.0/newlib/libc/search/page.h     2006-10-27 10:12:40.000000000 +0200
4077@@ -74,20 +74,20 @@
4078  * You might as well do this up front.
4079  */
4080 
4081-#define        PAIRSIZE(K,D)   (2*sizeof(__uint16_t) + (K)->size + (D)->size)
4082-#define BIGOVERHEAD    (4*sizeof(__uint16_t))
4083-#define KEYSIZE(K)     (4*sizeof(__uint16_t) + (K)->size);
4084-#define OVFLSIZE       (2*s