6ce8f23d76d1f364710f386694e26c75d15d3f40
[external/binutils.git] / binutils / configure
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
13 if 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+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20   set -o posix
21 fi
22 DUALCASE=1; export DUALCASE # for MKS sh
23
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26   as_unset=unset
27 else
28   as_unset=false
29 fi
30
31
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
37
38 # NLS nuisances.
39 for 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
43 do
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
49 done
50
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53   as_expr=expr
54 else
55   as_expr=false
56 fi
57
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59   as_basename=basename
60 else
61   as_basename=false
62 fi
63
64
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68          X"$0" : 'X\(//\)$' \| \
69          X"$0" : 'X\(/\)$' \| \
70          .     : '\(.\)' 2>/dev/null ||
71 echo 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.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86 # The user is always right.
87 if 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
97 fi
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
110 for as_dir in $PATH
111 do
112   IFS=$as_save_IFS
113   test -z "$as_dir" && as_dir=.
114   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
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
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132 do
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
152 done
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
187 case `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= ;;
192 esac
193
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195   as_expr=expr
196 else
197   as_expr=false
198 fi
199
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if 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
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212   as_ln_s=ln
213 else
214   as_ln_s='cp -p'
215 fi
216 rm -f conf$$ conf$$.exe conf$$.file
217
218 if mkdir -p . 2>/dev/null; then
219   as_mkdir_p=:
220 else
221   test -d ./-p && rmdir ./-p
222   as_mkdir_p=false
223 fi
224
225 as_executable_p="test -f"
226
227 # Sed expression to map a string onto a valid CPP name.
228 as_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.
231 as_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.
236 as_nl='
237 '
238 IFS="   $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.
247 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
248
249 exec 6>&1
250
251 #
252 # Initializations.
253 #
254 ac_default_prefix=/usr/local
255 ac_config_libobj_dir=.
256 cross_compiling=no
257 subdirs=
258 MFLAGS=
259 MAKEFLAGS=
260 SHELL=${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.
268 PACKAGE_NAME=
269 PACKAGE_TARNAME=
270 PACKAGE_VERSION=
271 PACKAGE_STRING=
272 PACKAGE_BUGREPORT=
273
274 ac_unique_file="ar.c"
275 # Factoring default headers for most tests.
276 ac_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
312 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS 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 LIBOBJS LTLIBOBJS'
313 ac_subst_files=''
314
315 # Initialize some variables set by options.
316 ac_init_help=
317 ac_init_version=false
318 # The variables have the same names as the options, with
319 # dashes changed to underlines.
320 cache_file=/dev/null
321 exec_prefix=NONE
322 no_create=
323 no_recursion=
324 prefix=NONE
325 program_prefix=NONE
326 program_suffix=NONE
327 program_transform_name=s,x,x,
328 silent=
329 site=
330 srcdir=
331 verbose=
332 x_includes=NONE
333 x_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.
340 bindir='${exec_prefix}/bin'
341 sbindir='${exec_prefix}/sbin'
342 libexecdir='${exec_prefix}/libexec'
343 datadir='${prefix}/share'
344 sysconfdir='${prefix}/etc'
345 sharedstatedir='${prefix}/com'
346 localstatedir='${prefix}/var'
347 libdir='${exec_prefix}/lib'
348 includedir='${prefix}/include'
349 oldincludedir='/usr/include'
350 infodir='${prefix}/info'
351 mandir='${prefix}/man'
352
353 ac_prev=
354 for ac_option
355 do
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
627 Try \`$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
650 done
651
652 if 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; }; }
656 fi
657
658 # Be sure to have absolute paths.
659 for ac_var in exec_prefix prefix
660 do
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
667 done
668
669 # Be sure to have absolute paths.
670 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671               localstatedir libdir includedir oldincludedir infodir mandir
672 do
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
679 done
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.
684 build=$build_alias
685 host=$host_alias
686 target=$target_alias
687
688 # FIXME: To remove some day.
689 if 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
697 fi
698
699 ac_tool_prefix=
700 test -n "$host_alias" && ac_tool_prefix=$host_alias-
701
702 test "$silent" = yes && exec 6>/dev/null
703
704
705 # Find the source files, if location was not specified.
706 if 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 ||
715 echo 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
725 else
726   ac_srcdir_defaulted=no
727 fi
728 if 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
736 fi
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; }; }
740 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741 ac_env_build_alias_set=${build_alias+set}
742 ac_env_build_alias_value=$build_alias
743 ac_cv_env_build_alias_set=${build_alias+set}
744 ac_cv_env_build_alias_value=$build_alias
745 ac_env_host_alias_set=${host_alias+set}
746 ac_env_host_alias_value=$host_alias
747 ac_cv_env_host_alias_set=${host_alias+set}
748 ac_cv_env_host_alias_value=$host_alias
749 ac_env_target_alias_set=${target_alias+set}
750 ac_env_target_alias_value=$target_alias
751 ac_cv_env_target_alias_set=${target_alias+set}
752 ac_cv_env_target_alias_value=$target_alias
753 ac_env_CC_set=${CC+set}
754 ac_env_CC_value=$CC
755 ac_cv_env_CC_set=${CC+set}
756 ac_cv_env_CC_value=$CC
757 ac_env_CFLAGS_set=${CFLAGS+set}
758 ac_env_CFLAGS_value=$CFLAGS
759 ac_cv_env_CFLAGS_set=${CFLAGS+set}
760 ac_cv_env_CFLAGS_value=$CFLAGS
761 ac_env_LDFLAGS_set=${LDFLAGS+set}
762 ac_env_LDFLAGS_value=$LDFLAGS
763 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
764 ac_cv_env_LDFLAGS_value=$LDFLAGS
765 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
766 ac_env_CPPFLAGS_value=$CPPFLAGS
767 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
768 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
769 ac_env_CPP_set=${CPP+set}
770 ac_env_CPP_value=$CPP
771 ac_cv_env_CPP_set=${CPP+set}
772 ac_cv_env_CPP_value=$CPP
773
774 #
775 # Report the --help message.
776 #
777 if 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
783 Usage: $0 [OPTION]... [VAR=VALUE]...
784
785 To assign environment variables (e.g., CC, CFLAGS...), specify them as
786 VAR=VALUE.  See below for descriptions of some of the useful variables.
787
788 Defaults for the options are specified in brackets.
789
790 Configuration:
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
804 Installation 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
810 By default, \`make install' will install all the files in
811 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
812 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
813 for instance \`--prefix=\$HOME'.
814
815 For better control, use the options below.
816
817 Fine 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
834 Program 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
839 System 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
844 fi
845
846 if test -n "$ac_init_help"; then
847
848   cat <<\_ACEOF
849
850 Optional 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
867 Optional 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
874 Some 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
883 Use these variables to override the choices made by `configure' or to help
884 it to find libraries and programs with nonstandard names/locations.
885
886 _ACEOF
887 fi
888
889 if 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
896 if 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'`
900 else
901   ac_dir_suffix= ac_top_builddir=
902 fi
903
904 case $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 ;;
918 esac
919
920 # Do not use `cd foo && pwd` to compute absolute paths, because
921 # the directories may not exist.
922 case `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;;
930 esac
931 case $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;;
939 esac
940 case $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;;
948 esac
949 case $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;;
957 esac
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
976 fi
977
978 test -n "$ac_init_help" && exit 0
979 if $ac_init_version; then
980   cat <<\_ACEOF
981
982 Copyright (C) 2003 Free Software Foundation, Inc.
983 This configure script is free software; the Free Software Foundation
984 gives unlimited permission to copy, distribute and modify it.
985 _ACEOF
986   exit 0
987 fi
988 exec 5>config.log
989 cat >&5 <<_ACEOF
990 This file contains any messages produced by compilers while
991 running configure, to aid debugging if configure makes a mistake.
992
993 It was created by $as_me, which was
994 generated by GNU Autoconf 2.59.  Invocation command line was
995
996   $ $0 $@
997
998 _ACEOF
999 {
1000 cat <<_ASUNAME
1001 ## --------- ##
1002 ## Platform. ##
1003 ## --------- ##
1004
1005 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1006 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1007 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1008 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1009 uname -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`
1017 hostinfo               = `(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
1024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1025 for as_dir in $PATH
1026 do
1027   IFS=$as_save_IFS
1028   test -z "$as_dir" && as_dir=.
1029   echo "PATH: $as_dir"
1030 done
1031
1032 } >&5
1033
1034 cat >&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.
1049 ac_configure_args=
1050 ac_configure_args0=
1051 ac_configure_args1=
1052 ac_sep=
1053 ac_must_keep_next=false
1054 for ac_pass in 1 2
1055 do
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
1091 done
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.
1100 trap '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
1174 for ac_signal in 1 2 13 15; do
1175   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1176 done
1177 ac_signal=0
1178
1179 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1180 rm -rf conftest* confdefs.h
1181 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1182 echo >confdefs.h
1183
1184 # Predefined preprocessor variables.
1185
1186 cat >>confdefs.h <<_ACEOF
1187 #define PACKAGE_NAME "$PACKAGE_NAME"
1188 _ACEOF
1189
1190
1191 cat >>confdefs.h <<_ACEOF
1192 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1193 _ACEOF
1194
1195
1196 cat >>confdefs.h <<_ACEOF
1197 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1198 _ACEOF
1199
1200
1201 cat >>confdefs.h <<_ACEOF
1202 #define PACKAGE_STRING "$PACKAGE_STRING"
1203 _ACEOF
1204
1205
1206 cat >>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.
1213 if 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
1219 fi
1220 for 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
1223 echo "$as_me: loading site script $ac_site_file" >&6;}
1224     sed 's/^/| /' "$ac_site_file" >&5
1225     . "$ac_site_file"
1226   fi
1227 done
1228
1229 if 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
1234 echo "$as_me: loading cache $cache_file" >&6;}
1235     case $cache_file in
1236       [\\/]* | ?:[\\/]* ) . $cache_file;;
1237       *)                      . ./$cache_file;;
1238     esac
1239   fi
1240 else
1241   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1242 echo "$as_me: creating cache $cache_file" >&6;}
1243   >$cache_file
1244 fi
1245
1246 # Check that the precious variables saved in the cache have kept the same
1247 # value.
1248 ac_cache_corrupted=false
1249 for 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
1258 echo "$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
1262 echo "$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
1268 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1269         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1270 echo "$as_me:   former value:  $ac_old_val" >&2;}
1271         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1272 echo "$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
1288 done
1289 if $ac_cache_corrupted; then
1290   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1291 echo "$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
1293 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1294    { (exit 1); exit 1; }; }
1295 fi
1296
1297 ac_ext=c
1298 ac_cpp='$CPP $CPPFLAGS'
1299 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1300 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1301 ac_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
1322 ac_aux_dir=
1323 for 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
1337 done
1338 if test -z "$ac_aux_dir"; then
1339   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1340 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1341    { (exit 1); exit 1; }; }
1342 fi
1343 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1344 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1345 ac_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
1350 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1351    { (exit 1); exit 1; }; }
1352
1353 echo "$as_me:$LINENO: checking build system type" >&5
1354 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1355 if test "${ac_cv_build+set}" = set; then
1356   echo $ECHO_N "(cached) $ECHO_C" >&6
1357 else
1358   ac_cv_build_alias=$build_alias
1359 test -z "$ac_cv_build_alias" &&
1360   ac_cv_build_alias=`$ac_config_guess`
1361 test -z "$ac_cv_build_alias" &&
1362   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1363 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1364    { (exit 1); exit 1; }; }
1365 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1366   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1367 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1368    { (exit 1); exit 1; }; }
1369
1370 fi
1371 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1372 echo "${ECHO_T}$ac_cv_build" >&6
1373 build=$ac_cv_build
1374 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1375 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1376 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1377
1378
1379 echo "$as_me:$LINENO: checking host system type" >&5
1380 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1381 if test "${ac_cv_host+set}" = set; then
1382   echo $ECHO_N "(cached) $ECHO_C" >&6
1383 else
1384   ac_cv_host_alias=$host_alias
1385 test -z "$ac_cv_host_alias" &&
1386   ac_cv_host_alias=$ac_cv_build_alias
1387 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1388   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1389 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1390    { (exit 1); exit 1; }; }
1391
1392 fi
1393 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1394 echo "${ECHO_T}$ac_cv_host" >&6
1395 host=$ac_cv_host
1396 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1397 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1398 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1399
1400
1401 echo "$as_me:$LINENO: checking target system type" >&5
1402 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1403 if test "${ac_cv_target+set}" = set; then
1404   echo $ECHO_N "(cached) $ECHO_C" >&6
1405 else
1406   ac_cv_target_alias=$target_alias
1407 test "x$ac_cv_target_alias" = "x" &&
1408   ac_cv_target_alias=$ac_cv_host_alias
1409 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1410   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1411 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1412    { (exit 1); exit 1; }; }
1413
1414 fi
1415 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1416 echo "${ECHO_T}$ac_cv_target" >&6
1417 target=$ac_cv_target
1418 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1419 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1420 target_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.
1425 test -n "$target_alias" &&
1426   test "$program_prefix$program_suffix$program_transform_name" = \
1427     NONENONEs,x,x, &&
1428   program_prefix=${target_alias}-
1429 ac_ext=c
1430 ac_cpp='$CPP $CPPFLAGS'
1431 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1432 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1433 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1434 if 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.
1436 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1437 echo "$as_me:$LINENO: checking for $ac_word" >&5
1438 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1439 if test "${ac_cv_prog_CC+set}" = set; then
1440   echo $ECHO_N "(cached) $ECHO_C" >&6
1441 else
1442   if test -n "$CC"; then
1443   ac_cv_prog_CC="$CC" # Let the user override the test.
1444 else
1445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1446 for as_dir in $PATH
1447 do
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
1456 done
1457 done
1458
1459 fi
1460 fi
1461 CC=$ac_cv_prog_CC
1462 if test -n "$CC"; then
1463   echo "$as_me:$LINENO: result: $CC" >&5
1464 echo "${ECHO_T}$CC" >&6
1465 else
1466   echo "$as_me:$LINENO: result: no" >&5
1467 echo "${ECHO_T}no" >&6
1468 fi
1469
1470 fi
1471 if 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.
1474 set dummy gcc; ac_word=$2
1475 echo "$as_me:$LINENO: checking for $ac_word" >&5
1476 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1477 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1478   echo $ECHO_N "(cached) $ECHO_C" >&6
1479 else
1480   if test -n "$ac_ct_CC"; then
1481   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1482 else
1483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1484 for as_dir in $PATH
1485 do
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
1494 done
1495 done
1496
1497 fi
1498 fi
1499 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1500 if test -n "$ac_ct_CC"; then
1501   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1502 echo "${ECHO_T}$ac_ct_CC" >&6
1503 else
1504   echo "$as_me:$LINENO: result: no" >&5
1505 echo "${ECHO_T}no" >&6
1506 fi
1507
1508   CC=$ac_ct_CC
1509 else
1510   CC="$ac_cv_prog_CC"
1511 fi
1512
1513 if 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.
1516 set dummy ${ac_tool_prefix}cc; ac_word=$2
1517 echo "$as_me:$LINENO: checking for $ac_word" >&5
1518 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1519 if test "${ac_cv_prog_CC+set}" = set; then
1520   echo $ECHO_N "(cached) $ECHO_C" >&6
1521 else
1522   if test -n "$CC"; then
1523   ac_cv_prog_CC="$CC" # Let the user override the test.
1524 else
1525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1526 for as_dir in $PATH
1527 do
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
1536 done
1537 done
1538
1539 fi
1540 fi
1541 CC=$ac_cv_prog_CC
1542 if test -n "$CC"; then
1543   echo "$as_me:$LINENO: result: $CC" >&5
1544 echo "${ECHO_T}$CC" >&6
1545 else
1546   echo "$as_me:$LINENO: result: no" >&5
1547 echo "${ECHO_T}no" >&6
1548 fi
1549
1550 fi
1551 if 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.
1554 set dummy cc; ac_word=$2
1555 echo "$as_me:$LINENO: checking for $ac_word" >&5
1556 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1557 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1558   echo $ECHO_N "(cached) $ECHO_C" >&6
1559 else
1560   if test -n "$ac_ct_CC"; then
1561   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1562 else
1563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1564 for as_dir in $PATH
1565 do
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
1574 done
1575 done
1576
1577 fi
1578 fi
1579 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1580 if test -n "$ac_ct_CC"; then
1581   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1582 echo "${ECHO_T}$ac_ct_CC" >&6
1583 else
1584   echo "$as_me:$LINENO: result: no" >&5
1585 echo "${ECHO_T}no" >&6
1586 fi
1587
1588   CC=$ac_ct_CC
1589 else
1590   CC="$ac_cv_prog_CC"
1591 fi
1592
1593 fi
1594 if test -z "$CC"; then
1595   # Extract the first word of "cc", so it can be a program name with args.
1596 set dummy cc; ac_word=$2
1597 echo "$as_me:$LINENO: checking for $ac_word" >&5
1598 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1599 if test "${ac_cv_prog_CC+set}" = set; then
1600   echo $ECHO_N "(cached) $ECHO_C" >&6
1601 else
1602   if test -n "$CC"; then
1603   ac_cv_prog_CC="$CC" # Let the user override the test.
1604 else
1605   ac_prog_rejected=no
1606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1607 for as_dir in $PATH
1608 do
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
1621 done
1622 done
1623
1624 if 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
1635 fi
1636 fi
1637 fi
1638 CC=$ac_cv_prog_CC
1639 if test -n "$CC"; then
1640   echo "$as_me:$LINENO: result: $CC" >&5
1641 echo "${ECHO_T}$CC" >&6
1642 else
1643   echo "$as_me:$LINENO: result: no" >&5
1644 echo "${ECHO_T}no" >&6
1645 fi
1646
1647 fi
1648 if 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.
1653 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1654 echo "$as_me:$LINENO: checking for $ac_word" >&5
1655 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1656 if test "${ac_cv_prog_CC+set}" = set; then
1657   echo $ECHO_N "(cached) $ECHO_C" >&6
1658 else
1659   if test -n "$CC"; then
1660   ac_cv_prog_CC="$CC" # Let the user override the test.
1661 else
1662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1663 for as_dir in $PATH
1664 do
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
1673 done
1674 done
1675
1676 fi
1677 fi
1678 CC=$ac_cv_prog_CC
1679 if test -n "$CC"; then
1680   echo "$as_me:$LINENO: result: $CC" >&5
1681 echo "${ECHO_T}$CC" >&6
1682 else
1683   echo "$as_me:$LINENO: result: no" >&5
1684 echo "${ECHO_T}no" >&6
1685 fi
1686
1687     test -n "$CC" && break
1688   done
1689 fi
1690 if test -z "$CC"; then
1691   ac_ct_CC=$CC
1692   for ac_prog in cl
1693 do
1694   # Extract the first word of "$ac_prog", so it can be a program name with args.
1695 set dummy $ac_prog; ac_word=$2
1696 echo "$as_me:$LINENO: checking for $ac_word" >&5
1697 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1698 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1699   echo $ECHO_N "(cached) $ECHO_C" >&6
1700 else
1701   if test -n "$ac_ct_CC"; then
1702   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1703 else
1704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1705 for as_dir in $PATH
1706 do
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
1715 done
1716 done
1717
1718 fi
1719 fi
1720 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1721 if test -n "$ac_ct_CC"; then
1722   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1723 echo "${ECHO_T}$ac_ct_CC" >&6
1724 else
1725   echo "$as_me:$LINENO: result: no" >&5
1726 echo "${ECHO_T}no" >&6
1727 fi
1728
1729   test -n "$ac_ct_CC" && break
1730 done
1731
1732   CC=$ac_ct_CC
1733 fi
1734
1735 fi
1736
1737
1738 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1739 See \`config.log' for more details." >&5
1740 echo "$as_me: error: no acceptable C compiler found in \$PATH
1741 See \`config.log' for more details." >&2;}
1742    { (exit 1); exit 1; }; }
1743
1744 # Provide some information about the compiler.
1745 echo "$as_me:$LINENO:" \
1746      "checking for C compiler version" >&5
1747 ac_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
1764 cat >conftest.$ac_ext <<_ACEOF
1765 /* confdefs.h.  */
1766 _ACEOF
1767 cat confdefs.h >>conftest.$ac_ext
1768 cat >>conftest.$ac_ext <<_ACEOF
1769 /* end confdefs.h.  */
1770
1771 int
1772 main ()
1773 {
1774
1775   ;
1776   return 0;
1777 }
1778 _ACEOF
1779 ac_clean_files_save=$ac_clean_files
1780 ac_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.
1784 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1785 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1786 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1787 if { (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.
1798 ac_cv_exeext=
1799 # b.out is created by i960 compilers.
1800 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1801 do
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
1823 done
1824 else
1825   echo "$as_me: failed program was:" >&5
1826 sed 's/^/| /' conftest.$ac_ext >&5
1827
1828 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1829 See \`config.log' for more details." >&5
1830 echo "$as_me: error: C compiler cannot create executables
1831 See \`config.log' for more details." >&2;}
1832    { (exit 77); exit 77; }; }
1833 fi
1834
1835 ac_exeext=$ac_cv_exeext
1836 echo "$as_me:$LINENO: result: $ac_file" >&5
1837 echo "${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.
1841 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1842 echo $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.
1845 if 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.
1858 If you meant to cross compile, use \`--host'.
1859 See \`config.log' for more details." >&5
1860 echo "$as_me: error: cannot run C compiled programs.
1861 If you meant to cross compile, use \`--host'.
1862 See \`config.log' for more details." >&2;}
1863    { (exit 1); exit 1; }; }
1864     fi
1865   fi
1866 fi
1867 echo "$as_me:$LINENO: result: yes" >&5
1868 echo "${ECHO_T}yes" >&6
1869
1870 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1871 ac_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.
1874 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1875 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1876 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1877 echo "${ECHO_T}$cross_compiling" >&6
1878
1879 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1880 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1881 if { (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'.
1890 for 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
1899 done
1900 else
1901   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1902 See \`config.log' for more details." >&5
1903 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1904 See \`config.log' for more details." >&2;}
1905    { (exit 1); exit 1; }; }
1906 fi
1907
1908 rm -f conftest$ac_cv_exeext
1909 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1910 echo "${ECHO_T}$ac_cv_exeext" >&6
1911
1912 rm -f conftest.$ac_ext
1913 EXEEXT=$ac_cv_exeext
1914 ac_exeext=$EXEEXT
1915 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1916 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1917 if test "${ac_cv_objext+set}" = set; then
1918   echo $ECHO_N "(cached) $ECHO_C" >&6
1919 else
1920   cat >conftest.$ac_ext <<_ACEOF
1921 /* confdefs.h.  */
1922 _ACEOF
1923 cat confdefs.h >>conftest.$ac_ext
1924 cat >>conftest.$ac_ext <<_ACEOF
1925 /* end confdefs.h.  */
1926
1927 int
1928 main ()
1929 {
1930
1931   ;
1932   return 0;
1933 }
1934 _ACEOF
1935 rm -f conftest.o conftest.obj
1936 if { (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
1947 done
1948 else
1949   echo "$as_me: failed program was:" >&5
1950 sed 's/^/| /' conftest.$ac_ext >&5
1951
1952 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1953 See \`config.log' for more details." >&5
1954 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1955 See \`config.log' for more details." >&2;}
1956    { (exit 1); exit 1; }; }
1957 fi
1958
1959 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1960 fi
1961 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1962 echo "${ECHO_T}$ac_cv_objext" >&6
1963 OBJEXT=$ac_cv_objext
1964 ac_objext=$OBJEXT
1965 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1966 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1967 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1968   echo $ECHO_N "(cached) $ECHO_C" >&6
1969 else
1970   cat >conftest.$ac_ext <<_ACEOF
1971 /* confdefs.h.  */
1972 _ACEOF
1973 cat confdefs.h >>conftest.$ac_ext
1974 cat >>conftest.$ac_ext <<_ACEOF
1975 /* end confdefs.h.  */
1976
1977 int
1978 main ()
1979 {
1980 #ifndef __GNUC__
1981        choke me
1982 #endif
1983
1984   ;
1985   return 0;
1986 }
1987 _ACEOF
1988 rm -f conftest.$ac_objext
1989 if { (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
2011 else
2012   echo "$as_me: failed program was:" >&5
2013 sed 's/^/| /' conftest.$ac_ext >&5
2014
2015 ac_compiler_gnu=no
2016 fi
2017 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2018 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2019
2020 fi
2021 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2022 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2023 GCC=`test $ac_compiler_gnu = yes && echo yes`
2024 ac_test_CFLAGS=${CFLAGS+set}
2025 ac_save_CFLAGS=$CFLAGS
2026 CFLAGS="-g"
2027 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2028 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2029 if test "${ac_cv_prog_cc_g+set}" = set; then
2030   echo $ECHO_N "(cached) $ECHO_C" >&6
2031 else
2032   cat >conftest.$ac_ext <<_ACEOF
2033 /* confdefs.h.  */
2034 _ACEOF
2035 cat confdefs.h >>conftest.$ac_ext
2036 cat >>conftest.$ac_ext <<_ACEOF
2037 /* end confdefs.h.  */
2038
2039 int
2040 main ()
2041 {
2042
2043   ;
2044   return 0;
2045 }
2046 _ACEOF
2047 rm -f conftest.$ac_objext
2048 if { (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
2070 else
2071   echo "$as_me: failed program was:" >&5
2072 sed 's/^/| /' conftest.$ac_ext >&5
2073
2074 ac_cv_prog_cc_g=no
2075 fi
2076 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2077 fi
2078 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2079 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2080 if test "$ac_test_CFLAGS" = set; then
2081   CFLAGS=$ac_save_CFLAGS
2082 elif 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
2088 else
2089   if test "$GCC" = yes; then
2090     CFLAGS="-O2"
2091   else
2092     CFLAGS=
2093   fi
2094 fi
2095 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2096 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2097 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2098   echo $ECHO_N "(cached) $ECHO_C" >&6
2099 else
2100   ac_cv_prog_cc_stdc=no
2101 ac_save_CC=$CC
2102 cat >conftest.$ac_ext <<_ACEOF
2103 /* confdefs.h.  */
2104 _ACEOF
2105 cat confdefs.h >>conftest.$ac_ext
2106 cat >>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.  */
2113 struct buf { int x; };
2114 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2115 static char *e (p, i)
2116      char **p;
2117      int i;
2118 {
2119   return p[i];
2120 }
2121 static 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.  */
2138 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2139
2140 int test (int i, double x);
2141 struct s1 {int (*f) (int a);};
2142 struct s2 {int (*f) (double a);};
2143 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2144 int argc;
2145 char **argv;
2146 int
2147 main ()
2148 {
2149 return 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__
2161 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2162 do
2163   CC="$ac_save_CC $ac_arg"
2164   rm -f conftest.$ac_objext
2165 if { (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
2187 break
2188 else
2189   echo "$as_me: failed program was:" >&5
2190 sed 's/^/| /' conftest.$ac_ext >&5
2191
2192 fi
2193 rm -f conftest.err conftest.$ac_objext
2194 done
2195 rm -f conftest.$ac_ext conftest.$ac_objext
2196 CC=$ac_save_CC
2197
2198 fi
2199
2200 case "x$ac_cv_prog_cc_stdc" in
2201   x|xno)
2202     echo "$as_me:$LINENO: result: none needed" >&5
2203 echo "${ECHO_T}none needed" >&6 ;;
2204   *)
2205     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2206 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2207     CC="$CC $ac_cv_prog_cc_stdc" ;;
2208 esac
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.
2214 cat >conftest.$ac_ext <<_ACEOF
2215 #ifndef __cplusplus
2216   choke me
2217 #endif
2218 _ACEOF
2219 rm -f conftest.$ac_objext
2220 if { (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);'
2248 do
2249   cat >conftest.$ac_ext <<_ACEOF
2250 /* confdefs.h.  */
2251 _ACEOF
2252 cat confdefs.h >>conftest.$ac_ext
2253 cat >>conftest.$ac_ext <<_ACEOF
2254 /* end confdefs.h.  */
2255 $ac_declaration
2256 #include <stdlib.h>
2257 int
2258 main ()
2259 {
2260 exit (42);
2261   ;
2262   return 0;
2263 }
2264 _ACEOF
2265 rm -f conftest.$ac_objext
2266 if { (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   :
2288 else
2289   echo "$as_me: failed program was:" >&5
2290 sed 's/^/| /' conftest.$ac_ext >&5
2291
2292 continue
2293 fi
2294 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2295   cat >conftest.$ac_ext <<_ACEOF
2296 /* confdefs.h.  */
2297 _ACEOF
2298 cat confdefs.h >>conftest.$ac_ext
2299 cat >>conftest.$ac_ext <<_ACEOF
2300 /* end confdefs.h.  */
2301 $ac_declaration
2302 int
2303 main ()
2304 {
2305 exit (42);
2306   ;
2307   return 0;
2308 }
2309 _ACEOF
2310 rm -f conftest.$ac_objext
2311 if { (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
2333 else
2334   echo "$as_me: failed program was:" >&5
2335 sed 's/^/| /' conftest.$ac_ext >&5
2336
2337 fi
2338 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2339 done
2340 rm -f conftest*
2341 if test -n "$ac_declaration"; then
2342   echo '#ifdef __cplusplus' >>confdefs.h
2343   echo $ac_declaration      >>confdefs.h
2344   echo '#endif'             >>confdefs.h
2345 fi
2346
2347 else
2348   echo "$as_me: failed program was:" >&5
2349 sed 's/^/| /' conftest.$ac_ext >&5
2350
2351 fi
2352 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2353 ac_ext=c
2354 ac_cpp='$CPP $CPPFLAGS'
2355 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2356 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2357 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2358
2359
2360 echo "$as_me:$LINENO: checking for library containing strerror" >&5
2361 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
2362 if test "${ac_cv_search_strerror+set}" = set; then
2363   echo $ECHO_N "(cached) $ECHO_C" >&6
2364 else
2365   ac_func_search_save_LIBS=$LIBS
2366 ac_cv_search_strerror=no
2367 cat >conftest.$ac_ext <<_ACEOF
2368 /* confdefs.h.  */
2369 _ACEOF
2370 cat confdefs.h >>conftest.$ac_ext
2371 cat >>conftest.$ac_ext <<_ACEOF
2372 /* end confdefs.h.  */
2373
2374 /* Override any gcc2 internal prototype to avoid an error.  */
2375 #ifdef __cplusplus
2376 extern "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.  */
2380 char strerror ();
2381 int
2382 main ()
2383 {
2384 strerror ();
2385   ;
2386   return 0;
2387 }
2388 _ACEOF
2389 rm -f conftest.$ac_objext conftest$ac_exeext
2390 if { (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"
2412 else
2413   echo "$as_me: failed program was:" >&5
2414 sed 's/^/| /' conftest.$ac_ext >&5
2415
2416 fi
2417 rm -f conftest.err conftest.$ac_objext \
2418       conftest$ac_exeext conftest.$ac_ext
2419 if 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
2425 cat confdefs.h >>conftest.$ac_ext
2426 cat >>conftest.$ac_ext <<_ACEOF
2427 /* end confdefs.h.  */
2428
2429 /* Override any gcc2 internal prototype to avoid an error.  */
2430 #ifdef __cplusplus
2431 extern "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.  */
2435 char strerror ();
2436 int
2437 main ()
2438 {
2439 strerror ();
2440   ;
2441   return 0;
2442 }
2443 _ACEOF
2444 rm -f conftest.$ac_objext conftest$ac_exeext
2445 if { (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"
2467 break
2468 else
2469   echo "$as_me: failed program was:" >&5
2470 sed 's/^/| /' conftest.$ac_ext >&5
2471
2472 fi
2473 rm -f conftest.err conftest.$ac_objext \
2474       conftest$ac_exeext conftest.$ac_ext
2475   done
2476 fi
2477 LIBS=$ac_func_search_save_LIBS
2478 fi
2479 echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
2480 echo "${ECHO_T}$ac_cv_search_strerror" >&6
2481 if test "$ac_cv_search_strerror" != no; then
2482   test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
2483
2484 fi
2485
2486
2487 BFD_VERSION=`sed -n -e 's/^.._INIT_AUTOMAKE.*,[         ]*\([^  ]*\)[   ]*).*/\1/p' < ${srcdir}/../bfd/configure.in`
2488 am__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.
2502 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2503 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2504 if test -z "$INSTALL"; then
2505 if test "${ac_cv_path_install+set}" = set; then
2506   echo $ECHO_N "(cached) $ECHO_C" >&6
2507 else
2508   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2509 for as_dir in $PATH
2510 do
2511   IFS=$as_save_IFS
2512   test -z "$as_dir" && as_dir=.
2513   # Account for people who put trailing slashes in PATH elements.
2514 case $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     ;;
2542 esac
2543 done
2544
2545
2546 fi
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
2556 fi
2557 echo "$as_me:$LINENO: result: $INSTALL" >&5
2558 echo "${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.
2562 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2563
2564 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2565
2566 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2567
2568 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2569 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
2570 # Just in case
2571 sleep 1
2572 echo 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).
2578 if (
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
2593 alias in your environment" >&5
2594 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2595 alias in your environment" >&2;}
2596    { (exit 1); exit 1; }; }
2597    fi
2598
2599    test "$2" = conftest.file
2600    )
2601 then
2602    # Ok.
2603    :
2604 else
2605    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2606 Check your system clock" >&5
2607 echo "$as_me: error: newly created file is older than distributed files!
2608 Check your system clock" >&2;}
2609    { (exit 1); exit 1; }; }
2610 fi
2611 echo "$as_me:$LINENO: result: yes" >&5
2612 echo "${ECHO_T}yes" >&6
2613 test "$program_prefix" != NONE &&
2614   program_transform_name="s,^,$program_prefix,;$program_transform_name"
2615 # Use a double $ so make ignores it.
2616 test "$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.
2620 cat <<\_ACEOF >conftest.sed
2621 s/[\\$]/&&/g;s/;s,x,x,$//
2622 _ACEOF
2623 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2624 rm conftest.sed
2625
2626 # expand $ac_aux_dir to an absolute path
2627 am_aux_dir=`cd $ac_aux_dir && pwd`
2628
2629 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2630 # Use eval to expand $SHELL
2631 if eval "$MISSING --run true"; then
2632   am_missing_run="$MISSING --run "
2633 else
2634   am_missing_run=
2635   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2636 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2637 fi
2638
2639 if 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 --'
2655 else
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
2670 fi
2671
2672 for ac_prog in gawk mawk nawk awk
2673 do
2674   # Extract the first word of "$ac_prog", so it can be a program name with args.
2675 set dummy $ac_prog; ac_word=$2
2676 echo "$as_me:$LINENO: checking for $ac_word" >&5
2677 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2678 if test "${ac_cv_prog_AWK+set}" = set; then
2679   echo $ECHO_N "(cached) $ECHO_C" >&6
2680 else
2681   if test -n "$AWK"; then
2682   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2683 else
2684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2685 for as_dir in $PATH
2686 do
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
2695 done
2696 done
2697
2698 fi
2699 fi
2700 AWK=$ac_cv_prog_AWK
2701 if test -n "$AWK"; then
2702   echo "$as_me:$LINENO: result: $AWK" >&5
2703 echo "${ECHO_T}$AWK" >&6
2704 else
2705   echo "$as_me:$LINENO: result: no" >&5
2706 echo "${ECHO_T}no" >&6
2707 fi
2708
2709   test -n "$AWK" && break
2710 done
2711
2712 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2713 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
2714 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
2715 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2716   echo $ECHO_N "(cached) $ECHO_C" >&6
2717 else
2718   cat >conftest.make <<\_ACEOF
2719 all:
2720         @echo 'ac_maketemp="$(MAKE)"'
2721 _ACEOF
2722 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2723 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
2724 if test -n "$ac_maketemp"; then
2725   eval ac_cv_prog_make_${ac_make}_set=yes
2726 else
2727   eval ac_cv_prog_make_${ac_make}_set=no
2728 fi
2729 rm -f conftest.make
2730 fi
2731 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2732   echo "$as_me:$LINENO: result: yes" >&5
2733 echo "${ECHO_T}yes" >&6
2734   SET_MAKE=
2735 else
2736   echo "$as_me:$LINENO: result: no" >&5
2737 echo "${ECHO_T}no" >&6
2738   SET_MAKE="MAKE=${MAKE-make}"
2739 fi
2740
2741 rm -rf .tst 2>/dev/null
2742 mkdir .tst 2>/dev/null
2743 if test -d .tst; then
2744   am__leading_dot=.
2745 else
2746   am__leading_dot=_
2747 fi
2748 rmdir .tst 2>/dev/null
2749
2750 DEPDIR="${am__leading_dot}deps"
2751
2752           ac_config_commands="$ac_config_commands depfiles"
2753
2754
2755 am_make=${MAKE-make}
2756 cat > confinc << 'END'
2757 am__doit:
2758         @echo done
2759 .PHONY: am__doit
2760 END
2761 # If we don't find an include directive, just comment out the code.
2762 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2763 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2764 am__include="#"
2765 am__quote=
2766 _am_result=none
2767 # First try GNU make style include.
2768 echo "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'.
2774 if 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
2778 fi
2779 # Now try BSD make style include.
2780 if 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
2787 fi
2788
2789
2790 echo "$as_me:$LINENO: result: $_am_result" >&5
2791 echo "${ECHO_T}$_am_result" >&6
2792 rm -f confinc confmf
2793
2794 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2795 if test "${enable_dependency_tracking+set}" = set; then
2796   enableval="$enable_dependency_tracking"
2797
2798 fi;
2799 if test "x$enable_dependency_tracking" != xno; then
2800   am_depcomp="$ac_aux_dir/depcomp"
2801   AMDEPBACKSLASH='\'
2802 fi
2803
2804
2805 if test "x$enable_dependency_tracking" != xno; then
2806   AMDEP_TRUE=
2807   AMDEP_FALSE='#'
2808 else
2809   AMDEP_TRUE='#'
2810   AMDEP_FALSE=
2811 fi
2812
2813
2814
2815 # test to see if srcdir already configured
2816 if 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
2819 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2820    { (exit 1); exit 1; }; }
2821 fi
2822
2823 # test whether we have cygpath
2824 if 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
2830 fi
2831
2832
2833 # Define the identity of the package.
2834  PACKAGE=binutils
2835  VERSION=${BFD_VERSION}
2836
2837
2838 cat >>confdefs.h <<_ACEOF
2839 #define PACKAGE "$PACKAGE"
2840 _ACEOF
2841
2842
2843 cat >>confdefs.h <<_ACEOF
2844 #define VERSION "$VERSION"
2845 _ACEOF
2846
2847 # Some tools Automake needs.
2848
2849 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2850
2851
2852 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2853
2854
2855 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2856
2857
2858 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2859
2860
2861 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2862
2863 install_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.
2869 if 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.
2872 set dummy ${ac_tool_prefix}strip; ac_word=$2
2873 echo "$as_me:$LINENO: checking for $ac_word" >&5
2874 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2875 if test "${ac_cv_prog_STRIP+set}" = set; then
2876   echo $ECHO_N "(cached) $ECHO_C" >&6
2877 else
2878   if test -n "$STRIP"; then
2879   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2880 else
2881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2882 for as_dir in $PATH
2883 do
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
2892 done
2893 done
2894
2895 fi
2896 fi
2897 STRIP=$ac_cv_prog_STRIP
2898 if test -n "$STRIP"; then
2899   echo "$as_me:$LINENO: result: $STRIP" >&5
2900 echo "${ECHO_T}$STRIP" >&6
2901 else
2902   echo "$as_me:$LINENO: result: no" >&5
2903 echo "${ECHO_T}no" >&6
2904 fi
2905
2906 fi
2907 if 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.
2910 set dummy strip; ac_word=$2
2911 echo "$as_me:$LINENO: checking for $ac_word" >&5
2912 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2913 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2914   echo $ECHO_N "(cached) $ECHO_C" >&6
2915 else
2916   if test -n "$ac_ct_STRIP"; then
2917   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2918 else
2919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2920 for as_dir in $PATH
2921 do
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
2930 done
2931 done
2932
2933   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
2934 fi
2935 fi
2936 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2937 if test -n "$ac_ct_STRIP"; then
2938   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2939 echo "${ECHO_T}$ac_ct_STRIP" >&6
2940 else
2941   echo "$as_me:$LINENO: result: no" >&5
2942 echo "${ECHO_T}no" >&6
2943 fi
2944
2945   STRIP=$ac_ct_STRIP
2946 else
2947   STRIP="$ac_cv_prog_STRIP"
2948 fi
2949
2950 fi
2951 INSTALL_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
2957 AMTAR=${AMTAR-"${am_missing_run}tar"}
2958
2959 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2960
2961
2962
2963
2964 depcc="$CC"   am_compiler_list=
2965
2966 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2967 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2968 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2969   echo $ECHO_N "(cached) $ECHO_C" >&6
2970 else
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
3051 else
3052   am_cv_CC_dependencies_compiler_type=none
3053 fi
3054
3055 fi
3056 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3057 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3058 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3059
3060
3061
3062 if
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='#'
3067 else
3068   am__fastdepCC_TRUE='#'
3069   am__fastdepCC_FALSE=
3070 fi
3071
3072
3073
3074
3075 # Check whether --enable-shared or --disable-shared was given.
3076 if test "${enable_shared+set}" = set; then
3077   enableval="$enable_shared"
3078   p=${PACKAGE-default}
3079 case $enableval in
3080 yes) enable_shared=yes ;;
3081 no) 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   ;;
3093 esac
3094 else
3095   enable_shared=yes
3096 fi;
3097 # Check whether --enable-static or --disable-static was given.
3098 if test "${enable_static+set}" = set; then
3099   enableval="$enable_static"
3100   p=${PACKAGE-default}
3101 case $enableval in
3102 yes) enable_static=yes ;;
3103 no) 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   ;;
3115 esac
3116 else
3117   enable_static=yes
3118 fi;
3119 # Check whether --enable-fast-install or --disable-fast-install was given.
3120 if test "${enable_fast_install+set}" = set; then
3121   enableval="$enable_fast_install"
3122   p=${PACKAGE-default}
3123 case $enableval in
3124 yes) enable_fast_install=yes ;;
3125 no) 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   ;;
3137 esac
3138 else
3139   enable_fast_install=yes
3140 fi;
3141
3142 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3143 if test "${with_gnu_ld+set}" = set; then
3144   withval="$with_gnu_ld"
3145   test "$withval" = no || with_gnu_ld=yes
3146 else
3147   with_gnu_ld=no
3148 fi;
3149 ac_prog=ld
3150 if 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
3153 echo $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
3181 elif test "$with_gnu_ld" = yes; then
3182   echo "$as_me:$LINENO: checking for GNU ld" >&5
3183 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3184 else
3185   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3186 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3187 fi
3188 if test "${lt_cv_path_LD+set}" = set; then
3189   echo $ECHO_N "(cached) $ECHO_C" >&6
3190 else
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"
3208 else
3209   lt_cv_path_LD="$LD" # Let the user override the test with a path.
3210 fi
3211 fi
3212
3213 LD="$lt_cv_path_LD"
3214 if test -n "$LD"; then
3215   echo "$as_me:$LINENO: result: $LD" >&5
3216 echo "${ECHO_T}$LD" >&6
3217 else
3218   echo "$as_me:$LINENO: result: no" >&5
3219 echo "${ECHO_T}no" >&6
3220 fi
3221 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3222 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3223    { (exit 1); exit 1; }; }
3224 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3225 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3226 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3227   echo $ECHO_N "(cached) $ECHO_C" >&6
3228 else
3229   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3230 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3231   lt_cv_prog_gnu_ld=yes
3232 else
3233   lt_cv_prog_gnu_ld=no
3234 fi
3235 fi
3236 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3237 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3238 with_gnu_ld=$lt_cv_prog_gnu_ld
3239
3240
3241 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3242 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3243 if test "${lt_cv_ld_reload_flag+set}" = set; then
3244   echo $ECHO_N "(cached) $ECHO_C" >&6
3245 else
3246   lt_cv_ld_reload_flag='-r'
3247 fi
3248 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3249 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3250 reload_flag=$lt_cv_ld_reload_flag
3251 test -n "$reload_flag" && reload_flag=" $reload_flag"
3252
3253 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3254 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3255 if test "${lt_cv_path_NM+set}" = set; then
3256   echo $ECHO_N "(cached) $ECHO_C" >&6
3257 else
3258   if test -n "$NM"; then
3259   # Let the user override the test.
3260   lt_cv_path_NM="$NM"
3261 else
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
3285 fi
3286 fi
3287
3288 NM="$lt_cv_path_NM"
3289 echo "$as_me:$LINENO: result: $NM" >&5
3290 echo "${ECHO_T}$NM" >&6
3291
3292 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3293 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3294 LN_S=$as_ln_s
3295 if test "$LN_S" = "ln -s"; then
3296   echo "$as_me:$LINENO: result: yes" >&5
3297 echo "${ECHO_T}yes" >&6
3298 else
3299   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3300 echo "${ECHO_T}no, using $LN_S" >&6
3301 fi
3302
3303 echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
3304 echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
3305 if test "${lt_cv_deplibs_check_method+set}" = set; then
3306   echo $ECHO_N "(cached) $ECHO_C" >&6
3307 else
3308   lt_cv_file_magic_cmd='$MAGIC_CMD'
3309 lt_cv_file_magic_test_file=
3310 lt_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
3322 case $host_os in
3323 aix*)
3324   lt_cv_deplibs_check_method=pass_all
3325   ;;
3326
3327 beos*)
3328   lt_cv_deplibs_check_method=pass_all
3329   ;;
3330
3331 bsdi4*)
3332   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3333   lt_cv_file_magic_cmd='/usr/bin/file -L'
3334   lt_cv_file_magic_test_file=/shlib/libc.so
3335   ;;
3336
3337 cygwin* | mingw* |pw32*)
3338   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3339   lt_cv_file_magic_cmd='$OBJDUMP -f'
3340   ;;
3341
3342 darwin* | rhapsody*)
3343   # this will be overwritten by pass_all, but leave it in just in case
3344   lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3345   lt_cv_file_magic_cmd='/usr/bin/file -L'
3346   case "$host_os" in
3347   rhapsody* | darwin1.012)
3348     lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
3349     ;;
3350   *) # Darwin 1.3 on
3351     lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3352     ;;
3353   esac
3354   lt_cv_deplibs_check_method=pass_all
3355   ;;
3356
3357 freebsd* | kfreebsd*-gnu)
3358   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3359     case $host_cpu in
3360     i*86 )
3361       # Not sure whether the presence of OpenBSD here was a mistake.
3362       # Let's accept both of them until this is cleared up.
3363       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3364       lt_cv_file_magic_cmd=/usr/bin/file
3365       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3366       ;;
3367     esac
3368   else
3369     lt_cv_deplibs_check_method=pass_all
3370   fi
3371   ;;
3372
3373 gnu*)
3374   lt_cv_deplibs_check_method=pass_all
3375   ;;
3376
3377 hpux10.20*|hpux11*)
3378   case $host_cpu in
3379   hppa*)
3380     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3381     lt_cv_file_magic_cmd=/usr/bin/file
3382     lt_cv_file_magic_test_file=/usr/lib/libc.sl
3383     ;;
3384   ia64*)
3385     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3386     lt_cv_file_magic_cmd=/usr/bin/file
3387     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3388     ;;
3389   esac
3390   ;;
3391
3392 irix5* | irix6*)
3393   case $host_os in
3394   irix5*)
3395     # this will be overridden with pass_all, but let us keep it just in case
3396     lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3397     ;;
3398   *)
3399     case $LD in
3400     *-32|*"-32 ") libmagic=32-bit;;
3401     *-n32|*"-n32 ") libmagic=N32;;
3402     *-64|*"-64 ") libmagic=64-bit;;
3403     *) libmagic=never-match;;
3404     esac
3405     # this will be overridden with pass_all, but let us keep it just in case
3406     lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3407     ;;
3408   esac
3409   lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3410   lt_cv_deplibs_check_method=pass_all
3411   ;;
3412
3413 # This must be Linux ELF.
3414 linux-gnu*)
3415   lt_cv_deplibs_check_method=pass_all
3416   ;;
3417
3418 netbsd* | knetbsd*-gnu)
3419   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3420     lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
3421   else
3422     lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
3423   fi
3424   ;;
3425
3426 newsos6)
3427   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3428   lt_cv_file_magic_cmd=/usr/bin/file
3429   lt_cv_file_magic_test_file=/usr/lib/libnls.so
3430   ;;
3431
3432 osf3* | osf4* | osf5*)
3433   # this will be overridden with pass_all, but let us keep it just in case
3434   lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3435   lt_cv_file_magic_test_file=/shlib/libc.so
3436   lt_cv_deplibs_check_method=pass_all
3437   ;;
3438
3439 sco3.2v5*)
3440   lt_cv_deplibs_check_method=pass_all
3441   ;;
3442
3443 solaris*)
3444   lt_cv_deplibs_check_method=pass_all
3445   lt_cv_file_magic_test_file=/lib/libc.so
3446   ;;
3447
3448 sysv5uw[78]* | sysv4*uw2*)
3449   lt_cv_deplibs_check_method=pass_all
3450   ;;
3451
3452 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3453   case $host_vendor in
3454   ncr)
3455     lt_cv_deplibs_check_method=pass_all
3456     ;;
3457   motorola)
3458     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]'
3459     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3460     ;;
3461   esac
3462   ;;
3463 esac
3464
3465 fi
3466 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3467 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3468 file_magic_cmd=$lt_cv_file_magic_cmd
3469 deplibs_check_method=$lt_cv_deplibs_check_method
3470
3471
3472
3473
3474 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
3475
3476 # find the maximum length of command line arguments
3477 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
3478 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
3479 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
3480   echo $ECHO_N "(cached) $ECHO_C" >&6
3481 else
3482     i=0
3483   teststring="ABCD"
3484
3485   case $build_os in
3486   msdosdjgpp*)
3487     # On DJGPP, this test can blow up pretty badly due to problems in libc
3488     # (any single argument exceeding 2000 bytes causes a buffer overrun
3489     # during glob expansion).  Even if it were fixed, the result of this
3490     # check would be larger than it should be.
3491     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
3492     ;;
3493
3494   cygwin* | mingw*)
3495     # On Win9x/ME, this test blows up -- it succeeds, but takes
3496     # about 5 minutes as the teststring grows exponentially.
3497     # Worse, since 9x/ME are not pre-emptively multitasking,
3498     # you end up with a "frozen" computer, even though with patience
3499     # the test eventually succeeds (with a max line length of 256k).
3500     # Instead, let's just punt: use the minimum linelength reported by
3501     # all of the supported platforms: 8192 (on NT/2K/XP).
3502     lt_cv_sys_max_cmd_len=8192;
3503     ;;
3504
3505   amigaos*)
3506     # On AmigaOS with pdksh, this test takes hours, literally.
3507     # So we just punt and use a minimum line length of 8192.
3508     lt_cv_sys_max_cmd_len=8192;
3509     ;;
3510
3511   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
3512     # This has been around since 386BSD, at least.  Likely further.
3513     if test -x /sbin/sysctl; then
3514       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
3515     elif test -x /usr/sbin/sysctl; then
3516       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
3517     else
3518       lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
3519     fi
3520     # And add a safety zone
3521     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
3522     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
3523     ;;
3524   esac
3525
3526 fi
3527
3528 if test -n "$lt_cv_sys_max_cmd_len" ; then
3529   echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
3530 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
3531 else
3532   echo "$as_me:$LINENO: result: none" >&5
3533 echo "${ECHO_T}none" >&6
3534 fi
3535
3536
3537 # Only perform the check for file, if the check method requires it
3538 case $deplibs_check_method in
3539 file_magic*)
3540   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
3541     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
3542 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
3543 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3544   echo $ECHO_N "(cached) $ECHO_C" >&6
3545 else
3546   case $MAGIC_CMD in
3547   /*)
3548   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3549   ;;
3550   ?:/*)
3551   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3552   ;;
3553   *)
3554   ac_save_MAGIC_CMD="$MAGIC_CMD"
3555   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
3556   ac_dummy="/usr/bin:$PATH"
3557   for ac_dir in $ac_dummy; do
3558     test -z "$ac_dir" && ac_dir=.
3559     if test -f $ac_dir/${ac_tool_prefix}file; then
3560       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
3561       if test -n "$file_magic_test_file"; then
3562         case $deplibs_check_method in
3563         "file_magic "*)
3564           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3565           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3566           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3567             egrep "$file_magic_regex" > /dev/null; then
3568             :
3569           else
3570             cat <<EOF 1>&2
3571
3572 *** Warning: the command libtool uses to detect shared libraries,
3573 *** $file_magic_cmd, produces output that libtool cannot recognize.
3574 *** The result is that libtool may fail to recognize shared libraries
3575 *** as such.  This will affect the creation of libtool libraries that
3576 *** depend on shared libraries, but programs linked with such libtool
3577 *** libraries will work regardless of this problem.  Nevertheless, you
3578 *** may want to report the problem to your system manager and/or to
3579 *** bug-libtool@gnu.org
3580
3581 EOF
3582           fi ;;
3583         esac
3584       fi
3585       break
3586     fi
3587   done
3588   IFS="$ac_save_ifs"
3589   MAGIC_CMD="$ac_save_MAGIC_CMD"
3590   ;;
3591 esac
3592 fi
3593
3594 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3595 if test -n "$MAGIC_CMD"; then
3596   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
3597 echo "${ECHO_T}$MAGIC_CMD" >&6
3598 else
3599   echo "$as_me:$LINENO: result: no" >&5
3600 echo "${ECHO_T}no" >&6
3601 fi
3602
3603 if test -z "$lt_cv_path_MAGIC_CMD"; then
3604   if test -n "$ac_tool_prefix"; then
3605     echo "$as_me:$LINENO: checking for file" >&5
3606 echo $ECHO_N "checking for file... $ECHO_C" >&6
3607 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3608   echo $ECHO_N "(cached) $ECHO_C" >&6
3609 else
3610   case $MAGIC_CMD in
3611   /*)
3612   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3613   ;;
3614   ?:/*)
3615   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3616   ;;
3617   *)
3618   ac_save_MAGIC_CMD="$MAGIC_CMD"
3619   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
3620   ac_dummy="/usr/bin:$PATH"
3621   for ac_dir in $ac_dummy; do
3622     test -z "$ac_dir" && ac_dir=.
3623     if test -f $ac_dir/file; then
3624       lt_cv_path_MAGIC_CMD="$ac_dir/file"
3625       if test -n "$file_magic_test_file"; then
3626         case $deplibs_check_method in
3627         "file_magic "*)
3628           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3629           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3630           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3631             egrep "$file_magic_regex" > /dev/null; then
3632             :
3633           else
3634             cat <<EOF 1>&2
3635
3636 *** Warning: the command libtool uses to detect shared libraries,
3637 *** $file_magic_cmd, produces output that libtool cannot recognize.
3638 *** The result is that libtool may fail to recognize shared libraries
3639 *** as such.  This will affect the creation of libtool libraries that
3640 *** depend on shared libraries, but programs linked with such libtool
3641 *** libraries will work regardless of this problem.  Nevertheless, you
3642 *** may want to report the problem to your system manager and/or to
3643 *** bug-libtool@gnu.org
3644
3645 EOF
3646           fi ;;
3647         esac
3648       fi
3649       break
3650     fi
3651   done
3652   IFS="$ac_save_ifs"
3653   MAGIC_CMD="$ac_save_MAGIC_CMD"
3654   ;;
3655 esac
3656 fi
3657
3658 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3659 if test -n "$MAGIC_CMD"; then
3660   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
3661 echo "${ECHO_T}$MAGIC_CMD" >&6
3662 else
3663   echo "$as_me:$LINENO: result: no" >&5
3664 echo "${ECHO_T}no" >&6
3665 fi
3666
3667   else
3668     MAGIC_CMD=:
3669   fi
3670 fi
3671
3672   fi
3673   ;;
3674 esac
3675
3676 if test -n "$ac_tool_prefix"; then
3677   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3678 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3679 echo "$as_me:$LINENO: checking for $ac_word" >&5
3680 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3681 if test "${ac_cv_prog_RANLIB+set}" = set; then
3682   echo $ECHO_N "(cached) $ECHO_C" >&6
3683 else
3684   if test -n "$RANLIB"; then
3685   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3686 else
3687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3688 for as_dir in $PATH
3689 do
3690   IFS=$as_save_IFS
3691   test -z "$as_dir" && as_dir=.
3692   for ac_exec_ext in '' $ac_executable_extensions; do
3693   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3694     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3695     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3696     break 2
3697   fi
3698 done
3699 done
3700
3701 fi
3702 fi
3703 RANLIB=$ac_cv_prog_RANLIB
3704 if test -n "$RANLIB"; then
3705   echo "$as_me:$LINENO: result: $RANLIB" >&5
3706 echo "${ECHO_T}$RANLIB" >&6
3707 else
3708   echo "$as_me:$LINENO: result: no" >&5
3709 echo "${ECHO_T}no" >&6
3710 fi
3711
3712 fi
3713 if test -z "$ac_cv_prog_RANLIB"; then
3714   ac_ct_RANLIB=$RANLIB
3715   # Extract the first word of "ranlib", so it can be a program name with args.
3716 set dummy ranlib; ac_word=$2
3717 echo "$as_me:$LINENO: checking for $ac_word" >&5
3718 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3719 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3720   echo $ECHO_N "(cached) $ECHO_C" >&6
3721 else
3722   if test -n "$ac_ct_RANLIB"; then
3723   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3724 else
3725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3726 for as_dir in $PATH
3727 do
3728   IFS=$as_save_IFS
3729   test -z "$as_dir" && as_dir=.
3730   for ac_exec_ext in '' $ac_executable_extensions; do
3731   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3732     ac_cv_prog_ac_ct_RANLIB="ranlib"
3733     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3734     break 2
3735   fi
3736 done
3737 done
3738
3739   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3740 fi
3741 fi
3742 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3743 if test -n "$ac_ct_RANLIB"; then
3744   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3745 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3746 else
3747   echo "$as_me:$LINENO: result: no" >&5
3748 echo "${ECHO_T}no" >&6
3749 fi
3750
3751   RANLIB=$ac_ct_RANLIB
3752 else
3753   RANLIB="$ac_cv_prog_RANLIB"
3754 fi
3755
3756 if test -n "$ac_tool_prefix"; then
3757   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3758 set dummy ${ac_tool_prefix}strip; ac_word=$2
3759 echo "$as_me:$LINENO: checking for $ac_word" >&5
3760 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3761 if test "${ac_cv_prog_STRIP+set}" = set; then
3762   echo $ECHO_N "(cached) $ECHO_C" >&6
3763 else
3764   if test -n "$STRIP"; then
3765   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3766 else
3767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3768 for as_dir in $PATH
3769 do
3770   IFS=$as_save_IFS
3771   test -z "$as_dir" && as_dir=.
3772   for ac_exec_ext in '' $ac_executable_extensions; do
3773   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3774     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3775     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3776     break 2
3777   fi
3778 done
3779 done
3780
3781 fi
3782 fi
3783 STRIP=$ac_cv_prog_STRIP
3784 if test -n "$STRIP"; then
3785   echo "$as_me:$LINENO: result: $STRIP" >&5
3786 echo "${ECHO_T}$STRIP" >&6
3787 else
3788   echo "$as_me:$LINENO: result: no" >&5
3789 echo "${ECHO_T}no" >&6
3790 fi
3791
3792 fi
3793 if test -z "$ac_cv_prog_STRIP"; then
3794   ac_ct_STRIP=$STRIP
3795   # Extract the first word of "strip", so it can be a program name with args.
3796 set dummy strip; ac_word=$2
3797 echo "$as_me:$LINENO: checking for $ac_word" >&5
3798 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3799 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3800   echo $ECHO_N "(cached) $ECHO_C" >&6
3801 else
3802   if test -n "$ac_ct_STRIP"; then
3803   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3804 else
3805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3806 for as_dir in $PATH
3807 do
3808   IFS=$as_save_IFS
3809   test -z "$as_dir" && as_dir=.
3810   for ac_exec_ext in '' $ac_executable_extensions; do
3811   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3812     ac_cv_prog_ac_ct_STRIP="strip"
3813     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3814     break 2
3815   fi
3816 done
3817 done
3818
3819   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
3820 fi
3821 fi
3822 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3823 if test -n "$ac_ct_STRIP"; then
3824   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3825 echo "${ECHO_T}$ac_ct_STRIP" >&6
3826 else
3827   echo "$as_me:$LINENO: result: no" >&5
3828 echo "${ECHO_T}no" >&6
3829 fi
3830
3831   STRIP=$ac_ct_STRIP
3832 else
3833   STRIP="$ac_cv_prog_STRIP"
3834 fi
3835
3836
3837 # Check for any special flags to pass to ltconfig.
3838 libtool_flags="--cache-file=$cache_file"
3839 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
3840 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
3841 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
3842 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
3843 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
3844
3845
3846 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3847 if test "${enable_libtool_lock+set}" = set; then
3848   enableval="$enable_libtool_lock"
3849
3850 fi;
3851 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
3852 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
3853
3854
3855 # Check whether --with-pic or --without-pic was given.
3856 if test "${with_pic+set}" = set; then
3857   withval="$with_pic"
3858   pic_mode="$withval"
3859 else
3860   pic_mode=default
3861 fi;
3862 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
3863 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
3864
3865 # Some flags need to be propagated to the compiler or linker for good
3866 # libtool support.
3867 case $host in
3868 *-*-irix6*)
3869   # Find out which ABI we are using.
3870   echo '#line 3870 "configure"' > conftest.$ac_ext
3871   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3872   (eval $ac_compile) 2>&5
3873   ac_status=$?
3874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3875   (exit $ac_status); }; then
3876    if test "$lt_cv_prog_gnu_ld" = yes; then
3877     case `/usr/bin/file conftest.$ac_objext` in
3878     *32-bit*)
3879       LD="${LD-ld} -melf32bsmip"
3880       ;;
3881     *N32*)
3882       LD="${LD-ld} -melf32bmipn32"
3883       ;;
3884     *64-bit*)
3885       LD="${LD-ld} -melf64bmip"
3886       ;;
3887     esac
3888    else
3889     case `/usr/bin/file conftest.$ac_objext` in
3890     *32-bit*)
3891       LD="${LD-ld} -32"
3892       ;;
3893     *N32*)
3894       LD="${LD-ld} -n32"
3895       ;;
3896     *64-bit*)
3897       LD="${LD-ld} -64"
3898       ;;
3899     esac
3900    fi
3901   fi
3902   rm -rf conftest*
3903   ;;
3904
3905 ia64-*-hpux*)
3906   # Find out which ABI we are using.
3907   echo 'int i;' > conftest.$ac_ext
3908   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3909   (eval $ac_compile) 2>&5
3910   ac_status=$?
3911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3912   (exit $ac_status); }; then
3913     case "`/usr/bin/file conftest.o`" in
3914     *ELF-32*)
3915       HPUX_IA64_MODE="32"
3916       ;;
3917     *ELF-64*)
3918       HPUX_IA64_MODE="64"
3919       ;;
3920     esac
3921   fi
3922   rm -rf conftest*
3923   ;;
3924
3925 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
3926   # Find out which ABI we are using.
3927   echo 'int i;' > conftest.$ac_ext
3928   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3929   (eval $ac_compile) 2>&5
3930   ac_status=$?
3931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3932   (exit $ac_status); }; then
3933     case "`/usr/bin/file conftest.o`" in
3934     *32-bit*)
3935       case $host in
3936         x86_64-*linux*)
3937           LD="${LD-ld} -m elf_i386"
3938           ;;
3939         ppc64-*linux*|powerpc64-*linux*)
3940           LD="${LD-ld} -m elf32ppclinux"
3941           ;;
3942         s390x-*linux*)
3943           LD="${LD-ld} -m elf_s390"
3944           ;;
3945         sparc64-*linux*)
3946           LD="${LD-ld} -m elf32_sparc"
3947           ;;
3948       esac
3949       ;;
3950     *64-bit*)
3951       case $host in
3952         x86_64-*linux*)
3953           LD="${LD-ld} -m elf_x86_64"
3954           ;;
3955         ppc*-*linux*|powerpc*-*linux*)
3956           LD="${LD-ld} -m elf64ppc"
3957           ;;
3958         s390*-*linux*)
3959           LD="${LD-ld} -m elf64_s390"
3960           ;;
3961         sparc*-*linux*)
3962           LD="${LD-ld} -m elf64_sparc"
3963           ;;
3964       esac
3965       ;;
3966     esac
3967   fi
3968   rm -rf conftest*
3969   ;;
3970
3971 *-*-sco3.2v5*)
3972   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3973   SAVE_CFLAGS="$CFLAGS"
3974   CFLAGS="$CFLAGS -belf"
3975   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
3976 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
3977 if test "${lt_cv_cc_needs_belf+set}" = set; then
3978   echo $ECHO_N "(cached) $ECHO_C" >&6
3979 else
3980
3981
3982      ac_ext=c
3983 ac_cpp='$CPP $CPPFLAGS'
3984 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3985 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3986 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3987
3988      cat >conftest.$ac_ext <<_ACEOF
3989 /* confdefs.h.  */
3990 _ACEOF
3991 cat confdefs.h >>conftest.$ac_ext
3992 cat >>conftest.$ac_ext <<_ACEOF
3993 /* end confdefs.h.  */
3994
3995 int
3996 main ()
3997 {
3998
3999   ;
4000   return 0;
4001 }
4002 _ACEOF
4003 rm -f conftest.$ac_objext conftest$ac_exeext
4004 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4005   (eval $ac_link) 2>conftest.er1
4006   ac_status=$?
4007   grep -v '^ *+' conftest.er1 >conftest.err
4008   rm -f conftest.er1
4009   cat conftest.err >&5
4010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4011   (exit $ac_status); } &&
4012          { ac_try='test -z "$ac_c_werror_flag"
4013                          || test ! -s conftest.err'
4014   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4015   (eval $ac_try) 2>&5
4016   ac_status=$?
4017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4018   (exit $ac_status); }; } &&
4019          { ac_try='test -s conftest$ac_exeext'
4020   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4021   (eval $ac_try) 2>&5
4022   ac_status=$?
4023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4024   (exit $ac_status); }; }; then
4025   lt_cv_cc_needs_belf=yes
4026 else
4027   echo "$as_me: failed program was:" >&5
4028 sed 's/^/| /' conftest.$ac_ext >&5
4029
4030 lt_cv_cc_needs_belf=no
4031 fi
4032 rm -f conftest.err conftest.$ac_objext \
4033       conftest$ac_exeext conftest.$ac_ext
4034      ac_ext=c
4035 ac_cpp='$CPP $CPPFLAGS'
4036 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4037 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4038 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4039
4040 fi
4041 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4042 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4043   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4044     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4045     CFLAGS="$SAVE_CFLAGS"
4046   fi
4047   ;;
4048
4049
4050 esac
4051
4052
4053 # Save cache, so that ltconfig can load it
4054 cat >confcache <<\_ACEOF
4055 # This file is a shell script that caches the results of configure
4056 # tests run on this system so they can be shared between configure
4057 # scripts and configure runs, see configure's option --config-cache.
4058 # It is not useful on other systems.  If it contains results you don't
4059 # want to keep, you may remove or edit it.
4060 #
4061 # config.status only pays attention to the cache file if you give it
4062 # the --recheck option to rerun configure.
4063 #
4064 # `ac_cv_env_foo' variables (set or unset) will be overridden when
4065 # loading this file, other *unset* `ac_cv_foo' will be assigned the
4066 # following values.
4067
4068 _ACEOF
4069
4070 # The following way of writing the cache mishandles newlines in values,
4071 # but we know of no workaround that is simple, portable, and efficient.
4072 # So, don't put newlines in cache variables' values.
4073 # Ultrix sh set writes to stderr and can't be redirected directly,
4074 # and sets the high bit in the cache file unless we assign to the vars.
4075 {
4076   (set) 2>&1 |
4077     case `(ac_space=' '; set | grep ac_space) 2>&1` in
4078     *ac_space=\ *)
4079       # `set' does not quote correctly, so add quotes (double-quote
4080       # substitution turns \\\\ into \\, and sed turns \\ into \).
4081       sed -n \
4082         "s/'/'\\\\''/g;
4083           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4084       ;;
4085     *)
4086       # `set' quotes correctly as required by POSIX, so do not add quotes.
4087       sed -n \
4088         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
4089       ;;
4090     esac;
4091 } |
4092   sed '
4093      t clear
4094      : clear
4095      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4096      t end
4097      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4098      : end' >>confcache
4099 if diff $cache_file confcache >/dev/null 2>&1; then :; else
4100   if test -w $cache_file; then
4101     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
4102     cat confcache >$cache_file
4103   else
4104     echo "not updating unwritable cache $cache_file"
4105   fi
4106 fi
4107 rm -f confcache
4108
4109 # Actually configure libtool.  ac_aux_dir is where install-sh is found.
4110 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
4111 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
4112 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
4113 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
4114 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
4115 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
4116 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
4117 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
4118 || { { echo "$as_me:$LINENO: error: libtool configure failed" >&5
4119 echo "$as_me: error: libtool configure failed" >&2;}
4120    { (exit 1); exit 1; }; }
4121
4122 # Reload cache, that may have been modified by ltconfig
4123 if test -r "$cache_file"; then
4124   # Some versions of bash will fail to source /dev/null (special
4125   # files actually), so we avoid doing that.
4126   if test -f "$cache_file"; then
4127     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
4128 echo "$as_me: loading cache $cache_file" >&6;}
4129     case $cache_file in
4130       [\\/]* | ?:[\\/]* ) . $cache_file;;
4131       *)                      . ./$cache_file;;
4132     esac
4133   fi
4134 else
4135   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
4136 echo "$as_me: creating cache $cache_file" >&6;}
4137   >$cache_file
4138 fi
4139
4140
4141 # This can be used to rebuild libtool when needed
4142 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
4143
4144 # Always use our own libtool.
4145 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
4146
4147 # Redirect the config.log output again, so that the ltconfig log is not
4148 # clobbered by the next message.
4149 exec 5>>./config.log
4150
4151
4152
4153
4154
4155
4156
4157 # Check whether --enable-targets or --disable-targets was given.
4158 if test "${enable_targets+set}" = set; then
4159   enableval="$enable_targets"
4160   case "${enableval}" in
4161   yes | "") { { echo "$as_me:$LINENO: error: enable-targets option must specify target names or 'all'" >&5
4162 echo "$as_me: error: enable-targets option must specify target names or 'all'" >&2;}
4163    { (exit 1); exit 1; }; }
4164             ;;
4165   no)       enable_targets= ;;
4166   *)        enable_targets=$enableval ;;
4167 esac
4168 fi; # Check whether --enable-commonbfdlib or --disable-commonbfdlib was given.
4169 if test "${enable_commonbfdlib+set}" = set; then
4170   enableval="$enable_commonbfdlib"
4171   case "${enableval}" in
4172   yes) commonbfdlib=true ;;
4173   no)  commonbfdlib=false ;;
4174   *)   { { echo "$as_me:$LINENO: error: bad value ${enableval} for BFD commonbfdlib option" >&5
4175 echo "$as_me: error: bad value ${enableval} for BFD commonbfdlib option" >&2;}
4176    { (exit 1); exit 1; }; } ;;
4177 esac
4178 fi;
4179
4180 GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
4181
4182 # Check whether --enable-werror or --disable-werror was given.
4183 if test "${enable_werror+set}" = set; then
4184   enableval="$enable_werror"
4185   case "${enableval}" in
4186      yes | y) ERROR_ON_WARNING="yes" ;;
4187      no | n)  ERROR_ON_WARNING="no" ;;
4188      *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-werror" >&5
4189 echo "$as_me: error: bad value ${enableval} for --enable-werror" >&2;}
4190    { (exit 1); exit 1; }; } ;;
4191    esac
4192 fi;
4193
4194 # Enable -Werror by default when using gcc
4195 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
4196     ERROR_ON_WARNING=yes
4197 fi
4198
4199 NO_WERROR=
4200 if test "${ERROR_ON_WARNING}" = yes ; then
4201     GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror"
4202     NO_WERROR="-Wno-error"
4203 fi
4204
4205 if test "${GCC}" = yes ; then
4206   WARN_CFLAGS="${GCC_WARN_CFLAGS}"
4207 fi
4208
4209 # Check whether --enable-build-warnings or --disable-build-warnings was given.
4210 if test "${enable_build_warnings+set}" = set; then
4211   enableval="$enable_build_warnings"
4212   case "${enableval}" in
4213   yes)  WARN_CFLAGS="${GCC_WARN_CFLAGS}";;
4214   no)   if test "${GCC}" = yes ; then
4215           WARN_CFLAGS="-w"
4216         fi;;
4217   ,*)   t=`echo "${enableval}" | sed -e "s/,/ /g"`
4218         WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}";;
4219   *,)   t=`echo "${enableval}" | sed -e "s/,/ /g"`
4220         WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}";;
4221   *)    WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`;;
4222 esac
4223 fi;
4224
4225 if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
4226   echo "Setting warning flags = $WARN_CFLAGS" 6>&1
4227 fi
4228
4229
4230
4231
4232
4233           ac_config_headers="$ac_config_headers config.h:config.in"
4234
4235
4236 if test -z "$target" ; then
4237     { { echo "$as_me:$LINENO: error: Unrecognized target system type; please check config.sub." >&5
4238 echo "$as_me: error: Unrecognized target system type; please check config.sub." >&2;}
4239    { (exit 1); exit 1; }; }
4240 fi
4241 if test -z "$host" ; then
4242     { { echo "$as_me:$LINENO: error: Unrecognized host system type; please check config.sub." >&5
4243 echo "$as_me: error: Unrecognized host system type; please check config.sub." >&2;}
4244    { (exit 1); exit 1; }; }
4245 fi
4246
4247 ac_ext=c
4248 ac_cpp='$CPP $CPPFLAGS'
4249 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4250 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4251 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4252 if test -n "$ac_tool_prefix"; then
4253   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4254 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4255 echo "$as_me:$LINENO: checking for $ac_word" >&5
4256 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4257 if test "${ac_cv_prog_CC+set}" = set; then
4258   echo $ECHO_N "(cached) $ECHO_C" >&6
4259 else
4260   if test -n "$CC"; then
4261   ac_cv_prog_CC="$CC" # Let the user override the test.
4262 else
4263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4264 for as_dir in $PATH
4265 do
4266   IFS=$as_save_IFS
4267   test -z "$as_dir" && as_dir=.
4268   for ac_exec_ext in '' $ac_executable_extensions; do
4269   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4270     ac_cv_prog_CC="${ac_tool_prefix}gcc"
4271     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4272     break 2
4273   fi
4274 done
4275 done
4276
4277 fi
4278 fi
4279 CC=$ac_cv_prog_CC
4280 if test -n "$CC"; then
4281   echo "$as_me:$LINENO: result: $CC" >&5
4282 echo "${ECHO_T}$CC" >&6
4283 else
4284   echo "$as_me:$LINENO: result: no" >&5
4285 echo "${ECHO_T}no" >&6
4286 fi
4287
4288 fi
4289 if test -z "$ac_cv_prog_CC"; then
4290   ac_ct_CC=$CC
4291   # Extract the first word of "gcc", so it can be a program name with args.
4292 set dummy gcc; ac_word=$2
4293 echo "$as_me:$LINENO: checking for $ac_word" >&5
4294 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4295 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4296   echo $ECHO_N "(cached) $ECHO_C" >&6
4297 else
4298   if test -n "$ac_ct_CC"; then
4299   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4300 else
4301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4302 for as_dir in $PATH
4303 do
4304   IFS=$as_save_IFS
4305   test -z "$as_dir" && as_dir=.
4306   for ac_exec_ext in '' $ac_executable_extensions; do
4307   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4308     ac_cv_prog_ac_ct_CC="gcc"
4309     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4310     break 2
4311   fi
4312 done
4313 done
4314
4315 fi
4316 fi
4317 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4318 if test -n "$ac_ct_CC"; then
4319   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4320 echo "${ECHO_T}$ac_ct_CC" >&6
4321 else
4322   echo "$as_me:$LINENO: result: no" >&5
4323 echo "${ECHO_T}no" >&6
4324 fi
4325
4326   CC=$ac_ct_CC
4327 else
4328   CC="$ac_cv_prog_CC"
4329 fi
4330
4331 if test -z "$CC"; then
4332   if test -n "$ac_tool_prefix"; then
4333   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4334 set dummy ${ac_tool_prefix}cc; ac_word=$2
4335 echo "$as_me:$LINENO: checking for $ac_word" >&5
4336 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4337 if test "${ac_cv_prog_CC+set}" = set; then
4338   echo $ECHO_N "(cached) $ECHO_C" >&6
4339 else
4340   if test -n "$CC"; then
4341   ac_cv_prog_CC="$CC" # Let the user override the test.
4342 else
4343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4344 for as_dir in $PATH
4345 do
4346   IFS=$as_save_IFS
4347   test -z "$as_dir" && as_dir=.
4348   for ac_exec_ext in '' $ac_executable_extensions; do
4349   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4350     ac_cv_prog_CC="${ac_tool_prefix}cc"
4351     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4352     break 2
4353   fi
4354 done
4355 done
4356
4357 fi
4358 fi
4359 CC=$ac_cv_prog_CC
4360 if test -n "$CC"; then
4361   echo "$as_me:$LINENO: result: $CC" >&5
4362 echo "${ECHO_T}$CC" >&6
4363 else
4364   echo "$as_me:$LINENO: result: no" >&5
4365 echo "${ECHO_T}no" >&6
4366 fi
4367
4368 fi
4369 if test -z "$ac_cv_prog_CC"; then
4370   ac_ct_CC=$CC
4371   # Extract the first word of "cc", so it can be a program name with args.
4372 set dummy cc; ac_word=$2
4373 echo "$as_me:$LINENO: checking for $ac_word" >&5
4374 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4375 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4376   echo $ECHO_N "(cached) $ECHO_C" >&6
4377 else
4378   if test -n "$ac_ct_CC"; then
4379   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4380 else
4381 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4382 for as_dir in $PATH
4383 do
4384   IFS=$as_save_IFS
4385   test -z "$as_dir" && as_dir=.
4386   for ac_exec_ext in '' $ac_executable_extensions; do
4387   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4388     ac_cv_prog_ac_ct_CC="cc"
4389     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4390     break 2
4391   fi
4392 done
4393 done
4394
4395 fi
4396 fi
4397 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4398 if test -n "$ac_ct_CC"; then
4399   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4400 echo "${ECHO_T}$ac_ct_CC" >&6
4401 else
4402   echo "$as_me:$LINENO: result: no" >&5
4403 echo "${ECHO_T}no" >&6
4404 fi
4405
4406   CC=$ac_ct_CC
4407 else
4408   CC="$ac_cv_prog_CC"
4409 fi
4410
4411 fi
4412 if test -z "$CC"; then
4413   # Extract the first word of "cc", so it can be a program name with args.
4414 set dummy cc; ac_word=$2
4415 echo "$as_me:$LINENO: checking for $ac_word" >&5
4416 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4417 if test "${ac_cv_prog_CC+set}" = set; then
4418   echo $ECHO_N "(cached) $ECHO_C" >&6
4419 else
4420   if test -n "$CC"; then
4421   ac_cv_prog_CC="$CC" # Let the user override the test.
4422 else
4423   ac_prog_rejected=no
4424 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4425 for as_dir in $PATH
4426 do
4427   IFS=$as_save_IFS
4428   test -z "$as_dir" && as_dir=.
4429   for ac_exec_ext in '' $ac_executable_extensions; do
4430   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4431     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4432        ac_prog_rejected=yes
4433        continue
4434      fi
4435     ac_cv_prog_CC="cc"
4436     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4437     break 2
4438   fi
4439 done
4440 done
4441
4442 if test $ac_prog_rejected = yes; then
4443   # We found a bogon in the path, so make sure we never use it.
4444   set dummy $ac_cv_prog_CC
4445   shift
4446   if test $# != 0; then
4447     # We chose a different compiler from the bogus one.
4448     # However, it has the same basename, so the bogon will be chosen
4449     # first if we set CC to just the basename; use the full file name.
4450     shift
4451     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4452   fi
4453 fi
4454 fi
4455 fi
4456 CC=$ac_cv_prog_CC
4457 if test -n "$CC"; then
4458   echo "$as_me:$LINENO: result: $CC" >&5
4459 echo "${ECHO_T}$CC" >&6
4460 else
4461   echo "$as_me:$LINENO: result: no" >&5
4462 echo "${ECHO_T}no" >&6
4463 fi
4464
4465 fi
4466 if test -z "$CC"; then
4467   if test -n "$ac_tool_prefix"; then
4468   for ac_prog in cl
4469   do
4470     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4471 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4472 echo "$as_me:$LINENO: checking for $ac_word" >&5
4473 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4474 if test "${ac_cv_prog_CC+set}" = set; then
4475   echo $ECHO_N "(cached) $ECHO_C" >&6
4476 else
4477   if test -n "$CC"; then
4478   ac_cv_prog_CC="$CC" # Let the user override the test.
4479 else
4480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4481 for as_dir in $PATH
4482 do
4483   IFS=$as_save_IFS
4484   test -z "$as_dir" && as_dir=.
4485   for ac_exec_ext in '' $ac_executable_extensions; do
4486   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4487     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4488     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4489     break 2
4490   fi
4491 done
4492 done
4493
4494 fi
4495 fi
4496 CC=$ac_cv_prog_CC
4497 if test -n "$CC"; then
4498   echo "$as_me:$LINENO: result: $CC" >&5
4499 echo "${ECHO_T}$CC" >&6
4500 else
4501   echo "$as_me:$LINENO: result: no" >&5
4502 echo "${ECHO_T}no" >&6
4503 fi
4504
4505     test -n "$CC" && break
4506   done
4507 fi
4508 if test -z "$CC"; then
4509   ac_ct_CC=$CC
4510   for ac_prog in cl
4511 do
4512   # Extract the first word of "$ac_prog", so it can be a program name with args.
4513 set dummy $ac_prog; ac_word=$2
4514 echo "$as_me:$LINENO: checking for $ac_word" >&5
4515 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4516 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4517   echo $ECHO_N "(cached) $ECHO_C" >&6
4518 else
4519   if test -n "$ac_ct_CC"; then
4520   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4521 else
4522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4523 for as_dir in $PATH
4524 do
4525   IFS=$as_save_IFS
4526   test -z "$as_dir" && as_dir=.
4527   for ac_exec_ext in '' $ac_executable_extensions; do
4528   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4529     ac_cv_prog_ac_ct_CC="$ac_prog"
4530     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4531     break 2
4532   fi
4533 done
4534 done
4535
4536 fi
4537 fi
4538 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4539 if test -n "$ac_ct_CC"; then
4540   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4541 echo "${ECHO_T}$ac_ct_CC" >&6
4542 else
4543   echo "$as_me:$LINENO: result: no" >&5
4544 echo "${ECHO_T}no" >&6
4545 fi
4546
4547   test -n "$ac_ct_CC" && break
4548 done
4549
4550   CC=$ac_ct_CC
4551 fi
4552
4553 fi
4554
4555
4556 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4557 See \`config.log' for more details." >&5
4558 echo "$as_me: error: no acceptable C compiler found in \$PATH
4559 See \`config.log' for more details." >&2;}
4560    { (exit 1); exit 1; }; }
4561
4562 # Provide some information about the compiler.
4563 echo "$as_me:$LINENO:" \
4564      "checking for C compiler version" >&5
4565 ac_compiler=`set X $ac_compile; echo $2`
4566 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4567   (eval $ac_compiler --version </dev/null >&5) 2>&5
4568   ac_status=$?
4569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4570   (exit $ac_status); }
4571 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4572   (eval $ac_compiler -v </dev/null >&5) 2>&5
4573   ac_status=$?
4574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4575   (exit $ac_status); }
4576 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4577   (eval $ac_compiler -V </dev/null >&5) 2>&5
4578   ac_status=$?
4579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4580   (exit $ac_status); }
4581
4582 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4583 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
4584 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4585   echo $ECHO_N "(cached) $ECHO_C" >&6
4586 else
4587   cat >conftest.$ac_ext <<_ACEOF
4588 /* confdefs.h.  */
4589 _ACEOF
4590 cat confdefs.h >>conftest.$ac_ext
4591 cat >>conftest.$ac_ext <<_ACEOF
4592 /* end confdefs.h.  */
4593
4594 int
4595 main ()
4596 {
4597 #ifndef __GNUC__
4598        choke me
4599 #endif
4600
4601   ;
4602   return 0;
4603 }
4604 _ACEOF
4605 rm -f conftest.$ac_objext
4606 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4607   (eval $ac_compile) 2>conftest.er1
4608   ac_status=$?
4609   grep -v '^ *+' conftest.er1 >conftest.err
4610   rm -f conftest.er1
4611   cat conftest.err >&5
4612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4613   (exit $ac_status); } &&
4614          { ac_try='test -z "$ac_c_werror_flag"
4615                          || test ! -s conftest.err'
4616   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4617   (eval $ac_try) 2>&5
4618   ac_status=$?
4619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4620   (exit $ac_status); }; } &&
4621          { ac_try='test -s conftest.$ac_objext'
4622   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4623   (eval $ac_try) 2>&5
4624   ac_status=$?
4625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4626   (exit $ac_status); }; }; then
4627   ac_compiler_gnu=yes
4628 else
4629   echo "$as_me: failed program was:" >&5
4630 sed 's/^/| /' conftest.$ac_ext >&5
4631
4632 ac_compiler_gnu=no
4633 fi
4634 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4635 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4636
4637 fi
4638 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4639 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
4640 GCC=`test $ac_compiler_gnu = yes && echo yes`
4641 ac_test_CFLAGS=${CFLAGS+set}
4642 ac_save_CFLAGS=$CFLAGS
4643 CFLAGS="-g"
4644 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4645 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
4646 if test "${ac_cv_prog_cc_g+set}" = set; then
4647   echo $ECHO_N "(cached) $ECHO_C" >&6
4648 else
4649   cat >conftest.$ac_ext <<_ACEOF
4650 /* confdefs.h.  */
4651 _ACEOF
4652 cat confdefs.h >>conftest.$ac_ext
4653 cat >>conftest.$ac_ext <<_ACEOF
4654 /* end confdefs.h.  */
4655
4656 int
4657 main ()
4658 {
4659
4660   ;
4661   return 0;
4662 }
4663 _ACEOF
4664 rm -f conftest.$ac_objext
4665 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4666   (eval $ac_compile) 2>conftest.er1
4667   ac_status=$?
4668   grep -v '^ *+' conftest.er1 >conftest.err
4669   rm -f conftest.er1
4670   cat conftest.err >&5
4671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4672   (exit $ac_status); } &&
4673          { ac_try='test -z "$ac_c_werror_flag"
4674                          || test ! -s conftest.err'
4675   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4676   (eval $ac_try) 2>&5
4677   ac_status=$?
4678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4679   (exit $ac_status); }; } &&
4680          { ac_try='test -s conftest.$ac_objext'
4681   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4682   (eval $ac_try) 2>&5
4683   ac_status=$?
4684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4685   (exit $ac_status); }; }; then
4686   ac_cv_prog_cc_g=yes
4687 else
4688   echo "$as_me: failed program was:" >&5
4689 sed 's/^/| /' conftest.$ac_ext >&5
4690
4691 ac_cv_prog_cc_g=no
4692 fi
4693 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4694 fi
4695 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4696 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
4697 if test "$ac_test_CFLAGS" = set; then
4698   CFLAGS=$ac_save_CFLAGS
4699 elif test $ac_cv_prog_cc_g = yes; then
4700   if test "$GCC" = yes; then
4701     CFLAGS="-g -O2"
4702   else
4703     CFLAGS="-g"
4704   fi
4705 else
4706   if test "$GCC" = yes; then
4707     CFLAGS="-O2"
4708   else
4709     CFLAGS=
4710   fi
4711 fi
4712 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
4713 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
4714 if test "${ac_cv_prog_cc_stdc+set}" = set; then
4715   echo $ECHO_N "(cached) $ECHO_C" >&6
4716 else
4717   ac_cv_prog_cc_stdc=no
4718 ac_save_CC=$CC
4719 cat >conftest.$ac_ext <<_ACEOF
4720 /* confdefs.h.  */
4721 _ACEOF
4722 cat confdefs.h >>conftest.$ac_ext
4723 cat >>conftest.$ac_ext <<_ACEOF
4724 /* end confdefs.h.  */
4725 #include <stdarg.h>
4726 #include <stdio.h>
4727 #include <sys/types.h>
4728 #include <sys/stat.h>
4729 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4730 struct buf { int x; };
4731 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4732 static char *e (p, i)
4733      char **p;
4734      int i;
4735 {
4736   return p[i];
4737 }
4738 static char *f (char * (*g) (char **, int), char **p, ...)
4739 {
4740   char *s;
4741   va_list v;
4742   va_start (v,p);
4743   s = g (p, va_arg (v,int));
4744   va_end (v);
4745   return s;
4746 }
4747
4748 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4749    function prototypes and stuff, but not '\xHH' hex character constants.
4750    These don't provoke an error unfortunately, instead are silently treated
4751    as 'x'.  The following induces an error, until -std1 is added to get
4752    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4753    array size at least.  It's necessary to write '\x00'==0 to get something
4754    that's true only with -std1.  */
4755 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4756
4757 int test (int i, double x);
4758 struct s1 {int (*f) (int a);};
4759 struct s2 {int (*f) (double a);};
4760 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4761 int argc;
4762 char **argv;
4763 int
4764 main ()
4765 {
4766 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4767   ;
4768   return 0;
4769 }
4770 _ACEOF
4771 # Don't try gcc -ansi; that turns off useful extensions and
4772 # breaks some systems' header files.
4773 # AIX                   -qlanglvl=ansi
4774 # Ultrix and OSF/1      -std1
4775 # HP-UX 10.20 and later -Ae
4776 # HP-UX older versions  -Aa -D_HPUX_SOURCE
4777 # SVR4                  -Xc -D__EXTENSIONS__
4778 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4779 do
4780   CC="$ac_save_CC $ac_arg"
4781   rm -f conftest.$ac_objext
4782 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4783   (eval $ac_compile) 2>conftest.er1
4784   ac_status=$?
4785   grep -v '^ *+' conftest.er1 >conftest.err
4786   rm -f conftest.er1
4787   cat conftest.err >&5
4788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4789   (exit $ac_status); } &&
4790          { ac_try='test -z "$ac_c_werror_flag"
4791                          || test ! -s conftest.err'
4792   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4793   (eval $ac_try) 2>&5
4794   ac_status=$?
4795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4796   (exit $ac_status); }; } &&
4797          { ac_try='test -s conftest.$ac_objext'
4798   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4799   (eval $ac_try) 2>&5
4800   ac_status=$?
4801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4802   (exit $ac_status); }; }; then
4803   ac_cv_prog_cc_stdc=$ac_arg
4804 break
4805 else
4806   echo "$as_me: failed program was:" >&5
4807 sed 's/^/| /' conftest.$ac_ext >&5
4808
4809 fi
4810 rm -f conftest.err conftest.$ac_objext
4811 done
4812 rm -f conftest.$ac_ext conftest.$ac_objext
4813 CC=$ac_save_CC
4814
4815 fi
4816
4817 case "x$ac_cv_prog_cc_stdc" in
4818   x|xno)
4819     echo "$as_me:$LINENO: result: none needed" >&5
4820 echo "${ECHO_T}none needed" >&6 ;;
4821   *)
4822     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
4823 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
4824     CC="$CC $ac_cv_prog_cc_stdc" ;;
4825 esac
4826
4827 # Some people use a C++ compiler to compile C.  Since we use `exit',
4828 # in C++ we need to declare it.  In case someone uses the same compiler
4829 # for both compiling C and C++ we need to have the C++ compiler decide
4830 # the declaration of exit, since it's the most demanding environment.
4831 cat >conftest.$ac_ext <<_ACEOF
4832 #ifndef __cplusplus
4833   choke me
4834 #endif
4835 _ACEOF
4836 rm -f conftest.$ac_objext
4837 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4838   (eval $ac_compile) 2>conftest.er1
4839   ac_status=$?
4840   grep -v '^ *+' conftest.er1 >conftest.err
4841   rm -f conftest.er1
4842   cat conftest.err >&5
4843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4844   (exit $ac_status); } &&
4845          { ac_try='test -z "$ac_c_werror_flag"
4846                          || test ! -s conftest.err'
4847   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4848   (eval $ac_try) 2>&5
4849   ac_status=$?
4850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4851   (exit $ac_status); }; } &&
4852          { ac_try='test -s conftest.$ac_objext'
4853   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4854   (eval $ac_try) 2>&5
4855   ac_status=$?
4856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4857   (exit $ac_status); }; }; then
4858   for ac_declaration in \
4859    '' \
4860    'extern "C" void std::exit (int) throw (); using std::exit;' \
4861    'extern "C" void std::exit (int); using std::exit;' \
4862    'extern "C" void exit (int) throw ();' \
4863    'extern "C" void exit (int);' \
4864    'void exit (int);'
4865 do
4866   cat >conftest.$ac_ext <<_ACEOF
4867 /* confdefs.h.  */
4868 _ACEOF
4869 cat confdefs.h >>conftest.$ac_ext
4870 cat >>conftest.$ac_ext <<_ACEOF
4871 /* end confdefs.h.  */
4872 $ac_declaration
4873 #include <stdlib.h>
4874 int
4875 main ()
4876 {
4877 exit (42);
4878   ;
4879   return 0;
4880 }
4881 _ACEOF
4882 rm -f conftest.$ac_objext
4883 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4884   (eval $ac_compile) 2>conftest.er1
4885   ac_status=$?
4886   grep -v '^ *+' conftest.er1 >conftest.err
4887   rm -f conftest.er1
4888   cat conftest.err >&5
4889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4890   (exit $ac_status); } &&
4891          { ac_try='test -z "$ac_c_werror_flag"
4892                          || test ! -s conftest.err'
4893   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4894   (eval $ac_try) 2>&5
4895   ac_status=$?
4896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4897   (exit $ac_status); }; } &&
4898          { ac_try='test -s conftest.$ac_objext'
4899   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4900   (eval $ac_try) 2>&5
4901   ac_status=$?
4902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4903   (exit $ac_status); }; }; then
4904   :
4905 else
4906   echo "$as_me: failed program was:" >&5
4907 sed 's/^/| /' conftest.$ac_ext >&5
4908
4909 continue
4910 fi
4911 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4912   cat >conftest.$ac_ext <<_ACEOF
4913 /* confdefs.h.  */
4914 _ACEOF
4915 cat confdefs.h >>conftest.$ac_ext
4916 cat >>conftest.$ac_ext <<_ACEOF
4917 /* end confdefs.h.  */
4918 $ac_declaration
4919 int
4920 main ()
4921 {
4922 exit (42);
4923   ;
4924   return 0;
4925 }
4926 _ACEOF
4927 rm -f conftest.$ac_objext
4928 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4929   (eval $ac_compile) 2>conftest.er1
4930   ac_status=$?
4931   grep -v '^ *+' conftest.er1 >conftest.err
4932   rm -f conftest.er1
4933   cat conftest.err >&5
4934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4935   (exit $ac_status); } &&
4936          { ac_try='test -z "$ac_c_werror_flag"
4937                          || test ! -s conftest.err'
4938   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4939   (eval $ac_try) 2>&5
4940   ac_status=$?
4941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4942   (exit $ac_status); }; } &&
4943          { ac_try='test -s conftest.$ac_objext'
4944   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4945   (eval $ac_try) 2>&5
4946   ac_status=$?
4947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4948   (exit $ac_status); }; }; then
4949   break
4950 else
4951   echo "$as_me: failed program was:" >&5
4952 sed 's/^/| /' conftest.$ac_ext >&5
4953
4954 fi
4955 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4956 done
4957 rm -f conftest*
4958 if test -n "$ac_declaration"; then
4959   echo '#ifdef __cplusplus' >>confdefs.h
4960   echo $ac_declaration      >>confdefs.h
4961   echo '#endif'             >>confdefs.h
4962 fi
4963
4964 else
4965   echo "$as_me: failed program was:" >&5
4966 sed 's/^/| /' conftest.$ac_ext >&5
4967
4968 fi
4969 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4970 ac_ext=c
4971 ac_cpp='$CPP $CPPFLAGS'
4972 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4973 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4974 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4975
4976
4977 cat >>confdefs.h <<\_ACEOF
4978 #define _GNU_SOURCE 1
4979 _ACEOF
4980
4981
4982
4983 for ac_prog in 'bison -y' byacc
4984 do
4985   # Extract the first word of "$ac_prog", so it can be a program name with args.
4986 set dummy $ac_prog; ac_word=$2
4987 echo "$as_me:$LINENO: checking for $ac_word" >&5
4988 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4989 if test "${ac_cv_prog_YACC+set}" = set; then
4990   echo $ECHO_N "(cached) $ECHO_C" >&6
4991 else
4992   if test -n "$YACC"; then
4993   ac_cv_prog_YACC="$YACC" # Let the user override the test.
4994 else
4995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4996 for as_dir in $PATH
4997 do
4998   IFS=$as_save_IFS
4999   test -z "$as_dir" && as_dir=.
5000   for ac_exec_ext in '' $ac_executable_extensions; do
5001   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5002     ac_cv_prog_YACC="$ac_prog"
5003     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5004     break 2
5005   fi
5006 done
5007 done
5008
5009 fi
5010 fi
5011 YACC=$ac_cv_prog_YACC
5012 if test -n "$YACC"; then
5013   echo "$as_me:$LINENO: result: $YACC" >&5
5014 echo "${ECHO_T}$YACC" >&6
5015 else
5016   echo "$as_me:$LINENO: result: no" >&5
5017 echo "${ECHO_T}no" >&6
5018 fi
5019
5020   test -n "$YACC" && break
5021 done
5022 test -n "$YACC" || YACC="yacc"
5023
5024 for ac_prog in flex lex
5025 do
5026   # Extract the first word of "$ac_prog", so it can be a program name with args.
5027 set dummy $ac_prog; ac_word=$2
5028 echo "$as_me:$LINENO: checking for $ac_word" >&5
5029 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5030 if test "${ac_cv_prog_LEX+set}" = set; then
5031   echo $ECHO_N "(cached) $ECHO_C" >&6
5032 else
5033   if test -n "$LEX"; then
5034   ac_cv_prog_LEX="$LEX" # Let the user override the test.
5035 else
5036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5037 for as_dir in $PATH
5038 do
5039   IFS=$as_save_IFS
5040   test -z "$as_dir" && as_dir=.
5041   for ac_exec_ext in '' $ac_executable_extensions; do
5042   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5043     ac_cv_prog_LEX="$ac_prog"
5044     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5045     break 2
5046   fi
5047 done
5048 done
5049
5050 fi
5051 fi
5052 LEX=$ac_cv_prog_LEX
5053 if test -n "$LEX"; then
5054   echo "$as_me:$LINENO: result: $LEX" >&5
5055 echo "${ECHO_T}$LEX" >&6
5056 else
5057   echo "$as_me:$LINENO: result: no" >&5
5058 echo "${ECHO_T}no" >&6
5059 fi
5060
5061   test -n "$LEX" && break
5062 done
5063 test -n "$LEX" || LEX=":"
5064
5065 if test -z "$LEXLIB"
5066 then
5067   echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
5068 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
5069 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
5070   echo $ECHO_N "(cached) $ECHO_C" >&6
5071 else
5072   ac_check_lib_save_LIBS=$LIBS
5073 LIBS="-lfl  $LIBS"
5074 cat >conftest.$ac_ext <<_ACEOF
5075 /* confdefs.h.  */
5076 _ACEOF
5077 cat confdefs.h >>conftest.$ac_ext
5078 cat >>conftest.$ac_ext <<_ACEOF
5079 /* end confdefs.h.  */
5080
5081 /* Override any gcc2 internal prototype to avoid an error.  */
5082 #ifdef __cplusplus
5083 extern "C"
5084 #endif
5085 /* We use char because int might match the return type of a gcc2
5086    builtin and then its argument prototype would still apply.  */
5087 char yywrap ();
5088 int
5089 main ()
5090 {
5091 yywrap ();
5092   ;
5093   return 0;
5094 }
5095 _ACEOF
5096 rm -f conftest.$ac_objext conftest$ac_exeext
5097 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5098   (eval $ac_link) 2>conftest.er1
5099   ac_status=$?
5100   grep -v '^ *+' conftest.er1 >conftest.err
5101   rm -f conftest.er1
5102   cat conftest.err >&5
5103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5104   (exit $ac_status); } &&
5105          { ac_try='test -z "$ac_c_werror_flag"
5106                          || test ! -s conftest.err'
5107   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5108   (eval $ac_try) 2>&5
5109   ac_status=$?
5110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5111   (exit $ac_status); }; } &&
5112          { ac_try='test -s conftest$ac_exeext'
5113   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5114   (eval $ac_try) 2>&5
5115   ac_status=$?
5116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5117   (exit $ac_status); }; }; then
5118   ac_cv_lib_fl_yywrap=yes
5119 else
5120   echo "$as_me: failed program was:" >&5
5121 sed 's/^/| /' conftest.$ac_ext >&5
5122
5123 ac_cv_lib_fl_yywrap=no
5124 fi
5125 rm -f conftest.err conftest.$ac_objext \
5126       conftest$ac_exeext conftest.$ac_ext
5127 LIBS=$ac_check_lib_save_LIBS
5128 fi
5129 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
5130 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
5131 if test $ac_cv_lib_fl_yywrap = yes; then
5132   LEXLIB="-lfl"
5133 else
5134   echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
5135 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
5136 if test "${ac_cv_lib_l_yywrap+set}" = set; then
5137   echo $ECHO_N "(cached) $ECHO_C" >&6
5138 else
5139   ac_check_lib_save_LIBS=$LIBS
5140 LIBS="-ll  $LIBS"
5141 cat >conftest.$ac_ext <<_ACEOF
5142 /* confdefs.h.  */
5143 _ACEOF
5144 cat confdefs.h >>conftest.$ac_ext
5145 cat >>conftest.$ac_ext <<_ACEOF
5146 /* end confdefs.h.  */
5147
5148 /* Override any gcc2 internal prototype to avoid an error.  */
5149 #ifdef __cplusplus
5150 extern "C"
5151 #endif
5152 /* We use char because int might match the return type of a gcc2
5153    builtin and then its argument prototype would still apply.  */
5154 char yywrap ();
5155 int
5156 main ()
5157 {
5158 yywrap ();
5159   ;
5160   return 0;
5161 }
5162 _ACEOF
5163 rm -f conftest.$ac_objext conftest$ac_exeext
5164 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5165   (eval $ac_link) 2>conftest.er1
5166   ac_status=$?
5167   grep -v '^ *+' conftest.er1 >conftest.err
5168   rm -f conftest.er1
5169   cat conftest.err >&5
5170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5171   (exit $ac_status); } &&
5172          { ac_try='test -z "$ac_c_werror_flag"
5173                          || test ! -s conftest.err'
5174   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5175   (eval $ac_try) 2>&5
5176   ac_status=$?
5177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5178   (exit $ac_status); }; } &&
5179          { ac_try='test -s conftest$ac_exeext'
5180   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5181   (eval $ac_try) 2>&5
5182   ac_status=$?
5183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5184   (exit $ac_status); }; }; then
5185   ac_cv_lib_l_yywrap=yes
5186 else
5187   echo "$as_me: failed program was:" >&5
5188 sed 's/^/| /' conftest.$ac_ext >&5
5189
5190 ac_cv_lib_l_yywrap=no
5191 fi
5192 rm -f conftest.err conftest.$ac_objext \
5193       conftest$ac_exeext conftest.$ac_ext
5194 LIBS=$ac_check_lib_save_LIBS
5195 fi
5196 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
5197 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
5198 if test $ac_cv_lib_l_yywrap = yes; then
5199   LEXLIB="-ll"
5200 fi
5201
5202 fi
5203
5204 fi
5205
5206 if test "x$LEX" != "x:"; then
5207   echo "$as_me:$LINENO: checking lex output file root" >&5
5208 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
5209 if test "${ac_cv_prog_lex_root+set}" = set; then
5210   echo $ECHO_N "(cached) $ECHO_C" >&6
5211 else
5212   # The minimal lex program is just a single line: %%.  But some broken lexes
5213 # (Solaris, I think it was) want two %% lines, so accommodate them.
5214 cat >conftest.l <<_ACEOF
5215 %%
5216 %%
5217 _ACEOF
5218 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
5219   (eval $LEX conftest.l) 2>&5
5220   ac_status=$?
5221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5222   (exit $ac_status); }
5223 if test -f lex.yy.c; then
5224   ac_cv_prog_lex_root=lex.yy
5225 elif test -f lexyy.c; then
5226   ac_cv_prog_lex_root=lexyy
5227 else
5228   { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
5229 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
5230    { (exit 1); exit 1; }; }
5231 fi
5232 fi
5233 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
5234 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
5235 rm -f conftest.l
5236 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
5237
5238 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
5239 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
5240 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
5241   echo $ECHO_N "(cached) $ECHO_C" >&6
5242 else
5243   # POSIX says lex can declare yytext either as a pointer or an array; the
5244 # default is implementation-dependent. Figure out which it is, since
5245 # not all implementations provide the %pointer and %array declarations.
5246 ac_cv_prog_lex_yytext_pointer=no
5247 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
5248 ac_save_LIBS=$LIBS
5249 LIBS="$LIBS $LEXLIB"
5250 cat >conftest.$ac_ext <<_ACEOF
5251 `cat $LEX_OUTPUT_ROOT.c`
5252 _ACEOF
5253 rm -f conftest.$ac_objext conftest$ac_exeext
5254 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5255   (eval $ac_link) 2>conftest.er1
5256   ac_status=$?
5257   grep -v '^ *+' conftest.er1 >conftest.err
5258   rm -f conftest.er1
5259   cat conftest.err >&5
5260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5261   (exit $ac_status); } &&
5262          { ac_try='test -z "$ac_c_werror_flag"
5263                          || test ! -s conftest.err'
5264   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5265   (eval $ac_try) 2>&5
5266   ac_status=$?
5267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5268   (exit $ac_status); }; } &&
5269          { ac_try='test -s conftest$ac_exeext'
5270   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5271   (eval $ac_try) 2>&5
5272   ac_status=$?
5273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5274   (exit $ac_status); }; }; then
5275   ac_cv_prog_lex_yytext_pointer=yes
5276 else
5277   echo "$as_me: failed program was:" >&5
5278 sed 's/^/| /' conftest.$ac_ext >&5
5279
5280 fi
5281 rm -f conftest.err conftest.$ac_objext \
5282       conftest$ac_exeext conftest.$ac_ext
5283 LIBS=$ac_save_LIBS
5284 rm -f "${LEX_OUTPUT_ROOT}.c"
5285
5286 fi
5287 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
5288 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
5289 if test $ac_cv_prog_lex_yytext_pointer = yes; then
5290
5291 cat >>confdefs.h <<\_ACEOF
5292 #define YYTEXT_POINTER 1
5293 _ACEOF
5294
5295 fi
5296
5297 fi
5298 if test "$LEX" = :; then
5299   LEX=${am_missing_run}flex
5300 fi
5301
5302 ALL_LINGUAS="fr tr ja es sv da zh_CN ru ro rw zh_TW fi vi"
5303 if test -n "$ac_tool_prefix"; then
5304   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5305 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5306 echo "$as_me:$LINENO: checking for $ac_word" >&5
5307 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5308 if test "${ac_cv_prog_RANLIB+set}" = set; then
5309   echo $ECHO_N "(cached) $ECHO_C" >&6
5310 else
5311   if test -n "$RANLIB"; then
5312   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5313 else
5314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5315 for as_dir in $PATH
5316 do
5317   IFS=$as_save_IFS
5318   test -z "$as_dir" && as_dir=.
5319   for ac_exec_ext in '' $ac_executable_extensions; do
5320   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5321     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5322     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5323     break 2
5324   fi
5325 done
5326 done
5327
5328 fi
5329 fi
5330 RANLIB=$ac_cv_prog_RANLIB
5331 if test -n "$RANLIB"; then
5332   echo "$as_me:$LINENO: result: $RANLIB" >&5
5333 echo "${ECHO_T}$RANLIB" >&6
5334 else
5335   echo "$as_me:$LINENO: result: no" >&5
5336 echo "${ECHO_T}no" >&6
5337 fi
5338
5339 fi
5340 if test -z "$ac_cv_prog_RANLIB"; then
5341   ac_ct_RANLIB=$RANLIB
5342   # Extract the first word of "ranlib", so it can be a program name with args.
5343 set dummy ranlib; ac_word=$2
5344 echo "$as_me:$LINENO: checking for $ac_word" >&5
5345 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5346 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5347   echo $ECHO_N "(cached) $ECHO_C" >&6
5348 else
5349   if test -n "$ac_ct_RANLIB"; then
5350   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5351 else
5352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5353 for as_dir in $PATH
5354 do
5355   IFS=$as_save_IFS
5356   test -z "$as_dir" && as_dir=.
5357   for ac_exec_ext in '' $ac_executable_extensions; do
5358   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5359     ac_cv_prog_ac_ct_RANLIB="ranlib"
5360     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5361     break 2
5362   fi
5363 done
5364 done
5365
5366   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5367 fi
5368 fi
5369 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5370 if test -n "$ac_ct_RANLIB"; then
5371   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5372 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5373 else
5374   echo "$as_me:$LINENO: result: no" >&5
5375 echo "${ECHO_T}no" >&6
5376 fi
5377
5378   RANLIB=$ac_ct_RANLIB
5379 else
5380   RANLIB="$ac_cv_prog_RANLIB"
5381 fi
5382
5383 ac_ext=c
5384 ac_cpp='$CPP $CPPFLAGS'
5385 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5386 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5387 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5388 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5389 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
5390 # On Suns, sometimes $CPP names a directory.
5391 if test -n "$CPP" && test -d "$CPP"; then
5392   CPP=
5393 fi
5394 if test -z "$CPP"; then
5395   if test "${ac_cv_prog_CPP+set}" = set; then
5396   echo $ECHO_N "(cached) $ECHO_C" >&6
5397 else
5398       # Double quotes because CPP needs to be expanded
5399     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5400     do
5401       ac_preproc_ok=false
5402 for ac_c_preproc_warn_flag in '' yes
5403 do
5404   # Use a header file that comes with gcc, so configuring glibc
5405   # with a fresh cross-compiler works.
5406   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5407   # <limits.h> exists even on freestanding compilers.
5408   # On the NeXT, cc -E runs the code through the compiler's parser,
5409   # not just through cpp. "Syntax error" is here to catch this case.
5410   cat >conftest.$ac_ext <<_ACEOF
5411 /* confdefs.h.  */
5412 _ACEOF
5413 cat confdefs.h >>conftest.$ac_ext
5414 cat >>conftest.$ac_ext <<_ACEOF
5415 /* end confdefs.h.  */
5416 #ifdef __STDC__
5417 # include <limits.h>
5418 #else
5419 # include <assert.h>
5420 #endif
5421                      Syntax error
5422 _ACEOF
5423 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5424   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5425   ac_status=$?
5426   grep -v '^ *+' conftest.er1 >conftest.err
5427   rm -f conftest.er1
5428   cat conftest.err >&5
5429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5430   (exit $ac_status); } >/dev/null; then
5431   if test -s conftest.err; then
5432     ac_cpp_err=$ac_c_preproc_warn_flag
5433     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5434   else
5435     ac_cpp_err=
5436   fi
5437 else
5438   ac_cpp_err=yes
5439 fi
5440 if test -z "$ac_cpp_err"; then
5441   :
5442 else
5443   echo "$as_me: failed program was:" >&5
5444 sed 's/^/| /' conftest.$ac_ext >&5
5445
5446   # Broken: fails on valid input.
5447 continue
5448 fi
5449 rm -f conftest.err conftest.$ac_ext
5450
5451   # OK, works on sane cases.  Now check whether non-existent headers
5452   # can be detected and how.
5453   cat >conftest.$ac_ext <<_ACEOF
5454 /* confdefs.h.  */
5455 _ACEOF
5456 cat confdefs.h >>conftest.$ac_ext
5457 cat >>conftest.$ac_ext <<_ACEOF
5458 /* end confdefs.h.  */
5459 #include <ac_nonexistent.h>
5460 _ACEOF
5461 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5462   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5463   ac_status=$?
5464   grep -v '^ *+' conftest.er1 >conftest.err
5465   rm -f conftest.er1
5466   cat conftest.err >&5
5467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5468   (exit $ac_status); } >/dev/null; then
5469   if test -s conftest.err; then
5470     ac_cpp_err=$ac_c_preproc_warn_flag
5471     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5472   else
5473     ac_cpp_err=
5474   fi
5475 else
5476   ac_cpp_err=yes
5477 fi
5478 if test -z "$ac_cpp_err"; then
5479   # Broken: success on invalid input.
5480 continue
5481 else
5482   echo "$as_me: failed program was:" >&5
5483 sed 's/^/| /' conftest.$ac_ext >&5
5484
5485   # Passes both tests.
5486 ac_preproc_ok=:
5487 break
5488 fi
5489 rm -f conftest.err conftest.$ac_ext
5490
5491 done
5492 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5493 rm -f conftest.err conftest.$ac_ext
5494 if $ac_preproc_ok; then
5495   break
5496 fi
5497
5498     done
5499     ac_cv_prog_CPP=$CPP
5500
5501 fi
5502   CPP=$ac_cv_prog_CPP
5503 else
5504   ac_cv_prog_CPP=$CPP
5505 fi
5506 echo "$as_me:$LINENO: result: $CPP" >&5
5507 echo "${ECHO_T}$CPP" >&6
5508 ac_preproc_ok=false
5509 for ac_c_preproc_warn_flag in '' yes
5510 do
5511   # Use a header file that comes with gcc, so configuring glibc
5512   # with a fresh cross-compiler works.
5513   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5514   # <limits.h> exists even on freestanding compilers.
5515   # On the NeXT, cc -E runs the code through the compiler's parser,
5516   # not just through cpp. "Syntax error" is here to catch this case.
5517   cat >conftest.$ac_ext <<_ACEOF
5518 /* confdefs.h.  */
5519 _ACEOF
5520 cat confdefs.h >>conftest.$ac_ext
5521 cat >>conftest.$ac_ext <<_ACEOF
5522 /* end confdefs.h.  */
5523 #ifdef __STDC__
5524 # include <limits.h>
5525 #else
5526 # include <assert.h>
5527 #endif
5528                      Syntax error
5529 _ACEOF
5530 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5531   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5532   ac_status=$?
5533   grep -v '^ *+' conftest.er1 >conftest.err
5534   rm -f conftest.er1
5535   cat conftest.err >&5
5536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5537   (exit $ac_status); } >/dev/null; then
5538   if test -s conftest.err; then
5539     ac_cpp_err=$ac_c_preproc_warn_flag
5540     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5541   else
5542     ac_cpp_err=
5543   fi
5544 else
5545   ac_cpp_err=yes
5546 fi
5547 if test -z "$ac_cpp_err"; then
5548   :
5549 else
5550   echo "$as_me: failed program was:" >&5
5551 sed 's/^/| /' conftest.$ac_ext >&5
5552
5553   # Broken: fails on valid input.
5554 continue
5555 fi
5556 rm -f conftest.err conftest.$ac_ext
5557
5558   # OK, works on sane cases.  Now check whether non-existent headers
5559   # can be detected and how.
5560   cat >conftest.$ac_ext <<_ACEOF
5561 /* confdefs.h.  */
5562 _ACEOF
5563 cat confdefs.h >>conftest.$ac_ext
5564 cat >>conftest.$ac_ext <<_ACEOF
5565 /* end confdefs.h.  */
5566 #include <ac_nonexistent.h>
5567 _ACEOF
5568 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5569   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5570   ac_status=$?
5571   grep -v '^ *+' conftest.er1 >conftest.err
5572   rm -f conftest.er1
5573   cat conftest.err >&5
5574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5575   (exit $ac_status); } >/dev/null; then
5576   if test -s conftest.err; then
5577     ac_cpp_err=$ac_c_preproc_warn_flag
5578     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5579   else
5580     ac_cpp_err=
5581   fi
5582 else
5583   ac_cpp_err=yes
5584 fi
5585 if test -z "$ac_cpp_err"; then
5586   # Broken: success on invalid input.
5587 continue
5588 else
5589   echo "$as_me: failed program was:" >&5
5590 sed 's/^/| /' conftest.$ac_ext >&5
5591
5592   # Passes both tests.
5593 ac_preproc_ok=:
5594 break
5595 fi
5596 rm -f conftest.err conftest.$ac_ext
5597
5598 done
5599 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5600 rm -f conftest.err conftest.$ac_ext
5601 if $ac_preproc_ok; then
5602   :
5603 else
5604   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5605 See \`config.log' for more details." >&5
5606 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5607 See \`config.log' for more details." >&2;}
5608    { (exit 1); exit 1; }; }
5609 fi
5610
5611 ac_ext=c
5612 ac_cpp='$CPP $CPPFLAGS'
5613 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5614 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5615 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5616
5617
5618 echo "$as_me:$LINENO: checking for egrep" >&5
5619 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5620 if test "${ac_cv_prog_egrep+set}" = set; then
5621   echo $ECHO_N "(cached) $ECHO_C" >&6
5622 else
5623   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5624     then ac_cv_prog_egrep='grep -E'
5625     else ac_cv_prog_egrep='egrep'
5626     fi
5627 fi
5628 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5629 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5630  EGREP=$ac_cv_prog_egrep
5631
5632
5633 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5634 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5635 if test "${ac_cv_header_stdc+set}" = set; then
5636   echo $ECHO_N "(cached) $ECHO_C" >&6
5637 else
5638   cat >conftest.$ac_ext <<_ACEOF
5639 /* confdefs.h.  */
5640 _ACEOF
5641 cat confdefs.h >>conftest.$ac_ext
5642 cat >>conftest.$ac_ext <<_ACEOF
5643 /* end confdefs.h.  */
5644 #include <stdlib.h>
5645 #include <stdarg.h>
5646 #include <string.h>
5647 #include <float.h>
5648
5649 int
5650 main ()
5651 {
5652
5653   ;
5654   return 0;
5655 }
5656 _ACEOF
5657 rm -f conftest.$ac_objext
5658 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5659   (eval $ac_compile) 2>conftest.er1
5660   ac_status=$?
5661   grep -v '^ *+' conftest.er1 >conftest.err
5662   rm -f conftest.er1
5663   cat conftest.err >&5
5664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5665   (exit $ac_status); } &&
5666          { ac_try='test -z "$ac_c_werror_flag"
5667                          || test ! -s conftest.err'
5668   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5669   (eval $ac_try) 2>&5
5670   ac_status=$?
5671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5672   (exit $ac_status); }; } &&
5673          { ac_try='test -s conftest.$ac_objext'
5674   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5675   (eval $ac_try) 2>&5
5676   ac_status=$?
5677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5678   (exit $ac_status); }; }; then
5679   ac_cv_header_stdc=yes
5680 else
5681   echo "$as_me: failed program was:" >&5
5682 sed 's/^/| /' conftest.$ac_ext >&5
5683
5684 ac_cv_header_stdc=no
5685 fi
5686 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5687
5688 if test $ac_cv_header_stdc = yes; then
5689   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5690   cat >conftest.$ac_ext <<_ACEOF
5691 /* confdefs.h.  */
5692 _ACEOF
5693 cat confdefs.h >>conftest.$ac_ext
5694 cat >>conftest.$ac_ext <<_ACEOF
5695 /* end confdefs.h.  */
5696 #include <string.h>
5697
5698 _ACEOF
5699 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5700   $EGREP "memchr" >/dev/null 2>&1; then
5701   :
5702 else
5703   ac_cv_header_stdc=no
5704 fi
5705 rm -f conftest*
5706
5707 fi
5708
5709 if test $ac_cv_header_stdc = yes; then
5710   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5711   cat >conftest.$ac_ext <<_ACEOF
5712 /* confdefs.h.  */
5713 _ACEOF
5714 cat confdefs.h >>conftest.$ac_ext
5715 cat >>conftest.$ac_ext <<_ACEOF
5716 /* end confdefs.h.  */
5717 #include <stdlib.h>
5718
5719 _ACEOF
5720 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5721   $EGREP "free" >/dev/null 2>&1; then
5722   :
5723 else
5724   ac_cv_header_stdc=no
5725 fi
5726 rm -f conftest*
5727
5728 fi
5729
5730 if test $ac_cv_header_stdc = yes; then
5731   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5732   if test "$cross_compiling" = yes; then
5733   :
5734 else
5735   cat >conftest.$ac_ext <<_ACEOF
5736 /* confdefs.h.  */
5737 _ACEOF
5738 cat confdefs.h >>conftest.$ac_ext
5739 cat >>conftest.$ac_ext <<_ACEOF
5740 /* end confdefs.h.  */
5741 #include <ctype.h>
5742 #if ((' ' & 0x0FF) == 0x020)
5743 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5744 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5745 #else
5746 # define ISLOWER(c) \
5747                    (('a' <= (c) && (c) <= 'i') \
5748                      || ('j' <= (c) && (c) <= 'r') \
5749                      || ('s' <= (c) && (c) <= 'z'))
5750 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5751 #endif
5752
5753 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5754 int
5755 main ()
5756 {
5757   int i;
5758   for (i = 0; i < 256; i++)
5759     if (XOR (islower (i), ISLOWER (i))
5760         || toupper (i) != TOUPPER (i))
5761       exit(2);
5762   exit (0);
5763 }
5764 _ACEOF
5765 rm -f conftest$ac_exeext
5766 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5767   (eval $ac_link) 2>&5
5768   ac_status=$?
5769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5770   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5771   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5772   (eval $ac_try) 2>&5
5773   ac_status=$?
5774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5775   (exit $ac_status); }; }; then
5776   :
5777 else
5778   echo "$as_me: program exited with status $ac_status" >&5
5779 echo "$as_me: failed program was:" >&5
5780 sed 's/^/| /' conftest.$ac_ext >&5
5781
5782 ( exit $ac_status )
5783 ac_cv_header_stdc=no
5784 fi
5785 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5786 fi
5787 fi
5788 fi
5789 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5790 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5791 if test $ac_cv_header_stdc = yes; then
5792
5793 cat >>confdefs.h <<\_ACEOF
5794 #define STDC_HEADERS 1
5795 _ACEOF
5796
5797 fi
5798
5799 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
5800 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
5801 if test "${ac_cv_c_const+set}" = set; then
5802   echo $ECHO_N "(cached) $ECHO_C" >&6
5803 else
5804   cat >conftest.$ac_ext <<_ACEOF
5805 /* confdefs.h.  */
5806 _ACEOF
5807 cat confdefs.h >>conftest.$ac_ext
5808 cat >>conftest.$ac_ext <<_ACEOF
5809 /* end confdefs.h.  */
5810
5811 int
5812 main ()
5813 {
5814 /* FIXME: Include the comments suggested by Paul. */
5815 #ifndef __cplusplus
5816   /* Ultrix mips cc rejects this.  */
5817   typedef int charset[2];
5818   const charset x;
5819   /* SunOS 4.1.1 cc rejects this.  */
5820   char const *const *ccp;
5821   char **p;
5822   /* NEC SVR4.0.2 mips cc rejects this.  */
5823   struct point {int x, y;};
5824   static struct point const zero = {0,0};
5825   /* AIX XL C 1.02.0.0 rejects this.
5826      It does not let you subtract one const X* pointer from another in
5827      an arm of an if-expression whose if-part is not a constant
5828      expression */
5829   const char *g = "string";
5830   ccp = &g + (g ? g-g : 0);
5831   /* HPUX 7.0 cc rejects these. */
5832   ++ccp;
5833   p = (char**) ccp;
5834   ccp = (char const *const *) p;
5835   { /* SCO 3.2v4 cc rejects this.  */
5836     char *t;
5837     char const *s = 0 ? (char *) 0 : (char const *) 0;
5838
5839     *t++ = 0;
5840   }
5841   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
5842     int x[] = {25, 17};
5843     const int *foo = &x[0];
5844     ++foo;
5845   }
5846   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5847     typedef const int *iptr;
5848     iptr p = 0;
5849     ++p;
5850   }
5851   { /* AIX XL C 1.02.0.0 rejects this saying
5852        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5853     struct s { int j; const int *ap[3]; };
5854     struct s *b; b->j = 5;
5855   }
5856   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5857     const int foo = 10;
5858   }
5859 #endif
5860
5861   ;
5862   return 0;
5863 }
5864 _ACEOF
5865 rm -f conftest.$ac_objext
5866 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5867   (eval $ac_compile) 2>conftest.er1
5868   ac_status=$?
5869   grep -v '^ *+' conftest.er1 >conftest.err
5870   rm -f conftest.er1
5871   cat conftest.err >&5
5872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5873   (exit $ac_status); } &&
5874          { ac_try='test -z "$ac_c_werror_flag"
5875                          || test ! -s conftest.err'
5876   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5877   (eval $ac_try) 2>&5
5878   ac_status=$?
5879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5880   (exit $ac_status); }; } &&
5881          { ac_try='test -s conftest.$ac_objext'
5882   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5883   (eval $ac_try) 2>&5
5884   ac_status=$?
5885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5886   (exit $ac_status); }; }; then
5887   ac_cv_c_const=yes
5888 else
5889   echo "$as_me: failed program was:" >&5
5890 sed 's/^/| /' conftest.$ac_ext >&5
5891
5892 ac_cv_c_const=no
5893 fi
5894 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5895 fi
5896 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
5897 echo "${ECHO_T}$ac_cv_c_const" >&6
5898 if test $ac_cv_c_const = no; then
5899
5900 cat >>confdefs.h <<\_ACEOF
5901 #define const
5902 _ACEOF
5903
5904 fi
5905
5906 echo "$as_me:$LINENO: checking for inline" >&5
5907 echo $ECHO_N "checking for inline... $ECHO_C" >&6
5908 if test "${ac_cv_c_inline+set}" = set; then
5909   echo $ECHO_N "(cached) $ECHO_C" >&6
5910 else
5911   ac_cv_c_inline=no
5912 for ac_kw in inline __inline__ __inline; do
5913   cat >conftest.$ac_ext <<_ACEOF
5914 /* confdefs.h.  */
5915 _ACEOF
5916 cat confdefs.h >>conftest.$ac_ext
5917 cat >>conftest.$ac_ext <<_ACEOF
5918 /* end confdefs.h.  */
5919 #ifndef __cplusplus
5920 typedef int foo_t;
5921 static $ac_kw foo_t static_foo () {return 0; }
5922 $ac_kw foo_t foo () {return 0; }
5923 #endif
5924
5925 _ACEOF
5926 rm -f conftest.$ac_objext
5927 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5928   (eval $ac_compile) 2>conftest.er1
5929   ac_status=$?
5930   grep -v '^ *+' conftest.er1 >conftest.err
5931   rm -f conftest.er1
5932   cat conftest.err >&5
5933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5934   (exit $ac_status); } &&
5935          { ac_try='test -z "$ac_c_werror_flag"
5936                          || test ! -s conftest.err'
5937   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5938   (eval $ac_try) 2>&5
5939   ac_status=$?
5940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5941   (exit $ac_status); }; } &&
5942          { ac_try='test -s conftest.$ac_objext'
5943   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5944   (eval $ac_try) 2>&5
5945   ac_status=$?
5946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5947   (exit $ac_status); }; }; then
5948   ac_cv_c_inline=$ac_kw; break
5949 else
5950   echo "$as_me: failed program was:" >&5
5951 sed 's/^/| /' conftest.$ac_ext >&5
5952
5953 fi
5954 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5955 done
5956
5957 fi
5958 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
5959 echo "${ECHO_T}$ac_cv_c_inline" >&6
5960
5961
5962 case $ac_cv_c_inline in
5963   inline | yes) ;;
5964   *)
5965     case $ac_cv_c_inline in
5966       no) ac_val=;;
5967       *) ac_val=$ac_cv_c_inline;;
5968     esac
5969     cat >>confdefs.h <<_ACEOF
5970 #ifndef __cplusplus
5971 #define inline $ac_val
5972 #endif
5973 _ACEOF
5974     ;;
5975 esac
5976
5977 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5978
5979
5980
5981
5982
5983
5984
5985
5986
5987 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5988                   inttypes.h stdint.h unistd.h
5989 do
5990 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5991 echo "$as_me:$LINENO: checking for $ac_header" >&5
5992 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5993 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5994   echo $ECHO_N "(cached) $ECHO_C" >&6
5995 else
5996   cat >conftest.$ac_ext <<_ACEOF
5997 /* confdefs.h.  */
5998 _ACEOF
5999 cat confdefs.h >>conftest.$ac_ext
6000 cat >>conftest.$ac_ext <<_ACEOF
6001 /* end confdefs.h.  */
6002 $ac_includes_default
6003
6004 #include <$ac_header>
6005 _ACEOF
6006 rm -f conftest.$ac_objext
6007 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6008   (eval $ac_compile) 2>conftest.er1
6009   ac_status=$?
6010   grep -v '^ *+' conftest.er1 >conftest.err
6011   rm -f conftest.er1
6012   cat conftest.err >&5
6013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6014   (exit $ac_status); } &&
6015          { ac_try='test -z "$ac_c_werror_flag"
6016                          || test ! -s conftest.err'
6017   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6018   (eval $ac_try) 2>&5
6019   ac_status=$?
6020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6021   (exit $ac_status); }; } &&
6022          { ac_try='test -s conftest.$ac_objext'
6023   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6024   (eval $ac_try) 2>&5
6025   ac_status=$?
6026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6027   (exit $ac_status); }; }; then
6028   eval "$as_ac_Header=yes"
6029 else
6030   echo "$as_me: failed program was:" >&5
6031 sed 's/^/| /' conftest.$ac_ext >&5
6032
6033 eval "$as_ac_Header=no"
6034 fi
6035 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6036 fi
6037 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6038 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6039 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6040   cat >>confdefs.h <<_ACEOF
6041 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6042 _ACEOF
6043
6044 fi
6045
6046 done
6047
6048
6049 echo "$as_me:$LINENO: checking for off_t" >&5
6050 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
6051 if test "${ac_cv_type_off_t+set}" = set; then
6052   echo $ECHO_N "(cached) $ECHO_C" >&6
6053 else
6054   cat >conftest.$ac_ext <<_ACEOF
6055 /* confdefs.h.  */
6056 _ACEOF
6057 cat confdefs.h >>conftest.$ac_ext
6058 cat >>conftest.$ac_ext <<_ACEOF
6059 /* end confdefs.h.  */
6060 $ac_includes_default
6061 int
6062 main ()
6063 {
6064 if ((off_t *) 0)
6065   return 0;
6066 if (sizeof (off_t))
6067   return 0;
6068   ;
6069   return 0;
6070 }
6071 _ACEOF
6072 rm -f conftest.$ac_objext
6073 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6074   (eval $ac_compile) 2>conftest.er1
6075   ac_status=$?
6076   grep -v '^ *+' conftest.er1 >conftest.err
6077   rm -f conftest.er1
6078   cat conftest.err >&5
6079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6080   (exit $ac_status); } &&
6081          { ac_try='test -z "$ac_c_werror_flag"
6082                          || test ! -s conftest.err'
6083   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6084   (eval $ac_try) 2>&5
6085   ac_status=$?
6086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6087   (exit $ac_status); }; } &&
6088          { ac_try='test -s conftest.$ac_objext'
6089   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6090   (eval $ac_try) 2>&5
6091   ac_status=$?
6092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6093   (exit $ac_status); }; }; then
6094   ac_cv_type_off_t=yes
6095 else
6096   echo "$as_me: failed program was:" >&5
6097 sed 's/^/| /' conftest.$ac_ext >&5
6098
6099 ac_cv_type_off_t=no
6100 fi
6101 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6102 fi
6103 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
6104 echo "${ECHO_T}$ac_cv_type_off_t" >&6
6105 if test $ac_cv_type_off_t = yes; then
6106   :
6107 else
6108
6109 cat >>confdefs.h <<_ACEOF
6110 #define off_t long
6111 _ACEOF
6112
6113 fi
6114
6115 echo "$as_me:$LINENO: checking for size_t" >&5
6116 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
6117 if test "${ac_cv_type_size_t+set}" = set; then
6118   echo $ECHO_N "(cached) $ECHO_C" >&6
6119 else
6120   cat >conftest.$ac_ext <<_ACEOF
6121 /* confdefs.h.  */
6122 _ACEOF
6123 cat confdefs.h >>conftest.$ac_ext
6124 cat >>conftest.$ac_ext <<_ACEOF
6125 /* end confdefs.h.  */
6126 $ac_includes_default
6127 int
6128 main ()
6129 {
6130 if ((size_t *) 0)
6131   return 0;
6132 if (sizeof (size_t))
6133   return 0;
6134   ;
6135   return 0;
6136 }
6137 _ACEOF
6138 rm -f conftest.$ac_objext
6139 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6140   (eval $ac_compile) 2>conftest.er1
6141   ac_status=$?
6142   grep -v '^ *+' conftest.er1 >conftest.err
6143   rm -f conftest.er1
6144   cat conftest.err >&5
6145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6146   (exit $ac_status); } &&
6147          { ac_try='test -z "$ac_c_werror_flag"
6148                          || test ! -s conftest.err'
6149   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6150   (eval $ac_try) 2>&5
6151   ac_status=$?
6152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6153   (exit $ac_status); }; } &&
6154          { ac_try='test -s conftest.$ac_objext'
6155   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6156   (eval $ac_try) 2>&5
6157   ac_status=$?
6158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6159   (exit $ac_status); }; }; then
6160   ac_cv_type_size_t=yes
6161 else
6162   echo "$as_me: failed program was:" >&5
6163 sed 's/^/| /' conftest.$ac_ext >&5
6164
6165 ac_cv_type_size_t=no
6166 fi
6167 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6168 fi
6169 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
6170 echo "${ECHO_T}$ac_cv_type_size_t" >&6
6171 if test $ac_cv_type_size_t = yes; then
6172   :
6173 else
6174
6175 cat >>confdefs.h <<_ACEOF
6176 #define size_t unsigned
6177 _ACEOF
6178
6179 fi
6180
6181 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6182 # for constant arguments.  Useless!
6183 echo "$as_me:$LINENO: checking for working alloca.h" >&5
6184 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
6185 if test "${ac_cv_working_alloca_h+set}" = set; then
6186   echo $ECHO_N "(cached) $ECHO_C" >&6
6187 else
6188   cat >conftest.$ac_ext <<_ACEOF
6189 /* confdefs.h.  */
6190 _ACEOF
6191 cat confdefs.h >>conftest.$ac_ext
6192 cat >>conftest.$ac_ext <<_ACEOF
6193 /* end confdefs.h.  */
6194 #include <alloca.h>
6195 int
6196 main ()
6197 {
6198 char *p = (char *) alloca (2 * sizeof (int));
6199   ;
6200   return 0;
6201 }
6202 _ACEOF
6203 rm -f conftest.$ac_objext conftest$ac_exeext
6204 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6205   (eval $ac_link) 2>conftest.er1
6206   ac_status=$?
6207   grep -v '^ *+' conftest.er1 >conftest.err
6208   rm -f conftest.er1
6209   cat conftest.err >&5
6210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6211   (exit $ac_status); } &&
6212          { ac_try='test -z "$ac_c_werror_flag"
6213                          || test ! -s conftest.err'
6214   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6215   (eval $ac_try) 2>&5
6216   ac_status=$?
6217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6218   (exit $ac_status); }; } &&
6219          { ac_try='test -s conftest$ac_exeext'
6220   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6221   (eval $ac_try) 2>&5
6222   ac_status=$?
6223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6224   (exit $ac_status); }; }; then
6225   ac_cv_working_alloca_h=yes
6226 else
6227   echo "$as_me: failed program was:" >&5
6228 sed 's/^/| /' conftest.$ac_ext >&5
6229
6230 ac_cv_working_alloca_h=no
6231 fi
6232 rm -f conftest.err conftest.$ac_objext \
6233       conftest$ac_exeext conftest.$ac_ext
6234 fi
6235 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
6236 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
6237 if test $ac_cv_working_alloca_h = yes; then
6238
6239 cat >>confdefs.h <<\_ACEOF
6240 #define HAVE_ALLOCA_H 1
6241 _ACEOF
6242
6243 fi
6244
6245 echo "$as_me:$LINENO: checking for alloca" >&5
6246 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
6247 if test "${ac_cv_func_alloca_works+set}" = set; then
6248   echo $ECHO_N "(cached) $ECHO_C" >&6
6249 else
6250   cat >conftest.$ac_ext <<_ACEOF
6251 /* confdefs.h.  */
6252 _ACEOF
6253 cat confdefs.h >>conftest.$ac_ext
6254 cat >>conftest.$ac_ext <<_ACEOF
6255 /* end confdefs.h.  */
6256 #ifdef __GNUC__
6257 # define alloca __builtin_alloca
6258 #else
6259 # ifdef _MSC_VER
6260 #  include <malloc.h>
6261 #  define alloca _alloca
6262 # else
6263 #  if HAVE_ALLOCA_H
6264 #   include <alloca.h>
6265 #  else
6266 #   ifdef _AIX
6267  #pragma alloca
6268 #   else
6269 #    ifndef alloca /* predefined by HP cc +Olibcalls */
6270 char *alloca ();
6271 #    endif
6272 #   endif
6273 #  endif
6274 # endif
6275 #endif
6276
6277 int
6278 main ()
6279 {
6280 char *p = (char *) alloca (1);
6281   ;
6282   return 0;
6283 }
6284 _ACEOF
6285 rm -f conftest.$ac_objext conftest$ac_exeext
6286 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6287   (eval $ac_link) 2>conftest.er1
6288   ac_status=$?
6289   grep -v '^ *+' conftest.er1 >conftest.err
6290   rm -f conftest.er1
6291   cat conftest.err >&5
6292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6293   (exit $ac_status); } &&
6294          { ac_try='test -z "$ac_c_werror_flag"
6295                          || test ! -s conftest.err'
6296   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6297   (eval $ac_try) 2>&5
6298   ac_status=$?
6299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6300   (exit $ac_status); }; } &&
6301          { ac_try='test -s conftest$ac_exeext'
6302   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6303   (eval $ac_try) 2>&5
6304   ac_status=$?
6305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6306   (exit $ac_status); }; }; then
6307   ac_cv_func_alloca_works=yes
6308 else
6309   echo "$as_me: failed program was:" >&5
6310 sed 's/^/| /' conftest.$ac_ext >&5
6311
6312 ac_cv_func_alloca_works=no
6313 fi
6314 rm -f conftest.err conftest.$ac_objext \
6315       conftest$ac_exeext conftest.$ac_ext
6316 fi
6317 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
6318 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
6319
6320 if test $ac_cv_func_alloca_works = yes; then
6321
6322 cat >>confdefs.h <<\_ACEOF
6323 #define HAVE_ALLOCA 1
6324 _ACEOF
6325
6326 else
6327   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6328 # that cause trouble.  Some versions do not even contain alloca or
6329 # contain a buggy version.  If you still want to use their alloca,
6330 # use ar to extract alloca.o from them instead of compiling alloca.c.
6331
6332 ALLOCA=alloca.$ac_objext
6333
6334 cat >>confdefs.h <<\_ACEOF
6335 #define C_ALLOCA 1
6336 _ACEOF
6337
6338
6339 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
6340 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
6341 if test "${ac_cv_os_cray+set}" = set; then
6342   echo $ECHO_N "(cached) $ECHO_C" >&6
6343 else
6344   cat >conftest.$ac_ext <<_ACEOF
6345 /* confdefs.h.  */
6346 _ACEOF
6347 cat confdefs.h >>conftest.$ac_ext
6348 cat >>conftest.$ac_ext <<_ACEOF
6349 /* end confdefs.h.  */
6350 #if defined(CRAY) && ! defined(CRAY2)
6351 webecray
6352 #else
6353 wenotbecray
6354 #endif
6355
6356 _ACEOF
6357 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6358   $EGREP "webecray" >/dev/null 2>&1; then
6359   ac_cv_os_cray=yes
6360 else
6361   ac_cv_os_cray=no
6362 fi
6363 rm -f conftest*
6364
6365 fi
6366 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
6367 echo "${ECHO_T}$ac_cv_os_cray" >&6
6368 if test $ac_cv_os_cray = yes; then
6369   for ac_func in _getb67 GETB67 getb67; do
6370     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6371 echo "$as_me:$LINENO: checking for $ac_func" >&5
6372 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6373 if eval "test \"\${$as_ac_var+set}\" = set"; then
6374   echo $ECHO_N "(cached) $ECHO_C" >&6
6375 else
6376   cat >conftest.$ac_ext <<_ACEOF
6377 /* confdefs.h.  */
6378 _ACEOF
6379 cat confdefs.h >>conftest.$ac_ext
6380 cat >>conftest.$ac_ext <<_ACEOF
6381 /* end confdefs.h.  */
6382 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6383    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
6384 #define $ac_func innocuous_$ac_func
6385
6386 /* System header to define __stub macros and hopefully few prototypes,
6387     which can conflict with char $ac_func (); below.
6388     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6389     <limits.h> exists even on freestanding compilers.  */
6390
6391 #ifdef __STDC__
6392 # include <limits.h>
6393 #else
6394 # include <assert.h>
6395 #endif
6396
6397 #undef $ac_func
6398
6399 /* Override any gcc2 internal prototype to avoid an error.  */
6400 #ifdef __cplusplus
6401 extern "C"
6402 {
6403 #endif
6404 /* We use char because int might match the return type of a gcc2
6405    builtin and then its argument prototype would still apply.  */
6406 char $ac_func ();
6407 /* The GNU C library defines this for functions which it implements
6408     to always fail with ENOSYS.  Some functions are actually named
6409     something starting with __ and the normal name is an alias.  */
6410 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6411 choke me
6412 #else
6413 char (*f) () = $ac_func;
6414 #endif
6415 #ifdef __cplusplus
6416 }
6417 #endif
6418
6419 int
6420 main ()
6421 {
6422 return f != $ac_func;
6423   ;
6424   return 0;
6425 }
6426 _ACEOF
6427 rm -f conftest.$ac_objext conftest$ac_exeext
6428 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6429   (eval $ac_link) 2>conftest.er1
6430   ac_status=$?
6431   grep -v '^ *+' conftest.er1 >conftest.err
6432   rm -f conftest.er1
6433   cat conftest.err >&5
6434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6435   (exit $ac_status); } &&
6436          { ac_try='test -z "$ac_c_werror_flag"
6437                          || test ! -s conftest.err'
6438   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6439   (eval $ac_try) 2>&5
6440   ac_status=$?
6441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6442   (exit $ac_status); }; } &&
6443          { ac_try='test -s conftest$ac_exeext'
6444   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6445   (eval $ac_try) 2>&5
6446   ac_status=$?
6447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6448   (exit $ac_status); }; }; then
6449   eval "$as_ac_var=yes"
6450 else
6451   echo "$as_me: failed program was:" >&5
6452 sed 's/^/| /' conftest.$ac_ext >&5
6453
6454 eval "$as_ac_var=no"
6455 fi
6456 rm -f conftest.err conftest.$ac_objext \
6457       conftest$ac_exeext conftest.$ac_ext
6458 fi
6459 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6460 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6461 if test `eval echo '${'$as_ac_var'}'` = yes; then
6462
6463 cat >>confdefs.h <<_ACEOF
6464 #define CRAY_STACKSEG_END $ac_func
6465 _ACEOF
6466
6467     break
6468 fi
6469
6470   done
6471 fi
6472
6473 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
6474 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
6475 if test "${ac_cv_c_stack_direction+set}" = set; then
6476   echo $ECHO_N "(cached) $ECHO_C" >&6
6477 else
6478   if test "$cross_compiling" = yes; then
6479   ac_cv_c_stack_direction=0
6480 else
6481   cat >conftest.$ac_ext <<_ACEOF
6482 /* confdefs.h.  */
6483 _ACEOF
6484 cat confdefs.h >>conftest.$ac_ext
6485 cat >>conftest.$ac_ext <<_ACEOF
6486 /* end confdefs.h.  */
6487 int
6488 find_stack_direction ()
6489 {
6490   static char *addr = 0;
6491   auto char dummy;
6492   if (addr == 0)
6493     {
6494       addr = &dummy;
6495       return find_stack_direction ();
6496     }
6497   else
6498     return (&dummy > addr) ? 1 : -1;
6499 }
6500
6501 int
6502 main ()
6503 {
6504   exit (find_stack_direction () < 0);
6505 }
6506 _ACEOF
6507 rm -f conftest$ac_exeext
6508 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6509   (eval $ac_link) 2>&5
6510   ac_status=$?
6511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6512   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6513   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6514   (eval $ac_try) 2>&5
6515   ac_status=$?
6516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6517   (exit $ac_status); }; }; then
6518   ac_cv_c_stack_direction=1
6519 else
6520   echo "$as_me: program exited with status $ac_status" >&5
6521 echo "$as_me: failed program was:" >&5
6522 sed 's/^/| /' conftest.$ac_ext >&5
6523
6524 ( exit $ac_status )
6525 ac_cv_c_stack_direction=-1
6526 fi
6527 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6528 fi
6529 fi
6530 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
6531 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
6532
6533 cat >>confdefs.h <<_ACEOF
6534 #define STACK_DIRECTION $ac_cv_c_stack_direction
6535 _ACEOF
6536
6537
6538 fi
6539
6540
6541
6542 for ac_header in stdlib.h unistd.h
6543 do
6544 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6545 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6546   echo "$as_me:$LINENO: checking for $ac_header" >&5
6547 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6548 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6549   echo $ECHO_N "(cached) $ECHO_C" >&6
6550 fi
6551 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6552 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6553 else
6554   # Is the header compilable?
6555 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6556 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6557 cat >conftest.$ac_ext <<_ACEOF
6558 /* confdefs.h.  */
6559 _ACEOF
6560 cat confdefs.h >>conftest.$ac_ext
6561 cat >>conftest.$ac_ext <<_ACEOF
6562 /* end confdefs.h.  */
6563 $ac_includes_default
6564 #include <$ac_header>
6565 _ACEOF
6566 rm -f conftest.$ac_objext
6567 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6568   (eval $ac_compile) 2>conftest.er1
6569   ac_status=$?
6570   grep -v '^ *+' conftest.er1 >conftest.err
6571   rm -f conftest.er1
6572   cat conftest.err >&5
6573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6574   (exit $ac_status); } &&
6575          { ac_try='test -z "$ac_c_werror_flag"
6576                          || test ! -s conftest.err'
6577   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6578   (eval $ac_try) 2>&5
6579   ac_status=$?
6580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6581   (exit $ac_status); }; } &&
6582          { ac_try='test -s conftest.$ac_objext'
6583   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6584   (eval $ac_try) 2>&5
6585   ac_status=$?
6586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6587   (exit $ac_status); }; }; then
6588   ac_header_compiler=yes
6589 else
6590   echo "$as_me: failed program was:" >&5
6591 sed 's/^/| /' conftest.$ac_ext >&5
6592
6593 ac_header_compiler=no
6594 fi
6595 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6596 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6597 echo "${ECHO_T}$ac_header_compiler" >&6
6598
6599 # Is the header present?
6600 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6601 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6602 cat >conftest.$ac_ext <<_ACEOF
6603 /* confdefs.h.  */
6604 _ACEOF
6605 cat confdefs.h >>conftest.$ac_ext
6606 cat >>conftest.$ac_ext <<_ACEOF
6607 /* end confdefs.h.  */
6608 #include <$ac_header>
6609 _ACEOF
6610 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6611   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6612   ac_status=$?
6613   grep -v '^ *+' conftest.er1 >conftest.err
6614   rm -f conftest.er1
6615   cat conftest.err >&5
6616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6617   (exit $ac_status); } >/dev/null; then
6618   if test -s conftest.err; then
6619     ac_cpp_err=$ac_c_preproc_warn_flag
6620     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6621   else
6622     ac_cpp_err=
6623   fi
6624 else
6625   ac_cpp_err=yes
6626 fi
6627 if test -z "$ac_cpp_err"; then
6628   ac_header_preproc=yes
6629 else
6630   echo "$as_me: failed program was:" >&5
6631 sed 's/^/| /' conftest.$ac_ext >&5
6632
6633   ac_header_preproc=no
6634 fi
6635 rm -f conftest.err conftest.$ac_ext
6636 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6637 echo "${ECHO_T}$ac_header_preproc" >&6
6638
6639 # So?  What about this header?
6640 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6641   yes:no: )
6642     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6643 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6644     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6645 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6646     ac_header_preproc=yes
6647     ;;
6648   no:yes:* )
6649     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6650 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6651     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6652 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6653     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6654 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6655     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6656 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6657     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6658 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6659     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6660 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6661     (
6662       cat <<\_ASBOX
6663 ## ------------------------------------------ ##
6664 ## Report this to the AC_PACKAGE_NAME lists.  ##
6665 ## ------------------------------------------ ##
6666 _ASBOX
6667     ) |
6668       sed "s/^/$as_me: WARNING:     /" >&2
6669     ;;
6670 esac
6671 echo "$as_me:$LINENO: checking for $ac_header" >&5
6672 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6673 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6674   echo $ECHO_N "(cached) $ECHO_C" >&6
6675 else
6676   eval "$as_ac_Header=\$ac_header_preproc"
6677 fi
6678 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6679 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6680
6681 fi
6682 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6683   cat >>confdefs.h <<_ACEOF
6684 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6685 _ACEOF
6686
6687 fi
6688
6689 done
6690
6691
6692 for ac_func in getpagesize
6693 do
6694 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6695 echo "$as_me:$LINENO: checking for $ac_func" >&5
6696 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6697 if eval "test \"\${$as_ac_var+set}\" = set"; then
6698   echo $ECHO_N "(cached) $ECHO_C" >&6
6699 else
6700   cat >conftest.$ac_ext <<_ACEOF
6701 /* confdefs.h.  */
6702 _ACEOF
6703 cat confdefs.h >>conftest.$ac_ext
6704 cat >>conftest.$ac_ext <<_ACEOF
6705 /* end confdefs.h.  */
6706 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6707    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
6708 #define $ac_func innocuous_$ac_func
6709
6710 /* System header to define __stub macros and hopefully few prototypes,
6711     which can conflict with char $ac_func (); below.
6712     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6713     <limits.h> exists even on freestanding compilers.  */
6714
6715 #ifdef __STDC__
6716 # include <limits.h>
6717 #else
6718 # include <assert.h>
6719 #endif
6720
6721 #undef $ac_func
6722
6723 /* Override any gcc2 internal prototype to avoid an error.  */
6724 #ifdef __cplusplus
6725 extern "C"
6726 {
6727 #endif
6728 /* We use char because int might match the return type of a gcc2
6729    builtin and then its argument prototype would still apply.  */
6730 char $ac_func ();
6731 /* The GNU C library defines this for functions which it implements
6732     to always fail with ENOSYS.  Some functions are actually named
6733     something starting with __ and the normal name is an alias.  */
6734 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6735 choke me
6736 #else
6737 char (*f) () = $ac_func;
6738 #endif
6739 #ifdef __cplusplus
6740 }
6741 #endif
6742
6743 int
6744 main ()
6745 {
6746 return f != $ac_func;
6747   ;
6748   return 0;
6749 }
6750 _ACEOF
6751 rm -f conftest.$ac_objext conftest$ac_exeext
6752 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6753   (eval $ac_link) 2>conftest.er1
6754   ac_status=$?
6755   grep -v '^ *+' conftest.er1 >conftest.err
6756   rm -f conftest.er1
6757   cat conftest.err >&5
6758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6759   (exit $ac_status); } &&
6760          { ac_try='test -z "$ac_c_werror_flag"
6761                          || test ! -s conftest.err'
6762   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6763   (eval $ac_try) 2>&5
6764   ac_status=$?
6765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6766   (exit $ac_status); }; } &&
6767          { ac_try='test -s conftest$ac_exeext'
6768   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6769   (eval $ac_try) 2>&5
6770   ac_status=$?
6771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6772   (exit $ac_status); }; }; then
6773   eval "$as_ac_var=yes"
6774 else
6775   echo "$as_me: failed program was:" >&5
6776 sed 's/^/| /' conftest.$ac_ext >&5
6777
6778 eval "$as_ac_var=no"
6779 fi
6780 rm -f conftest.err conftest.$ac_objext \
6781       conftest$ac_exeext conftest.$ac_ext
6782 fi
6783 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6784 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6785 if test `eval echo '${'$as_ac_var'}'` = yes; then
6786   cat >>confdefs.h <<_ACEOF
6787 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6788 _ACEOF
6789
6790 fi
6791 done
6792
6793 echo "$as_me:$LINENO: checking for working mmap" >&5
6794 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
6795 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
6796   echo $ECHO_N "(cached) $ECHO_C" >&6
6797 else
6798   if test "$cross_compiling" = yes; then
6799   ac_cv_func_mmap_fixed_mapped=no
6800 else
6801   cat >conftest.$ac_ext <<_ACEOF
6802 /* confdefs.h.  */
6803 _ACEOF
6804 cat confdefs.h >>conftest.$ac_ext
6805 cat >>conftest.$ac_ext <<_ACEOF
6806 /* end confdefs.h.  */
6807 $ac_includes_default
6808 /* malloc might have been renamed as rpl_malloc. */
6809 #undef malloc
6810
6811 /* Thanks to Mike Haertel and Jim Avera for this test.
6812    Here is a matrix of mmap possibilities:
6813         mmap private not fixed
6814         mmap private fixed at somewhere currently unmapped
6815         mmap private fixed at somewhere already mapped
6816         mmap shared not fixed
6817         mmap shared fixed at somewhere currently unmapped
6818         mmap shared fixed at somewhere already mapped
6819    For private mappings, we should verify that changes cannot be read()
6820    back from the file, nor mmap's back from the file at a different
6821    address.  (There have been systems where private was not correctly
6822    implemented like the infamous i386 svr4.0, and systems where the
6823    VM page cache was not coherent with the file system buffer cache
6824    like early versions of FreeBSD and possibly contemporary NetBSD.)
6825    For shared mappings, we should conversely verify that changes get
6826    propagated back to all the places they're supposed to be.
6827
6828    Grep wants private fixed already mapped.
6829    The main things grep needs to know about mmap are:
6830    * does it exist and is it safe to write into the mmap'd area
6831    * how to use it (BSD variants)  */
6832
6833 #include <fcntl.h>
6834 #include <sys/mman.h>
6835
6836 #if !STDC_HEADERS && !HAVE_STDLIB_H
6837 char *malloc ();
6838 #endif
6839
6840 /* This mess was copied from the GNU getpagesize.h.  */
6841 #if !HAVE_GETPAGESIZE
6842 /* Assume that all systems that can run configure have sys/param.h.  */
6843 # if !HAVE_SYS_PARAM_H
6844 #  define HAVE_SYS_PARAM_H 1
6845 # endif
6846
6847 # ifdef _SC_PAGESIZE
6848 #  define getpagesize() sysconf(_SC_PAGESIZE)
6849 # else /* no _SC_PAGESIZE */
6850 #  if HAVE_SYS_PARAM_H
6851 #   include <sys/param.h>
6852 #   ifdef EXEC_PAGESIZE
6853 #    define getpagesize() EXEC_PAGESIZE
6854 #   else /* no EXEC_PAGESIZE */
6855 #    ifdef NBPG
6856 #     define getpagesize() NBPG * CLSIZE
6857 #     ifndef CLSIZE
6858 #      define CLSIZE 1
6859 #     endif /* no CLSIZE */
6860 #    else /* no NBPG */
6861 #     ifdef NBPC
6862 #      define getpagesize() NBPC
6863 #     else /* no NBPC */
6864 #      ifdef PAGESIZE
6865 #       define getpagesize() PAGESIZE
6866 #      endif /* PAGESIZE */
6867 #     endif /* no NBPC */
6868 #    endif /* no NBPG */
6869 #   endif /* no EXEC_PAGESIZE */
6870 #  else /* no HAVE_SYS_PARAM_H */
6871 #   define getpagesize() 8192   /* punt totally */
6872 #  endif /* no HAVE_SYS_PARAM_H */
6873 # endif /* no _SC_PAGESIZE */
6874
6875 #endif /* no HAVE_GETPAGESIZE */
6876
6877 int
6878 main ()
6879 {
6880   char *data, *data2, *data3;
6881   int i, pagesize;
6882   int fd;
6883
6884   pagesize = getpagesize ();
6885
6886   /* First, make a file with some known garbage in it. */
6887   data = (char *) malloc (pagesize);
6888   if (!data)
6889     exit (1);
6890   for (i = 0; i < pagesize; ++i)
6891     *(data + i) = rand ();
6892   umask (0);
6893   fd = creat ("conftest.mmap", 0600);
6894   if (fd < 0)
6895     exit (1);
6896   if (write (fd, data, pagesize) != pagesize)
6897     exit (1);
6898   close (fd);
6899
6900   /* Next, try to mmap the file at a fixed address which already has
6901      something else allocated at it.  If we can, also make sure that
6902      we see the same garbage.  */
6903   fd = open ("conftest.mmap", O_RDWR);
6904   if (fd < 0)
6905     exit (1);
6906   data2 = (char *) malloc (2 * pagesize);
6907   if (!data2)
6908     exit (1);
6909   data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
6910   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
6911                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
6912     exit (1);
6913   for (i = 0; i < pagesize; ++i)
6914     if (*(data + i) != *(data2 + i))
6915       exit (1);
6916
6917   /* Finally, make sure that changes to the mapped area do not
6918      percolate back to the file as seen by read().  (This is a bug on
6919      some variants of i386 svr4.0.)  */
6920   for (i = 0; i < pagesize; ++i)
6921     *(data2 + i) = *(data2 + i) + 1;
6922   data3 = (char *) malloc (pagesize);
6923   if (!data3)
6924     exit (1);
6925   if (read (fd, data3, pagesize) != pagesize)
6926     exit (1);
6927   for (i = 0; i < pagesize; ++i)
6928     if (*(data + i) != *(data3 + i))
6929       exit (1);
6930   close (fd);
6931   exit (0);
6932 }
6933 _ACEOF
6934 rm -f conftest$ac_exeext
6935 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6936   (eval $ac_link) 2>&5
6937   ac_status=$?
6938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6939   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6940   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6941   (eval $ac_try) 2>&5
6942   ac_status=$?
6943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6944   (exit $ac_status); }; }; then
6945   ac_cv_func_mmap_fixed_mapped=yes
6946 else
6947   echo "$as_me: program exited with status $ac_status" >&5
6948 echo "$as_me: failed program was:" >&5
6949 sed 's/^/| /' conftest.$ac_ext >&5
6950
6951 ( exit $ac_status )
6952 ac_cv_func_mmap_fixed_mapped=no
6953 fi
6954 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6955 fi
6956 fi
6957 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
6958 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
6959 if test $ac_cv_func_mmap_fixed_mapped = yes; then
6960
6961 cat >>confdefs.h <<\_ACEOF
6962 #define HAVE_MMAP 1
6963 _ACEOF
6964
6965 fi
6966 rm -f conftest.mmap
6967
6968
6969
6970
6971
6972
6973
6974
6975
6976
6977
6978 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h string.h \
6979 unistd.h values.h sys/param.h
6980 do
6981 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6982 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6983   echo "$as_me:$LINENO: checking for $ac_header" >&5
6984 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6985 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6986   echo $ECHO_N "(cached) $ECHO_C" >&6
6987 fi
6988 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6989 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6990 else
6991   # Is the header compilable?
6992 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6993 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6994 cat >conftest.$ac_ext <<_ACEOF
6995 /* confdefs.h.  */
6996 _ACEOF
6997 cat confdefs.h >>conftest.$ac_ext
6998 cat >>conftest.$ac_ext <<_ACEOF
6999 /* end confdefs.h.  */
7000 $ac_includes_default
7001 #include <$ac_header>
7002 _ACEOF
7003 rm -f conftest.$ac_objext
7004 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7005   (eval $ac_compile) 2>conftest.er1
7006   ac_status=$?
7007   grep -v '^ *+' conftest.er1 >conftest.err
7008   rm -f conftest.er1
7009   cat conftest.err >&5
7010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7011   (exit $ac_status); } &&
7012          { ac_try='test -z "$ac_c_werror_flag"
7013                          || test ! -s conftest.err'
7014   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7015   (eval $ac_try) 2>&5
7016   ac_status=$?
7017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7018   (exit $ac_status); }; } &&
7019          { ac_try='test -s conftest.$ac_objext'
7020   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7021   (eval $ac_try) 2>&5
7022   ac_status=$?
7023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7024   (exit $ac_status); }; }; then
7025   ac_header_compiler=yes
7026 else
7027   echo "$as_me: failed program was:" >&5
7028 sed 's/^/| /' conftest.$ac_ext >&5
7029
7030 ac_header_compiler=no
7031 fi
7032 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7033 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7034 echo "${ECHO_T}$ac_header_compiler" >&6
7035
7036 # Is the header present?
7037 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7038 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7039 cat >conftest.$ac_ext <<_ACEOF
7040 /* confdefs.h.  */
7041 _ACEOF
7042 cat confdefs.h >>conftest.$ac_ext
7043 cat >>conftest.$ac_ext <<_ACEOF
7044 /* end confdefs.h.  */
7045 #include <$ac_header>
7046 _ACEOF
7047 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7048   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7049   ac_status=$?
7050   grep -v '^ *+' conftest.er1 >conftest.err
7051   rm -f conftest.er1
7052   cat conftest.err >&5
7053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7054   (exit $ac_status); } >/dev/null; then
7055   if test -s conftest.err; then
7056     ac_cpp_err=$ac_c_preproc_warn_flag
7057     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7058   else
7059     ac_cpp_err=
7060   fi
7061 else
7062   ac_cpp_err=yes
7063 fi
7064 if test -z "$ac_cpp_err"; then
7065   ac_header_preproc=yes
7066 else
7067   echo "$as_me: failed program was:" >&5
7068 sed 's/^/| /' conftest.$ac_ext >&5
7069
7070   ac_header_preproc=no
7071 fi
7072 rm -f conftest.err conftest.$ac_ext
7073 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7074 echo "${ECHO_T}$ac_header_preproc" >&6
7075
7076 # So?  What about this header?
7077 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7078   yes:no: )
7079     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7080 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7081     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7082 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7083     ac_header_preproc=yes
7084     ;;
7085   no:yes:* )
7086     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7087 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7088     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7089 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7090     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7091 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7092     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7093 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7094     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7095 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7096     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7097 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7098     (
7099       cat <<\_ASBOX
7100 ## ------------------------------------------ ##
7101 ## Report this to the AC_PACKAGE_NAME lists.  ##
7102 ## ------------------------------------------ ##
7103 _ASBOX
7104     ) |
7105       sed "s/^/$as_me: WARNING:     /" >&2
7106     ;;
7107 esac
7108 echo "$as_me:$LINENO: checking for $ac_header" >&5
7109 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7110 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7111   echo $ECHO_N "(cached) $ECHO_C" >&6
7112 else
7113   eval "$as_ac_Header=\$ac_header_preproc"
7114 fi
7115 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7116 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7117
7118 fi
7119 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7120   cat >>confdefs.h <<_ACEOF
7121 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7122 _ACEOF
7123
7124 fi
7125
7126 done
7127
7128
7129
7130
7131
7132
7133
7134
7135
7136
7137
7138 for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \
7139 __argz_count __argz_stringify __argz_next
7140 do
7141 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7142 echo "$as_me:$LINENO: checking for $ac_func" >&5
7143 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7144 if eval "test \"\${$as_ac_var+set}\" = set"; then
7145   echo $ECHO_N "(cached) $ECHO_C" >&6
7146 else
7147   cat >conftest.$ac_ext <<_ACEOF
7148 /* confdefs.h.  */
7149 _ACEOF
7150 cat confdefs.h >>conftest.$ac_ext
7151 cat >>conftest.$ac_ext <<_ACEOF
7152 /* end confdefs.h.  */
7153 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7154    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7155 #define $ac_func innocuous_$ac_func
7156
7157 /* System header to define __stub macros and hopefully few prototypes,
7158     which can conflict with char $ac_func (); below.
7159     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7160     <limits.h> exists even on freestanding compilers.  */
7161
7162 #ifdef __STDC__
7163 # include <limits.h>
7164 #else
7165 # include <assert.h>
7166 #endif
7167
7168 #undef $ac_func
7169
7170 /* Override any gcc2 internal prototype to avoid an error.  */
7171 #ifdef __cplusplus
7172 extern "C"
7173 {
7174 #endif
7175 /* We use char because int might match the return type of a gcc2
7176    builtin and then its argument prototype would still apply.  */
7177 char $ac_func ();
7178 /* The GNU C library defines this for functions which it implements
7179     to always fail with ENOSYS.  Some functions are actually named
7180     something starting with __ and the normal name is an alias.  */
7181 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7182 choke me
7183 #else
7184 char (*f) () = $ac_func;
7185 #endif
7186 #ifdef __cplusplus
7187 }
7188 #endif
7189
7190 int
7191 main ()
7192 {
7193 return f != $ac_func;
7194   ;
7195   return 0;
7196 }
7197 _ACEOF
7198 rm -f conftest.$ac_objext conftest$ac_exeext
7199 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7200   (eval $ac_link) 2>conftest.er1
7201   ac_status=$?
7202   grep -v '^ *+' conftest.er1 >conftest.err
7203   rm -f conftest.er1
7204   cat conftest.err >&5
7205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7206   (exit $ac_status); } &&
7207          { ac_try='test -z "$ac_c_werror_flag"
7208                          || test ! -s conftest.err'
7209   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7210   (eval $ac_try) 2>&5
7211   ac_status=$?
7212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7213   (exit $ac_status); }; } &&
7214          { ac_try='test -s conftest$ac_exeext'
7215   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7216   (eval $ac_try) 2>&5
7217   ac_status=$?
7218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7219   (exit $ac_status); }; }; then
7220   eval "$as_ac_var=yes"
7221 else
7222   echo "$as_me: failed program was:" >&5
7223 sed 's/^/| /' conftest.$ac_ext >&5
7224
7225 eval "$as_ac_var=no"
7226 fi
7227 rm -f conftest.err conftest.$ac_objext \
7228       conftest$ac_exeext conftest.$ac_ext
7229 fi
7230 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7231 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7232 if test `eval echo '${'$as_ac_var'}'` = yes; then
7233   cat >>confdefs.h <<_ACEOF
7234 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7235 _ACEOF
7236
7237 fi
7238 done
7239
7240
7241    if test "${ac_cv_func_stpcpy+set}" != "set"; then
7242
7243 for ac_func in stpcpy
7244 do
7245 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7246 echo "$as_me:$LINENO: checking for $ac_func" >&5
7247 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7248 if eval "test \"\${$as_ac_var+set}\" = set"; then
7249   echo $ECHO_N "(cached) $ECHO_C" >&6
7250 else
7251   cat >conftest.$ac_ext <<_ACEOF
7252 /* confdefs.h.  */
7253 _ACEOF
7254 cat confdefs.h >>conftest.$ac_ext
7255 cat >>conftest.$ac_ext <<_ACEOF
7256 /* end confdefs.h.  */
7257 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7258    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7259 #define $ac_func innocuous_$ac_func
7260
7261 /* System header to define __stub macros and hopefully few prototypes,
7262     which can conflict with char $ac_func (); below.
7263     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7264     <limits.h> exists even on freestanding compilers.  */
7265
7266 #ifdef __STDC__
7267 # include <limits.h>
7268 #else
7269 # include <assert.h>
7270 #endif
7271
7272 #undef $ac_func
7273
7274 /* Override any gcc2 internal prototype to avoid an error.  */
7275 #ifdef __cplusplus
7276 extern "C"
7277 {
7278 #endif
7279 /* We use char because int might match the return type of a gcc2
7280    builtin and then its argument prototype would still apply.  */
7281 char $ac_func ();
7282 /* The GNU C library defines this for functions which it implements
7283     to always fail with ENOSYS.  Some functions are actually named
7284     something starting with __ and the normal name is an alias.  */
7285 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7286 choke me
7287 #else
7288 char (*f) () = $ac_func;
7289 #endif
7290 #ifdef __cplusplus
7291 }
7292 #endif
7293
7294 int
7295 main ()
7296 {
7297 return f != $ac_func;
7298   ;
7299   return 0;
7300 }
7301 _ACEOF
7302 rm -f conftest.$ac_objext conftest$ac_exeext
7303 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7304   (eval $ac_link) 2>conftest.er1
7305   ac_status=$?
7306   grep -v '^ *+' conftest.er1 >conftest.err
7307   rm -f conftest.er1
7308   cat conftest.err >&5
7309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7310   (exit $ac_status); } &&
7311          { ac_try='test -z "$ac_c_werror_flag"
7312                          || test ! -s conftest.err'
7313   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7314   (eval $ac_try) 2>&5
7315   ac_status=$?
7316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7317   (exit $ac_status); }; } &&
7318          { ac_try='test -s conftest$ac_exeext'
7319   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7320   (eval $ac_try) 2>&5
7321   ac_status=$?
7322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7323   (exit $ac_status); }; }; then
7324   eval "$as_ac_var=yes"
7325 else
7326   echo "$as_me: failed program was:" >&5
7327 sed 's/^/| /' conftest.$ac_ext >&5
7328
7329 eval "$as_ac_var=no"
7330 fi
7331 rm -f conftest.err conftest.$ac_objext \
7332       conftest$ac_exeext conftest.$ac_ext
7333 fi
7334 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7335 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7336 if test `eval echo '${'$as_ac_var'}'` = yes; then
7337   cat >>confdefs.h <<_ACEOF
7338 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7339 _ACEOF
7340
7341 fi
7342 done
7343
7344    fi
7345    if test "${ac_cv_func_stpcpy}" = "yes"; then
7346
7347 cat >>confdefs.h <<\_ACEOF
7348 #define HAVE_STPCPY 1
7349 _ACEOF
7350
7351    fi
7352
7353    if test $ac_cv_header_locale_h = yes; then
7354     echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
7355 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
7356 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
7357   echo $ECHO_N "(cached) $ECHO_C" >&6
7358 else
7359   cat >conftest.$ac_ext <<_ACEOF
7360 /* confdefs.h.  */
7361 _ACEOF
7362 cat confdefs.h >>conftest.$ac_ext
7363 cat >>conftest.$ac_ext <<_ACEOF
7364 /* end confdefs.h.  */
7365 #include <locale.h>
7366 int
7367 main ()
7368 {
7369 return LC_MESSAGES
7370   ;
7371   return 0;
7372 }
7373 _ACEOF
7374 rm -f conftest.$ac_objext conftest$ac_exeext
7375 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7376   (eval $ac_link) 2>conftest.er1
7377   ac_status=$?
7378   grep -v '^ *+' conftest.er1 >conftest.err
7379   rm -f conftest.er1
7380   cat conftest.err >&5
7381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7382   (exit $ac_status); } &&
7383          { ac_try='test -z "$ac_c_werror_flag"
7384                          || test ! -s conftest.err'
7385   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7386   (eval $ac_try) 2>&5
7387   ac_status=$?
7388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7389   (exit $ac_status); }; } &&
7390          { ac_try='test -s conftest$ac_exeext'
7391   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7392   (eval $ac_try) 2>&5
7393   ac_status=$?
7394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7395   (exit $ac_status); }; }; then
7396   am_cv_val_LC_MESSAGES=yes
7397 else
7398   echo "$as_me: failed program was:" >&5
7399 sed 's/^/| /' conftest.$ac_ext >&5
7400
7401 am_cv_val_LC_MESSAGES=no
7402 fi
7403 rm -f conftest.err conftest.$ac_objext \
7404       conftest$ac_exeext conftest.$ac_ext
7405 fi
7406 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
7407 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
7408     if test $am_cv_val_LC_MESSAGES = yes; then
7409
7410 cat >>confdefs.h <<\_ACEOF
7411 #define HAVE_LC_MESSAGES 1
7412 _ACEOF
7413
7414     fi
7415   fi
7416    echo "$as_me:$LINENO: checking whether NLS is requested" >&5
7417 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
7418         # Check whether --enable-nls or --disable-nls was given.
7419 if test "${enable_nls+set}" = set; then
7420   enableval="$enable_nls"
7421   USE_NLS=$enableval
7422 else
7423   USE_NLS=yes
7424 fi;
7425     echo "$as_me:$LINENO: result: $USE_NLS" >&5
7426 echo "${ECHO_T}$USE_NLS" >&6
7427
7428
7429     USE_INCLUDED_LIBINTL=no
7430
7431         if test "$USE_NLS" = "yes"; then
7432       echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
7433 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
7434
7435 # Check whether --with-included-gettext or --without-included-gettext was given.
7436 if test "${with_included_gettext+set}" = set; then
7437   withval="$with_included_gettext"
7438   nls_cv_force_use_gnu_gettext=$withval
7439 else
7440   nls_cv_force_use_gnu_gettext=no
7441 fi;
7442       echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
7443 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
7444
7445       nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
7446       if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
7447                                         nls_cv_header_intl=
7448         nls_cv_header_libgt=
7449         CATOBJEXT=
7450
7451         if test "${ac_cv_header_libintl_h+set}" = set; then
7452   echo "$as_me:$LINENO: checking for libintl.h" >&5
7453 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
7454 if test "${ac_cv_header_libintl_h+set}" = set; then
7455   echo $ECHO_N "(cached) $ECHO_C" >&6
7456 fi
7457 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
7458 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
7459 else
7460   # Is the header compilable?
7461 echo "$as_me:$LINENO: checking libintl.h usability" >&5
7462 echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6
7463 cat >conftest.$ac_ext <<_ACEOF
7464 /* confdefs.h.  */
7465 _ACEOF
7466 cat confdefs.h >>conftest.$ac_ext
7467 cat >>conftest.$ac_ext <<_ACEOF
7468 /* end confdefs.h.  */
7469 $ac_includes_default
7470 #include <libintl.h>
7471 _ACEOF
7472 rm -f conftest.$ac_objext
7473 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7474   (eval $ac_compile) 2>conftest.er1
7475   ac_status=$?
7476   grep -v '^ *+' conftest.er1 >conftest.err
7477   rm -f conftest.er1
7478   cat conftest.err >&5
7479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7480   (exit $ac_status); } &&
7481          { ac_try='test -z "$ac_c_werror_flag"
7482                          || test ! -s conftest.err'
7483   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7484   (eval $ac_try) 2>&5
7485   ac_status=$?
7486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7487   (exit $ac_status); }; } &&
7488          { ac_try='test -s conftest.$ac_objext'
7489   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7490   (eval $ac_try) 2>&5
7491   ac_status=$?
7492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7493   (exit $ac_status); }; }; then
7494   ac_header_compiler=yes
7495 else
7496   echo "$as_me: failed program was:" >&5
7497 sed 's/^/| /' conftest.$ac_ext >&5
7498
7499 ac_header_compiler=no
7500 fi
7501 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7502 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7503 echo "${ECHO_T}$ac_header_compiler" >&6
7504
7505 # Is the header present?
7506 echo "$as_me:$LINENO: checking libintl.h presence" >&5
7507 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6
7508 cat >conftest.$ac_ext <<_ACEOF
7509 /* confdefs.h.  */
7510 _ACEOF
7511 cat confdefs.h >>conftest.$ac_ext
7512 cat >>conftest.$ac_ext <<_ACEOF
7513 /* end confdefs.h.  */
7514 #include <libintl.h>
7515 _ACEOF
7516 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7517   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7518   ac_status=$?
7519   grep -v '^ *+' conftest.er1 >conftest.err
7520   rm -f conftest.er1
7521   cat conftest.err >&5
7522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7523   (exit $ac_status); } >/dev/null; then
7524   if test -s conftest.err; then
7525     ac_cpp_err=$ac_c_preproc_warn_flag
7526     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7527   else
7528     ac_cpp_err=
7529   fi
7530 else
7531   ac_cpp_err=yes
7532 fi
7533 if test -z "$ac_cpp_err"; then
7534   ac_header_preproc=yes
7535 else
7536   echo "$as_me: failed program was:" >&5
7537 sed 's/^/| /' conftest.$ac_ext >&5
7538
7539   ac_header_preproc=no
7540 fi
7541 rm -f conftest.err conftest.$ac_ext
7542 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7543 echo "${ECHO_T}$ac_header_preproc" >&6
7544
7545 # So?  What about this header?
7546 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7547   yes:no: )
7548     { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
7549 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7550     { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
7551 echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
7552     ac_header_preproc=yes
7553     ;;
7554   no:yes:* )
7555     { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
7556 echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
7557     { echo "$as_me:$LINENO: WARNING: libintl.h:     check for missing prerequisite headers?" >&5
7558 echo "$as_me: WARNING: libintl.h:     check for missing prerequisite headers?" >&2;}
7559     { echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
7560 echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
7561     { echo "$as_me:$LINENO: WARNING: libintl.h:     section \"Present But Cannot Be Compiled\"" >&5
7562 echo "$as_me: WARNING: libintl.h:     section \"Present But Cannot Be Compiled\"" >&2;}
7563     { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
7564 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
7565     { echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
7566 echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
7567     (
7568       cat <<\_ASBOX
7569 ## ------------------------------------------ ##
7570 ## Report this to the AC_PACKAGE_NAME lists.  ##
7571 ## ------------------------------------------ ##
7572 _ASBOX
7573     ) |
7574       sed "s/^/$as_me: WARNING:     /" >&2
7575     ;;
7576 esac
7577 echo "$as_me:$LINENO: checking for libintl.h" >&5
7578 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
7579 if test "${ac_cv_header_libintl_h+set}" = set; then
7580   echo $ECHO_N "(cached) $ECHO_C" >&6
7581 else
7582   ac_cv_header_libintl_h=$ac_header_preproc
7583 fi
7584 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
7585 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
7586
7587 fi
7588 if test $ac_cv_header_libintl_h = yes; then
7589   echo "$as_me:$LINENO: checking for gettext in libc" >&5
7590 echo $ECHO_N "checking for gettext in libc... $ECHO_C" >&6
7591 if test "${gt_cv_func_gettext_libc+set}" = set; then
7592   echo $ECHO_N "(cached) $ECHO_C" >&6
7593 else
7594   cat >conftest.$ac_ext <<_ACEOF
7595 /* confdefs.h.  */
7596 _ACEOF
7597 cat confdefs.h >>conftest.$ac_ext
7598 cat >>conftest.$ac_ext <<_ACEOF
7599 /* end confdefs.h.  */
7600 #include <libintl.h>
7601 int
7602 main ()
7603 {
7604 return (int) gettext ("")
7605   ;
7606   return 0;
7607 }
7608 _ACEOF
7609 rm -f conftest.$ac_objext conftest$ac_exeext
7610 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7611   (eval $ac_link) 2>conftest.er1
7612   ac_status=$?
7613   grep -v '^ *+' conftest.er1 >conftest.err
7614   rm -f conftest.er1
7615   cat conftest.err >&5
7616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7617   (exit $ac_status); } &&
7618          { ac_try='test -z "$ac_c_werror_flag"
7619                          || test ! -s conftest.err'
7620   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7621   (eval $ac_try) 2>&5
7622   ac_status=$?
7623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7624   (exit $ac_status); }; } &&
7625          { ac_try='test -s conftest$ac_exeext'
7626   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7627   (eval $ac_try) 2>&5
7628   ac_status=$?
7629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7630   (exit $ac_status); }; }; then
7631   gt_cv_func_gettext_libc=yes
7632 else
7633   echo "$as_me: failed program was:" >&5
7634 sed 's/^/| /' conftest.$ac_ext >&5
7635
7636 gt_cv_func_gettext_libc=no
7637 fi
7638 rm -f conftest.err conftest.$ac_objext \
7639       conftest$ac_exeext conftest.$ac_ext
7640 fi
7641 echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libc" >&5
7642 echo "${ECHO_T}$gt_cv_func_gettext_libc" >&6
7643
7644            if test "$gt_cv_func_gettext_libc" != "yes"; then
7645              echo "$as_me:$LINENO: checking for bindtextdomain in -lintl" >&5
7646 echo $ECHO_N "checking for bindtextdomain in -lintl... $ECHO_C" >&6
7647 if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then
7648   echo $ECHO_N "(cached) $ECHO_C" >&6
7649 else
7650   ac_check_lib_save_LIBS=$LIBS
7651 LIBS="-lintl  $LIBS"
7652 cat >conftest.$ac_ext <<_ACEOF
7653 /* confdefs.h.  */
7654 _ACEOF
7655 cat confdefs.h >>conftest.$ac_ext
7656 cat >>conftest.$ac_ext <<_ACEOF
7657 /* end confdefs.h.  */
7658
7659 /* Override any gcc2 internal prototype to avoid an error.  */
7660 #ifdef __cplusplus
7661 extern "C"
7662 #endif
7663 /* We use char because int might match the return type of a gcc2
7664    builtin and then its argument prototype would still apply.  */
7665 char bindtextdomain ();
7666 int
7667 main ()
7668 {
7669 bindtextdomain ();
7670   ;
7671   return 0;
7672 }
7673 _ACEOF
7674 rm -f conftest.$ac_objext conftest$ac_exeext
7675 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7676   (eval $ac_link) 2>conftest.er1
7677   ac_status=$?
7678   grep -v '^ *+' conftest.er1 >conftest.err
7679   rm -f conftest.er1
7680   cat conftest.err >&5
7681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7682   (exit $ac_status); } &&
7683          { ac_try='test -z "$ac_c_werror_flag"
7684                          || test ! -s conftest.err'
7685   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7686   (eval $ac_try) 2>&5
7687   ac_status=$?
7688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7689   (exit $ac_status); }; } &&
7690          { ac_try='test -s conftest$ac_exeext'
7691   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7692   (eval $ac_try) 2>&5
7693   ac_status=$?
7694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7695   (exit $ac_status); }; }; then
7696   ac_cv_lib_intl_bindtextdomain=yes
7697 else
7698   echo "$as_me: failed program was:" >&5
7699 sed 's/^/| /' conftest.$ac_ext >&5
7700
7701 ac_cv_lib_intl_bindtextdomain=no
7702 fi
7703 rm -f conftest.err conftest.$ac_objext \
7704       conftest$ac_exeext conftest.$ac_ext
7705 LIBS=$ac_check_lib_save_LIBS
7706 fi
7707 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_bindtextdomain" >&5
7708 echo "${ECHO_T}$ac_cv_lib_intl_bindtextdomain" >&6
7709 if test $ac_cv_lib_intl_bindtextdomain = yes; then
7710   echo "$as_me:$LINENO: checking for gettext in libintl" >&5
7711 echo $ECHO_N "checking for gettext in libintl... $ECHO_C" >&6
7712 if test "${gt_cv_func_gettext_libintl+set}" = set; then
7713   echo $ECHO_N "(cached) $ECHO_C" >&6
7714 else
7715   cat >conftest.$ac_ext <<_ACEOF
7716 /* confdefs.h.  */
7717 _ACEOF
7718 cat confdefs.h >>conftest.$ac_ext
7719 cat >>conftest.$ac_ext <<_ACEOF
7720 /* end confdefs.h.  */
7721
7722 int
7723 main ()
7724 {
7725 return (int) gettext ("")
7726   ;
7727   return 0;
7728 }
7729 _ACEOF
7730 rm -f conftest.$ac_objext conftest$ac_exeext
7731 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7732   (eval $ac_link) 2>conftest.er1
7733   ac_status=$?
7734   grep -v '^ *+' conftest.er1 >conftest.err
7735   rm -f conftest.er1
7736   cat conftest.err >&5
7737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7738   (exit $ac_status); } &&
7739          { ac_try='test -z "$ac_c_werror_flag"
7740                          || test ! -s conftest.err'
7741   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7742   (eval $ac_try) 2>&5
7743   ac_status=$?
7744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7745   (exit $ac_status); }; } &&
7746          { ac_try='test -s conftest$ac_exeext'
7747   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7748   (eval $ac_try) 2>&5
7749   ac_status=$?
7750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7751   (exit $ac_status); }; }; then
7752   gt_cv_func_gettext_libintl=yes
7753 else
7754   echo "$as_me: failed program was:" >&5
7755 sed 's/^/| /' conftest.$ac_ext >&5
7756
7757 gt_cv_func_gettext_libintl=no
7758 fi
7759 rm -f conftest.err conftest.$ac_objext \
7760       conftest$ac_exeext conftest.$ac_ext
7761 fi
7762 echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libintl" >&5
7763 echo "${ECHO_T}$gt_cv_func_gettext_libintl" >&6
7764 fi
7765
7766            fi
7767
7768            if test "$gt_cv_func_gettext_libc" = "yes" \
7769               || test "$gt_cv_func_gettext_libintl" = "yes"; then
7770
7771 cat >>confdefs.h <<\_ACEOF
7772 #define HAVE_GETTEXT 1
7773 _ACEOF
7774
7775               # Extract the first word of "msgfmt", so it can be a program name with args.
7776 set dummy msgfmt; ac_word=$2
7777 echo "$as_me:$LINENO: checking for $ac_word" >&5
7778 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7779 if test "${ac_cv_path_MSGFMT+set}" = set; then
7780   echo $ECHO_N "(cached) $ECHO_C" >&6
7781 else
7782   case "$MSGFMT" in
7783   /*)
7784   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
7785   ;;
7786   *)
7787   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7788   for ac_dir in $PATH; do
7789     test -z "$ac_dir" && ac_dir=.
7790     if test -f $ac_dir/$ac_word; then
7791       if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
7792         ac_cv_path_MSGFMT="$ac_dir/$ac_word"
7793         break
7794       fi
7795     fi
7796   done
7797   IFS="$ac_save_ifs"
7798   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
7799   ;;
7800 esac
7801 fi
7802 MSGFMT="$ac_cv_path_MSGFMT"
7803 if test -n "$MSGFMT"; then
7804   echo "$as_me:$LINENO: result: $MSGFMT" >&5
7805 echo "${ECHO_T}$MSGFMT" >&6
7806 else
7807   echo "$as_me:$LINENO: result: no" >&5
7808 echo "${ECHO_T}no" >&6
7809 fi
7810               if test "$MSGFMT" != "no"; then
7811
7812 for ac_func in dcgettext
7813 do
7814 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7815 echo "$as_me:$LINENO: checking for $ac_func" >&5
7816 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7817 if eval "test \"\${$as_ac_var+set}\" = set"; then
7818   echo $ECHO_N "(cached) $ECHO_C" >&6
7819 else
7820   cat >conftest.$ac_ext <<_ACEOF
7821 /* confdefs.h.  */
7822 _ACEOF
7823 cat confdefs.h >>conftest.$ac_ext
7824 cat >>conftest.$ac_ext <<_ACEOF
7825 /* end confdefs.h.  */
7826 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7827    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7828 #define $ac_func innocuous_$ac_func
7829
7830 /* System header to define __stub macros and hopefully few prototypes,
7831     which can conflict with char $ac_func (); below.
7832     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7833     <limits.h> exists even on freestanding compilers.  */
7834
7835 #ifdef __STDC__
7836 # include <limits.h>
7837 #else
7838 # include <assert.h>
7839 #endif
7840
7841 #undef $ac_func
7842
7843 /* Override any gcc2 internal prototype to avoid an error.  */
7844 #ifdef __cplusplus
7845 extern "C"
7846 {
7847 #endif
7848 /* We use char because int might match the return type of a gcc2
7849    builtin and then its argument prototype would still apply.  */
7850 char $ac_func ();
7851 /* The GNU C library defines this for functions which it implements
7852     to always fail with ENOSYS.  Some functions are actually named
7853     something starting with __ and the normal name is an alias.  */
7854 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7855 choke me
7856 #else
7857 char (*f) () = $ac_func;
7858 #endif
7859 #ifdef __cplusplus
7860 }
7861 #endif
7862
7863 int
7864 main ()
7865 {
7866 return f != $ac_func;
7867   ;
7868   return 0;
7869 }
7870 _ACEOF
7871 rm -f conftest.$ac_objext conftest$ac_exeext
7872 if { (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   eval "$as_ac_var=yes"
7894 else
7895   echo "$as_me: failed program was:" >&5
7896 sed 's/^/| /' conftest.$ac_ext >&5
7897
7898 eval "$as_ac_var=no"
7899 fi
7900 rm -f conftest.err conftest.$ac_objext \
7901       conftest$ac_exeext conftest.$ac_ext
7902 fi
7903 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7904 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7905 if test `eval echo '${'$as_ac_var'}'` = yes; then
7906   cat >>confdefs.h <<_ACEOF
7907 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7908 _ACEOF
7909
7910 fi
7911 done
7912
7913                 # Extract the first word of "gmsgfmt", so it can be a program name with args.
7914 set dummy gmsgfmt; ac_word=$2
7915 echo "$as_me:$LINENO: checking for $ac_word" >&5
7916 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7917 if test "${ac_cv_path_GMSGFMT+set}" = set; then
7918   echo $ECHO_N "(cached) $ECHO_C" >&6
7919 else
7920   case $GMSGFMT in
7921   [\\/]* | ?:[\\/]*)
7922   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
7923   ;;
7924   *)
7925   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7926 for as_dir in $PATH
7927 do
7928   IFS=$as_save_IFS
7929   test -z "$as_dir" && as_dir=.
7930   for ac_exec_ext in '' $ac_executable_extensions; do
7931   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7932     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
7933     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7934     break 2
7935   fi
7936 done
7937 done
7938
7939   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
7940   ;;
7941 esac
7942 fi
7943 GMSGFMT=$ac_cv_path_GMSGFMT
7944
7945 if test -n "$GMSGFMT"; then
7946   echo "$as_me:$LINENO: result: $GMSGFMT" >&5
7947 echo "${ECHO_T}$GMSGFMT" >&6
7948 else
7949   echo "$as_me:$LINENO: result: no" >&5
7950 echo "${ECHO_T}no" >&6
7951 fi
7952
7953                 # Extract the first word of "xgettext", so it can be a program name with args.
7954 set dummy xgettext; ac_word=$2
7955 echo "$as_me:$LINENO: checking for $ac_word" >&5
7956 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7957 if test "${ac_cv_path_XGETTEXT+set}" = set; then
7958   echo $ECHO_N "(cached) $ECHO_C" >&6
7959 else
7960   case "$XGETTEXT" in
7961   /*)
7962   ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
7963   ;;
7964   *)
7965   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7966   for ac_dir in $PATH; do
7967     test -z "$ac_dir" && ac_dir=.
7968     if test -f $ac_dir/$ac_word; then
7969       if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
7970         ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
7971         break
7972       fi
7973     fi
7974   done
7975   IFS="$ac_save_ifs"
7976   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
7977   ;;
7978 esac
7979 fi
7980 XGETTEXT="$ac_cv_path_XGETTEXT"
7981 if test -n "$XGETTEXT"; then
7982   echo "$as_me:$LINENO: result: $XGETTEXT" >&5
7983 echo "${ECHO_T}$XGETTEXT" >&6
7984 else
7985   echo "$as_me:$LINENO: result: no" >&5
7986 echo "${ECHO_T}no" >&6
7987 fi
7988
7989                 cat >conftest.$ac_ext <<_ACEOF
7990 /* confdefs.h.  */
7991 _ACEOF
7992 cat confdefs.h >>conftest.$ac_ext
7993 cat >>conftest.$ac_ext <<_ACEOF
7994 /* end confdefs.h.  */
7995
7996 int
7997 main ()
7998 {
7999 extern int _nl_msg_cat_cntr;
8000                                return _nl_msg_cat_cntr
8001   ;
8002   return 0;
8003 }
8004 _ACEOF
8005 rm -f conftest.$ac_objext conftest$ac_exeext
8006 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8007   (eval $ac_link) 2>conftest.er1
8008   ac_status=$?
8009   grep -v '^ *+' conftest.er1 >conftest.err
8010   rm -f conftest.er1
8011   cat conftest.err >&5
8012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8013   (exit $ac_status); } &&
8014          { ac_try='test -z "$ac_c_werror_flag"
8015                          || test ! -s conftest.err'
8016   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8017   (eval $ac_try) 2>&5
8018   ac_status=$?
8019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8020   (exit $ac_status); }; } &&
8021          { ac_try='test -s conftest$ac_exeext'
8022   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8023   (eval $ac_try) 2>&5
8024   ac_status=$?
8025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8026   (exit $ac_status); }; }; then
8027   CATOBJEXT=.gmo
8028                    DATADIRNAME=share
8029 else
8030   echo "$as_me: failed program was:" >&5
8031 sed 's/^/| /' conftest.$ac_ext >&5
8032
8033 CATOBJEXT=.mo
8034                    DATADIRNAME=lib
8035 fi
8036 rm -f conftest.err conftest.$ac_objext \
8037       conftest$ac_exeext conftest.$ac_ext
8038                 INSTOBJEXT=.mo
8039               fi
8040             fi
8041
8042 fi
8043
8044
8045
8046
8047         if test x"$CATOBJEXT" = x && test -d $srcdir/../intl; then
8048           # Neither gettext nor catgets in included in the C library.
8049           # Fall back on GNU gettext library (assuming it is present).
8050           nls_cv_use_gnu_gettext=yes
8051         fi
8052       fi
8053
8054       if test "$nls_cv_use_gnu_gettext" = "yes"; then
8055                 INTLOBJS="\$(GETTOBJS)"
8056         # Extract the first word of "msgfmt", so it can be a program name with args.
8057 set dummy msgfmt; ac_word=$2
8058 echo "$as_me:$LINENO: checking for $ac_word" >&5
8059 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8060 if test "${ac_cv_path_MSGFMT+set}" = set; then
8061   echo $ECHO_N "(cached) $ECHO_C" >&6
8062 else
8063   case "$MSGFMT" in
8064   /*)
8065   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
8066   ;;
8067   *)
8068   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
8069   for ac_dir in $PATH; do
8070     test -z "$ac_dir" && ac_dir=.
8071     if test -f $ac_dir/$ac_word; then
8072       if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
8073         ac_cv_path_MSGFMT="$ac_dir/$ac_word"
8074         break
8075       fi
8076     fi
8077   done
8078   IFS="$ac_save_ifs"
8079   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt"
8080   ;;
8081 esac
8082 fi
8083 MSGFMT="$ac_cv_path_MSGFMT"
8084 if test -n "$MSGFMT"; then
8085   echo "$as_me:$LINENO: result: $MSGFMT" >&5
8086 echo "${ECHO_T}$MSGFMT" >&6
8087 else
8088   echo "$as_me:$LINENO: result: no" >&5
8089 echo "${ECHO_T}no" >&6
8090 fi
8091
8092         # Extract the first word of "gmsgfmt", so it can be a program name with args.
8093 set dummy gmsgfmt; ac_word=$2
8094 echo "$as_me:$LINENO: checking for $ac_word" >&5
8095 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8096 if test "${ac_cv_path_GMSGFMT+set}" = set; then
8097   echo $ECHO_N "(cached) $ECHO_C" >&6
8098 else
8099   case $GMSGFMT in
8100   [\\/]* | ?:[\\/]*)
8101   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
8102   ;;
8103   *)
8104   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8105 for as_dir in $PATH
8106 do
8107   IFS=$as_save_IFS
8108   test -z "$as_dir" && as_dir=.
8109   for ac_exec_ext in '' $ac_executable_extensions; do
8110   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8111     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
8112     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8113     break 2
8114   fi
8115 done
8116 done
8117
8118   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
8119   ;;
8120 esac
8121 fi
8122 GMSGFMT=$ac_cv_path_GMSGFMT
8123
8124 if test -n "$GMSGFMT"; then
8125   echo "$as_me:$LINENO: result: $GMSGFMT" >&5
8126 echo "${ECHO_T}$GMSGFMT" >&6
8127 else
8128   echo "$as_me:$LINENO: result: no" >&5
8129 echo "${ECHO_T}no" >&6
8130 fi
8131
8132         # Extract the first word of "xgettext", so it can be a program name with args.
8133 set dummy xgettext; ac_word=$2
8134 echo "$as_me:$LINENO: checking for $ac_word" >&5
8135 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8136 if test "${ac_cv_path_XGETTEXT+set}" = set; then
8137   echo $ECHO_N "(cached) $ECHO_C" >&6
8138 else
8139   case "$XGETTEXT" in
8140   /*)
8141   ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
8142   ;;
8143   *)
8144   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
8145   for ac_dir in $PATH; do
8146     test -z "$ac_dir" && ac_dir=.
8147     if test -f $ac_dir/$ac_word; then
8148       if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
8149         ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
8150         break
8151       fi
8152     fi
8153   done
8154   IFS="$ac_save_ifs"
8155   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
8156   ;;
8157 esac
8158 fi
8159 XGETTEXT="$ac_cv_path_XGETTEXT"
8160 if test -n "$XGETTEXT"; then
8161   echo "$as_me:$LINENO: result: $XGETTEXT" >&5
8162 echo "${ECHO_T}$XGETTEXT" >&6
8163 else
8164   echo "$as_me:$LINENO: result: no" >&5
8165 echo "${ECHO_T}no" >&6
8166 fi
8167
8168
8169         USE_INCLUDED_LIBINTL=yes
8170         CATOBJEXT=.gmo
8171         INSTOBJEXT=.mo
8172         DATADIRNAME=share
8173         INTLDEPS='$(top_builddir)/../intl/libintl.a'
8174         INTLLIBS=$INTLDEPS
8175         LIBS=`echo $LIBS | sed -e 's/-lintl//'`
8176         nls_cv_header_intl=libintl.h
8177         nls_cv_header_libgt=libgettext.h
8178       fi
8179
8180             if test "$XGETTEXT" != ":"; then
8181                         if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
8182           : ;
8183         else
8184           echo "$as_me:$LINENO: result: found xgettext programs is not GNU xgettext; ignore it" >&5
8185 echo "${ECHO_T}found xgettext programs is not GNU xgettext; ignore it" >&6
8186           XGETTEXT=":"
8187         fi
8188       fi
8189
8190       # We need to process the po/ directory.
8191       POSUB=po
8192     else
8193       DATADIRNAME=share
8194       nls_cv_header_intl=libintl.h
8195       nls_cv_header_libgt=libgettext.h
8196     fi
8197
8198     # If this is used in GNU gettext we have to set USE_NLS to `yes'
8199     # because some of the sources are only built for this goal.
8200     if test "$PACKAGE" = gettext; then
8201       USE_NLS=yes
8202       USE_INCLUDED_LIBINTL=yes
8203     fi
8204
8205                 for lang in $ALL_LINGUAS; do
8206       GMOFILES="$GMOFILES $lang.gmo"
8207       POFILES="$POFILES $lang.po"
8208     done
8209
8210
8211
8212
8213
8214
8215
8216
8217
8218
8219
8220
8221     if test "x$CATOBJEXT" != "x"; then
8222
8223 cat >>confdefs.h <<\_ACEOF
8224 #define ENABLE_NLS 1
8225 _ACEOF
8226
8227     fi
8228
8229
8230    if test "x$CATOBJEXT" != "x"; then
8231      if test "x$ALL_LINGUAS" = "x"; then
8232        LINGUAS=
8233      else
8234        echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
8235 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
8236        NEW_LINGUAS=
8237        for lang in ${LINGUAS=$ALL_LINGUAS}; do
8238          case "$ALL_LINGUAS" in
8239           *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
8240          esac
8241        done
8242        LINGUAS=$NEW_LINGUAS
8243        echo "$as_me:$LINENO: result: $LINGUAS" >&5
8244 echo "${ECHO_T}$LINGUAS" >&6
8245      fi
8246
8247           if test -n "$LINGUAS"; then
8248        for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
8249      fi
8250    fi
8251
8252             if test $ac_cv_header_locale_h = yes; then
8253      INCLUDE_LOCALE_H="#include <locale.h>"
8254    else
8255      INCLUDE_LOCALE_H="\
8256 /* The system does not provide the header <locale.h>.  Take care yourself.  */"
8257    fi
8258
8259
8260             if test -f $srcdir/po2tbl.sed.in; then
8261       if test "$CATOBJEXT" = ".cat"; then
8262          if test "${ac_cv_header_linux_version_h+set}" = set; then
8263   echo "$as_me:$LINENO: checking for linux/version.h" >&5
8264 echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6
8265 if test "${ac_cv_header_linux_version_h+set}" = set; then
8266   echo $ECHO_N "(cached) $ECHO_C" >&6
8267 fi
8268 echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
8269 echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6
8270 else
8271   # Is the header compilable?
8272 echo "$as_me:$LINENO: checking linux/version.h usability" >&5
8273 echo $ECHO_N "checking linux/version.h usability... $ECHO_C" >&6
8274 cat >conftest.$ac_ext <<_ACEOF
8275 /* confdefs.h.  */
8276 _ACEOF
8277 cat confdefs.h >>conftest.$ac_ext
8278 cat >>conftest.$ac_ext <<_ACEOF
8279 /* end confdefs.h.  */
8280 $ac_includes_default
8281 #include <linux/version.h>
8282 _ACEOF
8283 rm -f conftest.$ac_objext
8284 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8285   (eval $ac_compile) 2>conftest.er1
8286   ac_status=$?
8287   grep -v '^ *+' conftest.er1 >conftest.err
8288   rm -f conftest.er1
8289   cat conftest.err >&5
8290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8291   (exit $ac_status); } &&
8292          { ac_try='test -z "$ac_c_werror_flag"
8293                          || test ! -s conftest.err'
8294   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8295   (eval $ac_try) 2>&5
8296   ac_status=$?
8297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8298   (exit $ac_status); }; } &&
8299          { ac_try='test -s conftest.$ac_objext'
8300   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8301   (eval $ac_try) 2>&5
8302   ac_status=$?
8303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8304   (exit $ac_status); }; }; then
8305   ac_header_compiler=yes
8306 else
8307   echo "$as_me: failed program was:" >&5
8308 sed 's/^/| /' conftest.$ac_ext >&5
8309
8310 ac_header_compiler=no
8311 fi
8312 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8313 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8314 echo "${ECHO_T}$ac_header_compiler" >&6
8315
8316 # Is the header present?
8317 echo "$as_me:$LINENO: checking linux/version.h presence" >&5
8318 echo $ECHO_N "checking linux/version.h presence... $ECHO_C" >&6
8319 cat >conftest.$ac_ext <<_ACEOF
8320 /* confdefs.h.  */
8321 _ACEOF
8322 cat confdefs.h >>conftest.$ac_ext
8323 cat >>conftest.$ac_ext <<_ACEOF
8324 /* end confdefs.h.  */
8325 #include <linux/version.h>
8326 _ACEOF
8327 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8328   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8329   ac_status=$?
8330   grep -v '^ *+' conftest.er1 >conftest.err
8331   rm -f conftest.er1
8332   cat conftest.err >&5
8333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8334   (exit $ac_status); } >/dev/null; then
8335   if test -s conftest.err; then
8336     ac_cpp_err=$ac_c_preproc_warn_flag
8337     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8338   else
8339     ac_cpp_err=
8340   fi
8341 else
8342   ac_cpp_err=yes
8343 fi
8344 if test -z "$ac_cpp_err"; then
8345   ac_header_preproc=yes
8346 else
8347   echo "$as_me: failed program was:" >&5
8348 sed 's/^/| /' conftest.$ac_ext >&5
8349
8350   ac_header_preproc=no
8351 fi
8352 rm -f conftest.err conftest.$ac_ext
8353 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8354 echo "${ECHO_T}$ac_header_preproc" >&6
8355
8356 # So?  What about this header?
8357 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8358   yes:no: )
8359     { echo "$as_me:$LINENO: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&5
8360 echo "$as_me: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8361     { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the compiler's result" >&5
8362 echo "$as_me: WARNING: linux/version.h: proceeding with the compiler's result" >&2;}
8363     ac_header_preproc=yes
8364     ;;
8365   no:yes:* )
8366     { echo "$as_me:$LINENO: WARNING: linux/version.h: present but cannot be compiled" >&5
8367 echo "$as_me: WARNING: linux/version.h: present but cannot be compiled" >&2;}
8368     { echo "$as_me:$LINENO: WARNING: linux/version.h:     check for missing prerequisite headers?" >&5
8369 echo "$as_me: WARNING: linux/version.h:     check for missing prerequisite headers?" >&2;}
8370     { echo "$as_me:$LINENO: WARNING: linux/version.h: see the Autoconf documentation" >&5
8371 echo "$as_me: WARNING: linux/version.h: see the Autoconf documentation" >&2;}
8372     { echo "$as_me:$LINENO: WARNING: linux/version.h:     section \"Present But Cannot Be Compiled\"" >&5
8373 echo "$as_me: WARNING: linux/version.h:     section \"Present But Cannot Be Compiled\"" >&2;}
8374     { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the preprocessor's result" >&5
8375 echo "$as_me: WARNING: linux/version.h: proceeding with the preprocessor's result" >&2;}
8376     { echo "$as_me:$LINENO: WARNING: linux/version.h: in the future, the compiler will take precedence" >&5
8377 echo "$as_me: WARNING: linux/version.h: in the future, the compiler will take precedence" >&2;}
8378     (
8379       cat <<\_ASBOX
8380 ## ------------------------------------------ ##
8381 ## Report this to the AC_PACKAGE_NAME lists.  ##
8382 ## ------------------------------------------ ##
8383 _ASBOX
8384     ) |
8385       sed "s/^/$as_me: WARNING:     /" >&2
8386     ;;
8387 esac
8388 echo "$as_me:$LINENO: checking for linux/version.h" >&5
8389 echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6
8390 if test "${ac_cv_header_linux_version_h+set}" = set; then
8391   echo $ECHO_N "(cached) $ECHO_C" >&6
8392 else
8393   ac_cv_header_linux_version_h=$ac_header_preproc
8394 fi
8395 echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
8396 echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6
8397
8398 fi
8399 if test $ac_cv_header_linux_version_h = yes; then
8400   msgformat=linux
8401 else
8402   msgformat=xopen
8403 fi
8404
8405
8406
8407                          sed -e '/^#/d' $srcdir/$msgformat-msg.sed > po2msg.sed
8408       fi
8409             sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
8410          $srcdir/po2tbl.sed.in > po2tbl.sed
8411    fi
8412
8413             if test "$PACKAGE" = "gettext"; then
8414      GT_NO="#NO#"
8415      GT_YES=
8416    else
8417      GT_NO=
8418      GT_YES="#YES#"
8419    fi
8420
8421
8422
8423    MKINSTALLDIRS="\$(srcdir)/../../mkinstalldirs"
8424
8425
8426       l=
8427
8428
8429             if test -f $srcdir/po/POTFILES.in; then
8430       test -d po || mkdir po
8431       if test "x$srcdir" != "x."; then
8432          if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
8433             posrcprefix="$srcdir/"
8434          else
8435             posrcprefix="../$srcdir/"
8436          fi
8437       else
8438          posrcprefix="../"
8439       fi
8440       rm -f po/POTFILES
8441       sed -e "/^#/d" -e "/^\$/d" -e "s,.*,      $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
8442          < $srcdir/po/POTFILES.in > po/POTFILES
8443    fi
8444
8445
8446 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
8447 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
8448     # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
8449 if test "${enable_maintainer_mode+set}" = set; then
8450   enableval="$enable_maintainer_mode"
8451   USE_MAINTAINER_MODE=$enableval
8452 else
8453   USE_MAINTAINER_MODE=no
8454 fi;
8455   echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
8456 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
8457
8458
8459 if test $USE_MAINTAINER_MODE = yes; then
8460   MAINTAINER_MODE_TRUE=
8461   MAINTAINER_MODE_FALSE='#'
8462 else
8463   MAINTAINER_MODE_TRUE='#'
8464   MAINTAINER_MODE_FALSE=
8465 fi
8466
8467   MAINT=$MAINTAINER_MODE_TRUE
8468
8469
8470
8471 if test -n "$EXEEXT"; then
8472
8473 cat >>confdefs.h <<\_ACEOF
8474 #define HAVE_EXECUTABLE_SUFFIX 1
8475 _ACEOF
8476
8477 fi
8478
8479 cat >>confdefs.h <<_ACEOF
8480 #define EXECUTABLE_SUFFIX "${EXEEXT}"
8481 _ACEOF
8482
8483
8484 # host-specific stuff:
8485
8486 HDEFINES=
8487
8488 . ${srcdir}/../bfd/configure.host
8489
8490
8491 AR=${AR-ar}
8492
8493 if test -n "$ac_tool_prefix"; then
8494   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8495 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8496 echo "$as_me:$LINENO: checking for $ac_word" >&5
8497 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8498 if test "${ac_cv_prog_RANLIB+set}" = set; then
8499   echo $ECHO_N "(cached) $ECHO_C" >&6
8500 else
8501   if test -n "$RANLIB"; then
8502   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8503 else
8504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8505 for as_dir in $PATH
8506 do
8507   IFS=$as_save_IFS
8508   test -z "$as_dir" && as_dir=.
8509   for ac_exec_ext in '' $ac_executable_extensions; do
8510   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8511     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8512     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8513     break 2
8514   fi
8515 done
8516 done
8517
8518 fi
8519 fi
8520 RANLIB=$ac_cv_prog_RANLIB
8521 if test -n "$RANLIB"; then
8522   echo "$as_me:$LINENO: result: $RANLIB" >&5
8523 echo "${ECHO_T}$RANLIB" >&6
8524 else
8525   echo "$as_me:$LINENO: result: no" >&5
8526 echo "${ECHO_T}no" >&6
8527 fi
8528
8529 fi
8530 if test -z "$ac_cv_prog_RANLIB"; then
8531   ac_ct_RANLIB=$RANLIB
8532   # Extract the first word of "ranlib", so it can be a program name with args.
8533 set dummy ranlib; ac_word=$2
8534 echo "$as_me:$LINENO: checking for $ac_word" >&5
8535 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8536 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
8537   echo $ECHO_N "(cached) $ECHO_C" >&6
8538 else
8539   if test -n "$ac_ct_RANLIB"; then
8540   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8541 else
8542 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8543 for as_dir in $PATH
8544 do
8545   IFS=$as_save_IFS
8546   test -z "$as_dir" && as_dir=.
8547   for ac_exec_ext in '' $ac_executable_extensions; do
8548   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8549     ac_cv_prog_ac_ct_RANLIB="ranlib"
8550     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8551     break 2
8552   fi
8553 done
8554 done
8555
8556   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
8557 fi
8558 fi
8559 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8560 if test -n "$ac_ct_RANLIB"; then
8561   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
8562 echo "${ECHO_T}$ac_ct_RANLIB" >&6
8563 else
8564   echo "$as_me:$LINENO: result: no" >&5
8565 echo "${ECHO_T}no" >&6
8566 fi
8567
8568   RANLIB=$ac_ct_RANLIB
8569 else
8570   RANLIB="$ac_cv_prog_RANLIB"
8571 fi
8572
8573 # Find a good install program.  We prefer a C program (faster),
8574 # so one script is as good as another.  But avoid the broken or
8575 # incompatible versions:
8576 # SysV /etc/install, /usr/sbin/install
8577 # SunOS /usr/etc/install
8578 # IRIX /sbin/install
8579 # AIX /bin/install
8580 # AmigaOS /C/install, which installs bootblocks on floppy discs
8581 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
8582 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
8583 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8584 # OS/2's system install, which has a completely different semantic
8585 # ./install, which can be erroneously created by make from ./install.sh.
8586 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
8587 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
8588 if test -z "$INSTALL"; then
8589 if test "${ac_cv_path_install+set}" = set; then
8590   echo $ECHO_N "(cached) $ECHO_C" >&6
8591 else
8592   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8593 for as_dir in $PATH
8594 do
8595   IFS=$as_save_IFS
8596   test -z "$as_dir" && as_dir=.
8597   # Account for people who put trailing slashes in PATH elements.
8598 case $as_dir/ in
8599   ./ | .// | /cC/* | \
8600   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
8601   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
8602   /usr/ucb/* ) ;;
8603   *)
8604     # OSF1 and SCO ODT 3.0 have their own names for install.
8605     # Don't use installbsd from OSF since it installs stuff as root
8606     # by default.
8607     for ac_prog in ginstall scoinst install; do
8608       for ac_exec_ext in '' $ac_executable_extensions; do
8609         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
8610           if test $ac_prog = install &&
8611             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
8612             # AIX install.  It has an incompatible calling convention.
8613             :
8614           elif test $ac_prog = install &&
8615             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
8616             # program-specific install script used by HP pwplus--don't use.
8617             :
8618           else
8619             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
8620             break 3
8621           fi
8622         fi
8623       done
8624     done
8625     ;;
8626 esac
8627 done
8628
8629
8630 fi
8631   if test "${ac_cv_path_install+set}" = set; then
8632     INSTALL=$ac_cv_path_install
8633   else
8634     # As a last resort, use the slow shell script.  We don't cache a
8635     # path for INSTALL within a source directory, because that will
8636     # break other packages using the cache if that directory is
8637     # removed, or if the path is relative.
8638     INSTALL=$ac_install_sh
8639   fi
8640 fi
8641 echo "$as_me:$LINENO: result: $INSTALL" >&5
8642 echo "${ECHO_T}$INSTALL" >&6
8643
8644 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8645 # It thinks the first close brace ends the variable substitution.
8646 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8647
8648 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
8649
8650 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8651
8652
8653 # Put a plausible default for CC_FOR_BUILD in Makefile.
8654 if test -z "$CC_FOR_BUILD"; then
8655   if test "x$cross_compiling" = "xno"; then
8656     CC_FOR_BUILD='$(CC)'
8657   else
8658     CC_FOR_BUILD=gcc
8659   fi
8660 fi
8661
8662 # Also set EXEEXT_FOR_BUILD.
8663 if test "x$cross_compiling" = "xno"; then
8664   EXEEXT_FOR_BUILD='$(EXEEXT)'
8665 else
8666   echo "$as_me:$LINENO: checking for build system executable suffix" >&5
8667 echo $ECHO_N "checking for build system executable suffix... $ECHO_C" >&6
8668 if test "${bfd_cv_build_exeext+set}" = set; then
8669   echo $ECHO_N "(cached) $ECHO_C" >&6
8670 else
8671   rm -f conftest*
8672      echo 'int main () { return 0; }' > conftest.c
8673      bfd_cv_build_exeext=
8674      ${CC_FOR_BUILD} -o conftest conftest.c 1>&5 2>&5
8675      for file in conftest.*; do
8676        case $file in
8677        *.c | *.o | *.obj | *.ilk | *.pdb) ;;
8678        *) bfd_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
8679        esac
8680      done
8681      rm -f conftest*
8682      test x"${bfd_cv_build_exeext}" = x && bfd_cv_build_exeext=no
8683 fi
8684 echo "$as_me:$LINENO: result: $bfd_cv_build_exeext" >&5
8685 echo "${ECHO_T}$bfd_cv_build_exeext" >&6
8686   EXEEXT_FOR_BUILD=""
8687   test x"${bfd_cv_build_exeext}" != xno && EXEEXT_FOR_BUILD=${bfd_cv_build_exeext}
8688 fi
8689
8690
8691 DEMANGLER_NAME=c++filt
8692 case "${host}" in
8693   *-*-go32* | *-*-msdos*)
8694     DEMANGLER_NAME=cxxfilt
8695 esac
8696
8697
8698
8699
8700
8701
8702
8703
8704 for ac_header in string.h strings.h stdlib.h unistd.h fcntl.h sys/file.h
8705 do
8706 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8707 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8708   echo "$as_me:$LINENO: checking for $ac_header" >&5
8709 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8710 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8711   echo $ECHO_N "(cached) $ECHO_C" >&6
8712 fi
8713 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8714 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8715 else
8716   # Is the header compilable?
8717 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8718 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8719 cat >conftest.$ac_ext <<_ACEOF
8720 /* confdefs.h.  */
8721 _ACEOF
8722 cat confdefs.h >>conftest.$ac_ext
8723 cat >>conftest.$ac_ext <<_ACEOF
8724 /* end confdefs.h.  */
8725 $ac_includes_default
8726 #include <$ac_header>
8727 _ACEOF
8728 rm -f conftest.$ac_objext
8729 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8730   (eval $ac_compile) 2>conftest.er1
8731   ac_status=$?
8732   grep -v '^ *+' conftest.er1 >conftest.err
8733   rm -f conftest.er1
8734   cat conftest.err >&5
8735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8736   (exit $ac_status); } &&
8737          { ac_try='test -z "$ac_c_werror_flag"
8738                          || test ! -s conftest.err'
8739   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8740   (eval $ac_try) 2>&5
8741   ac_status=$?
8742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8743   (exit $ac_status); }; } &&
8744          { ac_try='test -s conftest.$ac_objext'
8745   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8746   (eval $ac_try) 2>&5
8747   ac_status=$?
8748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8749   (exit $ac_status); }; }; then
8750   ac_header_compiler=yes
8751 else
8752   echo "$as_me: failed program was:" >&5
8753 sed 's/^/| /' conftest.$ac_ext >&5
8754
8755 ac_header_compiler=no
8756 fi
8757 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8758 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8759 echo "${ECHO_T}$ac_header_compiler" >&6
8760
8761 # Is the header present?
8762 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8763 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8764 cat >conftest.$ac_ext <<_ACEOF
8765 /* confdefs.h.  */
8766 _ACEOF
8767 cat confdefs.h >>conftest.$ac_ext
8768 cat >>conftest.$ac_ext <<_ACEOF
8769 /* end confdefs.h.  */
8770 #include <$ac_header>
8771 _ACEOF
8772 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8773   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8774   ac_status=$?
8775   grep -v '^ *+' conftest.er1 >conftest.err
8776   rm -f conftest.er1
8777   cat conftest.err >&5
8778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8779   (exit $ac_status); } >/dev/null; then
8780   if test -s conftest.err; then
8781     ac_cpp_err=$ac_c_preproc_warn_flag
8782     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8783   else
8784     ac_cpp_err=
8785   fi
8786 else
8787   ac_cpp_err=yes
8788 fi
8789 if test -z "$ac_cpp_err"; then
8790   ac_header_preproc=yes
8791 else
8792   echo "$as_me: failed program was:" >&5
8793 sed 's/^/| /' conftest.$ac_ext >&5
8794
8795   ac_header_preproc=no
8796 fi
8797 rm -f conftest.err conftest.$ac_ext
8798 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8799 echo "${ECHO_T}$ac_header_preproc" >&6
8800
8801 # So?  What about this header?
8802 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8803   yes:no: )
8804     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8805 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8806     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8807 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8808     ac_header_preproc=yes
8809     ;;
8810   no:yes:* )
8811     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8812 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8813     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8814 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8815     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8816 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8817     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8818 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8819     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8820 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8821     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8822 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8823     (
8824       cat <<\_ASBOX
8825 ## ------------------------------------------ ##
8826 ## Report this to the AC_PACKAGE_NAME lists.  ##
8827 ## ------------------------------------------ ##
8828 _ASBOX
8829     ) |
8830       sed "s/^/$as_me: WARNING:     /" >&2
8831     ;;
8832 esac
8833 echo "$as_me:$LINENO: checking for $ac_header" >&5
8834 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8835 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8836   echo $ECHO_N "(cached) $ECHO_C" >&6
8837 else
8838   eval "$as_ac_Header=\$ac_header_preproc"
8839 fi
8840 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8841 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8842
8843 fi
8844 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8845   cat >>confdefs.h <<_ACEOF
8846 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8847 _ACEOF
8848
8849 fi
8850
8851 done
8852
8853 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
8854 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
8855 if test "${ac_cv_header_sys_wait_h+set}" = set; then
8856   echo $ECHO_N "(cached) $ECHO_C" >&6
8857 else
8858   cat >conftest.$ac_ext <<_ACEOF
8859 /* confdefs.h.  */
8860 _ACEOF
8861 cat confdefs.h >>conftest.$ac_ext
8862 cat >>conftest.$ac_ext <<_ACEOF
8863 /* end confdefs.h.  */
8864 #include <sys/types.h>
8865 #include <sys/wait.h>
8866 #ifndef WEXITSTATUS
8867 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
8868 #endif
8869 #ifndef WIFEXITED
8870 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8871 #endif
8872
8873 int
8874 main ()
8875 {
8876   int s;
8877   wait (&s);
8878   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8879   ;
8880   return 0;
8881 }
8882 _ACEOF
8883 rm -f conftest.$ac_objext
8884 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8885   (eval $ac_compile) 2>conftest.er1
8886   ac_status=$?
8887   grep -v '^ *+' conftest.er1 >conftest.err
8888   rm -f conftest.er1
8889   cat conftest.err >&5
8890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8891   (exit $ac_status); } &&
8892          { ac_try='test -z "$ac_c_werror_flag"
8893                          || test ! -s conftest.err'
8894   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8895   (eval $ac_try) 2>&5
8896   ac_status=$?
8897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8898   (exit $ac_status); }; } &&
8899          { ac_try='test -s conftest.$ac_objext'
8900   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8901   (eval $ac_try) 2>&5
8902   ac_status=$?
8903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8904   (exit $ac_status); }; }; then
8905   ac_cv_header_sys_wait_h=yes
8906 else
8907   echo "$as_me: failed program was:" >&5
8908 sed 's/^/| /' conftest.$ac_ext >&5
8909
8910 ac_cv_header_sys_wait_h=no
8911 fi
8912 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8913 fi
8914 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
8915 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
8916 if test $ac_cv_header_sys_wait_h = yes; then
8917
8918 cat >>confdefs.h <<\_ACEOF
8919 #define HAVE_SYS_WAIT_H 1
8920 _ACEOF
8921
8922 fi
8923
8924 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
8925 # for constant arguments.  Useless!
8926 echo "$as_me:$LINENO: checking for working alloca.h" >&5
8927 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
8928 if test "${ac_cv_working_alloca_h+set}" = set; then
8929   echo $ECHO_N "(cached) $ECHO_C" >&6
8930 else
8931   cat >conftest.$ac_ext <<_ACEOF
8932 /* confdefs.h.  */
8933 _ACEOF
8934 cat confdefs.h >>conftest.$ac_ext
8935 cat >>conftest.$ac_ext <<_ACEOF
8936 /* end confdefs.h.  */
8937 #include <alloca.h>
8938 int
8939 main ()
8940 {
8941 char *p = (char *) alloca (2 * sizeof (int));
8942   ;
8943   return 0;
8944 }
8945 _ACEOF
8946 rm -f conftest.$ac_objext conftest$ac_exeext
8947 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8948   (eval $ac_link) 2>conftest.er1
8949   ac_status=$?
8950   grep -v '^ *+' conftest.er1 >conftest.err
8951   rm -f conftest.er1
8952   cat conftest.err >&5
8953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8954   (exit $ac_status); } &&
8955          { ac_try='test -z "$ac_c_werror_flag"
8956                          || test ! -s conftest.err'
8957   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8958   (eval $ac_try) 2>&5
8959   ac_status=$?
8960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8961   (exit $ac_status); }; } &&
8962          { ac_try='test -s conftest$ac_exeext'
8963   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8964   (eval $ac_try) 2>&5
8965   ac_status=$?
8966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8967   (exit $ac_status); }; }; then
8968   ac_cv_working_alloca_h=yes
8969 else
8970   echo "$as_me: failed program was:" >&5
8971 sed 's/^/| /' conftest.$ac_ext >&5
8972
8973 ac_cv_working_alloca_h=no
8974 fi
8975 rm -f conftest.err conftest.$ac_objext \
8976       conftest$ac_exeext conftest.$ac_ext
8977 fi
8978 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
8979 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
8980 if test $ac_cv_working_alloca_h = yes; then
8981
8982 cat >>confdefs.h <<\_ACEOF
8983 #define HAVE_ALLOCA_H 1
8984 _ACEOF
8985
8986 fi
8987
8988 echo "$as_me:$LINENO: checking for alloca" >&5
8989 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
8990 if test "${ac_cv_func_alloca_works+set}" = set; then
8991   echo $ECHO_N "(cached) $ECHO_C" >&6
8992 else
8993   cat >conftest.$ac_ext <<_ACEOF
8994 /* confdefs.h.  */
8995 _ACEOF
8996 cat confdefs.h >>conftest.$ac_ext
8997 cat >>conftest.$ac_ext <<_ACEOF
8998 /* end confdefs.h.  */
8999 #ifdef __GNUC__
9000 # define alloca __builtin_alloca
9001 #else
9002 # ifdef _MSC_VER
9003 #  include <malloc.h>
9004 #  define alloca _alloca
9005 # else
9006 #  if HAVE_ALLOCA_H
9007 #   include <alloca.h>
9008 #  else
9009 #   ifdef _AIX
9010  #pragma alloca
9011 #   else
9012 #    ifndef alloca /* predefined by HP cc +Olibcalls */
9013 char *alloca ();
9014 #    endif
9015 #   endif
9016 #  endif
9017 # endif
9018 #endif
9019
9020 int
9021 main ()
9022 {
9023 char *p = (char *) alloca (1);
9024   ;
9025   return 0;
9026 }
9027 _ACEOF
9028 rm -f conftest.$ac_objext conftest$ac_exeext
9029 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9030   (eval $ac_link) 2>conftest.er1
9031   ac_status=$?
9032   grep -v '^ *+' conftest.er1 >conftest.err
9033   rm -f conftest.er1
9034   cat conftest.err >&5
9035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9036   (exit $ac_status); } &&
9037          { ac_try='test -z "$ac_c_werror_flag"
9038                          || test ! -s conftest.err'
9039   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9040   (eval $ac_try) 2>&5
9041   ac_status=$?
9042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9043   (exit $ac_status); }; } &&
9044          { ac_try='test -s conftest$ac_exeext'
9045   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9046   (eval $ac_try) 2>&5
9047   ac_status=$?
9048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9049   (exit $ac_status); }; }; then
9050   ac_cv_func_alloca_works=yes
9051 else
9052   echo "$as_me: failed program was:" >&5
9053 sed 's/^/| /' conftest.$ac_ext >&5
9054
9055 ac_cv_func_alloca_works=no
9056 fi
9057 rm -f conftest.err conftest.$ac_objext \
9058       conftest$ac_exeext conftest.$ac_ext
9059 fi
9060 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
9061 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
9062
9063 if test $ac_cv_func_alloca_works = yes; then
9064
9065 cat >>confdefs.h <<\_ACEOF
9066 #define HAVE_ALLOCA 1
9067 _ACEOF
9068
9069 else
9070   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
9071 # that cause trouble.  Some versions do not even contain alloca or
9072 # contain a buggy version.  If you still want to use their alloca,
9073 # use ar to extract alloca.o from them instead of compiling alloca.c.
9074
9075 ALLOCA=alloca.$ac_objext
9076
9077 cat >>confdefs.h <<\_ACEOF
9078 #define C_ALLOCA 1
9079 _ACEOF
9080
9081
9082 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
9083 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
9084 if test "${ac_cv_os_cray+set}" = set; then
9085   echo $ECHO_N "(cached) $ECHO_C" >&6
9086 else
9087   cat >conftest.$ac_ext <<_ACEOF
9088 /* confdefs.h.  */
9089 _ACEOF
9090 cat confdefs.h >>conftest.$ac_ext
9091 cat >>conftest.$ac_ext <<_ACEOF
9092 /* end confdefs.h.  */
9093 #if defined(CRAY) && ! defined(CRAY2)
9094 webecray
9095 #else
9096 wenotbecray
9097 #endif
9098
9099 _ACEOF
9100 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9101   $EGREP "webecray" >/dev/null 2>&1; then
9102   ac_cv_os_cray=yes
9103 else
9104   ac_cv_os_cray=no
9105 fi
9106 rm -f conftest*
9107
9108 fi
9109 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
9110 echo "${ECHO_T}$ac_cv_os_cray" >&6
9111 if test $ac_cv_os_cray = yes; then
9112   for ac_func in _getb67 GETB67 getb67; do
9113     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9114 echo "$as_me:$LINENO: checking for $ac_func" >&5
9115 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9116 if eval "test \"\${$as_ac_var+set}\" = set"; then
9117   echo $ECHO_N "(cached) $ECHO_C" >&6
9118 else
9119   cat >conftest.$ac_ext <<_ACEOF
9120 /* confdefs.h.  */
9121 _ACEOF
9122 cat confdefs.h >>conftest.$ac_ext
9123 cat >>conftest.$ac_ext <<_ACEOF
9124 /* end confdefs.h.  */
9125 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9126    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9127 #define $ac_func innocuous_$ac_func
9128
9129 /* System header to define __stub macros and hopefully few prototypes,
9130     which can conflict with char $ac_func (); below.
9131     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9132     <limits.h> exists even on freestanding compilers.  */
9133
9134 #ifdef __STDC__
9135 # include <limits.h>
9136 #else
9137 # include <assert.h>
9138 #endif
9139
9140 #undef $ac_func
9141
9142 /* Override any gcc2 internal prototype to avoid an error.  */
9143 #ifdef __cplusplus
9144 extern "C"
9145 {
9146 #endif
9147 /* We use char because int might match the return type of a gcc2
9148    builtin and then its argument prototype would still apply.  */
9149 char $ac_func ();
9150 /* The GNU C library defines this for functions which it implements
9151     to always fail with ENOSYS.  Some functions are actually named
9152     something starting with __ and the normal name is an alias.  */
9153 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9154 choke me
9155 #else
9156 char (*f) () = $ac_func;
9157 #endif
9158 #ifdef __cplusplus
9159 }
9160 #endif
9161
9162 int
9163 main ()
9164 {
9165 return f != $ac_func;
9166   ;
9167   return 0;
9168 }
9169 _ACEOF
9170 rm -f conftest.$ac_objext conftest$ac_exeext
9171 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9172   (eval $ac_link) 2>conftest.er1
9173   ac_status=$?
9174   grep -v '^ *+' conftest.er1 >conftest.err
9175   rm -f conftest.er1
9176   cat conftest.err >&5
9177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9178   (exit $ac_status); } &&
9179          { ac_try='test -z "$ac_c_werror_flag"
9180                          || test ! -s conftest.err'
9181   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9182   (eval $ac_try) 2>&5
9183   ac_status=$?
9184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9185   (exit $ac_status); }; } &&
9186          { ac_try='test -s conftest$ac_exeext'
9187   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9188   (eval $ac_try) 2>&5
9189   ac_status=$?
9190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9191   (exit $ac_status); }; }; then
9192   eval "$as_ac_var=yes"
9193 else
9194   echo "$as_me: failed program was:" >&5
9195 sed 's/^/| /' conftest.$ac_ext >&5
9196
9197 eval "$as_ac_var=no"
9198 fi
9199 rm -f conftest.err conftest.$ac_objext \
9200       conftest$ac_exeext conftest.$ac_ext
9201 fi
9202 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9203 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9204 if test `eval echo '${'$as_ac_var'}'` = yes; then
9205
9206 cat >>confdefs.h <<_ACEOF
9207 #define CRAY_STACKSEG_END $ac_func
9208 _ACEOF
9209
9210     break
9211 fi
9212
9213   done
9214 fi
9215
9216 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
9217 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
9218 if test "${ac_cv_c_stack_direction+set}" = set; then
9219   echo $ECHO_N "(cached) $ECHO_C" >&6
9220 else
9221   if test "$cross_compiling" = yes; then
9222   ac_cv_c_stack_direction=0
9223 else
9224   cat >conftest.$ac_ext <<_ACEOF
9225 /* confdefs.h.  */
9226 _ACEOF
9227 cat confdefs.h >>conftest.$ac_ext
9228 cat >>conftest.$ac_ext <<_ACEOF
9229 /* end confdefs.h.  */
9230 int
9231 find_stack_direction ()
9232 {
9233   static char *addr = 0;
9234   auto char dummy;
9235   if (addr == 0)
9236     {
9237       addr = &dummy;
9238       return find_stack_direction ();
9239     }
9240   else
9241     return (&dummy > addr) ? 1 : -1;
9242 }
9243
9244 int
9245 main ()
9246 {
9247   exit (find_stack_direction () < 0);
9248 }
9249 _ACEOF
9250 rm -f conftest$ac_exeext
9251 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9252   (eval $ac_link) 2>&5
9253   ac_status=$?
9254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9255   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9256   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9257   (eval $ac_try) 2>&5
9258   ac_status=$?
9259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9260   (exit $ac_status); }; }; then
9261   ac_cv_c_stack_direction=1
9262 else
9263   echo "$as_me: program exited with status $ac_status" >&5
9264 echo "$as_me: failed program was:" >&5
9265 sed 's/^/| /' conftest.$ac_ext >&5
9266
9267 ( exit $ac_status )
9268 ac_cv_c_stack_direction=-1
9269 fi
9270 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9271 fi
9272 fi
9273 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
9274 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
9275
9276 cat >>confdefs.h <<_ACEOF
9277 #define STACK_DIRECTION $ac_cv_c_stack_direction
9278 _ACEOF
9279
9280
9281 fi
9282
9283
9284
9285
9286
9287
9288 for ac_func in sbrk utimes setmode getc_unlocked strcoll
9289 do
9290 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9291 echo "$as_me:$LINENO: checking for $ac_func" >&5
9292 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9293 if eval "test \"\${$as_ac_var+set}\" = set"; then
9294   echo $ECHO_N "(cached) $ECHO_C" >&6
9295 else
9296   cat >conftest.$ac_ext <<_ACEOF
9297 /* confdefs.h.  */
9298 _ACEOF
9299 cat confdefs.h >>conftest.$ac_ext
9300 cat >>conftest.$ac_ext <<_ACEOF
9301 /* end confdefs.h.  */
9302 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9303    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9304 #define $ac_func innocuous_$ac_func
9305
9306 /* System header to define __stub macros and hopefully few prototypes,
9307     which can conflict with char $ac_func (); below.
9308     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9309     <limits.h> exists even on freestanding compilers.  */
9310
9311 #ifdef __STDC__
9312 # include <limits.h>
9313 #else
9314 # include <assert.h>
9315 #endif
9316
9317 #undef $ac_func
9318
9319 /* Override any gcc2 internal prototype to avoid an error.  */
9320 #ifdef __cplusplus
9321 extern "C"
9322 {
9323 #endif
9324 /* We use char because int might match the return type of a gcc2
9325    builtin and then its argument prototype would still apply.  */
9326 char $ac_func ();
9327 /* The GNU C library defines this for functions which it implements
9328     to always fail with ENOSYS.  Some functions are actually named
9329     something starting with __ and the normal name is an alias.  */
9330 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9331 choke me
9332 #else
9333 char (*f) () = $ac_func;
9334 #endif
9335 #ifdef __cplusplus
9336 }
9337 #endif
9338
9339 int
9340 main ()
9341 {
9342 return f != $ac_func;
9343   ;
9344   return 0;
9345 }
9346 _ACEOF
9347 rm -f conftest.$ac_objext conftest$ac_exeext
9348 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9349   (eval $ac_link) 2>conftest.er1
9350   ac_status=$?
9351   grep -v '^ *+' conftest.er1 >conftest.err
9352   rm -f conftest.er1
9353   cat conftest.err >&5
9354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9355   (exit $ac_status); } &&
9356          { ac_try='test -z "$ac_c_werror_flag"
9357                          || test ! -s conftest.err'
9358   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9359   (eval $ac_try) 2>&5
9360   ac_status=$?
9361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9362   (exit $ac_status); }; } &&
9363          { ac_try='test -s conftest$ac_exeext'
9364   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9365   (eval $ac_try) 2>&5
9366   ac_status=$?
9367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9368   (exit $ac_status); }; }; then
9369   eval "$as_ac_var=yes"
9370 else
9371   echo "$as_me: failed program was:" >&5
9372 sed 's/^/| /' conftest.$ac_ext >&5
9373
9374 eval "$as_ac_var=no"
9375 fi
9376 rm -f conftest.err conftest.$ac_objext \
9377       conftest$ac_exeext conftest.$ac_ext
9378 fi
9379 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9380 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9381 if test `eval echo '${'$as_ac_var'}'` = yes; then
9382   cat >>confdefs.h <<_ACEOF
9383 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9384 _ACEOF
9385
9386 fi
9387 done
9388
9389
9390 # Check whether fopen64 is available and whether _LARGEFILE64_SOURCE
9391 # needs to be defined for it
9392 echo "$as_me:$LINENO: checking for fopen64" >&5
9393 echo $ECHO_N "checking for fopen64... $ECHO_C" >&6
9394 if test "${bu_cv_have_fopen64+set}" = set; then
9395   echo $ECHO_N "(cached) $ECHO_C" >&6
9396 else
9397   cat >conftest.$ac_ext <<_ACEOF
9398 /* confdefs.h.  */
9399 _ACEOF
9400 cat confdefs.h >>conftest.$ac_ext
9401 cat >>conftest.$ac_ext <<_ACEOF
9402 /* end confdefs.h.  */
9403 #include <stdio.h>
9404 int
9405 main ()
9406 {
9407 FILE *f = fopen64 ("/tmp/foo","r");
9408   ;
9409   return 0;
9410 }
9411 _ACEOF
9412 rm -f conftest.$ac_objext conftest$ac_exeext
9413 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9414   (eval $ac_link) 2>conftest.er1
9415   ac_status=$?
9416   grep -v '^ *+' conftest.er1 >conftest.err
9417   rm -f conftest.er1
9418   cat conftest.err >&5
9419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9420   (exit $ac_status); } &&
9421          { ac_try='test -z "$ac_c_werror_flag"
9422                          || test ! -s conftest.err'
9423   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9424   (eval $ac_try) 2>&5
9425   ac_status=$?
9426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9427   (exit $ac_status); }; } &&
9428          { ac_try='test -s conftest$ac_exeext'
9429   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9430   (eval $ac_try) 2>&5
9431   ac_status=$?
9432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9433   (exit $ac_status); }; }; then
9434   bu_cv_have_fopen64=yes
9435 else
9436   echo "$as_me: failed program was:" >&5
9437 sed 's/^/| /' conftest.$ac_ext >&5
9438
9439 saved_CPPFLAGS=$CPPFLAGS
9440  CPPFLAGS="$CPPFLAGS -D_LARGEFILE64_SOURCE"
9441  cat >conftest.$ac_ext <<_ACEOF
9442 /* confdefs.h.  */
9443 _ACEOF
9444 cat confdefs.h >>conftest.$ac_ext
9445 cat >>conftest.$ac_ext <<_ACEOF
9446 /* end confdefs.h.  */
9447 #include <stdio.h>
9448 int
9449 main ()
9450 {
9451 FILE *f = fopen64 ("/tmp/foo","r");
9452   ;
9453   return 0;
9454 }
9455 _ACEOF
9456 rm -f conftest.$ac_objext conftest$ac_exeext
9457 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9458   (eval $ac_link) 2>conftest.er1
9459   ac_status=$?
9460   grep -v '^ *+' conftest.er1 >conftest.err
9461   rm -f conftest.er1
9462   cat conftest.err >&5
9463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9464   (exit $ac_status); } &&
9465          { ac_try='test -z "$ac_c_werror_flag"
9466                          || test ! -s conftest.err'
9467   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9468   (eval $ac_try) 2>&5
9469   ac_status=$?
9470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9471   (exit $ac_status); }; } &&
9472          { ac_try='test -s conftest$ac_exeext'
9473   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9474   (eval $ac_try) 2>&5
9475   ac_status=$?
9476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9477   (exit $ac_status); }; }; then
9478   bu_cv_have_fopen64="need -D_LARGEFILE64_SOURCE"
9479 else
9480   echo "$as_me: failed program was:" >&5
9481 sed 's/^/| /' conftest.$ac_ext >&5
9482
9483 bu_cv_have_fopen64=no
9484 fi
9485 rm -f conftest.err conftest.$ac_objext \
9486       conftest$ac_exeext conftest.$ac_ext
9487  CPPFLAGS=$saved_CPPFLAGS
9488 fi
9489 rm -f conftest.err conftest.$ac_objext \
9490       conftest$ac_exeext conftest.$ac_ext
9491 fi
9492
9493 echo "$as_me:$LINENO: result: $bu_cv_have_fopen64" >&5
9494 echo "${ECHO_T}$bu_cv_have_fopen64" >&6
9495 if test "$bu_cv_have_fopen64" != no; then
9496
9497 cat >>confdefs.h <<\_ACEOF
9498 #define HAVE_FOPEN64 1
9499 _ACEOF
9500
9501 fi
9502 echo "$as_me:$LINENO: checking for stat64" >&5
9503 echo $ECHO_N "checking for stat64... $ECHO_C" >&6
9504 if test "${bu_cv_have_stat64+set}" = set; then
9505   echo $ECHO_N "(cached) $ECHO_C" >&6
9506 else
9507   cat >conftest.$ac_ext <<_ACEOF
9508 /* confdefs.h.  */
9509 _ACEOF
9510 cat confdefs.h >>conftest.$ac_ext
9511 cat >>conftest.$ac_ext <<_ACEOF
9512 /* end confdefs.h.  */
9513 #include <sys/stat.h>
9514 int
9515 main ()
9516 {
9517 struct stat64 st; stat64 ("/tmp/foo", &st);
9518   ;
9519   return 0;
9520 }
9521 _ACEOF
9522 rm -f conftest.$ac_objext conftest$ac_exeext
9523 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9524   (eval $ac_link) 2>conftest.er1
9525   ac_status=$?
9526   grep -v '^ *+' conftest.er1 >conftest.err
9527   rm -f conftest.er1
9528   cat conftest.err >&5
9529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9530   (exit $ac_status); } &&
9531          { ac_try='test -z "$ac_c_werror_flag"
9532                          || test ! -s conftest.err'
9533   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9534   (eval $ac_try) 2>&5
9535   ac_status=$?
9536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9537   (exit $ac_status); }; } &&
9538          { ac_try='test -s conftest$ac_exeext'
9539   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9540   (eval $ac_try) 2>&5
9541   ac_status=$?
9542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9543   (exit $ac_status); }; }; then
9544   bu_cv_have_stat64=yes
9545 else
9546   echo "$as_me: failed program was:" >&5
9547 sed 's/^/| /' conftest.$ac_ext >&5
9548
9549 saved_CPPFLAGS=$CPPFLAGS
9550  CPPFLAGS="$CPPFLAGS -D_LARGEFILE64_SOURCE"
9551  cat >conftest.$ac_ext <<_ACEOF
9552 /* confdefs.h.  */
9553 _ACEOF
9554 cat confdefs.h >>conftest.$ac_ext
9555 cat >>conftest.$ac_ext <<_ACEOF
9556 /* end confdefs.h.  */
9557 #include <sys/stat.h>
9558 int
9559 main ()
9560 {
9561 struct stat64 st; stat64 ("/tmp/foo", &st);
9562   ;
9563   return 0;
9564 }
9565 _ACEOF
9566 rm -f conftest.$ac_objext conftest$ac_exeext
9567 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9568   (eval $ac_link) 2>conftest.er1
9569   ac_status=$?
9570   grep -v '^ *+' conftest.er1 >conftest.err
9571   rm -f conftest.er1
9572   cat conftest.err >&5
9573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9574   (exit $ac_status); } &&
9575          { ac_try='test -z "$ac_c_werror_flag"
9576                          || test ! -s conftest.err'
9577   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9578   (eval $ac_try) 2>&5
9579   ac_status=$?
9580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9581   (exit $ac_status); }; } &&
9582          { ac_try='test -s conftest$ac_exeext'
9583   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9584   (eval $ac_try) 2>&5
9585   ac_status=$?
9586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9587   (exit $ac_status); }; }; then
9588   bu_cv_have_stat64="need -D_LARGEFILE64_SOURCE"
9589 else
9590   echo "$as_me: failed program was:" >&5
9591 sed 's/^/| /' conftest.$ac_ext >&5
9592
9593 bu_cv_have_stat64=no
9594 fi
9595 rm -f conftest.err conftest.$ac_objext \
9596       conftest$ac_exeext conftest.$ac_ext
9597  CPPFLAGS=$saved_CPPFLAGS
9598 fi
9599 rm -f conftest.err conftest.$ac_objext \
9600       conftest$ac_exeext conftest.$ac_ext
9601 fi
9602
9603 echo "$as_me:$LINENO: result: $bu_cv_have_stat64" >&5
9604 echo "${ECHO_T}$bu_cv_have_stat64" >&6
9605 if test "$bu_cv_have_stat64" != no; then
9606
9607 cat >>confdefs.h <<\_ACEOF
9608 #define HAVE_STAT64 1
9609 _ACEOF
9610
9611 fi
9612 if test "$bu_cv_have_fopen64" = "need -D_LARGEFILE64_SOURCE" \
9613    || test "$bu_cv_have_stat64" = "need -D_LARGEFILE64_SOURCE"; then
9614
9615 cat >>confdefs.h <<\_ACEOF
9616 #define _LARGEFILE64_SOURCE 1
9617 _ACEOF
9618
9619   CPPFLAGS="$CPPFLAGS -D_LARGEFILE64_SOURCE"
9620 fi
9621
9622 # Some systems have frexp only in -lm, not in -lc.
9623 echo "$as_me:$LINENO: checking for library containing frexp" >&5
9624 echo $ECHO_N "checking for library containing frexp... $ECHO_C" >&6
9625 if test "${ac_cv_search_frexp+set}" = set; then
9626   echo $ECHO_N "(cached) $ECHO_C" >&6
9627 else
9628   ac_func_search_save_LIBS=$LIBS
9629 ac_cv_search_frexp=no
9630 cat >conftest.$ac_ext <<_ACEOF
9631 /* confdefs.h.  */
9632 _ACEOF
9633 cat confdefs.h >>conftest.$ac_ext
9634 cat >>conftest.$ac_ext <<_ACEOF
9635 /* end confdefs.h.  */
9636
9637 /* Override any gcc2 internal prototype to avoid an error.  */
9638 #ifdef __cplusplus
9639 extern "C"
9640 #endif
9641 /* We use char because int might match the return type of a gcc2
9642    builtin and then its argument prototype would still apply.  */
9643 char frexp ();
9644 int
9645 main ()
9646 {
9647 frexp ();
9648   ;
9649   return 0;
9650 }
9651 _ACEOF
9652 rm -f conftest.$ac_objext conftest$ac_exeext
9653 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9654   (eval $ac_link) 2>conftest.er1
9655   ac_status=$?
9656   grep -v '^ *+' conftest.er1 >conftest.err
9657   rm -f conftest.er1
9658   cat conftest.err >&5
9659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9660   (exit $ac_status); } &&
9661          { ac_try='test -z "$ac_c_werror_flag"
9662                          || test ! -s conftest.err'
9663   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9664   (eval $ac_try) 2>&5
9665   ac_status=$?
9666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9667   (exit $ac_status); }; } &&
9668          { ac_try='test -s conftest$ac_exeext'
9669   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9670   (eval $ac_try) 2>&5
9671   ac_status=$?
9672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9673   (exit $ac_status); }; }; then
9674   ac_cv_search_frexp="none required"
9675 else
9676   echo "$as_me: failed program was:" >&5
9677 sed 's/^/| /' conftest.$ac_ext >&5
9678
9679 fi
9680 rm -f conftest.err conftest.$ac_objext \
9681       conftest$ac_exeext conftest.$ac_ext
9682 if test "$ac_cv_search_frexp" = no; then
9683   for ac_lib in m; do
9684     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9685     cat >conftest.$ac_ext <<_ACEOF
9686 /* confdefs.h.  */
9687 _ACEOF
9688 cat confdefs.h >>conftest.$ac_ext
9689 cat >>conftest.$ac_ext <<_ACEOF
9690 /* end confdefs.h.  */
9691
9692 /* Override any gcc2 internal prototype to avoid an error.  */
9693 #ifdef __cplusplus
9694 extern "C"
9695 #endif
9696 /* We use char because int might match the return type of a gcc2
9697    builtin and then its argument prototype would still apply.  */
9698 char frexp ();
9699 int
9700 main ()
9701 {
9702 frexp ();
9703   ;
9704   return 0;
9705 }
9706 _ACEOF
9707 rm -f conftest.$ac_objext conftest$ac_exeext
9708 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9709   (eval $ac_link) 2>conftest.er1
9710   ac_status=$?
9711   grep -v '^ *+' conftest.er1 >conftest.err
9712   rm -f conftest.er1
9713   cat conftest.err >&5
9714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9715   (exit $ac_status); } &&
9716          { ac_try='test -z "$ac_c_werror_flag"
9717                          || test ! -s conftest.err'
9718   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9719   (eval $ac_try) 2>&5
9720   ac_status=$?
9721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9722   (exit $ac_status); }; } &&
9723          { ac_try='test -s conftest$ac_exeext'
9724   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9725   (eval $ac_try) 2>&5
9726   ac_status=$?
9727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9728   (exit $ac_status); }; }; then
9729   ac_cv_search_frexp="-l$ac_lib"
9730 break
9731 else
9732   echo "$as_me: failed program was:" >&5
9733 sed 's/^/| /' conftest.$ac_ext >&5
9734
9735 fi
9736 rm -f conftest.err conftest.$ac_objext \
9737       conftest$ac_exeext conftest.$ac_ext
9738   done
9739 fi
9740 LIBS=$ac_func_search_save_LIBS
9741 fi
9742 echo "$as_me:$LINENO: result: $ac_cv_search_frexp" >&5
9743 echo "${ECHO_T}$ac_cv_search_frexp" >&6
9744 if test "$ac_cv_search_frexp" != no; then
9745   test "$ac_cv_search_frexp" = "none required" || LIBS="$ac_cv_search_frexp $LIBS"
9746
9747 fi
9748
9749
9750 echo "$as_me:$LINENO: checking for time_t in time.h" >&5
9751 echo $ECHO_N "checking for time_t in time.h... $ECHO_C" >&6
9752 if test "${bu_cv_decl_time_t_time_h+set}" = set; then
9753   echo $ECHO_N "(cached) $ECHO_C" >&6
9754 else
9755   cat >conftest.$ac_ext <<_ACEOF
9756 /* confdefs.h.  */
9757 _ACEOF
9758 cat confdefs.h >>conftest.$ac_ext
9759 cat >>conftest.$ac_ext <<_ACEOF
9760 /* end confdefs.h.  */
9761 #include <time.h>
9762 int
9763 main ()
9764 {
9765 time_t i;
9766   ;
9767   return 0;
9768 }
9769 _ACEOF
9770 rm -f conftest.$ac_objext
9771 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9772   (eval $ac_compile) 2>conftest.er1
9773   ac_status=$?
9774   grep -v '^ *+' conftest.er1 >conftest.err
9775   rm -f conftest.er1
9776   cat conftest.err >&5
9777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9778   (exit $ac_status); } &&
9779          { ac_try='test -z "$ac_c_werror_flag"
9780                          || test ! -s conftest.err'
9781   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9782   (eval $ac_try) 2>&5
9783   ac_status=$?
9784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9785   (exit $ac_status); }; } &&
9786          { ac_try='test -s conftest.$ac_objext'
9787   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9788   (eval $ac_try) 2>&5
9789   ac_status=$?
9790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9791   (exit $ac_status); }; }; then
9792   bu_cv_decl_time_t_time_h=yes
9793 else
9794   echo "$as_me: failed program was:" >&5
9795 sed 's/^/| /' conftest.$ac_ext >&5
9796
9797 bu_cv_decl_time_t_time_h=no
9798 fi
9799 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9800 fi
9801
9802 echo "$as_me:$LINENO: result: $bu_cv_decl_time_t_time_h" >&5
9803 echo "${ECHO_T}$bu_cv_decl_time_t_time_h" >&6
9804 if test $bu_cv_decl_time_t_time_h = yes; then
9805
9806 cat >>confdefs.h <<\_ACEOF
9807 #define HAVE_TIME_T_IN_TIME_H 1
9808 _ACEOF
9809
9810 fi
9811
9812 echo "$as_me:$LINENO: checking for time_t in sys/types.h" >&5
9813 echo $ECHO_N "checking for time_t in sys/types.h... $ECHO_C" >&6
9814 if test "${bu_cv_decl_time_t_types_h+set}" = set; then
9815   echo $ECHO_N "(cached) $ECHO_C" >&6
9816 else
9817   cat >conftest.$ac_ext <<_ACEOF
9818 /* confdefs.h.  */
9819 _ACEOF
9820 cat confdefs.h >>conftest.$ac_ext
9821 cat >>conftest.$ac_ext <<_ACEOF
9822 /* end confdefs.h.  */
9823 #include <sys/types.h>
9824 int
9825 main ()
9826 {
9827 time_t i;
9828   ;
9829   return 0;
9830 }
9831 _ACEOF
9832 rm -f conftest.$ac_objext
9833 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9834   (eval $ac_compile) 2>conftest.er1
9835   ac_status=$?
9836   grep -v '^ *+' conftest.er1 >conftest.err
9837   rm -f conftest.er1
9838   cat conftest.err >&5
9839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9840   (exit $ac_status); } &&
9841          { ac_try='test -z "$ac_c_werror_flag"
9842                          || test ! -s conftest.err'
9843   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9844   (eval $ac_try) 2>&5
9845   ac_status=$?
9846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9847   (exit $ac_status); }; } &&
9848          { ac_try='test -s conftest.$ac_objext'
9849   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9850   (eval $ac_try) 2>&5
9851   ac_status=$?
9852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9853   (exit $ac_status); }; }; then
9854   bu_cv_decl_time_t_types_h=yes
9855 else
9856   echo "$as_me: failed program was:" >&5
9857 sed 's/^/| /' conftest.$ac_ext >&5
9858
9859 bu_cv_decl_time_t_types_h=no
9860 fi
9861 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9862 fi
9863
9864 echo "$as_me:$LINENO: result: $bu_cv_decl_time_t_types_h" >&5
9865 echo "${ECHO_T}$bu_cv_decl_time_t_types_h" >&6
9866 if test $bu_cv_decl_time_t_types_h = yes; then
9867
9868 cat >>confdefs.h <<\_ACEOF
9869 #define HAVE_TIME_T_IN_TYPES_H 1
9870 _ACEOF
9871
9872 fi
9873
9874 echo "$as_me:$LINENO: checking for a known getopt prototype in unistd.h" >&5
9875 echo $ECHO_N "checking for a known getopt prototype in unistd.h... $ECHO_C" >&6
9876 if test "${bu_cv_decl_getopt_unistd_h+set}" = set; then
9877   echo $ECHO_N "(cached) $ECHO_C" >&6
9878 else
9879   cat >conftest.$ac_ext <<_ACEOF
9880 /* confdefs.h.  */
9881 _ACEOF
9882 cat confdefs.h >>conftest.$ac_ext
9883 cat >>conftest.$ac_ext <<_ACEOF
9884 /* end confdefs.h.  */
9885 #include <unistd.h>
9886 int
9887 main ()
9888 {
9889 extern int getopt (int, char *const*, const char *);
9890   ;
9891   return 0;
9892 }
9893 _ACEOF
9894 rm -f conftest.$ac_objext
9895 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9896   (eval $ac_compile) 2>conftest.er1
9897   ac_status=$?
9898   grep -v '^ *+' conftest.er1 >conftest.err
9899   rm -f conftest.er1
9900   cat conftest.err >&5
9901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9902   (exit $ac_status); } &&
9903          { ac_try='test -z "$ac_c_werror_flag"
9904                          || test ! -s conftest.err'
9905   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9906   (eval $ac_try) 2>&5
9907   ac_status=$?
9908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9909   (exit $ac_status); }; } &&
9910          { ac_try='test -s conftest.$ac_objext'
9911   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9912   (eval $ac_try) 2>&5
9913   ac_status=$?
9914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9915   (exit $ac_status); }; }; then
9916   bu_cv_decl_getopt_unistd_h=yes
9917 else
9918   echo "$as_me: failed program was:" >&5
9919 sed 's/^/| /' conftest.$ac_ext >&5
9920
9921 bu_cv_decl_getopt_unistd_h=no
9922 fi
9923 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9924 fi
9925
9926 echo "$as_me:$LINENO: result: $bu_cv_decl_getopt_unistd_h" >&5
9927 echo "${ECHO_T}$bu_cv_decl_getopt_unistd_h" >&6
9928 if test $bu_cv_decl_getopt_unistd_h = yes; then
9929
9930 cat >>confdefs.h <<\_ACEOF
9931 #define HAVE_DECL_GETOPT 1
9932 _ACEOF
9933
9934 fi
9935
9936 # Under Next 3.2 <utime.h> apparently does not define struct utimbuf
9937 # by default.
9938 echo "$as_me:$LINENO: checking for utime.h" >&5
9939 echo $ECHO_N "checking for utime.h... $ECHO_C" >&6
9940 if test "${bu_cv_header_utime_h+set}" = set; then
9941   echo $ECHO_N "(cached) $ECHO_C" >&6
9942 else
9943   cat >conftest.$ac_ext <<_ACEOF
9944 /* confdefs.h.  */
9945 _ACEOF
9946 cat confdefs.h >>conftest.$ac_ext
9947 cat >>conftest.$ac_ext <<_ACEOF
9948 /* end confdefs.h.  */
9949 #include <sys/types.h>
9950 #ifdef HAVE_TIME_H
9951 #include <time.h>
9952 #endif
9953 #include <utime.h>
9954 int
9955 main ()
9956 {
9957 struct utimbuf s;
9958   ;
9959   return 0;
9960 }
9961 _ACEOF
9962 rm -f conftest.$ac_objext
9963 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9964   (eval $ac_compile) 2>conftest.er1
9965   ac_status=$?
9966   grep -v '^ *+' conftest.er1 >conftest.err
9967   rm -f conftest.er1
9968   cat conftest.err >&5
9969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9970   (exit $ac_status); } &&
9971          { ac_try='test -z "$ac_c_werror_flag"
9972                          || test ! -s conftest.err'
9973   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9974   (eval $ac_try) 2>&5
9975   ac_status=$?
9976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9977   (exit $ac_status); }; } &&
9978          { ac_try='test -s conftest.$ac_objext'
9979   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9980   (eval $ac_try) 2>&5
9981   ac_status=$?
9982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9983   (exit $ac_status); }; }; then
9984   bu_cv_header_utime_h=yes
9985 else
9986   echo "$as_me: failed program was:" >&5
9987 sed 's/^/| /' conftest.$ac_ext >&5
9988
9989 bu_cv_header_utime_h=no
9990 fi
9991 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9992 fi
9993
9994 echo "$as_me:$LINENO: result: $bu_cv_header_utime_h" >&5
9995 echo "${ECHO_T}$bu_cv_header_utime_h" >&6
9996 if test $bu_cv_header_utime_h = yes; then
9997
9998 cat >>confdefs.h <<\_ACEOF
9999 #define HAVE_GOOD_UTIME_H 1
10000 _ACEOF
10001
10002 fi
10003
10004 echo "$as_me:$LINENO: checking whether fprintf is declared" >&5
10005 echo $ECHO_N "checking whether fprintf is declared... $ECHO_C" >&6
10006 if test "${ac_cv_have_decl_fprintf+set}" = set; then
10007   echo $ECHO_N "(cached) $ECHO_C" >&6
10008 else
10009   cat >conftest.$ac_ext <<_ACEOF
10010 /* confdefs.h.  */
10011 _ACEOF
10012 cat confdefs.h >>conftest.$ac_ext
10013 cat >>conftest.$ac_ext <<_ACEOF
10014 /* end confdefs.h.  */
10015 $ac_includes_default
10016 int
10017 main ()
10018 {
10019 #ifndef fprintf
10020   char *p = (char *) fprintf;
10021 #endif
10022
10023   ;
10024   return 0;
10025 }
10026 _ACEOF
10027 rm -f conftest.$ac_objext
10028 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10029   (eval $ac_compile) 2>conftest.er1
10030   ac_status=$?
10031   grep -v '^ *+' conftest.er1 >conftest.err
10032   rm -f conftest.er1
10033   cat conftest.err >&5
10034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10035   (exit $ac_status); } &&
10036          { ac_try='test -z "$ac_c_werror_flag"
10037                          || test ! -s conftest.err'
10038   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10039   (eval $ac_try) 2>&5
10040   ac_status=$?
10041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10042   (exit $ac_status); }; } &&
10043          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
10049   ac_cv_have_decl_fprintf=yes
10050 else
10051   echo "$as_me: failed program was:" >&5
10052 sed 's/^/| /' conftest.$ac_ext >&5
10053
10054 ac_cv_have_decl_fprintf=no
10055 fi
10056 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10057 fi
10058 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fprintf" >&5
10059 echo "${ECHO_T}$ac_cv_have_decl_fprintf" >&6
10060 if test $ac_cv_have_decl_fprintf = yes; then
10061
10062 cat >>confdefs.h <<_ACEOF
10063 #define HAVE_DECL_FPRINTF 1
10064 _ACEOF
10065
10066
10067 else
10068   cat >>confdefs.h <<_ACEOF
10069 #define HAVE_DECL_FPRINTF 0
10070 _ACEOF
10071
10072
10073 fi
10074 echo "$as_me:$LINENO: checking whether stpcpy is declared" >&5
10075 echo $ECHO_N "checking whether stpcpy is declared... $ECHO_C" >&6
10076 if test "${ac_cv_have_decl_stpcpy+set}" = set; then
10077   echo $ECHO_N "(cached) $ECHO_C" >&6
10078 else
10079   cat >conftest.$ac_ext <<_ACEOF
10080 /* confdefs.h.  */
10081 _ACEOF
10082 cat confdefs.h >>conftest.$ac_ext
10083 cat >>conftest.$ac_ext <<_ACEOF
10084 /* end confdefs.h.  */
10085 $ac_includes_default
10086 int
10087 main ()
10088 {
10089 #ifndef stpcpy
10090   char *p = (char *) stpcpy;
10091 #endif
10092
10093   ;
10094   return 0;
10095 }
10096 _ACEOF
10097 rm -f conftest.$ac_objext
10098 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10099   (eval $ac_compile) 2>conftest.er1
10100   ac_status=$?
10101   grep -v '^ *+' conftest.er1 >conftest.err
10102   rm -f conftest.er1
10103   cat conftest.err >&5
10104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10105   (exit $ac_status); } &&
10106          { ac_try='test -z "$ac_c_werror_flag"
10107                          || test ! -s conftest.err'
10108   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10109   (eval $ac_try) 2>&5
10110   ac_status=$?
10111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10112   (exit $ac_status); }; } &&
10113          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
10119   ac_cv_have_decl_stpcpy=yes
10120 else
10121   echo "$as_me: failed program was:" >&5
10122 sed 's/^/| /' conftest.$ac_ext >&5
10123
10124 ac_cv_have_decl_stpcpy=no
10125 fi
10126 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10127 fi
10128 echo "$as_me:$LINENO: result: $ac_cv_have_decl_stpcpy" >&5
10129 echo "${ECHO_T}$ac_cv_have_decl_stpcpy" >&6
10130 if test $ac_cv_have_decl_stpcpy = yes; then
10131
10132 cat >>confdefs.h <<_ACEOF
10133 #define HAVE_DECL_STPCPY 1
10134 _ACEOF
10135
10136
10137 else
10138   cat >>confdefs.h <<_ACEOF
10139 #define HAVE_DECL_STPCPY 0
10140 _ACEOF
10141
10142
10143 fi
10144 echo "$as_me:$LINENO: checking whether strstr is declared" >&5
10145 echo $ECHO_N "checking whether strstr is declared... $ECHO_C" >&6
10146 if test "${ac_cv_have_decl_strstr+set}" = set; then
10147   echo $ECHO_N "(cached) $ECHO_C" >&6
10148 else
10149   cat >conftest.$ac_ext <<_ACEOF
10150 /* confdefs.h.  */
10151 _ACEOF
10152 cat confdefs.h >>conftest.$ac_ext
10153 cat >>conftest.$ac_ext <<_ACEOF
10154 /* end confdefs.h.  */
10155 $ac_includes_default
10156 int
10157 main ()
10158 {
10159 #ifndef strstr
10160   char *p = (char *) strstr;
10161 #endif
10162
10163   ;
10164   return 0;
10165 }
10166 _ACEOF
10167 rm -f conftest.$ac_objext
10168 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10169   (eval $ac_compile) 2>conftest.er1
10170   ac_status=$?
10171   grep -v '^ *+' conftest.er1 >conftest.err
10172   rm -f conftest.er1
10173   cat conftest.err >&5
10174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10175   (exit $ac_status); } &&
10176          { ac_try='test -z "$ac_c_werror_flag"
10177                          || test ! -s conftest.err'
10178   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10179   (eval $ac_try) 2>&5
10180   ac_status=$?
10181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10182   (exit $ac_status); }; } &&
10183          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
10189   ac_cv_have_decl_strstr=yes
10190 else
10191   echo "$as_me: failed program was:" >&5
10192 sed 's/^/| /' conftest.$ac_ext >&5
10193
10194 ac_cv_have_decl_strstr=no
10195 fi
10196 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10197 fi
10198 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strstr" >&5
10199 echo "${ECHO_T}$ac_cv_have_decl_strstr" >&6
10200 if test $ac_cv_have_decl_strstr = yes; then
10201
10202 cat >>confdefs.h <<_ACEOF
10203 #define HAVE_DECL_STRSTR 1
10204 _ACEOF
10205
10206
10207 else
10208   cat >>confdefs.h <<_ACEOF
10209 #define HAVE_DECL_STRSTR 0
10210 _ACEOF
10211
10212
10213 fi
10214 echo "$as_me:$LINENO: checking whether sbrk is declared" >&5
10215 echo $ECHO_N "checking whether sbrk is declared... $ECHO_C" >&6
10216 if test "${ac_cv_have_decl_sbrk+set}" = set; then
10217   echo $ECHO_N "(cached) $ECHO_C" >&6
10218 else
10219   cat >conftest.$ac_ext <<_ACEOF
10220 /* confdefs.h.  */
10221 _ACEOF
10222 cat confdefs.h >>conftest.$ac_ext
10223 cat >>conftest.$ac_ext <<_ACEOF
10224 /* end confdefs.h.  */
10225 $ac_includes_default
10226 int
10227 main ()
10228 {
10229 #ifndef sbrk
10230   char *p = (char *) sbrk;
10231 #endif
10232
10233   ;
10234   return 0;
10235 }
10236 _ACEOF
10237 rm -f conftest.$ac_objext
10238 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10239   (eval $ac_compile) 2>conftest.er1
10240   ac_status=$?
10241   grep -v '^ *+' conftest.er1 >conftest.err
10242   rm -f conftest.er1
10243   cat conftest.err >&5
10244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10245   (exit $ac_status); } &&
10246          { ac_try='test -z "$ac_c_werror_flag"
10247                          || test ! -s conftest.err'
10248   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10249   (eval $ac_try) 2>&5
10250   ac_status=$?
10251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10252   (exit $ac_status); }; } &&
10253          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
10259   ac_cv_have_decl_sbrk=yes
10260 else
10261   echo "$as_me: failed program was:" >&5
10262 sed 's/^/| /' conftest.$ac_ext >&5
10263
10264 ac_cv_have_decl_sbrk=no
10265 fi
10266 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10267 fi
10268 echo "$as_me:$LINENO: result: $ac_cv_have_decl_sbrk" >&5
10269 echo "${ECHO_T}$ac_cv_have_decl_sbrk" >&6
10270 if test $ac_cv_have_decl_sbrk = yes; then
10271
10272 cat >>confdefs.h <<_ACEOF
10273 #define HAVE_DECL_SBRK 1
10274 _ACEOF
10275
10276
10277 else
10278   cat >>confdefs.h <<_ACEOF
10279 #define HAVE_DECL_SBRK 0
10280 _ACEOF
10281
10282
10283 fi
10284 echo "$as_me:$LINENO: checking whether getenv is declared" >&5
10285 echo $ECHO_N "checking whether getenv is declared... $ECHO_C" >&6
10286 if test "${ac_cv_have_decl_getenv+set}" = set; then
10287   echo $ECHO_N "(cached) $ECHO_C" >&6
10288 else
10289   cat >conftest.$ac_ext <<_ACEOF
10290 /* confdefs.h.  */
10291 _ACEOF
10292 cat confdefs.h >>conftest.$ac_ext
10293 cat >>conftest.$ac_ext <<_ACEOF
10294 /* end confdefs.h.  */
10295 $ac_includes_default
10296 int
10297 main ()
10298 {
10299 #ifndef getenv
10300   char *p = (char *) getenv;
10301 #endif
10302
10303   ;
10304   return 0;
10305 }
10306 _ACEOF
10307 rm -f conftest.$ac_objext
10308 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10309   (eval $ac_compile) 2>conftest.er1
10310   ac_status=$?
10311   grep -v '^ *+' conftest.er1 >conftest.err
10312   rm -f conftest.er1
10313   cat conftest.err >&5
10314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10315   (exit $ac_status); } &&
10316          { ac_try='test -z "$ac_c_werror_flag"
10317                          || test ! -s conftest.err'
10318   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10319   (eval $ac_try) 2>&5
10320   ac_status=$?
10321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10322   (exit $ac_status); }; } &&
10323          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
10329   ac_cv_have_decl_getenv=yes
10330 else
10331   echo "$as_me: failed program was:" >&5
10332 sed 's/^/| /' conftest.$ac_ext >&5
10333
10334 ac_cv_have_decl_getenv=no
10335 fi
10336 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10337 fi
10338 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getenv" >&5
10339 echo "${ECHO_T}$ac_cv_have_decl_getenv" >&6
10340 if test $ac_cv_have_decl_getenv = yes; then
10341
10342 cat >>confdefs.h <<_ACEOF
10343 #define HAVE_DECL_GETENV 1
10344 _ACEOF
10345
10346
10347 else
10348   cat >>confdefs.h <<_ACEOF
10349 #define HAVE_DECL_GETENV 0
10350 _ACEOF
10351
10352
10353 fi
10354 echo "$as_me:$LINENO: checking whether environ is declared" >&5
10355 echo $ECHO_N "checking whether environ is declared... $ECHO_C" >&6
10356 if test "${ac_cv_have_decl_environ+set}" = set; then
10357   echo $ECHO_N "(cached) $ECHO_C" >&6
10358 else
10359   cat >conftest.$ac_ext <<_ACEOF
10360 /* confdefs.h.  */
10361 _ACEOF
10362 cat confdefs.h >>conftest.$ac_ext
10363 cat >>conftest.$ac_ext <<_ACEOF
10364 /* end confdefs.h.  */
10365 $ac_includes_default
10366 int
10367 main ()
10368 {
10369 #ifndef environ
10370   char *p = (char *) environ;
10371 #endif
10372
10373   ;
10374   return 0;
10375 }
10376 _ACEOF
10377 rm -f conftest.$ac_objext
10378 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10379   (eval $ac_compile) 2>conftest.er1
10380   ac_status=$?
10381   grep -v '^ *+' conftest.er1 >conftest.err
10382   rm -f conftest.er1
10383   cat conftest.err >&5
10384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10385   (exit $ac_status); } &&
10386          { ac_try='test -z "$ac_c_werror_flag"
10387                          || test ! -s conftest.err'
10388   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10389   (eval $ac_try) 2>&5
10390   ac_status=$?
10391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10392   (exit $ac_status); }; } &&
10393          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
10399   ac_cv_have_decl_environ=yes
10400 else
10401   echo "$as_me: failed program was:" >&5
10402 sed 's/^/| /' conftest.$ac_ext >&5
10403
10404 ac_cv_have_decl_environ=no
10405 fi
10406 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10407 fi
10408 echo "$as_me:$LINENO: result: $ac_cv_have_decl_environ" >&5
10409 echo "${ECHO_T}$ac_cv_have_decl_environ" >&6
10410 if test $ac_cv_have_decl_environ = yes; then
10411
10412 cat >>confdefs.h <<_ACEOF
10413 #define HAVE_DECL_ENVIRON 1
10414 _ACEOF
10415
10416
10417 else
10418   cat >>confdefs.h <<_ACEOF
10419 #define HAVE_DECL_ENVIRON 0
10420 _ACEOF
10421
10422
10423 fi
10424 echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
10425 echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6
10426 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
10427   echo $ECHO_N "(cached) $ECHO_C" >&6
10428 else
10429   cat >conftest.$ac_ext <<_ACEOF
10430 /* confdefs.h.  */
10431 _ACEOF
10432 cat confdefs.h >>conftest.$ac_ext
10433 cat >>conftest.$ac_ext <<_ACEOF
10434 /* end confdefs.h.  */
10435 $ac_includes_default
10436 int
10437 main ()
10438 {
10439 #ifndef getc_unlocked
10440   char *p = (char *) getc_unlocked;
10441 #endif
10442
10443   ;
10444   return 0;
10445 }
10446 _ACEOF
10447 rm -f conftest.$ac_objext
10448 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10449   (eval $ac_compile) 2>conftest.er1
10450   ac_status=$?
10451   grep -v '^ *+' conftest.er1 >conftest.err
10452   rm -f conftest.er1
10453   cat conftest.err >&5
10454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10455   (exit $ac_status); } &&
10456          { ac_try='test -z "$ac_c_werror_flag"
10457                          || test ! -s conftest.err'
10458   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10459   (eval $ac_try) 2>&5
10460   ac_status=$?
10461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10462   (exit $ac_status); }; } &&
10463          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
10469   ac_cv_have_decl_getc_unlocked=yes
10470 else
10471   echo "$as_me: failed program was:" >&5
10472 sed 's/^/| /' conftest.$ac_ext >&5
10473
10474 ac_cv_have_decl_getc_unlocked=no
10475 fi
10476 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10477 fi
10478 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
10479 echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6
10480 if test $ac_cv_have_decl_getc_unlocked = yes; then
10481
10482 cat >>confdefs.h <<_ACEOF
10483 #define HAVE_DECL_GETC_UNLOCKED 1
10484 _ACEOF
10485
10486
10487 else
10488   cat >>confdefs.h <<_ACEOF
10489 #define HAVE_DECL_GETC_UNLOCKED 0
10490 _ACEOF
10491
10492
10493 fi
10494 echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
10495 echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6
10496 if test "${ac_cv_have_decl_snprintf+set}" = set; then
10497   echo $ECHO_N "(cached) $ECHO_C" >&6
10498 else
10499   cat >conftest.$ac_ext <<_ACEOF
10500 /* confdefs.h.  */
10501 _ACEOF
10502 cat confdefs.h >>conftest.$ac_ext
10503 cat >>conftest.$ac_ext <<_ACEOF
10504 /* end confdefs.h.  */
10505 $ac_includes_default
10506 int
10507 main ()
10508 {
10509 #ifndef snprintf
10510   char *p = (char *) snprintf;
10511 #endif
10512
10513   ;
10514   return 0;
10515 }
10516 _ACEOF
10517 rm -f conftest.$ac_objext
10518 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10519   (eval $ac_compile) 2>conftest.er1
10520   ac_status=$?
10521   grep -v '^ *+' conftest.er1 >conftest.err
10522   rm -f conftest.er1
10523   cat conftest.err >&5
10524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10525   (exit $ac_status); } &&
10526          { ac_try='test -z "$ac_c_werror_flag"
10527                          || test ! -s conftest.err'
10528   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10529   (eval $ac_try) 2>&5
10530   ac_status=$?
10531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10532   (exit $ac_status); }; } &&
10533          { ac_try='test -s conftest.$ac_objext'
10534   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10535   (eval $ac_try) 2>&5
10536   ac_status=$?
10537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10538   (exit $ac_status); }; }; then
10539   ac_cv_have_decl_snprintf=yes
10540 else
10541   echo "$as_me: failed program was:" >&5
10542 sed 's/^/| /' conftest.$ac_ext >&5
10543
10544 ac_cv_have_decl_snprintf=no
10545 fi
10546 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10547 fi
10548 echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
10549 echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6
10550 if test $ac_cv_have_decl_snprintf = yes; then
10551
10552 cat >>confdefs.h <<_ACEOF
10553 #define HAVE_DECL_SNPRINTF 1
10554 _ACEOF
10555
10556
10557 else
10558   cat >>confdefs.h <<_ACEOF
10559 #define HAVE_DECL_SNPRINTF 0
10560 _ACEOF
10561
10562
10563 fi
10564 echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
10565 echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6
10566 if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
10567   echo $ECHO_N "(cached) $ECHO_C" >&6
10568 else
10569   cat >conftest.$ac_ext <<_ACEOF
10570 /* confdefs.h.  */
10571 _ACEOF
10572 cat confdefs.h >>conftest.$ac_ext
10573 cat >>conftest.$ac_ext <<_ACEOF
10574 /* end confdefs.h.  */
10575 $ac_includes_default
10576 int
10577 main ()
10578 {
10579 #ifndef vsnprintf
10580   char *p = (char *) vsnprintf;
10581 #endif
10582
10583   ;
10584   return 0;
10585 }
10586 _ACEOF
10587 rm -f conftest.$ac_objext
10588 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10589   (eval $ac_compile) 2>conftest.er1
10590   ac_status=$?
10591   grep -v '^ *+' conftest.er1 >conftest.err
10592   rm -f conftest.er1
10593   cat conftest.err >&5
10594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10595   (exit $ac_status); } &&
10596          { ac_try='test -z "$ac_c_werror_flag"
10597                          || test ! -s conftest.err'
10598   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10599   (eval $ac_try) 2>&5
10600   ac_status=$?
10601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10602   (exit $ac_status); }; } &&
10603          { ac_try='test -s conftest.$ac_objext'
10604   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10605   (eval $ac_try) 2>&5
10606   ac_status=$?
10607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10608   (exit $ac_status); }; }; then
10609   ac_cv_have_decl_vsnprintf=yes
10610 else
10611   echo "$as_me: failed program was:" >&5
10612 sed 's/^/| /' conftest.$ac_ext >&5
10613
10614 ac_cv_have_decl_vsnprintf=no
10615 fi
10616 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10617 fi
10618 echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
10619 echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6
10620 if test $ac_cv_have_decl_vsnprintf = yes; then
10621
10622 cat >>confdefs.h <<_ACEOF
10623 #define HAVE_DECL_VSNPRINTF 1
10624 _ACEOF
10625
10626
10627 else
10628   cat >>confdefs.h <<_ACEOF
10629 #define HAVE_DECL_VSNPRINTF 0
10630 _ACEOF
10631
10632
10633 fi
10634
10635
10636
10637
10638 case "${host}" in
10639 *-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*)
10640
10641 cat >>confdefs.h <<\_ACEOF
10642 #define USE_BINARY_FOPEN 1
10643 _ACEOF
10644  ;;
10645 esac
10646
10647 # target-specific stuff:
10648
10649 # Canonicalize the secondary target names.
10650 if test -n "$enable_targets"; then
10651     for targ in `echo $enable_targets | sed 's/,/ /g'`
10652     do
10653         result=`$ac_config_sub $targ 2>/dev/null`
10654         if test -n "$result"; then
10655             canon_targets="$canon_targets $result"
10656         else
10657             # Allow targets that config.sub doesn't recognize, like "all".
10658             canon_targets="$canon_targets $targ"
10659         fi
10660     done
10661 fi
10662
10663 all_targets=false
10664 BUILD_NLMCONV=
10665 NLMCONV_DEFS=
10666 BUILD_SRCONV=
10667 BUILD_DLLTOOL=
10668 DLLTOOL_DEFS=
10669 BUILD_WINDRES=
10670 BUILD_DLLWRAP=
10671 BUILD_MISC=
10672 OBJDUMP_DEFS=
10673
10674 for targ in $target $canon_targets
10675 do
10676     if test "x$targ" = "xall"; then
10677         all_targets=true
10678         BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)'
10679         BUILD_SRCONV='$(SRCONV_PROG)'
10680         NLMCONV_DEFS="-DNLMCONV_I386 -DNLMCONV_ALPHA -DNLMCONV_POWERPC -DNLMCONV_SPARC"
10681     else
10682         case $targ in
10683         i[3-7]86*-*-netware*)
10684           BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)'
10685           NLMCONV_DEFS="$NLMCONV_DEFS -DNLMCONV_I386"
10686           ;;
10687         alpha*-*-netware*)
10688           BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)'
10689           NLMCONV_DEFS="$NLMCONV_DEFS -DNLMCONV_ALPHA"
10690           ;;
10691         powerpc*-*-netware*)
10692           BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)'
10693           NLMCONV_DEFS="$NLMCONV_DEFS -DNLMCONV_POWERPC"
10694           ;;
10695         sparc*-*-netware*)
10696           BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)'
10697           NLMCONV_DEFS="$NLMCONV_DEFS -DNLMCONV_SPARC"
10698           ;;
10699         esac
10700         case $targ in
10701         *-*-hms*) BUILD_SRCONV='$(SRCONV_PROG)' ;;
10702         esac
10703         case $targ in
10704         arm-epoc-pe*)
10705           BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
10706           DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_ARM_EPOC -DDLLTOOL_ARM"
10707           BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
10708           ;;
10709         arm-*-pe* | arm-*-wince)
10710           BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
10711           DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_ARM"
10712           BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
10713           ;;
10714         thumb-*-pe*)
10715           BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
10716           DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_ARM"
10717           BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
10718           ;;
10719         i[3-7]86-*-pe* | i[3-7]86-*-cygwin* | i[3-7]86-*-mingw32** | i[3-7]86-*-netbsdpe*)
10720           BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
10721           DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_I386"
10722           BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
10723           BUILD_DLLWRAP='$(DLLWRAP_PROG)$(EXEEXT)'
10724           ;;
10725         i[3-7]86-*-interix)
10726           BUILD_DLLTOOL='$(DLLTOOL_PROG)'
10727           DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_I386"
10728           ;;
10729         powerpc*-aix5.[01])
10730           ;;
10731         powerpc*-aix5.*)
10732           OBJDUMP_DEFS="-DAIX_WEAK_SUPPORT"
10733           ;;
10734         powerpc*-*-pe* | powerpc*-*-cygwin*)
10735           BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
10736           DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_PPC"
10737           BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
10738           ;;
10739         sh*-*-pe)
10740           BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
10741           DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_SH"
10742           BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
10743           ;;
10744         mips*-*-pe)
10745           BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
10746           DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_MIPS"
10747           BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
10748           ;;
10749         mcore-*-pe)
10750           BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
10751           DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_MCORE"
10752           BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
10753           ;;
10754         mcore-*-elf)
10755           BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
10756           DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_MCORE_ELF"
10757           ;;
10758         esac
10759     fi
10760 done
10761
10762 if test "${with_windres+set}" = set; then
10763           BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
10764 fi
10765
10766
10767
10768
10769
10770
10771
10772
10773
10774
10775
10776
10777 cat >>confdefs.h <<_ACEOF
10778 #define TARGET "${target}"
10779 _ACEOF
10780
10781
10782 targ=$target
10783 . $srcdir/../bfd/config.bfd
10784 if test "x$targ_underscore" = "xyes"; then
10785     UNDERSCORE=1
10786 else
10787     UNDERSCORE=0
10788 fi
10789
10790 cat >>confdefs.h <<_ACEOF
10791 #define TARGET_PREPENDS_UNDERSCORE $UNDERSCORE
10792 _ACEOF
10793
10794
10795 # Emulation
10796 for targ_alias in `echo $target_alias $enable_targets | sed 's/,/ /g'`
10797 do
10798   # Canonicalize the secondary target names.
10799  result=`$ac_config_sub $targ_alias 2>/dev/null`
10800  if test -n "$result"; then
10801    targ=$result
10802  else
10803    targ=$targ_alias
10804  fi
10805
10806  . ${srcdir}/configure.tgt
10807
10808   EMULATION=$targ_emul
10809   EMULATION_VECTOR=$targ_emul_vector
10810 done
10811
10812
10813
10814
10815                               ac_config_files="$ac_config_files Makefile doc/Makefile po/Makefile.in:po/Make-in"
10816           ac_config_commands="$ac_config_commands default"
10817 cat >confcache <<\_ACEOF
10818 # This file is a shell script that caches the results of configure
10819 # tests run on this system so they can be shared between configure
10820 # scripts and configure runs, see configure's option --config-cache.
10821 # It is not useful on other systems.  If it contains results you don't
10822 # want to keep, you may remove or edit it.
10823 #
10824 # config.status only pays attention to the cache file if you give it
10825 # the --recheck option to rerun configure.
10826 #
10827 # `ac_cv_env_foo' variables (set or unset) will be overridden when
10828 # loading this file, other *unset* `ac_cv_foo' will be assigned the
10829 # following values.
10830
10831 _ACEOF
10832
10833 # The following way of writing the cache mishandles newlines in values,
10834 # but we know of no workaround that is simple, portable, and efficient.
10835 # So, don't put newlines in cache variables' values.
10836 # Ultrix sh set writes to stderr and can't be redirected directly,
10837 # and sets the high bit in the cache file unless we assign to the vars.
10838 {
10839   (set) 2>&1 |
10840     case `(ac_space=' '; set | grep ac_space) 2>&1` in
10841     *ac_space=\ *)
10842       # `set' does not quote correctly, so add quotes (double-quote
10843       # substitution turns \\\\ into \\, and sed turns \\ into \).
10844       sed -n \
10845         "s/'/'\\\\''/g;
10846           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10847       ;;
10848     *)
10849       # `set' quotes correctly as required by POSIX, so do not add quotes.
10850       sed -n \
10851         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
10852       ;;
10853     esac;
10854 } |
10855   sed '
10856      t clear
10857      : clear
10858      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10859      t end
10860      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10861      : end' >>confcache
10862 if diff $cache_file confcache >/dev/null 2>&1; then :; else
10863   if test -w $cache_file; then
10864     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
10865     cat confcache >$cache_file
10866   else
10867     echo "not updating unwritable cache $cache_file"
10868   fi
10869 fi
10870 rm -f confcache
10871
10872 test "x$prefix" = xNONE && prefix=$ac_default_prefix
10873 # Let make expand exec_prefix.
10874 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10875
10876 # VPATH may cause trouble with some makes, so we remove $(srcdir),
10877 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
10878 # trailing colons and then remove the whole line if VPATH becomes empty
10879 # (actually we leave an empty line to preserve line numbers).
10880 if test "x$srcdir" = x.; then
10881   ac_vpsub='/^[  ]*VPATH[        ]*=/{
10882 s/:*\$(srcdir):*/:/;
10883 s/:*\${srcdir}:*/:/;
10884 s/:*@srcdir@:*/:/;
10885 s/^\([^=]*=[     ]*\):*/\1/;
10886 s/:*$//;
10887 s/^[^=]*=[       ]*$//;
10888 }'
10889 fi
10890
10891 DEFS=-DHAVE_CONFIG_H
10892
10893 ac_libobjs=
10894 ac_ltlibobjs=
10895 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10896   # 1. Remove the extension, and $U if already installed.
10897   ac_i=`echo "$ac_i" |
10898          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
10899   # 2. Add them.
10900   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
10901   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
10902 done
10903 LIBOBJS=$ac_libobjs
10904
10905 LTLIBOBJS=$ac_ltlibobjs
10906
10907
10908 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
10909   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
10910 Usually this means the macro was only invoked conditionally." >&5
10911 echo "$as_me: error: conditional \"AMDEP\" was never defined.
10912 Usually this means the macro was only invoked conditionally." >&2;}
10913    { (exit 1); exit 1; }; }
10914 fi
10915 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
10916   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
10917 Usually this means the macro was only invoked conditionally." >&5
10918 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
10919 Usually this means the macro was only invoked conditionally." >&2;}
10920    { (exit 1); exit 1; }; }
10921 fi
10922 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
10923   { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
10924 Usually this means the macro was only invoked conditionally." >&5
10925 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
10926 Usually this means the macro was only invoked conditionally." >&2;}
10927    { (exit 1); exit 1; }; }
10928 fi
10929
10930 : ${CONFIG_STATUS=./config.status}
10931 ac_clean_files_save=$ac_clean_files
10932 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
10933 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
10934 echo "$as_me: creating $CONFIG_STATUS" >&6;}
10935 cat >$CONFIG_STATUS <<_ACEOF
10936 #! $SHELL
10937 # Generated by $as_me.
10938 # Run this file to recreate the current configuration.
10939 # Compiler output produced by configure, useful for debugging
10940 # configure, is in config.log if it exists.
10941
10942 debug=false
10943 ac_cs_recheck=false
10944 ac_cs_silent=false
10945 SHELL=\${CONFIG_SHELL-$SHELL}
10946 _ACEOF
10947
10948 cat >>$CONFIG_STATUS <<\_ACEOF
10949 ## --------------------- ##
10950 ## M4sh Initialization.  ##
10951 ## --------------------- ##
10952
10953 # Be Bourne compatible
10954 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
10955   emulate sh
10956   NULLCMD=:
10957   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
10958   # is contrary to our usage.  Disable this feature.
10959   alias -g '${1+"$@"}'='"$@"'
10960 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
10961   set -o posix
10962 fi
10963 DUALCASE=1; export DUALCASE # for MKS sh
10964
10965 # Support unset when possible.
10966 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
10967   as_unset=unset
10968 else
10969   as_unset=false
10970 fi
10971
10972
10973 # Work around bugs in pre-3.0 UWIN ksh.
10974 $as_unset ENV MAIL MAILPATH
10975 PS1='$ '
10976 PS2='> '
10977 PS4='+ '
10978
10979 # NLS nuisances.
10980 for as_var in \
10981   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
10982   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
10983   LC_TELEPHONE LC_TIME
10984 do
10985   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
10986     eval $as_var=C; export $as_var
10987   else
10988     $as_unset $as_var
10989   fi
10990 done
10991
10992 # Required to use basename.
10993 if expr a : '\(a\)' >/dev/null 2>&1; then
10994   as_expr=expr
10995 else
10996   as_expr=false
10997 fi
10998
10999 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
11000   as_basename=basename
11001 else
11002   as_basename=false
11003 fi
11004
11005
11006 # Name of the executable.
11007 as_me=`$as_basename "$0" ||
11008 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11009          X"$0" : 'X\(//\)$' \| \
11010          X"$0" : 'X\(/\)$' \| \
11011          .     : '\(.\)' 2>/dev/null ||
11012 echo X/"$0" |
11013     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
11014           /^X\/\(\/\/\)$/{ s//\1/; q; }
11015           /^X\/\(\/\).*/{ s//\1/; q; }
11016           s/.*/./; q'`
11017
11018
11019 # PATH needs CR, and LINENO needs CR and PATH.
11020 # Avoid depending upon Character Ranges.
11021 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11022 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11023 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11024 as_cr_digits='0123456789'
11025 as_cr_alnum=$as_cr_Letters$as_cr_digits
11026
11027 # The user is always right.
11028 if test "${PATH_SEPARATOR+set}" != set; then
11029   echo "#! /bin/sh" >conf$$.sh
11030   echo  "exit 0"   >>conf$$.sh
11031   chmod +x conf$$.sh
11032   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11033     PATH_SEPARATOR=';'
11034   else
11035     PATH_SEPARATOR=:
11036   fi
11037   rm -f conf$$.sh
11038 fi
11039
11040
11041   as_lineno_1=$LINENO
11042   as_lineno_2=$LINENO
11043   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
11044   test "x$as_lineno_1" != "x$as_lineno_2" &&
11045   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
11046   # Find who we are.  Look in the path if we contain no path at all
11047   # relative or not.
11048   case $0 in
11049     *[\\/]* ) as_myself=$0 ;;
11050     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11051 for as_dir in $PATH
11052 do
11053   IFS=$as_save_IFS
11054   test -z "$as_dir" && as_dir=.
11055   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11056 done
11057
11058        ;;
11059   esac
11060   # We did not find ourselves, most probably we were run as `sh COMMAND'
11061   # in which case we are not to be found in the path.
11062   if test "x$as_myself" = x; then
11063     as_myself=$0
11064   fi
11065   if test ! -f "$as_myself"; then
11066     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
11067 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
11068    { (exit 1); exit 1; }; }
11069   fi
11070   case $CONFIG_SHELL in
11071   '')
11072     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11073 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
11074 do
11075   IFS=$as_save_IFS
11076   test -z "$as_dir" && as_dir=.
11077   for as_base in sh bash ksh sh5; do
11078          case $as_dir in
11079          /*)
11080            if ("$as_dir/$as_base" -c '
11081   as_lineno_1=$LINENO
11082   as_lineno_2=$LINENO
11083   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
11084   test "x$as_lineno_1" != "x$as_lineno_2" &&
11085   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
11086              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
11087              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
11088              CONFIG_SHELL=$as_dir/$as_base
11089              export CONFIG_SHELL
11090              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
11091            fi;;
11092          esac
11093        done
11094 done
11095 ;;
11096   esac
11097
11098   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
11099   # uniformly replaced by the line number.  The first 'sed' inserts a
11100   # line-number line before each line; the second 'sed' does the real
11101   # work.  The second script uses 'N' to pair each line-number line
11102   # with the numbered line, and appends trailing '-' during
11103   # substitution so that $LINENO is not a special case at line end.
11104   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
11105   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
11106   sed '=' <$as_myself |
11107     sed '
11108       N
11109       s,$,-,
11110       : loop
11111       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
11112       t loop
11113       s,-$,,
11114       s,^['$as_cr_digits']*\n,,
11115     ' >$as_me.lineno &&
11116   chmod +x $as_me.lineno ||
11117     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
11118 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
11119    { (exit 1); exit 1; }; }
11120
11121   # Don't try to exec as it changes $[0], causing all sort of problems
11122   # (the dirname of $[0] is not the place where we might find the
11123   # original and so on.  Autoconf is especially sensible to this).
11124   . ./$as_me.lineno
11125   # Exit status is that of the last command.
11126   exit
11127 }
11128
11129
11130 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
11131   *c*,-n*) ECHO_N= ECHO_C='
11132 ' ECHO_T='      ' ;;
11133   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
11134   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
11135 esac
11136
11137 if expr a : '\(a\)' >/dev/null 2>&1; then
11138   as_expr=expr
11139 else
11140   as_expr=false
11141 fi
11142
11143 rm -f conf$$ conf$$.exe conf$$.file
11144 echo >conf$$.file
11145 if ln -s conf$$.file conf$$ 2>/dev/null; then
11146   # We could just check for DJGPP; but this test a) works b) is more generic
11147   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
11148   if test -f conf$$.exe; then
11149     # Don't use ln at all; we don't have any links
11150     as_ln_s='cp -p'
11151   else
11152     as_ln_s='ln -s'
11153   fi
11154 elif ln conf$$.file conf$$ 2>/dev/null; then
11155   as_ln_s=ln
11156 else
11157   as_ln_s='cp -p'
11158 fi
11159 rm -f conf$$ conf$$.exe conf$$.file
11160
11161 if mkdir -p . 2>/dev/null; then
11162   as_mkdir_p=:
11163 else
11164   test -d ./-p && rmdir ./-p
11165   as_mkdir_p=false
11166 fi
11167
11168 as_executable_p="test -f"
11169
11170 # Sed expression to map a string onto a valid CPP name.
11171 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11172
11173 # Sed expression to map a string onto a valid variable name.
11174 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11175
11176
11177 # IFS
11178 # We need space, tab and new line, in precisely that order.
11179 as_nl='
11180 '
11181 IFS="   $as_nl"
11182
11183 # CDPATH.
11184 $as_unset CDPATH
11185
11186 exec 6>&1
11187
11188 # Open the log real soon, to keep \$[0] and so on meaningful, and to
11189 # report actual input values of CONFIG_FILES etc. instead of their
11190 # values after options handling.  Logging --version etc. is OK.
11191 exec 5>>config.log
11192 {
11193   echo
11194   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11195 ## Running $as_me. ##
11196 _ASBOX
11197 } >&5
11198 cat >&5 <<_CSEOF
11199
11200 This file was extended by $as_me, which was
11201 generated by GNU Autoconf 2.59.  Invocation command line was
11202
11203   CONFIG_FILES    = $CONFIG_FILES
11204   CONFIG_HEADERS  = $CONFIG_HEADERS
11205   CONFIG_LINKS    = $CONFIG_LINKS
11206   CONFIG_COMMANDS = $CONFIG_COMMANDS
11207   $ $0 $@
11208
11209 _CSEOF
11210 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
11211 echo >&5
11212 _ACEOF
11213
11214 # Files that config.status was made for.
11215 if test -n "$ac_config_files"; then
11216   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
11217 fi
11218
11219 if test -n "$ac_config_headers"; then
11220   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
11221 fi
11222
11223 if test -n "$ac_config_links"; then
11224   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
11225 fi
11226
11227 if test -n "$ac_config_commands"; then
11228   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
11229 fi
11230
11231 cat >>$CONFIG_STATUS <<\_ACEOF
11232
11233 ac_cs_usage="\
11234 \`$as_me' instantiates files from templates according to the
11235 current configuration.
11236
11237 Usage: $0 [OPTIONS] [FILE]...
11238
11239   -h, --help       print this help, then exit
11240   -V, --version    print version number, then exit
11241   -q, --quiet      do not print progress messages
11242   -d, --debug      don't remove temporary files
11243       --recheck    update $as_me by reconfiguring in the same conditions
11244   --file=FILE[:TEMPLATE]
11245                    instantiate the configuration file FILE
11246   --header=FILE[:TEMPLATE]
11247                    instantiate the configuration header FILE
11248
11249 Configuration files:
11250 $config_files
11251
11252 Configuration headers:
11253 $config_headers
11254
11255 Configuration commands:
11256 $config_commands
11257
11258 Report bugs to <bug-autoconf@gnu.org>."
11259 _ACEOF
11260
11261 cat >>$CONFIG_STATUS <<_ACEOF
11262 ac_cs_version="\\
11263 config.status
11264 configured by $0, generated by GNU Autoconf 2.59,
11265   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
11266
11267 Copyright (C) 2003 Free Software Foundation, Inc.
11268 This config.status script is free software; the Free Software Foundation
11269 gives unlimited permission to copy, distribute and modify it."
11270 srcdir=$srcdir
11271 INSTALL="$INSTALL"
11272 _ACEOF
11273
11274 cat >>$CONFIG_STATUS <<\_ACEOF
11275 # If no file are specified by the user, then we need to provide default
11276 # value.  By we need to know if files were specified by the user.
11277 ac_need_defaults=:
11278 while test $# != 0
11279 do
11280   case $1 in
11281   --*=*)
11282     ac_option=`expr "x$1" : 'x\([^=]*\)='`
11283     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
11284     ac_shift=:
11285     ;;
11286   -*)
11287     ac_option=$1
11288     ac_optarg=$2
11289     ac_shift=shift
11290     ;;
11291   *) # This is not an option, so the user has probably given explicit
11292      # arguments.
11293      ac_option=$1
11294      ac_need_defaults=false;;
11295   esac
11296
11297   case $ac_option in
11298   # Handling of the options.
11299 _ACEOF
11300 cat >>$CONFIG_STATUS <<\_ACEOF
11301   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11302     ac_cs_recheck=: ;;
11303   --version | --vers* | -V )
11304     echo "$ac_cs_version"; exit 0 ;;
11305   --he | --h)
11306     # Conflict between --help and --header
11307     { { echo "$as_me:$LINENO: error: ambiguous option: $1
11308 Try \`$0 --help' for more information." >&5
11309 echo "$as_me: error: ambiguous option: $1
11310 Try \`$0 --help' for more information." >&2;}
11311    { (exit 1); exit 1; }; };;
11312   --help | --hel | -h )
11313     echo "$ac_cs_usage"; exit 0 ;;
11314   --debug | --d* | -d )
11315     debug=: ;;
11316   --file | --fil | --fi | --f )
11317     $ac_shift
11318     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
11319     ac_need_defaults=false;;
11320   --header | --heade | --head | --hea )
11321     $ac_shift
11322     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
11323     ac_need_defaults=false;;
11324   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11325   | -silent | --silent | --silen | --sile | --sil | --si | --s)
11326     ac_cs_silent=: ;;
11327
11328   # This is an error.
11329   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
11330 Try \`$0 --help' for more information." >&5
11331 echo "$as_me: error: unrecognized option: $1
11332 Try \`$0 --help' for more information." >&2;}
11333    { (exit 1); exit 1; }; } ;;
11334
11335   *) ac_config_targets="$ac_config_targets $1" ;;
11336
11337   esac
11338   shift
11339 done
11340
11341 ac_configure_extra_args=
11342
11343 if $ac_cs_silent; then
11344   exec 6>/dev/null
11345   ac_configure_extra_args="$ac_configure_extra_args --silent"
11346 fi
11347
11348 _ACEOF
11349 cat >>$CONFIG_STATUS <<_ACEOF
11350 if \$ac_cs_recheck; then
11351   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
11352   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11353 fi
11354
11355 _ACEOF
11356
11357 cat >>$CONFIG_STATUS <<_ACEOF
11358 #
11359 # INIT-COMMANDS section.
11360 #
11361
11362 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
11363
11364 _ACEOF
11365
11366
11367
11368 cat >>$CONFIG_STATUS <<\_ACEOF
11369 for ac_config_target in $ac_config_targets
11370 do
11371   case "$ac_config_target" in
11372   # Handling of arguments.
11373   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11374   "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
11375   "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
11376   "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
11377   "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
11378   "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
11379   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
11380 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
11381    { (exit 1); exit 1; }; };;
11382   esac
11383 done
11384
11385 # If the user did not use the arguments to specify the items to instantiate,
11386 # then the envvar interface is used.  Set only those that are not.
11387 # We use the long form for the default assignment because of an extremely
11388 # bizarre bug on SunOS 4.1.3.
11389 if $ac_need_defaults; then
11390   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11391   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11392   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
11393 fi
11394
11395 # Have a temporary directory for convenience.  Make it in the build tree
11396 # simply because there is no reason to put it here, and in addition,
11397 # creating and moving files from /tmp can sometimes cause problems.
11398 # Create a temporary directory, and hook for its removal unless debugging.
11399 $debug ||
11400 {
11401   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
11402   trap '{ (exit 1); exit 1; }' 1 2 13 15
11403 }
11404
11405 # Create a (secure) tmp directory for tmp files.
11406
11407 {
11408   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
11409   test -n "$tmp" && test -d "$tmp"
11410 }  ||
11411 {
11412   tmp=./confstat$$-$RANDOM
11413   (umask 077 && mkdir $tmp)
11414 } ||
11415 {
11416    echo "$me: cannot create a temporary directory in ." >&2
11417    { (exit 1); exit 1; }
11418 }
11419
11420 _ACEOF
11421
11422 cat >>$CONFIG_STATUS <<_ACEOF
11423
11424 #
11425 # CONFIG_FILES section.
11426 #
11427
11428 # No need to generate the scripts if there are no CONFIG_FILES.
11429 # This happens for instance when ./config.status config.h
11430 if test -n "\$CONFIG_FILES"; then
11431   # Protect against being on the right side of a sed subst in config.status.
11432   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
11433    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
11434 s,@SHELL@,$SHELL,;t t
11435 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
11436 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
11437 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
11438 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
11439 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
11440 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
11441 s,@exec_prefix@,$exec_prefix,;t t
11442 s,@prefix@,$prefix,;t t
11443 s,@program_transform_name@,$program_transform_name,;t t
11444 s,@bindir@,$bindir,;t t
11445 s,@sbindir@,$sbindir,;t t
11446 s,@libexecdir@,$libexecdir,;t t
11447 s,@datadir@,$datadir,;t t
11448 s,@sysconfdir@,$sysconfdir,;t t
11449 s,@sharedstatedir@,$sharedstatedir,;t t
11450 s,@localstatedir@,$localstatedir,;t t
11451 s,@libdir@,$libdir,;t t
11452 s,@includedir@,$includedir,;t t
11453 s,@oldincludedir@,$oldincludedir,;t t
11454 s,@infodir@,$infodir,;t t
11455 s,@mandir@,$mandir,;t t
11456 s,@build_alias@,$build_alias,;t t
11457 s,@host_alias@,$host_alias,;t t
11458 s,@target_alias@,$target_alias,;t t
11459 s,@DEFS@,$DEFS,;t t
11460 s,@ECHO_C@,$ECHO_C,;t t
11461 s,@ECHO_N@,$ECHO_N,;t t
11462 s,@ECHO_T@,$ECHO_T,;t t
11463 s,@LIBS@,$LIBS,;t t
11464 s,@build@,$build,;t t
11465 s,@build_cpu@,$build_cpu,;t t
11466 s,@build_vendor@,$build_vendor,;t t
11467 s,@build_os@,$build_os,;t t
11468 s,@host@,$host,;t t
11469 s,@host_cpu@,$host_cpu,;t t
11470 s,@host_vendor@,$host_vendor,;t t
11471 s,@host_os@,$host_os,;t t
11472 s,@target@,$target,;t t
11473 s,@target_cpu@,$target_cpu,;t t
11474 s,@target_vendor@,$target_vendor,;t t
11475 s,@target_os@,$target_os,;t t
11476 s,@CC@,$CC,;t t
11477 s,@CFLAGS@,$CFLAGS,;t t
11478 s,@LDFLAGS@,$LDFLAGS,;t t
11479 s,@CPPFLAGS@,$CPPFLAGS,;t t
11480 s,@ac_ct_CC@,$ac_ct_CC,;t t
11481 s,@EXEEXT@,$EXEEXT,;t t
11482 s,@OBJEXT@,$OBJEXT,;t t
11483 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
11484 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
11485 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
11486 s,@CYGPATH_W@,$CYGPATH_W,;t t
11487 s,@PACKAGE@,$PACKAGE,;t t
11488 s,@VERSION@,$VERSION,;t t
11489 s,@ACLOCAL@,$ACLOCAL,;t t
11490 s,@AUTOCONF@,$AUTOCONF,;t t
11491 s,@AUTOMAKE@,$AUTOMAKE,;t t
11492 s,@AUTOHEADER@,$AUTOHEADER,;t t
11493 s,@MAKEINFO@,$MAKEINFO,;t t
11494 s,@install_sh@,$install_sh,;t t
11495 s,@STRIP@,$STRIP,;t t
11496 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
11497 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
11498 s,@mkdir_p@,$mkdir_p,;t t
11499 s,@AWK@,$AWK,;t t
11500 s,@SET_MAKE@,$SET_MAKE,;t t
11501 s,@am__leading_dot@,$am__leading_dot,;t t
11502 s,@AMTAR@,$AMTAR,;t t
11503 s,@am__tar@,$am__tar,;t t
11504 s,@am__untar@,$am__untar,;t t
11505 s,@DEPDIR@,$DEPDIR,;t t
11506 s,@am__include@,$am__include,;t t
11507 s,@am__quote@,$am__quote,;t t
11508 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
11509 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
11510 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
11511 s,@CCDEPMODE@,$CCDEPMODE,;t t
11512 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
11513 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
11514 s,@LN_S@,$LN_S,;t t
11515 s,@RANLIB@,$RANLIB,;t t
11516 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
11517 s,@LIBTOOL@,$LIBTOOL,;t t
11518 s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
11519 s,@NO_WERROR@,$NO_WERROR,;t t
11520 s,@YACC@,$YACC,;t t
11521 s,@LEX@,$LEX,;t t
11522 s,@LEXLIB@,$LEXLIB,;t t
11523 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
11524 s,@CPP@,$CPP,;t t
11525 s,@EGREP@,$EGREP,;t t
11526 s,@ALLOCA@,$ALLOCA,;t t
11527 s,@USE_NLS@,$USE_NLS,;t t
11528 s,@MSGFMT@,$MSGFMT,;t t
11529 s,@GMSGFMT@,$GMSGFMT,;t t
11530 s,@XGETTEXT@,$XGETTEXT,;t t
11531 s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
11532 s,@CATALOGS@,$CATALOGS,;t t
11533 s,@CATOBJEXT@,$CATOBJEXT,;t t
11534 s,@DATADIRNAME@,$DATADIRNAME,;t t
11535 s,@GMOFILES@,$GMOFILES,;t t
11536 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
11537 s,@INTLDEPS@,$INTLDEPS,;t t
11538 s,@INTLLIBS@,$INTLLIBS,;t t
11539 s,@INTLOBJS@,$INTLOBJS,;t t
11540 s,@POFILES@,$POFILES,;t t
11541 s,@POSUB@,$POSUB,;t t
11542 s,@INCLUDE_LOCALE_H@,$INCLUDE_LOCALE_H,;t t
11543 s,@GT_NO@,$GT_NO,;t t
11544 s,@GT_YES@,$GT_YES,;t t
11545 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
11546 s,@l@,$l,;t t
11547 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
11548 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
11549 s,@MAINT@,$MAINT,;t t
11550 s,@HDEFINES@,$HDEFINES,;t t
11551 s,@AR@,$AR,;t t
11552 s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
11553 s,@EXEEXT_FOR_BUILD@,$EXEEXT_FOR_BUILD,;t t
11554 s,@DEMANGLER_NAME@,$DEMANGLER_NAME,;t t
11555 s,@NLMCONV_DEFS@,$NLMCONV_DEFS,;t t
11556 s,@BUILD_NLMCONV@,$BUILD_NLMCONV,;t t
11557 s,@BUILD_SRCONV@,$BUILD_SRCONV,;t t
11558 s,@BUILD_DLLTOOL@,$BUILD_DLLTOOL,;t t
11559 s,@DLLTOOL_DEFS@,$DLLTOOL_DEFS,;t t
11560 s,@BUILD_WINDRES@,$BUILD_WINDRES,;t t
11561 s,@BUILD_DLLWRAP@,$BUILD_DLLWRAP,;t t
11562 s,@BUILD_MISC@,$BUILD_MISC,;t t
11563 s,@OBJDUMP_DEFS@,$OBJDUMP_DEFS,;t t
11564 s,@EMULATION@,$EMULATION,;t t
11565 s,@EMULATION_VECTOR@,$EMULATION_VECTOR,;t t
11566 s,@LIBOBJS@,$LIBOBJS,;t t
11567 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
11568 CEOF
11569
11570 _ACEOF
11571
11572   cat >>$CONFIG_STATUS <<\_ACEOF
11573   # Split the substitutions into bite-sized pieces for seds with
11574   # small command number limits, like on Digital OSF/1 and HP-UX.
11575   ac_max_sed_lines=48
11576   ac_sed_frag=1 # Number of current file.
11577   ac_beg=1 # First line for current file.
11578   ac_end=$ac_max_sed_lines # Line after last line for current file.
11579   ac_more_lines=:
11580   ac_sed_cmds=
11581   while $ac_more_lines; do
11582     if test $ac_beg -gt 1; then
11583       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
11584     else
11585       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
11586     fi
11587     if test ! -s $tmp/subs.frag; then
11588       ac_more_lines=false
11589     else
11590       # The purpose of the label and of the branching condition is to
11591       # speed up the sed processing (if there are no `@' at all, there
11592       # is no need to browse any of the substitutions).
11593       # These are the two extra sed commands mentioned above.
11594       (echo ':t
11595   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
11596       if test -z "$ac_sed_cmds"; then
11597         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
11598       else
11599         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
11600       fi
11601       ac_sed_frag=`expr $ac_sed_frag + 1`
11602       ac_beg=$ac_end
11603       ac_end=`expr $ac_end + $ac_max_sed_lines`
11604     fi
11605   done
11606   if test -z "$ac_sed_cmds"; then
11607     ac_sed_cmds=cat
11608   fi
11609 fi # test -n "$CONFIG_FILES"
11610
11611 _ACEOF
11612 cat >>$CONFIG_STATUS <<\_ACEOF
11613 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
11614   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
11615   case $ac_file in
11616   - | *:- | *:-:* ) # input from stdin
11617         cat >$tmp/stdin
11618         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11619         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11620   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11621         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11622   * )   ac_file_in=$ac_file.in ;;
11623   esac
11624
11625   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
11626   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
11627 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11628          X"$ac_file" : 'X\(//\)[^/]' \| \
11629          X"$ac_file" : 'X\(//\)$' \| \
11630          X"$ac_file" : 'X\(/\)' \| \
11631          .     : '\(.\)' 2>/dev/null ||
11632 echo X"$ac_file" |
11633     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11634           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11635           /^X\(\/\/\)$/{ s//\1/; q; }
11636           /^X\(\/\).*/{ s//\1/; q; }
11637           s/.*/./; q'`
11638   { if $as_mkdir_p; then
11639     mkdir -p "$ac_dir"
11640   else
11641     as_dir="$ac_dir"
11642     as_dirs=
11643     while test ! -d "$as_dir"; do
11644       as_dirs="$as_dir $as_dirs"
11645       as_dir=`(dirname "$as_dir") 2>/dev/null ||
11646 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11647          X"$as_dir" : 'X\(//\)[^/]' \| \
11648          X"$as_dir" : 'X\(//\)$' \| \
11649          X"$as_dir" : 'X\(/\)' \| \
11650          .     : '\(.\)' 2>/dev/null ||
11651 echo X"$as_dir" |
11652     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11653           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11654           /^X\(\/\/\)$/{ s//\1/; q; }
11655           /^X\(\/\).*/{ s//\1/; q; }
11656           s/.*/./; q'`
11657     done
11658     test ! -n "$as_dirs" || mkdir $as_dirs
11659   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
11660 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
11661    { (exit 1); exit 1; }; }; }
11662
11663   ac_builddir=.
11664
11665 if test "$ac_dir" != .; then
11666   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
11667   # A "../" for each directory in $ac_dir_suffix.
11668   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
11669 else
11670   ac_dir_suffix= ac_top_builddir=
11671 fi
11672
11673 case $srcdir in
11674   .)  # No --srcdir option.  We are building in place.
11675     ac_srcdir=.
11676     if test -z "$ac_top_builddir"; then
11677        ac_top_srcdir=.
11678     else
11679        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
11680     fi ;;
11681   [\\/]* | ?:[\\/]* )  # Absolute path.
11682     ac_srcdir=$srcdir$ac_dir_suffix;
11683     ac_top_srcdir=$srcdir ;;
11684   *) # Relative path.
11685     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
11686     ac_top_srcdir=$ac_top_builddir$srcdir ;;
11687 esac
11688
11689 # Do not use `cd foo && pwd` to compute absolute paths, because
11690 # the directories may not exist.
11691 case `pwd` in
11692 .) ac_abs_builddir="$ac_dir";;
11693 *)
11694   case "$ac_dir" in
11695   .) ac_abs_builddir=`pwd`;;
11696   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
11697   *) ac_abs_builddir=`pwd`/"$ac_dir";;
11698   esac;;
11699 esac
11700 case $ac_abs_builddir in
11701 .) ac_abs_top_builddir=${ac_top_builddir}.;;
11702 *)
11703   case ${ac_top_builddir}. in
11704   .) ac_abs_top_builddir=$ac_abs_builddir;;
11705   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
11706   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
11707   esac;;
11708 esac
11709 case $ac_abs_builddir in
11710 .) ac_abs_srcdir=$ac_srcdir;;
11711 *)
11712   case $ac_srcdir in
11713   .) ac_abs_srcdir=$ac_abs_builddir;;
11714   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
11715   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
11716   esac;;
11717 esac
11718 case $ac_abs_builddir in
11719 .) ac_abs_top_srcdir=$ac_top_srcdir;;
11720 *)
11721   case $ac_top_srcdir in
11722   .) ac_abs_top_srcdir=$ac_abs_builddir;;
11723   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
11724   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
11725   esac;;
11726 esac
11727
11728
11729   case $INSTALL in
11730   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
11731   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
11732   esac
11733
11734   if test x"$ac_file" != x-; then
11735     { echo "$as_me:$LINENO: creating $ac_file" >&5
11736 echo "$as_me: creating $ac_file" >&6;}
11737     rm -f "$ac_file"
11738   fi
11739   # Let's still pretend it is `configure' which instantiates (i.e., don't
11740   # use $as_me), people would be surprised to read:
11741   #    /* config.h.  Generated by config.status.  */
11742   if test x"$ac_file" = x-; then
11743     configure_input=
11744   else
11745     configure_input="$ac_file.  "
11746   fi
11747   configure_input=$configure_input"Generated from `echo $ac_file_in |
11748                                      sed 's,.*/,,'` by configure."
11749
11750   # First look for the input files in the build tree, otherwise in the
11751   # src tree.
11752   ac_file_inputs=`IFS=:
11753     for f in $ac_file_in; do
11754       case $f in
11755       -) echo $tmp/stdin ;;
11756       [\\/$]*)
11757          # Absolute (can't be DOS-style, as IFS=:)
11758          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11759 echo "$as_me: error: cannot find input file: $f" >&2;}
11760    { (exit 1); exit 1; }; }
11761          echo "$f";;
11762       *) # Relative
11763          if test -f "$f"; then
11764            # Build tree
11765            echo "$f"
11766          elif test -f "$srcdir/$f"; then
11767            # Source tree
11768            echo "$srcdir/$f"
11769          else
11770            # /dev/null tree
11771            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11772 echo "$as_me: error: cannot find input file: $f" >&2;}
11773    { (exit 1); exit 1; }; }
11774          fi;;
11775       esac
11776     done` || { (exit 1); exit 1; }
11777 _ACEOF
11778 cat >>$CONFIG_STATUS <<_ACEOF
11779   sed "$ac_vpsub
11780 $extrasub
11781 _ACEOF
11782 cat >>$CONFIG_STATUS <<\_ACEOF
11783 :t
11784 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
11785 s,@configure_input@,$configure_input,;t t
11786 s,@srcdir@,$ac_srcdir,;t t
11787 s,@abs_srcdir@,$ac_abs_srcdir,;t t
11788 s,@top_srcdir@,$ac_top_srcdir,;t t
11789 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
11790 s,@builddir@,$ac_builddir,;t t
11791 s,@abs_builddir@,$ac_abs_builddir,;t t
11792 s,@top_builddir@,$ac_top_builddir,;t t
11793 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
11794 s,@INSTALL@,$ac_INSTALL,;t t
11795 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
11796   rm -f $tmp/stdin
11797   if test x"$ac_file" != x-; then
11798     mv $tmp/out $ac_file
11799   else
11800     cat $tmp/out
11801     rm -f $tmp/out
11802   fi
11803
11804 done
11805 _ACEOF
11806 cat >>$CONFIG_STATUS <<\_ACEOF
11807
11808 #
11809 # CONFIG_HEADER section.
11810 #
11811
11812 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
11813 # NAME is the cpp macro being defined and VALUE is the value it is being given.
11814 #
11815 # ac_d sets the value in "#define NAME VALUE" lines.
11816 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
11817 ac_dB='[         ].*$,\1#\2'
11818 ac_dC=' '
11819 ac_dD=',;t'
11820 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
11821 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
11822 ac_uB='$,\1#\2define\3'
11823 ac_uC=' '
11824 ac_uD=',;t'
11825
11826 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
11827   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
11828   case $ac_file in
11829   - | *:- | *:-:* ) # input from stdin
11830         cat >$tmp/stdin
11831         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11832         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11833   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11834         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11835   * )   ac_file_in=$ac_file.in ;;
11836   esac
11837
11838   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
11839 echo "$as_me: creating $ac_file" >&6;}
11840
11841   # First look for the input files in the build tree, otherwise in the
11842   # src tree.
11843   ac_file_inputs=`IFS=:
11844     for f in $ac_file_in; do
11845       case $f in
11846       -) echo $tmp/stdin ;;
11847       [\\/$]*)
11848          # Absolute (can't be DOS-style, as IFS=:)
11849          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11850 echo "$as_me: error: cannot find input file: $f" >&2;}
11851    { (exit 1); exit 1; }; }
11852          # Do quote $f, to prevent DOS paths from being IFS'd.
11853          echo "$f";;
11854       *) # Relative
11855          if test -f "$f"; then
11856            # Build tree
11857            echo "$f"
11858          elif test -f "$srcdir/$f"; then
11859            # Source tree
11860            echo "$srcdir/$f"
11861          else
11862            # /dev/null tree
11863            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11864 echo "$as_me: error: cannot find input file: $f" >&2;}
11865    { (exit 1); exit 1; }; }
11866          fi;;
11867       esac
11868     done` || { (exit 1); exit 1; }
11869   # Remove the trailing spaces.
11870   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
11871
11872 _ACEOF
11873
11874 # Transform confdefs.h into two sed scripts, `conftest.defines' and
11875 # `conftest.undefs', that substitutes the proper values into
11876 # config.h.in to produce config.h.  The first handles `#define'
11877 # templates, and the second `#undef' templates.
11878 # And first: Protect against being on the right side of a sed subst in
11879 # config.status.  Protect against being in an unquoted here document
11880 # in config.status.
11881 rm -f conftest.defines conftest.undefs
11882 # Using a here document instead of a string reduces the quoting nightmare.
11883 # Putting comments in sed scripts is not portable.
11884 #
11885 # `end' is used to avoid that the second main sed command (meant for
11886 # 0-ary CPP macros) applies to n-ary macro definitions.
11887 # See the Autoconf documentation for `clear'.
11888 cat >confdef2sed.sed <<\_ACEOF
11889 s/[\\&,]/\\&/g
11890 s,[\\$`],\\&,g
11891 t clear
11892 : clear
11893 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
11894 t end
11895 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
11896 : end
11897 _ACEOF
11898 # If some macros were called several times there might be several times
11899 # the same #defines, which is useless.  Nevertheless, we may not want to
11900 # sort them, since we want the *last* AC-DEFINE to be honored.
11901 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
11902 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
11903 rm -f confdef2sed.sed
11904
11905 # This sed command replaces #undef with comments.  This is necessary, for
11906 # example, in the case of _POSIX_SOURCE, which is predefined and required
11907 # on some systems where configure will not decide to define it.
11908 cat >>conftest.undefs <<\_ACEOF
11909 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
11910 _ACEOF
11911
11912 # Break up conftest.defines because some shells have a limit on the size
11913 # of here documents, and old seds have small limits too (100 cmds).
11914 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
11915 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
11916 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
11917 echo '  :' >>$CONFIG_STATUS
11918 rm -f conftest.tail
11919 while grep . conftest.defines >/dev/null
11920 do
11921   # Write a limited-size here document to $tmp/defines.sed.
11922   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
11923   # Speed up: don't consider the non `#define' lines.
11924   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
11925   # Work around the forget-to-reset-the-flag bug.
11926   echo 't clr' >>$CONFIG_STATUS
11927   echo ': clr' >>$CONFIG_STATUS
11928   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
11929   echo 'CEOF
11930   sed -f $tmp/defines.sed $tmp/in >$tmp/out
11931   rm -f $tmp/in
11932   mv $tmp/out $tmp/in
11933 ' >>$CONFIG_STATUS
11934   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
11935   rm -f conftest.defines
11936   mv conftest.tail conftest.defines
11937 done
11938 rm -f conftest.defines
11939 echo '  fi # grep' >>$CONFIG_STATUS
11940 echo >>$CONFIG_STATUS
11941
11942 # Break up conftest.undefs because some shells have a limit on the size
11943 # of here documents, and old seds have small limits too (100 cmds).
11944 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
11945 rm -f conftest.tail
11946 while grep . conftest.undefs >/dev/null
11947 do
11948   # Write a limited-size here document to $tmp/undefs.sed.
11949   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
11950   # Speed up: don't consider the non `#undef'
11951   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
11952   # Work around the forget-to-reset-the-flag bug.
11953   echo 't clr' >>$CONFIG_STATUS
11954   echo ': clr' >>$CONFIG_STATUS
11955   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
11956   echo 'CEOF
11957   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
11958   rm -f $tmp/in
11959   mv $tmp/out $tmp/in
11960 ' >>$CONFIG_STATUS
11961   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
11962   rm -f conftest.undefs
11963   mv conftest.tail conftest.undefs
11964 done
11965 rm -f conftest.undefs
11966
11967 cat >>$CONFIG_STATUS <<\_ACEOF
11968   # Let's still pretend it is `configure' which instantiates (i.e., don't
11969   # use $as_me), people would be surprised to read:
11970   #    /* config.h.  Generated by config.status.  */
11971   if test x"$ac_file" = x-; then
11972     echo "/* Generated by configure.  */" >$tmp/config.h
11973   else
11974     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
11975   fi
11976   cat $tmp/in >>$tmp/config.h
11977   rm -f $tmp/in
11978   if test x"$ac_file" != x-; then
11979     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
11980       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
11981 echo "$as_me: $ac_file is unchanged" >&6;}
11982     else
11983       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
11984 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11985          X"$ac_file" : 'X\(//\)[^/]' \| \
11986          X"$ac_file" : 'X\(//\)$' \| \
11987          X"$ac_file" : 'X\(/\)' \| \
11988          .     : '\(.\)' 2>/dev/null ||
11989 echo X"$ac_file" |
11990     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11991           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11992           /^X\(\/\/\)$/{ s//\1/; q; }
11993           /^X\(\/\).*/{ s//\1/; q; }
11994           s/.*/./; q'`
11995       { if $as_mkdir_p; then
11996     mkdir -p "$ac_dir"
11997   else
11998     as_dir="$ac_dir"
11999     as_dirs=
12000     while test ! -d "$as_dir"; do
12001       as_dirs="$as_dir $as_dirs"
12002       as_dir=`(dirname "$as_dir") 2>/dev/null ||
12003 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12004          X"$as_dir" : 'X\(//\)[^/]' \| \
12005          X"$as_dir" : 'X\(//\)$' \| \
12006          X"$as_dir" : 'X\(/\)' \| \
12007          .     : '\(.\)' 2>/dev/null ||
12008 echo X"$as_dir" |
12009     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12010           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12011           /^X\(\/\/\)$/{ s//\1/; q; }
12012           /^X\(\/\).*/{ s//\1/; q; }
12013           s/.*/./; q'`
12014     done
12015     test ! -n "$as_dirs" || mkdir $as_dirs
12016   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12017 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
12018    { (exit 1); exit 1; }; }; }
12019
12020       rm -f $ac_file
12021       mv $tmp/config.h $ac_file
12022     fi
12023   else
12024     cat $tmp/config.h
12025     rm -f $tmp/config.h
12026   fi
12027 # Compute $ac_file's index in $config_headers.
12028 _am_stamp_count=1
12029 for _am_header in $config_headers :; do
12030   case $_am_header in
12031     $ac_file | $ac_file:* )
12032       break ;;
12033     * )
12034       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
12035   esac
12036 done
12037 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
12038 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12039          X$ac_file : 'X\(//\)[^/]' \| \
12040          X$ac_file : 'X\(//\)$' \| \
12041          X$ac_file : 'X\(/\)' \| \
12042          .     : '\(.\)' 2>/dev/null ||
12043 echo X$ac_file |
12044     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12045           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12046           /^X\(\/\/\)$/{ s//\1/; q; }
12047           /^X\(\/\).*/{ s//\1/; q; }
12048           s/.*/./; q'`/stamp-h$_am_stamp_count
12049 done
12050 _ACEOF
12051 cat >>$CONFIG_STATUS <<\_ACEOF
12052
12053 #
12054 # CONFIG_COMMANDS section.
12055 #
12056 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
12057   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
12058   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
12059   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
12060 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12061          X"$ac_dest" : 'X\(//\)[^/]' \| \
12062          X"$ac_dest" : 'X\(//\)$' \| \
12063          X"$ac_dest" : 'X\(/\)' \| \
12064          .     : '\(.\)' 2>/dev/null ||
12065 echo X"$ac_dest" |
12066     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12067           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12068           /^X\(\/\/\)$/{ s//\1/; q; }
12069           /^X\(\/\).*/{ s//\1/; q; }
12070           s/.*/./; q'`
12071   { if $as_mkdir_p; then
12072     mkdir -p "$ac_dir"
12073   else
12074     as_dir="$ac_dir"
12075     as_dirs=
12076     while test ! -d "$as_dir"; do
12077       as_dirs="$as_dir $as_dirs"
12078       as_dir=`(dirname "$as_dir") 2>/dev/null ||
12079 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12080          X"$as_dir" : 'X\(//\)[^/]' \| \
12081          X"$as_dir" : 'X\(//\)$' \| \
12082          X"$as_dir" : 'X\(/\)' \| \
12083          .     : '\(.\)' 2>/dev/null ||
12084 echo X"$as_dir" |
12085     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12086           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12087           /^X\(\/\/\)$/{ s//\1/; q; }
12088           /^X\(\/\).*/{ s//\1/; q; }
12089           s/.*/./; q'`
12090     done
12091     test ! -n "$as_dirs" || mkdir $as_dirs
12092   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12093 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
12094    { (exit 1); exit 1; }; }; }
12095
12096   ac_builddir=.
12097
12098 if test "$ac_dir" != .; then
12099   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
12100   # A "../" for each directory in $ac_dir_suffix.
12101   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
12102 else
12103   ac_dir_suffix= ac_top_builddir=
12104 fi
12105
12106 case $srcdir in
12107   .)  # No --srcdir option.  We are building in place.
12108     ac_srcdir=.
12109     if test -z "$ac_top_builddir"; then
12110        ac_top_srcdir=.
12111     else
12112        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
12113     fi ;;
12114   [\\/]* | ?:[\\/]* )  # Absolute path.
12115     ac_srcdir=$srcdir$ac_dir_suffix;
12116     ac_top_srcdir=$srcdir ;;
12117   *) # Relative path.
12118     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
12119     ac_top_srcdir=$ac_top_builddir$srcdir ;;
12120 esac
12121
12122 # Do not use `cd foo && pwd` to compute absolute paths, because
12123 # the directories may not exist.
12124 case `pwd` in
12125 .) ac_abs_builddir="$ac_dir";;
12126 *)
12127   case "$ac_dir" in
12128   .) ac_abs_builddir=`pwd`;;
12129   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
12130   *) ac_abs_builddir=`pwd`/"$ac_dir";;
12131   esac;;
12132 esac
12133 case $ac_abs_builddir in
12134 .) ac_abs_top_builddir=${ac_top_builddir}.;;
12135 *)
12136   case ${ac_top_builddir}. in
12137   .) ac_abs_top_builddir=$ac_abs_builddir;;
12138   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
12139   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
12140   esac;;
12141 esac
12142 case $ac_abs_builddir in
12143 .) ac_abs_srcdir=$ac_srcdir;;
12144 *)
12145   case $ac_srcdir in
12146   .) ac_abs_srcdir=$ac_abs_builddir;;
12147   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
12148   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
12149   esac;;
12150 esac
12151 case $ac_abs_builddir in
12152 .) ac_abs_top_srcdir=$ac_top_srcdir;;
12153 *)
12154   case $ac_top_srcdir in
12155   .) ac_abs_top_srcdir=$ac_abs_builddir;;
12156   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
12157   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
12158   esac;;
12159 esac
12160
12161
12162   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
12163 echo "$as_me: executing $ac_dest commands" >&6;}
12164   case $ac_dest in
12165     depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
12166   # Strip MF so we end up with the name of the file.
12167   mf=`echo "$mf" | sed -e 's/:.*$//'`
12168   # Check whether this is an Automake generated Makefile or not.
12169   # We used to match only the files named `Makefile.in', but
12170   # some people rename them; so instead we look at the file content.
12171   # Grep'ing the first line is not enough: some people post-process
12172   # each Makefile.in and add a new line on top of each file to say so.
12173   # So let's grep whole file.
12174   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
12175     dirpart=`(dirname "$mf") 2>/dev/null ||
12176 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12177          X"$mf" : 'X\(//\)[^/]' \| \
12178          X"$mf" : 'X\(//\)$' \| \
12179          X"$mf" : 'X\(/\)' \| \
12180          .     : '\(.\)' 2>/dev/null ||
12181 echo X"$mf" |
12182     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12183           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12184           /^X\(\/\/\)$/{ s//\1/; q; }
12185           /^X\(\/\).*/{ s//\1/; q; }
12186           s/.*/./; q'`
12187   else
12188     continue
12189   fi
12190   # Extract the definition of DEPDIR, am__include, and am__quote
12191   # from the Makefile without running `make'.
12192   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
12193   test -z "$DEPDIR" && continue
12194   am__include=`sed -n 's/^am__include = //p' < "$mf"`
12195   test -z "am__include" && continue
12196   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
12197   # When using ansi2knr, U may be empty or an underscore; expand it
12198   U=`sed -n 's/^U = //p' < "$mf"`
12199   # Find all dependency output files, they are included files with
12200   # $(DEPDIR) in their names.  We invoke sed twice because it is the
12201   # simplest approach to changing $(DEPDIR) to its actual value in the
12202   # expansion.
12203   for file in `sed -n "
12204     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
12205        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
12206     # Make sure the directory exists.
12207     test -f "$dirpart/$file" && continue
12208     fdir=`(dirname "$file") 2>/dev/null ||
12209 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12210          X"$file" : 'X\(//\)[^/]' \| \
12211          X"$file" : 'X\(//\)$' \| \
12212          X"$file" : 'X\(/\)' \| \
12213          .     : '\(.\)' 2>/dev/null ||
12214 echo X"$file" |
12215     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12216           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12217           /^X\(\/\/\)$/{ s//\1/; q; }
12218           /^X\(\/\).*/{ s//\1/; q; }
12219           s/.*/./; q'`
12220     { if $as_mkdir_p; then
12221     mkdir -p $dirpart/$fdir
12222   else
12223     as_dir=$dirpart/$fdir
12224     as_dirs=
12225     while test ! -d "$as_dir"; do
12226       as_dirs="$as_dir $as_dirs"
12227       as_dir=`(dirname "$as_dir") 2>/dev/null ||
12228 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12229          X"$as_dir" : 'X\(//\)[^/]' \| \
12230          X"$as_dir" : 'X\(//\)$' \| \
12231          X"$as_dir" : 'X\(/\)' \| \
12232          .     : '\(.\)' 2>/dev/null ||
12233 echo X"$as_dir" |
12234     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12235           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12236           /^X\(\/\/\)$/{ s//\1/; q; }
12237           /^X\(\/\).*/{ s//\1/; q; }
12238           s/.*/./; q'`
12239     done
12240     test ! -n "$as_dirs" || mkdir $as_dirs
12241   fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
12242 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
12243    { (exit 1); exit 1; }; }; }
12244
12245     # echo "creating $dirpart/$file"
12246     echo '# dummy' > "$dirpart/$file"
12247   done
12248 done
12249  ;;
12250     default )
12251 case "x$CONFIG_FILES" in
12252 *) sed -e '/POTFILES =/r po/POTFILES' po/Makefile.in > po/Makefile ;;
12253 esac
12254  ;;
12255   esac
12256 done
12257 _ACEOF
12258
12259 cat >>$CONFIG_STATUS <<\_ACEOF
12260
12261 { (exit 0); exit 0; }
12262 _ACEOF
12263 chmod +x $CONFIG_STATUS
12264 ac_clean_files=$ac_clean_files_save
12265
12266
12267 # configure is writing to config.log, and then calls config.status.
12268 # config.status does its own redirection, appending to config.log.
12269 # Unfortunately, on DOS this fails, as config.log is still kept open
12270 # by configure, so config.status won't be able to write to it; its
12271 # output is simply discarded.  So we exec the FD to /dev/null,
12272 # effectively closing config.log, so it can be properly (re)opened and
12273 # appended to by config.status.  When coming back to configure, we
12274 # need to make the FD available again.
12275 if test "$no_create" != yes; then
12276   ac_cs_success=:
12277   ac_config_status_args=
12278   test "$silent" = yes &&
12279     ac_config_status_args="$ac_config_status_args --quiet"
12280   exec 5>/dev/null
12281   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12282   exec 5>>config.log
12283   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12284   # would make configure fail if this is the last instruction.
12285   $ac_cs_success || { (exit 1); exit 1; }
12286 fi
12287