Update.
[glibc.git] / configure
blob474b21ef6747b2e05d14cb7f2d7d3ebb0feda335
1 #! /bin/sh
3 # From configure.in CVSid
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.
18 # This configure script is free software; the Free Software Foundation
19 # gives unlimited permission to copy, distribute and modify it.
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"
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'
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
109 ac_prev=
110 for ac_option
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
120 case "$ac_option" in
121 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
122 *) ac_optarg= ;;
123 esac
125 # Accept the important Cygnus configure options, so we can diagnose typos.
127 case "$ac_option" in
129 -bindir | --bindir | --bindi | --bind | --bin | --bi)
130 ac_prev=bindir ;;
131 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
132 bindir="$ac_optarg" ;;
134 -build | --build | --buil | --bui | --bu)
135 ac_prev=build ;;
136 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
137 build="$ac_optarg" ;;
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" ;;
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" ;;
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; }
158 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
159 eval "enable_${ac_feature}=no" ;;
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; }
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'" ;;
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" ;;
183 -gas | --gas | --ga | --g)
184 # Obsolete; use --with-gas.
185 with_gas=yes ;;
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
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
237 if test -n "$ac_help"; then
238 echo "--enable and --with options recognized:$ac_help"
240 exit 0 ;;
242 -host | --host | --hos | --ho)
243 ac_prev=host ;;
244 -host=* | --host=* | --hos=* | --ho=*)
245 host="$ac_optarg" ;;
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" ;;
254 -infodir | --infodir | --infodi | --infod | --info | --inf)
255 ac_prev=infodir ;;
256 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
257 infodir="$ac_optarg" ;;
259 -libdir | --libdir | --libdi | --libd)
260 ac_prev=libdir ;;
261 -libdir=* | --libdir=* | --libdi=* | --libd=*)
262 libdir="$ac_optarg" ;;
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" ;;
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" ;;
280 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
281 ac_prev=mandir ;;
282 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
283 mandir="$ac_optarg" ;;
285 -nfp | --nfp | --nf)
286 # Obsolete; use --without-fp.
287 with_fp=no ;;
289 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
290 | --no-cr | --no-c)
291 no_create=yes ;;
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 ;;
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" ;;
306 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
307 ac_prev=prefix ;;
308 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
309 prefix="$ac_optarg" ;;
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" ;;
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" ;;
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" ;;
342 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
343 | -silent | --silent | --silen | --sile | --sil)
344 silent=yes ;;
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" ;;
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" ;;
363 -site | --site | --sit)
364 ac_prev=site ;;
365 -site=* | --site=* | --sit=*)
366 site="$ac_optarg" ;;
368 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
369 ac_prev=srcdir ;;
370 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
371 srcdir="$ac_optarg" ;;
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" ;;
380 -target | --target | --targe | --targ | --tar | --ta | --t)
381 ac_prev=target ;;
382 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
383 target="$ac_optarg" ;;
385 -v | -verbose | --verbose | --verbos | --verbo | --verb)
386 verbose=yes ;;
388 -version | --version | --versio | --versi | --vers)
389 echo "configure generated by autoconf version 2.12"
390 exit 0 ;;
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; }
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'" ;;
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; }
411 ac_package=`echo $ac_package| sed 's/-/_/g'`
412 eval "with_${ac_package}=no" ;;
414 --x)
415 # Obsolete; use --with-x.
416 with_x=yes ;;
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" ;;
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" ;;
432 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
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
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; }
442 nonopt="$ac_option"
445 esac
446 done
448 if test -n "$ac_prev"; then
449 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
452 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
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
467 exec 5>./config.log
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
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
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
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
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
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
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=..
520 else
521 ac_srcdir_defaulted=no
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; }
530 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
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"
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"
545 done
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
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
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=
570 else
571 ac_n= ac_c='\c' ac_t=
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=
585 # This will get text that should go into config.make.
586 config_vars=
588 # Check for a --with-gmp argument and set gmp-srcdir in config.make.
589 # Check whether --with-gmp or --without-gmp was given.
590 if test "${with_gmp+set}" = set; then
591 withval="$with_gmp"
592 case "$with_gmp" in
593 yes) { echo "configure: error: --with-gmp requires an argument; use --with-gmp=DIRECTORY" 1>&2; exit 1; } ;;
594 ''|no) ;;
595 *) config_vars="$config_vars
596 gmp-srcdir = $withval" ;;
597 esac
601 # Check for a --with-gettext argument and set gettext-srcdir in config.make.
602 # Check whether --with-gettext or --without-gettext was given.
603 if test "${with_gettext+set}" = set; then
604 withval="$with_gettext"
605 case "$with_gettext" in
606 yes)
607 { echo "configure: error: --with-gettext requires an argument; use --with-gettext=DIR" 1>&2; exit 1; } ;;
608 ''|no) ;;
610 config_vars="$config_vars
611 gettext-srcdir = $withval" ;;
612 esac
617 # Check whether --with-fp or --without-fp was given.
618 if test "${with_fp+set}" = set; then
619 withval="$with_fp"
620 with_fp=$withval
621 else
622 with_fp=yes
625 # Check whether --with-binutils or --without-binutils was given.
626 if test "${with_binutils+set}" = set; then
627 withval="$with_binutils"
628 path_binutils=$withval
629 else
630 path_binutils=''
633 # Check whether --with-elf or --without-elf was given.
634 if test "${with_elf+set}" = set; then
635 withval="$with_elf"
636 elf=$withval
637 else
638 elf=no
641 # Check whether --with-cvs or --without-cvs was given.
642 if test "${with_cvs+set}" = set; then
643 withval="$with_cvs"
644 with_cvs=$withval
645 else
646 with_cvs=yes
651 # Check whether --with-headers or --without-headers was given.
652 if test "${with_headers+set}" = set; then
653 withval="$with_headers"
654 sysheaders=$withval
655 else
656 sysheaders=''
660 # Check whether --enable-libio or --disable-libio was given.
661 if test "${enable_libio+set}" = set; then
662 enableval="$enable_libio"
663 if test $enableval = yes; then
664 stdio=libio
665 else
666 stdio=stdio
668 else
669 stdio=default
673 # Check whether --enable-sanity-checks or --disable-sanity-checks was given.
674 if test "${enable_sanity_checks+set}" = set; then
675 enableval="$enable_sanity_checks"
676 enable_sanity=$enableval
677 else
678 enable_sanity=yes
682 # Check whether --enable-static or --disable-static was given.
683 if test "${enable_static+set}" = set; then
684 enableval="$enable_static"
685 static=$enableval
686 else
687 static=yes
690 # Check whether --enable-shared or --disable-shared was given.
691 if test "${enable_shared+set}" = set; then
692 enableval="$enable_shared"
693 shared=$enableval
694 else
695 shared=default
698 # Check whether --enable-profile or --disable-profile was given.
699 if test "${enable_profile+set}" = set; then
700 enableval="$enable_profile"
701 profile=$enableval
702 else
703 profile=yes
706 # Check whether --enable-omitfp or --disable-omitfp was given.
707 if test "${enable_omitfp+set}" = set; then
708 enableval="$enable_omitfp"
709 omitfp=$enableval
710 else
711 omitfp=no
714 # Check whether --enable-bounded or --disable-bounded was given.
715 if test "${enable_bounded+set}" = set; then
716 enableval="$enable_bounded"
717 bounded=$enableval
718 else
719 bounded=no
722 # Check whether --enable-versioning or --disable-versioning was given.
723 if test "${enable_versioning+set}" = set; then
724 enableval="$enable_versioning"
725 enable_versioning=$enableval
726 else
727 enable_versioning=yes
731 # Check whether --enable-add-ons or --disable-add-ons was given.
732 if test "${enable_add_ons+set}" = set; then
733 enableval="$enable_add_ons"
734 case "$enableval" in
735 yes) if test "$srcdir" = "."; then
736 add_ons=`echo */configure | sed -e 's!/configure!!g'`
737 else
738 add_ons=`echo $srcdir/*/configure | \
739 sed -e 's!/configure!!g' -e "s!$srcdir/!!g"`
740 fi;;
741 *) add_ons=`echo "$enableval" | sed 's/,/ /g'`;;
742 esac
743 else
744 add_ons=
748 ac_aux_dir=
749 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
750 if test -f $ac_dir/install-sh; then
751 ac_aux_dir=$ac_dir
752 ac_install_sh="$ac_aux_dir/install-sh -c"
753 break
754 elif test -f $ac_dir/install.sh; then
755 ac_aux_dir=$ac_dir
756 ac_install_sh="$ac_aux_dir/install.sh -c"
757 break
759 done
760 if test -z "$ac_aux_dir"; then
761 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
763 ac_config_guess=$ac_aux_dir/config.guess
764 ac_config_sub=$ac_aux_dir/config.sub
765 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
767 subdirs="$add_ons"
769 add_ons_pfx=
770 if test x"$add_ons" != x; then
771 for f in $add_ons; do
772 # Test whether such a subdir really exists.
773 if test -d $srcdir/$f; then
774 add_ons_pfx="$add_ons_pfx $f/"
775 else
776 { echo "configure: error: add-on directory \"$f\" does not exist" 1>&2; exit 1; }
778 done
781 # Check whether --enable-static-nss or --disable-static-nss was given.
782 if test "${enable_static_nss+set}" = set; then
783 enableval="$enable_static_nss"
784 static_nss=$enableval
785 else
786 static_nss=no
789 if test x"$static_nss" = xyes; then
790 cat >> confdefs.h <<\EOF
791 #define DO_STATIC_NSS 1
796 # Check whether --enable-force-install or --disable-force-install was given.
797 if test "${enable_force_install+set}" = set; then
798 enableval="$enable_force_install"
799 force_install=$enableval
800 else
801 force_install=yes
807 # Make sure we can run config.sub.
808 if $ac_config_sub sun4 >/dev/null 2>&1; then :
809 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
812 echo $ac_n "checking host system type""... $ac_c" 1>&6
813 echo "configure:814: checking host system type" >&5
815 host_alias=$host
816 case "$host_alias" in
817 NONE)
818 case $nonopt in
819 NONE)
820 if host_alias=`$ac_config_guess`; then :
821 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
822 fi ;;
823 *) host_alias=$nonopt ;;
824 esac ;;
825 esac
827 host=`$ac_config_sub $host_alias`
828 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
829 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
830 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
831 echo "$ac_t""$host" 1>&6
834 # The way shlib-versions is used to generate soversions.mk uses a
835 # fairly simplistic model for name recognition that can't distinguish
836 # i486-pc-linux-gnu fully from i486-pc-gnu. So we mutate a $host_os
837 # of `gnu*' here to be `gnu-gnu*' just so that shlib-versions can
838 # tell. This doesn't get used much beyond that, so it's fairly safe.
839 case "$host_os" in
840 linux*)
842 gnu*)
843 host_os=`echo $host_os | sed -e 's/gnu/gnu-gnu/'`
845 esac
848 ### I put this here to prevent those annoying emails from people who cannot
849 ### read and try to compile glibc on unsupported platforms. --drepper
851 ### By using the undocumented --enable-hacker-mode option for configure
852 ### one can skip this test to make the configuration not fail for unsupported
853 ### platforms.
855 if test -z "$enable_hacker_mode"; then
856 case "$machine-$host_os" in
857 *-linux* | *-gnu* | arm*-none*)
860 echo "*** The GNU C library is currently not available for this platform."
861 echo "*** So far nobody cared to port it and if there is no volunteer it"
862 echo "*** might never happen. So, if you have interest to see glibc on"
863 echo "*** this platform visit"
864 echo "*** http://www.gnu.org/software/libc/porting.html"
865 echo "*** and join the group of porters"
866 exit 1
868 esac
871 # We keep the original values in `$config_*' and never modify them, so we
872 # can write them unchanged into config.make. Everything else uses
873 # $machine, $vendor, and $os, and changes them whenever convenient.
874 config_machine=$host_cpu config_vendor=$host_vendor config_os=$host_os
876 # Some configurations imply other options.
877 case "$host_os" in
878 gnu* | linux* | bsd4.4* | netbsd* | freebsd*)
879 # These systems always use GNU tools.
880 gnu_ld=yes gnu_as=yes ;;
881 esac
882 case "$host_os" in
883 # i586-linuxaout is mangled into i586-pc-linux-gnuaout
884 linux*ecoff* | linux*aout* | gnu*aout* | gnu*ecoff*)
886 gnu* | linux* | sysv4* | solaris2* | irix6*)
887 # These systems (almost) always use the ELF format.
888 elf=yes
890 esac
892 machine=$config_machine
893 vendor=$config_vendor
894 os=$config_os
896 # Expand the configuration machine name into a subdirectory by architecture
897 # type and particular chip.
898 case "$machine" in
899 a29k | am29000) base_machine=a29k machine=a29k ;;
900 alpha*) base_machine=alpha machine=alpha/$machine ;;
901 arm*) base_machine=arm machine=arm/$machine ;;
902 c3[012]) base_machine=cx0 machine=cx0/c30 ;;
903 c4[04]) base_machine=cx0 machine=cx0/c40 ;;
904 hppa*) base_machine=hppa machine=hppa/$machine ;;
905 i[3456]86) base_machine=i386 machine=i386/$machine ;;
906 m680?0) base_machine=m68k machine=m68k/$machine ;;
907 m68k) base_machine=m68k machine=m68k/m68020 ;;
908 m88???) base_machine=m88k machine=m88k/$machine ;;
909 m88k) base_machine=m88k machine=m88k/m88100 ;;
910 mips64*) base_machine=mips64 machine=mips/mips64/$machine ;;
911 mips*) base_machine=mips
912 case "`uname -m`" in
913 IP22) machine=mips/mips3 ;;
914 *) machine=mips/$machine ,,
915 esac ;;
916 sparc | sparcv[67])
917 base_machine=sparc machine=sparc/sparc32 ;;
918 sparcv8 | supersparc | hypersparc)
919 base_machine=sparc machine=sparc/sparc32/sparcv8 ;;
920 sparc64 | ultrasparc)
921 base_machine=sparc machine=sparc/sparc64 ;;
922 esac
925 if test "$base_machine" = "i386"; then
926 cat >> confdefs.h <<\EOF
927 #define USE_REGPARMS 1
932 # Compute the list of sysdep directories for this configuration.
933 # This can take a while to compute.
934 sysdep_dir=$srcdir/sysdeps
935 echo $ac_n "checking sysdep dirs""... $ac_c" 1>&6
936 echo "configure:937: checking sysdep dirs" >&5
937 # Make sco3.2v4 become sco3.2.4 and sunos4.1.1_U1 become sunos4.1.1.U1.
938 os="`echo $os | sed 's/\([0-9A-Z]\)[v_]\([0-9A-Z]\)/\1.\2/g'`"
940 case "$os" in
941 gnu*)
942 base_os=mach/hurd ;;
943 netbsd* | 386bsd* | freebsd* | bsdi*)
944 base_os=unix/bsd/bsd4.4 ;;
945 osf* | sunos* | ultrix* | newsos* | dynix* | *bsd*)
946 base_os=unix/bsd ;;
947 sysv* | isc* | esix* | sco* | minix* | irix4* | linux*)
948 base_os=unix/sysv ;;
949 irix6*)
950 base_os=unix/sysv/irix6/$os ;;
951 solaris[2-9]*)
952 base_os=unix/sysv/sysv4 ;;
953 none)
954 base_os=standalone ;;
956 base_os='' ;;
957 esac
959 # For sunos4.1.1, try sunos4.1.1, then sunos4.1, then sunos4, then sunos.
960 tail=$os
961 ostry=$os
962 while o=`echo $tail | sed 's/\.[^.]*$//'`; test $o != $tail; do
963 ostry="$ostry /$o"
964 tail=$o
965 done
966 o=`echo $tail | sed 's/[0-9]*$//'`
967 if test $o != $tail; then
968 ostry="$ostry /$o"
970 # For linux-gnu, try linux-gnu, then linux.
971 o=`echo $tail | sed 's/-.*$//'`
972 if test $o != $tail; then
973 ostry="$ostry /$o"
976 # For unix/sysv/sysv4, try unix/sysv/sysv4, then unix/sysv, then unix.
977 base=
978 tail=$base_os
979 while b=`echo $tail | sed 's@^\(.*\)/\([^/]*\)$@& \1@'`; test -n "$b"; do
980 set $b
981 base="$base /$1"
982 tail="$2"
983 done
985 # For sparc/sparc9, try sparc/sparc9 and then sparc.
986 mach=
987 tail=$machine
988 while m=`echo $tail | sed 's@^\(.*\)/\([^/]*\)$@& \1@'`; test -n "$m"; do
989 set $m
990 # Prepend the machine's FPU directory unless --without-fp.
991 if test "$with_fp" = yes; then
992 mach="$mach /$1/fpu"
994 mach="$mach /$1"
995 tail="$2"
996 done
999 # Find what sysdep directories exist.
1000 sysnames=
1001 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1002 for d in $add_ons_pfx ''; do
1003 for b in $base ''; do
1004 for m0 in $mach ''; do
1005 for v in /$vendor ''; do
1006 test "$v" = / && continue
1007 for o in /$ostry ''; do
1008 test "$o" = / && continue
1009 for m in $mach ''; do
1010 if test "$m0$b$v$o$m"; then
1011 try="${d}sysdeps$m0$b$v$o$m"
1012 test -n "$enable_debug_configure" &&
1013 echo "$0 DEBUG: try $try" >&2
1014 case $try in
1015 /*) dest=$try ;;
1016 *) dest=$srcdir/$try ;;
1017 esac
1018 if test -d $dest; then
1019 sysnames="$sysnames $try"
1020 { test -n "$o" || test -n "$b"; } && os_used=t
1021 { test -n "$m" || test -n "$m0"; } && machine_used=t
1024 done
1025 done
1026 done
1027 done
1028 done
1029 done
1030 IFS="$ac_save_ifs"
1032 if test -z "$os_used" && test "$os" != none; then
1033 { echo "configure: error: Operating system $os is not supported." 1>&2; exit 1; }
1035 if test -z "$machine_used" && test "$machine" != none; then
1036 { echo "configure: error: The $machine is not supported." 1>&2; exit 1; }
1039 # We have now validated the configuration.
1042 # If using ELF, look for an `elf' subdirectory of each machine directory.
1043 # We prepend these rather than inserting them whereever the machine appears
1044 # because things specified by the machine's ELF ABI should override
1045 # OS-specific things, and should always be the same for any OS on the
1046 # machine (otherwise what's the point of an ABI?).
1047 if test "$elf" = yes; then
1048 elf_dirs=
1049 for d in $add_ons_pfx ''; do
1050 case $d in
1051 /*) xsrcdir= ;;
1052 *) xsrcdir=$srcdir/ ;;
1053 esac
1054 for m in $mach; do
1055 if test -d $xsrcdir${d}sysdeps$m/elf; then
1056 elf_dirs="$elf_dirs ${d}sysdeps$m/elf"
1058 done
1059 done
1060 sysnames="`echo $elf_dirs | sed -e 's,//,/,g'` $sysnames"
1064 # Expand the list of system names into a full list of directories
1065 # from each element's parent name and Implies file (if present).
1066 set $sysnames
1067 names=
1068 while test $# -gt 0; do
1069 name=$1
1070 shift
1072 case " $names " in *" $name "*)
1073 # Already in the list.
1074 continue
1075 esac
1077 # Report each name as we discover it, so there is no long pause in output.
1078 echo $ac_n "$name $ac_c" >&6
1080 name_base=`echo $name | sed -e 's@\(.*sysdeps\)/.*@\1@'`
1082 case $name in
1083 /*) xsrcdir= ;;
1084 *) xsrcdir=$srcdir/ ;;
1085 esac
1086 test -n "$enable_debug_configure" &&
1087 echo "DEBUG: name/Implies $xsrcdir$name/Implies" >&2
1089 if test -f $xsrcdir$name/Implies; then
1090 # Collect more names from the `Implies' file (removing comments).
1091 implied_candidate="`sed 's/#.*$//' < $xsrcdir$name/Implies`"
1092 implied=
1093 for x in $implied_candidate; do
1094 if test -d $xsrcdir$name_base/$x; then
1095 implied="$implied $name_base/$x";
1096 else
1097 echo "configure: warning: $name/Implies specifies nonexistent $x" 1>&2
1099 done
1100 else
1101 implied=
1104 # Add NAME to the list of names.
1105 names="$names $name"
1107 # Find the parent of NAME, using the empty string if it has none.
1108 parent="`echo $name | sed -n -e 's=/[^/]*$==' -e '/sysdeps$/q' -e p`"
1110 # Add the names implied by NAME, and NAME's parent (if it has one), to
1111 # the list of names to be processed (the argument list). We prepend the
1112 # implied names to the list and append the parent. We want implied
1113 # directories to come before further directories inferred from the
1114 # configuration components; this ensures that for sysv4, unix/common
1115 # (implied by unix/sysv/sysv4) comes before unix/sysv (in ostry (here $*)
1116 # after sysv4).
1117 sysnames="`echo $implied $* $parent`"
1118 test -n "$sysnames" && set $sysnames
1119 done
1121 # Add the default directories.
1122 sysnames="$names sysdeps/generic"
1124 # The other names were emitted during the scan.
1125 echo "$ac_t""sysdeps/generic" 1>&6
1128 ### Locate tools.
1130 # Find a good install program. We prefer a C program (faster),
1131 # so one script is as good as another. But avoid the broken or
1132 # incompatible versions:
1133 # SysV /etc/install, /usr/sbin/install
1134 # SunOS /usr/etc/install
1135 # IRIX /sbin/install
1136 # AIX /bin/install
1137 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1138 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1139 # ./install, which can be erroneously created by make from ./install.sh.
1140 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1141 echo "configure:1142: checking for a BSD compatible install" >&5
1142 if test -z "$INSTALL"; then
1143 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1144 echo $ac_n "(cached) $ac_c" 1>&6
1145 else
1146 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
1147 for ac_dir in $PATH; do
1148 # Account for people who put trailing slashes in PATH elements.
1149 case "$ac_dir/" in
1150 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1152 # OSF1 and SCO ODT 3.0 have their own names for install.
1153 for ac_prog in ginstall installbsd scoinst install; do
1154 if test -f $ac_dir/$ac_prog; then
1155 if test $ac_prog = install &&
1156 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1157 # AIX install. It has an incompatible calling convention.
1158 # OSF/1 installbsd also uses dspmsg, but is usable.
1160 else
1161 ac_cv_path_install="$ac_dir/$ac_prog -c"
1162 break 2
1165 done
1167 esac
1168 done
1169 IFS="$ac_save_IFS"
1172 if test "${ac_cv_path_install+set}" = set; then
1173 INSTALL="$ac_cv_path_install"
1174 else
1175 # As a last resort, use the slow shell script. We don't cache a
1176 # path for INSTALL within a source directory, because that will
1177 # break other packages using the cache if that directory is
1178 # removed, or if the path is relative.
1179 INSTALL="$ac_install_sh"
1182 echo "$ac_t""$INSTALL" 1>&6
1184 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1185 # It thinks the first close brace ends the variable substitution.
1186 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1188 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1190 if test "$INSTALL" = "${srcdir}/install-sh -c"; then
1191 # The makefiles need to use a different form to find it in $srcdir.
1192 INSTALL='\$(..)./install-sh -c'
1194 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1195 echo "configure:1196: checking whether ln -s works" >&5
1196 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1197 echo $ac_n "(cached) $ac_c" 1>&6
1198 else
1199 rm -f conftestdata
1200 if ln -s X conftestdata 2>/dev/null
1201 then
1202 rm -f conftestdata
1203 ac_cv_prog_LN_S="ln -s"
1204 else
1205 ac_cv_prog_LN_S=ln
1208 LN_S="$ac_cv_prog_LN_S"
1209 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1210 echo "$ac_t""yes" 1>&6
1211 else
1212 echo "$ac_t""no" 1>&6
1216 # These programs are version sensitive.
1217 echo $ac_n "checking build system type""... $ac_c" 1>&6
1218 echo "configure:1219: checking build system type" >&5
1220 build_alias=$build
1221 case "$build_alias" in
1222 NONE)
1223 case $nonopt in
1224 NONE) build_alias=$host_alias ;;
1225 *) build_alias=$nonopt ;;
1226 esac ;;
1227 esac
1229 build=`$ac_config_sub $build_alias`
1230 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1231 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1232 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1233 echo "$ac_t""$build" 1>&6
1235 if test $host != $build; then
1236 ac_tool_prefix=${host_alias}-
1237 else
1238 ac_tool_prefix=
1241 for ac_prog in ${ac_tool_prefix}gcc ${ac_tool_prefix}cc
1243 # Extract the first word of "$ac_prog", so it can be a program name with args.
1244 set dummy $ac_prog; ac_word=$2
1245 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1246 echo "configure:1247: checking for $ac_word" >&5
1247 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1248 echo $ac_n "(cached) $ac_c" 1>&6
1249 else
1250 if test -n "$CC"; then
1251 ac_cv_prog_CC="$CC" # Let the user override the test.
1252 else
1253 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1254 for ac_dir in $PATH; do
1255 test -z "$ac_dir" && ac_dir=.
1256 if test -f $ac_dir/$ac_word; then
1257 ac_cv_prog_CC="$ac_prog"
1258 break
1260 done
1261 IFS="$ac_save_ifs"
1264 CC="$ac_cv_prog_CC"
1265 if test -n "$CC"; then
1266 echo "$ac_t""$CC" 1>&6
1267 else
1268 echo "$ac_t""no" 1>&6
1271 test -n "$CC" && break
1272 done
1274 if test -z "$CC"; then
1275 ac_verc_fail=yes
1276 else
1277 # Found it, now check the version.
1278 echo $ac_n "checking version of $CC""... $ac_c" 1>&6
1279 echo "configure:1280: checking version of $CC" >&5
1280 ac_prog_version=`$CC -v 2>&1 | sed -n 's/^.*version \([egcst0-9.-]*\).*$/\1/p'`
1281 case $ac_prog_version in
1282 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
1283 egcs-2.91.*|egcs-2.90.2[789]|egcs-2.90.[3-9][0-9]|*2.8.[1-9]*|*2.9.[0-9]*)
1284 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
1285 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
1287 esac
1288 echo "$ac_t""$ac_prog_version" 1>&6
1290 if test $ac_verc_fail = yes; then
1291 critic_missing=t
1294 for ac_prog in make gmake
1296 # Extract the first word of "$ac_prog", so it can be a program name with args.
1297 set dummy $ac_prog; ac_word=$2
1298 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1299 echo "configure:1300: checking for $ac_word" >&5
1300 if eval "test \"`echo '$''{'ac_cv_prog_MAKE'+set}'`\" = set"; then
1301 echo $ac_n "(cached) $ac_c" 1>&6
1302 else
1303 if test -n "$MAKE"; then
1304 ac_cv_prog_MAKE="$MAKE" # Let the user override the test.
1305 else
1306 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1307 for ac_dir in $PATH; do
1308 test -z "$ac_dir" && ac_dir=.
1309 if test -f $ac_dir/$ac_word; then
1310 ac_cv_prog_MAKE="$ac_prog"
1311 break
1313 done
1314 IFS="$ac_save_ifs"
1317 MAKE="$ac_cv_prog_MAKE"
1318 if test -n "$MAKE"; then
1319 echo "$ac_t""$MAKE" 1>&6
1320 else
1321 echo "$ac_t""no" 1>&6
1324 test -n "$MAKE" && break
1325 done
1327 if test -z "$MAKE"; then
1328 ac_verc_fail=yes
1329 else
1330 # Found it, now check the version.
1331 echo $ac_n "checking version of $MAKE""... $ac_c" 1>&6
1332 echo "configure:1333: checking version of $MAKE" >&5
1333 ac_prog_version=`$MAKE --version 2>&1 | sed -n 's/^.*version \([0-9][0-9.]*\), by.*$/\1/p'`
1334 case $ac_prog_version in
1335 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
1336 3.75 | 3.76.[1-9] | 3.7[789]* | 3.[89]*)
1337 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
1338 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
1340 esac
1341 echo "$ac_t""$ac_prog_version" 1>&6
1343 if test $ac_verc_fail = yes; then
1344 critic_missing=t
1348 for ac_prog in msgfmt gmsgfmt
1350 # Extract the first word of "$ac_prog", so it can be a program name with args.
1351 set dummy $ac_prog; ac_word=$2
1352 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1353 echo "configure:1354: checking for $ac_word" >&5
1354 if eval "test \"`echo '$''{'ac_cv_prog_MSGFMT'+set}'`\" = set"; then
1355 echo $ac_n "(cached) $ac_c" 1>&6
1356 else
1357 if test -n "$MSGFMT"; then
1358 ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
1359 else
1360 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1361 for ac_dir in $PATH; do
1362 test -z "$ac_dir" && ac_dir=.
1363 if test -f $ac_dir/$ac_word; then
1364 ac_cv_prog_MSGFMT="$ac_prog"
1365 break
1367 done
1368 IFS="$ac_save_ifs"
1371 MSGFMT="$ac_cv_prog_MSGFMT"
1372 if test -n "$MSGFMT"; then
1373 echo "$ac_t""$MSGFMT" 1>&6
1374 else
1375 echo "$ac_t""no" 1>&6
1378 test -n "$MSGFMT" && break
1379 done
1381 if test -z "$MSGFMT"; then
1382 ac_verc_fail=yes
1383 else
1384 # Found it, now check the version.
1385 echo $ac_n "checking version of $MSGFMT""... $ac_c" 1>&6
1386 echo "configure:1387: checking version of $MSGFMT" >&5
1387 ac_prog_version=`$MSGFMT --version 2>&1 | sed -n 's/^.*GNU gettext.*\([0-9][0-9]*\.[0-9]*\).*$/\1/p'`
1388 case $ac_prog_version in
1389 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
1390 0.[1-9][0-9] | [1-9].*)
1391 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
1392 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
1394 esac
1395 echo "$ac_t""$ac_prog_version" 1>&6
1397 if test $ac_verc_fail = yes; then
1398 MSGFMT=: aux_missing=t
1401 for ac_prog in makeinfo
1403 # Extract the first word of "$ac_prog", so it can be a program name with args.
1404 set dummy $ac_prog; ac_word=$2
1405 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1406 echo "configure:1407: checking for $ac_word" >&5
1407 if eval "test \"`echo '$''{'ac_cv_prog_MAKEINFO'+set}'`\" = set"; then
1408 echo $ac_n "(cached) $ac_c" 1>&6
1409 else
1410 if test -n "$MAKEINFO"; then
1411 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
1412 else
1413 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1414 for ac_dir in $PATH; do
1415 test -z "$ac_dir" && ac_dir=.
1416 if test -f $ac_dir/$ac_word; then
1417 ac_cv_prog_MAKEINFO="$ac_prog"
1418 break
1420 done
1421 IFS="$ac_save_ifs"
1424 MAKEINFO="$ac_cv_prog_MAKEINFO"
1425 if test -n "$MAKEINFO"; then
1426 echo "$ac_t""$MAKEINFO" 1>&6
1427 else
1428 echo "$ac_t""no" 1>&6
1431 test -n "$MAKEINFO" && break
1432 done
1434 if test -z "$MAKEINFO"; then
1435 ac_verc_fail=yes
1436 else
1437 # Found it, now check the version.
1438 echo $ac_n "checking version of $MAKEINFO""... $ac_c" 1>&6
1439 echo "configure:1440: checking version of $MAKEINFO" >&5
1440 ac_prog_version=`$MAKEINFO --version 2>&1 | sed -n 's/^.*GNU texinfo \([0-9][0-9.]*\).*$/\1/p'`
1441 case $ac_prog_version in
1442 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
1443 3.1[1-9] | 3.[2-9][0-9])
1444 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
1445 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
1447 esac
1448 echo "$ac_t""$ac_prog_version" 1>&6
1450 if test $ac_verc_fail = yes; then
1451 MAKEINFO=: aux_missing=t
1455 if test -n "$critic_missing"; then
1456 { echo "configure: error:
1457 *** Some critical program is missing or too old.
1458 *** Check the INSTALL file for required versions." 1>&2; exit 1; }
1461 test -n "$aux_missing" && echo "configure: warning:
1462 *** An auxiliary program is missing or too old;
1463 *** some features will be disabled.
1464 *** Check the INSTALL file for required versions." 1>&2
1467 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1468 echo "configure:1469: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1469 if eval "test \"`echo '$''{'ac_cv_prog_cc_works'+set}'`\" = set"; then
1470 echo $ac_n "(cached) $ac_c" 1>&6
1471 else
1473 ac_ext=c
1474 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1475 ac_cpp='$CPP $CPPFLAGS'
1476 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1477 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1478 cross_compiling=$ac_cv_prog_cc_cross
1480 cat > conftest.$ac_ext <<EOF
1481 #line 1482 "configure"
1482 #include "confdefs.h"
1483 main(){return(0);}
1485 if { (eval echo configure:1486: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1486 ac_cv_prog_cc_works=yes
1487 # If we can't run a trivial program, we are probably using a cross compiler.
1488 if (./conftest; exit) 2>/dev/null; then
1489 ac_cv_prog_cc_cross=no
1490 else
1491 ac_cv_prog_cc_cross=yes
1493 else
1494 echo "configure: failed program was:" >&5
1495 cat conftest.$ac_ext >&5
1496 ac_cv_prog_cc_works=no
1498 rm -fr conftest*
1502 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1503 if test $ac_cv_prog_cc_works = no; then
1504 cross_linkable=no
1505 ac_cv_prog_cc_cross=yes
1506 else
1507 cross_linkable=yes
1509 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1510 echo "configure:1511: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1511 if eval "test \"`echo '$''{'ac_cv_prog_cc_cross'+set}'`\" = set"; then
1512 echo $ac_n "(cached) $ac_c" 1>&6
1513 else
1517 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1519 cross_compiling=$ac_cv_prog_cc_cross
1521 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1522 echo "configure:1523: checking whether we are using GNU C" >&5
1523 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1524 echo $ac_n "(cached) $ac_c" 1>&6
1525 else
1526 cat > conftest.c <<EOF
1527 #ifdef __GNUC__
1528 yes;
1529 #endif
1531 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1532: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1532 ac_cv_prog_gcc=yes
1533 else
1534 ac_cv_prog_gcc=no
1538 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1539 if test $ac_cv_prog_gcc != yes; then
1540 { echo "configure: error: GNU libc must be compiled using GNU CC" 1>&2; exit 1; }
1543 echo $ac_n "checking build system type""... $ac_c" 1>&6
1544 echo "configure:1545: checking build system type" >&5
1546 build_alias=$build
1547 case "$build_alias" in
1548 NONE)
1549 case $nonopt in
1550 NONE) build_alias=$host_alias ;;
1551 *) build_alias=$nonopt ;;
1552 esac ;;
1553 esac
1555 build=`$ac_config_sub $build_alias`
1556 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1557 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1558 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1559 echo "$ac_t""$build" 1>&6
1561 if test $host != $build; then
1562 for ac_prog in gcc cc
1564 # Extract the first word of "$ac_prog", so it can be a program name with args.
1565 set dummy $ac_prog; ac_word=$2
1566 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1567 echo "configure:1568: checking for $ac_word" >&5
1568 if eval "test \"`echo '$''{'ac_cv_prog_BUILD_CC'+set}'`\" = set"; then
1569 echo $ac_n "(cached) $ac_c" 1>&6
1570 else
1571 if test -n "$BUILD_CC"; then
1572 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
1573 else
1574 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1575 for ac_dir in $PATH; do
1576 test -z "$ac_dir" && ac_dir=.
1577 if test -f $ac_dir/$ac_word; then
1578 ac_cv_prog_BUILD_CC="$ac_prog"
1579 break
1581 done
1582 IFS="$ac_save_ifs"
1585 BUILD_CC="$ac_cv_prog_BUILD_CC"
1586 if test -n "$BUILD_CC"; then
1587 echo "$ac_t""$BUILD_CC" 1>&6
1588 else
1589 echo "$ac_t""no" 1>&6
1592 test -n "$BUILD_CC" && break
1593 done
1597 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1598 echo "configure:1599: checking how to run the C preprocessor" >&5
1599 # On Suns, sometimes $CPP names a directory.
1600 if test -n "$CPP" && test -d "$CPP"; then
1601 CPP=
1603 if test -z "$CPP"; then
1604 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1605 echo $ac_n "(cached) $ac_c" 1>&6
1606 else
1607 # This must be in double quotes, not single quotes, because CPP may get
1608 # substituted into the Makefile and "${CC-cc}" will confuse make.
1609 CPP="${CC-cc} -E"
1610 # On the NeXT, cc -E runs the code through the compiler's parser,
1611 # not just through cpp.
1612 cat > conftest.$ac_ext <<EOF
1613 #line 1614 "configure"
1614 #include "confdefs.h"
1615 #include <assert.h>
1616 Syntax Error
1618 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1619 { (eval echo configure:1620: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1620 ac_err=`grep -v '^ *+' conftest.out`
1621 if test -z "$ac_err"; then
1623 else
1624 echo "$ac_err" >&5
1625 echo "configure: failed program was:" >&5
1626 cat conftest.$ac_ext >&5
1627 rm -rf conftest*
1628 CPP="${CC-cc} -E -traditional-cpp"
1629 cat > conftest.$ac_ext <<EOF
1630 #line 1631 "configure"
1631 #include "confdefs.h"
1632 #include <assert.h>
1633 Syntax Error
1635 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1636 { (eval echo configure:1637: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1637 ac_err=`grep -v '^ *+' conftest.out`
1638 if test -z "$ac_err"; then
1640 else
1641 echo "$ac_err" >&5
1642 echo "configure: failed program was:" >&5
1643 cat conftest.$ac_ext >&5
1644 rm -rf conftest*
1645 CPP=/lib/cpp
1647 rm -f conftest*
1649 rm -f conftest*
1650 ac_cv_prog_CPP="$CPP"
1652 CPP="$ac_cv_prog_CPP"
1653 else
1654 ac_cv_prog_CPP="$CPP"
1656 echo "$ac_t""$CPP" 1>&6
1658 # Was a --with-binutils option given?
1659 if test -n "$path_binutils"; then
1660 # Make absolute; ensure a single trailing slash.
1661 path_binutils=`(cd $path_binutils; pwd) | sed 's%/*$%/%'`
1662 CC="$CC -B$path_binutils"
1664 AS=`$CC -print-prog-name=as`
1665 LD=`$CC -print-prog-name=ld`
1667 # Determine whether we are using GNU binutils.
1668 echo $ac_n "checking whether $AS is GNU as""... $ac_c" 1>&6
1669 echo "configure:1670: checking whether $AS is GNU as" >&5
1670 if eval "test \"`echo '$''{'libc_cv_prog_as_gnu'+set}'`\" = set"; then
1671 echo $ac_n "(cached) $ac_c" 1>&6
1672 else
1673 # Most GNU programs take a -v and spit out some text including
1674 # the word 'GNU'. Some try to read stdin, so give them /dev/null.
1675 if $AS -v </dev/null 2>&1 | grep GNU > /dev/null 2>&1; then
1676 libc_cv_prog_as_gnu=yes
1677 else
1678 libc_cv_prog_as_gnu=no
1682 echo "$ac_t""$libc_cv_prog_as_gnu" 1>&6
1683 rm -f a.out
1684 gnu_as=$libc_cv_prog_as_gnu
1686 echo $ac_n "checking whether $LD is GNU ld""... $ac_c" 1>&6
1687 echo "configure:1688: checking whether $LD is GNU ld" >&5
1688 if eval "test \"`echo '$''{'libc_cv_prog_ld_gnu'+set}'`\" = set"; then
1689 echo $ac_n "(cached) $ac_c" 1>&6
1690 else
1691 # Most GNU programs take a -v and spit out some text including
1692 # the word 'GNU'. Some try to read stdin, so give them /dev/null.
1693 if $LD -v </dev/null 2>&1 | grep GNU > /dev/null 2>&1; then
1694 libc_cv_prog_ld_gnu=yes
1695 else
1696 libc_cv_prog_ld_gnu=no
1700 echo "$ac_t""$libc_cv_prog_ld_gnu" 1>&6
1701 gnu_ld=$libc_cv_prog_ld_gnu
1703 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
1704 set dummy ${ac_tool_prefix}ar; ac_word=$2
1705 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1706 echo "configure:1707: checking for $ac_word" >&5
1707 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1708 echo $ac_n "(cached) $ac_c" 1>&6
1709 else
1710 if test -n "$AR"; then
1711 ac_cv_prog_AR="$AR" # Let the user override the test.
1712 else
1713 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1714 for ac_dir in $PATH; do
1715 test -z "$ac_dir" && ac_dir=.
1716 if test -f $ac_dir/$ac_word; then
1717 ac_cv_prog_AR="${ac_tool_prefix}ar"
1718 break
1720 done
1721 IFS="$ac_save_ifs"
1722 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
1725 AR="$ac_cv_prog_AR"
1726 if test -n "$AR"; then
1727 echo "$ac_t""$AR" 1>&6
1728 else
1729 echo "$ac_t""no" 1>&6
1734 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1735 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1736 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1737 echo "configure:1738: checking for $ac_word" >&5
1738 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1739 echo $ac_n "(cached) $ac_c" 1>&6
1740 else
1741 if test -n "$RANLIB"; then
1742 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1743 else
1744 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1745 for ac_dir in $PATH; do
1746 test -z "$ac_dir" && ac_dir=.
1747 if test -f $ac_dir/$ac_word; then
1748 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1749 break
1751 done
1752 IFS="$ac_save_ifs"
1755 RANLIB="$ac_cv_prog_RANLIB"
1756 if test -n "$RANLIB"; then
1757 echo "$ac_t""$RANLIB" 1>&6
1758 else
1759 echo "$ac_t""no" 1>&6
1763 if test -z "$ac_cv_prog_RANLIB"; then
1764 if test -n "$ac_tool_prefix"; then
1765 # Extract the first word of "ranlib", so it can be a program name with args.
1766 set dummy ranlib; ac_word=$2
1767 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1768 echo "configure:1769: checking for $ac_word" >&5
1769 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1770 echo $ac_n "(cached) $ac_c" 1>&6
1771 else
1772 if test -n "$RANLIB"; then
1773 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1774 else
1775 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1776 for ac_dir in $PATH; do
1777 test -z "$ac_dir" && ac_dir=.
1778 if test -f $ac_dir/$ac_word; then
1779 ac_cv_prog_RANLIB="ranlib"
1780 break
1782 done
1783 IFS="$ac_save_ifs"
1784 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1787 RANLIB="$ac_cv_prog_RANLIB"
1788 if test -n "$RANLIB"; then
1789 echo "$ac_t""$RANLIB" 1>&6
1790 else
1791 echo "$ac_t""no" 1>&6
1794 else
1795 RANLIB=":"
1799 # Extract the first word of "${ac_tool_prefix}mig", so it can be a program name with args.
1800 set dummy ${ac_tool_prefix}mig; ac_word=$2
1801 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1802 echo "configure:1803: checking for $ac_word" >&5
1803 if eval "test \"`echo '$''{'ac_cv_prog_MIG'+set}'`\" = set"; then
1804 echo $ac_n "(cached) $ac_c" 1>&6
1805 else
1806 if test -n "$MIG"; then
1807 ac_cv_prog_MIG="$MIG" # Let the user override the test.
1808 else
1809 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1810 for ac_dir in $PATH; do
1811 test -z "$ac_dir" && ac_dir=.
1812 if test -f $ac_dir/$ac_word; then
1813 ac_cv_prog_MIG="${ac_tool_prefix}mig"
1814 break
1816 done
1817 IFS="$ac_save_ifs"
1818 test -z "$ac_cv_prog_MIG" && ac_cv_prog_MIG="mig"
1821 MIG="$ac_cv_prog_MIG"
1822 if test -n "$MIG"; then
1823 echo "$ac_t""$MIG" 1>&6
1824 else
1825 echo "$ac_t""no" 1>&6
1831 # if using special system headers, find out the compiler's sekrit
1832 # header directory and add that to the list. NOTE: Only does the right
1833 # thing on a system that doesn't need fixincludes. (Not presently a problem.)
1834 if test -n "$sysheaders"; then
1835 ccheaders=`$CC -print-file-name=include`
1836 SYSINCLUDES="-nostdinc -isystem $ccheaders -isystem $sysheaders"
1840 # check if ar takes S
1841 echo $ac_n "checking for ar S""... $ac_c" 1>&6
1842 echo "configure:1843: checking for ar S" >&5
1843 if eval "test \"`echo '$''{'libc_cv_ar_S'+set}'`\" = set"; then
1844 echo $ac_n "(cached) $ac_c" 1>&6
1845 else
1846 tmpo=$$.o
1847 tmplib=lib$$.a
1848 rm -f $tmpo $tmplib
1849 touch $tmpo
1850 if { ac_try='${AR-ar} rcuS $tmplib $tmpo > /dev/null 2>&1'; { (eval echo configure:1851: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
1851 libc_cv_ar_S=yes
1852 else
1853 libc_cv_ar_S=no
1855 rm -f $tmpo $tmplib
1858 echo "$ac_t""$libc_cv_ar_S" 1>&6
1860 # Test if LD_LIBRARY_PATH contains the notation for the current directory
1861 # since this would lead to problems installing/building glibc.
1862 # LD_LIBRARY_PATH contains the current directory if one of the following
1863 # is true:
1864 # - one of the terminals (":" and ";") is the first or last sign
1865 # - two terminals occur directly after each other
1866 # - the path contains an element with a dot in it
1867 echo $ac_n "checking LD_LIBRARY_PATH variable""... $ac_c" 1>&6
1868 echo "configure:1869: checking LD_LIBRARY_PATH variable" >&5
1869 case ${LD_LIBRARY_PATH} in
1870 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
1871 ld_library_path_setting="contains current directory"
1874 ld_library_path_setting="ok"
1876 esac
1877 echo "$ac_t""$ld_library_path_setting" 1>&6
1878 if test "$ld_library_path_setting" != "ok"; then
1879 { echo "configure: error:
1880 *** LD_LIBRARY_PATH shouldn't contain the current directory when
1881 *** building glibc. Please change the environment variable
1882 *** and run configure again." 1>&2; exit 1; }
1885 # Extract the first word of "bash", so it can be a program name with args.
1886 set dummy bash; ac_word=$2
1887 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1888 echo "configure:1889: checking for $ac_word" >&5
1889 if eval "test \"`echo '$''{'ac_cv_path_BASH'+set}'`\" = set"; then
1890 echo $ac_n "(cached) $ac_c" 1>&6
1891 else
1892 case "$BASH" in
1894 ac_cv_path_BASH="$BASH" # Let the user override the test with a path.
1897 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1898 for ac_dir in $PATH; do
1899 test -z "$ac_dir" && ac_dir=.
1900 if test -f $ac_dir/$ac_word; then
1901 ac_cv_path_BASH="$ac_dir/$ac_word"
1902 break
1904 done
1905 IFS="$ac_save_ifs"
1906 test -z "$ac_cv_path_BASH" && ac_cv_path_BASH="no"
1908 esac
1910 BASH="$ac_cv_path_BASH"
1911 if test -n "$BASH"; then
1912 echo "$ac_t""$BASH" 1>&6
1913 else
1914 echo "$ac_t""no" 1>&6
1917 if test "$BASH" != no &&
1918 $BASH -c 'test "$BASH_VERSINFO" \
1919 && test "$BASH_VERSINFO" -ge 2 >&/dev/null'; then
1920 libc_cv_have_bash2=yes
1921 else
1922 libc_cv_have_bash2=no
1926 if test "$BASH" = no; then
1927 # Extract the first word of "ksh", so it can be a program name with args.
1928 set dummy ksh; ac_word=$2
1929 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1930 echo "configure:1931: checking for $ac_word" >&5
1931 if eval "test \"`echo '$''{'ac_cv_path_KSH'+set}'`\" = set"; then
1932 echo $ac_n "(cached) $ac_c" 1>&6
1933 else
1934 case "$KSH" in
1936 ac_cv_path_KSH="$KSH" # Let the user override the test with a path.
1939 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1940 for ac_dir in $PATH; do
1941 test -z "$ac_dir" && ac_dir=.
1942 if test -f $ac_dir/$ac_word; then
1943 ac_cv_path_KSH="$ac_dir/$ac_word"
1944 break
1946 done
1947 IFS="$ac_save_ifs"
1948 test -z "$ac_cv_path_KSH" && ac_cv_path_KSH="no"
1950 esac
1952 KSH="$ac_cv_path_KSH"
1953 if test -n "$KSH"; then
1954 echo "$ac_t""$KSH" 1>&6
1955 else
1956 echo "$ac_t""no" 1>&6
1959 if test "$KSH" = no; then
1960 libc_cv_have_ksh=no
1961 else
1962 libc_cv_have_ksh=yes
1964 else
1965 KSH="$BASH"
1967 libc_cv_have_ksh=yes
1971 for ac_prog in mawk gawk nawk awk
1973 # Extract the first word of "$ac_prog", so it can be a program name with args.
1974 set dummy $ac_prog; ac_word=$2
1975 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1976 echo "configure:1977: checking for $ac_word" >&5
1977 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
1978 echo $ac_n "(cached) $ac_c" 1>&6
1979 else
1980 if test -n "$AWK"; then
1981 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1982 else
1983 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1984 for ac_dir in $PATH; do
1985 test -z "$ac_dir" && ac_dir=.
1986 if test -f $ac_dir/$ac_word; then
1987 ac_cv_prog_AWK="$ac_prog"
1988 break
1990 done
1991 IFS="$ac_save_ifs"
1994 AWK="$ac_cv_prog_AWK"
1995 if test -n "$AWK"; then
1996 echo "$ac_t""$AWK" 1>&6
1997 else
1998 echo "$ac_t""no" 1>&6
2001 test -n "$AWK" && break
2002 done
2004 for ac_prog in perl
2006 # Extract the first word of "$ac_prog", so it can be a program name with args.
2007 set dummy $ac_prog; ac_word=$2
2008 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2009 echo "configure:2010: checking for $ac_word" >&5
2010 if eval "test \"`echo '$''{'ac_cv_path_PERL'+set}'`\" = set"; then
2011 echo $ac_n "(cached) $ac_c" 1>&6
2012 else
2013 case "$PERL" in
2015 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
2018 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2019 for ac_dir in $PATH; do
2020 test -z "$ac_dir" && ac_dir=.
2021 if test -f $ac_dir/$ac_word; then
2022 ac_cv_path_PERL="$ac_dir/$ac_word"
2023 break
2025 done
2026 IFS="$ac_save_ifs"
2028 esac
2030 PERL="$ac_cv_path_PERL"
2031 if test -n "$PERL"; then
2032 echo "$ac_t""$PERL" 1>&6
2033 else
2034 echo "$ac_t""no" 1>&6
2037 test -n "$PERL" && break
2038 done
2039 test -n "$PERL" || PERL="no"
2043 echo $ac_n "checking for signed size_t type""... $ac_c" 1>&6
2044 echo "configure:2045: checking for signed size_t type" >&5
2045 if eval "test \"`echo '$''{'libc_cv_signed_size_t'+set}'`\" = set"; then
2046 echo $ac_n "(cached) $ac_c" 1>&6
2047 else
2048 echo '#include <stddef.h>
2049 FOOBAR __SIZE_TYPE__ FOOBAR' > conftest.c
2050 if eval "$ac_cpp conftest.c 2>/dev/null" \
2051 | grep '^FOOBAR.*unsigned.*FOOBAR$' >/dev/null; then
2052 libc_cv_signed_size_t=no
2053 else
2054 libc_cv_signed_size_t=yes
2056 rm -f conftest*
2059 echo "$ac_t""$libc_cv_signed_size_t" 1>&6
2060 if test $libc_cv_signed_size_t = yes; then
2061 cat >> confdefs.h <<\EOF
2062 #undef __SIZE_TYPE__
2063 #define __SIZE_TYPE__ unsigned
2067 echo $ac_n "checking for libc-friendly stddef.h""... $ac_c" 1>&6
2068 echo "configure:2069: checking for libc-friendly stddef.h" >&5
2069 if eval "test \"`echo '$''{'libc_cv_friendly_stddef'+set}'`\" = set"; then
2070 echo $ac_n "(cached) $ac_c" 1>&6
2071 else
2072 cat > conftest.$ac_ext <<EOF
2073 #line 2074 "configure"
2074 #include "confdefs.h"
2075 #define __need_size_t
2076 #define __need_wchar_t
2077 #include <stddef.h>
2078 #define __need_NULL
2079 #include <stddef.h>
2080 int main() {
2081 size_t size; wchar_t wchar;
2082 #ifdef offsetof
2083 #error stddef.h ignored __need_*
2084 #endif
2085 if (&size == NULL || &wchar == NULL) abort ();
2086 ; return 0; }
2088 if { (eval echo configure:2089: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2089 rm -rf conftest*
2090 libc_cv_friendly_stddef=yes
2091 else
2092 echo "configure: failed program was:" >&5
2093 cat conftest.$ac_ext >&5
2094 rm -rf conftest*
2095 libc_cv_friendly_stddef=no
2097 rm -f conftest*
2100 echo "$ac_t""$libc_cv_friendly_stddef" 1>&6
2101 if test $libc_cv_friendly_stddef = yes; then
2102 config_vars="$config_vars
2103 override stddef.h = # The installed <stddef.h> seems to be libc-friendly."
2106 echo $ac_n "checking whether we need to use -P to assemble .S files""... $ac_c" 1>&6
2107 echo "configure:2108: checking whether we need to use -P to assemble .S files" >&5
2108 if eval "test \"`echo '$''{'libc_cv_need_minus_P'+set}'`\" = set"; then
2109 echo $ac_n "(cached) $ac_c" 1>&6
2110 else
2111 cat > conftest.S <<EOF
2112 #include "confdefs.h"
2113 /* Nothing whatsoever. */
2115 if ${CC-cc} $CFLAGS -c conftest.S 2>/dev/null; then
2116 libc_cv_need_minus_P=no
2117 else
2118 libc_cv_need_minus_P=yes
2120 rm -f conftest*
2123 echo "$ac_t""$libc_cv_need_minus_P" 1>&6
2124 if test $libc_cv_need_minus_P = yes; then
2125 config_vars="$config_vars
2126 asm-CPPFLAGS = -P # The assembler can't grok cpp's # line directives."
2129 echo $ac_n "checking for assembler global-symbol directive""... $ac_c" 1>&6
2130 echo "configure:2131: checking for assembler global-symbol directive" >&5
2131 if eval "test \"`echo '$''{'libc_cv_asm_global_directive'+set}'`\" = set"; then
2132 echo $ac_n "(cached) $ac_c" 1>&6
2133 else
2134 libc_cv_asm_global_directive=UNKNOWN
2135 for ac_globl in .globl .global; do
2136 cat > conftest.s <<EOF
2137 .text
2138 ${ac_globl} foo
2139 foo:
2141 if ${CC-cc} $CFLAGS -c conftest.s 2>/dev/null; then
2142 libc_cv_asm_global_directive=${ac_globl}
2144 rm -f conftest*
2145 test $libc_cv_asm_global_directive != UNKNOWN && break
2146 done
2149 echo "$ac_t""$libc_cv_asm_global_directive" 1>&6
2150 if test $libc_cv_asm_global_directive = UNKNOWN; then
2151 { echo "configure: error: cannot determine asm global directive" 1>&2; exit 1; }
2152 else
2153 cat >> confdefs.h <<EOF
2154 #define ASM_GLOBAL_DIRECTIVE ${libc_cv_asm_global_directive}
2159 echo $ac_n "checking for .set assembler directive""... $ac_c" 1>&6
2160 echo "configure:2161: checking for .set assembler directive" >&5
2161 if eval "test \"`echo '$''{'libc_cv_asm_set_directive'+set}'`\" = set"; then
2162 echo $ac_n "(cached) $ac_c" 1>&6
2163 else
2164 cat > conftest.s <<EOF
2165 .text
2166 foo:
2167 .set glibc_conftest_frobozz,foo
2168 $libc_cv_asm_global_directive glibc_conftest_frobozz
2170 # The alpha-dec-osf1 assembler gives only a warning for `.set'
2171 # (but it doesn't work), so we must do a linking check to be sure.
2172 cat > conftest1.c <<\EOF
2173 extern int glibc_conftest_frobozz;
2174 main () { printf ("%d\n", glibc_conftest_frobozz); }
2176 if ${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \
2177 -o conftest conftest.s conftest1.c 1>&5 2>&5; then
2178 libc_cv_asm_set_directive=yes
2179 else
2180 libc_cv_asm_set_directive=no
2182 rm -f conftest*
2185 echo "$ac_t""$libc_cv_asm_set_directive" 1>&6
2186 if test $libc_cv_asm_set_directive = yes; then
2187 cat >> confdefs.h <<\EOF
2188 #define HAVE_ASM_SET_DIRECTIVE 1
2193 echo $ac_n "checking for .symver assembler directive""... $ac_c" 1>&6
2194 echo "configure:2195: checking for .symver assembler directive" >&5
2195 if eval "test \"`echo '$''{'libc_cv_asm_symver_directive'+set}'`\" = set"; then
2196 echo $ac_n "(cached) $ac_c" 1>&6
2197 else
2198 cat > conftest.s <<EOF
2199 .text
2200 _sym:
2201 .symver _sym,sym@VERS
2203 if ${CC-cc} -c $CFLAGS $CPPFLAGS conftest.s 1>&5 2>&5; then
2204 libc_cv_asm_symver_directive=yes
2205 else
2206 libc_cv_asm_symver_directive=no
2208 rm -f conftest*
2211 echo "$ac_t""$libc_cv_asm_symver_directive" 1>&6
2212 echo $ac_n "checking for ld --version-script""... $ac_c" 1>&6
2213 echo "configure:2214: checking for ld --version-script" >&5
2214 if eval "test \"`echo '$''{'libc_cv_ld_version_script_option'+set}'`\" = set"; then
2215 echo $ac_n "(cached) $ac_c" 1>&6
2216 else
2217 if test $libc_cv_asm_symver_directive = yes; then
2218 cat > conftest.s <<EOF
2219 .text
2220 _sym:
2221 .symver _sym,sym@VERS
2223 cat > conftest.map <<EOF
2224 VERS_1 {
2225 global: sym;
2228 VERS_2 {
2229 global: sym;
2230 } VERS_1;
2232 if ${CC-cc} -c $CFLAGS $CPPFLAGS conftest.s 1>&5 2>&5; then
2233 if { ac_try='${CC-cc} $CFLAGS -shared -o conftest.so conftest.o
2234 -nostartfiles -nostdlib
2235 -Wl,--version-script,conftest.map
2236 1>&5'; { (eval echo configure:2237: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; };
2237 then
2238 libc_cv_ld_version_script_option=yes
2239 else
2240 libc_cv_ld_version_script_option=no
2242 else
2243 libc_cv_ld_version_script_option=no
2245 else
2246 libc_cv_ld_version_script_option=no
2248 rm -f conftest*
2251 echo "$ac_t""$libc_cv_ld_version_script_option" 1>&6
2252 if test $libc_cv_asm_symver_directive = yes &&
2253 test $libc_cv_ld_version_script_option = yes &&
2254 test $enable_versioning = yes; then
2255 VERSIONING=yes
2256 cat >> confdefs.h <<\EOF
2257 #define DO_VERSIONING 1
2260 else
2261 VERSIONING=no
2265 if test $VERSIONING = no; then
2266 echo "\
2267 *** WARNING: You should not compile GNU libc without versioning. Not using
2268 *** versioning will introduce incompatibilities so that old binaries
2269 *** will not run anymore.
2270 *** For versioning you need recent binutils (binutils-2.8.1.0.17 or newer)."
2272 if test $elf = yes; then
2273 echo $ac_n "checking for .previous assembler directive""... $ac_c" 1>&6
2274 echo "configure:2275: checking for .previous assembler directive" >&5
2275 if eval "test \"`echo '$''{'libc_cv_asm_previous_directive'+set}'`\" = set"; then
2276 echo $ac_n "(cached) $ac_c" 1>&6
2277 else
2278 cat > conftest.s <<EOF
2279 .section foo_section
2280 .previous
2282 if { ac_try='${CC-cc} -c $CFLAGS conftest.s 1>&5'; { (eval echo configure:2283: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
2283 libc_cv_asm_previous_directive=yes
2284 else
2285 libc_cv_asm_previous_directive=no
2287 rm -f conftest*
2290 echo "$ac_t""$libc_cv_asm_previous_directive" 1>&6
2291 if test $libc_cv_asm_previous_directive = yes; then
2292 cat >> confdefs.h <<\EOF
2293 #define HAVE_ASM_PREVIOUS_DIRECTIVE 1
2296 else
2297 echo $ac_n "checking for .popsection assembler directive""... $ac_c" 1>&6
2298 echo "configure:2299: checking for .popsection assembler directive" >&5
2299 if eval "test \"`echo '$''{'libc_cv_asm_popsection_directive'+set}'`\" = set"; then
2300 echo $ac_n "(cached) $ac_c" 1>&6
2301 else
2302 cat > conftest.s <<EOF
2303 .pushsection foo_section
2304 .popsection
2306 if { ac_try='${CC-cc} -c $CFLAGS conftest.s 1>&5'; { (eval echo configure:2307: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
2307 libc_cv_asm_popsection_directive=yes
2308 else
2309 libc_cv_asm_popsection_directive=no
2311 rm -f conftest*
2314 echo "$ac_t""$libc_cv_asm_popsection_directive" 1>&6
2315 if test $libc_cv_asm_popsection_directive = yes; then
2316 cat >> confdefs.h <<\EOF
2317 #define HAVE_ASM_POPSECTION_DIRECTIVE 1
2324 if test $elf != yes; then
2325 echo $ac_n "checking for .init and .fini sections""... $ac_c" 1>&6
2326 echo "configure:2327: checking for .init and .fini sections" >&5
2327 if eval "test \"`echo '$''{'libc_cv_have_initfini'+set}'`\" = set"; then
2328 echo $ac_n "(cached) $ac_c" 1>&6
2329 else
2330 cat > conftest.$ac_ext <<EOF
2331 #line 2332 "configure"
2332 #include "confdefs.h"
2334 int main() {
2335 asm (".section .init");
2336 asm (".section .fini");
2337 asm (".text");
2338 ; return 0; }
2340 if { (eval echo configure:2341: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2341 rm -rf conftest*
2342 libc_cv_have_initfini=yes
2343 else
2344 echo "configure: failed program was:" >&5
2345 cat conftest.$ac_ext >&5
2346 rm -rf conftest*
2347 libc_cv_have_initfini=no
2349 rm -f conftest*
2352 echo "$ac_t""$libc_cv_have_initfini" 1>&6
2353 if test $libc_cv_have_initfini = yes; then
2354 cat >> confdefs.h <<\EOF
2355 #define HAVE_INITFINI 1
2363 if test $elf = yes; then
2364 libc_cv_asm_underscores=no
2365 else
2366 if test $ac_cv_prog_cc_works = yes; then
2367 echo $ac_n "checking for _ prefix on C symbol names""... $ac_c" 1>&6
2368 echo "configure:2369: checking for _ prefix on C symbol names" >&5
2369 if eval "test \"`echo '$''{'libc_cv_asm_underscores'+set}'`\" = set"; then
2370 echo $ac_n "(cached) $ac_c" 1>&6
2371 else
2372 cat > conftest.$ac_ext <<EOF
2373 #line 2374 "configure"
2374 #include "confdefs.h"
2375 asm ("_glibc_foobar:");
2376 int main() {
2377 glibc_foobar ();
2378 ; return 0; }
2380 if { (eval echo configure:2381: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2381 rm -rf conftest*
2382 libc_cv_asm_underscores=yes
2383 else
2384 echo "configure: failed program was:" >&5
2385 cat conftest.$ac_ext >&5
2386 rm -rf conftest*
2387 libc_cv_asm_underscores=no
2389 rm -f conftest*
2392 echo "$ac_t""$libc_cv_asm_underscores" 1>&6
2393 else
2394 echo $ac_n "checking for _ prefix on C symbol names""... $ac_c" 1>&6
2395 echo "configure:2396: checking for _ prefix on C symbol names" >&5
2396 if eval "test \"`echo '$''{'libc_cv_asm_underscores'+set}'`\" = set"; then
2397 echo $ac_n "(cached) $ac_c" 1>&6
2398 else
2399 cat > conftest.$ac_ext <<EOF
2400 #line 2401 "configure"
2401 #include "confdefs.h"
2402 void underscore_test(void) {
2403 return; }
2405 if { (eval echo configure:2406: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2406 if grep _underscore_test conftest* >/dev/null; then
2407 rm -f conftest*
2408 libc_cv_asm_underscores=yes
2409 else
2410 rm -f conftest*
2411 libc_cv_asm_underscores=no
2413 else
2414 echo "configure: failed program was:" >&5
2415 cat conftest.$ac_ext >&5
2416 rm -f conftest*
2417 libc_cv_asm_underscores=no
2419 rm -f conftest*
2422 echo "$ac_t""$libc_cv_asm_underscores" 1>&6
2425 if test $libc_cv_asm_underscores = no; then
2426 cat >> confdefs.h <<\EOF
2427 #define NO_UNDERSCORES 1
2432 if test $elf = yes; then
2433 libc_cv_weak_symbols=yes
2436 echo $ac_n "checking for assembler .weak directive""... $ac_c" 1>&6
2437 echo "configure:2438: checking for assembler .weak directive" >&5
2438 if eval "test \"`echo '$''{'libc_cv_asm_weak_directive'+set}'`\" = set"; then
2439 echo $ac_n "(cached) $ac_c" 1>&6
2440 else
2441 cat > conftest.s <<EOF
2442 .text
2443 ${libc_cv_asm_global_directive} foo
2444 foo:
2445 .weak foo
2446 .weak bar; bar = foo
2448 if ${CC-cc} $CFLAGS -c conftest.s 2>/dev/null; then
2449 libc_cv_asm_weak_directive=yes
2450 else
2451 libc_cv_asm_weak_directive=no
2453 rm -f conftest*
2456 echo "$ac_t""$libc_cv_asm_weak_directive" 1>&6
2458 if test $libc_cv_asm_weak_directive = no; then
2459 echo $ac_n "checking for assembler .weakext directive""... $ac_c" 1>&6
2460 echo "configure:2461: checking for assembler .weakext directive" >&5
2461 if eval "test \"`echo '$''{'libc_cv_asm_weakext_directive'+set}'`\" = set"; then
2462 echo $ac_n "(cached) $ac_c" 1>&6
2463 else
2464 cat > conftest.s <<EOF
2465 .text
2466 ${libc_cv_asm_global_directive} foo
2467 foo:
2468 .weakext bar foo
2469 .weakext baz
2470 ${libc_cv_asm_global_directive} baz
2471 baz:
2473 if ${CC-cc} $CFLAGS -c conftest.s 2>/dev/null; then
2474 libc_cv_asm_weakext_directive=yes
2475 else
2476 libc_cv_asm_weakext_directive=no
2478 rm -f conftest*
2481 echo "$ac_t""$libc_cv_asm_weakext_directive" 1>&6
2483 fi # no .weak
2485 if test $libc_cv_asm_weak_directive = yes; then
2486 cat >> confdefs.h <<\EOF
2487 #define HAVE_ASM_WEAK_DIRECTIVE 1
2490 elif test $libc_cv_asm_weakext_directive = yes; then
2491 cat >> confdefs.h <<\EOF
2492 #define HAVE_ASM_WEAKEXT_DIRECTIVE 1
2497 echo $ac_n "checking for ld --no-whole-archive""... $ac_c" 1>&6
2498 echo "configure:2499: checking for ld --no-whole-archive" >&5
2499 if eval "test \"`echo '$''{'libc_cv_ld_no_whole_archive'+set}'`\" = set"; then
2500 echo $ac_n "(cached) $ac_c" 1>&6
2501 else
2502 cat > conftest.c <<\EOF
2503 _start () {}
2504 int __eh_pc;
2505 __throw () {}
2507 if { ac_try='${CC-cc} $CFLAGS
2508 -nostdlib -nostartfiles -Wl,--no-whole-archive
2509 -o conftest conftest.c 1>&5'; { (eval echo configure:2510: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
2510 libc_cv_ld_no_whole_archive=yes
2511 else
2512 libc_cv_ld_no_whole_archive=no
2514 rm -f conftest*
2517 echo "$ac_t""$libc_cv_ld_no_whole_archive" 1>&6
2519 echo $ac_n "checking for gcc -fno-exceptions""... $ac_c" 1>&6
2520 echo "configure:2521: checking for gcc -fno-exceptions" >&5
2521 if eval "test \"`echo '$''{'libc_cv_gcc_no_exceptions'+set}'`\" = set"; then
2522 echo $ac_n "(cached) $ac_c" 1>&6
2523 else
2524 cat > conftest.c <<\EOF
2525 _start () {}
2526 int __eh_pc;
2527 __throw () {}
2529 if { ac_try='${CC-cc} $CFLAGS
2530 -nostdlib -nostartfiles -fno-exceptions
2531 -o conftest conftest.c 1>&5'; { (eval echo configure:2532: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
2532 libc_cv_gcc_no_exceptions=yes
2533 else
2534 libc_cv_gcc_no_exceptions=no
2536 rm -f conftest*
2539 echo "$ac_t""$libc_cv_gcc_no_exceptions" 1>&6
2541 if test "$base_machine" = alpha ; then
2542 echo $ac_n "checking for function ..ng prefix""... $ac_c" 1>&6
2543 echo "configure:2544: checking for function ..ng prefix" >&5
2544 if eval "test \"`echo '$''{'libc_cv_gcc_alpha_ng_prefix'+set}'`\" = set"; then
2545 echo $ac_n "(cached) $ac_c" 1>&6
2546 else
2547 cat > conftest.c <<\EOF
2548 foo () { }
2550 if { ac_try='${CC-cc} -S conftest.c -o - | fgrep "\$foo..ng" > /dev/null'; { (eval echo configure:2551: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; };
2551 then
2552 libc_cv_gcc_alpha_ng_prefix=yes
2553 else
2554 libc_cv_gcc_alpha_ng_prefix=no
2556 rm -f conftest*
2559 echo "$ac_t""$libc_cv_gcc_alpha_ng_prefix" 1>&6
2560 if test $libc_cv_gcc_alpha_ng_prefix = yes ; then
2561 cat >> confdefs.h <<\EOF
2562 #define ASM_ALPHA_NG_SYMBOL_PREFIX "$"
2565 else
2566 cat >> confdefs.h <<\EOF
2567 #define ASM_ALPHA_NG_SYMBOL_PREFIX ""
2573 echo $ac_n "checking for DWARF2 unwind info support""... $ac_c" 1>&6
2574 echo "configure:2575: checking for DWARF2 unwind info support" >&5
2575 if eval "test \"`echo '$''{'libc_cv_gcc_dwarf2_unwind_info'+set}'`\" = set"; then
2576 echo $ac_n "(cached) $ac_c" 1>&6
2577 else
2578 cat > conftest.c <<EOF
2579 #line 2580 "configure"
2580 static char __EH_FRAME_BEGIN__;
2581 _start ()
2583 #ifdef CHECK__register_frame
2584 __register_frame (__EH_FRAME_BEGIN__);
2585 __deregister_frame (__EH_FRAME_BEGIN__);
2586 #endif
2587 #ifdef CHECK__register_frame_info
2588 __register_frame_info (__EH_FRAME_BEGIN__);
2589 __deregister_frame_info (__EH_FRAME_BEGIN__);
2590 #endif
2592 int __eh_pc;
2593 __throw () {}
2594 /* FIXME: this is fragile. */
2595 malloc () {}
2596 strcmp () {}
2597 strlen () {}
2598 memcpy () {}
2599 memset () {}
2600 free () {}
2601 abort () {}
2602 __bzero () {}
2604 if { ac_try='${CC-cc} $CFLAGS -DCHECK__register_frame_info
2605 -nostdlib -nostartfiles
2606 -o conftest conftest.c -lgcc >&5'; { (eval echo configure:2607: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
2607 libc_cv_gcc_dwarf2_unwind_info=static
2608 else
2609 libc_cv_gcc_dwarf2_unwind_info=no
2611 if test $libc_cv_gcc_dwarf2_unwind_info = no; then
2612 if { ac_try='${CC-cc} $CFLAGS -DCHECK__register_frame
2613 -nostdlib -nostartfiles
2614 -o conftest conftest.c -lgcc >&5'; { (eval echo configure:2615: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
2615 libc_cv_gcc_dwarf2_unwind_info=yes
2616 else
2617 libc_cv_gcc_dwarf2_unwind_info=no
2620 rm -f conftest*
2623 echo "$ac_t""$libc_cv_gcc_dwarf2_unwind_info" 1>&6
2624 case $libc_cv_gcc_dwarf2_unwind_info in
2625 yes)
2626 cat >> confdefs.h <<\EOF
2627 #define HAVE_DWARF2_UNWIND_INFO 1
2631 static)
2632 cat >> confdefs.h <<\EOF
2633 #define HAVE_DWARF2_UNWIND_INFO 1
2636 cat >> confdefs.h <<\EOF
2637 #define HAVE_DWARF2_UNWIND_INFO_STATIC 1
2641 esac
2643 ### End of automated tests.
2644 ### Now run sysdeps configure fragments.
2646 # sysdeps configure fragments may set these with files to be linked below.
2647 libc_link_dests=
2648 libc_link_sources=
2650 # They also can set these variables.
2651 ldd_rewrite_script=no
2653 # Iterate over all the sysdep directories we will use, running their
2654 # configure fragments, and looking for a uname implementation.
2655 uname=
2656 for dir in $sysnames; do
2657 case $dir in
2658 /*) dest=$dir ;;
2659 *) dest=$srcdir/$dir ;;
2660 esac
2661 if test -r $dest/configure; then
2662 echo "$ac_t""running configure fragment for $dest" 1>&6
2663 . $dest/configure
2666 if test -z "$uname"; then
2667 if test -r $dest/uname.c ||
2668 test -r $dest/uname.S ||
2669 { test -r $dest/syscalls.list &&
2670 grep '^uname[ ]' $dest/syscalls.list >/dev/null; }; then
2671 uname=$dir
2674 done
2678 # If we will use the generic uname implementation, we must figure out what
2679 # it will say by examining the system, and write the results in config-name.h.
2680 if test "$uname" = "sysdeps/generic"; then
2682 uname_sysname=`echo $config_os | sed 's/[0-9.]*$//'`
2683 if test $uname_sysname != $config_os; then
2684 config_release=`echo $config_os | sed s/$uname_sysname//`
2687 echo $ac_n "checking OS release for uname""... $ac_c" 1>&6
2688 echo "configure:2689: checking OS release for uname" >&5
2689 if eval "test \"`echo '$''{'libc_cv_uname_release'+set}'`\" = set"; then
2690 echo $ac_n "(cached) $ac_c" 1>&6
2691 else
2692 kernel_release=`echo "$kernel_id" | sed 's/^[^0-9.]*\([0-9.]*\).*$/\1/'`
2693 if test x`echo "$config_release" | sed "s/^$kernel_release//"` \
2694 != x$config_release; then
2695 # The configuration release is a substring of the kernel release.
2696 libc_cv_uname_release=$kernel_release
2697 elif test x$config_release != x; then
2698 libc_cv_uname_release=$config_release
2699 elif test x$kernel_release != x; then
2700 libc_cv_uname_release=$kernel_release
2701 else
2702 libc_cv_uname_release=unknown
2706 echo "$ac_t""$libc_cv_uname_release" 1>&6
2707 uname_release="$libc_cv_uname_release"
2709 echo $ac_n "checking OS version for uname""... $ac_c" 1>&6
2710 echo "configure:2711: checking OS version for uname" >&5
2711 if eval "test \"`echo '$''{'libc_cv_uname_version'+set}'`\" = set"; then
2712 echo $ac_n "(cached) $ac_c" 1>&6
2713 else
2714 kernel_version=`echo "$kernel_id" | sed 's/^[^#]*#\([0-9]*\).*$/\1/'`
2715 if test -n "$kernel_version"; then
2716 libc_cv_uname_version="$kernel_version"
2717 else
2718 libc_cv_uname_version=unknown
2722 echo "$ac_t""$libc_cv_uname_version" 1>&6
2723 uname_version="$libc_cv_uname_version"
2725 config_uname=config-name.h:config-name.in
2726 else
2727 # For non-generic uname, we don't need to create config-name.h at all.
2728 config_uname=
2731 echo $ac_n "checking stdio selection""... $ac_c" 1>&6
2732 echo "configure:2733: checking stdio selection" >&5
2734 case $stdio in
2735 libio) cat >> confdefs.h <<\EOF
2736 #define USE_IN_LIBIO 1
2739 default) stdio=stdio ;;
2740 esac
2741 echo "$ac_t""$stdio" 1>&6
2743 echo $ac_n "checking ldap selection""... $ac_c" 1>&6
2744 echo "configure:2745: checking ldap selection" >&5
2746 case $add_ons in
2747 *ldap*)
2748 ldap=yes
2749 LDAP=ldap ;;
2750 *) ldap=no
2751 LDAP= ;;
2752 esac
2753 echo "$ac_t""$ldap" 1>&6
2763 if test $gnu_ld = yes; then
2764 cat >> confdefs.h <<\EOF
2765 #define HAVE_GNU_LD 1
2769 if test $gnu_as = yes; then
2770 cat >> confdefs.h <<\EOF
2771 #define HAVE_GNU_AS 1
2775 if test $elf = yes; then
2776 cat >> confdefs.h <<\EOF
2777 #define HAVE_ELF 1
2784 if test $shared = default; then
2785 if test $gnu_ld = yes; then
2786 shared=$elf
2787 else
2788 # For now we do not assume shared libs are available. In future more
2789 # tests might become available.
2790 shared=no
2794 echo $ac_n "checking whether -fPIC is default""... $ac_c" 1>&6
2795 echo "configure:2796: checking whether -fPIC is default" >&5
2796 if eval "test \"`echo '$''{'pic_default'+set}'`\" = set"; then
2797 echo $ac_n "(cached) $ac_c" 1>&6
2798 else
2799 pic_default=yes
2800 cat > conftest.c <<EOF
2801 #if defined __PIC__ || defined __pic__ || defined PIC || defined pic
2802 # error PIC is default.
2803 #endif
2805 if eval "${CC-cc} -S conftest.c 2>&5 1>&5"; then
2806 pic_default=no
2808 rm -f conftest.*
2811 echo "$ac_t""$pic_default" 1>&6
2822 if test "`(cd $srcdir; pwd)`" = "`pwd`"; then
2823 config_makefile=
2824 else
2825 config_makefile=Makefile
2828 VERSION=`sed -e 's/^#define VERSION "\([^"]*\)"/\1/p' -e d < $srcdir/version.h`
2831 trap '' 1 2 15
2832 cat > confcache <<\EOF
2833 # This file is a shell script that caches the results of configure
2834 # tests run on this system so they can be shared between configure
2835 # scripts and configure runs. It is not useful on other systems.
2836 # If it contains results you don't want to keep, you may remove or edit it.
2838 # By default, configure uses ./config.cache as the cache file,
2839 # creating it if it does not exist already. You can give configure
2840 # the --cache-file=FILE option to use a different cache file; that is
2841 # what configure does when it calls configure scripts in
2842 # subdirectories, so they share the cache.
2843 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2844 # config.status only pays attention to the cache file if you give it the
2845 # --recheck option to rerun configure.
2848 # The following way of writing the cache mishandles newlines in values,
2849 # but we know of no workaround that is simple, portable, and efficient.
2850 # So, don't put newlines in cache variables' values.
2851 # Ultrix sh set writes to stderr and can't be redirected directly,
2852 # and sets the high bit in the cache file unless we assign to the vars.
2853 (set) 2>&1 |
2854 case `(ac_space=' '; set) 2>&1` in
2855 *ac_space=\ *)
2856 # `set' does not quote correctly, so add quotes (double-quote substitution
2857 # turns \\\\ into \\, and sed turns \\ into \).
2858 sed -n \
2859 -e "s/'/'\\\\''/g" \
2860 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2863 # `set' quotes correctly as required by POSIX, so do not add quotes.
2864 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2866 esac >> confcache
2867 if cmp -s $cache_file confcache; then
2869 else
2870 if test -w $cache_file; then
2871 echo "updating cache $cache_file"
2872 cat confcache > $cache_file
2873 else
2874 echo "not updating unwritable cache $cache_file"
2877 rm -f confcache
2879 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
2881 test "x$prefix" = xNONE && prefix=$ac_default_prefix
2882 # Let make expand exec_prefix.
2883 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
2885 # Any assignment to VPATH causes Sun make to only execute
2886 # the first set of double-colon rules, so remove it if not needed.
2887 # If there is a colon in the path, we need to keep it.
2888 if test "x$srcdir" = x.; then
2889 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
2892 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
2894 DEFS=-DHAVE_CONFIG_H
2896 # Without the "./", some shells look in PATH for config.status.
2897 : ${CONFIG_STATUS=./config.status}
2899 echo creating $CONFIG_STATUS
2900 rm -f $CONFIG_STATUS
2901 cat > $CONFIG_STATUS <<EOF
2902 #! /bin/sh
2903 # Generated automatically by configure.
2904 # Run this file to recreate the current configuration.
2905 # This directory was configured as follows,
2906 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
2908 # $0 $ac_configure_args
2910 # Compiler output produced by configure, useful for debugging
2911 # configure, is in ./config.log if it exists.
2913 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
2914 for ac_option
2916 case "\$ac_option" in
2917 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
2918 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
2919 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
2920 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
2921 echo "$CONFIG_STATUS generated by autoconf version 2.12"
2922 exit 0 ;;
2923 -help | --help | --hel | --he | --h)
2924 echo "\$ac_cs_usage"; exit 0 ;;
2925 *) echo "\$ac_cs_usage"; exit 1 ;;
2926 esac
2927 done
2929 ac_given_srcdir=$srcdir
2930 ac_given_INSTALL="$INSTALL"
2932 trap 'rm -fr `echo "config.make glibcbug ${config_makefile} ${config_uname} config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
2934 cat >> $CONFIG_STATUS <<EOF
2936 # Protect against being on the right side of a sed subst in config.status.
2937 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
2938 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
2939 $ac_vpsub
2940 $extrasub
2941 s%@CFLAGS@%$CFLAGS%g
2942 s%@CPPFLAGS@%$CPPFLAGS%g
2943 s%@CXXFLAGS@%$CXXFLAGS%g
2944 s%@DEFS@%$DEFS%g
2945 s%@LDFLAGS@%$LDFLAGS%g
2946 s%@LIBS@%$LIBS%g
2947 s%@exec_prefix@%$exec_prefix%g
2948 s%@prefix@%$prefix%g
2949 s%@program_transform_name@%$program_transform_name%g
2950 s%@bindir@%$bindir%g
2951 s%@sbindir@%$sbindir%g
2952 s%@libexecdir@%$libexecdir%g
2953 s%@datadir@%$datadir%g
2954 s%@sysconfdir@%$sysconfdir%g
2955 s%@sharedstatedir@%$sharedstatedir%g
2956 s%@localstatedir@%$localstatedir%g
2957 s%@libdir@%$libdir%g
2958 s%@includedir@%$includedir%g
2959 s%@oldincludedir@%$oldincludedir%g
2960 s%@infodir@%$infodir%g
2961 s%@mandir@%$mandir%g
2962 s%@with_cvs@%$with_cvs%g
2963 s%@subdirs@%$subdirs%g
2964 s%@force_install@%$force_install%g
2965 s%@host@%$host%g
2966 s%@host_alias@%$host_alias%g
2967 s%@host_cpu@%$host_cpu%g
2968 s%@host_vendor@%$host_vendor%g
2969 s%@host_os@%$host_os%g
2970 s%@base_machine@%$base_machine%g
2971 s%@sysnames@%$sysnames%g
2972 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
2973 s%@INSTALL_DATA@%$INSTALL_DATA%g
2974 s%@LN_S@%$LN_S%g
2975 s%@build@%$build%g
2976 s%@build_alias@%$build_alias%g
2977 s%@build_cpu@%$build_cpu%g
2978 s%@build_vendor@%$build_vendor%g
2979 s%@build_os@%$build_os%g
2980 s%@CC@%$CC%g
2981 s%@MAKE@%$MAKE%g
2982 s%@MSGFMT@%$MSGFMT%g
2983 s%@MAKEINFO@%$MAKEINFO%g
2984 s%@cross_linkable@%$cross_linkable%g
2985 s%@BUILD_CC@%$BUILD_CC%g
2986 s%@cross_compiling@%$cross_compiling%g
2987 s%@CPP@%$CPP%g
2988 s%@AR@%$AR%g
2989 s%@RANLIB@%$RANLIB%g
2990 s%@MIG@%$MIG%g
2991 s%@SYSINCLUDES@%$SYSINCLUDES%g
2992 s%@libc_cv_ar_S@%$libc_cv_ar_S%g
2993 s%@BASH@%$BASH%g
2994 s%@libc_cv_have_bash2@%$libc_cv_have_bash2%g
2995 s%@KSH@%$KSH%g
2996 s%@libc_cv_have_ksh@%$libc_cv_have_ksh%g
2997 s%@AWK@%$AWK%g
2998 s%@PERL@%$PERL%g
2999 s%@VERSIONING@%$VERSIONING%g
3000 s%@libc_cv_have_initfini@%$libc_cv_have_initfini%g
3001 s%@libc_cv_ld_no_whole_archive@%$libc_cv_ld_no_whole_archive%g
3002 s%@libc_cv_gcc_no_exceptions@%$libc_cv_gcc_no_exceptions%g
3003 s%@uname_sysname@%$uname_sysname%g
3004 s%@uname_release@%$uname_release%g
3005 s%@uname_version@%$uname_version%g
3006 s%@stdio@%$stdio%g
3007 s%@LDAP@%$LDAP%g
3008 s%@libc_cv_slibdir@%$libc_cv_slibdir%g
3009 s%@libc_cv_sysconfdir@%$libc_cv_sysconfdir%g
3010 s%@libc_cv_rootsbindir@%$libc_cv_rootsbindir%g
3011 s%@has_ldconfig@%$has_ldconfig%g
3012 s%@ldd_rewrite_script@%$ldd_rewrite_script%g
3013 s%@gnu_ld@%$gnu_ld%g
3014 s%@gnu_as@%$gnu_as%g
3015 s%@elf@%$elf%g
3016 s%@static@%$static%g
3017 s%@shared@%$shared%g
3018 s%@pic_default@%$pic_default%g
3019 s%@profile@%$profile%g
3020 s%@omitfp@%$omitfp%g
3021 s%@bounded@%$bounded%g
3022 s%@static_nss@%$static_nss%g
3023 s%@nopic_initfini@%$nopic_initfini%g
3024 s%@DEFINES@%$DEFINES%g
3025 s%@VERSION@%$VERSION%g
3027 CEOF
3030 cat >> $CONFIG_STATUS <<\EOF
3032 # Split the substitutions into bite-sized pieces for seds with
3033 # small command number limits, like on Digital OSF/1 and HP-UX.
3034 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
3035 ac_file=1 # Number of current file.
3036 ac_beg=1 # First line for current file.
3037 ac_end=$ac_max_sed_cmds # Line after last line for current file.
3038 ac_more_lines=:
3039 ac_sed_cmds=""
3040 while $ac_more_lines; do
3041 if test $ac_beg -gt 1; then
3042 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
3043 else
3044 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
3046 if test ! -s conftest.s$ac_file; then
3047 ac_more_lines=false
3048 rm -f conftest.s$ac_file
3049 else
3050 if test -z "$ac_sed_cmds"; then
3051 ac_sed_cmds="sed -f conftest.s$ac_file"
3052 else
3053 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
3055 ac_file=`expr $ac_file + 1`
3056 ac_beg=$ac_end
3057 ac_end=`expr $ac_end + $ac_max_sed_cmds`
3059 done
3060 if test -z "$ac_sed_cmds"; then
3061 ac_sed_cmds=cat
3065 cat >> $CONFIG_STATUS <<EOF
3067 CONFIG_FILES=\${CONFIG_FILES-"config.make glibcbug ${config_makefile} ${config_uname}"}
3069 cat >> $CONFIG_STATUS <<\EOF
3070 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
3071 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3072 case "$ac_file" in
3073 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3074 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3075 *) ac_file_in="${ac_file}.in" ;;
3076 esac
3078 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
3080 # Remove last slash and all that follows it. Not all systems have dirname.
3081 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3082 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3083 # The file is in a subdirectory.
3084 test ! -d "$ac_dir" && mkdir "$ac_dir"
3085 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
3086 # A "../" for each directory in $ac_dir_suffix.
3087 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
3088 else
3089 ac_dir_suffix= ac_dots=
3092 case "$ac_given_srcdir" in
3093 .) srcdir=.
3094 if test -z "$ac_dots"; then top_srcdir=.
3095 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
3096 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
3097 *) # Relative path.
3098 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
3099 top_srcdir="$ac_dots$ac_given_srcdir" ;;
3100 esac
3102 case "$ac_given_INSTALL" in
3103 [/$]*) INSTALL="$ac_given_INSTALL" ;;
3104 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
3105 esac
3107 echo creating "$ac_file"
3108 rm -f "$ac_file"
3109 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
3110 case "$ac_file" in
3111 *Makefile*) ac_comsub="1i\\
3112 # $configure_input" ;;
3113 *) ac_comsub= ;;
3114 esac
3116 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3117 sed -e "$ac_comsub
3118 s%@configure_input@%$configure_input%g
3119 s%@srcdir@%$srcdir%g
3120 s%@top_srcdir@%$top_srcdir%g
3121 s%@INSTALL@%$INSTALL%g
3122 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
3123 fi; done
3124 rm -f conftest.s*
3126 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
3127 # NAME is the cpp macro being defined and VALUE is the value it is being given.
3129 # ac_d sets the value in "#define NAME VALUE" lines.
3130 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
3131 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
3132 ac_dC='\3'
3133 ac_dD='%g'
3134 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
3135 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3136 ac_uB='\([ ]\)%\1#\2define\3'
3137 ac_uC=' '
3138 ac_uD='\4%g'
3139 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
3140 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3141 ac_eB='$%\1#\2define\3'
3142 ac_eC=' '
3143 ac_eD='%g'
3145 if test "${CONFIG_HEADERS+set}" != set; then
3147 cat >> $CONFIG_STATUS <<EOF
3148 CONFIG_HEADERS="config.h"
3150 cat >> $CONFIG_STATUS <<\EOF
3152 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
3153 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3154 case "$ac_file" in
3155 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3156 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3157 *) ac_file_in="${ac_file}.in" ;;
3158 esac
3160 echo creating $ac_file
3162 rm -f conftest.frag conftest.in conftest.out
3163 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3164 cat $ac_file_inputs > conftest.in
3168 # Transform confdefs.h into a sed script conftest.vals that substitutes
3169 # the proper values into config.h.in to produce config.h. And first:
3170 # Protect against being on the right side of a sed subst in config.status.
3171 # Protect against being in an unquoted here document in config.status.
3172 rm -f conftest.vals
3173 cat > conftest.hdr <<\EOF
3174 s/[\\&%]/\\&/g
3175 s%[\\$`]%\\&%g
3176 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
3177 s%ac_d%ac_u%gp
3178 s%ac_u%ac_e%gp
3180 sed -n -f conftest.hdr confdefs.h > conftest.vals
3181 rm -f conftest.hdr
3183 # This sed command replaces #undef with comments. This is necessary, for
3184 # example, in the case of _POSIX_SOURCE, which is predefined and required
3185 # on some systems where configure will not decide to define it.
3186 cat >> conftest.vals <<\EOF
3187 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
3190 # Break up conftest.vals because some shells have a limit on
3191 # the size of here documents, and old seds have small limits too.
3193 rm -f conftest.tail
3194 while :
3196 ac_lines=`grep -c . conftest.vals`
3197 # grep -c gives empty output for an empty file on some AIX systems.
3198 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
3199 # Write a limited-size here document to conftest.frag.
3200 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
3201 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
3202 echo 'CEOF
3203 sed -f conftest.frag conftest.in > conftest.out
3204 rm -f conftest.in
3205 mv conftest.out conftest.in
3206 ' >> $CONFIG_STATUS
3207 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
3208 rm -f conftest.vals
3209 mv conftest.tail conftest.vals
3210 done
3211 rm -f conftest.vals
3213 cat >> $CONFIG_STATUS <<\EOF
3214 rm -f conftest.frag conftest.h
3215 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
3216 cat conftest.in >> conftest.h
3217 rm -f conftest.in
3218 if cmp -s $ac_file conftest.h 2>/dev/null; then
3219 echo "$ac_file is unchanged"
3220 rm -f conftest.h
3221 else
3222 # Remove last slash and all that follows it. Not all systems have dirname.
3223 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3224 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3225 # The file is in a subdirectory.
3226 test ! -d "$ac_dir" && mkdir "$ac_dir"
3228 rm -f $ac_file
3229 mv conftest.h $ac_file
3231 fi; done
3235 cat >> $CONFIG_STATUS <<EOF
3236 ac_sources="`echo $libc_link_sources`"
3237 ac_dests="`echo $libc_link_dests`"
3240 cat >> $CONFIG_STATUS <<\EOF
3241 srcdir=$ac_given_srcdir
3242 while test -n "$ac_sources"; do
3243 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
3244 set $ac_sources; ac_source=$1; shift; ac_sources=$*
3246 echo "linking $srcdir/$ac_source to $ac_dest"
3248 if test ! -r $srcdir/$ac_source; then
3249 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
3251 rm -f $ac_dest
3253 # Make relative symlinks.
3254 # Remove last slash and all that follows it. Not all systems have dirname.
3255 ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'`
3256 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
3257 # The dest file is in a subdirectory.
3258 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
3259 ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`"
3260 # A "../" for each directory in $ac_dest_dir_suffix.
3261 ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'`
3262 else
3263 ac_dest_dir_suffix= ac_dots=
3266 case "$srcdir" in
3267 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
3268 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
3269 esac
3271 # Make a symlink if possible; otherwise try a hard link.
3272 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
3273 ln $srcdir/$ac_source $ac_dest; then :
3274 else
3275 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
3277 done
3279 cat >> $CONFIG_STATUS <<EOF
3280 echo '$config_vars' >> config.make; test -d bits || mkdir bits
3282 cat >> $CONFIG_STATUS <<\EOF
3284 exit 0
3286 chmod +x $CONFIG_STATUS
3287 rm -fr confdefs* $ac_clean_files
3288 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
3290 if test "$no_recursion" != yes; then
3292 # Remove --cache-file and --srcdir arguments so they do not pile up.
3293 ac_sub_configure_args=
3294 ac_prev=
3295 for ac_arg in $ac_configure_args; do
3296 if test -n "$ac_prev"; then
3297 ac_prev=
3298 continue
3300 case "$ac_arg" in
3301 -cache-file | --cache-file | --cache-fil | --cache-fi \
3302 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
3303 ac_prev=cache_file ;;
3304 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
3305 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
3307 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
3308 ac_prev=srcdir ;;
3309 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
3311 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
3312 esac
3313 done
3315 for ac_config_dir in $add_ons; do
3317 # Do not complain, so a configure script can configure whichever
3318 # parts of a large source tree are present.
3319 if test ! -d $srcdir/$ac_config_dir; then
3320 continue
3323 echo configuring in $ac_config_dir
3325 case "$srcdir" in
3326 .) ;;
3328 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
3329 else
3330 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
3333 esac
3335 ac_popdir=`pwd`
3336 cd $ac_config_dir
3338 # A "../" for each directory in /$ac_config_dir.
3339 ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
3341 case "$srcdir" in
3342 .) # No --srcdir option. We are building in place.
3343 ac_sub_srcdir=$srcdir ;;
3344 /*) # Absolute path.
3345 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
3346 *) # Relative path.
3347 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
3348 esac
3350 # Check for guested configure; otherwise get Cygnus style configure.
3351 if test -f $ac_sub_srcdir/configure; then
3352 ac_sub_configure=$ac_sub_srcdir/configure
3353 elif test -f $ac_sub_srcdir/configure.in; then
3354 ac_sub_configure=$ac_configure
3355 else
3356 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
3357 ac_sub_configure=
3360 # The recursion is here.
3361 if test -n "$ac_sub_configure"; then
3363 # Make the cache file name correct relative to the subdirectory.
3364 case "$cache_file" in
3365 /*) ac_sub_cache_file=$cache_file ;;
3366 *) # Relative path.
3367 ac_sub_cache_file="$ac_dots$cache_file" ;;
3368 esac
3369 case "$ac_given_INSTALL" in
3370 [/$]*) INSTALL="$ac_given_INSTALL" ;;
3371 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
3372 esac
3374 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
3375 # The eval makes quoting arguments work.
3376 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
3377 then :
3378 else
3379 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
3383 cd $ac_popdir
3384 done