URL
https://opencores.org/ocsvn/or1k/or1k/trunk
Subversion Repositories or1k
[/] [or1k/] [trunk/] [insight/] [sim/] [sh/] [configure] - Rev 1782
Go to most recent revision | Compare with Previous | Blame | View Log
#! /bin/shsim_inline="-DDEFAULT_INLINE=0"# This file is derived from `gettext.m4'. The difference is that the# included macros assume Cygnus-style source and build trees.# Macro to add for using GNU gettext.# Ulrich Drepper <drepper@cygnus.com>, 1995.## This file file be copied and used freely without restrictions. It can# be used in projects which are not available under the GNU Public License# but which still want to provide support for the GNU gettext functionality.# Please note that the actual code is *not* freely available.# serial 3# Search path for a program which passes the given test.# Ulrich Drepper <drepper@cygnus.com>, 1996.## This file file be copied and used freely without restrictions. It can# be used in projects which are not available under the GNU Public License# but which still want to provide support for the GNU gettext functionality.# Please note that the actual code is *not* freely available.# serial 1# Check whether LC_MESSAGES is available in <locale.h>.# Ulrich Drepper <drepper@cygnus.com>, 1995.## This file file be copied and used freely without restrictions. It can# be used in projects which are not available under the GNU Public License# but which still want to provide support for the GNU gettext functionality.# Please note that the actual code is *not* freely available.# serial 1# Guess values for system-dependent variables and create Makefiles.# Generated automatically using autoconf version 2.13# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.## This configure script is free software; the Free Software Foundation# gives unlimited permission to copy, distribute and modify it.# Defaults:ac_help=ac_default_prefix=/usr/local# Any additions from configure.in:ac_help="$ac_help--disable-nls do not use Native Language Support"ac_help="$ac_help--with-included-gettext use the GNU gettext library included here"ac_help="$ac_help--enable-maintainer-mode Enable developer functionality."ac_help="$ac_help--enable-sim-bswap Use Host specific BSWAP instruction."ac_help="$ac_help--enable-sim-cflags=opts Extra CFLAGS for use in building simulator"ac_help="$ac_help--enable-sim-debug=opts Enable debugging flags"ac_help="$ac_help--enable-sim-stdio Specify whether to use stdio for console input/output."ac_help="$ac_help--enable-sim-trace=opts Enable tracing flags"ac_help="$ac_help--enable-sim-profile=opts Enable profiling flags"# Initialize some variables set by options.# The variables have the same names as the options, with# dashes changed to underlines.build=NONEcache_file=./config.cacheexec_prefix=NONEhost=NONEno_create=nonopt=NONEno_recursion=prefix=NONEprogram_prefix=NONEprogram_suffix=NONEprogram_transform_name=s,x,x,silent=site=sitefile=srcdir=target=NONEverbose=x_includes=NONEx_libraries=NONEbindir='${exec_prefix}/bin'sbindir='${exec_prefix}/sbin'libexecdir='${exec_prefix}/libexec'datadir='${prefix}/share'sysconfdir='${prefix}/etc'sharedstatedir='${prefix}/com'localstatedir='${prefix}/var'libdir='${exec_prefix}/lib'includedir='${prefix}/include'oldincludedir='/usr/include'infodir='${prefix}/info'mandir='${prefix}/man'# Initialize some other variables.subdirs=MFLAGS= MAKEFLAGS=SHELL=${CONFIG_SHELL-/bin/sh}# Maximum number of lines to put in a shell here document.ac_max_here_lines=12ac_prev=for ac_optiondo# If the previous option needs an argument, assign it.if test -n "$ac_prev"; theneval "$ac_prev=\$ac_option"ac_prev=continueficase "$ac_option" in-*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;*) ac_optarg= ;;esac# Accept the important Cygnus configure options, so we can diagnose typos.case "$ac_option" in-bindir | --bindir | --bindi | --bind | --bin | --bi)ac_prev=bindir ;;-bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)bindir="$ac_optarg" ;;-build | --build | --buil | --bui | --bu)ac_prev=build ;;-build=* | --build=* | --buil=* | --bui=* | --bu=*)build="$ac_optarg" ;;-cache-file | --cache-file | --cache-fil | --cache-fi \| --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)ac_prev=cache_file ;;-cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \| --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)cache_file="$ac_optarg" ;;-datadir | --datadir | --datadi | --datad | --data | --dat | --da)ac_prev=datadir ;;-datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \| --da=*)datadir="$ac_optarg" ;;-disable-* | --disable-*)ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`# Reject names that are not valid shell variable names.if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then{ echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }fiac_feature=`echo $ac_feature| sed 's/-/_/g'`eval "enable_${ac_feature}=no" ;;-enable-* | --enable-*)ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`# Reject names that are not valid shell variable names.if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then{ echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }fiac_feature=`echo $ac_feature| sed 's/-/_/g'`case "$ac_option" in*=*) ;;*) ac_optarg=yes ;;esaceval "enable_${ac_feature}='$ac_optarg'" ;;-exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \| --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \| --exec | --exe | --ex)ac_prev=exec_prefix ;;-exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \| --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \| --exec=* | --exe=* | --ex=*)exec_prefix="$ac_optarg" ;;-gas | --gas | --ga | --g)# Obsolete; use --with-gas.with_gas=yes ;;-help | --help | --hel | --he)# Omit some internal or obsolete options to make the list less imposing.# This message is too long to be a string in the A/UX 3.1 sh.cat << EOFUsage: configure [options] [host]Options: [defaults in brackets after descriptions]Configuration:--cache-file=FILE cache test results in FILE--help print this message--no-create do not create output files--quiet, --silent do not print \`checking...' messages--site-file=FILE use FILE as the site file--version print the version of autoconf that created configureDirectory and file names:--prefix=PREFIX install architecture-independent files in PREFIX[$ac_default_prefix]--exec-prefix=EPREFIX install architecture-dependent files in EPREFIX[same as prefix]--bindir=DIR user executables in DIR [EPREFIX/bin]--sbindir=DIR system admin executables in DIR [EPREFIX/sbin]--libexecdir=DIR program executables in DIR [EPREFIX/libexec]--datadir=DIR read-only architecture-independent data in DIR[PREFIX/share]--sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]--sharedstatedir=DIR modifiable architecture-independent data in DIR[PREFIX/com]--localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]--libdir=DIR object code libraries in DIR [EPREFIX/lib]--includedir=DIR C header files in DIR [PREFIX/include]--oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]--infodir=DIR info documentation in DIR [PREFIX/info]--mandir=DIR man documentation in DIR [PREFIX/man]--srcdir=DIR find the sources in DIR [configure dir or ..]--program-prefix=PREFIX prepend PREFIX to installed program names--program-suffix=SUFFIX append SUFFIX to installed program names--program-transform-name=PROGRAMrun sed PROGRAM on installed program namesEOFcat << EOFHost type:--build=BUILD configure for building on BUILD [BUILD=HOST]--host=HOST configure for HOST [guessed]--target=TARGET configure for TARGET [TARGET=HOST]Features and packages:--disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)--enable-FEATURE[=ARG] include FEATURE [ARG=yes]--with-PACKAGE[=ARG] use PACKAGE [ARG=yes]--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)--x-includes=DIR X include files are in DIR--x-libraries=DIR X library files are in DIREOFif test -n "$ac_help"; thenecho "--enable and --with options recognized:$ac_help"fiexit 0 ;;-host | --host | --hos | --ho)ac_prev=host ;;-host=* | --host=* | --hos=* | --ho=*)host="$ac_optarg" ;;-includedir | --includedir | --includedi | --included | --include \| --includ | --inclu | --incl | --inc)ac_prev=includedir ;;-includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \| --includ=* | --inclu=* | --incl=* | --inc=*)includedir="$ac_optarg" ;;-infodir | --infodir | --infodi | --infod | --info | --inf)ac_prev=infodir ;;-infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)infodir="$ac_optarg" ;;-libdir | --libdir | --libdi | --libd)ac_prev=libdir ;;-libdir=* | --libdir=* | --libdi=* | --libd=*)libdir="$ac_optarg" ;;-libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \| --libexe | --libex | --libe)ac_prev=libexecdir ;;-libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \| --libexe=* | --libex=* | --libe=*)libexecdir="$ac_optarg" ;;-localstatedir | --localstatedir | --localstatedi | --localstated \| --localstate | --localstat | --localsta | --localst \| --locals | --local | --loca | --loc | --lo)ac_prev=localstatedir ;;-localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \| --localstate=* | --localstat=* | --localsta=* | --localst=* \| --locals=* | --local=* | --loca=* | --loc=* | --lo=*)localstatedir="$ac_optarg" ;;-mandir | --mandir | --mandi | --mand | --man | --ma | --m)ac_prev=mandir ;;-mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)mandir="$ac_optarg" ;;-nfp | --nfp | --nf)# Obsolete; use --without-fp.with_fp=no ;;-no-create | --no-create | --no-creat | --no-crea | --no-cre \| --no-cr | --no-c)no_create=yes ;;-no-recursion | --no-recursion | --no-recursio | --no-recursi \| --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)no_recursion=yes ;;-oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \| --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \| --oldin | --oldi | --old | --ol | --o)ac_prev=oldincludedir ;;-oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \| --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \| --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)oldincludedir="$ac_optarg" ;;-prefix | --prefix | --prefi | --pref | --pre | --pr | --p)ac_prev=prefix ;;-prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)prefix="$ac_optarg" ;;-program-prefix | --program-prefix | --program-prefi | --program-pref \| --program-pre | --program-pr | --program-p)ac_prev=program_prefix ;;-program-prefix=* | --program-prefix=* | --program-prefi=* \| --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)program_prefix="$ac_optarg" ;;-program-suffix | --program-suffix | --program-suffi | --program-suff \| --program-suf | --program-su | --program-s)ac_prev=program_suffix ;;-program-suffix=* | --program-suffix=* | --program-suffi=* \| --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)program_suffix="$ac_optarg" ;;-program-transform-name | --program-transform-name \| --program-transform-nam | --program-transform-na \| --program-transform-n | --program-transform- \| --program-transform | --program-transfor \| --program-transfo | --program-transf \| --program-trans | --program-tran \| --progr-tra | --program-tr | --program-t)ac_prev=program_transform_name ;;-program-transform-name=* | --program-transform-name=* \| --program-transform-nam=* | --program-transform-na=* \| --program-transform-n=* | --program-transform-=* \| --program-transform=* | --program-transfor=* \| --program-transfo=* | --program-transf=* \| --program-trans=* | --program-tran=* \| --progr-tra=* | --program-tr=* | --program-t=*)program_transform_name="$ac_optarg" ;;-q | -quiet | --quiet | --quie | --qui | --qu | --q \| -silent | --silent | --silen | --sile | --sil)silent=yes ;;-sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)ac_prev=sbindir ;;-sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \| --sbi=* | --sb=*)sbindir="$ac_optarg" ;;-sharedstatedir | --sharedstatedir | --sharedstatedi \| --sharedstated | --sharedstate | --sharedstat | --sharedsta \| --sharedst | --shareds | --shared | --share | --shar \| --sha | --sh)ac_prev=sharedstatedir ;;-sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \| --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \| --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \| --sha=* | --sh=*)sharedstatedir="$ac_optarg" ;;-site | --site | --sit)ac_prev=site ;;-site=* | --site=* | --sit=*)site="$ac_optarg" ;;-site-file | --site-file | --site-fil | --site-fi | --site-f)ac_prev=sitefile ;;-site-file=* | --site-file=* | --site-fil=* | --site-fi=* | --site-f=*)sitefile="$ac_optarg" ;;-srcdir | --srcdir | --srcdi | --srcd | --src | --sr)ac_prev=srcdir ;;-srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)srcdir="$ac_optarg" ;;-sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \| --syscon | --sysco | --sysc | --sys | --sy)ac_prev=sysconfdir ;;-sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \| --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)sysconfdir="$ac_optarg" ;;-target | --target | --targe | --targ | --tar | --ta | --t)ac_prev=target ;;-target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)target="$ac_optarg" ;;-v | -verbose | --verbose | --verbos | --verbo | --verb)verbose=yes ;;-version | --version | --versio | --versi | --vers)echo "configure generated by autoconf version 2.13"exit 0 ;;-with-* | --with-*)ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`# Reject names that are not valid shell variable names.if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then{ echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }fiac_package=`echo $ac_package| sed 's/-/_/g'`case "$ac_option" in*=*) ;;*) ac_optarg=yes ;;esaceval "with_${ac_package}='$ac_optarg'" ;;-without-* | --without-*)ac_package=`echo $ac_option|sed -e 's/-*without-//'`# Reject names that are not valid shell variable names.if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then{ echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }fiac_package=`echo $ac_package| sed 's/-/_/g'`eval "with_${ac_package}=no" ;;--x)# Obsolete; use --with-x.with_x=yes ;;-x-includes | --x-includes | --x-include | --x-includ | --x-inclu \| --x-incl | --x-inc | --x-in | --x-i)ac_prev=x_includes ;;-x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \| --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)x_includes="$ac_optarg" ;;-x-libraries | --x-libraries | --x-librarie | --x-librari \| --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)ac_prev=x_libraries ;;-x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \| --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)x_libraries="$ac_optarg" ;;-*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; };;*)if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; thenecho "configure: warning: $ac_option: invalid host type" 1>&2fiif test "x$nonopt" != xNONE; then{ echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }finonopt="$ac_option";;esacdoneif test -n "$ac_prev"; then{ echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }fitrap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15# File descriptor usage:# 0 standard input# 1 file creation# 2 errors and warnings# 3 some systems may open it to /dev/tty# 4 used on the Kubota Titan# 6 checking for... messages and results# 5 compiler messages saved in config.logif test "$silent" = yes; thenexec 6>/dev/nullelseexec 6>&1fiexec 5>./config.logecho "\This file contains any messages produced by compilers whilerunning configure, to aid debugging if configure makes a mistake." 1>&5# Strip out --no-create and --no-recursion so they do not pile up.# Also quote any args containing shell metacharacters.ac_configure_args=for ac_argdocase "$ac_arg" in-no-create | --no-create | --no-creat | --no-crea | --no-cre \| --no-cr | --no-c) ;;-no-recursion | --no-recursion | --no-recursio | --no-recursi \| --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;*" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)ac_configure_args="$ac_configure_args '$ac_arg'" ;;*) ac_configure_args="$ac_configure_args $ac_arg" ;;esacdone# NLS nuisances.# Only set these to C if already set. These must not be set unconditionally# because not all systems understand e.g. LANG=C (notably SCO).# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!# Non-C LC_CTYPE values break the ctype check.if test "${LANG+set}" = set; then LANG=C; export LANG; fiif test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fiif test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fiif test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi# confdefs.h avoids OS command line length limits that DEFS can exceed.rm -rf conftest* confdefs.h# AIX cpp loses on an empty file, so make sure it contains at least a newline.echo > confdefs.h# A filename unique to this package, relative to the directory that# configure is in, which we can look for to find out if srcdir is correct.ac_unique_file=Makefile.in# Find the source files, if location was not specified.if test -z "$srcdir"; thenac_srcdir_defaulted=yes# Try the directory containing this script, then its parent.ac_prog=$0ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.srcdir=$ac_confdirif test ! -r $srcdir/$ac_unique_file; thensrcdir=..fielseac_srcdir_defaulted=nofiif test ! -r $srcdir/$ac_unique_file; thenif test "$ac_srcdir_defaulted" = yes; then{ echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }else{ echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }fifisrcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`# Prefer explicitly selected file to automatically selected ones.if test -z "$sitefile"; thenif test -z "$CONFIG_SITE"; thenif test "x$prefix" != xNONE; thenCONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"elseCONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"fifielseCONFIG_SITE="$sitefile"fifor ac_site_file in $CONFIG_SITE; doif test -r "$ac_site_file"; thenecho "loading site script $ac_site_file". "$ac_site_file"fidoneif test -r "$cache_file"; thenecho "loading cache $cache_file". $cache_fileelseecho "creating cache $cache_file"> $cache_filefiac_ext=c# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.ac_cpp='$CPP $CPPFLAGS'ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'cross_compiling=$ac_cv_prog_cc_crossac_exeext=ac_objext=oif (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then# Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; thenac_n= ac_c='' ac_t=' 'elseac_n=-n ac_c= ac_t=fielseac_n= ac_c='\c' ac_t=fiecho $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6echo "configure:679: checking how to run the C preprocessor" >&5# On Suns, sometimes $CPP names a directory.if test -n "$CPP" && test -d "$CPP"; thenCPP=fiif test -z "$CPP"; thenif eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; thenecho $ac_n "(cached) $ac_c" 1>&6else# This must be in double quotes, not single quotes, because CPP may get# substituted into the Makefile and "${CC-cc}" will confuse make.CPP="${CC-cc} -E"# On the NeXT, cc -E runs the code through the compiler's parser,# not just through cpp.cat > conftest.$ac_ext <<EOF#line 694 "configure"#include "confdefs.h"#include <assert.h>Syntax ErrorEOFac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"{ (eval echo configure:700: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`if test -z "$ac_err"; then:elseecho "$ac_err" >&5echo "configure: failed program was:" >&5cat conftest.$ac_ext >&5rm -rf conftest*CPP="${CC-cc} -E -traditional-cpp"cat > conftest.$ac_ext <<EOF#line 711 "configure"#include "confdefs.h"#include <assert.h>Syntax ErrorEOFac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"{ (eval echo configure:717: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`if test -z "$ac_err"; then:elseecho "$ac_err" >&5echo "configure: failed program was:" >&5cat conftest.$ac_ext >&5rm -rf conftest*CPP="${CC-cc} -nologo -E"cat > conftest.$ac_ext <<EOF#line 728 "configure"#include "confdefs.h"#include <assert.h>Syntax ErrorEOFac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"{ (eval echo configure:734: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`if test -z "$ac_err"; then:elseecho "$ac_err" >&5echo "configure: failed program was:" >&5cat conftest.$ac_ext >&5rm -rf conftest*CPP=/lib/cppfirm -f conftest*firm -f conftest*firm -f conftest*ac_cv_prog_CPP="$CPP"fiCPP="$ac_cv_prog_CPP"elseac_cv_prog_CPP="$CPP"fiecho "$ac_t""$CPP" 1>&6echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6echo "configure:759: checking whether ${MAKE-make} sets \${MAKE}" >&5set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; thenecho $ac_n "(cached) $ac_c" 1>&6elsecat > conftestmake <<\EOFall:@echo 'ac_maketemp="${MAKE}"'EOF# GNU make sometimes prints "make[1]: Entering...", which would confuse us.eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`if test -n "$ac_maketemp"; theneval ac_cv_prog_make_${ac_make}_set=yeselseeval ac_cv_prog_make_${ac_make}_set=nofirm -f conftestmakefiif eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; thenecho "$ac_t""yes" 1>&6SET_MAKE=elseecho "$ac_t""no" 1>&6SET_MAKE="MAKE=${MAKE-make}"fiecho $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6echo "configure:786: checking for POSIXized ISC" >&5if test -d /etc/conf/kconfig.d &&grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1thenecho "$ac_t""yes" 1>&6ISC=yes # If later tests want to check for ISC.cat >> confdefs.h <<\EOF#define _POSIX_SOURCE 1EOFif test "$GCC" = yes; thenCC="$CC -posix"elseCC="$CC -Xp"fielseecho "$ac_t""no" 1>&6ISC=fiecho $ac_n "checking for ANSI C header files""... $ac_c" 1>&6echo "configure:807: checking for ANSI C header files" >&5if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; thenecho $ac_n "(cached) $ac_c" 1>&6elsecat > conftest.$ac_ext <<EOF#line 812 "configure"#include "confdefs.h"#include <stdlib.h>#include <stdarg.h>#include <string.h>#include <float.h>EOFac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"{ (eval echo configure:820: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`if test -z "$ac_err"; thenrm -rf conftest*ac_cv_header_stdc=yeselseecho "$ac_err" >&5echo "configure: failed program was:" >&5cat conftest.$ac_ext >&5rm -rf conftest*ac_cv_header_stdc=nofirm -f conftest*if test $ac_cv_header_stdc = yes; then# SunOS 4.x string.h does not declare mem*, contrary to ANSI.cat > conftest.$ac_ext <<EOF#line 837 "configure"#include "confdefs.h"#include <string.h>EOFif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |egrep "memchr" >/dev/null 2>&1; then:elserm -rf conftest*ac_cv_header_stdc=nofirm -f conftest*fiif test $ac_cv_header_stdc = yes; then# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.cat > conftest.$ac_ext <<EOF#line 855 "configure"#include "confdefs.h"#include <stdlib.h>EOFif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |egrep "free" >/dev/null 2>&1; then:elserm -rf conftest*ac_cv_header_stdc=nofirm -f conftest*fiif test $ac_cv_header_stdc = yes; then# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.if test "$cross_compiling" = yes; then:elsecat > conftest.$ac_ext <<EOF#line 876 "configure"#include "confdefs.h"#include <ctype.h>#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))int main () { int i; for (i = 0; i < 256; i++)if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);exit (0); }EOFif { (eval echo configure:887: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/nullthen:elseecho "configure: failed program was:" >&5cat conftest.$ac_ext >&5rm -fr conftest*ac_cv_header_stdc=nofirm -fr conftest*fififiecho "$ac_t""$ac_cv_header_stdc" 1>&6if test $ac_cv_header_stdc = yes; thencat >> confdefs.h <<\EOF#define STDC_HEADERS 1EOFfiecho $ac_n "checking for working const""... $ac_c" 1>&6echo "configure:911: checking for working const" >&5if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; thenecho $ac_n "(cached) $ac_c" 1>&6elsecat > conftest.$ac_ext <<EOF#line 916 "configure"#include "confdefs.h"int main() {/* Ultrix mips cc rejects this. */typedef int charset[2]; const charset x;/* SunOS 4.1.1 cc rejects this. */char const *const *ccp;char **p;/* NEC SVR4.0.2 mips cc rejects this. */struct point {int x, y;};static struct point const zero = {0,0};/* AIX XL C 1.02.0.0 rejects this.It does not let you subtract one const X* pointer from another in an armof an if-expression whose if-part is not a constant expression */const char *g = "string";ccp = &g + (g ? g-g : 0);/* HPUX 7.0 cc rejects these. */++ccp;p = (char**) ccp;ccp = (char const *const *) p;{ /* SCO 3.2v4 cc rejects this. */char *t;char const *s = 0 ? (char *) 0 : (char const *) 0;*t++ = 0;}{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */int x[] = {25, 17};const int *foo = &x[0];++foo;}{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */typedef const int *iptr;iptr p = 0;++p;}{ /* AIX XL C 1.02.0.0 rejects this saying"k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */struct s { int j; const int *ap[3]; };struct s *b; b->j = 5;}{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */const int foo = 10;}; return 0; }EOFif { (eval echo configure:965: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; thenrm -rf conftest*ac_cv_c_const=yeselseecho "configure: failed program was:" >&5cat conftest.$ac_ext >&5rm -rf conftest*ac_cv_c_const=nofirm -f conftest*fiecho "$ac_t""$ac_cv_c_const" 1>&6if test $ac_cv_c_const = no; thencat >> confdefs.h <<\EOF#define constEOFfiecho $ac_n "checking for inline""... $ac_c" 1>&6echo "configure:986: checking for inline" >&5if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; thenecho $ac_n "(cached) $ac_c" 1>&6elseac_cv_c_inline=nofor ac_kw in inline __inline__ __inline; docat > conftest.$ac_ext <<EOF#line 993 "configure"#include "confdefs.h"int main() {} $ac_kw foo() {; return 0; }EOFif { (eval echo configure:1000: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; thenrm -rf conftest*ac_cv_c_inline=$ac_kw; breakelseecho "configure: failed program was:" >&5cat conftest.$ac_ext >&5firm -f conftest*donefiecho "$ac_t""$ac_cv_c_inline" 1>&6case "$ac_cv_c_inline" ininline | yes) ;;no) cat >> confdefs.h <<\EOF#define inlineEOF;;*) cat >> confdefs.h <<EOF#define inline $ac_cv_c_inlineEOF;;esacecho $ac_n "checking for off_t""... $ac_c" 1>&6echo "configure:1026: checking for off_t" >&5if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; thenecho $ac_n "(cached) $ac_c" 1>&6elsecat > conftest.$ac_ext <<EOF#line 1031 "configure"#include "confdefs.h"#include <sys/types.h>#if STDC_HEADERS#include <stdlib.h>#include <stddef.h>#endifEOFif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; thenrm -rf conftest*ac_cv_type_off_t=yeselserm -rf conftest*ac_cv_type_off_t=nofirm -f conftest*fiecho "$ac_t""$ac_cv_type_off_t" 1>&6if test $ac_cv_type_off_t = no; thencat >> confdefs.h <<\EOF#define off_t longEOFfiecho $ac_n "checking for size_t""... $ac_c" 1>&6echo "configure:1059: checking for size_t" >&5if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; thenecho $ac_n "(cached) $ac_c" 1>&6elsecat > conftest.$ac_ext <<EOF#line 1064 "configure"#include "confdefs.h"#include <sys/types.h>#if STDC_HEADERS#include <stdlib.h>#include <stddef.h>#endifEOFif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; thenrm -rf conftest*ac_cv_type_size_t=yeselserm -rf conftest*ac_cv_type_size_t=nofirm -f conftest*fiecho "$ac_t""$ac_cv_type_size_t" 1>&6if test $ac_cv_type_size_t = no; thencat >> confdefs.h <<\EOF#define size_t unsignedEOFfi# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works# for constant arguments. Useless!echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6echo "configure:1094: checking for working alloca.h" >&5if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; thenecho $ac_n "(cached) $ac_c" 1>&6elsecat > conftest.$ac_ext <<EOF#line 1099 "configure"#include "confdefs.h"#include <alloca.h>int main() {char *p = alloca(2 * sizeof(int));; return 0; }EOFif { (eval echo configure:1106: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; thenrm -rf conftest*ac_cv_header_alloca_h=yeselseecho "configure: failed program was:" >&5cat conftest.$ac_ext >&5rm -rf conftest*ac_cv_header_alloca_h=nofirm -f conftest*fiecho "$ac_t""$ac_cv_header_alloca_h" 1>&6if test $ac_cv_header_alloca_h = yes; thencat >> confdefs.h <<\EOF#define HAVE_ALLOCA_H 1EOFfiecho $ac_n "checking for alloca""... $ac_c" 1>&6echo "configure:1127: checking for alloca" >&5if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; thenecho $ac_n "(cached) $ac_c" 1>&6elsecat > conftest.$ac_ext <<EOF#line 1132 "configure"#include "confdefs.h"#ifdef __GNUC__# define alloca __builtin_alloca#else# ifdef _MSC_VER# include <malloc.h># define alloca _alloca# else# if HAVE_ALLOCA_H# include <alloca.h># else# ifdef _AIX#pragma alloca# else# ifndef alloca /* predefined by HP cc +Olibcalls */char *alloca ();# endif# endif# endif# endif#endifint main() {char *p = (char *) alloca(1);; return 0; }EOFif { (eval echo configure:1160: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; thenrm -rf conftest*ac_cv_func_alloca_works=yeselseecho "configure: failed program was:" >&5cat conftest.$ac_ext >&5rm -rf conftest*ac_cv_func_alloca_works=nofirm -f conftest*fiecho "$ac_t""$ac_cv_func_alloca_works" 1>&6if test $ac_cv_func_alloca_works = yes; thencat >> confdefs.h <<\EOF#define HAVE_ALLOCA 1EOFfiif test $ac_cv_func_alloca_works = no; then# The SVR3 libPW and SVR4 libucb both contain incompatible functions# that cause trouble. Some versions do not even contain alloca or# contain a buggy version. If you still want to use their alloca,# use ar to extract alloca.o from them instead of compiling alloca.c.ALLOCA=alloca.${ac_objext}cat >> confdefs.h <<\EOF#define C_ALLOCA 1EOFecho $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6echo "configure:1192: checking whether alloca needs Cray hooks" >&5if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; thenecho $ac_n "(cached) $ac_c" 1>&6elsecat > conftest.$ac_ext <<EOF#line 1197 "configure"#include "confdefs.h"#if defined(CRAY) && ! defined(CRAY2)webecray#elsewenotbecray#endifEOFif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |egrep "webecray" >/dev/null 2>&1; thenrm -rf conftest*ac_cv_os_cray=yeselserm -rf conftest*ac_cv_os_cray=nofirm -f conftest*fiecho "$ac_t""$ac_cv_os_cray" 1>&6if test $ac_cv_os_cray = yes; thenfor ac_func in _getb67 GETB67 getb67; doecho $ac_n "checking for $ac_func""... $ac_c" 1>&6echo "configure:1222: checking for $ac_func" >&5if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; thenecho $ac_n "(cached) $ac_c" 1>&6elsecat > conftest.$ac_ext <<EOF#line 1227 "configure"#include "confdefs.h"/* System header to define __stub macros and hopefully few prototypes,which can conflict with char $ac_func(); below. */#include <assert.h>/* Override any gcc2 internal prototype to avoid an error. *//* We use char because int might match the return type of a gcc2builtin and then its argument prototype would still apply. */char $ac_func();int main() {/* The GNU C library defines this for functions which it implementsto always fail with ENOSYS. Some functions are actually namedsomething starting with __ and the normal name is an alias. */#if defined (__stub_$ac_func) || defined (__stub___$ac_func)choke me#else$ac_func();#endif; return 0; }EOFif { (eval echo configure:1250: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; thenrm -rf conftest*eval "ac_cv_func_$ac_func=yes"elseecho "configure: failed program was:" >&5cat conftest.$ac_ext >&5rm -rf conftest*eval "ac_cv_func_$ac_func=no"firm -f conftest*fiif eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; thenecho "$ac_t""yes" 1>&6cat >> confdefs.h <<EOF#define CRAY_STACKSEG_END $ac_funcEOFbreakelseecho "$ac_t""no" 1>&6fidonefiecho $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6echo "configure:1277: checking stack direction for C alloca" >&5if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; thenecho $ac_n "(cached) $ac_c" 1>&6elseif test "$cross_compiling" = yes; thenac_cv_c_stack_direction=0elsecat > conftest.$ac_ext <<EOF#line 1285 "configure"#include "confdefs.h"find_stack_direction (){static char *addr = 0;auto char dummy;if (addr == 0){addr = &dummy;return find_stack_direction ();}elsereturn (&dummy > addr) ? 1 : -1;}main (){exit (find_stack_direction() < 0);}EOFif { (eval echo configure:1304: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/nullthenac_cv_c_stack_direction=1elseecho "configure: failed program was:" >&5cat conftest.$ac_ext >&5rm -fr conftest*ac_cv_c_stack_direction=-1firm -fr conftest*fifiecho "$ac_t""$ac_cv_c_stack_direction" 1>&6cat >> confdefs.h <<EOF#define STACK_DIRECTION $ac_cv_c_stack_directionEOFfifor ac_hdr in unistd.hdoac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6echo "configure:1329: checking for $ac_hdr" >&5if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; thenecho $ac_n "(cached) $ac_c" 1>&6elsecat > conftest.$ac_ext <<EOF#line 1334 "configure"#include "confdefs.h"#include <$ac_hdr>EOFac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"{ (eval echo configure:1339: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`if test -z "$ac_err"; thenrm -rf conftest*eval "ac_cv_header_$ac_safe=yes"elseecho "$ac_err" >&5echo "configure: failed program was:" >&5cat conftest.$ac_ext >&5rm -rf conftest*eval "ac_cv_header_$ac_safe=no"firm -f conftest*fiif eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; thenecho "$ac_t""yes" 1>&6ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`cat >> confdefs.h <<EOF#define $ac_tr_hdr 1EOFelseecho "$ac_t""no" 1>&6fidonefor ac_func in getpagesizedoecho $ac_n "checking for $ac_func""... $ac_c" 1>&6echo "configure:1368: checking for $ac_func" >&5if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; thenecho $ac_n "(cached) $ac_c" 1>&6elsecat > conftest.$ac_ext <<EOF#line 1373 "configure"#include "confdefs.h"/* System header to define __stub macros and hopefully few prototypes,which can conflict with char $ac_func(); below. */#include <assert.h>/* Override any gcc2 internal prototype to avoid an error. *//* We use char because int might match the return type of a gcc2builtin and then its argument prototype would still apply. */char $ac_func();int main() {/* The GNU C library defines this for functions which it implementsto always fail with ENOSYS. Some functions are actually namedsomething starting with __ and the normal name is an alias. */#if defined (__stub_$ac_func) || defined (__stub___$ac_func)choke me#else$ac_func();#endif; return 0; }EOFif { (eval echo configure:1396: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; thenrm -rf conftest*eval "ac_cv_func_$ac_func=yes"elseecho "configure: failed program was:" >&5cat conftest.$ac_ext >&5rm -rf conftest*eval "ac_cv_func_$ac_func=no"firm -f conftest*fiif eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; thenecho "$ac_t""yes" 1>&6ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`cat >> confdefs.h <<EOF#define $ac_tr_func 1EOFelseecho "$ac_t""no" 1>&6fidoneecho $ac_n "checking for working mmap""... $ac_c" 1>&6echo "configure:1421: checking for working mmap" >&5if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; thenecho $ac_n "(cached) $ac_c" 1>&6elseif test "$cross_compiling" = yes; thenac_cv_func_mmap_fixed_mapped=noelsecat > conftest.$ac_ext <<EOF#line 1429 "configure"#include "confdefs.h"/* Thanks to Mike Haertel and Jim Avera for this test.Here is a matrix of mmap possibilities:mmap private not fixedmmap private fixed at somewhere currently unmappedmmap private fixed at somewhere already mappedmmap shared not fixedmmap shared fixed at somewhere currently unmappedmmap shared fixed at somewhere already mappedFor private mappings, we should verify that changes cannot be read()back from the file, nor mmap's back from the file at a differentaddress. (There have been systems where private was not correctlyimplemented like the infamous i386 svr4.0, and systems where theVM page cache was not coherent with the filesystem buffer cachelike early versions of FreeBSD and possibly contemporary NetBSD.)For shared mappings, we should conversely verify that changes getpropogated back to all the places they're supposed to be.Grep wants private fixed already mapped.The main things grep needs to know about mmap are:* does it exist and is it safe to write into the mmap'd area* how to use it (BSD variants) */#include <sys/types.h>#include <fcntl.h>#include <sys/mman.h>/* This mess was copied from the GNU getpagesize.h. */#ifndef HAVE_GETPAGESIZE# ifdef HAVE_UNISTD_H# include <unistd.h># endif/* Assume that all systems that can run configure have sys/param.h. */# ifndef HAVE_SYS_PARAM_H# define HAVE_SYS_PARAM_H 1# endif# ifdef _SC_PAGESIZE# define getpagesize() sysconf(_SC_PAGESIZE)# else /* no _SC_PAGESIZE */# ifdef HAVE_SYS_PARAM_H# include <sys/param.h># ifdef EXEC_PAGESIZE# define getpagesize() EXEC_PAGESIZE# else /* no EXEC_PAGESIZE */# ifdef NBPG# define getpagesize() NBPG * CLSIZE# ifndef CLSIZE# define CLSIZE 1# endif /* no CLSIZE */# else /* no NBPG */# ifdef NBPC# define getpagesize() NBPC# else /* no NBPC */# ifdef PAGESIZE# define getpagesize() PAGESIZE# endif /* PAGESIZE */# endif /* no NBPC */# endif /* no NBPG */# endif /* no EXEC_PAGESIZE */# else /* no HAVE_SYS_PARAM_H */# define getpagesize() 8192 /* punt totally */# endif /* no HAVE_SYS_PARAM_H */# endif /* no _SC_PAGESIZE */#endif /* no HAVE_GETPAGESIZE */#ifdef __cplusplusextern "C" { void *malloc(unsigned); }#elsechar *malloc();#endifintmain(){char *data, *data2, *data3;int i, pagesize;int fd;pagesize = getpagesize();/** First, make a file with some known garbage in it.*/data = malloc(pagesize);if (!data)exit(1);for (i = 0; i < pagesize; ++i)*(data + i) = rand();umask(0);fd = creat("conftestmmap", 0600);if (fd < 0)exit(1);if (write(fd, data, pagesize) != pagesize)exit(1);close(fd);/** Next, try to mmap the file at a fixed address which* already has something else allocated at it. If we can,* also make sure that we see the same garbage.*/fd = open("conftestmmap", O_RDWR);if (fd < 0)exit(1);data2 = malloc(2 * pagesize);if (!data2)exit(1);data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,MAP_PRIVATE | MAP_FIXED, fd, 0L))exit(1);for (i = 0; i < pagesize; ++i)if (*(data + i) != *(data2 + i))exit(1);/** Finally, make sure that changes to the mapped area* do not percolate back to the file as seen by read().* (This is a bug on some variants of i386 svr4.0.)*/for (i = 0; i < pagesize; ++i)*(data2 + i) = *(data2 + i) + 1;data3 = malloc(pagesize);if (!data3)exit(1);if (read(fd, data3, pagesize) != pagesize)exit(1);for (i = 0; i < pagesize; ++i)if (*(data + i) != *(data3 + i))exit(1);close(fd);unlink("conftestmmap");exit(0);}EOFif { (eval echo configure:1569: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/nullthenac_cv_func_mmap_fixed_mapped=yeselseecho "configure: failed program was:" >&5cat conftest.$ac_ext >&5rm -fr conftest*ac_cv_func_mmap_fixed_mapped=nofirm -fr conftest*fifiecho "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6if test $ac_cv_func_mmap_fixed_mapped = yes; thencat >> confdefs.h <<\EOF#define HAVE_MMAP 1EOFfiecho $ac_n "checking for Cygwin environment""... $ac_c" 1>&6echo "configure:1592: checking for Cygwin environment" >&5if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; thenecho $ac_n "(cached) $ac_c" 1>&6elsecat > conftest.$ac_ext <<EOF#line 1597 "configure"#include "confdefs.h"int main() {#ifndef __CYGWIN__#define __CYGWIN__ __CYGWIN32__#endifreturn __CYGWIN__;; return 0; }EOFif { (eval echo configure:1608: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; thenrm -rf conftest*ac_cv_cygwin=yeselseecho "configure: failed program was:" >&5cat conftest.$ac_ext >&5rm -rf conftest*ac_cv_cygwin=nofirm -f conftest*rm -f conftest*fiecho "$ac_t""$ac_cv_cygwin" 1>&6CYGWIN=test "$ac_cv_cygwin" = yes && CYGWIN=yesecho $ac_n "checking for mingw32 environment""... $ac_c" 1>&6echo "configure:1625: checking for mingw32 environment" >&5if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; thenecho $ac_n "(cached) $ac_c" 1>&6elsecat > conftest.$ac_ext <<EOF#line 1630 "configure"#include "confdefs.h"int main() {return __MINGW32__;; return 0; }EOFif { (eval echo configure:1637: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; thenrm -rf conftest*ac_cv_mingw32=yeselseecho "configure: failed program was:" >&5cat conftest.$ac_ext >&5rm -rf conftest*ac_cv_mingw32=nofirm -f conftest*rm -f conftest*fiecho "$ac_t""$ac_cv_mingw32" 1>&6MINGW32=test "$ac_cv_mingw32" = yes && MINGW32=yes# autoconf.info says this should be called right after AC_INIT.ac_aux_dir=for ac_dir in `cd $srcdir;pwd`/../.. $srcdir/`cd $srcdir;pwd`/../..; doif test -f $ac_dir/install-sh; thenac_aux_dir=$ac_dirac_install_sh="$ac_aux_dir/install-sh -c"breakelif test -f $ac_dir/install.sh; thenac_aux_dir=$ac_dirac_install_sh="$ac_aux_dir/install.sh -c"breakfidoneif test -z "$ac_aux_dir"; then{ echo "configure: error: can not find install-sh or install.sh in `cd $srcdir;pwd`/../.. $srcdir/`cd $srcdir;pwd`/../.." 1>&2; exit 1; }fiac_config_guess=$ac_aux_dir/config.guessac_config_sub=$ac_aux_dir/config.subac_configure=$ac_aux_dir/configure # This should be Cygnus configure.# Do some error checking and defaulting for the host and target type.# The inputs are:# configure --host=HOST --target=TARGET --build=BUILD NONOPT## The rules are:# 1. You are not allowed to specify --host, --target, and nonopt at the# same time.# 2. Host defaults to nonopt.# 3. If nonopt is not specified, then host defaults to the current host,# as determined by config.guess.# 4. Target and build default to nonopt.# 5. If nonopt is not specified, then target and build default to host.# The aliases save the names the user supplied, while $host etc.# will get canonicalized.case $host---$target---$nonopt inNONE---*---* | *---NONE---* | *---*---NONE) ;;*) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;esac# Make sure we can run config.sub.if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }fiecho $ac_n "checking host system type""... $ac_c" 1>&6echo "configure:1704: checking host system type" >&5host_alias=$hostcase "$host_alias" inNONE)case $nonopt inNONE)if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }fi ;;*) host_alias=$nonopt ;;esac ;;esachost=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`echo "$ac_t""$host" 1>&6echo $ac_n "checking target system type""... $ac_c" 1>&6echo "configure:1725: checking target system type" >&5target_alias=$targetcase "$target_alias" inNONE)case $nonopt inNONE) target_alias=$host_alias ;;*) target_alias=$nonopt ;;esac ;;esactarget=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`echo "$ac_t""$target" 1>&6echo $ac_n "checking build system type""... $ac_c" 1>&6echo "configure:1743: checking build system type" >&5build_alias=$buildcase "$build_alias" inNONE)case $nonopt inNONE) build_alias=$host_alias ;;*) build_alias=$nonopt ;;esac ;;esacbuild=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`echo "$ac_t""$build" 1>&6test "$host_alias" != "$target_alias" &&test "$program_prefix$program_suffix$program_transform_name" = \NONENONEs,x,x, &&program_prefix=${target_alias}-if test "$program_transform_name" = s,x,x,; thenprogram_transform_name=else# Double any \ or $. echo might interpret backslashes.cat <<\EOF_SED > conftestseds,\\,\\\\,g; s,\$,$$,gEOF_SEDprogram_transform_name="`echo $program_transform_name|sed -f conftestsed`"rm -f conftestsedfitest "$program_prefix" != NONE &&program_transform_name="s,^,${program_prefix},; $program_transform_name"# Use a double $ so make ignores it.test "$program_suffix" != NONE &&program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"# sed with no file args requires a program.test "$program_transform_name" = "" && program_transform_name="s,x,x,"# Extract the first word of "gcc", so it can be a program name with args.set dummy gcc; ac_word=$2echo $ac_n "checking for $ac_word""... $ac_c" 1>&6echo "configure:1787: checking for $ac_word" >&5if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; thenecho $ac_n "(cached) $ac_c" 1>&6elseif test -n "$CC"; thenac_cv_prog_CC="$CC" # Let the user override the test.elseIFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"ac_dummy="$PATH"for ac_dir in $ac_dummy; dotest -z "$ac_dir" && ac_dir=.if test -f $ac_dir/$ac_word; thenac_cv_prog_CC="gcc"breakfidoneIFS="$ac_save_ifs"fifiCC="$ac_cv_prog_CC"if test -n "$CC"; thenecho "$ac_t""$CC" 1>&6elseecho "$ac_t""no" 1>&6fiif test -z "$CC"; then# Extract the first word of "cc", so it can be a program name with args.set dummy cc; ac_word=$2echo $ac_n "checking for $ac_word""... $ac_c" 1>&6echo "configure:1817: checking for $ac_word" >&5if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; thenecho $ac_n "(cached) $ac_c" 1>&6elseif test -n "$CC"; thenac_cv_prog_CC="$CC" # Let the user override the test.elseIFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"ac_prog_rejected=noac_dummy="$PATH"for ac_dir in $ac_dummy; dotest -z "$ac_dir" && ac_dir=.if test -f $ac_dir/$ac_word; thenif test "$ac_dir/$ac_word" = "/usr/ucb/cc"; thenac_prog_rejected=yescontinuefiac_cv_prog_CC="cc"breakfidoneIFS="$ac_save_ifs"if test $ac_prog_rejected = yes; then# We found a bogon in the path, so make sure we never use it.set dummy $ac_cv_prog_CCshiftif test $# -gt 0; then# We chose a different compiler from the bogus one.# However, it has the same basename, so the bogon will be chosen# first if we set CC to just the basename; use the full file name.shiftset dummy "$ac_dir/$ac_word" "$@"shiftac_cv_prog_CC="$@"fifififiCC="$ac_cv_prog_CC"if test -n "$CC"; thenecho "$ac_t""$CC" 1>&6elseecho "$ac_t""no" 1>&6fiif test -z "$CC"; thencase "`uname -s`" in*win32* | *WIN32*)# Extract the first word of "cl", so it can be a program name with args.set dummy cl; ac_word=$2echo $ac_n "checking for $ac_word""... $ac_c" 1>&6echo "configure:1868: checking for $ac_word" >&5if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; thenecho $ac_n "(cached) $ac_c" 1>&6elseif test -n "$CC"; thenac_cv_prog_CC="$CC" # Let the user override the test.elseIFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"ac_dummy="$PATH"for ac_dir in $ac_dummy; dotest -z "$ac_dir" && ac_dir=.if test -f $ac_dir/$ac_word; thenac_cv_prog_CC="cl"breakfidoneIFS="$ac_save_ifs"fifiCC="$ac_cv_prog_CC"if test -n "$CC"; thenecho "$ac_t""$CC" 1>&6elseecho "$ac_t""no" 1>&6fi;;esacfitest -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }fiecho $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6echo "configure:1900: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5ac_ext=c# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.ac_cpp='$CPP $CPPFLAGS'ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'cross_compiling=$ac_cv_prog_cc_crosscat > conftest.$ac_ext << EOF#line 1911 "configure"#include "confdefs.h"main(){return(0);}EOFif { (eval echo configure:1916: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; thenac_cv_prog_cc_works=yes# If we can't run a trivial program, we are probably using a cross compiler.if (./conftest; exit) 2>/dev/null; thenac_cv_prog_cc_cross=noelseac_cv_prog_cc_cross=yesfielseecho "configure: failed program was:" >&5cat conftest.$ac_ext >&5ac_cv_prog_cc_works=nofirm -fr conftest*ac_ext=c# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.ac_cpp='$CPP $CPPFLAGS'ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'cross_compiling=$ac_cv_prog_cc_crossecho "$ac_t""$ac_cv_prog_cc_works" 1>&6if test $ac_cv_prog_cc_works = no; then{ echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }fiecho $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6echo "configure:1942: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6cross_compiling=$ac_cv_prog_cc_crossecho $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6echo "configure:1947: checking whether we are using GNU C" >&5if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; thenecho $ac_n "(cached) $ac_c" 1>&6elsecat > conftest.c <<EOF#ifdef __GNUC__yes;#endifEOFif { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1956: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; thenac_cv_prog_gcc=yeselseac_cv_prog_gcc=nofifiecho "$ac_t""$ac_cv_prog_gcc" 1>&6if test $ac_cv_prog_gcc = yes; thenGCC=yeselseGCC=fiac_test_CFLAGS="${CFLAGS+set}"ac_save_CFLAGS="$CFLAGS"CFLAGS=echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6echo "configure:1975: checking whether ${CC-cc} accepts -g" >&5if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; thenecho $ac_n "(cached) $ac_c" 1>&6elseecho 'void f(){}' > conftest.cif test -z "`${CC-cc} -g -c conftest.c 2>&1`"; thenac_cv_prog_cc_g=yeselseac_cv_prog_cc_g=nofirm -f conftest*fiecho "$ac_t""$ac_cv_prog_cc_g" 1>&6if test "$ac_test_CFLAGS" = set; thenCFLAGS="$ac_save_CFLAGS"elif test $ac_cv_prog_cc_g = yes; thenif test "$GCC" = yes; thenCFLAGS="-g -O2"elseCFLAGS="-g"fielseif test "$GCC" = yes; thenCFLAGS="-O2"elseCFLAGS=fifi# Find a good install program. We prefer a C program (faster),# so one script is as good as another. But avoid the broken or# incompatible versions:# SysV /etc/install, /usr/sbin/install# SunOS /usr/etc/install# IRIX /sbin/install# AIX /bin/install# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag# AFS /usr/afsws/bin/install, which mishandles nonexistent args# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"# ./install, which can be erroneously created by make from ./install.sh.echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6echo "configure:2018: checking for a BSD compatible install" >&5if test -z "$INSTALL"; thenif eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; thenecho $ac_n "(cached) $ac_c" 1>&6elseIFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"for ac_dir in $PATH; do# Account for people who put trailing slashes in PATH elements.case "$ac_dir/" in/|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;*)# OSF1 and SCO ODT 3.0 have their own names for install.# Don't use installbsd from OSF since it installs stuff as root# by default.for ac_prog in ginstall scoinst install; doif test -f $ac_dir/$ac_prog; thenif test $ac_prog = install &&grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then# AIX install. It has an incompatible calling convention.:elseac_cv_path_install="$ac_dir/$ac_prog -c"break 2fifidone;;esacdoneIFS="$ac_save_IFS"fiif test "${ac_cv_path_install+set}" = set; thenINSTALL="$ac_cv_path_install"else# As a last resort, use the slow shell script. We don't cache a# path for INSTALL within a source directory, because that will# break other packages using the cache if that directory is# removed, or if the path is relative.INSTALL="$ac_install_sh"fifiecho "$ac_t""$INSTALL" 1>&6# Use test -z because SunOS4 sh mishandles braces in ${var-val}.# It thinks the first close brace ends the variable substitution.test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'# Put a plausible default for CC_FOR_BUILD in Makefile.if test "x$cross_compiling" = "xno"; thenCC_FOR_BUILD='$(CC)'elseCC_FOR_BUILD=gccfiAR=${AR-ar}# Extract the first word of "ranlib", so it can be a program name with args.set dummy ranlib; ac_word=$2echo $ac_n "checking for $ac_word""... $ac_c" 1>&6echo "configure:2086: checking for $ac_word" >&5if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; thenecho $ac_n "(cached) $ac_c" 1>&6elseif test -n "$RANLIB"; thenac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.elseIFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"ac_dummy="$PATH"for ac_dir in $ac_dummy; dotest -z "$ac_dir" && ac_dir=.if test -f $ac_dir/$ac_word; thenac_cv_prog_RANLIB="ranlib"breakfidoneIFS="$ac_save_ifs"test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"fifiRANLIB="$ac_cv_prog_RANLIB"if test -n "$RANLIB"; thenecho "$ac_t""$RANLIB" 1>&6elseecho "$ac_t""no" 1>&6fiALL_LINGUAS=for ac_hdr in argz.h limits.h locale.h nl_types.h malloc.h string.h \unistd.h values.h sys/param.hdoac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6echo "configure:2121: checking for $ac_hdr" >&5if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; thenecho $ac_n "(cached) $ac_c" 1>&6elsecat > conftest.$ac_ext <<EOF#line 2126 "configure"#include "confdefs.h"#include <$ac_hdr>EOFac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"{ (eval echo configure:2131: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`if test -z "$ac_err"; thenrm -rf conftest*eval "ac_cv_header_$ac_safe=yes"elseecho "$ac_err" >&5echo "configure: failed program was:" >&5cat conftest.$ac_ext >&5rm -rf conftest*eval "ac_cv_header_$ac_safe=no"firm -f conftest*fiif eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; thenecho "$ac_t""yes" 1>&6ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`cat >> confdefs.h <<EOF#define $ac_tr_hdr 1EOFelseecho "$ac_t""no" 1>&6fidonefor ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \__argz_count __argz_stringify __argz_nextdoecho $ac_n "checking for $ac_func""... $ac_c" 1>&6echo "configure:2161: checking for $ac_func" >&5if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; thenecho $ac_n "(cached) $ac_c" 1>&6elsecat > conftest.$ac_ext <<EOF#line 2166 "configure"#include "confdefs.h"/* System header to define __stub macros and hopefully few prototypes,which can conflict with char $ac_func(); below. */#include <assert.h>/* Override any gcc2 internal prototype to avoid an error. *//* We use char because int might match the return type of a gcc2builtin and then its argument prototype would still apply. */char $ac_func();int main() {/* The GNU C library defines this for functions which it implementsto always fail with ENOSYS. Some functions are actually namedsomething starting with __ and the normal name is an alias. */#if defined (__stub_$ac_func) || defined (__stub___$ac_func)choke me#else$ac_func();#endif; return 0; }EOFif { (eval echo configure:2189: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; thenrm -rf conftest*eval "ac_cv_func_$ac_func=yes"elseecho "configure: failed program was:" >&5cat conftest.$ac_ext >&5rm -rf conftest*eval "ac_cv_func_$ac_func=no"firm -f conftest*fiif eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; thenecho "$ac_t""yes" 1>&6ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`cat >> confdefs.h <<EOF#define $ac_tr_func 1EOFelseecho "$ac_t""no" 1>&6fidoneif test "${ac_cv_func_stpcpy+set}" != "set"; thenfor ac_func in stpcpydoecho $ac_n "checking for $ac_func""... $ac_c" 1>&6echo "configure:2218: checking for $ac_func" >&5if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; thenecho $ac_n "(cached) $ac_c" 1>&6elsecat > conftest.$ac_ext <<EOF#line 2223 "configure"#include "confdefs.h"/* System header to define __stub macros and hopefully few prototypes,which can conflict with char $ac_func(); below. */#include <assert.h>/* Override any gcc2 internal prototype to avoid an error. *//* We use char because int might match the return type of a gcc2builtin and then its argument prototype would still apply. */char $ac_func();int main() {/* The GNU C library defines this for functions which it implementsto always fail with ENOSYS. Some functions are actually namedsomething starting with __ and the normal name is an alias. */#if defined (__stub_$ac_func) || defined (__stub___$ac_func)choke me#else$ac_func();#endif; return 0; }EOFif { (eval echo configure:2246: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; thenrm -rf conftest*eval "ac_cv_func_$ac_func=yes"elseecho "configure: failed program was:" >&5cat conftest.$ac_ext >&5rm -rf conftest*eval "ac_cv_func_$ac_func=no"firm -f conftest*fiif eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; thenecho "$ac_t""yes" 1>&6ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`cat >> confdefs.h <<EOF#define $ac_tr_func 1EOFelseecho "$ac_t""no" 1>&6fidonefiif test "${ac_cv_func_stpcpy}" = "yes"; thencat >> confdefs.h <<\EOF#define HAVE_STPCPY 1EOFfiif test $ac_cv_header_locale_h = yes; thenecho $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6echo "configure:2280: checking for LC_MESSAGES" >&5if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; thenecho $ac_n "(cached) $ac_c" 1>&6elsecat > conftest.$ac_ext <<EOF#line 2285 "configure"#include "confdefs.h"#include <locale.h>int main() {return LC_MESSAGES; return 0; }EOFif { (eval echo configure:2292: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; thenrm -rf conftest*am_cv_val_LC_MESSAGES=yeselseecho "configure: failed program was:" >&5cat conftest.$ac_ext >&5rm -rf conftest*am_cv_val_LC_MESSAGES=nofirm -f conftest*fiecho "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6if test $am_cv_val_LC_MESSAGES = yes; thencat >> confdefs.h <<\EOF#define HAVE_LC_MESSAGES 1EOFfifiecho $ac_n "checking whether NLS is requested""... $ac_c" 1>&6echo "configure:2313: checking whether NLS is requested" >&5# Check whether --enable-nls or --disable-nls was given.if test "${enable_nls+set}" = set; thenenableval="$enable_nls"USE_NLS=$enablevalelseUSE_NLS=yesfiecho "$ac_t""$USE_NLS" 1>&6USE_INCLUDED_LIBINTL=noif test "$USE_NLS" = "yes"; thencat >> confdefs.h <<\EOF#define ENABLE_NLS 1EOFecho $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6echo "configure:2333: checking whether included gettext is requested" >&5# Check whether --with-included-gettext or --without-included-gettext was given.if test "${with_included_gettext+set}" = set; thenwithval="$with_included_gettext"nls_cv_force_use_gnu_gettext=$withvalelsenls_cv_force_use_gnu_gettext=nofiecho "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"if test "$nls_cv_force_use_gnu_gettext" != "yes"; thennls_cv_header_intl=nls_cv_header_libgt=CATOBJEXT=NONEac_safe=`echo "libintl.h" | sed 'y%./+-%__p_%'`echo $ac_n "checking for libintl.h""... $ac_c" 1>&6echo "configure:2352: checking for libintl.h" >&5if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; thenecho $ac_n "(cached) $ac_c" 1>&6elsecat > conftest.$ac_ext <<EOF#line 2357 "configure"#include "confdefs.h"#include <libintl.h>EOFac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"{ (eval echo configure:2362: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`if test -z "$ac_err"; thenrm -rf conftest*eval "ac_cv_header_$ac_safe=yes"elseecho "$ac_err" >&5echo "configure: failed program was:" >&5cat conftest.$ac_ext >&5rm -rf conftest*eval "ac_cv_header_$ac_safe=no"firm -f conftest*fiif eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; thenecho "$ac_t""yes" 1>&6echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6echo "configure:2379: checking for gettext in libc" >&5if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; thenecho $ac_n "(cached) $ac_c" 1>&6elsecat > conftest.$ac_ext <<EOF#line 2384 "configure"#include "confdefs.h"#include <libintl.h>int main() {return (int) gettext (""); return 0; }EOFif { (eval echo configure:2391: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; thenrm -rf conftest*gt_cv_func_gettext_libc=yeselseecho "configure: failed program was:" >&5cat conftest.$ac_ext >&5rm -rf conftest*gt_cv_func_gettext_libc=nofirm -f conftest*fiecho "$ac_t""$gt_cv_func_gettext_libc" 1>&6if test "$gt_cv_func_gettext_libc" != "yes"; thenecho $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6echo "configure:2407: checking for bindtextdomain in -lintl" >&5ac_lib_var=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'`if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; thenecho $ac_n "(cached) $ac_c" 1>&6elseac_save_LIBS="$LIBS"LIBS="-lintl $LIBS"cat > conftest.$ac_ext <<EOF#line 2415 "configure"#include "confdefs.h"/* Override any gcc2 internal prototype to avoid an error. *//* We use char because int might match the return type of a gcc2builtin and then its argument prototype would still apply. */char bindtextdomain();int main() {bindtextdomain(); return 0; }EOFif { (eval echo configure:2426: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; thenrm -rf conftest*eval "ac_cv_lib_$ac_lib_var=yes"elseecho "configure: failed program was:" >&5cat conftest.$ac_ext >&5rm -rf conftest*eval "ac_cv_lib_$ac_lib_var=no"firm -f conftest*LIBS="$ac_save_LIBS"fiif eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; thenecho "$ac_t""yes" 1>&6echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6echo "configure:2442: checking for gettext in libintl" >&5if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; thenecho $ac_n "(cached) $ac_c" 1>&6elsecat > conftest.$ac_ext <<EOF#line 2447 "configure"#include "confdefs.h"int main() {return (int) gettext (""); return 0; }EOFif { (eval echo configure:2454: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; thenrm -rf conftest*gt_cv_func_gettext_libintl=yeselseecho "configure: failed program was:" >&5cat conftest.$ac_ext >&5rm -rf conftest*gt_cv_func_gettext_libintl=nofirm -f conftest*fiecho "$ac_t""$gt_cv_func_gettext_libintl" 1>&6elseecho "$ac_t""no" 1>&6fifiif test "$gt_cv_func_gettext_libc" = "yes" \|| test "$gt_cv_func_gettext_libintl" = "yes"; thencat >> confdefs.h <<\EOF#define HAVE_GETTEXT 1EOF# Extract the first word of "msgfmt", so it can be a program name with args.set dummy msgfmt; ac_word=$2echo $ac_n "checking for $ac_word""... $ac_c" 1>&6echo "configure:2482: checking for $ac_word" >&5if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; thenecho $ac_n "(cached) $ac_c" 1>&6elsecase "$MSGFMT" in/*)ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.;;*)IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"for ac_dir in $PATH; dotest -z "$ac_dir" && ac_dir=.if test -f $ac_dir/$ac_word; thenif test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; thenac_cv_path_MSGFMT="$ac_dir/$ac_word"breakfifidoneIFS="$ac_save_ifs"test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no";;esacfiMSGFMT="$ac_cv_path_MSGFMT"if test -n "$MSGFMT"; thenecho "$ac_t""$MSGFMT" 1>&6elseecho "$ac_t""no" 1>&6fiif test "$MSGFMT" != "no"; thenfor ac_func in dcgettextdoecho $ac_n "checking for $ac_func""... $ac_c" 1>&6echo "configure:2516: checking for $ac_func" >&5if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; thenecho $ac_n "(cached) $ac_c" 1>&6elsecat > conftest.$ac_ext <<EOF#line 2521 "configure"#include "confdefs.h"/* System header to define __stub macros and hopefully few prototypes,which can conflict with char $ac_func(); below. */#include <assert.h>/* Override any gcc2 internal prototype to avoid an error. *//* We use char because int might match the return type of a gcc2builtin and then its argument prototype would still apply. */char $ac_func();int main() {/* The GNU C library defines this for functions which it implementsto always fail with ENOSYS. Some functions are actually namedsomething starting with __ and the normal name is an alias. */#if defined (__stub_$ac_func) || defined (__stub___$ac_func)choke me#else$ac_func();#endif; return 0; }EOFif { (eval echo configure:2544: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; thenrm -rf conftest*eval "ac_cv_func_$ac_func=yes"elseecho "configure: failed program was:" >&5cat conftest.$ac_ext >&5rm -rf conftest*eval "ac_cv_func_$ac_func=no"firm -f conftest*fiif eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; thenecho "$ac_t""yes" 1>&6ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`cat >> confdefs.h <<EOF#define $ac_tr_func 1EOFelseecho "$ac_t""no" 1>&6fidone# Extract the first word of "gmsgfmt", so it can be a program name with args.set dummy gmsgfmt; ac_word=$2echo $ac_n "checking for $ac_word""... $ac_c" 1>&6echo "configure:2571: checking for $ac_word" >&5if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; thenecho $ac_n "(cached) $ac_c" 1>&6elsecase "$GMSGFMT" in/*)ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.;;?:/*)ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.;;*)IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"ac_dummy="$PATH"for ac_dir in $ac_dummy; dotest -z "$ac_dir" && ac_dir=.if test -f $ac_dir/$ac_word; thenac_cv_path_GMSGFMT="$ac_dir/$ac_word"breakfidoneIFS="$ac_save_ifs"test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT";;esacfiGMSGFMT="$ac_cv_path_GMSGFMT"if test -n "$GMSGFMT"; thenecho "$ac_t""$GMSGFMT" 1>&6elseecho "$ac_t""no" 1>&6fi# Extract the first word of "xgettext", so it can be a program name with args.set dummy xgettext; ac_word=$2echo $ac_n "checking for $ac_word""... $ac_c" 1>&6echo "configure:2607: checking for $ac_word" >&5if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; thenecho $ac_n "(cached) $ac_c" 1>&6elsecase "$XGETTEXT" in/*)ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.;;*)IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"for ac_dir in $PATH; dotest -z "$ac_dir" && ac_dir=.if test -f $ac_dir/$ac_word; thenif test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; thenac_cv_path_XGETTEXT="$ac_dir/$ac_word"breakfifidoneIFS="$ac_save_ifs"test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":";;esacfiXGETTEXT="$ac_cv_path_XGETTEXT"if test -n "$XGETTEXT"; thenecho "$ac_t""$XGETTEXT" 1>&6elseecho "$ac_t""no" 1>&6ficat > conftest.$ac_ext <<EOF#line 2639 "configure"#include "confdefs.h"int main() {extern int _nl_msg_cat_cntr;return _nl_msg_cat_cntr; return 0; }EOFif { (eval echo configure:2647: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; thenrm -rf conftest*CATOBJEXT=.gmoDATADIRNAME=shareelseecho "configure: failed program was:" >&5cat conftest.$ac_ext >&5rm -rf conftest*CATOBJEXT=.moDATADIRNAME=libfirm -f conftest*INSTOBJEXT=.mofifielseecho "$ac_t""no" 1>&6fiif test "$CATOBJEXT" = "NONE"; thennls_cv_use_gnu_gettext=yesfifiif test "$nls_cv_use_gnu_gettext" = "yes"; thenINTLOBJS="\$(GETTOBJS)"# Extract the first word of "msgfmt", so it can be a program name with args.set dummy msgfmt; ac_word=$2echo $ac_n "checking for $ac_word""... $ac_c" 1>&6echo "configure:2679: checking for $ac_word" >&5if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; thenecho $ac_n "(cached) $ac_c" 1>&6elsecase "$MSGFMT" in/*)ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.;;*)IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"for ac_dir in $PATH; dotest -z "$ac_dir" && ac_dir=.if test -f $ac_dir/$ac_word; thenif test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; thenac_cv_path_MSGFMT="$ac_dir/$ac_word"breakfifidoneIFS="$ac_save_ifs"test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt";;esacfiMSGFMT="$ac_cv_path_MSGFMT"if test -n "$MSGFMT"; thenecho "$ac_t""$MSGFMT" 1>&6elseecho "$ac_t""no" 1>&6fi# Extract the first word of "gmsgfmt", so it can be a program name with args.set dummy gmsgfmt; ac_word=$2echo $ac_n "checking for $ac_word""... $ac_c" 1>&6echo "configure:2713: checking for $ac_word" >&5if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; thenecho $ac_n "(cached) $ac_c" 1>&6elsecase "$GMSGFMT" in/*)ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.;;?:/*)ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.;;*)IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"ac_dummy="$PATH"for ac_dir in $ac_dummy; dotest -z "$ac_dir" && ac_dir=.if test -f $ac_dir/$ac_word; thenac_cv_path_GMSGFMT="$ac_dir/$ac_word"breakfidoneIFS="$ac_save_ifs"test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT";;esacfiGMSGFMT="$ac_cv_path_GMSGFMT"if test -n "$GMSGFMT"; thenecho "$ac_t""$GMSGFMT" 1>&6elseecho "$ac_t""no" 1>&6fi# Extract the first word of "xgettext", so it can be a program name with args.set dummy xgettext; ac_word=$2echo $ac_n "checking for $ac_word""... $ac_c" 1>&6echo "configure:2749: checking for $ac_word" >&5if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; thenecho $ac_n "(cached) $ac_c" 1>&6elsecase "$XGETTEXT" in/*)ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.;;*)IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"for ac_dir in $PATH; dotest -z "$ac_dir" && ac_dir=.if test -f $ac_dir/$ac_word; thenif test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; thenac_cv_path_XGETTEXT="$ac_dir/$ac_word"breakfifidoneIFS="$ac_save_ifs"test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":";;esacfiXGETTEXT="$ac_cv_path_XGETTEXT"if test -n "$XGETTEXT"; thenecho "$ac_t""$XGETTEXT" 1>&6elseecho "$ac_t""no" 1>&6fiUSE_INCLUDED_LIBINTL=yesCATOBJEXT=.gmoINSTOBJEXT=.moDATADIRNAME=shareINTLDEPS='$(top_builddir)/../intl/libintl.a'INTLLIBS=$INTLDEPSLIBS=`echo $LIBS | sed -e 's/-lintl//'`nls_cv_header_intl=libintl.hnls_cv_header_libgt=libgettext.hfiif test "$XGETTEXT" != ":"; thenif $XGETTEXT --omit-header /dev/null 2> /dev/null; then: ;elseecho "$ac_t""found xgettext programs is not GNU xgettext; ignore it" 1>&6XGETTEXT=":"fifi# We need to process the po/ directory.POSUB=poelseDATADIRNAME=sharenls_cv_header_intl=libintl.hnls_cv_header_libgt=libgettext.hfi# If this is used in GNU gettext we have to set USE_NLS to `yes'# because some of the sources are only built for this goal.if test "$PACKAGE" = gettext; thenUSE_NLS=yesUSE_INCLUDED_LIBINTL=yesfifor lang in $ALL_LINGUAS; doGMOFILES="$GMOFILES $lang.gmo"POFILES="$POFILES $lang.po"doneif test "x$CATOBJEXT" != "x"; thenif test "x$ALL_LINGUAS" = "x"; thenLINGUAS=elseecho $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6echo "configure:2839: checking for catalogs to be installed" >&5NEW_LINGUAS=for lang in ${LINGUAS=$ALL_LINGUAS}; docase "$ALL_LINGUAS" in*$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;esacdoneLINGUAS=$NEW_LINGUASecho "$ac_t""$LINGUAS" 1>&6fiif test -n "$LINGUAS"; thenfor lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; donefifiif test $ac_cv_header_locale_h = yes; thenINCLUDE_LOCALE_H="#include <locale.h>"elseINCLUDE_LOCALE_H="\/* The system does not provide the header <locale.h>. Take care yourself. */"fiif test -f $srcdir/po2tbl.sed.in; thenif test "$CATOBJEXT" = ".cat"; thenac_safe=`echo "linux/version.h" | sed 'y%./+-%__p_%'`echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6echo "configure:2867: checking for linux/version.h" >&5if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; thenecho $ac_n "(cached) $ac_c" 1>&6elsecat > conftest.$ac_ext <<EOF#line 2872 "configure"#include "confdefs.h"#include <linux/version.h>EOFac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"{ (eval echo configure:2877: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`if test -z "$ac_err"; thenrm -rf conftest*eval "ac_cv_header_$ac_safe=yes"elseecho "$ac_err" >&5echo "configure: failed program was:" >&5cat conftest.$ac_ext >&5rm -rf conftest*eval "ac_cv_header_$ac_safe=no"firm -f conftest*fiif eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; thenecho "$ac_t""yes" 1>&6msgformat=linuxelseecho "$ac_t""no" 1>&6msgformat=xopenfised -e '/^#/d' $srcdir/$msgformat-msg.sed > po2msg.sedfised -e '/^#.*[^\\]$/d' -e '/^#$/d' \$srcdir/po2tbl.sed.in > po2tbl.sedfiif test "$PACKAGE" = "gettext"; thenGT_NO="#NO#"GT_YES=elseGT_NO=GT_YES="#YES#"fiMKINSTALLDIRS="\$(srcdir)/../../mkinstalldirs"l=if test -d $srcdir/po; thentest -d po || mkdir poif test "x$srcdir" != "x."; thenif test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; thenposrcprefix="$srcdir/"elseposrcprefix="../$srcdir/"fielseposrcprefix="../"firm -f po/POTFILESsed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \< $srcdir/po/POTFILES.in > po/POTFILESfi# Check for common headers.# FIXME: Seems to me this can cause problems for i386-windows hosts.# At one point there were hardcoded AC_DEFINE's if ${host} = i386-*-windows*.for ac_hdr in stdlib.h string.h strings.h unistd.h time.hdoac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6echo "configure:2946: checking for $ac_hdr" >&5if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; thenecho $ac_n "(cached) $ac_c" 1>&6elsecat > conftest.$ac_ext <<EOF#line 2951 "configure"#include "confdefs.h"#include <$ac_hdr>EOFac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"{ (eval echo configure:2956: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`if test -z "$ac_err"; thenrm -rf conftest*eval "ac_cv_header_$ac_safe=yes"elseecho "$ac_err" >&5echo "configure: failed program was:" >&5cat conftest.$ac_ext >&5rm -rf conftest*eval "ac_cv_header_$ac_safe=no"firm -f conftest*fiif eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; thenecho "$ac_t""yes" 1>&6ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`cat >> confdefs.h <<EOF#define $ac_tr_hdr 1EOFelseecho "$ac_t""no" 1>&6fidonefor ac_hdr in sys/time.h sys/resource.hdoac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6echo "configure:2986: checking for $ac_hdr" >&5if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; thenecho $ac_n "(cached) $ac_c" 1>&6elsecat > conftest.$ac_ext <<EOF#line 2991 "configure"#include "confdefs.h"#include <$ac_hdr>EOFac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"{ (eval echo configure:2996: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`if test -z "$ac_err"; thenrm -rf conftest*eval "ac_cv_header_$ac_safe=yes"elseecho "$ac_err" >&5echo "configure: failed program was:" >&5cat conftest.$ac_ext >&5rm -rf conftest*eval "ac_cv_header_$ac_safe=no"firm -f conftest*fiif eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; thenecho "$ac_t""yes" 1>&6ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`cat >> confdefs.h <<EOF#define $ac_tr_hdr 1EOFelseecho "$ac_t""no" 1>&6fidonefor ac_hdr in fcntl.h fpu_control.hdoac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6echo "configure:3026: checking for $ac_hdr" >&5if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; thenecho $ac_n "(cached) $ac_c" 1>&6elsecat > conftest.$ac_ext <<EOF#line 3031 "configure"#include "confdefs.h"#include <$ac_hdr>EOFac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"{ (eval echo configure:3036: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`if test -z "$ac_err"; thenrm -rf conftest*eval "ac_cv_header_$ac_safe=yes"elseecho "$ac_err" >&5echo "configure: failed program was:" >&5cat conftest.$ac_ext >&5rm -rf conftest*eval "ac_cv_header_$ac_safe=no"firm -f conftest*fiif eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; thenecho "$ac_t""yes" 1>&6ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`cat >> confdefs.h <<EOF#define $ac_tr_hdr 1EOFelseecho "$ac_t""no" 1>&6fidonefor ac_hdr in dlfcn.h errno.h sys/stat.hdoac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6echo "configure:3066: checking for $ac_hdr" >&5if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; thenecho $ac_n "(cached) $ac_c" 1>&6elsecat > conftest.$ac_ext <<EOF#line 3071 "configure"#include "confdefs.h"#include <$ac_hdr>EOFac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"{ (eval echo configure:3076: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`if test -z "$ac_err"; thenrm -rf conftest*eval "ac_cv_header_$ac_safe=yes"elseecho "$ac_err" >&5echo "configure: failed program was:" >&5cat conftest.$ac_ext >&5rm -rf conftest*eval "ac_cv_header_$ac_safe=no"firm -f conftest*fiif eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; thenecho "$ac_t""yes" 1>&6ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`cat >> confdefs.h <<EOF#define $ac_tr_hdr 1EOFelseecho "$ac_t""no" 1>&6fidonefor ac_func in getrusage time sigaction __setfpucwdoecho $ac_n "checking for $ac_func""... $ac_c" 1>&6echo "configure:3105: checking for $ac_func" >&5if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; thenecho $ac_n "(cached) $ac_c" 1>&6elsecat > conftest.$ac_ext <<EOF#line 3110 "configure"#include "confdefs.h"/* System header to define __stub macros and hopefully few prototypes,which can conflict with char $ac_func(); below. */#include <assert.h>/* Override any gcc2 internal prototype to avoid an error. *//* We use char because int might match the return type of a gcc2builtin and then its argument prototype would still apply. */char $ac_func();int main() {/* The GNU C library defines this for functions which it implementsto always fail with ENOSYS. Some functions are actually namedsomething starting with __ and the normal name is an alias. */#if defined (__stub_$ac_func) || defined (__stub___$ac_func)choke me#else$ac_func();#endif; return 0; }EOFif { (eval echo configure:3133: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; thenrm -rf conftest*eval "ac_cv_func_$ac_func=yes"elseecho "configure: failed program was:" >&5cat conftest.$ac_ext >&5rm -rf conftest*eval "ac_cv_func_$ac_func=no"firm -f conftest*fiif eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; thenecho "$ac_t""yes" 1>&6ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`cat >> confdefs.h <<EOF#define $ac_tr_func 1EOFelseecho "$ac_t""no" 1>&6fidone# Check for socket librariesecho $ac_n "checking for bind in -lsocket""... $ac_c" 1>&6echo "configure:3160: checking for bind in -lsocket" >&5ac_lib_var=`echo socket'_'bind | sed 'y%./+-%__p_%'`if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; thenecho $ac_n "(cached) $ac_c" 1>&6elseac_save_LIBS="$LIBS"LIBS="-lsocket $LIBS"cat > conftest.$ac_ext <<EOF#line 3168 "configure"#include "confdefs.h"/* Override any gcc2 internal prototype to avoid an error. *//* We use char because int might match the return type of a gcc2builtin and then its argument prototype would still apply. */char bind();int main() {bind(); return 0; }EOFif { (eval echo configure:3179: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; thenrm -rf conftest*eval "ac_cv_lib_$ac_lib_var=yes"elseecho "configure: failed program was:" >&5cat conftest.$ac_ext >&5rm -rf conftest*eval "ac_cv_lib_$ac_lib_var=no"firm -f conftest*LIBS="$ac_save_LIBS"fiif eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; thenecho "$ac_t""yes" 1>&6ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \-e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`cat >> confdefs.h <<EOF#define $ac_tr_lib 1EOFLIBS="-lsocket $LIBS"elseecho "$ac_t""no" 1>&6fiecho $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6echo "configure:3207: checking for gethostbyname in -lnsl" >&5ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; thenecho $ac_n "(cached) $ac_c" 1>&6elseac_save_LIBS="$LIBS"LIBS="-lnsl $LIBS"cat > conftest.$ac_ext <<EOF#line 3215 "configure"#include "confdefs.h"/* Override any gcc2 internal prototype to avoid an error. *//* We use char because int might match the return type of a gcc2builtin and then its argument prototype would still apply. */char gethostbyname();int main() {gethostbyname(); return 0; }EOFif { (eval echo configure:3226: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; thenrm -rf conftest*eval "ac_cv_lib_$ac_lib_var=yes"elseecho "configure: failed program was:" >&5cat conftest.$ac_ext >&5rm -rf conftest*eval "ac_cv_lib_$ac_lib_var=no"firm -f conftest*LIBS="$ac_save_LIBS"fiif eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; thenecho "$ac_t""yes" 1>&6ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \-e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`cat >> confdefs.h <<EOF#define $ac_tr_lib 1EOFLIBS="-lnsl $LIBS"elseecho "$ac_t""no" 1>&6fi. ${srcdir}/../../bfd/configure.hostUSE_MAINTAINER_MODE=no# Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.if test "${enable_maintainer_mode+set}" = set; thenenableval="$enable_maintainer_mode"case "${enableval}" inyes) MAINT="" USE_MAINTAINER_MODE=yes ;;no) MAINT="#" ;;*) { echo "configure: error: "--enable-maintainer-mode does not take a value"" 1>&2; exit 1; }; MAINT="#" ;;esacif test x"$silent" != x"yes" && test x"$MAINT" = x""; thenecho "Setting maintainer mode" 6>&1fielseMAINT="#"fi# Check whether --enable-sim-bswap or --disable-sim-bswap was given.if test "${enable_sim_bswap+set}" = set; thenenableval="$enable_sim_bswap"case "${enableval}" inyes) sim_bswap="-DWITH_BSWAP=1 -DUSE_BSWAP=1";;no) sim_bswap="-DWITH_BSWAP=0";;*) { echo "configure: error: "--enable-sim-bswap does not take a value"" 1>&2; exit 1; }; sim_bswap="";;esacif test x"$silent" != x"yes" && test x"$sim_bswap" != x""; thenecho "Setting bswap flags = $sim_bswap" 6>&1fielsesim_bswap=""fi# Check whether --enable-sim-cflags or --disable-sim-cflags was given.if test "${enable_sim_cflags+set}" = set; thenenableval="$enable_sim_cflags"case "${enableval}" inyes) sim_cflags="-O2 -fomit-frame-pointer";;trace) { echo "configure: error: "Please use --enable-sim-debug instead."" 1>&2; exit 1; }; sim_cflags="";;no) sim_cflags="";;*) sim_cflags=`echo "${enableval}" | sed -e "s/,/ /g"`;;esacif test x"$silent" != x"yes" && test x"$sim_cflags" != x""; thenecho "Setting sim cflags = $sim_cflags" 6>&1fielsesim_cflags=""fi# Check whether --enable-sim-debug or --disable-sim-debug was given.if test "${enable_sim_debug+set}" = set; thenenableval="$enable_sim_debug"case "${enableval}" inyes) sim_debug="-DDEBUG=7 -DWITH_DEBUG=7";;no) sim_debug="-DDEBUG=0 -DWITH_DEBUG=0";;*) sim_debug="-DDEBUG='(${enableval})' -DWITH_DEBUG='(${enableval})'";;esacif test x"$silent" != x"yes" && test x"$sim_debug" != x""; thenecho "Setting sim debug = $sim_debug" 6>&1fielsesim_debug=""fi# Check whether --enable-sim-stdio or --disable-sim-stdio was given.if test "${enable_sim_stdio+set}" = set; thenenableval="$enable_sim_stdio"case "${enableval}" inyes) sim_stdio="-DWITH_STDIO=DO_USE_STDIO";;no) sim_stdio="-DWITH_STDIO=DONT_USE_STDIO";;*) { echo "configure: error: "Unknown value $enableval passed to --enable-sim-stdio"" 1>&2; exit 1; }; sim_stdio="";;esacif test x"$silent" != x"yes" && test x"$sim_stdio" != x""; thenecho "Setting stdio flags = $sim_stdio" 6>&1fielsesim_stdio=""fi# Check whether --enable-sim-trace or --disable-sim-trace was given.if test "${enable_sim_trace+set}" = set; thenenableval="$enable_sim_trace"case "${enableval}" inyes) sim_trace="-DTRACE=1 -DWITH_TRACE=-1";;no) sim_trace="-DTRACE=0 -DWITH_TRACE=0";;[-0-9]*)sim_trace="-DTRACE='(${enableval})' -DWITH_TRACE='(${enableval})'";;[a-z]*)sim_trace=""for x in `echo "$enableval" | sed -e "s/,/ /g"`; doif test x"$sim_trace" = x; thensim_trace="-DWITH_TRACE='(TRACE_$x"elsesim_trace="${sim_trace}|TRACE_$x"fidonesim_trace="$sim_trace)'" ;;esacif test x"$silent" != x"yes" && test x"$sim_trace" != x""; thenecho "Setting sim trace = $sim_trace" 6>&1fielsesim_trace=""fi# Check whether --enable-sim-profile or --disable-sim-profile was given.if test "${enable_sim_profile+set}" = set; thenenableval="$enable_sim_profile"case "${enableval}" inyes) sim_profile="-DPROFILE=1 -DWITH_PROFILE=-1";;no) sim_profile="-DPROFILE=0 -DWITH_PROFILE=0";;[-0-9]*)sim_profile="-DPROFILE='(${enableval})' -DWITH_PROFILE='(${enableval})'";;[a-z]*)sim_profile=""for x in `echo "$enableval" | sed -e "s/,/ /g"`; doif test x"$sim_profile" = x; thensim_profile="-DWITH_PROFILE='(PROFILE_$x"elsesim_profile="${sim_profile}|PROFILE_$x"fidonesim_profile="$sim_profile)'" ;;esacif test x"$silent" != x"yes" && test x"$sim_profile" != x""; thenecho "Setting sim profile = $sim_profile" 6>&1fielsesim_profile="-DPROFILE=1 -DWITH_PROFILE=-1"fiecho $ac_n "checking return type of signal handlers""... $ac_c" 1>&6echo "configure:3402: checking return type of signal handlers" >&5if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; thenecho $ac_n "(cached) $ac_c" 1>&6elsecat > conftest.$ac_ext <<EOF#line 3407 "configure"#include "confdefs.h"#include <sys/types.h>#include <signal.h>#ifdef signal#undef signal#endif#ifdef __cplusplusextern "C" void (*signal (int, void (*)(int)))(int);#elsevoid (*signal ()) ();#endifint main() {int i;; return 0; }EOFif { (eval echo configure:3424: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; thenrm -rf conftest*ac_cv_type_signal=voidelseecho "configure: failed program was:" >&5cat conftest.$ac_ext >&5rm -rf conftest*ac_cv_type_signal=intfirm -f conftest*fiecho "$ac_t""$ac_cv_type_signal" 1>&6cat >> confdefs.h <<EOF#define RETSIGTYPE $ac_cv_type_signalEOFecho $ac_n "checking for executable suffix""... $ac_c" 1>&6echo "configure:3446: checking for executable suffix" >&5if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; thenecho $ac_n "(cached) $ac_c" 1>&6elseif test "$CYGWIN" = yes || test "$MINGW32" = yes; thenac_cv_exeext=.exeelserm -f conftest*echo 'int main () { return 0; }' > conftest.$ac_extac_cv_exeext=if { (eval echo configure:3456: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; thenfor file in conftest.*; docase $file in*.c | *.o | *.obj | *.ilk | *.pdb) ;;*) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;esacdoneelse{ echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }firm -f conftest*test x"${ac_cv_exeext}" = x && ac_cv_exeext=nofifiEXEEXT=""test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}echo "$ac_t""${ac_cv_exeext}" 1>&6ac_exeext=$EXEEXTsim_link_files=sim_link_links=sim_link_links=tconfig.hif test -f ${srcdir}/tconfig.inthensim_link_files=tconfig.inelsesim_link_files=../common/tconfig.infi# targ-vals.def points to the libc macro description file.case "${target}" in*-*-*) TARG_VALS_DEF=../common/nltvals.def ;;esacsim_link_files="${sim_link_files} ${TARG_VALS_DEF}"sim_link_links="${sim_link_links} targ-vals.def"for ac_hdr in unistd.hdoac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6echo "configure:3501: checking for $ac_hdr" >&5if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; thenecho $ac_n "(cached) $ac_c" 1>&6elsecat > conftest.$ac_ext <<EOF#line 3506 "configure"#include "confdefs.h"#include <$ac_hdr>EOFac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"{ (eval echo configure:3511: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`if test -z "$ac_err"; thenrm -rf conftest*eval "ac_cv_header_$ac_safe=yes"elseecho "$ac_err" >&5echo "configure: failed program was:" >&5cat conftest.$ac_ext >&5rm -rf conftest*eval "ac_cv_header_$ac_safe=no"firm -f conftest*fiif eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; thenecho "$ac_t""yes" 1>&6ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`cat >> confdefs.h <<EOF#define $ac_tr_hdr 1EOFelseecho "$ac_t""no" 1>&6fidonetrap '' 1 2 15cat > confcache <<\EOF# This file is a shell script that caches the results of configure# tests run on this system so they can be shared between configure# scripts and configure runs. It is not useful on other systems.# If it contains results you don't want to keep, you may remove or edit it.## By default, configure uses ./config.cache as the cache file,# creating it if it does not exist already. You can give configure# the --cache-file=FILE option to use a different cache file; that is# what configure does when it calls configure scripts in# subdirectories, so they share the cache.# Giving --cache-file=/dev/null disables caching, for debugging configure.# config.status only pays attention to the cache file if you give it the# --recheck option to rerun configure.#EOF# The following way of writing the cache mishandles newlines in values,# but we know of no workaround that is simple, portable, and efficient.# So, don't put newlines in cache variables' values.# Ultrix sh set writes to stderr and can't be redirected directly,# and sets the high bit in the cache file unless we assign to the vars.(set) 2>&1 |case `(ac_space=' '; set | grep ac_space) 2>&1` in*ac_space=\ *)# `set' does not quote correctly, so add quotes (double-quote substitution# turns \\\\ into \\, and sed turns \\ into \).sed -n \-e "s/'/'\\\\''/g" \-e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p";;*)# `set' quotes correctly as required by POSIX, so do not add quotes.sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p';;esac >> confcacheif cmp -s $cache_file confcache; then:elseif test -w $cache_file; thenecho "updating cache $cache_file"cat confcache > $cache_fileelseecho "not updating unwritable cache $cache_file"fifirm -f confcachetrap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15test "x$prefix" = xNONE && prefix=$ac_default_prefix# Let make expand exec_prefix.test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'# Any assignment to VPATH causes Sun make to only execute# the first set of double-colon rules, so remove it if not needed.# If there is a colon in the path, we need to keep it.if test "x$srcdir" = x.; thenac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'fitrap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15DEFS=-DHAVE_CONFIG_H# Without the "./", some shells look in PATH for config.status.: ${CONFIG_STATUS=./config.status}echo creating $CONFIG_STATUSrm -f $CONFIG_STATUScat > $CONFIG_STATUS <<EOF#! /bin/sh# Generated automatically by configure.# Run this file to recreate the current configuration.# This directory was configured as follows,# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:## $0 $ac_configure_args## Compiler output produced by configure, useful for debugging# configure, is in ./config.log if it exists.ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"for ac_optiondocase "\$ac_option" in-recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;-version | --version | --versio | --versi | --vers | --ver | --ve | --v)echo "$CONFIG_STATUS generated by autoconf version 2.13"exit 0 ;;-help | --help | --hel | --he | --h)echo "\$ac_cs_usage"; exit 0 ;;*) echo "\$ac_cs_usage"; exit 1 ;;esacdoneac_given_srcdir=$srcdirac_given_INSTALL="$INSTALL"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 15EOFcat >> $CONFIG_STATUS <<EOF# Protect against being on the right side of a sed subst in config.status.sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF$ac_vpsub$extrasubs%@sim_environment@%$sim_environment%gs%@sim_alignment@%$sim_alignment%gs%@sim_assert@%$sim_assert%gs%@sim_bitsize@%$sim_bitsize%gs%@sim_endian@%$sim_endian%gs%@sim_hostendian@%$sim_hostendian%gs%@sim_float@%$sim_float%gs%@sim_scache@%$sim_scache%gs%@sim_default_model@%$sim_default_model%gs%@sim_hw_cflags@%$sim_hw_cflags%gs%@sim_hw_objs@%$sim_hw_objs%gs%@sim_hw@%$sim_hw%gs%@sim_inline@%$sim_inline%gs%@sim_packages@%$sim_packages%gs%@sim_regparm@%$sim_regparm%gs%@sim_reserved_bits@%$sim_reserved_bits%gs%@sim_smp@%$sim_smp%gs%@sim_stdcall@%$sim_stdcall%gs%@sim_xor_endian@%$sim_xor_endian%gs%@WARN_CFLAGS@%$WARN_CFLAGS%gs%@WERROR_CFLAGS@%$WERROR_CFLAGS%gs%@SHELL@%$SHELL%gs%@CFLAGS@%$CFLAGS%gs%@CPPFLAGS@%$CPPFLAGS%gs%@CXXFLAGS@%$CXXFLAGS%gs%@FFLAGS@%$FFLAGS%gs%@DEFS@%$DEFS%gs%@LDFLAGS@%$LDFLAGS%gs%@LIBS@%$LIBS%gs%@exec_prefix@%$exec_prefix%gs%@prefix@%$prefix%gs%@program_transform_name@%$program_transform_name%gs%@bindir@%$bindir%gs%@sbindir@%$sbindir%gs%@libexecdir@%$libexecdir%gs%@datadir@%$datadir%gs%@sysconfdir@%$sysconfdir%gs%@sharedstatedir@%$sharedstatedir%gs%@localstatedir@%$localstatedir%gs%@libdir@%$libdir%gs%@includedir@%$includedir%gs%@oldincludedir@%$oldincludedir%gs%@infodir@%$infodir%gs%@mandir@%$mandir%gs%@host@%$host%gs%@host_alias@%$host_alias%gs%@host_cpu@%$host_cpu%gs%@host_vendor@%$host_vendor%gs%@host_os@%$host_os%gs%@target@%$target%gs%@target_alias@%$target_alias%gs%@target_cpu@%$target_cpu%gs%@target_vendor@%$target_vendor%gs%@target_os@%$target_os%gs%@build@%$build%gs%@build_alias@%$build_alias%gs%@build_cpu@%$build_cpu%gs%@build_vendor@%$build_vendor%gs%@build_os@%$build_os%gs%@CC@%$CC%gs%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%gs%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%gs%@INSTALL_DATA@%$INSTALL_DATA%gs%@CC_FOR_BUILD@%$CC_FOR_BUILD%gs%@HDEFINES@%$HDEFINES%gs%@AR@%$AR%gs%@RANLIB@%$RANLIB%gs%@SET_MAKE@%$SET_MAKE%gs%@CPP@%$CPP%gs%@ALLOCA@%$ALLOCA%gs%@USE_NLS@%$USE_NLS%gs%@MSGFMT@%$MSGFMT%gs%@GMSGFMT@%$GMSGFMT%gs%@XGETTEXT@%$XGETTEXT%gs%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%gs%@CATALOGS@%$CATALOGS%gs%@CATOBJEXT@%$CATOBJEXT%gs%@DATADIRNAME@%$DATADIRNAME%gs%@GMOFILES@%$GMOFILES%gs%@INSTOBJEXT@%$INSTOBJEXT%gs%@INTLDEPS@%$INTLDEPS%gs%@INTLLIBS@%$INTLLIBS%gs%@INTLOBJS@%$INTLOBJS%gs%@POFILES@%$POFILES%gs%@POSUB@%$POSUB%gs%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%gs%@GT_NO@%$GT_NO%gs%@GT_YES@%$GT_YES%gs%@MKINSTALLDIRS@%$MKINSTALLDIRS%gs%@l@%$l%gs%@MAINT@%$MAINT%gs%@sim_bswap@%$sim_bswap%gs%@sim_cflags@%$sim_cflags%gs%@sim_debug@%$sim_debug%gs%@sim_stdio@%$sim_stdio%gs%@sim_trace@%$sim_trace%gs%@sim_profile@%$sim_profile%gs%@EXEEXT@%$EXEEXT%gCEOFEOFcat >> $CONFIG_STATUS <<\EOF# Split the substitutions into bite-sized pieces for seds with# small command number limits, like on Digital OSF/1 and HP-UX.ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.ac_file=1 # Number of current file.ac_beg=1 # First line for current file.ac_end=$ac_max_sed_cmds # Line after last line for current file.ac_more_lines=:ac_sed_cmds=""while $ac_more_lines; doif test $ac_beg -gt 1; thensed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_fileelsesed "${ac_end}q" conftest.subs > conftest.s$ac_filefiif test ! -s conftest.s$ac_file; thenac_more_lines=falserm -f conftest.s$ac_fileelseif test -z "$ac_sed_cmds"; thenac_sed_cmds="sed -f conftest.s$ac_file"elseac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"fiac_file=`expr $ac_file + 1`ac_beg=$ac_endac_end=`expr $ac_end + $ac_max_sed_cmds`fidoneif test -z "$ac_sed_cmds"; thenac_sed_cmds=catfiEOFcat >> $CONFIG_STATUS <<EOFCONFIG_FILES=\${CONFIG_FILES-"Makefile.sim:Makefile.in Make-common.sim:../common/Make-common.in .gdbinit:../common/gdbinit.in"}EOFcat >> $CONFIG_STATUS <<\EOFfor ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".case "$ac_file" in*:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;*) ac_file_in="${ac_file}.in" ;;esac# Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.# Remove last slash and all that follows it. Not all systems have dirname.ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then# The file is in a subdirectory.test ! -d "$ac_dir" && mkdir "$ac_dir"ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"# A "../" for each directory in $ac_dir_suffix.ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`elseac_dir_suffix= ac_dots=ficase "$ac_given_srcdir" in.) srcdir=.if test -z "$ac_dots"; then top_srcdir=.else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;/*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;*) # Relative path.srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"top_srcdir="$ac_dots$ac_given_srcdir" ;;esaccase "$ac_given_INSTALL" in[/$]*) INSTALL="$ac_given_INSTALL" ;;*) INSTALL="$ac_dots$ac_given_INSTALL" ;;esacecho creating "$ac_file"rm -f "$ac_file"configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."case "$ac_file" in*Makefile*) ac_comsub="1i\\# $configure_input" ;;*) ac_comsub= ;;esacac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`sed -e "$ac_comsubs%@configure_input@%$configure_input%gs%@srcdir@%$srcdir%gs%@top_srcdir@%$top_srcdir%gs%@INSTALL@%$INSTALL%g" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_filefi; donerm -f conftest.s*# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where# NAME is the cpp macro being defined and VALUE is the value it is being given.## ac_d sets the value in "#define NAME VALUE" lines.ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'ac_dC='\3'ac_dD='%g'# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'ac_uB='\([ ]\)%\1#\2define\3'ac_uC=' 'ac_uD='\4%g'# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'ac_eB='$%\1#\2define\3'ac_eC=' 'ac_eD='%g'if test "${CONFIG_HEADERS+set}" != set; thenEOFcat >> $CONFIG_STATUS <<EOFCONFIG_HEADERS="config.h:config.in"EOFcat >> $CONFIG_STATUS <<\EOFfifor ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".case "$ac_file" in*:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;*) ac_file_in="${ac_file}.in" ;;esacecho creating $ac_filerm -f conftest.frag conftest.in conftest.outac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`cat $ac_file_inputs > conftest.inEOF# Transform confdefs.h into a sed script conftest.vals that substitutes# the proper values into config.h.in to produce config.h. And first:# Protect against being on the right side of a sed subst in config.status.# Protect against being in an unquoted here document in config.status.rm -f conftest.valscat > conftest.hdr <<\EOFs/[\\&%]/\\&/gs%[\\$`]%\\&%gs%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gps%ac_d%ac_u%gps%ac_u%ac_e%gpEOFsed -n -f conftest.hdr confdefs.h > conftest.valsrm -f conftest.hdr# This sed command replaces #undef with comments. This is necessary, for# example, in the case of _POSIX_SOURCE, which is predefined and required# on some systems where configure will not decide to define it.cat >> conftest.vals <<\EOFs%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%EOF# Break up conftest.vals because some shells have a limit on# the size of here documents, and old seds have small limits too.rm -f conftest.tailwhile :doac_lines=`grep -c . conftest.vals`# grep -c gives empty output for an empty file on some AIX systems.if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi# Write a limited-size here document to conftest.frag.echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUSsed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUSecho 'CEOFsed -f conftest.frag conftest.in > conftest.outrm -f conftest.inmv conftest.out conftest.in' >> $CONFIG_STATUSsed 1,${ac_max_here_lines}d conftest.vals > conftest.tailrm -f conftest.valsmv conftest.tail conftest.valsdonerm -f conftest.valscat >> $CONFIG_STATUS <<\EOFrm -f conftest.frag conftest.hecho "/* $ac_file. Generated automatically by configure. */" > conftest.hcat conftest.in >> conftest.hrm -f conftest.inif cmp -s $ac_file conftest.h 2>/dev/null; thenecho "$ac_file is unchanged"rm -f conftest.helse# Remove last slash and all that follows it. Not all systems have dirname.ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then# The file is in a subdirectory.test ! -d "$ac_dir" && mkdir "$ac_dir"firm -f $ac_filemv conftest.h $ac_filefifi; doneEOFcat >> $CONFIG_STATUS <<EOFac_sources="$sim_link_files"ac_dests="$sim_link_links"EOFcat >> $CONFIG_STATUS <<\EOFsrcdir=$ac_given_srcdirwhile test -n "$ac_sources"; doset $ac_dests; ac_dest=$1; shift; ac_dests=$*set $ac_sources; ac_source=$1; shift; ac_sources=$*echo "linking $srcdir/$ac_source to $ac_dest"if test ! -r $srcdir/$ac_source; then{ echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }firm -f $ac_dest# Make relative symlinks.# Remove last slash and all that follows it. Not all systems have dirname.ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'`if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then# The dest file is in a subdirectory.test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`"# A "../" for each directory in $ac_dest_dir_suffix.ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'`elseac_dest_dir_suffix= ac_dots=ficase "$srcdir" in[/$]*) ac_rel_source="$srcdir/$ac_source" ;;*) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;esac# Make a symlink if possible; otherwise try a hard link.if ln -s $ac_rel_source $ac_dest 2>/dev/null ||ln $srcdir/$ac_source $ac_dest; then :else{ echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }fidoneEOFcat >> $CONFIG_STATUS <<EOFEOFcat >> $CONFIG_STATUS <<\EOFcase "x$CONFIG_FILES" inxMakefile*)echo "Merging Makefile.sim+Make-common.sim into Makefile ..."rm -f Makesim1.tmp Makesim2.tmp Makefilesed -n -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ p' <Make-common.sim >Makesim1.tmpsed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >Makesim2.tmpsed -e '/^## COMMON_PRE_/ r Makesim1.tmp' \-e '/^## COMMON_POST_/ r Makesim2.tmp' \<Makefile.sim >Makefilerm -f Makefile.sim Make-common.sim Makesim1.tmp Makesim2.tmp;;esaccase "x$CONFIG_HEADERS" in xconfig.h:config.in) echo > stamp-h ;; esacexit 0EOFchmod +x $CONFIG_STATUSrm -fr confdefs* $ac_clean_filestest "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
Go to most recent revision | Compare with Previous | Blame | View Log
