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