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