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