1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.59.
4#
5# Copyright (C) 2003 Free Software Foundation, Inc.
6# This configure script is free software; the Free Software Foundation
7# gives unlimited permission to copy, distribute and modify it.
8## --------------------- ##
9## M4sh Initialization.  ##
10## --------------------- ##
11
12# Be Bourne compatible
13if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14  emulate sh
15  NULLCMD=:
16  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17  # is contrary to our usage.  Disable this feature.
18  alias -g '${1+"$@"}'='"$@"'
19elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20  set -o posix
21fi
22DUALCASE=1; export DUALCASE # for MKS sh
23
24# Support unset when possible.
25if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26  as_unset=unset
27else
28  as_unset=false
29fi
30
31
32# Work around bugs in pre-3.0 UWIN ksh.
33$as_unset ENV MAIL MAILPATH
34PS1='$ '
35PS2='> '
36PS4='+ '
37
38# NLS nuisances.
39for as_var in \
40  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42  LC_TELEPHONE LC_TIME
43do
44  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45    eval $as_var=C; export $as_var
46  else
47    $as_unset $as_var
48  fi
49done
50
51# Required to use basename.
52if expr a : '\(a\)' >/dev/null 2>&1; then
53  as_expr=expr
54else
55  as_expr=false
56fi
57
58if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59  as_basename=basename
60else
61  as_basename=false
62fi
63
64
65# Name of the executable.
66as_me=`$as_basename "$0" ||
67$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68	 X"$0" : 'X\(//\)$' \| \
69	 X"$0" : 'X\(/\)$' \| \
70	 .     : '\(.\)' 2>/dev/null ||
71echo X/"$0" |
72    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73  	  /^X\/\(\/\/\)$/{ s//\1/; q; }
74  	  /^X\/\(\/\).*/{ s//\1/; q; }
75  	  s/.*/./; q'`
76
77
78# PATH needs CR, and LINENO needs CR and PATH.
79# Avoid depending upon Character Ranges.
80as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83as_cr_digits='0123456789'
84as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86# The user is always right.
87if test "${PATH_SEPARATOR+set}" != set; then
88  echo "#! /bin/sh" >conf$$.sh
89  echo  "exit 0"   >>conf$$.sh
90  chmod +x conf$$.sh
91  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92    PATH_SEPARATOR=';'
93  else
94    PATH_SEPARATOR=:
95  fi
96  rm -f conf$$.sh
97fi
98
99
100  as_lineno_1=$LINENO
101  as_lineno_2=$LINENO
102  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103  test "x$as_lineno_1" != "x$as_lineno_2" &&
104  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
105  # Find who we are.  Look in the path if we contain no path at all
106  # relative or not.
107  case $0 in
108    *[\\/]* ) as_myself=$0 ;;
109    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110for as_dir in $PATH
111do
112  IFS=$as_save_IFS
113  test -z "$as_dir" && as_dir=.
114  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115done
116
117       ;;
118  esac
119  # We did not find ourselves, most probably we were run as `sh COMMAND'
120  # in which case we are not to be found in the path.
121  if test "x$as_myself" = x; then
122    as_myself=$0
123  fi
124  if test ! -f "$as_myself"; then
125    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126   { (exit 1); exit 1; }; }
127  fi
128  case $CONFIG_SHELL in
129  '')
130    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132do
133  IFS=$as_save_IFS
134  test -z "$as_dir" && as_dir=.
135  for as_base in sh bash ksh sh5; do
136	 case $as_dir in
137	 /*)
138	   if ("$as_dir/$as_base" -c '
139  as_lineno_1=$LINENO
140  as_lineno_2=$LINENO
141  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142  test "x$as_lineno_1" != "x$as_lineno_2" &&
143  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
144	     $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145	     $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146	     CONFIG_SHELL=$as_dir/$as_base
147	     export CONFIG_SHELL
148	     exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149	   fi;;
150	 esac
151       done
152done
153;;
154  esac
155
156  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157  # uniformly replaced by the line number.  The first 'sed' inserts a
158  # line-number line before each line; the second 'sed' does the real
159  # work.  The second script uses 'N' to pair each line-number line
160  # with the numbered line, and appends trailing '-' during
161  # substitution so that $LINENO is not a special case at line end.
162  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
164  sed '=' <$as_myself |
165    sed '
166      N
167      s,$,-,
168      : loop
169      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170      t loop
171      s,-$,,
172      s,^['$as_cr_digits']*\n,,
173    ' >$as_me.lineno &&
174  chmod +x $as_me.lineno ||
175    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176   { (exit 1); exit 1; }; }
177
178  # Don't try to exec as it changes $[0], causing all sort of problems
179  # (the dirname of $[0] is not the place where we might find the
180  # original and so on.  Autoconf is especially sensible to this).
181  . ./$as_me.lineno
182  # Exit status is that of the last command.
183  exit
184}
185
186
187case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188  *c*,-n*) ECHO_N= ECHO_C='
189' ECHO_T='	' ;;
190  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
192esac
193
194if expr a : '\(a\)' >/dev/null 2>&1; then
195  as_expr=expr
196else
197  as_expr=false
198fi
199
200rm -f conf$$ conf$$.exe conf$$.file
201echo >conf$$.file
202if ln -s conf$$.file conf$$ 2>/dev/null; then
203  # We could just check for DJGPP; but this test a) works b) is more generic
204  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205  if test -f conf$$.exe; then
206    # Don't use ln at all; we don't have any links
207    as_ln_s='cp -p'
208  else
209    as_ln_s='ln -s'
210  fi
211elif ln conf$$.file conf$$ 2>/dev/null; then
212  as_ln_s=ln
213else
214  as_ln_s='cp -p'
215fi
216rm -f conf$$ conf$$.exe conf$$.file
217
218if mkdir -p . 2>/dev/null; then
219  as_mkdir_p=:
220else
221  test -d ./-p && rmdir ./-p
222  as_mkdir_p=false
223fi
224
225as_executable_p="test -f"
226
227# Sed expression to map a string onto a valid CPP name.
228as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229
230# Sed expression to map a string onto a valid variable name.
231as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
233
234# IFS
235# We need space, tab and new line, in precisely that order.
236as_nl='
237'
238IFS=" 	$as_nl"
239
240# CDPATH.
241$as_unset CDPATH
242
243
244# Name of the host.
245# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246# so uname gets run too.
247ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
248
249exec 6>&1
250
251#
252# Initializations.
253#
254ac_default_prefix=/usr/local
255ac_config_libobj_dir=.
256cross_compiling=no
257subdirs=
258MFLAGS=
259MAKEFLAGS=
260SHELL=${CONFIG_SHELL-/bin/sh}
261
262# Maximum number of lines to put in a shell here document.
263# This variable seems obsolete.  It should probably be removed, and
264# only ac_max_sed_lines should be used.
265: ${ac_max_here_lines=38}
266
267# Identity of this package.
268PACKAGE_NAME=
269PACKAGE_TARNAME=
270PACKAGE_VERSION=
271PACKAGE_STRING=
272PACKAGE_BUGREPORT=
273
274ac_unique_file="ar.c"
275# Factoring default headers for most tests.
276ac_includes_default="\
277#include <stdio.h>
278#if HAVE_SYS_TYPES_H
279# include <sys/types.h>
280#endif
281#if HAVE_SYS_STAT_H
282# include <sys/stat.h>
283#endif
284#if STDC_HEADERS
285# include <stdlib.h>
286# include <stddef.h>
287#else
288# if HAVE_STDLIB_H
289#  include <stdlib.h>
290# endif
291#endif
292#if HAVE_STRING_H
293# if !STDC_HEADERS && HAVE_MEMORY_H
294#  include <memory.h>
295# endif
296# include <string.h>
297#endif
298#if HAVE_STRINGS_H
299# include <strings.h>
300#endif
301#if HAVE_INTTYPES_H
302# include <inttypes.h>
303#else
304# if HAVE_STDINT_H
305#  include <stdint.h>
306# endif
307#endif
308#if HAVE_UNISTD_H
309# include <unistd.h>
310#endif"
311
312ac_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 build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE LN_S RANLIB ac_ct_RANLIB LIBTOOL WARN_CFLAGS NO_WERROR YACC LEX LEXLIB LEX_OUTPUT_ROOT CPP EGREP ALLOCA USE_NLS MSGFMT GMSGFMT XGETTEXT USE_INCLUDED_LIBINTL CATALOGS CATOBJEXT DATADIRNAME GMOFILES INSTOBJEXT INTLDEPS INTLLIBS INTLOBJS POFILES POSUB INCLUDE_LOCALE_H GT_NO GT_YES MKINSTALLDIRS l MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT HDEFINES AR CC_FOR_BUILD EXEEXT_FOR_BUILD DEMANGLER_NAME NLMCONV_DEFS BUILD_NLMCONV BUILD_SRCONV BUILD_DLLTOOL DLLTOOL_DEFS BUILD_WINDRES BUILD_DLLWRAP BUILD_MISC OBJDUMP_DEFS EMULATION EMULATION_VECTOR datarootdir docdir htmldir LIBOBJS LTLIBOBJS'
313ac_subst_files=''
314
315# Initialize some variables set by options.
316ac_init_help=
317ac_init_version=false
318# The variables have the same names as the options, with
319# dashes changed to underlines.
320cache_file=/dev/null
321exec_prefix=NONE
322no_create=
323no_recursion=
324prefix=NONE
325program_prefix=NONE
326program_suffix=NONE
327program_transform_name=s,x,x,
328silent=
329site=
330srcdir=
331verbose=
332x_includes=NONE
333x_libraries=NONE
334
335# Installation directory options.
336# These are left unexpanded so users can "make install exec_prefix=/foo"
337# and all the variables that are supposed to be based on exec_prefix
338# by default will actually change.
339# Use braces instead of parens because sh, perl, etc. also accept them.
340bindir='${exec_prefix}/bin'
341sbindir='${exec_prefix}/sbin'
342libexecdir='${exec_prefix}/libexec'
343datadir='${prefix}/share'
344sysconfdir='${prefix}/etc'
345sharedstatedir='${prefix}/com'
346localstatedir='${prefix}/var'
347libdir='${exec_prefix}/lib'
348includedir='${prefix}/include'
349oldincludedir='/usr/include'
350infodir='${prefix}/info'
351mandir='${prefix}/man'
352
353ac_prev=
354for ac_option
355do
356  # If the previous option needs an argument, assign it.
357  if test -n "$ac_prev"; then
358    eval "$ac_prev=\$ac_option"
359    ac_prev=
360    continue
361  fi
362
363  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
364
365  # Accept the important Cygnus configure options, so we can diagnose typos.
366
367  case $ac_option in
368
369  -bindir | --bindir | --bindi | --bind | --bin | --bi)
370    ac_prev=bindir ;;
371  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
372    bindir=$ac_optarg ;;
373
374  -build | --build | --buil | --bui | --bu)
375    ac_prev=build_alias ;;
376  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
377    build_alias=$ac_optarg ;;
378
379  -cache-file | --cache-file | --cache-fil | --cache-fi \
380  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
381    ac_prev=cache_file ;;
382  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
383  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
384    cache_file=$ac_optarg ;;
385
386  --config-cache | -C)
387    cache_file=config.cache ;;
388
389  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
390    ac_prev=datadir ;;
391  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
392  | --da=*)
393    datadir=$ac_optarg ;;
394
395  -disable-* | --disable-*)
396    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
397    # Reject names that are not valid shell variable names.
398    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
399      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
400   { (exit 1); exit 1; }; }
401    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
402    eval "enable_$ac_feature=no" ;;
403
404  -enable-* | --enable-*)
405    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
406    # Reject names that are not valid shell variable names.
407    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
408      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
409   { (exit 1); exit 1; }; }
410    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
411    case $ac_option in
412      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
413      *) ac_optarg=yes ;;
414    esac
415    eval "enable_$ac_feature='$ac_optarg'" ;;
416
417  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
418  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
419  | --exec | --exe | --ex)
420    ac_prev=exec_prefix ;;
421  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
422  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
423  | --exec=* | --exe=* | --ex=*)
424    exec_prefix=$ac_optarg ;;
425
426  -gas | --gas | --ga | --g)
427    # Obsolete; use --with-gas.
428    with_gas=yes ;;
429
430  -help | --help | --hel | --he | -h)
431    ac_init_help=long ;;
432  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
433    ac_init_help=recursive ;;
434  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
435    ac_init_help=short ;;
436
437  -host | --host | --hos | --ho)
438    ac_prev=host_alias ;;
439  -host=* | --host=* | --hos=* | --ho=*)
440    host_alias=$ac_optarg ;;
441
442  -includedir | --includedir | --includedi | --included | --include \
443  | --includ | --inclu | --incl | --inc)
444    ac_prev=includedir ;;
445  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
446  | --includ=* | --inclu=* | --incl=* | --inc=*)
447    includedir=$ac_optarg ;;
448
449  -infodir | --infodir | --infodi | --infod | --info | --inf)
450    ac_prev=infodir ;;
451  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
452    infodir=$ac_optarg ;;
453
454  -libdir | --libdir | --libdi | --libd)
455    ac_prev=libdir ;;
456  -libdir=* | --libdir=* | --libdi=* | --libd=*)
457    libdir=$ac_optarg ;;
458
459  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
460  | --libexe | --libex | --libe)
461    ac_prev=libexecdir ;;
462  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
463  | --libexe=* | --libex=* | --libe=*)
464    libexecdir=$ac_optarg ;;
465
466  -localstatedir | --localstatedir | --localstatedi | --localstated \
467  | --localstate | --localstat | --localsta | --localst \
468  | --locals | --local | --loca | --loc | --lo)
469    ac_prev=localstatedir ;;
470  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
471  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
472  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
473    localstatedir=$ac_optarg ;;
474
475  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
476    ac_prev=mandir ;;
477  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
478    mandir=$ac_optarg ;;
479
480  -nfp | --nfp | --nf)
481    # Obsolete; use --without-fp.
482    with_fp=no ;;
483
484  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
485  | --no-cr | --no-c | -n)
486    no_create=yes ;;
487
488  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
489  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
490    no_recursion=yes ;;
491
492  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
493  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
494  | --oldin | --oldi | --old | --ol | --o)
495    ac_prev=oldincludedir ;;
496  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
497  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
498  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
499    oldincludedir=$ac_optarg ;;
500
501  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
502    ac_prev=prefix ;;
503  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
504    prefix=$ac_optarg ;;
505
506  -program-prefix | --program-prefix | --program-prefi | --program-pref \
507  | --program-pre | --program-pr | --program-p)
508    ac_prev=program_prefix ;;
509  -program-prefix=* | --program-prefix=* | --program-prefi=* \
510  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
511    program_prefix=$ac_optarg ;;
512
513  -program-suffix | --program-suffix | --program-suffi | --program-suff \
514  | --program-suf | --program-su | --program-s)
515    ac_prev=program_suffix ;;
516  -program-suffix=* | --program-suffix=* | --program-suffi=* \
517  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
518    program_suffix=$ac_optarg ;;
519
520  -program-transform-name | --program-transform-name \
521  | --program-transform-nam | --program-transform-na \
522  | --program-transform-n | --program-transform- \
523  | --program-transform | --program-transfor \
524  | --program-transfo | --program-transf \
525  | --program-trans | --program-tran \
526  | --progr-tra | --program-tr | --program-t)
527    ac_prev=program_transform_name ;;
528  -program-transform-name=* | --program-transform-name=* \
529  | --program-transform-nam=* | --program-transform-na=* \
530  | --program-transform-n=* | --program-transform-=* \
531  | --program-transform=* | --program-transfor=* \
532  | --program-transfo=* | --program-transf=* \
533  | --program-trans=* | --program-tran=* \
534  | --progr-tra=* | --program-tr=* | --program-t=*)
535    program_transform_name=$ac_optarg ;;
536
537  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
538  | -silent | --silent | --silen | --sile | --sil)
539    silent=yes ;;
540
541  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
542    ac_prev=sbindir ;;
543  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
544  | --sbi=* | --sb=*)
545    sbindir=$ac_optarg ;;
546
547  -sharedstatedir | --sharedstatedir | --sharedstatedi \
548  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
549  | --sharedst | --shareds | --shared | --share | --shar \
550  | --sha | --sh)
551    ac_prev=sharedstatedir ;;
552  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
553  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
554  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
555  | --sha=* | --sh=*)
556    sharedstatedir=$ac_optarg ;;
557
558  -site | --site | --sit)
559    ac_prev=site ;;
560  -site=* | --site=* | --sit=*)
561    site=$ac_optarg ;;
562
563  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
564    ac_prev=srcdir ;;
565  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
566    srcdir=$ac_optarg ;;
567
568  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
569  | --syscon | --sysco | --sysc | --sys | --sy)
570    ac_prev=sysconfdir ;;
571  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
572  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
573    sysconfdir=$ac_optarg ;;
574
575  -target | --target | --targe | --targ | --tar | --ta | --t)
576    ac_prev=target_alias ;;
577  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
578    target_alias=$ac_optarg ;;
579
580  -v | -verbose | --verbose | --verbos | --verbo | --verb)
581    verbose=yes ;;
582
583  -version | --version | --versio | --versi | --vers | -V)
584    ac_init_version=: ;;
585
586  -with-* | --with-*)
587    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
588    # Reject names that are not valid shell variable names.
589    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
590      { echo "$as_me: error: invalid package name: $ac_package" >&2
591   { (exit 1); exit 1; }; }
592    ac_package=`echo $ac_package| sed 's/-/_/g'`
593    case $ac_option in
594      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
595      *) ac_optarg=yes ;;
596    esac
597    eval "with_$ac_package='$ac_optarg'" ;;
598
599  -without-* | --without-*)
600    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
601    # Reject names that are not valid shell variable names.
602    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
603      { echo "$as_me: error: invalid package name: $ac_package" >&2
604   { (exit 1); exit 1; }; }
605    ac_package=`echo $ac_package | sed 's/-/_/g'`
606    eval "with_$ac_package=no" ;;
607
608  --x)
609    # Obsolete; use --with-x.
610    with_x=yes ;;
611
612  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
613  | --x-incl | --x-inc | --x-in | --x-i)
614    ac_prev=x_includes ;;
615  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
616  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
617    x_includes=$ac_optarg ;;
618
619  -x-libraries | --x-libraries | --x-librarie | --x-librari \
620  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
621    ac_prev=x_libraries ;;
622  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
623  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
624    x_libraries=$ac_optarg ;;
625
626  -*) { echo "$as_me: error: unrecognized option: $ac_option
627Try \`$0 --help' for more information." >&2
628   { (exit 1); exit 1; }; }
629    ;;
630
631  *=*)
632    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
633    # Reject names that are not valid shell variable names.
634    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
635      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
636   { (exit 1); exit 1; }; }
637    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
638    eval "$ac_envvar='$ac_optarg'"
639    export $ac_envvar ;;
640
641  *)
642    # FIXME: should be removed in autoconf 3.0.
643    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
644    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
645      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
646    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
647    ;;
648
649  esac
650done
651
652if test -n "$ac_prev"; then
653  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
654  { echo "$as_me: error: missing argument to $ac_option" >&2
655   { (exit 1); exit 1; }; }
656fi
657
658# Be sure to have absolute paths.
659for ac_var in exec_prefix prefix
660do
661  eval ac_val=$`echo $ac_var`
662  case $ac_val in
663    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
664    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665   { (exit 1); exit 1; }; };;
666  esac
667done
668
669# Be sure to have absolute paths.
670for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671	      localstatedir libdir includedir oldincludedir infodir mandir
672do
673  eval ac_val=$`echo $ac_var`
674  case $ac_val in
675    [\\/$]* | ?:[\\/]* ) ;;
676    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677   { (exit 1); exit 1; }; };;
678  esac
679done
680
681# There might be people who depend on the old broken behavior: `$host'
682# used to hold the argument of --host etc.
683# FIXME: To remove some day.
684build=$build_alias
685host=$host_alias
686target=$target_alias
687
688# FIXME: To remove some day.
689if test "x$host_alias" != x; then
690  if test "x$build_alias" = x; then
691    cross_compiling=maybe
692    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
693    If a cross compiler is detected then cross compile mode will be used." >&2
694  elif test "x$build_alias" != "x$host_alias"; then
695    cross_compiling=yes
696  fi
697fi
698
699ac_tool_prefix=
700test -n "$host_alias" && ac_tool_prefix=$host_alias-
701
702test "$silent" = yes && exec 6>/dev/null
703
704
705# Find the source files, if location was not specified.
706if test -z "$srcdir"; then
707  ac_srcdir_defaulted=yes
708  # Try the directory containing this script, then its parent.
709  ac_confdir=`(dirname "$0") 2>/dev/null ||
710$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
711	 X"$0" : 'X\(//\)[^/]' \| \
712	 X"$0" : 'X\(//\)$' \| \
713	 X"$0" : 'X\(/\)' \| \
714	 .     : '\(.\)' 2>/dev/null ||
715echo X"$0" |
716    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
718  	  /^X\(\/\/\)$/{ s//\1/; q; }
719  	  /^X\(\/\).*/{ s//\1/; q; }
720  	  s/.*/./; q'`
721  srcdir=$ac_confdir
722  if test ! -r $srcdir/$ac_unique_file; then
723    srcdir=..
724  fi
725else
726  ac_srcdir_defaulted=no
727fi
728if test ! -r $srcdir/$ac_unique_file; then
729  if test "$ac_srcdir_defaulted" = yes; then
730    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731   { (exit 1); exit 1; }; }
732  else
733    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734   { (exit 1); exit 1; }; }
735  fi
736fi
737(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
738  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
739   { (exit 1); exit 1; }; }
740srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741ac_env_build_alias_set=${build_alias+set}
742ac_env_build_alias_value=$build_alias
743ac_cv_env_build_alias_set=${build_alias+set}
744ac_cv_env_build_alias_value=$build_alias
745ac_env_host_alias_set=${host_alias+set}
746ac_env_host_alias_value=$host_alias
747ac_cv_env_host_alias_set=${host_alias+set}
748ac_cv_env_host_alias_value=$host_alias
749ac_env_target_alias_set=${target_alias+set}
750ac_env_target_alias_value=$target_alias
751ac_cv_env_target_alias_set=${target_alias+set}
752ac_cv_env_target_alias_value=$target_alias
753ac_env_CC_set=${CC+set}
754ac_env_CC_value=$CC
755ac_cv_env_CC_set=${CC+set}
756ac_cv_env_CC_value=$CC
757ac_env_CFLAGS_set=${CFLAGS+set}
758ac_env_CFLAGS_value=$CFLAGS
759ac_cv_env_CFLAGS_set=${CFLAGS+set}
760ac_cv_env_CFLAGS_value=$CFLAGS
761ac_env_LDFLAGS_set=${LDFLAGS+set}
762ac_env_LDFLAGS_value=$LDFLAGS
763ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
764ac_cv_env_LDFLAGS_value=$LDFLAGS
765ac_env_CPPFLAGS_set=${CPPFLAGS+set}
766ac_env_CPPFLAGS_value=$CPPFLAGS
767ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
768ac_cv_env_CPPFLAGS_value=$CPPFLAGS
769ac_env_CPP_set=${CPP+set}
770ac_env_CPP_value=$CPP
771ac_cv_env_CPP_set=${CPP+set}
772ac_cv_env_CPP_value=$CPP
773
774#
775# Report the --help message.
776#
777if test "$ac_init_help" = "long"; then
778  # Omit some internal or obsolete options to make the list less imposing.
779  # This message is too long to be a string in the A/UX 3.1 sh.
780  cat <<_ACEOF
781\`configure' configures this package to adapt to many kinds of systems.
782
783Usage: $0 [OPTION]... [VAR=VALUE]...
784
785To assign environment variables (e.g., CC, CFLAGS...), specify them as
786VAR=VALUE.  See below for descriptions of some of the useful variables.
787
788Defaults for the options are specified in brackets.
789
790Configuration:
791  -h, --help              display this help and exit
792      --help=short        display options specific to this package
793      --help=recursive    display the short help of all the included packages
794  -V, --version           display version information and exit
795  -q, --quiet, --silent   do not print \`checking...' messages
796      --cache-file=FILE   cache test results in FILE [disabled]
797  -C, --config-cache      alias for \`--cache-file=config.cache'
798  -n, --no-create         do not create output files
799      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
800
801_ACEOF
802
803  cat <<_ACEOF
804Installation directories:
805  --prefix=PREFIX         install architecture-independent files in PREFIX
806			  [$ac_default_prefix]
807  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
808			  [PREFIX]
809
810By default, \`make install' will install all the files in
811\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
812an installation prefix other than \`$ac_default_prefix' using \`--prefix',
813for instance \`--prefix=\$HOME'.
814
815For better control, use the options below.
816
817Fine tuning of the installation directories:
818  --bindir=DIR           user executables [EPREFIX/bin]
819  --sbindir=DIR          system admin executables [EPREFIX/sbin]
820  --libexecdir=DIR       program executables [EPREFIX/libexec]
821  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
822  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
823  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
824  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
825  --libdir=DIR           object code libraries [EPREFIX/lib]
826  --includedir=DIR       C header files [PREFIX/include]
827  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
828  --infodir=DIR          info documentation [PREFIX/info]
829  --mandir=DIR           man documentation [PREFIX/man]
830_ACEOF
831
832  cat <<\_ACEOF
833
834Program names:
835  --program-prefix=PREFIX            prepend PREFIX to installed program names
836  --program-suffix=SUFFIX            append SUFFIX to installed program names
837  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
838
839System types:
840  --build=BUILD     configure for building on BUILD [guessed]
841  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
842  --target=TARGET   configure for building compilers for TARGET [HOST]
843_ACEOF
844fi
845
846if test -n "$ac_init_help"; then
847
848  cat <<\_ACEOF
849
850Optional Features:
851  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
852  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
853  --disable-dependency-tracking  speeds up one-time build
854  --enable-dependency-tracking   do not reject slow dependency extractors
855  --enable-shared=PKGS  build shared libraries default=yes
856  --enable-static=PKGS  build static libraries default=yes
857  --enable-fast-install=PKGS  optimize for fast installation default=yes
858  --disable-libtool-lock  avoid locking (might break parallel builds)
859  --enable-targets        alternative target configurations
860  --enable-commonbfdlib   build shared BFD/opcodes/libiberty library
861  --enable-werror    treat compile warnings as errors
862  --enable-build-warnings Enable build-time compiler warnings
863  --disable-nls           do not use Native Language Support
864  --enable-maintainer-mode  enable make rules and dependencies not useful
865			  (and sometimes confusing) to the casual installer
866
867Optional Packages:
868  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
869  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
870  --with-gnu-ld           assume the C compiler uses GNU ld default=no
871  --with-pic              try to use only PIC/non-PIC objects default=use both
872  --with-included-gettext use the GNU gettext library included here
873
874Some influential environment variables:
875  CC          C compiler command
876  CFLAGS      C compiler flags
877  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
878              nonstandard directory <lib dir>
879  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
880              headers in a nonstandard directory <include dir>
881  CPP         C preprocessor
882
883Use these variables to override the choices made by `configure' or to help
884it to find libraries and programs with nonstandard names/locations.
885
886_ACEOF
887fi
888
889if test "$ac_init_help" = "recursive"; then
890  # If there are subdirs, report their specific --help.
891  ac_popdir=`pwd`
892  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
893    test -d $ac_dir || continue
894    ac_builddir=.
895
896if test "$ac_dir" != .; then
897  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
898  # A "../" for each directory in $ac_dir_suffix.
899  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
900else
901  ac_dir_suffix= ac_top_builddir=
902fi
903
904case $srcdir in
905  .)  # No --srcdir option.  We are building in place.
906    ac_srcdir=.
907    if test -z "$ac_top_builddir"; then
908       ac_top_srcdir=.
909    else
910       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
911    fi ;;
912  [\\/]* | ?:[\\/]* )  # Absolute path.
913    ac_srcdir=$srcdir$ac_dir_suffix;
914    ac_top_srcdir=$srcdir ;;
915  *) # Relative path.
916    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
917    ac_top_srcdir=$ac_top_builddir$srcdir ;;
918esac
919
920# Do not use `cd foo && pwd` to compute absolute paths, because
921# the directories may not exist.
922case `pwd` in
923.) ac_abs_builddir="$ac_dir";;
924*)
925  case "$ac_dir" in
926  .) ac_abs_builddir=`pwd`;;
927  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
928  *) ac_abs_builddir=`pwd`/"$ac_dir";;
929  esac;;
930esac
931case $ac_abs_builddir in
932.) ac_abs_top_builddir=${ac_top_builddir}.;;
933*)
934  case ${ac_top_builddir}. in
935  .) ac_abs_top_builddir=$ac_abs_builddir;;
936  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
937  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
938  esac;;
939esac
940case $ac_abs_builddir in
941.) ac_abs_srcdir=$ac_srcdir;;
942*)
943  case $ac_srcdir in
944  .) ac_abs_srcdir=$ac_abs_builddir;;
945  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
946  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
947  esac;;
948esac
949case $ac_abs_builddir in
950.) ac_abs_top_srcdir=$ac_top_srcdir;;
951*)
952  case $ac_top_srcdir in
953  .) ac_abs_top_srcdir=$ac_abs_builddir;;
954  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
955  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
956  esac;;
957esac
958
959    cd $ac_dir
960    # Check for guested configure; otherwise get Cygnus style configure.
961    if test -f $ac_srcdir/configure.gnu; then
962      echo
963      $SHELL $ac_srcdir/configure.gnu  --help=recursive
964    elif test -f $ac_srcdir/configure; then
965      echo
966      $SHELL $ac_srcdir/configure  --help=recursive
967    elif test -f $ac_srcdir/configure.ac ||
968	   test -f $ac_srcdir/configure.in; then
969      echo
970      $ac_configure --help
971    else
972      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
973    fi
974    cd $ac_popdir
975  done
976fi
977
978test -n "$ac_init_help" && exit 0
979if $ac_init_version; then
980  cat <<\_ACEOF
981
982Copyright (C) 2003 Free Software Foundation, Inc.
983This configure script is free software; the Free Software Foundation
984gives unlimited permission to copy, distribute and modify it.
985_ACEOF
986  exit 0
987fi
988exec 5>config.log
989cat >&5 <<_ACEOF
990This file contains any messages produced by compilers while
991running configure, to aid debugging if configure makes a mistake.
992
993It was created by $as_me, which was
994generated by GNU Autoconf 2.59.  Invocation command line was
995
996  $ $0 $@
997
998_ACEOF
999{
1000cat <<_ASUNAME
1001## --------- ##
1002## Platform. ##
1003## --------- ##
1004
1005hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1006uname -m = `(uname -m) 2>/dev/null || echo unknown`
1007uname -r = `(uname -r) 2>/dev/null || echo unknown`
1008uname -s = `(uname -s) 2>/dev/null || echo unknown`
1009uname -v = `(uname -v) 2>/dev/null || echo unknown`
1010
1011/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1012/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1013
1014/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1015/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1016/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1017hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1018/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1019/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1020/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1021
1022_ASUNAME
1023
1024as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1025for as_dir in $PATH
1026do
1027  IFS=$as_save_IFS
1028  test -z "$as_dir" && as_dir=.
1029  echo "PATH: $as_dir"
1030done
1031
1032} >&5
1033
1034cat >&5 <<_ACEOF
1035
1036
1037## ----------- ##
1038## Core tests. ##
1039## ----------- ##
1040
1041_ACEOF
1042
1043
1044# Keep a trace of the command line.
1045# Strip out --no-create and --no-recursion so they do not pile up.
1046# Strip out --silent because we don't want to record it for future runs.
1047# Also quote any args containing shell meta-characters.
1048# Make two passes to allow for proper duplicate-argument suppression.
1049ac_configure_args=
1050ac_configure_args0=
1051ac_configure_args1=
1052ac_sep=
1053ac_must_keep_next=false
1054for ac_pass in 1 2
1055do
1056  for ac_arg
1057  do
1058    case $ac_arg in
1059    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1060    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1061    | -silent | --silent | --silen | --sile | --sil)
1062      continue ;;
1063    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1064      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1065    esac
1066    case $ac_pass in
1067    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1068    2)
1069      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1070      if test $ac_must_keep_next = true; then
1071	ac_must_keep_next=false # Got value, back to normal.
1072      else
1073	case $ac_arg in
1074	  *=* | --config-cache | -C | -disable-* | --disable-* \
1075	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1076	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1077	  | -with-* | --with-* | -without-* | --without-* | --x)
1078	    case "$ac_configure_args0 " in
1079	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1080	    esac
1081	    ;;
1082	  -* ) ac_must_keep_next=true ;;
1083	esac
1084      fi
1085      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1086      # Get rid of the leading space.
1087      ac_sep=" "
1088      ;;
1089    esac
1090  done
1091done
1092$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1093$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1094
1095# When interrupted or exit'd, cleanup temporary files, and complete
1096# config.log.  We remove comments because anyway the quotes in there
1097# would cause problems or look ugly.
1098# WARNING: Be sure not to use single quotes in there, as some shells,
1099# such as our DU 5.0 friend, will then `close' the trap.
1100trap 'exit_status=$?
1101  # Save into config.log some information that might help in debugging.
1102  {
1103    echo
1104
1105    cat <<\_ASBOX
1106## ---------------- ##
1107## Cache variables. ##
1108## ---------------- ##
1109_ASBOX
1110    echo
1111    # The following way of writing the cache mishandles newlines in values,
1112{
1113  (set) 2>&1 |
1114    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1115    *ac_space=\ *)
1116      sed -n \
1117	"s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1118	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1119      ;;
1120    *)
1121      sed -n \
1122	"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1123      ;;
1124    esac;
1125}
1126    echo
1127
1128    cat <<\_ASBOX
1129## ----------------- ##
1130## Output variables. ##
1131## ----------------- ##
1132_ASBOX
1133    echo
1134    for ac_var in $ac_subst_vars
1135    do
1136      eval ac_val=$`echo $ac_var`
1137      echo "$ac_var='"'"'$ac_val'"'"'"
1138    done | sort
1139    echo
1140
1141    if test -n "$ac_subst_files"; then
1142      cat <<\_ASBOX
1143## ------------- ##
1144## Output files. ##
1145## ------------- ##
1146_ASBOX
1147      echo
1148      for ac_var in $ac_subst_files
1149      do
1150	eval ac_val=$`echo $ac_var`
1151	echo "$ac_var='"'"'$ac_val'"'"'"
1152      done | sort
1153      echo
1154    fi
1155
1156    if test -s confdefs.h; then
1157      cat <<\_ASBOX
1158## ----------- ##
1159## confdefs.h. ##
1160## ----------- ##
1161_ASBOX
1162      echo
1163      sed "/^$/d" confdefs.h | sort
1164      echo
1165    fi
1166    test "$ac_signal" != 0 &&
1167      echo "$as_me: caught signal $ac_signal"
1168    echo "$as_me: exit $exit_status"
1169  } >&5
1170  rm -f core *.core &&
1171  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1172    exit $exit_status
1173     ' 0
1174for ac_signal in 1 2 13 15; do
1175  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1176done
1177ac_signal=0
1178
1179# confdefs.h avoids OS command line length limits that DEFS can exceed.
1180rm -rf conftest* confdefs.h
1181# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1182echo >confdefs.h
1183
1184# Predefined preprocessor variables.
1185
1186cat >>confdefs.h <<_ACEOF
1187#define PACKAGE_NAME "$PACKAGE_NAME"
1188_ACEOF
1189
1190
1191cat >>confdefs.h <<_ACEOF
1192#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1193_ACEOF
1194
1195
1196cat >>confdefs.h <<_ACEOF
1197#define PACKAGE_VERSION "$PACKAGE_VERSION"
1198_ACEOF
1199
1200
1201cat >>confdefs.h <<_ACEOF
1202#define PACKAGE_STRING "$PACKAGE_STRING"
1203_ACEOF
1204
1205
1206cat >>confdefs.h <<_ACEOF
1207#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1208_ACEOF
1209
1210
1211# Let the site file select an alternate cache file if it wants to.
1212# Prefer explicitly selected file to automatically selected ones.
1213if test -z "$CONFIG_SITE"; then
1214  if test "x$prefix" != xNONE; then
1215    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1216  else
1217    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1218  fi
1219fi
1220for ac_site_file in $CONFIG_SITE; do
1221  if test -r "$ac_site_file"; then
1222    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1223echo "$as_me: loading site script $ac_site_file" >&6;}
1224    sed 's/^/| /' "$ac_site_file" >&5
1225    . "$ac_site_file"
1226  fi
1227done
1228
1229if test -r "$cache_file"; then
1230  # Some versions of bash will fail to source /dev/null (special
1231  # files actually), so we avoid doing that.
1232  if test -f "$cache_file"; then
1233    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1234echo "$as_me: loading cache $cache_file" >&6;}
1235    case $cache_file in
1236      [\\/]* | ?:[\\/]* ) . $cache_file;;
1237      *)                      . ./$cache_file;;
1238    esac
1239  fi
1240else
1241  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1242echo "$as_me: creating cache $cache_file" >&6;}
1243  >$cache_file
1244fi
1245
1246# Check that the precious variables saved in the cache have kept the same
1247# value.
1248ac_cache_corrupted=false
1249for ac_var in `(set) 2>&1 |
1250	       sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1251  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1252  eval ac_new_set=\$ac_env_${ac_var}_set
1253  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1254  eval ac_new_val="\$ac_env_${ac_var}_value"
1255  case $ac_old_set,$ac_new_set in
1256    set,)
1257      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1258echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1259      ac_cache_corrupted=: ;;
1260    ,set)
1261      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1262echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1263      ac_cache_corrupted=: ;;
1264    ,);;
1265    *)
1266      if test "x$ac_old_val" != "x$ac_new_val"; then
1267	{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1268echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1269	{ echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1270echo "$as_me:   former value:  $ac_old_val" >&2;}
1271	{ echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1272echo "$as_me:   current value: $ac_new_val" >&2;}
1273	ac_cache_corrupted=:
1274      fi;;
1275  esac
1276  # Pass precious variables to config.status.
1277  if test "$ac_new_set" = set; then
1278    case $ac_new_val in
1279    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1280      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1281    *) ac_arg=$ac_var=$ac_new_val ;;
1282    esac
1283    case " $ac_configure_args " in
1284      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1285      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1286    esac
1287  fi
1288done
1289if $ac_cache_corrupted; then
1290  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1291echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1292  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1293echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1294   { (exit 1); exit 1; }; }
1295fi
1296
1297ac_ext=c
1298ac_cpp='$CPP $CPPFLAGS'
1299ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1300ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1301ac_compiler_gnu=$ac_cv_c_compiler_gnu
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322ac_aux_dir=
1323for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1324  if test -f $ac_dir/install-sh; then
1325    ac_aux_dir=$ac_dir
1326    ac_install_sh="$ac_aux_dir/install-sh -c"
1327    break
1328  elif test -f $ac_dir/install.sh; then
1329    ac_aux_dir=$ac_dir
1330    ac_install_sh="$ac_aux_dir/install.sh -c"
1331    break
1332  elif test -f $ac_dir/shtool; then
1333    ac_aux_dir=$ac_dir
1334    ac_install_sh="$ac_aux_dir/shtool install -c"
1335    break
1336  fi
1337done
1338if test -z "$ac_aux_dir"; then
1339  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1340echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1341   { (exit 1); exit 1; }; }
1342fi
1343ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1344ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1345ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1346
1347# Make sure we can run config.sub.
1348$ac_config_sub sun4 >/dev/null 2>&1 ||
1349  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1350echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1351   { (exit 1); exit 1; }; }
1352
1353echo "$as_me:$LINENO: checking build system type" >&5
1354echo $ECHO_N "checking build system type... $ECHO_C" >&6
1355if test "${ac_cv_build+set}" = set; then
1356  echo $ECHO_N "(cached) $ECHO_C" >&6
1357else
1358  ac_cv_build_alias=$build_alias
1359test -z "$ac_cv_build_alias" &&
1360  ac_cv_build_alias=`$ac_config_guess`
1361test -z "$ac_cv_build_alias" &&
1362  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1363echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1364   { (exit 1); exit 1; }; }
1365ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1366  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1367echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1368   { (exit 1); exit 1; }; }
1369
1370fi
1371echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1372echo "${ECHO_T}$ac_cv_build" >&6
1373build=$ac_cv_build
1374build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1375build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1376build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1377
1378
1379echo "$as_me:$LINENO: checking host system type" >&5
1380echo $ECHO_N "checking host system type... $ECHO_C" >&6
1381if test "${ac_cv_host+set}" = set; then
1382  echo $ECHO_N "(cached) $ECHO_C" >&6
1383else
1384  ac_cv_host_alias=$host_alias
1385test -z "$ac_cv_host_alias" &&
1386  ac_cv_host_alias=$ac_cv_build_alias
1387ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1388  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1389echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1390   { (exit 1); exit 1; }; }
1391
1392fi
1393echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1394echo "${ECHO_T}$ac_cv_host" >&6
1395host=$ac_cv_host
1396host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1397host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1398host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1399
1400
1401echo "$as_me:$LINENO: checking target system type" >&5
1402echo $ECHO_N "checking target system type... $ECHO_C" >&6
1403if test "${ac_cv_target+set}" = set; then
1404  echo $ECHO_N "(cached) $ECHO_C" >&6
1405else
1406  ac_cv_target_alias=$target_alias
1407test "x$ac_cv_target_alias" = "x" &&
1408  ac_cv_target_alias=$ac_cv_host_alias
1409ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1410  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1411echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1412   { (exit 1); exit 1; }; }
1413
1414fi
1415echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1416echo "${ECHO_T}$ac_cv_target" >&6
1417target=$ac_cv_target
1418target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1419target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1420target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1421
1422
1423# The aliases save the names the user supplied, while $host etc.
1424# will get canonicalized.
1425test -n "$target_alias" &&
1426  test "$program_prefix$program_suffix$program_transform_name" = \
1427    NONENONEs,x,x, &&
1428  program_prefix=${target_alias}-
1429ac_ext=c
1430ac_cpp='$CPP $CPPFLAGS'
1431ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1432ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1433ac_compiler_gnu=$ac_cv_c_compiler_gnu
1434if test -n "$ac_tool_prefix"; then
1435  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1436set dummy ${ac_tool_prefix}gcc; ac_word=$2
1437echo "$as_me:$LINENO: checking for $ac_word" >&5
1438echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1439if test "${ac_cv_prog_CC+set}" = set; then
1440  echo $ECHO_N "(cached) $ECHO_C" >&6
1441else
1442  if test -n "$CC"; then
1443  ac_cv_prog_CC="$CC" # Let the user override the test.
1444else
1445as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1446for as_dir in $PATH
1447do
1448  IFS=$as_save_IFS
1449  test -z "$as_dir" && as_dir=.
1450  for ac_exec_ext in '' $ac_executable_extensions; do
1451  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1452    ac_cv_prog_CC="${ac_tool_prefix}gcc"
1453    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1454    break 2
1455  fi
1456done
1457done
1458
1459fi
1460fi
1461CC=$ac_cv_prog_CC
1462if test -n "$CC"; then
1463  echo "$as_me:$LINENO: result: $CC" >&5
1464echo "${ECHO_T}$CC" >&6
1465else
1466  echo "$as_me:$LINENO: result: no" >&5
1467echo "${ECHO_T}no" >&6
1468fi
1469
1470fi
1471if test -z "$ac_cv_prog_CC"; then
1472  ac_ct_CC=$CC
1473  # Extract the first word of "gcc", so it can be a program name with args.
1474set dummy gcc; ac_word=$2
1475echo "$as_me:$LINENO: checking for $ac_word" >&5
1476echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1477if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1478  echo $ECHO_N "(cached) $ECHO_C" >&6
1479else
1480  if test -n "$ac_ct_CC"; then
1481  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1482else
1483as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1484for as_dir in $PATH
1485do
1486  IFS=$as_save_IFS
1487  test -z "$as_dir" && as_dir=.
1488  for ac_exec_ext in '' $ac_executable_extensions; do
1489  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1490    ac_cv_prog_ac_ct_CC="gcc"
1491    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1492    break 2
1493  fi
1494done
1495done
1496
1497fi
1498fi
1499ac_ct_CC=$ac_cv_prog_ac_ct_CC
1500if test -n "$ac_ct_CC"; then
1501  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1502echo "${ECHO_T}$ac_ct_CC" >&6
1503else
1504  echo "$as_me:$LINENO: result: no" >&5
1505echo "${ECHO_T}no" >&6
1506fi
1507
1508  CC=$ac_ct_CC
1509else
1510  CC="$ac_cv_prog_CC"
1511fi
1512
1513if test -z "$CC"; then
1514  if test -n "$ac_tool_prefix"; then
1515  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1516set dummy ${ac_tool_prefix}cc; ac_word=$2
1517echo "$as_me:$LINENO: checking for $ac_word" >&5
1518echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1519if test "${ac_cv_prog_CC+set}" = set; then
1520  echo $ECHO_N "(cached) $ECHO_C" >&6
1521else
1522  if test -n "$CC"; then
1523  ac_cv_prog_CC="$CC" # Let the user override the test.
1524else
1525as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1526for as_dir in $PATH
1527do
1528  IFS=$as_save_IFS
1529  test -z "$as_dir" && as_dir=.
1530  for ac_exec_ext in '' $ac_executable_extensions; do
1531  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1532    ac_cv_prog_CC="${ac_tool_prefix}cc"
1533    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1534    break 2
1535  fi
1536done
1537done
1538
1539fi
1540fi
1541CC=$ac_cv_prog_CC
1542if test -n "$CC"; then
1543  echo "$as_me:$LINENO: result: $CC" >&5
1544echo "${ECHO_T}$CC" >&6
1545else
1546  echo "$as_me:$LINENO: result: no" >&5
1547echo "${ECHO_T}no" >&6
1548fi
1549
1550fi
1551if test -z "$ac_cv_prog_CC"; then
1552  ac_ct_CC=$CC
1553  # Extract the first word of "cc", so it can be a program name with args.
1554set dummy cc; ac_word=$2
1555echo "$as_me:$LINENO: checking for $ac_word" >&5
1556echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1557if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1558  echo $ECHO_N "(cached) $ECHO_C" >&6
1559else
1560  if test -n "$ac_ct_CC"; then
1561  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1562else
1563as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1564for as_dir in $PATH
1565do
1566  IFS=$as_save_IFS
1567  test -z "$as_dir" && as_dir=.
1568  for ac_exec_ext in '' $ac_executable_extensions; do
1569  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1570    ac_cv_prog_ac_ct_CC="cc"
1571    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1572    break 2
1573  fi
1574done
1575done
1576
1577fi
1578fi
1579ac_ct_CC=$ac_cv_prog_ac_ct_CC
1580if test -n "$ac_ct_CC"; then
1581  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1582echo "${ECHO_T}$ac_ct_CC" >&6
1583else
1584  echo "$as_me:$LINENO: result: no" >&5
1585echo "${ECHO_T}no" >&6
1586fi
1587
1588  CC=$ac_ct_CC
1589else
1590  CC="$ac_cv_prog_CC"
1591fi
1592
1593fi
1594if test -z "$CC"; then
1595  # Extract the first word of "cc", so it can be a program name with args.
1596set dummy cc; ac_word=$2
1597echo "$as_me:$LINENO: checking for $ac_word" >&5
1598echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1599if test "${ac_cv_prog_CC+set}" = set; then
1600  echo $ECHO_N "(cached) $ECHO_C" >&6
1601else
1602  if test -n "$CC"; then
1603  ac_cv_prog_CC="$CC" # Let the user override the test.
1604else
1605  ac_prog_rejected=no
1606as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1607for as_dir in $PATH
1608do
1609  IFS=$as_save_IFS
1610  test -z "$as_dir" && as_dir=.
1611  for ac_exec_ext in '' $ac_executable_extensions; do
1612  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1613    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1614       ac_prog_rejected=yes
1615       continue
1616     fi
1617    ac_cv_prog_CC="cc"
1618    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1619    break 2
1620  fi
1621done
1622done
1623
1624if test $ac_prog_rejected = yes; then
1625  # We found a bogon in the path, so make sure we never use it.
1626  set dummy $ac_cv_prog_CC
1627  shift
1628  if test $# != 0; then
1629    # We chose a different compiler from the bogus one.
1630    # However, it has the same basename, so the bogon will be chosen
1631    # first if we set CC to just the basename; use the full file name.
1632    shift
1633    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1634  fi
1635fi
1636fi
1637fi
1638CC=$ac_cv_prog_CC
1639if test -n "$CC"; then
1640  echo "$as_me:$LINENO: result: $CC" >&5
1641echo "${ECHO_T}$CC" >&6
1642else
1643  echo "$as_me:$LINENO: result: no" >&5
1644echo "${ECHO_T}no" >&6
1645fi
1646
1647fi
1648if test -z "$CC"; then
1649  if test -n "$ac_tool_prefix"; then
1650  for ac_prog in cl
1651  do
1652    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1653set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1654echo "$as_me:$LINENO: checking for $ac_word" >&5
1655echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1656if test "${ac_cv_prog_CC+set}" = set; then
1657  echo $ECHO_N "(cached) $ECHO_C" >&6
1658else
1659  if test -n "$CC"; then
1660  ac_cv_prog_CC="$CC" # Let the user override the test.
1661else
1662as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1663for as_dir in $PATH
1664do
1665  IFS=$as_save_IFS
1666  test -z "$as_dir" && as_dir=.
1667  for ac_exec_ext in '' $ac_executable_extensions; do
1668  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1669    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1670    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1671    break 2
1672  fi
1673done
1674done
1675
1676fi
1677fi
1678CC=$ac_cv_prog_CC
1679if test -n "$CC"; then
1680  echo "$as_me:$LINENO: result: $CC" >&5
1681echo "${ECHO_T}$CC" >&6
1682else
1683  echo "$as_me:$LINENO: result: no" >&5
1684echo "${ECHO_T}no" >&6
1685fi
1686
1687    test -n "$CC" && break
1688  done
1689fi
1690if test -z "$CC"; then
1691  ac_ct_CC=$CC
1692  for ac_prog in cl
1693do
1694  # Extract the first word of "$ac_prog", so it can be a program name with args.
1695set dummy $ac_prog; ac_word=$2
1696echo "$as_me:$LINENO: checking for $ac_word" >&5
1697echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1698if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1699  echo $ECHO_N "(cached) $ECHO_C" >&6
1700else
1701  if test -n "$ac_ct_CC"; then
1702  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1703else
1704as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1705for as_dir in $PATH
1706do
1707  IFS=$as_save_IFS
1708  test -z "$as_dir" && as_dir=.
1709  for ac_exec_ext in '' $ac_executable_extensions; do
1710  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1711    ac_cv_prog_ac_ct_CC="$ac_prog"
1712    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1713    break 2
1714  fi
1715done
1716done
1717
1718fi
1719fi
1720ac_ct_CC=$ac_cv_prog_ac_ct_CC
1721if test -n "$ac_ct_CC"; then
1722  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1723echo "${ECHO_T}$ac_ct_CC" >&6
1724else
1725  echo "$as_me:$LINENO: result: no" >&5
1726echo "${ECHO_T}no" >&6
1727fi
1728
1729  test -n "$ac_ct_CC" && break
1730done
1731
1732  CC=$ac_ct_CC
1733fi
1734
1735fi
1736
1737
1738test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1739See \`config.log' for more details." >&5
1740echo "$as_me: error: no acceptable C compiler found in \$PATH
1741See \`config.log' for more details." >&2;}
1742   { (exit 1); exit 1; }; }
1743
1744# Provide some information about the compiler.
1745echo "$as_me:$LINENO:" \
1746     "checking for C compiler version" >&5
1747ac_compiler=`set X $ac_compile; echo $2`
1748{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1749  (eval $ac_compiler --version </dev/null >&5) 2>&5
1750  ac_status=$?
1751  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1752  (exit $ac_status); }
1753{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1754  (eval $ac_compiler -v </dev/null >&5) 2>&5
1755  ac_status=$?
1756  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1757  (exit $ac_status); }
1758{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1759  (eval $ac_compiler -V </dev/null >&5) 2>&5
1760  ac_status=$?
1761  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1762  (exit $ac_status); }
1763
1764cat >conftest.$ac_ext <<_ACEOF
1765/* confdefs.h.  */
1766_ACEOF
1767cat confdefs.h >>conftest.$ac_ext
1768cat >>conftest.$ac_ext <<_ACEOF
1769/* end confdefs.h.  */
1770
1771int
1772main ()
1773{
1774
1775  ;
1776  return 0;
1777}
1778_ACEOF
1779ac_clean_files_save=$ac_clean_files
1780ac_clean_files="$ac_clean_files a.out a.exe b.out"
1781# Try to create an executable without -o first, disregard a.out.
1782# It will help us diagnose broken compilers, and finding out an intuition
1783# of exeext.
1784echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1785echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1786ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1787if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1788  (eval $ac_link_default) 2>&5
1789  ac_status=$?
1790  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1791  (exit $ac_status); }; then
1792  # Find the output, starting from the most likely.  This scheme is
1793# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1794# resort.
1795
1796# Be careful to initialize this variable, since it used to be cached.
1797# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1798ac_cv_exeext=
1799# b.out is created by i960 compilers.
1800for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1801do
1802  test -f "$ac_file" || continue
1803  case $ac_file in
1804    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1805	;;
1806    conftest.$ac_ext )
1807	# This is the source file.
1808	;;
1809    [ab].out )
1810	# We found the default executable, but exeext='' is most
1811	# certainly right.
1812	break;;
1813    *.* )
1814	ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1815	# FIXME: I believe we export ac_cv_exeext for Libtool,
1816	# but it would be cool to find out if it's true.  Does anybody
1817	# maintain Libtool? --akim.
1818	export ac_cv_exeext
1819	break;;
1820    * )
1821	break;;
1822  esac
1823done
1824else
1825  echo "$as_me: failed program was:" >&5
1826sed 's/^/| /' conftest.$ac_ext >&5
1827
1828{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
1829See \`config.log' for more details." >&5
1830echo "$as_me: error: C compiler cannot create executables
1831See \`config.log' for more details." >&2;}
1832   { (exit 77); exit 77; }; }
1833fi
1834
1835ac_exeext=$ac_cv_exeext
1836echo "$as_me:$LINENO: result: $ac_file" >&5
1837echo "${ECHO_T}$ac_file" >&6
1838
1839# Check the compiler produces executables we can run.  If not, either
1840# the compiler is broken, or we cross compile.
1841echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1842echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1843# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1844# If not cross compiling, check that we can run a simple program.
1845if test "$cross_compiling" != yes; then
1846  if { ac_try='./$ac_file'
1847  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1848  (eval $ac_try) 2>&5
1849  ac_status=$?
1850  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1851  (exit $ac_status); }; }; then
1852    cross_compiling=no
1853  else
1854    if test "$cross_compiling" = maybe; then
1855	cross_compiling=yes
1856    else
1857	{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1858If you meant to cross compile, use \`--host'.
1859See \`config.log' for more details." >&5
1860echo "$as_me: error: cannot run C compiled programs.
1861If you meant to cross compile, use \`--host'.
1862See \`config.log' for more details." >&2;}
1863   { (exit 1); exit 1; }; }
1864    fi
1865  fi
1866fi
1867echo "$as_me:$LINENO: result: yes" >&5
1868echo "${ECHO_T}yes" >&6
1869
1870rm -f a.out a.exe conftest$ac_cv_exeext b.out
1871ac_clean_files=$ac_clean_files_save
1872# Check the compiler produces executables we can run.  If not, either
1873# the compiler is broken, or we cross compile.
1874echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1875echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1876echo "$as_me:$LINENO: result: $cross_compiling" >&5
1877echo "${ECHO_T}$cross_compiling" >&6
1878
1879echo "$as_me:$LINENO: checking for suffix of executables" >&5
1880echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1881if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1882  (eval $ac_link) 2>&5
1883  ac_status=$?
1884  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1885  (exit $ac_status); }; then
1886  # If both `conftest.exe' and `conftest' are `present' (well, observable)
1887# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
1888# work properly (i.e., refer to `conftest.exe'), while it won't with
1889# `rm'.
1890for ac_file in conftest.exe conftest conftest.*; do
1891  test -f "$ac_file" || continue
1892  case $ac_file in
1893    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1894    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1895	  export ac_cv_exeext
1896	  break;;
1897    * ) break;;
1898  esac
1899done
1900else
1901  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1902See \`config.log' for more details." >&5
1903echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1904See \`config.log' for more details." >&2;}
1905   { (exit 1); exit 1; }; }
1906fi
1907
1908rm -f conftest$ac_cv_exeext
1909echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1910echo "${ECHO_T}$ac_cv_exeext" >&6
1911
1912rm -f conftest.$ac_ext
1913EXEEXT=$ac_cv_exeext
1914ac_exeext=$EXEEXT
1915echo "$as_me:$LINENO: checking for suffix of object files" >&5
1916echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1917if test "${ac_cv_objext+set}" = set; then
1918  echo $ECHO_N "(cached) $ECHO_C" >&6
1919else
1920  cat >conftest.$ac_ext <<_ACEOF
1921/* confdefs.h.  */
1922_ACEOF
1923cat confdefs.h >>conftest.$ac_ext
1924cat >>conftest.$ac_ext <<_ACEOF
1925/* end confdefs.h.  */
1926
1927int
1928main ()
1929{
1930
1931  ;
1932  return 0;
1933}
1934_ACEOF
1935rm -f conftest.o conftest.obj
1936if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1937  (eval $ac_compile) 2>&5
1938  ac_status=$?
1939  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1940  (exit $ac_status); }; then
1941  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1942  case $ac_file in
1943    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1944    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1945       break;;
1946  esac
1947done
1948else
1949  echo "$as_me: failed program was:" >&5
1950sed 's/^/| /' conftest.$ac_ext >&5
1951
1952{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1953See \`config.log' for more details." >&5
1954echo "$as_me: error: cannot compute suffix of object files: cannot compile
1955See \`config.log' for more details." >&2;}
1956   { (exit 1); exit 1; }; }
1957fi
1958
1959rm -f conftest.$ac_cv_objext conftest.$ac_ext
1960fi
1961echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1962echo "${ECHO_T}$ac_cv_objext" >&6
1963OBJEXT=$ac_cv_objext
1964ac_objext=$OBJEXT
1965echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1966echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1967if test "${ac_cv_c_compiler_gnu+set}" = set; then
1968  echo $ECHO_N "(cached) $ECHO_C" >&6
1969else
1970  cat >conftest.$ac_ext <<_ACEOF
1971/* confdefs.h.  */
1972_ACEOF
1973cat confdefs.h >>conftest.$ac_ext
1974cat >>conftest.$ac_ext <<_ACEOF
1975/* end confdefs.h.  */
1976
1977int
1978main ()
1979{
1980#ifndef __GNUC__
1981       choke me
1982#endif
1983
1984  ;
1985  return 0;
1986}
1987_ACEOF
1988rm -f conftest.$ac_objext
1989if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1990  (eval $ac_compile) 2>conftest.er1
1991  ac_status=$?
1992  grep -v '^ *+' conftest.er1 >conftest.err
1993  rm -f conftest.er1
1994  cat conftest.err >&5
1995  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1996  (exit $ac_status); } &&
1997	 { ac_try='test -z "$ac_c_werror_flag"
1998			 || test ! -s conftest.err'
1999  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2000  (eval $ac_try) 2>&5
2001  ac_status=$?
2002  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2003  (exit $ac_status); }; } &&
2004	 { ac_try='test -s conftest.$ac_objext'
2005  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2006  (eval $ac_try) 2>&5
2007  ac_status=$?
2008  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2009  (exit $ac_status); }; }; then
2010  ac_compiler_gnu=yes
2011else
2012  echo "$as_me: failed program was:" >&5
2013sed 's/^/| /' conftest.$ac_ext >&5
2014
2015ac_compiler_gnu=no
2016fi
2017rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2018ac_cv_c_compiler_gnu=$ac_compiler_gnu
2019
2020fi
2021echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2022echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2023GCC=`test $ac_compiler_gnu = yes && echo yes`
2024ac_test_CFLAGS=${CFLAGS+set}
2025ac_save_CFLAGS=$CFLAGS
2026CFLAGS="-g"
2027echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2028echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2029if test "${ac_cv_prog_cc_g+set}" = set; then
2030  echo $ECHO_N "(cached) $ECHO_C" >&6
2031else
2032  cat >conftest.$ac_ext <<_ACEOF
2033/* confdefs.h.  */
2034_ACEOF
2035cat confdefs.h >>conftest.$ac_ext
2036cat >>conftest.$ac_ext <<_ACEOF
2037/* end confdefs.h.  */
2038
2039int
2040main ()
2041{
2042
2043  ;
2044  return 0;
2045}
2046_ACEOF
2047rm -f conftest.$ac_objext
2048if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2049  (eval $ac_compile) 2>conftest.er1
2050  ac_status=$?
2051  grep -v '^ *+' conftest.er1 >conftest.err
2052  rm -f conftest.er1
2053  cat conftest.err >&5
2054  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2055  (exit $ac_status); } &&
2056	 { ac_try='test -z "$ac_c_werror_flag"
2057			 || test ! -s conftest.err'
2058  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2059  (eval $ac_try) 2>&5
2060  ac_status=$?
2061  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2062  (exit $ac_status); }; } &&
2063	 { ac_try='test -s conftest.$ac_objext'
2064  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2065  (eval $ac_try) 2>&5
2066  ac_status=$?
2067  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2068  (exit $ac_status); }; }; then
2069  ac_cv_prog_cc_g=yes
2070else
2071  echo "$as_me: failed program was:" >&5
2072sed 's/^/| /' conftest.$ac_ext >&5
2073
2074ac_cv_prog_cc_g=no
2075fi
2076rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2077fi
2078echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2079echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2080if test "$ac_test_CFLAGS" = set; then
2081  CFLAGS=$ac_save_CFLAGS
2082elif test $ac_cv_prog_cc_g = yes; then
2083  if test "$GCC" = yes; then
2084    CFLAGS="-g -O2"
2085  else
2086    CFLAGS="-g"
2087  fi
2088else
2089  if test "$GCC" = yes; then
2090    CFLAGS="-O2"
2091  else
2092    CFLAGS=
2093  fi
2094fi
2095echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2096echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2097if test "${ac_cv_prog_cc_stdc+set}" = set; then
2098  echo $ECHO_N "(cached) $ECHO_C" >&6
2099else
2100  ac_cv_prog_cc_stdc=no
2101ac_save_CC=$CC
2102cat >conftest.$ac_ext <<_ACEOF
2103/* confdefs.h.  */
2104_ACEOF
2105cat confdefs.h >>conftest.$ac_ext
2106cat >>conftest.$ac_ext <<_ACEOF
2107/* end confdefs.h.  */
2108#include <stdarg.h>
2109#include <stdio.h>
2110#include <sys/types.h>
2111#include <sys/stat.h>
2112/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2113struct buf { int x; };
2114FILE * (*rcsopen) (struct buf *, struct stat *, int);
2115static char *e (p, i)
2116     char **p;
2117     int i;
2118{
2119  return p[i];
2120}
2121static char *f (char * (*g) (char **, int), char **p, ...)
2122{
2123  char *s;
2124  va_list v;
2125  va_start (v,p);
2126  s = g (p, va_arg (v,int));
2127  va_end (v);
2128  return s;
2129}
2130
2131/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2132   function prototypes and stuff, but not '\xHH' hex character constants.
2133   These don't provoke an error unfortunately, instead are silently treated
2134   as 'x'.  The following induces an error, until -std1 is added to get
2135   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2136   array size at least.  It's necessary to write '\x00'==0 to get something
2137   that's true only with -std1.  */
2138int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2139
2140int test (int i, double x);
2141struct s1 {int (*f) (int a);};
2142struct s2 {int (*f) (double a);};
2143int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2144int argc;
2145char **argv;
2146int
2147main ()
2148{
2149return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2150  ;
2151  return 0;
2152}
2153_ACEOF
2154# Don't try gcc -ansi; that turns off useful extensions and
2155# breaks some systems' header files.
2156# AIX			-qlanglvl=ansi
2157# Ultrix and OSF/1	-std1
2158# HP-UX 10.20 and later	-Ae
2159# HP-UX older versions	-Aa -D_HPUX_SOURCE
2160# SVR4			-Xc -D__EXTENSIONS__
2161for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2162do
2163  CC="$ac_save_CC $ac_arg"
2164  rm -f conftest.$ac_objext
2165if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2166  (eval $ac_compile) 2>conftest.er1
2167  ac_status=$?
2168  grep -v '^ *+' conftest.er1 >conftest.err
2169  rm -f conftest.er1
2170  cat conftest.err >&5
2171  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2172  (exit $ac_status); } &&
2173	 { ac_try='test -z "$ac_c_werror_flag"
2174			 || test ! -s conftest.err'
2175  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2176  (eval $ac_try) 2>&5
2177  ac_status=$?
2178  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2179  (exit $ac_status); }; } &&
2180	 { ac_try='test -s conftest.$ac_objext'
2181  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2182  (eval $ac_try) 2>&5
2183  ac_status=$?
2184  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2185  (exit $ac_status); }; }; then
2186  ac_cv_prog_cc_stdc=$ac_arg
2187break
2188else
2189  echo "$as_me: failed program was:" >&5
2190sed 's/^/| /' conftest.$ac_ext >&5
2191
2192fi
2193rm -f conftest.err conftest.$ac_objext
2194done
2195rm -f conftest.$ac_ext conftest.$ac_objext
2196CC=$ac_save_CC
2197
2198fi
2199
2200case "x$ac_cv_prog_cc_stdc" in
2201  x|xno)
2202    echo "$as_me:$LINENO: result: none needed" >&5
2203echo "${ECHO_T}none needed" >&6 ;;
2204  *)
2205    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2206echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2207    CC="$CC $ac_cv_prog_cc_stdc" ;;
2208esac
2209
2210# Some people use a C++ compiler to compile C.  Since we use `exit',
2211# in C++ we need to declare it.  In case someone uses the same compiler
2212# for both compiling C and C++ we need to have the C++ compiler decide
2213# the declaration of exit, since it's the most demanding environment.
2214cat >conftest.$ac_ext <<_ACEOF
2215#ifndef __cplusplus
2216  choke me
2217#endif
2218_ACEOF
2219rm -f conftest.$ac_objext
2220if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2221  (eval $ac_compile) 2>conftest.er1
2222  ac_status=$?
2223  grep -v '^ *+' conftest.er1 >conftest.err
2224  rm -f conftest.er1
2225  cat conftest.err >&5
2226  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2227  (exit $ac_status); } &&
2228	 { ac_try='test -z "$ac_c_werror_flag"
2229			 || test ! -s conftest.err'
2230  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2231  (eval $ac_try) 2>&5
2232  ac_status=$?
2233  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2234  (exit $ac_status); }; } &&
2235	 { ac_try='test -s conftest.$ac_objext'
2236  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2237  (eval $ac_try) 2>&5
2238  ac_status=$?
2239  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2240  (exit $ac_status); }; }; then
2241  for ac_declaration in \
2242   '' \
2243   'extern "C" void std::exit (int) throw (); using std::exit;' \
2244   'extern "C" void std::exit (int); using std::exit;' \
2245   'extern "C" void exit (int) throw ();' \
2246   'extern "C" void exit (int);' \
2247   'void exit (int);'
2248do
2249  cat >conftest.$ac_ext <<_ACEOF
2250/* confdefs.h.  */
2251_ACEOF
2252cat confdefs.h >>conftest.$ac_ext
2253cat >>conftest.$ac_ext <<_ACEOF
2254/* end confdefs.h.  */
2255$ac_declaration
2256#include <stdlib.h>
2257int
2258main ()
2259{
2260exit (42);
2261  ;
2262  return 0;
2263}
2264_ACEOF
2265rm -f conftest.$ac_objext
2266if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2267  (eval $ac_compile) 2>conftest.er1
2268  ac_status=$?
2269  grep -v '^ *+' conftest.er1 >conftest.err
2270  rm -f conftest.er1
2271  cat conftest.err >&5
2272  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2273  (exit $ac_status); } &&
2274	 { ac_try='test -z "$ac_c_werror_flag"
2275			 || test ! -s conftest.err'
2276  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2277  (eval $ac_try) 2>&5
2278  ac_status=$?
2279  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2280  (exit $ac_status); }; } &&
2281	 { ac_try='test -s conftest.$ac_objext'
2282  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2283  (eval $ac_try) 2>&5
2284  ac_status=$?
2285  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2286  (exit $ac_status); }; }; then
2287  :
2288else
2289  echo "$as_me: failed program was:" >&5
2290sed 's/^/| /' conftest.$ac_ext >&5
2291
2292continue
2293fi
2294rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2295  cat >conftest.$ac_ext <<_ACEOF
2296/* confdefs.h.  */
2297_ACEOF
2298cat confdefs.h >>conftest.$ac_ext
2299cat >>conftest.$ac_ext <<_ACEOF
2300/* end confdefs.h.  */
2301$ac_declaration
2302int
2303main ()
2304{
2305exit (42);
2306  ;
2307  return 0;
2308}
2309_ACEOF
2310rm -f conftest.$ac_objext
2311if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2312  (eval $ac_compile) 2>conftest.er1
2313  ac_status=$?
2314  grep -v '^ *+' conftest.er1 >conftest.err
2315  rm -f conftest.er1
2316  cat conftest.err >&5
2317  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2318  (exit $ac_status); } &&
2319	 { ac_try='test -z "$ac_c_werror_flag"
2320			 || test ! -s conftest.err'
2321  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2322  (eval $ac_try) 2>&5
2323  ac_status=$?
2324  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2325  (exit $ac_status); }; } &&
2326	 { ac_try='test -s conftest.$ac_objext'
2327  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2328  (eval $ac_try) 2>&5
2329  ac_status=$?
2330  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2331  (exit $ac_status); }; }; then
2332  break
2333else
2334  echo "$as_me: failed program was:" >&5
2335sed 's/^/| /' conftest.$ac_ext >&5
2336
2337fi
2338rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2339done
2340rm -f conftest*
2341if test -n "$ac_declaration"; then
2342  echo '#ifdef __cplusplus' >>confdefs.h
2343  echo $ac_declaration      >>confdefs.h
2344  echo '#endif'             >>confdefs.h
2345fi
2346
2347else
2348  echo "$as_me: failed program was:" >&5
2349sed 's/^/| /' conftest.$ac_ext >&5
2350
2351fi
2352rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2353ac_ext=c
2354ac_cpp='$CPP $CPPFLAGS'
2355ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2356ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2357ac_compiler_gnu=$ac_cv_c_compiler_gnu
2358
2359
2360echo "$as_me:$LINENO: checking for library containing strerror" >&5
2361echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
2362if test "${ac_cv_search_strerror+set}" = set; then
2363  echo $ECHO_N "(cached) $ECHO_C" >&6
2364else
2365  ac_func_search_save_LIBS=$LIBS
2366ac_cv_search_strerror=no
2367cat >conftest.$ac_ext <<_ACEOF
2368/* confdefs.h.  */
2369_ACEOF
2370cat confdefs.h >>conftest.$ac_ext
2371cat >>conftest.$ac_ext <<_ACEOF
2372/* end confdefs.h.  */
2373
2374/* Override any gcc2 internal prototype to avoid an error.  */
2375#ifdef __cplusplus
2376extern "C"
2377#endif
2378/* We use char because int might match the return type of a gcc2
2379   builtin and then its argument prototype would still apply.  */
2380char strerror ();
2381int
2382main ()
2383{
2384strerror ();
2385  ;
2386  return 0;
2387}
2388_ACEOF
2389rm -f conftest.$ac_objext conftest$ac_exeext
2390if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2391  (eval $ac_link) 2>conftest.er1
2392  ac_status=$?
2393  grep -v '^ *+' conftest.er1 >conftest.err
2394  rm -f conftest.er1
2395  cat conftest.err >&5
2396  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2397  (exit $ac_status); } &&
2398	 { ac_try='test -z "$ac_c_werror_flag"
2399			 || test ! -s conftest.err'
2400  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2401  (eval $ac_try) 2>&5
2402  ac_status=$?
2403  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2404  (exit $ac_status); }; } &&
2405	 { ac_try='test -s conftest$ac_exeext'
2406  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2407  (eval $ac_try) 2>&5
2408  ac_status=$?
2409  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2410  (exit $ac_status); }; }; then
2411  ac_cv_search_strerror="none required"
2412else
2413  echo "$as_me: failed program was:" >&5
2414sed 's/^/| /' conftest.$ac_ext >&5
2415
2416fi
2417rm -f conftest.err conftest.$ac_objext \
2418      conftest$ac_exeext conftest.$ac_ext
2419if test "$ac_cv_search_strerror" = no; then
2420  for ac_lib in cposix; do
2421    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
2422    cat >conftest.$ac_ext <<_ACEOF
2423/* confdefs.h.  */
2424_ACEOF
2425cat confdefs.h >>conftest.$ac_ext
2426cat >>conftest.$ac_ext <<_ACEOF
2427/* end confdefs.h.  */
2428
2429/* Override any gcc2 internal prototype to avoid an error.  */
2430#ifdef __cplusplus
2431extern "C"
2432#endif
2433/* We use char because int might match the return type of a gcc2
2434   builtin and then its argument prototype would still apply.  */
2435char strerror ();
2436int
2437main ()
2438{
2439strerror ();
2440  ;
2441  return 0;
2442}
2443_ACEOF
2444rm -f conftest.$ac_objext conftest$ac_exeext
2445if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2446  (eval $ac_link) 2>conftest.er1
2447  ac_status=$?
2448  grep -v '^ *+' conftest.er1 >conftest.err
2449  rm -f conftest.er1
2450  cat conftest.err >&5
2451  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2452  (exit $ac_status); } &&
2453	 { ac_try='test -z "$ac_c_werror_flag"
2454			 || test ! -s conftest.err'
2455  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2456  (eval $ac_try) 2>&5
2457  ac_status=$?
2458  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2459  (exit $ac_status); }; } &&
2460	 { ac_try='test -s conftest$ac_exeext'
2461  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2462  (eval $ac_try) 2>&5
2463  ac_status=$?
2464  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2465  (exit $ac_status); }; }; then
2466  ac_cv_search_strerror="-l$ac_lib"
2467break
2468else
2469  echo "$as_me: failed program was:" >&5
2470sed 's/^/| /' conftest.$ac_ext >&5
2471
2472fi
2473rm -f conftest.err conftest.$ac_objext \
2474      conftest$ac_exeext conftest.$ac_ext
2475  done
2476fi
2477LIBS=$ac_func_search_save_LIBS
2478fi
2479echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
2480echo "${ECHO_T}$ac_cv_search_strerror" >&6
2481if test "$ac_cv_search_strerror" != no; then
2482  test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
2483
2484fi
2485
2486
2487BFD_VERSION=`sed -n -e 's/^.._INIT_AUTOMAKE.*,[ 	]*\([^ 	]*\)[ 	]*).*/\1/p' < ${srcdir}/../bfd/configure.in`
2488am__api_version="1.9"
2489# Find a good install program.  We prefer a C program (faster),
2490# so one script is as good as another.  But avoid the broken or
2491# incompatible versions:
2492# SysV /etc/install, /usr/sbin/install
2493# SunOS /usr/etc/install
2494# IRIX /sbin/install
2495# AIX /bin/install
2496# AmigaOS /C/install, which installs bootblocks on floppy discs
2497# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2498# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2499# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2500# OS/2's system install, which has a completely different semantic
2501# ./install, which can be erroneously created by make from ./install.sh.
2502echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2503echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2504if test -z "$INSTALL"; then
2505if test "${ac_cv_path_install+set}" = set; then
2506  echo $ECHO_N "(cached) $ECHO_C" >&6
2507else
2508  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2509for as_dir in $PATH
2510do
2511  IFS=$as_save_IFS
2512  test -z "$as_dir" && as_dir=.
2513  # Account for people who put trailing slashes in PATH elements.
2514case $as_dir/ in
2515  ./ | .// | /cC/* | \
2516  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2517  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2518  /usr/ucb/* ) ;;
2519  *)
2520    # OSF1 and SCO ODT 3.0 have their own names for install.
2521    # Don't use installbsd from OSF since it installs stuff as root
2522    # by default.
2523    for ac_prog in ginstall scoinst install; do
2524      for ac_exec_ext in '' $ac_executable_extensions; do
2525	if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2526	  if test $ac_prog = install &&
2527	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2528	    # AIX install.  It has an incompatible calling convention.
2529	    :
2530	  elif test $ac_prog = install &&
2531	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2532	    # program-specific install script used by HP pwplus--don't use.
2533	    :
2534	  else
2535	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2536	    break 3
2537	  fi
2538	fi
2539      done
2540    done
2541    ;;
2542esac
2543done
2544
2545
2546fi
2547  if test "${ac_cv_path_install+set}" = set; then
2548    INSTALL=$ac_cv_path_install
2549  else
2550    # As a last resort, use the slow shell script.  We don't cache a
2551    # path for INSTALL within a source directory, because that will
2552    # break other packages using the cache if that directory is
2553    # removed, or if the path is relative.
2554    INSTALL=$ac_install_sh
2555  fi
2556fi
2557echo "$as_me:$LINENO: result: $INSTALL" >&5
2558echo "${ECHO_T}$INSTALL" >&6
2559
2560# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2561# It thinks the first close brace ends the variable substitution.
2562test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2563
2564test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2565
2566test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2567
2568echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2569echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
2570# Just in case
2571sleep 1
2572echo timestamp > conftest.file
2573# Do `set' in a subshell so we don't clobber the current shell's
2574# arguments.  Must try -L first in case configure is actually a
2575# symlink; some systems play weird games with the mod time of symlinks
2576# (eg FreeBSD returns the mod time of the symlink's containing
2577# directory).
2578if (
2579   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2580   if test "$*" = "X"; then
2581      # -L didn't work.
2582      set X `ls -t $srcdir/configure conftest.file`
2583   fi
2584   rm -f conftest.file
2585   if test "$*" != "X $srcdir/configure conftest.file" \
2586      && test "$*" != "X conftest.file $srcdir/configure"; then
2587
2588      # If neither matched, then we have a broken ls.  This can happen
2589      # if, for instance, CONFIG_SHELL is bash and it inherits a
2590      # broken ls alias from the environment.  This has actually
2591      # happened.  Such a system could not be considered "sane".
2592      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2593alias in your environment" >&5
2594echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2595alias in your environment" >&2;}
2596   { (exit 1); exit 1; }; }
2597   fi
2598
2599   test "$2" = conftest.file
2600   )
2601then
2602   # Ok.
2603   :
2604else
2605   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2606Check your system clock" >&5
2607echo "$as_me: error: newly created file is older than distributed files!
2608Check your system clock" >&2;}
2609   { (exit 1); exit 1; }; }
2610fi
2611echo "$as_me:$LINENO: result: yes" >&5
2612echo "${ECHO_T}yes" >&6
2613test "$program_prefix" != NONE &&
2614  program_transform_name="s,^,$program_prefix,;$program_transform_name"
2615# Use a double $ so make ignores it.
2616test "$program_suffix" != NONE &&
2617  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
2618# Double any \ or $.  echo might interpret backslashes.
2619# By default was `s,x,x', remove it if useless.
2620cat <<\_ACEOF >conftest.sed
2621s/[\\$]/&&/g;s/;s,x,x,$//
2622_ACEOF
2623program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2624rm conftest.sed
2625
2626# expand $ac_aux_dir to an absolute path
2627am_aux_dir=`cd $ac_aux_dir && pwd`
2628
2629test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2630# Use eval to expand $SHELL
2631if eval "$MISSING --run true"; then
2632  am_missing_run="$MISSING --run "
2633else
2634  am_missing_run=
2635  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2636echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2637fi
2638
2639if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2640  # We used to keeping the `.' as first argument, in order to
2641  # allow $(mkdir_p) to be used without argument.  As in
2642  #   $(mkdir_p) $(somedir)
2643  # where $(somedir) is conditionally defined.  However this is wrong
2644  # for two reasons:
2645  #  1. if the package is installed by a user who cannot write `.'
2646  #     make install will fail,
2647  #  2. the above comment should most certainly read
2648  #     $(mkdir_p) $(DESTDIR)$(somedir)
2649  #     so it does not work when $(somedir) is undefined and
2650  #     $(DESTDIR) is not.
2651  #  To support the latter case, we have to write
2652  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2653  #  so the `.' trick is pointless.
2654  mkdir_p='mkdir -p --'
2655else
2656  # On NextStep and OpenStep, the `mkdir' command does not
2657  # recognize any option.  It will interpret all options as
2658  # directories to create, and then abort because `.' already
2659  # exists.
2660  for d in ./-p ./--version;
2661  do
2662    test -d $d && rmdir $d
2663  done
2664  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2665  if test -f "$ac_aux_dir/mkinstalldirs"; then
2666    mkdir_p='$(mkinstalldirs)'
2667  else
2668    mkdir_p='$(install_sh) -d'
2669  fi
2670fi
2671
2672for ac_prog in gawk mawk nawk awk
2673do
2674  # Extract the first word of "$ac_prog", so it can be a program name with args.
2675set dummy $ac_prog; ac_word=$2
2676echo "$as_me:$LINENO: checking for $ac_word" >&5
2677echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2678if test "${ac_cv_prog_AWK+set}" = set; then
2679  echo $ECHO_N "(cached) $ECHO_C" >&6
2680else
2681  if test -n "$AWK"; then
2682  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2683else
2684as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2685for as_dir in $PATH
2686do
2687  IFS=$as_save_IFS
2688  test -z "$as_dir" && as_dir=.
2689  for ac_exec_ext in '' $ac_executable_extensions; do
2690  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2691    ac_cv_prog_AWK="$ac_prog"
2692    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2693    break 2
2694  fi
2695done
2696done
2697
2698fi
2699fi
2700AWK=$ac_cv_prog_AWK
2701if test -n "$AWK"; then
2702  echo "$as_me:$LINENO: result: $AWK" >&5
2703echo "${ECHO_T}$AWK" >&6
2704else
2705  echo "$as_me:$LINENO: result: no" >&5
2706echo "${ECHO_T}no" >&6
2707fi
2708
2709  test -n "$AWK" && break
2710done
2711
2712echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2713echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
2714set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
2715if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2716  echo $ECHO_N "(cached) $ECHO_C" >&6
2717else
2718  cat >conftest.make <<\_ACEOF
2719all:
2720	@echo 'ac_maketemp="$(MAKE)"'
2721_ACEOF
2722# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2723eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
2724if test -n "$ac_maketemp"; then
2725  eval ac_cv_prog_make_${ac_make}_set=yes
2726else
2727  eval ac_cv_prog_make_${ac_make}_set=no
2728fi
2729rm -f conftest.make
2730fi
2731if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2732  echo "$as_me:$LINENO: result: yes" >&5
2733echo "${ECHO_T}yes" >&6
2734  SET_MAKE=
2735else
2736  echo "$as_me:$LINENO: result: no" >&5
2737echo "${ECHO_T}no" >&6
2738  SET_MAKE="MAKE=${MAKE-make}"
2739fi
2740
2741rm -rf .tst 2>/dev/null
2742mkdir .tst 2>/dev/null
2743if test -d .tst; then
2744  am__leading_dot=.
2745else
2746  am__leading_dot=_
2747fi
2748rmdir .tst 2>/dev/null
2749
2750DEPDIR="${am__leading_dot}deps"
2751
2752          ac_config_commands="$ac_config_commands depfiles"
2753
2754
2755am_make=${MAKE-make}
2756cat > confinc << 'END'
2757am__doit:
2758	@echo done
2759.PHONY: am__doit
2760END
2761# If we don't find an include directive, just comment out the code.
2762echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2763echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2764am__include="#"
2765am__quote=
2766_am_result=none
2767# First try GNU make style include.
2768echo "include confinc" > confmf
2769# We grep out `Entering directory' and `Leaving directory'
2770# messages which can occur if `w' ends up in MAKEFLAGS.
2771# In particular we don't look at `^make:' because GNU make might
2772# be invoked under some other name (usually "gmake"), in which
2773# case it prints its new name instead of `make'.
2774if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2775   am__include=include
2776   am__quote=
2777   _am_result=GNU
2778fi
2779# Now try BSD make style include.
2780if test "$am__include" = "#"; then
2781   echo '.include "confinc"' > confmf
2782   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2783      am__include=.include
2784      am__quote="\""
2785      _am_result=BSD
2786   fi
2787fi
2788
2789
2790echo "$as_me:$LINENO: result: $_am_result" >&5
2791echo "${ECHO_T}$_am_result" >&6
2792rm -f confinc confmf
2793
2794# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2795if test "${enable_dependency_tracking+set}" = set; then
2796  enableval="$enable_dependency_tracking"
2797
2798fi;
2799if test "x$enable_dependency_tracking" != xno; then
2800  am_depcomp="$ac_aux_dir/depcomp"
2801  AMDEPBACKSLASH='\'
2802fi
2803
2804
2805if test "x$enable_dependency_tracking" != xno; then
2806  AMDEP_TRUE=
2807  AMDEP_FALSE='#'
2808else
2809  AMDEP_TRUE='#'
2810  AMDEP_FALSE=
2811fi
2812
2813
2814
2815# test to see if srcdir already configured
2816if test "`cd $srcdir && pwd`" != "`pwd`" &&
2817   test -f $srcdir/config.status; then
2818  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2819echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2820   { (exit 1); exit 1; }; }
2821fi
2822
2823# test whether we have cygpath
2824if test -z "$CYGPATH_W"; then
2825  if (cygpath --version) >/dev/null 2>/dev/null; then
2826    CYGPATH_W='cygpath -w'
2827  else
2828    CYGPATH_W=echo
2829  fi
2830fi
2831
2832
2833# Define the identity of the package.
2834 PACKAGE=binutils
2835 VERSION=${BFD_VERSION}
2836
2837
2838cat >>confdefs.h <<_ACEOF
2839#define PACKAGE "$PACKAGE"
2840_ACEOF
2841
2842
2843cat >>confdefs.h <<_ACEOF
2844#define VERSION "$VERSION"
2845_ACEOF
2846
2847# Some tools Automake needs.
2848
2849ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2850
2851
2852AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2853
2854
2855AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2856
2857
2858AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2859
2860
2861MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2862
2863install_sh=${install_sh-"$am_aux_dir/install-sh"}
2864
2865# Installed binaries are usually stripped using `strip' when the user
2866# run `make install-strip'.  However `strip' might not be the right
2867# tool to use in cross-compilation environments, therefore Automake
2868# will honor the `STRIP' environment variable to overrule this program.
2869if test "$cross_compiling" != no; then
2870  if test -n "$ac_tool_prefix"; then
2871  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2872set dummy ${ac_tool_prefix}strip; ac_word=$2
2873echo "$as_me:$LINENO: checking for $ac_word" >&5
2874echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2875if test "${ac_cv_prog_STRIP+set}" = set; then
2876  echo $ECHO_N "(cached) $ECHO_C" >&6
2877else
2878  if test -n "$STRIP"; then
2879  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2880else
2881as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2882for as_dir in $PATH
2883do
2884  IFS=$as_save_IFS
2885  test -z "$as_dir" && as_dir=.
2886  for ac_exec_ext in '' $ac_executable_extensions; do
2887  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2888    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2889    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2890    break 2
2891  fi
2892done
2893done
2894
2895fi
2896fi
2897STRIP=$ac_cv_prog_STRIP
2898if test -n "$STRIP"; then
2899  echo "$as_me:$LINENO: result: $STRIP" >&5
2900echo "${ECHO_T}$STRIP" >&6
2901else
2902  echo "$as_me:$LINENO: result: no" >&5
2903echo "${ECHO_T}no" >&6
2904fi
2905
2906fi
2907if test -z "$ac_cv_prog_STRIP"; then
2908  ac_ct_STRIP=$STRIP
2909  # Extract the first word of "strip", so it can be a program name with args.
2910set dummy strip; ac_word=$2
2911echo "$as_me:$LINENO: checking for $ac_word" >&5
2912echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2913if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2914  echo $ECHO_N "(cached) $ECHO_C" >&6
2915else
2916  if test -n "$ac_ct_STRIP"; then
2917  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2918else
2919as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2920for as_dir in $PATH
2921do
2922  IFS=$as_save_IFS
2923  test -z "$as_dir" && as_dir=.
2924  for ac_exec_ext in '' $ac_executable_extensions; do
2925  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2926    ac_cv_prog_ac_ct_STRIP="strip"
2927    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2928    break 2
2929  fi
2930done
2931done
2932
2933  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
2934fi
2935fi
2936ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2937if test -n "$ac_ct_STRIP"; then
2938  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2939echo "${ECHO_T}$ac_ct_STRIP" >&6
2940else
2941  echo "$as_me:$LINENO: result: no" >&5
2942echo "${ECHO_T}no" >&6
2943fi
2944
2945  STRIP=$ac_ct_STRIP
2946else
2947  STRIP="$ac_cv_prog_STRIP"
2948fi
2949
2950fi
2951INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2952
2953# We need awk for the "check" target.  The system "awk" is bad on
2954# some platforms.
2955# Always define AMTAR for backward compatibility.
2956
2957AMTAR=${AMTAR-"${am_missing_run}tar"}
2958
2959am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2960
2961
2962
2963
2964depcc="$CC"   am_compiler_list=
2965
2966echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2967echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2968if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2969  echo $ECHO_N "(cached) $ECHO_C" >&6
2970else
2971  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2972  # We make a subdir and do the tests there.  Otherwise we can end up
2973  # making bogus files that we don't know about and never remove.  For
2974  # instance it was reported that on HP-UX the gcc test will end up
2975  # making a dummy file named `D' -- because `-MD' means `put the output
2976  # in D'.
2977  mkdir conftest.dir
2978  # Copy depcomp to subdir because otherwise we won't find it if we're
2979  # using a relative directory.
2980  cp "$am_depcomp" conftest.dir
2981  cd conftest.dir
2982  # We will build objects and dependencies in a subdirectory because
2983  # it helps to detect inapplicable dependency modes.  For instance
2984  # both Tru64's cc and ICC support -MD to output dependencies as a
2985  # side effect of compilation, but ICC will put the dependencies in
2986  # the current directory while Tru64 will put them in the object
2987  # directory.
2988  mkdir sub
2989
2990  am_cv_CC_dependencies_compiler_type=none
2991  if test "$am_compiler_list" = ""; then
2992     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2993  fi
2994  for depmode in $am_compiler_list; do
2995    # Setup a source with many dependencies, because some compilers
2996    # like to wrap large dependency lists on column 80 (with \), and
2997    # we should not choose a depcomp mode which is confused by this.
2998    #
2999    # We need to recreate these files for each test, as the compiler may
3000    # overwrite some of them when testing with obscure command lines.
3001    # This happens at least with the AIX C compiler.
3002    : > sub/conftest.c
3003    for i in 1 2 3 4 5 6; do
3004      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3005      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3006      # Solaris 8's {/usr,}/bin/sh.
3007      touch sub/conftst$i.h
3008    done
3009    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3010
3011    case $depmode in
3012    nosideeffect)
3013      # after this tag, mechanisms are not by side-effect, so they'll
3014      # only be used when explicitly requested
3015      if test "x$enable_dependency_tracking" = xyes; then
3016	continue
3017      else
3018	break
3019      fi
3020      ;;
3021    none) break ;;
3022    esac
3023    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3024    # mode.  It turns out that the SunPro C++ compiler does not properly
3025    # handle `-M -o', and we need to detect this.
3026    if depmode=$depmode \
3027       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3028       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3029       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3030         >/dev/null 2>conftest.err &&
3031       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3032       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3033       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3034      # icc doesn't choke on unknown options, it will just issue warnings
3035      # or remarks (even with -Werror).  So we grep stderr for any message
3036      # that says an option was ignored or not supported.
3037      # When given -MP, icc 7.0 and 7.1 complain thusly:
3038      #   icc: Command line warning: ignoring option '-M'; no argument required
3039      # The diagnosis changed in icc 8.0:
3040      #   icc: Command line remark: option '-MP' not supported
3041      if (grep 'ignoring option' conftest.err ||
3042          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3043        am_cv_CC_dependencies_compiler_type=$depmode
3044        break
3045      fi
3046    fi
3047  done
3048
3049  cd ..
3050  rm -rf conftest.dir
3051else
3052  am_cv_CC_dependencies_compiler_type=none
3053fi
3054
3055fi
3056echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3057echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3058CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3059
3060
3061
3062if
3063  test "x$enable_dependency_tracking" != xno \
3064  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3065  am__fastdepCC_TRUE=
3066  am__fastdepCC_FALSE='#'
3067else
3068  am__fastdepCC_TRUE='#'
3069  am__fastdepCC_FALSE=
3070fi
3071
3072
3073
3074
3075# Check whether --enable-shared or --disable-shared was given.
3076if test "${enable_shared+set}" = set; then
3077  enableval="$enable_shared"
3078  p=${PACKAGE-default}
3079case $enableval in
3080yes) enable_shared=yes ;;
3081no) enable_shared=no ;;
3082*)
3083  enable_shared=no
3084  # Look at the argument we got.  We use all the common list separators.
3085  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3086  for pkg in $enableval; do
3087    if test "X$pkg" = "X$p"; then
3088      enable_shared=yes
3089    fi
3090  done
3091  IFS="$ac_save_ifs"
3092  ;;
3093esac
3094else
3095  enable_shared=yes
3096fi;
3097# Check whether --enable-static or --disable-static was given.
3098if test "${enable_static+set}" = set; then
3099  enableval="$enable_static"
3100  p=${PACKAGE-default}
3101case $enableval in
3102yes) enable_static=yes ;;
3103no) enable_static=no ;;
3104*)
3105  enable_static=no
3106  # Look at the argument we got.  We use all the common list separators.
3107  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3108  for pkg in $enableval; do
3109    if test "X$pkg" = "X$p"; then
3110      enable_static=yes
3111    fi
3112  done
3113  IFS="$ac_save_ifs"
3114  ;;
3115esac
3116else
3117  enable_static=yes
3118fi;
3119# Check whether --enable-fast-install or --disable-fast-install was given.
3120if test "${enable_fast_install+set}" = set; then
3121  enableval="$enable_fast_install"
3122  p=${PACKAGE-default}
3123case $enableval in
3124yes) enable_fast_install=yes ;;
3125no) enable_fast_install=no ;;
3126*)
3127  enable_fast_install=no
3128  # Look at the argument we got.  We use all the common list separators.
3129  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3130  for pkg in $enableval; do
3131    if test "X$pkg" = "X$p"; then
3132      enable_fast_install=yes
3133    fi
3134  done
3135  IFS="$ac_save_ifs"
3136  ;;
3137esac
3138else
3139  enable_fast_install=yes
3140fi;
3141
3142# Check whether --with-gnu-ld or --without-gnu-ld was given.
3143if test "${with_gnu_ld+set}" = set; then
3144  withval="$with_gnu_ld"
3145  test "$withval" = no || with_gnu_ld=yes
3146else
3147  with_gnu_ld=no
3148fi;
3149ac_prog=ld
3150if test "$GCC" = yes; then
3151  # Check if gcc -print-prog-name=ld gives a path.
3152  echo "$as_me:$LINENO: checking for ld used by GCC" >&5
3153echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
3154  case $host in
3155  *-*-mingw*)
3156    # gcc leaves a trailing carriage return which upsets mingw
3157    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3158  *)
3159    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3160  esac
3161  case $ac_prog in
3162    # Accept absolute paths.
3163    [\\/]* | [A-Za-z]:[\\/]*)
3164      re_direlt='/[^/][^/]*/\.\./'
3165      # Canonicalize the path of ld
3166      ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3167      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3168	ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3169      done
3170      test -z "$LD" && LD="$ac_prog"
3171      ;;
3172  "")
3173    # If it fails, then pretend we aren't using GCC.
3174    ac_prog=ld
3175    ;;
3176  *)
3177    # If it is relative, then search for the first ld in PATH.
3178    with_gnu_ld=unknown
3179    ;;
3180  esac
3181elif test "$with_gnu_ld" = yes; then
3182  echo "$as_me:$LINENO: checking for GNU ld" >&5
3183echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3184else
3185  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3186echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3187fi
3188if test "${lt_cv_path_LD+set}" = set; then
3189  echo $ECHO_N "(cached) $ECHO_C" >&6
3190else
3191  if test -z "$LD"; then
3192  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3193  for ac_dir in $PATH; do
3194    test -z "$ac_dir" && ac_dir=.
3195    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3196      lt_cv_path_LD="$ac_dir/$ac_prog"
3197      # Check to see if the program is GNU ld.  I'd rather use --version,
3198      # but apparently some GNU ld's only accept -v.
3199      # Break only if it was the GNU/non-GNU ld that we prefer.
3200      if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
3201	test "$with_gnu_ld" != no && break
3202      else
3203	test "$with_gnu_ld" != yes && break
3204      fi
3205    fi
3206  done
3207  IFS="$ac_save_ifs"
3208else
3209  lt_cv_path_LD="$LD" # Let the user override the test with a path.
3210fi
3211fi
3212
3213LD="$lt_cv_path_LD"
3214if test -n "$LD"; then
3215  echo "$as_me:$LINENO: result: $LD" >&5
3216echo "${ECHO_T}$LD" >&6
3217else
3218  echo "$as_me:$LINENO: result: no" >&5
3219echo "${ECHO_T}no" >&6
3220fi
3221test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3222echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3223   { (exit 1); exit 1; }; }
3224echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3225echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3226if test "${lt_cv_prog_gnu_ld+set}" = set; then
3227  echo $ECHO_N "(cached) $ECHO_C" >&6
3228else
3229  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3230if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3231  lt_cv_prog_gnu_ld=yes
3232else
3233  lt_cv_prog_gnu_ld=no
3234fi
3235fi
3236echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3237echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3238with_gnu_ld=$lt_cv_prog_gnu_ld
3239
3240
3241echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3242echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3243if test "${lt_cv_ld_reload_flag+set}" = set; then
3244  echo $ECHO_N "(cached) $ECHO_C" >&6
3245else
3246  lt_cv_ld_reload_flag='-r'
3247fi
3248echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3249echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3250reload_flag=$lt_cv_ld_reload_flag
3251test -n "$reload_flag" && reload_flag=" $reload_flag"
3252
3253echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3254echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3255if test "${lt_cv_path_NM+set}" = set; then
3256  echo $ECHO_N "(cached) $ECHO_C" >&6
3257else
3258  if test -n "$NM"; then
3259  # Let the user override the test.
3260  lt_cv_path_NM="$NM"
3261else
3262  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3263  for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3264    test -z "$ac_dir" && ac_dir=.
3265    tmp_nm=$ac_dir/${ac_tool_prefix}nm
3266    if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
3267      # Check to see if the nm accepts a BSD-compat flag.
3268      # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3269      #   nm: unknown option "B" ignored
3270      # Tru64's nm complains that /dev/null is an invalid object file
3271      if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
3272	lt_cv_path_NM="$tmp_nm -B"
3273	break
3274      elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3275	lt_cv_path_NM="$tmp_nm -p"
3276	break
3277      else
3278	lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3279	continue # so that we can try to find one that supports BSD flags
3280      fi
3281    fi
3282  done
3283  IFS="$ac_save_ifs"
3284  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3285fi
3286fi
3287
3288NM="$lt_cv_path_NM"
3289echo "$as_me:$LINENO: result: $NM" >&5
3290echo "${ECHO_T}$NM" >&6
3291
3292echo "$as_me:$LINENO: checking whether ln -s works" >&5
3293echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3294LN_S=$as_ln_s
3295if test "$LN_S" = "ln -s"; then
3296  echo "$as_me:$LINENO: result: yes" >&5
3297echo "${ECHO_T}yes" >&6
3298else
3299  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3300echo "${ECHO_T}no, using $LN_S" >&6
3301fi
3302
3303echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
3304echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
3305if test "${lt_cv_deplibs_check_method+set}" = set; then
3306  echo $ECHO_N "(cached) $ECHO_C" >&6
3307else
3308  lt_cv_file_magic_cmd='$MAGIC_CMD'
3309lt_cv_file_magic_test_file=
3310lt_cv_deplibs_check_method='unknown'
3311# Need to set the preceding variable on all platforms that support
3312# interlibrary dependencies.
3313# 'none' -- dependencies not supported.
3314# `unknown' -- same as none, but documents that we really don't know.
3315# 'pass_all' -- all dependencies passed with no checks.
3316# 'test_compile' -- check by making test program.
3317# 'file_magic [regex]' -- check by looking for files in library path
3318# which responds to the $file_magic_cmd with a given egrep regex.
3319# If you have `file' or equivalent on your system and you're not sure
3320# whether `pass_all' will *always* work, you probably want this one.
3321
3322case $host_os in
3323aix*)
3324  lt_cv_deplibs_check_method=pass_all
3325  ;;
3326
3327beos*)
3328  lt_cv_deplibs_check_method=pass_all
3329  ;;
3330
3331haiku*)
3332  lt_cv_deplibs_check_method=pass_all
3333  ;;
3334
3335bsdi4*)
3336  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3337  lt_cv_file_magic_cmd='/usr/bin/file -L'
3338  lt_cv_file_magic_test_file=/shlib/libc.so
3339  ;;
3340
3341cygwin* | mingw* |pw32*)
3342  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3343  lt_cv_file_magic_cmd='$OBJDUMP -f'
3344  ;;
3345
3346darwin* | rhapsody*)
3347  # this will be overwritten by pass_all, but leave it in just in case
3348  lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3349  lt_cv_file_magic_cmd='/usr/bin/file -L'
3350  case "$host_os" in
3351  rhapsody* | darwin1.012)
3352    lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
3353    ;;
3354  *) # Darwin 1.3 on
3355    lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3356    ;;
3357  esac
3358  lt_cv_deplibs_check_method=pass_all
3359  ;;
3360
3361freebsd* | kfreebsd*-gnu)
3362  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3363    case $host_cpu in
3364    i*86 )
3365      # Not sure whether the presence of OpenBSD here was a mistake.
3366      # Let's accept both of them until this is cleared up.
3367      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3368      lt_cv_file_magic_cmd=/usr/bin/file
3369      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3370      ;;
3371    esac
3372  else
3373    lt_cv_deplibs_check_method=pass_all
3374  fi
3375  ;;
3376
3377gnu*)
3378  lt_cv_deplibs_check_method=pass_all
3379  ;;
3380
3381hpux10.20*|hpux11*)
3382  case $host_cpu in
3383  hppa*)
3384    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3385    lt_cv_file_magic_cmd=/usr/bin/file
3386    lt_cv_file_magic_test_file=/usr/lib/libc.sl
3387    ;;
3388  ia64*)
3389    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3390    lt_cv_file_magic_cmd=/usr/bin/file
3391    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3392    ;;
3393  esac
3394  ;;
3395
3396irix5* | irix6*)
3397  case $host_os in
3398  irix5*)
3399    # this will be overridden with pass_all, but let us keep it just in case
3400    lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3401    ;;
3402  *)
3403    case $LD in
3404    *-32|*"-32 ") libmagic=32-bit;;
3405    *-n32|*"-n32 ") libmagic=N32;;
3406    *-64|*"-64 ") libmagic=64-bit;;
3407    *) libmagic=never-match;;
3408    esac
3409    # this will be overridden with pass_all, but let us keep it just in case
3410    lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3411    ;;
3412  esac
3413  lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3414  lt_cv_deplibs_check_method=pass_all
3415  ;;
3416
3417# This must be Linux ELF.
3418linux-gnu*)
3419  lt_cv_deplibs_check_method=pass_all
3420  ;;
3421
3422netbsd* | knetbsd*-gnu)
3423  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3424    lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
3425  else
3426    lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
3427  fi
3428  ;;
3429
3430newsos6)
3431  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3432  lt_cv_file_magic_cmd=/usr/bin/file
3433  lt_cv_file_magic_test_file=/usr/lib/libnls.so
3434  ;;
3435
3436osf3* | osf4* | osf5*)
3437  # this will be overridden with pass_all, but let us keep it just in case
3438  lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3439  lt_cv_file_magic_test_file=/shlib/libc.so
3440  lt_cv_deplibs_check_method=pass_all
3441  ;;
3442
3443sco3.2v5*)
3444  lt_cv_deplibs_check_method=pass_all
3445  ;;
3446
3447solaris*)
3448  lt_cv_deplibs_check_method=pass_all
3449  lt_cv_file_magic_test_file=/lib/libc.so
3450  ;;
3451
3452sysv5uw[78]* | sysv4*uw2*)
3453  lt_cv_deplibs_check_method=pass_all
3454  ;;
3455
3456sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3457  case $host_vendor in
3458  ncr)
3459    lt_cv_deplibs_check_method=pass_all
3460    ;;
3461  motorola)
3462    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
3463    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3464    ;;
3465  esac
3466  ;;
3467esac
3468
3469fi
3470echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3471echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3472file_magic_cmd=$lt_cv_file_magic_cmd
3473deplibs_check_method=$lt_cv_deplibs_check_method
3474
3475
3476
3477
3478# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
3479
3480# find the maximum length of command line arguments
3481echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
3482echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
3483if test "${lt_cv_sys_max_cmd_len+set}" = set; then
3484  echo $ECHO_N "(cached) $ECHO_C" >&6
3485else
3486    i=0
3487  teststring="ABCD"
3488
3489  case $build_os in
3490  msdosdjgpp*)
3491    # On DJGPP, this test can blow up pretty badly due to problems in libc
3492    # (any single argument exceeding 2000 bytes causes a buffer overrun
3493    # during glob expansion).  Even if it were fixed, the result of this
3494    # check would be larger than it should be.
3495    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
3496    ;;
3497
3498  cygwin* | mingw*)
3499    # On Win9x/ME, this test blows up -- it succeeds, but takes
3500    # about 5 minutes as the teststring grows exponentially.
3501    # Worse, since 9x/ME are not pre-emptively multitasking,
3502    # you end up with a "frozen" computer, even though with patience
3503    # the test eventually succeeds (with a max line length of 256k).
3504    # Instead, let's just punt: use the minimum linelength reported by
3505    # all of the supported platforms: 8192 (on NT/2K/XP).
3506    lt_cv_sys_max_cmd_len=8192;
3507    ;;
3508
3509  amigaos*)
3510    # On AmigaOS with pdksh, this test takes hours, literally.
3511    # So we just punt and use a minimum line length of 8192.
3512    lt_cv_sys_max_cmd_len=8192;
3513    ;;
3514
3515  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
3516    # This has been around since 386BSD, at least.  Likely further.
3517    if test -x /sbin/sysctl; then
3518      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
3519    elif test -x /usr/sbin/sysctl; then
3520      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
3521    else
3522      lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
3523    fi
3524    # And add a safety zone
3525    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
3526    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
3527    ;;
3528  esac
3529
3530fi
3531
3532if test -n "$lt_cv_sys_max_cmd_len" ; then
3533  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
3534echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
3535else
3536  echo "$as_me:$LINENO: result: none" >&5
3537echo "${ECHO_T}none" >&6
3538fi
3539
3540
3541# Only perform the check for file, if the check method requires it
3542case $deplibs_check_method in
3543file_magic*)
3544  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
3545    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
3546echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
3547if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3548  echo $ECHO_N "(cached) $ECHO_C" >&6
3549else
3550  case $MAGIC_CMD in
3551  /*)
3552  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3553  ;;
3554  ?:/*)
3555  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3556  ;;
3557  *)
3558  ac_save_MAGIC_CMD="$MAGIC_CMD"
3559  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
3560  ac_dummy="/usr/bin:$PATH"
3561  for ac_dir in $ac_dummy; do
3562    test -z "$ac_dir" && ac_dir=.
3563    if test -f $ac_dir/${ac_tool_prefix}file; then
3564      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
3565      if test -n "$file_magic_test_file"; then
3566	case $deplibs_check_method in
3567	"file_magic "*)
3568	  file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3569	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3570	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3571	    egrep "$file_magic_regex" > /dev/null; then
3572	    :
3573	  else
3574	    cat <<EOF 1>&2
3575
3576*** Warning: the command libtool uses to detect shared libraries,
3577*** $file_magic_cmd, produces output that libtool cannot recognize.
3578*** The result is that libtool may fail to recognize shared libraries
3579*** as such.  This will affect the creation of libtool libraries that
3580*** depend on shared libraries, but programs linked with such libtool
3581*** libraries will work regardless of this problem.  Nevertheless, you
3582*** may want to report the problem to your system manager and/or to
3583*** bug-libtool@gnu.org
3584
3585EOF
3586	  fi ;;
3587	esac
3588      fi
3589      break
3590    fi
3591  done
3592  IFS="$ac_save_ifs"
3593  MAGIC_CMD="$ac_save_MAGIC_CMD"
3594  ;;
3595esac
3596fi
3597
3598MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3599if test -n "$MAGIC_CMD"; then
3600  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
3601echo "${ECHO_T}$MAGIC_CMD" >&6
3602else
3603  echo "$as_me:$LINENO: result: no" >&5
3604echo "${ECHO_T}no" >&6
3605fi
3606
3607if test -z "$lt_cv_path_MAGIC_CMD"; then
3608  if test -n "$ac_tool_prefix"; then
3609    echo "$as_me:$LINENO: checking for file" >&5
3610echo $ECHO_N "checking for file... $ECHO_C" >&6
3611if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3612  echo $ECHO_N "(cached) $ECHO_C" >&6
3613else
3614  case $MAGIC_CMD in
3615  /*)
3616  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3617  ;;
3618  ?:/*)
3619  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3620  ;;
3621  *)
3622  ac_save_MAGIC_CMD="$MAGIC_CMD"
3623  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
3624  ac_dummy="/usr/bin:$PATH"
3625  for ac_dir in $ac_dummy; do
3626    test -z "$ac_dir" && ac_dir=.
3627    if test -f $ac_dir/file; then
3628      lt_cv_path_MAGIC_CMD="$ac_dir/file"
3629      if test -n "$file_magic_test_file"; then
3630	case $deplibs_check_method in
3631	"file_magic "*)
3632	  file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3633	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3634	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3635	    egrep "$file_magic_regex" > /dev/null; then
3636	    :
3637	  else
3638	    cat <<EOF 1>&2
3639
3640*** Warning: the command libtool uses to detect shared libraries,
3641*** $file_magic_cmd, produces output that libtool cannot recognize.
3642*** The result is that libtool may fail to recognize shared libraries
3643*** as such.  This will affect the creation of libtool libraries that
3644*** depend on shared libraries, but programs linked with such libtool
3645*** libraries will work regardless of this problem.  Nevertheless, you
3646*** may want to report the problem to your system manager and/or to
3647*** bug-libtool@gnu.org
3648
3649EOF
3650	  fi ;;
3651	esac
3652      fi
3653      break
3654    fi
3655  done
3656  IFS="$ac_save_ifs"
3657  MAGIC_CMD="$ac_save_MAGIC_CMD"
3658  ;;
3659esac
3660fi
3661
3662MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3663if test -n "$MAGIC_CMD"; then
3664  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
3665echo "${ECHO_T}$MAGIC_CMD" >&6
3666else
3667  echo "$as_me:$LINENO: result: no" >&5
3668echo "${ECHO_T}no" >&6
3669fi
3670
3671  else
3672    MAGIC_CMD=:
3673  fi
3674fi
3675
3676  fi
3677  ;;
3678esac
3679
3680if test -n "$ac_tool_prefix"; then
3681  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3682set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3683echo "$as_me:$LINENO: checking for $ac_word" >&5
3684echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3685if test "${ac_cv_prog_RANLIB+set}" = set; then
3686  echo $ECHO_N "(cached) $ECHO_C" >&6
3687else
3688  if test -n "$RANLIB"; then
3689  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3690else
3691as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3692for as_dir in $PATH
3693do
3694  IFS=$as_save_IFS
3695  test -z "$as_dir" && as_dir=.
3696  for ac_exec_ext in '' $ac_executable_extensions; do
3697  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3698    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3699    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3700    break 2
3701  fi
3702done
3703done
3704
3705fi
3706fi
3707RANLIB=$ac_cv_prog_RANLIB
3708if test -n "$RANLIB"; then
3709  echo "$as_me:$LINENO: result: $RANLIB" >&5
3710echo "${ECHO_T}$RANLIB" >&6
3711else
3712  echo "$as_me:$LINENO: result: no" >&5
3713echo "${ECHO_T}no" >&6
3714fi
3715
3716fi
3717if test -z "$ac_cv_prog_RANLIB"; then
3718  ac_ct_RANLIB=$RANLIB
3719  # Extract the first word of "ranlib", so it can be a program name with args.
3720set dummy ranlib; ac_word=$2
3721echo "$as_me:$LINENO: checking for $ac_word" >&5
3722echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3723if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3724  echo $ECHO_N "(cached) $ECHO_C" >&6
3725else
3726  if test -n "$ac_ct_RANLIB"; then
3727  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3728else
3729as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3730for as_dir in $PATH
3731do
3732  IFS=$as_save_IFS
3733  test -z "$as_dir" && as_dir=.
3734  for ac_exec_ext in '' $ac_executable_extensions; do
3735  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3736    ac_cv_prog_ac_ct_RANLIB="ranlib"
3737    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3738    break 2
3739  fi
3740done
3741done
3742
3743  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3744fi
3745fi
3746ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3747if test -n "$ac_ct_RANLIB"; then
3748  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3749echo "${ECHO_T}$ac_ct_RANLIB" >&6
3750else
3751  echo "$as_me:$LINENO: result: no" >&5
3752echo "${ECHO_T}no" >&6
3753fi
3754
3755  RANLIB=$ac_ct_RANLIB
3756else
3757  RANLIB="$ac_cv_prog_RANLIB"
3758fi
3759
3760if test -n "$ac_tool_prefix"; then
3761  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3762set dummy ${ac_tool_prefix}strip; ac_word=$2
3763echo "$as_me:$LINENO: checking for $ac_word" >&5
3764echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3765if test "${ac_cv_prog_STRIP+set}" = set; then
3766  echo $ECHO_N "(cached) $ECHO_C" >&6
3767else
3768  if test -n "$STRIP"; then
3769  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3770else
3771as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3772for as_dir in $PATH
3773do
3774  IFS=$as_save_IFS
3775  test -z "$as_dir" && as_dir=.
3776  for ac_exec_ext in '' $ac_executable_extensions; do
3777  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3778    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3779    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3780    break 2
3781  fi
3782done
3783done
3784
3785fi
3786fi
3787STRIP=$ac_cv_prog_STRIP
3788if test -n "$STRIP"; then
3789  echo "$as_me:$LINENO: result: $STRIP" >&5
3790echo "${ECHO_T}$STRIP" >&6
3791else
3792  echo "$as_me:$LINENO: result: no" >&5
3793echo "${ECHO_T}no" >&6
3794fi
3795
3796fi
3797if test -z "$ac_cv_prog_STRIP"; then
3798  ac_ct_STRIP=$STRIP
3799  # Extract the first word of "strip", so it can be a program name with args.
3800set dummy strip; ac_word=$2
3801echo "$as_me:$LINENO: checking for $ac_word" >&5
3802echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3803if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3804  echo $ECHO_N "(cached) $ECHO_C" >&6
3805else
3806  if test -n "$ac_ct_STRIP"; then
3807  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3808else
3809as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3810for as_dir in $PATH
3811do
3812  IFS=$as_save_IFS
3813  test -z "$as_dir" && as_dir=.
3814  for ac_exec_ext in '' $ac_executable_extensions; do
3815  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3816    ac_cv_prog_ac_ct_STRIP="strip"
3817    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3818    break 2
3819  fi
3820done
3821done
3822
3823  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
3824fi
3825fi
3826ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3827if test -n "$ac_ct_STRIP"; then
3828  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3829echo "${ECHO_T}$ac_ct_STRIP" >&6
3830else
3831  echo "$as_me:$LINENO: result: no" >&5
3832echo "${ECHO_T}no" >&6
3833fi
3834
3835  STRIP=$ac_ct_STRIP
3836else
3837  STRIP="$ac_cv_prog_STRIP"
3838fi
3839
3840
3841# Check for any special flags to pass to ltconfig.
3842libtool_flags="--cache-file=$cache_file"
3843test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
3844test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
3845test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
3846test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
3847test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
3848
3849
3850# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3851if test "${enable_libtool_lock+set}" = set; then
3852  enableval="$enable_libtool_lock"
3853
3854fi;
3855test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
3856test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
3857
3858
3859# Check whether --with-pic or --without-pic was given.
3860if test "${with_pic+set}" = set; then
3861  withval="$with_pic"
3862  pic_mode="$withval"
3863else
3864  pic_mode=default
3865fi;
3866test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
3867test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
3868
3869# Some flags need to be propagated to the compiler or linker for good
3870# libtool support.
3871case $host in
3872*-*-irix6*)
3873  # Find out which ABI we are using.
3874  echo '#line 3870 "configure"' > conftest.$ac_ext
3875  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3876  (eval $ac_compile) 2>&5
3877  ac_status=$?
3878  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3879  (exit $ac_status); }; then
3880   if test "$lt_cv_prog_gnu_ld" = yes; then
3881    case `/usr/bin/file conftest.$ac_objext` in
3882    *32-bit*)
3883      LD="${LD-ld} -melf32bsmip"
3884      ;;
3885    *N32*)
3886      LD="${LD-ld} -melf32bmipn32"
3887      ;;
3888    *64-bit*)
3889      LD="${LD-ld} -melf64bmip"
3890      ;;
3891    esac
3892   else
3893    case `/usr/bin/file conftest.$ac_objext` in
3894    *32-bit*)
3895      LD="${LD-ld} -32"
3896      ;;
3897    *N32*)
3898      LD="${LD-ld} -n32"
3899      ;;
3900    *64-bit*)
3901      LD="${LD-ld} -64"
3902      ;;
3903    esac
3904   fi
3905  fi
3906  rm -rf conftest*
3907  ;;
3908
3909ia64-*-hpux*)
3910  # Find out which ABI we are using.
3911  echo 'int i;' > conftest.$ac_ext
3912  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3913  (eval $ac_compile) 2>&5
3914  ac_status=$?
3915  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3916  (exit $ac_status); }; then
3917    case "`/usr/bin/file conftest.o`" in
3918    *ELF-32*)
3919      HPUX_IA64_MODE="32"
3920      ;;
3921    *ELF-64*)
3922      HPUX_IA64_MODE="64"
3923      ;;
3924    esac
3925  fi
3926  rm -rf conftest*
3927  ;;
3928
3929x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
3930  # Find out which ABI we are using.
3931  echo 'int i;' > conftest.$ac_ext
3932  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3933  (eval $ac_compile) 2>&5
3934  ac_status=$?
3935  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3936  (exit $ac_status); }; then
3937    case "`/usr/bin/file conftest.o`" in
3938    *32-bit*)
3939      case $host in
3940        x86_64-*linux*)
3941          LD="${LD-ld} -m elf_i386"
3942          ;;
3943        ppc64-*linux*|powerpc64-*linux*)
3944          LD="${LD-ld} -m elf32ppclinux"
3945          ;;
3946        s390x-*linux*)
3947          LD="${LD-ld} -m elf_s390"
3948          ;;
3949        sparc64-*linux*)
3950          LD="${LD-ld} -m elf32_sparc"
3951          ;;
3952      esac
3953      ;;
3954    *64-bit*)
3955      case $host in
3956        x86_64-*linux*)
3957          LD="${LD-ld} -m elf_x86_64"
3958          ;;
3959        ppc*-*linux*|powerpc*-*linux*)
3960          LD="${LD-ld} -m elf64ppc"
3961          ;;
3962        s390*-*linux*)
3963          LD="${LD-ld} -m elf64_s390"
3964          ;;
3965        sparc*-*linux*)
3966          LD="${LD-ld} -m elf64_sparc"
3967          ;;
3968      esac
3969      ;;
3970    esac
3971  fi
3972  rm -rf conftest*
3973  ;;
3974
3975*-*-sco3.2v5*)
3976  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3977  SAVE_CFLAGS="$CFLAGS"
3978  CFLAGS="$CFLAGS -belf"
3979  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
3980echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
3981if test "${lt_cv_cc_needs_belf+set}" = set; then
3982  echo $ECHO_N "(cached) $ECHO_C" >&6
3983else
3984
3985
3986     ac_ext=c
3987ac_cpp='$CPP $CPPFLAGS'
3988ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3989ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3990ac_compiler_gnu=$ac_cv_c_compiler_gnu
3991
3992     cat >conftest.$ac_ext <<_ACEOF
3993/* confdefs.h.  */
3994_ACEOF
3995cat confdefs.h >>conftest.$ac_ext
3996cat >>conftest.$ac_ext <<_ACEOF
3997/* end confdefs.h.  */
3998
3999int
4000main ()
4001{
4002
4003  ;
4004  return 0;
4005}
4006_ACEOF
4007rm -f conftest.$ac_objext conftest$ac_exeext
4008if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4009  (eval $ac_link) 2>conftest.er1
4010  ac_status=$?
4011  grep -v '^ *+' conftest.er1 >conftest.err
4012  rm -f conftest.er1
4013  cat conftest.err >&5
4014  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4015  (exit $ac_status); } &&
4016	 { ac_try='test -z "$ac_c_werror_flag"
4017			 || test ! -s conftest.err'
4018  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4019  (eval $ac_try) 2>&5
4020  ac_status=$?
4021  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4022  (exit $ac_status); }; } &&
4023	 { ac_try='test -s conftest$ac_exeext'
4024  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4025  (eval $ac_try) 2>&5
4026  ac_status=$?
4027  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4028  (exit $ac_status); }; }; then
4029  lt_cv_cc_needs_belf=yes
4030else
4031  echo "$as_me: failed program was:" >&5
4032sed 's/^/| /' conftest.$ac_ext >&5
4033
4034lt_cv_cc_needs_belf=no
4035fi
4036rm -f conftest.err conftest.$ac_objext \
4037      conftest$ac_exeext conftest.$ac_ext
4038     ac_ext=c
4039ac_cpp='$CPP $CPPFLAGS'
4040ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4041ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4042ac_compiler_gnu=$ac_cv_c_compiler_gnu
4043
4044fi
4045echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4046echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4047  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4048    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4049    CFLAGS="$SAVE_CFLAGS"
4050  fi
4051  ;;
4052
4053
4054esac
4055
4056
4057# Save cache, so that ltconfig can load it
4058cat >confcache <<\_ACEOF
4059# This file is a shell script that caches the results of configure
4060# tests run on this system so they can be shared between configure
4061# scripts and configure runs, see configure's option --config-cache.
4062# It is not useful on other systems.  If it contains results you don't
4063# want to keep, you may remove or edit it.
4064#
4065# config.status only pays attention to the cache file if you give it
4066# the --recheck option to rerun configure.
4067#
4068# `ac_cv_env_foo' variables (set or unset) will be overridden when
4069# loading this file, other *unset* `ac_cv_foo' will be assigned the
4070# following values.
4071
4072_ACEOF
4073
4074# The following way of writing the cache mishandles newlines in values,
4075# but we know of no workaround that is simple, portable, and efficient.
4076# So, don't put newlines in cache variables' values.
4077# Ultrix sh set writes to stderr and can't be redirected directly,
4078# and sets the high bit in the cache file unless we assign to the vars.
4079{
4080  (set) 2>&1 |
4081    case `(ac_space=' '; set | grep ac_space) 2>&1` in
4082    *ac_space=\ *)
4083      # `set' does not quote correctly, so add quotes (double-quote
4084      # substitution turns \\\\ into \\, and sed turns \\ into \).
4085      sed -n \
4086	"s/'/'\\\\''/g;
4087	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4088      ;;
4089    *)
4090      # `set' quotes correctly as required by POSIX, so do not add quotes.
4091      sed -n \
4092	"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
4093      ;;
4094    esac;
4095} |
4096  sed '
4097     t clear
4098     : clear
4099     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4100     t end
4101     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4102     : end' >>confcache
4103if diff $cache_file confcache >/dev/null 2>&1; then :; else
4104  if test -w $cache_file; then
4105    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
4106    cat confcache >$cache_file
4107  else
4108    echo "not updating unwritable cache $cache_file"
4109  fi
4110fi
4111rm -f confcache
4112
4113# Actually configure libtool.  ac_aux_dir is where install-sh is found.
4114AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
4115MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
4116LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
4117AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
4118objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
4119deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
4120${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
4121$libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
4122|| { { echo "$as_me:$LINENO: error: libtool configure failed" >&5
4123echo "$as_me: error: libtool configure failed" >&2;}
4124   { (exit 1); exit 1; }; }
4125
4126# Reload cache, that may have been modified by ltconfig
4127if test -r "$cache_file"; then
4128  # Some versions of bash will fail to source /dev/null (special
4129  # files actually), so we avoid doing that.
4130  if test -f "$cache_file"; then
4131    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
4132echo "$as_me: loading cache $cache_file" >&6;}
4133    case $cache_file in
4134      [\\/]* | ?:[\\/]* ) . $cache_file;;
4135      *)                      . ./$cache_file;;
4136    esac
4137  fi
4138else
4139  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
4140echo "$as_me: creating cache $cache_file" >&6;}
4141  >$cache_file
4142fi
4143
4144
4145# This can be used to rebuild libtool when needed
4146LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
4147
4148# Always use our own libtool.
4149LIBTOOL='$(SHELL) $(top_builddir)/libtool'
4150
4151# Redirect the config.log output again, so that the ltconfig log is not
4152# clobbered by the next message.
4153exec 5>>./config.log
4154
4155
4156
4157
4158
4159
4160
4161# Check whether --enable-targets or --disable-targets was given.
4162if test "${enable_targets+set}" = set; then
4163  enableval="$enable_targets"
4164  case "${enableval}" in
4165  yes | "") { { echo "$as_me:$LINENO: error: enable-targets option must specify target names or 'all'" >&5
4166echo "$as_me: error: enable-targets option must specify target names or 'all'" >&2;}
4167   { (exit 1); exit 1; }; }
4168            ;;
4169  no)       enable_targets= ;;
4170  *)        enable_targets=$enableval ;;
4171esac
4172fi; # Check whether --enable-commonbfdlib or --disable-commonbfdlib was given.
4173if test "${enable_commonbfdlib+set}" = set; then
4174  enableval="$enable_commonbfdlib"
4175  case "${enableval}" in
4176  yes) commonbfdlib=true ;;
4177  no)  commonbfdlib=false ;;
4178  *)   { { echo "$as_me:$LINENO: error: bad value ${enableval} for BFD commonbfdlib option" >&5
4179echo "$as_me: error: bad value ${enableval} for BFD commonbfdlib option" >&2;}
4180   { (exit 1); exit 1; }; } ;;
4181esac
4182fi;
4183
4184GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
4185
4186# Check whether --enable-werror or --disable-werror was given.
4187if test "${enable_werror+set}" = set; then
4188  enableval="$enable_werror"
4189  case "${enableval}" in
4190     yes | y) ERROR_ON_WARNING="yes" ;;
4191     no | n)  ERROR_ON_WARNING="no" ;;
4192     *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-werror" >&5
4193echo "$as_me: error: bad value ${enableval} for --enable-werror" >&2;}
4194   { (exit 1); exit 1; }; } ;;
4195   esac
4196fi;
4197
4198# Enable -Werror by default when using gcc
4199if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
4200    ERROR_ON_WARNING=yes
4201fi
4202
4203NO_WERROR=
4204if test "${ERROR_ON_WARNING}" = yes ; then
4205    GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror"
4206    NO_WERROR="-Wno-error"
4207fi
4208
4209if test "${GCC}" = yes ; then
4210  WARN_CFLAGS="${GCC_WARN_CFLAGS}"
4211fi
4212
4213# Check whether --enable-build-warnings or --disable-build-warnings was given.
4214if test "${enable_build_warnings+set}" = set; then
4215  enableval="$enable_build_warnings"
4216  case "${enableval}" in
4217  yes)	WARN_CFLAGS="${GCC_WARN_CFLAGS}";;
4218  no)	if test "${GCC}" = yes ; then
4219	  WARN_CFLAGS="-w"
4220	fi;;
4221  ,*)   t=`echo "${enableval}" | sed -e "s/,/ /g"`
4222        WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}";;
4223  *,)   t=`echo "${enableval}" | sed -e "s/,/ /g"`
4224        WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}";;
4225  *)    WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`;;
4226esac
4227fi;
4228
4229if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
4230  echo "Setting warning flags = $WARN_CFLAGS" 6>&1
4231fi
4232
4233
4234
4235
4236
4237          ac_config_headers="$ac_config_headers config.h:config.in"
4238
4239
4240if test -z "$target" ; then
4241    { { echo "$as_me:$LINENO: error: Unrecognized target system type; please check config.sub." >&5
4242echo "$as_me: error: Unrecognized target system type; please check config.sub." >&2;}
4243   { (exit 1); exit 1; }; }
4244fi
4245if test -z "$host" ; then
4246    { { echo "$as_me:$LINENO: error: Unrecognized host system type; please check config.sub." >&5
4247echo "$as_me: error: Unrecognized host system type; please check config.sub." >&2;}
4248   { (exit 1); exit 1; }; }
4249fi
4250
4251ac_ext=c
4252ac_cpp='$CPP $CPPFLAGS'
4253ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4254ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4255ac_compiler_gnu=$ac_cv_c_compiler_gnu
4256if test -n "$ac_tool_prefix"; then
4257  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4258set dummy ${ac_tool_prefix}gcc; ac_word=$2
4259echo "$as_me:$LINENO: checking for $ac_word" >&5
4260echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4261if test "${ac_cv_prog_CC+set}" = set; then
4262  echo $ECHO_N "(cached) $ECHO_C" >&6
4263else
4264  if test -n "$CC"; then
4265  ac_cv_prog_CC="$CC" # Let the user override the test.
4266else
4267as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4268for as_dir in $PATH
4269do
4270  IFS=$as_save_IFS
4271  test -z "$as_dir" && as_dir=.
4272  for ac_exec_ext in '' $ac_executable_extensions; do
4273  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4274    ac_cv_prog_CC="${ac_tool_prefix}gcc"
4275    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4276    break 2
4277  fi
4278done
4279done
4280
4281fi
4282fi
4283CC=$ac_cv_prog_CC
4284if test -n "$CC"; then
4285  echo "$as_me:$LINENO: result: $CC" >&5
4286echo "${ECHO_T}$CC" >&6
4287else
4288  echo "$as_me:$LINENO: result: no" >&5
4289echo "${ECHO_T}no" >&6
4290fi
4291
4292fi
4293if test -z "$ac_cv_prog_CC"; then
4294  ac_ct_CC=$CC
4295  # Extract the first word of "gcc", so it can be a program name with args.
4296set dummy gcc; ac_word=$2
4297echo "$as_me:$LINENO: checking for $ac_word" >&5
4298echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4299if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4300  echo $ECHO_N "(cached) $ECHO_C" >&6
4301else
4302  if test -n "$ac_ct_CC"; then
4303  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4304else
4305as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4306for as_dir in $PATH
4307do
4308  IFS=$as_save_IFS
4309  test -z "$as_dir" && as_dir=.
4310  for ac_exec_ext in '' $ac_executable_extensions; do
4311  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4312    ac_cv_prog_ac_ct_CC="gcc"
4313    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4314    break 2
4315  fi
4316done
4317done
4318
4319fi
4320fi
4321ac_ct_CC=$ac_cv_prog_ac_ct_CC
4322if test -n "$ac_ct_CC"; then
4323  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4324echo "${ECHO_T}$ac_ct_CC" >&6
4325else
4326  echo "$as_me:$LINENO: result: no" >&5
4327echo "${ECHO_T}no" >&6
4328fi
4329
4330  CC=$ac_ct_CC
4331else
4332  CC="$ac_cv_prog_CC"
4333fi
4334
4335if test -z "$CC"; then
4336  if test -n "$ac_tool_prefix"; then
4337  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4338set dummy ${ac_tool_prefix}cc; ac_word=$2
4339echo "$as_me:$LINENO: checking for $ac_word" >&5
4340echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4341if test "${ac_cv_prog_CC+set}" = set; then
4342  echo $ECHO_N "(cached) $ECHO_C" >&6
4343else
4344  if test -n "$CC"; then
4345  ac_cv_prog_CC="$CC" # Let the user override the test.
4346else
4347as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4348for as_dir in $PATH
4349do
4350  IFS=$as_save_IFS
4351  test -z "$as_dir" && as_dir=.
4352  for ac_exec_ext in '' $ac_executable_extensions; do
4353  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4354    ac_cv_prog_CC="${ac_tool_prefix}cc"
4355    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4356    break 2
4357  fi
4358done
4359done
4360
4361fi
4362fi
4363CC=$ac_cv_prog_CC
4364if test -n "$CC"; then
4365  echo "$as_me:$LINENO: result: $CC" >&5
4366echo "${ECHO_T}$CC" >&6
4367else
4368  echo "$as_me:$LINENO: result: no" >&5
4369echo "${ECHO_T}no" >&6
4370fi
4371
4372fi
4373if test -z "$ac_cv_prog_CC"; then
4374  ac_ct_CC=$CC
4375  # Extract the first word of "cc", so it can be a program name with args.
4376set dummy cc; ac_word=$2
4377echo "$as_me:$LINENO: checking for $ac_word" >&5
4378echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4379if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4380  echo $ECHO_N "(cached) $ECHO_C" >&6
4381else
4382  if test -n "$ac_ct_CC"; then
4383  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4384else
4385as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4386for as_dir in $PATH
4387do
4388  IFS=$as_save_IFS
4389  test -z "$as_dir" && as_dir=.
4390  for ac_exec_ext in '' $ac_executable_extensions; do
4391  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4392    ac_cv_prog_ac_ct_CC="cc"
4393    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4394    break 2
4395  fi
4396done
4397done
4398
4399fi
4400fi
4401ac_ct_CC=$ac_cv_prog_ac_ct_CC
4402if test -n "$ac_ct_CC"; then
4403  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4404echo "${ECHO_T}$ac_ct_CC" >&6
4405else
4406  echo "$as_me:$LINENO: result: no" >&5
4407echo "${ECHO_T}no" >&6
4408fi
4409
4410  CC=$ac_ct_CC
4411else
4412  CC="$ac_cv_prog_CC"
4413fi
4414
4415fi
4416if test -z "$CC"; then
4417  # Extract the first word of "cc", so it can be a program name with args.
4418set dummy cc; ac_word=$2
4419echo "$as_me:$LINENO: checking for $ac_word" >&5
4420echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4421if test "${ac_cv_prog_CC+set}" = set; then
4422  echo $ECHO_N "(cached) $ECHO_C" >&6
4423else
4424  if test -n "$CC"; then
4425  ac_cv_prog_CC="$CC" # Let the user override the test.
4426else
4427  ac_prog_rejected=no
4428as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4429for as_dir in $PATH
4430do
4431  IFS=$as_save_IFS
4432  test -z "$as_dir" && as_dir=.
4433  for ac_exec_ext in '' $ac_executable_extensions; do
4434  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4435    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4436       ac_prog_rejected=yes
4437       continue
4438     fi
4439    ac_cv_prog_CC="cc"
4440    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4441    break 2
4442  fi
4443done
4444done
4445
4446if test $ac_prog_rejected = yes; then
4447  # We found a bogon in the path, so make sure we never use it.
4448  set dummy $ac_cv_prog_CC
4449  shift
4450  if test $# != 0; then
4451    # We chose a different compiler from the bogus one.
4452    # However, it has the same basename, so the bogon will be chosen
4453    # first if we set CC to just the basename; use the full file name.
4454    shift
4455    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4456  fi
4457fi
4458fi
4459fi
4460CC=$ac_cv_prog_CC
4461if test -n "$CC"; then
4462  echo "$as_me:$LINENO: result: $CC" >&5
4463echo "${ECHO_T}$CC" >&6
4464else
4465  echo "$as_me:$LINENO: result: no" >&5
4466echo "${ECHO_T}no" >&6
4467fi
4468
4469fi
4470if test -z "$CC"; then
4471  if test -n "$ac_tool_prefix"; then
4472  for ac_prog in cl
4473  do
4474    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4475set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4476echo "$as_me:$LINENO: checking for $ac_word" >&5
4477echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4478if test "${ac_cv_prog_CC+set}" = set; then
4479  echo $ECHO_N "(cached) $ECHO_C" >&6
4480else
4481  if test -n "$CC"; then
4482  ac_cv_prog_CC="$CC" # Let the user override the test.
4483else
4484as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4485for as_dir in $PATH
4486do
4487  IFS=$as_save_IFS
4488  test -z "$as_dir" && as_dir=.
4489  for ac_exec_ext in '' $ac_executable_extensions; do
4490  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4491    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4492    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4493    break 2
4494  fi
4495done
4496done
4497
4498fi
4499fi
4500CC=$ac_cv_prog_CC
4501if test -n "$CC"; then
4502  echo "$as_me:$LINENO: result: $CC" >&5
4503echo "${ECHO_T}$CC" >&6
4504else
4505  echo "$as_me:$LINENO: result: no" >&5
4506echo "${ECHO_T}no" >&6
4507fi
4508
4509    test -n "$CC" && break
4510  done
4511fi
4512if test -z "$CC"; then
4513  ac_ct_CC=$CC
4514  for ac_prog in cl
4515do
4516  # Extract the first word of "$ac_prog", so it can be a program name with args.
4517set dummy $ac_prog; ac_word=$2
4518echo "$as_me:$LINENO: checking for $ac_word" >&5
4519echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4520if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4521  echo $ECHO_N "(cached) $ECHO_C" >&6
4522else
4523  if test -n "$ac_ct_CC"; then
4524  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4525else
4526as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4527for as_dir in $PATH
4528do
4529  IFS=$as_save_IFS
4530  test -z "$as_dir" && as_dir=.
4531  for ac_exec_ext in '' $ac_executable_extensions; do
4532  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4533    ac_cv_prog_ac_ct_CC="$ac_prog"
4534    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4535    break 2
4536  fi
4537done
4538done
4539
4540fi
4541fi
4542ac_ct_CC=$ac_cv_prog_ac_ct_CC
4543if test -n "$ac_ct_CC"; then
4544  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4545echo "${ECHO_T}$ac_ct_CC" >&6
4546else
4547  echo "$as_me:$LINENO: result: no" >&5
4548echo "${ECHO_T}no" >&6
4549fi
4550
4551  test -n "$ac_ct_CC" && break
4552done
4553
4554  CC=$ac_ct_CC
4555fi
4556
4557fi
4558
4559
4560test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4561See \`config.log' for more details." >&5
4562echo "$as_me: error: no acceptable C compiler found in \$PATH
4563See \`config.log' for more details." >&2;}
4564   { (exit 1); exit 1; }; }
4565
4566# Provide some information about the compiler.
4567echo "$as_me:$LINENO:" \
4568     "checking for C compiler version" >&5
4569ac_compiler=`set X $ac_compile; echo $2`
4570{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4571  (eval $ac_compiler --version </dev/null >&5) 2>&5
4572  ac_status=$?
4573  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4574  (exit $ac_status); }
4575{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4576  (eval $ac_compiler -v </dev/null >&5) 2>&5
4577  ac_status=$?
4578  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4579  (exit $ac_status); }
4580{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4581  (eval $ac_compiler -V </dev/null >&5) 2>&5
4582  ac_status=$?
4583  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4584  (exit $ac_status); }
4585
4586echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4587echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
4588if test "${ac_cv_c_compiler_gnu+set}" = set; then
4589  echo $ECHO_N "(cached) $ECHO_C" >&6
4590else
4591  cat >conftest.$ac_ext <<_ACEOF
4592/* confdefs.h.  */
4593_ACEOF
4594cat confdefs.h >>conftest.$ac_ext
4595cat >>conftest.$ac_ext <<_ACEOF
4596/* end confdefs.h.  */
4597
4598int
4599main ()
4600{
4601#ifndef __GNUC__
4602       choke me
4603#endif
4604
4605  ;
4606  return 0;
4607}
4608_ACEOF
4609rm -f conftest.$ac_objext
4610if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4611  (eval $ac_compile) 2>conftest.er1
4612  ac_status=$?
4613  grep -v '^ *+' conftest.er1 >conftest.err
4614  rm -f conftest.er1
4615  cat conftest.err >&5
4616  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4617  (exit $ac_status); } &&
4618	 { ac_try='test -z "$ac_c_werror_flag"
4619			 || test ! -s conftest.err'
4620  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4621  (eval $ac_try) 2>&5
4622  ac_status=$?
4623  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4624  (exit $ac_status); }; } &&
4625	 { ac_try='test -s conftest.$ac_objext'
4626  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4627  (eval $ac_try) 2>&5
4628  ac_status=$?
4629  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4630  (exit $ac_status); }; }; then
4631  ac_compiler_gnu=yes
4632else
4633  echo "$as_me: failed program was:" >&5
4634sed 's/^/| /' conftest.$ac_ext >&5
4635
4636ac_compiler_gnu=no
4637fi
4638rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4639ac_cv_c_compiler_gnu=$ac_compiler_gnu
4640
4641fi
4642echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4643echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
4644GCC=`test $ac_compiler_gnu = yes && echo yes`
4645ac_test_CFLAGS=${CFLAGS+set}
4646ac_save_CFLAGS=$CFLAGS
4647CFLAGS="-g"
4648echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4649echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
4650if test "${ac_cv_prog_cc_g+set}" = set; then
4651  echo $ECHO_N "(cached) $ECHO_C" >&6
4652else
4653  cat >conftest.$ac_ext <<_ACEOF
4654/* confdefs.h.  */
4655_ACEOF
4656cat confdefs.h >>conftest.$ac_ext
4657cat >>conftest.$ac_ext <<_ACEOF
4658/* end confdefs.h.  */
4659
4660int
4661main ()
4662{
4663
4664  ;
4665  return 0;
4666}
4667_ACEOF
4668rm -f conftest.$ac_objext
4669if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4670  (eval $ac_compile) 2>conftest.er1
4671  ac_status=$?
4672  grep -v '^ *+' conftest.er1 >conftest.err
4673  rm -f conftest.er1
4674  cat conftest.err >&5
4675  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4676  (exit $ac_status); } &&
4677	 { ac_try='test -z "$ac_c_werror_flag"
4678			 || test ! -s conftest.err'
4679  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4680  (eval $ac_try) 2>&5
4681  ac_status=$?
4682  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4683  (exit $ac_status); }; } &&
4684	 { ac_try='test -s conftest.$ac_objext'
4685  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4686  (eval $ac_try) 2>&5
4687  ac_status=$?
4688  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4689  (exit $ac_status); }; }; then
4690  ac_cv_prog_cc_g=yes
4691else
4692  echo "$as_me: failed program was:" >&5
4693sed 's/^/| /' conftest.$ac_ext >&5
4694
4695ac_cv_prog_cc_g=no
4696fi
4697rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4698fi
4699echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4700echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
4701if test "$ac_test_CFLAGS" = set; then
4702  CFLAGS=$ac_save_CFLAGS
4703elif test $ac_cv_prog_cc_g = yes; then
4704  if test "$GCC" = yes; then
4705    CFLAGS="-g -O2"
4706  else
4707    CFLAGS="-g"
4708  fi
4709else
4710  if test "$GCC" = yes; then
4711    CFLAGS="-O2"
4712  else
4713    CFLAGS=
4714  fi
4715fi
4716echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
4717echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
4718if test "${ac_cv_prog_cc_stdc+set}" = set; then
4719  echo $ECHO_N "(cached) $ECHO_C" >&6
4720else
4721  ac_cv_prog_cc_stdc=no
4722ac_save_CC=$CC
4723cat >conftest.$ac_ext <<_ACEOF
4724/* confdefs.h.  */
4725_ACEOF
4726cat confdefs.h >>conftest.$ac_ext
4727cat >>conftest.$ac_ext <<_ACEOF
4728/* end confdefs.h.  */
4729#include <stdarg.h>
4730#include <stdio.h>
4731#include <sys/types.h>
4732#include <sys/stat.h>
4733/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4734struct buf { int x; };
4735FILE * (*rcsopen) (struct buf *, struct stat *, int);
4736static char *e (p, i)
4737     char **p;
4738     int i;
4739{
4740  return p[i];
4741}
4742static char *f (char * (*g) (char **, int), char **p, ...)
4743{
4744  char *s;
4745  va_list v;
4746  va_start (v,p);
4747  s = g (p, va_arg (v,int));
4748  va_end (v);
4749  return s;
4750}
4751
4752/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4753   function prototypes and stuff, but not '\xHH' hex character constants.
4754   These don't provoke an error unfortunately, instead are silently treated
4755   as 'x'.  The following induces an error, until -std1 is added to get
4756   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4757   array size at least.  It's necessary to write '\x00'==0 to get something
4758   that's true only with -std1.  */
4759int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4760
4761int test (int i, double x);
4762struct s1 {int (*f) (int a);};
4763struct s2 {int (*f) (double a);};
4764int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4765int argc;
4766char **argv;
4767int
4768main ()
4769{
4770return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4771  ;
4772  return 0;
4773}
4774_ACEOF
4775# Don't try gcc -ansi; that turns off useful extensions and
4776# breaks some systems' header files.
4777# AIX			-qlanglvl=ansi
4778# Ultrix and OSF/1	-std1
4779# HP-UX 10.20 and later	-Ae
4780# HP-UX older versions	-Aa -D_HPUX_SOURCE
4781# SVR4			-Xc -D__EXTENSIONS__
4782for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4783do
4784  CC="$ac_save_CC $ac_arg"
4785  rm -f conftest.$ac_objext
4786if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4787  (eval $ac_compile) 2>conftest.er1
4788  ac_status=$?
4789  grep -v '^ *+' conftest.er1 >conftest.err
4790  rm -f conftest.er1
4791  cat conftest.err >&5
4792  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4793  (exit $ac_status); } &&
4794	 { ac_try='test -z "$ac_c_werror_flag"
4795			 || test ! -s conftest.err'
4796  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4797  (eval $ac_try) 2>&5
4798  ac_status=$?
4799  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4800  (exit $ac_status); }; } &&
4801	 { ac_try='test -s conftest.$ac_objext'
4802  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4803  (eval $ac_try) 2>&5
4804  ac_status=$?
4805  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4806  (exit $ac_status); }; }; then
4807  ac_cv_prog_cc_stdc=$ac_arg
4808break
4809else
4810  echo "$as_me: failed program was:" >&5
4811sed 's/^/| /' conftest.$ac_ext >&5
4812
4813fi
4814rm -f conftest.err conftest.$ac_objext
4815done
4816rm -f conftest.$ac_ext conftest.$ac_objext
4817CC=$ac_save_CC
4818
4819fi
4820
4821case "x$ac_cv_prog_cc_stdc" in
4822  x|xno)
4823    echo "$as_me:$LINENO: result: none needed" >&5
4824echo "${ECHO_T}none needed" >&6 ;;
4825  *)
4826    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
4827echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
4828    CC="$CC $ac_cv_prog_cc_stdc" ;;
4829esac
4830
4831# Some people use a C++ compiler to compile C.  Since we use `exit',
4832# in C++ we need to declare it.  In case someone uses the same compiler
4833# for both compiling C and C++ we need to have the C++ compiler decide
4834# the declaration of exit, since it's the most demanding environment.
4835cat >conftest.$ac_ext <<_ACEOF
4836#ifndef __cplusplus
4837  choke me
4838#endif
4839_ACEOF
4840rm -f conftest.$ac_objext
4841if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4842  (eval $ac_compile) 2>conftest.er1
4843  ac_status=$?
4844  grep -v '^ *+' conftest.er1 >conftest.err
4845  rm -f conftest.er1
4846  cat conftest.err >&5
4847  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4848  (exit $ac_status); } &&
4849	 { ac_try='test -z "$ac_c_werror_flag"
4850			 || test ! -s conftest.err'
4851  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4852  (eval $ac_try) 2>&5
4853  ac_status=$?
4854  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4855  (exit $ac_status); }; } &&
4856	 { ac_try='test -s conftest.$ac_objext'
4857  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4858  (eval $ac_try) 2>&5
4859  ac_status=$?
4860  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4861  (exit $ac_status); }; }; then
4862  for ac_declaration in \
4863   '' \
4864   'extern "C" void std::exit (int) throw (); using std::exit;' \
4865   'extern "C" void std::exit (int); using std::exit;' \
4866   'extern "C" void exit (int) throw ();' \
4867   'extern "C" void exit (int);' \
4868   'void exit (int);'
4869do
4870  cat >conftest.$ac_ext <<_ACEOF
4871/* confdefs.h.  */
4872_ACEOF
4873cat confdefs.h >>conftest.$ac_ext
4874cat >>conftest.$ac_ext <<_ACEOF
4875/* end confdefs.h.  */
4876$ac_declaration
4877#include <stdlib.h>
4878int
4879main ()
4880{
4881exit (42);
4882  ;
4883  return 0;
4884}
4885_ACEOF
4886rm -f conftest.$ac_objext
4887if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4888  (eval $ac_compile) 2>conftest.er1
4889  ac_status=$?
4890  grep -v '^ *+' conftest.er1 >conftest.err
4891  rm -f conftest.er1
4892  cat conftest.err >&5
4893  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4894  (exit $ac_status); } &&
4895	 { ac_try='test -z "$ac_c_werror_flag"
4896			 || test ! -s conftest.err'
4897  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4898  (eval $ac_try) 2>&5
4899  ac_status=$?
4900  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4901  (exit $ac_status); }; } &&
4902	 { ac_try='test -s conftest.$ac_objext'
4903  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4904  (eval $ac_try) 2>&5
4905  ac_status=$?
4906  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4907  (exit $ac_status); }; }; then
4908  :
4909else
4910  echo "$as_me: failed program was:" >&5
4911sed 's/^/| /' conftest.$ac_ext >&5
4912
4913continue
4914fi
4915rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4916  cat >conftest.$ac_ext <<_ACEOF
4917/* confdefs.h.  */
4918_ACEOF
4919cat confdefs.h >>conftest.$ac_ext
4920cat >>conftest.$ac_ext <<_ACEOF
4921/* end confdefs.h.  */
4922$ac_declaration
4923int
4924main ()
4925{
4926exit (42);
4927  ;
4928  return 0;
4929}
4930_ACEOF
4931rm -f conftest.$ac_objext
4932if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4933  (eval $ac_compile) 2>conftest.er1
4934  ac_status=$?
4935  grep -v '^ *+' conftest.er1 >conftest.err
4936  rm -f conftest.er1
4937  cat conftest.err >&5
4938  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4939  (exit $ac_status); } &&
4940	 { ac_try='test -z "$ac_c_werror_flag"
4941			 || test ! -s conftest.err'
4942  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4943  (eval $ac_try) 2>&5
4944  ac_status=$?
4945  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4946  (exit $ac_status); }; } &&
4947	 { ac_try='test -s conftest.$ac_objext'
4948  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4949  (eval $ac_try) 2>&5
4950  ac_status=$?
4951  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4952  (exit $ac_status); }; }; then
4953  break
4954else
4955  echo "$as_me: failed program was:" >&5
4956sed 's/^/| /' conftest.$ac_ext >&5
4957
4958fi
4959rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4960done
4961rm -f conftest*
4962if test -n "$ac_declaration"; then
4963  echo '#ifdef __cplusplus' >>confdefs.h
4964  echo $ac_declaration      >>confdefs.h
4965  echo '#endif'             >>confdefs.h
4966fi
4967
4968else
4969  echo "$as_me: failed program was:" >&5
4970sed 's/^/| /' conftest.$ac_ext >&5
4971
4972fi
4973rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4974ac_ext=c
4975ac_cpp='$CPP $CPPFLAGS'
4976ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4977ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4978ac_compiler_gnu=$ac_cv_c_compiler_gnu
4979
4980
4981cat >>confdefs.h <<\_ACEOF
4982#define _GNU_SOURCE 1
4983_ACEOF
4984
4985
4986
4987for ac_prog in 'bison -y' byacc
4988do
4989  # Extract the first word of "$ac_prog", so it can be a program name with args.
4990set dummy $ac_prog; ac_word=$2
4991echo "$as_me:$LINENO: checking for $ac_word" >&5
4992echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4993if test "${ac_cv_prog_YACC+set}" = set; then
4994  echo $ECHO_N "(cached) $ECHO_C" >&6
4995else
4996  if test -n "$YACC"; then
4997  ac_cv_prog_YACC="$YACC" # Let the user override the test.
4998else
4999as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5000for as_dir in $PATH
5001do
5002  IFS=$as_save_IFS
5003  test -z "$as_dir" && as_dir=.
5004  for ac_exec_ext in '' $ac_executable_extensions; do
5005  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5006    ac_cv_prog_YACC="$ac_prog"
5007    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5008    break 2
5009  fi
5010done
5011done
5012
5013fi
5014fi
5015YACC=$ac_cv_prog_YACC
5016if test -n "$YACC"; then
5017  echo "$as_me:$LINENO: result: $YACC" >&5
5018echo "${ECHO_T}$YACC" >&6
5019else
5020  echo "$as_me:$LINENO: result: no" >&5
5021echo "${ECHO_T}no" >&6
5022fi
5023
5024  test -n "$YACC" && break
5025done
5026test -n "$YACC" || YACC="yacc"
5027
5028for ac_prog in flex lex
5029do
5030  # Extract the first word of "$ac_prog", so it can be a program name with args.
5031set dummy $ac_prog; ac_word=$2
5032echo "$as_me:$LINENO: checking for $ac_word" >&5
5033echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5034if test "${ac_cv_prog_LEX+set}" = set; then
5035  echo $ECHO_N "(cached) $ECHO_C" >&6
5036else
5037  if test -n "$LEX"; then
5038  ac_cv_prog_LEX="$LEX" # Let the user override the test.
5039else
5040as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5041for as_dir in $PATH
5042do
5043  IFS=$as_save_IFS
5044  test -z "$as_dir" && as_dir=.
5045  for ac_exec_ext in '' $ac_executable_extensions; do
5046  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5047    ac_cv_prog_LEX="$ac_prog"
5048    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5049    break 2
5050  fi
5051done
5052done
5053
5054fi
5055fi
5056LEX=$ac_cv_prog_LEX
5057if test -n "$LEX"; then
5058  echo "$as_me:$LINENO: result: $LEX" >&5
5059echo "${ECHO_T}$LEX" >&6
5060else
5061  echo "$as_me:$LINENO: result: no" >&5
5062echo "${ECHO_T}no" >&6
5063fi
5064
5065  test -n "$LEX" && break
5066done
5067test -n "$LEX" || LEX=":"
5068
5069# We do not want flex linked in the binutils, so force this empty.
5070LEXLIB=""
5071
5072if test "x$LEX" != "x:"; then
5073  echo "$as_me:$LINENO: checking lex output file root" >&5
5074echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
5075if test "${ac_cv_prog_lex_root+set}" = set; then
5076  echo $ECHO_N "(cached) $ECHO_C" >&6
5077else
5078  # The minimal lex program is just a single line: %%.  But some broken lexes
5079# (Solaris, I think it was) want two %% lines, so accommodate them.
5080cat >conftest.l <<_ACEOF
5081%%
5082%%
5083_ACEOF
5084{ (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
5085  (eval $LEX conftest.l) 2>&5
5086  ac_status=$?
5087  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5088  (exit $ac_status); }
5089if test -f lex.yy.c; then
5090  ac_cv_prog_lex_root=lex.yy
5091elif test -f lexyy.c; then
5092  ac_cv_prog_lex_root=lexyy
5093else
5094  { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
5095echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
5096   { (exit 1); exit 1; }; }
5097fi
5098fi
5099echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
5100echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
5101rm -f conftest.l
5102LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
5103
5104echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
5105echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
5106if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
5107  echo $ECHO_N "(cached) $ECHO_C" >&6
5108else
5109  # POSIX says lex can declare yytext either as a pointer or an array; the
5110# default is implementation-dependent. Figure out which it is, since
5111# not all implementations provide the %pointer and %array declarations.
5112ac_cv_prog_lex_yytext_pointer=no
5113echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
5114ac_save_LIBS=$LIBS
5115LIBS="$LIBS $LEXLIB"
5116cat >conftest.$ac_ext <<_ACEOF
5117`cat $LEX_OUTPUT_ROOT.c`
5118_ACEOF
5119rm -f conftest.$ac_objext conftest$ac_exeext
5120if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5121  (eval $ac_link) 2>conftest.er1
5122  ac_status=$?
5123  grep -v '^ *+' conftest.er1 >conftest.err
5124  rm -f conftest.er1
5125  cat conftest.err >&5
5126  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5127  (exit $ac_status); } &&
5128	 { ac_try='test -z "$ac_c_werror_flag"
5129			 || test ! -s conftest.err'
5130  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5131  (eval $ac_try) 2>&5
5132  ac_status=$?
5133  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5134  (exit $ac_status); }; } &&
5135	 { ac_try='test -s conftest$ac_exeext'
5136  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5137  (eval $ac_try) 2>&5
5138  ac_status=$?
5139  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5140  (exit $ac_status); }; }; then
5141  ac_cv_prog_lex_yytext_pointer=yes
5142else
5143  echo "$as_me: failed program was:" >&5
5144sed 's/^/| /' conftest.$ac_ext >&5
5145
5146fi
5147rm -f conftest.err conftest.$ac_objext \
5148      conftest$ac_exeext conftest.$ac_ext
5149LIBS=$ac_save_LIBS
5150rm -f "${LEX_OUTPUT_ROOT}.c"
5151
5152fi
5153echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
5154echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
5155if test $ac_cv_prog_lex_yytext_pointer = yes; then
5156
5157cat >>confdefs.h <<\_ACEOF
5158#define YYTEXT_POINTER 1
5159_ACEOF
5160
5161fi
5162
5163fi
5164if test "$LEX" = :; then
5165  LEX=${am_missing_run}flex
5166fi
5167
5168ALL_LINGUAS="fr tr ja es sv da zh_CN ru ro rw zh_TW fi vi"
5169if test -n "$ac_tool_prefix"; then
5170  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5171set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5172echo "$as_me:$LINENO: checking for $ac_word" >&5
5173echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5174if test "${ac_cv_prog_RANLIB+set}" = set; then
5175  echo $ECHO_N "(cached) $ECHO_C" >&6
5176else
5177  if test -n "$RANLIB"; then
5178  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5179else
5180as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5181for as_dir in $PATH
5182do
5183  IFS=$as_save_IFS
5184  test -z "$as_dir" && as_dir=.
5185  for ac_exec_ext in '' $ac_executable_extensions; do
5186  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5187    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5188    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5189    break 2
5190  fi
5191done
5192done
5193
5194fi
5195fi
5196RANLIB=$ac_cv_prog_RANLIB
5197if test -n "$RANLIB"; then
5198  echo "$as_me:$LINENO: result: $RANLIB" >&5
5199echo "${ECHO_T}$RANLIB" >&6
5200else
5201  echo "$as_me:$LINENO: result: no" >&5
5202echo "${ECHO_T}no" >&6
5203fi
5204
5205fi
5206if test -z "$ac_cv_prog_RANLIB"; then
5207  ac_ct_RANLIB=$RANLIB
5208  # Extract the first word of "ranlib", so it can be a program name with args.
5209set dummy ranlib; ac_word=$2
5210echo "$as_me:$LINENO: checking for $ac_word" >&5
5211echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5212if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5213  echo $ECHO_N "(cached) $ECHO_C" >&6
5214else
5215  if test -n "$ac_ct_RANLIB"; then
5216  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5217else
5218as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5219for as_dir in $PATH
5220do
5221  IFS=$as_save_IFS
5222  test -z "$as_dir" && as_dir=.
5223  for ac_exec_ext in '' $ac_executable_extensions; do
5224  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5225    ac_cv_prog_ac_ct_RANLIB="ranlib"
5226    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5227    break 2
5228  fi
5229done
5230done
5231
5232  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5233fi
5234fi
5235ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5236if test -n "$ac_ct_RANLIB"; then
5237  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5238echo "${ECHO_T}$ac_ct_RANLIB" >&6
5239else
5240  echo "$as_me:$LINENO: result: no" >&5
5241echo "${ECHO_T}no" >&6
5242fi
5243
5244  RANLIB=$ac_ct_RANLIB
5245else
5246  RANLIB="$ac_cv_prog_RANLIB"
5247fi
5248
5249ac_ext=c
5250ac_cpp='$CPP $CPPFLAGS'
5251ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5252ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5253ac_compiler_gnu=$ac_cv_c_compiler_gnu
5254echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5255echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
5256# On Suns, sometimes $CPP names a directory.
5257if test -n "$CPP" && test -d "$CPP"; then
5258  CPP=
5259fi
5260if test -z "$CPP"; then
5261  if test "${ac_cv_prog_CPP+set}" = set; then
5262  echo $ECHO_N "(cached) $ECHO_C" >&6
5263else
5264      # Double quotes because CPP needs to be expanded
5265    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5266    do
5267      ac_preproc_ok=false
5268for ac_c_preproc_warn_flag in '' yes
5269do
5270  # Use a header file that comes with gcc, so configuring glibc
5271  # with a fresh cross-compiler works.
5272  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5273  # <limits.h> exists even on freestanding compilers.
5274  # On the NeXT, cc -E runs the code through the compiler's parser,
5275  # not just through cpp. "Syntax error" is here to catch this case.
5276  cat >conftest.$ac_ext <<_ACEOF
5277/* confdefs.h.  */
5278_ACEOF
5279cat confdefs.h >>conftest.$ac_ext
5280cat >>conftest.$ac_ext <<_ACEOF
5281/* end confdefs.h.  */
5282#ifdef __STDC__
5283# include <limits.h>
5284#else
5285# include <assert.h>
5286#endif
5287		     Syntax error
5288_ACEOF
5289if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5290  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5291  ac_status=$?
5292  grep -v '^ *+' conftest.er1 >conftest.err
5293  rm -f conftest.er1
5294  cat conftest.err >&5
5295  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5296  (exit $ac_status); } >/dev/null; then
5297  if test -s conftest.err; then
5298    ac_cpp_err=$ac_c_preproc_warn_flag
5299    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5300  else
5301    ac_cpp_err=
5302  fi
5303else
5304  ac_cpp_err=yes
5305fi
5306if test -z "$ac_cpp_err"; then
5307  :
5308else
5309  echo "$as_me: failed program was:" >&5
5310sed 's/^/| /' conftest.$ac_ext >&5
5311
5312  # Broken: fails on valid input.
5313continue
5314fi
5315rm -f conftest.err conftest.$ac_ext
5316
5317  # OK, works on sane cases.  Now check whether non-existent headers
5318  # can be detected and how.
5319  cat >conftest.$ac_ext <<_ACEOF
5320/* confdefs.h.  */
5321_ACEOF
5322cat confdefs.h >>conftest.$ac_ext
5323cat >>conftest.$ac_ext <<_ACEOF
5324/* end confdefs.h.  */
5325#include <ac_nonexistent.h>
5326_ACEOF
5327if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5328  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5329  ac_status=$?
5330  grep -v '^ *+' conftest.er1 >conftest.err
5331  rm -f conftest.er1
5332  cat conftest.err >&5
5333  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5334  (exit $ac_status); } >/dev/null; then
5335  if test -s conftest.err; then
5336    ac_cpp_err=$ac_c_preproc_warn_flag
5337    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5338  else
5339    ac_cpp_err=
5340  fi
5341else
5342  ac_cpp_err=yes
5343fi
5344if test -z "$ac_cpp_err"; then
5345  # Broken: success on invalid input.
5346continue
5347else
5348  echo "$as_me: failed program was:" >&5
5349sed 's/^/| /' conftest.$ac_ext >&5
5350
5351  # Passes both tests.
5352ac_preproc_ok=:
5353break
5354fi
5355rm -f conftest.err conftest.$ac_ext
5356
5357done
5358# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5359rm -f conftest.err conftest.$ac_ext
5360if $ac_preproc_ok; then
5361  break
5362fi
5363
5364    done
5365    ac_cv_prog_CPP=$CPP
5366
5367fi
5368  CPP=$ac_cv_prog_CPP
5369else
5370  ac_cv_prog_CPP=$CPP
5371fi
5372echo "$as_me:$LINENO: result: $CPP" >&5
5373echo "${ECHO_T}$CPP" >&6
5374ac_preproc_ok=false
5375for ac_c_preproc_warn_flag in '' yes
5376do
5377  # Use a header file that comes with gcc, so configuring glibc
5378  # with a fresh cross-compiler works.
5379  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5380  # <limits.h> exists even on freestanding compilers.
5381  # On the NeXT, cc -E runs the code through the compiler's parser,
5382  # not just through cpp. "Syntax error" is here to catch this case.
5383  cat >conftest.$ac_ext <<_ACEOF
5384/* confdefs.h.  */
5385_ACEOF
5386cat confdefs.h >>conftest.$ac_ext
5387cat >>conftest.$ac_ext <<_ACEOF
5388/* end confdefs.h.  */
5389#ifdef __STDC__
5390# include <limits.h>
5391#else
5392# include <assert.h>
5393#endif
5394		     Syntax error
5395_ACEOF
5396if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5397  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5398  ac_status=$?
5399  grep -v '^ *+' conftest.er1 >conftest.err
5400  rm -f conftest.er1
5401  cat conftest.err >&5
5402  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5403  (exit $ac_status); } >/dev/null; then
5404  if test -s conftest.err; then
5405    ac_cpp_err=$ac_c_preproc_warn_flag
5406    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5407  else
5408    ac_cpp_err=
5409  fi
5410else
5411  ac_cpp_err=yes
5412fi
5413if test -z "$ac_cpp_err"; then
5414  :
5415else
5416  echo "$as_me: failed program was:" >&5
5417sed 's/^/| /' conftest.$ac_ext >&5
5418
5419  # Broken: fails on valid input.
5420continue
5421fi
5422rm -f conftest.err conftest.$ac_ext
5423
5424  # OK, works on sane cases.  Now check whether non-existent headers
5425  # can be detected and how.
5426  cat >conftest.$ac_ext <<_ACEOF
5427/* confdefs.h.  */
5428_ACEOF
5429cat confdefs.h >>conftest.$ac_ext
5430cat >>conftest.$ac_ext <<_ACEOF
5431/* end confdefs.h.  */
5432#include <ac_nonexistent.h>
5433_ACEOF
5434if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5435  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5436  ac_status=$?
5437  grep -v '^ *+' conftest.er1 >conftest.err
5438  rm -f conftest.er1
5439  cat conftest.err >&5
5440  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5441  (exit $ac_status); } >/dev/null; then
5442  if test -s conftest.err; then
5443    ac_cpp_err=$ac_c_preproc_warn_flag
5444    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5445  else
5446    ac_cpp_err=
5447  fi
5448else
5449  ac_cpp_err=yes
5450fi
5451if test -z "$ac_cpp_err"; then
5452  # Broken: success on invalid input.
5453continue
5454else
5455  echo "$as_me: failed program was:" >&5
5456sed 's/^/| /' conftest.$ac_ext >&5
5457
5458  # Passes both tests.
5459ac_preproc_ok=:
5460break
5461fi
5462rm -f conftest.err conftest.$ac_ext
5463
5464done
5465# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5466rm -f conftest.err conftest.$ac_ext
5467if $ac_preproc_ok; then
5468  :
5469else
5470  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5471See \`config.log' for more details." >&5
5472echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5473See \`config.log' for more details." >&2;}
5474   { (exit 1); exit 1; }; }
5475fi
5476
5477ac_ext=c
5478ac_cpp='$CPP $CPPFLAGS'
5479ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5480ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5481ac_compiler_gnu=$ac_cv_c_compiler_gnu
5482
5483
5484echo "$as_me:$LINENO: checking for egrep" >&5
5485echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5486if test "${ac_cv_prog_egrep+set}" = set; then
5487  echo $ECHO_N "(cached) $ECHO_C" >&6
5488else
5489  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5490    then ac_cv_prog_egrep='grep -E'
5491    else ac_cv_prog_egrep='egrep'
5492    fi
5493fi
5494echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5495echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5496 EGREP=$ac_cv_prog_egrep
5497
5498
5499echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5500echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5501if test "${ac_cv_header_stdc+set}" = set; then
5502  echo $ECHO_N "(cached) $ECHO_C" >&6
5503else
5504  cat >conftest.$ac_ext <<_ACEOF
5505/* confdefs.h.  */
5506_ACEOF
5507cat confdefs.h >>conftest.$ac_ext
5508cat >>conftest.$ac_ext <<_ACEOF
5509/* end confdefs.h.  */
5510#include <stdlib.h>
5511#include <stdarg.h>
5512#include <string.h>
5513#include <float.h>
5514
5515int
5516main ()
5517{
5518
5519  ;
5520  return 0;
5521}
5522_ACEOF
5523rm -f conftest.$ac_objext
5524if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5525  (eval $ac_compile) 2>conftest.er1
5526  ac_status=$?
5527  grep -v '^ *+' conftest.er1 >conftest.err
5528  rm -f conftest.er1
5529  cat conftest.err >&5
5530  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5531  (exit $ac_status); } &&
5532	 { ac_try='test -z "$ac_c_werror_flag"
5533			 || test ! -s conftest.err'
5534  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5535  (eval $ac_try) 2>&5
5536  ac_status=$?
5537  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5538  (exit $ac_status); }; } &&
5539	 { ac_try='test -s conftest.$ac_objext'
5540  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5541  (eval $ac_try) 2>&5
5542  ac_status=$?
5543  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5544  (exit $ac_status); }; }; then
5545  ac_cv_header_stdc=yes
5546else
5547  echo "$as_me: failed program was:" >&5
5548sed 's/^/| /' conftest.$ac_ext >&5
5549
5550ac_cv_header_stdc=no
5551fi
5552rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5553
5554if test $ac_cv_header_stdc = yes; then
5555  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5556  cat >conftest.$ac_ext <<_ACEOF
5557/* confdefs.h.  */
5558_ACEOF
5559cat confdefs.h >>conftest.$ac_ext
5560cat >>conftest.$ac_ext <<_ACEOF
5561/* end confdefs.h.  */
5562#include <string.h>
5563
5564_ACEOF
5565if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5566  $EGREP "memchr" >/dev/null 2>&1; then
5567  :
5568else
5569  ac_cv_header_stdc=no
5570fi
5571rm -f conftest*
5572
5573fi
5574
5575if test $ac_cv_header_stdc = yes; then
5576  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5577  cat >conftest.$ac_ext <<_ACEOF
5578/* confdefs.h.  */
5579_ACEOF
5580cat confdefs.h >>conftest.$ac_ext
5581cat >>conftest.$ac_ext <<_ACEOF
5582/* end confdefs.h.  */
5583#include <stdlib.h>
5584
5585_ACEOF
5586if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5587  $EGREP "free" >/dev/null 2>&1; then
5588  :
5589else
5590  ac_cv_header_stdc=no
5591fi
5592rm -f conftest*
5593
5594fi
5595
5596if test $ac_cv_header_stdc = yes; then
5597  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5598  if test "$cross_compiling" = yes; then
5599  :
5600else
5601  cat >conftest.$ac_ext <<_ACEOF
5602/* confdefs.h.  */
5603_ACEOF
5604cat confdefs.h >>conftest.$ac_ext
5605cat >>conftest.$ac_ext <<_ACEOF
5606/* end confdefs.h.  */
5607#include <ctype.h>
5608#if ((' ' & 0x0FF) == 0x020)
5609# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5610# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5611#else
5612# define ISLOWER(c) \
5613		   (('a' <= (c) && (c) <= 'i') \
5614		     || ('j' <= (c) && (c) <= 'r') \
5615		     || ('s' <= (c) && (c) <= 'z'))
5616# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5617#endif
5618
5619#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5620int
5621main ()
5622{
5623  int i;
5624  for (i = 0; i < 256; i++)
5625    if (XOR (islower (i), ISLOWER (i))
5626	|| toupper (i) != TOUPPER (i))
5627      exit(2);
5628  exit (0);
5629}
5630_ACEOF
5631rm -f conftest$ac_exeext
5632if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5633  (eval $ac_link) 2>&5
5634  ac_status=$?
5635  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5636  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5637  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5638  (eval $ac_try) 2>&5
5639  ac_status=$?
5640  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5641  (exit $ac_status); }; }; then
5642  :
5643else
5644  echo "$as_me: program exited with status $ac_status" >&5
5645echo "$as_me: failed program was:" >&5
5646sed 's/^/| /' conftest.$ac_ext >&5
5647
5648( exit $ac_status )
5649ac_cv_header_stdc=no
5650fi
5651rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5652fi
5653fi
5654fi
5655echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5656echo "${ECHO_T}$ac_cv_header_stdc" >&6
5657if test $ac_cv_header_stdc = yes; then
5658
5659cat >>confdefs.h <<\_ACEOF
5660#define STDC_HEADERS 1
5661_ACEOF
5662
5663fi
5664
5665echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
5666echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
5667if test "${ac_cv_c_const+set}" = set; then
5668  echo $ECHO_N "(cached) $ECHO_C" >&6
5669else
5670  cat >conftest.$ac_ext <<_ACEOF
5671/* confdefs.h.  */
5672_ACEOF
5673cat confdefs.h >>conftest.$ac_ext
5674cat >>conftest.$ac_ext <<_ACEOF
5675/* end confdefs.h.  */
5676
5677int
5678main ()
5679{
5680/* FIXME: Include the comments suggested by Paul. */
5681#ifndef __cplusplus
5682  /* Ultrix mips cc rejects this.  */
5683  typedef int charset[2];
5684  const charset x;
5685  /* SunOS 4.1.1 cc rejects this.  */
5686  char const *const *ccp;
5687  char **p;
5688  /* NEC SVR4.0.2 mips cc rejects this.  */
5689  struct point {int x, y;};
5690  static struct point const zero = {0,0};
5691  /* AIX XL C 1.02.0.0 rejects this.
5692     It does not let you subtract one const X* pointer from another in
5693     an arm of an if-expression whose if-part is not a constant
5694     expression */
5695  const char *g = "string";
5696  ccp = &g + (g ? g-g : 0);
5697  /* HPUX 7.0 cc rejects these. */
5698  ++ccp;
5699  p = (char**) ccp;
5700  ccp = (char const *const *) p;
5701  { /* SCO 3.2v4 cc rejects this.  */
5702    char *t;
5703    char const *s = 0 ? (char *) 0 : (char const *) 0;
5704
5705    *t++ = 0;
5706  }
5707  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
5708    int x[] = {25, 17};
5709    const int *foo = &x[0];
5710    ++foo;
5711  }
5712  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5713    typedef const int *iptr;
5714    iptr p = 0;
5715    ++p;
5716  }
5717  { /* AIX XL C 1.02.0.0 rejects this saying
5718       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5719    struct s { int j; const int *ap[3]; };
5720    struct s *b; b->j = 5;
5721  }
5722  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5723    const int foo = 10;
5724  }
5725#endif
5726
5727  ;
5728  return 0;
5729}
5730_ACEOF
5731rm -f conftest.$ac_objext
5732if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5733  (eval $ac_compile) 2>conftest.er1
5734  ac_status=$?
5735  grep -v '^ *+' conftest.er1 >conftest.err
5736  rm -f conftest.er1
5737  cat conftest.err >&5
5738  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5739  (exit $ac_status); } &&
5740	 { ac_try='test -z "$ac_c_werror_flag"
5741			 || test ! -s conftest.err'
5742  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5743  (eval $ac_try) 2>&5
5744  ac_status=$?
5745  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5746  (exit $ac_status); }; } &&
5747	 { ac_try='test -s conftest.$ac_objext'
5748  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5749  (eval $ac_try) 2>&5
5750  ac_status=$?
5751  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5752  (exit $ac_status); }; }; then
5753  ac_cv_c_const=yes
5754else
5755  echo "$as_me: failed program was:" >&5
5756sed 's/^/| /' conftest.$ac_ext >&5
5757
5758ac_cv_c_const=no
5759fi
5760rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5761fi
5762echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
5763echo "${ECHO_T}$ac_cv_c_const" >&6
5764if test $ac_cv_c_const = no; then
5765
5766cat >>confdefs.h <<\_ACEOF
5767#define const
5768_ACEOF
5769
5770fi
5771
5772echo "$as_me:$LINENO: checking for inline" >&5
5773echo $ECHO_N "checking for inline... $ECHO_C" >&6
5774if test "${ac_cv_c_inline+set}" = set; then
5775  echo $ECHO_N "(cached) $ECHO_C" >&6
5776else
5777  ac_cv_c_inline=no
5778for ac_kw in inline __inline__ __inline; do
5779  cat >conftest.$ac_ext <<_ACEOF
5780/* confdefs.h.  */
5781_ACEOF
5782cat confdefs.h >>conftest.$ac_ext
5783cat >>conftest.$ac_ext <<_ACEOF
5784/* end confdefs.h.  */
5785#ifndef __cplusplus
5786typedef int foo_t;
5787static $ac_kw foo_t static_foo () {return 0; }
5788$ac_kw foo_t foo () {return 0; }
5789#endif
5790
5791_ACEOF
5792rm -f conftest.$ac_objext
5793if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5794  (eval $ac_compile) 2>conftest.er1
5795  ac_status=$?
5796  grep -v '^ *+' conftest.er1 >conftest.err
5797  rm -f conftest.er1
5798  cat conftest.err >&5
5799  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5800  (exit $ac_status); } &&
5801	 { ac_try='test -z "$ac_c_werror_flag"
5802			 || test ! -s conftest.err'
5803  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5804  (eval $ac_try) 2>&5
5805  ac_status=$?
5806  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5807  (exit $ac_status); }; } &&
5808	 { ac_try='test -s conftest.$ac_objext'
5809  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5810  (eval $ac_try) 2>&5
5811  ac_status=$?
5812  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5813  (exit $ac_status); }; }; then
5814  ac_cv_c_inline=$ac_kw; break
5815else
5816  echo "$as_me: failed program was:" >&5
5817sed 's/^/| /' conftest.$ac_ext >&5
5818
5819fi
5820rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5821done
5822
5823fi
5824echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
5825echo "${ECHO_T}$ac_cv_c_inline" >&6
5826
5827
5828case $ac_cv_c_inline in
5829  inline | yes) ;;
5830  *)
5831    case $ac_cv_c_inline in
5832      no) ac_val=;;
5833      *) ac_val=$ac_cv_c_inline;;
5834    esac
5835    cat >>confdefs.h <<_ACEOF
5836#ifndef __cplusplus
5837#define inline $ac_val
5838#endif
5839_ACEOF
5840    ;;
5841esac
5842
5843# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5844
5845
5846
5847
5848
5849
5850
5851
5852
5853for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5854		  inttypes.h stdint.h unistd.h
5855do
5856as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5857echo "$as_me:$LINENO: checking for $ac_header" >&5
5858echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5859if eval "test \"\${$as_ac_Header+set}\" = set"; then
5860  echo $ECHO_N "(cached) $ECHO_C" >&6
5861else
5862  cat >conftest.$ac_ext <<_ACEOF
5863/* confdefs.h.  */
5864_ACEOF
5865cat confdefs.h >>conftest.$ac_ext
5866cat >>conftest.$ac_ext <<_ACEOF
5867/* end confdefs.h.  */
5868$ac_includes_default
5869
5870#include <$ac_header>
5871_ACEOF
5872rm -f conftest.$ac_objext
5873if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5874  (eval $ac_compile) 2>conftest.er1
5875  ac_status=$?
5876  grep -v '^ *+' conftest.er1 >conftest.err
5877  rm -f conftest.er1
5878  cat conftest.err >&5
5879  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5880  (exit $ac_status); } &&
5881	 { ac_try='test -z "$ac_c_werror_flag"
5882			 || test ! -s conftest.err'
5883  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5884  (eval $ac_try) 2>&5
5885  ac_status=$?
5886  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5887  (exit $ac_status); }; } &&
5888	 { ac_try='test -s conftest.$ac_objext'
5889  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5890  (eval $ac_try) 2>&5
5891  ac_status=$?
5892  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5893  (exit $ac_status); }; }; then
5894  eval "$as_ac_Header=yes"
5895else
5896  echo "$as_me: failed program was:" >&5
5897sed 's/^/| /' conftest.$ac_ext >&5
5898
5899eval "$as_ac_Header=no"
5900fi
5901rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5902fi
5903echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5904echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5905if test `eval echo '${'$as_ac_Header'}'` = yes; then
5906  cat >>confdefs.h <<_ACEOF
5907#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5908_ACEOF
5909
5910fi
5911
5912done
5913
5914
5915echo "$as_me:$LINENO: checking for off_t" >&5
5916echo $ECHO_N "checking for off_t... $ECHO_C" >&6
5917if test "${ac_cv_type_off_t+set}" = set; then
5918  echo $ECHO_N "(cached) $ECHO_C" >&6
5919else
5920  cat >conftest.$ac_ext <<_ACEOF
5921/* confdefs.h.  */
5922_ACEOF
5923cat confdefs.h >>conftest.$ac_ext
5924cat >>conftest.$ac_ext <<_ACEOF
5925/* end confdefs.h.  */
5926$ac_includes_default
5927int
5928main ()
5929{
5930if ((off_t *) 0)
5931  return 0;
5932if (sizeof (off_t))
5933  return 0;
5934  ;
5935  return 0;
5936}
5937_ACEOF
5938rm -f conftest.$ac_objext
5939if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5940  (eval $ac_compile) 2>conftest.er1
5941  ac_status=$?
5942  grep -v '^ *+' conftest.er1 >conftest.err
5943  rm -f conftest.er1
5944  cat conftest.err >&5
5945  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5946  (exit $ac_status); } &&
5947	 { ac_try='test -z "$ac_c_werror_flag"
5948			 || test ! -s conftest.err'
5949  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5950  (eval $ac_try) 2>&5
5951  ac_status=$?
5952  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5953  (exit $ac_status); }; } &&
5954	 { ac_try='test -s conftest.$ac_objext'
5955  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5956  (eval $ac_try) 2>&5
5957  ac_status=$?
5958  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5959  (exit $ac_status); }; }; then
5960  ac_cv_type_off_t=yes
5961else
5962  echo "$as_me: failed program was:" >&5
5963sed 's/^/| /' conftest.$ac_ext >&5
5964
5965ac_cv_type_off_t=no
5966fi
5967rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5968fi
5969echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
5970echo "${ECHO_T}$ac_cv_type_off_t" >&6
5971if test $ac_cv_type_off_t = yes; then
5972  :
5973else
5974
5975cat >>confdefs.h <<_ACEOF
5976#define off_t long
5977_ACEOF
5978
5979fi
5980
5981echo "$as_me:$LINENO: checking for size_t" >&5
5982echo $ECHO_N "checking for size_t... $ECHO_C" >&6
5983if test "${ac_cv_type_size_t+set}" = set; then
5984  echo $ECHO_N "(cached) $ECHO_C" >&6
5985else
5986  cat >conftest.$ac_ext <<_ACEOF
5987/* confdefs.h.  */
5988_ACEOF
5989cat confdefs.h >>conftest.$ac_ext
5990cat >>conftest.$ac_ext <<_ACEOF
5991/* end confdefs.h.  */
5992$ac_includes_default
5993int
5994main ()
5995{
5996if ((size_t *) 0)
5997  return 0;
5998if (sizeof (size_t))
5999  return 0;
6000  ;
6001  return 0;
6002}
6003_ACEOF
6004rm -f conftest.$ac_objext
6005if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6006  (eval $ac_compile) 2>conftest.er1
6007  ac_status=$?
6008  grep -v '^ *+' conftest.er1 >conftest.err
6009  rm -f conftest.er1
6010  cat conftest.err >&5
6011  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6012  (exit $ac_status); } &&
6013	 { ac_try='test -z "$ac_c_werror_flag"
6014			 || test ! -s conftest.err'
6015  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6016  (eval $ac_try) 2>&5
6017  ac_status=$?
6018  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6019  (exit $ac_status); }; } &&
6020	 { ac_try='test -s conftest.$ac_objext'
6021  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6022  (eval $ac_try) 2>&5
6023  ac_status=$?
6024  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6025  (exit $ac_status); }; }; then
6026  ac_cv_type_size_t=yes
6027else
6028  echo "$as_me: failed program was:" >&5
6029sed 's/^/| /' conftest.$ac_ext >&5
6030
6031ac_cv_type_size_t=no
6032fi
6033rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6034fi
6035echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
6036echo "${ECHO_T}$ac_cv_type_size_t" >&6
6037if test $ac_cv_type_size_t = yes; then
6038  :
6039else
6040
6041cat >>confdefs.h <<_ACEOF
6042#define size_t unsigned
6043_ACEOF
6044
6045fi
6046
6047# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6048# for constant arguments.  Useless!
6049echo "$as_me:$LINENO: checking for working alloca.h" >&5
6050echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
6051if test "${ac_cv_working_alloca_h+set}" = set; then
6052  echo $ECHO_N "(cached) $ECHO_C" >&6
6053else
6054  cat >conftest.$ac_ext <<_ACEOF
6055/* confdefs.h.  */
6056_ACEOF
6057cat confdefs.h >>conftest.$ac_ext
6058cat >>conftest.$ac_ext <<_ACEOF
6059/* end confdefs.h.  */
6060#include <alloca.h>
6061int
6062main ()
6063{
6064char *p = (char *) alloca (2 * sizeof (int));
6065  ;
6066  return 0;
6067}
6068_ACEOF
6069rm -f conftest.$ac_objext conftest$ac_exeext
6070if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6071  (eval $ac_link) 2>conftest.er1
6072  ac_status=$?
6073  grep -v '^ *+' conftest.er1 >conftest.err
6074  rm -f conftest.er1
6075  cat conftest.err >&5
6076  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6077  (exit $ac_status); } &&
6078	 { ac_try='test -z "$ac_c_werror_flag"
6079			 || test ! -s conftest.err'
6080  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6081  (eval $ac_try) 2>&5
6082  ac_status=$?
6083  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6084  (exit $ac_status); }; } &&
6085	 { ac_try='test -s conftest$ac_exeext'
6086  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6087  (eval $ac_try) 2>&5
6088  ac_status=$?
6089  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6090  (exit $ac_status); }; }; then
6091  ac_cv_working_alloca_h=yes
6092else
6093  echo "$as_me: failed program was:" >&5
6094sed 's/^/| /' conftest.$ac_ext >&5
6095
6096ac_cv_working_alloca_h=no
6097fi
6098rm -f conftest.err conftest.$ac_objext \
6099      conftest$ac_exeext conftest.$ac_ext
6100fi
6101echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
6102echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
6103if test $ac_cv_working_alloca_h = yes; then
6104
6105cat >>confdefs.h <<\_ACEOF
6106#define HAVE_ALLOCA_H 1
6107_ACEOF
6108
6109fi
6110
6111echo "$as_me:$LINENO: checking for alloca" >&5
6112echo $ECHO_N "checking for alloca... $ECHO_C" >&6
6113if test "${ac_cv_func_alloca_works+set}" = set; then
6114  echo $ECHO_N "(cached) $ECHO_C" >&6
6115else
6116  cat >conftest.$ac_ext <<_ACEOF
6117/* confdefs.h.  */
6118_ACEOF
6119cat confdefs.h >>conftest.$ac_ext
6120cat >>conftest.$ac_ext <<_ACEOF
6121/* end confdefs.h.  */
6122#ifdef __GNUC__
6123# define alloca __builtin_alloca
6124#else
6125# ifdef _MSC_VER
6126#  include <malloc.h>
6127#  define alloca _alloca
6128# else
6129#  if HAVE_ALLOCA_H
6130#   include <alloca.h>
6131#  else
6132#   ifdef _AIX
6133 #pragma alloca
6134#   else
6135#    ifndef alloca /* predefined by HP cc +Olibcalls */
6136char *alloca ();
6137#    endif
6138#   endif
6139#  endif
6140# endif
6141#endif
6142
6143int
6144main ()
6145{
6146char *p = (char *) alloca (1);
6147  ;
6148  return 0;
6149}
6150_ACEOF
6151rm -f conftest.$ac_objext conftest$ac_exeext
6152if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6153  (eval $ac_link) 2>conftest.er1
6154  ac_status=$?
6155  grep -v '^ *+' conftest.er1 >conftest.err
6156  rm -f conftest.er1
6157  cat conftest.err >&5
6158  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6159  (exit $ac_status); } &&
6160	 { ac_try='test -z "$ac_c_werror_flag"
6161			 || test ! -s conftest.err'
6162  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6163  (eval $ac_try) 2>&5
6164  ac_status=$?
6165  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6166  (exit $ac_status); }; } &&
6167	 { ac_try='test -s conftest$ac_exeext'
6168  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6169  (eval $ac_try) 2>&5
6170  ac_status=$?
6171  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6172  (exit $ac_status); }; }; then
6173  ac_cv_func_alloca_works=yes
6174else
6175  echo "$as_me: failed program was:" >&5
6176sed 's/^/| /' conftest.$ac_ext >&5
6177
6178ac_cv_func_alloca_works=no
6179fi
6180rm -f conftest.err conftest.$ac_objext \
6181      conftest$ac_exeext conftest.$ac_ext
6182fi
6183echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
6184echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
6185
6186if test $ac_cv_func_alloca_works = yes; then
6187
6188cat >>confdefs.h <<\_ACEOF
6189#define HAVE_ALLOCA 1
6190_ACEOF
6191
6192else
6193  # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6194# that cause trouble.  Some versions do not even contain alloca or
6195# contain a buggy version.  If you still want to use their alloca,
6196# use ar to extract alloca.o from them instead of compiling alloca.c.
6197
6198ALLOCA=alloca.$ac_objext
6199
6200cat >>confdefs.h <<\_ACEOF
6201#define C_ALLOCA 1
6202_ACEOF
6203
6204
6205echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
6206echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
6207if test "${ac_cv_os_cray+set}" = set; then
6208  echo $ECHO_N "(cached) $ECHO_C" >&6
6209else
6210  cat >conftest.$ac_ext <<_ACEOF
6211/* confdefs.h.  */
6212_ACEOF
6213cat confdefs.h >>conftest.$ac_ext
6214cat >>conftest.$ac_ext <<_ACEOF
6215/* end confdefs.h.  */
6216#if defined(CRAY) && ! defined(CRAY2)
6217webecray
6218#else
6219wenotbecray
6220#endif
6221
6222_ACEOF
6223if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6224  $EGREP "webecray" >/dev/null 2>&1; then
6225  ac_cv_os_cray=yes
6226else
6227  ac_cv_os_cray=no
6228fi
6229rm -f conftest*
6230
6231fi
6232echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
6233echo "${ECHO_T}$ac_cv_os_cray" >&6
6234if test $ac_cv_os_cray = yes; then
6235  for ac_func in _getb67 GETB67 getb67; do
6236    as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6237echo "$as_me:$LINENO: checking for $ac_func" >&5
6238echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6239if eval "test \"\${$as_ac_var+set}\" = set"; then
6240  echo $ECHO_N "(cached) $ECHO_C" >&6
6241else
6242  cat >conftest.$ac_ext <<_ACEOF
6243/* confdefs.h.  */
6244_ACEOF
6245cat confdefs.h >>conftest.$ac_ext
6246cat >>conftest.$ac_ext <<_ACEOF
6247/* end confdefs.h.  */
6248/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6249   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
6250#define $ac_func innocuous_$ac_func
6251
6252/* System header to define __stub macros and hopefully few prototypes,
6253    which can conflict with char $ac_func (); below.
6254    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6255    <limits.h> exists even on freestanding compilers.  */
6256
6257#ifdef __STDC__
6258# include <limits.h>
6259#else
6260# include <assert.h>
6261#endif
6262
6263#undef $ac_func
6264
6265/* Override any gcc2 internal prototype to avoid an error.  */
6266#ifdef __cplusplus
6267extern "C"
6268{
6269#endif
6270/* We use char because int might match the return type of a gcc2
6271   builtin and then its argument prototype would still apply.  */
6272char $ac_func ();
6273/* The GNU C library defines this for functions which it implements
6274    to always fail with ENOSYS.  Some functions are actually named
6275    something starting with __ and the normal name is an alias.  */
6276#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6277choke me
6278#else
6279char (*f) () = $ac_func;
6280#endif
6281#ifdef __cplusplus
6282}
6283#endif
6284
6285int
6286main ()
6287{
6288return f != $ac_func;
6289  ;
6290  return 0;
6291}
6292_ACEOF
6293rm -f conftest.$ac_objext conftest$ac_exeext
6294if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6295  (eval $ac_link) 2>conftest.er1
6296  ac_status=$?
6297  grep -v '^ *+' conftest.er1 >conftest.err
6298  rm -f conftest.er1
6299  cat conftest.err >&5
6300  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6301  (exit $ac_status); } &&
6302	 { ac_try='test -z "$ac_c_werror_flag"
6303			 || test ! -s conftest.err'
6304  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6305  (eval $ac_try) 2>&5
6306  ac_status=$?
6307  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6308  (exit $ac_status); }; } &&
6309	 { ac_try='test -s conftest$ac_exeext'
6310  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6311  (eval $ac_try) 2>&5
6312  ac_status=$?
6313  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6314  (exit $ac_status); }; }; then
6315  eval "$as_ac_var=yes"
6316else
6317  echo "$as_me: failed program was:" >&5
6318sed 's/^/| /' conftest.$ac_ext >&5
6319
6320eval "$as_ac_var=no"
6321fi
6322rm -f conftest.err conftest.$ac_objext \
6323      conftest$ac_exeext conftest.$ac_ext
6324fi
6325echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6326echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6327if test `eval echo '${'$as_ac_var'}'` = yes; then
6328
6329cat >>confdefs.h <<_ACEOF
6330#define CRAY_STACKSEG_END $ac_func
6331_ACEOF
6332
6333    break
6334fi
6335
6336  done
6337fi
6338
6339echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
6340echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
6341if test "${ac_cv_c_stack_direction+set}" = set; then
6342  echo $ECHO_N "(cached) $ECHO_C" >&6
6343else
6344  if test "$cross_compiling" = yes; then
6345  ac_cv_c_stack_direction=0
6346else
6347  cat >conftest.$ac_ext <<_ACEOF
6348/* confdefs.h.  */
6349_ACEOF
6350cat confdefs.h >>conftest.$ac_ext
6351cat >>conftest.$ac_ext <<_ACEOF
6352/* end confdefs.h.  */
6353int
6354find_stack_direction ()
6355{
6356  static char *addr = 0;
6357  auto char dummy;
6358  if (addr == 0)
6359    {
6360      addr = &dummy;
6361      return find_stack_direction ();
6362    }
6363  else
6364    return (&dummy > addr) ? 1 : -1;
6365}
6366
6367int
6368main ()
6369{
6370  exit (find_stack_direction () < 0);
6371}
6372_ACEOF
6373rm -f conftest$ac_exeext
6374if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6375  (eval $ac_link) 2>&5
6376  ac_status=$?
6377  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6378  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6379  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6380  (eval $ac_try) 2>&5
6381  ac_status=$?
6382  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6383  (exit $ac_status); }; }; then
6384  ac_cv_c_stack_direction=1
6385else
6386  echo "$as_me: program exited with status $ac_status" >&5
6387echo "$as_me: failed program was:" >&5
6388sed 's/^/| /' conftest.$ac_ext >&5
6389
6390( exit $ac_status )
6391ac_cv_c_stack_direction=-1
6392fi
6393rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6394fi
6395fi
6396echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
6397echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
6398
6399cat >>confdefs.h <<_ACEOF
6400#define STACK_DIRECTION $ac_cv_c_stack_direction
6401_ACEOF
6402
6403
6404fi
6405
6406
6407
6408for ac_header in stdlib.h unistd.h
6409do
6410as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6411if eval "test \"\${$as_ac_Header+set}\" = set"; then
6412  echo "$as_me:$LINENO: checking for $ac_header" >&5
6413echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6414if eval "test \"\${$as_ac_Header+set}\" = set"; then
6415  echo $ECHO_N "(cached) $ECHO_C" >&6
6416fi
6417echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6418echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6419else
6420  # Is the header compilable?
6421echo "$as_me:$LINENO: checking $ac_header usability" >&5
6422echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6423cat >conftest.$ac_ext <<_ACEOF
6424/* confdefs.h.  */
6425_ACEOF
6426cat confdefs.h >>conftest.$ac_ext
6427cat >>conftest.$ac_ext <<_ACEOF
6428/* end confdefs.h.  */
6429$ac_includes_default
6430#include <$ac_header>
6431_ACEOF
6432rm -f conftest.$ac_objext
6433if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6434  (eval $ac_compile) 2>conftest.er1
6435  ac_status=$?
6436  grep -v '^ *+' conftest.er1 >conftest.err
6437  rm -f conftest.er1
6438  cat conftest.err >&5
6439  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6440  (exit $ac_status); } &&
6441	 { ac_try='test -z "$ac_c_werror_flag"
6442			 || test ! -s conftest.err'
6443  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6444  (eval $ac_try) 2>&5
6445  ac_status=$?
6446  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6447  (exit $ac_status); }; } &&
6448	 { ac_try='test -s conftest.$ac_objext'
6449  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6450  (eval $ac_try) 2>&5
6451  ac_status=$?
6452  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6453  (exit $ac_status); }; }; then
6454  ac_header_compiler=yes
6455else
6456  echo "$as_me: failed program was:" >&5
6457sed 's/^/| /' conftest.$ac_ext >&5
6458
6459ac_header_compiler=no
6460fi
6461rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6462echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6463echo "${ECHO_T}$ac_header_compiler" >&6
6464
6465# Is the header present?
6466echo "$as_me:$LINENO: checking $ac_header presence" >&5
6467echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6468cat >conftest.$ac_ext <<_ACEOF
6469/* confdefs.h.  */
6470_ACEOF
6471cat confdefs.h >>conftest.$ac_ext
6472cat >>conftest.$ac_ext <<_ACEOF
6473/* end confdefs.h.  */
6474#include <$ac_header>
6475_ACEOF
6476if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6477  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6478  ac_status=$?
6479  grep -v '^ *+' conftest.er1 >conftest.err
6480  rm -f conftest.er1
6481  cat conftest.err >&5
6482  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6483  (exit $ac_status); } >/dev/null; then
6484  if test -s conftest.err; then
6485    ac_cpp_err=$ac_c_preproc_warn_flag
6486    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6487  else
6488    ac_cpp_err=
6489  fi
6490else
6491  ac_cpp_err=yes
6492fi
6493if test -z "$ac_cpp_err"; then
6494  ac_header_preproc=yes
6495else
6496  echo "$as_me: failed program was:" >&5
6497sed 's/^/| /' conftest.$ac_ext >&5
6498
6499  ac_header_preproc=no
6500fi
6501rm -f conftest.err conftest.$ac_ext
6502echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6503echo "${ECHO_T}$ac_header_preproc" >&6
6504
6505# So?  What about this header?
6506case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6507  yes:no: )
6508    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6509echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6510    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6511echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6512    ac_header_preproc=yes
6513    ;;
6514  no:yes:* )
6515    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6516echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6517    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6518echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6519    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6520echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6521    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6522echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6523    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6524echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6525    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6526echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6527    (
6528      cat <<\_ASBOX
6529## ------------------------------------------ ##
6530## Report this to the AC_PACKAGE_NAME lists.  ##
6531## ------------------------------------------ ##
6532_ASBOX
6533    ) |
6534      sed "s/^/$as_me: WARNING:     /" >&2
6535    ;;
6536esac
6537echo "$as_me:$LINENO: checking for $ac_header" >&5
6538echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6539if eval "test \"\${$as_ac_Header+set}\" = set"; then
6540  echo $ECHO_N "(cached) $ECHO_C" >&6
6541else
6542  eval "$as_ac_Header=\$ac_header_preproc"
6543fi
6544echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6545echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6546
6547fi
6548if test `eval echo '${'$as_ac_Header'}'` = yes; then
6549  cat >>confdefs.h <<_ACEOF
6550#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6551_ACEOF
6552
6553fi
6554
6555done
6556
6557
6558for ac_func in getpagesize
6559do
6560as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6561echo "$as_me:$LINENO: checking for $ac_func" >&5
6562echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6563if eval "test \"\${$as_ac_var+set}\" = set"; then
6564  echo $ECHO_N "(cached) $ECHO_C" >&6
6565else
6566  cat >conftest.$ac_ext <<_ACEOF
6567/* confdefs.h.  */
6568_ACEOF
6569cat confdefs.h >>conftest.$ac_ext
6570cat >>conftest.$ac_ext <<_ACEOF
6571/* end confdefs.h.  */
6572/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6573   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
6574#define $ac_func innocuous_$ac_func
6575
6576/* System header to define __stub macros and hopefully few prototypes,
6577    which can conflict with char $ac_func (); below.
6578    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6579    <limits.h> exists even on freestanding compilers.  */
6580
6581#ifdef __STDC__
6582# include <limits.h>
6583#else
6584# include <assert.h>
6585#endif
6586
6587#undef $ac_func
6588
6589/* Override any gcc2 internal prototype to avoid an error.  */
6590#ifdef __cplusplus
6591extern "C"
6592{
6593#endif
6594/* We use char because int might match the return type of a gcc2
6595   builtin and then its argument prototype would still apply.  */
6596char $ac_func ();
6597/* The GNU C library defines this for functions which it implements
6598    to always fail with ENOSYS.  Some functions are actually named
6599    something starting with __ and the normal name is an alias.  */
6600#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6601choke me
6602#else
6603char (*f) () = $ac_func;
6604#endif
6605#ifdef __cplusplus
6606}
6607#endif
6608
6609int
6610main ()
6611{
6612return f != $ac_func;
6613  ;
6614  return 0;
6615}
6616_ACEOF
6617rm -f conftest.$ac_objext conftest$ac_exeext
6618if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6619  (eval $ac_link) 2>conftest.er1
6620  ac_status=$?
6621  grep -v '^ *+' conftest.er1 >conftest.err
6622  rm -f conftest.er1
6623  cat conftest.err >&5
6624  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6625  (exit $ac_status); } &&
6626	 { ac_try='test -z "$ac_c_werror_flag"
6627			 || test ! -s conftest.err'
6628  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6629  (eval $ac_try) 2>&5
6630  ac_status=$?
6631  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6632  (exit $ac_status); }; } &&
6633	 { ac_try='test -s conftest$ac_exeext'
6634  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6635  (eval $ac_try) 2>&5
6636  ac_status=$?
6637  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6638  (exit $ac_status); }; }; then
6639  eval "$as_ac_var=yes"
6640else
6641  echo "$as_me: failed program was:" >&5
6642sed 's/^/| /' conftest.$ac_ext >&5
6643
6644eval "$as_ac_var=no"
6645fi
6646rm -f conftest.err conftest.$ac_objext \
6647      conftest$ac_exeext conftest.$ac_ext
6648fi
6649echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6650echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6651if test `eval echo '${'$as_ac_var'}'` = yes; then
6652  cat >>confdefs.h <<_ACEOF
6653#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6654_ACEOF
6655
6656fi
6657done
6658
6659echo "$as_me:$LINENO: checking for working mmap" >&5
6660echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
6661if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
6662  echo $ECHO_N "(cached) $ECHO_C" >&6
6663else
6664  if test "$cross_compiling" = yes; then
6665  ac_cv_func_mmap_fixed_mapped=no
6666else
6667  cat >conftest.$ac_ext <<_ACEOF
6668/* confdefs.h.  */
6669_ACEOF
6670cat confdefs.h >>conftest.$ac_ext
6671cat >>conftest.$ac_ext <<_ACEOF
6672/* end confdefs.h.  */
6673$ac_includes_default
6674/* malloc might have been renamed as rpl_malloc. */
6675#undef malloc
6676
6677/* Thanks to Mike Haertel and Jim Avera for this test.
6678   Here is a matrix of mmap possibilities:
6679	mmap private not fixed
6680	mmap private fixed at somewhere currently unmapped
6681	mmap private fixed at somewhere already mapped
6682	mmap shared not fixed
6683	mmap shared fixed at somewhere currently unmapped
6684	mmap shared fixed at somewhere already mapped
6685   For private mappings, we should verify that changes cannot be read()
6686   back from the file, nor mmap's back from the file at a different
6687   address.  (There have been systems where private was not correctly
6688   implemented like the infamous i386 svr4.0, and systems where the
6689   VM page cache was not coherent with the file system buffer cache
6690   like early versions of FreeBSD and possibly contemporary NetBSD.)
6691   For shared mappings, we should conversely verify that changes get
6692   propagated back to all the places they're supposed to be.
6693
6694   Grep wants private fixed already mapped.
6695   The main things grep needs to know about mmap are:
6696   * does it exist and is it safe to write into the mmap'd area
6697   * how to use it (BSD variants)  */
6698
6699#include <fcntl.h>
6700#include <sys/mman.h>
6701
6702#if !STDC_HEADERS && !HAVE_STDLIB_H
6703char *malloc ();
6704#endif
6705
6706/* This mess was copied from the GNU getpagesize.h.  */
6707#if !HAVE_GETPAGESIZE
6708/* Assume that all systems that can run configure have sys/param.h.  */
6709# if !HAVE_SYS_PARAM_H
6710#  define HAVE_SYS_PARAM_H 1
6711# endif
6712
6713# ifdef _SC_PAGESIZE
6714#  define getpagesize() sysconf(_SC_PAGESIZE)
6715# else /* no _SC_PAGESIZE */
6716#  if HAVE_SYS_PARAM_H
6717#   include <sys/param.h>
6718#   ifdef EXEC_PAGESIZE
6719#    define getpagesize() EXEC_PAGESIZE
6720#   else /* no EXEC_PAGESIZE */
6721#    ifdef NBPG
6722#     define getpagesize() NBPG * CLSIZE
6723#     ifndef CLSIZE
6724#      define CLSIZE 1
6725#     endif /* no CLSIZE */
6726#    else /* no NBPG */
6727#     ifdef NBPC
6728#      define getpagesize() NBPC
6729#     else /* no NBPC */
6730#      ifdef PAGESIZE
6731#       define getpagesize() PAGESIZE
6732#      endif /* PAGESIZE */
6733#     endif /* no NBPC */
6734#    endif /* no NBPG */
6735#   endif /* no EXEC_PAGESIZE */
6736#  else /* no HAVE_SYS_PARAM_H */
6737#   define getpagesize() 8192	/* punt totally */
6738#  endif /* no HAVE_SYS_PARAM_H */
6739# endif /* no _SC_PAGESIZE */
6740
6741#endif /* no HAVE_GETPAGESIZE */
6742
6743int
6744main ()
6745{
6746  char *data, *data2, *data3;
6747  int i, pagesize;
6748  int fd;
6749
6750  pagesize = getpagesize ();
6751
6752  /* First, make a file with some known garbage in it. */
6753  data = (char *) malloc (pagesize);
6754  if (!data)
6755    exit (1);
6756  for (i = 0; i < pagesize; ++i)
6757    *(data + i) = rand ();
6758  umask (0);
6759  fd = creat ("conftest.mmap", 0600);
6760  if (fd < 0)
6761    exit (1);
6762  if (write (fd, data, pagesize) != pagesize)
6763    exit (1);
6764  close (fd);
6765
6766  /* Next, try to mmap the file at a fixed address which already has
6767     something else allocated at it.  If we can, also make sure that
6768     we see the same garbage.  */
6769  fd = open ("conftest.mmap", O_RDWR);
6770  if (fd < 0)
6771    exit (1);
6772  data2 = (char *) malloc (2 * pagesize);
6773  if (!data2)
6774    exit (1);
6775  data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
6776  if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
6777		     MAP_PRIVATE | MAP_FIXED, fd, 0L))
6778    exit (1);
6779  for (i = 0; i < pagesize; ++i)
6780    if (*(data + i) != *(data2 + i))
6781      exit (1);
6782
6783  /* Finally, make sure that changes to the mapped area do not
6784     percolate back to the file as seen by read().  (This is a bug on
6785     some variants of i386 svr4.0.)  */
6786  for (i = 0; i < pagesize; ++i)
6787    *(data2 + i) = *(data2 + i) + 1;
6788  data3 = (char *) malloc (pagesize);
6789  if (!data3)
6790    exit (1);
6791  if (read (fd, data3, pagesize) != pagesize)
6792    exit (1);
6793  for (i = 0; i < pagesize; ++i)
6794    if (*(data + i) != *(data3 + i))
6795      exit (1);
6796  close (fd);
6797  exit (0);
6798}
6799_ACEOF
6800rm -f conftest$ac_exeext
6801if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6802  (eval $ac_link) 2>&5
6803  ac_status=$?
6804  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6805  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6806  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6807  (eval $ac_try) 2>&5
6808  ac_status=$?
6809  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6810  (exit $ac_status); }; }; then
6811  ac_cv_func_mmap_fixed_mapped=yes
6812else
6813  echo "$as_me: program exited with status $ac_status" >&5
6814echo "$as_me: failed program was:" >&5
6815sed 's/^/| /' conftest.$ac_ext >&5
6816
6817( exit $ac_status )
6818ac_cv_func_mmap_fixed_mapped=no
6819fi
6820rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6821fi
6822fi
6823echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
6824echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
6825if test $ac_cv_func_mmap_fixed_mapped = yes; then
6826
6827cat >>confdefs.h <<\_ACEOF
6828#define HAVE_MMAP 1
6829_ACEOF
6830
6831fi
6832rm -f conftest.mmap
6833
6834
6835
6836
6837
6838
6839
6840
6841
6842
6843
6844for ac_header in argz.h limits.h locale.h nl_types.h malloc.h string.h \
6845unistd.h values.h sys/param.h
6846do
6847as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6848if eval "test \"\${$as_ac_Header+set}\" = set"; then
6849  echo "$as_me:$LINENO: checking for $ac_header" >&5
6850echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6851if eval "test \"\${$as_ac_Header+set}\" = set"; then
6852  echo $ECHO_N "(cached) $ECHO_C" >&6
6853fi
6854echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6855echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6856else
6857  # Is the header compilable?
6858echo "$as_me:$LINENO: checking $ac_header usability" >&5
6859echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6860cat >conftest.$ac_ext <<_ACEOF
6861/* confdefs.h.  */
6862_ACEOF
6863cat confdefs.h >>conftest.$ac_ext
6864cat >>conftest.$ac_ext <<_ACEOF
6865/* end confdefs.h.  */
6866$ac_includes_default
6867#include <$ac_header>
6868_ACEOF
6869rm -f conftest.$ac_objext
6870if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6871  (eval $ac_compile) 2>conftest.er1
6872  ac_status=$?
6873  grep -v '^ *+' conftest.er1 >conftest.err
6874  rm -f conftest.er1
6875  cat conftest.err >&5
6876  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6877  (exit $ac_status); } &&
6878	 { ac_try='test -z "$ac_c_werror_flag"
6879			 || test ! -s conftest.err'
6880  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6881  (eval $ac_try) 2>&5
6882  ac_status=$?
6883  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6884  (exit $ac_status); }; } &&
6885	 { ac_try='test -s conftest.$ac_objext'
6886  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6887  (eval $ac_try) 2>&5
6888  ac_status=$?
6889  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6890  (exit $ac_status); }; }; then
6891  ac_header_compiler=yes
6892else
6893  echo "$as_me: failed program was:" >&5
6894sed 's/^/| /' conftest.$ac_ext >&5
6895
6896ac_header_compiler=no
6897fi
6898rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6899echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6900echo "${ECHO_T}$ac_header_compiler" >&6
6901
6902# Is the header present?
6903echo "$as_me:$LINENO: checking $ac_header presence" >&5
6904echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6905cat >conftest.$ac_ext <<_ACEOF
6906/* confdefs.h.  */
6907_ACEOF
6908cat confdefs.h >>conftest.$ac_ext
6909cat >>conftest.$ac_ext <<_ACEOF
6910/* end confdefs.h.  */
6911#include <$ac_header>
6912_ACEOF
6913if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6914  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6915  ac_status=$?
6916  grep -v '^ *+' conftest.er1 >conftest.err
6917  rm -f conftest.er1
6918  cat conftest.err >&5
6919  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6920  (exit $ac_status); } >/dev/null; then
6921  if test -s conftest.err; then
6922    ac_cpp_err=$ac_c_preproc_warn_flag
6923    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6924  else
6925    ac_cpp_err=
6926  fi
6927else
6928  ac_cpp_err=yes
6929fi
6930if test -z "$ac_cpp_err"; then
6931  ac_header_preproc=yes
6932else
6933  echo "$as_me: failed program was:" >&5
6934sed 's/^/| /' conftest.$ac_ext >&5
6935
6936  ac_header_preproc=no
6937fi
6938rm -f conftest.err conftest.$ac_ext
6939echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6940echo "${ECHO_T}$ac_header_preproc" >&6
6941
6942# So?  What about this header?
6943case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6944  yes:no: )
6945    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6946echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6947    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6948echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6949    ac_header_preproc=yes
6950    ;;
6951  no:yes:* )
6952    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6953echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6954    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6955echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6956    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6957echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6958    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6959echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6960    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6961echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6962    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6963echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6964    (
6965      cat <<\_ASBOX
6966## ------------------------------------------ ##
6967## Report this to the AC_PACKAGE_NAME lists.  ##
6968## ------------------------------------------ ##
6969_ASBOX
6970    ) |
6971      sed "s/^/$as_me: WARNING:     /" >&2
6972    ;;
6973esac
6974echo "$as_me:$LINENO: checking for $ac_header" >&5
6975echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6976if eval "test \"\${$as_ac_Header+set}\" = set"; then
6977  echo $ECHO_N "(cached) $ECHO_C" >&6
6978else
6979  eval "$as_ac_Header=\$ac_header_preproc"
6980fi
6981echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6982echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6983
6984fi
6985if test `eval echo '${'$as_ac_Header'}'` = yes; then
6986  cat >>confdefs.h <<_ACEOF
6987#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6988_ACEOF
6989
6990fi
6991
6992done
6993
6994
6995
6996
6997
6998
6999
7000
7001
7002
7003
7004for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \
7005__argz_count __argz_stringify __argz_next
7006do
7007as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7008echo "$as_me:$LINENO: checking for $ac_func" >&5
7009echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7010if eval "test \"\${$as_ac_var+set}\" = set"; then
7011  echo $ECHO_N "(cached) $ECHO_C" >&6
7012else
7013  cat >conftest.$ac_ext <<_ACEOF
7014/* confdefs.h.  */
7015_ACEOF
7016cat confdefs.h >>conftest.$ac_ext
7017cat >>conftest.$ac_ext <<_ACEOF
7018/* end confdefs.h.  */
7019/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7020   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7021#define $ac_func innocuous_$ac_func
7022
7023/* System header to define __stub macros and hopefully few prototypes,
7024    which can conflict with char $ac_func (); below.
7025    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7026    <limits.h> exists even on freestanding compilers.  */
7027
7028#ifdef __STDC__
7029# include <limits.h>
7030#else
7031# include <assert.h>
7032#endif
7033
7034#undef $ac_func
7035
7036/* Override any gcc2 internal prototype to avoid an error.  */
7037#ifdef __cplusplus
7038extern "C"
7039{
7040#endif
7041/* We use char because int might match the return type of a gcc2
7042   builtin and then its argument prototype would still apply.  */
7043char $ac_func ();
7044/* The GNU C library defines this for functions which it implements
7045    to always fail with ENOSYS.  Some functions are actually named
7046    something starting with __ and the normal name is an alias.  */
7047#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7048choke me
7049#else
7050char (*f) () = $ac_func;
7051#endif
7052#ifdef __cplusplus
7053}
7054#endif
7055
7056int
7057main ()
7058{
7059return f != $ac_func;
7060  ;
7061  return 0;
7062}
7063_ACEOF
7064rm -f conftest.$ac_objext conftest$ac_exeext
7065if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7066  (eval $ac_link) 2>conftest.er1
7067  ac_status=$?
7068  grep -v '^ *+' conftest.er1 >conftest.err
7069  rm -f conftest.er1
7070  cat conftest.err >&5
7071  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7072  (exit $ac_status); } &&
7073	 { ac_try='test -z "$ac_c_werror_flag"
7074			 || test ! -s conftest.err'
7075  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7076  (eval $ac_try) 2>&5
7077  ac_status=$?
7078  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7079  (exit $ac_status); }; } &&
7080	 { ac_try='test -s conftest$ac_exeext'
7081  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7082  (eval $ac_try) 2>&5
7083  ac_status=$?
7084  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7085  (exit $ac_status); }; }; then
7086  eval "$as_ac_var=yes"
7087else
7088  echo "$as_me: failed program was:" >&5
7089sed 's/^/| /' conftest.$ac_ext >&5
7090
7091eval "$as_ac_var=no"
7092fi
7093rm -f conftest.err conftest.$ac_objext \
7094      conftest$ac_exeext conftest.$ac_ext
7095fi
7096echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7097echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7098if test `eval echo '${'$as_ac_var'}'` = yes; then
7099  cat >>confdefs.h <<_ACEOF
7100#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7101_ACEOF
7102
7103fi
7104done
7105
7106
7107   if test "${ac_cv_func_stpcpy+set}" != "set"; then
7108
7109for ac_func in stpcpy
7110do
7111as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7112echo "$as_me:$LINENO: checking for $ac_func" >&5
7113echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7114if eval "test \"\${$as_ac_var+set}\" = set"; then
7115  echo $ECHO_N "(cached) $ECHO_C" >&6
7116else
7117  cat >conftest.$ac_ext <<_ACEOF
7118/* confdefs.h.  */
7119_ACEOF
7120cat confdefs.h >>conftest.$ac_ext
7121cat >>conftest.$ac_ext <<_ACEOF
7122/* end confdefs.h.  */
7123/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7124   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7125#define $ac_func innocuous_$ac_func
7126
7127/* System header to define __stub macros and hopefully few prototypes,
7128    which can conflict with char $ac_func (); below.
7129    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7130    <limits.h> exists even on freestanding compilers.  */
7131
7132#ifdef __STDC__
7133# include <limits.h>
7134#else
7135# include <assert.h>
7136#endif
7137
7138#undef $ac_func
7139
7140/* Override any gcc2 internal prototype to avoid an error.  */
7141#ifdef __cplusplus
7142extern "C"
7143{
7144#endif
7145/* We use char because int might match the return type of a gcc2
7146   builtin and then its argument prototype would still apply.  */
7147char $ac_func ();
7148/* The GNU C library defines this for functions which it implements
7149    to always fail with ENOSYS.  Some functions are actually named
7150    something starting with __ and the normal name is an alias.  */
7151#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7152choke me
7153#else
7154char (*f) () = $ac_func;
7155#endif
7156#ifdef __cplusplus
7157}
7158#endif
7159
7160int
7161main ()
7162{
7163return f != $ac_func;
7164  ;
7165  return 0;
7166}
7167_ACEOF
7168rm -f conftest.$ac_objext conftest$ac_exeext
7169if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7170  (eval $ac_link) 2>conftest.er1
7171  ac_status=$?
7172  grep -v '^ *+' conftest.er1 >conftest.err
7173  rm -f conftest.er1
7174  cat conftest.err >&5
7175  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7176  (exit $ac_status); } &&
7177	 { ac_try='test -z "$ac_c_werror_flag"
7178			 || test ! -s conftest.err'
7179  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7180  (eval $ac_try) 2>&5
7181  ac_status=$?
7182  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7183  (exit $ac_status); }; } &&
7184	 { ac_try='test -s conftest$ac_exeext'
7185  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7186  (eval $ac_try) 2>&5
7187  ac_status=$?
7188  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7189  (exit $ac_status); }; }; then
7190  eval "$as_ac_var=yes"
7191else
7192  echo "$as_me: failed program was:" >&5
7193sed 's/^/| /' conftest.$ac_ext >&5
7194
7195eval "$as_ac_var=no"
7196fi
7197rm -f conftest.err conftest.$ac_objext \
7198      conftest$ac_exeext conftest.$ac_ext
7199fi
7200echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7201echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7202if test `eval echo '${'$as_ac_var'}'` = yes; then
7203  cat >>confdefs.h <<_ACEOF
7204#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7205_ACEOF
7206
7207fi
7208done
7209
7210   fi
7211   if test "${ac_cv_func_stpcpy}" = "yes"; then
7212
7213cat >>confdefs.h <<\_ACEOF
7214#define HAVE_STPCPY 1
7215_ACEOF
7216
7217   fi
7218
7219   if test $ac_cv_header_locale_h = yes; then
7220    echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
7221echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
7222if test "${am_cv_val_LC_MESSAGES+set}" = set; then
7223  echo $ECHO_N "(cached) $ECHO_C" >&6
7224else
7225  cat >conftest.$ac_ext <<_ACEOF
7226/* confdefs.h.  */
7227_ACEOF
7228cat confdefs.h >>conftest.$ac_ext
7229cat >>conftest.$ac_ext <<_ACEOF
7230/* end confdefs.h.  */
7231#include <locale.h>
7232int
7233main ()
7234{
7235return LC_MESSAGES
7236  ;
7237  return 0;
7238}
7239_ACEOF
7240rm -f conftest.$ac_objext conftest$ac_exeext
7241if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7242  (eval $ac_link) 2>conftest.er1
7243  ac_status=$?
7244  grep -v '^ *+' conftest.er1 >conftest.err
7245  rm -f conftest.er1
7246  cat conftest.err >&5
7247  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7248  (exit $ac_status); } &&
7249	 { ac_try='test -z "$ac_c_werror_flag"
7250			 || test ! -s conftest.err'
7251  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7252  (eval $ac_try) 2>&5
7253  ac_status=$?
7254  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7255  (exit $ac_status); }; } &&
7256	 { ac_try='test -s conftest$ac_exeext'
7257  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7258  (eval $ac_try) 2>&5
7259  ac_status=$?
7260  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7261  (exit $ac_status); }; }; then
7262  am_cv_val_LC_MESSAGES=yes
7263else
7264  echo "$as_me: failed program was:" >&5
7265sed 's/^/| /' conftest.$ac_ext >&5
7266
7267am_cv_val_LC_MESSAGES=no
7268fi
7269rm -f conftest.err conftest.$ac_objext \
7270      conftest$ac_exeext conftest.$ac_ext
7271fi
7272echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
7273echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
7274    if test $am_cv_val_LC_MESSAGES = yes; then
7275
7276cat >>confdefs.h <<\_ACEOF
7277#define HAVE_LC_MESSAGES 1
7278_ACEOF
7279
7280    fi
7281  fi
7282   echo "$as_me:$LINENO: checking whether NLS is requested" >&5
7283echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
7284        # Check whether --enable-nls or --disable-nls was given.
7285if test "${enable_nls+set}" = set; then
7286  enableval="$enable_nls"
7287  USE_NLS=$enableval
7288else
7289  USE_NLS=yes
7290fi;
7291    echo "$as_me:$LINENO: result: $USE_NLS" >&5
7292echo "${ECHO_T}$USE_NLS" >&6
7293
7294
7295    USE_INCLUDED_LIBINTL=no
7296
7297        if test "$USE_NLS" = "yes"; then
7298      echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
7299echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
7300
7301# Check whether --with-included-gettext or --without-included-gettext was given.
7302if test "${with_included_gettext+set}" = set; then
7303  withval="$with_included_gettext"
7304  nls_cv_force_use_gnu_gettext=$withval
7305else
7306  nls_cv_force_use_gnu_gettext=no
7307fi;
7308      echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
7309echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
7310
7311      nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
7312      if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
7313                        		nls_cv_header_intl=
7314	nls_cv_header_libgt=
7315	CATOBJEXT=
7316
7317	if test "${ac_cv_header_libintl_h+set}" = set; then
7318  echo "$as_me:$LINENO: checking for libintl.h" >&5
7319echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
7320if test "${ac_cv_header_libintl_h+set}" = set; then
7321  echo $ECHO_N "(cached) $ECHO_C" >&6
7322fi
7323echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
7324echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
7325else
7326  # Is the header compilable?
7327echo "$as_me:$LINENO: checking libintl.h usability" >&5
7328echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6
7329cat >conftest.$ac_ext <<_ACEOF
7330/* confdefs.h.  */
7331_ACEOF
7332cat confdefs.h >>conftest.$ac_ext
7333cat >>conftest.$ac_ext <<_ACEOF
7334/* end confdefs.h.  */
7335$ac_includes_default
7336#include <libintl.h>
7337_ACEOF
7338rm -f conftest.$ac_objext
7339if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7340  (eval $ac_compile) 2>conftest.er1
7341  ac_status=$?
7342  grep -v '^ *+' conftest.er1 >conftest.err
7343  rm -f conftest.er1
7344  cat conftest.err >&5
7345  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7346  (exit $ac_status); } &&
7347	 { ac_try='test -z "$ac_c_werror_flag"
7348			 || test ! -s conftest.err'
7349  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7350  (eval $ac_try) 2>&5
7351  ac_status=$?
7352  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7353  (exit $ac_status); }; } &&
7354	 { ac_try='test -s conftest.$ac_objext'
7355  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7356  (eval $ac_try) 2>&5
7357  ac_status=$?
7358  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7359  (exit $ac_status); }; }; then
7360  ac_header_compiler=yes
7361else
7362  echo "$as_me: failed program was:" >&5
7363sed 's/^/| /' conftest.$ac_ext >&5
7364
7365ac_header_compiler=no
7366fi
7367rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7368echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7369echo "${ECHO_T}$ac_header_compiler" >&6
7370
7371# Is the header present?
7372echo "$as_me:$LINENO: checking libintl.h presence" >&5
7373echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6
7374cat >conftest.$ac_ext <<_ACEOF
7375/* confdefs.h.  */
7376_ACEOF
7377cat confdefs.h >>conftest.$ac_ext
7378cat >>conftest.$ac_ext <<_ACEOF
7379/* end confdefs.h.  */
7380#include <libintl.h>
7381_ACEOF
7382if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7383  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7384  ac_status=$?
7385  grep -v '^ *+' conftest.er1 >conftest.err
7386  rm -f conftest.er1
7387  cat conftest.err >&5
7388  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7389  (exit $ac_status); } >/dev/null; then
7390  if test -s conftest.err; then
7391    ac_cpp_err=$ac_c_preproc_warn_flag
7392    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7393  else
7394    ac_cpp_err=
7395  fi
7396else
7397  ac_cpp_err=yes
7398fi
7399if test -z "$ac_cpp_err"; then
7400  ac_header_preproc=yes
7401else
7402  echo "$as_me: failed program was:" >&5
7403sed 's/^/| /' conftest.$ac_ext >&5
7404
7405  ac_header_preproc=no
7406fi
7407rm -f conftest.err conftest.$ac_ext
7408echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7409echo "${ECHO_T}$ac_header_preproc" >&6
7410
7411# So?  What about this header?
7412case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7413  yes:no: )
7414    { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
7415echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7416    { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
7417echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
7418    ac_header_preproc=yes
7419    ;;
7420  no:yes:* )
7421    { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
7422echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
7423    { echo "$as_me:$LINENO: WARNING: libintl.h:     check for missing prerequisite headers?" >&5
7424echo "$as_me: WARNING: libintl.h:     check for missing prerequisite headers?" >&2;}
7425    { echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
7426echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
7427    { echo "$as_me:$LINENO: WARNING: libintl.h:     section \"Present But Cannot Be Compiled\"" >&5
7428echo "$as_me: WARNING: libintl.h:     section \"Present But Cannot Be Compiled\"" >&2;}
7429    { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
7430echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
7431    { echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
7432echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
7433    (
7434      cat <<\_ASBOX
7435## ------------------------------------------ ##
7436## Report this to the AC_PACKAGE_NAME lists.  ##
7437## ------------------------------------------ ##
7438_ASBOX
7439    ) |
7440      sed "s/^/$as_me: WARNING:     /" >&2
7441    ;;
7442esac
7443echo "$as_me:$LINENO: checking for libintl.h" >&5
7444echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
7445if test "${ac_cv_header_libintl_h+set}" = set; then
7446  echo $ECHO_N "(cached) $ECHO_C" >&6
7447else
7448  ac_cv_header_libintl_h=$ac_header_preproc
7449fi
7450echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
7451echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
7452
7453fi
7454if test $ac_cv_header_libintl_h = yes; then
7455  echo "$as_me:$LINENO: checking for gettext in libc" >&5
7456echo $ECHO_N "checking for gettext in libc... $ECHO_C" >&6
7457if test "${gt_cv_func_gettext_libc+set}" = set; then
7458  echo $ECHO_N "(cached) $ECHO_C" >&6
7459else
7460  cat >conftest.$ac_ext <<_ACEOF
7461/* confdefs.h.  */
7462_ACEOF
7463cat confdefs.h >>conftest.$ac_ext
7464cat >>conftest.$ac_ext <<_ACEOF
7465/* end confdefs.h.  */
7466#include <libintl.h>
7467int
7468main ()
7469{
7470return (int) gettext ("")
7471  ;
7472  return 0;
7473}
7474_ACEOF
7475rm -f conftest.$ac_objext conftest$ac_exeext
7476if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7477  (eval $ac_link) 2>conftest.er1
7478  ac_status=$?
7479  grep -v '^ *+' conftest.er1 >conftest.err
7480  rm -f conftest.er1
7481  cat conftest.err >&5
7482  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7483  (exit $ac_status); } &&
7484	 { ac_try='test -z "$ac_c_werror_flag"
7485			 || test ! -s conftest.err'
7486  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7487  (eval $ac_try) 2>&5
7488  ac_status=$?
7489  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7490  (exit $ac_status); }; } &&
7491	 { ac_try='test -s conftest$ac_exeext'
7492  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7493  (eval $ac_try) 2>&5
7494  ac_status=$?
7495  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7496  (exit $ac_status); }; }; then
7497  gt_cv_func_gettext_libc=yes
7498else
7499  echo "$as_me: failed program was:" >&5
7500sed 's/^/| /' conftest.$ac_ext >&5
7501
7502gt_cv_func_gettext_libc=no
7503fi
7504rm -f conftest.err conftest.$ac_objext \
7505      conftest$ac_exeext conftest.$ac_ext
7506fi
7507echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libc" >&5
7508echo "${ECHO_T}$gt_cv_func_gettext_libc" >&6
7509
7510	   if test "$gt_cv_func_gettext_libc" != "yes"; then
7511	     echo "$as_me:$LINENO: checking for bindtextdomain in -lintl" >&5
7512echo $ECHO_N "checking for bindtextdomain in -lintl... $ECHO_C" >&6
7513if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then
7514  echo $ECHO_N "(cached) $ECHO_C" >&6
7515else
7516  ac_check_lib_save_LIBS=$LIBS
7517LIBS="-lintl  $LIBS"
7518cat >conftest.$ac_ext <<_ACEOF
7519/* confdefs.h.  */
7520_ACEOF
7521cat confdefs.h >>conftest.$ac_ext
7522cat >>conftest.$ac_ext <<_ACEOF
7523/* end confdefs.h.  */
7524
7525/* Override any gcc2 internal prototype to avoid an error.  */
7526#ifdef __cplusplus
7527extern "C"
7528#endif
7529/* We use char because int might match the return type of a gcc2
7530   builtin and then its argument prototype would still apply.  */
7531char bindtextdomain ();
7532int
7533main ()
7534{
7535bindtextdomain ();
7536  ;
7537  return 0;
7538}
7539_ACEOF
7540rm -f conftest.$ac_objext conftest$ac_exeext
7541if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7542  (eval $ac_link) 2>conftest.er1
7543  ac_status=$?
7544  grep -v '^ *+' conftest.er1 >conftest.err
7545  rm -f conftest.er1
7546  cat conftest.err >&5
7547  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7548  (exit $ac_status); } &&
7549	 { ac_try='test -z "$ac_c_werror_flag"
7550			 || test ! -s conftest.err'
7551  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7552  (eval $ac_try) 2>&5
7553  ac_status=$?
7554  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7555  (exit $ac_status); }; } &&
7556	 { ac_try='test -s conftest$ac_exeext'
7557  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7558  (eval $ac_try) 2>&5
7559  ac_status=$?
7560  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7561  (exit $ac_status); }; }; then
7562  ac_cv_lib_intl_bindtextdomain=yes
7563else
7564  echo "$as_me: failed program was:" >&5
7565sed 's/^/| /' conftest.$ac_ext >&5
7566
7567ac_cv_lib_intl_bindtextdomain=no
7568fi
7569rm -f conftest.err conftest.$ac_objext \
7570      conftest$ac_exeext conftest.$ac_ext
7571LIBS=$ac_check_lib_save_LIBS
7572fi
7573echo "$as_me:$LINENO: result: $ac_cv_lib_intl_bindtextdomain" >&5
7574echo "${ECHO_T}$ac_cv_lib_intl_bindtextdomain" >&6
7575if test $ac_cv_lib_intl_bindtextdomain = yes; then
7576  echo "$as_me:$LINENO: checking for gettext in libintl" >&5
7577echo $ECHO_N "checking for gettext in libintl... $ECHO_C" >&6
7578if test "${gt_cv_func_gettext_libintl+set}" = set; then
7579  echo $ECHO_N "(cached) $ECHO_C" >&6
7580else
7581  cat >conftest.$ac_ext <<_ACEOF
7582/* confdefs.h.  */
7583_ACEOF
7584cat confdefs.h >>conftest.$ac_ext
7585cat >>conftest.$ac_ext <<_ACEOF
7586/* end confdefs.h.  */
7587
7588int
7589main ()
7590{
7591return (int) gettext ("")
7592  ;
7593  return 0;
7594}
7595_ACEOF
7596rm -f conftest.$ac_objext conftest$ac_exeext
7597if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7598  (eval $ac_link) 2>conftest.er1
7599  ac_status=$?
7600  grep -v '^ *+' conftest.er1 >conftest.err
7601  rm -f conftest.er1
7602  cat conftest.err >&5
7603  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7604  (exit $ac_status); } &&
7605	 { ac_try='test -z "$ac_c_werror_flag"
7606			 || test ! -s conftest.err'
7607  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7608  (eval $ac_try) 2>&5
7609  ac_status=$?
7610  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7611  (exit $ac_status); }; } &&
7612	 { ac_try='test -s conftest$ac_exeext'
7613  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7614  (eval $ac_try) 2>&5
7615  ac_status=$?
7616  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7617  (exit $ac_status); }; }; then
7618  gt_cv_func_gettext_libintl=yes
7619else
7620  echo "$as_me: failed program was:" >&5
7621sed 's/^/| /' conftest.$ac_ext >&5
7622
7623gt_cv_func_gettext_libintl=no
7624fi
7625rm -f conftest.err conftest.$ac_objext \
7626      conftest$ac_exeext conftest.$ac_ext
7627fi
7628echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libintl" >&5
7629echo "${ECHO_T}$gt_cv_func_gettext_libintl" >&6
7630fi
7631
7632	   fi
7633
7634	   if test "$gt_cv_func_gettext_libc" = "yes" \
7635	      || test "$gt_cv_func_gettext_libintl" = "yes"; then
7636
7637cat >>confdefs.h <<\_ACEOF
7638#define HAVE_GETTEXT 1
7639_ACEOF
7640
7641	      # Extract the first word of "msgfmt", so it can be a program name with args.
7642set dummy msgfmt; ac_word=$2
7643echo "$as_me:$LINENO: checking for $ac_word" >&5
7644echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7645if test "${ac_cv_path_MSGFMT+set}" = set; then
7646  echo $ECHO_N "(cached) $ECHO_C" >&6
7647else
7648  case "$MSGFMT" in
7649  /*)
7650  ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
7651  ;;
7652  *)
7653  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7654  for ac_dir in $PATH; do
7655    test -z "$ac_dir" && ac_dir=.
7656    if test -f $ac_dir/$ac_word; then
7657      if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
7658	ac_cv_path_MSGFMT="$ac_dir/$ac_word"
7659	break
7660      fi
7661    fi
7662  done
7663  IFS="$ac_save_ifs"
7664  test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
7665  ;;
7666esac
7667fi
7668MSGFMT="$ac_cv_path_MSGFMT"
7669if test -n "$MSGFMT"; then
7670  echo "$as_me:$LINENO: result: $MSGFMT" >&5
7671echo "${ECHO_T}$MSGFMT" >&6
7672else
7673  echo "$as_me:$LINENO: result: no" >&5
7674echo "${ECHO_T}no" >&6
7675fi
7676	      if test "$MSGFMT" != "no"; then
7677
7678for ac_func in dcgettext
7679do
7680as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7681echo "$as_me:$LINENO: checking for $ac_func" >&5
7682echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7683if eval "test \"\${$as_ac_var+set}\" = set"; then
7684  echo $ECHO_N "(cached) $ECHO_C" >&6
7685else
7686  cat >conftest.$ac_ext <<_ACEOF
7687/* confdefs.h.  */
7688_ACEOF
7689cat confdefs.h >>conftest.$ac_ext
7690cat >>conftest.$ac_ext <<_ACEOF
7691/* end confdefs.h.  */
7692/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7693   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7694#define $ac_func innocuous_$ac_func
7695
7696/* System header to define __stub macros and hopefully few prototypes,
7697    which can conflict with char $ac_func (); below.
7698    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7699    <limits.h> exists even on freestanding compilers.  */
7700
7701#ifdef __STDC__
7702# include <limits.h>
7703#else
7704# include <assert.h>
7705#endif
7706
7707#undef $ac_func
7708
7709/* Override any gcc2 internal prototype to avoid an error.  */
7710#ifdef __cplusplus
7711extern "C"
7712{
7713#endif
7714/* We use char because int might match the return type of a gcc2
7715   builtin and then its argument prototype would still apply.  */
7716char $ac_func ();
7717/* The GNU C library defines this for functions which it implements
7718    to always fail with ENOSYS.  Some functions are actually named
7719    something starting with __ and the normal name is an alias.  */
7720#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7721choke me
7722#else
7723char (*f) () = $ac_func;
7724#endif
7725#ifdef __cplusplus
7726}
7727#endif
7728
7729int
7730main ()
7731{
7732return f != $ac_func;
7733  ;
7734  return 0;
7735}
7736_ACEOF
7737rm -f conftest.$ac_objext conftest$ac_exeext
7738if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7739  (eval $ac_link) 2>conftest.er1
7740  ac_status=$?
7741  grep -v '^ *+' conftest.er1 >conftest.err
7742  rm -f conftest.er1
7743  cat conftest.err >&5
7744  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7745  (exit $ac_status); } &&
7746	 { ac_try='test -z "$ac_c_werror_flag"
7747			 || test ! -s conftest.err'
7748  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7749  (eval $ac_try) 2>&5
7750  ac_status=$?
7751  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7752  (exit $ac_status); }; } &&
7753	 { ac_try='test -s conftest$ac_exeext'
7754  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7755  (eval $ac_try) 2>&5
7756  ac_status=$?
7757  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7758  (exit $ac_status); }; }; then
7759  eval "$as_ac_var=yes"
7760else
7761  echo "$as_me: failed program was:" >&5
7762sed 's/^/| /' conftest.$ac_ext >&5
7763
7764eval "$as_ac_var=no"
7765fi
7766rm -f conftest.err conftest.$ac_objext \
7767      conftest$ac_exeext conftest.$ac_ext
7768fi
7769echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7770echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7771if test `eval echo '${'$as_ac_var'}'` = yes; then
7772  cat >>confdefs.h <<_ACEOF
7773#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7774_ACEOF
7775
7776fi
7777done
7778
7779		# Extract the first word of "gmsgfmt", so it can be a program name with args.
7780set dummy gmsgfmt; ac_word=$2
7781echo "$as_me:$LINENO: checking for $ac_word" >&5
7782echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7783if test "${ac_cv_path_GMSGFMT+set}" = set; then
7784  echo $ECHO_N "(cached) $ECHO_C" >&6
7785else
7786  case $GMSGFMT in
7787  [\\/]* | ?:[\\/]*)
7788  ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
7789  ;;
7790  *)
7791  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7792for as_dir in $PATH
7793do
7794  IFS=$as_save_IFS
7795  test -z "$as_dir" && as_dir=.
7796  for ac_exec_ext in '' $ac_executable_extensions; do
7797  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7798    ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
7799    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7800    break 2
7801  fi
7802done
7803done
7804
7805  test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
7806  ;;
7807esac
7808fi
7809GMSGFMT=$ac_cv_path_GMSGFMT
7810
7811if test -n "$GMSGFMT"; then
7812  echo "$as_me:$LINENO: result: $GMSGFMT" >&5
7813echo "${ECHO_T}$GMSGFMT" >&6
7814else
7815  echo "$as_me:$LINENO: result: no" >&5
7816echo "${ECHO_T}no" >&6
7817fi
7818
7819		# Extract the first word of "xgettext", so it can be a program name with args.
7820set dummy xgettext; ac_word=$2
7821echo "$as_me:$LINENO: checking for $ac_word" >&5
7822echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7823if test "${ac_cv_path_XGETTEXT+set}" = set; then
7824  echo $ECHO_N "(cached) $ECHO_C" >&6
7825else
7826  case "$XGETTEXT" in
7827  /*)
7828  ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
7829  ;;
7830  *)
7831  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7832  for ac_dir in $PATH; do
7833    test -z "$ac_dir" && ac_dir=.
7834    if test -f $ac_dir/$ac_word; then
7835      if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
7836	ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
7837	break
7838      fi
7839    fi
7840  done
7841  IFS="$ac_save_ifs"
7842  test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
7843  ;;
7844esac
7845fi
7846XGETTEXT="$ac_cv_path_XGETTEXT"
7847if test -n "$XGETTEXT"; then
7848  echo "$as_me:$LINENO: result: $XGETTEXT" >&5
7849echo "${ECHO_T}$XGETTEXT" >&6
7850else
7851  echo "$as_me:$LINENO: result: no" >&5
7852echo "${ECHO_T}no" >&6
7853fi
7854
7855		cat >conftest.$ac_ext <<_ACEOF
7856/* confdefs.h.  */
7857_ACEOF
7858cat confdefs.h >>conftest.$ac_ext
7859cat >>conftest.$ac_ext <<_ACEOF
7860/* end confdefs.h.  */
7861
7862int
7863main ()
7864{
7865extern int _nl_msg_cat_cntr;
7866			       return _nl_msg_cat_cntr
7867  ;
7868  return 0;
7869}
7870_ACEOF
7871rm -f conftest.$ac_objext conftest$ac_exeext
7872if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7873  (eval $ac_link) 2>conftest.er1
7874  ac_status=$?
7875  grep -v '^ *+' conftest.er1 >conftest.err
7876  rm -f conftest.er1
7877  cat conftest.err >&5
7878  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7879  (exit $ac_status); } &&
7880	 { ac_try='test -z "$ac_c_werror_flag"
7881			 || test ! -s conftest.err'
7882  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7883  (eval $ac_try) 2>&5
7884  ac_status=$?
7885  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7886  (exit $ac_status); }; } &&
7887	 { ac_try='test -s conftest$ac_exeext'
7888  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7889  (eval $ac_try) 2>&5
7890  ac_status=$?
7891  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7892  (exit $ac_status); }; }; then
7893  CATOBJEXT=.gmo
7894		   DATADIRNAME=share
7895else
7896  echo "$as_me: failed program was:" >&5
7897sed 's/^/| /' conftest.$ac_ext >&5
7898
7899CATOBJEXT=.mo
7900		   DATADIRNAME=lib
7901fi
7902rm -f conftest.err conftest.$ac_objext \
7903      conftest$ac_exeext conftest.$ac_ext
7904		INSTOBJEXT=.mo
7905	      fi
7906	    fi
7907
7908fi
7909
7910
7911
7912
7913        if test x"$CATOBJEXT" = x && test -d $srcdir/../intl; then
7914	  # Neither gettext nor catgets in included in the C library.
7915	  # Fall back on GNU gettext library (assuming it is present).
7916	  nls_cv_use_gnu_gettext=yes
7917        fi
7918      fi
7919
7920      if test "$nls_cv_use_gnu_gettext" = "yes"; then
7921                INTLOBJS="\$(GETTOBJS)"
7922        # Extract the first word of "msgfmt", so it can be a program name with args.
7923set dummy msgfmt; ac_word=$2
7924echo "$as_me:$LINENO: checking for $ac_word" >&5
7925echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7926if test "${ac_cv_path_MSGFMT+set}" = set; then
7927  echo $ECHO_N "(cached) $ECHO_C" >&6
7928else
7929  case "$MSGFMT" in
7930  /*)
7931  ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
7932  ;;
7933  *)
7934  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7935  for ac_dir in $PATH; do
7936    test -z "$ac_dir" && ac_dir=.
7937    if test -f $ac_dir/$ac_word; then
7938      if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
7939	ac_cv_path_MSGFMT="$ac_dir/$ac_word"
7940	break
7941      fi
7942    fi
7943  done
7944  IFS="$ac_save_ifs"
7945  test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt"
7946  ;;
7947esac
7948fi
7949MSGFMT="$ac_cv_path_MSGFMT"
7950if test -n "$MSGFMT"; then
7951  echo "$as_me:$LINENO: result: $MSGFMT" >&5
7952echo "${ECHO_T}$MSGFMT" >&6
7953else
7954  echo "$as_me:$LINENO: result: no" >&5
7955echo "${ECHO_T}no" >&6
7956fi
7957
7958        # Extract the first word of "gmsgfmt", so it can be a program name with args.
7959set dummy gmsgfmt; ac_word=$2
7960echo "$as_me:$LINENO: checking for $ac_word" >&5
7961echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7962if test "${ac_cv_path_GMSGFMT+set}" = set; then
7963  echo $ECHO_N "(cached) $ECHO_C" >&6
7964else
7965  case $GMSGFMT in
7966  [\\/]* | ?:[\\/]*)
7967  ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
7968  ;;
7969  *)
7970  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7971for as_dir in $PATH
7972do
7973  IFS=$as_save_IFS
7974  test -z "$as_dir" && as_dir=.
7975  for ac_exec_ext in '' $ac_executable_extensions; do
7976  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7977    ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
7978    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7979    break 2
7980  fi
7981done
7982done
7983
7984  test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
7985  ;;
7986esac
7987fi
7988GMSGFMT=$ac_cv_path_GMSGFMT
7989
7990if test -n "$GMSGFMT"; then
7991  echo "$as_me:$LINENO: result: $GMSGFMT" >&5
7992echo "${ECHO_T}$GMSGFMT" >&6
7993else
7994  echo "$as_me:$LINENO: result: no" >&5
7995echo "${ECHO_T}no" >&6
7996fi
7997
7998        # Extract the first word of "xgettext", so it can be a program name with args.
7999set dummy xgettext; ac_word=$2
8000echo "$as_me:$LINENO: checking for $ac_word" >&5
8001echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8002if test "${ac_cv_path_XGETTEXT+set}" = set; then
8003  echo $ECHO_N "(cached) $ECHO_C" >&6
8004else
8005  case "$XGETTEXT" in
8006  /*)
8007  ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
8008  ;;
8009  *)
8010  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:"
8011  for ac_dir in $PATH; do
8012    test -z "$ac_dir" && ac_dir=.
8013    if test -f $ac_dir/$ac_word; then
8014      if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
8015	ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
8016	break
8017      fi
8018    fi
8019  done
8020  IFS="$ac_save_ifs"
8021  test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
8022  ;;
8023esac
8024fi
8025XGETTEXT="$ac_cv_path_XGETTEXT"
8026if test -n "$XGETTEXT"; then
8027  echo "$as_me:$LINENO: result: $XGETTEXT" >&5
8028echo "${ECHO_T}$XGETTEXT" >&6
8029else
8030  echo "$as_me:$LINENO: result: no" >&5
8031echo "${ECHO_T}no" >&6
8032fi
8033
8034
8035	USE_INCLUDED_LIBINTL=yes
8036        CATOBJEXT=.gmo
8037        INSTOBJEXT=.mo
8038        DATADIRNAME=share
8039	INTLDEPS='$(top_builddir)/../intl/libintl.a'
8040	INTLLIBS=$INTLDEPS
8041	LIBS=`echo $LIBS | sed -e 's/-lintl//'`
8042        nls_cv_header_intl=libintl.h
8043        nls_cv_header_libgt=libgettext.h
8044      fi
8045
8046            if test "$XGETTEXT" != ":"; then
8047			if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
8048	  : ;
8049	else
8050	  echo "$as_me:$LINENO: result: found xgettext programs is not GNU xgettext; ignore it" >&5
8051echo "${ECHO_T}found xgettext programs is not GNU xgettext; ignore it" >&6
8052	  XGETTEXT=":"
8053	fi
8054      fi
8055
8056      # We need to process the po/ directory.
8057      POSUB=po
8058    else
8059      DATADIRNAME=share
8060      nls_cv_header_intl=libintl.h
8061      nls_cv_header_libgt=libgettext.h
8062    fi
8063
8064    # If this is used in GNU gettext we have to set USE_NLS to `yes'
8065    # because some of the sources are only built for this goal.
8066    if test "$PACKAGE" = gettext; then
8067      USE_NLS=yes
8068      USE_INCLUDED_LIBINTL=yes
8069    fi
8070
8071                for lang in $ALL_LINGUAS; do
8072      GMOFILES="$GMOFILES $lang.gmo"
8073      POFILES="$POFILES $lang.po"
8074    done
8075
8076
8077
8078
8079
8080
8081
8082
8083
8084
8085
8086
8087    if test "x$CATOBJEXT" != "x"; then
8088
8089cat >>confdefs.h <<\_ACEOF
8090#define ENABLE_NLS 1
8091_ACEOF
8092
8093    fi
8094
8095
8096   if test "x$CATOBJEXT" != "x"; then
8097     if test "x$ALL_LINGUAS" = "x"; then
8098       LINGUAS=
8099     else
8100       echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
8101echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
8102       NEW_LINGUAS=
8103       for lang in ${LINGUAS=$ALL_LINGUAS}; do
8104         case "$ALL_LINGUAS" in
8105          *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
8106         esac
8107       done
8108       LINGUAS=$NEW_LINGUAS
8109       echo "$as_me:$LINENO: result: $LINGUAS" >&5
8110echo "${ECHO_T}$LINGUAS" >&6
8111     fi
8112
8113          if test -n "$LINGUAS"; then
8114       for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
8115     fi
8116   fi
8117
8118            if test $ac_cv_header_locale_h = yes; then
8119     INCLUDE_LOCALE_H="#include <locale.h>"
8120   else
8121     INCLUDE_LOCALE_H="\
8122/* The system does not provide the header <locale.h>.  Take care yourself.  */"
8123   fi
8124
8125
8126            if test -f $srcdir/po2tbl.sed.in; then
8127      if test "$CATOBJEXT" = ".cat"; then
8128	 if test "${ac_cv_header_linux_version_h+set}" = set; then
8129  echo "$as_me:$LINENO: checking for linux/version.h" >&5
8130echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6
8131if test "${ac_cv_header_linux_version_h+set}" = set; then
8132  echo $ECHO_N "(cached) $ECHO_C" >&6
8133fi
8134echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
8135echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6
8136else
8137  # Is the header compilable?
8138echo "$as_me:$LINENO: checking linux/version.h usability" >&5
8139echo $ECHO_N "checking linux/version.h usability... $ECHO_C" >&6
8140cat >conftest.$ac_ext <<_ACEOF
8141/* confdefs.h.  */
8142_ACEOF
8143cat confdefs.h >>conftest.$ac_ext
8144cat >>conftest.$ac_ext <<_ACEOF
8145/* end confdefs.h.  */
8146$ac_includes_default
8147#include <linux/version.h>
8148_ACEOF
8149rm -f conftest.$ac_objext
8150if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8151  (eval $ac_compile) 2>conftest.er1
8152  ac_status=$?
8153  grep -v '^ *+' conftest.er1 >conftest.err
8154  rm -f conftest.er1
8155  cat conftest.err >&5
8156  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8157  (exit $ac_status); } &&
8158	 { ac_try='test -z "$ac_c_werror_flag"
8159			 || test ! -s conftest.err'
8160  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8161  (eval $ac_try) 2>&5
8162  ac_status=$?
8163  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8164  (exit $ac_status); }; } &&
8165	 { ac_try='test -s conftest.$ac_objext'
8166  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8167  (eval $ac_try) 2>&5
8168  ac_status=$?
8169  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8170  (exit $ac_status); }; }; then
8171  ac_header_compiler=yes
8172else
8173  echo "$as_me: failed program was:" >&5
8174sed 's/^/| /' conftest.$ac_ext >&5
8175
8176ac_header_compiler=no
8177fi
8178rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8179echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8180echo "${ECHO_T}$ac_header_compiler" >&6
8181
8182# Is the header present?
8183echo "$as_me:$LINENO: checking linux/version.h presence" >&5
8184echo $ECHO_N "checking linux/version.h presence... $ECHO_C" >&6
8185cat >conftest.$ac_ext <<_ACEOF
8186/* confdefs.h.  */
8187_ACEOF
8188cat confdefs.h >>conftest.$ac_ext
8189cat >>conftest.$ac_ext <<_ACEOF
8190/* end confdefs.h.  */
8191#include <linux/version.h>
8192_ACEOF
8193if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8194  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8195  ac_status=$?
8196  grep -v '^ *+' conftest.er1 >conftest.err
8197  rm -f conftest.er1
8198  cat conftest.err >&5
8199  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8200  (exit $ac_status); } >/dev/null; then
8201  if test -s conftest.err; then
8202    ac_cpp_err=$ac_c_preproc_warn_flag
8203    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8204  else
8205    ac_cpp_err=
8206  fi
8207else
8208  ac_cpp_err=yes
8209fi
8210if test -z "$ac_cpp_err"; then
8211  ac_header_preproc=yes
8212else
8213  echo "$as_me: failed program was:" >&5
8214sed 's/^/| /' conftest.$ac_ext >&5
8215
8216  ac_header_preproc=no
8217fi
8218rm -f conftest.err conftest.$ac_ext
8219echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8220echo "${ECHO_T}$ac_header_preproc" >&6
8221
8222# So?  What about this header?
8223case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8224  yes:no: )
8225    { echo "$as_me:$LINENO: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&5
8226echo "$as_me: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8227    { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the compiler's result" >&5
8228echo "$as_me: WARNING: linux/version.h: proceeding with the compiler's result" >&2;}
8229    ac_header_preproc=yes
8230    ;;
8231  no:yes:* )
8232    { echo "$as_me:$LINENO: WARNING: linux/version.h: present but cannot be compiled" >&5
8233echo "$as_me: WARNING: linux/version.h: present but cannot be compiled" >&2;}
8234    { echo "$as_me:$LINENO: WARNING: linux/version.h:     check for missing prerequisite headers?" >&5
8235echo "$as_me: WARNING: linux/version.h:     check for missing prerequisite headers?" >&2;}
8236    { echo "$as_me:$LINENO: WARNING: linux/version.h: see the Autoconf documentation" >&5
8237echo "$as_me: WARNING: linux/version.h: see the Autoconf documentation" >&2;}
8238    { echo "$as_me:$LINENO: WARNING: linux/version.h:     section \"Present But Cannot Be Compiled\"" >&5
8239echo "$as_me: WARNING: linux/version.h:     section \"Present But Cannot Be Compiled\"" >&2;}
8240    { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the preprocessor's result" >&5
8241echo "$as_me: WARNING: linux/version.h: proceeding with the preprocessor's result" >&2;}
8242    { echo "$as_me:$LINENO: WARNING: linux/version.h: in the future, the compiler will take precedence" >&5
8243echo "$as_me: WARNING: linux/version.h: in the future, the compiler will take precedence" >&2;}
8244    (
8245      cat <<\_ASBOX
8246## ------------------------------------------ ##
8247## Report this to the AC_PACKAGE_NAME lists.  ##
8248## ------------------------------------------ ##
8249_ASBOX
8250    ) |
8251      sed "s/^/$as_me: WARNING:     /" >&2
8252    ;;
8253esac
8254echo "$as_me:$LINENO: checking for linux/version.h" >&5
8255echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6
8256if test "${ac_cv_header_linux_version_h+set}" = set; then
8257  echo $ECHO_N "(cached) $ECHO_C" >&6
8258else
8259  ac_cv_header_linux_version_h=$ac_header_preproc
8260fi
8261echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
8262echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6
8263
8264fi
8265if test $ac_cv_header_linux_version_h = yes; then
8266  msgformat=linux
8267else
8268  msgformat=xopen
8269fi
8270
8271
8272
8273	          	 sed -e '/^#/d' $srcdir/$msgformat-msg.sed > po2msg.sed
8274      fi
8275            sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
8276	 $srcdir/po2tbl.sed.in > po2tbl.sed
8277   fi
8278
8279            if test "$PACKAGE" = "gettext"; then
8280     GT_NO="#NO#"
8281     GT_YES=
8282   else
8283     GT_NO=
8284     GT_YES="#YES#"
8285   fi
8286
8287
8288
8289   MKINSTALLDIRS="\$(srcdir)/../../mkinstalldirs"
8290
8291
8292      l=
8293
8294
8295            if test -f $srcdir/po/POTFILES.in; then
8296      test -d po || mkdir po
8297      if test "x$srcdir" != "x."; then
8298	 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
8299	    posrcprefix="$srcdir/"
8300	 else
8301	    posrcprefix="../$srcdir/"
8302	 fi
8303      else
8304	 posrcprefix="../"
8305      fi
8306      rm -f po/POTFILES
8307      sed -e "/^#/d" -e "/^\$/d" -e "s,.*,	$posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
8308	 < $srcdir/po/POTFILES.in > po/POTFILES
8309   fi
8310
8311
8312echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
8313echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
8314    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
8315if test "${enable_maintainer_mode+set}" = set; then
8316  enableval="$enable_maintainer_mode"
8317  USE_MAINTAINER_MODE=$enableval
8318else
8319  USE_MAINTAINER_MODE=no
8320fi;
8321  echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
8322echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
8323
8324
8325if test $USE_MAINTAINER_MODE = yes; then
8326  MAINTAINER_MODE_TRUE=
8327  MAINTAINER_MODE_FALSE='#'
8328else
8329  MAINTAINER_MODE_TRUE='#'
8330  MAINTAINER_MODE_FALSE=
8331fi
8332
8333  MAINT=$MAINTAINER_MODE_TRUE
8334
8335
8336
8337if test -n "$EXEEXT"; then
8338
8339cat >>confdefs.h <<\_ACEOF
8340#define HAVE_EXECUTABLE_SUFFIX 1
8341_ACEOF
8342
8343fi
8344
8345cat >>confdefs.h <<_ACEOF
8346#define EXECUTABLE_SUFFIX "${EXEEXT}"
8347_ACEOF
8348
8349
8350# host-specific stuff:
8351
8352HDEFINES=
8353
8354. ${srcdir}/../bfd/configure.host
8355
8356
8357AR=${AR-ar}
8358
8359if test -n "$ac_tool_prefix"; then
8360  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8361set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8362echo "$as_me:$LINENO: checking for $ac_word" >&5
8363echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8364if test "${ac_cv_prog_RANLIB+set}" = set; then
8365  echo $ECHO_N "(cached) $ECHO_C" >&6
8366else
8367  if test -n "$RANLIB"; then
8368  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8369else
8370as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8371for as_dir in $PATH
8372do
8373  IFS=$as_save_IFS
8374  test -z "$as_dir" && as_dir=.
8375  for ac_exec_ext in '' $ac_executable_extensions; do
8376  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8377    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8378    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8379    break 2
8380  fi
8381done
8382done
8383
8384fi
8385fi
8386RANLIB=$ac_cv_prog_RANLIB
8387if test -n "$RANLIB"; then
8388  echo "$as_me:$LINENO: result: $RANLIB" >&5
8389echo "${ECHO_T}$RANLIB" >&6
8390else
8391  echo "$as_me:$LINENO: result: no" >&5
8392echo "${ECHO_T}no" >&6
8393fi
8394
8395fi
8396if test -z "$ac_cv_prog_RANLIB"; then
8397  ac_ct_RANLIB=$RANLIB
8398  # Extract the first word of "ranlib", so it can be a program name with args.
8399set dummy ranlib; ac_word=$2
8400echo "$as_me:$LINENO: checking for $ac_word" >&5
8401echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8402if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
8403  echo $ECHO_N "(cached) $ECHO_C" >&6
8404else
8405  if test -n "$ac_ct_RANLIB"; then
8406  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8407else
8408as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8409for as_dir in $PATH
8410do
8411  IFS=$as_save_IFS
8412  test -z "$as_dir" && as_dir=.
8413  for ac_exec_ext in '' $ac_executable_extensions; do
8414  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8415    ac_cv_prog_ac_ct_RANLIB="ranlib"
8416    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8417    break 2
8418  fi
8419done
8420done
8421
8422  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
8423fi
8424fi
8425ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8426if test -n "$ac_ct_RANLIB"; then
8427  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
8428echo "${ECHO_T}$ac_ct_RANLIB" >&6
8429else
8430  echo "$as_me:$LINENO: result: no" >&5
8431echo "${ECHO_T}no" >&6
8432fi
8433
8434  RANLIB=$ac_ct_RANLIB
8435else
8436  RANLIB="$ac_cv_prog_RANLIB"
8437fi
8438
8439# Find a good install program.  We prefer a C program (faster),
8440# so one script is as good as another.  But avoid the broken or
8441# incompatible versions:
8442# SysV /etc/install, /usr/sbin/install
8443# SunOS /usr/etc/install
8444# IRIX /sbin/install
8445# AIX /bin/install
8446# AmigaOS /C/install, which installs bootblocks on floppy discs
8447# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
8448# AFS /usr/afsws/bin/install, which mishandles nonexistent args
8449# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8450# OS/2's system install, which has a completely different semantic
8451# ./install, which can be erroneously created by make from ./install.sh.
8452echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
8453echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
8454if test -z "$INSTALL"; then
8455if test "${ac_cv_path_install+set}" = set; then
8456  echo $ECHO_N "(cached) $ECHO_C" >&6
8457else
8458  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8459for as_dir in $PATH
8460do
8461  IFS=$as_save_IFS
8462  test -z "$as_dir" && as_dir=.
8463  # Account for people who put trailing slashes in PATH elements.
8464case $as_dir/ in
8465  ./ | .// | /cC/* | \
8466  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
8467  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
8468  /usr/ucb/* ) ;;
8469  *)
8470    # OSF1 and SCO ODT 3.0 have their own names for install.
8471    # Don't use installbsd from OSF since it installs stuff as root
8472    # by default.
8473    for ac_prog in ginstall scoinst install; do
8474      for ac_exec_ext in '' $ac_executable_extensions; do
8475	if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
8476	  if test $ac_prog = install &&
8477	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
8478	    # AIX install.  It has an incompatible calling convention.
8479	    :
8480	  elif test $ac_prog = install &&
8481	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
8482	    # program-specific install script used by HP pwplus--don't use.
8483	    :
8484	  else
8485	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
8486	    break 3
8487	  fi
8488	fi
8489      done
8490    done
8491    ;;
8492esac
8493done
8494
8495
8496fi
8497  if test "${ac_cv_path_install+set}" = set; then
8498    INSTALL=$ac_cv_path_install
8499  else
8500    # As a last resort, use the slow shell script.  We don't cache a
8501    # path for INSTALL within a source directory, because that will
8502    # break other packages using the cache if that directory is
8503    # removed, or if the path is relative.
8504    INSTALL=$ac_install_sh
8505  fi
8506fi
8507echo "$as_me:$LINENO: result: $INSTALL" >&5
8508echo "${ECHO_T}$INSTALL" >&6
8509
8510# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8511# It thinks the first close brace ends the variable substitution.
8512test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8513
8514test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
8515
8516test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8517
8518
8519# Put a plausible default for CC_FOR_BUILD in Makefile.
8520if test -z "$CC_FOR_BUILD"; then
8521  if test "x$cross_compiling" = "xno"; then
8522    CC_FOR_BUILD='$(CC)'
8523  else
8524    CC_FOR_BUILD=gcc
8525  fi
8526fi
8527
8528# Also set EXEEXT_FOR_BUILD.
8529if test "x$cross_compiling" = "xno"; then
8530  EXEEXT_FOR_BUILD='$(EXEEXT)'
8531else
8532  echo "$as_me:$LINENO: checking for build system executable suffix" >&5
8533echo $ECHO_N "checking for build system executable suffix... $ECHO_C" >&6
8534if test "${bfd_cv_build_exeext+set}" = set; then
8535  echo $ECHO_N "(cached) $ECHO_C" >&6
8536else
8537  rm -f conftest*
8538     echo 'int main () { return 0; }' > conftest.c
8539     bfd_cv_build_exeext=
8540     ${CC_FOR_BUILD} -o conftest conftest.c 1>&5 2>&5
8541     for file in conftest.*; do
8542       case $file in
8543       *.c | *.o | *.obj | *.ilk | *.pdb) ;;
8544       *) bfd_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
8545       esac
8546     done
8547     rm -f conftest*
8548     test x"${bfd_cv_build_exeext}" = x && bfd_cv_build_exeext=no
8549fi
8550echo "$as_me:$LINENO: result: $bfd_cv_build_exeext" >&5
8551echo "${ECHO_T}$bfd_cv_build_exeext" >&6
8552  EXEEXT_FOR_BUILD=""
8553  test x"${bfd_cv_build_exeext}" != xno && EXEEXT_FOR_BUILD=${bfd_cv_build_exeext}
8554fi
8555
8556
8557DEMANGLER_NAME=c++filt
8558case "${host}" in
8559  *-*-go32* | *-*-msdos*)
8560    DEMANGLER_NAME=cxxfilt
8561esac
8562
8563
8564
8565
8566
8567
8568
8569
8570for ac_header in string.h strings.h stdlib.h unistd.h fcntl.h sys/file.h
8571do
8572as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8573if eval "test \"\${$as_ac_Header+set}\" = set"; then
8574  echo "$as_me:$LINENO: checking for $ac_header" >&5
8575echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8576if eval "test \"\${$as_ac_Header+set}\" = set"; then
8577  echo $ECHO_N "(cached) $ECHO_C" >&6
8578fi
8579echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8580echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8581else
8582  # Is the header compilable?
8583echo "$as_me:$LINENO: checking $ac_header usability" >&5
8584echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8585cat >conftest.$ac_ext <<_ACEOF
8586/* confdefs.h.  */
8587_ACEOF
8588cat confdefs.h >>conftest.$ac_ext
8589cat >>conftest.$ac_ext <<_ACEOF
8590/* end confdefs.h.  */
8591$ac_includes_default
8592#include <$ac_header>
8593_ACEOF
8594rm -f conftest.$ac_objext
8595if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8596  (eval $ac_compile) 2>conftest.er1
8597  ac_status=$?
8598  grep -v '^ *+' conftest.er1 >conftest.err
8599  rm -f conftest.er1
8600  cat conftest.err >&5
8601  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8602  (exit $ac_status); } &&
8603	 { ac_try='test -z "$ac_c_werror_flag"
8604			 || test ! -s conftest.err'
8605  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8606  (eval $ac_try) 2>&5
8607  ac_status=$?
8608  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8609  (exit $ac_status); }; } &&
8610	 { ac_try='test -s conftest.$ac_objext'
8611  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8612  (eval $ac_try) 2>&5
8613  ac_status=$?
8614  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8615  (exit $ac_status); }; }; then
8616  ac_header_compiler=yes
8617else
8618  echo "$as_me: failed program was:" >&5
8619sed 's/^/| /' conftest.$ac_ext >&5
8620
8621ac_header_compiler=no
8622fi
8623rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8624echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8625echo "${ECHO_T}$ac_header_compiler" >&6
8626
8627# Is the header present?
8628echo "$as_me:$LINENO: checking $ac_header presence" >&5
8629echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8630cat >conftest.$ac_ext <<_ACEOF
8631/* confdefs.h.  */
8632_ACEOF
8633cat confdefs.h >>conftest.$ac_ext
8634cat >>conftest.$ac_ext <<_ACEOF
8635/* end confdefs.h.  */
8636#include <$ac_header>
8637_ACEOF
8638if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8639  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8640  ac_status=$?
8641  grep -v '^ *+' conftest.er1 >conftest.err
8642  rm -f conftest.er1
8643  cat conftest.err >&5
8644  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8645  (exit $ac_status); } >/dev/null; then
8646  if test -s conftest.err; then
8647    ac_cpp_err=$ac_c_preproc_warn_flag
8648    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8649  else
8650    ac_cpp_err=
8651  fi
8652else
8653  ac_cpp_err=yes
8654fi
8655if test -z "$ac_cpp_err"; then
8656  ac_header_preproc=yes
8657else
8658  echo "$as_me: failed program was:" >&5
8659sed 's/^/| /' conftest.$ac_ext >&5
8660
8661  ac_header_preproc=no
8662fi
8663rm -f conftest.err conftest.$ac_ext
8664echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8665echo "${ECHO_T}$ac_header_preproc" >&6
8666
8667# So?  What about this header?
8668case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8669  yes:no: )
8670    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8671echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8672    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8673echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8674    ac_header_preproc=yes
8675    ;;
8676  no:yes:* )
8677    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8678echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8679    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8680echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8681    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8682echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8683    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8684echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8685    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8686echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8687    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8688echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8689    (
8690      cat <<\_ASBOX
8691## ------------------------------------------ ##
8692## Report this to the AC_PACKAGE_NAME lists.  ##
8693## ------------------------------------------ ##
8694_ASBOX
8695    ) |
8696      sed "s/^/$as_me: WARNING:     /" >&2
8697    ;;
8698esac
8699echo "$as_me:$LINENO: checking for $ac_header" >&5
8700echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8701if eval "test \"\${$as_ac_Header+set}\" = set"; then
8702  echo $ECHO_N "(cached) $ECHO_C" >&6
8703else
8704  eval "$as_ac_Header=\$ac_header_preproc"
8705fi
8706echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8707echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8708
8709fi
8710if test `eval echo '${'$as_ac_Header'}'` = yes; then
8711  cat >>confdefs.h <<_ACEOF
8712#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8713_ACEOF
8714
8715fi
8716
8717done
8718
8719echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
8720echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
8721if test "${ac_cv_header_sys_wait_h+set}" = set; then
8722  echo $ECHO_N "(cached) $ECHO_C" >&6
8723else
8724  cat >conftest.$ac_ext <<_ACEOF
8725/* confdefs.h.  */
8726_ACEOF
8727cat confdefs.h >>conftest.$ac_ext
8728cat >>conftest.$ac_ext <<_ACEOF
8729/* end confdefs.h.  */
8730#include <sys/types.h>
8731#include <sys/wait.h>
8732#ifndef WEXITSTATUS
8733# define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
8734#endif
8735#ifndef WIFEXITED
8736# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8737#endif
8738
8739int
8740main ()
8741{
8742  int s;
8743  wait (&s);
8744  s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8745  ;
8746  return 0;
8747}
8748_ACEOF
8749rm -f conftest.$ac_objext
8750if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8751  (eval $ac_compile) 2>conftest.er1
8752  ac_status=$?
8753  grep -v '^ *+' conftest.er1 >conftest.err
8754  rm -f conftest.er1
8755  cat conftest.err >&5
8756  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8757  (exit $ac_status); } &&
8758	 { ac_try='test -z "$ac_c_werror_flag"
8759			 || test ! -s conftest.err'
8760  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8761  (eval $ac_try) 2>&5
8762  ac_status=$?
8763  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8764  (exit $ac_status); }; } &&
8765	 { ac_try='test -s conftest.$ac_objext'
8766  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8767  (eval $ac_try) 2>&5
8768  ac_status=$?
8769  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8770  (exit $ac_status); }; }; then
8771  ac_cv_header_sys_wait_h=yes
8772else
8773  echo "$as_me: failed program was:" >&5
8774sed 's/^/| /' conftest.$ac_ext >&5
8775
8776ac_cv_header_sys_wait_h=no
8777fi
8778rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8779fi
8780echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
8781echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
8782if test $ac_cv_header_sys_wait_h = yes; then
8783
8784cat >>confdefs.h <<\_ACEOF
8785#define HAVE_SYS_WAIT_H 1
8786_ACEOF
8787
8788fi
8789
8790# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
8791# for constant arguments.  Useless!
8792echo "$as_me:$LINENO: checking for working alloca.h" >&5
8793echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
8794if test "${ac_cv_working_alloca_h+set}" = set; then
8795  echo $ECHO_N "(cached) $ECHO_C" >&6
8796else
8797  cat >conftest.$ac_ext <<_ACEOF
8798/* confdefs.h.  */
8799_ACEOF
8800cat confdefs.h >>conftest.$ac_ext
8801cat >>conftest.$ac_ext <<_ACEOF
8802/* end confdefs.h.  */
8803#include <alloca.h>
8804int
8805main ()
8806{
8807char *p = (char *) alloca (2 * sizeof (int));
8808  ;
8809  return 0;
8810}
8811_ACEOF
8812rm -f conftest.$ac_objext conftest$ac_exeext
8813if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8814  (eval $ac_link) 2>conftest.er1
8815  ac_status=$?
8816  grep -v '^ *+' conftest.er1 >conftest.err
8817  rm -f conftest.er1
8818  cat conftest.err >&5
8819  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8820  (exit $ac_status); } &&
8821	 { ac_try='test -z "$ac_c_werror_flag"
8822			 || test ! -s conftest.err'
8823  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8824  (eval $ac_try) 2>&5
8825  ac_status=$?
8826  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8827  (exit $ac_status); }; } &&
8828	 { ac_try='test -s conftest$ac_exeext'
8829  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8830  (eval $ac_try) 2>&5
8831  ac_status=$?
8832  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8833  (exit $ac_status); }; }; then
8834  ac_cv_working_alloca_h=yes
8835else
8836  echo "$as_me: failed program was:" >&5
8837sed 's/^/| /' conftest.$ac_ext >&5
8838
8839ac_cv_working_alloca_h=no
8840fi
8841rm -f conftest.err conftest.$ac_objext \
8842      conftest$ac_exeext conftest.$ac_ext
8843fi
8844echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
8845echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
8846if test $ac_cv_working_alloca_h = yes; then
8847
8848cat >>confdefs.h <<\_ACEOF
8849#define HAVE_ALLOCA_H 1
8850_ACEOF
8851
8852fi
8853
8854echo "$as_me:$LINENO: checking for alloca" >&5
8855echo $ECHO_N "checking for alloca... $ECHO_C" >&6
8856if test "${ac_cv_func_alloca_works+set}" = set; then
8857  echo $ECHO_N "(cached) $ECHO_C" >&6
8858else
8859  cat >conftest.$ac_ext <<_ACEOF
8860/* confdefs.h.  */
8861_ACEOF
8862cat confdefs.h >>conftest.$ac_ext
8863cat >>conftest.$ac_ext <<_ACEOF
8864/* end confdefs.h.  */
8865#ifdef __GNUC__
8866# define alloca __builtin_alloca
8867#else
8868# ifdef _MSC_VER
8869#  include <malloc.h>
8870#  define alloca _alloca
8871# else
8872#  if HAVE_ALLOCA_H
8873#   include <alloca.h>
8874#  else
8875#   ifdef _AIX
8876 #pragma alloca
8877#   else
8878#    ifndef alloca /* predefined by HP cc +Olibcalls */
8879char *alloca ();
8880#    endif
8881#   endif
8882#  endif
8883# endif
8884#endif
8885
8886int
8887main ()
8888{
8889char *p = (char *) alloca (1);
8890  ;
8891  return 0;
8892}
8893_ACEOF
8894rm -f conftest.$ac_objext conftest$ac_exeext
8895if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8896  (eval $ac_link) 2>conftest.er1
8897  ac_status=$?
8898  grep -v '^ *+' conftest.er1 >conftest.err
8899  rm -f conftest.er1
8900  cat conftest.err >&5
8901  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8902  (exit $ac_status); } &&
8903	 { ac_try='test -z "$ac_c_werror_flag"
8904			 || test ! -s conftest.err'
8905  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8906  (eval $ac_try) 2>&5
8907  ac_status=$?
8908  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8909  (exit $ac_status); }; } &&
8910	 { ac_try='test -s conftest$ac_exeext'
8911  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8912  (eval $ac_try) 2>&5
8913  ac_status=$?
8914  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8915  (exit $ac_status); }; }; then
8916  ac_cv_func_alloca_works=yes
8917else
8918  echo "$as_me: failed program was:" >&5
8919sed 's/^/| /' conftest.$ac_ext >&5
8920
8921ac_cv_func_alloca_works=no
8922fi
8923rm -f conftest.err conftest.$ac_objext \
8924      conftest$ac_exeext conftest.$ac_ext
8925fi
8926echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
8927echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
8928
8929if test $ac_cv_func_alloca_works = yes; then
8930
8931cat >>confdefs.h <<\_ACEOF
8932#define HAVE_ALLOCA 1
8933_ACEOF
8934
8935else
8936  # The SVR3 libPW and SVR4 libucb both contain incompatible functions
8937# that cause trouble.  Some versions do not even contain alloca or
8938# contain a buggy version.  If you still want to use their alloca,
8939# use ar to extract alloca.o from them instead of compiling alloca.c.
8940
8941ALLOCA=alloca.$ac_objext
8942
8943cat >>confdefs.h <<\_ACEOF
8944#define C_ALLOCA 1
8945_ACEOF
8946
8947
8948echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
8949echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
8950if test "${ac_cv_os_cray+set}" = set; then
8951  echo $ECHO_N "(cached) $ECHO_C" >&6
8952else
8953  cat >conftest.$ac_ext <<_ACEOF
8954/* confdefs.h.  */
8955_ACEOF
8956cat confdefs.h >>conftest.$ac_ext
8957cat >>conftest.$ac_ext <<_ACEOF
8958/* end confdefs.h.  */
8959#if defined(CRAY) && ! defined(CRAY2)
8960webecray
8961#else
8962wenotbecray
8963#endif
8964
8965_ACEOF
8966if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8967  $EGREP "webecray" >/dev/null 2>&1; then
8968  ac_cv_os_cray=yes
8969else
8970  ac_cv_os_cray=no
8971fi
8972rm -f conftest*
8973
8974fi
8975echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
8976echo "${ECHO_T}$ac_cv_os_cray" >&6
8977if test $ac_cv_os_cray = yes; then
8978  for ac_func in _getb67 GETB67 getb67; do
8979    as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8980echo "$as_me:$LINENO: checking for $ac_func" >&5
8981echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8982if eval "test \"\${$as_ac_var+set}\" = set"; then
8983  echo $ECHO_N "(cached) $ECHO_C" >&6
8984else
8985  cat >conftest.$ac_ext <<_ACEOF
8986/* confdefs.h.  */
8987_ACEOF
8988cat confdefs.h >>conftest.$ac_ext
8989cat >>conftest.$ac_ext <<_ACEOF
8990/* end confdefs.h.  */
8991/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8992   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8993#define $ac_func innocuous_$ac_func
8994
8995/* System header to define __stub macros and hopefully few prototypes,
8996    which can conflict with char $ac_func (); below.
8997    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8998    <limits.h> exists even on freestanding compilers.  */
8999
9000#ifdef __STDC__
9001# include <limits.h>
9002#else
9003# include <assert.h>
9004#endif
9005
9006#undef $ac_func
9007
9008/* Override any gcc2 internal prototype to avoid an error.  */
9009#ifdef __cplusplus
9010extern "C"
9011{
9012#endif
9013/* We use char because int might match the return type of a gcc2
9014   builtin and then its argument prototype would still apply.  */
9015char $ac_func ();
9016/* The GNU C library defines this for functions which it implements
9017    to always fail with ENOSYS.  Some functions are actually named
9018    something starting with __ and the normal name is an alias.  */
9019#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9020choke me
9021#else
9022char (*f) () = $ac_func;
9023#endif
9024#ifdef __cplusplus
9025}
9026#endif
9027
9028int
9029main ()
9030{
9031return f != $ac_func;
9032  ;
9033  return 0;
9034}
9035_ACEOF
9036rm -f conftest.$ac_objext conftest$ac_exeext
9037if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9038  (eval $ac_link) 2>conftest.er1
9039  ac_status=$?
9040  grep -v '^ *+' conftest.er1 >conftest.err
9041  rm -f conftest.er1
9042  cat conftest.err >&5
9043  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9044  (exit $ac_status); } &&
9045	 { ac_try='test -z "$ac_c_werror_flag"
9046			 || test ! -s conftest.err'
9047  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9048  (eval $ac_try) 2>&5
9049  ac_status=$?
9050  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9051  (exit $ac_status); }; } &&
9052	 { ac_try='test -s conftest$ac_exeext'
9053  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9054  (eval $ac_try) 2>&5
9055  ac_status=$?
9056  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9057  (exit $ac_status); }; }; then
9058  eval "$as_ac_var=yes"
9059else
9060  echo "$as_me: failed program was:" >&5
9061sed 's/^/| /' conftest.$ac_ext >&5
9062
9063eval "$as_ac_var=no"
9064fi
9065rm -f conftest.err conftest.$ac_objext \
9066      conftest$ac_exeext conftest.$ac_ext
9067fi
9068echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9069echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9070if test `eval echo '${'$as_ac_var'}'` = yes; then
9071
9072cat >>confdefs.h <<_ACEOF
9073#define CRAY_STACKSEG_END $ac_func
9074_ACEOF
9075
9076    break
9077fi
9078
9079  done
9080fi
9081
9082echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
9083echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
9084if test "${ac_cv_c_stack_direction+set}" = set; then
9085  echo $ECHO_N "(cached) $ECHO_C" >&6
9086else
9087  if test "$cross_compiling" = yes; then
9088  ac_cv_c_stack_direction=0
9089else
9090  cat >conftest.$ac_ext <<_ACEOF
9091/* confdefs.h.  */
9092_ACEOF
9093cat confdefs.h >>conftest.$ac_ext
9094cat >>conftest.$ac_ext <<_ACEOF
9095/* end confdefs.h.  */
9096int
9097find_stack_direction ()
9098{
9099  static char *addr = 0;
9100  auto char dummy;
9101  if (addr == 0)
9102    {
9103      addr = &dummy;
9104      return find_stack_direction ();
9105    }
9106  else
9107    return (&dummy > addr) ? 1 : -1;
9108}
9109
9110int
9111main ()
9112{
9113  exit (find_stack_direction () < 0);
9114}
9115_ACEOF
9116rm -f conftest$ac_exeext
9117if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9118  (eval $ac_link) 2>&5
9119  ac_status=$?
9120  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9121  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9122  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9123  (eval $ac_try) 2>&5
9124  ac_status=$?
9125  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9126  (exit $ac_status); }; }; then
9127  ac_cv_c_stack_direction=1
9128else
9129  echo "$as_me: program exited with status $ac_status" >&5
9130echo "$as_me: failed program was:" >&5
9131sed 's/^/| /' conftest.$ac_ext >&5
9132
9133( exit $ac_status )
9134ac_cv_c_stack_direction=-1
9135fi
9136rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9137fi
9138fi
9139echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
9140echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
9141
9142cat >>confdefs.h <<_ACEOF
9143#define STACK_DIRECTION $ac_cv_c_stack_direction
9144_ACEOF
9145
9146
9147fi
9148
9149
9150
9151
9152
9153
9154for ac_func in sbrk utimes setmode getc_unlocked strcoll
9155do
9156as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9157echo "$as_me:$LINENO: checking for $ac_func" >&5
9158echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9159if eval "test \"\${$as_ac_var+set}\" = set"; then
9160  echo $ECHO_N "(cached) $ECHO_C" >&6
9161else
9162  cat >conftest.$ac_ext <<_ACEOF
9163/* confdefs.h.  */
9164_ACEOF
9165cat confdefs.h >>conftest.$ac_ext
9166cat >>conftest.$ac_ext <<_ACEOF
9167/* end confdefs.h.  */
9168/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9169   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9170#define $ac_func innocuous_$ac_func
9171
9172/* System header to define __stub macros and hopefully few prototypes,
9173    which can conflict with char $ac_func (); below.
9174    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9175    <limits.h> exists even on freestanding compilers.  */
9176
9177#ifdef __STDC__
9178# include <limits.h>
9179#else
9180# include <assert.h>
9181#endif
9182
9183#undef $ac_func
9184
9185/* Override any gcc2 internal prototype to avoid an error.  */
9186#ifdef __cplusplus
9187extern "C"
9188{
9189#endif
9190/* We use char because int might match the return type of a gcc2
9191   builtin and then its argument prototype would still apply.  */
9192char $ac_func ();
9193/* The GNU C library defines this for functions which it implements
9194    to always fail with ENOSYS.  Some functions are actually named
9195    something starting with __ and the normal name is an alias.  */
9196#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9197choke me
9198#else
9199char (*f) () = $ac_func;
9200#endif
9201#ifdef __cplusplus
9202}
9203#endif
9204
9205int
9206main ()
9207{
9208return f != $ac_func;
9209  ;
9210  return 0;
9211}
9212_ACEOF
9213rm -f conftest.$ac_objext conftest$ac_exeext
9214if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9215  (eval $ac_link) 2>conftest.er1
9216  ac_status=$?
9217  grep -v '^ *+' conftest.er1 >conftest.err
9218  rm -f conftest.er1
9219  cat conftest.err >&5
9220  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9221  (exit $ac_status); } &&
9222	 { ac_try='test -z "$ac_c_werror_flag"
9223			 || test ! -s conftest.err'
9224  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9225  (eval $ac_try) 2>&5
9226  ac_status=$?
9227  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9228  (exit $ac_status); }; } &&
9229	 { ac_try='test -s conftest$ac_exeext'
9230  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9231  (eval $ac_try) 2>&5
9232  ac_status=$?
9233  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9234  (exit $ac_status); }; }; then
9235  eval "$as_ac_var=yes"
9236else
9237  echo "$as_me: failed program was:" >&5
9238sed 's/^/| /' conftest.$ac_ext >&5
9239
9240eval "$as_ac_var=no"
9241fi
9242rm -f conftest.err conftest.$ac_objext \
9243      conftest$ac_exeext conftest.$ac_ext
9244fi
9245echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9246echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9247if test `eval echo '${'$as_ac_var'}'` = yes; then
9248  cat >>confdefs.h <<_ACEOF
9249#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9250_ACEOF
9251
9252fi
9253done
9254
9255
9256# Check whether fopen64 is available and whether _LARGEFILE64_SOURCE
9257# needs to be defined for it
9258echo "$as_me:$LINENO: checking for fopen64" >&5
9259echo $ECHO_N "checking for fopen64... $ECHO_C" >&6
9260if test "${bu_cv_have_fopen64+set}" = set; then
9261  echo $ECHO_N "(cached) $ECHO_C" >&6
9262else
9263  cat >conftest.$ac_ext <<_ACEOF
9264/* confdefs.h.  */
9265_ACEOF
9266cat confdefs.h >>conftest.$ac_ext
9267cat >>conftest.$ac_ext <<_ACEOF
9268/* end confdefs.h.  */
9269#include <stdio.h>
9270int
9271main ()
9272{
9273FILE *f = fopen64 ("/tmp/foo","r");
9274  ;
9275  return 0;
9276}
9277_ACEOF
9278rm -f conftest.$ac_objext conftest$ac_exeext
9279if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9280  (eval $ac_link) 2>conftest.er1
9281  ac_status=$?
9282  grep -v '^ *+' conftest.er1 >conftest.err
9283  rm -f conftest.er1
9284  cat conftest.err >&5
9285  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9286  (exit $ac_status); } &&
9287	 { ac_try='test -z "$ac_c_werror_flag"
9288			 || test ! -s conftest.err'
9289  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9290  (eval $ac_try) 2>&5
9291  ac_status=$?
9292  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9293  (exit $ac_status); }; } &&
9294	 { ac_try='test -s conftest$ac_exeext'
9295  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9296  (eval $ac_try) 2>&5
9297  ac_status=$?
9298  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9299  (exit $ac_status); }; }; then
9300  bu_cv_have_fopen64=yes
9301else
9302  echo "$as_me: failed program was:" >&5
9303sed 's/^/| /' conftest.$ac_ext >&5
9304
9305saved_CPPFLAGS=$CPPFLAGS
9306 CPPFLAGS="$CPPFLAGS -D_LARGEFILE64_SOURCE"
9307 cat >conftest.$ac_ext <<_ACEOF
9308/* confdefs.h.  */
9309_ACEOF
9310cat confdefs.h >>conftest.$ac_ext
9311cat >>conftest.$ac_ext <<_ACEOF
9312/* end confdefs.h.  */
9313#include <stdio.h>
9314int
9315main ()
9316{
9317FILE *f = fopen64 ("/tmp/foo","r");
9318  ;
9319  return 0;
9320}
9321_ACEOF
9322rm -f conftest.$ac_objext conftest$ac_exeext
9323if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9324  (eval $ac_link) 2>conftest.er1
9325  ac_status=$?
9326  grep -v '^ *+' conftest.er1 >conftest.err
9327  rm -f conftest.er1
9328  cat conftest.err >&5
9329  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9330  (exit $ac_status); } &&
9331	 { ac_try='test -z "$ac_c_werror_flag"
9332			 || test ! -s conftest.err'
9333  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9334  (eval $ac_try) 2>&5
9335  ac_status=$?
9336  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9337  (exit $ac_status); }; } &&
9338	 { ac_try='test -s conftest$ac_exeext'
9339  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9340  (eval $ac_try) 2>&5
9341  ac_status=$?
9342  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9343  (exit $ac_status); }; }; then
9344  bu_cv_have_fopen64="need -D_LARGEFILE64_SOURCE"
9345else
9346  echo "$as_me: failed program was:" >&5
9347sed 's/^/| /' conftest.$ac_ext >&5
9348
9349bu_cv_have_fopen64=no
9350fi
9351rm -f conftest.err conftest.$ac_objext \
9352      conftest$ac_exeext conftest.$ac_ext
9353 CPPFLAGS=$saved_CPPFLAGS
9354fi
9355rm -f conftest.err conftest.$ac_objext \
9356      conftest$ac_exeext conftest.$ac_ext
9357fi
9358
9359echo "$as_me:$LINENO: result: $bu_cv_have_fopen64" >&5
9360echo "${ECHO_T}$bu_cv_have_fopen64" >&6
9361if test "$bu_cv_have_fopen64" != no; then
9362
9363cat >>confdefs.h <<\_ACEOF
9364#define HAVE_FOPEN64 1
9365_ACEOF
9366
9367fi
9368echo "$as_me:$LINENO: checking for stat64" >&5
9369echo $ECHO_N "checking for stat64... $ECHO_C" >&6
9370if test "${bu_cv_have_stat64+set}" = set; then
9371  echo $ECHO_N "(cached) $ECHO_C" >&6
9372else
9373  cat >conftest.$ac_ext <<_ACEOF
9374/* confdefs.h.  */
9375_ACEOF
9376cat confdefs.h >>conftest.$ac_ext
9377cat >>conftest.$ac_ext <<_ACEOF
9378/* end confdefs.h.  */
9379#include <sys/stat.h>
9380int
9381main ()
9382{
9383struct stat64 st; stat64 ("/tmp/foo", &st);
9384  ;
9385  return 0;
9386}
9387_ACEOF
9388rm -f conftest.$ac_objext conftest$ac_exeext
9389if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9390  (eval $ac_link) 2>conftest.er1
9391  ac_status=$?
9392  grep -v '^ *+' conftest.er1 >conftest.err
9393  rm -f conftest.er1
9394  cat conftest.err >&5
9395  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9396  (exit $ac_status); } &&
9397	 { ac_try='test -z "$ac_c_werror_flag"
9398			 || test ! -s conftest.err'
9399  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9400  (eval $ac_try) 2>&5
9401  ac_status=$?
9402  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9403  (exit $ac_status); }; } &&
9404	 { ac_try='test -s conftest$ac_exeext'
9405  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9406  (eval $ac_try) 2>&5
9407  ac_status=$?
9408  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9409  (exit $ac_status); }; }; then
9410  bu_cv_have_stat64=yes
9411else
9412  echo "$as_me: failed program was:" >&5
9413sed 's/^/| /' conftest.$ac_ext >&5
9414
9415saved_CPPFLAGS=$CPPFLAGS
9416 CPPFLAGS="$CPPFLAGS -D_LARGEFILE64_SOURCE"
9417 cat >conftest.$ac_ext <<_ACEOF
9418/* confdefs.h.  */
9419_ACEOF
9420cat confdefs.h >>conftest.$ac_ext
9421cat >>conftest.$ac_ext <<_ACEOF
9422/* end confdefs.h.  */
9423#include <sys/stat.h>
9424int
9425main ()
9426{
9427struct stat64 st; stat64 ("/tmp/foo", &st);
9428  ;
9429  return 0;
9430}
9431_ACEOF
9432rm -f conftest.$ac_objext conftest$ac_exeext
9433if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9434  (eval $ac_link) 2>conftest.er1
9435  ac_status=$?
9436  grep -v '^ *+' conftest.er1 >conftest.err
9437  rm -f conftest.er1
9438  cat conftest.err >&5
9439  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9440  (exit $ac_status); } &&
9441	 { ac_try='test -z "$ac_c_werror_flag"
9442			 || test ! -s conftest.err'
9443  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9444  (eval $ac_try) 2>&5
9445  ac_status=$?
9446  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9447  (exit $ac_status); }; } &&
9448	 { ac_try='test -s conftest$ac_exeext'
9449  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9450  (eval $ac_try) 2>&5
9451  ac_status=$?
9452  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9453  (exit $ac_status); }; }; then
9454  bu_cv_have_stat64="need -D_LARGEFILE64_SOURCE"
9455else
9456  echo "$as_me: failed program was:" >&5
9457sed 's/^/| /' conftest.$ac_ext >&5
9458
9459bu_cv_have_stat64=no
9460fi
9461rm -f conftest.err conftest.$ac_objext \
9462      conftest$ac_exeext conftest.$ac_ext
9463 CPPFLAGS=$saved_CPPFLAGS
9464fi
9465rm -f conftest.err conftest.$ac_objext \
9466      conftest$ac_exeext conftest.$ac_ext
9467fi
9468
9469echo "$as_me:$LINENO: result: $bu_cv_have_stat64" >&5
9470echo "${ECHO_T}$bu_cv_have_stat64" >&6
9471if test "$bu_cv_have_stat64" != no; then
9472
9473cat >>confdefs.h <<\_ACEOF
9474#define HAVE_STAT64 1
9475_ACEOF
9476
9477fi
9478if test "$bu_cv_have_fopen64" = "need -D_LARGEFILE64_SOURCE" \
9479   || test "$bu_cv_have_stat64" = "need -D_LARGEFILE64_SOURCE"; then
9480
9481cat >>confdefs.h <<\_ACEOF
9482#define _LARGEFILE64_SOURCE 1
9483_ACEOF
9484
9485  CPPFLAGS="$CPPFLAGS -D_LARGEFILE64_SOURCE"
9486fi
9487
9488# Some systems have frexp only in -lm, not in -lc.
9489echo "$as_me:$LINENO: checking for library containing frexp" >&5
9490echo $ECHO_N "checking for library containing frexp... $ECHO_C" >&6
9491if test "${ac_cv_search_frexp+set}" = set; then
9492  echo $ECHO_N "(cached) $ECHO_C" >&6
9493else
9494  ac_func_search_save_LIBS=$LIBS
9495ac_cv_search_frexp=no
9496cat >conftest.$ac_ext <<_ACEOF
9497/* confdefs.h.  */
9498_ACEOF
9499cat confdefs.h >>conftest.$ac_ext
9500cat >>conftest.$ac_ext <<_ACEOF
9501/* end confdefs.h.  */
9502
9503/* Override any gcc2 internal prototype to avoid an error.  */
9504#ifdef __cplusplus
9505extern "C"
9506#endif
9507/* We use char because int might match the return type of a gcc2
9508   builtin and then its argument prototype would still apply.  */
9509char frexp ();
9510int
9511main ()
9512{
9513frexp ();
9514  ;
9515  return 0;
9516}
9517_ACEOF
9518rm -f conftest.$ac_objext conftest$ac_exeext
9519if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9520  (eval $ac_link) 2>conftest.er1
9521  ac_status=$?
9522  grep -v '^ *+' conftest.er1 >conftest.err
9523  rm -f conftest.er1
9524  cat conftest.err >&5
9525  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9526  (exit $ac_status); } &&
9527	 { ac_try='test -z "$ac_c_werror_flag"
9528			 || test ! -s conftest.err'
9529  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9530  (eval $ac_try) 2>&5
9531  ac_status=$?
9532  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9533  (exit $ac_status); }; } &&
9534	 { ac_try='test -s conftest$ac_exeext'
9535  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9536  (eval $ac_try) 2>&5
9537  ac_status=$?
9538  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9539  (exit $ac_status); }; }; then
9540  ac_cv_search_frexp="none required"
9541else
9542  echo "$as_me: failed program was:" >&5
9543sed 's/^/| /' conftest.$ac_ext >&5
9544
9545fi
9546rm -f conftest.err conftest.$ac_objext \
9547      conftest$ac_exeext conftest.$ac_ext
9548if test "$ac_cv_search_frexp" = no; then
9549  for ac_lib in m; do
9550    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9551    cat >conftest.$ac_ext <<_ACEOF
9552/* confdefs.h.  */
9553_ACEOF
9554cat confdefs.h >>conftest.$ac_ext
9555cat >>conftest.$ac_ext <<_ACEOF
9556/* end confdefs.h.  */
9557
9558/* Override any gcc2 internal prototype to avoid an error.  */
9559#ifdef __cplusplus
9560extern "C"
9561#endif
9562/* We use char because int might match the return type of a gcc2
9563   builtin and then its argument prototype would still apply.  */
9564char frexp ();
9565int
9566main ()
9567{
9568frexp ();
9569  ;
9570  return 0;
9571}
9572_ACEOF
9573rm -f conftest.$ac_objext conftest$ac_exeext
9574if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9575  (eval $ac_link) 2>conftest.er1
9576  ac_status=$?
9577  grep -v '^ *+' conftest.er1 >conftest.err
9578  rm -f conftest.er1
9579  cat conftest.err >&5
9580  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9581  (exit $ac_status); } &&
9582	 { ac_try='test -z "$ac_c_werror_flag"
9583			 || test ! -s conftest.err'
9584  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9585  (eval $ac_try) 2>&5
9586  ac_status=$?
9587  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9588  (exit $ac_status); }; } &&
9589	 { ac_try='test -s conftest$ac_exeext'
9590  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9591  (eval $ac_try) 2>&5
9592  ac_status=$?
9593  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9594  (exit $ac_status); }; }; then
9595  ac_cv_search_frexp="-l$ac_lib"
9596break
9597else
9598  echo "$as_me: failed program was:" >&5
9599sed 's/^/| /' conftest.$ac_ext >&5
9600
9601fi
9602rm -f conftest.err conftest.$ac_objext \
9603      conftest$ac_exeext conftest.$ac_ext
9604  done
9605fi
9606LIBS=$ac_func_search_save_LIBS
9607fi
9608echo "$as_me:$LINENO: result: $ac_cv_search_frexp" >&5
9609echo "${ECHO_T}$ac_cv_search_frexp" >&6
9610if test "$ac_cv_search_frexp" != no; then
9611  test "$ac_cv_search_frexp" = "none required" || LIBS="$ac_cv_search_frexp $LIBS"
9612
9613fi
9614
9615
9616echo "$as_me:$LINENO: checking for time_t in time.h" >&5
9617echo $ECHO_N "checking for time_t in time.h... $ECHO_C" >&6
9618if test "${bu_cv_decl_time_t_time_h+set}" = set; then
9619  echo $ECHO_N "(cached) $ECHO_C" >&6
9620else
9621  cat >conftest.$ac_ext <<_ACEOF
9622/* confdefs.h.  */
9623_ACEOF
9624cat confdefs.h >>conftest.$ac_ext
9625cat >>conftest.$ac_ext <<_ACEOF
9626/* end confdefs.h.  */
9627#include <time.h>
9628int
9629main ()
9630{
9631time_t i;
9632  ;
9633  return 0;
9634}
9635_ACEOF
9636rm -f conftest.$ac_objext
9637if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9638  (eval $ac_compile) 2>conftest.er1
9639  ac_status=$?
9640  grep -v '^ *+' conftest.er1 >conftest.err
9641  rm -f conftest.er1
9642  cat conftest.err >&5
9643  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9644  (exit $ac_status); } &&
9645	 { ac_try='test -z "$ac_c_werror_flag"
9646			 || test ! -s conftest.err'
9647  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9648  (eval $ac_try) 2>&5
9649  ac_status=$?
9650  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9651  (exit $ac_status); }; } &&
9652	 { ac_try='test -s conftest.$ac_objext'
9653  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9654  (eval $ac_try) 2>&5
9655  ac_status=$?
9656  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9657  (exit $ac_status); }; }; then
9658  bu_cv_decl_time_t_time_h=yes
9659else
9660  echo "$as_me: failed program was:" >&5
9661sed 's/^/| /' conftest.$ac_ext >&5
9662
9663bu_cv_decl_time_t_time_h=no
9664fi
9665rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9666fi
9667
9668echo "$as_me:$LINENO: result: $bu_cv_decl_time_t_time_h" >&5
9669echo "${ECHO_T}$bu_cv_decl_time_t_time_h" >&6
9670if test $bu_cv_decl_time_t_time_h = yes; then
9671
9672cat >>confdefs.h <<\_ACEOF
9673#define HAVE_TIME_T_IN_TIME_H 1
9674_ACEOF
9675
9676fi
9677
9678echo "$as_me:$LINENO: checking for time_t in sys/types.h" >&5
9679echo $ECHO_N "checking for time_t in sys/types.h... $ECHO_C" >&6
9680if test "${bu_cv_decl_time_t_types_h+set}" = set; then
9681  echo $ECHO_N "(cached) $ECHO_C" >&6
9682else
9683  cat >conftest.$ac_ext <<_ACEOF
9684/* confdefs.h.  */
9685_ACEOF
9686cat confdefs.h >>conftest.$ac_ext
9687cat >>conftest.$ac_ext <<_ACEOF
9688/* end confdefs.h.  */
9689#include <sys/types.h>
9690int
9691main ()
9692{
9693time_t i;
9694  ;
9695  return 0;
9696}
9697_ACEOF
9698rm -f conftest.$ac_objext
9699if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9700  (eval $ac_compile) 2>conftest.er1
9701  ac_status=$?
9702  grep -v '^ *+' conftest.er1 >conftest.err
9703  rm -f conftest.er1
9704  cat conftest.err >&5
9705  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9706  (exit $ac_status); } &&
9707	 { ac_try='test -z "$ac_c_werror_flag"
9708			 || test ! -s conftest.err'
9709  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9710  (eval $ac_try) 2>&5
9711  ac_status=$?
9712  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9713  (exit $ac_status); }; } &&
9714	 { ac_try='test -s conftest.$ac_objext'
9715  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9716  (eval $ac_try) 2>&5
9717  ac_status=$?
9718  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9719  (exit $ac_status); }; }; then
9720  bu_cv_decl_time_t_types_h=yes
9721else
9722  echo "$as_me: failed program was:" >&5
9723sed 's/^/| /' conftest.$ac_ext >&5
9724
9725bu_cv_decl_time_t_types_h=no
9726fi
9727rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9728fi
9729
9730echo "$as_me:$LINENO: result: $bu_cv_decl_time_t_types_h" >&5
9731echo "${ECHO_T}$bu_cv_decl_time_t_types_h" >&6
9732if test $bu_cv_decl_time_t_types_h = yes; then
9733
9734cat >>confdefs.h <<\_ACEOF
9735#define HAVE_TIME_T_IN_TYPES_H 1
9736_ACEOF
9737
9738fi
9739
9740echo "$as_me:$LINENO: checking for a known getopt prototype in unistd.h" >&5
9741echo $ECHO_N "checking for a known getopt prototype in unistd.h... $ECHO_C" >&6
9742if test "${bu_cv_decl_getopt_unistd_h+set}" = set; then
9743  echo $ECHO_N "(cached) $ECHO_C" >&6
9744else
9745  cat >conftest.$ac_ext <<_ACEOF
9746/* confdefs.h.  */
9747_ACEOF
9748cat confdefs.h >>conftest.$ac_ext
9749cat >>conftest.$ac_ext <<_ACEOF
9750/* end confdefs.h.  */
9751#include <unistd.h>
9752int
9753main ()
9754{
9755extern int getopt (int, char *const*, const char *);
9756  ;
9757  return 0;
9758}
9759_ACEOF
9760rm -f conftest.$ac_objext
9761if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9762  (eval $ac_compile) 2>conftest.er1
9763  ac_status=$?
9764  grep -v '^ *+' conftest.er1 >conftest.err
9765  rm -f conftest.er1
9766  cat conftest.err >&5
9767  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9768  (exit $ac_status); } &&
9769	 { ac_try='test -z "$ac_c_werror_flag"
9770			 || test ! -s conftest.err'
9771  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9772  (eval $ac_try) 2>&5
9773  ac_status=$?
9774  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9775  (exit $ac_status); }; } &&
9776	 { ac_try='test -s conftest.$ac_objext'
9777  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9778  (eval $ac_try) 2>&5
9779  ac_status=$?
9780  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9781  (exit $ac_status); }; }; then
9782  bu_cv_decl_getopt_unistd_h=yes
9783else
9784  echo "$as_me: failed program was:" >&5
9785sed 's/^/| /' conftest.$ac_ext >&5
9786
9787bu_cv_decl_getopt_unistd_h=no
9788fi
9789rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9790fi
9791
9792echo "$as_me:$LINENO: result: $bu_cv_decl_getopt_unistd_h" >&5
9793echo "${ECHO_T}$bu_cv_decl_getopt_unistd_h" >&6
9794if test $bu_cv_decl_getopt_unistd_h = yes; then
9795
9796cat >>confdefs.h <<\_ACEOF
9797#define HAVE_DECL_GETOPT 1
9798_ACEOF
9799
9800fi
9801
9802# Under Next 3.2 <utime.h> apparently does not define struct utimbuf
9803# by default.
9804echo "$as_me:$LINENO: checking for utime.h" >&5
9805echo $ECHO_N "checking for utime.h... $ECHO_C" >&6
9806if test "${bu_cv_header_utime_h+set}" = set; then
9807  echo $ECHO_N "(cached) $ECHO_C" >&6
9808else
9809  cat >conftest.$ac_ext <<_ACEOF
9810/* confdefs.h.  */
9811_ACEOF
9812cat confdefs.h >>conftest.$ac_ext
9813cat >>conftest.$ac_ext <<_ACEOF
9814/* end confdefs.h.  */
9815#include <sys/types.h>
9816#ifdef HAVE_TIME_H
9817#include <time.h>
9818#endif
9819#include <utime.h>
9820int
9821main ()
9822{
9823struct utimbuf s;
9824  ;
9825  return 0;
9826}
9827_ACEOF
9828rm -f conftest.$ac_objext
9829if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9830  (eval $ac_compile) 2>conftest.er1
9831  ac_status=$?
9832  grep -v '^ *+' conftest.er1 >conftest.err
9833  rm -f conftest.er1
9834  cat conftest.err >&5
9835  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9836  (exit $ac_status); } &&
9837	 { ac_try='test -z "$ac_c_werror_flag"
9838			 || test ! -s conftest.err'
9839  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9840  (eval $ac_try) 2>&5
9841  ac_status=$?
9842  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9843  (exit $ac_status); }; } &&
9844	 { ac_try='test -s conftest.$ac_objext'
9845  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9846  (eval $ac_try) 2>&5
9847  ac_status=$?
9848  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9849  (exit $ac_status); }; }; then
9850  bu_cv_header_utime_h=yes
9851else
9852  echo "$as_me: failed program was:" >&5
9853sed 's/^/| /' conftest.$ac_ext >&5
9854
9855bu_cv_header_utime_h=no
9856fi
9857rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9858fi
9859
9860echo "$as_me:$LINENO: result: $bu_cv_header_utime_h" >&5
9861echo "${ECHO_T}$bu_cv_header_utime_h" >&6
9862if test $bu_cv_header_utime_h = yes; then
9863
9864cat >>confdefs.h <<\_ACEOF
9865#define HAVE_GOOD_UTIME_H 1
9866_ACEOF
9867
9868fi
9869
9870echo "$as_me:$LINENO: checking whether fprintf is declared" >&5
9871echo $ECHO_N "checking whether fprintf is declared... $ECHO_C" >&6
9872if test "${ac_cv_have_decl_fprintf+set}" = set; then
9873  echo $ECHO_N "(cached) $ECHO_C" >&6
9874else
9875  cat >conftest.$ac_ext <<_ACEOF
9876/* confdefs.h.  */
9877_ACEOF
9878cat confdefs.h >>conftest.$ac_ext
9879cat >>conftest.$ac_ext <<_ACEOF
9880/* end confdefs.h.  */
9881$ac_includes_default
9882int
9883main ()
9884{
9885#ifndef fprintf
9886  char *p = (char *) fprintf;
9887#endif
9888
9889  ;
9890  return 0;
9891}
9892_ACEOF
9893rm -f conftest.$ac_objext
9894if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9895  (eval $ac_compile) 2>conftest.er1
9896  ac_status=$?
9897  grep -v '^ *+' conftest.er1 >conftest.err
9898  rm -f conftest.er1
9899  cat conftest.err >&5
9900  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9901  (exit $ac_status); } &&
9902	 { ac_try='test -z "$ac_c_werror_flag"
9903			 || test ! -s conftest.err'
9904  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9905  (eval $ac_try) 2>&5
9906  ac_status=$?
9907  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9908  (exit $ac_status); }; } &&
9909	 { ac_try='test -s conftest.$ac_objext'
9910  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9911  (eval $ac_try) 2>&5
9912  ac_status=$?
9913  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9914  (exit $ac_status); }; }; then
9915  ac_cv_have_decl_fprintf=yes
9916else
9917  echo "$as_me: failed program was:" >&5
9918sed 's/^/| /' conftest.$ac_ext >&5
9919
9920ac_cv_have_decl_fprintf=no
9921fi
9922rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9923fi
9924echo "$as_me:$LINENO: result: $ac_cv_have_decl_fprintf" >&5
9925echo "${ECHO_T}$ac_cv_have_decl_fprintf" >&6
9926if test $ac_cv_have_decl_fprintf = yes; then
9927
9928cat >>confdefs.h <<_ACEOF
9929#define HAVE_DECL_FPRINTF 1
9930_ACEOF
9931
9932
9933else
9934  cat >>confdefs.h <<_ACEOF
9935#define HAVE_DECL_FPRINTF 0
9936_ACEOF
9937
9938
9939fi
9940echo "$as_me:$LINENO: checking whether stpcpy is declared" >&5
9941echo $ECHO_N "checking whether stpcpy is declared... $ECHO_C" >&6
9942if test "${ac_cv_have_decl_stpcpy+set}" = set; then
9943  echo $ECHO_N "(cached) $ECHO_C" >&6
9944else
9945  cat >conftest.$ac_ext <<_ACEOF
9946/* confdefs.h.  */
9947_ACEOF
9948cat confdefs.h >>conftest.$ac_ext
9949cat >>conftest.$ac_ext <<_ACEOF
9950/* end confdefs.h.  */
9951$ac_includes_default
9952int
9953main ()
9954{
9955#ifndef stpcpy
9956  char *p = (char *) stpcpy;
9957#endif
9958
9959  ;
9960  return 0;
9961}
9962_ACEOF
9963rm -f conftest.$ac_objext
9964if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9965  (eval $ac_compile) 2>conftest.er1
9966  ac_status=$?
9967  grep -v '^ *+' conftest.er1 >conftest.err
9968  rm -f conftest.er1
9969  cat conftest.err >&5
9970  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9971  (exit $ac_status); } &&
9972	 { ac_try='test -z "$ac_c_werror_flag"
9973			 || test ! -s conftest.err'
9974  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9975  (eval $ac_try) 2>&5
9976  ac_status=$?
9977  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9978  (exit $ac_status); }; } &&
9979	 { ac_try='test -s conftest.$ac_objext'
9980  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9981  (eval $ac_try) 2>&5
9982  ac_status=$?
9983  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9984  (exit $ac_status); }; }; then
9985  ac_cv_have_decl_stpcpy=yes
9986else
9987  echo "$as_me: failed program was:" >&5
9988sed 's/^/| /' conftest.$ac_ext >&5
9989
9990ac_cv_have_decl_stpcpy=no
9991fi
9992rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9993fi
9994echo "$as_me:$LINENO: result: $ac_cv_have_decl_stpcpy" >&5
9995echo "${ECHO_T}$ac_cv_have_decl_stpcpy" >&6
9996if test $ac_cv_have_decl_stpcpy = yes; then
9997
9998cat >>confdefs.h <<_ACEOF
9999#define HAVE_DECL_STPCPY 1
10000_ACEOF
10001
10002
10003else
10004  cat >>confdefs.h <<_ACEOF
10005#define HAVE_DECL_STPCPY 0
10006_ACEOF
10007
10008
10009fi
10010echo "$as_me:$LINENO: checking whether strstr is declared" >&5
10011echo $ECHO_N "checking whether strstr is declared... $ECHO_C" >&6
10012if test "${ac_cv_have_decl_strstr+set}" = set; then
10013  echo $ECHO_N "(cached) $ECHO_C" >&6
10014else
10015  cat >conftest.$ac_ext <<_ACEOF
10016/* confdefs.h.  */
10017_ACEOF
10018cat confdefs.h >>conftest.$ac_ext
10019cat >>conftest.$ac_ext <<_ACEOF
10020/* end confdefs.h.  */
10021$ac_includes_default
10022int
10023main ()
10024{
10025#ifndef strstr
10026  char *p = (char *) strstr;
10027#endif
10028
10029  ;
10030  return 0;
10031}
10032_ACEOF
10033rm -f conftest.$ac_objext
10034if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10035  (eval $ac_compile) 2>conftest.er1
10036  ac_status=$?
10037  grep -v '^ *+' conftest.er1 >conftest.err
10038  rm -f conftest.er1
10039  cat conftest.err >&5
10040  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10041  (exit $ac_status); } &&
10042	 { ac_try='test -z "$ac_c_werror_flag"
10043			 || test ! -s conftest.err'
10044  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10045  (eval $ac_try) 2>&5
10046  ac_status=$?
10047  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10048  (exit $ac_status); }; } &&
10049	 { ac_try='test -s conftest.$ac_objext'
10050  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10051  (eval $ac_try) 2>&5
10052  ac_status=$?
10053  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10054  (exit $ac_status); }; }; then
10055  ac_cv_have_decl_strstr=yes
10056else
10057  echo "$as_me: failed program was:" >&5
10058sed 's/^/| /' conftest.$ac_ext >&5
10059
10060ac_cv_have_decl_strstr=no
10061fi
10062rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10063fi
10064echo "$as_me:$LINENO: result: $ac_cv_have_decl_strstr" >&5
10065echo "${ECHO_T}$ac_cv_have_decl_strstr" >&6
10066if test $ac_cv_have_decl_strstr = yes; then
10067
10068cat >>confdefs.h <<_ACEOF
10069#define HAVE_DECL_STRSTR 1
10070_ACEOF
10071
10072
10073else
10074  cat >>confdefs.h <<_ACEOF
10075#define HAVE_DECL_STRSTR 0
10076_ACEOF
10077
10078
10079fi
10080echo "$as_me:$LINENO: checking whether sbrk is declared" >&5
10081echo $ECHO_N "checking whether sbrk is declared... $ECHO_C" >&6
10082if test "${ac_cv_have_decl_sbrk+set}" = set; then
10083  echo $ECHO_N "(cached) $ECHO_C" >&6
10084else
10085  cat >conftest.$ac_ext <<_ACEOF
10086/* confdefs.h.  */
10087_ACEOF
10088cat confdefs.h >>conftest.$ac_ext
10089cat >>conftest.$ac_ext <<_ACEOF
10090/* end confdefs.h.  */
10091$ac_includes_default
10092int
10093main ()
10094{
10095#ifndef sbrk
10096  char *p = (char *) sbrk;
10097#endif
10098
10099  ;
10100  return 0;
10101}
10102_ACEOF
10103rm -f conftest.$ac_objext
10104if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10105  (eval $ac_compile) 2>conftest.er1
10106  ac_status=$?
10107  grep -v '^ *+' conftest.er1 >conftest.err
10108  rm -f conftest.er1
10109  cat conftest.err >&5
10110  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10111  (exit $ac_status); } &&
10112	 { ac_try='test -z "$ac_c_werror_flag"
10113			 || test ! -s conftest.err'
10114  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10115  (eval $ac_try) 2>&5
10116  ac_status=$?
10117  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10118  (exit $ac_status); }; } &&
10119	 { ac_try='test -s conftest.$ac_objext'
10120  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10121  (eval $ac_try) 2>&5
10122  ac_status=$?
10123  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10124  (exit $ac_status); }; }; then
10125  ac_cv_have_decl_sbrk=yes
10126else
10127  echo "$as_me: failed program was:" >&5
10128sed 's/^/| /' conftest.$ac_ext >&5
10129
10130ac_cv_have_decl_sbrk=no
10131fi
10132rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10133fi
10134echo "$as_me:$LINENO: result: $ac_cv_have_decl_sbrk" >&5
10135echo "${ECHO_T}$ac_cv_have_decl_sbrk" >&6
10136if test $ac_cv_have_decl_sbrk = yes; then
10137
10138cat >>confdefs.h <<_ACEOF
10139#define HAVE_DECL_SBRK 1
10140_ACEOF
10141
10142
10143else
10144  cat >>confdefs.h <<_ACEOF
10145#define HAVE_DECL_SBRK 0
10146_ACEOF
10147
10148
10149fi
10150echo "$as_me:$LINENO: checking whether getenv is declared" >&5
10151echo $ECHO_N "checking whether getenv is declared... $ECHO_C" >&6
10152if test "${ac_cv_have_decl_getenv+set}" = set; then
10153  echo $ECHO_N "(cached) $ECHO_C" >&6
10154else
10155  cat >conftest.$ac_ext <<_ACEOF
10156/* confdefs.h.  */
10157_ACEOF
10158cat confdefs.h >>conftest.$ac_ext
10159cat >>conftest.$ac_ext <<_ACEOF
10160/* end confdefs.h.  */
10161$ac_includes_default
10162int
10163main ()
10164{
10165#ifndef getenv
10166  char *p = (char *) getenv;
10167#endif
10168
10169  ;
10170  return 0;
10171}
10172_ACEOF
10173rm -f conftest.$ac_objext
10174if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10175  (eval $ac_compile) 2>conftest.er1
10176  ac_status=$?
10177  grep -v '^ *+' conftest.er1 >conftest.err
10178  rm -f conftest.er1
10179  cat conftest.err >&5
10180  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10181  (exit $ac_status); } &&
10182	 { ac_try='test -z "$ac_c_werror_flag"
10183			 || test ! -s conftest.err'
10184  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10185  (eval $ac_try) 2>&5
10186  ac_status=$?
10187  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10188  (exit $ac_status); }; } &&
10189	 { ac_try='test -s conftest.$ac_objext'
10190  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10191  (eval $ac_try) 2>&5
10192  ac_status=$?
10193  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10194  (exit $ac_status); }; }; then
10195  ac_cv_have_decl_getenv=yes
10196else
10197  echo "$as_me: failed program was:" >&5
10198sed 's/^/| /' conftest.$ac_ext >&5
10199
10200ac_cv_have_decl_getenv=no
10201fi
10202rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10203fi
10204echo "$as_me:$LINENO: result: $ac_cv_have_decl_getenv" >&5
10205echo "${ECHO_T}$ac_cv_have_decl_getenv" >&6
10206if test $ac_cv_have_decl_getenv = yes; then
10207
10208cat >>confdefs.h <<_ACEOF
10209#define HAVE_DECL_GETENV 1
10210_ACEOF
10211
10212
10213else
10214  cat >>confdefs.h <<_ACEOF
10215#define HAVE_DECL_GETENV 0
10216_ACEOF
10217
10218
10219fi
10220echo "$as_me:$LINENO: checking whether environ is declared" >&5
10221echo $ECHO_N "checking whether environ is declared... $ECHO_C" >&6
10222if test "${ac_cv_have_decl_environ+set}" = set; then
10223  echo $ECHO_N "(cached) $ECHO_C" >&6
10224else
10225  cat >conftest.$ac_ext <<_ACEOF
10226/* confdefs.h.  */
10227_ACEOF
10228cat confdefs.h >>conftest.$ac_ext
10229cat >>conftest.$ac_ext <<_ACEOF
10230/* end confdefs.h.  */
10231$ac_includes_default
10232int
10233main ()
10234{
10235#ifndef environ
10236  char *p = (char *) environ;
10237#endif
10238
10239  ;
10240  return 0;
10241}
10242_ACEOF
10243rm -f conftest.$ac_objext
10244if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10245  (eval $ac_compile) 2>conftest.er1
10246  ac_status=$?
10247  grep -v '^ *+' conftest.er1 >conftest.err
10248  rm -f conftest.er1
10249  cat conftest.err >&5
10250  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10251  (exit $ac_status); } &&
10252	 { ac_try='test -z "$ac_c_werror_flag"
10253			 || test ! -s conftest.err'
10254  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10255  (eval $ac_try) 2>&5
10256  ac_status=$?
10257  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10258  (exit $ac_status); }; } &&
10259	 { ac_try='test -s conftest.$ac_objext'
10260  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10261  (eval $ac_try) 2>&5
10262  ac_status=$?
10263  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10264  (exit $ac_status); }; }; then
10265  ac_cv_have_decl_environ=yes
10266else
10267  echo "$as_me: failed program was:" >&5
10268sed 's/^/| /' conftest.$ac_ext >&5
10269
10270ac_cv_have_decl_environ=no
10271fi
10272rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10273fi
10274echo "$as_me:$LINENO: result: $ac_cv_have_decl_environ" >&5
10275echo "${ECHO_T}$ac_cv_have_decl_environ" >&6
10276if test $ac_cv_have_decl_environ = yes; then
10277
10278cat >>confdefs.h <<_ACEOF
10279#define HAVE_DECL_ENVIRON 1
10280_ACEOF
10281
10282
10283else
10284  cat >>confdefs.h <<_ACEOF
10285#define HAVE_DECL_ENVIRON 0
10286_ACEOF
10287
10288
10289fi
10290echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
10291echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6
10292if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
10293  echo $ECHO_N "(cached) $ECHO_C" >&6
10294else
10295  cat >conftest.$ac_ext <<_ACEOF
10296/* confdefs.h.  */
10297_ACEOF
10298cat confdefs.h >>conftest.$ac_ext
10299cat >>conftest.$ac_ext <<_ACEOF
10300/* end confdefs.h.  */
10301$ac_includes_default
10302int
10303main ()
10304{
10305#ifndef getc_unlocked
10306  char *p = (char *) getc_unlocked;
10307#endif
10308
10309  ;
10310  return 0;
10311}
10312_ACEOF
10313rm -f conftest.$ac_objext
10314if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10315  (eval $ac_compile) 2>conftest.er1
10316  ac_status=$?
10317  grep -v '^ *+' conftest.er1 >conftest.err
10318  rm -f conftest.er1
10319  cat conftest.err >&5
10320  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10321  (exit $ac_status); } &&
10322	 { ac_try='test -z "$ac_c_werror_flag"
10323			 || test ! -s conftest.err'
10324  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10325  (eval $ac_try) 2>&5
10326  ac_status=$?
10327  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10328  (exit $ac_status); }; } &&
10329	 { ac_try='test -s conftest.$ac_objext'
10330  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10331  (eval $ac_try) 2>&5
10332  ac_status=$?
10333  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10334  (exit $ac_status); }; }; then
10335  ac_cv_have_decl_getc_unlocked=yes
10336else
10337  echo "$as_me: failed program was:" >&5
10338sed 's/^/| /' conftest.$ac_ext >&5
10339
10340ac_cv_have_decl_getc_unlocked=no
10341fi
10342rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10343fi
10344echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
10345echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6
10346if test $ac_cv_have_decl_getc_unlocked = yes; then
10347
10348cat >>confdefs.h <<_ACEOF
10349#define HAVE_DECL_GETC_UNLOCKED 1
10350_ACEOF
10351
10352
10353else
10354  cat >>confdefs.h <<_ACEOF
10355#define HAVE_DECL_GETC_UNLOCKED 0
10356_ACEOF
10357
10358
10359fi
10360echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
10361echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6
10362if test "${ac_cv_have_decl_snprintf+set}" = set; then
10363  echo $ECHO_N "(cached) $ECHO_C" >&6
10364else
10365  cat >conftest.$ac_ext <<_ACEOF
10366/* confdefs.h.  */
10367_ACEOF
10368cat confdefs.h >>conftest.$ac_ext
10369cat >>conftest.$ac_ext <<_ACEOF
10370/* end confdefs.h.  */
10371$ac_includes_default
10372int
10373main ()
10374{
10375#ifndef snprintf
10376  char *p = (char *) snprintf;
10377#endif
10378
10379  ;
10380  return 0;
10381}
10382_ACEOF
10383rm -f conftest.$ac_objext
10384if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10385  (eval $ac_compile) 2>conftest.er1
10386  ac_status=$?
10387  grep -v '^ *+' conftest.er1 >conftest.err
10388  rm -f conftest.er1
10389  cat conftest.err >&5
10390  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10391  (exit $ac_status); } &&
10392	 { ac_try='test -z "$ac_c_werror_flag"
10393			 || test ! -s conftest.err'
10394  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10395  (eval $ac_try) 2>&5
10396  ac_status=$?
10397  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10398  (exit $ac_status); }; } &&
10399	 { ac_try='test -s conftest.$ac_objext'
10400  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10401  (eval $ac_try) 2>&5
10402  ac_status=$?
10403  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10404  (exit $ac_status); }; }; then
10405  ac_cv_have_decl_snprintf=yes
10406else
10407  echo "$as_me: failed program was:" >&5
10408sed 's/^/| /' conftest.$ac_ext >&5
10409
10410ac_cv_have_decl_snprintf=no
10411fi
10412rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10413fi
10414echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
10415echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6
10416if test $ac_cv_have_decl_snprintf = yes; then
10417
10418cat >>confdefs.h <<_ACEOF
10419#define HAVE_DECL_SNPRINTF 1
10420_ACEOF
10421
10422
10423else
10424  cat >>confdefs.h <<_ACEOF
10425#define HAVE_DECL_SNPRINTF 0
10426_ACEOF
10427
10428
10429fi
10430echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
10431echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6
10432if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
10433  echo $ECHO_N "(cached) $ECHO_C" >&6
10434else
10435  cat >conftest.$ac_ext <<_ACEOF
10436/* confdefs.h.  */
10437_ACEOF
10438cat confdefs.h >>conftest.$ac_ext
10439cat >>conftest.$ac_ext <<_ACEOF
10440/* end confdefs.h.  */
10441$ac_includes_default
10442int
10443main ()
10444{
10445#ifndef vsnprintf
10446  char *p = (char *) vsnprintf;
10447#endif
10448
10449  ;
10450  return 0;
10451}
10452_ACEOF
10453rm -f conftest.$ac_objext
10454if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10455  (eval $ac_compile) 2>conftest.er1
10456  ac_status=$?
10457  grep -v '^ *+' conftest.er1 >conftest.err
10458  rm -f conftest.er1
10459  cat conftest.err >&5
10460  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10461  (exit $ac_status); } &&
10462	 { ac_try='test -z "$ac_c_werror_flag"
10463			 || test ! -s conftest.err'
10464  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10465  (eval $ac_try) 2>&5
10466  ac_status=$?
10467  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10468  (exit $ac_status); }; } &&
10469	 { ac_try='test -s conftest.$ac_objext'
10470  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10471  (eval $ac_try) 2>&5
10472  ac_status=$?
10473  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10474  (exit $ac_status); }; }; then
10475  ac_cv_have_decl_vsnprintf=yes
10476else
10477  echo "$as_me: failed program was:" >&5
10478sed 's/^/| /' conftest.$ac_ext >&5
10479
10480ac_cv_have_decl_vsnprintf=no
10481fi
10482rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10483fi
10484echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
10485echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6
10486if test $ac_cv_have_decl_vsnprintf = yes; then
10487
10488cat >>confdefs.h <<_ACEOF
10489#define HAVE_DECL_VSNPRINTF 1
10490_ACEOF
10491
10492
10493else
10494  cat >>confdefs.h <<_ACEOF
10495#define HAVE_DECL_VSNPRINTF 0
10496_ACEOF
10497
10498
10499fi
10500
10501
10502
10503
10504case "${host}" in
10505*-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*)
10506
10507cat >>confdefs.h <<\_ACEOF
10508#define USE_BINARY_FOPEN 1
10509_ACEOF
10510 ;;
10511esac
10512
10513# target-specific stuff:
10514
10515# Canonicalize the secondary target names.
10516if test -n "$enable_targets"; then
10517    for targ in `echo $enable_targets | sed 's/,/ /g'`
10518    do
10519	result=`$ac_config_sub $targ 2>/dev/null`
10520	if test -n "$result"; then
10521	    canon_targets="$canon_targets $result"
10522	else
10523	    # Allow targets that config.sub doesn't recognize, like "all".
10524	    canon_targets="$canon_targets $targ"
10525	fi
10526    done
10527fi
10528
10529all_targets=false
10530BUILD_NLMCONV=
10531NLMCONV_DEFS=
10532BUILD_SRCONV=
10533BUILD_DLLTOOL=
10534DLLTOOL_DEFS=
10535BUILD_WINDRES=
10536BUILD_DLLWRAP=
10537BUILD_MISC=
10538OBJDUMP_DEFS=
10539
10540for targ in $target $canon_targets
10541do
10542    if test "x$targ" = "xall"; then
10543        all_targets=true
10544	BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)'
10545	BUILD_SRCONV='$(SRCONV_PROG)'
10546	NLMCONV_DEFS="-DNLMCONV_I386 -DNLMCONV_ALPHA -DNLMCONV_POWERPC -DNLMCONV_SPARC"
10547    else
10548	case $targ in
10549	i[3-7]86*-*-netware*)
10550	  BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)'
10551	  NLMCONV_DEFS="$NLMCONV_DEFS -DNLMCONV_I386"
10552	  ;;
10553	alpha*-*-netware*)
10554	  BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)'
10555	  NLMCONV_DEFS="$NLMCONV_DEFS -DNLMCONV_ALPHA"
10556	  ;;
10557	powerpc*-*-netware*)
10558	  BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)'
10559	  NLMCONV_DEFS="$NLMCONV_DEFS -DNLMCONV_POWERPC"
10560	  ;;
10561	sparc*-*-netware*)
10562	  BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)'
10563	  NLMCONV_DEFS="$NLMCONV_DEFS -DNLMCONV_SPARC"
10564	  ;;
10565	esac
10566	case $targ in
10567	*-*-hms*) BUILD_SRCONV='$(SRCONV_PROG)' ;;
10568	esac
10569	case $targ in
10570	arm-epoc-pe*)
10571  	  BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
10572	  DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_ARM_EPOC -DDLLTOOL_ARM"
10573	  BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
10574	  ;;
10575	arm-*-pe* | arm-*-wince)
10576  	  BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
10577	  DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_ARM"
10578	  BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
10579	  ;;
10580	thumb-*-pe*)
10581  	  BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
10582	  DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_ARM"
10583	  BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
10584	  ;;
10585	i[3-7]86-*-pe* | i[3-7]86-*-cygwin* | i[3-7]86-*-mingw32** | i[3-7]86-*-netbsdpe*)
10586  	  BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
10587	  DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_I386"
10588	  BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
10589	  BUILD_DLLWRAP='$(DLLWRAP_PROG)$(EXEEXT)'
10590	  ;;
10591	i[3-7]86-*-interix)
10592	  BUILD_DLLTOOL='$(DLLTOOL_PROG)'
10593	  DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_I386"
10594	  ;;
10595	powerpc*-aix5.[01])
10596	  ;;
10597	powerpc*-aix5.*)
10598	  OBJDUMP_DEFS="-DAIX_WEAK_SUPPORT"
10599	  ;;
10600	powerpc*-*-pe* | powerpc*-*-cygwin*)
10601  	  BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
10602	  DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_PPC"
10603	  BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
10604	  ;;
10605	sh*-*-pe)
10606  	  BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
10607	  DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_SH"
10608	  BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
10609	  ;;
10610	mips*-*-pe)
10611  	  BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
10612	  DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_MIPS"
10613	  BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
10614	  ;;
10615	mcore-*-pe)
10616  	  BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
10617	  DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_MCORE"
10618	  BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
10619	  ;;
10620	mcore-*-elf)
10621  	  BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
10622	  DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_MCORE_ELF"
10623	  ;;
10624	esac
10625    fi
10626done
10627
10628if test "${with_windres+set}" = set; then
10629	  BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
10630fi
10631
10632
10633
10634
10635
10636
10637
10638
10639
10640
10641
10642
10643cat >>confdefs.h <<_ACEOF
10644#define TARGET "${target}"
10645_ACEOF
10646
10647
10648targ=$target
10649. $srcdir/../bfd/config.bfd
10650if test "x$targ_underscore" = "xyes"; then
10651    UNDERSCORE=1
10652else
10653    UNDERSCORE=0
10654fi
10655
10656cat >>confdefs.h <<_ACEOF
10657#define TARGET_PREPENDS_UNDERSCORE $UNDERSCORE
10658_ACEOF
10659
10660
10661# Emulation
10662for targ_alias in `echo $target_alias $enable_targets | sed 's/,/ /g'`
10663do
10664  # Canonicalize the secondary target names.
10665 result=`$ac_config_sub $targ_alias 2>/dev/null`
10666 if test -n "$result"; then
10667   targ=$result
10668 else
10669   targ=$targ_alias
10670 fi
10671
10672 . ${srcdir}/configure.tgt
10673
10674  EMULATION=$targ_emul
10675  EMULATION_VECTOR=$targ_emul_vector
10676done
10677
10678
10679
10680
10681# Required for html and install-html
10682
10683
10684
10685
10686                              ac_config_files="$ac_config_files Makefile doc/Makefile po/Makefile.in:po/Make-in"
10687          ac_config_commands="$ac_config_commands default"
10688cat >confcache <<\_ACEOF
10689# This file is a shell script that caches the results of configure
10690# tests run on this system so they can be shared between configure
10691# scripts and configure runs, see configure's option --config-cache.
10692# It is not useful on other systems.  If it contains results you don't
10693# want to keep, you may remove or edit it.
10694#
10695# config.status only pays attention to the cache file if you give it
10696# the --recheck option to rerun configure.
10697#
10698# `ac_cv_env_foo' variables (set or unset) will be overridden when
10699# loading this file, other *unset* `ac_cv_foo' will be assigned the
10700# following values.
10701
10702_ACEOF
10703
10704# The following way of writing the cache mishandles newlines in values,
10705# but we know of no workaround that is simple, portable, and efficient.
10706# So, don't put newlines in cache variables' values.
10707# Ultrix sh set writes to stderr and can't be redirected directly,
10708# and sets the high bit in the cache file unless we assign to the vars.
10709{
10710  (set) 2>&1 |
10711    case `(ac_space=' '; set | grep ac_space) 2>&1` in
10712    *ac_space=\ *)
10713      # `set' does not quote correctly, so add quotes (double-quote
10714      # substitution turns \\\\ into \\, and sed turns \\ into \).
10715      sed -n \
10716	"s/'/'\\\\''/g;
10717	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10718      ;;
10719    *)
10720      # `set' quotes correctly as required by POSIX, so do not add quotes.
10721      sed -n \
10722	"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
10723      ;;
10724    esac;
10725} |
10726  sed '
10727     t clear
10728     : clear
10729     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10730     t end
10731     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10732     : end' >>confcache
10733if diff $cache_file confcache >/dev/null 2>&1; then :; else
10734  if test -w $cache_file; then
10735    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
10736    cat confcache >$cache_file
10737  else
10738    echo "not updating unwritable cache $cache_file"
10739  fi
10740fi
10741rm -f confcache
10742
10743test "x$prefix" = xNONE && prefix=$ac_default_prefix
10744# Let make expand exec_prefix.
10745test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10746
10747# VPATH may cause trouble with some makes, so we remove $(srcdir),
10748# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
10749# trailing colons and then remove the whole line if VPATH becomes empty
10750# (actually we leave an empty line to preserve line numbers).
10751if test "x$srcdir" = x.; then
10752  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
10753s/:*\$(srcdir):*/:/;
10754s/:*\${srcdir}:*/:/;
10755s/:*@srcdir@:*/:/;
10756s/^\([^=]*=[	 ]*\):*/\1/;
10757s/:*$//;
10758s/^[^=]*=[	 ]*$//;
10759}'
10760fi
10761
10762DEFS=-DHAVE_CONFIG_H
10763
10764ac_libobjs=
10765ac_ltlibobjs=
10766for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10767  # 1. Remove the extension, and $U if already installed.
10768  ac_i=`echo "$ac_i" |
10769	 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
10770  # 2. Add them.
10771  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
10772  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
10773done
10774LIBOBJS=$ac_libobjs
10775
10776LTLIBOBJS=$ac_ltlibobjs
10777
10778
10779if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
10780  { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
10781Usually this means the macro was only invoked conditionally." >&5
10782echo "$as_me: error: conditional \"AMDEP\" was never defined.
10783Usually this means the macro was only invoked conditionally." >&2;}
10784   { (exit 1); exit 1; }; }
10785fi
10786if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
10787  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
10788Usually this means the macro was only invoked conditionally." >&5
10789echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
10790Usually this means the macro was only invoked conditionally." >&2;}
10791   { (exit 1); exit 1; }; }
10792fi
10793if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
10794  { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
10795Usually this means the macro was only invoked conditionally." >&5
10796echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
10797Usually this means the macro was only invoked conditionally." >&2;}
10798   { (exit 1); exit 1; }; }
10799fi
10800
10801: ${CONFIG_STATUS=./config.status}
10802ac_clean_files_save=$ac_clean_files
10803ac_clean_files="$ac_clean_files $CONFIG_STATUS"
10804{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
10805echo "$as_me: creating $CONFIG_STATUS" >&6;}
10806cat >$CONFIG_STATUS <<_ACEOF
10807#! $SHELL
10808# Generated by $as_me.
10809# Run this file to recreate the current configuration.
10810# Compiler output produced by configure, useful for debugging
10811# configure, is in config.log if it exists.
10812
10813debug=false
10814ac_cs_recheck=false
10815ac_cs_silent=false
10816SHELL=\${CONFIG_SHELL-$SHELL}
10817_ACEOF
10818
10819cat >>$CONFIG_STATUS <<\_ACEOF
10820## --------------------- ##
10821## M4sh Initialization.  ##
10822## --------------------- ##
10823
10824# Be Bourne compatible
10825if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
10826  emulate sh
10827  NULLCMD=:
10828  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
10829  # is contrary to our usage.  Disable this feature.
10830  alias -g '${1+"$@"}'='"$@"'
10831elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
10832  set -o posix
10833fi
10834DUALCASE=1; export DUALCASE # for MKS sh
10835
10836# Support unset when possible.
10837if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
10838  as_unset=unset
10839else
10840  as_unset=false
10841fi
10842
10843
10844# Work around bugs in pre-3.0 UWIN ksh.
10845$as_unset ENV MAIL MAILPATH
10846PS1='$ '
10847PS2='> '
10848PS4='+ '
10849
10850# NLS nuisances.
10851for as_var in \
10852  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
10853  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
10854  LC_TELEPHONE LC_TIME
10855do
10856  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
10857    eval $as_var=C; export $as_var
10858  else
10859    $as_unset $as_var
10860  fi
10861done
10862
10863# Required to use basename.
10864if expr a : '\(a\)' >/dev/null 2>&1; then
10865  as_expr=expr
10866else
10867  as_expr=false
10868fi
10869
10870if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
10871  as_basename=basename
10872else
10873  as_basename=false
10874fi
10875
10876
10877# Name of the executable.
10878as_me=`$as_basename "$0" ||
10879$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
10880	 X"$0" : 'X\(//\)$' \| \
10881	 X"$0" : 'X\(/\)$' \| \
10882	 .     : '\(.\)' 2>/dev/null ||
10883echo X/"$0" |
10884    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
10885  	  /^X\/\(\/\/\)$/{ s//\1/; q; }
10886  	  /^X\/\(\/\).*/{ s//\1/; q; }
10887  	  s/.*/./; q'`
10888
10889
10890# PATH needs CR, and LINENO needs CR and PATH.
10891# Avoid depending upon Character Ranges.
10892as_cr_letters='abcdefghijklmnopqrstuvwxyz'
10893as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
10894as_cr_Letters=$as_cr_letters$as_cr_LETTERS
10895as_cr_digits='0123456789'
10896as_cr_alnum=$as_cr_Letters$as_cr_digits
10897
10898# The user is always right.
10899if test "${PATH_SEPARATOR+set}" != set; then
10900  echo "#! /bin/sh" >conf$$.sh
10901  echo  "exit 0"   >>conf$$.sh
10902  chmod +x conf$$.sh
10903  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10904    PATH_SEPARATOR=';'
10905  else
10906    PATH_SEPARATOR=:
10907  fi
10908  rm -f conf$$.sh
10909fi
10910
10911
10912  as_lineno_1=$LINENO
10913  as_lineno_2=$LINENO
10914  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
10915  test "x$as_lineno_1" != "x$as_lineno_2" &&
10916  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
10917  # Find who we are.  Look in the path if we contain no path at all
10918  # relative or not.
10919  case $0 in
10920    *[\\/]* ) as_myself=$0 ;;
10921    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10922for as_dir in $PATH
10923do
10924  IFS=$as_save_IFS
10925  test -z "$as_dir" && as_dir=.
10926  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
10927done
10928
10929       ;;
10930  esac
10931  # We did not find ourselves, most probably we were run as `sh COMMAND'
10932  # in which case we are not to be found in the path.
10933  if test "x$as_myself" = x; then
10934    as_myself=$0
10935  fi
10936  if test ! -f "$as_myself"; then
10937    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
10938echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
10939   { (exit 1); exit 1; }; }
10940  fi
10941  case $CONFIG_SHELL in
10942  '')
10943    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10944for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
10945do
10946  IFS=$as_save_IFS
10947  test -z "$as_dir" && as_dir=.
10948  for as_base in sh bash ksh sh5; do
10949	 case $as_dir in
10950	 /*)
10951	   if ("$as_dir/$as_base" -c '
10952  as_lineno_1=$LINENO
10953  as_lineno_2=$LINENO
10954  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
10955  test "x$as_lineno_1" != "x$as_lineno_2" &&
10956  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
10957	     $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
10958	     $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
10959	     CONFIG_SHELL=$as_dir/$as_base
10960	     export CONFIG_SHELL
10961	     exec "$CONFIG_SHELL" "$0" ${1+"$@"}
10962	   fi;;
10963	 esac
10964       done
10965done
10966;;
10967  esac
10968
10969  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
10970  # uniformly replaced by the line number.  The first 'sed' inserts a
10971  # line-number line before each line; the second 'sed' does the real
10972  # work.  The second script uses 'N' to pair each line-number line
10973  # with the numbered line, and appends trailing '-' during
10974  # substitution so that $LINENO is not a special case at line end.
10975  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
10976  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
10977  sed '=' <$as_myself |
10978    sed '
10979      N
10980      s,$,-,
10981      : loop
10982      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
10983      t loop
10984      s,-$,,
10985      s,^['$as_cr_digits']*\n,,
10986    ' >$as_me.lineno &&
10987  chmod +x $as_me.lineno ||
10988    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
10989echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
10990   { (exit 1); exit 1; }; }
10991
10992  # Don't try to exec as it changes $[0], causing all sort of problems
10993  # (the dirname of $[0] is not the place where we might find the
10994  # original and so on.  Autoconf is especially sensible to this).
10995  . ./$as_me.lineno
10996  # Exit status is that of the last command.
10997  exit
10998}
10999
11000
11001case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
11002  *c*,-n*) ECHO_N= ECHO_C='
11003' ECHO_T='	' ;;
11004  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
11005  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
11006esac
11007
11008if expr a : '\(a\)' >/dev/null 2>&1; then
11009  as_expr=expr
11010else
11011  as_expr=false
11012fi
11013
11014rm -f conf$$ conf$$.exe conf$$.file
11015echo >conf$$.file
11016if ln -s conf$$.file conf$$ 2>/dev/null; then
11017  # We could just check for DJGPP; but this test a) works b) is more generic
11018  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
11019  if test -f conf$$.exe; then
11020    # Don't use ln at all; we don't have any links
11021    as_ln_s='cp -p'
11022  else
11023    as_ln_s='ln -s'
11024  fi
11025elif ln conf$$.file conf$$ 2>/dev/null; then
11026  as_ln_s=ln
11027else
11028  as_ln_s='cp -p'
11029fi
11030rm -f conf$$ conf$$.exe conf$$.file
11031
11032if mkdir -p . 2>/dev/null; then
11033  as_mkdir_p=:
11034else
11035  test -d ./-p && rmdir ./-p
11036  as_mkdir_p=false
11037fi
11038
11039as_executable_p="test -f"
11040
11041# Sed expression to map a string onto a valid CPP name.
11042as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11043
11044# Sed expression to map a string onto a valid variable name.
11045as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11046
11047
11048# IFS
11049# We need space, tab and new line, in precisely that order.
11050as_nl='
11051'
11052IFS=" 	$as_nl"
11053
11054# CDPATH.
11055$as_unset CDPATH
11056
11057exec 6>&1
11058
11059# Open the log real soon, to keep \$[0] and so on meaningful, and to
11060# report actual input values of CONFIG_FILES etc. instead of their
11061# values after options handling.  Logging --version etc. is OK.
11062exec 5>>config.log
11063{
11064  echo
11065  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11066## Running $as_me. ##
11067_ASBOX
11068} >&5
11069cat >&5 <<_CSEOF
11070
11071This file was extended by $as_me, which was
11072generated by GNU Autoconf 2.59.  Invocation command line was
11073
11074  CONFIG_FILES    = $CONFIG_FILES
11075  CONFIG_HEADERS  = $CONFIG_HEADERS
11076  CONFIG_LINKS    = $CONFIG_LINKS
11077  CONFIG_COMMANDS = $CONFIG_COMMANDS
11078  $ $0 $@
11079
11080_CSEOF
11081echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
11082echo >&5
11083_ACEOF
11084
11085# Files that config.status was made for.
11086if test -n "$ac_config_files"; then
11087  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
11088fi
11089
11090if test -n "$ac_config_headers"; then
11091  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
11092fi
11093
11094if test -n "$ac_config_links"; then
11095  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
11096fi
11097
11098if test -n "$ac_config_commands"; then
11099  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
11100fi
11101
11102cat >>$CONFIG_STATUS <<\_ACEOF
11103
11104ac_cs_usage="\
11105\`$as_me' instantiates files from templates according to the
11106current configuration.
11107
11108Usage: $0 [OPTIONS] [FILE]...
11109
11110  -h, --help       print this help, then exit
11111  -V, --version    print version number, then exit
11112  -q, --quiet      do not print progress messages
11113  -d, --debug      don't remove temporary files
11114      --recheck    update $as_me by reconfiguring in the same conditions
11115  --file=FILE[:TEMPLATE]
11116		   instantiate the configuration file FILE
11117  --header=FILE[:TEMPLATE]
11118		   instantiate the configuration header FILE
11119
11120Configuration files:
11121$config_files
11122
11123Configuration headers:
11124$config_headers
11125
11126Configuration commands:
11127$config_commands
11128
11129Report bugs to <bug-autoconf@gnu.org>."
11130_ACEOF
11131
11132cat >>$CONFIG_STATUS <<_ACEOF
11133ac_cs_version="\\
11134config.status
11135configured by $0, generated by GNU Autoconf 2.59,
11136  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
11137
11138Copyright (C) 2003 Free Software Foundation, Inc.
11139This config.status script is free software; the Free Software Foundation
11140gives unlimited permission to copy, distribute and modify it."
11141srcdir=$srcdir
11142INSTALL="$INSTALL"
11143_ACEOF
11144
11145cat >>$CONFIG_STATUS <<\_ACEOF
11146# If no file are specified by the user, then we need to provide default
11147# value.  By we need to know if files were specified by the user.
11148ac_need_defaults=:
11149while test $# != 0
11150do
11151  case $1 in
11152  --*=*)
11153    ac_option=`expr "x$1" : 'x\([^=]*\)='`
11154    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
11155    ac_shift=:
11156    ;;
11157  -*)
11158    ac_option=$1
11159    ac_optarg=$2
11160    ac_shift=shift
11161    ;;
11162  *) # This is not an option, so the user has probably given explicit
11163     # arguments.
11164     ac_option=$1
11165     ac_need_defaults=false;;
11166  esac
11167
11168  case $ac_option in
11169  # Handling of the options.
11170_ACEOF
11171cat >>$CONFIG_STATUS <<\_ACEOF
11172  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11173    ac_cs_recheck=: ;;
11174  --version | --vers* | -V )
11175    echo "$ac_cs_version"; exit 0 ;;
11176  --he | --h)
11177    # Conflict between --help and --header
11178    { { echo "$as_me:$LINENO: error: ambiguous option: $1
11179Try \`$0 --help' for more information." >&5
11180echo "$as_me: error: ambiguous option: $1
11181Try \`$0 --help' for more information." >&2;}
11182   { (exit 1); exit 1; }; };;
11183  --help | --hel | -h )
11184    echo "$ac_cs_usage"; exit 0 ;;
11185  --debug | --d* | -d )
11186    debug=: ;;
11187  --file | --fil | --fi | --f )
11188    $ac_shift
11189    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
11190    ac_need_defaults=false;;
11191  --header | --heade | --head | --hea )
11192    $ac_shift
11193    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
11194    ac_need_defaults=false;;
11195  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11196  | -silent | --silent | --silen | --sile | --sil | --si | --s)
11197    ac_cs_silent=: ;;
11198
11199  # This is an error.
11200  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
11201Try \`$0 --help' for more information." >&5
11202echo "$as_me: error: unrecognized option: $1
11203Try \`$0 --help' for more information." >&2;}
11204   { (exit 1); exit 1; }; } ;;
11205
11206  *) ac_config_targets="$ac_config_targets $1" ;;
11207
11208  esac
11209  shift
11210done
11211
11212ac_configure_extra_args=
11213
11214if $ac_cs_silent; then
11215  exec 6>/dev/null
11216  ac_configure_extra_args="$ac_configure_extra_args --silent"
11217fi
11218
11219_ACEOF
11220cat >>$CONFIG_STATUS <<_ACEOF
11221if \$ac_cs_recheck; then
11222  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
11223  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11224fi
11225
11226_ACEOF
11227
11228cat >>$CONFIG_STATUS <<_ACEOF
11229#
11230# INIT-COMMANDS section.
11231#
11232
11233AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
11234
11235_ACEOF
11236
11237
11238
11239cat >>$CONFIG_STATUS <<\_ACEOF
11240for ac_config_target in $ac_config_targets
11241do
11242  case "$ac_config_target" in
11243  # Handling of arguments.
11244  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11245  "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
11246  "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
11247  "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
11248  "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
11249  "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
11250  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
11251echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
11252   { (exit 1); exit 1; }; };;
11253  esac
11254done
11255
11256# If the user did not use the arguments to specify the items to instantiate,
11257# then the envvar interface is used.  Set only those that are not.
11258# We use the long form for the default assignment because of an extremely
11259# bizarre bug on SunOS 4.1.3.
11260if $ac_need_defaults; then
11261  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11262  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11263  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
11264fi
11265
11266# Have a temporary directory for convenience.  Make it in the build tree
11267# simply because there is no reason to put it here, and in addition,
11268# creating and moving files from /tmp can sometimes cause problems.
11269# Create a temporary directory, and hook for its removal unless debugging.
11270$debug ||
11271{
11272  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
11273  trap '{ (exit 1); exit 1; }' 1 2 13 15
11274}
11275
11276# Create a (secure) tmp directory for tmp files.
11277
11278{
11279  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
11280  test -n "$tmp" && test -d "$tmp"
11281}  ||
11282{
11283  tmp=./confstat$$-$RANDOM
11284  (umask 077 && mkdir $tmp)
11285} ||
11286{
11287   echo "$me: cannot create a temporary directory in ." >&2
11288   { (exit 1); exit 1; }
11289}
11290
11291_ACEOF
11292
11293cat >>$CONFIG_STATUS <<_ACEOF
11294
11295#
11296# CONFIG_FILES section.
11297#
11298
11299# No need to generate the scripts if there are no CONFIG_FILES.
11300# This happens for instance when ./config.status config.h
11301if test -n "\$CONFIG_FILES"; then
11302  # Protect against being on the right side of a sed subst in config.status.
11303  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
11304   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
11305s,@SHELL@,$SHELL,;t t
11306s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
11307s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
11308s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
11309s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
11310s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
11311s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
11312s,@exec_prefix@,$exec_prefix,;t t
11313s,@prefix@,$prefix,;t t
11314s,@program_transform_name@,$program_transform_name,;t t
11315s,@bindir@,$bindir,;t t
11316s,@sbindir@,$sbindir,;t t
11317s,@libexecdir@,$libexecdir,;t t
11318s,@datadir@,$datadir,;t t
11319s,@sysconfdir@,$sysconfdir,;t t
11320s,@sharedstatedir@,$sharedstatedir,;t t
11321s,@localstatedir@,$localstatedir,;t t
11322s,@libdir@,$libdir,;t t
11323s,@includedir@,$includedir,;t t
11324s,@oldincludedir@,$oldincludedir,;t t
11325s,@infodir@,$infodir,;t t
11326s,@mandir@,$mandir,;t t
11327s,@build_alias@,$build_alias,;t t
11328s,@host_alias@,$host_alias,;t t
11329s,@target_alias@,$target_alias,;t t
11330s,@DEFS@,$DEFS,;t t
11331s,@ECHO_C@,$ECHO_C,;t t
11332s,@ECHO_N@,$ECHO_N,;t t
11333s,@ECHO_T@,$ECHO_T,;t t
11334s,@LIBS@,$LIBS,;t t
11335s,@build@,$build,;t t
11336s,@build_cpu@,$build_cpu,;t t
11337s,@build_vendor@,$build_vendor,;t t
11338s,@build_os@,$build_os,;t t
11339s,@host@,$host,;t t
11340s,@host_cpu@,$host_cpu,;t t
11341s,@host_vendor@,$host_vendor,;t t
11342s,@host_os@,$host_os,;t t
11343s,@target@,$target,;t t
11344s,@target_cpu@,$target_cpu,;t t
11345s,@target_vendor@,$target_vendor,;t t
11346s,@target_os@,$target_os,;t t
11347s,@CC@,$CC,;t t
11348s,@CFLAGS@,$CFLAGS,;t t
11349s,@LDFLAGS@,$LDFLAGS,;t t
11350s,@CPPFLAGS@,$CPPFLAGS,;t t
11351s,@ac_ct_CC@,$ac_ct_CC,;t t
11352s,@EXEEXT@,$EXEEXT,;t t
11353s,@OBJEXT@,$OBJEXT,;t t
11354s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
11355s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
11356s,@INSTALL_DATA@,$INSTALL_DATA,;t t
11357s,@CYGPATH_W@,$CYGPATH_W,;t t
11358s,@PACKAGE@,$PACKAGE,;t t
11359s,@VERSION@,$VERSION,;t t
11360s,@ACLOCAL@,$ACLOCAL,;t t
11361s,@AUTOCONF@,$AUTOCONF,;t t
11362s,@AUTOMAKE@,$AUTOMAKE,;t t
11363s,@AUTOHEADER@,$AUTOHEADER,;t t
11364s,@MAKEINFO@,$MAKEINFO,;t t
11365s,@install_sh@,$install_sh,;t t
11366s,@STRIP@,$STRIP,;t t
11367s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
11368s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
11369s,@mkdir_p@,$mkdir_p,;t t
11370s,@AWK@,$AWK,;t t
11371s,@SET_MAKE@,$SET_MAKE,;t t
11372s,@am__leading_dot@,$am__leading_dot,;t t
11373s,@AMTAR@,$AMTAR,;t t
11374s,@am__tar@,$am__tar,;t t
11375s,@am__untar@,$am__untar,;t t
11376s,@DEPDIR@,$DEPDIR,;t t
11377s,@am__include@,$am__include,;t t
11378s,@am__quote@,$am__quote,;t t
11379s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
11380s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
11381s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
11382s,@CCDEPMODE@,$CCDEPMODE,;t t
11383s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
11384s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
11385s,@LN_S@,$LN_S,;t t
11386s,@RANLIB@,$RANLIB,;t t
11387s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
11388s,@LIBTOOL@,$LIBTOOL,;t t
11389s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
11390s,@NO_WERROR@,$NO_WERROR,;t t
11391s,@YACC@,$YACC,;t t
11392s,@LEX@,$LEX,;t t
11393s,@LEXLIB@,$LEXLIB,;t t
11394s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
11395s,@CPP@,$CPP,;t t
11396s,@EGREP@,$EGREP,;t t
11397s,@ALLOCA@,$ALLOCA,;t t
11398s,@USE_NLS@,$USE_NLS,;t t
11399s,@MSGFMT@,$MSGFMT,;t t
11400s,@GMSGFMT@,$GMSGFMT,;t t
11401s,@XGETTEXT@,$XGETTEXT,;t t
11402s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
11403s,@CATALOGS@,$CATALOGS,;t t
11404s,@CATOBJEXT@,$CATOBJEXT,;t t
11405s,@DATADIRNAME@,$DATADIRNAME,;t t
11406s,@GMOFILES@,$GMOFILES,;t t
11407s,@INSTOBJEXT@,$INSTOBJEXT,;t t
11408s,@INTLDEPS@,$INTLDEPS,;t t
11409s,@INTLLIBS@,$INTLLIBS,;t t
11410s,@INTLOBJS@,$INTLOBJS,;t t
11411s,@POFILES@,$POFILES,;t t
11412s,@POSUB@,$POSUB,;t t
11413s,@INCLUDE_LOCALE_H@,$INCLUDE_LOCALE_H,;t t
11414s,@GT_NO@,$GT_NO,;t t
11415s,@GT_YES@,$GT_YES,;t t
11416s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
11417s,@l@,$l,;t t
11418s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
11419s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
11420s,@MAINT@,$MAINT,;t t
11421s,@HDEFINES@,$HDEFINES,;t t
11422s,@AR@,$AR,;t t
11423s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
11424s,@EXEEXT_FOR_BUILD@,$EXEEXT_FOR_BUILD,;t t
11425s,@DEMANGLER_NAME@,$DEMANGLER_NAME,;t t
11426s,@NLMCONV_DEFS@,$NLMCONV_DEFS,;t t
11427s,@BUILD_NLMCONV@,$BUILD_NLMCONV,;t t
11428s,@BUILD_SRCONV@,$BUILD_SRCONV,;t t
11429s,@BUILD_DLLTOOL@,$BUILD_DLLTOOL,;t t
11430s,@DLLTOOL_DEFS@,$DLLTOOL_DEFS,;t t
11431s,@BUILD_WINDRES@,$BUILD_WINDRES,;t t
11432s,@BUILD_DLLWRAP@,$BUILD_DLLWRAP,;t t
11433s,@BUILD_MISC@,$BUILD_MISC,;t t
11434s,@OBJDUMP_DEFS@,$OBJDUMP_DEFS,;t t
11435s,@EMULATION@,$EMULATION,;t t
11436s,@EMULATION_VECTOR@,$EMULATION_VECTOR,;t t
11437s,@datarootdir@,$datarootdir,;t t
11438s,@docdir@,$docdir,;t t
11439s,@htmldir@,$htmldir,;t t
11440s,@LIBOBJS@,$LIBOBJS,;t t
11441s,@LTLIBOBJS@,$LTLIBOBJS,;t t
11442CEOF
11443
11444_ACEOF
11445
11446  cat >>$CONFIG_STATUS <<\_ACEOF
11447  # Split the substitutions into bite-sized pieces for seds with
11448  # small command number limits, like on Digital OSF/1 and HP-UX.
11449  ac_max_sed_lines=48
11450  ac_sed_frag=1 # Number of current file.
11451  ac_beg=1 # First line for current file.
11452  ac_end=$ac_max_sed_lines # Line after last line for current file.
11453  ac_more_lines=:
11454  ac_sed_cmds=
11455  while $ac_more_lines; do
11456    if test $ac_beg -gt 1; then
11457      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
11458    else
11459      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
11460    fi
11461    if test ! -s $tmp/subs.frag; then
11462      ac_more_lines=false
11463    else
11464      # The purpose of the label and of the branching condition is to
11465      # speed up the sed processing (if there are no `@' at all, there
11466      # is no need to browse any of the substitutions).
11467      # These are the two extra sed commands mentioned above.
11468      (echo ':t
11469  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
11470      if test -z "$ac_sed_cmds"; then
11471	ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
11472      else
11473	ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
11474      fi
11475      ac_sed_frag=`expr $ac_sed_frag + 1`
11476      ac_beg=$ac_end
11477      ac_end=`expr $ac_end + $ac_max_sed_lines`
11478    fi
11479  done
11480  if test -z "$ac_sed_cmds"; then
11481    ac_sed_cmds=cat
11482  fi
11483fi # test -n "$CONFIG_FILES"
11484
11485_ACEOF
11486cat >>$CONFIG_STATUS <<\_ACEOF
11487for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
11488  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
11489  case $ac_file in
11490  - | *:- | *:-:* ) # input from stdin
11491	cat >$tmp/stdin
11492	ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11493	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11494  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11495	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11496  * )   ac_file_in=$ac_file.in ;;
11497  esac
11498
11499  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
11500  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
11501$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11502	 X"$ac_file" : 'X\(//\)[^/]' \| \
11503	 X"$ac_file" : 'X\(//\)$' \| \
11504	 X"$ac_file" : 'X\(/\)' \| \
11505	 .     : '\(.\)' 2>/dev/null ||
11506echo X"$ac_file" |
11507    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11508  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11509  	  /^X\(\/\/\)$/{ s//\1/; q; }
11510  	  /^X\(\/\).*/{ s//\1/; q; }
11511  	  s/.*/./; q'`
11512  { if $as_mkdir_p; then
11513    mkdir -p "$ac_dir"
11514  else
11515    as_dir="$ac_dir"
11516    as_dirs=
11517    while test ! -d "$as_dir"; do
11518      as_dirs="$as_dir $as_dirs"
11519      as_dir=`(dirname "$as_dir") 2>/dev/null ||
11520$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11521	 X"$as_dir" : 'X\(//\)[^/]' \| \
11522	 X"$as_dir" : 'X\(//\)$' \| \
11523	 X"$as_dir" : 'X\(/\)' \| \
11524	 .     : '\(.\)' 2>/dev/null ||
11525echo X"$as_dir" |
11526    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11527  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11528  	  /^X\(\/\/\)$/{ s//\1/; q; }
11529  	  /^X\(\/\).*/{ s//\1/; q; }
11530  	  s/.*/./; q'`
11531    done
11532    test ! -n "$as_dirs" || mkdir $as_dirs
11533  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
11534echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
11535   { (exit 1); exit 1; }; }; }
11536
11537  ac_builddir=.
11538
11539if test "$ac_dir" != .; then
11540  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
11541  # A "../" for each directory in $ac_dir_suffix.
11542  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
11543else
11544  ac_dir_suffix= ac_top_builddir=
11545fi
11546
11547case $srcdir in
11548  .)  # No --srcdir option.  We are building in place.
11549    ac_srcdir=.
11550    if test -z "$ac_top_builddir"; then
11551       ac_top_srcdir=.
11552    else
11553       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
11554    fi ;;
11555  [\\/]* | ?:[\\/]* )  # Absolute path.
11556    ac_srcdir=$srcdir$ac_dir_suffix;
11557    ac_top_srcdir=$srcdir ;;
11558  *) # Relative path.
11559    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
11560    ac_top_srcdir=$ac_top_builddir$srcdir ;;
11561esac
11562
11563# Do not use `cd foo && pwd` to compute absolute paths, because
11564# the directories may not exist.
11565case `pwd` in
11566.) ac_abs_builddir="$ac_dir";;
11567*)
11568  case "$ac_dir" in
11569  .) ac_abs_builddir=`pwd`;;
11570  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
11571  *) ac_abs_builddir=`pwd`/"$ac_dir";;
11572  esac;;
11573esac
11574case $ac_abs_builddir in
11575.) ac_abs_top_builddir=${ac_top_builddir}.;;
11576*)
11577  case ${ac_top_builddir}. in
11578  .) ac_abs_top_builddir=$ac_abs_builddir;;
11579  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
11580  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
11581  esac;;
11582esac
11583case $ac_abs_builddir in
11584.) ac_abs_srcdir=$ac_srcdir;;
11585*)
11586  case $ac_srcdir in
11587  .) ac_abs_srcdir=$ac_abs_builddir;;
11588  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
11589  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
11590  esac;;
11591esac
11592case $ac_abs_builddir in
11593.) ac_abs_top_srcdir=$ac_top_srcdir;;
11594*)
11595  case $ac_top_srcdir in
11596  .) ac_abs_top_srcdir=$ac_abs_builddir;;
11597  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
11598  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
11599  esac;;
11600esac
11601
11602
11603  case $INSTALL in
11604  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
11605  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
11606  esac
11607
11608  if test x"$ac_file" != x-; then
11609    { echo "$as_me:$LINENO: creating $ac_file" >&5
11610echo "$as_me: creating $ac_file" >&6;}
11611    rm -f "$ac_file"
11612  fi
11613  # Let's still pretend it is `configure' which instantiates (i.e., don't
11614  # use $as_me), people would be surprised to read:
11615  #    /* config.h.  Generated by config.status.  */
11616  if test x"$ac_file" = x-; then
11617    configure_input=
11618  else
11619    configure_input="$ac_file.  "
11620  fi
11621  configure_input=$configure_input"Generated from `echo $ac_file_in |
11622				     sed 's,.*/,,'` by configure."
11623
11624  # First look for the input files in the build tree, otherwise in the
11625  # src tree.
11626  ac_file_inputs=`IFS=:
11627    for f in $ac_file_in; do
11628      case $f in
11629      -) echo $tmp/stdin ;;
11630      [\\/$]*)
11631	 # Absolute (can't be DOS-style, as IFS=:)
11632	 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11633echo "$as_me: error: cannot find input file: $f" >&2;}
11634   { (exit 1); exit 1; }; }
11635	 echo "$f";;
11636      *) # Relative
11637	 if test -f "$f"; then
11638	   # Build tree
11639	   echo "$f"
11640	 elif test -f "$srcdir/$f"; then
11641	   # Source tree
11642	   echo "$srcdir/$f"
11643	 else
11644	   # /dev/null tree
11645	   { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11646echo "$as_me: error: cannot find input file: $f" >&2;}
11647   { (exit 1); exit 1; }; }
11648	 fi;;
11649      esac
11650    done` || { (exit 1); exit 1; }
11651_ACEOF
11652cat >>$CONFIG_STATUS <<_ACEOF
11653  sed "$ac_vpsub
11654$extrasub
11655_ACEOF
11656cat >>$CONFIG_STATUS <<\_ACEOF
11657:t
11658/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
11659s,@configure_input@,$configure_input,;t t
11660s,@srcdir@,$ac_srcdir,;t t
11661s,@abs_srcdir@,$ac_abs_srcdir,;t t
11662s,@top_srcdir@,$ac_top_srcdir,;t t
11663s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
11664s,@builddir@,$ac_builddir,;t t
11665s,@abs_builddir@,$ac_abs_builddir,;t t
11666s,@top_builddir@,$ac_top_builddir,;t t
11667s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
11668s,@INSTALL@,$ac_INSTALL,;t t
11669" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
11670  rm -f $tmp/stdin
11671  if test x"$ac_file" != x-; then
11672    mv $tmp/out $ac_file
11673  else
11674    cat $tmp/out
11675    rm -f $tmp/out
11676  fi
11677
11678done
11679_ACEOF
11680cat >>$CONFIG_STATUS <<\_ACEOF
11681
11682#
11683# CONFIG_HEADER section.
11684#
11685
11686# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
11687# NAME is the cpp macro being defined and VALUE is the value it is being given.
11688#
11689# ac_d sets the value in "#define NAME VALUE" lines.
11690ac_dA='s,^\([	 ]*\)#\([	 ]*define[	 ][	 ]*\)'
11691ac_dB='[	 ].*$,\1#\2'
11692ac_dC=' '
11693ac_dD=',;t'
11694# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
11695ac_uA='s,^\([	 ]*\)#\([	 ]*\)undef\([	 ][	 ]*\)'
11696ac_uB='$,\1#\2define\3'
11697ac_uC=' '
11698ac_uD=',;t'
11699
11700for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
11701  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
11702  case $ac_file in
11703  - | *:- | *:-:* ) # input from stdin
11704	cat >$tmp/stdin
11705	ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11706	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11707  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11708	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11709  * )   ac_file_in=$ac_file.in ;;
11710  esac
11711
11712  test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
11713echo "$as_me: creating $ac_file" >&6;}
11714
11715  # First look for the input files in the build tree, otherwise in the
11716  # src tree.
11717  ac_file_inputs=`IFS=:
11718    for f in $ac_file_in; do
11719      case $f in
11720      -) echo $tmp/stdin ;;
11721      [\\/$]*)
11722	 # Absolute (can't be DOS-style, as IFS=:)
11723	 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11724echo "$as_me: error: cannot find input file: $f" >&2;}
11725   { (exit 1); exit 1; }; }
11726	 # Do quote $f, to prevent DOS paths from being IFS'd.
11727	 echo "$f";;
11728      *) # Relative
11729	 if test -f "$f"; then
11730	   # Build tree
11731	   echo "$f"
11732	 elif test -f "$srcdir/$f"; then
11733	   # Source tree
11734	   echo "$srcdir/$f"
11735	 else
11736	   # /dev/null tree
11737	   { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11738echo "$as_me: error: cannot find input file: $f" >&2;}
11739   { (exit 1); exit 1; }; }
11740	 fi;;
11741      esac
11742    done` || { (exit 1); exit 1; }
11743  # Remove the trailing spaces.
11744  sed 's/[	 ]*$//' $ac_file_inputs >$tmp/in
11745
11746_ACEOF
11747
11748# Transform confdefs.h into two sed scripts, `conftest.defines' and
11749# `conftest.undefs', that substitutes the proper values into
11750# config.h.in to produce config.h.  The first handles `#define'
11751# templates, and the second `#undef' templates.
11752# And first: Protect against being on the right side of a sed subst in
11753# config.status.  Protect against being in an unquoted here document
11754# in config.status.
11755rm -f conftest.defines conftest.undefs
11756# Using a here document instead of a string reduces the quoting nightmare.
11757# Putting comments in sed scripts is not portable.
11758#
11759# `end' is used to avoid that the second main sed command (meant for
11760# 0-ary CPP macros) applies to n-ary macro definitions.
11761# See the Autoconf documentation for `clear'.
11762cat >confdef2sed.sed <<\_ACEOF
11763s/[\\&,]/\\&/g
11764s,[\\$`],\\&,g
11765t clear
11766: clear
11767s,^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 (][^	 (]*\)\(([^)]*)\)[	 ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
11768t end
11769s,^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 ][^	 ]*\)[	 ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
11770: end
11771_ACEOF
11772# If some macros were called several times there might be several times
11773# the same #defines, which is useless.  Nevertheless, we may not want to
11774# sort them, since we want the *last* AC-DEFINE to be honored.
11775uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
11776sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
11777rm -f confdef2sed.sed
11778
11779# This sed command replaces #undef with comments.  This is necessary, for
11780# example, in the case of _POSIX_SOURCE, which is predefined and required
11781# on some systems where configure will not decide to define it.
11782cat >>conftest.undefs <<\_ACEOF
11783s,^[	 ]*#[	 ]*undef[	 ][	 ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
11784_ACEOF
11785
11786# Break up conftest.defines because some shells have a limit on the size
11787# of here documents, and old seds have small limits too (100 cmds).
11788echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
11789echo '  if grep "^[	 ]*#[	 ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
11790echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
11791echo '  :' >>$CONFIG_STATUS
11792rm -f conftest.tail
11793while grep . conftest.defines >/dev/null
11794do
11795  # Write a limited-size here document to $tmp/defines.sed.
11796  echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
11797  # Speed up: don't consider the non `#define' lines.
11798  echo '/^[	 ]*#[	 ]*define/!b' >>$CONFIG_STATUS
11799  # Work around the forget-to-reset-the-flag bug.
11800  echo 't clr' >>$CONFIG_STATUS
11801  echo ': clr' >>$CONFIG_STATUS
11802  sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
11803  echo 'CEOF
11804  sed -f $tmp/defines.sed $tmp/in >$tmp/out
11805  rm -f $tmp/in
11806  mv $tmp/out $tmp/in
11807' >>$CONFIG_STATUS
11808  sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
11809  rm -f conftest.defines
11810  mv conftest.tail conftest.defines
11811done
11812rm -f conftest.defines
11813echo '  fi # grep' >>$CONFIG_STATUS
11814echo >>$CONFIG_STATUS
11815
11816# Break up conftest.undefs because some shells have a limit on the size
11817# of here documents, and old seds have small limits too (100 cmds).
11818echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
11819rm -f conftest.tail
11820while grep . conftest.undefs >/dev/null
11821do
11822  # Write a limited-size here document to $tmp/undefs.sed.
11823  echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
11824  # Speed up: don't consider the non `#undef'
11825  echo '/^[	 ]*#[	 ]*undef/!b' >>$CONFIG_STATUS
11826  # Work around the forget-to-reset-the-flag bug.
11827  echo 't clr' >>$CONFIG_STATUS
11828  echo ': clr' >>$CONFIG_STATUS
11829  sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
11830  echo 'CEOF
11831  sed -f $tmp/undefs.sed $tmp/in >$tmp/out
11832  rm -f $tmp/in
11833  mv $tmp/out $tmp/in
11834' >>$CONFIG_STATUS
11835  sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
11836  rm -f conftest.undefs
11837  mv conftest.tail conftest.undefs
11838done
11839rm -f conftest.undefs
11840
11841cat >>$CONFIG_STATUS <<\_ACEOF
11842  # Let's still pretend it is `configure' which instantiates (i.e., don't
11843  # use $as_me), people would be surprised to read:
11844  #    /* config.h.  Generated by config.status.  */
11845  if test x"$ac_file" = x-; then
11846    echo "/* Generated by configure.  */" >$tmp/config.h
11847  else
11848    echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
11849  fi
11850  cat $tmp/in >>$tmp/config.h
11851  rm -f $tmp/in
11852  if test x"$ac_file" != x-; then
11853    if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
11854      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
11855echo "$as_me: $ac_file is unchanged" >&6;}
11856    else
11857      ac_dir=`(dirname "$ac_file") 2>/dev/null ||
11858$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11859	 X"$ac_file" : 'X\(//\)[^/]' \| \
11860	 X"$ac_file" : 'X\(//\)$' \| \
11861	 X"$ac_file" : 'X\(/\)' \| \
11862	 .     : '\(.\)' 2>/dev/null ||
11863echo X"$ac_file" |
11864    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11865  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11866  	  /^X\(\/\/\)$/{ s//\1/; q; }
11867  	  /^X\(\/\).*/{ s//\1/; q; }
11868  	  s/.*/./; q'`
11869      { if $as_mkdir_p; then
11870    mkdir -p "$ac_dir"
11871  else
11872    as_dir="$ac_dir"
11873    as_dirs=
11874    while test ! -d "$as_dir"; do
11875      as_dirs="$as_dir $as_dirs"
11876      as_dir=`(dirname "$as_dir") 2>/dev/null ||
11877$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11878	 X"$as_dir" : 'X\(//\)[^/]' \| \
11879	 X"$as_dir" : 'X\(//\)$' \| \
11880	 X"$as_dir" : 'X\(/\)' \| \
11881	 .     : '\(.\)' 2>/dev/null ||
11882echo X"$as_dir" |
11883    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11884  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11885  	  /^X\(\/\/\)$/{ s//\1/; q; }
11886  	  /^X\(\/\).*/{ s//\1/; q; }
11887  	  s/.*/./; q'`
11888    done
11889    test ! -n "$as_dirs" || mkdir $as_dirs
11890  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
11891echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
11892   { (exit 1); exit 1; }; }; }
11893
11894      rm -f $ac_file
11895      mv $tmp/config.h $ac_file
11896    fi
11897  else
11898    cat $tmp/config.h
11899    rm -f $tmp/config.h
11900  fi
11901# Compute $ac_file's index in $config_headers.
11902_am_stamp_count=1
11903for _am_header in $config_headers :; do
11904  case $_am_header in
11905    $ac_file | $ac_file:* )
11906      break ;;
11907    * )
11908      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
11909  esac
11910done
11911echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
11912$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11913	 X$ac_file : 'X\(//\)[^/]' \| \
11914	 X$ac_file : 'X\(//\)$' \| \
11915	 X$ac_file : 'X\(/\)' \| \
11916	 .     : '\(.\)' 2>/dev/null ||
11917echo X$ac_file |
11918    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11919  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11920  	  /^X\(\/\/\)$/{ s//\1/; q; }
11921  	  /^X\(\/\).*/{ s//\1/; q; }
11922  	  s/.*/./; q'`/stamp-h$_am_stamp_count
11923done
11924_ACEOF
11925cat >>$CONFIG_STATUS <<\_ACEOF
11926
11927#
11928# CONFIG_COMMANDS section.
11929#
11930for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
11931  ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
11932  ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
11933  ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
11934$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11935	 X"$ac_dest" : 'X\(//\)[^/]' \| \
11936	 X"$ac_dest" : 'X\(//\)$' \| \
11937	 X"$ac_dest" : 'X\(/\)' \| \
11938	 .     : '\(.\)' 2>/dev/null ||
11939echo X"$ac_dest" |
11940    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11941  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11942  	  /^X\(\/\/\)$/{ s//\1/; q; }
11943  	  /^X\(\/\).*/{ s//\1/; q; }
11944  	  s/.*/./; q'`
11945  { if $as_mkdir_p; then
11946    mkdir -p "$ac_dir"
11947  else
11948    as_dir="$ac_dir"
11949    as_dirs=
11950    while test ! -d "$as_dir"; do
11951      as_dirs="$as_dir $as_dirs"
11952      as_dir=`(dirname "$as_dir") 2>/dev/null ||
11953$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11954	 X"$as_dir" : 'X\(//\)[^/]' \| \
11955	 X"$as_dir" : 'X\(//\)$' \| \
11956	 X"$as_dir" : 'X\(/\)' \| \
11957	 .     : '\(.\)' 2>/dev/null ||
11958echo X"$as_dir" |
11959    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11960  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11961  	  /^X\(\/\/\)$/{ s//\1/; q; }
11962  	  /^X\(\/\).*/{ s//\1/; q; }
11963  	  s/.*/./; q'`
11964    done
11965    test ! -n "$as_dirs" || mkdir $as_dirs
11966  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
11967echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
11968   { (exit 1); exit 1; }; }; }
11969
11970  ac_builddir=.
11971
11972if test "$ac_dir" != .; then
11973  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
11974  # A "../" for each directory in $ac_dir_suffix.
11975  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
11976else
11977  ac_dir_suffix= ac_top_builddir=
11978fi
11979
11980case $srcdir in
11981  .)  # No --srcdir option.  We are building in place.
11982    ac_srcdir=.
11983    if test -z "$ac_top_builddir"; then
11984       ac_top_srcdir=.
11985    else
11986       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
11987    fi ;;
11988  [\\/]* | ?:[\\/]* )  # Absolute path.
11989    ac_srcdir=$srcdir$ac_dir_suffix;
11990    ac_top_srcdir=$srcdir ;;
11991  *) # Relative path.
11992    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
11993    ac_top_srcdir=$ac_top_builddir$srcdir ;;
11994esac
11995
11996# Do not use `cd foo && pwd` to compute absolute paths, because
11997# the directories may not exist.
11998case `pwd` in
11999.) ac_abs_builddir="$ac_dir";;
12000*)
12001  case "$ac_dir" in
12002  .) ac_abs_builddir=`pwd`;;
12003  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
12004  *) ac_abs_builddir=`pwd`/"$ac_dir";;
12005  esac;;
12006esac
12007case $ac_abs_builddir in
12008.) ac_abs_top_builddir=${ac_top_builddir}.;;
12009*)
12010  case ${ac_top_builddir}. in
12011  .) ac_abs_top_builddir=$ac_abs_builddir;;
12012  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
12013  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
12014  esac;;
12015esac
12016case $ac_abs_builddir in
12017.) ac_abs_srcdir=$ac_srcdir;;
12018*)
12019  case $ac_srcdir in
12020  .) ac_abs_srcdir=$ac_abs_builddir;;
12021  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
12022  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
12023  esac;;
12024esac
12025case $ac_abs_builddir in
12026.) ac_abs_top_srcdir=$ac_top_srcdir;;
12027*)
12028  case $ac_top_srcdir in
12029  .) ac_abs_top_srcdir=$ac_abs_builddir;;
12030  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
12031  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
12032  esac;;
12033esac
12034
12035
12036  { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
12037echo "$as_me: executing $ac_dest commands" >&6;}
12038  case $ac_dest in
12039    depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
12040  # Strip MF so we end up with the name of the file.
12041  mf=`echo "$mf" | sed -e 's/:.*$//'`
12042  # Check whether this is an Automake generated Makefile or not.
12043  # We used to match only the files named `Makefile.in', but
12044  # some people rename them; so instead we look at the file content.
12045  # Grep'ing the first line is not enough: some people post-process
12046  # each Makefile.in and add a new line on top of each file to say so.
12047  # So let's grep whole file.
12048  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
12049    dirpart=`(dirname "$mf") 2>/dev/null ||
12050$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12051	 X"$mf" : 'X\(//\)[^/]' \| \
12052	 X"$mf" : 'X\(//\)$' \| \
12053	 X"$mf" : 'X\(/\)' \| \
12054	 .     : '\(.\)' 2>/dev/null ||
12055echo X"$mf" |
12056    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12057  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12058  	  /^X\(\/\/\)$/{ s//\1/; q; }
12059  	  /^X\(\/\).*/{ s//\1/; q; }
12060  	  s/.*/./; q'`
12061  else
12062    continue
12063  fi
12064  # Extract the definition of DEPDIR, am__include, and am__quote
12065  # from the Makefile without running `make'.
12066  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
12067  test -z "$DEPDIR" && continue
12068  am__include=`sed -n 's/^am__include = //p' < "$mf"`
12069  test -z "am__include" && continue
12070  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
12071  # When using ansi2knr, U may be empty or an underscore; expand it
12072  U=`sed -n 's/^U = //p' < "$mf"`
12073  # Find all dependency output files, they are included files with
12074  # $(DEPDIR) in their names.  We invoke sed twice because it is the
12075  # simplest approach to changing $(DEPDIR) to its actual value in the
12076  # expansion.
12077  for file in `sed -n "
12078    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
12079       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
12080    # Make sure the directory exists.
12081    test -f "$dirpart/$file" && continue
12082    fdir=`(dirname "$file") 2>/dev/null ||
12083$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12084	 X"$file" : 'X\(//\)[^/]' \| \
12085	 X"$file" : 'X\(//\)$' \| \
12086	 X"$file" : 'X\(/\)' \| \
12087	 .     : '\(.\)' 2>/dev/null ||
12088echo X"$file" |
12089    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12090  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12091  	  /^X\(\/\/\)$/{ s//\1/; q; }
12092  	  /^X\(\/\).*/{ s//\1/; q; }
12093  	  s/.*/./; q'`
12094    { if $as_mkdir_p; then
12095    mkdir -p $dirpart/$fdir
12096  else
12097    as_dir=$dirpart/$fdir
12098    as_dirs=
12099    while test ! -d "$as_dir"; do
12100      as_dirs="$as_dir $as_dirs"
12101      as_dir=`(dirname "$as_dir") 2>/dev/null ||
12102$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12103	 X"$as_dir" : 'X\(//\)[^/]' \| \
12104	 X"$as_dir" : 'X\(//\)$' \| \
12105	 X"$as_dir" : 'X\(/\)' \| \
12106	 .     : '\(.\)' 2>/dev/null ||
12107echo X"$as_dir" |
12108    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12109  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12110  	  /^X\(\/\/\)$/{ s//\1/; q; }
12111  	  /^X\(\/\).*/{ s//\1/; q; }
12112  	  s/.*/./; q'`
12113    done
12114    test ! -n "$as_dirs" || mkdir $as_dirs
12115  fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
12116echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
12117   { (exit 1); exit 1; }; }; }
12118
12119    # echo "creating $dirpart/$file"
12120    echo '# dummy' > "$dirpart/$file"
12121  done
12122done
12123 ;;
12124    default )
12125case "x$CONFIG_FILES" in
12126*) sed -e '/POTFILES =/r po/POTFILES' po/Makefile.in > po/Makefile ;;
12127esac
12128 ;;
12129  esac
12130done
12131_ACEOF
12132
12133cat >>$CONFIG_STATUS <<\_ACEOF
12134
12135{ (exit 0); exit 0; }
12136_ACEOF
12137chmod +x $CONFIG_STATUS
12138ac_clean_files=$ac_clean_files_save
12139
12140
12141# configure is writing to config.log, and then calls config.status.
12142# config.status does its own redirection, appending to config.log.
12143# Unfortunately, on DOS this fails, as config.log is still kept open
12144# by configure, so config.status won't be able to write to it; its
12145# output is simply discarded.  So we exec the FD to /dev/null,
12146# effectively closing config.log, so it can be properly (re)opened and
12147# appended to by config.status.  When coming back to configure, we
12148# need to make the FD available again.
12149if test "$no_create" != yes; then
12150  ac_cs_success=:
12151  ac_config_status_args=
12152  test "$silent" = yes &&
12153    ac_config_status_args="$ac_config_status_args --quiet"
12154  exec 5>/dev/null
12155  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12156  exec 5>>config.log
12157  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12158  # would make configure fail if this is the last instruction.
12159  $ac_cs_success || { (exit 1); exit 1; }
12160fi
12161
12162