source:
rtems/contrib/crossrpms/patches/newlib-1.14.0-rtems4.8-20061109.diff
@
e315b421
Last change on this file since e315b421 was e315b421, checked in by Ralf Corsepius <ralf.corsepius@…>, on 11/09/06 at 11:19:05 | |
---|---|
|
|
File size: 132.2 KB |
-
newlib/configure.host
diff -uNr newlib-1.14.0/newlib/configure.host newlib-1.14.0-rtems4.8-20061109/newlib/configure.host
old new 96 96 avr*) 97 97 newlib_cflags="${newlib_cflags} -DPREFER_SIZE_OVER_SPEED -mcall-prologues" 98 98 ;; 99 bfin) 100 machine_dir=bfin 101 ;; 99 102 cris | crisv32) 100 103 machine_dir=cris 101 104 ;; … … 190 193 machine_dir=mn10300 191 194 ;; 192 195 mt*) 193 194 196 machine_dir=mt 197 ;; 195 198 or16) 196 199 ;; 197 200 or32) … … 326 329 have_crt0="no" 327 330 fi 328 331 ;; 332 bfin-*-*) 333 sys_dir= 334 ;; 329 335 crx*) 330 336 sys_dir= 331 337 ;; … … 526 532 avr*) 527 533 newlib_cflags="${newlib_cflags} -DNO_EXEC -DSMALL_MEMORY -DMISSING_SYSCALL_NAMES" 528 534 ;; 535 bfin*) 536 syscall_dir=syscalls 537 ;; 529 538 cris-*-* | crisv32-*-*) 530 539 default_newlib_io_long_long="yes" 531 540 newlib_cflags="${newlib_cflags} -DHAVE_RENAME -DHAVE_GETTIMEOFDAY -D_USE_WRITE -DCOMPACT_CTYPE" -
newlib/libc/include/machine/ieeefp.h
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
old new 278 278 #define __IEEE_LITTLE_ENDIAN 279 279 #endif 280 280 281 #ifdef __BFIN__ 282 #define __IEEE_LITTLE_ENDIAN 283 #endif 284 281 285 #ifndef __IEEE_BIG_ENDIAN 282 286 #ifndef __IEEE_LITTLE_ENDIAN 283 287 #error Endianess not declared!! -
newlib/libc/include/machine/setjmp.h
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
old new 21 21 #define _JBLEN 13 22 22 #endif 23 23 24 #ifdef __BFIN__ 25 #define _JBLEN 40 26 #endif 27 24 28 /* necv70 was 9 as well. */ 25 29 26 #if def __mc68000__30 #if defined(__m68k__) || defined(__mc68000__) 27 31 /* 28 32 * onsstack,sigmask,sp,pc,psl,d2-d7,a2-a6, 29 33 * fp2-fp7 for 68881. … … 204 208 #define _JBLEN 16 205 209 #endif 206 210 211 #ifdef __SPU__ 212 #define _JBLEN 50 213 #define _JBTYPE __attribute__ (( __vector_size__ (16) )) int 214 #endif 215 207 216 #ifdef __xstormy16__ 208 217 /* 4 GPRs plus SP plus PC. */ 209 218 #define _JBLEN 8 … … 252 261 #if defined(__GNUC__) 253 262 254 263 #define sigsetjmp(env, savemask) \ 264 __extension__ \ 255 265 ({ \ 256 266 sigjmp_buf *_sjbuf = &(env); \ 257 267 ((*_sjbuf)[_SAVEMASK] = savemask,\ … … 260 270 }) 261 271 262 272 #define siglongjmp(env, val) \ 273 __extension__ \ 263 274 ({ \ 264 275 sigjmp_buf *_sjbuf = &(env); \ 265 276 ((((*_sjbuf)[_SAVEMASK]) ? \ -
newlib/libc/include/pthread.h
diff -uNr newlib-1.14.0/newlib/libc/include/pthread.h newlib-1.14.0-rtems4.8-20061109/newlib/libc/include/pthread.h
old new 50 50 51 51 /* Mutex Initialization Attributes, P1003.1c/Draft 10, p. 81 */ 52 52 53 int _EXFUN(pthread_mutexattr_init, (pthread_mutexattr_t * attr));54 int _EXFUN(pthread_mutexattr_destroy, (pthread_mutexattr_t * attr));53 int _EXFUN(pthread_mutexattr_init, (pthread_mutexattr_t *__attr)); 54 int _EXFUN(pthread_mutexattr_destroy, (pthread_mutexattr_t *__attr)); 55 55 int _EXFUN(pthread_mutexattr_getpshared, 56 ( const pthread_mutexattr_t *attr, int *pshared));56 (_CONST pthread_mutexattr_t *__attr, int *__pshared)); 57 57 int _EXFUN(pthread_mutexattr_setpshared, 58 (pthread_mutexattr_t * attr, intpshared));58 (pthread_mutexattr_t *__attr, int __pshared)); 59 59 60 60 /* Initializing and Destroying a Mutex, P1003.1c/Draft 10, p. 87 */ 61 61 62 62 int _EXFUN(pthread_mutex_init, 63 (pthread_mutex_t * mutex, const pthread_mutexattr_t *attr));64 int _EXFUN(pthread_mutex_destroy, (pthread_mutex_t * mutex));63 (pthread_mutex_t *__mutex, _CONST pthread_mutexattr_t *__attr)); 64 int _EXFUN(pthread_mutex_destroy, (pthread_mutex_t *__mutex)); 65 65 66 66 /* This is used to statically initialize a pthread_mutex_t. Example: 67 67 … … 73 73 /* Locking and Unlocking a Mutex, P1003.1c/Draft 10, p. 93 74 74 NOTE: P1003.4b/D8 adds pthread_mutex_timedlock(), p. 29 */ 75 75 76 int _EXFUN(pthread_mutex_lock, (pthread_mutex_t * mutex));77 int _EXFUN(pthread_mutex_trylock, (pthread_mutex_t * mutex));78 int _EXFUN(pthread_mutex_unlock, (pthread_mutex_t * mutex));76 int _EXFUN(pthread_mutex_lock, (pthread_mutex_t *__mutex)); 77 int _EXFUN(pthread_mutex_trylock, (pthread_mutex_t *__mutex)); 78 int _EXFUN(pthread_mutex_unlock, (pthread_mutex_t *__mutex)); 79 79 80 80 #if defined(_POSIX_TIMEOUTS) 81 81 82 82 int _EXFUN(pthread_mutex_timedlock, 83 (pthread_mutex_t * mutex, const struct timespec *timeout));83 (pthread_mutex_t *__mutex, _CONST struct timespec *__timeout)); 84 84 85 85 #endif /* _POSIX_TIMEOUTS */ 86 86 87 87 /* Condition Variable Initialization Attributes, P1003.1c/Draft 10, p. 96 */ 88 88 89 int _EXFUN(pthread_condattr_init, (pthread_condattr_t * attr));90 int _EXFUN(pthread_condattr_destroy, (pthread_condattr_t * attr));89 int _EXFUN(pthread_condattr_init, (pthread_condattr_t *__attr)); 90 int _EXFUN(pthread_condattr_destroy, (pthread_condattr_t *__attr)); 91 91 int _EXFUN(pthread_condattr_getpshared, 92 ( const pthread_condattr_t *attr, int *pshared));92 (_CONST pthread_condattr_t *__attr, int *__pshared)); 93 93 int _EXFUN(pthread_condattr_setpshared, 94 (pthread_condattr_t * attr, intpshared));94 (pthread_condattr_t *__attr, int __pshared)); 95 95 96 96 /* Initializing and Destroying a Condition Variable, P1003.1c/Draft 10, p. 87 */ 97 97 98 98 int _EXFUN(pthread_cond_init, 99 (pthread_cond_t * cond, const pthread_condattr_t *attr));100 int _EXFUN(pthread_cond_destroy, (pthread_cond_t * mutex));99 (pthread_cond_t *__cond, _CONST pthread_condattr_t *__attr)); 100 int _EXFUN(pthread_cond_destroy, (pthread_cond_t *__mutex)); 101 101 102 102 /* This is used to statically initialize a pthread_cond_t. Example: 103 103 … … 108 108 109 109 /* Broadcasting and Signaling a Condition, P1003.1c/Draft 10, p. 101 */ 110 110 111 int _EXFUN(pthread_cond_signal, (pthread_cond_t * cond));112 int _EXFUN(pthread_cond_broadcast, (pthread_cond_t * cond));111 int _EXFUN(pthread_cond_signal, (pthread_cond_t *__cond)); 112 int _EXFUN(pthread_cond_broadcast, (pthread_cond_t *__cond)); 113 113 114 114 /* Waiting on a Condition, P1003.1c/Draft 10, p. 105 */ 115 115 116 116 int _EXFUN(pthread_cond_wait, 117 (pthread_cond_t * cond, pthread_mutex_t *mutex));117 (pthread_cond_t *__cond, pthread_mutex_t *__mutex)); 118 118 119 119 int _EXFUN(pthread_cond_timedwait, 120 (pthread_cond_t * cond, pthread_mutex_t *mutex,121 const struct timespec *abstime));120 (pthread_cond_t *__cond, pthread_mutex_t *__mutex, 121 _CONST struct timespec *__abstime)); 122 122 123 123 #if defined(_POSIX_THREAD_PRIORITY_SCHEDULING) 124 124 125 125 /* Thread Creation Scheduling Attributes, P1003.1c/Draft 10, p. 120 */ 126 126 127 127 int _EXFUN(pthread_attr_setscope, 128 (pthread_attr_t * attr, intcontentionscope));128 (pthread_attr_t *__attr, int __contentionscope)); 129 129 int _EXFUN(pthread_attr_getscope, 130 ( const pthread_attr_t *attr, int *contentionscope));130 (_CONST pthread_attr_t *__attr, int *__contentionscope)); 131 131 int _EXFUN(pthread_attr_setinheritsched, 132 (pthread_attr_t *attr, intinheritsched));132 (pthread_attr_t *__attr, int __inheritsched)); 133 133 int _EXFUN(pthread_attr_getinheritsched, 134 (const pthread_attr_t *attr, int *inheritsched)); 135 int _EXFUN(pthread_attr_setschedpolicy, (pthread_attr_t *attr, int policy)); 134 (_CONST pthread_attr_t *__attr, int *__inheritsched)); 135 int _EXFUN(pthread_attr_setschedpolicy, 136 (pthread_attr_t *__attr, int __policy)); 136 137 int _EXFUN(pthread_attr_getschedpolicy, 137 ( const pthread_attr_t *attr, int *policy));138 (_CONST pthread_attr_t *__attr, int *__policy)); 138 139 139 140 #endif /* defined(_POSIX_THREAD_PRIORITY_SCHEDULING) */ 140 141 141 142 int _EXFUN(pthread_attr_setschedparam, 142 (pthread_attr_t * attr, const struct sched_param *param));143 (pthread_attr_t *__attr, _CONST struct sched_param *__param)); 143 144 int _EXFUN(pthread_attr_getschedparam, 144 ( const pthread_attr_t *attr, struct sched_param *param));145 (_CONST pthread_attr_t *__attr, struct sched_param *__param)); 145 146 146 147 #if defined(_POSIX_THREAD_PRIORITY_SCHEDULING) 147 148 148 149 /* Dynamic Thread Scheduling Parameters Access, P1003.1c/Draft 10, p. 124 */ 149 150 150 151 int _EXFUN(pthread_getschedparam, 151 (pthread_t thread, int *policy, struct sched_param *param));152 (pthread_t __pthread, int *__policy, struct sched_param *__param)); 152 153 int _EXFUN(pthread_setschedparam, 153 (pthread_t thread, int policy, struct sched_param *param));154 (pthread_t __pthread, int __policy, struct sched_param *__param)); 154 155 155 156 #endif /* defined(_POSIX_THREAD_PRIORITY_SCHEDULING) */ 156 157 … … 159 160 /* Mutex Initialization Scheduling Attributes, P1003.1c/Draft 10, p. 128 */ 160 161 161 162 int _EXFUN(pthread_mutexattr_setprotocol, 162 (pthread_mutexattr_t * attr, intprotocol));163 (pthread_mutexattr_t *__attr, int __protocol)); 163 164 int _EXFUN(pthread_mutexattr_getprotocol, 164 (const pthread_mutexattr_t *attr, int *protocol));165 (_CONST pthread_mutexattr_t *__attr, int *__protocol)); 165 166 int _EXFUN(pthread_mutexattr_setprioceiling, 166 (pthread_mutexattr_t * attr, intprioceiling));167 (pthread_mutexattr_t *__attr, int __prioceiling)); 167 168 int _EXFUN(pthread_mutexattr_getprioceiling, 168 ( const pthread_mutexattr_t *attr, int *prioceiling));169 (_CONST pthread_mutexattr_t *__attr, int *__prioceiling)); 169 170 170 171 #endif /* _POSIX_THREAD_PRIO_INHERIT || _POSIX_THREAD_PRIO_PROTECT */ 171 172 … … 174 175 /* Change the Priority Ceiling of a Mutex, P1003.1c/Draft 10, p. 131 */ 175 176 176 177 int _EXFUN(pthread_mutex_setprioceiling, 177 (pthread_mutex_t * mutex, int prioceiling, int *old_ceiling));178 (pthread_mutex_t *__mutex, int __prioceiling, int *__old_ceiling)); 178 179 int _EXFUN(pthread_mutex_getprioceiling, 179 (pthread_mutex_t * mutex, int *prioceiling));180 (pthread_mutex_t *__mutex, int *__prioceiling)); 180 181 181 182 #endif /* _POSIX_THREAD_PRIO_PROTECT */ 182 183 183 184 /* Thread Creation Attributes, P1003.1c/Draft 10, p, 140 */ 184 185 185 int _EXFUN(pthread_attr_init, (pthread_attr_t * attr));186 int _EXFUN(pthread_attr_destroy, (pthread_attr_t * attr));186 int _EXFUN(pthread_attr_init, (pthread_attr_t *__attr)); 187 int _EXFUN(pthread_attr_destroy, (pthread_attr_t *__attr)); 187 188 int _EXFUN(pthread_attr_getstacksize, 188 ( const pthread_attr_t *attr, size_t *stacksize));189 (_CONST pthread_attr_t *__attr, size_t *__stacksize)); 189 190 int _EXFUN(pthread_attr_setstacksize, 190 (pthread_attr_t * attr, size_t stacksize));191 (pthread_attr_t *__attr, size_t stacksize)); 191 192 int _EXFUN(pthread_attr_getstackaddr, 192 ( const pthread_attr_t *attr, void **stackaddr));193 (_CONST pthread_attr_t *__attr, void **__stackaddr)); 193 194 int _EXFUN(pthread_attr_setstackaddr, 194 (pthread_attr_t * attr, void *stackaddr));195 (pthread_attr_t *__attr, void *__stackaddr)); 195 196 int _EXFUN(pthread_attr_getdetachstate, 196 ( const pthread_attr_t *attr, int *detachstate));197 (_CONST pthread_attr_t *__attr, int *__detachstate)); 197 198 int _EXFUN(pthread_attr_setdetachstate, 198 (pthread_attr_t * attr, intdetachstate));199 (pthread_attr_t *__attr, int __detachstate)); 199 200 200 201 /* Thread Creation, P1003.1c/Draft 10, p. 144 */ 201 202 202 203 int _EXFUN(pthread_create, 203 (pthread_t * thread, const pthread_attr_t *attr,204 void *(* start_routine)( void * ), void *arg));204 (pthread_t *__pthread, _CONST pthread_attr_t *__attr, 205 void *(*__start_routine)( void * ), void *__arg)); 205 206 206 207 /* Wait for Thread Termination, P1003.1c/Draft 10, p. 147 */ 207 208 208 int _EXFUN(pthread_join, (pthread_t thread, void **value_ptr));209 int _EXFUN(pthread_join, (pthread_t __pthread, void **__value_ptr)); 209 210 210 211 /* Detaching a Thread, P1003.1c/Draft 10, p. 149 */ 211 212 212 int _EXFUN(pthread_detach, (pthread_t thread));213 int _EXFUN(pthread_detach, (pthread_t __pthread)); 213 214 214 215 /* Thread Termination, p1003.1c/Draft 10, p. 150 */ 215 216 216 void _EXFUN(pthread_exit, (void * value_ptr));217 void _EXFUN(pthread_exit, (void *__value_ptr)); 217 218 218 219 /* Get Calling Thread's ID, p1003.1c/Draft 10, p. XXX */ 219 220 … … 221 222 222 223 /* Compare Thread IDs, p1003.1c/Draft 10, p. 153 */ 223 224 224 int _EXFUN(pthread_equal, (pthread_t t1, pthread_tt2));225 int _EXFUN(pthread_equal, (pthread_t __t1, pthread_t __t2)); 225 226 226 227 /* Dynamic Package Initialization */ 227 228 … … 234 235 #define PTHREAD_ONCE_INIT { 1, 0 } /* is initialized and not run */ 235 236 236 237 int _EXFUN(pthread_once, 237 (pthread_once_t * once_control, void (*init_routine)(void)));238 (pthread_once_t *__once_control, void (*__init_routine)(void))); 238 239 239 240 /* Thread-Specific Data Key Create, P1003.1c/Draft 10, p. 163 */ 240 241 241 242 int _EXFUN(pthread_key_create, 242 (pthread_key_t * key, void (*destructor)( void * )));243 (pthread_key_t *__key, void (*__destructor)( void * ))); 243 244 244 245 /* Thread-Specific Data Management, P1003.1c/Draft 10, p. 165 */ 245 246 246 int _EXFUN(pthread_setspecific, (pthread_key_t key, const void *value)); 247 void * _EXFUN(pthread_getspecific, (pthread_key_t key)); 247 int _EXFUN(pthread_setspecific, 248 (pthread_key_t __key, _CONST void *__value)); 249 void * _EXFUN(pthread_getspecific, (pthread_key_t __key)); 248 250 249 251 /* Thread-Specific Data Key Deletion, P1003.1c/Draft 10, p. 167 */ 250 252 251 int _EXFUN(pthread_key_delete, (pthread_key_t key));253 int _EXFUN(pthread_key_delete, (pthread_key_t __key)); 252 254 253 255 /* Execution of a Thread, P1003.1c/Draft 10, p. 181 */ 254 256 … … 260 262 261 263 #define PTHREAD_CANCELED ((void *) -1) 262 264 263 int _EXFUN(pthread_cancel, (pthread_t thread));265 int _EXFUN(pthread_cancel, (pthread_t __pthread)); 264 266 265 267 /* Setting Cancelability State, P1003.1c/Draft 10, p. 183 */ 266 268 267 int _EXFUN(pthread_setcancelstate, (int state, int *oldstate));268 int _EXFUN(pthread_setcanceltype, (int type, int *oldtype));269 int _EXFUN(pthread_setcancelstate, (int __state, int *__oldstate)); 270 int _EXFUN(pthread_setcanceltype, (int __type, int *__oldtype)); 269 271 void _EXFUN(pthread_testcancel, (void)); 270 272 271 273 /* Establishing Cancellation Handlers, P1003.1c/Draft 10, p. 184 */ 272 274 273 void _EXFUN(pthread_cleanup_push, (void (*routine)( void * ), void *arg)); 274 void _EXFUN(pthread_cleanup_pop, (int execute)); 275 void _EXFUN(pthread_cleanup_push, 276 (void (*__routine)( void * ), void *__arg)); 277 void _EXFUN(pthread_cleanup_pop, (int __execute)); 275 278 276 279 #if defined(_POSIX_THREAD_CPUTIME) 277 280 278 281 /* Accessing a Thread CPU-time Clock, P1003.4b/D8, p. 58 */ 279 282 280 283 int _EXFUN(pthread_getcpuclockid, 281 (pthread_t thread_id, clockid_t *clock_id));284 (pthread_t __pthread_id, clockid_t *__clock_id)); 282 285 283 286 /* CPU-time Clock Thread Creation Attribute, P1003.4b/D8, p. 59 */ 284 287 285 288 int _EXFUN(pthread_attr_setcputime, 286 (pthread_attr_t * attr, intclock_allowed));289 (pthread_attr_t *__attr, int __clock_allowed)); 287 290 288 291 int _EXFUN(pthread_attr_getcputime, 289 (pthread_attr_t * attr, int *clock_allowed));292 (pthread_attr_t *__attr, int *__clock_allowed)); 290 293 291 294 #endif /* defined(_POSIX_THREAD_CPUTIME) */ 292 295 296 293 297 #endif /* defined(_POSIX_THREADS) */ 294 298 299 #if defined(_POSIX_BARRIERS) 300 301 int _EXFUN(pthread_barrierattr_init, (pthread_barrierattr_t *__attr)); 302 int _EXFUN(pthread_barrierattr_destroy, (pthread_barrierattr_t *__attr)); 303 int _EXFUN(pthread_barrierattr_getpshared, 304 (_CONST pthread_barrierattr_t *__attr, int *__pshared)); 305 int _EXFUN(pthread_barrierattr_setpshared, 306 (pthread_barrierattr_t *__attr, int __pshared)); 307 308 #define PTHREAD_BARRIER_SERIAL_THREAD -1 309 310 int _EXFUN(pthread_barrier_init, 311 (pthread_barrier_t *__barrier, 312 _CONST pthread_barrierattr_t *__attr, unsigned __count)); 313 int _EXFUN(pthread_barrier_destroy, (pthread_barrier_t *__barrier)); 314 int _EXFUN(pthread_barrier_wait,(pthread_barrier_t *__barrier)); 315 316 #endif /* defined(_POSIX_BARRIERS) */ 317 318 #if defined(_POSIX_SPIN_LOCKS) 319 320 int _EXFUN(pthread_spin_init, 321 (pthread_spinlock_t *__spinlock, int __pshared)); 322 int _EXFUN(pthread_spin_destroy, (pthread_spinlock_t *__spinlock)); 323 int _EXFUN(pthread_spin_lock, (pthread_spinlock_t *__spinlock)); 324 int _EXFUN(pthread_spin_trylock, (pthread_spinlock_t *__spinlock)); 325 int _EXFUN(pthread_spin_unlock, (pthread_spinlock_t *__spinlock)); 326 327 #endif /* defined(_POSIX_SPIN_LOCKS) */ 328 329 #if defined(_POSIX_READER_WRITER_LOCKS) 330 331 int _EXFUN(pthread_rwlockattr_init, (pthread_rwlockattr_t *__attr)); 332 int _EXFUN(pthread_rwlockattr_destroy, (pthread_rwlockattr_t *__attr)); 333 int _EXFUN(pthread_rwlockattr_getpshared, 334 (_CONST pthread_rwlockattr_t *__attr, int *__pshared)); 335 int _EXFUN(pthread_rwlockattr_setpshared, 336 (pthread_rwlockattr_t *__attr, int __pshared)); 337 338 int _EXFUN(pthread_rwlock_init, 339 (pthread_rwlock_t *__rwlock, _CONST pthread_rwlockattr_t *__attr)); 340 int _EXFUN(pthread_rwlock_destroy, (pthread_rwlock_t *__rwlock)); 341 int _EXFUN(pthread_rwlock_rdlock,(pthread_rwlock_t *__rwlock)); 342 int _EXFUN(pthread_rwlock_tryrdlock,(pthread_rwlock_t *__rwlock)); 343 int _EXFUN(pthread_rwlock_timedrdlock, 344 (pthread_rwlock_t *__rwlock, _CONST struct timespec *__abstime)); 345 int _EXFUN(pthread_rwlock_wrlock,(pthread_rwlock_t *__rwlock)); 346 int _EXFUN(pthread_rwlock_trywrlock,(pthread_rwlock_t *__rwlock)); 347 int _EXFUN(pthread_rwlock_timedwrlock, 348 (pthread_rwlock_t *__rwlock, _CONST struct timespec *__abstime)); 349 350 #endif /* defined(_POSIX_READER_WRITER_LOCKS) */ 351 352 295 353 #ifdef __cplusplus 296 354 } 297 355 #endif -
newlib/libc/include/sys/features.h
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
old new 45 45 #define _POSIX_SHARED_MEMORY_OBJECTS 1 46 46 #define _POSIX_SYNCHRONIZED_IO 1 47 47 #define _POSIX_TIMERS 1 48 #define _POSIX_BARRIERS 200112L 49 #define _POSIX_READER_WRITER_LOCKS 200112L 50 #define _POSIX_SPIN_LOCKS 200112L 48 51 49 52 50 53 /* In P1003.1b but defined by drafts at least as early as P1003.1c/D10 */ -
newlib/libc/include/sys/_types.h
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
old new 39 39 /* Iconv descriptor type */ 40 40 typedef void *_iconv_t; 41 41 42 typedef long * __intptr_t; 43 typedef unsigned long* __uintptr_t; 44 42 45 #endif /* _SYS__TYPES_H */ -
newlib/libc/include/sys/types.h
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
old new 373 373 #endif 374 374 #endif /* defined(_POSIX_THREADS) */ 375 375 376 /* POSIX Barrier Types */ 377 378 #if defined(_POSIX_BARRIERS) 379 typedef __uint32_t pthread_barrier_t; /* POSIX Barrier Object */ 380 typedef struct { 381 int is_initialized; /* is this structure initialized? */ 382 #if defined(_POSIX_THREAD_PROCESS_SHARED) 383 int process_shared; /* allow this to be shared amongst processes */ 384 #endif 385 } pthread_barrierattr_t; 386 #endif /* defined(_POSIX_BARRIERS) */ 387 388 /* POSIX Spin Lock Types */ 389 390 #if defined(_POSIX_SPIN_LOCKS) 391 typedef __uint32_t pthread_spinlock_t; /* POSIX Spin Lock Object */ 392 #endif /* defined(_POSIX_SPIN_LOCKS) */ 393 394 /* POSIX Reader/Writer Lock Types */ 395 396 #if defined(_POSIX_READER_WRITER_LOCKS) 397 typedef __uint32_t pthread_rwlock_t; /* POSIX RWLock Object */ 398 typedef struct { 399 int is_initialized; /* is this structure initialized? */ 400 #if defined(_POSIX_THREAD_PROCESS_SHARED) 401 int process_shared; /* allow this to be shared amongst processes */ 402 #endif 403 } pthread_rwlockattr_t; 404 #endif /* defined(_POSIX_READER_WRITER_LOCKS) */ 405 376 406 #endif /* !__need_inttypes */ 377 407 378 408 #undef __need_inttypes -
newlib/libc/machine/arm/machine/endian.h
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
old new 1 /* ARM configuration file */2 3 #ifndef _MACHINE_ENDIAN_H4 # define _MACHINE_ENDIAN_H5 6 #ifdef __ARMEB__7 #define BYTE_ORDER BIG_ENDIAN8 #else9 #define BYTE_ORDER LITTLE_ENDIAN10 #endif11 12 #endif -
newlib/libc/machine/bfin/aclocal.m4
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
old new 1 dnl aclocal.m4 generated automatically by aclocal 1.4-p6 2 3 dnl Copyright (C) 1994, 1995-8, 1999, 2001 Free Software Foundation, Inc. 4 dnl This file is free software; the Free Software Foundation 5 dnl gives unlimited permission to copy and/or distribute it, 6 dnl with or without modifications, as long as this notice is preserved. 7 8 dnl This program is distributed in the hope that it will be useful, 9 dnl but WITHOUT ANY WARRANTY, to the extent permitted by law; without 10 dnl even the implied warranty of MERCHANTABILITY or FITNESS FOR A 11 dnl PARTICULAR PURPOSE. 12 13 dnl This provides configure definitions used by all the newlib 14 dnl configure.in files. 15 16 dnl Basic newlib configury. This calls basic introductory stuff, 17 dnl including AM_INIT_AUTOMAKE and AC_CANONICAL_HOST. It also runs 18 dnl configure.host. The only argument is the relative path to the top 19 dnl newlib directory. 20 21 AC_DEFUN(NEWLIB_CONFIGURE, 22 [ 23 dnl Default to --enable-multilib 24 AC_ARG_ENABLE(multilib, 25 [ --enable-multilib build many library versions (default)], 26 [case "${enableval}" in 27 yes) multilib=yes ;; 28 no) multilib=no ;; 29 *) AC_MSG_ERROR(bad value ${enableval} for multilib option) ;; 30 esac], [multilib=yes])dnl 31 32 dnl Support --enable-target-optspace 33 AC_ARG_ENABLE(target-optspace, 34 [ --enable-target-optspace optimize for space], 35 [case "${enableval}" in 36 yes) target_optspace=yes ;; 37 no) target_optspace=no ;; 38 *) AC_MSG_ERROR(bad value ${enableval} for target-optspace option) ;; 39 esac], [target_optspace=])dnl 40 41 dnl Support --enable-malloc-debugging - currently only supported for Cygwin 42 AC_ARG_ENABLE(malloc-debugging, 43 [ --enable-malloc-debugging indicate malloc debugging requested], 44 [case "${enableval}" in 45 yes) malloc_debugging=yes ;; 46 no) malloc_debugging=no ;; 47 *) AC_MSG_ERROR(bad value ${enableval} for malloc-debugging option) ;; 48 esac], [malloc_debugging=])dnl 49 50 dnl Support --enable-newlib-multithread 51 AC_ARG_ENABLE(newlib-multithread, 52 [ --enable-newlib-multithread enable support for multiple threads], 53 [case "${enableval}" in 54 yes) newlib_multithread=yes ;; 55 no) newlib_multithread=no ;; 56 *) AC_MSG_ERROR(bad value ${enableval} for newlib-multithread option) ;; 57 esac], [newlib_multithread=yes])dnl 58 59 dnl Support --enable-newlib-iconv 60 AC_ARG_ENABLE(newlib-iconv, 61 [ --enable-newlib-iconv enable iconv library support], 62 [if test "${newlib_iconv+set}" != set; then 63 case "${enableval}" in 64 yes) newlib_iconv=yes ;; 65 no) newlib_iconv=no ;; 66 *) AC_MSG_ERROR(bad value ${enableval} for newlib-iconv option) ;; 67 esac 68 fi], [newlib_iconv=${newlib_iconv}])dnl 69 70 dnl Support --enable-newlib-elix-level 71 AC_ARG_ENABLE(newlib-elix-level, 72 [ --enable-newlib-elix-level supply desired elix library level (1-4)], 73 [case "${enableval}" in 74 0) newlib_elix_level=0 ;; 75 1) newlib_elix_level=1 ;; 76 2) newlib_elix_level=2 ;; 77 3) newlib_elix_level=3 ;; 78 4) newlib_elix_level=4 ;; 79 *) AC_MSG_ERROR(bad value ${enableval} for newlib-elix-level option) ;; 80 esac], [newlib_elix_level=0])dnl 81 82 dnl Support --disable-newlib-io-float 83 AC_ARG_ENABLE(newlib-io-float, 84 [ --disable-newlib-io-float disable printf/scanf family float support], 85 [case "${enableval}" in 86 yes) newlib_io_float=yes ;; 87 no) newlib_io_float=no ;; 88 *) AC_MSG_ERROR(bad value ${enableval} for newlib-io-float option) ;; 89 esac], [newlib_io_float=yes])dnl 90 91 dnl Support --disable-newlib-supplied-syscalls 92 AC_ARG_ENABLE(newlib-supplied-syscalls, 93 [ --disable-newlib-supplied-syscalls disable newlib from supplying syscalls], 94 [case "${enableval}" in 95 yes) newlib_may_supply_syscalls=yes ;; 96 no) newlib_may_supply_syscalls=no ;; 97 *) AC_MSG_ERROR(bad value ${enableval} for newlib-supplied-syscalls option) ;; 98 esac], [newlib_may_supply_syscalls=yes])dnl 99 100 AM_CONDITIONAL(MAY_SUPPLY_SYSCALLS, test x[$]{newlib_may_supply_syscalls} = xyes) 101 102 dnl We may get other options which we don't document: 103 dnl --with-target-subdir, --with-multisrctop, --with-multisubdir 104 105 test -z "[$]{with_target_subdir}" && with_target_subdir=. 106 107 if test "[$]{srcdir}" = "."; then 108 if test "[$]{with_target_subdir}" != "."; then 109 newlib_basedir="[$]{srcdir}/[$]{with_multisrctop}../$1" 110 else 111 newlib_basedir="[$]{srcdir}/[$]{with_multisrctop}$1" 112 fi 113 else 114 newlib_basedir="[$]{srcdir}/$1" 115 fi 116 AC_SUBST(newlib_basedir) 117 118 AC_CANONICAL_SYSTEM 119 120 AM_INIT_AUTOMAKE(newlib, 1.14.0) 121 122 # FIXME: We temporarily define our own version of AC_PROG_CC. This is 123 # copied from autoconf 2.12, but does not call AC_PROG_CC_WORKS. We 124 # are probably using a cross compiler, which will not be able to fully 125 # link an executable. This should really be fixed in autoconf 126 # itself. 127 128 AC_DEFUN(LIB_AC_PROG_CC, 129 [AC_BEFORE([$0], [AC_PROG_CPP])dnl 130 AC_CHECK_PROG(CC, gcc, gcc) 131 if test -z "$CC"; then 132 AC_CHECK_PROG(CC, cc, cc, , , /usr/ucb/cc) 133 test -z "$CC" && AC_MSG_ERROR([no acceptable cc found in \$PATH]) 134 fi 135 136 AC_PROG_CC_GNU 137 138 if test $ac_cv_prog_gcc = yes; then 139 GCC=yes 140 dnl Check whether -g works, even if CFLAGS is set, in case the package 141 dnl plays around with CFLAGS (such as to build both debugging and 142 dnl normal versions of a library), tasteless as that idea is. 143 ac_test_CFLAGS="${CFLAGS+set}" 144 ac_save_CFLAGS="$CFLAGS" 145 CFLAGS= 146 AC_PROG_CC_G 147 if test "$ac_test_CFLAGS" = set; then 148 CFLAGS="$ac_save_CFLAGS" 149 elif test $ac_cv_prog_cc_g = yes; then 150 CFLAGS="-g -O2" 151 else 152 CFLAGS="-O2" 153 fi 154 else 155 GCC= 156 test "${CFLAGS+set}" = set || CFLAGS="-g" 157 fi 158 ]) 159 160 LIB_AC_PROG_CC 161 162 AC_CHECK_TOOL(AS, as) 163 AC_CHECK_TOOL(AR, ar) 164 AC_CHECK_TOOL(RANLIB, ranlib, :) 165 166 AC_PROG_INSTALL 167 168 AM_MAINTAINER_MODE 169 170 # We need AC_EXEEXT to keep automake happy in cygnus mode. However, 171 # at least currently, we never actually build a program, so we never 172 # need to use $(EXEEXT). Moreover, the test for EXEEXT normally 173 # fails, because we are probably configuring with a cross compiler 174 # which can't create executables. So we include AC_EXEEXT to keep 175 # automake happy, but we don't execute it, since we don't care about 176 # the result. 177 if false; then 178 AC_EXEEXT 179 fi 180 181 . [$]{newlib_basedir}/configure.host 182 183 newlib_cflags="[$]{newlib_cflags} -fno-builtin" 184 185 NEWLIB_CFLAGS=${newlib_cflags} 186 AC_SUBST(NEWLIB_CFLAGS) 187 188 LDFLAGS=${ldflags} 189 AC_SUBST(LDFLAGS) 190 191 AM_CONDITIONAL(ELIX_LEVEL_0, test x[$]{newlib_elix_level} = x0) 192 AM_CONDITIONAL(ELIX_LEVEL_1, test x[$]{newlib_elix_level} = x1) 193 AM_CONDITIONAL(ELIX_LEVEL_2, test x[$]{newlib_elix_level} = x2) 194 AM_CONDITIONAL(ELIX_LEVEL_3, test x[$]{newlib_elix_level} = x3) 195 AM_CONDITIONAL(ELIX_LEVEL_4, test x[$]{newlib_elix_level} = x4) 196 197 AM_CONDITIONAL(USE_LIBTOOL, test x[$]{use_libtool} = xyes) 198 199 # Hard-code OBJEXT. Normally it is set by AC_OBJEXT, but we 200 # use oext, which is set in configure.host based on the target platform. 201 OBJEXT=${oext} 202 203 AC_SUBST(OBJEXT) 204 AC_SUBST(oext) 205 AC_SUBST(aext) 206 207 AC_SUBST(libm_machine_dir) 208 AC_SUBST(machine_dir) 209 AC_SUBST(sys_dir) 210 ]) 211 212 # Do all the work for Automake. This macro actually does too much -- 213 # some checks are only needed if your package does certain things. 214 # But this isn't really a big deal. 215 216 # serial 1 217 218 dnl Usage: 219 dnl AM_INIT_AUTOMAKE(package,version, [no-define]) 220 221 AC_DEFUN([AM_INIT_AUTOMAKE], 222 [AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl 223 AC_REQUIRE([AC_PROG_INSTALL]) 224 PACKAGE=[$1] 225 AC_SUBST(PACKAGE) 226 VERSION=[$2] 227 AC_SUBST(VERSION) 228 dnl test to see if srcdir already configured 229 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then 230 AC_MSG_ERROR([source directory already configured; run "make distclean" there first]) 231 fi 232 ifelse([$3],, 233 AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package]) 234 AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])) 235 AC_REQUIRE([AM_SANITY_CHECK]) 236 AC_REQUIRE([AC_ARG_PROGRAM]) 237 dnl FIXME This is truly gross. 238 missing_dir=`cd $ac_aux_dir && pwd` 239 AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version}, $missing_dir) 240 AM_MISSING_PROG(AUTOCONF, autoconf, $missing_dir) 241 AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version}, $missing_dir) 242 AM_MISSING_PROG(AUTOHEADER, autoheader, $missing_dir) 243 AM_MISSING_PROG(MAKEINFO, makeinfo, $missing_dir) 244 AC_REQUIRE([AC_PROG_MAKE_SET])]) 245 246 # Copyright 2002 Free Software Foundation, Inc. 247 248 # This program is free software; you can redistribute it and/or modify 249 # it under the terms of the GNU General Public License as published by 250 # the Free Software Foundation; either version 2, or (at your option) 251 # any later version. 252 253 # This program is distributed in the hope that it will be useful, 254 # but WITHOUT ANY WARRANTY; without even the implied warranty of 255 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 256 # GNU General Public License for more details. 257 258 # You should have received a copy of the GNU General Public License 259 # along with this program; if not, write to the Free Software 260 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 261 262 # AM_AUTOMAKE_VERSION(VERSION) 263 # ---------------------------- 264 # Automake X.Y traces this macro to ensure aclocal.m4 has been 265 # generated from the m4 files accompanying Automake X.Y. 266 AC_DEFUN([AM_AUTOMAKE_VERSION],[am__api_version="1.4"]) 267 268 # AM_SET_CURRENT_AUTOMAKE_VERSION 269 # ------------------------------- 270 # Call AM_AUTOMAKE_VERSION so it can be traced. 271 # This function is AC_REQUIREd by AC_INIT_AUTOMAKE. 272 AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION], 273 [AM_AUTOMAKE_VERSION([1.4-p6])]) 274 275 # 276 # Check to make sure that the build environment is sane. 277 # 278 279 AC_DEFUN([AM_SANITY_CHECK], 280 [AC_MSG_CHECKING([whether build environment is sane]) 281 # Just in case 282 sleep 1 283 echo timestamp > conftestfile 284 # Do `set' in a subshell so we don't clobber the current shell's 285 # arguments. Must try -L first in case configure is actually a 286 # symlink; some systems play weird games with the mod time of symlinks 287 # (eg FreeBSD returns the mod time of the symlink's containing 288 # directory). 289 if ( 290 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null` 291 if test "[$]*" = "X"; then 292 # -L didn't work. 293 set X `ls -t $srcdir/configure conftestfile` 294 fi 295 if test "[$]*" != "X $srcdir/configure conftestfile" \ 296 && test "[$]*" != "X conftestfile $srcdir/configure"; then 297 298 # If neither matched, then we have a broken ls. This can happen 299 # if, for instance, CONFIG_SHELL is bash and it inherits a 300 # broken ls alias from the environment. This has actually 301 # happened. Such a system could not be considered "sane". 302 AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken 303 alias in your environment]) 304 fi 305 306 test "[$]2" = conftestfile 307 ) 308 then 309 # Ok. 310 : 311 else 312 AC_MSG_ERROR([newly created file is older than distributed files! 313 Check your system clock]) 314 fi 315 rm -f conftest* 316 AC_MSG_RESULT(yes)]) 317 318 dnl AM_MISSING_PROG(NAME, PROGRAM, DIRECTORY) 319 dnl The program must properly implement --version. 320 AC_DEFUN([AM_MISSING_PROG], 321 [AC_MSG_CHECKING(for working $2) 322 # Run test in a subshell; some versions of sh will print an error if 323 # an executable is not found, even if stderr is redirected. 324 # Redirect stdin to placate older versions of autoconf. Sigh. 325 if ($2 --version) < /dev/null > /dev/null 2>&1; then 326 $1=$2 327 AC_MSG_RESULT(found) 328 else 329 $1="$3/missing $2" 330 AC_MSG_RESULT(missing) 331 fi 332 AC_SUBST($1)]) 333 334 # Define a conditional. 335 336 AC_DEFUN([AM_CONDITIONAL], 337 [AC_SUBST($1_TRUE) 338 AC_SUBST($1_FALSE) 339 if $2; then 340 $1_TRUE= 341 $1_FALSE='#' 342 else 343 $1_TRUE='#' 344 $1_FALSE= 345 fi]) 346 347 # Add --enable-maintainer-mode option to configure. 348 # From Jim Meyering 349 350 # serial 1 351 352 AC_DEFUN([AM_MAINTAINER_MODE], 353 [AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles]) 354 dnl maintainer-mode is disabled by default 355 AC_ARG_ENABLE(maintainer-mode, 356 [ --enable-maintainer-mode enable make rules and dependencies not useful 357 (and sometimes confusing) to the casual installer], 358 USE_MAINTAINER_MODE=$enableval, 359 USE_MAINTAINER_MODE=no) 360 AC_MSG_RESULT($USE_MAINTAINER_MODE) 361 AM_CONDITIONAL(MAINTAINER_MODE, test $USE_MAINTAINER_MODE = yes) 362 MAINT=$MAINTAINER_MODE_TRUE 363 AC_SUBST(MAINT)dnl 364 ] 365 ) 366 -
newlib/libc/machine/bfin/configure
diff -uNr newlib-1.14.0/newlib/libc/machine/bfin/configure newlib-1.14.0-rtems4.8-20061109/newlib/libc/machine/bfin/configure
old new 1 #! /bin/sh 2 3 # Guess values for system-dependent variables and create Makefiles. 4 # Generated automatically using autoconf version 2.13 5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc. 6 # 7 # This configure script is free software; the Free Software Foundation 8 # gives unlimited permission to copy, distribute and modify it. 9 10 # Defaults: 11 ac_help= 12 ac_default_prefix=/usr/local 13 # Any additions from configure.in: 14 ac_help="$ac_help 15 --enable-multilib build many library versions (default)" 16 ac_help="$ac_help 17 --enable-target-optspace optimize for space" 18 ac_help="$ac_help 19 --enable-malloc-debugging indicate malloc debugging requested" 20 ac_help="$ac_help 21 --enable-newlib-multithread enable support for multiple threads" 22 ac_help="$ac_help 23 --enable-newlib-iconv enable iconv library support" 24 ac_help="$ac_help 25 --enable-newlib-elix-level supply desired elix library level (1-4)" 26 ac_help="$ac_help 27 --disable-newlib-io-float disable printf/scanf family float support" 28 ac_help="$ac_help 29 --disable-newlib-supplied-syscalls disable newlib from supplying syscalls" 30 ac_help="$ac_help 31 --enable-maintainer-mode enable make rules and dependencies not useful 32 (and sometimes confusing) to the casual installer" 33 34 # Initialize some variables set by options. 35 # The variables have the same names as the options, with 36 # dashes changed to underlines. 37 build=NONE 38 cache_file=./config.cache 39 exec_prefix=NONE 40 host=NONE 41 no_create= 42 nonopt=NONE 43 no_recursion= 44 prefix=NONE 45 program_prefix=NONE 46 program_suffix=NONE 47 program_transform_name=s,x,x, 48 silent= 49 site= 50 srcdir= 51 target=NONE 52 verbose= 53 x_includes=NONE 54 x_libraries=NONE 55 bindir='${exec_prefix}/bin' 56 sbindir='${exec_prefix}/sbin' 57 libexecdir='${exec_prefix}/libexec' 58 datadir='${prefix}/share' 59 sysconfdir='${prefix}/etc' 60 sharedstatedir='${prefix}/com' 61 localstatedir='${prefix}/var' 62 libdir='${exec_prefix}/lib' 63 includedir='${prefix}/include' 64 oldincludedir='/usr/include' 65 infodir='${prefix}/info' 66 mandir='${prefix}/man' 67 68 # Initialize some other variables. 69 subdirs= 70 MFLAGS= MAKEFLAGS= 71 SHELL=${CONFIG_SHELL-/bin/sh} 72 # Maximum number of lines to put in a shell here document. 73 ac_max_here_lines=12 74 75 ac_prev= 76 for ac_option 77 do 78 79 # If the previous option needs an argument, assign it. 80 if test -n "$ac_prev"; then 81 eval "$ac_prev=\$ac_option" 82 ac_prev= 83 continue 84 fi 85 86 case "$ac_option" in 87 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; 88 *) ac_optarg= ;; 89 esac 90 91 # Accept the important Cygnus configure options, so we can diagnose typos. 92 93 case "$ac_option" in 94 95 -bindir | --bindir | --bindi | --bind | --bin | --bi) 96 ac_prev=bindir ;; 97 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 98 bindir="$ac_optarg" ;; 99 100 -build | --build | --buil | --bui | --bu) 101 ac_prev=build ;; 102 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 103 build="$ac_optarg" ;; 104 105 -cache-file | --cache-file | --cache-fil | --cache-fi \ 106 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 107 ac_prev=cache_file ;; 108 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 109 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 110 cache_file="$ac_optarg" ;; 111 112 -datadir | --datadir | --datadi | --datad | --data | --dat | --da) 113 ac_prev=datadir ;; 114 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ 115 | --da=*) 116 datadir="$ac_optarg" ;; 117 118 -disable-* | --disable-*) 119 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` 120 # Reject names that are not valid shell variable names. 121 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then 122 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } 123 fi 124 ac_feature=`echo $ac_feature| sed 's/-/_/g'` 125 eval "enable_${ac_feature}=no" ;; 126 127 -enable-* | --enable-*) 128 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` 129 # Reject names that are not valid shell variable names. 130 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then 131 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } 132 fi 133 ac_feature=`echo $ac_feature| sed 's/-/_/g'` 134 case "$ac_option" in 135 *=*) ;; 136 *) ac_optarg=yes ;; 137 esac 138 eval "enable_${ac_feature}='$ac_optarg'" ;; 139 140 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 141 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 142 | --exec | --exe | --ex) 143 ac_prev=exec_prefix ;; 144 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 145 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 146 | --exec=* | --exe=* | --ex=*) 147 exec_prefix="$ac_optarg" ;; 148 149 -gas | --gas | --ga | --g) 150 # Obsolete; use --with-gas. 151 with_gas=yes ;; 152 153 -help | --help | --hel | --he) 154 # Omit some internal or obsolete options to make the list less imposing. 155 # This message is too long to be a string in the A/UX 3.1 sh. 156 cat << EOF 157 Usage: configure [options] [host] 158 Options: [defaults in brackets after descriptions] 159 Configuration: 160 --cache-file=FILE cache test results in FILE 161 --help print this message 162 --no-create do not create output files 163 --quiet, --silent do not print \`checking...' messages 164 --version print the version of autoconf that created configure 165 Directory and file names: 166 --prefix=PREFIX install architecture-independent files in PREFIX 167 [$ac_default_prefix] 168 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 169 [same as prefix] 170 --bindir=DIR user executables in DIR [EPREFIX/bin] 171 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin] 172 --libexecdir=DIR program executables in DIR [EPREFIX/libexec] 173 --datadir=DIR read-only architecture-independent data in DIR 174 [PREFIX/share] 175 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc] 176 --sharedstatedir=DIR modifiable architecture-independent data in DIR 177 [PREFIX/com] 178 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var] 179 --libdir=DIR object code libraries in DIR [EPREFIX/lib] 180 --includedir=DIR C header files in DIR [PREFIX/include] 181 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include] 182 --infodir=DIR info documentation in DIR [PREFIX/info] 183 --mandir=DIR man documentation in DIR [PREFIX/man] 184 --srcdir=DIR find the sources in DIR [configure dir or ..] 185 --program-prefix=PREFIX prepend PREFIX to installed program names 186 --program-suffix=SUFFIX append SUFFIX to installed program names 187 --program-transform-name=PROGRAM 188 run sed PROGRAM on installed program names 189 EOF 190 cat << EOF 191 Host type: 192 --build=BUILD configure for building on BUILD [BUILD=HOST] 193 --host=HOST configure for HOST [guessed] 194 --target=TARGET configure for TARGET [TARGET=HOST] 195 Features and packages: 196 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 197 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 198 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 199 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 200 --x-includes=DIR X include files are in DIR 201 --x-libraries=DIR X library files are in DIR 202 EOF 203 if test -n "$ac_help"; then 204 echo "--enable and --with options recognized:$ac_help" 205 fi 206 exit 0 ;; 207 208 -host | --host | --hos | --ho) 209 ac_prev=host ;; 210 -host=* | --host=* | --hos=* | --ho=*) 211 host="$ac_optarg" ;; 212 213 -includedir | --includedir | --includedi | --included | --include \ 214 | --includ | --inclu | --incl | --inc) 215 ac_prev=includedir ;; 216 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 217 | --includ=* | --inclu=* | --incl=* | --inc=*) 218 includedir="$ac_optarg" ;; 219 220 -infodir | --infodir | --infodi | --infod | --info | --inf) 221 ac_prev=infodir ;; 222 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 223 infodir="$ac_optarg" ;; 224 225 -libdir | --libdir | --libdi | --libd) 226 ac_prev=libdir ;; 227 -libdir=* | --libdir=* | --libdi=* | --libd=*) 228 libdir="$ac_optarg" ;; 229 230 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 231 | --libexe | --libex | --libe) 232 ac_prev=libexecdir ;; 233 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 234 | --libexe=* | --libex=* | --libe=*) 235 libexecdir="$ac_optarg" ;; 236 237 -localstatedir | --localstatedir | --localstatedi | --localstated \ 238 | --localstate | --localstat | --localsta | --localst \ 239 | --locals | --local | --loca | --loc | --lo) 240 ac_prev=localstatedir ;; 241 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 242 | --localstate=* | --localstat=* | --localsta=* | --localst=* \ 243 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) 244 localstatedir="$ac_optarg" ;; 245 246 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 247 ac_prev=mandir ;; 248 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 249 mandir="$ac_optarg" ;; 250 251 -nfp | --nfp | --nf) 252 # Obsolete; use --without-fp. 253 with_fp=no ;; 254 255 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 256 | --no-cr | --no-c) 257 no_create=yes ;; 258 259 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 260 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 261 no_recursion=yes ;; 262 263 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 264 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 265 | --oldin | --oldi | --old | --ol | --o) 266 ac_prev=oldincludedir ;; 267 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 268 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 269 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 270 oldincludedir="$ac_optarg" ;; 271 272 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 273 ac_prev=prefix ;; 274 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 275 prefix="$ac_optarg" ;; 276 277 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 278 | --program-pre | --program-pr | --program-p) 279 ac_prev=program_prefix ;; 280 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 281 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 282 program_prefix="$ac_optarg" ;; 283 284 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 285 | --program-suf | --program-su | --program-s) 286 ac_prev=program_suffix ;; 287 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 288 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 289 program_suffix="$ac_optarg" ;; 290 291 -program-transform-name | --program-transform-name \ 292 | --program-transform-nam | --program-transform-na \ 293 | --program-transform-n | --program-transform- \ 294 | --program-transform | --program-transfor \ 295 | --program-transfo | --program-transf \ 296 | --program-trans | --program-tran \ 297 | --progr-tra | --program-tr | --program-t) 298 ac_prev=program_transform_name ;; 299 -program-transform-name=* | --program-transform-name=* \ 300 | --program-transform-nam=* | --program-transform-na=* \ 301 | --program-transform-n=* | --program-transform-=* \ 302 | --program-transform=* | --program-transfor=* \ 303 | --program-transfo=* | --program-transf=* \ 304 | --program-trans=* | --program-tran=* \ 305 | --progr-tra=* | --program-tr=* | --program-t=*) 306 program_transform_name="$ac_optarg" ;; 307 308 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 309 | -silent | --silent | --silen | --sile | --sil) 310 silent=yes ;; 311 312 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 313 ac_prev=sbindir ;; 314 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 315 | --sbi=* | --sb=*) 316 sbindir="$ac_optarg" ;; 317 318 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 319 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 320 | --sharedst | --shareds | --shared | --share | --shar \ 321 | --sha | --sh) 322 ac_prev=sharedstatedir ;; 323 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 324 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 325 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 326 | --sha=* | --sh=*) 327 sharedstatedir="$ac_optarg" ;; 328 329 -site | --site | --sit) 330 ac_prev=site ;; 331 -site=* | --site=* | --sit=*) 332 site="$ac_optarg" ;; 333 334 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 335 ac_prev=srcdir ;; 336 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 337 srcdir="$ac_optarg" ;; 338 339 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 340 | --syscon | --sysco | --sysc | --sys | --sy) 341 ac_prev=sysconfdir ;; 342 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 343 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 344 sysconfdir="$ac_optarg" ;; 345 346 -target | --target | --targe | --targ | --tar | --ta | --t) 347 ac_prev=target ;; 348 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 349 target="$ac_optarg" ;; 350 351 -v | -verbose | --verbose | --verbos | --verbo | --verb) 352 verbose=yes ;; 353 354 -version | --version | --versio | --versi | --vers) 355 echo "configure generated by autoconf version 2.13" 356 exit 0 ;; 357 358 -with-* | --with-*) 359 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` 360 # Reject names that are not valid shell variable names. 361 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then 362 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } 363 fi 364 ac_package=`echo $ac_package| sed 's/-/_/g'` 365 case "$ac_option" in 366 *=*) ;; 367 *) ac_optarg=yes ;; 368 esac 369 eval "with_${ac_package}='$ac_optarg'" ;; 370 371 -without-* | --without-*) 372 ac_package=`echo $ac_option|sed -e 's/-*without-//'` 373 # Reject names that are not valid shell variable names. 374 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then 375 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } 376 fi 377 ac_package=`echo $ac_package| sed 's/-/_/g'` 378 eval "with_${ac_package}=no" ;; 379 380 --x) 381 # Obsolete; use --with-x. 382 with_x=yes ;; 383 384 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 385 | --x-incl | --x-inc | --x-in | --x-i) 386 ac_prev=x_includes ;; 387 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 388 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 389 x_includes="$ac_optarg" ;; 390 391 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 392 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 393 ac_prev=x_libraries ;; 394 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 395 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 396 x_libraries="$ac_optarg" ;; 397 398 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; } 399 ;; 400 401 *) 402 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then 403 echo "configure: warning: $ac_option: invalid host type" 1>&2 404 fi 405 if test "x$nonopt" != xNONE; then 406 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } 407 fi 408 nonopt="$ac_option" 409 ;; 410 411 esac 412 done 413 414 if test -n "$ac_prev"; then 415 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; } 416 fi 417 418 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 419 420 # File descriptor usage: 421 # 0 standard input 422 # 1 file creation 423 # 2 errors and warnings 424 # 3 some systems may open it to /dev/tty 425 # 4 used on the Kubota Titan 426 # 6 checking for... messages and results 427 # 5 compiler messages saved in config.log 428 if test "$silent" = yes; then 429 exec 6>/dev/null 430 else 431 exec 6>&1 432 fi 433 exec 5>./config.log 434 435 echo "\ 436 This file contains any messages produced by compilers while 437 running configure, to aid debugging if configure makes a mistake. 438 " 1>&5 439 440 # Strip out --no-create and --no-recursion so they do not pile up. 441 # Also quote any args containing shell metacharacters. 442 ac_configure_args= 443 for ac_arg 444 do 445 case "$ac_arg" in 446 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 447 | --no-cr | --no-c) ;; 448 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 449 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; 450 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) 451 ac_configure_args="$ac_configure_args '$ac_arg'" ;; 452 *) ac_configure_args="$ac_configure_args $ac_arg" ;; 453 esac 454 done 455 456 # NLS nuisances. 457 # Only set these to C if already set. These must not be set unconditionally 458 # because not all systems understand e.g. LANG=C (notably SCO). 459 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! 460 # Non-C LC_CTYPE values break the ctype check. 461 if test "${LANG+set}" = set; then LANG=C; export LANG; fi 462 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi 463 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi 464 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi 465 466 # confdefs.h avoids OS command line length limits that DEFS can exceed. 467 rm -rf conftest* confdefs.h 468 # AIX cpp loses on an empty file, so make sure it contains at least a newline. 469 echo > confdefs.h 470 471 # A filename unique to this package, relative to the directory that 472 # configure is in, which we can look for to find out if srcdir is correct. 473 ac_unique_file=Makefile.am 474 475 # Find the source files, if location was not specified. 476 if test -z "$srcdir"; then 477 ac_srcdir_defaulted=yes 478 # Try the directory containing this script, then its parent. 479 ac_prog=$0 480 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` 481 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. 482 srcdir=$ac_confdir 483 if test ! -r $srcdir/$ac_unique_file; then 484 srcdir=.. 485 fi 486 else 487 ac_srcdir_defaulted=no 488 fi 489 if test ! -r $srcdir/$ac_unique_file; then 490 if test "$ac_srcdir_defaulted" = yes; then 491 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } 492 else 493 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } 494 fi 495 fi 496 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` 497 498 # Prefer explicitly selected file to automatically selected ones. 499 if test -z "$CONFIG_SITE"; then 500 if test "x$prefix" != xNONE; then 501 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" 502 else 503 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 504 fi 505 fi 506 for ac_site_file in $CONFIG_SITE; do 507 if test -r "$ac_site_file"; then 508 echo "loading site script $ac_site_file" 509 . "$ac_site_file" 510 fi 511 done 512 513 if test -r "$cache_file"; then 514 echo "loading cache $cache_file" 515 . $cache_file 516 else 517 echo "creating cache $cache_file" 518 > $cache_file 519 fi 520 521 ac_ext=c 522 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 523 ac_cpp='$CPP $CPPFLAGS' 524 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 525 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 526 cross_compiling=$ac_cv_prog_cc_cross 527 528 ac_exeext= 529 ac_objext=o 530 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then 531 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. 532 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then 533 ac_n= ac_c=' 534 ' ac_t=' ' 535 else 536 ac_n=-n ac_c= ac_t= 537 fi 538 else 539 ac_n= ac_c='\c' ac_t= 540 fi 541 542 543 544 ac_aux_dir= 545 for ac_dir in ../../../.. $srcdir/../../../..; do 546 if test -f $ac_dir/install-sh; then 547 ac_aux_dir=$ac_dir 548 ac_install_sh="$ac_aux_dir/install-sh -c" 549 break 550 elif test -f $ac_dir/install.sh; then 551 ac_aux_dir=$ac_dir 552 ac_install_sh="$ac_aux_dir/install.sh -c" 553 break 554 fi 555 done 556 if test -z "$ac_aux_dir"; then 557 { echo "configure: error: can not find install-sh or install.sh in ../../../.. $srcdir/../../../.." 1>&2; exit 1; } 558 fi 559 ac_config_guess=$ac_aux_dir/config.guess 560 ac_config_sub=$ac_aux_dir/config.sub 561 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. 562 563 564 am__api_version="1.4" 565 # Find a good install program. We prefer a C program (faster), 566 # so one script is as good as another. But avoid the broken or 567 # incompatible versions: 568 # SysV /etc/install, /usr/sbin/install 569 # SunOS /usr/etc/install 570 # IRIX /sbin/install 571 # AIX /bin/install 572 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 573 # AFS /usr/afsws/bin/install, which mishandles nonexistent args 574 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 575 # ./install, which can be erroneously created by make from ./install.sh. 576 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 577 echo "configure:578: checking for a BSD compatible install" >&5 578 if test -z "$INSTALL"; then 579 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then 580 echo $ac_n "(cached) $ac_c" 1>&6 581 else 582 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" 583 for ac_dir in $PATH; do 584 # Account for people who put trailing slashes in PATH elements. 585 case "$ac_dir/" in 586 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; 587 *) 588 # OSF1 and SCO ODT 3.0 have their own names for install. 589 # Don't use installbsd from OSF since it installs stuff as root 590 # by default. 591 for ac_prog in ginstall scoinst install; do 592 if test -f $ac_dir/$ac_prog; then 593 if test $ac_prog = install && 594 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then 595 # AIX install. It has an incompatible calling convention. 596 : 597 else 598 ac_cv_path_install="$ac_dir/$ac_prog -c" 599 break 2 600 fi 601 fi 602 done 603 ;; 604 esac 605 done 606 IFS="$ac_save_IFS" 607 608 fi 609 if test "${ac_cv_path_install+set}" = set; then 610 INSTALL="$ac_cv_path_install" 611 else 612 # As a last resort, use the slow shell script. We don't cache a 613 # path for INSTALL within a source directory, because that will 614 # break other packages using the cache if that directory is 615 # removed, or if the path is relative. 616 INSTALL="$ac_install_sh" 617 fi 618 fi 619 echo "$ac_t""$INSTALL" 1>&6 620 621 # Use test -z because SunOS4 sh mishandles braces in ${var-val}. 622 # It thinks the first close brace ends the variable substitution. 623 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 624 625 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' 626 627 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 628 629 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6 630 echo "configure:631: checking whether build environment is sane" >&5 631 # Just in case 632 sleep 1 633 echo timestamp > conftestfile 634 # Do `set' in a subshell so we don't clobber the current shell's 635 # arguments. Must try -L first in case configure is actually a 636 # symlink; some systems play weird games with the mod time of symlinks 637 # (eg FreeBSD returns the mod time of the symlink's containing 638 # directory). 639 if ( 640 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null` 641 if test "$*" = "X"; then 642 # -L didn't work. 643 set X `ls -t $srcdir/configure conftestfile` 644 fi 645 if test "$*" != "X $srcdir/configure conftestfile" \ 646 && test "$*" != "X conftestfile $srcdir/configure"; then 647 648 # If neither matched, then we have a broken ls. This can happen 649 # if, for instance, CONFIG_SHELL is bash and it inherits a 650 # broken ls alias from the environment. This has actually 651 # happened. Such a system could not be considered "sane". 652 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken 653 alias in your environment" 1>&2; exit 1; } 654 fi 655 656 test "$2" = conftestfile 657 ) 658 then 659 # Ok. 660 : 661 else 662 { echo "configure: error: newly created file is older than distributed files! 663 Check your system clock" 1>&2; exit 1; } 664 fi 665 rm -f conftest* 666 echo "$ac_t""yes" 1>&6 667 if test "$program_transform_name" = s,x,x,; then 668 program_transform_name= 669 else 670 # Double any \ or $. echo might interpret backslashes. 671 cat <<\EOF_SED > conftestsed 672 s,\\,\\\\,g; s,\$,$$,g 673 EOF_SED 674 program_transform_name="`echo $program_transform_name|sed -f conftestsed`" 675 rm -f conftestsed 676 fi 677 test "$program_prefix" != NONE && 678 program_transform_name="s,^,${program_prefix},; $program_transform_name" 679 # Use a double $ so make ignores it. 680 test "$program_suffix" != NONE && 681 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name" 682 683 # sed with no file args requires a program. 684 test "$program_transform_name" = "" && program_transform_name="s,x,x," 685 686 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 687 echo "configure:688: checking whether ${MAKE-make} sets \${MAKE}" >&5 688 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` 689 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then 690 echo $ac_n "(cached) $ac_c" 1>&6 691 else 692 cat > conftestmake <<\EOF 693 all: 694 @echo 'ac_maketemp="${MAKE}"' 695 EOF 696 # GNU make sometimes prints "make[1]: Entering...", which would confuse us. 697 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=` 698 if test -n "$ac_maketemp"; then 699 eval ac_cv_prog_make_${ac_make}_set=yes 700 else 701 eval ac_cv_prog_make_${ac_make}_set=no 702 fi 703 rm -f conftestmake 704 fi 705 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then 706 echo "$ac_t""yes" 1>&6 707 SET_MAKE= 708 else 709 echo "$ac_t""no" 1>&6 710 SET_MAKE="MAKE=${MAKE-make}" 711 fi 712 713 if test $host != $build; then 714 ac_tool_prefix=${host_alias}- 715 else 716 ac_tool_prefix= 717 fi 718 719 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6 720 echo "configure:721: checking for Cygwin environment" >&5 721 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then 722 echo $ac_n "(cached) $ac_c" 1>&6 723 else 724 cat > conftest.$ac_ext <<EOF 725 #line 726 "configure" 726 #include "confdefs.h" 727 728 int main() { 729 730 #ifndef __CYGWIN__ 731 #define __CYGWIN__ __CYGWIN32__ 732 #endif 733 return __CYGWIN__; 734 ; return 0; } 735 EOF 736 if { (eval echo configure:737: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 737 rm -rf conftest* 738 ac_cv_cygwin=yes 739 else 740 echo "configure: failed program was:" >&5 741 cat conftest.$ac_ext >&5 742 rm -rf conftest* 743 ac_cv_cygwin=no 744 fi 745 rm -f conftest* 746 rm -f conftest* 747 fi 748 749 echo "$ac_t""$ac_cv_cygwin" 1>&6 750 CYGWIN= 751 test "$ac_cv_cygwin" = yes && CYGWIN=yes 752 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6 753 echo "configure:754: checking for mingw32 environment" >&5 754 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then 755 echo $ac_n "(cached) $ac_c" 1>&6 756 else 757 cat > conftest.$ac_ext <<EOF 758 #line 759 "configure" 759 #include "confdefs.h" 760 761 int main() { 762 return __MINGW32__; 763 ; return 0; } 764 EOF 765 if { (eval echo configure:766: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 766 rm -rf conftest* 767 ac_cv_mingw32=yes 768 else 769 echo "configure: failed program was:" >&5 770 cat conftest.$ac_ext >&5 771 rm -rf conftest* 772 ac_cv_mingw32=no 773 fi 774 rm -f conftest* 775 rm -f conftest* 776 fi 777 778 echo "$ac_t""$ac_cv_mingw32" 1>&6 779 MINGW32= 780 test "$ac_cv_mingw32" = yes && MINGW32=yes 781 782 # Check whether --enable-multilib or --disable-multilib was given. 783 if test "${enable_multilib+set}" = set; then 784 enableval="$enable_multilib" 785 case "${enableval}" in 786 yes) multilib=yes ;; 787 no) multilib=no ;; 788 *) { echo "configure: error: bad value ${enableval} for multilib option" 1>&2; exit 1; } ;; 789 esac 790 else 791 multilib=yes 792 fi 793 794 # Check whether --enable-target-optspace or --disable-target-optspace was given. 795 if test "${enable_target_optspace+set}" = set; then 796 enableval="$enable_target_optspace" 797 case "${enableval}" in 798 yes) target_optspace=yes ;; 799 no) target_optspace=no ;; 800 *) { echo "configure: error: bad value ${enableval} for target-optspace option" 1>&2; exit 1; } ;; 801 esac 802 else 803 target_optspace= 804 fi 805 806 # Check whether --enable-malloc-debugging or --disable-malloc-debugging was given. 807 if test "${enable_malloc_debugging+set}" = set; then 808 enableval="$enable_malloc_debugging" 809 case "${enableval}" in 810 yes) malloc_debugging=yes ;; 811 no) malloc_debugging=no ;; 812 *) { echo "configure: error: bad value ${enableval} for malloc-debugging option" 1>&2; exit 1; } ;; 813 esac 814 else 815 malloc_debugging= 816 fi 817 818 # Check whether --enable-newlib-multithread or --disable-newlib-multithread was given. 819 if test "${enable_newlib_multithread+set}" = set; then 820 enableval="$enable_newlib_multithread" 821 case "${enableval}" in 822 yes) newlib_multithread=yes ;; 823 no) newlib_multithread=no ;; 824 *) { echo "configure: error: bad value ${enableval} for newlib-multithread option" 1>&2; exit 1; } ;; 825 esac 826 else 827 newlib_multithread=yes 828 fi 829 830 # Check whether --enable-newlib-iconv or --disable-newlib-iconv was given. 831 if test "${enable_newlib_iconv+set}" = set; then 832 enableval="$enable_newlib_iconv" 833 if test "${newlib_iconv+set}" != set; then 834 case "${enableval}" in 835 yes) newlib_iconv=yes ;; 836 no) newlib_iconv=no ;; 837 *) { echo "configure: error: bad value ${enableval} for newlib-iconv option" 1>&2; exit 1; } ;; 838 esac 839 fi 840 else 841 newlib_iconv=${newlib_iconv} 842 fi 843 844 # Check whether --enable-newlib-elix-level or --disable-newlib-elix-level was given. 845 if test "${enable_newlib_elix_level+set}" = set; then 846 enableval="$enable_newlib_elix_level" 847 case "${enableval}" in 848 0) newlib_elix_level=0 ;; 849 1) newlib_elix_level=1 ;; 850 2) newlib_elix_level=2 ;; 851 3) newlib_elix_level=3 ;; 852 4) newlib_elix_level=4 ;; 853 *) { echo "configure: error: bad value ${enableval} for newlib-elix-level option" 1>&2; exit 1; } ;; 854 esac 855 else 856 newlib_elix_level=0 857 fi 858 859 # Check whether --enable-newlib-io-float or --disable-newlib-io-float was given. 860 if test "${enable_newlib_io_float+set}" = set; then 861 enableval="$enable_newlib_io_float" 862 case "${enableval}" in 863 yes) newlib_io_float=yes ;; 864 no) newlib_io_float=no ;; 865 *) { echo "configure: error: bad value ${enableval} for newlib-io-float option" 1>&2; exit 1; } ;; 866 esac 867 else 868 newlib_io_float=yes 869 fi 870 871 # Check whether --enable-newlib-supplied-syscalls or --disable-newlib-supplied-syscalls was given. 872 if test "${enable_newlib_supplied_syscalls+set}" = set; then 873 enableval="$enable_newlib_supplied_syscalls" 874 case "${enableval}" in 875 yes) newlib_may_supply_syscalls=yes ;; 876 no) newlib_may_supply_syscalls=no ;; 877 *) { echo "configure: error: bad value ${enableval} for newlib-supplied-syscalls option" 1>&2; exit 1; } ;; 878 esac 879 else 880 newlib_may_supply_syscalls=yes 881 fi 882 883 884 885 if test x${newlib_may_supply_syscalls} = xyes; then 886 MAY_SUPPLY_SYSCALLS_TRUE= 887 MAY_SUPPLY_SYSCALLS_FALSE='#' 888 else 889 MAY_SUPPLY_SYSCALLS_TRUE='#' 890 MAY_SUPPLY_SYSCALLS_FALSE= 891 fi 892 893 894 test -z "${with_target_subdir}" && with_target_subdir=. 895 896 if test "${srcdir}" = "."; then 897 if test "${with_target_subdir}" != "."; then 898 newlib_basedir="${srcdir}/${with_multisrctop}../../../.." 899 else 900 newlib_basedir="${srcdir}/${with_multisrctop}../../.." 901 fi 902 else 903 newlib_basedir="${srcdir}/../../.." 904 fi 905 906 907 908 # Do some error checking and defaulting for the host and target type. 909 # The inputs are: 910 # configure --host=HOST --target=TARGET --build=BUILD NONOPT 911 # 912 # The rules are: 913 # 1. You are not allowed to specify --host, --target, and nonopt at the 914 # same time. 915 # 2. Host defaults to nonopt. 916 # 3. If nonopt is not specified, then host defaults to the current host, 917 # as determined by config.guess. 918 # 4. Target and build default to nonopt. 919 # 5. If nonopt is not specified, then target and build default to host. 920 921 # The aliases save the names the user supplied, while $host etc. 922 # will get canonicalized. 923 case $host---$target---$nonopt in 924 NONE---*---* | *---NONE---* | *---*---NONE) ;; 925 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;; 926 esac 927 928 929 # Make sure we can run config.sub. 930 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then : 931 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; } 932 fi 933 934 echo $ac_n "checking host system type""... $ac_c" 1>&6 935 echo "configure:936: checking host system type" >&5 936 937 host_alias=$host 938 case "$host_alias" in 939 NONE) 940 case $nonopt in 941 NONE) 942 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then : 943 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; } 944 fi ;; 945 *) host_alias=$nonopt ;; 946 esac ;; 947 esac 948 949 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias` 950 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 951 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 952 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 953 echo "$ac_t""$host" 1>&6 954 955 echo $ac_n "checking target system type""... $ac_c" 1>&6 956 echo "configure:957: checking target system type" >&5 957 958 target_alias=$target 959 case "$target_alias" in 960 NONE) 961 case $nonopt in 962 NONE) target_alias=$host_alias ;; 963 *) target_alias=$nonopt ;; 964 esac ;; 965 esac 966 967 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias` 968 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 969 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 970 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 971 echo "$ac_t""$target" 1>&6 972 973 echo $ac_n "checking build system type""... $ac_c" 1>&6 974 echo "configure:975: checking build system type" >&5 975 976 build_alias=$build 977 case "$build_alias" in 978 NONE) 979 case $nonopt in 980 NONE) build_alias=$host_alias ;; 981 *) build_alias=$nonopt ;; 982 esac ;; 983 esac 984 985 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias` 986 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 987 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 988 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 989 echo "$ac_t""$build" 1>&6 990 991 test "$host_alias" != "$target_alias" && 992 test "$program_prefix$program_suffix$program_transform_name" = \ 993 NONENONEs,x,x, && 994 program_prefix=${target_alias}- 995 996 997 998 PACKAGE=newlib 999 1000 VERSION=1.14.0 1001 1002 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then 1003 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; } 1004 fi 1005 cat >> confdefs.h <<EOF 1006 #define PACKAGE "$PACKAGE" 1007 EOF 1008 1009 cat >> confdefs.h <<EOF 1010 #define VERSION "$VERSION" 1011 EOF 1012 1013 1014 1015 missing_dir=`cd $ac_aux_dir && pwd` 1016 echo $ac_n "checking for working aclocal-${am__api_version}""... $ac_c" 1>&6 1017 echo "configure:1018: checking for working aclocal-${am__api_version}" >&5 1018 # Run test in a subshell; some versions of sh will print an error if 1019 # an executable is not found, even if stderr is redirected. 1020 # Redirect stdin to placate older versions of autoconf. Sigh. 1021 if (aclocal-${am__api_version} --version) < /dev/null > /dev/null 2>&1; then 1022 ACLOCAL=aclocal-${am__api_version} 1023 echo "$ac_t""found" 1>&6 1024 else 1025 ACLOCAL="$missing_dir/missing aclocal-${am__api_version}" 1026 echo "$ac_t""missing" 1>&6 1027 fi 1028 1029 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6 1030 echo "configure:1031: checking for working autoconf" >&5 1031 # Run test in a subshell; some versions of sh will print an error if 1032 # an executable is not found, even if stderr is redirected. 1033 # Redirect stdin to placate older versions of autoconf. Sigh. 1034 if (autoconf --version) < /dev/null > /dev/null 2>&1; then 1035 AUTOCONF=autoconf 1036 echo "$ac_t""found" 1>&6 1037 else 1038 AUTOCONF="$missing_dir/missing autoconf" 1039 echo "$ac_t""missing" 1>&6 1040 fi 1041 1042 echo $ac_n "checking for working automake-${am__api_version}""... $ac_c" 1>&6 1043 echo "configure:1044: checking for working automake-${am__api_version}" >&5 1044 # Run test in a subshell; some versions of sh will print an error if 1045 # an executable is not found, even if stderr is redirected. 1046 # Redirect stdin to placate older versions of autoconf. Sigh. 1047 if (automake-${am__api_version} --version) < /dev/null > /dev/null 2>&1; then 1048 AUTOMAKE=automake-${am__api_version} 1049 echo "$ac_t""found" 1>&6 1050 else 1051 AUTOMAKE="$missing_dir/missing automake-${am__api_version}" 1052 echo "$ac_t""missing" 1>&6 1053 fi 1054 1055 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6 1056 echo "configure:1057: checking for working autoheader" >&5 1057 # Run test in a subshell; some versions of sh will print an error if 1058 # an executable is not found, even if stderr is redirected. 1059 # Redirect stdin to placate older versions of autoconf. Sigh. 1060 if (autoheader --version) < /dev/null > /dev/null 2>&1; then 1061 AUTOHEADER=autoheader 1062 echo "$ac_t""found" 1>&6 1063 else 1064 AUTOHEADER="$missing_dir/missing autoheader" 1065 echo "$ac_t""missing" 1>&6 1066 fi 1067 1068 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6 1069 echo "configure:1070: checking for working makeinfo" >&5 1070 # Run test in a subshell; some versions of sh will print an error if 1071 # an executable is not found, even if stderr is redirected. 1072 # Redirect stdin to placate older versions of autoconf. Sigh. 1073 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then 1074 MAKEINFO=makeinfo 1075 echo "$ac_t""found" 1>&6 1076 else 1077 MAKEINFO="$missing_dir/missing makeinfo" 1078 echo "$ac_t""missing" 1>&6 1079 fi 1080 1081 1082 1083 # FIXME: We temporarily define our own version of AC_PROG_CC. This is 1084 # copied from autoconf 2.12, but does not call AC_PROG_CC_WORKS. We 1085 # are probably using a cross compiler, which will not be able to fully 1086 # link an executable. This should really be fixed in autoconf 1087 # itself. 1088 1089 1090 1091 # Extract the first word of "gcc", so it can be a program name with args. 1092 set dummy gcc; ac_word=$2 1093 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1094 echo "configure:1095: checking for $ac_word" >&5 1095 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 1096 echo $ac_n "(cached) $ac_c" 1>&6 1097 else 1098 if test -n "$CC"; then 1099 ac_cv_prog_CC="$CC" # Let the user override the test. 1100 else 1101 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 1102 ac_dummy="$PATH" 1103 for ac_dir in $ac_dummy; do 1104 test -z "$ac_dir" && ac_dir=. 1105 if test -f $ac_dir/$ac_word; then 1106 ac_cv_prog_CC="gcc" 1107 break 1108 fi 1109 done 1110 IFS="$ac_save_ifs" 1111 fi 1112 fi 1113 CC="$ac_cv_prog_CC" 1114 if test -n "$CC"; then 1115 echo "$ac_t""$CC" 1>&6 1116 else 1117 echo "$ac_t""no" 1>&6 1118 fi 1119 1120 if test -z "$CC"; then 1121 # Extract the first word of "cc", so it can be a program name with args. 1122 set dummy cc; ac_word=$2 1123 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1124 echo "configure:1125: checking for $ac_word" >&5 1125 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 1126 echo $ac_n "(cached) $ac_c" 1>&6 1127 else 1128 if test -n "$CC"; then 1129 ac_cv_prog_CC="$CC" # Let the user override the test. 1130 else 1131 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 1132 ac_prog_rejected=no 1133 ac_dummy="$PATH" 1134 for ac_dir in $ac_dummy; do 1135 test -z "$ac_dir" && ac_dir=. 1136 if test -f $ac_dir/$ac_word; then 1137 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then 1138 ac_prog_rejected=yes 1139 continue 1140 fi 1141 ac_cv_prog_CC="cc" 1142 break 1143 fi 1144 done 1145 IFS="$ac_save_ifs" 1146 if test $ac_prog_rejected = yes; then 1147 # We found a bogon in the path, so make sure we never use it. 1148 set dummy $ac_cv_prog_CC 1149 shift 1150 if test $# -gt 0; then 1151 # We chose a different compiler from the bogus one. 1152 # However, it has the same basename, so the bogon will be chosen 1153 # first if we set CC to just the basename; use the full file name. 1154 shift 1155 set dummy "$ac_dir/$ac_word" "$@" 1156 shift 1157 ac_cv_prog_CC="$@" 1158 fi 1159 fi 1160 fi 1161 fi 1162 CC="$ac_cv_prog_CC" 1163 if test -n "$CC"; then 1164 echo "$ac_t""$CC" 1>&6 1165 else 1166 echo "$ac_t""no" 1>&6 1167 fi 1168 1169 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } 1170 fi 1171 1172 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 1173 echo "configure:1174: checking whether we are using GNU C" >&5 1174 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then 1175 echo $ac_n "(cached) $ac_c" 1>&6 1176 else 1177 cat > conftest.c <<EOF 1178 #ifdef __GNUC__ 1179 yes; 1180 #endif 1181 EOF 1182 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 1183 ac_cv_prog_gcc=yes 1184 else 1185 ac_cv_prog_gcc=no 1186 fi 1187 fi 1188 1189 echo "$ac_t""$ac_cv_prog_gcc" 1>&6 1190 1191 if test $ac_cv_prog_gcc = yes; then 1192 GCC=yes 1193 ac_test_CFLAGS="${CFLAGS+set}" 1194 ac_save_CFLAGS="$CFLAGS" 1195 CFLAGS= 1196 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 1197 echo "configure:1198: checking whether ${CC-cc} accepts -g" >&5 1198 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then 1199 echo $ac_n "(cached) $ac_c" 1>&6 1200 else 1201 echo 'void f(){}' > conftest.c 1202 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then 1203 ac_cv_prog_cc_g=yes 1204 else 1205 ac_cv_prog_cc_g=no 1206 fi 1207 rm -f conftest* 1208 1209 fi 1210 1211 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 1212 if test "$ac_test_CFLAGS" = set; then 1213 CFLAGS="$ac_save_CFLAGS" 1214 elif test $ac_cv_prog_cc_g = yes; then 1215 CFLAGS="-g -O2" 1216 else 1217 CFLAGS="-O2" 1218 fi 1219 else 1220 GCC= 1221 test "${CFLAGS+set}" = set || CFLAGS="-g" 1222 fi 1223 1224 1225 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args. 1226 set dummy ${ac_tool_prefix}as; ac_word=$2 1227 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1228 echo "configure:1229: checking for $ac_word" >&5 1229 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then 1230 echo $ac_n "(cached) $ac_c" 1>&6 1231 else 1232 if test -n "$AS"; then 1233 ac_cv_prog_AS="$AS" # Let the user override the test. 1234 else 1235 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 1236 ac_dummy="$PATH" 1237 for ac_dir in $ac_dummy; do 1238 test -z "$ac_dir" && ac_dir=. 1239 if test -f $ac_dir/$ac_word; then 1240 ac_cv_prog_AS="${ac_tool_prefix}as" 1241 break 1242 fi 1243 done 1244 IFS="$ac_save_ifs" 1245 test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="as" 1246 fi 1247 fi 1248 AS="$ac_cv_prog_AS" 1249 if test -n "$AS"; then 1250 echo "$ac_t""$AS" 1>&6 1251 else 1252 echo "$ac_t""no" 1>&6 1253 fi 1254 1255 1256 1257 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 1258 set dummy ${ac_tool_prefix}ar; ac_word=$2 1259 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1260 echo "configure:1261: checking for $ac_word" >&5 1261 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then 1262 echo $ac_n "(cached) $ac_c" 1>&6 1263 else 1264 if test -n "$AR"; then 1265 ac_cv_prog_AR="$AR" # Let the user override the test. 1266 else 1267 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 1268 ac_dummy="$PATH" 1269 for ac_dir in $ac_dummy; do 1270 test -z "$ac_dir" && ac_dir=. 1271 if test -f $ac_dir/$ac_word; then 1272 ac_cv_prog_AR="${ac_tool_prefix}ar" 1273 break 1274 fi 1275 done 1276 IFS="$ac_save_ifs" 1277 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar" 1278 fi 1279 fi 1280 AR="$ac_cv_prog_AR" 1281 if test -n "$AR"; then 1282 echo "$ac_t""$AR" 1>&6 1283 else 1284 echo "$ac_t""no" 1>&6 1285 fi 1286 1287 1288 1289 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 1290 set dummy ${ac_tool_prefix}ranlib; ac_word=$2 1291 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1292 echo "configure:1293: checking for $ac_word" >&5 1293 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then 1294 echo $ac_n "(cached) $ac_c" 1>&6 1295 else 1296 if test -n "$RANLIB"; then 1297 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 1298 else 1299 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 1300 ac_dummy="$PATH" 1301 for ac_dir in $ac_dummy; do 1302 test -z "$ac_dir" && ac_dir=. 1303 if test -f $ac_dir/$ac_word; then 1304 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 1305 break 1306 fi 1307 done 1308 IFS="$ac_save_ifs" 1309 fi 1310 fi 1311 RANLIB="$ac_cv_prog_RANLIB" 1312 if test -n "$RANLIB"; then 1313 echo "$ac_t""$RANLIB" 1>&6 1314 else 1315 echo "$ac_t""no" 1>&6 1316 fi 1317 1318 1319 if test -z "$ac_cv_prog_RANLIB"; then 1320 if test -n "$ac_tool_prefix"; then 1321 # Extract the first word of "ranlib", so it can be a program name with args. 1322 set dummy ranlib; ac_word=$2 1323 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1324 echo "configure:1325: checking for $ac_word" >&5 1325 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then 1326 echo $ac_n "(cached) $ac_c" 1>&6 1327 else 1328 if test -n "$RANLIB"; then 1329 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 1330 else 1331 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 1332 ac_dummy="$PATH" 1333 for ac_dir in $ac_dummy; do 1334 test -z "$ac_dir" && ac_dir=. 1335 if test -f $ac_dir/$ac_word; then 1336 ac_cv_prog_RANLIB="ranlib" 1337 break 1338 fi 1339 done 1340 IFS="$ac_save_ifs" 1341 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":" 1342 fi 1343 fi 1344 RANLIB="$ac_cv_prog_RANLIB" 1345 if test -n "$RANLIB"; then 1346 echo "$ac_t""$RANLIB" 1>&6 1347 else 1348 echo "$ac_t""no" 1>&6 1349 fi 1350 1351 else 1352 RANLIB=":" 1353 fi 1354 fi 1355 1356 1357 # Find a good install program. We prefer a C program (faster), 1358 # so one script is as good as another. But avoid the broken or 1359 # incompatible versions: 1360 # SysV /etc/install, /usr/sbin/install 1361 # SunOS /usr/etc/install 1362 # IRIX /sbin/install 1363 # AIX /bin/install 1364 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 1365 # AFS /usr/afsws/bin/install, which mishandles nonexistent args 1366 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 1367 # ./install, which can be erroneously created by make from ./install.sh. 1368 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 1369 echo "configure:1370: checking for a BSD compatible install" >&5 1370 if test -z "$INSTALL"; then 1371 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then 1372 echo $ac_n "(cached) $ac_c" 1>&6 1373 else 1374 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" 1375 for ac_dir in $PATH; do 1376 # Account for people who put trailing slashes in PATH elements. 1377 case "$ac_dir/" in 1378 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; 1379 *) 1380 # OSF1 and SCO ODT 3.0 have their own names for install. 1381 # Don't use installbsd from OSF since it installs stuff as root 1382 # by default. 1383 for ac_prog in ginstall scoinst install; do 1384 if test -f $ac_dir/$ac_prog; then 1385 if test $ac_prog = install && 1386 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then 1387 # AIX install. It has an incompatible calling convention. 1388 : 1389 else 1390 ac_cv_path_install="$ac_dir/$ac_prog -c" 1391 break 2 1392 fi 1393 fi 1394 done 1395 ;; 1396 esac 1397 done 1398 IFS="$ac_save_IFS" 1399 1400 fi 1401 if test "${ac_cv_path_install+set}" = set; then 1402 INSTALL="$ac_cv_path_install" 1403 else 1404 # As a last resort, use the slow shell script. We don't cache a 1405 # path for INSTALL within a source directory, because that will 1406 # break other packages using the cache if that directory is 1407 # removed, or if the path is relative. 1408 INSTALL="$ac_install_sh" 1409 fi 1410 fi 1411 echo "$ac_t""$INSTALL" 1>&6 1412 1413 # Use test -z because SunOS4 sh mishandles braces in ${var-val}. 1414 # It thinks the first close brace ends the variable substitution. 1415 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 1416 1417 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' 1418 1419 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 1420 1421 1422 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6 1423 echo "configure:1424: checking whether to enable maintainer-specific portions of Makefiles" >&5 1424 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given. 1425 if test "${enable_maintainer_mode+set}" = set; then 1426 enableval="$enable_maintainer_mode" 1427 USE_MAINTAINER_MODE=$enableval 1428 else 1429 USE_MAINTAINER_MODE=no 1430 fi 1431 1432 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6 1433 1434 1435 if test $USE_MAINTAINER_MODE = yes; then 1436 MAINTAINER_MODE_TRUE= 1437 MAINTAINER_MODE_FALSE='#' 1438 else 1439 MAINTAINER_MODE_TRUE='#' 1440 MAINTAINER_MODE_FALSE= 1441 fi 1442 MAINT=$MAINTAINER_MODE_TRUE 1443 1444 1445 1446 # We need AC_EXEEXT to keep automake happy in cygnus mode. However, 1447 # at least currently, we never actually build a program, so we never 1448 # need to use $(EXEEXT). Moreover, the test for EXEEXT normally 1449 # fails, because we are probably configuring with a cross compiler 1450 # which can't create executables. So we include AC_EXEEXT to keep 1451 # automake happy, but we don't execute it, since we don't care about 1452 # the result. 1453 if false; then 1454 1455 1456 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6 1457 echo "configure:1458: checking for executable suffix" >&5 1458 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then 1459 echo $ac_n "(cached) $ac_c" 1>&6 1460 else 1461 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then 1462 ac_cv_exeext=.exe 1463 else 1464 rm -f conftest* 1465 echo 'int main () { return 0; }' > conftest.$ac_ext 1466 ac_cv_exeext= 1467 if { (eval echo configure:1468: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then 1468 for file in conftest.*; do 1469 case $file in 1470 *.c | *.o | *.obj) ;; 1471 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;; 1472 esac 1473 done 1474 else 1475 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; } 1476 fi 1477 rm -f conftest* 1478 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no 1479 fi 1480 fi 1481 1482 EXEEXT="" 1483 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext} 1484 echo "$ac_t""${ac_cv_exeext}" 1>&6 1485 ac_exeext=$EXEEXT 1486 1487 fi 1488 1489 . ${newlib_basedir}/configure.host 1490 1491 newlib_cflags="${newlib_cflags} -fno-builtin" 1492 1493 NEWLIB_CFLAGS=${newlib_cflags} 1494 1495 1496 LDFLAGS=${ldflags} 1497 1498 1499 1500 1501 if test x${newlib_elix_level} = x0; then 1502 ELIX_LEVEL_0_TRUE= 1503 ELIX_LEVEL_0_FALSE='#' 1504 else 1505 ELIX_LEVEL_0_TRUE='#' 1506 ELIX_LEVEL_0_FALSE= 1507 fi 1508 1509 1510 if test x${newlib_elix_level} = x1; then 1511 ELIX_LEVEL_1_TRUE= 1512 ELIX_LEVEL_1_FALSE='#' 1513 else 1514 ELIX_LEVEL_1_TRUE='#' 1515 ELIX_LEVEL_1_FALSE= 1516 fi 1517 1518 1519 if test x${newlib_elix_level} = x2; then 1520 ELIX_LEVEL_2_TRUE= 1521 ELIX_LEVEL_2_FALSE='#' 1522 else 1523 ELIX_LEVEL_2_TRUE='#' 1524 ELIX_LEVEL_2_FALSE= 1525 fi 1526 1527 1528 if test x${newlib_elix_level} = x3; then 1529 ELIX_LEVEL_3_TRUE= 1530 ELIX_LEVEL_3_FALSE='#' 1531 else 1532 ELIX_LEVEL_3_TRUE='#' 1533 ELIX_LEVEL_3_FALSE= 1534 fi 1535 1536 1537 if test x${newlib_elix_level} = x4; then 1538 ELIX_LEVEL_4_TRUE= 1539 ELIX_LEVEL_4_FALSE='#' 1540 else 1541 ELIX_LEVEL_4_TRUE='#' 1542 ELIX_LEVEL_4_FALSE= 1543 fi 1544 1545 1546 1547 if test x${use_libtool} = xyes; then 1548 USE_LIBTOOL_TRUE= 1549 USE_LIBTOOL_FALSE='#' 1550 else 1551 USE_LIBTOOL_TRUE='#' 1552 USE_LIBTOOL_FALSE= 1553 fi 1554 1555 # Hard-code OBJEXT. Normally it is set by AC_OBJEXT, but we 1556 # use oext, which is set in configure.host based on the target platform. 1557 OBJEXT=${oext} 1558 1559 1560 1561 1562 1563 1564 1565 1566 1567 1568 trap '' 1 2 15 1569 cat > confcache <<\EOF 1570 # This file is a shell script that caches the results of configure 1571 # tests run on this system so they can be shared between configure 1572 # scripts and configure runs. It is not useful on other systems. 1573 # If it contains results you don't want to keep, you may remove or edit it. 1574 # 1575 # By default, configure uses ./config.cache as the cache file, 1576 # creating it if it does not exist already. You can give configure 1577 # the --cache-file=FILE option to use a different cache file; that is 1578 # what configure does when it calls configure scripts in 1579 # subdirectories, so they share the cache. 1580 # Giving --cache-file=/dev/null disables caching, for debugging configure. 1581 # config.status only pays attention to the cache file if you give it the 1582 # --recheck option to rerun configure. 1583 # 1584 EOF 1585 # The following way of writing the cache mishandles newlines in values, 1586 # but we know of no workaround that is simple, portable, and efficient. 1587 # So, don't put newlines in cache variables' values. 1588 # Ultrix sh set writes to stderr and can't be redirected directly, 1589 # and sets the high bit in the cache file unless we assign to the vars. 1590 (set) 2>&1 | 1591 case `(ac_space=' '; set | grep ac_space) 2>&1` in 1592 *ac_space=\ *) 1593 # `set' does not quote correctly, so add quotes (double-quote substitution 1594 # turns \\\\ into \\, and sed turns \\ into \). 1595 sed -n \ 1596 -e "s/'/'\\\\''/g" \ 1597 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" 1598 ;; 1599 *) 1600 # `set' quotes correctly as required by POSIX, so do not add quotes. 1601 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' 1602 ;; 1603 esac >> confcache 1604 if cmp -s $cache_file confcache; then 1605 : 1606 else 1607 if test -w $cache_file; then 1608 echo "updating cache $cache_file" 1609 cat confcache > $cache_file 1610 else 1611 echo "not updating unwritable cache $cache_file" 1612 fi 1613 fi 1614 rm -f confcache 1615 1616 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 1617 1618 test "x$prefix" = xNONE && prefix=$ac_default_prefix 1619 # Let make expand exec_prefix. 1620 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 1621 1622 # Any assignment to VPATH causes Sun make to only execute 1623 # the first set of double-colon rules, so remove it if not needed. 1624 # If there is a colon in the path, we need to keep it. 1625 if test "x$srcdir" = x.; then 1626 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' 1627 fi 1628 1629 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 1630 1631 # Transform confdefs.h into DEFS. 1632 # Protect against shell expansion while executing Makefile rules. 1633 # Protect against Makefile macro expansion. 1634 # 1635 # If the first sed substitution is executed (which looks for macros that 1636 # take arguments), then we branch to the quote section. Otherwise, 1637 # look for a macro that doesn't take arguments. 1638 cat >confdef2opt.sed <<\_ACEOF 1639 t clear 1640 : clear 1641 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g 1642 t quote 1643 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g 1644 t quote 1645 d 1646 : quote 1647 s,[ `~#$^&*(){}\\|;'"<>?],\\&,g 1648 s,\[,\\&,g 1649 s,\],\\&,g 1650 s,\$,$$,g 1651 p 1652 _ACEOF 1653 # We use echo to avoid assuming a particular line-breaking character. 1654 # The extra dot is to prevent the shell from consuming trailing 1655 # line-breaks from the sub-command output. A line-break within 1656 # single-quotes doesn't work because, if this script is created in a 1657 # platform that uses two characters for line-breaks (e.g., DOS), tr 1658 # would break. 1659 ac_LF_and_DOT=`echo; echo .` 1660 DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'` 1661 rm -f confdef2opt.sed 1662 1663 1664 # Without the "./", some shells look in PATH for config.status. 1665 : ${CONFIG_STATUS=./config.status} 1666 1667 echo creating $CONFIG_STATUS 1668 rm -f $CONFIG_STATUS 1669 cat > $CONFIG_STATUS <<EOF 1670 #! /bin/sh 1671 # Generated automatically by configure. 1672 # Run this file to recreate the current configuration. 1673 # This directory was configured as follows, 1674 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 1675 # 1676 # $0 $ac_configure_args 1677 # 1678 # Compiler output produced by configure, useful for debugging 1679 # configure, is in ./config.log if it exists. 1680 1681 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" 1682 for ac_option 1683 do 1684 case "\$ac_option" in 1685 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 1686 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" 1687 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; 1688 -version | --version | --versio | --versi | --vers | --ver | --ve | --v) 1689 echo "$CONFIG_STATUS generated by autoconf version 2.13" 1690 exit 0 ;; 1691 -help | --help | --hel | --he | --h) 1692 echo "\$ac_cs_usage"; exit 0 ;; 1693 *) echo "\$ac_cs_usage"; exit 1 ;; 1694 esac 1695 done 1696 1697 ac_given_srcdir=$srcdir 1698 ac_given_INSTALL="$INSTALL" 1699 1700 trap 'rm -fr `echo "Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 1701 EOF 1702 cat >> $CONFIG_STATUS <<EOF 1703 1704 # Protect against being on the right side of a sed subst in config.status. 1705 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; 1706 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF 1707 $ac_vpsub 1708 $extrasub 1709 s%@SHELL@%$SHELL%g 1710 s%@CFLAGS@%$CFLAGS%g 1711 s%@CPPFLAGS@%$CPPFLAGS%g 1712 s%@CXXFLAGS@%$CXXFLAGS%g 1713 s%@FFLAGS@%$FFLAGS%g 1714 s%@DEFS@%$DEFS%g 1715 s%@LDFLAGS@%$LDFLAGS%g 1716 s%@LIBS@%$LIBS%g 1717 s%@exec_prefix@%$exec_prefix%g 1718 s%@prefix@%$prefix%g 1719 s%@program_transform_name@%$program_transform_name%g 1720 s%@bindir@%$bindir%g 1721 s%@sbindir@%$sbindir%g 1722 s%@libexecdir@%$libexecdir%g 1723 s%@datadir@%$datadir%g 1724 s%@sysconfdir@%$sysconfdir%g 1725 s%@sharedstatedir@%$sharedstatedir%g 1726 s%@localstatedir@%$localstatedir%g 1727 s%@libdir@%$libdir%g 1728 s%@includedir@%$includedir%g 1729 s%@oldincludedir@%$oldincludedir%g 1730 s%@infodir@%$infodir%g 1731 s%@mandir@%$mandir%g 1732 s%@MAY_SUPPLY_SYSCALLS_TRUE@%$MAY_SUPPLY_SYSCALLS_TRUE%g 1733 s%@MAY_SUPPLY_SYSCALLS_FALSE@%$MAY_SUPPLY_SYSCALLS_FALSE%g 1734 s%@newlib_basedir@%$newlib_basedir%g 1735 s%@host@%$host%g 1736 s%@host_alias@%$host_alias%g 1737 s%@host_cpu@%$host_cpu%g 1738 s%@host_vendor@%$host_vendor%g 1739 s%@host_os@%$host_os%g 1740 s%@target@%$target%g 1741 s%@target_alias@%$target_alias%g 1742 s%@target_cpu@%$target_cpu%g 1743 s%@target_vendor@%$target_vendor%g 1744 s%@target_os@%$target_os%g 1745 s%@build@%$build%g 1746 s%@build_alias@%$build_alias%g 1747 s%@build_cpu@%$build_cpu%g 1748 s%@build_vendor@%$build_vendor%g 1749 s%@build_os@%$build_os%g 1750 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g 1751 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g 1752 s%@INSTALL_DATA@%$INSTALL_DATA%g 1753 s%@PACKAGE@%$PACKAGE%g 1754 s%@VERSION@%$VERSION%g 1755 s%@ACLOCAL@%$ACLOCAL%g 1756 s%@AUTOCONF@%$AUTOCONF%g 1757 s%@AUTOMAKE@%$AUTOMAKE%g 1758 s%@AUTOHEADER@%$AUTOHEADER%g 1759 s%@MAKEINFO@%$MAKEINFO%g 1760 s%@SET_MAKE@%$SET_MAKE%g 1761 s%@CC@%$CC%g 1762 s%@AS@%$AS%g 1763 s%@AR@%$AR%g 1764 s%@RANLIB@%$RANLIB%g 1765 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g 1766 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g 1767 s%@MAINT@%$MAINT%g 1768 s%@EXEEXT@%$EXEEXT%g 1769 s%@NEWLIB_CFLAGS@%$NEWLIB_CFLAGS%g 1770 s%@ELIX_LEVEL_0_TRUE@%$ELIX_LEVEL_0_TRUE%g 1771 s%@ELIX_LEVEL_0_FALSE@%$ELIX_LEVEL_0_FALSE%g 1772 s%@ELIX_LEVEL_1_TRUE@%$ELIX_LEVEL_1_TRUE%g 1773 s%@ELIX_LEVEL_1_FALSE@%$ELIX_LEVEL_1_FALSE%g 1774 s%@ELIX_LEVEL_2_TRUE@%$ELIX_LEVEL_2_TRUE%g 1775 s%@ELIX_LEVEL_2_FALSE@%$ELIX_LEVEL_2_FALSE%g 1776 s%@ELIX_LEVEL_3_TRUE@%$ELIX_LEVEL_3_TRUE%g 1777 s%@ELIX_LEVEL_3_FALSE@%$ELIX_LEVEL_3_FALSE%g 1778 s%@ELIX_LEVEL_4_TRUE@%$ELIX_LEVEL_4_TRUE%g 1779 s%@ELIX_LEVEL_4_FALSE@%$ELIX_LEVEL_4_FALSE%g 1780 s%@USE_LIBTOOL_TRUE@%$USE_LIBTOOL_TRUE%g 1781 s%@USE_LIBTOOL_FALSE@%$USE_LIBTOOL_FALSE%g 1782 s%@OBJEXT@%$OBJEXT%g 1783 s%@oext@%$oext%g 1784 s%@aext@%$aext%g 1785 s%@libm_machine_dir@%$libm_machine_dir%g 1786 s%@machine_dir@%$machine_dir%g 1787 s%@sys_dir@%$sys_dir%g 1788 1789 CEOF 1790 EOF 1791 1792 cat >> $CONFIG_STATUS <<\EOF 1793 1794 # Split the substitutions into bite-sized pieces for seds with 1795 # small command number limits, like on Digital OSF/1 and HP-UX. 1796 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. 1797 ac_file=1 # Number of current file. 1798 ac_beg=1 # First line for current file. 1799 ac_end=$ac_max_sed_cmds # Line after last line for current file. 1800 ac_more_lines=: 1801 ac_sed_cmds="" 1802 while $ac_more_lines; do 1803 if test $ac_beg -gt 1; then 1804 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file 1805 else 1806 sed "${ac_end}q" conftest.subs > conftest.s$ac_file 1807 fi 1808 if test ! -s conftest.s$ac_file; then 1809 ac_more_lines=false 1810 rm -f conftest.s$ac_file 1811 else 1812 if test -z "$ac_sed_cmds"; then 1813 ac_sed_cmds="sed -f conftest.s$ac_file" 1814 else 1815 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" 1816 fi 1817 ac_file=`expr $ac_file + 1` 1818 ac_beg=$ac_end 1819 ac_end=`expr $ac_end + $ac_max_sed_cmds` 1820 fi 1821 done 1822 if test -z "$ac_sed_cmds"; then 1823 ac_sed_cmds=cat 1824 fi 1825 EOF 1826 1827 cat >> $CONFIG_STATUS <<EOF 1828 1829 CONFIG_FILES=\${CONFIG_FILES-"Makefile"} 1830 EOF 1831 cat >> $CONFIG_STATUS <<\EOF 1832 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then 1833 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 1834 case "$ac_file" in 1835 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` 1836 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; 1837 *) ac_file_in="${ac_file}.in" ;; 1838 esac 1839 1840 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. 1841 1842 # Remove last slash and all that follows it. Not all systems have dirname. 1843 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` 1844 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then 1845 # The file is in a subdirectory. 1846 test ! -d "$ac_dir" && mkdir "$ac_dir" 1847 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" 1848 # A "../" for each directory in $ac_dir_suffix. 1849 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` 1850 else 1851 ac_dir_suffix= ac_dots= 1852 fi 1853 1854 case "$ac_given_srcdir" in 1855 .) srcdir=. 1856 if test -z "$ac_dots"; then top_srcdir=. 1857 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; 1858 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; 1859 *) # Relative path. 1860 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" 1861 top_srcdir="$ac_dots$ac_given_srcdir" ;; 1862 esac 1863 1864 case "$ac_given_INSTALL" in 1865 [/$]*) INSTALL="$ac_given_INSTALL" ;; 1866 *) INSTALL="$ac_dots$ac_given_INSTALL" ;; 1867 esac 1868 1869 echo creating "$ac_file" 1870 rm -f "$ac_file" 1871 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." 1872 case "$ac_file" in 1873 *Makefile*) ac_comsub="1i\\ 1874 # $configure_input" ;; 1875 *) ac_comsub= ;; 1876 esac 1877 1878 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` 1879 sed -e "$ac_comsub 1880 s%@configure_input@%$configure_input%g 1881 s%@srcdir@%$srcdir%g 1882 s%@top_srcdir@%$top_srcdir%g 1883 s%@INSTALL@%$INSTALL%g 1884 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file 1885 fi; done 1886 rm -f conftest.s* 1887 1888 EOF 1889 cat >> $CONFIG_STATUS <<EOF 1890 1891 EOF 1892 cat >> $CONFIG_STATUS <<\EOF 1893 1894 exit 0 1895 EOF 1896 chmod +x $CONFIG_STATUS 1897 rm -fr confdefs* $ac_clean_files 1898 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 1899 -
newlib/libc/machine/bfin/configure.in
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
old new 1 dnl This is the newlib/libc/machine/bfin configure.in file. 2 dnl Process this file with autoconf to produce a configure script. 3 4 AC_PREREQ(2.5) 5 AC_INIT(Makefile.am) 6 7 dnl Can't be done in NEWLIB_CONFIGURE because that confuses automake. 8 AC_CONFIG_AUX_DIR(../../../..) 9 10 NEWLIB_CONFIGURE(../../..) 11 12 AC_OUTPUT(Makefile) -
newlib/libc/machine/bfin/longjmp.S
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
old new 1 /* 2 * longjmp for the Blackfin processor 3 * 4 * Copyright (C) 2006 Analog Devices, Inc. 5 * 6 * The authors hereby grant permission to use, copy, modify, distribute, 7 * and license this software and its documentation for any purpose, provided 8 * that existing copyright notices are retained in all copies and that this 9 * notice is included verbatim in any distributions. No written agreement, 10 * license, or royalty fee is required for any of the authorized uses. 11 * Modifications to this software may be copyrighted by their authors 12 * and need not follow the licensing terms described here, provided that 13 * the new terms are clearly indicated on the first page of each file where 14 * they apply. 15 */ 16 17 #define _ASM 18 #define _SETJMP_H 19 20 21 .text; 22 .align 4; 23 .globl _longjmp; 24 .type _longjmp, STT_FUNC; 25 _longjmp: 26 P0 = R0; 27 R0 = [P0 + 0x00]; 28 [--SP] = R0; /* Put P0 on the stack */ 29 30 P1 = [P0 + 0x04]; 31 P2 = [P0 + 0x08]; 32 P3 = [P0 + 0x0C]; 33 P4 = [P0 + 0x10]; 34 P5 = [P0 + 0x14]; 35 36 FP = [P0 + 0x18]; 37 R0 = [SP++]; /* Grab P0 from old stack */ 38 SP = [P0 + 0x1C]; /* Update Stack Pointer */ 39 [--SP] = R0; /* Put P0 on new stack */ 40 [--SP] = R1; /* Put VAL arg on new stack */ 41 42 R0 = [P0 + 0x20]; /* Data Registers */ 43 R1 = [P0 + 0x24]; 44 R2 = [P0 + 0x28]; 45 R3 = [P0 + 0x2C]; 46 R4 = [P0 + 0x30]; 47 R5 = [P0 + 0x34]; 48 R6 = [P0 + 0x38]; 49 R7 = [P0 + 0x3C]; 50 51 R0 = [P0 + 0x40]; 52 ASTAT = R0; 53 54 R0 = [P0 + 0x44]; /* Loop Counters */ 55 LC0 = R0; 56 R0 = [P0 + 0x48]; 57 LC1 = R0; 58 59 R0 = [P0 + 0x4C]; /* Accumulators */ 60 A0.W = R0; 61 R0 = [P0 + 0x50]; 62 A0.X = R0; 63 R0 = [P0 + 0x54]; 64 A1.W = R0; 65 R0 = [P0 + 0x58]; 66 A1.X = R0; 67 68 R0 = [P0 + 0x5C]; /* Index Registers */ 69 I0 = R0; 70 R0 = [P0 + 0x60]; 71 I1 = R0; 72 R0 = [P0 + 0x64]; 73 I2 = R0; 74 R0 = [P0 + 0x68]; 75 I3 = R0; 76 77 R0 = [P0 + 0x6C]; /* Modifier Registers */ 78 M0 = R0; 79 R0 = [P0 + 0x70]; 80 M1 = R0; 81 R0 = [P0 + 0x74]; 82 M2 = R0; 83 R0 = [P0 + 0x78]; 84 M3 = R0; 85 86 R0 = [P0 + 0x7C]; /* Length Registers */ 87 L0 = R0; 88 R0 = [P0 + 0x80]; 89 L1 = R0; 90 R0 = [P0 + 0x84]; 91 L2 = R0; 92 R0 = [P0 + 0x88]; 93 L3 = R0; 94 95 R0 = [P0 + 0x8C]; /* Base Registers */ 96 B0 = R0; 97 R0 = [P0 + 0x90]; 98 B1 = R0; 99 R0 = [P0 + 0x94]; 100 B2 = R0; 101 R0 = [P0 + 0x98]; 102 B3 = R0; 103 104 R0 = [P0 + 0x9C]; /* Return Address (PC) */ 105 RETS = R0; 106 107 R0 = [SP++]; 108 P0 = [SP++]; 109 110 CC = R0 == 0; 111 IF !CC JUMP 1f; 112 R0 = 1; 113 1: 114 RTS; 115 .size _longjmp, .-_longjmp; -
newlib/libc/machine/bfin/Makefile.am
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
old new 1 ## Process this file with automake to generate Makefile.in 2 3 AUTOMAKE_OPTIONS = cygnus 4 5 INCLUDES = $(NEWLIB_CFLAGS) $(CROSS_CFLAGS) $(TARGET_CFLAGS) 6 7 noinst_LIBRARIES = lib.a 8 9 lib_a_SOURCES = setjmp.S longjmp.S 10 11 ACLOCAL_AMFLAGS = -I ../../.. 12 CONFIG_STATUS_DEPENDENCIES = $(newlib_basedir)/configure.host -
newlib/libc/machine/bfin/Makefile.in
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
old new 1 # Makefile.in generated automatically by automake 1.4-p6 from Makefile.am 2 3 # Copyright (C) 1994, 1995-8, 1999, 2001 Free Software Foundation, Inc. 4 # This Makefile.in is free software; the Free Software Foundation 5 # gives unlimited permission to copy and/or distribute it, 6 # with or without modifications, as long as this notice is preserved. 7 8 # This program is distributed in the hope that it will be useful, 9 # but WITHOUT ANY WARRANTY, to the extent permitted by law; without 10 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A 11 # PARTICULAR PURPOSE. 12 13 14 SHELL = @SHELL@ 15 16 srcdir = @srcdir@ 17 top_srcdir = @top_srcdir@ 18 VPATH = @srcdir@ 19 prefix = @prefix@ 20 exec_prefix = @exec_prefix@ 21 22 bindir = @bindir@ 23 sbindir = @sbindir@ 24 libexecdir = @libexecdir@ 25 datadir = @datadir@ 26 sysconfdir = @sysconfdir@ 27 sharedstatedir = @sharedstatedir@ 28 localstatedir = @localstatedir@ 29 libdir = @libdir@ 30 infodir = @infodir@ 31 mandir = @mandir@ 32 includedir = @includedir@ 33 oldincludedir = /usr/include 34 35 DESTDIR = 36 37 pkgdatadir = $(datadir)/@PACKAGE@ 38 pkglibdir = $(libdir)/@PACKAGE@ 39 pkgincludedir = $(includedir)/@PACKAGE@ 40 41 top_builddir = . 42 43 ACLOCAL = @ACLOCAL@ 44 AUTOCONF = @AUTOCONF@ 45 AUTOMAKE = @AUTOMAKE@ 46 AUTOHEADER = @AUTOHEADER@ 47 48 INSTALL = @INSTALL@ 49 INSTALL_PROGRAM = @INSTALL_PROGRAM@ $(AM_INSTALL_PROGRAM_FLAGS) 50 INSTALL_DATA = @INSTALL_DATA@ 51 INSTALL_SCRIPT = @INSTALL_SCRIPT@ 52 transform = @program_transform_name@ 53 54 NORMAL_INSTALL = : 55 PRE_INSTALL = : 56 POST_INSTALL = : 57 NORMAL_UNINSTALL = : 58 PRE_UNINSTALL = : 59 POST_UNINSTALL = : 60 build_alias = @build_alias@ 61 build_triplet = @build@ 62 host_alias = @host_alias@ 63 host_triplet = @host@ 64 target_alias = @target_alias@ 65 target_triplet = @target@ 66 AR = @AR@ 67 AS = @AS@ 68 CC = @CC@ 69 CPP = @CPP@ 70 EXEEXT = @EXEEXT@ 71 LDFLAGS = @LDFLAGS@ 72 MAINT = @MAINT@ 73 MAKEINFO = @MAKEINFO@ 74 NEWLIB_CFLAGS = @NEWLIB_CFLAGS@ 75 OBJEXT = @OBJEXT@ 76 PACKAGE = @PACKAGE@ 77 RANLIB = @RANLIB@ 78 VERSION = @VERSION@ 79 aext = @aext@ 80 libm_machine_dir = @libm_machine_dir@ 81 machine_dir = @machine_dir@ 82 newlib_basedir = @newlib_basedir@ 83 oext = @oext@ 84 sys_dir = @sys_dir@ 85 86 AUTOMAKE_OPTIONS = cygnus 87 88 INCLUDES = $(NEWLIB_CFLAGS) $(CROSS_CFLAGS) $(TARGET_CFLAGS) 89 90 noinst_LIBRARIES = lib.a 91 92 lib_a_SOURCES = setjmp.S longjmp.S 93 94 ACLOCAL_AMFLAGS = -I ../../.. 95 CONFIG_STATUS_DEPENDENCIES = $(newlib_basedir)/configure.host 96 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 97 mkinstalldirs = $(SHELL) $(top_srcdir)/../../../../mkinstalldirs 98 CONFIG_CLEAN_FILES = 99 LIBRARIES = $(noinst_LIBRARIES) 100 101 102 DEFS = @DEFS@ -I. -I$(srcdir) 103 CPPFLAGS = @CPPFLAGS@ 104 LIBS = @LIBS@ 105 lib_a_LIBADD = 106 lib_a_OBJECTS = setjmp.o longjmp.o 107 CFLAGS = @CFLAGS@ 108 COMPILE = $(CC) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) 109 CCLD = $(CC) 110 LINK = $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(LDFLAGS) -o $@ 111 DIST_COMMON = Makefile.am Makefile.in aclocal.m4 configure configure.in 112 113 114 DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST) 115 116 TAR = gtar 117 GZIP_ENV = --best 118 SOURCES = $(lib_a_SOURCES) 119 OBJECTS = $(lib_a_OBJECTS) 120 121 all: all-redirect 122 .SUFFIXES: 123 .SUFFIXES: .S .c .o .s 124 $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4) 125 cd $(top_srcdir) && $(AUTOMAKE) --cygnus Makefile 126 127 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status 128 cd $(top_builddir) \ 129 && CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status 130 131 $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ configure.in \ 132 ../../../acinclude.m4 ../../../aclocal.m4 \ 133 ../../../libtool.m4 134 cd $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS) 135 136 config.status: $(srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) 137 $(SHELL) ./config.status --recheck 138 $(srcdir)/configure: @MAINTAINER_MODE_TRUE@$(srcdir)/configure.in $(ACLOCAL_M4) $(CONFIGURE_DEPENDENCIES) 139 cd $(srcdir) && $(AUTOCONF) 140 141 mostlyclean-noinstLIBRARIES: 142 143 clean-noinstLIBRARIES: 144 -test -z "$(noinst_LIBRARIES)" || rm -f $(noinst_LIBRARIES) 145 146 distclean-noinstLIBRARIES: 147 148 maintainer-clean-noinstLIBRARIES: 149 150 .c.o: 151 $(COMPILE) -c $< 152 153 .s.o: 154 $(COMPILE) -c $< 155 156 .S.o: 157 $(COMPILE) -c $< 158 159 mostlyclean-compile: 160 -rm -f *.o core *.core 161 162 clean-compile: 163 164 distclean-compile: 165 -rm -f *.tab.c 166 167 maintainer-clean-compile: 168 169 lib.a: $(lib_a_OBJECTS) $(lib_a_DEPENDENCIES) 170 -rm -f lib.a 171 $(AR) cru lib.a $(lib_a_OBJECTS) $(lib_a_LIBADD) 172 $(RANLIB) lib.a 173 174 tags: TAGS 175 176 ID: $(HEADERS) $(SOURCES) $(LISP) 177 list='$(SOURCES) $(HEADERS)'; \ 178 unique=`for i in $$list; do echo $$i; done | \ 179 awk ' { files[$$0] = 1; } \ 180 END { for (i in files) print i; }'`; \ 181 here=`pwd` && cd $(srcdir) \ 182 && mkid -f$$here/ID $$unique $(LISP) 183 184 TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) $(LISP) 185 tags=; \ 186 here=`pwd`; \ 187 list='$(SOURCES) $(HEADERS)'; \ 188 unique=`for i in $$list; do echo $$i; done | \ 189 awk ' { files[$$0] = 1; } \ 190 END { for (i in files) print i; }'`; \ 191 test -z "$(ETAGS_ARGS)$$unique$(LISP)$$tags" \ 192 || (cd $(srcdir) && etags $(ETAGS_ARGS) $$tags $$unique $(LISP) -o $$here/TAGS) 193 194 mostlyclean-tags: 195 196 clean-tags: 197 198 distclean-tags: 199 -rm -f TAGS ID 200 201 maintainer-clean-tags: 202 203 distdir = $(PACKAGE)-$(VERSION) 204 top_distdir = $(distdir) 205 206 # This target untars the dist file and tries a VPATH configuration. Then 207 # it guarantees that the distribution is self-contained by making another 208 # tarfile. 209 distcheck: dist 210 -rm -rf $(distdir) 211 GZIP=$(GZIP_ENV) $(TAR) zxf $(distdir).tar.gz 212 mkdir $(distdir)/=build 213 mkdir $(distdir)/=inst 214 dc_install_base=`cd $(distdir)/=inst && pwd`; \ 215 cd $(distdir)/=build \ 216 && ../configure --srcdir=.. --prefix=$$dc_install_base \ 217 && $(MAKE) $(AM_MAKEFLAGS) \ 218 && $(MAKE) $(AM_MAKEFLAGS) dvi \ 219 && $(MAKE) $(AM_MAKEFLAGS) check \ 220 && $(MAKE) $(AM_MAKEFLAGS) install \ 221 && $(MAKE) $(AM_MAKEFLAGS) installcheck \ 222 && $(MAKE) $(AM_MAKEFLAGS) dist 223 -rm -rf $(distdir) 224 @banner="$(distdir).tar.gz is ready for distribution"; \ 225 dashes=`echo "$$banner" | sed s/./=/g`; \ 226 echo "$$dashes"; \ 227 echo "$$banner"; \ 228 echo "$$dashes" 229 dist: distdir 230 -chmod -R a+r $(distdir) 231 GZIP=$(GZIP_ENV) $(TAR) chozf $(distdir).tar.gz $(distdir) 232 -rm -rf $(distdir) 233 dist-all: distdir 234 -chmod -R a+r $(distdir) 235 GZIP=$(GZIP_ENV) $(TAR) chozf $(distdir).tar.gz $(distdir) 236 -rm -rf $(distdir) 237 distdir: $(DISTFILES) 238 -rm -rf $(distdir) 239 mkdir $(distdir) 240 -chmod 777 $(distdir) 241 @for file in $(DISTFILES); do \ 242 if test -f $$file; then d=.; else d=$(srcdir); fi; \ 243 if test -d $$d/$$file; then \ 244 cp -pr $$d/$$file $(distdir)/$$file; \ 245 else \ 246 test -f $(distdir)/$$file \ 247 || ln $$d/$$file $(distdir)/$$file 2> /dev/null \ 248 || cp -p $$d/$$file $(distdir)/$$file || :; \ 249 fi; \ 250 done 251 info-am: 252 info: info-am 253 dvi-am: 254 dvi: dvi-am 255 check-am: 256 check: check-am 257 installcheck-am: 258 installcheck: installcheck-am 259 install-info-am: 260 install-info: install-info-am 261 install-exec-am: 262 install-exec: install-exec-am 263 264 install-data-am: 265 install-data: install-data-am 266 267 install-am: all-am 268 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am 269 install: install-am 270 uninstall-am: 271 uninstall: uninstall-am 272 all-am: Makefile $(LIBRARIES) 273 all-redirect: all-am 274 install-strip: 275 $(MAKE) $(AM_MAKEFLAGS) AM_INSTALL_PROGRAM_FLAGS=-s install 276 installdirs: 277 278 279 mostlyclean-generic: 280 281 clean-generic: 282 283 distclean-generic: 284 -rm -f Makefile $(CONFIG_CLEAN_FILES) 285 -rm -f config.cache config.log stamp-h stamp-h[0-9]* 286 287 maintainer-clean-generic: 288 mostlyclean-am: mostlyclean-noinstLIBRARIES mostlyclean-compile \ 289 mostlyclean-tags mostlyclean-generic 290 291 mostlyclean: mostlyclean-am 292 293 clean-am: clean-noinstLIBRARIES clean-compile clean-tags clean-generic \ 294 mostlyclean-am 295 296 clean: clean-am 297 298 distclean-am: distclean-noinstLIBRARIES distclean-compile \ 299 distclean-tags distclean-generic clean-am 300 301 distclean: distclean-am 302 -rm -f config.status 303 304 maintainer-clean-am: maintainer-clean-noinstLIBRARIES \ 305 maintainer-clean-compile maintainer-clean-tags \ 306 maintainer-clean-generic distclean-am 307 @echo "This command is intended for maintainers to use;" 308 @echo "it deletes files that may require special tools to rebuild." 309 310 maintainer-clean: maintainer-clean-am 311 -rm -f config.status 312 313 .PHONY: mostlyclean-noinstLIBRARIES distclean-noinstLIBRARIES \ 314 clean-noinstLIBRARIES maintainer-clean-noinstLIBRARIES \ 315 mostlyclean-compile distclean-compile clean-compile \ 316 maintainer-clean-compile tags mostlyclean-tags distclean-tags \ 317 clean-tags maintainer-clean-tags distdir info-am info dvi-am dvi check \ 318 check-am installcheck-am installcheck install-info-am install-info \ 319 install-exec-am install-exec install-data-am install-data install-am \ 320 install uninstall-am uninstall all-redirect all-am all installdirs \ 321 mostlyclean-generic distclean-generic clean-generic \ 322 maintainer-clean-generic clean mostlyclean distclean maintainer-clean 323 324 325 # Tell versions [3.59,3.63) of GNU make to not export all variables. 326 # Otherwise a system limit (for SysV at least) may be exceeded. 327 .NOEXPORT: -
newlib/libc/machine/bfin/setjmp.S
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
old new 1 /* 2 * setjmp for the Blackfin processor 3 * 4 * Copyright (C) 2006 Analog Devices, Inc. 5 * 6 * The authors hereby grant permission to use, copy, modify, distribute, 7 * and license this software and its documentation for any purpose, provided 8 * that existing copyright notices are retained in all copies and that this 9 * notice is included verbatim in any distributions. No written agreement, 10 * license, or royalty fee is required for any of the authorized uses. 11 * Modifications to this software may be copyrighted by their authors 12 * and need not follow the licensing terms described here, provided that 13 * the new terms are clearly indicated on the first page of each file where 14 * they apply. 15 */ 16 17 18 #define _ASM 19 #define _SETJMP_H 20 21 .text; 22 .align 4; 23 .globl _setjmp; 24 .type _setjmp, STT_FUNC; 25 26 _setjmp: 27 [--SP] = P0; /* Save P0 */ 28 P0 = R0; 29 R0 = [SP++]; 30 [P0 + 0x00] = R0; /* Save saved P0 */ 31 [P0 + 0x04] = P1; 32 [P0 + 0x08] = P2; 33 [P0 + 0x0C] = P3; 34 [P0 + 0x10] = P4; 35 [P0 + 0x14] = P5; 36 37 [P0 + 0x18] = FP; /* Frame Pointer */ 38 [P0 + 0x1C] = SP; /* Stack Pointer */ 39 40 [P0 + 0x20] = P0; /* Data Registers */ 41 [P0 + 0x24] = R1; 42 [P0 + 0x28] = R2; 43 [P0 + 0x2C] = R3; 44 [P0 + 0x30] = R4; 45 [P0 + 0x34] = R5; 46 [P0 + 0x38] = R6; 47 [P0 + 0x3C] = R7; 48 49 R0 = ASTAT; 50 [P0 + 0x40] = R0; 51 52 R0 = LC0; /* Loop Counters */ 53 [P0 + 0x44] = R0; 54 R0 = LC1; 55 [P0 + 0x48] = R0; 56 57 R0 = A0.W; /* Accumulators */ 58 [P0 + 0x4C] = R0; 59 R0 = A0.X; 60 [P0 + 0x50] = R0; 61 R0 = A1.W; 62 [P0 + 0x54] = R0; 63 R0 = A1.X; 64 [P0 + 0x58] = R0; 65 66 R0 = I0; /* Index Registers */ 67 [P0 + 0x5C] = R0; 68 R0 = I1; 69 [P0 + 0x60] = R0; 70 R0 = I2; 71 [P0 + 0x64] = R0; 72 R0 = I3; 73 [P0 + 0x68] = R0; 74 75 R0 = M0; /* Modifier Registers */ 76 [P0 + 0x6C] = R0; 77 R0 = M1; 78 [P0 + 0x70] = R0; 79 R0 = M2; 80 [P0 + 0x74] = R0; 81 R0 = M3; 82 [P0 + 0x78] = R0; 83 84 R0 = L0; /* Length Registers */ 85 [P0 + 0x7c] = R0; 86 R0 = L1; 87 [P0 + 0x80] = R0; 88 R0 = L2; 89 [P0 + 0x84] = R0; 90 R0 = L3; 91 [P0 + 0x88] = R0; 92 93 R0 = B0; /* Base Registers */ 94 [P0 + 0x8C] = R0; 95 R0 = B1; 96 [P0 + 0x90] = R0; 97 R0 = B2; 98 [P0 + 0x94] = R0; 99 R0 = B3; 100 [P0 + 0x98] = R0; 101 102 R0 = RETS; 103 [P0 + 0x9C] = R0; 104 105 R0 = 0; 106 107 RTS; 108 .size _setjmp, .-_setjmp; -
newlib/libc/reent/reent.c
diff -uNr newlib-1.14.0/newlib/libc/reent/reent.c newlib-1.14.0-rtems4.8-20061109/newlib/libc/reent/reent.c
old new 69 69 70 70 _free_r (ptr, _REENT_MP_FREELIST(ptr)); 71 71 } 72 if (_REENT_MP_RESULT(ptr)) 73 _free_r (ptr, _REENT_MP_RESULT(ptr)); 72 74 73 75 #ifdef _REENT_SMALL 74 76 if (ptr->_emergency) -
newlib/libc/search/db_local.h
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
old new 50 50 #define MAX_PAGE_NUMBER 0xffffffff /* >= # of pages in a file */ 51 51 typedef __uint32_t pgno_t; 52 52 #define MAX_PAGE_OFFSET 65535 /* >= # of bytes in a page */ 53 typedef __uint 16_t indx_t;53 typedef __uint_least16_t indx_t; 54 54 #define MAX_REC_NUMBER 0xffffffff /* >= # of records in a tree */ 55 55 typedef __uint32_t recno_t; 56 56 … … 191 191 * P_16_COPY swap from one location to another 192 192 */ 193 193 #define M_16_SWAP(a) { \ 194 __uint 16_t _tmp = a; \194 __uint_least16_t _tmp = a; \ 195 195 ((char *)&a)[0] = ((char *)&_tmp)[1]; \ 196 196 ((char *)&a)[1] = ((char *)&_tmp)[0]; \ 197 197 } 198 198 #define P_16_SWAP(a) { \ 199 __uint 16_t _tmp = *(__uint16_t *)a; \199 __uint_least16_t _tmp = *(__uint_least16_t *)a; \ 200 200 ((char *)a)[0] = ((char *)&_tmp)[1]; \ 201 201 ((char *)a)[1] = ((char *)&_tmp)[0]; \ 202 202 } -
newlib/libc/search/extern.h
diff -uNr newlib-1.14.0/newlib/libc/search/extern.h newlib-1.14.0-rtems4.8-20061109/newlib/libc/search/extern.h
old new 48 48 int __delpair(HTAB *, BUFHEAD *, int); 49 49 int __expand_table(HTAB *); 50 50 int __find_bigpair(HTAB *, BUFHEAD *, int, char *, int); 51 __uint 16_t __find_last_page(HTAB *, BUFHEAD **);51 __uint_least16_t __find_last_page(HTAB *, BUFHEAD **); 52 52 void __free_ovflpage(HTAB *, BUFHEAD *); 53 53 BUFHEAD *__get_buf(HTAB *, __uint32_t, BUFHEAD *, int); 54 54 int __get_page(HTAB *, char *, __uint32_t, int, int, int); -
newlib/libc/search/hash_bigkey.c
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
old new 96 96 BUFHEAD *bufp; 97 97 const DBT *key, *val; 98 98 { 99 __uint 16_t *p;99 __uint_least16_t *p; 100 100 int key_size, n, val_size; 101 __uint 16_t space, move_bytes, off;101 __uint_least16_t space, move_bytes, off; 102 102 char *cp, *key_data, *val_data; 103 103 104 104 cp = bufp->page; /* Character pointer of p. */ 105 p = (__uint 16_t *)cp;105 p = (__uint_least16_t *)cp; 106 106 107 107 key_data = (char *)key->data; 108 108 key_size = key->size; … … 140 140 OFFSET(p) = off; 141 141 } else 142 142 p[n - 2] = FULL_KEY; 143 p = (__uint 16_t *)bufp->page;143 p = (__uint_least16_t *)bufp->page; 144 144 cp = bufp->page; 145 145 bufp->flags |= BUF_MOD; 146 146 } … … 170 170 if (!bufp) 171 171 return (-1); 172 172 cp = bufp->page; 173 p = (__uint 16_t *)cp;173 p = (__uint_least16_t *)cp; 174 174 } else 175 175 p[n] = FULL_KEY_DATA; 176 176 bufp->flags |= BUF_MOD; … … 195 195 BUFHEAD *bufp; 196 196 { 197 197 BUFHEAD *last_bfp, *rbufp; 198 __uint 16_t *bp, pageno;198 __uint_least16_t *bp, pageno; 199 199 int key_done, n; 200 200 201 201 rbufp = bufp; 202 202 last_bfp = NULL; 203 bp = (__uint 16_t *)bufp->page;203 bp = (__uint_least16_t *)bufp->page; 204 204 pageno = 0; 205 205 key_done = 0; 206 206 … … 223 223 last_bfp = rbufp; 224 224 if (!rbufp) 225 225 return (-1); /* Error. */ 226 bp = (__uint 16_t *)rbufp->page;226 bp = (__uint_least16_t *)rbufp->page; 227 227 } 228 228 229 229 /* … … 238 238 pageno = bp[n - 1]; 239 239 240 240 /* Now, bp is the first page of the pair. */ 241 bp = (__uint 16_t *)bufp->page;241 bp = (__uint_least16_t *)bufp->page; 242 242 if (n > 2) { 243 243 /* There is an overflow page. */ 244 244 bp[1] = pageno; … … 276 276 char *key; 277 277 int size; 278 278 { 279 __uint 16_t *bp;279 __uint_least16_t *bp; 280 280 char *p; 281 281 int ksize; 282 __uint 16_t bytes;282 __uint_least16_t bytes; 283 283 char *kkey; 284 284 285 bp = (__uint 16_t *)bufp->page;285 bp = (__uint_least16_t *)bufp->page; 286 286 p = bufp->page; 287 287 ksize = size; 288 288 kkey = key; … … 298 298 if (!bufp) 299 299 return (-3); 300 300 p = bufp->page; 301 bp = (__uint 16_t *)p;301 bp = (__uint_least16_t *)p; 302 302 ndx = 1; 303 303 } 304 304 … … 320 320 * of the pair; 0 if there isn't any (i.e. big pair is the last key in the 321 321 * bucket) 322 322 */ 323 extern __uint 16_t323 extern __uint_least16_t 324 324 __find_last_page(hashp, bpp) 325 325 HTAB *hashp; 326 326 BUFHEAD **bpp; 327 327 { 328 328 BUFHEAD *bufp; 329 __uint 16_t *bp, pageno;329 __uint_least16_t *bp, pageno; 330 330 int n; 331 331 332 332 bufp = *bpp; 333 bp = (__uint 16_t *)bufp->page;333 bp = (__uint_least16_t *)bufp->page; 334 334 for (;;) { 335 335 n = bp[0]; 336 336 … … 347 347 bufp = __get_buf(hashp, pageno, bufp, 0); 348 348 if (!bufp) 349 349 return (0); /* Need to indicate an error! */ 350 bp = (__uint 16_t *)bufp->page;350 bp = (__uint_least16_t *)bufp->page; 351 351 } 352 352 353 353 *bpp = bufp; … … 370 370 int set_current; 371 371 { 372 372 BUFHEAD *save_p; 373 __uint 16_t *bp, len, off, save_addr;373 __uint_least16_t *bp, len, off, save_addr; 374 374 char *tp; 375 375 376 bp = (__uint 16_t *)bufp->page;376 bp = (__uint_least16_t *)bufp->page; 377 377 while (bp[ndx + 1] == PARTIAL_KEY) { 378 378 bufp = __get_buf(hashp, bp[bp[0] - 1], bufp, 0); 379 379 if (!bufp) 380 380 return (-1); 381 bp = (__uint 16_t *)bufp->page;381 bp = (__uint_least16_t *)bufp->page; 382 382 ndx = 1; 383 383 } 384 384 … … 386 386 bufp = __get_buf(hashp, bp[bp[0] - 1], bufp, 0); 387 387 if (!bufp) 388 388 return (-1); 389 bp = (__uint 16_t *)bufp->page;389 bp = (__uint_least16_t *)bufp->page; 390 390 save_p = bufp; 391 391 save_addr = save_p->addr; 392 392 off = bp[1]; … … 407 407 bufp = __get_buf(hashp, bp[bp[0] - 1], bufp, 0); 408 408 if (!bufp) 409 409 return (-1); 410 bp = (__uint 16_t *)bufp->page;410 bp = (__uint_least16_t *)bufp->page; 411 411 } else { 412 412 /* The data is all on one page. */ 413 413 tp = (char *)bp; … … 426 426 if (!hashp->cpage) 427 427 return (-1); 428 428 hashp->cndx = 1; 429 if (!((__uint 16_t *)429 if (!((__uint_least16_t *) 430 430 hashp->cpage->page)[0]) { 431 431 hashp->cbucket++; 432 432 hashp->cpage = NULL; … … 458 458 BUFHEAD *bufp; 459 459 int len, set; 460 460 { 461 __uint 16_t *bp;461 __uint_least16_t *bp; 462 462 char *p; 463 463 BUFHEAD *xbp; 464 __uint 16_t save_addr;464 __uint_least16_t save_addr; 465 465 int mylen, totlen; 466 466 467 467 p = bufp->page; 468 bp = (__uint 16_t *)p;468 bp = (__uint_least16_t *)p; 469 469 mylen = hashp->BSIZE - bp[1]; 470 470 save_addr = bufp->addr; 471 471 … … 485 485 __get_buf(hashp, bp[bp[0] - 1], bufp, 0); 486 486 if (!hashp->cpage) 487 487 return (-1); 488 else if (!((__uint 16_t *)hashp->cpage->page)[0]) {488 else if (!((__uint_least16_t *)hashp->cpage->page)[0]) { 489 489 hashp->cbucket++; 490 490 hashp->cpage = NULL; 491 491 } … … 537 537 BUFHEAD *xbp; 538 538 char *p; 539 539 int mylen, totlen; 540 __uint 16_t *bp, save_addr;540 __uint_least16_t *bp, save_addr; 541 541 542 542 p = bufp->page; 543 bp = (__uint 16_t *)p;543 bp = (__uint_least16_t *)p; 544 544 mylen = hashp->BSIZE - bp[1]; 545 545 546 546 save_addr = bufp->addr; … … 583 583 SPLIT_RETURN *ret; 584 584 { 585 585 BUFHEAD *tmpp; 586 __uint 16_t *tp;586 __uint_least16_t *tp; 587 587 BUFHEAD *bp; 588 588 DBT key, val; 589 589 __uint32_t change; 590 __uint 16_t free_space, n, off;590 __uint_least16_t free_space, n, off; 591 591 592 592 bp = big_keyp; 593 593 … … 619 619 (tmpp->ovfl ? tmpp->ovfl->addr : 0), (bp ? bp->addr : 0)); 620 620 #endif 621 621 tmpp->ovfl = bp; /* one of op/np point to big_keyp */ 622 tp = (__uint 16_t *)tmpp->page;622 tp = (__uint_least16_t *)tmpp->page; 623 623 #ifdef DEBUG 624 624 assert(FREESPACE(tp) >= OVFLSIZE); 625 625 #endif 626 626 n = tp[0]; 627 627 off = OFFSET(tp); 628 628 free_space = FREESPACE(tp); 629 tp[++n] = (__uint 16_t)addr;629 tp[++n] = (__uint_least16_t)addr; 630 630 tp[++n] = OVFLPAGE; 631 631 tp[0] = n; 632 632 OFFSET(tp) = off; … … 642 642 ret->newp = np; 643 643 ret->oldp = op; 644 644 645 tp = (__uint 16_t *)big_keyp->page;645 tp = (__uint_least16_t *)big_keyp->page; 646 646 big_keyp->flags |= BUF_MOD; 647 647 if (tp[0] > 2) { 648 648 /* -
newlib/libc/search/hash_buf.c
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
old new 176 176 BUFHEAD *next_xbp; 177 177 SEGMENT segp; 178 178 int segment_ndx; 179 __uint 16_t oaddr, *shortp;179 __uint_least16_t oaddr, *shortp; 180 180 181 181 oaddr = 0; 182 182 bp = LRU; … … 212 212 * Set oaddr before __put_page so that you get it 213 213 * before bytes are swapped. 214 214 */ 215 shortp = (__uint 16_t *)bp->page;215 shortp = (__uint_least16_t *)bp->page; 216 216 if (shortp[0]) 217 217 oaddr = shortp[shortp[0] - 1]; 218 218 if ((bp->flags & BUF_MOD) && __put_page(hashp, bp->page, … … 255 255 (oaddr != xbp->addr)) 256 256 break; 257 257 258 shortp = (__uint 16_t *)xbp->page;258 shortp = (__uint_least16_t *)xbp->page; 259 259 if (shortp[0]) 260 260 /* set before __put_page */ 261 261 oaddr = shortp[shortp[0] - 1]; -
newlib/libc/search/hash.c
diff -uNr newlib-1.14.0/newlib/libc/search/hash.c newlib-1.14.0-rtems4.8-20061109/newlib/libc/search/hash.c
old new 628 628 { 629 629 BUFHEAD *rbufp; 630 630 BUFHEAD *bufp, *save_bufp; 631 __uint 16_t *bp;631 __uint_least16_t *bp; 632 632 int n, ndx, off, size; 633 633 char *kp; 634 __uint 16_t pageno;634 __uint_least16_t pageno; 635 635 636 636 #ifdef HASH_STATISTICS 637 637 hash_accesses++; … … 647 647 648 648 /* Pin the bucket chain */ 649 649 rbufp->flags |= BUF_PIN; 650 for (bp = (__uint 16_t *)rbufp->page, n = *bp++, ndx = 1; ndx < n;)650 for (bp = (__uint_least16_t *)rbufp->page, n = *bp++, ndx = 1; ndx < n;) 651 651 if (bp[1] >= REAL_KEY) { 652 652 /* Real key/data pair */ 653 653 if (size == off - *bp && … … 666 666 return (ERROR); 667 667 } 668 668 /* FOR LOOP INIT */ 669 bp = (__uint 16_t *)rbufp->page;669 bp = (__uint_least16_t *)rbufp->page; 670 670 n = *bp++; 671 671 ndx = 1; 672 672 off = hashp->BSIZE; … … 688 688 return (ERROR); 689 689 } 690 690 /* FOR LOOP INIT */ 691 bp = (__uint 16_t *)rbufp->page;691 bp = (__uint_least16_t *)rbufp->page; 692 692 n = *bp++; 693 693 ndx = 1; 694 694 off = hashp->BSIZE; … … 722 722 save_bufp->flags &= ~BUF_PIN; 723 723 return (ABNORMAL); 724 724 case HASH_GET: 725 bp = (__uint 16_t *)rbufp->page;725 bp = (__uint_least16_t *)rbufp->page; 726 726 if (bp[ndx + 1] < REAL_KEY) { 727 727 if (__big_return(hashp, rbufp, ndx, val, 0)) 728 728 return (ERROR); … … 758 758 __uint32_t bucket; 759 759 BUFHEAD *bufp; 760 760 HTAB *hashp; 761 __uint 16_t *bp, ndx;761 __uint_least16_t *bp, ndx; 762 762 763 763 hashp = (HTAB *)dbp->internal; 764 764 if (flag && flag != R_FIRST && flag != R_NEXT) { … … 783 783 if (!bufp) 784 784 return (ERROR); 785 785 hashp->cpage = bufp; 786 bp = (__uint 16_t *)bufp->page;786 bp = (__uint_least16_t *)bufp->page; 787 787 if (bp[0]) 788 788 break; 789 789 } … … 793 793 return (ABNORMAL); 794 794 } 795 795 } else 796 bp = (__uint 16_t *)hashp->cpage->page;796 bp = (__uint_least16_t *)hashp->cpage->page; 797 797 798 798 #ifdef DEBUG 799 799 assert(bp); … … 804 804 __get_buf(hashp, bp[hashp->cndx], bufp, 0); 805 805 if (!bufp) 806 806 return (ERROR); 807 bp = (__uint 16_t *)(bufp->page);807 bp = (__uint_least16_t *)(bufp->page); 808 808 hashp->cndx = 1; 809 809 } 810 810 if (!bp[0]) { -
newlib/libc/search/hash.h
diff -uNr newlib-1.14.0/newlib/libc/search/hash.h newlib-1.14.0-rtems4.8-20061109/newlib/libc/search/hash.h
old new 102 102 #define NCACHED 32 /* number of bit maps and spare 103 103 * points */ 104 104 int spares[NCACHED];/* spare pages for overflow */ 105 __uint 16_t bitmaps[NCACHED]; /* address of overflow page105 __uint_least16_t bitmaps[NCACHED]; /* address of overflow page 106 106 * bitmaps */ 107 107 } HASHHDR; 108 108 -
newlib/libc/search/hash_page.c
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
old new 77 77 static __uint32_t *fetch_bitmap(HTAB *, int); 78 78 static __uint32_t first_free(__uint32_t); 79 79 static int open_temp(HTAB *); 80 static __uint 16_t overflow_page(HTAB *);80 static __uint_least16_t overflow_page(HTAB *); 81 81 static void putpair(char *, const DBT *, const DBT *); 82 static void squeeze_key(__uint 16_t *, const DBT *, const DBT *);82 static void squeeze_key(__uint_least16_t *, const DBT *, const DBT *); 83 83 static int ugly_split 84 84 (HTAB *, __uint32_t, BUFHEAD *, BUFHEAD *, int, int); 85 85 86 86 #define PAGE_INIT(P) { \ 87 ((__uint 16_t *)(P))[0] = 0; \88 ((__uint 16_t *)(P))[1] = hashp->BSIZE - 3 * sizeof(__uint16_t); \89 ((__uint 16_t *)(P))[2] = hashp->BSIZE; \87 ((__uint_least16_t *)(P))[0] = 0; \ 88 ((__uint_least16_t *)(P))[1] = hashp->BSIZE - 3 * sizeof(__uint_least16_t); \ 89 ((__uint_least16_t *)(P))[2] = hashp->BSIZE; \ 90 90 } 91 91 92 92 /* … … 99 99 char *p; 100 100 const DBT *key, *val; 101 101 { 102 __uint 16_t *bp, n, off;102 __uint_least16_t *bp, n, off; 103 103 104 bp = (__uint 16_t *)p;104 bp = (__uint_least16_t *)p; 105 105 106 106 /* Enter the key first. */ 107 107 n = bp[0]; … … 117 117 118 118 /* Adjust page info. */ 119 119 bp[0] = n; 120 bp[n + 1] = off - ((n + 3) * sizeof(__uint 16_t));120 bp[n + 1] = off - ((n + 3) * sizeof(__uint_least16_t)); 121 121 bp[n + 2] = off; 122 122 } 123 123 … … 132 132 BUFHEAD *bufp; 133 133 int ndx; 134 134 { 135 __uint 16_t *bp, newoff;135 __uint_least16_t *bp, newoff; 136 136 int n; 137 __uint 16_t pairlen;137 __uint_least16_t pairlen; 138 138 139 bp = (__uint 16_t *)bufp->page;139 bp = (__uint_least16_t *)bufp->page; 140 140 n = bp[0]; 141 141 142 142 if (bp[ndx + 1] < REAL_KEY) … … 167 167 } 168 168 /* Finally adjust the page data */ 169 169 bp[n] = OFFSET(bp) + pairlen; 170 bp[n - 1] = bp[n + 1] + pairlen + 2 * sizeof(__uint 16_t);170 bp[n - 1] = bp[n + 1] + pairlen + 2 * sizeof(__uint_least16_t); 171 171 bp[0] = n - 2; 172 172 hashp->NKEYS--; 173 173 … … 185 185 __uint32_t obucket, nbucket; 186 186 { 187 187 BUFHEAD *new_bufp, *old_bufp; 188 __uint 16_t *ino;188 __uint_least16_t *ino; 189 189 char *np; 190 190 DBT key, val; 191 191 int n, ndx, retval; 192 __uint 16_t copyto, diff, off, moved;192 __uint_least16_t copyto, diff, off, moved; 193 193 char *op; 194 194 195 copyto = (__uint 16_t)hashp->BSIZE;196 off = (__uint 16_t)hashp->BSIZE;195 copyto = (__uint_least16_t)hashp->BSIZE; 196 off = (__uint_least16_t)hashp->BSIZE; 197 197 old_bufp = __get_buf(hashp, obucket, NULL, 0); 198 198 if (old_bufp == NULL) 199 199 return (-1); … … 204 204 old_bufp->flags |= (BUF_MOD | BUF_PIN); 205 205 new_bufp->flags |= (BUF_MOD | BUF_PIN); 206 206 207 ino = (__uint 16_t *)(op = old_bufp->page);207 ino = (__uint_least16_t *)(op = old_bufp->page); 208 208 np = new_bufp->page; 209 209 210 210 moved = 0; … … 246 246 247 247 /* Now clean up the page */ 248 248 ino[0] -= moved; 249 FREESPACE(ino) = copyto - sizeof(__uint 16_t) * (ino[0] + 3);249 FREESPACE(ino) = copyto - sizeof(__uint_least16_t) * (ino[0] + 3); 250 250 OFFSET(ino) = copyto; 251 251 252 252 #ifdef DEBUG3 253 253 (void)fprintf(stderr, "split %d/%d\n", 254 ((__uint 16_t *)np)[0] / 2,255 ((__uint 16_t *)op)[0] / 2);254 ((__uint_least16_t *)np)[0] / 2, 255 ((__uint_least16_t *)op)[0] / 2); 256 256 #endif 257 257 /* unpin both pages */ 258 258 old_bufp->flags &= ~BUF_PIN; … … 284 284 int moved; /* Number of pairs moved to new page. */ 285 285 { 286 286 BUFHEAD *bufp; /* Buffer header for ino */ 287 __uint 16_t *ino; /* Page keys come off of */288 __uint 16_t *np; /* New page */289 __uint 16_t *op; /* Page keys go on to if they aren't moving */287 __uint_least16_t *ino; /* Page keys come off of */ 288 __uint_least16_t *np; /* New page */ 289 __uint_least16_t *op; /* Page keys go on to if they aren't moving */ 290 290 291 291 BUFHEAD *last_bfp; /* Last buf header OVFL needing to be freed */ 292 292 DBT key, val; 293 293 SPLIT_RETURN ret; 294 __uint 16_t n, off, ov_addr, scopyto;294 __uint_least16_t n, off, ov_addr, scopyto; 295 295 char *cino; /* Character value of ino */ 296 296 297 297 bufp = old_bufp; 298 ino = (__uint 16_t *)old_bufp->page;299 np = (__uint 16_t *)new_bufp->page;300 op = (__uint 16_t *)old_bufp->page;298 ino = (__uint_least16_t *)old_bufp->page; 299 np = (__uint_least16_t *)new_bufp->page; 300 op = (__uint_least16_t *)old_bufp->page; 301 301 last_bfp = NULL; 302 scopyto = (__uint 16_t)copyto; /* ANSI */302 scopyto = (__uint_least16_t)copyto; /* ANSI */ 303 303 304 304 n = ino[0] - 1; 305 305 while (n < ino[0]) { … … 310 310 old_bufp = ret.oldp; 311 311 if (!old_bufp) 312 312 return (-1); 313 op = (__uint 16_t *)old_bufp->page;313 op = (__uint_least16_t *)old_bufp->page; 314 314 new_bufp = ret.newp; 315 315 if (!new_bufp) 316 316 return (-1); 317 np = (__uint 16_t *)new_bufp->page;317 np = (__uint_least16_t *)new_bufp->page; 318 318 bufp = ret.nextp; 319 319 if (!bufp) 320 320 return (0); 321 321 cino = (char *)bufp->page; 322 ino = (__uint 16_t *)cino;322 ino = (__uint_least16_t *)cino; 323 323 last_bfp = ret.nextp; 324 324 } else if (ino[n + 1] == OVFLPAGE) { 325 325 ov_addr = ino[n]; … … 329 329 */ 330 330 ino[0] -= (moved + 2); 331 331 FREESPACE(ino) = 332 scopyto - sizeof(__uint 16_t) * (ino[0] + 3);332 scopyto - sizeof(__uint_least16_t) * (ino[0] + 3); 333 333 OFFSET(ino) = scopyto; 334 334 335 335 bufp = __get_buf(hashp, ov_addr, bufp, 0); 336 336 if (!bufp) 337 337 return (-1); 338 338 339 ino = (__uint 16_t *)bufp->page;339 ino = (__uint_least16_t *)bufp->page; 340 340 n = 1; 341 341 scopyto = hashp->BSIZE; 342 342 moved = 0; … … 364 364 __add_ovflpage(hashp, old_bufp); 365 365 if (!old_bufp) 366 366 return (-1); 367 op = (__uint 16_t *)old_bufp->page;367 op = (__uint_least16_t *)old_bufp->page; 368 368 putpair((char *)op, &key, &val); 369 369 } 370 370 old_bufp->flags |= BUF_MOD; … … 377 377 __add_ovflpage(hashp, new_bufp); 378 378 if (!new_bufp) 379 379 return (-1); 380 np = (__uint 16_t *)new_bufp->page;380 np = (__uint_least16_t *)new_bufp->page; 381 381 putpair((char *)np, &key, &val); 382 382 } 383 383 new_bufp->flags |= BUF_MOD; … … 402 402 BUFHEAD *bufp; 403 403 const DBT *key, *val; 404 404 { 405 __uint 16_t *bp, *sop;405 __uint_least16_t *bp, *sop; 406 406 int do_expand; 407 407 408 bp = (__uint 16_t *)bufp->page;408 bp = (__uint_least16_t *)bufp->page; 409 409 do_expand = 0; 410 410 while (bp[0] && (bp[2] < REAL_KEY || bp[bp[0]] < REAL_KEY)) 411 411 /* Exception case */ … … 417 417 bufp = __get_buf(hashp, bp[bp[0] - 1], bufp, 0); 418 418 if (!bufp) 419 419 return (-1); 420 bp = (__uint 16_t *)bufp->page;420 bp = (__uint_least16_t *)bufp->page; 421 421 } else 422 422 /* Try to squeeze key on this page */ 423 423 if (FREESPACE(bp) > PAIRSIZE(key, val)) { … … 427 427 bufp = __get_buf(hashp, bp[bp[0] - 1], bufp, 0); 428 428 if (!bufp) 429 429 return (-1); 430 bp = (__uint 16_t *)bufp->page;430 bp = (__uint_least16_t *)bufp->page; 431 431 } 432 432 433 433 if (PAIRFITS(bp, key, val)) … … 437 437 bufp = __add_ovflpage(hashp, bufp); 438 438 if (!bufp) 439 439 return (-1); 440 sop = (__uint 16_t *)bufp->page;440 sop = (__uint_least16_t *)bufp->page; 441 441 442 442 if (PAIRFITS(sop, key, val)) 443 443 putpair((char *)sop, key, val); … … 468 468 HTAB *hashp; 469 469 BUFHEAD *bufp; 470 470 { 471 __uint 16_t *sp;472 __uint 16_t ndx, ovfl_num;471 __uint_least16_t *sp; 472 __uint_least16_t ndx, ovfl_num; 473 473 #ifdef DEBUG1 474 474 int tmp1, tmp2; 475 475 #endif 476 sp = (__uint 16_t *)bufp->page;476 sp = (__uint_least16_t *)bufp->page; 477 477 478 478 /* Check if we are dynamically determining the fill factor */ 479 479 if (hashp->FFACTOR == DEF_FFACTOR) { … … 525 525 { 526 526 int fd, page, size; 527 527 int rsize; 528 __uint 16_t *bp;528 __uint_least16_t *bp; 529 529 530 530 fd = hashp->fp; 531 531 size = hashp->BSIZE; … … 541 541 if ((lseek(fd, (off_t)page << hashp->BSHIFT, SEEK_SET) == -1) || 542 542 ((rsize = read(fd, p, size)) == -1)) 543 543 return (-1); 544 bp = (__uint 16_t *)p;544 bp = (__uint_least16_t *)p; 545 545 if (!rsize) 546 546 bp[0] = 0; /* We hit the EOF, so initialize a new page */ 547 547 else … … 600 600 for (i = 0; i < max; i++) 601 601 M_32_SWAP(((int *)p)[i]); 602 602 } else { 603 max = ((__uint 16_t *)p)[0] + 2;603 max = ((__uint_least16_t *)p)[0] + 2; 604 604 for (i = 0; i <= max; i++) 605 M_16_SWAP(((__uint 16_t *)p)[i]);605 M_16_SWAP(((__uint_least16_t *)p)[i]); 606 606 } 607 607 } 608 608 if (is_bucket) … … 643 643 hashp->BSIZE - clearbytes); 644 644 ip[clearints - 1] = ALL_SET << (nbits & BYTE_MASK); 645 645 SETBIT(ip, 0); 646 hashp->BITMAPS[ndx] = (__uint 16_t)pnum;646 hashp->BITMAPS[ndx] = (__uint_least16_t)pnum; 647 647 hashp->mapp[ndx] = ip; 648 648 return (0); 649 649 } … … 663 663 return (i); 664 664 } 665 665 666 static __uint 16_t666 static __uint_least16_t 667 667 overflow_page(hashp) 668 668 HTAB *hashp; 669 669 { 670 670 __uint32_t *freep; 671 671 int max_free, offset, splitnum; 672 __uint 16_t addr;672 __uint_least16_t addr; 673 673 int bit, first_page, free_bit, free_page, i, in_use_bits, j; 674 674 #ifdef DEBUG2 675 675 int tmp1, tmp2; … … 816 816 HTAB *hashp; 817 817 BUFHEAD *obufp; 818 818 { 819 __uint 16_t addr;819 __uint_least16_t addr; 820 820 __uint32_t *freep; 821 821 int bit_address, free_page, free_bit; 822 __uint 16_t ndx;822 __uint_least16_t ndx; 823 823 824 824 addr = obufp->addr; 825 825 #ifdef DEBUG1 826 826 (void)fprintf(stderr, "Freeing %d\n", addr); 827 827 #endif 828 ndx = (((__uint 16_t)addr) >> SPLITSHIFT);828 ndx = (((__uint_least16_t)addr) >> SPLITSHIFT); 829 829 bit_address = 830 830 (ndx ? hashp->SPARES[ndx - 1] : 0) + (addr & SPLITMASK) - 1; 831 831 if (bit_address < hashp->LAST_FREED) … … 883 883 */ 884 884 static void 885 885 squeeze_key(sp, key, val) 886 __uint 16_t *sp;886 __uint_least16_t *sp; 887 887 const DBT *key, *val; 888 888 { 889 889 char *p; 890 __uint 16_t free_space, n, off, pageno;890 __uint_least16_t free_space, n, off, pageno; 891 891 892 892 p = (char *)sp; 893 893 n = sp[0]; -
newlib/libc/search/page.h
diff -uNr newlib-1.14.0/newlib/libc/search/page.h newlib-1.14.0-rtems4.8-20061109/newlib/libc/search/page.h
old new 74 74 * You might as well do this up front. 75 75 */ 76 76 77 #define PAIRSIZE(K,D) (2*sizeof(__uint 16_t) + (K)->size + (D)->size)78 #define BIGOVERHEAD (4*sizeof(__uint 16_t))79 #define KEYSIZE(K) (4*sizeof(__uint 16_t) + (K)->size);80 #define OVFLSIZE (2*sizeof(__uint 16_t))77 #define PAIRSIZE(K,D) (2*sizeof(__uint_least16_t) + (K)->size + (D)->size) 78 #define BIGOVERHEAD (4*sizeof(__uint_least16_t)) 79 #define KEYSIZE(K) (4*sizeof(__uint_least16_t) + (K)->size); 80 #define OVFLSIZE (2*sizeof(__uint_least16_t)) 81 81 #define FREESPACE(P) ((P)[(P)[0]+1]) 82 82 #define OFFSET(P) ((P)[(P)[0]+2]) 83 83 #define PAIRFITS(P,K,D) \ 84 84 (((P)[2] >= REAL_KEY) && \ 85 85 (PAIRSIZE((K),(D)) + OVFLSIZE) <= FREESPACE((P))) 86 #define PAGE_META(N) (((N)+3) * sizeof(__uint 16_t))86 #define PAGE_META(N) (((N)+3) * sizeof(__uint_least16_t)) 87 87 88 88 typedef struct { 89 89 BUFHEAD *newp; 90 90 BUFHEAD *oldp; 91 91 BUFHEAD *nextp; 92 __uint 16_t next_addr;92 __uint_least16_t next_addr; 93 93 } SPLIT_RETURN; -
newlib/libc/sys/rtems/machine/param.h
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
old new 34 34 #define DEV_BSHIFT 9 /* log2(DEV_BSIZE) */ 35 35 #define DEV_BSIZE (1<<DEV_BSHIFT) 36 36 37 #if defined(__AVR__) || defined(__h8300__) 38 #define BLKDEV_IOSIZE 1024 39 #define MAXPHYS (1 * 1024) /* max raw I/O transfer size */ 40 #else 37 41 #define BLKDEV_IOSIZE 2048 38 42 #define MAXPHYS (64 * 1024) /* max raw I/O transfer size */ 43 #endif 39 44 40 45 #define UPAGES 2 /* pages of u-area */ 41 46
Note: See TracBrowser
for help on using the repository browser.