3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.7
5 # Copyright (C) 1992, 1993, 1994 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
12 ac_default_prefix
=/usr
/local
13 # Any additions from configure.in:
15 --enable-sim-cflags=opts Extra CFLAGS for use in building simulator"
17 --enable-sim-warnings=opts Extra CFLAGS for turning on compiler warnings except for idecode.o, semantics.o and psim.o"
19 --enable-sim-config=file Override default config file"
21 --enable-sim-opcode=which Override default opcode lookup."
23 --enable-sim-switch Use a switch instead of a table for instruction call."
25 --enable-sim-duplicate Expand (duplicate) semantic functions."
27 --enable-sim-filter=rule Specify filter rules."
29 --enable-sim-icache=size Specify instruction cache size."
31 --enable-sim-inline=inlines Specify which functions should be inlined."
33 --enable-sim-bswap Use the BSWAP instruction on Intel 486s and Pentiums."
35 --enable-sim-endian=endian Specify target byte endian orientation."
37 --enable-sim-hostendain=end Specify host byte endian orientation."
39 --enable-sim-smp=n Specify number of processors to configure for."
41 --enable-sim-xor-endian=n Specify number bytes involved in PowerPC XOR bi-endian mode (default 8)."
43 --enable-sim-bitsize=n Specify target bitsize (32 or 64)."
45 --enable-sim-hostbitsize=32|64 Specify host bitsize (32 or 64)."
47 --enable-sim-env=env Specify target environment (operating, virtual, user)."
49 --enable-sim-timebase Specify whether the PPC timebase is supported."
51 --enable-sim-alignment=align Specify strict or nonstrict alignment."
53 --enable-sim-trace Specify whether tracing is supported."
55 --enable-sim-assert Specify whether to perform random assertions."
57 --enable-sim-reserved-bits Specify whether to check reserved bits in instruction."
59 --enable-sim-float Specify whether to use host floating point or simulate."
61 --enable-sim-monitor=mon Specify whether to enable monitoring events."
63 --enable-sim-model=which Specify PowerPC to model."
65 --enable-sim-default-model=which Specify default PowerPC to model."
67 --enable-sim-model-issue Specify whether to simulate model specific actions"
69 # Initialize some variables set by options.
70 # The variables have the same names as the options, with
71 # dashes changed to underlines.
73 cache_file
=.
/config.cache
82 program_transform_name
=s
,x
,x
,
90 bindir
='${exec_prefix}/bin'
91 sbindir
='${exec_prefix}/sbin'
92 libexecdir
='${exec_prefix}/libexec'
93 datadir
='${prefix}/share'
94 sysconfdir
='${prefix}/etc'
95 sharedstatedir
='${prefix}/com'
96 localstatedir
='${prefix}/var'
97 libdir
='${exec_prefix}/lib'
98 includedir
='${prefix}/include'
99 oldincludedir
='/usr/include'
100 infodir
='${prefix}/info'
101 mandir
='${prefix}/man'
103 # Initialize some other variables.
111 # If the previous option needs an argument, assign it.
112 if test -n "$ac_prev"; then
113 eval "$ac_prev=\$ac_option"
119 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
123 # Accept the important Cygnus configure options, so we can diagnose typos.
127 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
129 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
130 bindir
="$ac_optarg" ;;
132 -build |
--build |
--buil |
--bui |
--bu)
134 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
135 build
="$ac_optarg" ;;
137 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
138 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
139 ac_prev
=cache_file
;;
140 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
141 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
142 cache_file
="$ac_optarg" ;;
144 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
146 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
148 datadir
="$ac_optarg" ;;
150 -disable-* |
--disable-*)
151 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
152 # Reject names that are not valid shell variable names.
153 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
154 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
156 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
157 eval "enable_${ac_feature}=no" ;;
159 -enable-* |
--enable-*)
160 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
161 # Reject names that are not valid shell variable names.
162 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
163 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
165 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
170 eval "enable_${ac_feature}='$ac_optarg'" ;;
172 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
173 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
174 |
--exec |
--exe |
--ex)
175 ac_prev
=exec_prefix
;;
176 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
177 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
178 |
--exec=* |
--exe=* |
--ex=*)
179 exec_prefix
="$ac_optarg" ;;
181 -gas |
--gas |
--ga |
--g)
182 # Obsolete; use --with-gas.
185 -help |
--help |
--hel |
--he)
186 # Omit some internal or obsolete options to make the list less imposing.
187 # This message is too long to be a string in the A/UX 3.1 sh.
189 Usage: configure [options] [host]
190 Options: [defaults in brackets after descriptions]
192 --cache-file=FILE cache test results in FILE
193 --help print this message
194 --no-create do not create output files
195 --quiet, --silent do not print \`checking...' messages
196 --version print the version of autoconf that created configure
197 Directory and file names:
198 --prefix=PREFIX install architecture-independent files in PREFIX
200 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
202 --bindir=DIR user executables in DIR [EPREFIX/bin]
203 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
204 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
205 --datadir=DIR read-only architecture-independent data in DIR
207 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
208 --sharedstatedir=DIR modifiable architecture-independent data in DIR
210 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
211 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
212 --includedir=DIR C header files in DIR [PREFIX/include]
213 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
214 --infodir=DIR info documentation in DIR [PREFIX/info]
215 --mandir=DIR man documentation in DIR [PREFIX/man]
216 --srcdir=DIR find the sources in DIR [configure dir or ..]
217 --program-prefix=PREFIX prepend PREFIX to installed program names
218 --program-suffix=SUFFIX append SUFFIX to installed program names
219 --program-transform-name=PROGRAM
220 run sed PROGRAM on installed program names
224 --build=BUILD configure for building on BUILD [BUILD=HOST]
225 --host=HOST configure for HOST [guessed]
226 --target=TARGET configure for TARGET [TARGET=HOST]
227 Features and packages:
228 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
229 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
230 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
231 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
232 --x-includes=DIR X include files are in DIR
233 --x-libraries=DIR X library files are in DIR
235 if test -n "$ac_help"; then
236 echo "--enable and --with options recognized:$ac_help"
240 -host |
--host |
--hos |
--ho)
242 -host=* |
--host=* |
--hos=* |
--ho=*)
245 -includedir |
--includedir |
--includedi |
--included |
--include \
246 |
--includ |
--inclu |
--incl |
--inc)
247 ac_prev
=includedir
;;
248 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
249 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
250 includedir
="$ac_optarg" ;;
252 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
254 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
255 infodir
="$ac_optarg" ;;
257 -libdir |
--libdir |
--libdi |
--libd)
259 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
260 libdir
="$ac_optarg" ;;
262 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
263 |
--libexe |
--libex |
--libe)
264 ac_prev
=libexecdir
;;
265 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
266 |
--libexe=* |
--libex=* |
--libe=*)
267 libexecdir
="$ac_optarg" ;;
269 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
270 |
--localstate |
--localstat |
--localsta |
--localst \
271 |
--locals |
--local |
--loca |
--loc |
--lo)
272 ac_prev
=localstatedir
;;
273 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
274 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
275 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
276 localstatedir
="$ac_optarg" ;;
278 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
280 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
281 mandir
="$ac_optarg" ;;
284 # Obsolete; use --without-fp.
287 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
291 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
292 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
295 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
296 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
297 |
--oldin |
--oldi |
--old |
--ol |
--o)
298 ac_prev
=oldincludedir
;;
299 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
300 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
301 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
302 oldincludedir
="$ac_optarg" ;;
304 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
306 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
307 prefix
="$ac_optarg" ;;
309 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
310 |
--program-pre |
--program-pr |
--program-p)
311 ac_prev
=program_prefix
;;
312 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
313 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
314 program_prefix
="$ac_optarg" ;;
316 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
317 |
--program-suf |
--program-su |
--program-s)
318 ac_prev
=program_suffix
;;
319 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
320 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
321 program_suffix
="$ac_optarg" ;;
323 -program-transform-name |
--program-transform-name \
324 |
--program-transform-nam |
--program-transform-na \
325 |
--program-transform-n |
--program-transform- \
326 |
--program-transform |
--program-transfor \
327 |
--program-transfo |
--program-transf \
328 |
--program-trans |
--program-tran \
329 |
--progr-tra |
--program-tr |
--program-t)
330 ac_prev
=program_transform_name
;;
331 -program-transform-name=* |
--program-transform-name=* \
332 |
--program-transform-nam=* |
--program-transform-na=* \
333 |
--program-transform-n=* |
--program-transform-=* \
334 |
--program-transform=* |
--program-transfor=* \
335 |
--program-transfo=* |
--program-transf=* \
336 |
--program-trans=* |
--program-tran=* \
337 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
338 program_transform_name
="$ac_optarg" ;;
340 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
341 |
-silent |
--silent |
--silen |
--sile |
--sil)
344 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
346 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
348 sbindir
="$ac_optarg" ;;
350 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
351 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
352 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
354 ac_prev
=sharedstatedir
;;
355 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
356 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
357 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
359 sharedstatedir
="$ac_optarg" ;;
361 -site |
--site |
--sit)
363 -site=* |
--site=* |
--sit=*)
366 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
368 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
369 srcdir
="$ac_optarg" ;;
371 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
372 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
373 ac_prev
=sysconfdir
;;
374 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
375 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
376 sysconfdir
="$ac_optarg" ;;
378 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
380 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
381 target
="$ac_optarg" ;;
383 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
386 -version |
--version |
--versio |
--versi |
--vers)
387 echo "configure generated by autoconf version 2.7"
391 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
392 # Reject names that are not valid shell variable names.
393 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
394 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
396 ac_package
=`echo $ac_package| sed 's/-/_/g'`
401 eval "with_${ac_package}='$ac_optarg'" ;;
403 -without-* |
--without-*)
404 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
405 # Reject names that are not valid shell variable names.
406 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
407 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
409 ac_package
=`echo $ac_package| sed 's/-/_/g'`
410 eval "with_${ac_package}=no" ;;
413 # Obsolete; use --with-x.
416 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
417 |
--x-incl |
--x-inc |
--x-in |
--x-i)
418 ac_prev
=x_includes
;;
419 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
420 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
421 x_includes
="$ac_optarg" ;;
423 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
424 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
425 ac_prev
=x_libraries
;;
426 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
427 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
428 x_libraries
="$ac_optarg" ;;
430 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
434 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
435 echo "configure: warning: $ac_option: invalid host type" 1>&2
437 if test "x$nonopt" != xNONE
; then
438 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
446 if test -n "$ac_prev"; then
447 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
450 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
452 # File descriptor usage:
455 # 2 errors and warnings
456 # 3 some systems may open it to /dev/tty
457 # 4 used on the Kubota Titan
458 # 6 checking for... messages and results
459 # 5 compiler messages saved in config.log
460 if test "$silent" = yes; then
468 This file contains any messages produced by compilers while
469 running configure, to aid debugging if configure makes a mistake.
472 # Strip out --no-create and --no-recursion so they do not pile up.
473 # Also quote any args containing shell metacharacters.
478 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
479 |
--no-cr |
--no-c) ;;
480 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
481 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
482 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
483 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
484 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
489 # Only set LANG and LC_ALL to C if already set.
490 # These must not be set unconditionally because not all systems understand
491 # e.g. LANG=C (notably SCO).
492 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
493 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
495 # confdefs.h avoids OS command line length limits that DEFS can exceed.
496 rm -rf conftest
* confdefs.h
497 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
500 # A filename unique to this package, relative to the directory that
501 # configure is in, which we can look for to find out if srcdir is correct.
502 ac_unique_file
=Makefile.
in
504 # Find the source files, if location was not specified.
505 if test -z "$srcdir"; then
506 ac_srcdir_defaulted
=yes
507 # Try the directory containing this script, then its parent.
509 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
510 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
512 if test ! -r $srcdir/$ac_unique_file; then
516 ac_srcdir_defaulted
=no
518 if test ! -r $srcdir/$ac_unique_file; then
519 if test "$ac_srcdir_defaulted" = yes; then
520 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
522 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
525 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
527 # Prefer explicitly selected file to automatically selected ones.
528 if test -z "$CONFIG_SITE"; then
529 if test "x$prefix" != xNONE
; then
530 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
532 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
535 for ac_site_file
in $CONFIG_SITE; do
536 if test -r "$ac_site_file"; then
537 echo "loading site script $ac_site_file"
542 if test -r "$cache_file"; then
543 echo "loading cache $cache_file"
546 echo "creating cache $cache_file"
551 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
552 ac_cpp
='echo $CPP $CPPFLAGS 1>&5;
554 ac_compile
='echo ${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5;
555 ${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5 2>&5'
556 ac_link
='echo ${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5;
557 ${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5 2>&5'
559 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
560 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
561 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
568 ac_n
= ac_c
='\c' ac_t
=
573 # Check whether --enable-sim-cflags or --disable-sim-cflags was given.
574 if test "${enable_sim_cflags+set}" = set; then
575 enableval
="$enable_sim_cflags"
576 case "${enableval}" in
577 yes) sim_cflags
="-O2 -fomit-frame-pointer";;
579 *) sim_cflags
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
581 if test x
"$silent" != x
"yes" && test x
"$sim_cflags" != x
""; then
582 echo "Setting sim cflags = $sim_cflags" 6>&1
588 # Check whether --enable-sim-warnings or --disable-sim-warnings was given.
589 if test "${enable_sim_warnings+set}" = set; then
590 enableval
="$enable_sim_warnings"
591 case "${enableval}" in
592 yes) sim_warnings
="-Werror -Wall -Wpointer-arith -Wmissing-prototypes";;
593 no
) sim_warnings
="-w";;
594 *) sim_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
596 if test x
"$silent" != x
"yes" && test x
"$sim_warnings" != x
""; then
597 echo "Setting warning flags = $sim_warnings" 6>&1
603 # Check whether --enable-sim-config or --disable-sim-config was given.
604 if test "${enable_sim_config+set}" = set; then
605 enableval
="$enable_sim_config"
606 case "${enableval}" in
607 yes|no
) { echo "configure: error: "No value supplied
for --enable-sim-config=file"" 1>&2; exit 1; };;
608 *) if test -f "${srcdir}/${enableval}"; then
609 sim_config
="${enableval}";
610 elif test -f "${srcdir}/${enableval}-config.h"; then
611 sim_config
="${enableval}-config.h"
613 { echo "configure: error: "Config
file $enableval was not found
"" 1>&2; exit 1; };
614 sim_config
=std-config.h
617 if test x
"$silent" != x
"yes" && test x
"$sim_config" != x
""; then
618 echo "Setting config flags = $sim_config" 6>&1
621 sim_config
="std-config.h"
622 if test x
"$silent" != x
"yes"; then
623 echo "Setting config flags = $sim_config" 6>&1
627 # Check whether --enable-sim-opcode or --disable-sim-opcode was given.
628 if test "${enable_sim_opcode+set}" = set; then
629 enableval
="$enable_sim_opcode"
630 case "${enableval}" in
631 yes|no
) { echo "configure: error: "No value supplied
for --enable-sim-opcode=file"" 1>&2; exit 1; };;
632 *) if test -f "${srcdir}/${enableval}"; then
633 sim_opcode
="${enableval}"
634 elif test -f "${srcdir}/ppc-opcode-${enableval}"; then
635 sim_opcode
="ppc-opcode-${enableval}"
637 { echo "configure: error: "File
$enableval is not an opcode rules
file"" 1>&2; exit 1; };
638 sim_opcode
="ppc-opcode-complex"
641 if test x
"$silent" != x
"yes" && test x
"$sim_opcode" != x
""; then
642 echo "Setting opcode flags = $sim_opcode" 6>&1
645 sim_opcode
="ppc-opcode-complex"
646 if test x
"$silent" != x
"yes"; then
647 echo "Setting opcode flags = $sim_opcode"
651 # Check whether --enable-sim-switch or --disable-sim-switch was given.
652 if test "${enable_sim_switch+set}" = set; then
653 enableval
="$enable_sim_switch"
654 case "${enableval}" in
655 yes) sim_switch
="-s";;
657 *) { echo "configure: error: "--enable-sim-switch does not take a value
"" 1>&2; exit 1; }; sim_switch
="";;
659 if test x
"$silent" != x
"yes" && test x
"$sim_switch" != x
""; then
660 echo "Setting switch flags = $sim_switch" 6>&1
664 if test x
"$silent" != x
"yes"; then
665 echo "Setting switch flags = $sim_switch" 6>&1
669 # Check whether --enable-sim-duplicate or --disable-sim-duplicate was given.
670 if test "${enable_sim_duplicate+set}" = set; then
671 enableval
="$enable_sim_duplicate"
672 case "${enableval}" in
675 *) { echo "configure: error: "--enable-sim-duplicate does not take a value
"" 1>&2; exit 1; }; sim_dup
="";;
677 if test x
"$silent" != x
"yes" && test x
"$sim_dup" != x
""; then
678 echo "Setting duplicate flags = $sim_dup" 6>&1
682 if test x
"$silent" != x
"yes"; then
683 echo "Setting duplicate flags = $sim_dup" 6>&1
687 # Check whether --enable-sim-filter or --disable-sim-filter was given.
688 if test "${enable_sim_filter+set}" = set; then
689 enableval
="$enable_sim_filter"
690 case "${enableval}" in
691 yes) { echo "configure: error: "--enable-sim-filter must be specified with a rule to filter or no
"" 1>&2; exit 1; }; sim_filter
="";;
693 *) sim_filter
="-f $enableval";;
695 if test x
"$silent" != x
"yes" && test x
"$sim_filter" != x
""; then
696 echo "Setting filter flags = $sim_filter" 6>&1
700 if test x
"$silent" != x
"yes"; then
701 echo "Setting filter flags = $sim_filter" 6>&1
705 # Check whether --enable-sim-icache or --disable-sim-icache was given.
706 if test "${enable_sim_icache+set}" = set; then
707 enableval
="$enable_sim_icache"
709 case "${enableval}" in
710 yes) sim_icache
="-r 1024"; icache
="1024";;
711 define
) sim_icache
="-r 1024 -R"; icache
="1024";;
713 *) sim_icache
="-r ${enableval}"; icache
="${enableval}";;
715 if test x
"$silent" != x
"yes" && test x
"$icache" != x
""; then
716 echo "Setting instruction cache size to $icache"
720 if test x
"$silent" != x
"yes"; then
721 echo "Setting instruction cache size to 1024"
725 # Check whether --enable-sim-inline or --disable-sim-inline was given.
726 if test "${enable_sim_inline+set}" = set; then
727 enableval
="$enable_sim_inline"
730 no
) sim_inline
="-DDEFAULT_INLINE=0";;
731 0) sim_inline
="-DDEFAULT_INLINE=0";;
732 yes |
2) sim_inline
="-DDEFAULT_INLINE=ALL_INLINE";;
733 1) sim_inline
="-DDEFAULT_INLINE=INLINE_LOCALS";;
734 *) for x
in `echo "$enableval" | sed -e "s/,/ /g"`; do
737 *_INLINE
=*) new_flag
="-D$x";;
738 *_INLINE
) new_flag
="-D$x=ALL_INLINE";;
739 *=*) new_flag
=`echo "$x" | sed -e "s/=/_INLINE=/" -e "s/^/-D/"`;;
740 *) new_flag
="-D$x""_INLINE=ALL_INLINE";;
742 if test x
"$sim_inline" = x
""; then
743 sim_inline
="$new_flag"
745 sim_inline
="$sim_inline $new_flag"
749 if test x
"$silent" != x
"yes" && test x
"$sim_inline" != x
""; then
750 echo "Setting inline flags = $sim_inline" 6>&1
753 if test x
"$GCC" != ""; then
754 sim_inline
="-DDEFAULT_INLINE=INLINE_LOCALS"
755 if test x
"$silent" != x
"yes"; then
756 echo "Setting inline flags = $sim_inline" 6>&1
763 # Check whether --enable-sim-bswap or --disable-sim-bswap was given.
764 if test "${enable_sim_bswap+set}" = set; then
765 enableval
="$enable_sim_bswap"
766 case "${enableval}" in
767 yes) sim_bswap
="-DWITH_BSWAP=1";;
768 no
) sim_bswap
="-DWITH_BSWAP=0";;
769 *) { echo "configure: error: "--enable-sim-bswap does not take a value
"" 1>&2; exit 1; }; sim_bswap
="";;
771 if test x
"$silent" != x
"yes" && test x
"$sim_bswap" != x
""; then
772 echo "Setting bswap flags = $sim_bswap" 6>&1
778 # Check whether --enable-sim-endian or --disable-sim-endian was given.
779 if test "${enable_sim_endian+set}" = set; then
780 enableval
="$enable_sim_endian"
781 case "${enableval}" in
782 yes) case "$target" in
783 *powerpc-
*) sim_endian
="-DWITH_TARGET_BYTE_ORDER=BIG_ENDIAN";;
784 *powerpcle-
*) sim_endian
="-DWITH_TARGET_BYTE_ORDER=LITTLE_ENDIAN";;
785 *) echo "Unknown target $target" 1>&6; sim_endian
="-DWITH_TARGET_BYTE_ORDER=0";;
787 no
) sim_endian
="-DWITH_TARGET_BYTE_ORDER=0";;
788 b
*|B
*) sim_endian
="-DWITH_TARGET_BYTE_ORDER=BIG_ENDIAN";;
789 l
*|L
*) sim_endian
="-DWITH_TARGET_BYTE_ORDER=LITTLE_ENDIAN";;
790 *) { echo "configure: error: "Unknown value
$enableval for --enable-sim-endian"" 1>&2; exit 1; }; sim_endian
="";;
792 if test x
"$silent" != x
"yes" && test x
"$sim_endian" != x
""; then
793 echo "Setting endian flags = $sim_endian" 6>&1
799 # Check whether --enable-sim-hostendian or --disable-sim-hostendian was given.
800 if test "${enable_sim_hostendian+set}" = set; then
801 enableval
="$enable_sim_hostendian"
802 case "${enableval}" in
803 no
) sim_hostendian
="-DWITH_HOST_BYTE_ORDER=0";;
804 b
*|B
*) sim_hostendian
="-DWITH_HOST_BYTE_ORDER=BIG_ENDIAN";;
805 l
*|L
*) sim_hostendian
="-DWITH_HOST_BYTE_ORDER=LITTLE_ENDIAN";;
806 *) { echo "configure: error: "Unknown value
$enableval for --enable-sim-hostendian"" 1>&2; exit 1; }; sim_hostendian
="";;
808 if test x
"$silent" != x
"yes" && test x
"$sim_hostendian" != x
""; then
809 echo "Setting hostendian flags = $sim_hostendian" 6>&1
815 # Check whether --enable-sim-smp or --disable-sim-smp was given.
816 if test "${enable_sim_smp+set}" = set; then
817 enableval
="$enable_sim_smp"
818 case "${enableval}" in
819 yes) sim_smp
="-DWITH_SMP=5";;
820 no
) sim_smp
="-DWITH_SMP=0";;
821 *) sim_smp
="-DWITH_SMP=$enableval";;
823 if test x
"$silent" != x
"yes" && test x
"$sim_smp" != x
""; then
824 echo "Setting smp flags = $sim_smp" 6>&1
827 sim_smp
="-DWITH_SMP=0"
828 if test x
"$silent" != x
"yes"; then
829 echo "Setting smp flags = $sim_smp" 6>&1
833 # Check whether --enable-sim-xor-endian or --disable-sim-xor-endian was given.
834 if test "${enable_sim_xor_endian+set}" = set; then
835 enableval
="$enable_sim_xor_endian"
836 case "${enableval}" in
837 yes) sim_xor_endian
="-DWITH_XOR_ENDIAN=8";;
838 no
) sim_xor_endian
="-DWITH_XOR_ENDIAN=0";;
839 *) sim_xor_endian
="-DWITH_XOR_ENDIAN=$enableval";;
845 # Check whether --enable-sim-bitsize or --disable-sim-bitsize was given.
846 if test "${enable_sim_bitsize+set}" = set; then
847 enableval
="$enable_sim_bitsize"
848 case "${enableval}" in
849 32|
64) sim_bitsize
="-DWITH_TARGET_WORD_BITSIZE=$enableval";;
850 *) { echo "configure: error: "--enable-sim-bitsize was given
$enableval" 1>&2; exit 1; }; sim_bitsize="";;
852 if test x"$silent" != x"yes" && test x"$sim_bitsize" != x""; then
853 echo "Setting bitsize flags
= $sim_bitsize" 6>&1
859 # Check whether --enable-sim-hostbitsize or --disable-sim-hostbitsize was given.
860 if test "${enable_sim_hostbitsize+set}" = set; then
861 enableval="$enable_sim_hostbitsize"
862 case "${enableval}" in
863 32|64) sim_hostbitsize="-DWITH_HOST_WORD_BITSIZE=$enableval";;
864 *) { echo "configure
: error
: "--enable-sim-hostbitsize was given $enableval" 1>&2; exit 1; }; sim_hostbitsize
="";;
866 if test x
"$silent" != x
"yes" && test x
"$sim_hostbitsize" != x
""; then
867 echo "Setting hostbitsize flags = $sim_hostbitsize" 6>&1
873 # Check whether --enable-sim-env or --disable-sim-env was given.
874 if test "${enable_sim_env+set}" = set; then
875 enableval
="$enable_sim_env"
876 case "${enableval}" in
877 operating | os | oea
) sim_env
="-DWITH_ENVIRONMENT=OPERATING_ENVIRONMENT";;
878 virtual | vea
) sim_env
="-DWITH_ENVIRONMENT=VIRTUAL_ENVIRONMENT";;
879 user | uea
) sim_env
="-DWITH_ENVIRONMENT=USER_ENVIRONMENT";;
880 no
) sim_env
="-DWITH_ENVIRONMENT=0";;
881 *) { echo "configure: error: "Unknown value
$enableval passed to
--enable-sim-env"" 1>&2; exit 1; }; sim_env
="";;
883 if test x
"$silent" != x
"yes" && test x
"$sim_env" != x
""; then
884 echo "Setting env flags = $sim_env" 6>&1
890 # Check whether --enable-sim-timebase or --disable-sim-timebase was given.
891 if test "${enable_sim_timebase+set}" = set; then
892 enableval
="$enable_sim_timebase"
893 case "${enableval}" in
894 yes) sim_timebase
="-DWITH_TIME_BASE=1";;
895 no
) sim_timebase
="-DWITH_TIME_BASE=0";;
896 *) { echo "configure: error: "--enable-sim-timebase does not take a value
"" 1>&2; exit 1; }; sim_timebase
="";;
898 if test x
"$silent" != x
"yes" && test x
"$sim_timebase" != x
""; then
899 echo "Setting timebase flags = $sim_timebase" 6>&1
905 # Check whether --enable-sim-alignment or --disable-sim-alignment was given.
906 if test "${enable_sim_alignment+set}" = set; then
907 enableval
="$enable_sim_alignment"
908 case "${enableval}" in
909 yes | strict | STRICT
) sim_alignment
="-DWITH_ALIGNMENT=STRICT_ALIGNMENT";;
910 no | nonstrict | NONSTRICT
) sim_alignment
="-DWITH_ALIGNMENT=NONSTRICT_ALIGNMENT";;
911 *) { echo "configure: error: "Unknown value
$enableval passed to
--enable-sim-alignment"" 1>&2; exit 1; }; sim_alignment
="";;
913 if test x
"$silent" != x
"yes" && test x
"$sim_alignment" != x
""; then
914 echo "Setting alignment flags = $sim_alignment" 6>&1
920 # Check whether --enable-sim-trace or --disable-sim-trace was given.
921 if test "${enable_sim_trace+set}" = set; then
922 enableval
="$enable_sim_trace"
923 case "${enableval}" in
924 yes) sim_trace
="-DWITH_TRACE=1";;
925 no
) sim_trace
="-DWITH_TRACE=0";;
926 *) { echo "configure: error: "--enable-sim-trace does not take a value
"" 1>&2; exit 1; }; sim_trace
="";;
928 if test x
"$silent" != x
"yes" && test x
"$sim_trace" != x
""; then
929 echo "Setting trace flags = $sim_trace" 6>&1
935 # Check whether --enable-sim-assert or --disable-sim-assert was given.
936 if test "${enable_sim_assert+set}" = set; then
937 enableval
="$enable_sim_assert"
938 case "${enableval}" in
939 yes) sim_assert
="-DWITH_ASSERT=1";;
940 no
) sim_assert
="-DWITH_ASSERT=0";;
941 *) { echo "configure: error: "--enable-sim-assert does not take a value
"" 1>&2; exit 1; }; sim_assert
="";;
943 if test x
"$silent" != x
"yes" && test x
"$sim_assert" != x
""; then
944 echo "Setting assert flags = $sim_assert" 6>&1
950 # Check whether --enable-sim-reserved-bits or --disable-sim-reserved-bits was given.
951 if test "${enable_sim_reserved_bits+set}" = set; then
952 enableval
="$enable_sim_reserved_bits"
953 case "${enableval}" in
954 yes) sim_reserved
="-DWITH_RESERVED_BITS=1";;
955 no
) sim_reserved
="-DWITH_RESERVED_BITS=0";;
956 *) { echo "configure: error: "--enable-sim-reserved-bits does not take a value
"" 1>&2; exit 1; }; sim_reserved
="";;
958 if test x
"$silent" != x
"yes" && test x
"$sim_reserved" != x
""; then
959 echo "Setting reserved flags = $sim_reserved" 6>&1
965 # Check whether --enable-sim-float or --disable-sim-float was given.
966 if test "${enable_sim_float+set}" = set; then
967 enableval
="$enable_sim_float"
968 case "${enableval}" in
969 yes | hard
) sim_float
="-DWITH_FLOATING_POINT=HARD_FLOATING_POINT";;
970 no | soft
) sim_float
="-DWITH_FLOATING_POINT=SOFT_FLOATING_POINT";;
971 *) { echo "configure: error: "Unknown value
$enableval passed to
--enable-sim-float"" 1>&2; exit 1; }; sim_float
="";;
973 if test x
"$silent" != x
"yes" && test x
"$sim_float" != x
""; then
974 echo "Setting float flags = $sim_float" 6>&1
980 # Check whether --enable-sim-monitor or --disable-sim-monitor was given.
981 if test "${enable_sim_monitor+set}" = set; then
982 enableval
="$enable_sim_monitor"
983 case "${enableval}" in
984 yes) sim_monitor
="-DWITH_MON='MONITOR_INSTRUCTION_ISSUE | MONITOR_LOAD_STORE_UNIT'";;
985 no
) sim_monitor
="-DWITH_MON=0";;
986 instruction
) sim_monitor
="-DWITH_MON=MONITOR_INSTRUCTION_ISSUE";;
987 memory
) sim_monitor
="-DWITH_MON=MONITOR_LOAD_STORE_UNIT";;
988 *) { echo "configure: error: "Unknown value
$enableval passed to
--enable-sim-mon"" 1>&2; exit 1; }; sim_env
="";;
990 if test x
"$silent" != x
"yes" && test x
"$sim_monitor" != x
""; then
991 echo "Setting monitor flags = $sim_monitor" 6>&1
997 # Check whether --enable-sim-model or --disable-sim-model was given.
998 if test "${enable_sim_model+set}" = set; then
999 enableval
="$enable_sim_model"
1000 case "${enableval}" in
1001 yes|no
) { echo "configure: error: "No value supplied
for --enable-sim-model=model
"" 1>&2; exit 1; };;
1002 *) sim_model
="-DWITH_MODEL=${enableval}";;
1004 if test x
"$silent" != x
"yes" && test x
"$sim_model" != x
""; then
1005 echo "Setting model flags = $sim_model" 6>&1
1011 # Check whether --enable-sim-default-model or --disable-sim-default-model was given.
1012 if test "${enable_sim_default_model+set}" = set; then
1013 enableval
="$enable_sim_default_model"
1014 case "${enableval}" in
1015 yes|no
) { echo "configure: error: "No value supplied
for --enable-sim-default-model=model
"" 1>&2; exit 1; };;
1016 *) sim_default_model
="-DWITH_DEFAULT_MODEL=${enableval}";;
1018 if test x
"$silent" != x
"yes" && test x
"$sim_default_model" != x
""; then
1019 echo "Setting default-model flags = $sim_default_model" 6>&1
1025 # Check whether --enable-sim-model-issue or --disable-sim-model-issue was given.
1026 if test "${enable_sim_model_issue+set}" = set; then
1027 enableval
="$enable_sim_model_issue"
1028 case "${enableval}" in
1029 yes) sim_model_issue
="-DWITH_MODEL_ISSUE=MODEL_ISSUE_PROCESS";;
1030 no
) sim_model_issue
="-DWITH_MODEL_ISSUE=MODEL_ISSUE_IGNORE";;
1031 *) { echo "configure: error: "--enable-sim-model-issue does not take a value
"" 1>&2; exit 1; }; sim_model_issue
="";;
1033 if test x
"$silent" != x
"yes"; then
1034 echo "Setting model-issue flags = $sim_model_issue" 6>&1
1041 for ac_dir
in `cd $srcdir;pwd`/..
/..
$srcdir/`cd $srcdir;pwd`/..
/..
; do
1042 if test -f $ac_dir/install-sh
; then
1044 ac_install_sh
="$ac_aux_dir/install-sh -c"
1046 elif test -f $ac_dir/install.sh
; then
1048 ac_install_sh
="$ac_aux_dir/install.sh -c"
1052 if test -z "$ac_aux_dir"; then
1053 { echo "configure: error: can not find install-sh or install.sh in `cd $srcdir;pwd`/../.. $srcdir/`cd $srcdir;pwd`/../.." 1>&2; exit 1; }
1055 ac_config_guess
=$ac_aux_dir/config.guess
1056 ac_config_sub
=$ac_aux_dir/config.sub
1057 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
1060 # Do some error checking and defaulting for the host and target type.
1062 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
1065 # 1. You are not allowed to specify --host, --target, and nonopt at the
1067 # 2. Host defaults to nonopt.
1068 # 3. If nonopt is not specified, then host defaults to the current host,
1069 # as determined by config.guess.
1070 # 4. Target and build default to nonopt.
1071 # 5. If nonopt is not specified, then target and build default to host.
1073 # The aliases save the names the user supplied, while $host etc.
1074 # will get canonicalized.
1075 case $host---$target---$nonopt in
1076 NONE---
*---* |
*---NONE---* |
*---*---NONE) ;;
1077 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
1081 # Make sure we can run config.sub.
1082 if $ac_config_sub sun4
>/dev
/null
2>&1; then :
1083 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1086 echo $ac_n "checking host system type""... $ac_c" 1>&6
1089 case "$host_alias" in
1093 if host_alias
=`$ac_config_guess`; then :
1094 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1096 *) host_alias
=$nonopt ;;
1100 host=`$ac_config_sub $host_alias`
1101 host_cpu
=`echo $host | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\1/'`
1102 host_vendor
=`echo $host | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\2/'`
1103 host_os
=`echo $host | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\3/'`
1104 echo "$ac_t""$host" 1>&6
1106 echo $ac_n "checking target system type""... $ac_c" 1>&6
1108 target_alias
=$target
1109 case "$target_alias" in
1112 NONE
) target_alias
=$host_alias ;;
1113 *) target_alias
=$nonopt ;;
1117 target
=`$ac_config_sub $target_alias`
1118 target_cpu
=`echo $target | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\1/'`
1119 target_vendor
=`echo $target | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\2/'`
1120 target_os
=`echo $target | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\3/'`
1121 echo "$ac_t""$target" 1>&6
1123 echo $ac_n "checking build system type""... $ac_c" 1>&6
1126 case "$build_alias" in
1129 NONE
) build_alias
=$host_alias ;;
1130 *) build_alias
=$nonopt ;;
1134 build
=`$ac_config_sub $build_alias`
1135 build_cpu
=`echo $build | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\1/'`
1136 build_vendor
=`echo $build | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\2/'`
1137 build_os
=`echo $build | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\3/'`
1138 echo "$ac_t""$build" 1>&6
1140 test "$host_alias" != "$target_alias" &&
1141 test "$program_prefix$program_suffix$program_transform_name" = \
1143 program_prefix
=${target_alias}-
1145 if test "$program_transform_name" = s
,x
,x
,; then
1146 program_transform_name
=
1148 # Double any \ or $. echo might interpret backslashes.
1149 cat <<\EOF_SED
> conftestsed
1150 s
,\\,\\\\,g
; s
,\$
,$$
,g
1152 program_transform_name
="`echo $program_transform_name|sed -f conftestsed`"
1155 test "$program_prefix" != NONE
&&
1156 program_transform_name
="s,^,${program_prefix},; $program_transform_name"
1157 # Use a double $ so make ignores it.
1158 test "$program_suffix" != NONE
&&
1159 program_transform_name
="s,\$\$,${program_suffix},; $program_transform_name"
1161 # sed with no file args requires a program.
1162 test "$program_transform_name" = "" && program_transform_name
="s,x,x,"
1165 .
${srcdir}/..
/..
/bfd
/configure.
host
1169 # Extract the first word of "gcc", so it can be a program name with args.
1170 set dummy gcc
; ac_word
=$2
1171 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1172 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1173 echo $ac_n "(cached) $ac_c" 1>&6
1175 if test -n "$CC"; then
1176 ac_cv_prog_CC
="$CC" # Let the user override the test.
1178 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1179 for ac_dir
in $PATH; do
1180 test -z "$ac_dir" && ac_dir
=.
1181 if test -f $ac_dir/$ac_word; then
1187 test -z "$ac_cv_prog_CC" && ac_cv_prog_CC
="cc"
1191 if test -n "$CC"; then
1192 echo "$ac_t""$CC" 1>&6
1194 echo "$ac_t""no" 1>&6
1198 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1199 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1200 echo $ac_n "(cached) $ac_c" 1>&6
1202 cat > conftest.c
<<EOF
1207 if ${CC-cc} -E conftest.c
2>&5 |
egrep yes >/dev
/null
2>&1; then
1214 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1215 if test $ac_cv_prog_gcc = yes; then
1217 if test "${CFLAGS+set}" != set; then
1218 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1219 if eval "test \"`echo '$''{'ac_cv_prog_gcc_g'+set}'`\" = set"; then
1220 echo $ac_n "(cached) $ac_c" 1>&6
1222 echo 'void f(){}' > conftest.c
1223 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1224 ac_cv_prog_gcc_g
=yes
1232 echo "$ac_t""$ac_cv_prog_gcc_g" 1>&6
1233 if test $ac_cv_prog_gcc_g = yes; then
1241 test "${CFLAGS+set}" = set || CFLAGS
="-g"
1248 # Extract the first word of "ranlib", so it can be a program name with args.
1249 set dummy ranlib
; ac_word
=$2
1250 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1251 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1252 echo $ac_n "(cached) $ac_c" 1>&6
1254 if test -n "$RANLIB"; then
1255 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1257 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1258 for ac_dir
in $PATH; do
1259 test -z "$ac_dir" && ac_dir
=.
1260 if test -f $ac_dir/$ac_word; then
1261 ac_cv_prog_RANLIB
="ranlib"
1266 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
1269 RANLIB
="$ac_cv_prog_RANLIB"
1270 if test -n "$RANLIB"; then
1271 echo "$ac_t""$RANLIB" 1>&6
1273 echo "$ac_t""no" 1>&6
1304 for ac_func
in getrusage
1306 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1307 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1308 echo $ac_n "(cached) $ac_c" 1>&6
1310 cat > conftest.
$ac_ext <<EOF
1311 #line 1312 "configure"
1312 #include "confdefs.h"
1313 /* System header to define __stub macros and hopefully few prototypes,
1314 which can conflict with char $ac_func(); below. */
1316 /* Override any gcc2 internal prototype to avoid an error. */
1319 int main() { return 0; }
1322 /* The GNU C library defines this for functions which it implements
1323 to always fail with ENOSYS. Some functions are actually named
1324 something starting with __ and the normal name is an alias. */
1325 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1333 if eval $ac_link; then
1335 eval "ac_cv_func_$ac_func=yes"
1338 eval "ac_cv_func_$ac_func=no"
1343 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1344 echo "$ac_t""yes" 1>&6
1345 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1346 cat >> confdefs.h
<<EOF
1347 #define $ac_tr_func 1
1351 echo "$ac_t""no" 1>&6
1356 # Put a plausible default for CC_FOR_BUILD in Makefile.
1357 # If we cannot run a trivial program, we must be cross compiling.
1358 echo $ac_n "checking whether cross-compiling""... $ac_c" 1>&6
1359 if eval "test \"`echo '$''{'ac_cv_c_cross'+set}'`\" = set"; then
1360 echo $ac_n "(cached) $ac_c" 1>&6
1362 if test "$cross_compiling" = yes; then
1365 cat > conftest.
$ac_ext <<EOF
1366 #line 1367 "configure"
1367 #include "confdefs.h"
1371 if test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
; then
1380 echo "$ac_t""$ac_cv_c_cross" 1>&6
1381 cross_compiling
=$ac_cv_c_cross
1383 if test "x$cross_compiling" = "xno"; then
1384 CC_FOR_BUILD
='$(CC)'
1390 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
1391 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
1392 echo $ac_n "(cached) $ac_c" 1>&6
1394 ac_cv_c_bigendian
=unknown
1395 # See if sys/param.h defines the BYTE_ORDER macro.
1396 cat > conftest.
$ac_ext <<EOF
1397 #line 1398 "configure"
1398 #include "confdefs.h"
1399 #include <sys/types.h>
1400 #include <sys/param.h>
1401 int main() { return 0; }
1404 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
1409 if eval $ac_compile; then
1411 # It does; now see whether it defined to BIG_ENDIAN or not.
1412 cat > conftest.
$ac_ext <<EOF
1413 #line 1414 "configure"
1414 #include "confdefs.h"
1415 #include <sys/types.h>
1416 #include <sys/param.h>
1417 int main() { return 0; }
1420 #if BYTE_ORDER != BIG_ENDIAN
1425 if eval $ac_compile; then
1427 ac_cv_c_bigendian
=yes
1430 ac_cv_c_bigendian
=no
1437 if test $ac_cv_c_bigendian = unknown
; then
1438 if test "$cross_compiling" = yes; then
1439 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
1441 cat > conftest.
$ac_ext <<EOF
1442 #line 1443 "configure"
1443 #include "confdefs.h"
1445 /* Are we little or big endian? From Harbison&Steele. */
1449 char c[sizeof (long)];
1452 exit (u.c[sizeof (long) - 1] == 1);
1456 if test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
; then
1457 ac_cv_c_bigendian
=no
1459 ac_cv_c_bigendian
=yes
1466 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
1467 if test $ac_cv_c_bigendian = yes; then
1468 cat >> confdefs.h
<<\EOF
1469 #define WORDS_BIGENDIAN 1
1476 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1477 # On Suns, sometimes $CPP names a directory.
1478 if test -n "$CPP" && test -d "$CPP"; then
1481 if test -z "$CPP"; then
1482 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1483 echo $ac_n "(cached) $ac_c" 1>&6
1485 # This must be in double quotes, not single quotes, because CPP may get
1486 # substituted into the Makefile and "${CC-cc}" will confuse make.
1488 # On the NeXT, cc -E runs the code through the compiler's parser,
1489 # not just through cpp.
1490 cat > conftest.
$ac_ext <<EOF
1491 #line 1492 "configure"
1492 #include "confdefs.h"
1496 eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1497 ac_err
=`grep -v '^ *+' conftest.out`
1498 if test -z "$ac_err"; then
1503 CPP
="${CC-cc} -E -traditional-cpp"
1504 cat > conftest.
$ac_ext <<EOF
1505 #line 1506 "configure"
1506 #include "confdefs.h"
1510 eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1511 ac_err
=`grep -v '^ *+' conftest.out`
1512 if test -z "$ac_err"; then
1522 ac_cv_prog_CPP
="$CPP"
1524 CPP
="$ac_cv_prog_CPP"
1526 ac_cv_prog_CPP
="$CPP"
1528 echo "$ac_t""$CPP" 1>&6
1530 for ac_hdr
in string.h
strings.h stdlib.h
time.h sys
/types.h sys
/time.h sys
/times.h unistd.h sys
/resource.h
1532 ac_safe
=`echo "$ac_hdr" | tr './\055' '___'`
1533 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1534 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1535 echo $ac_n "(cached) $ac_c" 1>&6
1537 cat > conftest.
$ac_ext <<EOF
1538 #line 1539 "configure"
1539 #include "confdefs.h"
1542 eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1543 ac_err
=`grep -v '^ *+' conftest.out`
1544 if test -z "$ac_err"; then
1546 eval "ac_cv_header_$ac_safe=yes"
1550 eval "ac_cv_header_$ac_safe=no"
1554 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1555 echo "$ac_t""yes" 1>&6
1556 ac_tr_hdr
=HAVE_
`echo $ac_hdr | tr 'abcdefghijklmnopqrstuvwxyz./\055' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ___'`
1557 cat >> confdefs.h
<<EOF
1558 #define $ac_tr_hdr 1
1562 echo "$ac_t""no" 1>&6
1567 for ac_hdr
in dirent.h sys
/ndir.h sys
/dir.h ndir.h
1569 ac_safe
=`echo "$ac_hdr" | tr './\055' '___'`
1570 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
1571 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
1572 echo $ac_n "(cached) $ac_c" 1>&6
1574 cat > conftest.
$ac_ext <<EOF
1575 #line 1576 "configure"
1576 #include "confdefs.h"
1577 #include <sys/types.h>
1579 int main() { return 0; }
1584 if eval $ac_compile; then
1586 eval "ac_cv_header_dirent_$ac_safe=yes"
1589 eval "ac_cv_header_dirent_$ac_safe=no"
1594 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
1595 echo "$ac_t""yes" 1>&6
1596 ac_tr_hdr
=HAVE_
`echo $ac_hdr | tr 'abcdedfghijklmnopqrstuvwxyz./\055' 'ABCDEDFGHIJKLMNOPQRSTUVWXYZ___'`
1597 cat >> confdefs.h
<<EOF
1598 #define $ac_tr_hdr 1
1600 ac_header_dirent
=$ac_hdr; break
1602 echo "$ac_t""no" 1>&6
1605 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
1606 if test $ac_header_dirent = dirent.h
; then
1607 echo $ac_n "checking for -ldir""... $ac_c" 1>&6
1608 ac_lib_var
=`echo dir | tr '.-/+' '___p'`
1609 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1610 echo $ac_n "(cached) $ac_c" 1>&6
1612 ac_save_LIBS
="$LIBS"
1614 cat > conftest.
$ac_ext <<EOF
1615 #line 1616 "configure"
1616 #include "confdefs.h"
1618 int main() { return 0; }
1623 if eval $ac_link; then
1625 eval "ac_cv_lib_$ac_lib_var=yes"
1628 eval "ac_cv_lib_$ac_lib_var=no"
1631 LIBS
="$ac_save_LIBS"
1634 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1635 echo "$ac_t""yes" 1>&6
1638 echo "$ac_t""no" 1>&6
1642 echo $ac_n "checking for -lx""... $ac_c" 1>&6
1643 ac_lib_var
=`echo x | tr '.-/+' '___p'`
1644 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1645 echo $ac_n "(cached) $ac_c" 1>&6
1647 ac_save_LIBS
="$LIBS"
1649 cat > conftest.
$ac_ext <<EOF
1650 #line 1651 "configure"
1651 #include "confdefs.h"
1653 int main() { return 0; }
1658 if eval $ac_link; then
1660 eval "ac_cv_lib_$ac_lib_var=yes"
1663 eval "ac_cv_lib_$ac_lib_var=no"
1666 LIBS
="$ac_save_LIBS"
1669 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1670 echo "$ac_t""yes" 1>&6
1673 echo "$ac_t""no" 1>&6
1680 cat > confcache
<<\EOF
1681 # This file is a shell script that caches the results of configure
1682 # tests run on this system so they can be shared between configure
1683 # scripts and configure runs. It is not useful on other systems.
1684 # If it contains results you don't want to keep, you may remove or edit it.
1686 # By default, configure uses ./config.cache as the cache file,
1687 # creating it if it does not exist already. You can give configure
1688 # the --cache-file=FILE option to use a different cache file; that is
1689 # what configure does when it calls configure scripts in
1690 # subdirectories, so they share the cache.
1691 # Giving --cache-file=/dev/null disables caching, for debugging configure.
1692 # config.status only pays attention to the cache file if you give it the
1693 # --recheck option to rerun configure.
1696 # Ultrix sh set writes to stderr and can't be redirected directly,
1697 # and sets the high bit in the cache file unless we assign to the vars.
1699 sed -n "s/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=\${\1='\2'}/p" \
1701 if cmp -s $cache_file confcache
; then
1704 if test -w $cache_file; then
1705 echo "updating cache $cache_file"
1706 cat confcache
> $cache_file
1708 echo "not updating unwritable cache $cache_file"
1713 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
1715 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
1716 # Let make expand exec_prefix.
1717 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
1719 # Any assignment to VPATH causes Sun make to only execute
1720 # the first set of double-colon rules, so remove it if not needed.
1721 # If there is a colon in the path, we need to keep it.
1722 if test "x$srcdir" = x.
; then
1723 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
1726 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
1728 DEFS
=-DHAVE_CONFIG_H
1730 # Without the "./", some shells look in PATH for config.status.
1731 : ${CONFIG_STATUS=./config.status}
1733 echo creating
$CONFIG_STATUS
1734 rm -f $CONFIG_STATUS
1735 cat > $CONFIG_STATUS <<EOF
1737 # Generated automatically by configure.
1738 # Run this file to recreate the current configuration.
1739 # This directory was configured as follows,
1740 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
1742 # $0 $ac_configure_args
1744 # Compiler output produced by configure, useful for debugging
1745 # configure, is in ./config.log if it exists.
1747 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
1750 case "\$ac_option" in
1751 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1752 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
1753 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
1754 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
1755 echo "$CONFIG_STATUS generated by autoconf version 2.7"
1757 -help | --help | --hel | --he | --h)
1758 echo "\$ac_cs_usage"; exit 0 ;;
1759 *) echo "\$ac_cs_usage"; exit 1 ;;
1763 ac_given_srcdir=$srcdir
1765 trap 'rm -fr `echo "Makefile config.h:config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
1767 cat >> $CONFIG_STATUS <<EOF
1769 # Protect against being on the right side of a sed subst in config.status.
1770 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
1771 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
1774 s%@CFLAGS@%$CFLAGS%g
1775 s%@CPPFLAGS@%$CPPFLAGS%g
1776 s%@CXXFLAGS@%$CXXFLAGS%g
1778 s%@LDFLAGS@%$LDFLAGS%g
1780 s%@exec_prefix@%$exec_prefix%g
1781 s%@prefix@%$prefix%g
1782 s%@program_transform_name@%$program_transform_name%g
1783 s%@bindir@%$bindir%g
1784 s%@sbindir@%$sbindir%g
1785 s%@libexecdir@%$libexecdir%g
1786 s%@datadir@%$datadir%g
1787 s%@sysconfdir@%$sysconfdir%g
1788 s%@sharedstatedir@%$sharedstatedir%g
1789 s%@localstatedir@%$localstatedir%g
1790 s%@libdir@%$libdir%g
1791 s%@includedir@%$includedir%g
1792 s%@oldincludedir@%$oldincludedir%g
1793 s%@infodir@%$infodir%g
1794 s%@mandir@%$mandir%g
1796 s%@host_alias@%$host_alias%g
1797 s%@host_cpu@%$host_cpu%g
1798 s%@host_vendor@%$host_vendor%g
1799 s%@host_os@%$host_os%g
1800 s%@target@%$target%g
1801 s%@target_alias@%$target_alias%g
1802 s%@target_cpu@%$target_cpu%g
1803 s%@target_vendor@%$target_vendor%g
1804 s%@target_os@%$target_os%g
1806 s%@build_alias@%$build_alias%g
1807 s%@build_cpu@%$build_cpu%g
1808 s%@build_vendor@%$build_vendor%g
1809 s%@build_os@%$build_os%g
1811 s%@HDEFINES@%$HDEFINES%g
1813 s%@RANLIB@%$RANLIB%g
1814 s%@sim_cflags@%$sim_cflags%g
1815 s%@sim_warnings@%$sim_warnings%g
1816 s%@sim_config@%$sim_config%g
1817 s%@sim_opcode@%$sim_opcode%g
1818 s%@sim_switch@%$sim_switch%g
1819 s%@sim_dup@%$sim_dup%g
1820 s%@sim_filter@%$sim_filter%g
1821 s%@sim_icache@%$sim_icache%g
1822 s%@sim_inline@%$sim_inline%g
1823 s%@sim_bswap@%$sim_bswap%g
1824 s%@sim_endian@%$sim_endian%g
1825 s%@sim_xor_endian@%$sim_xor_endian%g
1826 s%@sim_hostendian@%$sim_hostendian%g
1827 s%@sim_smp@%$sim_smp%g
1828 s%@sim_bitsize@%$sim_bitsize%g
1829 s%@sim_hostbitsize@%$sim_hostbitsize%g
1830 s%@sim_env@%$sim_env%g
1831 s%@sim_timebase@%$sim_timebase%g
1832 s%@sim_alignment@%$sim_alignment%g
1833 s%@sim_float@%$sim_float%g
1834 s%@sim_trace@%$sim_trace%g
1835 s%@sim_assert@%$sim_assert%g
1836 s%@sim_reserved@%$sim_reserved%g
1837 s%@sim_monitor@%$sim_monitor%g
1838 s%@sim_model@%$sim_model%g
1839 s%@sim_default_model@%$sim_default_model%g
1840 s%@sim_model_issue@%$sim_model_issue%g
1841 s%@CC_FOR_BUILD@%$CC_FOR_BUILD%g
1842 s%@WORDS_BIGENDIAN@%$WORDS_BIGENDIAN%g
1847 cat >> $CONFIG_STATUS <<EOF
1849 CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
1851 cat >> $CONFIG_STATUS <<\EOF
1852 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
1853 # Support "outfile[:infile]", defaulting infile="outfile.in".
1855 *:*) ac_file_in
=`echo "$ac_file"|sed 's%.*:%%'`
1856 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
1857 *) ac_file_in
="${ac_file}.in" ;;
1860 # Adjust relative srcdir, etc. for subdirectories.
1862 # Remove last slash and all that follows it. Not all systems have dirname.
1863 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
1864 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
1865 # The file is in a subdirectory.
1866 test ! -d "$ac_dir" && mkdir
"$ac_dir"
1867 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
1868 # A "../" for each directory in $ac_dir_suffix.
1869 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
1871 ac_dir_suffix
= ac_dots
=
1874 case "$ac_given_srcdir" in
1876 if test -z "$ac_dots"; then top_srcdir
=.
1877 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
1878 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
1880 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
1881 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
1884 echo creating
"$ac_file"
1886 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
1888 *Makefile
*) ac_comsub
="1i\\
1889 # $configure_input" ;;
1893 s%@configure_input@%$configure_input%g
1894 s%@srcdir@%$srcdir%g
1895 s%@top_srcdir@%$top_srcdir%g
1896 " -f conftest.subs
$ac_given_srcdir/$ac_file_in > $ac_file
1900 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
1901 # NAME is the cpp macro being defined and VALUE is the value it is being given.
1903 # ac_d sets the value in "#define NAME VALUE" lines.
1904 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
1905 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
1908 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
1909 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
1910 ac_uB
='\([ ]\)%\1#\2define\3'
1913 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
1914 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
1915 ac_eB
='$%\1#\2define\3'
1919 CONFIG_HEADERS
=${CONFIG_HEADERS-"config.h:config.in"}
1920 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
1921 # Support "outfile[:infile]", defaulting infile="outfile.in".
1923 *:*) ac_file_in
=`echo "$ac_file"|sed 's%.*:%%'`
1924 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
1925 *) ac_file_in
="${ac_file}.in" ;;
1928 echo creating
$ac_file
1930 rm -f conftest.frag conftest.
in conftest.out
1931 cp $ac_given_srcdir/$ac_file_in conftest.
in
1935 # Transform confdefs.h into a sed script conftest.vals that substitutes
1936 # the proper values into config.h.in to produce config.h. And first:
1937 # Protect against being on the right side of a sed subst in config.status.
1938 # Protect against being in an unquoted here document in config.status.
1940 cat > conftest.hdr
<<\EOF
1943 s%#define \([A-Za-z_][A-Za-z0-9_]*\) \(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
1947 sed -n -f conftest.hdr confdefs.h > conftest.vals
1950 # This sed command replaces #undef with comments. This is necessary, for
1951 # example, in the case of _POSIX_SOURCE, which is predefined and required
1952 # on some systems where configure will not decide to define it.
1953 cat >> conftest.vals <<\EOF
1954 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
1957 # Break up conftest.vals because some shells have a limit on
1958 # the size of here documents, and old seds have small limits too.
1959 # Maximum number of lines to put in a single here document.
1960 ac_max_here_lines=12
1965 ac_lines=`grep -c . conftest.vals
`
1966 # grep -c gives empty output for an empty file on some AIX systems.
1967 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
1968 # Write a limited-size here document to conftest.frag.
1969 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
1970 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
1972 sed -f conftest.frag conftest.in > conftest.out
1974 mv conftest.out conftest.in
1976 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
1978 mv conftest.tail conftest.vals
1982 cat >> $CONFIG_STATUS <<\EOF
1983 rm -f conftest.frag conftest.h
1984 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
1985 cat conftest.in >> conftest.h
1987 if cmp -s $ac_file conftest.h 2>/dev/null; then
1988 echo "$ac_file is unchanged"
1992 mv conftest.h $ac_file
1997 case x$CONFIG_HEADERS in xconfig.h:config.in) echo > stamp-h ;; esac
2000 chmod +x $CONFIG_STATUS
2001 rm -fr confdefs* $ac_clean_files
2002 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1