45 sim_inline="-DDEFAULT_INLINE=0"
81 # This file is derived from `gettext.m4'. The difference is that the
82 # included macros assume Cygnus-style source and build trees.
84 # Macro to add for using GNU gettext.
85 # Ulrich Drepper <drepper@cygnus.com>, 1995.
87 # This file file be copied and used freely without restrictions. It can
88 # be used in projects which are not available under the GNU Public License
89 # but which still want to provide support for the GNU gettext functionality.
90 # Please note that the actual code is *not* freely available.
98 # Search path for a program which passes the given test.
99 # Ulrich Drepper <drepper@cygnus.com>, 1996.
101 # This file file be copied and used freely without restrictions. It can
102 # be used in projects which are not available under the GNU Public License
103 # but which still want to provide support for the GNU gettext functionality.
104 # Please note that the actual code is *not* freely available.
110 # Check whether LC_MESSAGES is available in <locale.h>.
111 # Ulrich Drepper <drepper@cygnus.com>, 1995.
113 # This file file be copied and used freely without restrictions. It can
114 # be used in projects which are not available under the GNU Public License
115 # but which still want to provide support for the GNU gettext functionality.
116 # Please note that the actual code is *not* freely available.
122 # Guess values for system-dependent variables and create Makefiles.
123 # Generated automatically using autoconf version 2.12.1
124 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
126 # This configure script is free software; the Free Software Foundation
127 # gives unlimited permission to copy, distribute and modify it.
131 ac_default_prefix=/usr/local
132 # Any additions from configure.in:
134 --disable-nls do not use Native Language Support"
136 --with-included-gettext use the GNU gettext library included here"
138 --enable-maintainer-mode Enable developer functionality."
140 --enable-sim-bswap Use Host specific BSWAP instruction."
142 --enable-sim-cflags=opts Extra CFLAGS for use in building simulator"
144 --enable-sim-debug=opts Enable debugging flags"
146 --enable-sim-stdio Specify whether to use stdio for console input/output."
148 --enable-sim-trace=opts Enable tracing flags"
150 --enable-sim-profile=opts Enable profiling flags"
152 --enable-sim-warnings=opts Extra CFLAGS for turning on compiler warnings"
154 # Initialize some variables set by options.
155 # The variables have the same names as the options, with
156 # dashes changed to underlines.
158 cache_file=./config.cache
167 program_transform_name=s,x,x,
175 bindir='${exec_prefix}/bin'
176 sbindir='${exec_prefix}/sbin'
177 libexecdir='${exec_prefix}/libexec'
178 datadir='${prefix}/share'
179 sysconfdir='${prefix}/etc'
180 sharedstatedir='${prefix}/com'
181 localstatedir='${prefix}/var'
182 libdir='${exec_prefix}/lib'
183 includedir='${prefix}/include'
184 oldincludedir='/usr/include'
185 infodir='${prefix}/info'
186 mandir='${prefix}/man'
188 # Initialize some other variables.
191 SHELL=${CONFIG_SHELL-/bin/sh}
192 # Maximum number of lines to put in a shell here document.
199 # If the previous option needs an argument, assign it.
200 if test -n "$ac_prev"; then
201 eval "$ac_prev=\$ac_option"
207 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
211 # Accept the important Cygnus configure options, so we can diagnose typos.
215 -bindir | --bindir | --bindi | --bind | --bin | --bi)
217 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
218 bindir="$ac_optarg" ;;
220 -build | --build | --buil | --bui | --bu)
222 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
223 build="$ac_optarg" ;;
225 -cache-file | --cache-file | --cache-fil | --cache-fi \
226 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
227 ac_prev=cache_file ;;
228 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
229 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
230 cache_file="$ac_optarg" ;;
232 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
234 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
236 datadir="$ac_optarg" ;;
238 -disable-* | --disable-*)
239 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
240 # Reject names that are not valid shell variable names.
241 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
242 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
244 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
245 eval "enable_${ac_feature}=no" ;;
247 -enable-* | --enable-*)
248 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
249 # Reject names that are not valid shell variable names.
250 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
251 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
253 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
258 eval "enable_${ac_feature}='$ac_optarg'" ;;
260 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
261 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
262 | --exec | --exe | --ex)
263 ac_prev=exec_prefix ;;
264 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
265 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
266 | --exec=* | --exe=* | --ex=*)
267 exec_prefix="$ac_optarg" ;;
269 -gas | --gas | --ga | --g)
270 # Obsolete; use --with-gas.
273 -help | --help | --hel | --he)
274 # Omit some internal or obsolete options to make the list less imposing.
275 # This message is too long to be a string in the A/UX 3.1 sh.
277 Usage: configure [options] [host]
278 Options: [defaults in brackets after descriptions]
280 --cache-file=FILE cache test results in FILE
281 --help print this message
282 --no-create do not create output files
283 --quiet, --silent do not print \`checking...' messages
284 --version print the version of autoconf that created configure
285 Directory and file names:
286 --prefix=PREFIX install architecture-independent files in PREFIX
288 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
290 --bindir=DIR user executables in DIR [EPREFIX/bin]
291 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
292 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
293 --datadir=DIR read-only architecture-independent data in DIR
295 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
296 --sharedstatedir=DIR modifiable architecture-independent data in DIR
298 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
299 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
300 --includedir=DIR C header files in DIR [PREFIX/include]
301 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
302 --infodir=DIR info documentation in DIR [PREFIX/info]
303 --mandir=DIR man documentation in DIR [PREFIX/man]
304 --srcdir=DIR find the sources in DIR [configure dir or ..]
305 --program-prefix=PREFIX prepend PREFIX to installed program names
306 --program-suffix=SUFFIX append SUFFIX to installed program names
307 --program-transform-name=PROGRAM
308 run sed PROGRAM on installed program names
312 --build=BUILD configure for building on BUILD [BUILD=HOST]
313 --host=HOST configure for HOST [guessed]
314 --target=TARGET configure for TARGET [TARGET=HOST]
315 Features and packages:
316 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
317 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
318 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
319 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
320 --x-includes=DIR X include files are in DIR
321 --x-libraries=DIR X library files are in DIR
323 if test -n "$ac_help"; then
324 echo "--enable and --with options recognized:$ac_help"
328 -host | --host | --hos | --ho)
330 -host=* | --host=* | --hos=* | --ho=*)
333 -includedir | --includedir | --includedi | --included | --include \
334 | --includ | --inclu | --incl | --inc)
335 ac_prev=includedir ;;
336 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
337 | --includ=* | --inclu=* | --incl=* | --inc=*)
338 includedir="$ac_optarg" ;;
340 -infodir | --infodir | --infodi | --infod | --info | --inf)
342 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
343 infodir="$ac_optarg" ;;
345 -libdir | --libdir | --libdi | --libd)
347 -libdir=* | --libdir=* | --libdi=* | --libd=*)
348 libdir="$ac_optarg" ;;
350 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
351 | --libexe | --libex | --libe)
352 ac_prev=libexecdir ;;
353 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
354 | --libexe=* | --libex=* | --libe=*)
355 libexecdir="$ac_optarg" ;;
357 -localstatedir | --localstatedir | --localstatedi | --localstated \
358 | --localstate | --localstat | --localsta | --localst \
359 | --locals | --local | --loca | --loc | --lo)
360 ac_prev=localstatedir ;;
361 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
362 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
363 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
364 localstatedir="$ac_optarg" ;;
366 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
368 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
369 mandir="$ac_optarg" ;;
372 # Obsolete; use --without-fp.
375 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
379 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
380 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
383 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
384 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
385 | --oldin | --oldi | --old | --ol | --o)
386 ac_prev=oldincludedir ;;
387 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
388 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
389 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
390 oldincludedir="$ac_optarg" ;;
392 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
394 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
395 prefix="$ac_optarg" ;;
397 -program-prefix | --program-prefix | --program-prefi | --program-pref \
398 | --program-pre | --program-pr | --program-p)
399 ac_prev=program_prefix ;;
400 -program-prefix=* | --program-prefix=* | --program-prefi=* \
401 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
402 program_prefix="$ac_optarg" ;;
404 -program-suffix | --program-suffix | --program-suffi | --program-suff \
405 | --program-suf | --program-su | --program-s)
406 ac_prev=program_suffix ;;
407 -program-suffix=* | --program-suffix=* | --program-suffi=* \
408 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
409 program_suffix="$ac_optarg" ;;
411 -program-transform-name | --program-transform-name \
412 | --program-transform-nam | --program-transform-na \
413 | --program-transform-n | --program-transform- \
414 | --program-transform | --program-transfor \
415 | --program-transfo | --program-transf \
416 | --program-trans | --program-tran \
417 | --progr-tra | --program-tr | --program-t)
418 ac_prev=program_transform_name ;;
419 -program-transform-name=* | --program-transform-name=* \
420 | --program-transform-nam=* | --program-transform-na=* \
421 | --program-transform-n=* | --program-transform-=* \
422 | --program-transform=* | --program-transfor=* \
423 | --program-transfo=* | --program-transf=* \
424 | --program-trans=* | --program-tran=* \
425 | --progr-tra=* | --program-tr=* | --program-t=*)
426 program_transform_name="$ac_optarg" ;;
428 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
429 | -silent | --silent | --silen | --sile | --sil)
432 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
434 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
436 sbindir="$ac_optarg" ;;
438 -sharedstatedir | --sharedstatedir | --sharedstatedi \
439 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
440 | --sharedst | --shareds | --shared | --share | --shar \
442 ac_prev=sharedstatedir ;;
443 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
444 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
445 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
447 sharedstatedir="$ac_optarg" ;;
449 -site | --site | --sit)
451 -site=* | --site=* | --sit=*)
454 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
456 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
457 srcdir="$ac_optarg" ;;
459 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
460 | --syscon | --sysco | --sysc | --sys | --sy)
461 ac_prev=sysconfdir ;;
462 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
463 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
464 sysconfdir="$ac_optarg" ;;
466 -target | --target | --targe | --targ | --tar | --ta | --t)
468 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
469 target="$ac_optarg" ;;
471 -v | -verbose | --verbose | --verbos | --verbo | --verb)
474 -version | --version | --versio | --versi | --vers)
475 echo "configure generated by autoconf version 2.12.1"
479 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
480 # Reject names that are not valid shell variable names.
481 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
482 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
484 ac_package=`echo $ac_package| sed 's/-/_/g'`
489 eval "with_${ac_package}='$ac_optarg'" ;;
491 -without-* | --without-*)
492 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
493 # Reject names that are not valid shell variable names.
494 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
495 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
497 ac_package=`echo $ac_package| sed 's/-/_/g'`
498 eval "with_${ac_package}=no" ;;
501 # Obsolete; use --with-x.
504 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
505 | --x-incl | --x-inc | --x-in | --x-i)
506 ac_prev=x_includes ;;
507 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
508 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
509 x_includes="$ac_optarg" ;;
511 -x-libraries | --x-libraries | --x-librarie | --x-librari \
512 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
513 ac_prev=x_libraries ;;
514 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
515 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
516 x_libraries="$ac_optarg" ;;
518 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
522 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
523 echo "configure: warning: $ac_option: invalid host type" 1>&2
525 if test "x$nonopt" != xNONE; then
526 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
534 if test -n "$ac_prev"; then
535 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
538 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
540 # File descriptor usage:
543 # 2 errors and warnings
544 # 3 some systems may open it to /dev/tty
545 # 4 used on the Kubota Titan
546 # 6 checking for... messages and results
547 # 5 compiler messages saved in config.log
548 if test "$silent" = yes; then
556 This file contains any messages produced by compilers while
557 running configure, to aid debugging if configure makes a mistake.
560 # Strip out --no-create and --no-recursion so they do not pile up.
561 # Also quote any args containing shell metacharacters.
566 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
567 | --no-cr | --no-c) ;;
568 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
569 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
570 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
571 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
572 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
577 # Only set these to C if already set. These must not be set unconditionally
578 # because not all systems understand e.g. LANG=C (notably SCO).
579 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
580 # Non-C LC_CTYPE values break the ctype check.
581 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
582 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
583 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
584 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
586 # confdefs.h avoids OS command line length limits that DEFS can exceed.
587 rm -rf conftest* confdefs.h
588 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
591 # A filename unique to this package, relative to the directory that
592 # configure is in, which we can look for to find out if srcdir is correct.
593 ac_unique_file=Makefile.in
595 # Find the source files, if location was not specified.
596 if test -z "$srcdir"; then
597 ac_srcdir_defaulted=yes
598 # Try the directory containing this script, then its parent.
600 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
601 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
603 if test ! -r $srcdir/$ac_unique_file; then
607 ac_srcdir_defaulted=no
609 if test ! -r $srcdir/$ac_unique_file; then
610 if test "$ac_srcdir_defaulted" = yes; then
611 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
613 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
616 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
618 # Prefer explicitly selected file to automatically selected ones.
619 if test -z "$CONFIG_SITE"; then
620 if test "x$prefix" != xNONE; then
621 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
623 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
626 for ac_site_file in $CONFIG_SITE; do
627 if test -r "$ac_site_file"; then
628 echo "loading site script $ac_site_file"
633 if test -r "$cache_file"; then
634 echo "loading cache $cache_file"
637 echo "creating cache $cache_file"
642 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
643 ac_cpp='$CPP $CPPFLAGS'
644 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
645 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
646 cross_compiling=$ac_cv_prog_cc_cross
648 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
649 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
650 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
657 ac_n= ac_c='\c' ac_t=
662 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
663 echo "configure:664: checking how to run the C preprocessor" >&5
664 # On Suns, sometimes $CPP names a directory.
665 if test -n "$CPP" && test -d "$CPP"; then
668 if test -z "$CPP"; then
669 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
670 echo $ac_n "(cached) $ac_c" 1>&6
672 # This must be in double quotes, not single quotes, because CPP may get
673 # substituted into the Makefile and "${CC-cc}" will confuse make.
675 # On the NeXT, cc -E runs the code through the compiler's parser,
676 # not just through cpp.
677 cat > conftest.$ac_ext <<EOF
678 #line 679 "configure"
679 #include "confdefs.h"
683 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
684 { (eval echo configure:685: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
685 ac_err=`grep -v '^ *+' conftest.out`
686 if test -z "$ac_err"; then
690 echo "configure: failed program was:" >&5
691 cat conftest.$ac_ext >&5
693 CPP="${CC-cc} -E -traditional-cpp"
694 cat > conftest.$ac_ext <<EOF
695 #line 696 "configure"
696 #include "confdefs.h"
700 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
701 { (eval echo configure:702: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
702 ac_err=`grep -v '^ *+' conftest.out`
703 if test -z "$ac_err"; then
707 echo "configure: failed program was:" >&5
708 cat conftest.$ac_ext >&5
715 ac_cv_prog_CPP="$CPP"
717 CPP="$ac_cv_prog_CPP"
719 ac_cv_prog_CPP="$CPP"
721 echo "$ac_t""$CPP" 1>&6
723 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
724 echo "configure:725: checking whether ${MAKE-make} sets \${MAKE}" >&5
725 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
726 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
727 echo $ac_n "(cached) $ac_c" 1>&6
729 cat > conftestmake <<\EOF
731 @echo 'ac_maketemp="${MAKE}"'
733 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
734 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
735 if test -n "$ac_maketemp"; then
736 eval ac_cv_prog_make_${ac_make}_set=yes
738 eval ac_cv_prog_make_${ac_make}_set=no
742 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
743 echo "$ac_t""yes" 1>&6
746 echo "$ac_t""no" 1>&6
747 SET_MAKE="MAKE=${MAKE-make}"
750 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
751 echo "configure:752: checking for POSIXized ISC" >&5
752 if test -d /etc/conf/kconfig.d &&
753 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
755 echo "$ac_t""yes" 1>&6
756 ISC=yes # If later tests want to check for ISC.
757 cat >> confdefs.h <<\EOF
758 #define _POSIX_SOURCE 1
761 if test "$GCC" = yes; then
767 echo "$ac_t""no" 1>&6
771 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
772 echo "configure:773: checking for ANSI C header files" >&5
773 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
774 echo $ac_n "(cached) $ac_c" 1>&6
776 cat > conftest.$ac_ext <<EOF
777 #line 778 "configure"
778 #include "confdefs.h"
784 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
785 { (eval echo configure:786: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
786 ac_err=`grep -v '^ *+' conftest.out`
787 if test -z "$ac_err"; then
789 ac_cv_header_stdc=yes
792 echo "configure: failed program was:" >&5
793 cat conftest.$ac_ext >&5
799 if test $ac_cv_header_stdc = yes; then
800 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
801 cat > conftest.$ac_ext <<EOF
802 #line 803 "configure"
803 #include "confdefs.h"
806 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
807 egrep "memchr" >/dev/null 2>&1; then
817 if test $ac_cv_header_stdc = yes; then
818 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
819 cat > conftest.$ac_ext <<EOF
820 #line 821 "configure"
821 #include "confdefs.h"
824 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
825 egrep "free" >/dev/null 2>&1; then
835 if test $ac_cv_header_stdc = yes; then
836 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
837 if test "$cross_compiling" = yes; then
840 cat > conftest.$ac_ext <<EOF
841 #line 842 "configure"
842 #include "confdefs.h"
844 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
845 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
846 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
847 int main () { int i; for (i = 0; i < 256; i++)
848 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
852 if { (eval echo configure:853: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
856 echo "configure: failed program was:" >&5
857 cat conftest.$ac_ext >&5
867 echo "$ac_t""$ac_cv_header_stdc" 1>&6
868 if test $ac_cv_header_stdc = yes; then
869 cat >> confdefs.h <<\EOF
870 #define STDC_HEADERS 1
875 echo $ac_n "checking for working const""... $ac_c" 1>&6
876 echo "configure:877: checking for working const" >&5
877 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
878 echo $ac_n "(cached) $ac_c" 1>&6
880 cat > conftest.$ac_ext <<EOF
881 #line 882 "configure"
882 #include "confdefs.h"
886 /* Ultrix mips cc rejects this. */
887 typedef int charset[2]; const charset x;
888 /* SunOS 4.1.1 cc rejects this. */
889 char const *const *ccp;
891 /* NEC SVR4.0.2 mips cc rejects this. */
892 struct point {int x, y;};
893 static struct point const zero = {0,0};
894 /* AIX XL C 1.02.0.0 rejects this.
895 It does not let you subtract one const X* pointer from another in an arm
896 of an if-expression whose if-part is not a constant expression */
897 const char *g = "string";
898 ccp = &g + (g ? g-g : 0);
899 /* HPUX 7.0 cc rejects these. */
902 ccp = (char const *const *) p;
903 { /* SCO 3.2v4 cc rejects this. */
905 char const *s = 0 ? (char *) 0 : (char const *) 0;
909 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
911 const int *foo = &x[0];
914 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
915 typedef const int *iptr;
919 { /* AIX XL C 1.02.0.0 rejects this saying
920 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
921 struct s { int j; const int *ap[3]; };
922 struct s *b; b->j = 5;
924 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
930 if { (eval echo configure:931: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
934 echo "configure: failed program was:" >&5
935 cat conftest.$ac_ext >&5
942 echo "$ac_t""$ac_cv_c_const" 1>&6
943 if test $ac_cv_c_const = no; then
944 cat >> confdefs.h <<\EOF
950 echo $ac_n "checking for inline""... $ac_c" 1>&6
951 echo "configure:952: checking for inline" >&5
952 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
953 echo $ac_n "(cached) $ac_c" 1>&6
956 for ac_kw in inline __inline__ __inline; do
957 cat > conftest.$ac_ext <<EOF
958 #line 959 "configure"
959 #include "confdefs.h"
965 if { (eval echo configure:966: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
967 ac_cv_c_inline=$ac_kw; break
969 echo "configure: failed program was:" >&5
970 cat conftest.$ac_ext >&5
977 echo "$ac_t""$ac_cv_c_inline" 1>&6
978 case "$ac_cv_c_inline" in
980 no) cat >> confdefs.h <<\EOF
984 *) cat >> confdefs.h <<EOF
985 #define inline $ac_cv_c_inline
990 echo $ac_n "checking for off_t""... $ac_c" 1>&6
991 echo "configure:992: checking for off_t" >&5
992 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
993 echo $ac_n "(cached) $ac_c" 1>&6
995 cat > conftest.$ac_ext <<EOF
996 #line 997 "configure"
997 #include "confdefs.h"
998 #include <sys/types.h>
1004 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1005 egrep "off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1007 ac_cv_type_off_t=yes
1015 echo "$ac_t""$ac_cv_type_off_t" 1>&6
1016 if test $ac_cv_type_off_t = no; then
1017 cat >> confdefs.h <<\EOF
1023 echo $ac_n "checking for size_t""... $ac_c" 1>&6
1024 echo "configure:1025: checking for size_t" >&5
1025 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
1026 echo $ac_n "(cached) $ac_c" 1>&6
1028 cat > conftest.$ac_ext <<EOF
1029 #line 1030 "configure"
1030 #include "confdefs.h"
1031 #include <sys/types.h>
1037 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1038 egrep "size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1040 ac_cv_type_size_t=yes
1043 ac_cv_type_size_t=no
1048 echo "$ac_t""$ac_cv_type_size_t" 1>&6
1049 if test $ac_cv_type_size_t = no; then
1050 cat >> confdefs.h <<\EOF
1051 #define size_t unsigned
1056 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
1057 # for constant arguments. Useless!
1058 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
1059 echo "configure:1060: checking for working alloca.h" >&5
1060 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
1061 echo $ac_n "(cached) $ac_c" 1>&6
1063 cat > conftest.$ac_ext <<EOF
1064 #line 1065 "configure"
1065 #include "confdefs.h"
1068 char *p = alloca(2 * sizeof(int));
1071 if { (eval echo configure:1072: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1073 ac_cv_header_alloca_h=yes
1075 echo "configure: failed program was:" >&5
1076 cat conftest.$ac_ext >&5
1078 ac_cv_header_alloca_h=no
1083 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
1084 if test $ac_cv_header_alloca_h = yes; then
1085 cat >> confdefs.h <<\EOF
1086 #define HAVE_ALLOCA_H 1
1091 echo $ac_n "checking for alloca""... $ac_c" 1>&6
1092 echo "configure:1093: checking for alloca" >&5
1093 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
1094 echo $ac_n "(cached) $ac_c" 1>&6
1096 cat > conftest.$ac_ext <<EOF
1097 #line 1098 "configure"
1098 #include "confdefs.h"
1101 # define alloca __builtin_alloca
1104 # include <alloca.h>
1109 # ifndef alloca /* predefined by HP cc +Olibcalls */
1117 char *p = (char *) alloca(1);
1120 if { (eval echo configure:1121: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1122 ac_cv_func_alloca_works=yes
1124 echo "configure: failed program was:" >&5
1125 cat conftest.$ac_ext >&5
1127 ac_cv_func_alloca_works=no
1132 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
1133 if test $ac_cv_func_alloca_works = yes; then
1134 cat >> confdefs.h <<\EOF
1135 #define HAVE_ALLOCA 1
1140 if test $ac_cv_func_alloca_works = no; then
1141 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
1142 # that cause trouble. Some versions do not even contain alloca or
1143 # contain a buggy version. If you still want to use their alloca,
1144 # use ar to extract alloca.o from them instead of compiling alloca.c.
1146 cat >> confdefs.h <<\EOF
1151 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
1152 echo "configure:1153: checking whether alloca needs Cray hooks" >&5
1153 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
1154 echo $ac_n "(cached) $ac_c" 1>&6
1156 cat > conftest.$ac_ext <<EOF
1157 #line 1158 "configure"
1158 #include "confdefs.h"
1159 #if defined(CRAY) && ! defined(CRAY2)
1166 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1167 egrep "webecray" >/dev/null 2>&1; then
1178 echo "$ac_t""$ac_cv_os_cray" 1>&6
1179 if test $ac_cv_os_cray = yes; then
1180 for ac_func in _getb67 GETB67 getb67; do
1181 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1182 echo "configure:1183: checking for $ac_func" >&5
1183 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1184 echo $ac_n "(cached) $ac_c" 1>&6
1186 cat > conftest.$ac_ext <<EOF
1187 #line 1188 "configure"
1188 #include "confdefs.h"
1189 /* System header to define __stub macros and hopefully few prototypes,
1190 which can conflict with char $ac_func(); below. */
1192 /* Override any gcc2 internal prototype to avoid an error. */
1193 /* We use char because int might match the return type of a gcc2
1194 builtin and then its argument prototype would still apply. */
1199 /* The GNU C library defines this for functions which it implements
1200 to always fail with ENOSYS. Some functions are actually named
1201 something starting with __ and the normal name is an alias. */
1202 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1210 if { (eval echo configure:1211: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1212 eval "ac_cv_func_$ac_func=yes"
1214 echo "configure: failed program was:" >&5
1215 cat conftest.$ac_ext >&5
1217 eval "ac_cv_func_$ac_func=no"
1222 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1223 echo "$ac_t""yes" 1>&6
1224 cat >> confdefs.h <<EOF
1225 #define CRAY_STACKSEG_END $ac_func
1230 echo "$ac_t""no" 1>&6
1236 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
1237 echo "configure:1238: checking stack direction for C alloca" >&5
1238 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
1239 echo $ac_n "(cached) $ac_c" 1>&6
1241 if test "$cross_compiling" = yes; then
1242 ac_cv_c_stack_direction=0
1244 cat > conftest.$ac_ext <<EOF
1245 #line 1246 "configure"
1246 #include "confdefs.h"
1247 find_stack_direction ()
1249 static char *addr = 0;
1254 return find_stack_direction ();
1257 return (&dummy > addr) ? 1 : -1;
1261 exit (find_stack_direction() < 0);
1264 if { (eval echo configure:1265: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
1266 ac_cv_c_stack_direction=1
1268 echo "configure: failed program was:" >&5
1269 cat conftest.$ac_ext >&5
1271 ac_cv_c_stack_direction=-1
1278 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
1279 cat >> confdefs.h <<EOF
1280 #define STACK_DIRECTION $ac_cv_c_stack_direction
1285 for ac_hdr in unistd.h
1287 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1288 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1289 echo "configure:1290: checking for $ac_hdr" >&5
1290 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1291 echo $ac_n "(cached) $ac_c" 1>&6
1293 cat > conftest.$ac_ext <<EOF
1294 #line 1295 "configure"
1295 #include "confdefs.h"
1298 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1299 { (eval echo configure:1300: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1300 ac_err=`grep -v '^ *+' conftest.out`
1301 if test -z "$ac_err"; then
1303 eval "ac_cv_header_$ac_safe=yes"
1306 echo "configure: failed program was:" >&5
1307 cat conftest.$ac_ext >&5
1309 eval "ac_cv_header_$ac_safe=no"
1313 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1314 echo "$ac_t""yes" 1>&6
1315 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1316 cat >> confdefs.h <<EOF
1317 #define $ac_tr_hdr 1
1321 echo "$ac_t""no" 1>&6
1325 for ac_func in getpagesize
1327 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1328 echo "configure:1329: checking for $ac_func" >&5
1329 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1330 echo $ac_n "(cached) $ac_c" 1>&6
1332 cat > conftest.$ac_ext <<EOF
1333 #line 1334 "configure"
1334 #include "confdefs.h"
1335 /* System header to define __stub macros and hopefully few prototypes,
1336 which can conflict with char $ac_func(); below. */
1338 /* Override any gcc2 internal prototype to avoid an error. */
1339 /* We use char because int might match the return type of a gcc2
1340 builtin and then its argument prototype would still apply. */
1345 /* The GNU C library defines this for functions which it implements
1346 to always fail with ENOSYS. Some functions are actually named
1347 something starting with __ and the normal name is an alias. */
1348 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1356 if { (eval echo configure:1357: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1358 eval "ac_cv_func_$ac_func=yes"
1360 echo "configure: failed program was:" >&5
1361 cat conftest.$ac_ext >&5
1363 eval "ac_cv_func_$ac_func=no"
1368 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1369 echo "$ac_t""yes" 1>&6
1370 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1371 cat >> confdefs.h <<EOF
1372 #define $ac_tr_func 1
1376 echo "$ac_t""no" 1>&6
1380 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
1381 echo "configure:1382: checking for working mmap" >&5
1382 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
1383 echo $ac_n "(cached) $ac_c" 1>&6
1385 if test "$cross_compiling" = yes; then
1386 ac_cv_func_mmap_fixed_mapped=no
1388 cat > conftest.$ac_ext <<EOF
1389 #line 1390 "configure"
1390 #include "confdefs.h"
1392 /* Thanks to Mike Haertel and Jim Avera for this test.
1393 Here is a matrix of mmap possibilities:
1394 mmap private not fixed
1395 mmap private fixed at somewhere currently unmapped
1396 mmap private fixed at somewhere already mapped
1397 mmap shared not fixed
1398 mmap shared fixed at somewhere currently unmapped
1399 mmap shared fixed at somewhere already mapped
1400 For private mappings, we should verify that changes cannot be read()
1401 back from the file, nor mmap's back from the file at a different
1402 address. (There have been systems where private was not correctly
1403 implemented like the infamous i386 svr4.0, and systems where the
1404 VM page cache was not coherent with the filesystem buffer cache
1405 like early versions of FreeBSD and possibly contemporary NetBSD.)
1406 For shared mappings, we should conversely verify that changes get
1407 propogated back to all the places they're supposed to be.
1409 Grep wants private fixed already mapped.
1410 The main things grep needs to know about mmap are:
1411 * does it exist and is it safe to write into the mmap'd area
1412 * how to use it (BSD variants) */
1413 #include <sys/types.h>
1415 #include <sys/mman.h>
1417 /* This mess was copied from the GNU getpagesize.h. */
1418 #ifndef HAVE_GETPAGESIZE
1419 # ifdef HAVE_UNISTD_H
1420 # include <unistd.h>
1423 /* Assume that all systems that can run configure have sys/param.h. */
1424 # ifndef HAVE_SYS_PARAM_H
1425 # define HAVE_SYS_PARAM_H 1
1428 # ifdef _SC_PAGESIZE
1429 # define getpagesize() sysconf(_SC_PAGESIZE)
1430 # else /* no _SC_PAGESIZE */
1431 # ifdef HAVE_SYS_PARAM_H
1432 # include <sys/param.h>
1433 # ifdef EXEC_PAGESIZE
1434 # define getpagesize() EXEC_PAGESIZE
1435 # else /* no EXEC_PAGESIZE */
1437 # define getpagesize() NBPG * CLSIZE
1440 # endif /* no CLSIZE */
1441 # else /* no NBPG */
1443 # define getpagesize() NBPC
1444 # else /* no NBPC */
1446 # define getpagesize() PAGESIZE
1447 # endif /* PAGESIZE */
1448 # endif /* no NBPC */
1449 # endif /* no NBPG */
1450 # endif /* no EXEC_PAGESIZE */
1451 # else /* no HAVE_SYS_PARAM_H */
1452 # define getpagesize() 8192 /* punt totally */
1453 # endif /* no HAVE_SYS_PARAM_H */
1454 # endif /* no _SC_PAGESIZE */
1456 #endif /* no HAVE_GETPAGESIZE */
1459 extern "C" { void *malloc(unsigned); }
1467 char *data, *data2, *data3;
1471 pagesize = getpagesize();
1474 * First, make a file with some known garbage in it.
1476 data = malloc(pagesize);
1479 for (i = 0; i < pagesize; ++i)
1480 *(data + i) = rand();
1482 fd = creat("conftestmmap", 0600);
1485 if (write(fd, data, pagesize) != pagesize)
1490 * Next, try to mmap the file at a fixed address which
1491 * already has something else allocated at it. If we can,
1492 * also make sure that we see the same garbage.
1494 fd = open("conftestmmap", O_RDWR);
1497 data2 = malloc(2 * pagesize);
1500 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
1501 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
1502 MAP_PRIVATE | MAP_FIXED, fd, 0L))
1504 for (i = 0; i < pagesize; ++i)
1505 if (*(data + i) != *(data2 + i))
1509 * Finally, make sure that changes to the mapped area
1510 * do not percolate back to the file as seen by read().
1511 * (This is a bug on some variants of i386 svr4.0.)
1513 for (i = 0; i < pagesize; ++i)
1514 *(data2 + i) = *(data2 + i) + 1;
1515 data3 = malloc(pagesize);
1518 if (read(fd, data3, pagesize) != pagesize)
1520 for (i = 0; i < pagesize; ++i)
1521 if (*(data + i) != *(data3 + i))
1524 unlink("conftestmmap");
1529 if { (eval echo configure:1530: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
1531 ac_cv_func_mmap_fixed_mapped=yes
1533 echo "configure: failed program was:" >&5
1534 cat conftest.$ac_ext >&5
1536 ac_cv_func_mmap_fixed_mapped=no
1543 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
1544 if test $ac_cv_func_mmap_fixed_mapped = yes; then
1545 cat >> confdefs.h <<\EOF
1552 # autoconf.info says this should be called right after AC_INIT.
1556 for ac_dir in `cd $srcdir;pwd`/../.. $srcdir/`cd $srcdir;pwd`/../..; do
1557 if test -f $ac_dir/install-sh; then
1559 ac_install_sh="$ac_aux_dir/install-sh -c"
1561 elif test -f $ac_dir/install.sh; then
1563 ac_install_sh="$ac_aux_dir/install.sh -c"
1567 if test -z "$ac_aux_dir"; then
1568 { echo "configure: error: can not find install-sh or install.sh in `cd $srcdir;pwd`/../.. $srcdir/`cd $srcdir;pwd`/../.." 1>&2; exit 1; }
1570 ac_config_guess=$ac_aux_dir/config.guess
1571 ac_config_sub=$ac_aux_dir/config.sub
1572 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
1575 # Do some error checking and defaulting for the host and target type.
1577 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
1580 # 1. You are not allowed to specify --host, --target, and nonopt at the
1582 # 2. Host defaults to nonopt.
1583 # 3. If nonopt is not specified, then host defaults to the current host,
1584 # as determined by config.guess.
1585 # 4. Target and build default to nonopt.
1586 # 5. If nonopt is not specified, then target and build default to host.
1588 # The aliases save the names the user supplied, while $host etc.
1589 # will get canonicalized.
1590 case $host---$target---$nonopt in
1591 NONE---*---* | *---NONE---* | *---*---NONE) ;;
1592 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
1596 # Make sure we can run config.sub.
1597 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
1598 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1601 echo $ac_n "checking host system type""... $ac_c" 1>&6
1602 echo "configure:1603: checking host system type" >&5
1605 case "$host_alias" in
1609 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1610 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1612 *) host_alias=$nonopt ;;
1616 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1617 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1618 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1619 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1620 echo "$ac_t""$host" 1>&6
1622 echo $ac_n "checking target system type""... $ac_c" 1>&6
1623 echo "configure:1624: checking target system type" >&5
1625 target_alias=$target
1626 case "$target_alias" in
1629 NONE) target_alias=$host_alias ;;
1630 *) target_alias=$nonopt ;;
1634 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
1635 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1636 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1637 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1638 echo "$ac_t""$target" 1>&6
1640 echo $ac_n "checking build system type""... $ac_c" 1>&6
1641 echo "configure:1642: checking build system type" >&5
1644 case "$build_alias" in
1647 NONE) build_alias=$host_alias ;;
1648 *) build_alias=$nonopt ;;
1652 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1653 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1654 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1655 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1656 echo "$ac_t""$build" 1>&6
1658 test "$host_alias" != "$target_alias" &&
1659 test "$program_prefix$program_suffix$program_transform_name" = \
1661 program_prefix=${target_alias}-
1663 if test "$program_transform_name" = s,x,x,; then
1664 program_transform_name=
1666 # Double any \ or $. echo might interpret backslashes.
1667 cat <<\EOF_SED > conftestsed
1668 s,\\,\\\\,g; s,\$,$$,g
1670 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
1673 test "$program_prefix" != NONE &&
1674 program_transform_name="s,^,${program_prefix},; $program_transform_name"
1675 # Use a double $ so make ignores it.
1676 test "$program_suffix" != NONE &&
1677 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
1679 # sed with no file args requires a program.
1680 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
1682 # Extract the first word of "gcc", so it can be a program name with args.
1683 set dummy gcc; ac_word=$2
1684 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1685 echo "configure:1686: checking for $ac_word" >&5
1686 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1687 echo $ac_n "(cached) $ac_c" 1>&6
1689 if test -n "$CC"; then
1690 ac_cv_prog_CC="$CC" # Let the user override the test.
1692 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1693 for ac_dir in $PATH; do
1694 test -z "$ac_dir" && ac_dir=.
1695 if test -f $ac_dir/$ac_word; then
1704 if test -n "$CC"; then
1705 echo "$ac_t""$CC" 1>&6
1707 echo "$ac_t""no" 1>&6
1710 if test -z "$CC"; then
1711 # Extract the first word of "cc", so it can be a program name with args.
1712 set dummy cc; ac_word=$2
1713 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1714 echo "configure:1715: checking for $ac_word" >&5
1715 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1716 echo $ac_n "(cached) $ac_c" 1>&6
1718 if test -n "$CC"; then
1719 ac_cv_prog_CC="$CC" # Let the user override the test.
1721 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1723 for ac_dir in $PATH; do
1724 test -z "$ac_dir" && ac_dir=.
1725 if test -f $ac_dir/$ac_word; then
1726 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1727 ac_prog_rejected=yes
1735 if test $ac_prog_rejected = yes; then
1736 # We found a bogon in the path, so make sure we never use it.
1737 set dummy $ac_cv_prog_CC
1739 if test $# -gt 0; then
1740 # We chose a different compiler from the bogus one.
1741 # However, it has the same basename, so the bogon will be chosen
1742 # first if we set CC to just the basename; use the full file name.
1744 set dummy "$ac_dir/$ac_word" "$@"
1752 if test -n "$CC"; then
1753 echo "$ac_t""$CC" 1>&6
1755 echo "$ac_t""no" 1>&6
1758 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1761 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1762 echo "configure:1763: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1765 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1766 ac_cpp='$CPP $CPPFLAGS'
1767 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1768 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1769 cross_compiling=$ac_cv_prog_cc_cross
1771 cat > conftest.$ac_ext <<EOF
1772 #line 1773 "configure"
1773 #include "confdefs.h"
1776 if { (eval echo configure:1777: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1777 ac_cv_prog_cc_works=yes
1778 # If we can't run a trivial program, we are probably using a cross compiler.
1779 if (./conftest; exit) 2>/dev/null; then
1780 ac_cv_prog_cc_cross=no
1782 ac_cv_prog_cc_cross=yes
1785 echo "configure: failed program was:" >&5
1786 cat conftest.$ac_ext >&5
1787 ac_cv_prog_cc_works=no
1791 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1792 if test $ac_cv_prog_cc_works = no; then
1793 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1795 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1796 echo "configure:1797: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1797 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1798 cross_compiling=$ac_cv_prog_cc_cross
1800 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1801 echo "configure:1802: checking whether we are using GNU C" >&5
1802 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1803 echo $ac_n "(cached) $ac_c" 1>&6
1805 cat > conftest.c <<EOF
1810 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1811: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1817 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1819 if test $ac_cv_prog_gcc = yes; then
1821 ac_test_CFLAGS="${CFLAGS+set}"
1822 ac_save_CFLAGS="$CFLAGS"
1824 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1825 echo "configure:1826: checking whether ${CC-cc} accepts -g" >&5
1826 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1827 echo $ac_n "(cached) $ac_c" 1>&6
1829 echo 'void f(){}' > conftest.c
1830 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1839 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1840 if test "$ac_test_CFLAGS" = set; then
1841 CFLAGS="$ac_save_CFLAGS"
1842 elif test $ac_cv_prog_cc_g = yes; then
1849 test "${CFLAGS+set}" = set || CFLAGS="-g"
1852 # Find a good install program. We prefer a C program (faster),
1853 # so one script is as good as another. But avoid the broken or
1854 # incompatible versions:
1855 # SysV /etc/install, /usr/sbin/install
1856 # SunOS /usr/etc/install
1857 # IRIX /sbin/install
1859 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1860 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1861 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1862 # ./install, which can be erroneously created by make from ./install.sh.
1863 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1864 echo "configure:1865: checking for a BSD compatible install" >&5
1865 if test -z "$INSTALL"; then
1866 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1867 echo $ac_n "(cached) $ac_c" 1>&6
1869 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
1870 for ac_dir in $PATH; do
1871 # Account for people who put trailing slashes in PATH elements.
1873 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1875 # OSF1 and SCO ODT 3.0 have their own names for install.
1876 # Don't use installbsd from OSF since it installs stuff as root
1878 for ac_prog in ginstall scoinst install; do
1879 if test -f $ac_dir/$ac_prog; then
1880 if test $ac_prog = install &&
1881 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1882 # AIX install. It has an incompatible calling convention.
1885 ac_cv_path_install="$ac_dir/$ac_prog -c"
1896 if test "${ac_cv_path_install+set}" = set; then
1897 INSTALL="$ac_cv_path_install"
1899 # As a last resort, use the slow shell script. We don't cache a
1900 # path for INSTALL within a source directory, because that will
1901 # break other packages using the cache if that directory is
1902 # removed, or if the path is relative.
1903 INSTALL="$ac_install_sh"
1906 echo "$ac_t""$INSTALL" 1>&6
1908 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1909 # It thinks the first close brace ends the variable substitution.
1910 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1912 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1915 # Put a plausible default for CC_FOR_BUILD in Makefile.
1916 if test "x$cross_compiling" = "xno"; then
1917 CC_FOR_BUILD='$(CC)'
1927 # Extract the first word of "ranlib", so it can be a program name with args.
1928 set dummy ranlib; ac_word=$2
1929 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1930 echo "configure:1931: checking for $ac_word" >&5
1931 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1932 echo $ac_n "(cached) $ac_c" 1>&6
1934 if test -n "$RANLIB"; then
1935 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1937 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1938 for ac_dir in $PATH; do
1939 test -z "$ac_dir" && ac_dir=.
1940 if test -f $ac_dir/$ac_word; then
1941 ac_cv_prog_RANLIB="ranlib"
1946 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1949 RANLIB="$ac_cv_prog_RANLIB"
1950 if test -n "$RANLIB"; then
1951 echo "$ac_t""$RANLIB" 1>&6
1953 echo "$ac_t""no" 1>&6
1959 for ac_hdr in argz.h limits.h locale.h nl_types.h malloc.h string.h \
1960 unistd.h values.h sys/param.h
1962 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1963 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1964 echo "configure:1965: checking for $ac_hdr" >&5
1965 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1966 echo $ac_n "(cached) $ac_c" 1>&6
1968 cat > conftest.$ac_ext <<EOF
1969 #line 1970 "configure"
1970 #include "confdefs.h"
1973 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1974 { (eval echo configure:1975: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1975 ac_err=`grep -v '^ *+' conftest.out`
1976 if test -z "$ac_err"; then
1978 eval "ac_cv_header_$ac_safe=yes"
1981 echo "configure: failed program was:" >&5
1982 cat conftest.$ac_ext >&5
1984 eval "ac_cv_header_$ac_safe=no"
1988 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1989 echo "$ac_t""yes" 1>&6
1990 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1991 cat >> confdefs.h <<EOF
1992 #define $ac_tr_hdr 1
1996 echo "$ac_t""no" 1>&6
2000 for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \
2001 __argz_count __argz_stringify __argz_next
2003 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2004 echo "configure:2005: checking for $ac_func" >&5
2005 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2006 echo $ac_n "(cached) $ac_c" 1>&6
2008 cat > conftest.$ac_ext <<EOF
2009 #line 2010 "configure"
2010 #include "confdefs.h"
2011 /* System header to define __stub macros and hopefully few prototypes,
2012 which can conflict with char $ac_func(); below. */
2014 /* Override any gcc2 internal prototype to avoid an error. */
2015 /* We use char because int might match the return type of a gcc2
2016 builtin and then its argument prototype would still apply. */
2021 /* The GNU C library defines this for functions which it implements
2022 to always fail with ENOSYS. Some functions are actually named
2023 something starting with __ and the normal name is an alias. */
2024 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2032 if { (eval echo configure:2033: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2034 eval "ac_cv_func_$ac_func=yes"
2036 echo "configure: failed program was:" >&5
2037 cat conftest.$ac_ext >&5
2039 eval "ac_cv_func_$ac_func=no"
2044 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2045 echo "$ac_t""yes" 1>&6
2046 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2047 cat >> confdefs.h <<EOF
2048 #define $ac_tr_func 1
2052 echo "$ac_t""no" 1>&6
2057 if test "${ac_cv_func_stpcpy+set}" != "set"; then
2058 for ac_func in stpcpy
2060 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2061 echo "configure:2062: checking for $ac_func" >&5
2062 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2063 echo $ac_n "(cached) $ac_c" 1>&6
2065 cat > conftest.$ac_ext <<EOF
2066 #line 2067 "configure"
2067 #include "confdefs.h"
2068 /* System header to define __stub macros and hopefully few prototypes,
2069 which can conflict with char $ac_func(); below. */
2071 /* Override any gcc2 internal prototype to avoid an error. */
2072 /* We use char because int might match the return type of a gcc2
2073 builtin and then its argument prototype would still apply. */
2078 /* The GNU C library defines this for functions which it implements
2079 to always fail with ENOSYS. Some functions are actually named
2080 something starting with __ and the normal name is an alias. */
2081 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2089 if { (eval echo configure:2090: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2091 eval "ac_cv_func_$ac_func=yes"
2093 echo "configure: failed program was:" >&5
2094 cat conftest.$ac_ext >&5
2096 eval "ac_cv_func_$ac_func=no"
2101 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2102 echo "$ac_t""yes" 1>&6
2103 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2104 cat >> confdefs.h <<EOF
2105 #define $ac_tr_func 1
2109 echo "$ac_t""no" 1>&6
2114 if test "${ac_cv_func_stpcpy}" = "yes"; then
2115 cat >> confdefs.h <<\EOF
2116 #define HAVE_STPCPY 1
2121 if test $ac_cv_header_locale_h = yes; then
2122 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
2123 echo "configure:2124: checking for LC_MESSAGES" >&5
2124 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
2125 echo $ac_n "(cached) $ac_c" 1>&6
2127 cat > conftest.$ac_ext <<EOF
2128 #line 2129 "configure"
2129 #include "confdefs.h"
2135 if { (eval echo configure:2136: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2137 am_cv_val_LC_MESSAGES=yes
2139 echo "configure: failed program was:" >&5
2140 cat conftest.$ac_ext >&5
2142 am_cv_val_LC_MESSAGES=no
2147 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
2148 if test $am_cv_val_LC_MESSAGES = yes; then
2149 cat >> confdefs.h <<\EOF
2150 #define HAVE_LC_MESSAGES 1
2155 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
2156 echo "configure:2157: checking whether NLS is requested" >&5
2157 # Check whether --enable-nls or --disable-nls was given.
2158 if test "${enable_nls+set}" = set; then
2159 enableval="$enable_nls"
2165 echo "$ac_t""$USE_NLS" 1>&6
2168 USE_INCLUDED_LIBINTL=no
2170 if test "$USE_NLS" = "yes"; then
2171 cat >> confdefs.h <<\EOF
2172 #define ENABLE_NLS 1
2175 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
2176 echo "configure:2177: checking whether included gettext is requested" >&5
2177 # Check whether --with-included-gettext or --without-included-gettext was given.
2178 if test "${with_included_gettext+set}" = set; then
2179 withval="$with_included_gettext"
2180 nls_cv_force_use_gnu_gettext=$withval
2182 nls_cv_force_use_gnu_gettext=no
2185 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
2187 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
2188 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
2190 nls_cv_header_libgt=
2193 ac_safe=`echo "libintl.h" | sed 'y%./+-%__p_%'`
2194 echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
2195 echo "configure:2196: checking for libintl.h" >&5
2196 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2197 echo $ac_n "(cached) $ac_c" 1>&6
2199 cat > conftest.$ac_ext <<EOF
2200 #line 2201 "configure"
2201 #include "confdefs.h"
2202 #include <libintl.h>
2204 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2205 { (eval echo configure:2206: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2206 ac_err=`grep -v '^ *+' conftest.out`
2207 if test -z "$ac_err"; then
2209 eval "ac_cv_header_$ac_safe=yes"
2212 echo "configure: failed program was:" >&5
2213 cat conftest.$ac_ext >&5
2215 eval "ac_cv_header_$ac_safe=no"
2219 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2220 echo "$ac_t""yes" 1>&6
2221 echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6
2222 echo "configure:2223: checking for gettext in libc" >&5
2223 if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then
2224 echo $ac_n "(cached) $ac_c" 1>&6
2226 cat > conftest.$ac_ext <<EOF
2227 #line 2228 "configure"
2228 #include "confdefs.h"
2229 #include <libintl.h>
2231 return (int) gettext ("")
2234 if { (eval echo configure:2235: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2236 gt_cv_func_gettext_libc=yes
2238 echo "configure: failed program was:" >&5
2239 cat conftest.$ac_ext >&5
2241 gt_cv_func_gettext_libc=no
2246 echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6
2248 if test "$gt_cv_func_gettext_libc" != "yes"; then
2249 echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6
2250 echo "configure:2251: checking for bindtextdomain in -lintl" >&5
2251 ac_lib_var=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'`
2252 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2253 echo $ac_n "(cached) $ac_c" 1>&6
2255 ac_save_LIBS="$LIBS"
2257 cat > conftest.$ac_ext <<EOF
2258 #line 2259 "configure"
2259 #include "confdefs.h"
2260 /* Override any gcc2 internal prototype to avoid an error. */
2261 /* We use char because int might match the return type of a gcc2
2262 builtin and then its argument prototype would still apply. */
2263 char bindtextdomain();
2269 if { (eval echo configure:2270: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2271 eval "ac_cv_lib_$ac_lib_var=yes"
2273 echo "configure: failed program was:" >&5
2274 cat conftest.$ac_ext >&5
2276 eval "ac_cv_lib_$ac_lib_var=no"
2279 LIBS="$ac_save_LIBS"
2282 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2283 echo "$ac_t""yes" 1>&6
2284 echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6
2285 echo "configure:2286: checking for gettext in libintl" >&5
2286 if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then
2287 echo $ac_n "(cached) $ac_c" 1>&6
2289 cat > conftest.$ac_ext <<EOF
2290 #line 2291 "configure"
2291 #include "confdefs.h"
2294 return (int) gettext ("")
2297 if { (eval echo configure:2298: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2299 gt_cv_func_gettext_libintl=yes
2301 echo "configure: failed program was:" >&5
2302 cat conftest.$ac_ext >&5
2304 gt_cv_func_gettext_libintl=no
2309 echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6
2311 echo "$ac_t""no" 1>&6
2316 if test "$gt_cv_func_gettext_libc" = "yes" \
2317 || test "$gt_cv_func_gettext_libintl" = "yes"; then
2318 cat >> confdefs.h <<\EOF
2319 #define HAVE_GETTEXT 1
2322 # Extract the first word of "msgfmt", so it can be a program name with args.
2323 set dummy msgfmt; ac_word=$2
2324 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2325 echo "configure:2326: checking for $ac_word" >&5
2326 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2327 echo $ac_n "(cached) $ac_c" 1>&6
2331 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
2334 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2335 for ac_dir in $PATH; do
2336 test -z "$ac_dir" && ac_dir=.
2337 if test -f $ac_dir/$ac_word; then
2338 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
2339 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
2345 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
2349 MSGFMT="$ac_cv_path_MSGFMT"
2350 if test -n "$MSGFMT"; then
2351 echo "$ac_t""$MSGFMT" 1>&6
2353 echo "$ac_t""no" 1>&6
2355 if test "$MSGFMT" != "no"; then
2356 for ac_func in dcgettext
2358 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2359 echo "configure:2360: checking for $ac_func" >&5
2360 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2361 echo $ac_n "(cached) $ac_c" 1>&6
2363 cat > conftest.$ac_ext <<EOF
2364 #line 2365 "configure"
2365 #include "confdefs.h"
2366 /* System header to define __stub macros and hopefully few prototypes,
2367 which can conflict with char $ac_func(); below. */
2369 /* Override any gcc2 internal prototype to avoid an error. */
2370 /* We use char because int might match the return type of a gcc2
2371 builtin and then its argument prototype would still apply. */
2376 /* The GNU C library defines this for functions which it implements
2377 to always fail with ENOSYS. Some functions are actually named
2378 something starting with __ and the normal name is an alias. */
2379 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2387 if { (eval echo configure:2388: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2389 eval "ac_cv_func_$ac_func=yes"
2391 echo "configure: failed program was:" >&5
2392 cat conftest.$ac_ext >&5
2394 eval "ac_cv_func_$ac_func=no"
2399 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2400 echo "$ac_t""yes" 1>&6
2401 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2402 cat >> confdefs.h <<EOF
2403 #define $ac_tr_func 1
2407 echo "$ac_t""no" 1>&6
2411 # Extract the first word of "gmsgfmt", so it can be a program name with args.
2412 set dummy gmsgfmt; ac_word=$2
2413 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2414 echo "configure:2415: checking for $ac_word" >&5
2415 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2416 echo $ac_n "(cached) $ac_c" 1>&6
2420 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
2423 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
2426 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2427 for ac_dir in $PATH; do
2428 test -z "$ac_dir" && ac_dir=.
2429 if test -f $ac_dir/$ac_word; then
2430 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
2435 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
2439 GMSGFMT="$ac_cv_path_GMSGFMT"
2440 if test -n "$GMSGFMT"; then
2441 echo "$ac_t""$GMSGFMT" 1>&6
2443 echo "$ac_t""no" 1>&6
2446 # Extract the first word of "xgettext", so it can be a program name with args.
2447 set dummy xgettext; ac_word=$2
2448 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2449 echo "configure:2450: checking for $ac_word" >&5
2450 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
2451 echo $ac_n "(cached) $ac_c" 1>&6
2455 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
2458 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2459 for ac_dir in $PATH; do
2460 test -z "$ac_dir" && ac_dir=.
2461 if test -f $ac_dir/$ac_word; then
2462 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
2463 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
2469 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
2473 XGETTEXT="$ac_cv_path_XGETTEXT"
2474 if test -n "$XGETTEXT"; then
2475 echo "$ac_t""$XGETTEXT" 1>&6
2477 echo "$ac_t""no" 1>&6
2480 cat > conftest.$ac_ext <<EOF
2481 #line 2482 "configure"
2482 #include "confdefs.h"
2485 extern int _nl_msg_cat_cntr;
2486 return _nl_msg_cat_cntr
2489 if { (eval echo configure:2490: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2494 echo "configure: failed program was:" >&5
2495 cat conftest.$ac_ext >&5
2506 echo "$ac_t""no" 1>&6
2511 if test "$CATOBJEXT" = "NONE"; then
2512 nls_cv_use_gnu_gettext=yes
2516 if test "$nls_cv_use_gnu_gettext" = "yes"; then
2517 INTLOBJS="\$(GETTOBJS)"
2518 # Extract the first word of "msgfmt", so it can be a program name with args.
2519 set dummy msgfmt; ac_word=$2
2520 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2521 echo "configure:2522: checking for $ac_word" >&5
2522 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2523 echo $ac_n "(cached) $ac_c" 1>&6
2527 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
2530 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2531 for ac_dir in $PATH; do
2532 test -z "$ac_dir" && ac_dir=.
2533 if test -f $ac_dir/$ac_word; then
2534 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
2535 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
2541 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt"
2545 MSGFMT="$ac_cv_path_MSGFMT"
2546 if test -n "$MSGFMT"; then
2547 echo "$ac_t""$MSGFMT" 1>&6
2549 echo "$ac_t""no" 1>&6
2552 # Extract the first word of "gmsgfmt", so it can be a program name with args.
2553 set dummy gmsgfmt; ac_word=$2
2554 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2555 echo "configure:2556: checking for $ac_word" >&5
2556 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2557 echo $ac_n "(cached) $ac_c" 1>&6
2561 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
2564 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
2567 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2568 for ac_dir in $PATH; do
2569 test -z "$ac_dir" && ac_dir=.
2570 if test -f $ac_dir/$ac_word; then
2571 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
2576 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
2580 GMSGFMT="$ac_cv_path_GMSGFMT"
2581 if test -n "$GMSGFMT"; then
2582 echo "$ac_t""$GMSGFMT" 1>&6
2584 echo "$ac_t""no" 1>&6
2587 # Extract the first word of "xgettext", so it can be a program name with args.
2588 set dummy xgettext; ac_word=$2
2589 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2590 echo "configure:2591: checking for $ac_word" >&5
2591 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
2592 echo $ac_n "(cached) $ac_c" 1>&6
2596 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
2599 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2600 for ac_dir in $PATH; do
2601 test -z "$ac_dir" && ac_dir=.
2602 if test -f $ac_dir/$ac_word; then
2603 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
2604 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
2610 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
2614 XGETTEXT="$ac_cv_path_XGETTEXT"
2615 if test -n "$XGETTEXT"; then
2616 echo "$ac_t""$XGETTEXT" 1>&6
2618 echo "$ac_t""no" 1>&6
2622 USE_INCLUDED_LIBINTL=yes
2626 INTLDEPS='$(top_builddir)/../intl/libintl.a'
2628 LIBS=`echo $LIBS | sed -e 's/-lintl//'`
2629 nls_cv_header_intl=libintl.h
2630 nls_cv_header_libgt=libgettext.h
2633 if test "$XGETTEXT" != ":"; then
2634 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
2637 echo "$ac_t""found xgettext programs is not GNU xgettext; ignore it" 1>&6
2642 # We need to process the po/ directory.
2646 nls_cv_header_intl=libintl.h
2647 nls_cv_header_libgt=libgettext.h
2650 # If this is used in GNU gettext we have to set USE_NLS to `yes'
2651 # because some of the sources are only built for this goal.
2652 if test "$PACKAGE" = gettext; then
2654 USE_INCLUDED_LIBINTL=yes
2657 for lang in $ALL_LINGUAS; do
2658 GMOFILES="$GMOFILES $lang.gmo"
2659 POFILES="$POFILES $lang.po"
2675 if test "x$CATOBJEXT" != "x"; then
2676 if test "x$ALL_LINGUAS" = "x"; then
2679 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
2680 echo "configure:2681: checking for catalogs to be installed" >&5
2682 for lang in ${LINGUAS=$ALL_LINGUAS}; do
2683 case "$ALL_LINGUAS" in
2684 *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
2687 LINGUAS=$NEW_LINGUAS
2688 echo "$ac_t""$LINGUAS" 1>&6
2691 if test -n "$LINGUAS"; then
2692 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
2696 if test $ac_cv_header_locale_h = yes; then
2697 INCLUDE_LOCALE_H="#include <locale.h>"
2700 /* The system does not provide the header <locale.h>. Take care yourself. */"
2704 if test -f $srcdir/po2tbl.sed.in; then
2705 if test "$CATOBJEXT" = ".cat"; then
2706 ac_safe=`echo "linux/version.h" | sed 'y%./+-%__p_%'`
2707 echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6
2708 echo "configure:2709: checking for linux/version.h" >&5
2709 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2710 echo $ac_n "(cached) $ac_c" 1>&6
2712 cat > conftest.$ac_ext <<EOF
2713 #line 2714 "configure"
2714 #include "confdefs.h"
2715 #include <linux/version.h>
2717 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2718 { (eval echo configure:2719: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2719 ac_err=`grep -v '^ *+' conftest.out`
2720 if test -z "$ac_err"; then
2722 eval "ac_cv_header_$ac_safe=yes"
2725 echo "configure: failed program was:" >&5
2726 cat conftest.$ac_ext >&5
2728 eval "ac_cv_header_$ac_safe=no"
2732 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2733 echo "$ac_t""yes" 1>&6
2736 echo "$ac_t""no" 1>&6
2741 sed -e '/^#/d' $srcdir/$msgformat-msg.sed > po2msg.sed
2743 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
2744 $srcdir/po2tbl.sed.in > po2tbl.sed
2747 if test "$PACKAGE" = "gettext"; then
2757 MKINSTALLDIRS="\$(srcdir)/../../mkinstalldirs"
2763 if test -d $srcdir/po; then
2764 test -d po || mkdir po
2765 if test "x$srcdir" != "x."; then
2766 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
2767 posrcprefix="$srcdir/"
2769 posrcprefix="../$srcdir/"
2775 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
2776 < $srcdir/po/POTFILES.in > po/POTFILES
2780 # Check for common headers.
2781 # FIXME: Seems to me this can cause problems for i386-windows hosts.
2782 # At one point there were hardcoded AC_DEFINE's if ${host} = i386-*-windows*.
2783 for ac_hdr in stdlib.h string.h strings.h unistd.h time.h
2785 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2786 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2787 echo "configure:2788: checking for $ac_hdr" >&5
2788 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2789 echo $ac_n "(cached) $ac_c" 1>&6
2791 cat > conftest.$ac_ext <<EOF
2792 #line 2793 "configure"
2793 #include "confdefs.h"
2796 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2797 { (eval echo configure:2798: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2798 ac_err=`grep -v '^ *+' conftest.out`
2799 if test -z "$ac_err"; then
2801 eval "ac_cv_header_$ac_safe=yes"
2804 echo "configure: failed program was:" >&5
2805 cat conftest.$ac_ext >&5
2807 eval "ac_cv_header_$ac_safe=no"
2811 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2812 echo "$ac_t""yes" 1>&6
2813 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2814 cat >> confdefs.h <<EOF
2815 #define $ac_tr_hdr 1
2819 echo "$ac_t""no" 1>&6
2823 for ac_hdr in sys/time.h sys/resource.h
2825 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2826 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2827 echo "configure:2828: checking for $ac_hdr" >&5
2828 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2829 echo $ac_n "(cached) $ac_c" 1>&6
2831 cat > conftest.$ac_ext <<EOF
2832 #line 2833 "configure"
2833 #include "confdefs.h"
2836 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2837 { (eval echo configure:2838: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2838 ac_err=`grep -v '^ *+' conftest.out`
2839 if test -z "$ac_err"; then
2841 eval "ac_cv_header_$ac_safe=yes"
2844 echo "configure: failed program was:" >&5
2845 cat conftest.$ac_ext >&5
2847 eval "ac_cv_header_$ac_safe=no"
2851 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2852 echo "$ac_t""yes" 1>&6
2853 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2854 cat >> confdefs.h <<EOF
2855 #define $ac_tr_hdr 1
2859 echo "$ac_t""no" 1>&6
2863 for ac_hdr in fcntl.h fpu_control.h
2865 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2866 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2867 echo "configure:2868: checking for $ac_hdr" >&5
2868 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2869 echo $ac_n "(cached) $ac_c" 1>&6
2871 cat > conftest.$ac_ext <<EOF
2872 #line 2873 "configure"
2873 #include "confdefs.h"
2876 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2877 { (eval echo configure:2878: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2878 ac_err=`grep -v '^ *+' conftest.out`
2879 if test -z "$ac_err"; then
2881 eval "ac_cv_header_$ac_safe=yes"
2884 echo "configure: failed program was:" >&5
2885 cat conftest.$ac_ext >&5
2887 eval "ac_cv_header_$ac_safe=no"
2891 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2892 echo "$ac_t""yes" 1>&6
2893 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2894 cat >> confdefs.h <<EOF
2895 #define $ac_tr_hdr 1
2899 echo "$ac_t""no" 1>&6
2903 for ac_func in getrusage time sigaction __setfpucw
2905 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2906 echo "configure:2907: checking for $ac_func" >&5
2907 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2908 echo $ac_n "(cached) $ac_c" 1>&6
2910 cat > conftest.$ac_ext <<EOF
2911 #line 2912 "configure"
2912 #include "confdefs.h"
2913 /* System header to define __stub macros and hopefully few prototypes,
2914 which can conflict with char $ac_func(); below. */
2916 /* Override any gcc2 internal prototype to avoid an error. */
2917 /* We use char because int might match the return type of a gcc2
2918 builtin and then its argument prototype would still apply. */
2923 /* The GNU C library defines this for functions which it implements
2924 to always fail with ENOSYS. Some functions are actually named
2925 something starting with __ and the normal name is an alias. */
2926 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2934 if { (eval echo configure:2935: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2936 eval "ac_cv_func_$ac_func=yes"
2938 echo "configure: failed program was:" >&5
2939 cat conftest.$ac_ext >&5
2941 eval "ac_cv_func_$ac_func=no"
2946 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2947 echo "$ac_t""yes" 1>&6
2948 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2949 cat >> confdefs.h <<EOF
2950 #define $ac_tr_func 1
2954 echo "$ac_t""no" 1>&6
2959 . ${srcdir}/../../bfd/configure.host
2963 USE_MAINTAINER_MODE=no
2964 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
2965 if test "${enable_maintainer_mode+set}" = set; then
2966 enableval="$enable_maintainer_mode"
2967 case "${enableval}" in
2968 yes) MAINT="" USE_MAINTAINER_MODE=yes ;;
2970 *) { echo "configure: error: "--enable-maintainer-mode does not take a value"" 1>&2; exit 1; }; MAINT="#" ;;
2972 if test x"$silent" != x"yes" && test x"$MAINT" = x""; then
2973 echo "Setting maintainer mode" 6>&1
2981 # Check whether --enable-sim-bswap or --disable-sim-bswap was given.
2982 if test "${enable_sim_bswap+set}" = set; then
2983 enableval="$enable_sim_bswap"
2984 case "${enableval}" in
2985 yes) sim_bswap="-DWITH_BSWAP=1 -DUSE_BSWAP=1";;
2986 no) sim_bswap="-DWITH_BSWAP=0";;
2987 *) { echo "configure: error: "--enable-sim-bswap does not take a value"" 1>&2; exit 1; }; sim_bswap="";;
2989 if test x"$silent" != x"yes" && test x"$sim_bswap" != x""; then
2990 echo "Setting bswap flags = $sim_bswap" 6>&1
2998 # Check whether --enable-sim-cflags or --disable-sim-cflags was given.
2999 if test "${enable_sim_cflags+set}" = set; then
3000 enableval="$enable_sim_cflags"
3001 case "${enableval}" in
3002 yes) sim_cflags="-O2 -fomit-frame-pointer";;
3003 trace) { echo "configure: error: "Please use --enable-sim-debug instead."" 1>&2; exit 1; }; sim_cflags="";;
3005 *) sim_cflags=`echo "${enableval}" | sed -e "s/,/ /g"`;;
3007 if test x"$silent" != x"yes" && test x"$sim_cflags" != x""; then
3008 echo "Setting sim cflags = $sim_cflags" 6>&1
3016 # Check whether --enable-sim-debug or --disable-sim-debug was given.
3017 if test "${enable_sim_debug+set}" = set; then
3018 enableval="$enable_sim_debug"
3019 case "${enableval}" in
3020 yes) sim_debug="-DDEBUG=7 -DWITH_DEBUG=7";;
3021 no) sim_debug="-DDEBUG=0 -DWITH_DEBUG=0";;
3022 *) sim_debug="-DDEBUG='(${enableval})' -DWITH_DEBUG='(${enableval})'";;
3024 if test x"$silent" != x"yes" && test x"$sim_debug" != x""; then
3025 echo "Setting sim debug = $sim_debug" 6>&1
3033 # Check whether --enable-sim-stdio or --disable-sim-stdio was given.
3034 if test "${enable_sim_stdio+set}" = set; then
3035 enableval="$enable_sim_stdio"
3036 case "${enableval}" in
3037 yes) sim_stdio="-DWITH_STDIO=DO_USE_STDIO";;
3038 no) sim_stdio="-DWITH_STDIO=DONT_USE_STDIO";;
3039 *) { echo "configure: error: "Unknown value $enableval passed to --enable-sim-stdio"" 1>&2; exit 1; }; sim_stdio="";;
3041 if test x"$silent" != x"yes" && test x"$sim_stdio" != x""; then
3042 echo "Setting stdio flags = $sim_stdio" 6>&1
3050 # Check whether --enable-sim-trace or --disable-sim-trace was given.
3051 if test "${enable_sim_trace+set}" = set; then
3052 enableval="$enable_sim_trace"
3053 case "${enableval}" in
3054 yes) sim_trace="-DTRACE=1 -DWITH_TRACE=-1";;
3055 no) sim_trace="-DTRACE=0 -DWITH_TRACE=0";;
3057 sim_trace="-DTRACE='(${enableval})' -DWITH_TRACE='(${enableval})'";;
3060 for x in `echo "$enableval" | sed -e "s/,/ /g"`; do
3061 if test x"$sim_trace" = x; then
3062 sim_trace="-DWITH_TRACE='(TRACE_$x"
3064 sim_trace="${sim_trace}|TRACE_$x"
3067 sim_trace="$sim_trace)'" ;;
3069 if test x"$silent" != x"yes" && test x"$sim_trace" != x""; then
3070 echo "Setting sim trace = $sim_trace" 6>&1
3078 # Check whether --enable-sim-profile or --disable-sim-profile was given.
3079 if test "${enable_sim_profile+set}" = set; then
3080 enableval="$enable_sim_profile"
3081 case "${enableval}" in
3082 yes) sim_profile="-DPROFILE=1 -DWITH_PROFILE=-1";;
3083 no) sim_profile="-DPROFILE=0 -DWITH_PROFILE=0";;
3085 sim_profile="-DPROFILE='(${enableval})' -DWITH_PROFILE='(${enableval})'";;
3088 for x in `echo "$enableval" | sed -e "s/,/ /g"`; do
3089 if test x"$sim_profile" = x; then
3090 sim_profile="-DWITH_PROFILE='(PROFILE_$x"
3092 sim_profile="${sim_profile}|PROFILE_$x"
3095 sim_profile="$sim_profile)'" ;;
3097 if test x"$silent" != x"yes" && test x"$sim_profile" != x""; then
3098 echo "Setting sim profile = $sim_profile" 6>&1
3106 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
3107 echo "configure:3108: checking return type of signal handlers" >&5
3108 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
3109 echo $ac_n "(cached) $ac_c" 1>&6
3111 cat > conftest.$ac_ext <<EOF
3112 #line 3113 "configure"
3113 #include "confdefs.h"
3114 #include <sys/types.h>
3120 extern "C" void (*signal (int, void (*)(int)))(int);
3122 void (*signal ()) ();
3129 if { (eval echo configure:3130: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3131 ac_cv_type_signal=void
3133 echo "configure: failed program was:" >&5
3134 cat conftest.$ac_ext >&5
3136 ac_cv_type_signal=int
3141 echo "$ac_t""$ac_cv_type_signal" 1>&6
3142 cat >> confdefs.h <<EOF
3143 #define RETSIGTYPE $ac_cv_type_signal
3152 sim_link_links=tconfig.h
3153 if test -f ${srcdir}/tconfig.in
3155 sim_link_files=tconfig.in
3157 sim_link_files=../common/tconfig.in
3160 # targ-vals.def points to the libc macro description file.
3162 *-*-*) TARG_VALS_DEF=../common/nltvals.def ;;
3164 sim_link_files="${sim_link_files} ${TARG_VALS_DEF}"
3165 sim_link_links="${sim_link_links} targ-vals.def"
3170 # Check whether --enable-sim-warnings or --disable-sim-warnings was given.
3171 if test "${enable_sim_warnings+set}" = set; then
3172 enableval="$enable_sim_warnings"
3173 case "${enableval}" in
3174 yes) sim_warnings="-Werror -Wall -Wpointer-arith -Wmissing-prototypes -Wmissing-declarations ";;
3175 no) sim_warnings="-w";;
3176 *) sim_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
3178 if test x"$silent" != x"yes" && test x"$sim_warnings" != x""; then
3179 echo "Setting warning flags = $sim_warnings" 6>&1
3186 for ac_hdr in unistd.h
3188 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3189 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3190 echo "configure:3191: checking for $ac_hdr" >&5
3191 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3192 echo $ac_n "(cached) $ac_c" 1>&6
3194 cat > conftest.$ac_ext <<EOF
3195 #line 3196 "configure"
3196 #include "confdefs.h"
3199 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3200 { (eval echo configure:3201: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3201 ac_err=`grep -v '^ *+' conftest.out`
3202 if test -z "$ac_err"; then
3204 eval "ac_cv_header_$ac_safe=yes"
3207 echo "configure: failed program was:" >&5
3208 cat conftest.$ac_ext >&5
3210 eval "ac_cv_header_$ac_safe=no"
3214 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3215 echo "$ac_t""yes" 1>&6
3216 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3217 cat >> confdefs.h <<EOF
3218 #define $ac_tr_hdr 1
3222 echo "$ac_t""no" 1>&6
3231 cat > confcache <<\EOF
3232 # This file is a shell script that caches the results of configure
3233 # tests run on this system so they can be shared between configure
3234 # scripts and configure runs. It is not useful on other systems.
3235 # If it contains results you don't want to keep, you may remove or edit it.
3237 # By default, configure uses ./config.cache as the cache file,
3238 # creating it if it does not exist already. You can give configure
3239 # the --cache-file=FILE option to use a different cache file; that is
3240 # what configure does when it calls configure scripts in
3241 # subdirectories, so they share the cache.
3242 # Giving --cache-file=/dev/null disables caching, for debugging configure.
3243 # config.status only pays attention to the cache file if you give it the
3244 # --recheck option to rerun configure.
3247 # The following way of writing the cache mishandles newlines in values,
3248 # but we know of no workaround that is simple, portable, and efficient.
3249 # So, don't put newlines in cache variables' values.
3250 # Ultrix sh set writes to stderr and can't be redirected directly,
3251 # and sets the high bit in the cache file unless we assign to the vars.
3253 case `(ac_space=' '; set) 2>&1 | grep ac_space` in
3255 # `set' does not quote correctly, so add quotes (double-quote substitution
3256 # turns \\\\ into \\, and sed turns \\ into \).
3258 -e "s/'/'\\\\''/g" \
3259 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
3262 # `set' quotes correctly as required by POSIX, so do not add quotes.
3263 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
3266 if cmp -s $cache_file confcache; then
3269 if test -w $cache_file; then
3270 echo "updating cache $cache_file"
3271 cat confcache > $cache_file
3273 echo "not updating unwritable cache $cache_file"
3278 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
3280 test "x$prefix" = xNONE && prefix=$ac_default_prefix
3281 # Let make expand exec_prefix.
3282 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3284 # Any assignment to VPATH causes Sun make to only execute
3285 # the first set of double-colon rules, so remove it if not needed.
3286 # If there is a colon in the path, we need to keep it.
3287 if test "x$srcdir" = x.; then
3288 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
3291 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
3293 DEFS=-DHAVE_CONFIG_H
3295 # Without the "./", some shells look in PATH for config.status.
3296 : ${CONFIG_STATUS=./config.status}
3298 echo creating $CONFIG_STATUS
3299 rm -f $CONFIG_STATUS
3300 cat > $CONFIG_STATUS <<EOF
3302 # Generated automatically by configure.
3303 # Run this file to recreate the current configuration.
3304 # This directory was configured as follows,
3305 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
3307 # $0 $ac_configure_args
3309 # Compiler output produced by configure, useful for debugging
3310 # configure, is in ./config.log if it exists.
3312 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
3315 case "\$ac_option" in
3316 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3317 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
3318 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
3319 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
3320 echo "$CONFIG_STATUS generated by autoconf version 2.12.1"
3322 -help | --help | --hel | --he | --h)
3323 echo "\$ac_cs_usage"; exit 0 ;;
3324 *) echo "\$ac_cs_usage"; exit 1 ;;
3328 ac_given_srcdir=$srcdir
3329 ac_given_INSTALL="$INSTALL"
3331 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
3333 cat >> $CONFIG_STATUS <<EOF
3335 # Protect against being on the right side of a sed subst in config.status.
3336 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
3337 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
3340 s%@sim_environment@%$sim_environment%g
3341 s%@sim_alignment@%$sim_alignment%g
3342 s%@sim_assert@%$sim_assert%g
3343 s%@sim_bitsize@%$sim_bitsize%g
3344 s%@sim_endian@%$sim_endian%g
3345 s%@sim_hostendian@%$sim_hostendian%g
3346 s%@sim_float@%$sim_float%g
3347 s%@sim_scache@%$sim_scache%g
3348 s%@sim_default_model@%$sim_default_model%g
3349 s%@sim_hardware@%$sim_hardware%g
3350 s%@sim_hw_obj@%$sim_hw_obj%g
3351 s%@sim_hw@%$sim_hw%g
3352 s%@sim_inline@%$sim_inline%g
3353 s%@sim_packages@%$sim_packages%g
3354 s%@sim_regparm@%$sim_regparm%g
3355 s%@sim_reserved_bits@%$sim_reserved_bits%g
3356 s%@sim_smp@%$sim_smp%g
3357 s%@sim_stdcall@%$sim_stdcall%g
3358 s%@sim_xor_endian@%$sim_xor_endian%g
3359 s%@sim_warnings@%$sim_warnings%g
3361 s%@CFLAGS@%$CFLAGS%g
3362 s%@CPPFLAGS@%$CPPFLAGS%g
3363 s%@CXXFLAGS@%$CXXFLAGS%g
3365 s%@LDFLAGS@%$LDFLAGS%g
3367 s%@exec_prefix@%$exec_prefix%g
3368 s%@prefix@%$prefix%g
3369 s%@program_transform_name@%$program_transform_name%g
3370 s%@bindir@%$bindir%g
3371 s%@sbindir@%$sbindir%g
3372 s%@libexecdir@%$libexecdir%g
3373 s%@datadir@%$datadir%g
3374 s%@sysconfdir@%$sysconfdir%g
3375 s%@sharedstatedir@%$sharedstatedir%g
3376 s%@localstatedir@%$localstatedir%g
3377 s%@libdir@%$libdir%g
3378 s%@includedir@%$includedir%g
3379 s%@oldincludedir@%$oldincludedir%g
3380 s%@infodir@%$infodir%g
3381 s%@mandir@%$mandir%g
3383 s%@host_alias@%$host_alias%g
3384 s%@host_cpu@%$host_cpu%g
3385 s%@host_vendor@%$host_vendor%g
3386 s%@host_os@%$host_os%g
3387 s%@target@%$target%g
3388 s%@target_alias@%$target_alias%g
3389 s%@target_cpu@%$target_cpu%g
3390 s%@target_vendor@%$target_vendor%g
3391 s%@target_os@%$target_os%g
3393 s%@build_alias@%$build_alias%g
3394 s%@build_cpu@%$build_cpu%g
3395 s%@build_vendor@%$build_vendor%g
3396 s%@build_os@%$build_os%g
3398 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
3399 s%@INSTALL_DATA@%$INSTALL_DATA%g
3400 s%@CC_FOR_BUILD@%$CC_FOR_BUILD%g
3401 s%@HDEFINES@%$HDEFINES%g
3403 s%@RANLIB@%$RANLIB%g
3404 s%@SET_MAKE@%$SET_MAKE%g
3406 s%@ALLOCA@%$ALLOCA%g
3407 s%@USE_NLS@%$USE_NLS%g
3408 s%@MSGFMT@%$MSGFMT%g
3409 s%@GMSGFMT@%$GMSGFMT%g
3410 s%@XGETTEXT@%$XGETTEXT%g
3411 s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
3412 s%@CATALOGS@%$CATALOGS%g
3413 s%@CATOBJEXT@%$CATOBJEXT%g
3414 s%@DATADIRNAME@%$DATADIRNAME%g
3415 s%@GMOFILES@%$GMOFILES%g
3416 s%@INSTOBJEXT@%$INSTOBJEXT%g
3417 s%@INTLDEPS@%$INTLDEPS%g
3418 s%@INTLLIBS@%$INTLLIBS%g
3419 s%@INTLOBJS@%$INTLOBJS%g
3420 s%@POFILES@%$POFILES%g
3422 s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g
3424 s%@GT_YES@%$GT_YES%g
3425 s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
3428 s%@sim_bswap@%$sim_bswap%g
3429 s%@sim_cflags@%$sim_cflags%g
3430 s%@sim_debug@%$sim_debug%g
3431 s%@sim_stdio@%$sim_stdio%g
3432 s%@sim_trace@%$sim_trace%g
3433 s%@sim_profile@%$sim_profile%g
3438 cat >> $CONFIG_STATUS <<\EOF
3440 # Split the substitutions into bite-sized pieces for seds with
3441 # small command number limits, like on Digital OSF/1 and HP-UX.
3442 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
3443 ac_file=1 # Number of current file.
3444 ac_beg=1 # First line for current file.
3445 ac_end=$ac_max_sed_cmds # Line after last line for current file.
3448 while $ac_more_lines; do
3449 if test $ac_beg -gt 1; then
3450 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
3452 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
3454 if test ! -s conftest.s$ac_file; then
3456 rm -f conftest.s$ac_file
3458 if test -z "$ac_sed_cmds"; then
3459 ac_sed_cmds="sed -f conftest.s$ac_file"
3461 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
3463 ac_file=`expr $ac_file + 1`
3465 ac_end=`expr $ac_end + $ac_max_sed_cmds`
3468 if test -z "$ac_sed_cmds"; then
3473 cat >> $CONFIG_STATUS <<EOF
3475 CONFIG_FILES=\${CONFIG_FILES-"Makefile.sim:Makefile.in Make-common.sim:../common/Make-common.in .gdbinit:../common/gdbinit.in"}
3477 cat >> $CONFIG_STATUS <<\EOF
3478 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
3479 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3481 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3482 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3483 *) ac_file_in="${ac_file}.in" ;;
3486 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
3488 # Remove last slash and all that follows it. Not all systems have dirname.
3489 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3490 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3491 # The file is in a subdirectory.
3492 test ! -d "$ac_dir" && mkdir "$ac_dir"
3493 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
3494 # A "../" for each directory in $ac_dir_suffix.
3495 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
3497 ac_dir_suffix= ac_dots=
3500 case "$ac_given_srcdir" in
3502 if test -z "$ac_dots"; then top_srcdir=.
3503 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
3504 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
3506 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
3507 top_srcdir="$ac_dots$ac_given_srcdir" ;;
3510 case "$ac_given_INSTALL" in
3511 [/$]*) INSTALL="$ac_given_INSTALL" ;;
3512 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
3515 echo creating "$ac_file"
3517 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
3519 *Makefile*) ac_comsub="1i\\
3520 # $configure_input" ;;
3524 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3526 s%@configure_input@%$configure_input%g
3527 s%@srcdir@%$srcdir%g
3528 s%@top_srcdir@%$top_srcdir%g
3529 s%@INSTALL@%$INSTALL%g
3530 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
3534 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
3535 # NAME is the cpp macro being defined and VALUE is the value it is being given.
3537 # ac_d sets the value in "#define NAME VALUE" lines.
3538 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
3539 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
3542 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
3543 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3544 ac_uB='\([ ]\)%\1#\2define\3'
3547 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
3548 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3549 ac_eB='$%\1#\2define\3'
3553 if test "${CONFIG_HEADERS+set}" != set; then
3555 cat >> $CONFIG_STATUS <<EOF
3556 CONFIG_HEADERS="config.h:config.in"
3558 cat >> $CONFIG_STATUS <<\EOF
3560 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
3561 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3563 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3564 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3565 *) ac_file_in="${ac_file}.in" ;;
3568 echo creating $ac_file
3570 rm -f conftest.frag conftest.in conftest.out
3571 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3572 cat $ac_file_inputs > conftest.in
3576 # Transform confdefs.h into a sed script conftest.vals that substitutes
3577 # the proper values into config.h.in to produce config.h. And first:
3578 # Protect against being on the right side of a sed subst in config.status.
3579 # Protect against being in an unquoted here document in config.status.
3581 cat > conftest.hdr <<\EOF
3584 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
3588 sed -n -f conftest.hdr confdefs.h > conftest.vals
3591 # This sed command replaces #undef with comments. This is necessary, for
3592 # example, in the case of _POSIX_SOURCE, which is predefined and required
3593 # on some systems where configure will not decide to define it.
3594 cat >> conftest.vals <<\EOF
3595 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
3598 # Break up conftest.vals because some shells have a limit on
3599 # the size of here documents, and old seds have small limits too.
3604 ac_lines=`grep -c . conftest.vals`
3605 # grep -c gives empty output for an empty file on some AIX systems.
3606 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
3607 # Write a limited-size here document to conftest.frag.
3608 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
3609 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
3611 sed -f conftest.frag conftest.in > conftest.out
3613 mv conftest.out conftest.in
3615 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
3617 mv conftest.tail conftest.vals
3621 cat >> $CONFIG_STATUS <<\EOF
3622 rm -f conftest.frag conftest.h
3623 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
3624 cat conftest.in >> conftest.h
3626 if cmp -s $ac_file conftest.h 2>/dev/null; then
3627 echo "$ac_file is unchanged"
3630 # Remove last slash and all that follows it. Not all systems have dirname.
3631 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3632 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3633 # The file is in a subdirectory.
3634 test ! -d "$ac_dir" && mkdir "$ac_dir"
3637 mv conftest.h $ac_file
3643 cat >> $CONFIG_STATUS <<EOF
3644 ac_sources="$sim_link_files"
3645 ac_dests="$sim_link_links"
3648 cat >> $CONFIG_STATUS <<\EOF
3649 srcdir=$ac_given_srcdir
3650 while test -n "$ac_sources"; do
3651 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
3652 set $ac_sources; ac_source=$1; shift; ac_sources=$*
3654 echo "linking $srcdir/$ac_source to $ac_dest"
3656 if test ! -r $srcdir/$ac_source; then
3657 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
3661 # Make relative symlinks.
3662 # Remove last slash and all that follows it. Not all systems have dirname.
3663 ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'`
3664 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
3665 # The dest file is in a subdirectory.
3666 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
3667 ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`"
3668 # A "../" for each directory in $ac_dest_dir_suffix.
3669 ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'`
3671 ac_dest_dir_suffix= ac_dots=
3675 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
3676 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
3679 # Make a symlink if possible; otherwise try a hard link.
3680 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
3681 ln $srcdir/$ac_source $ac_dest; then :
3683 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
3687 cat >> $CONFIG_STATUS <<EOF
3690 cat >> $CONFIG_STATUS <<\EOF
3691 case "x$CONFIG_FILES" in
3693 echo "Merging Makefile.sim+Make-common.sim into Makefile ..."
3694 rm -f Makesim1.tmp Makesim2.tmp Makefile
3695 sed -n -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ p' <Make-common.sim >Makesim1.tmp
3696 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >Makesim2.tmp
3697 sed -e '/^## COMMON_PRE_/ r Makesim1.tmp' \
3698 -e '/^## COMMON_POST_/ r Makesim2.tmp' \
3699 <Makefile.sim >Makefile
3700 rm -f Makefile.sim Make-common.sim Makesim1.tmp Makesim2.tmp
3703 case "x$CONFIG_HEADERS" in xconfig.h:config.in) echo > stamp-h ;; esac
3707 chmod +x $CONFIG_STATUS
3708 rm -fr confdefs* $ac_clean_files
3709 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1