* configure.in: Remove bogus echo included in
[platform/upstream/glibc.git] / configure
1 #! /bin/sh
2 # From configure.in CVSid.
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.53.
5 #
6 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
7 # Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
10
11 if expr a : '\(a\)' >/dev/null 2>&1; then
12   as_expr=expr
13 else
14   as_expr=false
15 fi
16
17
18 ## --------------------- ##
19 ## M4sh Initialization.  ##
20 ## --------------------- ##
21
22 # Be Bourne compatible
23 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
24   emulate sh
25   NULLCMD=:
26 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
27   set -o posix
28 fi
29
30 # NLS nuisances.
31 # Support unset when possible.
32 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
33   as_unset=unset
34 else
35   as_unset=false
36 fi
37
38 (set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
39     { $as_unset LANG || test "${LANG+set}" != set; } ||
40       { LANG=C; export LANG; }
41 (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
42     { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
43       { LC_ALL=C; export LC_ALL; }
44 (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
45     { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
46       { LC_TIME=C; export LC_TIME; }
47 (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
48     { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
49       { LC_CTYPE=C; export LC_CTYPE; }
50 (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
51     { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
52       { LANGUAGE=C; export LANGUAGE; }
53 (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
54     { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
55       { LC_COLLATE=C; export LC_COLLATE; }
56 (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
57     { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
58       { LC_NUMERIC=C; export LC_NUMERIC; }
59 (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
60     { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
61       { LC_MESSAGES=C; export LC_MESSAGES; }
62
63
64 # Name of the executable.
65 as_me=`(basename "$0") 2>/dev/null ||
66 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
67          X"$0" : 'X\(//\)$' \| \
68          X"$0" : 'X\(/\)$' \| \
69          .     : '\(.\)' 2>/dev/null ||
70 echo X/"$0" |
71     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
72           /^X\/\(\/\/\)$/{ s//\1/; q; }
73           /^X\/\(\/\).*/{ s//\1/; q; }
74           s/.*/./; q'`
75
76 # PATH needs CR, and LINENO needs CR and PATH.
77 # Avoid depending upon Character Ranges.
78 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
79 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
80 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
81 as_cr_digits='0123456789'
82 as_cr_alnum=$as_cr_Letters$as_cr_digits
83
84 # The user is always right.
85 if test "${PATH_SEPARATOR+set}" != set; then
86   echo "#! /bin/sh" >conftest.sh
87   echo  "exit 0"   >>conftest.sh
88   chmod +x conftest.sh
89   if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
90     PATH_SEPARATOR=';'
91   else
92     PATH_SEPARATOR=:
93   fi
94   rm -f conftest.sh
95 fi
96
97
98   as_lineno_1=$LINENO
99   as_lineno_2=$LINENO
100   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
101   test "x$as_lineno_1" != "x$as_lineno_2" &&
102   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
103   # Find who we are.  Look in the path if we contain no path at all
104   # relative or not.
105   case $0 in
106     *[\\/]* ) as_myself=$0 ;;
107     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
108 for as_dir in $PATH
109 do
110   IFS=$as_save_IFS
111   test -z "$as_dir" && as_dir=.
112   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
113 done
114
115        ;;
116   esac
117   # We did not find ourselves, most probably we were run as `sh COMMAND'
118   # in which case we are not to be found in the path.
119   if test "x$as_myself" = x; then
120     as_myself=$0
121   fi
122   if test ! -f "$as_myself"; then
123     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
124    { (exit 1); exit 1; }; }
125   fi
126   case $CONFIG_SHELL in
127   '')
128     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
129 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
130 do
131   IFS=$as_save_IFS
132   test -z "$as_dir" && as_dir=.
133   for as_base in sh bash ksh sh5; do
134          case $as_dir in
135          /*)
136            if ("$as_dir/$as_base" -c '
137   as_lineno_1=$LINENO
138   as_lineno_2=$LINENO
139   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
140   test "x$as_lineno_1" != "x$as_lineno_2" &&
141   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
142              CONFIG_SHELL=$as_dir/$as_base
143              export CONFIG_SHELL
144              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
145            fi;;
146          esac
147        done
148 done
149 ;;
150   esac
151
152   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
153   # uniformly replaced by the line number.  The first 'sed' inserts a
154   # line-number line before each line; the second 'sed' does the real
155   # work.  The second script uses 'N' to pair each line-number line
156   # with the numbered line, and appends trailing '-' during
157   # substitution so that $LINENO is not a special case at line end.
158   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
159   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
160   sed '=' <$as_myself |
161     sed '
162       N
163       s,$,-,
164       : loop
165       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
166       t loop
167       s,-$,,
168       s,^['$as_cr_digits']*\n,,
169     ' >$as_me.lineno &&
170   chmod +x $as_me.lineno ||
171     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
172    { (exit 1); exit 1; }; }
173
174   # Don't try to exec as it changes $[0], causing all sort of problems
175   # (the dirname of $[0] is not the place where we might find the
176   # original and so on.  Autoconf is especially sensible to this).
177   . ./$as_me.lineno
178   # Exit status is that of the last command.
179   exit
180 }
181
182
183 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
184   *c*,-n*) ECHO_N= ECHO_C='
185 ' ECHO_T='      ' ;;
186   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
187   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
188 esac
189
190 if expr a : '\(a\)' >/dev/null 2>&1; then
191   as_expr=expr
192 else
193   as_expr=false
194 fi
195
196 rm -f conf$$ conf$$.exe conf$$.file
197 echo >conf$$.file
198 if ln -s conf$$.file conf$$ 2>/dev/null; then
199   # We could just check for DJGPP; but this test a) works b) is more generic
200   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
201   if test -f conf$$.exe; then
202     # Don't use ln at all; we don't have any links
203     as_ln_s='cp -p'
204   else
205     as_ln_s='ln -s'
206   fi
207 elif ln conf$$.file conf$$ 2>/dev/null; then
208   as_ln_s=ln
209 else
210   as_ln_s='cp -p'
211 fi
212 rm -f conf$$ conf$$.exe conf$$.file
213
214 as_executable_p="test -f"
215
216 # Sed expression to map a string onto a valid CPP name.
217 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
218
219 # Sed expression to map a string onto a valid variable name.
220 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
221
222
223 # IFS
224 # We need space, tab and new line, in precisely that order.
225 as_nl='
226 '
227 IFS="   $as_nl"
228
229 # CDPATH.
230 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
231
232
233 # Name of the host.
234 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
235 # so uname gets run too.
236 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
237
238 exec 6>&1
239
240 #
241 # Initializations.
242 #
243 ac_default_prefix=/usr/local
244 cross_compiling=no
245 subdirs=
246 MFLAGS=
247 MAKEFLAGS=
248 SHELL=${CONFIG_SHELL-/bin/sh}
249
250 # Maximum number of lines to put in a shell here document.
251 # This variable seems obsolete.  It should probably be removed, and
252 # only ac_max_sed_lines should be used.
253 : ${ac_max_here_lines=38}
254
255 # Identity of this package.
256 PACKAGE_NAME=
257 PACKAGE_TARNAME=
258 PACKAGE_VERSION=
259 PACKAGE_STRING=
260 PACKAGE_BUGREPORT=
261
262 ac_unique_file="include/features.h"
263 ac_subdirs_all="$ac_subdirs_all $add_ons"
264 # Factoring default headers for most tests.
265 ac_includes_default="\
266 #include <stdio.h>
267 #if HAVE_SYS_TYPES_H
268 # include <sys/types.h>
269 #endif
270 #if HAVE_SYS_STAT_H
271 # include <sys/stat.h>
272 #endif
273 #if STDC_HEADERS
274 # include <stdlib.h>
275 # include <stddef.h>
276 #else
277 # if HAVE_STDLIB_H
278 #  include <stdlib.h>
279 # endif
280 #endif
281 #if HAVE_STRING_H
282 # if !STDC_HEADERS && HAVE_MEMORY_H
283 #  include <memory.h>
284 # endif
285 # include <string.h>
286 #endif
287 #if HAVE_STRINGS_H
288 # include <strings.h>
289 #endif
290 #if HAVE_INTTYPES_H
291 # include <inttypes.h>
292 #else
293 # if HAVE_STDINT_H
294 #  include <stdint.h>
295 # endif
296 #endif
297 #if HAVE_UNISTD_H
298 # include <unistd.h>
299 #endif"
300
301
302 # Initialize some variables set by options.
303 ac_init_help=
304 ac_init_version=false
305 # The variables have the same names as the options, with
306 # dashes changed to underlines.
307 cache_file=/dev/null
308 exec_prefix=NONE
309 no_create=
310 no_recursion=
311 prefix=NONE
312 program_prefix=NONE
313 program_suffix=NONE
314 program_transform_name=s,x,x,
315 silent=
316 site=
317 srcdir=
318 verbose=
319 x_includes=NONE
320 x_libraries=NONE
321
322 # Installation directory options.
323 # These are left unexpanded so users can "make install exec_prefix=/foo"
324 # and all the variables that are supposed to be based on exec_prefix
325 # by default will actually change.
326 # Use braces instead of parens because sh, perl, etc. also accept them.
327 bindir='${exec_prefix}/bin'
328 sbindir='${exec_prefix}/sbin'
329 libexecdir='${exec_prefix}/libexec'
330 datadir='${prefix}/share'
331 sysconfdir='${prefix}/etc'
332 sharedstatedir='${prefix}/com'
333 localstatedir='${prefix}/var'
334 libdir='${exec_prefix}/lib'
335 includedir='${prefix}/include'
336 oldincludedir='/usr/include'
337 infodir='${prefix}/info'
338 mandir='${prefix}/man'
339
340 ac_prev=
341 for ac_option
342 do
343   # If the previous option needs an argument, assign it.
344   if test -n "$ac_prev"; then
345     eval "$ac_prev=\$ac_option"
346     ac_prev=
347     continue
348   fi
349
350   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
351
352   # Accept the important Cygnus configure options, so we can diagnose typos.
353
354   case $ac_option in
355
356   -bindir | --bindir | --bindi | --bind | --bin | --bi)
357     ac_prev=bindir ;;
358   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
359     bindir=$ac_optarg ;;
360
361   -build | --build | --buil | --bui | --bu)
362     ac_prev=build_alias ;;
363   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
364     build_alias=$ac_optarg ;;
365
366   -cache-file | --cache-file | --cache-fil | --cache-fi \
367   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
368     ac_prev=cache_file ;;
369   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
370   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
371     cache_file=$ac_optarg ;;
372
373   --config-cache | -C)
374     cache_file=config.cache ;;
375
376   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
377     ac_prev=datadir ;;
378   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
379   | --da=*)
380     datadir=$ac_optarg ;;
381
382   -disable-* | --disable-*)
383     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
384     # Reject names that are not valid shell variable names.
385     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
386       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
387    { (exit 1); exit 1; }; }
388     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
389     eval "enable_$ac_feature=no" ;;
390
391   -enable-* | --enable-*)
392     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
393     # Reject names that are not valid shell variable names.
394     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
395       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
396    { (exit 1); exit 1; }; }
397     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
398     case $ac_option in
399       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
400       *) ac_optarg=yes ;;
401     esac
402     eval "enable_$ac_feature='$ac_optarg'" ;;
403
404   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
405   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
406   | --exec | --exe | --ex)
407     ac_prev=exec_prefix ;;
408   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
409   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
410   | --exec=* | --exe=* | --ex=*)
411     exec_prefix=$ac_optarg ;;
412
413   -gas | --gas | --ga | --g)
414     # Obsolete; use --with-gas.
415     with_gas=yes ;;
416
417   -help | --help | --hel | --he | -h)
418     ac_init_help=long ;;
419   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
420     ac_init_help=recursive ;;
421   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
422     ac_init_help=short ;;
423
424   -host | --host | --hos | --ho)
425     ac_prev=host_alias ;;
426   -host=* | --host=* | --hos=* | --ho=*)
427     host_alias=$ac_optarg ;;
428
429   -includedir | --includedir | --includedi | --included | --include \
430   | --includ | --inclu | --incl | --inc)
431     ac_prev=includedir ;;
432   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
433   | --includ=* | --inclu=* | --incl=* | --inc=*)
434     includedir=$ac_optarg ;;
435
436   -infodir | --infodir | --infodi | --infod | --info | --inf)
437     ac_prev=infodir ;;
438   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
439     infodir=$ac_optarg ;;
440
441   -libdir | --libdir | --libdi | --libd)
442     ac_prev=libdir ;;
443   -libdir=* | --libdir=* | --libdi=* | --libd=*)
444     libdir=$ac_optarg ;;
445
446   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
447   | --libexe | --libex | --libe)
448     ac_prev=libexecdir ;;
449   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
450   | --libexe=* | --libex=* | --libe=*)
451     libexecdir=$ac_optarg ;;
452
453   -localstatedir | --localstatedir | --localstatedi | --localstated \
454   | --localstate | --localstat | --localsta | --localst \
455   | --locals | --local | --loca | --loc | --lo)
456     ac_prev=localstatedir ;;
457   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
458   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
459   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
460     localstatedir=$ac_optarg ;;
461
462   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
463     ac_prev=mandir ;;
464   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
465     mandir=$ac_optarg ;;
466
467   -nfp | --nfp | --nf)
468     # Obsolete; use --without-fp.
469     with_fp=no ;;
470
471   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
472   | --no-cr | --no-c | -n)
473     no_create=yes ;;
474
475   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
476   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
477     no_recursion=yes ;;
478
479   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
480   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
481   | --oldin | --oldi | --old | --ol | --o)
482     ac_prev=oldincludedir ;;
483   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
484   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
485   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
486     oldincludedir=$ac_optarg ;;
487
488   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
489     ac_prev=prefix ;;
490   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
491     prefix=$ac_optarg ;;
492
493   -program-prefix | --program-prefix | --program-prefi | --program-pref \
494   | --program-pre | --program-pr | --program-p)
495     ac_prev=program_prefix ;;
496   -program-prefix=* | --program-prefix=* | --program-prefi=* \
497   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
498     program_prefix=$ac_optarg ;;
499
500   -program-suffix | --program-suffix | --program-suffi | --program-suff \
501   | --program-suf | --program-su | --program-s)
502     ac_prev=program_suffix ;;
503   -program-suffix=* | --program-suffix=* | --program-suffi=* \
504   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
505     program_suffix=$ac_optarg ;;
506
507   -program-transform-name | --program-transform-name \
508   | --program-transform-nam | --program-transform-na \
509   | --program-transform-n | --program-transform- \
510   | --program-transform | --program-transfor \
511   | --program-transfo | --program-transf \
512   | --program-trans | --program-tran \
513   | --progr-tra | --program-tr | --program-t)
514     ac_prev=program_transform_name ;;
515   -program-transform-name=* | --program-transform-name=* \
516   | --program-transform-nam=* | --program-transform-na=* \
517   | --program-transform-n=* | --program-transform-=* \
518   | --program-transform=* | --program-transfor=* \
519   | --program-transfo=* | --program-transf=* \
520   | --program-trans=* | --program-tran=* \
521   | --progr-tra=* | --program-tr=* | --program-t=*)
522     program_transform_name=$ac_optarg ;;
523
524   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
525   | -silent | --silent | --silen | --sile | --sil)
526     silent=yes ;;
527
528   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
529     ac_prev=sbindir ;;
530   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
531   | --sbi=* | --sb=*)
532     sbindir=$ac_optarg ;;
533
534   -sharedstatedir | --sharedstatedir | --sharedstatedi \
535   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
536   | --sharedst | --shareds | --shared | --share | --shar \
537   | --sha | --sh)
538     ac_prev=sharedstatedir ;;
539   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
540   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
541   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
542   | --sha=* | --sh=*)
543     sharedstatedir=$ac_optarg ;;
544
545   -site | --site | --sit)
546     ac_prev=site ;;
547   -site=* | --site=* | --sit=*)
548     site=$ac_optarg ;;
549
550   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
551     ac_prev=srcdir ;;
552   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
553     srcdir=$ac_optarg ;;
554
555   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
556   | --syscon | --sysco | --sysc | --sys | --sy)
557     ac_prev=sysconfdir ;;
558   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
559   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
560     sysconfdir=$ac_optarg ;;
561
562   -target | --target | --targe | --targ | --tar | --ta | --t)
563     ac_prev=target_alias ;;
564   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
565     target_alias=$ac_optarg ;;
566
567   -v | -verbose | --verbose | --verbos | --verbo | --verb)
568     verbose=yes ;;
569
570   -version | --version | --versio | --versi | --vers | -V)
571     ac_init_version=: ;;
572
573   -with-* | --with-*)
574     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
575     # Reject names that are not valid shell variable names.
576     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
577       { echo "$as_me: error: invalid package name: $ac_package" >&2
578    { (exit 1); exit 1; }; }
579     ac_package=`echo $ac_package| sed 's/-/_/g'`
580     case $ac_option in
581       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
582       *) ac_optarg=yes ;;
583     esac
584     eval "with_$ac_package='$ac_optarg'" ;;
585
586   -without-* | --without-*)
587     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
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     eval "with_$ac_package=no" ;;
594
595   --x)
596     # Obsolete; use --with-x.
597     with_x=yes ;;
598
599   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
600   | --x-incl | --x-inc | --x-in | --x-i)
601     ac_prev=x_includes ;;
602   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
603   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
604     x_includes=$ac_optarg ;;
605
606   -x-libraries | --x-libraries | --x-librarie | --x-librari \
607   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
608     ac_prev=x_libraries ;;
609   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
610   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
611     x_libraries=$ac_optarg ;;
612
613   -*) { echo "$as_me: error: unrecognized option: $ac_option
614 Try \`$0 --help' for more information." >&2
615    { (exit 1); exit 1; }; }
616     ;;
617
618   *=*)
619     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
620     # Reject names that are not valid shell variable names.
621     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
622       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
623    { (exit 1); exit 1; }; }
624     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
625     eval "$ac_envvar='$ac_optarg'"
626     export $ac_envvar ;;
627
628   *)
629     # FIXME: should be removed in autoconf 3.0.
630     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
631     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
632       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
633     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
634     ;;
635
636   esac
637 done
638
639 if test -n "$ac_prev"; then
640   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
641   { echo "$as_me: error: missing argument to $ac_option" >&2
642    { (exit 1); exit 1; }; }
643 fi
644
645 # Be sure to have absolute paths.
646 for ac_var in exec_prefix prefix
647 do
648   eval ac_val=$`echo $ac_var`
649   case $ac_val in
650     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
651     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
652    { (exit 1); exit 1; }; };;
653   esac
654 done
655
656 # Be sure to have absolute paths.
657 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
658               localstatedir libdir includedir oldincludedir infodir mandir
659 do
660   eval ac_val=$`echo $ac_var`
661   case $ac_val in
662     [\\/$]* | ?:[\\/]* ) ;;
663     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
664    { (exit 1); exit 1; }; };;
665   esac
666 done
667
668 # There might be people who depend on the old broken behavior: `$host'
669 # used to hold the argument of --host etc.
670 # FIXME: To remove some day.
671 build=$build_alias
672 host=$host_alias
673 target=$target_alias
674
675 # FIXME: To remove some day.
676 if test "x$host_alias" != x; then
677   if test "x$build_alias" = x; then
678     cross_compiling=maybe
679     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
680     If a cross compiler is detected then cross compile mode will be used." >&2
681   elif test "x$build_alias" != "x$host_alias"; then
682     cross_compiling=yes
683   fi
684 fi
685
686 ac_tool_prefix=
687 test -n "$host_alias" && ac_tool_prefix=$host_alias-
688
689 test "$silent" = yes && exec 6>/dev/null
690
691
692 # Find the source files, if location was not specified.
693 if test -z "$srcdir"; then
694   ac_srcdir_defaulted=yes
695   # Try the directory containing this script, then its parent.
696   ac_confdir=`(dirname "$0") 2>/dev/null ||
697 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
698          X"$0" : 'X\(//\)[^/]' \| \
699          X"$0" : 'X\(//\)$' \| \
700          X"$0" : 'X\(/\)' \| \
701          .     : '\(.\)' 2>/dev/null ||
702 echo X"$0" |
703     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
704           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
705           /^X\(\/\/\)$/{ s//\1/; q; }
706           /^X\(\/\).*/{ s//\1/; q; }
707           s/.*/./; q'`
708   srcdir=$ac_confdir
709   if test ! -r $srcdir/$ac_unique_file; then
710     srcdir=..
711   fi
712 else
713   ac_srcdir_defaulted=no
714 fi
715 if test ! -r $srcdir/$ac_unique_file; then
716   if test "$ac_srcdir_defaulted" = yes; then
717     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
718    { (exit 1); exit 1; }; }
719   else
720     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
721    { (exit 1); exit 1; }; }
722   fi
723 fi
724 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
725 ac_env_build_alias_set=${build_alias+set}
726 ac_env_build_alias_value=$build_alias
727 ac_cv_env_build_alias_set=${build_alias+set}
728 ac_cv_env_build_alias_value=$build_alias
729 ac_env_host_alias_set=${host_alias+set}
730 ac_env_host_alias_value=$host_alias
731 ac_cv_env_host_alias_set=${host_alias+set}
732 ac_cv_env_host_alias_value=$host_alias
733 ac_env_target_alias_set=${target_alias+set}
734 ac_env_target_alias_value=$target_alias
735 ac_cv_env_target_alias_set=${target_alias+set}
736 ac_cv_env_target_alias_value=$target_alias
737 ac_env_CC_set=${CC+set}
738 ac_env_CC_value=$CC
739 ac_cv_env_CC_set=${CC+set}
740 ac_cv_env_CC_value=$CC
741 ac_env_CFLAGS_set=${CFLAGS+set}
742 ac_env_CFLAGS_value=$CFLAGS
743 ac_cv_env_CFLAGS_set=${CFLAGS+set}
744 ac_cv_env_CFLAGS_value=$CFLAGS
745 ac_env_LDFLAGS_set=${LDFLAGS+set}
746 ac_env_LDFLAGS_value=$LDFLAGS
747 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
748 ac_cv_env_LDFLAGS_value=$LDFLAGS
749 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
750 ac_env_CPPFLAGS_value=$CPPFLAGS
751 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
752 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
753 ac_env_CPP_set=${CPP+set}
754 ac_env_CPP_value=$CPP
755 ac_cv_env_CPP_set=${CPP+set}
756 ac_cv_env_CPP_value=$CPP
757
758 #
759 # Report the --help message.
760 #
761 if test "$ac_init_help" = "long"; then
762   # Omit some internal or obsolete options to make the list less imposing.
763   # This message is too long to be a string in the A/UX 3.1 sh.
764   cat <<_ACEOF
765 \`configure' configures this package to adapt to many kinds of systems.
766
767 Usage: $0 [OPTION]... [VAR=VALUE]...
768
769 To assign environment variables (e.g., CC, CFLAGS...), specify them as
770 VAR=VALUE.  See below for descriptions of some of the useful variables.
771
772 Defaults for the options are specified in brackets.
773
774 Configuration:
775   -h, --help              display this help and exit
776       --help=short        display options specific to this package
777       --help=recursive    display the short help of all the included packages
778   -V, --version           display version information and exit
779   -q, --quiet, --silent   do not print \`checking...' messages
780       --cache-file=FILE   cache test results in FILE [disabled]
781   -C, --config-cache      alias for \`--cache-file=config.cache'
782   -n, --no-create         do not create output files
783       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
784
785 _ACEOF
786
787   cat <<_ACEOF
788 Installation directories:
789   --prefix=PREFIX         install architecture-independent files in PREFIX
790                           [$ac_default_prefix]
791   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
792                           [PREFIX]
793
794 By default, \`make install' will install all the files in
795 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
796 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
797 for instance \`--prefix=\$HOME'.
798
799 For better control, use the options below.
800
801 Fine tuning of the installation directories:
802   --bindir=DIR           user executables [EPREFIX/bin]
803   --sbindir=DIR          system admin executables [EPREFIX/sbin]
804   --libexecdir=DIR       program executables [EPREFIX/libexec]
805   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
806   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
807   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
808   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
809   --libdir=DIR           object code libraries [EPREFIX/lib]
810   --includedir=DIR       C header files [PREFIX/include]
811   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
812   --infodir=DIR          info documentation [PREFIX/info]
813   --mandir=DIR           man documentation [PREFIX/man]
814 _ACEOF
815
816   cat <<\_ACEOF
817
818 System types:
819   --build=BUILD     configure for building on BUILD [guessed]
820   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
821 _ACEOF
822 fi
823
824 if test -n "$ac_init_help"; then
825
826   cat <<\_ACEOF
827
828 Optional Features:
829   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
830   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
831   --disable-sanity-checks really do not use threads (should not be used
832                           except in special situations) default=yes
833   --enable-shared         build shared library default=yes if GNU ld & ELF
834   --enable-profile        build profiled library default=yes
835   --enable-omitfp         build undebuggable optimized library default=no
836   --enable-bounded        build with runtime bounds checking default=no
837   --disable-versioning    do not include versioning information in the
838                           library objects default=yes if supported
839   --enable-oldest-abi=ABI configure the oldest ABI supported e.g. 2.2
840                           default=glibc default
841   --enable-add-ons=DIR1,DIR2...
842                           configure and build add-ons in DIR1,DIR2,...
843                           search for add-ons if no parameter given
844   --disable-hidden-plt    do not hide internal function calls to avoid PLT
845   --enable-static-nss     build static NSS modules default=no
846   --disable-force-install don't force installation of files from this package,
847                           even if they are older than the installed files
848   --enable-kernel=VERSION compile for compatibility with kernel not older
849                            than VERSION
850   --enable-all-warnings   enable all useful warnings gcc can issue
851
852 Optional Packages:
853   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
854   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
855   --with-gmp=DIRECTORY    find GMP source code in DIRECTORY (not needed)
856   --with-gd=DIR           find libgd include dir and library with prefix DIR
857   --with-gd-include=DIR   find libgd include files in DIR
858   --with-gd-lib=DIR       find libgd library files in DIR
859   --with-fp               if using floating-point hardware default=yes
860   --with-binutils=PATH    specify location of binutils (as and ld)
861   --with-elf              if using the ELF object format
862   --with-xcoff            if using the XCOFF object format
863   --without-cvs           if CVS should not be used
864   --with-headers=PATH     location of system headers to use
865                           e.g. /usr/src/linux/include
866                           default=compiler default
867   --with-tls              enable support for TLS
868   --without-__thread      do not use TLS features even when supporting them
869
870 Some influential environment variables:
871   CC          C compiler command
872   CFLAGS      C compiler flags
873   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
874               nonstandard directory <lib dir>
875   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
876               headers in a nonstandard directory <include dir>
877   CPP         C preprocessor
878
879 Use these variables to override the choices made by `configure' or to help
880 it to find libraries and programs with nonstandard names/locations.
881
882 _ACEOF
883 fi
884
885 if test "$ac_init_help" = "recursive"; then
886   # If there are subdirs, report their specific --help.
887   ac_popdir=`pwd`
888   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
889     test -d $ac_dir || continue
890     ac_builddir=.
891
892 if test "$ac_dir" != .; then
893   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
894   # A "../" for each directory in $ac_dir_suffix.
895   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
896 else
897   ac_dir_suffix= ac_top_builddir=
898 fi
899
900 case $srcdir in
901   .)  # No --srcdir option.  We are building in place.
902     ac_srcdir=.
903     if test -z "$ac_top_builddir"; then
904        ac_top_srcdir=.
905     else
906        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
907     fi ;;
908   [\\/]* | ?:[\\/]* )  # Absolute path.
909     ac_srcdir=$srcdir$ac_dir_suffix;
910     ac_top_srcdir=$srcdir ;;
911   *) # Relative path.
912     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
913     ac_top_srcdir=$ac_top_builddir$srcdir ;;
914 esac
915 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
916 # absolute.
917 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
918 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
919 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
920 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
921
922     cd $ac_dir
923     # Check for guested configure; otherwise get Cygnus style configure.
924     if test -f $ac_srcdir/configure.gnu; then
925       echo
926       $SHELL $ac_srcdir/configure.gnu  --help=recursive
927     elif test -f $ac_srcdir/configure; then
928       echo
929       $SHELL $ac_srcdir/configure  --help=recursive
930     elif test -f $ac_srcdir/configure.ac ||
931            test -f $ac_srcdir/configure.in; then
932       echo
933       $ac_configure --help
934     else
935       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
936     fi
937     cd $ac_popdir
938   done
939 fi
940
941 test -n "$ac_init_help" && exit 0
942 if $ac_init_version; then
943   cat <<\_ACEOF
944
945 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
946 Free Software Foundation, Inc.
947 This configure script is free software; the Free Software Foundation
948 gives unlimited permission to copy, distribute and modify it.
949 _ACEOF
950   exit 0
951 fi
952 exec 5>config.log
953 cat >&5 <<_ACEOF
954 This file contains any messages produced by compilers while
955 running configure, to aid debugging if configure makes a mistake.
956
957 It was created by $as_me, which was
958 generated by GNU Autoconf 2.53.  Invocation command line was
959
960   $ $0 $@
961
962 _ACEOF
963 {
964 cat <<_ASUNAME
965 ## --------- ##
966 ## Platform. ##
967 ## --------- ##
968
969 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
970 uname -m = `(uname -m) 2>/dev/null || echo unknown`
971 uname -r = `(uname -r) 2>/dev/null || echo unknown`
972 uname -s = `(uname -s) 2>/dev/null || echo unknown`
973 uname -v = `(uname -v) 2>/dev/null || echo unknown`
974
975 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
976 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
977
978 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
979 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
980 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
981 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
982 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
983 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
984 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
985
986 _ASUNAME
987
988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
989 for as_dir in $PATH
990 do
991   IFS=$as_save_IFS
992   test -z "$as_dir" && as_dir=.
993   echo "PATH: $as_dir"
994 done
995
996 } >&5
997
998 cat >&5 <<_ACEOF
999
1000
1001 ## ----------- ##
1002 ## Core tests. ##
1003 ## ----------- ##
1004
1005 _ACEOF
1006
1007
1008 # Keep a trace of the command line.
1009 # Strip out --no-create and --no-recursion so they do not pile up.
1010 # Also quote any args containing shell meta-characters.
1011 ac_configure_args=
1012 ac_sep=
1013 for ac_arg
1014 do
1015   case $ac_arg in
1016   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1017   | --no-cr | --no-c | -n ) continue ;;
1018   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1019   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1020     continue ;;
1021   *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1022     ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1023   esac
1024   case " $ac_configure_args " in
1025     *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1026     *) ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1027        ac_sep=" " ;;
1028   esac
1029   # Get rid of the leading space.
1030 done
1031
1032 # When interrupted or exit'd, cleanup temporary files, and complete
1033 # config.log.  We remove comments because anyway the quotes in there
1034 # would cause problems or look ugly.
1035 # WARNING: Be sure not to use single quotes in there, as some shells,
1036 # such as our DU 5.0 friend, will then `close' the trap.
1037 trap 'exit_status=$?
1038   # Save into config.log some information that might help in debugging.
1039   {
1040     echo
1041     cat <<\_ASBOX
1042 ## ---------------- ##
1043 ## Cache variables. ##
1044 ## ---------------- ##
1045 _ASBOX
1046     echo
1047     # The following way of writing the cache mishandles newlines in values,
1048 {
1049   (set) 2>&1 |
1050     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1051     *ac_space=\ *)
1052       sed -n \
1053         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1054           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1055       ;;
1056     *)
1057       sed -n \
1058         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1059       ;;
1060     esac;
1061 }
1062     echo
1063     if test -s confdefs.h; then
1064       cat <<\_ASBOX
1065 ## ----------- ##
1066 ## confdefs.h. ##
1067 ## ----------- ##
1068 _ASBOX
1069       echo
1070       sed "/^$/d" confdefs.h
1071       echo
1072     fi
1073     test "$ac_signal" != 0 &&
1074       echo "$as_me: caught signal $ac_signal"
1075     echo "$as_me: exit $exit_status"
1076   } >&5
1077   rm -f core core.* *.core &&
1078   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1079     exit $exit_status
1080      ' 0
1081 for ac_signal in 1 2 13 15; do
1082   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1083 done
1084 ac_signal=0
1085
1086 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1087 rm -rf conftest* confdefs.h
1088 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1089 echo >confdefs.h
1090
1091 # Predefined preprocessor variables.
1092
1093 cat >>confdefs.h <<_ACEOF
1094 #define PACKAGE_NAME "$PACKAGE_NAME"
1095 _ACEOF
1096
1097
1098 cat >>confdefs.h <<_ACEOF
1099 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1100 _ACEOF
1101
1102
1103 cat >>confdefs.h <<_ACEOF
1104 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1105 _ACEOF
1106
1107
1108 cat >>confdefs.h <<_ACEOF
1109 #define PACKAGE_STRING "$PACKAGE_STRING"
1110 _ACEOF
1111
1112
1113 cat >>confdefs.h <<_ACEOF
1114 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1115 _ACEOF
1116
1117
1118 # Let the site file select an alternate cache file if it wants to.
1119 # Prefer explicitly selected file to automatically selected ones.
1120 if test -z "$CONFIG_SITE"; then
1121   if test "x$prefix" != xNONE; then
1122     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1123   else
1124     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1125   fi
1126 fi
1127 for ac_site_file in $CONFIG_SITE; do
1128   if test -r "$ac_site_file"; then
1129     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1130 echo "$as_me: loading site script $ac_site_file" >&6;}
1131     sed 's/^/| /' "$ac_site_file" >&5
1132     . "$ac_site_file"
1133   fi
1134 done
1135
1136 if test -r "$cache_file"; then
1137   # Some versions of bash will fail to source /dev/null (special
1138   # files actually), so we avoid doing that.
1139   if test -f "$cache_file"; then
1140     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1141 echo "$as_me: loading cache $cache_file" >&6;}
1142     case $cache_file in
1143       [\\/]* | ?:[\\/]* ) . $cache_file;;
1144       *)                      . ./$cache_file;;
1145     esac
1146   fi
1147 else
1148   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1149 echo "$as_me: creating cache $cache_file" >&6;}
1150   >$cache_file
1151 fi
1152
1153 # Check that the precious variables saved in the cache have kept the same
1154 # value.
1155 ac_cache_corrupted=false
1156 for ac_var in `(set) 2>&1 |
1157                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1158   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1159   eval ac_new_set=\$ac_env_${ac_var}_set
1160   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1161   eval ac_new_val="\$ac_env_${ac_var}_value"
1162   case $ac_old_set,$ac_new_set in
1163     set,)
1164       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1165 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1166       ac_cache_corrupted=: ;;
1167     ,set)
1168       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1169 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1170       ac_cache_corrupted=: ;;
1171     ,);;
1172     *)
1173       if test "x$ac_old_val" != "x$ac_new_val"; then
1174         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1175 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1176         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1177 echo "$as_me:   former value:  $ac_old_val" >&2;}
1178         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1179 echo "$as_me:   current value: $ac_new_val" >&2;}
1180         ac_cache_corrupted=:
1181       fi;;
1182   esac
1183   # Pass precious variables to config.status.
1184   if test "$ac_new_set" = set; then
1185     case $ac_new_val in
1186     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1187       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1188     *) ac_arg=$ac_var=$ac_new_val ;;
1189     esac
1190     case " $ac_configure_args " in
1191       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1192       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1193     esac
1194   fi
1195 done
1196 if $ac_cache_corrupted; then
1197   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1198 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1199   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1200 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1201    { (exit 1); exit 1; }; }
1202 fi
1203
1204 ac_ext=c
1205 ac_cpp='$CPP $CPPFLAGS'
1206 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1207 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1208 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227 ac_config_headers="$ac_config_headers config.h"
1228
1229 ac_aux_dir=
1230 for ac_dir in scripts $srcdir/scripts; do
1231   if test -f $ac_dir/install-sh; then
1232     ac_aux_dir=$ac_dir
1233     ac_install_sh="$ac_aux_dir/install-sh -c"
1234     break
1235   elif test -f $ac_dir/install.sh; then
1236     ac_aux_dir=$ac_dir
1237     ac_install_sh="$ac_aux_dir/install.sh -c"
1238     break
1239   elif test -f $ac_dir/shtool; then
1240     ac_aux_dir=$ac_dir
1241     ac_install_sh="$ac_aux_dir/shtool install -c"
1242     break
1243   fi
1244 done
1245 if test -z "$ac_aux_dir"; then
1246   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in scripts $srcdir/scripts" >&5
1247 echo "$as_me: error: cannot find install-sh or install.sh in scripts $srcdir/scripts" >&2;}
1248    { (exit 1); exit 1; }; }
1249 fi
1250 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1251 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1252 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1253
1254
1255 # This will get text that should go into config.make.
1256 config_vars=
1257
1258 # Check for a --with-gmp argument and set gmp-srcdir in config.make.
1259
1260 # Check whether --with-gmp or --without-gmp was given.
1261 if test "${with_gmp+set}" = set; then
1262   withval="$with_gmp"
1263   case "$with_gmp" in
1264 yes) { { echo "$as_me:$LINENO: error: --with-gmp requires an argument; use --with-gmp=DIRECTORY" >&5
1265 echo "$as_me: error: --with-gmp requires an argument; use --with-gmp=DIRECTORY" >&2;}
1266    { (exit 1); exit 1; }; } ;;
1267 ''|no) ;;
1268 *) config_vars="$config_vars
1269 gmp-srcdir = $withval" ;;
1270 esac
1271
1272 fi;
1273 # Check for a --with-gd argument and set libgd-LDFLAGS in config.make.
1274
1275 # Check whether --with-gd or --without-gd was given.
1276 if test "${with_gd+set}" = set; then
1277   withval="$with_gd"
1278   case "$with_gd" in
1279 yes|''|no) ;;
1280 *) libgd_include="-I$withval/include"
1281    libgd_ldflags="-L$withval/lib" ;;
1282 esac
1283
1284 fi;
1285
1286 # Check whether --with-gd-include or --without-gd-include was given.
1287 if test "${with_gd_include+set}" = set; then
1288   withval="$with_gd_include"
1289   case "$with_gd_include" in
1290 ''|no) ;;
1291 *) libgd_include="-I$withval" ;;
1292 esac
1293
1294 fi;
1295
1296 # Check whether --with-gd-lib or --without-gd-lib was given.
1297 if test "${with_gd_lib+set}" = set; then
1298   withval="$with_gd_lib"
1299   case "$with_gd_lib" in
1300 ''|no) ;;
1301 *) libgd_ldflags="-L$withval" ;;
1302 esac
1303
1304 fi;
1305
1306 if test -n "$libgd_include"; then
1307   config_vars="$config_vars
1308 CFLAGS-memusagestat.c = $libgd_include"
1309 fi
1310 if test -n "$libgd_ldflags"; then
1311   config_vars="$config_vars
1312 libgd-LDFLAGS = $libgd_ldflags"
1313 fi
1314
1315
1316 # Check whether --with-fp or --without-fp was given.
1317 if test "${with_fp+set}" = set; then
1318   withval="$with_fp"
1319   with_fp=$withval
1320 else
1321   with_fp=yes
1322 fi;
1323
1324
1325 # Check whether --with-binutils or --without-binutils was given.
1326 if test "${with_binutils+set}" = set; then
1327   withval="$with_binutils"
1328   path_binutils=$withval
1329 else
1330   path_binutils=''
1331 fi;
1332
1333 # Check whether --with-elf or --without-elf was given.
1334 if test "${with_elf+set}" = set; then
1335   withval="$with_elf"
1336   elf=$withval
1337 else
1338   elf=no
1339 fi;
1340
1341 # Check whether --with-xcoff or --without-xcoff was given.
1342 if test "${with_xcoff+set}" = set; then
1343   withval="$with_xcoff"
1344   xcoff=$withval
1345 else
1346   xcoff=no
1347 fi;
1348
1349 # Check whether --with-cvs or --without-cvs was given.
1350 if test "${with_cvs+set}" = set; then
1351   withval="$with_cvs"
1352   with_cvs=$withval
1353 else
1354   with_cvs=yes
1355 fi;
1356 if test "$with_cvs" = yes; then
1357   if test -d $srcdir/CVS && grep :pserver: $srcdir/CVS/Root > /dev/null
1358   then
1359     with_cvs=no
1360   fi
1361 fi
1362
1363
1364
1365 # Check whether --with-headers or --without-headers was given.
1366 if test "${with_headers+set}" = set; then
1367   withval="$with_headers"
1368   sysheaders=$withval
1369 else
1370   sysheaders=''
1371 fi;
1372
1373 # Check whether --enable-sanity-checks or --disable-sanity-checks was given.
1374 if test "${enable_sanity_checks+set}" = set; then
1375   enableval="$enable_sanity_checks"
1376   enable_sanity=$enableval
1377 else
1378   enable_sanity=yes
1379 fi;
1380
1381 static=yes
1382 # Check whether --enable-shared or --disable-shared was given.
1383 if test "${enable_shared+set}" = set; then
1384   enableval="$enable_shared"
1385   shared=$enableval
1386 else
1387   shared=default
1388 fi;
1389 # Check whether --enable-profile or --disable-profile was given.
1390 if test "${enable_profile+set}" = set; then
1391   enableval="$enable_profile"
1392   profile=$enableval
1393 else
1394   profile=yes
1395 fi;
1396 # Check whether --enable-omitfp or --disable-omitfp was given.
1397 if test "${enable_omitfp+set}" = set; then
1398   enableval="$enable_omitfp"
1399   omitfp=$enableval
1400 else
1401   omitfp=no
1402 fi;
1403 # Check whether --enable-bounded or --disable-bounded was given.
1404 if test "${enable_bounded+set}" = set; then
1405   enableval="$enable_bounded"
1406   bounded=$enableval
1407 else
1408   bounded=no
1409 fi;
1410 # Check whether --enable-versioning or --disable-versioning was given.
1411 if test "${enable_versioning+set}" = set; then
1412   enableval="$enable_versioning"
1413   enable_versioning=$enableval
1414 else
1415   enable_versioning=yes
1416 fi;
1417
1418 # Check whether --enable-oldest-abi or --disable-oldest-abi was given.
1419 if test "${enable_oldest_abi+set}" = set; then
1420   enableval="$enable_oldest_abi"
1421   oldest_abi=$enableval
1422 else
1423   oldest_abi=no
1424 fi;
1425 if test "$oldest_abi" = yes || test "$oldest_abi" = no; then
1426   oldest_abi=default
1427 else
1428   cat >>confdefs.h <<_ACEOF
1429 #define GLIBC_OLDEST_ABI "$oldest_abi"
1430 _ACEOF
1431
1432 fi
1433
1434
1435 # Check whether --enable-add-ons or --disable-add-ons was given.
1436 if test "${enable_add_ons+set}" = set; then
1437   enableval="$enable_add_ons"
1438   case "$enableval" in
1439     yes) add_ons=`cd $srcdir && echo */configure | sed -e 's!/configure!!g'`
1440          test "$add_ons" = "*" && add_ons= ;;
1441     *) add_ons=`echo "$enableval" | sed 's/,/ /g'`;;
1442    esac
1443 else
1444   add_ons=
1445 fi;
1446
1447
1448 # Check whether --with-tls or --without-tls was given.
1449 if test "${with_tls+set}" = set; then
1450   withval="$with_tls"
1451   usetls=$withval
1452 else
1453   usetls=no
1454 fi;
1455
1456
1457 # Check whether --with-__thread or --without-__thread was given.
1458 if test "${with___thread+set}" = set; then
1459   withval="$with___thread"
1460   use__thread=$withval
1461 else
1462   use__thread=yes
1463 fi;
1464
1465 # Check whether --enable-hidden-plt or --disable-hidden-plt was given.
1466 if test "${enable_hidden_plt+set}" = set; then
1467   enableval="$enable_hidden_plt"
1468   hidden=$enableval
1469 else
1470   hidden=yes
1471 fi;
1472 if test "x$hidden" = xno; then
1473   cat >>confdefs.h <<\_ACEOF
1474 #define NO_HIDDEN 1
1475 _ACEOF
1476
1477 fi
1478
1479
1480
1481 subdirs="$subdirs $add_ons"
1482
1483 add_ons_pfx=
1484 if test x"$add_ons" != x; then
1485   for f in $add_ons; do
1486     # Some sanity checks
1487     if test "$f" = "crypt"; then
1488       { { echo "$as_me:$LINENO: error:
1489 *** It seems that you're using an old \`crypt' add-on.  crypt is now
1490 *** part of glibc and using the old add-on will not work with this
1491 *** release.  Start again with fresh sources and without the old
1492 *** \`crypt' add-on." >&5
1493 echo "$as_me: error:
1494 *** It seems that you're using an old \`crypt' add-on.  crypt is now
1495 *** part of glibc and using the old add-on will not work with this
1496 *** release.  Start again with fresh sources and without the old
1497 *** \`crypt' add-on." >&2;}
1498    { (exit 1); exit 1; }; }
1499     fi
1500     if test "$f" = "localedata"; then
1501       { { echo "$as_me:$LINENO: error:
1502 *** It seems that you're using an old \`localedata' add-on.  localedata
1503 *** is now part of glibc and using the old add-on will not work with
1504 *** this release.  Start again with fresh sources and without the old
1505 *** \`localedata' add-on." >&5
1506 echo "$as_me: error:
1507 *** It seems that you're using an old \`localedata' add-on.  localedata
1508 *** is now part of glibc and using the old add-on will not work with
1509 *** this release.  Start again with fresh sources and without the old
1510 *** \`localedata' add-on." >&2;}
1511    { (exit 1); exit 1; }; }
1512     fi
1513     # Test whether such a subdir really exists.
1514     if test -d $srcdir/$f; then
1515       add_ons_pfx="$add_ons_pfx $f/"
1516     else
1517       { { echo "$as_me:$LINENO: error: add-on directory \"$f\" does not exist" >&5
1518 echo "$as_me: error: add-on directory \"$f\" does not exist" >&2;}
1519    { (exit 1); exit 1; }; }
1520     fi
1521   done
1522 fi
1523
1524 # Check whether --enable-static-nss or --disable-static-nss was given.
1525 if test "${enable_static_nss+set}" = set; then
1526   enableval="$enable_static_nss"
1527   static_nss=$enableval
1528 else
1529   static_nss=no
1530 fi;
1531 if test x"$static_nss" = xyes || test x"$shared" = xno; then
1532   static_nss=yes
1533   cat >>confdefs.h <<\_ACEOF
1534 #define DO_STATIC_NSS 1
1535 _ACEOF
1536
1537 fi
1538
1539 # Check whether --enable-force-install or --disable-force-install was given.
1540 if test "${enable_force_install+set}" = set; then
1541   enableval="$enable_force_install"
1542   force_install=$enableval
1543 else
1544   force_install=yes
1545 fi;
1546
1547
1548 # Check whether --enable-kernel or --disable-kernel was given.
1549 if test "${enable_kernel+set}" = set; then
1550   enableval="$enable_kernel"
1551   minimum_kernel=$enableval
1552 fi;
1553 if test "$minimum_kernel" = yes || test "$minimum_kernel" = no; then
1554   # Better nothing than this.
1555   minimum_kernel=""
1556 else
1557   if test "$minimum_kernel" = current; then
1558     minimum_kernel=`uname -r 2>/dev/null` || minimum_kernel=
1559   fi
1560 fi
1561
1562 # Check whether --enable-all-warnings or --disable-all-warnings was given.
1563 if test "${enable_all_warnings+set}" = set; then
1564   enableval="$enable_all_warnings"
1565   all_warnings=$enableval
1566 fi;
1567
1568
1569 # Make sure we can run config.sub.
1570 $ac_config_sub sun4 >/dev/null 2>&1 ||
1571   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1572 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1573    { (exit 1); exit 1; }; }
1574
1575 echo "$as_me:$LINENO: checking build system type" >&5
1576 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1577 if test "${ac_cv_build+set}" = set; then
1578   echo $ECHO_N "(cached) $ECHO_C" >&6
1579 else
1580   ac_cv_build_alias=$build_alias
1581 test -z "$ac_cv_build_alias" &&
1582   ac_cv_build_alias=`$ac_config_guess`
1583 test -z "$ac_cv_build_alias" &&
1584   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1585 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1586    { (exit 1); exit 1; }; }
1587 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1588   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1589 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1590    { (exit 1); exit 1; }; }
1591
1592 fi
1593 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1594 echo "${ECHO_T}$ac_cv_build" >&6
1595 build=$ac_cv_build
1596 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1597 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1598 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1599
1600
1601 echo "$as_me:$LINENO: checking host system type" >&5
1602 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1603 if test "${ac_cv_host+set}" = set; then
1604   echo $ECHO_N "(cached) $ECHO_C" >&6
1605 else
1606   ac_cv_host_alias=$host_alias
1607 test -z "$ac_cv_host_alias" &&
1608   ac_cv_host_alias=$ac_cv_build_alias
1609 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1610   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1611 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1612    { (exit 1); exit 1; }; }
1613
1614 fi
1615 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1616 echo "${ECHO_T}$ac_cv_host" >&6
1617 host=$ac_cv_host
1618 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1619 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1620 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1621
1622
1623
1624 # The way shlib-versions is used to generate soversions.mk uses a
1625 # fairly simplistic model for name recognition that can't distinguish
1626 # i486-pc-linux-gnu fully from i486-pc-gnu.  So we mutate a $host_os
1627 # of `gnu*' here to be `gnu-gnu*' just so that shlib-versions can
1628 # tell.  This doesn't get used much beyond that, so it's fairly safe.
1629 case "$host_os" in
1630 linux*)
1631   ;;
1632 gnu*)
1633   host_os=`echo $host_os | sed -e 's/gnu/gnu-gnu/'`
1634   ;;
1635 esac
1636
1637 # We keep the original values in `$config_*' and never modify them, so we
1638 # can write them unchanged into config.make.  Everything else uses
1639 # $machine, $vendor, and $os, and changes them whenever convenient.
1640 config_machine=$host_cpu config_vendor=$host_vendor config_os=$host_os
1641
1642 # Don't allow vendor == "unknown"
1643 test "$config_vendor" = unknown && config_vendor=
1644 config_os="`echo $config_os | sed 's/^unknown-//'`"
1645
1646 # Some configurations imply other options.
1647 case "$host_os" in
1648 gnu* | linux* | bsd4.4* | netbsd* | freebsd*)
1649   # These systems always use GNU tools.
1650   gnu_ld=yes gnu_as=yes ;;
1651 esac
1652 case "$host_os" in
1653 # i586-linuxaout is mangled into i586-pc-linux-gnuaout
1654 linux*ecoff* | linux*aout* | gnu*aout* | gnu*ecoff*)
1655   ;;
1656 gnu* | linux* | freebsd* | netbsd* | sysv4* | solaris2* | irix6*)
1657   # These systems (almost) always use the ELF format.
1658   elf=yes
1659   ;;
1660 aix*)
1661   # These systems are always xcoff
1662   xcoff=yes
1663   elf=no
1664   ;;
1665 esac
1666
1667 machine=$config_machine
1668 vendor=$config_vendor
1669 os=$config_os
1670
1671 # config.guess on some IBM machines says `rs6000' instead of `powerpc'.
1672 # Unify this here.
1673 if test "$machine" = rs6000; then
1674   machine="powerpc"
1675 fi
1676
1677 ###
1678 ### I put this here to prevent those annoying emails from people who cannot
1679 ### read and try to compile glibc on unsupported platforms.  --drepper
1680 ###
1681 ### By using the undocumented --enable-hacker-mode option for configure
1682 ### one can skip this test to make the configuration not fail for unsupported
1683 ### platforms.
1684 ###
1685 if test -z "$enable_hacker_mode"; then
1686   case "$machine-$host_os" in
1687   *-linux* | *-gnu* | arm*-none* | powerpc-aix4.3.*)
1688     ;;
1689   *)
1690     echo "*** The GNU C library is currently not available for this platform."
1691     echo "*** So far nobody cared to port it and if there is no volunteer it"
1692     echo "*** might never happen.  So, if you have interest to see glibc on"
1693     echo "*** this platform visit"
1694     echo "***   http://www.gnu.org/software/libc/porting.html"
1695     echo "*** and join the group of porters"
1696     exit 1
1697     ;;
1698   esac
1699 fi
1700
1701 # Brain dead PowerPC box with absolutely no FPU.
1702 case "$machine-$host_os" in
1703   powerpc*-*soft)
1704     with_fp=no
1705     completely_soft=yes
1706
1707     ;;
1708 esac
1709
1710 # Expand the configuration machine name into a subdirectory by architecture
1711 # type and particular chip.
1712 case "$machine" in
1713 a29k | am29000) base_machine=a29k machine=a29k ;;
1714 alpha*)         base_machine=alpha machine=alpha/$machine ;;
1715 arm*)           base_machine=arm machine=arm/arm32/$machine ;;
1716 c3[012])        base_machine=cx0 machine=cx0/c30 ;;
1717 c4[04])         base_machine=cx0 machine=cx0/c40 ;;
1718 hppa*64*)       base_machine=hppa machine=hppa/hppa64 ;;
1719 hppa*)          base_machine=hppa machine=hppa/hppa1.1 ;;
1720 i[3456]86)      base_machine=i386 machine=i386/$machine ;;
1721 ia64)           base_machine=ia64 machine=ia64 ;;
1722 m680?0)         base_machine=m68k machine=m68k/$machine ;;
1723 m68k)           base_machine=m68k machine=m68k/m68020 ;;
1724 m88???)         base_machine=m88k machine=m88k/$machine ;;
1725 m88k)           base_machine=m88k machine=m88k/m88100 ;;
1726 mips64*)        base_machine=mips64 machine=mips/mips64/$machine ;;
1727 mips*)          base_machine=mips machine=mips/$machine ;;
1728 powerpc)        base_machine=powerpc machine=powerpc/powerpc32 ;;
1729 powerpc64)      base_machine=powerpc machine=powerpc/powerpc64 ;;
1730 s390)           base_machine=s390 machine=s390/s390-32 ;;
1731 s390x)          base_machine=s390 machine=s390/s390-64 ;;
1732 sh3*)           base_machine=sh machine=sh/sh3 ;;
1733 sh4*)           base_machine=sh machine=sh/sh4 ;;
1734 sparc | sparcv[67])
1735                 base_machine=sparc machine=sparc/sparc32 ;;
1736 sparcv8 | supersparc | hypersparc)
1737                 base_machine=sparc machine=sparc/sparc32/sparcv8 ;;
1738 sparcv8plus | sparcv8plusa | sparcv9)
1739                 base_machine=sparc machine=sparc/sparc32/sparcv9 ;;
1740 sparcv8plusb | sparcv9b)
1741                 base_machine=sparc machine=sparc/sparc32/sparcv9b ;;
1742 sparc64 | ultrasparc)
1743                 base_machine=sparc machine=sparc/sparc64 ;;
1744 sparc64b | ultrasparc3)
1745                 base_machine=sparc machine=sparc/sparc64/sparcv9b ;;
1746 thumb*)         base_machine=thumb machine=arm/thumb/$machine ;;
1747 *)              base_machine=$machine ;;
1748 esac
1749
1750
1751 if test "$base_machine" = "i386"; then
1752   cat >>confdefs.h <<\_ACEOF
1753 #define USE_REGPARMS 1
1754 _ACEOF
1755
1756 fi
1757
1758 # Compute the list of sysdep directories for this configuration.
1759 # This can take a while to compute.
1760 sysdep_dir=$srcdir/sysdeps
1761 echo "$as_me:$LINENO: checking sysdep dirs" >&5
1762 echo $ECHO_N "checking sysdep dirs... $ECHO_C" >&6
1763 # Make sco3.2v4 become sco3.2.4 and sunos4.1.1_U1 become sunos4.1.1.U1.
1764 os="`echo $os | sed 's/\([0-9A-Z]\)[v_]\([0-9A-Z]\)/\1.\2/g'`"
1765
1766 case "$os" in
1767 gnu*)
1768   base_os=mach/hurd ;;
1769 netbsd* | 386bsd* | freebsd* | bsdi*)
1770   base_os=unix/bsd/bsd4.4 ;;
1771 osf* | sunos* | ultrix* | newsos* | dynix* | *bsd*)
1772   base_os=unix/bsd ;;
1773 sysv* | isc* | esix* | sco* | minix* | irix4* | linux*)
1774   base_os=unix/sysv ;;
1775 irix6*)
1776   base_os=unix/sysv/irix6/$os ;;
1777 solaris[2-9]*)
1778   base_os=unix/sysv/sysv4 ;;
1779 hpux*)
1780   base_os=unix/sysv/hpux/$os ;;
1781 aix4.3*)
1782   base_os=unix/sysv/aix/aix4.3 ;;
1783 none)
1784   base_os=standalone ;;
1785 *)
1786   base_os='' ;;
1787 esac
1788
1789 # For sunos4.1.1, try sunos4.1.1, then sunos4.1, then sunos4, then sunos.
1790 tail=$os
1791 ostry=$os
1792 while o=`echo $tail | sed 's/\.[^.]*$//'`; test $o != $tail; do
1793   ostry="$ostry /$o"
1794   tail=$o
1795 done
1796 o=`echo $tail | sed 's/[0-9]*$//'`
1797 if test $o != $tail; then
1798   ostry="$ostry /$o"
1799 fi
1800 # For linux-gnu, try linux-gnu, then linux.
1801 o=`echo $tail | sed 's/-.*$//'`
1802 if test $o != $tail; then
1803   ostry="$ostry /$o"
1804 fi
1805
1806 # For unix/sysv/sysv4, try unix/sysv/sysv4, then unix/sysv, then unix.
1807 base=
1808 tail=$base_os
1809 while b=`echo $tail | sed 's@^\(.*\)/\([^/]*\)$@& \1@'`; test -n "$b"; do
1810   set $b
1811   base="$base /$1"
1812   tail="$2"
1813 done
1814
1815 # For sparc/sparc32, try sparc/sparc32 and then sparc.
1816 mach=
1817 tail=$machine
1818 while m=`echo $tail | sed 's@^\(.*\)/\([^/]*\)$@& \1@'`; test -n "$m"; do
1819   set $m
1820   # Prepend the machine's FPU directory unless --without-fp.
1821   if test "$with_fp" = yes; then
1822     mach="$mach /$1/fpu"
1823   fi
1824   mach="$mach /$1"
1825   tail="$2"
1826 done
1827
1828
1829 # Find what sysdep directories exist.
1830 sysnames=
1831 IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1832 for d in $add_ons_pfx ''; do
1833   for b in $base ''; do
1834     for m0 in $mach ''; do
1835       for v in /$vendor ''; do
1836         test "$v" = / && continue
1837         for o in /$ostry ''; do
1838           test "$o" = / && continue
1839           for m in $mach ''; do
1840             if test "$m0$b$v$o$m"; then
1841               try="${d}sysdeps$m0$b$v$o$m"
1842               test -n "$enable_debug_configure" &&
1843               echo "$0 DEBUG: try $try" >&2
1844               if test -d $srcdir/$try; then
1845                 sysnames="$sysnames $try"
1846                 { test -n "$o" || test -n "$b"; } && os_used=t
1847                 { test -n "$m" || test -n "$m0"; } && machine_used=t
1848               fi
1849             fi
1850           done
1851         done
1852       done
1853     done
1854   done
1855 done
1856 IFS="$ac_save_ifs"
1857
1858 if test -z "$os_used" && test "$os" != none; then
1859   { { echo "$as_me:$LINENO: error: Operating system $os is not supported." >&5
1860 echo "$as_me: error: Operating system $os is not supported." >&2;}
1861    { (exit 1); exit 1; }; }
1862 fi
1863 if test -z "$machine_used" && test "$machine" != none; then
1864   { { echo "$as_me:$LINENO: error: The $machine is not supported." >&5
1865 echo "$as_me: error: The $machine is not supported." >&2;}
1866    { (exit 1); exit 1; }; }
1867 fi
1868
1869 # We have now validated the configuration.
1870
1871
1872 # If using ELF, look for an `elf' subdirectory of each machine directory.
1873 # We prepend these rather than inserting them whereever the machine appears
1874 # because things specified by the machine's ELF ABI should override
1875 # OS-specific things, and should always be the same for any OS on the
1876 # machine (otherwise what's the point of an ABI?).
1877 if test "$elf" = yes; then
1878   elf_dirs=
1879   for d in $add_ons_pfx ''; do
1880     for m in $mach; do
1881       if test -d $srcdir/${d}sysdeps$m/elf; then
1882         elf_dirs="$elf_dirs ${d}sysdeps$m/elf"
1883       fi
1884     done
1885   done
1886   sysnames="`echo $elf_dirs | sed -e 's,//,/,g'` $sysnames"
1887 fi
1888
1889
1890 # Expand the list of system names into a full list of directories
1891 # from each element's parent name and Implies file (if present).
1892 set $sysnames
1893 names=
1894 while test $# -gt 0; do
1895   name=$1
1896   shift
1897
1898   case " $names " in *" $name "*)
1899     # Already in the list.
1900     continue
1901   esac
1902
1903   # Report each name as we discover it, so there is no long pause in output.
1904   echo $ECHO_N "$name $ECHO_C" >&6
1905
1906   name_base=`echo $name | sed -e 's@\(.*sysdeps\)/.*@\1@'`
1907
1908   case $name in
1909     /*) xsrcdir= ;;
1910     *)  xsrcdir=$srcdir/ ;;
1911   esac
1912   test -n "$enable_debug_configure" &&
1913   echo "DEBUG: name/Implies $xsrcdir$name/Implies" >&2
1914
1915   if test -f $xsrcdir$name/Implies; then
1916     # Collect more names from the `Implies' file (removing comments).
1917     implied_candidate="`sed 's/#.*$//' < $xsrcdir$name/Implies`"
1918     implied=
1919     for x in $implied_candidate; do
1920       found=no
1921       if test -d $xsrcdir$name_base/$x; then
1922         implied="$implied $name_base/$x";
1923         found=yes
1924       fi
1925       for d in $add_ons_pfx ''; do
1926         try="${d}sysdeps/$x"
1927         case $d in
1928          /*) try_srcdir= ;;
1929          *) try_srcdir=$srcdir/ ;;
1930         esac
1931         test -n "$enable_debug_configure" &&
1932          echo "DEBUG: $name implied $x try($d) {$try_srcdir}$try" >&2
1933         if test $try != $xsrcdir$name_base/$x && test -d $try_srcdir$try;
1934         then
1935           implied="$implied $try"
1936           found=yes
1937         fi
1938       done
1939       if test $found = no; then
1940         { echo "$as_me:$LINENO: WARNING: $name/Implies specifies nonexistent $x" >&5
1941 echo "$as_me: WARNING: $name/Implies specifies nonexistent $x" >&2;}
1942       fi
1943     done
1944   else
1945     implied=
1946   fi
1947
1948   # Add NAME to the list of names.
1949   names="$names $name"
1950
1951   # Find the parent of NAME, using the empty string if it has none.
1952   parent="`echo $name | sed -n -e 's=/[^/]*$==' -e '/sysdeps$/q' -e p`"
1953
1954   # Add the names implied by NAME, and NAME's parent (if it has one), to
1955   # the list of names to be processed (the argument list).  We prepend the
1956   # implied names to the list and append the parent.  We want implied
1957   # directories to come before further directories inferred from the
1958   # configuration components; this ensures that for sysv4, unix/common
1959   # (implied by unix/sysv/sysv4) comes before unix/sysv (in ostry (here $*)
1960   # after sysv4).
1961   sysnames="`echo $implied $* $parent`"
1962   test -n "$sysnames" && set $sysnames
1963 done
1964
1965 # Add the default directories.
1966 default_sysnames=sysdeps/generic
1967 if test "$elf" = yes; then
1968   default_sysnames="sysdeps/generic/elf $default_sysnames"
1969 fi
1970 sysnames="$names $default_sysnames"
1971
1972 # The other names were emitted during the scan.
1973 echo "$as_me:$LINENO: result: $default_sysnames" >&5
1974 echo "${ECHO_T}$default_sysnames" >&6
1975
1976
1977 ### Locate tools.
1978
1979 # Find a good install program.  We prefer a C program (faster),
1980 # so one script is as good as another.  But avoid the broken or
1981 # incompatible versions:
1982 # SysV /etc/install, /usr/sbin/install
1983 # SunOS /usr/etc/install
1984 # IRIX /sbin/install
1985 # AIX /bin/install
1986 # AmigaOS /C/install, which installs bootblocks on floppy discs
1987 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1988 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1989 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1990 # ./install, which can be erroneously created by make from ./install.sh.
1991 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1992 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1993 if test -z "$INSTALL"; then
1994 if test "${ac_cv_path_install+set}" = set; then
1995   echo $ECHO_N "(cached) $ECHO_C" >&6
1996 else
1997   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1998 for as_dir in $PATH
1999 do
2000   IFS=$as_save_IFS
2001   test -z "$as_dir" && as_dir=.
2002   # Account for people who put trailing slashes in PATH elements.
2003 case $as_dir/ in
2004   ./ | .// | /cC/* | \
2005   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2006   /usr/ucb/* ) ;;
2007   *)
2008     # OSF1 and SCO ODT 3.0 have their own names for install.
2009     # Don't use installbsd from OSF since it installs stuff as root
2010     # by default.
2011     for ac_prog in ginstall scoinst install; do
2012       for ac_exec_ext in '' $ac_executable_extensions; do
2013         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2014           if test $ac_prog = install &&
2015             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2016             # AIX install.  It has an incompatible calling convention.
2017             :
2018           elif test $ac_prog = install &&
2019             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2020             # program-specific install script used by HP pwplus--don't use.
2021             :
2022           else
2023             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2024             break 3
2025           fi
2026         fi
2027       done
2028     done
2029     ;;
2030 esac
2031 done
2032
2033
2034 fi
2035   if test "${ac_cv_path_install+set}" = set; then
2036     INSTALL=$ac_cv_path_install
2037   else
2038     # As a last resort, use the slow shell script.  We don't cache a
2039     # path for INSTALL within a source directory, because that will
2040     # break other packages using the cache if that directory is
2041     # removed, or if the path is relative.
2042     INSTALL=$ac_install_sh
2043   fi
2044 fi
2045 echo "$as_me:$LINENO: result: $INSTALL" >&5
2046 echo "${ECHO_T}$INSTALL" >&6
2047
2048 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2049 # It thinks the first close brace ends the variable substitution.
2050 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2051
2052 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2053
2054 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2055
2056 if test "$INSTALL" = "${srcdir}/scripts/install-sh -c"; then
2057   # The makefiles need to use a different form to find it in $srcdir.
2058   INSTALL='\$(..)./scripts/install-sh -c'
2059 fi
2060 echo "$as_me:$LINENO: checking whether ln -s works" >&5
2061 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
2062 LN_S=$as_ln_s
2063 if test "$LN_S" = "ln -s"; then
2064   echo "$as_me:$LINENO: result: yes" >&5
2065 echo "${ECHO_T}yes" >&6
2066 else
2067   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
2068 echo "${ECHO_T}no, using $LN_S" >&6
2069 fi
2070
2071
2072 # We need the physical current working directory.  We cannot use the
2073 # "pwd -P" shell builtin since that's not portable.  Instead we try to
2074 # find a pwd binary.  Note that assigning to the PWD environment
2075 # variable might have some interesting side effects, so we don't do
2076 # that.
2077 # Extract the first word of "pwd", so it can be a program name with args.
2078 set dummy pwd; ac_word=$2
2079 echo "$as_me:$LINENO: checking for $ac_word" >&5
2080 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2081 if test "${ac_cv_path_PWD_P+set}" = set; then
2082   echo $ECHO_N "(cached) $ECHO_C" >&6
2083 else
2084   case $PWD_P in
2085   [\\/]* | ?:[\\/]*)
2086   ac_cv_path_PWD_P="$PWD_P" # Let the user override the test with a path.
2087   ;;
2088   *)
2089   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2090 for as_dir in $PATH
2091 do
2092   IFS=$as_save_IFS
2093   test -z "$as_dir" && as_dir=.
2094   for ac_exec_ext in '' $ac_executable_extensions; do
2095   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2096     ac_cv_path_PWD_P="$as_dir/$ac_word$ac_exec_ext"
2097     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2098     break 2
2099   fi
2100 done
2101 done
2102
2103   test -z "$ac_cv_path_PWD_P" && ac_cv_path_PWD_P="no"
2104   ;;
2105 esac
2106 fi
2107 PWD_P=$ac_cv_path_PWD_P
2108
2109 if test -n "$PWD_P"; then
2110   echo "$as_me:$LINENO: result: $PWD_P" >&5
2111 echo "${ECHO_T}$PWD_P" >&6
2112 else
2113   echo "$as_me:$LINENO: result: no" >&5
2114 echo "${ECHO_T}no" >&6
2115 fi
2116
2117 if test "$PWD_P" = no; then
2118   { { echo "$as_me:$LINENO: error: *** A pwd binary could not be found." >&5
2119 echo "$as_me: error: *** A pwd binary could not be found." >&2;}
2120    { (exit 1); exit 1; }; }
2121 fi
2122
2123 # These programs are version sensitive.
2124
2125 for ac_prog in ${ac_tool_prefix}gcc ${ac_tool_prefix}cc
2126 do
2127   # Extract the first word of "$ac_prog", so it can be a program name with args.
2128 set dummy $ac_prog; ac_word=$2
2129 echo "$as_me:$LINENO: checking for $ac_word" >&5
2130 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2131 if test "${ac_cv_prog_CC+set}" = set; then
2132   echo $ECHO_N "(cached) $ECHO_C" >&6
2133 else
2134   if test -n "$CC"; then
2135   ac_cv_prog_CC="$CC" # Let the user override the test.
2136 else
2137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2138 for as_dir in $PATH
2139 do
2140   IFS=$as_save_IFS
2141   test -z "$as_dir" && as_dir=.
2142   for ac_exec_ext in '' $ac_executable_extensions; do
2143   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2144     ac_cv_prog_CC="$ac_prog"
2145     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2146     break 2
2147   fi
2148 done
2149 done
2150
2151 fi
2152 fi
2153 CC=$ac_cv_prog_CC
2154 if test -n "$CC"; then
2155   echo "$as_me:$LINENO: result: $CC" >&5
2156 echo "${ECHO_T}$CC" >&6
2157 else
2158   echo "$as_me:$LINENO: result: no" >&5
2159 echo "${ECHO_T}no" >&6
2160 fi
2161
2162   test -n "$CC" && break
2163 done
2164
2165 if test -z "$CC"; then
2166   ac_verc_fail=yes
2167 else
2168   # Found it, now check the version.
2169   echo "$as_me:$LINENO: checking version of $CC" >&5
2170 echo $ECHO_N "checking version of $CC... $ECHO_C" >&6
2171   ac_prog_version=`$CC -v 2>&1 | sed -n 's/^.*version \([egcygnustpi-]*[0-9.]*\).*$/\1/p'`
2172   case $ac_prog_version in
2173     '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
2174     3.[2-9]*)
2175        ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
2176     *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
2177
2178   esac
2179   echo "$as_me:$LINENO: result: $ac_prog_version" >&5
2180 echo "${ECHO_T}$ac_prog_version" >&6
2181 fi
2182 if test $ac_verc_fail = yes; then
2183   critic_missing="$critic_missing gcc"
2184 fi
2185
2186 for ac_prog in gnumake gmake make
2187 do
2188   # Extract the first word of "$ac_prog", so it can be a program name with args.
2189 set dummy $ac_prog; ac_word=$2
2190 echo "$as_me:$LINENO: checking for $ac_word" >&5
2191 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2192 if test "${ac_cv_prog_MAKE+set}" = set; then
2193   echo $ECHO_N "(cached) $ECHO_C" >&6
2194 else
2195   if test -n "$MAKE"; then
2196   ac_cv_prog_MAKE="$MAKE" # Let the user override the test.
2197 else
2198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2199 for as_dir in $PATH
2200 do
2201   IFS=$as_save_IFS
2202   test -z "$as_dir" && as_dir=.
2203   for ac_exec_ext in '' $ac_executable_extensions; do
2204   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2205     ac_cv_prog_MAKE="$ac_prog"
2206     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2207     break 2
2208   fi
2209 done
2210 done
2211
2212 fi
2213 fi
2214 MAKE=$ac_cv_prog_MAKE
2215 if test -n "$MAKE"; then
2216   echo "$as_me:$LINENO: result: $MAKE" >&5
2217 echo "${ECHO_T}$MAKE" >&6
2218 else
2219   echo "$as_me:$LINENO: result: no" >&5
2220 echo "${ECHO_T}no" >&6
2221 fi
2222
2223   test -n "$MAKE" && break
2224 done
2225
2226 if test -z "$MAKE"; then
2227   ac_verc_fail=yes
2228 else
2229   # Found it, now check the version.
2230   echo "$as_me:$LINENO: checking version of $MAKE" >&5
2231 echo $ECHO_N "checking version of $MAKE... $ECHO_C" >&6
2232   ac_prog_version=`$MAKE --version 2>&1 | sed -n 's/^.*GNU Make[^0-9]*\([0-9][0-9.]*\).*$/\1/p'`
2233   case $ac_prog_version in
2234     '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
2235     3.79* | 3.[89]*)
2236        ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
2237     *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
2238
2239   esac
2240   echo "$as_me:$LINENO: result: $ac_prog_version" >&5
2241 echo "${ECHO_T}$ac_prog_version" >&6
2242 fi
2243 if test $ac_verc_fail = yes; then
2244   critic_missing="$critic_missing make"
2245 fi
2246
2247
2248
2249 if test -n "$critic_missing"; then
2250 { { echo "$as_me:$LINENO: error:
2251 *** These critical programs are missing or too old:$critic_missing
2252 *** Check the INSTALL file for required versions." >&5
2253 echo "$as_me: error:
2254 *** These critical programs are missing or too old:$critic_missing
2255 *** Check the INSTALL file for required versions." >&2;}
2256    { (exit 1); exit 1; }; }
2257 fi
2258
2259
2260 for ac_prog in gnumsgfmt gmsgfmt msgfmt
2261 do
2262   # Extract the first word of "$ac_prog", so it can be a program name with args.
2263 set dummy $ac_prog; ac_word=$2
2264 echo "$as_me:$LINENO: checking for $ac_word" >&5
2265 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2266 if test "${ac_cv_prog_MSGFMT+set}" = set; then
2267   echo $ECHO_N "(cached) $ECHO_C" >&6
2268 else
2269   if test -n "$MSGFMT"; then
2270   ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
2271 else
2272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2273 for as_dir in $PATH
2274 do
2275   IFS=$as_save_IFS
2276   test -z "$as_dir" && as_dir=.
2277   for ac_exec_ext in '' $ac_executable_extensions; do
2278   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2279     ac_cv_prog_MSGFMT="$ac_prog"
2280     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2281     break 2
2282   fi
2283 done
2284 done
2285
2286 fi
2287 fi
2288 MSGFMT=$ac_cv_prog_MSGFMT
2289 if test -n "$MSGFMT"; then
2290   echo "$as_me:$LINENO: result: $MSGFMT" >&5
2291 echo "${ECHO_T}$MSGFMT" >&6
2292 else
2293   echo "$as_me:$LINENO: result: no" >&5
2294 echo "${ECHO_T}no" >&6
2295 fi
2296
2297   test -n "$MSGFMT" && break
2298 done
2299
2300 if test -z "$MSGFMT"; then
2301   ac_verc_fail=yes
2302 else
2303   # Found it, now check the version.
2304   echo "$as_me:$LINENO: checking version of $MSGFMT" >&5
2305 echo $ECHO_N "checking version of $MSGFMT... $ECHO_C" >&6
2306   ac_prog_version=`$MSGFMT --version 2>&1 | sed -n 's/^.*GNU gettext.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
2307   case $ac_prog_version in
2308     '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
2309     0.10.3[6-9]* | 0.10.[4-9][0-9]* | 0.1[1-9]* | 0.[2-9][0-9]* | [1-9].*)
2310        ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
2311     *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
2312
2313   esac
2314   echo "$as_me:$LINENO: result: $ac_prog_version" >&5
2315 echo "${ECHO_T}$ac_prog_version" >&6
2316 fi
2317 if test $ac_verc_fail = yes; then
2318   MSGFMT=: aux_missing="$aux_missing msgfmt"
2319 fi
2320
2321 for ac_prog in makeinfo
2322 do
2323   # Extract the first word of "$ac_prog", so it can be a program name with args.
2324 set dummy $ac_prog; ac_word=$2
2325 echo "$as_me:$LINENO: checking for $ac_word" >&5
2326 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2327 if test "${ac_cv_prog_MAKEINFO+set}" = set; then
2328   echo $ECHO_N "(cached) $ECHO_C" >&6
2329 else
2330   if test -n "$MAKEINFO"; then
2331   ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
2332 else
2333 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2334 for as_dir in $PATH
2335 do
2336   IFS=$as_save_IFS
2337   test -z "$as_dir" && as_dir=.
2338   for ac_exec_ext in '' $ac_executable_extensions; do
2339   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2340     ac_cv_prog_MAKEINFO="$ac_prog"
2341     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2342     break 2
2343   fi
2344 done
2345 done
2346
2347 fi
2348 fi
2349 MAKEINFO=$ac_cv_prog_MAKEINFO
2350 if test -n "$MAKEINFO"; then
2351   echo "$as_me:$LINENO: result: $MAKEINFO" >&5
2352 echo "${ECHO_T}$MAKEINFO" >&6
2353 else
2354   echo "$as_me:$LINENO: result: no" >&5
2355 echo "${ECHO_T}no" >&6
2356 fi
2357
2358   test -n "$MAKEINFO" && break
2359 done
2360
2361 if test -z "$MAKEINFO"; then
2362   ac_verc_fail=yes
2363 else
2364   # Found it, now check the version.
2365   echo "$as_me:$LINENO: checking version of $MAKEINFO" >&5
2366 echo $ECHO_N "checking version of $MAKEINFO... $ECHO_C" >&6
2367   ac_prog_version=`$MAKEINFO --version 2>&1 | sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
2368   case $ac_prog_version in
2369     '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
2370     4.*)
2371        ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
2372     *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
2373
2374   esac
2375   echo "$as_me:$LINENO: result: $ac_prog_version" >&5
2376 echo "${ECHO_T}$ac_prog_version" >&6
2377 fi
2378 if test $ac_verc_fail = yes; then
2379   MAKEINFO=: aux_missing="$aux_missing makeinfo"
2380 fi
2381
2382 for ac_prog in sed
2383 do
2384   # Extract the first word of "$ac_prog", so it can be a program name with args.
2385 set dummy $ac_prog; ac_word=$2
2386 echo "$as_me:$LINENO: checking for $ac_word" >&5
2387 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2388 if test "${ac_cv_prog_SED+set}" = set; then
2389   echo $ECHO_N "(cached) $ECHO_C" >&6
2390 else
2391   if test -n "$SED"; then
2392   ac_cv_prog_SED="$SED" # Let the user override the test.
2393 else
2394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2395 for as_dir in $PATH
2396 do
2397   IFS=$as_save_IFS
2398   test -z "$as_dir" && as_dir=.
2399   for ac_exec_ext in '' $ac_executable_extensions; do
2400   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2401     ac_cv_prog_SED="$ac_prog"
2402     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2403     break 2
2404   fi
2405 done
2406 done
2407
2408 fi
2409 fi
2410 SED=$ac_cv_prog_SED
2411 if test -n "$SED"; then
2412   echo "$as_me:$LINENO: result: $SED" >&5
2413 echo "${ECHO_T}$SED" >&6
2414 else
2415   echo "$as_me:$LINENO: result: no" >&5
2416 echo "${ECHO_T}no" >&6
2417 fi
2418
2419   test -n "$SED" && break
2420 done
2421
2422 if test -z "$SED"; then
2423   ac_verc_fail=yes
2424 else
2425   # Found it, now check the version.
2426   echo "$as_me:$LINENO: checking version of $SED" >&5
2427 echo $ECHO_N "checking version of $SED... $ECHO_C" >&6
2428   ac_prog_version=`$SED --version 2>&1 | sed -n 's/^.*GNU sed version \([0-9]*\.[0-9.]*\).*$/\1/p'`
2429   case $ac_prog_version in
2430     '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
2431     3.0[2-9]*|3.[1-9]*|[4-9]*)
2432        ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
2433     *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
2434
2435   esac
2436   echo "$as_me:$LINENO: result: $ac_prog_version" >&5
2437 echo "${ECHO_T}$ac_prog_version" >&6
2438 fi
2439 if test $ac_verc_fail = yes; then
2440   SED=: aux_missing="$aux_missing sed"
2441 fi
2442
2443
2444 for ac_prog in autoconf
2445 do
2446   # Extract the first word of "$ac_prog", so it can be a program name with args.
2447 set dummy $ac_prog; ac_word=$2
2448 echo "$as_me:$LINENO: checking for $ac_word" >&5
2449 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2450 if test "${ac_cv_prog_AUTOCONF+set}" = set; then
2451   echo $ECHO_N "(cached) $ECHO_C" >&6
2452 else
2453   if test -n "$AUTOCONF"; then
2454   ac_cv_prog_AUTOCONF="$AUTOCONF" # Let the user override the test.
2455 else
2456 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2457 for as_dir in $PATH
2458 do
2459   IFS=$as_save_IFS
2460   test -z "$as_dir" && as_dir=.
2461   for ac_exec_ext in '' $ac_executable_extensions; do
2462   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2463     ac_cv_prog_AUTOCONF="$ac_prog"
2464     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2465     break 2
2466   fi
2467 done
2468 done
2469
2470 fi
2471 fi
2472 AUTOCONF=$ac_cv_prog_AUTOCONF
2473 if test -n "$AUTOCONF"; then
2474   echo "$as_me:$LINENO: result: $AUTOCONF" >&5
2475 echo "${ECHO_T}$AUTOCONF" >&6
2476 else
2477   echo "$as_me:$LINENO: result: no" >&5
2478 echo "${ECHO_T}no" >&6
2479 fi
2480
2481   test -n "$AUTOCONF" && break
2482 done
2483 test -n "$AUTOCONF" || AUTOCONF="no"
2484
2485 case "x$AUTOCONF" in
2486 xno|x|x:) AUTOCONF=no ;;
2487 *)
2488   echo "$as_me:$LINENO: checking whether $AUTOCONF${ACFLAGS:+ }$ACFLAGS works" >&5
2489 echo $ECHO_N "checking whether $AUTOCONF${ACFLAGS:+ }$ACFLAGS works... $ECHO_C" >&6
2490 if test "${libc_cv_autoconf_works+set}" = set; then
2491   echo $ECHO_N "(cached) $ECHO_C" >&6
2492 else
2493     if (cd $srcdir; $AUTOCONF $ACFLAGS configure.in > /dev/null 2>&1); then
2494     libc_cv_autoconf_works=yes
2495   else
2496     libc_cv_autoconf_works=no
2497   fi
2498 fi
2499 echo "$as_me:$LINENO: result: $libc_cv_autoconf_works" >&5
2500 echo "${ECHO_T}$libc_cv_autoconf_works" >&6
2501   test $libc_cv_autoconf_works = yes || AUTOCONF=no
2502   ;;
2503 esac
2504 test "x$AUTOCONF" != xno || aux_missing="$aux_missing autoconf"
2505
2506 ac_ext=c
2507 ac_cpp='$CPP $CPPFLAGS'
2508 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2509 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2510 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2511 if test -n "$ac_tool_prefix"; then
2512   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2513 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2514 echo "$as_me:$LINENO: checking for $ac_word" >&5
2515 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2516 if test "${ac_cv_prog_CC+set}" = set; then
2517   echo $ECHO_N "(cached) $ECHO_C" >&6
2518 else
2519   if test -n "$CC"; then
2520   ac_cv_prog_CC="$CC" # Let the user override the test.
2521 else
2522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2523 for as_dir in $PATH
2524 do
2525   IFS=$as_save_IFS
2526   test -z "$as_dir" && as_dir=.
2527   for ac_exec_ext in '' $ac_executable_extensions; do
2528   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2529     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2530     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2531     break 2
2532   fi
2533 done
2534 done
2535
2536 fi
2537 fi
2538 CC=$ac_cv_prog_CC
2539 if test -n "$CC"; then
2540   echo "$as_me:$LINENO: result: $CC" >&5
2541 echo "${ECHO_T}$CC" >&6
2542 else
2543   echo "$as_me:$LINENO: result: no" >&5
2544 echo "${ECHO_T}no" >&6
2545 fi
2546
2547 fi
2548 if test -z "$ac_cv_prog_CC"; then
2549   ac_ct_CC=$CC
2550   # Extract the first word of "gcc", so it can be a program name with args.
2551 set dummy gcc; ac_word=$2
2552 echo "$as_me:$LINENO: checking for $ac_word" >&5
2553 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2554 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2555   echo $ECHO_N "(cached) $ECHO_C" >&6
2556 else
2557   if test -n "$ac_ct_CC"; then
2558   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2559 else
2560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2561 for as_dir in $PATH
2562 do
2563   IFS=$as_save_IFS
2564   test -z "$as_dir" && as_dir=.
2565   for ac_exec_ext in '' $ac_executable_extensions; do
2566   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2567     ac_cv_prog_ac_ct_CC="gcc"
2568     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2569     break 2
2570   fi
2571 done
2572 done
2573
2574 fi
2575 fi
2576 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2577 if test -n "$ac_ct_CC"; then
2578   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2579 echo "${ECHO_T}$ac_ct_CC" >&6
2580 else
2581   echo "$as_me:$LINENO: result: no" >&5
2582 echo "${ECHO_T}no" >&6
2583 fi
2584
2585   CC=$ac_ct_CC
2586 else
2587   CC="$ac_cv_prog_CC"
2588 fi
2589
2590 if test -z "$CC"; then
2591   if test -n "$ac_tool_prefix"; then
2592   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2593 set dummy ${ac_tool_prefix}cc; ac_word=$2
2594 echo "$as_me:$LINENO: checking for $ac_word" >&5
2595 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2596 if test "${ac_cv_prog_CC+set}" = set; then
2597   echo $ECHO_N "(cached) $ECHO_C" >&6
2598 else
2599   if test -n "$CC"; then
2600   ac_cv_prog_CC="$CC" # Let the user override the test.
2601 else
2602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2603 for as_dir in $PATH
2604 do
2605   IFS=$as_save_IFS
2606   test -z "$as_dir" && as_dir=.
2607   for ac_exec_ext in '' $ac_executable_extensions; do
2608   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2609     ac_cv_prog_CC="${ac_tool_prefix}cc"
2610     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2611     break 2
2612   fi
2613 done
2614 done
2615
2616 fi
2617 fi
2618 CC=$ac_cv_prog_CC
2619 if test -n "$CC"; then
2620   echo "$as_me:$LINENO: result: $CC" >&5
2621 echo "${ECHO_T}$CC" >&6
2622 else
2623   echo "$as_me:$LINENO: result: no" >&5
2624 echo "${ECHO_T}no" >&6
2625 fi
2626
2627 fi
2628 if test -z "$ac_cv_prog_CC"; then
2629   ac_ct_CC=$CC
2630   # Extract the first word of "cc", so it can be a program name with args.
2631 set dummy cc; ac_word=$2
2632 echo "$as_me:$LINENO: checking for $ac_word" >&5
2633 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2634 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2635   echo $ECHO_N "(cached) $ECHO_C" >&6
2636 else
2637   if test -n "$ac_ct_CC"; then
2638   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2639 else
2640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2641 for as_dir in $PATH
2642 do
2643   IFS=$as_save_IFS
2644   test -z "$as_dir" && as_dir=.
2645   for ac_exec_ext in '' $ac_executable_extensions; do
2646   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2647     ac_cv_prog_ac_ct_CC="cc"
2648     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2649     break 2
2650   fi
2651 done
2652 done
2653
2654 fi
2655 fi
2656 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2657 if test -n "$ac_ct_CC"; then
2658   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2659 echo "${ECHO_T}$ac_ct_CC" >&6
2660 else
2661   echo "$as_me:$LINENO: result: no" >&5
2662 echo "${ECHO_T}no" >&6
2663 fi
2664
2665   CC=$ac_ct_CC
2666 else
2667   CC="$ac_cv_prog_CC"
2668 fi
2669
2670 fi
2671 if test -z "$CC"; then
2672   # Extract the first word of "cc", so it can be a program name with args.
2673 set dummy cc; ac_word=$2
2674 echo "$as_me:$LINENO: checking for $ac_word" >&5
2675 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2676 if test "${ac_cv_prog_CC+set}" = set; then
2677   echo $ECHO_N "(cached) $ECHO_C" >&6
2678 else
2679   if test -n "$CC"; then
2680   ac_cv_prog_CC="$CC" # Let the user override the test.
2681 else
2682   ac_prog_rejected=no
2683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2684 for as_dir in $PATH
2685 do
2686   IFS=$as_save_IFS
2687   test -z "$as_dir" && as_dir=.
2688   for ac_exec_ext in '' $ac_executable_extensions; do
2689   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2690     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2691        ac_prog_rejected=yes
2692        continue
2693      fi
2694     ac_cv_prog_CC="cc"
2695     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2696     break 2
2697   fi
2698 done
2699 done
2700
2701 if test $ac_prog_rejected = yes; then
2702   # We found a bogon in the path, so make sure we never use it.
2703   set dummy $ac_cv_prog_CC
2704   shift
2705   if test $# != 0; then
2706     # We chose a different compiler from the bogus one.
2707     # However, it has the same basename, so the bogon will be chosen
2708     # first if we set CC to just the basename; use the full file name.
2709     shift
2710     set dummy "$as_dir/$ac_word" ${1+"$@"}
2711     shift
2712     ac_cv_prog_CC="$@"
2713   fi
2714 fi
2715 fi
2716 fi
2717 CC=$ac_cv_prog_CC
2718 if test -n "$CC"; then
2719   echo "$as_me:$LINENO: result: $CC" >&5
2720 echo "${ECHO_T}$CC" >&6
2721 else
2722   echo "$as_me:$LINENO: result: no" >&5
2723 echo "${ECHO_T}no" >&6
2724 fi
2725
2726 fi
2727 if test -z "$CC"; then
2728   if test -n "$ac_tool_prefix"; then
2729   for ac_prog in cl
2730   do
2731     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2732 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2733 echo "$as_me:$LINENO: checking for $ac_word" >&5
2734 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2735 if test "${ac_cv_prog_CC+set}" = set; then
2736   echo $ECHO_N "(cached) $ECHO_C" >&6
2737 else
2738   if test -n "$CC"; then
2739   ac_cv_prog_CC="$CC" # Let the user override the test.
2740 else
2741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2742 for as_dir in $PATH
2743 do
2744   IFS=$as_save_IFS
2745   test -z "$as_dir" && as_dir=.
2746   for ac_exec_ext in '' $ac_executable_extensions; do
2747   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2748     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2749     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2750     break 2
2751   fi
2752 done
2753 done
2754
2755 fi
2756 fi
2757 CC=$ac_cv_prog_CC
2758 if test -n "$CC"; then
2759   echo "$as_me:$LINENO: result: $CC" >&5
2760 echo "${ECHO_T}$CC" >&6
2761 else
2762   echo "$as_me:$LINENO: result: no" >&5
2763 echo "${ECHO_T}no" >&6
2764 fi
2765
2766     test -n "$CC" && break
2767   done
2768 fi
2769 if test -z "$CC"; then
2770   ac_ct_CC=$CC
2771   for ac_prog in cl
2772 do
2773   # Extract the first word of "$ac_prog", so it can be a program name with args.
2774 set dummy $ac_prog; ac_word=$2
2775 echo "$as_me:$LINENO: checking for $ac_word" >&5
2776 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2777 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2778   echo $ECHO_N "(cached) $ECHO_C" >&6
2779 else
2780   if test -n "$ac_ct_CC"; then
2781   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2782 else
2783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2784 for as_dir in $PATH
2785 do
2786   IFS=$as_save_IFS
2787   test -z "$as_dir" && as_dir=.
2788   for ac_exec_ext in '' $ac_executable_extensions; do
2789   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2790     ac_cv_prog_ac_ct_CC="$ac_prog"
2791     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2792     break 2
2793   fi
2794 done
2795 done
2796
2797 fi
2798 fi
2799 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2800 if test -n "$ac_ct_CC"; then
2801   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2802 echo "${ECHO_T}$ac_ct_CC" >&6
2803 else
2804   echo "$as_me:$LINENO: result: no" >&5
2805 echo "${ECHO_T}no" >&6
2806 fi
2807
2808   test -n "$ac_ct_CC" && break
2809 done
2810
2811   CC=$ac_ct_CC
2812 fi
2813
2814 fi
2815
2816
2817 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
2818 echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
2819    { (exit 1); exit 1; }; }
2820
2821 # Provide some information about the compiler.
2822 echo "$as_me:$LINENO:" \
2823      "checking for C compiler version" >&5
2824 ac_compiler=`set X $ac_compile; echo $2`
2825 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2826   (eval $ac_compiler --version </dev/null >&5) 2>&5
2827   ac_status=$?
2828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2829   (exit $ac_status); }
2830 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2831   (eval $ac_compiler -v </dev/null >&5) 2>&5
2832   ac_status=$?
2833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2834   (exit $ac_status); }
2835 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2836   (eval $ac_compiler -V </dev/null >&5) 2>&5
2837   ac_status=$?
2838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2839   (exit $ac_status); }
2840
2841 EXEEXT=
2842 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2843 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2844 if test "${ac_cv_objext+set}" = set; then
2845   echo $ECHO_N "(cached) $ECHO_C" >&6
2846 else
2847   cat >conftest.$ac_ext <<_ACEOF
2848 #line $LINENO "configure"
2849 #include "confdefs.h"
2850
2851 #ifdef F77_DUMMY_MAIN
2852 #  ifdef __cplusplus
2853      extern "C"
2854 #  endif
2855    int F77_DUMMY_MAIN() { return 1; }
2856 #endif
2857 int
2858 main ()
2859 {
2860
2861   ;
2862   return 0;
2863 }
2864 _ACEOF
2865 rm -f conftest.o conftest.obj
2866 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2867   (eval $ac_compile) 2>&5
2868   ac_status=$?
2869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2870   (exit $ac_status); }; then
2871   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2872   case $ac_file in
2873     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
2874     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2875        break;;
2876   esac
2877 done
2878 else
2879   echo "$as_me: failed program was:" >&5
2880 cat conftest.$ac_ext >&5
2881 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5
2882 echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;}
2883    { (exit 1); exit 1; }; }
2884 fi
2885
2886 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2887 fi
2888 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2889 echo "${ECHO_T}$ac_cv_objext" >&6
2890 OBJEXT=$ac_cv_objext
2891 ac_objext=$OBJEXT
2892 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2893 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2894 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2895   echo $ECHO_N "(cached) $ECHO_C" >&6
2896 else
2897   cat >conftest.$ac_ext <<_ACEOF
2898 #line $LINENO "configure"
2899 #include "confdefs.h"
2900
2901 #ifdef F77_DUMMY_MAIN
2902 #  ifdef __cplusplus
2903      extern "C"
2904 #  endif
2905    int F77_DUMMY_MAIN() { return 1; }
2906 #endif
2907 int
2908 main ()
2909 {
2910 #ifndef __GNUC__
2911        choke me
2912 #endif
2913
2914   ;
2915   return 0;
2916 }
2917 _ACEOF
2918 rm -f conftest.$ac_objext
2919 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2920   (eval $ac_compile) 2>&5
2921   ac_status=$?
2922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2923   (exit $ac_status); } &&
2924          { ac_try='test -s conftest.$ac_objext'
2925   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2926   (eval $ac_try) 2>&5
2927   ac_status=$?
2928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2929   (exit $ac_status); }; }; then
2930   ac_compiler_gnu=yes
2931 else
2932   echo "$as_me: failed program was:" >&5
2933 cat conftest.$ac_ext >&5
2934 ac_compiler_gnu=no
2935 fi
2936 rm -f conftest.$ac_objext conftest.$ac_ext
2937 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2938
2939 fi
2940 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2941 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2942 GCC=`test $ac_compiler_gnu = yes && echo yes`
2943 ac_test_CFLAGS=${CFLAGS+set}
2944 ac_save_CFLAGS=$CFLAGS
2945 CFLAGS="-g"
2946 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2947 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2948 if test "${ac_cv_prog_cc_g+set}" = set; then
2949   echo $ECHO_N "(cached) $ECHO_C" >&6
2950 else
2951   cat >conftest.$ac_ext <<_ACEOF
2952 #line $LINENO "configure"
2953 #include "confdefs.h"
2954
2955 #ifdef F77_DUMMY_MAIN
2956 #  ifdef __cplusplus
2957      extern "C"
2958 #  endif
2959    int F77_DUMMY_MAIN() { return 1; }
2960 #endif
2961 int
2962 main ()
2963 {
2964
2965   ;
2966   return 0;
2967 }
2968 _ACEOF
2969 rm -f conftest.$ac_objext
2970 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2971   (eval $ac_compile) 2>&5
2972   ac_status=$?
2973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2974   (exit $ac_status); } &&
2975          { ac_try='test -s conftest.$ac_objext'
2976   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2977   (eval $ac_try) 2>&5
2978   ac_status=$?
2979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2980   (exit $ac_status); }; }; then
2981   ac_cv_prog_cc_g=yes
2982 else
2983   echo "$as_me: failed program was:" >&5
2984 cat conftest.$ac_ext >&5
2985 ac_cv_prog_cc_g=no
2986 fi
2987 rm -f conftest.$ac_objext conftest.$ac_ext
2988 fi
2989 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2990 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2991 if test "$ac_test_CFLAGS" = set; then
2992   CFLAGS=$ac_save_CFLAGS
2993 elif test $ac_cv_prog_cc_g = yes; then
2994   if test "$GCC" = yes; then
2995     CFLAGS="-g -O2"
2996   else
2997     CFLAGS="-g"
2998   fi
2999 else
3000   if test "$GCC" = yes; then
3001     CFLAGS="-O2"
3002   else
3003     CFLAGS=
3004   fi
3005 fi
3006 # Some people use a C++ compiler to compile C.  Since we use `exit',
3007 # in C++ we need to declare it.  In case someone uses the same compiler
3008 # for both compiling C and C++ we need to have the C++ compiler decide
3009 # the declaration of exit, since it's the most demanding environment.
3010 cat >conftest.$ac_ext <<_ACEOF
3011 #ifndef __cplusplus
3012   choke me
3013 #endif
3014 _ACEOF
3015 rm -f conftest.$ac_objext
3016 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3017   (eval $ac_compile) 2>&5
3018   ac_status=$?
3019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3020   (exit $ac_status); } &&
3021          { ac_try='test -s conftest.$ac_objext'
3022   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3023   (eval $ac_try) 2>&5
3024   ac_status=$?
3025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3026   (exit $ac_status); }; }; then
3027   for ac_declaration in \
3028    ''\
3029    '#include <stdlib.h>' \
3030    'extern "C" void std::exit (int) throw (); using std::exit;' \
3031    'extern "C" void std::exit (int); using std::exit;' \
3032    'extern "C" void exit (int) throw ();' \
3033    'extern "C" void exit (int);' \
3034    'void exit (int);'
3035 do
3036   cat >conftest.$ac_ext <<_ACEOF
3037 #line $LINENO "configure"
3038 #include "confdefs.h"
3039 #include <stdlib.h>
3040 $ac_declaration
3041 #ifdef F77_DUMMY_MAIN
3042 #  ifdef __cplusplus
3043      extern "C"
3044 #  endif
3045    int F77_DUMMY_MAIN() { return 1; }
3046 #endif
3047 int
3048 main ()
3049 {
3050 exit (42);
3051   ;
3052   return 0;
3053 }
3054 _ACEOF
3055 rm -f conftest.$ac_objext
3056 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3057   (eval $ac_compile) 2>&5
3058   ac_status=$?
3059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3060   (exit $ac_status); } &&
3061          { ac_try='test -s conftest.$ac_objext'
3062   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3063   (eval $ac_try) 2>&5
3064   ac_status=$?
3065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3066   (exit $ac_status); }; }; then
3067   :
3068 else
3069   echo "$as_me: failed program was:" >&5
3070 cat conftest.$ac_ext >&5
3071 continue
3072 fi
3073 rm -f conftest.$ac_objext conftest.$ac_ext
3074   cat >conftest.$ac_ext <<_ACEOF
3075 #line $LINENO "configure"
3076 #include "confdefs.h"
3077 $ac_declaration
3078 #ifdef F77_DUMMY_MAIN
3079 #  ifdef __cplusplus
3080      extern "C"
3081 #  endif
3082    int F77_DUMMY_MAIN() { return 1; }
3083 #endif
3084 int
3085 main ()
3086 {
3087 exit (42);
3088   ;
3089   return 0;
3090 }
3091 _ACEOF
3092 rm -f conftest.$ac_objext
3093 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3094   (eval $ac_compile) 2>&5
3095   ac_status=$?
3096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3097   (exit $ac_status); } &&
3098          { ac_try='test -s conftest.$ac_objext'
3099   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3100   (eval $ac_try) 2>&5
3101   ac_status=$?
3102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3103   (exit $ac_status); }; }; then
3104   break
3105 else
3106   echo "$as_me: failed program was:" >&5
3107 cat conftest.$ac_ext >&5
3108 fi
3109 rm -f conftest.$ac_objext conftest.$ac_ext
3110 done
3111 rm -f conftest*
3112 if test -n "$ac_declaration"; then
3113   echo '#ifdef __cplusplus' >>confdefs.h
3114   echo $ac_declaration      >>confdefs.h
3115   echo '#endif'             >>confdefs.h
3116 fi
3117
3118 else
3119   echo "$as_me: failed program was:" >&5
3120 cat conftest.$ac_ext >&5
3121 fi
3122 rm -f conftest.$ac_objext conftest.$ac_ext
3123 ac_ext=c
3124 ac_cpp='$CPP $CPPFLAGS'
3125 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3126 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3127 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3128
3129 if test $host != $build; then
3130   for ac_prog in gcc cc
3131 do
3132   # Extract the first word of "$ac_prog", so it can be a program name with args.
3133 set dummy $ac_prog; ac_word=$2
3134 echo "$as_me:$LINENO: checking for $ac_word" >&5
3135 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3136 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
3137   echo $ECHO_N "(cached) $ECHO_C" >&6
3138 else
3139   if test -n "$BUILD_CC"; then
3140   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
3141 else
3142 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3143 for as_dir in $PATH
3144 do
3145   IFS=$as_save_IFS
3146   test -z "$as_dir" && as_dir=.
3147   for ac_exec_ext in '' $ac_executable_extensions; do
3148   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3149     ac_cv_prog_BUILD_CC="$ac_prog"
3150     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3151     break 2
3152   fi
3153 done
3154 done
3155
3156 fi
3157 fi
3158 BUILD_CC=$ac_cv_prog_BUILD_CC
3159 if test -n "$BUILD_CC"; then
3160   echo "$as_me:$LINENO: result: $BUILD_CC" >&5
3161 echo "${ECHO_T}$BUILD_CC" >&6
3162 else
3163   echo "$as_me:$LINENO: result: no" >&5
3164 echo "${ECHO_T}no" >&6
3165 fi
3166
3167   test -n "$BUILD_CC" && break
3168 done
3169
3170 fi
3171
3172 ac_ext=c
3173 ac_cpp='$CPP $CPPFLAGS'
3174 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3175 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3176 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3177 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3178 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3179 # On Suns, sometimes $CPP names a directory.
3180 if test -n "$CPP" && test -d "$CPP"; then
3181   CPP=
3182 fi
3183 if test -z "$CPP"; then
3184   if test "${ac_cv_prog_CPP+set}" = set; then
3185   echo $ECHO_N "(cached) $ECHO_C" >&6
3186 else
3187       # Double quotes because CPP needs to be expanded
3188     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3189     do
3190       ac_preproc_ok=false
3191 for ac_c_preproc_warn_flag in '' yes
3192 do
3193   # Use a header file that comes with gcc, so configuring glibc
3194   # with a fresh cross-compiler works.
3195   # On the NeXT, cc -E runs the code through the compiler's parser,
3196   # not just through cpp. "Syntax error" is here to catch this case.
3197   cat >conftest.$ac_ext <<_ACEOF
3198 #line $LINENO "configure"
3199 #include "confdefs.h"
3200 #include <assert.h>
3201                      Syntax error
3202 _ACEOF
3203 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3204   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3205   ac_status=$?
3206   egrep -v '^ *\+' conftest.er1 >conftest.err
3207   rm -f conftest.er1
3208   cat conftest.err >&5
3209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3210   (exit $ac_status); } >/dev/null; then
3211   if test -s conftest.err; then
3212     ac_cpp_err=$ac_c_preproc_warn_flag
3213   else
3214     ac_cpp_err=
3215   fi
3216 else
3217   ac_cpp_err=yes
3218 fi
3219 if test -z "$ac_cpp_err"; then
3220   :
3221 else
3222   echo "$as_me: failed program was:" >&5
3223   cat conftest.$ac_ext >&5
3224   # Broken: fails on valid input.
3225 continue
3226 fi
3227 rm -f conftest.err conftest.$ac_ext
3228
3229   # OK, works on sane cases.  Now check whether non-existent headers
3230   # can be detected and how.
3231   cat >conftest.$ac_ext <<_ACEOF
3232 #line $LINENO "configure"
3233 #include "confdefs.h"
3234 #include <ac_nonexistent.h>
3235 _ACEOF
3236 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3237   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3238   ac_status=$?
3239   egrep -v '^ *\+' conftest.er1 >conftest.err
3240   rm -f conftest.er1
3241   cat conftest.err >&5
3242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3243   (exit $ac_status); } >/dev/null; then
3244   if test -s conftest.err; then
3245     ac_cpp_err=$ac_c_preproc_warn_flag
3246   else
3247     ac_cpp_err=
3248   fi
3249 else
3250   ac_cpp_err=yes
3251 fi
3252 if test -z "$ac_cpp_err"; then
3253   # Broken: success on invalid input.
3254 continue
3255 else
3256   echo "$as_me: failed program was:" >&5
3257   cat conftest.$ac_ext >&5
3258   # Passes both tests.
3259 ac_preproc_ok=:
3260 break
3261 fi
3262 rm -f conftest.err conftest.$ac_ext
3263
3264 done
3265 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3266 rm -f conftest.err conftest.$ac_ext
3267 if $ac_preproc_ok; then
3268   break
3269 fi
3270
3271     done
3272     ac_cv_prog_CPP=$CPP
3273
3274 fi
3275   CPP=$ac_cv_prog_CPP
3276 else
3277   ac_cv_prog_CPP=$CPP
3278 fi
3279 echo "$as_me:$LINENO: result: $CPP" >&5
3280 echo "${ECHO_T}$CPP" >&6
3281 ac_preproc_ok=false
3282 for ac_c_preproc_warn_flag in '' yes
3283 do
3284   # Use a header file that comes with gcc, so configuring glibc
3285   # with a fresh cross-compiler works.
3286   # On the NeXT, cc -E runs the code through the compiler's parser,
3287   # not just through cpp. "Syntax error" is here to catch this case.
3288   cat >conftest.$ac_ext <<_ACEOF
3289 #line $LINENO "configure"
3290 #include "confdefs.h"
3291 #include <assert.h>
3292                      Syntax error
3293 _ACEOF
3294 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3295   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3296   ac_status=$?
3297   egrep -v '^ *\+' conftest.er1 >conftest.err
3298   rm -f conftest.er1
3299   cat conftest.err >&5
3300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3301   (exit $ac_status); } >/dev/null; then
3302   if test -s conftest.err; then
3303     ac_cpp_err=$ac_c_preproc_warn_flag
3304   else
3305     ac_cpp_err=
3306   fi
3307 else
3308   ac_cpp_err=yes
3309 fi
3310 if test -z "$ac_cpp_err"; then
3311   :
3312 else
3313   echo "$as_me: failed program was:" >&5
3314   cat conftest.$ac_ext >&5
3315   # Broken: fails on valid input.
3316 continue
3317 fi
3318 rm -f conftest.err conftest.$ac_ext
3319
3320   # OK, works on sane cases.  Now check whether non-existent headers
3321   # can be detected and how.
3322   cat >conftest.$ac_ext <<_ACEOF
3323 #line $LINENO "configure"
3324 #include "confdefs.h"
3325 #include <ac_nonexistent.h>
3326 _ACEOF
3327 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3328   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3329   ac_status=$?
3330   egrep -v '^ *\+' conftest.er1 >conftest.err
3331   rm -f conftest.er1
3332   cat conftest.err >&5
3333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3334   (exit $ac_status); } >/dev/null; then
3335   if test -s conftest.err; then
3336     ac_cpp_err=$ac_c_preproc_warn_flag
3337   else
3338     ac_cpp_err=
3339   fi
3340 else
3341   ac_cpp_err=yes
3342 fi
3343 if test -z "$ac_cpp_err"; then
3344   # Broken: success on invalid input.
3345 continue
3346 else
3347   echo "$as_me: failed program was:" >&5
3348   cat conftest.$ac_ext >&5
3349   # Passes both tests.
3350 ac_preproc_ok=:
3351 break
3352 fi
3353 rm -f conftest.err conftest.$ac_ext
3354
3355 done
3356 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3357 rm -f conftest.err conftest.$ac_ext
3358 if $ac_preproc_ok; then
3359   :
3360 else
3361   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
3362 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
3363    { (exit 1); exit 1; }; }
3364 fi
3365
3366 ac_ext=c
3367 ac_cpp='$CPP $CPPFLAGS'
3368 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3369 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3370 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3371
3372 # Was a --with-binutils option given?
3373 if test -n "$path_binutils"; then
3374     # Make absolute; ensure a single trailing slash.
3375     path_binutils=`(cd $path_binutils; pwd) | sed 's%/*$%/%'`
3376     CC="$CC -B$path_binutils"
3377 fi
3378 AS=`$CC -print-prog-name=as`
3379 LD=`$CC -print-prog-name=ld`
3380 AR=`$CC -print-prog-name=ar`
3381
3382
3383 # ranlib has to be treated a bit differently since it might not exist at all.
3384 ac_ranlib=`$CC -print-prog-name=ranlib`
3385 if test "x$ac_ranlib" = xranlib; then
3386 # This extra check has to happen since gcc simply echos the parameter in
3387 # case it cannot find the value in its own directories.
3388 if test -n "$ac_tool_prefix"; then
3389   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3390 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3391 echo "$as_me:$LINENO: checking for $ac_word" >&5
3392 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3393 if test "${ac_cv_prog_RANLIB+set}" = set; then
3394   echo $ECHO_N "(cached) $ECHO_C" >&6
3395 else
3396   if test -n "$RANLIB"; then
3397   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3398 else
3399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3400 for as_dir in $PATH
3401 do
3402   IFS=$as_save_IFS
3403   test -z "$as_dir" && as_dir=.
3404   for ac_exec_ext in '' $ac_executable_extensions; do
3405   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3406     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3407     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3408     break 2
3409   fi
3410 done
3411 done
3412
3413 fi
3414 fi
3415 RANLIB=$ac_cv_prog_RANLIB
3416 if test -n "$RANLIB"; then
3417   echo "$as_me:$LINENO: result: $RANLIB" >&5
3418 echo "${ECHO_T}$RANLIB" >&6
3419 else
3420   echo "$as_me:$LINENO: result: no" >&5
3421 echo "${ECHO_T}no" >&6
3422 fi
3423
3424 fi
3425 if test -z "$ac_cv_prog_RANLIB"; then
3426   ac_ct_RANLIB=$RANLIB
3427   # Extract the first word of "ranlib", so it can be a program name with args.
3428 set dummy 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_ac_ct_RANLIB+set}" = set; then
3432   echo $ECHO_N "(cached) $ECHO_C" >&6
3433 else
3434   if test -n "$ac_ct_RANLIB"; then
3435   ac_cv_prog_ac_ct_RANLIB="$ac_ct_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_ac_ct_RANLIB="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   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3452 fi
3453 fi
3454 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3455 if test -n "$ac_ct_RANLIB"; then
3456   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3457 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3458 else
3459   echo "$as_me:$LINENO: result: no" >&5
3460 echo "${ECHO_T}no" >&6
3461 fi
3462
3463   RANLIB=$ac_ct_RANLIB
3464 else
3465   RANLIB="$ac_cv_prog_RANLIB"
3466 fi
3467
3468 else
3469   RANLIB=$ac_ranlib
3470 fi
3471
3472
3473 # Determine whether we are using GNU binutils.
3474 echo "$as_me:$LINENO: checking whether $AS is GNU as" >&5
3475 echo $ECHO_N "checking whether $AS is GNU as... $ECHO_C" >&6
3476 if test "${libc_cv_prog_as_gnu+set}" = set; then
3477   echo $ECHO_N "(cached) $ECHO_C" >&6
3478 else
3479   # Most GNU programs take a -v and spit out some text including
3480 # the word 'GNU'.  Some try to read stdin, so give them /dev/null.
3481 if $AS -o conftest -v </dev/null 2>&1 | grep GNU > /dev/null 2>&1; then
3482   libc_cv_prog_as_gnu=yes
3483 else
3484   libc_cv_prog_as_gnu=no
3485 fi
3486 rm -fr contest*
3487 fi
3488 echo "$as_me:$LINENO: result: $libc_cv_prog_as_gnu" >&5
3489 echo "${ECHO_T}$libc_cv_prog_as_gnu" >&6
3490 rm -f a.out
3491 gnu_as=$libc_cv_prog_as_gnu
3492
3493 echo "$as_me:$LINENO: checking whether $LD is GNU ld" >&5
3494 echo $ECHO_N "checking whether $LD is GNU ld... $ECHO_C" >&6
3495 if test "${libc_cv_prog_ld_gnu+set}" = set; then
3496   echo $ECHO_N "(cached) $ECHO_C" >&6
3497 else
3498   # Most GNU programs take a -v and spit out some text including
3499 # the word 'GNU'.  Some try to read stdin, so give them /dev/null.
3500 if $LD -o conftest -v </dev/null 2>&1 | grep GNU > /dev/null 2>&1; then
3501   libc_cv_prog_ld_gnu=yes
3502 else
3503   libc_cv_prog_ld_gnu=no
3504 fi
3505 rm -fr contest*
3506 fi
3507 echo "$as_me:$LINENO: result: $libc_cv_prog_ld_gnu" >&5
3508 echo "${ECHO_T}$libc_cv_prog_ld_gnu" >&6
3509 gnu_ld=$libc_cv_prog_ld_gnu
3510
3511
3512 # Accept binutils 2.10.1 or newer (and also any ia64 2.9 version)
3513 # XXX Commented out because it filters out too many good versions.
3514 # XXX --drepper
3515 # AC_CHECK_PROG_VER(AS, $AS, --version,
3516 #   [GNU assembler.* \([0-9]*\.[0-9.]*\(-ia64-[0-9]*\)*\)],
3517 #   [2.10.[1-9]* | 2.1[1-9]* | 2.9-ia64-*], AS=: critic_missing=t)
3518
3519 test -n "$aux_missing" && { echo "$as_me:$LINENO: WARNING:
3520 *** These auxiliary programs are missing or incompatible versions:$aux_missing
3521 *** some features will be disabled.
3522 *** Check the INSTALL file for required versions." >&5
3523 echo "$as_me: WARNING:
3524 *** These auxiliary programs are missing or incompatible versions:$aux_missing
3525 *** some features will be disabled.
3526 *** Check the INSTALL file for required versions." >&2;}
3527
3528 # glibcbug.in wants to know the compiler version.
3529 CCVERSION=`$CC -v 2>&1 | sed -n 's/gcc version //p'`
3530
3531
3532 # if using special system headers, find out the compiler's sekrit
3533 # header directory and add that to the list.  NOTE: Only does the right
3534 # thing on a system that doesn't need fixincludes.  (Not presently a problem.)
3535 if test -n "$sysheaders"; then
3536   ccheaders=`$CC -print-file-name=include`
3537   SYSINCLUDES="-nostdinc -isystem $ccheaders -isystem $sysheaders"
3538 fi
3539
3540
3541 # check if ranlib is necessary
3542 echo "$as_me:$LINENO: checking whether ranlib is necessary" >&5
3543 echo $ECHO_N "checking whether ranlib is necessary... $ECHO_C" >&6
3544 if test "${libc_cv_ranlib_necessary+set}" = set; then
3545   echo $ECHO_N "(cached) $ECHO_C" >&6
3546 else
3547   cat > conftest.c <<EOF
3548 int a;
3549 char b;
3550 void c(void) {}
3551 EOF
3552 $CC $CFLAGS -c conftest.c
3553 $AR cr conftest.a conftest.o
3554 cp conftest.a conftest2.a
3555 $RANLIB conftest.a
3556 if cmp -s conftest.a conftest2.a; then
3557   libc_cv_ranlib_necessary=no
3558 else
3559   libc_cv_ranlib_necessary=yes
3560 fi
3561 rm -rf conftest*
3562 fi
3563 echo "$as_me:$LINENO: result: $libc_cv_ranlib_necessary" >&5
3564 echo "${ECHO_T}$libc_cv_ranlib_necessary" >&6
3565 if test "$libc_cv_ranlib_necessary" = no; then
3566  RANLIB=:
3567 fi
3568
3569 # Test if LD_LIBRARY_PATH contains the notation for the current directory
3570 # since this would lead to problems installing/building glibc.
3571 # LD_LIBRARY_PATH contains the current directory if one of the following
3572 # is true:
3573 # - one of the terminals (":" and ";") is the first or last sign
3574 # - two terminals occur directly after each other
3575 # - the path contains an element with a dot in it
3576 echo "$as_me:$LINENO: checking LD_LIBRARY_PATH variable" >&5
3577 echo $ECHO_N "checking LD_LIBRARY_PATH variable... $ECHO_C" >&6
3578 case ${LD_LIBRARY_PATH} in
3579   [:\;]* | *[:\;] | *[:\;][:\;]* |  *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3580     ld_library_path_setting="contains current directory"
3581     ;;
3582   *)
3583     ld_library_path_setting="ok"
3584     ;;
3585 esac
3586 echo "$as_me:$LINENO: result: $ld_library_path_setting" >&5
3587 echo "${ECHO_T}$ld_library_path_setting" >&6
3588 if test "$ld_library_path_setting" != "ok"; then
3589 { { echo "$as_me:$LINENO: error:
3590 *** LD_LIBRARY_PATH shouldn't contain the current directory when
3591 *** building glibc. Please change the environment variable
3592 *** and run configure again." >&5
3593 echo "$as_me: error:
3594 *** LD_LIBRARY_PATH shouldn't contain the current directory when
3595 *** building glibc. Please change the environment variable
3596 *** and run configure again." >&2;}
3597    { (exit 1); exit 1; }; }
3598 fi
3599
3600 echo "$as_me:$LINENO: checking whether GCC supports -static-libgcc" >&5
3601 echo $ECHO_N "checking whether GCC supports -static-libgcc... $ECHO_C" >&6
3602 if test "${libc_cv_gcc_static_libgcc+set}" = set; then
3603   echo $ECHO_N "(cached) $ECHO_C" >&6
3604 else
3605   if $CC -v -static-libgcc 2>&1 | grep -q 'unrecognized option.*static-libgcc'; then
3606   libc_cv_gcc_static_libgcc=
3607 else
3608   libc_cv_gcc_static_libgcc=-static-libgcc
3609 fi
3610 fi
3611 echo "$as_me:$LINENO: result: $libc_cv_gcc_static_libgcc" >&5
3612 echo "${ECHO_T}$libc_cv_gcc_static_libgcc" >&6
3613
3614
3615 # Extract the first word of "bash", so it can be a program name with args.
3616 set dummy bash; ac_word=$2
3617 echo "$as_me:$LINENO: checking for $ac_word" >&5
3618 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3619 if test "${ac_cv_path_BASH+set}" = set; then
3620   echo $ECHO_N "(cached) $ECHO_C" >&6
3621 else
3622   case $BASH in
3623   [\\/]* | ?:[\\/]*)
3624   ac_cv_path_BASH="$BASH" # Let the user override the test with a path.
3625   ;;
3626   *)
3627   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3628 for as_dir in $PATH
3629 do
3630   IFS=$as_save_IFS
3631   test -z "$as_dir" && as_dir=.
3632   for ac_exec_ext in '' $ac_executable_extensions; do
3633   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3634     ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext"
3635     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3636     break 2
3637   fi
3638 done
3639 done
3640
3641   test -z "$ac_cv_path_BASH" && ac_cv_path_BASH="no"
3642   ;;
3643 esac
3644 fi
3645 BASH=$ac_cv_path_BASH
3646
3647 if test -n "$BASH"; then
3648   echo "$as_me:$LINENO: result: $BASH" >&5
3649 echo "${ECHO_T}$BASH" >&6
3650 else
3651   echo "$as_me:$LINENO: result: no" >&5
3652 echo "${ECHO_T}no" >&6
3653 fi
3654
3655 if test "$BASH" != no &&
3656    $BASH -c 'test "$BASH_VERSINFO" \
3657              && test "$BASH_VERSINFO" -ge 2 >&/dev/null'; then
3658   libc_cv_have_bash2=yes
3659 else
3660   libc_cv_have_bash2=no
3661 fi
3662
3663
3664 if test "$BASH" = no; then
3665   # Extract the first word of "ksh", so it can be a program name with args.
3666 set dummy ksh; ac_word=$2
3667 echo "$as_me:$LINENO: checking for $ac_word" >&5
3668 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3669 if test "${ac_cv_path_KSH+set}" = set; then
3670   echo $ECHO_N "(cached) $ECHO_C" >&6
3671 else
3672   case $KSH in
3673   [\\/]* | ?:[\\/]*)
3674   ac_cv_path_KSH="$KSH" # Let the user override the test with a path.
3675   ;;
3676   *)
3677   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3678 for as_dir in $PATH
3679 do
3680   IFS=$as_save_IFS
3681   test -z "$as_dir" && as_dir=.
3682   for ac_exec_ext in '' $ac_executable_extensions; do
3683   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3684     ac_cv_path_KSH="$as_dir/$ac_word$ac_exec_ext"
3685     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3686     break 2
3687   fi
3688 done
3689 done
3690
3691   test -z "$ac_cv_path_KSH" && ac_cv_path_KSH="no"
3692   ;;
3693 esac
3694 fi
3695 KSH=$ac_cv_path_KSH
3696
3697 if test -n "$KSH"; then
3698   echo "$as_me:$LINENO: result: $KSH" >&5
3699 echo "${ECHO_T}$KSH" >&6
3700 else
3701   echo "$as_me:$LINENO: result: no" >&5
3702 echo "${ECHO_T}no" >&6
3703 fi
3704
3705   if test "$KSH" = no; then
3706     libc_cv_have_ksh=no
3707   else
3708     libc_cv_have_ksh=yes
3709   fi
3710 else
3711   KSH="$BASH"
3712
3713   libc_cv_have_ksh=yes
3714 fi
3715
3716
3717 for ac_prog in gawk mawk nawk awk
3718 do
3719   # Extract the first word of "$ac_prog", so it can be a program name with args.
3720 set dummy $ac_prog; ac_word=$2
3721 echo "$as_me:$LINENO: checking for $ac_word" >&5
3722 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3723 if test "${ac_cv_prog_AWK+set}" = set; then
3724   echo $ECHO_N "(cached) $ECHO_C" >&6
3725 else
3726   if test -n "$AWK"; then
3727   ac_cv_prog_AWK="$AWK" # Let the user override the test.
3728 else
3729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3730 for as_dir in $PATH
3731 do
3732   IFS=$as_save_IFS
3733   test -z "$as_dir" && as_dir=.
3734   for ac_exec_ext in '' $ac_executable_extensions; do
3735   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3736     ac_cv_prog_AWK="$ac_prog"
3737     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3738     break 2
3739   fi
3740 done
3741 done
3742
3743 fi
3744 fi
3745 AWK=$ac_cv_prog_AWK
3746 if test -n "$AWK"; then
3747   echo "$as_me:$LINENO: result: $AWK" >&5
3748 echo "${ECHO_T}$AWK" >&6
3749 else
3750   echo "$as_me:$LINENO: result: no" >&5
3751 echo "${ECHO_T}no" >&6
3752 fi
3753
3754   test -n "$AWK" && break
3755 done
3756
3757 # Extract the first word of "perl", so it can be a program name with args.
3758 set dummy perl; ac_word=$2
3759 echo "$as_me:$LINENO: checking for $ac_word" >&5
3760 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3761 if test "${ac_cv_path_PERL+set}" = set; then
3762   echo $ECHO_N "(cached) $ECHO_C" >&6
3763 else
3764   case $PERL in
3765   [\\/]* | ?:[\\/]*)
3766   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
3767   ;;
3768   *)
3769   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3770 for as_dir in $PATH
3771 do
3772   IFS=$as_save_IFS
3773   test -z "$as_dir" && as_dir=.
3774   for ac_exec_ext in '' $ac_executable_extensions; do
3775   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3776     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
3777     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3778     break 2
3779   fi
3780 done
3781 done
3782
3783   test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="no"
3784   ;;
3785 esac
3786 fi
3787 PERL=$ac_cv_path_PERL
3788
3789 if test -n "$PERL"; then
3790   echo "$as_me:$LINENO: result: $PERL" >&5
3791 echo "${ECHO_T}$PERL" >&6
3792 else
3793   echo "$as_me:$LINENO: result: no" >&5
3794 echo "${ECHO_T}no" >&6
3795 fi
3796
3797 if test "$PERL" != no &&
3798    (eval `$PERL -V:apiversion`; test `expr "$apiversion" \< 5` -ne 0); then
3799   PERL=no
3800 fi
3801 # Extract the first word of "install-info", so it can be a program name with args.
3802 set dummy install-info; ac_word=$2
3803 echo "$as_me:$LINENO: checking for $ac_word" >&5
3804 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3805 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
3806   echo $ECHO_N "(cached) $ECHO_C" >&6
3807 else
3808   case $INSTALL_INFO in
3809   [\\/]* | ?:[\\/]*)
3810   ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
3811   ;;
3812   *)
3813   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3814 for as_dir in $PATH:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin
3815 do
3816   IFS=$as_save_IFS
3817   test -z "$as_dir" && as_dir=.
3818   for ac_exec_ext in '' $ac_executable_extensions; do
3819   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3820     ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
3821     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3822     break 2
3823   fi
3824 done
3825 done
3826
3827   test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO="no"
3828   ;;
3829 esac
3830 fi
3831 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
3832
3833 if test -n "$INSTALL_INFO"; then
3834   echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
3835 echo "${ECHO_T}$INSTALL_INFO" >&6
3836 else
3837   echo "$as_me:$LINENO: result: no" >&5
3838 echo "${ECHO_T}no" >&6
3839 fi
3840
3841 if test "$INSTALL_INFO" != "no"; then
3842 echo "$as_me:$LINENO: checking for old Debian install-info" >&5
3843 echo $ECHO_N "checking for old Debian install-info... $ECHO_C" >&6
3844 if test "${libc_cv_old_debian_install_info+set}" = set; then
3845   echo $ECHO_N "(cached) $ECHO_C" >&6
3846 else
3847   mkdir conftest.d
3848   # There is a hard ^_ on the next line.  I am open to better ideas.
3849   (echo '\1f'
3850   echo 'File: dir       Node: Top       This is the top of the INFO tree'
3851   echo '* Menu:') >conftest.d/dir
3852   (echo 'INFO-DIR-SECTION i-d-s works'
3853   echo 'START-INFO-DIR-ENTRY'
3854   echo '* Prog: (prog).   Program.'
3855   echo 'END-INFO-DIR-ENTRY') >conftest.d/prog.info
3856   if $INSTALL_INFO --info-dir=conftest.d conftest.d/prog.info >&5 2>&1
3857   then
3858     if grep -s 'i-d-s works' conftest.d/dir >/dev/null
3859     then libc_cv_old_debian_install_info=no
3860     else libc_cv_old_debian_install_info=yes
3861     fi
3862   else libc_cv_old_debian_install_info=no testfailed=t
3863   fi
3864   rm -fr conftest.d
3865 fi
3866 echo "$as_me:$LINENO: result: $libc_cv_old_debian_install_info" >&5
3867 echo "${ECHO_T}$libc_cv_old_debian_install_info" >&6
3868 if test -n "$testfailed"
3869 then { echo "$as_me:$LINENO: WARNING: install-info errored out, check config.log" >&5
3870 echo "$as_me: WARNING: install-info errored out, check config.log" >&2;}
3871 fi
3872 OLD_DEBIAN_INSTALL_INFO=$libc_cv_old_debian_install_info
3873 fi
3874
3875
3876 # Extract the first word of "bison", so it can be a program name with args.
3877 set dummy bison; ac_word=$2
3878 echo "$as_me:$LINENO: checking for $ac_word" >&5
3879 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3880 if test "${ac_cv_path_BISON+set}" = set; then
3881   echo $ECHO_N "(cached) $ECHO_C" >&6
3882 else
3883   case $BISON in
3884   [\\/]* | ?:[\\/]*)
3885   ac_cv_path_BISON="$BISON" # Let the user override the test with a path.
3886   ;;
3887   *)
3888   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3889 for as_dir in $PATH:/usr/local/bin:/usr/bin:/bin
3890 do
3891   IFS=$as_save_IFS
3892   test -z "$as_dir" && as_dir=.
3893   for ac_exec_ext in '' $ac_executable_extensions; do
3894   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3895     ac_cv_path_BISON="$as_dir/$ac_word$ac_exec_ext"
3896     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3897     break 2
3898   fi
3899 done
3900 done
3901
3902   test -z "$ac_cv_path_BISON" && ac_cv_path_BISON="no"
3903   ;;
3904 esac
3905 fi
3906 BISON=$ac_cv_path_BISON
3907
3908 if test -n "$BISON"; then
3909   echo "$as_me:$LINENO: result: $BISON" >&5
3910 echo "${ECHO_T}$BISON" >&6
3911 else
3912   echo "$as_me:$LINENO: result: no" >&5
3913 echo "${ECHO_T}no" >&6
3914 fi
3915
3916
3917 echo "$as_me:$LINENO: checking for signed size_t type" >&5
3918 echo $ECHO_N "checking for signed size_t type... $ECHO_C" >&6
3919 if test "${libc_cv_signed_size_t+set}" = set; then
3920   echo $ECHO_N "(cached) $ECHO_C" >&6
3921 else
3922   echo '#include <stddef.h>
3923 FOOBAR __SIZE_TYPE__ FOOBAR' > conftest.c
3924 if eval "$ac_cpp conftest.c 2>/dev/null" \
3925 | grep '^FOOBAR.*unsigned.*FOOBAR$' >/dev/null; then
3926   libc_cv_signed_size_t=no
3927 else
3928   libc_cv_signed_size_t=yes
3929 fi
3930 rm -f conftest*
3931 fi
3932 echo "$as_me:$LINENO: result: $libc_cv_signed_size_t" >&5
3933 echo "${ECHO_T}$libc_cv_signed_size_t" >&6
3934 if test $libc_cv_signed_size_t = yes; then
3935     cat >> confdefs.h <<\EOF
3936 #undef __SIZE_TYPE__
3937 #define __SIZE_TYPE__ unsigned
3938 EOF
3939 fi
3940
3941 echo "$as_me:$LINENO: checking for libc-friendly stddef.h" >&5
3942 echo $ECHO_N "checking for libc-friendly stddef.h... $ECHO_C" >&6
3943 if test "${libc_cv_friendly_stddef+set}" = set; then
3944   echo $ECHO_N "(cached) $ECHO_C" >&6
3945 else
3946
3947 cat >conftest.$ac_ext <<_ACEOF
3948 #line $LINENO "configure"
3949 #include "confdefs.h"
3950 #define __need_size_t
3951 #define __need_wchar_t
3952 #include <stddef.h>
3953 #define __need_NULL
3954 #include <stddef.h>
3955 #ifdef F77_DUMMY_MAIN
3956 #  ifdef __cplusplus
3957      extern "C"
3958 #  endif
3959    int F77_DUMMY_MAIN() { return 1; }
3960 #endif
3961 int
3962 main ()
3963 {
3964 size_t size; wchar_t wchar;
3965 #ifdef offsetof
3966 #error stddef.h ignored __need_*
3967 #endif
3968 if (&size == NULL || &wchar == NULL) abort ();
3969   ;
3970   return 0;
3971 }
3972 _ACEOF
3973 rm -f conftest.$ac_objext
3974 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3975   (eval $ac_compile) 2>&5
3976   ac_status=$?
3977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3978   (exit $ac_status); } &&
3979          { ac_try='test -s conftest.$ac_objext'
3980   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3981   (eval $ac_try) 2>&5
3982   ac_status=$?
3983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3984   (exit $ac_status); }; }; then
3985   libc_cv_friendly_stddef=yes
3986 else
3987   echo "$as_me: failed program was:" >&5
3988 cat conftest.$ac_ext >&5
3989 libc_cv_friendly_stddef=no
3990 fi
3991 rm -f conftest.$ac_objext conftest.$ac_ext
3992 fi
3993 echo "$as_me:$LINENO: result: $libc_cv_friendly_stddef" >&5
3994 echo "${ECHO_T}$libc_cv_friendly_stddef" >&6
3995 if test $libc_cv_friendly_stddef = yes; then
3996   config_vars="$config_vars
3997 override stddef.h = # The installed <stddef.h> seems to be libc-friendly."
3998 fi
3999
4000 echo "$as_me:$LINENO: checking whether we need to use -P to assemble .S files" >&5
4001 echo $ECHO_N "checking whether we need to use -P to assemble .S files... $ECHO_C" >&6
4002 if test "${libc_cv_need_minus_P+set}" = set; then
4003   echo $ECHO_N "(cached) $ECHO_C" >&6
4004 else
4005   cat > conftest.S <<EOF
4006 #include "confdefs.h"
4007 /* Nothing whatsoever.  */
4008 EOF
4009 if ${CC-cc} $CFLAGS -c conftest.S 2>/dev/null; then
4010   libc_cv_need_minus_P=no
4011 else
4012   libc_cv_need_minus_P=yes
4013 fi
4014 rm -f conftest*
4015 fi
4016 echo "$as_me:$LINENO: result: $libc_cv_need_minus_P" >&5
4017 echo "${ECHO_T}$libc_cv_need_minus_P" >&6
4018 if test $libc_cv_need_minus_P = yes; then
4019   config_vars="$config_vars
4020 asm-CPPFLAGS = -P # The assembler can't grok cpp's # line directives."
4021 fi
4022
4023 echo "$as_me:$LINENO: checking whether .text pseudo-op must be used" >&5
4024 echo $ECHO_N "checking whether .text pseudo-op must be used... $ECHO_C" >&6
4025 if test "${libc_cv_dot_text+set}" = set; then
4026   echo $ECHO_N "(cached) $ECHO_C" >&6
4027 else
4028   cat > conftest.s <<EOF
4029 .text
4030 EOF
4031 libc_cv_dot_text=
4032 if ${CC-cc} $CFLAGS -c conftest.s 2>/dev/null; then
4033   libc_cv_dot_text=.text
4034 fi
4035 rm -f conftest*
4036 fi
4037
4038 if test -z "$libc_cv_dot_text"; then
4039   echo "$as_me:$LINENO: result: no" >&5
4040 echo "${ECHO_T}no" >&6
4041 else
4042   echo "$as_me:$LINENO: result: yes" >&5
4043 echo "${ECHO_T}yes" >&6
4044 fi
4045
4046 echo "$as_me:$LINENO: checking for assembler global-symbol directive" >&5
4047 echo $ECHO_N "checking for assembler global-symbol directive... $ECHO_C" >&6
4048 if test "${libc_cv_asm_global_directive+set}" = set; then
4049   echo $ECHO_N "(cached) $ECHO_C" >&6
4050 else
4051   libc_cv_asm_global_directive=UNKNOWN
4052 for ac_globl in .globl .global .EXPORT; do
4053   cat > conftest.s <<EOF
4054         ${libc_cv_dot_text}
4055         ${ac_globl} foo
4056 foo:
4057 EOF
4058   if ${CC-cc} $CFLAGS -c conftest.s 2>/dev/null; then
4059     libc_cv_asm_global_directive=${ac_globl}
4060   fi
4061   rm -f conftest*
4062   test $libc_cv_asm_global_directive != UNKNOWN && break
4063 done
4064 fi
4065 echo "$as_me:$LINENO: result: $libc_cv_asm_global_directive" >&5
4066 echo "${ECHO_T}$libc_cv_asm_global_directive" >&6
4067 if test $libc_cv_asm_global_directive = UNKNOWN; then
4068   { { echo "$as_me:$LINENO: error: cannot determine asm global directive" >&5
4069 echo "$as_me: error: cannot determine asm global directive" >&2;}
4070    { (exit 1); exit 1; }; }
4071 else
4072   cat >>confdefs.h <<_ACEOF
4073 #define ASM_GLOBAL_DIRECTIVE ${libc_cv_asm_global_directive}
4074 _ACEOF
4075
4076 fi
4077
4078 echo "$as_me:$LINENO: checking for .set assembler directive" >&5
4079 echo $ECHO_N "checking for .set assembler directive... $ECHO_C" >&6
4080 if test "${libc_cv_asm_set_directive+set}" = set; then
4081   echo $ECHO_N "(cached) $ECHO_C" >&6
4082 else
4083   cat > conftest.s <<EOF
4084 ${libc_cv_dot_text}
4085 foo:
4086 .set glibc_conftest_frobozz,foo
4087 $libc_cv_asm_global_directive glibc_conftest_frobozz
4088 EOF
4089 # The alpha-dec-osf1 assembler gives only a warning for `.set'
4090 # (but it doesn't work), so we must do a linking check to be sure.
4091 cat > conftest1.c <<\EOF
4092 extern int glibc_conftest_frobozz;
4093 main () { printf ("%d\n", glibc_conftest_frobozz); }
4094 EOF
4095 if ${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \
4096             -o conftest conftest.s conftest1.c 1>&5 2>&5; then
4097   libc_cv_asm_set_directive=yes
4098 else
4099   libc_cv_asm_set_directive=no
4100 fi
4101 rm -f conftest*
4102 fi
4103 echo "$as_me:$LINENO: result: $libc_cv_asm_set_directive" >&5
4104 echo "${ECHO_T}$libc_cv_asm_set_directive" >&6
4105 if test $libc_cv_asm_set_directive = yes; then
4106   cat >>confdefs.h <<\_ACEOF
4107 #define HAVE_ASM_SET_DIRECTIVE 1
4108 _ACEOF
4109
4110 fi
4111
4112 echo "$as_me:$LINENO: checking for assembler .type directive prefix" >&5
4113 echo $ECHO_N "checking for assembler .type directive prefix... $ECHO_C" >&6
4114 if test "${libc_cv_asm_type_prefix+set}" = set; then
4115   echo $ECHO_N "(cached) $ECHO_C" >&6
4116 else
4117   libc_cv_asm_type_prefix=no
4118 for ac_try_prefix in '@' '%' '#'; do
4119   cat > conftest.s <<EOF
4120         ${libc_cv_dot_text}
4121         ${libc_cv_asm_global_directive} foo
4122         .type foo, ${ac_try_prefix}object
4123         .size foo, 1
4124 foo:
4125         .byte 1
4126 EOF
4127   if ${CC-cc} $CFLAGS -c conftest.s 2>/dev/null; then
4128     libc_cv_asm_type_prefix=${ac_try_prefix}
4129   fi
4130   rm -f conftest*
4131   test "x$libc_cv_asm_type_prefix" != xno && break
4132 done
4133 fi
4134 echo "$as_me:$LINENO: result: $libc_cv_asm_type_prefix" >&5
4135 echo "${ECHO_T}$libc_cv_asm_type_prefix" >&6
4136 if test "x$libc_cv_asm_type_prefix" != xno; then
4137   cat >>confdefs.h <<_ACEOF
4138 #define ASM_TYPE_DIRECTIVE_PREFIX ${libc_cv_asm_type_prefix}
4139 _ACEOF
4140
4141 fi
4142
4143 # The Aix ld uses global .symbol_names instead of symbol_names.
4144 # Unfortunately also used in the PPC64 ELF ABI.
4145 case "${os}${machine}" in
4146 aix4.3* | linux*powerpc/powerpc64*)
4147   cat >>confdefs.h <<\_ACEOF
4148 #define HAVE_ASM_GLOBAL_DOT_NAME 1
4149 _ACEOF
4150
4151 esac
4152
4153 echo "$as_me:$LINENO: checking for .symver assembler directive" >&5
4154 echo $ECHO_N "checking for .symver assembler directive... $ECHO_C" >&6
4155 if test "${libc_cv_asm_symver_directive+set}" = set; then
4156   echo $ECHO_N "(cached) $ECHO_C" >&6
4157 else
4158   cat > conftest.s <<EOF
4159 ${libc_cv_dot_text}
4160 _sym:
4161 .symver _sym,sym@VERS
4162 EOF
4163 if ${CC-cc} -c $CFLAGS $CPPFLAGS conftest.s 1>&5 2>&5; then
4164   libc_cv_asm_symver_directive=yes
4165 else
4166   libc_cv_asm_symver_directive=no
4167 fi
4168 rm -f conftest*
4169 fi
4170 echo "$as_me:$LINENO: result: $libc_cv_asm_symver_directive" >&5
4171 echo "${ECHO_T}$libc_cv_asm_symver_directive" >&6
4172 echo "$as_me:$LINENO: checking for ld --version-script" >&5
4173 echo $ECHO_N "checking for ld --version-script... $ECHO_C" >&6
4174 if test "${libc_cv_ld_version_script_option+set}" = set; then
4175   echo $ECHO_N "(cached) $ECHO_C" >&6
4176 else
4177   if test $libc_cv_asm_symver_directive = yes; then
4178   cat > conftest.s <<EOF
4179 ${libc_cv_dot_text}
4180 _sym:
4181 .symver _sym,sym@VERS
4182 EOF
4183   cat > conftest.map <<EOF
4184 VERS_1 {
4185         global: sym;
4186 };
4187
4188 VERS_2 {
4189         global: sym;
4190 } VERS_1;
4191 EOF
4192   if ${CC-cc} -c $CFLAGS $CPPFLAGS conftest.s 1>&5 2>&5; then
4193     if { ac_try='${CC-cc} $CFLAGS -shared -o conftest.so conftest.o
4194                                         -nostartfiles -nostdlib
4195                                         -Wl,--version-script,conftest.map
4196                        1>&5'
4197   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4198   (eval $ac_try) 2>&5
4199   ac_status=$?
4200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4201   (exit $ac_status); }; };
4202     then
4203       libc_cv_ld_version_script_option=yes
4204     else
4205       libc_cv_ld_version_script_option=no
4206     fi
4207   else
4208     libc_cv_ld_version_script_option=no
4209   fi
4210 else
4211   libc_cv_ld_version_script_option=no
4212 fi
4213 rm -f conftest*
4214 fi
4215 echo "$as_me:$LINENO: result: $libc_cv_ld_version_script_option" >&5
4216 echo "${ECHO_T}$libc_cv_ld_version_script_option" >&6
4217 if test $shared != no &&
4218    test $libc_cv_asm_symver_directive = yes &&
4219    test $libc_cv_ld_version_script_option = yes &&
4220    test $enable_versioning = yes; then
4221   VERSIONING=yes
4222   cat >>confdefs.h <<\_ACEOF
4223 #define DO_VERSIONING 1
4224 _ACEOF
4225
4226 else
4227   VERSIONING=no
4228 fi
4229
4230
4231 if test $elf = yes && test $shared != no && test $VERSIONING = no; then
4232   echo "\
4233 *** WARNING: You should not compile GNU libc without versioning. Not using
4234 *** versioning will introduce incompatibilities so that old binaries
4235 *** will not run anymore.
4236 *** For versioning you need recent binutils (binutils-2.8.1.0.23 or newer)."
4237 fi
4238 if test $elf = yes; then
4239   echo "$as_me:$LINENO: checking for .previous assembler directive" >&5
4240 echo $ECHO_N "checking for .previous assembler directive... $ECHO_C" >&6
4241 if test "${libc_cv_asm_previous_directive+set}" = set; then
4242   echo $ECHO_N "(cached) $ECHO_C" >&6
4243 else
4244     cat > conftest.s <<EOF
4245 .section foo_section
4246 .previous
4247 EOF
4248   if { ac_try='${CC-cc} -c $CFLAGS conftest.s 1>&5'
4249   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4250   (eval $ac_try) 2>&5
4251   ac_status=$?
4252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4253   (exit $ac_status); }; }; then
4254     libc_cv_asm_previous_directive=yes
4255   else
4256     libc_cv_asm_previous_directive=no
4257   fi
4258   rm -f conftest*
4259 fi
4260 echo "$as_me:$LINENO: result: $libc_cv_asm_previous_directive" >&5
4261 echo "${ECHO_T}$libc_cv_asm_previous_directive" >&6
4262   if test $libc_cv_asm_previous_directive = yes; then
4263     cat >>confdefs.h <<\_ACEOF
4264 #define HAVE_ASM_PREVIOUS_DIRECTIVE 1
4265 _ACEOF
4266
4267   else
4268     echo "$as_me:$LINENO: checking for .popsection assembler directive" >&5
4269 echo $ECHO_N "checking for .popsection assembler directive... $ECHO_C" >&6
4270 if test "${libc_cv_asm_popsection_directive+set}" = set; then
4271   echo $ECHO_N "(cached) $ECHO_C" >&6
4272 else
4273       cat > conftest.s <<EOF
4274 .pushsection foo_section
4275 .popsection
4276 EOF
4277     if { ac_try='${CC-cc} -c $CFLAGS conftest.s 1>&5'
4278   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4279   (eval $ac_try) 2>&5
4280   ac_status=$?
4281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4282   (exit $ac_status); }; }; then
4283       libc_cv_asm_popsection_directive=yes
4284     else
4285       libc_cv_asm_popsection_directive=no
4286     fi
4287     rm -f conftest*
4288 fi
4289 echo "$as_me:$LINENO: result: $libc_cv_asm_popsection_directive" >&5
4290 echo "${ECHO_T}$libc_cv_asm_popsection_directive" >&6
4291     if test $libc_cv_asm_popsection_directive = yes; then
4292       cat >>confdefs.h <<\_ACEOF
4293 #define HAVE_ASM_POPSECTION_DIRECTIVE 1
4294 _ACEOF
4295
4296     fi
4297   fi
4298   echo "$as_me:$LINENO: checking for .protected and .hidden assembler directive" >&5
4299 echo $ECHO_N "checking for .protected and .hidden assembler directive... $ECHO_C" >&6
4300 if test "${libc_cv_asm_protected_directive+set}" = set; then
4301   echo $ECHO_N "(cached) $ECHO_C" >&6
4302 else
4303     cat > conftest.s <<EOF
4304 .protected foo
4305 foo:
4306 .hidden bar
4307 bar:
4308 EOF
4309   if { ac_try='${CC-cc} -c $CFLAGS conftest.s 1>&5'
4310   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4311   (eval $ac_try) 2>&5
4312   ac_status=$?
4313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4314   (exit $ac_status); }; }; then
4315     libc_cv_asm_protected_directive=yes
4316   else
4317     libc_cv_asm_protected_directive=no
4318   fi
4319   rm -f conftest*
4320 fi
4321 echo "$as_me:$LINENO: result: $libc_cv_asm_protected_directive" >&5
4322 echo "${ECHO_T}$libc_cv_asm_protected_directive" >&6
4323
4324   cat >>confdefs.h <<\_ACEOF
4325 #define HAVE_PROTECTED 1
4326 _ACEOF
4327
4328   cat >>confdefs.h <<\_ACEOF
4329 #define HAVE_HIDDEN 1
4330 _ACEOF
4331
4332
4333   if test $libc_cv_asm_protected_directive = yes; then
4334     echo "$as_me:$LINENO: checking whether __attribute__((visibility())) is supported" >&5
4335 echo $ECHO_N "checking whether __attribute__((visibility())) is supported... $ECHO_C" >&6
4336 if test "${libc_cv_visibility_attribute+set}" = set; then
4337   echo $ECHO_N "(cached) $ECHO_C" >&6
4338 else
4339   cat > conftest.c <<EOF
4340                   int foo __attribute__ ((visibility ("hidden"))) = 1;
4341                   int bar __attribute__ ((visibility ("protected"))) = 1;
4342 EOF
4343                   libc_cv_visibility_attribute=no
4344                   if ${CC-cc} -Werror -S conftest.c -o conftest.s >/dev/null 2>&1; then
4345                     if grep '\.hidden.*foo' conftest.s >/dev/null; then
4346                       if grep '\.protected.*bar' conftest.s >/dev/null; then
4347                         libc_cv_visibility_attribute=yes
4348                       fi
4349                     fi
4350                   fi
4351                   rm -f conftest.cs
4352
4353 fi
4354 echo "$as_me:$LINENO: result: $libc_cv_visibility_attribute" >&5
4355 echo "${ECHO_T}$libc_cv_visibility_attribute" >&6
4356     if test $libc_cv_visibility_attribute = yes; then
4357       cat >>confdefs.h <<\_ACEOF
4358 #define HAVE_VISIBILITY_ATTRIBUTE 1
4359 _ACEOF
4360
4361     fi
4362   fi
4363
4364   if test $libc_cv_visibility_attribute = yes; then
4365     echo "$as_me:$LINENO: checking for broken __attribute__((visibility()))" >&5
4366 echo $ECHO_N "checking for broken __attribute__((visibility()))... $ECHO_C" >&6
4367 if test "${libc_cv_broken_visibility_attribute+set}" = set; then
4368   echo $ECHO_N "(cached) $ECHO_C" >&6
4369 else
4370   cat > conftest.c <<EOF
4371                   int foo (int x);
4372                   int bar (int x) __asm__ ("foo") __attribute__ ((visibility ("hidden")));
4373                   int bar (int x) { return x; }
4374 EOF
4375                   libc_cv_broken_visibility_attribute=yes
4376                   if ${CC-cc} -Werror -S conftest.c -o conftest.s >/dev/null 2>&1; then
4377                     if grep '\.hidden[  _]foo' conftest.s >/dev/null; then
4378                       libc_cv_broken_visibility_attribute=no
4379                     fi
4380                   fi
4381                   rm -f conftest.c conftest.s
4382
4383 fi
4384 echo "$as_me:$LINENO: result: $libc_cv_broken_visibility_attribute" >&5
4385 echo "${ECHO_T}$libc_cv_broken_visibility_attribute" >&6
4386     if test $libc_cv_broken_visibility_attribute = yes; then
4387       cat >>confdefs.h <<\_ACEOF
4388 #define HAVE_BROKEN_VISIBILITY_ATTRIBUTE 1
4389 _ACEOF
4390
4391     fi
4392   fi
4393
4394   echo "$as_me:$LINENO: checking for broken __attribute__((alias()))" >&5
4395 echo $ECHO_N "checking for broken __attribute__((alias()))... $ECHO_C" >&6
4396 if test "${libc_cv_broken_alias_attribute+set}" = set; then
4397   echo $ECHO_N "(cached) $ECHO_C" >&6
4398 else
4399   cat > conftest.c <<EOF
4400                   extern int foo (int x) __asm ("xyzzy");
4401                   int bar (int x) { return x; }
4402                   extern __typeof (bar) foo __attribute ((weak, alias ("bar")));
4403                   extern int dfoo;
4404                   extern __typeof (dfoo) dfoo __asm ("abccb");
4405                   int dfoo = 1;
4406 EOF
4407                   libc_cv_broken_alias_attribute=yes
4408                   if ${CC-cc} -Werror -S conftest.c -o conftest.s >/dev/null 2>&1; then
4409                     if grep 'xyzzy' conftest.s >/dev/null &&
4410                        grep 'abccb' conftest.s >/dev/null; then
4411                       libc_cv_broken_alias_attribute=no
4412                     fi
4413                   fi
4414                   rm -f conftest.c conftest.s
4415
4416 fi
4417 echo "$as_me:$LINENO: result: $libc_cv_broken_alias_attribute" >&5
4418 echo "${ECHO_T}$libc_cv_broken_alias_attribute" >&6
4419   if test $libc_cv_broken_alias_attribute = yes; then
4420     cat >>confdefs.h <<\_ACEOF
4421 #define HAVE_BROKEN_ALIAS_ATTRIBUTE 1
4422 _ACEOF
4423
4424   fi
4425
4426   if test $libc_cv_visibility_attribute = yes -a $gnu_ld = yes; then
4427     echo "$as_me:$LINENO: checking whether to put _rtld_local into .sdata section" >&5
4428 echo $ECHO_N "checking whether to put _rtld_local into .sdata section... $ECHO_C" >&6
4429 if test "${libc_cv_have_sdata_section+set}" = set; then
4430   echo $ECHO_N "(cached) $ECHO_C" >&6
4431 else
4432   echo "int i;" > conftest.c
4433                   libc_cv_have_sdata_section=no
4434                   if ${CC-cc} -shared -Wl,--verbose conftest.c -o conftest.so 2>&1 \
4435                      | grep '\.sdata' >/dev/null; then
4436                     libc_cv_have_sdata_section=yes
4437                   fi
4438                   rm -f conftest.c conftest.so
4439
4440 fi
4441 echo "$as_me:$LINENO: result: $libc_cv_have_sdata_section" >&5
4442 echo "${ECHO_T}$libc_cv_have_sdata_section" >&6
4443     if test $libc_cv_have_sdata_section = yes; then
4444       cat >>confdefs.h <<\_ACEOF
4445 #define HAVE_SDATA_SECTION 1
4446 _ACEOF
4447
4448     fi
4449   fi
4450
4451   echo "$as_me:$LINENO: checking for .preinit_array/.init_array/.fini_array support" >&5
4452 echo $ECHO_N "checking for .preinit_array/.init_array/.fini_array support... $ECHO_C" >&6
4453 if test "${libc_cv_initfinit_array+set}" = set; then
4454   echo $ECHO_N "(cached) $ECHO_C" >&6
4455 else
4456     cat > conftest.c <<EOF
4457 int _start (void) { return 0; }
4458 int __start (void) { return 0; }
4459 int foo (void) { return 1; }
4460 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
4461 EOF
4462   if { ac_try='${CC-cc} -o conftest conftest.c
4463                      -static -nostartfiles -nostdlib 1>&5'
4464   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4465   (eval $ac_try) 2>&5
4466   ac_status=$?
4467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4468   (exit $ac_status); }; }
4469   then
4470     if readelf -S conftest | fgrep INIT_ARRAY > /dev/null; then
4471       libc_cv_initfinit_array=yes
4472     else
4473       libc_cv_initfinit_array=no
4474     fi
4475   else
4476     libc_cv_initfinit_array=no
4477   fi
4478   rm -f conftest*
4479 fi
4480 echo "$as_me:$LINENO: result: $libc_cv_initfinit_array" >&5
4481 echo "${ECHO_T}$libc_cv_initfinit_array" >&6
4482
4483   if test $libc_cv_initfinit_array = yes; then
4484     cat >>confdefs.h <<\_ACEOF
4485 #define HAVE_INITFINI_ARRAY 1
4486 _ACEOF
4487
4488   fi
4489
4490   echo "$as_me:$LINENO: checking for -z nodelete option" >&5
4491 echo $ECHO_N "checking for -z nodelete option... $ECHO_C" >&6
4492 if test "${libc_cv_z_nodelete+set}" = set; then
4493   echo $ECHO_N "(cached) $ECHO_C" >&6
4494 else
4495     cat > conftest.c <<EOF
4496 int _start (void) { return 42; }
4497 EOF
4498   if { ac_try='${CC-cc} -shared -o conftest.so conftest.c
4499                      -nostartfiles -nostdlib
4500                      -Wl,--enable-new-dtags,-z,nodelete 1>&5'
4501   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4502   (eval $ac_try) 2>&5
4503   ac_status=$?
4504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4505   (exit $ac_status); }; }
4506   then
4507     libc_cv_z_nodelete=yes
4508   else
4509     libc_cv_z_nodelete=no
4510   fi
4511   rm -f conftest*
4512 fi
4513 echo "$as_me:$LINENO: result: $libc_cv_z_nodelete" >&5
4514 echo "${ECHO_T}$libc_cv_z_nodelete" >&6
4515
4516
4517   echo "$as_me:$LINENO: checking for -z nodlopen option" >&5
4518 echo $ECHO_N "checking for -z nodlopen option... $ECHO_C" >&6
4519 if test "${libc_cv_z_nodlopen+set}" = set; then
4520   echo $ECHO_N "(cached) $ECHO_C" >&6
4521 else
4522     cat > conftest.c <<EOF
4523 int _start (void) { return 42; }
4524 EOF
4525   if { ac_try='${CC-cc} -shared -o conftest.so conftest.c
4526                         -nostartfiles -nostdlib
4527                         -Wl,--enable-new-dtags,-z,nodlopen 1>&5'
4528   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4529   (eval $ac_try) 2>&5
4530   ac_status=$?
4531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4532   (exit $ac_status); }; }
4533   then
4534     libc_cv_z_nodlopen=yes
4535   else
4536     libc_cv_z_nodlopen=no
4537   fi
4538   rm -f conftest*
4539 fi
4540 echo "$as_me:$LINENO: result: $libc_cv_z_nodlopen" >&5
4541 echo "${ECHO_T}$libc_cv_z_nodlopen" >&6
4542
4543
4544   echo "$as_me:$LINENO: checking for -z initfirst option" >&5
4545 echo $ECHO_N "checking for -z initfirst option... $ECHO_C" >&6
4546 if test "${libc_cv_z_initfirst+set}" = set; then
4547   echo $ECHO_N "(cached) $ECHO_C" >&6
4548 else
4549     cat > conftest.c <<EOF
4550 int _start (void) { return 42; }
4551 EOF
4552   if { ac_try='${CC-cc} -shared -o conftest.so conftest.c
4553                         -nostartfiles -nostdlib
4554                         -Wl,--enable-new-dtags,-z,initfirst 1>&5'
4555   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4556   (eval $ac_try) 2>&5
4557   ac_status=$?
4558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4559   (exit $ac_status); }; }
4560   then
4561     libc_cv_z_initfirst=yes
4562   else
4563     libc_cv_z_initfirst=no
4564   fi
4565   rm -f conftest*
4566 fi
4567 echo "$as_me:$LINENO: result: $libc_cv_z_initfirst" >&5
4568 echo "${ECHO_T}$libc_cv_z_initfirst" >&6
4569
4570
4571   echo "$as_me:$LINENO: checking for -Bgroup option" >&5
4572 echo $ECHO_N "checking for -Bgroup option... $ECHO_C" >&6
4573 if test "${libc_cv_Bgroup+set}" = set; then
4574   echo $ECHO_N "(cached) $ECHO_C" >&6
4575 else
4576     cat > conftest.c <<EOF
4577 int _start (void) { return 42; }
4578 EOF
4579   if { ac_try='${CC-cc} -shared -o conftest.so conftest.c -Wl,-Bgroup -nostdlib 1>&5'
4580   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4581   (eval $ac_try) 2>&5
4582   ac_status=$?
4583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4584   (exit $ac_status); }; }
4585   then
4586     libc_cv_Bgroup=yes
4587   else
4588     libc_cv_Bgroup=no
4589   fi
4590   rm -f conftest*
4591 fi
4592 echo "$as_me:$LINENO: result: $libc_cv_Bgroup" >&5
4593 echo "${ECHO_T}$libc_cv_Bgroup" >&6
4594
4595
4596   echo "$as_me:$LINENO: checking for -z combreloc" >&5
4597 echo $ECHO_N "checking for -z combreloc... $ECHO_C" >&6
4598 if test "${libc_cv_z_combreloc+set}" = set; then
4599   echo $ECHO_N "(cached) $ECHO_C" >&6
4600 else
4601     cat > conftest.c <<EOF
4602 extern int bar (int);
4603 extern int mumble;
4604 int foo (void) { return bar (mumble); }
4605 EOF
4606   if { ac_try='${CC-cc} -shared -o conftest.so conftest.c
4607                         -nostdlib -nostartfiles
4608                         -Wl,-z,combreloc 1>&5'
4609   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4610   (eval $ac_try) 2>&5
4611   ac_status=$?
4612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4613   (exit $ac_status); }; }
4614   then
4615     if readelf -S conftest.so | grep '\.rel\(a\|\)\.dyn' > /dev/null; then
4616       libc_cv_z_combreloc=yes
4617     else
4618       libc_cv_z_combreloc=no
4619     fi
4620   else
4621     libc_cv_z_combreloc=no
4622   fi
4623   rm -f conftest*
4624 fi
4625 echo "$as_me:$LINENO: result: $libc_cv_z_combreloc" >&5
4626 echo "${ECHO_T}$libc_cv_z_combreloc" >&6
4627   if test "$libc_cv_z_combreloc" = yes; then
4628     cat >>confdefs.h <<\_ACEOF
4629 #define HAVE_Z_COMBRELOC 1
4630 _ACEOF
4631
4632   fi
4633 fi
4634
4635
4636 if test $elf != yes; then
4637   echo "$as_me:$LINENO: checking for .init and .fini sections" >&5
4638 echo $ECHO_N "checking for .init and .fini sections... $ECHO_C" >&6
4639 if test "${libc_cv_have_initfini+set}" = set; then
4640   echo $ECHO_N "(cached) $ECHO_C" >&6
4641 else
4642   cat >conftest.$ac_ext <<_ACEOF
4643 #line $LINENO "configure"
4644 #include "confdefs.h"
4645
4646 #ifdef F77_DUMMY_MAIN
4647 #  ifdef __cplusplus
4648      extern "C"
4649 #  endif
4650    int F77_DUMMY_MAIN() { return 1; }
4651 #endif
4652 int
4653 main ()
4654 {
4655 asm (".section .init");
4656                                     asm (".section .fini");
4657                                     asm ("${libc_cv_dot_text}");
4658   ;
4659   return 0;
4660 }
4661 _ACEOF
4662 rm -f conftest.$ac_objext
4663 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4664   (eval $ac_compile) 2>&5
4665   ac_status=$?
4666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4667   (exit $ac_status); } &&
4668          { ac_try='test -s conftest.$ac_objext'
4669   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4670   (eval $ac_try) 2>&5
4671   ac_status=$?
4672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4673   (exit $ac_status); }; }; then
4674   libc_cv_have_initfini=yes
4675 else
4676   echo "$as_me: failed program was:" >&5
4677 cat conftest.$ac_ext >&5
4678 libc_cv_have_initfini=no
4679 fi
4680 rm -f conftest.$ac_objext conftest.$ac_ext
4681 fi
4682 echo "$as_me:$LINENO: result: $libc_cv_have_initfini" >&5
4683 echo "${ECHO_T}$libc_cv_have_initfini" >&6
4684     if test $libc_cv_have_initfini = yes; then
4685     cat >>confdefs.h <<\_ACEOF
4686 #define HAVE_INITFINI 1
4687 _ACEOF
4688
4689   fi
4690 fi
4691
4692 if test $elf = yes -a $gnu_ld = yes; then
4693   echo "$as_me:$LINENO: checking whether cc puts quotes around section names" >&5
4694 echo $ECHO_N "checking whether cc puts quotes around section names... $ECHO_C" >&6
4695 if test "${libc_cv_have_section_quotes+set}" = set; then
4696   echo $ECHO_N "(cached) $ECHO_C" >&6
4697 else
4698   cat > conftest.c <<EOF
4699                   static const int foo
4700                   __attribute__ ((section ("bar"))) = 1;
4701 EOF
4702                   if ${CC-cc} -S conftest.c -o conftest.s; then
4703                     if grep '\.section.*"bar"' conftest.s >/dev/null; then
4704                       libc_cv_have_section_quotes=yes
4705                     else
4706                       libc_cv_have_section_quotes=no
4707                     fi
4708                   else
4709                     libc_cv_have_section_quotes=unknown
4710                   fi
4711                   rm -f conftest.cs
4712
4713 fi
4714 echo "$as_me:$LINENO: result: $libc_cv_have_section_quotes" >&5
4715 echo "${ECHO_T}$libc_cv_have_section_quotes" >&6
4716   if test $libc_cv_have_section_quotes = yes; then
4717     cat >>confdefs.h <<\_ACEOF
4718 #define HAVE_SECTION_QUOTES 1
4719 _ACEOF
4720
4721   fi
4722 fi
4723
4724
4725
4726 if test $elf = yes; then
4727   libc_cv_asm_underscores=no
4728 else
4729   if test $ac_cv_prog_cc_works = yes; then
4730     echo "$as_me:$LINENO: checking for _ prefix on C symbol names" >&5
4731 echo $ECHO_N "checking for _ prefix on C symbol names... $ECHO_C" >&6
4732 if test "${libc_cv_asm_underscores+set}" = set; then
4733   echo $ECHO_N "(cached) $ECHO_C" >&6
4734 else
4735   cat >conftest.$ac_ext <<_ACEOF
4736 #line $LINENO "configure"
4737 #include "confdefs.h"
4738 asm ("_glibc_foobar:");
4739 #ifdef F77_DUMMY_MAIN
4740 #  ifdef __cplusplus
4741      extern "C"
4742 #  endif
4743    int F77_DUMMY_MAIN() { return 1; }
4744 #endif
4745 int
4746 main ()
4747 {
4748 glibc_foobar ();
4749   ;
4750   return 0;
4751 }
4752 _ACEOF
4753 rm -f conftest.$ac_objext conftest$ac_exeext
4754 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4755   (eval $ac_link) 2>&5
4756   ac_status=$?
4757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4758   (exit $ac_status); } &&
4759          { ac_try='test -s conftest$ac_exeext'
4760   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4761   (eval $ac_try) 2>&5
4762   ac_status=$?
4763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4764   (exit $ac_status); }; }; then
4765   libc_cv_asm_underscores=yes
4766 else
4767   echo "$as_me: failed program was:" >&5
4768 cat conftest.$ac_ext >&5
4769 libc_cv_asm_underscores=no
4770 fi
4771 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4772 fi
4773 echo "$as_me:$LINENO: result: $libc_cv_asm_underscores" >&5
4774 echo "${ECHO_T}$libc_cv_asm_underscores" >&6
4775   else
4776     echo "$as_me:$LINENO: checking for _ prefix on C symbol names" >&5
4777 echo $ECHO_N "checking for _ prefix on C symbol names... $ECHO_C" >&6
4778 if test "${libc_cv_asm_underscores+set}" = set; then
4779   echo $ECHO_N "(cached) $ECHO_C" >&6
4780 else
4781   cat > conftest.$ac_ext <<EOF
4782 #line 4782 "configure"
4783 #include "confdefs.h"
4784 void underscore_test(void) {
4785 return; }
4786 EOF
4787 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4788   (eval $ac_compile) 2>&5
4789   ac_status=$?
4790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4791   (exit $ac_status); }; then
4792   if grep _underscore_test conftest* >/dev/null; then
4793     rm -f conftest*
4794     libc_cv_asm_underscores=yes
4795   else
4796     rm -f conftest*
4797     libc_cv_asm_underscores=no
4798   fi
4799 else
4800   echo "configure: failed program was:" >&5
4801   cat conftest.$ac_ext >&5
4802   rm -f conftest*
4803   libc_cv_asm_underscores=no
4804 fi
4805 rm -f conftest*
4806 fi
4807 echo "$as_me:$LINENO: result: $libc_cv_asm_underscores" >&5
4808 echo "${ECHO_T}$libc_cv_asm_underscores" >&6
4809   fi
4810 fi
4811 if test $libc_cv_asm_underscores = no; then
4812   cat >>confdefs.h <<\_ACEOF
4813 #define NO_UNDERSCORES 1
4814 _ACEOF
4815
4816 fi
4817
4818 if test $elf = yes; then
4819   libc_cv_weak_symbols=yes
4820 fi
4821
4822 echo "$as_me:$LINENO: checking for assembler .weak directive" >&5
4823 echo $ECHO_N "checking for assembler .weak directive... $ECHO_C" >&6
4824 if test "${libc_cv_asm_weak_directive+set}" = set; then
4825   echo $ECHO_N "(cached) $ECHO_C" >&6
4826 else
4827   cat > conftest.s <<EOF
4828 ${libc_cv_dot_text}
4829 ${libc_cv_asm_global_directive} foo
4830 foo:
4831 .weak foo
4832 .weak bar; bar = foo
4833 EOF
4834 if ${CC-cc} $CFLAGS -c conftest.s 2>/dev/null; then
4835   libc_cv_asm_weak_directive=yes
4836 else
4837   libc_cv_asm_weak_directive=no
4838 fi
4839 rm -f conftest*
4840 fi
4841 echo "$as_me:$LINENO: result: $libc_cv_asm_weak_directive" >&5
4842 echo "${ECHO_T}$libc_cv_asm_weak_directive" >&6
4843
4844 if test $libc_cv_asm_weak_directive = no; then
4845   echo "$as_me:$LINENO: checking for assembler .weakext directive" >&5
4846 echo $ECHO_N "checking for assembler .weakext directive... $ECHO_C" >&6
4847 if test "${libc_cv_asm_weakext_directive+set}" = set; then
4848   echo $ECHO_N "(cached) $ECHO_C" >&6
4849 else
4850   cat > conftest.s <<EOF
4851 ${libc_cv_dot_text}
4852 ${libc_cv_asm_global_directive} foo
4853 foo:
4854 .weakext bar foo
4855 .weakext baz
4856 ${libc_cv_asm_global_directive} baz
4857 baz:
4858 EOF
4859   if ${CC-cc} $CFLAGS -c conftest.s 2>/dev/null; then
4860     libc_cv_asm_weakext_directive=yes
4861   else
4862     libc_cv_asm_weakext_directive=no
4863   fi
4864   rm -f conftest*
4865 fi
4866 echo "$as_me:$LINENO: result: $libc_cv_asm_weakext_directive" >&5
4867 echo "${ECHO_T}$libc_cv_asm_weakext_directive" >&6
4868
4869 fi # no .weak
4870
4871 if test $libc_cv_asm_weak_directive = yes; then
4872   cat >>confdefs.h <<\_ACEOF
4873 #define HAVE_ASM_WEAK_DIRECTIVE 1
4874 _ACEOF
4875
4876 elif test $libc_cv_asm_weakext_directive = yes; then
4877   cat >>confdefs.h <<\_ACEOF
4878 #define HAVE_ASM_WEAKEXT_DIRECTIVE 1
4879 _ACEOF
4880
4881 fi
4882
4883 case "${host_cpu}-${host_os}" in
4884   cris*)
4885     libc_cv_asm_line_sep='@'
4886     cat >>confdefs.h <<_ACEOF
4887 #define ASM_LINE_SEP $libc_cv_asm_line_sep
4888 _ACEOF
4889
4890     ;;
4891   hppa*linux*)
4892   echo "$as_me:$LINENO: checking for assembler line separator" >&5
4893 echo $ECHO_N "checking for assembler line separator... $ECHO_C" >&6
4894 if test "${libc_cv_asm_line_sep+set}" = set; then
4895   echo $ECHO_N "(cached) $ECHO_C" >&6
4896 else
4897     cat > conftest.s <<EOF
4898  nop ; is_old_puffin
4899 EOF
4900   if { ac_try='${CC-cc} -c $CFLAGS conftest.s 1>&5'
4901   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4902   (eval $ac_try) 2>&5
4903   ac_status=$?
4904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4905   (exit $ac_status); }; }; then
4906     libc_cv_asm_line_sep='!'
4907   else
4908     if test -z "$enable_hacker_mode"; then
4909       echo "*** You need a newer assembler to compile glibc"
4910       rm -f conftest*
4911       exit 1
4912     fi
4913     libc_cv_asm_line_sep=';'
4914   fi
4915   rm -f conftest*
4916 fi
4917 echo "$as_me:$LINENO: result: $libc_cv_asm_line_sep" >&5
4918 echo "${ECHO_T}$libc_cv_asm_line_sep" >&6
4919   cat >>confdefs.h <<_ACEOF
4920 #define ASM_LINE_SEP $libc_cv_asm_line_sep
4921 _ACEOF
4922
4923   ;;
4924 esac
4925
4926 echo "$as_me:$LINENO: checking for ld --no-whole-archive" >&5
4927 echo $ECHO_N "checking for ld --no-whole-archive... $ECHO_C" >&6
4928 if test "${libc_cv_ld_no_whole_archive+set}" = set; then
4929   echo $ECHO_N "(cached) $ECHO_C" >&6
4930 else
4931   cat > conftest.c <<\EOF
4932 _start () {}
4933 int __eh_pc;
4934 __throw () {}
4935 EOF
4936 if { ac_try='${CC-cc} $CFLAGS
4937                             -nostdlib -nostartfiles -Wl,--no-whole-archive
4938                             -o conftest conftest.c 1>&5'
4939   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4940   (eval $ac_try) 2>&5
4941   ac_status=$?
4942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4943   (exit $ac_status); }; }; then
4944   libc_cv_ld_no_whole_archive=yes
4945 else
4946   libc_cv_ld_no_whole_archive=no
4947 fi
4948 rm -f conftest*
4949 fi
4950 echo "$as_me:$LINENO: result: $libc_cv_ld_no_whole_archive" >&5
4951 echo "${ECHO_T}$libc_cv_ld_no_whole_archive" >&6
4952 if test $libc_cv_ld_no_whole_archive = yes; then
4953   no_whole_archive=-Wl,--no-whole-archive
4954 fi
4955
4956 echo "$as_me:$LINENO: checking for gcc -fexceptions" >&5
4957 echo $ECHO_N "checking for gcc -fexceptions... $ECHO_C" >&6
4958 if test "${libc_cv_gcc_exceptions+set}" = set; then
4959   echo $ECHO_N "(cached) $ECHO_C" >&6
4960 else
4961   cat > conftest.c <<\EOF
4962 _start () {}
4963 int __eh_pc;
4964 __throw () {}
4965 EOF
4966 if { ac_try='${CC-cc} $CFLAGS
4967                             -nostdlib -nostartfiles -fexceptions
4968                             -o conftest conftest.c 1>&5'
4969   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4970   (eval $ac_try) 2>&5
4971   ac_status=$?
4972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4973   (exit $ac_status); }; }; then
4974   libc_cv_gcc_exceptions=yes
4975 else
4976   libc_cv_gcc_exceptions=no
4977 fi
4978 rm -f conftest*
4979 fi
4980 echo "$as_me:$LINENO: result: $libc_cv_gcc_exceptions" >&5
4981 echo "${ECHO_T}$libc_cv_gcc_exceptions" >&6
4982 if test $libc_cv_gcc_exceptions = yes; then
4983   exceptions=-fexceptions
4984 fi
4985
4986 if test "$base_machine" = alpha ; then
4987 echo "$as_me:$LINENO: checking for function ..ng prefix" >&5
4988 echo $ECHO_N "checking for function ..ng prefix... $ECHO_C" >&6
4989 if test "${libc_cv_gcc_alpha_ng_prefix+set}" = set; then
4990   echo $ECHO_N "(cached) $ECHO_C" >&6
4991 else
4992   cat > conftest.c <<\EOF
4993 foo () { }
4994 EOF
4995 if { ac_try='${CC-cc} -S conftest.c -o - | fgrep "\$foo..ng" > /dev/null'
4996   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4997   (eval $ac_try) 2>&5
4998   ac_status=$?
4999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5000   (exit $ac_status); }; };
5001 then
5002   libc_cv_gcc_alpha_ng_prefix=yes
5003 else
5004   libc_cv_gcc_alpha_ng_prefix=no
5005 fi
5006 rm -f conftest*
5007 fi
5008 echo "$as_me:$LINENO: result: $libc_cv_gcc_alpha_ng_prefix" >&5
5009 echo "${ECHO_T}$libc_cv_gcc_alpha_ng_prefix" >&6
5010 if test $libc_cv_gcc_alpha_ng_prefix = yes ; then
5011   cat >>confdefs.h <<\_ACEOF
5012 #define ASM_ALPHA_NG_SYMBOL_PREFIX "$"
5013 _ACEOF
5014
5015 else
5016   cat >>confdefs.h <<\_ACEOF
5017 #define ASM_ALPHA_NG_SYMBOL_PREFIX ""
5018 _ACEOF
5019
5020 fi
5021 fi
5022
5023 if test "$host_cpu" = powerpc ; then
5024 # Check for a bug present in at least versions 2.8.x of GCC
5025 # and versions 1.0.x of EGCS.
5026 echo "$as_me:$LINENO: checking whether clobbering cr0 causes problems" >&5
5027 echo $ECHO_N "checking whether clobbering cr0 causes problems... $ECHO_C" >&6
5028 if test "${libc_cv_c_asmcr0_bug+set}" = set; then
5029   echo $ECHO_N "(cached) $ECHO_C" >&6
5030 else
5031   cat >conftest.$ac_ext <<_ACEOF
5032 #line $LINENO "configure"
5033 #include "confdefs.h"
5034 int tester(int x) { asm ("" : : : "cc"); return x & 123; }
5035 #ifdef F77_DUMMY_MAIN
5036 #  ifdef __cplusplus
5037      extern "C"
5038 #  endif
5039    int F77_DUMMY_MAIN() { return 1; }
5040 #endif
5041 int
5042 main ()
5043 {
5044
5045   ;
5046   return 0;
5047 }
5048 _ACEOF
5049 rm -f conftest.$ac_objext
5050 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5051   (eval $ac_compile) 2>&5
5052   ac_status=$?
5053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5054   (exit $ac_status); } &&
5055          { ac_try='test -s conftest.$ac_objext'
5056   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5057   (eval $ac_try) 2>&5
5058   ac_status=$?
5059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5060   (exit $ac_status); }; }; then
5061   libc_cv_c_asmcr0_bug='no'
5062 else
5063   echo "$as_me: failed program was:" >&5
5064 cat conftest.$ac_ext >&5
5065 libc_cv_c_asmcr0_bug='yes'
5066 fi
5067 rm -f conftest.$ac_objext conftest.$ac_ext
5068 fi
5069 echo "$as_me:$LINENO: result: $libc_cv_c_asmcr0_bug" >&5
5070 echo "${ECHO_T}$libc_cv_c_asmcr0_bug" >&6
5071 if test "$libc_cv_c_asmcr0_bug" != 'no'; then
5072   cat >>confdefs.h <<\_ACEOF
5073 #define BROKEN_PPC_ASM_CR0 1
5074 _ACEOF
5075
5076 fi
5077 fi
5078
5079 echo "$as_me:$LINENO: checking for DWARF2 unwind info support" >&5
5080 echo $ECHO_N "checking for DWARF2 unwind info support... $ECHO_C" >&6
5081 if test "${libc_cv_gcc_dwarf2_unwind_info+set}" = set; then
5082   echo $ECHO_N "(cached) $ECHO_C" >&6
5083 else
5084   cat > conftest.c <<EOF
5085 #line 5085 "configure"
5086 static char *__EH_FRAME_BEGIN__;
5087 _start ()
5088 {
5089 #ifdef CHECK__register_frame
5090   __register_frame (__EH_FRAME_BEGIN__);
5091   __deregister_frame (__EH_FRAME_BEGIN__);
5092 #endif
5093 #ifdef CHECK__register_frame_info
5094   __register_frame_info (__EH_FRAME_BEGIN__);
5095   __deregister_frame_info (__EH_FRAME_BEGIN__);
5096 #endif
5097 }
5098 int __eh_pc;
5099 __throw () {}
5100 /* FIXME: this is fragile.  */
5101 malloc () {}
5102 strcmp () {}
5103 strlen () {}
5104 memcpy () {}
5105 memset () {}
5106 free () {}
5107 abort () {}
5108 __bzero () {}
5109 dl_iterate_phdr () {}
5110 EOF
5111 if { ac_try='${CC-cc} $CFLAGS -DCHECK__register_frame_info
5112                             -nostdlib -nostartfiles
5113                             -o conftest conftest.c -lgcc >&5'
5114   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5115   (eval $ac_try) 2>&5
5116   ac_status=$?
5117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5118   (exit $ac_status); }; }; then
5119   libc_cv_gcc_dwarf2_unwind_info=static
5120 else
5121   libc_cv_gcc_dwarf2_unwind_info=no
5122 fi
5123 if { ac_try='${CC-cc} $CFLAGS -DCHECK__register_frame_info
5124                             -nostdlib -nostartfiles
5125                             -o conftest conftest.c -lgcc -lgcc_eh >&5'
5126   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5127   (eval $ac_try) 2>&5
5128   ac_status=$?
5129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5130   (exit $ac_status); }; }; then
5131   if ${CC-cc} $CFLAGS -DCHECK__register_frame_info -nostdlib -nostartfiles \
5132      -o conftest conftest.c -lgcc -lgcc_eh -v 2>&1 >/dev/null \
5133      | grep -q -- --eh-frame-hdr; then
5134     libc_cv_gcc_dwarf2_unwind_info=no_registry_needed
5135   else
5136     libc_cv_gcc_dwarf2_unwind_info=static
5137   fi
5138 else
5139   libc_cv_gcc_dwarf2_unwind_info=no
5140 fi
5141 if test $libc_cv_gcc_dwarf2_unwind_info = no; then
5142   if { ac_try='${CC-cc} $CFLAGS -DCHECK__register_frame
5143                               -nostdlib -nostartfiles
5144                               -o conftest conftest.c -lgcc >&5'
5145   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5146   (eval $ac_try) 2>&5
5147   ac_status=$?
5148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5149   (exit $ac_status); }; }; then
5150     libc_cv_gcc_dwarf2_unwind_info=yes
5151   else
5152     libc_cv_gcc_dwarf2_unwind_info=no
5153   fi
5154 fi
5155 rm -f conftest*
5156 fi
5157 echo "$as_me:$LINENO: result: $libc_cv_gcc_dwarf2_unwind_info" >&5
5158 echo "${ECHO_T}$libc_cv_gcc_dwarf2_unwind_info" >&6
5159 case $libc_cv_gcc_dwarf2_unwind_info in
5160 yes)
5161   cat >>confdefs.h <<\_ACEOF
5162 #define HAVE_DWARF2_UNWIND_INFO 1
5163 _ACEOF
5164
5165   ;;
5166 static)
5167   cat >>confdefs.h <<\_ACEOF
5168 #define HAVE_DWARF2_UNWIND_INFO 1
5169 _ACEOF
5170
5171   cat >>confdefs.h <<\_ACEOF
5172 #define HAVE_DWARF2_UNWIND_INFO_STATIC 1
5173 _ACEOF
5174
5175   ;;
5176 esac
5177
5178 echo "$as_me:$LINENO: checking for __builtin_expect" >&5
5179 echo $ECHO_N "checking for __builtin_expect... $ECHO_C" >&6
5180 if test "${libc_cv_gcc_builtin_expect+set}" = set; then
5181   echo $ECHO_N "(cached) $ECHO_C" >&6
5182 else
5183   cat > conftest.c <<EOF
5184 #line 5184 "configure"
5185 int foo (int a)
5186 {
5187   a = __builtin_expect (a, 10);
5188   return a == 10 ? 0 : 1;
5189 }
5190 EOF
5191 if { ac_try='${CC-cc} $CFLAGS -nostdlib -nostartfiles
5192                             -o conftest conftest.c -lgcc >&5'
5193   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5194   (eval $ac_try) 2>&5
5195   ac_status=$?
5196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5197   (exit $ac_status); }; }; then
5198   libc_cv_gcc_builtin_expect=yes
5199 else
5200   libc_cv_gcc_builtin_expect=no
5201 fi
5202 rm -f conftest*
5203 fi
5204 echo "$as_me:$LINENO: result: $libc_cv_gcc_builtin_expect" >&5
5205 echo "${ECHO_T}$libc_cv_gcc_builtin_expect" >&6
5206 if test "$libc_cv_gcc_builtin_expect" = yes; then
5207   cat >>confdefs.h <<\_ACEOF
5208 #define HAVE_BUILTIN_EXPECT 1
5209 _ACEOF
5210
5211 fi
5212
5213 echo "$as_me:$LINENO: checking for __builtin_memset" >&5
5214 echo $ECHO_N "checking for __builtin_memset... $ECHO_C" >&6
5215 if test "${libc_cv_gcc_builtin_memset+set}" = set; then
5216   echo $ECHO_N "(cached) $ECHO_C" >&6
5217 else
5218   cat > conftest.c <<\EOF
5219 void zero (void *x)
5220 {
5221   __builtin_memset (x, 0, 1000);
5222 }
5223 EOF
5224 if { ac_try='${CC-cc} -O3 -S conftest.c -o - | fgrep "memset" > /dev/null'
5225   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5226   (eval $ac_try) 2>&5
5227   ac_status=$?
5228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5229   (exit $ac_status); }; };
5230 then
5231   libc_cv_gcc_builtin_memset=no
5232 else
5233   libc_cv_gcc_builtin_memset=yes
5234 fi
5235 rm -f conftest*
5236 fi
5237 echo "$as_me:$LINENO: result: $libc_cv_gcc_builtin_memset" >&5
5238 echo "${ECHO_T}$libc_cv_gcc_builtin_memset" >&6
5239 if test "$libc_cv_gcc_builtin_memset" = yes ; then
5240   cat >>confdefs.h <<\_ACEOF
5241 #define HAVE_BUILTIN_MEMSET 1
5242 _ACEOF
5243
5244 fi
5245
5246 echo "$as_me:$LINENO: checking for local label subtraction" >&5
5247 echo $ECHO_N "checking for local label subtraction... $ECHO_C" >&6
5248 if test "${libc_cv_gcc_subtract_local_labels+set}" = set; then
5249   echo $ECHO_N "(cached) $ECHO_C" >&6
5250 else
5251   cat > conftest.c <<EOF
5252 #line 5252 "configure"
5253 int foo (int a)
5254 {
5255   static const int ar[] = { &&l1 - &&l1, &&l2 - &&l1 };
5256   void *p = &&l1 + ar[a];
5257   goto *p;
5258  l1:
5259   return 1;
5260  l2:
5261   return 2;
5262 }
5263 EOF
5264 if { ac_try='${CC-cc} $CFLAGS -nostdlib -nostartfiles
5265                             -o conftest conftest.c -lgcc >&5'
5266   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5267   (eval $ac_try) 2>&5
5268   ac_status=$?
5269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5270   (exit $ac_status); }; }; then
5271   libc_cv_gcc_subtract_local_labels=yes
5272 else
5273   libc_cv_gcc_subtract_local_labels=no
5274 fi
5275 rm -f conftest*
5276 fi
5277 echo "$as_me:$LINENO: result: $libc_cv_gcc_subtract_local_labels" >&5
5278 echo "${ECHO_T}$libc_cv_gcc_subtract_local_labels" >&6
5279 if test "$libc_cv_gcc_subtract_local_labels" = yes; then
5280   cat >>confdefs.h <<\_ACEOF
5281 #define HAVE_SUBTRACT_LOCAL_LABELS 1
5282 _ACEOF
5283
5284 fi
5285
5286 if test "x$use__thread" != xno; then
5287   echo "$as_me:$LINENO: checking for __thread" >&5
5288 echo $ECHO_N "checking for __thread... $ECHO_C" >&6
5289 if test "${libc_cv_gcc___thread+set}" = set; then
5290   echo $ECHO_N "(cached) $ECHO_C" >&6
5291 else
5292   cat > conftest.c <<\EOF
5293 __thread int a = 42;
5294 EOF
5295   if { ac_try='${CC-cc} $CFLAGS -c conftest.c >&5'
5296   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5297   (eval $ac_try) 2>&5
5298   ac_status=$?
5299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5300   (exit $ac_status); }; }; then
5301     libc_cv_gcc___thread=yes
5302   else
5303     libc_cv_gcc___thread=no
5304   fi
5305   rm -f conftest*
5306 fi
5307 echo "$as_me:$LINENO: result: $libc_cv_gcc___thread" >&5
5308 echo "${ECHO_T}$libc_cv_gcc___thread" >&6
5309   if test "$libc_cv_gcc___thread" = yes; then
5310     cat >>confdefs.h <<\_ACEOF
5311 #define HAVE___THREAD 1
5312 _ACEOF
5313
5314   fi
5315 else
5316   libc_cv_gcc___thread=no
5317 fi
5318
5319 if test "$libc_cv_gcc___thread" = yes; then
5320     echo "$as_me:$LINENO: checking for tls_model attribute" >&5
5321 echo $ECHO_N "checking for tls_model attribute... $ECHO_C" >&6
5322 if test "${libc_cv_gcc_tls_model_attr+set}" = set; then
5323   echo $ECHO_N "(cached) $ECHO_C" >&6
5324 else
5325     cat > conftest.c <<\EOF
5326 extern __thread int a __attribute__((tls_model ("initial-exec")));
5327 EOF
5328   if { ac_try='${CC-cc} $CFLAGS -S -Werror conftest.c >&5'
5329   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5330   (eval $ac_try) 2>&5
5331   ac_status=$?
5332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5333   (exit $ac_status); }; }; then
5334     libc_cv_gcc_tls_model_attr=yes
5335   else
5336     libc_cv_gcc_tls_model_attr=no
5337   fi
5338   rm -f conftest*
5339 fi
5340 echo "$as_me:$LINENO: result: $libc_cv_gcc_tls_model_attr" >&5
5341 echo "${ECHO_T}$libc_cv_gcc_tls_model_attr" >&6
5342   if test "$libc_cv_gcc_tls_model_attr" = yes; then
5343     cat >>confdefs.h <<\_ACEOF
5344 #define HAVE_TLS_MODEL_ATTRIBUTE 1
5345 _ACEOF
5346
5347   fi
5348 fi
5349
5350 echo "$as_me:$LINENO: checking for libgd" >&5
5351 echo $ECHO_N "checking for libgd... $ECHO_C" >&6
5352 if test "$with_gd" != "no"; then
5353   old_CFLAGS="$CFLAGS"
5354   CFLAGS="$CFLAGS $libgd_include"
5355   old_LDFLAGS="$LDFLAGS"
5356   LDFLAGS="$LDFLAGS $libgd_ldflags"
5357   old_LIBS="$LIBS"
5358   LIBS="$LIBS -lgd -lpng -lz -lm"
5359   cat >conftest.$ac_ext <<_ACEOF
5360 #line $LINENO "configure"
5361 #include "confdefs.h"
5362 #include <gd.h>
5363 #ifdef F77_DUMMY_MAIN
5364 #  ifdef __cplusplus
5365      extern "C"
5366 #  endif
5367    int F77_DUMMY_MAIN() { return 1; }
5368 #endif
5369 int
5370 main ()
5371 {
5372 gdImagePng (0, 0)
5373   ;
5374   return 0;
5375 }
5376 _ACEOF
5377 rm -f conftest.$ac_objext conftest$ac_exeext
5378 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5379   (eval $ac_link) 2>&5
5380   ac_status=$?
5381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5382   (exit $ac_status); } &&
5383          { ac_try='test -s conftest$ac_exeext'
5384   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5385   (eval $ac_try) 2>&5
5386   ac_status=$?
5387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5388   (exit $ac_status); }; }; then
5389   LIBGD=yes
5390 else
5391   echo "$as_me: failed program was:" >&5
5392 cat conftest.$ac_ext >&5
5393 LIBGD=no
5394 fi
5395 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5396   CFLAGS="$old_CFLAGS"
5397   LDFLAGS="$old_LDFLAGS"
5398   LIBS="$old_LIBS"
5399 else
5400   LIBGD=no
5401 fi
5402 echo "$as_me:$LINENO: result: $LIBGD" >&5
5403 echo "${ECHO_T}$LIBGD" >&6
5404
5405
5406
5407 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5408 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5409 if test "${ac_cv_header_stdc+set}" = set; then
5410   echo $ECHO_N "(cached) $ECHO_C" >&6
5411 else
5412   cat >conftest.$ac_ext <<_ACEOF
5413 #line $LINENO "configure"
5414 #include "confdefs.h"
5415 #include <stdlib.h>
5416 #include <stdarg.h>
5417 #include <string.h>
5418 #include <float.h>
5419
5420 _ACEOF
5421 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5422   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5423   ac_status=$?
5424   egrep -v '^ *\+' conftest.er1 >conftest.err
5425   rm -f conftest.er1
5426   cat conftest.err >&5
5427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5428   (exit $ac_status); } >/dev/null; then
5429   if test -s conftest.err; then
5430     ac_cpp_err=$ac_c_preproc_warn_flag
5431   else
5432     ac_cpp_err=
5433   fi
5434 else
5435   ac_cpp_err=yes
5436 fi
5437 if test -z "$ac_cpp_err"; then
5438   ac_cv_header_stdc=yes
5439 else
5440   echo "$as_me: failed program was:" >&5
5441   cat conftest.$ac_ext >&5
5442   ac_cv_header_stdc=no
5443 fi
5444 rm -f conftest.err conftest.$ac_ext
5445
5446 if test $ac_cv_header_stdc = yes; then
5447   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5448   cat >conftest.$ac_ext <<_ACEOF
5449 #line $LINENO "configure"
5450 #include "confdefs.h"
5451 #include <string.h>
5452
5453 _ACEOF
5454 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5455   egrep "memchr" >/dev/null 2>&1; then
5456   :
5457 else
5458   ac_cv_header_stdc=no
5459 fi
5460 rm -f conftest*
5461
5462 fi
5463
5464 if test $ac_cv_header_stdc = yes; then
5465   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5466   cat >conftest.$ac_ext <<_ACEOF
5467 #line $LINENO "configure"
5468 #include "confdefs.h"
5469 #include <stdlib.h>
5470
5471 _ACEOF
5472 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5473   egrep "free" >/dev/null 2>&1; then
5474   :
5475 else
5476   ac_cv_header_stdc=no
5477 fi
5478 rm -f conftest*
5479
5480 fi
5481
5482 if test $ac_cv_header_stdc = yes; then
5483   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5484   if test "$cross_compiling" = yes; then
5485   :
5486 else
5487   cat >conftest.$ac_ext <<_ACEOF
5488 #line $LINENO "configure"
5489 #include "confdefs.h"
5490 #include <ctype.h>
5491 #if ((' ' & 0x0FF) == 0x020)
5492 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5493 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5494 #else
5495 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
5496                      || ('j' <= (c) && (c) <= 'r') \
5497                      || ('s' <= (c) && (c) <= 'z'))
5498 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5499 #endif
5500
5501 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5502 int
5503 main ()
5504 {
5505   int i;
5506   for (i = 0; i < 256; i++)
5507     if (XOR (islower (i), ISLOWER (i))
5508         || toupper (i) != TOUPPER (i))
5509       exit(2);
5510   exit (0);
5511 }
5512 _ACEOF
5513 rm -f conftest$ac_exeext
5514 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5515   (eval $ac_link) 2>&5
5516   ac_status=$?
5517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5518   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5519   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5520   (eval $ac_try) 2>&5
5521   ac_status=$?
5522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5523   (exit $ac_status); }; }; then
5524   :
5525 else
5526   echo "$as_me: program exited with status $ac_status" >&5
5527 echo "$as_me: failed program was:" >&5
5528 cat conftest.$ac_ext >&5
5529 ( exit $ac_status )
5530 ac_cv_header_stdc=no
5531 fi
5532 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5533 fi
5534 fi
5535 fi
5536 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5537 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5538 if test $ac_cv_header_stdc = yes; then
5539
5540 cat >>confdefs.h <<\_ACEOF
5541 #define STDC_HEADERS 1
5542 _ACEOF
5543
5544 fi
5545
5546 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5547
5548
5549
5550
5551
5552
5553
5554
5555
5556 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5557                   inttypes.h stdint.h unistd.h
5558 do
5559 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5560 echo "$as_me:$LINENO: checking for $ac_header" >&5
5561 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5562 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5563   echo $ECHO_N "(cached) $ECHO_C" >&6
5564 else
5565   cat >conftest.$ac_ext <<_ACEOF
5566 #line $LINENO "configure"
5567 #include "confdefs.h"
5568 $ac_includes_default
5569
5570 #include <$ac_header>
5571 _ACEOF
5572 rm -f conftest.$ac_objext
5573 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5574   (eval $ac_compile) 2>&5
5575   ac_status=$?
5576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5577   (exit $ac_status); } &&
5578          { ac_try='test -s conftest.$ac_objext'
5579   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5580   (eval $ac_try) 2>&5
5581   ac_status=$?
5582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5583   (exit $ac_status); }; }; then
5584   eval "$as_ac_Header=yes"
5585 else
5586   echo "$as_me: failed program was:" >&5
5587 cat conftest.$ac_ext >&5
5588 eval "$as_ac_Header=no"
5589 fi
5590 rm -f conftest.$ac_objext conftest.$ac_ext
5591 fi
5592 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5593 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5594 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5595   cat >>confdefs.h <<_ACEOF
5596 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5597 _ACEOF
5598
5599 fi
5600
5601 done
5602
5603
5604 echo "$as_me:$LINENO: checking for long double" >&5
5605 echo $ECHO_N "checking for long double... $ECHO_C" >&6
5606 if test "${ac_cv_type_long_double+set}" = set; then
5607   echo $ECHO_N "(cached) $ECHO_C" >&6
5608 else
5609   cat >conftest.$ac_ext <<_ACEOF
5610 #line $LINENO "configure"
5611 #include "confdefs.h"
5612 $ac_includes_default
5613 #ifdef F77_DUMMY_MAIN
5614 #  ifdef __cplusplus
5615      extern "C"
5616 #  endif
5617    int F77_DUMMY_MAIN() { return 1; }
5618 #endif
5619 int
5620 main ()
5621 {
5622 if ((long double *) 0)
5623   return 0;
5624 if (sizeof (long double))
5625   return 0;
5626   ;
5627   return 0;
5628 }
5629 _ACEOF
5630 rm -f conftest.$ac_objext
5631 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5632   (eval $ac_compile) 2>&5
5633   ac_status=$?
5634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5635   (exit $ac_status); } &&
5636          { ac_try='test -s conftest.$ac_objext'
5637   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5638   (eval $ac_try) 2>&5
5639   ac_status=$?
5640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5641   (exit $ac_status); }; }; then
5642   ac_cv_type_long_double=yes
5643 else
5644   echo "$as_me: failed program was:" >&5
5645 cat conftest.$ac_ext >&5
5646 ac_cv_type_long_double=no
5647 fi
5648 rm -f conftest.$ac_objext conftest.$ac_ext
5649 fi
5650 echo "$as_me:$LINENO: result: $ac_cv_type_long_double" >&5
5651 echo "${ECHO_T}$ac_cv_type_long_double" >&6
5652
5653 echo "$as_me:$LINENO: checking size of long double" >&5
5654 echo $ECHO_N "checking size of long double... $ECHO_C" >&6
5655 if test "${ac_cv_sizeof_long_double+set}" = set; then
5656   echo $ECHO_N "(cached) $ECHO_C" >&6
5657 else
5658   if test "$ac_cv_type_long_double" = yes; then
5659   # The cast to unsigned long works around a bug in the HP C Compiler
5660   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5661   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5662   # This bug is HP SR number 8606223364.
5663   if test "$cross_compiling" = yes; then
5664   # Depending upon the size, compute the lo and hi bounds.
5665 cat >conftest.$ac_ext <<_ACEOF
5666 #line $LINENO "configure"
5667 #include "confdefs.h"
5668 $ac_includes_default
5669 #ifdef F77_DUMMY_MAIN
5670 #  ifdef __cplusplus
5671      extern "C"
5672 #  endif
5673    int F77_DUMMY_MAIN() { return 1; }
5674 #endif
5675 int
5676 main ()
5677 {
5678 static int test_array [1 - 2 * !(((long) (sizeof (long double))) >= 0)];
5679 test_array [0] = 0
5680
5681   ;
5682   return 0;
5683 }
5684 _ACEOF
5685 rm -f conftest.$ac_objext
5686 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5687   (eval $ac_compile) 2>&5
5688   ac_status=$?
5689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5690   (exit $ac_status); } &&
5691          { ac_try='test -s conftest.$ac_objext'
5692   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5693   (eval $ac_try) 2>&5
5694   ac_status=$?
5695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5696   (exit $ac_status); }; }; then
5697   ac_lo=0 ac_mid=0
5698   while :; do
5699     cat >conftest.$ac_ext <<_ACEOF
5700 #line $LINENO "configure"
5701 #include "confdefs.h"
5702 $ac_includes_default
5703 #ifdef F77_DUMMY_MAIN
5704 #  ifdef __cplusplus
5705      extern "C"
5706 #  endif
5707    int F77_DUMMY_MAIN() { return 1; }
5708 #endif
5709 int
5710 main ()
5711 {
5712 static int test_array [1 - 2 * !(((long) (sizeof (long double))) <= $ac_mid)];
5713 test_array [0] = 0
5714
5715   ;
5716   return 0;
5717 }
5718 _ACEOF
5719 rm -f conftest.$ac_objext
5720 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5721   (eval $ac_compile) 2>&5
5722   ac_status=$?
5723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5724   (exit $ac_status); } &&
5725          { ac_try='test -s conftest.$ac_objext'
5726   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5727   (eval $ac_try) 2>&5
5728   ac_status=$?
5729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5730   (exit $ac_status); }; }; then
5731   ac_hi=$ac_mid; break
5732 else
5733   echo "$as_me: failed program was:" >&5
5734 cat conftest.$ac_ext >&5
5735 ac_lo=`expr $ac_mid + 1`
5736                     if test $ac_lo -le $ac_mid; then
5737                       ac_lo= ac_hi=
5738                       break
5739                     fi
5740                     ac_mid=`expr 2 '*' $ac_mid + 1`
5741 fi
5742 rm -f conftest.$ac_objext conftest.$ac_ext
5743   done
5744 else
5745   echo "$as_me: failed program was:" >&5
5746 cat conftest.$ac_ext >&5
5747 cat >conftest.$ac_ext <<_ACEOF
5748 #line $LINENO "configure"
5749 #include "confdefs.h"
5750 $ac_includes_default
5751 #ifdef F77_DUMMY_MAIN
5752 #  ifdef __cplusplus
5753      extern "C"
5754 #  endif
5755    int F77_DUMMY_MAIN() { return 1; }
5756 #endif
5757 int
5758 main ()
5759 {
5760 static int test_array [1 - 2 * !(((long) (sizeof (long double))) < 0)];
5761 test_array [0] = 0
5762
5763   ;
5764   return 0;
5765 }
5766 _ACEOF
5767 rm -f conftest.$ac_objext
5768 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5769   (eval $ac_compile) 2>&5
5770   ac_status=$?
5771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5772   (exit $ac_status); } &&
5773          { ac_try='test -s conftest.$ac_objext'
5774   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5775   (eval $ac_try) 2>&5
5776   ac_status=$?
5777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5778   (exit $ac_status); }; }; then
5779   ac_hi=-1 ac_mid=-1
5780   while :; do
5781     cat >conftest.$ac_ext <<_ACEOF
5782 #line $LINENO "configure"
5783 #include "confdefs.h"
5784 $ac_includes_default
5785 #ifdef F77_DUMMY_MAIN
5786 #  ifdef __cplusplus
5787      extern "C"
5788 #  endif
5789    int F77_DUMMY_MAIN() { return 1; }
5790 #endif
5791 int
5792 main ()
5793 {
5794 static int test_array [1 - 2 * !(((long) (sizeof (long double))) >= $ac_mid)];
5795 test_array [0] = 0
5796
5797   ;
5798   return 0;
5799 }
5800 _ACEOF
5801 rm -f conftest.$ac_objext
5802 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5803   (eval $ac_compile) 2>&5
5804   ac_status=$?
5805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5806   (exit $ac_status); } &&
5807          { ac_try='test -s conftest.$ac_objext'
5808   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5809   (eval $ac_try) 2>&5
5810   ac_status=$?
5811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5812   (exit $ac_status); }; }; then
5813   ac_lo=$ac_mid; break
5814 else
5815   echo "$as_me: failed program was:" >&5
5816 cat conftest.$ac_ext >&5
5817 ac_hi=`expr '(' $ac_mid ')' - 1`
5818                        if test $ac_mid -le $ac_hi; then
5819                          ac_lo= ac_hi=
5820                          break
5821                        fi
5822                        ac_mid=`expr 2 '*' $ac_mid`
5823 fi
5824 rm -f conftest.$ac_objext conftest.$ac_ext
5825   done
5826 else
5827   echo "$as_me: failed program was:" >&5
5828 cat conftest.$ac_ext >&5
5829 ac_lo= ac_hi=
5830 fi
5831 rm -f conftest.$ac_objext conftest.$ac_ext
5832 fi
5833 rm -f conftest.$ac_objext conftest.$ac_ext
5834 # Binary search between lo and hi bounds.
5835 while test "x$ac_lo" != "x$ac_hi"; do
5836   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5837   cat >conftest.$ac_ext <<_ACEOF
5838 #line $LINENO "configure"
5839 #include "confdefs.h"
5840 $ac_includes_default
5841 #ifdef F77_DUMMY_MAIN
5842 #  ifdef __cplusplus
5843      extern "C"
5844 #  endif
5845    int F77_DUMMY_MAIN() { return 1; }
5846 #endif
5847 int
5848 main ()
5849 {
5850 static int test_array [1 - 2 * !(((long) (sizeof (long double))) <= $ac_mid)];
5851 test_array [0] = 0
5852
5853   ;
5854   return 0;
5855 }
5856 _ACEOF
5857 rm -f conftest.$ac_objext
5858 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5859   (eval $ac_compile) 2>&5
5860   ac_status=$?
5861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5862   (exit $ac_status); } &&
5863          { ac_try='test -s conftest.$ac_objext'
5864   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5865   (eval $ac_try) 2>&5
5866   ac_status=$?
5867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5868   (exit $ac_status); }; }; then
5869   ac_hi=$ac_mid
5870 else
5871   echo "$as_me: failed program was:" >&5
5872 cat conftest.$ac_ext >&5
5873 ac_lo=`expr '(' $ac_mid ')' + 1`
5874 fi
5875 rm -f conftest.$ac_objext conftest.$ac_ext
5876 done
5877 case $ac_lo in
5878 ?*) ac_cv_sizeof_long_double=$ac_lo;;
5879 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long double), 77" >&5
5880 echo "$as_me: error: cannot compute sizeof (long double), 77" >&2;}
5881    { (exit 1); exit 1; }; } ;;
5882 esac
5883 else
5884   if test "$cross_compiling" = yes; then
5885   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
5886 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
5887    { (exit 1); exit 1; }; }
5888 else
5889   cat >conftest.$ac_ext <<_ACEOF
5890 #line $LINENO "configure"
5891 #include "confdefs.h"
5892 $ac_includes_default
5893 long longval () { return (long) (sizeof (long double)); }
5894 unsigned long ulongval () { return (long) (sizeof (long double)); }
5895 #include <stdio.h>
5896 #include <stdlib.h>
5897 #ifdef F77_DUMMY_MAIN
5898 #  ifdef __cplusplus
5899      extern "C"
5900 #  endif
5901    int F77_DUMMY_MAIN() { return 1; }
5902 #endif
5903 int
5904 main ()
5905 {
5906
5907   FILE *f = fopen ("conftest.val", "w");
5908   if (! f)
5909     exit (1);
5910   if (((long) (sizeof (long double))) < 0)
5911     {
5912       long i = longval ();
5913       if (i != ((long) (sizeof (long double))))
5914         exit (1);
5915       fprintf (f, "%ld\n", i);
5916     }
5917   else
5918     {
5919       unsigned long i = ulongval ();
5920       if (i != ((long) (sizeof (long double))))
5921         exit (1);
5922       fprintf (f, "%lu\n", i);
5923     }
5924   exit (ferror (f) || fclose (f) != 0);
5925
5926   ;
5927   return 0;
5928 }
5929 _ACEOF
5930 rm -f conftest$ac_exeext
5931 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5932   (eval $ac_link) 2>&5
5933   ac_status=$?
5934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5935   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5936   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5937   (eval $ac_try) 2>&5
5938   ac_status=$?
5939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5940   (exit $ac_status); }; }; then
5941   ac_cv_sizeof_long_double=`cat conftest.val`
5942 else
5943   echo "$as_me: program exited with status $ac_status" >&5
5944 echo "$as_me: failed program was:" >&5
5945 cat conftest.$ac_ext >&5
5946 ( exit $ac_status )
5947 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long double), 77" >&5
5948 echo "$as_me: error: cannot compute sizeof (long double), 77" >&2;}
5949    { (exit 1); exit 1; }; }
5950 fi
5951 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5952 fi
5953 fi
5954 rm -f conftest.val
5955 else
5956   ac_cv_sizeof_long_double=0
5957 fi
5958 fi
5959 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_double" >&5
5960 echo "${ECHO_T}$ac_cv_sizeof_long_double" >&6
5961 cat >>confdefs.h <<_ACEOF
5962 #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
5963 _ACEOF
5964
5965
5966 sizeof_long_double=$ac_cv_sizeof_long_double
5967
5968
5969 ### End of automated tests.
5970 ### Now run sysdeps configure fragments.
5971
5972 # sysdeps configure fragments may set these with files to be linked below.
5973 libc_link_dests=
5974 libc_link_sources=
5975
5976 # They also can set these variables.
5977 use_ldconfig=no
5978 ldd_rewrite_script=no
5979 libc_cv_sysconfdir=$sysconfdir
5980 libc_cv_gcc_unwind_find_fde=no
5981
5982 # Iterate over all the sysdep directories we will use, running their
5983 # configure fragments, and looking for a uname implementation.
5984 uname=
5985 for dir in $sysnames; do
5986   case $dir in
5987     /*) dest=$dir ;;
5988     *)  dest=$srcdir/$dir ;;
5989   esac
5990   if test -r $dest/configure; then
5991     echo "$as_me:$LINENO: result: running configure fragment for $dest" >&5
5992 echo "${ECHO_T}running configure fragment for $dest" >&6
5993     . $dest/configure
5994   fi
5995
5996   if test -z "$uname"; then
5997     if test -r $dest/uname.c ||
5998        test -r $dest/uname.S ||
5999        { test -r $dest/syscalls.list &&
6000          grep '^uname[  ]' $dest/syscalls.list >/dev/null; }; then
6001       uname=$dir
6002     fi
6003   fi
6004 done
6005
6006 if test x$libc_cv_gcc_unwind_find_fde = xyes; then
6007   cat >>confdefs.h <<\_ACEOF
6008 #define EXPORT_UNWIND_FIND_FDE 1
6009 _ACEOF
6010
6011 fi
6012
6013
6014 ac_sources="`echo $libc_link_sources`"
6015 ac_dests="`echo $libc_link_dests`"
6016 while test -n "$ac_sources"; do
6017   set $ac_dests; ac_dest=$1; shift; ac_dests=$*
6018   set $ac_sources; ac_source=$1; shift; ac_sources=$*
6019   ac_config_links_1="$ac_config_links_1 $ac_dest:$ac_source"
6020 done
6021 ac_config_links="$ac_config_links $ac_config_links_1"
6022
6023
6024 # If we will use the generic uname implementation, we must figure out what
6025 # it will say by examining the system, and write the results in config-name.h.
6026 if test "$uname" = "sysdeps/generic"; then
6027
6028   uname_sysname=`echo $config_os | sed 's/[0-9.]*$//'`
6029   if test $uname_sysname != $config_os; then
6030     config_release=`echo $config_os | sed s/$uname_sysname//`
6031   fi
6032
6033   echo "$as_me:$LINENO: checking OS release for uname" >&5
6034 echo $ECHO_N "checking OS release for uname... $ECHO_C" >&6
6035 if test "${libc_cv_uname_release+set}" = set; then
6036   echo $ECHO_N "(cached) $ECHO_C" >&6
6037 else
6038       if test -r /vmunix; then
6039       kernel_id=`strings /vmunix | grep UNIX`
6040     elif test -r /dynix; then
6041       kernel_id=`strings /dynix | grep DYNIX`
6042     else
6043       kernel_id=
6044     fi
6045
6046   kernel_release=`echo "$kernel_id" | sed 's/^[^0-9.]*\([0-9.]*\).*$/\1/'`
6047   if test x`echo "$config_release" | sed "s/^$kernel_release//"` \
6048          != x$config_release; then
6049     # The configuration release is a substring of the kernel release.
6050     libc_cv_uname_release=$kernel_release
6051   elif test x$config_release != x; then
6052     libc_cv_uname_release=$config_release
6053   elif test x$kernel_release != x; then
6054     libc_cv_uname_release=$kernel_release
6055   else
6056     libc_cv_uname_release=unknown
6057   fi
6058 fi
6059 echo "$as_me:$LINENO: result: $libc_cv_uname_release" >&5
6060 echo "${ECHO_T}$libc_cv_uname_release" >&6
6061   uname_release="$libc_cv_uname_release"
6062
6063   echo "$as_me:$LINENO: checking OS version for uname" >&5
6064 echo $ECHO_N "checking OS version for uname... $ECHO_C" >&6
6065 if test "${libc_cv_uname_version+set}" = set; then
6066   echo $ECHO_N "(cached) $ECHO_C" >&6
6067 else
6068       if test -r /vmunix; then
6069       kernel_id=`strings /vmunix | grep UNIX`
6070     elif test -r /dynix; then
6071       kernel_id=`strings /dynix | grep DYNIX`
6072     else
6073       kernel_id=
6074     fi
6075
6076   kernel_version=`echo "$kernel_id" | sed 's/^[^#]*#\([0-9]*\).*$/\1/'`
6077   if test -n "$kernel_version"; then
6078     libc_cv_uname_version="$kernel_version"
6079   else
6080     libc_cv_uname_version=unknown
6081   fi
6082 fi
6083 echo "$as_me:$LINENO: result: $libc_cv_uname_version" >&5
6084 echo "${ECHO_T}$libc_cv_uname_version" >&6
6085   uname_version="$libc_cv_uname_version"
6086
6087     config_uname=config-name.h:config-name.in
6088 else
6089   # For non-generic uname, we don't need to create config-name.h at all.
6090   config_uname=
6091 fi
6092
6093 cat >>confdefs.h <<\_ACEOF
6094 #define USE_IN_LIBIO 1
6095 _ACEOF
6096
6097
6098 # Test for old glibc 2.0.x headers so that they can be removed properly
6099 # Search only in includedir.
6100 echo "$as_me:$LINENO: checking for old glibc 2.0.x headers" >&5
6101 echo $ECHO_N "checking for old glibc 2.0.x headers... $ECHO_C" >&6
6102 if eval test -f "${includedir}/elfclass.h" -a -f "${includedir}/fcntlbits.h"
6103 then
6104   old_glibc_headers=yes
6105 else
6106   old_glibc_headers=no
6107 fi
6108 echo "$as_me:$LINENO: result: $old_glibc_headers" >&5
6109 echo "${ECHO_T}$old_glibc_headers" >&6
6110 if test ${old_glibc_headers} = yes; then
6111   { echo "$as_me:$LINENO: WARNING: *** During \"make install\" old headers from glibc 2.0.x will" >&5
6112 echo "$as_me: WARNING: *** During \"make install\" old headers from glibc 2.0.x will" >&2;}
6113   { echo "$as_me:$LINENO: WARNING: *** be removed." >&5
6114 echo "$as_me: WARNING: *** be removed." >&2;}
6115 fi
6116
6117
6118
6119
6120
6121
6122
6123
6124
6125
6126
6127 if test $gnu_ld = yes; then
6128   cat >>confdefs.h <<\_ACEOF
6129 #define HAVE_GNU_LD 1
6130 _ACEOF
6131
6132 fi
6133 if test $gnu_as = yes; then
6134   cat >>confdefs.h <<\_ACEOF
6135 #define HAVE_GNU_AS 1
6136 _ACEOF
6137
6138 fi
6139 if test $elf = yes; then
6140   cat >>confdefs.h <<\_ACEOF
6141 #define HAVE_ELF 1
6142 _ACEOF
6143
6144 fi
6145 if test $xcoff = yes; then
6146   cat >>confdefs.h <<\_ACEOF
6147 #define HAVE_XCOFF 1
6148 _ACEOF
6149
6150 fi
6151
6152
6153
6154 if test $shared = default; then
6155   if test $gnu_ld = yes; then
6156     shared=$elf
6157   else
6158     # For now we do not assume shared libs are available.  In future more
6159     # tests might become available.
6160     shared=no
6161   fi
6162 fi
6163
6164 echo "$as_me:$LINENO: checking whether -fPIC is default" >&5
6165 echo $ECHO_N "checking whether -fPIC is default... $ECHO_C" >&6
6166 if test "${pic_default+set}" = set; then
6167   echo $ECHO_N "(cached) $ECHO_C" >&6
6168 else
6169   pic_default=yes
6170 cat > conftest.c <<EOF
6171 #if defined __PIC__ || defined __pic__ || defined PIC || defined pic
6172 # error PIC is default.
6173 #endif
6174 EOF
6175 if eval "${CC-cc} -S conftest.c 2>&5 1>&5"; then
6176   pic_default=no
6177 fi
6178 rm -f conftest.*
6179 fi
6180 echo "$as_me:$LINENO: result: $pic_default" >&5
6181 echo "${ECHO_T}$pic_default" >&6
6182
6183
6184
6185
6186
6187
6188
6189
6190
6191
6192 case "$add_ons" in
6193   *door*) linux_doors=yes ;;
6194   *) linux_doors=no ;;
6195 esac
6196
6197
6198
6199
6200 if test "`(cd $srcdir; pwd)`" = "`pwd`"; then
6201   config_makefile=
6202 else
6203   config_makefile=Makefile
6204 fi
6205
6206 VERSION=`sed -n -e 's/^#define VERSION "\([^"]*\)"/\1/p' < $srcdir/version.h`
6207 RELEASE=`sed -n -e 's/^#define RELEASE "\([^"]*\)"/\1/p' < $srcdir/version.h`
6208
6209
6210
6211 ac_config_files="$ac_config_files config.make glibcbug ${config_makefile} ${config_uname}"
6212 ac_config_commands="$ac_config_commands default"
6213 cat >confcache <<\_ACEOF
6214 # This file is a shell script that caches the results of configure
6215 # tests run on this system so they can be shared between configure
6216 # scripts and configure runs, see configure's option --config-cache.
6217 # It is not useful on other systems.  If it contains results you don't
6218 # want to keep, you may remove or edit it.
6219 #
6220 # config.status only pays attention to the cache file if you give it
6221 # the --recheck option to rerun configure.
6222 #
6223 # `ac_cv_env_foo' variables (set or unset) will be overriden when
6224 # loading this file, other *unset* `ac_cv_foo' will be assigned the
6225 # following values.
6226
6227 _ACEOF
6228
6229 # The following way of writing the cache mishandles newlines in values,
6230 # but we know of no workaround that is simple, portable, and efficient.
6231 # So, don't put newlines in cache variables' values.
6232 # Ultrix sh set writes to stderr and can't be redirected directly,
6233 # and sets the high bit in the cache file unless we assign to the vars.
6234 {
6235   (set) 2>&1 |
6236     case `(ac_space=' '; set | grep ac_space) 2>&1` in
6237     *ac_space=\ *)
6238       # `set' does not quote correctly, so add quotes (double-quote
6239       # substitution turns \\\\ into \\, and sed turns \\ into \).
6240       sed -n \
6241         "s/'/'\\\\''/g;
6242           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6243       ;;
6244     *)
6245       # `set' quotes correctly as required by POSIX, so do not add quotes.
6246       sed -n \
6247         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
6248       ;;
6249     esac;
6250 } |
6251   sed '
6252      t clear
6253      : clear
6254      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6255      t end
6256      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6257      : end' >>confcache
6258 if cmp -s $cache_file confcache; then :; else
6259   if test -w $cache_file; then
6260     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
6261     cat confcache >$cache_file
6262   else
6263     echo "not updating unwritable cache $cache_file"
6264   fi
6265 fi
6266 rm -f confcache
6267
6268 test "x$prefix" = xNONE && prefix=$ac_default_prefix
6269 # Let make expand exec_prefix.
6270 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6271
6272 # VPATH may cause trouble with some makes, so we remove $(srcdir),
6273 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
6274 # trailing colons and then remove the whole line if VPATH becomes empty
6275 # (actually we leave an empty line to preserve line numbers).
6276 if test "x$srcdir" = x.; then
6277   ac_vpsub='/^[         ]*VPATH[        ]*=/{
6278 s/:*\$(srcdir):*/:/;
6279 s/:*\${srcdir}:*/:/;
6280 s/:*@srcdir@:*/:/;
6281 s/^\([^=]*=[    ]*\):*/\1/;
6282 s/:*$//;
6283 s/^[^=]*=[      ]*$//;
6284 }'
6285 fi
6286
6287 DEFS=-DHAVE_CONFIG_H
6288
6289
6290 : ${CONFIG_STATUS=./config.status}
6291 ac_clean_files_save=$ac_clean_files
6292 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
6293 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
6294 echo "$as_me: creating $CONFIG_STATUS" >&6;}
6295 cat >$CONFIG_STATUS <<_ACEOF
6296 #! $SHELL
6297 # Generated by $as_me.
6298 # Run this file to recreate the current configuration.
6299 # Compiler output produced by configure, useful for debugging
6300 # configure, is in config.log if it exists.
6301
6302 debug=false
6303 SHELL=\${CONFIG_SHELL-$SHELL}
6304 _ACEOF
6305
6306 cat >>$CONFIG_STATUS <<\_ACEOF
6307
6308 ## --------------------- ##
6309 ## M4sh Initialization.  ##
6310 ## --------------------- ##
6311
6312 # Be Bourne compatible
6313 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
6314   emulate sh
6315   NULLCMD=:
6316 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
6317   set -o posix
6318 fi
6319
6320 # NLS nuisances.
6321 # Support unset when possible.
6322 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
6323   as_unset=unset
6324 else
6325   as_unset=false
6326 fi
6327
6328 (set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
6329     { $as_unset LANG || test "${LANG+set}" != set; } ||
6330       { LANG=C; export LANG; }
6331 (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
6332     { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
6333       { LC_ALL=C; export LC_ALL; }
6334 (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
6335     { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
6336       { LC_TIME=C; export LC_TIME; }
6337 (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
6338     { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
6339       { LC_CTYPE=C; export LC_CTYPE; }
6340 (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
6341     { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
6342       { LANGUAGE=C; export LANGUAGE; }
6343 (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
6344     { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
6345       { LC_COLLATE=C; export LC_COLLATE; }
6346 (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
6347     { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
6348       { LC_NUMERIC=C; export LC_NUMERIC; }
6349 (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
6350     { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
6351       { LC_MESSAGES=C; export LC_MESSAGES; }
6352
6353
6354 # Name of the executable.
6355 as_me=`(basename "$0") 2>/dev/null ||
6356 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
6357          X"$0" : 'X\(//\)$' \| \
6358          X"$0" : 'X\(/\)$' \| \
6359          .     : '\(.\)' 2>/dev/null ||
6360 echo X/"$0" |
6361     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
6362           /^X\/\(\/\/\)$/{ s//\1/; q; }
6363           /^X\/\(\/\).*/{ s//\1/; q; }
6364           s/.*/./; q'`
6365
6366 # PATH needs CR, and LINENO needs CR and PATH.
6367 # Avoid depending upon Character Ranges.
6368 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
6369 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
6370 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
6371 as_cr_digits='0123456789'
6372 as_cr_alnum=$as_cr_Letters$as_cr_digits
6373
6374 # The user is always right.
6375 if test "${PATH_SEPARATOR+set}" != set; then
6376   echo "#! /bin/sh" >conftest.sh
6377   echo  "exit 0"   >>conftest.sh
6378   chmod +x conftest.sh
6379   if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
6380     PATH_SEPARATOR=';'
6381   else
6382     PATH_SEPARATOR=:
6383   fi
6384   rm -f conftest.sh
6385 fi
6386
6387
6388   as_lineno_1=$LINENO
6389   as_lineno_2=$LINENO
6390   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
6391   test "x$as_lineno_1" != "x$as_lineno_2" &&
6392   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
6393   # Find who we are.  Look in the path if we contain no path at all
6394   # relative or not.
6395   case $0 in
6396     *[\\/]* ) as_myself=$0 ;;
6397     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6398 for as_dir in $PATH
6399 do
6400   IFS=$as_save_IFS
6401   test -z "$as_dir" && as_dir=.
6402   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
6403 done
6404
6405        ;;
6406   esac
6407   # We did not find ourselves, most probably we were run as `sh COMMAND'
6408   # in which case we are not to be found in the path.
6409   if test "x$as_myself" = x; then
6410     as_myself=$0
6411   fi
6412   if test ! -f "$as_myself"; then
6413     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
6414 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
6415    { (exit 1); exit 1; }; }
6416   fi
6417   case $CONFIG_SHELL in
6418   '')
6419     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6420 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
6421 do
6422   IFS=$as_save_IFS
6423   test -z "$as_dir" && as_dir=.
6424   for as_base in sh bash ksh sh5; do
6425          case $as_dir in
6426          /*)
6427            if ("$as_dir/$as_base" -c '
6428   as_lineno_1=$LINENO
6429   as_lineno_2=$LINENO
6430   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
6431   test "x$as_lineno_1" != "x$as_lineno_2" &&
6432   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
6433              CONFIG_SHELL=$as_dir/$as_base
6434              export CONFIG_SHELL
6435              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
6436            fi;;
6437          esac
6438        done
6439 done
6440 ;;
6441   esac
6442
6443   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
6444   # uniformly replaced by the line number.  The first 'sed' inserts a
6445   # line-number line before each line; the second 'sed' does the real
6446   # work.  The second script uses 'N' to pair each line-number line
6447   # with the numbered line, and appends trailing '-' during
6448   # substitution so that $LINENO is not a special case at line end.
6449   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
6450   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
6451   sed '=' <$as_myself |
6452     sed '
6453       N
6454       s,$,-,
6455       : loop
6456       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
6457       t loop
6458       s,-$,,
6459       s,^['$as_cr_digits']*\n,,
6460     ' >$as_me.lineno &&
6461   chmod +x $as_me.lineno ||
6462     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
6463 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
6464    { (exit 1); exit 1; }; }
6465
6466   # Don't try to exec as it changes $[0], causing all sort of problems
6467   # (the dirname of $[0] is not the place where we might find the
6468   # original and so on.  Autoconf is especially sensible to this).
6469   . ./$as_me.lineno
6470   # Exit status is that of the last command.
6471   exit
6472 }
6473
6474
6475 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
6476   *c*,-n*) ECHO_N= ECHO_C='
6477 ' ECHO_T='      ' ;;
6478   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
6479   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
6480 esac
6481
6482 if expr a : '\(a\)' >/dev/null 2>&1; then
6483   as_expr=expr
6484 else
6485   as_expr=false
6486 fi
6487
6488 rm -f conf$$ conf$$.exe conf$$.file
6489 echo >conf$$.file
6490 if ln -s conf$$.file conf$$ 2>/dev/null; then
6491   # We could just check for DJGPP; but this test a) works b) is more generic
6492   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
6493   if test -f conf$$.exe; then
6494     # Don't use ln at all; we don't have any links
6495     as_ln_s='cp -p'
6496   else
6497     as_ln_s='ln -s'
6498   fi
6499 elif ln conf$$.file conf$$ 2>/dev/null; then
6500   as_ln_s=ln
6501 else
6502   as_ln_s='cp -p'
6503 fi
6504 rm -f conf$$ conf$$.exe conf$$.file
6505
6506 as_executable_p="test -f"
6507
6508 # Sed expression to map a string onto a valid CPP name.
6509 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
6510
6511 # Sed expression to map a string onto a valid variable name.
6512 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
6513
6514
6515 # IFS
6516 # We need space, tab and new line, in precisely that order.
6517 as_nl='
6518 '
6519 IFS="   $as_nl"
6520
6521 # CDPATH.
6522 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
6523
6524 exec 6>&1
6525
6526 # Open the log real soon, to keep \$[0] and so on meaningful, and to
6527 # report actual input values of CONFIG_FILES etc. instead of their
6528 # values after options handling.  Logging --version etc. is OK.
6529 exec 5>>config.log
6530 {
6531   echo
6532   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
6533 ## Running $as_me. ##
6534 _ASBOX
6535 } >&5
6536 cat >&5 <<_CSEOF
6537
6538 This file was extended by $as_me, which was
6539 generated by GNU Autoconf 2.53.  Invocation command line was
6540
6541   CONFIG_FILES    = $CONFIG_FILES
6542   CONFIG_HEADERS  = $CONFIG_HEADERS
6543   CONFIG_LINKS    = $CONFIG_LINKS
6544   CONFIG_COMMANDS = $CONFIG_COMMANDS
6545   $ $0 $@
6546
6547 _CSEOF
6548 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
6549 echo >&5
6550 _ACEOF
6551
6552 # Files that config.status was made for.
6553 if test -n "$ac_config_files"; then
6554   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
6555 fi
6556
6557 if test -n "$ac_config_headers"; then
6558   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
6559 fi
6560
6561 if test -n "$ac_config_links"; then
6562   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
6563 fi
6564
6565 if test -n "$ac_config_commands"; then
6566   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
6567 fi
6568
6569 cat >>$CONFIG_STATUS <<\_ACEOF
6570
6571 ac_cs_usage="\
6572 \`$as_me' instantiates files from templates according to the
6573 current configuration.
6574
6575 Usage: $0 [OPTIONS] [FILE]...
6576
6577   -h, --help       print this help, then exit
6578   -V, --version    print version number, then exit
6579   -d, --debug      don't remove temporary files
6580       --recheck    update $as_me by reconfiguring in the same conditions
6581   --file=FILE[:TEMPLATE]
6582                    instantiate the configuration file FILE
6583   --header=FILE[:TEMPLATE]
6584                    instantiate the configuration header FILE
6585
6586 Configuration files:
6587 $config_files
6588
6589 Configuration headers:
6590 $config_headers
6591
6592 Configuration links:
6593 $config_links
6594
6595 Configuration commands:
6596 $config_commands
6597
6598 Report bugs to <bug-autoconf@gnu.org>."
6599 _ACEOF
6600
6601 cat >>$CONFIG_STATUS <<_ACEOF
6602 ac_cs_version="\\
6603 config.status
6604 configured by $0, generated by GNU Autoconf 2.53,
6605   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
6606
6607 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
6608 Free Software Foundation, Inc.
6609 This config.status script is free software; the Free Software Foundation
6610 gives unlimited permission to copy, distribute and modify it."
6611 srcdir=$srcdir
6612 INSTALL="$INSTALL"
6613 _ACEOF
6614
6615 cat >>$CONFIG_STATUS <<\_ACEOF
6616 # If no file are specified by the user, then we need to provide default
6617 # value.  By we need to know if files were specified by the user.
6618 ac_need_defaults=:
6619 while test $# != 0
6620 do
6621   case $1 in
6622   --*=*)
6623     ac_option=`expr "x$1" : 'x\([^=]*\)='`
6624     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
6625     shift
6626     set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
6627     shift
6628     ;;
6629   -*);;
6630   *) # This is not an option, so the user has probably given explicit
6631      # arguments.
6632      ac_need_defaults=false;;
6633   esac
6634
6635   case $1 in
6636   # Handling of the options.
6637 _ACEOF
6638 cat >>$CONFIG_STATUS <<_ACEOF
6639   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6640     echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
6641     exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
6642 _ACEOF
6643 cat >>$CONFIG_STATUS <<\_ACEOF
6644   --version | --vers* | -V )
6645     echo "$ac_cs_version"; exit 0 ;;
6646   --he | --h)
6647     # Conflict between --help and --header
6648     { { echo "$as_me:$LINENO: error: ambiguous option: $1
6649 Try \`$0 --help' for more information." >&5
6650 echo "$as_me: error: ambiguous option: $1
6651 Try \`$0 --help' for more information." >&2;}
6652    { (exit 1); exit 1; }; };;
6653   --help | --hel | -h )
6654     echo "$ac_cs_usage"; exit 0 ;;
6655   --debug | --d* | -d )
6656     debug=: ;;
6657   --file | --fil | --fi | --f )
6658     shift
6659     CONFIG_FILES="$CONFIG_FILES $1"
6660     ac_need_defaults=false;;
6661   --header | --heade | --head | --hea )
6662     shift
6663     CONFIG_HEADERS="$CONFIG_HEADERS $1"
6664     ac_need_defaults=false;;
6665
6666   # This is an error.
6667   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
6668 Try \`$0 --help' for more information." >&5
6669 echo "$as_me: error: unrecognized option: $1
6670 Try \`$0 --help' for more information." >&2;}
6671    { (exit 1); exit 1; }; } ;;
6672
6673   *) ac_config_targets="$ac_config_targets $1" ;;
6674
6675   esac
6676   shift
6677 done
6678
6679 _ACEOF
6680
6681 cat >>$CONFIG_STATUS <<_ACEOF
6682 #
6683 # INIT-COMMANDS section.
6684 #
6685
6686 config_vars='$config_vars'
6687
6688 _ACEOF
6689
6690
6691
6692 cat >>$CONFIG_STATUS <<\_ACEOF
6693 for ac_config_target in $ac_config_targets
6694 do
6695   case "$ac_config_target" in
6696   # Handling of arguments.
6697   "config.make" ) CONFIG_FILES="$CONFIG_FILES config.make" ;;
6698   "glibcbug" ) CONFIG_FILES="$CONFIG_FILES glibcbug" ;;
6699   "${config_makefile}" ) CONFIG_FILES="$CONFIG_FILES ${config_makefile}" ;;
6700   "${config_uname}" ) CONFIG_FILES="$CONFIG_FILES ${config_uname}" ;;
6701   "$ac_config_links_1" ) CONFIG_LINKS="$CONFIG_LINKS $ac_config_links_1" ;;
6702   "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
6703   "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
6704   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
6705 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
6706    { (exit 1); exit 1; }; };;
6707   esac
6708 done
6709
6710 # If the user did not use the arguments to specify the items to instantiate,
6711 # then the envvar interface is used.  Set only those that are not.
6712 # We use the long form for the default assignment because of an extremely
6713 # bizarre bug on SunOS 4.1.3.
6714 if $ac_need_defaults; then
6715   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
6716   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
6717   test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
6718   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
6719 fi
6720
6721 # Create a temporary directory, and hook for its removal unless debugging.
6722 $debug ||
6723 {
6724   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
6725   trap '{ (exit 1); exit 1; }' 1 2 13 15
6726 }
6727
6728 # Create a (secure) tmp directory for tmp files.
6729 : ${TMPDIR=/tmp}
6730 {
6731   tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
6732   test -n "$tmp" && test -d "$tmp"
6733 }  ||
6734 {
6735   tmp=$TMPDIR/cs$$-$RANDOM
6736   (umask 077 && mkdir $tmp)
6737 } ||
6738 {
6739    echo "$me: cannot create a temporary directory in $TMPDIR" >&2
6740    { (exit 1); exit 1; }
6741 }
6742
6743 _ACEOF
6744
6745 cat >>$CONFIG_STATUS <<_ACEOF
6746
6747 #
6748 # CONFIG_FILES section.
6749 #
6750
6751 # No need to generate the scripts if there are no CONFIG_FILES.
6752 # This happens for instance when ./config.status config.h
6753 if test -n "\$CONFIG_FILES"; then
6754   # Protect against being on the right side of a sed subst in config.status.
6755   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
6756    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
6757 s,@SHELL@,$SHELL,;t t
6758 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
6759 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
6760 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
6761 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
6762 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
6763 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
6764 s,@exec_prefix@,$exec_prefix,;t t
6765 s,@prefix@,$prefix,;t t
6766 s,@program_transform_name@,$program_transform_name,;t t
6767 s,@bindir@,$bindir,;t t
6768 s,@sbindir@,$sbindir,;t t
6769 s,@libexecdir@,$libexecdir,;t t
6770 s,@datadir@,$datadir,;t t
6771 s,@sysconfdir@,$sysconfdir,;t t
6772 s,@sharedstatedir@,$sharedstatedir,;t t
6773 s,@localstatedir@,$localstatedir,;t t
6774 s,@libdir@,$libdir,;t t
6775 s,@includedir@,$includedir,;t t
6776 s,@oldincludedir@,$oldincludedir,;t t
6777 s,@infodir@,$infodir,;t t
6778 s,@mandir@,$mandir,;t t
6779 s,@build_alias@,$build_alias,;t t
6780 s,@host_alias@,$host_alias,;t t
6781 s,@target_alias@,$target_alias,;t t
6782 s,@DEFS@,$DEFS,;t t
6783 s,@ECHO_C@,$ECHO_C,;t t
6784 s,@ECHO_N@,$ECHO_N,;t t
6785 s,@ECHO_T@,$ECHO_T,;t t
6786 s,@LIBS@,$LIBS,;t t
6787 s,@with_fp@,$with_fp,;t t
6788 s,@with_cvs@,$with_cvs,;t t
6789 s,@oldest_abi@,$oldest_abi,;t t
6790 s,@subdirs@,$subdirs,;t t
6791 s,@force_install@,$force_install,;t t
6792 s,@all_warnings@,$all_warnings,;t t
6793 s,@build@,$build,;t t
6794 s,@build_cpu@,$build_cpu,;t t
6795 s,@build_vendor@,$build_vendor,;t t
6796 s,@build_os@,$build_os,;t t
6797 s,@host@,$host,;t t
6798 s,@host_cpu@,$host_cpu,;t t
6799 s,@host_vendor@,$host_vendor,;t t
6800 s,@host_os@,$host_os,;t t
6801 s,@completely_soft@,$completely_soft,;t t
6802 s,@base_machine@,$base_machine,;t t
6803 s,@sysnames@,$sysnames,;t t
6804 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
6805 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
6806 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
6807 s,@LN_S@,$LN_S,;t t
6808 s,@PWD_P@,$PWD_P,;t t
6809 s,@CC@,$CC,;t t
6810 s,@MAKE@,$MAKE,;t t
6811 s,@MSGFMT@,$MSGFMT,;t t
6812 s,@MAKEINFO@,$MAKEINFO,;t t
6813 s,@SED@,$SED,;t t
6814 s,@AUTOCONF@,$AUTOCONF,;t t
6815 s,@CFLAGS@,$CFLAGS,;t t
6816 s,@LDFLAGS@,$LDFLAGS,;t t
6817 s,@CPPFLAGS@,$CPPFLAGS,;t t
6818 s,@ac_ct_CC@,$ac_ct_CC,;t t
6819 s,@OBJEXT@,$OBJEXT,;t t
6820 s,@BUILD_CC@,$BUILD_CC,;t t
6821 s,@cross_compiling@,$cross_compiling,;t t
6822 s,@CPP@,$CPP,;t t
6823 s,@AR@,$AR,;t t
6824 s,@RANLIB@,$RANLIB,;t t
6825 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
6826 s,@MIG@,$MIG,;t t
6827 s,@CCVERSION@,$CCVERSION,;t t
6828 s,@SYSINCLUDES@,$SYSINCLUDES,;t t
6829 s,@libc_cv_gcc_static_libgcc@,$libc_cv_gcc_static_libgcc,;t t
6830 s,@BASH@,$BASH,;t t
6831 s,@libc_cv_have_bash2@,$libc_cv_have_bash2,;t t
6832 s,@KSH@,$KSH,;t t
6833 s,@libc_cv_have_ksh@,$libc_cv_have_ksh,;t t
6834 s,@AWK@,$AWK,;t t
6835 s,@PERL@,$PERL,;t t
6836 s,@INSTALL_INFO@,$INSTALL_INFO,;t t
6837 s,@OLD_DEBIAN_INSTALL_INFO@,$OLD_DEBIAN_INSTALL_INFO,;t t
6838 s,@BISON@,$BISON,;t t
6839 s,@VERSIONING@,$VERSIONING,;t t
6840 s,@libc_cv_asm_protected_directive@,$libc_cv_asm_protected_directive,;t t
6841 s,@libc_cv_initfinit_array@,$libc_cv_initfinit_array,;t t
6842 s,@libc_cv_z_nodelete@,$libc_cv_z_nodelete,;t t
6843 s,@libc_cv_z_nodlopen@,$libc_cv_z_nodlopen,;t t
6844 s,@libc_cv_z_initfirst@,$libc_cv_z_initfirst,;t t
6845 s,@libc_cv_Bgroup@,$libc_cv_Bgroup,;t t
6846 s,@libc_cv_z_combreloc@,$libc_cv_z_combreloc,;t t
6847 s,@libc_cv_have_initfini@,$libc_cv_have_initfini,;t t
6848 s,@no_whole_archive@,$no_whole_archive,;t t
6849 s,@exceptions@,$exceptions,;t t
6850 s,@LIBGD@,$LIBGD,;t t
6851 s,@sizeof_long_double@,$sizeof_long_double,;t t
6852 s,@libc_cv_gcc_unwind_find_fde@,$libc_cv_gcc_unwind_find_fde,;t t
6853 s,@uname_sysname@,$uname_sysname,;t t
6854 s,@uname_release@,$uname_release,;t t
6855 s,@uname_version@,$uname_version,;t t
6856 s,@old_glibc_headers@,$old_glibc_headers,;t t
6857 s,@libc_cv_slibdir@,$libc_cv_slibdir,;t t
6858 s,@libc_cv_localedir@,$libc_cv_localedir,;t t
6859 s,@libc_cv_sysconfdir@,$libc_cv_sysconfdir,;t t
6860 s,@libc_cv_rootsbindir@,$libc_cv_rootsbindir,;t t
6861 s,@use_ldconfig@,$use_ldconfig,;t t
6862 s,@ldd_rewrite_script@,$ldd_rewrite_script,;t t
6863 s,@gnu_ld@,$gnu_ld,;t t
6864 s,@gnu_as@,$gnu_as,;t t
6865 s,@elf@,$elf,;t t
6866 s,@xcoff@,$xcoff,;t t
6867 s,@static@,$static,;t t
6868 s,@shared@,$shared,;t t
6869 s,@pic_default@,$pic_default,;t t
6870 s,@profile@,$profile,;t t
6871 s,@omitfp@,$omitfp,;t t
6872 s,@bounded@,$bounded,;t t
6873 s,@static_nss@,$static_nss,;t t
6874 s,@nopic_initfini@,$nopic_initfini,;t t
6875 s,@DEFINES@,$DEFINES,;t t
6876 s,@linux_doors@,$linux_doors,;t t
6877 s,@mach_interface_list@,$mach_interface_list,;t t
6878 s,@VERSION@,$VERSION,;t t
6879 s,@RELEASE@,$RELEASE,;t t
6880 CEOF
6881
6882 _ACEOF
6883
6884   cat >>$CONFIG_STATUS <<\_ACEOF
6885   # Split the substitutions into bite-sized pieces for seds with
6886   # small command number limits, like on Digital OSF/1 and HP-UX.
6887   ac_max_sed_lines=48
6888   ac_sed_frag=1 # Number of current file.
6889   ac_beg=1 # First line for current file.
6890   ac_end=$ac_max_sed_lines # Line after last line for current file.
6891   ac_more_lines=:
6892   ac_sed_cmds=
6893   while $ac_more_lines; do
6894     if test $ac_beg -gt 1; then
6895       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
6896     else
6897       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
6898     fi
6899     if test ! -s $tmp/subs.frag; then
6900       ac_more_lines=false
6901     else
6902       # The purpose of the label and of the branching condition is to
6903       # speed up the sed processing (if there are no `@' at all, there
6904       # is no need to browse any of the substitutions).
6905       # These are the two extra sed commands mentioned above.
6906       (echo ':t
6907   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
6908       if test -z "$ac_sed_cmds"; then
6909         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
6910       else
6911         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
6912       fi
6913       ac_sed_frag=`expr $ac_sed_frag + 1`
6914       ac_beg=$ac_end
6915       ac_end=`expr $ac_end + $ac_max_sed_lines`
6916     fi
6917   done
6918   if test -z "$ac_sed_cmds"; then
6919     ac_sed_cmds=cat
6920   fi
6921 fi # test -n "$CONFIG_FILES"
6922
6923 _ACEOF
6924 cat >>$CONFIG_STATUS <<\_ACEOF
6925 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
6926   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6927   case $ac_file in
6928   - | *:- | *:-:* ) # input from stdin
6929         cat >$tmp/stdin
6930         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6931         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6932   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6933         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6934   * )   ac_file_in=$ac_file.in ;;
6935   esac
6936
6937   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
6938   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
6939 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6940          X"$ac_file" : 'X\(//\)[^/]' \| \
6941          X"$ac_file" : 'X\(//\)$' \| \
6942          X"$ac_file" : 'X\(/\)' \| \
6943          .     : '\(.\)' 2>/dev/null ||
6944 echo X"$ac_file" |
6945     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6946           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6947           /^X\(\/\/\)$/{ s//\1/; q; }
6948           /^X\(\/\).*/{ s//\1/; q; }
6949           s/.*/./; q'`
6950   { case "$ac_dir" in
6951   [\\/]* | ?:[\\/]* ) as_incr_dir=;;
6952   *)                      as_incr_dir=.;;
6953 esac
6954 as_dummy="$ac_dir"
6955 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
6956   case $as_mkdir_dir in
6957     # Skip DOS drivespec
6958     ?:) as_incr_dir=$as_mkdir_dir ;;
6959     *)
6960       as_incr_dir=$as_incr_dir/$as_mkdir_dir
6961       test -d "$as_incr_dir" ||
6962         mkdir "$as_incr_dir" ||
6963         { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
6964 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
6965    { (exit 1); exit 1; }; }
6966     ;;
6967   esac
6968 done; }
6969
6970   ac_builddir=.
6971
6972 if test "$ac_dir" != .; then
6973   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
6974   # A "../" for each directory in $ac_dir_suffix.
6975   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
6976 else
6977   ac_dir_suffix= ac_top_builddir=
6978 fi
6979
6980 case $srcdir in
6981   .)  # No --srcdir option.  We are building in place.
6982     ac_srcdir=.
6983     if test -z "$ac_top_builddir"; then
6984        ac_top_srcdir=.
6985     else
6986        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
6987     fi ;;
6988   [\\/]* | ?:[\\/]* )  # Absolute path.
6989     ac_srcdir=$srcdir$ac_dir_suffix;
6990     ac_top_srcdir=$srcdir ;;
6991   *) # Relative path.
6992     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
6993     ac_top_srcdir=$ac_top_builddir$srcdir ;;
6994 esac
6995 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
6996 # absolute.
6997 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
6998 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
6999 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
7000 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
7001
7002
7003   case $INSTALL in
7004   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
7005   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
7006   esac
7007
7008   if test x"$ac_file" != x-; then
7009     { echo "$as_me:$LINENO: creating $ac_file" >&5
7010 echo "$as_me: creating $ac_file" >&6;}
7011     rm -f "$ac_file"
7012   fi
7013   # Let's still pretend it is `configure' which instantiates (i.e., don't
7014   # use $as_me), people would be surprised to read:
7015   #    /* config.h.  Generated by config.status.  */
7016   if test x"$ac_file" = x-; then
7017     configure_input=
7018   else
7019     configure_input="$ac_file.  "
7020   fi
7021   configure_input=$configure_input"Generated from `echo $ac_file_in |
7022                                      sed 's,.*/,,'` by configure."
7023
7024   # First look for the input files in the build tree, otherwise in the
7025   # src tree.
7026   ac_file_inputs=`IFS=:
7027     for f in $ac_file_in; do
7028       case $f in
7029       -) echo $tmp/stdin ;;
7030       [\\/$]*)
7031          # Absolute (can't be DOS-style, as IFS=:)
7032          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7033 echo "$as_me: error: cannot find input file: $f" >&2;}
7034    { (exit 1); exit 1; }; }
7035          echo $f;;
7036       *) # Relative
7037          if test -f "$f"; then
7038            # Build tree
7039            echo $f
7040          elif test -f "$srcdir/$f"; then
7041            # Source tree
7042            echo $srcdir/$f
7043          else
7044            # /dev/null tree
7045            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7046 echo "$as_me: error: cannot find input file: $f" >&2;}
7047    { (exit 1); exit 1; }; }
7048          fi;;
7049       esac
7050     done` || { (exit 1); exit 1; }
7051 _ACEOF
7052 cat >>$CONFIG_STATUS <<_ACEOF
7053   sed "$ac_vpsub
7054 $extrasub
7055 _ACEOF
7056 cat >>$CONFIG_STATUS <<\_ACEOF
7057 :t
7058 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
7059 s,@configure_input@,$configure_input,;t t
7060 s,@srcdir@,$ac_srcdir,;t t
7061 s,@abs_srcdir@,$ac_abs_srcdir,;t t
7062 s,@top_srcdir@,$ac_top_srcdir,;t t
7063 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
7064 s,@builddir@,$ac_builddir,;t t
7065 s,@abs_builddir@,$ac_abs_builddir,;t t
7066 s,@top_builddir@,$ac_top_builddir,;t t
7067 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
7068 s,@INSTALL@,$ac_INSTALL,;t t
7069 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
7070   rm -f $tmp/stdin
7071   if test x"$ac_file" != x-; then
7072     mv $tmp/out $ac_file
7073   else
7074     cat $tmp/out
7075     rm -f $tmp/out
7076   fi
7077
7078 done
7079 _ACEOF
7080 cat >>$CONFIG_STATUS <<\_ACEOF
7081
7082 #
7083 # CONFIG_HEADER section.
7084 #
7085
7086 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
7087 # NAME is the cpp macro being defined and VALUE is the value it is being given.
7088 #
7089 # ac_d sets the value in "#define NAME VALUE" lines.
7090 ac_dA='s,^\([   ]*\)#\([        ]*define[       ][      ]*\)'
7091 ac_dB='[        ].*$,\1#\2'
7092 ac_dC=' '
7093 ac_dD=',;t'
7094 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
7095 ac_uA='s,^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
7096 ac_uB='$,\1#\2define\3'
7097 ac_uC=' '
7098 ac_uD=',;t'
7099
7100 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
7101   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7102   case $ac_file in
7103   - | *:- | *:-:* ) # input from stdin
7104         cat >$tmp/stdin
7105         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7106         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7107   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7108         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7109   * )   ac_file_in=$ac_file.in ;;
7110   esac
7111
7112   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
7113 echo "$as_me: creating $ac_file" >&6;}
7114
7115   # First look for the input files in the build tree, otherwise in the
7116   # src tree.
7117   ac_file_inputs=`IFS=:
7118     for f in $ac_file_in; do
7119       case $f in
7120       -) echo $tmp/stdin ;;
7121       [\\/$]*)
7122          # Absolute (can't be DOS-style, as IFS=:)
7123          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7124 echo "$as_me: error: cannot find input file: $f" >&2;}
7125    { (exit 1); exit 1; }; }
7126          echo $f;;
7127       *) # Relative
7128          if test -f "$f"; then
7129            # Build tree
7130            echo $f
7131          elif test -f "$srcdir/$f"; then
7132            # Source tree
7133            echo $srcdir/$f
7134          else
7135            # /dev/null tree
7136            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7137 echo "$as_me: error: cannot find input file: $f" >&2;}
7138    { (exit 1); exit 1; }; }
7139          fi;;
7140       esac
7141     done` || { (exit 1); exit 1; }
7142   # Remove the trailing spaces.
7143   sed 's/[      ]*$//' $ac_file_inputs >$tmp/in
7144
7145 _ACEOF
7146
7147 # Transform confdefs.h into two sed scripts, `conftest.defines' and
7148 # `conftest.undefs', that substitutes the proper values into
7149 # config.h.in to produce config.h.  The first handles `#define'
7150 # templates, and the second `#undef' templates.
7151 # And first: Protect against being on the right side of a sed subst in
7152 # config.status.  Protect against being in an unquoted here document
7153 # in config.status.
7154 rm -f conftest.defines conftest.undefs
7155 # Using a here document instead of a string reduces the quoting nightmare.
7156 # Putting comments in sed scripts is not portable.
7157 #
7158 # `end' is used to avoid that the second main sed command (meant for
7159 # 0-ary CPP macros) applies to n-ary macro definitions.
7160 # See the Autoconf documentation for `clear'.
7161 cat >confdef2sed.sed <<\_ACEOF
7162 s/[\\&,]/\\&/g
7163 s,[\\$`],\\&,g
7164 t clear
7165 : clear
7166 s,^[    ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
7167 t end
7168 s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
7169 : end
7170 _ACEOF
7171 # If some macros were called several times there might be several times
7172 # the same #defines, which is useless.  Nevertheless, we may not want to
7173 # sort them, since we want the *last* AC-DEFINE to be honored.
7174 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
7175 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
7176 rm -f confdef2sed.sed
7177
7178 # This sed command replaces #undef with comments.  This is necessary, for
7179 # example, in the case of _POSIX_SOURCE, which is predefined and required
7180 # on some systems where configure will not decide to define it.
7181 cat >>conftest.undefs <<\_ACEOF
7182 s,^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
7183 _ACEOF
7184
7185 # Break up conftest.defines because some shells have a limit on the size
7186 # of here documents, and old seds have small limits too (100 cmds).
7187 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
7188 echo '  if egrep "^[    ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
7189 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
7190 echo '  :' >>$CONFIG_STATUS
7191 rm -f conftest.tail
7192 while grep . conftest.defines >/dev/null
7193 do
7194   # Write a limited-size here document to $tmp/defines.sed.
7195   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
7196   # Speed up: don't consider the non `#define' lines.
7197   echo '/^[     ]*#[    ]*define/!b' >>$CONFIG_STATUS
7198   # Work around the forget-to-reset-the-flag bug.
7199   echo 't clr' >>$CONFIG_STATUS
7200   echo ': clr' >>$CONFIG_STATUS
7201   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
7202   echo 'CEOF
7203   sed -f $tmp/defines.sed $tmp/in >$tmp/out
7204   rm -f $tmp/in
7205   mv $tmp/out $tmp/in
7206 ' >>$CONFIG_STATUS
7207   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
7208   rm -f conftest.defines
7209   mv conftest.tail conftest.defines
7210 done
7211 rm -f conftest.defines
7212 echo '  fi # egrep' >>$CONFIG_STATUS
7213 echo >>$CONFIG_STATUS
7214
7215 # Break up conftest.undefs because some shells have a limit on the size
7216 # of here documents, and old seds have small limits too (100 cmds).
7217 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
7218 rm -f conftest.tail
7219 while grep . conftest.undefs >/dev/null
7220 do
7221   # Write a limited-size here document to $tmp/undefs.sed.
7222   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
7223   # Speed up: don't consider the non `#undef'
7224   echo '/^[     ]*#[    ]*undef/!b' >>$CONFIG_STATUS
7225   # Work around the forget-to-reset-the-flag bug.
7226   echo 't clr' >>$CONFIG_STATUS
7227   echo ': clr' >>$CONFIG_STATUS
7228   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
7229   echo 'CEOF
7230   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
7231   rm -f $tmp/in
7232   mv $tmp/out $tmp/in
7233 ' >>$CONFIG_STATUS
7234   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
7235   rm -f conftest.undefs
7236   mv conftest.tail conftest.undefs
7237 done
7238 rm -f conftest.undefs
7239
7240 cat >>$CONFIG_STATUS <<\_ACEOF
7241   # Let's still pretend it is `configure' which instantiates (i.e., don't
7242   # use $as_me), people would be surprised to read:
7243   #    /* config.h.  Generated by config.status.  */
7244   if test x"$ac_file" = x-; then
7245     echo "/* Generated by configure.  */" >$tmp/config.h
7246   else
7247     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
7248   fi
7249   cat $tmp/in >>$tmp/config.h
7250   rm -f $tmp/in
7251   if test x"$ac_file" != x-; then
7252     if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
7253       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
7254 echo "$as_me: $ac_file is unchanged" >&6;}
7255     else
7256       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
7257 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7258          X"$ac_file" : 'X\(//\)[^/]' \| \
7259          X"$ac_file" : 'X\(//\)$' \| \
7260          X"$ac_file" : 'X\(/\)' \| \
7261          .     : '\(.\)' 2>/dev/null ||
7262 echo X"$ac_file" |
7263     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7264           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7265           /^X\(\/\/\)$/{ s//\1/; q; }
7266           /^X\(\/\).*/{ s//\1/; q; }
7267           s/.*/./; q'`
7268       { case "$ac_dir" in
7269   [\\/]* | ?:[\\/]* ) as_incr_dir=;;
7270   *)                      as_incr_dir=.;;
7271 esac
7272 as_dummy="$ac_dir"
7273 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
7274   case $as_mkdir_dir in
7275     # Skip DOS drivespec
7276     ?:) as_incr_dir=$as_mkdir_dir ;;
7277     *)
7278       as_incr_dir=$as_incr_dir/$as_mkdir_dir
7279       test -d "$as_incr_dir" ||
7280         mkdir "$as_incr_dir" ||
7281         { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
7282 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
7283    { (exit 1); exit 1; }; }
7284     ;;
7285   esac
7286 done; }
7287
7288       rm -f $ac_file
7289       mv $tmp/config.h $ac_file
7290     fi
7291   else
7292     cat $tmp/config.h
7293     rm -f $tmp/config.h
7294   fi
7295 done
7296 _ACEOF
7297 cat >>$CONFIG_STATUS <<\_ACEOF
7298
7299 #
7300 # CONFIG_LINKS section.
7301 #
7302
7303 for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
7304   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
7305   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
7306
7307   { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
7308 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
7309
7310   if test ! -r $srcdir/$ac_source; then
7311     { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
7312 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
7313    { (exit 1); exit 1; }; }
7314   fi
7315   rm -f $ac_dest
7316
7317   # Make relative symlinks.
7318   ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
7319 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7320          X"$ac_dest" : 'X\(//\)[^/]' \| \
7321          X"$ac_dest" : 'X\(//\)$' \| \
7322          X"$ac_dest" : 'X\(/\)' \| \
7323          .     : '\(.\)' 2>/dev/null ||
7324 echo X"$ac_dest" |
7325     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7326           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7327           /^X\(\/\/\)$/{ s//\1/; q; }
7328           /^X\(\/\).*/{ s//\1/; q; }
7329           s/.*/./; q'`
7330   { case "$ac_dest_dir" in
7331   [\\/]* | ?:[\\/]* ) as_incr_dir=;;
7332   *)                      as_incr_dir=.;;
7333 esac
7334 as_dummy="$ac_dest_dir"
7335 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
7336   case $as_mkdir_dir in
7337     # Skip DOS drivespec
7338     ?:) as_incr_dir=$as_mkdir_dir ;;
7339     *)
7340       as_incr_dir=$as_incr_dir/$as_mkdir_dir
7341       test -d "$as_incr_dir" ||
7342         mkdir "$as_incr_dir" ||
7343         { { echo "$as_me:$LINENO: error: cannot create \"$ac_dest_dir\"" >&5
7344 echo "$as_me: error: cannot create \"$ac_dest_dir\"" >&2;}
7345    { (exit 1); exit 1; }; }
7346     ;;
7347   esac
7348 done; }
7349
7350   ac_builddir=.
7351
7352 if test "$ac_dest_dir" != .; then
7353   ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
7354   # A "../" for each directory in $ac_dir_suffix.
7355   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
7356 else
7357   ac_dir_suffix= ac_top_builddir=
7358 fi
7359
7360 case $srcdir in
7361   .)  # No --srcdir option.  We are building in place.
7362     ac_srcdir=.
7363     if test -z "$ac_top_builddir"; then
7364        ac_top_srcdir=.
7365     else
7366        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
7367     fi ;;
7368   [\\/]* | ?:[\\/]* )  # Absolute path.
7369     ac_srcdir=$srcdir$ac_dir_suffix;
7370     ac_top_srcdir=$srcdir ;;
7371   *) # Relative path.
7372     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
7373     ac_top_srcdir=$ac_top_builddir$srcdir ;;
7374 esac
7375 # Don't blindly perform a `cd "$ac_dest_dir"/$ac_foo && pwd` since $ac_foo can be
7376 # absolute.
7377 ac_abs_builddir=`cd "$ac_dest_dir" && cd $ac_builddir && pwd`
7378 ac_abs_top_builddir=`cd "$ac_dest_dir" && cd $ac_top_builddir && pwd`
7379 ac_abs_srcdir=`cd "$ac_dest_dir" && cd $ac_srcdir && pwd`
7380 ac_abs_top_srcdir=`cd "$ac_dest_dir" && cd $ac_top_srcdir && pwd`
7381
7382
7383   case $srcdir in
7384   [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
7385       *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
7386   esac
7387
7388   # Make a symlink if possible; otherwise try a hard link.
7389   ln -s $ac_rel_source $ac_dest 2>/dev/null ||
7390     ln $srcdir/$ac_source $ac_dest ||
7391     { { echo "$as_me:$LINENO: error: cannot link $ac_dest to $srcdir/$ac_source" >&5
7392 echo "$as_me: error: cannot link $ac_dest to $srcdir/$ac_source" >&2;}
7393    { (exit 1); exit 1; }; }
7394 done
7395 _ACEOF
7396 cat >>$CONFIG_STATUS <<\_ACEOF
7397
7398 #
7399 # CONFIG_COMMANDS section.
7400 #
7401 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
7402   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
7403   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
7404   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
7405 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7406          X"$ac_dest" : 'X\(//\)[^/]' \| \
7407          X"$ac_dest" : 'X\(//\)$' \| \
7408          X"$ac_dest" : 'X\(/\)' \| \
7409          .     : '\(.\)' 2>/dev/null ||
7410 echo X"$ac_dest" |
7411     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7412           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7413           /^X\(\/\/\)$/{ s//\1/; q; }
7414           /^X\(\/\).*/{ s//\1/; q; }
7415           s/.*/./; q'`
7416   ac_builddir=.
7417
7418 if test "$ac_dir" != .; then
7419   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
7420   # A "../" for each directory in $ac_dir_suffix.
7421   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
7422 else
7423   ac_dir_suffix= ac_top_builddir=
7424 fi
7425
7426 case $srcdir in
7427   .)  # No --srcdir option.  We are building in place.
7428     ac_srcdir=.
7429     if test -z "$ac_top_builddir"; then
7430        ac_top_srcdir=.
7431     else
7432        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
7433     fi ;;
7434   [\\/]* | ?:[\\/]* )  # Absolute path.
7435     ac_srcdir=$srcdir$ac_dir_suffix;
7436     ac_top_srcdir=$srcdir ;;
7437   *) # Relative path.
7438     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
7439     ac_top_srcdir=$ac_top_builddir$srcdir ;;
7440 esac
7441 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
7442 # absolute.
7443 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
7444 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
7445 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
7446 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
7447
7448
7449   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
7450 echo "$as_me: executing $ac_dest commands" >&6;}
7451   case $ac_dest in
7452     default )
7453 case $CONFIG_FILES in *config.make*)
7454 echo "$config_vars" >> config.make;;
7455 esac
7456 test -d bits || mkdir bits ;;
7457   esac
7458 done
7459 _ACEOF
7460
7461 cat >>$CONFIG_STATUS <<\_ACEOF
7462
7463 { (exit 0); exit 0; }
7464 _ACEOF
7465 chmod +x $CONFIG_STATUS
7466 ac_clean_files=$ac_clean_files_save
7467
7468
7469 # configure is writing to config.log, and then calls config.status.
7470 # config.status does its own redirection, appending to config.log.
7471 # Unfortunately, on DOS this fails, as config.log is still kept open
7472 # by configure, so config.status won't be able to write to it; its
7473 # output is simply discarded.  So we exec the FD to /dev/null,
7474 # effectively closing config.log, so it can be properly (re)opened and
7475 # appended to by config.status.  When coming back to configure, we
7476 # need to make the FD available again.
7477 if test "$no_create" != yes; then
7478   ac_cs_success=:
7479   exec 5>/dev/null
7480   $SHELL $CONFIG_STATUS || ac_cs_success=false
7481   exec 5>>config.log
7482   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
7483   # would make configure fail if this is the last instruction.
7484   $ac_cs_success || { (exit 1); exit 1; }
7485 fi
7486
7487 #
7488 # CONFIG_SUBDIRS section.
7489 #
7490 if test "$no_recursion" != yes; then
7491
7492   # Remove --cache-file and --srcdir arguments so they do not pile up.
7493   ac_sub_configure_args=
7494   ac_prev=
7495   for ac_arg in $ac_configure_args; do
7496     if test -n "$ac_prev"; then
7497       ac_prev=
7498       continue
7499     fi
7500     case $ac_arg in
7501     -cache-file | --cache-file | --cache-fil | --cache-fi \
7502     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
7503       ac_prev=cache_file ;;
7504     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
7505     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
7506     | --c=*)
7507       ;;
7508     --config-cache | -C)
7509       ;;
7510     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
7511       ac_prev=srcdir ;;
7512     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
7513       ;;
7514     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
7515       ac_prev=prefix ;;
7516     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
7517       ;;
7518     *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
7519     esac
7520   done
7521
7522   # Always prepend --prefix to ensure using the same prefix
7523   # in subdir configurations.
7524   ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
7525
7526   ac_popdir=`pwd`
7527   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
7528
7529     # Do not complain, so a configure script can configure whichever
7530     # parts of a large source tree are present.
7531     test -d $srcdir/$ac_dir || continue
7532
7533     { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
7534 echo "$as_me: configuring in $ac_dir" >&6;}
7535     { case "$ac_dir" in
7536   [\\/]* | ?:[\\/]* ) as_incr_dir=;;
7537   *)                      as_incr_dir=.;;
7538 esac
7539 as_dummy="$ac_dir"
7540 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
7541   case $as_mkdir_dir in
7542     # Skip DOS drivespec
7543     ?:) as_incr_dir=$as_mkdir_dir ;;
7544     *)
7545       as_incr_dir=$as_incr_dir/$as_mkdir_dir
7546       test -d "$as_incr_dir" ||
7547         mkdir "$as_incr_dir" ||
7548         { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
7549 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
7550    { (exit 1); exit 1; }; }
7551     ;;
7552   esac
7553 done; }
7554
7555     ac_builddir=.
7556
7557 if test "$ac_dir" != .; then
7558   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
7559   # A "../" for each directory in $ac_dir_suffix.
7560   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
7561 else
7562   ac_dir_suffix= ac_top_builddir=
7563 fi
7564
7565 case $srcdir in
7566   .)  # No --srcdir option.  We are building in place.
7567     ac_srcdir=.
7568     if test -z "$ac_top_builddir"; then
7569        ac_top_srcdir=.
7570     else
7571        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
7572     fi ;;
7573   [\\/]* | ?:[\\/]* )  # Absolute path.
7574     ac_srcdir=$srcdir$ac_dir_suffix;
7575     ac_top_srcdir=$srcdir ;;
7576   *) # Relative path.
7577     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
7578     ac_top_srcdir=$ac_top_builddir$srcdir ;;
7579 esac
7580 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
7581 # absolute.
7582 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
7583 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
7584 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
7585 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
7586
7587
7588     cd $ac_dir
7589
7590     # Check for guested configure; otherwise get Cygnus style configure.
7591     if test -f $ac_srcdir/configure.gnu; then
7592       ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
7593     elif test -f $ac_srcdir/configure; then
7594       ac_sub_configure="$SHELL '$ac_srcdir/configure'"
7595     elif test -f $ac_srcdir/configure.in; then
7596       ac_sub_configure=$ac_configure
7597     else
7598       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
7599 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
7600       ac_sub_configure=
7601     fi
7602
7603     # The recursion is here.
7604     if test -n "$ac_sub_configure"; then
7605       # Make the cache file name correct relative to the subdirectory.
7606       case $cache_file in
7607       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
7608       *) # Relative path.
7609         ac_sub_cache_file=$ac_top_builddir$cache_file ;;
7610       esac
7611
7612       { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
7613 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
7614       # The eval makes quoting arguments work.
7615       eval $ac_sub_configure $ac_sub_configure_args \
7616            --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
7617         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
7618 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
7619    { (exit 1); exit 1; }; }
7620     fi
7621
7622     cd $ac_popdir
7623   done
7624 fi
7625