3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.10
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
12 ac_default_prefix
=/usr
/local
13 # Any additions from configure.in:
15 --enable-sim-cflags=opts Extra CFLAGS for use in building simulator"
17 --enable-sim-warnings=opts Extra CFLAGS for turning on compiler warnings except for idecode.o, semantics.o and psim.o"
19 --enable-sim-line-nr=opts Generate extra CPP code that references source rather than generated code"
21 --enable-sim-config=file Override default config file"
23 --enable-sim-opcode=which Override default opcode lookup."
25 --enable-sim-switch Use a switch instead of a table for instruction call."
27 --enable-sim-duplicate Expand (duplicate) semantic functions."
29 --enable-sim-jump Jump between semantic code (instead of call/return)."
31 --enable-sim-filter=rule Specify filter rules."
33 --enable-sim-icache=size Specify instruction cache size."
35 --enable-sim-hardware=list Specify the hardware to be included in the build."
37 --enable-sim-packages=list Specify the packages to be included in the build."
39 --enable-sim-inline=inlines Specify which functions should be inlined."
41 --enable-sim-bswap Use the BSWAP instruction on Intel 486s and Pentiums."
43 --enable-sim-endian=endian Specify target byte endian orientation."
45 --enable-sim-regparm=nr-parm Pass parameters in registers instead of on the stack - x86/GCC specific."
47 --enable-sim-stdcall=type Use an alternative function call/return mechanism - x86/GCC specific."
49 --enable-sim-hostendain=end Specify host byte endian orientation."
51 --enable-sim-smp=n Specify number of processors to configure for."
53 --enable-sim-xor-endian=n Specify number bytes involved in PowerPC XOR bi-endian mode (default 8)."
55 --enable-sim-bitsize=n Specify target bitsize (32 or 64)."
57 --enable-sim-hostbitsize=32|64 Specify host bitsize (32 or 64)."
59 --enable-sim-env=env Specify target environment (operating, virtual, user)."
61 --enable-sim-timebase Specify whether the PPC timebase is supported."
63 --enable-sim-alignment=align Specify strict or nonstrict alignment."
65 --enable-sim-trace Specify whether tracing is supported."
67 --enable-sim-assert Specify whether to perform random assertions."
69 --enable-sim-reserved-bits Specify whether to check reserved bits in instruction."
71 --enable-sim-float Specify whether to use host floating point or simulate."
73 --enable-sim-monitor=mon Specify whether to enable monitoring events."
75 --enable-sim-model=which Specify PowerPC to model."
77 --enable-sim-default-model=which Specify default PowerPC to model."
79 --enable-sim-model-issue Specify whether to simulate model specific actions"
81 --enable-sim-stdio Specify whether to use stdio for console input/output."
83 # Initialize some variables set by options.
84 # The variables have the same names as the options, with
85 # dashes changed to underlines.
87 cache_file
=.
/config.cache
96 program_transform_name
=s
,x
,x
,
104 bindir
='${exec_prefix}/bin'
105 sbindir
='${exec_prefix}/sbin'
106 libexecdir
='${exec_prefix}/libexec'
107 datadir
='${prefix}/share'
108 sysconfdir
='${prefix}/etc'
109 sharedstatedir
='${prefix}/com'
110 localstatedir
='${prefix}/var'
111 libdir
='${exec_prefix}/lib'
112 includedir
='${prefix}/include'
113 oldincludedir
='/usr/include'
114 infodir
='${prefix}/info'
115 mandir
='${prefix}/man'
117 # Initialize some other variables.
125 # If the previous option needs an argument, assign it.
126 if test -n "$ac_prev"; then
127 eval "$ac_prev=\$ac_option"
133 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
137 # Accept the important Cygnus configure options, so we can diagnose typos.
141 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
143 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
144 bindir
="$ac_optarg" ;;
146 -build |
--build |
--buil |
--bui |
--bu)
148 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
149 build
="$ac_optarg" ;;
151 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
152 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
153 ac_prev
=cache_file
;;
154 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
155 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
156 cache_file
="$ac_optarg" ;;
158 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
160 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
162 datadir
="$ac_optarg" ;;
164 -disable-* |
--disable-*)
165 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
166 # Reject names that are not valid shell variable names.
167 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
168 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
170 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
171 eval "enable_${ac_feature}=no" ;;
173 -enable-* |
--enable-*)
174 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
175 # Reject names that are not valid shell variable names.
176 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
177 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
179 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
184 eval "enable_${ac_feature}='$ac_optarg'" ;;
186 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
187 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
188 |
--exec |
--exe |
--ex)
189 ac_prev
=exec_prefix
;;
190 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
191 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
192 |
--exec=* |
--exe=* |
--ex=*)
193 exec_prefix
="$ac_optarg" ;;
195 -gas |
--gas |
--ga |
--g)
196 # Obsolete; use --with-gas.
199 -help |
--help |
--hel |
--he)
200 # Omit some internal or obsolete options to make the list less imposing.
201 # This message is too long to be a string in the A/UX 3.1 sh.
203 Usage: configure [options] [host]
204 Options: [defaults in brackets after descriptions]
206 --cache-file=FILE cache test results in FILE
207 --help print this message
208 --no-create do not create output files
209 --quiet, --silent do not print \`checking...' messages
210 --version print the version of autoconf that created configure
211 Directory and file names:
212 --prefix=PREFIX install architecture-independent files in PREFIX
214 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
216 --bindir=DIR user executables in DIR [EPREFIX/bin]
217 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
218 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
219 --datadir=DIR read-only architecture-independent data in DIR
221 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
222 --sharedstatedir=DIR modifiable architecture-independent data in DIR
224 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
225 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
226 --includedir=DIR C header files in DIR [PREFIX/include]
227 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
228 --infodir=DIR info documentation in DIR [PREFIX/info]
229 --mandir=DIR man documentation in DIR [PREFIX/man]
230 --srcdir=DIR find the sources in DIR [configure dir or ..]
231 --program-prefix=PREFIX prepend PREFIX to installed program names
232 --program-suffix=SUFFIX append SUFFIX to installed program names
233 --program-transform-name=PROGRAM
234 run sed PROGRAM on installed program names
238 --build=BUILD configure for building on BUILD [BUILD=HOST]
239 --host=HOST configure for HOST [guessed]
240 --target=TARGET configure for TARGET [TARGET=HOST]
241 Features and packages:
242 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
243 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
244 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
245 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
246 --x-includes=DIR X include files are in DIR
247 --x-libraries=DIR X library files are in DIR
249 if test -n "$ac_help"; then
250 echo "--enable and --with options recognized:$ac_help"
254 -host |
--host |
--hos |
--ho)
256 -host=* |
--host=* |
--hos=* |
--ho=*)
259 -includedir |
--includedir |
--includedi |
--included |
--include \
260 |
--includ |
--inclu |
--incl |
--inc)
261 ac_prev
=includedir
;;
262 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
263 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
264 includedir
="$ac_optarg" ;;
266 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
268 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
269 infodir
="$ac_optarg" ;;
271 -libdir |
--libdir |
--libdi |
--libd)
273 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
274 libdir
="$ac_optarg" ;;
276 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
277 |
--libexe |
--libex |
--libe)
278 ac_prev
=libexecdir
;;
279 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
280 |
--libexe=* |
--libex=* |
--libe=*)
281 libexecdir
="$ac_optarg" ;;
283 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
284 |
--localstate |
--localstat |
--localsta |
--localst \
285 |
--locals |
--local |
--loca |
--loc |
--lo)
286 ac_prev
=localstatedir
;;
287 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
288 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
289 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
290 localstatedir
="$ac_optarg" ;;
292 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
294 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
295 mandir
="$ac_optarg" ;;
298 # Obsolete; use --without-fp.
301 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
305 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
306 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
309 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
310 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
311 |
--oldin |
--oldi |
--old |
--ol |
--o)
312 ac_prev
=oldincludedir
;;
313 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
314 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
315 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
316 oldincludedir
="$ac_optarg" ;;
318 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
320 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
321 prefix
="$ac_optarg" ;;
323 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
324 |
--program-pre |
--program-pr |
--program-p)
325 ac_prev
=program_prefix
;;
326 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
327 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
328 program_prefix
="$ac_optarg" ;;
330 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
331 |
--program-suf |
--program-su |
--program-s)
332 ac_prev
=program_suffix
;;
333 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
334 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
335 program_suffix
="$ac_optarg" ;;
337 -program-transform-name |
--program-transform-name \
338 |
--program-transform-nam |
--program-transform-na \
339 |
--program-transform-n |
--program-transform- \
340 |
--program-transform |
--program-transfor \
341 |
--program-transfo |
--program-transf \
342 |
--program-trans |
--program-tran \
343 |
--progr-tra |
--program-tr |
--program-t)
344 ac_prev
=program_transform_name
;;
345 -program-transform-name=* |
--program-transform-name=* \
346 |
--program-transform-nam=* |
--program-transform-na=* \
347 |
--program-transform-n=* |
--program-transform-=* \
348 |
--program-transform=* |
--program-transfor=* \
349 |
--program-transfo=* |
--program-transf=* \
350 |
--program-trans=* |
--program-tran=* \
351 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
352 program_transform_name
="$ac_optarg" ;;
354 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
355 |
-silent |
--silent |
--silen |
--sile |
--sil)
358 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
360 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
362 sbindir
="$ac_optarg" ;;
364 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
365 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
366 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
368 ac_prev
=sharedstatedir
;;
369 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
370 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
371 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
373 sharedstatedir
="$ac_optarg" ;;
375 -site |
--site |
--sit)
377 -site=* |
--site=* |
--sit=*)
380 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
382 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
383 srcdir
="$ac_optarg" ;;
385 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
386 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
387 ac_prev
=sysconfdir
;;
388 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
389 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
390 sysconfdir
="$ac_optarg" ;;
392 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
394 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
395 target
="$ac_optarg" ;;
397 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
400 -version |
--version |
--versio |
--versi |
--vers)
401 echo "configure generated by autoconf version 2.10"
405 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
406 # Reject names that are not valid shell variable names.
407 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
408 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
410 ac_package
=`echo $ac_package| sed 's/-/_/g'`
415 eval "with_${ac_package}='$ac_optarg'" ;;
417 -without-* |
--without-*)
418 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
419 # Reject names that are not valid shell variable names.
420 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
421 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
423 ac_package
=`echo $ac_package| sed 's/-/_/g'`
424 eval "with_${ac_package}=no" ;;
427 # Obsolete; use --with-x.
430 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
431 |
--x-incl |
--x-inc |
--x-in |
--x-i)
432 ac_prev
=x_includes
;;
433 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
434 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
435 x_includes
="$ac_optarg" ;;
437 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
438 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
439 ac_prev
=x_libraries
;;
440 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
441 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
442 x_libraries
="$ac_optarg" ;;
444 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
448 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
449 echo "configure: warning: $ac_option: invalid host type" 1>&2
451 if test "x$nonopt" != xNONE
; then
452 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
460 if test -n "$ac_prev"; then
461 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
464 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
466 # File descriptor usage:
469 # 2 errors and warnings
470 # 3 some systems may open it to /dev/tty
471 # 4 used on the Kubota Titan
472 # 6 checking for... messages and results
473 # 5 compiler messages saved in config.log
474 if test "$silent" = yes; then
482 This file contains any messages produced by compilers while
483 running configure, to aid debugging if configure makes a mistake.
486 # Strip out --no-create and --no-recursion so they do not pile up.
487 # Also quote any args containing shell metacharacters.
492 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
493 |
--no-cr |
--no-c) ;;
494 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
495 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
496 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
497 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
498 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
503 # Only set LANG and LC_ALL to C if already set.
504 # These must not be set unconditionally because not all systems understand
505 # e.g. LANG=C (notably SCO).
506 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
507 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
509 # confdefs.h avoids OS command line length limits that DEFS can exceed.
510 rm -rf conftest
* confdefs.h
511 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
514 # A filename unique to this package, relative to the directory that
515 # configure is in, which we can look for to find out if srcdir is correct.
516 ac_unique_file
=Makefile.
in
518 # Find the source files, if location was not specified.
519 if test -z "$srcdir"; then
520 ac_srcdir_defaulted
=yes
521 # Try the directory containing this script, then its parent.
523 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
524 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
526 if test ! -r $srcdir/$ac_unique_file; then
530 ac_srcdir_defaulted
=no
532 if test ! -r $srcdir/$ac_unique_file; then
533 if test "$ac_srcdir_defaulted" = yes; then
534 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
536 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
539 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
541 # Prefer explicitly selected file to automatically selected ones.
542 if test -z "$CONFIG_SITE"; then
543 if test "x$prefix" != xNONE
; then
544 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
546 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
549 for ac_site_file
in $CONFIG_SITE; do
550 if test -r "$ac_site_file"; then
551 echo "loading site script $ac_site_file"
556 if test -r "$cache_file"; then
557 echo "loading cache $cache_file"
560 echo "creating cache $cache_file"
565 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
566 ac_cpp
='$CPP $CPPFLAGS'
567 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
568 ac_link
='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
570 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
571 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
572 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
579 ac_n
= ac_c
='\c' ac_t
=
585 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
586 if test -f $ac_dir/install-sh
; then
588 ac_install_sh
="$ac_aux_dir/install-sh -c"
590 elif test -f $ac_dir/install.sh
; then
592 ac_install_sh
="$ac_aux_dir/install.sh -c"
596 if test -z "$ac_aux_dir"; then
597 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
599 ac_config_guess
=$ac_aux_dir/config.guess
600 ac_config_sub
=$ac_aux_dir/config.sub
601 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
603 # Find a good install program. We prefer a C program (faster),
604 # so one script is as good as another. But avoid the broken or
605 # incompatible versions:
606 # SysV /etc/install, /usr/sbin/install
607 # SunOS /usr/etc/install
610 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
611 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
612 # ./install, which can be erroneously created by make from ./install.sh.
613 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
614 if test -z "$INSTALL"; then
615 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
616 echo $ac_n "(cached) $ac_c" 1>&6
618 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
619 for ac_dir
in $PATH; do
620 # Account for people who put trailing slashes in PATH elements.
622 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
624 # OSF1 and SCO ODT 3.0 have their own names for install.
625 for ac_prog
in ginstall installbsd scoinst
install; do
626 if test -f $ac_dir/$ac_prog; then
627 if test $ac_prog = install &&
628 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
629 # AIX install. It has an incompatible calling convention.
630 # OSF/1 installbsd also uses dspmsg, but is usable.
633 ac_cv_path_install
="$ac_dir/$ac_prog -c"
644 if test "${ac_cv_path_install+set}" = set; then
645 INSTALL
="$ac_cv_path_install"
647 # As a last resort, use the slow shell script. We don't cache a
648 # path for INSTALL within a source directory, because that will
649 # break other packages using the cache if that directory is
650 # removed, or if the path is relative.
651 INSTALL
="$ac_install_sh"
654 echo "$ac_t""$INSTALL" 1>&6
656 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
657 # It thinks the first close brace ends the variable substitution.
658 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
660 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
662 # Extract the first word of "gcc", so it can be a program name with args.
663 set dummy gcc
; ac_word
=$2
664 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
665 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
666 echo $ac_n "(cached) $ac_c" 1>&6
668 if test -n "$CC"; then
669 ac_cv_prog_CC
="$CC" # Let the user override the test.
671 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
672 for ac_dir
in $PATH; do
673 test -z "$ac_dir" && ac_dir
=.
674 if test -f $ac_dir/$ac_word; then
683 if test -n "$CC"; then
684 echo "$ac_t""$CC" 1>&6
686 echo "$ac_t""no" 1>&6
689 if test -z "$CC"; then
690 # Extract the first word of "cc", so it can be a program name with args.
691 set dummy cc
; ac_word
=$2
692 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
693 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
694 echo $ac_n "(cached) $ac_c" 1>&6
696 if test -n "$CC"; then
697 ac_cv_prog_CC
="$CC" # Let the user override the test.
699 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
701 for ac_dir
in $PATH; do
702 test -z "$ac_dir" && ac_dir
=.
703 if test -f $ac_dir/$ac_word; then
704 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
713 if test $ac_prog_rejected = yes; then
714 # We found a bogon in the path, so make sure we never use it.
715 set dummy
$ac_cv_prog_CC
717 if test $# -gt 0; then
718 # We chose a different compiler from the bogus one.
719 # However, it has the same basename, so the bogon will be chosen
720 # first if we set CC to just the basename; use the full file name.
722 set dummy
"$ac_dir/$ac_word" "$@"
730 if test -n "$CC"; then
731 echo "$ac_t""$CC" 1>&6
733 echo "$ac_t""no" 1>&6
736 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
739 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
740 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
741 echo $ac_n "(cached) $ac_c" 1>&6
743 cat > conftest.c
<<EOF
748 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:749: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
755 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
756 if test $ac_cv_prog_gcc = yes; then
758 if test "${CFLAGS+set}" != set; then
759 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
760 if eval "test \"`echo '$''{'ac_cv_prog_gcc_g'+set}'`\" = set"; then
761 echo $ac_n "(cached) $ac_c" 1>&6
763 echo 'void f(){}' > conftest.c
764 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
773 echo "$ac_t""$ac_cv_prog_gcc_g" 1>&6
774 if test $ac_cv_prog_gcc_g = yes; then
782 test "${CFLAGS+set}" = set || CFLAGS
="-g"
786 # Put a plausible default for CC_FOR_BUILD in Makefile.
787 # If we cannot run a trivial program, we must be cross compiling.
788 echo $ac_n "checking whether cross-compiling""... $ac_c" 1>&6
789 if eval "test \"`echo '$''{'ac_cv_c_cross'+set}'`\" = set"; then
790 echo $ac_n "(cached) $ac_c" 1>&6
792 if test "$cross_compiling" = yes; then
795 cat > conftest.
$ac_ext <<EOF
796 #line 797 "configure"
797 #include "confdefs.h"
800 { (eval echo configure
:801: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
801 if test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
; then
810 echo "$ac_t""$ac_cv_c_cross" 1>&6
811 cross_compiling
=$ac_cv_c_cross
813 if test "x$cross_compiling" = "xno"; then
819 # Check whether --enable-sim-cflags or --disable-sim-cflags was given.
820 if test "${enable_sim_cflags+set}" = set; then
821 enableval
="$enable_sim_cflags"
822 case "${enableval}" in
823 yes) sim_cflags
="-O2 -fomit-frame-pointer";;
825 *) sim_cflags
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
827 if test x
"$silent" != x
"yes" && test x
"$sim_cflags" != x
""; then
828 echo "Setting sim cflags = $sim_cflags" 6>&1
834 # Check whether --enable-sim-warnings or --disable-sim-warnings was given.
835 if test "${enable_sim_warnings+set}" = set; then
836 enableval
="$enable_sim_warnings"
837 case "${enableval}" in
838 yes) sim_warnings
="-Werror -Wall -Wpointer-arith -Wmissing-prototypes";;
839 no
) sim_warnings
="-w";;
840 *) sim_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
842 if test x
"$silent" != x
"yes" && test x
"$sim_warnings" != x
""; then
843 echo "Setting warning flags = $sim_warnings" 6>&1
849 # Check whether --enable-sim-line-nr or --disable-sim-line-nr was given.
850 if test "${enable_sim_line_nr+set}" = set; then
851 enableval
="$enable_sim_line_nr"
852 case "${enableval}" in
853 yes) sim_line_nr
="";;
854 no
) sim_line_nr
="-L";;
855 *) { echo "configure: error: "--enable-sim-line-nr does not take a value
"" 1>&2; exit 1; }; sim_line_nr
="";;
857 if test x
"$silent" != x
"yes" && test x
"$sim_line_nr" != x
""; then
858 echo "Setting warning flags = $sim_line_nr" 6>&1
864 # Check whether --enable-sim-config or --disable-sim-config was given.
865 if test "${enable_sim_config+set}" = set; then
866 enableval
="$enable_sim_config"
867 case "${enableval}" in
868 yes|no
) { echo "configure: error: "No value supplied
for --enable-sim-config=file"" 1>&2; exit 1; };;
869 *) if test -f "${srcdir}/${enableval}"; then
870 sim_config
="${enableval}";
871 elif test -f "${srcdir}/${enableval}-config.h"; then
872 sim_config
="${enableval}-config.h"
874 { echo "configure: error: "Config
file $enableval was not found
"" 1>&2; exit 1; };
875 sim_config
=std-config.h
878 if test x
"$silent" != x
"yes" && test x
"$sim_config" != x
""; then
879 echo "Setting config flags = $sim_config" 6>&1
882 sim_config
="std-config.h"
883 if test x
"$silent" != x
"yes"; then
884 echo "Setting config flags = $sim_config" 6>&1
888 # Check whether --enable-sim-opcode or --disable-sim-opcode was given.
889 if test "${enable_sim_opcode+set}" = set; then
890 enableval
="$enable_sim_opcode"
891 case "${enableval}" in
892 yes|no
) { echo "configure: error: "No value supplied
for --enable-sim-opcode=file"" 1>&2; exit 1; };;
893 *) if test -f "${srcdir}/${enableval}"; then
894 sim_opcode
="${enableval}"
895 elif test -f "${srcdir}/ppc-opcode-${enableval}"; then
896 sim_opcode
="ppc-opcode-${enableval}"
898 { echo "configure: error: "File
$enableval is not an opcode rules
file"" 1>&2; exit 1; };
899 sim_opcode
="ppc-opcode-complex"
902 if test x
"$silent" != x
"yes" && test x
"$sim_opcode" != x
""; then
903 echo "Setting opcode flags = $sim_opcode" 6>&1
906 sim_opcode
="ppc-opcode-complex"
907 if test x
"$silent" != x
"yes"; then
908 echo "Setting opcode flags = $sim_opcode"
912 # Check whether --enable-sim-switch or --disable-sim-switch was given.
913 if test "${enable_sim_switch+set}" = set; then
914 enableval
="$enable_sim_switch"
915 case "${enableval}" in
916 yes) sim_switch
="-s";;
918 *) { echo "configure: error: "--enable-sim-switch does not take a value
"" 1>&2; exit 1; }; sim_switch
="";;
920 if test x
"$silent" != x
"yes" && test x
"$sim_switch" != x
""; then
921 echo "Setting switch flags = $sim_switch" 6>&1
925 if test x
"$silent" != x
"yes"; then
926 echo "Setting switch flags = $sim_switch" 6>&1
930 # Check whether --enable-sim-duplicate or --disable-sim-duplicate was given.
931 if test "${enable_sim_duplicate+set}" = set; then
932 enableval
="$enable_sim_duplicate"
933 case "${enableval}" in
936 *) { echo "configure: error: "--enable-sim-duplicate does not take a value
"" 1>&2; exit 1; }; sim_dup
="";;
938 if test x
"$silent" != x
"yes" && test x
"$sim_dup" != x
""; then
939 echo "Setting duplicate flags = $sim_dup" 6>&1
943 if test x
"$silent" != x
"yes"; then
944 echo "Setting duplicate flags = $sim_dup" 6>&1
948 # Check whether --enable-sim-jump or --disable-sim-jump was given.
949 if test "${enable_sim_jump+set}" = set; then
950 enableval
="$enable_sim_jump"
951 case "${enableval}" in
954 *) { echo "configure: error: "--enable-sim-jump does not take a value
"" 1>&2; exit 1; }; sim_jump
="";;
956 if test x
"$silent" != x
"yes" && test x
"$sim_jump" != x
""; then
957 echo "Setting jump flag = $sim_jump" 6>&1
961 if test x
"$silent" != x
"yes"; then
962 echo "Setting jump flag = $sim_jump" 6>&1
966 # Check whether --enable-sim-filter or --disable-sim-filter was given.
967 if test "${enable_sim_filter+set}" = set; then
968 enableval
="$enable_sim_filter"
969 case "${enableval}" in
970 yes) { echo "configure: error: "--enable-sim-filter must be specified with a rule to filter or no
"" 1>&2; exit 1; }; sim_filter
="";;
972 *) sim_filter
="-F $enableval";;
974 if test x
"$silent" != x
"yes" && test x
"$sim_filter" != x
""; then
975 echo "Setting filter flags = $sim_filter" 6>&1
979 if test x
"$silent" != x
"yes"; then
980 echo "Setting filter flags = $sim_filter" 6>&1
984 # Check whether --enable-sim-icache or --disable-sim-icache was given.
985 if test "${enable_sim_icache+set}" = set; then
986 enableval
="$enable_sim_icache"
988 case "${enableval}" in
989 yes) icache
="1024"; sim_icache
="-I $icache";;
993 for x
in `echo "${enableval}" | sed -e "s/,/ /g"`; do
995 define
) sim_icache
="${sim_icache}R";;
996 semantic
) sim_icache
="${sim_icache}C";;
997 insn
) sim_icache
="${sim_icache}S";;
998 0*|
1*|
2*|
3*|
4*|
5*|
6*|
7*|
8*|
9*) icache
=$x;;
999 *) { echo "configure: error: "Unknown value
$x for --enable-sim-icache"" 1>&2; exit 1; }; sim_icache
="";;
1002 sim_icache
="${sim_icache}I $icache";;
1004 if test x
"$silent" != x
"yes" && test x
"$icache" != x
""; then
1005 echo "Setting instruction cache size to $icache ($sim_icache)"
1008 sim_icache
="-CSI 1024"
1009 if test x
"$silent" != x
"yes"; then
1010 echo "Setting instruction cache size to 1024 ($sim_icache)"
1014 # Check whether --enable-sim-hardware or --disable-sim-hardware was given.
1015 if test "${enable_sim_hardware+set}" = set; then
1016 enableval
="$enable_sim_hardware"
1017 hardware
="cpu,memory,nvram,iobus,htab,disk,trace,register,vm,init,core,pal"
1018 case "${enableval}" in
1020 no
) { echo "configure: error: "List of hardware must be specified
for --enable-sim-hardware"" 1>&2; exit 1; }; hardware
="";;
1021 ,*) hardware
="${hardware}${enableval}";;
1022 *) hardware
="${enableval}";;
1024 sim_hw_src
=`echo $hardware | sed -e 's/,/.c hw_/g' -e 's/^/hw_/' -e s'/$/.c/'`
1025 sim_hw_obj
=`echo $sim_hw_src | sed -e 's/\.c/.o/g'`
1026 if test x
"$silent" != x
"yes" && test x
"$hardware" != x
""; then
1027 echo "Setting hardware to $sim_hw_src, $sim_hw_obj"
1030 hardware
="cpu,memory,nvram,iobus,htab,disk,trace,register,vm,init,core,pal"
1031 sim_hw_src
=`echo $hardware | sed -e 's/,/.c hw_/g' -e 's/^/hw_/' -e s'/$/.c/'`
1032 sim_hw_obj
=`echo $sim_hw_src | sed -e 's/\.c/.o/g'`
1033 if test x
"$silent" != x
"yes"; then
1034 echo "Setting hardware to $sim_hw_src, $sim_hw_obj"
1039 # Check whether --enable-sim-packages or --disable-sim-packages was given.
1040 if test "${enable_sim_packages+set}" = set; then
1041 enableval
="$enable_sim_packages"
1043 case "${enableval}" in
1045 no
) { echo "configure: error: "List of packages must be specified
for --enable-sim-packages"" 1>&2; exit 1; }; packages
="";;
1046 ,*) packages
="${packages}${enableval}";;
1047 *) packages
="${enableval}"''
1049 sim_pk_src
=`echo $packages | sed -e 's/,/.c pk_/g' -e 's/^/pk_/' -e 's/$/.c/'`
1050 sim_pk_obj
=`echo $sim_pk_src | sed -e 's/\.c/.o/g'`
1051 if test x
"$silent" != x
"yes" && test x
"$packages" != x
""; then
1052 echo "Setting packages to $sim_pk_src, $sim_pk_obj"
1056 sim_pk_src
=`echo $packages | sed -e 's/,/.c pk_/g' -e 's/^/pk_/' -e 's/$/.c/'`
1057 sim_pk_obj
=`echo $sim_pk_src | sed -e 's/\.c/.o/g'`
1058 if test x
"$silent" != x
"yes"; then
1059 echo "Setting packages to $sim_pk_src, $sim_pk_obj"
1063 # Check whether --enable-sim-inline or --disable-sim-inline was given.
1064 if test "${enable_sim_inline+set}" = set; then
1065 enableval
="$enable_sim_inline"
1067 case "$enableval" in
1068 no
) sim_inline
="-DDEFAULT_INLINE=0";;
1069 0) sim_inline
="-DDEFAULT_INLINE=0";;
1070 yes |
2) sim_inline
="-DDEFAULT_INLINE=ALL_INLINE";;
1071 1) sim_inline
="-DDEFAULT_INLINE=INLINE_LOCALS";;
1072 *) for x
in `echo "$enableval" | sed -e "s/,/ /g"`; do
1075 *_INLINE
=*) new_flag
="-D$x";;
1076 *=*) new_flag
=`echo "$x" | sed -e "s/=/_INLINE=/" -e "s/^/-D/"`;;
1077 *_INLINE
) new_flag
="-D$x=ALL_INLINE";;
1078 *) new_flag
="-D$x""_INLINE=ALL_INLINE";;
1080 if test x
"$sim_inline" = x
""; then
1081 sim_inline
="$new_flag"
1083 sim_inline
="$sim_inline $new_flag"
1087 if test x
"$silent" != x
"yes" && test x
"$sim_inline" != x
""; then
1088 echo "Setting inline flags = $sim_inline" 6>&1
1091 if test x
"$GCC" != ""; then
1092 sim_inline
="-DDEFAULT_INLINE=INLINE_LOCALS"
1093 if test x
"$silent" != x
"yes"; then
1094 echo "Setting inline flags = $sim_inline" 6>&1
1101 # Check whether --enable-sim-bswap or --disable-sim-bswap was given.
1102 if test "${enable_sim_bswap+set}" = set; then
1103 enableval
="$enable_sim_bswap"
1104 case "${enableval}" in
1105 yes) sim_bswap
="-DWITH_BSWAP=1";;
1106 no
) sim_bswap
="-DWITH_BSWAP=0";;
1107 *) { echo "configure: error: "--enable-sim-bswap does not take a value
"" 1>&2; exit 1; }; sim_bswap
="";;
1109 if test x
"$silent" != x
"yes" && test x
"$sim_bswap" != x
""; then
1110 echo "Setting bswap flags = $sim_bswap" 6>&1
1116 # Check whether --enable-sim-endian or --disable-sim-endian was given.
1117 if test "${enable_sim_endian+set}" = set; then
1118 enableval
="$enable_sim_endian"
1119 case "${enableval}" in
1120 yes) case "$target" in
1121 *powerpc-
*) sim_endian
="-DWITH_TARGET_BYTE_ORDER=BIG_ENDIAN";;
1122 *powerpcle-
*) sim_endian
="-DWITH_TARGET_BYTE_ORDER=LITTLE_ENDIAN";;
1123 *) echo "Unknown target $target" 1>&6; sim_endian
="-DWITH_TARGET_BYTE_ORDER=0";;
1125 no
) sim_endian
="-DWITH_TARGET_BYTE_ORDER=0";;
1126 b
*|B
*) sim_endian
="-DWITH_TARGET_BYTE_ORDER=BIG_ENDIAN";;
1127 l
*|L
*) sim_endian
="-DWITH_TARGET_BYTE_ORDER=LITTLE_ENDIAN";;
1128 *) { echo "configure: error: "Unknown value
$enableval for --enable-sim-endian"" 1>&2; exit 1; }; sim_endian
="";;
1130 if test x
"$silent" != x
"yes" && test x
"$sim_endian" != x
""; then
1131 echo "Setting endian flags = $sim_endian" 6>&1
1137 # Check whether --enable-sim-regparm or --disable-sim-regparm was given.
1138 if test "${enable_sim_regparm+set}" = set; then
1139 enableval
="$enable_sim_regparm"
1140 case "${enableval}" in
1141 0*|
1*|
2*|
3*|
4*|
5*|
6*|
7*|
8*|
9*) sim_regparm
="-DWITH_REGPARM=${enableval}";;
1142 no
) sim_regparm
="" ;;
1143 yes) sim_regparm
="-DWITH_REGPARM=3";;
1144 *) { echo "configure: error: "Unknown value
$enableval for --enable-sim-regparm"" 1>&2; exit 1; }; sim_regparm
="";;
1146 if test x
"$silent" != x
"yes" && test x
"$sim_regparm" != x
""; then
1147 echo "Setting regparm flags = $sim_regparm" 6>&1
1153 # Check whether --enable-sim-stdcall or --disable-sim-stdcall was given.
1154 if test "${enable_sim_stdcall+set}" = set; then
1155 enableval
="$enable_sim_stdcall"
1156 case "${enableval}" in
1157 no
) sim_stdcall
="" ;;
1158 std
*) sim_stdcall
="-DWITH_STDCALL=1";;
1159 yes) sim_stdcall
="-DWITH_STDCALL=1";;
1160 *) { echo "configure: error: "Unknown value
$enableval for --enable-sim-stdcall"" 1>&2; exit 1; }; sim_stdcall
="";;
1162 if test x
"$silent" != x
"yes" && test x
"$sim_stdcall" != x
""; then
1163 echo "Setting function call flags = $sim_stdcall" 6>&1
1169 # Check whether --enable-sim-hostendian or --disable-sim-hostendian was given.
1170 if test "${enable_sim_hostendian+set}" = set; then
1171 enableval
="$enable_sim_hostendian"
1172 case "${enableval}" in
1173 no
) sim_hostendian
="-DWITH_HOST_BYTE_ORDER=0";;
1174 b
*|B
*) sim_hostendian
="-DWITH_HOST_BYTE_ORDER=BIG_ENDIAN";;
1175 l
*|L
*) sim_hostendian
="-DWITH_HOST_BYTE_ORDER=LITTLE_ENDIAN";;
1176 *) { echo "configure: error: "Unknown value
$enableval for --enable-sim-hostendian"" 1>&2; exit 1; }; sim_hostendian
="";;
1178 if test x
"$silent" != x
"yes" && test x
"$sim_hostendian" != x
""; then
1179 echo "Setting hostendian flags = $sim_hostendian" 6>&1
1183 if test "x$cross_compiling" = "xno"; then
1184 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
1185 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
1186 echo $ac_n "(cached) $ac_c" 1>&6
1188 ac_cv_c_bigendian
=unknown
1189 # See if sys/param.h defines the BYTE_ORDER macro.
1190 cat > conftest.
$ac_ext <<EOF
1191 #line 1192 "configure"
1192 #include "confdefs.h"
1193 #include <sys/types.h>
1194 #include <sys/param.h>
1195 int main() { return 0; }
1198 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
1203 if { (eval echo configure
:1204: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1205 # It does; now see whether it defined to BIG_ENDIAN or not.
1206 cat > conftest.
$ac_ext <<EOF
1207 #line 1208 "configure"
1208 #include "confdefs.h"
1209 #include <sys/types.h>
1210 #include <sys/param.h>
1211 int main() { return 0; }
1214 #if BYTE_ORDER != BIG_ENDIAN
1219 if { (eval echo configure
:1220: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1221 ac_cv_c_bigendian
=yes
1224 ac_cv_c_bigendian
=no
1231 if test $ac_cv_c_bigendian = unknown
; then
1232 if test "$cross_compiling" = yes; then
1233 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
1235 cat > conftest.
$ac_ext <<EOF
1236 #line 1237 "configure"
1237 #include "confdefs.h"
1239 /* Are we little or big endian? From Harbison&Steele. */
1243 char c[sizeof (long)];
1246 exit (u.c[sizeof (long) - 1] == 1);
1249 { (eval echo configure
:1250: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
1250 if test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
; then
1251 ac_cv_c_bigendian
=no
1253 ac_cv_c_bigendian
=yes
1260 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
1261 if test $ac_cv_c_bigendian = yes; then
1262 cat >> confdefs.h
<<\EOF
1263 #define WORDS_BIGENDIAN 1
1268 if test $ac_cv_c_bigendian = yes; then
1269 sim_hostendian
="-DWITH_HOST_BYTE_ORDER=BIG_ENDIAN"
1271 sim_hostendian
="-DWITH_HOST_BYTE_ORDER=LITTLE_ENDIAN"
1274 sim_hostendian
="-DWITH_HOST_BYTE_ORDER=0"
1278 # Check whether --enable-sim-smp or --disable-sim-smp was given.
1279 if test "${enable_sim_smp+set}" = set; then
1280 enableval
="$enable_sim_smp"
1281 case "${enableval}" in
1282 yes) sim_smp
="-DWITH_SMP=5" ; sim_igen_smp
="-N 5";;
1283 no
) sim_smp
="-DWITH_SMP=0" ; sim_igen_smp
="-N 0";;
1284 *) sim_smp
="-DWITH_SMP=$enableval" ; sim_igen_smp
="-N $enableval";;
1286 if test x
"$silent" != x
"yes" && test x
"$sim_smp" != x
""; then
1287 echo "Setting smp flags = $sim_smp" 6>&1
1290 sim_smp
="-DWITH_SMP=5" ; sim_igen_smp
="-N 5"
1291 if test x
"$silent" != x
"yes"; then
1292 echo "Setting smp flags = $sim_smp" 6>&1
1296 # Check whether --enable-sim-xor-endian or --disable-sim-xor-endian was given.
1297 if test "${enable_sim_xor_endian+set}" = set; then
1298 enableval
="$enable_sim_xor_endian"
1299 case "${enableval}" in
1300 yes) sim_xor_endian
="-DWITH_XOR_ENDIAN=8";;
1301 no
) sim_xor_endian
="-DWITH_XOR_ENDIAN=0";;
1302 *) sim_xor_endian
="-DWITH_XOR_ENDIAN=$enableval";;
1304 if test x
"$silent" != x
"yes" && test x
"$sim_xor_endian" != x
""; then
1305 echo "Setting xor-endian flag = $sim_xor_endian" 6>&1
1311 # Check whether --enable-sim-bitsize or --disable-sim-bitsize was given.
1312 if test "${enable_sim_bitsize+set}" = set; then
1313 enableval
="$enable_sim_bitsize"
1314 case "${enableval}" in
1315 32|
64) sim_bitsize
="-DWITH_TARGET_WORD_BITSIZE=$enableval";;
1316 *) { echo "configure: error: "--enable-sim-bitsize was given
$enableval" 1>&2; exit 1; }; sim_bitsize="";;
1318 if test x"$silent" != x"yes" && test x"$sim_bitsize" != x""; then
1319 echo "Setting bitsize flags
= $sim_bitsize" 6>&1
1325 # Check whether --enable-sim-hostbitsize or --disable-sim-hostbitsize was given.
1326 if test "${enable_sim_hostbitsize+set}" = set; then
1327 enableval="$enable_sim_hostbitsize"
1328 case "${enableval}" in
1329 32|64) sim_hostbitsize="-DWITH_HOST_WORD_BITSIZE=$enableval";;
1330 *) { echo "configure
: error
: "--enable-sim-hostbitsize was given $enableval" 1>&2; exit 1; }; sim_hostbitsize
="";;
1332 if test x
"$silent" != x
"yes" && test x
"$sim_hostbitsize" != x
""; then
1333 echo "Setting hostbitsize flags = $sim_hostbitsize" 6>&1
1339 # Check whether --enable-sim-env or --disable-sim-env was given.
1340 if test "${enable_sim_env+set}" = set; then
1341 enableval
="$enable_sim_env"
1342 case "${enableval}" in
1343 operating | os | oea
) sim_env
="-DWITH_ENVIRONMENT=OPERATING_ENVIRONMENT";;
1344 virtual | vea
) sim_env
="-DWITH_ENVIRONMENT=VIRTUAL_ENVIRONMENT";;
1345 user | uea
) sim_env
="-DWITH_ENVIRONMENT=USER_ENVIRONMENT";;
1346 no
) sim_env
="-DWITH_ENVIRONMENT=0";;
1347 *) { echo "configure: error: "Unknown value
$enableval passed to
--enable-sim-env"" 1>&2; exit 1; }; sim_env
="";;
1349 if test x
"$silent" != x
"yes" && test x
"$sim_env" != x
""; then
1350 echo "Setting env flags = $sim_env" 6>&1
1356 # Check whether --enable-sim-timebase or --disable-sim-timebase was given.
1357 if test "${enable_sim_timebase+set}" = set; then
1358 enableval
="$enable_sim_timebase"
1359 case "${enableval}" in
1360 yes) sim_timebase
="-DWITH_TIME_BASE=1";;
1361 no
) sim_timebase
="-DWITH_TIME_BASE=0";;
1362 *) { echo "configure: error: "--enable-sim-timebase does not take a value
"" 1>&2; exit 1; }; sim_timebase
="";;
1364 if test x
"$silent" != x
"yes" && test x
"$sim_timebase" != x
""; then
1365 echo "Setting timebase flags = $sim_timebase" 6>&1
1371 # Check whether --enable-sim-alignment or --disable-sim-alignment was given.
1372 if test "${enable_sim_alignment+set}" = set; then
1373 enableval
="$enable_sim_alignment"
1374 case "${enableval}" in
1375 yes | strict | STRICT
) sim_alignment
="-DWITH_ALIGNMENT=STRICT_ALIGNMENT";;
1376 no | nonstrict | NONSTRICT
) sim_alignment
="-DWITH_ALIGNMENT=NONSTRICT_ALIGNMENT";;
1377 0 | default | DEFAULT
) sim_alignment
="-DWITH_ALIGNMENT=0";;
1378 *) { echo "configure: error: "Unknown value
$enableval passed to
--enable-sim-alignment"" 1>&2; exit 1; }; sim_alignment
="";;
1380 if test x
"$silent" != x
"yes" && test x
"$sim_alignment" != x
""; then
1381 echo "Setting alignment flags = $sim_alignment" 6>&1
1387 # Check whether --enable-sim-trace or --disable-sim-trace was given.
1388 if test "${enable_sim_trace+set}" = set; then
1389 enableval
="$enable_sim_trace"
1390 case "${enableval}" in
1391 yes) sim_trace
="-DWITH_TRACE=1";;
1392 no
) sim_trace
="-DWITH_TRACE=0";;
1393 *) { echo "configure: error: "--enable-sim-trace does not take a value
"" 1>&2; exit 1; }; sim_trace
="";;
1395 if test x
"$silent" != x
"yes" && test x
"$sim_trace" != x
""; then
1396 echo "Setting trace flags = $sim_trace" 6>&1
1402 # Check whether --enable-sim-assert or --disable-sim-assert was given.
1403 if test "${enable_sim_assert+set}" = set; then
1404 enableval
="$enable_sim_assert"
1405 case "${enableval}" in
1406 yes) sim_assert
="-DWITH_ASSERT=1";;
1407 no
) sim_assert
="-DWITH_ASSERT=0";;
1408 *) { echo "configure: error: "--enable-sim-assert does not take a value
"" 1>&2; exit 1; }; sim_assert
="";;
1410 if test x
"$silent" != x
"yes" && test x
"$sim_assert" != x
""; then
1411 echo "Setting assert flags = $sim_assert" 6>&1
1417 # Check whether --enable-sim-reserved-bits or --disable-sim-reserved-bits was given.
1418 if test "${enable_sim_reserved_bits+set}" = set; then
1419 enableval
="$enable_sim_reserved_bits"
1420 case "${enableval}" in
1421 yes) sim_reserved
="-DWITH_RESERVED_BITS=1";;
1422 no
) sim_reserved
="-DWITH_RESERVED_BITS=0";;
1423 *) { echo "configure: error: "--enable-sim-reserved-bits does not take a value
"" 1>&2; exit 1; }; sim_reserved
="";;
1425 if test x
"$silent" != x
"yes" && test x
"$sim_reserved" != x
""; then
1426 echo "Setting reserved flags = $sim_reserved" 6>&1
1432 # Check whether --enable-sim-float or --disable-sim-float was given.
1433 if test "${enable_sim_float+set}" = set; then
1434 enableval
="$enable_sim_float"
1435 case "${enableval}" in
1436 yes | hard
) sim_float
="-DWITH_FLOATING_POINT=HARD_FLOATING_POINT";;
1437 no | soft
) sim_float
="-DWITH_FLOATING_POINT=SOFT_FLOATING_POINT";;
1438 *) { echo "configure: error: "Unknown value
$enableval passed to
--enable-sim-float"" 1>&2; exit 1; }; sim_float
="";;
1440 if test x
"$silent" != x
"yes" && test x
"$sim_float" != x
""; then
1441 echo "Setting float flags = $sim_float" 6>&1
1447 # Check whether --enable-sim-monitor or --disable-sim-monitor was given.
1448 if test "${enable_sim_monitor+set}" = set; then
1449 enableval
="$enable_sim_monitor"
1450 case "${enableval}" in
1451 yes) sim_monitor
="-DWITH_MON='MONITOR_INSTRUCTION_ISSUE | MONITOR_LOAD_STORE_UNIT'";;
1452 no
) sim_monitor
="-DWITH_MON=0";;
1453 instruction
) sim_monitor
="-DWITH_MON=MONITOR_INSTRUCTION_ISSUE";;
1454 memory
) sim_monitor
="-DWITH_MON=MONITOR_LOAD_STORE_UNIT";;
1455 *) { echo "configure: error: "Unknown value
$enableval passed to
--enable-sim-mon"" 1>&2; exit 1; }; sim_env
="";;
1457 if test x
"$silent" != x
"yes" && test x
"$sim_monitor" != x
""; then
1458 echo "Setting monitor flags = $sim_monitor" 6>&1
1464 # Check whether --enable-sim-model or --disable-sim-model was given.
1465 if test "${enable_sim_model+set}" = set; then
1466 enableval
="$enable_sim_model"
1467 case "${enableval}" in
1468 yes|no
) { echo "configure: error: "No value supplied
for --enable-sim-model=model
"" 1>&2; exit 1; };;
1469 *) sim_model
="-DWITH_MODEL=${enableval}";;
1471 if test x
"$silent" != x
"yes" && test x
"$sim_model" != x
""; then
1472 echo "Setting model flags = $sim_model" 6>&1
1478 # Check whether --enable-sim-default-model or --disable-sim-default-model was given.
1479 if test "${enable_sim_default_model+set}" = set; then
1480 enableval
="$enable_sim_default_model"
1481 case "${enableval}" in
1482 yes|no
) { echo "configure: error: "No value supplied
for --enable-sim-default-model=model
"" 1>&2; exit 1; };;
1483 *) sim_default_model
="-DWITH_DEFAULT_MODEL=${enableval}";;
1485 if test x
"$silent" != x
"yes" && test x
"$sim_default_model" != x
""; then
1486 echo "Setting default-model flags = $sim_default_model" 6>&1
1492 # Check whether --enable-sim-model-issue or --disable-sim-model-issue was given.
1493 if test "${enable_sim_model_issue+set}" = set; then
1494 enableval
="$enable_sim_model_issue"
1495 case "${enableval}" in
1496 yes) sim_model_issue
="-DWITH_MODEL_ISSUE=MODEL_ISSUE_PROCESS";;
1497 no
) sim_model_issue
="-DWITH_MODEL_ISSUE=MODEL_ISSUE_IGNORE";;
1498 *) { echo "configure: error: "--enable-sim-model-issue does not take a value
"" 1>&2; exit 1; }; sim_model_issue
="";;
1500 if test x
"$silent" != x
"yes"; then
1501 echo "Setting model-issue flags = $sim_model_issue" 6>&1
1507 # Check whether --enable-sim-stdio or --disable-sim-stdio was given.
1508 if test "${enable_sim_stdio+set}" = set; then
1509 enableval
="$enable_sim_stdio"
1510 case "${enableval}" in
1511 yes) sim_stdio
="-DWITH_STDIO=DO_USE_STDIO";;
1512 no
) sim_stdio
="-DWITH_STDIO=DONT_USE_STDIO";;
1513 *) { echo "configure: error: "Unknown value
$enableval passed to
--enable-sim-stdio"" 1>&2; exit 1; }; sim_stdio
="";;
1515 if test x
"$silent" != x
"yes" && test x
"$sim_stdio" != x
""; then
1516 echo "Setting stdio flags = $sim_stdio" 6>&1
1523 for ac_dir
in `cd $srcdir;pwd`/..
/..
$srcdir/`cd $srcdir;pwd`/..
/..
; do
1524 if test -f $ac_dir/install-sh
; then
1526 ac_install_sh
="$ac_aux_dir/install-sh -c"
1528 elif test -f $ac_dir/install.sh
; then
1530 ac_install_sh
="$ac_aux_dir/install.sh -c"
1534 if test -z "$ac_aux_dir"; then
1535 { echo "configure: error: can not find install-sh or install.sh in `cd $srcdir;pwd`/../.. $srcdir/`cd $srcdir;pwd`/../.." 1>&2; exit 1; }
1537 ac_config_guess
=$ac_aux_dir/config.guess
1538 ac_config_sub
=$ac_aux_dir/config.sub
1539 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
1542 # Do some error checking and defaulting for the host and target type.
1544 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
1547 # 1. You are not allowed to specify --host, --target, and nonopt at the
1549 # 2. Host defaults to nonopt.
1550 # 3. If nonopt is not specified, then host defaults to the current host,
1551 # as determined by config.guess.
1552 # 4. Target and build default to nonopt.
1553 # 5. If nonopt is not specified, then target and build default to host.
1555 # The aliases save the names the user supplied, while $host etc.
1556 # will get canonicalized.
1557 case $host---$target---$nonopt in
1558 NONE---
*---* |
*---NONE---* |
*---*---NONE) ;;
1559 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
1563 # Make sure we can run config.sub.
1564 if $ac_config_sub sun4
>/dev
/null
2>&1; then :
1565 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1568 echo $ac_n "checking host system type""... $ac_c" 1>&6
1571 case "$host_alias" in
1575 if host_alias
=`$ac_config_guess`; then :
1576 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1578 *) host_alias
=$nonopt ;;
1582 host=`$ac_config_sub $host_alias`
1583 host_cpu
=`echo $host | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\1/'`
1584 host_vendor
=`echo $host | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\2/'`
1585 host_os
=`echo $host | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\3/'`
1586 echo "$ac_t""$host" 1>&6
1588 echo $ac_n "checking target system type""... $ac_c" 1>&6
1590 target_alias
=$target
1591 case "$target_alias" in
1594 NONE
) target_alias
=$host_alias ;;
1595 *) target_alias
=$nonopt ;;
1599 target
=`$ac_config_sub $target_alias`
1600 target_cpu
=`echo $target | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\1/'`
1601 target_vendor
=`echo $target | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\2/'`
1602 target_os
=`echo $target | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\3/'`
1603 echo "$ac_t""$target" 1>&6
1605 echo $ac_n "checking build system type""... $ac_c" 1>&6
1608 case "$build_alias" in
1611 NONE
) build_alias
=$host_alias ;;
1612 *) build_alias
=$nonopt ;;
1616 build
=`$ac_config_sub $build_alias`
1617 build_cpu
=`echo $build | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\1/'`
1618 build_vendor
=`echo $build | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\2/'`
1619 build_os
=`echo $build | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\3/'`
1620 echo "$ac_t""$build" 1>&6
1622 test "$host_alias" != "$target_alias" &&
1623 test "$program_prefix$program_suffix$program_transform_name" = \
1625 program_prefix
=${target_alias}-
1627 if test "$program_transform_name" = s
,x
,x
,; then
1628 program_transform_name
=
1630 # Double any \ or $. echo might interpret backslashes.
1631 cat <<\EOF_SED
> conftestsed
1632 s
,\\,\\\\,g
; s
,\$
,$$
,g
1634 program_transform_name
="`echo $program_transform_name|sed -f conftestsed`"
1637 test "$program_prefix" != NONE
&&
1638 program_transform_name
="s,^,${program_prefix},; $program_transform_name"
1639 # Use a double $ so make ignores it.
1640 test "$program_suffix" != NONE
&&
1641 program_transform_name
="s,\$\$,${program_suffix},; $program_transform_name"
1643 # sed with no file args requires a program.
1644 test "$program_transform_name" = "" && program_transform_name
="s,x,x,"
1647 .
${srcdir}/..
/..
/bfd
/configure.
host
1651 echo $ac_n "checking for st_blksize in struct stat""... $ac_c" 1>&6
1652 if eval "test \"`echo '$''{'ac_cv_struct_st_blksize'+set}'`\" = set"; then
1653 echo $ac_n "(cached) $ac_c" 1>&6
1655 cat > conftest.
$ac_ext <<EOF
1656 #line 1657 "configure"
1657 #include "confdefs.h"
1658 #include <sys/types.h>
1659 #include <sys/stat.h>
1660 int main() { return 0; }
1662 struct stat s; s.st_blksize;
1665 if { (eval echo configure
:1666: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1667 ac_cv_struct_st_blksize
=yes
1670 ac_cv_struct_st_blksize
=no
1676 echo "$ac_t""$ac_cv_struct_st_blksize" 1>&6
1677 if test $ac_cv_struct_st_blksize = yes; then
1678 cat >> confdefs.h
<<\EOF
1679 #define HAVE_ST_BLKSIZE 1
1684 echo $ac_n "checking for st_blocks in struct stat""... $ac_c" 1>&6
1685 if eval "test \"`echo '$''{'ac_cv_struct_st_blocks'+set}'`\" = set"; then
1686 echo $ac_n "(cached) $ac_c" 1>&6
1688 cat > conftest.
$ac_ext <<EOF
1689 #line 1690 "configure"
1690 #include "confdefs.h"
1691 #include <sys/types.h>
1692 #include <sys/stat.h>
1693 int main() { return 0; }
1695 struct stat s; s.st_blocks;
1698 if { (eval echo configure
:1699: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1700 ac_cv_struct_st_blocks
=yes
1703 ac_cv_struct_st_blocks
=no
1709 echo "$ac_t""$ac_cv_struct_st_blocks" 1>&6
1710 if test $ac_cv_struct_st_blocks = yes; then
1711 cat >> confdefs.h
<<\EOF
1712 #define HAVE_ST_BLOCKS 1
1716 LIBOBJS
="$LIBOBJS fileblocks.o"
1719 echo $ac_n "checking for st_rdev in struct stat""... $ac_c" 1>&6
1720 if eval "test \"`echo '$''{'ac_cv_struct_st_rdev'+set}'`\" = set"; then
1721 echo $ac_n "(cached) $ac_c" 1>&6
1723 cat > conftest.
$ac_ext <<EOF
1724 #line 1725 "configure"
1725 #include "confdefs.h"
1726 #include <sys/types.h>
1727 #include <sys/stat.h>
1728 int main() { return 0; }
1730 struct stat s; s.st_rdev;
1733 if { (eval echo configure
:1734: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1735 ac_cv_struct_st_rdev
=yes
1738 ac_cv_struct_st_rdev
=no
1744 echo "$ac_t""$ac_cv_struct_st_rdev" 1>&6
1745 if test $ac_cv_struct_st_rdev = yes; then
1746 cat >> confdefs.h
<<\EOF
1747 #define HAVE_ST_RDEV 1
1752 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
1753 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
1754 echo $ac_n "(cached) $ac_c" 1>&6
1756 cat > conftest.
$ac_ext <<EOF
1757 #line 1758 "configure"
1758 #include "confdefs.h"
1759 #include <sys/types.h>
1761 int main() { return 0; }
1763 struct tm *tp; tp->tm_sec;
1766 if { (eval echo configure
:1767: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1768 ac_cv_struct_tm
=time.h
1771 ac_cv_struct_tm
=sys
/time.h
1777 echo "$ac_t""$ac_cv_struct_tm" 1>&6
1778 if test $ac_cv_struct_tm = sys
/time.h
; then
1779 cat >> confdefs.h
<<\EOF
1780 #define TM_IN_SYS_TIME 1
1785 echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6
1786 if eval "test \"`echo '$''{'ac_cv_struct_tm_zone'+set}'`\" = set"; then
1787 echo $ac_n "(cached) $ac_c" 1>&6
1789 cat > conftest.
$ac_ext <<EOF
1790 #line 1791 "configure"
1791 #include "confdefs.h"
1792 #include <sys/types.h>
1793 #include <$ac_cv_struct_tm>
1794 int main() { return 0; }
1796 struct tm tm; tm.tm_zone;
1799 if { (eval echo configure
:1800: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1801 ac_cv_struct_tm_zone
=yes
1804 ac_cv_struct_tm_zone
=no
1810 echo "$ac_t""$ac_cv_struct_tm_zone" 1>&6
1811 if test "$ac_cv_struct_tm_zone" = yes; then
1812 cat >> confdefs.h
<<\EOF
1813 #define HAVE_TM_ZONE 1
1817 echo $ac_n "checking for tzname""... $ac_c" 1>&6
1818 if eval "test \"`echo '$''{'ac_cv_var_tzname'+set}'`\" = set"; then
1819 echo $ac_n "(cached) $ac_c" 1>&6
1821 cat > conftest.
$ac_ext <<EOF
1822 #line 1823 "configure"
1823 #include "confdefs.h"
1825 #ifndef tzname /* For SGI. */
1826 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
1828 int main() { return 0; }
1833 if { (eval echo configure
:1834: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1835 ac_cv_var_tzname
=yes
1844 echo "$ac_t""$ac_cv_var_tzname" 1>&6
1845 if test $ac_cv_var_tzname = yes; then
1846 cat >> confdefs.h
<<\EOF
1847 #define HAVE_TZNAME 1
1854 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1855 # On Suns, sometimes $CPP names a directory.
1856 if test -n "$CPP" && test -d "$CPP"; then
1859 if test -z "$CPP"; then
1860 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1861 echo $ac_n "(cached) $ac_c" 1>&6
1863 # This must be in double quotes, not single quotes, because CPP may get
1864 # substituted into the Makefile and "${CC-cc}" will confuse make.
1866 # On the NeXT, cc -E runs the code through the compiler's parser,
1867 # not just through cpp.
1868 cat > conftest.
$ac_ext <<EOF
1869 #line 1870 "configure"
1870 #include "confdefs.h"
1874 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1875 { (eval echo configure
:1876: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1876 ac_err
=`grep -v '^ *+' conftest.out`
1877 if test -z "$ac_err"; then
1882 CPP
="${CC-cc} -E -traditional-cpp"
1883 cat > conftest.
$ac_ext <<EOF
1884 #line 1885 "configure"
1885 #include "confdefs.h"
1889 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1890 { (eval echo configure
:1891: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1891 ac_err
=`grep -v '^ *+' conftest.out`
1892 if test -z "$ac_err"; then
1902 ac_cv_prog_CPP
="$CPP"
1904 CPP
="$ac_cv_prog_CPP"
1906 ac_cv_prog_CPP
="$CPP"
1908 echo "$ac_t""$CPP" 1>&6
1910 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
1911 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
1912 echo $ac_n "(cached) $ac_c" 1>&6
1914 cat > conftest.
$ac_ext <<EOF
1915 #line 1916 "configure"
1916 #include "confdefs.h"
1917 #include <sys/types.h>
1919 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1920 egrep "uid_t" >/dev
/null
2>&1; then
1922 ac_cv_type_uid_t
=yes
1931 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
1932 if test $ac_cv_type_uid_t = no
; then
1933 cat >> confdefs.h
<<\EOF
1937 cat >> confdefs.h
<<\EOF
1943 echo $ac_n "checking type of array argument to getgroups""... $ac_c" 1>&6
1944 if eval "test \"`echo '$''{'ac_cv_type_getgroups'+set}'`\" = set"; then
1945 echo $ac_n "(cached) $ac_c" 1>&6
1947 if test "$cross_compiling" = yes; then
1948 ac_cv_type_getgroups
=cross
1950 cat > conftest.
$ac_ext <<EOF
1951 #line 1952 "configure"
1952 #include "confdefs.h"
1954 /* Thanks to Mike Rendell for this test. */
1955 #include <sys/types.h>
1958 #define MAX(x, y) ((x) > (y) ? (x) : (y))
1963 union { gid_t gval; long lval; } val;
1966 for (i = 0; i < NGID; i++)
1967 gidset[i] = val.gval;
1968 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
1970 /* Exit non-zero if getgroups seems to require an array of ints. This
1971 happens when gid_t is short but getgroups modifies an array of ints. */
1972 exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
1976 { (eval echo configure
:1977: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
1977 if test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
; then
1978 ac_cv_type_getgroups
=gid_t
1980 ac_cv_type_getgroups
=int
1984 if test $ac_cv_type_getgroups = cross
; then
1985 cat > conftest.
$ac_ext <<EOF
1986 #line 1987 "configure"
1987 #include "confdefs.h"
1990 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1991 egrep "getgroups.*int.*gid_t" >/dev
/null
2>&1; then
1993 ac_cv_type_getgroups
=gid_t
1996 ac_cv_type_getgroups
=int
2003 echo "$ac_t""$ac_cv_type_getgroups" 1>&6
2004 cat >> confdefs.h
<<EOF
2005 #define GETGROUPS_T $ac_cv_type_getgroups
2009 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
2010 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
2011 echo $ac_n "(cached) $ac_c" 1>&6
2013 cat > conftest.
$ac_ext <<EOF
2014 #line 2015 "configure"
2015 #include "confdefs.h"
2021 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2022 { (eval echo configure
:2023: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2023 ac_err
=`grep -v '^ *+' conftest.out`
2024 if test -z "$ac_err"; then
2026 ac_cv_header_stdc
=yes
2030 ac_cv_header_stdc
=no
2034 if test $ac_cv_header_stdc = yes; then
2035 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2036 cat > conftest.
$ac_ext <<EOF
2037 #line 2038 "configure"
2038 #include "confdefs.h"
2041 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2042 egrep "memchr" >/dev
/null
2>&1; then
2046 ac_cv_header_stdc
=no
2052 if test $ac_cv_header_stdc = yes; then
2053 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2054 cat > conftest.
$ac_ext <<EOF
2055 #line 2056 "configure"
2056 #include "confdefs.h"
2059 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2060 egrep "free" >/dev
/null
2>&1; then
2064 ac_cv_header_stdc
=no
2070 if test $ac_cv_header_stdc = yes; then
2071 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2072 if test "$cross_compiling" = yes; then
2075 cat > conftest.
$ac_ext <<EOF
2076 #line 2077 "configure"
2077 #include "confdefs.h"
2079 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2080 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2081 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2082 int main () { int i; for (i = 0; i < 256; i++)
2083 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2087 { (eval echo configure
:2088: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
2088 if test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
; then
2091 ac_cv_header_stdc
=no
2098 echo "$ac_t""$ac_cv_header_stdc" 1>&6
2099 if test $ac_cv_header_stdc = yes; then
2100 cat >> confdefs.h
<<\EOF
2101 #define STDC_HEADERS 1
2106 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
2107 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
2108 echo $ac_n "(cached) $ac_c" 1>&6
2110 cat > conftest.
$ac_ext <<EOF
2111 #line 2112 "configure"
2112 #include "confdefs.h"
2113 #include <sys/types.h>
2118 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2119 egrep "mode_t" >/dev
/null
2>&1; then
2121 ac_cv_type_mode_t
=yes
2124 ac_cv_type_mode_t
=no
2129 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
2130 if test $ac_cv_type_mode_t = no
; then
2131 cat >> confdefs.h
<<\EOF
2137 echo $ac_n "checking for off_t""... $ac_c" 1>&6
2138 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
2139 echo $ac_n "(cached) $ac_c" 1>&6
2141 cat > conftest.
$ac_ext <<EOF
2142 #line 2143 "configure"
2143 #include "confdefs.h"
2144 #include <sys/types.h>
2149 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2150 egrep "off_t" >/dev
/null
2>&1; then
2152 ac_cv_type_off_t
=yes
2160 echo "$ac_t""$ac_cv_type_off_t" 1>&6
2161 if test $ac_cv_type_off_t = no
; then
2162 cat >> confdefs.h
<<\EOF
2168 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
2169 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
2170 echo $ac_n "(cached) $ac_c" 1>&6
2172 cat > conftest.
$ac_ext <<EOF
2173 #line 2174 "configure"
2174 #include "confdefs.h"
2175 #include <sys/types.h>
2180 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2181 egrep "pid_t" >/dev
/null
2>&1; then
2183 ac_cv_type_pid_t
=yes
2191 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
2192 if test $ac_cv_type_pid_t = no
; then
2193 cat >> confdefs.h
<<\EOF
2199 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
2200 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
2201 echo $ac_n "(cached) $ac_c" 1>&6
2203 cat > conftest.
$ac_ext <<EOF
2204 #line 2205 "configure"
2205 #include "confdefs.h"
2206 #include <sys/types.h>
2212 extern "C" void (*signal (int, void (*)(int)))(int);
2214 void (*signal ()) ();
2217 int main() { return 0; }
2222 if { (eval echo configure
:2223: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2224 ac_cv_type_signal
=void
2227 ac_cv_type_signal
=int
2233 echo "$ac_t""$ac_cv_type_signal" 1>&6
2234 cat >> confdefs.h
<<EOF
2235 #define RETSIGTYPE $ac_cv_type_signal
2239 echo $ac_n "checking for size_t""... $ac_c" 1>&6
2240 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
2241 echo $ac_n "(cached) $ac_c" 1>&6
2243 cat > conftest.
$ac_ext <<EOF
2244 #line 2245 "configure"
2245 #include "confdefs.h"
2246 #include <sys/types.h>
2251 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2252 egrep "size_t" >/dev
/null
2>&1; then
2254 ac_cv_type_size_t
=yes
2257 ac_cv_type_size_t
=no
2262 echo "$ac_t""$ac_cv_type_size_t" 1>&6
2263 if test $ac_cv_type_size_t = no
; then
2264 cat >> confdefs.h
<<\EOF
2265 #define size_t unsigned
2270 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
2271 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
2272 echo $ac_n "(cached) $ac_c" 1>&6
2274 cat > conftest.
$ac_ext <<EOF
2275 #line 2276 "configure"
2276 #include "confdefs.h"
2277 #include <sys/types.h>
2279 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2280 egrep "uid_t" >/dev
/null
2>&1; then
2282 ac_cv_type_uid_t
=yes
2291 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
2292 if test $ac_cv_type_uid_t = no
; then
2293 cat >> confdefs.h
<<\EOF
2297 cat >> confdefs.h
<<\EOF
2304 for ac_func
in cfgetispeed cfgetospeed cfsetispeed cfsetospeed chdir
chmod chown dup dup2 fchmod fchown fcntl fstat fstatfs getdirentries getegid geteuid getgid getpid getppid getrusage gettimeofday getuid ioctl
kill link lseek lstat mkdir pipe readlink
rmdir setreuid setregid stat sigprocmask stat symlink tcgetattr tcsetattr tcsendbreak tcdrain tcflush tcflow tcgetpgrp tcsetpgrp
time umask unlink
2306 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2307 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2308 echo $ac_n "(cached) $ac_c" 1>&6
2310 cat > conftest.
$ac_ext <<EOF
2311 #line 2312 "configure"
2312 #include "confdefs.h"
2313 /* System header to define __stub macros and hopefully few prototypes,
2314 which can conflict with char $ac_func(); below. */
2316 /* Override any gcc2 internal prototype to avoid an error. */
2317 /* We use char because int might match the return type of a gcc2
2318 builtin and then its argument prototype would still apply. */
2321 int main() { return 0; }
2324 /* The GNU C library defines this for functions which it implements
2325 to always fail with ENOSYS. Some functions are actually named
2326 something starting with __ and the normal name is an alias. */
2327 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2335 if { (eval echo configure
:2336: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
2337 eval "ac_cv_func_$ac_func=yes"
2340 eval "ac_cv_func_$ac_func=no"
2345 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2346 echo "$ac_t""yes" 1>&6
2347 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2348 cat >> confdefs.h
<<EOF
2349 #define $ac_tr_func 1
2353 echo "$ac_t""no" 1>&6
2358 for ac_hdr
in fcntl.h stdlib.h string.h
strings.h sys
/ioctl.h sys
/mount.h sys
/param.h sys
/resource.h sys
/stat.h sys
/termio.h sys
/termios.h sys
/time.h sys
/times.h sys
/types.h
time.h unistd.h
2360 ac_safe
=`echo "$ac_hdr" | tr './\055' '___'`
2361 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2362 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2363 echo $ac_n "(cached) $ac_c" 1>&6
2365 cat > conftest.
$ac_ext <<EOF
2366 #line 2367 "configure"
2367 #include "confdefs.h"
2370 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2371 { (eval echo configure
:2372: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2372 ac_err
=`grep -v '^ *+' conftest.out`
2373 if test -z "$ac_err"; then
2375 eval "ac_cv_header_$ac_safe=yes"
2379 eval "ac_cv_header_$ac_safe=no"
2383 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2384 echo "$ac_t""yes" 1>&6
2385 ac_tr_hdr
=HAVE_
`echo $ac_hdr | tr 'abcdefghijklmnopqrstuvwxyz./\055' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ___'`
2386 cat >> confdefs.h
<<EOF
2387 #define $ac_tr_hdr 1
2391 echo "$ac_t""no" 1>&6
2396 for ac_hdr
in dirent.h sys
/ndir.h sys
/dir.h ndir.h
2398 ac_safe
=`echo "$ac_hdr" | tr './\055' '___'`
2399 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
2400 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
2401 echo $ac_n "(cached) $ac_c" 1>&6
2403 cat > conftest.
$ac_ext <<EOF
2404 #line 2405 "configure"
2405 #include "confdefs.h"
2406 #include <sys/types.h>
2408 int main() { return 0; }
2413 if { (eval echo configure
:2414: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2415 eval "ac_cv_header_dirent_$ac_safe=yes"
2418 eval "ac_cv_header_dirent_$ac_safe=no"
2423 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
2424 echo "$ac_t""yes" 1>&6
2425 ac_tr_hdr
=HAVE_
`echo $ac_hdr | tr 'abcdedfghijklmnopqrstuvwxyz./\055' 'ABCDEDFGHIJKLMNOPQRSTUVWXYZ___'`
2426 cat >> confdefs.h
<<EOF
2427 #define $ac_tr_hdr 1
2429 ac_header_dirent
=$ac_hdr; break
2431 echo "$ac_t""no" 1>&6
2434 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
2435 if test $ac_header_dirent = dirent.h
; then
2436 echo $ac_n "checking for -ldir""... $ac_c" 1>&6
2437 ac_lib_var
=`echo dir'_'opendir | tr './+\055' '__p_'`
2438 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2439 echo $ac_n "(cached) $ac_c" 1>&6
2441 ac_save_LIBS
="$LIBS"
2443 cat > conftest.
$ac_ext <<EOF
2444 #line 2445 "configure"
2445 #include "confdefs.h"
2446 /* Override any gcc2 internal prototype to avoid an error. */
2447 /* We use char because int might match the return type of a gcc2
2448 builtin and then its argument prototype would still apply. */
2451 int main() { return 0; }
2456 if { (eval echo configure
:2457: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
2458 eval "ac_cv_lib_$ac_lib_var=yes"
2461 eval "ac_cv_lib_$ac_lib_var=no"
2464 LIBS
="$ac_save_LIBS"
2467 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2468 echo "$ac_t""yes" 1>&6
2471 echo "$ac_t""no" 1>&6
2475 echo $ac_n "checking for -lx""... $ac_c" 1>&6
2476 ac_lib_var
=`echo x'_'opendir | tr './+\055' '__p_'`
2477 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2478 echo $ac_n "(cached) $ac_c" 1>&6
2480 ac_save_LIBS
="$LIBS"
2482 cat > conftest.
$ac_ext <<EOF
2483 #line 2484 "configure"
2484 #include "confdefs.h"
2485 /* Override any gcc2 internal prototype to avoid an error. */
2486 /* We use char because int might match the return type of a gcc2
2487 builtin and then its argument prototype would still apply. */
2490 int main() { return 0; }
2495 if { (eval echo configure
:2496: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
2497 eval "ac_cv_lib_$ac_lib_var=yes"
2500 eval "ac_cv_lib_$ac_lib_var=no"
2503 LIBS
="$ac_save_LIBS"
2506 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2507 echo "$ac_t""yes" 1>&6
2510 echo "$ac_t""no" 1>&6
2517 echo $ac_n "checking for struct termios""... $ac_c" 1>&6
2518 if eval "test \"`echo '$''{'ac_cv_termios_struct'+set}'`\" = set"; then
2519 echo $ac_n "(cached) $ac_c" 1>&6
2521 cat > conftest.
$ac_ext <<EOF
2522 #line 2523 "configure"
2523 #include "confdefs.h"
2524 #include <sys/types.h>
2525 #include <sys/termios.h>
2526 int main() { return 0; }
2528 static struct termios x;
2536 if { (eval echo configure
:2537: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2538 ac_cv_termios_struct
=yes
2541 ac_cv_termios_struct
=no
2547 echo "$ac_t""$ac_cv_termios_struct" 1>&6
2548 if test $ac_cv_termios_struct = yes; then
2549 sim_termio
="$sim_termio -DHAVE_TERMIOS_STRUCTURE"
2552 if test "$ac_cv_termios_struct" = "yes"; then
2553 echo $ac_n "checking for c_line field in struct termios""... $ac_c" 1>&6
2554 if eval "test \"`echo '$''{'ac_cv_termios_cline'+set}'`\" = set"; then
2555 echo $ac_n "(cached) $ac_c" 1>&6
2557 cat > conftest.
$ac_ext <<EOF
2558 #line 2559 "configure"
2559 #include "confdefs.h"
2560 #include <sys/types.h>
2561 #include <sys/termios.h>
2562 int main() { return 0; }
2564 static struct termios x; x.c_line = 0;
2567 if { (eval echo configure
:2568: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2569 ac_cv_termios_cline
=yes
2572 ac_cv_termios_cline
=no
2579 echo "$ac_t""$ac_cv_termios_cline" 1>&6
2580 if test $ac_cv_termios_cline = yes; then
2581 sim_termio
="$sim_termio -DHAVE_TERMIOS_CLINE"
2584 ac_cv_termios_cline
=no
2587 if test "$ac_cv_termios_struct" != "yes"; then
2588 echo $ac_n "checking for struct termio""... $ac_c" 1>&6
2589 if eval "test \"`echo '$''{'ac_cv_termio_struct'+set}'`\" = set"; then
2590 echo $ac_n "(cached) $ac_c" 1>&6
2592 cat > conftest.
$ac_ext <<EOF
2593 #line 2594 "configure"
2594 #include "confdefs.h"
2595 #include <sys/types.h>
2596 #include <sys/termio.h>
2597 int main() { return 0; }
2599 static struct termio x;
2607 if { (eval echo configure
:2608: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2609 ac_cv_termio_struct
=yes
2612 ac_cv_termio_struct
=no
2618 echo "$ac_t""$ac_cv_termio_struct" 1>&6
2619 if test $ac_cv_termio_struct = yes; then
2620 sim_termio
="$sim_termio -DHAVE_TERMIO_STRUCTURE"
2623 ac_cv_termio_struct
=no
2626 if test "$ac_cv_termio_struct" = "yes"; then
2627 echo $ac_n "checking for c_line field in struct termio""... $ac_c" 1>&6
2628 if eval "test \"`echo '$''{'ac_cv_termio_cline'+set}'`\" = set"; then
2629 echo $ac_n "(cached) $ac_c" 1>&6
2631 cat > conftest.
$ac_ext <<EOF
2632 #line 2633 "configure"
2633 #include "confdefs.h"
2634 #include <sys/types.h>
2635 #include <sys/termio.h>
2636 int main() { return 0; }
2638 static struct termio x; x.c_line = 0;
2641 if { (eval echo configure
:2642: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2643 ac_cv_termio_cline
=yes
2646 ac_cv_termio_cline
=no
2653 echo "$ac_t""$ac_cv_termio_cline" 1>&6
2654 if test $ac_cv_termio_cline = yes; then
2655 sim_termio
="$sim_termio -DHAVE_TERMIO_CLINE"
2658 ac_cv_termio_cline
=no
2666 # Extract the first word of "ranlib", so it can be a program name with args.
2667 set dummy ranlib
; ac_word
=$2
2668 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2669 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2670 echo $ac_n "(cached) $ac_c" 1>&6
2672 if test -n "$RANLIB"; then
2673 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
2675 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
2676 for ac_dir
in $PATH; do
2677 test -z "$ac_dir" && ac_dir
=.
2678 if test -f $ac_dir/$ac_word; then
2679 ac_cv_prog_RANLIB
="ranlib"
2684 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
2687 RANLIB
="$ac_cv_prog_RANLIB"
2688 if test -n "$RANLIB"; then
2689 echo "$ac_t""$RANLIB" 1>&6
2691 echo "$ac_t""no" 1>&6
2734 cat > confcache
<<\EOF
2735 # This file is a shell script that caches the results of configure
2736 # tests run on this system so they can be shared between configure
2737 # scripts and configure runs. It is not useful on other systems.
2738 # If it contains results you don't want to keep, you may remove or edit it.
2740 # By default, configure uses ./config.cache as the cache file,
2741 # creating it if it does not exist already. You can give configure
2742 # the --cache-file=FILE option to use a different cache file; that is
2743 # what configure does when it calls configure scripts in
2744 # subdirectories, so they share the cache.
2745 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2746 # config.status only pays attention to the cache file if you give it the
2747 # --recheck option to rerun configure.
2750 # Ultrix sh set writes to stderr and can't be redirected directly,
2751 # and sets the high bit in the cache file unless we assign to the vars.
2753 sed -n "s/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=\${\1='\2'}/p" \
2755 if cmp -s $cache_file confcache
; then
2758 if test -w $cache_file; then
2759 echo "updating cache $cache_file"
2760 cat confcache
> $cache_file
2762 echo "not updating unwritable cache $cache_file"
2767 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
2769 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
2770 # Let make expand exec_prefix.
2771 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
2773 # Any assignment to VPATH causes Sun make to only execute
2774 # the first set of double-colon rules, so remove it if not needed.
2775 # If there is a colon in the path, we need to keep it.
2776 if test "x$srcdir" = x.
; then
2777 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
2780 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
2782 DEFS
=-DHAVE_CONFIG_H
2784 # Without the "./", some shells look in PATH for config.status.
2785 : ${CONFIG_STATUS=./config.status}
2787 echo creating
$CONFIG_STATUS
2788 rm -f $CONFIG_STATUS
2789 cat > $CONFIG_STATUS <<EOF
2791 # Generated automatically by configure.
2792 # Run this file to recreate the current configuration.
2793 # This directory was configured as follows,
2794 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
2796 # $0 $ac_configure_args
2798 # Compiler output produced by configure, useful for debugging
2799 # configure, is in ./config.log if it exists.
2801 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
2804 case "\$ac_option" in
2805 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
2806 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
2807 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
2808 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
2809 echo "$CONFIG_STATUS generated by autoconf version 2.10"
2811 -help | --help | --hel | --he | --h)
2812 echo "\$ac_cs_usage"; exit 0 ;;
2813 *) echo "\$ac_cs_usage"; exit 1 ;;
2817 ac_given_srcdir=$srcdir
2818 ac_given_INSTALL="$INSTALL"
2820 trap 'rm -fr `echo "Makefile config.h:config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
2822 cat >> $CONFIG_STATUS <<EOF
2824 # Protect against being on the right side of a sed subst in config.status.
2825 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
2826 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
2829 s%@CFLAGS@%$CFLAGS%g
2830 s%@CPPFLAGS@%$CPPFLAGS%g
2831 s%@CXXFLAGS@%$CXXFLAGS%g
2833 s%@LDFLAGS@%$LDFLAGS%g
2835 s%@exec_prefix@%$exec_prefix%g
2836 s%@prefix@%$prefix%g
2837 s%@program_transform_name@%$program_transform_name%g
2838 s%@bindir@%$bindir%g
2839 s%@sbindir@%$sbindir%g
2840 s%@libexecdir@%$libexecdir%g
2841 s%@datadir@%$datadir%g
2842 s%@sysconfdir@%$sysconfdir%g
2843 s%@sharedstatedir@%$sharedstatedir%g
2844 s%@localstatedir@%$localstatedir%g
2845 s%@libdir@%$libdir%g
2846 s%@includedir@%$includedir%g
2847 s%@oldincludedir@%$oldincludedir%g
2848 s%@infodir@%$infodir%g
2849 s%@mandir@%$mandir%g
2850 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
2851 s%@INSTALL_DATA@%$INSTALL_DATA%g
2854 s%@host_alias@%$host_alias%g
2855 s%@host_cpu@%$host_cpu%g
2856 s%@host_vendor@%$host_vendor%g
2857 s%@host_os@%$host_os%g
2858 s%@target@%$target%g
2859 s%@target_alias@%$target_alias%g
2860 s%@target_cpu@%$target_cpu%g
2861 s%@target_vendor@%$target_vendor%g
2862 s%@target_os@%$target_os%g
2864 s%@build_alias@%$build_alias%g
2865 s%@build_cpu@%$build_cpu%g
2866 s%@build_vendor@%$build_vendor%g
2867 s%@build_os@%$build_os%g
2868 s%@LIBOBJS@%$LIBOBJS%g
2870 s%@CC_FOR_BUILD@%$CC_FOR_BUILD%g
2871 s%@HDEFINES@%$HDEFINES%g
2873 s%@RANLIB@%$RANLIB%g
2874 s%@sim_cflags@%$sim_cflags%g
2875 s%@sim_warnings@%$sim_warnings%g
2876 s%@sim_line_nr@%$sim_line_nr%g
2877 s%@sim_config@%$sim_config%g
2878 s%@sim_opcode@%$sim_opcode%g
2879 s%@sim_switch@%$sim_switch%g
2880 s%@sim_dup@%$sim_dup%g
2881 s%@sim_jump@%$sim_jump%g
2882 s%@sim_filter@%$sim_filter%g
2883 s%@sim_icache@%$sim_icache%g
2884 s%@sim_hw_src@%$sim_hw_src%g
2885 s%@sim_hw_obj@%$sim_hw_obj%g
2886 s%@sim_pk_src@%$sim_pk_src%g
2887 s%@sim_pk_obj@%$sim_pk_obj%g
2888 s%@sim_inline@%$sim_inline%g
2889 s%@sim_bswap@%$sim_bswap%g
2890 s%@sim_endian@%$sim_endian%g
2891 s%@sim_regparm@%$sim_regparm%g
2892 s%@sim_stdcall@%$sim_stdcall%g
2893 s%@sim_xor_endian@%$sim_xor_endian%g
2894 s%@sim_hostendian@%$sim_hostendian%g
2895 s%@sim_smp@%$sim_smp%g
2896 s%@sim_igen_smp@%$sim_igen_smp%g
2897 s%@sim_bitsize@%$sim_bitsize%g
2898 s%@sim_hostbitsize@%$sim_hostbitsize%g
2899 s%@sim_env@%$sim_env%g
2900 s%@sim_timebase@%$sim_timebase%g
2901 s%@sim_alignment@%$sim_alignment%g
2902 s%@sim_float@%$sim_float%g
2903 s%@sim_trace@%$sim_trace%g
2904 s%@sim_assert@%$sim_assert%g
2905 s%@sim_reserved@%$sim_reserved%g
2906 s%@sim_monitor@%$sim_monitor%g
2907 s%@sim_model@%$sim_model%g
2908 s%@sim_default_model@%$sim_default_model%g
2909 s%@sim_model_issue@%$sim_model_issue%g
2910 s%@sim_stdio@%$sim_stdio%g
2911 s%@sim_termio@%$sim_termio%g
2915 cat >> $CONFIG_STATUS <<EOF
2917 CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
2919 cat >> $CONFIG_STATUS <<\EOF
2920 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
2921 # Support "outfile[:infile]", defaulting infile="outfile.in".
2923 *:*) ac_file_in
=`echo "$ac_file"|sed 's%.*:%%'`
2924 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
2925 *) ac_file_in
="${ac_file}.in" ;;
2928 # Adjust relative srcdir, etc. for subdirectories.
2930 # Remove last slash and all that follows it. Not all systems have dirname.
2931 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2932 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
2933 # The file is in a subdirectory.
2934 test ! -d "$ac_dir" && mkdir
"$ac_dir"
2935 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
2936 # A "../" for each directory in $ac_dir_suffix.
2937 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
2939 ac_dir_suffix
= ac_dots
=
2942 case "$ac_given_srcdir" in
2944 if test -z "$ac_dots"; then top_srcdir
=.
2945 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
2946 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
2948 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
2949 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
2952 case "$ac_given_INSTALL" in
2953 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
2954 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
2956 echo creating
"$ac_file"
2958 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
2960 *Makefile
*) ac_comsub
="1i\\
2961 # $configure_input" ;;
2965 s%@configure_input@%$configure_input%g
2966 s%@srcdir@%$srcdir%g
2967 s%@top_srcdir@%$top_srcdir%g
2968 s%@INSTALL@%$INSTALL%g
2969 " -f conftest.subs
$ac_given_srcdir/$ac_file_in > $ac_file
2973 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
2974 # NAME is the cpp macro being defined and VALUE is the value it is being given.
2976 # ac_d sets the value in "#define NAME VALUE" lines.
2977 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
2978 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
2981 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
2982 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
2983 ac_uB
='\([ ]\)%\1#\2define\3'
2986 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
2987 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
2988 ac_eB
='$%\1#\2define\3'
2992 CONFIG_HEADERS
=${CONFIG_HEADERS-"config.h:config.in"}
2993 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
2994 # Support "outfile[:infile]", defaulting infile="outfile.in".
2996 *:*) ac_file_in
=`echo "$ac_file"|sed 's%.*:%%'`
2997 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
2998 *) ac_file_in
="${ac_file}.in" ;;
3001 echo creating
$ac_file
3003 rm -f conftest.frag conftest.
in conftest.out
3004 cp $ac_given_srcdir/$ac_file_in conftest.
in
3008 # Transform confdefs.h into a sed script conftest.vals that substitutes
3009 # the proper values into config.h.in to produce config.h. And first:
3010 # Protect against being on the right side of a sed subst in config.status.
3011 # Protect against being in an unquoted here document in config.status.
3013 cat > conftest.hdr
<<\EOF
3016 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
3020 sed -n -f conftest.hdr confdefs.h > conftest.vals
3023 # This sed command replaces #undef with comments. This is necessary, for
3024 # example, in the case of _POSIX_SOURCE, which is predefined and required
3025 # on some systems where configure will not decide to define it.
3026 cat >> conftest.vals <<\EOF
3027 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
3030 # Break up conftest.vals because some shells have a limit on
3031 # the size of here documents, and old seds have small limits too.
3032 # Maximum number of lines to put in a single here document.
3033 ac_max_here_lines=12
3038 ac_lines=`grep -c . conftest.vals
`
3039 # grep -c gives empty output for an empty file on some AIX systems.
3040 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
3041 # Write a limited-size here document to conftest.frag.
3042 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
3043 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
3045 sed -f conftest.frag conftest.in > conftest.out
3047 mv conftest.out conftest.in
3049 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
3051 mv conftest.tail conftest.vals
3055 cat >> $CONFIG_STATUS <<\EOF
3056 rm -f conftest.frag conftest.h
3057 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
3058 cat conftest.in >> conftest.h
3060 if cmp -s $ac_file conftest.h 2>/dev/null; then
3061 echo "$ac_file is unchanged"
3064 # Remove last slash and all that follows it. Not all systems have dirname.
3065 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
3066 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3067 # The file is in a subdirectory.
3068 test ! -d "$ac_dir" && mkdir "$ac_dir"
3071 mv conftest.h $ac_file
3076 case x$CONFIG_HEADERS in xconfig.h:config.in) echo > stamp-h ;; esac
3079 chmod +x $CONFIG_STATUS
3080 rm -fr confdefs* $ac_clean_files
3081 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1