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