OSDN Git Service

24daec96ae23beed22e4769be8f797e9d0428c2a
[pf3gnuchains/gcc-fork.git] / libobjc / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
4 #
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization.  ##
10 ## --------------------- ##
11
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14   emulate sh
15   NULLCMD=:
16   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17   # is contrary to our usage.  Disable this feature.
18   alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20   set -o posix
21 fi
22 DUALCASE=1; export DUALCASE # for MKS sh
23
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26   as_unset=unset
27 else
28   as_unset=false
29 fi
30
31
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
37
38 # NLS nuisances.
39 for as_var in \
40   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42   LC_TELEPHONE LC_TIME
43 do
44   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45     eval $as_var=C; export $as_var
46   else
47     $as_unset $as_var
48   fi
49 done
50
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53   as_expr=expr
54 else
55   as_expr=false
56 fi
57
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59   as_basename=basename
60 else
61   as_basename=false
62 fi
63
64
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68          X"$0" : 'X\(//\)$' \| \
69          X"$0" : 'X\(/\)$' \| \
70          .     : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73           /^X\/\(\/\/\)$/{ s//\1/; q; }
74           /^X\/\(\/\).*/{ s//\1/; q; }
75           s/.*/./; q'`
76
77
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88   echo "#! /bin/sh" >conf$$.sh
89   echo  "exit 0"   >>conf$$.sh
90   chmod +x conf$$.sh
91   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92     PATH_SEPARATOR=';'
93   else
94     PATH_SEPARATOR=:
95   fi
96   rm -f conf$$.sh
97 fi
98
99
100   as_lineno_1=$LINENO
101   as_lineno_2=$LINENO
102   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103   test "x$as_lineno_1" != "x$as_lineno_2" &&
104   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
105   # Find who we are.  Look in the path if we contain no path at all
106   # relative or not.
107   case $0 in
108     *[\\/]* ) as_myself=$0 ;;
109     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
111 do
112   IFS=$as_save_IFS
113   test -z "$as_dir" && as_dir=.
114   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
116
117        ;;
118   esac
119   # We did not find ourselves, most probably we were run as `sh COMMAND'
120   # in which case we are not to be found in the path.
121   if test "x$as_myself" = x; then
122     as_myself=$0
123   fi
124   if test ! -f "$as_myself"; then
125     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126    { (exit 1); exit 1; }; }
127   fi
128   case $CONFIG_SHELL in
129   '')
130     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132 do
133   IFS=$as_save_IFS
134   test -z "$as_dir" && as_dir=.
135   for as_base in sh bash ksh sh5; do
136          case $as_dir in
137          /*)
138            if ("$as_dir/$as_base" -c '
139   as_lineno_1=$LINENO
140   as_lineno_2=$LINENO
141   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142   test "x$as_lineno_1" != "x$as_lineno_2" &&
143   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
144              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146              CONFIG_SHELL=$as_dir/$as_base
147              export CONFIG_SHELL
148              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149            fi;;
150          esac
151        done
152 done
153 ;;
154   esac
155
156   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157   # uniformly replaced by the line number.  The first 'sed' inserts a
158   # line-number line before each line; the second 'sed' does the real
159   # work.  The second script uses 'N' to pair each line-number line
160   # with the numbered line, and appends trailing '-' during
161   # substitution so that $LINENO is not a special case at line end.
162   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
164   sed '=' <$as_myself |
165     sed '
166       N
167       s,$,-,
168       : loop
169       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170       t loop
171       s,-$,,
172       s,^['$as_cr_digits']*\n,,
173     ' >$as_me.lineno &&
174   chmod +x $as_me.lineno ||
175     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176    { (exit 1); exit 1; }; }
177
178   # Don't try to exec as it changes $[0], causing all sort of problems
179   # (the dirname of $[0] is not the place where we might find the
180   # original and so on.  Autoconf is especially sensible to this).
181   . ./$as_me.lineno
182   # Exit status is that of the last command.
183   exit
184 }
185
186
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188   *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T='      ' ;;
190   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
193
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195   as_expr=expr
196 else
197   as_expr=false
198 fi
199
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203   # We could just check for DJGPP; but this test a) works b) is more generic
204   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205   if test -f conf$$.exe; then
206     # Don't use ln at all; we don't have any links
207     as_ln_s='cp -p'
208   else
209     as_ln_s='ln -s'
210   fi
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212   as_ln_s=ln
213 else
214   as_ln_s='cp -p'
215 fi
216 rm -f conf$$ conf$$.exe conf$$.file
217
218 if mkdir -p . 2>/dev/null; then
219   as_mkdir_p=:
220 else
221   test -d ./-p && rmdir ./-p
222   as_mkdir_p=false
223 fi
224
225 as_executable_p="test -f"
226
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
233
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
237 '
238 IFS="   $as_nl"
239
240 # CDPATH.
241 $as_unset CDPATH
242
243
244 # Name of the host.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
248
249 exec 6>&1
250
251 #
252 # Initializations.
253 #
254 ac_default_prefix=/usr/local
255 ac_config_libobj_dir=.
256 cross_compiling=no
257 subdirs=
258 MFLAGS=
259 MAKEFLAGS=
260 SHELL=${CONFIG_SHELL-/bin/sh}
261
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete.  It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
266
267 # Identity of this package.
268 PACKAGE_NAME=
269 PACKAGE_TARNAME=
270 PACKAGE_VERSION=
271 PACKAGE_STRING=
272 PACKAGE_BUGREPORT=
273
274 ac_unique_file="objc/objc.h"
275 # Factoring default headers for most tests.
276 ac_includes_default="\
277 #include <stdio.h>
278 #if HAVE_SYS_TYPES_H
279 # include <sys/types.h>
280 #endif
281 #if HAVE_SYS_STAT_H
282 # include <sys/stat.h>
283 #endif
284 #if STDC_HEADERS
285 # include <stdlib.h>
286 # include <stddef.h>
287 #else
288 # if HAVE_STDLIB_H
289 #  include <stdlib.h>
290 # endif
291 #endif
292 #if HAVE_STRING_H
293 # if !STDC_HEADERS && HAVE_MEMORY_H
294 #  include <memory.h>
295 # endif
296 # include <string.h>
297 #endif
298 #if HAVE_STRINGS_H
299 # include <strings.h>
300 #endif
301 #if HAVE_INTTYPES_H
302 # include <inttypes.h>
303 #else
304 # if HAVE_STDINT_H
305 #  include <stdint.h>
306 # endif
307 #endif
308 #if HAVE_UNISTD_H
309 # include <unistd.h>
310 #endif"
311
312 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS VERSION OBJC_BOEHM_GC toplevel_srcdir build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os target_noncanonical glibcpp_srcdir gcc_version toolexecdir toolexeclibdir includedirname libext CC ac_ct_CC EXEEXT OBJEXT CFLAGS AS ac_ct_AS AR ac_ct_AR RANLIB ac_ct_RANLIB INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LN_S STRIP ac_ct_STRIP LIBTOOL SET_MAKE CPP CPPFLAGS EGREP GTHREAD_FLAGS LIBOBJS LTLIBOBJS'
313 ac_subst_files=''
314
315 # Initialize some variables set by options.
316 ac_init_help=
317 ac_init_version=false
318 # The variables have the same names as the options, with
319 # dashes changed to underlines.
320 cache_file=/dev/null
321 exec_prefix=NONE
322 no_create=
323 no_recursion=
324 prefix=NONE
325 program_prefix=NONE
326 program_suffix=NONE
327 program_transform_name=s,x,x,
328 silent=
329 site=
330 srcdir=
331 verbose=
332 x_includes=NONE
333 x_libraries=NONE
334
335 # Installation directory options.
336 # These are left unexpanded so users can "make install exec_prefix=/foo"
337 # and all the variables that are supposed to be based on exec_prefix
338 # by default will actually change.
339 # Use braces instead of parens because sh, perl, etc. also accept them.
340 bindir='${exec_prefix}/bin'
341 sbindir='${exec_prefix}/sbin'
342 libexecdir='${exec_prefix}/libexec'
343 datadir='${prefix}/share'
344 sysconfdir='${prefix}/etc'
345 sharedstatedir='${prefix}/com'
346 localstatedir='${prefix}/var'
347 libdir='${exec_prefix}/lib'
348 includedir='${prefix}/include'
349 oldincludedir='/usr/include'
350 infodir='${prefix}/info'
351 mandir='${prefix}/man'
352
353 ac_prev=
354 for ac_option
355 do
356   # If the previous option needs an argument, assign it.
357   if test -n "$ac_prev"; then
358     eval "$ac_prev=\$ac_option"
359     ac_prev=
360     continue
361   fi
362
363   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
364
365   # Accept the important Cygnus configure options, so we can diagnose typos.
366
367   case $ac_option in
368
369   -bindir | --bindir | --bindi | --bind | --bin | --bi)
370     ac_prev=bindir ;;
371   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
372     bindir=$ac_optarg ;;
373
374   -build | --build | --buil | --bui | --bu)
375     ac_prev=build_alias ;;
376   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
377     build_alias=$ac_optarg ;;
378
379   -cache-file | --cache-file | --cache-fil | --cache-fi \
380   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
381     ac_prev=cache_file ;;
382   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
383   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
384     cache_file=$ac_optarg ;;
385
386   --config-cache | -C)
387     cache_file=config.cache ;;
388
389   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
390     ac_prev=datadir ;;
391   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
392   | --da=*)
393     datadir=$ac_optarg ;;
394
395   -disable-* | --disable-*)
396     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
397     # Reject names that are not valid shell variable names.
398     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
399       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
400    { (exit 1); exit 1; }; }
401     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
402     eval "enable_$ac_feature=no" ;;
403
404   -enable-* | --enable-*)
405     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
406     # Reject names that are not valid shell variable names.
407     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
408       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
409    { (exit 1); exit 1; }; }
410     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
411     case $ac_option in
412       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
413       *) ac_optarg=yes ;;
414     esac
415     eval "enable_$ac_feature='$ac_optarg'" ;;
416
417   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
418   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
419   | --exec | --exe | --ex)
420     ac_prev=exec_prefix ;;
421   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
422   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
423   | --exec=* | --exe=* | --ex=*)
424     exec_prefix=$ac_optarg ;;
425
426   -gas | --gas | --ga | --g)
427     # Obsolete; use --with-gas.
428     with_gas=yes ;;
429
430   -help | --help | --hel | --he | -h)
431     ac_init_help=long ;;
432   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
433     ac_init_help=recursive ;;
434   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
435     ac_init_help=short ;;
436
437   -host | --host | --hos | --ho)
438     ac_prev=host_alias ;;
439   -host=* | --host=* | --hos=* | --ho=*)
440     host_alias=$ac_optarg ;;
441
442   -includedir | --includedir | --includedi | --included | --include \
443   | --includ | --inclu | --incl | --inc)
444     ac_prev=includedir ;;
445   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
446   | --includ=* | --inclu=* | --incl=* | --inc=*)
447     includedir=$ac_optarg ;;
448
449   -infodir | --infodir | --infodi | --infod | --info | --inf)
450     ac_prev=infodir ;;
451   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
452     infodir=$ac_optarg ;;
453
454   -libdir | --libdir | --libdi | --libd)
455     ac_prev=libdir ;;
456   -libdir=* | --libdir=* | --libdi=* | --libd=*)
457     libdir=$ac_optarg ;;
458
459   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
460   | --libexe | --libex | --libe)
461     ac_prev=libexecdir ;;
462   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
463   | --libexe=* | --libex=* | --libe=*)
464     libexecdir=$ac_optarg ;;
465
466   -localstatedir | --localstatedir | --localstatedi | --localstated \
467   | --localstate | --localstat | --localsta | --localst \
468   | --locals | --local | --loca | --loc | --lo)
469     ac_prev=localstatedir ;;
470   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
471   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
472   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
473     localstatedir=$ac_optarg ;;
474
475   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
476     ac_prev=mandir ;;
477   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
478     mandir=$ac_optarg ;;
479
480   -nfp | --nfp | --nf)
481     # Obsolete; use --without-fp.
482     with_fp=no ;;
483
484   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
485   | --no-cr | --no-c | -n)
486     no_create=yes ;;
487
488   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
489   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
490     no_recursion=yes ;;
491
492   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
493   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
494   | --oldin | --oldi | --old | --ol | --o)
495     ac_prev=oldincludedir ;;
496   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
497   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
498   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
499     oldincludedir=$ac_optarg ;;
500
501   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
502     ac_prev=prefix ;;
503   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
504     prefix=$ac_optarg ;;
505
506   -program-prefix | --program-prefix | --program-prefi | --program-pref \
507   | --program-pre | --program-pr | --program-p)
508     ac_prev=program_prefix ;;
509   -program-prefix=* | --program-prefix=* | --program-prefi=* \
510   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
511     program_prefix=$ac_optarg ;;
512
513   -program-suffix | --program-suffix | --program-suffi | --program-suff \
514   | --program-suf | --program-su | --program-s)
515     ac_prev=program_suffix ;;
516   -program-suffix=* | --program-suffix=* | --program-suffi=* \
517   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
518     program_suffix=$ac_optarg ;;
519
520   -program-transform-name | --program-transform-name \
521   | --program-transform-nam | --program-transform-na \
522   | --program-transform-n | --program-transform- \
523   | --program-transform | --program-transfor \
524   | --program-transfo | --program-transf \
525   | --program-trans | --program-tran \
526   | --progr-tra | --program-tr | --program-t)
527     ac_prev=program_transform_name ;;
528   -program-transform-name=* | --program-transform-name=* \
529   | --program-transform-nam=* | --program-transform-na=* \
530   | --program-transform-n=* | --program-transform-=* \
531   | --program-transform=* | --program-transfor=* \
532   | --program-transfo=* | --program-transf=* \
533   | --program-trans=* | --program-tran=* \
534   | --progr-tra=* | --program-tr=* | --program-t=*)
535     program_transform_name=$ac_optarg ;;
536
537   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
538   | -silent | --silent | --silen | --sile | --sil)
539     silent=yes ;;
540
541   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
542     ac_prev=sbindir ;;
543   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
544   | --sbi=* | --sb=*)
545     sbindir=$ac_optarg ;;
546
547   -sharedstatedir | --sharedstatedir | --sharedstatedi \
548   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
549   | --sharedst | --shareds | --shared | --share | --shar \
550   | --sha | --sh)
551     ac_prev=sharedstatedir ;;
552   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
553   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
554   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
555   | --sha=* | --sh=*)
556     sharedstatedir=$ac_optarg ;;
557
558   -site | --site | --sit)
559     ac_prev=site ;;
560   -site=* | --site=* | --sit=*)
561     site=$ac_optarg ;;
562
563   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
564     ac_prev=srcdir ;;
565   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
566     srcdir=$ac_optarg ;;
567
568   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
569   | --syscon | --sysco | --sysc | --sys | --sy)
570     ac_prev=sysconfdir ;;
571   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
572   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
573     sysconfdir=$ac_optarg ;;
574
575   -target | --target | --targe | --targ | --tar | --ta | --t)
576     ac_prev=target_alias ;;
577   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
578     target_alias=$ac_optarg ;;
579
580   -v | -verbose | --verbose | --verbos | --verbo | --verb)
581     verbose=yes ;;
582
583   -version | --version | --versio | --versi | --vers | -V)
584     ac_init_version=: ;;
585
586   -with-* | --with-*)
587     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
588     # Reject names that are not valid shell variable names.
589     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
590       { echo "$as_me: error: invalid package name: $ac_package" >&2
591    { (exit 1); exit 1; }; }
592     ac_package=`echo $ac_package| sed 's/-/_/g'`
593     case $ac_option in
594       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
595       *) ac_optarg=yes ;;
596     esac
597     eval "with_$ac_package='$ac_optarg'" ;;
598
599   -without-* | --without-*)
600     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
601     # Reject names that are not valid shell variable names.
602     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
603       { echo "$as_me: error: invalid package name: $ac_package" >&2
604    { (exit 1); exit 1; }; }
605     ac_package=`echo $ac_package | sed 's/-/_/g'`
606     eval "with_$ac_package=no" ;;
607
608   --x)
609     # Obsolete; use --with-x.
610     with_x=yes ;;
611
612   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
613   | --x-incl | --x-inc | --x-in | --x-i)
614     ac_prev=x_includes ;;
615   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
616   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
617     x_includes=$ac_optarg ;;
618
619   -x-libraries | --x-libraries | --x-librarie | --x-librari \
620   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
621     ac_prev=x_libraries ;;
622   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
623   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
624     x_libraries=$ac_optarg ;;
625
626   -*) { echo "$as_me: error: unrecognized option: $ac_option
627 Try \`$0 --help' for more information." >&2
628    { (exit 1); exit 1; }; }
629     ;;
630
631   *=*)
632     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
633     # Reject names that are not valid shell variable names.
634     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
635       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
636    { (exit 1); exit 1; }; }
637     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
638     eval "$ac_envvar='$ac_optarg'"
639     export $ac_envvar ;;
640
641   *)
642     # FIXME: should be removed in autoconf 3.0.
643     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
644     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
645       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
646     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
647     ;;
648
649   esac
650 done
651
652 if test -n "$ac_prev"; then
653   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
654   { echo "$as_me: error: missing argument to $ac_option" >&2
655    { (exit 1); exit 1; }; }
656 fi
657
658 # Be sure to have absolute paths.
659 for ac_var in exec_prefix prefix
660 do
661   eval ac_val=$`echo $ac_var`
662   case $ac_val in
663     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
664     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665    { (exit 1); exit 1; }; };;
666   esac
667 done
668
669 # Be sure to have absolute paths.
670 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671               localstatedir libdir includedir oldincludedir infodir mandir
672 do
673   eval ac_val=$`echo $ac_var`
674   case $ac_val in
675     [\\/$]* | ?:[\\/]* ) ;;
676     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677    { (exit 1); exit 1; }; };;
678   esac
679 done
680
681 # There might be people who depend on the old broken behavior: `$host'
682 # used to hold the argument of --host etc.
683 # FIXME: To remove some day.
684 build=$build_alias
685 host=$host_alias
686 target=$target_alias
687
688 # FIXME: To remove some day.
689 if test "x$host_alias" != x; then
690   if test "x$build_alias" = x; then
691     cross_compiling=maybe
692     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
693     If a cross compiler is detected then cross compile mode will be used." >&2
694   elif test "x$build_alias" != "x$host_alias"; then
695     cross_compiling=yes
696   fi
697 fi
698
699 ac_tool_prefix=
700 test -n "$host_alias" && ac_tool_prefix=$host_alias-
701
702 test "$silent" = yes && exec 6>/dev/null
703
704
705 # Find the source files, if location was not specified.
706 if test -z "$srcdir"; then
707   ac_srcdir_defaulted=yes
708   # Try the directory containing this script, then its parent.
709   ac_confdir=`(dirname "$0") 2>/dev/null ||
710 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
711          X"$0" : 'X\(//\)[^/]' \| \
712          X"$0" : 'X\(//\)$' \| \
713          X"$0" : 'X\(/\)' \| \
714          .     : '\(.\)' 2>/dev/null ||
715 echo X"$0" |
716     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
718           /^X\(\/\/\)$/{ s//\1/; q; }
719           /^X\(\/\).*/{ s//\1/; q; }
720           s/.*/./; q'`
721   srcdir=$ac_confdir
722   if test ! -r $srcdir/$ac_unique_file; then
723     srcdir=..
724   fi
725 else
726   ac_srcdir_defaulted=no
727 fi
728 if test ! -r $srcdir/$ac_unique_file; then
729   if test "$ac_srcdir_defaulted" = yes; then
730     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731    { (exit 1); exit 1; }; }
732   else
733     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734    { (exit 1); exit 1; }; }
735   fi
736 fi
737 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
738   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
739    { (exit 1); exit 1; }; }
740 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741 ac_env_build_alias_set=${build_alias+set}
742 ac_env_build_alias_value=$build_alias
743 ac_cv_env_build_alias_set=${build_alias+set}
744 ac_cv_env_build_alias_value=$build_alias
745 ac_env_host_alias_set=${host_alias+set}
746 ac_env_host_alias_value=$host_alias
747 ac_cv_env_host_alias_set=${host_alias+set}
748 ac_cv_env_host_alias_value=$host_alias
749 ac_env_target_alias_set=${target_alias+set}
750 ac_env_target_alias_value=$target_alias
751 ac_cv_env_target_alias_set=${target_alias+set}
752 ac_cv_env_target_alias_value=$target_alias
753 ac_env_CPP_set=${CPP+set}
754 ac_env_CPP_value=$CPP
755 ac_cv_env_CPP_set=${CPP+set}
756 ac_cv_env_CPP_value=$CPP
757 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
758 ac_env_CPPFLAGS_value=$CPPFLAGS
759 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
760 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
761
762 #
763 # Report the --help message.
764 #
765 if test "$ac_init_help" = "long"; then
766   # Omit some internal or obsolete options to make the list less imposing.
767   # This message is too long to be a string in the A/UX 3.1 sh.
768   cat <<_ACEOF
769 \`configure' configures this package to adapt to many kinds of systems.
770
771 Usage: $0 [OPTION]... [VAR=VALUE]...
772
773 To assign environment variables (e.g., CC, CFLAGS...), specify them as
774 VAR=VALUE.  See below for descriptions of some of the useful variables.
775
776 Defaults for the options are specified in brackets.
777
778 Configuration:
779   -h, --help              display this help and exit
780       --help=short        display options specific to this package
781       --help=recursive    display the short help of all the included packages
782   -V, --version           display version information and exit
783   -q, --quiet, --silent   do not print \`checking...' messages
784       --cache-file=FILE   cache test results in FILE [disabled]
785   -C, --config-cache      alias for \`--cache-file=config.cache'
786   -n, --no-create         do not create output files
787       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
788
789 _ACEOF
790
791   cat <<_ACEOF
792 Installation directories:
793   --prefix=PREFIX         install architecture-independent files in PREFIX
794                           [$ac_default_prefix]
795   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
796                           [PREFIX]
797
798 By default, \`make install' will install all the files in
799 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
800 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
801 for instance \`--prefix=\$HOME'.
802
803 For better control, use the options below.
804
805 Fine tuning of the installation directories:
806   --bindir=DIR           user executables [EPREFIX/bin]
807   --sbindir=DIR          system admin executables [EPREFIX/sbin]
808   --libexecdir=DIR       program executables [EPREFIX/libexec]
809   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
810   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
811   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
812   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
813   --libdir=DIR           object code libraries [EPREFIX/lib]
814   --includedir=DIR       C header files [PREFIX/include]
815   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
816   --infodir=DIR          info documentation [PREFIX/info]
817   --mandir=DIR           man documentation [PREFIX/man]
818 _ACEOF
819
820   cat <<\_ACEOF
821
822 System types:
823   --build=BUILD     configure for building on BUILD [guessed]
824   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
825   --target=TARGET   configure for building compilers for TARGET [HOST]
826 _ACEOF
827 fi
828
829 if test -n "$ac_init_help"; then
830
831   cat <<\_ACEOF
832
833 Optional Features:
834   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
835   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
836   --enable-multilib       build hella library versions (default)
837   --enable-version-specific-runtime-libs    Specify that runtime libraries should be installed in a compiler-specific directory
838   --enable-objc-gc       enable the use of Boehm's garbage collector with
839                           the GNU Objective-C runtime.
840   --enable-shared=PKGS  build shared libraries default=yes
841   --enable-static=PKGS  build static libraries default=yes
842   --enable-fast-install=PKGS  optimize for fast installation default=yes
843   --disable-libtool-lock  avoid locking (might break parallel builds)
844
845 Optional Packages:
846   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
847   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
848   --with-target-subdir=SUBDIR
849                            configuring in a subdirectory
850   --with-cross-host=HOST  configuring with a cross compiler
851   --with-gnu-ld           assume the C compiler uses GNU ld default=no
852   --with-pic              try to use only PIC/non-PIC objects default=use both
853
854 Some influential environment variables:
855   CC          C compiler command
856   CFLAGS      C compiler flags
857   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
858               nonstandard directory <lib dir>
859   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
860               headers in a nonstandard directory <include dir>
861   CPP         C preprocessor
862
863 Use these variables to override the choices made by `configure' or to help
864 it to find libraries and programs with nonstandard names/locations.
865
866 _ACEOF
867 fi
868
869 if test "$ac_init_help" = "recursive"; then
870   # If there are subdirs, report their specific --help.
871   ac_popdir=`pwd`
872   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
873     test -d $ac_dir || continue
874     ac_builddir=.
875
876 if test "$ac_dir" != .; then
877   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
878   # A "../" for each directory in $ac_dir_suffix.
879   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
880 else
881   ac_dir_suffix= ac_top_builddir=
882 fi
883
884 case $srcdir in
885   .)  # No --srcdir option.  We are building in place.
886     ac_srcdir=.
887     if test -z "$ac_top_builddir"; then
888        ac_top_srcdir=.
889     else
890        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
891     fi ;;
892   [\\/]* | ?:[\\/]* )  # Absolute path.
893     ac_srcdir=$srcdir$ac_dir_suffix;
894     ac_top_srcdir=$srcdir ;;
895   *) # Relative path.
896     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
897     ac_top_srcdir=$ac_top_builddir$srcdir ;;
898 esac
899
900 # Do not use `cd foo && pwd` to compute absolute paths, because
901 # the directories may not exist.
902 case `pwd` in
903 .) ac_abs_builddir="$ac_dir";;
904 *)
905   case "$ac_dir" in
906   .) ac_abs_builddir=`pwd`;;
907   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
908   *) ac_abs_builddir=`pwd`/"$ac_dir";;
909   esac;;
910 esac
911 case $ac_abs_builddir in
912 .) ac_abs_top_builddir=${ac_top_builddir}.;;
913 *)
914   case ${ac_top_builddir}. in
915   .) ac_abs_top_builddir=$ac_abs_builddir;;
916   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
917   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
918   esac;;
919 esac
920 case $ac_abs_builddir in
921 .) ac_abs_srcdir=$ac_srcdir;;
922 *)
923   case $ac_srcdir in
924   .) ac_abs_srcdir=$ac_abs_builddir;;
925   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
926   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
927   esac;;
928 esac
929 case $ac_abs_builddir in
930 .) ac_abs_top_srcdir=$ac_top_srcdir;;
931 *)
932   case $ac_top_srcdir in
933   .) ac_abs_top_srcdir=$ac_abs_builddir;;
934   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
935   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
936   esac;;
937 esac
938
939     cd $ac_dir
940     # Check for guested configure; otherwise get Cygnus style configure.
941     if test -f $ac_srcdir/configure.gnu; then
942       echo
943       $SHELL $ac_srcdir/configure.gnu  --help=recursive
944     elif test -f $ac_srcdir/configure; then
945       echo
946       $SHELL $ac_srcdir/configure  --help=recursive
947     elif test -f $ac_srcdir/configure.ac ||
948            test -f $ac_srcdir/configure.in; then
949       echo
950       $ac_configure --help
951     else
952       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
953     fi
954     cd $ac_popdir
955   done
956 fi
957
958 test -n "$ac_init_help" && exit 0
959 if $ac_init_version; then
960   cat <<\_ACEOF
961
962 Copyright (C) 2003 Free Software Foundation, Inc.
963 This configure script is free software; the Free Software Foundation
964 gives unlimited permission to copy, distribute and modify it.
965 _ACEOF
966   exit 0
967 fi
968 exec 5>config.log
969 cat >&5 <<_ACEOF
970 This file contains any messages produced by compilers while
971 running configure, to aid debugging if configure makes a mistake.
972
973 It was created by $as_me, which was
974 generated by GNU Autoconf 2.59.  Invocation command line was
975
976   $ $0 $@
977
978 _ACEOF
979 {
980 cat <<_ASUNAME
981 ## --------- ##
982 ## Platform. ##
983 ## --------- ##
984
985 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
986 uname -m = `(uname -m) 2>/dev/null || echo unknown`
987 uname -r = `(uname -r) 2>/dev/null || echo unknown`
988 uname -s = `(uname -s) 2>/dev/null || echo unknown`
989 uname -v = `(uname -v) 2>/dev/null || echo unknown`
990
991 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
992 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
993
994 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
995 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
996 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
997 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
998 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
999 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1000 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1001
1002 _ASUNAME
1003
1004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1005 for as_dir in $PATH
1006 do
1007   IFS=$as_save_IFS
1008   test -z "$as_dir" && as_dir=.
1009   echo "PATH: $as_dir"
1010 done
1011
1012 } >&5
1013
1014 cat >&5 <<_ACEOF
1015
1016
1017 ## ----------- ##
1018 ## Core tests. ##
1019 ## ----------- ##
1020
1021 _ACEOF
1022
1023
1024 # Keep a trace of the command line.
1025 # Strip out --no-create and --no-recursion so they do not pile up.
1026 # Strip out --silent because we don't want to record it for future runs.
1027 # Also quote any args containing shell meta-characters.
1028 # Make two passes to allow for proper duplicate-argument suppression.
1029 ac_configure_args=
1030 ac_configure_args0=
1031 ac_configure_args1=
1032 ac_sep=
1033 ac_must_keep_next=false
1034 for ac_pass in 1 2
1035 do
1036   for ac_arg
1037   do
1038     case $ac_arg in
1039     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1040     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1041     | -silent | --silent | --silen | --sile | --sil)
1042       continue ;;
1043     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1044       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1045     esac
1046     case $ac_pass in
1047     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1048     2)
1049       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1050       if test $ac_must_keep_next = true; then
1051         ac_must_keep_next=false # Got value, back to normal.
1052       else
1053         case $ac_arg in
1054           *=* | --config-cache | -C | -disable-* | --disable-* \
1055           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1056           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1057           | -with-* | --with-* | -without-* | --without-* | --x)
1058             case "$ac_configure_args0 " in
1059               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1060             esac
1061             ;;
1062           -* ) ac_must_keep_next=true ;;
1063         esac
1064       fi
1065       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1066       # Get rid of the leading space.
1067       ac_sep=" "
1068       ;;
1069     esac
1070   done
1071 done
1072 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1073 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1074
1075 # When interrupted or exit'd, cleanup temporary files, and complete
1076 # config.log.  We remove comments because anyway the quotes in there
1077 # would cause problems or look ugly.
1078 # WARNING: Be sure not to use single quotes in there, as some shells,
1079 # such as our DU 5.0 friend, will then `close' the trap.
1080 trap 'exit_status=$?
1081   # Save into config.log some information that might help in debugging.
1082   {
1083     echo
1084
1085     cat <<\_ASBOX
1086 ## ---------------- ##
1087 ## Cache variables. ##
1088 ## ---------------- ##
1089 _ASBOX
1090     echo
1091     # The following way of writing the cache mishandles newlines in values,
1092 {
1093   (set) 2>&1 |
1094     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1095     *ac_space=\ *)
1096       sed -n \
1097         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1098           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1099       ;;
1100     *)
1101       sed -n \
1102         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1103       ;;
1104     esac;
1105 }
1106     echo
1107
1108     cat <<\_ASBOX
1109 ## ----------------- ##
1110 ## Output variables. ##
1111 ## ----------------- ##
1112 _ASBOX
1113     echo
1114     for ac_var in $ac_subst_vars
1115     do
1116       eval ac_val=$`echo $ac_var`
1117       echo "$ac_var='"'"'$ac_val'"'"'"
1118     done | sort
1119     echo
1120
1121     if test -n "$ac_subst_files"; then
1122       cat <<\_ASBOX
1123 ## ------------- ##
1124 ## Output files. ##
1125 ## ------------- ##
1126 _ASBOX
1127       echo
1128       for ac_var in $ac_subst_files
1129       do
1130         eval ac_val=$`echo $ac_var`
1131         echo "$ac_var='"'"'$ac_val'"'"'"
1132       done | sort
1133       echo
1134     fi
1135
1136     if test -s confdefs.h; then
1137       cat <<\_ASBOX
1138 ## ----------- ##
1139 ## confdefs.h. ##
1140 ## ----------- ##
1141 _ASBOX
1142       echo
1143       sed "/^$/d" confdefs.h | sort
1144       echo
1145     fi
1146     test "$ac_signal" != 0 &&
1147       echo "$as_me: caught signal $ac_signal"
1148     echo "$as_me: exit $exit_status"
1149   } >&5
1150   rm -f core *.core &&
1151   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1152     exit $exit_status
1153      ' 0
1154 for ac_signal in 1 2 13 15; do
1155   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1156 done
1157 ac_signal=0
1158
1159 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1160 rm -rf conftest* confdefs.h
1161 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1162 echo >confdefs.h
1163
1164 # Predefined preprocessor variables.
1165
1166 cat >>confdefs.h <<_ACEOF
1167 #define PACKAGE_NAME "$PACKAGE_NAME"
1168 _ACEOF
1169
1170
1171 cat >>confdefs.h <<_ACEOF
1172 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1173 _ACEOF
1174
1175
1176 cat >>confdefs.h <<_ACEOF
1177 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1178 _ACEOF
1179
1180
1181 cat >>confdefs.h <<_ACEOF
1182 #define PACKAGE_STRING "$PACKAGE_STRING"
1183 _ACEOF
1184
1185
1186 cat >>confdefs.h <<_ACEOF
1187 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1188 _ACEOF
1189
1190
1191 # Let the site file select an alternate cache file if it wants to.
1192 # Prefer explicitly selected file to automatically selected ones.
1193 if test -z "$CONFIG_SITE"; then
1194   if test "x$prefix" != xNONE; then
1195     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1196   else
1197     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1198   fi
1199 fi
1200 for ac_site_file in $CONFIG_SITE; do
1201   if test -r "$ac_site_file"; then
1202     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1203 echo "$as_me: loading site script $ac_site_file" >&6;}
1204     sed 's/^/| /' "$ac_site_file" >&5
1205     . "$ac_site_file"
1206   fi
1207 done
1208
1209 if test -r "$cache_file"; then
1210   # Some versions of bash will fail to source /dev/null (special
1211   # files actually), so we avoid doing that.
1212   if test -f "$cache_file"; then
1213     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1214 echo "$as_me: loading cache $cache_file" >&6;}
1215     case $cache_file in
1216       [\\/]* | ?:[\\/]* ) . $cache_file;;
1217       *)                      . ./$cache_file;;
1218     esac
1219   fi
1220 else
1221   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1222 echo "$as_me: creating cache $cache_file" >&6;}
1223   >$cache_file
1224 fi
1225
1226 # Check that the precious variables saved in the cache have kept the same
1227 # value.
1228 ac_cache_corrupted=false
1229 for ac_var in `(set) 2>&1 |
1230                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1231   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1232   eval ac_new_set=\$ac_env_${ac_var}_set
1233   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1234   eval ac_new_val="\$ac_env_${ac_var}_value"
1235   case $ac_old_set,$ac_new_set in
1236     set,)
1237       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1238 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1239       ac_cache_corrupted=: ;;
1240     ,set)
1241       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1242 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1243       ac_cache_corrupted=: ;;
1244     ,);;
1245     *)
1246       if test "x$ac_old_val" != "x$ac_new_val"; then
1247         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1248 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1249         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1250 echo "$as_me:   former value:  $ac_old_val" >&2;}
1251         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1252 echo "$as_me:   current value: $ac_new_val" >&2;}
1253         ac_cache_corrupted=:
1254       fi;;
1255   esac
1256   # Pass precious variables to config.status.
1257   if test "$ac_new_set" = set; then
1258     case $ac_new_val in
1259     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1260       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1261     *) ac_arg=$ac_var=$ac_new_val ;;
1262     esac
1263     case " $ac_configure_args " in
1264       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1265       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1266     esac
1267   fi
1268 done
1269 if $ac_cache_corrupted; then
1270   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1271 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1272   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1273 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1274    { (exit 1); exit 1; }; }
1275 fi
1276
1277 ac_ext=c
1278 ac_cpp='$CPP $CPPFLAGS'
1279 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1280 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1281 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303 # We need the following definitions because AC_PROG_LIBTOOL relies on them
1304 PACKAGE=libobjc
1305 # Version is pulled out to make it a bit easier to change using sed.
1306 VERSION=1:0:0
1307
1308
1309 # This works around the fact that libtool configuration may change LD
1310 # for this particular configuration, but some shells, instead of
1311 # keeping the changes in LD private, export them just because LD is
1312 # exported.
1313 ORIGINAL_LD_FOR_MULTILIBS=$LD
1314
1315 # -------
1316 # Options
1317 # -------
1318
1319 # Default to --enable-multilib
1320 # Check whether --enable-multilib or --disable-multilib was given.
1321 if test "${enable_multilib+set}" = set; then
1322   enableval="$enable_multilib"
1323   case "${enableval}" in
1324     yes) multilib=yes ;;
1325     no)  multilib=no ;;
1326     *)   { { echo "$as_me:$LINENO: error: bad value ${enableval} for multilib option" >&5
1327 echo "$as_me: error: bad value ${enableval} for multilib option" >&2;}
1328    { (exit 1); exit 1; }; } ;;
1329    esac
1330 else
1331   multilib=yes
1332 fi;
1333
1334 # We use these options to decide which functions to include.
1335
1336 # Check whether --with-target-subdir or --without-target-subdir was given.
1337 if test "${with_target_subdir+set}" = set; then
1338   withval="$with_target_subdir"
1339
1340 fi;
1341
1342 # Check whether --with-cross-host or --without-cross-host was given.
1343 if test "${with_cross_host+set}" = set; then
1344   withval="$with_cross_host"
1345
1346 fi;
1347
1348 echo "$as_me:$LINENO: checking for --enable-version-specific-runtime-libs" >&5
1349 echo $ECHO_N "checking for --enable-version-specific-runtime-libs... $ECHO_C" >&6
1350 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
1351 if test "${enable_version_specific_runtime_libs+set}" = set; then
1352   enableval="$enable_version_specific_runtime_libs"
1353   case "$enableval" in
1354  yes) version_specific_libs=yes ;;
1355  no)  version_specific_libs=no ;;
1356  *)   { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable version-specific libs" >&5
1357 echo "$as_me: error: Unknown argument to enable/disable version-specific libs" >&2;}
1358    { (exit 1); exit 1; }; };;
1359  esac
1360 else
1361   version_specific_libs=no
1362 fi;
1363 echo "$as_me:$LINENO: result: $version_specific_libs" >&5
1364 echo "${ECHO_T}$version_specific_libs" >&6
1365
1366 # Check whether --enable-objc-gc or --disable-objc-gc was given.
1367 if test "${enable_objc_gc+set}" = set; then
1368   enableval="$enable_objc_gc"
1369   case $enable_objc_gc in
1370   no) OBJC_BOEHM_GC='' ;;
1371   *) OBJC_BOEHM_GC=libobjc_gc.la ;;
1372 esac
1373 else
1374   OBJC_BOEHM_GC=''
1375 fi;
1376
1377
1378 # -----------
1379 # Directories
1380 # -----------
1381
1382 # When building with srcdir == objdir, links to the source files will
1383 # be created in directories within the target_subdir.  We have to
1384 # adjust toplevel_srcdir accordingly, so that configure finds
1385 # install-sh and other auxiliary files that live in the top-level
1386 # source directory.
1387 if test "${srcdir}" = "."; then
1388   if test -z "${with_target_subdir}"; then
1389     toprel=".."
1390   else
1391     if test "${with_target_subdir}" != "."; then
1392       toprel="${with_multisrctop}../.."
1393     else
1394       toprel="${with_multisrctop}.."
1395     fi
1396   fi
1397 else
1398   toprel=".."
1399 fi
1400 ac_aux_dir=
1401 for ac_dir in ${srcdir}/$toprel $srcdir/${srcdir}/$toprel; do
1402   if test -f $ac_dir/install-sh; then
1403     ac_aux_dir=$ac_dir
1404     ac_install_sh="$ac_aux_dir/install-sh -c"
1405     break
1406   elif test -f $ac_dir/install.sh; then
1407     ac_aux_dir=$ac_dir
1408     ac_install_sh="$ac_aux_dir/install.sh -c"
1409     break
1410   elif test -f $ac_dir/shtool; then
1411     ac_aux_dir=$ac_dir
1412     ac_install_sh="$ac_aux_dir/shtool install -c"
1413     break
1414   fi
1415 done
1416 if test -z "$ac_aux_dir"; then
1417   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ${srcdir}/$toprel $srcdir/${srcdir}/$toprel" >&5
1418 echo "$as_me: error: cannot find install-sh or install.sh in ${srcdir}/$toprel $srcdir/${srcdir}/$toprel" >&2;}
1419    { (exit 1); exit 1; }; }
1420 fi
1421 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1422 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1423 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1424
1425 toplevel_srcdir=\${srcdir}/$toprel
1426
1427
1428 # Make sure we can run config.sub.
1429 $ac_config_sub sun4 >/dev/null 2>&1 ||
1430   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1431 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1432    { (exit 1); exit 1; }; }
1433
1434 echo "$as_me:$LINENO: checking build system type" >&5
1435 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1436 if test "${ac_cv_build+set}" = set; then
1437   echo $ECHO_N "(cached) $ECHO_C" >&6
1438 else
1439   ac_cv_build_alias=$build_alias
1440 test -z "$ac_cv_build_alias" &&
1441   ac_cv_build_alias=`$ac_config_guess`
1442 test -z "$ac_cv_build_alias" &&
1443   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1444 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1445    { (exit 1); exit 1; }; }
1446 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1447   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1448 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1449    { (exit 1); exit 1; }; }
1450
1451 fi
1452 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1453 echo "${ECHO_T}$ac_cv_build" >&6
1454 build=$ac_cv_build
1455 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1456 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1457 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1458
1459
1460 echo "$as_me:$LINENO: checking host system type" >&5
1461 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1462 if test "${ac_cv_host+set}" = set; then
1463   echo $ECHO_N "(cached) $ECHO_C" >&6
1464 else
1465   ac_cv_host_alias=$host_alias
1466 test -z "$ac_cv_host_alias" &&
1467   ac_cv_host_alias=$ac_cv_build_alias
1468 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1469   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1470 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1471    { (exit 1); exit 1; }; }
1472
1473 fi
1474 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1475 echo "${ECHO_T}$ac_cv_host" >&6
1476 host=$ac_cv_host
1477 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1478 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1479 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1480
1481
1482 echo "$as_me:$LINENO: checking target system type" >&5
1483 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1484 if test "${ac_cv_target+set}" = set; then
1485   echo $ECHO_N "(cached) $ECHO_C" >&6
1486 else
1487   ac_cv_target_alias=$target_alias
1488 test "x$ac_cv_target_alias" = "x" &&
1489   ac_cv_target_alias=$ac_cv_host_alias
1490 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1491   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1492 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1493    { (exit 1); exit 1; }; }
1494
1495 fi
1496 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1497 echo "${ECHO_T}$ac_cv_target" >&6
1498 target=$ac_cv_target
1499 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1500 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1501 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1502
1503
1504 # The aliases save the names the user supplied, while $host etc.
1505 # will get canonicalized.
1506 test -n "$target_alias" &&
1507   test "$program_prefix$program_suffix$program_transform_name" = \
1508     NONENONEs,x,x, &&
1509   program_prefix=${target_alias}-
1510  case ${build_alias} in
1511   "") build_noncanonical=${build} ;;
1512   *) build_noncanonical=${build_alias} ;;
1513 esac
1514
1515  case ${host_alias} in
1516   "") host_noncanonical=${build_noncanonical} ;;
1517   *) host_noncanonical=${host_alias} ;;
1518 esac
1519
1520  case ${target_alias} in
1521   "") target_noncanonical=${host_noncanonical} ;;
1522   *) target_noncanonical=${target_alias} ;;
1523 esac
1524
1525
1526
1527 # Export source directory.
1528 # These need to be absolute paths, yet at the same time need to
1529 # canonicalize only relative paths, because then amd will not unmount
1530 # drives. Thus the use of PWDCMD: set it to 'pawd' or 'amq -w' if using amd.
1531 case $srcdir in
1532   \\/$* | ?:\\/*) glibcpp_srcdir=${srcdir} ;;
1533   *) glibcpp_srcdir=`cd "$srcdir" && ${PWDCMD-pwd} || echo "$srcdir"` ;;
1534 esac
1535
1536
1537 # Process the option "--enable-version-specific-runtime-libs"
1538 gcc_version_trigger=${srcdir}/../gcc/version.c
1539 gcc_version_full=`grep version_string ${gcc_version_trigger} | sed -e 's/.*\"\([^ \"]*\)[ \"].*/\1/'`
1540 gcc_version=`echo ${gcc_version_full} | sed -e 's/\(^ *\) .*/\1/'`
1541
1542
1543 # Calculate toolexeclibdir
1544 # Also toolexecdir, though it's only used in toolexeclibdir
1545 case ${version_specific_libs} in
1546   yes)
1547     # Need the gcc compiler version to know where to install libraries
1548     # and header files if --enable-version-specific-runtime-libs option
1549     # is selected.
1550     toolexecdir='$(libdir)/gcc/$(target_noncanonical)'
1551     toolexeclibdir='$(toolexecdir)/'${gcc_version}'$(MULTISUBDIR)'
1552     ;;
1553   no)
1554     if test -n "$with_cross_host" &&
1555        test x"$with_cross_host" != x"no"; then
1556       # Install a library built with a cross compiler in tooldir, not libdir.
1557       toolexecdir='$(exec_prefix)/$(target_noncanonical)'
1558       toolexeclibdir='$(toolexecdir)/lib'
1559     else
1560       toolexecdir='$(libdir)/gcc-lib/$(target_noncanonical)'
1561       toolexeclibdir='$(libdir)'
1562     fi
1563     multi_os_directory=`$CC -print-multi-os-directory`
1564     case $multi_os_directory in
1565       .) ;; # Avoid trailing /.
1566       *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
1567     esac
1568     ;;
1569 esac
1570
1571
1572
1573 # Figure out if we want to name the include directory and the
1574 #  library name changes differently.
1575 includedirname=include
1576 libext=
1577 case "${host}" in
1578   *-darwin*)
1579     # Darwin is the only target so far that needs a different include directory.
1580     includedirname=include-gnu-runtime
1581     libext=-gnu
1582     ;;
1583 esac
1584
1585
1586
1587 # --------
1588 # Programs
1589 # --------
1590
1591
1592
1593 # We must force CC to /not/ be a precious variable; otherwise
1594 # the wrong, non-multilib-adjusted value will be used in multilibs.
1595 # As a side effect, we have to subst CFLAGS ourselves.
1596
1597
1598 ac_ext=c
1599 ac_cpp='$CPP $CPPFLAGS'
1600 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1601 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1602 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1603 if test -n "$ac_tool_prefix"; then
1604   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1605 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1606 echo "$as_me:$LINENO: checking for $ac_word" >&5
1607 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1608 if test "${ac_cv_prog_CC+set}" = set; then
1609   echo $ECHO_N "(cached) $ECHO_C" >&6
1610 else
1611   if test -n "$CC"; then
1612   ac_cv_prog_CC="$CC" # Let the user override the test.
1613 else
1614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1615 for as_dir in $PATH
1616 do
1617   IFS=$as_save_IFS
1618   test -z "$as_dir" && as_dir=.
1619   for ac_exec_ext in '' $ac_executable_extensions; do
1620   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1621     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1622     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1623     break 2
1624   fi
1625 done
1626 done
1627
1628 fi
1629 fi
1630 CC=$ac_cv_prog_CC
1631 if test -n "$CC"; then
1632   echo "$as_me:$LINENO: result: $CC" >&5
1633 echo "${ECHO_T}$CC" >&6
1634 else
1635   echo "$as_me:$LINENO: result: no" >&5
1636 echo "${ECHO_T}no" >&6
1637 fi
1638
1639 fi
1640 if test -z "$ac_cv_prog_CC"; then
1641   ac_ct_CC=$CC
1642   # Extract the first word of "gcc", so it can be a program name with args.
1643 set dummy gcc; ac_word=$2
1644 echo "$as_me:$LINENO: checking for $ac_word" >&5
1645 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1646 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1647   echo $ECHO_N "(cached) $ECHO_C" >&6
1648 else
1649   if test -n "$ac_ct_CC"; then
1650   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1651 else
1652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1653 for as_dir in $PATH
1654 do
1655   IFS=$as_save_IFS
1656   test -z "$as_dir" && as_dir=.
1657   for ac_exec_ext in '' $ac_executable_extensions; do
1658   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1659     ac_cv_prog_ac_ct_CC="gcc"
1660     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1661     break 2
1662   fi
1663 done
1664 done
1665
1666 fi
1667 fi
1668 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1669 if test -n "$ac_ct_CC"; then
1670   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1671 echo "${ECHO_T}$ac_ct_CC" >&6
1672 else
1673   echo "$as_me:$LINENO: result: no" >&5
1674 echo "${ECHO_T}no" >&6
1675 fi
1676
1677   CC=$ac_ct_CC
1678 else
1679   CC="$ac_cv_prog_CC"
1680 fi
1681
1682 if test -z "$CC"; then
1683   if test -n "$ac_tool_prefix"; then
1684   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1685 set dummy ${ac_tool_prefix}cc; ac_word=$2
1686 echo "$as_me:$LINENO: checking for $ac_word" >&5
1687 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1688 if test "${ac_cv_prog_CC+set}" = set; then
1689   echo $ECHO_N "(cached) $ECHO_C" >&6
1690 else
1691   if test -n "$CC"; then
1692   ac_cv_prog_CC="$CC" # Let the user override the test.
1693 else
1694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1695 for as_dir in $PATH
1696 do
1697   IFS=$as_save_IFS
1698   test -z "$as_dir" && as_dir=.
1699   for ac_exec_ext in '' $ac_executable_extensions; do
1700   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1701     ac_cv_prog_CC="${ac_tool_prefix}cc"
1702     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1703     break 2
1704   fi
1705 done
1706 done
1707
1708 fi
1709 fi
1710 CC=$ac_cv_prog_CC
1711 if test -n "$CC"; then
1712   echo "$as_me:$LINENO: result: $CC" >&5
1713 echo "${ECHO_T}$CC" >&6
1714 else
1715   echo "$as_me:$LINENO: result: no" >&5
1716 echo "${ECHO_T}no" >&6
1717 fi
1718
1719 fi
1720 if test -z "$ac_cv_prog_CC"; then
1721   ac_ct_CC=$CC
1722   # Extract the first word of "cc", so it can be a program name with args.
1723 set dummy cc; ac_word=$2
1724 echo "$as_me:$LINENO: checking for $ac_word" >&5
1725 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1726 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1727   echo $ECHO_N "(cached) $ECHO_C" >&6
1728 else
1729   if test -n "$ac_ct_CC"; then
1730   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1731 else
1732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1733 for as_dir in $PATH
1734 do
1735   IFS=$as_save_IFS
1736   test -z "$as_dir" && as_dir=.
1737   for ac_exec_ext in '' $ac_executable_extensions; do
1738   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1739     ac_cv_prog_ac_ct_CC="cc"
1740     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1741     break 2
1742   fi
1743 done
1744 done
1745
1746 fi
1747 fi
1748 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1749 if test -n "$ac_ct_CC"; then
1750   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1751 echo "${ECHO_T}$ac_ct_CC" >&6
1752 else
1753   echo "$as_me:$LINENO: result: no" >&5
1754 echo "${ECHO_T}no" >&6
1755 fi
1756
1757   CC=$ac_ct_CC
1758 else
1759   CC="$ac_cv_prog_CC"
1760 fi
1761
1762 fi
1763 if test -z "$CC"; then
1764   # Extract the first word of "cc", so it can be a program name with args.
1765 set dummy cc; ac_word=$2
1766 echo "$as_me:$LINENO: checking for $ac_word" >&5
1767 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1768 if test "${ac_cv_prog_CC+set}" = set; then
1769   echo $ECHO_N "(cached) $ECHO_C" >&6
1770 else
1771   if test -n "$CC"; then
1772   ac_cv_prog_CC="$CC" # Let the user override the test.
1773 else
1774   ac_prog_rejected=no
1775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1776 for as_dir in $PATH
1777 do
1778   IFS=$as_save_IFS
1779   test -z "$as_dir" && as_dir=.
1780   for ac_exec_ext in '' $ac_executable_extensions; do
1781   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1782     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1783        ac_prog_rejected=yes
1784        continue
1785      fi
1786     ac_cv_prog_CC="cc"
1787     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1788     break 2
1789   fi
1790 done
1791 done
1792
1793 if test $ac_prog_rejected = yes; then
1794   # We found a bogon in the path, so make sure we never use it.
1795   set dummy $ac_cv_prog_CC
1796   shift
1797   if test $# != 0; then
1798     # We chose a different compiler from the bogus one.
1799     # However, it has the same basename, so the bogon will be chosen
1800     # first if we set CC to just the basename; use the full file name.
1801     shift
1802     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1803   fi
1804 fi
1805 fi
1806 fi
1807 CC=$ac_cv_prog_CC
1808 if test -n "$CC"; then
1809   echo "$as_me:$LINENO: result: $CC" >&5
1810 echo "${ECHO_T}$CC" >&6
1811 else
1812   echo "$as_me:$LINENO: result: no" >&5
1813 echo "${ECHO_T}no" >&6
1814 fi
1815
1816 fi
1817 if test -z "$CC"; then
1818   if test -n "$ac_tool_prefix"; then
1819   for ac_prog in cl
1820   do
1821     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1822 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1823 echo "$as_me:$LINENO: checking for $ac_word" >&5
1824 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1825 if test "${ac_cv_prog_CC+set}" = set; then
1826   echo $ECHO_N "(cached) $ECHO_C" >&6
1827 else
1828   if test -n "$CC"; then
1829   ac_cv_prog_CC="$CC" # Let the user override the test.
1830 else
1831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1832 for as_dir in $PATH
1833 do
1834   IFS=$as_save_IFS
1835   test -z "$as_dir" && as_dir=.
1836   for ac_exec_ext in '' $ac_executable_extensions; do
1837   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1838     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1839     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1840     break 2
1841   fi
1842 done
1843 done
1844
1845 fi
1846 fi
1847 CC=$ac_cv_prog_CC
1848 if test -n "$CC"; then
1849   echo "$as_me:$LINENO: result: $CC" >&5
1850 echo "${ECHO_T}$CC" >&6
1851 else
1852   echo "$as_me:$LINENO: result: no" >&5
1853 echo "${ECHO_T}no" >&6
1854 fi
1855
1856     test -n "$CC" && break
1857   done
1858 fi
1859 if test -z "$CC"; then
1860   ac_ct_CC=$CC
1861   for ac_prog in cl
1862 do
1863   # Extract the first word of "$ac_prog", so it can be a program name with args.
1864 set dummy $ac_prog; ac_word=$2
1865 echo "$as_me:$LINENO: checking for $ac_word" >&5
1866 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1867 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1868   echo $ECHO_N "(cached) $ECHO_C" >&6
1869 else
1870   if test -n "$ac_ct_CC"; then
1871   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1872 else
1873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1874 for as_dir in $PATH
1875 do
1876   IFS=$as_save_IFS
1877   test -z "$as_dir" && as_dir=.
1878   for ac_exec_ext in '' $ac_executable_extensions; do
1879   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1880     ac_cv_prog_ac_ct_CC="$ac_prog"
1881     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1882     break 2
1883   fi
1884 done
1885 done
1886
1887 fi
1888 fi
1889 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1890 if test -n "$ac_ct_CC"; then
1891   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1892 echo "${ECHO_T}$ac_ct_CC" >&6
1893 else
1894   echo "$as_me:$LINENO: result: no" >&5
1895 echo "${ECHO_T}no" >&6
1896 fi
1897
1898   test -n "$ac_ct_CC" && break
1899 done
1900
1901   CC=$ac_ct_CC
1902 fi
1903
1904 fi
1905
1906
1907 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1908 See \`config.log' for more details." >&5
1909 echo "$as_me: error: no acceptable C compiler found in \$PATH
1910 See \`config.log' for more details." >&2;}
1911    { (exit 1); exit 1; }; }
1912
1913 # Provide some information about the compiler.
1914 echo "$as_me:$LINENO:" \
1915      "checking for C compiler version" >&5
1916 ac_compiler=`set X $ac_compile; echo $2`
1917 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1918   (eval $ac_compiler --version </dev/null >&5) 2>&5
1919   ac_status=$?
1920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1921   (exit $ac_status); }
1922 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1923   (eval $ac_compiler -v </dev/null >&5) 2>&5
1924   ac_status=$?
1925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1926   (exit $ac_status); }
1927 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1928   (eval $ac_compiler -V </dev/null >&5) 2>&5
1929   ac_status=$?
1930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1931   (exit $ac_status); }
1932
1933 cat >conftest.$ac_ext <<_ACEOF
1934 /* confdefs.h.  */
1935 _ACEOF
1936 cat confdefs.h >>conftest.$ac_ext
1937 cat >>conftest.$ac_ext <<_ACEOF
1938 /* end confdefs.h.  */
1939
1940 int
1941 main ()
1942 {
1943
1944   ;
1945   return 0;
1946 }
1947 _ACEOF
1948 # FIXME: Cleanup?
1949 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1950   (eval $ac_link) 2>&5
1951   ac_status=$?
1952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1953   (exit $ac_status); }; then
1954   gcc_no_link=no
1955 else
1956   gcc_no_link=yes
1957 fi
1958
1959 if test x$gcc_no_link = xyes; then
1960   # Setting cross_compile will disable run tests; it will
1961   # also disable AC_CHECK_FILE but that's generally
1962   # correct if we can't link.
1963   cross_compiling=yes
1964   EXEEXT=
1965 else
1966   cat >conftest.$ac_ext <<_ACEOF
1967 /* confdefs.h.  */
1968 _ACEOF
1969 cat confdefs.h >>conftest.$ac_ext
1970 cat >>conftest.$ac_ext <<_ACEOF
1971 /* end confdefs.h.  */
1972
1973 int
1974 main ()
1975 {
1976
1977   ;
1978   return 0;
1979 }
1980 _ACEOF
1981 ac_clean_files_save=$ac_clean_files
1982 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1983 # Try to create an executable without -o first, disregard a.out.
1984 # It will help us diagnose broken compilers, and finding out an intuition
1985 # of exeext.
1986 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1987 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1988 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1989 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1990   (eval $ac_link_default) 2>&5
1991   ac_status=$?
1992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1993   (exit $ac_status); }; then
1994   # Find the output, starting from the most likely.  This scheme is
1995 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1996 # resort.
1997
1998 # Be careful to initialize this variable, since it used to be cached.
1999 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2000 ac_cv_exeext=
2001 # b.out is created by i960 compilers.
2002 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2003 do
2004   test -f "$ac_file" || continue
2005   case $ac_file in
2006     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2007         ;;
2008     conftest.$ac_ext )
2009         # This is the source file.
2010         ;;
2011     [ab].out )
2012         # We found the default executable, but exeext='' is most
2013         # certainly right.
2014         break;;
2015     *.* )
2016         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2017         # FIXME: I believe we export ac_cv_exeext for Libtool,
2018         # but it would be cool to find out if it's true.  Does anybody
2019         # maintain Libtool? --akim.
2020         export ac_cv_exeext
2021         break;;
2022     * )
2023         break;;
2024   esac
2025 done
2026 else
2027   echo "$as_me: failed program was:" >&5
2028 sed 's/^/| /' conftest.$ac_ext >&5
2029
2030 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2031 See \`config.log' for more details." >&5
2032 echo "$as_me: error: C compiler cannot create executables
2033 See \`config.log' for more details." >&2;}
2034    { (exit 77); exit 77; }; }
2035 fi
2036
2037 ac_exeext=$ac_cv_exeext
2038 echo "$as_me:$LINENO: result: $ac_file" >&5
2039 echo "${ECHO_T}$ac_file" >&6
2040
2041 # Check the compiler produces executables we can run.  If not, either
2042 # the compiler is broken, or we cross compile.
2043 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2044 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2045 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2046 # If not cross compiling, check that we can run a simple program.
2047 if test "$cross_compiling" != yes; then
2048   if { ac_try='./$ac_file'
2049   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2050   (eval $ac_try) 2>&5
2051   ac_status=$?
2052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2053   (exit $ac_status); }; }; then
2054     cross_compiling=no
2055   else
2056     if test "$cross_compiling" = maybe; then
2057         cross_compiling=yes
2058     else
2059         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2060 If you meant to cross compile, use \`--host'.
2061 See \`config.log' for more details." >&5
2062 echo "$as_me: error: cannot run C compiled programs.
2063 If you meant to cross compile, use \`--host'.
2064 See \`config.log' for more details." >&2;}
2065    { (exit 1); exit 1; }; }
2066     fi
2067   fi
2068 fi
2069 echo "$as_me:$LINENO: result: yes" >&5
2070 echo "${ECHO_T}yes" >&6
2071
2072 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2073 ac_clean_files=$ac_clean_files_save
2074 # Check the compiler produces executables we can run.  If not, either
2075 # the compiler is broken, or we cross compile.
2076 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2077 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2078 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2079 echo "${ECHO_T}$cross_compiling" >&6
2080
2081 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2082 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2083 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2084   (eval $ac_link) 2>&5
2085   ac_status=$?
2086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2087   (exit $ac_status); }; then
2088   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2089 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2090 # work properly (i.e., refer to `conftest.exe'), while it won't with
2091 # `rm'.
2092 for ac_file in conftest.exe conftest conftest.*; do
2093   test -f "$ac_file" || continue
2094   case $ac_file in
2095     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2096     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2097           export ac_cv_exeext
2098           break;;
2099     * ) break;;
2100   esac
2101 done
2102 else
2103   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2104 See \`config.log' for more details." >&5
2105 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2106 See \`config.log' for more details." >&2;}
2107    { (exit 1); exit 1; }; }
2108 fi
2109
2110 rm -f conftest$ac_cv_exeext
2111 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2112 echo "${ECHO_T}$ac_cv_exeext" >&6
2113
2114 rm -f conftest.$ac_ext
2115 EXEEXT=$ac_cv_exeext
2116 ac_exeext=$EXEEXT
2117 fi
2118 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2119 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2120 if test "${ac_cv_objext+set}" = set; then
2121   echo $ECHO_N "(cached) $ECHO_C" >&6
2122 else
2123   cat >conftest.$ac_ext <<_ACEOF
2124 /* confdefs.h.  */
2125 _ACEOF
2126 cat confdefs.h >>conftest.$ac_ext
2127 cat >>conftest.$ac_ext <<_ACEOF
2128 /* end confdefs.h.  */
2129
2130 int
2131 main ()
2132 {
2133
2134   ;
2135   return 0;
2136 }
2137 _ACEOF
2138 rm -f conftest.o conftest.obj
2139 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2140   (eval $ac_compile) 2>&5
2141   ac_status=$?
2142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2143   (exit $ac_status); }; then
2144   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2145   case $ac_file in
2146     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2147     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2148        break;;
2149   esac
2150 done
2151 else
2152   echo "$as_me: failed program was:" >&5
2153 sed 's/^/| /' conftest.$ac_ext >&5
2154
2155 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2156 See \`config.log' for more details." >&5
2157 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2158 See \`config.log' for more details." >&2;}
2159    { (exit 1); exit 1; }; }
2160 fi
2161
2162 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2163 fi
2164 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2165 echo "${ECHO_T}$ac_cv_objext" >&6
2166 OBJEXT=$ac_cv_objext
2167 ac_objext=$OBJEXT
2168 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2169 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2170 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2171   echo $ECHO_N "(cached) $ECHO_C" >&6
2172 else
2173   cat >conftest.$ac_ext <<_ACEOF
2174 /* confdefs.h.  */
2175 _ACEOF
2176 cat confdefs.h >>conftest.$ac_ext
2177 cat >>conftest.$ac_ext <<_ACEOF
2178 /* end confdefs.h.  */
2179
2180 int
2181 main ()
2182 {
2183 #ifndef __GNUC__
2184        choke me
2185 #endif
2186
2187   ;
2188   return 0;
2189 }
2190 _ACEOF
2191 rm -f conftest.$ac_objext
2192 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2193   (eval $ac_compile) 2>conftest.er1
2194   ac_status=$?
2195   grep -v '^ *+' conftest.er1 >conftest.err
2196   rm -f conftest.er1
2197   cat conftest.err >&5
2198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2199   (exit $ac_status); } &&
2200          { ac_try='test -z "$ac_c_werror_flag"
2201                          || test ! -s conftest.err'
2202   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2203   (eval $ac_try) 2>&5
2204   ac_status=$?
2205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2206   (exit $ac_status); }; } &&
2207          { ac_try='test -s conftest.$ac_objext'
2208   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2209   (eval $ac_try) 2>&5
2210   ac_status=$?
2211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2212   (exit $ac_status); }; }; then
2213   ac_compiler_gnu=yes
2214 else
2215   echo "$as_me: failed program was:" >&5
2216 sed 's/^/| /' conftest.$ac_ext >&5
2217
2218 ac_compiler_gnu=no
2219 fi
2220 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2221 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2222
2223 fi
2224 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2225 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2226 GCC=`test $ac_compiler_gnu = yes && echo yes`
2227 ac_test_CFLAGS=${CFLAGS+set}
2228 ac_save_CFLAGS=$CFLAGS
2229 CFLAGS="-g"
2230 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2231 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2232 if test "${ac_cv_prog_cc_g+set}" = set; then
2233   echo $ECHO_N "(cached) $ECHO_C" >&6
2234 else
2235   cat >conftest.$ac_ext <<_ACEOF
2236 /* confdefs.h.  */
2237 _ACEOF
2238 cat confdefs.h >>conftest.$ac_ext
2239 cat >>conftest.$ac_ext <<_ACEOF
2240 /* end confdefs.h.  */
2241
2242 int
2243 main ()
2244 {
2245
2246   ;
2247   return 0;
2248 }
2249 _ACEOF
2250 rm -f conftest.$ac_objext
2251 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2252   (eval $ac_compile) 2>conftest.er1
2253   ac_status=$?
2254   grep -v '^ *+' conftest.er1 >conftest.err
2255   rm -f conftest.er1
2256   cat conftest.err >&5
2257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2258   (exit $ac_status); } &&
2259          { ac_try='test -z "$ac_c_werror_flag"
2260                          || test ! -s conftest.err'
2261   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2262   (eval $ac_try) 2>&5
2263   ac_status=$?
2264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2265   (exit $ac_status); }; } &&
2266          { ac_try='test -s conftest.$ac_objext'
2267   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2268   (eval $ac_try) 2>&5
2269   ac_status=$?
2270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2271   (exit $ac_status); }; }; then
2272   ac_cv_prog_cc_g=yes
2273 else
2274   echo "$as_me: failed program was:" >&5
2275 sed 's/^/| /' conftest.$ac_ext >&5
2276
2277 ac_cv_prog_cc_g=no
2278 fi
2279 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2280 fi
2281 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2282 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2283 if test "$ac_test_CFLAGS" = set; then
2284   CFLAGS=$ac_save_CFLAGS
2285 elif test $ac_cv_prog_cc_g = yes; then
2286   if test "$GCC" = yes; then
2287     CFLAGS="-g -O2"
2288   else
2289     CFLAGS="-g"
2290   fi
2291 else
2292   if test "$GCC" = yes; then
2293     CFLAGS="-O2"
2294   else
2295     CFLAGS=
2296   fi
2297 fi
2298 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2299 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2300 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2301   echo $ECHO_N "(cached) $ECHO_C" >&6
2302 else
2303   ac_cv_prog_cc_stdc=no
2304 ac_save_CC=$CC
2305 cat >conftest.$ac_ext <<_ACEOF
2306 /* confdefs.h.  */
2307 _ACEOF
2308 cat confdefs.h >>conftest.$ac_ext
2309 cat >>conftest.$ac_ext <<_ACEOF
2310 /* end confdefs.h.  */
2311 #include <stdarg.h>
2312 #include <stdio.h>
2313 #include <sys/types.h>
2314 #include <sys/stat.h>
2315 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2316 struct buf { int x; };
2317 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2318 static char *e (p, i)
2319      char **p;
2320      int i;
2321 {
2322   return p[i];
2323 }
2324 static char *f (char * (*g) (char **, int), char **p, ...)
2325 {
2326   char *s;
2327   va_list v;
2328   va_start (v,p);
2329   s = g (p, va_arg (v,int));
2330   va_end (v);
2331   return s;
2332 }
2333
2334 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2335    function prototypes and stuff, but not '\xHH' hex character constants.
2336    These don't provoke an error unfortunately, instead are silently treated
2337    as 'x'.  The following induces an error, until -std1 is added to get
2338    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2339    array size at least.  It's necessary to write '\x00'==0 to get something
2340    that's true only with -std1.  */
2341 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2342
2343 int test (int i, double x);
2344 struct s1 {int (*f) (int a);};
2345 struct s2 {int (*f) (double a);};
2346 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2347 int argc;
2348 char **argv;
2349 int
2350 main ()
2351 {
2352 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2353   ;
2354   return 0;
2355 }
2356 _ACEOF
2357 # Don't try gcc -ansi; that turns off useful extensions and
2358 # breaks some systems' header files.
2359 # AIX                   -qlanglvl=ansi
2360 # Ultrix and OSF/1      -std1
2361 # HP-UX 10.20 and later -Ae
2362 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2363 # SVR4                  -Xc -D__EXTENSIONS__
2364 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2365 do
2366   CC="$ac_save_CC $ac_arg"
2367   rm -f conftest.$ac_objext
2368 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2369   (eval $ac_compile) 2>conftest.er1
2370   ac_status=$?
2371   grep -v '^ *+' conftest.er1 >conftest.err
2372   rm -f conftest.er1
2373   cat conftest.err >&5
2374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2375   (exit $ac_status); } &&
2376          { ac_try='test -z "$ac_c_werror_flag"
2377                          || test ! -s conftest.err'
2378   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2379   (eval $ac_try) 2>&5
2380   ac_status=$?
2381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2382   (exit $ac_status); }; } &&
2383          { ac_try='test -s conftest.$ac_objext'
2384   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2385   (eval $ac_try) 2>&5
2386   ac_status=$?
2387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2388   (exit $ac_status); }; }; then
2389   ac_cv_prog_cc_stdc=$ac_arg
2390 break
2391 else
2392   echo "$as_me: failed program was:" >&5
2393 sed 's/^/| /' conftest.$ac_ext >&5
2394
2395 fi
2396 rm -f conftest.err conftest.$ac_objext
2397 done
2398 rm -f conftest.$ac_ext conftest.$ac_objext
2399 CC=$ac_save_CC
2400
2401 fi
2402
2403 case "x$ac_cv_prog_cc_stdc" in
2404   x|xno)
2405     echo "$as_me:$LINENO: result: none needed" >&5
2406 echo "${ECHO_T}none needed" >&6 ;;
2407   *)
2408     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2409 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2410     CC="$CC $ac_cv_prog_cc_stdc" ;;
2411 esac
2412
2413 # Some people use a C++ compiler to compile C.  Since we use `exit',
2414 # in C++ we need to declare it.  In case someone uses the same compiler
2415 # for both compiling C and C++ we need to have the C++ compiler decide
2416 # the declaration of exit, since it's the most demanding environment.
2417 cat >conftest.$ac_ext <<_ACEOF
2418 #ifndef __cplusplus
2419   choke me
2420 #endif
2421 _ACEOF
2422 rm -f conftest.$ac_objext
2423 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2424   (eval $ac_compile) 2>conftest.er1
2425   ac_status=$?
2426   grep -v '^ *+' conftest.er1 >conftest.err
2427   rm -f conftest.er1
2428   cat conftest.err >&5
2429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2430   (exit $ac_status); } &&
2431          { ac_try='test -z "$ac_c_werror_flag"
2432                          || test ! -s conftest.err'
2433   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2434   (eval $ac_try) 2>&5
2435   ac_status=$?
2436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2437   (exit $ac_status); }; } &&
2438          { ac_try='test -s conftest.$ac_objext'
2439   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2440   (eval $ac_try) 2>&5
2441   ac_status=$?
2442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2443   (exit $ac_status); }; }; then
2444   for ac_declaration in \
2445    '' \
2446    'extern "C" void std::exit (int) throw (); using std::exit;' \
2447    'extern "C" void std::exit (int); using std::exit;' \
2448    'extern "C" void exit (int) throw ();' \
2449    'extern "C" void exit (int);' \
2450    'void exit (int);'
2451 do
2452   cat >conftest.$ac_ext <<_ACEOF
2453 /* confdefs.h.  */
2454 _ACEOF
2455 cat confdefs.h >>conftest.$ac_ext
2456 cat >>conftest.$ac_ext <<_ACEOF
2457 /* end confdefs.h.  */
2458 $ac_declaration
2459 #include <stdlib.h>
2460 int
2461 main ()
2462 {
2463 exit (42);
2464   ;
2465   return 0;
2466 }
2467 _ACEOF
2468 rm -f conftest.$ac_objext
2469 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2470   (eval $ac_compile) 2>conftest.er1
2471   ac_status=$?
2472   grep -v '^ *+' conftest.er1 >conftest.err
2473   rm -f conftest.er1
2474   cat conftest.err >&5
2475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2476   (exit $ac_status); } &&
2477          { ac_try='test -z "$ac_c_werror_flag"
2478                          || test ! -s conftest.err'
2479   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2480   (eval $ac_try) 2>&5
2481   ac_status=$?
2482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2483   (exit $ac_status); }; } &&
2484          { ac_try='test -s conftest.$ac_objext'
2485   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2486   (eval $ac_try) 2>&5
2487   ac_status=$?
2488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2489   (exit $ac_status); }; }; then
2490   :
2491 else
2492   echo "$as_me: failed program was:" >&5
2493 sed 's/^/| /' conftest.$ac_ext >&5
2494
2495 continue
2496 fi
2497 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2498   cat >conftest.$ac_ext <<_ACEOF
2499 /* confdefs.h.  */
2500 _ACEOF
2501 cat confdefs.h >>conftest.$ac_ext
2502 cat >>conftest.$ac_ext <<_ACEOF
2503 /* end confdefs.h.  */
2504 $ac_declaration
2505 int
2506 main ()
2507 {
2508 exit (42);
2509   ;
2510   return 0;
2511 }
2512 _ACEOF
2513 rm -f conftest.$ac_objext
2514 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2515   (eval $ac_compile) 2>conftest.er1
2516   ac_status=$?
2517   grep -v '^ *+' conftest.er1 >conftest.err
2518   rm -f conftest.er1
2519   cat conftest.err >&5
2520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2521   (exit $ac_status); } &&
2522          { ac_try='test -z "$ac_c_werror_flag"
2523                          || test ! -s conftest.err'
2524   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2525   (eval $ac_try) 2>&5
2526   ac_status=$?
2527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2528   (exit $ac_status); }; } &&
2529          { ac_try='test -s conftest.$ac_objext'
2530   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2531   (eval $ac_try) 2>&5
2532   ac_status=$?
2533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2534   (exit $ac_status); }; }; then
2535   break
2536 else
2537   echo "$as_me: failed program was:" >&5
2538 sed 's/^/| /' conftest.$ac_ext >&5
2539
2540 fi
2541 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2542 done
2543 rm -f conftest*
2544 if test -n "$ac_declaration"; then
2545   echo '#ifdef __cplusplus' >>confdefs.h
2546   echo $ac_declaration      >>confdefs.h
2547   echo '#endif'             >>confdefs.h
2548 fi
2549
2550 else
2551   echo "$as_me: failed program was:" >&5
2552 sed 's/^/| /' conftest.$ac_ext >&5
2553
2554 fi
2555 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2556 ac_ext=c
2557 ac_cpp='$CPP $CPPFLAGS'
2558 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2559 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2560 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2561
2562
2563
2564
2565
2566 if test -n "$ac_tool_prefix"; then
2567   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
2568 set dummy ${ac_tool_prefix}as; ac_word=$2
2569 echo "$as_me:$LINENO: checking for $ac_word" >&5
2570 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2571 if test "${ac_cv_prog_AS+set}" = set; then
2572   echo $ECHO_N "(cached) $ECHO_C" >&6
2573 else
2574   if test -n "$AS"; then
2575   ac_cv_prog_AS="$AS" # Let the user override the test.
2576 else
2577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2578 for as_dir in $PATH
2579 do
2580   IFS=$as_save_IFS
2581   test -z "$as_dir" && as_dir=.
2582   for ac_exec_ext in '' $ac_executable_extensions; do
2583   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2584     ac_cv_prog_AS="${ac_tool_prefix}as"
2585     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2586     break 2
2587   fi
2588 done
2589 done
2590
2591 fi
2592 fi
2593 AS=$ac_cv_prog_AS
2594 if test -n "$AS"; then
2595   echo "$as_me:$LINENO: result: $AS" >&5
2596 echo "${ECHO_T}$AS" >&6
2597 else
2598   echo "$as_me:$LINENO: result: no" >&5
2599 echo "${ECHO_T}no" >&6
2600 fi
2601
2602 fi
2603 if test -z "$ac_cv_prog_AS"; then
2604   ac_ct_AS=$AS
2605   # Extract the first word of "as", so it can be a program name with args.
2606 set dummy as; ac_word=$2
2607 echo "$as_me:$LINENO: checking for $ac_word" >&5
2608 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2609 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
2610   echo $ECHO_N "(cached) $ECHO_C" >&6
2611 else
2612   if test -n "$ac_ct_AS"; then
2613   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
2614 else
2615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2616 for as_dir in $PATH
2617 do
2618   IFS=$as_save_IFS
2619   test -z "$as_dir" && as_dir=.
2620   for ac_exec_ext in '' $ac_executable_extensions; do
2621   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2622     ac_cv_prog_ac_ct_AS="as"
2623     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2624     break 2
2625   fi
2626 done
2627 done
2628
2629 fi
2630 fi
2631 ac_ct_AS=$ac_cv_prog_ac_ct_AS
2632 if test -n "$ac_ct_AS"; then
2633   echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
2634 echo "${ECHO_T}$ac_ct_AS" >&6
2635 else
2636   echo "$as_me:$LINENO: result: no" >&5
2637 echo "${ECHO_T}no" >&6
2638 fi
2639
2640   AS=$ac_ct_AS
2641 else
2642   AS="$ac_cv_prog_AS"
2643 fi
2644
2645 if test -n "$ac_tool_prefix"; then
2646   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
2647 set dummy ${ac_tool_prefix}ar; ac_word=$2
2648 echo "$as_me:$LINENO: checking for $ac_word" >&5
2649 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2650 if test "${ac_cv_prog_AR+set}" = set; then
2651   echo $ECHO_N "(cached) $ECHO_C" >&6
2652 else
2653   if test -n "$AR"; then
2654   ac_cv_prog_AR="$AR" # Let the user override the test.
2655 else
2656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2657 for as_dir in $PATH
2658 do
2659   IFS=$as_save_IFS
2660   test -z "$as_dir" && as_dir=.
2661   for ac_exec_ext in '' $ac_executable_extensions; do
2662   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2663     ac_cv_prog_AR="${ac_tool_prefix}ar"
2664     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2665     break 2
2666   fi
2667 done
2668 done
2669
2670 fi
2671 fi
2672 AR=$ac_cv_prog_AR
2673 if test -n "$AR"; then
2674   echo "$as_me:$LINENO: result: $AR" >&5
2675 echo "${ECHO_T}$AR" >&6
2676 else
2677   echo "$as_me:$LINENO: result: no" >&5
2678 echo "${ECHO_T}no" >&6
2679 fi
2680
2681 fi
2682 if test -z "$ac_cv_prog_AR"; then
2683   ac_ct_AR=$AR
2684   # Extract the first word of "ar", so it can be a program name with args.
2685 set dummy ar; ac_word=$2
2686 echo "$as_me:$LINENO: checking for $ac_word" >&5
2687 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2688 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
2689   echo $ECHO_N "(cached) $ECHO_C" >&6
2690 else
2691   if test -n "$ac_ct_AR"; then
2692   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
2693 else
2694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2695 for as_dir in $PATH
2696 do
2697   IFS=$as_save_IFS
2698   test -z "$as_dir" && as_dir=.
2699   for ac_exec_ext in '' $ac_executable_extensions; do
2700   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2701     ac_cv_prog_ac_ct_AR="ar"
2702     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2703     break 2
2704   fi
2705 done
2706 done
2707
2708 fi
2709 fi
2710 ac_ct_AR=$ac_cv_prog_ac_ct_AR
2711 if test -n "$ac_ct_AR"; then
2712   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
2713 echo "${ECHO_T}$ac_ct_AR" >&6
2714 else
2715   echo "$as_me:$LINENO: result: no" >&5
2716 echo "${ECHO_T}no" >&6
2717 fi
2718
2719   AR=$ac_ct_AR
2720 else
2721   AR="$ac_cv_prog_AR"
2722 fi
2723
2724 if test -n "$ac_tool_prefix"; then
2725   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2726 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2727 echo "$as_me:$LINENO: checking for $ac_word" >&5
2728 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2729 if test "${ac_cv_prog_RANLIB+set}" = set; then
2730   echo $ECHO_N "(cached) $ECHO_C" >&6
2731 else
2732   if test -n "$RANLIB"; then
2733   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2734 else
2735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2736 for as_dir in $PATH
2737 do
2738   IFS=$as_save_IFS
2739   test -z "$as_dir" && as_dir=.
2740   for ac_exec_ext in '' $ac_executable_extensions; do
2741   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2742     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2743     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2744     break 2
2745   fi
2746 done
2747 done
2748
2749 fi
2750 fi
2751 RANLIB=$ac_cv_prog_RANLIB
2752 if test -n "$RANLIB"; then
2753   echo "$as_me:$LINENO: result: $RANLIB" >&5
2754 echo "${ECHO_T}$RANLIB" >&6
2755 else
2756   echo "$as_me:$LINENO: result: no" >&5
2757 echo "${ECHO_T}no" >&6
2758 fi
2759
2760 fi
2761 if test -z "$ac_cv_prog_RANLIB"; then
2762   ac_ct_RANLIB=$RANLIB
2763   # Extract the first word of "ranlib", so it can be a program name with args.
2764 set dummy ranlib; ac_word=$2
2765 echo "$as_me:$LINENO: checking for $ac_word" >&5
2766 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2767 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2768   echo $ECHO_N "(cached) $ECHO_C" >&6
2769 else
2770   if test -n "$ac_ct_RANLIB"; then
2771   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2772 else
2773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2774 for as_dir in $PATH
2775 do
2776   IFS=$as_save_IFS
2777   test -z "$as_dir" && as_dir=.
2778   for ac_exec_ext in '' $ac_executable_extensions; do
2779   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2780     ac_cv_prog_ac_ct_RANLIB="ranlib"
2781     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2782     break 2
2783   fi
2784 done
2785 done
2786
2787   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
2788 fi
2789 fi
2790 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2791 if test -n "$ac_ct_RANLIB"; then
2792   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2793 echo "${ECHO_T}$ac_ct_RANLIB" >&6
2794 else
2795   echo "$as_me:$LINENO: result: no" >&5
2796 echo "${ECHO_T}no" >&6
2797 fi
2798
2799   RANLIB=$ac_ct_RANLIB
2800 else
2801   RANLIB="$ac_cv_prog_RANLIB"
2802 fi
2803
2804 # Find a good install program.  We prefer a C program (faster),
2805 # so one script is as good as another.  But avoid the broken or
2806 # incompatible versions:
2807 # SysV /etc/install, /usr/sbin/install
2808 # SunOS /usr/etc/install
2809 # IRIX /sbin/install
2810 # AIX /bin/install
2811 # AmigaOS /C/install, which installs bootblocks on floppy discs
2812 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2813 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2814 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2815 # OS/2's system install, which has a completely different semantic
2816 # ./install, which can be erroneously created by make from ./install.sh.
2817 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2818 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2819 if test -z "$INSTALL"; then
2820 if test "${ac_cv_path_install+set}" = set; then
2821   echo $ECHO_N "(cached) $ECHO_C" >&6
2822 else
2823   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2824 for as_dir in $PATH
2825 do
2826   IFS=$as_save_IFS
2827   test -z "$as_dir" && as_dir=.
2828   # Account for people who put trailing slashes in PATH elements.
2829 case $as_dir/ in
2830   ./ | .// | /cC/* | \
2831   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2832   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2833   /usr/ucb/* ) ;;
2834   *)
2835     # OSF1 and SCO ODT 3.0 have their own names for install.
2836     # Don't use installbsd from OSF since it installs stuff as root
2837     # by default.
2838     for ac_prog in ginstall scoinst install; do
2839       for ac_exec_ext in '' $ac_executable_extensions; do
2840         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2841           if test $ac_prog = install &&
2842             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2843             # AIX install.  It has an incompatible calling convention.
2844             :
2845           elif test $ac_prog = install &&
2846             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2847             # program-specific install script used by HP pwplus--don't use.
2848             :
2849           else
2850             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2851             break 3
2852           fi
2853         fi
2854       done
2855     done
2856     ;;
2857 esac
2858 done
2859
2860
2861 fi
2862   if test "${ac_cv_path_install+set}" = set; then
2863     INSTALL=$ac_cv_path_install
2864   else
2865     # As a last resort, use the slow shell script.  We don't cache a
2866     # path for INSTALL within a source directory, because that will
2867     # break other packages using the cache if that directory is
2868     # removed, or if the path is relative.
2869     INSTALL=$ac_install_sh
2870   fi
2871 fi
2872 echo "$as_me:$LINENO: result: $INSTALL" >&5
2873 echo "${ECHO_T}$INSTALL" >&6
2874
2875 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2876 # It thinks the first close brace ends the variable substitution.
2877 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2878
2879 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2880
2881 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2882
2883
2884 # Enable Win32 DLL on MS Windows - FIXME
2885
2886
2887 # Check whether --enable-shared or --disable-shared was given.
2888 if test "${enable_shared+set}" = set; then
2889   enableval="$enable_shared"
2890   p=${PACKAGE-default}
2891 case $enableval in
2892 yes) enable_shared=yes ;;
2893 no) enable_shared=no ;;
2894 *)
2895   enable_shared=no
2896   # Look at the argument we got.  We use all the common list separators.
2897   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2898   for pkg in $enableval; do
2899     if test "X$pkg" = "X$p"; then
2900       enable_shared=yes
2901     fi
2902   done
2903   IFS="$ac_save_ifs"
2904   ;;
2905 esac
2906 else
2907   enable_shared=yes
2908 fi;
2909 # Check whether --enable-static or --disable-static was given.
2910 if test "${enable_static+set}" = set; then
2911   enableval="$enable_static"
2912   p=${PACKAGE-default}
2913 case $enableval in
2914 yes) enable_static=yes ;;
2915 no) enable_static=no ;;
2916 *)
2917   enable_static=no
2918   # Look at the argument we got.  We use all the common list separators.
2919   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2920   for pkg in $enableval; do
2921     if test "X$pkg" = "X$p"; then
2922       enable_static=yes
2923     fi
2924   done
2925   IFS="$ac_save_ifs"
2926   ;;
2927 esac
2928 else
2929   enable_static=yes
2930 fi;
2931 # Check whether --enable-fast-install or --disable-fast-install was given.
2932 if test "${enable_fast_install+set}" = set; then
2933   enableval="$enable_fast_install"
2934   p=${PACKAGE-default}
2935 case $enableval in
2936 yes) enable_fast_install=yes ;;
2937 no) enable_fast_install=no ;;
2938 *)
2939   enable_fast_install=no
2940   # Look at the argument we got.  We use all the common list separators.
2941   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2942   for pkg in $enableval; do
2943     if test "X$pkg" = "X$p"; then
2944       enable_fast_install=yes
2945     fi
2946   done
2947   IFS="$ac_save_ifs"
2948   ;;
2949 esac
2950 else
2951   enable_fast_install=yes
2952 fi;
2953
2954 # Check whether --with-gnu-ld or --without-gnu-ld was given.
2955 if test "${with_gnu_ld+set}" = set; then
2956   withval="$with_gnu_ld"
2957   test "$withval" = no || with_gnu_ld=yes
2958 else
2959   with_gnu_ld=no
2960 fi;
2961 ac_prog=ld
2962 if test "$GCC" = yes; then
2963   # Check if gcc -print-prog-name=ld gives a path.
2964   echo "$as_me:$LINENO: checking for ld used by GCC" >&5
2965 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
2966   case $host in
2967   *-*-mingw*)
2968     # gcc leaves a trailing carriage return which upsets mingw
2969     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
2970   *)
2971     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
2972   esac
2973   case $ac_prog in
2974     # Accept absolute paths.
2975     [\\/]* | [A-Za-z]:[\\/]*)
2976       re_direlt='/[^/][^/]*/\.\./'
2977       # Canonicalize the path of ld
2978       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
2979       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
2980         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
2981       done
2982       test -z "$LD" && LD="$ac_prog"
2983       ;;
2984   "")
2985     # If it fails, then pretend we aren't using GCC.
2986     ac_prog=ld
2987     ;;
2988   *)
2989     # If it is relative, then search for the first ld in PATH.
2990     with_gnu_ld=unknown
2991     ;;
2992   esac
2993 elif test "$with_gnu_ld" = yes; then
2994   echo "$as_me:$LINENO: checking for GNU ld" >&5
2995 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
2996 else
2997   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
2998 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
2999 fi
3000 if test "${lt_cv_path_LD+set}" = set; then
3001   echo $ECHO_N "(cached) $ECHO_C" >&6
3002 else
3003   if test -z "$LD"; then
3004   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3005   for ac_dir in $PATH; do
3006     test -z "$ac_dir" && ac_dir=.
3007     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3008       lt_cv_path_LD="$ac_dir/$ac_prog"
3009       # Check to see if the program is GNU ld.  I'd rather use --version,
3010       # but apparently some GNU ld's only accept -v.
3011       # Break only if it was the GNU/non-GNU ld that we prefer.
3012       if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
3013         test "$with_gnu_ld" != no && break
3014       else
3015         test "$with_gnu_ld" != yes && break
3016       fi
3017     fi
3018   done
3019   IFS="$ac_save_ifs"
3020 else
3021   lt_cv_path_LD="$LD" # Let the user override the test with a path.
3022 fi
3023 fi
3024
3025 LD="$lt_cv_path_LD"
3026 if test -n "$LD"; then
3027   echo "$as_me:$LINENO: result: $LD" >&5
3028 echo "${ECHO_T}$LD" >&6
3029 else
3030   echo "$as_me:$LINENO: result: no" >&5
3031 echo "${ECHO_T}no" >&6
3032 fi
3033 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3034 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3035    { (exit 1); exit 1; }; }
3036 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3037 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3038 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3039   echo $ECHO_N "(cached) $ECHO_C" >&6
3040 else
3041   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3042 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3043   lt_cv_prog_gnu_ld=yes
3044 else
3045   lt_cv_prog_gnu_ld=no
3046 fi
3047 fi
3048 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3049 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3050 with_gnu_ld=$lt_cv_prog_gnu_ld
3051
3052
3053 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3054 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3055 if test "${lt_cv_ld_reload_flag+set}" = set; then
3056   echo $ECHO_N "(cached) $ECHO_C" >&6
3057 else
3058   lt_cv_ld_reload_flag='-r'
3059 fi
3060 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3061 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3062 reload_flag=$lt_cv_ld_reload_flag
3063 test -n "$reload_flag" && reload_flag=" $reload_flag"
3064
3065 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3066 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3067 if test "${lt_cv_path_NM+set}" = set; then
3068   echo $ECHO_N "(cached) $ECHO_C" >&6
3069 else
3070   if test -n "$NM"; then
3071   # Let the user override the test.
3072   lt_cv_path_NM="$NM"
3073 else
3074   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3075   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3076     test -z "$ac_dir" && ac_dir=.
3077     tmp_nm=$ac_dir/${ac_tool_prefix}nm
3078     if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
3079       # Check to see if the nm accepts a BSD-compat flag.
3080       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3081       #   nm: unknown option "B" ignored
3082       # Tru64's nm complains that /dev/null is an invalid object file
3083       if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
3084         lt_cv_path_NM="$tmp_nm -B"
3085         break
3086       elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3087         lt_cv_path_NM="$tmp_nm -p"
3088         break
3089       else
3090         lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3091         continue # so that we can try to find one that supports BSD flags
3092       fi
3093     fi
3094   done
3095   IFS="$ac_save_ifs"
3096   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3097 fi
3098 fi
3099
3100 NM="$lt_cv_path_NM"
3101 echo "$as_me:$LINENO: result: $NM" >&5
3102 echo "${ECHO_T}$NM" >&6
3103
3104 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3105 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3106 LN_S=$as_ln_s
3107 if test "$LN_S" = "ln -s"; then
3108   echo "$as_me:$LINENO: result: yes" >&5
3109 echo "${ECHO_T}yes" >&6
3110 else
3111   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3112 echo "${ECHO_T}no, using $LN_S" >&6
3113 fi
3114
3115 echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
3116 echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
3117 if test "${lt_cv_deplibs_check_method+set}" = set; then
3118   echo $ECHO_N "(cached) $ECHO_C" >&6
3119 else
3120   lt_cv_file_magic_cmd='$MAGIC_CMD'
3121 lt_cv_file_magic_test_file=
3122 lt_cv_deplibs_check_method='unknown'
3123 # Need to set the preceding variable on all platforms that support
3124 # interlibrary dependencies.
3125 # 'none' -- dependencies not supported.
3126 # `unknown' -- same as none, but documents that we really don't know.
3127 # 'pass_all' -- all dependencies passed with no checks.
3128 # 'test_compile' -- check by making test program.
3129 # 'file_magic [regex]' -- check by looking for files in library path
3130 # which responds to the $file_magic_cmd with a given egrep regex.
3131 # If you have `file' or equivalent on your system and you're not sure
3132 # whether `pass_all' will *always* work, you probably want this one.
3133
3134 case $host_os in
3135 aix*)
3136   lt_cv_deplibs_check_method=pass_all
3137   ;;
3138
3139 beos*)
3140   lt_cv_deplibs_check_method=pass_all
3141   ;;
3142
3143 bsdi4*)
3144   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3145   lt_cv_file_magic_cmd='/usr/bin/file -L'
3146   lt_cv_file_magic_test_file=/shlib/libc.so
3147   ;;
3148
3149 cygwin* | mingw* |pw32*)
3150   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3151   lt_cv_file_magic_cmd='$OBJDUMP -f'
3152   ;;
3153
3154 darwin* | rhapsody*)
3155   # this will be overwritten by pass_all, but leave it in just in case
3156   lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3157   lt_cv_file_magic_cmd='/usr/bin/file -L'
3158   case "$host_os" in
3159   rhapsody* | darwin1.012)
3160     lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
3161     ;;
3162   *) # Darwin 1.3 on
3163     lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3164     ;;
3165   esac
3166   lt_cv_deplibs_check_method=pass_all
3167   ;;
3168
3169 freebsd* | kfreebsd*-gnu)
3170   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3171     case $host_cpu in
3172     i*86 )
3173       # Not sure whether the presence of OpenBSD here was a mistake.
3174       # Let's accept both of them until this is cleared up.
3175       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3176       lt_cv_file_magic_cmd=/usr/bin/file
3177       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3178       ;;
3179     esac
3180   else
3181     lt_cv_deplibs_check_method=pass_all
3182   fi
3183   ;;
3184
3185 gnu*)
3186   lt_cv_deplibs_check_method=pass_all
3187   ;;
3188
3189 hpux10.20*|hpux11*)
3190   case $host_cpu in
3191   hppa*)
3192     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3193     lt_cv_file_magic_cmd=/usr/bin/file
3194     lt_cv_file_magic_test_file=/usr/lib/libc.sl
3195     ;;
3196   ia64*)
3197     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3198     lt_cv_file_magic_cmd=/usr/bin/file
3199     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3200     ;;
3201   esac
3202   ;;
3203
3204 irix5* | irix6*)
3205   case $host_os in
3206   irix5*)
3207     # this will be overridden with pass_all, but let us keep it just in case
3208     lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3209     ;;
3210   *)
3211     case $LD in
3212     *-32|*"-32 ") libmagic=32-bit;;
3213     *-n32|*"-n32 ") libmagic=N32;;
3214     *-64|*"-64 ") libmagic=64-bit;;
3215     *) libmagic=never-match;;
3216     esac
3217     # this will be overridden with pass_all, but let us keep it just in case
3218     lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3219     ;;
3220   esac
3221   lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3222   lt_cv_deplibs_check_method=pass_all
3223   ;;
3224
3225 # This must be Linux ELF.
3226 linux-gnu*)
3227   case $host_cpu in
3228   alpha* | mips* | hppa* | i*86 | powerpc* | sparc* | ia64* | sh* )
3229     lt_cv_deplibs_check_method=pass_all ;;
3230   *)
3231     # glibc up to 2.1.1 does not perform some relocations on ARM
3232     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3233   esac
3234   lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3235   ;;
3236
3237 netbsd* | knetbsd*-gnu)
3238   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3239     lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
3240   else
3241     lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
3242   fi
3243   ;;
3244
3245 newsos6)
3246   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3247   lt_cv_file_magic_cmd=/usr/bin/file
3248   lt_cv_file_magic_test_file=/usr/lib/libnls.so
3249   ;;
3250
3251 osf3* | osf4* | osf5*)
3252   # this will be overridden with pass_all, but let us keep it just in case
3253   lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3254   lt_cv_file_magic_test_file=/shlib/libc.so
3255   lt_cv_deplibs_check_method=pass_all
3256   ;;
3257
3258 sco3.2v5*)
3259   lt_cv_deplibs_check_method=pass_all
3260   ;;
3261
3262 solaris*)
3263   lt_cv_deplibs_check_method=pass_all
3264   lt_cv_file_magic_test_file=/lib/libc.so
3265   ;;
3266
3267 sysv5uw[78]* | sysv4*uw2*)
3268   lt_cv_deplibs_check_method=pass_all
3269   ;;
3270
3271 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3272   case $host_vendor in
3273   ncr)
3274     lt_cv_deplibs_check_method=pass_all
3275     ;;
3276   motorola)
3277     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]'
3278     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3279     ;;
3280   esac
3281   ;;
3282 esac
3283
3284 fi
3285 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3286 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3287 file_magic_cmd=$lt_cv_file_magic_cmd
3288 deplibs_check_method=$lt_cv_deplibs_check_method
3289
3290
3291
3292
3293
3294 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
3295
3296 # Only perform the check for file, if the check method requires it
3297 case $deplibs_check_method in
3298 file_magic*)
3299   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
3300     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
3301 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
3302 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3303   echo $ECHO_N "(cached) $ECHO_C" >&6
3304 else
3305   case $MAGIC_CMD in
3306   /*)
3307   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3308   ;;
3309   ?:/*)
3310   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3311   ;;
3312   *)
3313   ac_save_MAGIC_CMD="$MAGIC_CMD"
3314   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
3315   ac_dummy="/usr/bin:$PATH"
3316   for ac_dir in $ac_dummy; do
3317     test -z "$ac_dir" && ac_dir=.
3318     if test -f $ac_dir/${ac_tool_prefix}file; then
3319       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
3320       if test -n "$file_magic_test_file"; then
3321         case $deplibs_check_method in
3322         "file_magic "*)
3323           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3324           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3325           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3326             egrep "$file_magic_regex" > /dev/null; then
3327             :
3328           else
3329             cat <<EOF 1>&2
3330
3331 *** Warning: the command libtool uses to detect shared libraries,
3332 *** $file_magic_cmd, produces output that libtool cannot recognize.
3333 *** The result is that libtool may fail to recognize shared libraries
3334 *** as such.  This will affect the creation of libtool libraries that
3335 *** depend on shared libraries, but programs linked with such libtool
3336 *** libraries will work regardless of this problem.  Nevertheless, you
3337 *** may want to report the problem to your system manager and/or to
3338 *** bug-libtool@gnu.org
3339
3340 EOF
3341           fi ;;
3342         esac
3343       fi
3344       break
3345     fi
3346   done
3347   IFS="$ac_save_ifs"
3348   MAGIC_CMD="$ac_save_MAGIC_CMD"
3349   ;;
3350 esac
3351 fi
3352
3353 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3354 if test -n "$MAGIC_CMD"; then
3355   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
3356 echo "${ECHO_T}$MAGIC_CMD" >&6
3357 else
3358   echo "$as_me:$LINENO: result: no" >&5
3359 echo "${ECHO_T}no" >&6
3360 fi
3361
3362 if test -z "$lt_cv_path_MAGIC_CMD"; then
3363   if test -n "$ac_tool_prefix"; then
3364     echo "$as_me:$LINENO: checking for file" >&5
3365 echo $ECHO_N "checking for file... $ECHO_C" >&6
3366 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3367   echo $ECHO_N "(cached) $ECHO_C" >&6
3368 else
3369   case $MAGIC_CMD in
3370   /*)
3371   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3372   ;;
3373   ?:/*)
3374   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3375   ;;
3376   *)
3377   ac_save_MAGIC_CMD="$MAGIC_CMD"
3378   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
3379   ac_dummy="/usr/bin:$PATH"
3380   for ac_dir in $ac_dummy; do
3381     test -z "$ac_dir" && ac_dir=.
3382     if test -f $ac_dir/file; then
3383       lt_cv_path_MAGIC_CMD="$ac_dir/file"
3384       if test -n "$file_magic_test_file"; then
3385         case $deplibs_check_method in
3386         "file_magic "*)
3387           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3388           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3389           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3390             egrep "$file_magic_regex" > /dev/null; then
3391             :
3392           else
3393             cat <<EOF 1>&2
3394
3395 *** Warning: the command libtool uses to detect shared libraries,
3396 *** $file_magic_cmd, produces output that libtool cannot recognize.
3397 *** The result is that libtool may fail to recognize shared libraries
3398 *** as such.  This will affect the creation of libtool libraries that
3399 *** depend on shared libraries, but programs linked with such libtool
3400 *** libraries will work regardless of this problem.  Nevertheless, you
3401 *** may want to report the problem to your system manager and/or to
3402 *** bug-libtool@gnu.org
3403
3404 EOF
3405           fi ;;
3406         esac
3407       fi
3408       break
3409     fi
3410   done
3411   IFS="$ac_save_ifs"
3412   MAGIC_CMD="$ac_save_MAGIC_CMD"
3413   ;;
3414 esac
3415 fi
3416
3417 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3418 if test -n "$MAGIC_CMD"; then
3419   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
3420 echo "${ECHO_T}$MAGIC_CMD" >&6
3421 else
3422   echo "$as_me:$LINENO: result: no" >&5
3423 echo "${ECHO_T}no" >&6
3424 fi
3425
3426   else
3427     MAGIC_CMD=:
3428   fi
3429 fi
3430
3431   fi
3432   ;;
3433 esac
3434
3435 if test -n "$ac_tool_prefix"; then
3436   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3437 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3438 echo "$as_me:$LINENO: checking for $ac_word" >&5
3439 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3440 if test "${ac_cv_prog_RANLIB+set}" = set; then
3441   echo $ECHO_N "(cached) $ECHO_C" >&6
3442 else
3443   if test -n "$RANLIB"; then
3444   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3445 else
3446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3447 for as_dir in $PATH
3448 do
3449   IFS=$as_save_IFS
3450   test -z "$as_dir" && as_dir=.
3451   for ac_exec_ext in '' $ac_executable_extensions; do
3452   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3453     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3454     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3455     break 2
3456   fi
3457 done
3458 done
3459
3460 fi
3461 fi
3462 RANLIB=$ac_cv_prog_RANLIB
3463 if test -n "$RANLIB"; then
3464   echo "$as_me:$LINENO: result: $RANLIB" >&5
3465 echo "${ECHO_T}$RANLIB" >&6
3466 else
3467   echo "$as_me:$LINENO: result: no" >&5
3468 echo "${ECHO_T}no" >&6
3469 fi
3470
3471 fi
3472 if test -z "$ac_cv_prog_RANLIB"; then
3473   ac_ct_RANLIB=$RANLIB
3474   # Extract the first word of "ranlib", so it can be a program name with args.
3475 set dummy ranlib; ac_word=$2
3476 echo "$as_me:$LINENO: checking for $ac_word" >&5
3477 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3478 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3479   echo $ECHO_N "(cached) $ECHO_C" >&6
3480 else
3481   if test -n "$ac_ct_RANLIB"; then
3482   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3483 else
3484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3485 for as_dir in $PATH
3486 do
3487   IFS=$as_save_IFS
3488   test -z "$as_dir" && as_dir=.
3489   for ac_exec_ext in '' $ac_executable_extensions; do
3490   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3491     ac_cv_prog_ac_ct_RANLIB="ranlib"
3492     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3493     break 2
3494   fi
3495 done
3496 done
3497
3498   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3499 fi
3500 fi
3501 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3502 if test -n "$ac_ct_RANLIB"; then
3503   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3504 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3505 else
3506   echo "$as_me:$LINENO: result: no" >&5
3507 echo "${ECHO_T}no" >&6
3508 fi
3509
3510   RANLIB=$ac_ct_RANLIB
3511 else
3512   RANLIB="$ac_cv_prog_RANLIB"
3513 fi
3514
3515 if test -n "$ac_tool_prefix"; then
3516   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3517 set dummy ${ac_tool_prefix}strip; ac_word=$2
3518 echo "$as_me:$LINENO: checking for $ac_word" >&5
3519 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3520 if test "${ac_cv_prog_STRIP+set}" = set; then
3521   echo $ECHO_N "(cached) $ECHO_C" >&6
3522 else
3523   if test -n "$STRIP"; then
3524   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3525 else
3526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3527 for as_dir in $PATH
3528 do
3529   IFS=$as_save_IFS
3530   test -z "$as_dir" && as_dir=.
3531   for ac_exec_ext in '' $ac_executable_extensions; do
3532   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3533     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3534     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3535     break 2
3536   fi
3537 done
3538 done
3539
3540 fi
3541 fi
3542 STRIP=$ac_cv_prog_STRIP
3543 if test -n "$STRIP"; then
3544   echo "$as_me:$LINENO: result: $STRIP" >&5
3545 echo "${ECHO_T}$STRIP" >&6
3546 else
3547   echo "$as_me:$LINENO: result: no" >&5
3548 echo "${ECHO_T}no" >&6
3549 fi
3550
3551 fi
3552 if test -z "$ac_cv_prog_STRIP"; then
3553   ac_ct_STRIP=$STRIP
3554   # Extract the first word of "strip", so it can be a program name with args.
3555 set dummy strip; ac_word=$2
3556 echo "$as_me:$LINENO: checking for $ac_word" >&5
3557 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3558 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3559   echo $ECHO_N "(cached) $ECHO_C" >&6
3560 else
3561   if test -n "$ac_ct_STRIP"; then
3562   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3563 else
3564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3565 for as_dir in $PATH
3566 do
3567   IFS=$as_save_IFS
3568   test -z "$as_dir" && as_dir=.
3569   for ac_exec_ext in '' $ac_executable_extensions; do
3570   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3571     ac_cv_prog_ac_ct_STRIP="strip"
3572     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3573     break 2
3574   fi
3575 done
3576 done
3577
3578   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
3579 fi
3580 fi
3581 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3582 if test -n "$ac_ct_STRIP"; then
3583   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3584 echo "${ECHO_T}$ac_ct_STRIP" >&6
3585 else
3586   echo "$as_me:$LINENO: result: no" >&5
3587 echo "${ECHO_T}no" >&6
3588 fi
3589
3590   STRIP=$ac_ct_STRIP
3591 else
3592   STRIP="$ac_cv_prog_STRIP"
3593 fi
3594
3595
3596 # Check for any special flags to pass to ltconfig.
3597 libtool_flags="--cache-file=$cache_file"
3598 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
3599 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
3600 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
3601 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
3602 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
3603
3604
3605 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3606 if test "${enable_libtool_lock+set}" = set; then
3607   enableval="$enable_libtool_lock"
3608
3609 fi;
3610 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
3611 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
3612
3613
3614 # Check whether --with-pic or --without-pic was given.
3615 if test "${with_pic+set}" = set; then
3616   withval="$with_pic"
3617   pic_mode="$withval"
3618 else
3619   pic_mode=default
3620 fi;
3621 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
3622 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
3623
3624 # Some flags need to be propagated to the compiler or linker for good
3625 # libtool support.
3626 case $host in
3627 *-*-irix6*)
3628   # Find out which ABI we are using.
3629   echo '#line 3629 "configure"' > conftest.$ac_ext
3630   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3631   (eval $ac_compile) 2>&5
3632   ac_status=$?
3633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3634   (exit $ac_status); }; then
3635    if test "$lt_cv_prog_gnu_ld" = yes; then
3636     case `/usr/bin/file conftest.$ac_objext` in
3637     *32-bit*)
3638       LD="${LD-ld} -melf32bsmip"
3639       ;;
3640     *N32*)
3641       LD="${LD-ld} -melf32bmipn32"
3642       ;;
3643     *64-bit*)
3644       LD="${LD-ld} -melf64bmip"
3645       ;;
3646     esac
3647    else
3648     case `/usr/bin/file conftest.$ac_objext` in
3649     *32-bit*)
3650       LD="${LD-ld} -32"
3651       ;;
3652     *N32*)
3653       LD="${LD-ld} -n32"
3654       ;;
3655     *64-bit*)
3656       LD="${LD-ld} -64"
3657       ;;
3658     esac
3659    fi
3660   fi
3661   rm -rf conftest*
3662   ;;
3663
3664 ia64-*-hpux*)
3665   # Find out which ABI we are using.
3666   echo 'int i;' > conftest.$ac_ext
3667   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3668   (eval $ac_compile) 2>&5
3669   ac_status=$?
3670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3671   (exit $ac_status); }; then
3672     case "`/usr/bin/file conftest.o`" in
3673     *ELF-32*)
3674       HPUX_IA64_MODE="32"
3675       ;;
3676     *ELF-64*)
3677       HPUX_IA64_MODE="64"
3678       ;;
3679     esac
3680   fi
3681   rm -rf conftest*
3682   ;;
3683
3684 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
3685   # Find out which ABI we are using.
3686   echo 'int i;' > conftest.$ac_ext
3687   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3688   (eval $ac_compile) 2>&5
3689   ac_status=$?
3690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3691   (exit $ac_status); }; then
3692     case "`/usr/bin/file conftest.o`" in
3693     *32-bit*)
3694       case $host in
3695         x86_64-*linux*)
3696           LD="${LD-ld} -m elf_i386"
3697           ;;
3698         ppc64-*linux*|powerpc64-*linux*)
3699           LD="${LD-ld} -m elf32ppclinux"
3700           ;;
3701         s390x-*linux*)
3702           LD="${LD-ld} -m elf_s390"
3703           ;;
3704         sparc64-*linux*)
3705           LD="${LD-ld} -m elf32_sparc"
3706           ;;
3707       esac
3708       ;;
3709     *64-bit*)
3710       case $host in
3711         x86_64-*linux*)
3712           LD="${LD-ld} -m elf_x86_64"
3713           ;;
3714         ppc*-*linux*|powerpc*-*linux*)
3715           LD="${LD-ld} -m elf64ppc"
3716           ;;
3717         s390*-*linux*)
3718           LD="${LD-ld} -m elf64_s390"
3719           ;;
3720         sparc*-*linux*)
3721           LD="${LD-ld} -m elf64_sparc"
3722           ;;
3723       esac
3724       ;;
3725     esac
3726   fi
3727   rm -rf conftest*
3728   ;;
3729
3730 *-*-sco3.2v5*)
3731   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3732   SAVE_CFLAGS="$CFLAGS"
3733   CFLAGS="$CFLAGS -belf"
3734   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
3735 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
3736 if test "${lt_cv_cc_needs_belf+set}" = set; then
3737   echo $ECHO_N "(cached) $ECHO_C" >&6
3738 else
3739
3740
3741      ac_ext=c
3742 ac_cpp='$CPP $CPPFLAGS'
3743 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3744 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3745 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3746
3747      if test x$gcc_no_link = xyes; then
3748   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
3749 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
3750    { (exit 1); exit 1; }; }
3751 fi
3752 cat >conftest.$ac_ext <<_ACEOF
3753 /* confdefs.h.  */
3754 _ACEOF
3755 cat confdefs.h >>conftest.$ac_ext
3756 cat >>conftest.$ac_ext <<_ACEOF
3757 /* end confdefs.h.  */
3758
3759 int
3760 main ()
3761 {
3762
3763   ;
3764   return 0;
3765 }
3766 _ACEOF
3767 rm -f conftest.$ac_objext conftest$ac_exeext
3768 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3769   (eval $ac_link) 2>conftest.er1
3770   ac_status=$?
3771   grep -v '^ *+' conftest.er1 >conftest.err
3772   rm -f conftest.er1
3773   cat conftest.err >&5
3774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3775   (exit $ac_status); } &&
3776          { ac_try='test -z "$ac_c_werror_flag"
3777                          || test ! -s conftest.err'
3778   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3779   (eval $ac_try) 2>&5
3780   ac_status=$?
3781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3782   (exit $ac_status); }; } &&
3783          { ac_try='test -s conftest$ac_exeext'
3784   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3785   (eval $ac_try) 2>&5
3786   ac_status=$?
3787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3788   (exit $ac_status); }; }; then
3789   lt_cv_cc_needs_belf=yes
3790 else
3791   echo "$as_me: failed program was:" >&5
3792 sed 's/^/| /' conftest.$ac_ext >&5
3793
3794 lt_cv_cc_needs_belf=no
3795 fi
3796 rm -f conftest.err conftest.$ac_objext \
3797       conftest$ac_exeext conftest.$ac_ext
3798      ac_ext=c
3799 ac_cpp='$CPP $CPPFLAGS'
3800 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3801 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3802 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3803
3804 fi
3805 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
3806 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
3807   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3808     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3809     CFLAGS="$SAVE_CFLAGS"
3810   fi
3811   ;;
3812
3813
3814 esac
3815
3816
3817 # Save cache, so that ltconfig can load it
3818 cat >confcache <<\_ACEOF
3819 # This file is a shell script that caches the results of configure
3820 # tests run on this system so they can be shared between configure
3821 # scripts and configure runs, see configure's option --config-cache.
3822 # It is not useful on other systems.  If it contains results you don't
3823 # want to keep, you may remove or edit it.
3824 #
3825 # config.status only pays attention to the cache file if you give it
3826 # the --recheck option to rerun configure.
3827 #
3828 # `ac_cv_env_foo' variables (set or unset) will be overridden when
3829 # loading this file, other *unset* `ac_cv_foo' will be assigned the
3830 # following values.
3831
3832 _ACEOF
3833
3834 # The following way of writing the cache mishandles newlines in values,
3835 # but we know of no workaround that is simple, portable, and efficient.
3836 # So, don't put newlines in cache variables' values.
3837 # Ultrix sh set writes to stderr and can't be redirected directly,
3838 # and sets the high bit in the cache file unless we assign to the vars.
3839 {
3840   (set) 2>&1 |
3841     case `(ac_space=' '; set | grep ac_space) 2>&1` in
3842     *ac_space=\ *)
3843       # `set' does not quote correctly, so add quotes (double-quote
3844       # substitution turns \\\\ into \\, and sed turns \\ into \).
3845       sed -n \
3846         "s/'/'\\\\''/g;
3847           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
3848       ;;
3849     *)
3850       # `set' quotes correctly as required by POSIX, so do not add quotes.
3851       sed -n \
3852         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
3853       ;;
3854     esac;
3855 } |
3856   sed '
3857      t clear
3858      : clear
3859      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
3860      t end
3861      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
3862      : end' >>confcache
3863 if diff $cache_file confcache >/dev/null 2>&1; then :; else
3864   if test -w $cache_file; then
3865     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
3866     cat confcache >$cache_file
3867   else
3868     echo "not updating unwritable cache $cache_file"
3869   fi
3870 fi
3871 rm -f confcache
3872
3873 # Actually configure libtool.  ac_aux_dir is where install-sh is found.
3874 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
3875 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
3876 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
3877 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
3878 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
3879 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
3880 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
3881 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
3882 || { { echo "$as_me:$LINENO: error: libtool configure failed" >&5
3883 echo "$as_me: error: libtool configure failed" >&2;}
3884    { (exit 1); exit 1; }; }
3885
3886 # Reload cache, that may have been modified by ltconfig
3887 if test -r "$cache_file"; then
3888   # Some versions of bash will fail to source /dev/null (special
3889   # files actually), so we avoid doing that.
3890   if test -f "$cache_file"; then
3891     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
3892 echo "$as_me: loading cache $cache_file" >&6;}
3893     case $cache_file in
3894       [\\/]* | ?:[\\/]* ) . $cache_file;;
3895       *)                      . ./$cache_file;;
3896     esac
3897   fi
3898 else
3899   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
3900 echo "$as_me: creating cache $cache_file" >&6;}
3901   >$cache_file
3902 fi
3903
3904
3905 # This can be used to rebuild libtool when needed
3906 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
3907
3908 # Always use our own libtool.
3909 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
3910
3911 # Redirect the config.log output again, so that the ltconfig log is not
3912 # clobbered by the next message.
3913 exec 5>>./config.log
3914
3915
3916
3917
3918
3919
3920
3921 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3922 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
3923 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
3924 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3925   echo $ECHO_N "(cached) $ECHO_C" >&6
3926 else
3927   cat >conftest.make <<\_ACEOF
3928 all:
3929         @echo 'ac_maketemp="$(MAKE)"'
3930 _ACEOF
3931 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3932 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3933 if test -n "$ac_maketemp"; then
3934   eval ac_cv_prog_make_${ac_make}_set=yes
3935 else
3936   eval ac_cv_prog_make_${ac_make}_set=no
3937 fi
3938 rm -f conftest.make
3939 fi
3940 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3941   echo "$as_me:$LINENO: result: yes" >&5
3942 echo "${ECHO_T}yes" >&6
3943   SET_MAKE=
3944 else
3945   echo "$as_me:$LINENO: result: no" >&5
3946 echo "${ECHO_T}no" >&6
3947   SET_MAKE="MAKE=${MAKE-make}"
3948 fi
3949
3950
3951 # -------
3952 # Headers
3953 # -------
3954
3955 # Sanity check for the cross-compilation case:
3956 ac_ext=c
3957 ac_cpp='$CPP $CPPFLAGS'
3958 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3959 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3960 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3961 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3962 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3963 # On Suns, sometimes $CPP names a directory.
3964 if test -n "$CPP" && test -d "$CPP"; then
3965   CPP=
3966 fi
3967 if test -z "$CPP"; then
3968   if test "${ac_cv_prog_CPP+set}" = set; then
3969   echo $ECHO_N "(cached) $ECHO_C" >&6
3970 else
3971       # Double quotes because CPP needs to be expanded
3972     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3973     do
3974       ac_preproc_ok=false
3975 for ac_c_preproc_warn_flag in '' yes
3976 do
3977   # Use a header file that comes with gcc, so configuring glibc
3978   # with a fresh cross-compiler works.
3979   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3980   # <limits.h> exists even on freestanding compilers.
3981   # On the NeXT, cc -E runs the code through the compiler's parser,
3982   # not just through cpp. "Syntax error" is here to catch this case.
3983   cat >conftest.$ac_ext <<_ACEOF
3984 /* confdefs.h.  */
3985 _ACEOF
3986 cat confdefs.h >>conftest.$ac_ext
3987 cat >>conftest.$ac_ext <<_ACEOF
3988 /* end confdefs.h.  */
3989 #ifdef __STDC__
3990 # include <limits.h>
3991 #else
3992 # include <assert.h>
3993 #endif
3994                      Syntax error
3995 _ACEOF
3996 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3997   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3998   ac_status=$?
3999   grep -v '^ *+' conftest.er1 >conftest.err
4000   rm -f conftest.er1
4001   cat conftest.err >&5
4002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4003   (exit $ac_status); } >/dev/null; then
4004   if test -s conftest.err; then
4005     ac_cpp_err=$ac_c_preproc_warn_flag
4006     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4007   else
4008     ac_cpp_err=
4009   fi
4010 else
4011   ac_cpp_err=yes
4012 fi
4013 if test -z "$ac_cpp_err"; then
4014   :
4015 else
4016   echo "$as_me: failed program was:" >&5
4017 sed 's/^/| /' conftest.$ac_ext >&5
4018
4019   # Broken: fails on valid input.
4020 continue
4021 fi
4022 rm -f conftest.err conftest.$ac_ext
4023
4024   # OK, works on sane cases.  Now check whether non-existent headers
4025   # can be detected and how.
4026   cat >conftest.$ac_ext <<_ACEOF
4027 /* confdefs.h.  */
4028 _ACEOF
4029 cat confdefs.h >>conftest.$ac_ext
4030 cat >>conftest.$ac_ext <<_ACEOF
4031 /* end confdefs.h.  */
4032 #include <ac_nonexistent.h>
4033 _ACEOF
4034 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4035   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4036   ac_status=$?
4037   grep -v '^ *+' conftest.er1 >conftest.err
4038   rm -f conftest.er1
4039   cat conftest.err >&5
4040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4041   (exit $ac_status); } >/dev/null; then
4042   if test -s conftest.err; then
4043     ac_cpp_err=$ac_c_preproc_warn_flag
4044     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4045   else
4046     ac_cpp_err=
4047   fi
4048 else
4049   ac_cpp_err=yes
4050 fi
4051 if test -z "$ac_cpp_err"; then
4052   # Broken: success on invalid input.
4053 continue
4054 else
4055   echo "$as_me: failed program was:" >&5
4056 sed 's/^/| /' conftest.$ac_ext >&5
4057
4058   # Passes both tests.
4059 ac_preproc_ok=:
4060 break
4061 fi
4062 rm -f conftest.err conftest.$ac_ext
4063
4064 done
4065 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4066 rm -f conftest.err conftest.$ac_ext
4067 if $ac_preproc_ok; then
4068   break
4069 fi
4070
4071     done
4072     ac_cv_prog_CPP=$CPP
4073
4074 fi
4075   CPP=$ac_cv_prog_CPP
4076 else
4077   ac_cv_prog_CPP=$CPP
4078 fi
4079 echo "$as_me:$LINENO: result: $CPP" >&5
4080 echo "${ECHO_T}$CPP" >&6
4081 ac_preproc_ok=false
4082 for ac_c_preproc_warn_flag in '' yes
4083 do
4084   # Use a header file that comes with gcc, so configuring glibc
4085   # with a fresh cross-compiler works.
4086   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4087   # <limits.h> exists even on freestanding compilers.
4088   # On the NeXT, cc -E runs the code through the compiler's parser,
4089   # not just through cpp. "Syntax error" is here to catch this case.
4090   cat >conftest.$ac_ext <<_ACEOF
4091 /* confdefs.h.  */
4092 _ACEOF
4093 cat confdefs.h >>conftest.$ac_ext
4094 cat >>conftest.$ac_ext <<_ACEOF
4095 /* end confdefs.h.  */
4096 #ifdef __STDC__
4097 # include <limits.h>
4098 #else
4099 # include <assert.h>
4100 #endif
4101                      Syntax error
4102 _ACEOF
4103 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4104   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4105   ac_status=$?
4106   grep -v '^ *+' conftest.er1 >conftest.err
4107   rm -f conftest.er1
4108   cat conftest.err >&5
4109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4110   (exit $ac_status); } >/dev/null; then
4111   if test -s conftest.err; then
4112     ac_cpp_err=$ac_c_preproc_warn_flag
4113     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4114   else
4115     ac_cpp_err=
4116   fi
4117 else
4118   ac_cpp_err=yes
4119 fi
4120 if test -z "$ac_cpp_err"; then
4121   :
4122 else
4123   echo "$as_me: failed program was:" >&5
4124 sed 's/^/| /' conftest.$ac_ext >&5
4125
4126   # Broken: fails on valid input.
4127 continue
4128 fi
4129 rm -f conftest.err conftest.$ac_ext
4130
4131   # OK, works on sane cases.  Now check whether non-existent headers
4132   # can be detected and how.
4133   cat >conftest.$ac_ext <<_ACEOF
4134 /* confdefs.h.  */
4135 _ACEOF
4136 cat confdefs.h >>conftest.$ac_ext
4137 cat >>conftest.$ac_ext <<_ACEOF
4138 /* end confdefs.h.  */
4139 #include <ac_nonexistent.h>
4140 _ACEOF
4141 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4142   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4143   ac_status=$?
4144   grep -v '^ *+' conftest.er1 >conftest.err
4145   rm -f conftest.er1
4146   cat conftest.err >&5
4147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4148   (exit $ac_status); } >/dev/null; then
4149   if test -s conftest.err; then
4150     ac_cpp_err=$ac_c_preproc_warn_flag
4151     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4152   else
4153     ac_cpp_err=
4154   fi
4155 else
4156   ac_cpp_err=yes
4157 fi
4158 if test -z "$ac_cpp_err"; then
4159   # Broken: success on invalid input.
4160 continue
4161 else
4162   echo "$as_me: failed program was:" >&5
4163 sed 's/^/| /' conftest.$ac_ext >&5
4164
4165   # Passes both tests.
4166 ac_preproc_ok=:
4167 break
4168 fi
4169 rm -f conftest.err conftest.$ac_ext
4170
4171 done
4172 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4173 rm -f conftest.err conftest.$ac_ext
4174 if $ac_preproc_ok; then
4175   :
4176 else
4177   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4178 See \`config.log' for more details." >&5
4179 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4180 See \`config.log' for more details." >&2;}
4181    { (exit 1); exit 1; }; }
4182 fi
4183
4184 ac_ext=c
4185 ac_cpp='$CPP $CPPFLAGS'
4186 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4187 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4188 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4189
4190
4191 echo "$as_me:$LINENO: checking for egrep" >&5
4192 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4193 if test "${ac_cv_prog_egrep+set}" = set; then
4194   echo $ECHO_N "(cached) $ECHO_C" >&6
4195 else
4196   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4197     then ac_cv_prog_egrep='grep -E'
4198     else ac_cv_prog_egrep='egrep'
4199     fi
4200 fi
4201 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4202 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4203  EGREP=$ac_cv_prog_egrep
4204
4205
4206 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4207 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4208 if test "${ac_cv_header_stdc+set}" = set; then
4209   echo $ECHO_N "(cached) $ECHO_C" >&6
4210 else
4211   cat >conftest.$ac_ext <<_ACEOF
4212 /* confdefs.h.  */
4213 _ACEOF
4214 cat confdefs.h >>conftest.$ac_ext
4215 cat >>conftest.$ac_ext <<_ACEOF
4216 /* end confdefs.h.  */
4217 #include <stdlib.h>
4218 #include <stdarg.h>
4219 #include <string.h>
4220 #include <float.h>
4221
4222 int
4223 main ()
4224 {
4225
4226   ;
4227   return 0;
4228 }
4229 _ACEOF
4230 rm -f conftest.$ac_objext
4231 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4232   (eval $ac_compile) 2>conftest.er1
4233   ac_status=$?
4234   grep -v '^ *+' conftest.er1 >conftest.err
4235   rm -f conftest.er1
4236   cat conftest.err >&5
4237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4238   (exit $ac_status); } &&
4239          { ac_try='test -z "$ac_c_werror_flag"
4240                          || test ! -s conftest.err'
4241   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4242   (eval $ac_try) 2>&5
4243   ac_status=$?
4244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4245   (exit $ac_status); }; } &&
4246          { ac_try='test -s conftest.$ac_objext'
4247   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4248   (eval $ac_try) 2>&5
4249   ac_status=$?
4250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4251   (exit $ac_status); }; }; then
4252   ac_cv_header_stdc=yes
4253 else
4254   echo "$as_me: failed program was:" >&5
4255 sed 's/^/| /' conftest.$ac_ext >&5
4256
4257 ac_cv_header_stdc=no
4258 fi
4259 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4260
4261 if test $ac_cv_header_stdc = yes; then
4262   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4263   cat >conftest.$ac_ext <<_ACEOF
4264 /* confdefs.h.  */
4265 _ACEOF
4266 cat confdefs.h >>conftest.$ac_ext
4267 cat >>conftest.$ac_ext <<_ACEOF
4268 /* end confdefs.h.  */
4269 #include <string.h>
4270
4271 _ACEOF
4272 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4273   $EGREP "memchr" >/dev/null 2>&1; then
4274   :
4275 else
4276   ac_cv_header_stdc=no
4277 fi
4278 rm -f conftest*
4279
4280 fi
4281
4282 if test $ac_cv_header_stdc = yes; then
4283   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4284   cat >conftest.$ac_ext <<_ACEOF
4285 /* confdefs.h.  */
4286 _ACEOF
4287 cat confdefs.h >>conftest.$ac_ext
4288 cat >>conftest.$ac_ext <<_ACEOF
4289 /* end confdefs.h.  */
4290 #include <stdlib.h>
4291
4292 _ACEOF
4293 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4294   $EGREP "free" >/dev/null 2>&1; then
4295   :
4296 else
4297   ac_cv_header_stdc=no
4298 fi
4299 rm -f conftest*
4300
4301 fi
4302
4303 if test $ac_cv_header_stdc = yes; then
4304   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4305   if test "$cross_compiling" = yes; then
4306   :
4307 else
4308   cat >conftest.$ac_ext <<_ACEOF
4309 /* confdefs.h.  */
4310 _ACEOF
4311 cat confdefs.h >>conftest.$ac_ext
4312 cat >>conftest.$ac_ext <<_ACEOF
4313 /* end confdefs.h.  */
4314 #include <ctype.h>
4315 #if ((' ' & 0x0FF) == 0x020)
4316 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4317 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4318 #else
4319 # define ISLOWER(c) \
4320                    (('a' <= (c) && (c) <= 'i') \
4321                      || ('j' <= (c) && (c) <= 'r') \
4322                      || ('s' <= (c) && (c) <= 'z'))
4323 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4324 #endif
4325
4326 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4327 int
4328 main ()
4329 {
4330   int i;
4331   for (i = 0; i < 256; i++)
4332     if (XOR (islower (i), ISLOWER (i))
4333         || toupper (i) != TOUPPER (i))
4334       exit(2);
4335   exit (0);
4336 }
4337 _ACEOF
4338 rm -f conftest$ac_exeext
4339 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4340   (eval $ac_link) 2>&5
4341   ac_status=$?
4342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4343   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4344   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4345   (eval $ac_try) 2>&5
4346   ac_status=$?
4347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4348   (exit $ac_status); }; }; then
4349   :
4350 else
4351   echo "$as_me: program exited with status $ac_status" >&5
4352 echo "$as_me: failed program was:" >&5
4353 sed 's/^/| /' conftest.$ac_ext >&5
4354
4355 ( exit $ac_status )
4356 ac_cv_header_stdc=no
4357 fi
4358 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4359 fi
4360 fi
4361 fi
4362 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4363 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4364 if test $ac_cv_header_stdc = yes; then
4365
4366 cat >>confdefs.h <<\_ACEOF
4367 #define STDC_HEADERS 1
4368 _ACEOF
4369
4370 fi
4371
4372 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4373
4374
4375
4376
4377
4378
4379
4380
4381
4382 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4383                   inttypes.h stdint.h unistd.h
4384 do
4385 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4386 echo "$as_me:$LINENO: checking for $ac_header" >&5
4387 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4388 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4389   echo $ECHO_N "(cached) $ECHO_C" >&6
4390 else
4391   cat >conftest.$ac_ext <<_ACEOF
4392 /* confdefs.h.  */
4393 _ACEOF
4394 cat confdefs.h >>conftest.$ac_ext
4395 cat >>conftest.$ac_ext <<_ACEOF
4396 /* end confdefs.h.  */
4397 $ac_includes_default
4398
4399 #include <$ac_header>
4400 _ACEOF
4401 rm -f conftest.$ac_objext
4402 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4403   (eval $ac_compile) 2>conftest.er1
4404   ac_status=$?
4405   grep -v '^ *+' conftest.er1 >conftest.err
4406   rm -f conftest.er1
4407   cat conftest.err >&5
4408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4409   (exit $ac_status); } &&
4410          { ac_try='test -z "$ac_c_werror_flag"
4411                          || test ! -s conftest.err'
4412   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4413   (eval $ac_try) 2>&5
4414   ac_status=$?
4415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4416   (exit $ac_status); }; } &&
4417          { ac_try='test -s conftest.$ac_objext'
4418   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4419   (eval $ac_try) 2>&5
4420   ac_status=$?
4421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4422   (exit $ac_status); }; }; then
4423   eval "$as_ac_Header=yes"
4424 else
4425   echo "$as_me: failed program was:" >&5
4426 sed 's/^/| /' conftest.$ac_ext >&5
4427
4428 eval "$as_ac_Header=no"
4429 fi
4430 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4431 fi
4432 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4433 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4434 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4435   cat >>confdefs.h <<_ACEOF
4436 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4437 _ACEOF
4438
4439 fi
4440
4441 done
4442
4443
4444 if test "${ac_cv_header_stdio_h+set}" = set; then
4445   echo "$as_me:$LINENO: checking for stdio.h" >&5
4446 echo $ECHO_N "checking for stdio.h... $ECHO_C" >&6
4447 if test "${ac_cv_header_stdio_h+set}" = set; then
4448   echo $ECHO_N "(cached) $ECHO_C" >&6
4449 fi
4450 echo "$as_me:$LINENO: result: $ac_cv_header_stdio_h" >&5
4451 echo "${ECHO_T}$ac_cv_header_stdio_h" >&6
4452 else
4453   # Is the header compilable?
4454 echo "$as_me:$LINENO: checking stdio.h usability" >&5
4455 echo $ECHO_N "checking stdio.h usability... $ECHO_C" >&6
4456 cat >conftest.$ac_ext <<_ACEOF
4457 /* confdefs.h.  */
4458 _ACEOF
4459 cat confdefs.h >>conftest.$ac_ext
4460 cat >>conftest.$ac_ext <<_ACEOF
4461 /* end confdefs.h.  */
4462 $ac_includes_default
4463 #include <stdio.h>
4464 _ACEOF
4465 rm -f conftest.$ac_objext
4466 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4467   (eval $ac_compile) 2>conftest.er1
4468   ac_status=$?
4469   grep -v '^ *+' conftest.er1 >conftest.err
4470   rm -f conftest.er1
4471   cat conftest.err >&5
4472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4473   (exit $ac_status); } &&
4474          { ac_try='test -z "$ac_c_werror_flag"
4475                          || test ! -s conftest.err'
4476   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4477   (eval $ac_try) 2>&5
4478   ac_status=$?
4479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4480   (exit $ac_status); }; } &&
4481          { ac_try='test -s conftest.$ac_objext'
4482   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4483   (eval $ac_try) 2>&5
4484   ac_status=$?
4485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4486   (exit $ac_status); }; }; then
4487   ac_header_compiler=yes
4488 else
4489   echo "$as_me: failed program was:" >&5
4490 sed 's/^/| /' conftest.$ac_ext >&5
4491
4492 ac_header_compiler=no
4493 fi
4494 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4495 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4496 echo "${ECHO_T}$ac_header_compiler" >&6
4497
4498 # Is the header present?
4499 echo "$as_me:$LINENO: checking stdio.h presence" >&5
4500 echo $ECHO_N "checking stdio.h presence... $ECHO_C" >&6
4501 cat >conftest.$ac_ext <<_ACEOF
4502 /* confdefs.h.  */
4503 _ACEOF
4504 cat confdefs.h >>conftest.$ac_ext
4505 cat >>conftest.$ac_ext <<_ACEOF
4506 /* end confdefs.h.  */
4507 #include <stdio.h>
4508 _ACEOF
4509 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4510   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4511   ac_status=$?
4512   grep -v '^ *+' conftest.er1 >conftest.err
4513   rm -f conftest.er1
4514   cat conftest.err >&5
4515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4516   (exit $ac_status); } >/dev/null; then
4517   if test -s conftest.err; then
4518     ac_cpp_err=$ac_c_preproc_warn_flag
4519     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4520   else
4521     ac_cpp_err=
4522   fi
4523 else
4524   ac_cpp_err=yes
4525 fi
4526 if test -z "$ac_cpp_err"; then
4527   ac_header_preproc=yes
4528 else
4529   echo "$as_me: failed program was:" >&5
4530 sed 's/^/| /' conftest.$ac_ext >&5
4531
4532   ac_header_preproc=no
4533 fi
4534 rm -f conftest.err conftest.$ac_ext
4535 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4536 echo "${ECHO_T}$ac_header_preproc" >&6
4537
4538 # So?  What about this header?
4539 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4540   yes:no: )
4541     { echo "$as_me:$LINENO: WARNING: stdio.h: accepted by the compiler, rejected by the preprocessor!" >&5
4542 echo "$as_me: WARNING: stdio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4543     { echo "$as_me:$LINENO: WARNING: stdio.h: proceeding with the compiler's result" >&5
4544 echo "$as_me: WARNING: stdio.h: proceeding with the compiler's result" >&2;}
4545     ac_header_preproc=yes
4546     ;;
4547   no:yes:* )
4548     { echo "$as_me:$LINENO: WARNING: stdio.h: present but cannot be compiled" >&5
4549 echo "$as_me: WARNING: stdio.h: present but cannot be compiled" >&2;}
4550     { echo "$as_me:$LINENO: WARNING: stdio.h:     check for missing prerequisite headers?" >&5
4551 echo "$as_me: WARNING: stdio.h:     check for missing prerequisite headers?" >&2;}
4552     { echo "$as_me:$LINENO: WARNING: stdio.h: see the Autoconf documentation" >&5
4553 echo "$as_me: WARNING: stdio.h: see the Autoconf documentation" >&2;}
4554     { echo "$as_me:$LINENO: WARNING: stdio.h:     section \"Present But Cannot Be Compiled\"" >&5
4555 echo "$as_me: WARNING: stdio.h:     section \"Present But Cannot Be Compiled\"" >&2;}
4556     { echo "$as_me:$LINENO: WARNING: stdio.h: proceeding with the preprocessor's result" >&5
4557 echo "$as_me: WARNING: stdio.h: proceeding with the preprocessor's result" >&2;}
4558     { echo "$as_me:$LINENO: WARNING: stdio.h: in the future, the compiler will take precedence" >&5
4559 echo "$as_me: WARNING: stdio.h: in the future, the compiler will take precedence" >&2;}
4560     (
4561       cat <<\_ASBOX
4562 ## ------------------------------------------ ##
4563 ## Report this to the AC_PACKAGE_NAME lists.  ##
4564 ## ------------------------------------------ ##
4565 _ASBOX
4566     ) |
4567       sed "s/^/$as_me: WARNING:     /" >&2
4568     ;;
4569 esac
4570 echo "$as_me:$LINENO: checking for stdio.h" >&5
4571 echo $ECHO_N "checking for stdio.h... $ECHO_C" >&6
4572 if test "${ac_cv_header_stdio_h+set}" = set; then
4573   echo $ECHO_N "(cached) $ECHO_C" >&6
4574 else
4575   ac_cv_header_stdio_h=$ac_header_preproc
4576 fi
4577 echo "$as_me:$LINENO: result: $ac_cv_header_stdio_h" >&5
4578 echo "${ECHO_T}$ac_cv_header_stdio_h" >&6
4579
4580 fi
4581 if test $ac_cv_header_stdio_h = yes; then
4582   :
4583 else
4584   { { echo "$as_me:$LINENO: error: Can't find stdio.h.
4585 You must have a usable C system for the target already installed, at least
4586 including headers and, preferably, the library, before you can configure
4587 the Objective C runtime system.  If necessary, install gcc now with
4588 \`LANGUAGES=c', then the target library, then build with \`LANGUAGES=objc'." >&5
4589 echo "$as_me: error: Can't find stdio.h.
4590 You must have a usable C system for the target already installed, at least
4591 including headers and, preferably, the library, before you can configure
4592 the Objective C runtime system.  If necessary, install gcc now with
4593 \`LANGUAGES=c', then the target library, then build with \`LANGUAGES=objc'." >&2;}
4594    { (exit 1); exit 1; }; }
4595 fi
4596
4597
4598
4599 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4600 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4601 if test "${ac_cv_header_stdc+set}" = set; then
4602   echo $ECHO_N "(cached) $ECHO_C" >&6
4603 else
4604   cat >conftest.$ac_ext <<_ACEOF
4605 /* confdefs.h.  */
4606 _ACEOF
4607 cat confdefs.h >>conftest.$ac_ext
4608 cat >>conftest.$ac_ext <<_ACEOF
4609 /* end confdefs.h.  */
4610 #include <stdlib.h>
4611 #include <stdarg.h>
4612 #include <string.h>
4613 #include <float.h>
4614
4615 int
4616 main ()
4617 {
4618
4619   ;
4620   return 0;
4621 }
4622 _ACEOF
4623 rm -f conftest.$ac_objext
4624 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4625   (eval $ac_compile) 2>conftest.er1
4626   ac_status=$?
4627   grep -v '^ *+' conftest.er1 >conftest.err
4628   rm -f conftest.er1
4629   cat conftest.err >&5
4630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4631   (exit $ac_status); } &&
4632          { ac_try='test -z "$ac_c_werror_flag"
4633                          || test ! -s conftest.err'
4634   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4635   (eval $ac_try) 2>&5
4636   ac_status=$?
4637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4638   (exit $ac_status); }; } &&
4639          { ac_try='test -s conftest.$ac_objext'
4640   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4641   (eval $ac_try) 2>&5
4642   ac_status=$?
4643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4644   (exit $ac_status); }; }; then
4645   ac_cv_header_stdc=yes
4646 else
4647   echo "$as_me: failed program was:" >&5
4648 sed 's/^/| /' conftest.$ac_ext >&5
4649
4650 ac_cv_header_stdc=no
4651 fi
4652 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4653
4654 if test $ac_cv_header_stdc = yes; then
4655   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4656   cat >conftest.$ac_ext <<_ACEOF
4657 /* confdefs.h.  */
4658 _ACEOF
4659 cat confdefs.h >>conftest.$ac_ext
4660 cat >>conftest.$ac_ext <<_ACEOF
4661 /* end confdefs.h.  */
4662 #include <string.h>
4663
4664 _ACEOF
4665 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4666   $EGREP "memchr" >/dev/null 2>&1; then
4667   :
4668 else
4669   ac_cv_header_stdc=no
4670 fi
4671 rm -f conftest*
4672
4673 fi
4674
4675 if test $ac_cv_header_stdc = yes; then
4676   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4677   cat >conftest.$ac_ext <<_ACEOF
4678 /* confdefs.h.  */
4679 _ACEOF
4680 cat confdefs.h >>conftest.$ac_ext
4681 cat >>conftest.$ac_ext <<_ACEOF
4682 /* end confdefs.h.  */
4683 #include <stdlib.h>
4684
4685 _ACEOF
4686 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4687   $EGREP "free" >/dev/null 2>&1; then
4688   :
4689 else
4690   ac_cv_header_stdc=no
4691 fi
4692 rm -f conftest*
4693
4694 fi
4695
4696 if test $ac_cv_header_stdc = yes; then
4697   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4698   if test "$cross_compiling" = yes; then
4699   :
4700 else
4701   cat >conftest.$ac_ext <<_ACEOF
4702 /* confdefs.h.  */
4703 _ACEOF
4704 cat confdefs.h >>conftest.$ac_ext
4705 cat >>conftest.$ac_ext <<_ACEOF
4706 /* end confdefs.h.  */
4707 #include <ctype.h>
4708 #if ((' ' & 0x0FF) == 0x020)
4709 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4710 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4711 #else
4712 # define ISLOWER(c) \
4713                    (('a' <= (c) && (c) <= 'i') \
4714                      || ('j' <= (c) && (c) <= 'r') \
4715                      || ('s' <= (c) && (c) <= 'z'))
4716 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4717 #endif
4718
4719 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4720 int
4721 main ()
4722 {
4723   int i;
4724   for (i = 0; i < 256; i++)
4725     if (XOR (islower (i), ISLOWER (i))
4726         || toupper (i) != TOUPPER (i))
4727       exit(2);
4728   exit (0);
4729 }
4730 _ACEOF
4731 rm -f conftest$ac_exeext
4732 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4733   (eval $ac_link) 2>&5
4734   ac_status=$?
4735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4736   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4737   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4738   (eval $ac_try) 2>&5
4739   ac_status=$?
4740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4741   (exit $ac_status); }; }; then
4742   :
4743 else
4744   echo "$as_me: program exited with status $ac_status" >&5
4745 echo "$as_me: failed program was:" >&5
4746 sed 's/^/| /' conftest.$ac_ext >&5
4747
4748 ( exit $ac_status )
4749 ac_cv_header_stdc=no
4750 fi
4751 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4752 fi
4753 fi
4754 fi
4755 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4756 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4757 if test $ac_cv_header_stdc = yes; then
4758
4759 cat >>confdefs.h <<\_ACEOF
4760 #define STDC_HEADERS 1
4761 _ACEOF
4762
4763 fi
4764
4765
4766
4767 for ac_header in sched.h
4768 do
4769 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4770 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4771   echo "$as_me:$LINENO: checking for $ac_header" >&5
4772 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4773 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4774   echo $ECHO_N "(cached) $ECHO_C" >&6
4775 fi
4776 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4777 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4778 else
4779   # Is the header compilable?
4780 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4781 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4782 cat >conftest.$ac_ext <<_ACEOF
4783 /* confdefs.h.  */
4784 _ACEOF
4785 cat confdefs.h >>conftest.$ac_ext
4786 cat >>conftest.$ac_ext <<_ACEOF
4787 /* end confdefs.h.  */
4788 $ac_includes_default
4789 #include <$ac_header>
4790 _ACEOF
4791 rm -f conftest.$ac_objext
4792 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4793   (eval $ac_compile) 2>conftest.er1
4794   ac_status=$?
4795   grep -v '^ *+' conftest.er1 >conftest.err
4796   rm -f conftest.er1
4797   cat conftest.err >&5
4798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4799   (exit $ac_status); } &&
4800          { ac_try='test -z "$ac_c_werror_flag"
4801                          || test ! -s conftest.err'
4802   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4803   (eval $ac_try) 2>&5
4804   ac_status=$?
4805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4806   (exit $ac_status); }; } &&
4807          { ac_try='test -s conftest.$ac_objext'
4808   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4809   (eval $ac_try) 2>&5
4810   ac_status=$?
4811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4812   (exit $ac_status); }; }; then
4813   ac_header_compiler=yes
4814 else
4815   echo "$as_me: failed program was:" >&5
4816 sed 's/^/| /' conftest.$ac_ext >&5
4817
4818 ac_header_compiler=no
4819 fi
4820 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4821 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4822 echo "${ECHO_T}$ac_header_compiler" >&6
4823
4824 # Is the header present?
4825 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4826 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4827 cat >conftest.$ac_ext <<_ACEOF
4828 /* confdefs.h.  */
4829 _ACEOF
4830 cat confdefs.h >>conftest.$ac_ext
4831 cat >>conftest.$ac_ext <<_ACEOF
4832 /* end confdefs.h.  */
4833 #include <$ac_header>
4834 _ACEOF
4835 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4836   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4837   ac_status=$?
4838   grep -v '^ *+' conftest.er1 >conftest.err
4839   rm -f conftest.er1
4840   cat conftest.err >&5
4841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4842   (exit $ac_status); } >/dev/null; then
4843   if test -s conftest.err; then
4844     ac_cpp_err=$ac_c_preproc_warn_flag
4845     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4846   else
4847     ac_cpp_err=
4848   fi
4849 else
4850   ac_cpp_err=yes
4851 fi
4852 if test -z "$ac_cpp_err"; then
4853   ac_header_preproc=yes
4854 else
4855   echo "$as_me: failed program was:" >&5
4856 sed 's/^/| /' conftest.$ac_ext >&5
4857
4858   ac_header_preproc=no
4859 fi
4860 rm -f conftest.err conftest.$ac_ext
4861 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4862 echo "${ECHO_T}$ac_header_preproc" >&6
4863
4864 # So?  What about this header?
4865 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4866   yes:no: )
4867     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4868 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4869     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4870 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4871     ac_header_preproc=yes
4872     ;;
4873   no:yes:* )
4874     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4875 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4876     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4877 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4878     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4879 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4880     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4881 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4882     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4883 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4884     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4885 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4886     (
4887       cat <<\_ASBOX
4888 ## ------------------------------------------ ##
4889 ## Report this to the AC_PACKAGE_NAME lists.  ##
4890 ## ------------------------------------------ ##
4891 _ASBOX
4892     ) |
4893       sed "s/^/$as_me: WARNING:     /" >&2
4894     ;;
4895 esac
4896 echo "$as_me:$LINENO: checking for $ac_header" >&5
4897 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4898 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4899   echo $ECHO_N "(cached) $ECHO_C" >&6
4900 else
4901   eval "$as_ac_Header=\$ac_header_preproc"
4902 fi
4903 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4904 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4905
4906 fi
4907 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4908   cat >>confdefs.h <<_ACEOF
4909 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4910 _ACEOF
4911
4912 fi
4913
4914 done
4915
4916
4917 # -----------
4918 # Miscellanea
4919 # -----------
4920
4921 # Determine CFLAGS for gthread.
4922 # FIXME: the current implementation is dependent on the 'r' variable
4923 # passed down from the top level
4924 echo "$as_me:$LINENO: checking for gthread cflags" >&5
4925 echo $ECHO_N "checking for gthread cflags... $ECHO_C" >&6
4926 if test "${objc_cv_gthread_flags+set}" = set; then
4927   echo $ECHO_N "(cached) $ECHO_C" >&6
4928 else
4929   if test -f "$r"/gcc/Makefile
4930 then
4931   objc_cv_gthread_flags=`grep \^GTHREAD_FLAGS "$r"/gcc/Makefile | awk -F= '{ print $2 }'`
4932 else
4933   { { echo "$as_me:$LINENO: error: not found" >&5
4934 echo "$as_me: error: not found" >&2;}
4935    { (exit 1); exit 1; }; }
4936 fi
4937 fi
4938 echo "$as_me:$LINENO: result: $objc_cv_gthread_flags" >&5
4939 echo "${ECHO_T}$objc_cv_gthread_flags" >&6
4940 GTHREAD_FLAGS=$objc_cv_gthread_flags
4941
4942
4943 # ------
4944 # Output
4945 # ------
4946
4947           ac_config_files="$ac_config_files Makefile"
4948
4949
4950           ac_config_commands="$ac_config_commands default"
4951
4952
4953 cat >confcache <<\_ACEOF
4954 # This file is a shell script that caches the results of configure
4955 # tests run on this system so they can be shared between configure
4956 # scripts and configure runs, see configure's option --config-cache.
4957 # It is not useful on other systems.  If it contains results you don't
4958 # want to keep, you may remove or edit it.
4959 #
4960 # config.status only pays attention to the cache file if you give it
4961 # the --recheck option to rerun configure.
4962 #
4963 # `ac_cv_env_foo' variables (set or unset) will be overridden when
4964 # loading this file, other *unset* `ac_cv_foo' will be assigned the
4965 # following values.
4966
4967 _ACEOF
4968
4969 # The following way of writing the cache mishandles newlines in values,
4970 # but we know of no workaround that is simple, portable, and efficient.
4971 # So, don't put newlines in cache variables' values.
4972 # Ultrix sh set writes to stderr and can't be redirected directly,
4973 # and sets the high bit in the cache file unless we assign to the vars.
4974 {
4975   (set) 2>&1 |
4976     case `(ac_space=' '; set | grep ac_space) 2>&1` in
4977     *ac_space=\ *)
4978       # `set' does not quote correctly, so add quotes (double-quote
4979       # substitution turns \\\\ into \\, and sed turns \\ into \).
4980       sed -n \
4981         "s/'/'\\\\''/g;
4982           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4983       ;;
4984     *)
4985       # `set' quotes correctly as required by POSIX, so do not add quotes.
4986       sed -n \
4987         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
4988       ;;
4989     esac;
4990 } |
4991   sed '
4992      t clear
4993      : clear
4994      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4995      t end
4996      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4997      : end' >>confcache
4998 if diff $cache_file confcache >/dev/null 2>&1; then :; else
4999   if test -w $cache_file; then
5000     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
5001     cat confcache >$cache_file
5002   else
5003     echo "not updating unwritable cache $cache_file"
5004   fi
5005 fi
5006 rm -f confcache
5007
5008 test "x$prefix" = xNONE && prefix=$ac_default_prefix
5009 # Let make expand exec_prefix.
5010 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5011
5012 # VPATH may cause trouble with some makes, so we remove $(srcdir),
5013 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
5014 # trailing colons and then remove the whole line if VPATH becomes empty
5015 # (actually we leave an empty line to preserve line numbers).
5016 if test "x$srcdir" = x.; then
5017   ac_vpsub='/^[  ]*VPATH[        ]*=/{
5018 s/:*\$(srcdir):*/:/;
5019 s/:*\${srcdir}:*/:/;
5020 s/:*@srcdir@:*/:/;
5021 s/^\([^=]*=[     ]*\):*/\1/;
5022 s/:*$//;
5023 s/^[^=]*=[       ]*$//;
5024 }'
5025 fi
5026
5027 # Transform confdefs.h into DEFS.
5028 # Protect against shell expansion while executing Makefile rules.
5029 # Protect against Makefile macro expansion.
5030 #
5031 # If the first sed substitution is executed (which looks for macros that
5032 # take arguments), then we branch to the quote section.  Otherwise,
5033 # look for a macro that doesn't take arguments.
5034 cat >confdef2opt.sed <<\_ACEOF
5035 t clear
5036 : clear
5037 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*([^)]*)\)[   ]*\(.*\),-D\1=\2,g
5038 t quote
5039 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\),-D\1=\2,g
5040 t quote
5041 d
5042 : quote
5043 s,[      `~#$^&*(){}\\|;'"<>?],\\&,g
5044 s,\[,\\&,g
5045 s,\],\\&,g
5046 s,\$,$$,g
5047 p
5048 _ACEOF
5049 # We use echo to avoid assuming a particular line-breaking character.
5050 # The extra dot is to prevent the shell from consuming trailing
5051 # line-breaks from the sub-command output.  A line-break within
5052 # single-quotes doesn't work because, if this script is created in a
5053 # platform that uses two characters for line-breaks (e.g., DOS), tr
5054 # would break.
5055 ac_LF_and_DOT=`echo; echo .`
5056 DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
5057 rm -f confdef2opt.sed
5058
5059
5060 ac_libobjs=
5061 ac_ltlibobjs=
5062 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
5063   # 1. Remove the extension, and $U if already installed.
5064   ac_i=`echo "$ac_i" |
5065          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
5066   # 2. Add them.
5067   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
5068   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
5069 done
5070 LIBOBJS=$ac_libobjs
5071
5072 LTLIBOBJS=$ac_ltlibobjs
5073
5074
5075
5076 : ${CONFIG_STATUS=./config.status}
5077 ac_clean_files_save=$ac_clean_files
5078 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5079 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
5080 echo "$as_me: creating $CONFIG_STATUS" >&6;}
5081 cat >$CONFIG_STATUS <<_ACEOF
5082 #! $SHELL
5083 # Generated by $as_me.
5084 # Run this file to recreate the current configuration.
5085 # Compiler output produced by configure, useful for debugging
5086 # configure, is in config.log if it exists.
5087
5088 debug=false
5089 ac_cs_recheck=false
5090 ac_cs_silent=false
5091 SHELL=\${CONFIG_SHELL-$SHELL}
5092 _ACEOF
5093
5094 cat >>$CONFIG_STATUS <<\_ACEOF
5095 ## --------------------- ##
5096 ## M4sh Initialization.  ##
5097 ## --------------------- ##
5098
5099 # Be Bourne compatible
5100 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
5101   emulate sh
5102   NULLCMD=:
5103   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
5104   # is contrary to our usage.  Disable this feature.
5105   alias -g '${1+"$@"}'='"$@"'
5106 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
5107   set -o posix
5108 fi
5109 DUALCASE=1; export DUALCASE # for MKS sh
5110
5111 # Support unset when possible.
5112 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5113   as_unset=unset
5114 else
5115   as_unset=false
5116 fi
5117
5118
5119 # Work around bugs in pre-3.0 UWIN ksh.
5120 $as_unset ENV MAIL MAILPATH
5121 PS1='$ '
5122 PS2='> '
5123 PS4='+ '
5124
5125 # NLS nuisances.
5126 for as_var in \
5127   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
5128   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
5129   LC_TELEPHONE LC_TIME
5130 do
5131   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
5132     eval $as_var=C; export $as_var
5133   else
5134     $as_unset $as_var
5135   fi
5136 done
5137
5138 # Required to use basename.
5139 if expr a : '\(a\)' >/dev/null 2>&1; then
5140   as_expr=expr
5141 else
5142   as_expr=false
5143 fi
5144
5145 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
5146   as_basename=basename
5147 else
5148   as_basename=false
5149 fi
5150
5151
5152 # Name of the executable.
5153 as_me=`$as_basename "$0" ||
5154 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
5155          X"$0" : 'X\(//\)$' \| \
5156          X"$0" : 'X\(/\)$' \| \
5157          .     : '\(.\)' 2>/dev/null ||
5158 echo X/"$0" |
5159     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
5160           /^X\/\(\/\/\)$/{ s//\1/; q; }
5161           /^X\/\(\/\).*/{ s//\1/; q; }
5162           s/.*/./; q'`
5163
5164
5165 # PATH needs CR, and LINENO needs CR and PATH.
5166 # Avoid depending upon Character Ranges.
5167 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
5168 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
5169 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
5170 as_cr_digits='0123456789'
5171 as_cr_alnum=$as_cr_Letters$as_cr_digits
5172
5173 # The user is always right.
5174 if test "${PATH_SEPARATOR+set}" != set; then
5175   echo "#! /bin/sh" >conf$$.sh
5176   echo  "exit 0"   >>conf$$.sh
5177   chmod +x conf$$.sh
5178   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5179     PATH_SEPARATOR=';'
5180   else
5181     PATH_SEPARATOR=:
5182   fi
5183   rm -f conf$$.sh
5184 fi
5185
5186
5187   as_lineno_1=$LINENO
5188   as_lineno_2=$LINENO
5189   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
5190   test "x$as_lineno_1" != "x$as_lineno_2" &&
5191   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
5192   # Find who we are.  Look in the path if we contain no path at all
5193   # relative or not.
5194   case $0 in
5195     *[\\/]* ) as_myself=$0 ;;
5196     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5197 for as_dir in $PATH
5198 do
5199   IFS=$as_save_IFS
5200   test -z "$as_dir" && as_dir=.
5201   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
5202 done
5203
5204        ;;
5205   esac
5206   # We did not find ourselves, most probably we were run as `sh COMMAND'
5207   # in which case we are not to be found in the path.
5208   if test "x$as_myself" = x; then
5209     as_myself=$0
5210   fi
5211   if test ! -f "$as_myself"; then
5212     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
5213 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
5214    { (exit 1); exit 1; }; }
5215   fi
5216   case $CONFIG_SHELL in
5217   '')
5218     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5219 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
5220 do
5221   IFS=$as_save_IFS
5222   test -z "$as_dir" && as_dir=.
5223   for as_base in sh bash ksh sh5; do
5224          case $as_dir in
5225          /*)
5226            if ("$as_dir/$as_base" -c '
5227   as_lineno_1=$LINENO
5228   as_lineno_2=$LINENO
5229   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
5230   test "x$as_lineno_1" != "x$as_lineno_2" &&
5231   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
5232              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
5233              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
5234              CONFIG_SHELL=$as_dir/$as_base
5235              export CONFIG_SHELL
5236              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
5237            fi;;
5238          esac
5239        done
5240 done
5241 ;;
5242   esac
5243
5244   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
5245   # uniformly replaced by the line number.  The first 'sed' inserts a
5246   # line-number line before each line; the second 'sed' does the real
5247   # work.  The second script uses 'N' to pair each line-number line
5248   # with the numbered line, and appends trailing '-' during
5249   # substitution so that $LINENO is not a special case at line end.
5250   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
5251   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
5252   sed '=' <$as_myself |
5253     sed '
5254       N
5255       s,$,-,
5256       : loop
5257       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
5258       t loop
5259       s,-$,,
5260       s,^['$as_cr_digits']*\n,,
5261     ' >$as_me.lineno &&
5262   chmod +x $as_me.lineno ||
5263     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
5264 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
5265    { (exit 1); exit 1; }; }
5266
5267   # Don't try to exec as it changes $[0], causing all sort of problems
5268   # (the dirname of $[0] is not the place where we might find the
5269   # original and so on.  Autoconf is especially sensible to this).
5270   . ./$as_me.lineno
5271   # Exit status is that of the last command.
5272   exit
5273 }
5274
5275
5276 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
5277   *c*,-n*) ECHO_N= ECHO_C='
5278 ' ECHO_T='      ' ;;
5279   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
5280   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
5281 esac
5282
5283 if expr a : '\(a\)' >/dev/null 2>&1; then
5284   as_expr=expr
5285 else
5286   as_expr=false
5287 fi
5288
5289 rm -f conf$$ conf$$.exe conf$$.file
5290 echo >conf$$.file
5291 if ln -s conf$$.file conf$$ 2>/dev/null; then
5292   # We could just check for DJGPP; but this test a) works b) is more generic
5293   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
5294   if test -f conf$$.exe; then
5295     # Don't use ln at all; we don't have any links
5296     as_ln_s='cp -p'
5297   else
5298     as_ln_s='ln -s'
5299   fi
5300 elif ln conf$$.file conf$$ 2>/dev/null; then
5301   as_ln_s=ln
5302 else
5303   as_ln_s='cp -p'
5304 fi
5305 rm -f conf$$ conf$$.exe conf$$.file
5306
5307 if mkdir -p . 2>/dev/null; then
5308   as_mkdir_p=:
5309 else
5310   test -d ./-p && rmdir ./-p
5311   as_mkdir_p=false
5312 fi
5313
5314 as_executable_p="test -f"
5315
5316 # Sed expression to map a string onto a valid CPP name.
5317 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
5318
5319 # Sed expression to map a string onto a valid variable name.
5320 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
5321
5322
5323 # IFS
5324 # We need space, tab and new line, in precisely that order.
5325 as_nl='
5326 '
5327 IFS="   $as_nl"
5328
5329 # CDPATH.
5330 $as_unset CDPATH
5331
5332 exec 6>&1
5333
5334 # Open the log real soon, to keep \$[0] and so on meaningful, and to
5335 # report actual input values of CONFIG_FILES etc. instead of their
5336 # values after options handling.  Logging --version etc. is OK.
5337 exec 5>>config.log
5338 {
5339   echo
5340   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
5341 ## Running $as_me. ##
5342 _ASBOX
5343 } >&5
5344 cat >&5 <<_CSEOF
5345
5346 This file was extended by $as_me, which was
5347 generated by GNU Autoconf 2.59.  Invocation command line was
5348
5349   CONFIG_FILES    = $CONFIG_FILES
5350   CONFIG_HEADERS  = $CONFIG_HEADERS
5351   CONFIG_LINKS    = $CONFIG_LINKS
5352   CONFIG_COMMANDS = $CONFIG_COMMANDS
5353   $ $0 $@
5354
5355 _CSEOF
5356 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
5357 echo >&5
5358 _ACEOF
5359
5360 # Files that config.status was made for.
5361 if test -n "$ac_config_files"; then
5362   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
5363 fi
5364
5365 if test -n "$ac_config_headers"; then
5366   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
5367 fi
5368
5369 if test -n "$ac_config_links"; then
5370   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
5371 fi
5372
5373 if test -n "$ac_config_commands"; then
5374   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
5375 fi
5376
5377 cat >>$CONFIG_STATUS <<\_ACEOF
5378
5379 ac_cs_usage="\
5380 \`$as_me' instantiates files from templates according to the
5381 current configuration.
5382
5383 Usage: $0 [OPTIONS] [FILE]...
5384
5385   -h, --help       print this help, then exit
5386   -V, --version    print version number, then exit
5387   -q, --quiet      do not print progress messages
5388   -d, --debug      don't remove temporary files
5389       --recheck    update $as_me by reconfiguring in the same conditions
5390   --file=FILE[:TEMPLATE]
5391                    instantiate the configuration file FILE
5392
5393 Configuration files:
5394 $config_files
5395
5396 Configuration commands:
5397 $config_commands
5398
5399 Report bugs to <bug-autoconf@gnu.org>."
5400 _ACEOF
5401
5402 cat >>$CONFIG_STATUS <<_ACEOF
5403 ac_cs_version="\\
5404 config.status
5405 configured by $0, generated by GNU Autoconf 2.59,
5406   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
5407
5408 Copyright (C) 2003 Free Software Foundation, Inc.
5409 This config.status script is free software; the Free Software Foundation
5410 gives unlimited permission to copy, distribute and modify it."
5411 srcdir=$srcdir
5412 INSTALL="$INSTALL"
5413 _ACEOF
5414
5415 cat >>$CONFIG_STATUS <<\_ACEOF
5416 # If no file are specified by the user, then we need to provide default
5417 # value.  By we need to know if files were specified by the user.
5418 ac_need_defaults=:
5419 while test $# != 0
5420 do
5421   case $1 in
5422   --*=*)
5423     ac_option=`expr "x$1" : 'x\([^=]*\)='`
5424     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
5425     ac_shift=:
5426     ;;
5427   -*)
5428     ac_option=$1
5429     ac_optarg=$2
5430     ac_shift=shift
5431     ;;
5432   *) # This is not an option, so the user has probably given explicit
5433      # arguments.
5434      ac_option=$1
5435      ac_need_defaults=false;;
5436   esac
5437
5438   case $ac_option in
5439   # Handling of the options.
5440 _ACEOF
5441 cat >>$CONFIG_STATUS <<\_ACEOF
5442   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5443     ac_cs_recheck=: ;;
5444   --version | --vers* | -V )
5445     echo "$ac_cs_version"; exit 0 ;;
5446   --he | --h)
5447     # Conflict between --help and --header
5448     { { echo "$as_me:$LINENO: error: ambiguous option: $1
5449 Try \`$0 --help' for more information." >&5
5450 echo "$as_me: error: ambiguous option: $1
5451 Try \`$0 --help' for more information." >&2;}
5452    { (exit 1); exit 1; }; };;
5453   --help | --hel | -h )
5454     echo "$ac_cs_usage"; exit 0 ;;
5455   --debug | --d* | -d )
5456     debug=: ;;
5457   --file | --fil | --fi | --f )
5458     $ac_shift
5459     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
5460     ac_need_defaults=false;;
5461   --header | --heade | --head | --hea )
5462     $ac_shift
5463     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
5464     ac_need_defaults=false;;
5465   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
5466   | -silent | --silent | --silen | --sile | --sil | --si | --s)
5467     ac_cs_silent=: ;;
5468
5469   # This is an error.
5470   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
5471 Try \`$0 --help' for more information." >&5
5472 echo "$as_me: error: unrecognized option: $1
5473 Try \`$0 --help' for more information." >&2;}
5474    { (exit 1); exit 1; }; } ;;
5475
5476   *) ac_config_targets="$ac_config_targets $1" ;;
5477
5478   esac
5479   shift
5480 done
5481
5482 ac_configure_extra_args=
5483
5484 if $ac_cs_silent; then
5485   exec 6>/dev/null
5486   ac_configure_extra_args="$ac_configure_extra_args --silent"
5487 fi
5488
5489 _ACEOF
5490 cat >>$CONFIG_STATUS <<_ACEOF
5491 if \$ac_cs_recheck; then
5492   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
5493   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
5494 fi
5495
5496 _ACEOF
5497
5498 cat >>$CONFIG_STATUS <<_ACEOF
5499 #
5500 # INIT-COMMANDS section.
5501 #
5502
5503 srcdir=${srcdir}
5504 host=${host}
5505 target=${target}
5506 with_target_subdir=${with_target_subdir}
5507 with_multisubdir=${with_multisubdir}
5508 ac_configure_args="--enable-multilib ${ac_configure_args}"
5509 toplevel_srcdir=${toplevel_srcdir}
5510 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
5511 ORIGINAL_LD_FOR_MULTILIBS="${ORIGINAL_LD_FOR_MULTILIBS}"
5512
5513
5514 _ACEOF
5515
5516
5517
5518 cat >>$CONFIG_STATUS <<\_ACEOF
5519 for ac_config_target in $ac_config_targets
5520 do
5521   case "$ac_config_target" in
5522   # Handling of arguments.
5523   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
5524   "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
5525   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
5526 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
5527    { (exit 1); exit 1; }; };;
5528   esac
5529 done
5530
5531 # If the user did not use the arguments to specify the items to instantiate,
5532 # then the envvar interface is used.  Set only those that are not.
5533 # We use the long form for the default assignment because of an extremely
5534 # bizarre bug on SunOS 4.1.3.
5535 if $ac_need_defaults; then
5536   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
5537   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
5538 fi
5539
5540 # Have a temporary directory for convenience.  Make it in the build tree
5541 # simply because there is no reason to put it here, and in addition,
5542 # creating and moving files from /tmp can sometimes cause problems.
5543 # Create a temporary directory, and hook for its removal unless debugging.
5544 $debug ||
5545 {
5546   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
5547   trap '{ (exit 1); exit 1; }' 1 2 13 15
5548 }
5549
5550 # Create a (secure) tmp directory for tmp files.
5551
5552 {
5553   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
5554   test -n "$tmp" && test -d "$tmp"
5555 }  ||
5556 {
5557   tmp=./confstat$$-$RANDOM
5558   (umask 077 && mkdir $tmp)
5559 } ||
5560 {
5561    echo "$me: cannot create a temporary directory in ." >&2
5562    { (exit 1); exit 1; }
5563 }
5564
5565 _ACEOF
5566
5567 cat >>$CONFIG_STATUS <<_ACEOF
5568
5569 #
5570 # CONFIG_FILES section.
5571 #
5572
5573 # No need to generate the scripts if there are no CONFIG_FILES.
5574 # This happens for instance when ./config.status config.h
5575 if test -n "\$CONFIG_FILES"; then
5576   # Protect against being on the right side of a sed subst in config.status.
5577   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
5578    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
5579 s,@SHELL@,$SHELL,;t t
5580 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
5581 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
5582 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
5583 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
5584 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
5585 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
5586 s,@exec_prefix@,$exec_prefix,;t t
5587 s,@prefix@,$prefix,;t t
5588 s,@program_transform_name@,$program_transform_name,;t t
5589 s,@bindir@,$bindir,;t t
5590 s,@sbindir@,$sbindir,;t t
5591 s,@libexecdir@,$libexecdir,;t t
5592 s,@datadir@,$datadir,;t t
5593 s,@sysconfdir@,$sysconfdir,;t t
5594 s,@sharedstatedir@,$sharedstatedir,;t t
5595 s,@localstatedir@,$localstatedir,;t t
5596 s,@libdir@,$libdir,;t t
5597 s,@includedir@,$includedir,;t t
5598 s,@oldincludedir@,$oldincludedir,;t t
5599 s,@infodir@,$infodir,;t t
5600 s,@mandir@,$mandir,;t t
5601 s,@build_alias@,$build_alias,;t t
5602 s,@host_alias@,$host_alias,;t t
5603 s,@target_alias@,$target_alias,;t t
5604 s,@DEFS@,$DEFS,;t t
5605 s,@ECHO_C@,$ECHO_C,;t t
5606 s,@ECHO_N@,$ECHO_N,;t t
5607 s,@ECHO_T@,$ECHO_T,;t t
5608 s,@LIBS@,$LIBS,;t t
5609 s,@VERSION@,$VERSION,;t t
5610 s,@OBJC_BOEHM_GC@,$OBJC_BOEHM_GC,;t t
5611 s,@toplevel_srcdir@,$toplevel_srcdir,;t t
5612 s,@build@,$build,;t t
5613 s,@build_cpu@,$build_cpu,;t t
5614 s,@build_vendor@,$build_vendor,;t t
5615 s,@build_os@,$build_os,;t t
5616 s,@host@,$host,;t t
5617 s,@host_cpu@,$host_cpu,;t t
5618 s,@host_vendor@,$host_vendor,;t t
5619 s,@host_os@,$host_os,;t t
5620 s,@target@,$target,;t t
5621 s,@target_cpu@,$target_cpu,;t t
5622 s,@target_vendor@,$target_vendor,;t t
5623 s,@target_os@,$target_os,;t t
5624 s,@target_noncanonical@,$target_noncanonical,;t t
5625 s,@glibcpp_srcdir@,$glibcpp_srcdir,;t t
5626 s,@gcc_version@,$gcc_version,;t t
5627 s,@toolexecdir@,$toolexecdir,;t t
5628 s,@toolexeclibdir@,$toolexeclibdir,;t t
5629 s,@includedirname@,$includedirname,;t t
5630 s,@libext@,$libext,;t t
5631 s,@CC@,$CC,;t t
5632 s,@ac_ct_CC@,$ac_ct_CC,;t t
5633 s,@EXEEXT@,$EXEEXT,;t t
5634 s,@OBJEXT@,$OBJEXT,;t t
5635 s,@CFLAGS@,$CFLAGS,;t t
5636 s,@AS@,$AS,;t t
5637 s,@ac_ct_AS@,$ac_ct_AS,;t t
5638 s,@AR@,$AR,;t t
5639 s,@ac_ct_AR@,$ac_ct_AR,;t t
5640 s,@RANLIB@,$RANLIB,;t t
5641 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
5642 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
5643 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
5644 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
5645 s,@LN_S@,$LN_S,;t t
5646 s,@STRIP@,$STRIP,;t t
5647 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
5648 s,@LIBTOOL@,$LIBTOOL,;t t
5649 s,@SET_MAKE@,$SET_MAKE,;t t
5650 s,@CPP@,$CPP,;t t
5651 s,@CPPFLAGS@,$CPPFLAGS,;t t
5652 s,@EGREP@,$EGREP,;t t
5653 s,@GTHREAD_FLAGS@,$GTHREAD_FLAGS,;t t
5654 s,@LIBOBJS@,$LIBOBJS,;t t
5655 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
5656 CEOF
5657
5658 _ACEOF
5659
5660   cat >>$CONFIG_STATUS <<\_ACEOF
5661   # Split the substitutions into bite-sized pieces for seds with
5662   # small command number limits, like on Digital OSF/1 and HP-UX.
5663   ac_max_sed_lines=48
5664   ac_sed_frag=1 # Number of current file.
5665   ac_beg=1 # First line for current file.
5666   ac_end=$ac_max_sed_lines # Line after last line for current file.
5667   ac_more_lines=:
5668   ac_sed_cmds=
5669   while $ac_more_lines; do
5670     if test $ac_beg -gt 1; then
5671       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
5672     else
5673       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
5674     fi
5675     if test ! -s $tmp/subs.frag; then
5676       ac_more_lines=false
5677     else
5678       # The purpose of the label and of the branching condition is to
5679       # speed up the sed processing (if there are no `@' at all, there
5680       # is no need to browse any of the substitutions).
5681       # These are the two extra sed commands mentioned above.
5682       (echo ':t
5683   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
5684       if test -z "$ac_sed_cmds"; then
5685         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
5686       else
5687         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
5688       fi
5689       ac_sed_frag=`expr $ac_sed_frag + 1`
5690       ac_beg=$ac_end
5691       ac_end=`expr $ac_end + $ac_max_sed_lines`
5692     fi
5693   done
5694   if test -z "$ac_sed_cmds"; then
5695     ac_sed_cmds=cat
5696   fi
5697 fi # test -n "$CONFIG_FILES"
5698
5699 _ACEOF
5700 cat >>$CONFIG_STATUS <<\_ACEOF
5701 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
5702   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5703   case $ac_file in
5704   - | *:- | *:-:* ) # input from stdin
5705         cat >$tmp/stdin
5706         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5707         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5708   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5709         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5710   * )   ac_file_in=$ac_file.in ;;
5711   esac
5712
5713   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
5714   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
5715 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5716          X"$ac_file" : 'X\(//\)[^/]' \| \
5717          X"$ac_file" : 'X\(//\)$' \| \
5718          X"$ac_file" : 'X\(/\)' \| \
5719          .     : '\(.\)' 2>/dev/null ||
5720 echo X"$ac_file" |
5721     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5722           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5723           /^X\(\/\/\)$/{ s//\1/; q; }
5724           /^X\(\/\).*/{ s//\1/; q; }
5725           s/.*/./; q'`
5726   { if $as_mkdir_p; then
5727     mkdir -p "$ac_dir"
5728   else
5729     as_dir="$ac_dir"
5730     as_dirs=
5731     while test ! -d "$as_dir"; do
5732       as_dirs="$as_dir $as_dirs"
5733       as_dir=`(dirname "$as_dir") 2>/dev/null ||
5734 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5735          X"$as_dir" : 'X\(//\)[^/]' \| \
5736          X"$as_dir" : 'X\(//\)$' \| \
5737          X"$as_dir" : 'X\(/\)' \| \
5738          .     : '\(.\)' 2>/dev/null ||
5739 echo X"$as_dir" |
5740     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5741           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5742           /^X\(\/\/\)$/{ s//\1/; q; }
5743           /^X\(\/\).*/{ s//\1/; q; }
5744           s/.*/./; q'`
5745     done
5746     test ! -n "$as_dirs" || mkdir $as_dirs
5747   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
5748 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
5749    { (exit 1); exit 1; }; }; }
5750
5751   ac_builddir=.
5752
5753 if test "$ac_dir" != .; then
5754   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
5755   # A "../" for each directory in $ac_dir_suffix.
5756   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
5757 else
5758   ac_dir_suffix= ac_top_builddir=
5759 fi
5760
5761 case $srcdir in
5762   .)  # No --srcdir option.  We are building in place.
5763     ac_srcdir=.
5764     if test -z "$ac_top_builddir"; then
5765        ac_top_srcdir=.
5766     else
5767        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
5768     fi ;;
5769   [\\/]* | ?:[\\/]* )  # Absolute path.
5770     ac_srcdir=$srcdir$ac_dir_suffix;
5771     ac_top_srcdir=$srcdir ;;
5772   *) # Relative path.
5773     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
5774     ac_top_srcdir=$ac_top_builddir$srcdir ;;
5775 esac
5776
5777 # Do not use `cd foo && pwd` to compute absolute paths, because
5778 # the directories may not exist.
5779 case `pwd` in
5780 .) ac_abs_builddir="$ac_dir";;
5781 *)
5782   case "$ac_dir" in
5783   .) ac_abs_builddir=`pwd`;;
5784   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
5785   *) ac_abs_builddir=`pwd`/"$ac_dir";;
5786   esac;;
5787 esac
5788 case $ac_abs_builddir in
5789 .) ac_abs_top_builddir=${ac_top_builddir}.;;
5790 *)
5791   case ${ac_top_builddir}. in
5792   .) ac_abs_top_builddir=$ac_abs_builddir;;
5793   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
5794   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
5795   esac;;
5796 esac
5797 case $ac_abs_builddir in
5798 .) ac_abs_srcdir=$ac_srcdir;;
5799 *)
5800   case $ac_srcdir in
5801   .) ac_abs_srcdir=$ac_abs_builddir;;
5802   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
5803   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
5804   esac;;
5805 esac
5806 case $ac_abs_builddir in
5807 .) ac_abs_top_srcdir=$ac_top_srcdir;;
5808 *)
5809   case $ac_top_srcdir in
5810   .) ac_abs_top_srcdir=$ac_abs_builddir;;
5811   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
5812   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
5813   esac;;
5814 esac
5815
5816
5817   case $INSTALL in
5818   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
5819   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
5820   esac
5821
5822   if test x"$ac_file" != x-; then
5823     { echo "$as_me:$LINENO: creating $ac_file" >&5
5824 echo "$as_me: creating $ac_file" >&6;}
5825     rm -f "$ac_file"
5826   fi
5827   # Let's still pretend it is `configure' which instantiates (i.e., don't
5828   # use $as_me), people would be surprised to read:
5829   #    /* config.h.  Generated by config.status.  */
5830   if test x"$ac_file" = x-; then
5831     configure_input=
5832   else
5833     configure_input="$ac_file.  "
5834   fi
5835   configure_input=$configure_input"Generated from `echo $ac_file_in |
5836                                      sed 's,.*/,,'` by configure."
5837
5838   # First look for the input files in the build tree, otherwise in the
5839   # src tree.
5840   ac_file_inputs=`IFS=:
5841     for f in $ac_file_in; do
5842       case $f in
5843       -) echo $tmp/stdin ;;
5844       [\\/$]*)
5845          # Absolute (can't be DOS-style, as IFS=:)
5846          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5847 echo "$as_me: error: cannot find input file: $f" >&2;}
5848    { (exit 1); exit 1; }; }
5849          echo "$f";;
5850       *) # Relative
5851          if test -f "$f"; then
5852            # Build tree
5853            echo "$f"
5854          elif test -f "$srcdir/$f"; then
5855            # Source tree
5856            echo "$srcdir/$f"
5857          else
5858            # /dev/null tree
5859            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5860 echo "$as_me: error: cannot find input file: $f" >&2;}
5861    { (exit 1); exit 1; }; }
5862          fi;;
5863       esac
5864     done` || { (exit 1); exit 1; }
5865 _ACEOF
5866 cat >>$CONFIG_STATUS <<_ACEOF
5867   sed "$ac_vpsub
5868 $extrasub
5869 _ACEOF
5870 cat >>$CONFIG_STATUS <<\_ACEOF
5871 :t
5872 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
5873 s,@configure_input@,$configure_input,;t t
5874 s,@srcdir@,$ac_srcdir,;t t
5875 s,@abs_srcdir@,$ac_abs_srcdir,;t t
5876 s,@top_srcdir@,$ac_top_srcdir,;t t
5877 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
5878 s,@builddir@,$ac_builddir,;t t
5879 s,@abs_builddir@,$ac_abs_builddir,;t t
5880 s,@top_builddir@,$ac_top_builddir,;t t
5881 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
5882 s,@INSTALL@,$ac_INSTALL,;t t
5883 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
5884   rm -f $tmp/stdin
5885   if test x"$ac_file" != x-; then
5886     mv $tmp/out $ac_file
5887   else
5888     cat $tmp/out
5889     rm -f $tmp/out
5890   fi
5891
5892 done
5893 _ACEOF
5894 cat >>$CONFIG_STATUS <<\_ACEOF
5895
5896 #
5897 # CONFIG_COMMANDS section.
5898 #
5899 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
5900   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
5901   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
5902   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
5903 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5904          X"$ac_dest" : 'X\(//\)[^/]' \| \
5905          X"$ac_dest" : 'X\(//\)$' \| \
5906          X"$ac_dest" : 'X\(/\)' \| \
5907          .     : '\(.\)' 2>/dev/null ||
5908 echo X"$ac_dest" |
5909     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5910           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5911           /^X\(\/\/\)$/{ s//\1/; q; }
5912           /^X\(\/\).*/{ s//\1/; q; }
5913           s/.*/./; q'`
5914   { if $as_mkdir_p; then
5915     mkdir -p "$ac_dir"
5916   else
5917     as_dir="$ac_dir"
5918     as_dirs=
5919     while test ! -d "$as_dir"; do
5920       as_dirs="$as_dir $as_dirs"
5921       as_dir=`(dirname "$as_dir") 2>/dev/null ||
5922 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5923          X"$as_dir" : 'X\(//\)[^/]' \| \
5924          X"$as_dir" : 'X\(//\)$' \| \
5925          X"$as_dir" : 'X\(/\)' \| \
5926          .     : '\(.\)' 2>/dev/null ||
5927 echo X"$as_dir" |
5928     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5929           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5930           /^X\(\/\/\)$/{ s//\1/; q; }
5931           /^X\(\/\).*/{ s//\1/; q; }
5932           s/.*/./; q'`
5933     done
5934     test ! -n "$as_dirs" || mkdir $as_dirs
5935   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
5936 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
5937    { (exit 1); exit 1; }; }; }
5938
5939   ac_builddir=.
5940
5941 if test "$ac_dir" != .; then
5942   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
5943   # A "../" for each directory in $ac_dir_suffix.
5944   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
5945 else
5946   ac_dir_suffix= ac_top_builddir=
5947 fi
5948
5949 case $srcdir in
5950   .)  # No --srcdir option.  We are building in place.
5951     ac_srcdir=.
5952     if test -z "$ac_top_builddir"; then
5953        ac_top_srcdir=.
5954     else
5955        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
5956     fi ;;
5957   [\\/]* | ?:[\\/]* )  # Absolute path.
5958     ac_srcdir=$srcdir$ac_dir_suffix;
5959     ac_top_srcdir=$srcdir ;;
5960   *) # Relative path.
5961     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
5962     ac_top_srcdir=$ac_top_builddir$srcdir ;;
5963 esac
5964
5965 # Do not use `cd foo && pwd` to compute absolute paths, because
5966 # the directories may not exist.
5967 case `pwd` in
5968 .) ac_abs_builddir="$ac_dir";;
5969 *)
5970   case "$ac_dir" in
5971   .) ac_abs_builddir=`pwd`;;
5972   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
5973   *) ac_abs_builddir=`pwd`/"$ac_dir";;
5974   esac;;
5975 esac
5976 case $ac_abs_builddir in
5977 .) ac_abs_top_builddir=${ac_top_builddir}.;;
5978 *)
5979   case ${ac_top_builddir}. in
5980   .) ac_abs_top_builddir=$ac_abs_builddir;;
5981   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
5982   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
5983   esac;;
5984 esac
5985 case $ac_abs_builddir in
5986 .) ac_abs_srcdir=$ac_srcdir;;
5987 *)
5988   case $ac_srcdir in
5989   .) ac_abs_srcdir=$ac_abs_builddir;;
5990   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
5991   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
5992   esac;;
5993 esac
5994 case $ac_abs_builddir in
5995 .) ac_abs_top_srcdir=$ac_top_srcdir;;
5996 *)
5997   case $ac_top_srcdir in
5998   .) ac_abs_top_srcdir=$ac_abs_builddir;;
5999   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
6000   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
6001   esac;;
6002 esac
6003
6004
6005   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
6006 echo "$as_me: executing $ac_dest commands" >&6;}
6007   case $ac_dest in
6008     default ) if test -n "$CONFIG_FILES"; then
6009   if test -n "${with_target_subdir}"; then
6010     # FIXME: We shouldn't need to set ac_file
6011     ac_file=Makefile
6012     LD="${ORIGINAL_LD_FOR_MULTILIBS}"
6013     . ${toplevel_srcdir}/config-ml.in
6014   fi
6015 fi ;;
6016   esac
6017 done
6018 _ACEOF
6019
6020 cat >>$CONFIG_STATUS <<\_ACEOF
6021
6022 { (exit 0); exit 0; }
6023 _ACEOF
6024 chmod +x $CONFIG_STATUS
6025 ac_clean_files=$ac_clean_files_save
6026
6027
6028 # configure is writing to config.log, and then calls config.status.
6029 # config.status does its own redirection, appending to config.log.
6030 # Unfortunately, on DOS this fails, as config.log is still kept open
6031 # by configure, so config.status won't be able to write to it; its
6032 # output is simply discarded.  So we exec the FD to /dev/null,
6033 # effectively closing config.log, so it can be properly (re)opened and
6034 # appended to by config.status.  When coming back to configure, we
6035 # need to make the FD available again.
6036 if test "$no_create" != yes; then
6037   ac_cs_success=:
6038   ac_config_status_args=
6039   test "$silent" = yes &&
6040     ac_config_status_args="$ac_config_status_args --quiet"
6041   exec 5>/dev/null
6042   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
6043   exec 5>>config.log
6044   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
6045   # would make configure fail if this is the last instruction.
6046   $ac_cs_success || { (exit 1); exit 1; }
6047 fi
6048