Home | History | Annotate | Line # | Download | only in libiberty
configure revision 1.1
      1  1.1  skrll #! /bin/sh
      2  1.1  skrll # Guess values for system-dependent variables and create Makefiles.
      3  1.1  skrll # Generated by GNU Autoconf 2.59.
      4  1.1  skrll #
      5  1.1  skrll # Copyright (C) 2003 Free Software Foundation, Inc.
      6  1.1  skrll # This configure script is free software; the Free Software Foundation
      7  1.1  skrll # gives unlimited permission to copy, distribute and modify it.
      8  1.1  skrll ## --------------------- ##
      9  1.1  skrll ## M4sh Initialization.  ##
     10  1.1  skrll ## --------------------- ##
     11  1.1  skrll 
     12  1.1  skrll # Be Bourne compatible
     13  1.1  skrll if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
     14  1.1  skrll   emulate sh
     15  1.1  skrll   NULLCMD=:
     16  1.1  skrll   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
     17  1.1  skrll   # is contrary to our usage.  Disable this feature.
     18  1.1  skrll   alias -g '${1+"$@"}'='"$@"'
     19  1.1  skrll elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
     20  1.1  skrll   set -o posix
     21  1.1  skrll fi
     22  1.1  skrll DUALCASE=1; export DUALCASE # for MKS sh
     23  1.1  skrll 
     24  1.1  skrll # Support unset when possible.
     25  1.1  skrll if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
     26  1.1  skrll   as_unset=unset
     27  1.1  skrll else
     28  1.1  skrll   as_unset=false
     29  1.1  skrll fi
     30  1.1  skrll 
     31  1.1  skrll 
     32  1.1  skrll # Work around bugs in pre-3.0 UWIN ksh.
     33  1.1  skrll $as_unset ENV MAIL MAILPATH
     34  1.1  skrll PS1='$ '
     35  1.1  skrll PS2='> '
     36  1.1  skrll PS4='+ '
     37  1.1  skrll 
     38  1.1  skrll # NLS nuisances.
     39  1.1  skrll for as_var in \
     40  1.1  skrll   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
     41  1.1  skrll   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
     42  1.1  skrll   LC_TELEPHONE LC_TIME
     43  1.1  skrll do
     44  1.1  skrll   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
     45  1.1  skrll     eval $as_var=C; export $as_var
     46  1.1  skrll   else
     47  1.1  skrll     $as_unset $as_var
     48  1.1  skrll   fi
     49  1.1  skrll done
     50  1.1  skrll 
     51  1.1  skrll # Required to use basename.
     52  1.1  skrll if expr a : '\(a\)' >/dev/null 2>&1; then
     53  1.1  skrll   as_expr=expr
     54  1.1  skrll else
     55  1.1  skrll   as_expr=false
     56  1.1  skrll fi
     57  1.1  skrll 
     58  1.1  skrll if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
     59  1.1  skrll   as_basename=basename
     60  1.1  skrll else
     61  1.1  skrll   as_basename=false
     62  1.1  skrll fi
     63  1.1  skrll 
     64  1.1  skrll 
     65  1.1  skrll # Name of the executable.
     66  1.1  skrll as_me=`$as_basename "$0" ||
     67  1.1  skrll $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
     68  1.1  skrll 	 X"$0" : 'X\(//\)$' \| \
     69  1.1  skrll 	 X"$0" : 'X\(/\)$' \| \
     70  1.1  skrll 	 .     : '\(.\)' 2>/dev/null ||
     71  1.1  skrll echo X/"$0" |
     72  1.1  skrll     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
     73  1.1  skrll   	  /^X\/\(\/\/\)$/{ s//\1/; q; }
     74  1.1  skrll   	  /^X\/\(\/\).*/{ s//\1/; q; }
     75  1.1  skrll   	  s/.*/./; q'`
     76  1.1  skrll 
     77  1.1  skrll 
     78  1.1  skrll # PATH needs CR, and LINENO needs CR and PATH.
     79  1.1  skrll # Avoid depending upon Character Ranges.
     80  1.1  skrll as_cr_letters='abcdefghijklmnopqrstuvwxyz'
     81  1.1  skrll as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
     82  1.1  skrll as_cr_Letters=$as_cr_letters$as_cr_LETTERS
     83  1.1  skrll as_cr_digits='0123456789'
     84  1.1  skrll as_cr_alnum=$as_cr_Letters$as_cr_digits
     85  1.1  skrll 
     86  1.1  skrll # The user is always right.
     87  1.1  skrll if test "${PATH_SEPARATOR+set}" != set; then
     88  1.1  skrll   echo "#! /bin/sh" >conf$$.sh
     89  1.1  skrll   echo  "exit 0"   >>conf$$.sh
     90  1.1  skrll   chmod +x conf$$.sh
     91  1.1  skrll   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
     92  1.1  skrll     PATH_SEPARATOR=';'
     93  1.1  skrll   else
     94  1.1  skrll     PATH_SEPARATOR=:
     95  1.1  skrll   fi
     96  1.1  skrll   rm -f conf$$.sh
     97  1.1  skrll fi
     98  1.1  skrll 
     99  1.1  skrll 
    100  1.1  skrll   as_lineno_1=$LINENO
    101  1.1  skrll   as_lineno_2=$LINENO
    102  1.1  skrll   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
    103  1.1  skrll   test "x$as_lineno_1" != "x$as_lineno_2" &&
    104  1.1  skrll   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
    105  1.1  skrll   # Find who we are.  Look in the path if we contain no path at all
    106  1.1  skrll   # relative or not.
    107  1.1  skrll   case $0 in
    108  1.1  skrll     *[\\/]* ) as_myself=$0 ;;
    109  1.1  skrll     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    110  1.1  skrll for as_dir in $PATH
    111  1.1  skrll do
    112  1.1  skrll   IFS=$as_save_IFS
    113  1.1  skrll   test -z "$as_dir" && as_dir=.
    114  1.1  skrll   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
    115  1.1  skrll done
    116  1.1  skrll 
    117  1.1  skrll        ;;
    118  1.1  skrll   esac
    119  1.1  skrll   # We did not find ourselves, most probably we were run as `sh COMMAND'
    120  1.1  skrll   # in which case we are not to be found in the path.
    121  1.1  skrll   if test "x$as_myself" = x; then
    122  1.1  skrll     as_myself=$0
    123  1.1  skrll   fi
    124  1.1  skrll   if test ! -f "$as_myself"; then
    125  1.1  skrll     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
    126  1.1  skrll    { (exit 1); exit 1; }; }
    127  1.1  skrll   fi
    128  1.1  skrll   case $CONFIG_SHELL in
    129  1.1  skrll   '')
    130  1.1  skrll     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    131  1.1  skrll for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
    132  1.1  skrll do
    133  1.1  skrll   IFS=$as_save_IFS
    134  1.1  skrll   test -z "$as_dir" && as_dir=.
    135  1.1  skrll   for as_base in sh bash ksh sh5; do
    136  1.1  skrll 	 case $as_dir in
    137  1.1  skrll 	 /*)
    138  1.1  skrll 	   if ("$as_dir/$as_base" -c '
    139  1.1  skrll   as_lineno_1=$LINENO
    140  1.1  skrll   as_lineno_2=$LINENO
    141  1.1  skrll   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
    142  1.1  skrll   test "x$as_lineno_1" != "x$as_lineno_2" &&
    143  1.1  skrll   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
    144  1.1  skrll 	     $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
    145  1.1  skrll 	     $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
    146  1.1  skrll 	     CONFIG_SHELL=$as_dir/$as_base
    147  1.1  skrll 	     export CONFIG_SHELL
    148  1.1  skrll 	     exec "$CONFIG_SHELL" "$0" ${1+"$@"}
    149  1.1  skrll 	   fi;;
    150  1.1  skrll 	 esac
    151  1.1  skrll        done
    152  1.1  skrll done
    153  1.1  skrll ;;
    154  1.1  skrll   esac
    155  1.1  skrll 
    156  1.1  skrll   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
    157  1.1  skrll   # uniformly replaced by the line number.  The first 'sed' inserts a
    158  1.1  skrll   # line-number line before each line; the second 'sed' does the real
    159  1.1  skrll   # work.  The second script uses 'N' to pair each line-number line
    160  1.1  skrll   # with the numbered line, and appends trailing '-' during
    161  1.1  skrll   # substitution so that $LINENO is not a special case at line end.
    162  1.1  skrll   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
    163  1.1  skrll   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
    164  1.1  skrll   sed '=' <$as_myself |
    165  1.1  skrll     sed '
    166  1.1  skrll       N
    167  1.1  skrll       s,$,-,
    168  1.1  skrll       : loop
    169  1.1  skrll       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
    170  1.1  skrll       t loop
    171  1.1  skrll       s,-$,,
    172  1.1  skrll       s,^['$as_cr_digits']*\n,,
    173  1.1  skrll     ' >$as_me.lineno &&
    174  1.1  skrll   chmod +x $as_me.lineno ||
    175  1.1  skrll     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
    176  1.1  skrll    { (exit 1); exit 1; }; }
    177  1.1  skrll 
    178  1.1  skrll   # Don't try to exec as it changes $[0], causing all sort of problems
    179  1.1  skrll   # (the dirname of $[0] is not the place where we might find the
    180  1.1  skrll   # original and so on.  Autoconf is especially sensible to this).
    181  1.1  skrll   . ./$as_me.lineno
    182  1.1  skrll   # Exit status is that of the last command.
    183  1.1  skrll   exit
    184  1.1  skrll }
    185  1.1  skrll 
    186  1.1  skrll 
    187  1.1  skrll case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
    188  1.1  skrll   *c*,-n*) ECHO_N= ECHO_C='
    189  1.1  skrll ' ECHO_T='	' ;;
    190  1.1  skrll   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
    191  1.1  skrll   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
    192  1.1  skrll esac
    193  1.1  skrll 
    194  1.1  skrll if expr a : '\(a\)' >/dev/null 2>&1; then
    195  1.1  skrll   as_expr=expr
    196  1.1  skrll else
    197  1.1  skrll   as_expr=false
    198  1.1  skrll fi
    199  1.1  skrll 
    200  1.1  skrll rm -f conf$$ conf$$.exe conf$$.file
    201  1.1  skrll echo >conf$$.file
    202  1.1  skrll if ln -s conf$$.file conf$$ 2>/dev/null; then
    203  1.1  skrll   # We could just check for DJGPP; but this test a) works b) is more generic
    204  1.1  skrll   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
    205  1.1  skrll   if test -f conf$$.exe; then
    206  1.1  skrll     # Don't use ln at all; we don't have any links
    207  1.1  skrll     as_ln_s='cp -p'
    208  1.1  skrll   else
    209  1.1  skrll     as_ln_s='ln -s'
    210  1.1  skrll   fi
    211  1.1  skrll elif ln conf$$.file conf$$ 2>/dev/null; then
    212  1.1  skrll   as_ln_s=ln
    213  1.1  skrll else
    214  1.1  skrll   as_ln_s='cp -p'
    215  1.1  skrll fi
    216  1.1  skrll rm -f conf$$ conf$$.exe conf$$.file
    217  1.1  skrll 
    218  1.1  skrll if mkdir -p . 2>/dev/null; then
    219  1.1  skrll   as_mkdir_p=:
    220  1.1  skrll else
    221  1.1  skrll   test -d ./-p && rmdir ./-p
    222  1.1  skrll   as_mkdir_p=false
    223  1.1  skrll fi
    224  1.1  skrll 
    225  1.1  skrll as_executable_p="test -f"
    226  1.1  skrll 
    227  1.1  skrll # Sed expression to map a string onto a valid CPP name.
    228  1.1  skrll as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
    229  1.1  skrll 
    230  1.1  skrll # Sed expression to map a string onto a valid variable name.
    231  1.1  skrll as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
    232  1.1  skrll 
    233  1.1  skrll 
    234  1.1  skrll # IFS
    235  1.1  skrll # We need space, tab and new line, in precisely that order.
    236  1.1  skrll as_nl='
    237  1.1  skrll '
    238  1.1  skrll IFS=" 	$as_nl"
    239  1.1  skrll 
    240  1.1  skrll # CDPATH.
    241  1.1  skrll $as_unset CDPATH
    242  1.1  skrll 
    243  1.1  skrll 
    244  1.1  skrll # Name of the host.
    245  1.1  skrll # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
    246  1.1  skrll # so uname gets run too.
    247  1.1  skrll ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
    248  1.1  skrll 
    249  1.1  skrll exec 6>&1
    250  1.1  skrll 
    251  1.1  skrll #
    252  1.1  skrll # Initializations.
    253  1.1  skrll #
    254  1.1  skrll ac_default_prefix=/usr/local
    255  1.1  skrll ac_config_libobj_dir=.
    256  1.1  skrll cross_compiling=no
    257  1.1  skrll subdirs=
    258  1.1  skrll MFLAGS=
    259  1.1  skrll MAKEFLAGS=
    260  1.1  skrll SHELL=${CONFIG_SHELL-/bin/sh}
    261  1.1  skrll 
    262  1.1  skrll # Maximum number of lines to put in a shell here document.
    263  1.1  skrll # This variable seems obsolete.  It should probably be removed, and
    264  1.1  skrll # only ac_max_sed_lines should be used.
    265  1.1  skrll : ${ac_max_here_lines=38}
    266  1.1  skrll 
    267  1.1  skrll # Identity of this package.
    268  1.1  skrll PACKAGE_NAME=
    269  1.1  skrll PACKAGE_TARNAME=
    270  1.1  skrll PACKAGE_VERSION=
    271  1.1  skrll PACKAGE_STRING=
    272  1.1  skrll PACKAGE_BUGREPORT=
    273  1.1  skrll 
    274  1.1  skrll ac_unique_file="xmalloc.c"
    275  1.1  skrll # Factoring default headers for most tests.
    276  1.1  skrll ac_includes_default="\
    277  1.1  skrll #include <stdio.h>
    278  1.1  skrll #if HAVE_SYS_TYPES_H
    279  1.1  skrll # include <sys/types.h>
    280  1.1  skrll #endif
    281  1.1  skrll #if HAVE_SYS_STAT_H
    282  1.1  skrll # include <sys/stat.h>
    283  1.1  skrll #endif
    284  1.1  skrll #if STDC_HEADERS
    285  1.1  skrll # include <stdlib.h>
    286  1.1  skrll # include <stddef.h>
    287  1.1  skrll #else
    288  1.1  skrll # if HAVE_STDLIB_H
    289  1.1  skrll #  include <stdlib.h>
    290  1.1  skrll # endif
    291  1.1  skrll #endif
    292  1.1  skrll #if HAVE_STRING_H
    293  1.1  skrll # if !STDC_HEADERS && HAVE_MEMORY_H
    294  1.1  skrll #  include <memory.h>
    295  1.1  skrll # endif
    296  1.1  skrll # include <string.h>
    297  1.1  skrll #endif
    298  1.1  skrll #if HAVE_STRINGS_H
    299  1.1  skrll # include <strings.h>
    300  1.1  skrll #endif
    301  1.1  skrll #if HAVE_INTTYPES_H
    302  1.1  skrll # include <inttypes.h>
    303  1.1  skrll #else
    304  1.1  skrll # if HAVE_STDINT_H
    305  1.1  skrll #  include <stdint.h>
    306  1.1  skrll # endif
    307  1.1  skrll #endif
    308  1.1  skrll #if HAVE_UNISTD_H
    309  1.1  skrll # include <unistd.h>
    310  1.1  skrll #endif"
    311  1.1  skrll 
    312  1.1  skrll ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS libiberty_topdir MAINT NOTMAINT MAKEINFO BUILD_INFO PERL HAVE_PERL build build_cpu build_vendor build_os host host_cpu host_vendor host_os AR ac_ct_AR RANLIB ac_ct_RANLIB CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP ac_libiberty_warn_cflags NO_MINUS_C_MINUS_O OUTPUT_OPTION INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA PICFLAG EGREP LIBOBJS CHECK target_header_dir pexecute INSTALL_DEST datarootdir docdir htmldir LTLIBOBJS'
    313  1.1  skrll ac_subst_files='host_makefile_frag'
    314  1.1  skrll ac_pwd=`pwd`
    315  1.1  skrll 
    316  1.1  skrll # Initialize some variables set by options.
    317  1.1  skrll ac_init_help=
    318  1.1  skrll ac_init_version=false
    319  1.1  skrll # The variables have the same names as the options, with
    320  1.1  skrll # dashes changed to underlines.
    321  1.1  skrll cache_file=/dev/null
    322  1.1  skrll exec_prefix=NONE
    323  1.1  skrll no_create=
    324  1.1  skrll no_recursion=
    325  1.1  skrll prefix=NONE
    326  1.1  skrll program_prefix=NONE
    327  1.1  skrll program_suffix=NONE
    328  1.1  skrll program_transform_name=s,x,x,
    329  1.1  skrll silent=
    330  1.1  skrll site=
    331  1.1  skrll srcdir=
    332  1.1  skrll verbose=
    333  1.1  skrll x_includes=NONE
    334  1.1  skrll x_libraries=NONE
    335  1.1  skrll 
    336  1.1  skrll # Installation directory options.
    337  1.1  skrll # These are left unexpanded so users can "make install exec_prefix=/foo"
    338  1.1  skrll # and all the variables that are supposed to be based on exec_prefix
    339  1.1  skrll # by default will actually change.
    340  1.1  skrll # Use braces instead of parens because sh, perl, etc. also accept them.
    341  1.1  skrll bindir='${exec_prefix}/bin'
    342  1.1  skrll sbindir='${exec_prefix}/sbin'
    343  1.1  skrll libexecdir='${exec_prefix}/libexec'
    344  1.1  skrll datadir='${prefix}/share'
    345  1.1  skrll sysconfdir='${prefix}/etc'
    346  1.1  skrll sharedstatedir='${prefix}/com'
    347  1.1  skrll localstatedir='${prefix}/var'
    348  1.1  skrll libdir='${exec_prefix}/lib'
    349  1.1  skrll includedir='${prefix}/include'
    350  1.1  skrll oldincludedir='/usr/include'
    351  1.1  skrll infodir='${prefix}/info'
    352  1.1  skrll mandir='${prefix}/man'
    353  1.1  skrll 
    354  1.1  skrll ac_prev=
    355  1.1  skrll for ac_option
    356  1.1  skrll do
    357  1.1  skrll   # If the previous option needs an argument, assign it.
    358  1.1  skrll   if test -n "$ac_prev"; then
    359  1.1  skrll     eval "$ac_prev=\$ac_option"
    360  1.1  skrll     ac_prev=
    361  1.1  skrll     continue
    362  1.1  skrll   fi
    363  1.1  skrll 
    364  1.1  skrll   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
    365  1.1  skrll 
    366  1.1  skrll   # Accept the important Cygnus configure options, so we can diagnose typos.
    367  1.1  skrll 
    368  1.1  skrll   case $ac_option in
    369  1.1  skrll 
    370  1.1  skrll   -bindir | --bindir | --bindi | --bind | --bin | --bi)
    371  1.1  skrll     ac_prev=bindir ;;
    372  1.1  skrll   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
    373  1.1  skrll     bindir=$ac_optarg ;;
    374  1.1  skrll 
    375  1.1  skrll   -build | --build | --buil | --bui | --bu)
    376  1.1  skrll     ac_prev=build_alias ;;
    377  1.1  skrll   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
    378  1.1  skrll     build_alias=$ac_optarg ;;
    379  1.1  skrll 
    380  1.1  skrll   -cache-file | --cache-file | --cache-fil | --cache-fi \
    381  1.1  skrll   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
    382  1.1  skrll     ac_prev=cache_file ;;
    383  1.1  skrll   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
    384  1.1  skrll   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
    385  1.1  skrll     cache_file=$ac_optarg ;;
    386  1.1  skrll 
    387  1.1  skrll   --config-cache | -C)
    388  1.1  skrll     cache_file=config.cache ;;
    389  1.1  skrll 
    390  1.1  skrll   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
    391  1.1  skrll     ac_prev=datadir ;;
    392  1.1  skrll   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
    393  1.1  skrll   | --da=*)
    394  1.1  skrll     datadir=$ac_optarg ;;
    395  1.1  skrll 
    396  1.1  skrll   -disable-* | --disable-*)
    397  1.1  skrll     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
    398  1.1  skrll     # Reject names that are not valid shell variable names.
    399  1.1  skrll     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
    400  1.1  skrll       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
    401  1.1  skrll    { (exit 1); exit 1; }; }
    402  1.1  skrll     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
    403  1.1  skrll     eval "enable_$ac_feature=no" ;;
    404  1.1  skrll 
    405  1.1  skrll   -enable-* | --enable-*)
    406  1.1  skrll     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
    407  1.1  skrll     # Reject names that are not valid shell variable names.
    408  1.1  skrll     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
    409  1.1  skrll       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
    410  1.1  skrll    { (exit 1); exit 1; }; }
    411  1.1  skrll     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
    412  1.1  skrll     case $ac_option in
    413  1.1  skrll       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
    414  1.1  skrll       *) ac_optarg=yes ;;
    415  1.1  skrll     esac
    416  1.1  skrll     eval "enable_$ac_feature='$ac_optarg'" ;;
    417  1.1  skrll 
    418  1.1  skrll   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
    419  1.1  skrll   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
    420  1.1  skrll   | --exec | --exe | --ex)
    421  1.1  skrll     ac_prev=exec_prefix ;;
    422  1.1  skrll   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
    423  1.1  skrll   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
    424  1.1  skrll   | --exec=* | --exe=* | --ex=*)
    425  1.1  skrll     exec_prefix=$ac_optarg ;;
    426  1.1  skrll 
    427  1.1  skrll   -gas | --gas | --ga | --g)
    428  1.1  skrll     # Obsolete; use --with-gas.
    429  1.1  skrll     with_gas=yes ;;
    430  1.1  skrll 
    431  1.1  skrll   -help | --help | --hel | --he | -h)
    432  1.1  skrll     ac_init_help=long ;;
    433  1.1  skrll   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
    434  1.1  skrll     ac_init_help=recursive ;;
    435  1.1  skrll   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
    436  1.1  skrll     ac_init_help=short ;;
    437  1.1  skrll 
    438  1.1  skrll   -host | --host | --hos | --ho)
    439  1.1  skrll     ac_prev=host_alias ;;
    440  1.1  skrll   -host=* | --host=* | --hos=* | --ho=*)
    441  1.1  skrll     host_alias=$ac_optarg ;;
    442  1.1  skrll 
    443  1.1  skrll   -includedir | --includedir | --includedi | --included | --include \
    444  1.1  skrll   | --includ | --inclu | --incl | --inc)
    445  1.1  skrll     ac_prev=includedir ;;
    446  1.1  skrll   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
    447  1.1  skrll   | --includ=* | --inclu=* | --incl=* | --inc=*)
    448  1.1  skrll     includedir=$ac_optarg ;;
    449  1.1  skrll 
    450  1.1  skrll   -infodir | --infodir | --infodi | --infod | --info | --inf)
    451  1.1  skrll     ac_prev=infodir ;;
    452  1.1  skrll   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
    453  1.1  skrll     infodir=$ac_optarg ;;
    454  1.1  skrll 
    455  1.1  skrll   -libdir | --libdir | --libdi | --libd)
    456  1.1  skrll     ac_prev=libdir ;;
    457  1.1  skrll   -libdir=* | --libdir=* | --libdi=* | --libd=*)
    458  1.1  skrll     libdir=$ac_optarg ;;
    459  1.1  skrll 
    460  1.1  skrll   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
    461  1.1  skrll   | --libexe | --libex | --libe)
    462  1.1  skrll     ac_prev=libexecdir ;;
    463  1.1  skrll   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
    464  1.1  skrll   | --libexe=* | --libex=* | --libe=*)
    465  1.1  skrll     libexecdir=$ac_optarg ;;
    466  1.1  skrll 
    467  1.1  skrll   -localstatedir | --localstatedir | --localstatedi | --localstated \
    468  1.1  skrll   | --localstate | --localstat | --localsta | --localst \
    469  1.1  skrll   | --locals | --local | --loca | --loc | --lo)
    470  1.1  skrll     ac_prev=localstatedir ;;
    471  1.1  skrll   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
    472  1.1  skrll   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
    473  1.1  skrll   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
    474  1.1  skrll     localstatedir=$ac_optarg ;;
    475  1.1  skrll 
    476  1.1  skrll   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
    477  1.1  skrll     ac_prev=mandir ;;
    478  1.1  skrll   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
    479  1.1  skrll     mandir=$ac_optarg ;;
    480  1.1  skrll 
    481  1.1  skrll   -nfp | --nfp | --nf)
    482  1.1  skrll     # Obsolete; use --without-fp.
    483  1.1  skrll     with_fp=no ;;
    484  1.1  skrll 
    485  1.1  skrll   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
    486  1.1  skrll   | --no-cr | --no-c | -n)
    487  1.1  skrll     no_create=yes ;;
    488  1.1  skrll 
    489  1.1  skrll   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
    490  1.1  skrll   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
    491  1.1  skrll     no_recursion=yes ;;
    492  1.1  skrll 
    493  1.1  skrll   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
    494  1.1  skrll   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
    495  1.1  skrll   | --oldin | --oldi | --old | --ol | --o)
    496  1.1  skrll     ac_prev=oldincludedir ;;
    497  1.1  skrll   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
    498  1.1  skrll   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
    499  1.1  skrll   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
    500  1.1  skrll     oldincludedir=$ac_optarg ;;
    501  1.1  skrll 
    502  1.1  skrll   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
    503  1.1  skrll     ac_prev=prefix ;;
    504  1.1  skrll   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
    505  1.1  skrll     prefix=$ac_optarg ;;
    506  1.1  skrll 
    507  1.1  skrll   -program-prefix | --program-prefix | --program-prefi | --program-pref \
    508  1.1  skrll   | --program-pre | --program-pr | --program-p)
    509  1.1  skrll     ac_prev=program_prefix ;;
    510  1.1  skrll   -program-prefix=* | --program-prefix=* | --program-prefi=* \
    511  1.1  skrll   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
    512  1.1  skrll     program_prefix=$ac_optarg ;;
    513  1.1  skrll 
    514  1.1  skrll   -program-suffix | --program-suffix | --program-suffi | --program-suff \
    515  1.1  skrll   | --program-suf | --program-su | --program-s)
    516  1.1  skrll     ac_prev=program_suffix ;;
    517  1.1  skrll   -program-suffix=* | --program-suffix=* | --program-suffi=* \
    518  1.1  skrll   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
    519  1.1  skrll     program_suffix=$ac_optarg ;;
    520  1.1  skrll 
    521  1.1  skrll   -program-transform-name | --program-transform-name \
    522  1.1  skrll   | --program-transform-nam | --program-transform-na \
    523  1.1  skrll   | --program-transform-n | --program-transform- \
    524  1.1  skrll   | --program-transform | --program-transfor \
    525  1.1  skrll   | --program-transfo | --program-transf \
    526  1.1  skrll   | --program-trans | --program-tran \
    527  1.1  skrll   | --progr-tra | --program-tr | --program-t)
    528  1.1  skrll     ac_prev=program_transform_name ;;
    529  1.1  skrll   -program-transform-name=* | --program-transform-name=* \
    530  1.1  skrll   | --program-transform-nam=* | --program-transform-na=* \
    531  1.1  skrll   | --program-transform-n=* | --program-transform-=* \
    532  1.1  skrll   | --program-transform=* | --program-transfor=* \
    533  1.1  skrll   | --program-transfo=* | --program-transf=* \
    534  1.1  skrll   | --program-trans=* | --program-tran=* \
    535  1.1  skrll   | --progr-tra=* | --program-tr=* | --program-t=*)
    536  1.1  skrll     program_transform_name=$ac_optarg ;;
    537  1.1  skrll 
    538  1.1  skrll   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
    539  1.1  skrll   | -silent | --silent | --silen | --sile | --sil)
    540  1.1  skrll     silent=yes ;;
    541  1.1  skrll 
    542  1.1  skrll   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
    543  1.1  skrll     ac_prev=sbindir ;;
    544  1.1  skrll   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
    545  1.1  skrll   | --sbi=* | --sb=*)
    546  1.1  skrll     sbindir=$ac_optarg ;;
    547  1.1  skrll 
    548  1.1  skrll   -sharedstatedir | --sharedstatedir | --sharedstatedi \
    549  1.1  skrll   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
    550  1.1  skrll   | --sharedst | --shareds | --shared | --share | --shar \
    551  1.1  skrll   | --sha | --sh)
    552  1.1  skrll     ac_prev=sharedstatedir ;;
    553  1.1  skrll   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
    554  1.1  skrll   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
    555  1.1  skrll   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
    556  1.1  skrll   | --sha=* | --sh=*)
    557  1.1  skrll     sharedstatedir=$ac_optarg ;;
    558  1.1  skrll 
    559  1.1  skrll   -site | --site | --sit)
    560  1.1  skrll     ac_prev=site ;;
    561  1.1  skrll   -site=* | --site=* | --sit=*)
    562  1.1  skrll     site=$ac_optarg ;;
    563  1.1  skrll 
    564  1.1  skrll   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
    565  1.1  skrll     ac_prev=srcdir ;;
    566  1.1  skrll   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
    567  1.1  skrll     srcdir=$ac_optarg ;;
    568  1.1  skrll 
    569  1.1  skrll   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
    570  1.1  skrll   | --syscon | --sysco | --sysc | --sys | --sy)
    571  1.1  skrll     ac_prev=sysconfdir ;;
    572  1.1  skrll   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
    573  1.1  skrll   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
    574  1.1  skrll     sysconfdir=$ac_optarg ;;
    575  1.1  skrll 
    576  1.1  skrll   -target | --target | --targe | --targ | --tar | --ta | --t)
    577  1.1  skrll     ac_prev=target_alias ;;
    578  1.1  skrll   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
    579  1.1  skrll     target_alias=$ac_optarg ;;
    580  1.1  skrll 
    581  1.1  skrll   -v | -verbose | --verbose | --verbos | --verbo | --verb)
    582  1.1  skrll     verbose=yes ;;
    583  1.1  skrll 
    584  1.1  skrll   -version | --version | --versio | --versi | --vers | -V)
    585  1.1  skrll     ac_init_version=: ;;
    586  1.1  skrll 
    587  1.1  skrll   -with-* | --with-*)
    588  1.1  skrll     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
    589  1.1  skrll     # Reject names that are not valid shell variable names.
    590  1.1  skrll     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
    591  1.1  skrll       { echo "$as_me: error: invalid package name: $ac_package" >&2
    592  1.1  skrll    { (exit 1); exit 1; }; }
    593  1.1  skrll     ac_package=`echo $ac_package| sed 's/-/_/g'`
    594  1.1  skrll     case $ac_option in
    595  1.1  skrll       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
    596  1.1  skrll       *) ac_optarg=yes ;;
    597  1.1  skrll     esac
    598  1.1  skrll     eval "with_$ac_package='$ac_optarg'" ;;
    599  1.1  skrll 
    600  1.1  skrll   -without-* | --without-*)
    601  1.1  skrll     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
    602  1.1  skrll     # Reject names that are not valid shell variable names.
    603  1.1  skrll     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
    604  1.1  skrll       { echo "$as_me: error: invalid package name: $ac_package" >&2
    605  1.1  skrll    { (exit 1); exit 1; }; }
    606  1.1  skrll     ac_package=`echo $ac_package | sed 's/-/_/g'`
    607  1.1  skrll     eval "with_$ac_package=no" ;;
    608  1.1  skrll 
    609  1.1  skrll   --x)
    610  1.1  skrll     # Obsolete; use --with-x.
    611  1.1  skrll     with_x=yes ;;
    612  1.1  skrll 
    613  1.1  skrll   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
    614  1.1  skrll   | --x-incl | --x-inc | --x-in | --x-i)
    615  1.1  skrll     ac_prev=x_includes ;;
    616  1.1  skrll   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
    617  1.1  skrll   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
    618  1.1  skrll     x_includes=$ac_optarg ;;
    619  1.1  skrll 
    620  1.1  skrll   -x-libraries | --x-libraries | --x-librarie | --x-librari \
    621  1.1  skrll   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
    622  1.1  skrll     ac_prev=x_libraries ;;
    623  1.1  skrll   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
    624  1.1  skrll   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
    625  1.1  skrll     x_libraries=$ac_optarg ;;
    626  1.1  skrll 
    627  1.1  skrll   -*) { echo "$as_me: error: unrecognized option: $ac_option
    628  1.1  skrll Try \`$0 --help' for more information." >&2
    629  1.1  skrll    { (exit 1); exit 1; }; }
    630  1.1  skrll     ;;
    631  1.1  skrll 
    632  1.1  skrll   *=*)
    633  1.1  skrll     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
    634  1.1  skrll     # Reject names that are not valid shell variable names.
    635  1.1  skrll     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
    636  1.1  skrll       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
    637  1.1  skrll    { (exit 1); exit 1; }; }
    638  1.1  skrll     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
    639  1.1  skrll     eval "$ac_envvar='$ac_optarg'"
    640  1.1  skrll     export $ac_envvar ;;
    641  1.1  skrll 
    642  1.1  skrll   *)
    643  1.1  skrll     # FIXME: should be removed in autoconf 3.0.
    644  1.1  skrll     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
    645  1.1  skrll     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
    646  1.1  skrll       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
    647  1.1  skrll     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
    648  1.1  skrll     ;;
    649  1.1  skrll 
    650  1.1  skrll   esac
    651  1.1  skrll done
    652  1.1  skrll 
    653  1.1  skrll if test -n "$ac_prev"; then
    654  1.1  skrll   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
    655  1.1  skrll   { echo "$as_me: error: missing argument to $ac_option" >&2
    656  1.1  skrll    { (exit 1); exit 1; }; }
    657  1.1  skrll fi
    658  1.1  skrll 
    659  1.1  skrll # Be sure to have absolute paths.
    660  1.1  skrll for ac_var in exec_prefix prefix
    661  1.1  skrll do
    662  1.1  skrll   eval ac_val=$`echo $ac_var`
    663  1.1  skrll   case $ac_val in
    664  1.1  skrll     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
    665  1.1  skrll     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
    666  1.1  skrll    { (exit 1); exit 1; }; };;
    667  1.1  skrll   esac
    668  1.1  skrll done
    669  1.1  skrll 
    670  1.1  skrll # Be sure to have absolute paths.
    671  1.1  skrll for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
    672  1.1  skrll 	      localstatedir libdir includedir oldincludedir infodir mandir
    673  1.1  skrll do
    674  1.1  skrll   eval ac_val=$`echo $ac_var`
    675  1.1  skrll   case $ac_val in
    676  1.1  skrll     [\\/$]* | ?:[\\/]* ) ;;
    677  1.1  skrll     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
    678  1.1  skrll    { (exit 1); exit 1; }; };;
    679  1.1  skrll   esac
    680  1.1  skrll done
    681  1.1  skrll 
    682  1.1  skrll # There might be people who depend on the old broken behavior: `$host'
    683  1.1  skrll # used to hold the argument of --host etc.
    684  1.1  skrll # FIXME: To remove some day.
    685  1.1  skrll build=$build_alias
    686  1.1  skrll host=$host_alias
    687  1.1  skrll target=$target_alias
    688  1.1  skrll 
    689  1.1  skrll # FIXME: To remove some day.
    690  1.1  skrll if test "x$host_alias" != x; then
    691  1.1  skrll   if test "x$build_alias" = x; then
    692  1.1  skrll     cross_compiling=maybe
    693  1.1  skrll     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
    694  1.1  skrll     If a cross compiler is detected then cross compile mode will be used." >&2
    695  1.1  skrll   elif test "x$build_alias" != "x$host_alias"; then
    696  1.1  skrll     cross_compiling=yes
    697  1.1  skrll   fi
    698  1.1  skrll fi
    699  1.1  skrll 
    700  1.1  skrll ac_tool_prefix=
    701  1.1  skrll test -n "$host_alias" && ac_tool_prefix=$host_alias-
    702  1.1  skrll 
    703  1.1  skrll test "$silent" = yes && exec 6>/dev/null
    704  1.1  skrll 
    705  1.1  skrll 
    706  1.1  skrll # Find the source files, if location was not specified.
    707  1.1  skrll if test -z "$srcdir"; then
    708  1.1  skrll   ac_srcdir_defaulted=yes
    709  1.1  skrll   # Try the directory containing this script, then its parent.
    710  1.1  skrll   ac_confdir=`(dirname "$0") 2>/dev/null ||
    711  1.1  skrll $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
    712  1.1  skrll 	 X"$0" : 'X\(//\)[^/]' \| \
    713  1.1  skrll 	 X"$0" : 'X\(//\)$' \| \
    714  1.1  skrll 	 X"$0" : 'X\(/\)' \| \
    715  1.1  skrll 	 .     : '\(.\)' 2>/dev/null ||
    716  1.1  skrll echo X"$0" |
    717  1.1  skrll     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
    718  1.1  skrll   	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
    719  1.1  skrll   	  /^X\(\/\/\)$/{ s//\1/; q; }
    720  1.1  skrll   	  /^X\(\/\).*/{ s//\1/; q; }
    721  1.1  skrll   	  s/.*/./; q'`
    722  1.1  skrll   srcdir=$ac_confdir
    723  1.1  skrll   if test ! -r $srcdir/$ac_unique_file; then
    724  1.1  skrll     srcdir=..
    725  1.1  skrll   fi
    726  1.1  skrll else
    727  1.1  skrll   ac_srcdir_defaulted=no
    728  1.1  skrll fi
    729  1.1  skrll if test ! -r $srcdir/$ac_unique_file; then
    730  1.1  skrll   if test "$ac_srcdir_defaulted" = yes; then
    731  1.1  skrll     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
    732  1.1  skrll    { (exit 1); exit 1; }; }
    733  1.1  skrll   else
    734  1.1  skrll     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
    735  1.1  skrll    { (exit 1); exit 1; }; }
    736  1.1  skrll   fi
    737  1.1  skrll fi
    738  1.1  skrll (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
    739  1.1  skrll   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
    740  1.1  skrll    { (exit 1); exit 1; }; }
    741  1.1  skrll srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
    742  1.1  skrll ac_env_build_alias_set=${build_alias+set}
    743  1.1  skrll ac_env_build_alias_value=$build_alias
    744  1.1  skrll ac_cv_env_build_alias_set=${build_alias+set}
    745  1.1  skrll ac_cv_env_build_alias_value=$build_alias
    746  1.1  skrll ac_env_host_alias_set=${host_alias+set}
    747  1.1  skrll ac_env_host_alias_value=$host_alias
    748  1.1  skrll ac_cv_env_host_alias_set=${host_alias+set}
    749  1.1  skrll ac_cv_env_host_alias_value=$host_alias
    750  1.1  skrll ac_env_target_alias_set=${target_alias+set}
    751  1.1  skrll ac_env_target_alias_value=$target_alias
    752  1.1  skrll ac_cv_env_target_alias_set=${target_alias+set}
    753  1.1  skrll ac_cv_env_target_alias_value=$target_alias
    754  1.1  skrll ac_env_CC_set=${CC+set}
    755  1.1  skrll ac_env_CC_value=$CC
    756  1.1  skrll ac_cv_env_CC_set=${CC+set}
    757  1.1  skrll ac_cv_env_CC_value=$CC
    758  1.1  skrll ac_env_CFLAGS_set=${CFLAGS+set}
    759  1.1  skrll ac_env_CFLAGS_value=$CFLAGS
    760  1.1  skrll ac_cv_env_CFLAGS_set=${CFLAGS+set}
    761  1.1  skrll ac_cv_env_CFLAGS_value=$CFLAGS
    762  1.1  skrll ac_env_LDFLAGS_set=${LDFLAGS+set}
    763  1.1  skrll ac_env_LDFLAGS_value=$LDFLAGS
    764  1.1  skrll ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
    765  1.1  skrll ac_cv_env_LDFLAGS_value=$LDFLAGS
    766  1.1  skrll ac_env_CPPFLAGS_set=${CPPFLAGS+set}
    767  1.1  skrll ac_env_CPPFLAGS_value=$CPPFLAGS
    768  1.1  skrll ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
    769  1.1  skrll ac_cv_env_CPPFLAGS_value=$CPPFLAGS
    770  1.1  skrll ac_env_CPP_set=${CPP+set}
    771  1.1  skrll ac_env_CPP_value=$CPP
    772  1.1  skrll ac_cv_env_CPP_set=${CPP+set}
    773  1.1  skrll ac_cv_env_CPP_value=$CPP
    774  1.1  skrll 
    775  1.1  skrll #
    776  1.1  skrll # Report the --help message.
    777  1.1  skrll #
    778  1.1  skrll if test "$ac_init_help" = "long"; then
    779  1.1  skrll   # Omit some internal or obsolete options to make the list less imposing.
    780  1.1  skrll   # This message is too long to be a string in the A/UX 3.1 sh.
    781  1.1  skrll   cat <<_ACEOF
    782  1.1  skrll \`configure' configures this package to adapt to many kinds of systems.
    783  1.1  skrll 
    784  1.1  skrll Usage: $0 [OPTION]... [VAR=VALUE]...
    785  1.1  skrll 
    786  1.1  skrll To assign environment variables (e.g., CC, CFLAGS...), specify them as
    787  1.1  skrll VAR=VALUE.  See below for descriptions of some of the useful variables.
    788  1.1  skrll 
    789  1.1  skrll Defaults for the options are specified in brackets.
    790  1.1  skrll 
    791  1.1  skrll Configuration:
    792  1.1  skrll   -h, --help              display this help and exit
    793  1.1  skrll       --help=short        display options specific to this package
    794  1.1  skrll       --help=recursive    display the short help of all the included packages
    795  1.1  skrll   -V, --version           display version information and exit
    796  1.1  skrll   -q, --quiet, --silent   do not print \`checking...' messages
    797  1.1  skrll       --cache-file=FILE   cache test results in FILE [disabled]
    798  1.1  skrll   -C, --config-cache      alias for \`--cache-file=config.cache'
    799  1.1  skrll   -n, --no-create         do not create output files
    800  1.1  skrll       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
    801  1.1  skrll 
    802  1.1  skrll _ACEOF
    803  1.1  skrll 
    804  1.1  skrll   cat <<_ACEOF
    805  1.1  skrll Installation directories:
    806  1.1  skrll   --prefix=PREFIX         install architecture-independent files in PREFIX
    807  1.1  skrll 			  [$ac_default_prefix]
    808  1.1  skrll   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
    809  1.1  skrll 			  [PREFIX]
    810  1.1  skrll 
    811  1.1  skrll By default, \`make install' will install all the files in
    812  1.1  skrll \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
    813  1.1  skrll an installation prefix other than \`$ac_default_prefix' using \`--prefix',
    814  1.1  skrll for instance \`--prefix=\$HOME'.
    815  1.1  skrll 
    816  1.1  skrll For better control, use the options below.
    817  1.1  skrll 
    818  1.1  skrll Fine tuning of the installation directories:
    819  1.1  skrll   --bindir=DIR           user executables [EPREFIX/bin]
    820  1.1  skrll   --sbindir=DIR          system admin executables [EPREFIX/sbin]
    821  1.1  skrll   --libexecdir=DIR       program executables [EPREFIX/libexec]
    822  1.1  skrll   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
    823  1.1  skrll   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
    824  1.1  skrll   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
    825  1.1  skrll   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
    826  1.1  skrll   --libdir=DIR           object code libraries [EPREFIX/lib]
    827  1.1  skrll   --includedir=DIR       C header files [PREFIX/include]
    828  1.1  skrll   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
    829  1.1  skrll   --infodir=DIR          info documentation [PREFIX/info]
    830  1.1  skrll   --mandir=DIR           man documentation [PREFIX/man]
    831  1.1  skrll _ACEOF
    832  1.1  skrll 
    833  1.1  skrll   cat <<\_ACEOF
    834  1.1  skrll 
    835  1.1  skrll System types:
    836  1.1  skrll   --build=BUILD     configure for building on BUILD [guessed]
    837  1.1  skrll   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
    838  1.1  skrll _ACEOF
    839  1.1  skrll fi
    840  1.1  skrll 
    841  1.1  skrll if test -n "$ac_init_help"; then
    842  1.1  skrll 
    843  1.1  skrll   cat <<\_ACEOF
    844  1.1  skrll 
    845  1.1  skrll Optional Features:
    846  1.1  skrll   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
    847  1.1  skrll   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
    848  1.1  skrll   --enable-maintainer-mode
    849  1.1  skrll                           enable make rules and dependencies not useful
    850  1.1  skrll                           (and sometimes confusing) to the casual installer
    851  1.1  skrll   --enable-multilib       build many library versions (default)
    852  1.1  skrll   --enable-install-libiberty       Install headers for end users
    853  1.1  skrll 
    854  1.1  skrll Optional Packages:
    855  1.1  skrll   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
    856  1.1  skrll   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
    857  1.1  skrll   --with-target-subdir=SUBDIR      Configuring in a subdirectory for target
    858  1.1  skrll   --with-build-subdir=SUBDIR       Configuring in a subdirectory for build
    859  1.1  skrll   --with-cross-host=HOST           Configuring with a cross compiler
    860  1.1  skrll   --with-newlib                    Configuring with newlib
    861  1.1  skrll 
    862  1.1  skrll Some influential environment variables:
    863  1.1  skrll   CC          C compiler command
    864  1.1  skrll   CFLAGS      C compiler flags
    865  1.1  skrll   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
    866  1.1  skrll               nonstandard directory <lib dir>
    867  1.1  skrll   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
    868  1.1  skrll               headers in a nonstandard directory <include dir>
    869  1.1  skrll   CPP         C preprocessor
    870  1.1  skrll 
    871  1.1  skrll Use these variables to override the choices made by `configure' or to help
    872  1.1  skrll it to find libraries and programs with nonstandard names/locations.
    873  1.1  skrll 
    874  1.1  skrll _ACEOF
    875  1.1  skrll fi
    876  1.1  skrll 
    877  1.1  skrll if test "$ac_init_help" = "recursive"; then
    878  1.1  skrll   # If there are subdirs, report their specific --help.
    879  1.1  skrll   ac_popdir=`pwd`
    880  1.1  skrll   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
    881  1.1  skrll     test -d $ac_dir || continue
    882  1.1  skrll     ac_builddir=.
    883  1.1  skrll 
    884  1.1  skrll if test "$ac_dir" != .; then
    885  1.1  skrll   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
    886  1.1  skrll   # A "../" for each directory in $ac_dir_suffix.
    887  1.1  skrll   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
    888  1.1  skrll else
    889  1.1  skrll   ac_dir_suffix= ac_top_builddir=
    890  1.1  skrll fi
    891  1.1  skrll 
    892  1.1  skrll case $srcdir in
    893  1.1  skrll   .)  # No --srcdir option.  We are building in place.
    894  1.1  skrll     ac_srcdir=.
    895  1.1  skrll     if test -z "$ac_top_builddir"; then
    896  1.1  skrll        ac_top_srcdir=.
    897  1.1  skrll     else
    898  1.1  skrll        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
    899  1.1  skrll     fi ;;
    900  1.1  skrll   [\\/]* | ?:[\\/]* )  # Absolute path.
    901  1.1  skrll     ac_srcdir=$srcdir$ac_dir_suffix;
    902  1.1  skrll     ac_top_srcdir=$srcdir ;;
    903  1.1  skrll   *) # Relative path.
    904  1.1  skrll     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
    905  1.1  skrll     ac_top_srcdir=$ac_top_builddir$srcdir ;;
    906  1.1  skrll esac
    907  1.1  skrll 
    908  1.1  skrll # Do not use `cd foo && pwd` to compute absolute paths, because
    909  1.1  skrll # the directories may not exist.
    910  1.1  skrll case `pwd` in
    911  1.1  skrll .) ac_abs_builddir="$ac_dir";;
    912  1.1  skrll *)
    913  1.1  skrll   case "$ac_dir" in
    914  1.1  skrll   .) ac_abs_builddir=`pwd`;;
    915  1.1  skrll   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
    916  1.1  skrll   *) ac_abs_builddir=`pwd`/"$ac_dir";;
    917  1.1  skrll   esac;;
    918  1.1  skrll esac
    919  1.1  skrll case $ac_abs_builddir in
    920  1.1  skrll .) ac_abs_top_builddir=${ac_top_builddir}.;;
    921  1.1  skrll *)
    922  1.1  skrll   case ${ac_top_builddir}. in
    923  1.1  skrll   .) ac_abs_top_builddir=$ac_abs_builddir;;
    924  1.1  skrll   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
    925  1.1  skrll   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
    926  1.1  skrll   esac;;
    927  1.1  skrll esac
    928  1.1  skrll case $ac_abs_builddir in
    929  1.1  skrll .) ac_abs_srcdir=$ac_srcdir;;
    930  1.1  skrll *)
    931  1.1  skrll   case $ac_srcdir in
    932  1.1  skrll   .) ac_abs_srcdir=$ac_abs_builddir;;
    933  1.1  skrll   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
    934  1.1  skrll   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
    935  1.1  skrll   esac;;
    936  1.1  skrll esac
    937  1.1  skrll case $ac_abs_builddir in
    938  1.1  skrll .) ac_abs_top_srcdir=$ac_top_srcdir;;
    939  1.1  skrll *)
    940  1.1  skrll   case $ac_top_srcdir in
    941  1.1  skrll   .) ac_abs_top_srcdir=$ac_abs_builddir;;
    942  1.1  skrll   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
    943  1.1  skrll   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
    944  1.1  skrll   esac;;
    945  1.1  skrll esac
    946  1.1  skrll 
    947  1.1  skrll     cd $ac_dir
    948  1.1  skrll     # Check for guested configure; otherwise get Cygnus style configure.
    949  1.1  skrll     if test -f $ac_srcdir/configure.gnu; then
    950  1.1  skrll       echo
    951  1.1  skrll       $SHELL $ac_srcdir/configure.gnu  --help=recursive
    952  1.1  skrll     elif test -f $ac_srcdir/configure; then
    953  1.1  skrll       echo
    954  1.1  skrll       $SHELL $ac_srcdir/configure  --help=recursive
    955  1.1  skrll     elif test -f $ac_srcdir/configure.ac ||
    956  1.1  skrll 	   test -f $ac_srcdir/configure.in; then
    957  1.1  skrll       echo
    958  1.1  skrll       $ac_configure --help
    959  1.1  skrll     else
    960  1.1  skrll       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
    961  1.1  skrll     fi
    962  1.1  skrll     cd $ac_popdir
    963  1.1  skrll   done
    964  1.1  skrll fi
    965  1.1  skrll 
    966  1.1  skrll test -n "$ac_init_help" && exit 0
    967  1.1  skrll if $ac_init_version; then
    968  1.1  skrll   cat <<\_ACEOF
    969  1.1  skrll 
    970  1.1  skrll Copyright (C) 2003 Free Software Foundation, Inc.
    971  1.1  skrll This configure script is free software; the Free Software Foundation
    972  1.1  skrll gives unlimited permission to copy, distribute and modify it.
    973  1.1  skrll _ACEOF
    974  1.1  skrll   exit 0
    975  1.1  skrll fi
    976  1.1  skrll exec 5>config.log
    977  1.1  skrll cat >&5 <<_ACEOF
    978  1.1  skrll This file contains any messages produced by compilers while
    979  1.1  skrll running configure, to aid debugging if configure makes a mistake.
    980  1.1  skrll 
    981  1.1  skrll It was created by $as_me, which was
    982  1.1  skrll generated by GNU Autoconf 2.59.  Invocation command line was
    983  1.1  skrll 
    984  1.1  skrll   $ $0 $@
    985  1.1  skrll 
    986  1.1  skrll _ACEOF
    987  1.1  skrll {
    988  1.1  skrll cat <<_ASUNAME
    989  1.1  skrll ## --------- ##
    990  1.1  skrll ## Platform. ##
    991  1.1  skrll ## --------- ##
    992  1.1  skrll 
    993  1.1  skrll hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
    994  1.1  skrll uname -m = `(uname -m) 2>/dev/null || echo unknown`
    995  1.1  skrll uname -r = `(uname -r) 2>/dev/null || echo unknown`
    996  1.1  skrll uname -s = `(uname -s) 2>/dev/null || echo unknown`
    997  1.1  skrll uname -v = `(uname -v) 2>/dev/null || echo unknown`
    998  1.1  skrll 
    999  1.1  skrll /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
   1000  1.1  skrll /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
   1001  1.1  skrll 
   1002  1.1  skrll /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
   1003  1.1  skrll /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
   1004  1.1  skrll /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
   1005  1.1  skrll hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
   1006  1.1  skrll /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
   1007  1.1  skrll /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
   1008  1.1  skrll /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
   1009  1.1  skrll 
   1010  1.1  skrll _ASUNAME
   1011  1.1  skrll 
   1012  1.1  skrll as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   1013  1.1  skrll for as_dir in $PATH
   1014  1.1  skrll do
   1015  1.1  skrll   IFS=$as_save_IFS
   1016  1.1  skrll   test -z "$as_dir" && as_dir=.
   1017  1.1  skrll   echo "PATH: $as_dir"
   1018  1.1  skrll done
   1019  1.1  skrll 
   1020  1.1  skrll } >&5
   1021  1.1  skrll 
   1022  1.1  skrll cat >&5 <<_ACEOF
   1023  1.1  skrll 
   1024  1.1  skrll 
   1025  1.1  skrll ## ----------- ##
   1026  1.1  skrll ## Core tests. ##
   1027  1.1  skrll ## ----------- ##
   1028  1.1  skrll 
   1029  1.1  skrll _ACEOF
   1030  1.1  skrll 
   1031  1.1  skrll 
   1032  1.1  skrll # Keep a trace of the command line.
   1033  1.1  skrll # Strip out --no-create and --no-recursion so they do not pile up.
   1034  1.1  skrll # Strip out --silent because we don't want to record it for future runs.
   1035  1.1  skrll # Also quote any args containing shell meta-characters.
   1036  1.1  skrll # Make two passes to allow for proper duplicate-argument suppression.
   1037  1.1  skrll ac_configure_args=
   1038  1.1  skrll ac_configure_args0=
   1039  1.1  skrll ac_configure_args1=
   1040  1.1  skrll ac_sep=
   1041  1.1  skrll ac_must_keep_next=false
   1042  1.1  skrll for ac_pass in 1 2
   1043  1.1  skrll do
   1044  1.1  skrll   for ac_arg
   1045  1.1  skrll   do
   1046  1.1  skrll     case $ac_arg in
   1047  1.1  skrll     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
   1048  1.1  skrll     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
   1049  1.1  skrll     | -silent | --silent | --silen | --sile | --sil)
   1050  1.1  skrll       continue ;;
   1051  1.1  skrll     *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
   1052  1.1  skrll       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
   1053  1.1  skrll     esac
   1054  1.1  skrll     case $ac_pass in
   1055  1.1  skrll     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
   1056  1.1  skrll     2)
   1057  1.1  skrll       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
   1058  1.1  skrll       if test $ac_must_keep_next = true; then
   1059  1.1  skrll 	ac_must_keep_next=false # Got value, back to normal.
   1060  1.1  skrll       else
   1061  1.1  skrll 	case $ac_arg in
   1062  1.1  skrll 	  *=* | --config-cache | -C | -disable-* | --disable-* \
   1063  1.1  skrll 	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
   1064  1.1  skrll 	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
   1065  1.1  skrll 	  | -with-* | --with-* | -without-* | --without-* | --x)
   1066  1.1  skrll 	    case "$ac_configure_args0 " in
   1067  1.1  skrll 	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
   1068  1.1  skrll 	    esac
   1069  1.1  skrll 	    ;;
   1070  1.1  skrll 	  -* ) ac_must_keep_next=true ;;
   1071  1.1  skrll 	esac
   1072  1.1  skrll       fi
   1073  1.1  skrll       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
   1074  1.1  skrll       # Get rid of the leading space.
   1075  1.1  skrll       ac_sep=" "
   1076  1.1  skrll       ;;
   1077  1.1  skrll     esac
   1078  1.1  skrll   done
   1079  1.1  skrll done
   1080  1.1  skrll $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
   1081  1.1  skrll $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
   1082  1.1  skrll 
   1083  1.1  skrll # When interrupted or exit'd, cleanup temporary files, and complete
   1084  1.1  skrll # config.log.  We remove comments because anyway the quotes in there
   1085  1.1  skrll # would cause problems or look ugly.
   1086  1.1  skrll # WARNING: Be sure not to use single quotes in there, as some shells,
   1087  1.1  skrll # such as our DU 5.0 friend, will then `close' the trap.
   1088  1.1  skrll trap 'exit_status=$?
   1089  1.1  skrll   # Save into config.log some information that might help in debugging.
   1090  1.1  skrll   {
   1091  1.1  skrll     echo
   1092  1.1  skrll 
   1093  1.1  skrll     cat <<\_ASBOX
   1094  1.1  skrll ## ---------------- ##
   1095  1.1  skrll ## Cache variables. ##
   1096  1.1  skrll ## ---------------- ##
   1097  1.1  skrll _ASBOX
   1098  1.1  skrll     echo
   1099  1.1  skrll     # The following way of writing the cache mishandles newlines in values,
   1100  1.1  skrll {
   1101  1.1  skrll   (set) 2>&1 |
   1102  1.1  skrll     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
   1103  1.1  skrll     *ac_space=\ *)
   1104  1.1  skrll       sed -n \
   1105  1.1  skrll 	"s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
   1106  1.1  skrll 	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
   1107  1.1  skrll       ;;
   1108  1.1  skrll     *)
   1109  1.1  skrll       sed -n \
   1110  1.1  skrll 	"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
   1111  1.1  skrll       ;;
   1112  1.1  skrll     esac;
   1113  1.1  skrll }
   1114  1.1  skrll     echo
   1115  1.1  skrll 
   1116  1.1  skrll     cat <<\_ASBOX
   1117  1.1  skrll ## ----------------- ##
   1118  1.1  skrll ## Output variables. ##
   1119  1.1  skrll ## ----------------- ##
   1120  1.1  skrll _ASBOX
   1121  1.1  skrll     echo
   1122  1.1  skrll     for ac_var in $ac_subst_vars
   1123  1.1  skrll     do
   1124  1.1  skrll       eval ac_val=$`echo $ac_var`
   1125  1.1  skrll       echo "$ac_var='"'"'$ac_val'"'"'"
   1126  1.1  skrll     done | sort
   1127  1.1  skrll     echo
   1128  1.1  skrll 
   1129  1.1  skrll     if test -n "$ac_subst_files"; then
   1130  1.1  skrll       cat <<\_ASBOX
   1131  1.1  skrll ## ------------- ##
   1132  1.1  skrll ## Output files. ##
   1133  1.1  skrll ## ------------- ##
   1134  1.1  skrll _ASBOX
   1135  1.1  skrll       echo
   1136  1.1  skrll       for ac_var in $ac_subst_files
   1137  1.1  skrll       do
   1138  1.1  skrll 	eval ac_val=$`echo $ac_var`
   1139  1.1  skrll 	echo "$ac_var='"'"'$ac_val'"'"'"
   1140  1.1  skrll       done | sort
   1141  1.1  skrll       echo
   1142  1.1  skrll     fi
   1143  1.1  skrll 
   1144  1.1  skrll     if test -s confdefs.h; then
   1145  1.1  skrll       cat <<\_ASBOX
   1146  1.1  skrll ## ----------- ##
   1147  1.1  skrll ## confdefs.h. ##
   1148  1.1  skrll ## ----------- ##
   1149  1.1  skrll _ASBOX
   1150  1.1  skrll       echo
   1151  1.1  skrll       sed "/^$/d" confdefs.h | sort
   1152  1.1  skrll       echo
   1153  1.1  skrll     fi
   1154  1.1  skrll     test "$ac_signal" != 0 &&
   1155  1.1  skrll       echo "$as_me: caught signal $ac_signal"
   1156  1.1  skrll     echo "$as_me: exit $exit_status"
   1157  1.1  skrll   } >&5
   1158  1.1  skrll   rm -f core *.core &&
   1159  1.1  skrll   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
   1160  1.1  skrll     exit $exit_status
   1161  1.1  skrll      ' 0
   1162  1.1  skrll for ac_signal in 1 2 13 15; do
   1163  1.1  skrll   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
   1164  1.1  skrll done
   1165  1.1  skrll ac_signal=0
   1166  1.1  skrll 
   1167  1.1  skrll # confdefs.h avoids OS command line length limits that DEFS can exceed.
   1168  1.1  skrll rm -rf conftest* confdefs.h
   1169  1.1  skrll # AIX cpp loses on an empty file, so make sure it contains at least a newline.
   1170  1.1  skrll echo >confdefs.h
   1171  1.1  skrll 
   1172  1.1  skrll # Predefined preprocessor variables.
   1173  1.1  skrll 
   1174  1.1  skrll cat >>confdefs.h <<_ACEOF
   1175  1.1  skrll #define PACKAGE_NAME "$PACKAGE_NAME"
   1176  1.1  skrll _ACEOF
   1177  1.1  skrll 
   1178  1.1  skrll 
   1179  1.1  skrll cat >>confdefs.h <<_ACEOF
   1180  1.1  skrll #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
   1181  1.1  skrll _ACEOF
   1182  1.1  skrll 
   1183  1.1  skrll 
   1184  1.1  skrll cat >>confdefs.h <<_ACEOF
   1185  1.1  skrll #define PACKAGE_VERSION "$PACKAGE_VERSION"
   1186  1.1  skrll _ACEOF
   1187  1.1  skrll 
   1188  1.1  skrll 
   1189  1.1  skrll cat >>confdefs.h <<_ACEOF
   1190  1.1  skrll #define PACKAGE_STRING "$PACKAGE_STRING"
   1191  1.1  skrll _ACEOF
   1192  1.1  skrll 
   1193  1.1  skrll 
   1194  1.1  skrll cat >>confdefs.h <<_ACEOF
   1195  1.1  skrll #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
   1196  1.1  skrll _ACEOF
   1197  1.1  skrll 
   1198  1.1  skrll 
   1199  1.1  skrll # Let the site file select an alternate cache file if it wants to.
   1200  1.1  skrll # Prefer explicitly selected file to automatically selected ones.
   1201  1.1  skrll if test -z "$CONFIG_SITE"; then
   1202  1.1  skrll   if test "x$prefix" != xNONE; then
   1203  1.1  skrll     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
   1204  1.1  skrll   else
   1205  1.1  skrll     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
   1206  1.1  skrll   fi
   1207  1.1  skrll fi
   1208  1.1  skrll for ac_site_file in $CONFIG_SITE; do
   1209  1.1  skrll   if test -r "$ac_site_file"; then
   1210  1.1  skrll     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
   1211  1.1  skrll echo "$as_me: loading site script $ac_site_file" >&6;}
   1212  1.1  skrll     sed 's/^/| /' "$ac_site_file" >&5
   1213  1.1  skrll     . "$ac_site_file"
   1214  1.1  skrll   fi
   1215  1.1  skrll done
   1216  1.1  skrll 
   1217  1.1  skrll if test -r "$cache_file"; then
   1218  1.1  skrll   # Some versions of bash will fail to source /dev/null (special
   1219  1.1  skrll   # files actually), so we avoid doing that.
   1220  1.1  skrll   if test -f "$cache_file"; then
   1221  1.1  skrll     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
   1222  1.1  skrll echo "$as_me: loading cache $cache_file" >&6;}
   1223  1.1  skrll     case $cache_file in
   1224  1.1  skrll       [\\/]* | ?:[\\/]* ) . $cache_file;;
   1225  1.1  skrll       *)                      . ./$cache_file;;
   1226  1.1  skrll     esac
   1227  1.1  skrll   fi
   1228  1.1  skrll else
   1229  1.1  skrll   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
   1230  1.1  skrll echo "$as_me: creating cache $cache_file" >&6;}
   1231  1.1  skrll   >$cache_file
   1232  1.1  skrll fi
   1233  1.1  skrll 
   1234  1.1  skrll # Check that the precious variables saved in the cache have kept the same
   1235  1.1  skrll # value.
   1236  1.1  skrll ac_cache_corrupted=false
   1237  1.1  skrll for ac_var in `(set) 2>&1 |
   1238  1.1  skrll 	       sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
   1239  1.1  skrll   eval ac_old_set=\$ac_cv_env_${ac_var}_set
   1240  1.1  skrll   eval ac_new_set=\$ac_env_${ac_var}_set
   1241  1.1  skrll   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
   1242  1.1  skrll   eval ac_new_val="\$ac_env_${ac_var}_value"
   1243  1.1  skrll   case $ac_old_set,$ac_new_set in
   1244  1.1  skrll     set,)
   1245  1.1  skrll       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
   1246  1.1  skrll echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
   1247  1.1  skrll       ac_cache_corrupted=: ;;
   1248  1.1  skrll     ,set)
   1249  1.1  skrll       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
   1250  1.1  skrll echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
   1251  1.1  skrll       ac_cache_corrupted=: ;;
   1252  1.1  skrll     ,);;
   1253  1.1  skrll     *)
   1254  1.1  skrll       if test "x$ac_old_val" != "x$ac_new_val"; then
   1255  1.1  skrll         # differences in whitespace do not lead to failure.
   1256  1.1  skrll         ac_old_val_w=`echo x $ac_old_val`
   1257  1.1  skrll         ac_new_val_w=`echo x $ac_new_val`
   1258  1.1  skrll         if test "$ac_old_val_w" != "$ac_new_val_w"; then
   1259  1.1  skrll           { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
   1260  1.1  skrll echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
   1261  1.1  skrll           ac_cache_corrupted=:
   1262  1.1  skrll         else
   1263  1.1  skrll           { echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
   1264  1.1  skrll echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
   1265  1.1  skrll           eval $ac_var=\$ac_old_val
   1266  1.1  skrll         fi
   1267  1.1  skrll         { echo "$as_me:$LINENO:   former value:  \`$ac_old_val'" >&5
   1268  1.1  skrll echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
   1269  1.1  skrll         { echo "$as_me:$LINENO:   current value: \`$ac_new_val'" >&5
   1270  1.1  skrll echo "$as_me:   current value: \`$ac_new_val'" >&2;}
   1271  1.1  skrll       fi;;
   1272  1.1  skrll   esac
   1273  1.1  skrll   # Pass precious variables to config.status.
   1274  1.1  skrll   if test "$ac_new_set" = set; then
   1275  1.1  skrll     case $ac_new_val in
   1276  1.1  skrll     *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
   1277  1.1  skrll       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
   1278  1.1  skrll     *) ac_arg=$ac_var=$ac_new_val ;;
   1279  1.1  skrll     esac
   1280  1.1  skrll     case " $ac_configure_args " in
   1281  1.1  skrll       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
   1282  1.1  skrll       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
   1283  1.1  skrll     esac
   1284  1.1  skrll   fi
   1285  1.1  skrll done
   1286  1.1  skrll if $ac_cache_corrupted; then
   1287  1.1  skrll   { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
   1288  1.1  skrll echo "$as_me: error: in \`$ac_pwd':" >&2;}
   1289  1.1  skrll   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
   1290  1.1  skrll echo "$as_me: error: changes in the environment can compromise the build" >&2;}
   1291  1.1  skrll   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
   1292  1.1  skrll echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
   1293  1.1  skrll    { (exit 1); exit 1; }; }
   1294  1.1  skrll fi
   1295  1.1  skrll 
   1296  1.1  skrll ac_ext=c
   1297  1.1  skrll ac_cpp='$CPP $CPPFLAGS'
   1298  1.1  skrll ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   1299  1.1  skrll ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   1300  1.1  skrll ac_compiler_gnu=$ac_cv_c_compiler_gnu
   1301  1.1  skrll 
   1302  1.1  skrll 
   1303  1.1  skrll 
   1304  1.1  skrll 
   1305  1.1  skrll 
   1306  1.1  skrll 
   1307  1.1  skrll 
   1308  1.1  skrll 
   1309  1.1  skrll 
   1310  1.1  skrll 
   1311  1.1  skrll 
   1312  1.1  skrll 
   1313  1.1  skrll 
   1314  1.1  skrll 
   1315  1.1  skrll 
   1316  1.1  skrll 
   1317  1.1  skrll 
   1318  1.1  skrll 
   1319  1.1  skrll 
   1320  1.1  skrll 
   1321  1.1  skrll 
   1322  1.1  skrll 
   1323  1.1  skrll 
   1324  1.1  skrll 
   1325  1.1  skrll # This works around the fact that libtool configuration may change LD
   1326  1.1  skrll # for this particular configuration, but some shells, instead of
   1327  1.1  skrll # keeping the changes in LD private, export them just because LD is
   1328  1.1  skrll # exported.  We don't use libtool yet, but some day we might, so...
   1329  1.1  skrll ORIGINAL_LD_FOR_MULTILIBS=$LD
   1330  1.1  skrll 
   1331  1.1  skrll 
   1332  1.1  skrll # Check whether --with-target-subdir or --without-target-subdir was given.
   1333  1.1  skrll if test "${with_target_subdir+set}" = set; then
   1334  1.1  skrll   withval="$with_target_subdir"
   1335  1.1  skrll 
   1336  1.1  skrll fi;
   1337  1.1  skrll 
   1338  1.1  skrll # Check whether --with-build-subdir or --without-build-subdir was given.
   1339  1.1  skrll if test "${with_build_subdir+set}" = set; then
   1340  1.1  skrll   withval="$with_build_subdir"
   1341  1.1  skrll 
   1342  1.1  skrll fi;
   1343  1.1  skrll 
   1344  1.1  skrll # Check whether --with-cross-host or --without-cross-host was given.
   1345  1.1  skrll if test "${with_cross_host+set}" = set; then
   1346  1.1  skrll   withval="$with_cross_host"
   1347  1.1  skrll 
   1348  1.1  skrll fi;
   1349  1.1  skrll 
   1350  1.1  skrll # Check whether --with-newlib or --without-newlib was given.
   1351  1.1  skrll if test "${with_newlib+set}" = set; then
   1352  1.1  skrll   withval="$with_newlib"
   1353  1.1  skrll 
   1354  1.1  skrll fi;
   1355  1.1  skrll 
   1356  1.1  skrll if test "${srcdir}" = "."; then
   1357  1.1  skrll   if test -n "${with_build_subdir}"; then
   1358  1.1  skrll     libiberty_topdir="${srcdir}/../.."
   1359  1.1  skrll     with_target_subdir=
   1360  1.1  skrll   elif test -z "${with_target_subdir}"; then
   1361  1.1  skrll     libiberty_topdir="${srcdir}/.."
   1362  1.1  skrll   else
   1363  1.1  skrll     if test "${with_target_subdir}" != "."; then
   1364  1.1  skrll       libiberty_topdir="${srcdir}/${with_multisrctop}../.."
   1365  1.1  skrll     else
   1366  1.1  skrll       libiberty_topdir="${srcdir}/${with_multisrctop}.."
   1367  1.1  skrll     fi
   1368  1.1  skrll   fi
   1369  1.1  skrll else
   1370  1.1  skrll   libiberty_topdir="${srcdir}/.."
   1371  1.1  skrll fi
   1372  1.1  skrll 
   1373  1.1  skrll ac_aux_dir=
   1374  1.1  skrll for ac_dir in $libiberty_topdir $srcdir/$libiberty_topdir; do
   1375  1.1  skrll   if test -f $ac_dir/install-sh; then
   1376  1.1  skrll     ac_aux_dir=$ac_dir
   1377  1.1  skrll     ac_install_sh="$ac_aux_dir/install-sh -c"
   1378  1.1  skrll     break
   1379  1.1  skrll   elif test -f $ac_dir/install.sh; then
   1380  1.1  skrll     ac_aux_dir=$ac_dir
   1381  1.1  skrll     ac_install_sh="$ac_aux_dir/install.sh -c"
   1382  1.1  skrll     break
   1383  1.1  skrll   elif test -f $ac_dir/shtool; then
   1384  1.1  skrll     ac_aux_dir=$ac_dir
   1385  1.1  skrll     ac_install_sh="$ac_aux_dir/shtool install -c"
   1386  1.1  skrll     break
   1387  1.1  skrll   fi
   1388  1.1  skrll done
   1389  1.1  skrll if test -z "$ac_aux_dir"; then
   1390  1.1  skrll   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $libiberty_topdir $srcdir/$libiberty_topdir" >&5
   1391  1.1  skrll echo "$as_me: error: cannot find install-sh or install.sh in $libiberty_topdir $srcdir/$libiberty_topdir" >&2;}
   1392  1.1  skrll    { (exit 1); exit 1; }; }
   1393  1.1  skrll fi
   1394  1.1  skrll ac_config_guess="$SHELL $ac_aux_dir/config.guess"
   1395  1.1  skrll ac_config_sub="$SHELL $ac_aux_dir/config.sub"
   1396  1.1  skrll ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
   1397  1.1  skrll 
   1398  1.1  skrll 
   1399  1.1  skrll 
   1400  1.1  skrll echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
   1401  1.1  skrll echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
   1402  1.1  skrll     # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
   1403  1.1  skrll if test "${enable_maintainer_mode+set}" = set; then
   1404  1.1  skrll   enableval="$enable_maintainer_mode"
   1405  1.1  skrll   maintainer_mode=$enableval
   1406  1.1  skrll else
   1407  1.1  skrll   maintainer_mode=no
   1408  1.1  skrll fi;
   1409  1.1  skrll 
   1410  1.1  skrll echo "$as_me:$LINENO: result: $maintainer_mode" >&5
   1411  1.1  skrll echo "${ECHO_T}$maintainer_mode" >&6
   1412  1.1  skrll 
   1413  1.1  skrll if test "$maintainer_mode" = "yes"; then
   1414  1.1  skrll   MAINT=''
   1415  1.1  skrll   NOTMAINT='#'
   1416  1.1  skrll else
   1417  1.1  skrll   MAINT='#'
   1418  1.1  skrll   NOTMAINT=''
   1419  1.1  skrll fi
   1420  1.1  skrll 
   1421  1.1  skrll # Do we have a single-tree copy of texinfo?  Even if we do, we can't
   1422  1.1  skrll # rely on it - libiberty is built before texinfo.
   1423  1.1  skrll # Extract the first word of "makeinfo", so it can be a program name with args.
   1424  1.1  skrll set dummy makeinfo; ac_word=$2
   1425  1.1  skrll echo "$as_me:$LINENO: checking for $ac_word" >&5
   1426  1.1  skrll echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
   1427  1.1  skrll if test "${ac_cv_prog_MAKEINFO+set}" = set; then
   1428  1.1  skrll   echo $ECHO_N "(cached) $ECHO_C" >&6
   1429  1.1  skrll else
   1430  1.1  skrll   if test -n "$MAKEINFO"; then
   1431  1.1  skrll   ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
   1432  1.1  skrll else
   1433  1.1  skrll as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   1434  1.1  skrll for as_dir in $PATH
   1435  1.1  skrll do
   1436  1.1  skrll   IFS=$as_save_IFS
   1437  1.1  skrll   test -z "$as_dir" && as_dir=.
   1438  1.1  skrll   for ac_exec_ext in '' $ac_executable_extensions; do
   1439  1.1  skrll   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   1440  1.1  skrll     ac_cv_prog_MAKEINFO="makeinfo"
   1441  1.1  skrll     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   1442  1.1  skrll     break 2
   1443  1.1  skrll   fi
   1444  1.1  skrll done
   1445  1.1  skrll done
   1446  1.1  skrll 
   1447  1.1  skrll fi
   1448  1.1  skrll fi
   1449  1.1  skrll MAKEINFO=$ac_cv_prog_MAKEINFO
   1450  1.1  skrll if test -n "$MAKEINFO"; then
   1451  1.1  skrll   echo "$as_me:$LINENO: result: $MAKEINFO" >&5
   1452  1.1  skrll echo "${ECHO_T}$MAKEINFO" >&6
   1453  1.1  skrll else
   1454  1.1  skrll   echo "$as_me:$LINENO: result: no" >&5
   1455  1.1  skrll echo "${ECHO_T}no" >&6
   1456  1.1  skrll fi
   1457  1.1  skrll 
   1458  1.1  skrll if test "x$MAKEINFO" = "x"; then
   1459  1.1  skrll     MAKEINFO="@echo makeinfo missing; true"
   1460  1.1  skrll     BUILD_INFO=
   1461  1.1  skrll else
   1462  1.1  skrll     BUILD_INFO=info
   1463  1.1  skrll     case "$MAKEINFO" in
   1464  1.1  skrll       */missing\ makeinfo*)
   1465  1.1  skrll 	BUILD_INFO=
   1466  1.1  skrll 	{ echo "$as_me:$LINENO: WARNING:
   1467  1.1  skrll *** Makeinfo is missing. Info documentation will not be built." >&5
   1468  1.1  skrll echo "$as_me: WARNING:
   1469  1.1  skrll *** Makeinfo is missing. Info documentation will not be built." >&2;}
   1470  1.1  skrll         ;;
   1471  1.1  skrll       *)
   1472  1.1  skrll 	case x"`$MAKEINFO --version | grep 'GNU texinfo'`" in
   1473  1.1  skrll 	  x*\ [1-3].* )
   1474  1.1  skrll 	    MAKEINFO="@echo $MAKEINFO is too old, 4.0 or newer required; true"
   1475  1.1  skrll 	    BUILD_INFO=
   1476  1.1  skrll 	    { echo "$as_me:$LINENO: WARNING:
   1477  1.1  skrll *** Makeinfo is too old. Info documentation will not be built." >&5
   1478  1.1  skrll echo "$as_me: WARNING:
   1479  1.1  skrll *** Makeinfo is too old. Info documentation will not be built." >&2;}
   1480  1.1  skrll 	  ;;
   1481  1.1  skrll 	esac
   1482  1.1  skrll 	;;
   1483  1.1  skrll     esac
   1484  1.1  skrll fi
   1485  1.1  skrll 
   1486  1.1  skrll 
   1487  1.1  skrll 
   1488  1.1  skrll # Extract the first word of "perl", so it can be a program name with args.
   1489  1.1  skrll set dummy perl; ac_word=$2
   1490  1.1  skrll echo "$as_me:$LINENO: checking for $ac_word" >&5
   1491  1.1  skrll echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
   1492  1.1  skrll if test "${ac_cv_prog_PERL+set}" = set; then
   1493  1.1  skrll   echo $ECHO_N "(cached) $ECHO_C" >&6
   1494  1.1  skrll else
   1495  1.1  skrll   if test -n "$PERL"; then
   1496  1.1  skrll   ac_cv_prog_PERL="$PERL" # Let the user override the test.
   1497  1.1  skrll else
   1498  1.1  skrll as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   1499  1.1  skrll for as_dir in $PATH
   1500  1.1  skrll do
   1501  1.1  skrll   IFS=$as_save_IFS
   1502  1.1  skrll   test -z "$as_dir" && as_dir=.
   1503  1.1  skrll   for ac_exec_ext in '' $ac_executable_extensions; do
   1504  1.1  skrll   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   1505  1.1  skrll     ac_cv_prog_PERL="perl"
   1506  1.1  skrll     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   1507  1.1  skrll     break 2
   1508  1.1  skrll   fi
   1509  1.1  skrll done
   1510  1.1  skrll done
   1511  1.1  skrll 
   1512  1.1  skrll fi
   1513  1.1  skrll fi
   1514  1.1  skrll PERL=$ac_cv_prog_PERL
   1515  1.1  skrll if test -n "$PERL"; then
   1516  1.1  skrll   echo "$as_me:$LINENO: result: $PERL" >&5
   1517  1.1  skrll echo "${ECHO_T}$PERL" >&6
   1518  1.1  skrll else
   1519  1.1  skrll   echo "$as_me:$LINENO: result: no" >&5
   1520  1.1  skrll echo "${ECHO_T}no" >&6
   1521  1.1  skrll fi
   1522  1.1  skrll 
   1523  1.1  skrll if test x"$PERL" = x""; then
   1524  1.1  skrll   HAVE_PERL='#'
   1525  1.1  skrll else
   1526  1.1  skrll   HAVE_PERL=''
   1527  1.1  skrll fi
   1528  1.1  skrll 
   1529  1.1  skrll 
   1530  1.1  skrll # Make sure we can run config.sub.
   1531  1.1  skrll $ac_config_sub sun4 >/dev/null 2>&1 ||
   1532  1.1  skrll   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
   1533  1.1  skrll echo "$as_me: error: cannot run $ac_config_sub" >&2;}
   1534  1.1  skrll    { (exit 1); exit 1; }; }
   1535  1.1  skrll 
   1536  1.1  skrll echo "$as_me:$LINENO: checking build system type" >&5
   1537  1.1  skrll echo $ECHO_N "checking build system type... $ECHO_C" >&6
   1538  1.1  skrll if test "${ac_cv_build+set}" = set; then
   1539  1.1  skrll   echo $ECHO_N "(cached) $ECHO_C" >&6
   1540  1.1  skrll else
   1541  1.1  skrll   ac_cv_build_alias=$build_alias
   1542  1.1  skrll test -z "$ac_cv_build_alias" &&
   1543  1.1  skrll   ac_cv_build_alias=`$ac_config_guess`
   1544  1.1  skrll test -z "$ac_cv_build_alias" &&
   1545  1.1  skrll   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
   1546  1.1  skrll echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
   1547  1.1  skrll    { (exit 1); exit 1; }; }
   1548  1.1  skrll ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
   1549  1.1  skrll   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
   1550  1.1  skrll echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
   1551  1.1  skrll    { (exit 1); exit 1; }; }
   1552  1.1  skrll 
   1553  1.1  skrll fi
   1554  1.1  skrll echo "$as_me:$LINENO: result: $ac_cv_build" >&5
   1555  1.1  skrll echo "${ECHO_T}$ac_cv_build" >&6
   1556  1.1  skrll build=$ac_cv_build
   1557  1.1  skrll build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
   1558  1.1  skrll build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
   1559  1.1  skrll build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
   1560  1.1  skrll 
   1561  1.1  skrll 
   1562  1.1  skrll echo "$as_me:$LINENO: checking host system type" >&5
   1563  1.1  skrll echo $ECHO_N "checking host system type... $ECHO_C" >&6
   1564  1.1  skrll if test "${ac_cv_host+set}" = set; then
   1565  1.1  skrll   echo $ECHO_N "(cached) $ECHO_C" >&6
   1566  1.1  skrll else
   1567  1.1  skrll   ac_cv_host_alias=$host_alias
   1568  1.1  skrll test -z "$ac_cv_host_alias" &&
   1569  1.1  skrll   ac_cv_host_alias=$ac_cv_build_alias
   1570  1.1  skrll ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
   1571  1.1  skrll   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
   1572  1.1  skrll echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
   1573  1.1  skrll    { (exit 1); exit 1; }; }
   1574  1.1  skrll 
   1575  1.1  skrll fi
   1576  1.1  skrll echo "$as_me:$LINENO: result: $ac_cv_host" >&5
   1577  1.1  skrll echo "${ECHO_T}$ac_cv_host" >&6
   1578  1.1  skrll host=$ac_cv_host
   1579  1.1  skrll host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
   1580  1.1  skrll host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
   1581  1.1  skrll host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
   1582  1.1  skrll 
   1583  1.1  skrll 
   1584  1.1  skrll 
   1585  1.1  skrll 
   1586  1.1  skrll if test -n "$ac_tool_prefix"; then
   1587  1.1  skrll   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
   1588  1.1  skrll set dummy ${ac_tool_prefix}ar; ac_word=$2
   1589  1.1  skrll echo "$as_me:$LINENO: checking for $ac_word" >&5
   1590  1.1  skrll echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
   1591  1.1  skrll if test "${ac_cv_prog_AR+set}" = set; then
   1592  1.1  skrll   echo $ECHO_N "(cached) $ECHO_C" >&6
   1593  1.1  skrll else
   1594  1.1  skrll   if test -n "$AR"; then
   1595  1.1  skrll   ac_cv_prog_AR="$AR" # Let the user override the test.
   1596  1.1  skrll else
   1597  1.1  skrll as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   1598  1.1  skrll for as_dir in $PATH
   1599  1.1  skrll do
   1600  1.1  skrll   IFS=$as_save_IFS
   1601  1.1  skrll   test -z "$as_dir" && as_dir=.
   1602  1.1  skrll   for ac_exec_ext in '' $ac_executable_extensions; do
   1603  1.1  skrll   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   1604  1.1  skrll     ac_cv_prog_AR="${ac_tool_prefix}ar"
   1605  1.1  skrll     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   1606  1.1  skrll     break 2
   1607  1.1  skrll   fi
   1608  1.1  skrll done
   1609  1.1  skrll done
   1610  1.1  skrll 
   1611  1.1  skrll fi
   1612  1.1  skrll fi
   1613  1.1  skrll AR=$ac_cv_prog_AR
   1614  1.1  skrll if test -n "$AR"; then
   1615  1.1  skrll   echo "$as_me:$LINENO: result: $AR" >&5
   1616  1.1  skrll echo "${ECHO_T}$AR" >&6
   1617  1.1  skrll else
   1618  1.1  skrll   echo "$as_me:$LINENO: result: no" >&5
   1619  1.1  skrll echo "${ECHO_T}no" >&6
   1620  1.1  skrll fi
   1621  1.1  skrll 
   1622  1.1  skrll fi
   1623  1.1  skrll if test -z "$ac_cv_prog_AR"; then
   1624  1.1  skrll   ac_ct_AR=$AR
   1625  1.1  skrll   # Extract the first word of "ar", so it can be a program name with args.
   1626  1.1  skrll set dummy ar; ac_word=$2
   1627  1.1  skrll echo "$as_me:$LINENO: checking for $ac_word" >&5
   1628  1.1  skrll echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
   1629  1.1  skrll if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
   1630  1.1  skrll   echo $ECHO_N "(cached) $ECHO_C" >&6
   1631  1.1  skrll else
   1632  1.1  skrll   if test -n "$ac_ct_AR"; then
   1633  1.1  skrll   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
   1634  1.1  skrll else
   1635  1.1  skrll as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   1636  1.1  skrll for as_dir in $PATH
   1637  1.1  skrll do
   1638  1.1  skrll   IFS=$as_save_IFS
   1639  1.1  skrll   test -z "$as_dir" && as_dir=.
   1640  1.1  skrll   for ac_exec_ext in '' $ac_executable_extensions; do
   1641  1.1  skrll   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   1642  1.1  skrll     ac_cv_prog_ac_ct_AR="ar"
   1643  1.1  skrll     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   1644  1.1  skrll     break 2
   1645  1.1  skrll   fi
   1646  1.1  skrll done
   1647  1.1  skrll done
   1648  1.1  skrll 
   1649  1.1  skrll fi
   1650  1.1  skrll fi
   1651  1.1  skrll ac_ct_AR=$ac_cv_prog_ac_ct_AR
   1652  1.1  skrll if test -n "$ac_ct_AR"; then
   1653  1.1  skrll   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
   1654  1.1  skrll echo "${ECHO_T}$ac_ct_AR" >&6
   1655  1.1  skrll else
   1656  1.1  skrll   echo "$as_me:$LINENO: result: no" >&5
   1657  1.1  skrll echo "${ECHO_T}no" >&6
   1658  1.1  skrll fi
   1659  1.1  skrll 
   1660  1.1  skrll   AR=$ac_ct_AR
   1661  1.1  skrll else
   1662  1.1  skrll   AR="$ac_cv_prog_AR"
   1663  1.1  skrll fi
   1664  1.1  skrll 
   1665  1.1  skrll if test -n "$ac_tool_prefix"; then
   1666  1.1  skrll   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
   1667  1.1  skrll set dummy ${ac_tool_prefix}ranlib; ac_word=$2
   1668  1.1  skrll echo "$as_me:$LINENO: checking for $ac_word" >&5
   1669  1.1  skrll echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
   1670  1.1  skrll if test "${ac_cv_prog_RANLIB+set}" = set; then
   1671  1.1  skrll   echo $ECHO_N "(cached) $ECHO_C" >&6
   1672  1.1  skrll else
   1673  1.1  skrll   if test -n "$RANLIB"; then
   1674  1.1  skrll   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
   1675  1.1  skrll else
   1676  1.1  skrll as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   1677  1.1  skrll for as_dir in $PATH
   1678  1.1  skrll do
   1679  1.1  skrll   IFS=$as_save_IFS
   1680  1.1  skrll   test -z "$as_dir" && as_dir=.
   1681  1.1  skrll   for ac_exec_ext in '' $ac_executable_extensions; do
   1682  1.1  skrll   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   1683  1.1  skrll     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
   1684  1.1  skrll     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   1685  1.1  skrll     break 2
   1686  1.1  skrll   fi
   1687  1.1  skrll done
   1688  1.1  skrll done
   1689  1.1  skrll 
   1690  1.1  skrll fi
   1691  1.1  skrll fi
   1692  1.1  skrll RANLIB=$ac_cv_prog_RANLIB
   1693  1.1  skrll if test -n "$RANLIB"; then
   1694  1.1  skrll   echo "$as_me:$LINENO: result: $RANLIB" >&5
   1695  1.1  skrll echo "${ECHO_T}$RANLIB" >&6
   1696  1.1  skrll else
   1697  1.1  skrll   echo "$as_me:$LINENO: result: no" >&5
   1698  1.1  skrll echo "${ECHO_T}no" >&6
   1699  1.1  skrll fi
   1700  1.1  skrll 
   1701  1.1  skrll fi
   1702  1.1  skrll if test -z "$ac_cv_prog_RANLIB"; then
   1703  1.1  skrll   ac_ct_RANLIB=$RANLIB
   1704  1.1  skrll   # Extract the first word of "ranlib", so it can be a program name with args.
   1705  1.1  skrll set dummy ranlib; ac_word=$2
   1706  1.1  skrll echo "$as_me:$LINENO: checking for $ac_word" >&5
   1707  1.1  skrll echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
   1708  1.1  skrll if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
   1709  1.1  skrll   echo $ECHO_N "(cached) $ECHO_C" >&6
   1710  1.1  skrll else
   1711  1.1  skrll   if test -n "$ac_ct_RANLIB"; then
   1712  1.1  skrll   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
   1713  1.1  skrll else
   1714  1.1  skrll as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   1715  1.1  skrll for as_dir in $PATH
   1716  1.1  skrll do
   1717  1.1  skrll   IFS=$as_save_IFS
   1718  1.1  skrll   test -z "$as_dir" && as_dir=.
   1719  1.1  skrll   for ac_exec_ext in '' $ac_executable_extensions; do
   1720  1.1  skrll   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   1721  1.1  skrll     ac_cv_prog_ac_ct_RANLIB="ranlib"
   1722  1.1  skrll     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   1723  1.1  skrll     break 2
   1724  1.1  skrll   fi
   1725  1.1  skrll done
   1726  1.1  skrll done
   1727  1.1  skrll 
   1728  1.1  skrll   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
   1729  1.1  skrll fi
   1730  1.1  skrll fi
   1731  1.1  skrll ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
   1732  1.1  skrll if test -n "$ac_ct_RANLIB"; then
   1733  1.1  skrll   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
   1734  1.1  skrll echo "${ECHO_T}$ac_ct_RANLIB" >&6
   1735  1.1  skrll else
   1736  1.1  skrll   echo "$as_me:$LINENO: result: no" >&5
   1737  1.1  skrll echo "${ECHO_T}no" >&6
   1738  1.1  skrll fi
   1739  1.1  skrll 
   1740  1.1  skrll   RANLIB=$ac_ct_RANLIB
   1741  1.1  skrll else
   1742  1.1  skrll   RANLIB="$ac_cv_prog_RANLIB"
   1743  1.1  skrll fi
   1744  1.1  skrll 
   1745  1.1  skrll 
   1746  1.1  skrll # Add --enable-multilib to configure.
   1747  1.1  skrll # Default to --enable-multilib
   1748  1.1  skrll # Check whether --enable-multilib or --disable-multilib was given.
   1749  1.1  skrll if test "${enable_multilib+set}" = set; then
   1750  1.1  skrll   enableval="$enable_multilib"
   1751  1.1  skrll   case "$enableval" in
   1752  1.1  skrll   yes) multilib=yes ;;
   1753  1.1  skrll   no)  multilib=no ;;
   1754  1.1  skrll   *)   { { echo "$as_me:$LINENO: error: bad value $enableval for multilib option" >&5
   1755  1.1  skrll echo "$as_me: error: bad value $enableval for multilib option" >&2;}
   1756  1.1  skrll    { (exit 1); exit 1; }; } ;;
   1757  1.1  skrll  esac
   1758  1.1  skrll else
   1759  1.1  skrll   multilib=yes
   1760  1.1  skrll fi;
   1761  1.1  skrll 
   1762  1.1  skrll # Even if the default multilib is not a cross compilation,
   1763  1.1  skrll # it may be that some of the other multilibs are.
   1764  1.1  skrll if test $cross_compiling = no && test $multilib = yes \
   1765  1.1  skrll    && test "x${with_multisubdir}" != x ; then
   1766  1.1  skrll    cross_compiling=maybe
   1767  1.1  skrll fi
   1768  1.1  skrll 
   1769  1.1  skrll 
   1770  1.1  skrll ac_ext=c
   1771  1.1  skrll ac_cpp='$CPP $CPPFLAGS'
   1772  1.1  skrll ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   1773  1.1  skrll ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   1774  1.1  skrll ac_compiler_gnu=$ac_cv_c_compiler_gnu
   1775  1.1  skrll if test -n "$ac_tool_prefix"; then
   1776  1.1  skrll   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
   1777  1.1  skrll set dummy ${ac_tool_prefix}gcc; ac_word=$2
   1778  1.1  skrll echo "$as_me:$LINENO: checking for $ac_word" >&5
   1779  1.1  skrll echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
   1780  1.1  skrll if test "${ac_cv_prog_CC+set}" = set; then
   1781  1.1  skrll   echo $ECHO_N "(cached) $ECHO_C" >&6
   1782  1.1  skrll else
   1783  1.1  skrll   if test -n "$CC"; then
   1784  1.1  skrll   ac_cv_prog_CC="$CC" # Let the user override the test.
   1785  1.1  skrll else
   1786  1.1  skrll as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   1787  1.1  skrll for as_dir in $PATH
   1788  1.1  skrll do
   1789  1.1  skrll   IFS=$as_save_IFS
   1790  1.1  skrll   test -z "$as_dir" && as_dir=.
   1791  1.1  skrll   for ac_exec_ext in '' $ac_executable_extensions; do
   1792  1.1  skrll   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   1793  1.1  skrll     ac_cv_prog_CC="${ac_tool_prefix}gcc"
   1794  1.1  skrll     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   1795  1.1  skrll     break 2
   1796  1.1  skrll   fi
   1797  1.1  skrll done
   1798  1.1  skrll done
   1799  1.1  skrll 
   1800  1.1  skrll fi
   1801  1.1  skrll fi
   1802  1.1  skrll CC=$ac_cv_prog_CC
   1803  1.1  skrll if test -n "$CC"; then
   1804  1.1  skrll   echo "$as_me:$LINENO: result: $CC" >&5
   1805  1.1  skrll echo "${ECHO_T}$CC" >&6
   1806  1.1  skrll else
   1807  1.1  skrll   echo "$as_me:$LINENO: result: no" >&5
   1808  1.1  skrll echo "${ECHO_T}no" >&6
   1809  1.1  skrll fi
   1810  1.1  skrll 
   1811  1.1  skrll fi
   1812  1.1  skrll if test -z "$ac_cv_prog_CC"; then
   1813  1.1  skrll   ac_ct_CC=$CC
   1814  1.1  skrll   # Extract the first word of "gcc", so it can be a program name with args.
   1815  1.1  skrll set dummy gcc; ac_word=$2
   1816  1.1  skrll echo "$as_me:$LINENO: checking for $ac_word" >&5
   1817  1.1  skrll echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
   1818  1.1  skrll if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
   1819  1.1  skrll   echo $ECHO_N "(cached) $ECHO_C" >&6
   1820  1.1  skrll else
   1821  1.1  skrll   if test -n "$ac_ct_CC"; then
   1822  1.1  skrll   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
   1823  1.1  skrll else
   1824  1.1  skrll as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   1825  1.1  skrll for as_dir in $PATH
   1826  1.1  skrll do
   1827  1.1  skrll   IFS=$as_save_IFS
   1828  1.1  skrll   test -z "$as_dir" && as_dir=.
   1829  1.1  skrll   for ac_exec_ext in '' $ac_executable_extensions; do
   1830  1.1  skrll   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   1831  1.1  skrll     ac_cv_prog_ac_ct_CC="gcc"
   1832  1.1  skrll     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   1833  1.1  skrll     break 2
   1834  1.1  skrll   fi
   1835  1.1  skrll done
   1836  1.1  skrll done
   1837  1.1  skrll 
   1838  1.1  skrll fi
   1839  1.1  skrll fi
   1840  1.1  skrll ac_ct_CC=$ac_cv_prog_ac_ct_CC
   1841  1.1  skrll if test -n "$ac_ct_CC"; then
   1842  1.1  skrll   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
   1843  1.1  skrll echo "${ECHO_T}$ac_ct_CC" >&6
   1844  1.1  skrll else
   1845  1.1  skrll   echo "$as_me:$LINENO: result: no" >&5
   1846  1.1  skrll echo "${ECHO_T}no" >&6
   1847  1.1  skrll fi
   1848  1.1  skrll 
   1849  1.1  skrll   CC=$ac_ct_CC
   1850  1.1  skrll else
   1851  1.1  skrll   CC="$ac_cv_prog_CC"
   1852  1.1  skrll fi
   1853  1.1  skrll 
   1854  1.1  skrll if test -z "$CC"; then
   1855  1.1  skrll   if test -n "$ac_tool_prefix"; then
   1856  1.1  skrll   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
   1857  1.1  skrll set dummy ${ac_tool_prefix}cc; ac_word=$2
   1858  1.1  skrll echo "$as_me:$LINENO: checking for $ac_word" >&5
   1859  1.1  skrll echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
   1860  1.1  skrll if test "${ac_cv_prog_CC+set}" = set; then
   1861  1.1  skrll   echo $ECHO_N "(cached) $ECHO_C" >&6
   1862  1.1  skrll else
   1863  1.1  skrll   if test -n "$CC"; then
   1864  1.1  skrll   ac_cv_prog_CC="$CC" # Let the user override the test.
   1865  1.1  skrll else
   1866  1.1  skrll as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   1867  1.1  skrll for as_dir in $PATH
   1868  1.1  skrll do
   1869  1.1  skrll   IFS=$as_save_IFS
   1870  1.1  skrll   test -z "$as_dir" && as_dir=.
   1871  1.1  skrll   for ac_exec_ext in '' $ac_executable_extensions; do
   1872  1.1  skrll   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   1873  1.1  skrll     ac_cv_prog_CC="${ac_tool_prefix}cc"
   1874  1.1  skrll     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   1875  1.1  skrll     break 2
   1876  1.1  skrll   fi
   1877  1.1  skrll done
   1878  1.1  skrll done
   1879  1.1  skrll 
   1880  1.1  skrll fi
   1881  1.1  skrll fi
   1882  1.1  skrll CC=$ac_cv_prog_CC
   1883  1.1  skrll if test -n "$CC"; then
   1884  1.1  skrll   echo "$as_me:$LINENO: result: $CC" >&5
   1885  1.1  skrll echo "${ECHO_T}$CC" >&6
   1886  1.1  skrll else
   1887  1.1  skrll   echo "$as_me:$LINENO: result: no" >&5
   1888  1.1  skrll echo "${ECHO_T}no" >&6
   1889  1.1  skrll fi
   1890  1.1  skrll 
   1891  1.1  skrll fi
   1892  1.1  skrll if test -z "$ac_cv_prog_CC"; then
   1893  1.1  skrll   ac_ct_CC=$CC
   1894  1.1  skrll   # Extract the first word of "cc", so it can be a program name with args.
   1895  1.1  skrll set dummy cc; ac_word=$2
   1896  1.1  skrll echo "$as_me:$LINENO: checking for $ac_word" >&5
   1897  1.1  skrll echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
   1898  1.1  skrll if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
   1899  1.1  skrll   echo $ECHO_N "(cached) $ECHO_C" >&6
   1900  1.1  skrll else
   1901  1.1  skrll   if test -n "$ac_ct_CC"; then
   1902  1.1  skrll   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
   1903  1.1  skrll else
   1904  1.1  skrll as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   1905  1.1  skrll for as_dir in $PATH
   1906  1.1  skrll do
   1907  1.1  skrll   IFS=$as_save_IFS
   1908  1.1  skrll   test -z "$as_dir" && as_dir=.
   1909  1.1  skrll   for ac_exec_ext in '' $ac_executable_extensions; do
   1910  1.1  skrll   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   1911  1.1  skrll     ac_cv_prog_ac_ct_CC="cc"
   1912  1.1  skrll     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   1913  1.1  skrll     break 2
   1914  1.1  skrll   fi
   1915  1.1  skrll done
   1916  1.1  skrll done
   1917  1.1  skrll 
   1918  1.1  skrll fi
   1919  1.1  skrll fi
   1920  1.1  skrll ac_ct_CC=$ac_cv_prog_ac_ct_CC
   1921  1.1  skrll if test -n "$ac_ct_CC"; then
   1922  1.1  skrll   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
   1923  1.1  skrll echo "${ECHO_T}$ac_ct_CC" >&6
   1924  1.1  skrll else
   1925  1.1  skrll   echo "$as_me:$LINENO: result: no" >&5
   1926  1.1  skrll echo "${ECHO_T}no" >&6
   1927  1.1  skrll fi
   1928  1.1  skrll 
   1929  1.1  skrll   CC=$ac_ct_CC
   1930  1.1  skrll else
   1931  1.1  skrll   CC="$ac_cv_prog_CC"
   1932  1.1  skrll fi
   1933  1.1  skrll 
   1934  1.1  skrll fi
   1935  1.1  skrll if test -z "$CC"; then
   1936  1.1  skrll   # Extract the first word of "cc", so it can be a program name with args.
   1937  1.1  skrll set dummy cc; ac_word=$2
   1938  1.1  skrll echo "$as_me:$LINENO: checking for $ac_word" >&5
   1939  1.1  skrll echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
   1940  1.1  skrll if test "${ac_cv_prog_CC+set}" = set; then
   1941  1.1  skrll   echo $ECHO_N "(cached) $ECHO_C" >&6
   1942  1.1  skrll else
   1943  1.1  skrll   if test -n "$CC"; then
   1944  1.1  skrll   ac_cv_prog_CC="$CC" # Let the user override the test.
   1945  1.1  skrll else
   1946  1.1  skrll   ac_prog_rejected=no
   1947  1.1  skrll as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   1948  1.1  skrll for as_dir in $PATH
   1949  1.1  skrll do
   1950  1.1  skrll   IFS=$as_save_IFS
   1951  1.1  skrll   test -z "$as_dir" && as_dir=.
   1952  1.1  skrll   for ac_exec_ext in '' $ac_executable_extensions; do
   1953  1.1  skrll   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   1954  1.1  skrll     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
   1955  1.1  skrll        ac_prog_rejected=yes
   1956  1.1  skrll        continue
   1957  1.1  skrll      fi
   1958  1.1  skrll     ac_cv_prog_CC="cc"
   1959  1.1  skrll     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   1960  1.1  skrll     break 2
   1961  1.1  skrll   fi
   1962  1.1  skrll done
   1963  1.1  skrll done
   1964  1.1  skrll 
   1965  1.1  skrll if test $ac_prog_rejected = yes; then
   1966  1.1  skrll   # We found a bogon in the path, so make sure we never use it.
   1967  1.1  skrll   set dummy $ac_cv_prog_CC
   1968  1.1  skrll   shift
   1969  1.1  skrll   if test $# != 0; then
   1970  1.1  skrll     # We chose a different compiler from the bogus one.
   1971  1.1  skrll     # However, it has the same basename, so the bogon will be chosen
   1972  1.1  skrll     # first if we set CC to just the basename; use the full file name.
   1973  1.1  skrll     shift
   1974  1.1  skrll     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
   1975  1.1  skrll   fi
   1976  1.1  skrll fi
   1977  1.1  skrll fi
   1978  1.1  skrll fi
   1979  1.1  skrll CC=$ac_cv_prog_CC
   1980  1.1  skrll if test -n "$CC"; then
   1981  1.1  skrll   echo "$as_me:$LINENO: result: $CC" >&5
   1982  1.1  skrll echo "${ECHO_T}$CC" >&6
   1983  1.1  skrll else
   1984  1.1  skrll   echo "$as_me:$LINENO: result: no" >&5
   1985  1.1  skrll echo "${ECHO_T}no" >&6
   1986  1.1  skrll fi
   1987  1.1  skrll 
   1988  1.1  skrll fi
   1989  1.1  skrll if test -z "$CC"; then
   1990  1.1  skrll   if test -n "$ac_tool_prefix"; then
   1991  1.1  skrll   for ac_prog in cl
   1992  1.1  skrll   do
   1993  1.1  skrll     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
   1994  1.1  skrll set dummy $ac_tool_prefix$ac_prog; ac_word=$2
   1995  1.1  skrll echo "$as_me:$LINENO: checking for $ac_word" >&5
   1996  1.1  skrll echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
   1997  1.1  skrll if test "${ac_cv_prog_CC+set}" = set; then
   1998  1.1  skrll   echo $ECHO_N "(cached) $ECHO_C" >&6
   1999  1.1  skrll else
   2000  1.1  skrll   if test -n "$CC"; then
   2001  1.1  skrll   ac_cv_prog_CC="$CC" # Let the user override the test.
   2002  1.1  skrll else
   2003  1.1  skrll as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   2004  1.1  skrll for as_dir in $PATH
   2005  1.1  skrll do
   2006  1.1  skrll   IFS=$as_save_IFS
   2007  1.1  skrll   test -z "$as_dir" && as_dir=.
   2008  1.1  skrll   for ac_exec_ext in '' $ac_executable_extensions; do
   2009  1.1  skrll   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   2010  1.1  skrll     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
   2011  1.1  skrll     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   2012  1.1  skrll     break 2
   2013  1.1  skrll   fi
   2014  1.1  skrll done
   2015  1.1  skrll done
   2016  1.1  skrll 
   2017  1.1  skrll fi
   2018  1.1  skrll fi
   2019  1.1  skrll CC=$ac_cv_prog_CC
   2020  1.1  skrll if test -n "$CC"; then
   2021  1.1  skrll   echo "$as_me:$LINENO: result: $CC" >&5
   2022  1.1  skrll echo "${ECHO_T}$CC" >&6
   2023  1.1  skrll else
   2024  1.1  skrll   echo "$as_me:$LINENO: result: no" >&5
   2025  1.1  skrll echo "${ECHO_T}no" >&6
   2026  1.1  skrll fi
   2027  1.1  skrll 
   2028  1.1  skrll     test -n "$CC" && break
   2029  1.1  skrll   done
   2030  1.1  skrll fi
   2031  1.1  skrll if test -z "$CC"; then
   2032  1.1  skrll   ac_ct_CC=$CC
   2033  1.1  skrll   for ac_prog in cl
   2034  1.1  skrll do
   2035  1.1  skrll   # Extract the first word of "$ac_prog", so it can be a program name with args.
   2036  1.1  skrll set dummy $ac_prog; ac_word=$2
   2037  1.1  skrll echo "$as_me:$LINENO: checking for $ac_word" >&5
   2038  1.1  skrll echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
   2039  1.1  skrll if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
   2040  1.1  skrll   echo $ECHO_N "(cached) $ECHO_C" >&6
   2041  1.1  skrll else
   2042  1.1  skrll   if test -n "$ac_ct_CC"; then
   2043  1.1  skrll   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
   2044  1.1  skrll else
   2045  1.1  skrll as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   2046  1.1  skrll for as_dir in $PATH
   2047  1.1  skrll do
   2048  1.1  skrll   IFS=$as_save_IFS
   2049  1.1  skrll   test -z "$as_dir" && as_dir=.
   2050  1.1  skrll   for ac_exec_ext in '' $ac_executable_extensions; do
   2051  1.1  skrll   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   2052  1.1  skrll     ac_cv_prog_ac_ct_CC="$ac_prog"
   2053  1.1  skrll     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   2054  1.1  skrll     break 2
   2055  1.1  skrll   fi
   2056  1.1  skrll done
   2057  1.1  skrll done
   2058  1.1  skrll 
   2059  1.1  skrll fi
   2060  1.1  skrll fi
   2061  1.1  skrll ac_ct_CC=$ac_cv_prog_ac_ct_CC
   2062  1.1  skrll if test -n "$ac_ct_CC"; then
   2063  1.1  skrll   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
   2064  1.1  skrll echo "${ECHO_T}$ac_ct_CC" >&6
   2065  1.1  skrll else
   2066  1.1  skrll   echo "$as_me:$LINENO: result: no" >&5
   2067  1.1  skrll echo "${ECHO_T}no" >&6
   2068  1.1  skrll fi
   2069  1.1  skrll 
   2070  1.1  skrll   test -n "$ac_ct_CC" && break
   2071  1.1  skrll done
   2072  1.1  skrll 
   2073  1.1  skrll   CC=$ac_ct_CC
   2074  1.1  skrll fi
   2075  1.1  skrll 
   2076  1.1  skrll fi
   2077  1.1  skrll 
   2078  1.1  skrll 
   2079  1.1  skrll test -z "$CC" && { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
   2080  1.1  skrll echo "$as_me: error: in \`$ac_pwd':" >&2;}
   2081  1.1  skrll { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
   2082  1.1  skrll See \`config.log' for more details." >&5
   2083  1.1  skrll echo "$as_me: error: no acceptable C compiler found in \$PATH
   2084  1.1  skrll See \`config.log' for more details." >&2;}
   2085  1.1  skrll    { (exit 1); exit 1; }; }; }
   2086  1.1  skrll 
   2087  1.1  skrll # Provide some information about the compiler.
   2088  1.1  skrll echo "$as_me:$LINENO:" \
   2089  1.1  skrll      "checking for C compiler version" >&5
   2090  1.1  skrll ac_compiler=`set X $ac_compile; echo $2`
   2091  1.1  skrll { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
   2092  1.1  skrll   (eval $ac_compiler --version </dev/null >&5) 2>&5
   2093  1.1  skrll   ac_status=$?
   2094  1.1  skrll   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   2095  1.1  skrll   (exit $ac_status); }
   2096  1.1  skrll { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
   2097  1.1  skrll   (eval $ac_compiler -v </dev/null >&5) 2>&5
   2098  1.1  skrll   ac_status=$?
   2099  1.1  skrll   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   2100  1.1  skrll   (exit $ac_status); }
   2101  1.1  skrll { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
   2102  1.1  skrll   (eval $ac_compiler -V </dev/null >&5) 2>&5
   2103  1.1  skrll   ac_status=$?
   2104  1.1  skrll   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   2105  1.1  skrll   (exit $ac_status); }
   2106  1.1  skrll 
   2107  1.1  skrll cat >conftest.$ac_ext <<_ACEOF
   2108  1.1  skrll /* confdefs.h.  */
   2109  1.1  skrll _ACEOF
   2110  1.1  skrll cat confdefs.h >>conftest.$ac_ext
   2111  1.1  skrll cat >>conftest.$ac_ext <<_ACEOF
   2112  1.1  skrll /* end confdefs.h.  */
   2113  1.1  skrll 
   2114  1.1  skrll int
   2115  1.1  skrll main ()
   2116  1.1  skrll {
   2117  1.1  skrll 
   2118  1.1  skrll   ;
   2119  1.1  skrll   return 0;
   2120  1.1  skrll }
   2121  1.1  skrll _ACEOF
   2122  1.1  skrll # FIXME: Cleanup?
   2123  1.1  skrll if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
   2124  1.1  skrll   (eval $ac_link) 2>&5
   2125  1.1  skrll   ac_status=$?
   2126  1.1  skrll   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   2127  1.1  skrll   (exit $ac_status); }; then
   2128  1.1  skrll   gcc_no_link=no
   2129  1.1  skrll else
   2130  1.1  skrll   gcc_no_link=yes
   2131  1.1  skrll fi
   2132  1.1  skrll 
   2133  1.1  skrll if test x$gcc_no_link = xyes; then
   2134  1.1  skrll   # Setting cross_compile will disable run tests; it will
   2135  1.1  skrll   # also disable AC_CHECK_FILE but that's generally
   2136  1.1  skrll   # correct if we can't link.
   2137  1.1  skrll   cross_compiling=yes
   2138  1.1  skrll   EXEEXT=
   2139  1.1  skrll else
   2140  1.1  skrll   cat >conftest.$ac_ext <<_ACEOF
   2141  1.1  skrll /* confdefs.h.  */
   2142  1.1  skrll _ACEOF
   2143  1.1  skrll cat confdefs.h >>conftest.$ac_ext
   2144  1.1  skrll cat >>conftest.$ac_ext <<_ACEOF
   2145  1.1  skrll /* end confdefs.h.  */
   2146  1.1  skrll 
   2147  1.1  skrll int
   2148  1.1  skrll main ()
   2149  1.1  skrll {
   2150  1.1  skrll 
   2151  1.1  skrll   ;
   2152  1.1  skrll   return 0;
   2153  1.1  skrll }
   2154  1.1  skrll _ACEOF
   2155  1.1  skrll ac_clean_files_save=$ac_clean_files
   2156  1.1  skrll ac_clean_files="$ac_clean_files a.out a.exe b.out"
   2157  1.1  skrll # Try to create an executable without -o first, disregard a.out.
   2158  1.1  skrll # It will help us diagnose broken compilers, and finding out an intuition
   2159  1.1  skrll # of exeext.
   2160  1.1  skrll echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
   2161  1.1  skrll echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
   2162  1.1  skrll ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
   2163  1.1  skrll if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
   2164  1.1  skrll   (eval $ac_link_default) 2>&5
   2165  1.1  skrll   ac_status=$?
   2166  1.1  skrll   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   2167  1.1  skrll   (exit $ac_status); }; then
   2168  1.1  skrll   # Find the output, starting from the most likely.  This scheme is
   2169  1.1  skrll # not robust to junk in `.', hence go to wildcards (a.*) only as a last
   2170  1.1  skrll # resort.
   2171  1.1  skrll 
   2172  1.1  skrll # Be careful to initialize this variable, since it used to be cached.
   2173  1.1  skrll # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
   2174  1.1  skrll ac_cv_exeext=
   2175  1.1  skrll # b.out is created by i960 compilers.
   2176  1.1  skrll for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
   2177  1.1  skrll do
   2178  1.1  skrll   test -f "$ac_file" || continue
   2179  1.1  skrll   case $ac_file in
   2180  1.1  skrll     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
   2181  1.1  skrll 	;;
   2182  1.1  skrll     conftest.$ac_ext )
   2183  1.1  skrll 	# This is the source file.
   2184  1.1  skrll 	;;
   2185  1.1  skrll     [ab].out )
   2186  1.1  skrll 	# We found the default executable, but exeext='' is most
   2187  1.1  skrll 	# certainly right.
   2188  1.1  skrll 	break;;
   2189  1.1  skrll     *.* )
   2190  1.1  skrll 	ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
   2191  1.1  skrll 	# FIXME: I believe we export ac_cv_exeext for Libtool,
   2192  1.1  skrll 	# but it would be cool to find out if it's true.  Does anybody
   2193  1.1  skrll 	# maintain Libtool? --akim.
   2194  1.1  skrll 	export ac_cv_exeext
   2195  1.1  skrll 	break;;
   2196  1.1  skrll     * )
   2197  1.1  skrll 	break;;
   2198  1.1  skrll   esac
   2199  1.1  skrll done
   2200  1.1  skrll else
   2201  1.1  skrll   echo "$as_me: failed program was:" >&5
   2202  1.1  skrll sed 's/^/| /' conftest.$ac_ext >&5
   2203  1.1  skrll 
   2204  1.1  skrll { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
   2205  1.1  skrll echo "$as_me: error: in \`$ac_pwd':" >&2;}
   2206  1.1  skrll { { echo "$as_me:$LINENO: error: C compiler cannot create executables
   2207  1.1  skrll See \`config.log' for more details." >&5
   2208  1.1  skrll echo "$as_me: error: C compiler cannot create executables
   2209  1.1  skrll See \`config.log' for more details." >&2;}
   2210  1.1  skrll    { (exit 77); exit 77; }; }; }
   2211  1.1  skrll fi
   2212  1.1  skrll 
   2213  1.1  skrll ac_exeext=$ac_cv_exeext
   2214  1.1  skrll echo "$as_me:$LINENO: result: $ac_file" >&5
   2215  1.1  skrll echo "${ECHO_T}$ac_file" >&6
   2216  1.1  skrll 
   2217  1.1  skrll # Check the compiler produces executables we can run.  If not, either
   2218  1.1  skrll # the compiler is broken, or we cross compile.
   2219  1.1  skrll echo "$as_me:$LINENO: checking whether the C compiler works" >&5
   2220  1.1  skrll echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
   2221  1.1  skrll # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
   2222  1.1  skrll # If not cross compiling, check that we can run a simple program.
   2223  1.1  skrll if test "$cross_compiling" != yes; then
   2224  1.1  skrll   if { ac_try='./$ac_file'
   2225  1.1  skrll   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   2226  1.1  skrll   (eval $ac_try) 2>&5
   2227  1.1  skrll   ac_status=$?
   2228  1.1  skrll   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   2229  1.1  skrll   (exit $ac_status); }; }; then
   2230  1.1  skrll     cross_compiling=no
   2231  1.1  skrll   else
   2232  1.1  skrll     if test "$cross_compiling" = maybe; then
   2233  1.1  skrll 	cross_compiling=yes
   2234  1.1  skrll     else
   2235  1.1  skrll 	{ { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
   2236  1.1  skrll echo "$as_me: error: in \`$ac_pwd':" >&2;}
   2237  1.1  skrll { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
   2238  1.1  skrll If you meant to cross compile, use \`--host'.
   2239  1.1  skrll See \`config.log' for more details." >&5
   2240  1.1  skrll echo "$as_me: error: cannot run C compiled programs.
   2241  1.1  skrll If you meant to cross compile, use \`--host'.
   2242  1.1  skrll See \`config.log' for more details." >&2;}
   2243  1.1  skrll    { (exit 1); exit 1; }; }; }
   2244  1.1  skrll     fi
   2245  1.1  skrll   fi
   2246  1.1  skrll fi
   2247  1.1  skrll echo "$as_me:$LINENO: result: yes" >&5
   2248  1.1  skrll echo "${ECHO_T}yes" >&6
   2249  1.1  skrll 
   2250  1.1  skrll rm -f a.out a.exe conftest$ac_cv_exeext b.out
   2251  1.1  skrll ac_clean_files=$ac_clean_files_save
   2252  1.1  skrll # Check the compiler produces executables we can run.  If not, either
   2253  1.1  skrll # the compiler is broken, or we cross compile.
   2254  1.1  skrll echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
   2255  1.1  skrll echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
   2256  1.1  skrll echo "$as_me:$LINENO: result: $cross_compiling" >&5
   2257  1.1  skrll echo "${ECHO_T}$cross_compiling" >&6
   2258  1.1  skrll 
   2259  1.1  skrll echo "$as_me:$LINENO: checking for suffix of executables" >&5
   2260  1.1  skrll echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
   2261  1.1  skrll if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
   2262  1.1  skrll   (eval $ac_link) 2>&5
   2263  1.1  skrll   ac_status=$?
   2264  1.1  skrll   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   2265  1.1  skrll   (exit $ac_status); }; then
   2266  1.1  skrll   # If both `conftest.exe' and `conftest' are `present' (well, observable)
   2267  1.1  skrll # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
   2268  1.1  skrll # work properly (i.e., refer to `conftest.exe'), while it won't with
   2269  1.1  skrll # `rm'.
   2270  1.1  skrll for ac_file in conftest.exe conftest conftest.*; do
   2271  1.1  skrll   test -f "$ac_file" || continue
   2272  1.1  skrll   case $ac_file in
   2273  1.1  skrll     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
   2274  1.1  skrll     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
   2275  1.1  skrll 	  export ac_cv_exeext
   2276  1.1  skrll 	  break;;
   2277  1.1  skrll     * ) break;;
   2278  1.1  skrll   esac
   2279  1.1  skrll done
   2280  1.1  skrll else
   2281  1.1  skrll   { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
   2282  1.1  skrll echo "$as_me: error: in \`$ac_pwd':" >&2;}
   2283  1.1  skrll { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
   2284  1.1  skrll See \`config.log' for more details." >&5
   2285  1.1  skrll echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
   2286  1.1  skrll See \`config.log' for more details." >&2;}
   2287  1.1  skrll    { (exit 1); exit 1; }; }; }
   2288  1.1  skrll fi
   2289  1.1  skrll 
   2290  1.1  skrll rm -f conftest$ac_cv_exeext
   2291  1.1  skrll echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
   2292  1.1  skrll echo "${ECHO_T}$ac_cv_exeext" >&6
   2293  1.1  skrll 
   2294  1.1  skrll rm -f conftest.$ac_ext
   2295  1.1  skrll EXEEXT=$ac_cv_exeext
   2296  1.1  skrll ac_exeext=$EXEEXT
   2297  1.1  skrll fi
   2298  1.1  skrll echo "$as_me:$LINENO: checking for suffix of object files" >&5
   2299  1.1  skrll echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
   2300  1.1  skrll if test "${ac_cv_objext+set}" = set; then
   2301  1.1  skrll   echo $ECHO_N "(cached) $ECHO_C" >&6
   2302  1.1  skrll else
   2303  1.1  skrll   cat >conftest.$ac_ext <<_ACEOF
   2304  1.1  skrll /* confdefs.h.  */
   2305  1.1  skrll _ACEOF
   2306  1.1  skrll cat confdefs.h >>conftest.$ac_ext
   2307  1.1  skrll cat >>conftest.$ac_ext <<_ACEOF
   2308  1.1  skrll /* end confdefs.h.  */
   2309  1.1  skrll 
   2310  1.1  skrll int
   2311  1.1  skrll main ()
   2312  1.1  skrll {
   2313  1.1  skrll 
   2314  1.1  skrll   ;
   2315  1.1  skrll   return 0;
   2316  1.1  skrll }
   2317  1.1  skrll _ACEOF
   2318  1.1  skrll rm -f conftest.o conftest.obj
   2319  1.1  skrll if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
   2320  1.1  skrll   (eval $ac_compile) 2>&5
   2321  1.1  skrll   ac_status=$?
   2322  1.1  skrll   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   2323  1.1  skrll   (exit $ac_status); }; then
   2324  1.1  skrll   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
   2325  1.1  skrll   case $ac_file in
   2326  1.1  skrll     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
   2327  1.1  skrll     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
   2328  1.1  skrll        break;;
   2329  1.1  skrll   esac
   2330  1.1  skrll done
   2331  1.1  skrll else
   2332  1.1  skrll   echo "$as_me: failed program was:" >&5
   2333  1.1  skrll sed 's/^/| /' conftest.$ac_ext >&5
   2334  1.1  skrll 
   2335  1.1  skrll { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
   2336  1.1  skrll echo "$as_me: error: in \`$ac_pwd':" >&2;}
   2337  1.1  skrll { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
   2338  1.1  skrll See \`config.log' for more details." >&5
   2339  1.1  skrll echo "$as_me: error: cannot compute suffix of object files: cannot compile
   2340  1.1  skrll See \`config.log' for more details." >&2;}
   2341  1.1  skrll    { (exit 1); exit 1; }; }; }
   2342  1.1  skrll fi
   2343  1.1  skrll 
   2344  1.1  skrll rm -f conftest.$ac_cv_objext conftest.$ac_ext
   2345  1.1  skrll fi
   2346  1.1  skrll echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
   2347  1.1  skrll echo "${ECHO_T}$ac_cv_objext" >&6
   2348  1.1  skrll OBJEXT=$ac_cv_objext
   2349  1.1  skrll ac_objext=$OBJEXT
   2350  1.1  skrll echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
   2351  1.1  skrll echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
   2352  1.1  skrll if test "${ac_cv_c_compiler_gnu+set}" = set; then
   2353  1.1  skrll   echo $ECHO_N "(cached) $ECHO_C" >&6
   2354  1.1  skrll else
   2355  1.1  skrll   cat >conftest.$ac_ext <<_ACEOF
   2356  1.1  skrll /* confdefs.h.  */
   2357  1.1  skrll _ACEOF
   2358  1.1  skrll cat confdefs.h >>conftest.$ac_ext
   2359  1.1  skrll cat >>conftest.$ac_ext <<_ACEOF
   2360  1.1  skrll /* end confdefs.h.  */
   2361  1.1  skrll 
   2362  1.1  skrll int
   2363  1.1  skrll main ()
   2364  1.1  skrll {
   2365  1.1  skrll #ifndef __GNUC__
   2366  1.1  skrll        choke me
   2367  1.1  skrll #endif
   2368  1.1  skrll 
   2369  1.1  skrll   ;
   2370  1.1  skrll   return 0;
   2371  1.1  skrll }
   2372  1.1  skrll _ACEOF
   2373  1.1  skrll rm -f conftest.$ac_objext
   2374  1.1  skrll if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
   2375  1.1  skrll   (eval $ac_compile) 2>conftest.er1
   2376  1.1  skrll   ac_status=$?
   2377  1.1  skrll   grep -v '^ *+' conftest.er1 >conftest.err
   2378  1.1  skrll   rm -f conftest.er1
   2379  1.1  skrll   cat conftest.err >&5
   2380  1.1  skrll   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   2381  1.1  skrll   (exit $ac_status); } &&
   2382  1.1  skrll 	 { ac_try='test -z "$ac_c_werror_flag"
   2383  1.1  skrll 			 || test ! -s conftest.err'
   2384  1.1  skrll   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   2385  1.1  skrll   (eval $ac_try) 2>&5
   2386  1.1  skrll   ac_status=$?
   2387  1.1  skrll   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   2388  1.1  skrll   (exit $ac_status); }; } &&
   2389  1.1  skrll 	 { ac_try='test -s conftest.$ac_objext'
   2390  1.1  skrll   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   2391  1.1  skrll   (eval $ac_try) 2>&5
   2392  1.1  skrll   ac_status=$?
   2393  1.1  skrll   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   2394  1.1  skrll   (exit $ac_status); }; }; then
   2395  1.1  skrll   ac_compiler_gnu=yes
   2396  1.1  skrll else
   2397  1.1  skrll   echo "$as_me: failed program was:" >&5
   2398  1.1  skrll sed 's/^/| /' conftest.$ac_ext >&5
   2399  1.1  skrll 
   2400  1.1  skrll ac_compiler_gnu=no
   2401  1.1  skrll fi
   2402  1.1  skrll rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
   2403  1.1  skrll ac_cv_c_compiler_gnu=$ac_compiler_gnu
   2404  1.1  skrll 
   2405  1.1  skrll fi
   2406  1.1  skrll echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
   2407  1.1  skrll echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
   2408  1.1  skrll GCC=`test $ac_compiler_gnu = yes && echo yes`
   2409  1.1  skrll ac_test_CFLAGS=${CFLAGS+set}
   2410  1.1  skrll ac_save_CFLAGS=$CFLAGS
   2411  1.1  skrll CFLAGS="-g"
   2412  1.1  skrll echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
   2413  1.1  skrll echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
   2414  1.1  skrll if test "${ac_cv_prog_cc_g+set}" = set; then
   2415  1.1  skrll   echo $ECHO_N "(cached) $ECHO_C" >&6
   2416  1.1  skrll else
   2417  1.1  skrll   cat >conftest.$ac_ext <<_ACEOF
   2418  1.1  skrll /* confdefs.h.  */
   2419  1.1  skrll _ACEOF
   2420  1.1  skrll cat confdefs.h >>conftest.$ac_ext
   2421  1.1  skrll cat >>conftest.$ac_ext <<_ACEOF
   2422  1.1  skrll /* end confdefs.h.  */
   2423  1.1  skrll 
   2424  1.1  skrll int
   2425  1.1  skrll main ()
   2426  1.1  skrll {
   2427  1.1  skrll 
   2428  1.1  skrll   ;
   2429  1.1  skrll   return 0;
   2430  1.1  skrll }
   2431  1.1  skrll _ACEOF
   2432  1.1  skrll rm -f conftest.$ac_objext
   2433  1.1  skrll if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
   2434  1.1  skrll   (eval $ac_compile) 2>conftest.er1
   2435  1.1  skrll   ac_status=$?
   2436  1.1  skrll   grep -v '^ *+' conftest.er1 >conftest.err
   2437  1.1  skrll   rm -f conftest.er1
   2438  1.1  skrll   cat conftest.err >&5
   2439  1.1  skrll   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   2440  1.1  skrll   (exit $ac_status); } &&
   2441  1.1  skrll 	 { ac_try='test -z "$ac_c_werror_flag"
   2442  1.1  skrll 			 || test ! -s conftest.err'
   2443  1.1  skrll   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   2444  1.1  skrll   (eval $ac_try) 2>&5
   2445  1.1  skrll   ac_status=$?
   2446  1.1  skrll   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   2447  1.1  skrll   (exit $ac_status); }; } &&
   2448  1.1  skrll 	 { ac_try='test -s conftest.$ac_objext'
   2449  1.1  skrll   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   2450  1.1  skrll   (eval $ac_try) 2>&5
   2451  1.1  skrll   ac_status=$?
   2452  1.1  skrll   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   2453  1.1  skrll   (exit $ac_status); }; }; then
   2454  1.1  skrll   ac_cv_prog_cc_g=yes
   2455  1.1  skrll else
   2456  1.1  skrll   echo "$as_me: failed program was:" >&5
   2457  1.1  skrll sed 's/^/| /' conftest.$ac_ext >&5
   2458  1.1  skrll 
   2459  1.1  skrll ac_cv_prog_cc_g=no
   2460  1.1  skrll fi
   2461  1.1  skrll rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
   2462  1.1  skrll fi
   2463  1.1  skrll echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
   2464  1.1  skrll echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
   2465  1.1  skrll if test "$ac_test_CFLAGS" = set; then
   2466  1.1  skrll   CFLAGS=$ac_save_CFLAGS
   2467  1.1  skrll elif test $ac_cv_prog_cc_g = yes; then
   2468  1.1  skrll   if test "$GCC" = yes; then
   2469  1.1  skrll     CFLAGS="-g -O2"
   2470  1.1  skrll   else
   2471  1.1  skrll     CFLAGS="-g"
   2472  1.1  skrll   fi
   2473  1.1  skrll else
   2474  1.1  skrll   if test "$GCC" = yes; then
   2475  1.1  skrll     CFLAGS="-O2"
   2476  1.1  skrll   else
   2477  1.1  skrll     CFLAGS=
   2478  1.1  skrll   fi
   2479  1.1  skrll fi
   2480  1.1  skrll echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
   2481  1.1  skrll echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
   2482  1.1  skrll if test "${ac_cv_prog_cc_stdc+set}" = set; then
   2483  1.1  skrll   echo $ECHO_N "(cached) $ECHO_C" >&6
   2484  1.1  skrll else
   2485  1.1  skrll   ac_cv_prog_cc_stdc=no
   2486  1.1  skrll ac_save_CC=$CC
   2487  1.1  skrll cat >conftest.$ac_ext <<_ACEOF
   2488  1.1  skrll /* confdefs.h.  */
   2489  1.1  skrll _ACEOF
   2490  1.1  skrll cat confdefs.h >>conftest.$ac_ext
   2491  1.1  skrll cat >>conftest.$ac_ext <<_ACEOF
   2492  1.1  skrll /* end confdefs.h.  */
   2493  1.1  skrll #include <stdarg.h>
   2494  1.1  skrll #include <stdio.h>
   2495  1.1  skrll #include <sys/types.h>
   2496  1.1  skrll #include <sys/stat.h>
   2497  1.1  skrll /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
   2498  1.1  skrll struct buf { int x; };
   2499  1.1  skrll FILE * (*rcsopen) (struct buf *, struct stat *, int);
   2500  1.1  skrll static char *e (p, i)
   2501  1.1  skrll      char **p;
   2502  1.1  skrll      int i;
   2503  1.1  skrll {
   2504  1.1  skrll   return p[i];
   2505  1.1  skrll }
   2506  1.1  skrll static char *f (char * (*g) (char **, int), char **p, ...)
   2507  1.1  skrll {
   2508  1.1  skrll   char *s;
   2509  1.1  skrll   va_list v;
   2510  1.1  skrll   va_start (v,p);
   2511  1.1  skrll   s = g (p, va_arg (v,int));
   2512  1.1  skrll   va_end (v);
   2513  1.1  skrll   return s;
   2514  1.1  skrll }
   2515  1.1  skrll 
   2516  1.1  skrll /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
   2517  1.1  skrll    function prototypes and stuff, but not '\xHH' hex character constants.
   2518  1.1  skrll    These don't provoke an error unfortunately, instead are silently treated
   2519  1.1  skrll    as 'x'.  The following induces an error, until -std1 is added to get
   2520  1.1  skrll    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
   2521  1.1  skrll    array size at least.  It's necessary to write '\x00'==0 to get something
   2522  1.1  skrll    that's true only with -std1.  */
   2523  1.1  skrll int osf4_cc_array ['\x00' == 0 ? 1 : -1];
   2524  1.1  skrll 
   2525  1.1  skrll int test (int i, double x);
   2526  1.1  skrll struct s1 {int (*f) (int a);};
   2527  1.1  skrll struct s2 {int (*f) (double a);};
   2528  1.1  skrll int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
   2529  1.1  skrll int argc;
   2530  1.1  skrll char **argv;
   2531  1.1  skrll int
   2532  1.1  skrll main ()
   2533  1.1  skrll {
   2534  1.1  skrll return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
   2535  1.1  skrll   ;
   2536  1.1  skrll   return 0;
   2537  1.1  skrll }
   2538  1.1  skrll _ACEOF
   2539  1.1  skrll # Don't try gcc -ansi; that turns off useful extensions and
   2540  1.1  skrll # breaks some systems' header files.
   2541  1.1  skrll # AIX			-qlanglvl=ansi
   2542  1.1  skrll # Ultrix and OSF/1	-std1
   2543  1.1  skrll # HP-UX 10.20 and later	-Ae
   2544  1.1  skrll # HP-UX older versions	-Aa -D_HPUX_SOURCE
   2545  1.1  skrll # SVR4			-Xc -D__EXTENSIONS__
   2546  1.1  skrll for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
   2547  1.1  skrll do
   2548  1.1  skrll   CC="$ac_save_CC $ac_arg"
   2549  1.1  skrll   rm -f conftest.$ac_objext
   2550  1.1  skrll if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
   2551  1.1  skrll   (eval $ac_compile) 2>conftest.er1
   2552  1.1  skrll   ac_status=$?
   2553  1.1  skrll   grep -v '^ *+' conftest.er1 >conftest.err
   2554  1.1  skrll   rm -f conftest.er1
   2555  1.1  skrll   cat conftest.err >&5
   2556  1.1  skrll   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   2557  1.1  skrll   (exit $ac_status); } &&
   2558  1.1  skrll 	 { ac_try='test -z "$ac_c_werror_flag"
   2559  1.1  skrll 			 || test ! -s conftest.err'
   2560  1.1  skrll   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   2561  1.1  skrll   (eval $ac_try) 2>&5
   2562  1.1  skrll   ac_status=$?
   2563  1.1  skrll   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   2564  1.1  skrll   (exit $ac_status); }; } &&
   2565  1.1  skrll 	 { ac_try='test -s conftest.$ac_objext'
   2566  1.1  skrll   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   2567  1.1  skrll   (eval $ac_try) 2>&5
   2568  1.1  skrll   ac_status=$?
   2569  1.1  skrll   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   2570  1.1  skrll   (exit $ac_status); }; }; then
   2571  1.1  skrll   ac_cv_prog_cc_stdc=$ac_arg
   2572  1.1  skrll break
   2573  1.1  skrll else
   2574  1.1  skrll   echo "$as_me: failed program was:" >&5
   2575  1.1  skrll sed 's/^/| /' conftest.$ac_ext >&5
   2576  1.1  skrll 
   2577  1.1  skrll fi
   2578  1.1  skrll rm -f conftest.err conftest.$ac_objext
   2579  1.1  skrll done
   2580  1.1  skrll rm -f conftest.$ac_ext conftest.$ac_objext
   2581  1.1  skrll CC=$ac_save_CC
   2582  1.1  skrll 
   2583  1.1  skrll fi
   2584  1.1  skrll 
   2585  1.1  skrll case "x$ac_cv_prog_cc_stdc" in
   2586  1.1  skrll   x|xno)
   2587  1.1  skrll     echo "$as_me:$LINENO: result: none needed" >&5
   2588  1.1  skrll echo "${ECHO_T}none needed" >&6 ;;
   2589  1.1  skrll   *)
   2590  1.1  skrll     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
   2591  1.1  skrll echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
   2592  1.1  skrll     CC="$CC $ac_cv_prog_cc_stdc" ;;
   2593  1.1  skrll esac
   2594  1.1  skrll 
   2595  1.1  skrll # Some people use a C++ compiler to compile C.  Since we use `exit',
   2596  1.1  skrll # in C++ we need to declare it.  In case someone uses the same compiler
   2597  1.1  skrll # for both compiling C and C++ we need to have the C++ compiler decide
   2598  1.1  skrll # the declaration of exit, since it's the most demanding environment.
   2599  1.1  skrll cat >conftest.$ac_ext <<_ACEOF
   2600  1.1  skrll #ifndef __cplusplus
   2601  1.1  skrll   choke me
   2602  1.1  skrll #endif
   2603  1.1  skrll _ACEOF
   2604  1.1  skrll rm -f conftest.$ac_objext
   2605  1.1  skrll if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
   2606  1.1  skrll   (eval $ac_compile) 2>conftest.er1
   2607  1.1  skrll   ac_status=$?
   2608  1.1  skrll   grep -v '^ *+' conftest.er1 >conftest.err
   2609  1.1  skrll   rm -f conftest.er1
   2610  1.1  skrll   cat conftest.err >&5
   2611  1.1  skrll   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   2612  1.1  skrll   (exit $ac_status); } &&
   2613  1.1  skrll 	 { ac_try='test -z "$ac_c_werror_flag"
   2614  1.1  skrll 			 || test ! -s conftest.err'
   2615  1.1  skrll   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   2616  1.1  skrll   (eval $ac_try) 2>&5
   2617  1.1  skrll   ac_status=$?
   2618  1.1  skrll   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   2619  1.1  skrll   (exit $ac_status); }; } &&
   2620  1.1  skrll 	 { ac_try='test -s conftest.$ac_objext'
   2621  1.1  skrll   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   2622  1.1  skrll   (eval $ac_try) 2>&5
   2623  1.1  skrll   ac_status=$?
   2624  1.1  skrll   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   2625  1.1  skrll   (exit $ac_status); }; }; then
   2626  1.1  skrll   for ac_declaration in \
   2627  1.1  skrll    '' \
   2628  1.1  skrll    'extern "C" void std::exit (int) throw (); using std::exit;' \
   2629  1.1  skrll    'extern "C" void std::exit (int); using std::exit;' \
   2630  1.1  skrll    'extern "C" void exit (int) throw ();' \
   2631  1.1  skrll    'extern "C" void exit (int);' \
   2632  1.1  skrll    'void exit (int);'
   2633  1.1  skrll do
   2634  1.1  skrll   cat >conftest.$ac_ext <<_ACEOF
   2635  1.1  skrll /* confdefs.h.  */
   2636  1.1  skrll _ACEOF
   2637  1.1  skrll cat confdefs.h >>conftest.$ac_ext
   2638  1.1  skrll cat >>conftest.$ac_ext <<_ACEOF
   2639  1.1  skrll /* end confdefs.h.  */
   2640  1.1  skrll $ac_declaration
   2641  1.1  skrll #include <stdlib.h>
   2642  1.1  skrll int
   2643  1.1  skrll main ()
   2644  1.1  skrll {
   2645  1.1  skrll exit (42);
   2646  1.1  skrll   ;
   2647  1.1  skrll   return 0;
   2648  1.1  skrll }
   2649  1.1  skrll _ACEOF
   2650  1.1  skrll rm -f conftest.$ac_objext
   2651  1.1  skrll if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
   2652  1.1  skrll   (eval $ac_compile) 2>conftest.er1
   2653  1.1  skrll   ac_status=$?
   2654  1.1  skrll   grep -v '^ *+' conftest.er1 >conftest.err
   2655  1.1  skrll   rm -f conftest.er1
   2656  1.1  skrll   cat conftest.err >&5
   2657  1.1  skrll   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   2658  1.1  skrll   (exit $ac_status); } &&
   2659  1.1  skrll 	 { ac_try='test -z "$ac_c_werror_flag"
   2660  1.1  skrll 			 || test ! -s conftest.err'
   2661  1.1  skrll   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   2662  1.1  skrll   (eval $ac_try) 2>&5
   2663  1.1  skrll   ac_status=$?
   2664  1.1  skrll   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   2665  1.1  skrll   (exit $ac_status); }; } &&
   2666  1.1  skrll 	 { ac_try='test -s conftest.$ac_objext'
   2667  1.1  skrll   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   2668  1.1  skrll   (eval $ac_try) 2>&5
   2669  1.1  skrll   ac_status=$?
   2670  1.1  skrll   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   2671  1.1  skrll   (exit $ac_status); }; }; then
   2672  1.1  skrll   :
   2673  1.1  skrll else
   2674  1.1  skrll   echo "$as_me: failed program was:" >&5
   2675  1.1  skrll sed 's/^/| /' conftest.$ac_ext >&5
   2676  1.1  skrll 
   2677  1.1  skrll continue
   2678  1.1  skrll fi
   2679  1.1  skrll rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
   2680  1.1  skrll   cat >conftest.$ac_ext <<_ACEOF
   2681  1.1  skrll /* confdefs.h.  */
   2682  1.1  skrll _ACEOF
   2683  1.1  skrll cat confdefs.h >>conftest.$ac_ext
   2684  1.1  skrll cat >>conftest.$ac_ext <<_ACEOF
   2685  1.1  skrll /* end confdefs.h.  */
   2686  1.1  skrll $ac_declaration
   2687  1.1  skrll int
   2688  1.1  skrll main ()
   2689  1.1  skrll {
   2690  1.1  skrll exit (42);
   2691  1.1  skrll   ;
   2692  1.1  skrll   return 0;
   2693  1.1  skrll }
   2694  1.1  skrll _ACEOF
   2695  1.1  skrll rm -f conftest.$ac_objext
   2696  1.1  skrll if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
   2697  1.1  skrll   (eval $ac_compile) 2>conftest.er1
   2698  1.1  skrll   ac_status=$?
   2699  1.1  skrll   grep -v '^ *+' conftest.er1 >conftest.err
   2700  1.1  skrll   rm -f conftest.er1
   2701  1.1  skrll   cat conftest.err >&5
   2702  1.1  skrll   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   2703  1.1  skrll   (exit $ac_status); } &&
   2704  1.1  skrll 	 { ac_try='test -z "$ac_c_werror_flag"
   2705  1.1  skrll 			 || test ! -s conftest.err'
   2706  1.1  skrll   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   2707  1.1  skrll   (eval $ac_try) 2>&5
   2708  1.1  skrll   ac_status=$?
   2709  1.1  skrll   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   2710  1.1  skrll   (exit $ac_status); }; } &&
   2711  1.1  skrll 	 { ac_try='test -s conftest.$ac_objext'
   2712  1.1  skrll   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   2713  1.1  skrll   (eval $ac_try) 2>&5
   2714  1.1  skrll   ac_status=$?
   2715  1.1  skrll   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   2716  1.1  skrll   (exit $ac_status); }; }; then
   2717  1.1  skrll   break
   2718  1.1  skrll else
   2719  1.1  skrll   echo "$as_me: failed program was:" >&5
   2720  1.1  skrll sed 's/^/| /' conftest.$ac_ext >&5
   2721  1.1  skrll 
   2722  1.1  skrll fi
   2723  1.1  skrll rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
   2724  1.1  skrll done
   2725  1.1  skrll rm -f conftest*
   2726  1.1  skrll if test -n "$ac_declaration"; then
   2727  1.1  skrll   echo '#ifdef __cplusplus' >>confdefs.h
   2728  1.1  skrll   echo $ac_declaration      >>confdefs.h
   2729  1.1  skrll   echo '#endif'             >>confdefs.h
   2730  1.1  skrll fi
   2731  1.1  skrll 
   2732  1.1  skrll else
   2733  1.1  skrll   echo "$as_me: failed program was:" >&5
   2734  1.1  skrll sed 's/^/| /' conftest.$ac_ext >&5
   2735  1.1  skrll 
   2736  1.1  skrll fi
   2737  1.1  skrll rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
   2738  1.1  skrll ac_ext=c
   2739  1.1  skrll ac_cpp='$CPP $CPPFLAGS'
   2740  1.1  skrll ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   2741  1.1  skrll ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   2742  1.1  skrll ac_compiler_gnu=$ac_cv_c_compiler_gnu
   2743  1.1  skrll 
   2744  1.1  skrll ac_ext=c
   2745  1.1  skrll ac_cpp='$CPP $CPPFLAGS'
   2746  1.1  skrll ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   2747  1.1  skrll ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   2748  1.1  skrll ac_compiler_gnu=$ac_cv_c_compiler_gnu
   2749  1.1  skrll echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
   2750  1.1  skrll echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
   2751  1.1  skrll # On Suns, sometimes $CPP names a directory.
   2752  1.1  skrll if test -n "$CPP" && test -d "$CPP"; then
   2753  1.1  skrll   CPP=
   2754  1.1  skrll fi
   2755  1.1  skrll if test -z "$CPP"; then
   2756  1.1  skrll   if test "${ac_cv_prog_CPP+set}" = set; then
   2757  1.1  skrll   echo $ECHO_N "(cached) $ECHO_C" >&6
   2758  1.1  skrll else
   2759  1.1  skrll       # Double quotes because CPP needs to be expanded
   2760  1.1  skrll     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
   2761  1.1  skrll     do
   2762  1.1  skrll       ac_preproc_ok=false
   2763  1.1  skrll for ac_c_preproc_warn_flag in '' yes
   2764  1.1  skrll do
   2765  1.1  skrll   # Use a header file that comes with gcc, so configuring glibc
   2766  1.1  skrll   # with a fresh cross-compiler works.
   2767  1.1  skrll   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   2768  1.1  skrll   # <limits.h> exists even on freestanding compilers.
   2769  1.1  skrll   # On the NeXT, cc -E runs the code through the compiler's parser,
   2770  1.1  skrll   # not just through cpp. "Syntax error" is here to catch this case.
   2771  1.1  skrll   cat >conftest.$ac_ext <<_ACEOF
   2772  1.1  skrll /* confdefs.h.  */
   2773  1.1  skrll _ACEOF
   2774  1.1  skrll cat confdefs.h >>conftest.$ac_ext
   2775  1.1  skrll cat >>conftest.$ac_ext <<_ACEOF
   2776  1.1  skrll /* end confdefs.h.  */
   2777  1.1  skrll #ifdef __STDC__
   2778  1.1  skrll # include <limits.h>
   2779  1.1  skrll #else
   2780  1.1  skrll # include <assert.h>
   2781  1.1  skrll #endif
   2782  1.1  skrll 		     Syntax error
   2783  1.1  skrll _ACEOF
   2784  1.1  skrll if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
   2785  1.1  skrll   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
   2786  1.1  skrll   ac_status=$?
   2787  1.1  skrll   grep -v '^ *+' conftest.er1 >conftest.err
   2788  1.1  skrll   rm -f conftest.er1
   2789  1.1  skrll   cat conftest.err >&5
   2790  1.1  skrll   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   2791  1.1  skrll   (exit $ac_status); } >/dev/null; then
   2792  1.1  skrll   if test -s conftest.err; then
   2793  1.1  skrll     ac_cpp_err=$ac_c_preproc_warn_flag
   2794  1.1  skrll     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
   2795  1.1  skrll   else
   2796  1.1  skrll     ac_cpp_err=
   2797  1.1  skrll   fi
   2798  1.1  skrll else
   2799  1.1  skrll   ac_cpp_err=yes
   2800  1.1  skrll fi
   2801  1.1  skrll if test -z "$ac_cpp_err"; then
   2802  1.1  skrll   :
   2803  1.1  skrll else
   2804  1.1  skrll   echo "$as_me: failed program was:" >&5
   2805  1.1  skrll sed 's/^/| /' conftest.$ac_ext >&5
   2806  1.1  skrll 
   2807  1.1  skrll   # Broken: fails on valid input.
   2808  1.1  skrll continue
   2809  1.1  skrll fi
   2810  1.1  skrll rm -f conftest.err conftest.$ac_ext
   2811  1.1  skrll 
   2812  1.1  skrll   # OK, works on sane cases.  Now check whether non-existent headers
   2813  1.1  skrll   # can be detected and how.
   2814  1.1  skrll   cat >conftest.$ac_ext <<_ACEOF
   2815  1.1  skrll /* confdefs.h.  */
   2816  1.1  skrll _ACEOF
   2817  1.1  skrll cat confdefs.h >>conftest.$ac_ext
   2818  1.1  skrll cat >>conftest.$ac_ext <<_ACEOF
   2819  1.1  skrll /* end confdefs.h.  */
   2820  1.1  skrll #include <ac_nonexistent.h>
   2821  1.1  skrll _ACEOF
   2822  1.1  skrll if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
   2823  1.1  skrll   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
   2824  1.1  skrll   ac_status=$?
   2825  1.1  skrll   grep -v '^ *+' conftest.er1 >conftest.err
   2826  1.1  skrll   rm -f conftest.er1
   2827  1.1  skrll   cat conftest.err >&5
   2828  1.1  skrll   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   2829  1.1  skrll   (exit $ac_status); } >/dev/null; then
   2830  1.1  skrll   if test -s conftest.err; then
   2831  1.1  skrll     ac_cpp_err=$ac_c_preproc_warn_flag
   2832  1.1  skrll     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
   2833  1.1  skrll   else
   2834  1.1  skrll     ac_cpp_err=
   2835  1.1  skrll   fi
   2836  1.1  skrll else
   2837  1.1  skrll   ac_cpp_err=yes
   2838  1.1  skrll fi
   2839  1.1  skrll if test -z "$ac_cpp_err"; then
   2840  1.1  skrll   # Broken: success on invalid input.
   2841  1.1  skrll continue
   2842  1.1  skrll else
   2843  1.1  skrll   echo "$as_me: failed program was:" >&5
   2844  1.1  skrll sed 's/^/| /' conftest.$ac_ext >&5
   2845  1.1  skrll 
   2846  1.1  skrll   # Passes both tests.
   2847  1.1  skrll ac_preproc_ok=:
   2848  1.1  skrll break
   2849  1.1  skrll fi
   2850  1.1  skrll rm -f conftest.err conftest.$ac_ext
   2851  1.1  skrll 
   2852  1.1  skrll done
   2853  1.1  skrll # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
   2854  1.1  skrll rm -f conftest.err conftest.$ac_ext
   2855  1.1  skrll if $ac_preproc_ok; then
   2856  1.1  skrll   break
   2857  1.1  skrll fi
   2858  1.1  skrll 
   2859  1.1  skrll     done
   2860  1.1  skrll     ac_cv_prog_CPP=$CPP
   2861  1.1  skrll 
   2862  1.1  skrll fi
   2863  1.1  skrll   CPP=$ac_cv_prog_CPP
   2864  1.1  skrll else
   2865  1.1  skrll   ac_cv_prog_CPP=$CPP
   2866  1.1  skrll fi
   2867  1.1  skrll echo "$as_me:$LINENO: result: $CPP" >&5
   2868  1.1  skrll echo "${ECHO_T}$CPP" >&6
   2869  1.1  skrll ac_preproc_ok=false
   2870  1.1  skrll for ac_c_preproc_warn_flag in '' yes
   2871  1.1  skrll do
   2872  1.1  skrll   # Use a header file that comes with gcc, so configuring glibc
   2873  1.1  skrll   # with a fresh cross-compiler works.
   2874  1.1  skrll   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   2875  1.1  skrll   # <limits.h> exists even on freestanding compilers.
   2876  1.1  skrll   # On the NeXT, cc -E runs the code through the compiler's parser,
   2877  1.1  skrll   # not just through cpp. "Syntax error" is here to catch this case.
   2878  1.1  skrll   cat >conftest.$ac_ext <<_ACEOF
   2879  1.1  skrll /* confdefs.h.  */
   2880  1.1  skrll _ACEOF
   2881  1.1  skrll cat confdefs.h >>conftest.$ac_ext
   2882  1.1  skrll cat >>conftest.$ac_ext <<_ACEOF
   2883  1.1  skrll /* end confdefs.h.  */
   2884  1.1  skrll #ifdef __STDC__
   2885  1.1  skrll # include <limits.h>
   2886  1.1  skrll #else
   2887  1.1  skrll # include <assert.h>
   2888  1.1  skrll #endif
   2889  1.1  skrll 		     Syntax error
   2890  1.1  skrll _ACEOF
   2891  1.1  skrll if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
   2892  1.1  skrll   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
   2893  1.1  skrll   ac_status=$?
   2894  1.1  skrll   grep -v '^ *+' conftest.er1 >conftest.err
   2895  1.1  skrll   rm -f conftest.er1
   2896  1.1  skrll   cat conftest.err >&5
   2897  1.1  skrll   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   2898  1.1  skrll   (exit $ac_status); } >/dev/null; then
   2899  1.1  skrll   if test -s conftest.err; then
   2900  1.1  skrll     ac_cpp_err=$ac_c_preproc_warn_flag
   2901  1.1  skrll     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
   2902  1.1  skrll   else
   2903  1.1  skrll     ac_cpp_err=
   2904  1.1  skrll   fi
   2905  1.1  skrll else
   2906  1.1  skrll   ac_cpp_err=yes
   2907  1.1  skrll fi
   2908  1.1  skrll if test -z "$ac_cpp_err"; then
   2909  1.1  skrll   :
   2910  1.1  skrll else
   2911  1.1  skrll   echo "$as_me: failed program was:" >&5
   2912  1.1  skrll sed 's/^/| /' conftest.$ac_ext >&5
   2913  1.1  skrll 
   2914  1.1  skrll   # Broken: fails on valid input.
   2915  1.1  skrll continue
   2916  1.1  skrll fi
   2917  1.1  skrll rm -f conftest.err conftest.$ac_ext
   2918  1.1  skrll 
   2919  1.1  skrll   # OK, works on sane cases.  Now check whether non-existent headers
   2920  1.1  skrll   # can be detected and how.
   2921  1.1  skrll   cat >conftest.$ac_ext <<_ACEOF
   2922  1.1  skrll /* confdefs.h.  */
   2923  1.1  skrll _ACEOF
   2924  1.1  skrll cat confdefs.h >>conftest.$ac_ext
   2925  1.1  skrll cat >>conftest.$ac_ext <<_ACEOF
   2926  1.1  skrll /* end confdefs.h.  */
   2927  1.1  skrll #include <ac_nonexistent.h>
   2928  1.1  skrll _ACEOF
   2929  1.1  skrll if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
   2930  1.1  skrll   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
   2931  1.1  skrll   ac_status=$?
   2932  1.1  skrll   grep -v '^ *+' conftest.er1 >conftest.err
   2933  1.1  skrll   rm -f conftest.er1
   2934  1.1  skrll   cat conftest.err >&5
   2935  1.1  skrll   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   2936  1.1  skrll   (exit $ac_status); } >/dev/null; then
   2937  1.1  skrll   if test -s conftest.err; then
   2938  1.1  skrll     ac_cpp_err=$ac_c_preproc_warn_flag
   2939  1.1  skrll     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
   2940  1.1  skrll   else
   2941  1.1  skrll     ac_cpp_err=
   2942  1.1  skrll   fi
   2943  1.1  skrll else
   2944  1.1  skrll   ac_cpp_err=yes
   2945  1.1  skrll fi
   2946  1.1  skrll if test -z "$ac_cpp_err"; then
   2947  1.1  skrll   # Broken: success on invalid input.
   2948  1.1  skrll continue
   2949  1.1  skrll else
   2950  1.1  skrll   echo "$as_me: failed program was:" >&5
   2951  1.1  skrll sed 's/^/| /' conftest.$ac_ext >&5
   2952  1.1  skrll 
   2953  1.1  skrll   # Passes both tests.
   2954  1.1  skrll ac_preproc_ok=:
   2955  1.1  skrll break
   2956  1.1  skrll fi
   2957  1.1  skrll rm -f conftest.err conftest.$ac_ext
   2958  1.1  skrll 
   2959  1.1  skrll done
   2960  1.1  skrll # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
   2961  1.1  skrll rm -f conftest.err conftest.$ac_ext
   2962  1.1  skrll if $ac_preproc_ok; then
   2963  1.1  skrll   :
   2964  1.1  skrll else
   2965  1.1  skrll   { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
   2966  1.1  skrll echo "$as_me: error: in \`$ac_pwd':" >&2;}
   2967  1.1  skrll { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
   2968  1.1  skrll See \`config.log' for more details." >&5
   2969  1.1  skrll echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
   2970  1.1  skrll See \`config.log' for more details." >&2;}
   2971  1.1  skrll    { (exit 1); exit 1; }; }; }
   2972  1.1  skrll fi
   2973  1.1  skrll 
   2974  1.1  skrll ac_ext=c
   2975  1.1  skrll ac_cpp='$CPP $CPPFLAGS'
   2976  1.1  skrll ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   2977  1.1  skrll ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   2978  1.1  skrll ac_compiler_gnu=$ac_cv_c_compiler_gnu
   2979  1.1  skrll 
   2980  1.1  skrll 
   2981  1.1  skrll ac_c_preproc_warn_flag=yes
   2982  1.1  skrll 
   2983  1.1  skrll 
   2984  1.1  skrll ac_libiberty_warn_cflags=
   2985  1.1  skrll save_CFLAGS="$CFLAGS"
   2986  1.1  skrll for option in -W -Wall -Wwrite-strings -Wc++-compat \
   2987  1.1  skrll 			  -Wstrict-prototypes; do
   2988  1.1  skrll   as_acx_Woption=`echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
   2989  1.1  skrll 
   2990  1.1  skrll   echo "$as_me:$LINENO: checking whether $CC supports $option" >&5
   2991  1.1  skrll echo $ECHO_N "checking whether $CC supports $option... $ECHO_C" >&6
   2992  1.1  skrll if eval "test \"\${$as_acx_Woption+set}\" = set"; then
   2993  1.1  skrll   echo $ECHO_N "(cached) $ECHO_C" >&6
   2994  1.1  skrll else
   2995  1.1  skrll   CFLAGS="$option"
   2996  1.1  skrll     cat >conftest.$ac_ext <<_ACEOF
   2997  1.1  skrll /* confdefs.h.  */
   2998  1.1  skrll _ACEOF
   2999  1.1  skrll cat confdefs.h >>conftest.$ac_ext
   3000  1.1  skrll cat >>conftest.$ac_ext <<_ACEOF
   3001  1.1  skrll /* end confdefs.h.  */
   3002  1.1  skrll 
   3003  1.1  skrll int
   3004  1.1  skrll main ()
   3005  1.1  skrll {
   3006  1.1  skrll 
   3007  1.1  skrll   ;
   3008  1.1  skrll   return 0;
   3009  1.1  skrll }
   3010  1.1  skrll _ACEOF
   3011  1.1  skrll rm -f conftest.$ac_objext
   3012  1.1  skrll if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
   3013  1.1  skrll   (eval $ac_compile) 2>conftest.er1
   3014  1.1  skrll   ac_status=$?
   3015  1.1  skrll   grep -v '^ *+' conftest.er1 >conftest.err
   3016  1.1  skrll   rm -f conftest.er1
   3017  1.1  skrll   cat conftest.err >&5
   3018  1.1  skrll   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   3019  1.1  skrll   (exit $ac_status); } &&
   3020  1.1  skrll 	 { ac_try='test -z "$ac_c_werror_flag"
   3021  1.1  skrll 			 || test ! -s conftest.err'
   3022  1.1  skrll   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   3023  1.1  skrll   (eval $ac_try) 2>&5
   3024  1.1  skrll   ac_status=$?
   3025  1.1  skrll   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   3026  1.1  skrll   (exit $ac_status); }; } &&
   3027  1.1  skrll 	 { ac_try='test -s conftest.$ac_objext'
   3028  1.1  skrll   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   3029  1.1  skrll   (eval $ac_try) 2>&5
   3030  1.1  skrll   ac_status=$?
   3031  1.1  skrll   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   3032  1.1  skrll   (exit $ac_status); }; }; then
   3033  1.1  skrll   eval "$as_acx_Woption=yes"
   3034  1.1  skrll else
   3035  1.1  skrll   echo "$as_me: failed program was:" >&5
   3036  1.1  skrll sed 's/^/| /' conftest.$ac_ext >&5
   3037  1.1  skrll 
   3038  1.1  skrll eval "$as_acx_Woption=no"
   3039  1.1  skrll fi
   3040  1.1  skrll rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
   3041  1.1  skrll 
   3042  1.1  skrll fi
   3043  1.1  skrll echo "$as_me:$LINENO: result: `eval echo '${'$as_acx_Woption'}'`" >&5
   3044  1.1  skrll echo "${ECHO_T}`eval echo '${'$as_acx_Woption'}'`" >&6
   3045  1.1  skrll   if test `eval echo '${'$as_acx_Woption'}'` = yes; then
   3046  1.1  skrll   ac_libiberty_warn_cflags="$ac_libiberty_warn_cflags${ac_libiberty_warn_cflags:+ }$option"
   3047  1.1  skrll fi
   3048  1.1  skrll 
   3049  1.1  skrll   done
   3050  1.1  skrll CFLAGS="$save_CFLAGS"
   3051  1.1  skrll 
   3052  1.1  skrll if test "$GCC" = yes; then
   3053  1.1  skrll   echo "$as_me:$LINENO: checking whether $CC supports -pedantic " >&5
   3054  1.1  skrll echo $ECHO_N "checking whether $CC supports -pedantic ... $ECHO_C" >&6
   3055  1.1  skrll if test "${acx_cv_prog_cc_pedantic_+set}" = set; then
   3056  1.1  skrll   echo $ECHO_N "(cached) $ECHO_C" >&6
   3057  1.1  skrll else
   3058  1.1  skrll   save_CFLAGS="$CFLAGS"
   3059  1.1  skrll CFLAGS="-pedantic "
   3060  1.1  skrll cat >conftest.$ac_ext <<_ACEOF
   3061  1.1  skrll /* confdefs.h.  */
   3062  1.1  skrll _ACEOF
   3063  1.1  skrll cat confdefs.h >>conftest.$ac_ext
   3064  1.1  skrll cat >>conftest.$ac_ext <<_ACEOF
   3065  1.1  skrll /* end confdefs.h.  */
   3066  1.1  skrll 
   3067  1.1  skrll int
   3068  1.1  skrll main ()
   3069  1.1  skrll {
   3070  1.1  skrll 
   3071  1.1  skrll   ;
   3072  1.1  skrll   return 0;
   3073  1.1  skrll }
   3074  1.1  skrll _ACEOF
   3075  1.1  skrll rm -f conftest.$ac_objext
   3076  1.1  skrll if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
   3077  1.1  skrll   (eval $ac_compile) 2>conftest.er1
   3078  1.1  skrll   ac_status=$?
   3079  1.1  skrll   grep -v '^ *+' conftest.er1 >conftest.err
   3080  1.1  skrll   rm -f conftest.er1
   3081  1.1  skrll   cat conftest.err >&5
   3082  1.1  skrll   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   3083  1.1  skrll   (exit $ac_status); } &&
   3084  1.1  skrll 	 { ac_try='test -z "$ac_c_werror_flag"
   3085  1.1  skrll 			 || test ! -s conftest.err'
   3086  1.1  skrll   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   3087  1.1  skrll   (eval $ac_try) 2>&5
   3088  1.1  skrll   ac_status=$?
   3089  1.1  skrll   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   3090  1.1  skrll   (exit $ac_status); }; } &&
   3091  1.1  skrll 	 { ac_try='test -s conftest.$ac_objext'
   3092  1.1  skrll   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   3093  1.1  skrll   (eval $ac_try) 2>&5
   3094  1.1  skrll   ac_status=$?
   3095  1.1  skrll   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   3096  1.1  skrll   (exit $ac_status); }; }; then
   3097  1.1  skrll   acx_cv_prog_cc_pedantic_=yes
   3098  1.1  skrll else
   3099  1.1  skrll   echo "$as_me: failed program was:" >&5
   3100  1.1  skrll sed 's/^/| /' conftest.$ac_ext >&5
   3101  1.1  skrll 
   3102  1.1  skrll acx_cv_prog_cc_pedantic_=no
   3103  1.1  skrll fi
   3104  1.1  skrll rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
   3105  1.1  skrll CFLAGS="$save_CFLAGS"
   3106  1.1  skrll fi
   3107  1.1  skrll echo "$as_me:$LINENO: result: $acx_cv_prog_cc_pedantic_" >&5
   3108  1.1  skrll echo "${ECHO_T}$acx_cv_prog_cc_pedantic_" >&6
   3109  1.1  skrll if test $acx_cv_prog_cc_pedantic_ = yes; then
   3110  1.1  skrll   ac_libiberty_warn_cflags="$ac_libiberty_warn_cflags${ac_libiberty_warn_cflags:+ }-pedantic "
   3111  1.1  skrll fi
   3112  1.1  skrll 
   3113  1.1  skrll 
   3114  1.1  skrll fi
   3115  1.1  skrll 
   3116  1.1  skrll 
   3117  1.1  skrll 
   3118  1.1  skrll if test "x$CC" != xcc; then
   3119  1.1  skrll   echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
   3120  1.1  skrll echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
   3121  1.1  skrll else
   3122  1.1  skrll   echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
   3123  1.1  skrll echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
   3124  1.1  skrll fi
   3125  1.1  skrll set dummy $CC; ac_cc=`echo $2 |
   3126  1.1  skrll 		      sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
   3127  1.1  skrll if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
   3128  1.1  skrll   echo $ECHO_N "(cached) $ECHO_C" >&6
   3129  1.1  skrll else
   3130  1.1  skrll   cat >conftest.$ac_ext <<_ACEOF
   3131  1.1  skrll /* confdefs.h.  */
   3132  1.1  skrll _ACEOF
   3133  1.1  skrll cat confdefs.h >>conftest.$ac_ext
   3134  1.1  skrll cat >>conftest.$ac_ext <<_ACEOF
   3135  1.1  skrll /* end confdefs.h.  */
   3136  1.1  skrll 
   3137  1.1  skrll int
   3138  1.1  skrll main ()
   3139  1.1  skrll {
   3140  1.1  skrll 
   3141  1.1  skrll   ;
   3142  1.1  skrll   return 0;
   3143  1.1  skrll }
   3144  1.1  skrll _ACEOF
   3145  1.1  skrll # Make sure it works both with $CC and with simple cc.
   3146  1.1  skrll # We do the test twice because some compilers refuse to overwrite an
   3147  1.1  skrll # existing .o file with -o, though they will create one.
   3148  1.1  skrll ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
   3149  1.1  skrll if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   3150  1.1  skrll   (eval $ac_try) 2>&5
   3151  1.1  skrll   ac_status=$?
   3152  1.1  skrll   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   3153  1.1  skrll   (exit $ac_status); } &&
   3154  1.1  skrll    test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   3155  1.1  skrll   (eval $ac_try) 2>&5
   3156  1.1  skrll   ac_status=$?
   3157  1.1  skrll   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   3158  1.1  skrll   (exit $ac_status); };
   3159  1.1  skrll then
   3160  1.1  skrll   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
   3161  1.1  skrll   if test "x$CC" != xcc; then
   3162  1.1  skrll     # Test first that cc exists at all.
   3163  1.1  skrll     if { ac_try='cc -c conftest.$ac_ext >&5'
   3164  1.1  skrll   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   3165  1.1  skrll   (eval $ac_try) 2>&5
   3166  1.1  skrll   ac_status=$?
   3167  1.1  skrll   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   3168  1.1  skrll   (exit $ac_status); }; }; then
   3169  1.1  skrll       ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
   3170  1.1  skrll       if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   3171  1.1  skrll   (eval $ac_try) 2>&5
   3172  1.1  skrll   ac_status=$?
   3173  1.1  skrll   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   3174  1.1  skrll   (exit $ac_status); } &&
   3175  1.1  skrll 	 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   3176  1.1  skrll   (eval $ac_try) 2>&5
   3177  1.1  skrll   ac_status=$?
   3178  1.1  skrll   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   3179  1.1  skrll   (exit $ac_status); };
   3180  1.1  skrll       then
   3181  1.1  skrll 	# cc works too.
   3182  1.1  skrll 	:
   3183  1.1  skrll       else
   3184  1.1  skrll 	# cc exists but doesn't like -o.
   3185  1.1  skrll 	eval ac_cv_prog_cc_${ac_cc}_c_o=no
   3186  1.1  skrll       fi
   3187  1.1  skrll     fi
   3188  1.1  skrll   fi
   3189  1.1  skrll else
   3190  1.1  skrll   eval ac_cv_prog_cc_${ac_cc}_c_o=no
   3191  1.1  skrll fi
   3192  1.1  skrll rm -f conftest*
   3193  1.1  skrll 
   3194  1.1  skrll fi
   3195  1.1  skrll if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
   3196  1.1  skrll   echo "$as_me:$LINENO: result: yes" >&5
   3197  1.1  skrll echo "${ECHO_T}yes" >&6
   3198  1.1  skrll else
   3199  1.1  skrll   echo "$as_me:$LINENO: result: no" >&5
   3200  1.1  skrll echo "${ECHO_T}no" >&6
   3201  1.1  skrll 
   3202  1.1  skrll cat >>confdefs.h <<\_ACEOF
   3203  1.1  skrll #define NO_MINUS_C_MINUS_O 1
   3204  1.1  skrll _ACEOF
   3205  1.1  skrll 
   3206  1.1  skrll fi
   3207  1.1  skrll 
   3208  1.1  skrll # autoconf is lame and doesn't give us any substitution variable for this.
   3209  1.1  skrll if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
   3210  1.1  skrll   NO_MINUS_C_MINUS_O=yes
   3211  1.1  skrll else
   3212  1.1  skrll   OUTPUT_OPTION='-o $@'
   3213  1.1  skrll fi
   3214  1.1  skrll 
   3215  1.1  skrll 
   3216  1.1  skrll 
   3217  1.1  skrll echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
   3218  1.1  skrll echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
   3219  1.1  skrll if test "${ac_cv_c_const+set}" = set; then
   3220  1.1  skrll   echo $ECHO_N "(cached) $ECHO_C" >&6
   3221  1.1  skrll else
   3222  1.1  skrll   cat >conftest.$ac_ext <<_ACEOF
   3223  1.1  skrll /* confdefs.h.  */
   3224  1.1  skrll _ACEOF
   3225  1.1  skrll cat confdefs.h >>conftest.$ac_ext
   3226  1.1  skrll cat >>conftest.$ac_ext <<_ACEOF
   3227  1.1  skrll /* end confdefs.h.  */
   3228  1.1  skrll 
   3229  1.1  skrll int
   3230  1.1  skrll main ()
   3231  1.1  skrll {
   3232  1.1  skrll /* FIXME: Include the comments suggested by Paul. */
   3233  1.1  skrll #ifndef __cplusplus
   3234  1.1  skrll   /* Ultrix mips cc rejects this.  */
   3235  1.1  skrll   typedef int charset[2];
   3236  1.1  skrll   const charset x;
   3237  1.1  skrll   /* SunOS 4.1.1 cc rejects this.  */
   3238  1.1  skrll   char const *const *ccp;
   3239  1.1  skrll   char **p;
   3240  1.1  skrll   /* NEC SVR4.0.2 mips cc rejects this.  */
   3241  1.1  skrll   struct point {int x, y;};
   3242  1.1  skrll   static struct point const zero = {0,0};
   3243  1.1  skrll   /* AIX XL C 1.02.0.0 rejects this.
   3244  1.1  skrll      It does not let you subtract one const X* pointer from another in
   3245  1.1  skrll      an arm of an if-expression whose if-part is not a constant
   3246  1.1  skrll      expression */
   3247  1.1  skrll   const char *g = "string";
   3248  1.1  skrll   ccp = &g + (g ? g-g : 0);
   3249  1.1  skrll   /* HPUX 7.0 cc rejects these. */
   3250  1.1  skrll   ++ccp;
   3251  1.1  skrll   p = (char**) ccp;
   3252  1.1  skrll   ccp = (char const *const *) p;
   3253  1.1  skrll   { /* SCO 3.2v4 cc rejects this.  */
   3254  1.1  skrll     char *t;
   3255  1.1  skrll     char const *s = 0 ? (char *) 0 : (char const *) 0;
   3256  1.1  skrll 
   3257  1.1  skrll     *t++ = 0;
   3258  1.1  skrll   }
   3259  1.1  skrll   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
   3260  1.1  skrll     int x[] = {25, 17};
   3261  1.1  skrll     const int *foo = &x[0];
   3262  1.1  skrll     ++foo;
   3263  1.1  skrll   }
   3264  1.1  skrll   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
   3265  1.1  skrll     typedef const int *iptr;
   3266  1.1  skrll     iptr p = 0;
   3267  1.1  skrll     ++p;
   3268  1.1  skrll   }
   3269  1.1  skrll   { /* AIX XL C 1.02.0.0 rejects this saying
   3270  1.1  skrll        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
   3271  1.1  skrll     struct s { int j; const int *ap[3]; };
   3272  1.1  skrll     struct s *b; b->j = 5;
   3273  1.1  skrll   }
   3274  1.1  skrll   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
   3275  1.1  skrll     const int foo = 10;
   3276  1.1  skrll   }
   3277  1.1  skrll #endif
   3278  1.1  skrll 
   3279  1.1  skrll   ;
   3280  1.1  skrll   return 0;
   3281  1.1  skrll }
   3282  1.1  skrll _ACEOF
   3283  1.1  skrll rm -f conftest.$ac_objext
   3284  1.1  skrll if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
   3285  1.1  skrll   (eval $ac_compile) 2>conftest.er1
   3286  1.1  skrll   ac_status=$?
   3287  1.1  skrll   grep -v '^ *+' conftest.er1 >conftest.err
   3288  1.1  skrll   rm -f conftest.er1
   3289  1.1  skrll   cat conftest.err >&5
   3290  1.1  skrll   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   3291  1.1  skrll   (exit $ac_status); } &&
   3292  1.1  skrll 	 { ac_try='test -z "$ac_c_werror_flag"
   3293  1.1  skrll 			 || test ! -s conftest.err'
   3294  1.1  skrll   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   3295  1.1  skrll   (eval $ac_try) 2>&5
   3296  1.1  skrll   ac_status=$?
   3297  1.1  skrll   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   3298  1.1  skrll   (exit $ac_status); }; } &&
   3299  1.1  skrll 	 { ac_try='test -s conftest.$ac_objext'
   3300  1.1  skrll   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   3301  1.1  skrll   (eval $ac_try) 2>&5
   3302  1.1  skrll   ac_status=$?
   3303  1.1  skrll   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   3304  1.1  skrll   (exit $ac_status); }; }; then
   3305  1.1  skrll   ac_cv_c_const=yes
   3306  1.1  skrll else
   3307  1.1  skrll   echo "$as_me: failed program was:" >&5
   3308  1.1  skrll sed 's/^/| /' conftest.$ac_ext >&5
   3309  1.1  skrll 
   3310  1.1  skrll ac_cv_c_const=no
   3311  1.1  skrll fi
   3312  1.1  skrll rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
   3313  1.1  skrll fi
   3314  1.1  skrll echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
   3315  1.1  skrll echo "${ECHO_T}$ac_cv_c_const" >&6
   3316  1.1  skrll if test $ac_cv_c_const = no; then
   3317  1.1  skrll 
   3318  1.1  skrll cat >>confdefs.h <<\_ACEOF
   3319  1.1  skrll #define const
   3320  1.1  skrll _ACEOF
   3321  1.1  skrll 
   3322  1.1  skrll fi
   3323  1.1  skrll 
   3324  1.1  skrll echo "$as_me:$LINENO: checking for inline" >&5
   3325  1.1  skrll echo $ECHO_N "checking for inline... $ECHO_C" >&6
   3326  1.1  skrll if test "${ac_cv_c_inline+set}" = set; then
   3327  1.1  skrll   echo $ECHO_N "(cached) $ECHO_C" >&6
   3328  1.1  skrll else
   3329  1.1  skrll   ac_cv_c_inline=no
   3330  1.1  skrll for ac_kw in inline __inline__ __inline; do
   3331  1.1  skrll   cat >conftest.$ac_ext <<_ACEOF
   3332  1.1  skrll /* confdefs.h.  */
   3333  1.1  skrll _ACEOF
   3334  1.1  skrll cat confdefs.h >>conftest.$ac_ext
   3335  1.1  skrll cat >>conftest.$ac_ext <<_ACEOF
   3336  1.1  skrll /* end confdefs.h.  */
   3337  1.1  skrll #ifndef __cplusplus
   3338  1.1  skrll typedef int foo_t;
   3339  1.1  skrll static $ac_kw foo_t static_foo () {return 0; }
   3340  1.1  skrll $ac_kw foo_t foo () {return 0; }
   3341  1.1  skrll #endif
   3342  1.1  skrll 
   3343  1.1  skrll _ACEOF
   3344  1.1  skrll rm -f conftest.$ac_objext
   3345  1.1  skrll if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
   3346  1.1  skrll   (eval $ac_compile) 2>conftest.er1
   3347  1.1  skrll   ac_status=$?
   3348  1.1  skrll   grep -v '^ *+' conftest.er1 >conftest.err
   3349  1.1  skrll   rm -f conftest.er1
   3350  1.1  skrll   cat conftest.err >&5
   3351  1.1  skrll   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   3352  1.1  skrll   (exit $ac_status); } &&
   3353  1.1  skrll 	 { ac_try='test -z "$ac_c_werror_flag"
   3354  1.1  skrll 			 || test ! -s conftest.err'
   3355  1.1  skrll   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   3356  1.1  skrll   (eval $ac_try) 2>&5
   3357  1.1  skrll   ac_status=$?
   3358  1.1  skrll   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   3359  1.1  skrll   (exit $ac_status); }; } &&
   3360  1.1  skrll 	 { ac_try='test -s conftest.$ac_objext'
   3361  1.1  skrll   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   3362  1.1  skrll   (eval $ac_try) 2>&5
   3363  1.1  skrll   ac_status=$?
   3364  1.1  skrll   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   3365  1.1  skrll   (exit $ac_status); }; }; then
   3366  1.1  skrll   ac_cv_c_inline=$ac_kw; break
   3367  1.1  skrll else
   3368  1.1  skrll   echo "$as_me: failed program was:" >&5
   3369  1.1  skrll sed 's/^/| /' conftest.$ac_ext >&5
   3370  1.1  skrll 
   3371  1.1  skrll fi
   3372  1.1  skrll rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
   3373  1.1  skrll done
   3374  1.1  skrll 
   3375  1.1  skrll fi
   3376  1.1  skrll echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
   3377  1.1  skrll echo "${ECHO_T}$ac_cv_c_inline" >&6
   3378  1.1  skrll 
   3379  1.1  skrll 
   3380  1.1  skrll case $ac_cv_c_inline in
   3381  1.1  skrll   inline | yes) ;;
   3382  1.1  skrll   *)
   3383  1.1  skrll     case $ac_cv_c_inline in
   3384  1.1  skrll       no) ac_val=;;
   3385  1.1  skrll       *) ac_val=$ac_cv_c_inline;;
   3386  1.1  skrll     esac
   3387  1.1  skrll     cat >>confdefs.h <<_ACEOF
   3388  1.1  skrll #ifndef __cplusplus
   3389  1.1  skrll #define inline $ac_val
   3390  1.1  skrll #endif
   3391  1.1  skrll _ACEOF
   3392  1.1  skrll     ;;
   3393  1.1  skrll esac
   3394  1.1  skrll 
   3395  1.1  skrll echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
   3396  1.1  skrll echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
   3397  1.1  skrll if test "${ac_cv_c_bigendian+set}" = set; then
   3398  1.1  skrll   echo $ECHO_N "(cached) $ECHO_C" >&6
   3399  1.1  skrll else
   3400  1.1  skrll   # See if sys/param.h defines the BYTE_ORDER macro.
   3401  1.1  skrll cat >conftest.$ac_ext <<_ACEOF
   3402  1.1  skrll /* confdefs.h.  */
   3403  1.1  skrll _ACEOF
   3404  1.1  skrll cat confdefs.h >>conftest.$ac_ext
   3405  1.1  skrll cat >>conftest.$ac_ext <<_ACEOF
   3406  1.1  skrll /* end confdefs.h.  */
   3407  1.1  skrll #include <sys/types.h>
   3408  1.1  skrll #include <sys/param.h>
   3409  1.1  skrll 
   3410  1.1  skrll int
   3411  1.1  skrll main ()
   3412  1.1  skrll {
   3413  1.1  skrll #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
   3414  1.1  skrll  bogus endian macros
   3415  1.1  skrll #endif
   3416  1.1  skrll 
   3417  1.1  skrll   ;
   3418  1.1  skrll   return 0;
   3419  1.1  skrll }
   3420  1.1  skrll _ACEOF
   3421  1.1  skrll rm -f conftest.$ac_objext
   3422  1.1  skrll if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
   3423  1.1  skrll   (eval $ac_compile) 2>conftest.er1
   3424  1.1  skrll   ac_status=$?
   3425  1.1  skrll   grep -v '^ *+' conftest.er1 >conftest.err
   3426  1.1  skrll   rm -f conftest.er1
   3427  1.1  skrll   cat conftest.err >&5
   3428  1.1  skrll   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   3429  1.1  skrll   (exit $ac_status); } &&
   3430  1.1  skrll 	 { ac_try='test -z "$ac_c_werror_flag"
   3431  1.1  skrll 			 || test ! -s conftest.err'
   3432  1.1  skrll   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   3433  1.1  skrll   (eval $ac_try) 2>&5
   3434  1.1  skrll   ac_status=$?
   3435  1.1  skrll   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   3436  1.1  skrll   (exit $ac_status); }; } &&
   3437  1.1  skrll 	 { ac_try='test -s conftest.$ac_objext'
   3438  1.1  skrll   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   3439  1.1  skrll   (eval $ac_try) 2>&5
   3440  1.1  skrll   ac_status=$?
   3441  1.1  skrll   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   3442  1.1  skrll   (exit $ac_status); }; }; then
   3443  1.1  skrll   # It does; now see whether it defined to BIG_ENDIAN or not.
   3444  1.1  skrll cat >conftest.$ac_ext <<_ACEOF
   3445  1.1  skrll /* confdefs.h.  */
   3446  1.1  skrll _ACEOF
   3447  1.1  skrll cat confdefs.h >>conftest.$ac_ext
   3448  1.1  skrll cat >>conftest.$ac_ext <<_ACEOF
   3449  1.1  skrll /* end confdefs.h.  */
   3450  1.1  skrll #include <sys/types.h>
   3451  1.1  skrll #include <sys/param.h>
   3452  1.1  skrll 
   3453  1.1  skrll int
   3454  1.1  skrll main ()
   3455  1.1  skrll {
   3456  1.1  skrll #if BYTE_ORDER != BIG_ENDIAN
   3457  1.1  skrll  not big endian
   3458  1.1  skrll #endif
   3459  1.1  skrll 
   3460  1.1  skrll   ;
   3461  1.1  skrll   return 0;
   3462  1.1  skrll }
   3463  1.1  skrll _ACEOF
   3464  1.1  skrll rm -f conftest.$ac_objext
   3465  1.1  skrll if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
   3466  1.1  skrll   (eval $ac_compile) 2>conftest.er1
   3467  1.1  skrll   ac_status=$?
   3468  1.1  skrll   grep -v '^ *+' conftest.er1 >conftest.err
   3469  1.1  skrll   rm -f conftest.er1
   3470  1.1  skrll   cat conftest.err >&5
   3471  1.1  skrll   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   3472  1.1  skrll   (exit $ac_status); } &&
   3473  1.1  skrll 	 { ac_try='test -z "$ac_c_werror_flag"
   3474  1.1  skrll 			 || test ! -s conftest.err'
   3475  1.1  skrll   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   3476  1.1  skrll   (eval $ac_try) 2>&5
   3477  1.1  skrll   ac_status=$?
   3478  1.1  skrll   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   3479  1.1  skrll   (exit $ac_status); }; } &&
   3480  1.1  skrll 	 { ac_try='test -s conftest.$ac_objext'
   3481  1.1  skrll   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   3482  1.1  skrll   (eval $ac_try) 2>&5
   3483  1.1  skrll   ac_status=$?
   3484  1.1  skrll   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   3485  1.1  skrll   (exit $ac_status); }; }; then
   3486  1.1  skrll   ac_cv_c_bigendian=yes
   3487  1.1  skrll else
   3488  1.1  skrll   echo "$as_me: failed program was:" >&5
   3489  1.1  skrll sed 's/^/| /' conftest.$ac_ext >&5
   3490  1.1  skrll 
   3491  1.1  skrll ac_cv_c_bigendian=no
   3492  1.1  skrll fi
   3493  1.1  skrll rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
   3494  1.1  skrll else
   3495  1.1  skrll   echo "$as_me: failed program was:" >&5
   3496  1.1  skrll sed 's/^/| /' conftest.$ac_ext >&5
   3497  1.1  skrll 
   3498  1.1  skrll # It does not; compile a test program.
   3499  1.1  skrll if test "$cross_compiling" = yes; then
   3500  1.1  skrll   # try to guess the endianness by grepping values into an object file
   3501  1.1  skrll   ac_cv_c_bigendian=unknown
   3502  1.1  skrll   cat >conftest.$ac_ext <<_ACEOF
   3503  1.1  skrll /* confdefs.h.  */
   3504  1.1  skrll _ACEOF
   3505  1.1  skrll cat confdefs.h >>conftest.$ac_ext
   3506  1.1  skrll cat >>conftest.$ac_ext <<_ACEOF
   3507  1.1  skrll /* end confdefs.h.  */
   3508  1.1  skrll short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
   3509  1.1  skrll short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
   3510  1.1  skrll void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
   3511  1.1  skrll short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
   3512  1.1  skrll short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
   3513  1.1  skrll void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
   3514  1.1  skrll int
   3515  1.1  skrll main ()
   3516  1.1  skrll {
   3517  1.1  skrll  _ascii (); _ebcdic ();
   3518  1.1  skrll   ;
   3519  1.1  skrll   return 0;
   3520  1.1  skrll }
   3521  1.1  skrll _ACEOF
   3522  1.1  skrll rm -f conftest.$ac_objext
   3523  1.1  skrll if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
   3524  1.1  skrll   (eval $ac_compile) 2>conftest.er1
   3525  1.1  skrll   ac_status=$?
   3526  1.1  skrll   grep -v '^ *+' conftest.er1 >conftest.err
   3527  1.1  skrll   rm -f conftest.er1
   3528  1.1  skrll   cat conftest.err >&5
   3529  1.1  skrll   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   3530  1.1  skrll   (exit $ac_status); } &&
   3531  1.1  skrll 	 { ac_try='test -z "$ac_c_werror_flag"
   3532  1.1  skrll 			 || test ! -s conftest.err'
   3533  1.1  skrll   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   3534  1.1  skrll   (eval $ac_try) 2>&5
   3535  1.1  skrll   ac_status=$?
   3536  1.1  skrll   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   3537  1.1  skrll   (exit $ac_status); }; } &&
   3538  1.1  skrll 	 { ac_try='test -s conftest.$ac_objext'
   3539  1.1  skrll   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   3540  1.1  skrll   (eval $ac_try) 2>&5
   3541  1.1  skrll   ac_status=$?
   3542  1.1  skrll   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   3543  1.1  skrll   (exit $ac_status); }; }; then
   3544  1.1  skrll   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
   3545  1.1  skrll   ac_cv_c_bigendian=yes
   3546  1.1  skrll fi
   3547  1.1  skrll if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
   3548  1.1  skrll   if test "$ac_cv_c_bigendian" = unknown; then
   3549  1.1  skrll     ac_cv_c_bigendian=no
   3550  1.1  skrll   else
   3551  1.1  skrll     # finding both strings is unlikely to happen, but who knows?
   3552  1.1  skrll     ac_cv_c_bigendian=unknown
   3553  1.1  skrll   fi
   3554  1.1  skrll fi
   3555  1.1  skrll else
   3556  1.1  skrll   echo "$as_me: failed program was:" >&5
   3557  1.1  skrll sed 's/^/| /' conftest.$ac_ext >&5
   3558  1.1  skrll 
   3559  1.1  skrll fi
   3560  1.1  skrll rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
   3561  1.1  skrll else
   3562  1.1  skrll   cat >conftest.$ac_ext <<_ACEOF
   3563  1.1  skrll /* confdefs.h.  */
   3564  1.1  skrll _ACEOF
   3565  1.1  skrll cat confdefs.h >>conftest.$ac_ext
   3566  1.1  skrll cat >>conftest.$ac_ext <<_ACEOF
   3567  1.1  skrll /* end confdefs.h.  */
   3568  1.1  skrll int
   3569  1.1  skrll main ()
   3570  1.1  skrll {
   3571  1.1  skrll   /* Are we little or big endian?  From Harbison&Steele.  */
   3572  1.1  skrll   union
   3573  1.1  skrll   {
   3574  1.1  skrll     long l;
   3575  1.1  skrll     char c[sizeof (long)];
   3576  1.1  skrll   } u;
   3577  1.1  skrll   u.l = 1;
   3578  1.1  skrll   exit (u.c[sizeof (long) - 1] == 1);
   3579  1.1  skrll }
   3580  1.1  skrll _ACEOF
   3581  1.1  skrll rm -f conftest$ac_exeext
   3582  1.1  skrll if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
   3583  1.1  skrll   (eval $ac_link) 2>&5
   3584  1.1  skrll   ac_status=$?
   3585  1.1  skrll   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   3586  1.1  skrll   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
   3587  1.1  skrll   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   3588  1.1  skrll   (eval $ac_try) 2>&5
   3589  1.1  skrll   ac_status=$?
   3590  1.1  skrll   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   3591  1.1  skrll   (exit $ac_status); }; }; then
   3592  1.1  skrll   ac_cv_c_bigendian=no
   3593  1.1  skrll else
   3594  1.1  skrll   echo "$as_me: program exited with status $ac_status" >&5
   3595  1.1  skrll echo "$as_me: failed program was:" >&5
   3596  1.1  skrll sed 's/^/| /' conftest.$ac_ext >&5
   3597  1.1  skrll 
   3598  1.1  skrll ( exit $ac_status )
   3599  1.1  skrll ac_cv_c_bigendian=yes
   3600  1.1  skrll fi
   3601  1.1  skrll rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
   3602  1.1  skrll fi
   3603  1.1  skrll fi
   3604  1.1  skrll rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
   3605  1.1  skrll fi
   3606  1.1  skrll echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
   3607  1.1  skrll echo "${ECHO_T}$ac_cv_c_bigendian" >&6
   3608  1.1  skrll case $ac_cv_c_bigendian in
   3609  1.1  skrll   yes)
   3610  1.1  skrll 
   3611  1.1  skrll cat >>confdefs.h <<\_ACEOF
   3612  1.1  skrll #define WORDS_BIGENDIAN 1
   3613  1.1  skrll _ACEOF
   3614  1.1  skrll  ;;
   3615  1.1  skrll   no)
   3616  1.1  skrll      ;;
   3617  1.1  skrll   *)
   3618  1.1  skrll     { { echo "$as_me:$LINENO: error: unknown endianness
   3619  1.1  skrll presetting ac_cv_c_bigendian=no (or yes) will help" >&5
   3620  1.1  skrll echo "$as_me: error: unknown endianness
   3621  1.1  skrll presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
   3622  1.1  skrll    { (exit 1); exit 1; }; } ;;
   3623  1.1  skrll esac
   3624  1.1  skrll 
   3625  1.1  skrll 
   3626  1.1  skrll 
   3627  1.1  skrll 
   3628  1.1  skrll           ac_config_headers="$ac_config_headers config.h:config.in"
   3629  1.1  skrll 
   3630  1.1  skrll 
   3631  1.1  skrll 
   3632  1.1  skrll # Find a good install program.  We prefer a C program (faster),
   3633  1.1  skrll # so one script is as good as another.  But avoid the broken or
   3634  1.1  skrll # incompatible versions:
   3635  1.1  skrll # SysV /etc/install, /usr/sbin/install
   3636  1.1  skrll # SunOS /usr/etc/install
   3637  1.1  skrll # IRIX /sbin/install
   3638  1.1  skrll # AIX /bin/install
   3639  1.1  skrll # AmigaOS /C/install, which installs bootblocks on floppy discs
   3640  1.1  skrll # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
   3641  1.1  skrll # AFS /usr/afsws/bin/install, which mishandles nonexistent args
   3642  1.1  skrll # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
   3643  1.1  skrll # OS/2's system install, which has a completely different semantic
   3644  1.1  skrll # ./install, which can be erroneously created by make from ./install.sh.
   3645  1.1  skrll echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
   3646  1.1  skrll echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
   3647  1.1  skrll if test -z "$INSTALL"; then
   3648  1.1  skrll if test "${ac_cv_path_install+set}" = set; then
   3649  1.1  skrll   echo $ECHO_N "(cached) $ECHO_C" >&6
   3650  1.1  skrll else
   3651  1.1  skrll   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   3652  1.1  skrll for as_dir in $PATH
   3653  1.1  skrll do
   3654  1.1  skrll   IFS=$as_save_IFS
   3655  1.1  skrll   test -z "$as_dir" && as_dir=.
   3656  1.1  skrll   # Account for people who put trailing slashes in PATH elements.
   3657  1.1  skrll case $as_dir/ in
   3658  1.1  skrll   ./ | .// | /cC/* | \
   3659  1.1  skrll   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
   3660  1.1  skrll   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
   3661  1.1  skrll   /usr/ucb/* ) ;;
   3662  1.1  skrll   *)
   3663  1.1  skrll     # OSF1 and SCO ODT 3.0 have their own names for install.
   3664  1.1  skrll     # Don't use installbsd from OSF since it installs stuff as root
   3665  1.1  skrll     # by default.
   3666  1.1  skrll     for ac_prog in ginstall scoinst install; do
   3667  1.1  skrll       for ac_exec_ext in '' $ac_executable_extensions; do
   3668  1.1  skrll 	if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
   3669  1.1  skrll 	  if test $ac_prog = install &&
   3670  1.1  skrll 	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
   3671  1.1  skrll 	    # AIX install.  It has an incompatible calling convention.
   3672  1.1  skrll 	    :
   3673  1.1  skrll 	  elif test $ac_prog = install &&
   3674  1.1  skrll 	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
   3675  1.1  skrll 	    # program-specific install script used by HP pwplus--don't use.
   3676  1.1  skrll 	    :
   3677  1.1  skrll 	  else
   3678  1.1  skrll 	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
   3679  1.1  skrll 	    break 3
   3680  1.1  skrll 	  fi
   3681  1.1  skrll 	fi
   3682  1.1  skrll       done
   3683  1.1  skrll     done
   3684  1.1  skrll     ;;
   3685  1.1  skrll esac
   3686  1.1  skrll done
   3687  1.1  skrll 
   3688  1.1  skrll 
   3689  1.1  skrll fi
   3690  1.1  skrll   if test "${ac_cv_path_install+set}" = set; then
   3691  1.1  skrll     INSTALL=$ac_cv_path_install
   3692  1.1  skrll   else
   3693  1.1  skrll     # As a last resort, use the slow shell script.  We don't cache a
   3694  1.1  skrll     # path for INSTALL within a source directory, because that will
   3695  1.1  skrll     # break other packages using the cache if that directory is
   3696  1.1  skrll     # removed, or if the path is relative.
   3697  1.1  skrll     INSTALL=$ac_install_sh
   3698  1.1  skrll   fi
   3699  1.1  skrll fi
   3700  1.1  skrll echo "$as_me:$LINENO: result: $INSTALL" >&5
   3701  1.1  skrll echo "${ECHO_T}$INSTALL" >&6
   3702  1.1  skrll 
   3703  1.1  skrll # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
   3704  1.1  skrll # It thinks the first close brace ends the variable substitution.
   3705  1.1  skrll test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
   3706  1.1  skrll 
   3707  1.1  skrll test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
   3708  1.1  skrll 
   3709  1.1  skrll test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
   3710  1.1  skrll 
   3711  1.1  skrll 
   3712  1.1  skrll # Don't build the shared library for build.
   3713  1.1  skrll if [ -n "${with_build_subdir}" ]; then
   3714  1.1  skrll   enable_shared=no
   3715  1.1  skrll fi
   3716  1.1  skrll 
   3717  1.1  skrll frag=
   3718  1.1  skrll case "${host}" in
   3719  1.1  skrll   rs6000-ibm-aix3.1 | rs6000-ibm-aix)
   3720  1.1  skrll                         frag=mh-aix ;;
   3721  1.1  skrll   *-*-cxux7*)		frag=mh-cxux7 ;;
   3722  1.1  skrll   *-*-freebsd2.1.*)	frag=mh-fbsd21 ;;
   3723  1.1  skrll   *-*-freebsd2.2.[012])	frag=mh-fbsd21 ;;
   3724  1.1  skrll   i370-*-opened*)       frag=mh-openedition ;;
   3725  1.1  skrll   i[34567]86-*-windows*)	frag=mh-windows ;;
   3726  1.1  skrll esac
   3727  1.1  skrll 
   3728  1.1  skrll if [ -n "${frag}" ]; then
   3729  1.1  skrll   frag=${libiberty_topdir}/libiberty/config/$frag
   3730  1.1  skrll fi
   3731  1.1  skrll 
   3732  1.1  skrll # If they didn't specify --enable-shared, don't generate shared libs.
   3733  1.1  skrll case "${enable_shared}" in
   3734  1.1  skrll   yes) shared=yes ;;
   3735  1.1  skrll   no) shared=no ;;
   3736  1.1  skrll   "") shared=no ;;
   3737  1.1  skrll   *) shared=yes ;;
   3738  1.1  skrll esac
   3739  1.1  skrll if [ "${shared}" = "yes" ]; then
   3740  1.1  skrll   case "${host}" in
   3741  1.1  skrll     *-*-cygwin*)	;;
   3742  1.1  skrll     alpha*-*-linux*)	PICFLAG=-fPIC ;;
   3743  1.1  skrll     arm*-*-*)		PICFLAG=-fPIC ;;
   3744  1.1  skrll     hppa*-*-*)		PICFLAG=-fPIC ;;
   3745  1.1  skrll     i370-*-*)		PICFLAG=-fPIC ;;
   3746  1.1  skrll     ia64-*-*)		PICFLAG=-fpic ;;
   3747  1.1  skrll     i[34567]86-*-* | x86_64-*-*)
   3748  1.1  skrll 			PICFLAG=-fpic ;;
   3749  1.1  skrll     m68k-*-*)		PICFLAG=-fpic ;;
   3750  1.1  skrll     mips*-*-linux)	PICFLAG=-fPIC ;;
   3751  1.1  skrll     powerpc*-*-aix*)	;;
   3752  1.1  skrll     powerpc*-*-*)	PICFLAG=-fPIC ;;
   3753  1.1  skrll     sparc*-*-*)		case "${CFLAGS}" in
   3754  1.1  skrll 			  *-fpic* ) PICFLAG=-fpic ;;
   3755  1.1  skrll 			  * ) PICFLAG=-fPIC ;;
   3756  1.1  skrll 			esac ;;
   3757  1.1  skrll     s390*-*-*)		PICFLAG=-fpic ;;
   3758  1.1  skrll   esac
   3759  1.1  skrll fi
   3760  1.1  skrll 
   3761  1.1  skrll 
   3762  1.1  skrll echo "# Warning: this fragment is automatically generated" > temp-frag
   3763  1.1  skrll 
   3764  1.1  skrll if [ -n "${frag}" ] && [ -f "${frag}" ]; then
   3765  1.1  skrll   echo "Appending ${frag} to xhost-mkfrag"
   3766  1.1  skrll   echo "# Following fragment copied from ${frag}" >> temp-frag
   3767  1.1  skrll   cat ${frag} >> temp-frag
   3768  1.1  skrll fi
   3769  1.1  skrll 
   3770  1.1  skrll # record if we want to build shared libs.
   3771  1.1  skrll if [ "${shared}" = "yes" ]; then
   3772  1.1  skrll   echo enable_shared = yes >> temp-frag
   3773  1.1  skrll else
   3774  1.1  skrll   echo enable_shared = no >> temp-frag
   3775  1.1  skrll fi
   3776  1.1  skrll 
   3777  1.1  skrll frag=xhost-mkfrag
   3778  1.1  skrll ${CONFIG_SHELL-/bin/sh} ${libiberty_topdir}/move-if-change temp-frag xhost-mkfrag
   3779  1.1  skrll 
   3780  1.1  skrll host_makefile_frag=${frag}
   3781  1.1  skrll 
   3782  1.1  skrll 
   3783  1.1  skrll # It's OK to check for header files.  Although the compiler may not be
   3784  1.1  skrll # able to link anything, it had better be able to at least compile
   3785  1.1  skrll # something.
   3786  1.1  skrll 
   3787  1.1  skrll 
   3788  1.1  skrll 
   3789  1.1  skrll 
   3790  1.1  skrll 
   3791  1.1  skrll 
   3792  1.1  skrll 
   3793  1.1  skrll 
   3794  1.1  skrll 
   3795  1.1  skrll 
   3796  1.1  skrll 
   3797  1.1  skrll 
   3798  1.1  skrll 
   3799  1.1  skrll 
   3800  1.1  skrll 
   3801  1.1  skrll 
   3802  1.1  skrll 
   3803  1.1  skrll 
   3804  1.1  skrll 
   3805  1.1  skrll 
   3806  1.1  skrll 
   3807  1.1  skrll 
   3808  1.1  skrll 
   3809  1.1  skrll 
   3810  1.1  skrll 
   3811  1.1  skrll for ac_header in sys/file.h sys/param.h limits.h stdlib.h malloc.h string.h unistd.h strings.h sys/time.h time.h sys/resource.h sys/stat.h sys/mman.h fcntl.h alloca.h sys/pstat.h sys/sysmp.h sys/sysinfo.h machine/hal_sysinfo.h sys/table.h sys/sysctl.h sys/systemcfg.h stdint.h stdio_ext.h
   3812  1.1  skrll do
   3813  1.1  skrll as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
   3814  1.1  skrll echo "$as_me:$LINENO: checking for $ac_header" >&5
   3815  1.1  skrll echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
   3816  1.1  skrll if eval "test \"\${$as_ac_Header+set}\" = set"; then
   3817  1.1  skrll   echo $ECHO_N "(cached) $ECHO_C" >&6
   3818  1.1  skrll else
   3819  1.1  skrll   cat >conftest.$ac_ext <<_ACEOF
   3820  1.1  skrll /* confdefs.h.  */
   3821  1.1  skrll _ACEOF
   3822  1.1  skrll cat confdefs.h >>conftest.$ac_ext
   3823  1.1  skrll cat >>conftest.$ac_ext <<_ACEOF
   3824  1.1  skrll /* end confdefs.h.  */
   3825  1.1  skrll #include <$ac_header>
   3826  1.1  skrll _ACEOF
   3827  1.1  skrll if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
   3828  1.1  skrll   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
   3829  1.1  skrll   ac_status=$?
   3830  1.1  skrll   grep -v '^ *+' conftest.er1 >conftest.err
   3831  1.1  skrll   rm -f conftest.er1
   3832  1.1  skrll   cat conftest.err >&5
   3833  1.1  skrll   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   3834  1.1  skrll   (exit $ac_status); } >/dev/null; then
   3835  1.1  skrll   if test -s conftest.err; then
   3836  1.1  skrll     ac_cpp_err=$ac_c_preproc_warn_flag
   3837  1.1  skrll     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
   3838  1.1  skrll   else
   3839  1.1  skrll     ac_cpp_err=
   3840  1.1  skrll   fi
   3841  1.1  skrll else
   3842  1.1  skrll   ac_cpp_err=yes
   3843  1.1  skrll fi
   3844  1.1  skrll if test -z "$ac_cpp_err"; then
   3845  1.1  skrll   eval "$as_ac_Header=yes"
   3846  1.1  skrll else
   3847  1.1  skrll   echo "$as_me: failed program was:" >&5
   3848  1.1  skrll sed 's/^/| /' conftest.$ac_ext >&5
   3849  1.1  skrll 
   3850  1.1  skrll   eval "$as_ac_Header=no"
   3851  1.1  skrll fi
   3852  1.1  skrll rm -f conftest.err conftest.$ac_ext
   3853  1.1  skrll fi
   3854  1.1  skrll echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
   3855  1.1  skrll echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
   3856  1.1  skrll if test `eval echo '${'$as_ac_Header'}'` = yes; then
   3857  1.1  skrll   cat >>confdefs.h <<_ACEOF
   3858  1.1  skrll #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
   3859  1.1  skrll _ACEOF
   3860  1.1  skrll 
   3861  1.1  skrll fi
   3862  1.1  skrll done
   3863  1.1  skrll 
   3864  1.1  skrll echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
   3865  1.1  skrll echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
   3866  1.1  skrll if test "${ac_cv_header_sys_wait_h+set}" = set; then
   3867  1.1  skrll   echo $ECHO_N "(cached) $ECHO_C" >&6
   3868  1.1  skrll else
   3869  1.1  skrll   cat >conftest.$ac_ext <<_ACEOF
   3870  1.1  skrll /* confdefs.h.  */
   3871  1.1  skrll _ACEOF
   3872  1.1  skrll cat confdefs.h >>conftest.$ac_ext
   3873  1.1  skrll cat >>conftest.$ac_ext <<_ACEOF
   3874  1.1  skrll /* end confdefs.h.  */
   3875  1.1  skrll #include <sys/types.h>
   3876  1.1  skrll #include <sys/wait.h>
   3877  1.1  skrll #ifndef WEXITSTATUS
   3878  1.1  skrll # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
   3879  1.1  skrll #endif
   3880  1.1  skrll #ifndef WIFEXITED
   3881  1.1  skrll # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
   3882  1.1  skrll #endif
   3883  1.1  skrll 
   3884  1.1  skrll int
   3885  1.1  skrll main ()
   3886  1.1  skrll {
   3887  1.1  skrll   int s;
   3888  1.1  skrll   wait (&s);
   3889  1.1  skrll   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
   3890  1.1  skrll   ;
   3891  1.1  skrll   return 0;
   3892  1.1  skrll }
   3893  1.1  skrll _ACEOF
   3894  1.1  skrll rm -f conftest.$ac_objext
   3895  1.1  skrll if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
   3896  1.1  skrll   (eval $ac_compile) 2>conftest.er1
   3897  1.1  skrll   ac_status=$?
   3898  1.1  skrll   grep -v '^ *+' conftest.er1 >conftest.err
   3899  1.1  skrll   rm -f conftest.er1
   3900  1.1  skrll   cat conftest.err >&5
   3901  1.1  skrll   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   3902  1.1  skrll   (exit $ac_status); } &&
   3903  1.1  skrll 	 { ac_try='test -z "$ac_c_werror_flag"
   3904  1.1  skrll 			 || test ! -s conftest.err'
   3905  1.1  skrll   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   3906  1.1  skrll   (eval $ac_try) 2>&5
   3907  1.1  skrll   ac_status=$?
   3908  1.1  skrll   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   3909  1.1  skrll   (exit $ac_status); }; } &&
   3910  1.1  skrll 	 { ac_try='test -s conftest.$ac_objext'
   3911  1.1  skrll   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   3912  1.1  skrll   (eval $ac_try) 2>&5
   3913  1.1  skrll   ac_status=$?
   3914  1.1  skrll   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   3915  1.1  skrll   (exit $ac_status); }; }; then
   3916  1.1  skrll   ac_cv_header_sys_wait_h=yes
   3917  1.1  skrll else
   3918  1.1  skrll   echo "$as_me: failed program was:" >&5
   3919  1.1  skrll sed 's/^/| /' conftest.$ac_ext >&5
   3920  1.1  skrll 
   3921  1.1  skrll ac_cv_header_sys_wait_h=no
   3922  1.1  skrll fi
   3923  1.1  skrll rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
   3924  1.1  skrll fi
   3925  1.1  skrll echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
   3926  1.1  skrll echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
   3927  1.1  skrll if test $ac_cv_header_sys_wait_h = yes; then
   3928  1.1  skrll 
   3929  1.1  skrll cat >>confdefs.h <<\_ACEOF
   3930  1.1  skrll #define HAVE_SYS_WAIT_H 1
   3931  1.1  skrll _ACEOF
   3932  1.1  skrll 
   3933  1.1  skrll fi
   3934  1.1  skrll 
   3935  1.1  skrll echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
   3936  1.1  skrll echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
   3937  1.1  skrll if test "${ac_cv_header_time+set}" = set; then
   3938  1.1  skrll   echo $ECHO_N "(cached) $ECHO_C" >&6
   3939  1.1  skrll else
   3940  1.1  skrll   cat >conftest.$ac_ext <<_ACEOF
   3941  1.1  skrll /* confdefs.h.  */
   3942  1.1  skrll _ACEOF
   3943  1.1  skrll cat confdefs.h >>conftest.$ac_ext
   3944  1.1  skrll cat >>conftest.$ac_ext <<_ACEOF
   3945  1.1  skrll /* end confdefs.h.  */
   3946  1.1  skrll #include <sys/types.h>
   3947  1.1  skrll #include <sys/time.h>
   3948  1.1  skrll #include <time.h>
   3949  1.1  skrll 
   3950  1.1  skrll int
   3951  1.1  skrll main ()
   3952  1.1  skrll {
   3953  1.1  skrll if ((struct tm *) 0)
   3954  1.1  skrll return 0;
   3955  1.1  skrll   ;
   3956  1.1  skrll   return 0;
   3957  1.1  skrll }
   3958  1.1  skrll _ACEOF
   3959  1.1  skrll rm -f conftest.$ac_objext
   3960  1.1  skrll if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
   3961  1.1  skrll   (eval $ac_compile) 2>conftest.er1
   3962  1.1  skrll   ac_status=$?
   3963  1.1  skrll   grep -v '^ *+' conftest.er1 >conftest.err
   3964  1.1  skrll   rm -f conftest.er1
   3965  1.1  skrll   cat conftest.err >&5
   3966  1.1  skrll   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   3967  1.1  skrll   (exit $ac_status); } &&
   3968  1.1  skrll 	 { ac_try='test -z "$ac_c_werror_flag"
   3969  1.1  skrll 			 || test ! -s conftest.err'
   3970  1.1  skrll   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   3971  1.1  skrll   (eval $ac_try) 2>&5
   3972  1.1  skrll   ac_status=$?
   3973  1.1  skrll   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   3974  1.1  skrll   (exit $ac_status); }; } &&
   3975  1.1  skrll 	 { ac_try='test -s conftest.$ac_objext'
   3976  1.1  skrll   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   3977  1.1  skrll   (eval $ac_try) 2>&5
   3978  1.1  skrll   ac_status=$?
   3979  1.1  skrll   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   3980  1.1  skrll   (exit $ac_status); }; }; then
   3981  1.1  skrll   ac_cv_header_time=yes
   3982  1.1  skrll else
   3983  1.1  skrll   echo "$as_me: failed program was:" >&5
   3984  1.1  skrll sed 's/^/| /' conftest.$ac_ext >&5
   3985  1.1  skrll 
   3986  1.1  skrll ac_cv_header_time=no
   3987  1.1  skrll fi
   3988  1.1  skrll rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
   3989  1.1  skrll fi
   3990  1.1  skrll echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
   3991  1.1  skrll echo "${ECHO_T}$ac_cv_header_time" >&6
   3992  1.1  skrll if test $ac_cv_header_time = yes; then
   3993  1.1  skrll 
   3994  1.1  skrll cat >>confdefs.h <<\_ACEOF
   3995  1.1  skrll #define TIME_WITH_SYS_TIME 1
   3996  1.1  skrll _ACEOF
   3997  1.1  skrll 
   3998  1.1  skrll fi
   3999  1.1  skrll 
   4000  1.1  skrll 
   4001  1.1  skrll echo "$as_me:$LINENO: checking whether errno must be declared" >&5
   4002  1.1  skrll echo $ECHO_N "checking whether errno must be declared... $ECHO_C" >&6
   4003  1.1  skrll if test "${libiberty_cv_declare_errno+set}" = set; then
   4004  1.1  skrll   echo $ECHO_N "(cached) $ECHO_C" >&6
   4005  1.1  skrll else
   4006  1.1  skrll   cat >conftest.$ac_ext <<_ACEOF
   4007  1.1  skrll /* confdefs.h.  */
   4008  1.1  skrll _ACEOF
   4009  1.1  skrll cat confdefs.h >>conftest.$ac_ext
   4010  1.1  skrll cat >>conftest.$ac_ext <<_ACEOF
   4011  1.1  skrll /* end confdefs.h.  */
   4012  1.1  skrll #include <errno.h>
   4013  1.1  skrll int
   4014  1.1  skrll main ()
   4015  1.1  skrll {
   4016  1.1  skrll int x = errno;
   4017  1.1  skrll   ;
   4018  1.1  skrll   return 0;
   4019  1.1  skrll }
   4020  1.1  skrll _ACEOF
   4021  1.1  skrll rm -f conftest.$ac_objext
   4022  1.1  skrll if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
   4023  1.1  skrll   (eval $ac_compile) 2>conftest.er1
   4024  1.1  skrll   ac_status=$?
   4025  1.1  skrll   grep -v '^ *+' conftest.er1 >conftest.err
   4026  1.1  skrll   rm -f conftest.er1
   4027  1.1  skrll   cat conftest.err >&5
   4028  1.1  skrll   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   4029  1.1  skrll   (exit $ac_status); } &&
   4030  1.1  skrll 	 { ac_try='test -z "$ac_c_werror_flag"
   4031  1.1  skrll 			 || test ! -s conftest.err'
   4032  1.1  skrll   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   4033  1.1  skrll   (eval $ac_try) 2>&5
   4034  1.1  skrll   ac_status=$?
   4035  1.1  skrll   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   4036  1.1  skrll   (exit $ac_status); }; } &&
   4037  1.1  skrll 	 { ac_try='test -s conftest.$ac_objext'
   4038  1.1  skrll   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   4039  1.1  skrll   (eval $ac_try) 2>&5
   4040  1.1  skrll   ac_status=$?
   4041  1.1  skrll   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   4042  1.1  skrll   (exit $ac_status); }; }; then
   4043  1.1  skrll   libiberty_cv_declare_errno=no
   4044  1.1  skrll else
   4045  1.1  skrll   echo "$as_me: failed program was:" >&5
   4046  1.1  skrll sed 's/^/| /' conftest.$ac_ext >&5
   4047  1.1  skrll 
   4048  1.1  skrll libiberty_cv_declare_errno=yes
   4049  1.1  skrll fi
   4050  1.1  skrll rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
   4051  1.1  skrll fi
   4052  1.1  skrll echo "$as_me:$LINENO: result: $libiberty_cv_declare_errno" >&5
   4053  1.1  skrll echo "${ECHO_T}$libiberty_cv_declare_errno" >&6
   4054  1.1  skrll if test $libiberty_cv_declare_errno = yes
   4055  1.1  skrll then
   4056  1.1  skrll cat >>confdefs.h <<\_ACEOF
   4057  1.1  skrll #define NEED_DECLARATION_ERRNO 1
   4058  1.1  skrll _ACEOF
   4059  1.1  skrll 
   4060  1.1  skrll fi
   4061  1.1  skrll 
   4062  1.1  skrll 
   4063  1.1  skrll # Determine the size of an int for struct fibnode.
   4064  1.1  skrll echo "$as_me:$LINENO: checking for egrep" >&5
   4065  1.1  skrll echo $ECHO_N "checking for egrep... $ECHO_C" >&6
   4066  1.1  skrll if test "${ac_cv_prog_egrep+set}" = set; then
   4067  1.1  skrll   echo $ECHO_N "(cached) $ECHO_C" >&6
   4068  1.1  skrll else
   4069  1.1  skrll   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
   4070  1.1  skrll     then ac_cv_prog_egrep='grep -E'
   4071  1.1  skrll     else ac_cv_prog_egrep='egrep'
   4072  1.1  skrll     fi
   4073  1.1  skrll fi
   4074  1.1  skrll echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
   4075  1.1  skrll echo "${ECHO_T}$ac_cv_prog_egrep" >&6
   4076  1.1  skrll  EGREP=$ac_cv_prog_egrep
   4077  1.1  skrll 
   4078  1.1  skrll 
   4079  1.1  skrll echo "$as_me:$LINENO: checking for ANSI C header files" >&5
   4080  1.1  skrll echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
   4081  1.1  skrll if test "${ac_cv_header_stdc+set}" = set; then
   4082  1.1  skrll   echo $ECHO_N "(cached) $ECHO_C" >&6
   4083  1.1  skrll else
   4084  1.1  skrll   cat >conftest.$ac_ext <<_ACEOF
   4085  1.1  skrll /* confdefs.h.  */
   4086  1.1  skrll _ACEOF
   4087  1.1  skrll cat confdefs.h >>conftest.$ac_ext
   4088  1.1  skrll cat >>conftest.$ac_ext <<_ACEOF
   4089  1.1  skrll /* end confdefs.h.  */
   4090  1.1  skrll #include <stdlib.h>
   4091  1.1  skrll #include <stdarg.h>
   4092  1.1  skrll #include <string.h>
   4093  1.1  skrll #include <float.h>
   4094  1.1  skrll 
   4095  1.1  skrll int
   4096  1.1  skrll main ()
   4097  1.1  skrll {
   4098  1.1  skrll 
   4099  1.1  skrll   ;
   4100  1.1  skrll   return 0;
   4101  1.1  skrll }
   4102  1.1  skrll _ACEOF
   4103  1.1  skrll rm -f conftest.$ac_objext
   4104  1.1  skrll if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
   4105  1.1  skrll   (eval $ac_compile) 2>conftest.er1
   4106  1.1  skrll   ac_status=$?
   4107  1.1  skrll   grep -v '^ *+' conftest.er1 >conftest.err
   4108  1.1  skrll   rm -f conftest.er1
   4109  1.1  skrll   cat conftest.err >&5
   4110  1.1  skrll   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   4111  1.1  skrll   (exit $ac_status); } &&
   4112  1.1  skrll 	 { ac_try='test -z "$ac_c_werror_flag"
   4113  1.1  skrll 			 || test ! -s conftest.err'
   4114  1.1  skrll   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   4115  1.1  skrll   (eval $ac_try) 2>&5
   4116  1.1  skrll   ac_status=$?
   4117  1.1  skrll   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   4118  1.1  skrll   (exit $ac_status); }; } &&
   4119  1.1  skrll 	 { ac_try='test -s conftest.$ac_objext'
   4120  1.1  skrll   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   4121  1.1  skrll   (eval $ac_try) 2>&5
   4122  1.1  skrll   ac_status=$?
   4123  1.1  skrll   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   4124  1.1  skrll   (exit $ac_status); }; }; then
   4125  1.1  skrll   ac_cv_header_stdc=yes
   4126  1.1  skrll else
   4127  1.1  skrll   echo "$as_me: failed program was:" >&5
   4128  1.1  skrll sed 's/^/| /' conftest.$ac_ext >&5
   4129  1.1  skrll 
   4130  1.1  skrll ac_cv_header_stdc=no
   4131  1.1  skrll fi
   4132  1.1  skrll rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
   4133  1.1  skrll 
   4134  1.1  skrll if test $ac_cv_header_stdc = yes; then
   4135  1.1  skrll   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
   4136  1.1  skrll   cat >conftest.$ac_ext <<_ACEOF
   4137  1.1  skrll /* confdefs.h.  */
   4138  1.1  skrll _ACEOF
   4139  1.1  skrll cat confdefs.h >>conftest.$ac_ext
   4140  1.1  skrll cat >>conftest.$ac_ext <<_ACEOF
   4141  1.1  skrll /* end confdefs.h.  */
   4142  1.1  skrll #include <string.h>
   4143  1.1  skrll 
   4144  1.1  skrll _ACEOF
   4145  1.1  skrll if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   4146  1.1  skrll   $EGREP "memchr" >/dev/null 2>&1; then
   4147  1.1  skrll   :
   4148  1.1  skrll else
   4149  1.1  skrll   ac_cv_header_stdc=no
   4150  1.1  skrll fi
   4151  1.1  skrll rm -f conftest*
   4152  1.1  skrll 
   4153  1.1  skrll fi
   4154  1.1  skrll 
   4155  1.1  skrll if test $ac_cv_header_stdc = yes; then
   4156  1.1  skrll   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
   4157  1.1  skrll   cat >conftest.$ac_ext <<_ACEOF
   4158  1.1  skrll /* confdefs.h.  */
   4159  1.1  skrll _ACEOF
   4160  1.1  skrll cat confdefs.h >>conftest.$ac_ext
   4161  1.1  skrll cat >>conftest.$ac_ext <<_ACEOF
   4162  1.1  skrll /* end confdefs.h.  */
   4163  1.1  skrll #include <stdlib.h>
   4164  1.1  skrll 
   4165  1.1  skrll _ACEOF
   4166  1.1  skrll if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   4167  1.1  skrll   $EGREP "free" >/dev/null 2>&1; then
   4168  1.1  skrll   :
   4169  1.1  skrll else
   4170  1.1  skrll   ac_cv_header_stdc=no
   4171  1.1  skrll fi
   4172  1.1  skrll rm -f conftest*
   4173  1.1  skrll 
   4174  1.1  skrll fi
   4175  1.1  skrll 
   4176  1.1  skrll if test $ac_cv_header_stdc = yes; then
   4177  1.1  skrll   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
   4178  1.1  skrll   if test "$cross_compiling" = yes; then
   4179  1.1  skrll   :
   4180  1.1  skrll else
   4181  1.1  skrll   cat >conftest.$ac_ext <<_ACEOF
   4182  1.1  skrll /* confdefs.h.  */
   4183  1.1  skrll _ACEOF
   4184  1.1  skrll cat confdefs.h >>conftest.$ac_ext
   4185  1.1  skrll cat >>conftest.$ac_ext <<_ACEOF
   4186  1.1  skrll /* end confdefs.h.  */
   4187  1.1  skrll #include <ctype.h>
   4188  1.1  skrll #if ((' ' & 0x0FF) == 0x020)
   4189  1.1  skrll # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
   4190  1.1  skrll # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
   4191  1.1  skrll #else
   4192  1.1  skrll # define ISLOWER(c) \
   4193  1.1  skrll 		   (('a' <= (c) && (c) <= 'i') \
   4194  1.1  skrll 		     || ('j' <= (c) && (c) <= 'r') \
   4195  1.1  skrll 		     || ('s' <= (c) && (c) <= 'z'))
   4196  1.1  skrll # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
   4197  1.1  skrll #endif
   4198  1.1  skrll 
   4199  1.1  skrll #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
   4200  1.1  skrll int
   4201  1.1  skrll main ()
   4202  1.1  skrll {
   4203  1.1  skrll   int i;
   4204  1.1  skrll   for (i = 0; i < 256; i++)
   4205  1.1  skrll     if (XOR (islower (i), ISLOWER (i))
   4206  1.1  skrll 	|| toupper (i) != TOUPPER (i))
   4207  1.1  skrll       exit(2);
   4208  1.1  skrll   exit (0);
   4209  1.1  skrll }
   4210  1.1  skrll _ACEOF
   4211  1.1  skrll rm -f conftest$ac_exeext
   4212  1.1  skrll if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
   4213  1.1  skrll   (eval $ac_link) 2>&5
   4214  1.1  skrll   ac_status=$?
   4215  1.1  skrll   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   4216  1.1  skrll   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
   4217  1.1  skrll   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   4218  1.1  skrll   (eval $ac_try) 2>&5
   4219  1.1  skrll   ac_status=$?
   4220  1.1  skrll   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   4221  1.1  skrll   (exit $ac_status); }; }; then
   4222  1.1  skrll   :
   4223  1.1  skrll else
   4224  1.1  skrll   echo "$as_me: program exited with status $ac_status" >&5
   4225  1.1  skrll echo "$as_me: failed program was:" >&5
   4226  1.1  skrll sed 's/^/| /' conftest.$ac_ext >&5
   4227  1.1  skrll 
   4228  1.1  skrll ( exit $ac_status )
   4229  1.1  skrll ac_cv_header_stdc=no
   4230  1.1  skrll fi
   4231  1.1  skrll rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
   4232  1.1  skrll fi
   4233  1.1  skrll fi
   4234  1.1  skrll fi
   4235  1.1  skrll echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
   4236  1.1  skrll echo "${ECHO_T}$ac_cv_header_stdc" >&6
   4237  1.1  skrll if test $ac_cv_header_stdc = yes; then
   4238  1.1  skrll 
   4239  1.1  skrll cat >>confdefs.h <<\_ACEOF
   4240  1.1  skrll #define STDC_HEADERS 1
   4241  1.1  skrll _ACEOF
   4242  1.1  skrll 
   4243  1.1  skrll fi
   4244  1.1  skrll 
   4245  1.1  skrll # On IRIX 5.3, sys/types and inttypes.h are conflicting.
   4246  1.1  skrll 
   4247  1.1  skrll 
   4248  1.1  skrll 
   4249  1.1  skrll 
   4250  1.1  skrll 
   4251  1.1  skrll 
   4252  1.1  skrll 
   4253  1.1  skrll 
   4254  1.1  skrll 
   4255  1.1  skrll for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
   4256  1.1  skrll 		  inttypes.h stdint.h unistd.h
   4257  1.1  skrll do
   4258  1.1  skrll as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
   4259  1.1  skrll echo "$as_me:$LINENO: checking for $ac_header" >&5
   4260  1.1  skrll echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
   4261  1.1  skrll if eval "test \"\${$as_ac_Header+set}\" = set"; then
   4262  1.1  skrll   echo $ECHO_N "(cached) $ECHO_C" >&6
   4263  1.1  skrll else
   4264  1.1  skrll   cat >conftest.$ac_ext <<_ACEOF
   4265  1.1  skrll /* confdefs.h.  */
   4266  1.1  skrll _ACEOF
   4267  1.1  skrll cat confdefs.h >>conftest.$ac_ext
   4268  1.1  skrll cat >>conftest.$ac_ext <<_ACEOF
   4269  1.1  skrll /* end confdefs.h.  */
   4270  1.1  skrll #include <$ac_header>
   4271  1.1  skrll _ACEOF
   4272  1.1  skrll if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
   4273  1.1  skrll   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
   4274  1.1  skrll   ac_status=$?
   4275  1.1  skrll   grep -v '^ *+' conftest.er1 >conftest.err
   4276  1.1  skrll   rm -f conftest.er1
   4277  1.1  skrll   cat conftest.err >&5
   4278  1.1  skrll   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   4279  1.1  skrll   (exit $ac_status); } >/dev/null; then
   4280  1.1  skrll   if test -s conftest.err; then
   4281  1.1  skrll     ac_cpp_err=$ac_c_preproc_warn_flag
   4282  1.1  skrll     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
   4283  1.1  skrll   else
   4284  1.1  skrll     ac_cpp_err=
   4285  1.1  skrll   fi
   4286  1.1  skrll else
   4287  1.1  skrll   ac_cpp_err=yes
   4288  1.1  skrll fi
   4289  1.1  skrll if test -z "$ac_cpp_err"; then
   4290  1.1  skrll   eval "$as_ac_Header=yes"
   4291  1.1  skrll else
   4292  1.1  skrll   echo "$as_me: failed program was:" >&5
   4293  1.1  skrll sed 's/^/| /' conftest.$ac_ext >&5
   4294  1.1  skrll 
   4295  1.1  skrll   eval "$as_ac_Header=no"
   4296  1.1  skrll fi
   4297  1.1  skrll rm -f conftest.err conftest.$ac_ext
   4298  1.1  skrll fi
   4299  1.1  skrll echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
   4300  1.1  skrll echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
   4301  1.1  skrll if test `eval echo '${'$as_ac_Header'}'` = yes; then
   4302  1.1  skrll   cat >>confdefs.h <<_ACEOF
   4303  1.1  skrll #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
   4304  1.1  skrll _ACEOF
   4305  1.1  skrll 
   4306  1.1  skrll fi
   4307  1.1  skrll done
   4308  1.1  skrll 
   4309  1.1  skrll 
   4310  1.1  skrll echo "$as_me:$LINENO: checking for int" >&5
   4311  1.1  skrll echo $ECHO_N "checking for int... $ECHO_C" >&6
   4312  1.1  skrll if test "${ac_cv_type_int+set}" = set; then
   4313  1.1  skrll   echo $ECHO_N "(cached) $ECHO_C" >&6
   4314  1.1  skrll else
   4315  1.1  skrll   cat >conftest.$ac_ext <<_ACEOF
   4316  1.1  skrll /* confdefs.h.  */
   4317  1.1  skrll _ACEOF
   4318  1.1  skrll cat confdefs.h >>conftest.$ac_ext
   4319  1.1  skrll cat >>conftest.$ac_ext <<_ACEOF
   4320  1.1  skrll /* end confdefs.h.  */
   4321  1.1  skrll $ac_includes_default
   4322  1.1  skrll int
   4323  1.1  skrll main ()
   4324  1.1  skrll {
   4325  1.1  skrll if ((int *) 0)
   4326  1.1  skrll   return 0;
   4327  1.1  skrll if (sizeof (int))
   4328  1.1  skrll   return 0;
   4329  1.1  skrll   ;
   4330  1.1  skrll   return 0;
   4331  1.1  skrll }
   4332  1.1  skrll _ACEOF
   4333  1.1  skrll rm -f conftest.$ac_objext
   4334  1.1  skrll if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
   4335  1.1  skrll   (eval $ac_compile) 2>conftest.er1
   4336  1.1  skrll   ac_status=$?
   4337  1.1  skrll   grep -v '^ *+' conftest.er1 >conftest.err
   4338  1.1  skrll   rm -f conftest.er1
   4339  1.1  skrll   cat conftest.err >&5
   4340  1.1  skrll   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   4341  1.1  skrll   (exit $ac_status); } &&
   4342  1.1  skrll 	 { ac_try='test -z "$ac_c_werror_flag"
   4343  1.1  skrll 			 || test ! -s conftest.err'
   4344  1.1  skrll   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   4345  1.1  skrll   (eval $ac_try) 2>&5
   4346  1.1  skrll   ac_status=$?
   4347  1.1  skrll   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   4348  1.1  skrll   (exit $ac_status); }; } &&
   4349  1.1  skrll 	 { ac_try='test -s conftest.$ac_objext'
   4350  1.1  skrll   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   4351  1.1  skrll   (eval $ac_try) 2>&5
   4352  1.1  skrll   ac_status=$?
   4353  1.1  skrll   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   4354  1.1  skrll   (exit $ac_status); }; }; then
   4355  1.1  skrll   ac_cv_type_int=yes
   4356  1.1  skrll else
   4357  1.1  skrll   echo "$as_me: failed program was:" >&5
   4358  1.1  skrll sed 's/^/| /' conftest.$ac_ext >&5
   4359  1.1  skrll 
   4360  1.1  skrll ac_cv_type_int=no
   4361  1.1  skrll fi
   4362  1.1  skrll rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
   4363  1.1  skrll fi
   4364  1.1  skrll echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
   4365  1.1  skrll echo "${ECHO_T}$ac_cv_type_int" >&6
   4366  1.1  skrll 
   4367  1.1  skrll echo "$as_me:$LINENO: checking size of int" >&5
   4368  1.1  skrll echo $ECHO_N "checking size of int... $ECHO_C" >&6
   4369  1.1  skrll if test "${ac_cv_sizeof_int+set}" = set; then
   4370  1.1  skrll   echo $ECHO_N "(cached) $ECHO_C" >&6
   4371  1.1  skrll else
   4372  1.1  skrll   if test "$ac_cv_type_int" = yes; then
   4373  1.1  skrll   # The cast to unsigned long works around a bug in the HP C Compiler
   4374  1.1  skrll   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
   4375  1.1  skrll   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
   4376  1.1  skrll   # This bug is HP SR number 8606223364.
   4377  1.1  skrll   if test "$cross_compiling" = yes; then
   4378  1.1  skrll   # Depending upon the size, compute the lo and hi bounds.
   4379  1.1  skrll cat >conftest.$ac_ext <<_ACEOF
   4380  1.1  skrll /* confdefs.h.  */
   4381  1.1  skrll _ACEOF
   4382  1.1  skrll cat confdefs.h >>conftest.$ac_ext
   4383  1.1  skrll cat >>conftest.$ac_ext <<_ACEOF
   4384  1.1  skrll /* end confdefs.h.  */
   4385  1.1  skrll $ac_includes_default
   4386  1.1  skrll int
   4387  1.1  skrll main ()
   4388  1.1  skrll {
   4389  1.1  skrll static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
   4390  1.1  skrll test_array [0] = 0
   4391  1.1  skrll 
   4392  1.1  skrll   ;
   4393  1.1  skrll   return 0;
   4394  1.1  skrll }
   4395  1.1  skrll _ACEOF
   4396  1.1  skrll rm -f conftest.$ac_objext
   4397  1.1  skrll if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
   4398  1.1  skrll   (eval $ac_compile) 2>conftest.er1
   4399  1.1  skrll   ac_status=$?
   4400  1.1  skrll   grep -v '^ *+' conftest.er1 >conftest.err
   4401  1.1  skrll   rm -f conftest.er1
   4402  1.1  skrll   cat conftest.err >&5
   4403  1.1  skrll   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   4404  1.1  skrll   (exit $ac_status); } &&
   4405  1.1  skrll 	 { ac_try='test -z "$ac_c_werror_flag"
   4406  1.1  skrll 			 || test ! -s conftest.err'
   4407  1.1  skrll   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   4408  1.1  skrll   (eval $ac_try) 2>&5
   4409  1.1  skrll   ac_status=$?
   4410  1.1  skrll   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   4411  1.1  skrll   (exit $ac_status); }; } &&
   4412  1.1  skrll 	 { ac_try='test -s conftest.$ac_objext'
   4413  1.1  skrll   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   4414  1.1  skrll   (eval $ac_try) 2>&5
   4415  1.1  skrll   ac_status=$?
   4416  1.1  skrll   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   4417  1.1  skrll   (exit $ac_status); }; }; then
   4418  1.1  skrll   ac_lo=0 ac_mid=0
   4419  1.1  skrll   while :; do
   4420  1.1  skrll     cat >conftest.$ac_ext <<_ACEOF
   4421  1.1  skrll /* confdefs.h.  */
   4422  1.1  skrll _ACEOF
   4423  1.1  skrll cat confdefs.h >>conftest.$ac_ext
   4424  1.1  skrll cat >>conftest.$ac_ext <<_ACEOF
   4425  1.1  skrll /* end confdefs.h.  */
   4426  1.1  skrll $ac_includes_default
   4427  1.1  skrll int
   4428  1.1  skrll main ()
   4429  1.1  skrll {
   4430  1.1  skrll static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
   4431  1.1  skrll test_array [0] = 0
   4432  1.1  skrll 
   4433  1.1  skrll   ;
   4434  1.1  skrll   return 0;
   4435  1.1  skrll }
   4436  1.1  skrll _ACEOF
   4437  1.1  skrll rm -f conftest.$ac_objext
   4438  1.1  skrll if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
   4439  1.1  skrll   (eval $ac_compile) 2>conftest.er1
   4440  1.1  skrll   ac_status=$?
   4441  1.1  skrll   grep -v '^ *+' conftest.er1 >conftest.err
   4442  1.1  skrll   rm -f conftest.er1
   4443  1.1  skrll   cat conftest.err >&5
   4444  1.1  skrll   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   4445  1.1  skrll   (exit $ac_status); } &&
   4446  1.1  skrll 	 { ac_try='test -z "$ac_c_werror_flag"
   4447  1.1  skrll 			 || test ! -s conftest.err'
   4448  1.1  skrll   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   4449  1.1  skrll   (eval $ac_try) 2>&5
   4450  1.1  skrll   ac_status=$?
   4451  1.1  skrll   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   4452  1.1  skrll   (exit $ac_status); }; } &&
   4453  1.1  skrll 	 { ac_try='test -s conftest.$ac_objext'
   4454  1.1  skrll   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   4455  1.1  skrll   (eval $ac_try) 2>&5
   4456  1.1  skrll   ac_status=$?
   4457  1.1  skrll   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   4458  1.1  skrll   (exit $ac_status); }; }; then
   4459  1.1  skrll   ac_hi=$ac_mid; break
   4460  1.1  skrll else
   4461  1.1  skrll   echo "$as_me: failed program was:" >&5
   4462  1.1  skrll sed 's/^/| /' conftest.$ac_ext >&5
   4463  1.1  skrll 
   4464  1.1  skrll ac_lo=`expr $ac_mid + 1`
   4465  1.1  skrll 		    if test $ac_lo -le $ac_mid; then
   4466  1.1  skrll 		      ac_lo= ac_hi=
   4467  1.1  skrll 		      break
   4468  1.1  skrll 		    fi
   4469  1.1  skrll 		    ac_mid=`expr 2 '*' $ac_mid + 1`
   4470  1.1  skrll fi
   4471  1.1  skrll rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
   4472  1.1  skrll   done
   4473  1.1  skrll else
   4474  1.1  skrll   echo "$as_me: failed program was:" >&5
   4475  1.1  skrll sed 's/^/| /' conftest.$ac_ext >&5
   4476  1.1  skrll 
   4477  1.1  skrll cat >conftest.$ac_ext <<_ACEOF
   4478  1.1  skrll /* confdefs.h.  */
   4479  1.1  skrll _ACEOF
   4480  1.1  skrll cat confdefs.h >>conftest.$ac_ext
   4481  1.1  skrll cat >>conftest.$ac_ext <<_ACEOF
   4482  1.1  skrll /* end confdefs.h.  */
   4483  1.1  skrll $ac_includes_default
   4484  1.1  skrll int
   4485  1.1  skrll main ()
   4486  1.1  skrll {
   4487  1.1  skrll static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
   4488  1.1  skrll test_array [0] = 0
   4489  1.1  skrll 
   4490  1.1  skrll   ;
   4491  1.1  skrll   return 0;
   4492  1.1  skrll }
   4493  1.1  skrll _ACEOF
   4494  1.1  skrll rm -f conftest.$ac_objext
   4495  1.1  skrll if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
   4496  1.1  skrll   (eval $ac_compile) 2>conftest.er1
   4497  1.1  skrll   ac_status=$?
   4498  1.1  skrll   grep -v '^ *+' conftest.er1 >conftest.err
   4499  1.1  skrll   rm -f conftest.er1
   4500  1.1  skrll   cat conftest.err >&5
   4501  1.1  skrll   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   4502  1.1  skrll   (exit $ac_status); } &&
   4503  1.1  skrll 	 { ac_try='test -z "$ac_c_werror_flag"
   4504  1.1  skrll 			 || test ! -s conftest.err'
   4505  1.1  skrll   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   4506  1.1  skrll   (eval $ac_try) 2>&5
   4507  1.1  skrll   ac_status=$?
   4508  1.1  skrll   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   4509  1.1  skrll   (exit $ac_status); }; } &&
   4510  1.1  skrll 	 { ac_try='test -s conftest.$ac_objext'
   4511  1.1  skrll   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   4512  1.1  skrll   (eval $ac_try) 2>&5
   4513  1.1  skrll   ac_status=$?
   4514  1.1  skrll   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   4515  1.1  skrll   (exit $ac_status); }; }; then
   4516  1.1  skrll   ac_hi=-1 ac_mid=-1
   4517  1.1  skrll   while :; do
   4518  1.1  skrll     cat >conftest.$ac_ext <<_ACEOF
   4519  1.1  skrll /* confdefs.h.  */
   4520  1.1  skrll _ACEOF
   4521  1.1  skrll cat confdefs.h >>conftest.$ac_ext
   4522  1.1  skrll cat >>conftest.$ac_ext <<_ACEOF
   4523  1.1  skrll /* end confdefs.h.  */
   4524  1.1  skrll $ac_includes_default
   4525  1.1  skrll int
   4526  1.1  skrll main ()
   4527  1.1  skrll {
   4528  1.1  skrll static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
   4529  1.1  skrll test_array [0] = 0
   4530  1.1  skrll 
   4531  1.1  skrll   ;
   4532  1.1  skrll   return 0;
   4533  1.1  skrll }
   4534  1.1  skrll _ACEOF
   4535  1.1  skrll rm -f conftest.$ac_objext
   4536  1.1  skrll if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
   4537  1.1  skrll   (eval $ac_compile) 2>conftest.er1
   4538  1.1  skrll   ac_status=$?
   4539  1.1  skrll   grep -v '^ *+' conftest.er1 >conftest.err
   4540  1.1  skrll   rm -f conftest.er1
   4541  1.1  skrll   cat conftest.err >&5
   4542  1.1  skrll   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   4543  1.1  skrll   (exit $ac_status); } &&
   4544  1.1  skrll 	 { ac_try='test -z "$ac_c_werror_flag"
   4545  1.1  skrll 			 || test ! -s conftest.err'
   4546  1.1  skrll   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   4547  1.1  skrll   (eval $ac_try) 2>&5
   4548  1.1  skrll   ac_status=$?
   4549  1.1  skrll   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   4550  1.1  skrll   (exit $ac_status); }; } &&
   4551  1.1  skrll 	 { ac_try='test -s conftest.$ac_objext'
   4552  1.1  skrll   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   4553  1.1  skrll   (eval $ac_try) 2>&5
   4554  1.1  skrll   ac_status=$?
   4555  1.1  skrll   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   4556  1.1  skrll   (exit $ac_status); }; }; then
   4557  1.1  skrll   ac_lo=$ac_mid; break
   4558  1.1  skrll else
   4559  1.1  skrll   echo "$as_me: failed program was:" >&5
   4560  1.1  skrll sed 's/^/| /' conftest.$ac_ext >&5
   4561  1.1  skrll 
   4562  1.1  skrll ac_hi=`expr '(' $ac_mid ')' - 1`
   4563  1.1  skrll 		       if test $ac_mid -le $ac_hi; then
   4564  1.1  skrll 			 ac_lo= ac_hi=
   4565  1.1  skrll 			 break
   4566  1.1  skrll 		       fi
   4567  1.1  skrll 		       ac_mid=`expr 2 '*' $ac_mid`
   4568  1.1  skrll fi
   4569  1.1  skrll rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
   4570  1.1  skrll   done
   4571  1.1  skrll else
   4572  1.1  skrll   echo "$as_me: failed program was:" >&5
   4573  1.1  skrll sed 's/^/| /' conftest.$ac_ext >&5
   4574  1.1  skrll 
   4575  1.1  skrll ac_lo= ac_hi=
   4576  1.1  skrll fi
   4577  1.1  skrll rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
   4578  1.1  skrll fi
   4579  1.1  skrll rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
   4580  1.1  skrll # Binary search between lo and hi bounds.
   4581  1.1  skrll while test "x$ac_lo" != "x$ac_hi"; do
   4582  1.1  skrll   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
   4583  1.1  skrll   cat >conftest.$ac_ext <<_ACEOF
   4584  1.1  skrll /* confdefs.h.  */
   4585  1.1  skrll _ACEOF
   4586  1.1  skrll cat confdefs.h >>conftest.$ac_ext
   4587  1.1  skrll cat >>conftest.$ac_ext <<_ACEOF
   4588  1.1  skrll /* end confdefs.h.  */
   4589  1.1  skrll $ac_includes_default
   4590  1.1  skrll int
   4591  1.1  skrll main ()
   4592  1.1  skrll {
   4593  1.1  skrll static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
   4594  1.1  skrll test_array [0] = 0
   4595  1.1  skrll 
   4596  1.1  skrll   ;
   4597  1.1  skrll   return 0;
   4598  1.1  skrll }
   4599  1.1  skrll _ACEOF
   4600  1.1  skrll rm -f conftest.$ac_objext
   4601  1.1  skrll if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
   4602  1.1  skrll   (eval $ac_compile) 2>conftest.er1
   4603  1.1  skrll   ac_status=$?
   4604  1.1  skrll   grep -v '^ *+' conftest.er1 >conftest.err
   4605  1.1  skrll   rm -f conftest.er1
   4606  1.1  skrll   cat conftest.err >&5
   4607  1.1  skrll   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   4608  1.1  skrll   (exit $ac_status); } &&
   4609  1.1  skrll 	 { ac_try='test -z "$ac_c_werror_flag"
   4610  1.1  skrll 			 || test ! -s conftest.err'
   4611  1.1  skrll   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   4612  1.1  skrll   (eval $ac_try) 2>&5
   4613  1.1  skrll   ac_status=$?
   4614  1.1  skrll   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   4615  1.1  skrll   (exit $ac_status); }; } &&
   4616  1.1  skrll 	 { ac_try='test -s conftest.$ac_objext'
   4617  1.1  skrll   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   4618  1.1  skrll   (eval $ac_try) 2>&5
   4619  1.1  skrll   ac_status=$?
   4620  1.1  skrll   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   4621  1.1  skrll   (exit $ac_status); }; }; then
   4622  1.1  skrll   ac_hi=$ac_mid
   4623  1.1  skrll else
   4624  1.1  skrll   echo "$as_me: failed program was:" >&5
   4625  1.1  skrll sed 's/^/| /' conftest.$ac_ext >&5
   4626  1.1  skrll 
   4627  1.1  skrll ac_lo=`expr '(' $ac_mid ')' + 1`
   4628  1.1  skrll fi
   4629  1.1  skrll rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
   4630  1.1  skrll done
   4631  1.1  skrll case $ac_lo in
   4632  1.1  skrll ?*) ac_cv_sizeof_int=$ac_lo;;
   4633  1.1  skrll '') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
   4634  1.1  skrll echo "$as_me: error: in \`$ac_pwd':" >&2;}
   4635  1.1  skrll { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
   4636  1.1  skrll See \`config.log' for more details." >&5
   4637  1.1  skrll echo "$as_me: error: cannot compute sizeof (int), 77
   4638  1.1  skrll See \`config.log' for more details." >&2;}
   4639  1.1  skrll    { (exit 1); exit 1; }; }; } ;;
   4640  1.1  skrll esac
   4641  1.1  skrll else
   4642  1.1  skrll   if test "$cross_compiling" = yes; then
   4643  1.1  skrll   { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
   4644  1.1  skrll echo "$as_me: error: in \`$ac_pwd':" >&2;}
   4645  1.1  skrll { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
   4646  1.1  skrll See \`config.log' for more details." >&5
   4647  1.1  skrll echo "$as_me: error: cannot run test program while cross compiling
   4648  1.1  skrll See \`config.log' for more details." >&2;}
   4649  1.1  skrll    { (exit 1); exit 1; }; }; }
   4650  1.1  skrll else
   4651  1.1  skrll   cat >conftest.$ac_ext <<_ACEOF
   4652  1.1  skrll /* confdefs.h.  */
   4653  1.1  skrll _ACEOF
   4654  1.1  skrll cat confdefs.h >>conftest.$ac_ext
   4655  1.1  skrll cat >>conftest.$ac_ext <<_ACEOF
   4656  1.1  skrll /* end confdefs.h.  */
   4657  1.1  skrll $ac_includes_default
   4658  1.1  skrll long longval () { return (long) (sizeof (int)); }
   4659  1.1  skrll unsigned long ulongval () { return (long) (sizeof (int)); }
   4660  1.1  skrll #include <stdio.h>
   4661  1.1  skrll #include <stdlib.h>
   4662  1.1  skrll int
   4663  1.1  skrll main ()
   4664  1.1  skrll {
   4665  1.1  skrll 
   4666  1.1  skrll   FILE *f = fopen ("conftest.val", "w");
   4667  1.1  skrll   if (! f)
   4668  1.1  skrll     exit (1);
   4669  1.1  skrll   if (((long) (sizeof (int))) < 0)
   4670  1.1  skrll     {
   4671  1.1  skrll       long i = longval ();
   4672  1.1  skrll       if (i != ((long) (sizeof (int))))
   4673  1.1  skrll 	exit (1);
   4674  1.1  skrll       fprintf (f, "%ld\n", i);
   4675  1.1  skrll     }
   4676  1.1  skrll   else
   4677  1.1  skrll     {
   4678  1.1  skrll       unsigned long i = ulongval ();
   4679  1.1  skrll       if (i != ((long) (sizeof (int))))
   4680  1.1  skrll 	exit (1);
   4681  1.1  skrll       fprintf (f, "%lu\n", i);
   4682  1.1  skrll     }
   4683  1.1  skrll   exit (ferror (f) || fclose (f) != 0);
   4684  1.1  skrll 
   4685  1.1  skrll   ;
   4686  1.1  skrll   return 0;
   4687  1.1  skrll }
   4688  1.1  skrll _ACEOF
   4689  1.1  skrll rm -f conftest$ac_exeext
   4690  1.1  skrll if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
   4691  1.1  skrll   (eval $ac_link) 2>&5
   4692  1.1  skrll   ac_status=$?
   4693  1.1  skrll   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   4694  1.1  skrll   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
   4695  1.1  skrll   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   4696  1.1  skrll   (eval $ac_try) 2>&5
   4697  1.1  skrll   ac_status=$?
   4698  1.1  skrll   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   4699  1.1  skrll   (exit $ac_status); }; }; then
   4700  1.1  skrll   ac_cv_sizeof_int=`cat conftest.val`
   4701  1.1  skrll else
   4702  1.1  skrll   echo "$as_me: program exited with status $ac_status" >&5
   4703  1.1  skrll echo "$as_me: failed program was:" >&5
   4704  1.1  skrll sed 's/^/| /' conftest.$ac_ext >&5
   4705  1.1  skrll 
   4706  1.1  skrll ( exit $ac_status )
   4707  1.1  skrll { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
   4708  1.1  skrll echo "$as_me: error: in \`$ac_pwd':" >&2;}
   4709  1.1  skrll { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
   4710  1.1  skrll See \`config.log' for more details." >&5
   4711  1.1  skrll echo "$as_me: error: cannot compute sizeof (int), 77
   4712  1.1  skrll See \`config.log' for more details." >&2;}
   4713  1.1  skrll    { (exit 1); exit 1; }; }; }
   4714  1.1  skrll fi
   4715  1.1  skrll rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
   4716  1.1  skrll fi
   4717  1.1  skrll fi
   4718  1.1  skrll rm -f conftest.val
   4719  1.1  skrll else
   4720  1.1  skrll   ac_cv_sizeof_int=0
   4721  1.1  skrll fi
   4722  1.1  skrll fi
   4723  1.1  skrll echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
   4724  1.1  skrll echo "${ECHO_T}$ac_cv_sizeof_int" >&6
   4725  1.1  skrll cat >>confdefs.h <<_ACEOF
   4726  1.1  skrll #define SIZEOF_INT $ac_cv_sizeof_int
   4727  1.1  skrll _ACEOF
   4728  1.1  skrll 
   4729  1.1  skrll 
   4730  1.1  skrll 
   4731  1.1  skrll echo "$as_me:$LINENO: checking for uintptr_t" >&5
   4732  1.1  skrll echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
   4733  1.1  skrll if test "${ac_cv_type_uintptr_t+set}" = set; then
   4734  1.1  skrll   echo $ECHO_N "(cached) $ECHO_C" >&6
   4735  1.1  skrll else
   4736  1.1  skrll   cat >conftest.$ac_ext <<_ACEOF
   4737  1.1  skrll /* confdefs.h.  */
   4738  1.1  skrll _ACEOF
   4739  1.1  skrll cat confdefs.h >>conftest.$ac_ext
   4740  1.1  skrll cat >>conftest.$ac_ext <<_ACEOF
   4741  1.1  skrll /* end confdefs.h.  */
   4742  1.1  skrll $ac_includes_default
   4743  1.1  skrll int
   4744  1.1  skrll main ()
   4745  1.1  skrll {
   4746  1.1  skrll if ((uintptr_t *) 0)
   4747  1.1  skrll   return 0;
   4748  1.1  skrll if (sizeof (uintptr_t))
   4749  1.1  skrll   return 0;
   4750  1.1  skrll   ;
   4751  1.1  skrll   return 0;
   4752  1.1  skrll }
   4753  1.1  skrll _ACEOF
   4754  1.1  skrll rm -f conftest.$ac_objext
   4755  1.1  skrll if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
   4756  1.1  skrll   (eval $ac_compile) 2>conftest.er1
   4757  1.1  skrll   ac_status=$?
   4758  1.1  skrll   grep -v '^ *+' conftest.er1 >conftest.err
   4759  1.1  skrll   rm -f conftest.er1
   4760  1.1  skrll   cat conftest.err >&5
   4761  1.1  skrll   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   4762  1.1  skrll   (exit $ac_status); } &&
   4763  1.1  skrll 	 { ac_try='test -z "$ac_c_werror_flag"
   4764  1.1  skrll 			 || test ! -s conftest.err'
   4765  1.1  skrll   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   4766  1.1  skrll   (eval $ac_try) 2>&5
   4767  1.1  skrll   ac_status=$?
   4768  1.1  skrll   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   4769  1.1  skrll   (exit $ac_status); }; } &&
   4770  1.1  skrll 	 { ac_try='test -s conftest.$ac_objext'
   4771  1.1  skrll   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   4772  1.1  skrll   (eval $ac_try) 2>&5
   4773  1.1  skrll   ac_status=$?
   4774  1.1  skrll   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   4775  1.1  skrll   (exit $ac_status); }; }; then
   4776  1.1  skrll   ac_cv_type_uintptr_t=yes
   4777  1.1  skrll else
   4778  1.1  skrll   echo "$as_me: failed program was:" >&5
   4779  1.1  skrll sed 's/^/| /' conftest.$ac_ext >&5
   4780  1.1  skrll 
   4781  1.1  skrll ac_cv_type_uintptr_t=no
   4782  1.1  skrll fi
   4783  1.1  skrll rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
   4784  1.1  skrll fi
   4785  1.1  skrll echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
   4786  1.1  skrll echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
   4787  1.1  skrll if test $ac_cv_type_uintptr_t = yes; then
   4788  1.1  skrll   :
   4789  1.1  skrll else
   4790  1.1  skrll 
   4791  1.1  skrll cat >>confdefs.h <<_ACEOF
   4792  1.1  skrll #define uintptr_t unsigned long
   4793  1.1  skrll _ACEOF
   4794  1.1  skrll 
   4795  1.1  skrll fi
   4796  1.1  skrll 
   4797  1.1  skrll 
   4798  1.1  skrll # Look for a 64-bit type.
   4799  1.1  skrll echo "$as_me:$LINENO: checking for a 64-bit type" >&5
   4800  1.1  skrll echo $ECHO_N "checking for a 64-bit type... $ECHO_C" >&6
   4801  1.1  skrll if test "${liberty_cv_uint64+set}" = set; then
   4802  1.1  skrll   echo $ECHO_N "(cached) $ECHO_C" >&6
   4803  1.1  skrll else
   4804  1.1  skrll   cat >conftest.$ac_ext <<_ACEOF
   4805  1.1  skrll /* confdefs.h.  */
   4806  1.1  skrll _ACEOF
   4807  1.1  skrll cat confdefs.h >>conftest.$ac_ext
   4808  1.1  skrll cat >>conftest.$ac_ext <<_ACEOF
   4809  1.1  skrll /* end confdefs.h.  */
   4810  1.1  skrll #ifdef HAVE_STDINT_H
   4811  1.1  skrll #include <stdint.h>
   4812  1.1  skrll #endif
   4813  1.1  skrll int
   4814  1.1  skrll main ()
   4815  1.1  skrll {
   4816  1.1  skrll extern uint64_t foo;
   4817  1.1  skrll   ;
   4818  1.1  skrll   return 0;
   4819  1.1  skrll }
   4820  1.1  skrll _ACEOF
   4821  1.1  skrll rm -f conftest.$ac_objext
   4822  1.1  skrll if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
   4823  1.1  skrll   (eval $ac_compile) 2>conftest.er1
   4824  1.1  skrll   ac_status=$?
   4825  1.1  skrll   grep -v '^ *+' conftest.er1 >conftest.err
   4826  1.1  skrll   rm -f conftest.er1
   4827  1.1  skrll   cat conftest.err >&5
   4828  1.1  skrll   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   4829  1.1  skrll   (exit $ac_status); } &&
   4830  1.1  skrll 	 { ac_try='test -z "$ac_c_werror_flag"
   4831  1.1  skrll 			 || test ! -s conftest.err'
   4832  1.1  skrll   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   4833  1.1  skrll   (eval $ac_try) 2>&5
   4834  1.1  skrll   ac_status=$?
   4835  1.1  skrll   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   4836  1.1  skrll   (exit $ac_status); }; } &&
   4837  1.1  skrll 	 { ac_try='test -s conftest.$ac_objext'
   4838  1.1  skrll   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   4839  1.1  skrll   (eval $ac_try) 2>&5
   4840  1.1  skrll   ac_status=$?
   4841  1.1  skrll   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   4842  1.1  skrll   (exit $ac_status); }; }; then
   4843  1.1  skrll   liberty_cv_uint64=uint64_t
   4844  1.1  skrll else
   4845  1.1  skrll   echo "$as_me: failed program was:" >&5
   4846  1.1  skrll sed 's/^/| /' conftest.$ac_ext >&5
   4847  1.1  skrll 
   4848  1.1  skrll cat >conftest.$ac_ext <<_ACEOF
   4849  1.1  skrll /* confdefs.h.  */
   4850  1.1  skrll _ACEOF
   4851  1.1  skrll cat confdefs.h >>conftest.$ac_ext
   4852  1.1  skrll cat >>conftest.$ac_ext <<_ACEOF
   4853  1.1  skrll /* end confdefs.h.  */
   4854  1.1  skrll #ifdef HAVE_LIMITS_H
   4855  1.1  skrll #include <limits.h>
   4856  1.1  skrll #endif
   4857  1.1  skrll #ifndef CHAR_BIT
   4858  1.1  skrll #define CHAR_BIT 8
   4859  1.1  skrll #endif
   4860  1.1  skrll int
   4861  1.1  skrll main ()
   4862  1.1  skrll {
   4863  1.1  skrll extern char foo[sizeof(long) * CHAR_BIT >= 64 ? 1 : -1];
   4864  1.1  skrll   ;
   4865  1.1  skrll   return 0;
   4866  1.1  skrll }
   4867  1.1  skrll _ACEOF
   4868  1.1  skrll rm -f conftest.$ac_objext
   4869  1.1  skrll if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
   4870  1.1  skrll   (eval $ac_compile) 2>conftest.er1
   4871  1.1  skrll   ac_status=$?
   4872  1.1  skrll   grep -v '^ *+' conftest.er1 >conftest.err
   4873  1.1  skrll   rm -f conftest.er1
   4874  1.1  skrll   cat conftest.err >&5
   4875  1.1  skrll   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   4876  1.1  skrll   (exit $ac_status); } &&
   4877  1.1  skrll 	 { ac_try='test -z "$ac_c_werror_flag"
   4878  1.1  skrll 			 || test ! -s conftest.err'
   4879  1.1  skrll   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   4880  1.1  skrll   (eval $ac_try) 2>&5
   4881  1.1  skrll   ac_status=$?
   4882  1.1  skrll   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   4883  1.1  skrll   (exit $ac_status); }; } &&
   4884  1.1  skrll 	 { ac_try='test -s conftest.$ac_objext'
   4885  1.1  skrll   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   4886  1.1  skrll   (eval $ac_try) 2>&5
   4887  1.1  skrll   ac_status=$?
   4888  1.1  skrll   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   4889  1.1  skrll   (exit $ac_status); }; }; then
   4890  1.1  skrll   liberty_cv_uint64="unsigned long"
   4891  1.1  skrll else
   4892  1.1  skrll   echo "$as_me: failed program was:" >&5
   4893  1.1  skrll sed 's/^/| /' conftest.$ac_ext >&5
   4894  1.1  skrll 
   4895  1.1  skrll cat >conftest.$ac_ext <<_ACEOF
   4896  1.1  skrll /* confdefs.h.  */
   4897  1.1  skrll _ACEOF
   4898  1.1  skrll cat confdefs.h >>conftest.$ac_ext
   4899  1.1  skrll cat >>conftest.$ac_ext <<_ACEOF
   4900  1.1  skrll /* end confdefs.h.  */
   4901  1.1  skrll #ifdef HAVE_LIMITS_H
   4902  1.1  skrll #include <limits.h>
   4903  1.1  skrll #endif
   4904  1.1  skrll #ifndef CHAR_BIT
   4905  1.1  skrll #define CHAR_BIT 8
   4906  1.1  skrll #endif
   4907  1.1  skrll int
   4908  1.1  skrll main ()
   4909  1.1  skrll {
   4910  1.1  skrll extern char foo[sizeof(long long) * CHAR_BIT >= 64 ? 1 : -1];
   4911  1.1  skrll   ;
   4912  1.1  skrll   return 0;
   4913  1.1  skrll }
   4914  1.1  skrll _ACEOF
   4915  1.1  skrll rm -f conftest.$ac_objext
   4916  1.1  skrll if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
   4917  1.1  skrll   (eval $ac_compile) 2>conftest.er1
   4918  1.1  skrll   ac_status=$?
   4919  1.1  skrll   grep -v '^ *+' conftest.er1 >conftest.err
   4920  1.1  skrll   rm -f conftest.er1
   4921  1.1  skrll   cat conftest.err >&5
   4922  1.1  skrll   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   4923  1.1  skrll   (exit $ac_status); } &&
   4924  1.1  skrll 	 { ac_try='test -z "$ac_c_werror_flag"
   4925  1.1  skrll 			 || test ! -s conftest.err'
   4926  1.1  skrll   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   4927  1.1  skrll   (eval $ac_try) 2>&5
   4928  1.1  skrll   ac_status=$?
   4929  1.1  skrll   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   4930  1.1  skrll   (exit $ac_status); }; } &&
   4931  1.1  skrll 	 { ac_try='test -s conftest.$ac_objext'
   4932  1.1  skrll   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   4933  1.1  skrll   (eval $ac_try) 2>&5
   4934  1.1  skrll   ac_status=$?
   4935  1.1  skrll   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   4936  1.1  skrll   (exit $ac_status); }; }; then
   4937  1.1  skrll   liberty_cv_uint64="unsigned long long"
   4938  1.1  skrll else
   4939  1.1  skrll   echo "$as_me: failed program was:" >&5
   4940  1.1  skrll sed 's/^/| /' conftest.$ac_ext >&5
   4941  1.1  skrll 
   4942  1.1  skrll liberty_cv_uint64=none
   4943  1.1  skrll fi
   4944  1.1  skrll rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
   4945  1.1  skrll fi
   4946  1.1  skrll rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
   4947  1.1  skrll fi
   4948  1.1  skrll rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
   4949  1.1  skrll fi
   4950  1.1  skrll 
   4951  1.1  skrll echo "$as_me:$LINENO: result: $liberty_cv_uint64" >&5
   4952  1.1  skrll echo "${ECHO_T}$liberty_cv_uint64" >&6
   4953  1.1  skrll if test "$liberty_cv_uint64" != none; then
   4954  1.1  skrll 
   4955  1.1  skrll cat >>confdefs.h <<_ACEOF
   4956  1.1  skrll #define UNSIGNED_64BIT_TYPE $liberty_cv_uint64
   4957  1.1  skrll _ACEOF
   4958  1.1  skrll 
   4959  1.1  skrll fi
   4960  1.1  skrll 
   4961  1.1  skrll # Given the above check, we always have uintptr_t or a fallback
   4962  1.1  skrll # definition.  So define HAVE_UINTPTR_T in case any imported code
   4963  1.1  skrll # relies on it.
   4964  1.1  skrll 
   4965  1.1  skrll cat >>confdefs.h <<\_ACEOF
   4966  1.1  skrll #define HAVE_UINTPTR_T 1
   4967  1.1  skrll _ACEOF
   4968  1.1  skrll 
   4969  1.1  skrll 
   4970  1.1  skrll echo "$as_me:$LINENO: checking for pid_t" >&5
   4971  1.1  skrll echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
   4972  1.1  skrll if test "${ac_cv_type_pid_t+set}" = set; then
   4973  1.1  skrll   echo $ECHO_N "(cached) $ECHO_C" >&6
   4974  1.1  skrll else
   4975  1.1  skrll   cat >conftest.$ac_ext <<_ACEOF
   4976  1.1  skrll /* confdefs.h.  */
   4977  1.1  skrll _ACEOF
   4978  1.1  skrll cat confdefs.h >>conftest.$ac_ext
   4979  1.1  skrll cat >>conftest.$ac_ext <<_ACEOF
   4980  1.1  skrll /* end confdefs.h.  */
   4981  1.1  skrll $ac_includes_default
   4982  1.1  skrll int
   4983  1.1  skrll main ()
   4984  1.1  skrll {
   4985  1.1  skrll if ((pid_t *) 0)
   4986  1.1  skrll   return 0;
   4987  1.1  skrll if (sizeof (pid_t))
   4988  1.1  skrll   return 0;
   4989  1.1  skrll   ;
   4990  1.1  skrll   return 0;
   4991  1.1  skrll }
   4992  1.1  skrll _ACEOF
   4993  1.1  skrll rm -f conftest.$ac_objext
   4994  1.1  skrll if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
   4995  1.1  skrll   (eval $ac_compile) 2>conftest.er1
   4996  1.1  skrll   ac_status=$?
   4997  1.1  skrll   grep -v '^ *+' conftest.er1 >conftest.err
   4998  1.1  skrll   rm -f conftest.er1
   4999  1.1  skrll   cat conftest.err >&5
   5000  1.1  skrll   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   5001  1.1  skrll   (exit $ac_status); } &&
   5002  1.1  skrll 	 { ac_try='test -z "$ac_c_werror_flag"
   5003  1.1  skrll 			 || test ! -s conftest.err'
   5004  1.1  skrll   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   5005  1.1  skrll   (eval $ac_try) 2>&5
   5006  1.1  skrll   ac_status=$?
   5007  1.1  skrll   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   5008  1.1  skrll   (exit $ac_status); }; } &&
   5009  1.1  skrll 	 { ac_try='test -s conftest.$ac_objext'
   5010  1.1  skrll   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   5011  1.1  skrll   (eval $ac_try) 2>&5
   5012  1.1  skrll   ac_status=$?
   5013  1.1  skrll   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   5014  1.1  skrll   (exit $ac_status); }; }; then
   5015  1.1  skrll   ac_cv_type_pid_t=yes
   5016  1.1  skrll else
   5017  1.1  skrll   echo "$as_me: failed program was:" >&5
   5018  1.1  skrll sed 's/^/| /' conftest.$ac_ext >&5
   5019  1.1  skrll 
   5020  1.1  skrll ac_cv_type_pid_t=no
   5021  1.1  skrll fi
   5022  1.1  skrll rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
   5023  1.1  skrll fi
   5024  1.1  skrll echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
   5025  1.1  skrll echo "${ECHO_T}$ac_cv_type_pid_t" >&6
   5026  1.1  skrll if test $ac_cv_type_pid_t = yes; then
   5027  1.1  skrll   :
   5028  1.1  skrll else
   5029  1.1  skrll 
   5030  1.1  skrll cat >>confdefs.h <<_ACEOF
   5031  1.1  skrll #define pid_t int
   5032  1.1  skrll _ACEOF
   5033  1.1  skrll 
   5034  1.1  skrll fi
   5035  1.1  skrll 
   5036  1.1  skrll 
   5037  1.1  skrll # This is the list of functions which libiberty will provide if they
   5038  1.1  skrll # are not available on the host.
   5039  1.1  skrll 
   5040  1.1  skrll funcs="asprintf"
   5041  1.1  skrll funcs="$funcs atexit"
   5042  1.1  skrll funcs="$funcs basename"
   5043  1.1  skrll funcs="$funcs bcmp"
   5044  1.1  skrll funcs="$funcs bcopy"
   5045  1.1  skrll funcs="$funcs bsearch"
   5046  1.1  skrll funcs="$funcs bzero"
   5047  1.1  skrll funcs="$funcs calloc"
   5048  1.1  skrll funcs="$funcs clock"
   5049  1.1  skrll funcs="$funcs ffs"
   5050  1.1  skrll funcs="$funcs getcwd"
   5051  1.1  skrll funcs="$funcs getpagesize"
   5052  1.1  skrll funcs="$funcs gettimeofday"
   5053  1.1  skrll funcs="$funcs index"
   5054  1.1  skrll funcs="$funcs insque"
   5055  1.1  skrll funcs="$funcs memchr"
   5056  1.1  skrll funcs="$funcs memcmp"
   5057  1.1  skrll funcs="$funcs memcpy"
   5058  1.1  skrll funcs="$funcs memmove"
   5059  1.1  skrll funcs="$funcs mempcpy"
   5060  1.1  skrll funcs="$funcs memset"
   5061  1.1  skrll funcs="$funcs mkstemps"
   5062  1.1  skrll funcs="$funcs putenv"
   5063  1.1  skrll funcs="$funcs random"
   5064  1.1  skrll funcs="$funcs rename"
   5065  1.1  skrll funcs="$funcs rindex"
   5066  1.1  skrll funcs="$funcs setenv"
   5067  1.1  skrll funcs="$funcs snprintf"
   5068  1.1  skrll funcs="$funcs sigsetmask"
   5069  1.1  skrll funcs="$funcs stpcpy"
   5070  1.1  skrll funcs="$funcs stpncpy"
   5071  1.1  skrll funcs="$funcs strcasecmp"
   5072  1.1  skrll funcs="$funcs strchr"
   5073  1.1  skrll funcs="$funcs strdup"
   5074  1.1  skrll funcs="$funcs strncasecmp"
   5075  1.1  skrll funcs="$funcs strndup"
   5076  1.1  skrll funcs="$funcs strrchr"
   5077  1.1  skrll funcs="$funcs strstr"
   5078  1.1  skrll funcs="$funcs strtod"
   5079  1.1  skrll funcs="$funcs strtol"
   5080  1.1  skrll funcs="$funcs strtoul"
   5081  1.1  skrll funcs="$funcs strverscmp"
   5082  1.1  skrll funcs="$funcs tmpnam"
   5083  1.1  skrll funcs="$funcs vasprintf"
   5084  1.1  skrll funcs="$funcs vfprintf"
   5085  1.1  skrll funcs="$funcs vprintf"
   5086  1.1  skrll funcs="$funcs vsnprintf"
   5087  1.1  skrll funcs="$funcs vsprintf"
   5088  1.1  skrll funcs="$funcs waitpid"
   5089  1.1  skrll 
   5090  1.1  skrll # Also in the old function.def file: alloca, vfork, getopt.
   5091  1.1  skrll 
   5092  1.1  skrll vars="sys_errlist sys_nerr sys_siglist"
   5093  1.1  skrll 
   5094  1.1  skrll checkfuncs="getrusage on_exit psignal strerror strsignal sysconf times sbrk gettimeofday"
   5095  1.1  skrll checkfuncs="$checkfuncs realpath canonicalize_file_name pstat_getstatic pstat_getdynamic sysmp"
   5096  1.1  skrll checkfuncs="$checkfuncs getsysinfo table sysctl wait3 wait4 __fsetlocking"
   5097  1.1  skrll 
   5098  1.1  skrll # These are neither executed nor required, but they help keep
   5099  1.1  skrll # autoheader happy without adding a bunch of text to acconfig.h.
   5100  1.1  skrll if test "x" = "y"; then
   5101  1.1  skrll 
   5102  1.1  skrll 
   5103  1.1  skrll 
   5104  1.1  skrll 
   5105  1.1  skrll 
   5106  1.1  skrll 
   5107  1.1  skrll 
   5108  1.1  skrll 
   5109  1.1  skrll 
   5110  1.1  skrll 
   5111  1.1  skrll 
   5112  1.1  skrll 
   5113  1.1  skrll 
   5114  1.1  skrll 
   5115  1.1  skrll 
   5116  1.1  skrll 
   5117  1.1  skrll 
   5118  1.1  skrll 
   5119  1.1  skrll 
   5120  1.1  skrll 
   5121  1.1  skrll 
   5122  1.1  skrll 
   5123  1.1  skrll 
   5124  1.1  skrll 
   5125  1.1  skrll 
   5126  1.1  skrll 
   5127  1.1  skrll 
   5128  1.1  skrll 
   5129  1.1  skrll 
   5130  1.1  skrll 
   5131  1.1  skrll 
   5132  1.1  skrll 
   5133  1.1  skrll 
   5134  1.1  skrll 
   5135  1.1  skrll 
   5136  1.1  skrll 
   5137  1.1  skrll 
   5138  1.1  skrll 
   5139  1.1  skrll 
   5140  1.1  skrll 
   5141  1.1  skrll 
   5142  1.1  skrll 
   5143  1.1  skrll 
   5144  1.1  skrll 
   5145  1.1  skrll 
   5146  1.1  skrll 
   5147  1.1  skrll 
   5148  1.1  skrll 
   5149  1.1  skrll 
   5150  1.1  skrll 
   5151  1.1  skrll 
   5152  1.1  skrll 
   5153  1.1  skrll 
   5154  1.1  skrll 
   5155  1.1  skrll 
   5156  1.1  skrll 
   5157  1.1  skrll 
   5158  1.1  skrll 
   5159  1.1  skrll 
   5160  1.1  skrll 
   5161  1.1  skrll 
   5162  1.1  skrll 
   5163  1.1  skrll 
   5164  1.1  skrll 
   5165  1.1  skrll 
   5166  1.1  skrll 
   5167  1.1  skrll 
   5168  1.1  skrll 
   5169  1.1  skrll 
   5170  1.1  skrll for ac_func in asprintf atexit basename bcmp bcopy bsearch bzero calloc clock \
   5171  1.1  skrll   getcwd getpagesize gettimeofday index insque mkstemps memchr memcmp memcpy \
   5172  1.1  skrll   memmove mempcpy memset putenv random rename rindex sigsetmask \
   5173  1.1  skrll   strcasecmp setenv stpcpy stpncpy strchr strdup strncasecmp strndup strrchr strstr \
   5174  1.1  skrll   strtod strtol strtoul strverscmp tmpnam vasprintf vfprintf vprintf \
   5175  1.1  skrll   vsprintf waitpid getrusage on_exit psignal strerror strsignal \
   5176  1.1  skrll   sysconf times sbrk gettimeofday ffs snprintf vsnprintf \
   5177  1.1  skrll   pstat_getstatic pstat_getdynamic sysmp getsysinfo table sysctl wait3 wait4 \
   5178  1.1  skrll   realpath canonicalize_file_name __fsetlocking
   5179  1.1  skrll do
   5180  1.1  skrll as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
   5181  1.1  skrll echo "$as_me:$LINENO: checking for $ac_func" >&5
   5182  1.1  skrll echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
   5183  1.1  skrll if eval "test \"\${$as_ac_var+set}\" = set"; then
   5184  1.1  skrll   echo $ECHO_N "(cached) $ECHO_C" >&6
   5185  1.1  skrll else
   5186  1.1  skrll   if test x$gcc_no_link = xyes; then
   5187  1.1  skrll   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
   5188  1.1  skrll echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
   5189  1.1  skrll    { (exit 1); exit 1; }; }
   5190  1.1  skrll fi
   5191  1.1  skrll cat >conftest.$ac_ext <<_ACEOF
   5192  1.1  skrll /* confdefs.h.  */
   5193  1.1  skrll _ACEOF
   5194  1.1  skrll cat confdefs.h >>conftest.$ac_ext
   5195  1.1  skrll cat >>conftest.$ac_ext <<_ACEOF
   5196  1.1  skrll /* end confdefs.h.  */
   5197  1.1  skrll /* System header to define __stub macros and hopefully few prototypes,
   5198  1.1  skrll     which can conflict with char $ac_func (); below.
   5199  1.1  skrll     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   5200  1.1  skrll     <limits.h> exists even on freestanding compilers.  Under hpux,
   5201  1.1  skrll     including <limits.h> includes <sys/time.h> and causes problems
   5202  1.1  skrll     checking for functions defined therein.  */
   5203  1.1  skrll #if defined (__STDC__) && !defined (_HPUX_SOURCE)
   5204  1.1  skrll # include <limits.h>
   5205  1.1  skrll #else
   5206  1.1  skrll # include <assert.h>
   5207  1.1  skrll #endif
   5208  1.1  skrll /* Override any gcc2 internal prototype to avoid an error.  */
   5209  1.1  skrll #ifdef __cplusplus
   5210  1.1  skrll extern "C"
   5211  1.1  skrll {
   5212  1.1  skrll #endif
   5213  1.1  skrll /* We use char because int might match the return type of a gcc2
   5214  1.1  skrll    builtin and then its argument prototype would still apply.  */
   5215  1.1  skrll char $ac_func ();
   5216  1.1  skrll /* The GNU C library defines this for functions which it implements
   5217  1.1  skrll     to always fail with ENOSYS.  Some functions are actually named
   5218  1.1  skrll     something starting with __ and the normal name is an alias.  */
   5219  1.1  skrll #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
   5220  1.1  skrll choke me
   5221  1.1  skrll #else
   5222  1.1  skrll char (*f) () = $ac_func;
   5223  1.1  skrll #endif
   5224  1.1  skrll #ifdef __cplusplus
   5225  1.1  skrll }
   5226  1.1  skrll #endif
   5227  1.1  skrll 
   5228  1.1  skrll int
   5229  1.1  skrll main ()
   5230  1.1  skrll {
   5231  1.1  skrll return f != $ac_func;
   5232  1.1  skrll   ;
   5233  1.1  skrll   return 0;
   5234  1.1  skrll }
   5235  1.1  skrll _ACEOF
   5236  1.1  skrll rm -f conftest.$ac_objext conftest$ac_exeext
   5237  1.1  skrll if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
   5238  1.1  skrll   (eval $ac_link) 2>conftest.er1
   5239  1.1  skrll   ac_status=$?
   5240  1.1  skrll   grep -v '^ *+' conftest.er1 >conftest.err
   5241  1.1  skrll   rm -f conftest.er1
   5242  1.1  skrll   cat conftest.err >&5
   5243  1.1  skrll   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   5244  1.1  skrll   (exit $ac_status); } &&
   5245  1.1  skrll 	 { ac_try='test -z "$ac_c_werror_flag"
   5246  1.1  skrll 			 || test ! -s conftest.err'
   5247  1.1  skrll   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   5248  1.1  skrll   (eval $ac_try) 2>&5
   5249  1.1  skrll   ac_status=$?
   5250  1.1  skrll   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   5251  1.1  skrll   (exit $ac_status); }; } &&
   5252  1.1  skrll 	 { ac_try='test -s conftest$ac_exeext'
   5253  1.1  skrll   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   5254  1.1  skrll   (eval $ac_try) 2>&5
   5255  1.1  skrll   ac_status=$?
   5256  1.1  skrll   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   5257  1.1  skrll   (exit $ac_status); }; }; then
   5258  1.1  skrll   eval "$as_ac_var=yes"
   5259  1.1  skrll else
   5260  1.1  skrll   echo "$as_me: failed program was:" >&5
   5261  1.1  skrll sed 's/^/| /' conftest.$ac_ext >&5
   5262  1.1  skrll 
   5263  1.1  skrll eval "$as_ac_var=no"
   5264  1.1  skrll fi
   5265  1.1  skrll rm -f conftest.err conftest.$ac_objext \
   5266  1.1  skrll       conftest$ac_exeext conftest.$ac_ext
   5267  1.1  skrll fi
   5268  1.1  skrll echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
   5269  1.1  skrll echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
   5270  1.1  skrll if test `eval echo '${'$as_ac_var'}'` = yes; then
   5271  1.1  skrll   cat >>confdefs.h <<_ACEOF
   5272  1.1  skrll #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
   5273  1.1  skrll _ACEOF
   5274  1.1  skrll 
   5275  1.1  skrll fi
   5276  1.1  skrll done
   5277  1.1  skrll 
   5278  1.1  skrll   echo "$as_me:$LINENO: checking whether basename is declared" >&5
   5279  1.1  skrll echo $ECHO_N "checking whether basename is declared... $ECHO_C" >&6
   5280  1.1  skrll if test "${ac_cv_have_decl_basename+set}" = set; then
   5281  1.1  skrll   echo $ECHO_N "(cached) $ECHO_C" >&6
   5282  1.1  skrll else
   5283  1.1  skrll   cat >conftest.$ac_ext <<_ACEOF
   5284  1.1  skrll /* confdefs.h.  */
   5285  1.1  skrll _ACEOF
   5286  1.1  skrll cat confdefs.h >>conftest.$ac_ext
   5287  1.1  skrll cat >>conftest.$ac_ext <<_ACEOF
   5288  1.1  skrll /* end confdefs.h.  */
   5289  1.1  skrll $ac_includes_default
   5290  1.1  skrll int
   5291  1.1  skrll main ()
   5292  1.1  skrll {
   5293  1.1  skrll #ifndef basename
   5294  1.1  skrll   char *p = (char *) basename;
   5295  1.1  skrll #endif
   5296  1.1  skrll 
   5297  1.1  skrll   ;
   5298  1.1  skrll   return 0;
   5299  1.1  skrll }
   5300  1.1  skrll _ACEOF
   5301  1.1  skrll rm -f conftest.$ac_objext
   5302  1.1  skrll if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
   5303  1.1  skrll   (eval $ac_compile) 2>conftest.er1
   5304  1.1  skrll   ac_status=$?
   5305  1.1  skrll   grep -v '^ *+' conftest.er1 >conftest.err
   5306  1.1  skrll   rm -f conftest.er1
   5307  1.1  skrll   cat conftest.err >&5
   5308  1.1  skrll   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   5309  1.1  skrll   (exit $ac_status); } &&
   5310  1.1  skrll 	 { ac_try='test -z "$ac_c_werror_flag"
   5311  1.1  skrll 			 || test ! -s conftest.err'
   5312  1.1  skrll   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   5313  1.1  skrll   (eval $ac_try) 2>&5
   5314  1.1  skrll   ac_status=$?
   5315  1.1  skrll   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   5316  1.1  skrll   (exit $ac_status); }; } &&
   5317  1.1  skrll 	 { ac_try='test -s conftest.$ac_objext'
   5318  1.1  skrll   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   5319  1.1  skrll   (eval $ac_try) 2>&5
   5320  1.1  skrll   ac_status=$?
   5321  1.1  skrll   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   5322  1.1  skrll   (exit $ac_status); }; }; then
   5323  1.1  skrll   ac_cv_have_decl_basename=yes
   5324  1.1  skrll else
   5325  1.1  skrll   echo "$as_me: failed program was:" >&5
   5326  1.1  skrll sed 's/^/| /' conftest.$ac_ext >&5
   5327  1.1  skrll 
   5328  1.1  skrll ac_cv_have_decl_basename=no
   5329  1.1  skrll fi
   5330  1.1  skrll rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
   5331  1.1  skrll fi
   5332  1.1  skrll echo "$as_me:$LINENO: result: $ac_cv_have_decl_basename" >&5
   5333  1.1  skrll echo "${ECHO_T}$ac_cv_have_decl_basename" >&6
   5334  1.1  skrll if test $ac_cv_have_decl_basename = yes; then
   5335  1.1  skrll 
   5336  1.1  skrll cat >>confdefs.h <<_ACEOF
   5337  1.1  skrll #define HAVE_DECL_BASENAME 1
   5338  1.1  skrll _ACEOF
   5339  1.1  skrll 
   5340  1.1  skrll 
   5341  1.1  skrll else
   5342  1.1  skrll   cat >>confdefs.h <<_ACEOF
   5343  1.1  skrll #define HAVE_DECL_BASENAME 0
   5344  1.1  skrll _ACEOF
   5345  1.1  skrll 
   5346  1.1  skrll 
   5347  1.1  skrll fi
   5348  1.1  skrll echo "$as_me:$LINENO: checking whether ffs is declared" >&5
   5349  1.1  skrll echo $ECHO_N "checking whether ffs is declared... $ECHO_C" >&6
   5350  1.1  skrll if test "${ac_cv_have_decl_ffs+set}" = set; then
   5351  1.1  skrll   echo $ECHO_N "(cached) $ECHO_C" >&6
   5352  1.1  skrll else
   5353  1.1  skrll   cat >conftest.$ac_ext <<_ACEOF
   5354  1.1  skrll /* confdefs.h.  */
   5355  1.1  skrll _ACEOF
   5356  1.1  skrll cat confdefs.h >>conftest.$ac_ext
   5357  1.1  skrll cat >>conftest.$ac_ext <<_ACEOF
   5358  1.1  skrll /* end confdefs.h.  */
   5359  1.1  skrll $ac_includes_default
   5360  1.1  skrll int
   5361  1.1  skrll main ()
   5362  1.1  skrll {
   5363  1.1  skrll #ifndef ffs
   5364  1.1  skrll   char *p = (char *) ffs;
   5365  1.1  skrll #endif
   5366  1.1  skrll 
   5367  1.1  skrll   ;
   5368  1.1  skrll   return 0;
   5369  1.1  skrll }
   5370  1.1  skrll _ACEOF
   5371  1.1  skrll rm -f conftest.$ac_objext
   5372  1.1  skrll if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
   5373  1.1  skrll   (eval $ac_compile) 2>conftest.er1
   5374  1.1  skrll   ac_status=$?
   5375  1.1  skrll   grep -v '^ *+' conftest.er1 >conftest.err
   5376  1.1  skrll   rm -f conftest.er1
   5377  1.1  skrll   cat conftest.err >&5
   5378  1.1  skrll   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   5379  1.1  skrll   (exit $ac_status); } &&
   5380  1.1  skrll 	 { ac_try='test -z "$ac_c_werror_flag"
   5381  1.1  skrll 			 || test ! -s conftest.err'
   5382  1.1  skrll   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   5383  1.1  skrll   (eval $ac_try) 2>&5
   5384  1.1  skrll   ac_status=$?
   5385  1.1  skrll   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   5386  1.1  skrll   (exit $ac_status); }; } &&
   5387  1.1  skrll 	 { ac_try='test -s conftest.$ac_objext'
   5388  1.1  skrll   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   5389  1.1  skrll   (eval $ac_try) 2>&5
   5390  1.1  skrll   ac_status=$?
   5391  1.1  skrll   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   5392  1.1  skrll   (exit $ac_status); }; }; then
   5393  1.1  skrll   ac_cv_have_decl_ffs=yes
   5394  1.1  skrll else
   5395  1.1  skrll   echo "$as_me: failed program was:" >&5
   5396  1.1  skrll sed 's/^/| /' conftest.$ac_ext >&5
   5397  1.1  skrll 
   5398  1.1  skrll ac_cv_have_decl_ffs=no
   5399  1.1  skrll fi
   5400  1.1  skrll rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
   5401  1.1  skrll fi
   5402  1.1  skrll echo "$as_me:$LINENO: result: $ac_cv_have_decl_ffs" >&5
   5403  1.1  skrll echo "${ECHO_T}$ac_cv_have_decl_ffs" >&6
   5404  1.1  skrll if test $ac_cv_have_decl_ffs = yes; then
   5405  1.1  skrll 
   5406  1.1  skrll cat >>confdefs.h <<_ACEOF
   5407  1.1  skrll #define HAVE_DECL_FFS 1
   5408  1.1  skrll _ACEOF
   5409  1.1  skrll 
   5410  1.1  skrll 
   5411  1.1  skrll else
   5412  1.1  skrll   cat >>confdefs.h <<_ACEOF
   5413  1.1  skrll #define HAVE_DECL_FFS 0
   5414  1.1  skrll _ACEOF
   5415  1.1  skrll 
   5416  1.1  skrll 
   5417  1.1  skrll fi
   5418  1.1  skrll echo "$as_me:$LINENO: checking whether asprintf is declared" >&5
   5419  1.1  skrll echo $ECHO_N "checking whether asprintf is declared... $ECHO_C" >&6
   5420  1.1  skrll if test "${ac_cv_have_decl_asprintf+set}" = set; then
   5421  1.1  skrll   echo $ECHO_N "(cached) $ECHO_C" >&6
   5422  1.1  skrll else
   5423  1.1  skrll   cat >conftest.$ac_ext <<_ACEOF
   5424  1.1  skrll /* confdefs.h.  */
   5425  1.1  skrll _ACEOF
   5426  1.1  skrll cat confdefs.h >>conftest.$ac_ext
   5427  1.1  skrll cat >>conftest.$ac_ext <<_ACEOF
   5428  1.1  skrll /* end confdefs.h.  */
   5429  1.1  skrll $ac_includes_default
   5430  1.1  skrll int
   5431  1.1  skrll main ()
   5432  1.1  skrll {
   5433  1.1  skrll #ifndef asprintf
   5434  1.1  skrll   char *p = (char *) asprintf;
   5435  1.1  skrll #endif
   5436  1.1  skrll 
   5437  1.1  skrll   ;
   5438  1.1  skrll   return 0;
   5439  1.1  skrll }
   5440  1.1  skrll _ACEOF
   5441  1.1  skrll rm -f conftest.$ac_objext
   5442  1.1  skrll if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
   5443  1.1  skrll   (eval $ac_compile) 2>conftest.er1
   5444  1.1  skrll   ac_status=$?
   5445  1.1  skrll   grep -v '^ *+' conftest.er1 >conftest.err
   5446  1.1  skrll   rm -f conftest.er1
   5447  1.1  skrll   cat conftest.err >&5
   5448  1.1  skrll   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   5449  1.1  skrll   (exit $ac_status); } &&
   5450  1.1  skrll 	 { ac_try='test -z "$ac_c_werror_flag"
   5451  1.1  skrll 			 || test ! -s conftest.err'
   5452  1.1  skrll   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   5453  1.1  skrll   (eval $ac_try) 2>&5
   5454  1.1  skrll   ac_status=$?
   5455  1.1  skrll   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   5456  1.1  skrll   (exit $ac_status); }; } &&
   5457  1.1  skrll 	 { ac_try='test -s conftest.$ac_objext'
   5458  1.1  skrll   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   5459  1.1  skrll   (eval $ac_try) 2>&5
   5460  1.1  skrll   ac_status=$?
   5461  1.1  skrll   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   5462  1.1  skrll   (exit $ac_status); }; }; then
   5463  1.1  skrll   ac_cv_have_decl_asprintf=yes
   5464  1.1  skrll else
   5465  1.1  skrll   echo "$as_me: failed program was:" >&5
   5466  1.1  skrll sed 's/^/| /' conftest.$ac_ext >&5
   5467  1.1  skrll 
   5468  1.1  skrll ac_cv_have_decl_asprintf=no
   5469  1.1  skrll fi
   5470  1.1  skrll rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
   5471  1.1  skrll fi
   5472  1.1  skrll echo "$as_me:$LINENO: result: $ac_cv_have_decl_asprintf" >&5
   5473  1.1  skrll echo "${ECHO_T}$ac_cv_have_decl_asprintf" >&6
   5474  1.1  skrll if test $ac_cv_have_decl_asprintf = yes; then
   5475  1.1  skrll 
   5476  1.1  skrll cat >>confdefs.h <<_ACEOF
   5477  1.1  skrll #define HAVE_DECL_ASPRINTF 1
   5478  1.1  skrll _ACEOF
   5479  1.1  skrll 
   5480  1.1  skrll 
   5481  1.1  skrll else
   5482  1.1  skrll   cat >>confdefs.h <<_ACEOF
   5483  1.1  skrll #define HAVE_DECL_ASPRINTF 0
   5484  1.1  skrll _ACEOF
   5485  1.1  skrll 
   5486  1.1  skrll 
   5487  1.1  skrll fi
   5488  1.1  skrll echo "$as_me:$LINENO: checking whether vasprintf is declared" >&5
   5489  1.1  skrll echo $ECHO_N "checking whether vasprintf is declared... $ECHO_C" >&6
   5490  1.1  skrll if test "${ac_cv_have_decl_vasprintf+set}" = set; then
   5491  1.1  skrll   echo $ECHO_N "(cached) $ECHO_C" >&6
   5492  1.1  skrll else
   5493  1.1  skrll   cat >conftest.$ac_ext <<_ACEOF
   5494  1.1  skrll /* confdefs.h.  */
   5495  1.1  skrll _ACEOF
   5496  1.1  skrll cat confdefs.h >>conftest.$ac_ext
   5497  1.1  skrll cat >>conftest.$ac_ext <<_ACEOF
   5498  1.1  skrll /* end confdefs.h.  */
   5499  1.1  skrll $ac_includes_default
   5500  1.1  skrll int
   5501  1.1  skrll main ()
   5502  1.1  skrll {
   5503  1.1  skrll #ifndef vasprintf
   5504  1.1  skrll   char *p = (char *) vasprintf;
   5505  1.1  skrll #endif
   5506  1.1  skrll 
   5507  1.1  skrll   ;
   5508  1.1  skrll   return 0;
   5509  1.1  skrll }
   5510  1.1  skrll _ACEOF
   5511  1.1  skrll rm -f conftest.$ac_objext
   5512  1.1  skrll if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
   5513  1.1  skrll   (eval $ac_compile) 2>conftest.er1
   5514  1.1  skrll   ac_status=$?
   5515  1.1  skrll   grep -v '^ *+' conftest.er1 >conftest.err
   5516  1.1  skrll   rm -f conftest.er1
   5517  1.1  skrll   cat conftest.err >&5
   5518  1.1  skrll   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   5519  1.1  skrll   (exit $ac_status); } &&
   5520  1.1  skrll 	 { ac_try='test -z "$ac_c_werror_flag"
   5521  1.1  skrll 			 || test ! -s conftest.err'
   5522  1.1  skrll   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   5523  1.1  skrll   (eval $ac_try) 2>&5
   5524  1.1  skrll   ac_status=$?
   5525  1.1  skrll   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   5526  1.1  skrll   (exit $ac_status); }; } &&
   5527  1.1  skrll 	 { ac_try='test -s conftest.$ac_objext'
   5528  1.1  skrll   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   5529  1.1  skrll   (eval $ac_try) 2>&5
   5530  1.1  skrll   ac_status=$?
   5531  1.1  skrll   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   5532  1.1  skrll   (exit $ac_status); }; }; then
   5533  1.1  skrll   ac_cv_have_decl_vasprintf=yes
   5534  1.1  skrll else
   5535  1.1  skrll   echo "$as_me: failed program was:" >&5
   5536  1.1  skrll sed 's/^/| /' conftest.$ac_ext >&5
   5537  1.1  skrll 
   5538  1.1  skrll ac_cv_have_decl_vasprintf=no
   5539  1.1  skrll fi
   5540  1.1  skrll rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
   5541  1.1  skrll fi
   5542  1.1  skrll echo "$as_me:$LINENO: result: $ac_cv_have_decl_vasprintf" >&5
   5543  1.1  skrll echo "${ECHO_T}$ac_cv_have_decl_vasprintf" >&6
   5544  1.1  skrll if test $ac_cv_have_decl_vasprintf = yes; then
   5545  1.1  skrll 
   5546  1.1  skrll cat >>confdefs.h <<_ACEOF
   5547  1.1  skrll #define HAVE_DECL_VASPRINTF 1
   5548  1.1  skrll _ACEOF
   5549  1.1  skrll 
   5550  1.1  skrll 
   5551  1.1  skrll else
   5552  1.1  skrll   cat >>confdefs.h <<_ACEOF
   5553  1.1  skrll #define HAVE_DECL_VASPRINTF 0
   5554  1.1  skrll _ACEOF
   5555  1.1  skrll 
   5556  1.1  skrll 
   5557  1.1  skrll fi
   5558  1.1  skrll echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
   5559  1.1  skrll echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6
   5560  1.1  skrll if test "${ac_cv_have_decl_snprintf+set}" = set; then
   5561  1.1  skrll   echo $ECHO_N "(cached) $ECHO_C" >&6
   5562  1.1  skrll else
   5563  1.1  skrll   cat >conftest.$ac_ext <<_ACEOF
   5564  1.1  skrll /* confdefs.h.  */
   5565  1.1  skrll _ACEOF
   5566  1.1  skrll cat confdefs.h >>conftest.$ac_ext
   5567  1.1  skrll cat >>conftest.$ac_ext <<_ACEOF
   5568  1.1  skrll /* end confdefs.h.  */
   5569  1.1  skrll $ac_includes_default
   5570  1.1  skrll int
   5571  1.1  skrll main ()
   5572  1.1  skrll {
   5573  1.1  skrll #ifndef snprintf
   5574  1.1  skrll   char *p = (char *) snprintf;
   5575  1.1  skrll #endif
   5576  1.1  skrll 
   5577  1.1  skrll   ;
   5578  1.1  skrll   return 0;
   5579  1.1  skrll }
   5580  1.1  skrll _ACEOF
   5581  1.1  skrll rm -f conftest.$ac_objext
   5582  1.1  skrll if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
   5583  1.1  skrll   (eval $ac_compile) 2>conftest.er1
   5584  1.1  skrll   ac_status=$?
   5585  1.1  skrll   grep -v '^ *+' conftest.er1 >conftest.err
   5586  1.1  skrll   rm -f conftest.er1
   5587  1.1  skrll   cat conftest.err >&5
   5588  1.1  skrll   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   5589  1.1  skrll   (exit $ac_status); } &&
   5590  1.1  skrll 	 { ac_try='test -z "$ac_c_werror_flag"
   5591  1.1  skrll 			 || test ! -s conftest.err'
   5592  1.1  skrll   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   5593  1.1  skrll   (eval $ac_try) 2>&5
   5594  1.1  skrll   ac_status=$?
   5595  1.1  skrll   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   5596  1.1  skrll   (exit $ac_status); }; } &&
   5597  1.1  skrll 	 { ac_try='test -s conftest.$ac_objext'
   5598  1.1  skrll   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   5599  1.1  skrll   (eval $ac_try) 2>&5
   5600  1.1  skrll   ac_status=$?
   5601  1.1  skrll   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   5602  1.1  skrll   (exit $ac_status); }; }; then
   5603  1.1  skrll   ac_cv_have_decl_snprintf=yes
   5604  1.1  skrll else
   5605  1.1  skrll   echo "$as_me: failed program was:" >&5
   5606  1.1  skrll sed 's/^/| /' conftest.$ac_ext >&5
   5607  1.1  skrll 
   5608  1.1  skrll ac_cv_have_decl_snprintf=no
   5609  1.1  skrll fi
   5610  1.1  skrll rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
   5611  1.1  skrll fi
   5612  1.1  skrll echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
   5613  1.1  skrll echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6
   5614  1.1  skrll if test $ac_cv_have_decl_snprintf = yes; then
   5615  1.1  skrll 
   5616  1.1  skrll cat >>confdefs.h <<_ACEOF
   5617  1.1  skrll #define HAVE_DECL_SNPRINTF 1
   5618  1.1  skrll _ACEOF
   5619  1.1  skrll 
   5620  1.1  skrll 
   5621  1.1  skrll else
   5622  1.1  skrll   cat >>confdefs.h <<_ACEOF
   5623  1.1  skrll #define HAVE_DECL_SNPRINTF 0
   5624  1.1  skrll _ACEOF
   5625  1.1  skrll 
   5626  1.1  skrll 
   5627  1.1  skrll fi
   5628  1.1  skrll echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
   5629  1.1  skrll echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6
   5630  1.1  skrll if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
   5631  1.1  skrll   echo $ECHO_N "(cached) $ECHO_C" >&6
   5632  1.1  skrll else
   5633  1.1  skrll   cat >conftest.$ac_ext <<_ACEOF
   5634  1.1  skrll /* confdefs.h.  */
   5635  1.1  skrll _ACEOF
   5636  1.1  skrll cat confdefs.h >>conftest.$ac_ext
   5637  1.1  skrll cat >>conftest.$ac_ext <<_ACEOF
   5638  1.1  skrll /* end confdefs.h.  */
   5639  1.1  skrll $ac_includes_default
   5640  1.1  skrll int
   5641  1.1  skrll main ()
   5642  1.1  skrll {
   5643  1.1  skrll #ifndef vsnprintf
   5644  1.1  skrll   char *p = (char *) vsnprintf;
   5645  1.1  skrll #endif
   5646  1.1  skrll 
   5647  1.1  skrll   ;
   5648  1.1  skrll   return 0;
   5649  1.1  skrll }
   5650  1.1  skrll _ACEOF
   5651  1.1  skrll rm -f conftest.$ac_objext
   5652  1.1  skrll if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
   5653  1.1  skrll   (eval $ac_compile) 2>conftest.er1
   5654  1.1  skrll   ac_status=$?
   5655  1.1  skrll   grep -v '^ *+' conftest.er1 >conftest.err
   5656  1.1  skrll   rm -f conftest.er1
   5657  1.1  skrll   cat conftest.err >&5
   5658  1.1  skrll   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   5659  1.1  skrll   (exit $ac_status); } &&
   5660  1.1  skrll 	 { ac_try='test -z "$ac_c_werror_flag"
   5661  1.1  skrll 			 || test ! -s conftest.err'
   5662  1.1  skrll   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   5663  1.1  skrll   (eval $ac_try) 2>&5
   5664  1.1  skrll   ac_status=$?
   5665  1.1  skrll   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   5666  1.1  skrll   (exit $ac_status); }; } &&
   5667  1.1  skrll 	 { ac_try='test -s conftest.$ac_objext'
   5668  1.1  skrll   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   5669  1.1  skrll   (eval $ac_try) 2>&5
   5670  1.1  skrll   ac_status=$?
   5671  1.1  skrll   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   5672  1.1  skrll   (exit $ac_status); }; }; then
   5673  1.1  skrll   ac_cv_have_decl_vsnprintf=yes
   5674  1.1  skrll else
   5675  1.1  skrll   echo "$as_me: failed program was:" >&5
   5676  1.1  skrll sed 's/^/| /' conftest.$ac_ext >&5
   5677  1.1  skrll 
   5678  1.1  skrll ac_cv_have_decl_vsnprintf=no
   5679  1.1  skrll fi
   5680  1.1  skrll rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
   5681  1.1  skrll fi
   5682  1.1  skrll echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
   5683  1.1  skrll echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6
   5684  1.1  skrll if test $ac_cv_have_decl_vsnprintf = yes; then
   5685  1.1  skrll 
   5686  1.1  skrll cat >>confdefs.h <<_ACEOF
   5687  1.1  skrll #define HAVE_DECL_VSNPRINTF 1
   5688  1.1  skrll _ACEOF
   5689  1.1  skrll 
   5690  1.1  skrll 
   5691  1.1  skrll else
   5692  1.1  skrll   cat >>confdefs.h <<_ACEOF
   5693  1.1  skrll #define HAVE_DECL_VSNPRINTF 0
   5694  1.1  skrll _ACEOF
   5695  1.1  skrll 
   5696  1.1  skrll 
   5697  1.1  skrll fi
   5698  1.1  skrll 
   5699  1.1  skrll 
   5700  1.1  skrll 
   5701  1.1  skrll cat >>confdefs.h <<\_ACEOF
   5702  1.1  skrll #define HAVE_SYS_ERRLIST 1
   5703  1.1  skrll _ACEOF
   5704  1.1  skrll 
   5705  1.1  skrll 
   5706  1.1  skrll cat >>confdefs.h <<\_ACEOF
   5707  1.1  skrll #define HAVE_SYS_NERR 1
   5708  1.1  skrll _ACEOF
   5709  1.1  skrll 
   5710  1.1  skrll 
   5711  1.1  skrll cat >>confdefs.h <<\_ACEOF
   5712  1.1  skrll #define HAVE_SYS_SIGLIST 1
   5713  1.1  skrll _ACEOF
   5714  1.1  skrll 
   5715  1.1  skrll fi
   5716  1.1  skrll 
   5717  1.1  skrll # For each of these functions, if the host does not provide the
   5718  1.1  skrll # function we want to put FN.o in LIBOBJS, and if the host does
   5719  1.1  skrll # provide the function, we want to define HAVE_FN in config.h.
   5720  1.1  skrll 
   5721  1.1  skrll setobjs=
   5722  1.1  skrll CHECK=
   5723  1.1  skrll target_header_dir=
   5724  1.1  skrll if test -n "${with_target_subdir}"; then
   5725  1.1  skrll 
   5726  1.1  skrll   # We are being configured as a target library.  AC_REPLACE_FUNCS
   5727  1.1  skrll   # may not work correctly, because the compiler may not be able to
   5728  1.1  skrll   # link executables.  Note that we may still be being configured
   5729  1.1  skrll   # native.
   5730  1.1  skrll 
   5731  1.1  skrll   # If we are being configured for newlib, we know which functions
   5732  1.1  skrll   # newlib provide and which ones we will be expected to provide.
   5733  1.1  skrll 
   5734  1.1  skrll   if test "x${with_newlib}" = "xyes"; then
   5735  1.1  skrll     case $LIBOBJS in
   5736  1.1  skrll     "asprintf.$ac_objext"   | \
   5737  1.1  skrll   *" asprintf.$ac_objext"   | \
   5738  1.1  skrll     "asprintf.$ac_objext "* | \
   5739  1.1  skrll   *" asprintf.$ac_objext "* ) ;;
   5740  1.1  skrll   *) LIBOBJS="$LIBOBJS asprintf.$ac_objext" ;;
   5741  1.1  skrll esac
   5742  1.1  skrll 
   5743  1.1  skrll     case $LIBOBJS in
   5744  1.1  skrll     "basename.$ac_objext"   | \
   5745  1.1  skrll   *" basename.$ac_objext"   | \
   5746  1.1  skrll     "basename.$ac_objext "* | \
   5747  1.1  skrll   *" basename.$ac_objext "* ) ;;
   5748  1.1  skrll   *) LIBOBJS="$LIBOBJS basename.$ac_objext" ;;
   5749  1.1  skrll esac
   5750  1.1  skrll 
   5751  1.1  skrll     case $LIBOBJS in
   5752  1.1  skrll     "insque.$ac_objext"   | \
   5753  1.1  skrll   *" insque.$ac_objext"   | \
   5754  1.1  skrll     "insque.$ac_objext "* | \
   5755  1.1  skrll   *" insque.$ac_objext "* ) ;;
   5756  1.1  skrll   *) LIBOBJS="$LIBOBJS insque.$ac_objext" ;;
   5757  1.1  skrll esac
   5758  1.1  skrll 
   5759  1.1  skrll     case $LIBOBJS in
   5760  1.1  skrll     "random.$ac_objext"   | \
   5761  1.1  skrll   *" random.$ac_objext"   | \
   5762  1.1  skrll     "random.$ac_objext "* | \
   5763  1.1  skrll   *" random.$ac_objext "* ) ;;
   5764  1.1  skrll   *) LIBOBJS="$LIBOBJS random.$ac_objext" ;;
   5765  1.1  skrll esac
   5766  1.1  skrll 
   5767  1.1  skrll     case $LIBOBJS in
   5768  1.1  skrll     "strdup.$ac_objext"   | \
   5769  1.1  skrll   *" strdup.$ac_objext"   | \
   5770  1.1  skrll     "strdup.$ac_objext "* | \
   5771  1.1  skrll   *" strdup.$ac_objext "* ) ;;
   5772  1.1  skrll   *) LIBOBJS="$LIBOBJS strdup.$ac_objext" ;;
   5773  1.1  skrll esac
   5774  1.1  skrll 
   5775  1.1  skrll     case $LIBOBJS in
   5776  1.1  skrll     "vasprintf.$ac_objext"   | \
   5777  1.1  skrll   *" vasprintf.$ac_objext"   | \
   5778  1.1  skrll     "vasprintf.$ac_objext "* | \
   5779  1.1  skrll   *" vasprintf.$ac_objext "* ) ;;
   5780  1.1  skrll   *) LIBOBJS="$LIBOBJS vasprintf.$ac_objext" ;;
   5781  1.1  skrll esac
   5782  1.1  skrll 
   5783  1.1  skrll 
   5784  1.1  skrll     for f in $funcs; do
   5785  1.1  skrll       case "$f" in
   5786  1.1  skrll 	asprintf | basename | insque | random | strdup | vasprintf)
   5787  1.1  skrll 	  ;;
   5788  1.1  skrll 	*)
   5789  1.1  skrll 	  n=HAVE_`echo $f | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
   5790  1.1  skrll 	  cat >>confdefs.h <<_ACEOF
   5791  1.1  skrll #define $n 1
   5792  1.1  skrll _ACEOF
   5793  1.1  skrll 
   5794  1.1  skrll 	  ;;
   5795  1.1  skrll       esac
   5796  1.1  skrll     done
   5797  1.1  skrll 
   5798  1.1  skrll     # newlib doesnt provide any of the variables in $vars, so we
   5799  1.1  skrll     # dont have to check them here.
   5800  1.1  skrll 
   5801  1.1  skrll     # Of the functions in $checkfuncs, newlib only has strerror.
   5802  1.1  skrll     cat >>confdefs.h <<\_ACEOF
   5803  1.1  skrll #define HAVE_STRERROR 1
   5804  1.1  skrll _ACEOF
   5805  1.1  skrll 
   5806  1.1  skrll 
   5807  1.1  skrll     setobjs=yes
   5808  1.1  skrll 
   5809  1.1  skrll   fi
   5810  1.1  skrll 
   5811  1.1  skrll   # If we are being configured for Mingw, we know which functions
   5812  1.1  skrll   # Mingw provides and which ones we will be expected to provide.
   5813  1.1  skrll 
   5814  1.1  skrll   case "${host}" in
   5815  1.1  skrll   *-*-mingw*)
   5816  1.1  skrll     case $LIBOBJS in
   5817  1.1  skrll     "asprintf.$ac_objext"   | \
   5818  1.1  skrll   *" asprintf.$ac_objext"   | \
   5819  1.1  skrll     "asprintf.$ac_objext "* | \
   5820  1.1  skrll   *" asprintf.$ac_objext "* ) ;;
   5821  1.1  skrll   *) LIBOBJS="$LIBOBJS asprintf.$ac_objext" ;;
   5822  1.1  skrll esac
   5823  1.1  skrll 
   5824  1.1  skrll     case $LIBOBJS in
   5825  1.1  skrll     "basename.$ac_objext"   | \
   5826  1.1  skrll   *" basename.$ac_objext"   | \
   5827  1.1  skrll     "basename.$ac_objext "* | \
   5828  1.1  skrll   *" basename.$ac_objext "* ) ;;
   5829  1.1  skrll   *) LIBOBJS="$LIBOBJS basename.$ac_objext" ;;
   5830  1.1  skrll esac
   5831  1.1  skrll 
   5832  1.1  skrll     case $LIBOBJS in
   5833  1.1  skrll     "bcmp.$ac_objext"   | \
   5834  1.1  skrll   *" bcmp.$ac_objext"   | \
   5835  1.1  skrll     "bcmp.$ac_objext "* | \
   5836  1.1  skrll   *" bcmp.$ac_objext "* ) ;;
   5837  1.1  skrll   *) LIBOBJS="$LIBOBJS bcmp.$ac_objext" ;;
   5838  1.1  skrll esac
   5839  1.1  skrll 
   5840  1.1  skrll     case $LIBOBJS in
   5841  1.1  skrll     "bcopy.$ac_objext"   | \
   5842  1.1  skrll   *" bcopy.$ac_objext"   | \
   5843  1.1  skrll     "bcopy.$ac_objext "* | \
   5844  1.1  skrll   *" bcopy.$ac_objext "* ) ;;
   5845  1.1  skrll   *) LIBOBJS="$LIBOBJS bcopy.$ac_objext" ;;
   5846  1.1  skrll esac
   5847  1.1  skrll 
   5848  1.1  skrll     case $LIBOBJS in
   5849  1.1  skrll     "bzero.$ac_objext"   | \
   5850  1.1  skrll   *" bzero.$ac_objext"   | \
   5851  1.1  skrll     "bzero.$ac_objext "* | \
   5852  1.1  skrll   *" bzero.$ac_objext "* ) ;;
   5853  1.1  skrll   *) LIBOBJS="$LIBOBJS bzero.$ac_objext" ;;
   5854  1.1  skrll esac
   5855  1.1  skrll 
   5856  1.1  skrll     case $LIBOBJS in
   5857  1.1  skrll     "clock.$ac_objext"   | \
   5858  1.1  skrll   *" clock.$ac_objext"   | \
   5859  1.1  skrll     "clock.$ac_objext "* | \
   5860  1.1  skrll   *" clock.$ac_objext "* ) ;;
   5861  1.1  skrll   *) LIBOBJS="$LIBOBJS clock.$ac_objext" ;;
   5862  1.1  skrll esac
   5863  1.1  skrll 
   5864  1.1  skrll     case $LIBOBJS in
   5865  1.1  skrll     "ffs.$ac_objext"   | \
   5866  1.1  skrll   *" ffs.$ac_objext"   | \
   5867  1.1  skrll     "ffs.$ac_objext "* | \
   5868  1.1  skrll   *" ffs.$ac_objext "* ) ;;
   5869  1.1  skrll   *) LIBOBJS="$LIBOBJS ffs.$ac_objext" ;;
   5870  1.1  skrll esac
   5871  1.1  skrll 
   5872  1.1  skrll     case $LIBOBJS in
   5873  1.1  skrll     "getpagesize.$ac_objext"   | \
   5874  1.1  skrll   *" getpagesize.$ac_objext"   | \
   5875  1.1  skrll     "getpagesize.$ac_objext "* | \
   5876  1.1  skrll   *" getpagesize.$ac_objext "* ) ;;
   5877  1.1  skrll   *) LIBOBJS="$LIBOBJS getpagesize.$ac_objext" ;;
   5878  1.1  skrll esac
   5879  1.1  skrll 
   5880  1.1  skrll     case $LIBOBJS in
   5881  1.1  skrll     "index.$ac_objext"   | \
   5882  1.1  skrll   *" index.$ac_objext"   | \
   5883  1.1  skrll     "index.$ac_objext "* | \
   5884  1.1  skrll   *" index.$ac_objext "* ) ;;
   5885  1.1  skrll   *) LIBOBJS="$LIBOBJS index.$ac_objext" ;;
   5886  1.1  skrll esac
   5887  1.1  skrll 
   5888  1.1  skrll     case $LIBOBJS in
   5889  1.1  skrll     "insque.$ac_objext"   | \
   5890  1.1  skrll   *" insque.$ac_objext"   | \
   5891  1.1  skrll     "insque.$ac_objext "* | \
   5892  1.1  skrll   *" insque.$ac_objext "* ) ;;
   5893  1.1  skrll   *) LIBOBJS="$LIBOBJS insque.$ac_objext" ;;
   5894  1.1  skrll esac
   5895  1.1  skrll 
   5896  1.1  skrll     case $LIBOBJS in
   5897  1.1  skrll     "mempcpy.$ac_objext"   | \
   5898  1.1  skrll   *" mempcpy.$ac_objext"   | \
   5899  1.1  skrll     "mempcpy.$ac_objext "* | \
   5900  1.1  skrll   *" mempcpy.$ac_objext "* ) ;;
   5901  1.1  skrll   *) LIBOBJS="$LIBOBJS mempcpy.$ac_objext" ;;
   5902  1.1  skrll esac
   5903  1.1  skrll 
   5904  1.1  skrll     case $LIBOBJS in
   5905  1.1  skrll     "mkstemps.$ac_objext"   | \
   5906  1.1  skrll   *" mkstemps.$ac_objext"   | \
   5907  1.1  skrll     "mkstemps.$ac_objext "* | \
   5908  1.1  skrll   *" mkstemps.$ac_objext "* ) ;;
   5909  1.1  skrll   *) LIBOBJS="$LIBOBJS mkstemps.$ac_objext" ;;
   5910  1.1  skrll esac
   5911  1.1  skrll 
   5912  1.1  skrll     case $LIBOBJS in
   5913  1.1  skrll     "random.$ac_objext"   | \
   5914  1.1  skrll   *" random.$ac_objext"   | \
   5915  1.1  skrll     "random.$ac_objext "* | \
   5916  1.1  skrll   *" random.$ac_objext "* ) ;;
   5917  1.1  skrll   *) LIBOBJS="$LIBOBJS random.$ac_objext" ;;
   5918  1.1  skrll esac
   5919  1.1  skrll 
   5920  1.1  skrll     case $LIBOBJS in
   5921  1.1  skrll     "rindex.$ac_objext"   | \
   5922  1.1  skrll   *" rindex.$ac_objext"   | \
   5923  1.1  skrll     "rindex.$ac_objext "* | \
   5924  1.1  skrll   *" rindex.$ac_objext "* ) ;;
   5925  1.1  skrll   *) LIBOBJS="$LIBOBJS rindex.$ac_objext" ;;
   5926  1.1  skrll esac
   5927  1.1  skrll 
   5928  1.1  skrll     case $LIBOBJS in
   5929  1.1  skrll     "sigsetmask.$ac_objext"   | \
   5930  1.1  skrll   *" sigsetmask.$ac_objext"   | \
   5931  1.1  skrll     "sigsetmask.$ac_objext "* | \
   5932  1.1  skrll   *" sigsetmask.$ac_objext "* ) ;;
   5933  1.1  skrll   *) LIBOBJS="$LIBOBJS sigsetmask.$ac_objext" ;;
   5934  1.1  skrll esac
   5935  1.1  skrll 
   5936  1.1  skrll     case $LIBOBJS in
   5937  1.1  skrll     "stpcpy.$ac_objext"   | \
   5938  1.1  skrll   *" stpcpy.$ac_objext"   | \
   5939  1.1  skrll     "stpcpy.$ac_objext "* | \
   5940  1.1  skrll   *" stpcpy.$ac_objext "* ) ;;
   5941  1.1  skrll   *) LIBOBJS="$LIBOBJS stpcpy.$ac_objext" ;;
   5942  1.1  skrll esac
   5943  1.1  skrll 
   5944  1.1  skrll     case $LIBOBJS in
   5945  1.1  skrll     "stpncpy.$ac_objext"   | \
   5946  1.1  skrll   *" stpncpy.$ac_objext"   | \
   5947  1.1  skrll     "stpncpy.$ac_objext "* | \
   5948  1.1  skrll   *" stpncpy.$ac_objext "* ) ;;
   5949  1.1  skrll   *) LIBOBJS="$LIBOBJS stpncpy.$ac_objext" ;;
   5950  1.1  skrll esac
   5951  1.1  skrll 
   5952  1.1  skrll     case $LIBOBJS in
   5953  1.1  skrll     "strndup.$ac_objext"   | \
   5954  1.1  skrll   *" strndup.$ac_objext"   | \
   5955  1.1  skrll     "strndup.$ac_objext "* | \
   5956  1.1  skrll   *" strndup.$ac_objext "* ) ;;
   5957  1.1  skrll   *) LIBOBJS="$LIBOBJS strndup.$ac_objext" ;;
   5958  1.1  skrll esac
   5959  1.1  skrll 
   5960  1.1  skrll     case $LIBOBJS in
   5961  1.1  skrll     "strverscmp.$ac_objext"   | \
   5962  1.1  skrll   *" strverscmp.$ac_objext"   | \
   5963  1.1  skrll     "strverscmp.$ac_objext "* | \
   5964  1.1  skrll   *" strverscmp.$ac_objext "* ) ;;
   5965  1.1  skrll   *) LIBOBJS="$LIBOBJS strverscmp.$ac_objext" ;;
   5966  1.1  skrll esac
   5967  1.1  skrll 
   5968  1.1  skrll     case $LIBOBJS in
   5969  1.1  skrll     "vasprintf.$ac_objext"   | \
   5970  1.1  skrll   *" vasprintf.$ac_objext"   | \
   5971  1.1  skrll     "vasprintf.$ac_objext "* | \
   5972  1.1  skrll   *" vasprintf.$ac_objext "* ) ;;
   5973  1.1  skrll   *) LIBOBJS="$LIBOBJS vasprintf.$ac_objext" ;;
   5974  1.1  skrll esac
   5975  1.1  skrll 
   5976  1.1  skrll     case $LIBOBJS in
   5977  1.1  skrll     "waitpid.$ac_objext"   | \
   5978  1.1  skrll   *" waitpid.$ac_objext"   | \
   5979  1.1  skrll     "waitpid.$ac_objext "* | \
   5980  1.1  skrll   *" waitpid.$ac_objext "* ) ;;
   5981  1.1  skrll   *) LIBOBJS="$LIBOBJS waitpid.$ac_objext" ;;
   5982  1.1  skrll esac
   5983  1.1  skrll 
   5984  1.1  skrll 
   5985  1.1  skrll     for f in $funcs; do
   5986  1.1  skrll       case "$f" in
   5987  1.1  skrll 	asprintf | basename | bcmp | bcopy | bzero | clock | ffs | getpagesize | index | insque | mempcpy | mkstemps | random | rindex | sigsetmask | stpcpy | stpncpy | strdup | strndup | strverscmp | vasprintf | waitpid)
   5988  1.1  skrll 	  ;;
   5989  1.1  skrll 	*)
   5990  1.1  skrll 	  n=HAVE_`echo $f | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
   5991  1.1  skrll 	  cat >>confdefs.h <<_ACEOF
   5992  1.1  skrll #define $n 1
   5993  1.1  skrll _ACEOF
   5994  1.1  skrll 
   5995  1.1  skrll 	  ;;
   5996  1.1  skrll       esac
   5997  1.1  skrll     done
   5998  1.1  skrll 
   5999  1.1  skrll     # Mingw doesnt provide any of the variables in $vars, so we
   6000  1.1  skrll     # dont have to check them here.
   6001  1.1  skrll 
   6002  1.1  skrll     # Of the functions in $checkfuncs, Mingw only has strerror.
   6003  1.1  skrll     cat >>confdefs.h <<\_ACEOF
   6004  1.1  skrll #define HAVE_STRERROR 1
   6005  1.1  skrll _ACEOF
   6006  1.1  skrll 
   6007  1.1  skrll 
   6008  1.1  skrll     setobjs=yes
   6009  1.1  skrll     ;;
   6010  1.1  skrll 
   6011  1.1  skrll   esac
   6012  1.1  skrll 
   6013  1.1  skrll   # We may wish to install the target headers somewhere.
   6014  1.1  skrll   # Check whether --enable-install-libiberty or --disable-install-libiberty was given.
   6015  1.1  skrll if test "${enable_install_libiberty+set}" = set; then
   6016  1.1  skrll   enableval="$enable_install_libiberty"
   6017  1.1  skrll   enable_install_libiberty=$enableval
   6018  1.1  skrll else
   6019  1.1  skrll   enable_install_libiberty=no
   6020  1.1  skrll fi;
   6021  1.1  skrll   # Option parsed, now set things appropriately.
   6022  1.1  skrll   case x"$enable_install_libiberty" in
   6023  1.1  skrll     xyes|x)
   6024  1.1  skrll       target_header_dir=libiberty
   6025  1.1  skrll       ;;
   6026  1.1  skrll     xno)
   6027  1.1  skrll       target_header_dir=
   6028  1.1  skrll       ;;
   6029  1.1  skrll     *)
   6030  1.1  skrll       # This could be sanity-checked in various ways...
   6031  1.1  skrll       target_header_dir="${enable_install_libiberty}"
   6032  1.1  skrll       ;;
   6033  1.1  skrll   esac
   6034  1.1  skrll 
   6035  1.1  skrll 
   6036  1.1  skrll else
   6037  1.1  skrll 
   6038  1.1  skrll    # Not a target library, so we set things up to run the test suite.
   6039  1.1  skrll    CHECK=really-check
   6040  1.1  skrll 
   6041  1.1  skrll fi
   6042  1.1  skrll 
   6043  1.1  skrll 
   6044  1.1  skrll 
   6045  1.1  skrll 
   6046  1.1  skrll case "${host}" in
   6047  1.1  skrll   *-*-cygwin* | *-*-mingw*)
   6048  1.1  skrll     cat >>confdefs.h <<\_ACEOF
   6049  1.1  skrll #define HAVE_SYS_ERRLIST 1
   6050  1.1  skrll _ACEOF
   6051  1.1  skrll 
   6052  1.1  skrll     cat >>confdefs.h <<\_ACEOF
   6053  1.1  skrll #define HAVE_SYS_NERR 1
   6054  1.1  skrll _ACEOF
   6055  1.1  skrll 
   6056  1.1  skrll     ;;
   6057  1.1  skrll esac
   6058  1.1  skrll 
   6059  1.1  skrll if test -z "${setobjs}"; then
   6060  1.1  skrll   case "${host}" in
   6061  1.1  skrll 
   6062  1.1  skrll   *-*-vxworks*)
   6063  1.1  skrll     # Handle VxWorks configuration specially, since on VxWorks the
   6064  1.1  skrll     # libraries are actually on the target board, not in the file
   6065  1.1  skrll     # system.
   6066  1.1  skrll     case $LIBOBJS in
   6067  1.1  skrll     "basename.$ac_objext"   | \
   6068  1.1  skrll   *" basename.$ac_objext"   | \
   6069  1.1  skrll     "basename.$ac_objext "* | \
   6070  1.1  skrll   *" basename.$ac_objext "* ) ;;
   6071  1.1  skrll   *) LIBOBJS="$LIBOBJS basename.$ac_objext" ;;
   6072  1.1  skrll esac
   6073  1.1  skrll 
   6074  1.1  skrll     case $LIBOBJS in
   6075  1.1  skrll     "getpagesize.$ac_objext"   | \
   6076  1.1  skrll   *" getpagesize.$ac_objext"   | \
   6077  1.1  skrll     "getpagesize.$ac_objext "* | \
   6078  1.1  skrll   *" getpagesize.$ac_objext "* ) ;;
   6079  1.1  skrll   *) LIBOBJS="$LIBOBJS getpagesize.$ac_objext" ;;
   6080  1.1  skrll esac
   6081  1.1  skrll 
   6082  1.1  skrll     case $LIBOBJS in
   6083  1.1  skrll     "insque.$ac_objext"   | \
   6084  1.1  skrll   *" insque.$ac_objext"   | \
   6085  1.1  skrll     "insque.$ac_objext "* | \
   6086  1.1  skrll   *" insque.$ac_objext "* ) ;;
   6087  1.1  skrll   *) LIBOBJS="$LIBOBJS insque.$ac_objext" ;;
   6088  1.1  skrll esac
   6089  1.1  skrll 
   6090  1.1  skrll     case $LIBOBJS in
   6091  1.1  skrll     "random.$ac_objext"   | \
   6092  1.1  skrll   *" random.$ac_objext"   | \
   6093  1.1  skrll     "random.$ac_objext "* | \
   6094  1.1  skrll   *" random.$ac_objext "* ) ;;
   6095  1.1  skrll   *) LIBOBJS="$LIBOBJS random.$ac_objext" ;;
   6096  1.1  skrll esac
   6097  1.1  skrll 
   6098  1.1  skrll     case $LIBOBJS in
   6099  1.1  skrll     "strcasecmp.$ac_objext"   | \
   6100  1.1  skrll   *" strcasecmp.$ac_objext"   | \
   6101  1.1  skrll     "strcasecmp.$ac_objext "* | \
   6102  1.1  skrll   *" strcasecmp.$ac_objext "* ) ;;
   6103  1.1  skrll   *) LIBOBJS="$LIBOBJS strcasecmp.$ac_objext" ;;
   6104  1.1  skrll esac
   6105  1.1  skrll 
   6106  1.1  skrll     case $LIBOBJS in
   6107  1.1  skrll     "strncasecmp.$ac_objext"   | \
   6108  1.1  skrll   *" strncasecmp.$ac_objext"   | \
   6109  1.1  skrll     "strncasecmp.$ac_objext "* | \
   6110  1.1  skrll   *" strncasecmp.$ac_objext "* ) ;;
   6111  1.1  skrll   *) LIBOBJS="$LIBOBJS strncasecmp.$ac_objext" ;;
   6112  1.1  skrll esac
   6113  1.1  skrll 
   6114  1.1  skrll     case $LIBOBJS in
   6115  1.1  skrll     "strdup.$ac_objext"   | \
   6116  1.1  skrll   *" strdup.$ac_objext"   | \
   6117  1.1  skrll     "strdup.$ac_objext "* | \
   6118  1.1  skrll   *" strdup.$ac_objext "* ) ;;
   6119  1.1  skrll   *) LIBOBJS="$LIBOBJS strdup.$ac_objext" ;;
   6120  1.1  skrll esac
   6121  1.1  skrll 
   6122  1.1  skrll     case $LIBOBJS in
   6123  1.1  skrll     "vfork.$ac_objext"   | \
   6124  1.1  skrll   *" vfork.$ac_objext"   | \
   6125  1.1  skrll     "vfork.$ac_objext "* | \
   6126  1.1  skrll   *" vfork.$ac_objext "* ) ;;
   6127  1.1  skrll   *) LIBOBJS="$LIBOBJS vfork.$ac_objext" ;;
   6128  1.1  skrll esac
   6129  1.1  skrll 
   6130  1.1  skrll     case $LIBOBJS in
   6131  1.1  skrll     "waitpid.$ac_objext"   | \
   6132  1.1  skrll   *" waitpid.$ac_objext"   | \
   6133  1.1  skrll     "waitpid.$ac_objext "* | \
   6134  1.1  skrll   *" waitpid.$ac_objext "* ) ;;
   6135  1.1  skrll   *) LIBOBJS="$LIBOBJS waitpid.$ac_objext" ;;
   6136  1.1  skrll esac
   6137  1.1  skrll 
   6138  1.1  skrll     case $LIBOBJS in
   6139  1.1  skrll     "vasprintf.$ac_objext"   | \
   6140  1.1  skrll   *" vasprintf.$ac_objext"   | \
   6141  1.1  skrll     "vasprintf.$ac_objext "* | \
   6142  1.1  skrll   *" vasprintf.$ac_objext "* ) ;;
   6143  1.1  skrll   *) LIBOBJS="$LIBOBJS vasprintf.$ac_objext" ;;
   6144  1.1  skrll esac
   6145  1.1  skrll 
   6146  1.1  skrll     for f in $funcs; do
   6147  1.1  skrll       case "$f" in
   6148  1.1  skrll 	basename | getpagesize | insque | random | strcasecmp)
   6149  1.1  skrll 	  ;;
   6150  1.1  skrll 	strncasecmp | strdup | vfork | waitpid | vasprintf)
   6151  1.1  skrll 	  ;;
   6152  1.1  skrll 	*)
   6153  1.1  skrll 	  n=HAVE_`echo $f | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
   6154  1.1  skrll 	  cat >>confdefs.h <<_ACEOF
   6155  1.1  skrll #define $n 1
   6156  1.1  skrll _ACEOF
   6157  1.1  skrll 
   6158  1.1  skrll 	  ;;
   6159  1.1  skrll       esac
   6160  1.1  skrll     done
   6161  1.1  skrll 
   6162  1.1  skrll     # VxWorks doesn't provide any of the variables in $vars, so we
   6163  1.1  skrll     # don't have to check them here.
   6164  1.1  skrll 
   6165  1.1  skrll     # Of the functions in $checkfuncs, VxWorks only has strerror.
   6166  1.1  skrll     cat >>confdefs.h <<\_ACEOF
   6167  1.1  skrll #define HAVE_STRERROR 1
   6168  1.1  skrll _ACEOF
   6169  1.1  skrll 
   6170  1.1  skrll 
   6171  1.1  skrll     setobjs=yes
   6172  1.1  skrll     ;;
   6173  1.1  skrll 
   6174  1.1  skrll   *-*-msdosdjgpp)
   6175  1.1  skrll     for f in atexit basename bcmp bcopy bsearch bzero calloc clock ffs \
   6176  1.1  skrll              getcwd getpagesize getrusage gettimeofday \
   6177  1.1  skrll              index insque memchr memcmp memcpy memmove memset psignal \
   6178  1.1  skrll              putenv random rename rindex sbrk setenv stpcpy strcasecmp \
   6179  1.1  skrll              strchr strdup strerror strncasecmp strrchr strstr strtod \
   6180  1.1  skrll              strtol strtoul sysconf times tmpnam vfprintf vprintf \
   6181  1.1  skrll              vsprintf waitpid
   6182  1.1  skrll     do
   6183  1.1  skrll       n=HAVE_`echo $f | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
   6184  1.1  skrll       cat >>confdefs.h <<_ACEOF
   6185  1.1  skrll #define $n 1
   6186  1.1  skrll _ACEOF
   6187  1.1  skrll 
   6188  1.1  skrll     done
   6189  1.1  skrll 
   6190  1.1  skrll 
   6191  1.1  skrll     setobjs=yes
   6192  1.1  skrll     ;;
   6193  1.1  skrll 
   6194  1.1  skrll   esac
   6195  1.1  skrll fi
   6196  1.1  skrll 
   6197  1.1  skrll if test -z "${setobjs}"; then
   6198  1.1  skrll 
   6199  1.1  skrll   case "${host}" in
   6200  1.1  skrll 
   6201  1.1  skrll   *-*-cygwin*)
   6202  1.1  skrll     # The Cygwin library actually uses a couple of files from
   6203  1.1  skrll     # libiberty when it is built.  If we are building a native
   6204  1.1  skrll     # Cygwin, and we run the tests, we will appear to have these
   6205  1.1  skrll     # files.  However, when we go on to build winsup, we will wind up
   6206  1.1  skrll     # with a library which does not have the files, since they should
   6207  1.1  skrll     # have come from libiberty.
   6208  1.1  skrll 
   6209  1.1  skrll     # We handle this by removing the functions the winsup library
   6210  1.1  skrll     # provides from our shell variables, so that they appear to be
   6211  1.1  skrll     # missing.
   6212  1.1  skrll 
   6213  1.1  skrll     # DJ - only if we're *building* cygwin, not just building *with* cygwin
   6214  1.1  skrll 
   6215  1.1  skrll     if test -n "${with_target_subdir}"
   6216  1.1  skrll     then
   6217  1.1  skrll       funcs="`echo $funcs | sed -e 's/random//'`"
   6218  1.1  skrll       case $LIBOBJS in
   6219  1.1  skrll     "random.$ac_objext"   | \
   6220  1.1  skrll   *" random.$ac_objext"   | \
   6221  1.1  skrll     "random.$ac_objext "* | \
   6222  1.1  skrll   *" random.$ac_objext "* ) ;;
   6223  1.1  skrll   *) LIBOBJS="$LIBOBJS random.$ac_objext" ;;
   6224  1.1  skrll esac
   6225  1.1  skrll 
   6226  1.1  skrll       vars="`echo $vars | sed -e 's/sys_siglist//'`"
   6227  1.1  skrll       checkfuncs="`echo $checkfuncs | sed -e 's/strsignal//' -e 's/psignal//'`"
   6228  1.1  skrll     fi
   6229  1.1  skrll     ;;
   6230  1.1  skrll 
   6231  1.1  skrll   *-*-mingw32*)
   6232  1.1  skrll     # Under mingw32, sys_nerr and sys_errlist exist, but they are
   6233  1.1  skrll     # macros, so the test below won't find them.
   6234  1.1  skrll     libiberty_cv_var_sys_nerr=yes
   6235  1.1  skrll     libiberty_cv_var_sys_errlist=yes
   6236  1.1  skrll     ;;
   6237  1.1  skrll 
   6238  1.1  skrll   *-*-msdosdjgpp*)
   6239  1.1  skrll     # vfork and fork are stubs.
   6240  1.1  skrll     ac_cv_func_vfork_works=no
   6241  1.1  skrll     ;;
   6242  1.1  skrll 
   6243  1.1  skrll   *-*-uwin*)
   6244  1.1  skrll     # Under some versions of uwin, vfork is notoriously buggy and the test
   6245  1.1  skrll     # can hang configure; on other versions, vfork exists just as a stub.
   6246  1.1  skrll     # FIXME: This should be removed once vfork in uwin's runtime is fixed.
   6247  1.1  skrll     ac_cv_func_vfork_works=no
   6248  1.1  skrll     # Under uwin 2.0+, sys_nerr and sys_errlist exist, but they are
   6249  1.1  skrll     # macros (actually, these are imported from a DLL, but the end effect
   6250  1.1  skrll     # is the same), so the test below won't find them.
   6251  1.1  skrll     libiberty_cv_var_sys_nerr=yes
   6252  1.1  skrll     libiberty_cv_var_sys_errlist=yes
   6253  1.1  skrll     ;;
   6254  1.1  skrll 
   6255  1.1  skrll   *-*-*vms*)
   6256  1.1  skrll     # Under VMS, vfork works very different than on Unix. The standard test
   6257  1.1  skrll     # won't work, and it isn't easily adaptable. It makes more sense to
   6258  1.1  skrll     # just force it.
   6259  1.1  skrll     ac_cv_func_vfork_works=yes
   6260  1.1  skrll     ;;
   6261  1.1  skrll 
   6262  1.1  skrll   esac
   6263  1.1  skrll 
   6264  1.1  skrll   # We haven't set the list of objects yet.  Use the standard autoconf
   6265  1.1  skrll   # tests.  This will only work if the compiler works.
   6266  1.1  skrll   echo "$as_me:$LINENO: checking for library containing strerror" >&5
   6267  1.1  skrll echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
   6268  1.1  skrll if test "${ac_cv_search_strerror+set}" = set; then
   6269  1.1  skrll   echo $ECHO_N "(cached) $ECHO_C" >&6
   6270  1.1  skrll else
   6271  1.1  skrll   ac_func_search_save_LIBS=$LIBS
   6272  1.1  skrll ac_cv_search_strerror=no
   6273  1.1  skrll if test x$gcc_no_link = xyes; then
   6274  1.1  skrll   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
   6275  1.1  skrll echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
   6276  1.1  skrll    { (exit 1); exit 1; }; }
   6277  1.1  skrll fi
   6278  1.1  skrll cat >conftest.$ac_ext <<_ACEOF
   6279  1.1  skrll /* confdefs.h.  */
   6280  1.1  skrll _ACEOF
   6281  1.1  skrll cat confdefs.h >>conftest.$ac_ext
   6282  1.1  skrll cat >>conftest.$ac_ext <<_ACEOF
   6283  1.1  skrll /* end confdefs.h.  */
   6284  1.1  skrll 
   6285  1.1  skrll /* Override any gcc2 internal prototype to avoid an error.  */
   6286  1.1  skrll #ifdef __cplusplus
   6287  1.1  skrll extern "C"
   6288  1.1  skrll #endif
   6289  1.1  skrll /* We use char because int might match the return type of a gcc2
   6290  1.1  skrll    builtin and then its argument prototype would still apply.  */
   6291  1.1  skrll char strerror ();
   6292  1.1  skrll int
   6293  1.1  skrll main ()
   6294  1.1  skrll {
   6295  1.1  skrll strerror ();
   6296  1.1  skrll   ;
   6297  1.1  skrll   return 0;
   6298  1.1  skrll }
   6299  1.1  skrll _ACEOF
   6300  1.1  skrll rm -f conftest.$ac_objext conftest$ac_exeext
   6301  1.1  skrll if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
   6302  1.1  skrll   (eval $ac_link) 2>conftest.er1
   6303  1.1  skrll   ac_status=$?
   6304  1.1  skrll   grep -v '^ *+' conftest.er1 >conftest.err
   6305  1.1  skrll   rm -f conftest.er1
   6306  1.1  skrll   cat conftest.err >&5
   6307  1.1  skrll   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   6308  1.1  skrll   (exit $ac_status); } &&
   6309  1.1  skrll 	 { ac_try='test -z "$ac_c_werror_flag"
   6310  1.1  skrll 			 || test ! -s conftest.err'
   6311  1.1  skrll   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   6312  1.1  skrll   (eval $ac_try) 2>&5
   6313  1.1  skrll   ac_status=$?
   6314  1.1  skrll   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   6315  1.1  skrll   (exit $ac_status); }; } &&
   6316  1.1  skrll 	 { ac_try='test -s conftest$ac_exeext'
   6317  1.1  skrll   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   6318  1.1  skrll   (eval $ac_try) 2>&5
   6319  1.1  skrll   ac_status=$?
   6320  1.1  skrll   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   6321  1.1  skrll   (exit $ac_status); }; }; then
   6322  1.1  skrll   ac_cv_search_strerror="none required"
   6323  1.1  skrll else
   6324  1.1  skrll   echo "$as_me: failed program was:" >&5
   6325  1.1  skrll sed 's/^/| /' conftest.$ac_ext >&5
   6326  1.1  skrll 
   6327  1.1  skrll fi
   6328  1.1  skrll rm -f conftest.err conftest.$ac_objext \
   6329  1.1  skrll       conftest$ac_exeext conftest.$ac_ext
   6330  1.1  skrll if test "$ac_cv_search_strerror" = no; then
   6331  1.1  skrll   for ac_lib in cposix; do
   6332  1.1  skrll     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   6333  1.1  skrll     if test x$gcc_no_link = xyes; then
   6334  1.1  skrll   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
   6335  1.1  skrll echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
   6336  1.1  skrll    { (exit 1); exit 1; }; }
   6337  1.1  skrll fi
   6338  1.1  skrll cat >conftest.$ac_ext <<_ACEOF
   6339  1.1  skrll /* confdefs.h.  */
   6340  1.1  skrll _ACEOF
   6341  1.1  skrll cat confdefs.h >>conftest.$ac_ext
   6342  1.1  skrll cat >>conftest.$ac_ext <<_ACEOF
   6343  1.1  skrll /* end confdefs.h.  */
   6344  1.1  skrll 
   6345  1.1  skrll /* Override any gcc2 internal prototype to avoid an error.  */
   6346  1.1  skrll #ifdef __cplusplus
   6347  1.1  skrll extern "C"
   6348  1.1  skrll #endif
   6349  1.1  skrll /* We use char because int might match the return type of a gcc2
   6350  1.1  skrll    builtin and then its argument prototype would still apply.  */
   6351  1.1  skrll char strerror ();
   6352  1.1  skrll int
   6353  1.1  skrll main ()
   6354  1.1  skrll {
   6355  1.1  skrll strerror ();
   6356  1.1  skrll   ;
   6357  1.1  skrll   return 0;
   6358  1.1  skrll }
   6359  1.1  skrll _ACEOF
   6360  1.1  skrll rm -f conftest.$ac_objext conftest$ac_exeext
   6361  1.1  skrll if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
   6362  1.1  skrll   (eval $ac_link) 2>conftest.er1
   6363  1.1  skrll   ac_status=$?
   6364  1.1  skrll   grep -v '^ *+' conftest.er1 >conftest.err
   6365  1.1  skrll   rm -f conftest.er1
   6366  1.1  skrll   cat conftest.err >&5
   6367  1.1  skrll   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   6368  1.1  skrll   (exit $ac_status); } &&
   6369  1.1  skrll 	 { ac_try='test -z "$ac_c_werror_flag"
   6370  1.1  skrll 			 || test ! -s conftest.err'
   6371  1.1  skrll   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   6372  1.1  skrll   (eval $ac_try) 2>&5
   6373  1.1  skrll   ac_status=$?
   6374  1.1  skrll   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   6375  1.1  skrll   (exit $ac_status); }; } &&
   6376  1.1  skrll 	 { ac_try='test -s conftest$ac_exeext'
   6377  1.1  skrll   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   6378  1.1  skrll   (eval $ac_try) 2>&5
   6379  1.1  skrll   ac_status=$?
   6380  1.1  skrll   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   6381  1.1  skrll   (exit $ac_status); }; }; then
   6382  1.1  skrll   ac_cv_search_strerror="-l$ac_lib"
   6383  1.1  skrll break
   6384  1.1  skrll else
   6385  1.1  skrll   echo "$as_me: failed program was:" >&5
   6386  1.1  skrll sed 's/^/| /' conftest.$ac_ext >&5
   6387  1.1  skrll 
   6388  1.1  skrll fi
   6389  1.1  skrll rm -f conftest.err conftest.$ac_objext \
   6390  1.1  skrll       conftest$ac_exeext conftest.$ac_ext
   6391  1.1  skrll   done
   6392  1.1  skrll fi
   6393  1.1  skrll LIBS=$ac_func_search_save_LIBS
   6394  1.1  skrll fi
   6395  1.1  skrll echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
   6396  1.1  skrll echo "${ECHO_T}$ac_cv_search_strerror" >&6
   6397  1.1  skrll if test "$ac_cv_search_strerror" != no; then
   6398  1.1  skrll   test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
   6399  1.1  skrll 
   6400  1.1  skrll fi
   6401  1.1  skrll 
   6402  1.1  skrll 
   6403  1.1  skrll for ac_func in $funcs
   6404  1.1  skrll do
   6405  1.1  skrll as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
   6406  1.1  skrll echo "$as_me:$LINENO: checking for $ac_func" >&5
   6407  1.1  skrll echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
   6408  1.1  skrll if eval "test \"\${$as_ac_var+set}\" = set"; then
   6409  1.1  skrll   echo $ECHO_N "(cached) $ECHO_C" >&6
   6410  1.1  skrll else
   6411  1.1  skrll   if test x$gcc_no_link = xyes; then
   6412  1.1  skrll   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
   6413  1.1  skrll echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
   6414  1.1  skrll    { (exit 1); exit 1; }; }
   6415  1.1  skrll fi
   6416  1.1  skrll cat >conftest.$ac_ext <<_ACEOF
   6417  1.1  skrll /* confdefs.h.  */
   6418  1.1  skrll _ACEOF
   6419  1.1  skrll cat confdefs.h >>conftest.$ac_ext
   6420  1.1  skrll cat >>conftest.$ac_ext <<_ACEOF
   6421  1.1  skrll /* end confdefs.h.  */
   6422  1.1  skrll /* System header to define __stub macros and hopefully few prototypes,
   6423  1.1  skrll     which can conflict with char $ac_func (); below.
   6424  1.1  skrll     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   6425  1.1  skrll     <limits.h> exists even on freestanding compilers.  Under hpux,
   6426  1.1  skrll     including <limits.h> includes <sys/time.h> and causes problems
   6427  1.1  skrll     checking for functions defined therein.  */
   6428  1.1  skrll #if defined (__STDC__) && !defined (_HPUX_SOURCE)
   6429  1.1  skrll # include <limits.h>
   6430  1.1  skrll #else
   6431  1.1  skrll # include <assert.h>
   6432  1.1  skrll #endif
   6433  1.1  skrll /* Override any gcc2 internal prototype to avoid an error.  */
   6434  1.1  skrll #ifdef __cplusplus
   6435  1.1  skrll extern "C"
   6436  1.1  skrll {
   6437  1.1  skrll #endif
   6438  1.1  skrll /* We use char because int might match the return type of a gcc2
   6439  1.1  skrll    builtin and then its argument prototype would still apply.  */
   6440  1.1  skrll char $ac_func ();
   6441  1.1  skrll /* The GNU C library defines this for functions which it implements
   6442  1.1  skrll     to always fail with ENOSYS.  Some functions are actually named
   6443  1.1  skrll     something starting with __ and the normal name is an alias.  */
   6444  1.1  skrll #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
   6445  1.1  skrll choke me
   6446  1.1  skrll #else
   6447  1.1  skrll char (*f) () = $ac_func;
   6448  1.1  skrll #endif
   6449  1.1  skrll #ifdef __cplusplus
   6450  1.1  skrll }
   6451  1.1  skrll #endif
   6452  1.1  skrll 
   6453  1.1  skrll int
   6454  1.1  skrll main ()
   6455  1.1  skrll {
   6456  1.1  skrll return f != $ac_func;
   6457  1.1  skrll   ;
   6458  1.1  skrll   return 0;
   6459  1.1  skrll }
   6460  1.1  skrll _ACEOF
   6461  1.1  skrll rm -f conftest.$ac_objext conftest$ac_exeext
   6462  1.1  skrll if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
   6463  1.1  skrll   (eval $ac_link) 2>conftest.er1
   6464  1.1  skrll   ac_status=$?
   6465  1.1  skrll   grep -v '^ *+' conftest.er1 >conftest.err
   6466  1.1  skrll   rm -f conftest.er1
   6467  1.1  skrll   cat conftest.err >&5
   6468  1.1  skrll   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   6469  1.1  skrll   (exit $ac_status); } &&
   6470  1.1  skrll 	 { ac_try='test -z "$ac_c_werror_flag"
   6471  1.1  skrll 			 || test ! -s conftest.err'
   6472  1.1  skrll   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   6473  1.1  skrll   (eval $ac_try) 2>&5
   6474  1.1  skrll   ac_status=$?
   6475  1.1  skrll   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   6476  1.1  skrll   (exit $ac_status); }; } &&
   6477  1.1  skrll 	 { ac_try='test -s conftest$ac_exeext'
   6478  1.1  skrll   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   6479  1.1  skrll   (eval $ac_try) 2>&5
   6480  1.1  skrll   ac_status=$?
   6481  1.1  skrll   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   6482  1.1  skrll   (exit $ac_status); }; }; then
   6483  1.1  skrll   eval "$as_ac_var=yes"
   6484  1.1  skrll else
   6485  1.1  skrll   echo "$as_me: failed program was:" >&5
   6486  1.1  skrll sed 's/^/| /' conftest.$ac_ext >&5
   6487  1.1  skrll 
   6488  1.1  skrll eval "$as_ac_var=no"
   6489  1.1  skrll fi
   6490  1.1  skrll rm -f conftest.err conftest.$ac_objext \
   6491  1.1  skrll       conftest$ac_exeext conftest.$ac_ext
   6492  1.1  skrll fi
   6493  1.1  skrll echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
   6494  1.1  skrll echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
   6495  1.1  skrll if test `eval echo '${'$as_ac_var'}'` = yes; then
   6496  1.1  skrll   cat >>confdefs.h <<_ACEOF
   6497  1.1  skrll #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
   6498  1.1  skrll _ACEOF
   6499  1.1  skrll 
   6500  1.1  skrll else
   6501  1.1  skrll   case $LIBOBJS in
   6502  1.1  skrll     "$ac_func.$ac_objext"   | \
   6503  1.1  skrll   *" $ac_func.$ac_objext"   | \
   6504  1.1  skrll     "$ac_func.$ac_objext "* | \
   6505  1.1  skrll   *" $ac_func.$ac_objext "* ) ;;
   6506  1.1  skrll   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
   6507  1.1  skrll esac
   6508  1.1  skrll 
   6509  1.1  skrll fi
   6510  1.1  skrll done
   6511  1.1  skrll 
   6512  1.1  skrll 
   6513  1.1  skrll   echo "$as_me:$LINENO: checking whether alloca needs Cray hooks" >&5
   6514  1.1  skrll echo $ECHO_N "checking whether alloca needs Cray hooks... $ECHO_C" >&6
   6515  1.1  skrll if test "${ac_cv_os_cray+set}" = set; then
   6516  1.1  skrll   echo $ECHO_N "(cached) $ECHO_C" >&6
   6517  1.1  skrll else
   6518  1.1  skrll   cat >conftest.$ac_ext <<_ACEOF
   6519  1.1  skrll /* confdefs.h.  */
   6520  1.1  skrll _ACEOF
   6521  1.1  skrll cat confdefs.h >>conftest.$ac_ext
   6522  1.1  skrll cat >>conftest.$ac_ext <<_ACEOF
   6523  1.1  skrll /* end confdefs.h.  */
   6524  1.1  skrll #if defined(CRAY) && ! defined(CRAY2)
   6525  1.1  skrll webecray
   6526  1.1  skrll #else
   6527  1.1  skrll wenotbecray
   6528  1.1  skrll #endif
   6529  1.1  skrll 
   6530  1.1  skrll _ACEOF
   6531  1.1  skrll if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   6532  1.1  skrll   $EGREP "webecray" >/dev/null 2>&1; then
   6533  1.1  skrll   ac_cv_os_cray=yes
   6534  1.1  skrll else
   6535  1.1  skrll   ac_cv_os_cray=no
   6536  1.1  skrll fi
   6537  1.1  skrll rm -f conftest*
   6538  1.1  skrll 
   6539  1.1  skrll fi
   6540  1.1  skrll echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
   6541  1.1  skrll echo "${ECHO_T}$ac_cv_os_cray" >&6
   6542  1.1  skrll if test $ac_cv_os_cray = yes; then
   6543  1.1  skrll   for ac_func in _getb67 GETB67 getb67; do
   6544  1.1  skrll     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
   6545  1.1  skrll echo "$as_me:$LINENO: checking for $ac_func" >&5
   6546  1.1  skrll echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
   6547  1.1  skrll if eval "test \"\${$as_ac_var+set}\" = set"; then
   6548  1.1  skrll   echo $ECHO_N "(cached) $ECHO_C" >&6
   6549  1.1  skrll else
   6550  1.1  skrll   if test x$gcc_no_link = xyes; then
   6551  1.1  skrll   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
   6552  1.1  skrll echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
   6553  1.1  skrll    { (exit 1); exit 1; }; }
   6554  1.1  skrll fi
   6555  1.1  skrll cat >conftest.$ac_ext <<_ACEOF
   6556  1.1  skrll /* confdefs.h.  */
   6557  1.1  skrll _ACEOF
   6558  1.1  skrll cat confdefs.h >>conftest.$ac_ext
   6559  1.1  skrll cat >>conftest.$ac_ext <<_ACEOF
   6560  1.1  skrll /* end confdefs.h.  */
   6561  1.1  skrll /* System header to define __stub macros and hopefully few prototypes,
   6562  1.1  skrll     which can conflict with char $ac_func (); below.
   6563  1.1  skrll     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   6564  1.1  skrll     <limits.h> exists even on freestanding compilers.  Under hpux,
   6565  1.1  skrll     including <limits.h> includes <sys/time.h> and causes problems
   6566  1.1  skrll     checking for functions defined therein.  */
   6567  1.1  skrll #if defined (__STDC__) && !defined (_HPUX_SOURCE)
   6568  1.1  skrll # include <limits.h>
   6569  1.1  skrll #else
   6570  1.1  skrll # include <assert.h>
   6571  1.1  skrll #endif
   6572  1.1  skrll /* Override any gcc2 internal prototype to avoid an error.  */
   6573  1.1  skrll #ifdef __cplusplus
   6574  1.1  skrll extern "C"
   6575  1.1  skrll {
   6576  1.1  skrll #endif
   6577  1.1  skrll /* We use char because int might match the return type of a gcc2
   6578  1.1  skrll    builtin and then its argument prototype would still apply.  */
   6579  1.1  skrll char $ac_func ();
   6580  1.1  skrll /* The GNU C library defines this for functions which it implements
   6581  1.1  skrll     to always fail with ENOSYS.  Some functions are actually named
   6582  1.1  skrll     something starting with __ and the normal name is an alias.  */
   6583  1.1  skrll #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
   6584  1.1  skrll choke me
   6585  1.1  skrll #else
   6586  1.1  skrll char (*f) () = $ac_func;
   6587  1.1  skrll #endif
   6588  1.1  skrll #ifdef __cplusplus
   6589  1.1  skrll }
   6590  1.1  skrll #endif
   6591  1.1  skrll 
   6592  1.1  skrll int
   6593  1.1  skrll main ()
   6594  1.1  skrll {
   6595  1.1  skrll return f != $ac_func;
   6596  1.1  skrll   ;
   6597  1.1  skrll   return 0;
   6598  1.1  skrll }
   6599  1.1  skrll _ACEOF
   6600  1.1  skrll rm -f conftest.$ac_objext conftest$ac_exeext
   6601  1.1  skrll if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
   6602  1.1  skrll   (eval $ac_link) 2>conftest.er1
   6603  1.1  skrll   ac_status=$?
   6604  1.1  skrll   grep -v '^ *+' conftest.er1 >conftest.err
   6605  1.1  skrll   rm -f conftest.er1
   6606  1.1  skrll   cat conftest.err >&5
   6607  1.1  skrll   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   6608  1.1  skrll   (exit $ac_status); } &&
   6609  1.1  skrll 	 { ac_try='test -z "$ac_c_werror_flag"
   6610  1.1  skrll 			 || test ! -s conftest.err'
   6611  1.1  skrll   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   6612  1.1  skrll   (eval $ac_try) 2>&5
   6613  1.1  skrll   ac_status=$?
   6614  1.1  skrll   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   6615  1.1  skrll   (exit $ac_status); }; } &&
   6616  1.1  skrll 	 { ac_try='test -s conftest$ac_exeext'
   6617  1.1  skrll   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   6618  1.1  skrll   (eval $ac_try) 2>&5
   6619  1.1  skrll   ac_status=$?
   6620  1.1  skrll   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   6621  1.1  skrll   (exit $ac_status); }; }; then
   6622  1.1  skrll   eval "$as_ac_var=yes"
   6623  1.1  skrll else
   6624  1.1  skrll   echo "$as_me: failed program was:" >&5
   6625  1.1  skrll sed 's/^/| /' conftest.$ac_ext >&5
   6626  1.1  skrll 
   6627  1.1  skrll eval "$as_ac_var=no"
   6628  1.1  skrll fi
   6629  1.1  skrll rm -f conftest.err conftest.$ac_objext \
   6630  1.1  skrll       conftest$ac_exeext conftest.$ac_ext
   6631  1.1  skrll fi
   6632  1.1  skrll echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
   6633  1.1  skrll echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
   6634  1.1  skrll if test `eval echo '${'$as_ac_var'}'` = yes; then
   6635  1.1  skrll 
   6636  1.1  skrll cat >>confdefs.h <<_ACEOF
   6637  1.1  skrll #define CRAY_STACKSEG_END $ac_func
   6638  1.1  skrll _ACEOF
   6639  1.1  skrll   break
   6640  1.1  skrll fi
   6641  1.1  skrll 
   6642  1.1  skrll   done
   6643  1.1  skrll fi
   6644  1.1  skrll 
   6645  1.1  skrll echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
   6646  1.1  skrll echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
   6647  1.1  skrll if test "${ac_cv_c_stack_direction+set}" = set; then
   6648  1.1  skrll   echo $ECHO_N "(cached) $ECHO_C" >&6
   6649  1.1  skrll else
   6650  1.1  skrll   if test "$cross_compiling" = yes; then
   6651  1.1  skrll   ac_cv_c_stack_direction=0
   6652  1.1  skrll else
   6653  1.1  skrll   cat >conftest.$ac_ext <<_ACEOF
   6654  1.1  skrll /* confdefs.h.  */
   6655  1.1  skrll _ACEOF
   6656  1.1  skrll cat confdefs.h >>conftest.$ac_ext
   6657  1.1  skrll cat >>conftest.$ac_ext <<_ACEOF
   6658  1.1  skrll /* end confdefs.h.  */
   6659  1.1  skrll find_stack_direction ()
   6660  1.1  skrll {
   6661  1.1  skrll   static char *addr = 0;
   6662  1.1  skrll   auto char dummy;
   6663  1.1  skrll   if (addr == 0)
   6664  1.1  skrll     {
   6665  1.1  skrll       addr = &dummy;
   6666  1.1  skrll       return find_stack_direction ();
   6667  1.1  skrll     }
   6668  1.1  skrll   else
   6669  1.1  skrll     return (&dummy > addr) ? 1 : -1;
   6670  1.1  skrll }
   6671  1.1  skrll main ()
   6672  1.1  skrll {
   6673  1.1  skrll   exit (find_stack_direction() < 0);
   6674  1.1  skrll }
   6675  1.1  skrll _ACEOF
   6676  1.1  skrll rm -f conftest$ac_exeext
   6677  1.1  skrll if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
   6678  1.1  skrll   (eval $ac_link) 2>&5
   6679  1.1  skrll   ac_status=$?
   6680  1.1  skrll   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   6681  1.1  skrll   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
   6682  1.1  skrll   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   6683  1.1  skrll   (eval $ac_try) 2>&5
   6684  1.1  skrll   ac_status=$?
   6685  1.1  skrll   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   6686  1.1  skrll   (exit $ac_status); }; }; then
   6687  1.1  skrll   ac_cv_c_stack_direction=1
   6688  1.1  skrll else
   6689  1.1  skrll   echo "$as_me: program exited with status $ac_status" >&5
   6690  1.1  skrll echo "$as_me: failed program was:" >&5
   6691  1.1  skrll sed 's/^/| /' conftest.$ac_ext >&5
   6692  1.1  skrll 
   6693  1.1  skrll ( exit $ac_status )
   6694  1.1  skrll ac_cv_c_stack_direction=-1
   6695  1.1  skrll fi
   6696  1.1  skrll rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
   6697  1.1  skrll fi
   6698  1.1  skrll fi
   6699  1.1  skrll echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
   6700  1.1  skrll echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
   6701  1.1  skrll 
   6702  1.1  skrll cat >>confdefs.h <<_ACEOF
   6703  1.1  skrll #define STACK_DIRECTION $ac_cv_c_stack_direction
   6704  1.1  skrll _ACEOF
   6705  1.1  skrll 
   6706  1.1  skrll 
   6707  1.1  skrll 
   6708  1.1  skrll 
   6709  1.1  skrll for ac_header in unistd.h vfork.h
   6710  1.1  skrll do
   6711  1.1  skrll as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
   6712  1.1  skrll echo "$as_me:$LINENO: checking for $ac_header" >&5
   6713  1.1  skrll echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
   6714  1.1  skrll if eval "test \"\${$as_ac_Header+set}\" = set"; then
   6715  1.1  skrll   echo $ECHO_N "(cached) $ECHO_C" >&6
   6716  1.1  skrll else
   6717  1.1  skrll   cat >conftest.$ac_ext <<_ACEOF
   6718  1.1  skrll /* confdefs.h.  */
   6719  1.1  skrll _ACEOF
   6720  1.1  skrll cat confdefs.h >>conftest.$ac_ext
   6721  1.1  skrll cat >>conftest.$ac_ext <<_ACEOF
   6722  1.1  skrll /* end confdefs.h.  */
   6723  1.1  skrll #include <$ac_header>
   6724  1.1  skrll _ACEOF
   6725  1.1  skrll if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
   6726  1.1  skrll   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
   6727  1.1  skrll   ac_status=$?
   6728  1.1  skrll   grep -v '^ *+' conftest.er1 >conftest.err
   6729  1.1  skrll   rm -f conftest.er1
   6730  1.1  skrll   cat conftest.err >&5
   6731  1.1  skrll   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   6732  1.1  skrll   (exit $ac_status); } >/dev/null; then
   6733  1.1  skrll   if test -s conftest.err; then
   6734  1.1  skrll     ac_cpp_err=$ac_c_preproc_warn_flag
   6735  1.1  skrll     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
   6736  1.1  skrll   else
   6737  1.1  skrll     ac_cpp_err=
   6738  1.1  skrll   fi
   6739  1.1  skrll else
   6740  1.1  skrll   ac_cpp_err=yes
   6741  1.1  skrll fi
   6742  1.1  skrll if test -z "$ac_cpp_err"; then
   6743  1.1  skrll   eval "$as_ac_Header=yes"
   6744  1.1  skrll else
   6745  1.1  skrll   echo "$as_me: failed program was:" >&5
   6746  1.1  skrll sed 's/^/| /' conftest.$ac_ext >&5
   6747  1.1  skrll 
   6748  1.1  skrll   eval "$as_ac_Header=no"
   6749  1.1  skrll fi
   6750  1.1  skrll rm -f conftest.err conftest.$ac_ext
   6751  1.1  skrll fi
   6752  1.1  skrll echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
   6753  1.1  skrll echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
   6754  1.1  skrll if test `eval echo '${'$as_ac_Header'}'` = yes; then
   6755  1.1  skrll   cat >>confdefs.h <<_ACEOF
   6756  1.1  skrll #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
   6757  1.1  skrll _ACEOF
   6758  1.1  skrll 
   6759  1.1  skrll fi
   6760  1.1  skrll done
   6761  1.1  skrll 
   6762  1.1  skrll 
   6763  1.1  skrll 
   6764  1.1  skrll for ac_func in fork vfork
   6765  1.1  skrll do
   6766  1.1  skrll as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
   6767  1.1  skrll echo "$as_me:$LINENO: checking for $ac_func" >&5
   6768  1.1  skrll echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
   6769  1.1  skrll if eval "test \"\${$as_ac_var+set}\" = set"; then
   6770  1.1  skrll   echo $ECHO_N "(cached) $ECHO_C" >&6
   6771  1.1  skrll else
   6772  1.1  skrll   if test x$gcc_no_link = xyes; then
   6773  1.1  skrll   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
   6774  1.1  skrll echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
   6775  1.1  skrll    { (exit 1); exit 1; }; }
   6776  1.1  skrll fi
   6777  1.1  skrll cat >conftest.$ac_ext <<_ACEOF
   6778  1.1  skrll /* confdefs.h.  */
   6779  1.1  skrll _ACEOF
   6780  1.1  skrll cat confdefs.h >>conftest.$ac_ext
   6781  1.1  skrll cat >>conftest.$ac_ext <<_ACEOF
   6782  1.1  skrll /* end confdefs.h.  */
   6783  1.1  skrll /* System header to define __stub macros and hopefully few prototypes,
   6784  1.1  skrll     which can conflict with char $ac_func (); below.
   6785  1.1  skrll     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   6786  1.1  skrll     <limits.h> exists even on freestanding compilers.  Under hpux,
   6787  1.1  skrll     including <limits.h> includes <sys/time.h> and causes problems
   6788  1.1  skrll     checking for functions defined therein.  */
   6789  1.1  skrll #if defined (__STDC__) && !defined (_HPUX_SOURCE)
   6790  1.1  skrll # include <limits.h>
   6791  1.1  skrll #else
   6792  1.1  skrll # include <assert.h>
   6793  1.1  skrll #endif
   6794  1.1  skrll /* Override any gcc2 internal prototype to avoid an error.  */
   6795  1.1  skrll #ifdef __cplusplus
   6796  1.1  skrll extern "C"
   6797  1.1  skrll {
   6798  1.1  skrll #endif
   6799  1.1  skrll /* We use char because int might match the return type of a gcc2
   6800  1.1  skrll    builtin and then its argument prototype would still apply.  */
   6801  1.1  skrll char $ac_func ();
   6802  1.1  skrll /* The GNU C library defines this for functions which it implements
   6803  1.1  skrll     to always fail with ENOSYS.  Some functions are actually named
   6804  1.1  skrll     something starting with __ and the normal name is an alias.  */
   6805  1.1  skrll #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
   6806  1.1  skrll choke me
   6807  1.1  skrll #else
   6808  1.1  skrll char (*f) () = $ac_func;
   6809  1.1  skrll #endif
   6810  1.1  skrll #ifdef __cplusplus
   6811  1.1  skrll }
   6812  1.1  skrll #endif
   6813  1.1  skrll 
   6814  1.1  skrll int
   6815  1.1  skrll main ()
   6816  1.1  skrll {
   6817  1.1  skrll return f != $ac_func;
   6818  1.1  skrll   ;
   6819  1.1  skrll   return 0;
   6820  1.1  skrll }
   6821  1.1  skrll _ACEOF
   6822  1.1  skrll rm -f conftest.$ac_objext conftest$ac_exeext
   6823  1.1  skrll if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
   6824  1.1  skrll   (eval $ac_link) 2>conftest.er1
   6825  1.1  skrll   ac_status=$?
   6826  1.1  skrll   grep -v '^ *+' conftest.er1 >conftest.err
   6827  1.1  skrll   rm -f conftest.er1
   6828  1.1  skrll   cat conftest.err >&5
   6829  1.1  skrll   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   6830  1.1  skrll   (exit $ac_status); } &&
   6831  1.1  skrll 	 { ac_try='test -z "$ac_c_werror_flag"
   6832  1.1  skrll 			 || test ! -s conftest.err'
   6833  1.1  skrll   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   6834  1.1  skrll   (eval $ac_try) 2>&5
   6835  1.1  skrll   ac_status=$?
   6836  1.1  skrll   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   6837  1.1  skrll   (exit $ac_status); }; } &&
   6838  1.1  skrll 	 { ac_try='test -s conftest$ac_exeext'
   6839  1.1  skrll   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   6840  1.1  skrll   (eval $ac_try) 2>&5
   6841  1.1  skrll   ac_status=$?
   6842  1.1  skrll   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   6843  1.1  skrll   (exit $ac_status); }; }; then
   6844  1.1  skrll   eval "$as_ac_var=yes"
   6845  1.1  skrll else
   6846  1.1  skrll   echo "$as_me: failed program was:" >&5
   6847  1.1  skrll sed 's/^/| /' conftest.$ac_ext >&5
   6848  1.1  skrll 
   6849  1.1  skrll eval "$as_ac_var=no"
   6850  1.1  skrll fi
   6851  1.1  skrll rm -f conftest.err conftest.$ac_objext \
   6852  1.1  skrll       conftest$ac_exeext conftest.$ac_ext
   6853  1.1  skrll fi
   6854  1.1  skrll echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
   6855  1.1  skrll echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
   6856  1.1  skrll if test `eval echo '${'$as_ac_var'}'` = yes; then
   6857  1.1  skrll   cat >>confdefs.h <<_ACEOF
   6858  1.1  skrll #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
   6859  1.1  skrll _ACEOF
   6860  1.1  skrll 
   6861  1.1  skrll fi
   6862  1.1  skrll done
   6863  1.1  skrll 
   6864  1.1  skrll if test "x$ac_cv_func_fork" = xyes; then
   6865  1.1  skrll   echo "$as_me:$LINENO: checking for working fork" >&5
   6866  1.1  skrll echo $ECHO_N "checking for working fork... $ECHO_C" >&6
   6867  1.1  skrll if test "${ac_cv_func_fork_works+set}" = set; then
   6868  1.1  skrll   echo $ECHO_N "(cached) $ECHO_C" >&6
   6869  1.1  skrll else
   6870  1.1  skrll   if test "$cross_compiling" = yes; then
   6871  1.1  skrll   ac_cv_func_fork_works=cross
   6872  1.1  skrll else
   6873  1.1  skrll   cat >conftest.$ac_ext <<_ACEOF
   6874  1.1  skrll /* By Ruediger Kuhlmann. */
   6875  1.1  skrll       #include <sys/types.h>
   6876  1.1  skrll       #if HAVE_UNISTD_H
   6877  1.1  skrll       # include <unistd.h>
   6878  1.1  skrll       #endif
   6879  1.1  skrll       /* Some systems only have a dummy stub for fork() */
   6880  1.1  skrll       int main ()
   6881  1.1  skrll       {
   6882  1.1  skrll 	if (fork() < 0)
   6883  1.1  skrll 	  exit (1);
   6884  1.1  skrll 	exit (0);
   6885  1.1  skrll       }
   6886  1.1  skrll _ACEOF
   6887  1.1  skrll rm -f conftest$ac_exeext
   6888  1.1  skrll if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
   6889  1.1  skrll   (eval $ac_link) 2>&5
   6890  1.1  skrll   ac_status=$?
   6891  1.1  skrll   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   6892  1.1  skrll   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
   6893  1.1  skrll   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   6894  1.1  skrll   (eval $ac_try) 2>&5
   6895  1.1  skrll   ac_status=$?
   6896  1.1  skrll   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   6897  1.1  skrll   (exit $ac_status); }; }; then
   6898  1.1  skrll   ac_cv_func_fork_works=yes
   6899  1.1  skrll else
   6900  1.1  skrll   echo "$as_me: program exited with status $ac_status" >&5
   6901  1.1  skrll echo "$as_me: failed program was:" >&5
   6902  1.1  skrll sed 's/^/| /' conftest.$ac_ext >&5
   6903  1.1  skrll 
   6904  1.1  skrll ( exit $ac_status )
   6905  1.1  skrll ac_cv_func_fork_works=no
   6906  1.1  skrll fi
   6907  1.1  skrll rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
   6908  1.1  skrll fi
   6909  1.1  skrll fi
   6910  1.1  skrll echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
   6911  1.1  skrll echo "${ECHO_T}$ac_cv_func_fork_works" >&6
   6912  1.1  skrll 
   6913  1.1  skrll else
   6914  1.1  skrll   ac_cv_func_fork_works=$ac_cv_func_fork
   6915  1.1  skrll fi
   6916  1.1  skrll if test "x$ac_cv_func_fork_works" = xcross; then
   6917  1.1  skrll   case $host in
   6918  1.1  skrll     *-*-amigaos* | *-*-msdosdjgpp*)
   6919  1.1  skrll       # Override, as these systems have only a dummy fork() stub
   6920  1.1  skrll       ac_cv_func_fork_works=no
   6921  1.1  skrll       ;;
   6922  1.1  skrll     *)
   6923  1.1  skrll       ac_cv_func_fork_works=yes
   6924  1.1  skrll       ;;
   6925  1.1  skrll   esac
   6926  1.1  skrll   { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
   6927  1.1  skrll echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
   6928  1.1  skrll fi
   6929  1.1  skrll ac_cv_func_vfork_works=$ac_cv_func_vfork
   6930  1.1  skrll if test "x$ac_cv_func_vfork" = xyes; then
   6931  1.1  skrll   echo "$as_me:$LINENO: checking for working vfork" >&5
   6932  1.1  skrll echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
   6933  1.1  skrll if test "${ac_cv_func_vfork_works+set}" = set; then
   6934  1.1  skrll   echo $ECHO_N "(cached) $ECHO_C" >&6
   6935  1.1  skrll else
   6936  1.1  skrll   if test "$cross_compiling" = yes; then
   6937  1.1  skrll   ac_cv_func_vfork_works=cross
   6938  1.1  skrll else
   6939  1.1  skrll   cat >conftest.$ac_ext <<_ACEOF
   6940  1.1  skrll /* confdefs.h.  */
   6941  1.1  skrll _ACEOF
   6942  1.1  skrll cat confdefs.h >>conftest.$ac_ext
   6943  1.1  skrll cat >>conftest.$ac_ext <<_ACEOF
   6944  1.1  skrll /* end confdefs.h.  */
   6945  1.1  skrll /* Thanks to Paul Eggert for this test.  */
   6946  1.1  skrll #include <stdio.h>
   6947  1.1  skrll #include <stdlib.h>
   6948  1.1  skrll #include <sys/types.h>
   6949  1.1  skrll #include <sys/stat.h>
   6950  1.1  skrll #include <sys/wait.h>
   6951  1.1  skrll #if HAVE_UNISTD_H
   6952  1.1  skrll # include <unistd.h>
   6953  1.1  skrll #endif
   6954  1.1  skrll #if HAVE_VFORK_H
   6955  1.1  skrll # include <vfork.h>
   6956  1.1  skrll #endif
   6957  1.1  skrll /* On some sparc systems, changes by the child to local and incoming
   6958  1.1  skrll    argument registers are propagated back to the parent.  The compiler
   6959  1.1  skrll    is told about this with #include <vfork.h>, but some compilers
   6960  1.1  skrll    (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
   6961  1.1  skrll    static variable whose address is put into a register that is
   6962  1.1  skrll    clobbered by the vfork.  */
   6963  1.1  skrll static void
   6964  1.1  skrll #ifdef __cplusplus
   6965  1.1  skrll sparc_address_test (int arg)
   6966  1.1  skrll # else
   6967  1.1  skrll sparc_address_test (arg) int arg;
   6968  1.1  skrll #endif
   6969  1.1  skrll {
   6970  1.1  skrll   static pid_t child;
   6971  1.1  skrll   if (!child) {
   6972  1.1  skrll     child = vfork ();
   6973  1.1  skrll     if (child < 0) {
   6974  1.1  skrll       perror ("vfork");
   6975  1.1  skrll       _exit(2);
   6976  1.1  skrll     }
   6977  1.1  skrll     if (!child) {
   6978  1.1  skrll       arg = getpid();
   6979  1.1  skrll       write(-1, "", 0);
   6980  1.1  skrll       _exit (arg);
   6981  1.1  skrll     }
   6982  1.1  skrll   }
   6983  1.1  skrll }
   6984  1.1  skrll 
   6985  1.1  skrll int
   6986  1.1  skrll main ()
   6987  1.1  skrll {
   6988  1.1  skrll   pid_t parent = getpid ();
   6989  1.1  skrll   pid_t child;
   6990  1.1  skrll 
   6991  1.1  skrll   sparc_address_test (0);
   6992  1.1  skrll 
   6993  1.1  skrll   child = vfork ();
   6994  1.1  skrll 
   6995  1.1  skrll   if (child == 0) {
   6996  1.1  skrll     /* Here is another test for sparc vfork register problems.  This
   6997  1.1  skrll        test uses lots of local variables, at least as many local
   6998  1.1  skrll        variables as main has allocated so far including compiler
   6999  1.1  skrll        temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
   7000  1.1  skrll        4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
   7001  1.1  skrll        reuse the register of parent for one of the local variables,
   7002  1.1  skrll        since it will think that parent can't possibly be used any more
   7003  1.1  skrll        in this routine.  Assigning to the local variable will thus
   7004  1.1  skrll        munge parent in the parent process.  */
   7005  1.1  skrll     pid_t
   7006  1.1  skrll       p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
   7007  1.1  skrll       p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
   7008  1.1  skrll     /* Convince the compiler that p..p7 are live; otherwise, it might
   7009  1.1  skrll        use the same hardware register for all 8 local variables.  */
   7010  1.1  skrll     if (p != p1 || p != p2 || p != p3 || p != p4
   7011  1.1  skrll 	|| p != p5 || p != p6 || p != p7)
   7012  1.1  skrll       _exit(1);
   7013  1.1  skrll 
   7014  1.1  skrll     /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
   7015  1.1  skrll        from child file descriptors.  If the child closes a descriptor
   7016  1.1  skrll        before it execs or exits, this munges the parent's descriptor
   7017  1.1  skrll        as well.  Test for this by closing stdout in the child.  */
   7018  1.1  skrll     _exit(close(fileno(stdout)) != 0);
   7019  1.1  skrll   } else {
   7020  1.1  skrll     int status;
   7021  1.1  skrll     struct stat st;
   7022  1.1  skrll 
   7023  1.1  skrll     while (wait(&status) != child)
   7024  1.1  skrll       ;
   7025  1.1  skrll     exit(
   7026  1.1  skrll 	 /* Was there some problem with vforking?  */
   7027  1.1  skrll 	 child < 0
   7028  1.1  skrll 
   7029  1.1  skrll 	 /* Did the child fail?  (This shouldn't happen.)  */
   7030  1.1  skrll 	 || status
   7031  1.1  skrll 
   7032  1.1  skrll 	 /* Did the vfork/compiler bug occur?  */
   7033  1.1  skrll 	 || parent != getpid()
   7034  1.1  skrll 
   7035  1.1  skrll 	 /* Did the file descriptor bug occur?  */
   7036  1.1  skrll 	 || fstat(fileno(stdout), &st) != 0
   7037  1.1  skrll 	 );
   7038  1.1  skrll   }
   7039  1.1  skrll }
   7040  1.1  skrll _ACEOF
   7041  1.1  skrll rm -f conftest$ac_exeext
   7042  1.1  skrll if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
   7043  1.1  skrll   (eval $ac_link) 2>&5
   7044  1.1  skrll   ac_status=$?
   7045  1.1  skrll   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   7046  1.1  skrll   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
   7047  1.1  skrll   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   7048  1.1  skrll   (eval $ac_try) 2>&5
   7049  1.1  skrll   ac_status=$?
   7050  1.1  skrll   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   7051  1.1  skrll   (exit $ac_status); }; }; then
   7052  1.1  skrll   ac_cv_func_vfork_works=yes
   7053  1.1  skrll else
   7054  1.1  skrll   echo "$as_me: program exited with status $ac_status" >&5
   7055  1.1  skrll echo "$as_me: failed program was:" >&5
   7056  1.1  skrll sed 's/^/| /' conftest.$ac_ext >&5
   7057  1.1  skrll 
   7058  1.1  skrll ( exit $ac_status )
   7059  1.1  skrll ac_cv_func_vfork_works=no
   7060  1.1  skrll fi
   7061  1.1  skrll rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
   7062  1.1  skrll fi
   7063  1.1  skrll fi
   7064  1.1  skrll echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
   7065  1.1  skrll echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
   7066  1.1  skrll 
   7067  1.1  skrll fi;
   7068  1.1  skrll if test "x$ac_cv_func_fork_works" = xcross; then
   7069  1.1  skrll   ac_cv_func_vfork_works=$ac_cv_func_vfork
   7070  1.1  skrll   { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
   7071  1.1  skrll echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
   7072  1.1  skrll fi
   7073  1.1  skrll 
   7074  1.1  skrll if test "x$ac_cv_func_vfork_works" = xyes; then
   7075  1.1  skrll 
   7076  1.1  skrll cat >>confdefs.h <<\_ACEOF
   7077  1.1  skrll #define HAVE_WORKING_VFORK 1
   7078  1.1  skrll _ACEOF
   7079  1.1  skrll 
   7080  1.1  skrll else
   7081  1.1  skrll 
   7082  1.1  skrll cat >>confdefs.h <<\_ACEOF
   7083  1.1  skrll #define vfork fork
   7084  1.1  skrll _ACEOF
   7085  1.1  skrll 
   7086  1.1  skrll fi
   7087  1.1  skrll if test "x$ac_cv_func_fork_works" = xyes; then
   7088  1.1  skrll 
   7089  1.1  skrll cat >>confdefs.h <<\_ACEOF
   7090  1.1  skrll #define HAVE_WORKING_FORK 1
   7091  1.1  skrll _ACEOF
   7092  1.1  skrll 
   7093  1.1  skrll fi
   7094  1.1  skrll 
   7095  1.1  skrll   if test $ac_cv_func_vfork_works = no; then
   7096  1.1  skrll     case $LIBOBJS in
   7097  1.1  skrll     "vfork.$ac_objext"   | \
   7098  1.1  skrll   *" vfork.$ac_objext"   | \
   7099  1.1  skrll     "vfork.$ac_objext "* | \
   7100  1.1  skrll   *" vfork.$ac_objext "* ) ;;
   7101  1.1  skrll   *) LIBOBJS="$LIBOBJS vfork.$ac_objext" ;;
   7102  1.1  skrll esac
   7103  1.1  skrll 
   7104  1.1  skrll   fi
   7105  1.1  skrll   # We only need _doprnt if we might use it to implement v*printf.
   7106  1.1  skrll   if test $ac_cv_func_vprintf != yes \
   7107  1.1  skrll      || test $ac_cv_func_vfprintf != yes \
   7108  1.1  skrll      || test $ac_cv_func_vsprintf != yes; then
   7109  1.1  skrll 
   7110  1.1  skrll for ac_func in _doprnt
   7111  1.1  skrll do
   7112  1.1  skrll as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
   7113  1.1  skrll echo "$as_me:$LINENO: checking for $ac_func" >&5
   7114  1.1  skrll echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
   7115  1.1  skrll if eval "test \"\${$as_ac_var+set}\" = set"; then
   7116  1.1  skrll   echo $ECHO_N "(cached) $ECHO_C" >&6
   7117  1.1  skrll else
   7118  1.1  skrll   if test x$gcc_no_link = xyes; then
   7119  1.1  skrll   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
   7120  1.1  skrll echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
   7121  1.1  skrll    { (exit 1); exit 1; }; }
   7122  1.1  skrll fi
   7123  1.1  skrll cat >conftest.$ac_ext <<_ACEOF
   7124  1.1  skrll /* confdefs.h.  */
   7125  1.1  skrll _ACEOF
   7126  1.1  skrll cat confdefs.h >>conftest.$ac_ext
   7127  1.1  skrll cat >>conftest.$ac_ext <<_ACEOF
   7128  1.1  skrll /* end confdefs.h.  */
   7129  1.1  skrll /* System header to define __stub macros and hopefully few prototypes,
   7130  1.1  skrll     which can conflict with char $ac_func (); below.
   7131  1.1  skrll     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   7132  1.1  skrll     <limits.h> exists even on freestanding compilers.  Under hpux,
   7133  1.1  skrll     including <limits.h> includes <sys/time.h> and causes problems
   7134  1.1  skrll     checking for functions defined therein.  */
   7135  1.1  skrll #if defined (__STDC__) && !defined (_HPUX_SOURCE)
   7136  1.1  skrll # include <limits.h>
   7137  1.1  skrll #else
   7138  1.1  skrll # include <assert.h>
   7139  1.1  skrll #endif
   7140  1.1  skrll /* Override any gcc2 internal prototype to avoid an error.  */
   7141  1.1  skrll #ifdef __cplusplus
   7142  1.1  skrll extern "C"
   7143  1.1  skrll {
   7144  1.1  skrll #endif
   7145  1.1  skrll /* We use char because int might match the return type of a gcc2
   7146  1.1  skrll    builtin and then its argument prototype would still apply.  */
   7147  1.1  skrll char $ac_func ();
   7148  1.1  skrll /* The GNU C library defines this for functions which it implements
   7149  1.1  skrll     to always fail with ENOSYS.  Some functions are actually named
   7150  1.1  skrll     something starting with __ and the normal name is an alias.  */
   7151  1.1  skrll #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
   7152  1.1  skrll choke me
   7153  1.1  skrll #else
   7154  1.1  skrll char (*f) () = $ac_func;
   7155  1.1  skrll #endif
   7156  1.1  skrll #ifdef __cplusplus
   7157  1.1  skrll }
   7158  1.1  skrll #endif
   7159  1.1  skrll 
   7160  1.1  skrll int
   7161  1.1  skrll main ()
   7162  1.1  skrll {
   7163  1.1  skrll return f != $ac_func;
   7164  1.1  skrll   ;
   7165  1.1  skrll   return 0;
   7166  1.1  skrll }
   7167  1.1  skrll _ACEOF
   7168  1.1  skrll rm -f conftest.$ac_objext conftest$ac_exeext
   7169  1.1  skrll if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
   7170  1.1  skrll   (eval $ac_link) 2>conftest.er1
   7171  1.1  skrll   ac_status=$?
   7172  1.1  skrll   grep -v '^ *+' conftest.er1 >conftest.err
   7173  1.1  skrll   rm -f conftest.er1
   7174  1.1  skrll   cat conftest.err >&5
   7175  1.1  skrll   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   7176  1.1  skrll   (exit $ac_status); } &&
   7177  1.1  skrll 	 { ac_try='test -z "$ac_c_werror_flag"
   7178  1.1  skrll 			 || test ! -s conftest.err'
   7179  1.1  skrll   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   7180  1.1  skrll   (eval $ac_try) 2>&5
   7181  1.1  skrll   ac_status=$?
   7182  1.1  skrll   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   7183  1.1  skrll   (exit $ac_status); }; } &&
   7184  1.1  skrll 	 { ac_try='test -s conftest$ac_exeext'
   7185  1.1  skrll   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   7186  1.1  skrll   (eval $ac_try) 2>&5
   7187  1.1  skrll   ac_status=$?
   7188  1.1  skrll   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   7189  1.1  skrll   (exit $ac_status); }; }; then
   7190  1.1  skrll   eval "$as_ac_var=yes"
   7191  1.1  skrll else
   7192  1.1  skrll   echo "$as_me: failed program was:" >&5
   7193  1.1  skrll sed 's/^/| /' conftest.$ac_ext >&5
   7194  1.1  skrll 
   7195  1.1  skrll eval "$as_ac_var=no"
   7196  1.1  skrll fi
   7197  1.1  skrll rm -f conftest.err conftest.$ac_objext \
   7198  1.1  skrll       conftest$ac_exeext conftest.$ac_ext
   7199  1.1  skrll fi
   7200  1.1  skrll echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
   7201  1.1  skrll echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
   7202  1.1  skrll if test `eval echo '${'$as_ac_var'}'` = yes; then
   7203  1.1  skrll   cat >>confdefs.h <<_ACEOF
   7204  1.1  skrll #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
   7205  1.1  skrll _ACEOF
   7206  1.1  skrll 
   7207  1.1  skrll else
   7208  1.1  skrll   case $LIBOBJS in
   7209  1.1  skrll     "$ac_func.$ac_objext"   | \
   7210  1.1  skrll   *" $ac_func.$ac_objext"   | \
   7211  1.1  skrll     "$ac_func.$ac_objext "* | \
   7212  1.1  skrll   *" $ac_func.$ac_objext "* ) ;;
   7213  1.1  skrll   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
   7214  1.1  skrll esac
   7215  1.1  skrll 
   7216  1.1  skrll fi
   7217  1.1  skrll done
   7218  1.1  skrll 
   7219  1.1  skrll 
   7220  1.1  skrll   else
   7221  1.1  skrll 
   7222  1.1  skrll for ac_func in _doprnt
   7223  1.1  skrll do
   7224  1.1  skrll as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
   7225  1.1  skrll echo "$as_me:$LINENO: checking for $ac_func" >&5
   7226  1.1  skrll echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
   7227  1.1  skrll if eval "test \"\${$as_ac_var+set}\" = set"; then
   7228  1.1  skrll   echo $ECHO_N "(cached) $ECHO_C" >&6
   7229  1.1  skrll else
   7230  1.1  skrll   if test x$gcc_no_link = xyes; then
   7231  1.1  skrll   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
   7232  1.1  skrll echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
   7233  1.1  skrll    { (exit 1); exit 1; }; }
   7234  1.1  skrll fi
   7235  1.1  skrll cat >conftest.$ac_ext <<_ACEOF
   7236  1.1  skrll /* confdefs.h.  */
   7237  1.1  skrll _ACEOF
   7238  1.1  skrll cat confdefs.h >>conftest.$ac_ext
   7239  1.1  skrll cat >>conftest.$ac_ext <<_ACEOF
   7240  1.1  skrll /* end confdefs.h.  */
   7241  1.1  skrll /* System header to define __stub macros and hopefully few prototypes,
   7242  1.1  skrll     which can conflict with char $ac_func (); below.
   7243  1.1  skrll     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   7244  1.1  skrll     <limits.h> exists even on freestanding compilers.  Under hpux,
   7245  1.1  skrll     including <limits.h> includes <sys/time.h> and causes problems
   7246  1.1  skrll     checking for functions defined therein.  */
   7247  1.1  skrll #if defined (__STDC__) && !defined (_HPUX_SOURCE)
   7248  1.1  skrll # include <limits.h>
   7249  1.1  skrll #else
   7250  1.1  skrll # include <assert.h>
   7251  1.1  skrll #endif
   7252  1.1  skrll /* Override any gcc2 internal prototype to avoid an error.  */
   7253  1.1  skrll #ifdef __cplusplus
   7254  1.1  skrll extern "C"
   7255  1.1  skrll {
   7256  1.1  skrll #endif
   7257  1.1  skrll /* We use char because int might match the return type of a gcc2
   7258  1.1  skrll    builtin and then its argument prototype would still apply.  */
   7259  1.1  skrll char $ac_func ();
   7260  1.1  skrll /* The GNU C library defines this for functions which it implements
   7261  1.1  skrll     to always fail with ENOSYS.  Some functions are actually named
   7262  1.1  skrll     something starting with __ and the normal name is an alias.  */
   7263  1.1  skrll #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
   7264  1.1  skrll choke me
   7265  1.1  skrll #else
   7266  1.1  skrll char (*f) () = $ac_func;
   7267  1.1  skrll #endif
   7268  1.1  skrll #ifdef __cplusplus
   7269  1.1  skrll }
   7270  1.1  skrll #endif
   7271  1.1  skrll 
   7272  1.1  skrll int
   7273  1.1  skrll main ()
   7274  1.1  skrll {
   7275  1.1  skrll return f != $ac_func;
   7276  1.1  skrll   ;
   7277  1.1  skrll   return 0;
   7278  1.1  skrll }
   7279  1.1  skrll _ACEOF
   7280  1.1  skrll rm -f conftest.$ac_objext conftest$ac_exeext
   7281  1.1  skrll if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
   7282  1.1  skrll   (eval $ac_link) 2>conftest.er1
   7283  1.1  skrll   ac_status=$?
   7284  1.1  skrll   grep -v '^ *+' conftest.er1 >conftest.err
   7285  1.1  skrll   rm -f conftest.er1
   7286  1.1  skrll   cat conftest.err >&5
   7287  1.1  skrll   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   7288  1.1  skrll   (exit $ac_status); } &&
   7289  1.1  skrll 	 { ac_try='test -z "$ac_c_werror_flag"
   7290  1.1  skrll 			 || test ! -s conftest.err'
   7291  1.1  skrll   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   7292  1.1  skrll   (eval $ac_try) 2>&5
   7293  1.1  skrll   ac_status=$?
   7294  1.1  skrll   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   7295  1.1  skrll   (exit $ac_status); }; } &&
   7296  1.1  skrll 	 { ac_try='test -s conftest$ac_exeext'
   7297  1.1  skrll   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   7298  1.1  skrll   (eval $ac_try) 2>&5
   7299  1.1  skrll   ac_status=$?
   7300  1.1  skrll   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   7301  1.1  skrll   (exit $ac_status); }; }; then
   7302  1.1  skrll   eval "$as_ac_var=yes"
   7303  1.1  skrll else
   7304  1.1  skrll   echo "$as_me: failed program was:" >&5
   7305  1.1  skrll sed 's/^/| /' conftest.$ac_ext >&5
   7306  1.1  skrll 
   7307  1.1  skrll eval "$as_ac_var=no"
   7308  1.1  skrll fi
   7309  1.1  skrll rm -f conftest.err conftest.$ac_objext \
   7310  1.1  skrll       conftest$ac_exeext conftest.$ac_ext
   7311  1.1  skrll fi
   7312  1.1  skrll echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
   7313  1.1  skrll echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
   7314  1.1  skrll if test `eval echo '${'$as_ac_var'}'` = yes; then
   7315  1.1  skrll   cat >>confdefs.h <<_ACEOF
   7316  1.1  skrll #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
   7317  1.1  skrll _ACEOF
   7318  1.1  skrll 
   7319  1.1  skrll fi
   7320  1.1  skrll done
   7321  1.1  skrll 
   7322  1.1  skrll   fi
   7323  1.1  skrll 
   7324  1.1  skrll   for v in $vars; do
   7325  1.1  skrll     echo "$as_me:$LINENO: checking for $v" >&5
   7326  1.1  skrll echo $ECHO_N "checking for $v... $ECHO_C" >&6
   7327  1.1  skrll     if eval "test \"\${libiberty_cv_var_$v+set}\" = set"; then
   7328  1.1  skrll   echo $ECHO_N "(cached) $ECHO_C" >&6
   7329  1.1  skrll else
   7330  1.1  skrll   if test x$gcc_no_link = xyes; then
   7331  1.1  skrll   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
   7332  1.1  skrll echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
   7333  1.1  skrll    { (exit 1); exit 1; }; }
   7334  1.1  skrll fi
   7335  1.1  skrll cat >conftest.$ac_ext <<_ACEOF
   7336  1.1  skrll /* confdefs.h.  */
   7337  1.1  skrll _ACEOF
   7338  1.1  skrll cat confdefs.h >>conftest.$ac_ext
   7339  1.1  skrll cat >>conftest.$ac_ext <<_ACEOF
   7340  1.1  skrll /* end confdefs.h.  */
   7341  1.1  skrll int *p;
   7342  1.1  skrll int
   7343  1.1  skrll main ()
   7344  1.1  skrll {
   7345  1.1  skrll extern int $v []; p = $v;
   7346  1.1  skrll   ;
   7347  1.1  skrll   return 0;
   7348  1.1  skrll }
   7349  1.1  skrll _ACEOF
   7350  1.1  skrll rm -f conftest.$ac_objext conftest$ac_exeext
   7351  1.1  skrll if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
   7352  1.1  skrll   (eval $ac_link) 2>conftest.er1
   7353  1.1  skrll   ac_status=$?
   7354  1.1  skrll   grep -v '^ *+' conftest.er1 >conftest.err
   7355  1.1  skrll   rm -f conftest.er1
   7356  1.1  skrll   cat conftest.err >&5
   7357  1.1  skrll   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   7358  1.1  skrll   (exit $ac_status); } &&
   7359  1.1  skrll 	 { ac_try='test -z "$ac_c_werror_flag"
   7360  1.1  skrll 			 || test ! -s conftest.err'
   7361  1.1  skrll   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   7362  1.1  skrll   (eval $ac_try) 2>&5
   7363  1.1  skrll   ac_status=$?
   7364  1.1  skrll   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   7365  1.1  skrll   (exit $ac_status); }; } &&
   7366  1.1  skrll 	 { ac_try='test -s conftest$ac_exeext'
   7367  1.1  skrll   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   7368  1.1  skrll   (eval $ac_try) 2>&5
   7369  1.1  skrll   ac_status=$?
   7370  1.1  skrll   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   7371  1.1  skrll   (exit $ac_status); }; }; then
   7372  1.1  skrll   eval "libiberty_cv_var_$v=yes"
   7373  1.1  skrll else
   7374  1.1  skrll   echo "$as_me: failed program was:" >&5
   7375  1.1  skrll sed 's/^/| /' conftest.$ac_ext >&5
   7376  1.1  skrll 
   7377  1.1  skrll eval "libiberty_cv_var_$v=no"
   7378  1.1  skrll fi
   7379  1.1  skrll rm -f conftest.err conftest.$ac_objext \
   7380  1.1  skrll       conftest$ac_exeext conftest.$ac_ext
   7381  1.1  skrll fi
   7382  1.1  skrll 
   7383  1.1  skrll     if eval "test \"`echo '$libiberty_cv_var_'$v`\" = yes"; then
   7384  1.1  skrll       echo "$as_me:$LINENO: result: yes" >&5
   7385  1.1  skrll echo "${ECHO_T}yes" >&6
   7386  1.1  skrll       n=HAVE_`echo $v | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
   7387  1.1  skrll       cat >>confdefs.h <<_ACEOF
   7388  1.1  skrll #define $n 1
   7389  1.1  skrll _ACEOF
   7390  1.1  skrll 
   7391  1.1  skrll     else
   7392  1.1  skrll       echo "$as_me:$LINENO: result: no" >&5
   7393  1.1  skrll echo "${ECHO_T}no" >&6
   7394  1.1  skrll     fi
   7395  1.1  skrll   done
   7396  1.1  skrll 
   7397  1.1  skrll   # special check for _system_configuration because AIX <4.3.2 do not
   7398  1.1  skrll   # contain the `physmem' member.
   7399  1.1  skrll   echo "$as_me:$LINENO: checking for external symbol _system_configuration" >&5
   7400  1.1  skrll echo $ECHO_N "checking for external symbol _system_configuration... $ECHO_C" >&6
   7401  1.1  skrll   cat >conftest.$ac_ext <<_ACEOF
   7402  1.1  skrll /* confdefs.h.  */
   7403  1.1  skrll _ACEOF
   7404  1.1  skrll cat confdefs.h >>conftest.$ac_ext
   7405  1.1  skrll cat >>conftest.$ac_ext <<_ACEOF
   7406  1.1  skrll /* end confdefs.h.  */
   7407  1.1  skrll #include <sys/systemcfg.h>
   7408  1.1  skrll int
   7409  1.1  skrll main ()
   7410  1.1  skrll {
   7411  1.1  skrll double x = _system_configuration.physmem;
   7412  1.1  skrll   ;
   7413  1.1  skrll   return 0;
   7414  1.1  skrll }
   7415  1.1  skrll _ACEOF
   7416  1.1  skrll rm -f conftest.$ac_objext
   7417  1.1  skrll if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
   7418  1.1  skrll   (eval $ac_compile) 2>conftest.er1
   7419  1.1  skrll   ac_status=$?
   7420  1.1  skrll   grep -v '^ *+' conftest.er1 >conftest.err
   7421  1.1  skrll   rm -f conftest.er1
   7422  1.1  skrll   cat conftest.err >&5
   7423  1.1  skrll   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   7424  1.1  skrll   (exit $ac_status); } &&
   7425  1.1  skrll 	 { ac_try='test -z "$ac_c_werror_flag"
   7426  1.1  skrll 			 || test ! -s conftest.err'
   7427  1.1  skrll   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   7428  1.1  skrll   (eval $ac_try) 2>&5
   7429  1.1  skrll   ac_status=$?
   7430  1.1  skrll   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   7431  1.1  skrll   (exit $ac_status); }; } &&
   7432  1.1  skrll 	 { ac_try='test -s conftest.$ac_objext'
   7433  1.1  skrll   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   7434  1.1  skrll   (eval $ac_try) 2>&5
   7435  1.1  skrll   ac_status=$?
   7436  1.1  skrll   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   7437  1.1  skrll   (exit $ac_status); }; }; then
   7438  1.1  skrll   echo "$as_me:$LINENO: result: yes" >&5
   7439  1.1  skrll echo "${ECHO_T}yes" >&6
   7440  1.1  skrll 
   7441  1.1  skrll cat >>confdefs.h <<\_ACEOF
   7442  1.1  skrll #define HAVE__SYSTEM_CONFIGURATION 1
   7443  1.1  skrll _ACEOF
   7444  1.1  skrll 
   7445  1.1  skrll else
   7446  1.1  skrll   echo "$as_me: failed program was:" >&5
   7447  1.1  skrll sed 's/^/| /' conftest.$ac_ext >&5
   7448  1.1  skrll 
   7449  1.1  skrll echo "$as_me:$LINENO: result: no" >&5
   7450  1.1  skrll echo "${ECHO_T}no" >&6
   7451  1.1  skrll fi
   7452  1.1  skrll rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
   7453  1.1  skrll 
   7454  1.1  skrll 
   7455  1.1  skrll for ac_func in $checkfuncs
   7456  1.1  skrll do
   7457  1.1  skrll as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
   7458  1.1  skrll echo "$as_me:$LINENO: checking for $ac_func" >&5
   7459  1.1  skrll echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
   7460  1.1  skrll if eval "test \"\${$as_ac_var+set}\" = set"; then
   7461  1.1  skrll   echo $ECHO_N "(cached) $ECHO_C" >&6
   7462  1.1  skrll else
   7463  1.1  skrll   if test x$gcc_no_link = xyes; then
   7464  1.1  skrll   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
   7465  1.1  skrll echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
   7466  1.1  skrll    { (exit 1); exit 1; }; }
   7467  1.1  skrll fi
   7468  1.1  skrll cat >conftest.$ac_ext <<_ACEOF
   7469  1.1  skrll /* confdefs.h.  */
   7470  1.1  skrll _ACEOF
   7471  1.1  skrll cat confdefs.h >>conftest.$ac_ext
   7472  1.1  skrll cat >>conftest.$ac_ext <<_ACEOF
   7473  1.1  skrll /* end confdefs.h.  */
   7474  1.1  skrll /* System header to define __stub macros and hopefully few prototypes,
   7475  1.1  skrll     which can conflict with char $ac_func (); below.
   7476  1.1  skrll     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   7477  1.1  skrll     <limits.h> exists even on freestanding compilers.  Under hpux,
   7478  1.1  skrll     including <limits.h> includes <sys/time.h> and causes problems
   7479  1.1  skrll     checking for functions defined therein.  */
   7480  1.1  skrll #if defined (__STDC__) && !defined (_HPUX_SOURCE)
   7481  1.1  skrll # include <limits.h>
   7482  1.1  skrll #else
   7483  1.1  skrll # include <assert.h>
   7484  1.1  skrll #endif
   7485  1.1  skrll /* Override any gcc2 internal prototype to avoid an error.  */
   7486  1.1  skrll #ifdef __cplusplus
   7487  1.1  skrll extern "C"
   7488  1.1  skrll {
   7489  1.1  skrll #endif
   7490  1.1  skrll /* We use char because int might match the return type of a gcc2
   7491  1.1  skrll    builtin and then its argument prototype would still apply.  */
   7492  1.1  skrll char $ac_func ();
   7493  1.1  skrll /* The GNU C library defines this for functions which it implements
   7494  1.1  skrll     to always fail with ENOSYS.  Some functions are actually named
   7495  1.1  skrll     something starting with __ and the normal name is an alias.  */
   7496  1.1  skrll #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
   7497  1.1  skrll choke me
   7498  1.1  skrll #else
   7499  1.1  skrll char (*f) () = $ac_func;
   7500  1.1  skrll #endif
   7501  1.1  skrll #ifdef __cplusplus
   7502  1.1  skrll }
   7503  1.1  skrll #endif
   7504  1.1  skrll 
   7505  1.1  skrll int
   7506  1.1  skrll main ()
   7507  1.1  skrll {
   7508  1.1  skrll return f != $ac_func;
   7509  1.1  skrll   ;
   7510  1.1  skrll   return 0;
   7511  1.1  skrll }
   7512  1.1  skrll _ACEOF
   7513  1.1  skrll rm -f conftest.$ac_objext conftest$ac_exeext
   7514  1.1  skrll if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
   7515  1.1  skrll   (eval $ac_link) 2>conftest.er1
   7516  1.1  skrll   ac_status=$?
   7517  1.1  skrll   grep -v '^ *+' conftest.er1 >conftest.err
   7518  1.1  skrll   rm -f conftest.er1
   7519  1.1  skrll   cat conftest.err >&5
   7520  1.1  skrll   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   7521  1.1  skrll   (exit $ac_status); } &&
   7522  1.1  skrll 	 { ac_try='test -z "$ac_c_werror_flag"
   7523  1.1  skrll 			 || test ! -s conftest.err'
   7524  1.1  skrll   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   7525  1.1  skrll   (eval $ac_try) 2>&5
   7526  1.1  skrll   ac_status=$?
   7527  1.1  skrll   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   7528  1.1  skrll   (exit $ac_status); }; } &&
   7529  1.1  skrll 	 { ac_try='test -s conftest$ac_exeext'
   7530  1.1  skrll   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   7531  1.1  skrll   (eval $ac_try) 2>&5
   7532  1.1  skrll   ac_status=$?
   7533  1.1  skrll   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   7534  1.1  skrll   (exit $ac_status); }; }; then
   7535  1.1  skrll   eval "$as_ac_var=yes"
   7536  1.1  skrll else
   7537  1.1  skrll   echo "$as_me: failed program was:" >&5
   7538  1.1  skrll sed 's/^/| /' conftest.$ac_ext >&5
   7539  1.1  skrll 
   7540  1.1  skrll eval "$as_ac_var=no"
   7541  1.1  skrll fi
   7542  1.1  skrll rm -f conftest.err conftest.$ac_objext \
   7543  1.1  skrll       conftest$ac_exeext conftest.$ac_ext
   7544  1.1  skrll fi
   7545  1.1  skrll echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
   7546  1.1  skrll echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
   7547  1.1  skrll if test `eval echo '${'$as_ac_var'}'` = yes; then
   7548  1.1  skrll   cat >>confdefs.h <<_ACEOF
   7549  1.1  skrll #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
   7550  1.1  skrll _ACEOF
   7551  1.1  skrll 
   7552  1.1  skrll fi
   7553  1.1  skrll done
   7554  1.1  skrll 
   7555  1.1  skrll   echo "$as_me:$LINENO: checking whether basename is declared" >&5
   7556  1.1  skrll echo $ECHO_N "checking whether basename is declared... $ECHO_C" >&6
   7557  1.1  skrll if test "${ac_cv_have_decl_basename+set}" = set; then
   7558  1.1  skrll   echo $ECHO_N "(cached) $ECHO_C" >&6
   7559  1.1  skrll else
   7560  1.1  skrll   cat >conftest.$ac_ext <<_ACEOF
   7561  1.1  skrll /* confdefs.h.  */
   7562  1.1  skrll _ACEOF
   7563  1.1  skrll cat confdefs.h >>conftest.$ac_ext
   7564  1.1  skrll cat >>conftest.$ac_ext <<_ACEOF
   7565  1.1  skrll /* end confdefs.h.  */
   7566  1.1  skrll $ac_includes_default
   7567  1.1  skrll int
   7568  1.1  skrll main ()
   7569  1.1  skrll {
   7570  1.1  skrll #ifndef basename
   7571  1.1  skrll   char *p = (char *) basename;
   7572  1.1  skrll #endif
   7573  1.1  skrll 
   7574  1.1  skrll   ;
   7575  1.1  skrll   return 0;
   7576  1.1  skrll }
   7577  1.1  skrll _ACEOF
   7578  1.1  skrll rm -f conftest.$ac_objext
   7579  1.1  skrll if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
   7580  1.1  skrll   (eval $ac_compile) 2>conftest.er1
   7581  1.1  skrll   ac_status=$?
   7582  1.1  skrll   grep -v '^ *+' conftest.er1 >conftest.err
   7583  1.1  skrll   rm -f conftest.er1
   7584  1.1  skrll   cat conftest.err >&5
   7585  1.1  skrll   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   7586  1.1  skrll   (exit $ac_status); } &&
   7587  1.1  skrll 	 { ac_try='test -z "$ac_c_werror_flag"
   7588  1.1  skrll 			 || test ! -s conftest.err'
   7589  1.1  skrll   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   7590  1.1  skrll   (eval $ac_try) 2>&5
   7591  1.1  skrll   ac_status=$?
   7592  1.1  skrll   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   7593  1.1  skrll   (exit $ac_status); }; } &&
   7594  1.1  skrll 	 { ac_try='test -s conftest.$ac_objext'
   7595  1.1  skrll   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   7596  1.1  skrll   (eval $ac_try) 2>&5
   7597  1.1  skrll   ac_status=$?
   7598  1.1  skrll   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   7599  1.1  skrll   (exit $ac_status); }; }; then
   7600  1.1  skrll   ac_cv_have_decl_basename=yes
   7601  1.1  skrll else
   7602  1.1  skrll   echo "$as_me: failed program was:" >&5
   7603  1.1  skrll sed 's/^/| /' conftest.$ac_ext >&5
   7604  1.1  skrll 
   7605  1.1  skrll ac_cv_have_decl_basename=no
   7606  1.1  skrll fi
   7607  1.1  skrll rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
   7608  1.1  skrll fi
   7609  1.1  skrll echo "$as_me:$LINENO: result: $ac_cv_have_decl_basename" >&5
   7610  1.1  skrll echo "${ECHO_T}$ac_cv_have_decl_basename" >&6
   7611  1.1  skrll if test $ac_cv_have_decl_basename = yes; then
   7612  1.1  skrll 
   7613  1.1  skrll cat >>confdefs.h <<_ACEOF
   7614  1.1  skrll #define HAVE_DECL_BASENAME 1
   7615  1.1  skrll _ACEOF
   7616  1.1  skrll 
   7617  1.1  skrll 
   7618  1.1  skrll else
   7619  1.1  skrll   cat >>confdefs.h <<_ACEOF
   7620  1.1  skrll #define HAVE_DECL_BASENAME 0
   7621  1.1  skrll _ACEOF
   7622  1.1  skrll 
   7623  1.1  skrll 
   7624  1.1  skrll fi
   7625  1.1  skrll echo "$as_me:$LINENO: checking whether ffs is declared" >&5
   7626  1.1  skrll echo $ECHO_N "checking whether ffs is declared... $ECHO_C" >&6
   7627  1.1  skrll if test "${ac_cv_have_decl_ffs+set}" = set; then
   7628  1.1  skrll   echo $ECHO_N "(cached) $ECHO_C" >&6
   7629  1.1  skrll else
   7630  1.1  skrll   cat >conftest.$ac_ext <<_ACEOF
   7631  1.1  skrll /* confdefs.h.  */
   7632  1.1  skrll _ACEOF
   7633  1.1  skrll cat confdefs.h >>conftest.$ac_ext
   7634  1.1  skrll cat >>conftest.$ac_ext <<_ACEOF
   7635  1.1  skrll /* end confdefs.h.  */
   7636  1.1  skrll $ac_includes_default
   7637  1.1  skrll int
   7638  1.1  skrll main ()
   7639  1.1  skrll {
   7640  1.1  skrll #ifndef ffs
   7641  1.1  skrll   char *p = (char *) ffs;
   7642  1.1  skrll #endif
   7643  1.1  skrll 
   7644  1.1  skrll   ;
   7645  1.1  skrll   return 0;
   7646  1.1  skrll }
   7647  1.1  skrll _ACEOF
   7648  1.1  skrll rm -f conftest.$ac_objext
   7649  1.1  skrll if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
   7650  1.1  skrll   (eval $ac_compile) 2>conftest.er1
   7651  1.1  skrll   ac_status=$?
   7652  1.1  skrll   grep -v '^ *+' conftest.er1 >conftest.err
   7653  1.1  skrll   rm -f conftest.er1
   7654  1.1  skrll   cat conftest.err >&5
   7655  1.1  skrll   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   7656  1.1  skrll   (exit $ac_status); } &&
   7657  1.1  skrll 	 { ac_try='test -z "$ac_c_werror_flag"
   7658  1.1  skrll 			 || test ! -s conftest.err'
   7659  1.1  skrll   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   7660  1.1  skrll   (eval $ac_try) 2>&5
   7661  1.1  skrll   ac_status=$?
   7662  1.1  skrll   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   7663  1.1  skrll   (exit $ac_status); }; } &&
   7664  1.1  skrll 	 { ac_try='test -s conftest.$ac_objext'
   7665  1.1  skrll   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   7666  1.1  skrll   (eval $ac_try) 2>&5
   7667  1.1  skrll   ac_status=$?
   7668  1.1  skrll   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   7669  1.1  skrll   (exit $ac_status); }; }; then
   7670  1.1  skrll   ac_cv_have_decl_ffs=yes
   7671  1.1  skrll else
   7672  1.1  skrll   echo "$as_me: failed program was:" >&5
   7673  1.1  skrll sed 's/^/| /' conftest.$ac_ext >&5
   7674  1.1  skrll 
   7675  1.1  skrll ac_cv_have_decl_ffs=no
   7676  1.1  skrll fi
   7677  1.1  skrll rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
   7678  1.1  skrll fi
   7679  1.1  skrll echo "$as_me:$LINENO: result: $ac_cv_have_decl_ffs" >&5
   7680  1.1  skrll echo "${ECHO_T}$ac_cv_have_decl_ffs" >&6
   7681  1.1  skrll if test $ac_cv_have_decl_ffs = yes; then
   7682  1.1  skrll 
   7683  1.1  skrll cat >>confdefs.h <<_ACEOF
   7684  1.1  skrll #define HAVE_DECL_FFS 1
   7685  1.1  skrll _ACEOF
   7686  1.1  skrll 
   7687  1.1  skrll 
   7688  1.1  skrll else
   7689  1.1  skrll   cat >>confdefs.h <<_ACEOF
   7690  1.1  skrll #define HAVE_DECL_FFS 0
   7691  1.1  skrll _ACEOF
   7692  1.1  skrll 
   7693  1.1  skrll 
   7694  1.1  skrll fi
   7695  1.1  skrll echo "$as_me:$LINENO: checking whether asprintf is declared" >&5
   7696  1.1  skrll echo $ECHO_N "checking whether asprintf is declared... $ECHO_C" >&6
   7697  1.1  skrll if test "${ac_cv_have_decl_asprintf+set}" = set; then
   7698  1.1  skrll   echo $ECHO_N "(cached) $ECHO_C" >&6
   7699  1.1  skrll else
   7700  1.1  skrll   cat >conftest.$ac_ext <<_ACEOF
   7701  1.1  skrll /* confdefs.h.  */
   7702  1.1  skrll _ACEOF
   7703  1.1  skrll cat confdefs.h >>conftest.$ac_ext
   7704  1.1  skrll cat >>conftest.$ac_ext <<_ACEOF
   7705  1.1  skrll /* end confdefs.h.  */
   7706  1.1  skrll $ac_includes_default
   7707  1.1  skrll int
   7708  1.1  skrll main ()
   7709  1.1  skrll {
   7710  1.1  skrll #ifndef asprintf
   7711  1.1  skrll   char *p = (char *) asprintf;
   7712  1.1  skrll #endif
   7713  1.1  skrll 
   7714  1.1  skrll   ;
   7715  1.1  skrll   return 0;
   7716  1.1  skrll }
   7717  1.1  skrll _ACEOF
   7718  1.1  skrll rm -f conftest.$ac_objext
   7719  1.1  skrll if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
   7720  1.1  skrll   (eval $ac_compile) 2>conftest.er1
   7721  1.1  skrll   ac_status=$?
   7722  1.1  skrll   grep -v '^ *+' conftest.er1 >conftest.err
   7723  1.1  skrll   rm -f conftest.er1
   7724  1.1  skrll   cat conftest.err >&5
   7725  1.1  skrll   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   7726  1.1  skrll   (exit $ac_status); } &&
   7727  1.1  skrll 	 { ac_try='test -z "$ac_c_werror_flag"
   7728  1.1  skrll 			 || test ! -s conftest.err'
   7729  1.1  skrll   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   7730  1.1  skrll   (eval $ac_try) 2>&5
   7731  1.1  skrll   ac_status=$?
   7732  1.1  skrll   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   7733  1.1  skrll   (exit $ac_status); }; } &&
   7734  1.1  skrll 	 { ac_try='test -s conftest.$ac_objext'
   7735  1.1  skrll   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   7736  1.1  skrll   (eval $ac_try) 2>&5
   7737  1.1  skrll   ac_status=$?
   7738  1.1  skrll   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   7739  1.1  skrll   (exit $ac_status); }; }; then
   7740  1.1  skrll   ac_cv_have_decl_asprintf=yes
   7741  1.1  skrll else
   7742  1.1  skrll   echo "$as_me: failed program was:" >&5
   7743  1.1  skrll sed 's/^/| /' conftest.$ac_ext >&5
   7744  1.1  skrll 
   7745  1.1  skrll ac_cv_have_decl_asprintf=no
   7746  1.1  skrll fi
   7747  1.1  skrll rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
   7748  1.1  skrll fi
   7749  1.1  skrll echo "$as_me:$LINENO: result: $ac_cv_have_decl_asprintf" >&5
   7750  1.1  skrll echo "${ECHO_T}$ac_cv_have_decl_asprintf" >&6
   7751  1.1  skrll if test $ac_cv_have_decl_asprintf = yes; then
   7752  1.1  skrll 
   7753  1.1  skrll cat >>confdefs.h <<_ACEOF
   7754  1.1  skrll #define HAVE_DECL_ASPRINTF 1
   7755  1.1  skrll _ACEOF
   7756  1.1  skrll 
   7757  1.1  skrll 
   7758  1.1  skrll else
   7759  1.1  skrll   cat >>confdefs.h <<_ACEOF
   7760  1.1  skrll #define HAVE_DECL_ASPRINTF 0
   7761  1.1  skrll _ACEOF
   7762  1.1  skrll 
   7763  1.1  skrll 
   7764  1.1  skrll fi
   7765  1.1  skrll echo "$as_me:$LINENO: checking whether vasprintf is declared" >&5
   7766  1.1  skrll echo $ECHO_N "checking whether vasprintf is declared... $ECHO_C" >&6
   7767  1.1  skrll if test "${ac_cv_have_decl_vasprintf+set}" = set; then
   7768  1.1  skrll   echo $ECHO_N "(cached) $ECHO_C" >&6
   7769  1.1  skrll else
   7770  1.1  skrll   cat >conftest.$ac_ext <<_ACEOF
   7771  1.1  skrll /* confdefs.h.  */
   7772  1.1  skrll _ACEOF
   7773  1.1  skrll cat confdefs.h >>conftest.$ac_ext
   7774  1.1  skrll cat >>conftest.$ac_ext <<_ACEOF
   7775  1.1  skrll /* end confdefs.h.  */
   7776  1.1  skrll $ac_includes_default
   7777  1.1  skrll int
   7778  1.1  skrll main ()
   7779  1.1  skrll {
   7780  1.1  skrll #ifndef vasprintf
   7781  1.1  skrll   char *p = (char *) vasprintf;
   7782  1.1  skrll #endif
   7783  1.1  skrll 
   7784  1.1  skrll   ;
   7785  1.1  skrll   return 0;
   7786  1.1  skrll }
   7787  1.1  skrll _ACEOF
   7788  1.1  skrll rm -f conftest.$ac_objext
   7789  1.1  skrll if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
   7790  1.1  skrll   (eval $ac_compile) 2>conftest.er1
   7791  1.1  skrll   ac_status=$?
   7792  1.1  skrll   grep -v '^ *+' conftest.er1 >conftest.err
   7793  1.1  skrll   rm -f conftest.er1
   7794  1.1  skrll   cat conftest.err >&5
   7795  1.1  skrll   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   7796  1.1  skrll   (exit $ac_status); } &&
   7797  1.1  skrll 	 { ac_try='test -z "$ac_c_werror_flag"
   7798  1.1  skrll 			 || test ! -s conftest.err'
   7799  1.1  skrll   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   7800  1.1  skrll   (eval $ac_try) 2>&5
   7801  1.1  skrll   ac_status=$?
   7802  1.1  skrll   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   7803  1.1  skrll   (exit $ac_status); }; } &&
   7804  1.1  skrll 	 { ac_try='test -s conftest.$ac_objext'
   7805  1.1  skrll   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   7806  1.1  skrll   (eval $ac_try) 2>&5
   7807  1.1  skrll   ac_status=$?
   7808  1.1  skrll   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   7809  1.1  skrll   (exit $ac_status); }; }; then
   7810  1.1  skrll   ac_cv_have_decl_vasprintf=yes
   7811  1.1  skrll else
   7812  1.1  skrll   echo "$as_me: failed program was:" >&5
   7813  1.1  skrll sed 's/^/| /' conftest.$ac_ext >&5
   7814  1.1  skrll 
   7815  1.1  skrll ac_cv_have_decl_vasprintf=no
   7816  1.1  skrll fi
   7817  1.1  skrll rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
   7818  1.1  skrll fi
   7819  1.1  skrll echo "$as_me:$LINENO: result: $ac_cv_have_decl_vasprintf" >&5
   7820  1.1  skrll echo "${ECHO_T}$ac_cv_have_decl_vasprintf" >&6
   7821  1.1  skrll if test $ac_cv_have_decl_vasprintf = yes; then
   7822  1.1  skrll 
   7823  1.1  skrll cat >>confdefs.h <<_ACEOF
   7824  1.1  skrll #define HAVE_DECL_VASPRINTF 1
   7825  1.1  skrll _ACEOF
   7826  1.1  skrll 
   7827  1.1  skrll 
   7828  1.1  skrll else
   7829  1.1  skrll   cat >>confdefs.h <<_ACEOF
   7830  1.1  skrll #define HAVE_DECL_VASPRINTF 0
   7831  1.1  skrll _ACEOF
   7832  1.1  skrll 
   7833  1.1  skrll 
   7834  1.1  skrll fi
   7835  1.1  skrll echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
   7836  1.1  skrll echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6
   7837  1.1  skrll if test "${ac_cv_have_decl_snprintf+set}" = set; then
   7838  1.1  skrll   echo $ECHO_N "(cached) $ECHO_C" >&6
   7839  1.1  skrll else
   7840  1.1  skrll   cat >conftest.$ac_ext <<_ACEOF
   7841  1.1  skrll /* confdefs.h.  */
   7842  1.1  skrll _ACEOF
   7843  1.1  skrll cat confdefs.h >>conftest.$ac_ext
   7844  1.1  skrll cat >>conftest.$ac_ext <<_ACEOF
   7845  1.1  skrll /* end confdefs.h.  */
   7846  1.1  skrll $ac_includes_default
   7847  1.1  skrll int
   7848  1.1  skrll main ()
   7849  1.1  skrll {
   7850  1.1  skrll #ifndef snprintf
   7851  1.1  skrll   char *p = (char *) snprintf;
   7852  1.1  skrll #endif
   7853  1.1  skrll 
   7854  1.1  skrll   ;
   7855  1.1  skrll   return 0;
   7856  1.1  skrll }
   7857  1.1  skrll _ACEOF
   7858  1.1  skrll rm -f conftest.$ac_objext
   7859  1.1  skrll if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
   7860  1.1  skrll   (eval $ac_compile) 2>conftest.er1
   7861  1.1  skrll   ac_status=$?
   7862  1.1  skrll   grep -v '^ *+' conftest.er1 >conftest.err
   7863  1.1  skrll   rm -f conftest.er1
   7864  1.1  skrll   cat conftest.err >&5
   7865  1.1  skrll   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   7866  1.1  skrll   (exit $ac_status); } &&
   7867  1.1  skrll 	 { ac_try='test -z "$ac_c_werror_flag"
   7868  1.1  skrll 			 || test ! -s conftest.err'
   7869  1.1  skrll   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   7870  1.1  skrll   (eval $ac_try) 2>&5
   7871  1.1  skrll   ac_status=$?
   7872  1.1  skrll   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   7873  1.1  skrll   (exit $ac_status); }; } &&
   7874  1.1  skrll 	 { ac_try='test -s conftest.$ac_objext'
   7875  1.1  skrll   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   7876  1.1  skrll   (eval $ac_try) 2>&5
   7877  1.1  skrll   ac_status=$?
   7878  1.1  skrll   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   7879  1.1  skrll   (exit $ac_status); }; }; then
   7880  1.1  skrll   ac_cv_have_decl_snprintf=yes
   7881  1.1  skrll else
   7882  1.1  skrll   echo "$as_me: failed program was:" >&5
   7883  1.1  skrll sed 's/^/| /' conftest.$ac_ext >&5
   7884  1.1  skrll 
   7885  1.1  skrll ac_cv_have_decl_snprintf=no
   7886  1.1  skrll fi
   7887  1.1  skrll rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
   7888  1.1  skrll fi
   7889  1.1  skrll echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
   7890  1.1  skrll echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6
   7891  1.1  skrll if test $ac_cv_have_decl_snprintf = yes; then
   7892  1.1  skrll 
   7893  1.1  skrll cat >>confdefs.h <<_ACEOF
   7894  1.1  skrll #define HAVE_DECL_SNPRINTF 1
   7895  1.1  skrll _ACEOF
   7896  1.1  skrll 
   7897  1.1  skrll 
   7898  1.1  skrll else
   7899  1.1  skrll   cat >>confdefs.h <<_ACEOF
   7900  1.1  skrll #define HAVE_DECL_SNPRINTF 0
   7901  1.1  skrll _ACEOF
   7902  1.1  skrll 
   7903  1.1  skrll 
   7904  1.1  skrll fi
   7905  1.1  skrll echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
   7906  1.1  skrll echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6
   7907  1.1  skrll if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
   7908  1.1  skrll   echo $ECHO_N "(cached) $ECHO_C" >&6
   7909  1.1  skrll else
   7910  1.1  skrll   cat >conftest.$ac_ext <<_ACEOF
   7911  1.1  skrll /* confdefs.h.  */
   7912  1.1  skrll _ACEOF
   7913  1.1  skrll cat confdefs.h >>conftest.$ac_ext
   7914  1.1  skrll cat >>conftest.$ac_ext <<_ACEOF
   7915  1.1  skrll /* end confdefs.h.  */
   7916  1.1  skrll $ac_includes_default
   7917  1.1  skrll int
   7918  1.1  skrll main ()
   7919  1.1  skrll {
   7920  1.1  skrll #ifndef vsnprintf
   7921  1.1  skrll   char *p = (char *) vsnprintf;
   7922  1.1  skrll #endif
   7923  1.1  skrll 
   7924  1.1  skrll   ;
   7925  1.1  skrll   return 0;
   7926  1.1  skrll }
   7927  1.1  skrll _ACEOF
   7928  1.1  skrll rm -f conftest.$ac_objext
   7929  1.1  skrll if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
   7930  1.1  skrll   (eval $ac_compile) 2>conftest.er1
   7931  1.1  skrll   ac_status=$?
   7932  1.1  skrll   grep -v '^ *+' conftest.er1 >conftest.err
   7933  1.1  skrll   rm -f conftest.er1
   7934  1.1  skrll   cat conftest.err >&5
   7935  1.1  skrll   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   7936  1.1  skrll   (exit $ac_status); } &&
   7937  1.1  skrll 	 { ac_try='test -z "$ac_c_werror_flag"
   7938  1.1  skrll 			 || test ! -s conftest.err'
   7939  1.1  skrll   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   7940  1.1  skrll   (eval $ac_try) 2>&5
   7941  1.1  skrll   ac_status=$?
   7942  1.1  skrll   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   7943  1.1  skrll   (exit $ac_status); }; } &&
   7944  1.1  skrll 	 { ac_try='test -s conftest.$ac_objext'
   7945  1.1  skrll   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   7946  1.1  skrll   (eval $ac_try) 2>&5
   7947  1.1  skrll   ac_status=$?
   7948  1.1  skrll   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   7949  1.1  skrll   (exit $ac_status); }; }; then
   7950  1.1  skrll   ac_cv_have_decl_vsnprintf=yes
   7951  1.1  skrll else
   7952  1.1  skrll   echo "$as_me: failed program was:" >&5
   7953  1.1  skrll sed 's/^/| /' conftest.$ac_ext >&5
   7954  1.1  skrll 
   7955  1.1  skrll ac_cv_have_decl_vsnprintf=no
   7956  1.1  skrll fi
   7957  1.1  skrll rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
   7958  1.1  skrll fi
   7959  1.1  skrll echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
   7960  1.1  skrll echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6
   7961  1.1  skrll if test $ac_cv_have_decl_vsnprintf = yes; then
   7962  1.1  skrll 
   7963  1.1  skrll cat >>confdefs.h <<_ACEOF
   7964  1.1  skrll #define HAVE_DECL_VSNPRINTF 1
   7965  1.1  skrll _ACEOF
   7966  1.1  skrll 
   7967  1.1  skrll 
   7968  1.1  skrll else
   7969  1.1  skrll   cat >>confdefs.h <<_ACEOF
   7970  1.1  skrll #define HAVE_DECL_VSNPRINTF 0
   7971  1.1  skrll _ACEOF
   7972  1.1  skrll 
   7973  1.1  skrll 
   7974  1.1  skrll fi
   7975  1.1  skrll 
   7976  1.1  skrll 
   7977  1.1  skrll   echo "$as_me:$LINENO: checking whether calloc is declared" >&5
   7978  1.1  skrll echo $ECHO_N "checking whether calloc is declared... $ECHO_C" >&6
   7979  1.1  skrll if test "${ac_cv_have_decl_calloc+set}" = set; then
   7980  1.1  skrll   echo $ECHO_N "(cached) $ECHO_C" >&6
   7981  1.1  skrll else
   7982  1.1  skrll   cat >conftest.$ac_ext <<_ACEOF
   7983  1.1  skrll /* confdefs.h.  */
   7984  1.1  skrll _ACEOF
   7985  1.1  skrll cat confdefs.h >>conftest.$ac_ext
   7986  1.1  skrll cat >>conftest.$ac_ext <<_ACEOF
   7987  1.1  skrll /* end confdefs.h.  */
   7988  1.1  skrll $ac_includes_default
   7989  1.1  skrll int
   7990  1.1  skrll main ()
   7991  1.1  skrll {
   7992  1.1  skrll #ifndef calloc
   7993  1.1  skrll   char *p = (char *) calloc;
   7994  1.1  skrll #endif
   7995  1.1  skrll 
   7996  1.1  skrll   ;
   7997  1.1  skrll   return 0;
   7998  1.1  skrll }
   7999  1.1  skrll _ACEOF
   8000  1.1  skrll rm -f conftest.$ac_objext
   8001  1.1  skrll if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
   8002  1.1  skrll   (eval $ac_compile) 2>conftest.er1
   8003  1.1  skrll   ac_status=$?
   8004  1.1  skrll   grep -v '^ *+' conftest.er1 >conftest.err
   8005  1.1  skrll   rm -f conftest.er1
   8006  1.1  skrll   cat conftest.err >&5
   8007  1.1  skrll   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   8008  1.1  skrll   (exit $ac_status); } &&
   8009  1.1  skrll 	 { ac_try='test -z "$ac_c_werror_flag"
   8010  1.1  skrll 			 || test ! -s conftest.err'
   8011  1.1  skrll   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   8012  1.1  skrll   (eval $ac_try) 2>&5
   8013  1.1  skrll   ac_status=$?
   8014  1.1  skrll   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   8015  1.1  skrll   (exit $ac_status); }; } &&
   8016  1.1  skrll 	 { ac_try='test -s conftest.$ac_objext'
   8017  1.1  skrll   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   8018  1.1  skrll   (eval $ac_try) 2>&5
   8019  1.1  skrll   ac_status=$?
   8020  1.1  skrll   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   8021  1.1  skrll   (exit $ac_status); }; }; then
   8022  1.1  skrll   ac_cv_have_decl_calloc=yes
   8023  1.1  skrll else
   8024  1.1  skrll   echo "$as_me: failed program was:" >&5
   8025  1.1  skrll sed 's/^/| /' conftest.$ac_ext >&5
   8026  1.1  skrll 
   8027  1.1  skrll ac_cv_have_decl_calloc=no
   8028  1.1  skrll fi
   8029  1.1  skrll rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
   8030  1.1  skrll fi
   8031  1.1  skrll echo "$as_me:$LINENO: result: $ac_cv_have_decl_calloc" >&5
   8032  1.1  skrll echo "${ECHO_T}$ac_cv_have_decl_calloc" >&6
   8033  1.1  skrll if test $ac_cv_have_decl_calloc = yes; then
   8034  1.1  skrll 
   8035  1.1  skrll cat >>confdefs.h <<_ACEOF
   8036  1.1  skrll #define HAVE_DECL_CALLOC 1
   8037  1.1  skrll _ACEOF
   8038  1.1  skrll 
   8039  1.1  skrll 
   8040  1.1  skrll else
   8041  1.1  skrll   cat >>confdefs.h <<_ACEOF
   8042  1.1  skrll #define HAVE_DECL_CALLOC 0
   8043  1.1  skrll _ACEOF
   8044  1.1  skrll 
   8045  1.1  skrll 
   8046  1.1  skrll fi
   8047  1.1  skrll echo "$as_me:$LINENO: checking whether getenv is declared" >&5
   8048  1.1  skrll echo $ECHO_N "checking whether getenv is declared... $ECHO_C" >&6
   8049  1.1  skrll if test "${ac_cv_have_decl_getenv+set}" = set; then
   8050  1.1  skrll   echo $ECHO_N "(cached) $ECHO_C" >&6
   8051  1.1  skrll else
   8052  1.1  skrll   cat >conftest.$ac_ext <<_ACEOF
   8053  1.1  skrll /* confdefs.h.  */
   8054  1.1  skrll _ACEOF
   8055  1.1  skrll cat confdefs.h >>conftest.$ac_ext
   8056  1.1  skrll cat >>conftest.$ac_ext <<_ACEOF
   8057  1.1  skrll /* end confdefs.h.  */
   8058  1.1  skrll $ac_includes_default
   8059  1.1  skrll int
   8060  1.1  skrll main ()
   8061  1.1  skrll {
   8062  1.1  skrll #ifndef getenv
   8063  1.1  skrll   char *p = (char *) getenv;
   8064  1.1  skrll #endif
   8065  1.1  skrll 
   8066  1.1  skrll   ;
   8067  1.1  skrll   return 0;
   8068  1.1  skrll }
   8069  1.1  skrll _ACEOF
   8070  1.1  skrll rm -f conftest.$ac_objext
   8071  1.1  skrll if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
   8072  1.1  skrll   (eval $ac_compile) 2>conftest.er1
   8073  1.1  skrll   ac_status=$?
   8074  1.1  skrll   grep -v '^ *+' conftest.er1 >conftest.err
   8075  1.1  skrll   rm -f conftest.er1
   8076  1.1  skrll   cat conftest.err >&5
   8077  1.1  skrll   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   8078  1.1  skrll   (exit $ac_status); } &&
   8079  1.1  skrll 	 { ac_try='test -z "$ac_c_werror_flag"
   8080  1.1  skrll 			 || test ! -s conftest.err'
   8081  1.1  skrll   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   8082  1.1  skrll   (eval $ac_try) 2>&5
   8083  1.1  skrll   ac_status=$?
   8084  1.1  skrll   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   8085  1.1  skrll   (exit $ac_status); }; } &&
   8086  1.1  skrll 	 { ac_try='test -s conftest.$ac_objext'
   8087  1.1  skrll   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   8088  1.1  skrll   (eval $ac_try) 2>&5
   8089  1.1  skrll   ac_status=$?
   8090  1.1  skrll   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   8091  1.1  skrll   (exit $ac_status); }; }; then
   8092  1.1  skrll   ac_cv_have_decl_getenv=yes
   8093  1.1  skrll else
   8094  1.1  skrll   echo "$as_me: failed program was:" >&5
   8095  1.1  skrll sed 's/^/| /' conftest.$ac_ext >&5
   8096  1.1  skrll 
   8097  1.1  skrll ac_cv_have_decl_getenv=no
   8098  1.1  skrll fi
   8099  1.1  skrll rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
   8100  1.1  skrll fi
   8101  1.1  skrll echo "$as_me:$LINENO: result: $ac_cv_have_decl_getenv" >&5
   8102  1.1  skrll echo "${ECHO_T}$ac_cv_have_decl_getenv" >&6
   8103  1.1  skrll if test $ac_cv_have_decl_getenv = yes; then
   8104  1.1  skrll 
   8105  1.1  skrll cat >>confdefs.h <<_ACEOF
   8106  1.1  skrll #define HAVE_DECL_GETENV 1
   8107  1.1  skrll _ACEOF
   8108  1.1  skrll 
   8109  1.1  skrll 
   8110  1.1  skrll else
   8111  1.1  skrll   cat >>confdefs.h <<_ACEOF
   8112  1.1  skrll #define HAVE_DECL_GETENV 0
   8113  1.1  skrll _ACEOF
   8114  1.1  skrll 
   8115  1.1  skrll 
   8116  1.1  skrll fi
   8117  1.1  skrll echo "$as_me:$LINENO: checking whether getopt is declared" >&5
   8118  1.1  skrll echo $ECHO_N "checking whether getopt is declared... $ECHO_C" >&6
   8119  1.1  skrll if test "${ac_cv_have_decl_getopt+set}" = set; then
   8120  1.1  skrll   echo $ECHO_N "(cached) $ECHO_C" >&6
   8121  1.1  skrll else
   8122  1.1  skrll   cat >conftest.$ac_ext <<_ACEOF
   8123  1.1  skrll /* confdefs.h.  */
   8124  1.1  skrll _ACEOF
   8125  1.1  skrll cat confdefs.h >>conftest.$ac_ext
   8126  1.1  skrll cat >>conftest.$ac_ext <<_ACEOF
   8127  1.1  skrll /* end confdefs.h.  */
   8128  1.1  skrll $ac_includes_default
   8129  1.1  skrll int
   8130  1.1  skrll main ()
   8131  1.1  skrll {
   8132  1.1  skrll #ifndef getopt
   8133  1.1  skrll   char *p = (char *) getopt;
   8134  1.1  skrll #endif
   8135  1.1  skrll 
   8136  1.1  skrll   ;
   8137  1.1  skrll   return 0;
   8138  1.1  skrll }
   8139  1.1  skrll _ACEOF
   8140  1.1  skrll rm -f conftest.$ac_objext
   8141  1.1  skrll if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
   8142  1.1  skrll   (eval $ac_compile) 2>conftest.er1
   8143  1.1  skrll   ac_status=$?
   8144  1.1  skrll   grep -v '^ *+' conftest.er1 >conftest.err
   8145  1.1  skrll   rm -f conftest.er1
   8146  1.1  skrll   cat conftest.err >&5
   8147  1.1  skrll   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   8148  1.1  skrll   (exit $ac_status); } &&
   8149  1.1  skrll 	 { ac_try='test -z "$ac_c_werror_flag"
   8150  1.1  skrll 			 || test ! -s conftest.err'
   8151  1.1  skrll   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   8152  1.1  skrll   (eval $ac_try) 2>&5
   8153  1.1  skrll   ac_status=$?
   8154  1.1  skrll   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   8155  1.1  skrll   (exit $ac_status); }; } &&
   8156  1.1  skrll 	 { ac_try='test -s conftest.$ac_objext'
   8157  1.1  skrll   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   8158  1.1  skrll   (eval $ac_try) 2>&5
   8159  1.1  skrll   ac_status=$?
   8160  1.1  skrll   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   8161  1.1  skrll   (exit $ac_status); }; }; then
   8162  1.1  skrll   ac_cv_have_decl_getopt=yes
   8163  1.1  skrll else
   8164  1.1  skrll   echo "$as_me: failed program was:" >&5
   8165  1.1  skrll sed 's/^/| /' conftest.$ac_ext >&5
   8166  1.1  skrll 
   8167  1.1  skrll ac_cv_have_decl_getopt=no
   8168  1.1  skrll fi
   8169  1.1  skrll rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
   8170  1.1  skrll fi
   8171  1.1  skrll echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt" >&5
   8172  1.1  skrll echo "${ECHO_T}$ac_cv_have_decl_getopt" >&6
   8173  1.1  skrll if test $ac_cv_have_decl_getopt = yes; then
   8174  1.1  skrll 
   8175  1.1  skrll cat >>confdefs.h <<_ACEOF
   8176  1.1  skrll #define HAVE_DECL_GETOPT 1
   8177  1.1  skrll _ACEOF
   8178  1.1  skrll 
   8179  1.1  skrll 
   8180  1.1  skrll else
   8181  1.1  skrll   cat >>confdefs.h <<_ACEOF
   8182  1.1  skrll #define HAVE_DECL_GETOPT 0
   8183  1.1  skrll _ACEOF
   8184  1.1  skrll 
   8185  1.1  skrll 
   8186  1.1  skrll fi
   8187  1.1  skrll echo "$as_me:$LINENO: checking whether malloc is declared" >&5
   8188  1.1  skrll echo $ECHO_N "checking whether malloc is declared... $ECHO_C" >&6
   8189  1.1  skrll if test "${ac_cv_have_decl_malloc+set}" = set; then
   8190  1.1  skrll   echo $ECHO_N "(cached) $ECHO_C" >&6
   8191  1.1  skrll else
   8192  1.1  skrll   cat >conftest.$ac_ext <<_ACEOF
   8193  1.1  skrll /* confdefs.h.  */
   8194  1.1  skrll _ACEOF
   8195  1.1  skrll cat confdefs.h >>conftest.$ac_ext
   8196  1.1  skrll cat >>conftest.$ac_ext <<_ACEOF
   8197  1.1  skrll /* end confdefs.h.  */
   8198  1.1  skrll $ac_includes_default
   8199  1.1  skrll int
   8200  1.1  skrll main ()
   8201  1.1  skrll {
   8202  1.1  skrll #ifndef malloc
   8203  1.1  skrll   char *p = (char *) malloc;
   8204  1.1  skrll #endif
   8205  1.1  skrll 
   8206  1.1  skrll   ;
   8207  1.1  skrll   return 0;
   8208  1.1  skrll }
   8209  1.1  skrll _ACEOF
   8210  1.1  skrll rm -f conftest.$ac_objext
   8211  1.1  skrll if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
   8212  1.1  skrll   (eval $ac_compile) 2>conftest.er1
   8213  1.1  skrll   ac_status=$?
   8214  1.1  skrll   grep -v '^ *+' conftest.er1 >conftest.err
   8215  1.1  skrll   rm -f conftest.er1
   8216  1.1  skrll   cat conftest.err >&5
   8217  1.1  skrll   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   8218  1.1  skrll   (exit $ac_status); } &&
   8219  1.1  skrll 	 { ac_try='test -z "$ac_c_werror_flag"
   8220  1.1  skrll 			 || test ! -s conftest.err'
   8221  1.1  skrll   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   8222  1.1  skrll   (eval $ac_try) 2>&5
   8223  1.1  skrll   ac_status=$?
   8224  1.1  skrll   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   8225  1.1  skrll   (exit $ac_status); }; } &&
   8226  1.1  skrll 	 { ac_try='test -s conftest.$ac_objext'
   8227  1.1  skrll   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   8228  1.1  skrll   (eval $ac_try) 2>&5
   8229  1.1  skrll   ac_status=$?
   8230  1.1  skrll   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   8231  1.1  skrll   (exit $ac_status); }; }; then
   8232  1.1  skrll   ac_cv_have_decl_malloc=yes
   8233  1.1  skrll else
   8234  1.1  skrll   echo "$as_me: failed program was:" >&5
   8235  1.1  skrll sed 's/^/| /' conftest.$ac_ext >&5
   8236  1.1  skrll 
   8237  1.1  skrll ac_cv_have_decl_malloc=no
   8238  1.1  skrll fi
   8239  1.1  skrll rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
   8240  1.1  skrll fi
   8241  1.1  skrll echo "$as_me:$LINENO: result: $ac_cv_have_decl_malloc" >&5
   8242  1.1  skrll echo "${ECHO_T}$ac_cv_have_decl_malloc" >&6
   8243  1.1  skrll if test $ac_cv_have_decl_malloc = yes; then
   8244  1.1  skrll 
   8245  1.1  skrll cat >>confdefs.h <<_ACEOF
   8246  1.1  skrll #define HAVE_DECL_MALLOC 1
   8247  1.1  skrll _ACEOF
   8248  1.1  skrll 
   8249  1.1  skrll 
   8250  1.1  skrll else
   8251  1.1  skrll   cat >>confdefs.h <<_ACEOF
   8252  1.1  skrll #define HAVE_DECL_MALLOC 0
   8253  1.1  skrll _ACEOF
   8254  1.1  skrll 
   8255  1.1  skrll 
   8256  1.1  skrll fi
   8257  1.1  skrll echo "$as_me:$LINENO: checking whether realloc is declared" >&5
   8258  1.1  skrll echo $ECHO_N "checking whether realloc is declared... $ECHO_C" >&6
   8259  1.1  skrll if test "${ac_cv_have_decl_realloc+set}" = set; then
   8260  1.1  skrll   echo $ECHO_N "(cached) $ECHO_C" >&6
   8261  1.1  skrll else
   8262  1.1  skrll   cat >conftest.$ac_ext <<_ACEOF
   8263  1.1  skrll /* confdefs.h.  */
   8264  1.1  skrll _ACEOF
   8265  1.1  skrll cat confdefs.h >>conftest.$ac_ext
   8266  1.1  skrll cat >>conftest.$ac_ext <<_ACEOF
   8267  1.1  skrll /* end confdefs.h.  */
   8268  1.1  skrll $ac_includes_default
   8269  1.1  skrll int
   8270  1.1  skrll main ()
   8271  1.1  skrll {
   8272  1.1  skrll #ifndef realloc
   8273  1.1  skrll   char *p = (char *) realloc;
   8274  1.1  skrll #endif
   8275  1.1  skrll 
   8276  1.1  skrll   ;
   8277  1.1  skrll   return 0;
   8278  1.1  skrll }
   8279  1.1  skrll _ACEOF
   8280  1.1  skrll rm -f conftest.$ac_objext
   8281  1.1  skrll if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
   8282  1.1  skrll   (eval $ac_compile) 2>conftest.er1
   8283  1.1  skrll   ac_status=$?
   8284  1.1  skrll   grep -v '^ *+' conftest.er1 >conftest.err
   8285  1.1  skrll   rm -f conftest.er1
   8286  1.1  skrll   cat conftest.err >&5
   8287  1.1  skrll   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   8288  1.1  skrll   (exit $ac_status); } &&
   8289  1.1  skrll 	 { ac_try='test -z "$ac_c_werror_flag"
   8290  1.1  skrll 			 || test ! -s conftest.err'
   8291  1.1  skrll   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   8292  1.1  skrll   (eval $ac_try) 2>&5
   8293  1.1  skrll   ac_status=$?
   8294  1.1  skrll   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   8295  1.1  skrll   (exit $ac_status); }; } &&
   8296  1.1  skrll 	 { ac_try='test -s conftest.$ac_objext'
   8297  1.1  skrll   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   8298  1.1  skrll   (eval $ac_try) 2>&5
   8299  1.1  skrll   ac_status=$?
   8300  1.1  skrll   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   8301  1.1  skrll   (exit $ac_status); }; }; then
   8302  1.1  skrll   ac_cv_have_decl_realloc=yes
   8303  1.1  skrll else
   8304  1.1  skrll   echo "$as_me: failed program was:" >&5
   8305  1.1  skrll sed 's/^/| /' conftest.$ac_ext >&5
   8306  1.1  skrll 
   8307  1.1  skrll ac_cv_have_decl_realloc=no
   8308  1.1  skrll fi
   8309  1.1  skrll rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
   8310  1.1  skrll fi
   8311  1.1  skrll echo "$as_me:$LINENO: result: $ac_cv_have_decl_realloc" >&5
   8312  1.1  skrll echo "${ECHO_T}$ac_cv_have_decl_realloc" >&6
   8313  1.1  skrll if test $ac_cv_have_decl_realloc = yes; then
   8314  1.1  skrll 
   8315  1.1  skrll cat >>confdefs.h <<_ACEOF
   8316  1.1  skrll #define HAVE_DECL_REALLOC 1
   8317  1.1  skrll _ACEOF
   8318  1.1  skrll 
   8319  1.1  skrll 
   8320  1.1  skrll else
   8321  1.1  skrll   cat >>confdefs.h <<_ACEOF
   8322  1.1  skrll #define HAVE_DECL_REALLOC 0
   8323  1.1  skrll _ACEOF
   8324  1.1  skrll 
   8325  1.1  skrll 
   8326  1.1  skrll fi
   8327  1.1  skrll echo "$as_me:$LINENO: checking whether sbrk is declared" >&5
   8328  1.1  skrll echo $ECHO_N "checking whether sbrk is declared... $ECHO_C" >&6
   8329  1.1  skrll if test "${ac_cv_have_decl_sbrk+set}" = set; then
   8330  1.1  skrll   echo $ECHO_N "(cached) $ECHO_C" >&6
   8331  1.1  skrll else
   8332  1.1  skrll   cat >conftest.$ac_ext <<_ACEOF
   8333  1.1  skrll /* confdefs.h.  */
   8334  1.1  skrll _ACEOF
   8335  1.1  skrll cat confdefs.h >>conftest.$ac_ext
   8336  1.1  skrll cat >>conftest.$ac_ext <<_ACEOF
   8337  1.1  skrll /* end confdefs.h.  */
   8338  1.1  skrll $ac_includes_default
   8339  1.1  skrll int
   8340  1.1  skrll main ()
   8341  1.1  skrll {
   8342  1.1  skrll #ifndef sbrk
   8343  1.1  skrll   char *p = (char *) sbrk;
   8344  1.1  skrll #endif
   8345  1.1  skrll 
   8346  1.1  skrll   ;
   8347  1.1  skrll   return 0;
   8348  1.1  skrll }
   8349  1.1  skrll _ACEOF
   8350  1.1  skrll rm -f conftest.$ac_objext
   8351  1.1  skrll if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
   8352  1.1  skrll   (eval $ac_compile) 2>conftest.er1
   8353  1.1  skrll   ac_status=$?
   8354  1.1  skrll   grep -v '^ *+' conftest.er1 >conftest.err
   8355  1.1  skrll   rm -f conftest.er1
   8356  1.1  skrll   cat conftest.err >&5
   8357  1.1  skrll   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   8358  1.1  skrll   (exit $ac_status); } &&
   8359  1.1  skrll 	 { ac_try='test -z "$ac_c_werror_flag"
   8360  1.1  skrll 			 || test ! -s conftest.err'
   8361  1.1  skrll   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   8362  1.1  skrll   (eval $ac_try) 2>&5
   8363  1.1  skrll   ac_status=$?
   8364  1.1  skrll   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   8365  1.1  skrll   (exit $ac_status); }; } &&
   8366  1.1  skrll 	 { ac_try='test -s conftest.$ac_objext'
   8367  1.1  skrll   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   8368  1.1  skrll   (eval $ac_try) 2>&5
   8369  1.1  skrll   ac_status=$?
   8370  1.1  skrll   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   8371  1.1  skrll   (exit $ac_status); }; }; then
   8372  1.1  skrll   ac_cv_have_decl_sbrk=yes
   8373  1.1  skrll else
   8374  1.1  skrll   echo "$as_me: failed program was:" >&5
   8375  1.1  skrll sed 's/^/| /' conftest.$ac_ext >&5
   8376  1.1  skrll 
   8377  1.1  skrll ac_cv_have_decl_sbrk=no
   8378  1.1  skrll fi
   8379  1.1  skrll rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
   8380  1.1  skrll fi
   8381  1.1  skrll echo "$as_me:$LINENO: result: $ac_cv_have_decl_sbrk" >&5
   8382  1.1  skrll echo "${ECHO_T}$ac_cv_have_decl_sbrk" >&6
   8383  1.1  skrll if test $ac_cv_have_decl_sbrk = yes; then
   8384  1.1  skrll 
   8385  1.1  skrll cat >>confdefs.h <<_ACEOF
   8386  1.1  skrll #define HAVE_DECL_SBRK 1
   8387  1.1  skrll _ACEOF
   8388  1.1  skrll 
   8389  1.1  skrll 
   8390  1.1  skrll else
   8391  1.1  skrll   cat >>confdefs.h <<_ACEOF
   8392  1.1  skrll #define HAVE_DECL_SBRK 0
   8393  1.1  skrll _ACEOF
   8394  1.1  skrll 
   8395  1.1  skrll 
   8396  1.1  skrll fi
   8397  1.1  skrll 
   8398  1.1  skrll 
   8399  1.1  skrll   echo "$as_me:$LINENO: checking whether strverscmp is declared" >&5
   8400  1.1  skrll echo $ECHO_N "checking whether strverscmp is declared... $ECHO_C" >&6
   8401  1.1  skrll if test "${ac_cv_have_decl_strverscmp+set}" = set; then
   8402  1.1  skrll   echo $ECHO_N "(cached) $ECHO_C" >&6
   8403  1.1  skrll else
   8404  1.1  skrll   cat >conftest.$ac_ext <<_ACEOF
   8405  1.1  skrll /* confdefs.h.  */
   8406  1.1  skrll _ACEOF
   8407  1.1  skrll cat confdefs.h >>conftest.$ac_ext
   8408  1.1  skrll cat >>conftest.$ac_ext <<_ACEOF
   8409  1.1  skrll /* end confdefs.h.  */
   8410  1.1  skrll $ac_includes_default
   8411  1.1  skrll int
   8412  1.1  skrll main ()
   8413  1.1  skrll {
   8414  1.1  skrll #ifndef strverscmp
   8415  1.1  skrll   char *p = (char *) strverscmp;
   8416  1.1  skrll #endif
   8417  1.1  skrll 
   8418  1.1  skrll   ;
   8419  1.1  skrll   return 0;
   8420  1.1  skrll }
   8421  1.1  skrll _ACEOF
   8422  1.1  skrll rm -f conftest.$ac_objext
   8423  1.1  skrll if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
   8424  1.1  skrll   (eval $ac_compile) 2>conftest.er1
   8425  1.1  skrll   ac_status=$?
   8426  1.1  skrll   grep -v '^ *+' conftest.er1 >conftest.err
   8427  1.1  skrll   rm -f conftest.er1
   8428  1.1  skrll   cat conftest.err >&5
   8429  1.1  skrll   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   8430  1.1  skrll   (exit $ac_status); } &&
   8431  1.1  skrll 	 { ac_try='test -z "$ac_c_werror_flag"
   8432  1.1  skrll 			 || test ! -s conftest.err'
   8433  1.1  skrll   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   8434  1.1  skrll   (eval $ac_try) 2>&5
   8435  1.1  skrll   ac_status=$?
   8436  1.1  skrll   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   8437  1.1  skrll   (exit $ac_status); }; } &&
   8438  1.1  skrll 	 { ac_try='test -s conftest.$ac_objext'
   8439  1.1  skrll   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   8440  1.1  skrll   (eval $ac_try) 2>&5
   8441  1.1  skrll   ac_status=$?
   8442  1.1  skrll   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   8443  1.1  skrll   (exit $ac_status); }; }; then
   8444  1.1  skrll   ac_cv_have_decl_strverscmp=yes
   8445  1.1  skrll else
   8446  1.1  skrll   echo "$as_me: failed program was:" >&5
   8447  1.1  skrll sed 's/^/| /' conftest.$ac_ext >&5
   8448  1.1  skrll 
   8449  1.1  skrll ac_cv_have_decl_strverscmp=no
   8450  1.1  skrll fi
   8451  1.1  skrll rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
   8452  1.1  skrll fi
   8453  1.1  skrll echo "$as_me:$LINENO: result: $ac_cv_have_decl_strverscmp" >&5
   8454  1.1  skrll echo "${ECHO_T}$ac_cv_have_decl_strverscmp" >&6
   8455  1.1  skrll if test $ac_cv_have_decl_strverscmp = yes; then
   8456  1.1  skrll 
   8457  1.1  skrll cat >>confdefs.h <<_ACEOF
   8458  1.1  skrll #define HAVE_DECL_STRVERSCMP 1
   8459  1.1  skrll _ACEOF
   8460  1.1  skrll 
   8461  1.1  skrll 
   8462  1.1  skrll else
   8463  1.1  skrll   cat >>confdefs.h <<_ACEOF
   8464  1.1  skrll #define HAVE_DECL_STRVERSCMP 0
   8465  1.1  skrll _ACEOF
   8466  1.1  skrll 
   8467  1.1  skrll 
   8468  1.1  skrll fi
   8469  1.1  skrll 
   8470  1.1  skrll 
   8471  1.1  skrll   echo "$as_me:$LINENO: checking whether canonicalize_file_name must be declared" >&5
   8472  1.1  skrll echo $ECHO_N "checking whether canonicalize_file_name must be declared... $ECHO_C" >&6
   8473  1.1  skrll if test "${libiberty_cv_decl_needed_canonicalize_file_name+set}" = set; then
   8474  1.1  skrll   echo $ECHO_N "(cached) $ECHO_C" >&6
   8475  1.1  skrll else
   8476  1.1  skrll   cat >conftest.$ac_ext <<_ACEOF
   8477  1.1  skrll /* confdefs.h.  */
   8478  1.1  skrll _ACEOF
   8479  1.1  skrll cat confdefs.h >>conftest.$ac_ext
   8480  1.1  skrll cat >>conftest.$ac_ext <<_ACEOF
   8481  1.1  skrll /* end confdefs.h.  */
   8482  1.1  skrll 
   8483  1.1  skrll #include "confdefs.h"
   8484  1.1  skrll #include <stdio.h>
   8485  1.1  skrll #ifdef HAVE_STRING_H
   8486  1.1  skrll #include <string.h>
   8487  1.1  skrll #else
   8488  1.1  skrll #ifdef HAVE_STRINGS_H
   8489  1.1  skrll #include <strings.h>
   8490  1.1  skrll #endif
   8491  1.1  skrll #endif
   8492  1.1  skrll #ifdef HAVE_STDLIB_H
   8493  1.1  skrll #include <stdlib.h>
   8494  1.1  skrll #endif
   8495  1.1  skrll #ifdef HAVE_UNISTD_H
   8496  1.1  skrll #include <unistd.h>
   8497  1.1  skrll #endif
   8498  1.1  skrll int
   8499  1.1  skrll main ()
   8500  1.1  skrll {
   8501  1.1  skrll char *(*pfn) = (char *(*)) canonicalize_file_name
   8502  1.1  skrll   ;
   8503  1.1  skrll   return 0;
   8504  1.1  skrll }
   8505  1.1  skrll _ACEOF
   8506  1.1  skrll rm -f conftest.$ac_objext
   8507  1.1  skrll if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
   8508  1.1  skrll   (eval $ac_compile) 2>conftest.er1
   8509  1.1  skrll   ac_status=$?
   8510  1.1  skrll   grep -v '^ *+' conftest.er1 >conftest.err
   8511  1.1  skrll   rm -f conftest.er1
   8512  1.1  skrll   cat conftest.err >&5
   8513  1.1  skrll   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   8514  1.1  skrll   (exit $ac_status); } &&
   8515  1.1  skrll 	 { ac_try='test -z "$ac_c_werror_flag"
   8516  1.1  skrll 			 || test ! -s conftest.err'
   8517  1.1  skrll   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   8518  1.1  skrll   (eval $ac_try) 2>&5
   8519  1.1  skrll   ac_status=$?
   8520  1.1  skrll   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   8521  1.1  skrll   (exit $ac_status); }; } &&
   8522  1.1  skrll 	 { ac_try='test -s conftest.$ac_objext'
   8523  1.1  skrll   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   8524  1.1  skrll   (eval $ac_try) 2>&5
   8525  1.1  skrll   ac_status=$?
   8526  1.1  skrll   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   8527  1.1  skrll   (exit $ac_status); }; }; then
   8528  1.1  skrll   libiberty_cv_decl_needed_canonicalize_file_name=no
   8529  1.1  skrll else
   8530  1.1  skrll   echo "$as_me: failed program was:" >&5
   8531  1.1  skrll sed 's/^/| /' conftest.$ac_ext >&5
   8532  1.1  skrll 
   8533  1.1  skrll libiberty_cv_decl_needed_canonicalize_file_name=yes
   8534  1.1  skrll fi
   8535  1.1  skrll rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
   8536  1.1  skrll fi
   8537  1.1  skrll 
   8538  1.1  skrll echo "$as_me:$LINENO: result: $libiberty_cv_decl_needed_canonicalize_file_name" >&5
   8539  1.1  skrll echo "${ECHO_T}$libiberty_cv_decl_needed_canonicalize_file_name" >&6
   8540  1.1  skrll if test $libiberty_cv_decl_needed_canonicalize_file_name = yes; then
   8541  1.1  skrll 
   8542  1.1  skrll cat >>confdefs.h <<\_ACEOF
   8543  1.1  skrll #define NEED_DECLARATION_CANONICALIZE_FILE_NAME 1
   8544  1.1  skrll _ACEOF
   8545  1.1  skrll 
   8546  1.1  skrll fi
   8547  1.1  skrll 
   8548  1.1  skrll fi
   8549  1.1  skrll 
   8550  1.1  skrll # Figure out which version of pexecute to use.
   8551  1.1  skrll case "${host}" in
   8552  1.1  skrll      *-*-mingw* | *-*-winnt*)	pexecute=./pex-win32.o  ;;
   8553  1.1  skrll      *-*-msdosdjgpp*)		pexecute=./pex-djgpp.o  ;;
   8554  1.1  skrll      *-*-msdos*)		pexecute=./pex-msdos.o  ;;
   8555  1.1  skrll      *)				pexecute=./pex-unix.o   ;;
   8556  1.1  skrll esac
   8557  1.1  skrll 
   8558  1.1  skrll 
   8559  1.1  skrll if test x$gcc_no_link = xyes; then
   8560  1.1  skrll   if test "x${ac_cv_func_mmap_fixed_mapped+set}" != xset; then
   8561  1.1  skrll     ac_cv_func_mmap_fixed_mapped=no
   8562  1.1  skrll   fi
   8563  1.1  skrll fi
   8564  1.1  skrll if test "x${ac_cv_func_mmap_fixed_mapped}" != xno; then
   8565  1.1  skrll 
   8566  1.1  skrll 
   8567  1.1  skrll for ac_header in stdlib.h unistd.h
   8568  1.1  skrll do
   8569  1.1  skrll as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
   8570  1.1  skrll echo "$as_me:$LINENO: checking for $ac_header" >&5
   8571  1.1  skrll echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
   8572  1.1  skrll if eval "test \"\${$as_ac_Header+set}\" = set"; then
   8573  1.1  skrll   echo $ECHO_N "(cached) $ECHO_C" >&6
   8574  1.1  skrll else
   8575  1.1  skrll   cat >conftest.$ac_ext <<_ACEOF
   8576  1.1  skrll /* confdefs.h.  */
   8577  1.1  skrll _ACEOF
   8578  1.1  skrll cat confdefs.h >>conftest.$ac_ext
   8579  1.1  skrll cat >>conftest.$ac_ext <<_ACEOF
   8580  1.1  skrll /* end confdefs.h.  */
   8581  1.1  skrll #include <$ac_header>
   8582  1.1  skrll _ACEOF
   8583  1.1  skrll if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
   8584  1.1  skrll   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
   8585  1.1  skrll   ac_status=$?
   8586  1.1  skrll   grep -v '^ *+' conftest.er1 >conftest.err
   8587  1.1  skrll   rm -f conftest.er1
   8588  1.1  skrll   cat conftest.err >&5
   8589  1.1  skrll   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   8590  1.1  skrll   (exit $ac_status); } >/dev/null; then
   8591  1.1  skrll   if test -s conftest.err; then
   8592  1.1  skrll     ac_cpp_err=$ac_c_preproc_warn_flag
   8593  1.1  skrll     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
   8594  1.1  skrll   else
   8595  1.1  skrll     ac_cpp_err=
   8596  1.1  skrll   fi
   8597  1.1  skrll else
   8598  1.1  skrll   ac_cpp_err=yes
   8599  1.1  skrll fi
   8600  1.1  skrll if test -z "$ac_cpp_err"; then
   8601  1.1  skrll   eval "$as_ac_Header=yes"
   8602  1.1  skrll else
   8603  1.1  skrll   echo "$as_me: failed program was:" >&5
   8604  1.1  skrll sed 's/^/| /' conftest.$ac_ext >&5
   8605  1.1  skrll 
   8606  1.1  skrll   eval "$as_ac_Header=no"
   8607  1.1  skrll fi
   8608  1.1  skrll rm -f conftest.err conftest.$ac_ext
   8609  1.1  skrll fi
   8610  1.1  skrll echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
   8611  1.1  skrll echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
   8612  1.1  skrll if test `eval echo '${'$as_ac_Header'}'` = yes; then
   8613  1.1  skrll   cat >>confdefs.h <<_ACEOF
   8614  1.1  skrll #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
   8615  1.1  skrll _ACEOF
   8616  1.1  skrll 
   8617  1.1  skrll fi
   8618  1.1  skrll done
   8619  1.1  skrll 
   8620  1.1  skrll 
   8621  1.1  skrll for ac_func in getpagesize
   8622  1.1  skrll do
   8623  1.1  skrll as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
   8624  1.1  skrll echo "$as_me:$LINENO: checking for $ac_func" >&5
   8625  1.1  skrll echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
   8626  1.1  skrll if eval "test \"\${$as_ac_var+set}\" = set"; then
   8627  1.1  skrll   echo $ECHO_N "(cached) $ECHO_C" >&6
   8628  1.1  skrll else
   8629  1.1  skrll   if test x$gcc_no_link = xyes; then
   8630  1.1  skrll   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
   8631  1.1  skrll echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
   8632  1.1  skrll    { (exit 1); exit 1; }; }
   8633  1.1  skrll fi
   8634  1.1  skrll cat >conftest.$ac_ext <<_ACEOF
   8635  1.1  skrll /* confdefs.h.  */
   8636  1.1  skrll _ACEOF
   8637  1.1  skrll cat confdefs.h >>conftest.$ac_ext
   8638  1.1  skrll cat >>conftest.$ac_ext <<_ACEOF
   8639  1.1  skrll /* end confdefs.h.  */
   8640  1.1  skrll /* System header to define __stub macros and hopefully few prototypes,
   8641  1.1  skrll     which can conflict with char $ac_func (); below.
   8642  1.1  skrll     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   8643  1.1  skrll     <limits.h> exists even on freestanding compilers.  Under hpux,
   8644  1.1  skrll     including <limits.h> includes <sys/time.h> and causes problems
   8645  1.1  skrll     checking for functions defined therein.  */
   8646  1.1  skrll #if defined (__STDC__) && !defined (_HPUX_SOURCE)
   8647  1.1  skrll # include <limits.h>
   8648  1.1  skrll #else
   8649  1.1  skrll # include <assert.h>
   8650  1.1  skrll #endif
   8651  1.1  skrll /* Override any gcc2 internal prototype to avoid an error.  */
   8652  1.1  skrll #ifdef __cplusplus
   8653  1.1  skrll extern "C"
   8654  1.1  skrll {
   8655  1.1  skrll #endif
   8656  1.1  skrll /* We use char because int might match the return type of a gcc2
   8657  1.1  skrll    builtin and then its argument prototype would still apply.  */
   8658  1.1  skrll char $ac_func ();
   8659  1.1  skrll /* The GNU C library defines this for functions which it implements
   8660  1.1  skrll     to always fail with ENOSYS.  Some functions are actually named
   8661  1.1  skrll     something starting with __ and the normal name is an alias.  */
   8662  1.1  skrll #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
   8663  1.1  skrll choke me
   8664  1.1  skrll #else
   8665  1.1  skrll char (*f) () = $ac_func;
   8666  1.1  skrll #endif
   8667  1.1  skrll #ifdef __cplusplus
   8668  1.1  skrll }
   8669  1.1  skrll #endif
   8670  1.1  skrll 
   8671  1.1  skrll int
   8672  1.1  skrll main ()
   8673  1.1  skrll {
   8674  1.1  skrll return f != $ac_func;
   8675  1.1  skrll   ;
   8676  1.1  skrll   return 0;
   8677  1.1  skrll }
   8678  1.1  skrll _ACEOF
   8679  1.1  skrll rm -f conftest.$ac_objext conftest$ac_exeext
   8680  1.1  skrll if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
   8681  1.1  skrll   (eval $ac_link) 2>conftest.er1
   8682  1.1  skrll   ac_status=$?
   8683  1.1  skrll   grep -v '^ *+' conftest.er1 >conftest.err
   8684  1.1  skrll   rm -f conftest.er1
   8685  1.1  skrll   cat conftest.err >&5
   8686  1.1  skrll   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   8687  1.1  skrll   (exit $ac_status); } &&
   8688  1.1  skrll 	 { ac_try='test -z "$ac_c_werror_flag"
   8689  1.1  skrll 			 || test ! -s conftest.err'
   8690  1.1  skrll   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   8691  1.1  skrll   (eval $ac_try) 2>&5
   8692  1.1  skrll   ac_status=$?
   8693  1.1  skrll   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   8694  1.1  skrll   (exit $ac_status); }; } &&
   8695  1.1  skrll 	 { ac_try='test -s conftest$ac_exeext'
   8696  1.1  skrll   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   8697  1.1  skrll   (eval $ac_try) 2>&5
   8698  1.1  skrll   ac_status=$?
   8699  1.1  skrll   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   8700  1.1  skrll   (exit $ac_status); }; }; then
   8701  1.1  skrll   eval "$as_ac_var=yes"
   8702  1.1  skrll else
   8703  1.1  skrll   echo "$as_me: failed program was:" >&5
   8704  1.1  skrll sed 's/^/| /' conftest.$ac_ext >&5
   8705  1.1  skrll 
   8706  1.1  skrll eval "$as_ac_var=no"
   8707  1.1  skrll fi
   8708  1.1  skrll rm -f conftest.err conftest.$ac_objext \
   8709  1.1  skrll       conftest$ac_exeext conftest.$ac_ext
   8710  1.1  skrll fi
   8711  1.1  skrll echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
   8712  1.1  skrll echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
   8713  1.1  skrll if test `eval echo '${'$as_ac_var'}'` = yes; then
   8714  1.1  skrll   cat >>confdefs.h <<_ACEOF
   8715  1.1  skrll #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
   8716  1.1  skrll _ACEOF
   8717  1.1  skrll 
   8718  1.1  skrll fi
   8719  1.1  skrll done
   8720  1.1  skrll 
   8721  1.1  skrll echo "$as_me:$LINENO: checking for working mmap" >&5
   8722  1.1  skrll echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
   8723  1.1  skrll if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
   8724  1.1  skrll   echo $ECHO_N "(cached) $ECHO_C" >&6
   8725  1.1  skrll else
   8726  1.1  skrll   if test "$cross_compiling" = yes; then
   8727  1.1  skrll   ac_cv_func_mmap_fixed_mapped=no
   8728  1.1  skrll else
   8729  1.1  skrll   cat >conftest.$ac_ext <<_ACEOF
   8730  1.1  skrll /* confdefs.h.  */
   8731  1.1  skrll _ACEOF
   8732  1.1  skrll cat confdefs.h >>conftest.$ac_ext
   8733  1.1  skrll cat >>conftest.$ac_ext <<_ACEOF
   8734  1.1  skrll /* end confdefs.h.  */
   8735  1.1  skrll $ac_includes_default
   8736  1.1  skrll /* malloc might have been renamed as rpl_malloc. */
   8737  1.1  skrll #undef malloc
   8738  1.1  skrll 
   8739  1.1  skrll /* Thanks to Mike Haertel and Jim Avera for this test.
   8740  1.1  skrll    Here is a matrix of mmap possibilities:
   8741  1.1  skrll 	mmap private not fixed
   8742  1.1  skrll 	mmap private fixed at somewhere currently unmapped
   8743  1.1  skrll 	mmap private fixed at somewhere already mapped
   8744  1.1  skrll 	mmap shared not fixed
   8745  1.1  skrll 	mmap shared fixed at somewhere currently unmapped
   8746  1.1  skrll 	mmap shared fixed at somewhere already mapped
   8747  1.1  skrll    For private mappings, we should verify that changes cannot be read()
   8748  1.1  skrll    back from the file, nor mmap's back from the file at a different
   8749  1.1  skrll    address.  (There have been systems where private was not correctly
   8750  1.1  skrll    implemented like the infamous i386 svr4.0, and systems where the
   8751  1.1  skrll    VM page cache was not coherent with the file system buffer cache
   8752  1.1  skrll    like early versions of FreeBSD and possibly contemporary NetBSD.)
   8753  1.1  skrll    For shared mappings, we should conversely verify that changes get
   8754  1.1  skrll    propagated back to all the places they're supposed to be.
   8755  1.1  skrll 
   8756  1.1  skrll    Grep wants private fixed already mapped.
   8757  1.1  skrll    The main things grep needs to know about mmap are:
   8758  1.1  skrll    * does it exist and is it safe to write into the mmap'd area
   8759  1.1  skrll    * how to use it (BSD variants)  */
   8760  1.1  skrll 
   8761  1.1  skrll #include <fcntl.h>
   8762  1.1  skrll #include <sys/mman.h>
   8763  1.1  skrll 
   8764  1.1  skrll #if !STDC_HEADERS && !HAVE_STDLIB_H
   8765  1.1  skrll char *malloc ();
   8766  1.1  skrll #endif
   8767  1.1  skrll 
   8768  1.1  skrll /* This mess was copied from the GNU getpagesize.h.  */
   8769  1.1  skrll #if !HAVE_GETPAGESIZE
   8770  1.1  skrll /* Assume that all systems that can run configure have sys/param.h.  */
   8771  1.1  skrll # if !HAVE_SYS_PARAM_H
   8772  1.1  skrll #  define HAVE_SYS_PARAM_H 1
   8773  1.1  skrll # endif
   8774  1.1  skrll 
   8775  1.1  skrll # ifdef _SC_PAGESIZE
   8776  1.1  skrll #  define getpagesize() sysconf(_SC_PAGESIZE)
   8777  1.1  skrll # else /* no _SC_PAGESIZE */
   8778  1.1  skrll #  if HAVE_SYS_PARAM_H
   8779  1.1  skrll #   include <sys/param.h>
   8780  1.1  skrll #   ifdef EXEC_PAGESIZE
   8781  1.1  skrll #    define getpagesize() EXEC_PAGESIZE
   8782  1.1  skrll #   else /* no EXEC_PAGESIZE */
   8783  1.1  skrll #    ifdef NBPG
   8784  1.1  skrll #     define getpagesize() NBPG * CLSIZE
   8785  1.1  skrll #     ifndef CLSIZE
   8786  1.1  skrll #      define CLSIZE 1
   8787  1.1  skrll #     endif /* no CLSIZE */
   8788  1.1  skrll #    else /* no NBPG */
   8789  1.1  skrll #     ifdef NBPC
   8790  1.1  skrll #      define getpagesize() NBPC
   8791  1.1  skrll #     else /* no NBPC */
   8792  1.1  skrll #      ifdef PAGESIZE
   8793  1.1  skrll #       define getpagesize() PAGESIZE
   8794  1.1  skrll #      endif /* PAGESIZE */
   8795  1.1  skrll #     endif /* no NBPC */
   8796  1.1  skrll #    endif /* no NBPG */
   8797  1.1  skrll #   endif /* no EXEC_PAGESIZE */
   8798  1.1  skrll #  else /* no HAVE_SYS_PARAM_H */
   8799  1.1  skrll #   define getpagesize() 8192	/* punt totally */
   8800  1.1  skrll #  endif /* no HAVE_SYS_PARAM_H */
   8801  1.1  skrll # endif /* no _SC_PAGESIZE */
   8802  1.1  skrll 
   8803  1.1  skrll #endif /* no HAVE_GETPAGESIZE */
   8804  1.1  skrll 
   8805  1.1  skrll int
   8806  1.1  skrll main ()
   8807  1.1  skrll {
   8808  1.1  skrll   char *data, *data2, *data3;
   8809  1.1  skrll   int i, pagesize;
   8810  1.1  skrll   int fd;
   8811  1.1  skrll 
   8812  1.1  skrll   pagesize = getpagesize ();
   8813  1.1  skrll 
   8814  1.1  skrll   /* First, make a file with some known garbage in it. */
   8815  1.1  skrll   data = (char *) malloc (pagesize);
   8816  1.1  skrll   if (!data)
   8817  1.1  skrll     exit (1);
   8818  1.1  skrll   for (i = 0; i < pagesize; ++i)
   8819  1.1  skrll     *(data + i) = rand ();
   8820  1.1  skrll   umask (0);
   8821  1.1  skrll   fd = creat ("conftest.mmap", 0600);
   8822  1.1  skrll   if (fd < 0)
   8823  1.1  skrll     exit (1);
   8824  1.1  skrll   if (write (fd, data, pagesize) != pagesize)
   8825  1.1  skrll     exit (1);
   8826  1.1  skrll   close (fd);
   8827  1.1  skrll 
   8828  1.1  skrll   /* Next, try to mmap the file at a fixed address which already has
   8829  1.1  skrll      something else allocated at it.  If we can, also make sure that
   8830  1.1  skrll      we see the same garbage.  */
   8831  1.1  skrll   fd = open ("conftest.mmap", O_RDWR);
   8832  1.1  skrll   if (fd < 0)
   8833  1.1  skrll     exit (1);
   8834  1.1  skrll   data2 = (char *) malloc (2 * pagesize);
   8835  1.1  skrll   if (!data2)
   8836  1.1  skrll     exit (1);
   8837  1.1  skrll   data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
   8838  1.1  skrll   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
   8839  1.1  skrll 		     MAP_PRIVATE | MAP_FIXED, fd, 0L))
   8840  1.1  skrll     exit (1);
   8841  1.1  skrll   for (i = 0; i < pagesize; ++i)
   8842  1.1  skrll     if (*(data + i) != *(data2 + i))
   8843  1.1  skrll       exit (1);
   8844  1.1  skrll 
   8845  1.1  skrll   /* Finally, make sure that changes to the mapped area do not
   8846  1.1  skrll      percolate back to the file as seen by read().  (This is a bug on
   8847  1.1  skrll      some variants of i386 svr4.0.)  */
   8848  1.1  skrll   for (i = 0; i < pagesize; ++i)
   8849  1.1  skrll     *(data2 + i) = *(data2 + i) + 1;
   8850  1.1  skrll   data3 = (char *) malloc (pagesize);
   8851  1.1  skrll   if (!data3)
   8852  1.1  skrll     exit (1);
   8853  1.1  skrll   if (read (fd, data3, pagesize) != pagesize)
   8854  1.1  skrll     exit (1);
   8855  1.1  skrll   for (i = 0; i < pagesize; ++i)
   8856  1.1  skrll     if (*(data + i) != *(data3 + i))
   8857  1.1  skrll       exit (1);
   8858  1.1  skrll   close (fd);
   8859  1.1  skrll   exit (0);
   8860  1.1  skrll }
   8861  1.1  skrll _ACEOF
   8862  1.1  skrll rm -f conftest$ac_exeext
   8863  1.1  skrll if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
   8864  1.1  skrll   (eval $ac_link) 2>&5
   8865  1.1  skrll   ac_status=$?
   8866  1.1  skrll   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   8867  1.1  skrll   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
   8868  1.1  skrll   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   8869  1.1  skrll   (eval $ac_try) 2>&5
   8870  1.1  skrll   ac_status=$?
   8871  1.1  skrll   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   8872  1.1  skrll   (exit $ac_status); }; }; then
   8873  1.1  skrll   ac_cv_func_mmap_fixed_mapped=yes
   8874  1.1  skrll else
   8875  1.1  skrll   echo "$as_me: program exited with status $ac_status" >&5
   8876  1.1  skrll echo "$as_me: failed program was:" >&5
   8877  1.1  skrll sed 's/^/| /' conftest.$ac_ext >&5
   8878  1.1  skrll 
   8879  1.1  skrll ( exit $ac_status )
   8880  1.1  skrll ac_cv_func_mmap_fixed_mapped=no
   8881  1.1  skrll fi
   8882  1.1  skrll rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
   8883  1.1  skrll fi
   8884  1.1  skrll fi
   8885  1.1  skrll echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
   8886  1.1  skrll echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
   8887  1.1  skrll if test $ac_cv_func_mmap_fixed_mapped = yes; then
   8888  1.1  skrll 
   8889  1.1  skrll cat >>confdefs.h <<\_ACEOF
   8890  1.1  skrll #define HAVE_MMAP 1
   8891  1.1  skrll _ACEOF
   8892  1.1  skrll 
   8893  1.1  skrll fi
   8894  1.1  skrll rm -f conftest.mmap
   8895  1.1  skrll 
   8896  1.1  skrll fi
   8897  1.1  skrll 
   8898  1.1  skrll echo "$as_me:$LINENO: checking for working strncmp" >&5
   8899  1.1  skrll echo $ECHO_N "checking for working strncmp... $ECHO_C" >&6
   8900  1.1  skrll if test "${ac_cv_func_strncmp_works+set}" = set; then
   8901  1.1  skrll   echo $ECHO_N "(cached) $ECHO_C" >&6
   8902  1.1  skrll else
   8903  1.1  skrll   if test "$cross_compiling" = yes; then
   8904  1.1  skrll   ac_cv_func_strncmp_works=no
   8905  1.1  skrll else
   8906  1.1  skrll   cat >conftest.$ac_ext <<_ACEOF
   8907  1.1  skrll /* confdefs.h.  */
   8908  1.1  skrll _ACEOF
   8909  1.1  skrll cat confdefs.h >>conftest.$ac_ext
   8910  1.1  skrll cat >>conftest.$ac_ext <<_ACEOF
   8911  1.1  skrll /* end confdefs.h.  */
   8912  1.1  skrll 
   8913  1.1  skrll /* Test by Jim Wilson and Kaveh Ghazi.
   8914  1.1  skrll    Check whether strncmp reads past the end of its string parameters. */
   8915  1.1  skrll #include <sys/types.h>
   8916  1.1  skrll 
   8917  1.1  skrll #ifdef HAVE_FCNTL_H
   8918  1.1  skrll #include <fcntl.h>
   8919  1.1  skrll #endif
   8920  1.1  skrll 
   8921  1.1  skrll #ifdef HAVE_SYS_MMAN_H
   8922  1.1  skrll #include <sys/mman.h>
   8923  1.1  skrll #endif
   8924  1.1  skrll 
   8925  1.1  skrll #ifndef MAP_ANON
   8926  1.1  skrll #ifdef MAP_ANONYMOUS
   8927  1.1  skrll #define MAP_ANON MAP_ANONYMOUS
   8928  1.1  skrll #else
   8929  1.1  skrll #define MAP_ANON MAP_FILE
   8930  1.1  skrll #endif
   8931  1.1  skrll #endif
   8932  1.1  skrll 
   8933  1.1  skrll #ifndef MAP_FILE
   8934  1.1  skrll #define MAP_FILE 0
   8935  1.1  skrll #endif
   8936  1.1  skrll #ifndef O_RDONLY
   8937  1.1  skrll #define O_RDONLY 0
   8938  1.1  skrll #endif
   8939  1.1  skrll 
   8940  1.1  skrll #define MAP_LEN 0x10000
   8941  1.1  skrll 
   8942  1.1  skrll main ()
   8943  1.1  skrll {
   8944  1.1  skrll #if defined(HAVE_MMAP) || defined(HAVE_MMAP_ANYWHERE)
   8945  1.1  skrll   char *p;
   8946  1.1  skrll   int dev_zero;
   8947  1.1  skrll 
   8948  1.1  skrll   dev_zero = open ("/dev/zero", O_RDONLY);
   8949  1.1  skrll   if (dev_zero < 0)
   8950  1.1  skrll     exit (1);
   8951  1.1  skrll 
   8952  1.1  skrll   p = (char *) mmap (0, MAP_LEN, PROT_READ|PROT_WRITE,
   8953  1.1  skrll 		     MAP_ANON|MAP_PRIVATE, dev_zero, 0);
   8954  1.1  skrll   if (p == (char *)-1)
   8955  1.1  skrll     p = (char *) mmap (0, MAP_LEN, PROT_READ|PROT_WRITE,
   8956  1.1  skrll 		       MAP_ANON|MAP_PRIVATE, -1, 0);
   8957  1.1  skrll   if (p == (char *)-1)
   8958  1.1  skrll     exit (2);
   8959  1.1  skrll   else
   8960  1.1  skrll     {
   8961  1.1  skrll       char *string = "__si_type_info";
   8962  1.1  skrll       char *q = (char *) p + MAP_LEN - strlen (string) - 2;
   8963  1.1  skrll       char *r = (char *) p + 0xe;
   8964  1.1  skrll 
   8965  1.1  skrll       strcpy (q, string);
   8966  1.1  skrll       strcpy (r, string);
   8967  1.1  skrll       strncmp (r, q, 14);
   8968  1.1  skrll     }
   8969  1.1  skrll #endif /* HAVE_MMAP || HAVE_MMAP_ANYWHERE */
   8970  1.1  skrll   exit (0);
   8971  1.1  skrll }
   8972  1.1  skrll 
   8973  1.1  skrll _ACEOF
   8974  1.1  skrll rm -f conftest$ac_exeext
   8975  1.1  skrll if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
   8976  1.1  skrll   (eval $ac_link) 2>&5
   8977  1.1  skrll   ac_status=$?
   8978  1.1  skrll   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   8979  1.1  skrll   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
   8980  1.1  skrll   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   8981  1.1  skrll   (eval $ac_try) 2>&5
   8982  1.1  skrll   ac_status=$?
   8983  1.1  skrll   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   8984  1.1  skrll   (exit $ac_status); }; }; then
   8985  1.1  skrll   ac_cv_func_strncmp_works=yes
   8986  1.1  skrll else
   8987  1.1  skrll   echo "$as_me: program exited with status $ac_status" >&5
   8988  1.1  skrll echo "$as_me: failed program was:" >&5
   8989  1.1  skrll sed 's/^/| /' conftest.$ac_ext >&5
   8990  1.1  skrll 
   8991  1.1  skrll ( exit $ac_status )
   8992  1.1  skrll ac_cv_func_strncmp_works=no
   8993  1.1  skrll fi
   8994  1.1  skrll rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
   8995  1.1  skrll fi
   8996  1.1  skrll rm -f core core.* *.core
   8997  1.1  skrll fi
   8998  1.1  skrll echo "$as_me:$LINENO: result: $ac_cv_func_strncmp_works" >&5
   8999  1.1  skrll echo "${ECHO_T}$ac_cv_func_strncmp_works" >&6
   9000  1.1  skrll if test $ac_cv_func_strncmp_works = no ; then
   9001  1.1  skrll   case $LIBOBJS in
   9002  1.1  skrll     "strncmp.$ac_objext"   | \
   9003  1.1  skrll   *" strncmp.$ac_objext"   | \
   9004  1.1  skrll     "strncmp.$ac_objext "* | \
   9005  1.1  skrll   *" strncmp.$ac_objext "* ) ;;
   9006  1.1  skrll   *) LIBOBJS="$LIBOBJS strncmp.$ac_objext" ;;
   9007  1.1  skrll esac
   9008  1.1  skrll 
   9009  1.1  skrll fi
   9010  1.1  skrll 
   9011  1.1  skrll 
   9012  1.1  skrll # Install a library built with a cross compiler in $(tooldir) rather
   9013  1.1  skrll # than $(libdir).
   9014  1.1  skrll if test -z "${with_cross_host}"; then
   9015  1.1  skrll   INSTALL_DEST=libdir
   9016  1.1  skrll else
   9017  1.1  skrll   INSTALL_DEST=tooldir
   9018  1.1  skrll fi
   9019  1.1  skrll 
   9020  1.1  skrll 
   9021  1.1  skrll 
   9022  1.1  skrll L=""
   9023  1.1  skrll for l in x $LIBOBJS; do
   9024  1.1  skrll   case $l in
   9025  1.1  skrll     x) ;;
   9026  1.1  skrll     *) L="$L ./$l" ;;
   9027  1.1  skrll   esac
   9028  1.1  skrll done
   9029  1.1  skrll LIBOBJS="$L"
   9030  1.1  skrll 
   9031  1.1  skrll 
   9032  1.1  skrll 
   9033  1.1  skrll 
   9034  1.1  skrll 
   9035  1.1  skrll # We need multilib support, but only if configuring for the target.
   9036  1.1  skrll                     ac_config_files="$ac_config_files Makefile testsuite/Makefile"
   9037  1.1  skrll 
   9038  1.1  skrll           ac_config_commands="$ac_config_commands default"
   9039  1.1  skrll 
   9040  1.1  skrll cat >confcache <<\_ACEOF
   9041  1.1  skrll # This file is a shell script that caches the results of configure
   9042  1.1  skrll # tests run on this system so they can be shared between configure
   9043  1.1  skrll # scripts and configure runs, see configure's option --config-cache.
   9044  1.1  skrll # It is not useful on other systems.  If it contains results you don't
   9045  1.1  skrll # want to keep, you may remove or edit it.
   9046  1.1  skrll #
   9047  1.1  skrll # config.status only pays attention to the cache file if you give it
   9048  1.1  skrll # the --recheck option to rerun configure.
   9049  1.1  skrll #
   9050  1.1  skrll # `ac_cv_env_foo' variables (set or unset) will be overridden when
   9051  1.1  skrll # loading this file, other *unset* `ac_cv_foo' will be assigned the
   9052  1.1  skrll # following values.
   9053  1.1  skrll 
   9054  1.1  skrll _ACEOF
   9055  1.1  skrll 
   9056  1.1  skrll # The following way of writing the cache mishandles newlines in values,
   9057  1.1  skrll # but we know of no workaround that is simple, portable, and efficient.
   9058  1.1  skrll # So, don't put newlines in cache variables' values.
   9059  1.1  skrll # Ultrix sh set writes to stderr and can't be redirected directly,
   9060  1.1  skrll # and sets the high bit in the cache file unless we assign to the vars.
   9061  1.1  skrll {
   9062  1.1  skrll   (set) 2>&1 |
   9063  1.1  skrll     case `(ac_space=' '; set | grep ac_space) 2>&1` in
   9064  1.1  skrll     *ac_space=\ *)
   9065  1.1  skrll       # `set' does not quote correctly, so add quotes (double-quote
   9066  1.1  skrll       # substitution turns \\\\ into \\, and sed turns \\ into \).
   9067  1.1  skrll       sed -n \
   9068  1.1  skrll 	"s/'/'\\\\''/g;
   9069  1.1  skrll 	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
   9070  1.1  skrll       ;;
   9071  1.1  skrll     *)
   9072  1.1  skrll       # `set' quotes correctly as required by POSIX, so do not add quotes.
   9073  1.1  skrll       sed -n \
   9074  1.1  skrll 	"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
   9075  1.1  skrll       ;;
   9076  1.1  skrll     esac;
   9077  1.1  skrll } |
   9078  1.1  skrll   sed '
   9079  1.1  skrll      t clear
   9080  1.1  skrll      : clear
   9081  1.1  skrll      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
   9082  1.1  skrll      t end
   9083  1.1  skrll      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
   9084  1.1  skrll      : end' >>confcache
   9085  1.1  skrll if diff $cache_file confcache >/dev/null 2>&1; then :; else
   9086  1.1  skrll   if test -w $cache_file; then
   9087  1.1  skrll     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
   9088  1.1  skrll     cat confcache >$cache_file
   9089  1.1  skrll   else
   9090  1.1  skrll     echo "not updating unwritable cache $cache_file"
   9091  1.1  skrll   fi
   9092  1.1  skrll fi
   9093  1.1  skrll rm -f confcache
   9094  1.1  skrll 
   9095  1.1  skrll test "x$prefix" = xNONE && prefix=$ac_default_prefix
   9096  1.1  skrll # Let make expand exec_prefix.
   9097  1.1  skrll test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
   9098  1.1  skrll 
   9099  1.1  skrll # VPATH may cause trouble with some makes, so we remove $(srcdir),
   9100  1.1  skrll # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
   9101  1.1  skrll # trailing colons and then remove the whole line if VPATH becomes empty
   9102  1.1  skrll # (actually we leave an empty line to preserve line numbers).
   9103  1.1  skrll if test "x$srcdir" = x.; then
   9104  1.1  skrll   ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
   9105  1.1  skrll s/:*\$(srcdir):*/:/;
   9106  1.1  skrll s/:*\${srcdir}:*/:/;
   9107  1.1  skrll s/:*@srcdir@:*/:/;
   9108  1.1  skrll s/^\([^=]*=[	 ]*\):*/\1/;
   9109  1.1  skrll s/:*$//;
   9110  1.1  skrll s/^[^=]*=[	 ]*$//;
   9111  1.1  skrll }'
   9112  1.1  skrll fi
   9113  1.1  skrll 
   9114  1.1  skrll DEFS=-DHAVE_CONFIG_H
   9115  1.1  skrll 
   9116  1.1  skrll ac_libobjs=
   9117  1.1  skrll ac_ltlibobjs=
   9118  1.1  skrll for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
   9119  1.1  skrll   # 1. Remove the extension, and $U if already installed.
   9120  1.1  skrll   ac_i=`echo "$ac_i" |
   9121  1.1  skrll 	 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
   9122  1.1  skrll   # 2. Add them.
   9123  1.1  skrll   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
   9124  1.1  skrll   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
   9125  1.1  skrll done
   9126  1.1  skrll LIBOBJS=$ac_libobjs
   9127  1.1  skrll 
   9128  1.1  skrll LTLIBOBJS=$ac_ltlibobjs
   9129  1.1  skrll 
   9130  1.1  skrll 
   9131  1.1  skrll 
   9132  1.1  skrll : ${CONFIG_STATUS=./config.status}
   9133  1.1  skrll ac_clean_files_save=$ac_clean_files
   9134  1.1  skrll ac_clean_files="$ac_clean_files $CONFIG_STATUS"
   9135  1.1  skrll { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
   9136  1.1  skrll echo "$as_me: creating $CONFIG_STATUS" >&6;}
   9137  1.1  skrll cat >$CONFIG_STATUS <<_ACEOF
   9138  1.1  skrll #! $SHELL
   9139  1.1  skrll # Generated by $as_me.
   9140  1.1  skrll # Run this file to recreate the current configuration.
   9141  1.1  skrll # Compiler output produced by configure, useful for debugging
   9142  1.1  skrll # configure, is in config.log if it exists.
   9143  1.1  skrll 
   9144  1.1  skrll debug=false
   9145  1.1  skrll ac_cs_recheck=false
   9146  1.1  skrll ac_cs_silent=false
   9147  1.1  skrll SHELL=\${CONFIG_SHELL-$SHELL}
   9148  1.1  skrll _ACEOF
   9149  1.1  skrll 
   9150  1.1  skrll cat >>$CONFIG_STATUS <<\_ACEOF
   9151  1.1  skrll ## --------------------- ##
   9152  1.1  skrll ## M4sh Initialization.  ##
   9153  1.1  skrll ## --------------------- ##
   9154  1.1  skrll 
   9155  1.1  skrll # Be Bourne compatible
   9156  1.1  skrll if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
   9157  1.1  skrll   emulate sh
   9158  1.1  skrll   NULLCMD=:
   9159  1.1  skrll   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
   9160  1.1  skrll   # is contrary to our usage.  Disable this feature.
   9161  1.1  skrll   alias -g '${1+"$@"}'='"$@"'
   9162  1.1  skrll elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
   9163  1.1  skrll   set -o posix
   9164  1.1  skrll fi
   9165  1.1  skrll DUALCASE=1; export DUALCASE # for MKS sh
   9166  1.1  skrll 
   9167  1.1  skrll # Support unset when possible.
   9168  1.1  skrll if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
   9169  1.1  skrll   as_unset=unset
   9170  1.1  skrll else
   9171  1.1  skrll   as_unset=false
   9172  1.1  skrll fi
   9173  1.1  skrll 
   9174  1.1  skrll 
   9175  1.1  skrll # Work around bugs in pre-3.0 UWIN ksh.
   9176  1.1  skrll $as_unset ENV MAIL MAILPATH
   9177  1.1  skrll PS1='$ '
   9178  1.1  skrll PS2='> '
   9179  1.1  skrll PS4='+ '
   9180  1.1  skrll 
   9181  1.1  skrll # NLS nuisances.
   9182  1.1  skrll for as_var in \
   9183  1.1  skrll   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
   9184  1.1  skrll   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
   9185  1.1  skrll   LC_TELEPHONE LC_TIME
   9186  1.1  skrll do
   9187  1.1  skrll   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
   9188  1.1  skrll     eval $as_var=C; export $as_var
   9189  1.1  skrll   else
   9190  1.1  skrll     $as_unset $as_var
   9191  1.1  skrll   fi
   9192  1.1  skrll done
   9193  1.1  skrll 
   9194  1.1  skrll # Required to use basename.
   9195  1.1  skrll if expr a : '\(a\)' >/dev/null 2>&1; then
   9196  1.1  skrll   as_expr=expr
   9197  1.1  skrll else
   9198  1.1  skrll   as_expr=false
   9199  1.1  skrll fi
   9200  1.1  skrll 
   9201  1.1  skrll if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
   9202  1.1  skrll   as_basename=basename
   9203  1.1  skrll else
   9204  1.1  skrll   as_basename=false
   9205  1.1  skrll fi
   9206  1.1  skrll 
   9207  1.1  skrll 
   9208  1.1  skrll # Name of the executable.
   9209  1.1  skrll as_me=`$as_basename "$0" ||
   9210  1.1  skrll $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
   9211  1.1  skrll 	 X"$0" : 'X\(//\)$' \| \
   9212  1.1  skrll 	 X"$0" : 'X\(/\)$' \| \
   9213  1.1  skrll 	 .     : '\(.\)' 2>/dev/null ||
   9214  1.1  skrll echo X/"$0" |
   9215  1.1  skrll     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
   9216  1.1  skrll   	  /^X\/\(\/\/\)$/{ s//\1/; q; }
   9217  1.1  skrll   	  /^X\/\(\/\).*/{ s//\1/; q; }
   9218  1.1  skrll   	  s/.*/./; q'`
   9219  1.1  skrll 
   9220  1.1  skrll 
   9221  1.1  skrll # PATH needs CR, and LINENO needs CR and PATH.
   9222  1.1  skrll # Avoid depending upon Character Ranges.
   9223  1.1  skrll as_cr_letters='abcdefghijklmnopqrstuvwxyz'
   9224  1.1  skrll as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
   9225  1.1  skrll as_cr_Letters=$as_cr_letters$as_cr_LETTERS
   9226  1.1  skrll as_cr_digits='0123456789'
   9227  1.1  skrll as_cr_alnum=$as_cr_Letters$as_cr_digits
   9228  1.1  skrll 
   9229  1.1  skrll # The user is always right.
   9230  1.1  skrll if test "${PATH_SEPARATOR+set}" != set; then
   9231  1.1  skrll   echo "#! /bin/sh" >conf$$.sh
   9232  1.1  skrll   echo  "exit 0"   >>conf$$.sh
   9233  1.1  skrll   chmod +x conf$$.sh
   9234  1.1  skrll   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
   9235  1.1  skrll     PATH_SEPARATOR=';'
   9236  1.1  skrll   else
   9237  1.1  skrll     PATH_SEPARATOR=:
   9238  1.1  skrll   fi
   9239  1.1  skrll   rm -f conf$$.sh
   9240  1.1  skrll fi
   9241  1.1  skrll 
   9242  1.1  skrll 
   9243  1.1  skrll   as_lineno_1=$LINENO
   9244  1.1  skrll   as_lineno_2=$LINENO
   9245  1.1  skrll   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
   9246  1.1  skrll   test "x$as_lineno_1" != "x$as_lineno_2" &&
   9247  1.1  skrll   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
   9248  1.1  skrll   # Find who we are.  Look in the path if we contain no path at all
   9249  1.1  skrll   # relative or not.
   9250  1.1  skrll   case $0 in
   9251  1.1  skrll     *[\\/]* ) as_myself=$0 ;;
   9252  1.1  skrll     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   9253  1.1  skrll for as_dir in $PATH
   9254  1.1  skrll do
   9255  1.1  skrll   IFS=$as_save_IFS
   9256  1.1  skrll   test -z "$as_dir" && as_dir=.
   9257  1.1  skrll   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
   9258  1.1  skrll done
   9259  1.1  skrll 
   9260  1.1  skrll        ;;
   9261  1.1  skrll   esac
   9262  1.1  skrll   # We did not find ourselves, most probably we were run as `sh COMMAND'
   9263  1.1  skrll   # in which case we are not to be found in the path.
   9264  1.1  skrll   if test "x$as_myself" = x; then
   9265  1.1  skrll     as_myself=$0
   9266  1.1  skrll   fi
   9267  1.1  skrll   if test ! -f "$as_myself"; then
   9268  1.1  skrll     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
   9269  1.1  skrll echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
   9270  1.1  skrll    { (exit 1); exit 1; }; }
   9271  1.1  skrll   fi
   9272  1.1  skrll   case $CONFIG_SHELL in
   9273  1.1  skrll   '')
   9274  1.1  skrll     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   9275  1.1  skrll for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
   9276  1.1  skrll do
   9277  1.1  skrll   IFS=$as_save_IFS
   9278  1.1  skrll   test -z "$as_dir" && as_dir=.
   9279  1.1  skrll   for as_base in sh bash ksh sh5; do
   9280  1.1  skrll 	 case $as_dir in
   9281  1.1  skrll 	 /*)
   9282  1.1  skrll 	   if ("$as_dir/$as_base" -c '
   9283  1.1  skrll   as_lineno_1=$LINENO
   9284  1.1  skrll   as_lineno_2=$LINENO
   9285  1.1  skrll   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
   9286  1.1  skrll   test "x$as_lineno_1" != "x$as_lineno_2" &&
   9287  1.1  skrll   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
   9288  1.1  skrll 	     $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
   9289  1.1  skrll 	     $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
   9290  1.1  skrll 	     CONFIG_SHELL=$as_dir/$as_base
   9291  1.1  skrll 	     export CONFIG_SHELL
   9292  1.1  skrll 	     exec "$CONFIG_SHELL" "$0" ${1+"$@"}
   9293  1.1  skrll 	   fi;;
   9294  1.1  skrll 	 esac
   9295  1.1  skrll        done
   9296  1.1  skrll done
   9297  1.1  skrll ;;
   9298  1.1  skrll   esac
   9299  1.1  skrll 
   9300  1.1  skrll   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
   9301  1.1  skrll   # uniformly replaced by the line number.  The first 'sed' inserts a
   9302  1.1  skrll   # line-number line before each line; the second 'sed' does the real
   9303  1.1  skrll   # work.  The second script uses 'N' to pair each line-number line
   9304  1.1  skrll   # with the numbered line, and appends trailing '-' during
   9305  1.1  skrll   # substitution so that $LINENO is not a special case at line end.
   9306  1.1  skrll   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
   9307  1.1  skrll   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
   9308  1.1  skrll   sed '=' <$as_myself |
   9309  1.1  skrll     sed '
   9310  1.1  skrll       N
   9311  1.1  skrll       s,$,-,
   9312  1.1  skrll       : loop
   9313  1.1  skrll       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
   9314  1.1  skrll       t loop
   9315  1.1  skrll       s,-$,,
   9316  1.1  skrll       s,^['$as_cr_digits']*\n,,
   9317  1.1  skrll     ' >$as_me.lineno &&
   9318  1.1  skrll   chmod +x $as_me.lineno ||
   9319  1.1  skrll     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
   9320  1.1  skrll echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
   9321  1.1  skrll    { (exit 1); exit 1; }; }
   9322  1.1  skrll 
   9323  1.1  skrll   # Don't try to exec as it changes $[0], causing all sort of problems
   9324  1.1  skrll   # (the dirname of $[0] is not the place where we might find the
   9325  1.1  skrll   # original and so on.  Autoconf is especially sensible to this).
   9326  1.1  skrll   . ./$as_me.lineno
   9327  1.1  skrll   # Exit status is that of the last command.
   9328  1.1  skrll   exit
   9329  1.1  skrll }
   9330  1.1  skrll 
   9331  1.1  skrll 
   9332  1.1  skrll case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
   9333  1.1  skrll   *c*,-n*) ECHO_N= ECHO_C='
   9334  1.1  skrll ' ECHO_T='	' ;;
   9335  1.1  skrll   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
   9336  1.1  skrll   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
   9337  1.1  skrll esac
   9338  1.1  skrll 
   9339  1.1  skrll if expr a : '\(a\)' >/dev/null 2>&1; then
   9340  1.1  skrll   as_expr=expr
   9341  1.1  skrll else
   9342  1.1  skrll   as_expr=false
   9343  1.1  skrll fi
   9344  1.1  skrll 
   9345  1.1  skrll rm -f conf$$ conf$$.exe conf$$.file
   9346  1.1  skrll echo >conf$$.file
   9347  1.1  skrll if ln -s conf$$.file conf$$ 2>/dev/null; then
   9348  1.1  skrll   # We could just check for DJGPP; but this test a) works b) is more generic
   9349  1.1  skrll   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
   9350  1.1  skrll   if test -f conf$$.exe; then
   9351  1.1  skrll     # Don't use ln at all; we don't have any links
   9352  1.1  skrll     as_ln_s='cp -p'
   9353  1.1  skrll   else
   9354  1.1  skrll     as_ln_s='ln -s'
   9355  1.1  skrll   fi
   9356  1.1  skrll elif ln conf$$.file conf$$ 2>/dev/null; then
   9357  1.1  skrll   as_ln_s=ln
   9358  1.1  skrll else
   9359  1.1  skrll   as_ln_s='cp -p'
   9360  1.1  skrll fi
   9361  1.1  skrll rm -f conf$$ conf$$.exe conf$$.file
   9362  1.1  skrll 
   9363  1.1  skrll if mkdir -p . 2>/dev/null; then
   9364  1.1  skrll   as_mkdir_p=:
   9365  1.1  skrll else
   9366  1.1  skrll   test -d ./-p && rmdir ./-p
   9367  1.1  skrll   as_mkdir_p=false
   9368  1.1  skrll fi
   9369  1.1  skrll 
   9370  1.1  skrll as_executable_p="test -f"
   9371  1.1  skrll 
   9372  1.1  skrll # Sed expression to map a string onto a valid CPP name.
   9373  1.1  skrll as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
   9374  1.1  skrll 
   9375  1.1  skrll # Sed expression to map a string onto a valid variable name.
   9376  1.1  skrll as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
   9377  1.1  skrll 
   9378  1.1  skrll 
   9379  1.1  skrll # IFS
   9380  1.1  skrll # We need space, tab and new line, in precisely that order.
   9381  1.1  skrll as_nl='
   9382  1.1  skrll '
   9383  1.1  skrll IFS=" 	$as_nl"
   9384  1.1  skrll 
   9385  1.1  skrll # CDPATH.
   9386  1.1  skrll $as_unset CDPATH
   9387  1.1  skrll 
   9388  1.1  skrll exec 6>&1
   9389  1.1  skrll 
   9390  1.1  skrll # Open the log real soon, to keep \$[0] and so on meaningful, and to
   9391  1.1  skrll # report actual input values of CONFIG_FILES etc. instead of their
   9392  1.1  skrll # values after options handling.  Logging --version etc. is OK.
   9393  1.1  skrll exec 5>>config.log
   9394  1.1  skrll {
   9395  1.1  skrll   echo
   9396  1.1  skrll   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
   9397  1.1  skrll ## Running $as_me. ##
   9398  1.1  skrll _ASBOX
   9399  1.1  skrll } >&5
   9400  1.1  skrll cat >&5 <<_CSEOF
   9401  1.1  skrll 
   9402  1.1  skrll This file was extended by $as_me, which was
   9403  1.1  skrll generated by GNU Autoconf 2.59.  Invocation command line was
   9404  1.1  skrll 
   9405  1.1  skrll   CONFIG_FILES    = $CONFIG_FILES
   9406  1.1  skrll   CONFIG_HEADERS  = $CONFIG_HEADERS
   9407  1.1  skrll   CONFIG_LINKS    = $CONFIG_LINKS
   9408  1.1  skrll   CONFIG_COMMANDS = $CONFIG_COMMANDS
   9409  1.1  skrll   $ $0 $@
   9410  1.1  skrll 
   9411  1.1  skrll _CSEOF
   9412  1.1  skrll echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
   9413  1.1  skrll echo >&5
   9414  1.1  skrll _ACEOF
   9415  1.1  skrll 
   9416  1.1  skrll # Files that config.status was made for.
   9417  1.1  skrll if test -n "$ac_config_files"; then
   9418  1.1  skrll   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
   9419  1.1  skrll fi
   9420  1.1  skrll 
   9421  1.1  skrll if test -n "$ac_config_headers"; then
   9422  1.1  skrll   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
   9423  1.1  skrll fi
   9424  1.1  skrll 
   9425  1.1  skrll if test -n "$ac_config_links"; then
   9426  1.1  skrll   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
   9427  1.1  skrll fi
   9428  1.1  skrll 
   9429  1.1  skrll if test -n "$ac_config_commands"; then
   9430  1.1  skrll   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
   9431  1.1  skrll fi
   9432  1.1  skrll 
   9433  1.1  skrll cat >>$CONFIG_STATUS <<\_ACEOF
   9434  1.1  skrll 
   9435  1.1  skrll ac_cs_usage="\
   9436  1.1  skrll \`$as_me' instantiates files from templates according to the
   9437  1.1  skrll current configuration.
   9438  1.1  skrll 
   9439  1.1  skrll Usage: $0 [OPTIONS] [FILE]...
   9440  1.1  skrll 
   9441  1.1  skrll   -h, --help       print this help, then exit
   9442  1.1  skrll   -V, --version    print version number, then exit
   9443  1.1  skrll   -q, --quiet      do not print progress messages
   9444  1.1  skrll   -d, --debug      don't remove temporary files
   9445  1.1  skrll       --recheck    update $as_me by reconfiguring in the same conditions
   9446  1.1  skrll   --file=FILE[:TEMPLATE]
   9447  1.1  skrll 		   instantiate the configuration file FILE
   9448  1.1  skrll   --header=FILE[:TEMPLATE]
   9449  1.1  skrll 		   instantiate the configuration header FILE
   9450  1.1  skrll 
   9451  1.1  skrll Configuration files:
   9452  1.1  skrll $config_files
   9453  1.1  skrll 
   9454  1.1  skrll Configuration headers:
   9455  1.1  skrll $config_headers
   9456  1.1  skrll 
   9457  1.1  skrll Configuration commands:
   9458  1.1  skrll $config_commands
   9459  1.1  skrll 
   9460  1.1  skrll Report bugs to <bug-autoconf@gnu.org>."
   9461  1.1  skrll _ACEOF
   9462  1.1  skrll 
   9463  1.1  skrll cat >>$CONFIG_STATUS <<_ACEOF
   9464  1.1  skrll ac_cs_version="\\
   9465  1.1  skrll config.status
   9466  1.1  skrll configured by $0, generated by GNU Autoconf 2.59,
   9467  1.1  skrll   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
   9468  1.1  skrll 
   9469  1.1  skrll Copyright (C) 2003 Free Software Foundation, Inc.
   9470  1.1  skrll This config.status script is free software; the Free Software Foundation
   9471  1.1  skrll gives unlimited permission to copy, distribute and modify it."
   9472  1.1  skrll srcdir=$srcdir
   9473  1.1  skrll INSTALL="$INSTALL"
   9474  1.1  skrll _ACEOF
   9475  1.1  skrll 
   9476  1.1  skrll cat >>$CONFIG_STATUS <<\_ACEOF
   9477  1.1  skrll # If no file are specified by the user, then we need to provide default
   9478  1.1  skrll # value.  By we need to know if files were specified by the user.
   9479  1.1  skrll ac_need_defaults=:
   9480  1.1  skrll while test $# != 0
   9481  1.1  skrll do
   9482  1.1  skrll   case $1 in
   9483  1.1  skrll   --*=*)
   9484  1.1  skrll     ac_option=`expr "x$1" : 'x\([^=]*\)='`
   9485  1.1  skrll     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
   9486  1.1  skrll     ac_shift=:
   9487  1.1  skrll     ;;
   9488  1.1  skrll   -*)
   9489  1.1  skrll     ac_option=$1
   9490  1.1  skrll     ac_optarg=$2
   9491  1.1  skrll     ac_shift=shift
   9492  1.1  skrll     ;;
   9493  1.1  skrll   *) # This is not an option, so the user has probably given explicit
   9494  1.1  skrll      # arguments.
   9495  1.1  skrll      ac_option=$1
   9496  1.1  skrll      ac_need_defaults=false;;
   9497  1.1  skrll   esac
   9498  1.1  skrll 
   9499  1.1  skrll   case $ac_option in
   9500  1.1  skrll   # Handling of the options.
   9501  1.1  skrll _ACEOF
   9502  1.1  skrll cat >>$CONFIG_STATUS <<\_ACEOF
   9503  1.1  skrll   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
   9504  1.1  skrll     ac_cs_recheck=: ;;
   9505  1.1  skrll   --version | --vers* | -V )
   9506  1.1  skrll     echo "$ac_cs_version"; exit 0 ;;
   9507  1.1  skrll   --he | --h)
   9508  1.1  skrll     # Conflict between --help and --header
   9509  1.1  skrll     { { echo "$as_me:$LINENO: error: ambiguous option: $1
   9510  1.1  skrll Try \`$0 --help' for more information." >&5
   9511  1.1  skrll echo "$as_me: error: ambiguous option: $1
   9512  1.1  skrll Try \`$0 --help' for more information." >&2;}
   9513  1.1  skrll    { (exit 1); exit 1; }; };;
   9514  1.1  skrll   --help | --hel | -h )
   9515  1.1  skrll     echo "$ac_cs_usage"; exit 0 ;;
   9516  1.1  skrll   --debug | --d* | -d )
   9517  1.1  skrll     debug=: ;;
   9518  1.1  skrll   --file | --fil | --fi | --f )
   9519  1.1  skrll     $ac_shift
   9520  1.1  skrll     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
   9521  1.1  skrll     ac_need_defaults=false;;
   9522  1.1  skrll   --header | --heade | --head | --hea )
   9523  1.1  skrll     $ac_shift
   9524  1.1  skrll     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
   9525  1.1  skrll     ac_need_defaults=false;;
   9526  1.1  skrll   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
   9527  1.1  skrll   | -silent | --silent | --silen | --sile | --sil | --si | --s)
   9528  1.1  skrll     ac_cs_silent=: ;;
   9529  1.1  skrll 
   9530  1.1  skrll   # This is an error.
   9531  1.1  skrll   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
   9532  1.1  skrll Try \`$0 --help' for more information." >&5
   9533  1.1  skrll echo "$as_me: error: unrecognized option: $1
   9534  1.1  skrll Try \`$0 --help' for more information." >&2;}
   9535  1.1  skrll    { (exit 1); exit 1; }; } ;;
   9536  1.1  skrll 
   9537  1.1  skrll   *) ac_config_targets="$ac_config_targets $1" ;;
   9538  1.1  skrll 
   9539  1.1  skrll   esac
   9540  1.1  skrll   shift
   9541  1.1  skrll done
   9542  1.1  skrll 
   9543  1.1  skrll ac_configure_extra_args=
   9544  1.1  skrll 
   9545  1.1  skrll if $ac_cs_silent; then
   9546  1.1  skrll   exec 6>/dev/null
   9547  1.1  skrll   ac_configure_extra_args="$ac_configure_extra_args --silent"
   9548  1.1  skrll fi
   9549  1.1  skrll 
   9550  1.1  skrll _ACEOF
   9551  1.1  skrll cat >>$CONFIG_STATUS <<_ACEOF
   9552  1.1  skrll if \$ac_cs_recheck; then
   9553  1.1  skrll   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
   9554  1.1  skrll   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
   9555  1.1  skrll fi
   9556  1.1  skrll 
   9557  1.1  skrll _ACEOF
   9558  1.1  skrll 
   9559  1.1  skrll cat >>$CONFIG_STATUS <<_ACEOF
   9560  1.1  skrll #
   9561  1.1  skrll # INIT-COMMANDS section.
   9562  1.1  skrll #
   9563  1.1  skrll 
   9564  1.1  skrll srcdir=${srcdir}
   9565  1.1  skrll host=${host}
   9566  1.1  skrll target=${target}
   9567  1.1  skrll with_target_subdir=${with_target_subdir}
   9568  1.1  skrll with_multisubdir=${with_multisubdir}
   9569  1.1  skrll ac_configure_args="--enable-multilib ${ac_configure_args}"
   9570  1.1  skrll CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
   9571  1.1  skrll ORIGINAL_LD_FOR_MULTILIBS="${ORIGINAL_LD_FOR_MULTILIBS}"
   9572  1.1  skrll libiberty_topdir=${libiberty_topdir}
   9573  1.1  skrll 
   9574  1.1  skrll 
   9575  1.1  skrll _ACEOF
   9576  1.1  skrll 
   9577  1.1  skrll 
   9578  1.1  skrll 
   9579  1.1  skrll cat >>$CONFIG_STATUS <<\_ACEOF
   9580  1.1  skrll for ac_config_target in $ac_config_targets
   9581  1.1  skrll do
   9582  1.1  skrll   case "$ac_config_target" in
   9583  1.1  skrll   # Handling of arguments.
   9584  1.1  skrll   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
   9585  1.1  skrll   "testsuite/Makefile" ) CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
   9586  1.1  skrll   "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
   9587  1.1  skrll   "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
   9588  1.1  skrll   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
   9589  1.1  skrll echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
   9590  1.1  skrll    { (exit 1); exit 1; }; };;
   9591  1.1  skrll   esac
   9592  1.1  skrll done
   9593  1.1  skrll 
   9594  1.1  skrll # If the user did not use the arguments to specify the items to instantiate,
   9595  1.1  skrll # then the envvar interface is used.  Set only those that are not.
   9596  1.1  skrll # We use the long form for the default assignment because of an extremely
   9597  1.1  skrll # bizarre bug on SunOS 4.1.3.
   9598  1.1  skrll if $ac_need_defaults; then
   9599  1.1  skrll   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
   9600  1.1  skrll   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
   9601  1.1  skrll   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
   9602  1.1  skrll fi
   9603  1.1  skrll 
   9604  1.1  skrll # Have a temporary directory for convenience.  Make it in the build tree
   9605  1.1  skrll # simply because there is no reason to put it here, and in addition,
   9606  1.1  skrll # creating and moving files from /tmp can sometimes cause problems.
   9607  1.1  skrll # Create a temporary directory, and hook for its removal unless debugging.
   9608  1.1  skrll $debug ||
   9609  1.1  skrll {
   9610  1.1  skrll   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
   9611  1.1  skrll   trap '{ (exit 1); exit 1; }' 1 2 13 15
   9612  1.1  skrll }
   9613  1.1  skrll 
   9614  1.1  skrll # Create a (secure) tmp directory for tmp files.
   9615  1.1  skrll 
   9616  1.1  skrll {
   9617  1.1  skrll   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
   9618  1.1  skrll   test -n "$tmp" && test -d "$tmp"
   9619  1.1  skrll }  ||
   9620  1.1  skrll {
   9621  1.1  skrll   tmp=./confstat$$-$RANDOM
   9622  1.1  skrll   (umask 077 && mkdir $tmp)
   9623  1.1  skrll } ||
   9624  1.1  skrll {
   9625  1.1  skrll    echo "$me: cannot create a temporary directory in ." >&2
   9626  1.1  skrll    { (exit 1); exit 1; }
   9627  1.1  skrll }
   9628  1.1  skrll 
   9629  1.1  skrll _ACEOF
   9630  1.1  skrll 
   9631  1.1  skrll cat >>$CONFIG_STATUS <<_ACEOF
   9632  1.1  skrll 
   9633  1.1  skrll #
   9634  1.1  skrll # CONFIG_FILES section.
   9635  1.1  skrll #
   9636  1.1  skrll 
   9637  1.1  skrll # No need to generate the scripts if there are no CONFIG_FILES.
   9638  1.1  skrll # This happens for instance when ./config.status config.h
   9639  1.1  skrll if test -n "\$CONFIG_FILES"; then
   9640  1.1  skrll   # Protect against being on the right side of a sed subst in config.status.
   9641  1.1  skrll   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
   9642  1.1  skrll    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
   9643  1.1  skrll s,@SHELL@,$SHELL,;t t
   9644  1.1  skrll s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
   9645  1.1  skrll s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
   9646  1.1  skrll s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
   9647  1.1  skrll s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
   9648  1.1  skrll s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
   9649  1.1  skrll s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
   9650  1.1  skrll s,@exec_prefix@,$exec_prefix,;t t
   9651  1.1  skrll s,@prefix@,$prefix,;t t
   9652  1.1  skrll s,@program_transform_name@,$program_transform_name,;t t
   9653  1.1  skrll s,@bindir@,$bindir,;t t
   9654  1.1  skrll s,@sbindir@,$sbindir,;t t
   9655  1.1  skrll s,@libexecdir@,$libexecdir,;t t
   9656  1.1  skrll s,@datadir@,$datadir,;t t
   9657  1.1  skrll s,@sysconfdir@,$sysconfdir,;t t
   9658  1.1  skrll s,@sharedstatedir@,$sharedstatedir,;t t
   9659  1.1  skrll s,@localstatedir@,$localstatedir,;t t
   9660  1.1  skrll s,@libdir@,$libdir,;t t
   9661  1.1  skrll s,@includedir@,$includedir,;t t
   9662  1.1  skrll s,@oldincludedir@,$oldincludedir,;t t
   9663  1.1  skrll s,@infodir@,$infodir,;t t
   9664  1.1  skrll s,@mandir@,$mandir,;t t
   9665  1.1  skrll s,@build_alias@,$build_alias,;t t
   9666  1.1  skrll s,@host_alias@,$host_alias,;t t
   9667  1.1  skrll s,@target_alias@,$target_alias,;t t
   9668  1.1  skrll s,@DEFS@,$DEFS,;t t
   9669  1.1  skrll s,@ECHO_C@,$ECHO_C,;t t
   9670  1.1  skrll s,@ECHO_N@,$ECHO_N,;t t
   9671  1.1  skrll s,@ECHO_T@,$ECHO_T,;t t
   9672  1.1  skrll s,@LIBS@,$LIBS,;t t
   9673  1.1  skrll s,@libiberty_topdir@,$libiberty_topdir,;t t
   9674  1.1  skrll s,@MAINT@,$MAINT,;t t
   9675  1.1  skrll s,@NOTMAINT@,$NOTMAINT,;t t
   9676  1.1  skrll s,@MAKEINFO@,$MAKEINFO,;t t
   9677  1.1  skrll s,@BUILD_INFO@,$BUILD_INFO,;t t
   9678  1.1  skrll s,@PERL@,$PERL,;t t
   9679  1.1  skrll s,@HAVE_PERL@,$HAVE_PERL,;t t
   9680  1.1  skrll s,@build@,$build,;t t
   9681  1.1  skrll s,@build_cpu@,$build_cpu,;t t
   9682  1.1  skrll s,@build_vendor@,$build_vendor,;t t
   9683  1.1  skrll s,@build_os@,$build_os,;t t
   9684  1.1  skrll s,@host@,$host,;t t
   9685  1.1  skrll s,@host_cpu@,$host_cpu,;t t
   9686  1.1  skrll s,@host_vendor@,$host_vendor,;t t
   9687  1.1  skrll s,@host_os@,$host_os,;t t
   9688  1.1  skrll s,@AR@,$AR,;t t
   9689  1.1  skrll s,@ac_ct_AR@,$ac_ct_AR,;t t
   9690  1.1  skrll s,@RANLIB@,$RANLIB,;t t
   9691  1.1  skrll s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
   9692  1.1  skrll s,@CC@,$CC,;t t
   9693  1.1  skrll s,@CFLAGS@,$CFLAGS,;t t
   9694  1.1  skrll s,@LDFLAGS@,$LDFLAGS,;t t
   9695  1.1  skrll s,@CPPFLAGS@,$CPPFLAGS,;t t
   9696  1.1  skrll s,@ac_ct_CC@,$ac_ct_CC,;t t
   9697  1.1  skrll s,@EXEEXT@,$EXEEXT,;t t
   9698  1.1  skrll s,@OBJEXT@,$OBJEXT,;t t
   9699  1.1  skrll s,@CPP@,$CPP,;t t
   9700  1.1  skrll s,@ac_libiberty_warn_cflags@,$ac_libiberty_warn_cflags,;t t
   9701  1.1  skrll s,@NO_MINUS_C_MINUS_O@,$NO_MINUS_C_MINUS_O,;t t
   9702  1.1  skrll s,@OUTPUT_OPTION@,$OUTPUT_OPTION,;t t
   9703  1.1  skrll s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
   9704  1.1  skrll s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
   9705  1.1  skrll s,@INSTALL_DATA@,$INSTALL_DATA,;t t
   9706  1.1  skrll s,@PICFLAG@,$PICFLAG,;t t
   9707  1.1  skrll s,@EGREP@,$EGREP,;t t
   9708  1.1  skrll s,@LIBOBJS@,$LIBOBJS,;t t
   9709  1.1  skrll s,@CHECK@,$CHECK,;t t
   9710  1.1  skrll s,@target_header_dir@,$target_header_dir,;t t
   9711  1.1  skrll s,@pexecute@,$pexecute,;t t
   9712  1.1  skrll s,@INSTALL_DEST@,$INSTALL_DEST,;t t
   9713  1.1  skrll s,@datarootdir@,$datarootdir,;t t
   9714  1.1  skrll s,@docdir@,$docdir,;t t
   9715  1.1  skrll s,@htmldir@,$htmldir,;t t
   9716  1.1  skrll s,@LTLIBOBJS@,$LTLIBOBJS,;t t
   9717  1.1  skrll /@host_makefile_frag@/r $host_makefile_frag
   9718  1.1  skrll s,@host_makefile_frag@,,;t t
   9719  1.1  skrll CEOF
   9720  1.1  skrll 
   9721  1.1  skrll _ACEOF
   9722  1.1  skrll 
   9723  1.1  skrll   cat >>$CONFIG_STATUS <<\_ACEOF
   9724  1.1  skrll   # Split the substitutions into bite-sized pieces for seds with
   9725  1.1  skrll   # small command number limits, like on Digital OSF/1 and HP-UX.
   9726  1.1  skrll   ac_max_sed_lines=48
   9727  1.1  skrll   ac_sed_frag=1 # Number of current file.
   9728  1.1  skrll   ac_beg=1 # First line for current file.
   9729  1.1  skrll   ac_end=$ac_max_sed_lines # Line after last line for current file.
   9730  1.1  skrll   ac_more_lines=:
   9731  1.1  skrll   ac_sed_cmds=
   9732  1.1  skrll   while $ac_more_lines; do
   9733  1.1  skrll     if test $ac_beg -gt 1; then
   9734  1.1  skrll       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
   9735  1.1  skrll     else
   9736  1.1  skrll       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
   9737  1.1  skrll     fi
   9738  1.1  skrll     if test ! -s $tmp/subs.frag; then
   9739  1.1  skrll       ac_more_lines=false
   9740  1.1  skrll     else
   9741  1.1  skrll       # The purpose of the label and of the branching condition is to
   9742  1.1  skrll       # speed up the sed processing (if there are no `@' at all, there
   9743  1.1  skrll       # is no need to browse any of the substitutions).
   9744  1.1  skrll       # These are the two extra sed commands mentioned above.
   9745  1.1  skrll       (echo ':t
   9746  1.1  skrll   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
   9747  1.1  skrll       if test -z "$ac_sed_cmds"; then
   9748  1.1  skrll 	ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
   9749  1.1  skrll       else
   9750  1.1  skrll 	ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
   9751  1.1  skrll       fi
   9752  1.1  skrll       ac_sed_frag=`expr $ac_sed_frag + 1`
   9753  1.1  skrll       ac_beg=$ac_end
   9754  1.1  skrll       ac_end=`expr $ac_end + $ac_max_sed_lines`
   9755  1.1  skrll     fi
   9756  1.1  skrll   done
   9757  1.1  skrll   if test -z "$ac_sed_cmds"; then
   9758  1.1  skrll     ac_sed_cmds=cat
   9759  1.1  skrll   fi
   9760  1.1  skrll fi # test -n "$CONFIG_FILES"
   9761  1.1  skrll 
   9762  1.1  skrll _ACEOF
   9763  1.1  skrll cat >>$CONFIG_STATUS <<\_ACEOF
   9764  1.1  skrll for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
   9765  1.1  skrll   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
   9766  1.1  skrll   case $ac_file in
   9767  1.1  skrll   - | *:- | *:-:* ) # input from stdin
   9768  1.1  skrll 	cat >$tmp/stdin
   9769  1.1  skrll 	ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
   9770  1.1  skrll 	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
   9771  1.1  skrll   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
   9772  1.1  skrll 	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
   9773  1.1  skrll   * )   ac_file_in=$ac_file.in ;;
   9774  1.1  skrll   esac
   9775  1.1  skrll 
   9776  1.1  skrll   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
   9777  1.1  skrll   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
   9778  1.1  skrll $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
   9779  1.1  skrll 	 X"$ac_file" : 'X\(//\)[^/]' \| \
   9780  1.1  skrll 	 X"$ac_file" : 'X\(//\)$' \| \
   9781  1.1  skrll 	 X"$ac_file" : 'X\(/\)' \| \
   9782  1.1  skrll 	 .     : '\(.\)' 2>/dev/null ||
   9783  1.1  skrll echo X"$ac_file" |
   9784  1.1  skrll     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
   9785  1.1  skrll   	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
   9786  1.1  skrll   	  /^X\(\/\/\)$/{ s//\1/; q; }
   9787  1.1  skrll   	  /^X\(\/\).*/{ s//\1/; q; }
   9788  1.1  skrll   	  s/.*/./; q'`
   9789  1.1  skrll   { if $as_mkdir_p; then
   9790  1.1  skrll     mkdir -p "$ac_dir"
   9791  1.1  skrll   else
   9792  1.1  skrll     as_dir="$ac_dir"
   9793  1.1  skrll     as_dirs=
   9794  1.1  skrll     while test ! -d "$as_dir"; do
   9795  1.1  skrll       as_dirs="$as_dir $as_dirs"
   9796  1.1  skrll       as_dir=`(dirname "$as_dir") 2>/dev/null ||
   9797  1.1  skrll $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
   9798  1.1  skrll 	 X"$as_dir" : 'X\(//\)[^/]' \| \
   9799  1.1  skrll 	 X"$as_dir" : 'X\(//\)$' \| \
   9800  1.1  skrll 	 X"$as_dir" : 'X\(/\)' \| \
   9801  1.1  skrll 	 .     : '\(.\)' 2>/dev/null ||
   9802  1.1  skrll echo X"$as_dir" |
   9803  1.1  skrll     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
   9804  1.1  skrll   	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
   9805  1.1  skrll   	  /^X\(\/\/\)$/{ s//\1/; q; }
   9806  1.1  skrll   	  /^X\(\/\).*/{ s//\1/; q; }
   9807  1.1  skrll   	  s/.*/./; q'`
   9808  1.1  skrll     done
   9809  1.1  skrll     test ! -n "$as_dirs" || mkdir $as_dirs
   9810  1.1  skrll   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
   9811  1.1  skrll echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
   9812  1.1  skrll    { (exit 1); exit 1; }; }; }
   9813  1.1  skrll 
   9814  1.1  skrll   ac_builddir=.
   9815  1.1  skrll 
   9816  1.1  skrll if test "$ac_dir" != .; then
   9817  1.1  skrll   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
   9818  1.1  skrll   # A "../" for each directory in $ac_dir_suffix.
   9819  1.1  skrll   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
   9820  1.1  skrll else
   9821  1.1  skrll   ac_dir_suffix= ac_top_builddir=
   9822  1.1  skrll fi
   9823  1.1  skrll 
   9824  1.1  skrll case $srcdir in
   9825  1.1  skrll   .)  # No --srcdir option.  We are building in place.
   9826  1.1  skrll     ac_srcdir=.
   9827  1.1  skrll     if test -z "$ac_top_builddir"; then
   9828  1.1  skrll        ac_top_srcdir=.
   9829  1.1  skrll     else
   9830  1.1  skrll        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
   9831  1.1  skrll     fi ;;
   9832  1.1  skrll   [\\/]* | ?:[\\/]* )  # Absolute path.
   9833  1.1  skrll     ac_srcdir=$srcdir$ac_dir_suffix;
   9834  1.1  skrll     ac_top_srcdir=$srcdir ;;
   9835  1.1  skrll   *) # Relative path.
   9836  1.1  skrll     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
   9837  1.1  skrll     ac_top_srcdir=$ac_top_builddir$srcdir ;;
   9838  1.1  skrll esac
   9839  1.1  skrll 
   9840  1.1  skrll # Do not use `cd foo && pwd` to compute absolute paths, because
   9841  1.1  skrll # the directories may not exist.
   9842  1.1  skrll case `pwd` in
   9843  1.1  skrll .) ac_abs_builddir="$ac_dir";;
   9844  1.1  skrll *)
   9845  1.1  skrll   case "$ac_dir" in
   9846  1.1  skrll   .) ac_abs_builddir=`pwd`;;
   9847  1.1  skrll   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
   9848  1.1  skrll   *) ac_abs_builddir=`pwd`/"$ac_dir";;
   9849  1.1  skrll   esac;;
   9850  1.1  skrll esac
   9851  1.1  skrll case $ac_abs_builddir in
   9852  1.1  skrll .) ac_abs_top_builddir=${ac_top_builddir}.;;
   9853  1.1  skrll *)
   9854  1.1  skrll   case ${ac_top_builddir}. in
   9855  1.1  skrll   .) ac_abs_top_builddir=$ac_abs_builddir;;
   9856  1.1  skrll   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
   9857  1.1  skrll   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
   9858  1.1  skrll   esac;;
   9859  1.1  skrll esac
   9860  1.1  skrll case $ac_abs_builddir in
   9861  1.1  skrll .) ac_abs_srcdir=$ac_srcdir;;
   9862  1.1  skrll *)
   9863  1.1  skrll   case $ac_srcdir in
   9864  1.1  skrll   .) ac_abs_srcdir=$ac_abs_builddir;;
   9865  1.1  skrll   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
   9866  1.1  skrll   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
   9867  1.1  skrll   esac;;
   9868  1.1  skrll esac
   9869  1.1  skrll case $ac_abs_builddir in
   9870  1.1  skrll .) ac_abs_top_srcdir=$ac_top_srcdir;;
   9871  1.1  skrll *)
   9872  1.1  skrll   case $ac_top_srcdir in
   9873  1.1  skrll   .) ac_abs_top_srcdir=$ac_abs_builddir;;
   9874  1.1  skrll   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
   9875  1.1  skrll   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
   9876  1.1  skrll   esac;;
   9877  1.1  skrll esac
   9878  1.1  skrll 
   9879  1.1  skrll 
   9880  1.1  skrll   case $INSTALL in
   9881  1.1  skrll   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
   9882  1.1  skrll   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
   9883  1.1  skrll   esac
   9884  1.1  skrll 
   9885  1.1  skrll   if test x"$ac_file" != x-; then
   9886  1.1  skrll     { echo "$as_me:$LINENO: creating $ac_file" >&5
   9887  1.1  skrll echo "$as_me: creating $ac_file" >&6;}
   9888  1.1  skrll     rm -f "$ac_file"
   9889  1.1  skrll   fi
   9890  1.1  skrll   # Let's still pretend it is `configure' which instantiates (i.e., don't
   9891  1.1  skrll   # use $as_me), people would be surprised to read:
   9892  1.1  skrll   #    /* config.h.  Generated by config.status.  */
   9893  1.1  skrll   if test x"$ac_file" = x-; then
   9894  1.1  skrll     configure_input=
   9895  1.1  skrll   else
   9896  1.1  skrll     configure_input="$ac_file.  "
   9897  1.1  skrll   fi
   9898  1.1  skrll   configure_input=$configure_input"Generated from `echo $ac_file_in |
   9899  1.1  skrll 				     sed 's,.*/,,'` by configure."
   9900  1.1  skrll 
   9901  1.1  skrll   # First look for the input files in the build tree, otherwise in the
   9902  1.1  skrll   # src tree.
   9903  1.1  skrll   ac_file_inputs=`IFS=:
   9904  1.1  skrll     for f in $ac_file_in; do
   9905  1.1  skrll       case $f in
   9906  1.1  skrll       -) echo $tmp/stdin ;;
   9907  1.1  skrll       [\\/$]*)
   9908  1.1  skrll 	 # Absolute (can't be DOS-style, as IFS=:)
   9909  1.1  skrll 	 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
   9910  1.1  skrll echo "$as_me: error: cannot find input file: $f" >&2;}
   9911  1.1  skrll    { (exit 1); exit 1; }; }
   9912  1.1  skrll 	 echo "$f";;
   9913  1.1  skrll       *) # Relative
   9914  1.1  skrll 	 if test -f "$f"; then
   9915  1.1  skrll 	   # Build tree
   9916  1.1  skrll 	   echo "$f"
   9917  1.1  skrll 	 elif test -f "$srcdir/$f"; then
   9918  1.1  skrll 	   # Source tree
   9919  1.1  skrll 	   echo "$srcdir/$f"
   9920  1.1  skrll 	 else
   9921  1.1  skrll 	   # /dev/null tree
   9922  1.1  skrll 	   { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
   9923  1.1  skrll echo "$as_me: error: cannot find input file: $f" >&2;}
   9924  1.1  skrll    { (exit 1); exit 1; }; }
   9925  1.1  skrll 	 fi;;
   9926  1.1  skrll       esac
   9927  1.1  skrll     done` || { (exit 1); exit 1; }
   9928  1.1  skrll _ACEOF
   9929  1.1  skrll cat >>$CONFIG_STATUS <<_ACEOF
   9930  1.1  skrll   sed "$ac_vpsub
   9931  1.1  skrll $extrasub
   9932  1.1  skrll _ACEOF
   9933  1.1  skrll cat >>$CONFIG_STATUS <<\_ACEOF
   9934  1.1  skrll :t
   9935  1.1  skrll /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
   9936  1.1  skrll s,@configure_input@,$configure_input,;t t
   9937  1.1  skrll s,@srcdir@,$ac_srcdir,;t t
   9938  1.1  skrll s,@abs_srcdir@,$ac_abs_srcdir,;t t
   9939  1.1  skrll s,@top_srcdir@,$ac_top_srcdir,;t t
   9940  1.1  skrll s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
   9941  1.1  skrll s,@builddir@,$ac_builddir,;t t
   9942  1.1  skrll s,@abs_builddir@,$ac_abs_builddir,;t t
   9943  1.1  skrll s,@top_builddir@,$ac_top_builddir,;t t
   9944  1.1  skrll s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
   9945  1.1  skrll s,@INSTALL@,$ac_INSTALL,;t t
   9946  1.1  skrll " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
   9947  1.1  skrll   rm -f $tmp/stdin
   9948  1.1  skrll   if test x"$ac_file" != x-; then
   9949  1.1  skrll     mv $tmp/out $ac_file
   9950  1.1  skrll   else
   9951  1.1  skrll     cat $tmp/out
   9952  1.1  skrll     rm -f $tmp/out
   9953  1.1  skrll   fi
   9954  1.1  skrll 
   9955  1.1  skrll done
   9956  1.1  skrll _ACEOF
   9957  1.1  skrll cat >>$CONFIG_STATUS <<\_ACEOF
   9958  1.1  skrll 
   9959  1.1  skrll #
   9960  1.1  skrll # CONFIG_HEADER section.
   9961  1.1  skrll #
   9962  1.1  skrll 
   9963  1.1  skrll # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
   9964  1.1  skrll # NAME is the cpp macro being defined and VALUE is the value it is being given.
   9965  1.1  skrll #
   9966  1.1  skrll # ac_d sets the value in "#define NAME VALUE" lines.
   9967  1.1  skrll ac_dA='s,^\([	 ]*\)#\([	 ]*define[	 ][	 ]*\)'
   9968  1.1  skrll ac_dB='[	 ].*$,\1#\2'
   9969  1.1  skrll ac_dC=' '
   9970  1.1  skrll ac_dD=',;t'
   9971  1.1  skrll # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
   9972  1.1  skrll ac_uA='s,^\([	 ]*\)#\([	 ]*\)undef\([	 ][	 ]*\)'
   9973  1.1  skrll ac_uB='$,\1#\2define\3'
   9974  1.1  skrll ac_uC=' '
   9975  1.1  skrll ac_uD=',;t'
   9976  1.1  skrll 
   9977  1.1  skrll for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
   9978  1.1  skrll   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
   9979  1.1  skrll   case $ac_file in
   9980  1.1  skrll   - | *:- | *:-:* ) # input from stdin
   9981  1.1  skrll 	cat >$tmp/stdin
   9982  1.1  skrll 	ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
   9983  1.1  skrll 	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
   9984  1.1  skrll   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
   9985  1.1  skrll 	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
   9986  1.1  skrll   * )   ac_file_in=$ac_file.in ;;
   9987  1.1  skrll   esac
   9988  1.1  skrll 
   9989  1.1  skrll   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
   9990  1.1  skrll echo "$as_me: creating $ac_file" >&6;}
   9991  1.1  skrll 
   9992  1.1  skrll   # First look for the input files in the build tree, otherwise in the
   9993  1.1  skrll   # src tree.
   9994  1.1  skrll   ac_file_inputs=`IFS=:
   9995  1.1  skrll     for f in $ac_file_in; do
   9996  1.1  skrll       case $f in
   9997  1.1  skrll       -) echo $tmp/stdin ;;
   9998  1.1  skrll       [\\/$]*)
   9999  1.1  skrll 	 # Absolute (can't be DOS-style, as IFS=:)
   10000  1.1  skrll 	 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
   10001  1.1  skrll echo "$as_me: error: cannot find input file: $f" >&2;}
   10002  1.1  skrll    { (exit 1); exit 1; }; }
   10003  1.1  skrll 	 # Do quote $f, to prevent DOS paths from being IFS'd.
   10004  1.1  skrll 	 echo "$f";;
   10005  1.1  skrll       *) # Relative
   10006  1.1  skrll 	 if test -f "$f"; then
   10007  1.1  skrll 	   # Build tree
   10008  1.1  skrll 	   echo "$f"
   10009  1.1  skrll 	 elif test -f "$srcdir/$f"; then
   10010  1.1  skrll 	   # Source tree
   10011  1.1  skrll 	   echo "$srcdir/$f"
   10012  1.1  skrll 	 else
   10013  1.1  skrll 	   # /dev/null tree
   10014  1.1  skrll 	   { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
   10015  1.1  skrll echo "$as_me: error: cannot find input file: $f" >&2;}
   10016  1.1  skrll    { (exit 1); exit 1; }; }
   10017  1.1  skrll 	 fi;;
   10018  1.1  skrll       esac
   10019  1.1  skrll     done` || { (exit 1); exit 1; }
   10020  1.1  skrll   # Remove the trailing spaces.
   10021  1.1  skrll   sed 's/[	 ]*$//' $ac_file_inputs >$tmp/in
   10022  1.1  skrll 
   10023  1.1  skrll _ACEOF
   10024  1.1  skrll 
   10025  1.1  skrll # Transform confdefs.h into two sed scripts, `conftest.defines' and
   10026  1.1  skrll # `conftest.undefs', that substitutes the proper values into
   10027  1.1  skrll # config.h.in to produce config.h.  The first handles `#define'
   10028  1.1  skrll # templates, and the second `#undef' templates.
   10029  1.1  skrll # And first: Protect against being on the right side of a sed subst in
   10030  1.1  skrll # config.status.  Protect against being in an unquoted here document
   10031  1.1  skrll # in config.status.
   10032  1.1  skrll rm -f conftest.defines conftest.undefs
   10033  1.1  skrll # Using a here document instead of a string reduces the quoting nightmare.
   10034  1.1  skrll # Putting comments in sed scripts is not portable.
   10035  1.1  skrll #
   10036  1.1  skrll # `end' is used to avoid that the second main sed command (meant for
   10037  1.1  skrll # 0-ary CPP macros) applies to n-ary macro definitions.
   10038  1.1  skrll # See the Autoconf documentation for `clear'.
   10039  1.1  skrll cat >confdef2sed.sed <<\_ACEOF
   10040  1.1  skrll s/[\\&,]/\\&/g
   10041  1.1  skrll s,[\\$`],\\&,g
   10042  1.1  skrll t clear
   10043  1.1  skrll : clear
   10044  1.1  skrll s,^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 (][^	 (]*\)\(([^)]*)\)[	 ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
   10045  1.1  skrll t end
   10046  1.1  skrll s,^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 ][^	 ]*\)[	 ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
   10047  1.1  skrll : end
   10048  1.1  skrll _ACEOF
   10049  1.1  skrll # If some macros were called several times there might be several times
   10050  1.1  skrll # the same #defines, which is useless.  Nevertheless, we may not want to
   10051  1.1  skrll # sort them, since we want the *last* AC-DEFINE to be honored.
   10052  1.1  skrll uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
   10053  1.1  skrll sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
   10054  1.1  skrll rm -f confdef2sed.sed
   10055  1.1  skrll 
   10056  1.1  skrll # This sed command replaces #undef with comments.  This is necessary, for
   10057  1.1  skrll # example, in the case of _POSIX_SOURCE, which is predefined and required
   10058  1.1  skrll # on some systems where configure will not decide to define it.
   10059  1.1  skrll cat >>conftest.undefs <<\_ACEOF
   10060  1.1  skrll s,^[	 ]*#[	 ]*undef[	 ][	 ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
   10061  1.1  skrll _ACEOF
   10062  1.1  skrll 
   10063  1.1  skrll # Break up conftest.defines because some shells have a limit on the size
   10064  1.1  skrll # of here documents, and old seds have small limits too (100 cmds).
   10065  1.1  skrll echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
   10066  1.1  skrll echo '  if grep "^[	 ]*#[	 ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
   10067  1.1  skrll echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
   10068  1.1  skrll echo '  :' >>$CONFIG_STATUS
   10069  1.1  skrll rm -f conftest.tail
   10070  1.1  skrll while grep . conftest.defines >/dev/null
   10071  1.1  skrll do
   10072  1.1  skrll   # Write a limited-size here document to $tmp/defines.sed.
   10073  1.1  skrll   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
   10074  1.1  skrll   # Speed up: don't consider the non `#define' lines.
   10075  1.1  skrll   echo '/^[	 ]*#[	 ]*define/!b' >>$CONFIG_STATUS
   10076  1.1  skrll   # Work around the forget-to-reset-the-flag bug.
   10077  1.1  skrll   echo 't clr' >>$CONFIG_STATUS
   10078  1.1  skrll   echo ': clr' >>$CONFIG_STATUS
   10079  1.1  skrll   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
   10080  1.1  skrll   echo 'CEOF
   10081  1.1  skrll   sed -f $tmp/defines.sed $tmp/in >$tmp/out
   10082  1.1  skrll   rm -f $tmp/in
   10083  1.1  skrll   mv $tmp/out $tmp/in
   10084  1.1  skrll ' >>$CONFIG_STATUS
   10085  1.1  skrll   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
   10086  1.1  skrll   rm -f conftest.defines
   10087  1.1  skrll   mv conftest.tail conftest.defines
   10088  1.1  skrll done
   10089  1.1  skrll rm -f conftest.defines
   10090  1.1  skrll echo '  fi # grep' >>$CONFIG_STATUS
   10091  1.1  skrll echo >>$CONFIG_STATUS
   10092  1.1  skrll 
   10093  1.1  skrll # Break up conftest.undefs because some shells have a limit on the size
   10094  1.1  skrll # of here documents, and old seds have small limits too (100 cmds).
   10095  1.1  skrll echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
   10096  1.1  skrll rm -f conftest.tail
   10097  1.1  skrll while grep . conftest.undefs >/dev/null
   10098  1.1  skrll do
   10099  1.1  skrll   # Write a limited-size here document to $tmp/undefs.sed.
   10100  1.1  skrll   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
   10101  1.1  skrll   # Speed up: don't consider the non `#undef'
   10102  1.1  skrll   echo '/^[	 ]*#[	 ]*undef/!b' >>$CONFIG_STATUS
   10103  1.1  skrll   # Work around the forget-to-reset-the-flag bug.
   10104  1.1  skrll   echo 't clr' >>$CONFIG_STATUS
   10105  1.1  skrll   echo ': clr' >>$CONFIG_STATUS
   10106  1.1  skrll   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
   10107  1.1  skrll   echo 'CEOF
   10108  1.1  skrll   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
   10109  1.1  skrll   rm -f $tmp/in
   10110  1.1  skrll   mv $tmp/out $tmp/in
   10111  1.1  skrll ' >>$CONFIG_STATUS
   10112  1.1  skrll   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
   10113  1.1  skrll   rm -f conftest.undefs
   10114  1.1  skrll   mv conftest.tail conftest.undefs
   10115  1.1  skrll done
   10116  1.1  skrll rm -f conftest.undefs
   10117  1.1  skrll 
   10118  1.1  skrll cat >>$CONFIG_STATUS <<\_ACEOF
   10119  1.1  skrll   # Let's still pretend it is `configure' which instantiates (i.e., don't
   10120  1.1  skrll   # use $as_me), people would be surprised to read:
   10121  1.1  skrll   #    /* config.h.  Generated by config.status.  */
   10122  1.1  skrll   if test x"$ac_file" = x-; then
   10123  1.1  skrll     echo "/* Generated by configure.  */" >$tmp/config.h
   10124  1.1  skrll   else
   10125  1.1  skrll     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
   10126  1.1  skrll   fi
   10127  1.1  skrll   cat $tmp/in >>$tmp/config.h
   10128  1.1  skrll   rm -f $tmp/in
   10129  1.1  skrll   if test x"$ac_file" != x-; then
   10130  1.1  skrll     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
   10131  1.1  skrll       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
   10132  1.1  skrll echo "$as_me: $ac_file is unchanged" >&6;}
   10133  1.1  skrll     else
   10134  1.1  skrll       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
   10135  1.1  skrll $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
   10136  1.1  skrll 	 X"$ac_file" : 'X\(//\)[^/]' \| \
   10137  1.1  skrll 	 X"$ac_file" : 'X\(//\)$' \| \
   10138  1.1  skrll 	 X"$ac_file" : 'X\(/\)' \| \
   10139  1.1  skrll 	 .     : '\(.\)' 2>/dev/null ||
   10140  1.1  skrll echo X"$ac_file" |
   10141  1.1  skrll     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
   10142  1.1  skrll   	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
   10143  1.1  skrll   	  /^X\(\/\/\)$/{ s//\1/; q; }
   10144  1.1  skrll   	  /^X\(\/\).*/{ s//\1/; q; }
   10145  1.1  skrll   	  s/.*/./; q'`
   10146  1.1  skrll       { if $as_mkdir_p; then
   10147  1.1  skrll     mkdir -p "$ac_dir"
   10148  1.1  skrll   else
   10149  1.1  skrll     as_dir="$ac_dir"
   10150  1.1  skrll     as_dirs=
   10151  1.1  skrll     while test ! -d "$as_dir"; do
   10152  1.1  skrll       as_dirs="$as_dir $as_dirs"
   10153  1.1  skrll       as_dir=`(dirname "$as_dir") 2>/dev/null ||
   10154  1.1  skrll $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
   10155  1.1  skrll 	 X"$as_dir" : 'X\(//\)[^/]' \| \
   10156  1.1  skrll 	 X"$as_dir" : 'X\(//\)$' \| \
   10157  1.1  skrll 	 X"$as_dir" : 'X\(/\)' \| \
   10158  1.1  skrll 	 .     : '\(.\)' 2>/dev/null ||
   10159  1.1  skrll echo X"$as_dir" |
   10160  1.1  skrll     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
   10161  1.1  skrll   	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
   10162  1.1  skrll   	  /^X\(\/\/\)$/{ s//\1/; q; }
   10163  1.1  skrll   	  /^X\(\/\).*/{ s//\1/; q; }
   10164  1.1  skrll   	  s/.*/./; q'`
   10165  1.1  skrll     done
   10166  1.1  skrll     test ! -n "$as_dirs" || mkdir $as_dirs
   10167  1.1  skrll   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
   10168  1.1  skrll echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
   10169  1.1  skrll    { (exit 1); exit 1; }; }; }
   10170  1.1  skrll 
   10171  1.1  skrll       rm -f $ac_file
   10172  1.1  skrll       mv $tmp/config.h $ac_file
   10173  1.1  skrll     fi
   10174  1.1  skrll   else
   10175  1.1  skrll     cat $tmp/config.h
   10176  1.1  skrll     rm -f $tmp/config.h
   10177  1.1  skrll   fi
   10178  1.1  skrll done
   10179  1.1  skrll _ACEOF
   10180  1.1  skrll cat >>$CONFIG_STATUS <<\_ACEOF
   10181  1.1  skrll 
   10182  1.1  skrll #
   10183  1.1  skrll # CONFIG_COMMANDS section.
   10184  1.1  skrll #
   10185  1.1  skrll for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
   10186  1.1  skrll   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
   10187  1.1  skrll   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
   10188  1.1  skrll   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
   10189  1.1  skrll $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
   10190  1.1  skrll 	 X"$ac_dest" : 'X\(//\)[^/]' \| \
   10191  1.1  skrll 	 X"$ac_dest" : 'X\(//\)$' \| \
   10192  1.1  skrll 	 X"$ac_dest" : 'X\(/\)' \| \
   10193  1.1  skrll 	 .     : '\(.\)' 2>/dev/null ||
   10194  1.1  skrll echo X"$ac_dest" |
   10195  1.1  skrll     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
   10196  1.1  skrll   	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
   10197  1.1  skrll   	  /^X\(\/\/\)$/{ s//\1/; q; }
   10198  1.1  skrll   	  /^X\(\/\).*/{ s//\1/; q; }
   10199  1.1  skrll   	  s/.*/./; q'`
   10200  1.1  skrll   { if $as_mkdir_p; then
   10201  1.1  skrll     mkdir -p "$ac_dir"
   10202  1.1  skrll   else
   10203  1.1  skrll     as_dir="$ac_dir"
   10204  1.1  skrll     as_dirs=
   10205  1.1  skrll     while test ! -d "$as_dir"; do
   10206  1.1  skrll       as_dirs="$as_dir $as_dirs"
   10207  1.1  skrll       as_dir=`(dirname "$as_dir") 2>/dev/null ||
   10208  1.1  skrll $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
   10209  1.1  skrll 	 X"$as_dir" : 'X\(//\)[^/]' \| \
   10210  1.1  skrll 	 X"$as_dir" : 'X\(//\)$' \| \
   10211  1.1  skrll 	 X"$as_dir" : 'X\(/\)' \| \
   10212  1.1  skrll 	 .     : '\(.\)' 2>/dev/null ||
   10213  1.1  skrll echo X"$as_dir" |
   10214  1.1  skrll     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
   10215  1.1  skrll   	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
   10216  1.1  skrll   	  /^X\(\/\/\)$/{ s//\1/; q; }
   10217  1.1  skrll   	  /^X\(\/\).*/{ s//\1/; q; }
   10218  1.1  skrll   	  s/.*/./; q'`
   10219  1.1  skrll     done
   10220  1.1  skrll     test ! -n "$as_dirs" || mkdir $as_dirs
   10221  1.1  skrll   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
   10222  1.1  skrll echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
   10223  1.1  skrll    { (exit 1); exit 1; }; }; }
   10224  1.1  skrll 
   10225  1.1  skrll   ac_builddir=.
   10226  1.1  skrll 
   10227  1.1  skrll if test "$ac_dir" != .; then
   10228  1.1  skrll   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
   10229  1.1  skrll   # A "../" for each directory in $ac_dir_suffix.
   10230  1.1  skrll   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
   10231  1.1  skrll else
   10232  1.1  skrll   ac_dir_suffix= ac_top_builddir=
   10233  1.1  skrll fi
   10234  1.1  skrll 
   10235  1.1  skrll case $srcdir in
   10236  1.1  skrll   .)  # No --srcdir option.  We are building in place.
   10237  1.1  skrll     ac_srcdir=.
   10238  1.1  skrll     if test -z "$ac_top_builddir"; then
   10239  1.1  skrll        ac_top_srcdir=.
   10240  1.1  skrll     else
   10241  1.1  skrll        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
   10242  1.1  skrll     fi ;;
   10243  1.1  skrll   [\\/]* | ?:[\\/]* )  # Absolute path.
   10244  1.1  skrll     ac_srcdir=$srcdir$ac_dir_suffix;
   10245  1.1  skrll     ac_top_srcdir=$srcdir ;;
   10246  1.1  skrll   *) # Relative path.
   10247  1.1  skrll     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
   10248  1.1  skrll     ac_top_srcdir=$ac_top_builddir$srcdir ;;
   10249  1.1  skrll esac
   10250  1.1  skrll 
   10251  1.1  skrll # Do not use `cd foo && pwd` to compute absolute paths, because
   10252  1.1  skrll # the directories may not exist.
   10253  1.1  skrll case `pwd` in
   10254  1.1  skrll .) ac_abs_builddir="$ac_dir";;
   10255  1.1  skrll *)
   10256  1.1  skrll   case "$ac_dir" in
   10257  1.1  skrll   .) ac_abs_builddir=`pwd`;;
   10258  1.1  skrll   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
   10259  1.1  skrll   *) ac_abs_builddir=`pwd`/"$ac_dir";;
   10260  1.1  skrll   esac;;
   10261  1.1  skrll esac
   10262  1.1  skrll case $ac_abs_builddir in
   10263  1.1  skrll .) ac_abs_top_builddir=${ac_top_builddir}.;;
   10264  1.1  skrll *)
   10265  1.1  skrll   case ${ac_top_builddir}. in
   10266  1.1  skrll   .) ac_abs_top_builddir=$ac_abs_builddir;;
   10267  1.1  skrll   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
   10268  1.1  skrll   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
   10269  1.1  skrll   esac;;
   10270  1.1  skrll esac
   10271  1.1  skrll case $ac_abs_builddir in
   10272  1.1  skrll .) ac_abs_srcdir=$ac_srcdir;;
   10273  1.1  skrll *)
   10274  1.1  skrll   case $ac_srcdir in
   10275  1.1  skrll   .) ac_abs_srcdir=$ac_abs_builddir;;
   10276  1.1  skrll   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
   10277  1.1  skrll   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
   10278  1.1  skrll   esac;;
   10279  1.1  skrll esac
   10280  1.1  skrll case $ac_abs_builddir in
   10281  1.1  skrll .) ac_abs_top_srcdir=$ac_top_srcdir;;
   10282  1.1  skrll *)
   10283  1.1  skrll   case $ac_top_srcdir in
   10284  1.1  skrll   .) ac_abs_top_srcdir=$ac_abs_builddir;;
   10285  1.1  skrll   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
   10286  1.1  skrll   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
   10287  1.1  skrll   esac;;
   10288  1.1  skrll esac
   10289  1.1  skrll 
   10290  1.1  skrll 
   10291  1.1  skrll   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
   10292  1.1  skrll echo "$as_me: executing $ac_dest commands" >&6;}
   10293  1.1  skrll   case $ac_dest in
   10294  1.1  skrll     default ) test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
   10295  1.1  skrll if test -n "$CONFIG_FILES"; then
   10296  1.1  skrll   if test -n "${with_target_subdir}"; then
   10297  1.1  skrll     # FIXME: We shouldn't need to set ac_file
   10298  1.1  skrll     ac_file=Makefile
   10299  1.1  skrll     LD="${ORIGINAL_LD_FOR_MULTILIBS}"
   10300  1.1  skrll     . ${libiberty_topdir}/config-ml.in
   10301  1.1  skrll   fi
   10302  1.1  skrll fi ;;
   10303  1.1  skrll   esac
   10304  1.1  skrll done
   10305  1.1  skrll _ACEOF
   10306  1.1  skrll 
   10307  1.1  skrll cat >>$CONFIG_STATUS <<\_ACEOF
   10308  1.1  skrll 
   10309  1.1  skrll { (exit 0); exit 0; }
   10310  1.1  skrll _ACEOF
   10311  1.1  skrll chmod +x $CONFIG_STATUS
   10312  1.1  skrll ac_clean_files=$ac_clean_files_save
   10313  1.1  skrll 
   10314  1.1  skrll 
   10315  1.1  skrll # configure is writing to config.log, and then calls config.status.
   10316  1.1  skrll # config.status does its own redirection, appending to config.log.
   10317  1.1  skrll # Unfortunately, on DOS this fails, as config.log is still kept open
   10318  1.1  skrll # by configure, so config.status won't be able to write to it; its
   10319  1.1  skrll # output is simply discarded.  So we exec the FD to /dev/null,
   10320  1.1  skrll # effectively closing config.log, so it can be properly (re)opened and
   10321  1.1  skrll # appended to by config.status.  When coming back to configure, we
   10322  1.1  skrll # need to make the FD available again.
   10323  1.1  skrll if test "$no_create" != yes; then
   10324  1.1  skrll   ac_cs_success=:
   10325  1.1  skrll   ac_config_status_args=
   10326  1.1  skrll   test "$silent" = yes &&
   10327  1.1  skrll     ac_config_status_args="$ac_config_status_args --quiet"
   10328  1.1  skrll   exec 5>/dev/null
   10329  1.1  skrll   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
   10330  1.1  skrll   exec 5>>config.log
   10331  1.1  skrll   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
   10332  1.1  skrll   # would make configure fail if this is the last instruction.
   10333  1.1  skrll   $ac_cs_success || { (exit 1); exit 1; }
   10334  1.1  skrll fi
   10335  1.1  skrll 
   10336