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