*** empty log message ***
[glibc.git] / configure
blob3619897dcf08b726b30d3fdb2a617d82ddb0aa62
1 #! /bin/sh
3 # From configure.in CVSid
4 # Guess values for system-dependent variables and create Makefiles.
5 # Generated automatically using autoconf version 2.4
6 # Copyright (C) 1992, 1993, 1994 Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
11 # Defaults:
12 ac_help=
13 ac_default_prefix=/usr/local
14 # Any additions from configure.in:
15 ac_help="$ac_help
16 --with-gmp=DIRECTORY find GMP source code in DIRECTORY (not needed)"
17 ac_help="$ac_help
18 --with-fp if using floating-point hardware"
19 ac_help="$ac_help
20 --with-gnu-binutils if using GNU binutils (as and ld)"
21 ac_help="$ac_help
22 --with-gnu-ld if using GNU ld (in the binutils package)"
23 ac_help="$ac_help
24 --with-gnu-as if using GNU as (in the binutils package)"
25 ac_help="$ac_help
26 --with-elf if using the ELF object format"
27 ac_help="$ac_help
28 --with-weak-symbols if weak symbols are available in as and ld"
29 ac_help="$ac_help
30 --enable-shared build shared library [default=yes if GNU ld & ELF]"
31 ac_help="$ac_help
32 --enable-profile build profiled library [default=yes]"
33 ac_help="$ac_help
34 --enable-omitfp build undebuggable optimized library [default=no]"
36 # Initialize some variables set by options.
37 # The variables have the same names as the options, with
38 # dashes changed to underlines.
39 build=NONE
40 cache_file=./config.cache
41 exec_prefix=NONE
42 host=NONE
43 no_create=
44 nonopt=NONE
45 no_recursion=
46 prefix=NONE
47 program_prefix=NONE
48 program_suffix=NONE
49 program_transform_name=s,x,x,
50 silent=
51 site=
52 srcdir=
53 target=NONE
54 verbose=
55 x_includes=NONE
56 x_libraries=NONE
58 # Initialize some other variables.
59 subdirs=
61 ac_prev=
62 for ac_option
65 # If the previous option needs an argument, assign it.
66 if test -n "$ac_prev"; then
67 eval "$ac_prev=\$ac_option"
68 ac_prev=
69 continue
72 case "$ac_option" in
73 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
74 *) ac_optarg= ;;
75 esac
77 # Accept the important Cygnus configure options, so we can diagnose typos.
79 case "$ac_option" in
81 -build | --build | --buil | --bui | --bu | --b)
82 ac_prev=build ;;
83 -build=* | --build=* | --buil=* | --bui=* | --bu=* | --b=*)
84 build="$ac_optarg" ;;
86 -cache-file | --cache-file | --cache-fil | --cache-fi \
87 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
88 ac_prev=cache_file ;;
89 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
90 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
91 cache_file="$ac_optarg" ;;
93 -disable-* | --disable-*)
94 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
95 # Reject names that are not valid shell variable names.
96 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
97 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
99 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
100 eval "enable_${ac_feature}=no" ;;
102 -enable-* | --enable-*)
103 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
104 # Reject names that are not valid shell variable names.
105 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
106 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
108 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
109 case "$ac_option" in
110 *=*) ;;
111 *) ac_optarg=yes ;;
112 esac
113 eval "enable_${ac_feature}='$ac_optarg'" ;;
115 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
116 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
117 | --exec | --exe | --ex)
118 ac_prev=exec_prefix ;;
119 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
120 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
121 | --exec=* | --exe=* | --ex=*)
122 exec_prefix="$ac_optarg" ;;
124 -gas | --gas | --ga | --g)
125 # Obsolete; use --with-gas.
126 with_gas=yes ;;
128 -help | --help | --hel | --he)
129 # Omit some internal or obsolete options to make the list less imposing.
130 # This message is too long to be a string in the A/UX 3.1 sh.
131 cat << EOF
132 Usage: configure [options] [host]
133 Options: [defaults in brackets after descriptions]
134 Configuration:
135 --cache-file=FILE cache test results in FILE
136 --help print this message
137 --no-create do not create output files
138 --quiet, --silent do not print \`checking...' messages
139 --version print the version of autoconf that created configure
140 Directory and file names:
141 --prefix=PREFIX install architecture-independent files in PREFIX
142 [$ac_default_prefix]
143 --exec-prefix=PREFIX install architecture-dependent files in PREFIX
144 [same as prefix]
145 --srcdir=DIR find the sources in DIR [configure dir or ..]
146 --program-prefix=PREFIX prepend PREFIX to installed program names
147 --program-suffix=SUFFIX append SUFFIX to installed program names
148 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
149 Host type:
150 --build=BUILD configure for building on BUILD [BUILD=HOST]
151 --host=HOST configure for HOST [guessed]
152 --target=TARGET configure for TARGET [TARGET=HOST]
153 Features and packages:
154 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
155 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
156 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
157 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
158 --x-includes=DIR X include files are in DIR
159 --x-libraries=DIR X library files are in DIR
160 --enable and --with options recognized:$ac_help
162 exit 0 ;;
164 -host | --host | --hos | --ho)
165 ac_prev=host ;;
166 -host=* | --host=* | --hos=* | --ho=*)
167 host="$ac_optarg" ;;
169 -nfp | --nfp | --nf)
170 # Obsolete; use --without-fp.
171 with_fp=no ;;
173 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
174 | --no-cr | --no-c)
175 no_create=yes ;;
177 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
178 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
179 no_recursion=yes ;;
181 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
182 ac_prev=prefix ;;
183 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
184 prefix="$ac_optarg" ;;
186 -program-prefix | --program-prefix | --program-prefi | --program-pref \
187 | --program-pre | --program-pr | --program-p)
188 ac_prev=program_prefix ;;
189 -program-prefix=* | --program-prefix=* | --program-prefi=* \
190 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
191 program_prefix="$ac_optarg" ;;
193 -program-suffix | --program-suffix | --program-suffi | --program-suff \
194 | --program-suf | --program-su | --program-s)
195 ac_prev=program_suffix ;;
196 -program-suffix=* | --program-suffix=* | --program-suffi=* \
197 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
198 program_suffix="$ac_optarg" ;;
200 -program-transform-name | --program-transform-name \
201 | --program-transform-nam | --program-transform-na \
202 | --program-transform-n | --program-transform- \
203 | --program-transform | --program-transfor \
204 | --program-transfo | --program-transf \
205 | --program-trans | --program-tran \
206 | --progr-tra | --program-tr | --program-t)
207 ac_prev=program_transform_name ;;
208 -program-transform-name=* | --program-transform-name=* \
209 | --program-transform-nam=* | --program-transform-na=* \
210 | --program-transform-n=* | --program-transform-=* \
211 | --program-transform=* | --program-transfor=* \
212 | --program-transfo=* | --program-transf=* \
213 | --program-trans=* | --program-tran=* \
214 | --progr-tra=* | --program-tr=* | --program-t=*)
215 program_transform_name="$ac_optarg" ;;
217 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
218 | -silent | --silent | --silen | --sile | --sil)
219 silent=yes ;;
221 -site | --site | --sit)
222 ac_prev=site ;;
223 -site=* | --site=* | --sit=*)
224 site="$ac_optarg" ;;
226 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
227 ac_prev=srcdir ;;
228 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
229 srcdir="$ac_optarg" ;;
231 -target | --target | --targe | --targ | --tar | --ta | --t)
232 ac_prev=target ;;
233 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
234 target="$ac_optarg" ;;
236 -v | -verbose | --verbose | --verbos | --verbo | --verb)
237 verbose=yes ;;
239 -version | --version | --versio | --versi | --vers)
240 echo "configure generated by autoconf version 2.4"
241 exit 0 ;;
243 -with-* | --with-*)
244 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
245 # Reject names that are not valid shell variable names.
246 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
247 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
249 ac_package=`echo $ac_package| sed 's/-/_/g'`
250 case "$ac_option" in
251 *=*) ;;
252 *) ac_optarg=yes ;;
253 esac
254 eval "with_${ac_package}='$ac_optarg'" ;;
256 -without-* | --without-*)
257 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
258 # Reject names that are not valid shell variable names.
259 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
260 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
262 ac_package=`echo $ac_package| sed 's/-/_/g'`
263 eval "with_${ac_package}=no" ;;
265 --x)
266 # Obsolete; use --with-x.
267 with_x=yes ;;
269 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
270 | --x-incl | --x-inc | --x-in | --x-i)
271 ac_prev=x_includes ;;
272 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
273 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
274 x_includes="$ac_optarg" ;;
276 -x-libraries | --x-libraries | --x-librarie | --x-librari \
277 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
278 ac_prev=x_libraries ;;
279 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
280 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
281 x_libraries="$ac_optarg" ;;
283 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
287 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
288 echo "configure: warning: $ac_option: invalid host type" 1>&2
290 if test "x$nonopt" != xNONE; then
291 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
293 nonopt="$ac_option"
296 esac
297 done
299 if test -n "$ac_prev"; then
300 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
303 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
305 # File descriptor usage:
306 # 0 standard input
307 # 1 file creation
308 # 2 errors and warnings
309 # 3 some systems may open it to /dev/tty
310 # 4 used on the Kubota Titan
311 # 4 checking for... messages and results
312 # 5 compiler messages saved in config.log
313 if test "$silent" = yes; then
314 exec 4>/dev/null
315 else
316 exec 4>&1
318 exec 5>./config.log
320 echo "\
321 This file contains any messages produced by compilers while
322 running configure, to aid debugging if configure makes a mistake.
323 " 1>&5
325 # Strip out --no-create and --no-recursion so they do not pile up.
326 # Also quote any args containing shell metacharacters.
327 ac_configure_args=
328 for ac_arg
330 case "$ac_arg" in
331 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
332 | --no-cr | --no-c) ;;
333 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
334 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
335 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
336 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
337 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
338 esac
339 done
341 # NLS nuisances.
342 # Only set LANG and LC_ALL to C if already set.
343 # These must not be set unconditionally because not all systems understand
344 # e.g. LANG=C (notably SCO).
345 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
346 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
348 # confdefs.h avoids OS command line length limits that DEFS can exceed.
349 rm -rf conftest* confdefs.h
350 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
351 echo > confdefs.h
353 # A filename unique to this package, relative to the directory that
354 # configure is in, which we can look for to find out if srcdir is correct.
355 ac_unique_file=features.h
357 # Find the source files, if location was not specified.
358 if test -z "$srcdir"; then
359 ac_srcdir_defaulted=yes
360 # Try the directory containing this script, then its parent.
361 ac_prog=$0
362 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
363 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
364 srcdir=$ac_confdir
365 if test ! -r $srcdir/$ac_unique_file; then
366 srcdir=..
368 else
369 ac_srcdir_defaulted=no
371 if test ! -r $srcdir/$ac_unique_file; then
372 if test "$ac_srcdir_defaulted" = yes; then
373 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
374 else
375 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
378 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
380 # Prefer explicitly selected file to automatically selected ones.
381 if test -z "$CONFIG_SITE"; then
382 if test "x$prefix" != xNONE; then
383 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
384 else
385 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
388 for ac_site_file in $CONFIG_SITE; do
389 if test -r "$ac_site_file"; then
390 echo "loading site script $ac_site_file"
391 . "$ac_site_file"
393 done
395 if test -r "$cache_file"; then
396 echo "loading cache $cache_file"
397 . $cache_file
398 else
399 echo "creating cache $cache_file"
400 > $cache_file
403 ac_ext=c
404 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
405 ac_cpp='$CPP $CPPFLAGS'
406 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5 2>&5'
407 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5 2>&5'
409 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
410 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
411 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
412 ac_n= ac_c='
413 ' ac_t=' '
414 else
415 ac_n=-n ac_c= ac_t=
417 else
418 ac_n= ac_c='\c' ac_t=
421 if test -r /vmunix; then
422 kernel_id=`strings /vmunix | grep UNIX`
423 elif test -r /dynix; then
424 kernel_id=`strings /dynix | grep DYNIX`
425 else
426 kernel_id=
432 # This will get text that should go into config.make.
433 config_vars=
435 # Check for a --with-gmp argument and set gmp-srcdir in config.make.
436 # Check whether --with-gmp or --without-gmp was given.
437 withval="$with_gmp"
438 if test -n "$withval"; then
439 case "$with_gmp" in
440 yes) { echo "configure: error: --with-gmp requires an argument; use --with-gmp=DIRECTORY" 1>&2; exit 1; } ;;
441 ''|no) ;;
442 *) config_vars="$config_vars
443 gmp-srcdir = $withval" ;;
444 esac
449 # Check whether --with-fp or --without-fp was given.
450 withval="$with_fp"
451 if test -n "$withval"; then
452 with_fp=$withval
453 else
454 with_fp=yes
457 # Check whether --with-gnu-binutils or --without-gnu-binutils was given.
458 withval="$with_gnu_binutils"
459 if test -n "$withval"; then
460 gnu_binutils=$withval
461 else
462 gnu_binutils=no
465 # Check whether --with-gnu-ld or --without-gnu-ld was given.
466 withval="$with_gnu_ld"
467 if test -n "$withval"; then
468 gnu_ld=$withval
469 else
470 gnu_ld=no
473 # Check whether --with-gnu-as or --without-gnu-as was given.
474 withval="$with_gnu_as"
475 if test -n "$withval"; then
476 gnu_as=$withval
477 else
478 gnu_as=no
481 test $gnu_binutils = yes && gnu_as=yes gnu_ld=yes
482 # Check whether --with-elf or --without-elf was given.
483 withval="$with_elf"
484 if test -n "$withval"; then
485 elf=$withval
486 else
487 elf=no
490 # Check whether --with-weak-symbols or --without-weak-symbols was given.
491 withval="$with_weak_symbols"
492 if test -n "$withval"; then
493 weak=$withval
494 else
495 weak=no
499 # Check whether --enable-shared or --disable-shared was given.
500 enableval="$enable_shared"
501 if test -n "$enableval"; then
502 shared=$enableval
503 else
504 shared=default
507 # Check whether --enable-profile or --disable-profile was given.
508 enableval="$enable_profile"
509 if test -n "$enableval"; then
510 profile=$enableval
511 else
512 profile=yes
515 # Check whether --enable-omitfp or --disable-omitfp was given.
516 enableval="$enable_omitfp"
517 if test -n "$enableval"; then
518 omitfp=$enableval
519 else
520 omitfp=no
524 ac_aux_dir=
525 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
526 if test -f $ac_dir/install-sh; then
527 ac_aux_dir=$ac_dir
528 ac_install_sh="$ac_aux_dir/install-sh -c"
529 break
530 elif test -f $ac_dir/install.sh; then
531 ac_aux_dir=$ac_dir
532 ac_install_sh="$ac_aux_dir/install.sh -c"
533 break
535 done
536 if test -z "$ac_aux_dir"; then
537 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
539 ac_config_guess=$ac_aux_dir/config.guess
540 ac_config_sub=$ac_aux_dir/config.sub
541 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
544 # Make sure we can run config.sub.
545 if $ac_config_sub sun4 >/dev/null 2>&1; then :
546 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
549 echo $ac_n "checking host system type""... $ac_c" 1>&4
551 host_alias=$host
552 case "$host_alias" in
553 NONE)
554 case $nonopt in
555 NONE)
556 if host_alias=`$ac_config_guess`; then :
557 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
558 fi ;;
559 *) host_alias=$nonopt ;;
560 esac ;;
561 esac
563 host=`$ac_config_sub $host_alias`
564 host_cpu=`echo $host | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\1/'`
565 host_vendor=`echo $host | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\2/'`
566 host_os=`echo $host | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\3/'`
567 echo "$ac_t""$host" 1>&4
569 # We keep the original values in `$config_*' and never modify them, so we
570 # can write them unchanged into config.make. Everything else uses
571 # $machine, $vendor, and $os, and changes them whenever convenient.
572 config_machine=$host_cpu config_vendor=$host_vendor config_os=$host_os
574 # Some configurations imply other options.
575 case "$host_os" in
576 gnu* | linux* | bsd4.4* | netbsd* | freebsd*)
577 # These systems always use GNU tools.
578 gnu_ld=yes gnu_as=yes
579 esac
580 case "$host_os" in
581 gnu* | linux* | sysv4* | solaris2*)
582 # These systems always use the ELF format.
583 elf=yes
584 esac
586 # Compute the list of sysdep directories for this configuration.
587 sysdep_dir=$srcdir/sysdeps
588 echo $ac_n "checking sysdep dirs""... $ac_c" 1>&4
589 if eval "test \"`echo '$''{'libc_cv_sysdirs'+set}'`\" = set"; then
590 echo $ac_n "(cached) $ac_c" 1>&4
591 else
592 machine=$config_machine
593 vendor=$config_vendor
594 os=$config_os
596 # Expand the configuration machine name into a subdirectory by architecture
597 # type and particular chip.
598 case "$machine" in
599 i[345]86)
600 machine=i386/$machine ;;
601 sparc[6789])
602 machine=sparc/$machine ;;
603 m68k)
604 machine=m68k/m68020 ;;
605 m680?0)
606 machine=m68k/$machine ;;
607 m88k)
608 machine=m88k/m88100 ;;
609 m88???)
610 machine=m88k/$machine ;;
611 mips64*)
612 machine=mips/mips64/$machine ;;
613 mips*)
614 machine=mips/$machine ;;
615 esac
617 # Make sco3.2v4 become sco3.2.4 and sunos4.1.1_U1 become sunos4.1.1.U1.
618 os="`echo $os | sed 's/\([0-9A-Z]\)[v_]\([0-9A-Z]\)/\1.\2/g'`"
620 case "$os" in
621 gnu*)
622 base_os=mach/hurd ;;
623 netbsd* | 386bsd* | freebsd* | bsdi*)
624 base_os=unix/bsd/bsd4.4 ;;
625 osf* | sunos* | ultrix* | newsos* | dynix* | *bsd*)
626 base_os=unix/bsd ;;
627 sysv* | isc* | esix* | sco* | minix* | irix4*)
628 base_os=unix/sysv ;;
629 linux* | solaris[2-9]*)
630 base_os=unix/sysv/sysv4 ;;
631 none)
632 base_os=standalone ;;
634 base_os='' ;;
635 esac
637 # For sunos4.1.1, try sunos4.1.1, then sunos4.1, then sunos4, then sunos.
638 tail=$os
639 ostry=$os
640 while o=`echo $tail | sed 's/\.[^.]*$//'`; test $o != $tail; do
641 ostry="$ostry /$o"
642 tail=$o
643 done
644 o=`echo $tail | sed 's/[0-9]*$//'`
645 if test $o != $tail; then
646 ostry="$ostry /$o"
649 # For unix/sysv/sysv4, try unix/sysv/sysv4, then unix/sysv, then unix.
650 base=
651 tail=$base_os
652 while b=`echo $tail | sed 's@^\(.*\)/\([^/]*\)$@& \1@'`; test -n "$b"; do
653 set $b
654 base="$base /$1"
655 tail="$2"
656 done
658 # For sparc/sparc9, try sparc/sparc9 and then sparc.
659 mach=
660 tail=$machine
661 while m=`echo $tail | sed 's@^\(.*\)/\([^/]*\)$@& \1@'`; test -n "$m"; do
662 set $m
663 # Prepend the machine's FPU directory unless --without-fp.
664 if test "$with_fp" = yes; then
665 mach="$mach /$1/fpu"
667 mach="$mach /$1"
668 tail="$2"
669 done
672 # Find what sysdep directories exist.
673 sysnames=
674 for b in $base ''; do
675 for m0 in $mach ''; do
676 for v in /$vendor ''; do
677 for o in /$ostry ''; do
678 for m in $mach ''; do
679 try="$m0$b$v$o$m"
680 test -n "$enable_debug_configure" && echo "$0 DEBUG: try $try" >&2
681 if test -d $sysdep_dir$try; then
682 sysnames="$sysnames $try"
683 { test -n "$o" || test -n "$b"; } && os_used=t
684 { test -n "$m" || test -n "$m0"; } && machine_used=t
686 done
687 done
688 done
689 done
690 done
692 if test -z "$os_used" && test "$os" != none; then
693 { echo "configure: error: Operating system $os is not supported." 1>&2; exit 1; }
695 if test -z "$machine_used" && test "$machine" != none; then
696 { echo "configure: error: The $machine is not supported." 1>&2; exit 1; }
699 # We have now validated the configuration.
702 # If using ELF, look for an `elf' subdirectory of each machine directory.
703 # We prepend these rather than inserting them whereever the machine appears
704 # because things specified by the machine's ELF ABI should override
705 # OS-specific things, and should always be the same for any OS on the
706 # machine (otherwise what's the point of an ABI?).
707 if test "$elf" = yes; then
708 elf_dirs=
709 for m in $mach; do
710 if test -d $sysdep_dir$m/elf; then
711 elf_dirs="$elf_dirs $m/elf"
713 done
714 sysnames="`echo $elf_dirs | sed -e 's,^/,,' -e 's, /,,g'` $sysnames"
718 # Remove the leading slashes.
719 sysnames="`echo $sysnames | sed -e 's@^/@@' -e 's@ /@ @g'`"
722 # Expand the list of system names into a full list of directories
723 # from each element's parent name and Implies file (if present).
724 set $sysnames
725 while test $# -gt 0; do
726 name=$1
727 shift
729 if test -f $sysdep_dir/$name/Implies; then
730 # Collect more names from the `Implies' file (removing comments).
731 implied="`sed 's/#.*$//' < $sysdep_dir/$name/Implies`"
732 for x in $implied; do
733 test -d $sysdep_dir/$x || echo "Warning: $name implies nonexistent $x">&2
734 done
735 else
736 implied=
739 # Add NAME to the list of names.
740 names="$names $name"
742 # Find the parent of NAME, using the empty string if it has none.
743 parent="`echo $name | sed -n -e '/\//!q' -e 's=/[^/]*$==p'`"
745 # Add the names implied by NAME, and NAME's parent (if it has one), to
746 # the list of names to be processed (the argument list). We prepend the
747 # implied names to the list and append the parent. We want implied
748 # directories to come before further directories inferred from the
749 # configuration components; this ensures that for sysv4, unix/common
750 # (implied by unix/sysv/sysv4) comes before unix/sysv (in ostry (here $*)
751 # after sysv4).
752 sysnames="`echo $implied $* $parent`"
753 test -n "$sysnames" && set $sysnames
754 done
756 # Add the default directories.
757 names="$names generic stub"
759 # Now uniquize the list.
760 seen=
761 sysnames=
762 for name in $names; do
763 if echo "$seen" | fgrep -x $name >/dev/null; then
764 # Already in the list.
765 true;
766 else
767 # A new one.
768 if test -z "$seen"; then
769 seen="$name" sysnames="$name"
770 else
771 seen="$seen
772 $name"
773 sysnames="$sysnames $name"
776 done
777 libc_cv_sysdirs="$sysnames"
780 sysnames="$libc_cv_sysdirs"
781 echo "$ac_t""${sysnames}" 1>&4
783 # Find a good install program. We prefer a C program (faster),
784 # so one script is as good as another. But avoid the broken or
785 # incompatible versions:
786 # SysV /etc/install, /usr/sbin/install
787 # SunOS /usr/etc/install
788 # IRIX /sbin/install
789 # AIX /bin/install
790 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
791 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
792 # ./install, which can be erroneously created by make from ./install.sh.
793 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&4
794 if test -z "$INSTALL"; then
795 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
796 echo $ac_n "(cached) $ac_c" 1>&4
797 else
798 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
799 for ac_dir in $PATH; do
800 # Account for people who put trailing slashes in PATH elements.
801 case "$ac_dir/" in
802 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
804 # OSF1 and SCO ODT 3.0 have their own names for install.
805 for ac_prog in ginstall installbsd scoinst install; do
806 if test -f $ac_dir/$ac_prog; then
807 if test $ac_prog = install &&
808 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
809 # AIX install. It has an incompatible calling convention.
810 # OSF/1 installbsd also uses dspmsg, but is usable.
812 else
813 ac_cv_path_install="$ac_dir/$ac_prog -c"
814 break 2
817 done
819 esac
820 done
821 IFS="$ac_save_ifs"
822 # As a last resort, use the slow shell script.
823 test -z "$ac_cv_path_install" && ac_cv_path_install="$ac_install_sh"
825 INSTALL="$ac_cv_path_install"
827 echo "$ac_t""$INSTALL" 1>&4
829 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
830 # It thinks the first close brace ends the variable substitution.
831 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
833 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
835 if test "$INSTALL" = "${srcdir}/install-sh"; then
836 # The makefiles need to use a different form to find it in $srcdir.
837 INSTALL='$(..)./install-sh'
840 echo $ac_n "checking build system type""... $ac_c" 1>&4
842 build_alias=$build
843 case "$build_alias" in
844 NONE)
845 case $nonopt in
846 NONE) build_alias=$host_alias ;;
847 *) build_alias=$nonopt ;;
848 esac ;;
849 esac
851 build=`$ac_config_sub $build_alias`
852 build_cpu=`echo $build | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\1/'`
853 build_vendor=`echo $build | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\2/'`
854 build_os=`echo $build | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\3/'`
855 echo "$ac_t""$build" 1>&4
857 if test $host != $build; then
858 ac_tool_prefix=${host_alias}-
859 else
860 ac_tool_prefix=
863 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
864 set dummy ${ac_tool_prefix}gcc; ac_word=$2
865 echo $ac_n "checking for $ac_word""... $ac_c" 1>&4
866 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
867 echo $ac_n "(cached) $ac_c" 1>&4
868 else
869 if test -n "$CC"; then
870 ac_cv_prog_CC="$CC" # Let the user override the test.
871 else
872 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
873 for ac_dir in $PATH; do
874 test -z "$ac_dir" && ac_dir=.
875 if test -f $ac_dir/$ac_word; then
876 ac_cv_prog_CC="${ac_tool_prefix}gcc"
877 break
879 done
880 IFS="$ac_save_ifs"
881 test -z "$ac_cv_prog_CC" && ac_cv_prog_CC="gcc"
884 CC="$ac_cv_prog_CC"
885 if test -n "$CC"; then
886 echo "$ac_t""$CC" 1>&4
887 else
888 echo "$ac_t""no" 1>&4
893 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
894 set dummy ${ac_tool_prefix}ar; ac_word=$2
895 echo $ac_n "checking for $ac_word""... $ac_c" 1>&4
896 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
897 echo $ac_n "(cached) $ac_c" 1>&4
898 else
899 if test -n "$AR"; then
900 ac_cv_prog_AR="$AR" # Let the user override the test.
901 else
902 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
903 for ac_dir in $PATH; do
904 test -z "$ac_dir" && ac_dir=.
905 if test -f $ac_dir/$ac_word; then
906 ac_cv_prog_AR="${ac_tool_prefix}ar"
907 break
909 done
910 IFS="$ac_save_ifs"
911 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
914 AR="$ac_cv_prog_AR"
915 if test -n "$AR"; then
916 echo "$ac_t""$AR" 1>&4
917 else
918 echo "$ac_t""no" 1>&4
923 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
924 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
925 echo $ac_n "checking for $ac_word""... $ac_c" 1>&4
926 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
927 echo $ac_n "(cached) $ac_c" 1>&4
928 else
929 if test -n "$RANLIB"; then
930 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
931 else
932 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
933 for ac_dir in $PATH; do
934 test -z "$ac_dir" && ac_dir=.
935 if test -f $ac_dir/$ac_word; then
936 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
937 break
939 done
940 IFS="$ac_save_ifs"
943 RANLIB="$ac_cv_prog_RANLIB"
944 if test -n "$RANLIB"; then
945 echo "$ac_t""$RANLIB" 1>&4
946 else
947 echo "$ac_t""no" 1>&4
951 if test -z "$ac_cv_prog_RANLIB"; then
952 if test -n "$ac_tool_prefix"; then
953 # Extract the first word of "ranlib", so it can be a program name with args.
954 set dummy ranlib; ac_word=$2
955 echo $ac_n "checking for $ac_word""... $ac_c" 1>&4
956 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
957 echo $ac_n "(cached) $ac_c" 1>&4
958 else
959 if test -n "$RANLIB"; then
960 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
961 else
962 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
963 for ac_dir in $PATH; do
964 test -z "$ac_dir" && ac_dir=.
965 if test -f $ac_dir/$ac_word; then
966 ac_cv_prog_RANLIB="ranlib"
967 break
969 done
970 IFS="$ac_save_ifs"
971 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
974 RANLIB="$ac_cv_prog_RANLIB"
975 if test -n "$RANLIB"; then
976 echo "$ac_t""$RANLIB" 1>&4
977 else
978 echo "$ac_t""no" 1>&4
981 else
982 RANLIB=":"
986 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&4
987 # On Suns, sometimes $CPP names a directory.
988 if test -n "$CPP" && test -d "$CPP"; then
989 CPP=
991 if test -z "$CPP"; then
992 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
993 echo $ac_n "(cached) $ac_c" 1>&4
994 else
995 # This must be in double quotes, not single quotes, because CPP may get
996 # substituted into the Makefile and "${CC-cc}" will confuse make.
997 CPP="${CC-cc} -E"
998 # On the NeXT, cc -E runs the code through the compiler's parser,
999 # not just through cpp.
1000 cat > conftest.$ac_ext <<EOF
1001 #line 1002 "configure"
1002 #include "confdefs.h"
1003 #include <assert.h>
1004 Syntax Error
1006 eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1007 ac_err=`grep -v '^ *+' conftest.out`
1008 if test -z "$ac_err"; then
1010 else
1011 echo "$ac_err" >&5
1012 rm -rf conftest*
1013 CPP="${CC-cc} -E -traditional-cpp"
1014 cat > conftest.$ac_ext <<EOF
1015 #line 1016 "configure"
1016 #include "confdefs.h"
1017 #include <assert.h>
1018 Syntax Error
1020 eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1021 ac_err=`grep -v '^ *+' conftest.out`
1022 if test -z "$ac_err"; then
1024 else
1025 echo "$ac_err" >&5
1026 rm -rf conftest*
1027 CPP=/lib/cpp
1029 rm -f conftest*
1031 rm -f conftest*
1032 ac_cv_prog_CPP="$CPP"
1034 CPP="$ac_cv_prog_CPP"
1035 else
1036 ac_cv_prog_CPP="$CPP"
1038 echo "$ac_t""$CPP" 1>&4
1041 echo $ac_n "checking signed size_t type""... $ac_c" 1>&4
1042 if eval "test \"`echo '$''{'libc_cv_signed_size_t'+set}'`\" = set"; then
1043 echo $ac_n "(cached) $ac_c" 1>&4
1044 else
1045 echo '#include <stddef.h>
1046 FOOBAR __SIZE_TYPE__ FOOBAR' > conftest.c
1047 if eval "$ac_cpp conftest.c 2>/dev/null" \
1048 | grep '^FOOBAR.*unsigned.*FOOBAR$' >/dev/null; then
1049 libc_cv_signed_size_t=no
1050 else
1051 libc_cv_signed_size_t=yes
1053 rm -f conftest*
1056 echo "$ac_t""$libc_cv_signed_size_t" 1>&4
1057 if test $libc_cv_signed_size_t = yes; then
1058 cat >> confdefs.h <<\EOF
1059 #undef __SIZE_TYPE__
1060 #define __SIZE_TYPE__ unsigned
1064 echo $ac_n "checking libc-friendly stddef.h""... $ac_c" 1>&4
1065 if eval "test \"`echo '$''{'libc_cv_friendly_stddef'+set}'`\" = set"; then
1066 echo $ac_n "(cached) $ac_c" 1>&4
1067 else
1068 cat > conftest.$ac_ext <<EOF
1069 #line 1070 "configure"
1070 #include "confdefs.h"
1071 #define __need_size_t
1072 #define __need_wchar_t
1073 #include <stddef.h>
1074 #define __need_NULL
1075 #include <stddef.h>
1076 int main() { return 0; }
1077 int t() {
1078 size_t size; wchar_t wchar;
1079 #ifdef offsetof
1080 #error stddef.h ignored __need_*
1081 #endif
1082 if (&size == NULL || &wchar == NULL) abort ();
1083 ; return 0; }
1085 if eval $ac_compile; then
1086 rm -rf conftest*
1087 libc_cv_friendly_stddef=yes
1088 else
1089 rm -rf conftest*
1090 libc_cv_friendly_stddef=no
1092 rm -f conftest*
1096 echo "$ac_t""$libc_cv_friendly_stddef" 1>&4
1097 if test $libc_cv_friendly_stddef = yes; then
1098 config_vars="$config_vars
1099 override stddef.h = # The installed <stddef.h> seems to be libc-friendly."
1102 echo $ac_n "checking whether we need to use -P to assemble .S files""... $ac_c" 1>&4
1103 if eval "test \"`echo '$''{'libc_cv_need_minus_P'+set}'`\" = set"; then
1104 echo $ac_n "(cached) $ac_c" 1>&4
1105 else
1106 cat > conftest.S <<EOF
1107 #include "confdefs.h"
1108 /* Nothing whatsoever. */
1110 if ${CC-cc} $CFLAGS -c conftest.S 2>/dev/null; then
1111 libc_cv_need_minus_P=no
1112 else
1113 libc_cv_need_minus_P=yes
1115 rm -f conftest*
1118 echo "$ac_t""$libc_cv_need_minus_P" 1>&4
1119 if test $libc_cv_need_minus_P = yes; then
1120 config_vars="$config_vars
1121 asm-CPPFLAGS = -P # The assembler can't grok cpp's # line directives."
1124 echo $ac_n "checking for assembler global-symbol directive""... $ac_c" 1>&4
1125 if eval "test \"`echo '$''{'libc_cv_asm_global_directive'+set}'`\" = set"; then
1126 echo $ac_n "(cached) $ac_c" 1>&4
1127 else
1128 libc_cv_asm_global_directive=UNKNOWN
1129 for ac_globl in .globl .global; do
1130 cat > conftest.s <<EOF
1131 .text
1132 ${ac_globl} foo
1133 foo: .long 0
1135 if ${CC-cc} $CFLAGS -c conftest.s 2>/dev/null; then
1136 libc_cv_asm_global_directive=${ac_globl}
1138 rm -f conftest*
1139 test $libc_cv_asm_global_directive != UNKNOWN && break
1140 done
1143 echo "$ac_t""$libc_cv_asm_global_directive" 1>&4
1144 if test $libc_cv_asm_global_directive = UNKNOWN; then
1145 { echo "configure: error: cannot determine asm global directive" 1>&2; exit 1; }
1146 else
1147 cat >> confdefs.h <<EOF
1148 #define ASM_GLOBAL_DIRECTIVE ${libc_cv_asm_global_directive}
1153 echo $ac_n "checking for .set assembler directive""... $ac_c" 1>&4
1154 if eval "test \"`echo '$''{'libc_cv_asm_set_directive'+set}'`\" = set"; then
1155 echo $ac_n "(cached) $ac_c" 1>&4
1156 else
1157 cat > conftest.s <<EOF
1158 .text
1159 foo: .long 0
1160 .set glibc_conftest_frobozz,foo
1161 $libc_cv_asm_global_directive glibc_conftest_frobozz
1163 # The alpha-dec-osf1 assembler gives only a warning for `.set'
1164 # (but it doesn't work), so we must do a linking check to be sure.
1165 cat > conftest1.c <<\EOF
1166 extern int glibc_conftest_frobozz;
1167 main () { printf ("%d\n", glibc_conftest_frobozz); }
1169 if ${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \
1170 conftest.s conftest1.c 1>&5 2>&5; then
1171 libc_cv_asm_set_directive=yes
1172 else
1173 libc_cv_asm_set_directive=no
1175 rm -f conftest*
1178 echo "$ac_t""$libc_cv_asm_set_directive" 1>&4
1179 if test $libc_cv_asm_set_directive = yes; then
1180 cat >> confdefs.h <<\EOF
1181 #define HAVE_ASM_SET_DIRECTIVE 1
1187 # sysdeps configure fragments may set these with files to be linked below.
1188 libc_link_dests=
1189 libc_link_sources=
1191 # Iterate over all the sysdep directories we will use, running their
1192 # configure fragments, and looking for a uname implementation.
1193 uname=
1194 for dir in $sysnames; do
1195 if test -r $sysdep_dir/$dir/configure; then
1196 echo "$ac_t""running configure fragment for $dir" 1>&4
1197 . $sysdep_dir/$dir/configure
1199 if test -z "$uname"; then
1200 { test -r $sysdep_dir/$dir/uname.c || test -r $sysdep_dir/$dir/uname.S; } \
1201 && uname=$dir
1203 done
1207 # If we will use the generic uname implementation, we must figure out what
1208 # it will say by examining the system, and write the results in config-name.h.
1209 if test "$uname" = generic; then
1211 uname_sysname=`echo $config_os | sed 's/[0-9.]*$//'`
1212 if test $uname_sysname != $config_os; then
1213 config_release=`echo $config_os | sed s/$uname_sysname//`
1216 echo $ac_n "checking OS release for uname""... $ac_c" 1>&4
1217 if eval "test \"`echo '$''{'libc_cv_uname_release'+set}'`\" = set"; then
1218 echo $ac_n "(cached) $ac_c" 1>&4
1219 else
1220 kernel_release=`echo "$kernel_id" | sed 's/^[^0-9.]*\([0-9.]*\).*$/\1/'`
1221 if test x`echo "$config_release" | sed "s/^$kernel_release//"` \
1222 != x$config_release; then
1223 # The configuration release is a substring of the kernel release.
1224 libc_cv_uname_release=$kernel_release
1225 elif test x$config_release != x; then
1226 libc_cv_uname_release=$config_release
1227 elif test x$kernel_release != x; then
1228 libc_cv_uname_release=$kernel_release
1229 else
1230 libc_cv_uname_release=unknown
1234 echo "$ac_t""$libc_cv_uname_release" 1>&4
1235 uname_release="$libc_cv_uname_release"
1237 echo $ac_n "checking OS version for uname""... $ac_c" 1>&4
1238 if eval "test \"`echo '$''{'libc_cv_uname_version'+set}'`\" = set"; then
1239 echo $ac_n "(cached) $ac_c" 1>&4
1240 else
1241 kernel_version=`echo "$kernel_id" | sed 's/^[^#]*#\([0-9]*\).*$/\1/'`
1242 if test -n "$kernel_version"; then
1243 libc_cv_uname_version="$kernel_version"
1244 else
1245 libc_cv_uname_version=unknown
1249 echo "$ac_t""$libc_cv_uname_version" 1>&4
1250 uname_version="$libc_cv_uname_version"
1252 config_uname=config-name.h:config-name.in
1253 else
1254 # For non-generic uname, we don't need to create config-name.h at all.
1255 config_uname=
1259 if test $gnu_ld = yes; then
1260 cat >> confdefs.h <<\EOF
1261 #define HAVE_GNU_LD 1
1265 if test $gnu_as = yes; then
1266 cat >> confdefs.h <<\EOF
1267 #define HAVE_GNU_AS 1
1271 if test $elf = yes; then
1272 cat >> confdefs.h <<\EOF
1273 #define HAVE_ELF 1
1277 if test $weak = yes; then
1278 cat >> confdefs.h <<\EOF
1279 #define HAVE_WEAK_SYMBOLS 1
1285 if test $shared = default; then
1286 if test $gnu_ld = yes; then
1287 shared=$elf
1294 if test "`(cd $srcdir; pwd)`" = "`pwd`"; then
1295 config_makefile=
1296 else
1297 config_makefile=Makefile
1300 trap '' 1 2 15
1301 cat > confcache <<\EOF
1302 # This file is a shell script that caches the results of configure
1303 # tests run on this system so they can be shared between configure
1304 # scripts and configure runs. It is not useful on other systems.
1305 # If it contains results you don't want to keep, you may remove or edit it.
1307 # By default, configure uses ./config.cache as the cache file,
1308 # creating it if it does not exist already. You can give configure
1309 # the --cache-file=FILE option to use a different cache file; that is
1310 # what configure does when it calls configure scripts in
1311 # subdirectories, so they share the cache.
1312 # Giving --cache-file=/dev/null disables caching, for debugging configure.
1313 # config.status only pays attention to the cache file if you give it the
1314 # --recheck option to rerun configure.
1317 # Ultrix sh set writes to stderr and can't be redirected directly,
1318 # and sets the high bit in the cache file unless we assign to the vars.
1319 (set) 2>&1 |
1320 sed -n "s/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=\${\1='\2'}/p" \
1321 >> confcache
1322 if cmp -s $cache_file confcache; then
1324 else
1325 if test -w $cache_file; then
1326 echo "updating cache $cache_file"
1327 cat confcache > $cache_file
1328 else
1329 echo "not updating unwritable cache $cache_file"
1332 rm -f confcache
1334 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
1336 test "x$prefix" = xNONE && prefix=$ac_default_prefix
1337 # Let make expand exec_prefix.
1338 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
1340 # Any assignment to VPATH causes Sun make to only execute
1341 # the first set of double-colon rules, so remove it if not needed.
1342 # If there is a colon in the path, we need to keep it.
1343 if test "x$srcdir" = x.; then
1344 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
1347 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
1349 DEFS=-DHAVE_CONFIG_H
1351 # Without the "./", some shells look in PATH for config.status.
1352 : ${CONFIG_STATUS=./config.status}
1354 echo creating $CONFIG_STATUS
1355 rm -f $CONFIG_STATUS
1356 cat > $CONFIG_STATUS <<EOF
1357 #! /bin/sh
1358 # Generated automatically by configure.
1359 # Run this file to recreate the current configuration.
1360 # This directory was configured as follows,
1361 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
1363 # $0 $ac_configure_args
1365 # Compiler output produced by configure, useful for debugging
1366 # configure, is in ./config.log if it exists.
1368 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
1369 for ac_option
1371 case "\$ac_option" in
1372 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1373 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
1374 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
1375 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
1376 echo "$CONFIG_STATUS generated by autoconf version 2.4"
1377 exit 0 ;;
1378 -help | --help | --hel | --he | --h)
1379 echo "\$ac_cs_usage"; exit 0 ;;
1380 *) echo "\$ac_cs_usage"; exit 1 ;;
1381 esac
1382 done
1384 ac_given_srcdir=$srcdir
1385 ac_given_INSTALL="$INSTALL"
1387 trap 'rm -fr `echo "config.make ${config_makefile} ${config_uname} config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
1389 # Protect against being on the right side of a sed subst in config.status.
1390 sed 's/%@/@@/; s/@%/@@/; s/%g$/@g/; /@g$/s/[\\\\&%]/\\\\&/g;
1391 s/@@/%@/; s/@@/@%/; s/@g$/%g/' > conftest.subs <<\CEOF
1392 $ac_vpsub
1393 $extrasub
1394 s%@CFLAGS@%$CFLAGS%g
1395 s%@CPPFLAGS@%$CPPFLAGS%g
1396 s%@CXXFLAGS@%$CXXFLAGS%g
1397 s%@DEFS@%$DEFS%g
1398 s%@LDFLAGS@%$LDFLAGS%g
1399 s%@LIBS@%$LIBS%g
1400 s%@exec_prefix@%$exec_prefix%g
1401 s%@prefix@%$prefix%g
1402 s%@program_transform_name@%$program_transform_name%g
1403 s%@host@%$host%g
1404 s%@host_alias@%$host_alias%g
1405 s%@host_cpu@%$host_cpu%g
1406 s%@host_vendor@%$host_vendor%g
1407 s%@host_os@%$host_os%g
1408 s%@sysnames@%$sysnames%g
1409 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
1410 s%@INSTALL_DATA@%$INSTALL_DATA%g
1411 s%@build@%$build%g
1412 s%@build_alias@%$build_alias%g
1413 s%@build_cpu@%$build_cpu%g
1414 s%@build_vendor@%$build_vendor%g
1415 s%@build_os@%$build_os%g
1416 s%@CC@%$CC%g
1417 s%@AR@%$AR%g
1418 s%@RANLIB@%$RANLIB%g
1419 s%@CPP@%$CPP%g
1420 s%@uname_sysname@%$uname_sysname%g
1421 s%@uname_release@%$uname_release%g
1422 s%@uname_version@%$uname_version%g
1423 s%@gnu_ld@%$gnu_ld%g
1424 s%@gnu_as@%$gnu_as%g
1425 s%@elf@%$elf%g
1426 s%@weak@%$weak%g
1427 s%@shared@%$shared%g
1428 s%@profile@%$profile%g
1429 s%@omitfp@%$omitfp%g
1431 CEOF
1433 cat >> $CONFIG_STATUS <<EOF
1435 CONFIG_FILES=\${CONFIG_FILES-"config.make ${config_makefile} ${config_uname}"}
1437 cat >> $CONFIG_STATUS <<\EOF
1438 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
1439 # Support "outfile[:infile]", defaulting infile="outfile.in".
1440 case "$ac_file" in
1441 *:*) ac_file_in=`echo "$ac_file"|sed 's%.*:%%'`
1442 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
1443 *) ac_file_in="${ac_file}.in" ;;
1444 esac
1446 # Adjust relative srcdir, etc. for subdirectories.
1448 # Remove last slash and all that follows it. Not all systems have dirname.
1449 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
1450 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
1451 # The file is in a subdirectory.
1452 test ! -d "$ac_dir" && mkdir "$ac_dir"
1453 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
1454 # A "../" for each directory in $ac_dir_suffix.
1455 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
1456 else
1457 ac_dir_suffix= ac_dots=
1460 case "$ac_given_srcdir" in
1461 .) srcdir=.
1462 if test -z "$ac_dots"; then top_srcdir=.
1463 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
1464 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
1465 *) # Relative path.
1466 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
1467 top_srcdir="$ac_dots$ac_given_srcdir" ;;
1468 esac
1470 case "$ac_given_INSTALL" in
1471 [/$]*) INSTALL="$ac_given_INSTALL" ;;
1472 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
1473 esac
1474 echo creating "$ac_file"
1475 rm -f "$ac_file"
1476 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
1477 case "$ac_file" in
1478 *Makefile*) ac_comsub="1i\\
1479 # $configure_input" ;;
1480 *) ac_comsub= ;;
1481 esac
1482 sed -e "$ac_comsub
1483 s%@configure_input@%$configure_input%g
1484 s%@srcdir@%$srcdir%g
1485 s%@top_srcdir@%$top_srcdir%g
1486 s%@INSTALL@%$INSTALL%g
1487 " -f conftest.subs $ac_given_srcdir/$ac_file_in > $ac_file
1488 fi; done
1489 rm -f conftest.subs
1491 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
1492 # NAME is the cpp macro being defined and VALUE is the value it is being given.
1494 # ac_d sets the value in "#define NAME VALUE" lines.
1495 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
1496 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
1497 ac_dC='\3'
1498 ac_dD='%g'
1499 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
1500 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
1501 ac_uB='\([ ]\)%\1#\2define\3'
1502 ac_uC=' '
1503 ac_uD='\4%g'
1504 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
1505 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
1506 ac_eB='$%\1#\2define\3'
1507 ac_eC=' '
1508 ac_eD='%g'
1510 CONFIG_HEADERS=${CONFIG_HEADERS-"config.h"}
1511 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
1512 # Support "outfile[:infile]", defaulting infile="outfile.in".
1513 case "$ac_file" in
1514 *:*) ac_file_in=`echo "$ac_file"|sed 's%.*:%%'`
1515 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
1516 *) ac_file_in="${ac_file}.in" ;;
1517 esac
1519 echo creating $ac_file
1521 rm -f conftest.frag conftest.in conftest.out
1522 cp $ac_given_srcdir/$ac_file_in conftest.in
1526 # Transform confdefs.h into a sed script conftest.vals that substitutes
1527 # the proper values into config.h.in to produce config.h. And first:
1528 # Protect against being on the right side of a sed subst in config.status.
1529 # Protect against being in an unquoted here document in config.status.
1530 rm -f conftest.vals
1531 cat > conftest.hdr <<\EOF
1532 s/[\\&%]/\\&/g
1533 s%[\\$`]%\\&%g
1534 s%#define \([A-Za-z_][A-Za-z0-9_]*\) \(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
1535 s%ac_d%ac_u%gp
1536 s%ac_u%ac_e%gp
1538 sed -n -f conftest.hdr confdefs.h > conftest.vals
1539 rm -f conftest.hdr
1541 # This sed command replaces #undef with comments. This is necessary, for
1542 # example, in the case of _POSIX_SOURCE, which is predefined and required
1543 # on some systems where configure will not decide to define it.
1544 cat >> conftest.vals <<\EOF
1545 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
1548 # Break up conftest.vals because some shells have a limit on
1549 # the size of here documents, and old seds have small limits too.
1550 # Maximum number of lines to put in a single here document.
1551 ac_max_here_lines=12
1553 rm -f conftest.tail
1554 while :
1556 ac_lines=`grep -c . conftest.vals`
1557 # grep -c gives empty output for an empty file on some AIX systems.
1558 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
1559 # Write a limited-size here document to conftest.frag.
1560 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
1561 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
1562 echo 'CEOF
1563 sed -f conftest.frag conftest.in > conftest.out
1564 rm -f conftest.in
1565 mv conftest.out conftest.in
1566 ' >> $CONFIG_STATUS
1567 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
1568 rm -f conftest.vals
1569 mv conftest.tail conftest.vals
1570 done
1571 rm -f conftest.vals
1573 cat >> $CONFIG_STATUS <<\EOF
1574 rm -f conftest.frag conftest.h
1575 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
1576 cat conftest.in >> conftest.h
1577 rm -f conftest.in
1578 if cmp -s $ac_file conftest.h 2>/dev/null; then
1579 echo "$ac_file is unchanged"
1580 rm -f conftest.h
1581 else
1582 rm -f $ac_file
1583 mv conftest.h $ac_file
1585 fi; done
1589 cat >> $CONFIG_STATUS <<EOF
1590 ac_sources="`echo $libc_link_sources`"
1591 ac_dests="`echo $libc_link_dests`"
1594 cat >> $CONFIG_STATUS <<\EOF
1595 srcdir=$ac_given_srcdir
1596 while test -n "$ac_sources"; do
1597 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
1598 set $ac_sources; ac_source=$1; shift; ac_sources=$*
1600 echo "linking $srcdir/$ac_source to $ac_dest"
1602 if test ! -r $srcdir/$ac_source; then
1603 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
1605 rm -f $ac_dest
1607 # Make relative symlinks.
1608 # Remove last slash and all that follows it. Not all systems have dirname.
1609 ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'`
1610 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
1611 # The dest file is in a subdirectory.
1612 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
1613 ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`"
1614 # A "../" for each directory in $ac_dest_dir_suffix.
1615 ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'`
1616 else
1617 ac_dest_dir_suffix= ac_dots=
1620 case "$srcdir" in
1621 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
1622 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
1623 esac
1625 # Make a symlink if possible; otherwise try a hard link.
1626 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
1627 ln $srcdir/$ac_source $ac_dest; then :
1628 else
1629 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
1631 done
1633 cat >> $CONFIG_STATUS <<EOF
1634 echo '$config_vars' >> config.make
1636 cat >> $CONFIG_STATUS <<\EOF
1638 exit 0
1640 chmod +x $CONFIG_STATUS
1641 rm -fr confdefs* $ac_clean_files
1642 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1