7/30 release from Andrew
[deliverable/binutils-gdb.git] / sim / ppc / configure
1 #! /bin/sh
2
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.10
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-sim-cflags=opts Extra CFLAGS for use in building simulator"
16 ac_help="$ac_help
17 --enable-sim-warnings=opts Extra CFLAGS for turning on compiler warnings except for idecode.o, semantics.o and psim.o"
18 ac_help="$ac_help
19 --enable-sim-line-nr=opts Generate extra CPP code that references source rather than generated code"
20 ac_help="$ac_help
21 --enable-sim-config=file Override default config file"
22 ac_help="$ac_help
23 --enable-sim-opcode=which Override default opcode lookup."
24 ac_help="$ac_help
25 --enable-sim-switch Use a switch instead of a table for instruction call."
26 ac_help="$ac_help
27 --enable-sim-duplicate Expand (duplicate) semantic functions."
28 ac_help="$ac_help
29 --enable-sim-jump Jump between semantic code (instead of call/return)."
30 ac_help="$ac_help
31 --enable-sim-filter=rule Specify filter rules."
32 ac_help="$ac_help
33 --enable-sim-icache=size Specify instruction cache size."
34 ac_help="$ac_help
35 --enable-sim-hardware=list Specify the hardware to be included in the build."
36 ac_help="$ac_help
37 --enable-sim-packages=list Specify the packages to be included in the build."
38 ac_help="$ac_help
39 --enable-sim-inline=inlines Specify which functions should be inlined."
40 ac_help="$ac_help
41 --enable-sim-bswap Use the BSWAP instruction on Intel 486s and Pentiums."
42 ac_help="$ac_help
43 --enable-sim-endian=endian Specify target byte endian orientation."
44 ac_help="$ac_help
45 --enable-sim-regparm=nr-parm Pass parameters in registers instead of on the stack - x86/GCC specific."
46 ac_help="$ac_help
47 --enable-sim-stdcall=type Use an alternative function call/return mechanism - x86/GCC specific."
48 ac_help="$ac_help
49 --enable-sim-hostendain=end Specify host byte endian orientation."
50 ac_help="$ac_help
51 --enable-sim-smp=n Specify number of processors to configure for."
52 ac_help="$ac_help
53 --enable-sim-xor-endian=n Specify number bytes involved in PowerPC XOR bi-endian mode (default 8)."
54 ac_help="$ac_help
55 --enable-sim-bitsize=n Specify target bitsize (32 or 64)."
56 ac_help="$ac_help
57 --enable-sim-hostbitsize=32|64 Specify host bitsize (32 or 64)."
58 ac_help="$ac_help
59 --enable-sim-env=env Specify target environment (operating, virtual, user)."
60 ac_help="$ac_help
61 --enable-sim-timebase Specify whether the PPC timebase is supported."
62 ac_help="$ac_help
63 --enable-sim-alignment=align Specify strict or nonstrict alignment."
64 ac_help="$ac_help
65 --enable-sim-trace Specify whether tracing is supported."
66 ac_help="$ac_help
67 --enable-sim-assert Specify whether to perform random assertions."
68 ac_help="$ac_help
69 --enable-sim-reserved-bits Specify whether to check reserved bits in instruction."
70 ac_help="$ac_help
71 --enable-sim-float Specify whether to use host floating point or simulate."
72 ac_help="$ac_help
73 --enable-sim-monitor=mon Specify whether to enable monitoring events."
74 ac_help="$ac_help
75 --enable-sim-model=which Specify PowerPC to model."
76 ac_help="$ac_help
77 --enable-sim-default-model=which Specify default PowerPC to model."
78 ac_help="$ac_help
79 --enable-sim-model-issue Specify whether to simulate model specific actions"
80 ac_help="$ac_help
81 --enable-sim-stdio Specify whether to use stdio for console input/output."
82
83 # Initialize some variables set by options.
84 # The variables have the same names as the options, with
85 # dashes changed to underlines.
86 build=NONE
87 cache_file=./config.cache
88 exec_prefix=NONE
89 host=NONE
90 no_create=
91 nonopt=NONE
92 no_recursion=
93 prefix=NONE
94 program_prefix=NONE
95 program_suffix=NONE
96 program_transform_name=s,x,x,
97 silent=
98 site=
99 srcdir=
100 target=NONE
101 verbose=
102 x_includes=NONE
103 x_libraries=NONE
104 bindir='${exec_prefix}/bin'
105 sbindir='${exec_prefix}/sbin'
106 libexecdir='${exec_prefix}/libexec'
107 datadir='${prefix}/share'
108 sysconfdir='${prefix}/etc'
109 sharedstatedir='${prefix}/com'
110 localstatedir='${prefix}/var'
111 libdir='${exec_prefix}/lib'
112 includedir='${prefix}/include'
113 oldincludedir='/usr/include'
114 infodir='${prefix}/info'
115 mandir='${prefix}/man'
116
117 # Initialize some other variables.
118 subdirs=
119 MFLAGS= MAKEFLAGS=
120
121 ac_prev=
122 for ac_option
123 do
124
125 # If the previous option needs an argument, assign it.
126 if test -n "$ac_prev"; then
127 eval "$ac_prev=\$ac_option"
128 ac_prev=
129 continue
130 fi
131
132 case "$ac_option" in
133 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
134 *) ac_optarg= ;;
135 esac
136
137 # Accept the important Cygnus configure options, so we can diagnose typos.
138
139 case "$ac_option" in
140
141 -bindir | --bindir | --bindi | --bind | --bin | --bi)
142 ac_prev=bindir ;;
143 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
144 bindir="$ac_optarg" ;;
145
146 -build | --build | --buil | --bui | --bu)
147 ac_prev=build ;;
148 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
149 build="$ac_optarg" ;;
150
151 -cache-file | --cache-file | --cache-fil | --cache-fi \
152 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
153 ac_prev=cache_file ;;
154 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
155 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
156 cache_file="$ac_optarg" ;;
157
158 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
159 ac_prev=datadir ;;
160 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
161 | --da=*)
162 datadir="$ac_optarg" ;;
163
164 -disable-* | --disable-*)
165 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
166 # Reject names that are not valid shell variable names.
167 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
168 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
169 fi
170 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
171 eval "enable_${ac_feature}=no" ;;
172
173 -enable-* | --enable-*)
174 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
175 # Reject names that are not valid shell variable names.
176 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
177 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
178 fi
179 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
180 case "$ac_option" in
181 *=*) ;;
182 *) ac_optarg=yes ;;
183 esac
184 eval "enable_${ac_feature}='$ac_optarg'" ;;
185
186 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
187 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
188 | --exec | --exe | --ex)
189 ac_prev=exec_prefix ;;
190 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
191 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
192 | --exec=* | --exe=* | --ex=*)
193 exec_prefix="$ac_optarg" ;;
194
195 -gas | --gas | --ga | --g)
196 # Obsolete; use --with-gas.
197 with_gas=yes ;;
198
199 -help | --help | --hel | --he)
200 # Omit some internal or obsolete options to make the list less imposing.
201 # This message is too long to be a string in the A/UX 3.1 sh.
202 cat << EOF
203 Usage: configure [options] [host]
204 Options: [defaults in brackets after descriptions]
205 Configuration:
206 --cache-file=FILE cache test results in FILE
207 --help print this message
208 --no-create do not create output files
209 --quiet, --silent do not print \`checking...' messages
210 --version print the version of autoconf that created configure
211 Directory and file names:
212 --prefix=PREFIX install architecture-independent files in PREFIX
213 [$ac_default_prefix]
214 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
215 [same as prefix]
216 --bindir=DIR user executables in DIR [EPREFIX/bin]
217 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
218 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
219 --datadir=DIR read-only architecture-independent data in DIR
220 [PREFIX/share]
221 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
222 --sharedstatedir=DIR modifiable architecture-independent data in DIR
223 [PREFIX/com]
224 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
225 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
226 --includedir=DIR C header files in DIR [PREFIX/include]
227 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
228 --infodir=DIR info documentation in DIR [PREFIX/info]
229 --mandir=DIR man documentation in DIR [PREFIX/man]
230 --srcdir=DIR find the sources in DIR [configure dir or ..]
231 --program-prefix=PREFIX prepend PREFIX to installed program names
232 --program-suffix=SUFFIX append SUFFIX to installed program names
233 --program-transform-name=PROGRAM
234 run sed PROGRAM on installed program names
235 EOF
236 cat << EOF
237 Host type:
238 --build=BUILD configure for building on BUILD [BUILD=HOST]
239 --host=HOST configure for HOST [guessed]
240 --target=TARGET configure for TARGET [TARGET=HOST]
241 Features and packages:
242 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
243 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
244 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
245 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
246 --x-includes=DIR X include files are in DIR
247 --x-libraries=DIR X library files are in DIR
248 EOF
249 if test -n "$ac_help"; then
250 echo "--enable and --with options recognized:$ac_help"
251 fi
252 exit 0 ;;
253
254 -host | --host | --hos | --ho)
255 ac_prev=host ;;
256 -host=* | --host=* | --hos=* | --ho=*)
257 host="$ac_optarg" ;;
258
259 -includedir | --includedir | --includedi | --included | --include \
260 | --includ | --inclu | --incl | --inc)
261 ac_prev=includedir ;;
262 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
263 | --includ=* | --inclu=* | --incl=* | --inc=*)
264 includedir="$ac_optarg" ;;
265
266 -infodir | --infodir | --infodi | --infod | --info | --inf)
267 ac_prev=infodir ;;
268 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
269 infodir="$ac_optarg" ;;
270
271 -libdir | --libdir | --libdi | --libd)
272 ac_prev=libdir ;;
273 -libdir=* | --libdir=* | --libdi=* | --libd=*)
274 libdir="$ac_optarg" ;;
275
276 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
277 | --libexe | --libex | --libe)
278 ac_prev=libexecdir ;;
279 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
280 | --libexe=* | --libex=* | --libe=*)
281 libexecdir="$ac_optarg" ;;
282
283 -localstatedir | --localstatedir | --localstatedi | --localstated \
284 | --localstate | --localstat | --localsta | --localst \
285 | --locals | --local | --loca | --loc | --lo)
286 ac_prev=localstatedir ;;
287 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
288 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
289 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
290 localstatedir="$ac_optarg" ;;
291
292 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
293 ac_prev=mandir ;;
294 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
295 mandir="$ac_optarg" ;;
296
297 -nfp | --nfp | --nf)
298 # Obsolete; use --without-fp.
299 with_fp=no ;;
300
301 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
302 | --no-cr | --no-c)
303 no_create=yes ;;
304
305 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
306 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
307 no_recursion=yes ;;
308
309 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
310 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
311 | --oldin | --oldi | --old | --ol | --o)
312 ac_prev=oldincludedir ;;
313 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
314 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
315 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
316 oldincludedir="$ac_optarg" ;;
317
318 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
319 ac_prev=prefix ;;
320 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
321 prefix="$ac_optarg" ;;
322
323 -program-prefix | --program-prefix | --program-prefi | --program-pref \
324 | --program-pre | --program-pr | --program-p)
325 ac_prev=program_prefix ;;
326 -program-prefix=* | --program-prefix=* | --program-prefi=* \
327 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
328 program_prefix="$ac_optarg" ;;
329
330 -program-suffix | --program-suffix | --program-suffi | --program-suff \
331 | --program-suf | --program-su | --program-s)
332 ac_prev=program_suffix ;;
333 -program-suffix=* | --program-suffix=* | --program-suffi=* \
334 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
335 program_suffix="$ac_optarg" ;;
336
337 -program-transform-name | --program-transform-name \
338 | --program-transform-nam | --program-transform-na \
339 | --program-transform-n | --program-transform- \
340 | --program-transform | --program-transfor \
341 | --program-transfo | --program-transf \
342 | --program-trans | --program-tran \
343 | --progr-tra | --program-tr | --program-t)
344 ac_prev=program_transform_name ;;
345 -program-transform-name=* | --program-transform-name=* \
346 | --program-transform-nam=* | --program-transform-na=* \
347 | --program-transform-n=* | --program-transform-=* \
348 | --program-transform=* | --program-transfor=* \
349 | --program-transfo=* | --program-transf=* \
350 | --program-trans=* | --program-tran=* \
351 | --progr-tra=* | --program-tr=* | --program-t=*)
352 program_transform_name="$ac_optarg" ;;
353
354 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
355 | -silent | --silent | --silen | --sile | --sil)
356 silent=yes ;;
357
358 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
359 ac_prev=sbindir ;;
360 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
361 | --sbi=* | --sb=*)
362 sbindir="$ac_optarg" ;;
363
364 -sharedstatedir | --sharedstatedir | --sharedstatedi \
365 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
366 | --sharedst | --shareds | --shared | --share | --shar \
367 | --sha | --sh)
368 ac_prev=sharedstatedir ;;
369 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
370 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
371 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
372 | --sha=* | --sh=*)
373 sharedstatedir="$ac_optarg" ;;
374
375 -site | --site | --sit)
376 ac_prev=site ;;
377 -site=* | --site=* | --sit=*)
378 site="$ac_optarg" ;;
379
380 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
381 ac_prev=srcdir ;;
382 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
383 srcdir="$ac_optarg" ;;
384
385 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
386 | --syscon | --sysco | --sysc | --sys | --sy)
387 ac_prev=sysconfdir ;;
388 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
389 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
390 sysconfdir="$ac_optarg" ;;
391
392 -target | --target | --targe | --targ | --tar | --ta | --t)
393 ac_prev=target ;;
394 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
395 target="$ac_optarg" ;;
396
397 -v | -verbose | --verbose | --verbos | --verbo | --verb)
398 verbose=yes ;;
399
400 -version | --version | --versio | --versi | --vers)
401 echo "configure generated by autoconf version 2.10"
402 exit 0 ;;
403
404 -with-* | --with-*)
405 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
406 # Reject names that are not valid shell variable names.
407 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
408 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
409 fi
410 ac_package=`echo $ac_package| sed 's/-/_/g'`
411 case "$ac_option" in
412 *=*) ;;
413 *) ac_optarg=yes ;;
414 esac
415 eval "with_${ac_package}='$ac_optarg'" ;;
416
417 -without-* | --without-*)
418 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
419 # Reject names that are not valid shell variable names.
420 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
421 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
422 fi
423 ac_package=`echo $ac_package| sed 's/-/_/g'`
424 eval "with_${ac_package}=no" ;;
425
426 --x)
427 # Obsolete; use --with-x.
428 with_x=yes ;;
429
430 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
431 | --x-incl | --x-inc | --x-in | --x-i)
432 ac_prev=x_includes ;;
433 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
434 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
435 x_includes="$ac_optarg" ;;
436
437 -x-libraries | --x-libraries | --x-librarie | --x-librari \
438 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
439 ac_prev=x_libraries ;;
440 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
441 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
442 x_libraries="$ac_optarg" ;;
443
444 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
445 ;;
446
447 *)
448 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
449 echo "configure: warning: $ac_option: invalid host type" 1>&2
450 fi
451 if test "x$nonopt" != xNONE; then
452 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
453 fi
454 nonopt="$ac_option"
455 ;;
456
457 esac
458 done
459
460 if test -n "$ac_prev"; then
461 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
462 fi
463
464 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
465
466 # File descriptor usage:
467 # 0 standard input
468 # 1 file creation
469 # 2 errors and warnings
470 # 3 some systems may open it to /dev/tty
471 # 4 used on the Kubota Titan
472 # 6 checking for... messages and results
473 # 5 compiler messages saved in config.log
474 if test "$silent" = yes; then
475 exec 6>/dev/null
476 else
477 exec 6>&1
478 fi
479 exec 5>./config.log
480
481 echo "\
482 This file contains any messages produced by compilers while
483 running configure, to aid debugging if configure makes a mistake.
484 " 1>&5
485
486 # Strip out --no-create and --no-recursion so they do not pile up.
487 # Also quote any args containing shell metacharacters.
488 ac_configure_args=
489 for ac_arg
490 do
491 case "$ac_arg" in
492 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
493 | --no-cr | --no-c) ;;
494 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
495 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
496 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
497 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
498 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
499 esac
500 done
501
502 # NLS nuisances.
503 # Only set LANG and LC_ALL to C if already set.
504 # These must not be set unconditionally because not all systems understand
505 # e.g. LANG=C (notably SCO).
506 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
507 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
508
509 # confdefs.h avoids OS command line length limits that DEFS can exceed.
510 rm -rf conftest* confdefs.h
511 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
512 echo > confdefs.h
513
514 # A filename unique to this package, relative to the directory that
515 # configure is in, which we can look for to find out if srcdir is correct.
516 ac_unique_file=Makefile.in
517
518 # Find the source files, if location was not specified.
519 if test -z "$srcdir"; then
520 ac_srcdir_defaulted=yes
521 # Try the directory containing this script, then its parent.
522 ac_prog=$0
523 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
524 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
525 srcdir=$ac_confdir
526 if test ! -r $srcdir/$ac_unique_file; then
527 srcdir=..
528 fi
529 else
530 ac_srcdir_defaulted=no
531 fi
532 if test ! -r $srcdir/$ac_unique_file; then
533 if test "$ac_srcdir_defaulted" = yes; then
534 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
535 else
536 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
537 fi
538 fi
539 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
540
541 # Prefer explicitly selected file to automatically selected ones.
542 if test -z "$CONFIG_SITE"; then
543 if test "x$prefix" != xNONE; then
544 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
545 else
546 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
547 fi
548 fi
549 for ac_site_file in $CONFIG_SITE; do
550 if test -r "$ac_site_file"; then
551 echo "loading site script $ac_site_file"
552 . "$ac_site_file"
553 fi
554 done
555
556 if test -r "$cache_file"; then
557 echo "loading cache $cache_file"
558 . $cache_file
559 else
560 echo "creating cache $cache_file"
561 > $cache_file
562 fi
563
564 ac_ext=c
565 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
566 ac_cpp='$CPP $CPPFLAGS'
567 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
568 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
569
570 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
571 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
572 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
573 ac_n= ac_c='
574 ' ac_t=' '
575 else
576 ac_n=-n ac_c= ac_t=
577 fi
578 else
579 ac_n= ac_c='\c' ac_t=
580 fi
581
582
583
584 ac_aux_dir=
585 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
586 if test -f $ac_dir/install-sh; then
587 ac_aux_dir=$ac_dir
588 ac_install_sh="$ac_aux_dir/install-sh -c"
589 break
590 elif test -f $ac_dir/install.sh; then
591 ac_aux_dir=$ac_dir
592 ac_install_sh="$ac_aux_dir/install.sh -c"
593 break
594 fi
595 done
596 if test -z "$ac_aux_dir"; then
597 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
598 fi
599 ac_config_guess=$ac_aux_dir/config.guess
600 ac_config_sub=$ac_aux_dir/config.sub
601 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
602
603 # Find a good install program. We prefer a C program (faster),
604 # so one script is as good as another. But avoid the broken or
605 # incompatible versions:
606 # SysV /etc/install, /usr/sbin/install
607 # SunOS /usr/etc/install
608 # IRIX /sbin/install
609 # AIX /bin/install
610 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
611 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
612 # ./install, which can be erroneously created by make from ./install.sh.
613 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
614 if test -z "$INSTALL"; then
615 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
616 echo $ac_n "(cached) $ac_c" 1>&6
617 else
618 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
619 for ac_dir in $PATH; do
620 # Account for people who put trailing slashes in PATH elements.
621 case "$ac_dir/" in
622 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
623 *)
624 # OSF1 and SCO ODT 3.0 have their own names for install.
625 for ac_prog in ginstall installbsd scoinst install; do
626 if test -f $ac_dir/$ac_prog; then
627 if test $ac_prog = install &&
628 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
629 # AIX install. It has an incompatible calling convention.
630 # OSF/1 installbsd also uses dspmsg, but is usable.
631 :
632 else
633 ac_cv_path_install="$ac_dir/$ac_prog -c"
634 break 2
635 fi
636 fi
637 done
638 ;;
639 esac
640 done
641 IFS="$ac_save_ifs"
642
643 fi
644 if test "${ac_cv_path_install+set}" = set; then
645 INSTALL="$ac_cv_path_install"
646 else
647 # As a last resort, use the slow shell script. We don't cache a
648 # path for INSTALL within a source directory, because that will
649 # break other packages using the cache if that directory is
650 # removed, or if the path is relative.
651 INSTALL="$ac_install_sh"
652 fi
653 fi
654 echo "$ac_t""$INSTALL" 1>&6
655
656 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
657 # It thinks the first close brace ends the variable substitution.
658 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
659
660 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
661
662 # Extract the first word of "gcc", so it can be a program name with args.
663 set dummy gcc; ac_word=$2
664 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
665 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
666 echo $ac_n "(cached) $ac_c" 1>&6
667 else
668 if test -n "$CC"; then
669 ac_cv_prog_CC="$CC" # Let the user override the test.
670 else
671 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
672 for ac_dir in $PATH; do
673 test -z "$ac_dir" && ac_dir=.
674 if test -f $ac_dir/$ac_word; then
675 ac_cv_prog_CC="gcc"
676 break
677 fi
678 done
679 IFS="$ac_save_ifs"
680 fi
681 fi
682 CC="$ac_cv_prog_CC"
683 if test -n "$CC"; then
684 echo "$ac_t""$CC" 1>&6
685 else
686 echo "$ac_t""no" 1>&6
687 fi
688
689 if test -z "$CC"; then
690 # Extract the first word of "cc", so it can be a program name with args.
691 set dummy cc; ac_word=$2
692 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
693 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
694 echo $ac_n "(cached) $ac_c" 1>&6
695 else
696 if test -n "$CC"; then
697 ac_cv_prog_CC="$CC" # Let the user override the test.
698 else
699 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
700 ac_prog_rejected=no
701 for ac_dir in $PATH; do
702 test -z "$ac_dir" && ac_dir=.
703 if test -f $ac_dir/$ac_word; then
704 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
705 ac_prog_rejected=yes
706 continue
707 fi
708 ac_cv_prog_CC="cc"
709 break
710 fi
711 done
712 IFS="$ac_save_ifs"
713 if test $ac_prog_rejected = yes; then
714 # We found a bogon in the path, so make sure we never use it.
715 set dummy $ac_cv_prog_CC
716 shift
717 if test $# -gt 0; then
718 # We chose a different compiler from the bogus one.
719 # However, it has the same basename, so the bogon will be chosen
720 # first if we set CC to just the basename; use the full file name.
721 shift
722 set dummy "$ac_dir/$ac_word" "$@"
723 shift
724 ac_cv_prog_CC="$@"
725 fi
726 fi
727 fi
728 fi
729 CC="$ac_cv_prog_CC"
730 if test -n "$CC"; then
731 echo "$ac_t""$CC" 1>&6
732 else
733 echo "$ac_t""no" 1>&6
734 fi
735
736 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
737 fi
738
739 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
740 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
741 echo $ac_n "(cached) $ac_c" 1>&6
742 else
743 cat > conftest.c <<EOF
744 #ifdef __GNUC__
745 yes;
746 #endif
747 EOF
748 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:749: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
749 ac_cv_prog_gcc=yes
750 else
751 ac_cv_prog_gcc=no
752 fi
753 fi
754
755 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
756 if test $ac_cv_prog_gcc = yes; then
757 GCC=yes
758 if test "${CFLAGS+set}" != set; then
759 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
760 if eval "test \"`echo '$''{'ac_cv_prog_gcc_g'+set}'`\" = set"; then
761 echo $ac_n "(cached) $ac_c" 1>&6
762 else
763 echo 'void f(){}' > conftest.c
764 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
765 ac_cv_prog_gcc_g=yes
766 else
767 ac_cv_prog_gcc_g=no
768 fi
769 rm -f conftest*
770
771 fi
772
773 echo "$ac_t""$ac_cv_prog_gcc_g" 1>&6
774 if test $ac_cv_prog_gcc_g = yes; then
775 CFLAGS="-g -O"
776 else
777 CFLAGS="-O"
778 fi
779 fi
780 else
781 GCC=
782 test "${CFLAGS+set}" = set || CFLAGS="-g"
783 fi
784
785
786 # Put a plausible default for CC_FOR_BUILD in Makefile.
787 # If we cannot run a trivial program, we must be cross compiling.
788 echo $ac_n "checking whether cross-compiling""... $ac_c" 1>&6
789 if eval "test \"`echo '$''{'ac_cv_c_cross'+set}'`\" = set"; then
790 echo $ac_n "(cached) $ac_c" 1>&6
791 else
792 if test "$cross_compiling" = yes; then
793 ac_cv_c_cross=yes
794 else
795 cat > conftest.$ac_ext <<EOF
796 #line 797 "configure"
797 #include "confdefs.h"
798 main(){return(0);}
799 EOF
800 { (eval echo configure:801: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
801 if test -s conftest && (./conftest; exit) 2>/dev/null; then
802 ac_cv_c_cross=no
803 else
804 ac_cv_c_cross=yes
805 fi
806 fi
807 rm -fr conftest*
808 fi
809
810 echo "$ac_t""$ac_cv_c_cross" 1>&6
811 cross_compiling=$ac_cv_c_cross
812
813 if test "x$cross_compiling" = "xno"; then
814 CC_FOR_BUILD='$(CC)'
815 else
816 CC_FOR_BUILD=gcc
817 fi
818
819 # Check whether --enable-sim-cflags or --disable-sim-cflags was given.
820 if test "${enable_sim_cflags+set}" = set; then
821 enableval="$enable_sim_cflags"
822 case "${enableval}" in
823 yes) sim_cflags="-O2 -fomit-frame-pointer";;
824 no) sim_cflags="";;
825 *) sim_cflags=`echo "${enableval}" | sed -e "s/,/ /g"`;;
826 esac
827 if test x"$silent" != x"yes" && test x"$sim_cflags" != x""; then
828 echo "Setting sim cflags = $sim_cflags" 6>&1
829 fi
830 else
831 sim_cflags=""
832 fi
833
834 # Check whether --enable-sim-warnings or --disable-sim-warnings was given.
835 if test "${enable_sim_warnings+set}" = set; then
836 enableval="$enable_sim_warnings"
837 case "${enableval}" in
838 yes) sim_warnings="-Werror -Wall -Wpointer-arith -Wmissing-prototypes";;
839 no) sim_warnings="-w";;
840 *) sim_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
841 esac
842 if test x"$silent" != x"yes" && test x"$sim_warnings" != x""; then
843 echo "Setting warning flags = $sim_warnings" 6>&1
844 fi
845 else
846 sim_warnings=""
847 fi
848
849 # Check whether --enable-sim-line-nr or --disable-sim-line-nr was given.
850 if test "${enable_sim_line_nr+set}" = set; then
851 enableval="$enable_sim_line_nr"
852 case "${enableval}" in
853 yes) sim_line_nr="";;
854 no) sim_line_nr="-L";;
855 *) { echo "configure: error: "--enable-sim-line-nr does not take a value"" 1>&2; exit 1; }; sim_line_nr="";;
856 esac
857 if test x"$silent" != x"yes" && test x"$sim_line_nr" != x""; then
858 echo "Setting warning flags = $sim_line_nr" 6>&1
859 fi
860 else
861 sim_line_nr=""
862 fi
863
864 # Check whether --enable-sim-config or --disable-sim-config was given.
865 if test "${enable_sim_config+set}" = set; then
866 enableval="$enable_sim_config"
867 case "${enableval}" in
868 yes|no) { echo "configure: error: "No value supplied for --enable-sim-config=file"" 1>&2; exit 1; };;
869 *) if test -f "${srcdir}/${enableval}"; then
870 sim_config="${enableval}";
871 elif test -f "${srcdir}/${enableval}-config.h"; then
872 sim_config="${enableval}-config.h"
873 else
874 { echo "configure: error: "Config file $enableval was not found"" 1>&2; exit 1; };
875 sim_config=std-config.h
876 fi;;
877 esac
878 if test x"$silent" != x"yes" && test x"$sim_config" != x""; then
879 echo "Setting config flags = $sim_config" 6>&1
880 fi
881 else
882 sim_config="std-config.h"
883 if test x"$silent" != x"yes"; then
884 echo "Setting config flags = $sim_config" 6>&1
885 fi
886 fi
887
888 # Check whether --enable-sim-opcode or --disable-sim-opcode was given.
889 if test "${enable_sim_opcode+set}" = set; then
890 enableval="$enable_sim_opcode"
891 case "${enableval}" in
892 yes|no) { echo "configure: error: "No value supplied for --enable-sim-opcode=file"" 1>&2; exit 1; };;
893 *) if test -f "${srcdir}/${enableval}"; then
894 sim_opcode="${enableval}"
895 elif test -f "${srcdir}/ppc-opcode-${enableval}"; then
896 sim_opcode="ppc-opcode-${enableval}"
897 else
898 { echo "configure: error: "File $enableval is not an opcode rules file"" 1>&2; exit 1; };
899 sim_opcode="ppc-opcode-complex"
900 fi;;
901 esac
902 if test x"$silent" != x"yes" && test x"$sim_opcode" != x""; then
903 echo "Setting opcode flags = $sim_opcode" 6>&1
904 fi
905 else
906 sim_opcode="ppc-opcode-complex"
907 if test x"$silent" != x"yes"; then
908 echo "Setting opcode flags = $sim_opcode"
909 fi
910 fi
911
912 # Check whether --enable-sim-switch or --disable-sim-switch was given.
913 if test "${enable_sim_switch+set}" = set; then
914 enableval="$enable_sim_switch"
915 case "${enableval}" in
916 yes) sim_switch="-s";;
917 no) sim_switch="";;
918 *) { echo "configure: error: "--enable-sim-switch does not take a value"" 1>&2; exit 1; }; sim_switch="";;
919 esac
920 if test x"$silent" != x"yes" && test x"$sim_switch" != x""; then
921 echo "Setting switch flags = $sim_switch" 6>&1
922 fi
923 else
924 sim_switch="";
925 if test x"$silent" != x"yes"; then
926 echo "Setting switch flags = $sim_switch" 6>&1
927 fi
928 fi
929
930 # Check whether --enable-sim-duplicate or --disable-sim-duplicate was given.
931 if test "${enable_sim_duplicate+set}" = set; then
932 enableval="$enable_sim_duplicate"
933 case "${enableval}" in
934 yes) sim_dup="-E";;
935 no) sim_dup="";;
936 *) { echo "configure: error: "--enable-sim-duplicate does not take a value"" 1>&2; exit 1; }; sim_dup="";;
937 esac
938 if test x"$silent" != x"yes" && test x"$sim_dup" != x""; then
939 echo "Setting duplicate flags = $sim_dup" 6>&1
940 fi
941 else
942 sim_dup="-E"
943 if test x"$silent" != x"yes"; then
944 echo "Setting duplicate flags = $sim_dup" 6>&1
945 fi
946 fi
947
948 # Check whether --enable-sim-jump or --disable-sim-jump was given.
949 if test "${enable_sim_jump+set}" = set; then
950 enableval="$enable_sim_jump"
951 case "${enableval}" in
952 yes) sim_jump="-J";;
953 no) sim_jump="";;
954 *) { echo "configure: error: "--enable-sim-jump does not take a value"" 1>&2; exit 1; }; sim_jump="";;
955 esac
956 if test x"$silent" != x"yes" && test x"$sim_jump" != x""; then
957 echo "Setting jump flag = $sim_jump" 6>&1
958 fi
959 else
960 sim_jump="-E"
961 if test x"$silent" != x"yes"; then
962 echo "Setting jump flag = $sim_jump" 6>&1
963 fi
964 fi
965
966 # Check whether --enable-sim-filter or --disable-sim-filter was given.
967 if test "${enable_sim_filter+set}" = set; then
968 enableval="$enable_sim_filter"
969 case "${enableval}" in
970 yes) { echo "configure: error: "--enable-sim-filter must be specified with a rule to filter or no"" 1>&2; exit 1; }; sim_filter="";;
971 no) sim_filter="";;
972 *) sim_filter="-F $enableval";;
973 esac
974 if test x"$silent" != x"yes" && test x"$sim_filter" != x""; then
975 echo "Setting filter flags = $sim_filter" 6>&1
976 fi
977 else
978 sim_filter="-F 32,f"
979 if test x"$silent" != x"yes"; then
980 echo "Setting filter flags = $sim_filter" 6>&1
981 fi
982 fi
983
984 # Check whether --enable-sim-icache or --disable-sim-icache was given.
985 if test "${enable_sim_icache+set}" = set; then
986 enableval="$enable_sim_icache"
987 icache=""
988 case "${enableval}" in
989 yes) icache="1024"; sim_icache="-I $icache";;
990 no) sim_icache="";;
991 *) icache=1024
992 sim_icache="-"
993 for x in `echo "${enableval}" | sed -e "s/,/ /g"`; do
994 case "$x" in
995 define) sim_icache="${sim_icache}R";;
996 semantic) sim_icache="${sim_icache}C";;
997 insn) sim_icache="${sim_icache}S";;
998 0*|1*|2*|3*|4*|5*|6*|7*|8*|9*) icache=$x;;
999 *) { echo "configure: error: "Unknown value $x for --enable-sim-icache"" 1>&2; exit 1; }; sim_icache="";;
1000 esac
1001 done
1002 sim_icache="${sim_icache}I $icache";;
1003 esac
1004 if test x"$silent" != x"yes" && test x"$icache" != x""; then
1005 echo "Setting instruction cache size to $icache ($sim_icache)"
1006 fi
1007 else
1008 sim_icache="-CSI 1024"
1009 if test x"$silent" != x"yes"; then
1010 echo "Setting instruction cache size to 1024 ($sim_icache)"
1011 fi
1012 fi
1013
1014 # Check whether --enable-sim-hardware or --disable-sim-hardware was given.
1015 if test "${enable_sim_hardware+set}" = set; then
1016 enableval="$enable_sim_hardware"
1017 hardware="cpu,memory,nvram,iobus,htab,disk,trace,register,vm,init,core,pal"
1018 case "${enableval}" in
1019 yes) ;;
1020 no) { echo "configure: error: "List of hardware must be specified for --enable-sim-hardware"" 1>&2; exit 1; }; hardware="";;
1021 ,*) hardware="${hardware}${enableval}";;
1022 *) hardware="${enableval}";;
1023 esac
1024 sim_hw_src=`echo $hardware | sed -e 's/,/.c hw_/g' -e 's/^/hw_/' -e s'/$/.c/'`
1025 sim_hw_obj=`echo $sim_hw_src | sed -e 's/\.c/.o/g'`
1026 if test x"$silent" != x"yes" && test x"$hardware" != x""; then
1027 echo "Setting hardware to $sim_hw_src, $sim_hw_obj"
1028 fi
1029 else
1030 hardware="cpu,memory,nvram,iobus,htab,disk,trace,register,vm,init,core,pal"
1031 sim_hw_src=`echo $hardware | sed -e 's/,/.c hw_/g' -e 's/^/hw_/' -e s'/$/.c/'`
1032 sim_hw_obj=`echo $sim_hw_src | sed -e 's/\.c/.o/g'`
1033 if test x"$silent" != x"yes"; then
1034 echo "Setting hardware to $sim_hw_src, $sim_hw_obj"
1035 fi
1036 fi
1037
1038
1039 # Check whether --enable-sim-packages or --disable-sim-packages was given.
1040 if test "${enable_sim_packages+set}" = set; then
1041 enableval="$enable_sim_packages"
1042 packages=disklabel
1043 case "${enableval}" in
1044 yes) ;;
1045 no) { echo "configure: error: "List of packages must be specified for --enable-sim-packages"" 1>&2; exit 1; }; packages="";;
1046 ,*) packages="${packages}${enableval}";;
1047 *) packages="${enableval}"''
1048 esac
1049 sim_pk_src=`echo $packages | sed -e 's/,/.c pk_/g' -e 's/^/pk_/' -e 's/$/.c/'`
1050 sim_pk_obj=`echo $sim_pk_src | sed -e 's/\.c/.o/g'`
1051 if test x"$silent" != x"yes" && test x"$packages" != x""; then
1052 echo "Setting packages to $sim_pk_src, $sim_pk_obj"
1053 fi
1054 else
1055 packages=disklabel
1056 sim_pk_src=`echo $packages | sed -e 's/,/.c pk_/g' -e 's/^/pk_/' -e 's/$/.c/'`
1057 sim_pk_obj=`echo $sim_pk_src | sed -e 's/\.c/.o/g'`
1058 if test x"$silent" != x"yes"; then
1059 echo "Setting packages to $sim_pk_src, $sim_pk_obj"
1060 fi
1061 fi
1062
1063 # Check whether --enable-sim-inline or --disable-sim-inline was given.
1064 if test "${enable_sim_inline+set}" = set; then
1065 enableval="$enable_sim_inline"
1066 sim_inline=""
1067 case "$enableval" in
1068 no) sim_inline="-DDEFAULT_INLINE=0";;
1069 0) sim_inline="-DDEFAULT_INLINE=0";;
1070 yes | 2) sim_inline="-DDEFAULT_INLINE=ALL_INLINE";;
1071 1) sim_inline="-DDEFAULT_INLINE=INLINE_LOCALS";;
1072 *) for x in `echo "$enableval" | sed -e "s/,/ /g"`; do
1073 new_flag=""
1074 case "$x" in
1075 *_INLINE=*) new_flag="-D$x";;
1076 *=*) new_flag=`echo "$x" | sed -e "s/=/_INLINE=/" -e "s/^/-D/"`;;
1077 *_INLINE) new_flag="-D$x=ALL_INLINE";;
1078 *) new_flag="-D$x""_INLINE=ALL_INLINE";;
1079 esac
1080 if test x"$sim_inline" = x""; then
1081 sim_inline="$new_flag"
1082 else
1083 sim_inline="$sim_inline $new_flag"
1084 fi
1085 done;;
1086 esac
1087 if test x"$silent" != x"yes" && test x"$sim_inline" != x""; then
1088 echo "Setting inline flags = $sim_inline" 6>&1
1089 fi
1090 else
1091 if test x"$GCC" != ""; then
1092 sim_inline="-DDEFAULT_INLINE=INLINE_LOCALS"
1093 if test x"$silent" != x"yes"; then
1094 echo "Setting inline flags = $sim_inline" 6>&1
1095 fi
1096 else
1097 sim_inline=""
1098 fi
1099 fi
1100
1101 # Check whether --enable-sim-bswap or --disable-sim-bswap was given.
1102 if test "${enable_sim_bswap+set}" = set; then
1103 enableval="$enable_sim_bswap"
1104 case "${enableval}" in
1105 yes) sim_bswap="-DWITH_BSWAP=1";;
1106 no) sim_bswap="-DWITH_BSWAP=0";;
1107 *) { echo "configure: error: "--enable-sim-bswap does not take a value"" 1>&2; exit 1; }; sim_bswap="";;
1108 esac
1109 if test x"$silent" != x"yes" && test x"$sim_bswap" != x""; then
1110 echo "Setting bswap flags = $sim_bswap" 6>&1
1111 fi
1112 else
1113 sim_bswap=""
1114 fi
1115
1116 # Check whether --enable-sim-endian or --disable-sim-endian was given.
1117 if test "${enable_sim_endian+set}" = set; then
1118 enableval="$enable_sim_endian"
1119 case "${enableval}" in
1120 yes) case "$target" in
1121 *powerpc-*) sim_endian="-DWITH_TARGET_BYTE_ORDER=BIG_ENDIAN";;
1122 *powerpcle-*) sim_endian="-DWITH_TARGET_BYTE_ORDER=LITTLE_ENDIAN";;
1123 *) echo "Unknown target $target" 1>&6; sim_endian="-DWITH_TARGET_BYTE_ORDER=0";;
1124 esac;;
1125 no) sim_endian="-DWITH_TARGET_BYTE_ORDER=0";;
1126 b*|B*) sim_endian="-DWITH_TARGET_BYTE_ORDER=BIG_ENDIAN";;
1127 l*|L*) sim_endian="-DWITH_TARGET_BYTE_ORDER=LITTLE_ENDIAN";;
1128 *) { echo "configure: error: "Unknown value $enableval for --enable-sim-endian"" 1>&2; exit 1; }; sim_endian="";;
1129 esac
1130 if test x"$silent" != x"yes" && test x"$sim_endian" != x""; then
1131 echo "Setting endian flags = $sim_endian" 6>&1
1132 fi
1133 else
1134 sim_endian=""
1135 fi
1136
1137 # Check whether --enable-sim-regparm or --disable-sim-regparm was given.
1138 if test "${enable_sim_regparm+set}" = set; then
1139 enableval="$enable_sim_regparm"
1140 case "${enableval}" in
1141 0*|1*|2*|3*|4*|5*|6*|7*|8*|9*) sim_regparm="-DWITH_REGPARM=${enableval}";;
1142 no) sim_regparm="" ;;
1143 yes) sim_regparm="-DWITH_REGPARM=3";;
1144 *) { echo "configure: error: "Unknown value $enableval for --enable-sim-regparm"" 1>&2; exit 1; }; sim_regparm="";;
1145 esac
1146 if test x"$silent" != x"yes" && test x"$sim_regparm" != x""; then
1147 echo "Setting regparm flags = $sim_regparm" 6>&1
1148 fi
1149 else
1150 sim_regparm=""
1151 fi
1152
1153 # Check whether --enable-sim-stdcall or --disable-sim-stdcall was given.
1154 if test "${enable_sim_stdcall+set}" = set; then
1155 enableval="$enable_sim_stdcall"
1156 case "${enableval}" in
1157 no) sim_stdcall="" ;;
1158 std*) sim_stdcall="-DWITH_STDCALL=1";;
1159 yes) sim_stdcall="-DWITH_STDCALL=1";;
1160 *) { echo "configure: error: "Unknown value $enableval for --enable-sim-stdcall"" 1>&2; exit 1; }; sim_stdcall="";;
1161 esac
1162 if test x"$silent" != x"yes" && test x"$sim_stdcall" != x""; then
1163 echo "Setting function call flags = $sim_stdcall" 6>&1
1164 fi
1165 else
1166 sim_stdcall=""
1167 fi
1168
1169 # Check whether --enable-sim-hostendian or --disable-sim-hostendian was given.
1170 if test "${enable_sim_hostendian+set}" = set; then
1171 enableval="$enable_sim_hostendian"
1172 case "${enableval}" in
1173 no) sim_hostendian="-DWITH_HOST_BYTE_ORDER=0";;
1174 b*|B*) sim_hostendian="-DWITH_HOST_BYTE_ORDER=BIG_ENDIAN";;
1175 l*|L*) sim_hostendian="-DWITH_HOST_BYTE_ORDER=LITTLE_ENDIAN";;
1176 *) { echo "configure: error: "Unknown value $enableval for --enable-sim-hostendian"" 1>&2; exit 1; }; sim_hostendian="";;
1177 esac
1178 if test x"$silent" != x"yes" && test x"$sim_hostendian" != x""; then
1179 echo "Setting hostendian flags = $sim_hostendian" 6>&1
1180 fi
1181 else
1182
1183 if test "x$cross_compiling" = "xno"; then
1184 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
1185 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
1186 echo $ac_n "(cached) $ac_c" 1>&6
1187 else
1188 ac_cv_c_bigendian=unknown
1189 # See if sys/param.h defines the BYTE_ORDER macro.
1190 cat > conftest.$ac_ext <<EOF
1191 #line 1192 "configure"
1192 #include "confdefs.h"
1193 #include <sys/types.h>
1194 #include <sys/param.h>
1195 int main() { return 0; }
1196 int t() {
1197
1198 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
1199 bogus endian macros
1200 #endif
1201 ; return 0; }
1202 EOF
1203 if { (eval echo configure:1204: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1204 rm -rf conftest*
1205 # It does; now see whether it defined to BIG_ENDIAN or not.
1206 cat > conftest.$ac_ext <<EOF
1207 #line 1208 "configure"
1208 #include "confdefs.h"
1209 #include <sys/types.h>
1210 #include <sys/param.h>
1211 int main() { return 0; }
1212 int t() {
1213
1214 #if BYTE_ORDER != BIG_ENDIAN
1215 not big endian
1216 #endif
1217 ; return 0; }
1218 EOF
1219 if { (eval echo configure:1220: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1220 rm -rf conftest*
1221 ac_cv_c_bigendian=yes
1222 else
1223 rm -rf conftest*
1224 ac_cv_c_bigendian=no
1225 fi
1226 rm -f conftest*
1227
1228 fi
1229 rm -f conftest*
1230
1231 if test $ac_cv_c_bigendian = unknown; then
1232 if test "$cross_compiling" = yes; then
1233 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
1234 else
1235 cat > conftest.$ac_ext <<EOF
1236 #line 1237 "configure"
1237 #include "confdefs.h"
1238 main () {
1239 /* Are we little or big endian? From Harbison&Steele. */
1240 union
1241 {
1242 long l;
1243 char c[sizeof (long)];
1244 } u;
1245 u.l = 1;
1246 exit (u.c[sizeof (long) - 1] == 1);
1247 }
1248 EOF
1249 { (eval echo configure:1250: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
1250 if test -s conftest && (./conftest; exit) 2>/dev/null; then
1251 ac_cv_c_bigendian=no
1252 else
1253 ac_cv_c_bigendian=yes
1254 fi
1255 fi
1256 rm -fr conftest*
1257 fi
1258 fi
1259
1260 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
1261 if test $ac_cv_c_bigendian = yes; then
1262 cat >> confdefs.h <<\EOF
1263 #define WORDS_BIGENDIAN 1
1264 EOF
1265
1266 fi
1267
1268 if test $ac_cv_c_bigendian = yes; then
1269 sim_hostendian="-DWITH_HOST_BYTE_ORDER=BIG_ENDIAN"
1270 else
1271 sim_hostendian="-DWITH_HOST_BYTE_ORDER=LITTLE_ENDIAN"
1272 fi
1273 else
1274 sim_hostendian="-DWITH_HOST_BYTE_ORDER=0"
1275 fi
1276 fi
1277
1278 # Check whether --enable-sim-smp or --disable-sim-smp was given.
1279 if test "${enable_sim_smp+set}" = set; then
1280 enableval="$enable_sim_smp"
1281 case "${enableval}" in
1282 yes) sim_smp="-DWITH_SMP=5" ; sim_igen_smp="-N 5";;
1283 no) sim_smp="-DWITH_SMP=0" ; sim_igen_smp="-N 0";;
1284 *) sim_smp="-DWITH_SMP=$enableval" ; sim_igen_smp="-N $enableval";;
1285 esac
1286 if test x"$silent" != x"yes" && test x"$sim_smp" != x""; then
1287 echo "Setting smp flags = $sim_smp" 6>&1
1288 fi
1289 else
1290 sim_smp="-DWITH_SMP=5" ; sim_igen_smp="-N 5"
1291 if test x"$silent" != x"yes"; then
1292 echo "Setting smp flags = $sim_smp" 6>&1
1293 fi
1294 fi
1295
1296 # Check whether --enable-sim-xor-endian or --disable-sim-xor-endian was given.
1297 if test "${enable_sim_xor_endian+set}" = set; then
1298 enableval="$enable_sim_xor_endian"
1299 case "${enableval}" in
1300 yes) sim_xor_endian="-DWITH_XOR_ENDIAN=8";;
1301 no) sim_xor_endian="-DWITH_XOR_ENDIAN=0";;
1302 *) sim_xor_endian="-DWITH_XOR_ENDIAN=$enableval";;
1303 esac
1304 if test x"$silent" != x"yes" && test x"$sim_xor_endian" != x""; then
1305 echo "Setting xor-endian flag = $sim_xor_endian" 6>&1
1306 fi
1307 else
1308 sim_xor_endian=""
1309 fi
1310
1311 # Check whether --enable-sim-bitsize or --disable-sim-bitsize was given.
1312 if test "${enable_sim_bitsize+set}" = set; then
1313 enableval="$enable_sim_bitsize"
1314 case "${enableval}" in
1315 32|64) sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=$enableval";;
1316 *) { echo "configure: error: "--enable-sim-bitsize was given $enableval" 1>&2; exit 1; }; sim_bitsize="";;
1317 esac
1318 if test x"$silent" != x"yes" && test x"$sim_bitsize" != x""; then
1319 echo "Setting bitsize flags = $sim_bitsize" 6>&1
1320 fi
1321 else
1322 sim_bitsize=""
1323 fi
1324
1325 # Check whether --enable-sim-hostbitsize or --disable-sim-hostbitsize was given.
1326 if test "${enable_sim_hostbitsize+set}" = set; then
1327 enableval="$enable_sim_hostbitsize"
1328 case "${enableval}" in
1329 32|64) sim_hostbitsize="-DWITH_HOST_WORD_BITSIZE=$enableval";;
1330 *) { echo "configure: error: "--enable-sim-hostbitsize was given $enableval" 1>&2; exit 1; }; sim_hostbitsize="";;
1331 esac
1332 if test x"$silent" != x"yes" && test x"$sim_hostbitsize" != x""; then
1333 echo "Setting hostbitsize flags = $sim_hostbitsize" 6>&1
1334 fi
1335 else
1336 sim_hostbitsize=""
1337 fi
1338
1339 # Check whether --enable-sim-env or --disable-sim-env was given.
1340 if test "${enable_sim_env+set}" = set; then
1341 enableval="$enable_sim_env"
1342 case "${enableval}" in
1343 operating | os | oea) sim_env="-DWITH_ENVIRONMENT=OPERATING_ENVIRONMENT";;
1344 virtual | vea) sim_env="-DWITH_ENVIRONMENT=VIRTUAL_ENVIRONMENT";;
1345 user | uea) sim_env="-DWITH_ENVIRONMENT=USER_ENVIRONMENT";;
1346 no) sim_env="-DWITH_ENVIRONMENT=0";;
1347 *) { echo "configure: error: "Unknown value $enableval passed to --enable-sim-env"" 1>&2; exit 1; }; sim_env="";;
1348 esac
1349 if test x"$silent" != x"yes" && test x"$sim_env" != x""; then
1350 echo "Setting env flags = $sim_env" 6>&1
1351 fi
1352 else
1353 sim_env=""
1354 fi
1355
1356 # Check whether --enable-sim-timebase or --disable-sim-timebase was given.
1357 if test "${enable_sim_timebase+set}" = set; then
1358 enableval="$enable_sim_timebase"
1359 case "${enableval}" in
1360 yes) sim_timebase="-DWITH_TIME_BASE=1";;
1361 no) sim_timebase="-DWITH_TIME_BASE=0";;
1362 *) { echo "configure: error: "--enable-sim-timebase does not take a value"" 1>&2; exit 1; }; sim_timebase="";;
1363 esac
1364 if test x"$silent" != x"yes" && test x"$sim_timebase" != x""; then
1365 echo "Setting timebase flags = $sim_timebase" 6>&1
1366 fi
1367 else
1368 sim_timebase=""
1369 fi
1370
1371 # Check whether --enable-sim-alignment or --disable-sim-alignment was given.
1372 if test "${enable_sim_alignment+set}" = set; then
1373 enableval="$enable_sim_alignment"
1374 case "${enableval}" in
1375 yes | strict | STRICT) sim_alignment="-DWITH_ALIGNMENT=STRICT_ALIGNMENT";;
1376 no | nonstrict | NONSTRICT) sim_alignment="-DWITH_ALIGNMENT=NONSTRICT_ALIGNMENT";;
1377 0 | default | DEFAULT) sim_alignment="-DWITH_ALIGNMENT=0";;
1378 *) { echo "configure: error: "Unknown value $enableval passed to --enable-sim-alignment"" 1>&2; exit 1; }; sim_alignment="";;
1379 esac
1380 if test x"$silent" != x"yes" && test x"$sim_alignment" != x""; then
1381 echo "Setting alignment flags = $sim_alignment" 6>&1
1382 fi
1383 else
1384 sim_alignment=""
1385 fi
1386
1387 # Check whether --enable-sim-trace or --disable-sim-trace was given.
1388 if test "${enable_sim_trace+set}" = set; then
1389 enableval="$enable_sim_trace"
1390 case "${enableval}" in
1391 yes) sim_trace="-DWITH_TRACE=1";;
1392 no) sim_trace="-DWITH_TRACE=0";;
1393 *) { echo "configure: error: "--enable-sim-trace does not take a value"" 1>&2; exit 1; }; sim_trace="";;
1394 esac
1395 if test x"$silent" != x"yes" && test x"$sim_trace" != x""; then
1396 echo "Setting trace flags = $sim_trace" 6>&1
1397 fi
1398 else
1399 sim_trace=""
1400 fi
1401
1402 # Check whether --enable-sim-assert or --disable-sim-assert was given.
1403 if test "${enable_sim_assert+set}" = set; then
1404 enableval="$enable_sim_assert"
1405 case "${enableval}" in
1406 yes) sim_assert="-DWITH_ASSERT=1";;
1407 no) sim_assert="-DWITH_ASSERT=0";;
1408 *) { echo "configure: error: "--enable-sim-assert does not take a value"" 1>&2; exit 1; }; sim_assert="";;
1409 esac
1410 if test x"$silent" != x"yes" && test x"$sim_assert" != x""; then
1411 echo "Setting assert flags = $sim_assert" 6>&1
1412 fi
1413 else
1414 sim_assert=""
1415 fi
1416
1417 # Check whether --enable-sim-reserved-bits or --disable-sim-reserved-bits was given.
1418 if test "${enable_sim_reserved_bits+set}" = set; then
1419 enableval="$enable_sim_reserved_bits"
1420 case "${enableval}" in
1421 yes) sim_reserved="-DWITH_RESERVED_BITS=1";;
1422 no) sim_reserved="-DWITH_RESERVED_BITS=0";;
1423 *) { echo "configure: error: "--enable-sim-reserved-bits does not take a value"" 1>&2; exit 1; }; sim_reserved="";;
1424 esac
1425 if test x"$silent" != x"yes" && test x"$sim_reserved" != x""; then
1426 echo "Setting reserved flags = $sim_reserved" 6>&1
1427 fi
1428 else
1429 sim_reserved=""
1430 fi
1431
1432 # Check whether --enable-sim-float or --disable-sim-float was given.
1433 if test "${enable_sim_float+set}" = set; then
1434 enableval="$enable_sim_float"
1435 case "${enableval}" in
1436 yes | hard) sim_float="-DWITH_FLOATING_POINT=HARD_FLOATING_POINT";;
1437 no | soft) sim_float="-DWITH_FLOATING_POINT=SOFT_FLOATING_POINT";;
1438 *) { echo "configure: error: "Unknown value $enableval passed to --enable-sim-float"" 1>&2; exit 1; }; sim_float="";;
1439 esac
1440 if test x"$silent" != x"yes" && test x"$sim_float" != x""; then
1441 echo "Setting float flags = $sim_float" 6>&1
1442 fi
1443 else
1444 sim_float=""
1445 fi
1446
1447 # Check whether --enable-sim-monitor or --disable-sim-monitor was given.
1448 if test "${enable_sim_monitor+set}" = set; then
1449 enableval="$enable_sim_monitor"
1450 case "${enableval}" in
1451 yes) sim_monitor="-DWITH_MON='MONITOR_INSTRUCTION_ISSUE | MONITOR_LOAD_STORE_UNIT'";;
1452 no) sim_monitor="-DWITH_MON=0";;
1453 instruction) sim_monitor="-DWITH_MON=MONITOR_INSTRUCTION_ISSUE";;
1454 memory) sim_monitor="-DWITH_MON=MONITOR_LOAD_STORE_UNIT";;
1455 *) { echo "configure: error: "Unknown value $enableval passed to --enable-sim-mon"" 1>&2; exit 1; }; sim_env="";;
1456 esac
1457 if test x"$silent" != x"yes" && test x"$sim_monitor" != x""; then
1458 echo "Setting monitor flags = $sim_monitor" 6>&1
1459 fi
1460 else
1461 sim_monitor=""
1462 fi
1463
1464 # Check whether --enable-sim-model or --disable-sim-model was given.
1465 if test "${enable_sim_model+set}" = set; then
1466 enableval="$enable_sim_model"
1467 case "${enableval}" in
1468 yes|no) { echo "configure: error: "No value supplied for --enable-sim-model=model"" 1>&2; exit 1; };;
1469 *) sim_model="-DWITH_MODEL=${enableval}";;
1470 esac
1471 if test x"$silent" != x"yes" && test x"$sim_model" != x""; then
1472 echo "Setting model flags = $sim_model" 6>&1
1473 fi
1474 else
1475 sim_model=""
1476 fi
1477
1478 # Check whether --enable-sim-default-model or --disable-sim-default-model was given.
1479 if test "${enable_sim_default_model+set}" = set; then
1480 enableval="$enable_sim_default_model"
1481 case "${enableval}" in
1482 yes|no) { echo "configure: error: "No value supplied for --enable-sim-default-model=model"" 1>&2; exit 1; };;
1483 *) sim_default_model="-DWITH_DEFAULT_MODEL=${enableval}";;
1484 esac
1485 if test x"$silent" != x"yes" && test x"$sim_default_model" != x""; then
1486 echo "Setting default-model flags = $sim_default_model" 6>&1
1487 fi
1488 else
1489 sim_model=""
1490 fi
1491
1492 # Check whether --enable-sim-model-issue or --disable-sim-model-issue was given.
1493 if test "${enable_sim_model_issue+set}" = set; then
1494 enableval="$enable_sim_model_issue"
1495 case "${enableval}" in
1496 yes) sim_model_issue="-DWITH_MODEL_ISSUE=MODEL_ISSUE_PROCESS";;
1497 no) sim_model_issue="-DWITH_MODEL_ISSUE=MODEL_ISSUE_IGNORE";;
1498 *) { echo "configure: error: "--enable-sim-model-issue does not take a value"" 1>&2; exit 1; }; sim_model_issue="";;
1499 esac
1500 if test x"$silent" != x"yes"; then
1501 echo "Setting model-issue flags = $sim_model_issue" 6>&1
1502 fi
1503 else
1504 sim_model_issue=""
1505 fi
1506
1507 # Check whether --enable-sim-stdio or --disable-sim-stdio was given.
1508 if test "${enable_sim_stdio+set}" = set; then
1509 enableval="$enable_sim_stdio"
1510 case "${enableval}" in
1511 yes) sim_stdio="-DWITH_STDIO=DO_USE_STDIO";;
1512 no) sim_stdio="-DWITH_STDIO=DONT_USE_STDIO";;
1513 *) { echo "configure: error: "Unknown value $enableval passed to --enable-sim-stdio"" 1>&2; exit 1; }; sim_stdio="";;
1514 esac
1515 if test x"$silent" != x"yes" && test x"$sim_stdio" != x""; then
1516 echo "Setting stdio flags = $sim_stdio" 6>&1
1517 fi
1518 else
1519 sim_stdio=""
1520 fi
1521
1522 ac_aux_dir=
1523 for ac_dir in `cd $srcdir;pwd`/../.. $srcdir/`cd $srcdir;pwd`/../..; do
1524 if test -f $ac_dir/install-sh; then
1525 ac_aux_dir=$ac_dir
1526 ac_install_sh="$ac_aux_dir/install-sh -c"
1527 break
1528 elif test -f $ac_dir/install.sh; then
1529 ac_aux_dir=$ac_dir
1530 ac_install_sh="$ac_aux_dir/install.sh -c"
1531 break
1532 fi
1533 done
1534 if test -z "$ac_aux_dir"; then
1535 { echo "configure: error: can not find install-sh or install.sh in `cd $srcdir;pwd`/../.. $srcdir/`cd $srcdir;pwd`/../.." 1>&2; exit 1; }
1536 fi
1537 ac_config_guess=$ac_aux_dir/config.guess
1538 ac_config_sub=$ac_aux_dir/config.sub
1539 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
1540
1541
1542 # Do some error checking and defaulting for the host and target type.
1543 # The inputs are:
1544 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
1545 #
1546 # The rules are:
1547 # 1. You are not allowed to specify --host, --target, and nonopt at the
1548 # same time.
1549 # 2. Host defaults to nonopt.
1550 # 3. If nonopt is not specified, then host defaults to the current host,
1551 # as determined by config.guess.
1552 # 4. Target and build default to nonopt.
1553 # 5. If nonopt is not specified, then target and build default to host.
1554
1555 # The aliases save the names the user supplied, while $host etc.
1556 # will get canonicalized.
1557 case $host---$target---$nonopt in
1558 NONE---*---* | *---NONE---* | *---*---NONE) ;;
1559 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
1560 esac
1561
1562
1563 # Make sure we can run config.sub.
1564 if $ac_config_sub sun4 >/dev/null 2>&1; then :
1565 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1566 fi
1567
1568 echo $ac_n "checking host system type""... $ac_c" 1>&6
1569
1570 host_alias=$host
1571 case "$host_alias" in
1572 NONE)
1573 case $nonopt in
1574 NONE)
1575 if host_alias=`$ac_config_guess`; then :
1576 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1577 fi ;;
1578 *) host_alias=$nonopt ;;
1579 esac ;;
1580 esac
1581
1582 host=`$ac_config_sub $host_alias`
1583 host_cpu=`echo $host | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\1/'`
1584 host_vendor=`echo $host | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\2/'`
1585 host_os=`echo $host | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\3/'`
1586 echo "$ac_t""$host" 1>&6
1587
1588 echo $ac_n "checking target system type""... $ac_c" 1>&6
1589
1590 target_alias=$target
1591 case "$target_alias" in
1592 NONE)
1593 case $nonopt in
1594 NONE) target_alias=$host_alias ;;
1595 *) target_alias=$nonopt ;;
1596 esac ;;
1597 esac
1598
1599 target=`$ac_config_sub $target_alias`
1600 target_cpu=`echo $target | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\1/'`
1601 target_vendor=`echo $target | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\2/'`
1602 target_os=`echo $target | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\3/'`
1603 echo "$ac_t""$target" 1>&6
1604
1605 echo $ac_n "checking build system type""... $ac_c" 1>&6
1606
1607 build_alias=$build
1608 case "$build_alias" in
1609 NONE)
1610 case $nonopt in
1611 NONE) build_alias=$host_alias ;;
1612 *) build_alias=$nonopt ;;
1613 esac ;;
1614 esac
1615
1616 build=`$ac_config_sub $build_alias`
1617 build_cpu=`echo $build | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\1/'`
1618 build_vendor=`echo $build | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\2/'`
1619 build_os=`echo $build | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\3/'`
1620 echo "$ac_t""$build" 1>&6
1621
1622 test "$host_alias" != "$target_alias" &&
1623 test "$program_prefix$program_suffix$program_transform_name" = \
1624 NONENONEs,x,x, &&
1625 program_prefix=${target_alias}-
1626
1627 if test "$program_transform_name" = s,x,x,; then
1628 program_transform_name=
1629 else
1630 # Double any \ or $. echo might interpret backslashes.
1631 cat <<\EOF_SED > conftestsed
1632 s,\\,\\\\,g; s,\$,$$,g
1633 EOF_SED
1634 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
1635 rm -f conftestsed
1636 fi
1637 test "$program_prefix" != NONE &&
1638 program_transform_name="s,^,${program_prefix},; $program_transform_name"
1639 # Use a double $ so make ignores it.
1640 test "$program_suffix" != NONE &&
1641 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
1642
1643 # sed with no file args requires a program.
1644 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
1645
1646
1647 . ${srcdir}/../../bfd/configure.host
1648
1649
1650
1651 echo $ac_n "checking for st_blksize in struct stat""... $ac_c" 1>&6
1652 if eval "test \"`echo '$''{'ac_cv_struct_st_blksize'+set}'`\" = set"; then
1653 echo $ac_n "(cached) $ac_c" 1>&6
1654 else
1655 cat > conftest.$ac_ext <<EOF
1656 #line 1657 "configure"
1657 #include "confdefs.h"
1658 #include <sys/types.h>
1659 #include <sys/stat.h>
1660 int main() { return 0; }
1661 int t() {
1662 struct stat s; s.st_blksize;
1663 ; return 0; }
1664 EOF
1665 if { (eval echo configure:1666: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1666 rm -rf conftest*
1667 ac_cv_struct_st_blksize=yes
1668 else
1669 rm -rf conftest*
1670 ac_cv_struct_st_blksize=no
1671 fi
1672 rm -f conftest*
1673
1674 fi
1675
1676 echo "$ac_t""$ac_cv_struct_st_blksize" 1>&6
1677 if test $ac_cv_struct_st_blksize = yes; then
1678 cat >> confdefs.h <<\EOF
1679 #define HAVE_ST_BLKSIZE 1
1680 EOF
1681
1682 fi
1683
1684 echo $ac_n "checking for st_blocks in struct stat""... $ac_c" 1>&6
1685 if eval "test \"`echo '$''{'ac_cv_struct_st_blocks'+set}'`\" = set"; then
1686 echo $ac_n "(cached) $ac_c" 1>&6
1687 else
1688 cat > conftest.$ac_ext <<EOF
1689 #line 1690 "configure"
1690 #include "confdefs.h"
1691 #include <sys/types.h>
1692 #include <sys/stat.h>
1693 int main() { return 0; }
1694 int t() {
1695 struct stat s; s.st_blocks;
1696 ; return 0; }
1697 EOF
1698 if { (eval echo configure:1699: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1699 rm -rf conftest*
1700 ac_cv_struct_st_blocks=yes
1701 else
1702 rm -rf conftest*
1703 ac_cv_struct_st_blocks=no
1704 fi
1705 rm -f conftest*
1706
1707 fi
1708
1709 echo "$ac_t""$ac_cv_struct_st_blocks" 1>&6
1710 if test $ac_cv_struct_st_blocks = yes; then
1711 cat >> confdefs.h <<\EOF
1712 #define HAVE_ST_BLOCKS 1
1713 EOF
1714
1715 else
1716 LIBOBJS="$LIBOBJS fileblocks.o"
1717 fi
1718
1719 echo $ac_n "checking for st_rdev in struct stat""... $ac_c" 1>&6
1720 if eval "test \"`echo '$''{'ac_cv_struct_st_rdev'+set}'`\" = set"; then
1721 echo $ac_n "(cached) $ac_c" 1>&6
1722 else
1723 cat > conftest.$ac_ext <<EOF
1724 #line 1725 "configure"
1725 #include "confdefs.h"
1726 #include <sys/types.h>
1727 #include <sys/stat.h>
1728 int main() { return 0; }
1729 int t() {
1730 struct stat s; s.st_rdev;
1731 ; return 0; }
1732 EOF
1733 if { (eval echo configure:1734: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1734 rm -rf conftest*
1735 ac_cv_struct_st_rdev=yes
1736 else
1737 rm -rf conftest*
1738 ac_cv_struct_st_rdev=no
1739 fi
1740 rm -f conftest*
1741
1742 fi
1743
1744 echo "$ac_t""$ac_cv_struct_st_rdev" 1>&6
1745 if test $ac_cv_struct_st_rdev = yes; then
1746 cat >> confdefs.h <<\EOF
1747 #define HAVE_ST_RDEV 1
1748 EOF
1749
1750 fi
1751
1752 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
1753 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
1754 echo $ac_n "(cached) $ac_c" 1>&6
1755 else
1756 cat > conftest.$ac_ext <<EOF
1757 #line 1758 "configure"
1758 #include "confdefs.h"
1759 #include <sys/types.h>
1760 #include <time.h>
1761 int main() { return 0; }
1762 int t() {
1763 struct tm *tp; tp->tm_sec;
1764 ; return 0; }
1765 EOF
1766 if { (eval echo configure:1767: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1767 rm -rf conftest*
1768 ac_cv_struct_tm=time.h
1769 else
1770 rm -rf conftest*
1771 ac_cv_struct_tm=sys/time.h
1772 fi
1773 rm -f conftest*
1774
1775 fi
1776
1777 echo "$ac_t""$ac_cv_struct_tm" 1>&6
1778 if test $ac_cv_struct_tm = sys/time.h; then
1779 cat >> confdefs.h <<\EOF
1780 #define TM_IN_SYS_TIME 1
1781 EOF
1782
1783 fi
1784
1785 echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6
1786 if eval "test \"`echo '$''{'ac_cv_struct_tm_zone'+set}'`\" = set"; then
1787 echo $ac_n "(cached) $ac_c" 1>&6
1788 else
1789 cat > conftest.$ac_ext <<EOF
1790 #line 1791 "configure"
1791 #include "confdefs.h"
1792 #include <sys/types.h>
1793 #include <$ac_cv_struct_tm>
1794 int main() { return 0; }
1795 int t() {
1796 struct tm tm; tm.tm_zone;
1797 ; return 0; }
1798 EOF
1799 if { (eval echo configure:1800: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1800 rm -rf conftest*
1801 ac_cv_struct_tm_zone=yes
1802 else
1803 rm -rf conftest*
1804 ac_cv_struct_tm_zone=no
1805 fi
1806 rm -f conftest*
1807
1808 fi
1809
1810 echo "$ac_t""$ac_cv_struct_tm_zone" 1>&6
1811 if test "$ac_cv_struct_tm_zone" = yes; then
1812 cat >> confdefs.h <<\EOF
1813 #define HAVE_TM_ZONE 1
1814 EOF
1815
1816 else
1817 echo $ac_n "checking for tzname""... $ac_c" 1>&6
1818 if eval "test \"`echo '$''{'ac_cv_var_tzname'+set}'`\" = set"; then
1819 echo $ac_n "(cached) $ac_c" 1>&6
1820 else
1821 cat > conftest.$ac_ext <<EOF
1822 #line 1823 "configure"
1823 #include "confdefs.h"
1824 #include <time.h>
1825 #ifndef tzname /* For SGI. */
1826 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
1827 #endif
1828 int main() { return 0; }
1829 int t() {
1830 atoi(*tzname);
1831 ; return 0; }
1832 EOF
1833 if { (eval echo configure:1834: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1834 rm -rf conftest*
1835 ac_cv_var_tzname=yes
1836 else
1837 rm -rf conftest*
1838 ac_cv_var_tzname=no
1839 fi
1840 rm -f conftest*
1841
1842 fi
1843
1844 echo "$ac_t""$ac_cv_var_tzname" 1>&6
1845 if test $ac_cv_var_tzname = yes; then
1846 cat >> confdefs.h <<\EOF
1847 #define HAVE_TZNAME 1
1848 EOF
1849
1850 fi
1851 fi
1852
1853
1854 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1855 # On Suns, sometimes $CPP names a directory.
1856 if test -n "$CPP" && test -d "$CPP"; then
1857 CPP=
1858 fi
1859 if test -z "$CPP"; then
1860 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1861 echo $ac_n "(cached) $ac_c" 1>&6
1862 else
1863 # This must be in double quotes, not single quotes, because CPP may get
1864 # substituted into the Makefile and "${CC-cc}" will confuse make.
1865 CPP="${CC-cc} -E"
1866 # On the NeXT, cc -E runs the code through the compiler's parser,
1867 # not just through cpp.
1868 cat > conftest.$ac_ext <<EOF
1869 #line 1870 "configure"
1870 #include "confdefs.h"
1871 #include <assert.h>
1872 Syntax Error
1873 EOF
1874 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1875 { (eval echo configure:1876: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1876 ac_err=`grep -v '^ *+' conftest.out`
1877 if test -z "$ac_err"; then
1878 :
1879 else
1880 echo "$ac_err" >&5
1881 rm -rf conftest*
1882 CPP="${CC-cc} -E -traditional-cpp"
1883 cat > conftest.$ac_ext <<EOF
1884 #line 1885 "configure"
1885 #include "confdefs.h"
1886 #include <assert.h>
1887 Syntax Error
1888 EOF
1889 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1890 { (eval echo configure:1891: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1891 ac_err=`grep -v '^ *+' conftest.out`
1892 if test -z "$ac_err"; then
1893 :
1894 else
1895 echo "$ac_err" >&5
1896 rm -rf conftest*
1897 CPP=/lib/cpp
1898 fi
1899 rm -f conftest*
1900 fi
1901 rm -f conftest*
1902 ac_cv_prog_CPP="$CPP"
1903 fi
1904 CPP="$ac_cv_prog_CPP"
1905 else
1906 ac_cv_prog_CPP="$CPP"
1907 fi
1908 echo "$ac_t""$CPP" 1>&6
1909
1910 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
1911 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
1912 echo $ac_n "(cached) $ac_c" 1>&6
1913 else
1914 cat > conftest.$ac_ext <<EOF
1915 #line 1916 "configure"
1916 #include "confdefs.h"
1917 #include <sys/types.h>
1918 EOF
1919 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1920 egrep "uid_t" >/dev/null 2>&1; then
1921 rm -rf conftest*
1922 ac_cv_type_uid_t=yes
1923 else
1924 rm -rf conftest*
1925 ac_cv_type_uid_t=no
1926 fi
1927 rm -f conftest*
1928
1929 fi
1930
1931 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
1932 if test $ac_cv_type_uid_t = no; then
1933 cat >> confdefs.h <<\EOF
1934 #define uid_t int
1935 EOF
1936
1937 cat >> confdefs.h <<\EOF
1938 #define gid_t int
1939 EOF
1940
1941 fi
1942
1943 echo $ac_n "checking type of array argument to getgroups""... $ac_c" 1>&6
1944 if eval "test \"`echo '$''{'ac_cv_type_getgroups'+set}'`\" = set"; then
1945 echo $ac_n "(cached) $ac_c" 1>&6
1946 else
1947 if test "$cross_compiling" = yes; then
1948 ac_cv_type_getgroups=cross
1949 else
1950 cat > conftest.$ac_ext <<EOF
1951 #line 1952 "configure"
1952 #include "confdefs.h"
1953
1954 /* Thanks to Mike Rendell for this test. */
1955 #include <sys/types.h>
1956 #define NGID 256
1957 #undef MAX
1958 #define MAX(x, y) ((x) > (y) ? (x) : (y))
1959 main()
1960 {
1961 gid_t gidset[NGID];
1962 int i, n;
1963 union { gid_t gval; long lval; } val;
1964
1965 val.lval = -1;
1966 for (i = 0; i < NGID; i++)
1967 gidset[i] = val.gval;
1968 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
1969 gidset);
1970 /* Exit non-zero if getgroups seems to require an array of ints. This
1971 happens when gid_t is short but getgroups modifies an array of ints. */
1972 exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
1973 }
1974
1975 EOF
1976 { (eval echo configure:1977: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
1977 if test -s conftest && (./conftest; exit) 2>/dev/null; then
1978 ac_cv_type_getgroups=gid_t
1979 else
1980 ac_cv_type_getgroups=int
1981 fi
1982 fi
1983 rm -fr conftest*
1984 if test $ac_cv_type_getgroups = cross; then
1985 cat > conftest.$ac_ext <<EOF
1986 #line 1987 "configure"
1987 #include "confdefs.h"
1988 #include <unistd.h>
1989 EOF
1990 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1991 egrep "getgroups.*int.*gid_t" >/dev/null 2>&1; then
1992 rm -rf conftest*
1993 ac_cv_type_getgroups=gid_t
1994 else
1995 rm -rf conftest*
1996 ac_cv_type_getgroups=int
1997 fi
1998 rm -f conftest*
1999
2000 fi
2001 fi
2002
2003 echo "$ac_t""$ac_cv_type_getgroups" 1>&6
2004 cat >> confdefs.h <<EOF
2005 #define GETGROUPS_T $ac_cv_type_getgroups
2006 EOF
2007
2008
2009 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
2010 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
2011 echo $ac_n "(cached) $ac_c" 1>&6
2012 else
2013 cat > conftest.$ac_ext <<EOF
2014 #line 2015 "configure"
2015 #include "confdefs.h"
2016 #include <stdlib.h>
2017 #include <stdarg.h>
2018 #include <string.h>
2019 #include <float.h>
2020 EOF
2021 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2022 { (eval echo configure:2023: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2023 ac_err=`grep -v '^ *+' conftest.out`
2024 if test -z "$ac_err"; then
2025 rm -rf conftest*
2026 ac_cv_header_stdc=yes
2027 else
2028 echo "$ac_err" >&5
2029 rm -rf conftest*
2030 ac_cv_header_stdc=no
2031 fi
2032 rm -f conftest*
2033
2034 if test $ac_cv_header_stdc = yes; then
2035 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2036 cat > conftest.$ac_ext <<EOF
2037 #line 2038 "configure"
2038 #include "confdefs.h"
2039 #include <string.h>
2040 EOF
2041 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2042 egrep "memchr" >/dev/null 2>&1; then
2043 :
2044 else
2045 rm -rf conftest*
2046 ac_cv_header_stdc=no
2047 fi
2048 rm -f conftest*
2049
2050 fi
2051
2052 if test $ac_cv_header_stdc = yes; then
2053 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2054 cat > conftest.$ac_ext <<EOF
2055 #line 2056 "configure"
2056 #include "confdefs.h"
2057 #include <stdlib.h>
2058 EOF
2059 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2060 egrep "free" >/dev/null 2>&1; then
2061 :
2062 else
2063 rm -rf conftest*
2064 ac_cv_header_stdc=no
2065 fi
2066 rm -f conftest*
2067
2068 fi
2069
2070 if test $ac_cv_header_stdc = yes; then
2071 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2072 if test "$cross_compiling" = yes; then
2073 :
2074 else
2075 cat > conftest.$ac_ext <<EOF
2076 #line 2077 "configure"
2077 #include "confdefs.h"
2078 #include <ctype.h>
2079 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2080 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2081 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2082 int main () { int i; for (i = 0; i < 256; i++)
2083 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2084 exit (0); }
2085
2086 EOF
2087 { (eval echo configure:2088: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
2088 if test -s conftest && (./conftest; exit) 2>/dev/null; then
2089 :
2090 else
2091 ac_cv_header_stdc=no
2092 fi
2093 fi
2094 rm -fr conftest*
2095 fi
2096 fi
2097
2098 echo "$ac_t""$ac_cv_header_stdc" 1>&6
2099 if test $ac_cv_header_stdc = yes; then
2100 cat >> confdefs.h <<\EOF
2101 #define STDC_HEADERS 1
2102 EOF
2103
2104 fi
2105
2106 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
2107 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
2108 echo $ac_n "(cached) $ac_c" 1>&6
2109 else
2110 cat > conftest.$ac_ext <<EOF
2111 #line 2112 "configure"
2112 #include "confdefs.h"
2113 #include <sys/types.h>
2114 #if STDC_HEADERS
2115 #include <stdlib.h>
2116 #endif
2117 EOF
2118 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2119 egrep "mode_t" >/dev/null 2>&1; then
2120 rm -rf conftest*
2121 ac_cv_type_mode_t=yes
2122 else
2123 rm -rf conftest*
2124 ac_cv_type_mode_t=no
2125 fi
2126 rm -f conftest*
2127
2128 fi
2129 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
2130 if test $ac_cv_type_mode_t = no; then
2131 cat >> confdefs.h <<\EOF
2132 #define mode_t int
2133 EOF
2134
2135 fi
2136
2137 echo $ac_n "checking for off_t""... $ac_c" 1>&6
2138 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
2139 echo $ac_n "(cached) $ac_c" 1>&6
2140 else
2141 cat > conftest.$ac_ext <<EOF
2142 #line 2143 "configure"
2143 #include "confdefs.h"
2144 #include <sys/types.h>
2145 #if STDC_HEADERS
2146 #include <stdlib.h>
2147 #endif
2148 EOF
2149 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2150 egrep "off_t" >/dev/null 2>&1; then
2151 rm -rf conftest*
2152 ac_cv_type_off_t=yes
2153 else
2154 rm -rf conftest*
2155 ac_cv_type_off_t=no
2156 fi
2157 rm -f conftest*
2158
2159 fi
2160 echo "$ac_t""$ac_cv_type_off_t" 1>&6
2161 if test $ac_cv_type_off_t = no; then
2162 cat >> confdefs.h <<\EOF
2163 #define off_t long
2164 EOF
2165
2166 fi
2167
2168 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
2169 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
2170 echo $ac_n "(cached) $ac_c" 1>&6
2171 else
2172 cat > conftest.$ac_ext <<EOF
2173 #line 2174 "configure"
2174 #include "confdefs.h"
2175 #include <sys/types.h>
2176 #if STDC_HEADERS
2177 #include <stdlib.h>
2178 #endif
2179 EOF
2180 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2181 egrep "pid_t" >/dev/null 2>&1; then
2182 rm -rf conftest*
2183 ac_cv_type_pid_t=yes
2184 else
2185 rm -rf conftest*
2186 ac_cv_type_pid_t=no
2187 fi
2188 rm -f conftest*
2189
2190 fi
2191 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
2192 if test $ac_cv_type_pid_t = no; then
2193 cat >> confdefs.h <<\EOF
2194 #define pid_t int
2195 EOF
2196
2197 fi
2198
2199 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
2200 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
2201 echo $ac_n "(cached) $ac_c" 1>&6
2202 else
2203 cat > conftest.$ac_ext <<EOF
2204 #line 2205 "configure"
2205 #include "confdefs.h"
2206 #include <sys/types.h>
2207 #include <signal.h>
2208 #ifdef signal
2209 #undef signal
2210 #endif
2211 #ifdef __cplusplus
2212 extern "C" void (*signal (int, void (*)(int)))(int);
2213 #else
2214 void (*signal ()) ();
2215 #endif
2216
2217 int main() { return 0; }
2218 int t() {
2219 int i;
2220 ; return 0; }
2221 EOF
2222 if { (eval echo configure:2223: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2223 rm -rf conftest*
2224 ac_cv_type_signal=void
2225 else
2226 rm -rf conftest*
2227 ac_cv_type_signal=int
2228 fi
2229 rm -f conftest*
2230
2231 fi
2232
2233 echo "$ac_t""$ac_cv_type_signal" 1>&6
2234 cat >> confdefs.h <<EOF
2235 #define RETSIGTYPE $ac_cv_type_signal
2236 EOF
2237
2238
2239 echo $ac_n "checking for size_t""... $ac_c" 1>&6
2240 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
2241 echo $ac_n "(cached) $ac_c" 1>&6
2242 else
2243 cat > conftest.$ac_ext <<EOF
2244 #line 2245 "configure"
2245 #include "confdefs.h"
2246 #include <sys/types.h>
2247 #if STDC_HEADERS
2248 #include <stdlib.h>
2249 #endif
2250 EOF
2251 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2252 egrep "size_t" >/dev/null 2>&1; then
2253 rm -rf conftest*
2254 ac_cv_type_size_t=yes
2255 else
2256 rm -rf conftest*
2257 ac_cv_type_size_t=no
2258 fi
2259 rm -f conftest*
2260
2261 fi
2262 echo "$ac_t""$ac_cv_type_size_t" 1>&6
2263 if test $ac_cv_type_size_t = no; then
2264 cat >> confdefs.h <<\EOF
2265 #define size_t unsigned
2266 EOF
2267
2268 fi
2269
2270 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
2271 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
2272 echo $ac_n "(cached) $ac_c" 1>&6
2273 else
2274 cat > conftest.$ac_ext <<EOF
2275 #line 2276 "configure"
2276 #include "confdefs.h"
2277 #include <sys/types.h>
2278 EOF
2279 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2280 egrep "uid_t" >/dev/null 2>&1; then
2281 rm -rf conftest*
2282 ac_cv_type_uid_t=yes
2283 else
2284 rm -rf conftest*
2285 ac_cv_type_uid_t=no
2286 fi
2287 rm -f conftest*
2288
2289 fi
2290
2291 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
2292 if test $ac_cv_type_uid_t = no; then
2293 cat >> confdefs.h <<\EOF
2294 #define uid_t int
2295 EOF
2296
2297 cat >> confdefs.h <<\EOF
2298 #define gid_t int
2299 EOF
2300
2301 fi
2302
2303
2304 for ac_func in cfgetispeed cfgetospeed cfsetispeed cfsetospeed chdir chmod chown dup dup2 fchmod fchown fcntl fstat fstatfs getdirentries getegid geteuid getgid getpid getppid getrusage gettimeofday getuid ioctl kill link lseek lstat mkdir pipe readlink rmdir setreuid setregid stat sigprocmask stat symlink tcgetattr tcsetattr tcsendbreak tcdrain tcflush tcflow tcgetpgrp tcsetpgrp time umask unlink
2305 do
2306 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2307 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2308 echo $ac_n "(cached) $ac_c" 1>&6
2309 else
2310 cat > conftest.$ac_ext <<EOF
2311 #line 2312 "configure"
2312 #include "confdefs.h"
2313 /* System header to define __stub macros and hopefully few prototypes,
2314 which can conflict with char $ac_func(); below. */
2315 #include <assert.h>
2316 /* Override any gcc2 internal prototype to avoid an error. */
2317 /* We use char because int might match the return type of a gcc2
2318 builtin and then its argument prototype would still apply. */
2319 char $ac_func();
2320
2321 int main() { return 0; }
2322 int t() {
2323
2324 /* The GNU C library defines this for functions which it implements
2325 to always fail with ENOSYS. Some functions are actually named
2326 something starting with __ and the normal name is an alias. */
2327 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2328 choke me
2329 #else
2330 $ac_func();
2331 #endif
2332
2333 ; return 0; }
2334 EOF
2335 if { (eval echo configure:2336: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
2336 rm -rf conftest*
2337 eval "ac_cv_func_$ac_func=yes"
2338 else
2339 rm -rf conftest*
2340 eval "ac_cv_func_$ac_func=no"
2341 fi
2342 rm -f conftest*
2343
2344 fi
2345 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2346 echo "$ac_t""yes" 1>&6
2347 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2348 cat >> confdefs.h <<EOF
2349 #define $ac_tr_func 1
2350 EOF
2351
2352 else
2353 echo "$ac_t""no" 1>&6
2354 fi
2355 done
2356
2357
2358 for ac_hdr in fcntl.h stdlib.h string.h strings.h sys/ioctl.h sys/mount.h sys/param.h sys/resource.h sys/stat.h sys/termio.h sys/termios.h sys/time.h sys/times.h sys/types.h time.h unistd.h
2359 do
2360 ac_safe=`echo "$ac_hdr" | tr './\055' '___'`
2361 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2362 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2363 echo $ac_n "(cached) $ac_c" 1>&6
2364 else
2365 cat > conftest.$ac_ext <<EOF
2366 #line 2367 "configure"
2367 #include "confdefs.h"
2368 #include <$ac_hdr>
2369 EOF
2370 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2371 { (eval echo configure:2372: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2372 ac_err=`grep -v '^ *+' conftest.out`
2373 if test -z "$ac_err"; then
2374 rm -rf conftest*
2375 eval "ac_cv_header_$ac_safe=yes"
2376 else
2377 echo "$ac_err" >&5
2378 rm -rf conftest*
2379 eval "ac_cv_header_$ac_safe=no"
2380 fi
2381 rm -f conftest*
2382 fi
2383 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2384 echo "$ac_t""yes" 1>&6
2385 ac_tr_hdr=HAVE_`echo $ac_hdr | tr 'abcdefghijklmnopqrstuvwxyz./\055' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ___'`
2386 cat >> confdefs.h <<EOF
2387 #define $ac_tr_hdr 1
2388 EOF
2389
2390 else
2391 echo "$ac_t""no" 1>&6
2392 fi
2393 done
2394
2395 ac_header_dirent=no
2396 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
2397 do
2398 ac_safe=`echo "$ac_hdr" | tr './\055' '___'`
2399 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
2400 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
2401 echo $ac_n "(cached) $ac_c" 1>&6
2402 else
2403 cat > conftest.$ac_ext <<EOF
2404 #line 2405 "configure"
2405 #include "confdefs.h"
2406 #include <sys/types.h>
2407 #include <$ac_hdr>
2408 int main() { return 0; }
2409 int t() {
2410 DIR *dirp = 0;
2411 ; return 0; }
2412 EOF
2413 if { (eval echo configure:2414: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2414 rm -rf conftest*
2415 eval "ac_cv_header_dirent_$ac_safe=yes"
2416 else
2417 rm -rf conftest*
2418 eval "ac_cv_header_dirent_$ac_safe=no"
2419 fi
2420 rm -f conftest*
2421
2422 fi
2423 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
2424 echo "$ac_t""yes" 1>&6
2425 ac_tr_hdr=HAVE_`echo $ac_hdr | tr 'abcdedfghijklmnopqrstuvwxyz./\055' 'ABCDEDFGHIJKLMNOPQRSTUVWXYZ___'`
2426 cat >> confdefs.h <<EOF
2427 #define $ac_tr_hdr 1
2428 EOF
2429 ac_header_dirent=$ac_hdr; break
2430 else
2431 echo "$ac_t""no" 1>&6
2432 fi
2433 done
2434 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
2435 if test $ac_header_dirent = dirent.h; then
2436 echo $ac_n "checking for -ldir""... $ac_c" 1>&6
2437 ac_lib_var=`echo dir'_'opendir | tr './+\055' '__p_'`
2438 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2439 echo $ac_n "(cached) $ac_c" 1>&6
2440 else
2441 ac_save_LIBS="$LIBS"
2442 LIBS="-ldir $LIBS"
2443 cat > conftest.$ac_ext <<EOF
2444 #line 2445 "configure"
2445 #include "confdefs.h"
2446 /* Override any gcc2 internal prototype to avoid an error. */
2447 /* We use char because int might match the return type of a gcc2
2448 builtin and then its argument prototype would still apply. */
2449 char opendir();
2450
2451 int main() { return 0; }
2452 int t() {
2453 opendir()
2454 ; return 0; }
2455 EOF
2456 if { (eval echo configure:2457: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
2457 rm -rf conftest*
2458 eval "ac_cv_lib_$ac_lib_var=yes"
2459 else
2460 rm -rf conftest*
2461 eval "ac_cv_lib_$ac_lib_var=no"
2462 fi
2463 rm -f conftest*
2464 LIBS="$ac_save_LIBS"
2465
2466 fi
2467 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2468 echo "$ac_t""yes" 1>&6
2469 LIBS="$LIBS -ldir"
2470 else
2471 echo "$ac_t""no" 1>&6
2472 fi
2473
2474 else
2475 echo $ac_n "checking for -lx""... $ac_c" 1>&6
2476 ac_lib_var=`echo x'_'opendir | tr './+\055' '__p_'`
2477 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2478 echo $ac_n "(cached) $ac_c" 1>&6
2479 else
2480 ac_save_LIBS="$LIBS"
2481 LIBS="-lx $LIBS"
2482 cat > conftest.$ac_ext <<EOF
2483 #line 2484 "configure"
2484 #include "confdefs.h"
2485 /* Override any gcc2 internal prototype to avoid an error. */
2486 /* We use char because int might match the return type of a gcc2
2487 builtin and then its argument prototype would still apply. */
2488 char opendir();
2489
2490 int main() { return 0; }
2491 int t() {
2492 opendir()
2493 ; return 0; }
2494 EOF
2495 if { (eval echo configure:2496: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
2496 rm -rf conftest*
2497 eval "ac_cv_lib_$ac_lib_var=yes"
2498 else
2499 rm -rf conftest*
2500 eval "ac_cv_lib_$ac_lib_var=no"
2501 fi
2502 rm -f conftest*
2503 LIBS="$ac_save_LIBS"
2504
2505 fi
2506 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2507 echo "$ac_t""yes" 1>&6
2508 LIBS="$LIBS -lx"
2509 else
2510 echo "$ac_t""no" 1>&6
2511 fi
2512
2513 fi
2514
2515
2516 sim_termio=""
2517 echo $ac_n "checking for struct termios""... $ac_c" 1>&6
2518 if eval "test \"`echo '$''{'ac_cv_termios_struct'+set}'`\" = set"; then
2519 echo $ac_n "(cached) $ac_c" 1>&6
2520 else
2521 cat > conftest.$ac_ext <<EOF
2522 #line 2523 "configure"
2523 #include "confdefs.h"
2524 #include <sys/types.h>
2525 #include <sys/termios.h>
2526 int main() { return 0; }
2527 int t() {
2528 static struct termios x;
2529 x.c_iflag = 0;
2530 x.c_oflag = 0;
2531 x.c_cflag = 0;
2532 x.c_lflag = 0;
2533 x.c_cc[NCCS] = 0;
2534 ; return 0; }
2535 EOF
2536 if { (eval echo configure:2537: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2537 rm -rf conftest*
2538 ac_cv_termios_struct=yes
2539 else
2540 rm -rf conftest*
2541 ac_cv_termios_struct=no
2542 fi
2543 rm -f conftest*
2544
2545 fi
2546
2547 echo "$ac_t""$ac_cv_termios_struct" 1>&6
2548 if test $ac_cv_termios_struct = yes; then
2549 sim_termio="$sim_termio -DHAVE_TERMIOS_STRUCTURE"
2550 fi
2551
2552 if test "$ac_cv_termios_struct" = "yes"; then
2553 echo $ac_n "checking for c_line field in struct termios""... $ac_c" 1>&6
2554 if eval "test \"`echo '$''{'ac_cv_termios_cline'+set}'`\" = set"; then
2555 echo $ac_n "(cached) $ac_c" 1>&6
2556 else
2557 cat > conftest.$ac_ext <<EOF
2558 #line 2559 "configure"
2559 #include "confdefs.h"
2560 #include <sys/types.h>
2561 #include <sys/termios.h>
2562 int main() { return 0; }
2563 int t() {
2564 static struct termios x; x.c_line = 0;
2565 ; return 0; }
2566 EOF
2567 if { (eval echo configure:2568: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2568 rm -rf conftest*
2569 ac_cv_termios_cline=yes
2570 else
2571 rm -rf conftest*
2572 ac_cv_termios_cline=no
2573 fi
2574 rm -f conftest*
2575
2576 fi
2577
2578
2579 echo "$ac_t""$ac_cv_termios_cline" 1>&6
2580 if test $ac_cv_termios_cline = yes; then
2581 sim_termio="$sim_termio -DHAVE_TERMIOS_CLINE"
2582 fi
2583 else
2584 ac_cv_termios_cline=no
2585 fi
2586
2587 if test "$ac_cv_termios_struct" != "yes"; then
2588 echo $ac_n "checking for struct termio""... $ac_c" 1>&6
2589 if eval "test \"`echo '$''{'ac_cv_termio_struct'+set}'`\" = set"; then
2590 echo $ac_n "(cached) $ac_c" 1>&6
2591 else
2592 cat > conftest.$ac_ext <<EOF
2593 #line 2594 "configure"
2594 #include "confdefs.h"
2595 #include <sys/types.h>
2596 #include <sys/termio.h>
2597 int main() { return 0; }
2598 int t() {
2599 static struct termio x;
2600 x.c_iflag = 0;
2601 x.c_oflag = 0;
2602 x.c_cflag = 0;
2603 x.c_lflag = 0;
2604 x.c_cc[NCC] = 0;
2605 ; return 0; }
2606 EOF
2607 if { (eval echo configure:2608: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2608 rm -rf conftest*
2609 ac_cv_termio_struct=yes
2610 else
2611 rm -rf conftest*
2612 ac_cv_termio_struct=no
2613 fi
2614 rm -f conftest*
2615
2616 fi
2617
2618 echo "$ac_t""$ac_cv_termio_struct" 1>&6
2619 if test $ac_cv_termio_struct = yes; then
2620 sim_termio="$sim_termio -DHAVE_TERMIO_STRUCTURE"
2621 fi
2622 else
2623 ac_cv_termio_struct=no
2624 fi
2625
2626 if test "$ac_cv_termio_struct" = "yes"; then
2627 echo $ac_n "checking for c_line field in struct termio""... $ac_c" 1>&6
2628 if eval "test \"`echo '$''{'ac_cv_termio_cline'+set}'`\" = set"; then
2629 echo $ac_n "(cached) $ac_c" 1>&6
2630 else
2631 cat > conftest.$ac_ext <<EOF
2632 #line 2633 "configure"
2633 #include "confdefs.h"
2634 #include <sys/types.h>
2635 #include <sys/termio.h>
2636 int main() { return 0; }
2637 int t() {
2638 static struct termio x; x.c_line = 0;
2639 ; return 0; }
2640 EOF
2641 if { (eval echo configure:2642: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2642 rm -rf conftest*
2643 ac_cv_termio_cline=yes
2644 else
2645 rm -rf conftest*
2646 ac_cv_termio_cline=no
2647 fi
2648 rm -f conftest*
2649
2650 fi
2651
2652
2653 echo "$ac_t""$ac_cv_termio_cline" 1>&6
2654 if test $ac_cv_termio_cline = yes; then
2655 sim_termio="$sim_termio -DHAVE_TERMIO_CLINE"
2656 fi
2657 else
2658 ac_cv_termio_cline=no
2659 fi
2660
2661
2662
2663
2664 AR=${AR-ar}
2665
2666 # Extract the first word of "ranlib", so it can be a program name with args.
2667 set dummy ranlib; ac_word=$2
2668 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2669 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2670 echo $ac_n "(cached) $ac_c" 1>&6
2671 else
2672 if test -n "$RANLIB"; then
2673 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2674 else
2675 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2676 for ac_dir in $PATH; do
2677 test -z "$ac_dir" && ac_dir=.
2678 if test -f $ac_dir/$ac_word; then
2679 ac_cv_prog_RANLIB="ranlib"
2680 break
2681 fi
2682 done
2683 IFS="$ac_save_ifs"
2684 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2685 fi
2686 fi
2687 RANLIB="$ac_cv_prog_RANLIB"
2688 if test -n "$RANLIB"; then
2689 echo "$ac_t""$RANLIB" 1>&6
2690 else
2691 echo "$ac_t""no" 1>&6
2692 fi
2693
2694
2695
2696
2697
2698
2699
2700
2701
2702
2703
2704
2705
2706
2707
2708
2709
2710
2711
2712
2713
2714
2715
2716
2717
2718
2719
2720
2721
2722
2723
2724
2725
2726
2727
2728
2729
2730
2731
2732
2733 trap '' 1 2 15
2734 cat > confcache <<\EOF
2735 # This file is a shell script that caches the results of configure
2736 # tests run on this system so they can be shared between configure
2737 # scripts and configure runs. It is not useful on other systems.
2738 # If it contains results you don't want to keep, you may remove or edit it.
2739 #
2740 # By default, configure uses ./config.cache as the cache file,
2741 # creating it if it does not exist already. You can give configure
2742 # the --cache-file=FILE option to use a different cache file; that is
2743 # what configure does when it calls configure scripts in
2744 # subdirectories, so they share the cache.
2745 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2746 # config.status only pays attention to the cache file if you give it the
2747 # --recheck option to rerun configure.
2748 #
2749 EOF
2750 # Ultrix sh set writes to stderr and can't be redirected directly,
2751 # and sets the high bit in the cache file unless we assign to the vars.
2752 (set) 2>&1 |
2753 sed -n "s/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=\${\1='\2'}/p" \
2754 >> confcache
2755 if cmp -s $cache_file confcache; then
2756 :
2757 else
2758 if test -w $cache_file; then
2759 echo "updating cache $cache_file"
2760 cat confcache > $cache_file
2761 else
2762 echo "not updating unwritable cache $cache_file"
2763 fi
2764 fi
2765 rm -f confcache
2766
2767 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
2768
2769 test "x$prefix" = xNONE && prefix=$ac_default_prefix
2770 # Let make expand exec_prefix.
2771 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
2772
2773 # Any assignment to VPATH causes Sun make to only execute
2774 # the first set of double-colon rules, so remove it if not needed.
2775 # If there is a colon in the path, we need to keep it.
2776 if test "x$srcdir" = x.; then
2777 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
2778 fi
2779
2780 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
2781
2782 DEFS=-DHAVE_CONFIG_H
2783
2784 # Without the "./", some shells look in PATH for config.status.
2785 : ${CONFIG_STATUS=./config.status}
2786
2787 echo creating $CONFIG_STATUS
2788 rm -f $CONFIG_STATUS
2789 cat > $CONFIG_STATUS <<EOF
2790 #! /bin/sh
2791 # Generated automatically by configure.
2792 # Run this file to recreate the current configuration.
2793 # This directory was configured as follows,
2794 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
2795 #
2796 # $0 $ac_configure_args
2797 #
2798 # Compiler output produced by configure, useful for debugging
2799 # configure, is in ./config.log if it exists.
2800
2801 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
2802 for ac_option
2803 do
2804 case "\$ac_option" in
2805 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
2806 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
2807 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
2808 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
2809 echo "$CONFIG_STATUS generated by autoconf version 2.10"
2810 exit 0 ;;
2811 -help | --help | --hel | --he | --h)
2812 echo "\$ac_cs_usage"; exit 0 ;;
2813 *) echo "\$ac_cs_usage"; exit 1 ;;
2814 esac
2815 done
2816
2817 ac_given_srcdir=$srcdir
2818 ac_given_INSTALL="$INSTALL"
2819
2820 trap 'rm -fr `echo "Makefile config.h:config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
2821 EOF
2822 cat >> $CONFIG_STATUS <<EOF
2823
2824 # Protect against being on the right side of a sed subst in config.status.
2825 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
2826 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
2827 $ac_vpsub
2828 $extrasub
2829 s%@CFLAGS@%$CFLAGS%g
2830 s%@CPPFLAGS@%$CPPFLAGS%g
2831 s%@CXXFLAGS@%$CXXFLAGS%g
2832 s%@DEFS@%$DEFS%g
2833 s%@LDFLAGS@%$LDFLAGS%g
2834 s%@LIBS@%$LIBS%g
2835 s%@exec_prefix@%$exec_prefix%g
2836 s%@prefix@%$prefix%g
2837 s%@program_transform_name@%$program_transform_name%g
2838 s%@bindir@%$bindir%g
2839 s%@sbindir@%$sbindir%g
2840 s%@libexecdir@%$libexecdir%g
2841 s%@datadir@%$datadir%g
2842 s%@sysconfdir@%$sysconfdir%g
2843 s%@sharedstatedir@%$sharedstatedir%g
2844 s%@localstatedir@%$localstatedir%g
2845 s%@libdir@%$libdir%g
2846 s%@includedir@%$includedir%g
2847 s%@oldincludedir@%$oldincludedir%g
2848 s%@infodir@%$infodir%g
2849 s%@mandir@%$mandir%g
2850 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
2851 s%@INSTALL_DATA@%$INSTALL_DATA%g
2852 s%@CC@%$CC%g
2853 s%@host@%$host%g
2854 s%@host_alias@%$host_alias%g
2855 s%@host_cpu@%$host_cpu%g
2856 s%@host_vendor@%$host_vendor%g
2857 s%@host_os@%$host_os%g
2858 s%@target@%$target%g
2859 s%@target_alias@%$target_alias%g
2860 s%@target_cpu@%$target_cpu%g
2861 s%@target_vendor@%$target_vendor%g
2862 s%@target_os@%$target_os%g
2863 s%@build@%$build%g
2864 s%@build_alias@%$build_alias%g
2865 s%@build_cpu@%$build_cpu%g
2866 s%@build_vendor@%$build_vendor%g
2867 s%@build_os@%$build_os%g
2868 s%@LIBOBJS@%$LIBOBJS%g
2869 s%@CPP@%$CPP%g
2870 s%@CC_FOR_BUILD@%$CC_FOR_BUILD%g
2871 s%@HDEFINES@%$HDEFINES%g
2872 s%@AR@%$AR%g
2873 s%@RANLIB@%$RANLIB%g
2874 s%@sim_cflags@%$sim_cflags%g
2875 s%@sim_warnings@%$sim_warnings%g
2876 s%@sim_line_nr@%$sim_line_nr%g
2877 s%@sim_config@%$sim_config%g
2878 s%@sim_opcode@%$sim_opcode%g
2879 s%@sim_switch@%$sim_switch%g
2880 s%@sim_dup@%$sim_dup%g
2881 s%@sim_jump@%$sim_jump%g
2882 s%@sim_filter@%$sim_filter%g
2883 s%@sim_icache@%$sim_icache%g
2884 s%@sim_hw_src@%$sim_hw_src%g
2885 s%@sim_hw_obj@%$sim_hw_obj%g
2886 s%@sim_pk_src@%$sim_pk_src%g
2887 s%@sim_pk_obj@%$sim_pk_obj%g
2888 s%@sim_inline@%$sim_inline%g
2889 s%@sim_bswap@%$sim_bswap%g
2890 s%@sim_endian@%$sim_endian%g
2891 s%@sim_regparm@%$sim_regparm%g
2892 s%@sim_stdcall@%$sim_stdcall%g
2893 s%@sim_xor_endian@%$sim_xor_endian%g
2894 s%@sim_hostendian@%$sim_hostendian%g
2895 s%@sim_smp@%$sim_smp%g
2896 s%@sim_igen_smp@%$sim_igen_smp%g
2897 s%@sim_bitsize@%$sim_bitsize%g
2898 s%@sim_hostbitsize@%$sim_hostbitsize%g
2899 s%@sim_env@%$sim_env%g
2900 s%@sim_timebase@%$sim_timebase%g
2901 s%@sim_alignment@%$sim_alignment%g
2902 s%@sim_float@%$sim_float%g
2903 s%@sim_trace@%$sim_trace%g
2904 s%@sim_assert@%$sim_assert%g
2905 s%@sim_reserved@%$sim_reserved%g
2906 s%@sim_monitor@%$sim_monitor%g
2907 s%@sim_model@%$sim_model%g
2908 s%@sim_default_model@%$sim_default_model%g
2909 s%@sim_model_issue@%$sim_model_issue%g
2910 s%@sim_stdio@%$sim_stdio%g
2911 s%@sim_termio@%$sim_termio%g
2912
2913 CEOF
2914 EOF
2915 cat >> $CONFIG_STATUS <<EOF
2916
2917 CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
2918 EOF
2919 cat >> $CONFIG_STATUS <<\EOF
2920 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
2921 # Support "outfile[:infile]", defaulting infile="outfile.in".
2922 case "$ac_file" in
2923 *:*) ac_file_in=`echo "$ac_file"|sed 's%.*:%%'`
2924 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2925 *) ac_file_in="${ac_file}.in" ;;
2926 esac
2927
2928 # Adjust relative srcdir, etc. for subdirectories.
2929
2930 # Remove last slash and all that follows it. Not all systems have dirname.
2931 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2932 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2933 # The file is in a subdirectory.
2934 test ! -d "$ac_dir" && mkdir "$ac_dir"
2935 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
2936 # A "../" for each directory in $ac_dir_suffix.
2937 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
2938 else
2939 ac_dir_suffix= ac_dots=
2940 fi
2941
2942 case "$ac_given_srcdir" in
2943 .) srcdir=.
2944 if test -z "$ac_dots"; then top_srcdir=.
2945 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
2946 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
2947 *) # Relative path.
2948 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
2949 top_srcdir="$ac_dots$ac_given_srcdir" ;;
2950 esac
2951
2952 case "$ac_given_INSTALL" in
2953 [/$]*) INSTALL="$ac_given_INSTALL" ;;
2954 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
2955 esac
2956 echo creating "$ac_file"
2957 rm -f "$ac_file"
2958 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
2959 case "$ac_file" in
2960 *Makefile*) ac_comsub="1i\\
2961 # $configure_input" ;;
2962 *) ac_comsub= ;;
2963 esac
2964 sed -e "$ac_comsub
2965 s%@configure_input@%$configure_input%g
2966 s%@srcdir@%$srcdir%g
2967 s%@top_srcdir@%$top_srcdir%g
2968 s%@INSTALL@%$INSTALL%g
2969 " -f conftest.subs $ac_given_srcdir/$ac_file_in > $ac_file
2970 fi; done
2971 rm -f conftest.subs
2972
2973 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
2974 # NAME is the cpp macro being defined and VALUE is the value it is being given.
2975 #
2976 # ac_d sets the value in "#define NAME VALUE" lines.
2977 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
2978 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
2979 ac_dC='\3'
2980 ac_dD='%g'
2981 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
2982 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
2983 ac_uB='\([ ]\)%\1#\2define\3'
2984 ac_uC=' '
2985 ac_uD='\4%g'
2986 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
2987 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
2988 ac_eB='$%\1#\2define\3'
2989 ac_eC=' '
2990 ac_eD='%g'
2991
2992 CONFIG_HEADERS=${CONFIG_HEADERS-"config.h:config.in"}
2993 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
2994 # Support "outfile[:infile]", defaulting infile="outfile.in".
2995 case "$ac_file" in
2996 *:*) ac_file_in=`echo "$ac_file"|sed 's%.*:%%'`
2997 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2998 *) ac_file_in="${ac_file}.in" ;;
2999 esac
3000
3001 echo creating $ac_file
3002
3003 rm -f conftest.frag conftest.in conftest.out
3004 cp $ac_given_srcdir/$ac_file_in conftest.in
3005
3006 EOF
3007
3008 # Transform confdefs.h into a sed script conftest.vals that substitutes
3009 # the proper values into config.h.in to produce config.h. And first:
3010 # Protect against being on the right side of a sed subst in config.status.
3011 # Protect against being in an unquoted here document in config.status.
3012 rm -f conftest.vals
3013 cat > conftest.hdr <<\EOF
3014 s/[\\&%]/\\&/g
3015 s%[\\$`]%\\&%g
3016 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
3017 s%ac_d%ac_u%gp
3018 s%ac_u%ac_e%gp
3019 EOF
3020 sed -n -f conftest.hdr confdefs.h > conftest.vals
3021 rm -f conftest.hdr
3022
3023 # This sed command replaces #undef with comments. This is necessary, for
3024 # example, in the case of _POSIX_SOURCE, which is predefined and required
3025 # on some systems where configure will not decide to define it.
3026 cat >> conftest.vals <<\EOF
3027 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
3028 EOF
3029
3030 # Break up conftest.vals because some shells have a limit on
3031 # the size of here documents, and old seds have small limits too.
3032 # Maximum number of lines to put in a single here document.
3033 ac_max_here_lines=12
3034
3035 rm -f conftest.tail
3036 while :
3037 do
3038 ac_lines=`grep -c . conftest.vals`
3039 # grep -c gives empty output for an empty file on some AIX systems.
3040 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
3041 # Write a limited-size here document to conftest.frag.
3042 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
3043 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
3044 echo 'CEOF
3045 sed -f conftest.frag conftest.in > conftest.out
3046 rm -f conftest.in
3047 mv conftest.out conftest.in
3048 ' >> $CONFIG_STATUS
3049 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
3050 rm -f conftest.vals
3051 mv conftest.tail conftest.vals
3052 done
3053 rm -f conftest.vals
3054
3055 cat >> $CONFIG_STATUS <<\EOF
3056 rm -f conftest.frag conftest.h
3057 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
3058 cat conftest.in >> conftest.h
3059 rm -f conftest.in
3060 if cmp -s $ac_file conftest.h 2>/dev/null; then
3061 echo "$ac_file is unchanged"
3062 rm -f conftest.h
3063 else
3064 # Remove last slash and all that follows it. Not all systems have dirname.
3065 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3066 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3067 # The file is in a subdirectory.
3068 test ! -d "$ac_dir" && mkdir "$ac_dir"
3069 fi
3070 rm -f $ac_file
3071 mv conftest.h $ac_file
3072 fi
3073 fi; done
3074
3075
3076 case x$CONFIG_HEADERS in xconfig.h:config.in) echo > stamp-h ;; esac
3077 exit 0
3078 EOF
3079 chmod +x $CONFIG_STATUS
3080 rm -fr confdefs* $ac_clean_files
3081 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
3082
This page took 0.113654 seconds and 4 git commands to generate.