OSDN Git Service

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