45 sim_inline="-DDEFAULT_INLINE=0"
82 # This file is derived from `gettext.m4'. The difference is that the
83 # included macros assume Cygnus-style source and build trees.
85 # Macro to add for using GNU gettext.
86 # Ulrich Drepper <drepper@cygnus.com>, 1995.
88 # This file file be copied and used freely without restrictions. It can
89 # be used in projects which are not available under the GNU Public License
90 # but which still want to provide support for the GNU gettext functionality.
91 # Please note that the actual code is *not* freely available.
99 # Search path for a program which passes the given test.
100 # Ulrich Drepper <drepper@cygnus.com>, 1996.
102 # This file file be copied and used freely without restrictions. It can
103 # be used in projects which are not available under the GNU Public License
104 # but which still want to provide support for the GNU gettext functionality.
105 # Please note that the actual code is *not* freely available.
111 # Check whether LC_MESSAGES is available in <locale.h>.
112 # Ulrich Drepper <drepper@cygnus.com>, 1995.
114 # This file file be copied and used freely without restrictions. It can
115 # be used in projects which are not available under the GNU Public License
116 # but which still want to provide support for the GNU gettext functionality.
117 # Please note that the actual code is *not* freely available.
126 # Guess values for system-dependent variables and create Makefiles.
127 # Generated automatically using autoconf version 2.13
128 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
130 # This configure script is free software; the Free Software Foundation
131 # gives unlimited permission to copy, distribute and modify it.
135 ac_default_prefix=/usr/local
136 # Any additions from configure.in:
138 --disable-nls do not use Native Language Support"
140 --with-included-gettext use the GNU gettext library included here"
142 --enable-maintainer-mode Enable developer functionality."
144 --enable-sim-bswap Use Host specific BSWAP instruction."
146 --enable-sim-cflags=opts Extra CFLAGS for use in building simulator"
148 --enable-sim-debug=opts Enable debugging flags"
150 --enable-sim-stdio Specify whether to use stdio for console input/output."
152 --enable-sim-trace=opts Enable tracing flags"
154 --enable-sim-profile=opts Enable profiling flags"
156 # Initialize some variables set by options.
157 # The variables have the same names as the options, with
158 # dashes changed to underlines.
160 cache_file=./config.cache
169 program_transform_name=s,x,x,
177 bindir='${exec_prefix}/bin'
178 sbindir='${exec_prefix}/sbin'
179 libexecdir='${exec_prefix}/libexec'
180 datadir='${prefix}/share'
181 sysconfdir='${prefix}/etc'
182 sharedstatedir='${prefix}/com'
183 localstatedir='${prefix}/var'
184 libdir='${exec_prefix}/lib'
185 includedir='${prefix}/include'
186 oldincludedir='/usr/include'
187 infodir='${prefix}/info'
188 mandir='${prefix}/man'
190 # Initialize some other variables.
193 SHELL=${CONFIG_SHELL-/bin/sh}
194 # Maximum number of lines to put in a shell here document.
201 # If the previous option needs an argument, assign it.
202 if test -n "$ac_prev"; then
203 eval "$ac_prev=\$ac_option"
209 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
213 # Accept the important Cygnus configure options, so we can diagnose typos.
217 -bindir | --bindir | --bindi | --bind | --bin | --bi)
219 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
220 bindir="$ac_optarg" ;;
222 -build | --build | --buil | --bui | --bu)
224 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
225 build="$ac_optarg" ;;
227 -cache-file | --cache-file | --cache-fil | --cache-fi \
228 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
229 ac_prev=cache_file ;;
230 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
231 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
232 cache_file="$ac_optarg" ;;
234 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
236 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
238 datadir="$ac_optarg" ;;
240 -disable-* | --disable-*)
241 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
242 # Reject names that are not valid shell variable names.
243 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
244 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
246 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
247 eval "enable_${ac_feature}=no" ;;
249 -enable-* | --enable-*)
250 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
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'`
260 eval "enable_${ac_feature}='$ac_optarg'" ;;
262 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
263 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
264 | --exec | --exe | --ex)
265 ac_prev=exec_prefix ;;
266 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
267 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
268 | --exec=* | --exe=* | --ex=*)
269 exec_prefix="$ac_optarg" ;;
271 -gas | --gas | --ga | --g)
272 # Obsolete; use --with-gas.
275 -help | --help | --hel | --he)
276 # Omit some internal or obsolete options to make the list less imposing.
277 # This message is too long to be a string in the A/UX 3.1 sh.
279 Usage: configure [options] [host]
280 Options: [defaults in brackets after descriptions]
282 --cache-file=FILE cache test results in FILE
283 --help print this message
284 --no-create do not create output files
285 --quiet, --silent do not print \`checking...' messages
286 --version print the version of autoconf that created configure
287 Directory and file names:
288 --prefix=PREFIX install architecture-independent files in PREFIX
290 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
292 --bindir=DIR user executables in DIR [EPREFIX/bin]
293 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
294 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
295 --datadir=DIR read-only architecture-independent data in DIR
297 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
298 --sharedstatedir=DIR modifiable architecture-independent data in DIR
300 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
301 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
302 --includedir=DIR C header files in DIR [PREFIX/include]
303 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
304 --infodir=DIR info documentation in DIR [PREFIX/info]
305 --mandir=DIR man documentation in DIR [PREFIX/man]
306 --srcdir=DIR find the sources in DIR [configure dir or ..]
307 --program-prefix=PREFIX prepend PREFIX to installed program names
308 --program-suffix=SUFFIX append SUFFIX to installed program names
309 --program-transform-name=PROGRAM
310 run sed PROGRAM on installed program names
314 --build=BUILD configure for building on BUILD [BUILD=HOST]
315 --host=HOST configure for HOST [guessed]
316 --target=TARGET configure for TARGET [TARGET=HOST]
317 Features and packages:
318 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
319 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
320 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
321 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
322 --x-includes=DIR X include files are in DIR
323 --x-libraries=DIR X library files are in DIR
325 if test -n "$ac_help"; then
326 echo "--enable and --with options recognized:$ac_help"
330 -host | --host | --hos | --ho)
332 -host=* | --host=* | --hos=* | --ho=*)
335 -includedir | --includedir | --includedi | --included | --include \
336 | --includ | --inclu | --incl | --inc)
337 ac_prev=includedir ;;
338 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
339 | --includ=* | --inclu=* | --incl=* | --inc=*)
340 includedir="$ac_optarg" ;;
342 -infodir | --infodir | --infodi | --infod | --info | --inf)
344 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
345 infodir="$ac_optarg" ;;
347 -libdir | --libdir | --libdi | --libd)
349 -libdir=* | --libdir=* | --libdi=* | --libd=*)
350 libdir="$ac_optarg" ;;
352 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
353 | --libexe | --libex | --libe)
354 ac_prev=libexecdir ;;
355 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
356 | --libexe=* | --libex=* | --libe=*)
357 libexecdir="$ac_optarg" ;;
359 -localstatedir | --localstatedir | --localstatedi | --localstated \
360 | --localstate | --localstat | --localsta | --localst \
361 | --locals | --local | --loca | --loc | --lo)
362 ac_prev=localstatedir ;;
363 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
364 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
365 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
366 localstatedir="$ac_optarg" ;;
368 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
370 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
371 mandir="$ac_optarg" ;;
374 # Obsolete; use --without-fp.
377 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
381 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
382 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
385 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
386 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
387 | --oldin | --oldi | --old | --ol | --o)
388 ac_prev=oldincludedir ;;
389 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
390 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
391 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
392 oldincludedir="$ac_optarg" ;;
394 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
396 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
397 prefix="$ac_optarg" ;;
399 -program-prefix | --program-prefix | --program-prefi | --program-pref \
400 | --program-pre | --program-pr | --program-p)
401 ac_prev=program_prefix ;;
402 -program-prefix=* | --program-prefix=* | --program-prefi=* \
403 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
404 program_prefix="$ac_optarg" ;;
406 -program-suffix | --program-suffix | --program-suffi | --program-suff \
407 | --program-suf | --program-su | --program-s)
408 ac_prev=program_suffix ;;
409 -program-suffix=* | --program-suffix=* | --program-suffi=* \
410 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
411 program_suffix="$ac_optarg" ;;
413 -program-transform-name | --program-transform-name \
414 | --program-transform-nam | --program-transform-na \
415 | --program-transform-n | --program-transform- \
416 | --program-transform | --program-transfor \
417 | --program-transfo | --program-transf \
418 | --program-trans | --program-tran \
419 | --progr-tra | --program-tr | --program-t)
420 ac_prev=program_transform_name ;;
421 -program-transform-name=* | --program-transform-name=* \
422 | --program-transform-nam=* | --program-transform-na=* \
423 | --program-transform-n=* | --program-transform-=* \
424 | --program-transform=* | --program-transfor=* \
425 | --program-transfo=* | --program-transf=* \
426 | --program-trans=* | --program-tran=* \
427 | --progr-tra=* | --program-tr=* | --program-t=*)
428 program_transform_name="$ac_optarg" ;;
430 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
431 | -silent | --silent | --silen | --sile | --sil)
434 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
436 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
438 sbindir="$ac_optarg" ;;
440 -sharedstatedir | --sharedstatedir | --sharedstatedi \
441 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
442 | --sharedst | --shareds | --shared | --share | --shar \
444 ac_prev=sharedstatedir ;;
445 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
446 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
447 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
449 sharedstatedir="$ac_optarg" ;;
451 -site | --site | --sit)
453 -site=* | --site=* | --sit=*)
456 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
458 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
459 srcdir="$ac_optarg" ;;
461 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
462 | --syscon | --sysco | --sysc | --sys | --sy)
463 ac_prev=sysconfdir ;;
464 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
465 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
466 sysconfdir="$ac_optarg" ;;
468 -target | --target | --targe | --targ | --tar | --ta | --t)
470 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
471 target="$ac_optarg" ;;
473 -v | -verbose | --verbose | --verbos | --verbo | --verb)
476 -version | --version | --versio | --versi | --vers)
477 echo "configure generated by autoconf version 2.13"
481 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
482 # Reject names that are not valid shell variable names.
483 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
484 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
486 ac_package=`echo $ac_package| sed 's/-/_/g'`
491 eval "with_${ac_package}='$ac_optarg'" ;;
493 -without-* | --without-*)
494 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
495 # Reject names that are not valid shell variable names.
496 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
497 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
499 ac_package=`echo $ac_package| sed 's/-/_/g'`
500 eval "with_${ac_package}=no" ;;
503 # Obsolete; use --with-x.
506 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
507 | --x-incl | --x-inc | --x-in | --x-i)
508 ac_prev=x_includes ;;
509 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
510 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
511 x_includes="$ac_optarg" ;;
513 -x-libraries | --x-libraries | --x-librarie | --x-librari \
514 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
515 ac_prev=x_libraries ;;
516 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
517 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
518 x_libraries="$ac_optarg" ;;
520 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
524 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
525 echo "configure: warning: $ac_option: invalid host type" 1>&2
527 if test "x$nonopt" != xNONE; then
528 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
536 if test -n "$ac_prev"; then
537 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
540 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
542 # File descriptor usage:
545 # 2 errors and warnings
546 # 3 some systems may open it to /dev/tty
547 # 4 used on the Kubota Titan
548 # 6 checking for... messages and results
549 # 5 compiler messages saved in config.log
550 if test "$silent" = yes; then
558 This file contains any messages produced by compilers while
559 running configure, to aid debugging if configure makes a mistake.
562 # Strip out --no-create and --no-recursion so they do not pile up.
563 # Also quote any args containing shell metacharacters.
568 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
569 | --no-cr | --no-c) ;;
570 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
571 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
572 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
573 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
574 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
579 # Only set these to C if already set. These must not be set unconditionally
580 # because not all systems understand e.g. LANG=C (notably SCO).
581 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
582 # Non-C LC_CTYPE values break the ctype check.
583 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
584 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
585 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
586 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
588 # confdefs.h avoids OS command line length limits that DEFS can exceed.
589 rm -rf conftest* confdefs.h
590 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
593 # A filename unique to this package, relative to the directory that
594 # configure is in, which we can look for to find out if srcdir is correct.
595 ac_unique_file=Makefile.in
597 # Find the source files, if location was not specified.
598 if test -z "$srcdir"; then
599 ac_srcdir_defaulted=yes
600 # Try the directory containing this script, then its parent.
602 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
603 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
605 if test ! -r $srcdir/$ac_unique_file; then
609 ac_srcdir_defaulted=no
611 if test ! -r $srcdir/$ac_unique_file; then
612 if test "$ac_srcdir_defaulted" = yes; then
613 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
615 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
618 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
620 # Prefer explicitly selected file to automatically selected ones.
621 if test -z "$CONFIG_SITE"; then
622 if test "x$prefix" != xNONE; then
623 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
625 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
628 for ac_site_file in $CONFIG_SITE; do
629 if test -r "$ac_site_file"; then
630 echo "loading site script $ac_site_file"
635 if test -r "$cache_file"; then
636 echo "loading cache $cache_file"
639 echo "creating cache $cache_file"
644 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
645 ac_cpp='$CPP $CPPFLAGS'
646 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
647 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
648 cross_compiling=$ac_cv_prog_cc_cross
652 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
653 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
654 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
661 ac_n= ac_c='\c' ac_t=
666 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
667 echo "configure:668: checking how to run the C preprocessor" >&5
668 # On Suns, sometimes $CPP names a directory.
669 if test -n "$CPP" && test -d "$CPP"; then
672 if test -z "$CPP"; then
673 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
674 echo $ac_n "(cached) $ac_c" 1>&6
676 # This must be in double quotes, not single quotes, because CPP may get
677 # substituted into the Makefile and "${CC-cc}" will confuse make.
679 # On the NeXT, cc -E runs the code through the compiler's parser,
680 # not just through cpp.
681 cat > conftest.$ac_ext <<EOF
682 #line 683 "configure"
683 #include "confdefs.h"
687 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
688 { (eval echo configure:689: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
689 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
690 if test -z "$ac_err"; then
694 echo "configure: failed program was:" >&5
695 cat conftest.$ac_ext >&5
697 CPP="${CC-cc} -E -traditional-cpp"
698 cat > conftest.$ac_ext <<EOF
699 #line 700 "configure"
700 #include "confdefs.h"
704 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
705 { (eval echo configure:706: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
706 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
707 if test -z "$ac_err"; then
711 echo "configure: failed program was:" >&5
712 cat conftest.$ac_ext >&5
714 CPP="${CC-cc} -nologo -E"
715 cat > conftest.$ac_ext <<EOF
716 #line 717 "configure"
717 #include "confdefs.h"
721 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
722 { (eval echo configure:723: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
723 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
724 if test -z "$ac_err"; then
728 echo "configure: failed program was:" >&5
729 cat conftest.$ac_ext >&5
738 ac_cv_prog_CPP="$CPP"
740 CPP="$ac_cv_prog_CPP"
742 ac_cv_prog_CPP="$CPP"
744 echo "$ac_t""$CPP" 1>&6
746 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
747 echo "configure:748: checking whether ${MAKE-make} sets \${MAKE}" >&5
748 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
749 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
750 echo $ac_n "(cached) $ac_c" 1>&6
752 cat > conftestmake <<\EOF
754 @echo 'ac_maketemp="${MAKE}"'
756 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
757 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
758 if test -n "$ac_maketemp"; then
759 eval ac_cv_prog_make_${ac_make}_set=yes
761 eval ac_cv_prog_make_${ac_make}_set=no
765 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
766 echo "$ac_t""yes" 1>&6
769 echo "$ac_t""no" 1>&6
770 SET_MAKE="MAKE=${MAKE-make}"
773 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
774 echo "configure:775: checking for POSIXized ISC" >&5
775 if test -d /etc/conf/kconfig.d &&
776 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
778 echo "$ac_t""yes" 1>&6
779 ISC=yes # If later tests want to check for ISC.
780 cat >> confdefs.h <<\EOF
781 #define _POSIX_SOURCE 1
784 if test "$GCC" = yes; then
790 echo "$ac_t""no" 1>&6
794 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
795 echo "configure:796: checking for ANSI C header files" >&5
796 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
797 echo $ac_n "(cached) $ac_c" 1>&6
799 cat > conftest.$ac_ext <<EOF
800 #line 801 "configure"
801 #include "confdefs.h"
807 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
808 { (eval echo configure:809: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
809 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
810 if test -z "$ac_err"; then
812 ac_cv_header_stdc=yes
815 echo "configure: failed program was:" >&5
816 cat conftest.$ac_ext >&5
822 if test $ac_cv_header_stdc = yes; then
823 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
824 cat > conftest.$ac_ext <<EOF
825 #line 826 "configure"
826 #include "confdefs.h"
829 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
830 egrep "memchr" >/dev/null 2>&1; then
840 if test $ac_cv_header_stdc = yes; then
841 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
842 cat > conftest.$ac_ext <<EOF
843 #line 844 "configure"
844 #include "confdefs.h"
847 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
848 egrep "free" >/dev/null 2>&1; then
858 if test $ac_cv_header_stdc = yes; then
859 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
860 if test "$cross_compiling" = yes; then
863 cat > conftest.$ac_ext <<EOF
864 #line 865 "configure"
865 #include "confdefs.h"
867 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
868 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
869 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
870 int main () { int i; for (i = 0; i < 256; i++)
871 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
875 if { (eval echo configure:876: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
879 echo "configure: failed program was:" >&5
880 cat conftest.$ac_ext >&5
890 echo "$ac_t""$ac_cv_header_stdc" 1>&6
891 if test $ac_cv_header_stdc = yes; then
892 cat >> confdefs.h <<\EOF
893 #define STDC_HEADERS 1
898 echo $ac_n "checking for working const""... $ac_c" 1>&6
899 echo "configure:900: checking for working const" >&5
900 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
901 echo $ac_n "(cached) $ac_c" 1>&6
903 cat > conftest.$ac_ext <<EOF
904 #line 905 "configure"
905 #include "confdefs.h"
909 /* Ultrix mips cc rejects this. */
910 typedef int charset[2]; const charset x;
911 /* SunOS 4.1.1 cc rejects this. */
912 char const *const *ccp;
914 /* NEC SVR4.0.2 mips cc rejects this. */
915 struct point {int x, y;};
916 static struct point const zero = {0,0};
917 /* AIX XL C 1.02.0.0 rejects this.
918 It does not let you subtract one const X* pointer from another in an arm
919 of an if-expression whose if-part is not a constant expression */
920 const char *g = "string";
921 ccp = &g + (g ? g-g : 0);
922 /* HPUX 7.0 cc rejects these. */
925 ccp = (char const *const *) p;
926 { /* SCO 3.2v4 cc rejects this. */
928 char const *s = 0 ? (char *) 0 : (char const *) 0;
932 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
934 const int *foo = &x[0];
937 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
938 typedef const int *iptr;
942 { /* AIX XL C 1.02.0.0 rejects this saying
943 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
944 struct s { int j; const int *ap[3]; };
945 struct s *b; b->j = 5;
947 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
953 if { (eval echo configure:954: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
957 echo "configure: failed program was:" >&5
958 cat conftest.$ac_ext >&5
965 echo "$ac_t""$ac_cv_c_const" 1>&6
966 if test $ac_cv_c_const = no; then
967 cat >> confdefs.h <<\EOF
973 echo $ac_n "checking for inline""... $ac_c" 1>&6
974 echo "configure:975: checking for inline" >&5
975 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
976 echo $ac_n "(cached) $ac_c" 1>&6
979 for ac_kw in inline __inline__ __inline; do
980 cat > conftest.$ac_ext <<EOF
981 #line 982 "configure"
982 #include "confdefs.h"
988 if { (eval echo configure:989: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
990 ac_cv_c_inline=$ac_kw; break
992 echo "configure: failed program was:" >&5
993 cat conftest.$ac_ext >&5
1000 echo "$ac_t""$ac_cv_c_inline" 1>&6
1001 case "$ac_cv_c_inline" in
1003 no) cat >> confdefs.h <<\EOF
1007 *) cat >> confdefs.h <<EOF
1008 #define inline $ac_cv_c_inline
1013 echo $ac_n "checking for off_t""... $ac_c" 1>&6
1014 echo "configure:1015: checking for off_t" >&5
1015 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
1016 echo $ac_n "(cached) $ac_c" 1>&6
1018 cat > conftest.$ac_ext <<EOF
1019 #line 1020 "configure"
1020 #include "confdefs.h"
1021 #include <sys/types.h>
1027 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1028 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1030 ac_cv_type_off_t=yes
1038 echo "$ac_t""$ac_cv_type_off_t" 1>&6
1039 if test $ac_cv_type_off_t = no; then
1040 cat >> confdefs.h <<\EOF
1046 echo $ac_n "checking for size_t""... $ac_c" 1>&6
1047 echo "configure:1048: checking for size_t" >&5
1048 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
1049 echo $ac_n "(cached) $ac_c" 1>&6
1051 cat > conftest.$ac_ext <<EOF
1052 #line 1053 "configure"
1053 #include "confdefs.h"
1054 #include <sys/types.h>
1060 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1061 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1063 ac_cv_type_size_t=yes
1066 ac_cv_type_size_t=no
1071 echo "$ac_t""$ac_cv_type_size_t" 1>&6
1072 if test $ac_cv_type_size_t = no; then
1073 cat >> confdefs.h <<\EOF
1074 #define size_t unsigned
1079 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
1080 # for constant arguments. Useless!
1081 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
1082 echo "configure:1083: checking for working alloca.h" >&5
1083 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
1084 echo $ac_n "(cached) $ac_c" 1>&6
1086 cat > conftest.$ac_ext <<EOF
1087 #line 1088 "configure"
1088 #include "confdefs.h"
1091 char *p = alloca(2 * sizeof(int));
1094 if { (eval echo configure:1095: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1096 ac_cv_header_alloca_h=yes
1098 echo "configure: failed program was:" >&5
1099 cat conftest.$ac_ext >&5
1101 ac_cv_header_alloca_h=no
1106 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
1107 if test $ac_cv_header_alloca_h = yes; then
1108 cat >> confdefs.h <<\EOF
1109 #define HAVE_ALLOCA_H 1
1114 echo $ac_n "checking for alloca""... $ac_c" 1>&6
1115 echo "configure:1116: checking for alloca" >&5
1116 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
1117 echo $ac_n "(cached) $ac_c" 1>&6
1119 cat > conftest.$ac_ext <<EOF
1120 #line 1121 "configure"
1121 #include "confdefs.h"
1124 # define alloca __builtin_alloca
1127 # include <malloc.h>
1128 # define alloca _alloca
1131 # include <alloca.h>
1136 # ifndef alloca /* predefined by HP cc +Olibcalls */
1145 char *p = (char *) alloca(1);
1148 if { (eval echo configure:1149: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1150 ac_cv_func_alloca_works=yes
1152 echo "configure: failed program was:" >&5
1153 cat conftest.$ac_ext >&5
1155 ac_cv_func_alloca_works=no
1160 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
1161 if test $ac_cv_func_alloca_works = yes; then
1162 cat >> confdefs.h <<\EOF
1163 #define HAVE_ALLOCA 1
1168 if test $ac_cv_func_alloca_works = no; then
1169 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
1170 # that cause trouble. Some versions do not even contain alloca or
1171 # contain a buggy version. If you still want to use their alloca,
1172 # use ar to extract alloca.o from them instead of compiling alloca.c.
1173 ALLOCA=alloca.${ac_objext}
1174 cat >> confdefs.h <<\EOF
1179 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
1180 echo "configure:1181: checking whether alloca needs Cray hooks" >&5
1181 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
1182 echo $ac_n "(cached) $ac_c" 1>&6
1184 cat > conftest.$ac_ext <<EOF
1185 #line 1186 "configure"
1186 #include "confdefs.h"
1187 #if defined(CRAY) && ! defined(CRAY2)
1194 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1195 egrep "webecray" >/dev/null 2>&1; then
1206 echo "$ac_t""$ac_cv_os_cray" 1>&6
1207 if test $ac_cv_os_cray = yes; then
1208 for ac_func in _getb67 GETB67 getb67; do
1209 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1210 echo "configure:1211: checking for $ac_func" >&5
1211 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1212 echo $ac_n "(cached) $ac_c" 1>&6
1214 cat > conftest.$ac_ext <<EOF
1215 #line 1216 "configure"
1216 #include "confdefs.h"
1217 /* System header to define __stub macros and hopefully few prototypes,
1218 which can conflict with char $ac_func(); below. */
1220 /* Override any gcc2 internal prototype to avoid an error. */
1221 /* We use char because int might match the return type of a gcc2
1222 builtin and then its argument prototype would still apply. */
1227 /* The GNU C library defines this for functions which it implements
1228 to always fail with ENOSYS. Some functions are actually named
1229 something starting with __ and the normal name is an alias. */
1230 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1238 if { (eval echo configure:1239: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1240 eval "ac_cv_func_$ac_func=yes"
1242 echo "configure: failed program was:" >&5
1243 cat conftest.$ac_ext >&5
1245 eval "ac_cv_func_$ac_func=no"
1250 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1251 echo "$ac_t""yes" 1>&6
1252 cat >> confdefs.h <<EOF
1253 #define CRAY_STACKSEG_END $ac_func
1258 echo "$ac_t""no" 1>&6
1264 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
1265 echo "configure:1266: checking stack direction for C alloca" >&5
1266 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
1267 echo $ac_n "(cached) $ac_c" 1>&6
1269 if test "$cross_compiling" = yes; then
1270 ac_cv_c_stack_direction=0
1272 cat > conftest.$ac_ext <<EOF
1273 #line 1274 "configure"
1274 #include "confdefs.h"
1275 find_stack_direction ()
1277 static char *addr = 0;
1282 return find_stack_direction ();
1285 return (&dummy > addr) ? 1 : -1;
1289 exit (find_stack_direction() < 0);
1292 if { (eval echo configure:1293: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1294 ac_cv_c_stack_direction=1
1296 echo "configure: failed program was:" >&5
1297 cat conftest.$ac_ext >&5
1299 ac_cv_c_stack_direction=-1
1306 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
1307 cat >> confdefs.h <<EOF
1308 #define STACK_DIRECTION $ac_cv_c_stack_direction
1313 for ac_hdr in unistd.h
1315 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1316 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1317 echo "configure:1318: checking for $ac_hdr" >&5
1318 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1319 echo $ac_n "(cached) $ac_c" 1>&6
1321 cat > conftest.$ac_ext <<EOF
1322 #line 1323 "configure"
1323 #include "confdefs.h"
1326 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1327 { (eval echo configure:1328: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1328 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1329 if test -z "$ac_err"; then
1331 eval "ac_cv_header_$ac_safe=yes"
1334 echo "configure: failed program was:" >&5
1335 cat conftest.$ac_ext >&5
1337 eval "ac_cv_header_$ac_safe=no"
1341 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1342 echo "$ac_t""yes" 1>&6
1343 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1344 cat >> confdefs.h <<EOF
1345 #define $ac_tr_hdr 1
1349 echo "$ac_t""no" 1>&6
1353 for ac_func in getpagesize
1355 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1356 echo "configure:1357: checking for $ac_func" >&5
1357 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1358 echo $ac_n "(cached) $ac_c" 1>&6
1360 cat > conftest.$ac_ext <<EOF
1361 #line 1362 "configure"
1362 #include "confdefs.h"
1363 /* System header to define __stub macros and hopefully few prototypes,
1364 which can conflict with char $ac_func(); below. */
1366 /* Override any gcc2 internal prototype to avoid an error. */
1367 /* We use char because int might match the return type of a gcc2
1368 builtin and then its argument prototype would still apply. */
1373 /* The GNU C library defines this for functions which it implements
1374 to always fail with ENOSYS. Some functions are actually named
1375 something starting with __ and the normal name is an alias. */
1376 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1384 if { (eval echo configure:1385: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1386 eval "ac_cv_func_$ac_func=yes"
1388 echo "configure: failed program was:" >&5
1389 cat conftest.$ac_ext >&5
1391 eval "ac_cv_func_$ac_func=no"
1396 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1397 echo "$ac_t""yes" 1>&6
1398 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1399 cat >> confdefs.h <<EOF
1400 #define $ac_tr_func 1
1404 echo "$ac_t""no" 1>&6
1408 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
1409 echo "configure:1410: checking for working mmap" >&5
1410 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
1411 echo $ac_n "(cached) $ac_c" 1>&6
1413 if test "$cross_compiling" = yes; then
1414 ac_cv_func_mmap_fixed_mapped=no
1416 cat > conftest.$ac_ext <<EOF
1417 #line 1418 "configure"
1418 #include "confdefs.h"
1420 /* Thanks to Mike Haertel and Jim Avera for this test.
1421 Here is a matrix of mmap possibilities:
1422 mmap private not fixed
1423 mmap private fixed at somewhere currently unmapped
1424 mmap private fixed at somewhere already mapped
1425 mmap shared not fixed
1426 mmap shared fixed at somewhere currently unmapped
1427 mmap shared fixed at somewhere already mapped
1428 For private mappings, we should verify that changes cannot be read()
1429 back from the file, nor mmap's back from the file at a different
1430 address. (There have been systems where private was not correctly
1431 implemented like the infamous i386 svr4.0, and systems where the
1432 VM page cache was not coherent with the filesystem buffer cache
1433 like early versions of FreeBSD and possibly contemporary NetBSD.)
1434 For shared mappings, we should conversely verify that changes get
1435 propogated back to all the places they're supposed to be.
1437 Grep wants private fixed already mapped.
1438 The main things grep needs to know about mmap are:
1439 * does it exist and is it safe to write into the mmap'd area
1440 * how to use it (BSD variants) */
1441 #include <sys/types.h>
1443 #include <sys/mman.h>
1445 /* This mess was copied from the GNU getpagesize.h. */
1446 #ifndef HAVE_GETPAGESIZE
1447 # ifdef HAVE_UNISTD_H
1448 # include <unistd.h>
1451 /* Assume that all systems that can run configure have sys/param.h. */
1452 # ifndef HAVE_SYS_PARAM_H
1453 # define HAVE_SYS_PARAM_H 1
1456 # ifdef _SC_PAGESIZE
1457 # define getpagesize() sysconf(_SC_PAGESIZE)
1458 # else /* no _SC_PAGESIZE */
1459 # ifdef HAVE_SYS_PARAM_H
1460 # include <sys/param.h>
1461 # ifdef EXEC_PAGESIZE
1462 # define getpagesize() EXEC_PAGESIZE
1463 # else /* no EXEC_PAGESIZE */
1465 # define getpagesize() NBPG * CLSIZE
1468 # endif /* no CLSIZE */
1469 # else /* no NBPG */
1471 # define getpagesize() NBPC
1472 # else /* no NBPC */
1474 # define getpagesize() PAGESIZE
1475 # endif /* PAGESIZE */
1476 # endif /* no NBPC */
1477 # endif /* no NBPG */
1478 # endif /* no EXEC_PAGESIZE */
1479 # else /* no HAVE_SYS_PARAM_H */
1480 # define getpagesize() 8192 /* punt totally */
1481 # endif /* no HAVE_SYS_PARAM_H */
1482 # endif /* no _SC_PAGESIZE */
1484 #endif /* no HAVE_GETPAGESIZE */
1487 extern "C" { void *malloc(unsigned); }
1495 char *data, *data2, *data3;
1499 pagesize = getpagesize();
1502 * First, make a file with some known garbage in it.
1504 data = malloc(pagesize);
1507 for (i = 0; i < pagesize; ++i)
1508 *(data + i) = rand();
1510 fd = creat("conftestmmap", 0600);
1513 if (write(fd, data, pagesize) != pagesize)
1518 * Next, try to mmap the file at a fixed address which
1519 * already has something else allocated at it. If we can,
1520 * also make sure that we see the same garbage.
1522 fd = open("conftestmmap", O_RDWR);
1525 data2 = malloc(2 * pagesize);
1528 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
1529 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
1530 MAP_PRIVATE | MAP_FIXED, fd, 0L))
1532 for (i = 0; i < pagesize; ++i)
1533 if (*(data + i) != *(data2 + i))
1537 * Finally, make sure that changes to the mapped area
1538 * do not percolate back to the file as seen by read().
1539 * (This is a bug on some variants of i386 svr4.0.)
1541 for (i = 0; i < pagesize; ++i)
1542 *(data2 + i) = *(data2 + i) + 1;
1543 data3 = malloc(pagesize);
1546 if (read(fd, data3, pagesize) != pagesize)
1548 for (i = 0; i < pagesize; ++i)
1549 if (*(data + i) != *(data3 + i))
1552 unlink("conftestmmap");
1557 if { (eval echo configure:1558: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1559 ac_cv_func_mmap_fixed_mapped=yes
1561 echo "configure: failed program was:" >&5
1562 cat conftest.$ac_ext >&5
1564 ac_cv_func_mmap_fixed_mapped=no
1571 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
1572 if test $ac_cv_func_mmap_fixed_mapped = yes; then
1573 cat >> confdefs.h <<\EOF
1579 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
1580 echo "configure:1581: checking for Cygwin environment" >&5
1581 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
1582 echo $ac_n "(cached) $ac_c" 1>&6
1584 cat > conftest.$ac_ext <<EOF
1585 #line 1586 "configure"
1586 #include "confdefs.h"
1591 #define __CYGWIN__ __CYGWIN32__
1596 if { (eval echo configure:1597: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1600 echo "configure: failed program was:" >&5
1601 cat conftest.$ac_ext >&5
1609 echo "$ac_t""$ac_cv_cygwin" 1>&6
1611 test "$ac_cv_cygwin" = yes && CYGWIN=yes
1612 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
1613 echo "configure:1614: checking for mingw32 environment" >&5
1614 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
1615 echo $ac_n "(cached) $ac_c" 1>&6
1617 cat > conftest.$ac_ext <<EOF
1618 #line 1619 "configure"
1619 #include "confdefs.h"
1625 if { (eval echo configure:1626: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1629 echo "configure: failed program was:" >&5
1630 cat conftest.$ac_ext >&5
1638 echo "$ac_t""$ac_cv_mingw32" 1>&6
1640 test "$ac_cv_mingw32" = yes && MINGW32=yes
1642 # autoconf.info says this should be called right after AC_INIT.
1646 for ac_dir in `cd $srcdir;pwd`/../.. $srcdir/`cd $srcdir;pwd`/../..; do
1647 if test -f $ac_dir/install-sh; then
1649 ac_install_sh="$ac_aux_dir/install-sh -c"
1651 elif test -f $ac_dir/install.sh; then
1653 ac_install_sh="$ac_aux_dir/install.sh -c"
1657 if test -z "$ac_aux_dir"; then
1658 { echo "configure: error: can not find install-sh or install.sh in `cd $srcdir;pwd`/../.. $srcdir/`cd $srcdir;pwd`/../.." 1>&2; exit 1; }
1660 ac_config_guess=$ac_aux_dir/config.guess
1661 ac_config_sub=$ac_aux_dir/config.sub
1662 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
1665 # Do some error checking and defaulting for the host and target type.
1667 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
1670 # 1. You are not allowed to specify --host, --target, and nonopt at the
1672 # 2. Host defaults to nonopt.
1673 # 3. If nonopt is not specified, then host defaults to the current host,
1674 # as determined by config.guess.
1675 # 4. Target and build default to nonopt.
1676 # 5. If nonopt is not specified, then target and build default to host.
1678 # The aliases save the names the user supplied, while $host etc.
1679 # will get canonicalized.
1680 case $host---$target---$nonopt in
1681 NONE---*---* | *---NONE---* | *---*---NONE) ;;
1682 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
1686 # Make sure we can run config.sub.
1687 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
1688 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1691 echo $ac_n "checking host system type""... $ac_c" 1>&6
1692 echo "configure:1693: checking host system type" >&5
1695 case "$host_alias" in
1699 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1700 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1702 *) host_alias=$nonopt ;;
1706 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1707 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1708 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1709 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1710 echo "$ac_t""$host" 1>&6
1712 echo $ac_n "checking target system type""... $ac_c" 1>&6
1713 echo "configure:1714: checking target system type" >&5
1715 target_alias=$target
1716 case "$target_alias" in
1719 NONE) target_alias=$host_alias ;;
1720 *) target_alias=$nonopt ;;
1724 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
1725 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1726 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1727 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1728 echo "$ac_t""$target" 1>&6
1730 echo $ac_n "checking build system type""... $ac_c" 1>&6
1731 echo "configure:1732: checking build system type" >&5
1734 case "$build_alias" in
1737 NONE) build_alias=$host_alias ;;
1738 *) build_alias=$nonopt ;;
1742 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1743 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1744 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1745 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1746 echo "$ac_t""$build" 1>&6
1748 test "$host_alias" != "$target_alias" &&
1749 test "$program_prefix$program_suffix$program_transform_name" = \
1751 program_prefix=${target_alias}-
1753 if test "$program_transform_name" = s,x,x,; then
1754 program_transform_name=
1756 # Double any \ or $. echo might interpret backslashes.
1757 cat <<\EOF_SED > conftestsed
1758 s,\\,\\\\,g; s,\$,$$,g
1760 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
1763 test "$program_prefix" != NONE &&
1764 program_transform_name="s,^,${program_prefix},; $program_transform_name"
1765 # Use a double $ so make ignores it.
1766 test "$program_suffix" != NONE &&
1767 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
1769 # sed with no file args requires a program.
1770 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
1772 # Extract the first word of "gcc", so it can be a program name with args.
1773 set dummy gcc; ac_word=$2
1774 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1775 echo "configure:1776: checking for $ac_word" >&5
1776 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1777 echo $ac_n "(cached) $ac_c" 1>&6
1779 if test -n "$CC"; then
1780 ac_cv_prog_CC="$CC" # Let the user override the test.
1782 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1784 for ac_dir in $ac_dummy; do
1785 test -z "$ac_dir" && ac_dir=.
1786 if test -f $ac_dir/$ac_word; then
1795 if test -n "$CC"; then
1796 echo "$ac_t""$CC" 1>&6
1798 echo "$ac_t""no" 1>&6
1801 if test -z "$CC"; then
1802 # Extract the first word of "cc", so it can be a program name with args.
1803 set dummy cc; ac_word=$2
1804 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1805 echo "configure:1806: checking for $ac_word" >&5
1806 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1807 echo $ac_n "(cached) $ac_c" 1>&6
1809 if test -n "$CC"; then
1810 ac_cv_prog_CC="$CC" # Let the user override the test.
1812 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1815 for ac_dir in $ac_dummy; do
1816 test -z "$ac_dir" && ac_dir=.
1817 if test -f $ac_dir/$ac_word; then
1818 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1819 ac_prog_rejected=yes
1827 if test $ac_prog_rejected = yes; then
1828 # We found a bogon in the path, so make sure we never use it.
1829 set dummy $ac_cv_prog_CC
1831 if test $# -gt 0; then
1832 # We chose a different compiler from the bogus one.
1833 # However, it has the same basename, so the bogon will be chosen
1834 # first if we set CC to just the basename; use the full file name.
1836 set dummy "$ac_dir/$ac_word" "$@"
1844 if test -n "$CC"; then
1845 echo "$ac_t""$CC" 1>&6
1847 echo "$ac_t""no" 1>&6
1850 if test -z "$CC"; then
1851 case "`uname -s`" in
1853 # Extract the first word of "cl", so it can be a program name with args.
1854 set dummy cl; ac_word=$2
1855 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1856 echo "configure:1857: checking for $ac_word" >&5
1857 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1858 echo $ac_n "(cached) $ac_c" 1>&6
1860 if test -n "$CC"; then
1861 ac_cv_prog_CC="$CC" # Let the user override the test.
1863 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1865 for ac_dir in $ac_dummy; do
1866 test -z "$ac_dir" && ac_dir=.
1867 if test -f $ac_dir/$ac_word; then
1876 if test -n "$CC"; then
1877 echo "$ac_t""$CC" 1>&6
1879 echo "$ac_t""no" 1>&6
1884 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1887 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1888 echo "configure:1889: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1891 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1892 ac_cpp='$CPP $CPPFLAGS'
1893 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1894 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1895 cross_compiling=$ac_cv_prog_cc_cross
1897 cat > conftest.$ac_ext << EOF
1899 #line 1900 "configure"
1900 #include "confdefs.h"
1904 if { (eval echo configure:1905: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1905 ac_cv_prog_cc_works=yes
1906 # If we can't run a trivial program, we are probably using a cross compiler.
1907 if (./conftest; exit) 2>/dev/null; then
1908 ac_cv_prog_cc_cross=no
1910 ac_cv_prog_cc_cross=yes
1913 echo "configure: failed program was:" >&5
1914 cat conftest.$ac_ext >&5
1915 ac_cv_prog_cc_works=no
1919 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1920 ac_cpp='$CPP $CPPFLAGS'
1921 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1922 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1923 cross_compiling=$ac_cv_prog_cc_cross
1925 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1926 if test $ac_cv_prog_cc_works = no; then
1927 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1929 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1930 echo "configure:1931: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1931 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1932 cross_compiling=$ac_cv_prog_cc_cross
1934 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1935 echo "configure:1936: checking whether we are using GNU C" >&5
1936 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1937 echo $ac_n "(cached) $ac_c" 1>&6
1939 cat > conftest.c <<EOF
1944 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1945: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1951 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1953 if test $ac_cv_prog_gcc = yes; then
1959 ac_test_CFLAGS="${CFLAGS+set}"
1960 ac_save_CFLAGS="$CFLAGS"
1962 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1963 echo "configure:1964: checking whether ${CC-cc} accepts -g" >&5
1964 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1965 echo $ac_n "(cached) $ac_c" 1>&6
1967 echo 'void f(){}' > conftest.c
1968 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1977 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1978 if test "$ac_test_CFLAGS" = set; then
1979 CFLAGS="$ac_save_CFLAGS"
1980 elif test $ac_cv_prog_cc_g = yes; then
1981 if test "$GCC" = yes; then
1987 if test "$GCC" = yes; then
1994 # Find a good install program. We prefer a C program (faster),
1995 # so one script is as good as another. But avoid the broken or
1996 # incompatible versions:
1997 # SysV /etc/install, /usr/sbin/install
1998 # SunOS /usr/etc/install
1999 # IRIX /sbin/install
2001 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2002 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2003 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2004 # ./install, which can be erroneously created by make from ./install.sh.
2005 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
2006 echo "configure:2007: checking for a BSD compatible install" >&5
2007 if test -z "$INSTALL"; then
2008 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
2009 echo $ac_n "(cached) $ac_c" 1>&6
2011 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
2012 for ac_dir in $PATH; do
2013 # Account for people who put trailing slashes in PATH elements.
2015 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
2017 # OSF1 and SCO ODT 3.0 have their own names for install.
2018 # Don't use installbsd from OSF since it installs stuff as root
2020 for ac_prog in ginstall scoinst install; do
2021 if test -f $ac_dir/$ac_prog; then
2022 if test $ac_prog = install &&
2023 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
2024 # AIX install. It has an incompatible calling convention.
2027 ac_cv_path_install="$ac_dir/$ac_prog -c"
2038 if test "${ac_cv_path_install+set}" = set; then
2039 INSTALL="$ac_cv_path_install"
2041 # As a last resort, use the slow shell script. We don't cache a
2042 # path for INSTALL within a source directory, because that will
2043 # break other packages using the cache if that directory is
2044 # removed, or if the path is relative.
2045 INSTALL="$ac_install_sh"
2048 echo "$ac_t""$INSTALL" 1>&6
2050 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2051 # It thinks the first close brace ends the variable substitution.
2052 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2054 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
2056 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2059 # Put a plausible default for CC_FOR_BUILD in Makefile.
2060 if test "x$cross_compiling" = "xno"; then
2061 CC_FOR_BUILD='$(CC)'
2071 # Extract the first word of "ranlib", so it can be a program name with args.
2072 set dummy ranlib; ac_word=$2
2073 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2074 echo "configure:2075: checking for $ac_word" >&5
2075 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2076 echo $ac_n "(cached) $ac_c" 1>&6
2078 if test -n "$RANLIB"; then
2079 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2081 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2083 for ac_dir in $ac_dummy; do
2084 test -z "$ac_dir" && ac_dir=.
2085 if test -f $ac_dir/$ac_word; then
2086 ac_cv_prog_RANLIB="ranlib"
2091 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2094 RANLIB="$ac_cv_prog_RANLIB"
2095 if test -n "$RANLIB"; then
2096 echo "$ac_t""$RANLIB" 1>&6
2098 echo "$ac_t""no" 1>&6
2104 for ac_hdr in argz.h limits.h locale.h nl_types.h malloc.h string.h \
2105 unistd.h values.h sys/param.h
2107 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2108 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2109 echo "configure:2110: checking for $ac_hdr" >&5
2110 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2111 echo $ac_n "(cached) $ac_c" 1>&6
2113 cat > conftest.$ac_ext <<EOF
2114 #line 2115 "configure"
2115 #include "confdefs.h"
2118 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2119 { (eval echo configure:2120: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2120 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2121 if test -z "$ac_err"; then
2123 eval "ac_cv_header_$ac_safe=yes"
2126 echo "configure: failed program was:" >&5
2127 cat conftest.$ac_ext >&5
2129 eval "ac_cv_header_$ac_safe=no"
2133 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2134 echo "$ac_t""yes" 1>&6
2135 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2136 cat >> confdefs.h <<EOF
2137 #define $ac_tr_hdr 1
2141 echo "$ac_t""no" 1>&6
2145 for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \
2146 __argz_count __argz_stringify __argz_next
2148 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2149 echo "configure:2150: checking for $ac_func" >&5
2150 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2151 echo $ac_n "(cached) $ac_c" 1>&6
2153 cat > conftest.$ac_ext <<EOF
2154 #line 2155 "configure"
2155 #include "confdefs.h"
2156 /* System header to define __stub macros and hopefully few prototypes,
2157 which can conflict with char $ac_func(); below. */
2159 /* Override any gcc2 internal prototype to avoid an error. */
2160 /* We use char because int might match the return type of a gcc2
2161 builtin and then its argument prototype would still apply. */
2166 /* The GNU C library defines this for functions which it implements
2167 to always fail with ENOSYS. Some functions are actually named
2168 something starting with __ and the normal name is an alias. */
2169 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2177 if { (eval echo configure:2178: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2179 eval "ac_cv_func_$ac_func=yes"
2181 echo "configure: failed program was:" >&5
2182 cat conftest.$ac_ext >&5
2184 eval "ac_cv_func_$ac_func=no"
2189 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2190 echo "$ac_t""yes" 1>&6
2191 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2192 cat >> confdefs.h <<EOF
2193 #define $ac_tr_func 1
2197 echo "$ac_t""no" 1>&6
2202 if test "${ac_cv_func_stpcpy+set}" != "set"; then
2203 for ac_func in stpcpy
2205 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2206 echo "configure:2207: checking for $ac_func" >&5
2207 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+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 /* System header to define __stub macros and hopefully few prototypes,
2214 which can conflict with char $ac_func(); below. */
2216 /* Override any gcc2 internal prototype to avoid an error. */
2217 /* We use char because int might match the return type of a gcc2
2218 builtin and then its argument prototype would still apply. */
2223 /* The GNU C library defines this for functions which it implements
2224 to always fail with ENOSYS. Some functions are actually named
2225 something starting with __ and the normal name is an alias. */
2226 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2234 if { (eval echo configure:2235: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2236 eval "ac_cv_func_$ac_func=yes"
2238 echo "configure: failed program was:" >&5
2239 cat conftest.$ac_ext >&5
2241 eval "ac_cv_func_$ac_func=no"
2246 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2247 echo "$ac_t""yes" 1>&6
2248 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2249 cat >> confdefs.h <<EOF
2250 #define $ac_tr_func 1
2254 echo "$ac_t""no" 1>&6
2259 if test "${ac_cv_func_stpcpy}" = "yes"; then
2260 cat >> confdefs.h <<\EOF
2261 #define HAVE_STPCPY 1
2266 if test $ac_cv_header_locale_h = yes; then
2267 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
2268 echo "configure:2269: checking for LC_MESSAGES" >&5
2269 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
2270 echo $ac_n "(cached) $ac_c" 1>&6
2272 cat > conftest.$ac_ext <<EOF
2273 #line 2274 "configure"
2274 #include "confdefs.h"
2280 if { (eval echo configure:2281: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2282 am_cv_val_LC_MESSAGES=yes
2284 echo "configure: failed program was:" >&5
2285 cat conftest.$ac_ext >&5
2287 am_cv_val_LC_MESSAGES=no
2292 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
2293 if test $am_cv_val_LC_MESSAGES = yes; then
2294 cat >> confdefs.h <<\EOF
2295 #define HAVE_LC_MESSAGES 1
2300 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
2301 echo "configure:2302: checking whether NLS is requested" >&5
2302 # Check whether --enable-nls or --disable-nls was given.
2303 if test "${enable_nls+set}" = set; then
2304 enableval="$enable_nls"
2310 echo "$ac_t""$USE_NLS" 1>&6
2313 USE_INCLUDED_LIBINTL=no
2315 if test "$USE_NLS" = "yes"; then
2316 cat >> confdefs.h <<\EOF
2317 #define ENABLE_NLS 1
2320 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
2321 echo "configure:2322: checking whether included gettext is requested" >&5
2322 # Check whether --with-included-gettext or --without-included-gettext was given.
2323 if test "${with_included_gettext+set}" = set; then
2324 withval="$with_included_gettext"
2325 nls_cv_force_use_gnu_gettext=$withval
2327 nls_cv_force_use_gnu_gettext=no
2330 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
2332 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
2333 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
2335 nls_cv_header_libgt=
2338 ac_safe=`echo "libintl.h" | sed 'y%./+-%__p_%'`
2339 echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
2340 echo "configure:2341: checking for libintl.h" >&5
2341 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2342 echo $ac_n "(cached) $ac_c" 1>&6
2344 cat > conftest.$ac_ext <<EOF
2345 #line 2346 "configure"
2346 #include "confdefs.h"
2347 #include <libintl.h>
2349 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2350 { (eval echo configure:2351: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2351 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2352 if test -z "$ac_err"; then
2354 eval "ac_cv_header_$ac_safe=yes"
2357 echo "configure: failed program was:" >&5
2358 cat conftest.$ac_ext >&5
2360 eval "ac_cv_header_$ac_safe=no"
2364 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2365 echo "$ac_t""yes" 1>&6
2366 echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6
2367 echo "configure:2368: checking for gettext in libc" >&5
2368 if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then
2369 echo $ac_n "(cached) $ac_c" 1>&6
2371 cat > conftest.$ac_ext <<EOF
2372 #line 2373 "configure"
2373 #include "confdefs.h"
2374 #include <libintl.h>
2376 return (int) gettext ("")
2379 if { (eval echo configure:2380: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2381 gt_cv_func_gettext_libc=yes
2383 echo "configure: failed program was:" >&5
2384 cat conftest.$ac_ext >&5
2386 gt_cv_func_gettext_libc=no
2391 echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6
2393 if test "$gt_cv_func_gettext_libc" != "yes"; then
2394 echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6
2395 echo "configure:2396: checking for bindtextdomain in -lintl" >&5
2396 ac_lib_var=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'`
2397 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2398 echo $ac_n "(cached) $ac_c" 1>&6
2400 ac_save_LIBS="$LIBS"
2402 cat > conftest.$ac_ext <<EOF
2403 #line 2404 "configure"
2404 #include "confdefs.h"
2405 /* Override any gcc2 internal prototype to avoid an error. */
2406 /* We use char because int might match the return type of a gcc2
2407 builtin and then its argument prototype would still apply. */
2408 char bindtextdomain();
2414 if { (eval echo configure:2415: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2416 eval "ac_cv_lib_$ac_lib_var=yes"
2418 echo "configure: failed program was:" >&5
2419 cat conftest.$ac_ext >&5
2421 eval "ac_cv_lib_$ac_lib_var=no"
2424 LIBS="$ac_save_LIBS"
2427 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2428 echo "$ac_t""yes" 1>&6
2429 echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6
2430 echo "configure:2431: checking for gettext in libintl" >&5
2431 if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then
2432 echo $ac_n "(cached) $ac_c" 1>&6
2434 cat > conftest.$ac_ext <<EOF
2435 #line 2436 "configure"
2436 #include "confdefs.h"
2439 return (int) gettext ("")
2442 if { (eval echo configure:2443: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2444 gt_cv_func_gettext_libintl=yes
2446 echo "configure: failed program was:" >&5
2447 cat conftest.$ac_ext >&5
2449 gt_cv_func_gettext_libintl=no
2454 echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6
2456 echo "$ac_t""no" 1>&6
2461 if test "$gt_cv_func_gettext_libc" = "yes" \
2462 || test "$gt_cv_func_gettext_libintl" = "yes"; then
2463 cat >> confdefs.h <<\EOF
2464 #define HAVE_GETTEXT 1
2467 # Extract the first word of "msgfmt", so it can be a program name with args.
2468 set dummy msgfmt; ac_word=$2
2469 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2470 echo "configure:2471: checking for $ac_word" >&5
2471 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2472 echo $ac_n "(cached) $ac_c" 1>&6
2476 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
2479 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2480 for ac_dir in $PATH; do
2481 test -z "$ac_dir" && ac_dir=.
2482 if test -f $ac_dir/$ac_word; then
2483 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
2484 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
2490 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
2494 MSGFMT="$ac_cv_path_MSGFMT"
2495 if test -n "$MSGFMT"; then
2496 echo "$ac_t""$MSGFMT" 1>&6
2498 echo "$ac_t""no" 1>&6
2500 if test "$MSGFMT" != "no"; then
2501 for ac_func in dcgettext
2503 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2504 echo "configure:2505: checking for $ac_func" >&5
2505 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2506 echo $ac_n "(cached) $ac_c" 1>&6
2508 cat > conftest.$ac_ext <<EOF
2509 #line 2510 "configure"
2510 #include "confdefs.h"
2511 /* System header to define __stub macros and hopefully few prototypes,
2512 which can conflict with char $ac_func(); below. */
2514 /* Override any gcc2 internal prototype to avoid an error. */
2515 /* We use char because int might match the return type of a gcc2
2516 builtin and then its argument prototype would still apply. */
2521 /* The GNU C library defines this for functions which it implements
2522 to always fail with ENOSYS. Some functions are actually named
2523 something starting with __ and the normal name is an alias. */
2524 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2532 if { (eval echo configure:2533: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2534 eval "ac_cv_func_$ac_func=yes"
2536 echo "configure: failed program was:" >&5
2537 cat conftest.$ac_ext >&5
2539 eval "ac_cv_func_$ac_func=no"
2544 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2545 echo "$ac_t""yes" 1>&6
2546 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2547 cat >> confdefs.h <<EOF
2548 #define $ac_tr_func 1
2552 echo "$ac_t""no" 1>&6
2556 # Extract the first word of "gmsgfmt", so it can be a program name with args.
2557 set dummy gmsgfmt; ac_word=$2
2558 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2559 echo "configure:2560: checking for $ac_word" >&5
2560 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2561 echo $ac_n "(cached) $ac_c" 1>&6
2565 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
2568 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
2571 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2573 for ac_dir in $ac_dummy; do
2574 test -z "$ac_dir" && ac_dir=.
2575 if test -f $ac_dir/$ac_word; then
2576 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
2581 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
2585 GMSGFMT="$ac_cv_path_GMSGFMT"
2586 if test -n "$GMSGFMT"; then
2587 echo "$ac_t""$GMSGFMT" 1>&6
2589 echo "$ac_t""no" 1>&6
2592 # Extract the first word of "xgettext", so it can be a program name with args.
2593 set dummy xgettext; ac_word=$2
2594 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2595 echo "configure:2596: checking for $ac_word" >&5
2596 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
2597 echo $ac_n "(cached) $ac_c" 1>&6
2601 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
2604 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2605 for ac_dir in $PATH; do
2606 test -z "$ac_dir" && ac_dir=.
2607 if test -f $ac_dir/$ac_word; then
2608 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
2609 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
2615 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
2619 XGETTEXT="$ac_cv_path_XGETTEXT"
2620 if test -n "$XGETTEXT"; then
2621 echo "$ac_t""$XGETTEXT" 1>&6
2623 echo "$ac_t""no" 1>&6
2626 cat > conftest.$ac_ext <<EOF
2627 #line 2628 "configure"
2628 #include "confdefs.h"
2631 extern int _nl_msg_cat_cntr;
2632 return _nl_msg_cat_cntr
2635 if { (eval echo configure:2636: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2640 echo "configure: failed program was:" >&5
2641 cat conftest.$ac_ext >&5
2652 echo "$ac_t""no" 1>&6
2657 if test "$CATOBJEXT" = "NONE"; then
2658 nls_cv_use_gnu_gettext=yes
2662 if test "$nls_cv_use_gnu_gettext" = "yes"; then
2663 INTLOBJS="\$(GETTOBJS)"
2664 # Extract the first word of "msgfmt", so it can be a program name with args.
2665 set dummy msgfmt; ac_word=$2
2666 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2667 echo "configure:2668: checking for $ac_word" >&5
2668 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2669 echo $ac_n "(cached) $ac_c" 1>&6
2673 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
2676 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2677 for ac_dir in $PATH; do
2678 test -z "$ac_dir" && ac_dir=.
2679 if test -f $ac_dir/$ac_word; then
2680 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
2681 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
2687 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt"
2691 MSGFMT="$ac_cv_path_MSGFMT"
2692 if test -n "$MSGFMT"; then
2693 echo "$ac_t""$MSGFMT" 1>&6
2695 echo "$ac_t""no" 1>&6
2698 # Extract the first word of "gmsgfmt", so it can be a program name with args.
2699 set dummy gmsgfmt; ac_word=$2
2700 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2701 echo "configure:2702: checking for $ac_word" >&5
2702 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2703 echo $ac_n "(cached) $ac_c" 1>&6
2707 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
2710 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
2713 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2715 for ac_dir in $ac_dummy; do
2716 test -z "$ac_dir" && ac_dir=.
2717 if test -f $ac_dir/$ac_word; then
2718 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
2723 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
2727 GMSGFMT="$ac_cv_path_GMSGFMT"
2728 if test -n "$GMSGFMT"; then
2729 echo "$ac_t""$GMSGFMT" 1>&6
2731 echo "$ac_t""no" 1>&6
2734 # Extract the first word of "xgettext", so it can be a program name with args.
2735 set dummy xgettext; ac_word=$2
2736 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2737 echo "configure:2738: checking for $ac_word" >&5
2738 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
2739 echo $ac_n "(cached) $ac_c" 1>&6
2743 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
2746 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2747 for ac_dir in $PATH; do
2748 test -z "$ac_dir" && ac_dir=.
2749 if test -f $ac_dir/$ac_word; then
2750 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
2751 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
2757 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
2761 XGETTEXT="$ac_cv_path_XGETTEXT"
2762 if test -n "$XGETTEXT"; then
2763 echo "$ac_t""$XGETTEXT" 1>&6
2765 echo "$ac_t""no" 1>&6
2769 USE_INCLUDED_LIBINTL=yes
2773 INTLDEPS='$(top_builddir)/../intl/libintl.a'
2775 LIBS=`echo $LIBS | sed -e 's/-lintl//'`
2776 nls_cv_header_intl=libintl.h
2777 nls_cv_header_libgt=libgettext.h
2780 if test "$XGETTEXT" != ":"; then
2781 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
2784 echo "$ac_t""found xgettext programs is not GNU xgettext; ignore it" 1>&6
2789 # We need to process the po/ directory.
2793 nls_cv_header_intl=libintl.h
2794 nls_cv_header_libgt=libgettext.h
2797 # If this is used in GNU gettext we have to set USE_NLS to `yes'
2798 # because some of the sources are only built for this goal.
2799 if test "$PACKAGE" = gettext; then
2801 USE_INCLUDED_LIBINTL=yes
2804 for lang in $ALL_LINGUAS; do
2805 GMOFILES="$GMOFILES $lang.gmo"
2806 POFILES="$POFILES $lang.po"
2822 if test "x$CATOBJEXT" != "x"; then
2823 if test "x$ALL_LINGUAS" = "x"; then
2826 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
2827 echo "configure:2828: checking for catalogs to be installed" >&5
2829 for lang in ${LINGUAS=$ALL_LINGUAS}; do
2830 case "$ALL_LINGUAS" in
2831 *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
2834 LINGUAS=$NEW_LINGUAS
2835 echo "$ac_t""$LINGUAS" 1>&6
2838 if test -n "$LINGUAS"; then
2839 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
2843 if test $ac_cv_header_locale_h = yes; then
2844 INCLUDE_LOCALE_H="#include <locale.h>"
2847 /* The system does not provide the header <locale.h>. Take care yourself. */"
2851 if test -f $srcdir/po2tbl.sed.in; then
2852 if test "$CATOBJEXT" = ".cat"; then
2853 ac_safe=`echo "linux/version.h" | sed 'y%./+-%__p_%'`
2854 echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6
2855 echo "configure:2856: checking for linux/version.h" >&5
2856 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2857 echo $ac_n "(cached) $ac_c" 1>&6
2859 cat > conftest.$ac_ext <<EOF
2860 #line 2861 "configure"
2861 #include "confdefs.h"
2862 #include <linux/version.h>
2864 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2865 { (eval echo configure:2866: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2866 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2867 if test -z "$ac_err"; then
2869 eval "ac_cv_header_$ac_safe=yes"
2872 echo "configure: failed program was:" >&5
2873 cat conftest.$ac_ext >&5
2875 eval "ac_cv_header_$ac_safe=no"
2879 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2880 echo "$ac_t""yes" 1>&6
2883 echo "$ac_t""no" 1>&6
2888 sed -e '/^#/d' $srcdir/$msgformat-msg.sed > po2msg.sed
2890 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
2891 $srcdir/po2tbl.sed.in > po2tbl.sed
2894 if test "$PACKAGE" = "gettext"; then
2904 MKINSTALLDIRS="\$(srcdir)/../../mkinstalldirs"
2910 if test -d $srcdir/po; then
2911 test -d po || mkdir po
2912 if test "x$srcdir" != "x."; then
2913 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
2914 posrcprefix="$srcdir/"
2916 posrcprefix="../$srcdir/"
2922 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
2923 < $srcdir/po/POTFILES.in > po/POTFILES
2927 # Check for common headers.
2928 # FIXME: Seems to me this can cause problems for i386-windows hosts.
2929 # At one point there were hardcoded AC_DEFINE's if ${host} = i386-*-windows*.
2930 for ac_hdr in stdlib.h string.h strings.h unistd.h time.h
2932 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2933 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2934 echo "configure:2935: checking for $ac_hdr" >&5
2935 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2936 echo $ac_n "(cached) $ac_c" 1>&6
2938 cat > conftest.$ac_ext <<EOF
2939 #line 2940 "configure"
2940 #include "confdefs.h"
2943 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2944 { (eval echo configure:2945: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2945 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2946 if test -z "$ac_err"; then
2948 eval "ac_cv_header_$ac_safe=yes"
2951 echo "configure: failed program was:" >&5
2952 cat conftest.$ac_ext >&5
2954 eval "ac_cv_header_$ac_safe=no"
2958 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2959 echo "$ac_t""yes" 1>&6
2960 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2961 cat >> confdefs.h <<EOF
2962 #define $ac_tr_hdr 1
2966 echo "$ac_t""no" 1>&6
2970 for ac_hdr in sys/time.h sys/resource.h
2972 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2973 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2974 echo "configure:2975: checking for $ac_hdr" >&5
2975 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2976 echo $ac_n "(cached) $ac_c" 1>&6
2978 cat > conftest.$ac_ext <<EOF
2979 #line 2980 "configure"
2980 #include "confdefs.h"
2983 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2984 { (eval echo configure:2985: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2985 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2986 if test -z "$ac_err"; then
2988 eval "ac_cv_header_$ac_safe=yes"
2991 echo "configure: failed program was:" >&5
2992 cat conftest.$ac_ext >&5
2994 eval "ac_cv_header_$ac_safe=no"
2998 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2999 echo "$ac_t""yes" 1>&6
3000 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3001 cat >> confdefs.h <<EOF
3002 #define $ac_tr_hdr 1
3006 echo "$ac_t""no" 1>&6
3010 for ac_hdr in fcntl.h fpu_control.h
3012 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3013 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3014 echo "configure:3015: checking for $ac_hdr" >&5
3015 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3016 echo $ac_n "(cached) $ac_c" 1>&6
3018 cat > conftest.$ac_ext <<EOF
3019 #line 3020 "configure"
3020 #include "confdefs.h"
3023 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3024 { (eval echo configure:3025: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3025 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3026 if test -z "$ac_err"; then
3028 eval "ac_cv_header_$ac_safe=yes"
3031 echo "configure: failed program was:" >&5
3032 cat conftest.$ac_ext >&5
3034 eval "ac_cv_header_$ac_safe=no"
3038 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3039 echo "$ac_t""yes" 1>&6
3040 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3041 cat >> confdefs.h <<EOF
3042 #define $ac_tr_hdr 1
3046 echo "$ac_t""no" 1>&6
3050 for ac_hdr in dlfcn.h errno.h sys/stat.h
3052 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3053 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3054 echo "configure:3055: checking for $ac_hdr" >&5
3055 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3056 echo $ac_n "(cached) $ac_c" 1>&6
3058 cat > conftest.$ac_ext <<EOF
3059 #line 3060 "configure"
3060 #include "confdefs.h"
3063 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3064 { (eval echo configure:3065: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3065 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3066 if test -z "$ac_err"; then
3068 eval "ac_cv_header_$ac_safe=yes"
3071 echo "configure: failed program was:" >&5
3072 cat conftest.$ac_ext >&5
3074 eval "ac_cv_header_$ac_safe=no"
3078 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3079 echo "$ac_t""yes" 1>&6
3080 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3081 cat >> confdefs.h <<EOF
3082 #define $ac_tr_hdr 1
3086 echo "$ac_t""no" 1>&6
3090 for ac_func in getrusage time sigaction __setfpucw
3092 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3093 echo "configure:3094: checking for $ac_func" >&5
3094 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3095 echo $ac_n "(cached) $ac_c" 1>&6
3097 cat > conftest.$ac_ext <<EOF
3098 #line 3099 "configure"
3099 #include "confdefs.h"
3100 /* System header to define __stub macros and hopefully few prototypes,
3101 which can conflict with char $ac_func(); below. */
3103 /* Override any gcc2 internal prototype to avoid an error. */
3104 /* We use char because int might match the return type of a gcc2
3105 builtin and then its argument prototype would still apply. */
3110 /* The GNU C library defines this for functions which it implements
3111 to always fail with ENOSYS. Some functions are actually named
3112 something starting with __ and the normal name is an alias. */
3113 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3121 if { (eval echo configure:3122: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3123 eval "ac_cv_func_$ac_func=yes"
3125 echo "configure: failed program was:" >&5
3126 cat conftest.$ac_ext >&5
3128 eval "ac_cv_func_$ac_func=no"
3133 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3134 echo "$ac_t""yes" 1>&6
3135 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3136 cat >> confdefs.h <<EOF
3137 #define $ac_tr_func 1
3141 echo "$ac_t""no" 1>&6
3146 # Check for socket libraries
3147 echo $ac_n "checking for bind in -lsocket""... $ac_c" 1>&6
3148 echo "configure:3149: checking for bind in -lsocket" >&5
3149 ac_lib_var=`echo socket'_'bind | sed 'y%./+-%__p_%'`
3150 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3151 echo $ac_n "(cached) $ac_c" 1>&6
3153 ac_save_LIBS="$LIBS"
3154 LIBS="-lsocket $LIBS"
3155 cat > conftest.$ac_ext <<EOF
3156 #line 3157 "configure"
3157 #include "confdefs.h"
3158 /* Override any gcc2 internal prototype to avoid an error. */
3159 /* We use char because int might match the return type of a gcc2
3160 builtin and then its argument prototype would still apply. */
3167 if { (eval echo configure:3168: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3169 eval "ac_cv_lib_$ac_lib_var=yes"
3171 echo "configure: failed program was:" >&5
3172 cat conftest.$ac_ext >&5
3174 eval "ac_cv_lib_$ac_lib_var=no"
3177 LIBS="$ac_save_LIBS"
3180 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3181 echo "$ac_t""yes" 1>&6
3182 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3183 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3184 cat >> confdefs.h <<EOF
3185 #define $ac_tr_lib 1
3188 LIBS="-lsocket $LIBS"
3191 echo "$ac_t""no" 1>&6
3194 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
3195 echo "configure:3196: checking for gethostbyname in -lnsl" >&5
3196 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
3197 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3198 echo $ac_n "(cached) $ac_c" 1>&6
3200 ac_save_LIBS="$LIBS"
3202 cat > conftest.$ac_ext <<EOF
3203 #line 3204 "configure"
3204 #include "confdefs.h"
3205 /* Override any gcc2 internal prototype to avoid an error. */
3206 /* We use char because int might match the return type of a gcc2
3207 builtin and then its argument prototype would still apply. */
3208 char gethostbyname();
3214 if { (eval echo configure:3215: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3216 eval "ac_cv_lib_$ac_lib_var=yes"
3218 echo "configure: failed program was:" >&5
3219 cat conftest.$ac_ext >&5
3221 eval "ac_cv_lib_$ac_lib_var=no"
3224 LIBS="$ac_save_LIBS"
3227 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3228 echo "$ac_t""yes" 1>&6
3229 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3230 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3231 cat >> confdefs.h <<EOF
3232 #define $ac_tr_lib 1
3238 echo "$ac_t""no" 1>&6
3242 . ${srcdir}/../../bfd/configure.host
3246 USE_MAINTAINER_MODE=no
3247 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
3248 if test "${enable_maintainer_mode+set}" = set; then
3249 enableval="$enable_maintainer_mode"
3250 case "${enableval}" in
3251 yes) MAINT="" USE_MAINTAINER_MODE=yes ;;
3253 *) { echo "configure: error: "--enable-maintainer-mode does not take a value"" 1>&2; exit 1; }; MAINT="#" ;;
3255 if test x"$silent" != x"yes" && test x"$MAINT" = x""; then
3256 echo "Setting maintainer mode" 6>&1
3264 # Check whether --enable-sim-bswap or --disable-sim-bswap was given.
3265 if test "${enable_sim_bswap+set}" = set; then
3266 enableval="$enable_sim_bswap"
3267 case "${enableval}" in
3268 yes) sim_bswap="-DWITH_BSWAP=1 -DUSE_BSWAP=1";;
3269 no) sim_bswap="-DWITH_BSWAP=0";;
3270 *) { echo "configure: error: "--enable-sim-bswap does not take a value"" 1>&2; exit 1; }; sim_bswap="";;
3272 if test x"$silent" != x"yes" && test x"$sim_bswap" != x""; then
3273 echo "Setting bswap flags = $sim_bswap" 6>&1
3281 # Check whether --enable-sim-cflags or --disable-sim-cflags was given.
3282 if test "${enable_sim_cflags+set}" = set; then
3283 enableval="$enable_sim_cflags"
3284 case "${enableval}" in
3285 yes) sim_cflags="-O2 -fomit-frame-pointer";;
3286 trace) { echo "configure: error: "Please use --enable-sim-debug instead."" 1>&2; exit 1; }; sim_cflags="";;
3288 *) sim_cflags=`echo "${enableval}" | sed -e "s/,/ /g"`;;
3290 if test x"$silent" != x"yes" && test x"$sim_cflags" != x""; then
3291 echo "Setting sim cflags = $sim_cflags" 6>&1
3299 # Check whether --enable-sim-debug or --disable-sim-debug was given.
3300 if test "${enable_sim_debug+set}" = set; then
3301 enableval="$enable_sim_debug"
3302 case "${enableval}" in
3303 yes) sim_debug="-DDEBUG=7 -DWITH_DEBUG=7";;
3304 no) sim_debug="-DDEBUG=0 -DWITH_DEBUG=0";;
3305 *) sim_debug="-DDEBUG='(${enableval})' -DWITH_DEBUG='(${enableval})'";;
3307 if test x"$silent" != x"yes" && test x"$sim_debug" != x""; then
3308 echo "Setting sim debug = $sim_debug" 6>&1
3316 # Check whether --enable-sim-stdio or --disable-sim-stdio was given.
3317 if test "${enable_sim_stdio+set}" = set; then
3318 enableval="$enable_sim_stdio"
3319 case "${enableval}" in
3320 yes) sim_stdio="-DWITH_STDIO=DO_USE_STDIO";;
3321 no) sim_stdio="-DWITH_STDIO=DONT_USE_STDIO";;
3322 *) { echo "configure: error: "Unknown value $enableval passed to --enable-sim-stdio"" 1>&2; exit 1; }; sim_stdio="";;
3324 if test x"$silent" != x"yes" && test x"$sim_stdio" != x""; then
3325 echo "Setting stdio flags = $sim_stdio" 6>&1
3333 # Check whether --enable-sim-trace or --disable-sim-trace was given.
3334 if test "${enable_sim_trace+set}" = set; then
3335 enableval="$enable_sim_trace"
3336 case "${enableval}" in
3337 yes) sim_trace="-DTRACE=1 -DWITH_TRACE=-1";;
3338 no) sim_trace="-DTRACE=0 -DWITH_TRACE=0";;
3340 sim_trace="-DTRACE='(${enableval})' -DWITH_TRACE='(${enableval})'";;
3343 for x in `echo "$enableval" | sed -e "s/,/ /g"`; do
3344 if test x"$sim_trace" = x; then
3345 sim_trace="-DWITH_TRACE='(TRACE_$x"
3347 sim_trace="${sim_trace}|TRACE_$x"
3350 sim_trace="$sim_trace)'" ;;
3352 if test x"$silent" != x"yes" && test x"$sim_trace" != x""; then
3353 echo "Setting sim trace = $sim_trace" 6>&1
3361 # Check whether --enable-sim-profile or --disable-sim-profile was given.
3362 if test "${enable_sim_profile+set}" = set; then
3363 enableval="$enable_sim_profile"
3364 case "${enableval}" in
3365 yes) sim_profile="-DPROFILE=1 -DWITH_PROFILE=-1";;
3366 no) sim_profile="-DPROFILE=0 -DWITH_PROFILE=0";;
3368 sim_profile="-DPROFILE='(${enableval})' -DWITH_PROFILE='(${enableval})'";;
3371 for x in `echo "$enableval" | sed -e "s/,/ /g"`; do
3372 if test x"$sim_profile" = x; then
3373 sim_profile="-DWITH_PROFILE='(PROFILE_$x"
3375 sim_profile="${sim_profile}|PROFILE_$x"
3378 sim_profile="$sim_profile)'" ;;
3380 if test x"$silent" != x"yes" && test x"$sim_profile" != x""; then
3381 echo "Setting sim profile = $sim_profile" 6>&1
3389 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
3390 echo "configure:3391: checking return type of signal handlers" >&5
3391 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
3392 echo $ac_n "(cached) $ac_c" 1>&6
3394 cat > conftest.$ac_ext <<EOF
3395 #line 3396 "configure"
3396 #include "confdefs.h"
3397 #include <sys/types.h>
3403 extern "C" void (*signal (int, void (*)(int)))(int);
3405 void (*signal ()) ();
3412 if { (eval echo configure:3413: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3414 ac_cv_type_signal=void
3416 echo "configure: failed program was:" >&5
3417 cat conftest.$ac_ext >&5
3419 ac_cv_type_signal=int
3424 echo "$ac_t""$ac_cv_type_signal" 1>&6
3425 cat >> confdefs.h <<EOF
3426 #define RETSIGTYPE $ac_cv_type_signal
3433 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
3434 echo "configure:3435: checking for executable suffix" >&5
3435 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
3436 echo $ac_n "(cached) $ac_c" 1>&6
3438 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
3442 echo 'int main () { return 0; }' > conftest.$ac_ext
3444 if { (eval echo configure:3445: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
3445 for file in conftest.*; do
3447 *.c | *.o | *.obj) ;;
3448 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
3452 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
3455 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
3460 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
3461 echo "$ac_t""${ac_cv_exeext}" 1>&6
3468 sim_link_links=tconfig.h
3469 if test -f ${srcdir}/tconfig.in
3471 sim_link_files=tconfig.in
3473 sim_link_files=../common/tconfig.in
3476 # targ-vals.def points to the libc macro description file.
3478 *-*-*) TARG_VALS_DEF=../common/nltvals.def ;;
3480 sim_link_files="${sim_link_files} ${TARG_VALS_DEF}"
3481 sim_link_links="${sim_link_links} targ-vals.def"
3485 for ac_hdr in stdlib.h
3487 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3488 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3489 echo "configure:3490: checking for $ac_hdr" >&5
3490 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3491 echo $ac_n "(cached) $ac_c" 1>&6
3493 cat > conftest.$ac_ext <<EOF
3494 #line 3495 "configure"
3495 #include "confdefs.h"
3498 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3499 { (eval echo configure:3500: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3500 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3501 if test -z "$ac_err"; then
3503 eval "ac_cv_header_$ac_safe=yes"
3506 echo "configure: failed program was:" >&5
3507 cat conftest.$ac_ext >&5
3509 eval "ac_cv_header_$ac_safe=no"
3513 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3514 echo "$ac_t""yes" 1>&6
3515 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3516 cat >> confdefs.h <<EOF
3517 #define $ac_tr_hdr 1
3521 echo "$ac_t""no" 1>&6
3526 # In the Cygwin environment, we need some additional flags.
3527 echo $ac_n "checking for cygwin""... $ac_c" 1>&6
3528 echo "configure:3529: checking for cygwin" >&5
3529 if eval "test \"`echo '$''{'sim_cv_os_cygwin'+set}'`\" = set"; then
3530 echo $ac_n "(cached) $ac_c" 1>&6
3532 cat > conftest.$ac_ext <<EOF
3533 #line 3534 "configure"
3534 #include "confdefs.h"
3540 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3541 egrep "lose" >/dev/null 2>&1; then
3543 sim_cv_os_cygwin=yes
3552 echo "$ac_t""$sim_cv_os_cygwin" 1>&6
3554 if test x$sim_cv_os_cygwin = xyes; then
3555 TERMCAP='`if test -r ../../libtermcap/libtermcap.a; then echo ../../libtermcap/libtermcap.a; else echo -ltermcap; fi` -luser32'
3557 echo $ac_n "checking for main in -ltermcap""... $ac_c" 1>&6
3558 echo "configure:3559: checking for main in -ltermcap" >&5
3559 ac_lib_var=`echo termcap'_'main | sed 'y%./+-%__p_%'`
3560 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3561 echo $ac_n "(cached) $ac_c" 1>&6
3563 ac_save_LIBS="$LIBS"
3564 LIBS="-ltermcap $LIBS"
3565 cat > conftest.$ac_ext <<EOF
3566 #line 3567 "configure"
3567 #include "confdefs.h"
3573 if { (eval echo configure:3574: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3575 eval "ac_cv_lib_$ac_lib_var=yes"
3577 echo "configure: failed program was:" >&5
3578 cat conftest.$ac_ext >&5
3580 eval "ac_cv_lib_$ac_lib_var=no"
3583 LIBS="$ac_save_LIBS"
3586 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3587 echo "$ac_t""yes" 1>&6
3590 echo "$ac_t""no" 1>&6
3600 cat > confcache <<\EOF
3601 # This file is a shell script that caches the results of configure
3602 # tests run on this system so they can be shared between configure
3603 # scripts and configure runs. It is not useful on other systems.
3604 # If it contains results you don't want to keep, you may remove or edit it.
3606 # By default, configure uses ./config.cache as the cache file,
3607 # creating it if it does not exist already. You can give configure
3608 # the --cache-file=FILE option to use a different cache file; that is
3609 # what configure does when it calls configure scripts in
3610 # subdirectories, so they share the cache.
3611 # Giving --cache-file=/dev/null disables caching, for debugging configure.
3612 # config.status only pays attention to the cache file if you give it the
3613 # --recheck option to rerun configure.
3616 # The following way of writing the cache mishandles newlines in values,
3617 # but we know of no workaround that is simple, portable, and efficient.
3618 # So, don't put newlines in cache variables' values.
3619 # Ultrix sh set writes to stderr and can't be redirected directly,
3620 # and sets the high bit in the cache file unless we assign to the vars.
3622 case `(ac_space=' '; set | grep ac_space) 2>&1` in
3624 # `set' does not quote correctly, so add quotes (double-quote substitution
3625 # turns \\\\ into \\, and sed turns \\ into \).
3627 -e "s/'/'\\\\''/g" \
3628 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
3631 # `set' quotes correctly as required by POSIX, so do not add quotes.
3632 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
3635 if cmp -s $cache_file confcache; then
3638 if test -w $cache_file; then
3639 echo "updating cache $cache_file"
3640 cat confcache > $cache_file
3642 echo "not updating unwritable cache $cache_file"
3647 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
3649 test "x$prefix" = xNONE && prefix=$ac_default_prefix
3650 # Let make expand exec_prefix.
3651 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3653 # Any assignment to VPATH causes Sun make to only execute
3654 # the first set of double-colon rules, so remove it if not needed.
3655 # If there is a colon in the path, we need to keep it.
3656 if test "x$srcdir" = x.; then
3657 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
3660 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
3662 DEFS=-DHAVE_CONFIG_H
3664 # Without the "./", some shells look in PATH for config.status.
3665 : ${CONFIG_STATUS=./config.status}
3667 echo creating $CONFIG_STATUS
3668 rm -f $CONFIG_STATUS
3669 cat > $CONFIG_STATUS <<EOF
3671 # Generated automatically by configure.
3672 # Run this file to recreate the current configuration.
3673 # This directory was configured as follows,
3674 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
3676 # $0 $ac_configure_args
3678 # Compiler output produced by configure, useful for debugging
3679 # configure, is in ./config.log if it exists.
3681 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
3684 case "\$ac_option" in
3685 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3686 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
3687 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
3688 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
3689 echo "$CONFIG_STATUS generated by autoconf version 2.13"
3691 -help | --help | --hel | --he | --h)
3692 echo "\$ac_cs_usage"; exit 0 ;;
3693 *) echo "\$ac_cs_usage"; exit 1 ;;
3697 ac_given_srcdir=$srcdir
3698 ac_given_INSTALL="$INSTALL"
3700 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
3702 cat >> $CONFIG_STATUS <<EOF
3704 # Protect against being on the right side of a sed subst in config.status.
3705 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
3706 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
3709 s%@sim_environment@%$sim_environment%g
3710 s%@sim_alignment@%$sim_alignment%g
3711 s%@sim_assert@%$sim_assert%g
3712 s%@sim_bitsize@%$sim_bitsize%g
3713 s%@sim_endian@%$sim_endian%g
3714 s%@sim_hostendian@%$sim_hostendian%g
3715 s%@sim_float@%$sim_float%g
3716 s%@sim_scache@%$sim_scache%g
3717 s%@sim_default_model@%$sim_default_model%g
3718 s%@sim_hw_cflags@%$sim_hw_cflags%g
3719 s%@sim_hw_objs@%$sim_hw_objs%g
3720 s%@sim_hw@%$sim_hw%g
3721 s%@sim_inline@%$sim_inline%g
3722 s%@sim_packages@%$sim_packages%g
3723 s%@sim_regparm@%$sim_regparm%g
3724 s%@sim_reserved_bits@%$sim_reserved_bits%g
3725 s%@sim_smp@%$sim_smp%g
3726 s%@sim_stdcall@%$sim_stdcall%g
3727 s%@sim_xor_endian@%$sim_xor_endian%g
3728 s%@WARN_CFLAGS@%$WARN_CFLAGS%g
3729 s%@WERROR_CFLAGS@%$WERROR_CFLAGS%g
3731 s%@CFLAGS@%$CFLAGS%g
3732 s%@CPPFLAGS@%$CPPFLAGS%g
3733 s%@CXXFLAGS@%$CXXFLAGS%g
3734 s%@FFLAGS@%$FFLAGS%g
3736 s%@LDFLAGS@%$LDFLAGS%g
3738 s%@exec_prefix@%$exec_prefix%g
3739 s%@prefix@%$prefix%g
3740 s%@program_transform_name@%$program_transform_name%g
3741 s%@bindir@%$bindir%g
3742 s%@sbindir@%$sbindir%g
3743 s%@libexecdir@%$libexecdir%g
3744 s%@datadir@%$datadir%g
3745 s%@sysconfdir@%$sysconfdir%g
3746 s%@sharedstatedir@%$sharedstatedir%g
3747 s%@localstatedir@%$localstatedir%g
3748 s%@libdir@%$libdir%g
3749 s%@includedir@%$includedir%g
3750 s%@oldincludedir@%$oldincludedir%g
3751 s%@infodir@%$infodir%g
3752 s%@mandir@%$mandir%g
3754 s%@host_alias@%$host_alias%g
3755 s%@host_cpu@%$host_cpu%g
3756 s%@host_vendor@%$host_vendor%g
3757 s%@host_os@%$host_os%g
3758 s%@target@%$target%g
3759 s%@target_alias@%$target_alias%g
3760 s%@target_cpu@%$target_cpu%g
3761 s%@target_vendor@%$target_vendor%g
3762 s%@target_os@%$target_os%g
3764 s%@build_alias@%$build_alias%g
3765 s%@build_cpu@%$build_cpu%g
3766 s%@build_vendor@%$build_vendor%g
3767 s%@build_os@%$build_os%g
3769 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
3770 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
3771 s%@INSTALL_DATA@%$INSTALL_DATA%g
3772 s%@CC_FOR_BUILD@%$CC_FOR_BUILD%g
3773 s%@HDEFINES@%$HDEFINES%g
3775 s%@RANLIB@%$RANLIB%g
3776 s%@SET_MAKE@%$SET_MAKE%g
3778 s%@ALLOCA@%$ALLOCA%g
3779 s%@USE_NLS@%$USE_NLS%g
3780 s%@MSGFMT@%$MSGFMT%g
3781 s%@GMSGFMT@%$GMSGFMT%g
3782 s%@XGETTEXT@%$XGETTEXT%g
3783 s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
3784 s%@CATALOGS@%$CATALOGS%g
3785 s%@CATOBJEXT@%$CATOBJEXT%g
3786 s%@DATADIRNAME@%$DATADIRNAME%g
3787 s%@GMOFILES@%$GMOFILES%g
3788 s%@INSTOBJEXT@%$INSTOBJEXT%g
3789 s%@INTLDEPS@%$INTLDEPS%g
3790 s%@INTLLIBS@%$INTLLIBS%g
3791 s%@INTLOBJS@%$INTLOBJS%g
3792 s%@POFILES@%$POFILES%g
3794 s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g
3796 s%@GT_YES@%$GT_YES%g
3797 s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
3800 s%@sim_bswap@%$sim_bswap%g
3801 s%@sim_cflags@%$sim_cflags%g
3802 s%@sim_debug@%$sim_debug%g
3803 s%@sim_stdio@%$sim_stdio%g
3804 s%@sim_trace@%$sim_trace%g
3805 s%@sim_profile@%$sim_profile%g
3806 s%@EXEEXT@%$EXEEXT%g
3807 s%@TERMCAP@%$TERMCAP%g
3812 cat >> $CONFIG_STATUS <<\EOF
3814 # Split the substitutions into bite-sized pieces for seds with
3815 # small command number limits, like on Digital OSF/1 and HP-UX.
3816 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
3817 ac_file=1 # Number of current file.
3818 ac_beg=1 # First line for current file.
3819 ac_end=$ac_max_sed_cmds # Line after last line for current file.
3822 while $ac_more_lines; do
3823 if test $ac_beg -gt 1; then
3824 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
3826 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
3828 if test ! -s conftest.s$ac_file; then
3830 rm -f conftest.s$ac_file
3832 if test -z "$ac_sed_cmds"; then
3833 ac_sed_cmds="sed -f conftest.s$ac_file"
3835 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
3837 ac_file=`expr $ac_file + 1`
3839 ac_end=`expr $ac_end + $ac_max_sed_cmds`
3842 if test -z "$ac_sed_cmds"; then
3847 cat >> $CONFIG_STATUS <<EOF
3849 CONFIG_FILES=\${CONFIG_FILES-"Makefile.sim:Makefile.in Make-common.sim:../common/Make-common.in .gdbinit:../common/gdbinit.in"}
3851 cat >> $CONFIG_STATUS <<\EOF
3852 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
3853 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3855 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3856 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3857 *) ac_file_in="${ac_file}.in" ;;
3860 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
3862 # Remove last slash and all that follows it. Not all systems have dirname.
3863 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3864 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3865 # The file is in a subdirectory.
3866 test ! -d "$ac_dir" && mkdir "$ac_dir"
3867 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
3868 # A "../" for each directory in $ac_dir_suffix.
3869 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
3871 ac_dir_suffix= ac_dots=
3874 case "$ac_given_srcdir" in
3876 if test -z "$ac_dots"; then top_srcdir=.
3877 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
3878 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
3880 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
3881 top_srcdir="$ac_dots$ac_given_srcdir" ;;
3884 case "$ac_given_INSTALL" in
3885 [/$]*) INSTALL="$ac_given_INSTALL" ;;
3886 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
3889 echo creating "$ac_file"
3891 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
3893 *Makefile*) ac_comsub="1i\\
3894 # $configure_input" ;;
3898 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3900 s%@configure_input@%$configure_input%g
3901 s%@srcdir@%$srcdir%g
3902 s%@top_srcdir@%$top_srcdir%g
3903 s%@INSTALL@%$INSTALL%g
3904 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
3908 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
3909 # NAME is the cpp macro being defined and VALUE is the value it is being given.
3911 # ac_d sets the value in "#define NAME VALUE" lines.
3912 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
3913 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
3916 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
3917 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3918 ac_uB='\([ ]\)%\1#\2define\3'
3921 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
3922 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3923 ac_eB='$%\1#\2define\3'
3927 if test "${CONFIG_HEADERS+set}" != set; then
3929 cat >> $CONFIG_STATUS <<EOF
3930 CONFIG_HEADERS="config.h:config.in"
3932 cat >> $CONFIG_STATUS <<\EOF
3934 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
3935 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3937 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3938 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3939 *) ac_file_in="${ac_file}.in" ;;
3942 echo creating $ac_file
3944 rm -f conftest.frag conftest.in conftest.out
3945 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3946 cat $ac_file_inputs > conftest.in
3950 # Transform confdefs.h into a sed script conftest.vals that substitutes
3951 # the proper values into config.h.in to produce config.h. And first:
3952 # Protect against being on the right side of a sed subst in config.status.
3953 # Protect against being in an unquoted here document in config.status.
3955 cat > conftest.hdr <<\EOF
3958 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
3962 sed -n -f conftest.hdr confdefs.h > conftest.vals
3965 # This sed command replaces #undef with comments. This is necessary, for
3966 # example, in the case of _POSIX_SOURCE, which is predefined and required
3967 # on some systems where configure will not decide to define it.
3968 cat >> conftest.vals <<\EOF
3969 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
3972 # Break up conftest.vals because some shells have a limit on
3973 # the size of here documents, and old seds have small limits too.
3978 ac_lines=`grep -c . conftest.vals`
3979 # grep -c gives empty output for an empty file on some AIX systems.
3980 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
3981 # Write a limited-size here document to conftest.frag.
3982 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
3983 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
3985 sed -f conftest.frag conftest.in > conftest.out
3987 mv conftest.out conftest.in
3989 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
3991 mv conftest.tail conftest.vals
3995 cat >> $CONFIG_STATUS <<\EOF
3996 rm -f conftest.frag conftest.h
3997 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
3998 cat conftest.in >> conftest.h
4000 if cmp -s $ac_file conftest.h 2>/dev/null; then
4001 echo "$ac_file is unchanged"
4004 # Remove last slash and all that follows it. Not all systems have dirname.
4005 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
4006 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
4007 # The file is in a subdirectory.
4008 test ! -d "$ac_dir" && mkdir "$ac_dir"
4011 mv conftest.h $ac_file
4017 cat >> $CONFIG_STATUS <<EOF
4018 ac_sources="$sim_link_files"
4019 ac_dests="$sim_link_links"
4022 cat >> $CONFIG_STATUS <<\EOF
4023 srcdir=$ac_given_srcdir
4024 while test -n "$ac_sources"; do
4025 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
4026 set $ac_sources; ac_source=$1; shift; ac_sources=$*
4028 echo "linking $srcdir/$ac_source to $ac_dest"
4030 if test ! -r $srcdir/$ac_source; then
4031 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
4035 # Make relative symlinks.
4036 # Remove last slash and all that follows it. Not all systems have dirname.
4037 ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'`
4038 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
4039 # The dest file is in a subdirectory.
4040 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
4041 ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`"
4042 # A "../" for each directory in $ac_dest_dir_suffix.
4043 ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'`
4045 ac_dest_dir_suffix= ac_dots=
4049 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
4050 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
4053 # Make a symlink if possible; otherwise try a hard link.
4054 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
4055 ln $srcdir/$ac_source $ac_dest; then :
4057 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
4061 cat >> $CONFIG_STATUS <<EOF
4064 cat >> $CONFIG_STATUS <<\EOF
4065 case "x$CONFIG_FILES" in
4067 echo "Merging Makefile.sim+Make-common.sim into Makefile ..."
4068 rm -f Makesim1.tmp Makesim2.tmp Makefile
4069 sed -n -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ p' <Make-common.sim >Makesim1.tmp
4070 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >Makesim2.tmp
4071 sed -e '/^## COMMON_PRE_/ r Makesim1.tmp' \
4072 -e '/^## COMMON_POST_/ r Makesim2.tmp' \
4073 <Makefile.sim >Makefile
4074 rm -f Makefile.sim Make-common.sim Makesim1.tmp Makesim2.tmp
4077 case "x$CONFIG_HEADERS" in xconfig.h:config.in) echo > stamp-h ;; esac
4081 chmod +x $CONFIG_STATUS
4082 rm -fr confdefs* $ac_clean_files
4083 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1