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