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