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