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