]> Git Repo - binutils.git/blob - gas/configure
* configure.in: Set em=linux for ppc-*-linux-gnu* target.
[binutils.git] / gas / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.57.
4 #
5 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
6 # Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization.  ##
11 ## --------------------- ##
12
13 # Be Bourne compatible
14 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15   emulate sh
16   NULLCMD=:
17   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18   # is contrary to our usage.  Disable this feature.
19   alias -g '${1+"$@"}'='"$@"'
20 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21   set -o posix
22 fi
23
24 # Support unset when possible.
25 if (FOO=FOO; unset FOO) >/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 -n "`(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   as_mkdir_p=false
222 fi
223
224 as_executable_p="test -f"
225
226 # Sed expression to map a string onto a valid CPP name.
227 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
228
229 # Sed expression to map a string onto a valid variable name.
230 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
231
232
233 # IFS
234 # We need space, tab and new line, in precisely that order.
235 as_nl='
236 '
237 IFS="   $as_nl"
238
239 # CDPATH.
240 $as_unset CDPATH
241
242
243 # Name of the host.
244 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
245 # so uname gets run too.
246 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
247
248 exec 6>&1
249
250 #
251 # Initializations.
252 #
253 ac_default_prefix=/usr/local
254 ac_config_libobj_dir=.
255 cross_compiling=no
256 subdirs=
257 MFLAGS=
258 MAKEFLAGS=
259 SHELL=${CONFIG_SHELL-/bin/sh}
260
261 # Maximum number of lines to put in a shell here document.
262 # This variable seems obsolete.  It should probably be removed, and
263 # only ac_max_sed_lines should be used.
264 : ${ac_max_here_lines=38}
265
266 # Identity of this package.
267 PACKAGE_NAME=
268 PACKAGE_TARNAME=
269 PACKAGE_VERSION=
270 PACKAGE_STRING=
271 PACKAGE_BUGREPORT=
272
273 ac_unique_file="as.h"
274 # Factoring default headers for most tests.
275 ac_includes_default="\
276 #include <stdio.h>
277 #if HAVE_SYS_TYPES_H
278 # include <sys/types.h>
279 #endif
280 #if HAVE_SYS_STAT_H
281 # include <sys/stat.h>
282 #endif
283 #if STDC_HEADERS
284 # include <stdlib.h>
285 # include <stddef.h>
286 #else
287 # if HAVE_STDLIB_H
288 #  include <stdlib.h>
289 # endif
290 #endif
291 #if HAVE_STRING_H
292 # if !STDC_HEADERS && HAVE_MEMORY_H
293 #  include <memory.h>
294 # endif
295 # include <string.h>
296 #endif
297 #if HAVE_STRINGS_H
298 # include <strings.h>
299 #endif
300 #if HAVE_INTTYPES_H
301 # include <inttypes.h>
302 #else
303 # if HAVE_STDINT_H
304 #  include <stdint.h>
305 # endif
306 #endif
307 #if HAVE_UNISTD_H
308 # include <unistd.h>
309 #endif"
310
311 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 AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM AWK SET_MAKE am__leading_dot 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 GDBINIT cgen_cpu_prefix extra_objects target_cpu_type obj_format te_file install_tooldir atof BFDLIB OPCODES_LIB BFDVER_H ALL_OBJ_DEPS 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 LIBM LIBOBJS LTLIBOBJS'
312 ac_subst_files=''
313
314 # Initialize some variables set by options.
315 ac_init_help=
316 ac_init_version=false
317 # The variables have the same names as the options, with
318 # dashes changed to underlines.
319 cache_file=/dev/null
320 exec_prefix=NONE
321 no_create=
322 no_recursion=
323 prefix=NONE
324 program_prefix=NONE
325 program_suffix=NONE
326 program_transform_name=s,x,x,
327 silent=
328 site=
329 srcdir=
330 verbose=
331 x_includes=NONE
332 x_libraries=NONE
333
334 # Installation directory options.
335 # These are left unexpanded so users can "make install exec_prefix=/foo"
336 # and all the variables that are supposed to be based on exec_prefix
337 # by default will actually change.
338 # Use braces instead of parens because sh, perl, etc. also accept them.
339 bindir='${exec_prefix}/bin'
340 sbindir='${exec_prefix}/sbin'
341 libexecdir='${exec_prefix}/libexec'
342 datadir='${prefix}/share'
343 sysconfdir='${prefix}/etc'
344 sharedstatedir='${prefix}/com'
345 localstatedir='${prefix}/var'
346 libdir='${exec_prefix}/lib'
347 includedir='${prefix}/include'
348 oldincludedir='/usr/include'
349 infodir='${prefix}/info'
350 mandir='${prefix}/man'
351
352 ac_prev=
353 for ac_option
354 do
355   # If the previous option needs an argument, assign it.
356   if test -n "$ac_prev"; then
357     eval "$ac_prev=\$ac_option"
358     ac_prev=
359     continue
360   fi
361
362   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
363
364   # Accept the important Cygnus configure options, so we can diagnose typos.
365
366   case $ac_option in
367
368   -bindir | --bindir | --bindi | --bind | --bin | --bi)
369     ac_prev=bindir ;;
370   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
371     bindir=$ac_optarg ;;
372
373   -build | --build | --buil | --bui | --bu)
374     ac_prev=build_alias ;;
375   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
376     build_alias=$ac_optarg ;;
377
378   -cache-file | --cache-file | --cache-fil | --cache-fi \
379   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
380     ac_prev=cache_file ;;
381   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
382   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
383     cache_file=$ac_optarg ;;
384
385   --config-cache | -C)
386     cache_file=config.cache ;;
387
388   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
389     ac_prev=datadir ;;
390   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
391   | --da=*)
392     datadir=$ac_optarg ;;
393
394   -disable-* | --disable-*)
395     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
396     # Reject names that are not valid shell variable names.
397     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
398       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
399    { (exit 1); exit 1; }; }
400     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
401     eval "enable_$ac_feature=no" ;;
402
403   -enable-* | --enable-*)
404     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
405     # Reject names that are not valid shell variable names.
406     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
407       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
408    { (exit 1); exit 1; }; }
409     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
410     case $ac_option in
411       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
412       *) ac_optarg=yes ;;
413     esac
414     eval "enable_$ac_feature='$ac_optarg'" ;;
415
416   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
417   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
418   | --exec | --exe | --ex)
419     ac_prev=exec_prefix ;;
420   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
421   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
422   | --exec=* | --exe=* | --ex=*)
423     exec_prefix=$ac_optarg ;;
424
425   -gas | --gas | --ga | --g)
426     # Obsolete; use --with-gas.
427     with_gas=yes ;;
428
429   -help | --help | --hel | --he | -h)
430     ac_init_help=long ;;
431   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
432     ac_init_help=recursive ;;
433   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
434     ac_init_help=short ;;
435
436   -host | --host | --hos | --ho)
437     ac_prev=host_alias ;;
438   -host=* | --host=* | --hos=* | --ho=*)
439     host_alias=$ac_optarg ;;
440
441   -includedir | --includedir | --includedi | --included | --include \
442   | --includ | --inclu | --incl | --inc)
443     ac_prev=includedir ;;
444   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
445   | --includ=* | --inclu=* | --incl=* | --inc=*)
446     includedir=$ac_optarg ;;
447
448   -infodir | --infodir | --infodi | --infod | --info | --inf)
449     ac_prev=infodir ;;
450   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
451     infodir=$ac_optarg ;;
452
453   -libdir | --libdir | --libdi | --libd)
454     ac_prev=libdir ;;
455   -libdir=* | --libdir=* | --libdi=* | --libd=*)
456     libdir=$ac_optarg ;;
457
458   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
459   | --libexe | --libex | --libe)
460     ac_prev=libexecdir ;;
461   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
462   | --libexe=* | --libex=* | --libe=*)
463     libexecdir=$ac_optarg ;;
464
465   -localstatedir | --localstatedir | --localstatedi | --localstated \
466   | --localstate | --localstat | --localsta | --localst \
467   | --locals | --local | --loca | --loc | --lo)
468     ac_prev=localstatedir ;;
469   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
470   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
471   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
472     localstatedir=$ac_optarg ;;
473
474   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
475     ac_prev=mandir ;;
476   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
477     mandir=$ac_optarg ;;
478
479   -nfp | --nfp | --nf)
480     # Obsolete; use --without-fp.
481     with_fp=no ;;
482
483   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
484   | --no-cr | --no-c | -n)
485     no_create=yes ;;
486
487   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
488   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
489     no_recursion=yes ;;
490
491   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
492   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
493   | --oldin | --oldi | --old | --ol | --o)
494     ac_prev=oldincludedir ;;
495   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
496   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
497   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
498     oldincludedir=$ac_optarg ;;
499
500   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
501     ac_prev=prefix ;;
502   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
503     prefix=$ac_optarg ;;
504
505   -program-prefix | --program-prefix | --program-prefi | --program-pref \
506   | --program-pre | --program-pr | --program-p)
507     ac_prev=program_prefix ;;
508   -program-prefix=* | --program-prefix=* | --program-prefi=* \
509   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
510     program_prefix=$ac_optarg ;;
511
512   -program-suffix | --program-suffix | --program-suffi | --program-suff \
513   | --program-suf | --program-su | --program-s)
514     ac_prev=program_suffix ;;
515   -program-suffix=* | --program-suffix=* | --program-suffi=* \
516   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
517     program_suffix=$ac_optarg ;;
518
519   -program-transform-name | --program-transform-name \
520   | --program-transform-nam | --program-transform-na \
521   | --program-transform-n | --program-transform- \
522   | --program-transform | --program-transfor \
523   | --program-transfo | --program-transf \
524   | --program-trans | --program-tran \
525   | --progr-tra | --program-tr | --program-t)
526     ac_prev=program_transform_name ;;
527   -program-transform-name=* | --program-transform-name=* \
528   | --program-transform-nam=* | --program-transform-na=* \
529   | --program-transform-n=* | --program-transform-=* \
530   | --program-transform=* | --program-transfor=* \
531   | --program-transfo=* | --program-transf=* \
532   | --program-trans=* | --program-tran=* \
533   | --progr-tra=* | --program-tr=* | --program-t=*)
534     program_transform_name=$ac_optarg ;;
535
536   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
537   | -silent | --silent | --silen | --sile | --sil)
538     silent=yes ;;
539
540   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
541     ac_prev=sbindir ;;
542   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
543   | --sbi=* | --sb=*)
544     sbindir=$ac_optarg ;;
545
546   -sharedstatedir | --sharedstatedir | --sharedstatedi \
547   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
548   | --sharedst | --shareds | --shared | --share | --shar \
549   | --sha | --sh)
550     ac_prev=sharedstatedir ;;
551   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
552   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
553   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
554   | --sha=* | --sh=*)
555     sharedstatedir=$ac_optarg ;;
556
557   -site | --site | --sit)
558     ac_prev=site ;;
559   -site=* | --site=* | --sit=*)
560     site=$ac_optarg ;;
561
562   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
563     ac_prev=srcdir ;;
564   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
565     srcdir=$ac_optarg ;;
566
567   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
568   | --syscon | --sysco | --sysc | --sys | --sy)
569     ac_prev=sysconfdir ;;
570   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
571   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
572     sysconfdir=$ac_optarg ;;
573
574   -target | --target | --targe | --targ | --tar | --ta | --t)
575     ac_prev=target_alias ;;
576   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
577     target_alias=$ac_optarg ;;
578
579   -v | -verbose | --verbose | --verbos | --verbo | --verb)
580     verbose=yes ;;
581
582   -version | --version | --versio | --versi | --vers | -V)
583     ac_init_version=: ;;
584
585   -with-* | --with-*)
586     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
587     # Reject names that are not valid shell variable names.
588     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
589       { echo "$as_me: error: invalid package name: $ac_package" >&2
590    { (exit 1); exit 1; }; }
591     ac_package=`echo $ac_package| sed 's/-/_/g'`
592     case $ac_option in
593       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
594       *) ac_optarg=yes ;;
595     esac
596     eval "with_$ac_package='$ac_optarg'" ;;
597
598   -without-* | --without-*)
599     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
600     # Reject names that are not valid shell variable names.
601     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
602       { echo "$as_me: error: invalid package name: $ac_package" >&2
603    { (exit 1); exit 1; }; }
604     ac_package=`echo $ac_package | sed 's/-/_/g'`
605     eval "with_$ac_package=no" ;;
606
607   --x)
608     # Obsolete; use --with-x.
609     with_x=yes ;;
610
611   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
612   | --x-incl | --x-inc | --x-in | --x-i)
613     ac_prev=x_includes ;;
614   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
615   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
616     x_includes=$ac_optarg ;;
617
618   -x-libraries | --x-libraries | --x-librarie | --x-librari \
619   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
620     ac_prev=x_libraries ;;
621   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
622   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
623     x_libraries=$ac_optarg ;;
624
625   -*) { echo "$as_me: error: unrecognized option: $ac_option
626 Try \`$0 --help' for more information." >&2
627    { (exit 1); exit 1; }; }
628     ;;
629
630   *=*)
631     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
632     # Reject names that are not valid shell variable names.
633     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
634       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
635    { (exit 1); exit 1; }; }
636     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
637     eval "$ac_envvar='$ac_optarg'"
638     export $ac_envvar ;;
639
640   *)
641     # FIXME: should be removed in autoconf 3.0.
642     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
643     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
644       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
645     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
646     ;;
647
648   esac
649 done
650
651 if test -n "$ac_prev"; then
652   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
653   { echo "$as_me: error: missing argument to $ac_option" >&2
654    { (exit 1); exit 1; }; }
655 fi
656
657 # Be sure to have absolute paths.
658 for ac_var in exec_prefix prefix
659 do
660   eval ac_val=$`echo $ac_var`
661   case $ac_val in
662     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
663     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
664    { (exit 1); exit 1; }; };;
665   esac
666 done
667
668 # Be sure to have absolute paths.
669 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
670               localstatedir libdir includedir oldincludedir infodir mandir
671 do
672   eval ac_val=$`echo $ac_var`
673   case $ac_val in
674     [\\/$]* | ?:[\\/]* ) ;;
675     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
676    { (exit 1); exit 1; }; };;
677   esac
678 done
679
680 # There might be people who depend on the old broken behavior: `$host'
681 # used to hold the argument of --host etc.
682 # FIXME: To remove some day.
683 build=$build_alias
684 host=$host_alias
685 target=$target_alias
686
687 # FIXME: To remove some day.
688 if test "x$host_alias" != x; then
689   if test "x$build_alias" = x; then
690     cross_compiling=maybe
691     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
692     If a cross compiler is detected then cross compile mode will be used." >&2
693   elif test "x$build_alias" != "x$host_alias"; then
694     cross_compiling=yes
695   fi
696 fi
697
698 ac_tool_prefix=
699 test -n "$host_alias" && ac_tool_prefix=$host_alias-
700
701 test "$silent" = yes && exec 6>/dev/null
702
703
704 # Find the source files, if location was not specified.
705 if test -z "$srcdir"; then
706   ac_srcdir_defaulted=yes
707   # Try the directory containing this script, then its parent.
708   ac_confdir=`(dirname "$0") 2>/dev/null ||
709 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
710          X"$0" : 'X\(//\)[^/]' \| \
711          X"$0" : 'X\(//\)$' \| \
712          X"$0" : 'X\(/\)' \| \
713          .     : '\(.\)' 2>/dev/null ||
714 echo X"$0" |
715     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
716           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
717           /^X\(\/\/\)$/{ s//\1/; q; }
718           /^X\(\/\).*/{ s//\1/; q; }
719           s/.*/./; q'`
720   srcdir=$ac_confdir
721   if test ! -r $srcdir/$ac_unique_file; then
722     srcdir=..
723   fi
724 else
725   ac_srcdir_defaulted=no
726 fi
727 if test ! -r $srcdir/$ac_unique_file; then
728   if test "$ac_srcdir_defaulted" = yes; then
729     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
730    { (exit 1); exit 1; }; }
731   else
732     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
733    { (exit 1); exit 1; }; }
734   fi
735 fi
736 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
737   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
738    { (exit 1); exit 1; }; }
739 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
740 ac_env_build_alias_set=${build_alias+set}
741 ac_env_build_alias_value=$build_alias
742 ac_cv_env_build_alias_set=${build_alias+set}
743 ac_cv_env_build_alias_value=$build_alias
744 ac_env_host_alias_set=${host_alias+set}
745 ac_env_host_alias_value=$host_alias
746 ac_cv_env_host_alias_set=${host_alias+set}
747 ac_cv_env_host_alias_value=$host_alias
748 ac_env_target_alias_set=${target_alias+set}
749 ac_env_target_alias_value=$target_alias
750 ac_cv_env_target_alias_set=${target_alias+set}
751 ac_cv_env_target_alias_value=$target_alias
752 ac_env_CC_set=${CC+set}
753 ac_env_CC_value=$CC
754 ac_cv_env_CC_set=${CC+set}
755 ac_cv_env_CC_value=$CC
756 ac_env_CFLAGS_set=${CFLAGS+set}
757 ac_env_CFLAGS_value=$CFLAGS
758 ac_cv_env_CFLAGS_set=${CFLAGS+set}
759 ac_cv_env_CFLAGS_value=$CFLAGS
760 ac_env_LDFLAGS_set=${LDFLAGS+set}
761 ac_env_LDFLAGS_value=$LDFLAGS
762 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
763 ac_cv_env_LDFLAGS_value=$LDFLAGS
764 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
765 ac_env_CPPFLAGS_value=$CPPFLAGS
766 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
767 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
768 ac_env_CPP_set=${CPP+set}
769 ac_env_CPP_value=$CPP
770 ac_cv_env_CPP_set=${CPP+set}
771 ac_cv_env_CPP_value=$CPP
772
773 #
774 # Report the --help message.
775 #
776 if test "$ac_init_help" = "long"; then
777   # Omit some internal or obsolete options to make the list less imposing.
778   # This message is too long to be a string in the A/UX 3.1 sh.
779   cat <<_ACEOF
780 \`configure' configures this package to adapt to many kinds of systems.
781
782 Usage: $0 [OPTION]... [VAR=VALUE]...
783
784 To assign environment variables (e.g., CC, CFLAGS...), specify them as
785 VAR=VALUE.  See below for descriptions of some of the useful variables.
786
787 Defaults for the options are specified in brackets.
788
789 Configuration:
790   -h, --help              display this help and exit
791       --help=short        display options specific to this package
792       --help=recursive    display the short help of all the included packages
793   -V, --version           display version information and exit
794   -q, --quiet, --silent   do not print \`checking...' messages
795       --cache-file=FILE   cache test results in FILE [disabled]
796   -C, --config-cache      alias for \`--cache-file=config.cache'
797   -n, --no-create         do not create output files
798       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
799
800 _ACEOF
801
802   cat <<_ACEOF
803 Installation directories:
804   --prefix=PREFIX         install architecture-independent files in PREFIX
805                           [$ac_default_prefix]
806   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
807                           [PREFIX]
808
809 By default, \`make install' will install all the files in
810 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
811 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
812 for instance \`--prefix=\$HOME'.
813
814 For better control, use the options below.
815
816 Fine tuning of the installation directories:
817   --bindir=DIR           user executables [EPREFIX/bin]
818   --sbindir=DIR          system admin executables [EPREFIX/sbin]
819   --libexecdir=DIR       program executables [EPREFIX/libexec]
820   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
821   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
822   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
823   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
824   --libdir=DIR           object code libraries [EPREFIX/lib]
825   --includedir=DIR       C header files [PREFIX/include]
826   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
827   --infodir=DIR          info documentation [PREFIX/info]
828   --mandir=DIR           man documentation [PREFIX/man]
829 _ACEOF
830
831   cat <<\_ACEOF
832
833 Program names:
834   --program-prefix=PREFIX            prepend PREFIX to installed program names
835   --program-suffix=SUFFIX            append SUFFIX to installed program names
836   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
837
838 System types:
839   --build=BUILD     configure for building on BUILD [guessed]
840   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
841   --target=TARGET   configure for building compilers for TARGET [HOST]
842 _ACEOF
843 fi
844
845 if test -n "$ac_init_help"; then
846
847   cat <<\_ACEOF
848
849 Optional Features:
850   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
851   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
852   --disable-dependency-tracking Speeds up one-time builds
853   --enable-dependency-tracking  Do not reject slow dependency extractors
854   --enable-shared=PKGS  build shared libraries default=yes
855   --enable-static=PKGS  build static libraries default=yes
856   --enable-fast-install=PKGS  optimize for fast installation default=yes
857   --disable-libtool-lock  avoid locking (might break parallel builds)
858   --enable-bfd-assembler  use BFD back end for writing object files
859     targets            alternative target configurations besides the primary
860   --enable-commonbfdlib   build shared BFD/opcodes/libiberty library
861   --enable-build-warnings Enable build-time compiler warnings if gcc is used
862   --disable-nls           do not use Native Language Support
863   --enable-maintainer-mode enable make rules and dependencies not useful
864                           (and sometimes confusing) to the casual installer
865
866 Optional Packages:
867   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
868   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
869   --with-gnu-ld           assume the C compiler uses GNU ld default=no
870   --with-pic              try to use only PIC/non-PIC objects default=use both
871   --with-included-gettext use the GNU gettext library included here
872
873 Some influential environment variables:
874   CC          C compiler command
875   CFLAGS      C compiler flags
876   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
877               nonstandard directory <lib dir>
878   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
879               headers in a nonstandard directory <include dir>
880   CPP         C preprocessor
881
882 Use these variables to override the choices made by `configure' or to help
883 it to find libraries and programs with nonstandard names/locations.
884
885 _ACEOF
886 fi
887
888 if test "$ac_init_help" = "recursive"; then
889   # If there are subdirs, report their specific --help.
890   ac_popdir=`pwd`
891   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
892     test -d $ac_dir || continue
893     ac_builddir=.
894
895 if test "$ac_dir" != .; then
896   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
897   # A "../" for each directory in $ac_dir_suffix.
898   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
899 else
900   ac_dir_suffix= ac_top_builddir=
901 fi
902
903 case $srcdir in
904   .)  # No --srcdir option.  We are building in place.
905     ac_srcdir=.
906     if test -z "$ac_top_builddir"; then
907        ac_top_srcdir=.
908     else
909        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
910     fi ;;
911   [\\/]* | ?:[\\/]* )  # Absolute path.
912     ac_srcdir=$srcdir$ac_dir_suffix;
913     ac_top_srcdir=$srcdir ;;
914   *) # Relative path.
915     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
916     ac_top_srcdir=$ac_top_builddir$srcdir ;;
917 esac
918 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
919 # absolute.
920 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
921 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
922 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
923 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
924
925     cd $ac_dir
926     # Check for guested configure; otherwise get Cygnus style configure.
927     if test -f $ac_srcdir/configure.gnu; then
928       echo
929       $SHELL $ac_srcdir/configure.gnu  --help=recursive
930     elif test -f $ac_srcdir/configure; then
931       echo
932       $SHELL $ac_srcdir/configure  --help=recursive
933     elif test -f $ac_srcdir/configure.ac ||
934            test -f $ac_srcdir/configure.in; then
935       echo
936       $ac_configure --help
937     else
938       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
939     fi
940     cd $ac_popdir
941   done
942 fi
943
944 test -n "$ac_init_help" && exit 0
945 if $ac_init_version; then
946   cat <<\_ACEOF
947
948 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
949 Free Software Foundation, Inc.
950 This configure script is free software; the Free Software Foundation
951 gives unlimited permission to copy, distribute and modify it.
952 _ACEOF
953   exit 0
954 fi
955 exec 5>config.log
956 cat >&5 <<_ACEOF
957 This file contains any messages produced by compilers while
958 running configure, to aid debugging if configure makes a mistake.
959
960 It was created by $as_me, which was
961 generated by GNU Autoconf 2.57.  Invocation command line was
962
963   $ $0 $@
964
965 _ACEOF
966 {
967 cat <<_ASUNAME
968 ## --------- ##
969 ## Platform. ##
970 ## --------- ##
971
972 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
973 uname -m = `(uname -m) 2>/dev/null || echo unknown`
974 uname -r = `(uname -r) 2>/dev/null || echo unknown`
975 uname -s = `(uname -s) 2>/dev/null || echo unknown`
976 uname -v = `(uname -v) 2>/dev/null || echo unknown`
977
978 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
979 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
980
981 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
982 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
983 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
984 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
985 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
986 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
987 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
988
989 _ASUNAME
990
991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
992 for as_dir in $PATH
993 do
994   IFS=$as_save_IFS
995   test -z "$as_dir" && as_dir=.
996   echo "PATH: $as_dir"
997 done
998
999 } >&5
1000
1001 cat >&5 <<_ACEOF
1002
1003
1004 ## ----------- ##
1005 ## Core tests. ##
1006 ## ----------- ##
1007
1008 _ACEOF
1009
1010
1011 # Keep a trace of the command line.
1012 # Strip out --no-create and --no-recursion so they do not pile up.
1013 # Strip out --silent because we don't want to record it for future runs.
1014 # Also quote any args containing shell meta-characters.
1015 # Make two passes to allow for proper duplicate-argument suppression.
1016 ac_configure_args=
1017 ac_configure_args0=
1018 ac_configure_args1=
1019 ac_sep=
1020 ac_must_keep_next=false
1021 for ac_pass in 1 2
1022 do
1023   for ac_arg
1024   do
1025     case $ac_arg in
1026     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1027     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1028     | -silent | --silent | --silen | --sile | --sil)
1029       continue ;;
1030     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1031       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1032     esac
1033     case $ac_pass in
1034     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1035     2)
1036       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1037       if test $ac_must_keep_next = true; then
1038         ac_must_keep_next=false # Got value, back to normal.
1039       else
1040         case $ac_arg in
1041           *=* | --config-cache | -C | -disable-* | --disable-* \
1042           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1043           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1044           | -with-* | --with-* | -without-* | --without-* | --x)
1045             case "$ac_configure_args0 " in
1046               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1047             esac
1048             ;;
1049           -* ) ac_must_keep_next=true ;;
1050         esac
1051       fi
1052       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1053       # Get rid of the leading space.
1054       ac_sep=" "
1055       ;;
1056     esac
1057   done
1058 done
1059 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1060 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1061
1062 # When interrupted or exit'd, cleanup temporary files, and complete
1063 # config.log.  We remove comments because anyway the quotes in there
1064 # would cause problems or look ugly.
1065 # WARNING: Be sure not to use single quotes in there, as some shells,
1066 # such as our DU 5.0 friend, will then `close' the trap.
1067 trap 'exit_status=$?
1068   # Save into config.log some information that might help in debugging.
1069   {
1070     echo
1071
1072     cat <<\_ASBOX
1073 ## ---------------- ##
1074 ## Cache variables. ##
1075 ## ---------------- ##
1076 _ASBOX
1077     echo
1078     # The following way of writing the cache mishandles newlines in values,
1079 {
1080   (set) 2>&1 |
1081     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1082     *ac_space=\ *)
1083       sed -n \
1084         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1085           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1086       ;;
1087     *)
1088       sed -n \
1089         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1090       ;;
1091     esac;
1092 }
1093     echo
1094
1095     cat <<\_ASBOX
1096 ## ----------------- ##
1097 ## Output variables. ##
1098 ## ----------------- ##
1099 _ASBOX
1100     echo
1101     for ac_var in $ac_subst_vars
1102     do
1103       eval ac_val=$`echo $ac_var`
1104       echo "$ac_var='"'"'$ac_val'"'"'"
1105     done | sort
1106     echo
1107
1108     if test -n "$ac_subst_files"; then
1109       cat <<\_ASBOX
1110 ## ------------- ##
1111 ## Output files. ##
1112 ## ------------- ##
1113 _ASBOX
1114       echo
1115       for ac_var in $ac_subst_files
1116       do
1117         eval ac_val=$`echo $ac_var`
1118         echo "$ac_var='"'"'$ac_val'"'"'"
1119       done | sort
1120       echo
1121     fi
1122
1123     if test -s confdefs.h; then
1124       cat <<\_ASBOX
1125 ## ----------- ##
1126 ## confdefs.h. ##
1127 ## ----------- ##
1128 _ASBOX
1129       echo
1130       sed "/^$/d" confdefs.h | sort
1131       echo
1132     fi
1133     test "$ac_signal" != 0 &&
1134       echo "$as_me: caught signal $ac_signal"
1135     echo "$as_me: exit $exit_status"
1136   } >&5
1137   rm -f core core.* *.core &&
1138   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1139     exit $exit_status
1140      ' 0
1141 for ac_signal in 1 2 13 15; do
1142   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1143 done
1144 ac_signal=0
1145
1146 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1147 rm -rf conftest* confdefs.h
1148 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1149 echo >confdefs.h
1150
1151 # Predefined preprocessor variables.
1152
1153 cat >>confdefs.h <<_ACEOF
1154 #define PACKAGE_NAME "$PACKAGE_NAME"
1155 _ACEOF
1156
1157
1158 cat >>confdefs.h <<_ACEOF
1159 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1160 _ACEOF
1161
1162
1163 cat >>confdefs.h <<_ACEOF
1164 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1165 _ACEOF
1166
1167
1168 cat >>confdefs.h <<_ACEOF
1169 #define PACKAGE_STRING "$PACKAGE_STRING"
1170 _ACEOF
1171
1172
1173 cat >>confdefs.h <<_ACEOF
1174 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1175 _ACEOF
1176
1177
1178 # Let the site file select an alternate cache file if it wants to.
1179 # Prefer explicitly selected file to automatically selected ones.
1180 if test -z "$CONFIG_SITE"; then
1181   if test "x$prefix" != xNONE; then
1182     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1183   else
1184     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1185   fi
1186 fi
1187 for ac_site_file in $CONFIG_SITE; do
1188   if test -r "$ac_site_file"; then
1189     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1190 echo "$as_me: loading site script $ac_site_file" >&6;}
1191     sed 's/^/| /' "$ac_site_file" >&5
1192     . "$ac_site_file"
1193   fi
1194 done
1195
1196 if test -r "$cache_file"; then
1197   # Some versions of bash will fail to source /dev/null (special
1198   # files actually), so we avoid doing that.
1199   if test -f "$cache_file"; then
1200     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1201 echo "$as_me: loading cache $cache_file" >&6;}
1202     case $cache_file in
1203       [\\/]* | ?:[\\/]* ) . $cache_file;;
1204       *)                      . ./$cache_file;;
1205     esac
1206   fi
1207 else
1208   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1209 echo "$as_me: creating cache $cache_file" >&6;}
1210   >$cache_file
1211 fi
1212
1213 # Check that the precious variables saved in the cache have kept the same
1214 # value.
1215 ac_cache_corrupted=false
1216 for ac_var in `(set) 2>&1 |
1217                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1218   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1219   eval ac_new_set=\$ac_env_${ac_var}_set
1220   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1221   eval ac_new_val="\$ac_env_${ac_var}_value"
1222   case $ac_old_set,$ac_new_set in
1223     set,)
1224       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1225 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1226       ac_cache_corrupted=: ;;
1227     ,set)
1228       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1229 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1230       ac_cache_corrupted=: ;;
1231     ,);;
1232     *)
1233       if test "x$ac_old_val" != "x$ac_new_val"; then
1234         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1235 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1236         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1237 echo "$as_me:   former value:  $ac_old_val" >&2;}
1238         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1239 echo "$as_me:   current value: $ac_new_val" >&2;}
1240         ac_cache_corrupted=:
1241       fi;;
1242   esac
1243   # Pass precious variables to config.status.
1244   if test "$ac_new_set" = set; then
1245     case $ac_new_val in
1246     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1247       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1248     *) ac_arg=$ac_var=$ac_new_val ;;
1249     esac
1250     case " $ac_configure_args " in
1251       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1252       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1253     esac
1254   fi
1255 done
1256 if $ac_cache_corrupted; then
1257   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1258 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1259   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1260 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1261    { (exit 1); exit 1; }; }
1262 fi
1263
1264 ac_ext=c
1265 ac_cpp='$CPP $CPPFLAGS'
1266 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1267 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1268 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289 ac_aux_dir=
1290 for ac_dir in .. $srcdir/..; do
1291   if test -f $ac_dir/install-sh; then
1292     ac_aux_dir=$ac_dir
1293     ac_install_sh="$ac_aux_dir/install-sh -c"
1294     break
1295   elif test -f $ac_dir/install.sh; then
1296     ac_aux_dir=$ac_dir
1297     ac_install_sh="$ac_aux_dir/install.sh -c"
1298     break
1299   elif test -f $ac_dir/shtool; then
1300     ac_aux_dir=$ac_dir
1301     ac_install_sh="$ac_aux_dir/shtool install -c"
1302     break
1303   fi
1304 done
1305 if test -z "$ac_aux_dir"; then
1306   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in .. $srcdir/.." >&5
1307 echo "$as_me: error: cannot find install-sh or install.sh in .. $srcdir/.." >&2;}
1308    { (exit 1); exit 1; }; }
1309 fi
1310 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1311 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1312 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1313
1314 # Make sure we can run config.sub.
1315 $ac_config_sub sun4 >/dev/null 2>&1 ||
1316   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1317 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1318    { (exit 1); exit 1; }; }
1319
1320 echo "$as_me:$LINENO: checking build system type" >&5
1321 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1322 if test "${ac_cv_build+set}" = set; then
1323   echo $ECHO_N "(cached) $ECHO_C" >&6
1324 else
1325   ac_cv_build_alias=$build_alias
1326 test -z "$ac_cv_build_alias" &&
1327   ac_cv_build_alias=`$ac_config_guess`
1328 test -z "$ac_cv_build_alias" &&
1329   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1330 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1331    { (exit 1); exit 1; }; }
1332 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1333   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1334 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1335    { (exit 1); exit 1; }; }
1336
1337 fi
1338 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1339 echo "${ECHO_T}$ac_cv_build" >&6
1340 build=$ac_cv_build
1341 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1342 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1343 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1344
1345
1346 echo "$as_me:$LINENO: checking host system type" >&5
1347 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1348 if test "${ac_cv_host+set}" = set; then
1349   echo $ECHO_N "(cached) $ECHO_C" >&6
1350 else
1351   ac_cv_host_alias=$host_alias
1352 test -z "$ac_cv_host_alias" &&
1353   ac_cv_host_alias=$ac_cv_build_alias
1354 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1355   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1356 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1357    { (exit 1); exit 1; }; }
1358
1359 fi
1360 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1361 echo "${ECHO_T}$ac_cv_host" >&6
1362 host=$ac_cv_host
1363 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1364 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1365 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1366
1367
1368 echo "$as_me:$LINENO: checking target system type" >&5
1369 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1370 if test "${ac_cv_target+set}" = set; then
1371   echo $ECHO_N "(cached) $ECHO_C" >&6
1372 else
1373   ac_cv_target_alias=$target_alias
1374 test "x$ac_cv_target_alias" = "x" &&
1375   ac_cv_target_alias=$ac_cv_host_alias
1376 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1377   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1378 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1379    { (exit 1); exit 1; }; }
1380
1381 fi
1382 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1383 echo "${ECHO_T}$ac_cv_target" >&6
1384 target=$ac_cv_target
1385 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1386 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1387 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1388
1389
1390 # The aliases save the names the user supplied, while $host etc.
1391 # will get canonicalized.
1392 test -n "$target_alias" &&
1393   test "$program_prefix$program_suffix$program_transform_name" = \
1394     NONENONEs,x,x, &&
1395   program_prefix=${target_alias}-
1396 ac_ext=c
1397 ac_cpp='$CPP $CPPFLAGS'
1398 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1399 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1400 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1401 if test -n "$ac_tool_prefix"; then
1402   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1403 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1404 echo "$as_me:$LINENO: checking for $ac_word" >&5
1405 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1406 if test "${ac_cv_prog_CC+set}" = set; then
1407   echo $ECHO_N "(cached) $ECHO_C" >&6
1408 else
1409   if test -n "$CC"; then
1410   ac_cv_prog_CC="$CC" # Let the user override the test.
1411 else
1412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1413 for as_dir in $PATH
1414 do
1415   IFS=$as_save_IFS
1416   test -z "$as_dir" && as_dir=.
1417   for ac_exec_ext in '' $ac_executable_extensions; do
1418   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1419     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1420     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1421     break 2
1422   fi
1423 done
1424 done
1425
1426 fi
1427 fi
1428 CC=$ac_cv_prog_CC
1429 if test -n "$CC"; then
1430   echo "$as_me:$LINENO: result: $CC" >&5
1431 echo "${ECHO_T}$CC" >&6
1432 else
1433   echo "$as_me:$LINENO: result: no" >&5
1434 echo "${ECHO_T}no" >&6
1435 fi
1436
1437 fi
1438 if test -z "$ac_cv_prog_CC"; then
1439   ac_ct_CC=$CC
1440   # Extract the first word of "gcc", so it can be a program name with args.
1441 set dummy gcc; ac_word=$2
1442 echo "$as_me:$LINENO: checking for $ac_word" >&5
1443 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1444 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1445   echo $ECHO_N "(cached) $ECHO_C" >&6
1446 else
1447   if test -n "$ac_ct_CC"; then
1448   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1449 else
1450 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1451 for as_dir in $PATH
1452 do
1453   IFS=$as_save_IFS
1454   test -z "$as_dir" && as_dir=.
1455   for ac_exec_ext in '' $ac_executable_extensions; do
1456   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1457     ac_cv_prog_ac_ct_CC="gcc"
1458     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1459     break 2
1460   fi
1461 done
1462 done
1463
1464 fi
1465 fi
1466 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1467 if test -n "$ac_ct_CC"; then
1468   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1469 echo "${ECHO_T}$ac_ct_CC" >&6
1470 else
1471   echo "$as_me:$LINENO: result: no" >&5
1472 echo "${ECHO_T}no" >&6
1473 fi
1474
1475   CC=$ac_ct_CC
1476 else
1477   CC="$ac_cv_prog_CC"
1478 fi
1479
1480 if test -z "$CC"; then
1481   if test -n "$ac_tool_prefix"; then
1482   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1483 set dummy ${ac_tool_prefix}cc; ac_word=$2
1484 echo "$as_me:$LINENO: checking for $ac_word" >&5
1485 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1486 if test "${ac_cv_prog_CC+set}" = set; then
1487   echo $ECHO_N "(cached) $ECHO_C" >&6
1488 else
1489   if test -n "$CC"; then
1490   ac_cv_prog_CC="$CC" # Let the user override the test.
1491 else
1492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1493 for as_dir in $PATH
1494 do
1495   IFS=$as_save_IFS
1496   test -z "$as_dir" && as_dir=.
1497   for ac_exec_ext in '' $ac_executable_extensions; do
1498   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1499     ac_cv_prog_CC="${ac_tool_prefix}cc"
1500     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1501     break 2
1502   fi
1503 done
1504 done
1505
1506 fi
1507 fi
1508 CC=$ac_cv_prog_CC
1509 if test -n "$CC"; then
1510   echo "$as_me:$LINENO: result: $CC" >&5
1511 echo "${ECHO_T}$CC" >&6
1512 else
1513   echo "$as_me:$LINENO: result: no" >&5
1514 echo "${ECHO_T}no" >&6
1515 fi
1516
1517 fi
1518 if test -z "$ac_cv_prog_CC"; then
1519   ac_ct_CC=$CC
1520   # Extract the first word of "cc", so it can be a program name with args.
1521 set dummy cc; ac_word=$2
1522 echo "$as_me:$LINENO: checking for $ac_word" >&5
1523 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1524 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1525   echo $ECHO_N "(cached) $ECHO_C" >&6
1526 else
1527   if test -n "$ac_ct_CC"; then
1528   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1529 else
1530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1531 for as_dir in $PATH
1532 do
1533   IFS=$as_save_IFS
1534   test -z "$as_dir" && as_dir=.
1535   for ac_exec_ext in '' $ac_executable_extensions; do
1536   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1537     ac_cv_prog_ac_ct_CC="cc"
1538     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1539     break 2
1540   fi
1541 done
1542 done
1543
1544 fi
1545 fi
1546 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1547 if test -n "$ac_ct_CC"; then
1548   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1549 echo "${ECHO_T}$ac_ct_CC" >&6
1550 else
1551   echo "$as_me:$LINENO: result: no" >&5
1552 echo "${ECHO_T}no" >&6
1553 fi
1554
1555   CC=$ac_ct_CC
1556 else
1557   CC="$ac_cv_prog_CC"
1558 fi
1559
1560 fi
1561 if test -z "$CC"; then
1562   # Extract the first word of "cc", so it can be a program name with args.
1563 set dummy cc; ac_word=$2
1564 echo "$as_me:$LINENO: checking for $ac_word" >&5
1565 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1566 if test "${ac_cv_prog_CC+set}" = set; then
1567   echo $ECHO_N "(cached) $ECHO_C" >&6
1568 else
1569   if test -n "$CC"; then
1570   ac_cv_prog_CC="$CC" # Let the user override the test.
1571 else
1572   ac_prog_rejected=no
1573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1574 for as_dir in $PATH
1575 do
1576   IFS=$as_save_IFS
1577   test -z "$as_dir" && as_dir=.
1578   for ac_exec_ext in '' $ac_executable_extensions; do
1579   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1580     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1581        ac_prog_rejected=yes
1582        continue
1583      fi
1584     ac_cv_prog_CC="cc"
1585     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1586     break 2
1587   fi
1588 done
1589 done
1590
1591 if test $ac_prog_rejected = yes; then
1592   # We found a bogon in the path, so make sure we never use it.
1593   set dummy $ac_cv_prog_CC
1594   shift
1595   if test $# != 0; then
1596     # We chose a different compiler from the bogus one.
1597     # However, it has the same basename, so the bogon will be chosen
1598     # first if we set CC to just the basename; use the full file name.
1599     shift
1600     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1601   fi
1602 fi
1603 fi
1604 fi
1605 CC=$ac_cv_prog_CC
1606 if test -n "$CC"; then
1607   echo "$as_me:$LINENO: result: $CC" >&5
1608 echo "${ECHO_T}$CC" >&6
1609 else
1610   echo "$as_me:$LINENO: result: no" >&5
1611 echo "${ECHO_T}no" >&6
1612 fi
1613
1614 fi
1615 if test -z "$CC"; then
1616   if test -n "$ac_tool_prefix"; then
1617   for ac_prog in cl
1618   do
1619     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1620 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1621 echo "$as_me:$LINENO: checking for $ac_word" >&5
1622 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1623 if test "${ac_cv_prog_CC+set}" = set; then
1624   echo $ECHO_N "(cached) $ECHO_C" >&6
1625 else
1626   if test -n "$CC"; then
1627   ac_cv_prog_CC="$CC" # Let the user override the test.
1628 else
1629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1630 for as_dir in $PATH
1631 do
1632   IFS=$as_save_IFS
1633   test -z "$as_dir" && as_dir=.
1634   for ac_exec_ext in '' $ac_executable_extensions; do
1635   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1636     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1637     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1638     break 2
1639   fi
1640 done
1641 done
1642
1643 fi
1644 fi
1645 CC=$ac_cv_prog_CC
1646 if test -n "$CC"; then
1647   echo "$as_me:$LINENO: result: $CC" >&5
1648 echo "${ECHO_T}$CC" >&6
1649 else
1650   echo "$as_me:$LINENO: result: no" >&5
1651 echo "${ECHO_T}no" >&6
1652 fi
1653
1654     test -n "$CC" && break
1655   done
1656 fi
1657 if test -z "$CC"; then
1658   ac_ct_CC=$CC
1659   for ac_prog in cl
1660 do
1661   # Extract the first word of "$ac_prog", so it can be a program name with args.
1662 set dummy $ac_prog; ac_word=$2
1663 echo "$as_me:$LINENO: checking for $ac_word" >&5
1664 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1665 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1666   echo $ECHO_N "(cached) $ECHO_C" >&6
1667 else
1668   if test -n "$ac_ct_CC"; then
1669   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1670 else
1671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1672 for as_dir in $PATH
1673 do
1674   IFS=$as_save_IFS
1675   test -z "$as_dir" && as_dir=.
1676   for ac_exec_ext in '' $ac_executable_extensions; do
1677   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1678     ac_cv_prog_ac_ct_CC="$ac_prog"
1679     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1680     break 2
1681   fi
1682 done
1683 done
1684
1685 fi
1686 fi
1687 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1688 if test -n "$ac_ct_CC"; then
1689   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1690 echo "${ECHO_T}$ac_ct_CC" >&6
1691 else
1692   echo "$as_me:$LINENO: result: no" >&5
1693 echo "${ECHO_T}no" >&6
1694 fi
1695
1696   test -n "$ac_ct_CC" && break
1697 done
1698
1699   CC=$ac_ct_CC
1700 fi
1701
1702 fi
1703
1704
1705 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1706 See \`config.log' for more details." >&5
1707 echo "$as_me: error: no acceptable C compiler found in \$PATH
1708 See \`config.log' for more details." >&2;}
1709    { (exit 1); exit 1; }; }
1710
1711 # Provide some information about the compiler.
1712 echo "$as_me:$LINENO:" \
1713      "checking for C compiler version" >&5
1714 ac_compiler=`set X $ac_compile; echo $2`
1715 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1716   (eval $ac_compiler --version </dev/null >&5) 2>&5
1717   ac_status=$?
1718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1719   (exit $ac_status); }
1720 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1721   (eval $ac_compiler -v </dev/null >&5) 2>&5
1722   ac_status=$?
1723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1724   (exit $ac_status); }
1725 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1726   (eval $ac_compiler -V </dev/null >&5) 2>&5
1727   ac_status=$?
1728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1729   (exit $ac_status); }
1730
1731 cat >conftest.$ac_ext <<_ACEOF
1732 #line $LINENO "configure"
1733 /* confdefs.h.  */
1734 _ACEOF
1735 cat confdefs.h >>conftest.$ac_ext
1736 cat >>conftest.$ac_ext <<_ACEOF
1737 /* end confdefs.h.  */
1738
1739 int
1740 main ()
1741 {
1742
1743   ;
1744   return 0;
1745 }
1746 _ACEOF
1747 ac_clean_files_save=$ac_clean_files
1748 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1749 # Try to create an executable without -o first, disregard a.out.
1750 # It will help us diagnose broken compilers, and finding out an intuition
1751 # of exeext.
1752 echo "$as_me:$LINENO: checking for C compiler default output" >&5
1753 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1754 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1755 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1756   (eval $ac_link_default) 2>&5
1757   ac_status=$?
1758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1759   (exit $ac_status); }; then
1760   # Find the output, starting from the most likely.  This scheme is
1761 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1762 # resort.
1763
1764 # Be careful to initialize this variable, since it used to be cached.
1765 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1766 ac_cv_exeext=
1767 # b.out is created by i960 compilers.
1768 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1769 do
1770   test -f "$ac_file" || continue
1771   case $ac_file in
1772     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1773         ;;
1774     conftest.$ac_ext )
1775         # This is the source file.
1776         ;;
1777     [ab].out )
1778         # We found the default executable, but exeext='' is most
1779         # certainly right.
1780         break;;
1781     *.* )
1782         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1783         # FIXME: I believe we export ac_cv_exeext for Libtool,
1784         # but it would be cool to find out if it's true.  Does anybody
1785         # maintain Libtool? --akim.
1786         export ac_cv_exeext
1787         break;;
1788     * )
1789         break;;
1790   esac
1791 done
1792 else
1793   echo "$as_me: failed program was:" >&5
1794 sed 's/^/| /' conftest.$ac_ext >&5
1795
1796 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1797 See \`config.log' for more details." >&5
1798 echo "$as_me: error: C compiler cannot create executables
1799 See \`config.log' for more details." >&2;}
1800    { (exit 77); exit 77; }; }
1801 fi
1802
1803 ac_exeext=$ac_cv_exeext
1804 echo "$as_me:$LINENO: result: $ac_file" >&5
1805 echo "${ECHO_T}$ac_file" >&6
1806
1807 # Check the compiler produces executables we can run.  If not, either
1808 # the compiler is broken, or we cross compile.
1809 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1810 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1811 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1812 # If not cross compiling, check that we can run a simple program.
1813 if test "$cross_compiling" != yes; then
1814   if { ac_try='./$ac_file'
1815   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1816   (eval $ac_try) 2>&5
1817   ac_status=$?
1818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1819   (exit $ac_status); }; }; then
1820     cross_compiling=no
1821   else
1822     if test "$cross_compiling" = maybe; then
1823         cross_compiling=yes
1824     else
1825         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1826 If you meant to cross compile, use \`--host'.
1827 See \`config.log' for more details." >&5
1828 echo "$as_me: error: cannot run C compiled programs.
1829 If you meant to cross compile, use \`--host'.
1830 See \`config.log' for more details." >&2;}
1831    { (exit 1); exit 1; }; }
1832     fi
1833   fi
1834 fi
1835 echo "$as_me:$LINENO: result: yes" >&5
1836 echo "${ECHO_T}yes" >&6
1837
1838 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1839 ac_clean_files=$ac_clean_files_save
1840 # Check the compiler produces executables we can run.  If not, either
1841 # the compiler is broken, or we cross compile.
1842 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1843 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1844 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1845 echo "${ECHO_T}$cross_compiling" >&6
1846
1847 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1848 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1849 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1850   (eval $ac_link) 2>&5
1851   ac_status=$?
1852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1853   (exit $ac_status); }; then
1854   # If both `conftest.exe' and `conftest' are `present' (well, observable)
1855 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
1856 # work properly (i.e., refer to `conftest.exe'), while it won't with
1857 # `rm'.
1858 for ac_file in conftest.exe conftest conftest.*; do
1859   test -f "$ac_file" || continue
1860   case $ac_file in
1861     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1862     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1863           export ac_cv_exeext
1864           break;;
1865     * ) break;;
1866   esac
1867 done
1868 else
1869   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1870 See \`config.log' for more details." >&5
1871 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1872 See \`config.log' for more details." >&2;}
1873    { (exit 1); exit 1; }; }
1874 fi
1875
1876 rm -f conftest$ac_cv_exeext
1877 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1878 echo "${ECHO_T}$ac_cv_exeext" >&6
1879
1880 rm -f conftest.$ac_ext
1881 EXEEXT=$ac_cv_exeext
1882 ac_exeext=$EXEEXT
1883 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1884 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1885 if test "${ac_cv_objext+set}" = set; then
1886   echo $ECHO_N "(cached) $ECHO_C" >&6
1887 else
1888   cat >conftest.$ac_ext <<_ACEOF
1889 #line $LINENO "configure"
1890 /* confdefs.h.  */
1891 _ACEOF
1892 cat confdefs.h >>conftest.$ac_ext
1893 cat >>conftest.$ac_ext <<_ACEOF
1894 /* end confdefs.h.  */
1895
1896 int
1897 main ()
1898 {
1899
1900   ;
1901   return 0;
1902 }
1903 _ACEOF
1904 rm -f conftest.o conftest.obj
1905 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1906   (eval $ac_compile) 2>&5
1907   ac_status=$?
1908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1909   (exit $ac_status); }; then
1910   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1911   case $ac_file in
1912     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1913     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1914        break;;
1915   esac
1916 done
1917 else
1918   echo "$as_me: failed program was:" >&5
1919 sed 's/^/| /' conftest.$ac_ext >&5
1920
1921 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1922 See \`config.log' for more details." >&5
1923 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1924 See \`config.log' for more details." >&2;}
1925    { (exit 1); exit 1; }; }
1926 fi
1927
1928 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1929 fi
1930 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1931 echo "${ECHO_T}$ac_cv_objext" >&6
1932 OBJEXT=$ac_cv_objext
1933 ac_objext=$OBJEXT
1934 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1935 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1936 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1937   echo $ECHO_N "(cached) $ECHO_C" >&6
1938 else
1939   cat >conftest.$ac_ext <<_ACEOF
1940 #line $LINENO "configure"
1941 /* confdefs.h.  */
1942 _ACEOF
1943 cat confdefs.h >>conftest.$ac_ext
1944 cat >>conftest.$ac_ext <<_ACEOF
1945 /* end confdefs.h.  */
1946
1947 int
1948 main ()
1949 {
1950 #ifndef __GNUC__
1951        choke me
1952 #endif
1953
1954   ;
1955   return 0;
1956 }
1957 _ACEOF
1958 rm -f conftest.$ac_objext
1959 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1960   (eval $ac_compile) 2>&5
1961   ac_status=$?
1962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1963   (exit $ac_status); } &&
1964          { ac_try='test -s conftest.$ac_objext'
1965   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1966   (eval $ac_try) 2>&5
1967   ac_status=$?
1968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1969   (exit $ac_status); }; }; then
1970   ac_compiler_gnu=yes
1971 else
1972   echo "$as_me: failed program was:" >&5
1973 sed 's/^/| /' conftest.$ac_ext >&5
1974
1975 ac_compiler_gnu=no
1976 fi
1977 rm -f conftest.$ac_objext conftest.$ac_ext
1978 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1979
1980 fi
1981 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1982 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1983 GCC=`test $ac_compiler_gnu = yes && echo yes`
1984 ac_test_CFLAGS=${CFLAGS+set}
1985 ac_save_CFLAGS=$CFLAGS
1986 CFLAGS="-g"
1987 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1988 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1989 if test "${ac_cv_prog_cc_g+set}" = set; then
1990   echo $ECHO_N "(cached) $ECHO_C" >&6
1991 else
1992   cat >conftest.$ac_ext <<_ACEOF
1993 #line $LINENO "configure"
1994 /* confdefs.h.  */
1995 _ACEOF
1996 cat confdefs.h >>conftest.$ac_ext
1997 cat >>conftest.$ac_ext <<_ACEOF
1998 /* end confdefs.h.  */
1999
2000 int
2001 main ()
2002 {
2003
2004   ;
2005   return 0;
2006 }
2007 _ACEOF
2008 rm -f conftest.$ac_objext
2009 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2010   (eval $ac_compile) 2>&5
2011   ac_status=$?
2012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2013   (exit $ac_status); } &&
2014          { ac_try='test -s conftest.$ac_objext'
2015   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2016   (eval $ac_try) 2>&5
2017   ac_status=$?
2018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2019   (exit $ac_status); }; }; then
2020   ac_cv_prog_cc_g=yes
2021 else
2022   echo "$as_me: failed program was:" >&5
2023 sed 's/^/| /' conftest.$ac_ext >&5
2024
2025 ac_cv_prog_cc_g=no
2026 fi
2027 rm -f conftest.$ac_objext conftest.$ac_ext
2028 fi
2029 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2030 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2031 if test "$ac_test_CFLAGS" = set; then
2032   CFLAGS=$ac_save_CFLAGS
2033 elif test $ac_cv_prog_cc_g = yes; then
2034   if test "$GCC" = yes; then
2035     CFLAGS="-g -O2"
2036   else
2037     CFLAGS="-g"
2038   fi
2039 else
2040   if test "$GCC" = yes; then
2041     CFLAGS="-O2"
2042   else
2043     CFLAGS=
2044   fi
2045 fi
2046 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2047 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2048 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2049   echo $ECHO_N "(cached) $ECHO_C" >&6
2050 else
2051   ac_cv_prog_cc_stdc=no
2052 ac_save_CC=$CC
2053 cat >conftest.$ac_ext <<_ACEOF
2054 #line $LINENO "configure"
2055 /* confdefs.h.  */
2056 _ACEOF
2057 cat confdefs.h >>conftest.$ac_ext
2058 cat >>conftest.$ac_ext <<_ACEOF
2059 /* end confdefs.h.  */
2060 #include <stdarg.h>
2061 #include <stdio.h>
2062 #include <sys/types.h>
2063 #include <sys/stat.h>
2064 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2065 struct buf { int x; };
2066 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2067 static char *e (p, i)
2068      char **p;
2069      int i;
2070 {
2071   return p[i];
2072 }
2073 static char *f (char * (*g) (char **, int), char **p, ...)
2074 {
2075   char *s;
2076   va_list v;
2077   va_start (v,p);
2078   s = g (p, va_arg (v,int));
2079   va_end (v);
2080   return s;
2081 }
2082 int test (int i, double x);
2083 struct s1 {int (*f) (int a);};
2084 struct s2 {int (*f) (double a);};
2085 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2086 int argc;
2087 char **argv;
2088 int
2089 main ()
2090 {
2091 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2092   ;
2093   return 0;
2094 }
2095 _ACEOF
2096 # Don't try gcc -ansi; that turns off useful extensions and
2097 # breaks some systems' header files.
2098 # AIX                   -qlanglvl=ansi
2099 # Ultrix and OSF/1      -std1
2100 # HP-UX 10.20 and later -Ae
2101 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2102 # SVR4                  -Xc -D__EXTENSIONS__
2103 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2104 do
2105   CC="$ac_save_CC $ac_arg"
2106   rm -f conftest.$ac_objext
2107 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2108   (eval $ac_compile) 2>&5
2109   ac_status=$?
2110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2111   (exit $ac_status); } &&
2112          { ac_try='test -s conftest.$ac_objext'
2113   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2114   (eval $ac_try) 2>&5
2115   ac_status=$?
2116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2117   (exit $ac_status); }; }; then
2118   ac_cv_prog_cc_stdc=$ac_arg
2119 break
2120 else
2121   echo "$as_me: failed program was:" >&5
2122 sed 's/^/| /' conftest.$ac_ext >&5
2123
2124 fi
2125 rm -f conftest.$ac_objext
2126 done
2127 rm -f conftest.$ac_ext conftest.$ac_objext
2128 CC=$ac_save_CC
2129
2130 fi
2131
2132 case "x$ac_cv_prog_cc_stdc" in
2133   x|xno)
2134     echo "$as_me:$LINENO: result: none needed" >&5
2135 echo "${ECHO_T}none needed" >&6 ;;
2136   *)
2137     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2138 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2139     CC="$CC $ac_cv_prog_cc_stdc" ;;
2140 esac
2141
2142 # Some people use a C++ compiler to compile C.  Since we use `exit',
2143 # in C++ we need to declare it.  In case someone uses the same compiler
2144 # for both compiling C and C++ we need to have the C++ compiler decide
2145 # the declaration of exit, since it's the most demanding environment.
2146 cat >conftest.$ac_ext <<_ACEOF
2147 #ifndef __cplusplus
2148   choke me
2149 #endif
2150 _ACEOF
2151 rm -f conftest.$ac_objext
2152 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2153   (eval $ac_compile) 2>&5
2154   ac_status=$?
2155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2156   (exit $ac_status); } &&
2157          { ac_try='test -s conftest.$ac_objext'
2158   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2159   (eval $ac_try) 2>&5
2160   ac_status=$?
2161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2162   (exit $ac_status); }; }; then
2163   for ac_declaration in \
2164    ''\
2165    '#include <stdlib.h>' \
2166    'extern "C" void std::exit (int) throw (); using std::exit;' \
2167    'extern "C" void std::exit (int); using std::exit;' \
2168    'extern "C" void exit (int) throw ();' \
2169    'extern "C" void exit (int);' \
2170    'void exit (int);'
2171 do
2172   cat >conftest.$ac_ext <<_ACEOF
2173 #line $LINENO "configure"
2174 /* confdefs.h.  */
2175 _ACEOF
2176 cat confdefs.h >>conftest.$ac_ext
2177 cat >>conftest.$ac_ext <<_ACEOF
2178 /* end confdefs.h.  */
2179 #include <stdlib.h>
2180 $ac_declaration
2181 int
2182 main ()
2183 {
2184 exit (42);
2185   ;
2186   return 0;
2187 }
2188 _ACEOF
2189 rm -f conftest.$ac_objext
2190 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2191   (eval $ac_compile) 2>&5
2192   ac_status=$?
2193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2194   (exit $ac_status); } &&
2195          { ac_try='test -s conftest.$ac_objext'
2196   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2197   (eval $ac_try) 2>&5
2198   ac_status=$?
2199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2200   (exit $ac_status); }; }; then
2201   :
2202 else
2203   echo "$as_me: failed program was:" >&5
2204 sed 's/^/| /' conftest.$ac_ext >&5
2205
2206 continue
2207 fi
2208 rm -f conftest.$ac_objext conftest.$ac_ext
2209   cat >conftest.$ac_ext <<_ACEOF
2210 #line $LINENO "configure"
2211 /* confdefs.h.  */
2212 _ACEOF
2213 cat confdefs.h >>conftest.$ac_ext
2214 cat >>conftest.$ac_ext <<_ACEOF
2215 /* end confdefs.h.  */
2216 $ac_declaration
2217 int
2218 main ()
2219 {
2220 exit (42);
2221   ;
2222   return 0;
2223 }
2224 _ACEOF
2225 rm -f conftest.$ac_objext
2226 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2227   (eval $ac_compile) 2>&5
2228   ac_status=$?
2229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2230   (exit $ac_status); } &&
2231          { ac_try='test -s conftest.$ac_objext'
2232   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2233   (eval $ac_try) 2>&5
2234   ac_status=$?
2235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2236   (exit $ac_status); }; }; then
2237   break
2238 else
2239   echo "$as_me: failed program was:" >&5
2240 sed 's/^/| /' conftest.$ac_ext >&5
2241
2242 fi
2243 rm -f conftest.$ac_objext conftest.$ac_ext
2244 done
2245 rm -f conftest*
2246 if test -n "$ac_declaration"; then
2247   echo '#ifdef __cplusplus' >>confdefs.h
2248   echo $ac_declaration      >>confdefs.h
2249   echo '#endif'             >>confdefs.h
2250 fi
2251
2252 else
2253   echo "$as_me: failed program was:" >&5
2254 sed 's/^/| /' conftest.$ac_ext >&5
2255
2256 fi
2257 rm -f conftest.$ac_objext conftest.$ac_ext
2258 ac_ext=c
2259 ac_cpp='$CPP $CPPFLAGS'
2260 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2261 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2262 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2263
2264
2265
2266         echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
2267 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6
2268 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
2269   echo $ECHO_N "(cached) $ECHO_C" >&6
2270 else
2271   ac_check_lib_save_LIBS=$LIBS
2272 LIBS="-lcposix  $LIBS"
2273 cat >conftest.$ac_ext <<_ACEOF
2274 #line $LINENO "configure"
2275 /* confdefs.h.  */
2276 _ACEOF
2277 cat confdefs.h >>conftest.$ac_ext
2278 cat >>conftest.$ac_ext <<_ACEOF
2279 /* end confdefs.h.  */
2280
2281 /* Override any gcc2 internal prototype to avoid an error.  */
2282 #ifdef __cplusplus
2283 extern "C"
2284 #endif
2285 /* We use char because int might match the return type of a gcc2
2286    builtin and then its argument prototype would still apply.  */
2287 char strerror ();
2288 int
2289 main ()
2290 {
2291 strerror ();
2292   ;
2293   return 0;
2294 }
2295 _ACEOF
2296 rm -f conftest.$ac_objext conftest$ac_exeext
2297 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2298   (eval $ac_link) 2>&5
2299   ac_status=$?
2300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2301   (exit $ac_status); } &&
2302          { ac_try='test -s conftest$ac_exeext'
2303   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2304   (eval $ac_try) 2>&5
2305   ac_status=$?
2306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2307   (exit $ac_status); }; }; then
2308   ac_cv_lib_cposix_strerror=yes
2309 else
2310   echo "$as_me: failed program was:" >&5
2311 sed 's/^/| /' conftest.$ac_ext >&5
2312
2313 ac_cv_lib_cposix_strerror=no
2314 fi
2315 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2316 LIBS=$ac_check_lib_save_LIBS
2317 fi
2318 echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
2319 echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6
2320 if test $ac_cv_lib_cposix_strerror = yes; then
2321   LIBS="$LIBS -lcposix"
2322 fi
2323
2324
2325
2326
2327 BFD_VERSION=`sed -n -e 's/^.._INIT_AUTOMAKE.*,[         ]*\([^  ]*\)[   ]*).*/\1/p' < ${srcdir}/../bfd/configure.in`
2328 am__api_version="1.7"
2329 # Find a good install program.  We prefer a C program (faster),
2330 # so one script is as good as another.  But avoid the broken or
2331 # incompatible versions:
2332 # SysV /etc/install, /usr/sbin/install
2333 # SunOS /usr/etc/install
2334 # IRIX /sbin/install
2335 # AIX /bin/install
2336 # AmigaOS /C/install, which installs bootblocks on floppy discs
2337 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2338 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2339 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2340 # ./install, which can be erroneously created by make from ./install.sh.
2341 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2342 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2343 if test -z "$INSTALL"; then
2344 if test "${ac_cv_path_install+set}" = set; then
2345   echo $ECHO_N "(cached) $ECHO_C" >&6
2346 else
2347   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2348 for as_dir in $PATH
2349 do
2350   IFS=$as_save_IFS
2351   test -z "$as_dir" && as_dir=.
2352   # Account for people who put trailing slashes in PATH elements.
2353 case $as_dir/ in
2354   ./ | .// | /cC/* | \
2355   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2356   /usr/ucb/* ) ;;
2357   *)
2358     # OSF1 and SCO ODT 3.0 have their own names for install.
2359     # Don't use installbsd from OSF since it installs stuff as root
2360     # by default.
2361     for ac_prog in ginstall scoinst install; do
2362       for ac_exec_ext in '' $ac_executable_extensions; do
2363         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2364           if test $ac_prog = install &&
2365             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2366             # AIX install.  It has an incompatible calling convention.
2367             :
2368           elif test $ac_prog = install &&
2369             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2370             # program-specific install script used by HP pwplus--don't use.
2371             :
2372           else
2373             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2374             break 3
2375           fi
2376         fi
2377       done
2378     done
2379     ;;
2380 esac
2381 done
2382
2383
2384 fi
2385   if test "${ac_cv_path_install+set}" = set; then
2386     INSTALL=$ac_cv_path_install
2387   else
2388     # As a last resort, use the slow shell script.  We don't cache a
2389     # path for INSTALL within a source directory, because that will
2390     # break other packages using the cache if that directory is
2391     # removed, or if the path is relative.
2392     INSTALL=$ac_install_sh
2393   fi
2394 fi
2395 echo "$as_me:$LINENO: result: $INSTALL" >&5
2396 echo "${ECHO_T}$INSTALL" >&6
2397
2398 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2399 # It thinks the first close brace ends the variable substitution.
2400 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2401
2402 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2403
2404 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2405
2406 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2407 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
2408 # Just in case
2409 sleep 1
2410 echo timestamp > conftest.file
2411 # Do `set' in a subshell so we don't clobber the current shell's
2412 # arguments.  Must try -L first in case configure is actually a
2413 # symlink; some systems play weird games with the mod time of symlinks
2414 # (eg FreeBSD returns the mod time of the symlink's containing
2415 # directory).
2416 if (
2417    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2418    if test "$*" = "X"; then
2419       # -L didn't work.
2420       set X `ls -t $srcdir/configure conftest.file`
2421    fi
2422    rm -f conftest.file
2423    if test "$*" != "X $srcdir/configure conftest.file" \
2424       && test "$*" != "X conftest.file $srcdir/configure"; then
2425
2426       # If neither matched, then we have a broken ls.  This can happen
2427       # if, for instance, CONFIG_SHELL is bash and it inherits a
2428       # broken ls alias from the environment.  This has actually
2429       # happened.  Such a system could not be considered "sane".
2430       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2431 alias in your environment" >&5
2432 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2433 alias in your environment" >&2;}
2434    { (exit 1); exit 1; }; }
2435    fi
2436
2437    test "$2" = conftest.file
2438    )
2439 then
2440    # Ok.
2441    :
2442 else
2443    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2444 Check your system clock" >&5
2445 echo "$as_me: error: newly created file is older than distributed files!
2446 Check your system clock" >&2;}
2447    { (exit 1); exit 1; }; }
2448 fi
2449 echo "$as_me:$LINENO: result: yes" >&5
2450 echo "${ECHO_T}yes" >&6
2451 test "$program_prefix" != NONE &&
2452   program_transform_name="s,^,$program_prefix,;$program_transform_name"
2453 # Use a double $ so make ignores it.
2454 test "$program_suffix" != NONE &&
2455   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
2456 # Double any \ or $.  echo might interpret backslashes.
2457 # By default was `s,x,x', remove it if useless.
2458 cat <<\_ACEOF >conftest.sed
2459 s/[\\$]/&&/g;s/;s,x,x,$//
2460 _ACEOF
2461 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2462 rm conftest.sed
2463
2464
2465 # expand $ac_aux_dir to an absolute path
2466 am_aux_dir=`cd $ac_aux_dir && pwd`
2467
2468 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2469 # Use eval to expand $SHELL
2470 if eval "$MISSING --run true"; then
2471   am_missing_run="$MISSING --run "
2472 else
2473   am_missing_run=
2474   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2475 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2476 fi
2477
2478 for ac_prog in gawk mawk nawk awk
2479 do
2480   # Extract the first word of "$ac_prog", so it can be a program name with args.
2481 set dummy $ac_prog; ac_word=$2
2482 echo "$as_me:$LINENO: checking for $ac_word" >&5
2483 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2484 if test "${ac_cv_prog_AWK+set}" = set; then
2485   echo $ECHO_N "(cached) $ECHO_C" >&6
2486 else
2487   if test -n "$AWK"; then
2488   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2489 else
2490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2491 for as_dir in $PATH
2492 do
2493   IFS=$as_save_IFS
2494   test -z "$as_dir" && as_dir=.
2495   for ac_exec_ext in '' $ac_executable_extensions; do
2496   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2497     ac_cv_prog_AWK="$ac_prog"
2498     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2499     break 2
2500   fi
2501 done
2502 done
2503
2504 fi
2505 fi
2506 AWK=$ac_cv_prog_AWK
2507 if test -n "$AWK"; then
2508   echo "$as_me:$LINENO: result: $AWK" >&5
2509 echo "${ECHO_T}$AWK" >&6
2510 else
2511   echo "$as_me:$LINENO: result: no" >&5
2512 echo "${ECHO_T}no" >&6
2513 fi
2514
2515   test -n "$AWK" && break
2516 done
2517
2518 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2519 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
2520 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
2521 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2522   echo $ECHO_N "(cached) $ECHO_C" >&6
2523 else
2524   cat >conftest.make <<\_ACEOF
2525 all:
2526         @echo 'ac_maketemp="$(MAKE)"'
2527 _ACEOF
2528 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2529 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
2530 if test -n "$ac_maketemp"; then
2531   eval ac_cv_prog_make_${ac_make}_set=yes
2532 else
2533   eval ac_cv_prog_make_${ac_make}_set=no
2534 fi
2535 rm -f conftest.make
2536 fi
2537 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2538   echo "$as_me:$LINENO: result: yes" >&5
2539 echo "${ECHO_T}yes" >&6
2540   SET_MAKE=
2541 else
2542   echo "$as_me:$LINENO: result: no" >&5
2543 echo "${ECHO_T}no" >&6
2544   SET_MAKE="MAKE=${MAKE-make}"
2545 fi
2546
2547 rm -rf .tst 2>/dev/null
2548 mkdir .tst 2>/dev/null
2549 if test -d .tst; then
2550   am__leading_dot=.
2551 else
2552   am__leading_dot=_
2553 fi
2554 rmdir .tst 2>/dev/null
2555
2556 DEPDIR="${am__leading_dot}deps"
2557
2558           ac_config_commands="$ac_config_commands depfiles"
2559
2560
2561 am_make=${MAKE-make}
2562 cat > confinc << 'END'
2563 am__doit:
2564         @echo done
2565 .PHONY: am__doit
2566 END
2567 # If we don't find an include directive, just comment out the code.
2568 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2569 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2570 am__include="#"
2571 am__quote=
2572 _am_result=none
2573 # First try GNU make style include.
2574 echo "include confinc" > confmf
2575 # We grep out `Entering directory' and `Leaving directory'
2576 # messages which can occur if `w' ends up in MAKEFLAGS.
2577 # In particular we don't look at `^make:' because GNU make might
2578 # be invoked under some other name (usually "gmake"), in which
2579 # case it prints its new name instead of `make'.
2580 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2581    am__include=include
2582    am__quote=
2583    _am_result=GNU
2584 fi
2585 # Now try BSD make style include.
2586 if test "$am__include" = "#"; then
2587    echo '.include "confinc"' > confmf
2588    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2589       am__include=.include
2590       am__quote="\""
2591       _am_result=BSD
2592    fi
2593 fi
2594
2595
2596 echo "$as_me:$LINENO: result: $_am_result" >&5
2597 echo "${ECHO_T}$_am_result" >&6
2598 rm -f confinc confmf
2599
2600 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2601 if test "${enable_dependency_tracking+set}" = set; then
2602   enableval="$enable_dependency_tracking"
2603
2604 fi;
2605 if test "x$enable_dependency_tracking" != xno; then
2606   am_depcomp="$ac_aux_dir/depcomp"
2607   AMDEPBACKSLASH='\'
2608 fi
2609
2610
2611 if test "x$enable_dependency_tracking" != xno; then
2612   AMDEP_TRUE=
2613   AMDEP_FALSE='#'
2614 else
2615   AMDEP_TRUE='#'
2616   AMDEP_FALSE=
2617 fi
2618
2619
2620
2621  # test to see if srcdir already configured
2622 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2623    test -f $srcdir/config.status; then
2624   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2625 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2626    { (exit 1); exit 1; }; }
2627 fi
2628
2629 # test whether we have cygpath
2630 if test -z "$CYGPATH_W"; then
2631   if (cygpath --version) >/dev/null 2>/dev/null; then
2632     CYGPATH_W='cygpath -w'
2633   else
2634     CYGPATH_W=echo
2635   fi
2636 fi
2637
2638
2639 # Define the identity of the package.
2640  PACKAGE=gas
2641  VERSION=${BFD_VERSION}
2642
2643
2644 cat >>confdefs.h <<_ACEOF
2645 #define PACKAGE "$PACKAGE"
2646 _ACEOF
2647
2648
2649 cat >>confdefs.h <<_ACEOF
2650 #define VERSION "$VERSION"
2651 _ACEOF
2652
2653 # Some tools Automake needs.
2654
2655 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2656
2657
2658 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2659
2660
2661 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2662
2663
2664 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2665
2666
2667 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2668
2669
2670 AMTAR=${AMTAR-"${am_missing_run}tar"}
2671
2672 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2673
2674 # Installed binaries are usually stripped using `strip' when the user
2675 # run `make install-strip'.  However `strip' might not be the right
2676 # tool to use in cross-compilation environments, therefore Automake
2677 # will honor the `STRIP' environment variable to overrule this program.
2678 if test "$cross_compiling" != no; then
2679   if test -n "$ac_tool_prefix"; then
2680   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2681 set dummy ${ac_tool_prefix}strip; ac_word=$2
2682 echo "$as_me:$LINENO: checking for $ac_word" >&5
2683 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2684 if test "${ac_cv_prog_STRIP+set}" = set; then
2685   echo $ECHO_N "(cached) $ECHO_C" >&6
2686 else
2687   if test -n "$STRIP"; then
2688   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2689 else
2690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2691 for as_dir in $PATH
2692 do
2693   IFS=$as_save_IFS
2694   test -z "$as_dir" && as_dir=.
2695   for ac_exec_ext in '' $ac_executable_extensions; do
2696   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2697     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2698     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2699     break 2
2700   fi
2701 done
2702 done
2703
2704 fi
2705 fi
2706 STRIP=$ac_cv_prog_STRIP
2707 if test -n "$STRIP"; then
2708   echo "$as_me:$LINENO: result: $STRIP" >&5
2709 echo "${ECHO_T}$STRIP" >&6
2710 else
2711   echo "$as_me:$LINENO: result: no" >&5
2712 echo "${ECHO_T}no" >&6
2713 fi
2714
2715 fi
2716 if test -z "$ac_cv_prog_STRIP"; then
2717   ac_ct_STRIP=$STRIP
2718   # Extract the first word of "strip", so it can be a program name with args.
2719 set dummy strip; ac_word=$2
2720 echo "$as_me:$LINENO: checking for $ac_word" >&5
2721 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2722 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2723   echo $ECHO_N "(cached) $ECHO_C" >&6
2724 else
2725   if test -n "$ac_ct_STRIP"; then
2726   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2727 else
2728 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2729 for as_dir in $PATH
2730 do
2731   IFS=$as_save_IFS
2732   test -z "$as_dir" && as_dir=.
2733   for ac_exec_ext in '' $ac_executable_extensions; do
2734   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2735     ac_cv_prog_ac_ct_STRIP="strip"
2736     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2737     break 2
2738   fi
2739 done
2740 done
2741
2742   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
2743 fi
2744 fi
2745 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2746 if test -n "$ac_ct_STRIP"; then
2747   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2748 echo "${ECHO_T}$ac_ct_STRIP" >&6
2749 else
2750   echo "$as_me:$LINENO: result: no" >&5
2751 echo "${ECHO_T}no" >&6
2752 fi
2753
2754   STRIP=$ac_ct_STRIP
2755 else
2756   STRIP="$ac_cv_prog_STRIP"
2757 fi
2758
2759 fi
2760 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2761
2762 # We need awk for the "check" target.  The system "awk" is bad on
2763 # some platforms.
2764
2765
2766 depcc="$CC"   am_compiler_list=
2767
2768 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2769 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2770 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2771   echo $ECHO_N "(cached) $ECHO_C" >&6
2772 else
2773   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2774   # We make a subdir and do the tests there.  Otherwise we can end up
2775   # making bogus files that we don't know about and never remove.  For
2776   # instance it was reported that on HP-UX the gcc test will end up
2777   # making a dummy file named `D' -- because `-MD' means `put the output
2778   # in D'.
2779   mkdir conftest.dir
2780   # Copy depcomp to subdir because otherwise we won't find it if we're
2781   # using a relative directory.
2782   cp "$am_depcomp" conftest.dir
2783   cd conftest.dir
2784   # We will build objects and dependencies in a subdirectory because
2785   # it helps to detect inapplicable dependency modes.  For instance
2786   # both Tru64's cc and ICC support -MD to output dependencies as a
2787   # side effect of compilation, but ICC will put the dependencies in
2788   # the current directory while Tru64 will put them in the object
2789   # directory.
2790   mkdir sub
2791
2792   am_cv_CC_dependencies_compiler_type=none
2793   if test "$am_compiler_list" = ""; then
2794      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2795   fi
2796   for depmode in $am_compiler_list; do
2797     # Setup a source with many dependencies, because some compilers
2798     # like to wrap large dependency lists on column 80 (with \), and
2799     # we should not choose a depcomp mode which is confused by this.
2800     #
2801     # We need to recreate these files for each test, as the compiler may
2802     # overwrite some of them when testing with obscure command lines.
2803     # This happens at least with the AIX C compiler.
2804     : > sub/conftest.c
2805     for i in 1 2 3 4 5 6; do
2806       echo '#include "conftst'$i'.h"' >> sub/conftest.c
2807       : > sub/conftst$i.h
2808     done
2809     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2810
2811     case $depmode in
2812     nosideeffect)
2813       # after this tag, mechanisms are not by side-effect, so they'll
2814       # only be used when explicitly requested
2815       if test "x$enable_dependency_tracking" = xyes; then
2816         continue
2817       else
2818         break
2819       fi
2820       ;;
2821     none) break ;;
2822     esac
2823     # We check with `-c' and `-o' for the sake of the "dashmstdout"
2824     # mode.  It turns out that the SunPro C++ compiler does not properly
2825     # handle `-M -o', and we need to detect this.
2826     if depmode=$depmode \
2827        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
2828        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
2829        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
2830          >/dev/null 2>conftest.err &&
2831        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
2832        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
2833        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2834       # icc doesn't choke on unknown options, it will just issue warnings
2835       # (even with -Werror).  So we grep stderr for any message
2836       # that says an option was ignored.
2837       if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
2838         am_cv_CC_dependencies_compiler_type=$depmode
2839         break
2840       fi
2841     fi
2842   done
2843
2844   cd ..
2845   rm -rf conftest.dir
2846 else
2847   am_cv_CC_dependencies_compiler_type=none
2848 fi
2849
2850 fi
2851 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
2852 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
2853 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
2854
2855
2856
2857 if
2858   test "x$enable_dependency_tracking" != xno \
2859   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
2860   am__fastdepCC_TRUE=
2861   am__fastdepCC_FALSE='#'
2862 else
2863   am__fastdepCC_TRUE='#'
2864   am__fastdepCC_FALSE=
2865 fi
2866
2867
2868
2869
2870 # Check whether --enable-shared or --disable-shared was given.
2871 if test "${enable_shared+set}" = set; then
2872   enableval="$enable_shared"
2873   p=${PACKAGE-default}
2874 case $enableval in
2875 yes) enable_shared=yes ;;
2876 no) enable_shared=no ;;
2877 *)
2878   enable_shared=no
2879   # Look at the argument we got.  We use all the common list separators.
2880   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2881   for pkg in $enableval; do
2882     if test "X$pkg" = "X$p"; then
2883       enable_shared=yes
2884     fi
2885   done
2886   IFS="$ac_save_ifs"
2887   ;;
2888 esac
2889 else
2890   enable_shared=yes
2891 fi;
2892 # Check whether --enable-static or --disable-static was given.
2893 if test "${enable_static+set}" = set; then
2894   enableval="$enable_static"
2895   p=${PACKAGE-default}
2896 case $enableval in
2897 yes) enable_static=yes ;;
2898 no) enable_static=no ;;
2899 *)
2900   enable_static=no
2901   # Look at the argument we got.  We use all the common list separators.
2902   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2903   for pkg in $enableval; do
2904     if test "X$pkg" = "X$p"; then
2905       enable_static=yes
2906     fi
2907   done
2908   IFS="$ac_save_ifs"
2909   ;;
2910 esac
2911 else
2912   enable_static=yes
2913 fi;
2914 # Check whether --enable-fast-install or --disable-fast-install was given.
2915 if test "${enable_fast_install+set}" = set; then
2916   enableval="$enable_fast_install"
2917   p=${PACKAGE-default}
2918 case $enableval in
2919 yes) enable_fast_install=yes ;;
2920 no) enable_fast_install=no ;;
2921 *)
2922   enable_fast_install=no
2923   # Look at the argument we got.  We use all the common list separators.
2924   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2925   for pkg in $enableval; do
2926     if test "X$pkg" = "X$p"; then
2927       enable_fast_install=yes
2928     fi
2929   done
2930   IFS="$ac_save_ifs"
2931   ;;
2932 esac
2933 else
2934   enable_fast_install=yes
2935 fi;
2936
2937 # Check whether --with-gnu-ld or --without-gnu-ld was given.
2938 if test "${with_gnu_ld+set}" = set; then
2939   withval="$with_gnu_ld"
2940   test "$withval" = no || with_gnu_ld=yes
2941 else
2942   with_gnu_ld=no
2943 fi;
2944 ac_prog=ld
2945 if test "$GCC" = yes; then
2946   # Check if gcc -print-prog-name=ld gives a path.
2947   echo "$as_me:$LINENO: checking for ld used by GCC" >&5
2948 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
2949   case $host in
2950   *-*-mingw*)
2951     # gcc leaves a trailing carriage return which upsets mingw
2952     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
2953   *)
2954     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
2955   esac
2956   case $ac_prog in
2957     # Accept absolute paths.
2958     [\\/]* | [A-Za-z]:[\\/]*)
2959       re_direlt='/[^/][^/]*/\.\./'
2960       # Canonicalize the path of ld
2961       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
2962       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
2963         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
2964       done
2965       test -z "$LD" && LD="$ac_prog"
2966       ;;
2967   "")
2968     # If it fails, then pretend we aren't using GCC.
2969     ac_prog=ld
2970     ;;
2971   *)
2972     # If it is relative, then search for the first ld in PATH.
2973     with_gnu_ld=unknown
2974     ;;
2975   esac
2976 elif test "$with_gnu_ld" = yes; then
2977   echo "$as_me:$LINENO: checking for GNU ld" >&5
2978 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
2979 else
2980   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
2981 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
2982 fi
2983 if test "${lt_cv_path_LD+set}" = set; then
2984   echo $ECHO_N "(cached) $ECHO_C" >&6
2985 else
2986   if test -z "$LD"; then
2987   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
2988   for ac_dir in $PATH; do
2989     test -z "$ac_dir" && ac_dir=.
2990     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
2991       lt_cv_path_LD="$ac_dir/$ac_prog"
2992       # Check to see if the program is GNU ld.  I'd rather use --version,
2993       # but apparently some GNU ld's only accept -v.
2994       # Break only if it was the GNU/non-GNU ld that we prefer.
2995       if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
2996         test "$with_gnu_ld" != no && break
2997       else
2998         test "$with_gnu_ld" != yes && break
2999       fi
3000     fi
3001   done
3002   IFS="$ac_save_ifs"
3003 else
3004   lt_cv_path_LD="$LD" # Let the user override the test with a path.
3005 fi
3006 fi
3007
3008 LD="$lt_cv_path_LD"
3009 if test -n "$LD"; then
3010   echo "$as_me:$LINENO: result: $LD" >&5
3011 echo "${ECHO_T}$LD" >&6
3012 else
3013   echo "$as_me:$LINENO: result: no" >&5
3014 echo "${ECHO_T}no" >&6
3015 fi
3016 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3017 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3018    { (exit 1); exit 1; }; }
3019 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3020 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3021 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3022   echo $ECHO_N "(cached) $ECHO_C" >&6
3023 else
3024   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3025 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3026   lt_cv_prog_gnu_ld=yes
3027 else
3028   lt_cv_prog_gnu_ld=no
3029 fi
3030 fi
3031 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3032 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3033 with_gnu_ld=$lt_cv_prog_gnu_ld
3034
3035
3036 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3037 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3038 if test "${lt_cv_ld_reload_flag+set}" = set; then
3039   echo $ECHO_N "(cached) $ECHO_C" >&6
3040 else
3041   lt_cv_ld_reload_flag='-r'
3042 fi
3043 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3044 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3045 reload_flag=$lt_cv_ld_reload_flag
3046 test -n "$reload_flag" && reload_flag=" $reload_flag"
3047
3048 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3049 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3050 if test "${lt_cv_path_NM+set}" = set; then
3051   echo $ECHO_N "(cached) $ECHO_C" >&6
3052 else
3053   if test -n "$NM"; then
3054   # Let the user override the test.
3055   lt_cv_path_NM="$NM"
3056 else
3057   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3058   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3059     test -z "$ac_dir" && ac_dir=.
3060     tmp_nm=$ac_dir/${ac_tool_prefix}nm
3061     if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
3062       # Check to see if the nm accepts a BSD-compat flag.
3063       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3064       #   nm: unknown option "B" ignored
3065       # Tru64's nm complains that /dev/null is an invalid object file
3066       if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
3067         lt_cv_path_NM="$tmp_nm -B"
3068         break
3069       elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3070         lt_cv_path_NM="$tmp_nm -p"
3071         break
3072       else
3073         lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3074         continue # so that we can try to find one that supports BSD flags
3075       fi
3076     fi
3077   done
3078   IFS="$ac_save_ifs"
3079   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3080 fi
3081 fi
3082
3083 NM="$lt_cv_path_NM"
3084 echo "$as_me:$LINENO: result: $NM" >&5
3085 echo "${ECHO_T}$NM" >&6
3086
3087 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3088 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3089 LN_S=$as_ln_s
3090 if test "$LN_S" = "ln -s"; then
3091   echo "$as_me:$LINENO: result: yes" >&5
3092 echo "${ECHO_T}yes" >&6
3093 else
3094   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3095 echo "${ECHO_T}no, using $LN_S" >&6
3096 fi
3097
3098 echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
3099 echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
3100 if test "${lt_cv_deplibs_check_method+set}" = set; then
3101   echo $ECHO_N "(cached) $ECHO_C" >&6
3102 else
3103   lt_cv_file_magic_cmd='$MAGIC_CMD'
3104 lt_cv_file_magic_test_file=
3105 lt_cv_deplibs_check_method='unknown'
3106 # Need to set the preceding variable on all platforms that support
3107 # interlibrary dependencies.
3108 # 'none' -- dependencies not supported.
3109 # `unknown' -- same as none, but documents that we really don't know.
3110 # 'pass_all' -- all dependencies passed with no checks.
3111 # 'test_compile' -- check by making test program.
3112 # 'file_magic [regex]' -- check by looking for files in library path
3113 # which responds to the $file_magic_cmd with a given egrep regex.
3114 # If you have `file' or equivalent on your system and you're not sure
3115 # whether `pass_all' will *always* work, you probably want this one.
3116
3117 case $host_os in
3118 aix*)
3119   lt_cv_deplibs_check_method=pass_all
3120   ;;
3121
3122 beos*)
3123   lt_cv_deplibs_check_method=pass_all
3124   ;;
3125
3126 bsdi4*)
3127   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3128   lt_cv_file_magic_cmd='/usr/bin/file -L'
3129   lt_cv_file_magic_test_file=/shlib/libc.so
3130   ;;
3131
3132 cygwin* | mingw* |pw32*)
3133   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3134   lt_cv_file_magic_cmd='$OBJDUMP -f'
3135   ;;
3136
3137 darwin* | rhapsody*)
3138   lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3139   lt_cv_file_magic_cmd='/usr/bin/file -L'
3140   case "$host_os" in
3141   rhapsody* | darwin1.012)
3142     lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
3143     ;;
3144   *) # Darwin 1.3 on
3145     lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3146     ;;
3147   esac
3148   ;;
3149
3150 freebsd* )
3151   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3152     case $host_cpu in
3153     i*86 )
3154       # Not sure whether the presence of OpenBSD here was a mistake.
3155       # Let's accept both of them until this is cleared up.
3156       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3157       lt_cv_file_magic_cmd=/usr/bin/file
3158       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3159       ;;
3160     esac
3161   else
3162     lt_cv_deplibs_check_method=pass_all
3163   fi
3164   ;;
3165
3166 gnu*)
3167   lt_cv_deplibs_check_method=pass_all
3168   ;;
3169
3170 hpux10.20*|hpux11*)
3171   case $host_cpu in
3172   hppa*)
3173     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3174     lt_cv_file_magic_cmd=/usr/bin/file
3175     lt_cv_file_magic_test_file=/usr/lib/libc.sl
3176     ;;
3177   ia64*)
3178     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3179     lt_cv_file_magic_cmd=/usr/bin/file
3180     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3181     ;;
3182   esac
3183   ;;
3184
3185 irix5* | irix6*)
3186   case $host_os in
3187   irix5*)
3188     # this will be overridden with pass_all, but let us keep it just in case
3189     lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3190     ;;
3191   *)
3192     case $LD in
3193     *-32|*"-32 ") libmagic=32-bit;;
3194     *-n32|*"-n32 ") libmagic=N32;;
3195     *-64|*"-64 ") libmagic=64-bit;;
3196     *) libmagic=never-match;;
3197     esac
3198     # this will be overridden with pass_all, but let us keep it just in case
3199     lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3200     ;;
3201   esac
3202   lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3203   lt_cv_deplibs_check_method=pass_all
3204   ;;
3205
3206 # This must be Linux ELF.
3207 linux-gnu*)
3208   case $host_cpu in
3209   alpha* | mips* | hppa* | i*86 | powerpc* | sparc* | ia64* )
3210     lt_cv_deplibs_check_method=pass_all ;;
3211   *)
3212     # glibc up to 2.1.1 does not perform some relocations on ARM
3213     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3214   esac
3215   lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3216   ;;
3217
3218 netbsd*)
3219   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3220     lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
3221   else
3222     lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
3223   fi
3224   ;;
3225
3226 newsos6)
3227   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3228   lt_cv_file_magic_cmd=/usr/bin/file
3229   lt_cv_file_magic_test_file=/usr/lib/libnls.so
3230   ;;
3231
3232 osf3* | osf4* | osf5*)
3233   # this will be overridden with pass_all, but let us keep it just in case
3234   lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3235   lt_cv_file_magic_test_file=/shlib/libc.so
3236   lt_cv_deplibs_check_method=pass_all
3237   ;;
3238
3239 sco3.2v5*)
3240   lt_cv_deplibs_check_method=pass_all
3241   ;;
3242
3243 solaris*)
3244   lt_cv_deplibs_check_method=pass_all
3245   lt_cv_file_magic_test_file=/lib/libc.so
3246   ;;
3247
3248 sysv5uw[78]* | sysv4*uw2*)
3249   lt_cv_deplibs_check_method=pass_all
3250   ;;
3251
3252 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3253   case $host_vendor in
3254   ncr)
3255     lt_cv_deplibs_check_method=pass_all
3256     ;;
3257   motorola)
3258     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]'
3259     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3260     ;;
3261   esac
3262   ;;
3263 esac
3264
3265 fi
3266 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3267 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3268 file_magic_cmd=$lt_cv_file_magic_cmd
3269 deplibs_check_method=$lt_cv_deplibs_check_method
3270
3271
3272
3273
3274 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
3275
3276 # Only perform the check for file, if the check method requires it
3277 case $deplibs_check_method in
3278 file_magic*)
3279   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
3280     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
3281 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
3282 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3283   echo $ECHO_N "(cached) $ECHO_C" >&6
3284 else
3285   case $MAGIC_CMD in
3286   /*)
3287   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3288   ;;
3289   ?:/*)
3290   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3291   ;;
3292   *)
3293   ac_save_MAGIC_CMD="$MAGIC_CMD"
3294   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
3295   ac_dummy="/usr/bin:$PATH"
3296   for ac_dir in $ac_dummy; do
3297     test -z "$ac_dir" && ac_dir=.
3298     if test -f $ac_dir/${ac_tool_prefix}file; then
3299       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
3300       if test -n "$file_magic_test_file"; then
3301         case $deplibs_check_method in
3302         "file_magic "*)
3303           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3304           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3305           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3306             egrep "$file_magic_regex" > /dev/null; then
3307             :
3308           else
3309             cat <<EOF 1>&2
3310
3311 *** Warning: the command libtool uses to detect shared libraries,
3312 *** $file_magic_cmd, produces output that libtool cannot recognize.
3313 *** The result is that libtool may fail to recognize shared libraries
3314 *** as such.  This will affect the creation of libtool libraries that
3315 *** depend on shared libraries, but programs linked with such libtool
3316 *** libraries will work regardless of this problem.  Nevertheless, you
3317 *** may want to report the problem to your system manager and/or to
3318 *** [email protected]
3319
3320 EOF
3321           fi ;;
3322         esac
3323       fi
3324       break
3325     fi
3326   done
3327   IFS="$ac_save_ifs"
3328   MAGIC_CMD="$ac_save_MAGIC_CMD"
3329   ;;
3330 esac
3331 fi
3332
3333 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3334 if test -n "$MAGIC_CMD"; then
3335   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
3336 echo "${ECHO_T}$MAGIC_CMD" >&6
3337 else
3338   echo "$as_me:$LINENO: result: no" >&5
3339 echo "${ECHO_T}no" >&6
3340 fi
3341
3342 if test -z "$lt_cv_path_MAGIC_CMD"; then
3343   if test -n "$ac_tool_prefix"; then
3344     echo "$as_me:$LINENO: checking for file" >&5
3345 echo $ECHO_N "checking for file... $ECHO_C" >&6
3346 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3347   echo $ECHO_N "(cached) $ECHO_C" >&6
3348 else
3349   case $MAGIC_CMD in
3350   /*)
3351   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3352   ;;
3353   ?:/*)
3354   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3355   ;;
3356   *)
3357   ac_save_MAGIC_CMD="$MAGIC_CMD"
3358   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
3359   ac_dummy="/usr/bin:$PATH"
3360   for ac_dir in $ac_dummy; do
3361     test -z "$ac_dir" && ac_dir=.
3362     if test -f $ac_dir/file; then
3363       lt_cv_path_MAGIC_CMD="$ac_dir/file"
3364       if test -n "$file_magic_test_file"; then
3365         case $deplibs_check_method in
3366         "file_magic "*)
3367           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3368           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3369           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3370             egrep "$file_magic_regex" > /dev/null; then
3371             :
3372           else
3373             cat <<EOF 1>&2
3374
3375 *** Warning: the command libtool uses to detect shared libraries,
3376 *** $file_magic_cmd, produces output that libtool cannot recognize.
3377 *** The result is that libtool may fail to recognize shared libraries
3378 *** as such.  This will affect the creation of libtool libraries that
3379 *** depend on shared libraries, but programs linked with such libtool
3380 *** libraries will work regardless of this problem.  Nevertheless, you
3381 *** may want to report the problem to your system manager and/or to
3382 *** [email protected]
3383
3384 EOF
3385           fi ;;
3386         esac
3387       fi
3388       break
3389     fi
3390   done
3391   IFS="$ac_save_ifs"
3392   MAGIC_CMD="$ac_save_MAGIC_CMD"
3393   ;;
3394 esac
3395 fi
3396
3397 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3398 if test -n "$MAGIC_CMD"; then
3399   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
3400 echo "${ECHO_T}$MAGIC_CMD" >&6
3401 else
3402   echo "$as_me:$LINENO: result: no" >&5
3403 echo "${ECHO_T}no" >&6
3404 fi
3405
3406   else
3407     MAGIC_CMD=:
3408   fi
3409 fi
3410
3411   fi
3412   ;;
3413 esac
3414
3415 if test -n "$ac_tool_prefix"; then
3416   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3417 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3418 echo "$as_me:$LINENO: checking for $ac_word" >&5
3419 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3420 if test "${ac_cv_prog_RANLIB+set}" = set; then
3421   echo $ECHO_N "(cached) $ECHO_C" >&6
3422 else
3423   if test -n "$RANLIB"; then
3424   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3425 else
3426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3427 for as_dir in $PATH
3428 do
3429   IFS=$as_save_IFS
3430   test -z "$as_dir" && as_dir=.
3431   for ac_exec_ext in '' $ac_executable_extensions; do
3432   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3433     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3434     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3435     break 2
3436   fi
3437 done
3438 done
3439
3440 fi
3441 fi
3442 RANLIB=$ac_cv_prog_RANLIB
3443 if test -n "$RANLIB"; then
3444   echo "$as_me:$LINENO: result: $RANLIB" >&5
3445 echo "${ECHO_T}$RANLIB" >&6
3446 else
3447   echo "$as_me:$LINENO: result: no" >&5
3448 echo "${ECHO_T}no" >&6
3449 fi
3450
3451 fi
3452 if test -z "$ac_cv_prog_RANLIB"; then
3453   ac_ct_RANLIB=$RANLIB
3454   # Extract the first word of "ranlib", so it can be a program name with args.
3455 set dummy ranlib; ac_word=$2
3456 echo "$as_me:$LINENO: checking for $ac_word" >&5
3457 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3458 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3459   echo $ECHO_N "(cached) $ECHO_C" >&6
3460 else
3461   if test -n "$ac_ct_RANLIB"; then
3462   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3463 else
3464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3465 for as_dir in $PATH
3466 do
3467   IFS=$as_save_IFS
3468   test -z "$as_dir" && as_dir=.
3469   for ac_exec_ext in '' $ac_executable_extensions; do
3470   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3471     ac_cv_prog_ac_ct_RANLIB="ranlib"
3472     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3473     break 2
3474   fi
3475 done
3476 done
3477
3478   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3479 fi
3480 fi
3481 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3482 if test -n "$ac_ct_RANLIB"; then
3483   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3484 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3485 else
3486   echo "$as_me:$LINENO: result: no" >&5
3487 echo "${ECHO_T}no" >&6
3488 fi
3489
3490   RANLIB=$ac_ct_RANLIB
3491 else
3492   RANLIB="$ac_cv_prog_RANLIB"
3493 fi
3494
3495 if test -n "$ac_tool_prefix"; then
3496   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3497 set dummy ${ac_tool_prefix}strip; ac_word=$2
3498 echo "$as_me:$LINENO: checking for $ac_word" >&5
3499 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3500 if test "${ac_cv_prog_STRIP+set}" = set; then
3501   echo $ECHO_N "(cached) $ECHO_C" >&6
3502 else
3503   if test -n "$STRIP"; then
3504   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3505 else
3506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3507 for as_dir in $PATH
3508 do
3509   IFS=$as_save_IFS
3510   test -z "$as_dir" && as_dir=.
3511   for ac_exec_ext in '' $ac_executable_extensions; do
3512   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3513     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3514     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3515     break 2
3516   fi
3517 done
3518 done
3519
3520 fi
3521 fi
3522 STRIP=$ac_cv_prog_STRIP
3523 if test -n "$STRIP"; then
3524   echo "$as_me:$LINENO: result: $STRIP" >&5
3525 echo "${ECHO_T}$STRIP" >&6
3526 else
3527   echo "$as_me:$LINENO: result: no" >&5
3528 echo "${ECHO_T}no" >&6
3529 fi
3530
3531 fi
3532 if test -z "$ac_cv_prog_STRIP"; then
3533   ac_ct_STRIP=$STRIP
3534   # Extract the first word of "strip", so it can be a program name with args.
3535 set dummy strip; ac_word=$2
3536 echo "$as_me:$LINENO: checking for $ac_word" >&5
3537 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3538 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3539   echo $ECHO_N "(cached) $ECHO_C" >&6
3540 else
3541   if test -n "$ac_ct_STRIP"; then
3542   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3543 else
3544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3545 for as_dir in $PATH
3546 do
3547   IFS=$as_save_IFS
3548   test -z "$as_dir" && as_dir=.
3549   for ac_exec_ext in '' $ac_executable_extensions; do
3550   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3551     ac_cv_prog_ac_ct_STRIP="strip"
3552     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3553     break 2
3554   fi
3555 done
3556 done
3557
3558   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
3559 fi
3560 fi
3561 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3562 if test -n "$ac_ct_STRIP"; then
3563   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3564 echo "${ECHO_T}$ac_ct_STRIP" >&6
3565 else
3566   echo "$as_me:$LINENO: result: no" >&5
3567 echo "${ECHO_T}no" >&6
3568 fi
3569
3570   STRIP=$ac_ct_STRIP
3571 else
3572   STRIP="$ac_cv_prog_STRIP"
3573 fi
3574
3575
3576 # Check for any special flags to pass to ltconfig.
3577 libtool_flags="--cache-file=$cache_file"
3578 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
3579 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
3580 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
3581 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
3582 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
3583
3584
3585 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3586 if test "${enable_libtool_lock+set}" = set; then
3587   enableval="$enable_libtool_lock"
3588
3589 fi;
3590 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
3591 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
3592
3593
3594 # Check whether --with-pic or --without-pic was given.
3595 if test "${with_pic+set}" = set; then
3596   withval="$with_pic"
3597   pic_mode="$withval"
3598 else
3599   pic_mode=default
3600 fi;
3601 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
3602 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
3603
3604 # Some flags need to be propagated to the compiler or linker for good
3605 # libtool support.
3606 case $host in
3607 *-*-irix6*)
3608   # Find out which ABI we are using.
3609   echo '#line 3609 "configure"' > conftest.$ac_ext
3610   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3611   (eval $ac_compile) 2>&5
3612   ac_status=$?
3613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3614   (exit $ac_status); }; then
3615    if test "$lt_cv_prog_gnu_ld" = yes; then
3616     case `/usr/bin/file conftest.$ac_objext` in
3617     *32-bit*)
3618       LD="${LD-ld} -melf32bsmip"
3619       ;;
3620     *N32*)
3621       LD="${LD-ld} -melf32bmipn32"
3622       ;;
3623     *64-bit*)
3624       LD="${LD-ld} -melf64bmip"
3625       ;;
3626     esac
3627    else
3628     case `/usr/bin/file conftest.$ac_objext` in
3629     *32-bit*)
3630       LD="${LD-ld} -32"
3631       ;;
3632     *N32*)
3633       LD="${LD-ld} -n32"
3634       ;;
3635     *64-bit*)
3636       LD="${LD-ld} -64"
3637       ;;
3638     esac
3639    fi
3640   fi
3641   rm -rf conftest*
3642   ;;
3643
3644 ia64-*-hpux*)
3645   # Find out which ABI we are using.
3646   echo 'int i;' > conftest.$ac_ext
3647   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3648   (eval $ac_compile) 2>&5
3649   ac_status=$?
3650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3651   (exit $ac_status); }; then
3652     case "`/usr/bin/file conftest.o`" in
3653     *ELF-32*)
3654       HPUX_IA64_MODE="32"
3655       ;;
3656     *ELF-64*)
3657       HPUX_IA64_MODE="64"
3658       ;;
3659     esac
3660   fi
3661   rm -rf conftest*
3662   ;;
3663
3664 *-*-sco3.2v5*)
3665   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3666   SAVE_CFLAGS="$CFLAGS"
3667   CFLAGS="$CFLAGS -belf"
3668   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
3669 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
3670 if test "${lt_cv_cc_needs_belf+set}" = set; then
3671   echo $ECHO_N "(cached) $ECHO_C" >&6
3672 else
3673
3674
3675      ac_ext=c
3676 ac_cpp='$CPP $CPPFLAGS'
3677 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3678 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3679 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3680
3681      cat >conftest.$ac_ext <<_ACEOF
3682 #line $LINENO "configure"
3683 /* confdefs.h.  */
3684 _ACEOF
3685 cat confdefs.h >>conftest.$ac_ext
3686 cat >>conftest.$ac_ext <<_ACEOF
3687 /* end confdefs.h.  */
3688
3689 int
3690 main ()
3691 {
3692
3693   ;
3694   return 0;
3695 }
3696 _ACEOF
3697 rm -f conftest.$ac_objext conftest$ac_exeext
3698 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3699   (eval $ac_link) 2>&5
3700   ac_status=$?
3701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3702   (exit $ac_status); } &&
3703          { ac_try='test -s conftest$ac_exeext'
3704   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3705   (eval $ac_try) 2>&5
3706   ac_status=$?
3707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3708   (exit $ac_status); }; }; then
3709   lt_cv_cc_needs_belf=yes
3710 else
3711   echo "$as_me: failed program was:" >&5
3712 sed 's/^/| /' conftest.$ac_ext >&5
3713
3714 lt_cv_cc_needs_belf=no
3715 fi
3716 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3717      ac_ext=c
3718 ac_cpp='$CPP $CPPFLAGS'
3719 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3720 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3721 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3722
3723 fi
3724 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
3725 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
3726   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3727     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3728     CFLAGS="$SAVE_CFLAGS"
3729   fi
3730   ;;
3731
3732
3733 esac
3734
3735
3736 # Save cache, so that ltconfig can load it
3737 cat >confcache <<\_ACEOF
3738 # This file is a shell script that caches the results of configure
3739 # tests run on this system so they can be shared between configure
3740 # scripts and configure runs, see configure's option --config-cache.
3741 # It is not useful on other systems.  If it contains results you don't
3742 # want to keep, you may remove or edit it.
3743 #
3744 # config.status only pays attention to the cache file if you give it
3745 # the --recheck option to rerun configure.
3746 #
3747 # `ac_cv_env_foo' variables (set or unset) will be overridden when
3748 # loading this file, other *unset* `ac_cv_foo' will be assigned the
3749 # following values.
3750
3751 _ACEOF
3752
3753 # The following way of writing the cache mishandles newlines in values,
3754 # but we know of no workaround that is simple, portable, and efficient.
3755 # So, don't put newlines in cache variables' values.
3756 # Ultrix sh set writes to stderr and can't be redirected directly,
3757 # and sets the high bit in the cache file unless we assign to the vars.
3758 {
3759   (set) 2>&1 |
3760     case `(ac_space=' '; set | grep ac_space) 2>&1` in
3761     *ac_space=\ *)
3762       # `set' does not quote correctly, so add quotes (double-quote
3763       # substitution turns \\\\ into \\, and sed turns \\ into \).
3764       sed -n \
3765         "s/'/'\\\\''/g;
3766           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
3767       ;;
3768     *)
3769       # `set' quotes correctly as required by POSIX, so do not add quotes.
3770       sed -n \
3771         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
3772       ;;
3773     esac;
3774 } |
3775   sed '
3776      t clear
3777      : clear
3778      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
3779      t end
3780      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
3781      : end' >>confcache
3782 if diff $cache_file confcache >/dev/null 2>&1; then :; else
3783   if test -w $cache_file; then
3784     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
3785     cat confcache >$cache_file
3786   else
3787     echo "not updating unwritable cache $cache_file"
3788   fi
3789 fi
3790 rm -f confcache
3791
3792 # Actually configure libtool.  ac_aux_dir is where install-sh is found.
3793 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
3794 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
3795 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
3796 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
3797 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
3798 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
3799 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
3800 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
3801 || { { echo "$as_me:$LINENO: error: libtool configure failed" >&5
3802 echo "$as_me: error: libtool configure failed" >&2;}
3803    { (exit 1); exit 1; }; }
3804
3805 # Reload cache, that may have been modified by ltconfig
3806 if test -r "$cache_file"; then
3807   # Some versions of bash will fail to source /dev/null (special
3808   # files actually), so we avoid doing that.
3809   if test -f "$cache_file"; then
3810     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
3811 echo "$as_me: loading cache $cache_file" >&6;}
3812     case $cache_file in
3813       [\\/]* | ?:[\\/]* ) . $cache_file;;
3814       *)                      . ./$cache_file;;
3815     esac
3816   fi
3817 else
3818   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
3819 echo "$as_me: creating cache $cache_file" >&6;}
3820   >$cache_file
3821 fi
3822
3823
3824 # This can be used to rebuild libtool when needed
3825 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
3826
3827 # Always use our own libtool.
3828 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
3829
3830 # Redirect the config.log output again, so that the ltconfig log is not
3831 # clobbered by the next message.
3832 exec 5>>./config.log
3833
3834
3835
3836
3837
3838
3839
3840 user_bfd_gas=
3841 # Check whether --enable-bfd-assembler or --disable-bfd-assembler was given.
3842 if test "${enable_bfd_assembler+set}" = set; then
3843   enableval="$enable_bfd_assembler"
3844   case "${enableval}" in
3845   yes) need_bfd=yes user_bfd_gas=yes ;;
3846   no)  user_bfd_gas=no ;;
3847   *)   { { echo "$as_me:$LINENO: error: bad value ${enableval} given for bfd-assembler option" >&5
3848 echo "$as_me: error: bad value ${enableval} given for bfd-assembler option" >&2;}
3849    { (exit 1); exit 1; }; } ;;
3850 esac
3851 fi; # Check whether --enable-targets or --disable-targets was given.
3852 if test "${enable_targets+set}" = set; then
3853   enableval="$enable_targets"
3854   case "${enableval}" in
3855   yes | "") { { echo "$as_me:$LINENO: error: enable-targets option must specify target names or 'all'" >&5
3856 echo "$as_me: error: enable-targets option must specify target names or 'all'" >&2;}
3857    { (exit 1); exit 1; }; }
3858             ;;
3859   no)       enable_targets= ;;
3860   *)        enable_targets=$enableval ;;
3861 esac
3862 fi; # Check whether --enable-commonbfdlib or --disable-commonbfdlib was given.
3863 if test "${enable_commonbfdlib+set}" = set; then
3864   enableval="$enable_commonbfdlib"
3865   case "${enableval}" in
3866   yes) commonbfdlib=true ;;
3867   no)  commonbfdlib=false ;;
3868   *)   { { echo "$as_me:$LINENO: error: bad value ${enableval} for BFD commonbfdlib option" >&5
3869 echo "$as_me: error: bad value ${enableval} for BFD commonbfdlib option" >&2;}
3870    { (exit 1); exit 1; }; } ;;
3871 esac
3872 fi;
3873 using_cgen=no
3874
3875 build_warnings="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
3876 # Check whether --enable-build-warnings or --disable-build-warnings was given.
3877 if test "${enable_build_warnings+set}" = set; then
3878   enableval="$enable_build_warnings"
3879   case "${enableval}" in
3880   yes)  ;;
3881   no)   build_warnings="-w";;
3882   ,*)   t=`echo "${enableval}" | sed -e "s/,/ /g"`
3883         build_warnings="${build_warnings} ${t}";;
3884   *,)   t=`echo "${enableval}" | sed -e "s/,/ /g"`
3885         build_warnings="${t} ${build_warnings}";;
3886   *)    build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
3887 esac
3888 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
3889   echo "Setting warning flags = $build_warnings" 6>&1
3890 fi
3891 fi; WARN_CFLAGS=""
3892 if test "x${build_warnings}" != x -a "x$GCC" = xyes ; then
3893     WARN_CFLAGS="${build_warnings}"
3894 fi
3895
3896
3897 # Generate a header file
3898           ac_config_headers="$ac_config_headers config.h:config.in"
3899
3900
3901 # If we are on a DOS filesystem, we must use gdb.ini rather than
3902 # .gdbinit.
3903 case "${host}" in
3904   *-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-windows*)
3905     GDBINIT="gdb.ini"
3906               ac_config_files="$ac_config_files gdb.ini:gdbinit.in"
3907
3908     ;;
3909   *)
3910     GDBINIT=".gdbinit"
3911               ac_config_files="$ac_config_files .gdbinit:gdbinit.in"
3912
3913     ;;
3914 esac
3915
3916
3917 te_file=generic
3918
3919 # Makefile target for installing gas in $(tooldir)/bin.
3920 install_tooldir=install-exec-tooldir
3921
3922 canon_targets=""
3923 all_targets=no
3924 if test -n "$enable_targets" ; then
3925   for t in `echo $enable_targets | sed 's/,/ /g'`; do
3926     if test $t = "all"; then
3927       all_targets=yes
3928       continue
3929     fi
3930     result=`$ac_config_sub $t 2>/dev/null`
3931     if test -n "$result" ; then
3932       canon_targets="$canon_targets $result"
3933 #    else
3934 #      # Permit "all", etc.  We don't support it yet though.
3935 #      canon_targets="$canon_targets $t"
3936     fi
3937   done
3938   _gas_uniq_list="$canon_targets"
3939 _gas_uniq_newlist=""
3940 for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do
3941   case $_gas_uniq_i in
3942   _gas_uniq_dummy) ;;
3943   *) case " $_gas_uniq_newlist " in
3944        *" $_gas_uniq_i "*) ;;
3945        *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;;
3946      esac ;;
3947   esac
3948 done
3949 canon_targets=$_gas_uniq_newlist
3950
3951 fi
3952
3953 emulations=""
3954
3955 for this_target in $target $canon_targets ; do
3956
3957     eval `echo $this_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/cpu=\1 vendor=\2 os=\3/'`
3958
3959     # check for architecture variants
3960     arch=
3961     endian=
3962     case ${cpu} in
3963       am33_2.0)         cpu_type=mn10300 endian=little ;;
3964       alpha*)           cpu_type=alpha ;;
3965       arm*b|xscale*b|strongarm*b) cpu_type=arm endian=big ;;
3966       arm*|xscale*|strongarm*)    cpu_type=arm endian=little ;;
3967       c4x*)             cpu_type=tic4x ;;
3968       hppa*)            cpu_type=hppa ;;
3969       i[3-7]86)         cpu_type=i386 arch=i386;;
3970       x86_64)           cpu_type=i386 arch=x86_64;;
3971       ia64)             cpu_type=ia64 ;;
3972       ip2k)             cpu_type=ip2k endian=big ;;
3973       iq2000)           cpu_type=iq2000 endian=big ;;
3974       m6811|m6812|m68hc12) cpu_type=m68hc11 ;;
3975       m680[012346]0)    cpu_type=m68k ;;
3976       m68008)           cpu_type=m68k ;;
3977       m683??)           cpu_type=m68k ;;
3978       m5200)            cpu_type=m68k ;;
3979       m8*)              cpu_type=m88k ;;
3980       mips*el)          cpu_type=mips endian=little ;;
3981       mips*)            cpu_type=mips endian=big ;;
3982       or32*)            cpu_type=or32 endian=big ;;
3983       pjl*)             cpu_type=pj endian=little ;;
3984       pj*)              cpu_type=pj endian=big ;;
3985       powerpc*le*)      cpu_type=ppc endian=little ;;
3986       powerpc*)         cpu_type=ppc endian=big ;;
3987       rs6000*)          cpu_type=ppc ;;
3988       s390x*)           cpu_type=s390 arch=s390x ;;
3989       s390*)            cpu_type=s390 arch=s390 ;;
3990       sh5*)             cpu_type=sh64 endian=big ;;
3991       sh5le*)           cpu_type=sh64 endian=little ;;
3992       sh64*)            cpu_type=sh64 endian=big ;;
3993       sh64le*)          cpu_type=sh64 endian=little ;;
3994       sh*le)            cpu_type=sh endian=little ;;
3995       sh*)              cpu_type=sh endian=big ;;
3996       sparclite*)       cpu_type=sparc arch=sparclite ;;
3997       sparclet*)        cpu_type=sparc arch=sparclet ;;
3998       sparc64*)         cpu_type=sparc arch=v9-64 ;;
3999       sparc86x*)        cpu_type=sparc arch=sparc86x  ;;
4000       sparc*)           cpu_type=sparc arch=sparclite ;; # ??? See tc-sparc.c.
4001       v850*)            cpu_type=v850 ;;
4002       xtensa*)          cpu_type=xtensa arch=xtensa ;;
4003       *)                cpu_type=${cpu} ;;
4004     esac
4005
4006     if test ${this_target} = $target ; then
4007       target_cpu_type=${cpu_type}
4008     elif test ${target_cpu_type} != ${cpu_type} ; then
4009       continue
4010     fi
4011
4012     generic_target=${cpu_type}-$vendor-$os
4013     dev=no
4014     bfd_gas=no
4015     em=generic
4016
4017     # assign object format
4018     case ${generic_target} in
4019       a29k-*-coff)                      fmt=coff ;;
4020       a29k-amd-udi)                     fmt=coff ;;
4021       a29k-amd-ebmon)                   fmt=coff ;;
4022       a29k-nyu-sym1)                    fmt=coff ;;
4023       a29k-*-rtems*)                    fmt=coff ;;
4024       a29k-*-vxworks*)                  fmt=coff ;;
4025
4026       alpha*-*-*vms*)                   fmt=evax ;;
4027       alpha*-*-netware*)                fmt=ecoff ;;
4028       alpha*-*-osf*)                    fmt=ecoff ;;
4029       alpha*-*-linuxecoff*)             fmt=ecoff ;;
4030       alpha*-*-linux-gnu*)              fmt=elf em=linux ;;
4031       alpha*-*-netbsd*)                 fmt=elf em=nbsd ;;
4032       alpha*-*-openbsd*)                fmt=elf em=obsd ;;
4033
4034       # cpu_type for am33_2.0 is set to mn10300
4035       mn10300-*-linux*)                 fmt=elf bfd_gas=yes em=linux ;;
4036
4037       arc-*-elf*)                       fmt=elf ;;
4038
4039       arm-*-aout)                       fmt=aout ;;
4040       arm-*-coff | thumb-*-coff)        fmt=coff ;;
4041       arm-*-rtems* | thumb-*-rtems*)    fmt=elf ;;
4042       arm-*-elf | thumb-*-elf)          fmt=elf ;;
4043       arm-*-kaos*)                      fmt=elf ;;
4044       arm*-*-conix*)                    fmt=elf ;;
4045       arm-*-linux*aout*)                fmt=aout em=linux ;;
4046       arm*-*-linux-gnu*)                fmt=elf  em=linux ;;
4047       arm*-*-uclinux*)                  fmt=elf  em=linux ;;
4048       arm-*-netbsdelf*)                 fmt=elf  em=nbsd ;;
4049       arm-*-*n*bsd*)                    fmt=aout em=nbsd ;;
4050       arm-**-nto*)                      fmt=elf ;;
4051       arm-*-oabi | thumb-*-oabi)        fmt=elf ;;
4052       arm-epoc-pe | thumb-epoc-pe)      fmt=coff em=epoc-pe ;;
4053       arm-*-wince)                      fmt=coff em=wince-pe ;;
4054       arm-*-pe | thumb-*-pe)            fmt=coff em=pe ;;
4055       arm-*-riscix*)                    fmt=aout em=riscix ;;
4056       arm-*-vxworks)                    fmt=coff ;;
4057
4058       avr-*-*)                          fmt=elf ;;
4059
4060       cris-*-linux-gnu*)                fmt=multi bfd_gas=yes em=linux ;;
4061       cris-*-*)                         fmt=multi bfd_gas=yes ;;
4062
4063       d10v-*-*)                         fmt=elf ;;
4064       d30v-*-*)                         fmt=elf ;;
4065       dlx-*-*)                          fmt=elf ;;
4066
4067       fr30-*-*)                         fmt=elf ;;
4068       frv-*-*)                          fmt=elf ;;
4069
4070       hppa-*-linux*)    case ${cpu} in
4071                             hppa*64*)   fmt=elf em=hppalinux64;;
4072                             hppa*)      fmt=elf em=linux;;
4073                         esac ;;
4074       hppa-*-*elf*)                     fmt=elf em=hppa ;;
4075       hppa-*-lites*)                    fmt=elf em=hppa ;;
4076       hppa-*-netbsd*)                   fmt=elf em=nbsd ;;
4077       hppa-*-openbsd*)                  fmt=elf em=hppa ;;
4078       hppa-*-osf*)                      fmt=som em=hppa ;;
4079       hppa-*-rtems*)                    fmt=elf em=hppa ;;
4080       hppa-*-hpux11*)   case ${cpu} in
4081                             hppa*64*)   fmt=elf em=hppa64 ;;
4082                             hppa*)      fmt=som em=hppa ;;
4083                         esac ;;
4084       hppa-*-hpux*)                     fmt=som em=hppa ;;
4085       hppa-*-mpeix*)                    fmt=som em=hppa ;;
4086       hppa-*-bsd*)                      fmt=som em=hppa ;;
4087       hppa-*-hiux*)                     fmt=som em=hppa ;;
4088
4089       h8300-*-rtems*)                   fmt=coff ;;
4090       h8300-*-coff)                     fmt=coff ;;
4091       h8300-*-elf)                      fmt=elf ;;
4092       h8500-*-rtems*)                   fmt=coff ;;
4093       h8500-*-coff)                     fmt=coff ;;
4094
4095       i370-*-elf* | i370-*-linux*)      fmt=elf ;;
4096       i386-ibm-aix*)                    fmt=coff em=i386aix ;;
4097       i386-sequent-bsd*)                fmt=aout em=dynix ;;
4098       i386-*-beospe*)                   fmt=coff em=pe ;;
4099       i386-*-beos*)                     fmt=elf ;;
4100       i386-*-coff)                      fmt=coff ;;
4101       i386-*-elf)                       fmt=elf ;;
4102       i386-*-kaos*)                     fmt=elf ;;
4103       i386-*-bsd*)                      fmt=aout em=386bsd ;;
4104       i386-*-netbsd0.8)                 fmt=aout em=386bsd ;;
4105       i386-*-netbsdpe*)                 fmt=coff em=pe ;;
4106       i386-*-netbsd*-gnu* | \
4107       i386-*-knetbsd*-gnu | \
4108       i386-*-netbsdelf*)                fmt=elf em=nbsd ;;
4109       i386-*-*n*bsd*)   case ${cpu} in
4110                             x86_64)     fmt=elf em=nbsd ;;
4111                             *)          fmt=aout em=nbsd ;;
4112                         esac ;;
4113       i386-*-linux*aout*)               fmt=aout em=linux ;;
4114       i386-*-linux*oldld)               fmt=aout em=linux ;;
4115       i386-*-linux*coff*)               fmt=coff em=linux ;;
4116       i386-*-linux-gnu*)                fmt=elf em=linux ;;
4117       x86_64-*-linux-gnu*)              fmt=elf em=linux ;;
4118       i386-*-lynxos*)                   fmt=coff em=lynx ;;
4119       i386-*-sysv[45]*)                 fmt=elf ;;
4120       i386-*-solaris*)                  fmt=elf ;;
4121       i386-*-freebsdaout*)              fmt=aout em=386bsd ;;
4122       i386-*-freebsd[12].*)             fmt=aout em=386bsd ;;
4123       i386-*-freebsd[12])               fmt=aout em=386bsd ;;
4124       i386-*-freebsd* | i386-*-kfreebsd*-gnu)
4125                                         fmt=elf em=freebsd ;;
4126       i386-*-sysv*)                     fmt=coff ;;
4127       i386-*-sco3.2v5*coff)             fmt=coff ;;
4128       i386-*-isc*)                      fmt=coff ;;
4129       i386-*-sco3.2v5*)                 fmt=elf
4130           if test ${this_target} = $target; then
4131
4132 cat >>confdefs.h <<\_ACEOF
4133 #define SCO_ELF 1
4134 _ACEOF
4135
4136           fi ;;
4137       i386-*-sco3.2*)                   fmt=coff ;;
4138       i386-*-vsta)                      fmt=aout ;;
4139       i386-*-msdosdjgpp* \
4140       | i386-*-go32* \
4141       | i386-go32-rtems*)               fmt=coff em=go32
4142
4143 cat >>confdefs.h <<\_ACEOF
4144 #define STRICTCOFF 1
4145 _ACEOF
4146  ;;
4147       i386-*-rtemself*)                 fmt=elf ;;
4148       i386-*-rtemscoff*)                fmt=coff ;;
4149       i386-*-rtems*)                    fmt=elf ;;
4150       i386-*-gnu*)                      fmt=elf ;;
4151       i386-*-mach*)                     fmt=aout em=mach ;;
4152       i386-*-msdos*)                    fmt=aout ;;
4153       i386-*-moss*)                     fmt=elf ;;
4154       i386-*-pe)                        fmt=coff em=pe ;;
4155       i386-*-cygwin*)                   fmt=coff em=pe ;;
4156       i386-*-interix*)                  fmt=coff em=interix ;;
4157       i386-*-mingw32*)                  fmt=coff em=pe ;;
4158       i386-*-nto-qnx*)                  fmt=elf ;;
4159       i386-*-*nt*)                      fmt=coff em=pe ;;
4160       i386-*-vxworks*)                  fmt=aout ;;
4161       i386-*-chaos)                     fmt=elf ;;
4162
4163       i860-*-*)                         fmt=elf endian=little
4164                 { echo "$as_me:$LINENO: WARNING: GAS support for ${generic_target} is preliminary and a work in progress" >&5
4165 echo "$as_me: WARNING: GAS support for ${generic_target} is preliminary and a work in progress" >&2;} ;;
4166       i960-*-bout)                      fmt=bout ;;
4167       i960-*-coff)                      fmt=coff em=ic960 ;;
4168       i960-*-rtems*)                    fmt=coff em=ic960 ;;
4169       i960-*-nindy*)                    fmt=bout ;;
4170       i960-*-vxworks5.0)                fmt=bout ;;
4171       i960-*-vxworks5.*)                fmt=coff em=ic960 ;;
4172       i960-*-vxworks*)                  fmt=bout ;;
4173       i960-*-elf*)                      fmt=elf ;;
4174
4175       ia64-*-elf*)                      fmt=elf ;;
4176       ia64-*-aix*)                      fmt=elf em=ia64aix ;;
4177       ia64-*-linux-gnu*)                fmt=elf em=linux ;;
4178       ia64-*-hpux*)                     fmt=elf em=hpux ;;
4179       ia64-*-netbsd*)                   fmt=elf em=nbsd ;;
4180
4181       ip2k-*-*)                         fmt=elf ;;
4182
4183       iq2000-*-elf)                     fmt=elf bfd_gas=yes ;;
4184
4185       m32r-*-*)                         fmt=elf ;;
4186
4187       m68hc11-*-* | m6811-*-*)          fmt=elf ;;
4188       m68hc12-*-* | m6812-*-*)          fmt=elf ;;
4189
4190       m68k-*-vxworks*)                  fmt=aout em=sun3 ;;
4191       m68k-ericsson-ose)                fmt=aout em=sun3 ;;
4192       m68k-*-sunos*)                    fmt=aout em=sun3 ;;
4193       m68k-motorola-sysv*)              fmt=coff em=delta ;;
4194       m68k-bull-sysv3*)                 fmt=coff em=dpx2 ;;
4195       m68k-apollo-*)                    fmt=coff em=apollo ;;
4196       m68k-*-elf*)                      fmt=elf ;;
4197       m68k-*-sysv4*)                    fmt=elf em=svr4 ;;
4198       m68k-*-sysv*)                     fmt=coff ;;
4199       m68k-*-coff | m68k-*-rtemscoff*)  fmt=coff ;;
4200       m68k-*-rtems*)                    fmt=elf ;;
4201       m68k-*-hpux*)                     fmt=hp300 em=hp300 ;;
4202       m68k-*-linux*aout*)               fmt=aout em=linux ;;
4203       m68k-*-linux-gnu*)                fmt=elf em=linux ;;
4204       m68k-*-gnu*)                      fmt=elf ;;
4205       m68k-*-lynxos*)                   fmt=coff em=lynx ;;
4206       m68k-*-netbsdelf*)                fmt=elf em=nbsd ;;
4207       m68k-*-netbsd*)                   fmt=aout em=nbsd bfd_gas=yes ;;
4208       m68k-*-openbsd*)                  fmt=aout em=nbsd bfd_gas=yes ;;
4209       m68k-apple-aux*)                  fmt=coff em=aux ;;
4210       m68k-*-psos*)                     fmt=elf em=psos;;
4211
4212       m88k-motorola-sysv3*)             fmt=coff em=delt88 ;;
4213       m88k-*-coff*)                     fmt=coff ;;
4214
4215       mcore-*-elf)                      fmt=elf ;;
4216       mcore-*-pe)                       fmt=coff em=pe bfd_gas=yes ;;
4217
4218       # don't change em like *-*-bsd does
4219       mips-dec-openbsd*)                fmt=elf endian=little ;;
4220       mips-dec-bsd*)                    fmt=aout endian=little ;;
4221       mips-sony-bsd*)                   fmt=ecoff ;;
4222       mips-*-bsd*)
4223             { { echo "$as_me:$LINENO: error: Unknown vendor for mips-bsd configuration." >&5
4224 echo "$as_me: error: Unknown vendor for mips-bsd configuration." >&2;}
4225    { (exit 1); exit 1; }; } ;;
4226       mips-*-ultrix*)                   fmt=ecoff endian=little ;;
4227       mips-*-osf*)                      fmt=ecoff endian=little ;;
4228       mips-*-ecoff*)                    fmt=ecoff ;;
4229       mips-*-pe*)                       fmt=coff endian=little em=pe ;;
4230       mips-*-irix6*)                    fmt=elf em=irix ;;
4231       mips-*-irix5*)                    fmt=elf em=irix ;;
4232       mips-*-irix*)                     fmt=ecoff em=irix ;;
4233       mips-*-lnews*)                    fmt=ecoff em=lnews ;;
4234       mips-*-riscos*)                   fmt=ecoff ;;
4235       mips*-*-linux*)                   fmt=elf em=tmips ;;
4236       mips-*-sysv4*MP* | mips-*-gnu*)   fmt=elf em=tmips ;;
4237       mips-*-sysv*)                     fmt=ecoff ;;
4238       mips-*-elf* | mips-*-rtems*)      fmt=elf ;;
4239       mips-*-netbsd*)                   fmt=elf ;;
4240       mips-*-openbsd*)                  fmt=elf ;;
4241       mips-*-vxworks*)                  fmt=elf ;;
4242
4243       mmix-*-*)                         fmt=elf ;;
4244       mn10200-*-*)                      fmt=elf ;;
4245       mn10300-*-*)                      fmt=elf ;;
4246       msp430-*-*)                       fmt=elf ;;
4247       openrisc-*-*)                     fmt=elf ;;
4248       or32-*-rtems*)                    fmt=coff ;;
4249       or32-*-coff)                      fmt=coff ;;
4250       or32-*-elf)                       fmt=elf ;;
4251       pj*)                              fmt=elf ;;
4252
4253       ppc-*-pe | ppc-*-cygwin*)         fmt=coff em=pe ;;
4254       ppc-*-winnt*)                     fmt=coff em=pe ;;
4255       ppc-*-aix5*)                      fmt=coff em=aix5 ;;
4256       ppc-*-aix*)                       fmt=coff ;;
4257       ppc-*-beos*)                      fmt=coff ;;
4258       ppc-*-*n*bsd* | ppc-*-elf*)       fmt=elf ;;
4259       ppc-*-eabi* | ppc-*-sysv4*)       fmt=elf ;;
4260       ppc-*-linux-gnu*)                 fmt=elf em=linux
4261             case "$endian" in
4262                 big)  ;;
4263                 *)    { { echo "$as_me:$LINENO: error: GNU/Linux must be configured big endian" >&5
4264 echo "$as_me: error: GNU/Linux must be configured big endian" >&2;}
4265    { (exit 1); exit 1; }; } ;;
4266             esac ;;
4267       ppc-*-solaris*)                   fmt=elf
4268             if test ${this_target} = $target; then
4269
4270 cat >>confdefs.h <<\_ACEOF
4271 #define TARGET_SOLARIS_COMMENT 1
4272 _ACEOF
4273
4274             fi
4275             if test x${endian} = xbig; then
4276                 { { echo "$as_me:$LINENO: error: Solaris must be configured little endian" >&5
4277 echo "$as_me: error: Solaris must be configured little endian" >&2;}
4278    { (exit 1); exit 1; }; }
4279             fi ;;
4280       ppc-*-rtems*)                     fmt=elf ;;
4281       ppc-*-macos* | ppc-*-mpw*)        fmt=coff em=macos ;;
4282       ppc-*-netware*)                   fmt=elf em=ppcnw ;;
4283       ppc-**-nto*)                      fmt=elf ;;
4284       ppc-*-vxworks*)                   fmt=elf ;;
4285       ppc-*-windiss*)                   fmt=elf ;;
4286       ppc-*-kaos*)                      fmt=elf ;;
4287
4288       s390x-*-linux-gnu*)               fmt=elf em=linux ;;
4289       s390-*-linux-gnu*)                fmt=elf em=linux ;;
4290
4291       sh*-*-linux*)                     fmt=elf em=linux
4292             case ${cpu} in
4293                 sh*eb)  endian=big ;;
4294                 *)      endian=little ;;
4295             esac ;;
4296       sh5*-*-netbsd*)                   fmt=elf em=nbsd ;;
4297       sh64*-*-netbsd*)                  fmt=elf em=nbsd ;;
4298       sh*-*-netbsdelf*)                 fmt=elf em=nbsd ;;
4299       sh-*-elf*)                        fmt=elf ;;
4300       sh-*-coff*)                       fmt=coff ;;
4301       sh-*-nto*)                        fmt=elf ;;
4302       sh-*-pe*)                         fmt=coff em=pe bfd_gas=yes endian=little ;;
4303       sh-*-rtemself*)                   fmt=elf ;;
4304       sh-*-rtems*)                      fmt=coff ;;
4305       sh-*-kaos*)                       fmt=elf ;;
4306       shle*-*-kaos*)                    fmt=elf ;;
4307       sh64-*-elf*)                      fmt=elf ;;
4308
4309       ns32k-pc532-mach*)                fmt=aout em=pc532mach ;;
4310       ns32k-pc532-ux*)                  fmt=aout em=pc532mach ;;
4311       ns32k-pc532-lites*)               fmt=aout em=nbsd532 ;;
4312       ns32k-*-*n*bsd*)                  fmt=aout em=nbsd532 ;;
4313
4314       sparc-*-rtemsaout*)               fmt=aout ;;
4315       sparc-*-rtemself*)                fmt=elf ;;
4316       sparc-*-rtems*)                   fmt=elf ;;
4317       sparc-*-sunos4*)                  fmt=aout em=sun3 ;;
4318       sparc-*-aout | sparc*-*-vxworks*) fmt=aout em=sparcaout ;;
4319       sparc-*-coff)                     fmt=coff ;;
4320       sparc-*-linux*aout*)              fmt=aout em=linux ;;
4321       sparc-*-linux-gnu*)               fmt=elf em=linux ;;
4322       sparc-*-lynxos*)                  fmt=coff em=lynx ;;
4323       sparc-fujitsu-none)               fmt=aout ;;
4324       sparc-*-elf)                      fmt=elf ;;
4325       sparc-*-sysv4*)                   fmt=elf ;;
4326       sparc-*-solaris*)                 fmt=elf ;;
4327       sparc-*-netbsdelf*)               fmt=elf em=nbsd ;;
4328       sparc-*-*n*bsd*)  case ${cpu} in
4329                             sparc64)    fmt=elf em=nbsd ;;
4330                             *)          fmt=aout em=nbsd ;;
4331                         esac ;;
4332       strongarm-*-coff)                 fmt=coff ;;
4333       strongarm-*-elf)                  fmt=elf ;;
4334       strongarm-*-kaos*)                fmt=elf ;;
4335       xscale-*-coff)                    fmt=coff ;;
4336       xscale-*-elf)                     fmt=elf ;;
4337
4338       tic30-*-*aout*)                   fmt=aout bfd_gas=yes ;;
4339       tic30-*-*coff*)                   fmt=coff bfd_gas=yes ;;
4340       tic4x-*-* | c4x-*-*)              fmt=coff bfd_gas=yes ;;
4341       tic54x-*-* | c54x*-*-*)           fmt=coff bfd_gas=yes need_libm=yes;;
4342       tic80-*-*)                        fmt=coff ;;
4343
4344       v850-*-*)                         fmt=elf ;;
4345       v850e-*-*)                        fmt=elf ;;
4346       v850ea-*-*)                       fmt=elf ;;
4347
4348       vax-*-netbsdelf*)                 fmt=elf em=nbsd ;;
4349       vax-*-netbsd*)                    fmt=aout em=nbsd ;;
4350       vax-*-bsd* | vax-*-ultrix*)       fmt=aout ;;
4351       vax-*-vms)                        fmt=vms ;;
4352
4353       w65-*-*)                          fmt=coff ;;
4354
4355       xstormy16-*-*)                    fmt=elf ;;
4356
4357       xtensa-*-*)                       fmt=elf ;;
4358
4359       z8k-*-coff | z8k-*-sim)           fmt=coff ;;
4360
4361       *-*-aout | *-*-scout)             fmt=aout ;;
4362       *-*-freebsd* | *-*-kfreebsd*-gnu) fmt=elf em=freebsd ;;
4363       *-*-nindy*)                       fmt=bout ;;
4364       *-*-bsd*)                         fmt=aout em=sun3 ;;
4365       *-*-generic)                      fmt=generic ;;
4366       *-*-xray | *-*-hms)               fmt=coff ;;
4367       *-*-sim)                          fmt=coff ;;
4368       *-*-elf | *-*-sysv4* | *-*-solaris*) fmt=elf dev=yes ;;
4369       *-*-aros*)                                fmt=elf em=linux bfd_gas=yes ;;
4370       *-*-vxworks)                      fmt=aout ;;
4371       *-*-netware)                      fmt=elf ;;
4372     esac
4373
4374     if test ${this_target} = $target ; then
4375       endian_def=
4376       if test x${endian} = xbig; then
4377         endian_def=1
4378       elif test x${endian} = xlittle; then
4379         endian_def=0
4380       fi
4381       if test x${endian_def} != x; then
4382
4383 cat >>confdefs.h <<_ACEOF
4384 #define TARGET_BYTES_BIG_ENDIAN $endian_def
4385 _ACEOF
4386
4387       fi
4388     fi
4389
4390     case ${cpu_type}-${fmt} in
4391         alpha*-* | arm-* | i386-* | ia64*-* | mips-* | ns32k-* \
4392                 | pdp11-* | ppc-* | sparc-* | strongarm-* | xscale-* \
4393                 | *-elf | *-ecoff | *-som)
4394             bfd_gas=yes ;;
4395     esac
4396
4397 # Other random stuff.
4398
4399     case ${cpu_type} in
4400       mips)
4401         # Set mips_cpu to the name of the default CPU.
4402         case ${target_cpu} in
4403           mips | mipsbe | mipseb | mipsle | mipsel | mips64 | mips64el)
4404             mips_cpu=from-abi
4405             ;;
4406           mipsisa32 | mipsisa32el)
4407             mips_cpu=mips32
4408             ;;
4409           mipsisa32r2 | mipsisa32r2el)
4410             mips_cpu=mips32r2
4411             ;;
4412           mipsisa64 | mipsisa64el)
4413             mips_cpu=mips64
4414             ;;
4415           mipsisa64r2 | mipsisa64r2el)
4416             mips_cpu=mips64r2
4417             ;;
4418           mipstx39 | mipstx39el)
4419             mips_cpu=r3900
4420             ;;
4421           mips64vr | mips64vrel)
4422             mips_cpu=vr4100
4423             ;;
4424           mipsisa32r2* | mipsisa64r2*)
4425             mips_cpu=`echo $target_cpu | sed -e 's/[a-z]*..r2//' -e 's/el$//'`
4426             ;;
4427           mips64* | mipsisa64* | mipsisa32*)
4428             mips_cpu=`echo $target_cpu | sed -e 's/[a-z]*..//' -e 's/el$//'`
4429             ;;
4430           *)
4431             { { echo "$as_me:$LINENO: error: $target_cpu isn't a supported MIPS CPU name" >&5
4432 echo "$as_me: error: $target_cpu isn't a supported MIPS CPU name" >&2;}
4433    { (exit 1); exit 1; }; }
4434             ;;
4435         esac
4436         # See whether it's appropriate to set E_MIPS_ABI_O32 for o32
4437         # binaries.  It's a GNU extension that some OSes don't understand.
4438         # The value only matters on ELF targets.
4439         case ${target} in
4440           *-*-irix*)
4441             use_e_mips_abi_o32=0
4442             ;;
4443           *)
4444             use_e_mips_abi_o32=1
4445             ;;
4446         esac
4447         # Decide whether to generate 32-bit or 64-bit code by default.
4448         # Used to resolve -march=from-abi when an embedded ABI is selected.
4449         case ${target} in
4450           mips64*-*-* | mipsisa64*-*-*)
4451             mips_default_64bit=1
4452             ;;
4453           *)
4454             mips_default_64bit=0
4455             ;;
4456         esac
4457         # Decide which ABI to target by default.
4458         case ${target} in
4459           mips64*-linux* | mips-sgi-irix6*)
4460             mips_default_abi=N32_ABI
4461             ;;
4462           mips*-linux*)
4463             mips_default_abi=O32_ABI
4464             ;;
4465           *)
4466             mips_default_abi=NO_ABI
4467             ;;
4468         esac
4469
4470 cat >>confdefs.h <<_ACEOF
4471 #define MIPS_CPU_STRING_DEFAULT "$mips_cpu"
4472 _ACEOF
4473
4474
4475 cat >>confdefs.h <<_ACEOF
4476 #define USE_E_MIPS_ABI_O32 $use_e_mips_abi_o32
4477 _ACEOF
4478
4479
4480 cat >>confdefs.h <<_ACEOF
4481 #define MIPS_DEFAULT_64BIT $mips_default_64bit
4482 _ACEOF
4483
4484
4485 cat >>confdefs.h <<_ACEOF
4486 #define MIPS_DEFAULT_ABI $mips_default_abi
4487 _ACEOF
4488
4489         ;;
4490     esac
4491
4492     # Do we need the opcodes library?
4493     case ${cpu_type} in
4494       vax | i386 | tic30)
4495         ;;
4496
4497       *)
4498         need_opcodes=yes
4499
4500         case "${enable_shared}" in
4501         yes) shared_opcodes=true ;;
4502         *opcodes*) shared_opcodes=true ;;
4503         *) shared_opcodes=false ;;
4504         esac
4505         if test "${shared_opcodes}" = "true"; then
4506           # A shared libopcodes must be linked against libbfd.
4507           need_bfd=yes
4508         fi
4509         ;;
4510     esac
4511
4512     # Any other special object files needed ?
4513     case ${cpu_type} in
4514       fr30 | ip2k | iq2000 | m32r | openrisc)
4515         using_cgen=yes
4516         ;;
4517
4518       frv)
4519         using_cgen=yes
4520         ;;
4521       m68k)
4522         case ${extra_objects} in
4523         *m68k-parse.o*) ;;
4524         *) extra_objects="$extra_objects m68k-parse.o" ;;
4525         esac
4526         ;;
4527
4528       mips)
4529         echo ${extra_objects} | grep -s "itbl-parse.o"
4530         if test $? -ne 0 ; then
4531           extra_objects="$extra_objects itbl-parse.o"
4532         fi
4533
4534         echo ${extra_objects} | grep -s "itbl-lex.o"
4535         if test $? -ne 0 ; then
4536           extra_objects="$extra_objects itbl-lex.o"
4537         fi
4538
4539         echo ${extra_objects} | grep -s "itbl-ops.o"
4540         if test $? -ne 0 ; then
4541           extra_objects="$extra_objects itbl-ops.o"
4542         fi
4543         ;;
4544
4545       i386 | s390 | sparc)
4546         if test $this_target = $target ; then
4547
4548 cat >>confdefs.h <<_ACEOF
4549 #define DEFAULT_ARCH "${arch}"
4550 _ACEOF
4551
4552         fi
4553         ;;
4554
4555       xstormy16)
4556         using_cgen=yes
4557         ;;
4558
4559       xtensa)
4560         echo ${extra_objects} | grep -s "xtensa-relax.o"
4561         if test $? -ne 0 ; then
4562           extra_objects="$extra_objects xtensa-relax.o"
4563         fi
4564         ;;
4565
4566       *)
4567         ;;
4568     esac
4569
4570     if test $using_cgen = yes ; then
4571         case "x${extra_objects}" in
4572         *cgen.o*) ;;
4573         *) extra_objects="$extra_objects cgen.o" ;;
4574         esac
4575     fi
4576
4577 # See if we really can support this configuration with the emulation code.
4578
4579     if test $this_target = $target ; then
4580       primary_bfd_gas=$bfd_gas
4581       obj_format=$fmt
4582       te_file=$em
4583
4584       if test $bfd_gas = no ; then
4585         # Can't support other configurations this way.
4586         break
4587       fi
4588     elif test $bfd_gas = no ; then
4589       # Can't support this configuration.
4590       break
4591     fi
4592
4593 # From target name and format, produce a list of supported emulations.
4594
4595     case ${generic_target}-${fmt} in
4596       mips-*-irix5*-*)  emulation="mipsbelf mipslelf mipself mipsbecoff mipslecoff mipsecoff" ;;
4597       mips*-*-linux*-*) case "$endian" in
4598                         big)    emulation="mipsbelf mipslelf mipself" ;;
4599                         *)      emulation="mipslelf mipsbelf mipself" ;;
4600                         esac ;;
4601       mips-*-lnews*-ecoff) ;;
4602       mips-*-*-ecoff)   case "$endian" in
4603                         big)    emulation="mipsbecoff mipslecoff mipsecoff" ;;
4604                         *)      emulation="mipslecoff mipsbecoff mipsecoff" ;;
4605                         esac ;;
4606       mips-*-*-elf)     case "$endian" in
4607                         big)    emulation="mipsbelf mipslelf mipself" ;;
4608                         *)      emulation="mipslelf mipsbelf mipself" ;;
4609                         esac ;;
4610       mips-*-sysv4*MP*-*) emulation="mipsbelf mipslelf mipself mipsbecoff mipslecoff mipsecoff" ;;
4611       # i386-pc-pe-coff != i386-pc-coff.
4612       i386-*-pe-coff)   ;;
4613       # Uncommenting the next line will turn on support for i386 AOUT
4614       # for the default linux configuration
4615       # i386-*-linux*-elf) emulation="i386elf i386aout" ;;
4616       #
4617       i386-*-aout)      emulation="i386aout" ;;
4618       i386-*-coff)      emulation="i386coff" ;;
4619       i386-*-elf)       emulation="i386elf" ;;
4620
4621       # Always all formats.  The first stated emulation becomes the default.
4622       cris-*-*aout*)    emulation="crisaout criself" ;;
4623       cris-*-*)         emulation="criself crisaout" ;;
4624     esac
4625
4626     emulations="$emulations $emulation"
4627
4628 done
4629
4630 # Turn on all targets if possible
4631 if test ${all_targets} = "yes"; then
4632   case ${target_cpu_type} in
4633   i386)
4634     case ${obj_format} in
4635     aout)
4636       emulations="$emulations i386coff i386elf"
4637       ;;
4638     coff)
4639       emulations="$emulations i386aout i386elf"
4640     ;;
4641     elf)
4642       emulations="$emulations i386aout i386coff"
4643       ;;
4644     esac
4645   ;;
4646   esac
4647 fi
4648
4649 # Assign floating point type.  Most processors with FP support
4650 # IEEE FP.  On those that don't support FP at all, usually IEEE
4651 # is emulated.
4652 case ${target_cpu} in
4653   vax | tahoe ) atof=${target_cpu} ;;
4654   pdp11)        atof=vax ;;
4655   *)            atof=ieee ;;
4656 esac
4657
4658 case "${obj_format}" in
4659   "") { { echo "$as_me:$LINENO: error: GAS does not know what format to use for target ${target}" >&5
4660 echo "$as_me: error: GAS does not know what format to use for target ${target}" >&2;}
4661    { (exit 1); exit 1; }; } ;;
4662 esac
4663
4664 # Unfortunately the cpu in cpu-opc.h file isn't always $(TARGET_CPU).
4665 cgen_cpu_prefix=""
4666 if test $using_cgen = yes ; then
4667   case ${target_cpu} in
4668     *) cgen_cpu_prefix=${target_cpu} ;;
4669   esac
4670
4671
4672 cat >>confdefs.h <<\_ACEOF
4673 #define USING_CGEN 1
4674 _ACEOF
4675
4676 fi
4677
4678
4679 if test ! -r ${srcdir}/config/tc-${target_cpu_type}.c; then
4680   { { echo "$as_me:$LINENO: error: GAS does not support target CPU ${target_cpu_type}" >&5
4681 echo "$as_me: error: GAS does not support target CPU ${target_cpu_type}" >&2;}
4682    { (exit 1); exit 1; }; }
4683 fi
4684
4685 if test ! -r ${srcdir}/config/obj-${obj_format}.c; then
4686   { { echo "$as_me:$LINENO: error: GAS does not have support for object file format ${obj_format}" >&5
4687 echo "$as_me: error: GAS does not have support for object file format ${obj_format}" >&2;}
4688    { (exit 1); exit 1; }; }
4689 fi
4690
4691 case ${user_bfd_gas}-${primary_bfd_gas} in
4692   yes-yes | no-no)
4693     # We didn't override user's choice.
4694     ;;
4695   no-yes)
4696     { echo "$as_me:$LINENO: WARNING: Use of BFD is required for ${target}; overriding config options." >&5
4697 echo "$as_me: WARNING: Use of BFD is required for ${target}; overriding config options." >&2;}
4698     ;;
4699   no-preferred)
4700     primary_bfd_gas=no
4701     ;;
4702   *-preferred)
4703     primary_bfd_gas=yes
4704     ;;
4705   yes-*)
4706     primary_bfd_gas=yes
4707     ;;
4708   -*)
4709     # User specified nothing.
4710     ;;
4711 esac
4712
4713 # Some COFF configurations want these random other flags set.
4714 case ${obj_format} in
4715   coff)
4716     case ${target_cpu_type} in
4717       i386)
4718 cat >>confdefs.h <<\_ACEOF
4719 #define I386COFF 1
4720 _ACEOF
4721  ;;
4722       m68k)
4723 cat >>confdefs.h <<\_ACEOF
4724 #define M68KCOFF 1
4725 _ACEOF
4726  ;;
4727       m88k)
4728 cat >>confdefs.h <<\_ACEOF
4729 #define M88KCOFF 1
4730 _ACEOF
4731  ;;
4732     esac
4733     ;;
4734 esac
4735
4736 # Getting this done right is going to be a bitch.  Each configuration specified
4737 # with --enable-targets=... should be checked for environment, format, cpu, and
4738 # bfd_gas setting.
4739 #
4740 # For each configuration, the necessary object file support code must be linked
4741 # in.  This might be only one, it might be up to four.  The necessary emulation
4742 # code needs to be provided, too.
4743 #
4744 # And then there's "--enable-targets=all"....
4745 #
4746 # For now, just always do it for MIPS ELF or ECOFF configurations.  Sigh.
4747
4748 formats="${obj_format}"
4749 emfiles=""
4750 EMULATIONS=""
4751 _gas_uniq_list="$emulations"
4752 _gas_uniq_newlist=""
4753 for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do
4754   case $_gas_uniq_i in
4755   _gas_uniq_dummy) ;;
4756   *) case " $_gas_uniq_newlist " in
4757        *" $_gas_uniq_i "*) ;;
4758        *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;;
4759      esac ;;
4760   esac
4761 done
4762 emulations=$_gas_uniq_newlist
4763
4764 for em in . $emulations ; do
4765   case $em in
4766     .)  continue ;;
4767     mipsbelf | mipslelf | mipself)
4768         fmt=elf   file=mipself ;;
4769     mipsbecoff | mipslecoff | mipsecoff)
4770         fmt=ecoff file=mipsecoff ;;
4771     *coff)
4772         fmt=coff  file=$em ;;
4773     *aout)
4774         fmt=aout file=$em ;;
4775     *elf)
4776         fmt=elf file=$em ;;
4777   esac
4778   formats="$formats $fmt"
4779   emfiles="$emfiles e-$file.o"
4780   EMULATIONS="$EMULATIONS &$em,"
4781 done
4782 _gas_uniq_list="$formats"
4783 _gas_uniq_newlist=""
4784 for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do
4785   case $_gas_uniq_i in
4786   _gas_uniq_dummy) ;;
4787   *) case " $_gas_uniq_newlist " in
4788        *" $_gas_uniq_i "*) ;;
4789        *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;;
4790      esac ;;
4791   esac
4792 done
4793 formats=$_gas_uniq_newlist
4794
4795 _gas_uniq_list="$emfiles"
4796 _gas_uniq_newlist=""
4797 for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do
4798   case $_gas_uniq_i in
4799   _gas_uniq_dummy) ;;
4800   *) case " $_gas_uniq_newlist " in
4801        *" $_gas_uniq_i "*) ;;
4802        *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;;
4803      esac ;;
4804   esac
4805 done
4806 emfiles=$_gas_uniq_newlist
4807
4808 if test `set . $formats ; shift ; echo $#` -gt 1 ; then
4809   for fmt in $formats ; do
4810     case $fmt in
4811       aout)
4812 cat >>confdefs.h <<\_ACEOF
4813 #define OBJ_MAYBE_AOUT 1
4814 _ACEOF
4815    ;;
4816       bout)
4817 cat >>confdefs.h <<\_ACEOF
4818 #define OBJ_MAYBE_BOUT 1
4819 _ACEOF
4820    ;;
4821       coff)
4822 cat >>confdefs.h <<\_ACEOF
4823 #define OBJ_MAYBE_COFF 1
4824 _ACEOF
4825     ;;
4826       ecoff)
4827 cat >>confdefs.h <<\_ACEOF
4828 #define OBJ_MAYBE_ECOFF 1
4829 _ACEOF
4830    ;;
4831       elf)
4832 cat >>confdefs.h <<\_ACEOF
4833 #define OBJ_MAYBE_ELF 1
4834 _ACEOF
4835      ;;
4836       generic)
4837 cat >>confdefs.h <<\_ACEOF
4838 #define OBJ_MAYBE_GENERIC 1
4839 _ACEOF
4840  ;;
4841       hp300)
4842 cat >>confdefs.h <<\_ACEOF
4843 #define OBJ_MAYBE_HP300 1
4844 _ACEOF
4845    ;;
4846       ieee)
4847 cat >>confdefs.h <<\_ACEOF
4848 #define OBJ_MAYBE_IEEE 1
4849 _ACEOF
4850     ;;
4851       som)
4852 cat >>confdefs.h <<\_ACEOF
4853 #define OBJ_MAYBE_SOM 1
4854 _ACEOF
4855      ;;
4856       vms)
4857 cat >>confdefs.h <<\_ACEOF
4858 #define OBJ_MAYBE_VMS 1
4859 _ACEOF
4860      ;;
4861     esac
4862     extra_objects="$extra_objects obj-$fmt.o"
4863   done
4864   obj_format=multi
4865 fi
4866 if test `set . $emfiles ; shift ; echo $#` -gt 0 ; then
4867   DEFAULT_EMULATION=`set . $emulations ; echo $2`
4868   # e-mips* has more than one emulation per file, e-i386* has just one at the
4869   # moment.  If only one emulation is specified, then don't define
4870   # USE_EMULATIONS or include any of the e-files as they will only be bloat.
4871   case "${obj_format}${emfiles}" in
4872     multi* | *mips*)
4873       extra_objects="$extra_objects $emfiles"
4874
4875 cat >>confdefs.h <<\_ACEOF
4876 #define USE_EMULATIONS 1
4877 _ACEOF
4878  ;;
4879   esac
4880 fi
4881
4882
4883 cat >>confdefs.h <<_ACEOF
4884 #define EMULATIONS $EMULATIONS
4885 _ACEOF
4886
4887
4888 cat >>confdefs.h <<_ACEOF
4889 #define DEFAULT_EMULATION "$DEFAULT_EMULATION"
4890 _ACEOF
4891
4892
4893 case ${primary_bfd_gas}-${target_cpu_type}-${obj_format} in
4894   yes-*-coff)   need_bfd=yes ;;
4895   no-*-coff)    need_bfd=yes
4896
4897 cat >>confdefs.h <<\_ACEOF
4898 #define MANY_SEGMENTS 1
4899 _ACEOF
4900  ;;
4901 esac
4902
4903 reject_dev_configs=yes
4904
4905 case ${reject_dev_configs}-${dev} in
4906   yes-yes) # Oops.
4907     { { echo "$as_me:$LINENO: error: GAS does not support the ${generic_target} configuration." >&5
4908 echo "$as_me: error: GAS does not support the ${generic_target} configuration." >&2;}
4909    { (exit 1); exit 1; }; }
4910     ;;
4911 esac
4912
4913
4914
4915
4916
4917
4918
4919 case "${primary_bfd_gas}" in
4920   yes)
4921 cat >>confdefs.h <<\_ACEOF
4922 #define BFD_ASSEMBLER 1
4923 _ACEOF
4924
4925         need_bfd=yes ;;
4926 esac
4927
4928 # do we need the opcodes library?
4929 case "${need_opcodes}" in
4930 yes)
4931   OPCODES_LIB=../opcodes/libopcodes.la
4932   ;;
4933 esac
4934
4935 case "${need_bfd}" in
4936 yes)
4937   BFDLIB=../bfd/libbfd.la
4938   BFDVER_H=../bfd/bfdver.h
4939   ALL_OBJ_DEPS="$ALL_OBJ_DEPS"' ../bfd/bfd.h $(INCDIR)/symcat.h'
4940   ;;
4941 esac
4942
4943
4944
4945
4946
4947
4948
4949
4950 cat >>confdefs.h <<_ACEOF
4951 #define TARGET_ALIAS "${target_alias}"
4952 _ACEOF
4953
4954
4955 cat >>confdefs.h <<_ACEOF
4956 #define TARGET_CANONICAL "${target}"
4957 _ACEOF
4958
4959
4960 cat >>confdefs.h <<_ACEOF
4961 #define TARGET_CPU "${target_cpu}"
4962 _ACEOF
4963
4964
4965 cat >>confdefs.h <<_ACEOF
4966 #define TARGET_VENDOR "${target_vendor}"
4967 _ACEOF
4968
4969
4970 cat >>confdefs.h <<_ACEOF
4971 #define TARGET_OS "${target_os}"
4972 _ACEOF
4973
4974
4975 ac_ext=c
4976 ac_cpp='$CPP $CPPFLAGS'
4977 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4978 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4979 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4980 if test -n "$ac_tool_prefix"; then
4981   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4982 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4983 echo "$as_me:$LINENO: checking for $ac_word" >&5
4984 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4985 if test "${ac_cv_prog_CC+set}" = set; then
4986   echo $ECHO_N "(cached) $ECHO_C" >&6
4987 else
4988   if test -n "$CC"; then
4989   ac_cv_prog_CC="$CC" # Let the user override the test.
4990 else
4991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4992 for as_dir in $PATH
4993 do
4994   IFS=$as_save_IFS
4995   test -z "$as_dir" && as_dir=.
4996   for ac_exec_ext in '' $ac_executable_extensions; do
4997   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4998     ac_cv_prog_CC="${ac_tool_prefix}gcc"
4999     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5000     break 2
5001   fi
5002 done
5003 done
5004
5005 fi
5006 fi
5007 CC=$ac_cv_prog_CC
5008 if test -n "$CC"; then
5009   echo "$as_me:$LINENO: result: $CC" >&5
5010 echo "${ECHO_T}$CC" >&6
5011 else
5012   echo "$as_me:$LINENO: result: no" >&5
5013 echo "${ECHO_T}no" >&6
5014 fi
5015
5016 fi
5017 if test -z "$ac_cv_prog_CC"; then
5018   ac_ct_CC=$CC
5019   # Extract the first word of "gcc", so it can be a program name with args.
5020 set dummy gcc; ac_word=$2
5021 echo "$as_me:$LINENO: checking for $ac_word" >&5
5022 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5023 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5024   echo $ECHO_N "(cached) $ECHO_C" >&6
5025 else
5026   if test -n "$ac_ct_CC"; then
5027   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5028 else
5029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5030 for as_dir in $PATH
5031 do
5032   IFS=$as_save_IFS
5033   test -z "$as_dir" && as_dir=.
5034   for ac_exec_ext in '' $ac_executable_extensions; do
5035   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5036     ac_cv_prog_ac_ct_CC="gcc"
5037     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5038     break 2
5039   fi
5040 done
5041 done
5042
5043 fi
5044 fi
5045 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5046 if test -n "$ac_ct_CC"; then
5047   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5048 echo "${ECHO_T}$ac_ct_CC" >&6
5049 else
5050   echo "$as_me:$LINENO: result: no" >&5
5051 echo "${ECHO_T}no" >&6
5052 fi
5053
5054   CC=$ac_ct_CC
5055 else
5056   CC="$ac_cv_prog_CC"
5057 fi
5058
5059 if test -z "$CC"; then
5060   if test -n "$ac_tool_prefix"; then
5061   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5062 set dummy ${ac_tool_prefix}cc; ac_word=$2
5063 echo "$as_me:$LINENO: checking for $ac_word" >&5
5064 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5065 if test "${ac_cv_prog_CC+set}" = set; then
5066   echo $ECHO_N "(cached) $ECHO_C" >&6
5067 else
5068   if test -n "$CC"; then
5069   ac_cv_prog_CC="$CC" # Let the user override the test.
5070 else
5071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5072 for as_dir in $PATH
5073 do
5074   IFS=$as_save_IFS
5075   test -z "$as_dir" && as_dir=.
5076   for ac_exec_ext in '' $ac_executable_extensions; do
5077   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5078     ac_cv_prog_CC="${ac_tool_prefix}cc"
5079     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5080     break 2
5081   fi
5082 done
5083 done
5084
5085 fi
5086 fi
5087 CC=$ac_cv_prog_CC
5088 if test -n "$CC"; then
5089   echo "$as_me:$LINENO: result: $CC" >&5
5090 echo "${ECHO_T}$CC" >&6
5091 else
5092   echo "$as_me:$LINENO: result: no" >&5
5093 echo "${ECHO_T}no" >&6
5094 fi
5095
5096 fi
5097 if test -z "$ac_cv_prog_CC"; then
5098   ac_ct_CC=$CC
5099   # Extract the first word of "cc", so it can be a program name with args.
5100 set dummy cc; ac_word=$2
5101 echo "$as_me:$LINENO: checking for $ac_word" >&5
5102 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5103 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5104   echo $ECHO_N "(cached) $ECHO_C" >&6
5105 else
5106   if test -n "$ac_ct_CC"; then
5107   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5108 else
5109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5110 for as_dir in $PATH
5111 do
5112   IFS=$as_save_IFS
5113   test -z "$as_dir" && as_dir=.
5114   for ac_exec_ext in '' $ac_executable_extensions; do
5115   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5116     ac_cv_prog_ac_ct_CC="cc"
5117     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5118     break 2
5119   fi
5120 done
5121 done
5122
5123 fi
5124 fi
5125 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5126 if test -n "$ac_ct_CC"; then
5127   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5128 echo "${ECHO_T}$ac_ct_CC" >&6
5129 else
5130   echo "$as_me:$LINENO: result: no" >&5
5131 echo "${ECHO_T}no" >&6
5132 fi
5133
5134   CC=$ac_ct_CC
5135 else
5136   CC="$ac_cv_prog_CC"
5137 fi
5138
5139 fi
5140 if test -z "$CC"; then
5141   # Extract the first word of "cc", so it can be a program name with args.
5142 set dummy cc; ac_word=$2
5143 echo "$as_me:$LINENO: checking for $ac_word" >&5
5144 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5145 if test "${ac_cv_prog_CC+set}" = set; then
5146   echo $ECHO_N "(cached) $ECHO_C" >&6
5147 else
5148   if test -n "$CC"; then
5149   ac_cv_prog_CC="$CC" # Let the user override the test.
5150 else
5151   ac_prog_rejected=no
5152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5153 for as_dir in $PATH
5154 do
5155   IFS=$as_save_IFS
5156   test -z "$as_dir" && as_dir=.
5157   for ac_exec_ext in '' $ac_executable_extensions; do
5158   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5159     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5160        ac_prog_rejected=yes
5161        continue
5162      fi
5163     ac_cv_prog_CC="cc"
5164     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5165     break 2
5166   fi
5167 done
5168 done
5169
5170 if test $ac_prog_rejected = yes; then
5171   # We found a bogon in the path, so make sure we never use it.
5172   set dummy $ac_cv_prog_CC
5173   shift
5174   if test $# != 0; then
5175     # We chose a different compiler from the bogus one.
5176     # However, it has the same basename, so the bogon will be chosen
5177     # first if we set CC to just the basename; use the full file name.
5178     shift
5179     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5180   fi
5181 fi
5182 fi
5183 fi
5184 CC=$ac_cv_prog_CC
5185 if test -n "$CC"; then
5186   echo "$as_me:$LINENO: result: $CC" >&5
5187 echo "${ECHO_T}$CC" >&6
5188 else
5189   echo "$as_me:$LINENO: result: no" >&5
5190 echo "${ECHO_T}no" >&6
5191 fi
5192
5193 fi
5194 if test -z "$CC"; then
5195   if test -n "$ac_tool_prefix"; then
5196   for ac_prog in cl
5197   do
5198     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5199 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5200 echo "$as_me:$LINENO: checking for $ac_word" >&5
5201 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5202 if test "${ac_cv_prog_CC+set}" = set; then
5203   echo $ECHO_N "(cached) $ECHO_C" >&6
5204 else
5205   if test -n "$CC"; then
5206   ac_cv_prog_CC="$CC" # Let the user override the test.
5207 else
5208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5209 for as_dir in $PATH
5210 do
5211   IFS=$as_save_IFS
5212   test -z "$as_dir" && as_dir=.
5213   for ac_exec_ext in '' $ac_executable_extensions; do
5214   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5215     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5216     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5217     break 2
5218   fi
5219 done
5220 done
5221
5222 fi
5223 fi
5224 CC=$ac_cv_prog_CC
5225 if test -n "$CC"; then
5226   echo "$as_me:$LINENO: result: $CC" >&5
5227 echo "${ECHO_T}$CC" >&6
5228 else
5229   echo "$as_me:$LINENO: result: no" >&5
5230 echo "${ECHO_T}no" >&6
5231 fi
5232
5233     test -n "$CC" && break
5234   done
5235 fi
5236 if test -z "$CC"; then
5237   ac_ct_CC=$CC
5238   for ac_prog in cl
5239 do
5240   # Extract the first word of "$ac_prog", so it can be a program name with args.
5241 set dummy $ac_prog; ac_word=$2
5242 echo "$as_me:$LINENO: checking for $ac_word" >&5
5243 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5244 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5245   echo $ECHO_N "(cached) $ECHO_C" >&6
5246 else
5247   if test -n "$ac_ct_CC"; then
5248   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5249 else
5250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5251 for as_dir in $PATH
5252 do
5253   IFS=$as_save_IFS
5254   test -z "$as_dir" && as_dir=.
5255   for ac_exec_ext in '' $ac_executable_extensions; do
5256   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5257     ac_cv_prog_ac_ct_CC="$ac_prog"
5258     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5259     break 2
5260   fi
5261 done
5262 done
5263
5264 fi
5265 fi
5266 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5267 if test -n "$ac_ct_CC"; then
5268   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5269 echo "${ECHO_T}$ac_ct_CC" >&6
5270 else
5271   echo "$as_me:$LINENO: result: no" >&5
5272 echo "${ECHO_T}no" >&6
5273 fi
5274
5275   test -n "$ac_ct_CC" && break
5276 done
5277
5278   CC=$ac_ct_CC
5279 fi
5280
5281 fi
5282
5283
5284 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5285 See \`config.log' for more details." >&5
5286 echo "$as_me: error: no acceptable C compiler found in \$PATH
5287 See \`config.log' for more details." >&2;}
5288    { (exit 1); exit 1; }; }
5289
5290 # Provide some information about the compiler.
5291 echo "$as_me:$LINENO:" \
5292      "checking for C compiler version" >&5
5293 ac_compiler=`set X $ac_compile; echo $2`
5294 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5295   (eval $ac_compiler --version </dev/null >&5) 2>&5
5296   ac_status=$?
5297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5298   (exit $ac_status); }
5299 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5300   (eval $ac_compiler -v </dev/null >&5) 2>&5
5301   ac_status=$?
5302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5303   (exit $ac_status); }
5304 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5305   (eval $ac_compiler -V </dev/null >&5) 2>&5
5306   ac_status=$?
5307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5308   (exit $ac_status); }
5309
5310 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5311 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
5312 if test "${ac_cv_c_compiler_gnu+set}" = set; then
5313   echo $ECHO_N "(cached) $ECHO_C" >&6
5314 else
5315   cat >conftest.$ac_ext <<_ACEOF
5316 #line $LINENO "configure"
5317 /* confdefs.h.  */
5318 _ACEOF
5319 cat confdefs.h >>conftest.$ac_ext
5320 cat >>conftest.$ac_ext <<_ACEOF
5321 /* end confdefs.h.  */
5322
5323 int
5324 main ()
5325 {
5326 #ifndef __GNUC__
5327        choke me
5328 #endif
5329
5330   ;
5331   return 0;
5332 }
5333 _ACEOF
5334 rm -f conftest.$ac_objext
5335 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5336   (eval $ac_compile) 2>&5
5337   ac_status=$?
5338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5339   (exit $ac_status); } &&
5340          { ac_try='test -s conftest.$ac_objext'
5341   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5342   (eval $ac_try) 2>&5
5343   ac_status=$?
5344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5345   (exit $ac_status); }; }; then
5346   ac_compiler_gnu=yes
5347 else
5348   echo "$as_me: failed program was:" >&5
5349 sed 's/^/| /' conftest.$ac_ext >&5
5350
5351 ac_compiler_gnu=no
5352 fi
5353 rm -f conftest.$ac_objext conftest.$ac_ext
5354 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5355
5356 fi
5357 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5358 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
5359 GCC=`test $ac_compiler_gnu = yes && echo yes`
5360 ac_test_CFLAGS=${CFLAGS+set}
5361 ac_save_CFLAGS=$CFLAGS
5362 CFLAGS="-g"
5363 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5364 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
5365 if test "${ac_cv_prog_cc_g+set}" = set; then
5366   echo $ECHO_N "(cached) $ECHO_C" >&6
5367 else
5368   cat >conftest.$ac_ext <<_ACEOF
5369 #line $LINENO "configure"
5370 /* confdefs.h.  */
5371 _ACEOF
5372 cat confdefs.h >>conftest.$ac_ext
5373 cat >>conftest.$ac_ext <<_ACEOF
5374 /* end confdefs.h.  */
5375
5376 int
5377 main ()
5378 {
5379
5380   ;
5381   return 0;
5382 }
5383 _ACEOF
5384 rm -f conftest.$ac_objext
5385 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5386   (eval $ac_compile) 2>&5
5387   ac_status=$?
5388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5389   (exit $ac_status); } &&
5390          { ac_try='test -s conftest.$ac_objext'
5391   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5392   (eval $ac_try) 2>&5
5393   ac_status=$?
5394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5395   (exit $ac_status); }; }; then
5396   ac_cv_prog_cc_g=yes
5397 else
5398   echo "$as_me: failed program was:" >&5
5399 sed 's/^/| /' conftest.$ac_ext >&5
5400
5401 ac_cv_prog_cc_g=no
5402 fi
5403 rm -f conftest.$ac_objext conftest.$ac_ext
5404 fi
5405 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5406 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
5407 if test "$ac_test_CFLAGS" = set; then
5408   CFLAGS=$ac_save_CFLAGS
5409 elif test $ac_cv_prog_cc_g = yes; then
5410   if test "$GCC" = yes; then
5411     CFLAGS="-g -O2"
5412   else
5413     CFLAGS="-g"
5414   fi
5415 else
5416   if test "$GCC" = yes; then
5417     CFLAGS="-O2"
5418   else
5419     CFLAGS=
5420   fi
5421 fi
5422 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
5423 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
5424 if test "${ac_cv_prog_cc_stdc+set}" = set; then
5425   echo $ECHO_N "(cached) $ECHO_C" >&6
5426 else
5427   ac_cv_prog_cc_stdc=no
5428 ac_save_CC=$CC
5429 cat >conftest.$ac_ext <<_ACEOF
5430 #line $LINENO "configure"
5431 /* confdefs.h.  */
5432 _ACEOF
5433 cat confdefs.h >>conftest.$ac_ext
5434 cat >>conftest.$ac_ext <<_ACEOF
5435 /* end confdefs.h.  */
5436 #include <stdarg.h>
5437 #include <stdio.h>
5438 #include <sys/types.h>
5439 #include <sys/stat.h>
5440 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
5441 struct buf { int x; };
5442 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5443 static char *e (p, i)
5444      char **p;
5445      int i;
5446 {
5447   return p[i];
5448 }
5449 static char *f (char * (*g) (char **, int), char **p, ...)
5450 {
5451   char *s;
5452   va_list v;
5453   va_start (v,p);
5454   s = g (p, va_arg (v,int));
5455   va_end (v);
5456   return s;
5457 }
5458 int test (int i, double x);
5459 struct s1 {int (*f) (int a);};
5460 struct s2 {int (*f) (double a);};
5461 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5462 int argc;
5463 char **argv;
5464 int
5465 main ()
5466 {
5467 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
5468   ;
5469   return 0;
5470 }
5471 _ACEOF
5472 # Don't try gcc -ansi; that turns off useful extensions and
5473 # breaks some systems' header files.
5474 # AIX                   -qlanglvl=ansi
5475 # Ultrix and OSF/1      -std1
5476 # HP-UX 10.20 and later -Ae
5477 # HP-UX older versions  -Aa -D_HPUX_SOURCE
5478 # SVR4                  -Xc -D__EXTENSIONS__
5479 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5480 do
5481   CC="$ac_save_CC $ac_arg"
5482   rm -f conftest.$ac_objext
5483 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5484   (eval $ac_compile) 2>&5
5485   ac_status=$?
5486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5487   (exit $ac_status); } &&
5488          { ac_try='test -s conftest.$ac_objext'
5489   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5490   (eval $ac_try) 2>&5
5491   ac_status=$?
5492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5493   (exit $ac_status); }; }; then
5494   ac_cv_prog_cc_stdc=$ac_arg
5495 break
5496 else
5497   echo "$as_me: failed program was:" >&5
5498 sed 's/^/| /' conftest.$ac_ext >&5
5499
5500 fi
5501 rm -f conftest.$ac_objext
5502 done
5503 rm -f conftest.$ac_ext conftest.$ac_objext
5504 CC=$ac_save_CC
5505
5506 fi
5507
5508 case "x$ac_cv_prog_cc_stdc" in
5509   x|xno)
5510     echo "$as_me:$LINENO: result: none needed" >&5
5511 echo "${ECHO_T}none needed" >&6 ;;
5512   *)
5513     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
5514 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
5515     CC="$CC $ac_cv_prog_cc_stdc" ;;
5516 esac
5517
5518 # Some people use a C++ compiler to compile C.  Since we use `exit',
5519 # in C++ we need to declare it.  In case someone uses the same compiler
5520 # for both compiling C and C++ we need to have the C++ compiler decide
5521 # the declaration of exit, since it's the most demanding environment.
5522 cat >conftest.$ac_ext <<_ACEOF
5523 #ifndef __cplusplus
5524   choke me
5525 #endif
5526 _ACEOF
5527 rm -f conftest.$ac_objext
5528 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5529   (eval $ac_compile) 2>&5
5530   ac_status=$?
5531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5532   (exit $ac_status); } &&
5533          { ac_try='test -s conftest.$ac_objext'
5534   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5535   (eval $ac_try) 2>&5
5536   ac_status=$?
5537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5538   (exit $ac_status); }; }; then
5539   for ac_declaration in \
5540    ''\
5541    '#include <stdlib.h>' \
5542    'extern "C" void std::exit (int) throw (); using std::exit;' \
5543    'extern "C" void std::exit (int); using std::exit;' \
5544    'extern "C" void exit (int) throw ();' \
5545    'extern "C" void exit (int);' \
5546    'void exit (int);'
5547 do
5548   cat >conftest.$ac_ext <<_ACEOF
5549 #line $LINENO "configure"
5550 /* confdefs.h.  */
5551 _ACEOF
5552 cat confdefs.h >>conftest.$ac_ext
5553 cat >>conftest.$ac_ext <<_ACEOF
5554 /* end confdefs.h.  */
5555 #include <stdlib.h>
5556 $ac_declaration
5557 int
5558 main ()
5559 {
5560 exit (42);
5561   ;
5562   return 0;
5563 }
5564 _ACEOF
5565 rm -f conftest.$ac_objext
5566 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5567   (eval $ac_compile) 2>&5
5568   ac_status=$?
5569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5570   (exit $ac_status); } &&
5571          { ac_try='test -s conftest.$ac_objext'
5572   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5573   (eval $ac_try) 2>&5
5574   ac_status=$?
5575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5576   (exit $ac_status); }; }; then
5577   :
5578 else
5579   echo "$as_me: failed program was:" >&5
5580 sed 's/^/| /' conftest.$ac_ext >&5
5581
5582 continue
5583 fi
5584 rm -f conftest.$ac_objext conftest.$ac_ext
5585   cat >conftest.$ac_ext <<_ACEOF
5586 #line $LINENO "configure"
5587 /* confdefs.h.  */
5588 _ACEOF
5589 cat confdefs.h >>conftest.$ac_ext
5590 cat >>conftest.$ac_ext <<_ACEOF
5591 /* end confdefs.h.  */
5592 $ac_declaration
5593 int
5594 main ()
5595 {
5596 exit (42);
5597   ;
5598   return 0;
5599 }
5600 _ACEOF
5601 rm -f conftest.$ac_objext
5602 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5603   (eval $ac_compile) 2>&5
5604   ac_status=$?
5605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5606   (exit $ac_status); } &&
5607          { ac_try='test -s conftest.$ac_objext'
5608   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5609   (eval $ac_try) 2>&5
5610   ac_status=$?
5611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5612   (exit $ac_status); }; }; then
5613   break
5614 else
5615   echo "$as_me: failed program was:" >&5
5616 sed 's/^/| /' conftest.$ac_ext >&5
5617
5618 fi
5619 rm -f conftest.$ac_objext conftest.$ac_ext
5620 done
5621 rm -f conftest*
5622 if test -n "$ac_declaration"; then
5623   echo '#ifdef __cplusplus' >>confdefs.h
5624   echo $ac_declaration      >>confdefs.h
5625   echo '#endif'             >>confdefs.h
5626 fi
5627
5628 else
5629   echo "$as_me: failed program was:" >&5
5630 sed 's/^/| /' conftest.$ac_ext >&5
5631
5632 fi
5633 rm -f conftest.$ac_objext conftest.$ac_ext
5634 ac_ext=c
5635 ac_cpp='$CPP $CPPFLAGS'
5636 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5637 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5638 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5639
5640
5641 for ac_prog in 'bison -y' byacc
5642 do
5643   # Extract the first word of "$ac_prog", so it can be a program name with args.
5644 set dummy $ac_prog; ac_word=$2
5645 echo "$as_me:$LINENO: checking for $ac_word" >&5
5646 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5647 if test "${ac_cv_prog_YACC+set}" = set; then
5648   echo $ECHO_N "(cached) $ECHO_C" >&6
5649 else
5650   if test -n "$YACC"; then
5651   ac_cv_prog_YACC="$YACC" # Let the user override the test.
5652 else
5653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5654 for as_dir in $PATH
5655 do
5656   IFS=$as_save_IFS
5657   test -z "$as_dir" && as_dir=.
5658   for ac_exec_ext in '' $ac_executable_extensions; do
5659   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5660     ac_cv_prog_YACC="$ac_prog"
5661     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5662     break 2
5663   fi
5664 done
5665 done
5666
5667 fi
5668 fi
5669 YACC=$ac_cv_prog_YACC
5670 if test -n "$YACC"; then
5671   echo "$as_me:$LINENO: result: $YACC" >&5
5672 echo "${ECHO_T}$YACC" >&6
5673 else
5674   echo "$as_me:$LINENO: result: no" >&5
5675 echo "${ECHO_T}no" >&6
5676 fi
5677
5678   test -n "$YACC" && break
5679 done
5680 test -n "$YACC" || YACC="yacc"
5681
5682 for ac_prog in flex lex
5683 do
5684   # Extract the first word of "$ac_prog", so it can be a program name with args.
5685 set dummy $ac_prog; ac_word=$2
5686 echo "$as_me:$LINENO: checking for $ac_word" >&5
5687 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5688 if test "${ac_cv_prog_LEX+set}" = set; then
5689   echo $ECHO_N "(cached) $ECHO_C" >&6
5690 else
5691   if test -n "$LEX"; then
5692   ac_cv_prog_LEX="$LEX" # Let the user override the test.
5693 else
5694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5695 for as_dir in $PATH
5696 do
5697   IFS=$as_save_IFS
5698   test -z "$as_dir" && as_dir=.
5699   for ac_exec_ext in '' $ac_executable_extensions; do
5700   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5701     ac_cv_prog_LEX="$ac_prog"
5702     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5703     break 2
5704   fi
5705 done
5706 done
5707
5708 fi
5709 fi
5710 LEX=$ac_cv_prog_LEX
5711 if test -n "$LEX"; then
5712   echo "$as_me:$LINENO: result: $LEX" >&5
5713 echo "${ECHO_T}$LEX" >&6
5714 else
5715   echo "$as_me:$LINENO: result: no" >&5
5716 echo "${ECHO_T}no" >&6
5717 fi
5718
5719   test -n "$LEX" && break
5720 done
5721 test -n "$LEX" || LEX=":"
5722
5723 if test -z "$LEXLIB"
5724 then
5725   echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
5726 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
5727 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
5728   echo $ECHO_N "(cached) $ECHO_C" >&6
5729 else
5730   ac_check_lib_save_LIBS=$LIBS
5731 LIBS="-lfl  $LIBS"
5732 cat >conftest.$ac_ext <<_ACEOF
5733 #line $LINENO "configure"
5734 /* confdefs.h.  */
5735 _ACEOF
5736 cat confdefs.h >>conftest.$ac_ext
5737 cat >>conftest.$ac_ext <<_ACEOF
5738 /* end confdefs.h.  */
5739
5740 /* Override any gcc2 internal prototype to avoid an error.  */
5741 #ifdef __cplusplus
5742 extern "C"
5743 #endif
5744 /* We use char because int might match the return type of a gcc2
5745    builtin and then its argument prototype would still apply.  */
5746 char yywrap ();
5747 int
5748 main ()
5749 {
5750 yywrap ();
5751   ;
5752   return 0;
5753 }
5754 _ACEOF
5755 rm -f conftest.$ac_objext conftest$ac_exeext
5756 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5757   (eval $ac_link) 2>&5
5758   ac_status=$?
5759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5760   (exit $ac_status); } &&
5761          { ac_try='test -s conftest$ac_exeext'
5762   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5763   (eval $ac_try) 2>&5
5764   ac_status=$?
5765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5766   (exit $ac_status); }; }; then
5767   ac_cv_lib_fl_yywrap=yes
5768 else
5769   echo "$as_me: failed program was:" >&5
5770 sed 's/^/| /' conftest.$ac_ext >&5
5771
5772 ac_cv_lib_fl_yywrap=no
5773 fi
5774 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5775 LIBS=$ac_check_lib_save_LIBS
5776 fi
5777 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
5778 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
5779 if test $ac_cv_lib_fl_yywrap = yes; then
5780   LEXLIB="-lfl"
5781 else
5782   echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
5783 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
5784 if test "${ac_cv_lib_l_yywrap+set}" = set; then
5785   echo $ECHO_N "(cached) $ECHO_C" >&6
5786 else
5787   ac_check_lib_save_LIBS=$LIBS
5788 LIBS="-ll  $LIBS"
5789 cat >conftest.$ac_ext <<_ACEOF
5790 #line $LINENO "configure"
5791 /* confdefs.h.  */
5792 _ACEOF
5793 cat confdefs.h >>conftest.$ac_ext
5794 cat >>conftest.$ac_ext <<_ACEOF
5795 /* end confdefs.h.  */
5796
5797 /* Override any gcc2 internal prototype to avoid an error.  */
5798 #ifdef __cplusplus
5799 extern "C"
5800 #endif
5801 /* We use char because int might match the return type of a gcc2
5802    builtin and then its argument prototype would still apply.  */
5803 char yywrap ();
5804 int
5805 main ()
5806 {
5807 yywrap ();
5808   ;
5809   return 0;
5810 }
5811 _ACEOF
5812 rm -f conftest.$ac_objext conftest$ac_exeext
5813 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5814   (eval $ac_link) 2>&5
5815   ac_status=$?
5816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5817   (exit $ac_status); } &&
5818          { ac_try='test -s conftest$ac_exeext'
5819   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5820   (eval $ac_try) 2>&5
5821   ac_status=$?
5822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5823   (exit $ac_status); }; }; then
5824   ac_cv_lib_l_yywrap=yes
5825 else
5826   echo "$as_me: failed program was:" >&5
5827 sed 's/^/| /' conftest.$ac_ext >&5
5828
5829 ac_cv_lib_l_yywrap=no
5830 fi
5831 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5832 LIBS=$ac_check_lib_save_LIBS
5833 fi
5834 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
5835 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
5836 if test $ac_cv_lib_l_yywrap = yes; then
5837   LEXLIB="-ll"
5838 fi
5839
5840 fi
5841
5842 fi
5843
5844 if test "x$LEX" != "x:"; then
5845   echo "$as_me:$LINENO: checking lex output file root" >&5
5846 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
5847 if test "${ac_cv_prog_lex_root+set}" = set; then
5848   echo $ECHO_N "(cached) $ECHO_C" >&6
5849 else
5850   # The minimal lex program is just a single line: %%.  But some broken lexes
5851 # (Solaris, I think it was) want two %% lines, so accommodate them.
5852 cat >conftest.l <<_ACEOF
5853 %%
5854 %%
5855 _ACEOF
5856 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
5857   (eval $LEX conftest.l) 2>&5
5858   ac_status=$?
5859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5860   (exit $ac_status); }
5861 if test -f lex.yy.c; then
5862   ac_cv_prog_lex_root=lex.yy
5863 elif test -f lexyy.c; then
5864   ac_cv_prog_lex_root=lexyy
5865 else
5866   { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
5867 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
5868    { (exit 1); exit 1; }; }
5869 fi
5870 fi
5871 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
5872 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
5873 rm -f conftest.l
5874 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
5875
5876 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
5877 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
5878 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
5879   echo $ECHO_N "(cached) $ECHO_C" >&6
5880 else
5881   # POSIX says lex can declare yytext either as a pointer or an array; the
5882 # default is implementation-dependent. Figure out which it is, since
5883 # not all implementations provide the %pointer and %array declarations.
5884 ac_cv_prog_lex_yytext_pointer=no
5885 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
5886 ac_save_LIBS=$LIBS
5887 LIBS="$LIBS $LEXLIB"
5888 cat >conftest.$ac_ext <<_ACEOF
5889 `cat $LEX_OUTPUT_ROOT.c`
5890 _ACEOF
5891 rm -f conftest.$ac_objext conftest$ac_exeext
5892 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5893   (eval $ac_link) 2>&5
5894   ac_status=$?
5895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5896   (exit $ac_status); } &&
5897          { ac_try='test -s conftest$ac_exeext'
5898   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5899   (eval $ac_try) 2>&5
5900   ac_status=$?
5901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5902   (exit $ac_status); }; }; then
5903   ac_cv_prog_lex_yytext_pointer=yes
5904 else
5905   echo "$as_me: failed program was:" >&5
5906 sed 's/^/| /' conftest.$ac_ext >&5
5907
5908 fi
5909 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5910 LIBS=$ac_save_LIBS
5911 rm -f "${LEX_OUTPUT_ROOT}.c"
5912
5913 fi
5914 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
5915 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
5916 if test $ac_cv_prog_lex_yytext_pointer = yes; then
5917
5918 cat >>confdefs.h <<\_ACEOF
5919 #define YYTEXT_POINTER 1
5920 _ACEOF
5921
5922 fi
5923
5924 fi
5925 if test "$LEX" = :; then
5926   LEX=${am_missing_run}flex
5927 fi
5928
5929 ALL_LINGUAS="fr tr es"
5930 if test -n "$ac_tool_prefix"; then
5931   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5932 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5933 echo "$as_me:$LINENO: checking for $ac_word" >&5
5934 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5935 if test "${ac_cv_prog_RANLIB+set}" = set; then
5936   echo $ECHO_N "(cached) $ECHO_C" >&6
5937 else
5938   if test -n "$RANLIB"; then
5939   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5940 else
5941 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5942 for as_dir in $PATH
5943 do
5944   IFS=$as_save_IFS
5945   test -z "$as_dir" && as_dir=.
5946   for ac_exec_ext in '' $ac_executable_extensions; do
5947   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5948     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5949     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5950     break 2
5951   fi
5952 done
5953 done
5954
5955 fi
5956 fi
5957 RANLIB=$ac_cv_prog_RANLIB
5958 if test -n "$RANLIB"; then
5959   echo "$as_me:$LINENO: result: $RANLIB" >&5
5960 echo "${ECHO_T}$RANLIB" >&6
5961 else
5962   echo "$as_me:$LINENO: result: no" >&5
5963 echo "${ECHO_T}no" >&6
5964 fi
5965
5966 fi
5967 if test -z "$ac_cv_prog_RANLIB"; then
5968   ac_ct_RANLIB=$RANLIB
5969   # Extract the first word of "ranlib", so it can be a program name with args.
5970 set dummy ranlib; ac_word=$2
5971 echo "$as_me:$LINENO: checking for $ac_word" >&5
5972 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5973 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5974   echo $ECHO_N "(cached) $ECHO_C" >&6
5975 else
5976   if test -n "$ac_ct_RANLIB"; then
5977   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5978 else
5979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5980 for as_dir in $PATH
5981 do
5982   IFS=$as_save_IFS
5983   test -z "$as_dir" && as_dir=.
5984   for ac_exec_ext in '' $ac_executable_extensions; do
5985   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5986     ac_cv_prog_ac_ct_RANLIB="ranlib"
5987     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5988     break 2
5989   fi
5990 done
5991 done
5992
5993   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5994 fi
5995 fi
5996 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5997 if test -n "$ac_ct_RANLIB"; then
5998   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5999 echo "${ECHO_T}$ac_ct_RANLIB" >&6
6000 else
6001   echo "$as_me:$LINENO: result: no" >&5
6002 echo "${ECHO_T}no" >&6
6003 fi
6004
6005   RANLIB=$ac_ct_RANLIB
6006 else
6007   RANLIB="$ac_cv_prog_RANLIB"
6008 fi
6009
6010 ac_ext=c
6011 ac_cpp='$CPP $CPPFLAGS'
6012 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6013 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6014 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6015 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6016 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
6017 # On Suns, sometimes $CPP names a directory.
6018 if test -n "$CPP" && test -d "$CPP"; then
6019   CPP=
6020 fi
6021 if test -z "$CPP"; then
6022   if test "${ac_cv_prog_CPP+set}" = set; then
6023   echo $ECHO_N "(cached) $ECHO_C" >&6
6024 else
6025       # Double quotes because CPP needs to be expanded
6026     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6027     do
6028       ac_preproc_ok=false
6029 for ac_c_preproc_warn_flag in '' yes
6030 do
6031   # Use a header file that comes with gcc, so configuring glibc
6032   # with a fresh cross-compiler works.
6033   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6034   # <limits.h> exists even on freestanding compilers.
6035   # On the NeXT, cc -E runs the code through the compiler's parser,
6036   # not just through cpp. "Syntax error" is here to catch this case.
6037   cat >conftest.$ac_ext <<_ACEOF
6038 #line $LINENO "configure"
6039 /* confdefs.h.  */
6040 _ACEOF
6041 cat confdefs.h >>conftest.$ac_ext
6042 cat >>conftest.$ac_ext <<_ACEOF
6043 /* end confdefs.h.  */
6044 #ifdef __STDC__
6045 # include <limits.h>
6046 #else
6047 # include <assert.h>
6048 #endif
6049                      Syntax error
6050 _ACEOF
6051 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6052   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6053   ac_status=$?
6054   grep -v '^ *+' conftest.er1 >conftest.err
6055   rm -f conftest.er1
6056   cat conftest.err >&5
6057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6058   (exit $ac_status); } >/dev/null; then
6059   if test -s conftest.err; then
6060     ac_cpp_err=$ac_c_preproc_warn_flag
6061   else
6062     ac_cpp_err=
6063   fi
6064 else
6065   ac_cpp_err=yes
6066 fi
6067 if test -z "$ac_cpp_err"; then
6068   :
6069 else
6070   echo "$as_me: failed program was:" >&5
6071 sed 's/^/| /' conftest.$ac_ext >&5
6072
6073   # Broken: fails on valid input.
6074 continue
6075 fi
6076 rm -f conftest.err conftest.$ac_ext
6077
6078   # OK, works on sane cases.  Now check whether non-existent headers
6079   # can be detected and how.
6080   cat >conftest.$ac_ext <<_ACEOF
6081 #line $LINENO "configure"
6082 /* confdefs.h.  */
6083 _ACEOF
6084 cat confdefs.h >>conftest.$ac_ext
6085 cat >>conftest.$ac_ext <<_ACEOF
6086 /* end confdefs.h.  */
6087 #include <ac_nonexistent.h>
6088 _ACEOF
6089 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6090   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6091   ac_status=$?
6092   grep -v '^ *+' conftest.er1 >conftest.err
6093   rm -f conftest.er1
6094   cat conftest.err >&5
6095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6096   (exit $ac_status); } >/dev/null; then
6097   if test -s conftest.err; then
6098     ac_cpp_err=$ac_c_preproc_warn_flag
6099   else
6100     ac_cpp_err=
6101   fi
6102 else
6103   ac_cpp_err=yes
6104 fi
6105 if test -z "$ac_cpp_err"; then
6106   # Broken: success on invalid input.
6107 continue
6108 else
6109   echo "$as_me: failed program was:" >&5
6110 sed 's/^/| /' conftest.$ac_ext >&5
6111
6112   # Passes both tests.
6113 ac_preproc_ok=:
6114 break
6115 fi
6116 rm -f conftest.err conftest.$ac_ext
6117
6118 done
6119 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6120 rm -f conftest.err conftest.$ac_ext
6121 if $ac_preproc_ok; then
6122   break
6123 fi
6124
6125     done
6126     ac_cv_prog_CPP=$CPP
6127
6128 fi
6129   CPP=$ac_cv_prog_CPP
6130 else
6131   ac_cv_prog_CPP=$CPP
6132 fi
6133 echo "$as_me:$LINENO: result: $CPP" >&5
6134 echo "${ECHO_T}$CPP" >&6
6135 ac_preproc_ok=false
6136 for ac_c_preproc_warn_flag in '' yes
6137 do
6138   # Use a header file that comes with gcc, so configuring glibc
6139   # with a fresh cross-compiler works.
6140   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6141   # <limits.h> exists even on freestanding compilers.
6142   # On the NeXT, cc -E runs the code through the compiler's parser,
6143   # not just through cpp. "Syntax error" is here to catch this case.
6144   cat >conftest.$ac_ext <<_ACEOF
6145 #line $LINENO "configure"
6146 /* confdefs.h.  */
6147 _ACEOF
6148 cat confdefs.h >>conftest.$ac_ext
6149 cat >>conftest.$ac_ext <<_ACEOF
6150 /* end confdefs.h.  */
6151 #ifdef __STDC__
6152 # include <limits.h>
6153 #else
6154 # include <assert.h>
6155 #endif
6156                      Syntax error
6157 _ACEOF
6158 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6159   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6160   ac_status=$?
6161   grep -v '^ *+' conftest.er1 >conftest.err
6162   rm -f conftest.er1
6163   cat conftest.err >&5
6164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6165   (exit $ac_status); } >/dev/null; then
6166   if test -s conftest.err; then
6167     ac_cpp_err=$ac_c_preproc_warn_flag
6168   else
6169     ac_cpp_err=
6170   fi
6171 else
6172   ac_cpp_err=yes
6173 fi
6174 if test -z "$ac_cpp_err"; then
6175   :
6176 else
6177   echo "$as_me: failed program was:" >&5
6178 sed 's/^/| /' conftest.$ac_ext >&5
6179
6180   # Broken: fails on valid input.
6181 continue
6182 fi
6183 rm -f conftest.err conftest.$ac_ext
6184
6185   # OK, works on sane cases.  Now check whether non-existent headers
6186   # can be detected and how.
6187   cat >conftest.$ac_ext <<_ACEOF
6188 #line $LINENO "configure"
6189 /* confdefs.h.  */
6190 _ACEOF
6191 cat confdefs.h >>conftest.$ac_ext
6192 cat >>conftest.$ac_ext <<_ACEOF
6193 /* end confdefs.h.  */
6194 #include <ac_nonexistent.h>
6195 _ACEOF
6196 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6197   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6198   ac_status=$?
6199   grep -v '^ *+' conftest.er1 >conftest.err
6200   rm -f conftest.er1
6201   cat conftest.err >&5
6202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6203   (exit $ac_status); } >/dev/null; then
6204   if test -s conftest.err; then
6205     ac_cpp_err=$ac_c_preproc_warn_flag
6206   else
6207     ac_cpp_err=
6208   fi
6209 else
6210   ac_cpp_err=yes
6211 fi
6212 if test -z "$ac_cpp_err"; then
6213   # Broken: success on invalid input.
6214 continue
6215 else
6216   echo "$as_me: failed program was:" >&5
6217 sed 's/^/| /' conftest.$ac_ext >&5
6218
6219   # Passes both tests.
6220 ac_preproc_ok=:
6221 break
6222 fi
6223 rm -f conftest.err conftest.$ac_ext
6224
6225 done
6226 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6227 rm -f conftest.err conftest.$ac_ext
6228 if $ac_preproc_ok; then
6229   :
6230 else
6231   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6232 See \`config.log' for more details." >&5
6233 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6234 See \`config.log' for more details." >&2;}
6235    { (exit 1); exit 1; }; }
6236 fi
6237
6238 ac_ext=c
6239 ac_cpp='$CPP $CPPFLAGS'
6240 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6241 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6242 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6243
6244
6245 echo "$as_me:$LINENO: checking for egrep" >&5
6246 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
6247 if test "${ac_cv_prog_egrep+set}" = set; then
6248   echo $ECHO_N "(cached) $ECHO_C" >&6
6249 else
6250   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
6251     then ac_cv_prog_egrep='grep -E'
6252     else ac_cv_prog_egrep='egrep'
6253     fi
6254 fi
6255 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
6256 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
6257  EGREP=$ac_cv_prog_egrep
6258
6259
6260 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6261 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6262 if test "${ac_cv_header_stdc+set}" = set; then
6263   echo $ECHO_N "(cached) $ECHO_C" >&6
6264 else
6265   cat >conftest.$ac_ext <<_ACEOF
6266 #line $LINENO "configure"
6267 /* confdefs.h.  */
6268 _ACEOF
6269 cat confdefs.h >>conftest.$ac_ext
6270 cat >>conftest.$ac_ext <<_ACEOF
6271 /* end confdefs.h.  */
6272 #include <stdlib.h>
6273 #include <stdarg.h>
6274 #include <string.h>
6275 #include <float.h>
6276
6277 int
6278 main ()
6279 {
6280
6281   ;
6282   return 0;
6283 }
6284 _ACEOF
6285 rm -f conftest.$ac_objext
6286 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6287   (eval $ac_compile) 2>&5
6288   ac_status=$?
6289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6290   (exit $ac_status); } &&
6291          { ac_try='test -s conftest.$ac_objext'
6292   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6293   (eval $ac_try) 2>&5
6294   ac_status=$?
6295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6296   (exit $ac_status); }; }; then
6297   ac_cv_header_stdc=yes
6298 else
6299   echo "$as_me: failed program was:" >&5
6300 sed 's/^/| /' conftest.$ac_ext >&5
6301
6302 ac_cv_header_stdc=no
6303 fi
6304 rm -f conftest.$ac_objext conftest.$ac_ext
6305
6306 if test $ac_cv_header_stdc = yes; then
6307   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6308   cat >conftest.$ac_ext <<_ACEOF
6309 #line $LINENO "configure"
6310 /* confdefs.h.  */
6311 _ACEOF
6312 cat confdefs.h >>conftest.$ac_ext
6313 cat >>conftest.$ac_ext <<_ACEOF
6314 /* end confdefs.h.  */
6315 #include <string.h>
6316
6317 _ACEOF
6318 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6319   $EGREP "memchr" >/dev/null 2>&1; then
6320   :
6321 else
6322   ac_cv_header_stdc=no
6323 fi
6324 rm -f conftest*
6325
6326 fi
6327
6328 if test $ac_cv_header_stdc = yes; then
6329   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6330   cat >conftest.$ac_ext <<_ACEOF
6331 #line $LINENO "configure"
6332 /* confdefs.h.  */
6333 _ACEOF
6334 cat confdefs.h >>conftest.$ac_ext
6335 cat >>conftest.$ac_ext <<_ACEOF
6336 /* end confdefs.h.  */
6337 #include <stdlib.h>
6338
6339 _ACEOF
6340 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6341   $EGREP "free" >/dev/null 2>&1; then
6342   :
6343 else
6344   ac_cv_header_stdc=no
6345 fi
6346 rm -f conftest*
6347
6348 fi
6349
6350 if test $ac_cv_header_stdc = yes; then
6351   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6352   if test "$cross_compiling" = yes; then
6353   :
6354 else
6355   cat >conftest.$ac_ext <<_ACEOF
6356 #line $LINENO "configure"
6357 /* confdefs.h.  */
6358 _ACEOF
6359 cat confdefs.h >>conftest.$ac_ext
6360 cat >>conftest.$ac_ext <<_ACEOF
6361 /* end confdefs.h.  */
6362 #include <ctype.h>
6363 #if ((' ' & 0x0FF) == 0x020)
6364 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6365 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6366 #else
6367 # define ISLOWER(c) \
6368                    (('a' <= (c) && (c) <= 'i') \
6369                      || ('j' <= (c) && (c) <= 'r') \
6370                      || ('s' <= (c) && (c) <= 'z'))
6371 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6372 #endif
6373
6374 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6375 int
6376 main ()
6377 {
6378   int i;
6379   for (i = 0; i < 256; i++)
6380     if (XOR (islower (i), ISLOWER (i))
6381         || toupper (i) != TOUPPER (i))
6382       exit(2);
6383   exit (0);
6384 }
6385 _ACEOF
6386 rm -f conftest$ac_exeext
6387 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6388   (eval $ac_link) 2>&5
6389   ac_status=$?
6390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6391   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6392   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6393   (eval $ac_try) 2>&5
6394   ac_status=$?
6395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6396   (exit $ac_status); }; }; then
6397   :
6398 else
6399   echo "$as_me: program exited with status $ac_status" >&5
6400 echo "$as_me: failed program was:" >&5
6401 sed 's/^/| /' conftest.$ac_ext >&5
6402
6403 ( exit $ac_status )
6404 ac_cv_header_stdc=no
6405 fi
6406 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6407 fi
6408 fi
6409 fi
6410 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6411 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6412 if test $ac_cv_header_stdc = yes; then
6413
6414 cat >>confdefs.h <<\_ACEOF
6415 #define STDC_HEADERS 1
6416 _ACEOF
6417
6418 fi
6419
6420 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
6421 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
6422 if test "${ac_cv_c_const+set}" = set; then
6423   echo $ECHO_N "(cached) $ECHO_C" >&6
6424 else
6425   cat >conftest.$ac_ext <<_ACEOF
6426 #line $LINENO "configure"
6427 /* confdefs.h.  */
6428 _ACEOF
6429 cat confdefs.h >>conftest.$ac_ext
6430 cat >>conftest.$ac_ext <<_ACEOF
6431 /* end confdefs.h.  */
6432
6433 int
6434 main ()
6435 {
6436 /* FIXME: Include the comments suggested by Paul. */
6437 #ifndef __cplusplus
6438   /* Ultrix mips cc rejects this.  */
6439   typedef int charset[2];
6440   const charset x;
6441   /* SunOS 4.1.1 cc rejects this.  */
6442   char const *const *ccp;
6443   char **p;
6444   /* NEC SVR4.0.2 mips cc rejects this.  */
6445   struct point {int x, y;};
6446   static struct point const zero = {0,0};
6447   /* AIX XL C 1.02.0.0 rejects this.
6448      It does not let you subtract one const X* pointer from another in
6449      an arm of an if-expression whose if-part is not a constant
6450      expression */
6451   const char *g = "string";
6452   ccp = &g + (g ? g-g : 0);
6453   /* HPUX 7.0 cc rejects these. */
6454   ++ccp;
6455   p = (char**) ccp;
6456   ccp = (char const *const *) p;
6457   { /* SCO 3.2v4 cc rejects this.  */
6458     char *t;
6459     char const *s = 0 ? (char *) 0 : (char const *) 0;
6460
6461     *t++ = 0;
6462   }
6463   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
6464     int x[] = {25, 17};
6465     const int *foo = &x[0];
6466     ++foo;
6467   }
6468   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6469     typedef const int *iptr;
6470     iptr p = 0;
6471     ++p;
6472   }
6473   { /* AIX XL C 1.02.0.0 rejects this saying
6474        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6475     struct s { int j; const int *ap[3]; };
6476     struct s *b; b->j = 5;
6477   }
6478   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6479     const int foo = 10;
6480   }
6481 #endif
6482
6483   ;
6484   return 0;
6485 }
6486 _ACEOF
6487 rm -f conftest.$ac_objext
6488 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6489   (eval $ac_compile) 2>&5
6490   ac_status=$?
6491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6492   (exit $ac_status); } &&
6493          { ac_try='test -s conftest.$ac_objext'
6494   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6495   (eval $ac_try) 2>&5
6496   ac_status=$?
6497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6498   (exit $ac_status); }; }; then
6499   ac_cv_c_const=yes
6500 else
6501   echo "$as_me: failed program was:" >&5
6502 sed 's/^/| /' conftest.$ac_ext >&5
6503
6504 ac_cv_c_const=no
6505 fi
6506 rm -f conftest.$ac_objext conftest.$ac_ext
6507 fi
6508 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
6509 echo "${ECHO_T}$ac_cv_c_const" >&6
6510 if test $ac_cv_c_const = no; then
6511
6512 cat >>confdefs.h <<\_ACEOF
6513 #define const
6514 _ACEOF
6515
6516 fi
6517
6518 echo "$as_me:$LINENO: checking for inline" >&5
6519 echo $ECHO_N "checking for inline... $ECHO_C" >&6
6520 if test "${ac_cv_c_inline+set}" = set; then
6521   echo $ECHO_N "(cached) $ECHO_C" >&6
6522 else
6523   ac_cv_c_inline=no
6524 for ac_kw in inline __inline__ __inline; do
6525   cat >conftest.$ac_ext <<_ACEOF
6526 #line $LINENO "configure"
6527 /* confdefs.h.  */
6528 _ACEOF
6529 cat confdefs.h >>conftest.$ac_ext
6530 cat >>conftest.$ac_ext <<_ACEOF
6531 /* end confdefs.h.  */
6532 #ifndef __cplusplus
6533 typedef int foo_t;
6534 static $ac_kw foo_t static_foo () {return 0; }
6535 $ac_kw foo_t foo () {return 0; }
6536 #endif
6537
6538 _ACEOF
6539 rm -f conftest.$ac_objext
6540 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6541   (eval $ac_compile) 2>&5
6542   ac_status=$?
6543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6544   (exit $ac_status); } &&
6545          { ac_try='test -s conftest.$ac_objext'
6546   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6547   (eval $ac_try) 2>&5
6548   ac_status=$?
6549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6550   (exit $ac_status); }; }; then
6551   ac_cv_c_inline=$ac_kw; break
6552 else
6553   echo "$as_me: failed program was:" >&5
6554 sed 's/^/| /' conftest.$ac_ext >&5
6555
6556 fi
6557 rm -f conftest.$ac_objext conftest.$ac_ext
6558 done
6559
6560 fi
6561 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
6562 echo "${ECHO_T}$ac_cv_c_inline" >&6
6563 case $ac_cv_c_inline in
6564   inline | yes) ;;
6565   no)
6566 cat >>confdefs.h <<\_ACEOF
6567 #define inline
6568 _ACEOF
6569  ;;
6570   *)  cat >>confdefs.h <<_ACEOF
6571 #define inline $ac_cv_c_inline
6572 _ACEOF
6573  ;;
6574 esac
6575
6576 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6577
6578
6579
6580
6581
6582
6583
6584
6585
6586 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6587                   inttypes.h stdint.h unistd.h
6588 do
6589 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6590 echo "$as_me:$LINENO: checking for $ac_header" >&5
6591 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6592 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6593   echo $ECHO_N "(cached) $ECHO_C" >&6
6594 else
6595   cat >conftest.$ac_ext <<_ACEOF
6596 #line $LINENO "configure"
6597 /* confdefs.h.  */
6598 _ACEOF
6599 cat confdefs.h >>conftest.$ac_ext
6600 cat >>conftest.$ac_ext <<_ACEOF
6601 /* end confdefs.h.  */
6602 $ac_includes_default
6603
6604 #include <$ac_header>
6605 _ACEOF
6606 rm -f conftest.$ac_objext
6607 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6608   (eval $ac_compile) 2>&5
6609   ac_status=$?
6610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6611   (exit $ac_status); } &&
6612          { ac_try='test -s conftest.$ac_objext'
6613   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6614   (eval $ac_try) 2>&5
6615   ac_status=$?
6616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6617   (exit $ac_status); }; }; then
6618   eval "$as_ac_Header=yes"
6619 else
6620   echo "$as_me: failed program was:" >&5
6621 sed 's/^/| /' conftest.$ac_ext >&5
6622
6623 eval "$as_ac_Header=no"
6624 fi
6625 rm -f conftest.$ac_objext conftest.$ac_ext
6626 fi
6627 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6628 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6629 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6630   cat >>confdefs.h <<_ACEOF
6631 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6632 _ACEOF
6633
6634 fi
6635
6636 done
6637
6638
6639 echo "$as_me:$LINENO: checking for off_t" >&5
6640 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
6641 if test "${ac_cv_type_off_t+set}" = set; then
6642   echo $ECHO_N "(cached) $ECHO_C" >&6
6643 else
6644   cat >conftest.$ac_ext <<_ACEOF
6645 #line $LINENO "configure"
6646 /* confdefs.h.  */
6647 _ACEOF
6648 cat confdefs.h >>conftest.$ac_ext
6649 cat >>conftest.$ac_ext <<_ACEOF
6650 /* end confdefs.h.  */
6651 $ac_includes_default
6652 int
6653 main ()
6654 {
6655 if ((off_t *) 0)
6656   return 0;
6657 if (sizeof (off_t))
6658   return 0;
6659   ;
6660   return 0;
6661 }
6662 _ACEOF
6663 rm -f conftest.$ac_objext
6664 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6665   (eval $ac_compile) 2>&5
6666   ac_status=$?
6667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6668   (exit $ac_status); } &&
6669          { ac_try='test -s conftest.$ac_objext'
6670   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6671   (eval $ac_try) 2>&5
6672   ac_status=$?
6673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6674   (exit $ac_status); }; }; then
6675   ac_cv_type_off_t=yes
6676 else
6677   echo "$as_me: failed program was:" >&5
6678 sed 's/^/| /' conftest.$ac_ext >&5
6679
6680 ac_cv_type_off_t=no
6681 fi
6682 rm -f conftest.$ac_objext conftest.$ac_ext
6683 fi
6684 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
6685 echo "${ECHO_T}$ac_cv_type_off_t" >&6
6686 if test $ac_cv_type_off_t = yes; then
6687   :
6688 else
6689
6690 cat >>confdefs.h <<_ACEOF
6691 #define off_t long
6692 _ACEOF
6693
6694 fi
6695
6696 echo "$as_me:$LINENO: checking for size_t" >&5
6697 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
6698 if test "${ac_cv_type_size_t+set}" = set; then
6699   echo $ECHO_N "(cached) $ECHO_C" >&6
6700 else
6701   cat >conftest.$ac_ext <<_ACEOF
6702 #line $LINENO "configure"
6703 /* confdefs.h.  */
6704 _ACEOF
6705 cat confdefs.h >>conftest.$ac_ext
6706 cat >>conftest.$ac_ext <<_ACEOF
6707 /* end confdefs.h.  */
6708 $ac_includes_default
6709 int
6710 main ()
6711 {
6712 if ((size_t *) 0)
6713   return 0;
6714 if (sizeof (size_t))
6715   return 0;
6716   ;
6717   return 0;
6718 }
6719 _ACEOF
6720 rm -f conftest.$ac_objext
6721 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6722   (eval $ac_compile) 2>&5
6723   ac_status=$?
6724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6725   (exit $ac_status); } &&
6726          { ac_try='test -s conftest.$ac_objext'
6727   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6728   (eval $ac_try) 2>&5
6729   ac_status=$?
6730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6731   (exit $ac_status); }; }; then
6732   ac_cv_type_size_t=yes
6733 else
6734   echo "$as_me: failed program was:" >&5
6735 sed 's/^/| /' conftest.$ac_ext >&5
6736
6737 ac_cv_type_size_t=no
6738 fi
6739 rm -f conftest.$ac_objext conftest.$ac_ext
6740 fi
6741 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
6742 echo "${ECHO_T}$ac_cv_type_size_t" >&6
6743 if test $ac_cv_type_size_t = yes; then
6744   :
6745 else
6746
6747 cat >>confdefs.h <<_ACEOF
6748 #define size_t unsigned
6749 _ACEOF
6750
6751 fi
6752
6753 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6754 # for constant arguments.  Useless!
6755 echo "$as_me:$LINENO: checking for working alloca.h" >&5
6756 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
6757 if test "${ac_cv_working_alloca_h+set}" = set; then
6758   echo $ECHO_N "(cached) $ECHO_C" >&6
6759 else
6760   cat >conftest.$ac_ext <<_ACEOF
6761 #line $LINENO "configure"
6762 /* confdefs.h.  */
6763 _ACEOF
6764 cat confdefs.h >>conftest.$ac_ext
6765 cat >>conftest.$ac_ext <<_ACEOF
6766 /* end confdefs.h.  */
6767 #include <alloca.h>
6768 int
6769 main ()
6770 {
6771 char *p = (char *) alloca (2 * sizeof (int));
6772   ;
6773   return 0;
6774 }
6775 _ACEOF
6776 rm -f conftest.$ac_objext conftest$ac_exeext
6777 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6778   (eval $ac_link) 2>&5
6779   ac_status=$?
6780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6781   (exit $ac_status); } &&
6782          { ac_try='test -s conftest$ac_exeext'
6783   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6784   (eval $ac_try) 2>&5
6785   ac_status=$?
6786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6787   (exit $ac_status); }; }; then
6788   ac_cv_working_alloca_h=yes
6789 else
6790   echo "$as_me: failed program was:" >&5
6791 sed 's/^/| /' conftest.$ac_ext >&5
6792
6793 ac_cv_working_alloca_h=no
6794 fi
6795 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6796 fi
6797 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
6798 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
6799 if test $ac_cv_working_alloca_h = yes; then
6800
6801 cat >>confdefs.h <<\_ACEOF
6802 #define HAVE_ALLOCA_H 1
6803 _ACEOF
6804
6805 fi
6806
6807 echo "$as_me:$LINENO: checking for alloca" >&5
6808 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
6809 if test "${ac_cv_func_alloca_works+set}" = set; then
6810   echo $ECHO_N "(cached) $ECHO_C" >&6
6811 else
6812   cat >conftest.$ac_ext <<_ACEOF
6813 #line $LINENO "configure"
6814 /* confdefs.h.  */
6815 _ACEOF
6816 cat confdefs.h >>conftest.$ac_ext
6817 cat >>conftest.$ac_ext <<_ACEOF
6818 /* end confdefs.h.  */
6819 #ifdef __GNUC__
6820 # define alloca __builtin_alloca
6821 #else
6822 # ifdef _MSC_VER
6823 #  include <malloc.h>
6824 #  define alloca _alloca
6825 # else
6826 #  if HAVE_ALLOCA_H
6827 #   include <alloca.h>
6828 #  else
6829 #   ifdef _AIX
6830  #pragma alloca
6831 #   else
6832 #    ifndef alloca /* predefined by HP cc +Olibcalls */
6833 char *alloca ();
6834 #    endif
6835 #   endif
6836 #  endif
6837 # endif
6838 #endif
6839
6840 int
6841 main ()
6842 {
6843 char *p = (char *) alloca (1);
6844   ;
6845   return 0;
6846 }
6847 _ACEOF
6848 rm -f conftest.$ac_objext conftest$ac_exeext
6849 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6850   (eval $ac_link) 2>&5
6851   ac_status=$?
6852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6853   (exit $ac_status); } &&
6854          { ac_try='test -s conftest$ac_exeext'
6855   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6856   (eval $ac_try) 2>&5
6857   ac_status=$?
6858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6859   (exit $ac_status); }; }; then
6860   ac_cv_func_alloca_works=yes
6861 else
6862   echo "$as_me: failed program was:" >&5
6863 sed 's/^/| /' conftest.$ac_ext >&5
6864
6865 ac_cv_func_alloca_works=no
6866 fi
6867 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6868 fi
6869 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
6870 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
6871
6872 if test $ac_cv_func_alloca_works = yes; then
6873
6874 cat >>confdefs.h <<\_ACEOF
6875 #define HAVE_ALLOCA 1
6876 _ACEOF
6877
6878 else
6879   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6880 # that cause trouble.  Some versions do not even contain alloca or
6881 # contain a buggy version.  If you still want to use their alloca,
6882 # use ar to extract alloca.o from them instead of compiling alloca.c.
6883
6884 ALLOCA=alloca.$ac_objext
6885
6886 cat >>confdefs.h <<\_ACEOF
6887 #define C_ALLOCA 1
6888 _ACEOF
6889
6890
6891 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
6892 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
6893 if test "${ac_cv_os_cray+set}" = set; then
6894   echo $ECHO_N "(cached) $ECHO_C" >&6
6895 else
6896   cat >conftest.$ac_ext <<_ACEOF
6897 #line $LINENO "configure"
6898 /* confdefs.h.  */
6899 _ACEOF
6900 cat confdefs.h >>conftest.$ac_ext
6901 cat >>conftest.$ac_ext <<_ACEOF
6902 /* end confdefs.h.  */
6903 #if defined(CRAY) && ! defined(CRAY2)
6904 webecray
6905 #else
6906 wenotbecray
6907 #endif
6908
6909 _ACEOF
6910 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6911   $EGREP "webecray" >/dev/null 2>&1; then
6912   ac_cv_os_cray=yes
6913 else
6914   ac_cv_os_cray=no
6915 fi
6916 rm -f conftest*
6917
6918 fi
6919 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
6920 echo "${ECHO_T}$ac_cv_os_cray" >&6
6921 if test $ac_cv_os_cray = yes; then
6922   for ac_func in _getb67 GETB67 getb67; do
6923     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6924 echo "$as_me:$LINENO: checking for $ac_func" >&5
6925 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6926 if eval "test \"\${$as_ac_var+set}\" = set"; then
6927   echo $ECHO_N "(cached) $ECHO_C" >&6
6928 else
6929   cat >conftest.$ac_ext <<_ACEOF
6930 #line $LINENO "configure"
6931 /* confdefs.h.  */
6932 _ACEOF
6933 cat confdefs.h >>conftest.$ac_ext
6934 cat >>conftest.$ac_ext <<_ACEOF
6935 /* end confdefs.h.  */
6936 /* System header to define __stub macros and hopefully few prototypes,
6937     which can conflict with char $ac_func (); below.
6938     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6939     <limits.h> exists even on freestanding compilers.  */
6940 #ifdef __STDC__
6941 # include <limits.h>
6942 #else
6943 # include <assert.h>
6944 #endif
6945 /* Override any gcc2 internal prototype to avoid an error.  */
6946 #ifdef __cplusplus
6947 extern "C"
6948 {
6949 #endif
6950 /* We use char because int might match the return type of a gcc2
6951    builtin and then its argument prototype would still apply.  */
6952 char $ac_func ();
6953 /* The GNU C library defines this for functions which it implements
6954     to always fail with ENOSYS.  Some functions are actually named
6955     something starting with __ and the normal name is an alias.  */
6956 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6957 choke me
6958 #else
6959 char (*f) () = $ac_func;
6960 #endif
6961 #ifdef __cplusplus
6962 }
6963 #endif
6964
6965 int
6966 main ()
6967 {
6968 return f != $ac_func;
6969   ;
6970   return 0;
6971 }
6972 _ACEOF
6973 rm -f conftest.$ac_objext conftest$ac_exeext
6974 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6975   (eval $ac_link) 2>&5
6976   ac_status=$?
6977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6978   (exit $ac_status); } &&
6979          { ac_try='test -s conftest$ac_exeext'
6980   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6981   (eval $ac_try) 2>&5
6982   ac_status=$?
6983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6984   (exit $ac_status); }; }; then
6985   eval "$as_ac_var=yes"
6986 else
6987   echo "$as_me: failed program was:" >&5
6988 sed 's/^/| /' conftest.$ac_ext >&5
6989
6990 eval "$as_ac_var=no"
6991 fi
6992 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6993 fi
6994 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6995 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6996 if test `eval echo '${'$as_ac_var'}'` = yes; then
6997
6998 cat >>confdefs.h <<_ACEOF
6999 #define CRAY_STACKSEG_END $ac_func
7000 _ACEOF
7001
7002     break
7003 fi
7004
7005   done
7006 fi
7007
7008 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
7009 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
7010 if test "${ac_cv_c_stack_direction+set}" = set; then
7011   echo $ECHO_N "(cached) $ECHO_C" >&6
7012 else
7013   if test "$cross_compiling" = yes; then
7014   ac_cv_c_stack_direction=0
7015 else
7016   cat >conftest.$ac_ext <<_ACEOF
7017 #line $LINENO "configure"
7018 /* confdefs.h.  */
7019 _ACEOF
7020 cat confdefs.h >>conftest.$ac_ext
7021 cat >>conftest.$ac_ext <<_ACEOF
7022 /* end confdefs.h.  */
7023 int
7024 find_stack_direction ()
7025 {
7026   static char *addr = 0;
7027   auto char dummy;
7028   if (addr == 0)
7029     {
7030       addr = &dummy;
7031       return find_stack_direction ();
7032     }
7033   else
7034     return (&dummy > addr) ? 1 : -1;
7035 }
7036
7037 int
7038 main ()
7039 {
7040   exit (find_stack_direction () < 0);
7041 }
7042 _ACEOF
7043 rm -f conftest$ac_exeext
7044 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7045   (eval $ac_link) 2>&5
7046   ac_status=$?
7047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7048   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7049   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7050   (eval $ac_try) 2>&5
7051   ac_status=$?
7052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7053   (exit $ac_status); }; }; then
7054   ac_cv_c_stack_direction=1
7055 else
7056   echo "$as_me: program exited with status $ac_status" >&5
7057 echo "$as_me: failed program was:" >&5
7058 sed 's/^/| /' conftest.$ac_ext >&5
7059
7060 ( exit $ac_status )
7061 ac_cv_c_stack_direction=-1
7062 fi
7063 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7064 fi
7065 fi
7066 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
7067 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
7068
7069 cat >>confdefs.h <<_ACEOF
7070 #define STACK_DIRECTION $ac_cv_c_stack_direction
7071 _ACEOF
7072
7073
7074 fi
7075
7076
7077
7078 for ac_header in stdlib.h unistd.h
7079 do
7080 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7081 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7082   echo "$as_me:$LINENO: checking for $ac_header" >&5
7083 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7084 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7085   echo $ECHO_N "(cached) $ECHO_C" >&6
7086 fi
7087 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7088 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7089 else
7090   # Is the header compilable?
7091 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7092 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7093 cat >conftest.$ac_ext <<_ACEOF
7094 #line $LINENO "configure"
7095 /* confdefs.h.  */
7096 _ACEOF
7097 cat confdefs.h >>conftest.$ac_ext
7098 cat >>conftest.$ac_ext <<_ACEOF
7099 /* end confdefs.h.  */
7100 $ac_includes_default
7101 #include <$ac_header>
7102 _ACEOF
7103 rm -f conftest.$ac_objext
7104 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7105   (eval $ac_compile) 2>&5
7106   ac_status=$?
7107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7108   (exit $ac_status); } &&
7109          { ac_try='test -s conftest.$ac_objext'
7110   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7111   (eval $ac_try) 2>&5
7112   ac_status=$?
7113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7114   (exit $ac_status); }; }; then
7115   ac_header_compiler=yes
7116 else
7117   echo "$as_me: failed program was:" >&5
7118 sed 's/^/| /' conftest.$ac_ext >&5
7119
7120 ac_header_compiler=no
7121 fi
7122 rm -f conftest.$ac_objext conftest.$ac_ext
7123 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7124 echo "${ECHO_T}$ac_header_compiler" >&6
7125
7126 # Is the header present?
7127 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7128 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7129 cat >conftest.$ac_ext <<_ACEOF
7130 #line $LINENO "configure"
7131 /* confdefs.h.  */
7132 _ACEOF
7133 cat confdefs.h >>conftest.$ac_ext
7134 cat >>conftest.$ac_ext <<_ACEOF
7135 /* end confdefs.h.  */
7136 #include <$ac_header>
7137 _ACEOF
7138 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7139   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7140   ac_status=$?
7141   grep -v '^ *+' conftest.er1 >conftest.err
7142   rm -f conftest.er1
7143   cat conftest.err >&5
7144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7145   (exit $ac_status); } >/dev/null; then
7146   if test -s conftest.err; then
7147     ac_cpp_err=$ac_c_preproc_warn_flag
7148   else
7149     ac_cpp_err=
7150   fi
7151 else
7152   ac_cpp_err=yes
7153 fi
7154 if test -z "$ac_cpp_err"; then
7155   ac_header_preproc=yes
7156 else
7157   echo "$as_me: failed program was:" >&5
7158 sed 's/^/| /' conftest.$ac_ext >&5
7159
7160   ac_header_preproc=no
7161 fi
7162 rm -f conftest.err conftest.$ac_ext
7163 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7164 echo "${ECHO_T}$ac_header_preproc" >&6
7165
7166 # So?  What about this header?
7167 case $ac_header_compiler:$ac_header_preproc in
7168   yes:no )
7169     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7170 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7171     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7172 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7173     (
7174       cat <<\_ASBOX
7175 ## ------------------------------------ ##
7176 ## Report this to [email protected]. ##
7177 ## ------------------------------------ ##
7178 _ASBOX
7179     ) |
7180       sed "s/^/$as_me: WARNING:     /" >&2
7181     ;;
7182   no:yes )
7183     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7184 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7185     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7186 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7187     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7188 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7189     (
7190       cat <<\_ASBOX
7191 ## ------------------------------------ ##
7192 ## Report this to [email protected]. ##
7193 ## ------------------------------------ ##
7194 _ASBOX
7195     ) |
7196       sed "s/^/$as_me: WARNING:     /" >&2
7197     ;;
7198 esac
7199 echo "$as_me:$LINENO: checking for $ac_header" >&5
7200 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7201 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7202   echo $ECHO_N "(cached) $ECHO_C" >&6
7203 else
7204   eval "$as_ac_Header=$ac_header_preproc"
7205 fi
7206 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7207 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7208
7209 fi
7210 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7211   cat >>confdefs.h <<_ACEOF
7212 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7213 _ACEOF
7214
7215 fi
7216
7217 done
7218
7219
7220 for ac_func in getpagesize
7221 do
7222 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7223 echo "$as_me:$LINENO: checking for $ac_func" >&5
7224 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7225 if eval "test \"\${$as_ac_var+set}\" = set"; then
7226   echo $ECHO_N "(cached) $ECHO_C" >&6
7227 else
7228   cat >conftest.$ac_ext <<_ACEOF
7229 #line $LINENO "configure"
7230 /* confdefs.h.  */
7231 _ACEOF
7232 cat confdefs.h >>conftest.$ac_ext
7233 cat >>conftest.$ac_ext <<_ACEOF
7234 /* end confdefs.h.  */
7235 /* System header to define __stub macros and hopefully few prototypes,
7236     which can conflict with char $ac_func (); below.
7237     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7238     <limits.h> exists even on freestanding compilers.  */
7239 #ifdef __STDC__
7240 # include <limits.h>
7241 #else
7242 # include <assert.h>
7243 #endif
7244 /* Override any gcc2 internal prototype to avoid an error.  */
7245 #ifdef __cplusplus
7246 extern "C"
7247 {
7248 #endif
7249 /* We use char because int might match the return type of a gcc2
7250    builtin and then its argument prototype would still apply.  */
7251 char $ac_func ();
7252 /* The GNU C library defines this for functions which it implements
7253     to always fail with ENOSYS.  Some functions are actually named
7254     something starting with __ and the normal name is an alias.  */
7255 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7256 choke me
7257 #else
7258 char (*f) () = $ac_func;
7259 #endif
7260 #ifdef __cplusplus
7261 }
7262 #endif
7263
7264 int
7265 main ()
7266 {
7267 return f != $ac_func;
7268   ;
7269   return 0;
7270 }
7271 _ACEOF
7272 rm -f conftest.$ac_objext conftest$ac_exeext
7273 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7274   (eval $ac_link) 2>&5
7275   ac_status=$?
7276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7277   (exit $ac_status); } &&
7278          { ac_try='test -s conftest$ac_exeext'
7279   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7280   (eval $ac_try) 2>&5
7281   ac_status=$?
7282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7283   (exit $ac_status); }; }; then
7284   eval "$as_ac_var=yes"
7285 else
7286   echo "$as_me: failed program was:" >&5
7287 sed 's/^/| /' conftest.$ac_ext >&5
7288
7289 eval "$as_ac_var=no"
7290 fi
7291 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7292 fi
7293 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7294 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7295 if test `eval echo '${'$as_ac_var'}'` = yes; then
7296   cat >>confdefs.h <<_ACEOF
7297 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7298 _ACEOF
7299
7300 fi
7301 done
7302
7303 echo "$as_me:$LINENO: checking for working mmap" >&5
7304 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
7305 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
7306   echo $ECHO_N "(cached) $ECHO_C" >&6
7307 else
7308   if test "$cross_compiling" = yes; then
7309   ac_cv_func_mmap_fixed_mapped=no
7310 else
7311   cat >conftest.$ac_ext <<_ACEOF
7312 #line $LINENO "configure"
7313 /* confdefs.h.  */
7314 _ACEOF
7315 cat confdefs.h >>conftest.$ac_ext
7316 cat >>conftest.$ac_ext <<_ACEOF
7317 /* end confdefs.h.  */
7318 $ac_includes_default
7319 /* malloc might have been renamed as rpl_malloc. */
7320 #undef malloc
7321
7322 /* Thanks to Mike Haertel and Jim Avera for this test.
7323    Here is a matrix of mmap possibilities:
7324         mmap private not fixed
7325         mmap private fixed at somewhere currently unmapped
7326         mmap private fixed at somewhere already mapped
7327         mmap shared not fixed
7328         mmap shared fixed at somewhere currently unmapped
7329         mmap shared fixed at somewhere already mapped
7330    For private mappings, we should verify that changes cannot be read()
7331    back from the file, nor mmap's back from the file at a different
7332    address.  (There have been systems where private was not correctly
7333    implemented like the infamous i386 svr4.0, and systems where the
7334    VM page cache was not coherent with the file system buffer cache
7335    like early versions of FreeBSD and possibly contemporary NetBSD.)
7336    For shared mappings, we should conversely verify that changes get
7337    propagated back to all the places they're supposed to be.
7338
7339    Grep wants private fixed already mapped.
7340    The main things grep needs to know about mmap are:
7341    * does it exist and is it safe to write into the mmap'd area
7342    * how to use it (BSD variants)  */
7343
7344 #include <fcntl.h>
7345 #include <sys/mman.h>
7346
7347 #if !STDC_HEADERS && !HAVE_STDLIB_H
7348 char *malloc ();
7349 #endif
7350
7351 /* This mess was copied from the GNU getpagesize.h.  */
7352 #if !HAVE_GETPAGESIZE
7353 /* Assume that all systems that can run configure have sys/param.h.  */
7354 # if !HAVE_SYS_PARAM_H
7355 #  define HAVE_SYS_PARAM_H 1
7356 # endif
7357
7358 # ifdef _SC_PAGESIZE
7359 #  define getpagesize() sysconf(_SC_PAGESIZE)
7360 # else /* no _SC_PAGESIZE */
7361 #  if HAVE_SYS_PARAM_H
7362 #   include <sys/param.h>
7363 #   ifdef EXEC_PAGESIZE
7364 #    define getpagesize() EXEC_PAGESIZE
7365 #   else /* no EXEC_PAGESIZE */
7366 #    ifdef NBPG
7367 #     define getpagesize() NBPG * CLSIZE
7368 #     ifndef CLSIZE
7369 #      define CLSIZE 1
7370 #     endif /* no CLSIZE */
7371 #    else /* no NBPG */
7372 #     ifdef NBPC
7373 #      define getpagesize() NBPC
7374 #     else /* no NBPC */
7375 #      ifdef PAGESIZE
7376 #       define getpagesize() PAGESIZE
7377 #      endif /* PAGESIZE */
7378 #     endif /* no NBPC */
7379 #    endif /* no NBPG */
7380 #   endif /* no EXEC_PAGESIZE */
7381 #  else /* no HAVE_SYS_PARAM_H */
7382 #   define getpagesize() 8192   /* punt totally */
7383 #  endif /* no HAVE_SYS_PARAM_H */
7384 # endif /* no _SC_PAGESIZE */
7385
7386 #endif /* no HAVE_GETPAGESIZE */
7387
7388 int
7389 main ()
7390 {
7391   char *data, *data2, *data3;
7392   int i, pagesize;
7393   int fd;
7394
7395   pagesize = getpagesize ();
7396
7397   /* First, make a file with some known garbage in it. */
7398   data = (char *) malloc (pagesize);
7399   if (!data)
7400     exit (1);
7401   for (i = 0; i < pagesize; ++i)
7402     *(data + i) = rand ();
7403   umask (0);
7404   fd = creat ("conftest.mmap", 0600);
7405   if (fd < 0)
7406     exit (1);
7407   if (write (fd, data, pagesize) != pagesize)
7408     exit (1);
7409   close (fd);
7410
7411   /* Next, try to mmap the file at a fixed address which already has
7412      something else allocated at it.  If we can, also make sure that
7413      we see the same garbage.  */
7414   fd = open ("conftest.mmap", O_RDWR);
7415   if (fd < 0)
7416     exit (1);
7417   data2 = (char *) malloc (2 * pagesize);
7418   if (!data2)
7419     exit (1);
7420   data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
7421   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7422                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
7423     exit (1);
7424   for (i = 0; i < pagesize; ++i)
7425     if (*(data + i) != *(data2 + i))
7426       exit (1);
7427
7428   /* Finally, make sure that changes to the mapped area do not
7429      percolate back to the file as seen by read().  (This is a bug on
7430      some variants of i386 svr4.0.)  */
7431   for (i = 0; i < pagesize; ++i)
7432     *(data2 + i) = *(data2 + i) + 1;
7433   data3 = (char *) malloc (pagesize);
7434   if (!data3)
7435     exit (1);
7436   if (read (fd, data3, pagesize) != pagesize)
7437     exit (1);
7438   for (i = 0; i < pagesize; ++i)
7439     if (*(data + i) != *(data3 + i))
7440       exit (1);
7441   close (fd);
7442   exit (0);
7443 }
7444 _ACEOF
7445 rm -f conftest$ac_exeext
7446 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7447   (eval $ac_link) 2>&5
7448   ac_status=$?
7449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7450   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7451   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7452   (eval $ac_try) 2>&5
7453   ac_status=$?
7454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7455   (exit $ac_status); }; }; then
7456   ac_cv_func_mmap_fixed_mapped=yes
7457 else
7458   echo "$as_me: program exited with status $ac_status" >&5
7459 echo "$as_me: failed program was:" >&5
7460 sed 's/^/| /' conftest.$ac_ext >&5
7461
7462 ( exit $ac_status )
7463 ac_cv_func_mmap_fixed_mapped=no
7464 fi
7465 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7466 fi
7467 fi
7468 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
7469 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
7470 if test $ac_cv_func_mmap_fixed_mapped = yes; then
7471
7472 cat >>confdefs.h <<\_ACEOF
7473 #define HAVE_MMAP 1
7474 _ACEOF
7475
7476 fi
7477 rm -f conftest.mmap
7478
7479
7480
7481
7482
7483
7484
7485
7486
7487
7488
7489 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h string.h \
7490 unistd.h values.h sys/param.h
7491 do
7492 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7493 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7494   echo "$as_me:$LINENO: checking for $ac_header" >&5
7495 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7496 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7497   echo $ECHO_N "(cached) $ECHO_C" >&6
7498 fi
7499 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7500 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7501 else
7502   # Is the header compilable?
7503 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7504 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7505 cat >conftest.$ac_ext <<_ACEOF
7506 #line $LINENO "configure"
7507 /* confdefs.h.  */
7508 _ACEOF
7509 cat confdefs.h >>conftest.$ac_ext
7510 cat >>conftest.$ac_ext <<_ACEOF
7511 /* end confdefs.h.  */
7512 $ac_includes_default
7513 #include <$ac_header>
7514 _ACEOF
7515 rm -f conftest.$ac_objext
7516 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7517   (eval $ac_compile) 2>&5
7518   ac_status=$?
7519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7520   (exit $ac_status); } &&
7521          { ac_try='test -s conftest.$ac_objext'
7522   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7523   (eval $ac_try) 2>&5
7524   ac_status=$?
7525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7526   (exit $ac_status); }; }; then
7527   ac_header_compiler=yes
7528 else
7529   echo "$as_me: failed program was:" >&5
7530 sed 's/^/| /' conftest.$ac_ext >&5
7531
7532 ac_header_compiler=no
7533 fi
7534 rm -f conftest.$ac_objext conftest.$ac_ext
7535 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7536 echo "${ECHO_T}$ac_header_compiler" >&6
7537
7538 # Is the header present?
7539 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7540 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7541 cat >conftest.$ac_ext <<_ACEOF
7542 #line $LINENO "configure"
7543 /* confdefs.h.  */
7544 _ACEOF
7545 cat confdefs.h >>conftest.$ac_ext
7546 cat >>conftest.$ac_ext <<_ACEOF
7547 /* end confdefs.h.  */
7548 #include <$ac_header>
7549 _ACEOF
7550 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7551   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7552   ac_status=$?
7553   grep -v '^ *+' conftest.er1 >conftest.err
7554   rm -f conftest.er1
7555   cat conftest.err >&5
7556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7557   (exit $ac_status); } >/dev/null; then
7558   if test -s conftest.err; then
7559     ac_cpp_err=$ac_c_preproc_warn_flag
7560   else
7561     ac_cpp_err=
7562   fi
7563 else
7564   ac_cpp_err=yes
7565 fi
7566 if test -z "$ac_cpp_err"; then
7567   ac_header_preproc=yes
7568 else
7569   echo "$as_me: failed program was:" >&5
7570 sed 's/^/| /' conftest.$ac_ext >&5
7571
7572   ac_header_preproc=no
7573 fi
7574 rm -f conftest.err conftest.$ac_ext
7575 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7576 echo "${ECHO_T}$ac_header_preproc" >&6
7577
7578 # So?  What about this header?
7579 case $ac_header_compiler:$ac_header_preproc in
7580   yes:no )
7581     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7582 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7583     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7584 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7585     (
7586       cat <<\_ASBOX
7587 ## ------------------------------------ ##
7588 ## Report this to [email protected]. ##
7589 ## ------------------------------------ ##
7590 _ASBOX
7591     ) |
7592       sed "s/^/$as_me: WARNING:     /" >&2
7593     ;;
7594   no:yes )
7595     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7596 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7597     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7598 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7599     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7600 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7601     (
7602       cat <<\_ASBOX
7603 ## ------------------------------------ ##
7604 ## Report this to [email protected]. ##
7605 ## ------------------------------------ ##
7606 _ASBOX
7607     ) |
7608       sed "s/^/$as_me: WARNING:     /" >&2
7609     ;;
7610 esac
7611 echo "$as_me:$LINENO: checking for $ac_header" >&5
7612 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7613 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7614   echo $ECHO_N "(cached) $ECHO_C" >&6
7615 else
7616   eval "$as_ac_Header=$ac_header_preproc"
7617 fi
7618 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7619 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7620
7621 fi
7622 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7623   cat >>confdefs.h <<_ACEOF
7624 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7625 _ACEOF
7626
7627 fi
7628
7629 done
7630
7631
7632
7633
7634
7635
7636
7637
7638
7639
7640
7641 for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \
7642 __argz_count __argz_stringify __argz_next
7643 do
7644 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7645 echo "$as_me:$LINENO: checking for $ac_func" >&5
7646 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7647 if eval "test \"\${$as_ac_var+set}\" = set"; then
7648   echo $ECHO_N "(cached) $ECHO_C" >&6
7649 else
7650   cat >conftest.$ac_ext <<_ACEOF
7651 #line $LINENO "configure"
7652 /* confdefs.h.  */
7653 _ACEOF
7654 cat confdefs.h >>conftest.$ac_ext
7655 cat >>conftest.$ac_ext <<_ACEOF
7656 /* end confdefs.h.  */
7657 /* System header to define __stub macros and hopefully few prototypes,
7658     which can conflict with char $ac_func (); below.
7659     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7660     <limits.h> exists even on freestanding compilers.  */
7661 #ifdef __STDC__
7662 # include <limits.h>
7663 #else
7664 # include <assert.h>
7665 #endif
7666 /* Override any gcc2 internal prototype to avoid an error.  */
7667 #ifdef __cplusplus
7668 extern "C"
7669 {
7670 #endif
7671 /* We use char because int might match the return type of a gcc2
7672    builtin and then its argument prototype would still apply.  */
7673 char $ac_func ();
7674 /* The GNU C library defines this for functions which it implements
7675     to always fail with ENOSYS.  Some functions are actually named
7676     something starting with __ and the normal name is an alias.  */
7677 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7678 choke me
7679 #else
7680 char (*f) () = $ac_func;
7681 #endif
7682 #ifdef __cplusplus
7683 }
7684 #endif
7685
7686 int
7687 main ()
7688 {
7689 return f != $ac_func;
7690   ;
7691   return 0;
7692 }
7693 _ACEOF
7694 rm -f conftest.$ac_objext conftest$ac_exeext
7695 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7696   (eval $ac_link) 2>&5
7697   ac_status=$?
7698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7699   (exit $ac_status); } &&
7700          { ac_try='test -s conftest$ac_exeext'
7701   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7702   (eval $ac_try) 2>&5
7703   ac_status=$?
7704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7705   (exit $ac_status); }; }; then
7706   eval "$as_ac_var=yes"
7707 else
7708   echo "$as_me: failed program was:" >&5
7709 sed 's/^/| /' conftest.$ac_ext >&5
7710
7711 eval "$as_ac_var=no"
7712 fi
7713 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7714 fi
7715 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7716 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7717 if test `eval echo '${'$as_ac_var'}'` = yes; then
7718   cat >>confdefs.h <<_ACEOF
7719 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7720 _ACEOF
7721
7722 fi
7723 done
7724
7725
7726    if test "${ac_cv_func_stpcpy+set}" != "set"; then
7727
7728 for ac_func in stpcpy
7729 do
7730 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7731 echo "$as_me:$LINENO: checking for $ac_func" >&5
7732 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7733 if eval "test \"\${$as_ac_var+set}\" = set"; then
7734   echo $ECHO_N "(cached) $ECHO_C" >&6
7735 else
7736   cat >conftest.$ac_ext <<_ACEOF
7737 #line $LINENO "configure"
7738 /* confdefs.h.  */
7739 _ACEOF
7740 cat confdefs.h >>conftest.$ac_ext
7741 cat >>conftest.$ac_ext <<_ACEOF
7742 /* end confdefs.h.  */
7743 /* System header to define __stub macros and hopefully few prototypes,
7744     which can conflict with char $ac_func (); below.
7745     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7746     <limits.h> exists even on freestanding compilers.  */
7747 #ifdef __STDC__
7748 # include <limits.h>
7749 #else
7750 # include <assert.h>
7751 #endif
7752 /* Override any gcc2 internal prototype to avoid an error.  */
7753 #ifdef __cplusplus
7754 extern "C"
7755 {
7756 #endif
7757 /* We use char because int might match the return type of a gcc2
7758    builtin and then its argument prototype would still apply.  */
7759 char $ac_func ();
7760 /* The GNU C library defines this for functions which it implements
7761     to always fail with ENOSYS.  Some functions are actually named
7762     something starting with __ and the normal name is an alias.  */
7763 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7764 choke me
7765 #else
7766 char (*f) () = $ac_func;
7767 #endif
7768 #ifdef __cplusplus
7769 }
7770 #endif
7771
7772 int
7773 main ()
7774 {
7775 return f != $ac_func;
7776   ;
7777   return 0;
7778 }
7779 _ACEOF
7780 rm -f conftest.$ac_objext conftest$ac_exeext
7781 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7782   (eval $ac_link) 2>&5
7783   ac_status=$?
7784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7785   (exit $ac_status); } &&
7786          { ac_try='test -s conftest$ac_exeext'
7787   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7788   (eval $ac_try) 2>&5
7789   ac_status=$?
7790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7791   (exit $ac_status); }; }; then
7792   eval "$as_ac_var=yes"
7793 else
7794   echo "$as_me: failed program was:" >&5
7795 sed 's/^/| /' conftest.$ac_ext >&5
7796
7797 eval "$as_ac_var=no"
7798 fi
7799 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7800 fi
7801 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7802 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7803 if test `eval echo '${'$as_ac_var'}'` = yes; then
7804   cat >>confdefs.h <<_ACEOF
7805 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7806 _ACEOF
7807
7808 fi
7809 done
7810
7811    fi
7812    if test "${ac_cv_func_stpcpy}" = "yes"; then
7813
7814 cat >>confdefs.h <<\_ACEOF
7815 #define HAVE_STPCPY 1
7816 _ACEOF
7817
7818    fi
7819
7820    if test $ac_cv_header_locale_h = yes; then
7821     echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
7822 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
7823 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
7824   echo $ECHO_N "(cached) $ECHO_C" >&6
7825 else
7826   cat >conftest.$ac_ext <<_ACEOF
7827 #line $LINENO "configure"
7828 /* confdefs.h.  */
7829 _ACEOF
7830 cat confdefs.h >>conftest.$ac_ext
7831 cat >>conftest.$ac_ext <<_ACEOF
7832 /* end confdefs.h.  */
7833 #include <locale.h>
7834 int
7835 main ()
7836 {
7837 return LC_MESSAGES
7838   ;
7839   return 0;
7840 }
7841 _ACEOF
7842 rm -f conftest.$ac_objext conftest$ac_exeext
7843 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7844   (eval $ac_link) 2>&5
7845   ac_status=$?
7846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7847   (exit $ac_status); } &&
7848          { ac_try='test -s conftest$ac_exeext'
7849   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7850   (eval $ac_try) 2>&5
7851   ac_status=$?
7852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7853   (exit $ac_status); }; }; then
7854   am_cv_val_LC_MESSAGES=yes
7855 else
7856   echo "$as_me: failed program was:" >&5
7857 sed 's/^/| /' conftest.$ac_ext >&5
7858
7859 am_cv_val_LC_MESSAGES=no
7860 fi
7861 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7862 fi
7863 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
7864 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
7865     if test $am_cv_val_LC_MESSAGES = yes; then
7866
7867 cat >>confdefs.h <<\_ACEOF
7868 #define HAVE_LC_MESSAGES 1
7869 _ACEOF
7870
7871     fi
7872   fi
7873    echo "$as_me:$LINENO: checking whether NLS is requested" >&5
7874 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
7875         # Check whether --enable-nls or --disable-nls was given.
7876 if test "${enable_nls+set}" = set; then
7877   enableval="$enable_nls"
7878   USE_NLS=$enableval
7879 else
7880   USE_NLS=yes
7881 fi;
7882     echo "$as_me:$LINENO: result: $USE_NLS" >&5
7883 echo "${ECHO_T}$USE_NLS" >&6
7884
7885
7886     USE_INCLUDED_LIBINTL=no
7887
7888         if test "$USE_NLS" = "yes"; then
7889
7890 cat >>confdefs.h <<\_ACEOF
7891 #define ENABLE_NLS 1
7892 _ACEOF
7893
7894       echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
7895 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
7896
7897 # Check whether --with-included-gettext or --without-included-gettext was given.
7898 if test "${with_included_gettext+set}" = set; then
7899   withval="$with_included_gettext"
7900   nls_cv_force_use_gnu_gettext=$withval
7901 else
7902   nls_cv_force_use_gnu_gettext=no
7903 fi;
7904       echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
7905 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
7906
7907       nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
7908       if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
7909                                         nls_cv_header_intl=
7910         nls_cv_header_libgt=
7911         CATOBJEXT=NONE
7912
7913         if test "${ac_cv_header_libintl_h+set}" = set; then
7914   echo "$as_me:$LINENO: checking for libintl.h" >&5
7915 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
7916 if test "${ac_cv_header_libintl_h+set}" = set; then
7917   echo $ECHO_N "(cached) $ECHO_C" >&6
7918 fi
7919 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
7920 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
7921 else
7922   # Is the header compilable?
7923 echo "$as_me:$LINENO: checking libintl.h usability" >&5
7924 echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6
7925 cat >conftest.$ac_ext <<_ACEOF
7926 #line $LINENO "configure"
7927 /* confdefs.h.  */
7928 _ACEOF
7929 cat confdefs.h >>conftest.$ac_ext
7930 cat >>conftest.$ac_ext <<_ACEOF
7931 /* end confdefs.h.  */
7932 $ac_includes_default
7933 #include <libintl.h>
7934 _ACEOF
7935 rm -f conftest.$ac_objext
7936 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7937   (eval $ac_compile) 2>&5
7938   ac_status=$?
7939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7940   (exit $ac_status); } &&
7941          { ac_try='test -s conftest.$ac_objext'
7942   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7943   (eval $ac_try) 2>&5
7944   ac_status=$?
7945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7946   (exit $ac_status); }; }; then
7947   ac_header_compiler=yes
7948 else
7949   echo "$as_me: failed program was:" >&5
7950 sed 's/^/| /' conftest.$ac_ext >&5
7951
7952 ac_header_compiler=no
7953 fi
7954 rm -f conftest.$ac_objext conftest.$ac_ext
7955 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7956 echo "${ECHO_T}$ac_header_compiler" >&6
7957
7958 # Is the header present?
7959 echo "$as_me:$LINENO: checking libintl.h presence" >&5
7960 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6
7961 cat >conftest.$ac_ext <<_ACEOF
7962 #line $LINENO "configure"
7963 /* confdefs.h.  */
7964 _ACEOF
7965 cat confdefs.h >>conftest.$ac_ext
7966 cat >>conftest.$ac_ext <<_ACEOF
7967 /* end confdefs.h.  */
7968 #include <libintl.h>
7969 _ACEOF
7970 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7971   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7972   ac_status=$?
7973   grep -v '^ *+' conftest.er1 >conftest.err
7974   rm -f conftest.er1
7975   cat conftest.err >&5
7976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7977   (exit $ac_status); } >/dev/null; then
7978   if test -s conftest.err; then
7979     ac_cpp_err=$ac_c_preproc_warn_flag
7980   else
7981     ac_cpp_err=
7982   fi
7983 else
7984   ac_cpp_err=yes
7985 fi
7986 if test -z "$ac_cpp_err"; then
7987   ac_header_preproc=yes
7988 else
7989   echo "$as_me: failed program was:" >&5
7990 sed 's/^/| /' conftest.$ac_ext >&5
7991
7992   ac_header_preproc=no
7993 fi
7994 rm -f conftest.err conftest.$ac_ext
7995 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7996 echo "${ECHO_T}$ac_header_preproc" >&6
7997
7998 # So?  What about this header?
7999 case $ac_header_compiler:$ac_header_preproc in
8000   yes:no )
8001     { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
8002 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8003     { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
8004 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
8005     (
8006       cat <<\_ASBOX
8007 ## ------------------------------------ ##
8008 ## Report this to [email protected]. ##
8009 ## ------------------------------------ ##
8010 _ASBOX
8011     ) |
8012       sed "s/^/$as_me: WARNING:     /" >&2
8013     ;;
8014   no:yes )
8015     { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
8016 echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
8017     { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
8018 echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
8019     { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
8020 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
8021     (
8022       cat <<\_ASBOX
8023 ## ------------------------------------ ##
8024 ## Report this to [email protected]. ##
8025 ## ------------------------------------ ##
8026 _ASBOX
8027     ) |
8028       sed "s/^/$as_me: WARNING:     /" >&2
8029     ;;
8030 esac
8031 echo "$as_me:$LINENO: checking for libintl.h" >&5
8032 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
8033 if test "${ac_cv_header_libintl_h+set}" = set; then
8034   echo $ECHO_N "(cached) $ECHO_C" >&6
8035 else
8036   ac_cv_header_libintl_h=$ac_header_preproc
8037 fi
8038 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
8039 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
8040
8041 fi
8042 if test $ac_cv_header_libintl_h = yes; then
8043   echo "$as_me:$LINENO: checking for gettext in libc" >&5
8044 echo $ECHO_N "checking for gettext in libc... $ECHO_C" >&6
8045 if test "${gt_cv_func_gettext_libc+set}" = set; then
8046   echo $ECHO_N "(cached) $ECHO_C" >&6
8047 else
8048   cat >conftest.$ac_ext <<_ACEOF
8049 #line $LINENO "configure"
8050 /* confdefs.h.  */
8051 _ACEOF
8052 cat confdefs.h >>conftest.$ac_ext
8053 cat >>conftest.$ac_ext <<_ACEOF
8054 /* end confdefs.h.  */
8055 #include <libintl.h>
8056 int
8057 main ()
8058 {
8059 return (int) gettext ("")
8060   ;
8061   return 0;
8062 }
8063 _ACEOF
8064 rm -f conftest.$ac_objext conftest$ac_exeext
8065 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8066   (eval $ac_link) 2>&5
8067   ac_status=$?
8068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8069   (exit $ac_status); } &&
8070          { ac_try='test -s conftest$ac_exeext'
8071   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8072   (eval $ac_try) 2>&5
8073   ac_status=$?
8074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8075   (exit $ac_status); }; }; then
8076   gt_cv_func_gettext_libc=yes
8077 else
8078   echo "$as_me: failed program was:" >&5
8079 sed 's/^/| /' conftest.$ac_ext >&5
8080
8081 gt_cv_func_gettext_libc=no
8082 fi
8083 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8084 fi
8085 echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libc" >&5
8086 echo "${ECHO_T}$gt_cv_func_gettext_libc" >&6
8087
8088            if test "$gt_cv_func_gettext_libc" != "yes"; then
8089              echo "$as_me:$LINENO: checking for bindtextdomain in -lintl" >&5
8090 echo $ECHO_N "checking for bindtextdomain in -lintl... $ECHO_C" >&6
8091 if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then
8092   echo $ECHO_N "(cached) $ECHO_C" >&6
8093 else
8094   ac_check_lib_save_LIBS=$LIBS
8095 LIBS="-lintl  $LIBS"
8096 cat >conftest.$ac_ext <<_ACEOF
8097 #line $LINENO "configure"
8098 /* confdefs.h.  */
8099 _ACEOF
8100 cat confdefs.h >>conftest.$ac_ext
8101 cat >>conftest.$ac_ext <<_ACEOF
8102 /* end confdefs.h.  */
8103
8104 /* Override any gcc2 internal prototype to avoid an error.  */
8105 #ifdef __cplusplus
8106 extern "C"
8107 #endif
8108 /* We use char because int might match the return type of a gcc2
8109    builtin and then its argument prototype would still apply.  */
8110 char bindtextdomain ();
8111 int
8112 main ()
8113 {
8114 bindtextdomain ();
8115   ;
8116   return 0;
8117 }
8118 _ACEOF
8119 rm -f conftest.$ac_objext conftest$ac_exeext
8120 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8121   (eval $ac_link) 2>&5
8122   ac_status=$?
8123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8124   (exit $ac_status); } &&
8125          { ac_try='test -s conftest$ac_exeext'
8126   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8127   (eval $ac_try) 2>&5
8128   ac_status=$?
8129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8130   (exit $ac_status); }; }; then
8131   ac_cv_lib_intl_bindtextdomain=yes
8132 else
8133   echo "$as_me: failed program was:" >&5
8134 sed 's/^/| /' conftest.$ac_ext >&5
8135
8136 ac_cv_lib_intl_bindtextdomain=no
8137 fi
8138 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8139 LIBS=$ac_check_lib_save_LIBS
8140 fi
8141 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_bindtextdomain" >&5
8142 echo "${ECHO_T}$ac_cv_lib_intl_bindtextdomain" >&6
8143 if test $ac_cv_lib_intl_bindtextdomain = yes; then
8144   echo "$as_me:$LINENO: checking for gettext in libintl" >&5
8145 echo $ECHO_N "checking for gettext in libintl... $ECHO_C" >&6
8146 if test "${gt_cv_func_gettext_libintl+set}" = set; then
8147   echo $ECHO_N "(cached) $ECHO_C" >&6
8148 else
8149   cat >conftest.$ac_ext <<_ACEOF
8150 #line $LINENO "configure"
8151 /* confdefs.h.  */
8152 _ACEOF
8153 cat confdefs.h >>conftest.$ac_ext
8154 cat >>conftest.$ac_ext <<_ACEOF
8155 /* end confdefs.h.  */
8156
8157 int
8158 main ()
8159 {
8160 return (int) gettext ("")
8161   ;
8162   return 0;
8163 }
8164 _ACEOF
8165 rm -f conftest.$ac_objext conftest$ac_exeext
8166 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8167   (eval $ac_link) 2>&5
8168   ac_status=$?
8169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8170   (exit $ac_status); } &&
8171          { ac_try='test -s conftest$ac_exeext'
8172   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8173   (eval $ac_try) 2>&5
8174   ac_status=$?
8175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8176   (exit $ac_status); }; }; then
8177   gt_cv_func_gettext_libintl=yes
8178 else
8179   echo "$as_me: failed program was:" >&5
8180 sed 's/^/| /' conftest.$ac_ext >&5
8181
8182 gt_cv_func_gettext_libintl=no
8183 fi
8184 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8185 fi
8186 echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libintl" >&5
8187 echo "${ECHO_T}$gt_cv_func_gettext_libintl" >&6
8188 fi
8189
8190            fi
8191
8192            if test "$gt_cv_func_gettext_libc" = "yes" \
8193               || test "$gt_cv_func_gettext_libintl" = "yes"; then
8194
8195 cat >>confdefs.h <<\_ACEOF
8196 #define HAVE_GETTEXT 1
8197 _ACEOF
8198
8199               # Extract the first word of "msgfmt", so it can be a program name with args.
8200 set dummy msgfmt; ac_word=$2
8201 echo "$as_me:$LINENO: checking for $ac_word" >&5
8202 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8203 if test "${ac_cv_path_MSGFMT+set}" = set; then
8204   echo $ECHO_N "(cached) $ECHO_C" >&6
8205 else
8206   case "$MSGFMT" in
8207   /*)
8208   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
8209   ;;
8210   *)
8211   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
8212   for ac_dir in $PATH; do
8213     test -z "$ac_dir" && ac_dir=.
8214     if test -f $ac_dir/$ac_word; then
8215       if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
8216         ac_cv_path_MSGFMT="$ac_dir/$ac_word"
8217         break
8218       fi
8219     fi
8220   done
8221   IFS="$ac_save_ifs"
8222   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
8223   ;;
8224 esac
8225 fi
8226 MSGFMT="$ac_cv_path_MSGFMT"
8227 if test -n "$MSGFMT"; then
8228   echo "$as_me:$LINENO: result: $MSGFMT" >&5
8229 echo "${ECHO_T}$MSGFMT" >&6
8230 else
8231   echo "$as_me:$LINENO: result: no" >&5
8232 echo "${ECHO_T}no" >&6
8233 fi
8234               if test "$MSGFMT" != "no"; then
8235
8236 for ac_func in dcgettext
8237 do
8238 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8239 echo "$as_me:$LINENO: checking for $ac_func" >&5
8240 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8241 if eval "test \"\${$as_ac_var+set}\" = set"; then
8242   echo $ECHO_N "(cached) $ECHO_C" >&6
8243 else
8244   cat >conftest.$ac_ext <<_ACEOF
8245 #line $LINENO "configure"
8246 /* confdefs.h.  */
8247 _ACEOF
8248 cat confdefs.h >>conftest.$ac_ext
8249 cat >>conftest.$ac_ext <<_ACEOF
8250 /* end confdefs.h.  */
8251 /* System header to define __stub macros and hopefully few prototypes,
8252     which can conflict with char $ac_func (); below.
8253     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8254     <limits.h> exists even on freestanding compilers.  */
8255 #ifdef __STDC__
8256 # include <limits.h>
8257 #else
8258 # include <assert.h>
8259 #endif
8260 /* Override any gcc2 internal prototype to avoid an error.  */
8261 #ifdef __cplusplus
8262 extern "C"
8263 {
8264 #endif
8265 /* We use char because int might match the return type of a gcc2
8266    builtin and then its argument prototype would still apply.  */
8267 char $ac_func ();
8268 /* The GNU C library defines this for functions which it implements
8269     to always fail with ENOSYS.  Some functions are actually named
8270     something starting with __ and the normal name is an alias.  */
8271 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8272 choke me
8273 #else
8274 char (*f) () = $ac_func;
8275 #endif
8276 #ifdef __cplusplus
8277 }
8278 #endif
8279
8280 int
8281 main ()
8282 {
8283 return f != $ac_func;
8284   ;
8285   return 0;
8286 }
8287 _ACEOF
8288 rm -f conftest.$ac_objext conftest$ac_exeext
8289 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8290   (eval $ac_link) 2>&5
8291   ac_status=$?
8292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8293   (exit $ac_status); } &&
8294          { ac_try='test -s conftest$ac_exeext'
8295   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8296   (eval $ac_try) 2>&5
8297   ac_status=$?
8298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8299   (exit $ac_status); }; }; then
8300   eval "$as_ac_var=yes"
8301 else
8302   echo "$as_me: failed program was:" >&5
8303 sed 's/^/| /' conftest.$ac_ext >&5
8304
8305 eval "$as_ac_var=no"
8306 fi
8307 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8308 fi
8309 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8310 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8311 if test `eval echo '${'$as_ac_var'}'` = yes; then
8312   cat >>confdefs.h <<_ACEOF
8313 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8314 _ACEOF
8315
8316 fi
8317 done
8318
8319                 # Extract the first word of "gmsgfmt", so it can be a program name with args.
8320 set dummy gmsgfmt; ac_word=$2
8321 echo "$as_me:$LINENO: checking for $ac_word" >&5
8322 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8323 if test "${ac_cv_path_GMSGFMT+set}" = set; then
8324   echo $ECHO_N "(cached) $ECHO_C" >&6
8325 else
8326   case $GMSGFMT in
8327   [\\/]* | ?:[\\/]*)
8328   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
8329   ;;
8330   *)
8331   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8332 for as_dir in $PATH
8333 do
8334   IFS=$as_save_IFS
8335   test -z "$as_dir" && as_dir=.
8336   for ac_exec_ext in '' $ac_executable_extensions; do
8337   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8338     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
8339     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8340     break 2
8341   fi
8342 done
8343 done
8344
8345   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
8346   ;;
8347 esac
8348 fi
8349 GMSGFMT=$ac_cv_path_GMSGFMT
8350
8351 if test -n "$GMSGFMT"; then
8352   echo "$as_me:$LINENO: result: $GMSGFMT" >&5
8353 echo "${ECHO_T}$GMSGFMT" >&6
8354 else
8355   echo "$as_me:$LINENO: result: no" >&5
8356 echo "${ECHO_T}no" >&6
8357 fi
8358
8359                 # Extract the first word of "xgettext", so it can be a program name with args.
8360 set dummy xgettext; ac_word=$2
8361 echo "$as_me:$LINENO: checking for $ac_word" >&5
8362 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8363 if test "${ac_cv_path_XGETTEXT+set}" = set; then
8364   echo $ECHO_N "(cached) $ECHO_C" >&6
8365 else
8366   case "$XGETTEXT" in
8367   /*)
8368   ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
8369   ;;
8370   *)
8371   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
8372   for ac_dir in $PATH; do
8373     test -z "$ac_dir" && ac_dir=.
8374     if test -f $ac_dir/$ac_word; then
8375       if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
8376         ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
8377         break
8378       fi
8379     fi
8380   done
8381   IFS="$ac_save_ifs"
8382   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
8383   ;;
8384 esac
8385 fi
8386 XGETTEXT="$ac_cv_path_XGETTEXT"
8387 if test -n "$XGETTEXT"; then
8388   echo "$as_me:$LINENO: result: $XGETTEXT" >&5
8389 echo "${ECHO_T}$XGETTEXT" >&6
8390 else
8391   echo "$as_me:$LINENO: result: no" >&5
8392 echo "${ECHO_T}no" >&6
8393 fi
8394
8395                 cat >conftest.$ac_ext <<_ACEOF
8396 #line $LINENO "configure"
8397 /* confdefs.h.  */
8398 _ACEOF
8399 cat confdefs.h >>conftest.$ac_ext
8400 cat >>conftest.$ac_ext <<_ACEOF
8401 /* end confdefs.h.  */
8402
8403 int
8404 main ()
8405 {
8406 extern int _nl_msg_cat_cntr;
8407                                return _nl_msg_cat_cntr
8408   ;
8409   return 0;
8410 }
8411 _ACEOF
8412 rm -f conftest.$ac_objext conftest$ac_exeext
8413 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8414   (eval $ac_link) 2>&5
8415   ac_status=$?
8416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8417   (exit $ac_status); } &&
8418          { ac_try='test -s conftest$ac_exeext'
8419   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8420   (eval $ac_try) 2>&5
8421   ac_status=$?
8422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8423   (exit $ac_status); }; }; then
8424   CATOBJEXT=.gmo
8425                    DATADIRNAME=share
8426 else
8427   echo "$as_me: failed program was:" >&5
8428 sed 's/^/| /' conftest.$ac_ext >&5
8429
8430 CATOBJEXT=.mo
8431                    DATADIRNAME=lib
8432 fi
8433 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8434                 INSTOBJEXT=.mo
8435               fi
8436             fi
8437
8438 fi
8439
8440
8441
8442
8443         if test "$CATOBJEXT" = "NONE"; then
8444                           nls_cv_use_gnu_gettext=yes
8445         fi
8446       fi
8447
8448       if test "$nls_cv_use_gnu_gettext" = "yes"; then
8449                 INTLOBJS="\$(GETTOBJS)"
8450         # Extract the first word of "msgfmt", so it can be a program name with args.
8451 set dummy msgfmt; ac_word=$2
8452 echo "$as_me:$LINENO: checking for $ac_word" >&5
8453 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8454 if test "${ac_cv_path_MSGFMT+set}" = set; then
8455   echo $ECHO_N "(cached) $ECHO_C" >&6
8456 else
8457   case "$MSGFMT" in
8458   /*)
8459   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
8460   ;;
8461   *)
8462   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
8463   for ac_dir in $PATH; do
8464     test -z "$ac_dir" && ac_dir=.
8465     if test -f $ac_dir/$ac_word; then
8466       if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
8467         ac_cv_path_MSGFMT="$ac_dir/$ac_word"
8468         break
8469       fi
8470     fi
8471   done
8472   IFS="$ac_save_ifs"
8473   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt"
8474   ;;
8475 esac
8476 fi
8477 MSGFMT="$ac_cv_path_MSGFMT"
8478 if test -n "$MSGFMT"; then
8479   echo "$as_me:$LINENO: result: $MSGFMT" >&5
8480 echo "${ECHO_T}$MSGFMT" >&6
8481 else
8482   echo "$as_me:$LINENO: result: no" >&5
8483 echo "${ECHO_T}no" >&6
8484 fi
8485
8486         # Extract the first word of "gmsgfmt", so it can be a program name with args.
8487 set dummy gmsgfmt; ac_word=$2
8488 echo "$as_me:$LINENO: checking for $ac_word" >&5
8489 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8490 if test "${ac_cv_path_GMSGFMT+set}" = set; then
8491   echo $ECHO_N "(cached) $ECHO_C" >&6
8492 else
8493   case $GMSGFMT in
8494   [\\/]* | ?:[\\/]*)
8495   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
8496   ;;
8497   *)
8498   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8499 for as_dir in $PATH
8500 do
8501   IFS=$as_save_IFS
8502   test -z "$as_dir" && as_dir=.
8503   for ac_exec_ext in '' $ac_executable_extensions; do
8504   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8505     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
8506     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8507     break 2
8508   fi
8509 done
8510 done
8511
8512   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
8513   ;;
8514 esac
8515 fi
8516 GMSGFMT=$ac_cv_path_GMSGFMT
8517
8518 if test -n "$GMSGFMT"; then
8519   echo "$as_me:$LINENO: result: $GMSGFMT" >&5
8520 echo "${ECHO_T}$GMSGFMT" >&6
8521 else
8522   echo "$as_me:$LINENO: result: no" >&5
8523 echo "${ECHO_T}no" >&6
8524 fi
8525
8526         # Extract the first word of "xgettext", so it can be a program name with args.
8527 set dummy xgettext; ac_word=$2
8528 echo "$as_me:$LINENO: checking for $ac_word" >&5
8529 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8530 if test "${ac_cv_path_XGETTEXT+set}" = set; then
8531   echo $ECHO_N "(cached) $ECHO_C" >&6
8532 else
8533   case "$XGETTEXT" in
8534   /*)
8535   ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
8536   ;;
8537   *)
8538   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
8539   for ac_dir in $PATH; do
8540     test -z "$ac_dir" && ac_dir=.
8541     if test -f $ac_dir/$ac_word; then
8542       if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
8543         ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
8544         break
8545       fi
8546     fi
8547   done
8548   IFS="$ac_save_ifs"
8549   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
8550   ;;
8551 esac
8552 fi
8553 XGETTEXT="$ac_cv_path_XGETTEXT"
8554 if test -n "$XGETTEXT"; then
8555   echo "$as_me:$LINENO: result: $XGETTEXT" >&5
8556 echo "${ECHO_T}$XGETTEXT" >&6
8557 else
8558   echo "$as_me:$LINENO: result: no" >&5
8559 echo "${ECHO_T}no" >&6
8560 fi
8561
8562
8563         USE_INCLUDED_LIBINTL=yes
8564         CATOBJEXT=.gmo
8565         INSTOBJEXT=.mo
8566         DATADIRNAME=share
8567         INTLDEPS='$(top_builddir)/../intl/libintl.a'
8568         INTLLIBS=$INTLDEPS
8569         LIBS=`echo $LIBS | sed -e 's/-lintl//'`
8570         nls_cv_header_intl=libintl.h
8571         nls_cv_header_libgt=libgettext.h
8572       fi
8573
8574             if test "$XGETTEXT" != ":"; then
8575                         if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
8576           : ;
8577         else
8578           echo "$as_me:$LINENO: result: found xgettext programs is not GNU xgettext; ignore it" >&5
8579 echo "${ECHO_T}found xgettext programs is not GNU xgettext; ignore it" >&6
8580           XGETTEXT=":"
8581         fi
8582       fi
8583
8584       # We need to process the po/ directory.
8585       POSUB=po
8586     else
8587       DATADIRNAME=share
8588       nls_cv_header_intl=libintl.h
8589       nls_cv_header_libgt=libgettext.h
8590     fi
8591
8592     # If this is used in GNU gettext we have to set USE_NLS to `yes'
8593     # because some of the sources are only built for this goal.
8594     if test "$PACKAGE" = gettext; then
8595       USE_NLS=yes
8596       USE_INCLUDED_LIBINTL=yes
8597     fi
8598
8599                 for lang in $ALL_LINGUAS; do
8600       GMOFILES="$GMOFILES $lang.gmo"
8601       POFILES="$POFILES $lang.po"
8602     done
8603
8604
8605
8606
8607
8608
8609
8610
8611
8612
8613
8614
8615
8616
8617    if test "x$CATOBJEXT" != "x"; then
8618      if test "x$ALL_LINGUAS" = "x"; then
8619        LINGUAS=
8620      else
8621        echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
8622 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
8623        NEW_LINGUAS=
8624        for lang in ${LINGUAS=$ALL_LINGUAS}; do
8625          case "$ALL_LINGUAS" in
8626           *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
8627          esac
8628        done
8629        LINGUAS=$NEW_LINGUAS
8630        echo "$as_me:$LINENO: result: $LINGUAS" >&5
8631 echo "${ECHO_T}$LINGUAS" >&6
8632      fi
8633
8634           if test -n "$LINGUAS"; then
8635        for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
8636      fi
8637    fi
8638
8639             if test $ac_cv_header_locale_h = yes; then
8640      INCLUDE_LOCALE_H="#include <locale.h>"
8641    else
8642      INCLUDE_LOCALE_H="\
8643 /* The system does not provide the header <locale.h>.  Take care yourself.  */"
8644    fi
8645
8646
8647             if test -f $srcdir/po2tbl.sed.in; then
8648       if test "$CATOBJEXT" = ".cat"; then
8649          if test "${ac_cv_header_linux_version_h+set}" = set; then
8650   echo "$as_me:$LINENO: checking for linux/version.h" >&5
8651 echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6
8652 if test "${ac_cv_header_linux_version_h+set}" = set; then
8653   echo $ECHO_N "(cached) $ECHO_C" >&6
8654 fi
8655 echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
8656 echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6
8657 else
8658   # Is the header compilable?
8659 echo "$as_me:$LINENO: checking linux/version.h usability" >&5
8660 echo $ECHO_N "checking linux/version.h usability... $ECHO_C" >&6
8661 cat >conftest.$ac_ext <<_ACEOF
8662 #line $LINENO "configure"
8663 /* confdefs.h.  */
8664 _ACEOF
8665 cat confdefs.h >>conftest.$ac_ext
8666 cat >>conftest.$ac_ext <<_ACEOF
8667 /* end confdefs.h.  */
8668 $ac_includes_default
8669 #include <linux/version.h>
8670 _ACEOF
8671 rm -f conftest.$ac_objext
8672 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8673   (eval $ac_compile) 2>&5
8674   ac_status=$?
8675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8676   (exit $ac_status); } &&
8677          { ac_try='test -s conftest.$ac_objext'
8678   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8679   (eval $ac_try) 2>&5
8680   ac_status=$?
8681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8682   (exit $ac_status); }; }; then
8683   ac_header_compiler=yes
8684 else
8685   echo "$as_me: failed program was:" >&5
8686 sed 's/^/| /' conftest.$ac_ext >&5
8687
8688 ac_header_compiler=no
8689 fi
8690 rm -f conftest.$ac_objext conftest.$ac_ext
8691 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8692 echo "${ECHO_T}$ac_header_compiler" >&6
8693
8694 # Is the header present?
8695 echo "$as_me:$LINENO: checking linux/version.h presence" >&5
8696 echo $ECHO_N "checking linux/version.h presence... $ECHO_C" >&6
8697 cat >conftest.$ac_ext <<_ACEOF
8698 #line $LINENO "configure"
8699 /* confdefs.h.  */
8700 _ACEOF
8701 cat confdefs.h >>conftest.$ac_ext
8702 cat >>conftest.$ac_ext <<_ACEOF
8703 /* end confdefs.h.  */
8704 #include <linux/version.h>
8705 _ACEOF
8706 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8707   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8708   ac_status=$?
8709   grep -v '^ *+' conftest.er1 >conftest.err
8710   rm -f conftest.er1
8711   cat conftest.err >&5
8712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8713   (exit $ac_status); } >/dev/null; then
8714   if test -s conftest.err; then
8715     ac_cpp_err=$ac_c_preproc_warn_flag
8716   else
8717     ac_cpp_err=
8718   fi
8719 else
8720   ac_cpp_err=yes
8721 fi
8722 if test -z "$ac_cpp_err"; then
8723   ac_header_preproc=yes
8724 else
8725   echo "$as_me: failed program was:" >&5
8726 sed 's/^/| /' conftest.$ac_ext >&5
8727
8728   ac_header_preproc=no
8729 fi
8730 rm -f conftest.err conftest.$ac_ext
8731 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8732 echo "${ECHO_T}$ac_header_preproc" >&6
8733
8734 # So?  What about this header?
8735 case $ac_header_compiler:$ac_header_preproc in
8736   yes:no )
8737     { echo "$as_me:$LINENO: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&5
8738 echo "$as_me: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8739     { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the preprocessor's result" >&5
8740 echo "$as_me: WARNING: linux/version.h: proceeding with the preprocessor's result" >&2;}
8741     (
8742       cat <<\_ASBOX
8743 ## ------------------------------------ ##
8744 ## Report this to [email protected]. ##
8745 ## ------------------------------------ ##
8746 _ASBOX
8747     ) |
8748       sed "s/^/$as_me: WARNING:     /" >&2
8749     ;;
8750   no:yes )
8751     { echo "$as_me:$LINENO: WARNING: linux/version.h: present but cannot be compiled" >&5
8752 echo "$as_me: WARNING: linux/version.h: present but cannot be compiled" >&2;}
8753     { echo "$as_me:$LINENO: WARNING: linux/version.h: check for missing prerequisite headers?" >&5
8754 echo "$as_me: WARNING: linux/version.h: check for missing prerequisite headers?" >&2;}
8755     { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the preprocessor's result" >&5
8756 echo "$as_me: WARNING: linux/version.h: proceeding with the preprocessor's result" >&2;}
8757     (
8758       cat <<\_ASBOX
8759 ## ------------------------------------ ##
8760 ## Report this to [email protected]. ##
8761 ## ------------------------------------ ##
8762 _ASBOX
8763     ) |
8764       sed "s/^/$as_me: WARNING:     /" >&2
8765     ;;
8766 esac
8767 echo "$as_me:$LINENO: checking for linux/version.h" >&5
8768 echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6
8769 if test "${ac_cv_header_linux_version_h+set}" = set; then
8770   echo $ECHO_N "(cached) $ECHO_C" >&6
8771 else
8772   ac_cv_header_linux_version_h=$ac_header_preproc
8773 fi
8774 echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
8775 echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6
8776
8777 fi
8778 if test $ac_cv_header_linux_version_h = yes; then
8779   msgformat=linux
8780 else
8781   msgformat=xopen
8782 fi
8783
8784
8785
8786                          sed -e '/^#/d' $srcdir/$msgformat-msg.sed > po2msg.sed
8787       fi
8788             sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
8789          $srcdir/po2tbl.sed.in > po2tbl.sed
8790    fi
8791
8792             if test "$PACKAGE" = "gettext"; then
8793      GT_NO="#NO#"
8794      GT_YES=
8795    else
8796      GT_NO=
8797      GT_YES="#YES#"
8798    fi
8799
8800
8801
8802    MKINSTALLDIRS="\$(srcdir)/../../mkinstalldirs"
8803
8804
8805       l=
8806
8807
8808             if test -f $srcdir/po/POTFILES.in; then
8809       test -d po || mkdir po
8810       if test "x$srcdir" != "x."; then
8811          if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
8812             posrcprefix="$srcdir/"
8813          else
8814             posrcprefix="../$srcdir/"
8815          fi
8816       else
8817          posrcprefix="../"
8818       fi
8819       rm -f po/POTFILES
8820       sed -e "/^#/d" -e "/^\$/d" -e "s,.*,      $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
8821          < $srcdir/po/POTFILES.in > po/POTFILES
8822    fi
8823
8824
8825 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
8826 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
8827     # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
8828 if test "${enable_maintainer_mode+set}" = set; then
8829   enableval="$enable_maintainer_mode"
8830   USE_MAINTAINER_MODE=$enableval
8831 else
8832   USE_MAINTAINER_MODE=no
8833 fi;
8834   echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
8835 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
8836
8837
8838 if test $USE_MAINTAINER_MODE = yes; then
8839   MAINTAINER_MODE_TRUE=
8840   MAINTAINER_MODE_FALSE='#'
8841 else
8842   MAINTAINER_MODE_TRUE='#'
8843   MAINTAINER_MODE_FALSE=
8844 fi
8845
8846   MAINT=$MAINTAINER_MODE_TRUE
8847
8848
8849
8850
8851
8852
8853
8854
8855
8856
8857
8858
8859
8860 for ac_header in string.h stdlib.h memory.h strings.h unistd.h stdarg.h varargs.h errno.h sys/types.h
8861 do
8862 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8863 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8864   echo "$as_me:$LINENO: checking for $ac_header" >&5
8865 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8866 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8867   echo $ECHO_N "(cached) $ECHO_C" >&6
8868 fi
8869 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8870 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8871 else
8872   # Is the header compilable?
8873 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8874 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8875 cat >conftest.$ac_ext <<_ACEOF
8876 #line $LINENO "configure"
8877 /* confdefs.h.  */
8878 _ACEOF
8879 cat confdefs.h >>conftest.$ac_ext
8880 cat >>conftest.$ac_ext <<_ACEOF
8881 /* end confdefs.h.  */
8882 $ac_includes_default
8883 #include <$ac_header>
8884 _ACEOF
8885 rm -f conftest.$ac_objext
8886 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8887   (eval $ac_compile) 2>&5
8888   ac_status=$?
8889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8890   (exit $ac_status); } &&
8891          { ac_try='test -s conftest.$ac_objext'
8892   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8893   (eval $ac_try) 2>&5
8894   ac_status=$?
8895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8896   (exit $ac_status); }; }; then
8897   ac_header_compiler=yes
8898 else
8899   echo "$as_me: failed program was:" >&5
8900 sed 's/^/| /' conftest.$ac_ext >&5
8901
8902 ac_header_compiler=no
8903 fi
8904 rm -f conftest.$ac_objext conftest.$ac_ext
8905 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8906 echo "${ECHO_T}$ac_header_compiler" >&6
8907
8908 # Is the header present?
8909 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8910 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8911 cat >conftest.$ac_ext <<_ACEOF
8912 #line $LINENO "configure"
8913 /* confdefs.h.  */
8914 _ACEOF
8915 cat confdefs.h >>conftest.$ac_ext
8916 cat >>conftest.$ac_ext <<_ACEOF
8917 /* end confdefs.h.  */
8918 #include <$ac_header>
8919 _ACEOF
8920 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8921   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8922   ac_status=$?
8923   grep -v '^ *+' conftest.er1 >conftest.err
8924   rm -f conftest.er1
8925   cat conftest.err >&5
8926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8927   (exit $ac_status); } >/dev/null; then
8928   if test -s conftest.err; then
8929     ac_cpp_err=$ac_c_preproc_warn_flag
8930   else
8931     ac_cpp_err=
8932   fi
8933 else
8934   ac_cpp_err=yes
8935 fi
8936 if test -z "$ac_cpp_err"; then
8937   ac_header_preproc=yes
8938 else
8939   echo "$as_me: failed program was:" >&5
8940 sed 's/^/| /' conftest.$ac_ext >&5
8941
8942   ac_header_preproc=no
8943 fi
8944 rm -f conftest.err conftest.$ac_ext
8945 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8946 echo "${ECHO_T}$ac_header_preproc" >&6
8947
8948 # So?  What about this header?
8949 case $ac_header_compiler:$ac_header_preproc in
8950   yes:no )
8951     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8952 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8953     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8954 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8955     (
8956       cat <<\_ASBOX
8957 ## ------------------------------------ ##
8958 ## Report this to [email protected]. ##
8959 ## ------------------------------------ ##
8960 _ASBOX
8961     ) |
8962       sed "s/^/$as_me: WARNING:     /" >&2
8963     ;;
8964   no:yes )
8965     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8966 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8967     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8968 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8969     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8970 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8971     (
8972       cat <<\_ASBOX
8973 ## ------------------------------------ ##
8974 ## Report this to [email protected]. ##
8975 ## ------------------------------------ ##
8976 _ASBOX
8977     ) |
8978       sed "s/^/$as_me: WARNING:     /" >&2
8979     ;;
8980 esac
8981 echo "$as_me:$LINENO: checking for $ac_header" >&5
8982 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8983 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8984   echo $ECHO_N "(cached) $ECHO_C" >&6
8985 else
8986   eval "$as_ac_Header=$ac_header_preproc"
8987 fi
8988 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8989 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8990
8991 fi
8992 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8993   cat >>confdefs.h <<_ACEOF
8994 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8995 _ACEOF
8996
8997 fi
8998
8999 done
9000
9001
9002 # Put this here so that autoconf's "cross-compiling" message doesn't confuse
9003 # people who are not cross-compiling but are compiling cross-assemblers.
9004 echo "$as_me:$LINENO: checking whether compiling a cross-assembler" >&5
9005 echo $ECHO_N "checking whether compiling a cross-assembler... $ECHO_C" >&6
9006 if test "${host}" = "${target}"; then
9007   cross_gas=no
9008 else
9009   cross_gas=yes
9010
9011 cat >>confdefs.h <<\_ACEOF
9012 #define CROSS_COMPILE 1
9013 _ACEOF
9014
9015 fi
9016 echo "$as_me:$LINENO: result: $cross_gas" >&5
9017 echo "${ECHO_T}$cross_gas" >&6
9018
9019 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
9020 # for constant arguments.  Useless!
9021 echo "$as_me:$LINENO: checking for working alloca.h" >&5
9022 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
9023 if test "${ac_cv_working_alloca_h+set}" = set; then
9024   echo $ECHO_N "(cached) $ECHO_C" >&6
9025 else
9026   cat >conftest.$ac_ext <<_ACEOF
9027 #line $LINENO "configure"
9028 /* confdefs.h.  */
9029 _ACEOF
9030 cat confdefs.h >>conftest.$ac_ext
9031 cat >>conftest.$ac_ext <<_ACEOF
9032 /* end confdefs.h.  */
9033 #include <alloca.h>
9034 int
9035 main ()
9036 {
9037 char *p = (char *) alloca (2 * sizeof (int));
9038   ;
9039   return 0;
9040 }
9041 _ACEOF
9042 rm -f conftest.$ac_objext conftest$ac_exeext
9043 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9044   (eval $ac_link) 2>&5
9045   ac_status=$?
9046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9047   (exit $ac_status); } &&
9048          { ac_try='test -s conftest$ac_exeext'
9049   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9050   (eval $ac_try) 2>&5
9051   ac_status=$?
9052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9053   (exit $ac_status); }; }; then
9054   ac_cv_working_alloca_h=yes
9055 else
9056   echo "$as_me: failed program was:" >&5
9057 sed 's/^/| /' conftest.$ac_ext >&5
9058
9059 ac_cv_working_alloca_h=no
9060 fi
9061 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9062 fi
9063 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
9064 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
9065 if test $ac_cv_working_alloca_h = yes; then
9066
9067 cat >>confdefs.h <<\_ACEOF
9068 #define HAVE_ALLOCA_H 1
9069 _ACEOF
9070
9071 fi
9072
9073 echo "$as_me:$LINENO: checking for alloca" >&5
9074 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
9075 if test "${ac_cv_func_alloca_works+set}" = set; then
9076   echo $ECHO_N "(cached) $ECHO_C" >&6
9077 else
9078   cat >conftest.$ac_ext <<_ACEOF
9079 #line $LINENO "configure"
9080 /* confdefs.h.  */
9081 _ACEOF
9082 cat confdefs.h >>conftest.$ac_ext
9083 cat >>conftest.$ac_ext <<_ACEOF
9084 /* end confdefs.h.  */
9085 #ifdef __GNUC__
9086 # define alloca __builtin_alloca
9087 #else
9088 # ifdef _MSC_VER
9089 #  include <malloc.h>
9090 #  define alloca _alloca
9091 # else
9092 #  if HAVE_ALLOCA_H
9093 #   include <alloca.h>
9094 #  else
9095 #   ifdef _AIX
9096  #pragma alloca
9097 #   else
9098 #    ifndef alloca /* predefined by HP cc +Olibcalls */
9099 char *alloca ();
9100 #    endif
9101 #   endif
9102 #  endif
9103 # endif
9104 #endif
9105
9106 int
9107 main ()
9108 {
9109 char *p = (char *) alloca (1);
9110   ;
9111   return 0;
9112 }
9113 _ACEOF
9114 rm -f conftest.$ac_objext conftest$ac_exeext
9115 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9116   (eval $ac_link) 2>&5
9117   ac_status=$?
9118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9119   (exit $ac_status); } &&
9120          { ac_try='test -s conftest$ac_exeext'
9121   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9122   (eval $ac_try) 2>&5
9123   ac_status=$?
9124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9125   (exit $ac_status); }; }; then
9126   ac_cv_func_alloca_works=yes
9127 else
9128   echo "$as_me: failed program was:" >&5
9129 sed 's/^/| /' conftest.$ac_ext >&5
9130
9131 ac_cv_func_alloca_works=no
9132 fi
9133 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9134 fi
9135 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
9136 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
9137
9138 if test $ac_cv_func_alloca_works = yes; then
9139
9140 cat >>confdefs.h <<\_ACEOF
9141 #define HAVE_ALLOCA 1
9142 _ACEOF
9143
9144 else
9145   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
9146 # that cause trouble.  Some versions do not even contain alloca or
9147 # contain a buggy version.  If you still want to use their alloca,
9148 # use ar to extract alloca.o from them instead of compiling alloca.c.
9149
9150 ALLOCA=alloca.$ac_objext
9151
9152 cat >>confdefs.h <<\_ACEOF
9153 #define C_ALLOCA 1
9154 _ACEOF
9155
9156
9157 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
9158 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
9159 if test "${ac_cv_os_cray+set}" = set; then
9160   echo $ECHO_N "(cached) $ECHO_C" >&6
9161 else
9162   cat >conftest.$ac_ext <<_ACEOF
9163 #line $LINENO "configure"
9164 /* confdefs.h.  */
9165 _ACEOF
9166 cat confdefs.h >>conftest.$ac_ext
9167 cat >>conftest.$ac_ext <<_ACEOF
9168 /* end confdefs.h.  */
9169 #if defined(CRAY) && ! defined(CRAY2)
9170 webecray
9171 #else
9172 wenotbecray
9173 #endif
9174
9175 _ACEOF
9176 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9177   $EGREP "webecray" >/dev/null 2>&1; then
9178   ac_cv_os_cray=yes
9179 else
9180   ac_cv_os_cray=no
9181 fi
9182 rm -f conftest*
9183
9184 fi
9185 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
9186 echo "${ECHO_T}$ac_cv_os_cray" >&6
9187 if test $ac_cv_os_cray = yes; then
9188   for ac_func in _getb67 GETB67 getb67; do
9189     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9190 echo "$as_me:$LINENO: checking for $ac_func" >&5
9191 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9192 if eval "test \"\${$as_ac_var+set}\" = set"; then
9193   echo $ECHO_N "(cached) $ECHO_C" >&6
9194 else
9195   cat >conftest.$ac_ext <<_ACEOF
9196 #line $LINENO "configure"
9197 /* confdefs.h.  */
9198 _ACEOF
9199 cat confdefs.h >>conftest.$ac_ext
9200 cat >>conftest.$ac_ext <<_ACEOF
9201 /* end confdefs.h.  */
9202 /* System header to define __stub macros and hopefully few prototypes,
9203     which can conflict with char $ac_func (); below.
9204     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9205     <limits.h> exists even on freestanding compilers.  */
9206 #ifdef __STDC__
9207 # include <limits.h>
9208 #else
9209 # include <assert.h>
9210 #endif
9211 /* Override any gcc2 internal prototype to avoid an error.  */
9212 #ifdef __cplusplus
9213 extern "C"
9214 {
9215 #endif
9216 /* We use char because int might match the return type of a gcc2
9217    builtin and then its argument prototype would still apply.  */
9218 char $ac_func ();
9219 /* The GNU C library defines this for functions which it implements
9220     to always fail with ENOSYS.  Some functions are actually named
9221     something starting with __ and the normal name is an alias.  */
9222 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9223 choke me
9224 #else
9225 char (*f) () = $ac_func;
9226 #endif
9227 #ifdef __cplusplus
9228 }
9229 #endif
9230
9231 int
9232 main ()
9233 {
9234 return f != $ac_func;
9235   ;
9236   return 0;
9237 }
9238 _ACEOF
9239 rm -f conftest.$ac_objext conftest$ac_exeext
9240 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9241   (eval $ac_link) 2>&5
9242   ac_status=$?
9243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9244   (exit $ac_status); } &&
9245          { ac_try='test -s conftest$ac_exeext'
9246   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9247   (eval $ac_try) 2>&5
9248   ac_status=$?
9249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9250   (exit $ac_status); }; }; then
9251   eval "$as_ac_var=yes"
9252 else
9253   echo "$as_me: failed program was:" >&5
9254 sed 's/^/| /' conftest.$ac_ext >&5
9255
9256 eval "$as_ac_var=no"
9257 fi
9258 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9259 fi
9260 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9261 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9262 if test `eval echo '${'$as_ac_var'}'` = yes; then
9263
9264 cat >>confdefs.h <<_ACEOF
9265 #define CRAY_STACKSEG_END $ac_func
9266 _ACEOF
9267
9268     break
9269 fi
9270
9271   done
9272 fi
9273
9274 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
9275 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
9276 if test "${ac_cv_c_stack_direction+set}" = set; then
9277   echo $ECHO_N "(cached) $ECHO_C" >&6
9278 else
9279   if test "$cross_compiling" = yes; then
9280   ac_cv_c_stack_direction=0
9281 else
9282   cat >conftest.$ac_ext <<_ACEOF
9283 #line $LINENO "configure"
9284 /* confdefs.h.  */
9285 _ACEOF
9286 cat confdefs.h >>conftest.$ac_ext
9287 cat >>conftest.$ac_ext <<_ACEOF
9288 /* end confdefs.h.  */
9289 int
9290 find_stack_direction ()
9291 {
9292   static char *addr = 0;
9293   auto char dummy;
9294   if (addr == 0)
9295     {
9296       addr = &dummy;
9297       return find_stack_direction ();
9298     }
9299   else
9300     return (&dummy > addr) ? 1 : -1;
9301 }
9302
9303 int
9304 main ()
9305 {
9306   exit (find_stack_direction () < 0);
9307 }
9308 _ACEOF
9309 rm -f conftest$ac_exeext
9310 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9311   (eval $ac_link) 2>&5
9312   ac_status=$?
9313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9314   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9315   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9316   (eval $ac_try) 2>&5
9317   ac_status=$?
9318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9319   (exit $ac_status); }; }; then
9320   ac_cv_c_stack_direction=1
9321 else
9322   echo "$as_me: program exited with status $ac_status" >&5
9323 echo "$as_me: failed program was:" >&5
9324 sed 's/^/| /' conftest.$ac_ext >&5
9325
9326 ( exit $ac_status )
9327 ac_cv_c_stack_direction=-1
9328 fi
9329 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9330 fi
9331 fi
9332 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
9333 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
9334
9335 cat >>confdefs.h <<_ACEOF
9336 #define STACK_DIRECTION $ac_cv_c_stack_direction
9337 _ACEOF
9338
9339
9340 fi
9341
9342 echo "$as_me:$LINENO: checking for inline" >&5
9343 echo $ECHO_N "checking for inline... $ECHO_C" >&6
9344 if test "${ac_cv_c_inline+set}" = set; then
9345   echo $ECHO_N "(cached) $ECHO_C" >&6
9346 else
9347   ac_cv_c_inline=no
9348 for ac_kw in inline __inline__ __inline; do
9349   cat >conftest.$ac_ext <<_ACEOF
9350 #line $LINENO "configure"
9351 /* confdefs.h.  */
9352 _ACEOF
9353 cat confdefs.h >>conftest.$ac_ext
9354 cat >>conftest.$ac_ext <<_ACEOF
9355 /* end confdefs.h.  */
9356 #ifndef __cplusplus
9357 typedef int foo_t;
9358 static $ac_kw foo_t static_foo () {return 0; }
9359 $ac_kw foo_t foo () {return 0; }
9360 #endif
9361
9362 _ACEOF
9363 rm -f conftest.$ac_objext
9364 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9365   (eval $ac_compile) 2>&5
9366   ac_status=$?
9367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9368   (exit $ac_status); } &&
9369          { ac_try='test -s conftest.$ac_objext'
9370   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9371   (eval $ac_try) 2>&5
9372   ac_status=$?
9373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9374   (exit $ac_status); }; }; then
9375   ac_cv_c_inline=$ac_kw; break
9376 else
9377   echo "$as_me: failed program was:" >&5
9378 sed 's/^/| /' conftest.$ac_ext >&5
9379
9380 fi
9381 rm -f conftest.$ac_objext conftest.$ac_ext
9382 done
9383
9384 fi
9385 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
9386 echo "${ECHO_T}$ac_cv_c_inline" >&6
9387 case $ac_cv_c_inline in
9388   inline | yes) ;;
9389   no)
9390 cat >>confdefs.h <<\_ACEOF
9391 #define inline
9392 _ACEOF
9393  ;;
9394   *)  cat >>confdefs.h <<_ACEOF
9395 #define inline $ac_cv_c_inline
9396 _ACEOF
9397  ;;
9398 esac
9399
9400
9401 # VMS doesn't have unlink.
9402
9403
9404 for ac_func in unlink remove
9405 do
9406 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9407 echo "$as_me:$LINENO: checking for $ac_func" >&5
9408 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9409 if eval "test \"\${$as_ac_var+set}\" = set"; then
9410   echo $ECHO_N "(cached) $ECHO_C" >&6
9411 else
9412   cat >conftest.$ac_ext <<_ACEOF
9413 #line $LINENO "configure"
9414 /* confdefs.h.  */
9415 _ACEOF
9416 cat confdefs.h >>conftest.$ac_ext
9417 cat >>conftest.$ac_ext <<_ACEOF
9418 /* end confdefs.h.  */
9419 /* System header to define __stub macros and hopefully few prototypes,
9420     which can conflict with char $ac_func (); below.
9421     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9422     <limits.h> exists even on freestanding compilers.  */
9423 #ifdef __STDC__
9424 # include <limits.h>
9425 #else
9426 # include <assert.h>
9427 #endif
9428 /* Override any gcc2 internal prototype to avoid an error.  */
9429 #ifdef __cplusplus
9430 extern "C"
9431 {
9432 #endif
9433 /* We use char because int might match the return type of a gcc2
9434    builtin and then its argument prototype would still apply.  */
9435 char $ac_func ();
9436 /* The GNU C library defines this for functions which it implements
9437     to always fail with ENOSYS.  Some functions are actually named
9438     something starting with __ and the normal name is an alias.  */
9439 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9440 choke me
9441 #else
9442 char (*f) () = $ac_func;
9443 #endif
9444 #ifdef __cplusplus
9445 }
9446 #endif
9447
9448 int
9449 main ()
9450 {
9451 return f != $ac_func;
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>&5
9459   ac_status=$?
9460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9461   (exit $ac_status); } &&
9462          { ac_try='test -s conftest$ac_exeext'
9463   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9464   (eval $ac_try) 2>&5
9465   ac_status=$?
9466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9467   (exit $ac_status); }; }; then
9468   eval "$as_ac_var=yes"
9469 else
9470   echo "$as_me: failed program was:" >&5
9471 sed 's/^/| /' conftest.$ac_ext >&5
9472
9473 eval "$as_ac_var=no"
9474 fi
9475 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9476 fi
9477 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9478 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9479 if test `eval echo '${'$as_ac_var'}'` = yes; then
9480   cat >>confdefs.h <<_ACEOF
9481 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9482 _ACEOF
9483  break
9484 fi
9485 done
9486
9487
9488 # Some systems don't have sbrk().
9489
9490 for ac_func in sbrk
9491 do
9492 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9493 echo "$as_me:$LINENO: checking for $ac_func" >&5
9494 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9495 if eval "test \"\${$as_ac_var+set}\" = set"; then
9496   echo $ECHO_N "(cached) $ECHO_C" >&6
9497 else
9498   cat >conftest.$ac_ext <<_ACEOF
9499 #line $LINENO "configure"
9500 /* confdefs.h.  */
9501 _ACEOF
9502 cat confdefs.h >>conftest.$ac_ext
9503 cat >>conftest.$ac_ext <<_ACEOF
9504 /* end confdefs.h.  */
9505 /* System header to define __stub macros and hopefully few prototypes,
9506     which can conflict with char $ac_func (); below.
9507     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9508     <limits.h> exists even on freestanding compilers.  */
9509 #ifdef __STDC__
9510 # include <limits.h>
9511 #else
9512 # include <assert.h>
9513 #endif
9514 /* Override any gcc2 internal prototype to avoid an error.  */
9515 #ifdef __cplusplus
9516 extern "C"
9517 {
9518 #endif
9519 /* We use char because int might match the return type of a gcc2
9520    builtin and then its argument prototype would still apply.  */
9521 char $ac_func ();
9522 /* The GNU C library defines this for functions which it implements
9523     to always fail with ENOSYS.  Some functions are actually named
9524     something starting with __ and the normal name is an alias.  */
9525 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9526 choke me
9527 #else
9528 char (*f) () = $ac_func;
9529 #endif
9530 #ifdef __cplusplus
9531 }
9532 #endif
9533
9534 int
9535 main ()
9536 {
9537 return f != $ac_func;
9538   ;
9539   return 0;
9540 }
9541 _ACEOF
9542 rm -f conftest.$ac_objext conftest$ac_exeext
9543 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9544   (eval $ac_link) 2>&5
9545   ac_status=$?
9546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9547   (exit $ac_status); } &&
9548          { ac_try='test -s conftest$ac_exeext'
9549   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9550   (eval $ac_try) 2>&5
9551   ac_status=$?
9552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9553   (exit $ac_status); }; }; then
9554   eval "$as_ac_var=yes"
9555 else
9556   echo "$as_me: failed program was:" >&5
9557 sed 's/^/| /' conftest.$ac_ext >&5
9558
9559 eval "$as_ac_var=no"
9560 fi
9561 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9562 fi
9563 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9564 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9565 if test `eval echo '${'$as_ac_var'}'` = yes; then
9566   cat >>confdefs.h <<_ACEOF
9567 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9568 _ACEOF
9569
9570 fi
9571 done
9572
9573
9574 # do we need the math library?
9575 case "${need_libm}" in
9576 yes)
9577   LIBM=
9578 case $host in
9579 *-*-beos* | *-*-cygwin* | *-*-pw32*)
9580   # These system don't have libm
9581   ;;
9582 *-ncr-sysv4.3*)
9583   echo "$as_me:$LINENO: checking for _mwvalidcheckl in -lmw" >&5
9584 echo $ECHO_N "checking for _mwvalidcheckl in -lmw... $ECHO_C" >&6
9585 if test "${ac_cv_lib_mw__mwvalidcheckl+set}" = set; then
9586   echo $ECHO_N "(cached) $ECHO_C" >&6
9587 else
9588   ac_check_lib_save_LIBS=$LIBS
9589 LIBS="-lmw  $LIBS"
9590 cat >conftest.$ac_ext <<_ACEOF
9591 #line $LINENO "configure"
9592 /* confdefs.h.  */
9593 _ACEOF
9594 cat confdefs.h >>conftest.$ac_ext
9595 cat >>conftest.$ac_ext <<_ACEOF
9596 /* end confdefs.h.  */
9597
9598 /* Override any gcc2 internal prototype to avoid an error.  */
9599 #ifdef __cplusplus
9600 extern "C"
9601 #endif
9602 /* We use char because int might match the return type of a gcc2
9603    builtin and then its argument prototype would still apply.  */
9604 char _mwvalidcheckl ();
9605 int
9606 main ()
9607 {
9608 _mwvalidcheckl ();
9609   ;
9610   return 0;
9611 }
9612 _ACEOF
9613 rm -f conftest.$ac_objext conftest$ac_exeext
9614 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9615   (eval $ac_link) 2>&5
9616   ac_status=$?
9617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9618   (exit $ac_status); } &&
9619          { ac_try='test -s conftest$ac_exeext'
9620   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9621   (eval $ac_try) 2>&5
9622   ac_status=$?
9623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9624   (exit $ac_status); }; }; then
9625   ac_cv_lib_mw__mwvalidcheckl=yes
9626 else
9627   echo "$as_me: failed program was:" >&5
9628 sed 's/^/| /' conftest.$ac_ext >&5
9629
9630 ac_cv_lib_mw__mwvalidcheckl=no
9631 fi
9632 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9633 LIBS=$ac_check_lib_save_LIBS
9634 fi
9635 echo "$as_me:$LINENO: result: $ac_cv_lib_mw__mwvalidcheckl" >&5
9636 echo "${ECHO_T}$ac_cv_lib_mw__mwvalidcheckl" >&6
9637 if test $ac_cv_lib_mw__mwvalidcheckl = yes; then
9638   LIBM="-lmw"
9639 fi
9640
9641   echo "$as_me:$LINENO: checking for main in -lm" >&5
9642 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
9643 if test "${ac_cv_lib_m_main+set}" = set; then
9644   echo $ECHO_N "(cached) $ECHO_C" >&6
9645 else
9646   ac_check_lib_save_LIBS=$LIBS
9647 LIBS="-lm  $LIBS"
9648 cat >conftest.$ac_ext <<_ACEOF
9649 #line $LINENO "configure"
9650 /* confdefs.h.  */
9651 _ACEOF
9652 cat confdefs.h >>conftest.$ac_ext
9653 cat >>conftest.$ac_ext <<_ACEOF
9654 /* end confdefs.h.  */
9655
9656
9657 int
9658 main ()
9659 {
9660 main ();
9661   ;
9662   return 0;
9663 }
9664 _ACEOF
9665 rm -f conftest.$ac_objext conftest$ac_exeext
9666 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9667   (eval $ac_link) 2>&5
9668   ac_status=$?
9669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9670   (exit $ac_status); } &&
9671          { ac_try='test -s conftest$ac_exeext'
9672   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9673   (eval $ac_try) 2>&5
9674   ac_status=$?
9675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9676   (exit $ac_status); }; }; then
9677   ac_cv_lib_m_main=yes
9678 else
9679   echo "$as_me: failed program was:" >&5
9680 sed 's/^/| /' conftest.$ac_ext >&5
9681
9682 ac_cv_lib_m_main=no
9683 fi
9684 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9685 LIBS=$ac_check_lib_save_LIBS
9686 fi
9687 echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
9688 echo "${ECHO_T}$ac_cv_lib_m_main" >&6
9689 if test $ac_cv_lib_m_main = yes; then
9690   LIBM="$LIBM -lm"
9691 fi
9692
9693   ;;
9694 *)
9695   echo "$as_me:$LINENO: checking for main in -lm" >&5
9696 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
9697 if test "${ac_cv_lib_m_main+set}" = set; then
9698   echo $ECHO_N "(cached) $ECHO_C" >&6
9699 else
9700   ac_check_lib_save_LIBS=$LIBS
9701 LIBS="-lm  $LIBS"
9702 cat >conftest.$ac_ext <<_ACEOF
9703 #line $LINENO "configure"
9704 /* confdefs.h.  */
9705 _ACEOF
9706 cat confdefs.h >>conftest.$ac_ext
9707 cat >>conftest.$ac_ext <<_ACEOF
9708 /* end confdefs.h.  */
9709
9710
9711 int
9712 main ()
9713 {
9714 main ();
9715   ;
9716   return 0;
9717 }
9718 _ACEOF
9719 rm -f conftest.$ac_objext conftest$ac_exeext
9720 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9721   (eval $ac_link) 2>&5
9722   ac_status=$?
9723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9724   (exit $ac_status); } &&
9725          { ac_try='test -s conftest$ac_exeext'
9726   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9727   (eval $ac_try) 2>&5
9728   ac_status=$?
9729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9730   (exit $ac_status); }; }; then
9731   ac_cv_lib_m_main=yes
9732 else
9733   echo "$as_me: failed program was:" >&5
9734 sed 's/^/| /' conftest.$ac_ext >&5
9735
9736 ac_cv_lib_m_main=no
9737 fi
9738 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9739 LIBS=$ac_check_lib_save_LIBS
9740 fi
9741 echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
9742 echo "${ECHO_T}$ac_cv_lib_m_main" >&6
9743 if test $ac_cv_lib_m_main = yes; then
9744   LIBM="-lm"
9745 fi
9746
9747   ;;
9748 esac
9749
9750
9751   ;;
9752 esac
9753
9754 # Some non-ANSI preprocessors botch requoting inside strings.  That's bad
9755 # enough, but on some of those systems, the assert macro relies on requoting
9756 # working properly!
9757 echo "$as_me:$LINENO: checking for working assert macro" >&5
9758 echo $ECHO_N "checking for working assert macro... $ECHO_C" >&6
9759 if test "${gas_cv_assert_ok+set}" = set; then
9760   echo $ECHO_N "(cached) $ECHO_C" >&6
9761 else
9762   cat >conftest.$ac_ext <<_ACEOF
9763 #line $LINENO "configure"
9764 /* confdefs.h.  */
9765 _ACEOF
9766 cat confdefs.h >>conftest.$ac_ext
9767 cat >>conftest.$ac_ext <<_ACEOF
9768 /* end confdefs.h.  */
9769 #include <assert.h>
9770 #include <stdio.h>
9771 int
9772 main ()
9773 {
9774
9775 /* check for requoting problems */
9776 static int a, b, c, d;
9777 static char *s;
9778 assert (!strcmp(s, "foo bar baz quux"));
9779 /* check for newline handling */
9780 assert (a == b
9781         || c == d);
9782
9783   ;
9784   return 0;
9785 }
9786 _ACEOF
9787 rm -f conftest.$ac_objext conftest$ac_exeext
9788 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9789   (eval $ac_link) 2>&5
9790   ac_status=$?
9791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9792   (exit $ac_status); } &&
9793          { ac_try='test -s conftest$ac_exeext'
9794   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9795   (eval $ac_try) 2>&5
9796   ac_status=$?
9797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9798   (exit $ac_status); }; }; then
9799   gas_cv_assert_ok=yes
9800 else
9801   echo "$as_me: failed program was:" >&5
9802 sed 's/^/| /' conftest.$ac_ext >&5
9803
9804 gas_cv_assert_ok=no
9805 fi
9806 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9807 fi
9808 echo "$as_me:$LINENO: result: $gas_cv_assert_ok" >&5
9809 echo "${ECHO_T}$gas_cv_assert_ok" >&6
9810 test $gas_cv_assert_ok = yes ||
9811 cat >>confdefs.h <<\_ACEOF
9812 #define BROKEN_ASSERT 1
9813 _ACEOF
9814
9815
9816
9817 # On some systems, the system header files may not declare malloc, realloc,
9818 # and free.  There are places where gas needs these functions to have been
9819 # declared -- such as when taking their addresses.
9820 gas_test_headers="
9821 #ifdef HAVE_MEMORY_H
9822 #include <memory.h>
9823 #endif
9824 #ifdef HAVE_STRING_H
9825 #include <string.h>
9826 #else
9827 #ifdef HAVE_STRINGS_H
9828 #include <strings.h>
9829 #endif
9830 #endif
9831 #ifdef HAVE_STDLIB_H
9832 #include <stdlib.h>
9833 #endif
9834 #ifdef HAVE_UNISTD_H
9835 #include <unistd.h>
9836 #endif
9837 "
9838
9839 echo "$as_me:$LINENO: checking whether declaration is required for strstr" >&5
9840 echo $ECHO_N "checking whether declaration is required for strstr... $ECHO_C" >&6
9841 if test "${gas_cv_decl_needed_strstr+set}" = set; then
9842   echo $ECHO_N "(cached) $ECHO_C" >&6
9843 else
9844   cat >conftest.$ac_ext <<_ACEOF
9845 #line $LINENO "configure"
9846 /* confdefs.h.  */
9847 _ACEOF
9848 cat confdefs.h >>conftest.$ac_ext
9849 cat >>conftest.$ac_ext <<_ACEOF
9850 /* end confdefs.h.  */
9851 $gas_test_headers
9852 int
9853 main ()
9854 {
9855
9856 typedef char *(*f)();
9857 f x;
9858 x = (f) strstr;
9859
9860   ;
9861   return 0;
9862 }
9863 _ACEOF
9864 rm -f conftest.$ac_objext conftest$ac_exeext
9865 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9866   (eval $ac_link) 2>&5
9867   ac_status=$?
9868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9869   (exit $ac_status); } &&
9870          { ac_try='test -s conftest$ac_exeext'
9871   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9872   (eval $ac_try) 2>&5
9873   ac_status=$?
9874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9875   (exit $ac_status); }; }; then
9876   gas_cv_decl_needed_strstr=no
9877 else
9878   echo "$as_me: failed program was:" >&5
9879 sed 's/^/| /' conftest.$ac_ext >&5
9880
9881 gas_cv_decl_needed_strstr=yes
9882 fi
9883 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9884 fi
9885 echo "$as_me:$LINENO: result: $gas_cv_decl_needed_strstr" >&5
9886 echo "${ECHO_T}$gas_cv_decl_needed_strstr" >&6
9887 if test $gas_cv_decl_needed_strstr = yes; then
9888
9889 cat >>confdefs.h <<\_ACEOF
9890 #define NEED_DECLARATION_STRSTR 1
9891 _ACEOF
9892
9893 fi
9894
9895
9896 echo "$as_me:$LINENO: checking whether declaration is required for malloc" >&5
9897 echo $ECHO_N "checking whether declaration is required for malloc... $ECHO_C" >&6
9898 if test "${gas_cv_decl_needed_malloc+set}" = set; then
9899   echo $ECHO_N "(cached) $ECHO_C" >&6
9900 else
9901   cat >conftest.$ac_ext <<_ACEOF
9902 #line $LINENO "configure"
9903 /* confdefs.h.  */
9904 _ACEOF
9905 cat confdefs.h >>conftest.$ac_ext
9906 cat >>conftest.$ac_ext <<_ACEOF
9907 /* end confdefs.h.  */
9908 $gas_test_headers
9909 int
9910 main ()
9911 {
9912
9913 typedef char *(*f)();
9914 f x;
9915 x = (f) malloc;
9916
9917   ;
9918   return 0;
9919 }
9920 _ACEOF
9921 rm -f conftest.$ac_objext conftest$ac_exeext
9922 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9923   (eval $ac_link) 2>&5
9924   ac_status=$?
9925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9926   (exit $ac_status); } &&
9927          { ac_try='test -s conftest$ac_exeext'
9928   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9929   (eval $ac_try) 2>&5
9930   ac_status=$?
9931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9932   (exit $ac_status); }; }; then
9933   gas_cv_decl_needed_malloc=no
9934 else
9935   echo "$as_me: failed program was:" >&5
9936 sed 's/^/| /' conftest.$ac_ext >&5
9937
9938 gas_cv_decl_needed_malloc=yes
9939 fi
9940 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9941 fi
9942 echo "$as_me:$LINENO: result: $gas_cv_decl_needed_malloc" >&5
9943 echo "${ECHO_T}$gas_cv_decl_needed_malloc" >&6
9944 if test $gas_cv_decl_needed_malloc = yes; then
9945
9946 cat >>confdefs.h <<\_ACEOF
9947 #define NEED_DECLARATION_MALLOC 1
9948 _ACEOF
9949
9950 fi
9951
9952
9953 echo "$as_me:$LINENO: checking whether declaration is required for free" >&5
9954 echo $ECHO_N "checking whether declaration is required for free... $ECHO_C" >&6
9955 if test "${gas_cv_decl_needed_free+set}" = set; then
9956   echo $ECHO_N "(cached) $ECHO_C" >&6
9957 else
9958   cat >conftest.$ac_ext <<_ACEOF
9959 #line $LINENO "configure"
9960 /* confdefs.h.  */
9961 _ACEOF
9962 cat confdefs.h >>conftest.$ac_ext
9963 cat >>conftest.$ac_ext <<_ACEOF
9964 /* end confdefs.h.  */
9965 $gas_test_headers
9966 int
9967 main ()
9968 {
9969
9970 typedef void (*f)();
9971 f x;
9972 x = (f) free;
9973
9974   ;
9975   return 0;
9976 }
9977 _ACEOF
9978 rm -f conftest.$ac_objext conftest$ac_exeext
9979 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9980   (eval $ac_link) 2>&5
9981   ac_status=$?
9982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9983   (exit $ac_status); } &&
9984          { ac_try='test -s conftest$ac_exeext'
9985   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9986   (eval $ac_try) 2>&5
9987   ac_status=$?
9988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9989   (exit $ac_status); }; }; then
9990   gas_cv_decl_needed_free=no
9991 else
9992   echo "$as_me: failed program was:" >&5
9993 sed 's/^/| /' conftest.$ac_ext >&5
9994
9995 gas_cv_decl_needed_free=yes
9996 fi
9997 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9998 fi
9999 echo "$as_me:$LINENO: result: $gas_cv_decl_needed_free" >&5
10000 echo "${ECHO_T}$gas_cv_decl_needed_free" >&6
10001 if test $gas_cv_decl_needed_free = yes; then
10002
10003 cat >>confdefs.h <<\_ACEOF
10004 #define NEED_DECLARATION_FREE 1
10005 _ACEOF
10006
10007 fi
10008
10009
10010 echo "$as_me:$LINENO: checking whether declaration is required for sbrk" >&5
10011 echo $ECHO_N "checking whether declaration is required for sbrk... $ECHO_C" >&6
10012 if test "${gas_cv_decl_needed_sbrk+set}" = set; then
10013   echo $ECHO_N "(cached) $ECHO_C" >&6
10014 else
10015   cat >conftest.$ac_ext <<_ACEOF
10016 #line $LINENO "configure"
10017 /* confdefs.h.  */
10018 _ACEOF
10019 cat confdefs.h >>conftest.$ac_ext
10020 cat >>conftest.$ac_ext <<_ACEOF
10021 /* end confdefs.h.  */
10022 $gas_test_headers
10023 int
10024 main ()
10025 {
10026
10027 typedef char *(*f)();
10028 f x;
10029 x = (f) sbrk;
10030
10031   ;
10032   return 0;
10033 }
10034 _ACEOF
10035 rm -f conftest.$ac_objext conftest$ac_exeext
10036 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10037   (eval $ac_link) 2>&5
10038   ac_status=$?
10039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10040   (exit $ac_status); } &&
10041          { ac_try='test -s conftest$ac_exeext'
10042   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10043   (eval $ac_try) 2>&5
10044   ac_status=$?
10045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10046   (exit $ac_status); }; }; then
10047   gas_cv_decl_needed_sbrk=no
10048 else
10049   echo "$as_me: failed program was:" >&5
10050 sed 's/^/| /' conftest.$ac_ext >&5
10051
10052 gas_cv_decl_needed_sbrk=yes
10053 fi
10054 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10055 fi
10056 echo "$as_me:$LINENO: result: $gas_cv_decl_needed_sbrk" >&5
10057 echo "${ECHO_T}$gas_cv_decl_needed_sbrk" >&6
10058 if test $gas_cv_decl_needed_sbrk = yes; then
10059
10060 cat >>confdefs.h <<\_ACEOF
10061 #define NEED_DECLARATION_SBRK 1
10062 _ACEOF
10063
10064 fi
10065
10066
10067 echo "$as_me:$LINENO: checking whether declaration is required for environ" >&5
10068 echo $ECHO_N "checking whether declaration is required for environ... $ECHO_C" >&6
10069 if test "${gas_cv_decl_needed_environ+set}" = set; then
10070   echo $ECHO_N "(cached) $ECHO_C" >&6
10071 else
10072   cat >conftest.$ac_ext <<_ACEOF
10073 #line $LINENO "configure"
10074 /* confdefs.h.  */
10075 _ACEOF
10076 cat confdefs.h >>conftest.$ac_ext
10077 cat >>conftest.$ac_ext <<_ACEOF
10078 /* end confdefs.h.  */
10079 $gas_test_headers
10080 int
10081 main ()
10082 {
10083
10084 typedef char **f;
10085 f x;
10086 x = (f) environ;
10087
10088   ;
10089   return 0;
10090 }
10091 _ACEOF
10092 rm -f conftest.$ac_objext conftest$ac_exeext
10093 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10094   (eval $ac_link) 2>&5
10095   ac_status=$?
10096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10097   (exit $ac_status); } &&
10098          { ac_try='test -s conftest$ac_exeext'
10099   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10100   (eval $ac_try) 2>&5
10101   ac_status=$?
10102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10103   (exit $ac_status); }; }; then
10104   gas_cv_decl_needed_environ=no
10105 else
10106   echo "$as_me: failed program was:" >&5
10107 sed 's/^/| /' conftest.$ac_ext >&5
10108
10109 gas_cv_decl_needed_environ=yes
10110 fi
10111 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10112 fi
10113 echo "$as_me:$LINENO: result: $gas_cv_decl_needed_environ" >&5
10114 echo "${ECHO_T}$gas_cv_decl_needed_environ" >&6
10115 if test $gas_cv_decl_needed_environ = yes; then
10116
10117 cat >>confdefs.h <<\_ACEOF
10118 #define NEED_DECLARATION_ENVIRON 1
10119 _ACEOF
10120
10121 fi
10122
10123
10124 # Does errno.h declare errno, or do we have to add a separate declaration
10125 # for it?
10126
10127 echo "$as_me:$LINENO: checking whether declaration is required for errno" >&5
10128 echo $ECHO_N "checking whether declaration is required for errno... $ECHO_C" >&6
10129 if test "${gas_cv_decl_needed_errno+set}" = set; then
10130   echo $ECHO_N "(cached) $ECHO_C" >&6
10131 else
10132   cat >conftest.$ac_ext <<_ACEOF
10133 #line $LINENO "configure"
10134 /* confdefs.h.  */
10135 _ACEOF
10136 cat confdefs.h >>conftest.$ac_ext
10137 cat >>conftest.$ac_ext <<_ACEOF
10138 /* end confdefs.h.  */
10139
10140 #ifdef HAVE_ERRNO_H
10141 #include <errno.h>
10142 #endif
10143
10144 int
10145 main ()
10146 {
10147
10148 typedef int f;
10149 f x;
10150 x = (f) errno;
10151
10152   ;
10153   return 0;
10154 }
10155 _ACEOF
10156 rm -f conftest.$ac_objext conftest$ac_exeext
10157 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10158   (eval $ac_link) 2>&5
10159   ac_status=$?
10160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10161   (exit $ac_status); } &&
10162          { ac_try='test -s conftest$ac_exeext'
10163   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10164   (eval $ac_try) 2>&5
10165   ac_status=$?
10166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10167   (exit $ac_status); }; }; then
10168   gas_cv_decl_needed_errno=no
10169 else
10170   echo "$as_me: failed program was:" >&5
10171 sed 's/^/| /' conftest.$ac_ext >&5
10172
10173 gas_cv_decl_needed_errno=yes
10174 fi
10175 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10176 fi
10177 echo "$as_me:$LINENO: result: $gas_cv_decl_needed_errno" >&5
10178 echo "${ECHO_T}$gas_cv_decl_needed_errno" >&6
10179 if test $gas_cv_decl_needed_errno = yes; then
10180
10181 cat >>confdefs.h <<\_ACEOF
10182 #define NEED_DECLARATION_ERRNO 1
10183 _ACEOF
10184
10185 fi
10186
10187
10188
10189
10190                               ac_config_files="$ac_config_files Makefile doc/Makefile po/Makefile.in:po/Make-in"
10191
10192           ac_config_commands="$ac_config_commands default"
10193
10194
10195 cat >confcache <<\_ACEOF
10196 # This file is a shell script that caches the results of configure
10197 # tests run on this system so they can be shared between configure
10198 # scripts and configure runs, see configure's option --config-cache.
10199 # It is not useful on other systems.  If it contains results you don't
10200 # want to keep, you may remove or edit it.
10201 #
10202 # config.status only pays attention to the cache file if you give it
10203 # the --recheck option to rerun configure.
10204 #
10205 # `ac_cv_env_foo' variables (set or unset) will be overridden when
10206 # loading this file, other *unset* `ac_cv_foo' will be assigned the
10207 # following values.
10208
10209 _ACEOF
10210
10211 # The following way of writing the cache mishandles newlines in values,
10212 # but we know of no workaround that is simple, portable, and efficient.
10213 # So, don't put newlines in cache variables' values.
10214 # Ultrix sh set writes to stderr and can't be redirected directly,
10215 # and sets the high bit in the cache file unless we assign to the vars.
10216 {
10217   (set) 2>&1 |
10218     case `(ac_space=' '; set | grep ac_space) 2>&1` in
10219     *ac_space=\ *)
10220       # `set' does not quote correctly, so add quotes (double-quote
10221       # substitution turns \\\\ into \\, and sed turns \\ into \).
10222       sed -n \
10223         "s/'/'\\\\''/g;
10224           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10225       ;;
10226     *)
10227       # `set' quotes correctly as required by POSIX, so do not add quotes.
10228       sed -n \
10229         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
10230       ;;
10231     esac;
10232 } |
10233   sed '
10234      t clear
10235      : clear
10236      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10237      t end
10238      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10239      : end' >>confcache
10240 if diff $cache_file confcache >/dev/null 2>&1; then :; else
10241   if test -w $cache_file; then
10242     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
10243     cat confcache >$cache_file
10244   else
10245     echo "not updating unwritable cache $cache_file"
10246   fi
10247 fi
10248 rm -f confcache
10249
10250 test "x$prefix" = xNONE && prefix=$ac_default_prefix
10251 # Let make expand exec_prefix.
10252 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10253
10254 # VPATH may cause trouble with some makes, so we remove $(srcdir),
10255 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
10256 # trailing colons and then remove the whole line if VPATH becomes empty
10257 # (actually we leave an empty line to preserve line numbers).
10258 if test "x$srcdir" = x.; then
10259   ac_vpsub='/^[         ]*VPATH[        ]*=/{
10260 s/:*\$(srcdir):*/:/;
10261 s/:*\${srcdir}:*/:/;
10262 s/:*@srcdir@:*/:/;
10263 s/^\([^=]*=[    ]*\):*/\1/;
10264 s/:*$//;
10265 s/^[^=]*=[      ]*$//;
10266 }'
10267 fi
10268
10269 DEFS=-DHAVE_CONFIG_H
10270
10271 ac_libobjs=
10272 ac_ltlibobjs=
10273 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10274   # 1. Remove the extension, and $U if already installed.
10275   ac_i=`echo "$ac_i" |
10276          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
10277   # 2. Add them.
10278   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
10279   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
10280 done
10281 LIBOBJS=$ac_libobjs
10282
10283 LTLIBOBJS=$ac_ltlibobjs
10284
10285
10286 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
10287   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
10288 Usually this means the macro was only invoked conditionally." >&5
10289 echo "$as_me: error: conditional \"AMDEP\" was never defined.
10290 Usually this means the macro was only invoked conditionally." >&2;}
10291    { (exit 1); exit 1; }; }
10292 fi
10293 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
10294   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
10295 Usually this means the macro was only invoked conditionally." >&5
10296 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
10297 Usually this means the macro was only invoked conditionally." >&2;}
10298    { (exit 1); exit 1; }; }
10299 fi
10300 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
10301   { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
10302 Usually this means the macro was only invoked conditionally." >&5
10303 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
10304 Usually this means the macro was only invoked conditionally." >&2;}
10305    { (exit 1); exit 1; }; }
10306 fi
10307
10308 : ${CONFIG_STATUS=./config.status}
10309 ac_clean_files_save=$ac_clean_files
10310 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
10311 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
10312 echo "$as_me: creating $CONFIG_STATUS" >&6;}
10313 cat >$CONFIG_STATUS <<_ACEOF
10314 #! $SHELL
10315 # Generated by $as_me.
10316 # Run this file to recreate the current configuration.
10317 # Compiler output produced by configure, useful for debugging
10318 # configure, is in config.log if it exists.
10319
10320 debug=false
10321 ac_cs_recheck=false
10322 ac_cs_silent=false
10323 SHELL=\${CONFIG_SHELL-$SHELL}
10324 _ACEOF
10325
10326 cat >>$CONFIG_STATUS <<\_ACEOF
10327 ## --------------------- ##
10328 ## M4sh Initialization.  ##
10329 ## --------------------- ##
10330
10331 # Be Bourne compatible
10332 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
10333   emulate sh
10334   NULLCMD=:
10335   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
10336   # is contrary to our usage.  Disable this feature.
10337   alias -g '${1+"$@"}'='"$@"'
10338 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
10339   set -o posix
10340 fi
10341
10342 # Support unset when possible.
10343 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
10344   as_unset=unset
10345 else
10346   as_unset=false
10347 fi
10348
10349
10350 # Work around bugs in pre-3.0 UWIN ksh.
10351 $as_unset ENV MAIL MAILPATH
10352 PS1='$ '
10353 PS2='> '
10354 PS4='+ '
10355
10356 # NLS nuisances.
10357 for as_var in \
10358   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
10359   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
10360   LC_TELEPHONE LC_TIME
10361 do
10362   if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
10363     eval $as_var=C; export $as_var
10364   else
10365     $as_unset $as_var
10366   fi
10367 done
10368
10369 # Required to use basename.
10370 if expr a : '\(a\)' >/dev/null 2>&1; then
10371   as_expr=expr
10372 else
10373   as_expr=false
10374 fi
10375
10376 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
10377   as_basename=basename
10378 else
10379   as_basename=false
10380 fi
10381
10382
10383 # Name of the executable.
10384 as_me=`$as_basename "$0" ||
10385 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
10386          X"$0" : 'X\(//\)$' \| \
10387          X"$0" : 'X\(/\)$' \| \
10388          .     : '\(.\)' 2>/dev/null ||
10389 echo X/"$0" |
10390     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
10391           /^X\/\(\/\/\)$/{ s//\1/; q; }
10392           /^X\/\(\/\).*/{ s//\1/; q; }
10393           s/.*/./; q'`
10394
10395
10396 # PATH needs CR, and LINENO needs CR and PATH.
10397 # Avoid depending upon Character Ranges.
10398 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
10399 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
10400 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
10401 as_cr_digits='0123456789'
10402 as_cr_alnum=$as_cr_Letters$as_cr_digits
10403
10404 # The user is always right.
10405 if test "${PATH_SEPARATOR+set}" != set; then
10406   echo "#! /bin/sh" >conf$$.sh
10407   echo  "exit 0"   >>conf$$.sh
10408   chmod +x conf$$.sh
10409   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10410     PATH_SEPARATOR=';'
10411   else
10412     PATH_SEPARATOR=:
10413   fi
10414   rm -f conf$$.sh
10415 fi
10416
10417
10418   as_lineno_1=$LINENO
10419   as_lineno_2=$LINENO
10420   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
10421   test "x$as_lineno_1" != "x$as_lineno_2" &&
10422   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
10423   # Find who we are.  Look in the path if we contain no path at all
10424   # relative or not.
10425   case $0 in
10426     *[\\/]* ) as_myself=$0 ;;
10427     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10428 for as_dir in $PATH
10429 do
10430   IFS=$as_save_IFS
10431   test -z "$as_dir" && as_dir=.
10432   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
10433 done
10434
10435        ;;
10436   esac
10437   # We did not find ourselves, most probably we were run as `sh COMMAND'
10438   # in which case we are not to be found in the path.
10439   if test "x$as_myself" = x; then
10440     as_myself=$0
10441   fi
10442   if test ! -f "$as_myself"; then
10443     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
10444 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
10445    { (exit 1); exit 1; }; }
10446   fi
10447   case $CONFIG_SHELL in
10448   '')
10449     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10450 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
10451 do
10452   IFS=$as_save_IFS
10453   test -z "$as_dir" && as_dir=.
10454   for as_base in sh bash ksh sh5; do
10455          case $as_dir in
10456          /*)
10457            if ("$as_dir/$as_base" -c '
10458   as_lineno_1=$LINENO
10459   as_lineno_2=$LINENO
10460   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
10461   test "x$as_lineno_1" != "x$as_lineno_2" &&
10462   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
10463              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
10464              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
10465              CONFIG_SHELL=$as_dir/$as_base
10466              export CONFIG_SHELL
10467              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
10468            fi;;
10469          esac
10470        done
10471 done
10472 ;;
10473   esac
10474
10475   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
10476   # uniformly replaced by the line number.  The first 'sed' inserts a
10477   # line-number line before each line; the second 'sed' does the real
10478   # work.  The second script uses 'N' to pair each line-number line
10479   # with the numbered line, and appends trailing '-' during
10480   # substitution so that $LINENO is not a special case at line end.
10481   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
10482   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
10483   sed '=' <$as_myself |
10484     sed '
10485       N
10486       s,$,-,
10487       : loop
10488       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
10489       t loop
10490       s,-$,,
10491       s,^['$as_cr_digits']*\n,,
10492     ' >$as_me.lineno &&
10493   chmod +x $as_me.lineno ||
10494     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
10495 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
10496    { (exit 1); exit 1; }; }
10497
10498   # Don't try to exec as it changes $[0], causing all sort of problems
10499   # (the dirname of $[0] is not the place where we might find the
10500   # original and so on.  Autoconf is especially sensible to this).
10501   . ./$as_me.lineno
10502   # Exit status is that of the last command.
10503   exit
10504 }
10505
10506
10507 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
10508   *c*,-n*) ECHO_N= ECHO_C='
10509 ' ECHO_T='      ' ;;
10510   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
10511   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
10512 esac
10513
10514 if expr a : '\(a\)' >/dev/null 2>&1; then
10515   as_expr=expr
10516 else
10517   as_expr=false
10518 fi
10519
10520 rm -f conf$$ conf$$.exe conf$$.file
10521 echo >conf$$.file
10522 if ln -s conf$$.file conf$$ 2>/dev/null; then
10523   # We could just check for DJGPP; but this test a) works b) is more generic
10524   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
10525   if test -f conf$$.exe; then
10526     # Don't use ln at all; we don't have any links
10527     as_ln_s='cp -p'
10528   else
10529     as_ln_s='ln -s'
10530   fi
10531 elif ln conf$$.file conf$$ 2>/dev/null; then
10532   as_ln_s=ln
10533 else
10534   as_ln_s='cp -p'
10535 fi
10536 rm -f conf$$ conf$$.exe conf$$.file
10537
10538 if mkdir -p . 2>/dev/null; then
10539   as_mkdir_p=:
10540 else
10541   as_mkdir_p=false
10542 fi
10543
10544 as_executable_p="test -f"
10545
10546 # Sed expression to map a string onto a valid CPP name.
10547 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
10548
10549 # Sed expression to map a string onto a valid variable name.
10550 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
10551
10552
10553 # IFS
10554 # We need space, tab and new line, in precisely that order.
10555 as_nl='
10556 '
10557 IFS="   $as_nl"
10558
10559 # CDPATH.
10560 $as_unset CDPATH
10561
10562 exec 6>&1
10563
10564 # Open the log real soon, to keep \$[0] and so on meaningful, and to
10565 # report actual input values of CONFIG_FILES etc. instead of their
10566 # values after options handling.  Logging --version etc. is OK.
10567 exec 5>>config.log
10568 {
10569   echo
10570   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
10571 ## Running $as_me. ##
10572 _ASBOX
10573 } >&5
10574 cat >&5 <<_CSEOF
10575
10576 This file was extended by $as_me, which was
10577 generated by GNU Autoconf 2.57.  Invocation command line was
10578
10579   CONFIG_FILES    = $CONFIG_FILES
10580   CONFIG_HEADERS  = $CONFIG_HEADERS
10581   CONFIG_LINKS    = $CONFIG_LINKS
10582   CONFIG_COMMANDS = $CONFIG_COMMANDS
10583   $ $0 $@
10584
10585 _CSEOF
10586 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
10587 echo >&5
10588 _ACEOF
10589
10590 # Files that config.status was made for.
10591 if test -n "$ac_config_files"; then
10592   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
10593 fi
10594
10595 if test -n "$ac_config_headers"; then
10596   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
10597 fi
10598
10599 if test -n "$ac_config_links"; then
10600   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
10601 fi
10602
10603 if test -n "$ac_config_commands"; then
10604   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
10605 fi
10606
10607 cat >>$CONFIG_STATUS <<\_ACEOF
10608
10609 ac_cs_usage="\
10610 \`$as_me' instantiates files from templates according to the
10611 current configuration.
10612
10613 Usage: $0 [OPTIONS] [FILE]...
10614
10615   -h, --help       print this help, then exit
10616   -V, --version    print version number, then exit
10617   -q, --quiet      do not print progress messages
10618   -d, --debug      don't remove temporary files
10619       --recheck    update $as_me by reconfiguring in the same conditions
10620   --file=FILE[:TEMPLATE]
10621                    instantiate the configuration file FILE
10622   --header=FILE[:TEMPLATE]
10623                    instantiate the configuration header FILE
10624
10625 Configuration files:
10626 $config_files
10627
10628 Configuration headers:
10629 $config_headers
10630
10631 Configuration commands:
10632 $config_commands
10633
10634 Report bugs to <[email protected]>."
10635 _ACEOF
10636
10637 cat >>$CONFIG_STATUS <<_ACEOF
10638 ac_cs_version="\\
10639 config.status
10640 configured by $0, generated by GNU Autoconf 2.57,
10641   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
10642
10643 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
10644 Free Software Foundation, Inc.
10645 This config.status script is free software; the Free Software Foundation
10646 gives unlimited permission to copy, distribute and modify it."
10647 srcdir=$srcdir
10648 INSTALL="$INSTALL"
10649 _ACEOF
10650
10651 cat >>$CONFIG_STATUS <<\_ACEOF
10652 # If no file are specified by the user, then we need to provide default
10653 # value.  By we need to know if files were specified by the user.
10654 ac_need_defaults=:
10655 while test $# != 0
10656 do
10657   case $1 in
10658   --*=*)
10659     ac_option=`expr "x$1" : 'x\([^=]*\)='`
10660     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
10661     ac_shift=:
10662     ;;
10663   -*)
10664     ac_option=$1
10665     ac_optarg=$2
10666     ac_shift=shift
10667     ;;
10668   *) # This is not an option, so the user has probably given explicit
10669      # arguments.
10670      ac_option=$1
10671      ac_need_defaults=false;;
10672   esac
10673
10674   case $ac_option in
10675   # Handling of the options.
10676 _ACEOF
10677 cat >>$CONFIG_STATUS <<\_ACEOF
10678   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
10679     ac_cs_recheck=: ;;
10680   --version | --vers* | -V )
10681     echo "$ac_cs_version"; exit 0 ;;
10682   --he | --h)
10683     # Conflict between --help and --header
10684     { { echo "$as_me:$LINENO: error: ambiguous option: $1
10685 Try \`$0 --help' for more information." >&5
10686 echo "$as_me: error: ambiguous option: $1
10687 Try \`$0 --help' for more information." >&2;}
10688    { (exit 1); exit 1; }; };;
10689   --help | --hel | -h )
10690     echo "$ac_cs_usage"; exit 0 ;;
10691   --debug | --d* | -d )
10692     debug=: ;;
10693   --file | --fil | --fi | --f )
10694     $ac_shift
10695     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
10696     ac_need_defaults=false;;
10697   --header | --heade | --head | --hea )
10698     $ac_shift
10699     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
10700     ac_need_defaults=false;;
10701   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
10702   | -silent | --silent | --silen | --sile | --sil | --si | --s)
10703     ac_cs_silent=: ;;
10704
10705   # This is an error.
10706   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
10707 Try \`$0 --help' for more information." >&5
10708 echo "$as_me: error: unrecognized option: $1
10709 Try \`$0 --help' for more information." >&2;}
10710    { (exit 1); exit 1; }; } ;;
10711
10712   *) ac_config_targets="$ac_config_targets $1" ;;
10713
10714   esac
10715   shift
10716 done
10717
10718 ac_configure_extra_args=
10719
10720 if $ac_cs_silent; then
10721   exec 6>/dev/null
10722   ac_configure_extra_args="$ac_configure_extra_args --silent"
10723 fi
10724
10725 _ACEOF
10726 cat >>$CONFIG_STATUS <<_ACEOF
10727 if \$ac_cs_recheck; then
10728   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
10729   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
10730 fi
10731
10732 _ACEOF
10733
10734 cat >>$CONFIG_STATUS <<_ACEOF
10735 #
10736 # INIT-COMMANDS section.
10737 #
10738
10739 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
10740 target_cpu_type=${target_cpu_type}
10741  cgen_cpu_prefix=${cgen_cpu_prefix}
10742  obj_format=${obj_format}
10743  te_file=${te_file}
10744
10745 _ACEOF
10746
10747
10748
10749 cat >>$CONFIG_STATUS <<\_ACEOF
10750 for ac_config_target in $ac_config_targets
10751 do
10752   case "$ac_config_target" in
10753   # Handling of arguments.
10754   "gdb.ini" ) CONFIG_FILES="$CONFIG_FILES gdb.ini:gdbinit.in" ;;
10755   ".gdbinit" ) CONFIG_FILES="$CONFIG_FILES .gdbinit:gdbinit.in" ;;
10756   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
10757   "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
10758   "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
10759   "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
10760   "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
10761   "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
10762   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
10763 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
10764    { (exit 1); exit 1; }; };;
10765   esac
10766 done
10767
10768 # If the user did not use the arguments to specify the items to instantiate,
10769 # then the envvar interface is used.  Set only those that are not.
10770 # We use the long form for the default assignment because of an extremely
10771 # bizarre bug on SunOS 4.1.3.
10772 if $ac_need_defaults; then
10773   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
10774   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
10775   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
10776 fi
10777
10778 # Have a temporary directory for convenience.  Make it in the build tree
10779 # simply because there is no reason to put it here, and in addition,
10780 # creating and moving files from /tmp can sometimes cause problems.
10781 # Create a temporary directory, and hook for its removal unless debugging.
10782 $debug ||
10783 {
10784   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
10785   trap '{ (exit 1); exit 1; }' 1 2 13 15
10786 }
10787
10788 # Create a (secure) tmp directory for tmp files.
10789
10790 {
10791   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
10792   test -n "$tmp" && test -d "$tmp"
10793 }  ||
10794 {
10795   tmp=./confstat$$-$RANDOM
10796   (umask 077 && mkdir $tmp)
10797 } ||
10798 {
10799    echo "$me: cannot create a temporary directory in ." >&2
10800    { (exit 1); exit 1; }
10801 }
10802
10803 _ACEOF
10804
10805 cat >>$CONFIG_STATUS <<_ACEOF
10806
10807 #
10808 # CONFIG_FILES section.
10809 #
10810
10811 # No need to generate the scripts if there are no CONFIG_FILES.
10812 # This happens for instance when ./config.status config.h
10813 if test -n "\$CONFIG_FILES"; then
10814   # Protect against being on the right side of a sed subst in config.status.
10815   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
10816    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
10817 s,@SHELL@,$SHELL,;t t
10818 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
10819 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
10820 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
10821 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
10822 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
10823 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
10824 s,@exec_prefix@,$exec_prefix,;t t
10825 s,@prefix@,$prefix,;t t
10826 s,@program_transform_name@,$program_transform_name,;t t
10827 s,@bindir@,$bindir,;t t
10828 s,@sbindir@,$sbindir,;t t
10829 s,@libexecdir@,$libexecdir,;t t
10830 s,@datadir@,$datadir,;t t
10831 s,@sysconfdir@,$sysconfdir,;t t
10832 s,@sharedstatedir@,$sharedstatedir,;t t
10833 s,@localstatedir@,$localstatedir,;t t
10834 s,@libdir@,$libdir,;t t
10835 s,@includedir@,$includedir,;t t
10836 s,@oldincludedir@,$oldincludedir,;t t
10837 s,@infodir@,$infodir,;t t
10838 s,@mandir@,$mandir,;t t
10839 s,@build_alias@,$build_alias,;t t
10840 s,@host_alias@,$host_alias,;t t
10841 s,@target_alias@,$target_alias,;t t
10842 s,@DEFS@,$DEFS,;t t
10843 s,@ECHO_C@,$ECHO_C,;t t
10844 s,@ECHO_N@,$ECHO_N,;t t
10845 s,@ECHO_T@,$ECHO_T,;t t
10846 s,@LIBS@,$LIBS,;t t
10847 s,@build@,$build,;t t
10848 s,@build_cpu@,$build_cpu,;t t
10849 s,@build_vendor@,$build_vendor,;t t
10850 s,@build_os@,$build_os,;t t
10851 s,@host@,$host,;t t
10852 s,@host_cpu@,$host_cpu,;t t
10853 s,@host_vendor@,$host_vendor,;t t
10854 s,@host_os@,$host_os,;t t
10855 s,@target@,$target,;t t
10856 s,@target_cpu@,$target_cpu,;t t
10857 s,@target_vendor@,$target_vendor,;t t
10858 s,@target_os@,$target_os,;t t
10859 s,@CC@,$CC,;t t
10860 s,@CFLAGS@,$CFLAGS,;t t
10861 s,@LDFLAGS@,$LDFLAGS,;t t
10862 s,@CPPFLAGS@,$CPPFLAGS,;t t
10863 s,@ac_ct_CC@,$ac_ct_CC,;t t
10864 s,@EXEEXT@,$EXEEXT,;t t
10865 s,@OBJEXT@,$OBJEXT,;t t
10866 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
10867 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
10868 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
10869 s,@CYGPATH_W@,$CYGPATH_W,;t t
10870 s,@PACKAGE@,$PACKAGE,;t t
10871 s,@VERSION@,$VERSION,;t t
10872 s,@ACLOCAL@,$ACLOCAL,;t t
10873 s,@AUTOCONF@,$AUTOCONF,;t t
10874 s,@AUTOMAKE@,$AUTOMAKE,;t t
10875 s,@AUTOHEADER@,$AUTOHEADER,;t t
10876 s,@MAKEINFO@,$MAKEINFO,;t t
10877 s,@AMTAR@,$AMTAR,;t t
10878 s,@install_sh@,$install_sh,;t t
10879 s,@STRIP@,$STRIP,;t t
10880 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
10881 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
10882 s,@AWK@,$AWK,;t t
10883 s,@SET_MAKE@,$SET_MAKE,;t t
10884 s,@am__leading_dot@,$am__leading_dot,;t t
10885 s,@DEPDIR@,$DEPDIR,;t t
10886 s,@am__include@,$am__include,;t t
10887 s,@am__quote@,$am__quote,;t t
10888 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
10889 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
10890 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
10891 s,@CCDEPMODE@,$CCDEPMODE,;t t
10892 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
10893 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
10894 s,@LN_S@,$LN_S,;t t
10895 s,@RANLIB@,$RANLIB,;t t
10896 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
10897 s,@LIBTOOL@,$LIBTOOL,;t t
10898 s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
10899 s,@GDBINIT@,$GDBINIT,;t t
10900 s,@cgen_cpu_prefix@,$cgen_cpu_prefix,;t t
10901 s,@extra_objects@,$extra_objects,;t t
10902 s,@target_cpu_type@,$target_cpu_type,;t t
10903 s,@obj_format@,$obj_format,;t t
10904 s,@te_file@,$te_file,;t t
10905 s,@install_tooldir@,$install_tooldir,;t t
10906 s,@atof@,$atof,;t t
10907 s,@BFDLIB@,$BFDLIB,;t t
10908 s,@OPCODES_LIB@,$OPCODES_LIB,;t t
10909 s,@BFDVER_H@,$BFDVER_H,;t t
10910 s,@ALL_OBJ_DEPS@,$ALL_OBJ_DEPS,;t t
10911 s,@YACC@,$YACC,;t t
10912 s,@LEX@,$LEX,;t t
10913 s,@LEXLIB@,$LEXLIB,;t t
10914 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
10915 s,@CPP@,$CPP,;t t
10916 s,@EGREP@,$EGREP,;t t
10917 s,@ALLOCA@,$ALLOCA,;t t
10918 s,@USE_NLS@,$USE_NLS,;t t
10919 s,@MSGFMT@,$MSGFMT,;t t
10920 s,@GMSGFMT@,$GMSGFMT,;t t
10921 s,@XGETTEXT@,$XGETTEXT,;t t
10922 s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
10923 s,@CATALOGS@,$CATALOGS,;t t
10924 s,@CATOBJEXT@,$CATOBJEXT,;t t
10925 s,@DATADIRNAME@,$DATADIRNAME,;t t
10926 s,@GMOFILES@,$GMOFILES,;t t
10927 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
10928 s,@INTLDEPS@,$INTLDEPS,;t t
10929 s,@INTLLIBS@,$INTLLIBS,;t t
10930 s,@INTLOBJS@,$INTLOBJS,;t t
10931 s,@POFILES@,$POFILES,;t t
10932 s,@POSUB@,$POSUB,;t t
10933 s,@INCLUDE_LOCALE_H@,$INCLUDE_LOCALE_H,;t t
10934 s,@GT_NO@,$GT_NO,;t t
10935 s,@GT_YES@,$GT_YES,;t t
10936 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
10937 s,@l@,$l,;t t
10938 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
10939 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
10940 s,@MAINT@,$MAINT,;t t
10941 s,@LIBM@,$LIBM,;t t
10942 s,@LIBOBJS@,$LIBOBJS,;t t
10943 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
10944 CEOF
10945
10946 _ACEOF
10947
10948   cat >>$CONFIG_STATUS <<\_ACEOF
10949   # Split the substitutions into bite-sized pieces for seds with
10950   # small command number limits, like on Digital OSF/1 and HP-UX.
10951   ac_max_sed_lines=48
10952   ac_sed_frag=1 # Number of current file.
10953   ac_beg=1 # First line for current file.
10954   ac_end=$ac_max_sed_lines # Line after last line for current file.
10955   ac_more_lines=:
10956   ac_sed_cmds=
10957   while $ac_more_lines; do
10958     if test $ac_beg -gt 1; then
10959       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
10960     else
10961       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
10962     fi
10963     if test ! -s $tmp/subs.frag; then
10964       ac_more_lines=false
10965     else
10966       # The purpose of the label and of the branching condition is to
10967       # speed up the sed processing (if there are no `@' at all, there
10968       # is no need to browse any of the substitutions).
10969       # These are the two extra sed commands mentioned above.
10970       (echo ':t
10971   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
10972       if test -z "$ac_sed_cmds"; then
10973         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
10974       else
10975         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
10976       fi
10977       ac_sed_frag=`expr $ac_sed_frag + 1`
10978       ac_beg=$ac_end
10979       ac_end=`expr $ac_end + $ac_max_sed_lines`
10980     fi
10981   done
10982   if test -z "$ac_sed_cmds"; then
10983     ac_sed_cmds=cat
10984   fi
10985 fi # test -n "$CONFIG_FILES"
10986
10987 _ACEOF
10988 cat >>$CONFIG_STATUS <<\_ACEOF
10989 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
10990   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
10991   case $ac_file in
10992   - | *:- | *:-:* ) # input from stdin
10993         cat >$tmp/stdin
10994         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10995         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10996   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10997         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10998   * )   ac_file_in=$ac_file.in ;;
10999   esac
11000
11001   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
11002   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
11003 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11004          X"$ac_file" : 'X\(//\)[^/]' \| \
11005          X"$ac_file" : 'X\(//\)$' \| \
11006          X"$ac_file" : 'X\(/\)' \| \
11007          .     : '\(.\)' 2>/dev/null ||
11008 echo X"$ac_file" |
11009     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11010           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11011           /^X\(\/\/\)$/{ s//\1/; q; }
11012           /^X\(\/\).*/{ s//\1/; q; }
11013           s/.*/./; q'`
11014   { if $as_mkdir_p; then
11015     mkdir -p "$ac_dir"
11016   else
11017     as_dir="$ac_dir"
11018     as_dirs=
11019     while test ! -d "$as_dir"; do
11020       as_dirs="$as_dir $as_dirs"
11021       as_dir=`(dirname "$as_dir") 2>/dev/null ||
11022 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11023          X"$as_dir" : 'X\(//\)[^/]' \| \
11024          X"$as_dir" : 'X\(//\)$' \| \
11025          X"$as_dir" : 'X\(/\)' \| \
11026          .     : '\(.\)' 2>/dev/null ||
11027 echo X"$as_dir" |
11028     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11029           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11030           /^X\(\/\/\)$/{ s//\1/; q; }
11031           /^X\(\/\).*/{ s//\1/; q; }
11032           s/.*/./; q'`
11033     done
11034     test ! -n "$as_dirs" || mkdir $as_dirs
11035   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
11036 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
11037    { (exit 1); exit 1; }; }; }
11038
11039   ac_builddir=.
11040
11041 if test "$ac_dir" != .; then
11042   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
11043   # A "../" for each directory in $ac_dir_suffix.
11044   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
11045 else
11046   ac_dir_suffix= ac_top_builddir=
11047 fi
11048
11049 case $srcdir in
11050   .)  # No --srcdir option.  We are building in place.
11051     ac_srcdir=.
11052     if test -z "$ac_top_builddir"; then
11053        ac_top_srcdir=.
11054     else
11055        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
11056     fi ;;
11057   [\\/]* | ?:[\\/]* )  # Absolute path.
11058     ac_srcdir=$srcdir$ac_dir_suffix;
11059     ac_top_srcdir=$srcdir ;;
11060   *) # Relative path.
11061     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
11062     ac_top_srcdir=$ac_top_builddir$srcdir ;;
11063 esac
11064 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
11065 # absolute.
11066 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
11067 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
11068 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
11069 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
11070
11071
11072   case $INSTALL in
11073   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
11074   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
11075   esac
11076
11077   if test x"$ac_file" != x-; then
11078     { echo "$as_me:$LINENO: creating $ac_file" >&5
11079 echo "$as_me: creating $ac_file" >&6;}
11080     rm -f "$ac_file"
11081   fi
11082   # Let's still pretend it is `configure' which instantiates (i.e., don't
11083   # use $as_me), people would be surprised to read:
11084   #    /* config.h.  Generated by config.status.  */
11085   if test x"$ac_file" = x-; then
11086     configure_input=
11087   else
11088     configure_input="$ac_file.  "
11089   fi
11090   configure_input=$configure_input"Generated from `echo $ac_file_in |
11091                                      sed 's,.*/,,'` by configure."
11092
11093   # First look for the input files in the build tree, otherwise in the
11094   # src tree.
11095   ac_file_inputs=`IFS=:
11096     for f in $ac_file_in; do
11097       case $f in
11098       -) echo $tmp/stdin ;;
11099       [\\/$]*)
11100          # Absolute (can't be DOS-style, as IFS=:)
11101          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11102 echo "$as_me: error: cannot find input file: $f" >&2;}
11103    { (exit 1); exit 1; }; }
11104          echo $f;;
11105       *) # Relative
11106          if test -f "$f"; then
11107            # Build tree
11108            echo $f
11109          elif test -f "$srcdir/$f"; then
11110            # Source tree
11111            echo $srcdir/$f
11112          else
11113            # /dev/null tree
11114            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11115 echo "$as_me: error: cannot find input file: $f" >&2;}
11116    { (exit 1); exit 1; }; }
11117          fi;;
11118       esac
11119     done` || { (exit 1); exit 1; }
11120 _ACEOF
11121 cat >>$CONFIG_STATUS <<_ACEOF
11122   sed "$ac_vpsub
11123 $extrasub
11124 _ACEOF
11125 cat >>$CONFIG_STATUS <<\_ACEOF
11126 :t
11127 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
11128 s,@configure_input@,$configure_input,;t t
11129 s,@srcdir@,$ac_srcdir,;t t
11130 s,@abs_srcdir@,$ac_abs_srcdir,;t t
11131 s,@top_srcdir@,$ac_top_srcdir,;t t
11132 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
11133 s,@builddir@,$ac_builddir,;t t
11134 s,@abs_builddir@,$ac_abs_builddir,;t t
11135 s,@top_builddir@,$ac_top_builddir,;t t
11136 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
11137 s,@INSTALL@,$ac_INSTALL,;t t
11138 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
11139   rm -f $tmp/stdin
11140   if test x"$ac_file" != x-; then
11141     mv $tmp/out $ac_file
11142   else
11143     cat $tmp/out
11144     rm -f $tmp/out
11145   fi
11146
11147 done
11148 _ACEOF
11149 cat >>$CONFIG_STATUS <<\_ACEOF
11150
11151 #
11152 # CONFIG_HEADER section.
11153 #
11154
11155 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
11156 # NAME is the cpp macro being defined and VALUE is the value it is being given.
11157 #
11158 # ac_d sets the value in "#define NAME VALUE" lines.
11159 ac_dA='s,^\([   ]*\)#\([        ]*define[       ][      ]*\)'
11160 ac_dB='[        ].*$,\1#\2'
11161 ac_dC=' '
11162 ac_dD=',;t'
11163 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
11164 ac_uA='s,^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
11165 ac_uB='$,\1#\2define\3'
11166 ac_uC=' '
11167 ac_uD=',;t'
11168
11169 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
11170   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
11171   case $ac_file in
11172   - | *:- | *:-:* ) # input from stdin
11173         cat >$tmp/stdin
11174         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11175         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11176   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11177         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11178   * )   ac_file_in=$ac_file.in ;;
11179   esac
11180
11181   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
11182 echo "$as_me: creating $ac_file" >&6;}
11183
11184   # First look for the input files in the build tree, otherwise in the
11185   # src tree.
11186   ac_file_inputs=`IFS=:
11187     for f in $ac_file_in; do
11188       case $f in
11189       -) echo $tmp/stdin ;;
11190       [\\/$]*)
11191          # Absolute (can't be DOS-style, as IFS=:)
11192          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11193 echo "$as_me: error: cannot find input file: $f" >&2;}
11194    { (exit 1); exit 1; }; }
11195          echo $f;;
11196       *) # Relative
11197          if test -f "$f"; then
11198            # Build tree
11199            echo $f
11200          elif test -f "$srcdir/$f"; then
11201            # Source tree
11202            echo $srcdir/$f
11203          else
11204            # /dev/null tree
11205            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11206 echo "$as_me: error: cannot find input file: $f" >&2;}
11207    { (exit 1); exit 1; }; }
11208          fi;;
11209       esac
11210     done` || { (exit 1); exit 1; }
11211   # Remove the trailing spaces.
11212   sed 's/[      ]*$//' $ac_file_inputs >$tmp/in
11213
11214 _ACEOF
11215
11216 # Transform confdefs.h into two sed scripts, `conftest.defines' and
11217 # `conftest.undefs', that substitutes the proper values into
11218 # config.h.in to produce config.h.  The first handles `#define'
11219 # templates, and the second `#undef' templates.
11220 # And first: Protect against being on the right side of a sed subst in
11221 # config.status.  Protect against being in an unquoted here document
11222 # in config.status.
11223 rm -f conftest.defines conftest.undefs
11224 # Using a here document instead of a string reduces the quoting nightmare.
11225 # Putting comments in sed scripts is not portable.
11226 #
11227 # `end' is used to avoid that the second main sed command (meant for
11228 # 0-ary CPP macros) applies to n-ary macro definitions.
11229 # See the Autoconf documentation for `clear'.
11230 cat >confdef2sed.sed <<\_ACEOF
11231 s/[\\&,]/\\&/g
11232 s,[\\$`],\\&,g
11233 t clear
11234 : clear
11235 s,^[    ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
11236 t end
11237 s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
11238 : end
11239 _ACEOF
11240 # If some macros were called several times there might be several times
11241 # the same #defines, which is useless.  Nevertheless, we may not want to
11242 # sort them, since we want the *last* AC-DEFINE to be honored.
11243 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
11244 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
11245 rm -f confdef2sed.sed
11246
11247 # This sed command replaces #undef with comments.  This is necessary, for
11248 # example, in the case of _POSIX_SOURCE, which is predefined and required
11249 # on some systems where configure will not decide to define it.
11250 cat >>conftest.undefs <<\_ACEOF
11251 s,^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
11252 _ACEOF
11253
11254 # Break up conftest.defines because some shells have a limit on the size
11255 # of here documents, and old seds have small limits too (100 cmds).
11256 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
11257 echo '  if grep "^[     ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
11258 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
11259 echo '  :' >>$CONFIG_STATUS
11260 rm -f conftest.tail
11261 while grep . conftest.defines >/dev/null
11262 do
11263   # Write a limited-size here document to $tmp/defines.sed.
11264   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
11265   # Speed up: don't consider the non `#define' lines.
11266   echo '/^[     ]*#[    ]*define/!b' >>$CONFIG_STATUS
11267   # Work around the forget-to-reset-the-flag bug.
11268   echo 't clr' >>$CONFIG_STATUS
11269   echo ': clr' >>$CONFIG_STATUS
11270   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
11271   echo 'CEOF
11272   sed -f $tmp/defines.sed $tmp/in >$tmp/out
11273   rm -f $tmp/in
11274   mv $tmp/out $tmp/in
11275 ' >>$CONFIG_STATUS
11276   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
11277   rm -f conftest.defines
11278   mv conftest.tail conftest.defines
11279 done
11280 rm -f conftest.defines
11281 echo '  fi # grep' >>$CONFIG_STATUS
11282 echo >>$CONFIG_STATUS
11283
11284 # Break up conftest.undefs because some shells have a limit on the size
11285 # of here documents, and old seds have small limits too (100 cmds).
11286 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
11287 rm -f conftest.tail
11288 while grep . conftest.undefs >/dev/null
11289 do
11290   # Write a limited-size here document to $tmp/undefs.sed.
11291   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
11292   # Speed up: don't consider the non `#undef'
11293   echo '/^[     ]*#[    ]*undef/!b' >>$CONFIG_STATUS
11294   # Work around the forget-to-reset-the-flag bug.
11295   echo 't clr' >>$CONFIG_STATUS
11296   echo ': clr' >>$CONFIG_STATUS
11297   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
11298   echo 'CEOF
11299   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
11300   rm -f $tmp/in
11301   mv $tmp/out $tmp/in
11302 ' >>$CONFIG_STATUS
11303   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
11304   rm -f conftest.undefs
11305   mv conftest.tail conftest.undefs
11306 done
11307 rm -f conftest.undefs
11308
11309 cat >>$CONFIG_STATUS <<\_ACEOF
11310   # Let's still pretend it is `configure' which instantiates (i.e., don't
11311   # use $as_me), people would be surprised to read:
11312   #    /* config.h.  Generated by config.status.  */
11313   if test x"$ac_file" = x-; then
11314     echo "/* Generated by configure.  */" >$tmp/config.h
11315   else
11316     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
11317   fi
11318   cat $tmp/in >>$tmp/config.h
11319   rm -f $tmp/in
11320   if test x"$ac_file" != x-; then
11321     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
11322       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
11323 echo "$as_me: $ac_file is unchanged" >&6;}
11324     else
11325       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
11326 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11327          X"$ac_file" : 'X\(//\)[^/]' \| \
11328          X"$ac_file" : 'X\(//\)$' \| \
11329          X"$ac_file" : 'X\(/\)' \| \
11330          .     : '\(.\)' 2>/dev/null ||
11331 echo X"$ac_file" |
11332     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11333           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11334           /^X\(\/\/\)$/{ s//\1/; q; }
11335           /^X\(\/\).*/{ s//\1/; q; }
11336           s/.*/./; q'`
11337       { if $as_mkdir_p; then
11338     mkdir -p "$ac_dir"
11339   else
11340     as_dir="$ac_dir"
11341     as_dirs=
11342     while test ! -d "$as_dir"; do
11343       as_dirs="$as_dir $as_dirs"
11344       as_dir=`(dirname "$as_dir") 2>/dev/null ||
11345 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11346          X"$as_dir" : 'X\(//\)[^/]' \| \
11347          X"$as_dir" : 'X\(//\)$' \| \
11348          X"$as_dir" : 'X\(/\)' \| \
11349          .     : '\(.\)' 2>/dev/null ||
11350 echo X"$as_dir" |
11351     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11352           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11353           /^X\(\/\/\)$/{ s//\1/; q; }
11354           /^X\(\/\).*/{ s//\1/; q; }
11355           s/.*/./; q'`
11356     done
11357     test ! -n "$as_dirs" || mkdir $as_dirs
11358   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
11359 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
11360    { (exit 1); exit 1; }; }; }
11361
11362       rm -f $ac_file
11363       mv $tmp/config.h $ac_file
11364     fi
11365   else
11366     cat $tmp/config.h
11367     rm -f $tmp/config.h
11368   fi
11369 # Compute $ac_file's index in $config_headers.
11370 _am_stamp_count=1
11371 for _am_header in $config_headers :; do
11372   case $_am_header in
11373     $ac_file | $ac_file:* )
11374       break ;;
11375     * )
11376       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
11377   esac
11378 done
11379 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
11380 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11381          X$ac_file : 'X\(//\)[^/]' \| \
11382          X$ac_file : 'X\(//\)$' \| \
11383          X$ac_file : 'X\(/\)' \| \
11384          .     : '\(.\)' 2>/dev/null ||
11385 echo X$ac_file |
11386     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11387           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11388           /^X\(\/\/\)$/{ s//\1/; q; }
11389           /^X\(\/\).*/{ s//\1/; q; }
11390           s/.*/./; q'`/stamp-h$_am_stamp_count
11391 done
11392 _ACEOF
11393 cat >>$CONFIG_STATUS <<\_ACEOF
11394
11395 #
11396 # CONFIG_COMMANDS section.
11397 #
11398 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
11399   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
11400   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
11401   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
11402 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11403          X"$ac_dest" : 'X\(//\)[^/]' \| \
11404          X"$ac_dest" : 'X\(//\)$' \| \
11405          X"$ac_dest" : 'X\(/\)' \| \
11406          .     : '\(.\)' 2>/dev/null ||
11407 echo X"$ac_dest" |
11408     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11409           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11410           /^X\(\/\/\)$/{ s//\1/; q; }
11411           /^X\(\/\).*/{ s//\1/; q; }
11412           s/.*/./; q'`
11413   ac_builddir=.
11414
11415 if test "$ac_dir" != .; then
11416   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
11417   # A "../" for each directory in $ac_dir_suffix.
11418   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
11419 else
11420   ac_dir_suffix= ac_top_builddir=
11421 fi
11422
11423 case $srcdir in
11424   .)  # No --srcdir option.  We are building in place.
11425     ac_srcdir=.
11426     if test -z "$ac_top_builddir"; then
11427        ac_top_srcdir=.
11428     else
11429        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
11430     fi ;;
11431   [\\/]* | ?:[\\/]* )  # Absolute path.
11432     ac_srcdir=$srcdir$ac_dir_suffix;
11433     ac_top_srcdir=$srcdir ;;
11434   *) # Relative path.
11435     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
11436     ac_top_srcdir=$ac_top_builddir$srcdir ;;
11437 esac
11438 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
11439 # absolute.
11440 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
11441 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
11442 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
11443 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
11444
11445
11446   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
11447 echo "$as_me: executing $ac_dest commands" >&6;}
11448   case $ac_dest in
11449     depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
11450   # Strip MF so we end up with the name of the file.
11451   mf=`echo "$mf" | sed -e 's/:.*$//'`
11452   # Check whether this is an Automake generated Makefile or not.
11453   # We used to match only the files named `Makefile.in', but
11454   # some people rename them; so instead we look at the file content.
11455   # Grep'ing the first line is not enough: some people post-process
11456   # each Makefile.in and add a new line on top of each file to say so.
11457   # So let's grep whole file.
11458   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
11459     dirpart=`(dirname "$mf") 2>/dev/null ||
11460 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11461          X"$mf" : 'X\(//\)[^/]' \| \
11462          X"$mf" : 'X\(//\)$' \| \
11463          X"$mf" : 'X\(/\)' \| \
11464          .     : '\(.\)' 2>/dev/null ||
11465 echo X"$mf" |
11466     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11467           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11468           /^X\(\/\/\)$/{ s//\1/; q; }
11469           /^X\(\/\).*/{ s//\1/; q; }
11470           s/.*/./; q'`
11471   else
11472     continue
11473   fi
11474   grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
11475   # Extract the definition of DEP_FILES from the Makefile without
11476   # running `make'.
11477   DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
11478   test -z "$DEPDIR" && continue
11479   # When using ansi2knr, U may be empty or an underscore; expand it
11480   U=`sed -n -e '/^U = / s///p' < "$mf"`
11481   test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
11482   # We invoke sed twice because it is the simplest approach to
11483   # changing $(DEPDIR) to its actual value in the expansion.
11484   for file in `sed -n -e '
11485     /^DEP_FILES = .*\\\\$/ {
11486       s/^DEP_FILES = //
11487       :loop
11488         s/\\\\$//
11489         p
11490         n
11491         /\\\\$/ b loop
11492       p
11493     }
11494     /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
11495        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
11496     # Make sure the directory exists.
11497     test -f "$dirpart/$file" && continue
11498     fdir=`(dirname "$file") 2>/dev/null ||
11499 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11500          X"$file" : 'X\(//\)[^/]' \| \
11501          X"$file" : 'X\(//\)$' \| \
11502          X"$file" : 'X\(/\)' \| \
11503          .     : '\(.\)' 2>/dev/null ||
11504 echo X"$file" |
11505     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11506           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11507           /^X\(\/\/\)$/{ s//\1/; q; }
11508           /^X\(\/\).*/{ s//\1/; q; }
11509           s/.*/./; q'`
11510     { if $as_mkdir_p; then
11511     mkdir -p $dirpart/$fdir
11512   else
11513     as_dir=$dirpart/$fdir
11514     as_dirs=
11515     while test ! -d "$as_dir"; do
11516       as_dirs="$as_dir $as_dirs"
11517       as_dir=`(dirname "$as_dir") 2>/dev/null ||
11518 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11519          X"$as_dir" : 'X\(//\)[^/]' \| \
11520          X"$as_dir" : 'X\(//\)$' \| \
11521          X"$as_dir" : 'X\(/\)' \| \
11522          .     : '\(.\)' 2>/dev/null ||
11523 echo X"$as_dir" |
11524     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11525           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11526           /^X\(\/\/\)$/{ s//\1/; q; }
11527           /^X\(\/\).*/{ s//\1/; q; }
11528           s/.*/./; q'`
11529     done
11530     test ! -n "$as_dirs" || mkdir $as_dirs
11531   fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
11532 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
11533    { (exit 1); exit 1; }; }; }
11534
11535     # echo "creating $dirpart/$file"
11536     echo '# dummy' > "$dirpart/$file"
11537   done
11538 done
11539  ;;
11540     default ) rm -f targ-cpu.c targ-cpu.h obj-format.h obj-format.c targ-env.h atof-targ.c itbl-cpu.h
11541  echo '#include "tc-'"${target_cpu_type}"'.h"' > targ-cpu.h
11542  echo '#include "obj-'"${obj_format}"'.h"' > obj-format.h
11543  echo '#include "te-'"${te_file}"'.h"' > targ-env.h
11544  echo '#include "itbl-'"${target_cpu_type}"'.h"' > itbl-cpu.h
11545  if test "x$cgen_cpu_prefix" != x ; then
11546    echo '#include "opcodes/'"${cgen_cpu_prefix}"'-desc.h"' > cgen-desc.h
11547  fi
11548
11549  sed -e '/POTFILES =/r po/POTFILES' po/Makefile.in > po/Makefile ;;
11550   esac
11551 done
11552 _ACEOF
11553
11554 cat >>$CONFIG_STATUS <<\_ACEOF
11555
11556 { (exit 0); exit 0; }
11557 _ACEOF
11558 chmod +x $CONFIG_STATUS
11559 ac_clean_files=$ac_clean_files_save
11560
11561
11562 # configure is writing to config.log, and then calls config.status.
11563 # config.status does its own redirection, appending to config.log.
11564 # Unfortunately, on DOS this fails, as config.log is still kept open
11565 # by configure, so config.status won't be able to write to it; its
11566 # output is simply discarded.  So we exec the FD to /dev/null,
11567 # effectively closing config.log, so it can be properly (re)opened and
11568 # appended to by config.status.  When coming back to configure, we
11569 # need to make the FD available again.
11570 if test "$no_create" != yes; then
11571   ac_cs_success=:
11572   ac_config_status_args=
11573   test "$silent" = yes &&
11574     ac_config_status_args="$ac_config_status_args --quiet"
11575   exec 5>/dev/null
11576   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
11577   exec 5>>config.log
11578   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
11579   # would make configure fail if this is the last instruction.
11580   $ac_cs_success || { (exit 1); exit 1; }
11581 fi
11582
This page took 0.669738 seconds and 4 git commands to generate.