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-endian=endian Specify target byte endian orientation."
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-reserved-bits Specify whether to check reserved bits in instruction."
163 --enable-sim-bitsize=N Specify target bitsize (32 or 64)."
165 # Initialize some variables set by options.
166 # The variables have the same names as the options, with
167 # dashes changed to underlines.
169 cache_file
=.
/config.cache
178 program_transform_name
=s
,x
,x
,
186 bindir
='${exec_prefix}/bin'
187 sbindir
='${exec_prefix}/sbin'
188 libexecdir
='${exec_prefix}/libexec'
189 datadir
='${prefix}/share'
190 sysconfdir
='${prefix}/etc'
191 sharedstatedir
='${prefix}/com'
192 localstatedir
='${prefix}/var'
193 libdir
='${exec_prefix}/lib'
194 includedir
='${prefix}/include'
195 oldincludedir
='/usr/include'
196 infodir
='${prefix}/info'
197 mandir
='${prefix}/man'
199 # Initialize some other variables.
202 SHELL
=${CONFIG_SHELL-/bin/sh}
203 # Maximum number of lines to put in a shell here document.
210 # If the previous option needs an argument, assign it.
211 if test -n "$ac_prev"; then
212 eval "$ac_prev=\$ac_option"
218 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
222 # Accept the important Cygnus configure options, so we can diagnose typos.
226 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
228 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
229 bindir
="$ac_optarg" ;;
231 -build |
--build |
--buil |
--bui |
--bu)
233 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
234 build
="$ac_optarg" ;;
236 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
237 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
238 ac_prev
=cache_file
;;
239 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
240 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
241 cache_file
="$ac_optarg" ;;
243 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
245 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
247 datadir
="$ac_optarg" ;;
249 -disable-* |
--disable-*)
250 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
251 # Reject names that are not valid shell variable names.
252 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
253 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
255 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
256 eval "enable_${ac_feature}=no" ;;
258 -enable-* |
--enable-*)
259 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
260 # Reject names that are not valid shell variable names.
261 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
262 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
264 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
269 eval "enable_${ac_feature}='$ac_optarg'" ;;
271 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
272 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
273 |
--exec |
--exe |
--ex)
274 ac_prev
=exec_prefix
;;
275 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
276 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
277 |
--exec=* |
--exe=* |
--ex=*)
278 exec_prefix
="$ac_optarg" ;;
280 -gas |
--gas |
--ga |
--g)
281 # Obsolete; use --with-gas.
284 -help |
--help |
--hel |
--he)
285 # Omit some internal or obsolete options to make the list less imposing.
286 # This message is too long to be a string in the A/UX 3.1 sh.
288 Usage: configure [options] [host]
289 Options: [defaults in brackets after descriptions]
291 --cache-file=FILE cache test results in FILE
292 --help print this message
293 --no-create do not create output files
294 --quiet, --silent do not print \`checking...' messages
295 --version print the version of autoconf that created configure
296 Directory and file names:
297 --prefix=PREFIX install architecture-independent files in PREFIX
299 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
301 --bindir=DIR user executables in DIR [EPREFIX/bin]
302 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
303 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
304 --datadir=DIR read-only architecture-independent data in DIR
306 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
307 --sharedstatedir=DIR modifiable architecture-independent data in DIR
309 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
310 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
311 --includedir=DIR C header files in DIR [PREFIX/include]
312 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
313 --infodir=DIR info documentation in DIR [PREFIX/info]
314 --mandir=DIR man documentation in DIR [PREFIX/man]
315 --srcdir=DIR find the sources in DIR [configure dir or ..]
316 --program-prefix=PREFIX prepend PREFIX to installed program names
317 --program-suffix=SUFFIX append SUFFIX to installed program names
318 --program-transform-name=PROGRAM
319 run sed PROGRAM on installed program names
323 --build=BUILD configure for building on BUILD [BUILD=HOST]
324 --host=HOST configure for HOST [guessed]
325 --target=TARGET configure for TARGET [TARGET=HOST]
326 Features and packages:
327 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
328 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
329 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
330 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
331 --x-includes=DIR X include files are in DIR
332 --x-libraries=DIR X library files are in DIR
334 if test -n "$ac_help"; then
335 echo "--enable and --with options recognized:$ac_help"
339 -host |
--host |
--hos |
--ho)
341 -host=* |
--host=* |
--hos=* |
--ho=*)
344 -includedir |
--includedir |
--includedi |
--included |
--include \
345 |
--includ |
--inclu |
--incl |
--inc)
346 ac_prev
=includedir
;;
347 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
348 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
349 includedir
="$ac_optarg" ;;
351 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
353 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
354 infodir
="$ac_optarg" ;;
356 -libdir |
--libdir |
--libdi |
--libd)
358 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
359 libdir
="$ac_optarg" ;;
361 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
362 |
--libexe |
--libex |
--libe)
363 ac_prev
=libexecdir
;;
364 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
365 |
--libexe=* |
--libex=* |
--libe=*)
366 libexecdir
="$ac_optarg" ;;
368 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
369 |
--localstate |
--localstat |
--localsta |
--localst \
370 |
--locals |
--local |
--loca |
--loc |
--lo)
371 ac_prev
=localstatedir
;;
372 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
373 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
374 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
375 localstatedir
="$ac_optarg" ;;
377 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
379 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
380 mandir
="$ac_optarg" ;;
383 # Obsolete; use --without-fp.
386 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
390 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
391 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
394 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
395 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
396 |
--oldin |
--oldi |
--old |
--ol |
--o)
397 ac_prev
=oldincludedir
;;
398 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
399 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
400 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
401 oldincludedir
="$ac_optarg" ;;
403 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
405 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
406 prefix
="$ac_optarg" ;;
408 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
409 |
--program-pre |
--program-pr |
--program-p)
410 ac_prev
=program_prefix
;;
411 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
412 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
413 program_prefix
="$ac_optarg" ;;
415 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
416 |
--program-suf |
--program-su |
--program-s)
417 ac_prev
=program_suffix
;;
418 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
419 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
420 program_suffix
="$ac_optarg" ;;
422 -program-transform-name |
--program-transform-name \
423 |
--program-transform-nam |
--program-transform-na \
424 |
--program-transform-n |
--program-transform- \
425 |
--program-transform |
--program-transfor \
426 |
--program-transfo |
--program-transf \
427 |
--program-trans |
--program-tran \
428 |
--progr-tra |
--program-tr |
--program-t)
429 ac_prev
=program_transform_name
;;
430 -program-transform-name=* |
--program-transform-name=* \
431 |
--program-transform-nam=* |
--program-transform-na=* \
432 |
--program-transform-n=* |
--program-transform-=* \
433 |
--program-transform=* |
--program-transfor=* \
434 |
--program-transfo=* |
--program-transf=* \
435 |
--program-trans=* |
--program-tran=* \
436 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
437 program_transform_name
="$ac_optarg" ;;
439 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
440 |
-silent |
--silent |
--silen |
--sile |
--sil)
443 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
445 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
447 sbindir
="$ac_optarg" ;;
449 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
450 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
451 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
453 ac_prev
=sharedstatedir
;;
454 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
455 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
456 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
458 sharedstatedir
="$ac_optarg" ;;
460 -site |
--site |
--sit)
462 -site=* |
--site=* |
--sit=*)
465 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
467 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
468 srcdir
="$ac_optarg" ;;
470 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
471 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
472 ac_prev
=sysconfdir
;;
473 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
474 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
475 sysconfdir
="$ac_optarg" ;;
477 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
479 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
480 target
="$ac_optarg" ;;
482 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
485 -version |
--version |
--versio |
--versi |
--vers)
486 echo "configure generated by autoconf version 2.12.1"
490 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
491 # Reject names that are not valid shell variable names.
492 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
493 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
495 ac_package
=`echo $ac_package| sed 's/-/_/g'`
500 eval "with_${ac_package}='$ac_optarg'" ;;
502 -without-* |
--without-*)
503 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
504 # Reject names that are not valid shell variable names.
505 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
506 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
508 ac_package
=`echo $ac_package| sed 's/-/_/g'`
509 eval "with_${ac_package}=no" ;;
512 # Obsolete; use --with-x.
515 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
516 |
--x-incl |
--x-inc |
--x-in |
--x-i)
517 ac_prev
=x_includes
;;
518 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
519 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
520 x_includes
="$ac_optarg" ;;
522 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
523 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
524 ac_prev
=x_libraries
;;
525 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
526 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
527 x_libraries
="$ac_optarg" ;;
529 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
533 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
534 echo "configure: warning: $ac_option: invalid host type" 1>&2
536 if test "x$nonopt" != xNONE
; then
537 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
545 if test -n "$ac_prev"; then
546 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
549 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
551 # File descriptor usage:
554 # 2 errors and warnings
555 # 3 some systems may open it to /dev/tty
556 # 4 used on the Kubota Titan
557 # 6 checking for... messages and results
558 # 5 compiler messages saved in config.log
559 if test "$silent" = yes; then
567 This file contains any messages produced by compilers while
568 running configure, to aid debugging if configure makes a mistake.
571 # Strip out --no-create and --no-recursion so they do not pile up.
572 # Also quote any args containing shell metacharacters.
577 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
578 |
--no-cr |
--no-c) ;;
579 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
580 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
581 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
582 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
583 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
588 # Only set these to C if already set. These must not be set unconditionally
589 # because not all systems understand e.g. LANG=C (notably SCO).
590 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
591 # Non-C LC_CTYPE values break the ctype check.
592 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
593 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
594 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
595 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
597 # confdefs.h avoids OS command line length limits that DEFS can exceed.
598 rm -rf conftest
* confdefs.h
599 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
602 # A filename unique to this package, relative to the directory that
603 # configure is in, which we can look for to find out if srcdir is correct.
604 ac_unique_file
=Makefile.
in
606 # Find the source files, if location was not specified.
607 if test -z "$srcdir"; then
608 ac_srcdir_defaulted
=yes
609 # Try the directory containing this script, then its parent.
611 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
612 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
614 if test ! -r $srcdir/$ac_unique_file; then
618 ac_srcdir_defaulted
=no
620 if test ! -r $srcdir/$ac_unique_file; then
621 if test "$ac_srcdir_defaulted" = yes; then
622 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
624 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
627 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
629 # Prefer explicitly selected file to automatically selected ones.
630 if test -z "$CONFIG_SITE"; then
631 if test "x$prefix" != xNONE
; then
632 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
634 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
637 for ac_site_file
in $CONFIG_SITE; do
638 if test -r "$ac_site_file"; then
639 echo "loading site script $ac_site_file"
644 if test -r "$cache_file"; then
645 echo "loading cache $cache_file"
648 echo "creating cache $cache_file"
653 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
654 ac_cpp
='$CPP $CPPFLAGS'
655 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
656 ac_link
='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
657 cross_compiling
=$ac_cv_prog_cc_cross
659 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
660 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
661 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
668 ac_n
= ac_c
='\c' ac_t
=
673 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
674 echo "configure:675: checking how to run the C preprocessor" >&5
675 # On Suns, sometimes $CPP names a directory.
676 if test -n "$CPP" && test -d "$CPP"; then
679 if test -z "$CPP"; then
680 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
681 echo $ac_n "(cached) $ac_c" 1>&6
683 # This must be in double quotes, not single quotes, because CPP may get
684 # substituted into the Makefile and "${CC-cc}" will confuse make.
686 # On the NeXT, cc -E runs the code through the compiler's parser,
687 # not just through cpp.
688 cat > conftest.
$ac_ext <<EOF
689 #line 690 "configure"
690 #include "confdefs.h"
694 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
695 { (eval echo configure
:696: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
696 ac_err
=`grep -v '^ *+' conftest.out`
697 if test -z "$ac_err"; then
701 echo "configure: failed program was:" >&5
702 cat conftest.
$ac_ext >&5
704 CPP
="${CC-cc} -E -traditional-cpp"
705 cat > conftest.
$ac_ext <<EOF
706 #line 707 "configure"
707 #include "confdefs.h"
711 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
712 { (eval echo configure
:713: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
713 ac_err
=`grep -v '^ *+' conftest.out`
714 if test -z "$ac_err"; then
718 echo "configure: failed program was:" >&5
719 cat conftest.
$ac_ext >&5
726 ac_cv_prog_CPP
="$CPP"
728 CPP
="$ac_cv_prog_CPP"
730 ac_cv_prog_CPP
="$CPP"
732 echo "$ac_t""$CPP" 1>&6
734 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
735 echo "configure:736: checking whether ${MAKE-make} sets \${MAKE}" >&5
736 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y%./+-%__p_%'`
737 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
738 echo $ac_n "(cached) $ac_c" 1>&6
740 cat > conftestmake
<<\EOF
742 @
echo 'ac_maketemp="${MAKE}"'
744 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
745 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
746 if test -n "$ac_maketemp"; then
747 eval ac_cv_prog_make_
${ac_make}_set
=yes
749 eval ac_cv_prog_make_
${ac_make}_set
=no
753 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
754 echo "$ac_t""yes" 1>&6
757 echo "$ac_t""no" 1>&6
758 SET_MAKE
="MAKE=${MAKE-make}"
761 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
762 echo "configure:763: checking for POSIXized ISC" >&5
763 if test -d /etc
/conf
/kconfig.d
&&
764 grep _POSIX_VERSION
/usr
/include
/sys
/unistd.h
>/dev
/null
2>&1
766 echo "$ac_t""yes" 1>&6
767 ISC
=yes # If later tests want to check for ISC.
768 cat >> confdefs.h
<<\EOF
769 #define _POSIX_SOURCE 1
772 if test "$GCC" = yes; then
778 echo "$ac_t""no" 1>&6
782 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
783 echo "configure:784: checking for ANSI C header files" >&5
784 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
785 echo $ac_n "(cached) $ac_c" 1>&6
787 cat > conftest.
$ac_ext <<EOF
788 #line 789 "configure"
789 #include "confdefs.h"
795 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
796 { (eval echo configure
:797: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
797 ac_err
=`grep -v '^ *+' conftest.out`
798 if test -z "$ac_err"; then
800 ac_cv_header_stdc
=yes
803 echo "configure: failed program was:" >&5
804 cat conftest.
$ac_ext >&5
810 if test $ac_cv_header_stdc = yes; then
811 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
812 cat > conftest.
$ac_ext <<EOF
813 #line 814 "configure"
814 #include "confdefs.h"
817 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
818 egrep "memchr" >/dev
/null
2>&1; then
828 if test $ac_cv_header_stdc = yes; then
829 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
830 cat > conftest.
$ac_ext <<EOF
831 #line 832 "configure"
832 #include "confdefs.h"
835 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
836 egrep "free" >/dev
/null
2>&1; then
846 if test $ac_cv_header_stdc = yes; then
847 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
848 if test "$cross_compiling" = yes; then
851 cat > conftest.
$ac_ext <<EOF
852 #line 853 "configure"
853 #include "confdefs.h"
855 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
856 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
857 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
858 int main () { int i; for (i = 0; i < 256; i++)
859 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
863 if { (eval echo configure
:864: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
867 echo "configure: failed program was:" >&5
868 cat conftest.
$ac_ext >&5
878 echo "$ac_t""$ac_cv_header_stdc" 1>&6
879 if test $ac_cv_header_stdc = yes; then
880 cat >> confdefs.h
<<\EOF
881 #define STDC_HEADERS 1
886 echo $ac_n "checking for working const""... $ac_c" 1>&6
887 echo "configure:888: checking for working const" >&5
888 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
889 echo $ac_n "(cached) $ac_c" 1>&6
891 cat > conftest.
$ac_ext <<EOF
892 #line 893 "configure"
893 #include "confdefs.h"
897 /* Ultrix mips cc rejects this. */
898 typedef int charset[2]; const charset x;
899 /* SunOS 4.1.1 cc rejects this. */
900 char const *const *ccp;
902 /* NEC SVR4.0.2 mips cc rejects this. */
903 struct point {int x, y;};
904 static struct point const zero = {0,0};
905 /* AIX XL C 1.02.0.0 rejects this.
906 It does not let you subtract one const X* pointer from another in an arm
907 of an if-expression whose if-part is not a constant expression */
908 const char *g = "string";
909 ccp = &g + (g ? g-g : 0);
910 /* HPUX 7.0 cc rejects these. */
913 ccp = (char const *const *) p;
914 { /* SCO 3.2v4 cc rejects this. */
916 char const *s = 0 ? (char *) 0 : (char const *) 0;
920 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
922 const int *foo = &x[0];
925 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
926 typedef const int *iptr;
930 { /* AIX XL C 1.02.0.0 rejects this saying
931 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
932 struct s { int j; const int *ap[3]; };
933 struct s *b; b->j = 5;
935 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
941 if { (eval echo configure
:942: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
945 echo "configure: failed program was:" >&5
946 cat conftest.
$ac_ext >&5
953 echo "$ac_t""$ac_cv_c_const" 1>&6
954 if test $ac_cv_c_const = no
; then
955 cat >> confdefs.h
<<\EOF
961 echo $ac_n "checking for inline""... $ac_c" 1>&6
962 echo "configure:963: checking for inline" >&5
963 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
964 echo $ac_n "(cached) $ac_c" 1>&6
967 for ac_kw
in inline __inline__ __inline
; do
968 cat > conftest.
$ac_ext <<EOF
969 #line 970 "configure"
970 #include "confdefs.h"
976 if { (eval echo configure
:977: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
978 ac_cv_c_inline
=$ac_kw; break
980 echo "configure: failed program was:" >&5
981 cat conftest.
$ac_ext >&5
988 echo "$ac_t""$ac_cv_c_inline" 1>&6
989 case "$ac_cv_c_inline" in
991 no
) cat >> confdefs.h
<<\EOF
995 *) cat >> confdefs.h
<<EOF
996 #define inline $ac_cv_c_inline
1001 echo $ac_n "checking for off_t""... $ac_c" 1>&6
1002 echo "configure:1003: checking for off_t" >&5
1003 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
1004 echo $ac_n "(cached) $ac_c" 1>&6
1006 cat > conftest.
$ac_ext <<EOF
1007 #line 1008 "configure"
1008 #include "confdefs.h"
1009 #include <sys/types.h>
1015 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1016 egrep "off_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
1018 ac_cv_type_off_t
=yes
1026 echo "$ac_t""$ac_cv_type_off_t" 1>&6
1027 if test $ac_cv_type_off_t = no
; then
1028 cat >> confdefs.h
<<\EOF
1034 echo $ac_n "checking for size_t""... $ac_c" 1>&6
1035 echo "configure:1036: checking for size_t" >&5
1036 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
1037 echo $ac_n "(cached) $ac_c" 1>&6
1039 cat > conftest.
$ac_ext <<EOF
1040 #line 1041 "configure"
1041 #include "confdefs.h"
1042 #include <sys/types.h>
1048 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1049 egrep "size_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
1051 ac_cv_type_size_t
=yes
1054 ac_cv_type_size_t
=no
1059 echo "$ac_t""$ac_cv_type_size_t" 1>&6
1060 if test $ac_cv_type_size_t = no
; then
1061 cat >> confdefs.h
<<\EOF
1062 #define size_t unsigned
1067 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
1068 # for constant arguments. Useless!
1069 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
1070 echo "configure:1071: checking for working alloca.h" >&5
1071 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
1072 echo $ac_n "(cached) $ac_c" 1>&6
1074 cat > conftest.
$ac_ext <<EOF
1075 #line 1076 "configure"
1076 #include "confdefs.h"
1079 char *p = alloca(2 * sizeof(int));
1082 if { (eval echo configure
:1083: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1084 ac_cv_header_alloca_h
=yes
1086 echo "configure: failed program was:" >&5
1087 cat conftest.
$ac_ext >&5
1089 ac_cv_header_alloca_h
=no
1094 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
1095 if test $ac_cv_header_alloca_h = yes; then
1096 cat >> confdefs.h
<<\EOF
1097 #define HAVE_ALLOCA_H 1
1102 echo $ac_n "checking for alloca""... $ac_c" 1>&6
1103 echo "configure:1104: checking for alloca" >&5
1104 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
1105 echo $ac_n "(cached) $ac_c" 1>&6
1107 cat > conftest.
$ac_ext <<EOF
1108 #line 1109 "configure"
1109 #include "confdefs.h"
1112 # define alloca __builtin_alloca
1115 # include <alloca.h>
1120 # ifndef alloca /* predefined by HP cc +Olibcalls */
1128 char *p = (char *) alloca(1);
1131 if { (eval echo configure
:1132: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1133 ac_cv_func_alloca_works
=yes
1135 echo "configure: failed program was:" >&5
1136 cat conftest.
$ac_ext >&5
1138 ac_cv_func_alloca_works
=no
1143 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
1144 if test $ac_cv_func_alloca_works = yes; then
1145 cat >> confdefs.h
<<\EOF
1146 #define HAVE_ALLOCA 1
1151 if test $ac_cv_func_alloca_works = no
; then
1152 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
1153 # that cause trouble. Some versions do not even contain alloca or
1154 # contain a buggy version. If you still want to use their alloca,
1155 # use ar to extract alloca.o from them instead of compiling alloca.c.
1157 cat >> confdefs.h
<<\EOF
1162 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
1163 echo "configure:1164: checking whether alloca needs Cray hooks" >&5
1164 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
1165 echo $ac_n "(cached) $ac_c" 1>&6
1167 cat > conftest.
$ac_ext <<EOF
1168 #line 1169 "configure"
1169 #include "confdefs.h"
1170 #if defined(CRAY) && ! defined(CRAY2)
1177 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1178 egrep "webecray" >/dev
/null
2>&1; then
1189 echo "$ac_t""$ac_cv_os_cray" 1>&6
1190 if test $ac_cv_os_cray = yes; then
1191 for ac_func
in _getb67 GETB67 getb67
; do
1192 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1193 echo "configure:1194: checking for $ac_func" >&5
1194 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1195 echo $ac_n "(cached) $ac_c" 1>&6
1197 cat > conftest.
$ac_ext <<EOF
1198 #line 1199 "configure"
1199 #include "confdefs.h"
1200 /* System header to define __stub macros and hopefully few prototypes,
1201 which can conflict with char $ac_func(); below. */
1203 /* Override any gcc2 internal prototype to avoid an error. */
1204 /* We use char because int might match the return type of a gcc2
1205 builtin and then its argument prototype would still apply. */
1210 /* The GNU C library defines this for functions which it implements
1211 to always fail with ENOSYS. Some functions are actually named
1212 something starting with __ and the normal name is an alias. */
1213 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1221 if { (eval echo configure
:1222: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1223 eval "ac_cv_func_$ac_func=yes"
1225 echo "configure: failed program was:" >&5
1226 cat conftest.
$ac_ext >&5
1228 eval "ac_cv_func_$ac_func=no"
1233 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1234 echo "$ac_t""yes" 1>&6
1235 cat >> confdefs.h
<<EOF
1236 #define CRAY_STACKSEG_END $ac_func
1241 echo "$ac_t""no" 1>&6
1247 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
1248 echo "configure:1249: checking stack direction for C alloca" >&5
1249 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
1250 echo $ac_n "(cached) $ac_c" 1>&6
1252 if test "$cross_compiling" = yes; then
1253 ac_cv_c_stack_direction
=0
1255 cat > conftest.
$ac_ext <<EOF
1256 #line 1257 "configure"
1257 #include "confdefs.h"
1258 find_stack_direction ()
1260 static char *addr = 0;
1265 return find_stack_direction ();
1268 return (&dummy > addr) ? 1 : -1;
1272 exit (find_stack_direction() < 0);
1275 if { (eval echo configure
:1276: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
1277 ac_cv_c_stack_direction
=1
1279 echo "configure: failed program was:" >&5
1280 cat conftest.
$ac_ext >&5
1282 ac_cv_c_stack_direction
=-1
1289 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
1290 cat >> confdefs.h
<<EOF
1291 #define STACK_DIRECTION $ac_cv_c_stack_direction
1296 for ac_hdr
in unistd.h
1298 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1299 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1300 echo "configure:1301: checking for $ac_hdr" >&5
1301 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1302 echo $ac_n "(cached) $ac_c" 1>&6
1304 cat > conftest.
$ac_ext <<EOF
1305 #line 1306 "configure"
1306 #include "confdefs.h"
1309 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1310 { (eval echo configure
:1311: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1311 ac_err
=`grep -v '^ *+' conftest.out`
1312 if test -z "$ac_err"; then
1314 eval "ac_cv_header_$ac_safe=yes"
1317 echo "configure: failed program was:" >&5
1318 cat conftest.
$ac_ext >&5
1320 eval "ac_cv_header_$ac_safe=no"
1324 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1325 echo "$ac_t""yes" 1>&6
1326 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1327 cat >> confdefs.h
<<EOF
1328 #define $ac_tr_hdr 1
1332 echo "$ac_t""no" 1>&6
1336 for ac_func
in getpagesize
1338 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1339 echo "configure:1340: checking for $ac_func" >&5
1340 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1341 echo $ac_n "(cached) $ac_c" 1>&6
1343 cat > conftest.
$ac_ext <<EOF
1344 #line 1345 "configure"
1345 #include "confdefs.h"
1346 /* System header to define __stub macros and hopefully few prototypes,
1347 which can conflict with char $ac_func(); below. */
1349 /* Override any gcc2 internal prototype to avoid an error. */
1350 /* We use char because int might match the return type of a gcc2
1351 builtin and then its argument prototype would still apply. */
1356 /* The GNU C library defines this for functions which it implements
1357 to always fail with ENOSYS. Some functions are actually named
1358 something starting with __ and the normal name is an alias. */
1359 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1367 if { (eval echo configure
:1368: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1369 eval "ac_cv_func_$ac_func=yes"
1371 echo "configure: failed program was:" >&5
1372 cat conftest.
$ac_ext >&5
1374 eval "ac_cv_func_$ac_func=no"
1379 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1380 echo "$ac_t""yes" 1>&6
1381 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1382 cat >> confdefs.h
<<EOF
1383 #define $ac_tr_func 1
1387 echo "$ac_t""no" 1>&6
1391 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
1392 echo "configure:1393: checking for working mmap" >&5
1393 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
1394 echo $ac_n "(cached) $ac_c" 1>&6
1396 if test "$cross_compiling" = yes; then
1397 ac_cv_func_mmap_fixed_mapped
=no
1399 cat > conftest.
$ac_ext <<EOF
1400 #line 1401 "configure"
1401 #include "confdefs.h"
1403 /* Thanks to Mike Haertel and Jim Avera for this test.
1404 Here is a matrix of mmap possibilities:
1405 mmap private not fixed
1406 mmap private fixed at somewhere currently unmapped
1407 mmap private fixed at somewhere already mapped
1408 mmap shared not fixed
1409 mmap shared fixed at somewhere currently unmapped
1410 mmap shared fixed at somewhere already mapped
1411 For private mappings, we should verify that changes cannot be read()
1412 back from the file, nor mmap's back from the file at a different
1413 address. (There have been systems where private was not correctly
1414 implemented like the infamous i386 svr4.0, and systems where the
1415 VM page cache was not coherent with the filesystem buffer cache
1416 like early versions of FreeBSD and possibly contemporary NetBSD.)
1417 For shared mappings, we should conversely verify that changes get
1418 propogated back to all the places they're supposed to be.
1420 Grep wants private fixed already mapped.
1421 The main things grep needs to know about mmap are:
1422 * does it exist and is it safe to write into the mmap'd area
1423 * how to use it (BSD variants) */
1424 #include <sys/types.h>
1426 #include <sys/mman.h>
1428 /* This mess was copied from the GNU getpagesize.h. */
1429 #ifndef HAVE_GETPAGESIZE
1430 # ifdef HAVE_UNISTD_H
1431 # include <unistd.h>
1434 /* Assume that all systems that can run configure have sys/param.h. */
1435 # ifndef HAVE_SYS_PARAM_H
1436 # define HAVE_SYS_PARAM_H 1
1439 # ifdef _SC_PAGESIZE
1440 # define getpagesize() sysconf(_SC_PAGESIZE)
1441 # else /* no _SC_PAGESIZE */
1442 # ifdef HAVE_SYS_PARAM_H
1443 # include <sys/param.h>
1444 # ifdef EXEC_PAGESIZE
1445 # define getpagesize() EXEC_PAGESIZE
1446 # else /* no EXEC_PAGESIZE */
1448 # define getpagesize() NBPG * CLSIZE
1451 # endif /* no CLSIZE */
1452 # else /* no NBPG */
1454 # define getpagesize() NBPC
1455 # else /* no NBPC */
1457 # define getpagesize() PAGESIZE
1458 # endif /* PAGESIZE */
1459 # endif /* no NBPC */
1460 # endif /* no NBPG */
1461 # endif /* no EXEC_PAGESIZE */
1462 # else /* no HAVE_SYS_PARAM_H */
1463 # define getpagesize() 8192 /* punt totally */
1464 # endif /* no HAVE_SYS_PARAM_H */
1465 # endif /* no _SC_PAGESIZE */
1467 #endif /* no HAVE_GETPAGESIZE */
1470 extern "C" { void *malloc(unsigned); }
1478 char *data, *data2, *data3;
1482 pagesize = getpagesize();
1485 * First, make a file with some known garbage in it.
1487 data = malloc(pagesize);
1490 for (i = 0; i < pagesize; ++i)
1491 *(data + i) = rand();
1493 fd = creat("conftestmmap", 0600);
1496 if (write(fd, data, pagesize) != pagesize)
1501 * Next, try to mmap the file at a fixed address which
1502 * already has something else allocated at it. If we can,
1503 * also make sure that we see the same garbage.
1505 fd = open("conftestmmap", O_RDWR);
1508 data2 = malloc(2 * pagesize);
1511 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
1512 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
1513 MAP_PRIVATE | MAP_FIXED, fd, 0L))
1515 for (i = 0; i < pagesize; ++i)
1516 if (*(data + i) != *(data2 + i))
1520 * Finally, make sure that changes to the mapped area
1521 * do not percolate back to the file as seen by read().
1522 * (This is a bug on some variants of i386 svr4.0.)
1524 for (i = 0; i < pagesize; ++i)
1525 *(data2 + i) = *(data2 + i) + 1;
1526 data3 = malloc(pagesize);
1529 if (read(fd, data3, pagesize) != pagesize)
1531 for (i = 0; i < pagesize; ++i)
1532 if (*(data + i) != *(data3 + i))
1535 unlink("conftestmmap");
1540 if { (eval echo configure
:1541: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
1542 ac_cv_func_mmap_fixed_mapped
=yes
1544 echo "configure: failed program was:" >&5
1545 cat conftest.
$ac_ext >&5
1547 ac_cv_func_mmap_fixed_mapped
=no
1554 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
1555 if test $ac_cv_func_mmap_fixed_mapped = yes; then
1556 cat >> confdefs.h
<<\EOF
1563 # autoconf.info says this should be called right after AC_INIT.
1567 for ac_dir
in `cd $srcdir;pwd`/..
/..
$srcdir/`cd $srcdir;pwd`/..
/..
; do
1568 if test -f $ac_dir/install-sh
; then
1570 ac_install_sh
="$ac_aux_dir/install-sh -c"
1572 elif test -f $ac_dir/install.sh
; then
1574 ac_install_sh
="$ac_aux_dir/install.sh -c"
1578 if test -z "$ac_aux_dir"; then
1579 { echo "configure: error: can not find install-sh or install.sh in `cd $srcdir;pwd`/../.. $srcdir/`cd $srcdir;pwd`/../.." 1>&2; exit 1; }
1581 ac_config_guess
=$ac_aux_dir/config.guess
1582 ac_config_sub
=$ac_aux_dir/config.sub
1583 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
1586 # Do some error checking and defaulting for the host and target type.
1588 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
1591 # 1. You are not allowed to specify --host, --target, and nonopt at the
1593 # 2. Host defaults to nonopt.
1594 # 3. If nonopt is not specified, then host defaults to the current host,
1595 # as determined by config.guess.
1596 # 4. Target and build default to nonopt.
1597 # 5. If nonopt is not specified, then target and build default to host.
1599 # The aliases save the names the user supplied, while $host etc.
1600 # will get canonicalized.
1601 case $host---$target---$nonopt in
1602 NONE---
*---* |
*---NONE---* |
*---*---NONE) ;;
1603 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
1607 # Make sure we can run config.sub.
1608 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4
>/dev
/null
2>&1; then :
1609 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1612 echo $ac_n "checking host system type""... $ac_c" 1>&6
1613 echo "configure:1614: checking host system type" >&5
1616 case "$host_alias" in
1620 if host_alias
=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1621 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1623 *) host_alias
=$nonopt ;;
1627 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1628 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1629 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1630 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1631 echo "$ac_t""$host" 1>&6
1633 echo $ac_n "checking target system type""... $ac_c" 1>&6
1634 echo "configure:1635: checking target system type" >&5
1636 target_alias
=$target
1637 case "$target_alias" in
1640 NONE
) target_alias
=$host_alias ;;
1641 *) target_alias
=$nonopt ;;
1645 target
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
1646 target_cpu
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1647 target_vendor
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1648 target_os
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1649 echo "$ac_t""$target" 1>&6
1651 echo $ac_n "checking build system type""... $ac_c" 1>&6
1652 echo "configure:1653: checking build system type" >&5
1655 case "$build_alias" in
1658 NONE
) build_alias
=$host_alias ;;
1659 *) build_alias
=$nonopt ;;
1663 build
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1664 build_cpu
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1665 build_vendor
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1666 build_os
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1667 echo "$ac_t""$build" 1>&6
1669 test "$host_alias" != "$target_alias" &&
1670 test "$program_prefix$program_suffix$program_transform_name" = \
1672 program_prefix
=${target_alias}-
1674 if test "$program_transform_name" = s
,x
,x
,; then
1675 program_transform_name
=
1677 # Double any \ or $. echo might interpret backslashes.
1678 cat <<\EOF_SED
> conftestsed
1679 s
,\\,\\\\,g
; s
,\$
,$$
,g
1681 program_transform_name
="`echo $program_transform_name|sed -f conftestsed`"
1684 test "$program_prefix" != NONE
&&
1685 program_transform_name
="s,^,${program_prefix},; $program_transform_name"
1686 # Use a double $ so make ignores it.
1687 test "$program_suffix" != NONE
&&
1688 program_transform_name
="s,\$\$,${program_suffix},; $program_transform_name"
1690 # sed with no file args requires a program.
1691 test "$program_transform_name" = "" && program_transform_name
="s,x,x,"
1693 # Extract the first word of "gcc", so it can be a program name with args.
1694 set dummy gcc
; ac_word
=$2
1695 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1696 echo "configure:1697: checking for $ac_word" >&5
1697 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1698 echo $ac_n "(cached) $ac_c" 1>&6
1700 if test -n "$CC"; then
1701 ac_cv_prog_CC
="$CC" # Let the user override the test.
1703 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1704 for ac_dir
in $PATH; do
1705 test -z "$ac_dir" && ac_dir
=.
1706 if test -f $ac_dir/$ac_word; then
1715 if test -n "$CC"; then
1716 echo "$ac_t""$CC" 1>&6
1718 echo "$ac_t""no" 1>&6
1721 if test -z "$CC"; then
1722 # Extract the first word of "cc", so it can be a program name with args.
1723 set dummy cc
; ac_word
=$2
1724 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1725 echo "configure:1726: checking for $ac_word" >&5
1726 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1727 echo $ac_n "(cached) $ac_c" 1>&6
1729 if test -n "$CC"; then
1730 ac_cv_prog_CC
="$CC" # Let the user override the test.
1732 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1734 for ac_dir
in $PATH; do
1735 test -z "$ac_dir" && ac_dir
=.
1736 if test -f $ac_dir/$ac_word; then
1737 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1738 ac_prog_rejected
=yes
1746 if test $ac_prog_rejected = yes; then
1747 # We found a bogon in the path, so make sure we never use it.
1748 set dummy
$ac_cv_prog_CC
1750 if test $# -gt 0; then
1751 # We chose a different compiler from the bogus one.
1752 # However, it has the same basename, so the bogon will be chosen
1753 # first if we set CC to just the basename; use the full file name.
1755 set dummy
"$ac_dir/$ac_word" "$@"
1763 if test -n "$CC"; then
1764 echo "$ac_t""$CC" 1>&6
1766 echo "$ac_t""no" 1>&6
1769 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1772 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1773 echo "configure:1774: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1776 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1777 ac_cpp
='$CPP $CPPFLAGS'
1778 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1779 ac_link
='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1780 cross_compiling
=$ac_cv_prog_cc_cross
1782 cat > conftest.
$ac_ext <<EOF
1783 #line 1784 "configure"
1784 #include "confdefs.h"
1787 if { (eval echo configure
:1788: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1788 ac_cv_prog_cc_works
=yes
1789 # If we can't run a trivial program, we are probably using a cross compiler.
1790 if (.
/conftest
; exit) 2>/dev
/null
; then
1791 ac_cv_prog_cc_cross
=no
1793 ac_cv_prog_cc_cross
=yes
1796 echo "configure: failed program was:" >&5
1797 cat conftest.
$ac_ext >&5
1798 ac_cv_prog_cc_works
=no
1802 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1803 if test $ac_cv_prog_cc_works = no
; then
1804 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1806 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1807 echo "configure:1808: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1808 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1809 cross_compiling
=$ac_cv_prog_cc_cross
1811 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1812 echo "configure:1813: checking whether we are using GNU C" >&5
1813 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1814 echo $ac_n "(cached) $ac_c" 1>&6
1816 cat > conftest.c
<<EOF
1821 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:1822: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
1828 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1830 if test $ac_cv_prog_gcc = yes; then
1832 ac_test_CFLAGS
="${CFLAGS+set}"
1833 ac_save_CFLAGS
="$CFLAGS"
1835 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1836 echo "configure:1837: checking whether ${CC-cc} accepts -g" >&5
1837 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1838 echo $ac_n "(cached) $ac_c" 1>&6
1840 echo 'void f(){}' > conftest.c
1841 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1850 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1851 if test "$ac_test_CFLAGS" = set; then
1852 CFLAGS
="$ac_save_CFLAGS"
1853 elif test $ac_cv_prog_cc_g = yes; then
1860 test "${CFLAGS+set}" = set || CFLAGS
="-g"
1863 # Find a good install program. We prefer a C program (faster),
1864 # so one script is as good as another. But avoid the broken or
1865 # incompatible versions:
1866 # SysV /etc/install, /usr/sbin/install
1867 # SunOS /usr/etc/install
1868 # IRIX /sbin/install
1870 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1871 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1872 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1873 # ./install, which can be erroneously created by make from ./install.sh.
1874 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1875 echo "configure:1876: checking for a BSD compatible install" >&5
1876 if test -z "$INSTALL"; then
1877 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1878 echo $ac_n "(cached) $ac_c" 1>&6
1880 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="${IFS}:"
1881 for ac_dir
in $PATH; do
1882 # Account for people who put trailing slashes in PATH elements.
1884 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
1886 # OSF1 and SCO ODT 3.0 have their own names for install.
1887 # Don't use installbsd from OSF since it installs stuff as root
1889 for ac_prog
in ginstall scoinst
install; do
1890 if test -f $ac_dir/$ac_prog; then
1891 if test $ac_prog = install &&
1892 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
1893 # AIX install. It has an incompatible calling convention.
1896 ac_cv_path_install
="$ac_dir/$ac_prog -c"
1907 if test "${ac_cv_path_install+set}" = set; then
1908 INSTALL
="$ac_cv_path_install"
1910 # As a last resort, use the slow shell script. We don't cache a
1911 # path for INSTALL within a source directory, because that will
1912 # break other packages using the cache if that directory is
1913 # removed, or if the path is relative.
1914 INSTALL
="$ac_install_sh"
1917 echo "$ac_t""$INSTALL" 1>&6
1919 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1920 # It thinks the first close brace ends the variable substitution.
1921 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
1923 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
1926 # Put a plausible default for CC_FOR_BUILD in Makefile.
1927 if test "x$cross_compiling" = "xno"; then
1928 CC_FOR_BUILD
='$(CC)'
1938 # Extract the first word of "ranlib", so it can be a program name with args.
1939 set dummy ranlib
; ac_word
=$2
1940 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1941 echo "configure:1942: checking for $ac_word" >&5
1942 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1943 echo $ac_n "(cached) $ac_c" 1>&6
1945 if test -n "$RANLIB"; then
1946 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1948 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1949 for ac_dir
in $PATH; do
1950 test -z "$ac_dir" && ac_dir
=.
1951 if test -f $ac_dir/$ac_word; then
1952 ac_cv_prog_RANLIB
="ranlib"
1957 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
1960 RANLIB
="$ac_cv_prog_RANLIB"
1961 if test -n "$RANLIB"; then
1962 echo "$ac_t""$RANLIB" 1>&6
1964 echo "$ac_t""no" 1>&6
1970 for ac_hdr
in argz.h limits.h locale.h nl_types.h malloc.h string.h \
1971 unistd.h values.h sys
/param.h
1973 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1974 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1975 echo "configure:1976: checking for $ac_hdr" >&5
1976 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1977 echo $ac_n "(cached) $ac_c" 1>&6
1979 cat > conftest.
$ac_ext <<EOF
1980 #line 1981 "configure"
1981 #include "confdefs.h"
1984 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1985 { (eval echo configure
:1986: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1986 ac_err
=`grep -v '^ *+' conftest.out`
1987 if test -z "$ac_err"; then
1989 eval "ac_cv_header_$ac_safe=yes"
1992 echo "configure: failed program was:" >&5
1993 cat conftest.
$ac_ext >&5
1995 eval "ac_cv_header_$ac_safe=no"
1999 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2000 echo "$ac_t""yes" 1>&6
2001 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2002 cat >> confdefs.h
<<EOF
2003 #define $ac_tr_hdr 1
2007 echo "$ac_t""no" 1>&6
2011 for ac_func
in getcwd munmap putenv setenv setlocale strchr strcasecmp \
2012 __argz_count __argz_stringify __argz_next
2014 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2015 echo "configure:2016: checking for $ac_func" >&5
2016 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2017 echo $ac_n "(cached) $ac_c" 1>&6
2019 cat > conftest.
$ac_ext <<EOF
2020 #line 2021 "configure"
2021 #include "confdefs.h"
2022 /* System header to define __stub macros and hopefully few prototypes,
2023 which can conflict with char $ac_func(); below. */
2025 /* Override any gcc2 internal prototype to avoid an error. */
2026 /* We use char because int might match the return type of a gcc2
2027 builtin and then its argument prototype would still apply. */
2032 /* The GNU C library defines this for functions which it implements
2033 to always fail with ENOSYS. Some functions are actually named
2034 something starting with __ and the normal name is an alias. */
2035 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2043 if { (eval echo configure
:2044: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2045 eval "ac_cv_func_$ac_func=yes"
2047 echo "configure: failed program was:" >&5
2048 cat conftest.
$ac_ext >&5
2050 eval "ac_cv_func_$ac_func=no"
2055 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2056 echo "$ac_t""yes" 1>&6
2057 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2058 cat >> confdefs.h
<<EOF
2059 #define $ac_tr_func 1
2063 echo "$ac_t""no" 1>&6
2068 if test "${ac_cv_func_stpcpy+set}" != "set"; then
2069 for ac_func
in stpcpy
2071 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2072 echo "configure:2073: checking for $ac_func" >&5
2073 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2074 echo $ac_n "(cached) $ac_c" 1>&6
2076 cat > conftest.
$ac_ext <<EOF
2077 #line 2078 "configure"
2078 #include "confdefs.h"
2079 /* System header to define __stub macros and hopefully few prototypes,
2080 which can conflict with char $ac_func(); below. */
2082 /* Override any gcc2 internal prototype to avoid an error. */
2083 /* We use char because int might match the return type of a gcc2
2084 builtin and then its argument prototype would still apply. */
2089 /* The GNU C library defines this for functions which it implements
2090 to always fail with ENOSYS. Some functions are actually named
2091 something starting with __ and the normal name is an alias. */
2092 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2100 if { (eval echo configure
:2101: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2102 eval "ac_cv_func_$ac_func=yes"
2104 echo "configure: failed program was:" >&5
2105 cat conftest.
$ac_ext >&5
2107 eval "ac_cv_func_$ac_func=no"
2112 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2113 echo "$ac_t""yes" 1>&6
2114 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2115 cat >> confdefs.h
<<EOF
2116 #define $ac_tr_func 1
2120 echo "$ac_t""no" 1>&6
2125 if test "${ac_cv_func_stpcpy}" = "yes"; then
2126 cat >> confdefs.h
<<\EOF
2127 #define HAVE_STPCPY 1
2132 if test $ac_cv_header_locale_h = yes; then
2133 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
2134 echo "configure:2135: checking for LC_MESSAGES" >&5
2135 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
2136 echo $ac_n "(cached) $ac_c" 1>&6
2138 cat > conftest.
$ac_ext <<EOF
2139 #line 2140 "configure"
2140 #include "confdefs.h"
2146 if { (eval echo configure
:2147: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2148 am_cv_val_LC_MESSAGES
=yes
2150 echo "configure: failed program was:" >&5
2151 cat conftest.
$ac_ext >&5
2153 am_cv_val_LC_MESSAGES
=no
2158 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
2159 if test $am_cv_val_LC_MESSAGES = yes; then
2160 cat >> confdefs.h
<<\EOF
2161 #define HAVE_LC_MESSAGES 1
2166 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
2167 echo "configure:2168: checking whether NLS is requested" >&5
2168 # Check whether --enable-nls or --disable-nls was given.
2169 if test "${enable_nls+set}" = set; then
2170 enableval
="$enable_nls"
2176 echo "$ac_t""$USE_NLS" 1>&6
2179 USE_INCLUDED_LIBINTL
=no
2181 if test "$USE_NLS" = "yes"; then
2182 cat >> confdefs.h
<<\EOF
2183 #define ENABLE_NLS 1
2186 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
2187 echo "configure:2188: checking whether included gettext is requested" >&5
2188 # Check whether --with-included-gettext or --without-included-gettext was given.
2189 if test "${with_included_gettext+set}" = set; then
2190 withval
="$with_included_gettext"
2191 nls_cv_force_use_gnu_gettext
=$withval
2193 nls_cv_force_use_gnu_gettext
=no
2196 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
2198 nls_cv_use_gnu_gettext
="$nls_cv_force_use_gnu_gettext"
2199 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
2201 nls_cv_header_libgt
=
2204 ac_safe
=`echo "libintl.h" | sed 'y%./+-%__p_%'`
2205 echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
2206 echo "configure:2207: checking for libintl.h" >&5
2207 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2208 echo $ac_n "(cached) $ac_c" 1>&6
2210 cat > conftest.
$ac_ext <<EOF
2211 #line 2212 "configure"
2212 #include "confdefs.h"
2213 #include <libintl.h>
2215 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2216 { (eval echo configure
:2217: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2217 ac_err
=`grep -v '^ *+' conftest.out`
2218 if test -z "$ac_err"; then
2220 eval "ac_cv_header_$ac_safe=yes"
2223 echo "configure: failed program was:" >&5
2224 cat conftest.
$ac_ext >&5
2226 eval "ac_cv_header_$ac_safe=no"
2230 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2231 echo "$ac_t""yes" 1>&6
2232 echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6
2233 echo "configure:2234: checking for gettext in libc" >&5
2234 if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then
2235 echo $ac_n "(cached) $ac_c" 1>&6
2237 cat > conftest.
$ac_ext <<EOF
2238 #line 2239 "configure"
2239 #include "confdefs.h"
2240 #include <libintl.h>
2242 return (int) gettext ("")
2245 if { (eval echo configure
:2246: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2247 gt_cv_func_gettext_libc
=yes
2249 echo "configure: failed program was:" >&5
2250 cat conftest.
$ac_ext >&5
2252 gt_cv_func_gettext_libc
=no
2257 echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6
2259 if test "$gt_cv_func_gettext_libc" != "yes"; then
2260 echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6
2261 echo "configure:2262: checking for bindtextdomain in -lintl" >&5
2262 ac_lib_var
=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'`
2263 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2264 echo $ac_n "(cached) $ac_c" 1>&6
2266 ac_save_LIBS
="$LIBS"
2268 cat > conftest.
$ac_ext <<EOF
2269 #line 2270 "configure"
2270 #include "confdefs.h"
2271 /* Override any gcc2 internal prototype to avoid an error. */
2272 /* We use char because int might match the return type of a gcc2
2273 builtin and then its argument prototype would still apply. */
2274 char bindtextdomain();
2280 if { (eval echo configure
:2281: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2282 eval "ac_cv_lib_$ac_lib_var=yes"
2284 echo "configure: failed program was:" >&5
2285 cat conftest.
$ac_ext >&5
2287 eval "ac_cv_lib_$ac_lib_var=no"
2290 LIBS
="$ac_save_LIBS"
2293 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2294 echo "$ac_t""yes" 1>&6
2295 echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6
2296 echo "configure:2297: checking for gettext in libintl" >&5
2297 if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then
2298 echo $ac_n "(cached) $ac_c" 1>&6
2300 cat > conftest.
$ac_ext <<EOF
2301 #line 2302 "configure"
2302 #include "confdefs.h"
2305 return (int) gettext ("")
2308 if { (eval echo configure
:2309: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2310 gt_cv_func_gettext_libintl
=yes
2312 echo "configure: failed program was:" >&5
2313 cat conftest.
$ac_ext >&5
2315 gt_cv_func_gettext_libintl
=no
2320 echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6
2322 echo "$ac_t""no" 1>&6
2327 if test "$gt_cv_func_gettext_libc" = "yes" \
2328 ||
test "$gt_cv_func_gettext_libintl" = "yes"; then
2329 cat >> confdefs.h
<<\EOF
2330 #define HAVE_GETTEXT 1
2333 # Extract the first word of "msgfmt", so it can be a program name with args.
2334 set dummy msgfmt
; ac_word
=$2
2335 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2336 echo "configure:2337: checking for $ac_word" >&5
2337 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2338 echo $ac_n "(cached) $ac_c" 1>&6
2342 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
2345 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
2346 for ac_dir
in $PATH; do
2347 test -z "$ac_dir" && ac_dir
=.
2348 if test -f $ac_dir/$ac_word; then
2349 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
2350 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
2356 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
="no"
2360 MSGFMT
="$ac_cv_path_MSGFMT"
2361 if test -n "$MSGFMT"; then
2362 echo "$ac_t""$MSGFMT" 1>&6
2364 echo "$ac_t""no" 1>&6
2366 if test "$MSGFMT" != "no"; then
2367 for ac_func
in dcgettext
2369 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2370 echo "configure:2371: checking for $ac_func" >&5
2371 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2372 echo $ac_n "(cached) $ac_c" 1>&6
2374 cat > conftest.
$ac_ext <<EOF
2375 #line 2376 "configure"
2376 #include "confdefs.h"
2377 /* System header to define __stub macros and hopefully few prototypes,
2378 which can conflict with char $ac_func(); below. */
2380 /* Override any gcc2 internal prototype to avoid an error. */
2381 /* We use char because int might match the return type of a gcc2
2382 builtin and then its argument prototype would still apply. */
2387 /* The GNU C library defines this for functions which it implements
2388 to always fail with ENOSYS. Some functions are actually named
2389 something starting with __ and the normal name is an alias. */
2390 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2398 if { (eval echo configure
:2399: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2400 eval "ac_cv_func_$ac_func=yes"
2402 echo "configure: failed program was:" >&5
2403 cat conftest.
$ac_ext >&5
2405 eval "ac_cv_func_$ac_func=no"
2410 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2411 echo "$ac_t""yes" 1>&6
2412 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2413 cat >> confdefs.h
<<EOF
2414 #define $ac_tr_func 1
2418 echo "$ac_t""no" 1>&6
2422 # Extract the first word of "gmsgfmt", so it can be a program name with args.
2423 set dummy gmsgfmt
; ac_word
=$2
2424 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2425 echo "configure:2426: checking for $ac_word" >&5
2426 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2427 echo $ac_n "(cached) $ac_c" 1>&6
2431 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
2434 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a dos path.
2437 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
2438 for ac_dir
in $PATH; do
2439 test -z "$ac_dir" && ac_dir
=.
2440 if test -f $ac_dir/$ac_word; then
2441 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
2446 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
2450 GMSGFMT
="$ac_cv_path_GMSGFMT"
2451 if test -n "$GMSGFMT"; then
2452 echo "$ac_t""$GMSGFMT" 1>&6
2454 echo "$ac_t""no" 1>&6
2457 # Extract the first word of "xgettext", so it can be a program name with args.
2458 set dummy xgettext
; ac_word
=$2
2459 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2460 echo "configure:2461: checking for $ac_word" >&5
2461 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
2462 echo $ac_n "(cached) $ac_c" 1>&6
2466 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
2469 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
2470 for ac_dir
in $PATH; do
2471 test -z "$ac_dir" && ac_dir
=.
2472 if test -f $ac_dir/$ac_word; then
2473 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
2474 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
2480 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
2484 XGETTEXT
="$ac_cv_path_XGETTEXT"
2485 if test -n "$XGETTEXT"; then
2486 echo "$ac_t""$XGETTEXT" 1>&6
2488 echo "$ac_t""no" 1>&6
2491 cat > conftest.
$ac_ext <<EOF
2492 #line 2493 "configure"
2493 #include "confdefs.h"
2496 extern int _nl_msg_cat_cntr;
2497 return _nl_msg_cat_cntr
2500 if { (eval echo configure
:2501: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2505 echo "configure: failed program was:" >&5
2506 cat conftest.
$ac_ext >&5
2517 echo "$ac_t""no" 1>&6
2522 if test "$CATOBJEXT" = "NONE"; then
2523 nls_cv_use_gnu_gettext
=yes
2527 if test "$nls_cv_use_gnu_gettext" = "yes"; then
2528 INTLOBJS
="\$(GETTOBJS)"
2529 # Extract the first word of "msgfmt", so it can be a program name with args.
2530 set dummy msgfmt
; ac_word
=$2
2531 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2532 echo "configure:2533: checking for $ac_word" >&5
2533 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2534 echo $ac_n "(cached) $ac_c" 1>&6
2538 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
2541 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
2542 for ac_dir
in $PATH; do
2543 test -z "$ac_dir" && ac_dir
=.
2544 if test -f $ac_dir/$ac_word; then
2545 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
2546 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
2552 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
="msgfmt"
2556 MSGFMT
="$ac_cv_path_MSGFMT"
2557 if test -n "$MSGFMT"; then
2558 echo "$ac_t""$MSGFMT" 1>&6
2560 echo "$ac_t""no" 1>&6
2563 # Extract the first word of "gmsgfmt", so it can be a program name with args.
2564 set dummy gmsgfmt
; ac_word
=$2
2565 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2566 echo "configure:2567: checking for $ac_word" >&5
2567 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2568 echo $ac_n "(cached) $ac_c" 1>&6
2572 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
2575 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a dos path.
2578 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
2579 for ac_dir
in $PATH; do
2580 test -z "$ac_dir" && ac_dir
=.
2581 if test -f $ac_dir/$ac_word; then
2582 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
2587 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
2591 GMSGFMT
="$ac_cv_path_GMSGFMT"
2592 if test -n "$GMSGFMT"; then
2593 echo "$ac_t""$GMSGFMT" 1>&6
2595 echo "$ac_t""no" 1>&6
2598 # Extract the first word of "xgettext", so it can be a program name with args.
2599 set dummy xgettext
; ac_word
=$2
2600 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2601 echo "configure:2602: checking for $ac_word" >&5
2602 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
2603 echo $ac_n "(cached) $ac_c" 1>&6
2607 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
2610 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
2611 for ac_dir
in $PATH; do
2612 test -z "$ac_dir" && ac_dir
=.
2613 if test -f $ac_dir/$ac_word; then
2614 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
2615 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
2621 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
2625 XGETTEXT
="$ac_cv_path_XGETTEXT"
2626 if test -n "$XGETTEXT"; then
2627 echo "$ac_t""$XGETTEXT" 1>&6
2629 echo "$ac_t""no" 1>&6
2633 USE_INCLUDED_LIBINTL
=yes
2637 INTLDEPS
='$(top_builddir)/../intl/libintl.a'
2639 LIBS
=`echo $LIBS | sed -e 's/-lintl//'`
2640 nls_cv_header_intl
=libintl.h
2641 nls_cv_header_libgt
=libgettext.h
2644 if test "$XGETTEXT" != ":"; then
2645 if $XGETTEXT --omit-header /dev
/null
2> /dev
/null
; then
2648 echo "$ac_t""found xgettext programs is not GNU xgettext; ignore it" 1>&6
2653 # We need to process the po/ directory.
2657 nls_cv_header_intl
=libintl.h
2658 nls_cv_header_libgt
=libgettext.h
2661 # If this is used in GNU gettext we have to set USE_NLS to `yes'
2662 # because some of the sources are only built for this goal.
2663 if test "$PACKAGE" = gettext; then
2665 USE_INCLUDED_LIBINTL
=yes
2668 for lang
in $ALL_LINGUAS; do
2669 GMOFILES
="$GMOFILES $lang.gmo"
2670 POFILES
="$POFILES $lang.po"
2686 if test "x$CATOBJEXT" != "x"; then
2687 if test "x$ALL_LINGUAS" = "x"; then
2690 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
2691 echo "configure:2692: checking for catalogs to be installed" >&5
2693 for lang
in ${LINGUAS=$ALL_LINGUAS}; do
2694 case "$ALL_LINGUAS" in
2695 *$lang*) NEW_LINGUAS
="$NEW_LINGUAS $lang" ;;
2698 LINGUAS
=$NEW_LINGUAS
2699 echo "$ac_t""$LINGUAS" 1>&6
2702 if test -n "$LINGUAS"; then
2703 for lang
in $LINGUAS; do CATALOGS
="$CATALOGS $lang$CATOBJEXT"; done
2707 if test $ac_cv_header_locale_h = yes; then
2708 INCLUDE_LOCALE_H
="#include <locale.h>"
2711 /* The system does not provide the header <locale.h>. Take care yourself. */"
2715 if test -f $srcdir/po2tbl.
sed.
in; then
2716 if test "$CATOBJEXT" = ".cat"; then
2717 ac_safe
=`echo "linux/version.h" | sed 'y%./+-%__p_%'`
2718 echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6
2719 echo "configure:2720: checking for linux/version.h" >&5
2720 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2721 echo $ac_n "(cached) $ac_c" 1>&6
2723 cat > conftest.
$ac_ext <<EOF
2724 #line 2725 "configure"
2725 #include "confdefs.h"
2726 #include <linux/version.h>
2728 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2729 { (eval echo configure
:2730: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2730 ac_err
=`grep -v '^ *+' conftest.out`
2731 if test -z "$ac_err"; then
2733 eval "ac_cv_header_$ac_safe=yes"
2736 echo "configure: failed program was:" >&5
2737 cat conftest.
$ac_ext >&5
2739 eval "ac_cv_header_$ac_safe=no"
2743 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2744 echo "$ac_t""yes" 1>&6
2747 echo "$ac_t""no" 1>&6
2752 sed -e '/^#/d' $srcdir/$msgformat-msg.
sed > po2msg.
sed
2754 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
2755 $srcdir/po2tbl.
sed.
in > po2tbl.
sed
2758 if test "$PACKAGE" = "gettext"; then
2768 MKINSTALLDIRS
="\$(srcdir)/../../mkinstalldirs"
2774 if test -d $srcdir/po
; then
2775 test -d po || mkdir po
2776 if test "x$srcdir" != "x."; then
2777 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
2778 posrcprefix
="$srcdir/"
2780 posrcprefix
="../$srcdir/"
2786 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
2787 < $srcdir/po
/POTFILES.
in > po
/POTFILES
2791 # Check for common headers.
2792 # FIXME: Seems to me this can cause problems for i386-windows hosts.
2793 # At one point there were hardcoded AC_DEFINE's if ${host} = i386-*-windows*.
2794 for ac_hdr
in stdlib.h string.h
strings.h unistd.h
time.h
2796 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2797 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2798 echo "configure:2799: checking for $ac_hdr" >&5
2799 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2800 echo $ac_n "(cached) $ac_c" 1>&6
2802 cat > conftest.
$ac_ext <<EOF
2803 #line 2804 "configure"
2804 #include "confdefs.h"
2807 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2808 { (eval echo configure
:2809: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2809 ac_err
=`grep -v '^ *+' conftest.out`
2810 if test -z "$ac_err"; then
2812 eval "ac_cv_header_$ac_safe=yes"
2815 echo "configure: failed program was:" >&5
2816 cat conftest.
$ac_ext >&5
2818 eval "ac_cv_header_$ac_safe=no"
2822 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2823 echo "$ac_t""yes" 1>&6
2824 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2825 cat >> confdefs.h
<<EOF
2826 #define $ac_tr_hdr 1
2830 echo "$ac_t""no" 1>&6
2834 for ac_hdr
in sys
/time.h sys
/resource.h
2836 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2837 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2838 echo "configure:2839: checking for $ac_hdr" >&5
2839 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2840 echo $ac_n "(cached) $ac_c" 1>&6
2842 cat > conftest.
$ac_ext <<EOF
2843 #line 2844 "configure"
2844 #include "confdefs.h"
2847 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2848 { (eval echo configure
:2849: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2849 ac_err
=`grep -v '^ *+' conftest.out`
2850 if test -z "$ac_err"; then
2852 eval "ac_cv_header_$ac_safe=yes"
2855 echo "configure: failed program was:" >&5
2856 cat conftest.
$ac_ext >&5
2858 eval "ac_cv_header_$ac_safe=no"
2862 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2863 echo "$ac_t""yes" 1>&6
2864 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2865 cat >> confdefs.h
<<EOF
2866 #define $ac_tr_hdr 1
2870 echo "$ac_t""no" 1>&6
2874 for ac_hdr
in fcntl.h fpu_control.h
2876 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2877 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2878 echo "configure:2879: checking for $ac_hdr" >&5
2879 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2880 echo $ac_n "(cached) $ac_c" 1>&6
2882 cat > conftest.
$ac_ext <<EOF
2883 #line 2884 "configure"
2884 #include "confdefs.h"
2887 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2888 { (eval echo configure
:2889: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2889 ac_err
=`grep -v '^ *+' conftest.out`
2890 if test -z "$ac_err"; then
2892 eval "ac_cv_header_$ac_safe=yes"
2895 echo "configure: failed program was:" >&5
2896 cat conftest.
$ac_ext >&5
2898 eval "ac_cv_header_$ac_safe=no"
2902 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2903 echo "$ac_t""yes" 1>&6
2904 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2905 cat >> confdefs.h
<<EOF
2906 #define $ac_tr_hdr 1
2910 echo "$ac_t""no" 1>&6
2914 for ac_func
in getrusage
time sigaction __setfpucw
2916 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2917 echo "configure:2918: checking for $ac_func" >&5
2918 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2919 echo $ac_n "(cached) $ac_c" 1>&6
2921 cat > conftest.
$ac_ext <<EOF
2922 #line 2923 "configure"
2923 #include "confdefs.h"
2924 /* System header to define __stub macros and hopefully few prototypes,
2925 which can conflict with char $ac_func(); below. */
2927 /* Override any gcc2 internal prototype to avoid an error. */
2928 /* We use char because int might match the return type of a gcc2
2929 builtin and then its argument prototype would still apply. */
2934 /* The GNU C library defines this for functions which it implements
2935 to always fail with ENOSYS. Some functions are actually named
2936 something starting with __ and the normal name is an alias. */
2937 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2945 if { (eval echo configure
:2946: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2947 eval "ac_cv_func_$ac_func=yes"
2949 echo "configure: failed program was:" >&5
2950 cat conftest.
$ac_ext >&5
2952 eval "ac_cv_func_$ac_func=no"
2957 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2958 echo "$ac_t""yes" 1>&6
2959 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2960 cat >> confdefs.h
<<EOF
2961 #define $ac_tr_func 1
2965 echo "$ac_t""no" 1>&6
2970 .
${srcdir}/..
/..
/bfd
/configure.
host
2974 USE_MAINTAINER_MODE
=no
2975 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
2976 if test "${enable_maintainer_mode+set}" = set; then
2977 enableval
="$enable_maintainer_mode"
2978 case "${enableval}" in
2979 yes) MAINT
="" USE_MAINTAINER_MODE
=yes ;;
2981 *) { echo "configure: error: "--enable-maintainer-mode does not take a value
"" 1>&2; exit 1; }; MAINT
="#" ;;
2983 if test x
"$silent" != x
"yes" && test x
"$MAINT" = x
""; then
2984 echo "Setting maintainer mode" 6>&1
2992 # Check whether --enable-sim-bswap or --disable-sim-bswap was given.
2993 if test "${enable_sim_bswap+set}" = set; then
2994 enableval
="$enable_sim_bswap"
2995 case "${enableval}" in
2996 yes) sim_bswap
="-DWITH_BSWAP=1 -DUSE_BSWAP=1";;
2997 no
) sim_bswap
="-DWITH_BSWAP=0";;
2998 *) { echo "configure: error: "--enable-sim-bswap does not take a value
"" 1>&2; exit 1; }; sim_bswap
="";;
3000 if test x
"$silent" != x
"yes" && test x
"$sim_bswap" != x
""; then
3001 echo "Setting bswap flags = $sim_bswap" 6>&1
3009 # Check whether --enable-sim-cflags or --disable-sim-cflags was given.
3010 if test "${enable_sim_cflags+set}" = set; then
3011 enableval
="$enable_sim_cflags"
3012 case "${enableval}" in
3013 yes) sim_cflags
="-O2 -fomit-frame-pointer";;
3014 trace
) { echo "configure: error: "Please use
--enable-sim-debug instead.
"" 1>&2; exit 1; }; sim_cflags
="";;
3016 *) sim_cflags
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
3018 if test x
"$silent" != x
"yes" && test x
"$sim_cflags" != x
""; then
3019 echo "Setting sim cflags = $sim_cflags" 6>&1
3027 # Check whether --enable-sim-debug or --disable-sim-debug was given.
3028 if test "${enable_sim_debug+set}" = set; then
3029 enableval
="$enable_sim_debug"
3030 case "${enableval}" in
3031 yes) sim_debug
="-DDEBUG=7 -DWITH_DEBUG=7";;
3032 no
) sim_debug
="-DDEBUG=0 -DWITH_DEBUG=0";;
3033 *) sim_debug
="-DDEBUG='(${enableval})' -DWITH_DEBUG='(${enableval})'";;
3035 if test x
"$silent" != x
"yes" && test x
"$sim_debug" != x
""; then
3036 echo "Setting sim debug = $sim_debug" 6>&1
3044 # Check whether --enable-sim-stdio or --disable-sim-stdio was given.
3045 if test "${enable_sim_stdio+set}" = set; then
3046 enableval
="$enable_sim_stdio"
3047 case "${enableval}" in
3048 yes) sim_stdio
="-DWITH_STDIO=DO_USE_STDIO";;
3049 no
) sim_stdio
="-DWITH_STDIO=DONT_USE_STDIO";;
3050 *) { echo "configure: error: "Unknown value
$enableval passed to
--enable-sim-stdio"" 1>&2; exit 1; }; sim_stdio
="";;
3052 if test x
"$silent" != x
"yes" && test x
"$sim_stdio" != x
""; then
3053 echo "Setting stdio flags = $sim_stdio" 6>&1
3061 # Check whether --enable-sim-trace or --disable-sim-trace was given.
3062 if test "${enable_sim_trace+set}" = set; then
3063 enableval
="$enable_sim_trace"
3064 case "${enableval}" in
3065 yes) sim_trace
="-DTRACE=1 -DWITH_TRACE=-1";;
3066 no
) sim_trace
="-DTRACE=0 -DWITH_TRACE=0";;
3068 sim_trace
="-DTRACE='(${enableval})' -DWITH_TRACE='(${enableval})'";;
3071 for x
in `echo "$enableval" | sed -e "s/,/ /g"`; do
3072 if test x
"$sim_trace" = x
; then
3073 sim_trace
="-DWITH_TRACE='(TRACE_$x"
3075 sim_trace
="${sim_trace}|TRACE_$x"
3078 sim_trace
="$sim_trace)'" ;;
3080 if test x
"$silent" != x
"yes" && test x
"$sim_trace" != x
""; then
3081 echo "Setting sim trace = $sim_trace" 6>&1
3089 # Check whether --enable-sim-profile or --disable-sim-profile was given.
3090 if test "${enable_sim_profile+set}" = set; then
3091 enableval
="$enable_sim_profile"
3092 case "${enableval}" in
3093 yes) sim_profile
="-DPROFILE=1 -DWITH_PROFILE=-1";;
3094 no
) sim_profile
="-DPROFILE=0 -DWITH_PROFILE=0";;
3096 sim_profile
="-DPROFILE='(${enableval})' -DWITH_PROFILE='(${enableval})'";;
3099 for x
in `echo "$enableval" | sed -e "s/,/ /g"`; do
3100 if test x
"$sim_profile" = x
; then
3101 sim_profile
="-DWITH_PROFILE='(PROFILE_$x"
3103 sim_profile
="${sim_profile}|PROFILE_$x"
3106 sim_profile
="$sim_profile)'" ;;
3108 if test x
"$silent" != x
"yes" && test x
"$sim_profile" != x
""; then
3109 echo "Setting sim profile = $sim_profile" 6>&1
3117 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
3118 echo "configure:3119: checking return type of signal handlers" >&5
3119 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
3120 echo $ac_n "(cached) $ac_c" 1>&6
3122 cat > conftest.
$ac_ext <<EOF
3123 #line 3124 "configure"
3124 #include "confdefs.h"
3125 #include <sys/types.h>
3131 extern "C" void (*signal (int, void (*)(int)))(int);
3133 void (*signal ()) ();
3140 if { (eval echo configure
:3141: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3142 ac_cv_type_signal
=void
3144 echo "configure: failed program was:" >&5
3145 cat conftest.
$ac_ext >&5
3147 ac_cv_type_signal
=int
3152 echo "$ac_t""$ac_cv_type_signal" 1>&6
3153 cat >> confdefs.h
<<EOF
3154 #define RETSIGTYPE $ac_cv_type_signal
3163 sim_link_links
=tconfig.h
3164 if test -f ${srcdir}/tconfig.
in
3166 sim_link_files
=tconfig.
in
3168 sim_link_files
=..
/common
/tconfig.
in
3171 # targ-vals.def points to the libc macro description file.
3173 *-*-*) TARG_VALS_DEF
=..
/common
/nltvals.def
;;
3175 sim_link_files
="${sim_link_files} ${TARG_VALS_DEF}"
3176 sim_link_links
="${sim_link_links} targ-vals.def"
3181 wire_endian
="LITTLE_ENDIAN"
3183 # Check whether --enable-sim-endian or --disable-sim-endian was given.
3184 if test "${enable_sim_endian+set}" = set; then
3185 enableval
="$enable_sim_endian"
3186 case "${enableval}" in
3187 b
*|B
*) sim_endian
="-DWITH_TARGET_BYTE_ORDER=BIG_ENDIAN";;
3188 l
*|L
*) sim_endian
="-DWITH_TARGET_BYTE_ORDER=LITTLE_ENDIAN";;
3189 yes) if test x
"$wire_endian" != x
; then
3190 sim_endian
="-DWITH_TARGET_BYTE_ORDER=${wire_endian}"
3192 if test x
"$default_endian" != x
; then
3193 sim_endian
="-DWITH_TARGET_BYTE_ORDER=${default_endian}"
3195 echo "No hard-wired endian for target $target" 1>&6
3196 sim_endian
="-DWITH_TARGET_BYTE_ORDER=0"
3199 no
) if test x
"$default_endian" != x
; then
3200 sim_endian
="-DWITH_DEFAULT_TARGET_BYTE_ORDER=${default_endian}"
3202 if test x
"$wire_endian" != x
; then
3203 sim_endian
="-DWITH_DEFAULT_TARGET_BYTE_ORDER=${wire_endian}"
3205 echo "No default endian for target $target" 1>&6
3206 sim_endian
="-DWITH_DEFAULT_TARGET_BYTE_ORDER=0"
3209 *) { echo "configure: error: "Unknown value
$enableval for --enable-sim-endian"" 1>&2; exit 1; }; sim_endian
="";;
3211 if test x
"$silent" != x
"yes" && test x
"$sim_endian" != x
""; then
3212 echo "Setting endian flags = $sim_endian" 6>&1
3215 if test x
"$default_endian" != x
; then
3216 sim_endian
="-DWITH_DEFAULT_TARGET_BYTE_ORDER=${default_endian}"
3218 if test x
"$wire_endian" != x
; then
3219 sim_endian
="-DWITH_TARGET_BYTE_ORDER=${wire_endian}"
3227 default_alignment
="NONSTRICT_ALIGNMENT"
3229 # Check whether --enable-sim-alignment or --disable-sim-alignment was given.
3230 if test "${enable_sim_alignment+set}" = set; then
3231 enableval
="$enable_sim_alignment"
3232 case "${enableval}" in
3233 strict | STRICT
) sim_alignment
="-DWITH_ALIGNMENT=STRICT_ALIGNMENT";;
3234 nonstrict | NONSTRICT
) sim_alignment
="-DWITH_ALIGNMENT=NONSTRICT_ALIGNMENT";;
3235 forced | FORCED
) sim_alignment
="-DWITH_ALIGNMENT=FORCED_ALIGNMENT";;
3236 yes) if test x
"$wire_alignment" != x
; then
3237 sim_alignment
="-DWITH_ALIGNMENT=${wire_alignment}"
3239 if test x
"$default_alignment" != x
; then
3240 sim_alignment
="-DWITH_ALIGNMENT=${default_alignment}"
3242 echo "No hard-wired alignment for target $target" 1>&6
3243 sim_alignment
="-DWITH_ALIGNMENT=0"
3246 no
) if test x
"$default_alignment" != x
; then
3247 sim_alignment
="-DWITH_DEFAULT_ALIGNMENT=${default_alignment}"
3249 if test x
"$wire_alignment" != x
; then
3250 sim_alignment
="-DWITH_DEFAULT_ALIGNMENT=${wire_alignment}"
3252 echo "No default alignment for target $target" 1>&6
3253 sim_alignment
="-DWITH_DEFAULT_ALIGNMENT=0"
3256 *) { echo "configure: error: "Unknown value
$enableval passed to
--enable-sim-alignment"" 1>&2; exit 1; }; sim_alignment
="";;
3258 if test x
"$silent" != x
"yes" && test x
"$sim_alignment" != x
""; then
3259 echo "Setting alignment flags = $sim_alignment" 6>&1
3262 if test x
"$default_alignment" != x
; then
3263 sim_alignment
="-DWITH_DEFAULT_ALIGNMENT=${default_alignment}"
3265 if test x
"$wire_alignment" != x
; then
3266 sim_alignment
="-DWITH_ALIGNMENT=${wire_alignment}"
3274 # Check whether --enable-sim-hostendian or --disable-sim-hostendian was given.
3275 if test "${enable_sim_hostendian+set}" = set; then
3276 enableval
="$enable_sim_hostendian"
3277 case "${enableval}" in
3278 no
) sim_hostendian
="-DWITH_HOST_BYTE_ORDER=0";;
3279 b
*|B
*) sim_hostendian
="-DWITH_HOST_BYTE_ORDER=BIG_ENDIAN";;
3280 l
*|L
*) sim_hostendian
="-DWITH_HOST_BYTE_ORDER=LITTLE_ENDIAN";;
3281 *) { echo "configure: error: "Unknown value
$enableval for --enable-sim-hostendian"" 1>&2; exit 1; }; sim_hostendian
="";;
3283 if test x
"$silent" != x
"yes" && test x
"$sim_hostendian" != x
""; then
3284 echo "Setting hostendian flags = $sim_hostendian" 6>&1
3288 if test "x$cross_compiling" = "xno"; then
3289 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
3290 echo "configure:3291: checking whether byte ordering is bigendian" >&5
3291 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
3292 echo $ac_n "(cached) $ac_c" 1>&6
3294 ac_cv_c_bigendian
=unknown
3295 # See if sys/param.h defines the BYTE_ORDER macro.
3296 cat > conftest.
$ac_ext <<EOF
3297 #line 3298 "configure"
3298 #include "confdefs.h"
3299 #include <sys/types.h>
3300 #include <sys/param.h>
3303 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
3308 if { (eval echo configure
:3309: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3310 # It does; now see whether it defined to BIG_ENDIAN or not.
3311 cat > conftest.
$ac_ext <<EOF
3312 #line 3313 "configure"
3313 #include "confdefs.h"
3314 #include <sys/types.h>
3315 #include <sys/param.h>
3318 #if BYTE_ORDER != BIG_ENDIAN
3323 if { (eval echo configure
:3324: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3325 ac_cv_c_bigendian
=yes
3327 echo "configure: failed program was:" >&5
3328 cat conftest.
$ac_ext >&5
3330 ac_cv_c_bigendian
=no
3334 echo "configure: failed program was:" >&5
3335 cat conftest.
$ac_ext >&5
3338 if test $ac_cv_c_bigendian = unknown
; then
3339 if test "$cross_compiling" = yes; then
3340 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3342 cat > conftest.
$ac_ext <<EOF
3343 #line 3344 "configure"
3344 #include "confdefs.h"
3346 /* Are we little or big endian? From Harbison&Steele. */
3350 char c[sizeof (long)];
3353 exit (u.c[sizeof (long) - 1] == 1);
3356 if { (eval echo configure
:3357: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
3358 ac_cv_c_bigendian
=no
3360 echo "configure: failed program was:" >&5
3361 cat conftest.
$ac_ext >&5
3363 ac_cv_c_bigendian
=yes
3371 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
3372 if test $ac_cv_c_bigendian = yes; then
3373 cat >> confdefs.h
<<\EOF
3374 #define WORDS_BIGENDIAN 1
3379 if test $ac_cv_c_bigendian = yes; then
3380 sim_hostendian
="-DWITH_HOST_BYTE_ORDER=BIG_ENDIAN"
3382 sim_hostendian
="-DWITH_HOST_BYTE_ORDER=LITTLE_ENDIAN"
3385 sim_hostendian
="-DWITH_HOST_BYTE_ORDER=0"
3390 # Check whether --enable-sim-warnings or --disable-sim-warnings was given.
3391 if test "${enable_sim_warnings+set}" = set; then
3392 enableval
="$enable_sim_warnings"
3393 case "${enableval}" in
3394 yes) sim_warnings
="-Werror -Wall -Wpointer-arith -Wmissing-prototypes -Wmissing-declarations ";;
3395 no
) sim_warnings
="-w";;
3396 *) sim_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
3398 if test x
"$silent" != x
"yes" && test x
"$sim_warnings" != x
""; then
3399 echo "Setting warning flags = $sim_warnings" 6>&1
3406 default_sim_reserved_bits
="1"
3407 # Check whether --enable-sim-reserved-bits or --disable-sim-reserved-bits was given.
3408 if test "${enable_sim_reserved_bits+set}" = set; then
3409 enableval
="$enable_sim_reserved_bits"
3410 case "${enableval}" in
3411 yes) sim_reserved_bits
="-DWITH_RESERVED_BITS=1";;
3412 no
) sim_reserved_bits
="-DWITH_RESERVED_BITS=0";;
3413 *) { echo "configure: error: "--enable-sim-reserved-bits does not take a value
"" 1>&2; exit 1; }; sim_reserved_bits
="";;
3415 if test x
"$silent" != x
"yes" && test x
"$sim_reserved_bits" != x
""; then
3416 echo "Setting reserved flags = $sim_reserved_bits" 6>&1
3419 sim_reserved_bits
="-DWITH_RESERVED_BITS=${default_sim_reserved_bits}"
3422 wire_word_bitsize
="32"
3424 wire_address_bitsize
=""
3425 wire_cell_bitsize
=""
3426 # Check whether --enable-sim-bitsize or --disable-sim-bitsize was given.
3427 if test "${enable_sim_bitsize+set}" = set; then
3428 enableval
="$enable_sim_bitsize"
3430 case "${enableval}" in
3431 64,63 |
64,63,* ) sim_bitsize
="-DWITH_TARGET_WORD_BITSIZE=64 -DWITH_TARGET_WORD_MSB=63";;
3432 32,31 |
32,31,* ) sim_bitsize
="-DWITH_TARGET_WORD_BITSIZE=32 -DWITH_TARGET_WORD_MSB=31";;
3433 64,0 |
64,0,* ) sim_bitsize
="-DWITH_TARGET_WORD_BITSIZE=32 -DWITH_TARGET_WORD_MSB=0";;
3434 32,0 |
64,0,* ) sim_bitsize
="-DWITH_TARGET_WORD_BITSIZE=32 -DWITH_TARGET_WORD_MSB=0";;
3435 32) if test x
"$wire_word_msb" != x
-a x
"$wire_word_msb" != x0
; then
3436 sim_bitsize
="-DWITH_TARGET_WORD_BITSIZE=32 -DWITH_TARGET_WORD_MSB=31"
3438 sim_bitsize
="-DWITH_TARGET_WORD_BITSIZE=32 -DWITH_TARGET_WORD_MSB=0"
3440 64) if test x
"$wire_word_msb" != x
-a x
"$wire_word_msb" != x0
; then
3441 sim_bitsize
="-DWITH_TARGET_WORD_BITSIZE=64 -DWITH_TARGET_WORD_MSB=63"
3443 sim_bitsize
="-DWITH_TARGET_WORD_BITSIZE=64 -DWITH_TARGET_WORD_MSB=0"
3445 *) { echo "configure: error: "--enable-sim-bitsize was given
$enableval. Expected
32 or
64"" 1>&2; exit 1; } ;;
3448 tmp
=`echo "${enableval}" | sed -e "s/^[0-9]*,*[0-9]*,*//"`
3451 x32 | x32
,* ) sim_bitsize
="${sim_bitsize} -DWITH_TARGET_ADDRESS_BITSIZE=32" ;;
3452 x64 | x64
,* ) sim_bitsize
="${sim_bitsize} -DWITH_TARGET_ADDRESS_BITSIZE=64" ;;
3453 * ) { echo "configure: error: "--enable-sim-bitsize was given address size
$enableval. Expected
32 or
64"" 1>&2; exit 1; } ;;
3456 tmp
=`echo "${enableval}" | sed -e "s/^[0-9]*,*[0-9*]*,*[0-9]*,*//"`
3459 x32 | x32
,* ) sim_bitsize
="${sim_bitsize} -DWITH_TARGET_CELL_BITSIZE=32" ;;
3460 x64 | x64
,* ) sim_bitsize
="${sim_bitsize} -DWITH_TARGET_CELL_BITSIZE=64" ;;
3461 * ) { echo "configure: error: "--enable-sim-bitsize was given cell size
$enableval. Expected
32 or
64"" 1>&2; exit 1; } ;;
3463 if test x
"$silent" != x
"yes" && test x
"$sim_bitsize" != x
""; then
3464 echo "Setting bitsize flags = $sim_bitsize" 6>&1
3468 if test x
"$wire_word_bitsize" != x
; then
3469 sim_bitsize
="$sim_bitsize -DWITH_TARGET_WORD_BITSIZE=$wire_word_bitsize"
3471 if test x
"$wire_word_msb" != x
; then
3472 sim_bitsize
="$sim_bitsize -DWITH_TARGET_WORD_MSB=$wire_word_msb"
3474 if test x
"$wire_address_bitsize" != x
; then
3475 sim_bitsize
="$sim_bitsize -DWITH_TARGET_ADDRESS_BITSIZE=$wire_address_bitsize"
3477 if test x
"$wire_cell_bitsize" != x
; then
3478 sim_bitsize
="$sim_bitsize -DWITH_TARGET_CELL_BITSIZE=$wire_cell_bitsize"
3483 for ac_func
in time chmod utime fork execve execv chown
3485 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3486 echo "configure:3487: checking for $ac_func" >&5
3487 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3488 echo $ac_n "(cached) $ac_c" 1>&6
3490 cat > conftest.
$ac_ext <<EOF
3491 #line 3492 "configure"
3492 #include "confdefs.h"
3493 /* System header to define __stub macros and hopefully few prototypes,
3494 which can conflict with char $ac_func(); below. */
3496 /* Override any gcc2 internal prototype to avoid an error. */
3497 /* We use char because int might match the return type of a gcc2
3498 builtin and then its argument prototype would still apply. */
3503 /* The GNU C library defines this for functions which it implements
3504 to always fail with ENOSYS. Some functions are actually named
3505 something starting with __ and the normal name is an alias. */
3506 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3514 if { (eval echo configure
:3515: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
3516 eval "ac_cv_func_$ac_func=yes"
3518 echo "configure: failed program was:" >&5
3519 cat conftest.
$ac_ext >&5
3521 eval "ac_cv_func_$ac_func=no"
3526 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3527 echo "$ac_t""yes" 1>&6
3528 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3529 cat >> confdefs.h
<<EOF
3530 #define $ac_tr_func 1
3534 echo "$ac_t""no" 1>&6
3538 for ac_hdr
in unistd.h stdlib.h string.h
strings.h utime.h
time.h
3540 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3541 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3542 echo "configure:3543: checking for $ac_hdr" >&5
3543 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3544 echo $ac_n "(cached) $ac_c" 1>&6
3546 cat > conftest.
$ac_ext <<EOF
3547 #line 3548 "configure"
3548 #include "confdefs.h"
3551 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3552 { (eval echo configure
:3553: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3553 ac_err
=`grep -v '^ *+' conftest.out`
3554 if test -z "$ac_err"; then
3556 eval "ac_cv_header_$ac_safe=yes"
3559 echo "configure: failed program was:" >&5
3560 cat conftest.
$ac_ext >&5
3562 eval "ac_cv_header_$ac_safe=no"
3566 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3567 echo "$ac_t""yes" 1>&6
3568 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3569 cat >> confdefs.h
<<EOF
3570 #define $ac_tr_hdr 1
3574 echo "$ac_t""no" 1>&6
3582 cat > confcache
<<\EOF
3583 # This file is a shell script that caches the results of configure
3584 # tests run on this system so they can be shared between configure
3585 # scripts and configure runs. It is not useful on other systems.
3586 # If it contains results you don't want to keep, you may remove or edit it.
3588 # By default, configure uses ./config.cache as the cache file,
3589 # creating it if it does not exist already. You can give configure
3590 # the --cache-file=FILE option to use a different cache file; that is
3591 # what configure does when it calls configure scripts in
3592 # subdirectories, so they share the cache.
3593 # Giving --cache-file=/dev/null disables caching, for debugging configure.
3594 # config.status only pays attention to the cache file if you give it the
3595 # --recheck option to rerun configure.
3598 # The following way of writing the cache mishandles newlines in values,
3599 # but we know of no workaround that is simple, portable, and efficient.
3600 # So, don't put newlines in cache variables' values.
3601 # Ultrix sh set writes to stderr and can't be redirected directly,
3602 # and sets the high bit in the cache file unless we assign to the vars.
3604 case `(ac_space=' '; set) 2>&1 | grep ac_space` in
3606 # `set' does not quote correctly, so add quotes (double-quote substitution
3607 # turns \\\\ into \\, and sed turns \\ into \).
3609 -e "s/'/'\\\\''/g" \
3610 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
3613 # `set' quotes correctly as required by POSIX, so do not add quotes.
3614 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
3617 if cmp -s $cache_file confcache
; then
3620 if test -w $cache_file; then
3621 echo "updating cache $cache_file"
3622 cat confcache
> $cache_file
3624 echo "not updating unwritable cache $cache_file"
3629 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
3631 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
3632 # Let make expand exec_prefix.
3633 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
3635 # Any assignment to VPATH causes Sun make to only execute
3636 # the first set of double-colon rules, so remove it if not needed.
3637 # If there is a colon in the path, we need to keep it.
3638 if test "x$srcdir" = x.
; then
3639 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
3642 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
3644 DEFS
=-DHAVE_CONFIG_H
3646 # Without the "./", some shells look in PATH for config.status.
3647 : ${CONFIG_STATUS=./config.status}
3649 echo creating
$CONFIG_STATUS
3650 rm -f $CONFIG_STATUS
3651 cat > $CONFIG_STATUS <<EOF
3653 # Generated automatically by configure.
3654 # Run this file to recreate the current configuration.
3655 # This directory was configured as follows,
3656 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
3658 # $0 $ac_configure_args
3660 # Compiler output produced by configure, useful for debugging
3661 # configure, is in ./config.log if it exists.
3663 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
3666 case "\$ac_option" in
3667 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3668 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
3669 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
3670 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
3671 echo "$CONFIG_STATUS generated by autoconf version 2.12.1"
3673 -help | --help | --hel | --he | --h)
3674 echo "\$ac_cs_usage"; exit 0 ;;
3675 *) echo "\$ac_cs_usage"; exit 1 ;;
3679 ac_given_srcdir=$srcdir
3680 ac_given_INSTALL="$INSTALL"
3682 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
3684 cat >> $CONFIG_STATUS <<EOF
3686 # Protect against being on the right side of a sed subst in config.status.
3687 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
3688 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
3691 s%@sim_environment@%$sim_environment%g
3692 s%@sim_alignment@%$sim_alignment%g
3693 s%@sim_assert@%$sim_assert%g
3694 s%@sim_bitsize@%$sim_bitsize%g
3695 s%@sim_endian@%$sim_endian%g
3696 s%@sim_hostendian@%$sim_hostendian%g
3697 s%@sim_float@%$sim_float%g
3698 s%@sim_scache@%$sim_scache%g
3699 s%@sim_default_model@%$sim_default_model%g
3700 s%@sim_hardware@%$sim_hardware%g
3701 s%@sim_hw_obj@%$sim_hw_obj%g
3702 s%@sim_hw@%$sim_hw%g
3703 s%@sim_inline@%$sim_inline%g
3704 s%@sim_packages@%$sim_packages%g
3705 s%@sim_regparm@%$sim_regparm%g
3706 s%@sim_reserved_bits@%$sim_reserved_bits%g
3707 s%@sim_smp@%$sim_smp%g
3708 s%@sim_stdcall@%$sim_stdcall%g
3709 s%@sim_xor_endian@%$sim_xor_endian%g
3710 s%@sim_warnings@%$sim_warnings%g
3712 s%@CFLAGS@%$CFLAGS%g
3713 s%@CPPFLAGS@%$CPPFLAGS%g
3714 s%@CXXFLAGS@%$CXXFLAGS%g
3716 s%@LDFLAGS@%$LDFLAGS%g
3718 s%@exec_prefix@%$exec_prefix%g
3719 s%@prefix@%$prefix%g
3720 s%@program_transform_name@%$program_transform_name%g
3721 s%@bindir@%$bindir%g
3722 s%@sbindir@%$sbindir%g
3723 s%@libexecdir@%$libexecdir%g
3724 s%@datadir@%$datadir%g
3725 s%@sysconfdir@%$sysconfdir%g
3726 s%@sharedstatedir@%$sharedstatedir%g
3727 s%@localstatedir@%$localstatedir%g
3728 s%@libdir@%$libdir%g
3729 s%@includedir@%$includedir%g
3730 s%@oldincludedir@%$oldincludedir%g
3731 s%@infodir@%$infodir%g
3732 s%@mandir@%$mandir%g
3734 s%@host_alias@%$host_alias%g
3735 s%@host_cpu@%$host_cpu%g
3736 s%@host_vendor@%$host_vendor%g
3737 s%@host_os@%$host_os%g
3738 s%@target@%$target%g
3739 s%@target_alias@%$target_alias%g
3740 s%@target_cpu@%$target_cpu%g
3741 s%@target_vendor@%$target_vendor%g
3742 s%@target_os@%$target_os%g
3744 s%@build_alias@%$build_alias%g
3745 s%@build_cpu@%$build_cpu%g
3746 s%@build_vendor@%$build_vendor%g
3747 s%@build_os@%$build_os%g
3749 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
3750 s%@INSTALL_DATA@%$INSTALL_DATA%g
3751 s%@CC_FOR_BUILD@%$CC_FOR_BUILD%g
3752 s%@HDEFINES@%$HDEFINES%g
3754 s%@RANLIB@%$RANLIB%g
3755 s%@SET_MAKE@%$SET_MAKE%g
3757 s%@ALLOCA@%$ALLOCA%g
3758 s%@USE_NLS@%$USE_NLS%g
3759 s%@MSGFMT@%$MSGFMT%g
3760 s%@GMSGFMT@%$GMSGFMT%g
3761 s%@XGETTEXT@%$XGETTEXT%g
3762 s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
3763 s%@CATALOGS@%$CATALOGS%g
3764 s%@CATOBJEXT@%$CATOBJEXT%g
3765 s%@DATADIRNAME@%$DATADIRNAME%g
3766 s%@GMOFILES@%$GMOFILES%g
3767 s%@INSTOBJEXT@%$INSTOBJEXT%g
3768 s%@INTLDEPS@%$INTLDEPS%g
3769 s%@INTLLIBS@%$INTLLIBS%g
3770 s%@INTLOBJS@%$INTLOBJS%g
3771 s%@POFILES@%$POFILES%g
3773 s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g
3775 s%@GT_YES@%$GT_YES%g
3776 s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
3779 s%@sim_bswap@%$sim_bswap%g
3780 s%@sim_cflags@%$sim_cflags%g
3781 s%@sim_debug@%$sim_debug%g
3782 s%@sim_stdio@%$sim_stdio%g
3783 s%@sim_trace@%$sim_trace%g
3784 s%@sim_profile@%$sim_profile%g
3789 cat >> $CONFIG_STATUS <<\EOF
3791 # Split the substitutions into bite-sized pieces for seds with
3792 # small command number limits, like on Digital OSF/1 and HP-UX.
3793 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
3794 ac_file
=1 # Number of current file.
3795 ac_beg
=1 # First line for current file.
3796 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
3799 while $ac_more_lines; do
3800 if test $ac_beg -gt 1; then
3801 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
3803 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
3805 if test ! -s conftest.s
$ac_file; then
3807 rm -f conftest.s
$ac_file
3809 if test -z "$ac_sed_cmds"; then
3810 ac_sed_cmds
="sed -f conftest.s$ac_file"
3812 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
3814 ac_file
=`expr $ac_file + 1`
3816 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
3819 if test -z "$ac_sed_cmds"; then
3824 cat >> $CONFIG_STATUS <<EOF
3826 CONFIG_FILES=\${CONFIG_FILES-"Makefile.sim:Makefile.in Make-common.sim:../common/Make-common.in .gdbinit:../common/gdbinit.in"}
3828 cat >> $CONFIG_STATUS <<\EOF
3829 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
3830 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3832 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
3833 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
3834 *) ac_file_in
="${ac_file}.in" ;;
3837 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
3839 # Remove last slash and all that follows it. Not all systems have dirname.
3840 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3841 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
3842 # The file is in a subdirectory.
3843 test ! -d "$ac_dir" && mkdir
"$ac_dir"
3844 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
3845 # A "../" for each directory in $ac_dir_suffix.
3846 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
3848 ac_dir_suffix
= ac_dots
=
3851 case "$ac_given_srcdir" in
3853 if test -z "$ac_dots"; then top_srcdir
=.
3854 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
3855 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
3857 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
3858 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
3861 case "$ac_given_INSTALL" in
3862 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
3863 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
3866 echo creating
"$ac_file"
3868 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
3870 *Makefile
*) ac_comsub
="1i\\
3871 # $configure_input" ;;
3875 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3877 s%@configure_input@%$configure_input%g
3878 s%@srcdir@%$srcdir%g
3879 s%@top_srcdir@%$top_srcdir%g
3880 s%@INSTALL@%$INSTALL%g
3881 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
3885 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
3886 # NAME is the cpp macro being defined and VALUE is the value it is being given.
3888 # ac_d sets the value in "#define NAME VALUE" lines.
3889 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
3890 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
3893 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
3894 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3895 ac_uB
='\([ ]\)%\1#\2define\3'
3898 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
3899 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3900 ac_eB
='$%\1#\2define\3'
3904 if test "${CONFIG_HEADERS+set}" != set; then
3906 cat >> $CONFIG_STATUS <<EOF
3907 CONFIG_HEADERS="config.h:config.in"
3909 cat >> $CONFIG_STATUS <<\EOF
3911 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
3912 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3914 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
3915 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
3916 *) ac_file_in
="${ac_file}.in" ;;
3919 echo creating
$ac_file
3921 rm -f conftest.frag conftest.
in conftest.out
3922 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3923 cat $ac_file_inputs > conftest.
in
3927 # Transform confdefs.h into a sed script conftest.vals that substitutes
3928 # the proper values into config.h.in to produce config.h. And first:
3929 # Protect against being on the right side of a sed subst in config.status.
3930 # Protect against being in an unquoted here document in config.status.
3932 cat > conftest.hdr
<<\EOF
3935 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
3939 sed -n -f conftest.hdr confdefs.h > conftest.vals
3942 # This sed command replaces #undef with comments. This is necessary, for
3943 # example, in the case of _POSIX_SOURCE, which is predefined and required
3944 # on some systems where configure will not decide to define it.
3945 cat >> conftest.vals <<\EOF
3946 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
3949 # Break up conftest.vals because some shells have a limit on
3950 # the size of here documents, and old seds have small limits too.
3955 ac_lines=`grep -c . conftest.vals
`
3956 # grep -c gives empty output for an empty file on some AIX systems.
3957 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
3958 # Write a limited-size here document to conftest.frag.
3959 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
3960 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
3962 sed -f conftest.frag conftest.in > conftest.out
3964 mv conftest.out conftest.in
3966 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
3968 mv conftest.tail conftest.vals
3972 cat >> $CONFIG_STATUS <<\EOF
3973 rm -f conftest.frag conftest.h
3974 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
3975 cat conftest.in >> conftest.h
3977 if cmp -s $ac_file conftest.h 2>/dev/null; then
3978 echo "$ac_file is unchanged"
3981 # Remove last slash and all that follows it. Not all systems have dirname.
3982 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
3983 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3984 # The file is in a subdirectory.
3985 test ! -d "$ac_dir" && mkdir "$ac_dir"
3988 mv conftest.h $ac_file
3994 cat >> $CONFIG_STATUS <<EOF
3995 ac_sources="$sim_link_files"
3996 ac_dests="$sim_link_links"
3999 cat >> $CONFIG_STATUS <<\EOF
4000 srcdir=$ac_given_srcdir
4001 while test -n "$ac_sources"; do
4002 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
4003 set $ac_sources; ac_source=$1; shift; ac_sources=$*
4005 echo "linking $srcdir/$ac_source to $ac_dest"
4007 if test ! -r $srcdir/$ac_source; then
4008 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
4012 # Make relative symlinks.
4013 # Remove last slash and all that follows it. Not all systems have dirname.
4014 ac_dest_dir=`echo $ac_dest|
sed 's%/[^/][^/]*$%%'`
4015 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
4016 # The dest file is in a subdirectory.
4017 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
4018 ac_dest_dir_suffix="/`echo $ac_dest_dir|
sed 's%^\./%%'`"
4019 # A "../" for each directory in $ac_dest_dir_suffix.
4020 ac_dots=`echo $ac_dest_dir_suffix|
sed 's%/[^/]*%../%g'`
4022 ac_dest_dir_suffix= ac_dots=
4026 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
4027 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
4030 # Make a symlink if possible; otherwise try a hard link.
4031 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
4032 ln $srcdir/$ac_source $ac_dest; then :
4034 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
4038 cat >> $CONFIG_STATUS <<EOF
4041 cat >> $CONFIG_STATUS <<\EOF
4042 case "x$CONFIG_FILES" in
4044 echo "Merging Makefile.sim+Make-common.sim into Makefile ..."
4045 rm -f Makesim1.tmp Makesim2.tmp Makefile
4046 sed -n -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ p' <Make-common.sim >Makesim1.tmp
4047 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >Makesim2.tmp
4048 sed -e '/^## COMMON_PRE_/ r Makesim1.tmp' \
4049 -e '/^## COMMON_POST_/ r Makesim2.tmp' \
4050 <Makefile.sim >Makefile
4051 rm -f Makefile.sim Make-common.sim Makesim1.tmp Makesim2.tmp
4054 case "x$CONFIG_HEADERS" in xconfig.h:config.in) echo > stamp-h ;; esac
4058 chmod +x $CONFIG_STATUS
4059 rm -fr confdefs* $ac_clean_files
4060 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1