45 sim_inline
="-DDEFAULT_INLINE=0"
82 # This file is derived from `gettext.m4'. The difference is that the
83 # included macros assume Cygnus-style source and build trees.
85 # Macro to add for using GNU gettext.
86 # Ulrich Drepper <drepper@cygnus.com>, 1995.
88 # This file file be copied and used freely without restrictions. It can
89 # be used in projects which are not available under the GNU Public License
90 # but which still want to provide support for the GNU gettext functionality.
91 # Please note that the actual code is *not* freely available.
99 # Search path for a program which passes the given test.
100 # Ulrich Drepper <drepper@cygnus.com>, 1996.
102 # This file file be copied and used freely without restrictions. It can
103 # be used in projects which are not available under the GNU Public License
104 # but which still want to provide support for the GNU gettext functionality.
105 # Please note that the actual code is *not* freely available.
111 # Check whether LC_MESSAGES is available in <locale.h>.
112 # Ulrich Drepper <drepper@cygnus.com>, 1995.
114 # This file file be copied and used freely without restrictions. It can
115 # be used in projects which are not available under the GNU Public License
116 # but which still want to provide support for the GNU gettext functionality.
117 # Please note that the actual code is *not* freely available.
126 # Guess values for system-dependent variables and create Makefiles.
127 # Generated automatically using autoconf version 2.13
128 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
130 # This configure script is free software; the Free Software Foundation
131 # gives unlimited permission to copy, distribute and modify it.
135 ac_default_prefix
=/usr
/local
136 # Any additions from configure.in:
138 --disable-nls do not use Native Language Support"
140 --with-included-gettext use the GNU gettext library included here"
142 --enable-maintainer-mode Enable developer functionality."
144 --enable-sim-bswap Use Host specific BSWAP instruction."
146 --enable-sim-cflags=opts Extra CFLAGS for use in building simulator"
148 --enable-sim-debug=opts Enable debugging flags"
150 --enable-sim-stdio Specify whether to use stdio for console input/output."
152 --enable-sim-trace=opts Enable tracing flags"
154 --enable-sim-profile=opts Enable profiling flags"
156 --enable-sim-inline=inlines Specify which functions should be inlined."
158 --enable-sim-alignment=align Specify strict, nonstrict or forced alignment of memory accesses."
160 --enable-sim-hostendian=end Specify host byte endian orientation."
162 --enable-build-warnings Enable build-time compiler warnings if gcc is used"
164 --enable-gdb-build-warnings Enable SIM specific build-time compiler warnings if gcc is used"
166 --enable-sim-reserved-bits Specify whether to check reserved bits in instruction."
168 --enable-sim-endian=endian Specify target byte endian orientation."
170 --enable-sim-bitsize=N Specify target bitsize (32 or 64)."
172 --enable-sim-float Specify that the target processor has floating point hardware."
174 --enable-sim-smp=n Specify number of processors to configure for (default ${default_sim_smp})."
176 --enable-sim-hardware=LIST Specify the hardware to be included in the build."
178 --with-x use the X Window System"
180 # Initialize some variables set by options.
181 # The variables have the same names as the options, with
182 # dashes changed to underlines.
184 cache_file
=.
/config.cache
193 program_transform_name
=s
,x
,x
,
202 bindir
='${exec_prefix}/bin'
203 sbindir
='${exec_prefix}/sbin'
204 libexecdir
='${exec_prefix}/libexec'
205 datadir
='${prefix}/share'
206 sysconfdir
='${prefix}/etc'
207 sharedstatedir
='${prefix}/com'
208 localstatedir
='${prefix}/var'
209 libdir
='${exec_prefix}/lib'
210 includedir
='${prefix}/include'
211 oldincludedir
='/usr/include'
212 infodir
='${prefix}/info'
213 mandir
='${prefix}/man'
215 # Initialize some other variables.
218 SHELL
=${CONFIG_SHELL-/bin/sh}
219 # Maximum number of lines to put in a shell here document.
226 # If the previous option needs an argument, assign it.
227 if test -n "$ac_prev"; then
228 eval "$ac_prev=\$ac_option"
234 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
238 # Accept the important Cygnus configure options, so we can diagnose typos.
242 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
244 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
245 bindir
="$ac_optarg" ;;
247 -build |
--build |
--buil |
--bui |
--bu)
249 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
250 build
="$ac_optarg" ;;
252 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
253 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
254 ac_prev
=cache_file
;;
255 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
256 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
257 cache_file
="$ac_optarg" ;;
259 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
261 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
263 datadir
="$ac_optarg" ;;
265 -disable-* |
--disable-*)
266 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
267 # Reject names that are not valid shell variable names.
268 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
269 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
271 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
272 eval "enable_${ac_feature}=no" ;;
274 -enable-* |
--enable-*)
275 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
276 # Reject names that are not valid shell variable names.
277 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
278 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
280 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
285 eval "enable_${ac_feature}='$ac_optarg'" ;;
287 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
288 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
289 |
--exec |
--exe |
--ex)
290 ac_prev
=exec_prefix
;;
291 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
292 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
293 |
--exec=* |
--exe=* |
--ex=*)
294 exec_prefix
="$ac_optarg" ;;
296 -gas |
--gas |
--ga |
--g)
297 # Obsolete; use --with-gas.
300 -help |
--help |
--hel |
--he)
301 # Omit some internal or obsolete options to make the list less imposing.
302 # This message is too long to be a string in the A/UX 3.1 sh.
304 Usage: configure [options] [host]
305 Options: [defaults in brackets after descriptions]
307 --cache-file=FILE cache test results in FILE
308 --help print this message
309 --no-create do not create output files
310 --quiet, --silent do not print \`checking...' messages
311 --site-file=FILE use FILE as the site file
312 --version print the version of autoconf that created configure
313 Directory and file names:
314 --prefix=PREFIX install architecture-independent files in PREFIX
316 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
318 --bindir=DIR user executables in DIR [EPREFIX/bin]
319 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
320 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
321 --datadir=DIR read-only architecture-independent data in DIR
323 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
324 --sharedstatedir=DIR modifiable architecture-independent data in DIR
326 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
327 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
328 --includedir=DIR C header files in DIR [PREFIX/include]
329 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
330 --infodir=DIR info documentation in DIR [PREFIX/info]
331 --mandir=DIR man documentation in DIR [PREFIX/man]
332 --srcdir=DIR find the sources in DIR [configure dir or ..]
333 --program-prefix=PREFIX prepend PREFIX to installed program names
334 --program-suffix=SUFFIX append SUFFIX to installed program names
335 --program-transform-name=PROGRAM
336 run sed PROGRAM on installed program names
340 --build=BUILD configure for building on BUILD [BUILD=HOST]
341 --host=HOST configure for HOST [guessed]
342 --target=TARGET configure for TARGET [TARGET=HOST]
343 Features and packages:
344 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
345 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
346 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
347 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
348 --x-includes=DIR X include files are in DIR
349 --x-libraries=DIR X library files are in DIR
351 if test -n "$ac_help"; then
352 echo "--enable and --with options recognized:$ac_help"
356 -host |
--host |
--hos |
--ho)
358 -host=* |
--host=* |
--hos=* |
--ho=*)
361 -includedir |
--includedir |
--includedi |
--included |
--include \
362 |
--includ |
--inclu |
--incl |
--inc)
363 ac_prev
=includedir
;;
364 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
365 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
366 includedir
="$ac_optarg" ;;
368 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
370 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
371 infodir
="$ac_optarg" ;;
373 -libdir |
--libdir |
--libdi |
--libd)
375 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
376 libdir
="$ac_optarg" ;;
378 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
379 |
--libexe |
--libex |
--libe)
380 ac_prev
=libexecdir
;;
381 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
382 |
--libexe=* |
--libex=* |
--libe=*)
383 libexecdir
="$ac_optarg" ;;
385 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
386 |
--localstate |
--localstat |
--localsta |
--localst \
387 |
--locals |
--local |
--loca |
--loc |
--lo)
388 ac_prev
=localstatedir
;;
389 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
390 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
391 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
392 localstatedir
="$ac_optarg" ;;
394 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
396 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
397 mandir
="$ac_optarg" ;;
400 # Obsolete; use --without-fp.
403 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
407 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
408 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
411 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
412 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
413 |
--oldin |
--oldi |
--old |
--ol |
--o)
414 ac_prev
=oldincludedir
;;
415 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
416 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
417 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
418 oldincludedir
="$ac_optarg" ;;
420 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
422 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
423 prefix
="$ac_optarg" ;;
425 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
426 |
--program-pre |
--program-pr |
--program-p)
427 ac_prev
=program_prefix
;;
428 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
429 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
430 program_prefix
="$ac_optarg" ;;
432 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
433 |
--program-suf |
--program-su |
--program-s)
434 ac_prev
=program_suffix
;;
435 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
436 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
437 program_suffix
="$ac_optarg" ;;
439 -program-transform-name |
--program-transform-name \
440 |
--program-transform-nam |
--program-transform-na \
441 |
--program-transform-n |
--program-transform- \
442 |
--program-transform |
--program-transfor \
443 |
--program-transfo |
--program-transf \
444 |
--program-trans |
--program-tran \
445 |
--progr-tra |
--program-tr |
--program-t)
446 ac_prev
=program_transform_name
;;
447 -program-transform-name=* |
--program-transform-name=* \
448 |
--program-transform-nam=* |
--program-transform-na=* \
449 |
--program-transform-n=* |
--program-transform-=* \
450 |
--program-transform=* |
--program-transfor=* \
451 |
--program-transfo=* |
--program-transf=* \
452 |
--program-trans=* |
--program-tran=* \
453 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
454 program_transform_name
="$ac_optarg" ;;
456 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
457 |
-silent |
--silent |
--silen |
--sile |
--sil)
460 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
462 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
464 sbindir
="$ac_optarg" ;;
466 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
467 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
468 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
470 ac_prev
=sharedstatedir
;;
471 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
472 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
473 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
475 sharedstatedir
="$ac_optarg" ;;
477 -site |
--site |
--sit)
479 -site=* |
--site=* |
--sit=*)
482 -site-file |
--site-file |
--site-fil |
--site-fi |
--site-f)
484 -site-file=* |
--site-file=* |
--site-fil=* |
--site-fi=* |
--site-f=*)
485 sitefile
="$ac_optarg" ;;
487 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
489 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
490 srcdir
="$ac_optarg" ;;
492 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
493 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
494 ac_prev
=sysconfdir
;;
495 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
496 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
497 sysconfdir
="$ac_optarg" ;;
499 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
501 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
502 target
="$ac_optarg" ;;
504 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
507 -version |
--version |
--versio |
--versi |
--vers)
508 echo "configure generated by autoconf version 2.13"
512 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
513 # Reject names that are not valid shell variable names.
514 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
515 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
517 ac_package
=`echo $ac_package| sed 's/-/_/g'`
522 eval "with_${ac_package}='$ac_optarg'" ;;
524 -without-* |
--without-*)
525 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
526 # Reject names that are not valid shell variable names.
527 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
528 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
530 ac_package
=`echo $ac_package| sed 's/-/_/g'`
531 eval "with_${ac_package}=no" ;;
534 # Obsolete; use --with-x.
537 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
538 |
--x-incl |
--x-inc |
--x-in |
--x-i)
539 ac_prev
=x_includes
;;
540 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
541 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
542 x_includes
="$ac_optarg" ;;
544 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
545 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
546 ac_prev
=x_libraries
;;
547 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
548 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
549 x_libraries
="$ac_optarg" ;;
551 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
555 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
556 echo "configure: warning: $ac_option: invalid host type" 1>&2
558 if test "x$nonopt" != xNONE
; then
559 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
567 if test -n "$ac_prev"; then
568 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
571 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
573 # File descriptor usage:
576 # 2 errors and warnings
577 # 3 some systems may open it to /dev/tty
578 # 4 used on the Kubota Titan
579 # 6 checking for... messages and results
580 # 5 compiler messages saved in config.log
581 if test "$silent" = yes; then
589 This file contains any messages produced by compilers while
590 running configure, to aid debugging if configure makes a mistake.
593 # Strip out --no-create and --no-recursion so they do not pile up.
594 # Also quote any args containing shell metacharacters.
599 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
600 |
--no-cr |
--no-c) ;;
601 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
602 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
603 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
604 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
605 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
610 # Only set these to C if already set. These must not be set unconditionally
611 # because not all systems understand e.g. LANG=C (notably SCO).
612 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
613 # Non-C LC_CTYPE values break the ctype check.
614 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
615 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
616 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
617 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
619 # confdefs.h avoids OS command line length limits that DEFS can exceed.
620 rm -rf conftest
* confdefs.h
621 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
624 # A filename unique to this package, relative to the directory that
625 # configure is in, which we can look for to find out if srcdir is correct.
626 ac_unique_file
=Makefile.
in
628 # Find the source files, if location was not specified.
629 if test -z "$srcdir"; then
630 ac_srcdir_defaulted
=yes
631 # Try the directory containing this script, then its parent.
633 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
634 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
636 if test ! -r $srcdir/$ac_unique_file; then
640 ac_srcdir_defaulted
=no
642 if test ! -r $srcdir/$ac_unique_file; then
643 if test "$ac_srcdir_defaulted" = yes; then
644 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
646 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
649 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
651 # Prefer explicitly selected file to automatically selected ones.
652 if test -z "$sitefile"; then
653 if test -z "$CONFIG_SITE"; then
654 if test "x$prefix" != xNONE
; then
655 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
657 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
661 CONFIG_SITE
="$sitefile"
663 for ac_site_file
in $CONFIG_SITE; do
664 if test -r "$ac_site_file"; then
665 echo "loading site script $ac_site_file"
670 if test -r "$cache_file"; then
671 echo "loading cache $cache_file"
674 echo "creating cache $cache_file"
679 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
680 ac_cpp
='$CPP $CPPFLAGS'
681 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
682 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
683 cross_compiling
=$ac_cv_prog_cc_cross
687 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
688 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
689 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
696 ac_n
= ac_c
='\c' ac_t
=
701 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
702 echo "configure:703: checking how to run the C preprocessor" >&5
703 # On Suns, sometimes $CPP names a directory.
704 if test -n "$CPP" && test -d "$CPP"; then
707 if test -z "$CPP"; then
708 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
709 echo $ac_n "(cached) $ac_c" 1>&6
711 # This must be in double quotes, not single quotes, because CPP may get
712 # substituted into the Makefile and "${CC-cc}" will confuse make.
714 # On the NeXT, cc -E runs the code through the compiler's parser,
715 # not just through cpp.
716 cat > conftest.
$ac_ext <<EOF
717 #line 718 "configure"
718 #include "confdefs.h"
722 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
723 { (eval echo configure
:724: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
724 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
725 if test -z "$ac_err"; then
729 echo "configure: failed program was:" >&5
730 cat conftest.
$ac_ext >&5
732 CPP
="${CC-cc} -E -traditional-cpp"
733 cat > conftest.
$ac_ext <<EOF
734 #line 735 "configure"
735 #include "confdefs.h"
739 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
740 { (eval echo configure
:741: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
741 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
742 if test -z "$ac_err"; then
746 echo "configure: failed program was:" >&5
747 cat conftest.
$ac_ext >&5
749 CPP
="${CC-cc} -nologo -E"
750 cat > conftest.
$ac_ext <<EOF
751 #line 752 "configure"
752 #include "confdefs.h"
756 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
757 { (eval echo configure
:758: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
758 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
759 if test -z "$ac_err"; then
763 echo "configure: failed program was:" >&5
764 cat conftest.
$ac_ext >&5
773 ac_cv_prog_CPP
="$CPP"
775 CPP
="$ac_cv_prog_CPP"
777 ac_cv_prog_CPP
="$CPP"
779 echo "$ac_t""$CPP" 1>&6
781 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
782 echo "configure:783: checking whether ${MAKE-make} sets \${MAKE}" >&5
783 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y%./+-%__p_%'`
784 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
785 echo $ac_n "(cached) $ac_c" 1>&6
787 cat > conftestmake
<<\EOF
789 @
echo 'ac_maketemp="${MAKE}"'
791 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
792 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
793 if test -n "$ac_maketemp"; then
794 eval ac_cv_prog_make_
${ac_make}_set
=yes
796 eval ac_cv_prog_make_
${ac_make}_set
=no
800 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
801 echo "$ac_t""yes" 1>&6
804 echo "$ac_t""no" 1>&6
805 SET_MAKE
="MAKE=${MAKE-make}"
808 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
809 echo "configure:810: checking for POSIXized ISC" >&5
810 if test -d /etc
/conf
/kconfig.d
&&
811 grep _POSIX_VERSION
/usr
/include
/sys
/unistd.h
>/dev
/null
2>&1
813 echo "$ac_t""yes" 1>&6
814 ISC
=yes # If later tests want to check for ISC.
815 cat >> confdefs.h
<<\EOF
816 #define _POSIX_SOURCE 1
819 if test "$GCC" = yes; then
825 echo "$ac_t""no" 1>&6
829 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
830 echo "configure:831: checking for ANSI C header files" >&5
831 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
832 echo $ac_n "(cached) $ac_c" 1>&6
834 cat > conftest.
$ac_ext <<EOF
835 #line 836 "configure"
836 #include "confdefs.h"
842 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
843 { (eval echo configure
:844: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
844 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
845 if test -z "$ac_err"; then
847 ac_cv_header_stdc
=yes
850 echo "configure: failed program was:" >&5
851 cat conftest.
$ac_ext >&5
857 if test $ac_cv_header_stdc = yes; then
858 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
859 cat > conftest.
$ac_ext <<EOF
860 #line 861 "configure"
861 #include "confdefs.h"
864 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
865 egrep "memchr" >/dev
/null
2>&1; then
875 if test $ac_cv_header_stdc = yes; then
876 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
877 cat > conftest.
$ac_ext <<EOF
878 #line 879 "configure"
879 #include "confdefs.h"
882 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
883 egrep "free" >/dev
/null
2>&1; then
893 if test $ac_cv_header_stdc = yes; then
894 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
895 if test "$cross_compiling" = yes; then
898 cat > conftest.
$ac_ext <<EOF
899 #line 900 "configure"
900 #include "confdefs.h"
902 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
903 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
904 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
905 int main () { int i; for (i = 0; i < 256; i++)
906 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
910 if { (eval echo configure
:911: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
914 echo "configure: failed program was:" >&5
915 cat conftest.
$ac_ext >&5
925 echo "$ac_t""$ac_cv_header_stdc" 1>&6
926 if test $ac_cv_header_stdc = yes; then
927 cat >> confdefs.h
<<\EOF
928 #define STDC_HEADERS 1
933 echo $ac_n "checking for working const""... $ac_c" 1>&6
934 echo "configure:935: checking for working const" >&5
935 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
936 echo $ac_n "(cached) $ac_c" 1>&6
938 cat > conftest.
$ac_ext <<EOF
939 #line 940 "configure"
940 #include "confdefs.h"
944 /* Ultrix mips cc rejects this. */
945 typedef int charset[2]; const charset x;
946 /* SunOS 4.1.1 cc rejects this. */
947 char const *const *ccp;
949 /* NEC SVR4.0.2 mips cc rejects this. */
950 struct point {int x, y;};
951 static struct point const zero = {0,0};
952 /* AIX XL C 1.02.0.0 rejects this.
953 It does not let you subtract one const X* pointer from another in an arm
954 of an if-expression whose if-part is not a constant expression */
955 const char *g = "string";
956 ccp = &g + (g ? g-g : 0);
957 /* HPUX 7.0 cc rejects these. */
960 ccp = (char const *const *) p;
961 { /* SCO 3.2v4 cc rejects this. */
963 char const *s = 0 ? (char *) 0 : (char const *) 0;
967 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
969 const int *foo = &x[0];
972 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
973 typedef const int *iptr;
977 { /* AIX XL C 1.02.0.0 rejects this saying
978 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
979 struct s { int j; const int *ap[3]; };
980 struct s *b; b->j = 5;
982 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
988 if { (eval echo configure
:989: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
992 echo "configure: failed program was:" >&5
993 cat conftest.
$ac_ext >&5
1000 echo "$ac_t""$ac_cv_c_const" 1>&6
1001 if test $ac_cv_c_const = no
; then
1002 cat >> confdefs.h
<<\EOF
1008 echo $ac_n "checking for inline""... $ac_c" 1>&6
1009 echo "configure:1010: checking for inline" >&5
1010 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1011 echo $ac_n "(cached) $ac_c" 1>&6
1014 for ac_kw
in inline __inline__ __inline
; do
1015 cat > conftest.
$ac_ext <<EOF
1016 #line 1017 "configure"
1017 #include "confdefs.h"
1023 if { (eval echo configure
:1024: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1025 ac_cv_c_inline
=$ac_kw; break
1027 echo "configure: failed program was:" >&5
1028 cat conftest.
$ac_ext >&5
1035 echo "$ac_t""$ac_cv_c_inline" 1>&6
1036 case "$ac_cv_c_inline" in
1038 no
) cat >> confdefs.h
<<\EOF
1042 *) cat >> confdefs.h
<<EOF
1043 #define inline $ac_cv_c_inline
1048 echo $ac_n "checking for off_t""... $ac_c" 1>&6
1049 echo "configure:1050: checking for off_t" >&5
1050 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
1051 echo $ac_n "(cached) $ac_c" 1>&6
1053 cat > conftest.
$ac_ext <<EOF
1054 #line 1055 "configure"
1055 #include "confdefs.h"
1056 #include <sys/types.h>
1062 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1063 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
1065 ac_cv_type_off_t
=yes
1073 echo "$ac_t""$ac_cv_type_off_t" 1>&6
1074 if test $ac_cv_type_off_t = no
; then
1075 cat >> confdefs.h
<<\EOF
1081 echo $ac_n "checking for size_t""... $ac_c" 1>&6
1082 echo "configure:1083: checking for size_t" >&5
1083 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
1084 echo $ac_n "(cached) $ac_c" 1>&6
1086 cat > conftest.
$ac_ext <<EOF
1087 #line 1088 "configure"
1088 #include "confdefs.h"
1089 #include <sys/types.h>
1095 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1096 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
1098 ac_cv_type_size_t
=yes
1101 ac_cv_type_size_t
=no
1106 echo "$ac_t""$ac_cv_type_size_t" 1>&6
1107 if test $ac_cv_type_size_t = no
; then
1108 cat >> confdefs.h
<<\EOF
1109 #define size_t unsigned
1114 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
1115 # for constant arguments. Useless!
1116 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
1117 echo "configure:1118: checking for working alloca.h" >&5
1118 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
1119 echo $ac_n "(cached) $ac_c" 1>&6
1121 cat > conftest.
$ac_ext <<EOF
1122 #line 1123 "configure"
1123 #include "confdefs.h"
1126 char *p = alloca(2 * sizeof(int));
1129 if { (eval echo configure
:1130: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1131 ac_cv_header_alloca_h
=yes
1133 echo "configure: failed program was:" >&5
1134 cat conftest.
$ac_ext >&5
1136 ac_cv_header_alloca_h
=no
1141 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
1142 if test $ac_cv_header_alloca_h = yes; then
1143 cat >> confdefs.h
<<\EOF
1144 #define HAVE_ALLOCA_H 1
1149 echo $ac_n "checking for alloca""... $ac_c" 1>&6
1150 echo "configure:1151: checking for alloca" >&5
1151 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
1152 echo $ac_n "(cached) $ac_c" 1>&6
1154 cat > conftest.
$ac_ext <<EOF
1155 #line 1156 "configure"
1156 #include "confdefs.h"
1159 # define alloca __builtin_alloca
1162 # include <malloc.h>
1163 # define alloca _alloca
1166 # include <alloca.h>
1171 # ifndef alloca /* predefined by HP cc +Olibcalls */
1180 char *p = (char *) alloca(1);
1183 if { (eval echo configure
:1184: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1185 ac_cv_func_alloca_works
=yes
1187 echo "configure: failed program was:" >&5
1188 cat conftest.
$ac_ext >&5
1190 ac_cv_func_alloca_works
=no
1195 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
1196 if test $ac_cv_func_alloca_works = yes; then
1197 cat >> confdefs.h
<<\EOF
1198 #define HAVE_ALLOCA 1
1203 if test $ac_cv_func_alloca_works = no
; then
1204 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
1205 # that cause trouble. Some versions do not even contain alloca or
1206 # contain a buggy version. If you still want to use their alloca,
1207 # use ar to extract alloca.o from them instead of compiling alloca.c.
1208 ALLOCA
=alloca.
${ac_objext}
1209 cat >> confdefs.h
<<\EOF
1214 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
1215 echo "configure:1216: checking whether alloca needs Cray hooks" >&5
1216 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
1217 echo $ac_n "(cached) $ac_c" 1>&6
1219 cat > conftest.
$ac_ext <<EOF
1220 #line 1221 "configure"
1221 #include "confdefs.h"
1222 #if defined(CRAY) && ! defined(CRAY2)
1229 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1230 egrep "webecray" >/dev
/null
2>&1; then
1241 echo "$ac_t""$ac_cv_os_cray" 1>&6
1242 if test $ac_cv_os_cray = yes; then
1243 for ac_func
in _getb67 GETB67 getb67
; do
1244 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1245 echo "configure:1246: checking for $ac_func" >&5
1246 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1247 echo $ac_n "(cached) $ac_c" 1>&6
1249 cat > conftest.
$ac_ext <<EOF
1250 #line 1251 "configure"
1251 #include "confdefs.h"
1252 /* System header to define __stub macros and hopefully few prototypes,
1253 which can conflict with char $ac_func(); below. */
1255 /* Override any gcc2 internal prototype to avoid an error. */
1256 /* We use char because int might match the return type of a gcc2
1257 builtin and then its argument prototype would still apply. */
1262 /* The GNU C library defines this for functions which it implements
1263 to always fail with ENOSYS. Some functions are actually named
1264 something starting with __ and the normal name is an alias. */
1265 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1273 if { (eval echo configure
:1274: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1275 eval "ac_cv_func_$ac_func=yes"
1277 echo "configure: failed program was:" >&5
1278 cat conftest.
$ac_ext >&5
1280 eval "ac_cv_func_$ac_func=no"
1285 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1286 echo "$ac_t""yes" 1>&6
1287 cat >> confdefs.h
<<EOF
1288 #define CRAY_STACKSEG_END $ac_func
1293 echo "$ac_t""no" 1>&6
1299 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
1300 echo "configure:1301: checking stack direction for C alloca" >&5
1301 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
1302 echo $ac_n "(cached) $ac_c" 1>&6
1304 if test "$cross_compiling" = yes; then
1305 ac_cv_c_stack_direction
=0
1307 cat > conftest.
$ac_ext <<EOF
1308 #line 1309 "configure"
1309 #include "confdefs.h"
1310 find_stack_direction ()
1312 static char *addr = 0;
1317 return find_stack_direction ();
1320 return (&dummy > addr) ? 1 : -1;
1324 exit (find_stack_direction() < 0);
1327 if { (eval echo configure
:1328: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1329 ac_cv_c_stack_direction
=1
1331 echo "configure: failed program was:" >&5
1332 cat conftest.
$ac_ext >&5
1334 ac_cv_c_stack_direction
=-1
1341 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
1342 cat >> confdefs.h
<<EOF
1343 #define STACK_DIRECTION $ac_cv_c_stack_direction
1348 for ac_hdr
in unistd.h
1350 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1351 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1352 echo "configure:1353: checking for $ac_hdr" >&5
1353 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1354 echo $ac_n "(cached) $ac_c" 1>&6
1356 cat > conftest.
$ac_ext <<EOF
1357 #line 1358 "configure"
1358 #include "confdefs.h"
1361 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1362 { (eval echo configure
:1363: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1363 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1364 if test -z "$ac_err"; then
1366 eval "ac_cv_header_$ac_safe=yes"
1369 echo "configure: failed program was:" >&5
1370 cat conftest.
$ac_ext >&5
1372 eval "ac_cv_header_$ac_safe=no"
1376 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1377 echo "$ac_t""yes" 1>&6
1378 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1379 cat >> confdefs.h
<<EOF
1380 #define $ac_tr_hdr 1
1384 echo "$ac_t""no" 1>&6
1388 for ac_func
in getpagesize
1390 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1391 echo "configure:1392: checking for $ac_func" >&5
1392 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1393 echo $ac_n "(cached) $ac_c" 1>&6
1395 cat > conftest.
$ac_ext <<EOF
1396 #line 1397 "configure"
1397 #include "confdefs.h"
1398 /* System header to define __stub macros and hopefully few prototypes,
1399 which can conflict with char $ac_func(); below. */
1401 /* Override any gcc2 internal prototype to avoid an error. */
1402 /* We use char because int might match the return type of a gcc2
1403 builtin and then its argument prototype would still apply. */
1408 /* The GNU C library defines this for functions which it implements
1409 to always fail with ENOSYS. Some functions are actually named
1410 something starting with __ and the normal name is an alias. */
1411 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1419 if { (eval echo configure
:1420: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1421 eval "ac_cv_func_$ac_func=yes"
1423 echo "configure: failed program was:" >&5
1424 cat conftest.
$ac_ext >&5
1426 eval "ac_cv_func_$ac_func=no"
1431 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1432 echo "$ac_t""yes" 1>&6
1433 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1434 cat >> confdefs.h
<<EOF
1435 #define $ac_tr_func 1
1439 echo "$ac_t""no" 1>&6
1443 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
1444 echo "configure:1445: checking for working mmap" >&5
1445 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
1446 echo $ac_n "(cached) $ac_c" 1>&6
1448 if test "$cross_compiling" = yes; then
1449 ac_cv_func_mmap_fixed_mapped
=no
1451 cat > conftest.
$ac_ext <<EOF
1452 #line 1453 "configure"
1453 #include "confdefs.h"
1455 /* Thanks to Mike Haertel and Jim Avera for this test.
1456 Here is a matrix of mmap possibilities:
1457 mmap private not fixed
1458 mmap private fixed at somewhere currently unmapped
1459 mmap private fixed at somewhere already mapped
1460 mmap shared not fixed
1461 mmap shared fixed at somewhere currently unmapped
1462 mmap shared fixed at somewhere already mapped
1463 For private mappings, we should verify that changes cannot be read()
1464 back from the file, nor mmap's back from the file at a different
1465 address. (There have been systems where private was not correctly
1466 implemented like the infamous i386 svr4.0, and systems where the
1467 VM page cache was not coherent with the filesystem buffer cache
1468 like early versions of FreeBSD and possibly contemporary NetBSD.)
1469 For shared mappings, we should conversely verify that changes get
1470 propogated back to all the places they're supposed to be.
1472 Grep wants private fixed already mapped.
1473 The main things grep needs to know about mmap are:
1474 * does it exist and is it safe to write into the mmap'd area
1475 * how to use it (BSD variants) */
1476 #include <sys/types.h>
1478 #include <sys/mman.h>
1480 /* This mess was copied from the GNU getpagesize.h. */
1481 #ifndef HAVE_GETPAGESIZE
1482 # ifdef HAVE_UNISTD_H
1483 # include <unistd.h>
1486 /* Assume that all systems that can run configure have sys/param.h. */
1487 # ifndef HAVE_SYS_PARAM_H
1488 # define HAVE_SYS_PARAM_H 1
1491 # ifdef _SC_PAGESIZE
1492 # define getpagesize() sysconf(_SC_PAGESIZE)
1493 # else /* no _SC_PAGESIZE */
1494 # ifdef HAVE_SYS_PARAM_H
1495 # include <sys/param.h>
1496 # ifdef EXEC_PAGESIZE
1497 # define getpagesize() EXEC_PAGESIZE
1498 # else /* no EXEC_PAGESIZE */
1500 # define getpagesize() NBPG * CLSIZE
1503 # endif /* no CLSIZE */
1504 # else /* no NBPG */
1506 # define getpagesize() NBPC
1507 # else /* no NBPC */
1509 # define getpagesize() PAGESIZE
1510 # endif /* PAGESIZE */
1511 # endif /* no NBPC */
1512 # endif /* no NBPG */
1513 # endif /* no EXEC_PAGESIZE */
1514 # else /* no HAVE_SYS_PARAM_H */
1515 # define getpagesize() 8192 /* punt totally */
1516 # endif /* no HAVE_SYS_PARAM_H */
1517 # endif /* no _SC_PAGESIZE */
1519 #endif /* no HAVE_GETPAGESIZE */
1522 extern "C" { void *malloc(unsigned); }
1530 char *data, *data2, *data3;
1534 pagesize = getpagesize();
1537 * First, make a file with some known garbage in it.
1539 data = malloc(pagesize);
1542 for (i = 0; i < pagesize; ++i)
1543 *(data + i) = rand();
1545 fd = creat("conftestmmap", 0600);
1548 if (write(fd, data, pagesize) != pagesize)
1553 * Next, try to mmap the file at a fixed address which
1554 * already has something else allocated at it. If we can,
1555 * also make sure that we see the same garbage.
1557 fd = open("conftestmmap", O_RDWR);
1560 data2 = malloc(2 * pagesize);
1563 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
1564 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
1565 MAP_PRIVATE | MAP_FIXED, fd, 0L))
1567 for (i = 0; i < pagesize; ++i)
1568 if (*(data + i) != *(data2 + i))
1572 * Finally, make sure that changes to the mapped area
1573 * do not percolate back to the file as seen by read().
1574 * (This is a bug on some variants of i386 svr4.0.)
1576 for (i = 0; i < pagesize; ++i)
1577 *(data2 + i) = *(data2 + i) + 1;
1578 data3 = malloc(pagesize);
1581 if (read(fd, data3, pagesize) != pagesize)
1583 for (i = 0; i < pagesize; ++i)
1584 if (*(data + i) != *(data3 + i))
1587 unlink("conftestmmap");
1592 if { (eval echo configure
:1593: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1594 ac_cv_func_mmap_fixed_mapped
=yes
1596 echo "configure: failed program was:" >&5
1597 cat conftest.
$ac_ext >&5
1599 ac_cv_func_mmap_fixed_mapped
=no
1606 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
1607 if test $ac_cv_func_mmap_fixed_mapped = yes; then
1608 cat >> confdefs.h
<<\EOF
1614 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
1615 echo "configure:1616: checking for Cygwin environment" >&5
1616 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
1617 echo $ac_n "(cached) $ac_c" 1>&6
1619 cat > conftest.
$ac_ext <<EOF
1620 #line 1621 "configure"
1621 #include "confdefs.h"
1626 #define __CYGWIN__ __CYGWIN32__
1631 if { (eval echo configure
:1632: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1635 echo "configure: failed program was:" >&5
1636 cat conftest.
$ac_ext >&5
1644 echo "$ac_t""$ac_cv_cygwin" 1>&6
1646 test "$ac_cv_cygwin" = yes && CYGWIN
=yes
1647 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
1648 echo "configure:1649: checking for mingw32 environment" >&5
1649 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
1650 echo $ac_n "(cached) $ac_c" 1>&6
1652 cat > conftest.
$ac_ext <<EOF
1653 #line 1654 "configure"
1654 #include "confdefs.h"
1660 if { (eval echo configure
:1661: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1664 echo "configure: failed program was:" >&5
1665 cat conftest.
$ac_ext >&5
1673 echo "$ac_t""$ac_cv_mingw32" 1>&6
1675 test "$ac_cv_mingw32" = yes && MINGW32
=yes
1677 # autoconf.info says this should be called right after AC_INIT.
1681 for ac_dir
in `cd $srcdir;pwd`/..
/..
$srcdir/`cd $srcdir;pwd`/..
/..
; do
1682 if test -f $ac_dir/install-sh
; then
1684 ac_install_sh
="$ac_aux_dir/install-sh -c"
1686 elif test -f $ac_dir/install.sh
; then
1688 ac_install_sh
="$ac_aux_dir/install.sh -c"
1692 if test -z "$ac_aux_dir"; then
1693 { echo "configure: error: can not find install-sh or install.sh in `cd $srcdir;pwd`/../.. $srcdir/`cd $srcdir;pwd`/../.." 1>&2; exit 1; }
1695 ac_config_guess
=$ac_aux_dir/config.guess
1696 ac_config_sub
=$ac_aux_dir/config.sub
1697 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
1700 # Do some error checking and defaulting for the host and target type.
1702 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
1705 # 1. You are not allowed to specify --host, --target, and nonopt at the
1707 # 2. Host defaults to nonopt.
1708 # 3. If nonopt is not specified, then host defaults to the current host,
1709 # as determined by config.guess.
1710 # 4. Target and build default to nonopt.
1711 # 5. If nonopt is not specified, then target and build default to host.
1713 # The aliases save the names the user supplied, while $host etc.
1714 # will get canonicalized.
1715 case $host---$target---$nonopt in
1716 NONE---
*---* |
*---NONE---* |
*---*---NONE) ;;
1717 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
1721 # Make sure we can run config.sub.
1722 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4
>/dev
/null
2>&1; then :
1723 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1726 echo $ac_n "checking host system type""... $ac_c" 1>&6
1727 echo "configure:1728: checking host system type" >&5
1730 case "$host_alias" in
1734 if host_alias
=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1735 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1737 *) host_alias
=$nonopt ;;
1741 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1742 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1743 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1744 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1745 echo "$ac_t""$host" 1>&6
1747 echo $ac_n "checking target system type""... $ac_c" 1>&6
1748 echo "configure:1749: checking target system type" >&5
1750 target_alias
=$target
1751 case "$target_alias" in
1754 NONE
) target_alias
=$host_alias ;;
1755 *) target_alias
=$nonopt ;;
1759 target
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
1760 target_cpu
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1761 target_vendor
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1762 target_os
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1763 echo "$ac_t""$target" 1>&6
1765 echo $ac_n "checking build system type""... $ac_c" 1>&6
1766 echo "configure:1767: checking build system type" >&5
1769 case "$build_alias" in
1772 NONE
) build_alias
=$host_alias ;;
1773 *) build_alias
=$nonopt ;;
1777 build
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1778 build_cpu
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1779 build_vendor
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1780 build_os
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1781 echo "$ac_t""$build" 1>&6
1783 test "$host_alias" != "$target_alias" &&
1784 test "$program_prefix$program_suffix$program_transform_name" = \
1786 program_prefix
=${target_alias}-
1788 if test "$program_transform_name" = s
,x
,x
,; then
1789 program_transform_name
=
1791 # Double any \ or $. echo might interpret backslashes.
1792 cat <<\EOF_SED
> conftestsed
1793 s
,\\,\\\\,g
; s
,\$
,$$
,g
1795 program_transform_name
="`echo $program_transform_name|sed -f conftestsed`"
1798 test "$program_prefix" != NONE
&&
1799 program_transform_name
="s,^,${program_prefix},; $program_transform_name"
1800 # Use a double $ so make ignores it.
1801 test "$program_suffix" != NONE
&&
1802 program_transform_name
="s,\$\$,${program_suffix},; $program_transform_name"
1804 # sed with no file args requires a program.
1805 test "$program_transform_name" = "" && program_transform_name
="s,x,x,"
1807 # Extract the first word of "gcc", so it can be a program name with args.
1808 set dummy gcc
; ac_word
=$2
1809 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1810 echo "configure:1811: checking for $ac_word" >&5
1811 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1812 echo $ac_n "(cached) $ac_c" 1>&6
1814 if test -n "$CC"; then
1815 ac_cv_prog_CC
="$CC" # Let the user override the test.
1817 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1819 for ac_dir
in $ac_dummy; do
1820 test -z "$ac_dir" && ac_dir
=.
1821 if test -f $ac_dir/$ac_word; then
1830 if test -n "$CC"; then
1831 echo "$ac_t""$CC" 1>&6
1833 echo "$ac_t""no" 1>&6
1836 if test -z "$CC"; then
1837 # Extract the first word of "cc", so it can be a program name with args.
1838 set dummy cc
; ac_word
=$2
1839 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1840 echo "configure:1841: checking for $ac_word" >&5
1841 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1842 echo $ac_n "(cached) $ac_c" 1>&6
1844 if test -n "$CC"; then
1845 ac_cv_prog_CC
="$CC" # Let the user override the test.
1847 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1850 for ac_dir
in $ac_dummy; do
1851 test -z "$ac_dir" && ac_dir
=.
1852 if test -f $ac_dir/$ac_word; then
1853 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1854 ac_prog_rejected
=yes
1862 if test $ac_prog_rejected = yes; then
1863 # We found a bogon in the path, so make sure we never use it.
1864 set dummy
$ac_cv_prog_CC
1866 if test $# -gt 0; then
1867 # We chose a different compiler from the bogus one.
1868 # However, it has the same basename, so the bogon will be chosen
1869 # first if we set CC to just the basename; use the full file name.
1871 set dummy
"$ac_dir/$ac_word" "$@"
1879 if test -n "$CC"; then
1880 echo "$ac_t""$CC" 1>&6
1882 echo "$ac_t""no" 1>&6
1885 if test -z "$CC"; then
1886 case "`uname -s`" in
1888 # Extract the first word of "cl", so it can be a program name with args.
1889 set dummy cl
; ac_word
=$2
1890 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1891 echo "configure:1892: checking for $ac_word" >&5
1892 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1893 echo $ac_n "(cached) $ac_c" 1>&6
1895 if test -n "$CC"; then
1896 ac_cv_prog_CC
="$CC" # Let the user override the test.
1898 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1900 for ac_dir
in $ac_dummy; do
1901 test -z "$ac_dir" && ac_dir
=.
1902 if test -f $ac_dir/$ac_word; then
1911 if test -n "$CC"; then
1912 echo "$ac_t""$CC" 1>&6
1914 echo "$ac_t""no" 1>&6
1919 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1922 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1923 echo "configure:1924: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1926 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1927 ac_cpp
='$CPP $CPPFLAGS'
1928 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1929 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1930 cross_compiling
=$ac_cv_prog_cc_cross
1932 cat > conftest.
$ac_ext << EOF
1934 #line 1935 "configure"
1935 #include "confdefs.h"
1939 if { (eval echo configure
:1940: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1940 ac_cv_prog_cc_works
=yes
1941 # If we can't run a trivial program, we are probably using a cross compiler.
1942 if (.
/conftest
; exit) 2>/dev
/null
; then
1943 ac_cv_prog_cc_cross
=no
1945 ac_cv_prog_cc_cross
=yes
1948 echo "configure: failed program was:" >&5
1949 cat conftest.
$ac_ext >&5
1950 ac_cv_prog_cc_works
=no
1954 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1955 ac_cpp
='$CPP $CPPFLAGS'
1956 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1957 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1958 cross_compiling
=$ac_cv_prog_cc_cross
1960 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1961 if test $ac_cv_prog_cc_works = no
; then
1962 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1964 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1965 echo "configure:1966: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1966 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1967 cross_compiling
=$ac_cv_prog_cc_cross
1969 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1970 echo "configure:1971: checking whether we are using GNU C" >&5
1971 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1972 echo $ac_n "(cached) $ac_c" 1>&6
1974 cat > conftest.c
<<EOF
1979 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:1980: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
1986 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1988 if test $ac_cv_prog_gcc = yes; then
1994 ac_test_CFLAGS
="${CFLAGS+set}"
1995 ac_save_CFLAGS
="$CFLAGS"
1997 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1998 echo "configure:1999: checking whether ${CC-cc} accepts -g" >&5
1999 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
2000 echo $ac_n "(cached) $ac_c" 1>&6
2002 echo 'void f(){}' > conftest.c
2003 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2012 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
2013 if test "$ac_test_CFLAGS" = set; then
2014 CFLAGS
="$ac_save_CFLAGS"
2015 elif test $ac_cv_prog_cc_g = yes; then
2016 if test "$GCC" = yes; then
2022 if test "$GCC" = yes; then
2029 # Find a good install program. We prefer a C program (faster),
2030 # so one script is as good as another. But avoid the broken or
2031 # incompatible versions:
2032 # SysV /etc/install, /usr/sbin/install
2033 # SunOS /usr/etc/install
2034 # IRIX /sbin/install
2036 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2037 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2038 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2039 # ./install, which can be erroneously created by make from ./install.sh.
2040 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
2041 echo "configure:2042: checking for a BSD compatible install" >&5
2042 if test -z "$INSTALL"; then
2043 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
2044 echo $ac_n "(cached) $ac_c" 1>&6
2046 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
=":"
2047 for ac_dir
in $PATH; do
2048 # Account for people who put trailing slashes in PATH elements.
2050 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
2052 # OSF1 and SCO ODT 3.0 have their own names for install.
2053 # Don't use installbsd from OSF since it installs stuff as root
2055 for ac_prog
in ginstall scoinst
install; do
2056 if test -f $ac_dir/$ac_prog; then
2057 if test $ac_prog = install &&
2058 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
2059 # AIX install. It has an incompatible calling convention.
2062 ac_cv_path_install
="$ac_dir/$ac_prog -c"
2073 if test "${ac_cv_path_install+set}" = set; then
2074 INSTALL
="$ac_cv_path_install"
2076 # As a last resort, use the slow shell script. We don't cache a
2077 # path for INSTALL within a source directory, because that will
2078 # break other packages using the cache if that directory is
2079 # removed, or if the path is relative.
2080 INSTALL
="$ac_install_sh"
2083 echo "$ac_t""$INSTALL" 1>&6
2085 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2086 # It thinks the first close brace ends the variable substitution.
2087 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
2089 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
2091 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
2094 # Put a plausible default for CC_FOR_BUILD in Makefile.
2095 if test "x$cross_compiling" = "xno"; then
2096 CC_FOR_BUILD
='$(CC)'
2106 # Extract the first word of "ranlib", so it can be a program name with args.
2107 set dummy ranlib
; ac_word
=$2
2108 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2109 echo "configure:2110: checking for $ac_word" >&5
2110 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2111 echo $ac_n "(cached) $ac_c" 1>&6
2113 if test -n "$RANLIB"; then
2114 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
2116 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2118 for ac_dir
in $ac_dummy; do
2119 test -z "$ac_dir" && ac_dir
=.
2120 if test -f $ac_dir/$ac_word; then
2121 ac_cv_prog_RANLIB
="ranlib"
2126 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
2129 RANLIB
="$ac_cv_prog_RANLIB"
2130 if test -n "$RANLIB"; then
2131 echo "$ac_t""$RANLIB" 1>&6
2133 echo "$ac_t""no" 1>&6
2139 for ac_hdr
in argz.h limits.h locale.h nl_types.h malloc.h string.h \
2140 unistd.h values.h sys
/param.h
2142 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2143 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2144 echo "configure:2145: checking for $ac_hdr" >&5
2145 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2146 echo $ac_n "(cached) $ac_c" 1>&6
2148 cat > conftest.
$ac_ext <<EOF
2149 #line 2150 "configure"
2150 #include "confdefs.h"
2153 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2154 { (eval echo configure
:2155: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2155 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2156 if test -z "$ac_err"; then
2158 eval "ac_cv_header_$ac_safe=yes"
2161 echo "configure: failed program was:" >&5
2162 cat conftest.
$ac_ext >&5
2164 eval "ac_cv_header_$ac_safe=no"
2168 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2169 echo "$ac_t""yes" 1>&6
2170 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2171 cat >> confdefs.h
<<EOF
2172 #define $ac_tr_hdr 1
2176 echo "$ac_t""no" 1>&6
2180 for ac_func
in getcwd munmap putenv setenv setlocale strchr strcasecmp \
2181 __argz_count __argz_stringify __argz_next
2183 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2184 echo "configure:2185: checking for $ac_func" >&5
2185 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2186 echo $ac_n "(cached) $ac_c" 1>&6
2188 cat > conftest.
$ac_ext <<EOF
2189 #line 2190 "configure"
2190 #include "confdefs.h"
2191 /* System header to define __stub macros and hopefully few prototypes,
2192 which can conflict with char $ac_func(); below. */
2194 /* Override any gcc2 internal prototype to avoid an error. */
2195 /* We use char because int might match the return type of a gcc2
2196 builtin and then its argument prototype would still apply. */
2201 /* The GNU C library defines this for functions which it implements
2202 to always fail with ENOSYS. Some functions are actually named
2203 something starting with __ and the normal name is an alias. */
2204 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2212 if { (eval echo configure
:2213: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2214 eval "ac_cv_func_$ac_func=yes"
2216 echo "configure: failed program was:" >&5
2217 cat conftest.
$ac_ext >&5
2219 eval "ac_cv_func_$ac_func=no"
2224 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2225 echo "$ac_t""yes" 1>&6
2226 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2227 cat >> confdefs.h
<<EOF
2228 #define $ac_tr_func 1
2232 echo "$ac_t""no" 1>&6
2237 if test "${ac_cv_func_stpcpy+set}" != "set"; then
2238 for ac_func
in stpcpy
2240 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2241 echo "configure:2242: checking for $ac_func" >&5
2242 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2243 echo $ac_n "(cached) $ac_c" 1>&6
2245 cat > conftest.
$ac_ext <<EOF
2246 #line 2247 "configure"
2247 #include "confdefs.h"
2248 /* System header to define __stub macros and hopefully few prototypes,
2249 which can conflict with char $ac_func(); below. */
2251 /* Override any gcc2 internal prototype to avoid an error. */
2252 /* We use char because int might match the return type of a gcc2
2253 builtin and then its argument prototype would still apply. */
2258 /* The GNU C library defines this for functions which it implements
2259 to always fail with ENOSYS. Some functions are actually named
2260 something starting with __ and the normal name is an alias. */
2261 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2269 if { (eval echo configure
:2270: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2271 eval "ac_cv_func_$ac_func=yes"
2273 echo "configure: failed program was:" >&5
2274 cat conftest.
$ac_ext >&5
2276 eval "ac_cv_func_$ac_func=no"
2281 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2282 echo "$ac_t""yes" 1>&6
2283 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2284 cat >> confdefs.h
<<EOF
2285 #define $ac_tr_func 1
2289 echo "$ac_t""no" 1>&6
2294 if test "${ac_cv_func_stpcpy}" = "yes"; then
2295 cat >> confdefs.h
<<\EOF
2296 #define HAVE_STPCPY 1
2301 if test $ac_cv_header_locale_h = yes; then
2302 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
2303 echo "configure:2304: checking for LC_MESSAGES" >&5
2304 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
2305 echo $ac_n "(cached) $ac_c" 1>&6
2307 cat > conftest.
$ac_ext <<EOF
2308 #line 2309 "configure"
2309 #include "confdefs.h"
2315 if { (eval echo configure
:2316: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2317 am_cv_val_LC_MESSAGES
=yes
2319 echo "configure: failed program was:" >&5
2320 cat conftest.
$ac_ext >&5
2322 am_cv_val_LC_MESSAGES
=no
2327 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
2328 if test $am_cv_val_LC_MESSAGES = yes; then
2329 cat >> confdefs.h
<<\EOF
2330 #define HAVE_LC_MESSAGES 1
2335 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
2336 echo "configure:2337: checking whether NLS is requested" >&5
2337 # Check whether --enable-nls or --disable-nls was given.
2338 if test "${enable_nls+set}" = set; then
2339 enableval
="$enable_nls"
2345 echo "$ac_t""$USE_NLS" 1>&6
2348 USE_INCLUDED_LIBINTL
=no
2350 if test "$USE_NLS" = "yes"; then
2351 cat >> confdefs.h
<<\EOF
2352 #define ENABLE_NLS 1
2355 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
2356 echo "configure:2357: checking whether included gettext is requested" >&5
2357 # Check whether --with-included-gettext or --without-included-gettext was given.
2358 if test "${with_included_gettext+set}" = set; then
2359 withval
="$with_included_gettext"
2360 nls_cv_force_use_gnu_gettext
=$withval
2362 nls_cv_force_use_gnu_gettext
=no
2365 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
2367 nls_cv_use_gnu_gettext
="$nls_cv_force_use_gnu_gettext"
2368 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
2370 nls_cv_header_libgt
=
2373 ac_safe
=`echo "libintl.h" | sed 'y%./+-%__p_%'`
2374 echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
2375 echo "configure:2376: checking for libintl.h" >&5
2376 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2377 echo $ac_n "(cached) $ac_c" 1>&6
2379 cat > conftest.
$ac_ext <<EOF
2380 #line 2381 "configure"
2381 #include "confdefs.h"
2382 #include <libintl.h>
2384 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2385 { (eval echo configure
:2386: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2386 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2387 if test -z "$ac_err"; then
2389 eval "ac_cv_header_$ac_safe=yes"
2392 echo "configure: failed program was:" >&5
2393 cat conftest.
$ac_ext >&5
2395 eval "ac_cv_header_$ac_safe=no"
2399 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2400 echo "$ac_t""yes" 1>&6
2401 echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6
2402 echo "configure:2403: checking for gettext in libc" >&5
2403 if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then
2404 echo $ac_n "(cached) $ac_c" 1>&6
2406 cat > conftest.
$ac_ext <<EOF
2407 #line 2408 "configure"
2408 #include "confdefs.h"
2409 #include <libintl.h>
2411 return (int) gettext ("")
2414 if { (eval echo configure
:2415: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2416 gt_cv_func_gettext_libc
=yes
2418 echo "configure: failed program was:" >&5
2419 cat conftest.
$ac_ext >&5
2421 gt_cv_func_gettext_libc
=no
2426 echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6
2428 if test "$gt_cv_func_gettext_libc" != "yes"; then
2429 echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6
2430 echo "configure:2431: checking for bindtextdomain in -lintl" >&5
2431 ac_lib_var
=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'`
2432 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2433 echo $ac_n "(cached) $ac_c" 1>&6
2435 ac_save_LIBS
="$LIBS"
2437 cat > conftest.
$ac_ext <<EOF
2438 #line 2439 "configure"
2439 #include "confdefs.h"
2440 /* Override any gcc2 internal prototype to avoid an error. */
2441 /* We use char because int might match the return type of a gcc2
2442 builtin and then its argument prototype would still apply. */
2443 char bindtextdomain();
2449 if { (eval echo configure
:2450: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2451 eval "ac_cv_lib_$ac_lib_var=yes"
2453 echo "configure: failed program was:" >&5
2454 cat conftest.
$ac_ext >&5
2456 eval "ac_cv_lib_$ac_lib_var=no"
2459 LIBS
="$ac_save_LIBS"
2462 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2463 echo "$ac_t""yes" 1>&6
2464 echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6
2465 echo "configure:2466: checking for gettext in libintl" >&5
2466 if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then
2467 echo $ac_n "(cached) $ac_c" 1>&6
2469 cat > conftest.
$ac_ext <<EOF
2470 #line 2471 "configure"
2471 #include "confdefs.h"
2474 return (int) gettext ("")
2477 if { (eval echo configure
:2478: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2479 gt_cv_func_gettext_libintl
=yes
2481 echo "configure: failed program was:" >&5
2482 cat conftest.
$ac_ext >&5
2484 gt_cv_func_gettext_libintl
=no
2489 echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6
2491 echo "$ac_t""no" 1>&6
2496 if test "$gt_cv_func_gettext_libc" = "yes" \
2497 ||
test "$gt_cv_func_gettext_libintl" = "yes"; then
2498 cat >> confdefs.h
<<\EOF
2499 #define HAVE_GETTEXT 1
2502 # Extract the first word of "msgfmt", so it can be a program name with args.
2503 set dummy msgfmt
; ac_word
=$2
2504 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2505 echo "configure:2506: checking for $ac_word" >&5
2506 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2507 echo $ac_n "(cached) $ac_c" 1>&6
2511 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
2514 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
2515 for ac_dir
in $PATH; do
2516 test -z "$ac_dir" && ac_dir
=.
2517 if test -f $ac_dir/$ac_word; then
2518 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
2519 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
2525 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
="no"
2529 MSGFMT
="$ac_cv_path_MSGFMT"
2530 if test -n "$MSGFMT"; then
2531 echo "$ac_t""$MSGFMT" 1>&6
2533 echo "$ac_t""no" 1>&6
2535 if test "$MSGFMT" != "no"; then
2536 for ac_func
in dcgettext
2538 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2539 echo "configure:2540: checking for $ac_func" >&5
2540 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2541 echo $ac_n "(cached) $ac_c" 1>&6
2543 cat > conftest.
$ac_ext <<EOF
2544 #line 2545 "configure"
2545 #include "confdefs.h"
2546 /* System header to define __stub macros and hopefully few prototypes,
2547 which can conflict with char $ac_func(); below. */
2549 /* Override any gcc2 internal prototype to avoid an error. */
2550 /* We use char because int might match the return type of a gcc2
2551 builtin and then its argument prototype would still apply. */
2556 /* The GNU C library defines this for functions which it implements
2557 to always fail with ENOSYS. Some functions are actually named
2558 something starting with __ and the normal name is an alias. */
2559 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2567 if { (eval echo configure
:2568: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2569 eval "ac_cv_func_$ac_func=yes"
2571 echo "configure: failed program was:" >&5
2572 cat conftest.
$ac_ext >&5
2574 eval "ac_cv_func_$ac_func=no"
2579 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2580 echo "$ac_t""yes" 1>&6
2581 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2582 cat >> confdefs.h
<<EOF
2583 #define $ac_tr_func 1
2587 echo "$ac_t""no" 1>&6
2591 # Extract the first word of "gmsgfmt", so it can be a program name with args.
2592 set dummy gmsgfmt
; ac_word
=$2
2593 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2594 echo "configure:2595: checking for $ac_word" >&5
2595 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2596 echo $ac_n "(cached) $ac_c" 1>&6
2600 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
2603 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a dos path.
2606 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2608 for ac_dir
in $ac_dummy; do
2609 test -z "$ac_dir" && ac_dir
=.
2610 if test -f $ac_dir/$ac_word; then
2611 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
2616 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
2620 GMSGFMT
="$ac_cv_path_GMSGFMT"
2621 if test -n "$GMSGFMT"; then
2622 echo "$ac_t""$GMSGFMT" 1>&6
2624 echo "$ac_t""no" 1>&6
2627 # Extract the first word of "xgettext", so it can be a program name with args.
2628 set dummy xgettext
; ac_word
=$2
2629 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2630 echo "configure:2631: checking for $ac_word" >&5
2631 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
2632 echo $ac_n "(cached) $ac_c" 1>&6
2636 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
2639 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
2640 for ac_dir
in $PATH; do
2641 test -z "$ac_dir" && ac_dir
=.
2642 if test -f $ac_dir/$ac_word; then
2643 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
2644 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
2650 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
2654 XGETTEXT
="$ac_cv_path_XGETTEXT"
2655 if test -n "$XGETTEXT"; then
2656 echo "$ac_t""$XGETTEXT" 1>&6
2658 echo "$ac_t""no" 1>&6
2661 cat > conftest.
$ac_ext <<EOF
2662 #line 2663 "configure"
2663 #include "confdefs.h"
2666 extern int _nl_msg_cat_cntr;
2667 return _nl_msg_cat_cntr
2670 if { (eval echo configure
:2671: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2675 echo "configure: failed program was:" >&5
2676 cat conftest.
$ac_ext >&5
2687 echo "$ac_t""no" 1>&6
2692 if test "$CATOBJEXT" = "NONE"; then
2693 nls_cv_use_gnu_gettext
=yes
2697 if test "$nls_cv_use_gnu_gettext" = "yes"; then
2698 INTLOBJS
="\$(GETTOBJS)"
2699 # Extract the first word of "msgfmt", so it can be a program name with args.
2700 set dummy msgfmt
; ac_word
=$2
2701 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2702 echo "configure:2703: checking for $ac_word" >&5
2703 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2704 echo $ac_n "(cached) $ac_c" 1>&6
2708 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
2711 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
2712 for ac_dir
in $PATH; do
2713 test -z "$ac_dir" && ac_dir
=.
2714 if test -f $ac_dir/$ac_word; then
2715 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
2716 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
2722 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
="msgfmt"
2726 MSGFMT
="$ac_cv_path_MSGFMT"
2727 if test -n "$MSGFMT"; then
2728 echo "$ac_t""$MSGFMT" 1>&6
2730 echo "$ac_t""no" 1>&6
2733 # Extract the first word of "gmsgfmt", so it can be a program name with args.
2734 set dummy gmsgfmt
; ac_word
=$2
2735 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2736 echo "configure:2737: checking for $ac_word" >&5
2737 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2738 echo $ac_n "(cached) $ac_c" 1>&6
2742 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
2745 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a dos path.
2748 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2750 for ac_dir
in $ac_dummy; do
2751 test -z "$ac_dir" && ac_dir
=.
2752 if test -f $ac_dir/$ac_word; then
2753 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
2758 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
2762 GMSGFMT
="$ac_cv_path_GMSGFMT"
2763 if test -n "$GMSGFMT"; then
2764 echo "$ac_t""$GMSGFMT" 1>&6
2766 echo "$ac_t""no" 1>&6
2769 # Extract the first word of "xgettext", so it can be a program name with args.
2770 set dummy xgettext
; ac_word
=$2
2771 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2772 echo "configure:2773: checking for $ac_word" >&5
2773 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
2774 echo $ac_n "(cached) $ac_c" 1>&6
2778 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
2781 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
2782 for ac_dir
in $PATH; do
2783 test -z "$ac_dir" && ac_dir
=.
2784 if test -f $ac_dir/$ac_word; then
2785 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
2786 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
2792 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
2796 XGETTEXT
="$ac_cv_path_XGETTEXT"
2797 if test -n "$XGETTEXT"; then
2798 echo "$ac_t""$XGETTEXT" 1>&6
2800 echo "$ac_t""no" 1>&6
2804 USE_INCLUDED_LIBINTL
=yes
2808 INTLDEPS
='$(top_builddir)/../intl/libintl.a'
2810 LIBS
=`echo $LIBS | sed -e 's/-lintl//'`
2811 nls_cv_header_intl
=libintl.h
2812 nls_cv_header_libgt
=libgettext.h
2815 if test "$XGETTEXT" != ":"; then
2816 if $XGETTEXT --omit-header /dev
/null
2> /dev
/null
; then
2819 echo "$ac_t""found xgettext programs is not GNU xgettext; ignore it" 1>&6
2824 # We need to process the po/ directory.
2828 nls_cv_header_intl
=libintl.h
2829 nls_cv_header_libgt
=libgettext.h
2832 # If this is used in GNU gettext we have to set USE_NLS to `yes'
2833 # because some of the sources are only built for this goal.
2834 if test "$PACKAGE" = gettext; then
2836 USE_INCLUDED_LIBINTL
=yes
2839 for lang
in $ALL_LINGUAS; do
2840 GMOFILES
="$GMOFILES $lang.gmo"
2841 POFILES
="$POFILES $lang.po"
2857 if test "x$CATOBJEXT" != "x"; then
2858 if test "x$ALL_LINGUAS" = "x"; then
2861 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
2862 echo "configure:2863: checking for catalogs to be installed" >&5
2864 for lang
in ${LINGUAS=$ALL_LINGUAS}; do
2865 case "$ALL_LINGUAS" in
2866 *$lang*) NEW_LINGUAS
="$NEW_LINGUAS $lang" ;;
2869 LINGUAS
=$NEW_LINGUAS
2870 echo "$ac_t""$LINGUAS" 1>&6
2873 if test -n "$LINGUAS"; then
2874 for lang
in $LINGUAS; do CATALOGS
="$CATALOGS $lang$CATOBJEXT"; done
2878 if test $ac_cv_header_locale_h = yes; then
2879 INCLUDE_LOCALE_H
="#include <locale.h>"
2882 /* The system does not provide the header <locale.h>. Take care yourself. */"
2886 if test -f $srcdir/po2tbl.
sed.
in; then
2887 if test "$CATOBJEXT" = ".cat"; then
2888 ac_safe
=`echo "linux/version.h" | sed 'y%./+-%__p_%'`
2889 echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6
2890 echo "configure:2891: checking for linux/version.h" >&5
2891 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2892 echo $ac_n "(cached) $ac_c" 1>&6
2894 cat > conftest.
$ac_ext <<EOF
2895 #line 2896 "configure"
2896 #include "confdefs.h"
2897 #include <linux/version.h>
2899 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2900 { (eval echo configure
:2901: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2901 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2902 if test -z "$ac_err"; then
2904 eval "ac_cv_header_$ac_safe=yes"
2907 echo "configure: failed program was:" >&5
2908 cat conftest.
$ac_ext >&5
2910 eval "ac_cv_header_$ac_safe=no"
2914 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2915 echo "$ac_t""yes" 1>&6
2918 echo "$ac_t""no" 1>&6
2923 sed -e '/^#/d' $srcdir/$msgformat-msg.
sed > po2msg.
sed
2925 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
2926 $srcdir/po2tbl.
sed.
in > po2tbl.
sed
2929 if test "$PACKAGE" = "gettext"; then
2939 MKINSTALLDIRS
="\$(srcdir)/../../mkinstalldirs"
2945 if test -d $srcdir/po
; then
2946 test -d po || mkdir po
2947 if test "x$srcdir" != "x."; then
2948 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
2949 posrcprefix
="$srcdir/"
2951 posrcprefix
="../$srcdir/"
2957 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
2958 < $srcdir/po
/POTFILES.
in > po
/POTFILES
2962 # Check for common headers.
2963 # FIXME: Seems to me this can cause problems for i386-windows hosts.
2964 # At one point there were hardcoded AC_DEFINE's if ${host} = i386-*-windows*.
2965 for ac_hdr
in stdlib.h string.h
strings.h unistd.h
time.h
2967 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2968 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2969 echo "configure:2970: checking for $ac_hdr" >&5
2970 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2971 echo $ac_n "(cached) $ac_c" 1>&6
2973 cat > conftest.
$ac_ext <<EOF
2974 #line 2975 "configure"
2975 #include "confdefs.h"
2978 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2979 { (eval echo configure
:2980: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2980 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2981 if test -z "$ac_err"; then
2983 eval "ac_cv_header_$ac_safe=yes"
2986 echo "configure: failed program was:" >&5
2987 cat conftest.
$ac_ext >&5
2989 eval "ac_cv_header_$ac_safe=no"
2993 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2994 echo "$ac_t""yes" 1>&6
2995 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2996 cat >> confdefs.h
<<EOF
2997 #define $ac_tr_hdr 1
3001 echo "$ac_t""no" 1>&6
3005 for ac_hdr
in sys
/time.h sys
/resource.h
3007 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3008 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3009 echo "configure:3010: checking for $ac_hdr" >&5
3010 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3011 echo $ac_n "(cached) $ac_c" 1>&6
3013 cat > conftest.
$ac_ext <<EOF
3014 #line 3015 "configure"
3015 #include "confdefs.h"
3018 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3019 { (eval echo configure
:3020: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3020 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3021 if test -z "$ac_err"; then
3023 eval "ac_cv_header_$ac_safe=yes"
3026 echo "configure: failed program was:" >&5
3027 cat conftest.
$ac_ext >&5
3029 eval "ac_cv_header_$ac_safe=no"
3033 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3034 echo "$ac_t""yes" 1>&6
3035 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3036 cat >> confdefs.h
<<EOF
3037 #define $ac_tr_hdr 1
3041 echo "$ac_t""no" 1>&6
3045 for ac_hdr
in fcntl.h fpu_control.h
3047 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3048 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3049 echo "configure:3050: checking for $ac_hdr" >&5
3050 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3051 echo $ac_n "(cached) $ac_c" 1>&6
3053 cat > conftest.
$ac_ext <<EOF
3054 #line 3055 "configure"
3055 #include "confdefs.h"
3058 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3059 { (eval echo configure
:3060: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3060 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3061 if test -z "$ac_err"; then
3063 eval "ac_cv_header_$ac_safe=yes"
3066 echo "configure: failed program was:" >&5
3067 cat conftest.
$ac_ext >&5
3069 eval "ac_cv_header_$ac_safe=no"
3073 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3074 echo "$ac_t""yes" 1>&6
3075 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3076 cat >> confdefs.h
<<EOF
3077 #define $ac_tr_hdr 1
3081 echo "$ac_t""no" 1>&6
3085 for ac_hdr
in dlfcn.h errno.h sys
/stat.h
3087 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3088 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3089 echo "configure:3090: checking for $ac_hdr" >&5
3090 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3091 echo $ac_n "(cached) $ac_c" 1>&6
3093 cat > conftest.
$ac_ext <<EOF
3094 #line 3095 "configure"
3095 #include "confdefs.h"
3098 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3099 { (eval echo configure
:3100: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3100 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3101 if test -z "$ac_err"; then
3103 eval "ac_cv_header_$ac_safe=yes"
3106 echo "configure: failed program was:" >&5
3107 cat conftest.
$ac_ext >&5
3109 eval "ac_cv_header_$ac_safe=no"
3113 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3114 echo "$ac_t""yes" 1>&6
3115 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3116 cat >> confdefs.h
<<EOF
3117 #define $ac_tr_hdr 1
3121 echo "$ac_t""no" 1>&6
3125 for ac_func
in getrusage
time sigaction __setfpucw
3127 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3128 echo "configure:3129: checking for $ac_func" >&5
3129 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3130 echo $ac_n "(cached) $ac_c" 1>&6
3132 cat > conftest.
$ac_ext <<EOF
3133 #line 3134 "configure"
3134 #include "confdefs.h"
3135 /* System header to define __stub macros and hopefully few prototypes,
3136 which can conflict with char $ac_func(); below. */
3138 /* Override any gcc2 internal prototype to avoid an error. */
3139 /* We use char because int might match the return type of a gcc2
3140 builtin and then its argument prototype would still apply. */
3145 /* The GNU C library defines this for functions which it implements
3146 to always fail with ENOSYS. Some functions are actually named
3147 something starting with __ and the normal name is an alias. */
3148 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3156 if { (eval echo configure
:3157: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3158 eval "ac_cv_func_$ac_func=yes"
3160 echo "configure: failed program was:" >&5
3161 cat conftest.
$ac_ext >&5
3163 eval "ac_cv_func_$ac_func=no"
3168 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3169 echo "$ac_t""yes" 1>&6
3170 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3171 cat >> confdefs.h
<<EOF
3172 #define $ac_tr_func 1
3176 echo "$ac_t""no" 1>&6
3181 # Check for socket libraries
3182 echo $ac_n "checking for bind in -lsocket""... $ac_c" 1>&6
3183 echo "configure:3184: checking for bind in -lsocket" >&5
3184 ac_lib_var
=`echo socket'_'bind | sed 'y%./+-%__p_%'`
3185 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3186 echo $ac_n "(cached) $ac_c" 1>&6
3188 ac_save_LIBS
="$LIBS"
3189 LIBS
="-lsocket $LIBS"
3190 cat > conftest.
$ac_ext <<EOF
3191 #line 3192 "configure"
3192 #include "confdefs.h"
3193 /* Override any gcc2 internal prototype to avoid an error. */
3194 /* We use char because int might match the return type of a gcc2
3195 builtin and then its argument prototype would still apply. */
3202 if { (eval echo configure
:3203: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3204 eval "ac_cv_lib_$ac_lib_var=yes"
3206 echo "configure: failed program was:" >&5
3207 cat conftest.
$ac_ext >&5
3209 eval "ac_cv_lib_$ac_lib_var=no"
3212 LIBS
="$ac_save_LIBS"
3215 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3216 echo "$ac_t""yes" 1>&6
3217 ac_tr_lib
=HAVE_LIB
`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3218 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3219 cat >> confdefs.h
<<EOF
3220 #define $ac_tr_lib 1
3223 LIBS
="-lsocket $LIBS"
3226 echo "$ac_t""no" 1>&6
3229 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
3230 echo "configure:3231: checking for gethostbyname in -lnsl" >&5
3231 ac_lib_var
=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
3232 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3233 echo $ac_n "(cached) $ac_c" 1>&6
3235 ac_save_LIBS
="$LIBS"
3237 cat > conftest.
$ac_ext <<EOF
3238 #line 3239 "configure"
3239 #include "confdefs.h"
3240 /* Override any gcc2 internal prototype to avoid an error. */
3241 /* We use char because int might match the return type of a gcc2
3242 builtin and then its argument prototype would still apply. */
3243 char gethostbyname();
3249 if { (eval echo configure
:3250: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3251 eval "ac_cv_lib_$ac_lib_var=yes"
3253 echo "configure: failed program was:" >&5
3254 cat conftest.
$ac_ext >&5
3256 eval "ac_cv_lib_$ac_lib_var=no"
3259 LIBS
="$ac_save_LIBS"
3262 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3263 echo "$ac_t""yes" 1>&6
3264 ac_tr_lib
=HAVE_LIB
`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3265 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3266 cat >> confdefs.h
<<EOF
3267 #define $ac_tr_lib 1
3273 echo "$ac_t""no" 1>&6
3277 .
${srcdir}/..
/..
/bfd
/configure.
host
3281 USE_MAINTAINER_MODE
=no
3282 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
3283 if test "${enable_maintainer_mode+set}" = set; then
3284 enableval
="$enable_maintainer_mode"
3285 case "${enableval}" in
3286 yes) MAINT
="" USE_MAINTAINER_MODE
=yes ;;
3288 *) { echo "configure: error: "--enable-maintainer-mode does not take a value
"" 1>&2; exit 1; }; MAINT
="#" ;;
3290 if test x
"$silent" != x
"yes" && test x
"$MAINT" = x
""; then
3291 echo "Setting maintainer mode" 6>&1
3299 # Check whether --enable-sim-bswap or --disable-sim-bswap was given.
3300 if test "${enable_sim_bswap+set}" = set; then
3301 enableval
="$enable_sim_bswap"
3302 case "${enableval}" in
3303 yes) sim_bswap
="-DWITH_BSWAP=1 -DUSE_BSWAP=1";;
3304 no
) sim_bswap
="-DWITH_BSWAP=0";;
3305 *) { echo "configure: error: "--enable-sim-bswap does not take a value
"" 1>&2; exit 1; }; sim_bswap
="";;
3307 if test x
"$silent" != x
"yes" && test x
"$sim_bswap" != x
""; then
3308 echo "Setting bswap flags = $sim_bswap" 6>&1
3316 # Check whether --enable-sim-cflags or --disable-sim-cflags was given.
3317 if test "${enable_sim_cflags+set}" = set; then
3318 enableval
="$enable_sim_cflags"
3319 case "${enableval}" in
3320 yes) sim_cflags
="-O2 -fomit-frame-pointer";;
3321 trace
) { echo "configure: error: "Please use
--enable-sim-debug instead.
"" 1>&2; exit 1; }; sim_cflags
="";;
3323 *) sim_cflags
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
3325 if test x
"$silent" != x
"yes" && test x
"$sim_cflags" != x
""; then
3326 echo "Setting sim cflags = $sim_cflags" 6>&1
3334 # Check whether --enable-sim-debug or --disable-sim-debug was given.
3335 if test "${enable_sim_debug+set}" = set; then
3336 enableval
="$enable_sim_debug"
3337 case "${enableval}" in
3338 yes) sim_debug
="-DDEBUG=7 -DWITH_DEBUG=7";;
3339 no
) sim_debug
="-DDEBUG=0 -DWITH_DEBUG=0";;
3340 *) sim_debug
="-DDEBUG='(${enableval})' -DWITH_DEBUG='(${enableval})'";;
3342 if test x
"$silent" != x
"yes" && test x
"$sim_debug" != x
""; then
3343 echo "Setting sim debug = $sim_debug" 6>&1
3351 # Check whether --enable-sim-stdio or --disable-sim-stdio was given.
3352 if test "${enable_sim_stdio+set}" = set; then
3353 enableval
="$enable_sim_stdio"
3354 case "${enableval}" in
3355 yes) sim_stdio
="-DWITH_STDIO=DO_USE_STDIO";;
3356 no
) sim_stdio
="-DWITH_STDIO=DONT_USE_STDIO";;
3357 *) { echo "configure: error: "Unknown value
$enableval passed to
--enable-sim-stdio"" 1>&2; exit 1; }; sim_stdio
="";;
3359 if test x
"$silent" != x
"yes" && test x
"$sim_stdio" != x
""; then
3360 echo "Setting stdio flags = $sim_stdio" 6>&1
3368 # Check whether --enable-sim-trace or --disable-sim-trace was given.
3369 if test "${enable_sim_trace+set}" = set; then
3370 enableval
="$enable_sim_trace"
3371 case "${enableval}" in
3372 yes) sim_trace
="-DTRACE=1 -DWITH_TRACE=-1";;
3373 no
) sim_trace
="-DTRACE=0 -DWITH_TRACE=0";;
3375 sim_trace
="-DTRACE='(${enableval})' -DWITH_TRACE='(${enableval})'";;
3378 for x
in `echo "$enableval" | sed -e "s/,/ /g"`; do
3379 if test x
"$sim_trace" = x
; then
3380 sim_trace
="-DWITH_TRACE='(TRACE_$x"
3382 sim_trace
="${sim_trace}|TRACE_$x"
3385 sim_trace
="$sim_trace)'" ;;
3387 if test x
"$silent" != x
"yes" && test x
"$sim_trace" != x
""; then
3388 echo "Setting sim trace = $sim_trace" 6>&1
3396 # Check whether --enable-sim-profile or --disable-sim-profile was given.
3397 if test "${enable_sim_profile+set}" = set; then
3398 enableval
="$enable_sim_profile"
3399 case "${enableval}" in
3400 yes) sim_profile
="-DPROFILE=1 -DWITH_PROFILE=-1";;
3401 no
) sim_profile
="-DPROFILE=0 -DWITH_PROFILE=0";;
3403 sim_profile
="-DPROFILE='(${enableval})' -DWITH_PROFILE='(${enableval})'";;
3406 for x
in `echo "$enableval" | sed -e "s/,/ /g"`; do
3407 if test x
"$sim_profile" = x
; then
3408 sim_profile
="-DWITH_PROFILE='(PROFILE_$x"
3410 sim_profile
="${sim_profile}|PROFILE_$x"
3413 sim_profile
="$sim_profile)'" ;;
3415 if test x
"$silent" != x
"yes" && test x
"$sim_profile" != x
""; then
3416 echo "Setting sim profile = $sim_profile" 6>&1
3419 sim_profile
="-DPROFILE=1 -DWITH_PROFILE=-1"
3424 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
3425 echo "configure:3426: checking return type of signal handlers" >&5
3426 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
3427 echo $ac_n "(cached) $ac_c" 1>&6
3429 cat > conftest.
$ac_ext <<EOF
3430 #line 3431 "configure"
3431 #include "confdefs.h"
3432 #include <sys/types.h>
3438 extern "C" void (*signal (int, void (*)(int)))(int);
3440 void (*signal ()) ();
3447 if { (eval echo configure
:3448: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3449 ac_cv_type_signal
=void
3451 echo "configure: failed program was:" >&5
3452 cat conftest.
$ac_ext >&5
3454 ac_cv_type_signal
=int
3459 echo "$ac_t""$ac_cv_type_signal" 1>&6
3460 cat >> confdefs.h
<<EOF
3461 #define RETSIGTYPE $ac_cv_type_signal
3468 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
3469 echo "configure:3470: checking for executable suffix" >&5
3470 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
3471 echo $ac_n "(cached) $ac_c" 1>&6
3473 if test "$CYGWIN" = yes ||
test "$MINGW32" = yes; then
3477 echo 'int main () { return 0; }' > conftest.
$ac_ext
3479 if { (eval echo configure
:3480: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
3480 for file in conftest.
*; do
3482 *.c |
*.o |
*.obj |
*.ilk |
*.pdb
) ;;
3483 *) ac_cv_exeext
=`echo $file | sed -e s/conftest//` ;;
3487 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
3490 test x
"${ac_cv_exeext}" = x
&& ac_cv_exeext
=no
3495 test x
"${ac_cv_exeext}" != xno
&& EXEEXT
=${ac_cv_exeext}
3496 echo "$ac_t""${ac_cv_exeext}" 1>&6
3503 sim_link_links
=tconfig.h
3504 if test -f ${srcdir}/tconfig.
in
3506 sim_link_files
=tconfig.
in
3508 sim_link_files
=..
/common
/tconfig.
in
3511 # targ-vals.def points to the libc macro description file.
3513 *-*-*) TARG_VALS_DEF
=..
/common
/nltvals.def
;;
3515 sim_link_files
="${sim_link_files} ${TARG_VALS_DEF}"
3516 sim_link_links
="${sim_link_links} targ-vals.def"
3521 default_sim_inline
=""
3522 # Check whether --enable-sim-inline or --disable-sim-inline was given.
3523 if test "${enable_sim_inline+set}" = set; then
3524 enableval
="$enable_sim_inline"
3526 case "$enableval" in
3527 no
) sim_inline
="-DDEFAULT_INLINE=0";;
3528 0) sim_inline
="-DDEFAULT_INLINE=0";;
3529 yes |
2) sim_inline
="-DDEFAULT_INLINE=ALL_C_INLINE";;
3530 1) sim_inline
="-DDEFAULT_INLINE=INLINE_LOCALS";;
3531 *) for x
in `echo "$enableval" | sed -e "s/,/ /g"`; do
3534 *_INLINE
=*) new_flag
="-D$x";;
3535 *=*) new_flag
=`echo "$x" | sed -e "s/=/_INLINE=/" -e "s/^/-D/"`;;
3536 *_INLINE
) new_flag
="-D$x=ALL_C_INLINE";;
3537 *) new_flag
="-D$x""_INLINE=ALL_C_INLINE";;
3539 if test x
"$sim_inline" = x
""; then
3540 sim_inline
="$new_flag"
3542 sim_inline
="$sim_inline $new_flag"
3546 if test x
"$silent" != x
"yes" && test x
"$sim_inline" != x
""; then
3547 echo "Setting inline flags = $sim_inline" 6>&1
3551 if test "x$cross_compiling" = "xno"; then
3552 if test x
"$GCC" != "x" -a x
"${default_sim_inline}" != "x" ; then
3553 sim_inline
="${default_sim_inline}"
3554 if test x
"$silent" != x
"yes"; then
3555 echo "Setting inline flags = $sim_inline" 6>&1
3561 sim_inline
="-DDEFAULT_INLINE=0"
3565 wire_alignment
="NONSTRICT_ALIGNMENT"
3566 default_alignment
=""
3568 # Check whether --enable-sim-alignment or --disable-sim-alignment was given.
3569 if test "${enable_sim_alignment+set}" = set; then
3570 enableval
="$enable_sim_alignment"
3571 case "${enableval}" in
3572 strict | STRICT
) sim_alignment
="-DWITH_ALIGNMENT=STRICT_ALIGNMENT";;
3573 nonstrict | NONSTRICT
) sim_alignment
="-DWITH_ALIGNMENT=NONSTRICT_ALIGNMENT";;
3574 forced | FORCED
) sim_alignment
="-DWITH_ALIGNMENT=FORCED_ALIGNMENT";;
3575 yes) if test x
"$wire_alignment" != x
; then
3576 sim_alignment
="-DWITH_ALIGNMENT=${wire_alignment}"
3578 if test x
"$default_alignment" != x
; then
3579 sim_alignment
="-DWITH_ALIGNMENT=${default_alignment}"
3581 echo "No hard-wired alignment for target $target" 1>&6
3582 sim_alignment
="-DWITH_ALIGNMENT=0"
3585 no
) if test x
"$default_alignment" != x
; then
3586 sim_alignment
="-DWITH_DEFAULT_ALIGNMENT=${default_alignment}"
3588 if test x
"$wire_alignment" != x
; then
3589 sim_alignment
="-DWITH_DEFAULT_ALIGNMENT=${wire_alignment}"
3591 echo "No default alignment for target $target" 1>&6
3592 sim_alignment
="-DWITH_DEFAULT_ALIGNMENT=0"
3595 *) { echo "configure: error: "Unknown value
$enableval passed to
--enable-sim-alignment"" 1>&2; exit 1; }; sim_alignment
="";;
3597 if test x
"$silent" != x
"yes" && test x
"$sim_alignment" != x
""; then
3598 echo "Setting alignment flags = $sim_alignment" 6>&1
3601 if test x
"$default_alignment" != x
; then
3602 sim_alignment
="-DWITH_DEFAULT_ALIGNMENT=${default_alignment}"
3604 if test x
"$wire_alignment" != x
; then
3605 sim_alignment
="-DWITH_ALIGNMENT=${wire_alignment}"
3613 # Check whether --enable-sim-hostendian or --disable-sim-hostendian was given.
3614 if test "${enable_sim_hostendian+set}" = set; then
3615 enableval
="$enable_sim_hostendian"
3616 case "${enableval}" in
3617 no
) sim_hostendian
="-DWITH_HOST_BYTE_ORDER=0";;
3618 b
*|B
*) sim_hostendian
="-DWITH_HOST_BYTE_ORDER=BIG_ENDIAN";;
3619 l
*|L
*) sim_hostendian
="-DWITH_HOST_BYTE_ORDER=LITTLE_ENDIAN";;
3620 *) { echo "configure: error: "Unknown value
$enableval for --enable-sim-hostendian"" 1>&2; exit 1; }; sim_hostendian
="";;
3622 if test x
"$silent" != x
"yes" && test x
"$sim_hostendian" != x
""; then
3623 echo "Setting hostendian flags = $sim_hostendian" 6>&1
3627 if test "x$cross_compiling" = "xno"; then
3628 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
3629 echo "configure:3630: checking whether byte ordering is bigendian" >&5
3630 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
3631 echo $ac_n "(cached) $ac_c" 1>&6
3633 ac_cv_c_bigendian
=unknown
3634 # See if sys/param.h defines the BYTE_ORDER macro.
3635 cat > conftest.
$ac_ext <<EOF
3636 #line 3637 "configure"
3637 #include "confdefs.h"
3638 #include <sys/types.h>
3639 #include <sys/param.h>
3642 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
3647 if { (eval echo configure
:3648: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3649 # It does; now see whether it defined to BIG_ENDIAN or not.
3650 cat > conftest.
$ac_ext <<EOF
3651 #line 3652 "configure"
3652 #include "confdefs.h"
3653 #include <sys/types.h>
3654 #include <sys/param.h>
3657 #if BYTE_ORDER != BIG_ENDIAN
3662 if { (eval echo configure
:3663: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3664 ac_cv_c_bigendian
=yes
3666 echo "configure: failed program was:" >&5
3667 cat conftest.
$ac_ext >&5
3669 ac_cv_c_bigendian
=no
3673 echo "configure: failed program was:" >&5
3674 cat conftest.
$ac_ext >&5
3677 if test $ac_cv_c_bigendian = unknown
; then
3678 if test "$cross_compiling" = yes; then
3679 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3681 cat > conftest.
$ac_ext <<EOF
3682 #line 3683 "configure"
3683 #include "confdefs.h"
3685 /* Are we little or big endian? From Harbison&Steele. */
3689 char c[sizeof (long)];
3692 exit (u.c[sizeof (long) - 1] == 1);
3695 if { (eval echo configure
:3696: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3697 ac_cv_c_bigendian
=no
3699 echo "configure: failed program was:" >&5
3700 cat conftest.
$ac_ext >&5
3702 ac_cv_c_bigendian
=yes
3710 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
3711 if test $ac_cv_c_bigendian = yes; then
3712 cat >> confdefs.h
<<\EOF
3713 #define WORDS_BIGENDIAN 1
3718 if test $ac_cv_c_bigendian = yes; then
3719 sim_hostendian
="-DWITH_HOST_BYTE_ORDER=BIG_ENDIAN"
3721 sim_hostendian
="-DWITH_HOST_BYTE_ORDER=LITTLE_ENDIAN"
3724 sim_hostendian
="-DWITH_HOST_BYTE_ORDER=0"
3729 # NOTE: Don't add -Wall or -Wunused, they both include
3730 # -Wunused-parameter which reports bogus warnings.
3731 # NOTE: If you add to this list, remember to update
3732 # gdb/doc/gdbint.texinfo.
3733 build_warnings
="-Wimplicit -Wreturn-type -Wcomment -Wtrigraphs \
3734 -Wformat -Wparentheses -Wpointer-arith -Wuninitialized"
3735 # Up for debate: -Wswitch -Wcomment -trigraphs -Wtrigraphs
3736 # -Wunused-function -Wunused-label -Wunused-variable -Wunused-value
3737 # -Wchar-subscripts -Wtraditional -Wshadow -Wcast-qual
3738 # -Wcast-align -Wwrite-strings -Wconversion -Wstrict-prototypes
3739 # -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls
3740 # -Woverloaded-virtual -Winline -Werror"
3741 # Check whether --enable-build-warnings or --disable-build-warnings was given.
3742 if test "${enable_build_warnings+set}" = set; then
3743 enableval
="$enable_build_warnings"
3744 case "${enableval}" in
3746 no
) build_warnings
="-w";;
3747 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
3748 build_warnings
="${build_warnings} ${t}";;
3749 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
3750 build_warnings
="${t} ${build_warnings}";;
3751 *) build_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
3753 if test x
"$silent" != x
"yes" && test x
"$build_warnings" != x
""; then
3754 echo "Setting compiler warning flags = $build_warnings" 6>&1
3757 # Check whether --enable-sim-build-warnings or --disable-sim-build-warnings was given.
3758 if test "${enable_sim_build_warnings+set}" = set; then
3759 enableval
="$enable_sim_build_warnings"
3760 case "${enableval}" in
3762 no
) build_warnings
="-w";;
3763 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
3764 build_warnings
="${build_warnings} ${t}";;
3765 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
3766 build_warnings
="${t} ${build_warnings}";;
3767 *) build_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
3769 if test x
"$silent" != x
"yes" && test x
"$build_warnings" != x
""; then
3770 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
3775 if test "x${build_warnings}" != x
-a "x$GCC" = xyes
3777 echo $ac_n "checking compiler warning flags""... $ac_c" 1>&6
3778 echo "configure:3779: checking compiler warning flags" >&5
3779 # Separate out the -Werror flag as some files just cannot be
3780 # compiled with it enabled.
3781 for w
in ${build_warnings}; do
3783 -Werr*) WERROR_CFLAGS
=-Werror ;;
3784 *) # Check that GCC accepts it
3785 saved_CFLAGS
="$CFLAGS"
3787 cat > conftest.
$ac_ext <<EOF
3788 #line 3789 "configure"
3789 #include "confdefs.h"
3795 if { (eval echo configure
:3796: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3797 WARN_CFLAGS
="${WARN_CFLAGS} $w"
3799 echo "configure: failed program was:" >&5
3800 cat conftest.
$ac_ext >&5
3803 CFLAGS
="$saved_CFLAGS"
3806 echo "$ac_t""${WARN_CFLAGS}${WERROR_CFLAGS}" 1>&6
3810 default_sim_reserved_bits
="1"
3811 # Check whether --enable-sim-reserved-bits or --disable-sim-reserved-bits was given.
3812 if test "${enable_sim_reserved_bits+set}" = set; then
3813 enableval
="$enable_sim_reserved_bits"
3814 case "${enableval}" in
3815 yes) sim_reserved_bits
="-DWITH_RESERVED_BITS=1";;
3816 no
) sim_reserved_bits
="-DWITH_RESERVED_BITS=0";;
3817 *) { echo "configure: error: "--enable-sim-reserved-bits does not take a value
"" 1>&2; exit 1; }; sim_reserved_bits
="";;
3819 if test x
"$silent" != x
"yes" && test x
"$sim_reserved_bits" != x
""; then
3820 echo "Setting reserved flags = $sim_reserved_bits" 6>&1
3823 sim_reserved_bits
="-DWITH_RESERVED_BITS=${default_sim_reserved_bits}"
3829 # Instead of defining a `subtarget' macro, code should be checking
3830 # the value of {STATE,CPU}_ARCHITECTURE to identify the architecture
3834 mips64vr
*-*-*) SIM_SUBTARGET
="-DTARGET_ENABLE_FR=1" ;;
3835 mips
*tx39
*) SIM_SUBTARGET
="-DSUBTARGET_R3900=1";;
3836 mipsisa32
*-*-*) SIM_SUBTARGET
="-DTARGET_ENABLE_FR=1";;
3837 mipsisa64
*-*-*) SIM_SUBTARGET
="-DTARGET_ENABLE_FR=1";;
3838 *) SIM_SUBTARGET
="";;
3845 # Select the byte order of the target
3850 mips64el
*-*-*) mips_endian
=LITTLE_ENDIAN
;;
3851 mips64vr
*el-
*-*) default_endian
=LITTLE_ENDIAN
;;
3852 mips64
*-*-*) default_endian
=BIG_ENDIAN
;;
3853 mips16
*-*-*) default_endian
=BIG_ENDIAN
;;
3854 mipsisa32
*-*-*) default_endian
=BIG_ENDIAN
;;
3855 mipsisa64
*-*-*) default_endian
=BIG_ENDIAN
;;
3856 mips
*-*-*) default_endian
=BIG_ENDIAN
;;
3857 *) default_endian
=BIG_ENDIAN
;;
3860 wire_endian
="$mips_endian"
3861 default_endian
="$default_endian"
3862 # Check whether --enable-sim-endian or --disable-sim-endian was given.
3863 if test "${enable_sim_endian+set}" = set; then
3864 enableval
="$enable_sim_endian"
3865 case "${enableval}" in
3866 b
*|B
*) sim_endian
="-DWITH_TARGET_BYTE_ORDER=BIG_ENDIAN";;
3867 l
*|L
*) sim_endian
="-DWITH_TARGET_BYTE_ORDER=LITTLE_ENDIAN";;
3868 yes) if test x
"$wire_endian" != x
; then
3869 sim_endian
="-DWITH_TARGET_BYTE_ORDER=${wire_endian}"
3871 if test x
"$default_endian" != x
; then
3872 sim_endian
="-DWITH_TARGET_BYTE_ORDER=${default_endian}"
3874 echo "No hard-wired endian for target $target" 1>&6
3875 sim_endian
="-DWITH_TARGET_BYTE_ORDER=0"
3878 no
) if test x
"$default_endian" != x
; then
3879 sim_endian
="-DWITH_DEFAULT_TARGET_BYTE_ORDER=${default_endian}"
3881 if test x
"$wire_endian" != x
; then
3882 sim_endian
="-DWITH_DEFAULT_TARGET_BYTE_ORDER=${wire_endian}"
3884 echo "No default endian for target $target" 1>&6
3885 sim_endian
="-DWITH_DEFAULT_TARGET_BYTE_ORDER=0"
3888 *) { echo "configure: error: "Unknown value
$enableval for --enable-sim-endian"" 1>&2; exit 1; }; sim_endian
="";;
3890 if test x
"$silent" != x
"yes" && test x
"$sim_endian" != x
""; then
3891 echo "Setting endian flags = $sim_endian" 6>&1
3894 if test x
"$default_endian" != x
; then
3895 sim_endian
="-DWITH_DEFAULT_TARGET_BYTE_ORDER=${default_endian}"
3897 if test x
"$wire_endian" != x
; then
3898 sim_endian
="-DWITH_TARGET_BYTE_ORDER=${wire_endian}"
3909 # Select the bitsize of the target
3913 mips64
*-*-*) mips_bitsize
=64 ; mips_msb
=63 ;;
3914 mips16
*-*-*) mips_bitsize
=64 ; mips_msb
=63 ;;
3915 mipsisa32
*-*-*) mips_bitsize
=32 ; mips_msb
=31 ;;
3916 mipsisa64
*-*-*) mips_bitsize
=64 ; mips_msb
=63 ;;
3917 mips
*-*-*) mips_bitsize
=32 ; mips_msb
=31 ;;
3918 *) mips_bitsize
=64 ; mips_msb
=63 ;;
3920 wire_word_bitsize
="$mips_bitsize"
3921 wire_word_msb
="$mips_msb"
3922 wire_address_bitsize
="$mips_addr_bitsize"
3923 wire_cell_bitsize
=""
3924 # Check whether --enable-sim-bitsize or --disable-sim-bitsize was given.
3925 if test "${enable_sim_bitsize+set}" = set; then
3926 enableval
="$enable_sim_bitsize"
3928 case "${enableval}" in
3929 64,63 |
64,63,* ) sim_bitsize
="-DWITH_TARGET_WORD_BITSIZE=64 -DWITH_TARGET_WORD_MSB=63";;
3930 32,31 |
32,31,* ) sim_bitsize
="-DWITH_TARGET_WORD_BITSIZE=32 -DWITH_TARGET_WORD_MSB=31";;
3931 64,0 |
64,0,* ) sim_bitsize
="-DWITH_TARGET_WORD_BITSIZE=32 -DWITH_TARGET_WORD_MSB=0";;
3932 32,0 |
64,0,* ) sim_bitsize
="-DWITH_TARGET_WORD_BITSIZE=32 -DWITH_TARGET_WORD_MSB=0";;
3933 32) if test x
"$wire_word_msb" != x
-a x
"$wire_word_msb" != x0
; then
3934 sim_bitsize
="-DWITH_TARGET_WORD_BITSIZE=32 -DWITH_TARGET_WORD_MSB=31"
3936 sim_bitsize
="-DWITH_TARGET_WORD_BITSIZE=32 -DWITH_TARGET_WORD_MSB=0"
3938 64) if test x
"$wire_word_msb" != x
-a x
"$wire_word_msb" != x0
; then
3939 sim_bitsize
="-DWITH_TARGET_WORD_BITSIZE=64 -DWITH_TARGET_WORD_MSB=63"
3941 sim_bitsize
="-DWITH_TARGET_WORD_BITSIZE=64 -DWITH_TARGET_WORD_MSB=0"
3943 *) { echo "configure: error: "--enable-sim-bitsize was given
$enableval. Expected
32 or
64"" 1>&2; exit 1; } ;;
3946 tmp
=`echo "${enableval}" | sed -e "s/^[0-9]*,*[0-9]*,*//"`
3949 x32 | x32
,* ) sim_bitsize
="${sim_bitsize} -DWITH_TARGET_ADDRESS_BITSIZE=32" ;;
3950 x64 | x64
,* ) sim_bitsize
="${sim_bitsize} -DWITH_TARGET_ADDRESS_BITSIZE=64" ;;
3951 * ) { echo "configure: error: "--enable-sim-bitsize was given address size
$enableval. Expected
32 or
64"" 1>&2; exit 1; } ;;
3954 tmp
=`echo "${enableval}" | sed -e "s/^[0-9]*,*[0-9*]*,*[0-9]*,*//"`
3957 x32 | x32
,* ) sim_bitsize
="${sim_bitsize} -DWITH_TARGET_CELL_BITSIZE=32" ;;
3958 x64 | x64
,* ) sim_bitsize
="${sim_bitsize} -DWITH_TARGET_CELL_BITSIZE=64" ;;
3959 * ) { echo "configure: error: "--enable-sim-bitsize was given cell size
$enableval. Expected
32 or
64"" 1>&2; exit 1; } ;;
3961 if test x
"$silent" != x
"yes" && test x
"$sim_bitsize" != x
""; then
3962 echo "Setting bitsize flags = $sim_bitsize" 6>&1
3966 if test x
"$wire_word_bitsize" != x
; then
3967 sim_bitsize
="$sim_bitsize -DWITH_TARGET_WORD_BITSIZE=$wire_word_bitsize"
3969 if test x
"$wire_word_msb" != x
; then
3970 sim_bitsize
="$sim_bitsize -DWITH_TARGET_WORD_MSB=$wire_word_msb"
3972 if test x
"$wire_address_bitsize" != x
; then
3973 sim_bitsize
="$sim_bitsize -DWITH_TARGET_ADDRESS_BITSIZE=$wire_address_bitsize"
3975 if test x
"$wire_cell_bitsize" != x
; then
3976 sim_bitsize
="$sim_bitsize -DWITH_TARGET_CELL_BITSIZE=$wire_cell_bitsize"
3984 # Select the floating hardware support of the target
3986 mips_fpu
=HARDWARE_FLOATING_POINT
3989 mips
*tx39
*) mips_fpu
=HARD_FLOATING_POINT
3992 mips64
*-*-*) mips_fpu
=HARD_FLOATING_POINT
;;
3993 mips16
*-*-*) mips_fpu
=HARD_FLOATING_POINT
;;
3994 mipsisa32
*-*-*) mips_fpu
=HARD_FLOATING_POINT
; mips_fpu_bitsize
=64 ;;
3995 mipsisa64
*-*-*) mips_fpu
=HARD_FLOATING_POINT
; mips_fpu_bitsize
=64 ;;
3996 mips
*-*-*) mips_fpu
=HARD_FLOATING_POINT
; mips_fpu_bitsize
=32 ;;
3997 *) mips_fpu
=HARD_FLOATING_POINT
;;
4000 default_sim_float
="$mips_fpu"
4001 default_sim_float_bitsize
="$mips_fpu_bitsize"
4002 # Check whether --enable-sim-float or --disable-sim-float was given.
4003 if test "${enable_sim_float+set}" = set; then
4004 enableval
="$enable_sim_float"
4005 case "${enableval}" in
4006 yes | hard
) sim_float
="-DWITH_FLOATING_POINT=HARD_FLOATING_POINT";;
4007 no | soft
) sim_float
="-DWITH_FLOATING_POINT=SOFT_FLOATING_POINT";;
4008 32) sim_float
="-DWITH_FLOATING_POINT=HARD_FLOATING_POINT -DWITH_TARGET_FLOATING_POINT_BITSIZE=32";;
4009 64) sim_float
="-DWITH_FLOATING_POINT=HARD_FLOATING_POINT -DWITH_TARGET_FLOATING_POINT_BITSIZE=64";;
4010 *) { echo "configure: error: "Unknown value
$enableval passed to
--enable-sim-float"" 1>&2; exit 1; }; sim_float
="";;
4012 if test x
"$silent" != x
"yes" && test x
"$sim_float" != x
""; then
4013 echo "Setting float flags = $sim_float" 6>&1
4018 if test x
"${default_sim_float}" != x
""; then
4019 sim_float
="-DWITH_FLOATING_POINT=${default_sim_float}"
4021 if test x
"${default_sim_float_bitsize}" != x
""; then
4022 sim_float
="$sim_float -DWITH_TARGET_FLOATING_POINT_BITSIZE=${default_sim_float_bitsize}"
4031 # Select the level of SMP support
4037 default_sim_smp
="$mips_smp"
4038 # Check whether --enable-sim-smp or --disable-sim-smp was given.
4039 if test "${enable_sim_smp+set}" = set; then
4040 enableval
="$enable_sim_smp"
4041 case "${enableval}" in
4042 yes) sim_smp
="-DWITH_SMP=5" ; sim_igen_smp
="-N 5";;
4043 no
) sim_smp
="-DWITH_SMP=0" ; sim_igen_smp
="-N 0";;
4044 *) sim_smp
="-DWITH_SMP=$enableval" ; sim_igen_smp
="-N $enableval";;
4046 if test x
"$silent" != x
"yes" && test x
"$sim_smp" != x
""; then
4047 echo "Setting smp flags = $sim_smp" 6>&1
4050 sim_smp
="-DWITH_SMP=${default_sim_smp}" ; sim_igen_smp
="-N ${default_sim_smp}"
4051 if test x
"$silent" != x
"yes"; then
4052 echo "Setting smp flags = $sim_smp" 6>&1
4060 # Select the IGEN architecture
4063 sim_igen_machine
="-M mipsIV"
4064 sim_m16_machine
="-M mips16,mipsIII"
4065 sim_igen_filter
="32,64,f"
4067 sim_mach_default
="mips8000"
4070 mips
*tx39
*) sim_gen
=IGEN
4071 sim_igen_filter
="32,f"
4072 sim_igen_machine
="-M r3900"
4074 mips64vr43
*-*-*) sim_gen
=IGEN
4075 sim_igen_machine
="-M mipsIV"
4076 sim_mach_default
="mips8000"
4078 mips64vr5
*-*-*) sim_gen
=IGEN
4079 sim_igen_machine
="-M vr5000"
4080 sim_mach_default
="mips5000"
4082 mips64vr41
*) sim_gen
=M16
4083 sim_igen_machine
="-M vr4100"
4084 sim_m16_machine
="-M vr4100"
4085 sim_igen_filter
="32,64,f"
4087 sim_mach_default
="mips4100"
4089 mips64vr-
*-* | mips64vrel-
*-*)
4091 sim_multi_configs
="\
4092 vr4100:mipsIII,mips16,vr4100:32,64:mips4100,mips4111\
4093 vr4120:mipsIII,mips16,vr4120:32,64:mips4120\
4094 vr5000:mipsIV:32,64,f:mips4300,mips5000\
4095 vr5400:mipsIV,vr5400:32,64,f:mips5400\
4096 vr5500:mipsIV,vr5500:32,64,f:mips5500"
4097 sim_multi_default
=mips5000
4099 mips64
*-*-*) sim_igen_filter
="32,64,f"
4102 mips16
*-*-*) sim_gen
=M16
4103 sim_igen_filter
="32,64,f"
4106 mipsisa32
*-*-*) sim_gen
=IGEN
4107 sim_igen_machine
="-M mips32"
4108 sim_igen_filter
="32,f"
4109 sim_mach_default
="mipsisa32"
4111 mipsisa64sb1
*-*-*) sim_gen
=IGEN
4112 sim_igen_machine
="-M mips64,sb1"
4113 sim_igen_filter
="32,64,f"
4114 sim_mach_default
="mips_sb1"
4116 mipsisa64
*-*-*) sim_gen
=IGEN
4117 sim_igen_machine
="-M mips64,mips3d"
4118 sim_igen_filter
="32,64,f"
4119 sim_mach_default
="mipsisa64"
4121 mips
*lsi
*) sim_gen
=M16
4122 sim_igen_machine
="-M mipsIII,mips16"
4123 sim_m16_machine
="-M mips16,mipsIII"
4124 sim_igen_filter
="32,f"
4126 sim_mach_default
="mips4000"
4128 mips
*-*-*) sim_gen
=IGEN
4129 sim_igen_filter
="32,f"
4133 # The MULTI generator can combine several simulation engines into one.
4134 # executable. A configuration which uses the MULTI should set two
4135 # variables: ${sim_multi_configs} and ${sim_multi_default}.
4137 # ${sim_multi_configs} is the list of engines to build. Each
4138 # space-separated entry has the form NAME:MACHINE:FILTER:BFDMACHS,
4141 # - NAME is a C-compatible prefix for the engine,
4142 # - MACHINE is a -M argument,
4143 # - FILTER is a -F argument, and
4144 # - BFDMACHS is a comma-separated list of bfd machines that the
4145 # simulator can run.
4147 # Each entry will have a separate simulation engine whose prefix is
4148 # m32<NAME>. If the machine list includes "mips16", there will also
4149 # be a mips16 engine, prefix m16<NAME>. The mips16 engine will be
4150 # generated using the same machine list as the 32-bit version,
4151 # but the filter will be "16" instead of FILTER.
4153 # The simulator compares the bfd mach against BFDMACHS to decide
4154 # which engine to use. Entries in BFDMACHS should be bfd_mach
4155 # values with "bfd_mach_" removed. ${sim_multi_default} says
4156 # which entry should be the default.
4157 if test ${sim_gen} = MULTI
; then
4159 # Simple sanity check.
4160 if test -z "${sim_multi_configs}" ||
test -z "${sim_multi_default}"; then
4161 { echo "configure: error: Error in configure.in: MULTI simulator not set up correctly" 1>&2; exit 1; }
4164 # Start in a known state.
4165 rm -f multi-include.h multi-run.c
4168 sim_multi_obj
=multi-run.o
4169 sim_multi_igen_configs
=
4172 cat << __EOF__ > multi-run.c
4173 /* Main entry point for MULTI simulators.
4174 Copyright (C) 2003 Free Software Foundation, Inc.
4176 This program is free software; you can redistribute it and/or modify
4177 it under the terms of the GNU General Public License as published by
4178 the Free Software Foundation; either version 2 of the License, or
4179 (at your option) any later version.
4181 This program is distributed in the hope that it will be useful,
4182 but WITHOUT ANY WARRANTY; without even the implied warranty of
4183 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
4184 GNU General Public License for more details.
4186 You should have received a copy of the GNU General Public License
4187 along with this program; if not, write to the Free Software
4188 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
4192 This file was generated by sim/mips/configure. */
4194 #include "sim-main.h"
4195 #include "multi-include.h"
4201 sim_engine_run (SIM_DESC sd,
4204 int signal) /* ignore */
4208 if (STATE_ARCHITECTURE (sd) == NULL)
4209 mach = bfd_mach_${sim_multi_default};
4211 mach = STATE_ARCHITECTURE (SD)->mach;
4217 for fc in ${sim_multi_configs}; do
4219 # Split up the entry. ${c} contains the first three elements.
4220 # Note: outer sqaure brackets are m4 quotes.
4221 c
=`echo ${fc} | sed 's/:[^:]*$//'`
4222 bfdmachs
=`echo ${fc} | sed 's/.*://'`
4223 name
=`echo ${c} | sed 's/:.*//'`
4224 machine
=`echo ${c} | sed 's/.*:\(.*\):.*/\1/'`
4225 filter
=`echo ${c} | sed 's/.*://'`
4227 # Build the following lists:
4229 # sim_multi_flags: all -M and -F flags used by the simulator
4230 # sim_multi_src: all makefile-generated source files
4231 # sim_multi_obj: the objects for ${sim_multi_src}
4232 # sim_multi_igen_configs: igen configuration strings.
4234 # Each entry in ${sim_multi_igen_configs} is a prefix (m32
4235 # or m16) followed by the NAME, MACHINE and FILTER part of
4236 # the ${sim_multi_configs} entry.
4237 sim_multi_flags
="${sim_multi_flags} -F ${filter} -M ${machine}"
4239 # Check whether mips16 handling is needed.
4242 # Run igen twice, once for normal mode and once for mips16.
4245 # The top-level function for the mips16 simulator is
4246 # in a file m16${name}_run.c, generated by the
4247 # tmp-run-multi Makefile rule.
4248 sim_multi_src
="${sim_multi_src} m16${name}_run.c"
4249 sim_multi_obj
="${sim_multi_obj} m16${name}_run.o"
4250 sim_multi_flags
="${sim_multi_flags} -F 16"
4257 # Now add the list of igen-generated files to ${sim_multi_src}
4258 # and ${sim_multi_obj}.
4260 for base
in engine icache idecode model semantics support
; do
4261 sim_multi_src
="${sim_multi_src} ${w}${name}_${base}.c"
4262 sim_multi_src
="${sim_multi_src} ${w}${name}_${base}.h"
4263 sim_multi_obj
="${sim_multi_obj} ${w}${name}_${base}.o"
4265 sim_multi_igen_configs
="${sim_multi_igen_configs} ${w}${c}"
4268 # Add an include for the engine.h file. This file declares the
4269 # top-level foo_engine_run() function.
4270 echo "#include \"${w}${name}_engine.h\"" >> multi-include.h
4272 # Add case statements for this engine to sim_engine_run().
4273 for mach
in `echo ${bfdmachs} | sed 's/,/ /g'`; do
4274 echo " case bfd_mach_${mach}:" >> multi-run.c
4275 if test ${mach} = ${sim_multi_default}; then
4276 echo " default:" >> multi-run.c
4277 sim_seen_default
=yes
4280 echo " ${w}${name}_engine_run (sd, next_cpu_nr, nr_cpus, signal);" \
4282 echo " break;" >> multi-run.c
4285 # Check whether we added a 'default:' label.
4286 if test ${sim_seen_default} = no
; then
4287 { echo "configure: error: Error in configure.in: \${sim_multi_configs} doesn't have an entry for \${sim_multi_default}" 1>&2; exit 1; }
4290 cat << __EOF__ >> multi-run.c
4295 mips_mach_multi (SIM_DESC sd)
4297 if (STATE_ARCHITECTURE (sd) == NULL)
4298 return bfd_mach_${sim_multi_default};
4300 switch (STATE_ARCHITECTURE (SD)->mach)
4304 # Add case statements for this engine to mips_mach_multi().
4305 for fc in ${sim_multi_configs}; do
4307 # Split up the entry. ${c} contains the first three elements.
4308 # Note: outer sqaure brackets are m4 quotes.
4309 c=`echo ${fc} | sed 's/:[^:]*$//'`
4310 bfdmachs=`echo ${fc} | sed 's/.*://'`
4312 for mach in `echo ${bfdmachs} | sed 's/,/ /g'`; do
4313 echo " case bfd_mach_
${mach}:" >> multi-run.c
4317 cat << __EOF__ >> multi-run.c
4318 return (STATE_ARCHITECTURE (SD)->mach);
4320 return bfd_mach_${sim_multi_default};
4325 SIM_SUBTARGET="$SIM_SUBTARGET -DMIPS_MACH_MULTI"
4328 sim_multi_src=doesnt-exist.c
4330 if test x"${sim_mach_default}" = x""; then
4331 { echo "configure
: error
: Error
in configure.
in: \
${sim_mach_default} not defined
" 1>&2; exit 1; }
4333 SIM_SUBTARGET="$SIM_SUBTARGET -DMIPS_MACH_DEFAULT=bfd_mach_
${sim_mach_default}"
4335 sim_igen_flags="-F ${sim_igen_filter} ${sim_igen_machine} ${sim_igen_smp}"
4336 sim_m16_flags=" -F ${sim_m16_filter} ${sim_m16_machine} ${sim_igen_smp}"
4347 # Add simulated hardware devices
4353 hw_extra_devices="tx3904cpu tx3904irc tx3904tmr tx3904sio
"
4354 mips_extra_objs="dv-sockser.o
"
4355 SIM_SUBTARGET="$SIM_SUBTARGET -DTARGET_TX3904=1"
4362 if test x"$hw_enabled" = x"yes"; then
4367 if test "$hw_devices"; then
4368 hardware="core pal glue
"
4370 hardware="core pal glue
$hw_extra_devices"
4372 sim_hw_cflags="-DWITH_HW=1"
4374 sim_hw_objs="\$
(SIM_COMMON_HW_OBJS
) `echo $sim_hw | sed -e 's/\([^ ][^ ]*\)/dv-\1.o/g'`"
4375 # Check whether --enable-sim-hardware or --disable-sim-hardware was given.
4376 if test "${enable_sim_hardware+set}" = set; then
4377 enableval="$enable_sim_hardware"
4379 case "${enableval}" in
4382 ,*) sim_hw_p=yes; hardware="${hardware} `echo ${enableval} | sed -e 's/,/ /'`";;
4383 *,) sim_hw_p=yes; hardware="`echo ${enableval} | sed -e 's/,/ /'` ${hardware}";;
4384 *) sim_hw_p=yes; hardware="`echo ${enableval} | sed -e 's/,/ /'`"'';;
4386 if test "$sim_hw_p" != yes; then
4388 sim_hw_cflags="-DWITH_HW=0"
4391 sim_hw_cflags="-DWITH_HW=1"
4394 sim_hw_objs="\$
(SIM_COMMON_HW_OBJS
)"
4395 for i in x $hardware ; do
4399 *) sim_hw="$sim_hw $i" ; sim_hw_objs="$sim_hw_objs dv-
$i.o
";;
4403 if test x"$silent" != x"yes" && test "$sim_hw_p" = "yes"; then
4404 echo "Setting hardware to
$sim_hw_cflags, $sim_hw, $sim_hw_objs"
4408 if test "$sim_hw_p" != yes; then
4410 sim_hw_cflags="-DWITH_HW=0"
4413 if test x"$silent" != x"yes"; then
4414 echo "Setting hardware to
$sim_hw_cflags, $sim_hw, $sim_hw_objs"
4421 # Choose simulator engine
4423 *) mips_igen_engine="engine.o
"
4429 # If we find X, set shell vars x_includes and x_libraries to the
4430 # paths, otherwise set no_x=yes.
4431 # Uses ac_ vars as temps to allow command line to override cache and checks.
4432 # --without-x overrides everything else, but does not touch the cache.
4433 echo $ac_n "checking
for X
""...
$ac_c" 1>&6
4434 echo "configure
:4435: checking
for X
" >&5
4436 # Check whether --with-x or --without-x was given.
4437 if test "${with_x+set}" = set; then
4442 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
4443 if test "x
$with_x" = xno; then
4444 # The user explicitly disabled X.
4447 if test "x
$x_includes" != xNONE && test "x
$x_libraries" != xNONE; then
4448 # Both variables are already set.
4451 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
4452 echo $ac_n "(cached
) $ac_c" 1>&6
4454 # One or both of the vars are not set, and there is no cached value.
4455 ac_x_includes=NO ac_x_libraries=NO
4457 if mkdir conftestdir; then
4459 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
4460 cat > Imakefile <<'EOF'
4462 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
4464 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
4465 # GNU make sometimes prints "make[1]: Entering...
", which would confuse us.
4466 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
4467 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
4468 for ac_extension in a so sl; do
4469 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
4470 test -f $ac_im_libdir/libX11.$ac_extension; then
4471 ac_im_usrlibdir=$ac_im_libdir; break
4474 # Screen out bogus values from the imake configuration. They are
4475 # bogus both because they are the default anyway, and because
4476 # using them would break gcc on systems where it needs fixed includes.
4477 case "$ac_im_incroot" in
4479 *) test -f "$ac_im_incroot/X11
/Xos.h
" && ac_x_includes="$ac_im_incroot" ;;
4481 case "$ac_im_usrlibdir" in
4483 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
4490 if test "$ac_x_includes" = NO; then
4491 # Guess where to find include files, by looking for this one X11 .h file.
4492 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
4494 # First, try using that file with no special directory specified.
4495 cat > conftest.$ac_ext <<EOF
4496 #line 4497 "configure
"
4497 #include "confdefs.h
"
4498 #include <$x_direct_test_include>
4500 ac_try="$ac_cpp conftest.
$ac_ext >/dev
/null
2>conftest.out
"
4501 { (eval echo configure:4502: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4502 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.
${ac_ext}\$
"`
4503 if test -z "$ac_err"; then
4505 # We can compile using X headers with no special include directory.
4509 echo "configure
: failed program was
:" >&5
4510 cat conftest.$ac_ext >&5
4512 # Look for the header file in a standard set of common directories.
4513 # Check X11 before X11Rn because it is often a symlink to the current release.
4516 /usr/X11R6/include \
4517 /usr/X11R5/include \
4518 /usr/X11R4/include \
4521 /usr/include/X11R6 \
4522 /usr/include/X11R5 \
4523 /usr/include/X11R4 \
4525 /usr/local/X11/include \
4526 /usr/local/X11R6/include \
4527 /usr/local/X11R5/include \
4528 /usr/local/X11R4/include \
4530 /usr/local/include/X11 \
4531 /usr/local/include/X11R6 \
4532 /usr/local/include/X11R5 \
4533 /usr/local/include/X11R4 \
4537 /usr/XFree86/include/X11 \
4540 /usr/local/include \
4541 /usr/unsupported/include \
4542 /usr/athena/include \
4543 /usr/local/x11r5/include \
4544 /usr/lpp/Xamples/include \
4546 /usr/openwin/include \
4547 /usr/openwin/share/include \
4550 if test -r "$ac_dir/$x_direct_test_include"; then
4551 ac_x_includes=$ac_dir
4557 fi # $ac_x_includes = NO
4559 if test "$ac_x_libraries" = NO; then
4560 # Check for the libraries.
4562 test -z "$x_direct_test_library" && x_direct_test_library=Xt
4563 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
4565 # See if we find them without any special options.
4566 # Don't add to $LIBS permanently.
4567 ac_save_LIBS="$LIBS"
4568 LIBS="-l$x_direct_test_library $LIBS"
4569 cat > conftest.$ac_ext <<EOF
4570 #line 4571 "configure
"
4571 #include "confdefs.h
"
4574 ${x_direct_test_function}()
4577 if { (eval echo configure:4578: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4579 LIBS="$ac_save_LIBS"
4580 # We can link X programs with no special library path.
4583 echo "configure
: failed program was
:" >&5
4584 cat conftest.$ac_ext >&5
4586 LIBS="$ac_save_LIBS"
4587 # First see if replacing the include by lib works.
4588 # Check X11 before X11Rn because it is often a symlink to the current release.
4589 for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
4600 /usr/local/X11/lib \
4601 /usr/local/X11R6/lib \
4602 /usr/local/X11R5/lib \
4603 /usr/local/X11R4/lib \
4605 /usr/local/lib/X11 \
4606 /usr/local/lib/X11R6 \
4607 /usr/local/lib/X11R5 \
4608 /usr/local/lib/X11R4 \
4612 /usr/XFree86/lib/X11 \
4616 /usr/unsupported/lib \
4618 /usr/local/x11r5/lib \
4619 /usr/lpp/Xamples/lib \
4623 /usr/openwin/share/lib \
4626 for ac_extension in a so sl; do
4627 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
4628 ac_x_libraries=$ac_dir
4635 fi # $ac_x_libraries = NO
4637 if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
4638 # Didn't find X anywhere. Cache the known absence of X.
4639 ac_cv_have_x="have_x
=no
"
4641 # Record where we found X for the cache.
4642 ac_cv_have_x="have_x
=yes \
4643 ac_x_includes
=$ac_x_includes ac_x_libraries
=$ac_x_libraries"
4647 eval "$ac_cv_have_x"
4650 if test "$have_x" != yes; then
4651 echo "$ac_t""$have_x" 1>&6
4654 # If each of the values was on the command line, it overrides each guess.
4655 test "x
$x_includes" = xNONE && x_includes=$ac_x_includes
4656 test "x
$x_libraries" = xNONE && x_libraries=$ac_x_libraries
4657 # Update the cache value to reflect the command line values.
4658 ac_cv_have_x="have_x
=yes \
4659 ac_x_includes
=$x_includes ac_x_libraries
=$x_libraries"
4660 echo "$ac_t""libraries
$x_libraries, headers
$x_includes" 1>&6
4666 for ac_hdr in string.h strings.h stdlib.h stdlib.h
4668 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4669 echo $ac_n "checking
for $ac_hdr""...
$ac_c" 1>&6
4670 echo "configure
:4671: checking
for $ac_hdr" >&5
4671 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4672 echo $ac_n "(cached
) $ac_c" 1>&6
4674 cat > conftest.$ac_ext <<EOF
4675 #line 4676 "configure
"
4676 #include "confdefs.h
"
4679 ac_try="$ac_cpp conftest.
$ac_ext >/dev
/null
2>conftest.out
"
4680 { (eval echo configure:4681: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4681 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.
${ac_ext}\$
"`
4682 if test -z "$ac_err"; then
4684 eval "ac_cv_header_
$ac_safe=yes"
4687 echo "configure
: failed program was
:" >&5
4688 cat conftest.$ac_ext >&5
4690 eval "ac_cv_header_
$ac_safe=no
"
4694 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4695 echo "$ac_t""yes" 1>&6
4696 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4697 cat >> confdefs.h <<EOF
4698 #define $ac_tr_hdr 1
4702 echo "$ac_t""no
" 1>&6
4706 echo $ac_n "checking
for fabs
in -lm""...
$ac_c" 1>&6
4707 echo "configure
:4708: checking
for fabs
in -lm" >&5
4708 ac_lib_var=`echo m'_'fabs | sed 'y%./+-%__p_%'`
4709 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4710 echo $ac_n "(cached
) $ac_c" 1>&6
4712 ac_save_LIBS="$LIBS"
4714 cat > conftest.$ac_ext <<EOF
4715 #line 4716 "configure
"
4716 #include "confdefs.h
"
4717 /* Override any gcc2 internal prototype to avoid an error. */
4718 /* We use char because int might match the return type of a gcc2
4719 builtin and then its argument prototype would still apply. */
4726 if { (eval echo configure:4727: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4728 eval "ac_cv_lib_
$ac_lib_var=yes"
4730 echo "configure
: failed program was
:" >&5
4731 cat conftest.$ac_ext >&5
4733 eval "ac_cv_lib_
$ac_lib_var=no
"
4736 LIBS="$ac_save_LIBS"
4739 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4740 echo "$ac_t""yes" 1>&6
4741 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4742 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4743 cat >> confdefs.h <<EOF
4744 #define $ac_tr_lib 1
4750 echo "$ac_t""no
" 1>&6
4753 for ac_func in aint anint sqrt
4755 echo $ac_n "checking
for $ac_func""...
$ac_c" 1>&6
4756 echo "configure
:4757: checking
for $ac_func" >&5
4757 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4758 echo $ac_n "(cached
) $ac_c" 1>&6
4760 cat > conftest.$ac_ext <<EOF
4761 #line 4762 "configure
"
4762 #include "confdefs.h
"
4763 /* System header to define __stub macros and hopefully few prototypes,
4764 which can conflict with char $ac_func(); below. */
4766 /* Override any gcc2 internal prototype to avoid an error. */
4767 /* We use char because int might match the return type of a gcc2
4768 builtin and then its argument prototype would still apply. */
4773 /* The GNU C library defines this for functions which it implements
4774 to always fail with ENOSYS. Some functions are actually named
4775 something starting with __ and the normal name is an alias. */
4776 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4784 if { (eval echo configure:4785: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4786 eval "ac_cv_func_
$ac_func=yes"
4788 echo "configure
: failed program was
:" >&5
4789 cat conftest.$ac_ext >&5
4791 eval "ac_cv_func_
$ac_func=no
"
4796 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4797 echo "$ac_t""yes" 1>&6
4798 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4799 cat >> confdefs.h <<EOF
4800 #define $ac_tr_func 1
4804 echo "$ac_t""no
" 1>&6
4812 cat > confcache <<\EOF
4813 # This file is a shell script that caches the results of configure
4814 # tests run on this system so they can be shared between configure
4815 # scripts and configure runs. It is not useful on other systems.
4816 # If it contains results you don't want to keep, you may remove or edit it.
4818 # By default, configure uses ./config.cache as the cache file,
4819 # creating it if it does not exist already. You can give configure
4820 # the --cache-file=FILE option to use a different cache file; that is
4821 # what configure does when it calls configure scripts in
4822 # subdirectories, so they share the cache.
4823 # Giving --cache-file=/dev/null disables caching, for debugging configure.
4824 # config.status only pays attention to the cache file if you give it the
4825 # --recheck option to rerun configure.
4828 # The following way of writing the cache mishandles newlines in values,
4829 # but we know of no workaround that is simple, portable, and efficient.
4830 # So, don't put newlines in cache variables' values.
4831 # Ultrix sh set writes to stderr and can't be redirected directly,
4832 # and sets the high bit in the cache file unless we assign to the vars.
4834 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4836 # `set' does not quote correctly, so add quotes (double-quote substitution
4837 # turns \\\\ into \\, and sed turns \\ into \).
4839 -e "s
/'/'\\\\''/g
" \
4840 -e "s
/^
\\([a-zA-Z0-9_
]*_cv_
[a-zA-Z0-9_
]*\\)=\\(.
*\\)/\\1=\
${\\1='\\2'}/p
"
4843 # `set' quotes correctly as required by POSIX, so do not add quotes.
4844 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
4847 if cmp -s $cache_file confcache; then
4850 if test -w $cache_file; then
4851 echo "updating cache
$cache_file"
4852 cat confcache > $cache_file
4854 echo "not updating unwritable cache
$cache_file"
4859 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
4861 test "x
$prefix" = xNONE && prefix=$ac_default_prefix
4862 # Let make expand exec_prefix.
4863 test "x
$exec_prefix" = xNONE && exec_prefix='${prefix}'
4865 # Any assignment to VPATH causes Sun make to only execute
4866 # the first set of double-colon rules, so remove it if not needed.
4867 # If there is a colon in the path, we need to keep it.
4868 if test "x
$srcdir" = x.; then
4869 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
4872 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
4874 DEFS=-DHAVE_CONFIG_H
4876 # Without the ".
/", some shells look in PATH for config.status.
4877 : ${CONFIG_STATUS=./config.status}
4879 echo creating $CONFIG_STATUS
4880 rm -f $CONFIG_STATUS
4881 cat > $CONFIG_STATUS <<EOF
4883 # Generated automatically by configure.
4884 # Run this file to recreate the current configuration.
4885 # This directory was configured as follows,
4886 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
4888 # $0 $ac_configure_args
4890 # Compiler output produced by configure, useful for debugging
4891 # configure, is in ./config.log if it exists.
4893 ac_cs_usage="Usage
: $CONFIG_STATUS [--recheck] [--version] [--help]"
4896 case "\
$ac_option" in
4897 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4898 echo "running \
${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
4899 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
4900 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
4901 echo "$CONFIG_STATUS generated by autoconf version
2.13"
4903 -help | --help | --hel | --he | --h)
4904 echo "\
$ac_cs_usage"; exit 0 ;;
4905 *) echo "\
$ac_cs_usage"; exit 1 ;;
4909 ac_given_srcdir=$srcdir
4910 ac_given_INSTALL="$INSTALL"
4912 trap 'rm -fr `echo "Makefile.sim
:Makefile.
in Make-common.sim
:..
/common
/Make-common.
in .gdbinit
:..
/common
/gdbinit.
in config.h
:config.
in" | sed "s
/:[^
]*//g
"` conftest*; exit 1' 1 2 15
4914 cat >> $CONFIG_STATUS <<EOF
4916 # Protect against being on the right side of a sed subst in config.status.
4917 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
4918 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
4921 s%@sim_environment@%$sim_environment%g
4922 s%@sim_alignment@%$sim_alignment%g
4923 s%@sim_assert@%$sim_assert%g
4924 s%@sim_bitsize@%$sim_bitsize%g
4925 s%@sim_endian@%$sim_endian%g
4926 s%@sim_hostendian@%$sim_hostendian%g
4927 s%@sim_float@%$sim_float%g
4928 s%@sim_scache@%$sim_scache%g
4929 s%@sim_default_model@%$sim_default_model%g
4930 s%@sim_hw_cflags@%$sim_hw_cflags%g
4931 s%@sim_hw_objs@%$sim_hw_objs%g
4932 s%@sim_hw@%$sim_hw%g
4933 s%@sim_inline@%$sim_inline%g
4934 s%@sim_packages@%$sim_packages%g
4935 s%@sim_regparm@%$sim_regparm%g
4936 s%@sim_reserved_bits@%$sim_reserved_bits%g
4937 s%@sim_smp@%$sim_smp%g
4938 s%@sim_stdcall@%$sim_stdcall%g
4939 s%@sim_xor_endian@%$sim_xor_endian%g
4940 s%@WARN_CFLAGS@%$WARN_CFLAGS%g
4941 s%@WERROR_CFLAGS@%$WERROR_CFLAGS%g
4943 s%@CFLAGS@%$CFLAGS%g
4944 s%@CPPFLAGS@%$CPPFLAGS%g
4945 s%@CXXFLAGS@%$CXXFLAGS%g
4946 s%@FFLAGS@%$FFLAGS%g
4948 s%@LDFLAGS@%$LDFLAGS%g
4950 s%@exec_prefix@%$exec_prefix%g
4951 s%@prefix@%$prefix%g
4952 s%@program_transform_name@%$program_transform_name%g
4953 s%@bindir@%$bindir%g
4954 s%@sbindir@%$sbindir%g
4955 s%@libexecdir@%$libexecdir%g
4956 s%@datadir@%$datadir%g
4957 s%@sysconfdir@%$sysconfdir%g
4958 s%@sharedstatedir@%$sharedstatedir%g
4959 s%@localstatedir@%$localstatedir%g
4960 s%@libdir@%$libdir%g
4961 s%@includedir@%$includedir%g
4962 s%@oldincludedir@%$oldincludedir%g
4963 s%@infodir@%$infodir%g
4964 s%@mandir@%$mandir%g
4966 s%@host_alias@%$host_alias%g
4967 s%@host_cpu@%$host_cpu%g
4968 s%@host_vendor@%$host_vendor%g
4969 s%@host_os@%$host_os%g
4970 s%@target@%$target%g
4971 s%@target_alias@%$target_alias%g
4972 s%@target_cpu@%$target_cpu%g
4973 s%@target_vendor@%$target_vendor%g
4974 s%@target_os@%$target_os%g
4976 s%@build_alias@%$build_alias%g
4977 s%@build_cpu@%$build_cpu%g
4978 s%@build_vendor@%$build_vendor%g
4979 s%@build_os@%$build_os%g
4981 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
4982 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
4983 s%@INSTALL_DATA@%$INSTALL_DATA%g
4984 s%@CC_FOR_BUILD@%$CC_FOR_BUILD%g
4985 s%@HDEFINES@%$HDEFINES%g
4987 s%@RANLIB@%$RANLIB%g
4988 s%@SET_MAKE@%$SET_MAKE%g
4990 s%@ALLOCA@%$ALLOCA%g
4991 s%@USE_NLS@%$USE_NLS%g
4992 s%@MSGFMT@%$MSGFMT%g
4993 s%@GMSGFMT@%$GMSGFMT%g
4994 s%@XGETTEXT@%$XGETTEXT%g
4995 s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
4996 s%@CATALOGS@%$CATALOGS%g
4997 s%@CATOBJEXT@%$CATOBJEXT%g
4998 s%@DATADIRNAME@%$DATADIRNAME%g
4999 s%@GMOFILES@%$GMOFILES%g
5000 s%@INSTOBJEXT@%$INSTOBJEXT%g
5001 s%@INTLDEPS@%$INTLDEPS%g
5002 s%@INTLLIBS@%$INTLLIBS%g
5003 s%@INTLOBJS@%$INTLOBJS%g
5004 s%@POFILES@%$POFILES%g
5006 s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g
5008 s%@GT_YES@%$GT_YES%g
5009 s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
5012 s%@sim_bswap@%$sim_bswap%g
5013 s%@sim_cflags@%$sim_cflags%g
5014 s%@sim_debug@%$sim_debug%g
5015 s%@sim_stdio@%$sim_stdio%g
5016 s%@sim_trace@%$sim_trace%g
5017 s%@sim_profile@%$sim_profile%g
5018 s%@EXEEXT@%$EXEEXT%g
5019 s%@SIM_SUBTARGET@%$SIM_SUBTARGET%g
5020 s%@sim_igen_flags@%$sim_igen_flags%g
5021 s%@sim_m16_flags@%$sim_m16_flags%g
5022 s%@sim_gen@%$sim_gen%g
5023 s%@sim_multi_flags@%$sim_multi_flags%g
5024 s%@sim_multi_igen_configs@%$sim_multi_igen_configs%g
5025 s%@sim_multi_src@%$sim_multi_src%g
5026 s%@sim_multi_obj@%$sim_multi_obj%g
5027 s%@mips_extra_objs@%$mips_extra_objs%g
5028 s%@mips_igen_engine@%$mips_igen_engine%g
5029 s%@mips_extra_libs@%$mips_extra_libs%g
5034 cat >> $CONFIG_STATUS <<\EOF
5036 # Split the substitutions into bite-sized pieces for seds with
5037 # small command number limits, like on Digital OSF/1 and HP-UX.
5038 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
5039 ac_file=1 # Number of current file.
5040 ac_beg=1 # First line for current file.
5041 ac_end=$ac_max_sed_cmds # Line after last line for current file.
5044 while $ac_more_lines; do
5045 if test $ac_beg -gt 1; then
5046 sed "1,${ac_beg}d
; ${ac_end}q
" conftest.subs > conftest.s$ac_file
5048 sed "${ac_end}q
" conftest.subs > conftest.s$ac_file
5050 if test ! -s conftest.s$ac_file; then
5052 rm -f conftest.s$ac_file
5054 if test -z "$ac_sed_cmds"; then
5055 ac_sed_cmds="sed -f conftest.s
$ac_file"
5057 ac_sed_cmds="$ac_sed_cmds |
sed -f conftest.s
$ac_file"
5059 ac_file=`expr $ac_file + 1`
5061 ac_end=`expr $ac_end + $ac_max_sed_cmds`
5064 if test -z "$ac_sed_cmds"; then
5069 cat >> $CONFIG_STATUS <<EOF
5071 CONFIG_FILES=\${CONFIG_FILES-"Makefile.sim:Makefile.in Make-common.sim:../common/Make-common.in .gdbinit:../common/gdbinit.in"}
5073 cat >> $CONFIG_STATUS <<\EOF
5074 for ac_file in .. $CONFIG_FILES; do if test "x
$ac_file" != x..; then
5075 # Support "outfile
[:infile
[:infile...
]]", defaulting infile="outfile.
in".
5077 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
5078 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
5079 *) ac_file_in="${ac_file}.
in" ;;
5082 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
5084 # Remove last slash and all that follows it. Not all systems have dirname.
5085 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
5086 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
5087 # The file is in a subdirectory.
5088 test ! -d "$ac_dir" && mkdir "$ac_dir"
5089 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
5090 # A "..
/" for each directory in $ac_dir_suffix.
5091 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
5093 ac_dir_suffix= ac_dots=
5096 case "$ac_given_srcdir" in
5098 if test -z "$ac_dots"; then top_srcdir=.
5099 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
5100 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
5102 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
5103 top_srcdir="$ac_dots$ac_given_srcdir" ;;
5106 case "$ac_given_INSTALL" in
5107 [/$]*) INSTALL="$ac_given_INSTALL" ;;
5108 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
5111 echo creating "$ac_file"
5113 configure_input="Generated automatically from
`echo $ac_file_in|sed 's%.*/%%'` by configure.
"
5115 *Makefile*) ac_comsub="1i
\\
5116 # $configure_input" ;;
5120 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
5122 s%@configure_input@%$configure_input%g
5123 s%@srcdir@%$srcdir%g
5124 s%@top_srcdir@%$top_srcdir%g
5125 s%@INSTALL@%$INSTALL%g
5126 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
5130 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
5131 # NAME is the cpp macro being defined and VALUE is the value it is being given.
5133 # ac_d sets the value in "#define NAME VALUE" lines.
5134 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
5135 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
5138 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
5139 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5140 ac_uB
='\([ ]\)%\1#\2define\3'
5143 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
5144 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5145 ac_eB
='$%\1#\2define\3'
5149 if test "${CONFIG_HEADERS+set}" != set; then
5151 cat >> $CONFIG_STATUS <<EOF
5152 CONFIG_HEADERS="config.h:config.in"
5154 cat >> $CONFIG_STATUS <<\EOF
5156 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
5157 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5159 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
5160 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
5161 *) ac_file_in
="${ac_file}.in" ;;
5164 echo creating
$ac_file
5166 rm -f conftest.frag conftest.
in conftest.out
5167 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
5168 cat $ac_file_inputs > conftest.
in
5172 # Transform confdefs.h into a sed script conftest.vals that substitutes
5173 # the proper values into config.h.in to produce config.h. And first:
5174 # Protect against being on the right side of a sed subst in config.status.
5175 # Protect against being in an unquoted here document in config.status.
5177 cat > conftest.hdr
<<\EOF
5180 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
5184 sed -n -f conftest.hdr confdefs.h > conftest.vals
5187 # This sed command replaces #undef with comments. This is necessary, for
5188 # example, in the case of _POSIX_SOURCE, which is predefined and required
5189 # on some systems where configure will not decide to define it.
5190 cat >> conftest.vals <<\EOF
5191 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
5194 # Break up conftest.vals because some shells have a limit on
5195 # the size of here documents, and old seds have small limits too.
5200 ac_lines=`grep -c . conftest.vals
`
5201 # grep -c gives empty output for an empty file on some AIX systems.
5202 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
5203 # Write a limited-size here document to conftest.frag.
5204 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
5205 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
5207 sed -f conftest.frag conftest.in > conftest.out
5209 mv conftest.out conftest.in
5211 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
5213 mv conftest.tail conftest.vals
5217 cat >> $CONFIG_STATUS <<\EOF
5218 rm -f conftest.frag conftest.h
5219 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
5220 cat conftest.in >> conftest.h
5222 if cmp -s $ac_file conftest.h 2>/dev/null; then
5223 echo "$ac_file is unchanged"
5226 # Remove last slash and all that follows it. Not all systems have dirname.
5227 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
5228 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
5229 # The file is in a subdirectory.
5230 test ! -d "$ac_dir" && mkdir "$ac_dir"
5233 mv conftest.h $ac_file
5239 cat >> $CONFIG_STATUS <<EOF
5240 ac_sources="$sim_link_files"
5241 ac_dests="$sim_link_links"
5244 cat >> $CONFIG_STATUS <<\EOF
5245 srcdir=$ac_given_srcdir
5246 while test -n "$ac_sources"; do
5247 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
5248 set $ac_sources; ac_source=$1; shift; ac_sources=$*
5250 echo "linking $srcdir/$ac_source to $ac_dest"
5252 if test ! -r $srcdir/$ac_source; then
5253 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
5257 # Make relative symlinks.
5258 # Remove last slash and all that follows it. Not all systems have dirname.
5259 ac_dest_dir=`echo $ac_dest|
sed 's%/[^/][^/]*$%%'`
5260 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
5261 # The dest file is in a subdirectory.
5262 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
5263 ac_dest_dir_suffix="/`echo $ac_dest_dir|
sed 's%^\./%%'`"
5264 # A "../" for each directory in $ac_dest_dir_suffix.
5265 ac_dots=`echo $ac_dest_dir_suffix|
sed 's%/[^/]*%../%g'`
5267 ac_dest_dir_suffix= ac_dots=
5271 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
5272 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
5275 # Make a symlink if possible; otherwise try a hard link.
5276 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
5277 ln $srcdir/$ac_source $ac_dest; then :
5279 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
5283 cat >> $CONFIG_STATUS <<EOF
5286 cat >> $CONFIG_STATUS <<\EOF
5287 case "x$CONFIG_FILES" in
5289 echo "Merging Makefile.sim+Make-common.sim into Makefile ..."
5290 rm -f Makesim1.tmp Makesim2.tmp Makefile
5291 sed -n -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ p' <Make-common.sim >Makesim1.tmp
5292 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >Makesim2.tmp
5293 sed -e '/^## COMMON_PRE_/ r Makesim1.tmp' \
5294 -e '/^## COMMON_POST_/ r Makesim2.tmp' \
5295 <Makefile.sim >Makefile
5296 rm -f Makefile.sim Make-common.sim Makesim1.tmp Makesim2.tmp
5299 case "x$CONFIG_HEADERS" in xconfig.h:config.in) echo > stamp-h ;; esac
5303 chmod +x $CONFIG_STATUS
5304 rm -fr confdefs* $ac_clean_files
5305 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1