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