45 sim_inline
="-DDEFAULT_INLINE=0"
81 # This file is derived from `gettext.m4'. The difference is that the
82 # included macros assume Cygnus-style source and build trees.
84 # Macro to add for using GNU gettext.
85 # Ulrich Drepper <drepper@cygnus.com>, 1995.
87 # This file file be copied and used freely without restrictions. It can
88 # be used in projects which are not available under the GNU Public License
89 # but which still want to provide support for the GNU gettext functionality.
90 # Please note that the actual code is *not* freely available.
98 # Search path for a program which passes the given test.
99 # Ulrich Drepper <drepper@cygnus.com>, 1996.
101 # This file file be copied and used freely without restrictions. It can
102 # be used in projects which are not available under the GNU Public License
103 # but which still want to provide support for the GNU gettext functionality.
104 # Please note that the actual code is *not* freely available.
110 # Check whether LC_MESSAGES is available in <locale.h>.
111 # Ulrich Drepper <drepper@cygnus.com>, 1995.
113 # This file file be copied and used freely without restrictions. It can
114 # be used in projects which are not available under the GNU Public License
115 # but which still want to provide support for the GNU gettext functionality.
116 # Please note that the actual code is *not* freely available.
123 # Guess values for system-dependent variables and create Makefiles.
124 # Generated automatically using autoconf version 2.12.1
125 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
127 # This configure script is free software; the Free Software Foundation
128 # gives unlimited permission to copy, distribute and modify it.
132 ac_default_prefix
=/usr
/local
133 # Any additions from configure.in:
135 --disable-nls do not use Native Language Support"
137 --with-included-gettext use the GNU gettext library included here"
139 --enable-maintainer-mode Enable developer functionality."
141 --enable-sim-bswap Use Host specific BSWAP instruction."
143 --enable-sim-cflags=opts Extra CFLAGS for use in building simulator"
145 --enable-sim-debug=opts Enable debugging flags"
147 --enable-sim-stdio Specify whether to use stdio for console input/output."
149 --enable-sim-trace=opts Enable tracing flags"
151 --enable-sim-profile=opts Enable profiling flags"
153 --enable-sim-inline=inlines Specify which functions should be inlined."
155 --enable-sim-alignment=align Specify strict, nonstrict or forced alignment of memory accesses."
157 --enable-sim-hostendian=end Specify host byte endian orientation."
159 --enable-sim-warnings=opts Extra CFLAGS for turning on compiler warnings"
161 --enable-sim-endian=endian Specify target byte endian orientation."
163 --enable-sim-bitsize=N Specify target bitsize (32 or 64)."
165 --enable-sim-float Specify that the target processor has floating point hardware."
167 --enable-sim-smp=n Specify number of processors to configure for (default ${default_sim_smp})."
169 --enable-sim-igen=opts Enable IGEN simulator"
171 --with-x use the X Window System"
173 --with-sim-gpu2=path Use GPU2 library under given directory"
175 --with-sim-funit=path Use target FP library under given directory"
177 # Initialize some variables set by options.
178 # The variables have the same names as the options, with
179 # dashes changed to underlines.
181 cache_file
=.
/config.cache
190 program_transform_name
=s
,x
,x
,
198 bindir
='${exec_prefix}/bin'
199 sbindir
='${exec_prefix}/sbin'
200 libexecdir
='${exec_prefix}/libexec'
201 datadir
='${prefix}/share'
202 sysconfdir
='${prefix}/etc'
203 sharedstatedir
='${prefix}/com'
204 localstatedir
='${prefix}/var'
205 libdir
='${exec_prefix}/lib'
206 includedir
='${prefix}/include'
207 oldincludedir
='/usr/include'
208 infodir
='${prefix}/info'
209 mandir
='${prefix}/man'
211 # Initialize some other variables.
214 SHELL
=${CONFIG_SHELL-/bin/sh}
215 # Maximum number of lines to put in a shell here document.
222 # If the previous option needs an argument, assign it.
223 if test -n "$ac_prev"; then
224 eval "$ac_prev=\$ac_option"
230 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
234 # Accept the important Cygnus configure options, so we can diagnose typos.
238 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
240 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
241 bindir
="$ac_optarg" ;;
243 -build |
--build |
--buil |
--bui |
--bu)
245 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
246 build
="$ac_optarg" ;;
248 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
249 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
250 ac_prev
=cache_file
;;
251 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
252 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
253 cache_file
="$ac_optarg" ;;
255 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
257 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
259 datadir
="$ac_optarg" ;;
261 -disable-* |
--disable-*)
262 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
263 # Reject names that are not valid shell variable names.
264 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
265 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
267 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
268 eval "enable_${ac_feature}=no" ;;
270 -enable-* |
--enable-*)
271 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
272 # Reject names that are not valid shell variable names.
273 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
274 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
276 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
281 eval "enable_${ac_feature}='$ac_optarg'" ;;
283 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
284 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
285 |
--exec |
--exe |
--ex)
286 ac_prev
=exec_prefix
;;
287 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
288 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
289 |
--exec=* |
--exe=* |
--ex=*)
290 exec_prefix
="$ac_optarg" ;;
292 -gas |
--gas |
--ga |
--g)
293 # Obsolete; use --with-gas.
296 -help |
--help |
--hel |
--he)
297 # Omit some internal or obsolete options to make the list less imposing.
298 # This message is too long to be a string in the A/UX 3.1 sh.
300 Usage: configure [options] [host]
301 Options: [defaults in brackets after descriptions]
303 --cache-file=FILE cache test results in FILE
304 --help print this message
305 --no-create do not create output files
306 --quiet, --silent do not print \`checking...' messages
307 --version print the version of autoconf that created configure
308 Directory and file names:
309 --prefix=PREFIX install architecture-independent files in PREFIX
311 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
313 --bindir=DIR user executables in DIR [EPREFIX/bin]
314 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
315 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
316 --datadir=DIR read-only architecture-independent data in DIR
318 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
319 --sharedstatedir=DIR modifiable architecture-independent data in DIR
321 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
322 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
323 --includedir=DIR C header files in DIR [PREFIX/include]
324 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
325 --infodir=DIR info documentation in DIR [PREFIX/info]
326 --mandir=DIR man documentation in DIR [PREFIX/man]
327 --srcdir=DIR find the sources in DIR [configure dir or ..]
328 --program-prefix=PREFIX prepend PREFIX to installed program names
329 --program-suffix=SUFFIX append SUFFIX to installed program names
330 --program-transform-name=PROGRAM
331 run sed PROGRAM on installed program names
335 --build=BUILD configure for building on BUILD [BUILD=HOST]
336 --host=HOST configure for HOST [guessed]
337 --target=TARGET configure for TARGET [TARGET=HOST]
338 Features and packages:
339 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
340 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
341 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
342 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
343 --x-includes=DIR X include files are in DIR
344 --x-libraries=DIR X library files are in DIR
346 if test -n "$ac_help"; then
347 echo "--enable and --with options recognized:$ac_help"
351 -host |
--host |
--hos |
--ho)
353 -host=* |
--host=* |
--hos=* |
--ho=*)
356 -includedir |
--includedir |
--includedi |
--included |
--include \
357 |
--includ |
--inclu |
--incl |
--inc)
358 ac_prev
=includedir
;;
359 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
360 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
361 includedir
="$ac_optarg" ;;
363 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
365 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
366 infodir
="$ac_optarg" ;;
368 -libdir |
--libdir |
--libdi |
--libd)
370 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
371 libdir
="$ac_optarg" ;;
373 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
374 |
--libexe |
--libex |
--libe)
375 ac_prev
=libexecdir
;;
376 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
377 |
--libexe=* |
--libex=* |
--libe=*)
378 libexecdir
="$ac_optarg" ;;
380 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
381 |
--localstate |
--localstat |
--localsta |
--localst \
382 |
--locals |
--local |
--loca |
--loc |
--lo)
383 ac_prev
=localstatedir
;;
384 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
385 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
386 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
387 localstatedir
="$ac_optarg" ;;
389 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
391 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
392 mandir
="$ac_optarg" ;;
395 # Obsolete; use --without-fp.
398 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
402 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
403 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
406 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
407 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
408 |
--oldin |
--oldi |
--old |
--ol |
--o)
409 ac_prev
=oldincludedir
;;
410 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
411 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
412 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
413 oldincludedir
="$ac_optarg" ;;
415 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
417 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
418 prefix
="$ac_optarg" ;;
420 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
421 |
--program-pre |
--program-pr |
--program-p)
422 ac_prev
=program_prefix
;;
423 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
424 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
425 program_prefix
="$ac_optarg" ;;
427 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
428 |
--program-suf |
--program-su |
--program-s)
429 ac_prev
=program_suffix
;;
430 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
431 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
432 program_suffix
="$ac_optarg" ;;
434 -program-transform-name |
--program-transform-name \
435 |
--program-transform-nam |
--program-transform-na \
436 |
--program-transform-n |
--program-transform- \
437 |
--program-transform |
--program-transfor \
438 |
--program-transfo |
--program-transf \
439 |
--program-trans |
--program-tran \
440 |
--progr-tra |
--program-tr |
--program-t)
441 ac_prev
=program_transform_name
;;
442 -program-transform-name=* |
--program-transform-name=* \
443 |
--program-transform-nam=* |
--program-transform-na=* \
444 |
--program-transform-n=* |
--program-transform-=* \
445 |
--program-transform=* |
--program-transfor=* \
446 |
--program-transfo=* |
--program-transf=* \
447 |
--program-trans=* |
--program-tran=* \
448 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
449 program_transform_name
="$ac_optarg" ;;
451 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
452 |
-silent |
--silent |
--silen |
--sile |
--sil)
455 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
457 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
459 sbindir
="$ac_optarg" ;;
461 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
462 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
463 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
465 ac_prev
=sharedstatedir
;;
466 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
467 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
468 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
470 sharedstatedir
="$ac_optarg" ;;
472 -site |
--site |
--sit)
474 -site=* |
--site=* |
--sit=*)
477 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
479 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
480 srcdir
="$ac_optarg" ;;
482 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
483 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
484 ac_prev
=sysconfdir
;;
485 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
486 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
487 sysconfdir
="$ac_optarg" ;;
489 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
491 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
492 target
="$ac_optarg" ;;
494 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
497 -version |
--version |
--versio |
--versi |
--vers)
498 echo "configure generated by autoconf version 2.12.1"
502 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
503 # Reject names that are not valid shell variable names.
504 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
505 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
507 ac_package
=`echo $ac_package| sed 's/-/_/g'`
512 eval "with_${ac_package}='$ac_optarg'" ;;
514 -without-* |
--without-*)
515 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
516 # Reject names that are not valid shell variable names.
517 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
518 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
520 ac_package
=`echo $ac_package| sed 's/-/_/g'`
521 eval "with_${ac_package}=no" ;;
524 # Obsolete; use --with-x.
527 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
528 |
--x-incl |
--x-inc |
--x-in |
--x-i)
529 ac_prev
=x_includes
;;
530 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
531 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
532 x_includes
="$ac_optarg" ;;
534 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
535 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
536 ac_prev
=x_libraries
;;
537 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
538 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
539 x_libraries
="$ac_optarg" ;;
541 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
545 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
546 echo "configure: warning: $ac_option: invalid host type" 1>&2
548 if test "x$nonopt" != xNONE
; then
549 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
557 if test -n "$ac_prev"; then
558 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
561 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
563 # File descriptor usage:
566 # 2 errors and warnings
567 # 3 some systems may open it to /dev/tty
568 # 4 used on the Kubota Titan
569 # 6 checking for... messages and results
570 # 5 compiler messages saved in config.log
571 if test "$silent" = yes; then
579 This file contains any messages produced by compilers while
580 running configure, to aid debugging if configure makes a mistake.
583 # Strip out --no-create and --no-recursion so they do not pile up.
584 # Also quote any args containing shell metacharacters.
589 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
590 |
--no-cr |
--no-c) ;;
591 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
592 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
593 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
594 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
595 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
600 # Only set these to C if already set. These must not be set unconditionally
601 # because not all systems understand e.g. LANG=C (notably SCO).
602 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
603 # Non-C LC_CTYPE values break the ctype check.
604 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
605 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
606 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
607 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
609 # confdefs.h avoids OS command line length limits that DEFS can exceed.
610 rm -rf conftest
* confdefs.h
611 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
614 # A filename unique to this package, relative to the directory that
615 # configure is in, which we can look for to find out if srcdir is correct.
616 ac_unique_file
=Makefile.
in
618 # Find the source files, if location was not specified.
619 if test -z "$srcdir"; then
620 ac_srcdir_defaulted
=yes
621 # Try the directory containing this script, then its parent.
623 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
624 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
626 if test ! -r $srcdir/$ac_unique_file; then
630 ac_srcdir_defaulted
=no
632 if test ! -r $srcdir/$ac_unique_file; then
633 if test "$ac_srcdir_defaulted" = yes; then
634 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
636 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
639 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
641 # Prefer explicitly selected file to automatically selected ones.
642 if test -z "$CONFIG_SITE"; then
643 if test "x$prefix" != xNONE
; then
644 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
646 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
649 for ac_site_file
in $CONFIG_SITE; do
650 if test -r "$ac_site_file"; then
651 echo "loading site script $ac_site_file"
656 if test -r "$cache_file"; then
657 echo "loading cache $cache_file"
660 echo "creating cache $cache_file"
665 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
666 ac_cpp
='$CPP $CPPFLAGS'
667 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
668 ac_link
='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
669 cross_compiling
=$ac_cv_prog_cc_cross
671 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
672 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
673 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
680 ac_n
= ac_c
='\c' ac_t
=
685 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
686 echo "configure:687: checking how to run the C preprocessor" >&5
687 # On Suns, sometimes $CPP names a directory.
688 if test -n "$CPP" && test -d "$CPP"; then
691 if test -z "$CPP"; then
692 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
693 echo $ac_n "(cached) $ac_c" 1>&6
695 # This must be in double quotes, not single quotes, because CPP may get
696 # substituted into the Makefile and "${CC-cc}" will confuse make.
698 # On the NeXT, cc -E runs the code through the compiler's parser,
699 # not just through cpp.
700 cat > conftest.
$ac_ext <<EOF
701 #line 702 "configure"
702 #include "confdefs.h"
706 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
707 { (eval echo configure
:708: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
708 ac_err
=`grep -v '^ *+' conftest.out`
709 if test -z "$ac_err"; then
713 echo "configure: failed program was:" >&5
714 cat conftest.
$ac_ext >&5
716 CPP
="${CC-cc} -E -traditional-cpp"
717 cat > conftest.
$ac_ext <<EOF
718 #line 719 "configure"
719 #include "confdefs.h"
723 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
724 { (eval echo configure
:725: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
725 ac_err
=`grep -v '^ *+' conftest.out`
726 if test -z "$ac_err"; then
730 echo "configure: failed program was:" >&5
731 cat conftest.
$ac_ext >&5
738 ac_cv_prog_CPP
="$CPP"
740 CPP
="$ac_cv_prog_CPP"
742 ac_cv_prog_CPP
="$CPP"
744 echo "$ac_t""$CPP" 1>&6
746 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
747 echo "configure:748: checking whether ${MAKE-make} sets \${MAKE}" >&5
748 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y%./+-%__p_%'`
749 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
750 echo $ac_n "(cached) $ac_c" 1>&6
752 cat > conftestmake
<<\EOF
754 @
echo 'ac_maketemp="${MAKE}"'
756 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
757 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
758 if test -n "$ac_maketemp"; then
759 eval ac_cv_prog_make_
${ac_make}_set
=yes
761 eval ac_cv_prog_make_
${ac_make}_set
=no
765 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
766 echo "$ac_t""yes" 1>&6
769 echo "$ac_t""no" 1>&6
770 SET_MAKE
="MAKE=${MAKE-make}"
773 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
774 echo "configure:775: checking for POSIXized ISC" >&5
775 if test -d /etc
/conf
/kconfig.d
&&
776 grep _POSIX_VERSION
/usr
/include
/sys
/unistd.h
>/dev
/null
2>&1
778 echo "$ac_t""yes" 1>&6
779 ISC
=yes # If later tests want to check for ISC.
780 cat >> confdefs.h
<<\EOF
781 #define _POSIX_SOURCE 1
784 if test "$GCC" = yes; then
790 echo "$ac_t""no" 1>&6
794 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
795 echo "configure:796: checking for ANSI C header files" >&5
796 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
797 echo $ac_n "(cached) $ac_c" 1>&6
799 cat > conftest.
$ac_ext <<EOF
800 #line 801 "configure"
801 #include "confdefs.h"
807 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
808 { (eval echo configure
:809: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
809 ac_err
=`grep -v '^ *+' conftest.out`
810 if test -z "$ac_err"; then
812 ac_cv_header_stdc
=yes
815 echo "configure: failed program was:" >&5
816 cat conftest.
$ac_ext >&5
822 if test $ac_cv_header_stdc = yes; then
823 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
824 cat > conftest.
$ac_ext <<EOF
825 #line 826 "configure"
826 #include "confdefs.h"
829 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
830 egrep "memchr" >/dev
/null
2>&1; then
840 if test $ac_cv_header_stdc = yes; then
841 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
842 cat > conftest.
$ac_ext <<EOF
843 #line 844 "configure"
844 #include "confdefs.h"
847 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
848 egrep "free" >/dev
/null
2>&1; then
858 if test $ac_cv_header_stdc = yes; then
859 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
860 if test "$cross_compiling" = yes; then
863 cat > conftest.
$ac_ext <<EOF
864 #line 865 "configure"
865 #include "confdefs.h"
867 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
868 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
869 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
870 int main () { int i; for (i = 0; i < 256; i++)
871 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
875 if { (eval echo configure
:876: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
879 echo "configure: failed program was:" >&5
880 cat conftest.
$ac_ext >&5
890 echo "$ac_t""$ac_cv_header_stdc" 1>&6
891 if test $ac_cv_header_stdc = yes; then
892 cat >> confdefs.h
<<\EOF
893 #define STDC_HEADERS 1
898 echo $ac_n "checking for working const""... $ac_c" 1>&6
899 echo "configure:900: checking for working const" >&5
900 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
901 echo $ac_n "(cached) $ac_c" 1>&6
903 cat > conftest.
$ac_ext <<EOF
904 #line 905 "configure"
905 #include "confdefs.h"
909 /* Ultrix mips cc rejects this. */
910 typedef int charset[2]; const charset x;
911 /* SunOS 4.1.1 cc rejects this. */
912 char const *const *ccp;
914 /* NEC SVR4.0.2 mips cc rejects this. */
915 struct point {int x, y;};
916 static struct point const zero = {0,0};
917 /* AIX XL C 1.02.0.0 rejects this.
918 It does not let you subtract one const X* pointer from another in an arm
919 of an if-expression whose if-part is not a constant expression */
920 const char *g = "string";
921 ccp = &g + (g ? g-g : 0);
922 /* HPUX 7.0 cc rejects these. */
925 ccp = (char const *const *) p;
926 { /* SCO 3.2v4 cc rejects this. */
928 char const *s = 0 ? (char *) 0 : (char const *) 0;
932 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
934 const int *foo = &x[0];
937 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
938 typedef const int *iptr;
942 { /* AIX XL C 1.02.0.0 rejects this saying
943 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
944 struct s { int j; const int *ap[3]; };
945 struct s *b; b->j = 5;
947 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
953 if { (eval echo configure
:954: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
957 echo "configure: failed program was:" >&5
958 cat conftest.
$ac_ext >&5
965 echo "$ac_t""$ac_cv_c_const" 1>&6
966 if test $ac_cv_c_const = no
; then
967 cat >> confdefs.h
<<\EOF
973 echo $ac_n "checking for inline""... $ac_c" 1>&6
974 echo "configure:975: checking for inline" >&5
975 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
976 echo $ac_n "(cached) $ac_c" 1>&6
979 for ac_kw
in inline __inline__ __inline
; do
980 cat > conftest.
$ac_ext <<EOF
981 #line 982 "configure"
982 #include "confdefs.h"
988 if { (eval echo configure
:989: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
990 ac_cv_c_inline
=$ac_kw; break
992 echo "configure: failed program was:" >&5
993 cat conftest.
$ac_ext >&5
1000 echo "$ac_t""$ac_cv_c_inline" 1>&6
1001 case "$ac_cv_c_inline" in
1003 no
) cat >> confdefs.h
<<\EOF
1007 *) cat >> confdefs.h
<<EOF
1008 #define inline $ac_cv_c_inline
1013 echo $ac_n "checking for off_t""... $ac_c" 1>&6
1014 echo "configure:1015: checking for off_t" >&5
1015 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
1016 echo $ac_n "(cached) $ac_c" 1>&6
1018 cat > conftest.
$ac_ext <<EOF
1019 #line 1020 "configure"
1020 #include "confdefs.h"
1021 #include <sys/types.h>
1027 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1028 egrep "off_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
1030 ac_cv_type_off_t
=yes
1038 echo "$ac_t""$ac_cv_type_off_t" 1>&6
1039 if test $ac_cv_type_off_t = no
; then
1040 cat >> confdefs.h
<<\EOF
1046 echo $ac_n "checking for size_t""... $ac_c" 1>&6
1047 echo "configure:1048: checking for size_t" >&5
1048 if eval "test \"`echo '$''{'ac_cv_type_size_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 "size_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
1063 ac_cv_type_size_t
=yes
1066 ac_cv_type_size_t
=no
1071 echo "$ac_t""$ac_cv_type_size_t" 1>&6
1072 if test $ac_cv_type_size_t = no
; then
1073 cat >> confdefs.h
<<\EOF
1074 #define size_t unsigned
1079 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
1080 # for constant arguments. Useless!
1081 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
1082 echo "configure:1083: checking for working alloca.h" >&5
1083 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
1084 echo $ac_n "(cached) $ac_c" 1>&6
1086 cat > conftest.
$ac_ext <<EOF
1087 #line 1088 "configure"
1088 #include "confdefs.h"
1091 char *p = alloca(2 * sizeof(int));
1094 if { (eval echo configure
:1095: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1096 ac_cv_header_alloca_h
=yes
1098 echo "configure: failed program was:" >&5
1099 cat conftest.
$ac_ext >&5
1101 ac_cv_header_alloca_h
=no
1106 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
1107 if test $ac_cv_header_alloca_h = yes; then
1108 cat >> confdefs.h
<<\EOF
1109 #define HAVE_ALLOCA_H 1
1114 echo $ac_n "checking for alloca""... $ac_c" 1>&6
1115 echo "configure:1116: checking for alloca" >&5
1116 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+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 # define alloca __builtin_alloca
1127 # include <alloca.h>
1132 # ifndef alloca /* predefined by HP cc +Olibcalls */
1140 char *p = (char *) alloca(1);
1143 if { (eval echo configure
:1144: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1145 ac_cv_func_alloca_works
=yes
1147 echo "configure: failed program was:" >&5
1148 cat conftest.
$ac_ext >&5
1150 ac_cv_func_alloca_works
=no
1155 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
1156 if test $ac_cv_func_alloca_works = yes; then
1157 cat >> confdefs.h
<<\EOF
1158 #define HAVE_ALLOCA 1
1163 if test $ac_cv_func_alloca_works = no
; then
1164 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
1165 # that cause trouble. Some versions do not even contain alloca or
1166 # contain a buggy version. If you still want to use their alloca,
1167 # use ar to extract alloca.o from them instead of compiling alloca.c.
1169 cat >> confdefs.h
<<\EOF
1174 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
1175 echo "configure:1176: checking whether alloca needs Cray hooks" >&5
1176 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
1177 echo $ac_n "(cached) $ac_c" 1>&6
1179 cat > conftest.
$ac_ext <<EOF
1180 #line 1181 "configure"
1181 #include "confdefs.h"
1182 #if defined(CRAY) && ! defined(CRAY2)
1189 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1190 egrep "webecray" >/dev
/null
2>&1; then
1201 echo "$ac_t""$ac_cv_os_cray" 1>&6
1202 if test $ac_cv_os_cray = yes; then
1203 for ac_func
in _getb67 GETB67 getb67
; do
1204 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1205 echo "configure:1206: checking for $ac_func" >&5
1206 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1207 echo $ac_n "(cached) $ac_c" 1>&6
1209 cat > conftest.
$ac_ext <<EOF
1210 #line 1211 "configure"
1211 #include "confdefs.h"
1212 /* System header to define __stub macros and hopefully few prototypes,
1213 which can conflict with char $ac_func(); below. */
1215 /* Override any gcc2 internal prototype to avoid an error. */
1216 /* We use char because int might match the return type of a gcc2
1217 builtin and then its argument prototype would still apply. */
1222 /* The GNU C library defines this for functions which it implements
1223 to always fail with ENOSYS. Some functions are actually named
1224 something starting with __ and the normal name is an alias. */
1225 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1233 if { (eval echo configure
:1234: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1235 eval "ac_cv_func_$ac_func=yes"
1237 echo "configure: failed program was:" >&5
1238 cat conftest.
$ac_ext >&5
1240 eval "ac_cv_func_$ac_func=no"
1245 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1246 echo "$ac_t""yes" 1>&6
1247 cat >> confdefs.h
<<EOF
1248 #define CRAY_STACKSEG_END $ac_func
1253 echo "$ac_t""no" 1>&6
1259 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
1260 echo "configure:1261: checking stack direction for C alloca" >&5
1261 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
1262 echo $ac_n "(cached) $ac_c" 1>&6
1264 if test "$cross_compiling" = yes; then
1265 ac_cv_c_stack_direction
=0
1267 cat > conftest.
$ac_ext <<EOF
1268 #line 1269 "configure"
1269 #include "confdefs.h"
1270 find_stack_direction ()
1272 static char *addr = 0;
1277 return find_stack_direction ();
1280 return (&dummy > addr) ? 1 : -1;
1284 exit (find_stack_direction() < 0);
1287 if { (eval echo configure
:1288: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
1289 ac_cv_c_stack_direction
=1
1291 echo "configure: failed program was:" >&5
1292 cat conftest.
$ac_ext >&5
1294 ac_cv_c_stack_direction
=-1
1301 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
1302 cat >> confdefs.h
<<EOF
1303 #define STACK_DIRECTION $ac_cv_c_stack_direction
1308 for ac_hdr
in unistd.h
1310 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1311 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1312 echo "configure:1313: checking for $ac_hdr" >&5
1313 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1314 echo $ac_n "(cached) $ac_c" 1>&6
1316 cat > conftest.
$ac_ext <<EOF
1317 #line 1318 "configure"
1318 #include "confdefs.h"
1321 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1322 { (eval echo configure
:1323: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1323 ac_err
=`grep -v '^ *+' conftest.out`
1324 if test -z "$ac_err"; then
1326 eval "ac_cv_header_$ac_safe=yes"
1329 echo "configure: failed program was:" >&5
1330 cat conftest.
$ac_ext >&5
1332 eval "ac_cv_header_$ac_safe=no"
1336 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1337 echo "$ac_t""yes" 1>&6
1338 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1339 cat >> confdefs.h
<<EOF
1340 #define $ac_tr_hdr 1
1344 echo "$ac_t""no" 1>&6
1348 for ac_func
in getpagesize
1350 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1351 echo "configure:1352: checking for $ac_func" >&5
1352 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1353 echo $ac_n "(cached) $ac_c" 1>&6
1355 cat > conftest.
$ac_ext <<EOF
1356 #line 1357 "configure"
1357 #include "confdefs.h"
1358 /* System header to define __stub macros and hopefully few prototypes,
1359 which can conflict with char $ac_func(); below. */
1361 /* Override any gcc2 internal prototype to avoid an error. */
1362 /* We use char because int might match the return type of a gcc2
1363 builtin and then its argument prototype would still apply. */
1368 /* The GNU C library defines this for functions which it implements
1369 to always fail with ENOSYS. Some functions are actually named
1370 something starting with __ and the normal name is an alias. */
1371 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1379 if { (eval echo configure
:1380: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1381 eval "ac_cv_func_$ac_func=yes"
1383 echo "configure: failed program was:" >&5
1384 cat conftest.
$ac_ext >&5
1386 eval "ac_cv_func_$ac_func=no"
1391 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1392 echo "$ac_t""yes" 1>&6
1393 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1394 cat >> confdefs.h
<<EOF
1395 #define $ac_tr_func 1
1399 echo "$ac_t""no" 1>&6
1403 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
1404 echo "configure:1405: checking for working mmap" >&5
1405 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
1406 echo $ac_n "(cached) $ac_c" 1>&6
1408 if test "$cross_compiling" = yes; then
1409 ac_cv_func_mmap_fixed_mapped
=no
1411 cat > conftest.
$ac_ext <<EOF
1412 #line 1413 "configure"
1413 #include "confdefs.h"
1415 /* Thanks to Mike Haertel and Jim Avera for this test.
1416 Here is a matrix of mmap possibilities:
1417 mmap private not fixed
1418 mmap private fixed at somewhere currently unmapped
1419 mmap private fixed at somewhere already mapped
1420 mmap shared not fixed
1421 mmap shared fixed at somewhere currently unmapped
1422 mmap shared fixed at somewhere already mapped
1423 For private mappings, we should verify that changes cannot be read()
1424 back from the file, nor mmap's back from the file at a different
1425 address. (There have been systems where private was not correctly
1426 implemented like the infamous i386 svr4.0, and systems where the
1427 VM page cache was not coherent with the filesystem buffer cache
1428 like early versions of FreeBSD and possibly contemporary NetBSD.)
1429 For shared mappings, we should conversely verify that changes get
1430 propogated back to all the places they're supposed to be.
1432 Grep wants private fixed already mapped.
1433 The main things grep needs to know about mmap are:
1434 * does it exist and is it safe to write into the mmap'd area
1435 * how to use it (BSD variants) */
1436 #include <sys/types.h>
1438 #include <sys/mman.h>
1440 /* This mess was copied from the GNU getpagesize.h. */
1441 #ifndef HAVE_GETPAGESIZE
1442 # ifdef HAVE_UNISTD_H
1443 # include <unistd.h>
1446 /* Assume that all systems that can run configure have sys/param.h. */
1447 # ifndef HAVE_SYS_PARAM_H
1448 # define HAVE_SYS_PARAM_H 1
1451 # ifdef _SC_PAGESIZE
1452 # define getpagesize() sysconf(_SC_PAGESIZE)
1453 # else /* no _SC_PAGESIZE */
1454 # ifdef HAVE_SYS_PARAM_H
1455 # include <sys/param.h>
1456 # ifdef EXEC_PAGESIZE
1457 # define getpagesize() EXEC_PAGESIZE
1458 # else /* no EXEC_PAGESIZE */
1460 # define getpagesize() NBPG * CLSIZE
1463 # endif /* no CLSIZE */
1464 # else /* no NBPG */
1466 # define getpagesize() NBPC
1467 # else /* no NBPC */
1469 # define getpagesize() PAGESIZE
1470 # endif /* PAGESIZE */
1471 # endif /* no NBPC */
1472 # endif /* no NBPG */
1473 # endif /* no EXEC_PAGESIZE */
1474 # else /* no HAVE_SYS_PARAM_H */
1475 # define getpagesize() 8192 /* punt totally */
1476 # endif /* no HAVE_SYS_PARAM_H */
1477 # endif /* no _SC_PAGESIZE */
1479 #endif /* no HAVE_GETPAGESIZE */
1482 extern "C" { void *malloc(unsigned); }
1490 char *data, *data2, *data3;
1494 pagesize = getpagesize();
1497 * First, make a file with some known garbage in it.
1499 data = malloc(pagesize);
1502 for (i = 0; i < pagesize; ++i)
1503 *(data + i) = rand();
1505 fd = creat("conftestmmap", 0600);
1508 if (write(fd, data, pagesize) != pagesize)
1513 * Next, try to mmap the file at a fixed address which
1514 * already has something else allocated at it. If we can,
1515 * also make sure that we see the same garbage.
1517 fd = open("conftestmmap", O_RDWR);
1520 data2 = malloc(2 * pagesize);
1523 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
1524 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
1525 MAP_PRIVATE | MAP_FIXED, fd, 0L))
1527 for (i = 0; i < pagesize; ++i)
1528 if (*(data + i) != *(data2 + i))
1532 * Finally, make sure that changes to the mapped area
1533 * do not percolate back to the file as seen by read().
1534 * (This is a bug on some variants of i386 svr4.0.)
1536 for (i = 0; i < pagesize; ++i)
1537 *(data2 + i) = *(data2 + i) + 1;
1538 data3 = malloc(pagesize);
1541 if (read(fd, data3, pagesize) != pagesize)
1543 for (i = 0; i < pagesize; ++i)
1544 if (*(data + i) != *(data3 + i))
1547 unlink("conftestmmap");
1552 if { (eval echo configure
:1553: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
1554 ac_cv_func_mmap_fixed_mapped
=yes
1556 echo "configure: failed program was:" >&5
1557 cat conftest.
$ac_ext >&5
1559 ac_cv_func_mmap_fixed_mapped
=no
1566 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
1567 if test $ac_cv_func_mmap_fixed_mapped = yes; then
1568 cat >> confdefs.h
<<\EOF
1575 # autoconf.info says this should be called right after AC_INIT.
1579 for ac_dir
in `cd $srcdir;pwd`/..
/..
$srcdir/`cd $srcdir;pwd`/..
/..
; do
1580 if test -f $ac_dir/install-sh
; then
1582 ac_install_sh
="$ac_aux_dir/install-sh -c"
1584 elif test -f $ac_dir/install.sh
; then
1586 ac_install_sh
="$ac_aux_dir/install.sh -c"
1590 if test -z "$ac_aux_dir"; then
1591 { echo "configure: error: can not find install-sh or install.sh in `cd $srcdir;pwd`/../.. $srcdir/`cd $srcdir;pwd`/../.." 1>&2; exit 1; }
1593 ac_config_guess
=$ac_aux_dir/config.guess
1594 ac_config_sub
=$ac_aux_dir/config.sub
1595 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
1598 # Do some error checking and defaulting for the host and target type.
1600 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
1603 # 1. You are not allowed to specify --host, --target, and nonopt at the
1605 # 2. Host defaults to nonopt.
1606 # 3. If nonopt is not specified, then host defaults to the current host,
1607 # as determined by config.guess.
1608 # 4. Target and build default to nonopt.
1609 # 5. If nonopt is not specified, then target and build default to host.
1611 # The aliases save the names the user supplied, while $host etc.
1612 # will get canonicalized.
1613 case $host---$target---$nonopt in
1614 NONE---
*---* |
*---NONE---* |
*---*---NONE) ;;
1615 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
1619 # Make sure we can run config.sub.
1620 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4
>/dev
/null
2>&1; then :
1621 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1624 echo $ac_n "checking host system type""... $ac_c" 1>&6
1625 echo "configure:1626: checking host system type" >&5
1628 case "$host_alias" in
1632 if host_alias
=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1633 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1635 *) host_alias
=$nonopt ;;
1639 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1640 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1641 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1642 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1643 echo "$ac_t""$host" 1>&6
1645 echo $ac_n "checking target system type""... $ac_c" 1>&6
1646 echo "configure:1647: checking target system type" >&5
1648 target_alias
=$target
1649 case "$target_alias" in
1652 NONE
) target_alias
=$host_alias ;;
1653 *) target_alias
=$nonopt ;;
1657 target
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
1658 target_cpu
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1659 target_vendor
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1660 target_os
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1661 echo "$ac_t""$target" 1>&6
1663 echo $ac_n "checking build system type""... $ac_c" 1>&6
1664 echo "configure:1665: checking build system type" >&5
1667 case "$build_alias" in
1670 NONE
) build_alias
=$host_alias ;;
1671 *) build_alias
=$nonopt ;;
1675 build
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1676 build_cpu
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1677 build_vendor
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1678 build_os
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1679 echo "$ac_t""$build" 1>&6
1681 test "$host_alias" != "$target_alias" &&
1682 test "$program_prefix$program_suffix$program_transform_name" = \
1684 program_prefix
=${target_alias}-
1686 if test "$program_transform_name" = s
,x
,x
,; then
1687 program_transform_name
=
1689 # Double any \ or $. echo might interpret backslashes.
1690 cat <<\EOF_SED
> conftestsed
1691 s
,\\,\\\\,g
; s
,\$
,$$
,g
1693 program_transform_name
="`echo $program_transform_name|sed -f conftestsed`"
1696 test "$program_prefix" != NONE
&&
1697 program_transform_name
="s,^,${program_prefix},; $program_transform_name"
1698 # Use a double $ so make ignores it.
1699 test "$program_suffix" != NONE
&&
1700 program_transform_name
="s,\$\$,${program_suffix},; $program_transform_name"
1702 # sed with no file args requires a program.
1703 test "$program_transform_name" = "" && program_transform_name
="s,x,x,"
1705 # Extract the first word of "gcc", so it can be a program name with args.
1706 set dummy gcc
; ac_word
=$2
1707 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1708 echo "configure:1709: checking for $ac_word" >&5
1709 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1710 echo $ac_n "(cached) $ac_c" 1>&6
1712 if test -n "$CC"; then
1713 ac_cv_prog_CC
="$CC" # Let the user override the test.
1715 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1716 for ac_dir
in $PATH; do
1717 test -z "$ac_dir" && ac_dir
=.
1718 if test -f $ac_dir/$ac_word; then
1727 if test -n "$CC"; then
1728 echo "$ac_t""$CC" 1>&6
1730 echo "$ac_t""no" 1>&6
1733 if test -z "$CC"; then
1734 # Extract the first word of "cc", so it can be a program name with args.
1735 set dummy cc
; ac_word
=$2
1736 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1737 echo "configure:1738: checking for $ac_word" >&5
1738 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1739 echo $ac_n "(cached) $ac_c" 1>&6
1741 if test -n "$CC"; then
1742 ac_cv_prog_CC
="$CC" # Let the user override the test.
1744 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1746 for ac_dir
in $PATH; do
1747 test -z "$ac_dir" && ac_dir
=.
1748 if test -f $ac_dir/$ac_word; then
1749 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1750 ac_prog_rejected
=yes
1758 if test $ac_prog_rejected = yes; then
1759 # We found a bogon in the path, so make sure we never use it.
1760 set dummy
$ac_cv_prog_CC
1762 if test $# -gt 0; then
1763 # We chose a different compiler from the bogus one.
1764 # However, it has the same basename, so the bogon will be chosen
1765 # first if we set CC to just the basename; use the full file name.
1767 set dummy
"$ac_dir/$ac_word" "$@"
1775 if test -n "$CC"; then
1776 echo "$ac_t""$CC" 1>&6
1778 echo "$ac_t""no" 1>&6
1781 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1784 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1785 echo "configure:1786: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1788 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1789 ac_cpp
='$CPP $CPPFLAGS'
1790 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1791 ac_link
='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1792 cross_compiling
=$ac_cv_prog_cc_cross
1794 cat > conftest.
$ac_ext <<EOF
1795 #line 1796 "configure"
1796 #include "confdefs.h"
1799 if { (eval echo configure
:1800: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1800 ac_cv_prog_cc_works
=yes
1801 # If we can't run a trivial program, we are probably using a cross compiler.
1802 if (.
/conftest
; exit) 2>/dev
/null
; then
1803 ac_cv_prog_cc_cross
=no
1805 ac_cv_prog_cc_cross
=yes
1808 echo "configure: failed program was:" >&5
1809 cat conftest.
$ac_ext >&5
1810 ac_cv_prog_cc_works
=no
1814 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1815 if test $ac_cv_prog_cc_works = no
; then
1816 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1818 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1819 echo "configure:1820: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1820 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1821 cross_compiling
=$ac_cv_prog_cc_cross
1823 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1824 echo "configure:1825: checking whether we are using GNU C" >&5
1825 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1826 echo $ac_n "(cached) $ac_c" 1>&6
1828 cat > conftest.c
<<EOF
1833 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:1834: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
1840 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1842 if test $ac_cv_prog_gcc = yes; then
1844 ac_test_CFLAGS
="${CFLAGS+set}"
1845 ac_save_CFLAGS
="$CFLAGS"
1847 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1848 echo "configure:1849: checking whether ${CC-cc} accepts -g" >&5
1849 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1850 echo $ac_n "(cached) $ac_c" 1>&6
1852 echo 'void f(){}' > conftest.c
1853 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1862 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1863 if test "$ac_test_CFLAGS" = set; then
1864 CFLAGS
="$ac_save_CFLAGS"
1865 elif test $ac_cv_prog_cc_g = yes; then
1872 test "${CFLAGS+set}" = set || CFLAGS
="-g"
1875 # Find a good install program. We prefer a C program (faster),
1876 # so one script is as good as another. But avoid the broken or
1877 # incompatible versions:
1878 # SysV /etc/install, /usr/sbin/install
1879 # SunOS /usr/etc/install
1880 # IRIX /sbin/install
1882 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1883 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1884 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1885 # ./install, which can be erroneously created by make from ./install.sh.
1886 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1887 echo "configure:1888: checking for a BSD compatible install" >&5
1888 if test -z "$INSTALL"; then
1889 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1890 echo $ac_n "(cached) $ac_c" 1>&6
1892 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="${IFS}:"
1893 for ac_dir
in $PATH; do
1894 # Account for people who put trailing slashes in PATH elements.
1896 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
1898 # OSF1 and SCO ODT 3.0 have their own names for install.
1899 # Don't use installbsd from OSF since it installs stuff as root
1901 for ac_prog
in ginstall scoinst
install; do
1902 if test -f $ac_dir/$ac_prog; then
1903 if test $ac_prog = install &&
1904 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
1905 # AIX install. It has an incompatible calling convention.
1908 ac_cv_path_install
="$ac_dir/$ac_prog -c"
1919 if test "${ac_cv_path_install+set}" = set; then
1920 INSTALL
="$ac_cv_path_install"
1922 # As a last resort, use the slow shell script. We don't cache a
1923 # path for INSTALL within a source directory, because that will
1924 # break other packages using the cache if that directory is
1925 # removed, or if the path is relative.
1926 INSTALL
="$ac_install_sh"
1929 echo "$ac_t""$INSTALL" 1>&6
1931 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1932 # It thinks the first close brace ends the variable substitution.
1933 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
1935 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
1938 # Put a plausible default for CC_FOR_BUILD in Makefile.
1939 if test "x$cross_compiling" = "xno"; then
1940 CC_FOR_BUILD
='$(CC)'
1950 # Extract the first word of "ranlib", so it can be a program name with args.
1951 set dummy ranlib
; ac_word
=$2
1952 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1953 echo "configure:1954: checking for $ac_word" >&5
1954 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1955 echo $ac_n "(cached) $ac_c" 1>&6
1957 if test -n "$RANLIB"; then
1958 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1960 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1961 for ac_dir
in $PATH; do
1962 test -z "$ac_dir" && ac_dir
=.
1963 if test -f $ac_dir/$ac_word; then
1964 ac_cv_prog_RANLIB
="ranlib"
1969 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
1972 RANLIB
="$ac_cv_prog_RANLIB"
1973 if test -n "$RANLIB"; then
1974 echo "$ac_t""$RANLIB" 1>&6
1976 echo "$ac_t""no" 1>&6
1982 for ac_hdr
in argz.h limits.h locale.h nl_types.h malloc.h string.h \
1983 unistd.h values.h sys
/param.h
1985 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1986 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1987 echo "configure:1988: checking for $ac_hdr" >&5
1988 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1989 echo $ac_n "(cached) $ac_c" 1>&6
1991 cat > conftest.
$ac_ext <<EOF
1992 #line 1993 "configure"
1993 #include "confdefs.h"
1996 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1997 { (eval echo configure
:1998: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1998 ac_err
=`grep -v '^ *+' conftest.out`
1999 if test -z "$ac_err"; then
2001 eval "ac_cv_header_$ac_safe=yes"
2004 echo "configure: failed program was:" >&5
2005 cat conftest.
$ac_ext >&5
2007 eval "ac_cv_header_$ac_safe=no"
2011 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2012 echo "$ac_t""yes" 1>&6
2013 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2014 cat >> confdefs.h
<<EOF
2015 #define $ac_tr_hdr 1
2019 echo "$ac_t""no" 1>&6
2023 for ac_func
in getcwd munmap putenv setenv setlocale strchr strcasecmp \
2024 __argz_count __argz_stringify __argz_next
2026 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2027 echo "configure:2028: checking for $ac_func" >&5
2028 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2029 echo $ac_n "(cached) $ac_c" 1>&6
2031 cat > conftest.
$ac_ext <<EOF
2032 #line 2033 "configure"
2033 #include "confdefs.h"
2034 /* System header to define __stub macros and hopefully few prototypes,
2035 which can conflict with char $ac_func(); below. */
2037 /* Override any gcc2 internal prototype to avoid an error. */
2038 /* We use char because int might match the return type of a gcc2
2039 builtin and then its argument prototype would still apply. */
2044 /* The GNU C library defines this for functions which it implements
2045 to always fail with ENOSYS. Some functions are actually named
2046 something starting with __ and the normal name is an alias. */
2047 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2055 if { (eval echo configure
:2056: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2057 eval "ac_cv_func_$ac_func=yes"
2059 echo "configure: failed program was:" >&5
2060 cat conftest.
$ac_ext >&5
2062 eval "ac_cv_func_$ac_func=no"
2067 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2068 echo "$ac_t""yes" 1>&6
2069 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2070 cat >> confdefs.h
<<EOF
2071 #define $ac_tr_func 1
2075 echo "$ac_t""no" 1>&6
2080 if test "${ac_cv_func_stpcpy+set}" != "set"; then
2081 for ac_func
in stpcpy
2083 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2084 echo "configure:2085: checking for $ac_func" >&5
2085 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2086 echo $ac_n "(cached) $ac_c" 1>&6
2088 cat > conftest.
$ac_ext <<EOF
2089 #line 2090 "configure"
2090 #include "confdefs.h"
2091 /* System header to define __stub macros and hopefully few prototypes,
2092 which can conflict with char $ac_func(); below. */
2094 /* Override any gcc2 internal prototype to avoid an error. */
2095 /* We use char because int might match the return type of a gcc2
2096 builtin and then its argument prototype would still apply. */
2101 /* The GNU C library defines this for functions which it implements
2102 to always fail with ENOSYS. Some functions are actually named
2103 something starting with __ and the normal name is an alias. */
2104 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2112 if { (eval echo configure
:2113: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2114 eval "ac_cv_func_$ac_func=yes"
2116 echo "configure: failed program was:" >&5
2117 cat conftest.
$ac_ext >&5
2119 eval "ac_cv_func_$ac_func=no"
2124 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2125 echo "$ac_t""yes" 1>&6
2126 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2127 cat >> confdefs.h
<<EOF
2128 #define $ac_tr_func 1
2132 echo "$ac_t""no" 1>&6
2137 if test "${ac_cv_func_stpcpy}" = "yes"; then
2138 cat >> confdefs.h
<<\EOF
2139 #define HAVE_STPCPY 1
2144 if test $ac_cv_header_locale_h = yes; then
2145 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
2146 echo "configure:2147: checking for LC_MESSAGES" >&5
2147 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
2148 echo $ac_n "(cached) $ac_c" 1>&6
2150 cat > conftest.
$ac_ext <<EOF
2151 #line 2152 "configure"
2152 #include "confdefs.h"
2158 if { (eval echo configure
:2159: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2160 am_cv_val_LC_MESSAGES
=yes
2162 echo "configure: failed program was:" >&5
2163 cat conftest.
$ac_ext >&5
2165 am_cv_val_LC_MESSAGES
=no
2170 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
2171 if test $am_cv_val_LC_MESSAGES = yes; then
2172 cat >> confdefs.h
<<\EOF
2173 #define HAVE_LC_MESSAGES 1
2178 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
2179 echo "configure:2180: checking whether NLS is requested" >&5
2180 # Check whether --enable-nls or --disable-nls was given.
2181 if test "${enable_nls+set}" = set; then
2182 enableval
="$enable_nls"
2188 echo "$ac_t""$USE_NLS" 1>&6
2191 USE_INCLUDED_LIBINTL
=no
2193 if test "$USE_NLS" = "yes"; then
2194 cat >> confdefs.h
<<\EOF
2195 #define ENABLE_NLS 1
2198 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
2199 echo "configure:2200: checking whether included gettext is requested" >&5
2200 # Check whether --with-included-gettext or --without-included-gettext was given.
2201 if test "${with_included_gettext+set}" = set; then
2202 withval
="$with_included_gettext"
2203 nls_cv_force_use_gnu_gettext
=$withval
2205 nls_cv_force_use_gnu_gettext
=no
2208 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
2210 nls_cv_use_gnu_gettext
="$nls_cv_force_use_gnu_gettext"
2211 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
2213 nls_cv_header_libgt
=
2216 ac_safe
=`echo "libintl.h" | sed 'y%./+-%__p_%'`
2217 echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
2218 echo "configure:2219: checking for libintl.h" >&5
2219 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2220 echo $ac_n "(cached) $ac_c" 1>&6
2222 cat > conftest.
$ac_ext <<EOF
2223 #line 2224 "configure"
2224 #include "confdefs.h"
2225 #include <libintl.h>
2227 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2228 { (eval echo configure
:2229: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2229 ac_err
=`grep -v '^ *+' conftest.out`
2230 if test -z "$ac_err"; then
2232 eval "ac_cv_header_$ac_safe=yes"
2235 echo "configure: failed program was:" >&5
2236 cat conftest.
$ac_ext >&5
2238 eval "ac_cv_header_$ac_safe=no"
2242 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2243 echo "$ac_t""yes" 1>&6
2244 echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6
2245 echo "configure:2246: checking for gettext in libc" >&5
2246 if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then
2247 echo $ac_n "(cached) $ac_c" 1>&6
2249 cat > conftest.
$ac_ext <<EOF
2250 #line 2251 "configure"
2251 #include "confdefs.h"
2252 #include <libintl.h>
2254 return (int) gettext ("")
2257 if { (eval echo configure
:2258: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2259 gt_cv_func_gettext_libc
=yes
2261 echo "configure: failed program was:" >&5
2262 cat conftest.
$ac_ext >&5
2264 gt_cv_func_gettext_libc
=no
2269 echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6
2271 if test "$gt_cv_func_gettext_libc" != "yes"; then
2272 echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6
2273 echo "configure:2274: checking for bindtextdomain in -lintl" >&5
2274 ac_lib_var
=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'`
2275 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2276 echo $ac_n "(cached) $ac_c" 1>&6
2278 ac_save_LIBS
="$LIBS"
2280 cat > conftest.
$ac_ext <<EOF
2281 #line 2282 "configure"
2282 #include "confdefs.h"
2283 /* Override any gcc2 internal prototype to avoid an error. */
2284 /* We use char because int might match the return type of a gcc2
2285 builtin and then its argument prototype would still apply. */
2286 char bindtextdomain();
2292 if { (eval echo configure
:2293: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2294 eval "ac_cv_lib_$ac_lib_var=yes"
2296 echo "configure: failed program was:" >&5
2297 cat conftest.
$ac_ext >&5
2299 eval "ac_cv_lib_$ac_lib_var=no"
2302 LIBS
="$ac_save_LIBS"
2305 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2306 echo "$ac_t""yes" 1>&6
2307 echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6
2308 echo "configure:2309: checking for gettext in libintl" >&5
2309 if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then
2310 echo $ac_n "(cached) $ac_c" 1>&6
2312 cat > conftest.
$ac_ext <<EOF
2313 #line 2314 "configure"
2314 #include "confdefs.h"
2317 return (int) gettext ("")
2320 if { (eval echo configure
:2321: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2322 gt_cv_func_gettext_libintl
=yes
2324 echo "configure: failed program was:" >&5
2325 cat conftest.
$ac_ext >&5
2327 gt_cv_func_gettext_libintl
=no
2332 echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6
2334 echo "$ac_t""no" 1>&6
2339 if test "$gt_cv_func_gettext_libc" = "yes" \
2340 ||
test "$gt_cv_func_gettext_libintl" = "yes"; then
2341 cat >> confdefs.h
<<\EOF
2342 #define HAVE_GETTEXT 1
2345 # Extract the first word of "msgfmt", so it can be a program name with args.
2346 set dummy msgfmt
; ac_word
=$2
2347 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2348 echo "configure:2349: checking for $ac_word" >&5
2349 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2350 echo $ac_n "(cached) $ac_c" 1>&6
2354 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
2357 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
2358 for ac_dir
in $PATH; do
2359 test -z "$ac_dir" && ac_dir
=.
2360 if test -f $ac_dir/$ac_word; then
2361 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
2362 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
2368 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
="no"
2372 MSGFMT
="$ac_cv_path_MSGFMT"
2373 if test -n "$MSGFMT"; then
2374 echo "$ac_t""$MSGFMT" 1>&6
2376 echo "$ac_t""no" 1>&6
2378 if test "$MSGFMT" != "no"; then
2379 for ac_func
in dcgettext
2381 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2382 echo "configure:2383: checking for $ac_func" >&5
2383 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2384 echo $ac_n "(cached) $ac_c" 1>&6
2386 cat > conftest.
$ac_ext <<EOF
2387 #line 2388 "configure"
2388 #include "confdefs.h"
2389 /* System header to define __stub macros and hopefully few prototypes,
2390 which can conflict with char $ac_func(); below. */
2392 /* Override any gcc2 internal prototype to avoid an error. */
2393 /* We use char because int might match the return type of a gcc2
2394 builtin and then its argument prototype would still apply. */
2399 /* The GNU C library defines this for functions which it implements
2400 to always fail with ENOSYS. Some functions are actually named
2401 something starting with __ and the normal name is an alias. */
2402 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2410 if { (eval echo configure
:2411: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2412 eval "ac_cv_func_$ac_func=yes"
2414 echo "configure: failed program was:" >&5
2415 cat conftest.
$ac_ext >&5
2417 eval "ac_cv_func_$ac_func=no"
2422 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2423 echo "$ac_t""yes" 1>&6
2424 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2425 cat >> confdefs.h
<<EOF
2426 #define $ac_tr_func 1
2430 echo "$ac_t""no" 1>&6
2434 # Extract the first word of "gmsgfmt", so it can be a program name with args.
2435 set dummy gmsgfmt
; ac_word
=$2
2436 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2437 echo "configure:2438: checking for $ac_word" >&5
2438 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2439 echo $ac_n "(cached) $ac_c" 1>&6
2443 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
2446 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a dos path.
2449 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
2450 for ac_dir
in $PATH; do
2451 test -z "$ac_dir" && ac_dir
=.
2452 if test -f $ac_dir/$ac_word; then
2453 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
2458 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
2462 GMSGFMT
="$ac_cv_path_GMSGFMT"
2463 if test -n "$GMSGFMT"; then
2464 echo "$ac_t""$GMSGFMT" 1>&6
2466 echo "$ac_t""no" 1>&6
2469 # Extract the first word of "xgettext", so it can be a program name with args.
2470 set dummy xgettext
; ac_word
=$2
2471 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2472 echo "configure:2473: checking for $ac_word" >&5
2473 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
2474 echo $ac_n "(cached) $ac_c" 1>&6
2478 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
2481 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
2482 for ac_dir
in $PATH; do
2483 test -z "$ac_dir" && ac_dir
=.
2484 if test -f $ac_dir/$ac_word; then
2485 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
2486 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
2492 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
2496 XGETTEXT
="$ac_cv_path_XGETTEXT"
2497 if test -n "$XGETTEXT"; then
2498 echo "$ac_t""$XGETTEXT" 1>&6
2500 echo "$ac_t""no" 1>&6
2503 cat > conftest.
$ac_ext <<EOF
2504 #line 2505 "configure"
2505 #include "confdefs.h"
2508 extern int _nl_msg_cat_cntr;
2509 return _nl_msg_cat_cntr
2512 if { (eval echo configure
:2513: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2517 echo "configure: failed program was:" >&5
2518 cat conftest.
$ac_ext >&5
2529 echo "$ac_t""no" 1>&6
2534 if test "$CATOBJEXT" = "NONE"; then
2535 nls_cv_use_gnu_gettext
=yes
2539 if test "$nls_cv_use_gnu_gettext" = "yes"; then
2540 INTLOBJS
="\$(GETTOBJS)"
2541 # Extract the first word of "msgfmt", so it can be a program name with args.
2542 set dummy msgfmt
; ac_word
=$2
2543 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2544 echo "configure:2545: checking for $ac_word" >&5
2545 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2546 echo $ac_n "(cached) $ac_c" 1>&6
2550 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
2553 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
2554 for ac_dir
in $PATH; do
2555 test -z "$ac_dir" && ac_dir
=.
2556 if test -f $ac_dir/$ac_word; then
2557 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
2558 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
2564 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
="msgfmt"
2568 MSGFMT
="$ac_cv_path_MSGFMT"
2569 if test -n "$MSGFMT"; then
2570 echo "$ac_t""$MSGFMT" 1>&6
2572 echo "$ac_t""no" 1>&6
2575 # Extract the first word of "gmsgfmt", so it can be a program name with args.
2576 set dummy gmsgfmt
; ac_word
=$2
2577 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2578 echo "configure:2579: checking for $ac_word" >&5
2579 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2580 echo $ac_n "(cached) $ac_c" 1>&6
2584 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
2587 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a dos path.
2590 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
2591 for ac_dir
in $PATH; do
2592 test -z "$ac_dir" && ac_dir
=.
2593 if test -f $ac_dir/$ac_word; then
2594 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
2599 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
2603 GMSGFMT
="$ac_cv_path_GMSGFMT"
2604 if test -n "$GMSGFMT"; then
2605 echo "$ac_t""$GMSGFMT" 1>&6
2607 echo "$ac_t""no" 1>&6
2610 # Extract the first word of "xgettext", so it can be a program name with args.
2611 set dummy xgettext
; ac_word
=$2
2612 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2613 echo "configure:2614: checking for $ac_word" >&5
2614 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
2615 echo $ac_n "(cached) $ac_c" 1>&6
2619 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
2622 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
2623 for ac_dir
in $PATH; do
2624 test -z "$ac_dir" && ac_dir
=.
2625 if test -f $ac_dir/$ac_word; then
2626 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
2627 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
2633 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
2637 XGETTEXT
="$ac_cv_path_XGETTEXT"
2638 if test -n "$XGETTEXT"; then
2639 echo "$ac_t""$XGETTEXT" 1>&6
2641 echo "$ac_t""no" 1>&6
2645 USE_INCLUDED_LIBINTL
=yes
2649 INTLDEPS
='$(top_builddir)/../intl/libintl.a'
2651 LIBS
=`echo $LIBS | sed -e 's/-lintl//'`
2652 nls_cv_header_intl
=libintl.h
2653 nls_cv_header_libgt
=libgettext.h
2656 if test "$XGETTEXT" != ":"; then
2657 if $XGETTEXT --omit-header /dev
/null
2> /dev
/null
; then
2660 echo "$ac_t""found xgettext programs is not GNU xgettext; ignore it" 1>&6
2665 # We need to process the po/ directory.
2669 nls_cv_header_intl
=libintl.h
2670 nls_cv_header_libgt
=libgettext.h
2673 # If this is used in GNU gettext we have to set USE_NLS to `yes'
2674 # because some of the sources are only built for this goal.
2675 if test "$PACKAGE" = gettext; then
2677 USE_INCLUDED_LIBINTL
=yes
2680 for lang
in $ALL_LINGUAS; do
2681 GMOFILES
="$GMOFILES $lang.gmo"
2682 POFILES
="$POFILES $lang.po"
2698 if test "x$CATOBJEXT" != "x"; then
2699 if test "x$ALL_LINGUAS" = "x"; then
2702 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
2703 echo "configure:2704: checking for catalogs to be installed" >&5
2705 for lang
in ${LINGUAS=$ALL_LINGUAS}; do
2706 case "$ALL_LINGUAS" in
2707 *$lang*) NEW_LINGUAS
="$NEW_LINGUAS $lang" ;;
2710 LINGUAS
=$NEW_LINGUAS
2711 echo "$ac_t""$LINGUAS" 1>&6
2714 if test -n "$LINGUAS"; then
2715 for lang
in $LINGUAS; do CATALOGS
="$CATALOGS $lang$CATOBJEXT"; done
2719 if test $ac_cv_header_locale_h = yes; then
2720 INCLUDE_LOCALE_H
="#include <locale.h>"
2723 /* The system does not provide the header <locale.h>. Take care yourself. */"
2727 if test -f $srcdir/po2tbl.
sed.
in; then
2728 if test "$CATOBJEXT" = ".cat"; then
2729 ac_safe
=`echo "linux/version.h" | sed 'y%./+-%__p_%'`
2730 echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6
2731 echo "configure:2732: checking for linux/version.h" >&5
2732 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2733 echo $ac_n "(cached) $ac_c" 1>&6
2735 cat > conftest.
$ac_ext <<EOF
2736 #line 2737 "configure"
2737 #include "confdefs.h"
2738 #include <linux/version.h>
2740 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2741 { (eval echo configure
:2742: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2742 ac_err
=`grep -v '^ *+' conftest.out`
2743 if test -z "$ac_err"; then
2745 eval "ac_cv_header_$ac_safe=yes"
2748 echo "configure: failed program was:" >&5
2749 cat conftest.
$ac_ext >&5
2751 eval "ac_cv_header_$ac_safe=no"
2755 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2756 echo "$ac_t""yes" 1>&6
2759 echo "$ac_t""no" 1>&6
2764 sed -e '/^#/d' $srcdir/$msgformat-msg.
sed > po2msg.
sed
2766 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
2767 $srcdir/po2tbl.
sed.
in > po2tbl.
sed
2770 if test "$PACKAGE" = "gettext"; then
2780 MKINSTALLDIRS
="\$(srcdir)/../../mkinstalldirs"
2786 if test -d $srcdir/po
; then
2787 test -d po || mkdir po
2788 if test "x$srcdir" != "x."; then
2789 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
2790 posrcprefix
="$srcdir/"
2792 posrcprefix
="../$srcdir/"
2798 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
2799 < $srcdir/po
/POTFILES.
in > po
/POTFILES
2803 # Check for common headers.
2804 # FIXME: Seems to me this can cause problems for i386-windows hosts.
2805 # At one point there were hardcoded AC_DEFINE's if ${host} = i386-*-windows*.
2806 for ac_hdr
in stdlib.h string.h
strings.h unistd.h
time.h
2808 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2809 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2810 echo "configure:2811: checking for $ac_hdr" >&5
2811 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2812 echo $ac_n "(cached) $ac_c" 1>&6
2814 cat > conftest.
$ac_ext <<EOF
2815 #line 2816 "configure"
2816 #include "confdefs.h"
2819 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2820 { (eval echo configure
:2821: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2821 ac_err
=`grep -v '^ *+' conftest.out`
2822 if test -z "$ac_err"; then
2824 eval "ac_cv_header_$ac_safe=yes"
2827 echo "configure: failed program was:" >&5
2828 cat conftest.
$ac_ext >&5
2830 eval "ac_cv_header_$ac_safe=no"
2834 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2835 echo "$ac_t""yes" 1>&6
2836 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2837 cat >> confdefs.h
<<EOF
2838 #define $ac_tr_hdr 1
2842 echo "$ac_t""no" 1>&6
2846 for ac_hdr
in sys
/time.h sys
/resource.h
2848 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2849 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2850 echo "configure:2851: checking for $ac_hdr" >&5
2851 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2852 echo $ac_n "(cached) $ac_c" 1>&6
2854 cat > conftest.
$ac_ext <<EOF
2855 #line 2856 "configure"
2856 #include "confdefs.h"
2859 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2860 { (eval echo configure
:2861: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2861 ac_err
=`grep -v '^ *+' conftest.out`
2862 if test -z "$ac_err"; then
2864 eval "ac_cv_header_$ac_safe=yes"
2867 echo "configure: failed program was:" >&5
2868 cat conftest.
$ac_ext >&5
2870 eval "ac_cv_header_$ac_safe=no"
2874 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2875 echo "$ac_t""yes" 1>&6
2876 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2877 cat >> confdefs.h
<<EOF
2878 #define $ac_tr_hdr 1
2882 echo "$ac_t""no" 1>&6
2886 for ac_hdr
in fcntl.h fpu_control.h
2888 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2889 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2890 echo "configure:2891: checking for $ac_hdr" >&5
2891 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2892 echo $ac_n "(cached) $ac_c" 1>&6
2894 cat > conftest.
$ac_ext <<EOF
2895 #line 2896 "configure"
2896 #include "confdefs.h"
2899 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2900 { (eval echo configure
:2901: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2901 ac_err
=`grep -v '^ *+' conftest.out`
2902 if test -z "$ac_err"; then
2904 eval "ac_cv_header_$ac_safe=yes"
2907 echo "configure: failed program was:" >&5
2908 cat conftest.
$ac_ext >&5
2910 eval "ac_cv_header_$ac_safe=no"
2914 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2915 echo "$ac_t""yes" 1>&6
2916 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2917 cat >> confdefs.h
<<EOF
2918 #define $ac_tr_hdr 1
2922 echo "$ac_t""no" 1>&6
2926 for ac_func
in getrusage
time sigaction __setfpucw
2928 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2929 echo "configure:2930: checking for $ac_func" >&5
2930 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2931 echo $ac_n "(cached) $ac_c" 1>&6
2933 cat > conftest.
$ac_ext <<EOF
2934 #line 2935 "configure"
2935 #include "confdefs.h"
2936 /* System header to define __stub macros and hopefully few prototypes,
2937 which can conflict with char $ac_func(); below. */
2939 /* Override any gcc2 internal prototype to avoid an error. */
2940 /* We use char because int might match the return type of a gcc2
2941 builtin and then its argument prototype would still apply. */
2946 /* The GNU C library defines this for functions which it implements
2947 to always fail with ENOSYS. Some functions are actually named
2948 something starting with __ and the normal name is an alias. */
2949 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2957 if { (eval echo configure
:2958: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2959 eval "ac_cv_func_$ac_func=yes"
2961 echo "configure: failed program was:" >&5
2962 cat conftest.
$ac_ext >&5
2964 eval "ac_cv_func_$ac_func=no"
2969 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2970 echo "$ac_t""yes" 1>&6
2971 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2972 cat >> confdefs.h
<<EOF
2973 #define $ac_tr_func 1
2977 echo "$ac_t""no" 1>&6
2982 .
${srcdir}/..
/..
/bfd
/configure.
host
2986 USE_MAINTAINER_MODE
=no
2987 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
2988 if test "${enable_maintainer_mode+set}" = set; then
2989 enableval
="$enable_maintainer_mode"
2990 case "${enableval}" in
2991 yes) MAINT
="" USE_MAINTAINER_MODE
=yes ;;
2993 *) { echo "configure: error: "--enable-maintainer-mode does not take a value
"" 1>&2; exit 1; }; MAINT
="#" ;;
2995 if test x
"$silent" != x
"yes" && test x
"$MAINT" = x
""; then
2996 echo "Setting maintainer mode" 6>&1
3004 # Check whether --enable-sim-bswap or --disable-sim-bswap was given.
3005 if test "${enable_sim_bswap+set}" = set; then
3006 enableval
="$enable_sim_bswap"
3007 case "${enableval}" in
3008 yes) sim_bswap
="-DWITH_BSWAP=1 -DUSE_BSWAP=1";;
3009 no
) sim_bswap
="-DWITH_BSWAP=0";;
3010 *) { echo "configure: error: "--enable-sim-bswap does not take a value
"" 1>&2; exit 1; }; sim_bswap
="";;
3012 if test x
"$silent" != x
"yes" && test x
"$sim_bswap" != x
""; then
3013 echo "Setting bswap flags = $sim_bswap" 6>&1
3021 # Check whether --enable-sim-cflags or --disable-sim-cflags was given.
3022 if test "${enable_sim_cflags+set}" = set; then
3023 enableval
="$enable_sim_cflags"
3024 case "${enableval}" in
3025 yes) sim_cflags
="-O2 -fomit-frame-pointer";;
3026 trace
) { echo "configure: error: "Please use
--enable-sim-debug instead.
"" 1>&2; exit 1; }; sim_cflags
="";;
3028 *) sim_cflags
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
3030 if test x
"$silent" != x
"yes" && test x
"$sim_cflags" != x
""; then
3031 echo "Setting sim cflags = $sim_cflags" 6>&1
3039 # Check whether --enable-sim-debug or --disable-sim-debug was given.
3040 if test "${enable_sim_debug+set}" = set; then
3041 enableval
="$enable_sim_debug"
3042 case "${enableval}" in
3043 yes) sim_debug
="-DDEBUG=7 -DWITH_DEBUG=7";;
3044 no
) sim_debug
="-DDEBUG=0 -DWITH_DEBUG=0";;
3045 *) sim_debug
="-DDEBUG='(${enableval})' -DWITH_DEBUG='(${enableval})'";;
3047 if test x
"$silent" != x
"yes" && test x
"$sim_debug" != x
""; then
3048 echo "Setting sim debug = $sim_debug" 6>&1
3056 # Check whether --enable-sim-stdio or --disable-sim-stdio was given.
3057 if test "${enable_sim_stdio+set}" = set; then
3058 enableval
="$enable_sim_stdio"
3059 case "${enableval}" in
3060 yes) sim_stdio
="-DWITH_STDIO=DO_USE_STDIO";;
3061 no
) sim_stdio
="-DWITH_STDIO=DONT_USE_STDIO";;
3062 *) { echo "configure: error: "Unknown value
$enableval passed to
--enable-sim-stdio"" 1>&2; exit 1; }; sim_stdio
="";;
3064 if test x
"$silent" != x
"yes" && test x
"$sim_stdio" != x
""; then
3065 echo "Setting stdio flags = $sim_stdio" 6>&1
3073 # Check whether --enable-sim-trace or --disable-sim-trace was given.
3074 if test "${enable_sim_trace+set}" = set; then
3075 enableval
="$enable_sim_trace"
3076 case "${enableval}" in
3077 yes) sim_trace
="-DTRACE=1 -DWITH_TRACE=-1";;
3078 no
) sim_trace
="-DTRACE=0 -DWITH_TRACE=0";;
3080 sim_trace
="-DTRACE='(${enableval})' -DWITH_TRACE='(${enableval})'";;
3083 for x
in `echo "$enableval" | sed -e "s/,/ /g"`; do
3084 if test x
"$sim_trace" = x
; then
3085 sim_trace
="-DWITH_TRACE='(TRACE_$x"
3087 sim_trace
="${sim_trace}|TRACE_$x"
3090 sim_trace
="$sim_trace)'" ;;
3092 if test x
"$silent" != x
"yes" && test x
"$sim_trace" != x
""; then
3093 echo "Setting sim trace = $sim_trace" 6>&1
3101 # Check whether --enable-sim-profile or --disable-sim-profile was given.
3102 if test "${enable_sim_profile+set}" = set; then
3103 enableval
="$enable_sim_profile"
3104 case "${enableval}" in
3105 yes) sim_profile
="-DPROFILE=1 -DWITH_PROFILE=-1";;
3106 no
) sim_profile
="-DPROFILE=0 -DWITH_PROFILE=0";;
3108 sim_profile
="-DPROFILE='(${enableval})' -DWITH_PROFILE='(${enableval})'";;
3111 for x
in `echo "$enableval" | sed -e "s/,/ /g"`; do
3112 if test x
"$sim_profile" = x
; then
3113 sim_profile
="-DWITH_PROFILE='(PROFILE_$x"
3115 sim_profile
="${sim_profile}|PROFILE_$x"
3118 sim_profile
="$sim_profile)'" ;;
3120 if test x
"$silent" != x
"yes" && test x
"$sim_profile" != x
""; then
3121 echo "Setting sim profile = $sim_profile" 6>&1
3129 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
3130 echo "configure:3131: checking return type of signal handlers" >&5
3131 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
3132 echo $ac_n "(cached) $ac_c" 1>&6
3134 cat > conftest.
$ac_ext <<EOF
3135 #line 3136 "configure"
3136 #include "confdefs.h"
3137 #include <sys/types.h>
3143 extern "C" void (*signal (int, void (*)(int)))(int);
3145 void (*signal ()) ();
3152 if { (eval echo configure
:3153: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3154 ac_cv_type_signal
=void
3156 echo "configure: failed program was:" >&5
3157 cat conftest.
$ac_ext >&5
3159 ac_cv_type_signal
=int
3164 echo "$ac_t""$ac_cv_type_signal" 1>&6
3165 cat >> confdefs.h
<<EOF
3166 #define RETSIGTYPE $ac_cv_type_signal
3175 sim_link_links
=tconfig.h
3176 if test -f ${srcdir}/tconfig.
in
3178 sim_link_files
=tconfig.
in
3180 sim_link_files
=..
/common
/tconfig.
in
3183 # targ-vals.def points to the libc macro description file.
3185 *-*-*) TARG_VALS_DEF
=..
/common
/nltvals.def
;;
3187 sim_link_files
="${sim_link_files} ${TARG_VALS_DEF}"
3188 sim_link_links
="${sim_link_links} targ-vals.def"
3193 default_sim_inline
=""
3194 # Check whether --enable-sim-inline or --disable-sim-inline was given.
3195 if test "${enable_sim_inline+set}" = set; then
3196 enableval
="$enable_sim_inline"
3198 case "$enableval" in
3199 no
) sim_inline
="-DDEFAULT_INLINE=0";;
3200 0) sim_inline
="-DDEFAULT_INLINE=0";;
3201 yes |
2) sim_inline
="-DDEFAULT_INLINE=ALL_C_INLINE";;
3202 1) sim_inline
="-DDEFAULT_INLINE=INLINE_LOCALS";;
3203 *) for x
in `echo "$enableval" | sed -e "s/,/ /g"`; do
3206 *_INLINE
=*) new_flag
="-D$x";;
3207 *=*) new_flag
=`echo "$x" | sed -e "s/=/_INLINE=/" -e "s/^/-D/"`;;
3208 *_INLINE
) new_flag
="-D$x=ALL_C_INLINE";;
3209 *) new_flag
="-D$x""_INLINE=ALL_C_INLINE";;
3211 if test x
"$sim_inline" = x
""; then
3212 sim_inline
="$new_flag"
3214 sim_inline
="$sim_inline $new_flag"
3218 if test x
"$silent" != x
"yes" && test x
"$sim_inline" != x
""; then
3219 echo "Setting inline flags = $sim_inline" 6>&1
3223 if test "x$cross_compiling" = "xno"; then
3224 if test x
"$GCC" != "x" -a x
"${default_sim_inline}" != "x" ; then
3225 sim_inline
="${default_sim_inline}"
3226 if test x
"$silent" != x
"yes"; then
3227 echo "Setting inline flags = $sim_inline" 6>&1
3233 sim_inline
="-DDEFAULT_INLINE=0"
3237 wire_alignment
="NONSTRICT_ALIGNMENT"
3238 default_alignment
=""
3240 # Check whether --enable-sim-alignment or --disable-sim-alignment was given.
3241 if test "${enable_sim_alignment+set}" = set; then
3242 enableval
="$enable_sim_alignment"
3243 case "${enableval}" in
3244 strict | STRICT
) sim_alignment
="-DWITH_ALIGNMENT=STRICT_ALIGNMENT";;
3245 nonstrict | NONSTRICT
) sim_alignment
="-DWITH_ALIGNMENT=NONSTRICT_ALIGNMENT";;
3246 forced | FORCED
) sim_alignment
="-DWITH_ALIGNMENT=FORCED_ALIGNMENT";;
3247 yes) if test x
"$wire_alignment" != x
; then
3248 sim_alignment
="-DWITH_ALIGNMENT=${wire_alignment}"
3250 if test x
"$default_alignment" != x
; then
3251 sim_alignment
="-DWITH_ALIGNMENT=${default_alignment}"
3253 echo "No hard-wired alignment for target $target" 1>&6
3254 sim_alignment
="-DWITH_ALIGNMENT=0"
3257 no
) if test x
"$default_alignment" != x
; then
3258 sim_alignment
="-DWITH_DEFAULT_ALIGNMENT=${default_alignment}"
3260 if test x
"$wire_alignment" != x
; then
3261 sim_alignment
="-DWITH_DEFAULT_ALIGNMENT=${wire_alignment}"
3263 echo "No default alignment for target $target" 1>&6
3264 sim_alignment
="-DWITH_DEFAULT_ALIGNMENT=0"
3267 *) { echo "configure: error: "Unknown value
$enableval passed to
--enable-sim-alignment"" 1>&2; exit 1; }; sim_alignment
="";;
3269 if test x
"$silent" != x
"yes" && test x
"$sim_alignment" != x
""; then
3270 echo "Setting alignment flags = $sim_alignment" 6>&1
3273 if test x
"$default_alignment" != x
; then
3274 sim_alignment
="-DWITH_DEFAULT_ALIGNMENT=${default_alignment}"
3276 if test x
"$wire_alignment" != x
; then
3277 sim_alignment
="-DWITH_ALIGNMENT=${wire_alignment}"
3285 # Check whether --enable-sim-hostendian or --disable-sim-hostendian was given.
3286 if test "${enable_sim_hostendian+set}" = set; then
3287 enableval
="$enable_sim_hostendian"
3288 case "${enableval}" in
3289 no
) sim_hostendian
="-DWITH_HOST_BYTE_ORDER=0";;
3290 b
*|B
*) sim_hostendian
="-DWITH_HOST_BYTE_ORDER=BIG_ENDIAN";;
3291 l
*|L
*) sim_hostendian
="-DWITH_HOST_BYTE_ORDER=LITTLE_ENDIAN";;
3292 *) { echo "configure: error: "Unknown value
$enableval for --enable-sim-hostendian"" 1>&2; exit 1; }; sim_hostendian
="";;
3294 if test x
"$silent" != x
"yes" && test x
"$sim_hostendian" != x
""; then
3295 echo "Setting hostendian flags = $sim_hostendian" 6>&1
3299 if test "x$cross_compiling" = "xno"; then
3300 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
3301 echo "configure:3302: checking whether byte ordering is bigendian" >&5
3302 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
3303 echo $ac_n "(cached) $ac_c" 1>&6
3305 ac_cv_c_bigendian
=unknown
3306 # See if sys/param.h defines the BYTE_ORDER macro.
3307 cat > conftest.
$ac_ext <<EOF
3308 #line 3309 "configure"
3309 #include "confdefs.h"
3310 #include <sys/types.h>
3311 #include <sys/param.h>
3314 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
3319 if { (eval echo configure
:3320: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3321 # It does; now see whether it defined to BIG_ENDIAN or not.
3322 cat > conftest.
$ac_ext <<EOF
3323 #line 3324 "configure"
3324 #include "confdefs.h"
3325 #include <sys/types.h>
3326 #include <sys/param.h>
3329 #if BYTE_ORDER != BIG_ENDIAN
3334 if { (eval echo configure
:3335: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3336 ac_cv_c_bigendian
=yes
3338 echo "configure: failed program was:" >&5
3339 cat conftest.
$ac_ext >&5
3341 ac_cv_c_bigendian
=no
3345 echo "configure: failed program was:" >&5
3346 cat conftest.
$ac_ext >&5
3349 if test $ac_cv_c_bigendian = unknown
; then
3350 if test "$cross_compiling" = yes; then
3351 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3353 cat > conftest.
$ac_ext <<EOF
3354 #line 3355 "configure"
3355 #include "confdefs.h"
3357 /* Are we little or big endian? From Harbison&Steele. */
3361 char c[sizeof (long)];
3364 exit (u.c[sizeof (long) - 1] == 1);
3367 if { (eval echo configure
:3368: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
3369 ac_cv_c_bigendian
=no
3371 echo "configure: failed program was:" >&5
3372 cat conftest.
$ac_ext >&5
3374 ac_cv_c_bigendian
=yes
3382 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
3383 if test $ac_cv_c_bigendian = yes; then
3384 cat >> confdefs.h
<<\EOF
3385 #define WORDS_BIGENDIAN 1
3390 if test $ac_cv_c_bigendian = yes; then
3391 sim_hostendian
="-DWITH_HOST_BYTE_ORDER=BIG_ENDIAN"
3393 sim_hostendian
="-DWITH_HOST_BYTE_ORDER=LITTLE_ENDIAN"
3396 sim_hostendian
="-DWITH_HOST_BYTE_ORDER=0"
3401 # Check whether --enable-sim-warnings or --disable-sim-warnings was given.
3402 if test "${enable_sim_warnings+set}" = set; then
3403 enableval
="$enable_sim_warnings"
3404 case "${enableval}" in
3405 yes) sim_warnings
="-Werror -Wall -Wpointer-arith -Wmissing-prototypes -Wmissing-declarations ";;
3406 no
) sim_warnings
="-w";;
3407 *) sim_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
3409 if test x
"$silent" != x
"yes" && test x
"$sim_warnings" != x
""; then
3410 echo "Setting warning flags = $sim_warnings" 6>&1
3418 # Ensure a reasonable default simulator is constructed: (DEPRECATED)
3420 # start-sanitize-tx19
3421 mipstx19
*-*-*) SIMCONF
="-mips1 -mcpu=r1900 -mno-fp --warnings";;
3423 # start-sanitize-tx49
3424 mips64tx49
*-*-*) SIMCONF
="-mips3 --warnings -mcpu=r4900";;
3426 # start-sanitize-r5900
3427 mips64r59
*-*-*) SIMCONF
="-mips3 --warnings -mcpu=r5900";;
3428 # end-sanitize-r5900
3429 mips64vr4100-
*-*) SIMCOMF
="-mips0 -mcpu=r4100 -mgp64 --warnings" ;;
3430 mips64
*-*-*) SIMCONF
="-mips0 --warnings";;
3431 mips16
*-*-*) SIMCONF
="-mips0 --warnings";;
3432 mips
*-*-*) SIMCONF
="-mips2 --warnings";;
3433 *) SIMCONF
="-mips0 --warnings";;
3439 # start-sanitize-tx19
3440 mipstx19
*-*-*) SIM_SUBTARGET
="-DSUBTARGET_R3900=1";;
3442 *) SIM_SUBTARGET
="";;
3449 # Select the byte order of the target
3454 # start-sanitize-tx19
3455 mipstx19
*-*-*) default_endian
=BIG_ENDIAN
;;
3457 # start-sanitize-r5900
3458 mips64r59
*-*-*) mips_endian
=LITTLE_ENDIAN
;;
3459 # end-sanitize-r5900
3460 mips64
*-*-*) default_endian
=BIG_ENDIAN
;;
3461 mips16
*-*-*) default_endian
=BIG_ENDIAN
;;
3462 mips
*-*-*) default_endian
=BIG_ENDIAN
;;
3463 *) default_endian
=BIG_ENDIAN
;;
3466 wire_endian
="$mips_endian"
3467 default_endian
="$default_endian"
3468 # Check whether --enable-sim-endian or --disable-sim-endian was given.
3469 if test "${enable_sim_endian+set}" = set; then
3470 enableval
="$enable_sim_endian"
3471 case "${enableval}" in
3472 b
*|B
*) sim_endian
="-DWITH_TARGET_BYTE_ORDER=BIG_ENDIAN";;
3473 l
*|L
*) sim_endian
="-DWITH_TARGET_BYTE_ORDER=LITTLE_ENDIAN";;
3474 yes) if test x
"$wire_endian" != x
; then
3475 sim_endian
="-DWITH_TARGET_BYTE_ORDER=${wire_endian}"
3477 if test x
"$default_endian" != x
; then
3478 sim_endian
="-DWITH_TARGET_BYTE_ORDER=${default_endian}"
3480 echo "No hard-wired endian for target $target" 1>&6
3481 sim_endian
="-DWITH_TARGET_BYTE_ORDER=0"
3484 no
) if test x
"$default_endian" != x
; then
3485 sim_endian
="-DWITH_DEFAULT_TARGET_BYTE_ORDER=${default_endian}"
3487 if test x
"$wire_endian" != x
; then
3488 sim_endian
="-DWITH_DEFAULT_TARGET_BYTE_ORDER=${wire_endian}"
3490 echo "No default endian for target $target" 1>&6
3491 sim_endian
="-DWITH_DEFAULT_TARGET_BYTE_ORDER=0"
3494 *) { echo "configure: error: "Unknown value
$enableval for --enable-sim-endian"" 1>&2; exit 1; }; sim_endian
="";;
3496 if test x
"$silent" != x
"yes" && test x
"$sim_endian" != x
""; then
3497 echo "Setting endian flags = $sim_endian" 6>&1
3500 if test x
"$default_endian" != x
; then
3501 sim_endian
="-DWITH_DEFAULT_TARGET_BYTE_ORDER=${default_endian}"
3503 if test x
"$wire_endian" != x
; then
3504 sim_endian
="-DWITH_TARGET_BYTE_ORDER=${wire_endian}"
3515 # Select the bitsize of the target
3519 # start-sanitize-tx19
3520 mipstx19
*-*-*) mips_bitsize
=32 ; mips_msb
=31 ;;
3522 # start-sanitize-r5900
3523 mips64r59
*-*-*) mips_bitsize
=64 ; mips_msb
=63 ; mips_addr_bitsize
=32;;
3524 # end-sanitize-r5900
3525 mips64
*-*-*) mips_bitsize
=64 ; mips_msb
=63 ;;
3526 mips16
*-*-*) mips_bitsize
=64 ; mips_msb
=63 ;;
3527 mips
*-*-*) mips_bitsize
=32 ; mips_msb
=31 ;;
3528 *) mips_bitsize
=64 ; mips_msb
=63 ;;
3530 wire_word_bitsize
="$mips_bitsize"
3531 wire_word_msb
="$mips_msb"
3532 wire_address_bitsize
="$mips_addr_bitsize"
3533 wire_cell_bitsize
=""
3534 # Check whether --enable-sim-bitsize or --disable-sim-bitsize was given.
3535 if test "${enable_sim_bitsize+set}" = set; then
3536 enableval
="$enable_sim_bitsize"
3538 case "${enableval}" in
3539 64,63 |
64,63,* ) sim_bitsize
="-DWITH_TARGET_WORD_BITSIZE=64 -DWITH_TARGET_WORD_MSB=63";;
3540 32,31 |
32,31,* ) sim_bitsize
="-DWITH_TARGET_WORD_BITSIZE=32 -DWITH_TARGET_WORD_MSB=31";;
3541 64,0 |
64,0,* ) sim_bitsize
="-DWITH_TARGET_WORD_BITSIZE=32 -DWITH_TARGET_WORD_MSB=0";;
3542 32,0 |
64,0,* ) sim_bitsize
="-DWITH_TARGET_WORD_BITSIZE=32 -DWITH_TARGET_WORD_MSB=0";;
3543 32) if test x
"$wire_word_msb" != x
-a x
"$wire_word_msb" != x0
; then
3544 sim_bitsize
="-DWITH_TARGET_WORD_BITSIZE=32 -DWITH_TARGET_WORD_MSB=31"
3546 sim_bitsize
="-DWITH_TARGET_WORD_BITSIZE=32 -DWITH_TARGET_WORD_MSB=0"
3548 64) if test x
"$wire_word_msb" != x
-a x
"$wire_word_msb" != x0
; then
3549 sim_bitsize
="-DWITH_TARGET_WORD_BITSIZE=64 -DWITH_TARGET_WORD_MSB=63"
3551 sim_bitsize
="-DWITH_TARGET_WORD_BITSIZE=64 -DWITH_TARGET_WORD_MSB=0"
3553 *) { echo "configure: error: "--enable-sim-bitsize was given
$enableval. Expected
32 or
64"" 1>&2; exit 1; } ;;
3556 tmp
=`echo "${enableval}" | sed -e "s/^[0-9]*,*[0-9]*,*//"`
3559 x32 | x32
,* ) sim_bitsize
="${sim_bitsize} -DWITH_TARGET_ADDRESS_BITSIZE=32" ;;
3560 x64 | x64
,* ) sim_bitsize
="${sim_bitsize} -DWITH_TARGET_ADDRESS_BITSIZE=64" ;;
3561 * ) { echo "configure: error: "--enable-sim-bitsize was given address size
$enableval. Expected
32 or
64"" 1>&2; exit 1; } ;;
3564 tmp
=`echo "${enableval}" | sed -e "s/^[0-9]*,*[0-9*]*,*[0-9]*,*//"`
3567 x32 | x32
,* ) sim_bitsize
="${sim_bitsize} -DWITH_TARGET_CELL_BITSIZE=32" ;;
3568 x64 | x64
,* ) sim_bitsize
="${sim_bitsize} -DWITH_TARGET_CELL_BITSIZE=64" ;;
3569 * ) { echo "configure: error: "--enable-sim-bitsize was given cell size
$enableval. Expected
32 or
64"" 1>&2; exit 1; } ;;
3571 if test x
"$silent" != x
"yes" && test x
"$sim_bitsize" != x
""; then
3572 echo "Setting bitsize flags = $sim_bitsize" 6>&1
3576 if test x
"$wire_word_bitsize" != x
; then
3577 sim_bitsize
="$sim_bitsize -DWITH_TARGET_WORD_BITSIZE=$wire_word_bitsize"
3579 if test x
"$wire_word_msb" != x
; then
3580 sim_bitsize
="$sim_bitsize -DWITH_TARGET_WORD_MSB=$wire_word_msb"
3582 if test x
"$wire_address_bitsize" != x
; then
3583 sim_bitsize
="$sim_bitsize -DWITH_TARGET_ADDRESS_BITSIZE=$wire_address_bitsize"
3585 if test x
"$wire_cell_bitsize" != x
; then
3586 sim_bitsize
="$sim_bitsize -DWITH_TARGET_CELL_BITSIZE=$wire_cell_bitsize"
3594 # Select the floating hardware support of the target
3596 mips_fpu
=HARDWARE_FLOATING_POINT
3599 # start-sanitize-tx19
3600 mipstx19
*-*-*) mips_fpu
=SOFT_FLOATING_POINT
;;
3602 mipstx39
*-*-*) mips_fpu
=HARD_FLOATING_POINT
3605 # start-sanitize-r5900
3606 mips64r59
*-*-*) mips_fpu
=HARD_FLOATING_POINT
; mips_fpu_bitsize
=32 ;;
3607 # end-sanitize-r5900
3608 mips64
*-*-*) mips_fpu
=HARD_FLOATING_POINT
;;
3609 mips16
*-*-*) mips_fpu
=HARD_FLOATING_POINT
;;
3610 mips
*-*-*) mips_fpu
=HARD_FLOATING_POINT
;;
3611 *) mips_fpu
=HARD_FLOATING_POINT
;;
3614 default_sim_float
="$mips_fpu"
3615 default_sim_float_bitsize
="$mips_fpu_bitsize"
3616 # Check whether --enable-sim-float or --disable-sim-float was given.
3617 if test "${enable_sim_float+set}" = set; then
3618 enableval
="$enable_sim_float"
3619 case "${enableval}" in
3620 yes | hard
) sim_float
="-DWITH_FLOATING_POINT=HARD_FLOATING_POINT";;
3621 no | soft
) sim_float
="-DWITH_FLOATING_POINT=SOFT_FLOATING_POINT";;
3622 32) sim_float
="-DWITH_FLOATING_POINT=HARD_FLOATING_POINT -DWITH_TARGET_FLOATING_POINT_BITSIZE=32";;
3623 64) sim_float
="-DWITH_FLOATING_POINT=HARD_FLOATING_POINT -DWITH_TARGET_FLOATING_POINT_BITSIZE=64";;
3624 *) { echo "configure: error: "Unknown value
$enableval passed to
--enable-sim-float"" 1>&2; exit 1; }; sim_float
="";;
3626 if test x
"$silent" != x
"yes" && test x
"$sim_float" != x
""; then
3627 echo "Setting float flags = $sim_float" 6>&1
3632 if test x
"${default_sim_float}" != x
""; then
3633 sim_float
="-DWITH_FLOATING_POINT=${default_sim_float}"
3635 if test x
"${default_sim_float_bitsize}" != x
""; then
3636 sim_float
="$sim_float -DWITH_TARGET_FLOATING_POINT_BITSIZE=${default_sim_float_bitsize}"
3645 # Select the level of SMP support
3648 # start-sanitize-r5900
3649 mips64r59
*-*-*) mips_smp
=1 ;;
3650 # end-sanitize-r5900
3654 default_sim_smp
="$mips_smp"
3655 # Check whether --enable-sim-smp or --disable-sim-smp was given.
3656 if test "${enable_sim_smp+set}" = set; then
3657 enableval
="$enable_sim_smp"
3658 case "${enableval}" in
3659 yes) sim_smp
="-DWITH_SMP=5" ; sim_igen_smp
="-N 5";;
3660 no
) sim_smp
="-DWITH_SMP=0" ; sim_igen_smp
="-N 0";;
3661 *) sim_smp
="-DWITH_SMP=$enableval" ; sim_igen_smp
="-N $enableval";;
3663 if test x
"$silent" != x
"yes" && test x
"$sim_smp" != x
""; then
3664 echo "Setting smp flags = $sim_smp" 6>&1
3667 sim_smp
="-DWITH_SMP=${default_sim_smp}" ; sim_igen_smp
="-N ${default_sim_smp}"
3668 if test x
"$silent" != x
"yes"; then
3669 echo "Setting smp flags = $sim_smp" 6>&1
3677 # Select the IGEN architecture
3680 sim_igen_machine
="-M mipsIV"
3681 sim_m16_machine
="-M mips16"
3682 sim_igen_filter
="32,64,f"
3685 # start-sanitize-tx19
3686 mipstx19
*-*-*) sim_default_gen
=M16
3688 sim_igen_machine
="-M tx19"
3689 sim_m16_machine
="-M tx19"
3690 sim_igen_filter
="32"
3694 mipstx39
*-*-*) sim_default_gen
=IGEN
3696 sim_igen_filter
="32,f"
3697 sim_igen_machine
="-M r3900"
3699 # start-sanitize-r5900
3700 mips64r59
*-*-*) sim_default_gen
=IGEN
3702 sim_igen_machine
="-M r5900"
3704 # end-sanitize-r5900
3705 # start-sanitize-vr4320
3706 mips64vr4320-
*-*) sim_default_gen
=IGEN
3708 sim_igen_machine
="-M mipsIV,vr4320 -G gen-multi-sim=vr4320"
3710 # end-sanitize-vr4320
3711 mips64vr43
*-*-*) sim_default_gen
=IGEN
3713 sim_igen_machine
="-M mipsIV"
3714 # start-sanitize-vr4320
3715 sim_igen_machine
="-M mipsIV,vr4320 -G gen-multi-sim=mipsIV"
3716 # end-sanitize-vr4320
3718 # start-sanitize-vr5400
3719 mips64vr54
*-*-*) sim_default_gen
=IGEN
3721 sim_igen_machine
="-M vr5000,vr5400 -G gen-multi-sim=vr5400"
3723 # end-sanitize-vr5400
3724 mips64vr5
*-*-*) sim_default_gen
=IGEN
3726 sim_igen_machine
="-M vr5000"
3727 # start-sanitize-vr5400
3728 sim_igen_machine
="-M vr5000,vr5400 -G gen-multi-sim=vr5000"
3729 # end-sanitize-vr5400
3731 mips64vr4100-
*-*) echo "NOTE: mips64vr4100 still uses gencode"
3733 sim_igen_machine
="-M tx19"
3734 sim_m16_machine
="-M tx19"
3735 sim_igen_filter
= "32,64,f"
3736 sim_m16_filter
= "16"
3740 mips64
*-*-*) sim_default_gen
=IGEN
3741 sim_igen_filter
="32,64,f"
3744 mips16
*-*-*) sim_default_gen
=M16
3745 sim_igen_filter
="32,64,f"
3749 mips
*-*-*) sim_default_gen
=IGEN
3750 sim_igen_filter
="32,f"
3754 sim_igen_flags
="-F ${sim_igen_filter} ${sim_igen_machine} ${sim_igen_smp}"
3755 sim_m16_flags
=" -F ${sim_m16_filter} ${sim_m16_machine} ${sim_igen_smp}"
3764 # Check whether --enable-sim-igen or --disable-sim-igen was given.
3765 if test "${enable_sim_igen+set}" = set; then
3766 enableval
="$enable_sim_igen"
3767 case "${enableval}" in
3768 yes) sim_gen
="${sim_default_gen}";;
3771 *) { echo "configure: error: "Unknown value
$enableval passed to
--enable-sim-igen"" 1>&2; exit 1; }; sim_gen
="";;
3773 if test x
"$silent" != x
"yes" && test x
"$sim_gen" != x
""; then
3774 echo "Setting sim_igen = $sim_gen" 6>&1
3777 sim_gen
="${sim_use_gen}"
3783 # start-sanitize-sky
3784 mips64r59
*-sky-*) mips_extra_objs
='$(SIM_SKY_OBJS)' ;
3785 SIM_SUBTARGET
="-DTARGET_SKY -DWITH_DEVICES=1 -DDEVICE_INIT=1";;
3788 *) mips_extra_objs
="" ;;
3793 # If we find X, set shell vars x_includes and x_libraries to the
3794 # paths, otherwise set no_x=yes.
3795 # Uses ac_ vars as temps to allow command line to override cache and checks.
3796 # --without-x overrides everything else, but does not touch the cache.
3797 echo $ac_n "checking for X""... $ac_c" 1>&6
3798 echo "configure:3799: checking for X" >&5
3800 # Check whether --with-x or --without-x was given.
3801 if test "${with_x+set}" = set; then
3806 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
3807 if test "x$with_x" = xno
; then
3808 # The user explicitly disabled X.
3811 if test "x$x_includes" != xNONE
&& test "x$x_libraries" != xNONE
; then
3812 # Both variables are already set.
3815 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
3816 echo $ac_n "(cached) $ac_c" 1>&6
3818 # One or both of the vars are not set, and there is no cached value.
3819 ac_x_includes
=NO ac_x_libraries
=NO
3821 if mkdir conftestdir
; then
3823 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
3824 cat > Imakefile
<<'EOF'
3826 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
3828 if (xmkmf
) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
3829 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3830 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
3831 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
3832 for ac_extension
in a so sl
; do
3833 if test ! -f $ac_im_usrlibdir/libX11.
$ac_extension &&
3834 test -f $ac_im_libdir/libX11.
$ac_extension; then
3835 ac_im_usrlibdir
=$ac_im_libdir; break
3838 # Screen out bogus values from the imake configuration. They are
3839 # bogus both because they are the default anyway, and because
3840 # using them would break gcc on systems where it needs fixed includes.
3841 case "$ac_im_incroot" in
3843 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
="$ac_im_incroot" ;;
3845 case "$ac_im_usrlibdir" in
3847 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
="$ac_im_usrlibdir" ;;
3854 if test "$ac_x_includes" = NO
; then
3855 # Guess where to find include files, by looking for this one X11 .h file.
3856 test -z "$x_direct_test_include" && x_direct_test_include
=X11
/Intrinsic.h
3858 # First, try using that file with no special directory specified.
3859 cat > conftest.
$ac_ext <<EOF
3860 #line 3861 "configure"
3861 #include "confdefs.h"
3862 #include <$x_direct_test_include>
3864 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3865 { (eval echo configure
:3866: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3866 ac_err
=`grep -v '^ *+' conftest.out`
3867 if test -z "$ac_err"; then
3869 # We can compile using X headers with no special include directory.
3873 echo "configure: failed program was:" >&5
3874 cat conftest.
$ac_ext >&5
3876 # Look for the header file in a standard set of common directories.
3877 # Check X11 before X11Rn because it is often a symlink to the current release.
3880 /usr
/X11R
6/include \
3881 /usr
/X11R
5/include \
3882 /usr
/X11R
4/include \
3885 /usr
/include
/X11R6 \
3886 /usr
/include
/X11R5 \
3887 /usr
/include
/X11R4 \
3889 /usr
/local
/X11
/include \
3890 /usr
/local
/X11R
6/include \
3891 /usr
/local
/X11R
5/include \
3892 /usr
/local
/X11R
4/include \
3894 /usr
/local
/include
/X11 \
3895 /usr
/local
/include
/X11R6 \
3896 /usr
/local
/include
/X11R5 \
3897 /usr
/local
/include
/X11R4 \
3901 /usr
/XFree86
/include
/X11 \
3904 /usr
/local
/include \
3905 /usr
/unsupported
/include \
3906 /usr
/athena
/include \
3907 /usr
/local
/x11r
5/include \
3908 /usr
/lpp
/Xamples
/include \
3910 /usr
/openwin
/include \
3911 /usr
/openwin
/share
/include \
3914 if test -r "$ac_dir/$x_direct_test_include"; then
3915 ac_x_includes
=$ac_dir
3921 fi # $ac_x_includes = NO
3923 if test "$ac_x_libraries" = NO
; then
3924 # Check for the libraries.
3926 test -z "$x_direct_test_library" && x_direct_test_library
=Xt
3927 test -z "$x_direct_test_function" && x_direct_test_function
=XtMalloc
3929 # See if we find them without any special options.
3930 # Don't add to $LIBS permanently.
3931 ac_save_LIBS
="$LIBS"
3932 LIBS
="-l$x_direct_test_library $LIBS"
3933 cat > conftest.
$ac_ext <<EOF
3934 #line 3935 "configure"
3935 #include "confdefs.h"
3938 ${x_direct_test_function}()
3941 if { (eval echo configure
:3942: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
3943 LIBS
="$ac_save_LIBS"
3944 # We can link X programs with no special library path.
3947 echo "configure: failed program was:" >&5
3948 cat conftest.
$ac_ext >&5
3950 LIBS
="$ac_save_LIBS"
3951 # First see if replacing the include by lib works.
3952 # Check X11 before X11Rn because it is often a symlink to the current release.
3953 for ac_dir
in `echo "$ac_x_includes" | sed s/include/lib/` \
3964 /usr
/local
/X11
/lib \
3965 /usr
/local
/X11R
6/lib \
3966 /usr
/local
/X11R
5/lib \
3967 /usr
/local
/X11R
4/lib \
3969 /usr
/local
/lib
/X11 \
3970 /usr
/local
/lib
/X11R6 \
3971 /usr
/local
/lib
/X11R5 \
3972 /usr
/local
/lib
/X11R4 \
3976 /usr
/XFree86
/lib
/X11 \
3980 /usr
/unsupported
/lib \
3982 /usr
/local
/x11r
5/lib \
3983 /usr
/lpp
/Xamples
/lib \
3987 /usr
/openwin
/share
/lib \
3990 for ac_extension
in a so sl
; do
3991 if test -r $ac_dir/lib
${x_direct_test_library}.
$ac_extension; then
3992 ac_x_libraries
=$ac_dir
3999 fi # $ac_x_libraries = NO
4001 if test "$ac_x_includes" = NO ||
test "$ac_x_libraries" = NO
; then
4002 # Didn't find X anywhere. Cache the known absence of X.
4003 ac_cv_have_x
="have_x=no"
4005 # Record where we found X for the cache.
4006 ac_cv_have_x
="have_x=yes \
4007 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
4011 eval "$ac_cv_have_x"
4014 if test "$have_x" != yes; then
4015 echo "$ac_t""$have_x" 1>&6
4018 # If each of the values was on the command line, it overrides each guess.
4019 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
4020 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
4021 # Update the cache value to reflect the command line values.
4022 ac_cv_have_x
="have_x=yes \
4023 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
4024 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
4028 # start-sanitize-sky
4029 # Enable GPU2 library
4030 # Check whether --with-sim-gpu2 or --without-sim-gpu2 was given.
4031 if test "${with_sim_gpu2+set}" = set; then
4032 withval
="$with_sim_gpu2"
4033 if test -d "${withval}"
4035 SIM_SUBTARGET
="${SIM_SUBTARGET} -DSKY_GPU2 -I${withval}/include"
4036 mips_extra_libs
="-L${withval}/lib -lgpu2 -L${x_libraries} -lX11"
4038 { echo "configure: error: "Directory
${withval} does not exist.
"" 1>&2; exit 1; };
4041 # Enable target accurate FP library
4042 # Check whether --with-sim-funit or --without-sim-funit was given.
4043 if test "${with_sim_funit+set}" = set; then
4044 withval
="$with_sim_funit"
4045 if test -d "${withval}"
4047 SIM_SUBTARGET
="${SIM_SUBTARGET} -DSKY_FUNIT -I${withval}/include"
4048 mips_extra_libs
="${mips_extra_libs} -L${withval}/lib -lfunit"
4050 { echo "configure: error: "Directory
${withval} does not exist.
"" 1>&2; exit 1; };
4056 for ac_hdr
in string.h
strings.h stdlib.h stdlib.h
4058 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4059 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4060 echo "configure:4061: checking for $ac_hdr" >&5
4061 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4062 echo $ac_n "(cached) $ac_c" 1>&6
4064 cat > conftest.
$ac_ext <<EOF
4065 #line 4066 "configure"
4066 #include "confdefs.h"
4069 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4070 { (eval echo configure
:4071: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4071 ac_err
=`grep -v '^ *+' conftest.out`
4072 if test -z "$ac_err"; then
4074 eval "ac_cv_header_$ac_safe=yes"
4077 echo "configure: failed program was:" >&5
4078 cat conftest.
$ac_ext >&5
4080 eval "ac_cv_header_$ac_safe=no"
4084 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4085 echo "$ac_t""yes" 1>&6
4086 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4087 cat >> confdefs.h
<<EOF
4088 #define $ac_tr_hdr 1
4092 echo "$ac_t""no" 1>&6
4096 echo $ac_n "checking for fabs in -lm""... $ac_c" 1>&6
4097 echo "configure:4098: checking for fabs in -lm" >&5
4098 ac_lib_var
=`echo m'_'fabs | sed 'y%./+-%__p_%'`
4099 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4100 echo $ac_n "(cached) $ac_c" 1>&6
4102 ac_save_LIBS
="$LIBS"
4104 cat > conftest.
$ac_ext <<EOF
4105 #line 4106 "configure"
4106 #include "confdefs.h"
4107 /* Override any gcc2 internal prototype to avoid an error. */
4108 /* We use char because int might match the return type of a gcc2
4109 builtin and then its argument prototype would still apply. */
4116 if { (eval echo configure
:4117: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
4118 eval "ac_cv_lib_$ac_lib_var=yes"
4120 echo "configure: failed program was:" >&5
4121 cat conftest.
$ac_ext >&5
4123 eval "ac_cv_lib_$ac_lib_var=no"
4126 LIBS
="$ac_save_LIBS"
4129 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4130 echo "$ac_t""yes" 1>&6
4131 ac_tr_lib
=HAVE_LIB
`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4132 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4133 cat >> confdefs.h
<<EOF
4134 #define $ac_tr_lib 1
4140 echo "$ac_t""no" 1>&6
4143 for ac_func
in aint anint sqrt
4145 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4146 echo "configure:4147: checking for $ac_func" >&5
4147 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4148 echo $ac_n "(cached) $ac_c" 1>&6
4150 cat > conftest.
$ac_ext <<EOF
4151 #line 4152 "configure"
4152 #include "confdefs.h"
4153 /* System header to define __stub macros and hopefully few prototypes,
4154 which can conflict with char $ac_func(); below. */
4156 /* Override any gcc2 internal prototype to avoid an error. */
4157 /* We use char because int might match the return type of a gcc2
4158 builtin and then its argument prototype would still apply. */
4163 /* The GNU C library defines this for functions which it implements
4164 to always fail with ENOSYS. Some functions are actually named
4165 something starting with __ and the normal name is an alias. */
4166 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4174 if { (eval echo configure
:4175: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
4176 eval "ac_cv_func_$ac_func=yes"
4178 echo "configure: failed program was:" >&5
4179 cat conftest.
$ac_ext >&5
4181 eval "ac_cv_func_$ac_func=no"
4186 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4187 echo "$ac_t""yes" 1>&6
4188 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4189 cat >> confdefs.h
<<EOF
4190 #define $ac_tr_func 1
4194 echo "$ac_t""no" 1>&6
4202 cat > confcache
<<\EOF
4203 # This file is a shell script that caches the results of configure
4204 # tests run on this system so they can be shared between configure
4205 # scripts and configure runs. It is not useful on other systems.
4206 # If it contains results you don't want to keep, you may remove or edit it.
4208 # By default, configure uses ./config.cache as the cache file,
4209 # creating it if it does not exist already. You can give configure
4210 # the --cache-file=FILE option to use a different cache file; that is
4211 # what configure does when it calls configure scripts in
4212 # subdirectories, so they share the cache.
4213 # Giving --cache-file=/dev/null disables caching, for debugging configure.
4214 # config.status only pays attention to the cache file if you give it the
4215 # --recheck option to rerun configure.
4218 # The following way of writing the cache mishandles newlines in values,
4219 # but we know of no workaround that is simple, portable, and efficient.
4220 # So, don't put newlines in cache variables' values.
4221 # Ultrix sh set writes to stderr and can't be redirected directly,
4222 # and sets the high bit in the cache file unless we assign to the vars.
4224 case `(ac_space=' '; set) 2>&1 | grep ac_space` in
4226 # `set' does not quote correctly, so add quotes (double-quote substitution
4227 # turns \\\\ into \\, and sed turns \\ into \).
4229 -e "s/'/'\\\\''/g" \
4230 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
4233 # `set' quotes correctly as required by POSIX, so do not add quotes.
4234 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
4237 if cmp -s $cache_file confcache
; then
4240 if test -w $cache_file; then
4241 echo "updating cache $cache_file"
4242 cat confcache
> $cache_file
4244 echo "not updating unwritable cache $cache_file"
4249 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
4251 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
4252 # Let make expand exec_prefix.
4253 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
4255 # Any assignment to VPATH causes Sun make to only execute
4256 # the first set of double-colon rules, so remove it if not needed.
4257 # If there is a colon in the path, we need to keep it.
4258 if test "x$srcdir" = x.
; then
4259 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
4262 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
4264 DEFS
=-DHAVE_CONFIG_H
4266 # Without the "./", some shells look in PATH for config.status.
4267 : ${CONFIG_STATUS=./config.status}
4269 echo creating
$CONFIG_STATUS
4270 rm -f $CONFIG_STATUS
4271 cat > $CONFIG_STATUS <<EOF
4273 # Generated automatically by configure.
4274 # Run this file to recreate the current configuration.
4275 # This directory was configured as follows,
4276 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
4278 # $0 $ac_configure_args
4280 # Compiler output produced by configure, useful for debugging
4281 # configure, is in ./config.log if it exists.
4283 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
4286 case "\$ac_option" in
4287 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4288 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
4289 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
4290 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
4291 echo "$CONFIG_STATUS generated by autoconf version 2.12.1"
4293 -help | --help | --hel | --he | --h)
4294 echo "\$ac_cs_usage"; exit 0 ;;
4295 *) echo "\$ac_cs_usage"; exit 1 ;;
4299 ac_given_srcdir=$srcdir
4300 ac_given_INSTALL="$INSTALL"
4302 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
4304 cat >> $CONFIG_STATUS <<EOF
4306 # Protect against being on the right side of a sed subst in config.status.
4307 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
4308 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
4311 s%@sim_environment@%$sim_environment%g
4312 s%@sim_alignment@%$sim_alignment%g
4313 s%@sim_assert@%$sim_assert%g
4314 s%@sim_bitsize@%$sim_bitsize%g
4315 s%@sim_endian@%$sim_endian%g
4316 s%@sim_hostendian@%$sim_hostendian%g
4317 s%@sim_float@%$sim_float%g
4318 s%@sim_scache@%$sim_scache%g
4319 s%@sim_default_model@%$sim_default_model%g
4320 s%@sim_hardware@%$sim_hardware%g
4321 s%@sim_hw_obj@%$sim_hw_obj%g
4322 s%@sim_hw@%$sim_hw%g
4323 s%@sim_inline@%$sim_inline%g
4324 s%@sim_packages@%$sim_packages%g
4325 s%@sim_regparm@%$sim_regparm%g
4326 s%@sim_reserved_bits@%$sim_reserved_bits%g
4327 s%@sim_smp@%$sim_smp%g
4328 s%@sim_stdcall@%$sim_stdcall%g
4329 s%@sim_xor_endian@%$sim_xor_endian%g
4330 s%@sim_warnings@%$sim_warnings%g
4332 s%@CFLAGS@%$CFLAGS%g
4333 s%@CPPFLAGS@%$CPPFLAGS%g
4334 s%@CXXFLAGS@%$CXXFLAGS%g
4336 s%@LDFLAGS@%$LDFLAGS%g
4338 s%@exec_prefix@%$exec_prefix%g
4339 s%@prefix@%$prefix%g
4340 s%@program_transform_name@%$program_transform_name%g
4341 s%@bindir@%$bindir%g
4342 s%@sbindir@%$sbindir%g
4343 s%@libexecdir@%$libexecdir%g
4344 s%@datadir@%$datadir%g
4345 s%@sysconfdir@%$sysconfdir%g
4346 s%@sharedstatedir@%$sharedstatedir%g
4347 s%@localstatedir@%$localstatedir%g
4348 s%@libdir@%$libdir%g
4349 s%@includedir@%$includedir%g
4350 s%@oldincludedir@%$oldincludedir%g
4351 s%@infodir@%$infodir%g
4352 s%@mandir@%$mandir%g
4354 s%@host_alias@%$host_alias%g
4355 s%@host_cpu@%$host_cpu%g
4356 s%@host_vendor@%$host_vendor%g
4357 s%@host_os@%$host_os%g
4358 s%@target@%$target%g
4359 s%@target_alias@%$target_alias%g
4360 s%@target_cpu@%$target_cpu%g
4361 s%@target_vendor@%$target_vendor%g
4362 s%@target_os@%$target_os%g
4364 s%@build_alias@%$build_alias%g
4365 s%@build_cpu@%$build_cpu%g
4366 s%@build_vendor@%$build_vendor%g
4367 s%@build_os@%$build_os%g
4369 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
4370 s%@INSTALL_DATA@%$INSTALL_DATA%g
4371 s%@CC_FOR_BUILD@%$CC_FOR_BUILD%g
4372 s%@HDEFINES@%$HDEFINES%g
4374 s%@RANLIB@%$RANLIB%g
4375 s%@SET_MAKE@%$SET_MAKE%g
4377 s%@ALLOCA@%$ALLOCA%g
4378 s%@USE_NLS@%$USE_NLS%g
4379 s%@MSGFMT@%$MSGFMT%g
4380 s%@GMSGFMT@%$GMSGFMT%g
4381 s%@XGETTEXT@%$XGETTEXT%g
4382 s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
4383 s%@CATALOGS@%$CATALOGS%g
4384 s%@CATOBJEXT@%$CATOBJEXT%g
4385 s%@DATADIRNAME@%$DATADIRNAME%g
4386 s%@GMOFILES@%$GMOFILES%g
4387 s%@INSTOBJEXT@%$INSTOBJEXT%g
4388 s%@INTLDEPS@%$INTLDEPS%g
4389 s%@INTLLIBS@%$INTLLIBS%g
4390 s%@INTLOBJS@%$INTLOBJS%g
4391 s%@POFILES@%$POFILES%g
4393 s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g
4395 s%@GT_YES@%$GT_YES%g
4396 s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
4399 s%@sim_bswap@%$sim_bswap%g
4400 s%@sim_cflags@%$sim_cflags%g
4401 s%@sim_debug@%$sim_debug%g
4402 s%@sim_stdio@%$sim_stdio%g
4403 s%@sim_trace@%$sim_trace%g
4404 s%@sim_profile@%$sim_profile%g
4405 s%@SIMCONF@%$SIMCONF%g
4406 s%@SIM_SUBTARGET@%$SIM_SUBTARGET%g
4407 s%@sim_igen_flags@%$sim_igen_flags%g
4408 s%@sim_m16_flags@%$sim_m16_flags%g
4409 s%@sim_gen@%$sim_gen%g
4410 s%@mips_extra_objs@%$mips_extra_objs%g
4411 s%@mips_extra_libs@%$mips_extra_libs%g
4416 cat >> $CONFIG_STATUS <<\EOF
4418 # Split the substitutions into bite-sized pieces for seds with
4419 # small command number limits, like on Digital OSF/1 and HP-UX.
4420 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
4421 ac_file
=1 # Number of current file.
4422 ac_beg
=1 # First line for current file.
4423 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
4426 while $ac_more_lines; do
4427 if test $ac_beg -gt 1; then
4428 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
4430 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
4432 if test ! -s conftest.s
$ac_file; then
4434 rm -f conftest.s
$ac_file
4436 if test -z "$ac_sed_cmds"; then
4437 ac_sed_cmds
="sed -f conftest.s$ac_file"
4439 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
4441 ac_file
=`expr $ac_file + 1`
4443 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
4446 if test -z "$ac_sed_cmds"; then
4451 cat >> $CONFIG_STATUS <<EOF
4453 CONFIG_FILES=\${CONFIG_FILES-"Makefile.sim:Makefile.in Make-common.sim:../common/Make-common.in .gdbinit:../common/gdbinit.in"}
4455 cat >> $CONFIG_STATUS <<\EOF
4456 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
4457 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4459 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
4460 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
4461 *) ac_file_in
="${ac_file}.in" ;;
4464 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
4466 # Remove last slash and all that follows it. Not all systems have dirname.
4467 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
4468 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
4469 # The file is in a subdirectory.
4470 test ! -d "$ac_dir" && mkdir
"$ac_dir"
4471 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
4472 # A "../" for each directory in $ac_dir_suffix.
4473 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
4475 ac_dir_suffix
= ac_dots
=
4478 case "$ac_given_srcdir" in
4480 if test -z "$ac_dots"; then top_srcdir
=.
4481 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
4482 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
4484 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
4485 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
4488 case "$ac_given_INSTALL" in
4489 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
4490 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
4493 echo creating
"$ac_file"
4495 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
4497 *Makefile
*) ac_comsub
="1i\\
4498 # $configure_input" ;;
4502 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4504 s%@configure_input@%$configure_input%g
4505 s%@srcdir@%$srcdir%g
4506 s%@top_srcdir@%$top_srcdir%g
4507 s%@INSTALL@%$INSTALL%g
4508 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
4512 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
4513 # NAME is the cpp macro being defined and VALUE is the value it is being given.
4515 # ac_d sets the value in "#define NAME VALUE" lines.
4516 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
4517 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
4520 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
4521 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
4522 ac_uB
='\([ ]\)%\1#\2define\3'
4525 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
4526 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
4527 ac_eB
='$%\1#\2define\3'
4531 if test "${CONFIG_HEADERS+set}" != set; then
4533 cat >> $CONFIG_STATUS <<EOF
4534 CONFIG_HEADERS="config.h:config.in"
4536 cat >> $CONFIG_STATUS <<\EOF
4538 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
4539 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4541 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
4542 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
4543 *) ac_file_in
="${ac_file}.in" ;;
4546 echo creating
$ac_file
4548 rm -f conftest.frag conftest.
in conftest.out
4549 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4550 cat $ac_file_inputs > conftest.
in
4554 # Transform confdefs.h into a sed script conftest.vals that substitutes
4555 # the proper values into config.h.in to produce config.h. And first:
4556 # Protect against being on the right side of a sed subst in config.status.
4557 # Protect against being in an unquoted here document in config.status.
4559 cat > conftest.hdr
<<\EOF
4562 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
4566 sed -n -f conftest.hdr confdefs.h > conftest.vals
4569 # This sed command replaces #undef with comments. This is necessary, for
4570 # example, in the case of _POSIX_SOURCE, which is predefined and required
4571 # on some systems where configure will not decide to define it.
4572 cat >> conftest.vals <<\EOF
4573 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
4576 # Break up conftest.vals because some shells have a limit on
4577 # the size of here documents, and old seds have small limits too.
4582 ac_lines=`grep -c . conftest.vals
`
4583 # grep -c gives empty output for an empty file on some AIX systems.
4584 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
4585 # Write a limited-size here document to conftest.frag.
4586 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
4587 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
4589 sed -f conftest.frag conftest.in > conftest.out
4591 mv conftest.out conftest.in
4593 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
4595 mv conftest.tail conftest.vals
4599 cat >> $CONFIG_STATUS <<\EOF
4600 rm -f conftest.frag conftest.h
4601 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
4602 cat conftest.in >> conftest.h
4604 if cmp -s $ac_file conftest.h 2>/dev/null; then
4605 echo "$ac_file is unchanged"
4608 # Remove last slash and all that follows it. Not all systems have dirname.
4609 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
4610 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
4611 # The file is in a subdirectory.
4612 test ! -d "$ac_dir" && mkdir "$ac_dir"
4615 mv conftest.h $ac_file
4621 cat >> $CONFIG_STATUS <<EOF
4622 ac_sources="$sim_link_files"
4623 ac_dests="$sim_link_links"
4626 cat >> $CONFIG_STATUS <<\EOF
4627 srcdir=$ac_given_srcdir
4628 while test -n "$ac_sources"; do
4629 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
4630 set $ac_sources; ac_source=$1; shift; ac_sources=$*
4632 echo "linking $srcdir/$ac_source to $ac_dest"
4634 if test ! -r $srcdir/$ac_source; then
4635 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
4639 # Make relative symlinks.
4640 # Remove last slash and all that follows it. Not all systems have dirname.
4641 ac_dest_dir=`echo $ac_dest|
sed 's%/[^/][^/]*$%%'`
4642 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
4643 # The dest file is in a subdirectory.
4644 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
4645 ac_dest_dir_suffix="/`echo $ac_dest_dir|
sed 's%^\./%%'`"
4646 # A "../" for each directory in $ac_dest_dir_suffix.
4647 ac_dots=`echo $ac_dest_dir_suffix|
sed 's%/[^/]*%../%g'`
4649 ac_dest_dir_suffix= ac_dots=
4653 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
4654 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
4657 # Make a symlink if possible; otherwise try a hard link.
4658 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
4659 ln $srcdir/$ac_source $ac_dest; then :
4661 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
4665 cat >> $CONFIG_STATUS <<EOF
4668 cat >> $CONFIG_STATUS <<\EOF
4669 case "x$CONFIG_FILES" in
4671 echo "Merging Makefile.sim+Make-common.sim into Makefile ..."
4672 rm -f Makesim1.tmp Makesim2.tmp Makefile
4673 sed -n -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ p' <Make-common.sim >Makesim1.tmp
4674 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >Makesim2.tmp
4675 sed -e '/^## COMMON_PRE_/ r Makesim1.tmp' \
4676 -e '/^## COMMON_POST_/ r Makesim2.tmp' \
4677 <Makefile.sim >Makefile
4678 rm -f Makefile.sim Make-common.sim Makesim1.tmp Makesim2.tmp
4681 case "x$CONFIG_HEADERS" in xconfig.h:config.in) echo > stamp-h ;; esac
4685 chmod +x $CONFIG_STATUS
4686 rm -fr confdefs* $ac_clean_files
4687 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1