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