Update.
[platform/upstream/glibc.git] / configure
1 #! /bin/sh
2
3 # From configure.in CVSid
4
5
6
7
8
9
10
11
12
13
14 # Guess values for system-dependent variables and create Makefiles.
15 # Generated automatically using autoconf version 2.13 
16 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
17 #
18 # This configure script is free software; the Free Software Foundation
19 # gives unlimited permission to copy, distribute and modify it.
20
21 # Defaults:
22 ac_help=
23 ac_default_prefix=/usr/local
24 # Any additions from configure.in:
25 ac_help="$ac_help
26   --with-gmp=DIRECTORY    find GMP source code in DIRECTORY (not needed)"
27 ac_help="$ac_help
28   --with-gd=DIR           find libgd include dir and library with prefix DIR"
29 ac_help="$ac_help
30   --with-gd-include=DIR   find libgd include files in DIR"
31 ac_help="$ac_help
32   --with-gd-lib=DIR       find libgd library files in DIR"
33 ac_help="$ac_help
34   --with-fp               if using floating-point hardware [default=yes]"
35 ac_help="$ac_help
36   --with-binutils=PATH    specify location of binutils (as and ld)"
37 ac_help="$ac_help
38   --with-elf              if using the ELF object format"
39 ac_help="$ac_help
40   --with-xcoff            if using the XCOFF object format"
41 ac_help="$ac_help
42   --without-cvs           if CVS should not be used"
43 ac_help="$ac_help
44   --with-headers=PATH     location of system headers to use
45                           [e.g. /usr/src/linux/include]
46                           [default=compiler default]"
47 ac_help="$ac_help
48   --disable-sanity-checks really do not use threads (should not be used
49                           except in special situations) [default=yes]"
50 ac_help="$ac_help
51   --enable-shared         build shared library [default=yes if GNU ld & ELF]"
52 ac_help="$ac_help
53   --enable-profile        build profiled library [default=yes]"
54 ac_help="$ac_help
55   --enable-omitfp         build undebuggable optimized library [default=no]"
56 ac_help="$ac_help
57   --enable-bounded        build with runtime bounds checking [default=no]"
58 ac_help="$ac_help
59   --disable-versioning    do not include versioning information in the
60                           library objects [default=yes if supported]"
61 ac_help="$ac_help
62   --enable-oldest-abi=ABI configure the oldest ABI supported [e.g. 2.2]
63                           [default=glibc default]"
64 ac_help="$ac_help
65   --enable-add-ons[=DIR1,DIR2]...
66                           configure and build add-ons in DIR1,DIR2,...
67                           search for add-ons if no parameter given"
68 ac_help="$ac_help
69   --without-tls           prevent support for TLS"
70 ac_help="$ac_help
71   --enable-static-nss     build static NSS modules [default=no]"
72 ac_help="$ac_help
73   --disable-force-install don't force installation of files from this package,
74                           even if they are older than the installed files"
75 ac_help="$ac_help
76   --enable-kernel=VERSION compile for compatibility with kernel not older
77                            than VERSION"
78 ac_help="$ac_help
79   --enable-all-warnings   enable all useful warnings gcc can issue"
80
81 # Initialize some variables set by options.
82 # The variables have the same names as the options, with
83 # dashes changed to underlines.
84 build=NONE
85 cache_file=./config.cache
86 exec_prefix=NONE
87 host=NONE
88 no_create=
89 nonopt=NONE
90 no_recursion=
91 prefix=NONE
92 program_prefix=NONE
93 program_suffix=NONE
94 program_transform_name=s,x,x,
95 silent=
96 site=
97 srcdir=
98 target=NONE
99 verbose=
100 x_includes=NONE
101 x_libraries=NONE
102 bindir='${exec_prefix}/bin'
103 sbindir='${exec_prefix}/sbin'
104 libexecdir='${exec_prefix}/libexec'
105 datadir='${prefix}/share'
106 sysconfdir='${prefix}/etc'
107 sharedstatedir='${prefix}/com'
108 localstatedir='${prefix}/var'
109 libdir='${exec_prefix}/lib'
110 includedir='${prefix}/include'
111 oldincludedir='/usr/include'
112 infodir='${prefix}/info'
113 mandir='${prefix}/man'
114
115 # Initialize some other variables.
116 subdirs=
117 MFLAGS= MAKEFLAGS=
118 SHELL=${CONFIG_SHELL-/bin/sh}
119 # Maximum number of lines to put in a shell here document.
120 ac_max_here_lines=12
121
122 ac_prev=
123 for ac_option
124 do
125
126   # If the previous option needs an argument, assign it.
127   if test -n "$ac_prev"; then
128     eval "$ac_prev=\$ac_option"
129     ac_prev=
130     continue
131   fi
132
133   case "$ac_option" in
134   -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
135   *) ac_optarg= ;;
136   esac
137
138   # Accept the important Cygnus configure options, so we can diagnose typos.
139
140   case "$ac_option" in
141
142   -bindir | --bindir | --bindi | --bind | --bin | --bi)
143     ac_prev=bindir ;;
144   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
145     bindir="$ac_optarg" ;;
146
147   -build | --build | --buil | --bui | --bu)
148     ac_prev=build ;;
149   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
150     build="$ac_optarg" ;;
151
152   -cache-file | --cache-file | --cache-fil | --cache-fi \
153   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
154     ac_prev=cache_file ;;
155   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
156   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
157     cache_file="$ac_optarg" ;;
158
159   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
160     ac_prev=datadir ;;
161   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
162   | --da=*)
163     datadir="$ac_optarg" ;;
164
165   -disable-* | --disable-*)
166     ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
167     # Reject names that are not valid shell variable names.
168     if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
169       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
170     fi
171     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
172     eval "enable_${ac_feature}=no" ;;
173
174   -enable-* | --enable-*)
175     ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
176     # Reject names that are not valid shell variable names.
177     if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
178       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
179     fi
180     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
181     case "$ac_option" in
182       *=*) ;;
183       *) ac_optarg=yes ;;
184     esac
185     eval "enable_${ac_feature}='$ac_optarg'" ;;
186
187   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
188   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
189   | --exec | --exe | --ex)
190     ac_prev=exec_prefix ;;
191   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
192   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
193   | --exec=* | --exe=* | --ex=*)
194     exec_prefix="$ac_optarg" ;;
195
196   -gas | --gas | --ga | --g)
197     # Obsolete; use --with-gas.
198     with_gas=yes ;;
199
200   -help | --help | --hel | --he)
201     # Omit some internal or obsolete options to make the list less imposing.
202     # This message is too long to be a string in the A/UX 3.1 sh.
203     cat << EOF
204 Usage: configure [options] [host]
205 Options: [defaults in brackets after descriptions]
206 Configuration:
207   --cache-file=FILE       cache test results in FILE
208   --help                  print this message
209   --no-create             do not create output files
210   --quiet, --silent       do not print \`checking...' messages
211   --version               print the version of autoconf that created configure
212 Directory and file names:
213   --prefix=PREFIX         install architecture-independent files in PREFIX
214                           [$ac_default_prefix]
215   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
216                           [same as prefix]
217   --bindir=DIR            user executables in DIR [EPREFIX/bin]
218   --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
219   --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
220   --datadir=DIR           read-only architecture-independent data in DIR
221                           [PREFIX/share]
222   --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
223   --sharedstatedir=DIR    modifiable architecture-independent data in DIR
224                           [PREFIX/com]
225   --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
226   --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
227   --includedir=DIR        C header files in DIR [PREFIX/include]
228   --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
229   --infodir=DIR           info documentation in DIR [PREFIX/info]
230   --mandir=DIR            man documentation in DIR [PREFIX/man]
231   --srcdir=DIR            find the sources in DIR [configure dir or ..]
232   --program-prefix=PREFIX prepend PREFIX to installed program names
233   --program-suffix=SUFFIX append SUFFIX to installed program names
234   --program-transform-name=PROGRAM
235                           run sed PROGRAM on installed program names
236 EOF
237     cat << EOF
238 Host type:
239   --build=BUILD           configure for building on BUILD [BUILD=HOST]
240   --host=HOST             configure for HOST [guessed]
241   --target=TARGET         configure for TARGET [TARGET=HOST]
242 Features and packages:
243   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
244   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
245   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
246   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
247   --x-includes=DIR        X include files are in DIR
248   --x-libraries=DIR       X library files are in DIR
249 EOF
250     if test -n "$ac_help"; then
251       echo "--enable and --with options recognized:$ac_help"
252     fi
253     exit 0 ;;
254
255   -host | --host | --hos | --ho)
256     ac_prev=host ;;
257   -host=* | --host=* | --hos=* | --ho=*)
258     host="$ac_optarg" ;;
259
260   -includedir | --includedir | --includedi | --included | --include \
261   | --includ | --inclu | --incl | --inc)
262     ac_prev=includedir ;;
263   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
264   | --includ=* | --inclu=* | --incl=* | --inc=*)
265     includedir="$ac_optarg" ;;
266
267   -infodir | --infodir | --infodi | --infod | --info | --inf)
268     ac_prev=infodir ;;
269   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
270     infodir="$ac_optarg" ;;
271
272   -libdir | --libdir | --libdi | --libd)
273     ac_prev=libdir ;;
274   -libdir=* | --libdir=* | --libdi=* | --libd=*)
275     libdir="$ac_optarg" ;;
276
277   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
278   | --libexe | --libex | --libe)
279     ac_prev=libexecdir ;;
280   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
281   | --libexe=* | --libex=* | --libe=*)
282     libexecdir="$ac_optarg" ;;
283
284   -localstatedir | --localstatedir | --localstatedi | --localstated \
285   | --localstate | --localstat | --localsta | --localst \
286   | --locals | --local | --loca | --loc | --lo)
287     ac_prev=localstatedir ;;
288   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
289   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
290   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
291     localstatedir="$ac_optarg" ;;
292
293   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
294     ac_prev=mandir ;;
295   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
296     mandir="$ac_optarg" ;;
297
298   -nfp | --nfp | --nf)
299     # Obsolete; use --without-fp.
300     with_fp=no ;;
301
302   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
303   | --no-cr | --no-c)
304     no_create=yes ;;
305
306   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
307   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
308     no_recursion=yes ;;
309
310   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
311   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
312   | --oldin | --oldi | --old | --ol | --o)
313     ac_prev=oldincludedir ;;
314   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
315   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
316   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
317     oldincludedir="$ac_optarg" ;;
318
319   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
320     ac_prev=prefix ;;
321   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
322     prefix="$ac_optarg" ;;
323
324   -program-prefix | --program-prefix | --program-prefi | --program-pref \
325   | --program-pre | --program-pr | --program-p)
326     ac_prev=program_prefix ;;
327   -program-prefix=* | --program-prefix=* | --program-prefi=* \
328   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
329     program_prefix="$ac_optarg" ;;
330
331   -program-suffix | --program-suffix | --program-suffi | --program-suff \
332   | --program-suf | --program-su | --program-s)
333     ac_prev=program_suffix ;;
334   -program-suffix=* | --program-suffix=* | --program-suffi=* \
335   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
336     program_suffix="$ac_optarg" ;;
337
338   -program-transform-name | --program-transform-name \
339   | --program-transform-nam | --program-transform-na \
340   | --program-transform-n | --program-transform- \
341   | --program-transform | --program-transfor \
342   | --program-transfo | --program-transf \
343   | --program-trans | --program-tran \
344   | --progr-tra | --program-tr | --program-t)
345     ac_prev=program_transform_name ;;
346   -program-transform-name=* | --program-transform-name=* \
347   | --program-transform-nam=* | --program-transform-na=* \
348   | --program-transform-n=* | --program-transform-=* \
349   | --program-transform=* | --program-transfor=* \
350   | --program-transfo=* | --program-transf=* \
351   | --program-trans=* | --program-tran=* \
352   | --progr-tra=* | --program-tr=* | --program-t=*)
353     program_transform_name="$ac_optarg" ;;
354
355   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
356   | -silent | --silent | --silen | --sile | --sil)
357     silent=yes ;;
358
359   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
360     ac_prev=sbindir ;;
361   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
362   | --sbi=* | --sb=*)
363     sbindir="$ac_optarg" ;;
364
365   -sharedstatedir | --sharedstatedir | --sharedstatedi \
366   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
367   | --sharedst | --shareds | --shared | --share | --shar \
368   | --sha | --sh)
369     ac_prev=sharedstatedir ;;
370   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
371   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
372   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
373   | --sha=* | --sh=*)
374     sharedstatedir="$ac_optarg" ;;
375
376   -site | --site | --sit)
377     ac_prev=site ;;
378   -site=* | --site=* | --sit=*)
379     site="$ac_optarg" ;;
380
381   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
382     ac_prev=srcdir ;;
383   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
384     srcdir="$ac_optarg" ;;
385
386   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
387   | --syscon | --sysco | --sysc | --sys | --sy)
388     ac_prev=sysconfdir ;;
389   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
390   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
391     sysconfdir="$ac_optarg" ;;
392
393   -target | --target | --targe | --targ | --tar | --ta | --t)
394     ac_prev=target ;;
395   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
396     target="$ac_optarg" ;;
397
398   -v | -verbose | --verbose | --verbos | --verbo | --verb)
399     verbose=yes ;;
400
401   -version | --version | --versio | --versi | --vers)
402     echo "configure generated by autoconf version 2.13"
403     exit 0 ;;
404
405   -with-* | --with-*)
406     ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
407     # Reject names that are not valid shell variable names.
408     if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
409       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
410     fi
411     ac_package=`echo $ac_package| sed 's/-/_/g'`
412     case "$ac_option" in
413       *=*) ;;
414       *) ac_optarg=yes ;;
415     esac
416     eval "with_${ac_package}='$ac_optarg'" ;;
417
418   -without-* | --without-*)
419     ac_package=`echo $ac_option|sed -e 's/-*without-//'`
420     # Reject names that are not valid shell variable names.
421     if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
422       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
423     fi
424     ac_package=`echo $ac_package| sed 's/-/_/g'`
425     eval "with_${ac_package}=no" ;;
426
427   --x)
428     # Obsolete; use --with-x.
429     with_x=yes ;;
430
431   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
432   | --x-incl | --x-inc | --x-in | --x-i)
433     ac_prev=x_includes ;;
434   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
435   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
436     x_includes="$ac_optarg" ;;
437
438   -x-libraries | --x-libraries | --x-librarie | --x-librari \
439   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
440     ac_prev=x_libraries ;;
441   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
442   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
443     x_libraries="$ac_optarg" ;;
444
445   -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
446     ;;
447
448   *)
449     if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
450       echo "configure: warning: $ac_option: invalid host type" 1>&2
451     fi
452     if test "x$nonopt" != xNONE; then
453       { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
454     fi
455     nonopt="$ac_option"
456     ;;
457
458   esac
459 done
460
461 if test -n "$ac_prev"; then
462   { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
463 fi
464
465 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
466
467 # File descriptor usage:
468 # 0 standard input
469 # 1 file creation
470 # 2 errors and warnings
471 # 3 some systems may open it to /dev/tty
472 # 4 used on the Kubota Titan
473 # 6 checking for... messages and results
474 # 5 compiler messages saved in config.log
475 if test "$silent" = yes; then
476   exec 6>/dev/null
477 else
478   exec 6>&1
479 fi
480 exec 5>./config.log
481
482 echo "\
483 This file contains any messages produced by compilers while
484 running configure, to aid debugging if configure makes a mistake.
485 " 1>&5
486
487 # Strip out --no-create and --no-recursion so they do not pile up.
488 # Also quote any args containing shell metacharacters.
489 ac_configure_args=
490 for ac_arg
491 do
492   case "$ac_arg" in
493   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
494   | --no-cr | --no-c) ;;
495   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
496   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
497   *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
498   ac_configure_args="$ac_configure_args '$ac_arg'" ;;
499   *) ac_configure_args="$ac_configure_args $ac_arg" ;;
500   esac
501 done
502
503 # NLS nuisances.
504 # Only set these to C if already set.  These must not be set unconditionally
505 # because not all systems understand e.g. LANG=C (notably SCO).
506 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
507 # Non-C LC_CTYPE values break the ctype check.
508 if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
509 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
510 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
511 if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
512
513 # confdefs.h avoids OS command line length limits that DEFS can exceed.
514 rm -rf conftest* confdefs.h
515 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
516 echo > confdefs.h
517
518 # A filename unique to this package, relative to the directory that
519 # configure is in, which we can look for to find out if srcdir is correct.
520 ac_unique_file=include/features.h
521
522 # Find the source files, if location was not specified.
523 if test -z "$srcdir"; then
524   ac_srcdir_defaulted=yes
525   # Try the directory containing this script, then its parent.
526   ac_prog=$0
527   ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
528   test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
529   srcdir=$ac_confdir
530   if test ! -r $srcdir/$ac_unique_file; then
531     srcdir=..
532   fi
533 else
534   ac_srcdir_defaulted=no
535 fi
536 if test ! -r $srcdir/$ac_unique_file; then
537   if test "$ac_srcdir_defaulted" = yes; then
538     { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
539   else
540     { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
541   fi
542 fi
543 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
544
545 # Prefer explicitly selected file to automatically selected ones.
546 if test -z "$CONFIG_SITE"; then
547   if test "x$prefix" != xNONE; then
548     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
549   else
550     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
551   fi
552 fi
553 for ac_site_file in $CONFIG_SITE; do
554   if test -r "$ac_site_file"; then
555     echo "loading site script $ac_site_file"
556     . "$ac_site_file"
557   fi
558 done
559
560 if test -r "$cache_file"; then
561   echo "loading cache $cache_file"
562   . $cache_file
563 else
564   echo "creating cache $cache_file"
565   > $cache_file
566 fi
567
568 ac_ext=c
569 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
570 ac_cpp='$CPP $CPPFLAGS'
571 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
572 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
573 cross_compiling=$ac_cv_prog_cc_cross
574
575 ac_exeext=
576 ac_objext=o
577 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
578   # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
579   if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
580     ac_n= ac_c='
581 ' ac_t='        '
582   else
583     ac_n=-n ac_c= ac_t=
584   fi
585 else
586   ac_n= ac_c='\c' ac_t=
587 fi
588
589     if test -r /vmunix; then
590       kernel_id=`strings /vmunix | grep UNIX`
591     elif test -r /dynix; then
592       kernel_id=`strings /dynix | grep DYNIX`
593     else
594       kernel_id=
595     fi
596
597
598
599 ac_aux_dir=
600 for ac_dir in scripts $srcdir/scripts; do
601   if test -f $ac_dir/install-sh; then
602     ac_aux_dir=$ac_dir
603     ac_install_sh="$ac_aux_dir/install-sh -c"
604     break
605   elif test -f $ac_dir/install.sh; then
606     ac_aux_dir=$ac_dir
607     ac_install_sh="$ac_aux_dir/install.sh -c"
608     break
609   fi
610 done
611 if test -z "$ac_aux_dir"; then
612   { echo "configure: error: can not find install-sh or install.sh in scripts $srcdir/scripts" 1>&2; exit 1; }
613 fi
614 ac_config_guess=$ac_aux_dir/config.guess
615 ac_config_sub=$ac_aux_dir/config.sub
616 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
617
618
619 # This will get text that should go into config.make.
620 config_vars=
621
622 # Check for a --with-gmp argument and set gmp-srcdir in config.make.
623 # Check whether --with-gmp or --without-gmp was given.
624 if test "${with_gmp+set}" = set; then
625   withval="$with_gmp"
626   case "$with_gmp" in
627 yes) { echo "configure: error: --with-gmp requires an argument; use --with-gmp=DIRECTORY" 1>&2; exit 1; } ;;
628 ''|no) ;;
629 *) config_vars="$config_vars
630 gmp-srcdir = $withval" ;;
631 esac
632
633 fi
634
635 # Check for a --with-gd argument and set libgd-LDFLAGS in config.make.
636 # Check whether --with-gd or --without-gd was given.
637 if test "${with_gd+set}" = set; then
638   withval="$with_gd"
639   case "$with_gd" in
640 yes|''|no) ;;
641 *) libgd_include="-I$withval/include"
642    libgd_ldflags="-L$withval/lib" ;;
643 esac
644
645 fi
646
647 # Check whether --with-gd-include or --without-gd-include was given.
648 if test "${with_gd_include+set}" = set; then
649   withval="$with_gd_include"
650   case "$with_gd_include" in
651 ''|no) ;;
652 *) libgd_include="-I$withval" ;;
653 esac
654
655 fi
656
657 # Check whether --with-gd-lib or --without-gd-lib was given.
658 if test "${with_gd_lib+set}" = set; then
659   withval="$with_gd_lib"
660   case "$with_gd_lib" in
661 ''|no) ;;
662 *) libgd_ldflags="-L$withval" ;;
663 esac
664
665 fi
666
667
668 if test -n "$libgd_include"; then
669   config_vars="$config_vars
670 CFLAGS-memusagestat.c = $libgd_include"
671 fi
672 if test -n "$libgd_ldflags"; then
673   config_vars="$config_vars
674 libgd-LDFLAGS = $libgd_ldflags"
675 fi
676
677 # Check whether --with-fp or --without-fp was given.
678 if test "${with_fp+set}" = set; then
679   withval="$with_fp"
680   with_fp=$withval
681 else
682   with_fp=yes
683 fi
684
685
686 # Check whether --with-binutils or --without-binutils was given.
687 if test "${with_binutils+set}" = set; then
688   withval="$with_binutils"
689   path_binutils=$withval
690 else
691   path_binutils=''
692 fi
693
694 # Check whether --with-elf or --without-elf was given.
695 if test "${with_elf+set}" = set; then
696   withval="$with_elf"
697   elf=$withval
698 else
699   elf=no
700 fi
701
702 # Check whether --with-xcoff or --without-xcoff was given.
703 if test "${with_xcoff+set}" = set; then
704   withval="$with_xcoff"
705   xcoff=$withval
706 else
707   xcoff=no
708 fi
709
710 # Check whether --with-cvs or --without-cvs was given.
711 if test "${with_cvs+set}" = set; then
712   withval="$with_cvs"
713   with_cvs=$withval
714 else
715   with_cvs=yes
716 fi
717
718 if test "$with_cvs" = yes; then
719   if test -d $srcdir/CVS && grep :pserver: $srcdir/CVS/Root > /dev/null
720   then
721     with_cvs=no
722   fi
723 fi
724
725
726 # Check whether --with-headers or --without-headers was given.
727 if test "${with_headers+set}" = set; then
728   withval="$with_headers"
729   sysheaders=$withval
730 else
731   sysheaders=''
732 fi
733
734
735 # Check whether --enable-sanity-checks or --disable-sanity-checks was given.
736 if test "${enable_sanity_checks+set}" = set; then
737   enableval="$enable_sanity_checks"
738   enable_sanity=$enableval
739 else
740   enable_sanity=yes
741 fi
742
743
744 static=yes
745 # Check whether --enable-shared or --disable-shared was given.
746 if test "${enable_shared+set}" = set; then
747   enableval="$enable_shared"
748   shared=$enableval
749 else
750   shared=default
751 fi
752
753 # Check whether --enable-profile or --disable-profile was given.
754 if test "${enable_profile+set}" = set; then
755   enableval="$enable_profile"
756   profile=$enableval
757 else
758   profile=yes
759 fi
760
761 # Check whether --enable-omitfp or --disable-omitfp was given.
762 if test "${enable_omitfp+set}" = set; then
763   enableval="$enable_omitfp"
764   omitfp=$enableval
765 else
766   omitfp=no
767 fi
768
769 # Check whether --enable-bounded or --disable-bounded was given.
770 if test "${enable_bounded+set}" = set; then
771   enableval="$enable_bounded"
772   bounded=$enableval
773 else
774   bounded=no
775 fi
776
777 # Check whether --enable-versioning or --disable-versioning was given.
778 if test "${enable_versioning+set}" = set; then
779   enableval="$enable_versioning"
780   enable_versioning=$enableval
781 else
782   enable_versioning=yes
783 fi
784
785
786 # Check whether --enable-oldest-abi or --disable-oldest-abi was given.
787 if test "${enable_oldest_abi+set}" = set; then
788   enableval="$enable_oldest_abi"
789   oldest_abi=$enableval
790 else
791   oldest_abi=no
792 fi
793
794 if test "$oldest_abi" = yes || test "$oldest_abi" = no; then
795   oldest_abi=default
796 else
797   cat >> confdefs.h <<EOF
798 #define GLIBC_OLDEST_ABI "$oldest_abi"
799 EOF
800
801 fi
802
803
804 # Check whether --enable-add-ons or --disable-add-ons was given.
805 if test "${enable_add_ons+set}" = set; then
806   enableval="$enable_add_ons"
807   case "$enableval" in
808     yes) add_ons=`cd $srcdir && echo */configure | sed -e 's!/configure!!g'`
809          test "$add_ons" = "*" && add_ons= ;;
810     *) add_ons=`echo "$enableval" | sed 's/,/ /g'`;;
811    esac
812 else
813   add_ons=
814 fi
815
816
817 # Check whether --with-tls or --without-tls was given.
818 if test "${with_tls+set}" = set; then
819   withval="$with_tls"
820   usetls=$withval
821 else
822   usetls=yes
823 fi
824
825
826 subdirs="$add_ons"
827
828 add_ons_pfx=
829 if test x"$add_ons" != x; then
830   for f in $add_ons; do
831     # Some sanity checks
832     if test "$f" = "crypt"; then
833       { echo "configure: error: 
834 *** It seems that you're using an old \`crypt' add-on.  crypt is now
835 *** part of glibc and using the old add-on will not work with this
836 *** release.  Start again with fresh sources and without the old
837 *** \`crypt' add-on." 1>&2; exit 1; }
838     fi
839     if test "$f" = "localedata"; then
840       { echo "configure: error: 
841 *** It seems that you're using an old \`localedata' add-on.  localedata
842 *** is now part of glibc and using the old add-on will not work with
843 *** this release.  Start again with fresh sources and without the old
844 *** \`localedata' add-on." 1>&2; exit 1; }
845     fi
846     # Test whether such a subdir really exists.
847     if test -d $srcdir/$f; then
848       add_ons_pfx="$add_ons_pfx $f/"
849     else
850       { echo "configure: error: add-on directory \"$f\" does not exist" 1>&2; exit 1; }
851     fi
852   done
853 fi
854
855 # Check whether --enable-static-nss or --disable-static-nss was given.
856 if test "${enable_static_nss+set}" = set; then
857   enableval="$enable_static_nss"
858   static_nss=$enableval
859 else
860   static_nss=no
861 fi
862
863 if test x"$static_nss" = xyes || test x"$shared" = xno; then
864   static_nss=yes
865   cat >> confdefs.h <<\EOF
866 #define DO_STATIC_NSS 1
867 EOF
868
869 fi
870
871 # Check whether --enable-force-install or --disable-force-install was given.
872 if test "${enable_force_install+set}" = set; then
873   enableval="$enable_force_install"
874   force_install=$enableval
875 else
876   force_install=yes
877 fi
878
879
880
881 # Check whether --enable-kernel or --disable-kernel was given.
882 if test "${enable_kernel+set}" = set; then
883   enableval="$enable_kernel"
884   minimum_kernel=$enableval
885 fi
886
887 if test "$minimum_kernel" = yes || test "$minimum_kernel" = no; then
888   # Better nothing than this.
889   minimum_kernel=""
890 else
891   if test "$minimum_kernel" = current; then
892     minimum_kernel=`uname -r 2>/dev/null` || minimum_kernel=
893   fi
894 fi
895
896 # Check whether --enable-all-warnings or --disable-all-warnings was given.
897 if test "${enable_all_warnings+set}" = set; then
898   enableval="$enable_all_warnings"
899   all_warnings=$enableval
900 fi
901
902
903
904
905 # Make sure we can run config.sub.
906 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
907 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
908 fi
909
910 echo $ac_n "checking host system type""... $ac_c" 1>&6
911 echo "configure:912: checking host system type" >&5
912
913 host_alias=$host
914 case "$host_alias" in
915 NONE)
916   case $nonopt in
917   NONE)
918     if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
919     else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
920     fi ;;
921   *) host_alias=$nonopt ;;
922   esac ;;
923 esac
924
925 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
926 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
927 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
928 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
929 echo "$ac_t""$host" 1>&6
930
931
932 # The way shlib-versions is used to generate soversions.mk uses a
933 # fairly simplistic model for name recognition that can't distinguish
934 # i486-pc-linux-gnu fully from i486-pc-gnu.  So we mutate a $host_os
935 # of `gnu*' here to be `gnu-gnu*' just so that shlib-versions can
936 # tell.  This doesn't get used much beyond that, so it's fairly safe.
937 case "$host_os" in
938 linux*)
939   ;;
940 gnu*)
941   host_os=`echo $host_os | sed -e 's/gnu/gnu-gnu/'`
942   ;;
943 esac
944
945 # We keep the original values in `$config_*' and never modify them, so we
946 # can write them unchanged into config.make.  Everything else uses
947 # $machine, $vendor, and $os, and changes them whenever convenient.
948 config_machine=$host_cpu config_vendor=$host_vendor config_os=$host_os
949
950 # Don't allow vendor == "unknown"
951 test "$config_vendor" = unknown && config_vendor=
952 config_os="`echo $config_os | sed 's/^unknown-//'`"
953
954 # Some configurations imply other options.
955 case "$host_os" in
956 gnu* | linux* | bsd4.4* | netbsd* | freebsd*)
957   # These systems always use GNU tools.
958   gnu_ld=yes gnu_as=yes ;;
959 esac
960 case "$host_os" in
961 # i586-linuxaout is mangled into i586-pc-linux-gnuaout
962 linux*ecoff* | linux*aout* | gnu*aout* | gnu*ecoff*)
963   ;;
964 gnu* | linux* | sysv4* | solaris2* | irix6*)
965   # These systems (almost) always use the ELF format.
966   elf=yes
967   ;;
968 aix*)
969   # These systems are always xcoff
970   xcoff=yes
971   elf=no
972   ;;
973 esac
974
975 machine=$config_machine
976 vendor=$config_vendor
977 os=$config_os
978
979 # config.guess on some IBM machines says `rs6000' instead of `powerpc'.
980 # Unify this here.
981 if test "$machine" = rs6000; then
982   machine="powerpc"
983 fi
984
985 ###
986 ### I put this here to prevent those annoying emails from people who cannot
987 ### read and try to compile glibc on unsupported platforms.  --drepper
988 ###
989 ### By using the undocumented --enable-hacker-mode option for configure
990 ### one can skip this test to make the configuration not fail for unsupported
991 ### platforms.
992 ###
993 if test -z "$enable_hacker_mode"; then
994   case "$machine-$host_os" in
995   *-linux* | *-gnu* | arm*-none* | powerpc-aix4.3.*)
996     ;;
997   *)
998     echo "*** The GNU C library is currently not available for this platform."
999     echo "*** So far nobody cared to port it and if there is no volunteer it"
1000     echo "*** might never happen.  So, if you have interest to see glibc on"
1001     echo "*** this platform visit"
1002     echo "***   http://www.gnu.org/software/libc/porting.html"
1003     echo "*** and join the group of porters"
1004     exit 1
1005     ;;
1006   esac
1007 fi
1008
1009 # Expand the configuration machine name into a subdirectory by architecture
1010 # type and particular chip.
1011 case "$machine" in
1012 a29k | am29000) base_machine=a29k machine=a29k ;;
1013 alpha*)         base_machine=alpha machine=alpha/$machine ;;
1014 arm*)           base_machine=arm machine=arm/arm32/$machine ;;
1015 c3[012])        base_machine=cx0 machine=cx0/c30 ;;
1016 c4[04])         base_machine=cx0 machine=cx0/c40 ;;
1017 hppa*64*)       base_machine=hppa machine=hppa/hppa64 ;;
1018 hppa*)          base_machine=hppa machine=hppa/hppa1.1 ;;
1019 i[3456]86)      base_machine=i386 machine=i386/$machine ;;
1020 ia64)           base_machine=ia64 machine=ia64 ;;
1021 m680?0)         base_machine=m68k machine=m68k/$machine ;;
1022 m68k)           base_machine=m68k machine=m68k/m68020 ;;
1023 m88???)         base_machine=m88k machine=m88k/$machine ;;
1024 m88k)           base_machine=m88k machine=m88k/m88100 ;;
1025 mips64*)        base_machine=mips64 machine=mips/mips64/$machine ;;
1026 mips*)          base_machine=mips machine=mips/$machine ;;
1027 s390)           base_machine=s390 machine=s390/s390-32 ;;
1028 s390x)          base_machine=s390 machine=s390/s390-64 ;;
1029 sh3*)           base_machine=sh machine=sh/sh3 ;;
1030 sh4*)           base_machine=sh machine=sh/sh4 ;;
1031 sparc | sparcv[67])
1032                 base_machine=sparc machine=sparc/sparc32 ;;
1033 sparcv8 | supersparc | hypersparc)
1034                 base_machine=sparc machine=sparc/sparc32/sparcv8 ;;
1035 sparcv8plus | sparcv8plusa | sparcv9)
1036                 base_machine=sparc machine=sparc/sparc32/sparcv9 ;;
1037 sparcv8plusb | sparcv9b)
1038                 base_machine=sparc machine=sparc/sparc32/sparcv9b ;;
1039 sparc64 | ultrasparc)
1040                 base_machine=sparc machine=sparc/sparc64 ;;
1041 sparc64b | ultrasparc3)
1042                 base_machine=sparc machine=sparc/sparc64/sparcv9b ;;
1043 thumb*)         base_machine=thumb machine=arm/thumb/$machine ;;
1044 *)              base_machine=$machine ;;
1045 esac
1046
1047
1048 if test "$base_machine" = "i386"; then
1049   cat >> confdefs.h <<\EOF
1050 #define USE_REGPARMS 1
1051 EOF
1052
1053 fi
1054
1055 # Compute the list of sysdep directories for this configuration.
1056 # This can take a while to compute.
1057 sysdep_dir=$srcdir/sysdeps
1058 echo $ac_n "checking sysdep dirs""... $ac_c" 1>&6
1059 echo "configure:1060: checking sysdep dirs" >&5
1060 # Make sco3.2v4 become sco3.2.4 and sunos4.1.1_U1 become sunos4.1.1.U1.
1061 os="`echo $os | sed 's/\([0-9A-Z]\)[v_]\([0-9A-Z]\)/\1.\2/g'`"
1062
1063 case "$os" in
1064 gnu*)
1065   base_os=mach/hurd ;;
1066 netbsd* | 386bsd* | freebsd* | bsdi*)
1067   base_os=unix/bsd/bsd4.4 ;;
1068 osf* | sunos* | ultrix* | newsos* | dynix* | *bsd*)
1069   base_os=unix/bsd ;;
1070 sysv* | isc* | esix* | sco* | minix* | irix4* | linux*)
1071   base_os=unix/sysv ;;
1072 irix6*)
1073   base_os=unix/sysv/irix6/$os ;;
1074 solaris[2-9]*)
1075   base_os=unix/sysv/sysv4 ;;
1076 hpux*)
1077   base_os=unix/sysv/hpux/$os ;;
1078 aix4.3*)
1079   base_os=unix/sysv/aix/aix4.3 ;;
1080 none)
1081   base_os=standalone ;;
1082 *)
1083   base_os='' ;;
1084 esac
1085
1086 # For sunos4.1.1, try sunos4.1.1, then sunos4.1, then sunos4, then sunos.
1087 tail=$os
1088 ostry=$os
1089 while o=`echo $tail | sed 's/\.[^.]*$//'`; test $o != $tail; do
1090   ostry="$ostry /$o"
1091   tail=$o
1092 done
1093 o=`echo $tail | sed 's/[0-9]*$//'`
1094 if test $o != $tail; then
1095   ostry="$ostry /$o"
1096 fi
1097 # For linux-gnu, try linux-gnu, then linux.
1098 o=`echo $tail | sed 's/-.*$//'`
1099 if test $o != $tail; then
1100   ostry="$ostry /$o"
1101 fi
1102
1103 # For unix/sysv/sysv4, try unix/sysv/sysv4, then unix/sysv, then unix.
1104 base=
1105 tail=$base_os
1106 while b=`echo $tail | sed 's@^\(.*\)/\([^/]*\)$@& \1@'`; test -n "$b"; do
1107   set $b
1108   base="$base /$1"
1109   tail="$2"
1110 done
1111
1112 # For sparc/sparc32, try sparc/sparc32 and then sparc.
1113 mach=
1114 tail=$machine
1115 while m=`echo $tail | sed 's@^\(.*\)/\([^/]*\)$@& \1@'`; test -n "$m"; do
1116   set $m
1117   # Prepend the machine's FPU directory unless --without-fp.
1118   if test "$with_fp" = yes; then
1119     mach="$mach /$1/fpu"
1120   fi
1121   mach="$mach /$1"
1122   tail="$2"
1123 done
1124
1125
1126 # Find what sysdep directories exist.
1127 sysnames=
1128 IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1129 for d in $add_ons_pfx ''; do
1130   for b in $base ''; do
1131     for m0 in $mach ''; do
1132       for v in /$vendor ''; do
1133         test "$v" = / && continue
1134         for o in /$ostry ''; do
1135           test "$o" = / && continue
1136           for m in $mach ''; do
1137             if test "$m0$b$v$o$m"; then
1138               try="${d}sysdeps$m0$b$v$o$m"
1139               test -n "$enable_debug_configure" &&
1140               echo "$0 DEBUG: try $try" >&2
1141               if test -d $srcdir/$try; then
1142                 sysnames="$sysnames $try"
1143                 { test -n "$o" || test -n "$b"; } && os_used=t
1144                 { test -n "$m" || test -n "$m0"; } && machine_used=t
1145               fi
1146             fi
1147           done
1148         done
1149       done
1150     done
1151   done
1152 done
1153 IFS="$ac_save_ifs"
1154
1155 if test -z "$os_used" && test "$os" != none; then
1156   { echo "configure: error: Operating system $os is not supported." 1>&2; exit 1; }
1157 fi
1158 if test -z "$machine_used" && test "$machine" != none; then
1159   { echo "configure: error: The $machine is not supported." 1>&2; exit 1; }
1160 fi
1161
1162 # We have now validated the configuration.
1163
1164
1165 # If using ELF, look for an `elf' subdirectory of each machine directory.
1166 # We prepend these rather than inserting them whereever the machine appears
1167 # because things specified by the machine's ELF ABI should override
1168 # OS-specific things, and should always be the same for any OS on the
1169 # machine (otherwise what's the point of an ABI?).
1170 if test "$elf" = yes; then
1171   elf_dirs=
1172   for d in $add_ons_pfx ''; do
1173     for m in $mach; do
1174       if test -d $srcdir/${d}sysdeps$m/elf; then
1175         elf_dirs="$elf_dirs ${d}sysdeps$m/elf"
1176       fi
1177     done
1178   done
1179   sysnames="`echo $elf_dirs | sed -e 's,//,/,g'` $sysnames"
1180 fi
1181
1182
1183 # Expand the list of system names into a full list of directories
1184 # from each element's parent name and Implies file (if present).
1185 set $sysnames
1186 names=
1187 while test $# -gt 0; do
1188   name=$1
1189   shift
1190
1191   case " $names " in *" $name "*)
1192     # Already in the list.
1193     continue
1194   esac
1195
1196   # Report each name as we discover it, so there is no long pause in output.
1197   echo $ac_n "$name $ac_c" >&6
1198
1199   name_base=`echo $name | sed -e 's@\(.*sysdeps\)/.*@\1@'`
1200
1201   case $name in
1202     /*) xsrcdir= ;;
1203     *)  xsrcdir=$srcdir/ ;;
1204   esac
1205   test -n "$enable_debug_configure" &&
1206   echo "DEBUG: name/Implies $xsrcdir$name/Implies" >&2
1207
1208   if test -f $xsrcdir$name/Implies; then
1209     # Collect more names from the `Implies' file (removing comments).
1210     implied_candidate="`sed 's/#.*$//' < $xsrcdir$name/Implies`"
1211     implied=
1212     for x in $implied_candidate; do
1213       found=no
1214       if test -d $xsrcdir$name_base/$x; then
1215         implied="$implied $name_base/$x";
1216         found=yes
1217       fi
1218       for d in $add_ons_pfx ''; do
1219         try="${d}sysdeps/$x"
1220         case $d in
1221          /*) try_srcdir= ;;
1222          *) try_srcdir=$srcdir/ ;;
1223         esac
1224         test -n "$enable_debug_configure" &&
1225          echo "DEBUG: $name implied $x try($d) {$try_srcdir}$try" >&2
1226         if test $try != $xsrcdir$name_base/$x && test -d $try_srcdir$try;
1227         then
1228           implied="$implied $try"
1229           found=yes
1230         fi
1231       done
1232       if test $found = no; then
1233         echo "configure: warning: $name/Implies specifies nonexistent $x" 1>&2
1234       fi
1235     done
1236   else
1237     implied=
1238   fi
1239
1240   # Add NAME to the list of names.
1241   names="$names $name"
1242
1243   # Find the parent of NAME, using the empty string if it has none.
1244   parent="`echo $name | sed -n -e 's=/[^/]*$==' -e '/sysdeps$/q' -e p`"
1245
1246   # Add the names implied by NAME, and NAME's parent (if it has one), to
1247   # the list of names to be processed (the argument list).  We prepend the
1248   # implied names to the list and append the parent.  We want implied
1249   # directories to come before further directories inferred from the
1250   # configuration components; this ensures that for sysv4, unix/common
1251   # (implied by unix/sysv/sysv4) comes before unix/sysv (in ostry (here $*)
1252   # after sysv4).
1253   sysnames="`echo $implied $* $parent`"
1254   test -n "$sysnames" && set $sysnames
1255 done
1256
1257 # Add the default directories.
1258 default_sysnames=sysdeps/generic
1259 if test "$elf" = yes; then
1260   default_sysnames="sysdeps/generic/elf $default_sysnames"
1261 fi
1262 sysnames="$names $default_sysnames"
1263
1264 # The other names were emitted during the scan.
1265 echo "$ac_t""$default_sysnames" 1>&6
1266
1267
1268 ### Locate tools.
1269
1270 # Find a good install program.  We prefer a C program (faster),
1271 # so one script is as good as another.  But avoid the broken or
1272 # incompatible versions:
1273 # SysV /etc/install, /usr/sbin/install
1274 # SunOS /usr/etc/install
1275 # IRIX /sbin/install
1276 # AIX /bin/install
1277 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1278 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1279 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1280 # ./install, which can be erroneously created by make from ./install.sh.
1281 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1282 echo "configure:1283: checking for a BSD compatible install" >&5
1283 if test -z "$INSTALL"; then
1284 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1285   echo $ac_n "(cached) $ac_c" 1>&6
1286 else
1287     IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS=":"
1288   for ac_dir in $PATH; do
1289     # Account for people who put trailing slashes in PATH elements.
1290     case "$ac_dir/" in
1291     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1292     *)
1293       # OSF1 and SCO ODT 3.0 have their own names for install.
1294       # Don't use installbsd from OSF since it installs stuff as root
1295       # by default.
1296       for ac_prog in ginstall scoinst install; do
1297         if test -f $ac_dir/$ac_prog; then
1298           if test $ac_prog = install &&
1299             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1300             # AIX install.  It has an incompatible calling convention.
1301             :
1302           else
1303             ac_cv_path_install="$ac_dir/$ac_prog -c"
1304             break 2
1305           fi
1306         fi
1307       done
1308       ;;
1309     esac
1310   done
1311   IFS="$ac_save_IFS"
1312
1313 fi
1314   if test "${ac_cv_path_install+set}" = set; then
1315     INSTALL="$ac_cv_path_install"
1316   else
1317     # As a last resort, use the slow shell script.  We don't cache a
1318     # path for INSTALL within a source directory, because that will
1319     # break other packages using the cache if that directory is
1320     # removed, or if the path is relative.
1321     INSTALL="$ac_install_sh"
1322   fi
1323 fi
1324 echo "$ac_t""$INSTALL" 1>&6
1325
1326 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1327 # It thinks the first close brace ends the variable substitution.
1328 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1329
1330 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1331
1332 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1333
1334 if test "$INSTALL" = "${srcdir}/scripts/install-sh -c"; then
1335   # The makefiles need to use a different form to find it in $srcdir.
1336   INSTALL='\$(..)./scripts/install-sh -c'
1337 fi
1338 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1339 echo "configure:1340: checking whether ln -s works" >&5
1340 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1341   echo $ac_n "(cached) $ac_c" 1>&6
1342 else
1343   rm -f conftestdata
1344 if ln -s X conftestdata 2>/dev/null
1345 then
1346   rm -f conftestdata
1347   ac_cv_prog_LN_S="ln -s"
1348 else
1349   ac_cv_prog_LN_S=ln
1350 fi
1351 fi
1352 LN_S="$ac_cv_prog_LN_S"
1353 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1354   echo "$ac_t""yes" 1>&6
1355 else
1356   echo "$ac_t""no" 1>&6
1357 fi
1358
1359
1360 # We need the physical current working directory.  We cannot use the
1361 # "pwd -P" shell builtin since that's not portable.  Instead we try to
1362 # find a pwd binary.  Note that assigning to the PWD environment
1363 # variable might have some interesting side effects, so we don't do
1364 # that.
1365 # Extract the first word of "pwd", so it can be a program name with args.
1366 set dummy pwd; ac_word=$2
1367 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1368 echo "configure:1369: checking for $ac_word" >&5
1369 if eval "test \"`echo '$''{'ac_cv_path_PWD_P'+set}'`\" = set"; then
1370   echo $ac_n "(cached) $ac_c" 1>&6
1371 else
1372   case "$PWD_P" in
1373   /*)
1374   ac_cv_path_PWD_P="$PWD_P" # Let the user override the test with a path.
1375   ;;
1376   ?:/*)                  
1377   ac_cv_path_PWD_P="$PWD_P" # Let the user override the test with a dos path.
1378   ;;
1379   *)
1380   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1381   ac_dummy="$PATH"
1382   for ac_dir in $ac_dummy; do 
1383     test -z "$ac_dir" && ac_dir=.
1384     if test -f $ac_dir/$ac_word; then
1385       ac_cv_path_PWD_P="$ac_dir/$ac_word"
1386       break
1387     fi
1388   done
1389   IFS="$ac_save_ifs"
1390   test -z "$ac_cv_path_PWD_P" && ac_cv_path_PWD_P="no"
1391   ;;
1392 esac
1393 fi
1394 PWD_P="$ac_cv_path_PWD_P"
1395 if test -n "$PWD_P"; then
1396   echo "$ac_t""$PWD_P" 1>&6
1397 else
1398   echo "$ac_t""no" 1>&6
1399 fi
1400
1401 if test "$PWD_P" = no; then
1402   { echo "configure: error: *** A pwd binary could not be found." 1>&2; exit 1; }
1403 fi
1404
1405 # These programs are version sensitive.
1406 echo $ac_n "checking build system type""... $ac_c" 1>&6
1407 echo "configure:1408: checking build system type" >&5
1408
1409 build_alias=$build
1410 case "$build_alias" in
1411 NONE)
1412   case $nonopt in
1413   NONE) build_alias=$host_alias ;;
1414   *) build_alias=$nonopt ;;
1415   esac ;;
1416 esac
1417
1418 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1419 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1420 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1421 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1422 echo "$ac_t""$build" 1>&6
1423
1424 if test $host != $build; then
1425   ac_tool_prefix=${host_alias}-
1426 else
1427   ac_tool_prefix=
1428 fi
1429
1430 for ac_prog in ${ac_tool_prefix}gcc ${ac_tool_prefix}cc
1431 do
1432 # Extract the first word of "$ac_prog", so it can be a program name with args.
1433 set dummy $ac_prog; ac_word=$2
1434 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1435 echo "configure:1436: checking for $ac_word" >&5
1436 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1437   echo $ac_n "(cached) $ac_c" 1>&6
1438 else
1439   if test -n "$CC"; then
1440   ac_cv_prog_CC="$CC" # Let the user override the test.
1441 else
1442   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1443   ac_dummy="$PATH"
1444   for ac_dir in $ac_dummy; do
1445     test -z "$ac_dir" && ac_dir=.
1446     if test -f $ac_dir/$ac_word; then
1447       ac_cv_prog_CC="$ac_prog"
1448       break
1449     fi
1450   done
1451   IFS="$ac_save_ifs"
1452 fi
1453 fi
1454 CC="$ac_cv_prog_CC"
1455 if test -n "$CC"; then
1456   echo "$ac_t""$CC" 1>&6
1457 else
1458   echo "$ac_t""no" 1>&6
1459 fi
1460
1461 test -n "$CC" && break
1462 done
1463
1464 if test -z "$CC"; then
1465   ac_verc_fail=yes
1466 else
1467   # Found it, now check the version.
1468   echo $ac_n "checking version of $CC""... $ac_c" 1>&6
1469 echo "configure:1470: checking version of $CC" >&5
1470   ac_prog_version=`$CC -v 2>&1 | sed -n 's/^.*version \([egcygnustpi-]*[0-9.]*\).*$/\1/p'`
1471   case $ac_prog_version in
1472     '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
1473     *gcc-2.9[5-9].*|*2.8.[1-9]*|*2.9|*2.9.[0-9]*|2.9[5-9]*|3.[0-9]*|cygnus-2.9[1-9]*|gcc-2.9[5-9]|gcc-2.1[0-9][0-9]|sgicc-*)
1474        ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
1475     *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
1476
1477   esac
1478   echo "$ac_t""$ac_prog_version" 1>&6
1479 fi
1480 if test $ac_verc_fail = yes; then
1481   critic_missing=gcc
1482 fi
1483
1484 for ac_prog in gnumake gmake make
1485 do
1486 # Extract the first word of "$ac_prog", so it can be a program name with args.
1487 set dummy $ac_prog; ac_word=$2
1488 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1489 echo "configure:1490: checking for $ac_word" >&5
1490 if eval "test \"`echo '$''{'ac_cv_prog_MAKE'+set}'`\" = set"; then
1491   echo $ac_n "(cached) $ac_c" 1>&6
1492 else
1493   if test -n "$MAKE"; then
1494   ac_cv_prog_MAKE="$MAKE" # Let the user override the test.
1495 else
1496   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1497   ac_dummy="$PATH"
1498   for ac_dir in $ac_dummy; do
1499     test -z "$ac_dir" && ac_dir=.
1500     if test -f $ac_dir/$ac_word; then
1501       ac_cv_prog_MAKE="$ac_prog"
1502       break
1503     fi
1504   done
1505   IFS="$ac_save_ifs"
1506 fi
1507 fi
1508 MAKE="$ac_cv_prog_MAKE"
1509 if test -n "$MAKE"; then
1510   echo "$ac_t""$MAKE" 1>&6
1511 else
1512   echo "$ac_t""no" 1>&6
1513 fi
1514
1515 test -n "$MAKE" && break
1516 done
1517
1518 if test -z "$MAKE"; then
1519   ac_verc_fail=yes
1520 else
1521   # Found it, now check the version.
1522   echo $ac_n "checking version of $MAKE""... $ac_c" 1>&6
1523 echo "configure:1524: checking version of $MAKE" >&5
1524   ac_prog_version=`$MAKE --version 2>&1 | sed -n 's/^.*GNU Make[^0-9]*\([0-9][0-9.]*\).*$/\1/p'`
1525   case $ac_prog_version in
1526     '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
1527     3.79* | 3.[89]*)
1528        ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
1529     *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
1530
1531   esac
1532   echo "$ac_t""$ac_prog_version" 1>&6
1533 fi
1534 if test $ac_verc_fail = yes; then
1535   critic_missing="$critic_missing make"
1536 fi
1537
1538
1539
1540 if test -n "$critic_missing"; then
1541 { echo "configure: error: 
1542 *** These critical programs are missing or too old:$critic_missing
1543 *** Check the INSTALL file for required versions." 1>&2; exit 1; }
1544 fi
1545
1546
1547 for ac_prog in gnumsgfmt gmsgfmt msgfmt
1548 do
1549 # Extract the first word of "$ac_prog", so it can be a program name with args.
1550 set dummy $ac_prog; ac_word=$2
1551 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1552 echo "configure:1553: checking for $ac_word" >&5
1553 if eval "test \"`echo '$''{'ac_cv_prog_MSGFMT'+set}'`\" = set"; then
1554   echo $ac_n "(cached) $ac_c" 1>&6
1555 else
1556   if test -n "$MSGFMT"; then
1557   ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
1558 else
1559   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1560   ac_dummy="$PATH"
1561   for ac_dir in $ac_dummy; do
1562     test -z "$ac_dir" && ac_dir=.
1563     if test -f $ac_dir/$ac_word; then
1564       ac_cv_prog_MSGFMT="$ac_prog"
1565       break
1566     fi
1567   done
1568   IFS="$ac_save_ifs"
1569 fi
1570 fi
1571 MSGFMT="$ac_cv_prog_MSGFMT"
1572 if test -n "$MSGFMT"; then
1573   echo "$ac_t""$MSGFMT" 1>&6
1574 else
1575   echo "$ac_t""no" 1>&6
1576 fi
1577
1578 test -n "$MSGFMT" && break
1579 done
1580
1581 if test -z "$MSGFMT"; then
1582   ac_verc_fail=yes
1583 else
1584   # Found it, now check the version.
1585   echo $ac_n "checking version of $MSGFMT""... $ac_c" 1>&6
1586 echo "configure:1587: checking version of $MSGFMT" >&5
1587   ac_prog_version=`$MSGFMT --version 2>&1 | sed -n 's/^.*GNU gettext.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
1588   case $ac_prog_version in
1589     '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
1590     0.10.3[6-9]* | 0.10.[4-9][0-9]* | 0.1[1-9]* | 0.[2-9][0-9]* | [1-9].*)
1591        ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
1592     *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
1593
1594   esac
1595   echo "$ac_t""$ac_prog_version" 1>&6
1596 fi
1597 if test $ac_verc_fail = yes; then
1598   MSGFMT=: aux_missing="$aux_missing msgfmt"
1599 fi
1600
1601 for ac_prog in makeinfo
1602 do
1603 # Extract the first word of "$ac_prog", so it can be a program name with args.
1604 set dummy $ac_prog; ac_word=$2
1605 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1606 echo "configure:1607: checking for $ac_word" >&5
1607 if eval "test \"`echo '$''{'ac_cv_prog_MAKEINFO'+set}'`\" = set"; then
1608   echo $ac_n "(cached) $ac_c" 1>&6
1609 else
1610   if test -n "$MAKEINFO"; then
1611   ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
1612 else
1613   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1614   ac_dummy="$PATH"
1615   for ac_dir in $ac_dummy; do
1616     test -z "$ac_dir" && ac_dir=.
1617     if test -f $ac_dir/$ac_word; then
1618       ac_cv_prog_MAKEINFO="$ac_prog"
1619       break
1620     fi
1621   done
1622   IFS="$ac_save_ifs"
1623 fi
1624 fi
1625 MAKEINFO="$ac_cv_prog_MAKEINFO"
1626 if test -n "$MAKEINFO"; then
1627   echo "$ac_t""$MAKEINFO" 1>&6
1628 else
1629   echo "$ac_t""no" 1>&6
1630 fi
1631
1632 test -n "$MAKEINFO" && break
1633 done
1634
1635 if test -z "$MAKEINFO"; then
1636   ac_verc_fail=yes
1637 else
1638   # Found it, now check the version.
1639   echo $ac_n "checking version of $MAKEINFO""... $ac_c" 1>&6
1640 echo "configure:1641: checking version of $MAKEINFO" >&5
1641   ac_prog_version=`$MAKEINFO --version 2>&1 | sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
1642   case $ac_prog_version in
1643     '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
1644     4.*)
1645        ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
1646     *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
1647
1648   esac
1649   echo "$ac_t""$ac_prog_version" 1>&6
1650 fi
1651 if test $ac_verc_fail = yes; then
1652   MAKEINFO=: aux_missing="$aux_missing makeinfo"
1653 fi
1654
1655 for ac_prog in sed
1656 do
1657 # Extract the first word of "$ac_prog", so it can be a program name with args.
1658 set dummy $ac_prog; ac_word=$2
1659 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1660 echo "configure:1661: checking for $ac_word" >&5
1661 if eval "test \"`echo '$''{'ac_cv_prog_SED'+set}'`\" = set"; then
1662   echo $ac_n "(cached) $ac_c" 1>&6
1663 else
1664   if test -n "$SED"; then
1665   ac_cv_prog_SED="$SED" # Let the user override the test.
1666 else
1667   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1668   ac_dummy="$PATH"
1669   for ac_dir in $ac_dummy; do
1670     test -z "$ac_dir" && ac_dir=.
1671     if test -f $ac_dir/$ac_word; then
1672       ac_cv_prog_SED="$ac_prog"
1673       break
1674     fi
1675   done
1676   IFS="$ac_save_ifs"
1677 fi
1678 fi
1679 SED="$ac_cv_prog_SED"
1680 if test -n "$SED"; then
1681   echo "$ac_t""$SED" 1>&6
1682 else
1683   echo "$ac_t""no" 1>&6
1684 fi
1685
1686 test -n "$SED" && break
1687 done
1688
1689 if test -z "$SED"; then
1690   ac_verc_fail=yes
1691 else
1692   # Found it, now check the version.
1693   echo $ac_n "checking version of $SED""... $ac_c" 1>&6
1694 echo "configure:1695: checking version of $SED" >&5
1695   ac_prog_version=`$SED --version 2>&1 | sed -n 's/^.*GNU sed version \([0-9]*\.[0-9.]*\).*$/\1/p'`
1696   case $ac_prog_version in
1697     '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
1698     3.0[2-9]*|3.[1-9]*|[4-9]*)
1699        ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
1700     *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
1701
1702   esac
1703   echo "$ac_t""$ac_prog_version" 1>&6
1704 fi
1705 if test $ac_verc_fail = yes; then
1706   SED=: aux_missing="$aux_missing sed"
1707 fi
1708
1709
1710
1711 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1712 echo "configure:1713: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1713 if eval "test \"`echo '$''{'ac_cv_prog_cc_works'+set}'`\" = set"; then
1714   echo $ac_n "(cached) $ac_c" 1>&6
1715 else
1716   
1717 ac_ext=c
1718 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1719 ac_cpp='$CPP $CPPFLAGS'
1720 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1721 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1722 cross_compiling=$ac_cv_prog_cc_cross
1723
1724 cat > conftest.$ac_ext << EOF
1725
1726 #line 1727 "configure"
1727 #include "confdefs.h"
1728
1729 main(){return(0);}
1730 EOF
1731 if { (eval echo configure:1732: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1732   ac_cv_prog_cc_works=yes
1733   # If we can't run a trivial program, we are probably using a cross compiler.
1734   if (./conftest; exit) 2>/dev/null; then
1735     ac_cv_prog_cc_cross=no
1736   else
1737     ac_cv_prog_cc_cross=yes
1738   fi
1739 else
1740   echo "configure: failed program was:" >&5
1741   cat conftest.$ac_ext >&5
1742   ac_cv_prog_cc_works=no
1743 fi
1744 rm -fr conftest*
1745 ac_ext=c
1746 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1747 ac_cpp='$CPP $CPPFLAGS'
1748 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1749 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1750 cross_compiling=$ac_cv_prog_cc_cross
1751
1752 fi
1753
1754 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1755 if test $ac_cv_prog_cc_works = no; then
1756  cross_linkable=no
1757  ac_cv_prog_cc_cross=yes
1758 else
1759  cross_linkable=yes
1760 fi
1761 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1762 echo "configure:1763: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1763 if eval "test \"`echo '$''{'ac_cv_prog_cc_cross'+set}'`\" = set"; then
1764   echo $ac_n "(cached) $ac_c" 1>&6
1765 else
1766   :
1767 fi
1768
1769 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1770
1771 cross_compiling=$ac_cv_prog_cc_cross
1772
1773 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1774 echo "configure:1775: checking whether we are using GNU C" >&5
1775 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1776   echo $ac_n "(cached) $ac_c" 1>&6
1777 else
1778   cat > conftest.c <<EOF
1779 #ifdef __GNUC__
1780   yes;
1781 #endif
1782 EOF
1783 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1784: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1784   ac_cv_prog_gcc=yes
1785 else
1786   ac_cv_prog_gcc=no
1787 fi
1788 fi
1789
1790 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1791 if test $ac_cv_prog_gcc != yes; then
1792   { echo "configure: error: GNU libc must be compiled using GNU CC" 1>&2; exit 1; }
1793 fi
1794
1795 echo $ac_n "checking build system type""... $ac_c" 1>&6
1796 echo "configure:1797: checking build system type" >&5
1797
1798 build_alias=$build
1799 case "$build_alias" in
1800 NONE)
1801   case $nonopt in
1802   NONE) build_alias=$host_alias ;;
1803   *) build_alias=$nonopt ;;
1804   esac ;;
1805 esac
1806
1807 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1808 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1809 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1810 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1811 echo "$ac_t""$build" 1>&6
1812
1813 if test $host != $build; then
1814   for ac_prog in gcc cc
1815 do
1816 # Extract the first word of "$ac_prog", so it can be a program name with args.
1817 set dummy $ac_prog; ac_word=$2
1818 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1819 echo "configure:1820: checking for $ac_word" >&5
1820 if eval "test \"`echo '$''{'ac_cv_prog_BUILD_CC'+set}'`\" = set"; then
1821   echo $ac_n "(cached) $ac_c" 1>&6
1822 else
1823   if test -n "$BUILD_CC"; then
1824   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
1825 else
1826   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1827   ac_dummy="$PATH"
1828   for ac_dir in $ac_dummy; do
1829     test -z "$ac_dir" && ac_dir=.
1830     if test -f $ac_dir/$ac_word; then
1831       ac_cv_prog_BUILD_CC="$ac_prog"
1832       break
1833     fi
1834   done
1835   IFS="$ac_save_ifs"
1836 fi
1837 fi
1838 BUILD_CC="$ac_cv_prog_BUILD_CC"
1839 if test -n "$BUILD_CC"; then
1840   echo "$ac_t""$BUILD_CC" 1>&6
1841 else
1842   echo "$ac_t""no" 1>&6
1843 fi
1844
1845 test -n "$BUILD_CC" && break
1846 done
1847
1848 fi
1849
1850 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1851 echo "configure:1852: checking how to run the C preprocessor" >&5
1852 # On Suns, sometimes $CPP names a directory.
1853 if test -n "$CPP" && test -d "$CPP"; then
1854   CPP=
1855 fi
1856 if test -z "$CPP"; then
1857 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1858   echo $ac_n "(cached) $ac_c" 1>&6
1859 else
1860     # This must be in double quotes, not single quotes, because CPP may get
1861   # substituted into the Makefile and "${CC-cc}" will confuse make.
1862   CPP="${CC-cc} -E"
1863   # On the NeXT, cc -E runs the code through the compiler's parser,
1864   # not just through cpp.
1865   cat > conftest.$ac_ext <<EOF
1866 #line 1867 "configure"
1867 #include "confdefs.h"
1868 #include <assert.h>
1869 Syntax Error
1870 EOF
1871 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1872 { (eval echo configure:1873: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1873 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1874 if test -z "$ac_err"; then
1875   :
1876 else
1877   echo "$ac_err" >&5
1878   echo "configure: failed program was:" >&5
1879   cat conftest.$ac_ext >&5
1880   rm -rf conftest*
1881   CPP="${CC-cc} -E -traditional-cpp"
1882   cat > conftest.$ac_ext <<EOF
1883 #line 1884 "configure"
1884 #include "confdefs.h"
1885 #include <assert.h>
1886 Syntax Error
1887 EOF
1888 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1889 { (eval echo configure:1890: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1890 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1891 if test -z "$ac_err"; then
1892   :
1893 else
1894   echo "$ac_err" >&5
1895   echo "configure: failed program was:" >&5
1896   cat conftest.$ac_ext >&5
1897   rm -rf conftest*
1898   CPP="${CC-cc} -nologo -E"
1899   cat > conftest.$ac_ext <<EOF
1900 #line 1901 "configure"
1901 #include "confdefs.h"
1902 #include <assert.h>
1903 Syntax Error
1904 EOF
1905 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1906 { (eval echo configure:1907: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1907 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1908 if test -z "$ac_err"; then
1909   :
1910 else
1911   echo "$ac_err" >&5
1912   echo "configure: failed program was:" >&5
1913   cat conftest.$ac_ext >&5
1914   rm -rf conftest*
1915   CPP=/lib/cpp
1916 fi
1917 rm -f conftest*
1918 fi
1919 rm -f conftest*
1920 fi
1921 rm -f conftest*
1922   ac_cv_prog_CPP="$CPP"
1923 fi
1924   CPP="$ac_cv_prog_CPP"
1925 else
1926   ac_cv_prog_CPP="$CPP"
1927 fi
1928 echo "$ac_t""$CPP" 1>&6
1929
1930 # Was a --with-binutils option given?
1931 if test -n "$path_binutils"; then
1932     # Make absolute; ensure a single trailing slash.
1933     path_binutils=`(cd $path_binutils; pwd) | sed 's%/*$%/%'`
1934     CC="$CC -B$path_binutils"
1935 fi
1936 AS=`$CC -print-prog-name=as`
1937 LD=`$CC -print-prog-name=ld`
1938 AR=`$CC -print-prog-name=ar`
1939
1940
1941 # ranlib has to be treated a bit differently since it might not exist at all.
1942 RANLIB=`$CC -print-prog-name=ranlib`
1943 if test $RANLIB = ranlib; then
1944 # This extra check has to happen since gcc simply echos the parameter in
1945 # case it cannot find the value in its own directories.
1946 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1947 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1948 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1949 echo "configure:1950: checking for $ac_word" >&5
1950 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1951   echo $ac_n "(cached) $ac_c" 1>&6
1952 else
1953   if test -n "$RANLIB"; then
1954   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1955 else
1956   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1957   ac_dummy="$PATH"
1958   for ac_dir in $ac_dummy; do
1959     test -z "$ac_dir" && ac_dir=.
1960     if test -f $ac_dir/$ac_word; then
1961       ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1962       break
1963     fi
1964   done
1965   IFS="$ac_save_ifs"
1966 fi
1967 fi
1968 RANLIB="$ac_cv_prog_RANLIB"
1969 if test -n "$RANLIB"; then
1970   echo "$ac_t""$RANLIB" 1>&6
1971 else
1972   echo "$ac_t""no" 1>&6
1973 fi
1974
1975
1976 if test -z "$ac_cv_prog_RANLIB"; then
1977 if test -n "$ac_tool_prefix"; then
1978   # Extract the first word of "ranlib", so it can be a program name with args.
1979 set dummy ranlib; ac_word=$2
1980 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1981 echo "configure:1982: checking for $ac_word" >&5
1982 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1983   echo $ac_n "(cached) $ac_c" 1>&6
1984 else
1985   if test -n "$RANLIB"; then
1986   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1987 else
1988   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1989   ac_dummy="$PATH"
1990   for ac_dir in $ac_dummy; do
1991     test -z "$ac_dir" && ac_dir=.
1992     if test -f $ac_dir/$ac_word; then
1993       ac_cv_prog_RANLIB="ranlib"
1994       break
1995     fi
1996   done
1997   IFS="$ac_save_ifs"
1998   test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1999 fi
2000 fi
2001 RANLIB="$ac_cv_prog_RANLIB"
2002 if test -n "$RANLIB"; then
2003   echo "$ac_t""$RANLIB" 1>&6
2004 else
2005   echo "$ac_t""no" 1>&6
2006 fi
2007
2008 else
2009   RANLIB=":"
2010 fi
2011 fi
2012
2013 fi
2014
2015
2016 # Determine whether we are using GNU binutils.
2017 echo $ac_n "checking whether $AS is GNU as""... $ac_c" 1>&6
2018 echo "configure:2019: checking whether $AS is GNU as" >&5
2019 if eval "test \"`echo '$''{'libc_cv_prog_as_gnu'+set}'`\" = set"; then
2020   echo $ac_n "(cached) $ac_c" 1>&6
2021 else
2022   # Most GNU programs take a -v and spit out some text including
2023 # the word 'GNU'.  Some try to read stdin, so give them /dev/null.
2024 if $AS -o conftest -v </dev/null 2>&1 | grep GNU > /dev/null 2>&1; then
2025   libc_cv_prog_as_gnu=yes
2026 else
2027   libc_cv_prog_as_gnu=no
2028 fi
2029 rm -fr contest*
2030 fi
2031
2032 echo "$ac_t""$libc_cv_prog_as_gnu" 1>&6
2033 rm -f a.out
2034 gnu_as=$libc_cv_prog_as_gnu
2035
2036 echo $ac_n "checking whether $LD is GNU ld""... $ac_c" 1>&6
2037 echo "configure:2038: checking whether $LD is GNU ld" >&5
2038 if eval "test \"`echo '$''{'libc_cv_prog_ld_gnu'+set}'`\" = set"; then
2039   echo $ac_n "(cached) $ac_c" 1>&6
2040 else
2041   # Most GNU programs take a -v and spit out some text including
2042 # the word 'GNU'.  Some try to read stdin, so give them /dev/null.
2043 if $LD -o conftest -v </dev/null 2>&1 | grep GNU > /dev/null 2>&1; then
2044   libc_cv_prog_ld_gnu=yes
2045 else
2046   libc_cv_prog_ld_gnu=no
2047 fi
2048 rm -fr contest*
2049 fi
2050
2051 echo "$ac_t""$libc_cv_prog_ld_gnu" 1>&6
2052 gnu_ld=$libc_cv_prog_ld_gnu
2053
2054 # Extract the first word of "${ac_tool_prefix}mig", so it can be a program name with args.
2055 set dummy ${ac_tool_prefix}mig; ac_word=$2
2056 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2057 echo "configure:2058: checking for $ac_word" >&5
2058 if eval "test \"`echo '$''{'ac_cv_prog_MIG'+set}'`\" = set"; then
2059   echo $ac_n "(cached) $ac_c" 1>&6
2060 else
2061   if test -n "$MIG"; then
2062   ac_cv_prog_MIG="$MIG" # Let the user override the test.
2063 else
2064   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2065   ac_dummy="$PATH"
2066   for ac_dir in $ac_dummy; do
2067     test -z "$ac_dir" && ac_dir=.
2068     if test -f $ac_dir/$ac_word; then
2069       ac_cv_prog_MIG="${ac_tool_prefix}mig"
2070       break
2071     fi
2072   done
2073   IFS="$ac_save_ifs"
2074   test -z "$ac_cv_prog_MIG" && ac_cv_prog_MIG="mig"
2075 fi
2076 fi
2077 MIG="$ac_cv_prog_MIG"
2078 if test -n "$MIG"; then
2079   echo "$ac_t""$MIG" 1>&6
2080 else
2081   echo "$ac_t""no" 1>&6
2082 fi
2083
2084
2085
2086
2087 # Accept binutils 2.10.1 or newer (and also any ia64 2.9 version)
2088 # XXX Commented out because it filters out too many good versions.
2089 # XXX --drepper
2090 # AC_CHECK_PROG_VER(AS, $AS, --version,
2091 #   [GNU assembler.* \([0-9]*\.[0-9.]*\(-ia64-[0-9]*\)*\)],
2092 #   [2.10.[1-9]* | 2.1[1-9]* | 2.9-ia64-*], AS=: critic_missing=t)
2093
2094 test -n "$aux_missing" && echo "configure: warning: 
2095 *** These auxiliary programs are missing or too old:$aux_missing
2096 *** some features will be disabled.
2097 *** Check the INSTALL file for required versions." 1>&2
2098
2099 # glibcbug.in wants to know the compiler version.
2100 CCVERSION=`$CC -v 2>&1 | sed -n 's/gcc version //p'`
2101
2102
2103 # if using special system headers, find out the compiler's sekrit
2104 # header directory and add that to the list.  NOTE: Only does the right
2105 # thing on a system that doesn't need fixincludes.  (Not presently a problem.)
2106 if test -n "$sysheaders"; then
2107   ccheaders=`$CC -print-file-name=include`
2108   SYSINCLUDES="-nostdinc -isystem $ccheaders -isystem $sysheaders"
2109 fi
2110
2111
2112 # check if ranlib is necessary
2113 echo $ac_n "checking whether ranlib is necessary""... $ac_c" 1>&6
2114 echo "configure:2115: checking whether ranlib is necessary" >&5
2115 if eval "test \"`echo '$''{'libc_cv_ranlib_necessary'+set}'`\" = set"; then
2116   echo $ac_n "(cached) $ac_c" 1>&6
2117 else
2118   cat > conftest.c <<EOF
2119 int a;
2120 char b;
2121 void c(void) {}
2122 EOF
2123 $CC $CFLAGS -c conftest.c
2124 $AR cr conftest.a conftest.c
2125 cp conftest.a conftest2.a
2126 $RANLIB conftest.a
2127 if cmp -s conftest.a conftest2.a; then
2128   libc_cv_ranlib_necessary=no
2129 else
2130   libc_cv_ranlib_necessary=yes
2131 fi
2132 rm -rf conftest*
2133 fi
2134
2135 echo "$ac_t""$libc_cv_ranlib_necessary" 1>&6
2136 if test "$libc_cv_ranlib_necessary" = no; then
2137  RANLIB=:
2138 fi
2139
2140 # Test if LD_LIBRARY_PATH contains the notation for the current directory
2141 # since this would lead to problems installing/building glibc.
2142 # LD_LIBRARY_PATH contains the current directory if one of the following
2143 # is true:
2144 # - one of the terminals (":" and ";") is the first or last sign
2145 # - two terminals occur directly after each other
2146 # - the path contains an element with a dot in it
2147 echo $ac_n "checking LD_LIBRARY_PATH variable""... $ac_c" 1>&6
2148 echo "configure:2149: checking LD_LIBRARY_PATH variable" >&5
2149 case ${LD_LIBRARY_PATH} in
2150   [:\;]* | *[:\;] | *[:\;][:\;]* |  *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
2151     ld_library_path_setting="contains current directory"
2152     ;;
2153   *)
2154     ld_library_path_setting="ok"
2155     ;;
2156 esac
2157 echo "$ac_t""$ld_library_path_setting" 1>&6
2158 if test "$ld_library_path_setting" != "ok"; then
2159 { echo "configure: error: 
2160 *** LD_LIBRARY_PATH shouldn't contain the current directory when
2161 *** building glibc. Please change the environment variable
2162 *** and run configure again." 1>&2; exit 1; }
2163 fi
2164
2165 echo $ac_n "checking whether GCC supports -static-libgcc""... $ac_c" 1>&6
2166 echo "configure:2167: checking whether GCC supports -static-libgcc" >&5
2167 if eval "test \"`echo '$''{'libc_cv_gcc_static_libgcc'+set}'`\" = set"; then
2168   echo $ac_n "(cached) $ac_c" 1>&6
2169 else
2170   if $CC -v -static-libgcc 2>&1 | grep -q 'unrecognized option.*static-libgcc'; then
2171   libc_cv_gcc_static_libgcc=
2172 else
2173   libc_cv_gcc_static_libgcc=-static-libgcc
2174 fi
2175 fi
2176
2177 echo "$ac_t""$libc_cv_gcc_static_libgcc" 1>&6
2178
2179
2180 # Extract the first word of "bash", so it can be a program name with args.
2181 set dummy bash; ac_word=$2
2182 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2183 echo "configure:2184: checking for $ac_word" >&5
2184 if eval "test \"`echo '$''{'ac_cv_path_BASH'+set}'`\" = set"; then
2185   echo $ac_n "(cached) $ac_c" 1>&6
2186 else
2187   case "$BASH" in
2188   /*)
2189   ac_cv_path_BASH="$BASH" # Let the user override the test with a path.
2190   ;;
2191   ?:/*)                  
2192   ac_cv_path_BASH="$BASH" # Let the user override the test with a dos path.
2193   ;;
2194   *)
2195   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2196   ac_dummy="$PATH"
2197   for ac_dir in $ac_dummy; do 
2198     test -z "$ac_dir" && ac_dir=.
2199     if test -f $ac_dir/$ac_word; then
2200       ac_cv_path_BASH="$ac_dir/$ac_word"
2201       break
2202     fi
2203   done
2204   IFS="$ac_save_ifs"
2205   test -z "$ac_cv_path_BASH" && ac_cv_path_BASH="no"
2206   ;;
2207 esac
2208 fi
2209 BASH="$ac_cv_path_BASH"
2210 if test -n "$BASH"; then
2211   echo "$ac_t""$BASH" 1>&6
2212 else
2213   echo "$ac_t""no" 1>&6
2214 fi
2215
2216 if test "$BASH" != no &&
2217    $BASH -c 'test "$BASH_VERSINFO" \
2218              && test "$BASH_VERSINFO" -ge 2 >&/dev/null'; then
2219   libc_cv_have_bash2=yes
2220 else
2221   libc_cv_have_bash2=no
2222 fi
2223
2224
2225 if test "$BASH" = no; then
2226   # Extract the first word of "ksh", so it can be a program name with args.
2227 set dummy ksh; ac_word=$2
2228 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2229 echo "configure:2230: checking for $ac_word" >&5
2230 if eval "test \"`echo '$''{'ac_cv_path_KSH'+set}'`\" = set"; then
2231   echo $ac_n "(cached) $ac_c" 1>&6
2232 else
2233   case "$KSH" in
2234   /*)
2235   ac_cv_path_KSH="$KSH" # Let the user override the test with a path.
2236   ;;
2237   ?:/*)                  
2238   ac_cv_path_KSH="$KSH" # Let the user override the test with a dos path.
2239   ;;
2240   *)
2241   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2242   ac_dummy="$PATH"
2243   for ac_dir in $ac_dummy; do 
2244     test -z "$ac_dir" && ac_dir=.
2245     if test -f $ac_dir/$ac_word; then
2246       ac_cv_path_KSH="$ac_dir/$ac_word"
2247       break
2248     fi
2249   done
2250   IFS="$ac_save_ifs"
2251   test -z "$ac_cv_path_KSH" && ac_cv_path_KSH="no"
2252   ;;
2253 esac
2254 fi
2255 KSH="$ac_cv_path_KSH"
2256 if test -n "$KSH"; then
2257   echo "$ac_t""$KSH" 1>&6
2258 else
2259   echo "$ac_t""no" 1>&6
2260 fi
2261
2262   if test "$KSH" = no; then
2263     libc_cv_have_ksh=no
2264   else
2265     libc_cv_have_ksh=yes
2266   fi
2267 else
2268   KSH="$BASH"
2269   
2270   libc_cv_have_ksh=yes
2271 fi
2272
2273
2274 for ac_prog in gawk mawk nawk awk
2275 do
2276 # Extract the first word of "$ac_prog", so it can be a program name with args.
2277 set dummy $ac_prog; ac_word=$2
2278 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2279 echo "configure:2280: checking for $ac_word" >&5
2280 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
2281   echo $ac_n "(cached) $ac_c" 1>&6
2282 else
2283   if test -n "$AWK"; then
2284   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2285 else
2286   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2287   ac_dummy="$PATH"
2288   for ac_dir in $ac_dummy; do
2289     test -z "$ac_dir" && ac_dir=.
2290     if test -f $ac_dir/$ac_word; then
2291       ac_cv_prog_AWK="$ac_prog"
2292       break
2293     fi
2294   done
2295   IFS="$ac_save_ifs"
2296 fi
2297 fi
2298 AWK="$ac_cv_prog_AWK"
2299 if test -n "$AWK"; then
2300   echo "$ac_t""$AWK" 1>&6
2301 else
2302   echo "$ac_t""no" 1>&6
2303 fi
2304
2305 test -n "$AWK" && break
2306 done
2307
2308 # Extract the first word of "perl", so it can be a program name with args.
2309 set dummy perl; ac_word=$2
2310 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2311 echo "configure:2312: checking for $ac_word" >&5
2312 if eval "test \"`echo '$''{'ac_cv_path_PERL'+set}'`\" = set"; then
2313   echo $ac_n "(cached) $ac_c" 1>&6
2314 else
2315   case "$PERL" in
2316   /*)
2317   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
2318   ;;
2319   ?:/*)                  
2320   ac_cv_path_PERL="$PERL" # Let the user override the test with a dos path.
2321   ;;
2322   *)
2323   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2324   ac_dummy="$PATH"
2325   for ac_dir in $ac_dummy; do 
2326     test -z "$ac_dir" && ac_dir=.
2327     if test -f $ac_dir/$ac_word; then
2328       ac_cv_path_PERL="$ac_dir/$ac_word"
2329       break
2330     fi
2331   done
2332   IFS="$ac_save_ifs"
2333   test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="no"
2334   ;;
2335 esac
2336 fi
2337 PERL="$ac_cv_path_PERL"
2338 if test -n "$PERL"; then
2339   echo "$ac_t""$PERL" 1>&6
2340 else
2341   echo "$ac_t""no" 1>&6
2342 fi
2343
2344 if test "$PERL" != no &&
2345    (eval `$PERL -V:apiversion`; test `expr "$apiversion" \< 5` -ne 0); then
2346   PERL=no
2347 fi
2348 # Extract the first word of "install-info", so it can be a program name with args.
2349 set dummy install-info; ac_word=$2
2350 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2351 echo "configure:2352: checking for $ac_word" >&5
2352 if eval "test \"`echo '$''{'ac_cv_path_INSTALL_INFO'+set}'`\" = set"; then
2353   echo $ac_n "(cached) $ac_c" 1>&6
2354 else
2355   case "$INSTALL_INFO" in
2356   /*)
2357   ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
2358   ;;
2359   ?:/*)                  
2360   ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a dos path.
2361   ;;
2362   *)
2363   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2364   ac_dummy="$PATH:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin"
2365   for ac_dir in $ac_dummy; do 
2366     test -z "$ac_dir" && ac_dir=.
2367     if test -f $ac_dir/$ac_word; then
2368       ac_cv_path_INSTALL_INFO="$ac_dir/$ac_word"
2369       break
2370     fi
2371   done
2372   IFS="$ac_save_ifs"
2373   test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO="no"
2374   ;;
2375 esac
2376 fi
2377 INSTALL_INFO="$ac_cv_path_INSTALL_INFO"
2378 if test -n "$INSTALL_INFO"; then
2379   echo "$ac_t""$INSTALL_INFO" 1>&6
2380 else
2381   echo "$ac_t""no" 1>&6
2382 fi
2383
2384 if test "$INSTALL_INFO" != "no"; then
2385 echo $ac_n "checking for old Debian install-info""... $ac_c" 1>&6
2386 echo "configure:2387: checking for old Debian install-info" >&5
2387 if eval "test \"`echo '$''{'libc_cv_old_debian_install_info'+set}'`\" = set"; then
2388   echo $ac_n "(cached) $ac_c" 1>&6
2389 else
2390   mkdir conftest.d
2391   # There is a hard ^_ on the next line.  I am open to better ideas.
2392   (echo '\1f'
2393   echo 'File: dir       Node: Top       This is the top of the INFO tree'
2394   echo '* Menu:') >conftest.d/dir
2395   (echo 'INFO-DIR-SECTION i-d-s works'
2396   echo 'START-INFO-DIR-ENTRY'
2397   echo '* Prog: (prog).   Program.'
2398   echo 'END-INFO-DIR-ENTRY') >conftest.d/prog.info
2399   if $INSTALL_INFO --info-dir=conftest.d conftest.d/prog.info >&5 2>&1
2400   then
2401     if grep -s 'i-d-s works' conftest.d/dir >/dev/null
2402     then libc_cv_old_debian_install_info=no
2403     else libc_cv_old_debian_install_info=yes
2404     fi
2405   else libc_cv_old_debian_install_info=no testfailed=t
2406   fi
2407   rm -fr conftest.d
2408 fi
2409
2410 echo "$ac_t""$libc_cv_old_debian_install_info" 1>&6
2411 if test -n "$testfailed"
2412 then echo "configure: warning: install-info errored out, check config.log" 1>&2
2413 fi
2414 OLD_DEBIAN_INSTALL_INFO=$libc_cv_old_debian_install_info
2415 fi
2416
2417
2418 # Extract the first word of "bison", so it can be a program name with args.
2419 set dummy bison; ac_word=$2
2420 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2421 echo "configure:2422: checking for $ac_word" >&5
2422 if eval "test \"`echo '$''{'ac_cv_path_BISON'+set}'`\" = set"; then
2423   echo $ac_n "(cached) $ac_c" 1>&6
2424 else
2425   case "$BISON" in
2426   /*)
2427   ac_cv_path_BISON="$BISON" # Let the user override the test with a path.
2428   ;;
2429   ?:/*)                  
2430   ac_cv_path_BISON="$BISON" # Let the user override the test with a dos path.
2431   ;;
2432   *)
2433   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2434   ac_dummy="$PATH:/usr/local/bin:/usr/bin:/bin"
2435   for ac_dir in $ac_dummy; do 
2436     test -z "$ac_dir" && ac_dir=.
2437     if test -f $ac_dir/$ac_word; then
2438       ac_cv_path_BISON="$ac_dir/$ac_word"
2439       break
2440     fi
2441   done
2442   IFS="$ac_save_ifs"
2443   test -z "$ac_cv_path_BISON" && ac_cv_path_BISON="no"
2444   ;;
2445 esac
2446 fi
2447 BISON="$ac_cv_path_BISON"
2448 if test -n "$BISON"; then
2449   echo "$ac_t""$BISON" 1>&6
2450 else
2451   echo "$ac_t""no" 1>&6
2452 fi
2453
2454
2455 echo $ac_n "checking for signed size_t type""... $ac_c" 1>&6
2456 echo "configure:2457: checking for signed size_t type" >&5
2457 if eval "test \"`echo '$''{'libc_cv_signed_size_t'+set}'`\" = set"; then
2458   echo $ac_n "(cached) $ac_c" 1>&6
2459 else
2460   echo '#include <stddef.h>
2461 FOOBAR __SIZE_TYPE__ FOOBAR' > conftest.c
2462 if eval "$ac_cpp conftest.c 2>/dev/null" \
2463 | grep '^FOOBAR.*unsigned.*FOOBAR$' >/dev/null; then
2464   libc_cv_signed_size_t=no
2465 else
2466   libc_cv_signed_size_t=yes
2467 fi
2468 rm -f conftest*
2469 fi
2470
2471 echo "$ac_t""$libc_cv_signed_size_t" 1>&6
2472 if test $libc_cv_signed_size_t = yes; then
2473     cat >> confdefs.h <<\EOF
2474 #undef __SIZE_TYPE__
2475 #define __SIZE_TYPE__ unsigned
2476 EOF
2477 fi
2478
2479 echo $ac_n "checking for libc-friendly stddef.h""... $ac_c" 1>&6
2480 echo "configure:2481: checking for libc-friendly stddef.h" >&5
2481 if eval "test \"`echo '$''{'libc_cv_friendly_stddef'+set}'`\" = set"; then
2482   echo $ac_n "(cached) $ac_c" 1>&6
2483 else
2484   cat > conftest.$ac_ext <<EOF
2485 #line 2486 "configure"
2486 #include "confdefs.h"
2487 #define __need_size_t
2488 #define __need_wchar_t
2489 #include <stddef.h>
2490 #define __need_NULL
2491 #include <stddef.h>
2492 int main() {
2493 size_t size; wchar_t wchar;
2494 #ifdef offsetof
2495 #error stddef.h ignored __need_*
2496 #endif
2497 if (&size == NULL || &wchar == NULL) abort ();
2498 ; return 0; }
2499 EOF
2500 if { (eval echo configure:2501: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2501   rm -rf conftest*
2502   libc_cv_friendly_stddef=yes
2503 else
2504   echo "configure: failed program was:" >&5
2505   cat conftest.$ac_ext >&5
2506   rm -rf conftest*
2507   libc_cv_friendly_stddef=no
2508 fi
2509 rm -f conftest*
2510 fi
2511
2512 echo "$ac_t""$libc_cv_friendly_stddef" 1>&6
2513 if test $libc_cv_friendly_stddef = yes; then
2514   config_vars="$config_vars
2515 override stddef.h = # The installed <stddef.h> seems to be libc-friendly."
2516 fi
2517
2518 echo $ac_n "checking whether we need to use -P to assemble .S files""... $ac_c" 1>&6
2519 echo "configure:2520: checking whether we need to use -P to assemble .S files" >&5
2520 if eval "test \"`echo '$''{'libc_cv_need_minus_P'+set}'`\" = set"; then
2521   echo $ac_n "(cached) $ac_c" 1>&6
2522 else
2523   cat > conftest.S <<EOF
2524 #include "confdefs.h"
2525 /* Nothing whatsoever.  */
2526 EOF
2527 if ${CC-cc} $CFLAGS -c conftest.S 2>/dev/null; then
2528   libc_cv_need_minus_P=no
2529 else
2530   libc_cv_need_minus_P=yes
2531 fi
2532 rm -f conftest*
2533 fi
2534
2535 echo "$ac_t""$libc_cv_need_minus_P" 1>&6
2536 if test $libc_cv_need_minus_P = yes; then
2537   config_vars="$config_vars
2538 asm-CPPFLAGS = -P # The assembler can't grok cpp's # line directives."
2539 fi
2540
2541 echo $ac_n "checking whether .text pseudo-op must be used""... $ac_c" 1>&6
2542 echo "configure:2543: checking whether .text pseudo-op must be used" >&5
2543 if eval "test \"`echo '$''{'libc_cv_dot_text'+set}'`\" = set"; then
2544   echo $ac_n "(cached) $ac_c" 1>&6
2545 else
2546   cat > conftest.s <<EOF
2547 .text
2548 EOF
2549 libc_cv_dot_text=
2550 if ${CC-cc} $CFLAGS -c conftest.s 2>/dev/null; then
2551   libc_cv_dot_text=.text
2552 fi
2553 rm -f conftest*
2554 fi
2555
2556 if test -z "$libc_cv_dot_text"; then
2557   echo "$ac_t""no" 1>&6
2558 else
2559   echo "$ac_t""yes" 1>&6
2560 fi
2561
2562 echo $ac_n "checking for assembler global-symbol directive""... $ac_c" 1>&6
2563 echo "configure:2564: checking for assembler global-symbol directive" >&5
2564 if eval "test \"`echo '$''{'libc_cv_asm_global_directive'+set}'`\" = set"; then
2565   echo $ac_n "(cached) $ac_c" 1>&6
2566 else
2567   libc_cv_asm_global_directive=UNKNOWN
2568 for ac_globl in .globl .global .EXPORT; do
2569   cat > conftest.s <<EOF
2570         ${libc_cv_dot_text}
2571         ${ac_globl} foo
2572 foo:
2573 EOF
2574   if ${CC-cc} $CFLAGS -c conftest.s 2>/dev/null; then
2575     libc_cv_asm_global_directive=${ac_globl}
2576   fi
2577   rm -f conftest*
2578   test $libc_cv_asm_global_directive != UNKNOWN && break
2579 done
2580 fi
2581
2582 echo "$ac_t""$libc_cv_asm_global_directive" 1>&6
2583 if test $libc_cv_asm_global_directive = UNKNOWN; then
2584   { echo "configure: error: cannot determine asm global directive" 1>&2; exit 1; }
2585 else
2586   cat >> confdefs.h <<EOF
2587 #define ASM_GLOBAL_DIRECTIVE ${libc_cv_asm_global_directive}
2588 EOF
2589
2590 fi
2591
2592 echo $ac_n "checking for .set assembler directive""... $ac_c" 1>&6
2593 echo "configure:2594: checking for .set assembler directive" >&5
2594 if eval "test \"`echo '$''{'libc_cv_asm_set_directive'+set}'`\" = set"; then
2595   echo $ac_n "(cached) $ac_c" 1>&6
2596 else
2597   cat > conftest.s <<EOF
2598 ${libc_cv_dot_text}
2599 foo:
2600 .set glibc_conftest_frobozz,foo
2601 $libc_cv_asm_global_directive glibc_conftest_frobozz
2602 EOF
2603 # The alpha-dec-osf1 assembler gives only a warning for `.set'
2604 # (but it doesn't work), so we must do a linking check to be sure.
2605 cat > conftest1.c <<\EOF
2606 extern int glibc_conftest_frobozz;
2607 main () { printf ("%d\n", glibc_conftest_frobozz); }
2608 EOF
2609 if ${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \
2610             -o conftest conftest.s conftest1.c 1>&5 2>&5; then
2611   libc_cv_asm_set_directive=yes
2612 else
2613   libc_cv_asm_set_directive=no
2614 fi
2615 rm -f conftest*
2616 fi
2617
2618 echo "$ac_t""$libc_cv_asm_set_directive" 1>&6
2619 if test $libc_cv_asm_set_directive = yes; then
2620   cat >> confdefs.h <<\EOF
2621 #define HAVE_ASM_SET_DIRECTIVE 1
2622 EOF
2623
2624 fi
2625
2626 # The Aix ld uses global .symbol_names instead of symbol_names.
2627 case "$os" in
2628 aix4.3*)
2629   cat >> confdefs.h <<\EOF
2630 #define HAVE_ASM_GLOBAL_DOT_NAME 1
2631 EOF
2632
2633 esac
2634
2635 echo $ac_n "checking for .symver assembler directive""... $ac_c" 1>&6
2636 echo "configure:2637: checking for .symver assembler directive" >&5
2637 if eval "test \"`echo '$''{'libc_cv_asm_symver_directive'+set}'`\" = set"; then
2638   echo $ac_n "(cached) $ac_c" 1>&6
2639 else
2640   cat > conftest.s <<EOF
2641 ${libc_cv_dot_text}
2642 _sym:
2643 .symver _sym,sym@VERS
2644 EOF
2645 if ${CC-cc} -c $CFLAGS $CPPFLAGS conftest.s 1>&5 2>&5; then
2646   libc_cv_asm_symver_directive=yes
2647 else
2648   libc_cv_asm_symver_directive=no
2649 fi
2650 rm -f conftest*
2651 fi
2652
2653 echo "$ac_t""$libc_cv_asm_symver_directive" 1>&6
2654 echo $ac_n "checking for ld --version-script""... $ac_c" 1>&6
2655 echo "configure:2656: checking for ld --version-script" >&5
2656 if eval "test \"`echo '$''{'libc_cv_ld_version_script_option'+set}'`\" = set"; then
2657   echo $ac_n "(cached) $ac_c" 1>&6
2658 else
2659   if test $libc_cv_asm_symver_directive = yes; then
2660   cat > conftest.s <<EOF
2661 ${libc_cv_dot_text}
2662 _sym:
2663 .symver _sym,sym@VERS
2664 EOF
2665   cat > conftest.map <<EOF
2666 VERS_1 {
2667         global: sym;
2668 };
2669
2670 VERS_2 {
2671         global: sym;
2672 } VERS_1;
2673 EOF
2674   if ${CC-cc} -c $CFLAGS $CPPFLAGS conftest.s 1>&5 2>&5; then
2675     if { ac_try='${CC-cc} $CFLAGS -shared -o conftest.so conftest.o
2676                                         -nostartfiles -nostdlib
2677                                         -Wl,--version-script,conftest.map
2678                        1>&5'; { (eval echo configure:2679: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; };
2679     then
2680       libc_cv_ld_version_script_option=yes
2681     else
2682       libc_cv_ld_version_script_option=no
2683     fi
2684   else
2685     libc_cv_ld_version_script_option=no
2686   fi
2687 else
2688   libc_cv_ld_version_script_option=no
2689 fi
2690 rm -f conftest*
2691 fi
2692
2693 echo "$ac_t""$libc_cv_ld_version_script_option" 1>&6
2694 if test $shared != no &&
2695    test $libc_cv_asm_symver_directive = yes &&
2696    test $libc_cv_ld_version_script_option = yes &&
2697    test $enable_versioning = yes; then
2698   VERSIONING=yes
2699   cat >> confdefs.h <<\EOF
2700 #define DO_VERSIONING 1
2701 EOF
2702
2703 else
2704   VERSIONING=no
2705 fi
2706
2707
2708 if test $elf = yes && test $shared != no && test $VERSIONING = no; then
2709   echo "\
2710 *** WARNING: You should not compile GNU libc without versioning. Not using
2711 *** versioning will introduce incompatibilities so that old binaries
2712 *** will not run anymore.
2713 *** For versioning you need recent binutils (binutils-2.8.1.0.23 or newer)."
2714 fi
2715 if test $elf = yes; then
2716   echo $ac_n "checking for .previous assembler directive""... $ac_c" 1>&6
2717 echo "configure:2718: checking for .previous assembler directive" >&5
2718 if eval "test \"`echo '$''{'libc_cv_asm_previous_directive'+set}'`\" = set"; then
2719   echo $ac_n "(cached) $ac_c" 1>&6
2720 else
2721     cat > conftest.s <<EOF
2722 .section foo_section
2723 .previous
2724 EOF
2725   if { ac_try='${CC-cc} -c $CFLAGS conftest.s 1>&5'; { (eval echo configure:2726: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
2726     libc_cv_asm_previous_directive=yes
2727   else
2728     libc_cv_asm_previous_directive=no
2729   fi
2730   rm -f conftest*
2731 fi
2732
2733 echo "$ac_t""$libc_cv_asm_previous_directive" 1>&6
2734   if test $libc_cv_asm_previous_directive = yes; then
2735     cat >> confdefs.h <<\EOF
2736 #define HAVE_ASM_PREVIOUS_DIRECTIVE 1
2737 EOF
2738
2739   else
2740     echo $ac_n "checking for .popsection assembler directive""... $ac_c" 1>&6
2741 echo "configure:2742: checking for .popsection assembler directive" >&5
2742 if eval "test \"`echo '$''{'libc_cv_asm_popsection_directive'+set}'`\" = set"; then
2743   echo $ac_n "(cached) $ac_c" 1>&6
2744 else
2745       cat > conftest.s <<EOF
2746 .pushsection foo_section
2747 .popsection
2748 EOF
2749     if { ac_try='${CC-cc} -c $CFLAGS conftest.s 1>&5'; { (eval echo configure:2750: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
2750       libc_cv_asm_popsection_directive=yes
2751     else
2752       libc_cv_asm_popsection_directive=no
2753     fi
2754     rm -f conftest*
2755 fi
2756
2757 echo "$ac_t""$libc_cv_asm_popsection_directive" 1>&6
2758     if test $libc_cv_asm_popsection_directive = yes; then
2759       cat >> confdefs.h <<\EOF
2760 #define HAVE_ASM_POPSECTION_DIRECTIVE 1
2761 EOF
2762
2763     fi
2764   fi
2765   echo $ac_n "checking for .protected and .hidden assembler directive""... $ac_c" 1>&6
2766 echo "configure:2767: checking for .protected and .hidden assembler directive" >&5
2767 if eval "test \"`echo '$''{'libc_cv_asm_protected_directive'+set}'`\" = set"; then
2768   echo $ac_n "(cached) $ac_c" 1>&6
2769 else
2770     cat > conftest.s <<EOF
2771 .protected foo
2772 foo:
2773 .hidden bar
2774 bar:
2775 EOF
2776   if { ac_try='${CC-cc} -c $CFLAGS conftest.s 1>&5'; { (eval echo configure:2777: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
2777     libc_cv_asm_protected_directive=yes
2778   else
2779     libc_cv_asm_protected_directive=no
2780   fi
2781   rm -f conftest*
2782 fi
2783
2784 echo "$ac_t""$libc_cv_asm_protected_directive" 1>&6
2785   
2786   cat >> confdefs.h <<\EOF
2787 #define HAVE_PROTECTED 1
2788 EOF
2789
2790   cat >> confdefs.h <<\EOF
2791 #define HAVE_HIDDEN 1
2792 EOF
2793
2794
2795   if test $libc_cv_asm_protected_directive = yes; then
2796     echo $ac_n "checking whether __attribute__((visibility())) is supported""... $ac_c" 1>&6
2797 echo "configure:2798: checking whether __attribute__((visibility())) is supported" >&5
2798 if eval "test \"`echo '$''{'libc_cv_visibility_attribute'+set}'`\" = set"; then
2799   echo $ac_n "(cached) $ac_c" 1>&6
2800 else
2801   cat > conftest.c <<EOF
2802                   int foo __attribute__ ((visibility ("hidden"))) = 1;
2803                   int bar __attribute__ ((visibility ("protected"))) = 1;
2804 EOF
2805                   libc_cv_visibility_attribute=no
2806                   if ${CC-cc} -Werror -S conftest.c -o conftest.s >/dev/null 2>&1; then
2807                     if grep '\.hidden.*foo' conftest.s >/dev/null; then
2808                       if grep '\.protected.*bar' conftest.s >/dev/null; then
2809                         libc_cv_visibility_attribute=yes
2810                       fi
2811                     fi
2812                   fi
2813                   rm -f conftest.cs
2814                  
2815 fi
2816
2817 echo "$ac_t""$libc_cv_visibility_attribute" 1>&6
2818     if test $libc_cv_visibility_attribute = yes; then
2819       cat >> confdefs.h <<\EOF
2820 #define HAVE_VISIBILITY_ATTRIBUTE 1
2821 EOF
2822
2823     fi
2824   fi
2825
2826   if test $libc_cv_visibility_attribute = yes -a $gnu_ld = yes; then
2827     echo $ac_n "checking whether to put _rtld_local into .sdata section""... $ac_c" 1>&6
2828 echo "configure:2829: checking whether to put _rtld_local into .sdata section" >&5
2829 if eval "test \"`echo '$''{'libc_cv_have_sdata_section'+set}'`\" = set"; then
2830   echo $ac_n "(cached) $ac_c" 1>&6
2831 else
2832   echo "int i;" > conftest.c
2833                   libc_cv_have_sdata_section=no
2834                   if ${CC-cc} -shared -Wl,--verbose conftest.c -o conftest.so 2>&1 \
2835                      | grep '\.sdata' >/dev/null; then
2836                     libc_cv_have_sdata_section=yes
2837                   fi
2838                   rm -f conftest.c conftest.so
2839                  
2840 fi
2841
2842 echo "$ac_t""$libc_cv_have_sdata_section" 1>&6
2843     if test $libc_cv_have_sdata_section = yes; then
2844       cat >> confdefs.h <<\EOF
2845 #define HAVE_SDATA_SECTION 1
2846 EOF
2847
2848     fi
2849   fi
2850
2851   echo $ac_n "checking for .preinit_array/.init_array/.fini_array support""... $ac_c" 1>&6
2852 echo "configure:2853: checking for .preinit_array/.init_array/.fini_array support" >&5
2853 if eval "test \"`echo '$''{'libc_cv_initfinit_array'+set}'`\" = set"; then
2854   echo $ac_n "(cached) $ac_c" 1>&6
2855 else
2856     cat > conftest.c <<EOF
2857 int _start (void) { return 0; }
2858 int __start (void) { return 0; }
2859 int foo (void) { return 1; }
2860 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
2861 EOF
2862   if { ac_try='${CC-cc} -o conftest conftest.c
2863                      -static -nostartfiles -nostdlib 1>&5'; { (eval echo configure:2864: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }
2864   then
2865     if readelf -S conftest | fgrep INIT_ARRAY > /dev/null; then
2866       libc_cv_initfinit_array=yes
2867     else
2868       libc_cv_initfinit_array=no
2869     fi
2870   else
2871     libc_cv_initfinit_array=no
2872   fi
2873   rm -f conftest*
2874 fi
2875
2876 echo "$ac_t""$libc_cv_initfinit_array" 1>&6
2877   
2878   if test $libc_cv_initfinit_array = yes; then
2879     cat >> confdefs.h <<\EOF
2880 #define HAVE_INITFINI_ARRAY 1
2881 EOF
2882
2883   fi
2884
2885   echo $ac_n "checking for -z nodelete option""... $ac_c" 1>&6
2886 echo "configure:2887: checking for -z nodelete option" >&5
2887 if eval "test \"`echo '$''{'libc_cv_z_nodelete'+set}'`\" = set"; then
2888   echo $ac_n "(cached) $ac_c" 1>&6
2889 else
2890     cat > conftest.c <<EOF
2891 int _start (void) { return 42; }
2892 EOF
2893   if { ac_try='${CC-cc} -shared -o conftest.so conftest.c
2894                      -nostartfiles -nostdlib
2895                      -Wl,--enable-new-dtags,-z,nodelete 1>&5'; { (eval echo configure:2896: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }
2896   then
2897     libc_cv_z_nodelete=yes
2898   else
2899     libc_cv_z_nodelete=no
2900   fi
2901   rm -f conftest*
2902 fi
2903
2904 echo "$ac_t""$libc_cv_z_nodelete" 1>&6
2905   
2906
2907   echo $ac_n "checking for -z nodlopen option""... $ac_c" 1>&6
2908 echo "configure:2909: checking for -z nodlopen option" >&5
2909 if eval "test \"`echo '$''{'libc_cv_z_nodlopen'+set}'`\" = set"; then
2910   echo $ac_n "(cached) $ac_c" 1>&6
2911 else
2912     cat > conftest.c <<EOF
2913 int _start (void) { return 42; }
2914 EOF
2915   if { ac_try='${CC-cc} -shared -o conftest.so conftest.c
2916                         -nostartfiles -nostdlib
2917                         -Wl,--enable-new-dtags,-z,nodlopen 1>&5'; { (eval echo configure:2918: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }
2918   then
2919     libc_cv_z_nodlopen=yes
2920   else
2921     libc_cv_z_nodlopen=no
2922   fi
2923   rm -f conftest*
2924 fi
2925
2926 echo "$ac_t""$libc_cv_z_nodlopen" 1>&6
2927   
2928
2929   echo $ac_n "checking for -z initfirst option""... $ac_c" 1>&6
2930 echo "configure:2931: checking for -z initfirst option" >&5
2931 if eval "test \"`echo '$''{'libc_cv_z_initfirst'+set}'`\" = set"; then
2932   echo $ac_n "(cached) $ac_c" 1>&6
2933 else
2934     cat > conftest.c <<EOF
2935 int _start (void) { return 42; }
2936 EOF
2937   if { ac_try='${CC-cc} -shared -o conftest.so conftest.c
2938                         -nostartfiles -nostdlib
2939                         -Wl,--enable-new-dtags,-z,initfirst 1>&5'; { (eval echo configure:2940: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }
2940   then
2941     libc_cv_z_initfirst=yes
2942   else
2943     libc_cv_z_initfirst=no
2944   fi
2945   rm -f conftest*
2946 fi
2947
2948 echo "$ac_t""$libc_cv_z_initfirst" 1>&6
2949   
2950
2951   echo $ac_n "checking for -Bgroup option""... $ac_c" 1>&6
2952 echo "configure:2953: checking for -Bgroup option" >&5
2953 if eval "test \"`echo '$''{'libc_cv_Bgroup'+set}'`\" = set"; then
2954   echo $ac_n "(cached) $ac_c" 1>&6
2955 else
2956     cat > conftest.c <<EOF
2957 int _start (void) { return 42; }
2958 EOF
2959   if { ac_try='${CC-cc} -shared -o conftest.so conftest.c -Wl,-Bgroup -nostdlib 1>&5'; { (eval echo configure:2960: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }
2960   then
2961     libc_cv_Bgroup=yes
2962   else
2963     libc_cv_Bgroup=no
2964   fi
2965   rm -f conftest*
2966 fi
2967
2968 echo "$ac_t""$libc_cv_Bgroup" 1>&6
2969   
2970
2971   echo $ac_n "checking for -z combreloc""... $ac_c" 1>&6
2972 echo "configure:2973: checking for -z combreloc" >&5
2973 if eval "test \"`echo '$''{'libc_cv_z_combreloc'+set}'`\" = set"; then
2974   echo $ac_n "(cached) $ac_c" 1>&6
2975 else
2976     cat > conftest.c <<EOF
2977 extern int bar (int);
2978 extern int mumble;
2979 int foo (void) { return bar (mumble); }
2980 EOF
2981   if { ac_try='${CC-cc} -shared -o conftest.so conftest.c
2982                         -nostdlib -nostartfiles
2983                         -Wl,-z,combreloc 1>&5'; { (eval echo configure:2984: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }
2984   then
2985     if readelf -S conftest.so | grep '\.rel\(a\|\)\.dyn' > /dev/null; then
2986       libc_cv_z_combreloc=yes
2987     else
2988       libc_cv_z_combreloc=no
2989     fi
2990   else
2991     libc_cv_z_combreloc=no
2992   fi
2993   rm -f conftest*
2994 fi
2995
2996 echo "$ac_t""$libc_cv_z_combreloc" 1>&6
2997   if test "$libc_cv_z_combreloc" = yes; then
2998     cat >> confdefs.h <<\EOF
2999 #define HAVE_Z_COMBRELOC 1
3000 EOF
3001
3002   fi
3003 fi
3004
3005
3006 if test $elf != yes; then
3007   echo $ac_n "checking for .init and .fini sections""... $ac_c" 1>&6
3008 echo "configure:3009: checking for .init and .fini sections" >&5
3009 if eval "test \"`echo '$''{'libc_cv_have_initfini'+set}'`\" = set"; then
3010   echo $ac_n "(cached) $ac_c" 1>&6
3011 else
3012   cat > conftest.$ac_ext <<EOF
3013 #line 3014 "configure"
3014 #include "confdefs.h"
3015
3016 int main() {
3017 asm (".section .init");
3018                                     asm (".section .fini");
3019                                     asm ("${libc_cv_dot_text}");
3020 ; return 0; }
3021 EOF
3022 if { (eval echo configure:3023: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3023   rm -rf conftest*
3024   libc_cv_have_initfini=yes
3025 else
3026   echo "configure: failed program was:" >&5
3027   cat conftest.$ac_ext >&5
3028   rm -rf conftest*
3029   libc_cv_have_initfini=no
3030 fi
3031 rm -f conftest*
3032 fi
3033
3034 echo "$ac_t""$libc_cv_have_initfini" 1>&6
3035     if test $libc_cv_have_initfini = yes; then
3036     cat >> confdefs.h <<\EOF
3037 #define HAVE_INITFINI 1
3038 EOF
3039
3040   fi
3041 fi
3042
3043 if test $elf = yes -a $gnu_ld = yes; then
3044   echo $ac_n "checking whether cc puts quotes around section names""... $ac_c" 1>&6
3045 echo "configure:3046: checking whether cc puts quotes around section names" >&5
3046 if eval "test \"`echo '$''{'libc_cv_have_section_quotes'+set}'`\" = set"; then
3047   echo $ac_n "(cached) $ac_c" 1>&6
3048 else
3049   cat > conftest.c <<EOF
3050                   static const int foo
3051                   __attribute__ ((section ("bar"))) = 1;
3052 EOF
3053                   if ${CC-cc} -S conftest.c -o conftest.s; then
3054                     if grep '\.section.*"bar"' conftest.s >/dev/null; then
3055                       libc_cv_have_section_quotes=yes
3056                     else
3057                       libc_cv_have_section_quotes=no
3058                     fi
3059                   else
3060                     libc_cv_have_section_quotes=unknown
3061                   fi
3062                   rm -f conftest.cs
3063                  
3064 fi
3065
3066 echo "$ac_t""$libc_cv_have_section_quotes" 1>&6
3067   if test $libc_cv_have_section_quotes = yes; then
3068     cat >> confdefs.h <<\EOF
3069 #define HAVE_SECTION_QUOTES 1
3070 EOF
3071
3072   fi
3073 fi
3074
3075
3076
3077 if test $elf = yes; then
3078   libc_cv_asm_underscores=no
3079 else
3080   if test $ac_cv_prog_cc_works = yes; then
3081     echo $ac_n "checking for _ prefix on C symbol names""... $ac_c" 1>&6
3082 echo "configure:3083: checking for _ prefix on C symbol names" >&5
3083 if eval "test \"`echo '$''{'libc_cv_asm_underscores'+set}'`\" = set"; then
3084   echo $ac_n "(cached) $ac_c" 1>&6
3085 else
3086   cat > conftest.$ac_ext <<EOF
3087 #line 3088 "configure"
3088 #include "confdefs.h"
3089 asm ("_glibc_foobar:");
3090 int main() {
3091 glibc_foobar ();
3092 ; return 0; }
3093 EOF
3094 if { (eval echo configure:3095: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3095   rm -rf conftest*
3096   libc_cv_asm_underscores=yes
3097 else
3098   echo "configure: failed program was:" >&5
3099   cat conftest.$ac_ext >&5
3100   rm -rf conftest*
3101   libc_cv_asm_underscores=no
3102 fi
3103 rm -f conftest*
3104 fi
3105
3106 echo "$ac_t""$libc_cv_asm_underscores" 1>&6
3107   else
3108     echo $ac_n "checking for _ prefix on C symbol names""... $ac_c" 1>&6
3109 echo "configure:3110: checking for _ prefix on C symbol names" >&5
3110 if eval "test \"`echo '$''{'libc_cv_asm_underscores'+set}'`\" = set"; then
3111   echo $ac_n "(cached) $ac_c" 1>&6
3112 else
3113   cat > conftest.$ac_ext <<EOF
3114 #line 3115 "configure"
3115 #include "confdefs.h"
3116 void underscore_test(void) {
3117 return; }
3118 EOF
3119 if { (eval echo configure:3120: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3120   if grep _underscore_test conftest* >/dev/null; then
3121     rm -f conftest*
3122     libc_cv_asm_underscores=yes
3123   else
3124     rm -f conftest*
3125     libc_cv_asm_underscores=no
3126   fi
3127 else
3128   echo "configure: failed program was:" >&5
3129   cat conftest.$ac_ext >&5
3130   rm -f conftest*
3131   libc_cv_asm_underscores=no
3132 fi
3133 rm -f conftest*
3134 fi
3135
3136 echo "$ac_t""$libc_cv_asm_underscores" 1>&6
3137   fi
3138 fi
3139 if test $libc_cv_asm_underscores = no; then
3140   cat >> confdefs.h <<\EOF
3141 #define NO_UNDERSCORES 1
3142 EOF
3143
3144 fi
3145
3146 if test $elf = yes; then
3147   libc_cv_weak_symbols=yes
3148 fi
3149
3150 echo $ac_n "checking for assembler .weak directive""... $ac_c" 1>&6
3151 echo "configure:3152: checking for assembler .weak directive" >&5
3152 if eval "test \"`echo '$''{'libc_cv_asm_weak_directive'+set}'`\" = set"; then
3153   echo $ac_n "(cached) $ac_c" 1>&6
3154 else
3155   cat > conftest.s <<EOF
3156 ${libc_cv_dot_text}
3157 ${libc_cv_asm_global_directive} foo
3158 foo:
3159 .weak foo
3160 .weak bar; bar = foo
3161 EOF
3162 if ${CC-cc} $CFLAGS -c conftest.s 2>/dev/null; then
3163   libc_cv_asm_weak_directive=yes
3164 else
3165   libc_cv_asm_weak_directive=no
3166 fi
3167 rm -f conftest*
3168 fi
3169
3170 echo "$ac_t""$libc_cv_asm_weak_directive" 1>&6
3171
3172 if test $libc_cv_asm_weak_directive = no; then
3173   echo $ac_n "checking for assembler .weakext directive""... $ac_c" 1>&6
3174 echo "configure:3175: checking for assembler .weakext directive" >&5
3175 if eval "test \"`echo '$''{'libc_cv_asm_weakext_directive'+set}'`\" = set"; then
3176   echo $ac_n "(cached) $ac_c" 1>&6
3177 else
3178   cat > conftest.s <<EOF
3179 ${libc_cv_dot_text}
3180 ${libc_cv_asm_global_directive} foo
3181 foo:
3182 .weakext bar foo
3183 .weakext baz
3184 ${libc_cv_asm_global_directive} baz
3185 baz:
3186 EOF
3187   if ${CC-cc} $CFLAGS -c conftest.s 2>/dev/null; then
3188     libc_cv_asm_weakext_directive=yes
3189   else
3190     libc_cv_asm_weakext_directive=no
3191   fi
3192   rm -f conftest*
3193 fi
3194
3195 echo "$ac_t""$libc_cv_asm_weakext_directive" 1>&6
3196
3197 fi # no .weak
3198
3199 if test $libc_cv_asm_weak_directive = yes; then
3200   cat >> confdefs.h <<\EOF
3201 #define HAVE_ASM_WEAK_DIRECTIVE 1
3202 EOF
3203
3204 elif test $libc_cv_asm_weakext_directive = yes; then
3205   cat >> confdefs.h <<\EOF
3206 #define HAVE_ASM_WEAKEXT_DIRECTIVE 1
3207 EOF
3208
3209 fi
3210
3211 case "${host_cpu}-${host_os}" in
3212   cris*)
3213     libc_cv_asm_line_sep='@'
3214     cat >> confdefs.h <<EOF
3215 #define ASM_LINE_SEP $libc_cv_asm_line_sep
3216 EOF
3217
3218     ;;
3219   hppa*linux*)
3220   echo $ac_n "checking for assembler line separator""... $ac_c" 1>&6
3221 echo "configure:3222: checking for assembler line separator" >&5
3222 if eval "test \"`echo '$''{'libc_cv_asm_line_sep'+set}'`\" = set"; then
3223   echo $ac_n "(cached) $ac_c" 1>&6
3224 else
3225     cat > conftest.s <<EOF
3226  nop ; is_old_puffin
3227 EOF
3228   if { ac_try='${CC-cc} -c $CFLAGS conftest.s 1>&5'; { (eval echo configure:3229: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
3229     libc_cv_asm_line_sep='!'
3230   else
3231     if test -z "$enable_hacker_mode"; then
3232       echo "*** You need a newer assembler to compile glibc"
3233       rm -f conftest*
3234       exit 1
3235     fi
3236     libc_cv_asm_line_sep=';'
3237   fi
3238   rm -f conftest*
3239 fi
3240
3241 echo "$ac_t""$libc_cv_asm_line_sep" 1>&6
3242   cat >> confdefs.h <<EOF
3243 #define ASM_LINE_SEP $libc_cv_asm_line_sep
3244 EOF
3245
3246   ;;
3247 esac
3248
3249 echo $ac_n "checking for ld --no-whole-archive""... $ac_c" 1>&6
3250 echo "configure:3251: checking for ld --no-whole-archive" >&5
3251 if eval "test \"`echo '$''{'libc_cv_ld_no_whole_archive'+set}'`\" = set"; then
3252   echo $ac_n "(cached) $ac_c" 1>&6
3253 else
3254   cat > conftest.c <<\EOF
3255 _start () {}
3256 int __eh_pc;
3257 __throw () {}
3258 EOF
3259 if { ac_try='${CC-cc} $CFLAGS
3260                             -nostdlib -nostartfiles -Wl,--no-whole-archive
3261                             -o conftest conftest.c 1>&5'; { (eval echo configure:3262: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
3262   libc_cv_ld_no_whole_archive=yes
3263 else
3264   libc_cv_ld_no_whole_archive=no
3265 fi
3266 rm -f conftest*
3267 fi
3268
3269 echo "$ac_t""$libc_cv_ld_no_whole_archive" 1>&6
3270 if test $libc_cv_ld_no_whole_archive = yes; then
3271   no_whole_archive=-Wl,--no-whole-archive
3272 fi
3273
3274 echo $ac_n "checking for gcc -fexceptions""... $ac_c" 1>&6
3275 echo "configure:3276: checking for gcc -fexceptions" >&5
3276 if eval "test \"`echo '$''{'libc_cv_gcc_exceptions'+set}'`\" = set"; then
3277   echo $ac_n "(cached) $ac_c" 1>&6
3278 else
3279   cat > conftest.c <<\EOF
3280 _start () {}
3281 int __eh_pc;
3282 __throw () {}
3283 EOF
3284 if { ac_try='${CC-cc} $CFLAGS
3285                             -nostdlib -nostartfiles -fexceptions
3286                             -o conftest conftest.c 1>&5'; { (eval echo configure:3287: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
3287   libc_cv_gcc_exceptions=yes
3288 else
3289   libc_cv_gcc_exceptions=no
3290 fi
3291 rm -f conftest*
3292 fi
3293
3294 echo "$ac_t""$libc_cv_gcc_exceptions" 1>&6
3295 if test $libc_cv_gcc_exceptions = yes; then
3296   exceptions=-fexceptions
3297 fi
3298
3299 if test "$base_machine" = alpha ; then
3300 echo $ac_n "checking for function ..ng prefix""... $ac_c" 1>&6
3301 echo "configure:3302: checking for function ..ng prefix" >&5
3302 if eval "test \"`echo '$''{'libc_cv_gcc_alpha_ng_prefix'+set}'`\" = set"; then
3303   echo $ac_n "(cached) $ac_c" 1>&6
3304 else
3305   cat > conftest.c <<\EOF
3306 foo () { }
3307 EOF
3308 if { ac_try='${CC-cc} -S conftest.c -o - | fgrep "\$foo..ng" > /dev/null'; { (eval echo configure:3309: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; };
3309 then
3310   libc_cv_gcc_alpha_ng_prefix=yes
3311 else
3312   libc_cv_gcc_alpha_ng_prefix=no
3313 fi
3314 rm -f conftest* 
3315 fi
3316
3317 echo "$ac_t""$libc_cv_gcc_alpha_ng_prefix" 1>&6
3318 if test $libc_cv_gcc_alpha_ng_prefix = yes ; then
3319   cat >> confdefs.h <<\EOF
3320 #define ASM_ALPHA_NG_SYMBOL_PREFIX "$"
3321 EOF
3322
3323 else
3324   cat >> confdefs.h <<\EOF
3325 #define ASM_ALPHA_NG_SYMBOL_PREFIX ""
3326 EOF
3327
3328 fi
3329 fi
3330
3331 if test "$host_cpu" = powerpc ; then
3332 # Check for a bug present in at least versions 2.8.x of GCC
3333 # and versions 1.0.x of EGCS.
3334 echo $ac_n "checking whether clobbering cr0 causes problems""... $ac_c" 1>&6
3335 echo "configure:3336: checking whether clobbering cr0 causes problems" >&5
3336 if eval "test \"`echo '$''{'libc_cv_c_asmcr0_bug'+set}'`\" = set"; then
3337   echo $ac_n "(cached) $ac_c" 1>&6
3338 else
3339   cat > conftest.$ac_ext <<EOF
3340 #line 3341 "configure"
3341 #include "confdefs.h"
3342 int tester(int x) { asm ("" : : : "cc"); return x & 123; }
3343 int main() {
3344
3345 ; return 0; }
3346 EOF
3347 if { (eval echo configure:3348: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3348   rm -rf conftest*
3349   libc_cv_c_asmcr0_bug='no'
3350 else
3351   echo "configure: failed program was:" >&5
3352   cat conftest.$ac_ext >&5
3353   rm -rf conftest*
3354   libc_cv_c_asmcr0_bug='yes'
3355 fi
3356 rm -f conftest*
3357 fi
3358
3359 echo "$ac_t""$libc_cv_c_asmcr0_bug" 1>&6
3360 if test "$libc_cv_c_asmcr0_bug" != 'no'; then
3361   cat >> confdefs.h <<\EOF
3362 #define BROKEN_PPC_ASM_CR0 1
3363 EOF
3364
3365 fi
3366 fi
3367
3368 echo $ac_n "checking for DWARF2 unwind info support""... $ac_c" 1>&6
3369 echo "configure:3370: checking for DWARF2 unwind info support" >&5
3370 if eval "test \"`echo '$''{'libc_cv_gcc_dwarf2_unwind_info'+set}'`\" = set"; then
3371   echo $ac_n "(cached) $ac_c" 1>&6
3372 else
3373   cat > conftest.c <<EOF
3374 #line 3375 "configure"
3375 static char *__EH_FRAME_BEGIN__;
3376 _start ()
3377 {
3378 #ifdef CHECK__register_frame
3379   __register_frame (__EH_FRAME_BEGIN__);
3380   __deregister_frame (__EH_FRAME_BEGIN__);
3381 #endif
3382 #ifdef CHECK__register_frame_info
3383   __register_frame_info (__EH_FRAME_BEGIN__);
3384   __deregister_frame_info (__EH_FRAME_BEGIN__);
3385 #endif
3386 }
3387 int __eh_pc;
3388 __throw () {}
3389 /* FIXME: this is fragile.  */
3390 malloc () {}
3391 strcmp () {}
3392 strlen () {}
3393 memcpy () {}
3394 memset () {}
3395 free () {}
3396 abort () {}
3397 __bzero () {}
3398 EOF
3399 if { ac_try='${CC-cc} $CFLAGS -DCHECK__register_frame_info
3400                             -nostdlib -nostartfiles
3401                             -o conftest conftest.c -lgcc >&5'; { (eval echo configure:3402: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
3402   libc_cv_gcc_dwarf2_unwind_info=static
3403 else
3404   libc_cv_gcc_dwarf2_unwind_info=no
3405 fi
3406 if { ac_try='${CC-cc} $CFLAGS -DCHECK__register_frame_info
3407                             -nostdlib -nostartfiles
3408                             -o conftest conftest.c -lgcc -lgcc_eh >&5'; { (eval echo configure:3409: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
3409   if ${CC-cc} $CFLAGS -DCHECK__register_frame_info -nostdlib -nostartfiles \
3410      -o conftest conftest.c -lgcc -lgcc_eh -v 2>&1 >/dev/null \
3411      | grep -q -- --eh-frame-hdr; then
3412     libc_cv_gcc_dwarf2_unwind_info=no_registry_needed
3413   else
3414     libc_cv_gcc_dwarf2_unwind_info=static
3415   fi
3416 else
3417   libc_cv_gcc_dwarf2_unwind_info=no
3418 fi
3419 if test $libc_cv_gcc_dwarf2_unwind_info = no; then
3420   if { ac_try='${CC-cc} $CFLAGS -DCHECK__register_frame
3421                               -nostdlib -nostartfiles
3422                               -o conftest conftest.c -lgcc >&5'; { (eval echo configure:3423: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
3423     libc_cv_gcc_dwarf2_unwind_info=yes
3424   else
3425     libc_cv_gcc_dwarf2_unwind_info=no
3426   fi
3427 fi
3428 rm -f conftest*
3429 fi
3430
3431 echo "$ac_t""$libc_cv_gcc_dwarf2_unwind_info" 1>&6
3432 case $libc_cv_gcc_dwarf2_unwind_info in
3433 yes)
3434   cat >> confdefs.h <<\EOF
3435 #define HAVE_DWARF2_UNWIND_INFO 1
3436 EOF
3437
3438   ;;
3439 static)
3440   cat >> confdefs.h <<\EOF
3441 #define HAVE_DWARF2_UNWIND_INFO 1
3442 EOF
3443
3444   cat >> confdefs.h <<\EOF
3445 #define HAVE_DWARF2_UNWIND_INFO_STATIC 1
3446 EOF
3447
3448   ;;
3449 esac
3450
3451 echo $ac_n "checking for __builtin_expect""... $ac_c" 1>&6
3452 echo "configure:3453: checking for __builtin_expect" >&5
3453 if eval "test \"`echo '$''{'libc_cv_gcc_builtin_expect'+set}'`\" = set"; then
3454   echo $ac_n "(cached) $ac_c" 1>&6
3455 else
3456   cat > conftest.c <<EOF
3457 #line 3458 "configure"
3458 int foo (int a)
3459 {
3460   a = __builtin_expect (a, 10);
3461   return a == 10 ? 0 : 1;
3462 }
3463 EOF
3464 if { ac_try='${CC-cc} $CFLAGS -nostdlib -nostartfiles
3465                             -o conftest conftest.c -lgcc >&5'; { (eval echo configure:3466: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
3466   libc_cv_gcc_builtin_expect=yes
3467 else
3468   libc_cv_gcc_builtin_expect=no
3469 fi
3470 rm -f conftest*
3471 fi
3472
3473 echo "$ac_t""$libc_cv_gcc_builtin_expect" 1>&6
3474 if test "$libc_cv_gcc_builtin_expect" = yes; then
3475   cat >> confdefs.h <<\EOF
3476 #define HAVE_BUILTIN_EXPECT 1
3477 EOF
3478
3479 fi
3480
3481 echo $ac_n "checking for __builtin_memset""... $ac_c" 1>&6
3482 echo "configure:3483: checking for __builtin_memset" >&5
3483 if eval "test \"`echo '$''{'libc_cv_gcc_builtin_memset'+set}'`\" = set"; then
3484   echo $ac_n "(cached) $ac_c" 1>&6
3485 else
3486   cat > conftest.c <<\EOF
3487 void zero (void *x)
3488 {
3489   __builtin_memset (x, 0, 1000);
3490 }
3491 EOF
3492 if { ac_try='${CC-cc} -O3 -S conftest.c -o - | fgrep "memset" > /dev/null'; { (eval echo configure:3493: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; };
3493 then
3494   libc_cv_gcc_builtin_memset=no
3495 else
3496   libc_cv_gcc_builtin_memset=yes
3497 fi
3498 rm -f conftest* 
3499 fi
3500
3501 echo "$ac_t""$libc_cv_gcc_builtin_memset" 1>&6
3502 if test "$libc_cv_gcc_builtin_memset" = yes ; then
3503   cat >> confdefs.h <<\EOF
3504 #define HAVE_BUILTIN_MEMSET 1
3505 EOF
3506
3507 fi
3508
3509 echo $ac_n "checking for local label subtraction""... $ac_c" 1>&6
3510 echo "configure:3511: checking for local label subtraction" >&5
3511 if eval "test \"`echo '$''{'libc_cv_gcc_subtract_local_labels'+set}'`\" = set"; then
3512   echo $ac_n "(cached) $ac_c" 1>&6
3513 else
3514   cat > conftest.c <<EOF
3515 #line 3516 "configure"
3516 int foo (int a)
3517 {
3518   static const int ar[] = { &&l1 - &&l1, &&l2 - &&l1 };
3519   void *p = &&l1 + ar[a];
3520   goto *p;
3521  l1:
3522   return 1;
3523  l2:
3524   return 2;
3525 }
3526 EOF
3527 if { ac_try='${CC-cc} $CFLAGS -nostdlib -nostartfiles
3528                             -o conftest conftest.c -lgcc >&5'; { (eval echo configure:3529: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
3529   libc_cv_gcc_subtract_local_labels=yes
3530 else
3531   libc_cv_gcc_subtract_local_labels=no
3532 fi
3533 rm -f conftest*
3534 fi
3535
3536 echo "$ac_t""$libc_cv_gcc_subtract_local_labels" 1>&6
3537 if test "$libc_cv_gcc_subtract_local_labels" = yes; then
3538   cat >> confdefs.h <<\EOF
3539 #define HAVE_SUBTRACT_LOCAL_LABELS 1
3540 EOF
3541
3542 fi
3543
3544 echo $ac_n "checking for __thread""... $ac_c" 1>&6
3545 echo "configure:3546: checking for __thread" >&5
3546 if eval "test \"`echo '$''{'libc_cv_gcc___thread'+set}'`\" = set"; then
3547   echo $ac_n "(cached) $ac_c" 1>&6
3548 else
3549   cat > conftest.c <<EOF
3550 __thread int a = 42;
3551 EOF
3552 if { ac_try='${CC-cc} $CFLAGS -c conftest.c >&5'; { (eval echo configure:3553: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
3553   libc_cv_gcc___thread=yes
3554 else
3555   libc_cv_gcc___thread=no
3556 fi
3557 rm -f conftest*
3558 fi
3559
3560 echo "$ac_t""$libc_cv_gcc___thread" 1>&6
3561 if test "$libc_cv_gcc___thread" = yes; then
3562   cat >> confdefs.h <<\EOF
3563 #define HAVE___THREAD 1
3564 EOF
3565
3566 fi
3567
3568
3569 echo $ac_n "checking for libgd""... $ac_c" 1>&6
3570 echo "configure:3571: checking for libgd" >&5
3571 if test "$with_gd" != "no"; then
3572   old_CFLAGS="$CFLAGS"
3573   CFLAGS="$CFLAGS $libgd_include"
3574   old_LDFLAGS="$LDFLAGS"
3575   LDFLAGS="$LDFLAGS $libgd_ldflags"
3576   old_LIBS="$LIBS"
3577   LIBS="$LIBS -lgd -lpng -lz -lm"
3578   cat > conftest.$ac_ext <<EOF
3579 #line 3580 "configure"
3580 #include "confdefs.h"
3581 #include <gd.h>
3582 int main() {
3583 gdImagePng (0, 0)
3584 ; return 0; }
3585 EOF
3586 if { (eval echo configure:3587: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3587   rm -rf conftest*
3588   LIBGD=yes
3589 else
3590   echo "configure: failed program was:" >&5
3591   cat conftest.$ac_ext >&5
3592   rm -rf conftest*
3593   LIBGD=no
3594 fi
3595 rm -f conftest*
3596   CFLAGS="$old_CFLAGS"
3597   LDFLAGS="$old_LDFLAGS"
3598   LIBS="$old_LIBS"
3599 else
3600   LIBGD=no
3601 fi
3602 echo "$ac_t""$LIBGD" 1>&6
3603
3604
3605 echo $ac_n "checking size of long double""... $ac_c" 1>&6
3606 echo "configure:3607: checking size of long double" >&5
3607 if eval "test \"`echo '$''{'ac_cv_sizeof_long_double'+set}'`\" = set"; then
3608   echo $ac_n "(cached) $ac_c" 1>&6
3609 else
3610   if test "$cross_compiling" = yes; then
3611   ac_cv_sizeof_long_double=0
3612 else
3613   cat > conftest.$ac_ext <<EOF
3614 #line 3615 "configure"
3615 #include "confdefs.h"
3616 #include <stdio.h>
3617 int main()
3618 {
3619   FILE *f=fopen("conftestval", "w");
3620   if (!f) return(1);
3621   fprintf(f, "%d\n", sizeof(long double));
3622   return(0);
3623 }
3624 EOF
3625 if { (eval echo configure:3626: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3626 then
3627   ac_cv_sizeof_long_double=`cat conftestval`
3628 else
3629   echo "configure: failed program was:" >&5
3630   cat conftest.$ac_ext >&5
3631   rm -fr conftest*
3632   ac_cv_sizeof_long_double=0
3633 fi
3634 rm -fr conftest*
3635 fi
3636
3637 fi
3638 echo "$ac_t""$ac_cv_sizeof_long_double" 1>&6
3639 cat >> confdefs.h <<EOF
3640 #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
3641 EOF
3642
3643
3644 sizeof_long_double=$ac_cv_sizeof_long_double
3645
3646
3647 ### End of automated tests.
3648 ### Now run sysdeps configure fragments.
3649
3650 # sysdeps configure fragments may set these with files to be linked below.
3651 libc_link_dests=
3652 libc_link_sources=
3653
3654 # They also can set these variables.
3655 use_ldconfig=no
3656 ldd_rewrite_script=no
3657 libc_cv_sysconfdir=$sysconfdir
3658 libc_cv_gcc_unwind_find_fde=no
3659
3660 # Iterate over all the sysdep directories we will use, running their
3661 # configure fragments, and looking for a uname implementation.
3662 uname=
3663 for dir in $sysnames; do
3664   case $dir in
3665     /*) dest=$dir ;;
3666     *)  dest=$srcdir/$dir ;;
3667   esac
3668   if test -r $dest/configure; then
3669     echo "$ac_t""running configure fragment for $dest" 1>&6
3670     . $dest/configure
3671   fi
3672
3673   if test -z "$uname"; then
3674     if test -r $dest/uname.c ||
3675        test -r $dest/uname.S ||
3676        { test -r $dest/syscalls.list &&
3677          grep '^uname[  ]' $dest/syscalls.list >/dev/null; }; then
3678       uname=$dir
3679     fi
3680   fi
3681 done
3682
3683 if test x$libc_cv_gcc_unwind_find_fde = xyes; then
3684   cat >> confdefs.h <<\EOF
3685 #define EXPORT_UNWIND_FIND_FDE 1
3686 EOF
3687
3688 fi
3689
3690
3691
3692
3693 # If we will use the generic uname implementation, we must figure out what
3694 # it will say by examining the system, and write the results in config-name.h.
3695 if test "$uname" = "sysdeps/generic"; then
3696
3697   uname_sysname=`echo $config_os | sed 's/[0-9.]*$//'`
3698   if test $uname_sysname != $config_os; then
3699     config_release=`echo $config_os | sed s/$uname_sysname//`
3700   fi
3701
3702   echo $ac_n "checking OS release for uname""... $ac_c" 1>&6
3703 echo "configure:3704: checking OS release for uname" >&5
3704 if eval "test \"`echo '$''{'libc_cv_uname_release'+set}'`\" = set"; then
3705   echo $ac_n "(cached) $ac_c" 1>&6
3706 else
3707     kernel_release=`echo "$kernel_id" | sed 's/^[^0-9.]*\([0-9.]*\).*$/\1/'`
3708   if test x`echo "$config_release" | sed "s/^$kernel_release//"` \
3709          != x$config_release; then
3710     # The configuration release is a substring of the kernel release.
3711     libc_cv_uname_release=$kernel_release
3712   elif test x$config_release != x; then
3713     libc_cv_uname_release=$config_release
3714   elif test x$kernel_release != x; then
3715     libc_cv_uname_release=$kernel_release
3716   else
3717     libc_cv_uname_release=unknown
3718   fi
3719 fi
3720
3721 echo "$ac_t""$libc_cv_uname_release" 1>&6
3722   uname_release="$libc_cv_uname_release"
3723
3724   echo $ac_n "checking OS version for uname""... $ac_c" 1>&6
3725 echo "configure:3726: checking OS version for uname" >&5
3726 if eval "test \"`echo '$''{'libc_cv_uname_version'+set}'`\" = set"; then
3727   echo $ac_n "(cached) $ac_c" 1>&6
3728 else
3729     kernel_version=`echo "$kernel_id" | sed 's/^[^#]*#\([0-9]*\).*$/\1/'`
3730   if test -n "$kernel_version"; then
3731     libc_cv_uname_version="$kernel_version"
3732   else
3733     libc_cv_uname_version=unknown
3734   fi
3735 fi
3736
3737 echo "$ac_t""$libc_cv_uname_version" 1>&6
3738   uname_version="$libc_cv_uname_version"
3739
3740     config_uname=config-name.h:config-name.in
3741 else
3742   # For non-generic uname, we don't need to create config-name.h at all.
3743   config_uname=
3744 fi
3745
3746 cat >> confdefs.h <<\EOF
3747 #define USE_IN_LIBIO 1
3748 EOF
3749
3750
3751 # Test for old glibc 2.0.x headers so that they can be removed properly
3752 # Search only in includedir.
3753 echo $ac_n "checking for old glibc 2.0.x headers""... $ac_c" 1>&6
3754 echo "configure:3755: checking for old glibc 2.0.x headers" >&5
3755 if eval test -f "${includedir}/elfclass.h" -a -f "${includedir}/fcntlbits.h"
3756 then
3757   old_glibc_headers=yes
3758 else
3759   old_glibc_headers=no
3760 fi
3761 echo "$ac_t""$old_glibc_headers" 1>&6
3762 if test ${old_glibc_headers} = yes; then
3763   echo "configure: warning: *** During \"make install\" old headers from glibc 2.0.x will" 1>&2
3764   echo "configure: warning: *** be removed." 1>&2
3765 fi
3766
3767
3768
3769
3770
3771
3772
3773
3774
3775
3776    
3777 if test $gnu_ld = yes; then
3778   cat >> confdefs.h <<\EOF
3779 #define HAVE_GNU_LD 1
3780 EOF
3781
3782 fi
3783 if test $gnu_as = yes; then
3784   cat >> confdefs.h <<\EOF
3785 #define HAVE_GNU_AS 1
3786 EOF
3787
3788 fi
3789 if test $elf = yes; then
3790   cat >> confdefs.h <<\EOF
3791 #define HAVE_ELF 1
3792 EOF
3793
3794 fi
3795 if test $xcoff = yes; then
3796   cat >> confdefs.h <<\EOF
3797 #define HAVE_XCOFF 1
3798 EOF
3799
3800 fi
3801
3802
3803
3804 if test $shared = default; then
3805   if test $gnu_ld = yes; then
3806     shared=$elf
3807   else
3808     # For now we do not assume shared libs are available.  In future more
3809     # tests might become available.
3810     shared=no
3811   fi
3812 fi
3813
3814 echo $ac_n "checking whether -fPIC is default""... $ac_c" 1>&6
3815 echo "configure:3816: checking whether -fPIC is default" >&5
3816 if eval "test \"`echo '$''{'pic_default'+set}'`\" = set"; then
3817   echo $ac_n "(cached) $ac_c" 1>&6
3818 else
3819   pic_default=yes
3820 cat > conftest.c <<EOF
3821 #if defined __PIC__ || defined __pic__ || defined PIC || defined pic
3822 # error PIC is default.
3823 #endif
3824 EOF
3825 if eval "${CC-cc} -S conftest.c 2>&5 1>&5"; then
3826   pic_default=no
3827 fi
3828 rm -f conftest.*
3829 fi
3830
3831 echo "$ac_t""$pic_default" 1>&6
3832
3833
3834
3835
3836
3837
3838
3839
3840
3841
3842 case "$add_ons" in
3843   *door*) linux_doors=yes ;;
3844   *) linux_doors=no ;;
3845 esac
3846
3847
3848
3849
3850 if test "`(cd $srcdir; pwd)`" = "`pwd`"; then
3851   config_makefile=
3852 else
3853   config_makefile=Makefile
3854 fi
3855
3856 VERSION=`sed -n -e 's/^#define VERSION "\([^"]*\)"/\1/p' < $srcdir/version.h`
3857 RELEASE=`sed -n -e 's/^#define RELEASE "\([^"]*\)"/\1/p' < $srcdir/version.h`
3858
3859
3860
3861 trap '' 1 2 15
3862 cat > confcache <<\EOF
3863 # This file is a shell script that caches the results of configure
3864 # tests run on this system so they can be shared between configure
3865 # scripts and configure runs.  It is not useful on other systems.
3866 # If it contains results you don't want to keep, you may remove or edit it.
3867 #
3868 # By default, configure uses ./config.cache as the cache file,
3869 # creating it if it does not exist already.  You can give configure
3870 # the --cache-file=FILE option to use a different cache file; that is
3871 # what configure does when it calls configure scripts in
3872 # subdirectories, so they share the cache.
3873 # Giving --cache-file=/dev/null disables caching, for debugging configure.
3874 # config.status only pays attention to the cache file if you give it the
3875 # --recheck option to rerun configure.
3876 #
3877 EOF
3878 # The following way of writing the cache mishandles newlines in values,
3879 # but we know of no workaround that is simple, portable, and efficient.
3880 # So, don't put newlines in cache variables' values.
3881 # Ultrix sh set writes to stderr and can't be redirected directly,
3882 # and sets the high bit in the cache file unless we assign to the vars.
3883 (set) 2>&1 |
3884   case `(ac_space=' '; set | grep ac_space) 2>&1` in
3885   *ac_space=\ *)
3886     # `set' does not quote correctly, so add quotes (double-quote substitution
3887     # turns \\\\ into \\, and sed turns \\ into \).
3888     sed -n \
3889       -e "s/'/'\\\\''/g" \
3890       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
3891     ;;
3892   *)
3893     # `set' quotes correctly as required by POSIX, so do not add quotes.
3894     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
3895     ;;
3896   esac >> confcache
3897 if cmp -s $cache_file confcache; then
3898   :
3899 else
3900   if test -w $cache_file; then
3901     echo "updating cache $cache_file"
3902     cat confcache > $cache_file
3903   else
3904     echo "not updating unwritable cache $cache_file"
3905   fi
3906 fi
3907 rm -f confcache
3908
3909 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
3910
3911 test "x$prefix" = xNONE && prefix=$ac_default_prefix
3912 # Let make expand exec_prefix.
3913 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3914
3915 # Any assignment to VPATH causes Sun make to only execute
3916 # the first set of double-colon rules, so remove it if not needed.
3917 # If there is a colon in the path, we need to keep it.
3918 if test "x$srcdir" = x.; then
3919   ac_vpsub='/^[         ]*VPATH[        ]*=[^:]*$/d'
3920 fi
3921
3922 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
3923
3924 DEFS=-DHAVE_CONFIG_H
3925
3926 # Without the "./", some shells look in PATH for config.status.
3927 : ${CONFIG_STATUS=./config.status}
3928
3929 echo creating $CONFIG_STATUS
3930 rm -f $CONFIG_STATUS
3931 cat > $CONFIG_STATUS <<EOF
3932 #! /bin/sh
3933 # Generated automatically by configure.
3934 # Run this file to recreate the current configuration.
3935 # This directory was configured as follows,
3936 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
3937 #
3938 # $0 $ac_configure_args
3939 #
3940 # Compiler output produced by configure, useful for debugging
3941 # configure, is in ./config.log if it exists.
3942
3943 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
3944 for ac_option
3945 do
3946   case "\$ac_option" in
3947   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3948     echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
3949     exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
3950   -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
3951     echo "$CONFIG_STATUS generated by autoconf version 2.13"
3952     exit 0 ;;
3953   -help | --help | --hel | --he | --h)
3954     echo "\$ac_cs_usage"; exit 0 ;;
3955   *) echo "\$ac_cs_usage"; exit 1 ;;
3956   esac
3957 done
3958
3959 ac_given_srcdir=$srcdir
3960 ac_given_INSTALL="$INSTALL"
3961
3962 trap 'rm -fr `echo "config.make glibcbug ${config_makefile} ${config_uname} config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
3963 EOF
3964 cat >> $CONFIG_STATUS <<EOF
3965
3966 # Protect against being on the right side of a sed subst in config.status.
3967 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
3968  s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
3969 $ac_vpsub
3970 $extrasub
3971 s%@SHELL@%$SHELL%g
3972 s%@CFLAGS@%$CFLAGS%g
3973 s%@CPPFLAGS@%$CPPFLAGS%g
3974 s%@CXXFLAGS@%$CXXFLAGS%g
3975 s%@FFLAGS@%$FFLAGS%g
3976 s%@DEFS@%$DEFS%g
3977 s%@LDFLAGS@%$LDFLAGS%g
3978 s%@LIBS@%$LIBS%g
3979 s%@exec_prefix@%$exec_prefix%g
3980 s%@prefix@%$prefix%g
3981 s%@program_transform_name@%$program_transform_name%g
3982 s%@bindir@%$bindir%g
3983 s%@sbindir@%$sbindir%g
3984 s%@libexecdir@%$libexecdir%g
3985 s%@datadir@%$datadir%g
3986 s%@sysconfdir@%$sysconfdir%g
3987 s%@sharedstatedir@%$sharedstatedir%g
3988 s%@localstatedir@%$localstatedir%g
3989 s%@libdir@%$libdir%g
3990 s%@includedir@%$includedir%g
3991 s%@oldincludedir@%$oldincludedir%g
3992 s%@infodir@%$infodir%g
3993 s%@mandir@%$mandir%g
3994 s%@with_fp@%$with_fp%g
3995 s%@with_cvs@%$with_cvs%g
3996 s%@oldest_abi@%$oldest_abi%g
3997 s%@subdirs@%$subdirs%g
3998 s%@force_install@%$force_install%g
3999 s%@all_warnings@%$all_warnings%g
4000 s%@host@%$host%g
4001 s%@host_alias@%$host_alias%g
4002 s%@host_cpu@%$host_cpu%g
4003 s%@host_vendor@%$host_vendor%g
4004 s%@host_os@%$host_os%g
4005 s%@base_machine@%$base_machine%g
4006 s%@sysnames@%$sysnames%g
4007 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
4008 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
4009 s%@INSTALL_DATA@%$INSTALL_DATA%g
4010 s%@LN_S@%$LN_S%g
4011 s%@PWD_P@%$PWD_P%g
4012 s%@build@%$build%g
4013 s%@build_alias@%$build_alias%g
4014 s%@build_cpu@%$build_cpu%g
4015 s%@build_vendor@%$build_vendor%g
4016 s%@build_os@%$build_os%g
4017 s%@CC@%$CC%g
4018 s%@MAKE@%$MAKE%g
4019 s%@MSGFMT@%$MSGFMT%g
4020 s%@MAKEINFO@%$MAKEINFO%g
4021 s%@SED@%$SED%g
4022 s%@cross_linkable@%$cross_linkable%g
4023 s%@BUILD_CC@%$BUILD_CC%g
4024 s%@cross_compiling@%$cross_compiling%g
4025 s%@CPP@%$CPP%g
4026 s%@AR@%$AR%g
4027 s%@RANLIB@%$RANLIB%g
4028 s%@MIG@%$MIG%g
4029 s%@CCVERSION@%$CCVERSION%g
4030 s%@SYSINCLUDES@%$SYSINCLUDES%g
4031 s%@libc_cv_gcc_static_libgcc@%$libc_cv_gcc_static_libgcc%g
4032 s%@BASH@%$BASH%g
4033 s%@libc_cv_have_bash2@%$libc_cv_have_bash2%g
4034 s%@KSH@%$KSH%g
4035 s%@libc_cv_have_ksh@%$libc_cv_have_ksh%g
4036 s%@AWK@%$AWK%g
4037 s%@PERL@%$PERL%g
4038 s%@INSTALL_INFO@%$INSTALL_INFO%g
4039 s%@OLD_DEBIAN_INSTALL_INFO@%$OLD_DEBIAN_INSTALL_INFO%g
4040 s%@BISON@%$BISON%g
4041 s%@VERSIONING@%$VERSIONING%g
4042 s%@libc_cv_asm_protected_directive@%$libc_cv_asm_protected_directive%g
4043 s%@libc_cv_initfinit_array@%$libc_cv_initfinit_array%g
4044 s%@libc_cv_z_nodelete@%$libc_cv_z_nodelete%g
4045 s%@libc_cv_z_nodlopen@%$libc_cv_z_nodlopen%g
4046 s%@libc_cv_z_initfirst@%$libc_cv_z_initfirst%g
4047 s%@libc_cv_Bgroup@%$libc_cv_Bgroup%g
4048 s%@libc_cv_z_combreloc@%$libc_cv_z_combreloc%g
4049 s%@libc_cv_have_initfini@%$libc_cv_have_initfini%g
4050 s%@no_whole_archive@%$no_whole_archive%g
4051 s%@exceptions@%$exceptions%g
4052 s%@LIBGD@%$LIBGD%g
4053 s%@sizeof_long_double@%$sizeof_long_double%g
4054 s%@libc_cv_gcc_unwind_find_fde@%$libc_cv_gcc_unwind_find_fde%g
4055 s%@uname_sysname@%$uname_sysname%g
4056 s%@uname_release@%$uname_release%g
4057 s%@uname_version@%$uname_version%g
4058 s%@old_glibc_headers@%$old_glibc_headers%g
4059 s%@libc_cv_slibdir@%$libc_cv_slibdir%g
4060 s%@libc_cv_localedir@%$libc_cv_localedir%g
4061 s%@libc_cv_sysconfdir@%$libc_cv_sysconfdir%g
4062 s%@libc_cv_rootsbindir@%$libc_cv_rootsbindir%g
4063 s%@use_ldconfig@%$use_ldconfig%g
4064 s%@ldd_rewrite_script@%$ldd_rewrite_script%g
4065 s%@gnu_ld@%$gnu_ld%g
4066 s%@gnu_as@%$gnu_as%g
4067 s%@elf@%$elf%g
4068 s%@xcoff@%$xcoff%g
4069 s%@static@%$static%g
4070 s%@shared@%$shared%g
4071 s%@pic_default@%$pic_default%g
4072 s%@profile@%$profile%g
4073 s%@omitfp@%$omitfp%g
4074 s%@bounded@%$bounded%g
4075 s%@static_nss@%$static_nss%g
4076 s%@nopic_initfini@%$nopic_initfini%g
4077 s%@DEFINES@%$DEFINES%g
4078 s%@linux_doors@%$linux_doors%g
4079 s%@mach_interface_list@%$mach_interface_list%g
4080 s%@VERSION@%$VERSION%g
4081 s%@RELEASE@%$RELEASE%g
4082
4083 CEOF
4084 EOF
4085
4086 cat >> $CONFIG_STATUS <<\EOF
4087
4088 # Split the substitutions into bite-sized pieces for seds with
4089 # small command number limits, like on Digital OSF/1 and HP-UX.
4090 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
4091 ac_file=1 # Number of current file.
4092 ac_beg=1 # First line for current file.
4093 ac_end=$ac_max_sed_cmds # Line after last line for current file.
4094 ac_more_lines=:
4095 ac_sed_cmds=""
4096 while $ac_more_lines; do
4097   if test $ac_beg -gt 1; then
4098     sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
4099   else
4100     sed "${ac_end}q" conftest.subs > conftest.s$ac_file
4101   fi
4102   if test ! -s conftest.s$ac_file; then
4103     ac_more_lines=false
4104     rm -f conftest.s$ac_file
4105   else
4106     if test -z "$ac_sed_cmds"; then
4107       ac_sed_cmds="sed -f conftest.s$ac_file"
4108     else
4109       ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
4110     fi
4111     ac_file=`expr $ac_file + 1`
4112     ac_beg=$ac_end
4113     ac_end=`expr $ac_end + $ac_max_sed_cmds`
4114   fi
4115 done
4116 if test -z "$ac_sed_cmds"; then
4117   ac_sed_cmds=cat
4118 fi
4119 EOF
4120
4121 cat >> $CONFIG_STATUS <<EOF
4122
4123 CONFIG_FILES=\${CONFIG_FILES-"config.make glibcbug ${config_makefile} ${config_uname}"}
4124 EOF
4125 cat >> $CONFIG_STATUS <<\EOF
4126 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
4127   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4128   case "$ac_file" in
4129   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
4130        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
4131   *) ac_file_in="${ac_file}.in" ;;
4132   esac
4133
4134   # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
4135
4136   # Remove last slash and all that follows it.  Not all systems have dirname.
4137   ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
4138   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
4139     # The file is in a subdirectory.
4140     test ! -d "$ac_dir" && mkdir "$ac_dir"
4141     ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
4142     # A "../" for each directory in $ac_dir_suffix.
4143     ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
4144   else
4145     ac_dir_suffix= ac_dots=
4146   fi
4147
4148   case "$ac_given_srcdir" in
4149   .)  srcdir=.
4150       if test -z "$ac_dots"; then top_srcdir=.
4151       else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
4152   /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
4153   *) # Relative path.
4154     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
4155     top_srcdir="$ac_dots$ac_given_srcdir" ;;
4156   esac
4157
4158   case "$ac_given_INSTALL" in
4159   [/$]*) INSTALL="$ac_given_INSTALL" ;;
4160   *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
4161   esac
4162
4163   echo creating "$ac_file"
4164   rm -f "$ac_file"
4165   configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
4166   case "$ac_file" in
4167   *Makefile*) ac_comsub="1i\\
4168 # $configure_input" ;;
4169   *) ac_comsub= ;;
4170   esac
4171
4172   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4173   sed -e "$ac_comsub
4174 s%@configure_input@%$configure_input%g
4175 s%@srcdir@%$srcdir%g
4176 s%@top_srcdir@%$top_srcdir%g
4177 s%@INSTALL@%$INSTALL%g
4178 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
4179 fi; done
4180 rm -f conftest.s*
4181
4182 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
4183 # NAME is the cpp macro being defined and VALUE is the value it is being given.
4184 #
4185 # ac_d sets the value in "#define NAME VALUE" lines.
4186 ac_dA='s%^\([   ]*\)#\([        ]*define[       ][      ]*\)'
4187 ac_dB='\([      ][      ]*\)[^  ]*%\1#\2'
4188 ac_dC='\3'
4189 ac_dD='%g'
4190 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
4191 ac_uA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
4192 ac_uB='\([      ]\)%\1#\2define\3'
4193 ac_uC=' '
4194 ac_uD='\4%g'
4195 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
4196 ac_eA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
4197 ac_eB='$%\1#\2define\3'
4198 ac_eC=' '
4199 ac_eD='%g'
4200
4201 if test "${CONFIG_HEADERS+set}" != set; then
4202 EOF
4203 cat >> $CONFIG_STATUS <<EOF
4204   CONFIG_HEADERS="config.h"
4205 EOF
4206 cat >> $CONFIG_STATUS <<\EOF
4207 fi
4208 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
4209   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4210   case "$ac_file" in
4211   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
4212        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
4213   *) ac_file_in="${ac_file}.in" ;;
4214   esac
4215
4216   echo creating $ac_file
4217
4218   rm -f conftest.frag conftest.in conftest.out
4219   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4220   cat $ac_file_inputs > conftest.in
4221
4222 EOF
4223
4224 # Transform confdefs.h into a sed script conftest.vals that substitutes
4225 # the proper values into config.h.in to produce config.h.  And first:
4226 # Protect against being on the right side of a sed subst in config.status.
4227 # Protect against being in an unquoted here document in config.status.
4228 rm -f conftest.vals
4229 cat > conftest.hdr <<\EOF
4230 s/[\\&%]/\\&/g
4231 s%[\\$`]%\\&%g
4232 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
4233 s%ac_d%ac_u%gp
4234 s%ac_u%ac_e%gp
4235 EOF
4236 sed -n -f conftest.hdr confdefs.h > conftest.vals
4237 rm -f conftest.hdr
4238
4239 # This sed command replaces #undef with comments.  This is necessary, for
4240 # example, in the case of _POSIX_SOURCE, which is predefined and required
4241 # on some systems where configure will not decide to define it.
4242 cat >> conftest.vals <<\EOF
4243 s%^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
4244 EOF
4245
4246 # Break up conftest.vals because some shells have a limit on
4247 # the size of here documents, and old seds have small limits too.
4248
4249 rm -f conftest.tail
4250 while :
4251 do
4252   ac_lines=`grep -c . conftest.vals`
4253   # grep -c gives empty output for an empty file on some AIX systems.
4254   if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
4255   # Write a limited-size here document to conftest.frag.
4256   echo '  cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
4257   sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
4258   echo 'CEOF
4259   sed -f conftest.frag conftest.in > conftest.out
4260   rm -f conftest.in
4261   mv conftest.out conftest.in
4262 ' >> $CONFIG_STATUS
4263   sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
4264   rm -f conftest.vals
4265   mv conftest.tail conftest.vals
4266 done
4267 rm -f conftest.vals
4268
4269 cat >> $CONFIG_STATUS <<\EOF
4270   rm -f conftest.frag conftest.h
4271   echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
4272   cat conftest.in >> conftest.h
4273   rm -f conftest.in
4274   if cmp -s $ac_file conftest.h 2>/dev/null; then
4275     echo "$ac_file is unchanged"
4276     rm -f conftest.h
4277   else
4278     # Remove last slash and all that follows it.  Not all systems have dirname.
4279       ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
4280       if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
4281       # The file is in a subdirectory.
4282       test ! -d "$ac_dir" && mkdir "$ac_dir"
4283     fi
4284     rm -f $ac_file
4285     mv conftest.h $ac_file
4286   fi
4287 fi; done
4288
4289 EOF
4290
4291 cat >> $CONFIG_STATUS <<EOF
4292 ac_sources="`echo $libc_link_sources`"
4293 ac_dests="`echo $libc_link_dests`"
4294 EOF
4295
4296 cat >> $CONFIG_STATUS <<\EOF
4297 srcdir=$ac_given_srcdir
4298 while test -n "$ac_sources"; do
4299   set $ac_dests; ac_dest=$1; shift; ac_dests=$*
4300   set $ac_sources; ac_source=$1; shift; ac_sources=$*
4301
4302   echo "linking $srcdir/$ac_source to $ac_dest"
4303
4304   if test ! -r $srcdir/$ac_source; then
4305     { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
4306   fi
4307   rm -f $ac_dest
4308
4309   # Make relative symlinks.
4310   # Remove last slash and all that follows it.  Not all systems have dirname.
4311   ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'`
4312   if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
4313     # The dest file is in a subdirectory.
4314     test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
4315     ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`"
4316     # A "../" for each directory in $ac_dest_dir_suffix.
4317     ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'`
4318   else
4319     ac_dest_dir_suffix= ac_dots=
4320   fi
4321
4322   case "$srcdir" in
4323   [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
4324   *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
4325   esac
4326
4327   # Make a symlink if possible; otherwise try a hard link.
4328   if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
4329     ln $srcdir/$ac_source $ac_dest; then :
4330   else
4331     { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
4332   fi
4333 done
4334 EOF
4335 cat >> $CONFIG_STATUS <<EOF
4336 config_vars='$config_vars'
4337 EOF
4338 cat >> $CONFIG_STATUS <<\EOF
4339
4340 case $CONFIG_FILES in *config.make*)
4341 echo "$config_vars" >> config.make;;
4342 esac
4343 test -d bits || mkdir bits
4344 exit 0
4345 EOF
4346 chmod +x $CONFIG_STATUS
4347 rm -fr confdefs* $ac_clean_files
4348 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
4349
4350 if test "$no_recursion" != yes; then
4351
4352   # Remove --cache-file and --srcdir arguments so they do not pile up.
4353   ac_sub_configure_args=
4354   ac_prev=
4355   for ac_arg in $ac_configure_args; do
4356     if test -n "$ac_prev"; then
4357       ac_prev=
4358       continue
4359     fi
4360     case "$ac_arg" in
4361     -cache-file | --cache-file | --cache-fil | --cache-fi \
4362     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
4363       ac_prev=cache_file ;;
4364     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
4365     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
4366       ;;
4367     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
4368       ac_prev=srcdir ;;
4369     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
4370       ;;
4371     *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
4372     esac
4373   done
4374
4375   for ac_config_dir in $add_ons; do
4376
4377     # Do not complain, so a configure script can configure whichever
4378     # parts of a large source tree are present.
4379     if test ! -d $srcdir/$ac_config_dir; then
4380       continue
4381     fi
4382
4383     echo configuring in $ac_config_dir
4384
4385     case "$srcdir" in
4386     .) ;;
4387     *)
4388       if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
4389       else
4390         { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
4391       fi
4392       ;;
4393     esac
4394
4395     ac_popdir=`pwd`
4396     cd $ac_config_dir
4397
4398       # A "../" for each directory in /$ac_config_dir.
4399       ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
4400
4401     case "$srcdir" in
4402     .) # No --srcdir option.  We are building in place.
4403       ac_sub_srcdir=$srcdir ;;
4404     /*) # Absolute path.
4405       ac_sub_srcdir=$srcdir/$ac_config_dir ;;
4406     *) # Relative path.
4407       ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
4408     esac
4409
4410     # Check for guested configure; otherwise get Cygnus style configure.
4411     if test -f $ac_sub_srcdir/configure; then
4412       ac_sub_configure=$ac_sub_srcdir/configure
4413     elif test -f $ac_sub_srcdir/configure.in; then
4414       ac_sub_configure=$ac_configure
4415     else
4416       echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
4417       ac_sub_configure=
4418     fi
4419
4420     # The recursion is here.
4421     if test -n "$ac_sub_configure"; then
4422
4423       # Make the cache file name correct relative to the subdirectory.
4424       case "$cache_file" in
4425       /*) ac_sub_cache_file=$cache_file ;;
4426       *) # Relative path.
4427         ac_sub_cache_file="$ac_dots$cache_file" ;;
4428       esac
4429   case "$ac_given_INSTALL" in
4430         [/$]*) INSTALL="$ac_given_INSTALL" ;;
4431         *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
4432         esac
4433
4434       echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
4435       # The eval makes quoting arguments work.
4436       if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
4437       then :
4438       else
4439         { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
4440       fi
4441     fi
4442
4443     cd $ac_popdir
4444   done
4445 fi
4446