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.
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-alignment=align Specify strict or nonstrict alignment."
17 --enable-sim-assert Specify whether to perform random assertions."
19 --enable-sim-bitsize=n Specify target bitsize (32 or 64)."
21 --enable-sim-bswap Use the BSWAP instruction on Intel 486s and Pentiums."
23 --enable-sim-cflags=opts Extra CFLAGS for use in building simulator"
25 --enable-sim-config=file Override default config file"
27 --enable-sim-decode-mechanism=which Specify the instruction decode mechanism."
29 --enable-sim-default-model=which Specify default PowerPC to model."
31 --enable-sim-duplicate Expand (duplicate) semantic functions."
33 --enable-sim-endian=endian Specify target byte endian orientation."
35 --enable-sim-env=env Specify target environment (operating, virtual, user)."
37 --enable-sim-filter=rule Specify filter rules."
39 --enable-sim-float Specify whether to use host floating point or simulate."
41 --enable-sim-hardware=list Specify the hardware to be included in the build."
43 --enable-sim-hostbitsize=32|64 Specify host bitsize (32 or 64)."
45 --enable-sim-hostendian=end Specify host byte endian orientation."
47 --enable-sim-icache=size Specify instruction-decode cache size and type."
49 --enable-sim-inline=inlines Specify which functions should be inlined."
51 --enable-sim-jump Jump between semantic code (instead of call/return)."
53 --enable-sim-line-nr=opts Generate extra CPP code that references source rather than generated code"
55 --enable-sim-model=which Specify PowerPC to model."
57 --enable-sim-model-issue Specify whether to simulate model specific actions"
59 --enable-sim-monitor=mon Specify whether to enable monitoring events."
61 --enable-sim-opcode=which Override default opcode lookup."
63 --enable-sim-packages=list Specify the packages to be included in the build."
65 --enable-sim-regparm=nr-parm Pass parameters in registers instead of on the stack - x86/GCC specific."
67 --enable-sim-reserved-bits Specify whether to check reserved bits in instruction."
69 --enable-sim-smp=n Specify number of processors to configure for."
71 --enable-sim-stdcall=type Use an alternative function call/return mechanism - x86/GCC specific."
73 --enable-sim-stdio Specify whether to use stdio for console input/output."
75 --enable-sim-switch Use a switch instead of a table for instruction call."
77 --enable-sim-timebase Specify whether the PPC timebase is supported."
79 --enable-sim-trace Specify whether tracing is supported."
81 --enable-sim-warnings=opts Extra CFLAGS for turning on compiler warnings except for idecode.o, semantics.o and psim.o"
83 --enable-sim-xor-endian=n Specify number bytes involved in PowerPC XOR bi-endian mode (default 8)."
85 # Initialize some variables set by options.
86 # The variables have the same names as the options, with
87 # dashes changed to underlines.
89 cache_file
=.
/config.cache
98 program_transform_name
=s
,x
,x
,
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'
119 # Initialize some other variables.
122 SHELL
=${CONFIG_SHELL-/bin/sh}
123 # Maximum number of lines to put in a shell here document.
130 # If the previous option needs an argument, assign it.
131 if test -n "$ac_prev"; then
132 eval "$ac_prev=\$ac_option"
138 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
142 # Accept the important Cygnus configure options, so we can diagnose typos.
146 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
148 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
149 bindir
="$ac_optarg" ;;
151 -build |
--build |
--buil |
--bui |
--bu)
153 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
154 build
="$ac_optarg" ;;
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" ;;
163 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
165 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
167 datadir
="$ac_optarg" ;;
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; }
175 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
176 eval "enable_${ac_feature}=no" ;;
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; }
184 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
189 eval "enable_${ac_feature}='$ac_optarg'" ;;
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" ;;
200 -gas |
--gas |
--ga |
--g)
201 # Obsolete; use --with-gas.
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.
208 Usage: configure [options] [host]
209 Options: [defaults in brackets after descriptions]
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
219 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
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
226 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
227 --sharedstatedir=DIR modifiable architecture-independent data in DIR
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
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
254 if test -n "$ac_help"; then
255 echo "--enable and --with options recognized:$ac_help"
259 -host |
--host |
--hos |
--ho)
261 -host=* |
--host=* |
--hos=* |
--ho=*)
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" ;;
271 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
273 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
274 infodir
="$ac_optarg" ;;
276 -libdir |
--libdir |
--libdi |
--libd)
278 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
279 libdir
="$ac_optarg" ;;
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" ;;
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" ;;
297 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
299 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
300 mandir
="$ac_optarg" ;;
303 # Obsolete; use --without-fp.
306 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
310 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
311 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
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" ;;
323 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
325 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
326 prefix
="$ac_optarg" ;;
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" ;;
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" ;;
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" ;;
359 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
360 |
-silent |
--silent |
--silen |
--sile |
--sil)
363 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
365 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
367 sbindir
="$ac_optarg" ;;
369 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
370 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
371 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
373 ac_prev
=sharedstatedir
;;
374 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
375 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
376 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
378 sharedstatedir
="$ac_optarg" ;;
380 -site |
--site |
--sit)
382 -site=* |
--site=* |
--sit=*)
385 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
387 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
388 srcdir
="$ac_optarg" ;;
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" ;;
397 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
399 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
400 target
="$ac_optarg" ;;
402 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
405 -version |
--version |
--versio |
--versi |
--vers)
406 echo "configure generated by autoconf version 2.12.1"
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; }
415 ac_package
=`echo $ac_package| sed 's/-/_/g'`
420 eval "with_${ac_package}='$ac_optarg'" ;;
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; }
428 ac_package
=`echo $ac_package| sed 's/-/_/g'`
429 eval "with_${ac_package}=no" ;;
432 # Obsolete; use --with-x.
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" ;;
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" ;;
449 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
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
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; }
465 if test -n "$ac_prev"; then
466 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
469 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
471 # File descriptor usage:
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
487 This file contains any messages produced by compilers while
488 running configure, to aid debugging if configure makes a mistake.
491 # Strip out --no-create and --no-recursion so they do not pile up.
492 # Also quote any args containing shell metacharacters.
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" ;;
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
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.
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
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.
531 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
532 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
534 if test ! -r $srcdir/$ac_unique_file; then
538 ac_srcdir_defaulted
=no
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; }
544 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
547 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
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"
554 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
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"
564 if test -r "$cache_file"; then
565 echo "loading cache $cache_file"
568 echo "creating cache $cache_file"
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
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
588 ac_n
= ac_c
='\c' ac_t
=
594 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
595 if test -f $ac_dir/install-sh
; then
597 ac_install_sh
="$ac_aux_dir/install-sh -c"
599 elif test -f $ac_dir/install.sh
; then
601 ac_install_sh
="$ac_aux_dir/install.sh -c"
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; }
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.
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
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
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.
633 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
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
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.
645 ac_cv_path_install
="$ac_dir/$ac_prog -c"
656 if test "${ac_cv_path_install+set}" = set; then
657 INSTALL
="$ac_cv_path_install"
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"
666 echo "$ac_t""$INSTALL" 1>&6
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}'
672 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
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
681 if test -n "$CC"; then
682 ac_cv_prog_CC
="$CC" # Let the user override the test.
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
696 if test -n "$CC"; then
697 echo "$ac_t""$CC" 1>&6
699 echo "$ac_t""no" 1>&6
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
710 if test -n "$CC"; then
711 ac_cv_prog_CC
="$CC" # Let the user override the test.
713 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
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
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
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.
736 set dummy
"$ac_dir/$ac_word" "$@"
744 if test -n "$CC"; then
745 echo "$ac_t""$CC" 1>&6
747 echo "$ac_t""no" 1>&6
750 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
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
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
763 cat > conftest.
$ac_ext <<EOF
764 #line 765 "configure"
765 #include "confdefs.h"
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
774 ac_cv_prog_cc_cross
=yes
777 echo "configure: failed program was:" >&5
778 cat conftest.
$ac_ext >&5
779 ac_cv_prog_cc_works
=no
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; }
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
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
797 cat > conftest.c
<<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
809 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
811 if test $ac_cv_prog_gcc = yes; then
813 ac_test_CFLAGS
="${CFLAGS+set}"
814 ac_save_CFLAGS
="$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
821 echo 'void f(){}' > conftest.c
822 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
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
841 test "${CFLAGS+set}" = set || CFLAGS
="-g"
845 # Put a plausible default for CC_FOR_BUILD in Makefile.
847 if test "x$cross_compiling" = "xno"; then
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
="";;
863 if test x
"$silent" != x
"yes" && test x
"$sim_alignment" != x
""; then
864 echo "Setting alignment flags = $sim_alignment" 6>&1
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
="";;
879 if test x
"$silent" != x
"yes" && test x
"$sim_assert" != x
""; then
880 echo "Setting assert flags = $sim_assert" 6>&1
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
="";;
894 if test x
"$silent" != x
"yes" && test x
"$sim_bitsize" != x
""; then
895 echo "Setting bitsize flags = $sim_bitsize" 6>&1
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
="";;
910 if test x
"$silent" != x
"yes" && test x
"$sim_bswap" != x
""; then
911 echo "Setting bswap flags = $sim_bswap" 6>&1
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";;
924 *) sim_cflags
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
926 if test x
"$silent" != x
"yes" && test x
"$sim_cflags" != x
""; then
927 echo "Setting sim cflags = $sim_cflags" 6>&1
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"
944 { echo "configure: error: "Config
file $enableval was not found
"" 1>&2; exit 1; };
945 sim_config
=std-config.h
948 if test x
"$silent" != x
"yes" && test x
"$sim_config" != x
""; then
949 echo "Setting config flags = $sim_config" 6>&1
952 sim_config
="std-config.h"
953 if test x
"$silent" != x
"yes"; then
954 echo "Setting config flags = $sim_config" 6>&1
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";;
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
972 sim_decode_mechanism
=""
973 if test x
"$silent" != x
"yes"; then
974 echo "Setting decode mechanism flags = $sim_decode_mechanism"
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}";;
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
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
1000 *) { echo "configure: error: "--enable-sim-duplicate does not take a value
"" 1>&2; exit 1; }; sim_dup
="";;
1002 if test x
"$silent" != x
"yes" && test x
"$sim_dup" != x
""; then
1003 echo "Setting duplicate flags = $sim_dup" 6>&1
1007 if test x
"$silent" != x
"yes"; then
1008 echo "Setting duplicate flags = $sim_dup" 6>&1
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";;
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
="";;
1027 if test x
"$silent" != x
"yes" && test x
"$sim_endian" != x
""; then
1028 echo "Setting endian flags = $sim_endian" 6>&1
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
="";;
1045 if test x
"$silent" != x
"yes" && test x
"$sim_env" != x
""; then
1046 echo "Setting env flags = $sim_env" 6>&1
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
="";;
1059 *) sim_filter
="-F $enableval";;
1061 if test x
"$silent" != x
"yes" && test x
"$sim_filter" != x
""; then
1062 echo "Setting filter flags = $sim_filter" 6>&1
1065 sim_filter
="-F 32,f,o"
1066 if test x
"$silent" != x
"yes"; then
1067 echo "Setting filter flags = $sim_filter" 6>&1
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
="";;
1080 if test x
"$silent" != x
"yes" && test x
"$sim_float" != x
""; then
1081 echo "Setting float flags = $sim_float" 6>&1
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
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}"'';;
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"
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"
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
="";;
1121 if test x
"$silent" != x
"yes" && test x
"$sim_hostbitsize" != x
""; then
1122 echo "Setting hostbitsize flags = $sim_hostbitsize" 6>&1
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
="";;
1138 if test x
"$silent" != x
"yes" && test x
"$sim_hostendian" != x
""; then
1139 echo "Setting hostendian flags = $sim_hostendian" 6>&1
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
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>
1158 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
1163 if { (eval echo configure
:1164: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
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>
1173 #if BYTE_ORDER != BIG_ENDIAN
1178 if { (eval echo configure
:1179: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1180 ac_cv_c_bigendian
=yes
1182 echo "configure: failed program was:" >&5
1183 cat conftest.
$ac_ext >&5
1185 ac_cv_c_bigendian
=no
1189 echo "configure: failed program was:" >&5
1190 cat conftest.
$ac_ext >&5
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; }
1197 cat > conftest.
$ac_ext <<EOF
1198 #line 1199 "configure"
1199 #include "confdefs.h"
1201 /* Are we little or big endian? From Harbison&Steele. */
1205 char c[sizeof (long)];
1208 exit (u.c[sizeof (long) - 1] == 1);
1211 if { (eval echo configure
:1212: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
1213 ac_cv_c_bigendian
=no
1215 echo "configure: failed program was:" >&5
1216 cat conftest.
$ac_ext >&5
1218 ac_cv_c_bigendian
=yes
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
1234 if test $ac_cv_c_bigendian = yes; then
1235 sim_hostendian
="-DWITH_HOST_BYTE_ORDER=BIG_ENDIAN"
1237 sim_hostendian
="-DWITH_HOST_BYTE_ORDER=LITTLE_ENDIAN"
1240 sim_hostendian
="-DWITH_HOST_BYTE_ORDER=0"
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"
1249 case "${enableval}" in
1250 yes) icache
="1024"; sim_icache
="-I $icache";;
1251 no
) sim_icache
="-R";;
1254 for x
in `echo "${enableval}" | sed -e "s/,/ /g"`; do
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
="";;
1263 sim_icache
="${sim_icache}I $icache";;
1265 if test x
"$silent" != x
"yes" && test x
"$icache" != x
""; then
1266 echo "Setting instruction cache size to $icache ($sim_icache)"
1269 sim_icache
="-CSRI 1024"
1270 if test x
"$silent" != x
"yes"; then
1271 echo "Setting instruction cache size to 1024 ($sim_icache)"
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"
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
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";;
1293 if test x
"$sim_inline" = x
""; then
1294 sim_inline
="$new_flag"
1296 sim_inline
="$sim_inline $new_flag"
1300 if test x
"$silent" != x
"yes" && test x
"$sim_inline" != x
""; then
1301 echo "Setting inline flags = $sim_inline" 6>&1
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
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";;
1321 *) { echo "configure: error: "--enable-sim-jump does not take a value
"" 1>&2; exit 1; }; sim_jump
="";;
1323 if test x
"$silent" != x
"yes" && test x
"$sim_jump" != x
""; then
1324 echo "Setting jump flag = $sim_jump" 6>&1
1328 if test x
"$silent" != x
"yes"; then
1329 echo "Setting jump flag = $sim_jump" 6>&1
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
="";;
1342 if test x
"$silent" != x
"yes" && test x
"$sim_line_nr" != x
""; then
1343 echo "Setting warning flags = $sim_line_nr" 6>&1
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}";;
1357 if test x
"$silent" != x
"yes" && test x
"$sim_model" != x
""; then
1358 echo "Setting model flags = $sim_model" 6>&1
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
="";;
1373 if test x
"$silent" != x
"yes"; then
1374 echo "Setting model-issue flags = $sim_model_issue" 6>&1
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
="";;
1391 if test x
"$silent" != x
"yes" && test x
"$sim_monitor" != x
""; then
1392 echo "Setting monitor flags = $sim_monitor" 6>&1
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}"
1409 { echo "configure: error: "File
$enableval is not an opcode rules
file"" 1>&2; exit 1; };
1410 sim_opcode
="dc-complex"
1413 if test x
"$silent" != x
"yes" && test x
"$sim_opcode" != x
""; then
1414 echo "Setting opcode flags = $sim_opcode" 6>&1
1417 sim_opcode
="dc-complex"
1418 if test x
"$silent" != x
"yes"; then
1419 echo "Setting opcode flags = $sim_opcode"
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"
1428 case "${enableval}" in
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}"'';;
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"
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"
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
="";;
1459 if test x
"$silent" != x
"yes" && test x
"$sim_regparm" != x
""; then
1460 echo "Setting regparm flags = $sim_regparm" 6>&1
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
="";;
1475 if test x
"$silent" != x
"yes" && test x
"$sim_reserved" != x
""; then
1476 echo "Setting reserved flags = $sim_reserved" 6>&1
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";;
1491 if test x
"$silent" != x
"yes" && test x
"$sim_smp" != x
""; then
1492 echo "Setting smp flags = $sim_smp" 6>&1
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
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
="";;
1511 if test x
"$silent" != x
"yes" && test x
"$sim_stdcall" != x
""; then
1512 echo "Setting function call flags = $sim_stdcall" 6>&1
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
="";;
1527 if test x
"$silent" != x
"yes" && test x
"$sim_stdio" != x
""; then
1528 echo "Setting stdio flags = $sim_stdio" 6>&1
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";;
1541 *) { echo "configure: error: "--enable-sim-switch does not take a value
"" 1>&2; exit 1; }; sim_switch
="";;
1543 if test x
"$silent" != x
"yes" && test x
"$sim_switch" != x
""; then
1544 echo "Setting switch flags = $sim_switch" 6>&1
1548 if test x
"$silent" != x
"yes"; then
1549 echo "Setting switch flags = $sim_switch" 6>&1
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
="";;
1562 if test x
"$silent" != x
"yes" && test x
"$sim_timebase" != x
""; then
1563 echo "Setting timebase flags = $sim_timebase" 6>&1
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
="";;
1578 if test x
"$silent" != x
"yes" && test x
"$sim_trace" != x
""; then
1579 echo "Setting trace flags = $sim_trace" 6>&1
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"`;;
1594 if test x
"$silent" != x
"yes" && test x
"$sim_warnings" != x
""; then
1595 echo "Setting warning flags = $sim_warnings" 6>&1
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";;
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
1619 for ac_dir
in `cd $srcdir;pwd`/..
/..
$srcdir/`cd $srcdir;pwd`/..
/..
; do
1620 if test -f $ac_dir/install-sh
; then
1622 ac_install_sh
="$ac_aux_dir/install-sh -c"
1624 elif test -f $ac_dir/install.sh
; then
1626 ac_install_sh
="$ac_aux_dir/install.sh -c"
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; }
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.
1638 # Do some error checking and defaulting for the host and target type.
1640 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
1643 # 1. You are not allowed to specify --host, --target, and nonopt at the
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.
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; } ;;
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; }
1664 echo $ac_n "checking host system type""... $ac_c" 1>&6
1665 echo "configure:1666: checking host system type" >&5
1668 case "$host_alias" in
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; }
1675 *) host_alias
=$nonopt ;;
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
1685 echo $ac_n "checking target system type""... $ac_c" 1>&6
1686 echo "configure:1687: checking target system type" >&5
1688 target_alias
=$target
1689 case "$target_alias" in
1692 NONE
) target_alias
=$host_alias ;;
1693 *) target_alias
=$nonopt ;;
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
1703 echo $ac_n "checking build system type""... $ac_c" 1>&6
1704 echo "configure:1705: checking build system type" >&5
1707 case "$build_alias" in
1710 NONE
) build_alias
=$host_alias ;;
1711 *) build_alias
=$nonopt ;;
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
1721 test "$host_alias" != "$target_alias" &&
1722 test "$program_prefix$program_suffix$program_transform_name" = \
1724 program_prefix
=${target_alias}-
1726 if test "$program_transform_name" = s
,x
,x
,; then
1727 program_transform_name
=
1729 # Double any \ or $. echo might interpret backslashes.
1730 cat <<\EOF_SED
> conftestsed
1731 s
,\\,\\\\,g
; s
,\$
,$$
,g
1733 program_transform_name
="`echo $program_transform_name|sed -f conftestsed`"
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"
1742 # sed with no file args requires a program.
1743 test "$program_transform_name" = "" && program_transform_name
="s,x,x,"
1746 .
${srcdir}/..
/..
/bfd
/configure.
host
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
1755 cat > conftest.
$ac_ext <<EOF
1756 #line 1757 "configure"
1757 #include "confdefs.h"
1758 #include <sys/types.h>
1759 #include <sys/stat.h>
1761 struct stat s; s.st_blksize;
1764 if { (eval echo configure
:1765: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1766 ac_cv_struct_st_blksize
=yes
1768 echo "configure: failed program was:" >&5
1769 cat conftest.
$ac_ext >&5
1771 ac_cv_struct_st_blksize
=no
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
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
1789 cat > conftest.
$ac_ext <<EOF
1790 #line 1791 "configure"
1791 #include "confdefs.h"
1792 #include <sys/types.h>
1793 #include <sys/stat.h>
1795 struct stat s; s.st_blocks;
1798 if { (eval echo configure
:1799: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1800 ac_cv_struct_st_blocks
=yes
1802 echo "configure: failed program was:" >&5
1803 cat conftest.
$ac_ext >&5
1805 ac_cv_struct_st_blocks
=no
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
1817 LIBOBJS
="$LIBOBJS fileblocks.o"
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
1825 cat > conftest.
$ac_ext <<EOF
1826 #line 1827 "configure"
1827 #include "confdefs.h"
1828 #include <sys/types.h>
1829 #include <sys/stat.h>
1831 struct stat s; s.st_rdev;
1834 if { (eval echo configure
:1835: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1836 ac_cv_struct_st_rdev
=yes
1838 echo "configure: failed program was:" >&5
1839 cat conftest.
$ac_ext >&5
1841 ac_cv_struct_st_rdev
=no
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
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
1859 cat > conftest.
$ac_ext <<EOF
1860 #line 1861 "configure"
1861 #include "confdefs.h"
1862 #include <sys/types.h>
1865 struct tm *tp; tp->tm_sec;
1868 if { (eval echo configure
:1869: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1870 ac_cv_struct_tm
=time.h
1872 echo "configure: failed program was:" >&5
1873 cat conftest.
$ac_ext >&5
1875 ac_cv_struct_tm
=sys
/time.h
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
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
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>
1899 struct tm tm; tm.tm_zone;
1902 if { (eval echo configure
:1903: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1904 ac_cv_struct_tm_zone
=yes
1906 echo "configure: failed program was:" >&5
1907 cat conftest.
$ac_ext >&5
1909 ac_cv_struct_tm_zone
=no
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
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
1926 cat > conftest.
$ac_ext <<EOF
1927 #line 1928 "configure"
1928 #include "confdefs.h"
1930 #ifndef tzname /* For SGI. */
1931 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
1937 if { (eval echo configure
:1938: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1939 ac_cv_var_tzname
=yes
1941 echo "configure: failed program was:" >&5
1942 cat conftest.
$ac_ext >&5
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
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
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
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.
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"
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
1987 echo "configure: failed program was:" >&5
1988 cat conftest.
$ac_ext >&5
1990 CPP
="${CC-cc} -E -traditional-cpp"
1991 cat > conftest.
$ac_ext <<EOF
1992 #line 1993 "configure"
1993 #include "confdefs.h"
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
2004 echo "configure: failed program was:" >&5
2005 cat conftest.
$ac_ext >&5
2012 ac_cv_prog_CPP
="$CPP"
2014 CPP
="$ac_cv_prog_CPP"
2016 ac_cv_prog_CPP
="$CPP"
2018 echo "$ac_t""$CPP" 1>&6
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
2025 cat > conftest.
$ac_ext <<EOF
2026 #line 2027 "configure"
2027 #include "confdefs.h"
2028 #include <sys/types.h>
2030 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2031 egrep "uid_t" >/dev
/null
2>&1; then
2033 ac_cv_type_uid_t
=yes
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
2048 cat >> confdefs.h
<<\EOF
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
2059 if test "$cross_compiling" = yes; then
2060 ac_cv_type_getgroups
=cross
2062 cat > conftest.
$ac_ext <<EOF
2063 #line 2064 "configure"
2064 #include "confdefs.h"
2066 /* Thanks to Mike Rendell for this test. */
2067 #include <sys/types.h>
2070 #define MAX(x, y) ((x) > (y) ? (x) : (y))
2075 union { gid_t gval; long lval; } val;
2078 for (i = 0; i < NGID; i++)
2079 gidset[i] = val.gval;
2080 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
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);
2088 if { (eval echo configure
:2089: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
2090 ac_cv_type_getgroups
=gid_t
2092 echo "configure: failed program was:" >&5
2093 cat conftest.
$ac_ext >&5
2095 ac_cv_type_getgroups
=int
2100 if test $ac_cv_type_getgroups = cross
; then
2101 cat > conftest.
$ac_ext <<EOF
2102 #line 2103 "configure"
2103 #include "confdefs.h"
2106 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2107 egrep "getgroups.*int.*gid_t" >/dev
/null
2>&1; then
2109 ac_cv_type_getgroups
=gid_t
2112 ac_cv_type_getgroups
=int
2119 echo "$ac_t""$ac_cv_type_getgroups" 1>&6
2120 cat >> confdefs.h
<<EOF
2121 #define GETGROUPS_T $ac_cv_type_getgroups
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
2130 cat > conftest.
$ac_ext <<EOF
2131 #line 2132 "configure"
2132 #include "confdefs.h"
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
2143 ac_cv_header_stdc
=yes
2146 echo "configure: failed program was:" >&5
2147 cat conftest.
$ac_ext >&5
2149 ac_cv_header_stdc
=no
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"
2160 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2161 egrep "memchr" >/dev
/null
2>&1; then
2165 ac_cv_header_stdc
=no
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"
2178 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2179 egrep "free" >/dev
/null
2>&1; then
2183 ac_cv_header_stdc
=no
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
2194 cat > conftest.
$ac_ext <<EOF
2195 #line 2196 "configure"
2196 #include "confdefs.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);
2206 if { (eval echo configure
:2207: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
2210 echo "configure: failed program was:" >&5
2211 cat conftest.
$ac_ext >&5
2213 ac_cv_header_stdc
=no
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
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
2234 cat > conftest.
$ac_ext <<EOF
2235 #line 2236 "configure"
2236 #include "confdefs.h"
2237 #include <sys/types.h>
2243 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2244 egrep "mode_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
2246 ac_cv_type_mode_t
=yes
2249 ac_cv_type_mode_t
=no
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
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
2267 cat > conftest.
$ac_ext <<EOF
2268 #line 2269 "configure"
2269 #include "confdefs.h"
2270 #include <sys/types.h>
2276 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2277 egrep "off_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
2279 ac_cv_type_off_t
=yes
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
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
2300 cat > conftest.
$ac_ext <<EOF
2301 #line 2302 "configure"
2302 #include "confdefs.h"
2303 #include <sys/types.h>
2309 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2310 egrep "pid_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
2312 ac_cv_type_pid_t
=yes
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
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
2333 cat > conftest.
$ac_ext <<EOF
2334 #line 2335 "configure"
2335 #include "confdefs.h"
2336 #include <sys/types.h>
2342 extern "C" void (*signal (int, void (*)(int)))(int);
2344 void (*signal ()) ();
2351 if { (eval echo configure
:2352: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2353 ac_cv_type_signal
=void
2355 echo "configure: failed program was:" >&5
2356 cat conftest.
$ac_ext >&5
2358 ac_cv_type_signal
=int
2363 echo "$ac_t""$ac_cv_type_signal" 1>&6
2364 cat >> confdefs.h
<<EOF
2365 #define RETSIGTYPE $ac_cv_type_signal
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
2374 cat > conftest.
$ac_ext <<EOF
2375 #line 2376 "configure"
2376 #include "confdefs.h"
2377 #include <sys/types.h>
2383 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2384 egrep "size_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
2386 ac_cv_type_size_t
=yes
2389 ac_cv_type_size_t
=no
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
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
2407 cat > conftest.
$ac_ext <<EOF
2408 #line 2409 "configure"
2409 #include "confdefs.h"
2410 #include <sys/types.h>
2412 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2413 egrep "uid_t" >/dev
/null
2>&1; then
2415 ac_cv_type_uid_t
=yes
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
2430 cat >> confdefs.h
<<\EOF
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
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
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. */
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. */
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)
2468 if { (eval echo configure
:2469: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2470 eval "ac_cv_func_$ac_func=yes"
2472 echo "configure: failed program was:" >&5
2473 cat conftest.
$ac_ext >&5
2475 eval "ac_cv_func_$ac_func=no"
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
2488 echo "$ac_t""no" 1>&6
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
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
2501 cat > conftest.
$ac_ext <<EOF
2502 #line 2503 "configure"
2503 #include "confdefs.h"
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
2511 eval "ac_cv_header_$ac_safe=yes"
2514 echo "configure: failed program was:" >&5
2515 cat conftest.
$ac_ext >&5
2517 eval "ac_cv_header_$ac_safe=no"
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
2529 echo "$ac_t""no" 1>&6
2534 for ac_hdr
in dirent.h sys
/ndir.h sys
/dir.h ndir.h
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
2542 cat > conftest.
$ac_ext <<EOF
2543 #line 2544 "configure"
2544 #include "confdefs.h"
2545 #include <sys/types.h>
2551 if { (eval echo configure
:2552: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2553 eval "ac_cv_header_dirent_$ac_safe=yes"
2555 echo "configure: failed program was:" >&5
2556 cat conftest.
$ac_ext >&5
2558 eval "ac_cv_header_dirent_$ac_safe=no"
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
2568 ac_header_dirent
=$ac_hdr; break
2570 echo "$ac_t""no" 1>&6
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
2581 ac_save_LIBS
="$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. */
2595 if { (eval echo configure
:2596: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2597 eval "ac_cv_lib_$ac_lib_var=yes"
2599 echo "configure: failed program was:" >&5
2600 cat conftest.
$ac_ext >&5
2602 eval "ac_cv_lib_$ac_lib_var=no"
2605 LIBS
="$ac_save_LIBS"
2608 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2609 echo "$ac_t""yes" 1>&6
2612 echo "$ac_t""no" 1>&6
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
2622 ac_save_LIBS
="$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. */
2636 if { (eval echo configure
:2637: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2638 eval "ac_cv_lib_$ac_lib_var=yes"
2640 echo "configure: failed program was:" >&5
2641 cat conftest.
$ac_ext >&5
2643 eval "ac_cv_lib_$ac_lib_var=no"
2646 LIBS
="$ac_save_LIBS"
2649 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2650 echo "$ac_t""yes" 1>&6
2653 echo "$ac_t""no" 1>&6
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
2665 cat > conftest.
$ac_ext <<EOF
2666 #line 2667 "configure"
2667 #include "confdefs.h"
2668 #include <sys/types.h>
2669 #include <sys/termios.h>
2671 static struct termios x;
2679 if { (eval echo configure
:2680: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2681 ac_cv_termios_struct
=yes
2683 echo "configure: failed program was:" >&5
2684 cat conftest.
$ac_ext >&5
2686 ac_cv_termios_struct
=no
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"
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
2702 cat > conftest.
$ac_ext <<EOF
2703 #line 2704 "configure"
2704 #include "confdefs.h"
2705 #include <sys/types.h>
2706 #include <sys/termios.h>
2708 static struct termios x; x.c_line = 0;
2711 if { (eval echo configure
:2712: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2713 ac_cv_termios_cline
=yes
2715 echo "configure: failed program was:" >&5
2716 cat conftest.
$ac_ext >&5
2718 ac_cv_termios_cline
=no
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"
2729 ac_cv_termios_cline
=no
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
2738 cat > conftest.
$ac_ext <<EOF
2739 #line 2740 "configure"
2740 #include "confdefs.h"
2741 #include <sys/types.h>
2742 #include <sys/termio.h>
2744 static struct termio x;
2752 if { (eval echo configure
:2753: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2754 ac_cv_termio_struct
=yes
2756 echo "configure: failed program was:" >&5
2757 cat conftest.
$ac_ext >&5
2759 ac_cv_termio_struct
=no
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"
2769 ac_cv_termio_struct
=no
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
2778 cat > conftest.
$ac_ext <<EOF
2779 #line 2780 "configure"
2780 #include "confdefs.h"
2781 #include <sys/types.h>
2782 #include <sys/termio.h>
2784 static struct termio x; x.c_line = 0;
2787 if { (eval echo configure
:2788: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2789 ac_cv_termio_cline
=yes
2791 echo "configure: failed program was:" >&5
2792 cat conftest.
$ac_ext >&5
2794 ac_cv_termio_cline
=no
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"
2805 ac_cv_termio_cline
=no
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
2814 if test "$cross_compiling" = yes; then
2817 cat > conftest.
$ac_ext <<EOF
2818 #line 2819 "configure"
2819 #include "confdefs.h"
2824 int fd = open ("/dev/zero", O_RDONLY);
2827 for (i = 0; i < sizeof (buf); i++)
2829 if (read (fd, buf, sizeof (buf)) != sizeof (buf))
2831 for (i = 0; i < sizeof (buf); i++)
2837 if { (eval echo configure
:2838: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
2841 echo "configure: failed program was:" >&5
2842 cat conftest.
$ac_ext >&5
2851 echo "$ac_t""$ac_cv_devzero" 1>&6
2852 if test $ac_cv_devzero = yes; then
2853 sim_devzero
="-DHAVE_DEVZERO"
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"
2865 echo "$ac_t""no" 1>&6
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
2882 if test -n "$RANLIB"; then
2883 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
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"
2894 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
2897 RANLIB
="$ac_cv_prog_RANLIB"
2898 if test -n "$RANLIB"; then
2899 echo "$ac_t""$RANLIB" 1>&6
2901 echo "$ac_t""no" 1>&6
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.
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.
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.
2970 case `(ac_space=' '; set) 2>&1 | grep ac_space` in
2972 # `set' does not quote correctly, so add quotes (double-quote substitution
2973 # turns \\\\ into \\, and sed turns \\ into \).
2975 -e "s/'/'\\\\''/g" \
2976 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
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'
2983 if cmp -s $cache_file confcache
; then
2986 if test -w $cache_file; then
2987 echo "updating cache $cache_file"
2988 cat confcache
> $cache_file
2990 echo "not updating unwritable cache $cache_file"
2995 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
2997 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
2998 # Let make expand exec_prefix.
2999 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
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'
3008 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
3010 DEFS
=-DHAVE_CONFIG_H
3012 # Without the "./", some shells look in PATH for config.status.
3013 : ${CONFIG_STATUS=./config.status}
3015 echo creating
$CONFIG_STATUS
3016 rm -f $CONFIG_STATUS
3017 cat > $CONFIG_STATUS <<EOF
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`:
3024 # $0 $ac_configure_args
3026 # Compiler output produced by configure, useful for debugging
3027 # configure, is in ./config.log if it exists.
3029 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
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"
3039 -help | --help | --hel | --he | --h)
3040 echo "\$ac_cs_usage"; exit 0 ;;
3041 *) echo "\$ac_cs_usage"; exit 1 ;;
3045 ac_given_srcdir=$srcdir
3046 ac_given_INSTALL="$INSTALL"
3048 trap 'rm -fr `echo "Makefile config.h:config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
3050 cat >> $CONFIG_STATUS <<EOF
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
3058 s%@CFLAGS@%$CFLAGS%g
3059 s%@CPPFLAGS@%$CPPFLAGS%g
3060 s%@CXXFLAGS@%$CXXFLAGS%g
3062 s%@LDFLAGS@%$LDFLAGS%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
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
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
3099 s%@CC_FOR_BUILD@%$CC_FOR_BUILD%g
3100 s%@HDEFINES@%$HDEFINES%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
3149 cat >> $CONFIG_STATUS <<\EOF
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.
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
3163 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
3165 if test ! -s conftest.s
$ac_file; then
3167 rm -f conftest.s
$ac_file
3169 if test -z "$ac_sed_cmds"; then
3170 ac_sed_cmds
="sed -f conftest.s$ac_file"
3172 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
3174 ac_file
=`expr $ac_file + 1`
3176 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
3179 if test -z "$ac_sed_cmds"; then
3184 cat >> $CONFIG_STATUS <<EOF
3186 CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
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".
3192 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
3193 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
3194 *) ac_file_in
="${ac_file}.in" ;;
3197 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
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'`
3208 ac_dir_suffix
= ac_dots
=
3211 case "$ac_given_srcdir" in
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" ;;
3217 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
3218 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
3221 case "$ac_given_INSTALL" in
3222 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
3223 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
3226 echo creating
"$ac_file"
3228 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
3230 *Makefile
*) ac_comsub
="1i\\
3231 # $configure_input" ;;
3235 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
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
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.
3248 # ac_d sets the value in "#define NAME VALUE" lines.
3249 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
3250 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
3253 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
3254 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3255 ac_uB
='\([ ]\)%\1#\2define\3'
3258 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
3259 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3260 ac_eB
='$%\1#\2define\3'
3264 if test "${CONFIG_HEADERS+set}" != set; then
3266 cat >> $CONFIG_STATUS <<EOF
3267 CONFIG_HEADERS="config.h:config.in"
3269 cat >> $CONFIG_STATUS <<\EOF
3271 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
3272 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.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" ;;
3279 echo creating
$ac_file
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
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.
3292 cat > conftest.hdr
<<\EOF
3295 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
3299 sed -n -f conftest.hdr confdefs.h > conftest.vals
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]*%/* & */%
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.
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
3322 sed -f conftest.frag conftest.in > conftest.out
3324 mv conftest.out conftest.in
3326 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
3328 mv conftest.tail conftest.vals
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
3337 if cmp -s $ac_file conftest.h 2>/dev/null; then
3338 echo "$ac_file is unchanged"
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"
3348 mv conftest.h $ac_file
3353 cat >> $CONFIG_STATUS <<EOF
3356 cat >> $CONFIG_STATUS <<\EOF
3357 case x$CONFIG_HEADERS in xconfig.h:config.in) echo > stamp-h ;; esac
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