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-endian=endian Specify target byte endian orientation."
168 --enable-sim-bitsize=N Specify target bitsize (32 or 64)."
170 --enable-sim-float Specify that the target processor has floating point hardware."
172 --enable-sim-smp=n Specify number of processors to configure for (default ${default_sim_smp})."
174 --enable-sim-hardware=LIST Specify the hardware to be included in the build."
176 --with-x use the X Window System"
178 # Initialize some variables set by options.
179 # The variables have the same names as the options, with
180 # dashes changed to underlines.
182 cache_file
=.
/config.cache
191 program_transform_name
=s
,x
,x
,
200 bindir
='${exec_prefix}/bin'
201 sbindir
='${exec_prefix}/sbin'
202 libexecdir
='${exec_prefix}/libexec'
203 datadir
='${prefix}/share'
204 sysconfdir
='${prefix}/etc'
205 sharedstatedir
='${prefix}/com'
206 localstatedir
='${prefix}/var'
207 libdir
='${exec_prefix}/lib'
208 includedir
='${prefix}/include'
209 oldincludedir
='/usr/include'
210 infodir
='${prefix}/info'
211 mandir
='${prefix}/man'
213 # Initialize some other variables.
216 SHELL
=${CONFIG_SHELL-/bin/sh}
217 # Maximum number of lines to put in a shell here document.
224 # If the previous option needs an argument, assign it.
225 if test -n "$ac_prev"; then
226 eval "$ac_prev=\$ac_option"
232 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
236 # Accept the important Cygnus configure options, so we can diagnose typos.
240 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
242 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
243 bindir
="$ac_optarg" ;;
245 -build |
--build |
--buil |
--bui |
--bu)
247 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
248 build
="$ac_optarg" ;;
250 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
251 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
252 ac_prev
=cache_file
;;
253 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
254 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
255 cache_file
="$ac_optarg" ;;
257 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
259 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
261 datadir
="$ac_optarg" ;;
263 -disable-* |
--disable-*)
264 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
265 # Reject names that are not valid shell variable names.
266 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
267 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
269 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
270 eval "enable_${ac_feature}=no" ;;
272 -enable-* |
--enable-*)
273 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
274 # Reject names that are not valid shell variable names.
275 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
276 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
278 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
283 eval "enable_${ac_feature}='$ac_optarg'" ;;
285 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
286 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
287 |
--exec |
--exe |
--ex)
288 ac_prev
=exec_prefix
;;
289 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
290 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
291 |
--exec=* |
--exe=* |
--ex=*)
292 exec_prefix
="$ac_optarg" ;;
294 -gas |
--gas |
--ga |
--g)
295 # Obsolete; use --with-gas.
298 -help |
--help |
--hel |
--he)
299 # Omit some internal or obsolete options to make the list less imposing.
300 # This message is too long to be a string in the A/UX 3.1 sh.
302 Usage: configure [options] [host]
303 Options: [defaults in brackets after descriptions]
305 --cache-file=FILE cache test results in FILE
306 --help print this message
307 --no-create do not create output files
308 --quiet, --silent do not print \`checking...' messages
309 --site-file=FILE use FILE as the site file
310 --version print the version of autoconf that created configure
311 Directory and file names:
312 --prefix=PREFIX install architecture-independent files in PREFIX
314 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
316 --bindir=DIR user executables in DIR [EPREFIX/bin]
317 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
318 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
319 --datadir=DIR read-only architecture-independent data in DIR
321 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
322 --sharedstatedir=DIR modifiable architecture-independent data in DIR
324 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
325 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
326 --includedir=DIR C header files in DIR [PREFIX/include]
327 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
328 --infodir=DIR info documentation in DIR [PREFIX/info]
329 --mandir=DIR man documentation in DIR [PREFIX/man]
330 --srcdir=DIR find the sources in DIR [configure dir or ..]
331 --program-prefix=PREFIX prepend PREFIX to installed program names
332 --program-suffix=SUFFIX append SUFFIX to installed program names
333 --program-transform-name=PROGRAM
334 run sed PROGRAM on installed program names
338 --build=BUILD configure for building on BUILD [BUILD=HOST]
339 --host=HOST configure for HOST [guessed]
340 --target=TARGET configure for TARGET [TARGET=HOST]
341 Features and packages:
342 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
343 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
344 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
345 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
346 --x-includes=DIR X include files are in DIR
347 --x-libraries=DIR X library files are in DIR
349 if test -n "$ac_help"; then
350 echo "--enable and --with options recognized:$ac_help"
354 -host |
--host |
--hos |
--ho)
356 -host=* |
--host=* |
--hos=* |
--ho=*)
359 -includedir |
--includedir |
--includedi |
--included |
--include \
360 |
--includ |
--inclu |
--incl |
--inc)
361 ac_prev
=includedir
;;
362 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
363 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
364 includedir
="$ac_optarg" ;;
366 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
368 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
369 infodir
="$ac_optarg" ;;
371 -libdir |
--libdir |
--libdi |
--libd)
373 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
374 libdir
="$ac_optarg" ;;
376 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
377 |
--libexe |
--libex |
--libe)
378 ac_prev
=libexecdir
;;
379 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
380 |
--libexe=* |
--libex=* |
--libe=*)
381 libexecdir
="$ac_optarg" ;;
383 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
384 |
--localstate |
--localstat |
--localsta |
--localst \
385 |
--locals |
--local |
--loca |
--loc |
--lo)
386 ac_prev
=localstatedir
;;
387 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
388 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
389 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
390 localstatedir
="$ac_optarg" ;;
392 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
394 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
395 mandir
="$ac_optarg" ;;
398 # Obsolete; use --without-fp.
401 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
405 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
406 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
409 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
410 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
411 |
--oldin |
--oldi |
--old |
--ol |
--o)
412 ac_prev
=oldincludedir
;;
413 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
414 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
415 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
416 oldincludedir
="$ac_optarg" ;;
418 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
420 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
421 prefix
="$ac_optarg" ;;
423 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
424 |
--program-pre |
--program-pr |
--program-p)
425 ac_prev
=program_prefix
;;
426 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
427 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
428 program_prefix
="$ac_optarg" ;;
430 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
431 |
--program-suf |
--program-su |
--program-s)
432 ac_prev
=program_suffix
;;
433 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
434 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
435 program_suffix
="$ac_optarg" ;;
437 -program-transform-name |
--program-transform-name \
438 |
--program-transform-nam |
--program-transform-na \
439 |
--program-transform-n |
--program-transform- \
440 |
--program-transform |
--program-transfor \
441 |
--program-transfo |
--program-transf \
442 |
--program-trans |
--program-tran \
443 |
--progr-tra |
--program-tr |
--program-t)
444 ac_prev
=program_transform_name
;;
445 -program-transform-name=* |
--program-transform-name=* \
446 |
--program-transform-nam=* |
--program-transform-na=* \
447 |
--program-transform-n=* |
--program-transform-=* \
448 |
--program-transform=* |
--program-transfor=* \
449 |
--program-transfo=* |
--program-transf=* \
450 |
--program-trans=* |
--program-tran=* \
451 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
452 program_transform_name
="$ac_optarg" ;;
454 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
455 |
-silent |
--silent |
--silen |
--sile |
--sil)
458 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
460 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
462 sbindir
="$ac_optarg" ;;
464 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
465 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
466 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
468 ac_prev
=sharedstatedir
;;
469 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
470 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
471 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
473 sharedstatedir
="$ac_optarg" ;;
475 -site |
--site |
--sit)
477 -site=* |
--site=* |
--sit=*)
480 -site-file |
--site-file |
--site-fil |
--site-fi |
--site-f)
482 -site-file=* |
--site-file=* |
--site-fil=* |
--site-fi=* |
--site-f=*)
483 sitefile
="$ac_optarg" ;;
485 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
487 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
488 srcdir
="$ac_optarg" ;;
490 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
491 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
492 ac_prev
=sysconfdir
;;
493 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
494 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
495 sysconfdir
="$ac_optarg" ;;
497 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
499 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
500 target
="$ac_optarg" ;;
502 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
505 -version |
--version |
--versio |
--versi |
--vers)
506 echo "configure generated by autoconf version 2.13"
510 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
511 # Reject names that are not valid shell variable names.
512 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
513 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
515 ac_package
=`echo $ac_package| sed 's/-/_/g'`
520 eval "with_${ac_package}='$ac_optarg'" ;;
522 -without-* |
--without-*)
523 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
524 # Reject names that are not valid shell variable names.
525 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
526 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
528 ac_package
=`echo $ac_package| sed 's/-/_/g'`
529 eval "with_${ac_package}=no" ;;
532 # Obsolete; use --with-x.
535 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
536 |
--x-incl |
--x-inc |
--x-in |
--x-i)
537 ac_prev
=x_includes
;;
538 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
539 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
540 x_includes
="$ac_optarg" ;;
542 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
543 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
544 ac_prev
=x_libraries
;;
545 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
546 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
547 x_libraries
="$ac_optarg" ;;
549 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
553 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
554 echo "configure: warning: $ac_option: invalid host type" 1>&2
556 if test "x$nonopt" != xNONE
; then
557 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
565 if test -n "$ac_prev"; then
566 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
569 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
571 # File descriptor usage:
574 # 2 errors and warnings
575 # 3 some systems may open it to /dev/tty
576 # 4 used on the Kubota Titan
577 # 6 checking for... messages and results
578 # 5 compiler messages saved in config.log
579 if test "$silent" = yes; then
587 This file contains any messages produced by compilers while
588 running configure, to aid debugging if configure makes a mistake.
591 # Strip out --no-create and --no-recursion so they do not pile up.
592 # Also quote any args containing shell metacharacters.
597 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
598 |
--no-cr |
--no-c) ;;
599 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
600 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
601 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
602 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
603 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
608 # Only set these to C if already set. These must not be set unconditionally
609 # because not all systems understand e.g. LANG=C (notably SCO).
610 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
611 # Non-C LC_CTYPE values break the ctype check.
612 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
613 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
614 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
615 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
617 # confdefs.h avoids OS command line length limits that DEFS can exceed.
618 rm -rf conftest
* confdefs.h
619 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
622 # A filename unique to this package, relative to the directory that
623 # configure is in, which we can look for to find out if srcdir is correct.
624 ac_unique_file
=Makefile.
in
626 # Find the source files, if location was not specified.
627 if test -z "$srcdir"; then
628 ac_srcdir_defaulted
=yes
629 # Try the directory containing this script, then its parent.
631 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
632 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
634 if test ! -r $srcdir/$ac_unique_file; then
638 ac_srcdir_defaulted
=no
640 if test ! -r $srcdir/$ac_unique_file; then
641 if test "$ac_srcdir_defaulted" = yes; then
642 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
644 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
647 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
649 # Prefer explicitly selected file to automatically selected ones.
650 if test -z "$sitefile"; then
651 if test -z "$CONFIG_SITE"; then
652 if test "x$prefix" != xNONE
; then
653 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
655 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
659 CONFIG_SITE
="$sitefile"
661 for ac_site_file
in $CONFIG_SITE; do
662 if test -r "$ac_site_file"; then
663 echo "loading site script $ac_site_file"
668 if test -r "$cache_file"; then
669 echo "loading cache $cache_file"
672 echo "creating cache $cache_file"
677 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
678 ac_cpp
='$CPP $CPPFLAGS'
679 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
680 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
681 cross_compiling
=$ac_cv_prog_cc_cross
685 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
686 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
687 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
694 ac_n
= ac_c
='\c' ac_t
=
699 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
700 echo "configure:701: checking how to run the C preprocessor" >&5
701 # On Suns, sometimes $CPP names a directory.
702 if test -n "$CPP" && test -d "$CPP"; then
705 if test -z "$CPP"; then
706 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
707 echo $ac_n "(cached) $ac_c" 1>&6
709 # This must be in double quotes, not single quotes, because CPP may get
710 # substituted into the Makefile and "${CC-cc}" will confuse make.
712 # On the NeXT, cc -E runs the code through the compiler's parser,
713 # not just through cpp.
714 cat > conftest.
$ac_ext <<EOF
715 #line 716 "configure"
716 #include "confdefs.h"
720 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
721 { (eval echo configure
:722: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
722 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
723 if test -z "$ac_err"; then
727 echo "configure: failed program was:" >&5
728 cat conftest.
$ac_ext >&5
730 CPP
="${CC-cc} -E -traditional-cpp"
731 cat > conftest.
$ac_ext <<EOF
732 #line 733 "configure"
733 #include "confdefs.h"
737 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
738 { (eval echo configure
:739: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
739 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
740 if test -z "$ac_err"; then
744 echo "configure: failed program was:" >&5
745 cat conftest.
$ac_ext >&5
747 CPP
="${CC-cc} -nologo -E"
748 cat > conftest.
$ac_ext <<EOF
749 #line 750 "configure"
750 #include "confdefs.h"
754 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
755 { (eval echo configure
:756: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
756 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
757 if test -z "$ac_err"; then
761 echo "configure: failed program was:" >&5
762 cat conftest.
$ac_ext >&5
771 ac_cv_prog_CPP
="$CPP"
773 CPP
="$ac_cv_prog_CPP"
775 ac_cv_prog_CPP
="$CPP"
777 echo "$ac_t""$CPP" 1>&6
779 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
780 echo "configure:781: checking whether ${MAKE-make} sets \${MAKE}" >&5
781 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y%./+-%__p_%'`
782 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
783 echo $ac_n "(cached) $ac_c" 1>&6
785 cat > conftestmake
<<\EOF
787 @
echo 'ac_maketemp="${MAKE}"'
789 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
790 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
791 if test -n "$ac_maketemp"; then
792 eval ac_cv_prog_make_
${ac_make}_set
=yes
794 eval ac_cv_prog_make_
${ac_make}_set
=no
798 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
799 echo "$ac_t""yes" 1>&6
802 echo "$ac_t""no" 1>&6
803 SET_MAKE
="MAKE=${MAKE-make}"
806 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
807 echo "configure:808: checking for POSIXized ISC" >&5
808 if test -d /etc
/conf
/kconfig.d
&&
809 grep _POSIX_VERSION
/usr
/include
/sys
/unistd.h
>/dev
/null
2>&1
811 echo "$ac_t""yes" 1>&6
812 ISC
=yes # If later tests want to check for ISC.
813 cat >> confdefs.h
<<\EOF
814 #define _POSIX_SOURCE 1
817 if test "$GCC" = yes; then
823 echo "$ac_t""no" 1>&6
827 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
828 echo "configure:829: checking for ANSI C header files" >&5
829 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
830 echo $ac_n "(cached) $ac_c" 1>&6
832 cat > conftest.
$ac_ext <<EOF
833 #line 834 "configure"
834 #include "confdefs.h"
840 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
841 { (eval echo configure
:842: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
842 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
843 if test -z "$ac_err"; then
845 ac_cv_header_stdc
=yes
848 echo "configure: failed program was:" >&5
849 cat conftest.
$ac_ext >&5
855 if test $ac_cv_header_stdc = yes; then
856 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
857 cat > conftest.
$ac_ext <<EOF
858 #line 859 "configure"
859 #include "confdefs.h"
862 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
863 egrep "memchr" >/dev
/null
2>&1; then
873 if test $ac_cv_header_stdc = yes; then
874 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
875 cat > conftest.
$ac_ext <<EOF
876 #line 877 "configure"
877 #include "confdefs.h"
880 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
881 egrep "free" >/dev
/null
2>&1; then
891 if test $ac_cv_header_stdc = yes; then
892 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
893 if test "$cross_compiling" = yes; then
896 cat > conftest.
$ac_ext <<EOF
897 #line 898 "configure"
898 #include "confdefs.h"
900 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
901 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
902 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
903 int main () { int i; for (i = 0; i < 256; i++)
904 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
908 if { (eval echo configure
:909: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
912 echo "configure: failed program was:" >&5
913 cat conftest.
$ac_ext >&5
923 echo "$ac_t""$ac_cv_header_stdc" 1>&6
924 if test $ac_cv_header_stdc = yes; then
925 cat >> confdefs.h
<<\EOF
926 #define STDC_HEADERS 1
931 echo $ac_n "checking for working const""... $ac_c" 1>&6
932 echo "configure:933: checking for working const" >&5
933 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
934 echo $ac_n "(cached) $ac_c" 1>&6
936 cat > conftest.
$ac_ext <<EOF
937 #line 938 "configure"
938 #include "confdefs.h"
942 /* Ultrix mips cc rejects this. */
943 typedef int charset[2]; const charset x;
944 /* SunOS 4.1.1 cc rejects this. */
945 char const *const *ccp;
947 /* NEC SVR4.0.2 mips cc rejects this. */
948 struct point {int x, y;};
949 static struct point const zero = {0,0};
950 /* AIX XL C 1.02.0.0 rejects this.
951 It does not let you subtract one const X* pointer from another in an arm
952 of an if-expression whose if-part is not a constant expression */
953 const char *g = "string";
954 ccp = &g + (g ? g-g : 0);
955 /* HPUX 7.0 cc rejects these. */
958 ccp = (char const *const *) p;
959 { /* SCO 3.2v4 cc rejects this. */
961 char const *s = 0 ? (char *) 0 : (char const *) 0;
965 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
967 const int *foo = &x[0];
970 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
971 typedef const int *iptr;
975 { /* AIX XL C 1.02.0.0 rejects this saying
976 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
977 struct s { int j; const int *ap[3]; };
978 struct s *b; b->j = 5;
980 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
986 if { (eval echo configure
:987: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
990 echo "configure: failed program was:" >&5
991 cat conftest.
$ac_ext >&5
998 echo "$ac_t""$ac_cv_c_const" 1>&6
999 if test $ac_cv_c_const = no
; then
1000 cat >> confdefs.h
<<\EOF
1006 echo $ac_n "checking for inline""... $ac_c" 1>&6
1007 echo "configure:1008: checking for inline" >&5
1008 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1009 echo $ac_n "(cached) $ac_c" 1>&6
1012 for ac_kw
in inline __inline__ __inline
; do
1013 cat > conftest.
$ac_ext <<EOF
1014 #line 1015 "configure"
1015 #include "confdefs.h"
1021 if { (eval echo configure
:1022: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1023 ac_cv_c_inline
=$ac_kw; break
1025 echo "configure: failed program was:" >&5
1026 cat conftest.
$ac_ext >&5
1033 echo "$ac_t""$ac_cv_c_inline" 1>&6
1034 case "$ac_cv_c_inline" in
1036 no
) cat >> confdefs.h
<<\EOF
1040 *) cat >> confdefs.h
<<EOF
1041 #define inline $ac_cv_c_inline
1046 echo $ac_n "checking for off_t""... $ac_c" 1>&6
1047 echo "configure:1048: checking for off_t" >&5
1048 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
1049 echo $ac_n "(cached) $ac_c" 1>&6
1051 cat > conftest.
$ac_ext <<EOF
1052 #line 1053 "configure"
1053 #include "confdefs.h"
1054 #include <sys/types.h>
1060 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1061 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
1063 ac_cv_type_off_t
=yes
1071 echo "$ac_t""$ac_cv_type_off_t" 1>&6
1072 if test $ac_cv_type_off_t = no
; then
1073 cat >> confdefs.h
<<\EOF
1079 echo $ac_n "checking for size_t""... $ac_c" 1>&6
1080 echo "configure:1081: checking for size_t" >&5
1081 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
1082 echo $ac_n "(cached) $ac_c" 1>&6
1084 cat > conftest.
$ac_ext <<EOF
1085 #line 1086 "configure"
1086 #include "confdefs.h"
1087 #include <sys/types.h>
1093 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1094 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
1096 ac_cv_type_size_t
=yes
1099 ac_cv_type_size_t
=no
1104 echo "$ac_t""$ac_cv_type_size_t" 1>&6
1105 if test $ac_cv_type_size_t = no
; then
1106 cat >> confdefs.h
<<\EOF
1107 #define size_t unsigned
1112 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
1113 # for constant arguments. Useless!
1114 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
1115 echo "configure:1116: checking for working alloca.h" >&5
1116 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
1117 echo $ac_n "(cached) $ac_c" 1>&6
1119 cat > conftest.
$ac_ext <<EOF
1120 #line 1121 "configure"
1121 #include "confdefs.h"
1124 char *p = alloca(2 * sizeof(int));
1127 if { (eval echo configure
:1128: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1129 ac_cv_header_alloca_h
=yes
1131 echo "configure: failed program was:" >&5
1132 cat conftest.
$ac_ext >&5
1134 ac_cv_header_alloca_h
=no
1139 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
1140 if test $ac_cv_header_alloca_h = yes; then
1141 cat >> confdefs.h
<<\EOF
1142 #define HAVE_ALLOCA_H 1
1147 echo $ac_n "checking for alloca""... $ac_c" 1>&6
1148 echo "configure:1149: checking for alloca" >&5
1149 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
1150 echo $ac_n "(cached) $ac_c" 1>&6
1152 cat > conftest.
$ac_ext <<EOF
1153 #line 1154 "configure"
1154 #include "confdefs.h"
1157 # define alloca __builtin_alloca
1160 # include <malloc.h>
1161 # define alloca _alloca
1164 # include <alloca.h>
1169 # ifndef alloca /* predefined by HP cc +Olibcalls */
1178 char *p = (char *) alloca(1);
1181 if { (eval echo configure
:1182: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1183 ac_cv_func_alloca_works
=yes
1185 echo "configure: failed program was:" >&5
1186 cat conftest.
$ac_ext >&5
1188 ac_cv_func_alloca_works
=no
1193 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
1194 if test $ac_cv_func_alloca_works = yes; then
1195 cat >> confdefs.h
<<\EOF
1196 #define HAVE_ALLOCA 1
1201 if test $ac_cv_func_alloca_works = no
; then
1202 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
1203 # that cause trouble. Some versions do not even contain alloca or
1204 # contain a buggy version. If you still want to use their alloca,
1205 # use ar to extract alloca.o from them instead of compiling alloca.c.
1206 ALLOCA
=alloca.
${ac_objext}
1207 cat >> confdefs.h
<<\EOF
1212 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
1213 echo "configure:1214: checking whether alloca needs Cray hooks" >&5
1214 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
1215 echo $ac_n "(cached) $ac_c" 1>&6
1217 cat > conftest.
$ac_ext <<EOF
1218 #line 1219 "configure"
1219 #include "confdefs.h"
1220 #if defined(CRAY) && ! defined(CRAY2)
1227 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1228 egrep "webecray" >/dev
/null
2>&1; then
1239 echo "$ac_t""$ac_cv_os_cray" 1>&6
1240 if test $ac_cv_os_cray = yes; then
1241 for ac_func
in _getb67 GETB67 getb67
; do
1242 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1243 echo "configure:1244: checking for $ac_func" >&5
1244 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1245 echo $ac_n "(cached) $ac_c" 1>&6
1247 cat > conftest.
$ac_ext <<EOF
1248 #line 1249 "configure"
1249 #include "confdefs.h"
1250 /* System header to define __stub macros and hopefully few prototypes,
1251 which can conflict with char $ac_func(); below. */
1253 /* Override any gcc2 internal prototype to avoid an error. */
1254 /* We use char because int might match the return type of a gcc2
1255 builtin and then its argument prototype would still apply. */
1260 /* The GNU C library defines this for functions which it implements
1261 to always fail with ENOSYS. Some functions are actually named
1262 something starting with __ and the normal name is an alias. */
1263 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1271 if { (eval echo configure
:1272: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1273 eval "ac_cv_func_$ac_func=yes"
1275 echo "configure: failed program was:" >&5
1276 cat conftest.
$ac_ext >&5
1278 eval "ac_cv_func_$ac_func=no"
1283 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1284 echo "$ac_t""yes" 1>&6
1285 cat >> confdefs.h
<<EOF
1286 #define CRAY_STACKSEG_END $ac_func
1291 echo "$ac_t""no" 1>&6
1297 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
1298 echo "configure:1299: checking stack direction for C alloca" >&5
1299 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
1300 echo $ac_n "(cached) $ac_c" 1>&6
1302 if test "$cross_compiling" = yes; then
1303 ac_cv_c_stack_direction
=0
1305 cat > conftest.
$ac_ext <<EOF
1306 #line 1307 "configure"
1307 #include "confdefs.h"
1308 find_stack_direction ()
1310 static char *addr = 0;
1315 return find_stack_direction ();
1318 return (&dummy > addr) ? 1 : -1;
1322 exit (find_stack_direction() < 0);
1325 if { (eval echo configure
:1326: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1327 ac_cv_c_stack_direction
=1
1329 echo "configure: failed program was:" >&5
1330 cat conftest.
$ac_ext >&5
1332 ac_cv_c_stack_direction
=-1
1339 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
1340 cat >> confdefs.h
<<EOF
1341 #define STACK_DIRECTION $ac_cv_c_stack_direction
1346 for ac_hdr
in unistd.h
1348 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1349 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1350 echo "configure:1351: checking for $ac_hdr" >&5
1351 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1352 echo $ac_n "(cached) $ac_c" 1>&6
1354 cat > conftest.
$ac_ext <<EOF
1355 #line 1356 "configure"
1356 #include "confdefs.h"
1359 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1360 { (eval echo configure
:1361: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1361 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1362 if test -z "$ac_err"; then
1364 eval "ac_cv_header_$ac_safe=yes"
1367 echo "configure: failed program was:" >&5
1368 cat conftest.
$ac_ext >&5
1370 eval "ac_cv_header_$ac_safe=no"
1374 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1375 echo "$ac_t""yes" 1>&6
1376 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1377 cat >> confdefs.h
<<EOF
1378 #define $ac_tr_hdr 1
1382 echo "$ac_t""no" 1>&6
1386 for ac_func
in getpagesize
1388 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1389 echo "configure:1390: checking for $ac_func" >&5
1390 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1391 echo $ac_n "(cached) $ac_c" 1>&6
1393 cat > conftest.
$ac_ext <<EOF
1394 #line 1395 "configure"
1395 #include "confdefs.h"
1396 /* System header to define __stub macros and hopefully few prototypes,
1397 which can conflict with char $ac_func(); below. */
1399 /* Override any gcc2 internal prototype to avoid an error. */
1400 /* We use char because int might match the return type of a gcc2
1401 builtin and then its argument prototype would still apply. */
1406 /* The GNU C library defines this for functions which it implements
1407 to always fail with ENOSYS. Some functions are actually named
1408 something starting with __ and the normal name is an alias. */
1409 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1417 if { (eval echo configure
:1418: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1419 eval "ac_cv_func_$ac_func=yes"
1421 echo "configure: failed program was:" >&5
1422 cat conftest.
$ac_ext >&5
1424 eval "ac_cv_func_$ac_func=no"
1429 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1430 echo "$ac_t""yes" 1>&6
1431 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1432 cat >> confdefs.h
<<EOF
1433 #define $ac_tr_func 1
1437 echo "$ac_t""no" 1>&6
1441 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
1442 echo "configure:1443: checking for working mmap" >&5
1443 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
1444 echo $ac_n "(cached) $ac_c" 1>&6
1446 if test "$cross_compiling" = yes; then
1447 ac_cv_func_mmap_fixed_mapped
=no
1449 cat > conftest.
$ac_ext <<EOF
1450 #line 1451 "configure"
1451 #include "confdefs.h"
1453 /* Thanks to Mike Haertel and Jim Avera for this test.
1454 Here is a matrix of mmap possibilities:
1455 mmap private not fixed
1456 mmap private fixed at somewhere currently unmapped
1457 mmap private fixed at somewhere already mapped
1458 mmap shared not fixed
1459 mmap shared fixed at somewhere currently unmapped
1460 mmap shared fixed at somewhere already mapped
1461 For private mappings, we should verify that changes cannot be read()
1462 back from the file, nor mmap's back from the file at a different
1463 address. (There have been systems where private was not correctly
1464 implemented like the infamous i386 svr4.0, and systems where the
1465 VM page cache was not coherent with the filesystem buffer cache
1466 like early versions of FreeBSD and possibly contemporary NetBSD.)
1467 For shared mappings, we should conversely verify that changes get
1468 propogated back to all the places they're supposed to be.
1470 Grep wants private fixed already mapped.
1471 The main things grep needs to know about mmap are:
1472 * does it exist and is it safe to write into the mmap'd area
1473 * how to use it (BSD variants) */
1474 #include <sys/types.h>
1476 #include <sys/mman.h>
1478 /* This mess was copied from the GNU getpagesize.h. */
1479 #ifndef HAVE_GETPAGESIZE
1480 # ifdef HAVE_UNISTD_H
1481 # include <unistd.h>
1484 /* Assume that all systems that can run configure have sys/param.h. */
1485 # ifndef HAVE_SYS_PARAM_H
1486 # define HAVE_SYS_PARAM_H 1
1489 # ifdef _SC_PAGESIZE
1490 # define getpagesize() sysconf(_SC_PAGESIZE)
1491 # else /* no _SC_PAGESIZE */
1492 # ifdef HAVE_SYS_PARAM_H
1493 # include <sys/param.h>
1494 # ifdef EXEC_PAGESIZE
1495 # define getpagesize() EXEC_PAGESIZE
1496 # else /* no EXEC_PAGESIZE */
1498 # define getpagesize() NBPG * CLSIZE
1501 # endif /* no CLSIZE */
1502 # else /* no NBPG */
1504 # define getpagesize() NBPC
1505 # else /* no NBPC */
1507 # define getpagesize() PAGESIZE
1508 # endif /* PAGESIZE */
1509 # endif /* no NBPC */
1510 # endif /* no NBPG */
1511 # endif /* no EXEC_PAGESIZE */
1512 # else /* no HAVE_SYS_PARAM_H */
1513 # define getpagesize() 8192 /* punt totally */
1514 # endif /* no HAVE_SYS_PARAM_H */
1515 # endif /* no _SC_PAGESIZE */
1517 #endif /* no HAVE_GETPAGESIZE */
1520 extern "C" { void *malloc(unsigned); }
1528 char *data, *data2, *data3;
1532 pagesize = getpagesize();
1535 * First, make a file with some known garbage in it.
1537 data = malloc(pagesize);
1540 for (i = 0; i < pagesize; ++i)
1541 *(data + i) = rand();
1543 fd = creat("conftestmmap", 0600);
1546 if (write(fd, data, pagesize) != pagesize)
1551 * Next, try to mmap the file at a fixed address which
1552 * already has something else allocated at it. If we can,
1553 * also make sure that we see the same garbage.
1555 fd = open("conftestmmap", O_RDWR);
1558 data2 = malloc(2 * pagesize);
1561 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
1562 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
1563 MAP_PRIVATE | MAP_FIXED, fd, 0L))
1565 for (i = 0; i < pagesize; ++i)
1566 if (*(data + i) != *(data2 + i))
1570 * Finally, make sure that changes to the mapped area
1571 * do not percolate back to the file as seen by read().
1572 * (This is a bug on some variants of i386 svr4.0.)
1574 for (i = 0; i < pagesize; ++i)
1575 *(data2 + i) = *(data2 + i) + 1;
1576 data3 = malloc(pagesize);
1579 if (read(fd, data3, pagesize) != pagesize)
1581 for (i = 0; i < pagesize; ++i)
1582 if (*(data + i) != *(data3 + i))
1585 unlink("conftestmmap");
1590 if { (eval echo configure
:1591: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1592 ac_cv_func_mmap_fixed_mapped
=yes
1594 echo "configure: failed program was:" >&5
1595 cat conftest.
$ac_ext >&5
1597 ac_cv_func_mmap_fixed_mapped
=no
1604 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
1605 if test $ac_cv_func_mmap_fixed_mapped = yes; then
1606 cat >> confdefs.h
<<\EOF
1612 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
1613 echo "configure:1614: checking for Cygwin environment" >&5
1614 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
1615 echo $ac_n "(cached) $ac_c" 1>&6
1617 cat > conftest.
$ac_ext <<EOF
1618 #line 1619 "configure"
1619 #include "confdefs.h"
1624 #define __CYGWIN__ __CYGWIN32__
1629 if { (eval echo configure
:1630: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1633 echo "configure: failed program was:" >&5
1634 cat conftest.
$ac_ext >&5
1642 echo "$ac_t""$ac_cv_cygwin" 1>&6
1644 test "$ac_cv_cygwin" = yes && CYGWIN
=yes
1645 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
1646 echo "configure:1647: checking for mingw32 environment" >&5
1647 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
1648 echo $ac_n "(cached) $ac_c" 1>&6
1650 cat > conftest.
$ac_ext <<EOF
1651 #line 1652 "configure"
1652 #include "confdefs.h"
1658 if { (eval echo configure
:1659: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1662 echo "configure: failed program was:" >&5
1663 cat conftest.
$ac_ext >&5
1671 echo "$ac_t""$ac_cv_mingw32" 1>&6
1673 test "$ac_cv_mingw32" = yes && MINGW32
=yes
1675 # autoconf.info says this should be called right after AC_INIT.
1679 for ac_dir
in `cd $srcdir;pwd`/..
/..
$srcdir/`cd $srcdir;pwd`/..
/..
; do
1680 if test -f $ac_dir/install-sh
; then
1682 ac_install_sh
="$ac_aux_dir/install-sh -c"
1684 elif test -f $ac_dir/install.sh
; then
1686 ac_install_sh
="$ac_aux_dir/install.sh -c"
1690 if test -z "$ac_aux_dir"; then
1691 { echo "configure: error: can not find install-sh or install.sh in `cd $srcdir;pwd`/../.. $srcdir/`cd $srcdir;pwd`/../.." 1>&2; exit 1; }
1693 ac_config_guess
=$ac_aux_dir/config.guess
1694 ac_config_sub
=$ac_aux_dir/config.sub
1695 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
1698 # Do some error checking and defaulting for the host and target type.
1700 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
1703 # 1. You are not allowed to specify --host, --target, and nonopt at the
1705 # 2. Host defaults to nonopt.
1706 # 3. If nonopt is not specified, then host defaults to the current host,
1707 # as determined by config.guess.
1708 # 4. Target and build default to nonopt.
1709 # 5. If nonopt is not specified, then target and build default to host.
1711 # The aliases save the names the user supplied, while $host etc.
1712 # will get canonicalized.
1713 case $host---$target---$nonopt in
1714 NONE---
*---* |
*---NONE---* |
*---*---NONE) ;;
1715 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
1719 # Make sure we can run config.sub.
1720 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4
>/dev
/null
2>&1; then :
1721 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1724 echo $ac_n "checking host system type""... $ac_c" 1>&6
1725 echo "configure:1726: checking host system type" >&5
1728 case "$host_alias" in
1732 if host_alias
=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1733 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1735 *) host_alias
=$nonopt ;;
1739 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1740 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1741 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1742 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1743 echo "$ac_t""$host" 1>&6
1745 echo $ac_n "checking target system type""... $ac_c" 1>&6
1746 echo "configure:1747: checking target system type" >&5
1748 target_alias
=$target
1749 case "$target_alias" in
1752 NONE
) target_alias
=$host_alias ;;
1753 *) target_alias
=$nonopt ;;
1757 target
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
1758 target_cpu
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1759 target_vendor
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1760 target_os
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1761 echo "$ac_t""$target" 1>&6
1763 echo $ac_n "checking build system type""... $ac_c" 1>&6
1764 echo "configure:1765: checking build system type" >&5
1767 case "$build_alias" in
1770 NONE
) build_alias
=$host_alias ;;
1771 *) build_alias
=$nonopt ;;
1775 build
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1776 build_cpu
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1777 build_vendor
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1778 build_os
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1779 echo "$ac_t""$build" 1>&6
1781 test "$host_alias" != "$target_alias" &&
1782 test "$program_prefix$program_suffix$program_transform_name" = \
1784 program_prefix
=${target_alias}-
1786 if test "$program_transform_name" = s
,x
,x
,; then
1787 program_transform_name
=
1789 # Double any \ or $. echo might interpret backslashes.
1790 cat <<\EOF_SED
> conftestsed
1791 s
,\\,\\\\,g
; s
,\$
,$$
,g
1793 program_transform_name
="`echo $program_transform_name|sed -f conftestsed`"
1796 test "$program_prefix" != NONE
&&
1797 program_transform_name
="s,^,${program_prefix},; $program_transform_name"
1798 # Use a double $ so make ignores it.
1799 test "$program_suffix" != NONE
&&
1800 program_transform_name
="s,\$\$,${program_suffix},; $program_transform_name"
1802 # sed with no file args requires a program.
1803 test "$program_transform_name" = "" && program_transform_name
="s,x,x,"
1805 # Extract the first word of "gcc", so it can be a program name with args.
1806 set dummy gcc
; ac_word
=$2
1807 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1808 echo "configure:1809: checking for $ac_word" >&5
1809 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1810 echo $ac_n "(cached) $ac_c" 1>&6
1812 if test -n "$CC"; then
1813 ac_cv_prog_CC
="$CC" # Let the user override the test.
1815 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1817 for ac_dir
in $ac_dummy; do
1818 test -z "$ac_dir" && ac_dir
=.
1819 if test -f $ac_dir/$ac_word; then
1828 if test -n "$CC"; then
1829 echo "$ac_t""$CC" 1>&6
1831 echo "$ac_t""no" 1>&6
1834 if test -z "$CC"; then
1835 # Extract the first word of "cc", so it can be a program name with args.
1836 set dummy cc
; ac_word
=$2
1837 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1838 echo "configure:1839: checking for $ac_word" >&5
1839 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1840 echo $ac_n "(cached) $ac_c" 1>&6
1842 if test -n "$CC"; then
1843 ac_cv_prog_CC
="$CC" # Let the user override the test.
1845 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1848 for ac_dir
in $ac_dummy; do
1849 test -z "$ac_dir" && ac_dir
=.
1850 if test -f $ac_dir/$ac_word; then
1851 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1852 ac_prog_rejected
=yes
1860 if test $ac_prog_rejected = yes; then
1861 # We found a bogon in the path, so make sure we never use it.
1862 set dummy
$ac_cv_prog_CC
1864 if test $# -gt 0; then
1865 # We chose a different compiler from the bogus one.
1866 # However, it has the same basename, so the bogon will be chosen
1867 # first if we set CC to just the basename; use the full file name.
1869 set dummy
"$ac_dir/$ac_word" "$@"
1877 if test -n "$CC"; then
1878 echo "$ac_t""$CC" 1>&6
1880 echo "$ac_t""no" 1>&6
1883 if test -z "$CC"; then
1884 case "`uname -s`" in
1886 # Extract the first word of "cl", so it can be a program name with args.
1887 set dummy cl
; ac_word
=$2
1888 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1889 echo "configure:1890: checking for $ac_word" >&5
1890 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1891 echo $ac_n "(cached) $ac_c" 1>&6
1893 if test -n "$CC"; then
1894 ac_cv_prog_CC
="$CC" # Let the user override the test.
1896 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1898 for ac_dir
in $ac_dummy; do
1899 test -z "$ac_dir" && ac_dir
=.
1900 if test -f $ac_dir/$ac_word; then
1909 if test -n "$CC"; then
1910 echo "$ac_t""$CC" 1>&6
1912 echo "$ac_t""no" 1>&6
1917 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1920 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1921 echo "configure:1922: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1924 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1925 ac_cpp
='$CPP $CPPFLAGS'
1926 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1927 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1928 cross_compiling
=$ac_cv_prog_cc_cross
1930 cat > conftest.
$ac_ext << EOF
1932 #line 1933 "configure"
1933 #include "confdefs.h"
1937 if { (eval echo configure
:1938: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1938 ac_cv_prog_cc_works
=yes
1939 # If we can't run a trivial program, we are probably using a cross compiler.
1940 if (.
/conftest
; exit) 2>/dev
/null
; then
1941 ac_cv_prog_cc_cross
=no
1943 ac_cv_prog_cc_cross
=yes
1946 echo "configure: failed program was:" >&5
1947 cat conftest.
$ac_ext >&5
1948 ac_cv_prog_cc_works
=no
1952 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1953 ac_cpp
='$CPP $CPPFLAGS'
1954 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1955 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1956 cross_compiling
=$ac_cv_prog_cc_cross
1958 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1959 if test $ac_cv_prog_cc_works = no
; then
1960 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1962 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1963 echo "configure:1964: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1964 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1965 cross_compiling
=$ac_cv_prog_cc_cross
1967 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1968 echo "configure:1969: checking whether we are using GNU C" >&5
1969 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1970 echo $ac_n "(cached) $ac_c" 1>&6
1972 cat > conftest.c
<<EOF
1977 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:1978: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
1984 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1986 if test $ac_cv_prog_gcc = yes; then
1992 ac_test_CFLAGS
="${CFLAGS+set}"
1993 ac_save_CFLAGS
="$CFLAGS"
1995 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1996 echo "configure:1997: checking whether ${CC-cc} accepts -g" >&5
1997 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1998 echo $ac_n "(cached) $ac_c" 1>&6
2000 echo 'void f(){}' > conftest.c
2001 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2010 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
2011 if test "$ac_test_CFLAGS" = set; then
2012 CFLAGS
="$ac_save_CFLAGS"
2013 elif test $ac_cv_prog_cc_g = yes; then
2014 if test "$GCC" = yes; then
2020 if test "$GCC" = yes; then
2027 # Find a good install program. We prefer a C program (faster),
2028 # so one script is as good as another. But avoid the broken or
2029 # incompatible versions:
2030 # SysV /etc/install, /usr/sbin/install
2031 # SunOS /usr/etc/install
2032 # IRIX /sbin/install
2034 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2035 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2036 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2037 # ./install, which can be erroneously created by make from ./install.sh.
2038 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
2039 echo "configure:2040: checking for a BSD compatible install" >&5
2040 if test -z "$INSTALL"; then
2041 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
2042 echo $ac_n "(cached) $ac_c" 1>&6
2044 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
=":"
2045 for ac_dir
in $PATH; do
2046 # Account for people who put trailing slashes in PATH elements.
2048 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
2050 # OSF1 and SCO ODT 3.0 have their own names for install.
2051 # Don't use installbsd from OSF since it installs stuff as root
2053 for ac_prog
in ginstall scoinst
install; do
2054 if test -f $ac_dir/$ac_prog; then
2055 if test $ac_prog = install &&
2056 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
2057 # AIX install. It has an incompatible calling convention.
2060 ac_cv_path_install
="$ac_dir/$ac_prog -c"
2071 if test "${ac_cv_path_install+set}" = set; then
2072 INSTALL
="$ac_cv_path_install"
2074 # As a last resort, use the slow shell script. We don't cache a
2075 # path for INSTALL within a source directory, because that will
2076 # break other packages using the cache if that directory is
2077 # removed, or if the path is relative.
2078 INSTALL
="$ac_install_sh"
2081 echo "$ac_t""$INSTALL" 1>&6
2083 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2084 # It thinks the first close brace ends the variable substitution.
2085 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
2087 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
2089 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
2092 # Put a plausible default for CC_FOR_BUILD in Makefile.
2093 if test "x$cross_compiling" = "xno"; then
2094 CC_FOR_BUILD
='$(CC)'
2104 # Extract the first word of "ranlib", so it can be a program name with args.
2105 set dummy ranlib
; ac_word
=$2
2106 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2107 echo "configure:2108: checking for $ac_word" >&5
2108 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2109 echo $ac_n "(cached) $ac_c" 1>&6
2111 if test -n "$RANLIB"; then
2112 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
2114 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2116 for ac_dir
in $ac_dummy; do
2117 test -z "$ac_dir" && ac_dir
=.
2118 if test -f $ac_dir/$ac_word; then
2119 ac_cv_prog_RANLIB
="ranlib"
2124 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
2127 RANLIB
="$ac_cv_prog_RANLIB"
2128 if test -n "$RANLIB"; then
2129 echo "$ac_t""$RANLIB" 1>&6
2131 echo "$ac_t""no" 1>&6
2137 for ac_hdr
in argz.h limits.h locale.h nl_types.h malloc.h string.h \
2138 unistd.h values.h sys
/param.h
2140 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2141 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2142 echo "configure:2143: checking for $ac_hdr" >&5
2143 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2144 echo $ac_n "(cached) $ac_c" 1>&6
2146 cat > conftest.
$ac_ext <<EOF
2147 #line 2148 "configure"
2148 #include "confdefs.h"
2151 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2152 { (eval echo configure
:2153: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2153 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2154 if test -z "$ac_err"; then
2156 eval "ac_cv_header_$ac_safe=yes"
2159 echo "configure: failed program was:" >&5
2160 cat conftest.
$ac_ext >&5
2162 eval "ac_cv_header_$ac_safe=no"
2166 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2167 echo "$ac_t""yes" 1>&6
2168 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2169 cat >> confdefs.h
<<EOF
2170 #define $ac_tr_hdr 1
2174 echo "$ac_t""no" 1>&6
2178 for ac_func
in getcwd munmap putenv setenv setlocale strchr strcasecmp \
2179 __argz_count __argz_stringify __argz_next
2181 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2182 echo "configure:2183: checking for $ac_func" >&5
2183 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2184 echo $ac_n "(cached) $ac_c" 1>&6
2186 cat > conftest.
$ac_ext <<EOF
2187 #line 2188 "configure"
2188 #include "confdefs.h"
2189 /* System header to define __stub macros and hopefully few prototypes,
2190 which can conflict with char $ac_func(); below. */
2192 /* Override any gcc2 internal prototype to avoid an error. */
2193 /* We use char because int might match the return type of a gcc2
2194 builtin and then its argument prototype would still apply. */
2199 /* The GNU C library defines this for functions which it implements
2200 to always fail with ENOSYS. Some functions are actually named
2201 something starting with __ and the normal name is an alias. */
2202 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2210 if { (eval echo configure
:2211: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2212 eval "ac_cv_func_$ac_func=yes"
2214 echo "configure: failed program was:" >&5
2215 cat conftest.
$ac_ext >&5
2217 eval "ac_cv_func_$ac_func=no"
2222 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2223 echo "$ac_t""yes" 1>&6
2224 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2225 cat >> confdefs.h
<<EOF
2226 #define $ac_tr_func 1
2230 echo "$ac_t""no" 1>&6
2235 if test "${ac_cv_func_stpcpy+set}" != "set"; then
2236 for ac_func
in stpcpy
2238 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2239 echo "configure:2240: checking for $ac_func" >&5
2240 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2241 echo $ac_n "(cached) $ac_c" 1>&6
2243 cat > conftest.
$ac_ext <<EOF
2244 #line 2245 "configure"
2245 #include "confdefs.h"
2246 /* System header to define __stub macros and hopefully few prototypes,
2247 which can conflict with char $ac_func(); below. */
2249 /* Override any gcc2 internal prototype to avoid an error. */
2250 /* We use char because int might match the return type of a gcc2
2251 builtin and then its argument prototype would still apply. */
2256 /* The GNU C library defines this for functions which it implements
2257 to always fail with ENOSYS. Some functions are actually named
2258 something starting with __ and the normal name is an alias. */
2259 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2267 if { (eval echo configure
:2268: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2269 eval "ac_cv_func_$ac_func=yes"
2271 echo "configure: failed program was:" >&5
2272 cat conftest.
$ac_ext >&5
2274 eval "ac_cv_func_$ac_func=no"
2279 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2280 echo "$ac_t""yes" 1>&6
2281 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2282 cat >> confdefs.h
<<EOF
2283 #define $ac_tr_func 1
2287 echo "$ac_t""no" 1>&6
2292 if test "${ac_cv_func_stpcpy}" = "yes"; then
2293 cat >> confdefs.h
<<\EOF
2294 #define HAVE_STPCPY 1
2299 if test $ac_cv_header_locale_h = yes; then
2300 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
2301 echo "configure:2302: checking for LC_MESSAGES" >&5
2302 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
2303 echo $ac_n "(cached) $ac_c" 1>&6
2305 cat > conftest.
$ac_ext <<EOF
2306 #line 2307 "configure"
2307 #include "confdefs.h"
2313 if { (eval echo configure
:2314: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2315 am_cv_val_LC_MESSAGES
=yes
2317 echo "configure: failed program was:" >&5
2318 cat conftest.
$ac_ext >&5
2320 am_cv_val_LC_MESSAGES
=no
2325 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
2326 if test $am_cv_val_LC_MESSAGES = yes; then
2327 cat >> confdefs.h
<<\EOF
2328 #define HAVE_LC_MESSAGES 1
2333 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
2334 echo "configure:2335: checking whether NLS is requested" >&5
2335 # Check whether --enable-nls or --disable-nls was given.
2336 if test "${enable_nls+set}" = set; then
2337 enableval
="$enable_nls"
2343 echo "$ac_t""$USE_NLS" 1>&6
2346 USE_INCLUDED_LIBINTL
=no
2348 if test "$USE_NLS" = "yes"; then
2349 cat >> confdefs.h
<<\EOF
2350 #define ENABLE_NLS 1
2353 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
2354 echo "configure:2355: checking whether included gettext is requested" >&5
2355 # Check whether --with-included-gettext or --without-included-gettext was given.
2356 if test "${with_included_gettext+set}" = set; then
2357 withval
="$with_included_gettext"
2358 nls_cv_force_use_gnu_gettext
=$withval
2360 nls_cv_force_use_gnu_gettext
=no
2363 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
2365 nls_cv_use_gnu_gettext
="$nls_cv_force_use_gnu_gettext"
2366 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
2368 nls_cv_header_libgt
=
2371 ac_safe
=`echo "libintl.h" | sed 'y%./+-%__p_%'`
2372 echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
2373 echo "configure:2374: checking for libintl.h" >&5
2374 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2375 echo $ac_n "(cached) $ac_c" 1>&6
2377 cat > conftest.
$ac_ext <<EOF
2378 #line 2379 "configure"
2379 #include "confdefs.h"
2380 #include <libintl.h>
2382 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2383 { (eval echo configure
:2384: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2384 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2385 if test -z "$ac_err"; then
2387 eval "ac_cv_header_$ac_safe=yes"
2390 echo "configure: failed program was:" >&5
2391 cat conftest.
$ac_ext >&5
2393 eval "ac_cv_header_$ac_safe=no"
2397 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2398 echo "$ac_t""yes" 1>&6
2399 echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6
2400 echo "configure:2401: checking for gettext in libc" >&5
2401 if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then
2402 echo $ac_n "(cached) $ac_c" 1>&6
2404 cat > conftest.
$ac_ext <<EOF
2405 #line 2406 "configure"
2406 #include "confdefs.h"
2407 #include <libintl.h>
2409 return (int) gettext ("")
2412 if { (eval echo configure
:2413: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2414 gt_cv_func_gettext_libc
=yes
2416 echo "configure: failed program was:" >&5
2417 cat conftest.
$ac_ext >&5
2419 gt_cv_func_gettext_libc
=no
2424 echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6
2426 if test "$gt_cv_func_gettext_libc" != "yes"; then
2427 echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6
2428 echo "configure:2429: checking for bindtextdomain in -lintl" >&5
2429 ac_lib_var
=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'`
2430 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2431 echo $ac_n "(cached) $ac_c" 1>&6
2433 ac_save_LIBS
="$LIBS"
2435 cat > conftest.
$ac_ext <<EOF
2436 #line 2437 "configure"
2437 #include "confdefs.h"
2438 /* Override any gcc2 internal prototype to avoid an error. */
2439 /* We use char because int might match the return type of a gcc2
2440 builtin and then its argument prototype would still apply. */
2441 char bindtextdomain();
2447 if { (eval echo configure
:2448: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2449 eval "ac_cv_lib_$ac_lib_var=yes"
2451 echo "configure: failed program was:" >&5
2452 cat conftest.
$ac_ext >&5
2454 eval "ac_cv_lib_$ac_lib_var=no"
2457 LIBS
="$ac_save_LIBS"
2460 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2461 echo "$ac_t""yes" 1>&6
2462 echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6
2463 echo "configure:2464: checking for gettext in libintl" >&5
2464 if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then
2465 echo $ac_n "(cached) $ac_c" 1>&6
2467 cat > conftest.
$ac_ext <<EOF
2468 #line 2469 "configure"
2469 #include "confdefs.h"
2472 return (int) gettext ("")
2475 if { (eval echo configure
:2476: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2477 gt_cv_func_gettext_libintl
=yes
2479 echo "configure: failed program was:" >&5
2480 cat conftest.
$ac_ext >&5
2482 gt_cv_func_gettext_libintl
=no
2487 echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6
2489 echo "$ac_t""no" 1>&6
2494 if test "$gt_cv_func_gettext_libc" = "yes" \
2495 ||
test "$gt_cv_func_gettext_libintl" = "yes"; then
2496 cat >> confdefs.h
<<\EOF
2497 #define HAVE_GETTEXT 1
2500 # Extract the first word of "msgfmt", so it can be a program name with args.
2501 set dummy msgfmt
; ac_word
=$2
2502 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2503 echo "configure:2504: checking for $ac_word" >&5
2504 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2505 echo $ac_n "(cached) $ac_c" 1>&6
2509 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
2512 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
2513 for ac_dir
in $PATH; do
2514 test -z "$ac_dir" && ac_dir
=.
2515 if test -f $ac_dir/$ac_word; then
2516 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
2517 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
2523 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
="no"
2527 MSGFMT
="$ac_cv_path_MSGFMT"
2528 if test -n "$MSGFMT"; then
2529 echo "$ac_t""$MSGFMT" 1>&6
2531 echo "$ac_t""no" 1>&6
2533 if test "$MSGFMT" != "no"; then
2534 for ac_func
in dcgettext
2536 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2537 echo "configure:2538: checking for $ac_func" >&5
2538 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2539 echo $ac_n "(cached) $ac_c" 1>&6
2541 cat > conftest.
$ac_ext <<EOF
2542 #line 2543 "configure"
2543 #include "confdefs.h"
2544 /* System header to define __stub macros and hopefully few prototypes,
2545 which can conflict with char $ac_func(); below. */
2547 /* Override any gcc2 internal prototype to avoid an error. */
2548 /* We use char because int might match the return type of a gcc2
2549 builtin and then its argument prototype would still apply. */
2554 /* The GNU C library defines this for functions which it implements
2555 to always fail with ENOSYS. Some functions are actually named
2556 something starting with __ and the normal name is an alias. */
2557 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2565 if { (eval echo configure
:2566: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2567 eval "ac_cv_func_$ac_func=yes"
2569 echo "configure: failed program was:" >&5
2570 cat conftest.
$ac_ext >&5
2572 eval "ac_cv_func_$ac_func=no"
2577 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2578 echo "$ac_t""yes" 1>&6
2579 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2580 cat >> confdefs.h
<<EOF
2581 #define $ac_tr_func 1
2585 echo "$ac_t""no" 1>&6
2589 # Extract the first word of "gmsgfmt", so it can be a program name with args.
2590 set dummy gmsgfmt
; ac_word
=$2
2591 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2592 echo "configure:2593: checking for $ac_word" >&5
2593 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2594 echo $ac_n "(cached) $ac_c" 1>&6
2598 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
2601 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a dos path.
2604 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2606 for ac_dir
in $ac_dummy; do
2607 test -z "$ac_dir" && ac_dir
=.
2608 if test -f $ac_dir/$ac_word; then
2609 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
2614 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
2618 GMSGFMT
="$ac_cv_path_GMSGFMT"
2619 if test -n "$GMSGFMT"; then
2620 echo "$ac_t""$GMSGFMT" 1>&6
2622 echo "$ac_t""no" 1>&6
2625 # Extract the first word of "xgettext", so it can be a program name with args.
2626 set dummy xgettext
; ac_word
=$2
2627 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2628 echo "configure:2629: checking for $ac_word" >&5
2629 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
2630 echo $ac_n "(cached) $ac_c" 1>&6
2634 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
2637 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
2638 for ac_dir
in $PATH; do
2639 test -z "$ac_dir" && ac_dir
=.
2640 if test -f $ac_dir/$ac_word; then
2641 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
2642 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
2648 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
2652 XGETTEXT
="$ac_cv_path_XGETTEXT"
2653 if test -n "$XGETTEXT"; then
2654 echo "$ac_t""$XGETTEXT" 1>&6
2656 echo "$ac_t""no" 1>&6
2659 cat > conftest.
$ac_ext <<EOF
2660 #line 2661 "configure"
2661 #include "confdefs.h"
2664 extern int _nl_msg_cat_cntr;
2665 return _nl_msg_cat_cntr
2668 if { (eval echo configure
:2669: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2673 echo "configure: failed program was:" >&5
2674 cat conftest.
$ac_ext >&5
2685 echo "$ac_t""no" 1>&6
2690 if test "$CATOBJEXT" = "NONE"; then
2691 nls_cv_use_gnu_gettext
=yes
2695 if test "$nls_cv_use_gnu_gettext" = "yes"; then
2696 INTLOBJS
="\$(GETTOBJS)"
2697 # Extract the first word of "msgfmt", so it can be a program name with args.
2698 set dummy msgfmt
; ac_word
=$2
2699 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2700 echo "configure:2701: checking for $ac_word" >&5
2701 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2702 echo $ac_n "(cached) $ac_c" 1>&6
2706 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
2709 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
2710 for ac_dir
in $PATH; do
2711 test -z "$ac_dir" && ac_dir
=.
2712 if test -f $ac_dir/$ac_word; then
2713 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
2714 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
2720 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
="msgfmt"
2724 MSGFMT
="$ac_cv_path_MSGFMT"
2725 if test -n "$MSGFMT"; then
2726 echo "$ac_t""$MSGFMT" 1>&6
2728 echo "$ac_t""no" 1>&6
2731 # Extract the first word of "gmsgfmt", so it can be a program name with args.
2732 set dummy gmsgfmt
; ac_word
=$2
2733 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2734 echo "configure:2735: checking for $ac_word" >&5
2735 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2736 echo $ac_n "(cached) $ac_c" 1>&6
2740 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
2743 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a dos path.
2746 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2748 for ac_dir
in $ac_dummy; do
2749 test -z "$ac_dir" && ac_dir
=.
2750 if test -f $ac_dir/$ac_word; then
2751 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
2756 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
2760 GMSGFMT
="$ac_cv_path_GMSGFMT"
2761 if test -n "$GMSGFMT"; then
2762 echo "$ac_t""$GMSGFMT" 1>&6
2764 echo "$ac_t""no" 1>&6
2767 # Extract the first word of "xgettext", so it can be a program name with args.
2768 set dummy xgettext
; ac_word
=$2
2769 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2770 echo "configure:2771: checking for $ac_word" >&5
2771 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
2772 echo $ac_n "(cached) $ac_c" 1>&6
2776 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
2779 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
2780 for ac_dir
in $PATH; do
2781 test -z "$ac_dir" && ac_dir
=.
2782 if test -f $ac_dir/$ac_word; then
2783 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
2784 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
2790 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
2794 XGETTEXT
="$ac_cv_path_XGETTEXT"
2795 if test -n "$XGETTEXT"; then
2796 echo "$ac_t""$XGETTEXT" 1>&6
2798 echo "$ac_t""no" 1>&6
2802 USE_INCLUDED_LIBINTL
=yes
2806 INTLDEPS
='$(top_builddir)/../intl/libintl.a'
2808 LIBS
=`echo $LIBS | sed -e 's/-lintl//'`
2809 nls_cv_header_intl
=libintl.h
2810 nls_cv_header_libgt
=libgettext.h
2813 if test "$XGETTEXT" != ":"; then
2814 if $XGETTEXT --omit-header /dev
/null
2> /dev
/null
; then
2817 echo "$ac_t""found xgettext programs is not GNU xgettext; ignore it" 1>&6
2822 # We need to process the po/ directory.
2826 nls_cv_header_intl
=libintl.h
2827 nls_cv_header_libgt
=libgettext.h
2830 # If this is used in GNU gettext we have to set USE_NLS to `yes'
2831 # because some of the sources are only built for this goal.
2832 if test "$PACKAGE" = gettext; then
2834 USE_INCLUDED_LIBINTL
=yes
2837 for lang
in $ALL_LINGUAS; do
2838 GMOFILES
="$GMOFILES $lang.gmo"
2839 POFILES
="$POFILES $lang.po"
2855 if test "x$CATOBJEXT" != "x"; then
2856 if test "x$ALL_LINGUAS" = "x"; then
2859 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
2860 echo "configure:2861: checking for catalogs to be installed" >&5
2862 for lang
in ${LINGUAS=$ALL_LINGUAS}; do
2863 case "$ALL_LINGUAS" in
2864 *$lang*) NEW_LINGUAS
="$NEW_LINGUAS $lang" ;;
2867 LINGUAS
=$NEW_LINGUAS
2868 echo "$ac_t""$LINGUAS" 1>&6
2871 if test -n "$LINGUAS"; then
2872 for lang
in $LINGUAS; do CATALOGS
="$CATALOGS $lang$CATOBJEXT"; done
2876 if test $ac_cv_header_locale_h = yes; then
2877 INCLUDE_LOCALE_H
="#include <locale.h>"
2880 /* The system does not provide the header <locale.h>. Take care yourself. */"
2884 if test -f $srcdir/po2tbl.
sed.
in; then
2885 if test "$CATOBJEXT" = ".cat"; then
2886 ac_safe
=`echo "linux/version.h" | sed 'y%./+-%__p_%'`
2887 echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6
2888 echo "configure:2889: checking for linux/version.h" >&5
2889 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2890 echo $ac_n "(cached) $ac_c" 1>&6
2892 cat > conftest.
$ac_ext <<EOF
2893 #line 2894 "configure"
2894 #include "confdefs.h"
2895 #include <linux/version.h>
2897 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2898 { (eval echo configure
:2899: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2899 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2900 if test -z "$ac_err"; then
2902 eval "ac_cv_header_$ac_safe=yes"
2905 echo "configure: failed program was:" >&5
2906 cat conftest.
$ac_ext >&5
2908 eval "ac_cv_header_$ac_safe=no"
2912 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2913 echo "$ac_t""yes" 1>&6
2916 echo "$ac_t""no" 1>&6
2921 sed -e '/^#/d' $srcdir/$msgformat-msg.
sed > po2msg.
sed
2923 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
2924 $srcdir/po2tbl.
sed.
in > po2tbl.
sed
2927 if test "$PACKAGE" = "gettext"; then
2937 MKINSTALLDIRS
="\$(srcdir)/../../mkinstalldirs"
2943 if test -d $srcdir/po
; then
2944 test -d po || mkdir po
2945 if test "x$srcdir" != "x."; then
2946 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
2947 posrcprefix
="$srcdir/"
2949 posrcprefix
="../$srcdir/"
2955 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
2956 < $srcdir/po
/POTFILES.
in > po
/POTFILES
2960 # Check for common headers.
2961 # FIXME: Seems to me this can cause problems for i386-windows hosts.
2962 # At one point there were hardcoded AC_DEFINE's if ${host} = i386-*-windows*.
2963 for ac_hdr
in stdlib.h string.h
strings.h unistd.h
time.h
2965 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2966 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2967 echo "configure:2968: checking for $ac_hdr" >&5
2968 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2969 echo $ac_n "(cached) $ac_c" 1>&6
2971 cat > conftest.
$ac_ext <<EOF
2972 #line 2973 "configure"
2973 #include "confdefs.h"
2976 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2977 { (eval echo configure
:2978: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2978 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2979 if test -z "$ac_err"; then
2981 eval "ac_cv_header_$ac_safe=yes"
2984 echo "configure: failed program was:" >&5
2985 cat conftest.
$ac_ext >&5
2987 eval "ac_cv_header_$ac_safe=no"
2991 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2992 echo "$ac_t""yes" 1>&6
2993 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2994 cat >> confdefs.h
<<EOF
2995 #define $ac_tr_hdr 1
2999 echo "$ac_t""no" 1>&6
3003 for ac_hdr
in sys
/time.h sys
/resource.h
3005 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3006 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3007 echo "configure:3008: checking for $ac_hdr" >&5
3008 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3009 echo $ac_n "(cached) $ac_c" 1>&6
3011 cat > conftest.
$ac_ext <<EOF
3012 #line 3013 "configure"
3013 #include "confdefs.h"
3016 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3017 { (eval echo configure
:3018: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3018 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3019 if test -z "$ac_err"; then
3021 eval "ac_cv_header_$ac_safe=yes"
3024 echo "configure: failed program was:" >&5
3025 cat conftest.
$ac_ext >&5
3027 eval "ac_cv_header_$ac_safe=no"
3031 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3032 echo "$ac_t""yes" 1>&6
3033 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3034 cat >> confdefs.h
<<EOF
3035 #define $ac_tr_hdr 1
3039 echo "$ac_t""no" 1>&6
3043 for ac_hdr
in fcntl.h fpu_control.h
3045 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3046 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3047 echo "configure:3048: checking for $ac_hdr" >&5
3048 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3049 echo $ac_n "(cached) $ac_c" 1>&6
3051 cat > conftest.
$ac_ext <<EOF
3052 #line 3053 "configure"
3053 #include "confdefs.h"
3056 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3057 { (eval echo configure
:3058: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3058 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3059 if test -z "$ac_err"; then
3061 eval "ac_cv_header_$ac_safe=yes"
3064 echo "configure: failed program was:" >&5
3065 cat conftest.
$ac_ext >&5
3067 eval "ac_cv_header_$ac_safe=no"
3071 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3072 echo "$ac_t""yes" 1>&6
3073 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3074 cat >> confdefs.h
<<EOF
3075 #define $ac_tr_hdr 1
3079 echo "$ac_t""no" 1>&6
3083 for ac_hdr
in dlfcn.h errno.h sys
/stat.h
3085 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3086 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3087 echo "configure:3088: checking for $ac_hdr" >&5
3088 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3089 echo $ac_n "(cached) $ac_c" 1>&6
3091 cat > conftest.
$ac_ext <<EOF
3092 #line 3093 "configure"
3093 #include "confdefs.h"
3096 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3097 { (eval echo configure
:3098: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3098 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3099 if test -z "$ac_err"; then
3101 eval "ac_cv_header_$ac_safe=yes"
3104 echo "configure: failed program was:" >&5
3105 cat conftest.
$ac_ext >&5
3107 eval "ac_cv_header_$ac_safe=no"
3111 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3112 echo "$ac_t""yes" 1>&6
3113 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3114 cat >> confdefs.h
<<EOF
3115 #define $ac_tr_hdr 1
3119 echo "$ac_t""no" 1>&6
3123 for ac_func
in getrusage
time sigaction __setfpucw
3125 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3126 echo "configure:3127: checking for $ac_func" >&5
3127 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3128 echo $ac_n "(cached) $ac_c" 1>&6
3130 cat > conftest.
$ac_ext <<EOF
3131 #line 3132 "configure"
3132 #include "confdefs.h"
3133 /* System header to define __stub macros and hopefully few prototypes,
3134 which can conflict with char $ac_func(); below. */
3136 /* Override any gcc2 internal prototype to avoid an error. */
3137 /* We use char because int might match the return type of a gcc2
3138 builtin and then its argument prototype would still apply. */
3143 /* The GNU C library defines this for functions which it implements
3144 to always fail with ENOSYS. Some functions are actually named
3145 something starting with __ and the normal name is an alias. */
3146 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3154 if { (eval echo configure
:3155: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3156 eval "ac_cv_func_$ac_func=yes"
3158 echo "configure: failed program was:" >&5
3159 cat conftest.
$ac_ext >&5
3161 eval "ac_cv_func_$ac_func=no"
3166 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3167 echo "$ac_t""yes" 1>&6
3168 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3169 cat >> confdefs.h
<<EOF
3170 #define $ac_tr_func 1
3174 echo "$ac_t""no" 1>&6
3179 # Check for socket libraries
3180 echo $ac_n "checking for bind in -lsocket""... $ac_c" 1>&6
3181 echo "configure:3182: checking for bind in -lsocket" >&5
3182 ac_lib_var
=`echo socket'_'bind | sed 'y%./+-%__p_%'`
3183 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3184 echo $ac_n "(cached) $ac_c" 1>&6
3186 ac_save_LIBS
="$LIBS"
3187 LIBS
="-lsocket $LIBS"
3188 cat > conftest.
$ac_ext <<EOF
3189 #line 3190 "configure"
3190 #include "confdefs.h"
3191 /* Override any gcc2 internal prototype to avoid an error. */
3192 /* We use char because int might match the return type of a gcc2
3193 builtin and then its argument prototype would still apply. */
3200 if { (eval echo configure
:3201: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3202 eval "ac_cv_lib_$ac_lib_var=yes"
3204 echo "configure: failed program was:" >&5
3205 cat conftest.
$ac_ext >&5
3207 eval "ac_cv_lib_$ac_lib_var=no"
3210 LIBS
="$ac_save_LIBS"
3213 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3214 echo "$ac_t""yes" 1>&6
3215 ac_tr_lib
=HAVE_LIB
`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3216 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3217 cat >> confdefs.h
<<EOF
3218 #define $ac_tr_lib 1
3221 LIBS
="-lsocket $LIBS"
3224 echo "$ac_t""no" 1>&6
3227 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
3228 echo "configure:3229: checking for gethostbyname in -lnsl" >&5
3229 ac_lib_var
=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
3230 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3231 echo $ac_n "(cached) $ac_c" 1>&6
3233 ac_save_LIBS
="$LIBS"
3235 cat > conftest.
$ac_ext <<EOF
3236 #line 3237 "configure"
3237 #include "confdefs.h"
3238 /* Override any gcc2 internal prototype to avoid an error. */
3239 /* We use char because int might match the return type of a gcc2
3240 builtin and then its argument prototype would still apply. */
3241 char gethostbyname();
3247 if { (eval echo configure
:3248: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3249 eval "ac_cv_lib_$ac_lib_var=yes"
3251 echo "configure: failed program was:" >&5
3252 cat conftest.
$ac_ext >&5
3254 eval "ac_cv_lib_$ac_lib_var=no"
3257 LIBS
="$ac_save_LIBS"
3260 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3261 echo "$ac_t""yes" 1>&6
3262 ac_tr_lib
=HAVE_LIB
`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3263 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3264 cat >> confdefs.h
<<EOF
3265 #define $ac_tr_lib 1
3271 echo "$ac_t""no" 1>&6
3275 .
${srcdir}/..
/..
/bfd
/configure.
host
3279 USE_MAINTAINER_MODE
=no
3280 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
3281 if test "${enable_maintainer_mode+set}" = set; then
3282 enableval
="$enable_maintainer_mode"
3283 case "${enableval}" in
3284 yes) MAINT
="" USE_MAINTAINER_MODE
=yes ;;
3286 *) { echo "configure: error: "--enable-maintainer-mode does not take a value
"" 1>&2; exit 1; }; MAINT
="#" ;;
3288 if test x
"$silent" != x
"yes" && test x
"$MAINT" = x
""; then
3289 echo "Setting maintainer mode" 6>&1
3297 # Check whether --enable-sim-bswap or --disable-sim-bswap was given.
3298 if test "${enable_sim_bswap+set}" = set; then
3299 enableval
="$enable_sim_bswap"
3300 case "${enableval}" in
3301 yes) sim_bswap
="-DWITH_BSWAP=1 -DUSE_BSWAP=1";;
3302 no
) sim_bswap
="-DWITH_BSWAP=0";;
3303 *) { echo "configure: error: "--enable-sim-bswap does not take a value
"" 1>&2; exit 1; }; sim_bswap
="";;
3305 if test x
"$silent" != x
"yes" && test x
"$sim_bswap" != x
""; then
3306 echo "Setting bswap flags = $sim_bswap" 6>&1
3314 # Check whether --enable-sim-cflags or --disable-sim-cflags was given.
3315 if test "${enable_sim_cflags+set}" = set; then
3316 enableval
="$enable_sim_cflags"
3317 case "${enableval}" in
3318 yes) sim_cflags
="-O2 -fomit-frame-pointer";;
3319 trace
) { echo "configure: error: "Please use
--enable-sim-debug instead.
"" 1>&2; exit 1; }; sim_cflags
="";;
3321 *) sim_cflags
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
3323 if test x
"$silent" != x
"yes" && test x
"$sim_cflags" != x
""; then
3324 echo "Setting sim cflags = $sim_cflags" 6>&1
3332 # Check whether --enable-sim-debug or --disable-sim-debug was given.
3333 if test "${enable_sim_debug+set}" = set; then
3334 enableval
="$enable_sim_debug"
3335 case "${enableval}" in
3336 yes) sim_debug
="-DDEBUG=7 -DWITH_DEBUG=7";;
3337 no
) sim_debug
="-DDEBUG=0 -DWITH_DEBUG=0";;
3338 *) sim_debug
="-DDEBUG='(${enableval})' -DWITH_DEBUG='(${enableval})'";;
3340 if test x
"$silent" != x
"yes" && test x
"$sim_debug" != x
""; then
3341 echo "Setting sim debug = $sim_debug" 6>&1
3349 # Check whether --enable-sim-stdio or --disable-sim-stdio was given.
3350 if test "${enable_sim_stdio+set}" = set; then
3351 enableval
="$enable_sim_stdio"
3352 case "${enableval}" in
3353 yes) sim_stdio
="-DWITH_STDIO=DO_USE_STDIO";;
3354 no
) sim_stdio
="-DWITH_STDIO=DONT_USE_STDIO";;
3355 *) { echo "configure: error: "Unknown value
$enableval passed to
--enable-sim-stdio"" 1>&2; exit 1; }; sim_stdio
="";;
3357 if test x
"$silent" != x
"yes" && test x
"$sim_stdio" != x
""; then
3358 echo "Setting stdio flags = $sim_stdio" 6>&1
3366 # Check whether --enable-sim-trace or --disable-sim-trace was given.
3367 if test "${enable_sim_trace+set}" = set; then
3368 enableval
="$enable_sim_trace"
3369 case "${enableval}" in
3370 yes) sim_trace
="-DTRACE=1 -DWITH_TRACE=-1";;
3371 no
) sim_trace
="-DTRACE=0 -DWITH_TRACE=0";;
3373 sim_trace
="-DTRACE='(${enableval})' -DWITH_TRACE='(${enableval})'";;
3376 for x
in `echo "$enableval" | sed -e "s/,/ /g"`; do
3377 if test x
"$sim_trace" = x
; then
3378 sim_trace
="-DWITH_TRACE='(TRACE_$x"
3380 sim_trace
="${sim_trace}|TRACE_$x"
3383 sim_trace
="$sim_trace)'" ;;
3385 if test x
"$silent" != x
"yes" && test x
"$sim_trace" != x
""; then
3386 echo "Setting sim trace = $sim_trace" 6>&1
3394 # Check whether --enable-sim-profile or --disable-sim-profile was given.
3395 if test "${enable_sim_profile+set}" = set; then
3396 enableval
="$enable_sim_profile"
3397 case "${enableval}" in
3398 yes) sim_profile
="-DPROFILE=1 -DWITH_PROFILE=-1";;
3399 no
) sim_profile
="-DPROFILE=0 -DWITH_PROFILE=0";;
3401 sim_profile
="-DPROFILE='(${enableval})' -DWITH_PROFILE='(${enableval})'";;
3404 for x
in `echo "$enableval" | sed -e "s/,/ /g"`; do
3405 if test x
"$sim_profile" = x
; then
3406 sim_profile
="-DWITH_PROFILE='(PROFILE_$x"
3408 sim_profile
="${sim_profile}|PROFILE_$x"
3411 sim_profile
="$sim_profile)'" ;;
3413 if test x
"$silent" != x
"yes" && test x
"$sim_profile" != x
""; then
3414 echo "Setting sim profile = $sim_profile" 6>&1
3417 sim_profile
="-DPROFILE=1 -DWITH_PROFILE=-1"
3422 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
3423 echo "configure:3424: checking return type of signal handlers" >&5
3424 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
3425 echo $ac_n "(cached) $ac_c" 1>&6
3427 cat > conftest.
$ac_ext <<EOF
3428 #line 3429 "configure"
3429 #include "confdefs.h"
3430 #include <sys/types.h>
3436 extern "C" void (*signal (int, void (*)(int)))(int);
3438 void (*signal ()) ();
3445 if { (eval echo configure
:3446: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3447 ac_cv_type_signal
=void
3449 echo "configure: failed program was:" >&5
3450 cat conftest.
$ac_ext >&5
3452 ac_cv_type_signal
=int
3457 echo "$ac_t""$ac_cv_type_signal" 1>&6
3458 cat >> confdefs.h
<<EOF
3459 #define RETSIGTYPE $ac_cv_type_signal
3466 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
3467 echo "configure:3468: checking for executable suffix" >&5
3468 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
3469 echo $ac_n "(cached) $ac_c" 1>&6
3471 if test "$CYGWIN" = yes ||
test "$MINGW32" = yes; then
3475 echo 'int main () { return 0; }' > conftest.
$ac_ext
3477 if { (eval echo configure
:3478: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
3478 for file in conftest.
*; do
3480 *.c |
*.o |
*.obj |
*.ilk |
*.pdb
) ;;
3481 *) ac_cv_exeext
=`echo $file | sed -e s/conftest//` ;;
3485 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
3488 test x
"${ac_cv_exeext}" = x
&& ac_cv_exeext
=no
3493 test x
"${ac_cv_exeext}" != xno
&& EXEEXT
=${ac_cv_exeext}
3494 echo "$ac_t""${ac_cv_exeext}" 1>&6
3501 sim_link_links
=tconfig.h
3502 if test -f ${srcdir}/tconfig.
in
3504 sim_link_files
=tconfig.
in
3506 sim_link_files
=..
/common
/tconfig.
in
3509 # targ-vals.def points to the libc macro description file.
3511 *-*-*) TARG_VALS_DEF
=..
/common
/nltvals.def
;;
3513 sim_link_files
="${sim_link_files} ${TARG_VALS_DEF}"
3514 sim_link_links
="${sim_link_links} targ-vals.def"
3519 default_sim_inline
=""
3520 # Check whether --enable-sim-inline or --disable-sim-inline was given.
3521 if test "${enable_sim_inline+set}" = set; then
3522 enableval
="$enable_sim_inline"
3524 case "$enableval" in
3525 no
) sim_inline
="-DDEFAULT_INLINE=0";;
3526 0) sim_inline
="-DDEFAULT_INLINE=0";;
3527 yes |
2) sim_inline
="-DDEFAULT_INLINE=ALL_C_INLINE";;
3528 1) sim_inline
="-DDEFAULT_INLINE=INLINE_LOCALS";;
3529 *) for x
in `echo "$enableval" | sed -e "s/,/ /g"`; do
3532 *_INLINE
=*) new_flag
="-D$x";;
3533 *=*) new_flag
=`echo "$x" | sed -e "s/=/_INLINE=/" -e "s/^/-D/"`;;
3534 *_INLINE
) new_flag
="-D$x=ALL_C_INLINE";;
3535 *) new_flag
="-D$x""_INLINE=ALL_C_INLINE";;
3537 if test x
"$sim_inline" = x
""; then
3538 sim_inline
="$new_flag"
3540 sim_inline
="$sim_inline $new_flag"
3544 if test x
"$silent" != x
"yes" && test x
"$sim_inline" != x
""; then
3545 echo "Setting inline flags = $sim_inline" 6>&1
3549 if test "x$cross_compiling" = "xno"; then
3550 if test x
"$GCC" != "x" -a x
"${default_sim_inline}" != "x" ; then
3551 sim_inline
="${default_sim_inline}"
3552 if test x
"$silent" != x
"yes"; then
3553 echo "Setting inline flags = $sim_inline" 6>&1
3559 sim_inline
="-DDEFAULT_INLINE=0"
3563 wire_alignment
="NONSTRICT_ALIGNMENT"
3564 default_alignment
=""
3566 # Check whether --enable-sim-alignment or --disable-sim-alignment was given.
3567 if test "${enable_sim_alignment+set}" = set; then
3568 enableval
="$enable_sim_alignment"
3569 case "${enableval}" in
3570 strict | STRICT
) sim_alignment
="-DWITH_ALIGNMENT=STRICT_ALIGNMENT";;
3571 nonstrict | NONSTRICT
) sim_alignment
="-DWITH_ALIGNMENT=NONSTRICT_ALIGNMENT";;
3572 forced | FORCED
) sim_alignment
="-DWITH_ALIGNMENT=FORCED_ALIGNMENT";;
3573 yes) if test x
"$wire_alignment" != x
; then
3574 sim_alignment
="-DWITH_ALIGNMENT=${wire_alignment}"
3576 if test x
"$default_alignment" != x
; then
3577 sim_alignment
="-DWITH_ALIGNMENT=${default_alignment}"
3579 echo "No hard-wired alignment for target $target" 1>&6
3580 sim_alignment
="-DWITH_ALIGNMENT=0"
3583 no
) if test x
"$default_alignment" != x
; then
3584 sim_alignment
="-DWITH_DEFAULT_ALIGNMENT=${default_alignment}"
3586 if test x
"$wire_alignment" != x
; then
3587 sim_alignment
="-DWITH_DEFAULT_ALIGNMENT=${wire_alignment}"
3589 echo "No default alignment for target $target" 1>&6
3590 sim_alignment
="-DWITH_DEFAULT_ALIGNMENT=0"
3593 *) { echo "configure: error: "Unknown value
$enableval passed to
--enable-sim-alignment"" 1>&2; exit 1; }; sim_alignment
="";;
3595 if test x
"$silent" != x
"yes" && test x
"$sim_alignment" != x
""; then
3596 echo "Setting alignment flags = $sim_alignment" 6>&1
3599 if test x
"$default_alignment" != x
; then
3600 sim_alignment
="-DWITH_DEFAULT_ALIGNMENT=${default_alignment}"
3602 if test x
"$wire_alignment" != x
; then
3603 sim_alignment
="-DWITH_ALIGNMENT=${wire_alignment}"
3611 # Check whether --enable-sim-hostendian or --disable-sim-hostendian was given.
3612 if test "${enable_sim_hostendian+set}" = set; then
3613 enableval
="$enable_sim_hostendian"
3614 case "${enableval}" in
3615 no
) sim_hostendian
="-DWITH_HOST_BYTE_ORDER=0";;
3616 b
*|B
*) sim_hostendian
="-DWITH_HOST_BYTE_ORDER=BIG_ENDIAN";;
3617 l
*|L
*) sim_hostendian
="-DWITH_HOST_BYTE_ORDER=LITTLE_ENDIAN";;
3618 *) { echo "configure: error: "Unknown value
$enableval for --enable-sim-hostendian"" 1>&2; exit 1; }; sim_hostendian
="";;
3620 if test x
"$silent" != x
"yes" && test x
"$sim_hostendian" != x
""; then
3621 echo "Setting hostendian flags = $sim_hostendian" 6>&1
3625 if test "x$cross_compiling" = "xno"; then
3626 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
3627 echo "configure:3628: checking whether byte ordering is bigendian" >&5
3628 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
3629 echo $ac_n "(cached) $ac_c" 1>&6
3631 ac_cv_c_bigendian
=unknown
3632 # See if sys/param.h defines the BYTE_ORDER macro.
3633 cat > conftest.
$ac_ext <<EOF
3634 #line 3635 "configure"
3635 #include "confdefs.h"
3636 #include <sys/types.h>
3637 #include <sys/param.h>
3640 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
3645 if { (eval echo configure
:3646: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3647 # It does; now see whether it defined to BIG_ENDIAN or not.
3648 cat > conftest.
$ac_ext <<EOF
3649 #line 3650 "configure"
3650 #include "confdefs.h"
3651 #include <sys/types.h>
3652 #include <sys/param.h>
3655 #if BYTE_ORDER != BIG_ENDIAN
3660 if { (eval echo configure
:3661: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3662 ac_cv_c_bigendian
=yes
3664 echo "configure: failed program was:" >&5
3665 cat conftest.
$ac_ext >&5
3667 ac_cv_c_bigendian
=no
3671 echo "configure: failed program was:" >&5
3672 cat conftest.
$ac_ext >&5
3675 if test $ac_cv_c_bigendian = unknown
; then
3676 if test "$cross_compiling" = yes; then
3677 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3679 cat > conftest.
$ac_ext <<EOF
3680 #line 3681 "configure"
3681 #include "confdefs.h"
3683 /* Are we little or big endian? From Harbison&Steele. */
3687 char c[sizeof (long)];
3690 exit (u.c[sizeof (long) - 1] == 1);
3693 if { (eval echo configure
:3694: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3695 ac_cv_c_bigendian
=no
3697 echo "configure: failed program was:" >&5
3698 cat conftest.
$ac_ext >&5
3700 ac_cv_c_bigendian
=yes
3708 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
3709 if test $ac_cv_c_bigendian = yes; then
3710 cat >> confdefs.h
<<\EOF
3711 #define WORDS_BIGENDIAN 1
3716 if test $ac_cv_c_bigendian = yes; then
3717 sim_hostendian
="-DWITH_HOST_BYTE_ORDER=BIG_ENDIAN"
3719 sim_hostendian
="-DWITH_HOST_BYTE_ORDER=LITTLE_ENDIAN"
3722 sim_hostendian
="-DWITH_HOST_BYTE_ORDER=0"
3727 # NOTE: Don't add -Wall or -Wunused, they both include
3728 # -Wunused-parameter which reports bogus warnings.
3729 # NOTE: If you add to this list, remember to update
3730 # gdb/doc/gdbint.texinfo.
3731 build_warnings
="-Wimplicit -Wreturn-type -Wcomment -Wtrigraphs \
3732 -Wformat -Wparentheses -Wpointer-arith -Wuninitialized"
3733 # Up for debate: -Wswitch -Wcomment -trigraphs -Wtrigraphs
3734 # -Wunused-function -Wunused-label -Wunused-variable -Wunused-value
3735 # -Wchar-subscripts -Wtraditional -Wshadow -Wcast-qual
3736 # -Wcast-align -Wwrite-strings -Wconversion -Wstrict-prototypes
3737 # -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls
3738 # -Woverloaded-virtual -Winline -Werror"
3739 # Check whether --enable-build-warnings or --disable-build-warnings was given.
3740 if test "${enable_build_warnings+set}" = set; then
3741 enableval
="$enable_build_warnings"
3742 case "${enableval}" in
3744 no
) build_warnings
="-w";;
3745 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
3746 build_warnings
="${build_warnings} ${t}";;
3747 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
3748 build_warnings
="${t} ${build_warnings}";;
3749 *) build_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
3751 if test x
"$silent" != x
"yes" && test x
"$build_warnings" != x
""; then
3752 echo "Setting compiler warning flags = $build_warnings" 6>&1
3755 # Check whether --enable-sim-build-warnings or --disable-sim-build-warnings was given.
3756 if test "${enable_sim_build_warnings+set}" = set; then
3757 enableval
="$enable_sim_build_warnings"
3758 case "${enableval}" in
3760 no
) build_warnings
="-w";;
3761 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
3762 build_warnings
="${build_warnings} ${t}";;
3763 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
3764 build_warnings
="${t} ${build_warnings}";;
3765 *) build_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
3767 if test x
"$silent" != x
"yes" && test x
"$build_warnings" != x
""; then
3768 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
3773 if test "x${build_warnings}" != x
-a "x$GCC" = xyes
3775 echo $ac_n "checking compiler warning flags""... $ac_c" 1>&6
3776 echo "configure:3777: checking compiler warning flags" >&5
3777 # Separate out the -Werror flag as some files just cannot be
3778 # compiled with it enabled.
3779 for w
in ${build_warnings}; do
3781 -Werr*) WERROR_CFLAGS
=-Werror ;;
3782 *) # Check that GCC accepts it
3783 saved_CFLAGS
="$CFLAGS"
3785 cat > conftest.
$ac_ext <<EOF
3786 #line 3787 "configure"
3787 #include "confdefs.h"
3793 if { (eval echo configure
:3794: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3795 WARN_CFLAGS
="${WARN_CFLAGS} $w"
3797 echo "configure: failed program was:" >&5
3798 cat conftest.
$ac_ext >&5
3801 CFLAGS
="$saved_CFLAGS"
3804 echo "$ac_t""${WARN_CFLAGS}${WERROR_CFLAGS}" 1>&6
3810 # Instead of defining a `subtarget' macro, code should be checking
3811 # the value of {STATE,CPU}_ARCHITECTURE to identify the architecture
3815 mips
*tx39
*) SIM_SUBTARGET
="-DSUBTARGET_R3900=1";;
3816 mipsisa32
*-*-*) SIM_SUBTARGET
="-DTARGET_ENABLE_FR=1";;
3817 mipsisa64
*-*-*) SIM_SUBTARGET
="-DTARGET_ENABLE_FR=1";;
3818 *) SIM_SUBTARGET
="";;
3825 # Select the byte order of the target
3830 mips64el
*-*-*) mips_endian
=LITTLE_ENDIAN
;;
3831 mips64vr
*el-
*-*) default_endian
=LITTLE_ENDIAN
;;
3832 mips64
*-*-*) default_endian
=BIG_ENDIAN
;;
3833 mips16
*-*-*) default_endian
=BIG_ENDIAN
;;
3834 mipsisa32
*-*-*) default_endian
=BIG_ENDIAN
;;
3835 mipsisa64
*-*-*) default_endian
=BIG_ENDIAN
;;
3836 mips
*-*-*) default_endian
=BIG_ENDIAN
;;
3837 *) default_endian
=BIG_ENDIAN
;;
3840 wire_endian
="$mips_endian"
3841 default_endian
="$default_endian"
3842 # Check whether --enable-sim-endian or --disable-sim-endian was given.
3843 if test "${enable_sim_endian+set}" = set; then
3844 enableval
="$enable_sim_endian"
3845 case "${enableval}" in
3846 b
*|B
*) sim_endian
="-DWITH_TARGET_BYTE_ORDER=BIG_ENDIAN";;
3847 l
*|L
*) sim_endian
="-DWITH_TARGET_BYTE_ORDER=LITTLE_ENDIAN";;
3848 yes) if test x
"$wire_endian" != x
; then
3849 sim_endian
="-DWITH_TARGET_BYTE_ORDER=${wire_endian}"
3851 if test x
"$default_endian" != x
; then
3852 sim_endian
="-DWITH_TARGET_BYTE_ORDER=${default_endian}"
3854 echo "No hard-wired endian for target $target" 1>&6
3855 sim_endian
="-DWITH_TARGET_BYTE_ORDER=0"
3858 no
) if test x
"$default_endian" != x
; then
3859 sim_endian
="-DWITH_DEFAULT_TARGET_BYTE_ORDER=${default_endian}"
3861 if test x
"$wire_endian" != x
; then
3862 sim_endian
="-DWITH_DEFAULT_TARGET_BYTE_ORDER=${wire_endian}"
3864 echo "No default endian for target $target" 1>&6
3865 sim_endian
="-DWITH_DEFAULT_TARGET_BYTE_ORDER=0"
3868 *) { echo "configure: error: "Unknown value
$enableval for --enable-sim-endian"" 1>&2; exit 1; }; sim_endian
="";;
3870 if test x
"$silent" != x
"yes" && test x
"$sim_endian" != x
""; then
3871 echo "Setting endian flags = $sim_endian" 6>&1
3874 if test x
"$default_endian" != x
; then
3875 sim_endian
="-DWITH_DEFAULT_TARGET_BYTE_ORDER=${default_endian}"
3877 if test x
"$wire_endian" != x
; then
3878 sim_endian
="-DWITH_TARGET_BYTE_ORDER=${wire_endian}"
3889 # Select the bitsize of the target
3893 mips64
*-*-*) mips_bitsize
=64 ; mips_msb
=63 ;;
3894 mips16
*-*-*) mips_bitsize
=64 ; mips_msb
=63 ;;
3895 mipsisa32
*-*-*) mips_bitsize
=32 ; mips_msb
=31 ;;
3896 mipsisa64
*-*-*) mips_bitsize
=64 ; mips_msb
=63 ;;
3897 mips
*-*-*) mips_bitsize
=32 ; mips_msb
=31 ;;
3898 *) mips_bitsize
=64 ; mips_msb
=63 ;;
3900 wire_word_bitsize
="$mips_bitsize"
3901 wire_word_msb
="$mips_msb"
3902 wire_address_bitsize
="$mips_addr_bitsize"
3903 wire_cell_bitsize
=""
3904 # Check whether --enable-sim-bitsize or --disable-sim-bitsize was given.
3905 if test "${enable_sim_bitsize+set}" = set; then
3906 enableval
="$enable_sim_bitsize"
3908 case "${enableval}" in
3909 64,63 |
64,63,* ) sim_bitsize
="-DWITH_TARGET_WORD_BITSIZE=64 -DWITH_TARGET_WORD_MSB=63";;
3910 32,31 |
32,31,* ) sim_bitsize
="-DWITH_TARGET_WORD_BITSIZE=32 -DWITH_TARGET_WORD_MSB=31";;
3911 64,0 |
64,0,* ) sim_bitsize
="-DWITH_TARGET_WORD_BITSIZE=32 -DWITH_TARGET_WORD_MSB=0";;
3912 32,0 |
64,0,* ) sim_bitsize
="-DWITH_TARGET_WORD_BITSIZE=32 -DWITH_TARGET_WORD_MSB=0";;
3913 32) if test x
"$wire_word_msb" != x
-a x
"$wire_word_msb" != x0
; then
3914 sim_bitsize
="-DWITH_TARGET_WORD_BITSIZE=32 -DWITH_TARGET_WORD_MSB=31"
3916 sim_bitsize
="-DWITH_TARGET_WORD_BITSIZE=32 -DWITH_TARGET_WORD_MSB=0"
3918 64) if test x
"$wire_word_msb" != x
-a x
"$wire_word_msb" != x0
; then
3919 sim_bitsize
="-DWITH_TARGET_WORD_BITSIZE=64 -DWITH_TARGET_WORD_MSB=63"
3921 sim_bitsize
="-DWITH_TARGET_WORD_BITSIZE=64 -DWITH_TARGET_WORD_MSB=0"
3923 *) { echo "configure: error: "--enable-sim-bitsize was given
$enableval. Expected
32 or
64"" 1>&2; exit 1; } ;;
3926 tmp
=`echo "${enableval}" | sed -e "s/^[0-9]*,*[0-9]*,*//"`
3929 x32 | x32
,* ) sim_bitsize
="${sim_bitsize} -DWITH_TARGET_ADDRESS_BITSIZE=32" ;;
3930 x64 | x64
,* ) sim_bitsize
="${sim_bitsize} -DWITH_TARGET_ADDRESS_BITSIZE=64" ;;
3931 * ) { echo "configure: error: "--enable-sim-bitsize was given address size
$enableval. Expected
32 or
64"" 1>&2; exit 1; } ;;
3934 tmp
=`echo "${enableval}" | sed -e "s/^[0-9]*,*[0-9*]*,*[0-9]*,*//"`
3937 x32 | x32
,* ) sim_bitsize
="${sim_bitsize} -DWITH_TARGET_CELL_BITSIZE=32" ;;
3938 x64 | x64
,* ) sim_bitsize
="${sim_bitsize} -DWITH_TARGET_CELL_BITSIZE=64" ;;
3939 * ) { echo "configure: error: "--enable-sim-bitsize was given cell size
$enableval. Expected
32 or
64"" 1>&2; exit 1; } ;;
3941 if test x
"$silent" != x
"yes" && test x
"$sim_bitsize" != x
""; then
3942 echo "Setting bitsize flags = $sim_bitsize" 6>&1
3946 if test x
"$wire_word_bitsize" != x
; then
3947 sim_bitsize
="$sim_bitsize -DWITH_TARGET_WORD_BITSIZE=$wire_word_bitsize"
3949 if test x
"$wire_word_msb" != x
; then
3950 sim_bitsize
="$sim_bitsize -DWITH_TARGET_WORD_MSB=$wire_word_msb"
3952 if test x
"$wire_address_bitsize" != x
; then
3953 sim_bitsize
="$sim_bitsize -DWITH_TARGET_ADDRESS_BITSIZE=$wire_address_bitsize"
3955 if test x
"$wire_cell_bitsize" != x
; then
3956 sim_bitsize
="$sim_bitsize -DWITH_TARGET_CELL_BITSIZE=$wire_cell_bitsize"
3964 # Select the floating hardware support of the target
3966 mips_fpu
=HARDWARE_FLOATING_POINT
3969 mips
*tx39
*) mips_fpu
=HARD_FLOATING_POINT
3972 mips64
*-*-*) mips_fpu
=HARD_FLOATING_POINT
;;
3973 mips16
*-*-*) mips_fpu
=HARD_FLOATING_POINT
;;
3974 mipsisa32
*-*-*) mips_fpu
=HARD_FLOATING_POINT
; mips_fpu_bitsize
=64 ;;
3975 mipsisa64
*-*-*) mips_fpu
=HARD_FLOATING_POINT
; mips_fpu_bitsize
=64 ;;
3976 mips
*-*-*) mips_fpu
=HARD_FLOATING_POINT
; mips_fpu_bitsize
=32 ;;
3977 *) mips_fpu
=HARD_FLOATING_POINT
;;
3980 default_sim_float
="$mips_fpu"
3981 default_sim_float_bitsize
="$mips_fpu_bitsize"
3982 # Check whether --enable-sim-float or --disable-sim-float was given.
3983 if test "${enable_sim_float+set}" = set; then
3984 enableval
="$enable_sim_float"
3985 case "${enableval}" in
3986 yes | hard
) sim_float
="-DWITH_FLOATING_POINT=HARD_FLOATING_POINT";;
3987 no | soft
) sim_float
="-DWITH_FLOATING_POINT=SOFT_FLOATING_POINT";;
3988 32) sim_float
="-DWITH_FLOATING_POINT=HARD_FLOATING_POINT -DWITH_TARGET_FLOATING_POINT_BITSIZE=32";;
3989 64) sim_float
="-DWITH_FLOATING_POINT=HARD_FLOATING_POINT -DWITH_TARGET_FLOATING_POINT_BITSIZE=64";;
3990 *) { echo "configure: error: "Unknown value
$enableval passed to
--enable-sim-float"" 1>&2; exit 1; }; sim_float
="";;
3992 if test x
"$silent" != x
"yes" && test x
"$sim_float" != x
""; then
3993 echo "Setting float flags = $sim_float" 6>&1
3998 if test x
"${default_sim_float}" != x
""; then
3999 sim_float
="-DWITH_FLOATING_POINT=${default_sim_float}"
4001 if test x
"${default_sim_float_bitsize}" != x
""; then
4002 sim_float
="$sim_float -DWITH_TARGET_FLOATING_POINT_BITSIZE=${default_sim_float_bitsize}"
4011 # Select the level of SMP support
4017 default_sim_smp
="$mips_smp"
4018 # Check whether --enable-sim-smp or --disable-sim-smp was given.
4019 if test "${enable_sim_smp+set}" = set; then
4020 enableval
="$enable_sim_smp"
4021 case "${enableval}" in
4022 yes) sim_smp
="-DWITH_SMP=5" ; sim_igen_smp
="-N 5";;
4023 no
) sim_smp
="-DWITH_SMP=0" ; sim_igen_smp
="-N 0";;
4024 *) sim_smp
="-DWITH_SMP=$enableval" ; sim_igen_smp
="-N $enableval";;
4026 if test x
"$silent" != x
"yes" && test x
"$sim_smp" != x
""; then
4027 echo "Setting smp flags = $sim_smp" 6>&1
4030 sim_smp
="-DWITH_SMP=${default_sim_smp}" ; sim_igen_smp
="-N ${default_sim_smp}"
4031 if test x
"$silent" != x
"yes"; then
4032 echo "Setting smp flags = $sim_smp" 6>&1
4040 # Select the IGEN architecture
4043 sim_igen_machine
="-M mipsIV"
4044 sim_m16_machine
="-M mips16"
4045 sim_igen_filter
="32,64,f"
4048 mips
*tx39
*) sim_gen
=IGEN
4049 sim_igen_filter
="32,f"
4050 sim_igen_machine
="-M r3900"
4052 mips64vr43
*-*-*) sim_gen
=IGEN
4053 sim_igen_machine
="-M mipsIV"
4055 mips64vr5
*-*-*) sim_gen
=IGEN
4056 sim_igen_machine
="-M vr5000"
4058 mips64vr41
*) sim_gen
=M16
4059 sim_igen_machine
="-M vr4100"
4060 sim_m16_machine
="-M vr4100"
4061 sim_igen_filter
="32,64,f"
4064 mips64
*-*-*) sim_igen_filter
="32,64,f"
4067 mips16
*-*-*) sim_gen
=M16
4068 sim_igen_filter
="32,64,f"
4071 mipsisa32
*-*-*) sim_gen
=IGEN
4072 sim_igen_machine
="-M mips32"
4073 sim_igen_filter
="32,f"
4075 mipsisa64sb1
*-*-*) sim_gen
=IGEN
4076 sim_igen_machine
="-M mips64,sb1"
4077 sim_igen_filter
="32,64,f"
4079 mipsisa64
*-*-*) sim_gen
=IGEN
4080 sim_igen_machine
="-M mips64,mips3d"
4081 sim_igen_filter
="32,64,f"
4083 mips
*lsi
*) sim_gen
=M16
4084 sim_igen_machine
="-M mipsIII,mips16"
4085 sim_m16_machine
="-M mips16,mipsIII"
4086 sim_igen_filter
="32,f"
4089 mips
*-*-*) sim_gen
=IGEN
4090 sim_igen_filter
="32,f"
4093 sim_igen_flags
="-F ${sim_igen_filter} ${sim_igen_machine} ${sim_igen_smp}"
4094 sim_m16_flags
=" -F ${sim_m16_filter} ${sim_m16_machine} ${sim_igen_smp}"
4101 # Add simulated hardware devices
4107 hw_extra_devices
="tx3904cpu tx3904irc tx3904tmr tx3904sio"
4108 mips_extra_objs
="dv-sockser.o"
4109 SIM_SUBTARGET
="$SIM_SUBTARGET -DTARGET_TX3904=1"
4116 if test x
"$hw_enabled" = x
"yes"; then
4121 if test "$hw_devices"; then
4122 hardware
="core pal glue"
4124 hardware
="core pal glue $hw_extra_devices"
4126 sim_hw_cflags
="-DWITH_HW=1"
4128 sim_hw_objs
="\$(SIM_COMMON_HW_OBJS) `echo $sim_hw | sed -e 's/\([^ ][^ ]*\)/dv-\1.o/g'`"
4129 # Check whether --enable-sim-hardware or --disable-sim-hardware was given.
4130 if test "${enable_sim_hardware+set}" = set; then
4131 enableval
="$enable_sim_hardware"
4133 case "${enableval}" in
4136 ,*) sim_hw_p
=yes; hardware
="${hardware} `echo ${enableval} | sed -e 's/,/ /'`";;
4137 *,) sim_hw_p
=yes; hardware
="`echo ${enableval} | sed -e 's/,/ /'` ${hardware}";;
4138 *) sim_hw_p
=yes; hardware
="`echo ${enableval} | sed -e 's/,/ /'`"'';;
4140 if test "$sim_hw_p" != yes; then
4142 sim_hw_cflags
="-DWITH_HW=0"
4145 sim_hw_cflags
="-DWITH_HW=1"
4148 sim_hw_objs
="\$(SIM_COMMON_HW_OBJS)"
4149 for i
in x
$hardware ; do
4153 *) sim_hw
="$sim_hw $i" ; sim_hw_objs
="$sim_hw_objs dv-$i.o";;
4157 if test x
"$silent" != x
"yes" && test "$sim_hw_p" = "yes"; then
4158 echo "Setting hardware to $sim_hw_cflags, $sim_hw, $sim_hw_objs"
4162 if test "$sim_hw_p" != yes; then
4164 sim_hw_cflags
="-DWITH_HW=0"
4167 if test x
"$silent" != x
"yes"; then
4168 echo "Setting hardware to $sim_hw_cflags, $sim_hw, $sim_hw_objs"
4175 # Choose simulator engine
4177 *) mips_igen_engine
="engine.o"
4183 # If we find X, set shell vars x_includes and x_libraries to the
4184 # paths, otherwise set no_x=yes.
4185 # Uses ac_ vars as temps to allow command line to override cache and checks.
4186 # --without-x overrides everything else, but does not touch the cache.
4187 echo $ac_n "checking for X""... $ac_c" 1>&6
4188 echo "configure:4189: checking for X" >&5
4190 # Check whether --with-x or --without-x was given.
4191 if test "${with_x+set}" = set; then
4196 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
4197 if test "x$with_x" = xno
; then
4198 # The user explicitly disabled X.
4201 if test "x$x_includes" != xNONE
&& test "x$x_libraries" != xNONE
; then
4202 # Both variables are already set.
4205 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
4206 echo $ac_n "(cached) $ac_c" 1>&6
4208 # One or both of the vars are not set, and there is no cached value.
4209 ac_x_includes
=NO ac_x_libraries
=NO
4211 if mkdir conftestdir
; then
4213 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
4214 cat > Imakefile
<<'EOF'
4216 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
4218 if (xmkmf
) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
4219 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4220 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
4221 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
4222 for ac_extension
in a so sl
; do
4223 if test ! -f $ac_im_usrlibdir/libX11.
$ac_extension &&
4224 test -f $ac_im_libdir/libX11.
$ac_extension; then
4225 ac_im_usrlibdir
=$ac_im_libdir; break
4228 # Screen out bogus values from the imake configuration. They are
4229 # bogus both because they are the default anyway, and because
4230 # using them would break gcc on systems where it needs fixed includes.
4231 case "$ac_im_incroot" in
4233 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
="$ac_im_incroot" ;;
4235 case "$ac_im_usrlibdir" in
4237 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
="$ac_im_usrlibdir" ;;
4244 if test "$ac_x_includes" = NO
; then
4245 # Guess where to find include files, by looking for this one X11 .h file.
4246 test -z "$x_direct_test_include" && x_direct_test_include
=X11
/Intrinsic.h
4248 # First, try using that file with no special directory specified.
4249 cat > conftest.
$ac_ext <<EOF
4250 #line 4251 "configure"
4251 #include "confdefs.h"
4252 #include <$x_direct_test_include>
4254 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4255 { (eval echo configure
:4256: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4256 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4257 if test -z "$ac_err"; then
4259 # We can compile using X headers with no special include directory.
4263 echo "configure: failed program was:" >&5
4264 cat conftest.
$ac_ext >&5
4266 # Look for the header file in a standard set of common directories.
4267 # Check X11 before X11Rn because it is often a symlink to the current release.
4270 /usr
/X11R
6/include \
4271 /usr
/X11R
5/include \
4272 /usr
/X11R
4/include \
4275 /usr
/include
/X11R6 \
4276 /usr
/include
/X11R5 \
4277 /usr
/include
/X11R4 \
4279 /usr
/local
/X11
/include \
4280 /usr
/local
/X11R
6/include \
4281 /usr
/local
/X11R
5/include \
4282 /usr
/local
/X11R
4/include \
4284 /usr
/local
/include
/X11 \
4285 /usr
/local
/include
/X11R6 \
4286 /usr
/local
/include
/X11R5 \
4287 /usr
/local
/include
/X11R4 \
4291 /usr
/XFree86
/include
/X11 \
4294 /usr
/local
/include \
4295 /usr
/unsupported
/include \
4296 /usr
/athena
/include \
4297 /usr
/local
/x11r
5/include \
4298 /usr
/lpp
/Xamples
/include \
4300 /usr
/openwin
/include \
4301 /usr
/openwin
/share
/include \
4304 if test -r "$ac_dir/$x_direct_test_include"; then
4305 ac_x_includes
=$ac_dir
4311 fi # $ac_x_includes = NO
4313 if test "$ac_x_libraries" = NO
; then
4314 # Check for the libraries.
4316 test -z "$x_direct_test_library" && x_direct_test_library
=Xt
4317 test -z "$x_direct_test_function" && x_direct_test_function
=XtMalloc
4319 # See if we find them without any special options.
4320 # Don't add to $LIBS permanently.
4321 ac_save_LIBS
="$LIBS"
4322 LIBS
="-l$x_direct_test_library $LIBS"
4323 cat > conftest.
$ac_ext <<EOF
4324 #line 4325 "configure"
4325 #include "confdefs.h"
4328 ${x_direct_test_function}()
4331 if { (eval echo configure
:4332: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4333 LIBS
="$ac_save_LIBS"
4334 # We can link X programs with no special library path.
4337 echo "configure: failed program was:" >&5
4338 cat conftest.
$ac_ext >&5
4340 LIBS
="$ac_save_LIBS"
4341 # First see if replacing the include by lib works.
4342 # Check X11 before X11Rn because it is often a symlink to the current release.
4343 for ac_dir
in `echo "$ac_x_includes" | sed s/include/lib/` \
4354 /usr
/local
/X11
/lib \
4355 /usr
/local
/X11R
6/lib \
4356 /usr
/local
/X11R
5/lib \
4357 /usr
/local
/X11R
4/lib \
4359 /usr
/local
/lib
/X11 \
4360 /usr
/local
/lib
/X11R6 \
4361 /usr
/local
/lib
/X11R5 \
4362 /usr
/local
/lib
/X11R4 \
4366 /usr
/XFree86
/lib
/X11 \
4370 /usr
/unsupported
/lib \
4372 /usr
/local
/x11r
5/lib \
4373 /usr
/lpp
/Xamples
/lib \
4377 /usr
/openwin
/share
/lib \
4380 for ac_extension
in a so sl
; do
4381 if test -r $ac_dir/lib
${x_direct_test_library}.
$ac_extension; then
4382 ac_x_libraries
=$ac_dir
4389 fi # $ac_x_libraries = NO
4391 if test "$ac_x_includes" = NO ||
test "$ac_x_libraries" = NO
; then
4392 # Didn't find X anywhere. Cache the known absence of X.
4393 ac_cv_have_x
="have_x=no"
4395 # Record where we found X for the cache.
4396 ac_cv_have_x
="have_x=yes \
4397 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
4401 eval "$ac_cv_have_x"
4404 if test "$have_x" != yes; then
4405 echo "$ac_t""$have_x" 1>&6
4408 # If each of the values was on the command line, it overrides each guess.
4409 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
4410 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
4411 # Update the cache value to reflect the command line values.
4412 ac_cv_have_x
="have_x=yes \
4413 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
4414 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
4420 for ac_hdr
in string.h
strings.h stdlib.h stdlib.h
4422 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4423 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4424 echo "configure:4425: checking for $ac_hdr" >&5
4425 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4426 echo $ac_n "(cached) $ac_c" 1>&6
4428 cat > conftest.
$ac_ext <<EOF
4429 #line 4430 "configure"
4430 #include "confdefs.h"
4433 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4434 { (eval echo configure
:4435: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4435 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4436 if test -z "$ac_err"; then
4438 eval "ac_cv_header_$ac_safe=yes"
4441 echo "configure: failed program was:" >&5
4442 cat conftest.
$ac_ext >&5
4444 eval "ac_cv_header_$ac_safe=no"
4448 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4449 echo "$ac_t""yes" 1>&6
4450 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4451 cat >> confdefs.h
<<EOF
4452 #define $ac_tr_hdr 1
4456 echo "$ac_t""no" 1>&6
4460 echo $ac_n "checking for fabs in -lm""... $ac_c" 1>&6
4461 echo "configure:4462: checking for fabs in -lm" >&5
4462 ac_lib_var
=`echo m'_'fabs | sed 'y%./+-%__p_%'`
4463 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4464 echo $ac_n "(cached) $ac_c" 1>&6
4466 ac_save_LIBS
="$LIBS"
4468 cat > conftest.
$ac_ext <<EOF
4469 #line 4470 "configure"
4470 #include "confdefs.h"
4471 /* Override any gcc2 internal prototype to avoid an error. */
4472 /* We use char because int might match the return type of a gcc2
4473 builtin and then its argument prototype would still apply. */
4480 if { (eval echo configure
:4481: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4482 eval "ac_cv_lib_$ac_lib_var=yes"
4484 echo "configure: failed program was:" >&5
4485 cat conftest.
$ac_ext >&5
4487 eval "ac_cv_lib_$ac_lib_var=no"
4490 LIBS
="$ac_save_LIBS"
4493 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4494 echo "$ac_t""yes" 1>&6
4495 ac_tr_lib
=HAVE_LIB
`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4496 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4497 cat >> confdefs.h
<<EOF
4498 #define $ac_tr_lib 1
4504 echo "$ac_t""no" 1>&6
4507 for ac_func
in aint anint sqrt
4509 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4510 echo "configure:4511: checking for $ac_func" >&5
4511 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4512 echo $ac_n "(cached) $ac_c" 1>&6
4514 cat > conftest.
$ac_ext <<EOF
4515 #line 4516 "configure"
4516 #include "confdefs.h"
4517 /* System header to define __stub macros and hopefully few prototypes,
4518 which can conflict with char $ac_func(); below. */
4520 /* Override any gcc2 internal prototype to avoid an error. */
4521 /* We use char because int might match the return type of a gcc2
4522 builtin and then its argument prototype would still apply. */
4527 /* The GNU C library defines this for functions which it implements
4528 to always fail with ENOSYS. Some functions are actually named
4529 something starting with __ and the normal name is an alias. */
4530 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4538 if { (eval echo configure
:4539: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4540 eval "ac_cv_func_$ac_func=yes"
4542 echo "configure: failed program was:" >&5
4543 cat conftest.
$ac_ext >&5
4545 eval "ac_cv_func_$ac_func=no"
4550 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4551 echo "$ac_t""yes" 1>&6
4552 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4553 cat >> confdefs.h
<<EOF
4554 #define $ac_tr_func 1
4558 echo "$ac_t""no" 1>&6
4566 cat > confcache
<<\EOF
4567 # This file is a shell script that caches the results of configure
4568 # tests run on this system so they can be shared between configure
4569 # scripts and configure runs. It is not useful on other systems.
4570 # If it contains results you don't want to keep, you may remove or edit it.
4572 # By default, configure uses ./config.cache as the cache file,
4573 # creating it if it does not exist already. You can give configure
4574 # the --cache-file=FILE option to use a different cache file; that is
4575 # what configure does when it calls configure scripts in
4576 # subdirectories, so they share the cache.
4577 # Giving --cache-file=/dev/null disables caching, for debugging configure.
4578 # config.status only pays attention to the cache file if you give it the
4579 # --recheck option to rerun configure.
4582 # The following way of writing the cache mishandles newlines in values,
4583 # but we know of no workaround that is simple, portable, and efficient.
4584 # So, don't put newlines in cache variables' values.
4585 # Ultrix sh set writes to stderr and can't be redirected directly,
4586 # and sets the high bit in the cache file unless we assign to the vars.
4588 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4590 # `set' does not quote correctly, so add quotes (double-quote substitution
4591 # turns \\\\ into \\, and sed turns \\ into \).
4593 -e "s/'/'\\\\''/g" \
4594 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
4597 # `set' quotes correctly as required by POSIX, so do not add quotes.
4598 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
4601 if cmp -s $cache_file confcache
; then
4604 if test -w $cache_file; then
4605 echo "updating cache $cache_file"
4606 cat confcache
> $cache_file
4608 echo "not updating unwritable cache $cache_file"
4613 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
4615 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
4616 # Let make expand exec_prefix.
4617 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
4619 # Any assignment to VPATH causes Sun make to only execute
4620 # the first set of double-colon rules, so remove it if not needed.
4621 # If there is a colon in the path, we need to keep it.
4622 if test "x$srcdir" = x.
; then
4623 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
4626 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
4628 DEFS
=-DHAVE_CONFIG_H
4630 # Without the "./", some shells look in PATH for config.status.
4631 : ${CONFIG_STATUS=./config.status}
4633 echo creating
$CONFIG_STATUS
4634 rm -f $CONFIG_STATUS
4635 cat > $CONFIG_STATUS <<EOF
4637 # Generated automatically by configure.
4638 # Run this file to recreate the current configuration.
4639 # This directory was configured as follows,
4640 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
4642 # $0 $ac_configure_args
4644 # Compiler output produced by configure, useful for debugging
4645 # configure, is in ./config.log if it exists.
4647 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
4650 case "\$ac_option" in
4651 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4652 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
4653 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
4654 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
4655 echo "$CONFIG_STATUS generated by autoconf version 2.13"
4657 -help | --help | --hel | --he | --h)
4658 echo "\$ac_cs_usage"; exit 0 ;;
4659 *) echo "\$ac_cs_usage"; exit 1 ;;
4663 ac_given_srcdir=$srcdir
4664 ac_given_INSTALL="$INSTALL"
4666 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
4668 cat >> $CONFIG_STATUS <<EOF
4670 # Protect against being on the right side of a sed subst in config.status.
4671 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
4672 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
4675 s%@sim_environment@%$sim_environment%g
4676 s%@sim_alignment@%$sim_alignment%g
4677 s%@sim_assert@%$sim_assert%g
4678 s%@sim_bitsize@%$sim_bitsize%g
4679 s%@sim_endian@%$sim_endian%g
4680 s%@sim_hostendian@%$sim_hostendian%g
4681 s%@sim_float@%$sim_float%g
4682 s%@sim_scache@%$sim_scache%g
4683 s%@sim_default_model@%$sim_default_model%g
4684 s%@sim_hw_cflags@%$sim_hw_cflags%g
4685 s%@sim_hw_objs@%$sim_hw_objs%g
4686 s%@sim_hw@%$sim_hw%g
4687 s%@sim_inline@%$sim_inline%g
4688 s%@sim_packages@%$sim_packages%g
4689 s%@sim_regparm@%$sim_regparm%g
4690 s%@sim_reserved_bits@%$sim_reserved_bits%g
4691 s%@sim_smp@%$sim_smp%g
4692 s%@sim_stdcall@%$sim_stdcall%g
4693 s%@sim_xor_endian@%$sim_xor_endian%g
4694 s%@WARN_CFLAGS@%$WARN_CFLAGS%g
4695 s%@WERROR_CFLAGS@%$WERROR_CFLAGS%g
4697 s%@CFLAGS@%$CFLAGS%g
4698 s%@CPPFLAGS@%$CPPFLAGS%g
4699 s%@CXXFLAGS@%$CXXFLAGS%g
4700 s%@FFLAGS@%$FFLAGS%g
4702 s%@LDFLAGS@%$LDFLAGS%g
4704 s%@exec_prefix@%$exec_prefix%g
4705 s%@prefix@%$prefix%g
4706 s%@program_transform_name@%$program_transform_name%g
4707 s%@bindir@%$bindir%g
4708 s%@sbindir@%$sbindir%g
4709 s%@libexecdir@%$libexecdir%g
4710 s%@datadir@%$datadir%g
4711 s%@sysconfdir@%$sysconfdir%g
4712 s%@sharedstatedir@%$sharedstatedir%g
4713 s%@localstatedir@%$localstatedir%g
4714 s%@libdir@%$libdir%g
4715 s%@includedir@%$includedir%g
4716 s%@oldincludedir@%$oldincludedir%g
4717 s%@infodir@%$infodir%g
4718 s%@mandir@%$mandir%g
4720 s%@host_alias@%$host_alias%g
4721 s%@host_cpu@%$host_cpu%g
4722 s%@host_vendor@%$host_vendor%g
4723 s%@host_os@%$host_os%g
4724 s%@target@%$target%g
4725 s%@target_alias@%$target_alias%g
4726 s%@target_cpu@%$target_cpu%g
4727 s%@target_vendor@%$target_vendor%g
4728 s%@target_os@%$target_os%g
4730 s%@build_alias@%$build_alias%g
4731 s%@build_cpu@%$build_cpu%g
4732 s%@build_vendor@%$build_vendor%g
4733 s%@build_os@%$build_os%g
4735 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
4736 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
4737 s%@INSTALL_DATA@%$INSTALL_DATA%g
4738 s%@CC_FOR_BUILD@%$CC_FOR_BUILD%g
4739 s%@HDEFINES@%$HDEFINES%g
4741 s%@RANLIB@%$RANLIB%g
4742 s%@SET_MAKE@%$SET_MAKE%g
4744 s%@ALLOCA@%$ALLOCA%g
4745 s%@USE_NLS@%$USE_NLS%g
4746 s%@MSGFMT@%$MSGFMT%g
4747 s%@GMSGFMT@%$GMSGFMT%g
4748 s%@XGETTEXT@%$XGETTEXT%g
4749 s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
4750 s%@CATALOGS@%$CATALOGS%g
4751 s%@CATOBJEXT@%$CATOBJEXT%g
4752 s%@DATADIRNAME@%$DATADIRNAME%g
4753 s%@GMOFILES@%$GMOFILES%g
4754 s%@INSTOBJEXT@%$INSTOBJEXT%g
4755 s%@INTLDEPS@%$INTLDEPS%g
4756 s%@INTLLIBS@%$INTLLIBS%g
4757 s%@INTLOBJS@%$INTLOBJS%g
4758 s%@POFILES@%$POFILES%g
4760 s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g
4762 s%@GT_YES@%$GT_YES%g
4763 s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
4766 s%@sim_bswap@%$sim_bswap%g
4767 s%@sim_cflags@%$sim_cflags%g
4768 s%@sim_debug@%$sim_debug%g
4769 s%@sim_stdio@%$sim_stdio%g
4770 s%@sim_trace@%$sim_trace%g
4771 s%@sim_profile@%$sim_profile%g
4772 s%@EXEEXT@%$EXEEXT%g
4773 s%@SIM_SUBTARGET@%$SIM_SUBTARGET%g
4774 s%@sim_igen_flags@%$sim_igen_flags%g
4775 s%@sim_m16_flags@%$sim_m16_flags%g
4776 s%@sim_gen@%$sim_gen%g
4777 s%@mips_extra_objs@%$mips_extra_objs%g
4778 s%@mips_igen_engine@%$mips_igen_engine%g
4779 s%@mips_extra_libs@%$mips_extra_libs%g
4784 cat >> $CONFIG_STATUS <<\EOF
4786 # Split the substitutions into bite-sized pieces for seds with
4787 # small command number limits, like on Digital OSF/1 and HP-UX.
4788 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
4789 ac_file
=1 # Number of current file.
4790 ac_beg
=1 # First line for current file.
4791 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
4794 while $ac_more_lines; do
4795 if test $ac_beg -gt 1; then
4796 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
4798 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
4800 if test ! -s conftest.s
$ac_file; then
4802 rm -f conftest.s
$ac_file
4804 if test -z "$ac_sed_cmds"; then
4805 ac_sed_cmds
="sed -f conftest.s$ac_file"
4807 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
4809 ac_file
=`expr $ac_file + 1`
4811 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
4814 if test -z "$ac_sed_cmds"; then
4819 cat >> $CONFIG_STATUS <<EOF
4821 CONFIG_FILES=\${CONFIG_FILES-"Makefile.sim:Makefile.in Make-common.sim:../common/Make-common.in .gdbinit:../common/gdbinit.in"}
4823 cat >> $CONFIG_STATUS <<\EOF
4824 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
4825 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4827 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
4828 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
4829 *) ac_file_in
="${ac_file}.in" ;;
4832 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
4834 # Remove last slash and all that follows it. Not all systems have dirname.
4835 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
4836 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
4837 # The file is in a subdirectory.
4838 test ! -d "$ac_dir" && mkdir
"$ac_dir"
4839 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
4840 # A "../" for each directory in $ac_dir_suffix.
4841 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
4843 ac_dir_suffix
= ac_dots
=
4846 case "$ac_given_srcdir" in
4848 if test -z "$ac_dots"; then top_srcdir
=.
4849 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
4850 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
4852 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
4853 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
4856 case "$ac_given_INSTALL" in
4857 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
4858 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
4861 echo creating
"$ac_file"
4863 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
4865 *Makefile
*) ac_comsub
="1i\\
4866 # $configure_input" ;;
4870 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4872 s%@configure_input@%$configure_input%g
4873 s%@srcdir@%$srcdir%g
4874 s%@top_srcdir@%$top_srcdir%g
4875 s%@INSTALL@%$INSTALL%g
4876 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
4880 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
4881 # NAME is the cpp macro being defined and VALUE is the value it is being given.
4883 # ac_d sets the value in "#define NAME VALUE" lines.
4884 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
4885 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
4888 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
4889 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
4890 ac_uB
='\([ ]\)%\1#\2define\3'
4893 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
4894 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
4895 ac_eB
='$%\1#\2define\3'
4899 if test "${CONFIG_HEADERS+set}" != set; then
4901 cat >> $CONFIG_STATUS <<EOF
4902 CONFIG_HEADERS="config.h:config.in"
4904 cat >> $CONFIG_STATUS <<\EOF
4906 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
4907 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4909 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
4910 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
4911 *) ac_file_in
="${ac_file}.in" ;;
4914 echo creating
$ac_file
4916 rm -f conftest.frag conftest.
in conftest.out
4917 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4918 cat $ac_file_inputs > conftest.
in
4922 # Transform confdefs.h into a sed script conftest.vals that substitutes
4923 # the proper values into config.h.in to produce config.h. And first:
4924 # Protect against being on the right side of a sed subst in config.status.
4925 # Protect against being in an unquoted here document in config.status.
4927 cat > conftest.hdr
<<\EOF
4930 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
4934 sed -n -f conftest.hdr confdefs.h > conftest.vals
4937 # This sed command replaces #undef with comments. This is necessary, for
4938 # example, in the case of _POSIX_SOURCE, which is predefined and required
4939 # on some systems where configure will not decide to define it.
4940 cat >> conftest.vals <<\EOF
4941 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
4944 # Break up conftest.vals because some shells have a limit on
4945 # the size of here documents, and old seds have small limits too.
4950 ac_lines=`grep -c . conftest.vals
`
4951 # grep -c gives empty output for an empty file on some AIX systems.
4952 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
4953 # Write a limited-size here document to conftest.frag.
4954 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
4955 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
4957 sed -f conftest.frag conftest.in > conftest.out
4959 mv conftest.out conftest.in
4961 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
4963 mv conftest.tail conftest.vals
4967 cat >> $CONFIG_STATUS <<\EOF
4968 rm -f conftest.frag conftest.h
4969 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
4970 cat conftest.in >> conftest.h
4972 if cmp -s $ac_file conftest.h 2>/dev/null; then
4973 echo "$ac_file is unchanged"
4976 # Remove last slash and all that follows it. Not all systems have dirname.
4977 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
4978 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
4979 # The file is in a subdirectory.
4980 test ! -d "$ac_dir" && mkdir "$ac_dir"
4983 mv conftest.h $ac_file
4989 cat >> $CONFIG_STATUS <<EOF
4990 ac_sources="$sim_link_files"
4991 ac_dests="$sim_link_links"
4994 cat >> $CONFIG_STATUS <<\EOF
4995 srcdir=$ac_given_srcdir
4996 while test -n "$ac_sources"; do
4997 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
4998 set $ac_sources; ac_source=$1; shift; ac_sources=$*
5000 echo "linking $srcdir/$ac_source to $ac_dest"
5002 if test ! -r $srcdir/$ac_source; then
5003 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
5007 # Make relative symlinks.
5008 # Remove last slash and all that follows it. Not all systems have dirname.
5009 ac_dest_dir=`echo $ac_dest|
sed 's%/[^/][^/]*$%%'`
5010 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
5011 # The dest file is in a subdirectory.
5012 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
5013 ac_dest_dir_suffix="/`echo $ac_dest_dir|
sed 's%^\./%%'`"
5014 # A "../" for each directory in $ac_dest_dir_suffix.
5015 ac_dots=`echo $ac_dest_dir_suffix|
sed 's%/[^/]*%../%g'`
5017 ac_dest_dir_suffix= ac_dots=
5021 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
5022 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
5025 # Make a symlink if possible; otherwise try a hard link.
5026 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
5027 ln $srcdir/$ac_source $ac_dest; then :
5029 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
5033 cat >> $CONFIG_STATUS <<EOF
5036 cat >> $CONFIG_STATUS <<\EOF
5037 case "x$CONFIG_FILES" in
5039 echo "Merging Makefile.sim+Make-common.sim into Makefile ..."
5040 rm -f Makesim1.tmp Makesim2.tmp Makefile
5041 sed -n -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ p' <Make-common.sim >Makesim1.tmp
5042 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >Makesim2.tmp
5043 sed -e '/^## COMMON_PRE_/ r Makesim1.tmp' \
5044 -e '/^## COMMON_POST_/ r Makesim2.tmp' \
5045 <Makefile.sim >Makefile
5046 rm -f Makefile.sim Make-common.sim Makesim1.tmp Makesim2.tmp
5049 case "x$CONFIG_HEADERS" in xconfig.h:config.in) echo > stamp-h ;; esac
5053 chmod +x $CONFIG_STATUS
5054 rm -fr confdefs* $ac_clean_files
5055 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1