Tue Apr 23 15:56:56 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
[glibc.git] / configure
blob09dd165c4154c19b93952ce6bd168553df1aae8b
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.9
6 # Copyright (C) 1992, 93, 94, 95, 96 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-gettext=DIR find GNU gettext source code in DIR (not needed)"
19 ac_help="$ac_help
20 --with-fp if using floating-point hardware"
21 ac_help="$ac_help
22 --with-gnu-binutils if using GNU binutils (as and ld)"
23 ac_help="$ac_help
24 --with-gnu-ld if using GNU ld (in the binutils package)"
25 ac_help="$ac_help
26 --with-gnu-as if using GNU as (in the binutils package)"
27 ac_help="$ac_help
28 --with-elf if using the ELF object format"
29 ac_help="$ac_help
30 --enable-libio build in GNU libio instead of GNU stdio"
31 ac_help="$ac_help
32 --enable-shared build shared library [default=yes if GNU ld & ELF]"
33 ac_help="$ac_help
34 --enable-profile build profiled library [default=yes]"
35 ac_help="$ac_help
36 --enable-omitfp build undebuggable optimized library [default=no]"
38 # Initialize some variables set by options.
39 # The variables have the same names as the options, with
40 # dashes changed to underlines.
41 build=NONE
42 cache_file=./config.cache
43 exec_prefix=NONE
44 host=NONE
45 no_create=
46 nonopt=NONE
47 no_recursion=
48 prefix=NONE
49 program_prefix=NONE
50 program_suffix=NONE
51 program_transform_name=s,x,x,
52 silent=
53 site=
54 srcdir=
55 target=NONE
56 verbose=
57 x_includes=NONE
58 x_libraries=NONE
59 bindir='${exec_prefix}/bin'
60 sbindir='${exec_prefix}/sbin'
61 libexecdir='${exec_prefix}/libexec'
62 datadir='${prefix}/share'
63 sysconfdir='${prefix}/etc'
64 sharedstatedir='${prefix}/com'
65 localstatedir='${prefix}/var'
66 libdir='${exec_prefix}/lib'
67 includedir='${prefix}/include'
68 oldincludedir='/usr/include'
69 infodir='${prefix}/info'
70 mandir='${prefix}/man'
72 # Initialize some other variables.
73 subdirs=
74 MFLAGS= MAKEFLAGS=
76 ac_prev=
77 for ac_option
80 # If the previous option needs an argument, assign it.
81 if test -n "$ac_prev"; then
82 eval "$ac_prev=\$ac_option"
83 ac_prev=
84 continue
87 case "$ac_option" in
88 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
89 *) ac_optarg= ;;
90 esac
92 # Accept the important Cygnus configure options, so we can diagnose typos.
94 case "$ac_option" in
96 -bindir | --bindir | --bindi | --bind | --bin | --bi)
97 ac_prev=bindir ;;
98 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
99 bindir="$ac_optarg" ;;
101 -build | --build | --buil | --bui | --bu)
102 ac_prev=build ;;
103 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
104 build="$ac_optarg" ;;
106 -cache-file | --cache-file | --cache-fil | --cache-fi \
107 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
108 ac_prev=cache_file ;;
109 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
110 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
111 cache_file="$ac_optarg" ;;
113 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
114 ac_prev=datadir ;;
115 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
116 | --da=*)
117 datadir="$ac_optarg" ;;
119 -disable-* | --disable-*)
120 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
121 # Reject names that are not valid shell variable names.
122 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
123 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
125 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
126 eval "enable_${ac_feature}=no" ;;
128 -enable-* | --enable-*)
129 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
130 # Reject names that are not valid shell variable names.
131 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
132 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
134 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
135 case "$ac_option" in
136 *=*) ;;
137 *) ac_optarg=yes ;;
138 esac
139 eval "enable_${ac_feature}='$ac_optarg'" ;;
141 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
142 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
143 | --exec | --exe | --ex)
144 ac_prev=exec_prefix ;;
145 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
146 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
147 | --exec=* | --exe=* | --ex=*)
148 exec_prefix="$ac_optarg" ;;
150 -gas | --gas | --ga | --g)
151 # Obsolete; use --with-gas.
152 with_gas=yes ;;
154 -help | --help | --hel | --he)
155 # Omit some internal or obsolete options to make the list less imposing.
156 # This message is too long to be a string in the A/UX 3.1 sh.
157 cat << EOF
158 Usage: configure [options] [host]
159 Options: [defaults in brackets after descriptions]
160 Configuration:
161 --cache-file=FILE cache test results in FILE
162 --help print this message
163 --no-create do not create output files
164 --quiet, --silent do not print \`checking...' messages
165 --version print the version of autoconf that created configure
166 Directory and file names:
167 --prefix=PREFIX install architecture-independent files in PREFIX
168 [$ac_default_prefix]
169 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
170 [same as prefix]
171 --bindir=DIR user executables in DIR [EPREFIX/bin]
172 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
173 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
174 --datadir=DIR read-only architecture-independent data in DIR
175 [PREFIX/share]
176 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
177 --sharedstatedir=DIR modifiable architecture-independent data in DIR
178 [PREFIX/com]
179 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
180 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
181 --includedir=DIR C header files in DIR [PREFIX/include]
182 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
183 --infodir=DIR info documentation in DIR [PREFIX/info]
184 --mandir=DIR man documentation in DIR [PREFIX/man]
185 --srcdir=DIR find the sources in DIR [configure dir or ..]
186 --program-prefix=PREFIX prepend PREFIX to installed program names
187 --program-suffix=SUFFIX append SUFFIX to installed program names
188 --program-transform-name=PROGRAM
189 run sed PROGRAM on installed program names
191 cat << EOF
192 Host type:
193 --build=BUILD configure for building on BUILD [BUILD=HOST]
194 --host=HOST configure for HOST [guessed]
195 --target=TARGET configure for TARGET [TARGET=HOST]
196 Features and packages:
197 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
198 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
199 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
200 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
201 --x-includes=DIR X include files are in DIR
202 --x-libraries=DIR X library files are in DIR
204 if test -n "$ac_help"; then
205 echo "--enable and --with options recognized:$ac_help"
207 exit 0 ;;
209 -host | --host | --hos | --ho)
210 ac_prev=host ;;
211 -host=* | --host=* | --hos=* | --ho=*)
212 host="$ac_optarg" ;;
214 -includedir | --includedir | --includedi | --included | --include \
215 | --includ | --inclu | --incl | --inc)
216 ac_prev=includedir ;;
217 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
218 | --includ=* | --inclu=* | --incl=* | --inc=*)
219 includedir="$ac_optarg" ;;
221 -infodir | --infodir | --infodi | --infod | --info | --inf)
222 ac_prev=infodir ;;
223 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
224 infodir="$ac_optarg" ;;
226 -libdir | --libdir | --libdi | --libd)
227 ac_prev=libdir ;;
228 -libdir=* | --libdir=* | --libdi=* | --libd=*)
229 libdir="$ac_optarg" ;;
231 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
232 | --libexe | --libex | --libe)
233 ac_prev=libexecdir ;;
234 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
235 | --libexe=* | --libex=* | --libe=*)
236 libexecdir="$ac_optarg" ;;
238 -localstatedir | --localstatedir | --localstatedi | --localstated \
239 | --localstate | --localstat | --localsta | --localst \
240 | --locals | --local | --loca | --loc | --lo)
241 ac_prev=localstatedir ;;
242 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
243 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
244 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
245 localstatedir="$ac_optarg" ;;
247 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
248 ac_prev=mandir ;;
249 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
250 mandir="$ac_optarg" ;;
252 -nfp | --nfp | --nf)
253 # Obsolete; use --without-fp.
254 with_fp=no ;;
256 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
257 | --no-cr | --no-c)
258 no_create=yes ;;
260 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
261 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
262 no_recursion=yes ;;
264 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
265 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
266 | --oldin | --oldi | --old | --ol | --o)
267 ac_prev=oldincludedir ;;
268 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
269 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
270 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
271 oldincludedir="$ac_optarg" ;;
273 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
274 ac_prev=prefix ;;
275 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
276 prefix="$ac_optarg" ;;
278 -program-prefix | --program-prefix | --program-prefi | --program-pref \
279 | --program-pre | --program-pr | --program-p)
280 ac_prev=program_prefix ;;
281 -program-prefix=* | --program-prefix=* | --program-prefi=* \
282 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
283 program_prefix="$ac_optarg" ;;
285 -program-suffix | --program-suffix | --program-suffi | --program-suff \
286 | --program-suf | --program-su | --program-s)
287 ac_prev=program_suffix ;;
288 -program-suffix=* | --program-suffix=* | --program-suffi=* \
289 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
290 program_suffix="$ac_optarg" ;;
292 -program-transform-name | --program-transform-name \
293 | --program-transform-nam | --program-transform-na \
294 | --program-transform-n | --program-transform- \
295 | --program-transform | --program-transfor \
296 | --program-transfo | --program-transf \
297 | --program-trans | --program-tran \
298 | --progr-tra | --program-tr | --program-t)
299 ac_prev=program_transform_name ;;
300 -program-transform-name=* | --program-transform-name=* \
301 | --program-transform-nam=* | --program-transform-na=* \
302 | --program-transform-n=* | --program-transform-=* \
303 | --program-transform=* | --program-transfor=* \
304 | --program-transfo=* | --program-transf=* \
305 | --program-trans=* | --program-tran=* \
306 | --progr-tra=* | --program-tr=* | --program-t=*)
307 program_transform_name="$ac_optarg" ;;
309 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
310 | -silent | --silent | --silen | --sile | --sil)
311 silent=yes ;;
313 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
314 ac_prev=sbindir ;;
315 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
316 | --sbi=* | --sb=*)
317 sbindir="$ac_optarg" ;;
319 -sharedstatedir | --sharedstatedir | --sharedstatedi \
320 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
321 | --sharedst | --shareds | --shared | --share | --shar \
322 | --sha | --sh)
323 ac_prev=sharedstatedir ;;
324 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
325 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
326 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
327 | --sha=* | --sh=*)
328 sharedstatedir="$ac_optarg" ;;
330 -site | --site | --sit)
331 ac_prev=site ;;
332 -site=* | --site=* | --sit=*)
333 site="$ac_optarg" ;;
335 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
336 ac_prev=srcdir ;;
337 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
338 srcdir="$ac_optarg" ;;
340 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
341 | --syscon | --sysco | --sysc | --sys | --sy)
342 ac_prev=sysconfdir ;;
343 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
344 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
345 sysconfdir="$ac_optarg" ;;
347 -target | --target | --targe | --targ | --tar | --ta | --t)
348 ac_prev=target ;;
349 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
350 target="$ac_optarg" ;;
352 -v | -verbose | --verbose | --verbos | --verbo | --verb)
353 verbose=yes ;;
355 -version | --version | --versio | --versi | --vers)
356 echo "configure generated by autoconf version 2.9"
357 exit 0 ;;
359 -with-* | --with-*)
360 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
361 # Reject names that are not valid shell variable names.
362 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
363 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
365 ac_package=`echo $ac_package| sed 's/-/_/g'`
366 case "$ac_option" in
367 *=*) ;;
368 *) ac_optarg=yes ;;
369 esac
370 eval "with_${ac_package}='$ac_optarg'" ;;
372 -without-* | --without-*)
373 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
374 # Reject names that are not valid shell variable names.
375 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
376 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
378 ac_package=`echo $ac_package| sed 's/-/_/g'`
379 eval "with_${ac_package}=no" ;;
381 --x)
382 # Obsolete; use --with-x.
383 with_x=yes ;;
385 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
386 | --x-incl | --x-inc | --x-in | --x-i)
387 ac_prev=x_includes ;;
388 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
389 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
390 x_includes="$ac_optarg" ;;
392 -x-libraries | --x-libraries | --x-librarie | --x-librari \
393 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
394 ac_prev=x_libraries ;;
395 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
396 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
397 x_libraries="$ac_optarg" ;;
399 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
403 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
404 echo "configure: warning: $ac_option: invalid host type" 1>&2
406 if test "x$nonopt" != xNONE; then
407 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
409 nonopt="$ac_option"
412 esac
413 done
415 if test -n "$ac_prev"; then
416 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
419 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
421 # File descriptor usage:
422 # 0 standard input
423 # 1 file creation
424 # 2 errors and warnings
425 # 3 some systems may open it to /dev/tty
426 # 4 used on the Kubota Titan
427 # 4 checking for... messages and results
428 # 5 compiler messages saved in config.log
429 if test "$silent" = yes; then
430 exec 4>/dev/null
431 else
432 exec 4>&1
434 exec 5>./config.log
436 echo "\
437 This file contains any messages produced by compilers while
438 running configure, to aid debugging if configure makes a mistake.
439 " 1>&5
441 # Strip out --no-create and --no-recursion so they do not pile up.
442 # Also quote any args containing shell metacharacters.
443 ac_configure_args=
444 for ac_arg
446 case "$ac_arg" in
447 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
448 | --no-cr | --no-c) ;;
449 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
450 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
451 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
452 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
453 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
454 esac
455 done
457 # NLS nuisances.
458 # Only set LANG and LC_ALL to C if already set.
459 # These must not be set unconditionally because not all systems understand
460 # e.g. LANG=C (notably SCO).
461 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
462 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
464 # confdefs.h avoids OS command line length limits that DEFS can exceed.
465 rm -rf conftest* confdefs.h
466 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
467 echo > confdefs.h
469 # A filename unique to this package, relative to the directory that
470 # configure is in, which we can look for to find out if srcdir is correct.
471 ac_unique_file=features.h
473 # Find the source files, if location was not specified.
474 if test -z "$srcdir"; then
475 ac_srcdir_defaulted=yes
476 # Try the directory containing this script, then its parent.
477 ac_prog=$0
478 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
479 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
480 srcdir=$ac_confdir
481 if test ! -r $srcdir/$ac_unique_file; then
482 srcdir=..
484 else
485 ac_srcdir_defaulted=no
487 if test ! -r $srcdir/$ac_unique_file; then
488 if test "$ac_srcdir_defaulted" = yes; then
489 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
490 else
491 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
494 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
496 # Prefer explicitly selected file to automatically selected ones.
497 if test -z "$CONFIG_SITE"; then
498 if test "x$prefix" != xNONE; then
499 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
500 else
501 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
504 for ac_site_file in $CONFIG_SITE; do
505 if test -r "$ac_site_file"; then
506 echo "loading site script $ac_site_file"
507 . "$ac_site_file"
509 done
511 if test -r "$cache_file"; then
512 echo "loading cache $cache_file"
513 . $cache_file
514 else
515 echo "creating cache $cache_file"
516 > $cache_file
519 ac_ext=c
520 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
521 ac_cpp='$CPP $CPPFLAGS'
522 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
523 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
525 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
526 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
527 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
528 ac_n= ac_c='
529 ' ac_t=' '
530 else
531 ac_n=-n ac_c= ac_t=
533 else
534 ac_n= ac_c='\c' ac_t=
537 if test -r /vmunix; then
538 kernel_id=`strings /vmunix | grep UNIX`
539 elif test -r /dynix; then
540 kernel_id=`strings /dynix | grep DYNIX`
541 else
542 kernel_id=
548 # This will get text that should go into config.make.
549 config_vars=
551 # Check for a --with-gmp argument and set gmp-srcdir in config.make.
552 # Check whether --with-gmp or --without-gmp was given.
553 if test "${with_gmp+set}" = set; then
554 withval="$with_gmp"
555 case "$with_gmp" in
556 yes) { echo "configure: error: --with-gmp requires an argument; use --with-gmp=DIRECTORY" 1>&2; exit 1; } ;;
557 ''|no) ;;
558 *) config_vars="$config_vars
559 gmp-srcdir = $withval" ;;
560 esac
564 # Check for a --with-gettext argument and set gettext-srcdir in config.make.
565 # Check whether --with-gettext or --without-gettext was given.
566 if test "${with_gettext+set}" = set; then
567 withval="$with_gettext"
568 case "$with_gettext" in
569 yes)
570 { echo "configure: error: --with-gettext requires an argument; use --with-gettext=DIR" 1>&2; exit 1; } ;;
571 ''|no) ;;
573 config_vars="$config_vars
574 gettext-srcdir = $withval" ;;
575 esac
580 # Check whether --with-fp or --without-fp was given.
581 if test "${with_fp+set}" = set; then
582 withval="$with_fp"
583 with_fp=$withval
584 else
585 with_fp=yes
588 # Check whether --with-gnu-binutils or --without-gnu-binutils was given.
589 if test "${with_gnu_binutils+set}" = set; then
590 withval="$with_gnu_binutils"
591 gnu_binutils=$withval
592 else
593 gnu_binutils=no
596 # Check whether --with-gnu-ld or --without-gnu-ld was given.
597 if test "${with_gnu_ld+set}" = set; then
598 withval="$with_gnu_ld"
599 gnu_ld=$withval
600 else
601 gnu_ld=no
604 # Check whether --with-gnu-as or --without-gnu-as was given.
605 if test "${with_gnu_as+set}" = set; then
606 withval="$with_gnu_as"
607 gnu_as=$withval
608 else
609 gnu_as=no
612 test $gnu_binutils = yes && gnu_as=yes gnu_ld=yes
613 # Check whether --with-elf or --without-elf was given.
614 if test "${with_elf+set}" = set; then
615 withval="$with_elf"
616 elf=$withval
617 else
618 elf=no
622 # Check whether --enable-libio or --disable-libio was given.
623 if test "${enable_libio+set}" = set; then
624 enableval="$enable_libio"
625 if test $enableval = yes; then
626 stdio=libio
627 else
628 stdio=stdio
630 else
631 stdio=default
635 # Check whether --enable-shared or --disable-shared was given.
636 if test "${enable_shared+set}" = set; then
637 enableval="$enable_shared"
638 shared=$enableval
639 else
640 shared=default
643 # Check whether --enable-profile or --disable-profile was given.
644 if test "${enable_profile+set}" = set; then
645 enableval="$enable_profile"
646 profile=$enableval
647 else
648 profile=yes
651 # Check whether --enable-omitfp or --disable-omitfp was given.
652 if test "${enable_omitfp+set}" = set; then
653 enableval="$enable_omitfp"
654 omitfp=$enableval
655 else
656 omitfp=no
660 ac_aux_dir=
661 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
662 if test -f $ac_dir/install-sh; then
663 ac_aux_dir=$ac_dir
664 ac_install_sh="$ac_aux_dir/install-sh -c"
665 break
666 elif test -f $ac_dir/install.sh; then
667 ac_aux_dir=$ac_dir
668 ac_install_sh="$ac_aux_dir/install.sh -c"
669 break
671 done
672 if test -z "$ac_aux_dir"; then
673 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
675 ac_config_guess=$ac_aux_dir/config.guess
676 ac_config_sub=$ac_aux_dir/config.sub
677 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
680 # Make sure we can run config.sub.
681 if $ac_config_sub sun4 >/dev/null 2>&1; then :
682 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
685 echo $ac_n "checking host system type""... $ac_c" 1>&4
687 host_alias=$host
688 case "$host_alias" in
689 NONE)
690 case $nonopt in
691 NONE)
692 if host_alias=`$ac_config_guess`; then :
693 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
694 fi ;;
695 *) host_alias=$nonopt ;;
696 esac ;;
697 esac
699 host=`$ac_config_sub $host_alias`
700 host_cpu=`echo $host | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\1/'`
701 host_vendor=`echo $host | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\2/'`
702 host_os=`echo $host | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\3/'`
703 echo "$ac_t""$host" 1>&4
705 # We keep the original values in `$config_*' and never modify them, so we
706 # can write them unchanged into config.make. Everything else uses
707 # $machine, $vendor, and $os, and changes them whenever convenient.
708 config_machine=$host_cpu config_vendor=$host_vendor config_os=$host_os
710 # Some configurations imply other options.
711 case "$host_os" in
712 gnu* | linux* | bsd4.4* | netbsd* | freebsd*)
713 # These systems always use GNU tools.
714 gnu_ld=yes gnu_as=yes ;;
715 esac
716 case "$host_os" in
717 gnu* | linux* | sysv4* | solaris2*)
718 # These systems always use the ELF format.
719 elf=yes ;;
720 esac
722 # Linux/Alpha does not use ELF yet.
723 case "$host_cpu-$host_os" in
724 alpha*-linux*)
725 gnu_ld=no elf=no ;;
726 esac
728 # Compute the list of sysdep directories for this configuration.
729 sysdep_dir=$srcdir/sysdeps
730 echo $ac_n "checking sysdep dirs""... $ac_c" 1>&4
731 if eval "test \"`echo '$''{'libc_cv_sysdirs'+set}'`\" = set"; then
732 echo $ac_n "(cached) $ac_c" 1>&4
733 else
734 machine=$config_machine
735 vendor=$config_vendor
736 os=$config_os
738 # Expand the configuration machine name into a subdirectory by architecture
739 # type and particular chip.
740 case "$machine" in
741 a29k | am29000) machine=a29k ;;
742 alpha*) machine=alpha/$machine ;;
743 hppa*) machine=hppa/$machine ;;
744 i[345]86) machine=i386/$machine ;;
745 m680?0) machine=m68k/$machine ;;
746 m68k) machine=m68k/m68020 ;;
747 m88???) machine=m88k/$machine ;;
748 m88k) machine=m88k/m88100 ;;
749 mips*) machine=mips/$machine ;;
750 mips64*) machine=mips/mips64/$machine ;;
751 sparc[6789]) machine=sparc/$machine ;;
752 supersparc) machine=sparc/sparc8 ;;
753 esac
755 # Make sco3.2v4 become sco3.2.4 and sunos4.1.1_U1 become sunos4.1.1.U1.
756 os="`echo $os | sed 's/\([0-9A-Z]\)[v_]\([0-9A-Z]\)/\1.\2/g'`"
758 case "$os" in
759 gnu*)
760 base_os=mach/hurd ;;
761 netbsd* | 386bsd* | freebsd* | bsdi*)
762 base_os=unix/bsd/bsd4.4 ;;
763 osf* | sunos* | ultrix* | newsos* | dynix* | *bsd*)
764 base_os=unix/bsd ;;
765 sysv* | isc* | esix* | sco* | minix* | irix4* | linux*)
766 base_os=unix/sysv ;;
767 solaris[2-9]*)
768 base_os=unix/sysv/sysv4 ;;
769 none)
770 base_os=standalone ;;
772 base_os='' ;;
773 esac
775 # For sunos4.1.1, try sunos4.1.1, then sunos4.1, then sunos4, then sunos.
776 tail=$os
777 ostry=$os
778 while o=`echo $tail | sed 's/\.[^.]*$//'`; test $o != $tail; do
779 ostry="$ostry /$o"
780 tail=$o
781 done
782 o=`echo $tail | sed 's/[0-9]*$//'`
783 if test $o != $tail; then
784 ostry="$ostry /$o"
787 # For unix/sysv/sysv4, try unix/sysv/sysv4, then unix/sysv, then unix.
788 base=
789 tail=$base_os
790 while b=`echo $tail | sed 's@^\(.*\)/\([^/]*\)$@& \1@'`; test -n "$b"; do
791 set $b
792 base="$base /$1"
793 tail="$2"
794 done
796 # For sparc/sparc9, try sparc/sparc9 and then sparc.
797 mach=
798 tail=$machine
799 while m=`echo $tail | sed 's@^\(.*\)/\([^/]*\)$@& \1@'`; test -n "$m"; do
800 set $m
801 # Prepend the machine's FPU directory unless --without-fp.
802 if test "$with_fp" = yes; then
803 mach="$mach /$1/fpu"
805 mach="$mach /$1"
806 tail="$2"
807 done
810 # Find what sysdep directories exist.
811 sysnames=
812 for b in $base ''; do
813 for m0 in $mach ''; do
814 for v in /$vendor ''; do
815 for o in /$ostry ''; do
816 for m in $mach ''; do
817 try="$m0$b$v$o$m"
818 test -n "$enable_debug_configure" && echo "$0 DEBUG: try $try" >&2
819 if test -d $sysdep_dir$try; then
820 sysnames="$sysnames $try"
821 { test -n "$o" || test -n "$b"; } && os_used=t
822 { test -n "$m" || test -n "$m0"; } && machine_used=t
824 done
825 done
826 done
827 done
828 done
830 if test -z "$os_used" && test "$os" != none; then
831 { echo "configure: error: Operating system $os is not supported." 1>&2; exit 1; }
833 if test -z "$machine_used" && test "$machine" != none; then
834 { echo "configure: error: The $machine is not supported." 1>&2; exit 1; }
837 # We have now validated the configuration.
840 # If using ELF, look for an `elf' subdirectory of each machine directory.
841 # We prepend these rather than inserting them whereever the machine appears
842 # because things specified by the machine's ELF ABI should override
843 # OS-specific things, and should always be the same for any OS on the
844 # machine (otherwise what's the point of an ABI?).
845 if test "$elf" = yes; then
846 elf_dirs=
847 for m in $mach; do
848 if test -d $sysdep_dir$m/elf; then
849 elf_dirs="$elf_dirs $m/elf"
851 done
852 sysnames="`echo $elf_dirs | sed -e 's,^/,,' -e 's, /,,g'` $sysnames"
856 # Remove the leading slashes.
857 sysnames="`echo $sysnames | sed -e 's@^/@@' -e 's@ /@ @g'`"
860 # Expand the list of system names into a full list of directories
861 # from each element's parent name and Implies file (if present).
862 set $sysnames
863 while test $# -gt 0; do
864 name=$1
865 shift
867 if test -f $sysdep_dir/$name/Implies; then
868 # Collect more names from the `Implies' file (removing comments).
869 implied="`sed 's/#.*$//' < $sysdep_dir/$name/Implies`"
870 for x in $implied; do
871 test -d $sysdep_dir/$x || echo "Warning: $name implies nonexistent $x">&2
872 done
873 else
874 implied=
877 # Add NAME to the list of names.
878 names="$names $name"
880 # Find the parent of NAME, using the empty string if it has none.
881 parent="`echo $name | sed -n -e '/\//!q' -e 's=/[^/]*$==p'`"
883 # Add the names implied by NAME, and NAME's parent (if it has one), to
884 # the list of names to be processed (the argument list). We prepend the
885 # implied names to the list and append the parent. We want implied
886 # directories to come before further directories inferred from the
887 # configuration components; this ensures that for sysv4, unix/common
888 # (implied by unix/sysv/sysv4) comes before unix/sysv (in ostry (here $*)
889 # after sysv4).
890 sysnames="`echo $implied $* $parent`"
891 test -n "$sysnames" && set $sysnames
892 done
894 # Add the default directories.
895 names="$names generic stub"
897 # Now uniquize the list.
898 seen=
899 sysnames=
900 for name in $names; do
901 if echo "$seen" | fgrep -x $name >/dev/null; then
902 # Already in the list.
903 true;
904 else
905 # A new one.
906 if test -z "$seen"; then
907 seen="$name" sysnames="$name"
908 else
909 seen="$seen
910 $name"
911 sysnames="$sysnames $name"
914 done
915 libc_cv_sysdirs="$sysnames"
918 echo "$ac_t""$libc_cv_sysdirs" 1>&4
919 sysnames="$libc_cv_sysdirs"
921 # Find a good install program. We prefer a C program (faster),
922 # so one script is as good as another. But avoid the broken or
923 # incompatible versions:
924 # SysV /etc/install, /usr/sbin/install
925 # SunOS /usr/etc/install
926 # IRIX /sbin/install
927 # AIX /bin/install
928 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
929 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
930 # ./install, which can be erroneously created by make from ./install.sh.
931 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&4
932 if test -z "$INSTALL"; then
933 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
934 echo $ac_n "(cached) $ac_c" 1>&4
935 else
936 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
937 for ac_dir in $PATH; do
938 # Account for people who put trailing slashes in PATH elements.
939 case "$ac_dir/" in
940 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
942 # OSF1 and SCO ODT 3.0 have their own names for install.
943 for ac_prog in ginstall installbsd scoinst install; do
944 if test -f $ac_dir/$ac_prog; then
945 if test $ac_prog = install &&
946 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
947 # AIX install. It has an incompatible calling convention.
948 # OSF/1 installbsd also uses dspmsg, but is usable.
950 else
951 ac_cv_path_install="$ac_dir/$ac_prog -c"
952 break 2
955 done
957 esac
958 done
959 IFS="$ac_save_ifs"
962 if test "${ac_cv_path_install+set}" = set; then
963 INSTALL="$ac_cv_path_install"
964 else
965 # As a last resort, use the slow shell script. We don't cache a
966 # path for INSTALL within a source directory, because that will
967 # break other packages using the cache if that directory is
968 # removed, or if the path is relative.
969 INSTALL="$ac_install_sh"
972 echo "$ac_t""$INSTALL" 1>&4
974 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
975 # It thinks the first close brace ends the variable substitution.
976 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
978 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
980 if test "$INSTALL" = "${srcdir}/install-sh"; then
981 # The makefiles need to use a different form to find it in $srcdir.
982 INSTALL='$(..)./install-sh'
985 echo $ac_n "checking build system type""... $ac_c" 1>&4
987 build_alias=$build
988 case "$build_alias" in
989 NONE)
990 case $nonopt in
991 NONE) build_alias=$host_alias ;;
992 *) build_alias=$nonopt ;;
993 esac ;;
994 esac
996 build=`$ac_config_sub $build_alias`
997 build_cpu=`echo $build | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\1/'`
998 build_vendor=`echo $build | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\2/'`
999 build_os=`echo $build | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\3/'`
1000 echo "$ac_t""$build" 1>&4
1002 if test $host != $build; then
1003 ac_tool_prefix=${host_alias}-
1004 else
1005 ac_tool_prefix=
1008 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1009 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1010 echo $ac_n "checking for $ac_word""... $ac_c" 1>&4
1011 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1012 echo $ac_n "(cached) $ac_c" 1>&4
1013 else
1014 if test -n "$CC"; then
1015 ac_cv_prog_CC="$CC" # Let the user override the test.
1016 else
1017 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1018 for ac_dir in $PATH; do
1019 test -z "$ac_dir" && ac_dir=.
1020 if test -f $ac_dir/$ac_word; then
1021 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1022 break
1024 done
1025 IFS="$ac_save_ifs"
1026 test -z "$ac_cv_prog_CC" && ac_cv_prog_CC="gcc"
1029 CC="$ac_cv_prog_CC"
1030 if test -n "$CC"; then
1031 echo "$ac_t""$CC" 1>&4
1032 else
1033 echo "$ac_t""no" 1>&4
1038 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
1039 set dummy ${ac_tool_prefix}ar; ac_word=$2
1040 echo $ac_n "checking for $ac_word""... $ac_c" 1>&4
1041 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1042 echo $ac_n "(cached) $ac_c" 1>&4
1043 else
1044 if test -n "$AR"; then
1045 ac_cv_prog_AR="$AR" # Let the user override the test.
1046 else
1047 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1048 for ac_dir in $PATH; do
1049 test -z "$ac_dir" && ac_dir=.
1050 if test -f $ac_dir/$ac_word; then
1051 ac_cv_prog_AR="${ac_tool_prefix}ar"
1052 break
1054 done
1055 IFS="$ac_save_ifs"
1056 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
1059 AR="$ac_cv_prog_AR"
1060 if test -n "$AR"; then
1061 echo "$ac_t""$AR" 1>&4
1062 else
1063 echo "$ac_t""no" 1>&4
1068 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1069 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1070 echo $ac_n "checking for $ac_word""... $ac_c" 1>&4
1071 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1072 echo $ac_n "(cached) $ac_c" 1>&4
1073 else
1074 if test -n "$RANLIB"; then
1075 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1076 else
1077 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1078 for ac_dir in $PATH; do
1079 test -z "$ac_dir" && ac_dir=.
1080 if test -f $ac_dir/$ac_word; then
1081 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1082 break
1084 done
1085 IFS="$ac_save_ifs"
1088 RANLIB="$ac_cv_prog_RANLIB"
1089 if test -n "$RANLIB"; then
1090 echo "$ac_t""$RANLIB" 1>&4
1091 else
1092 echo "$ac_t""no" 1>&4
1096 if test -z "$ac_cv_prog_RANLIB"; then
1097 if test -n "$ac_tool_prefix"; then
1098 # Extract the first word of "ranlib", so it can be a program name with args.
1099 set dummy ranlib; ac_word=$2
1100 echo $ac_n "checking for $ac_word""... $ac_c" 1>&4
1101 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1102 echo $ac_n "(cached) $ac_c" 1>&4
1103 else
1104 if test -n "$RANLIB"; then
1105 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1106 else
1107 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1108 for ac_dir in $PATH; do
1109 test -z "$ac_dir" && ac_dir=.
1110 if test -f $ac_dir/$ac_word; then
1111 ac_cv_prog_RANLIB="ranlib"
1112 break
1114 done
1115 IFS="$ac_save_ifs"
1116 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1119 RANLIB="$ac_cv_prog_RANLIB"
1120 if test -n "$RANLIB"; then
1121 echo "$ac_t""$RANLIB" 1>&4
1122 else
1123 echo "$ac_t""no" 1>&4
1126 else
1127 RANLIB=":"
1131 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&4
1132 # On Suns, sometimes $CPP names a directory.
1133 if test -n "$CPP" && test -d "$CPP"; then
1134 CPP=
1136 if test -z "$CPP"; then
1137 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1138 echo $ac_n "(cached) $ac_c" 1>&4
1139 else
1140 # This must be in double quotes, not single quotes, because CPP may get
1141 # substituted into the Makefile and "${CC-cc}" will confuse make.
1142 CPP="${CC-cc} -E"
1143 # On the NeXT, cc -E runs the code through the compiler's parser,
1144 # not just through cpp.
1145 cat > conftest.$ac_ext <<EOF
1146 #line 1147 "configure"
1147 #include "confdefs.h"
1148 #include <assert.h>
1149 Syntax Error
1151 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1152 { (eval echo configure:1153: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1153 ac_err=`grep -v '^ *+' conftest.out`
1154 if test -z "$ac_err"; then
1156 else
1157 echo "$ac_err" >&5
1158 rm -rf conftest*
1159 CPP="${CC-cc} -E -traditional-cpp"
1160 cat > conftest.$ac_ext <<EOF
1161 #line 1162 "configure"
1162 #include "confdefs.h"
1163 #include <assert.h>
1164 Syntax Error
1166 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1167 { (eval echo configure:1168: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1168 ac_err=`grep -v '^ *+' conftest.out`
1169 if test -z "$ac_err"; then
1171 else
1172 echo "$ac_err" >&5
1173 rm -rf conftest*
1174 CPP=/lib/cpp
1176 rm -f conftest*
1178 rm -f conftest*
1179 ac_cv_prog_CPP="$CPP"
1181 CPP="$ac_cv_prog_CPP"
1182 else
1183 ac_cv_prog_CPP="$CPP"
1185 echo "$ac_t""$CPP" 1>&4
1188 echo $ac_n "checking for signed size_t type""... $ac_c" 1>&4
1189 if eval "test \"`echo '$''{'libc_cv_signed_size_t'+set}'`\" = set"; then
1190 echo $ac_n "(cached) $ac_c" 1>&4
1191 else
1192 echo '#include <stddef.h>
1193 FOOBAR __SIZE_TYPE__ FOOBAR' > conftest.c
1194 if eval "$ac_cpp conftest.c 2>/dev/null" \
1195 | grep '^FOOBAR.*unsigned.*FOOBAR$' >/dev/null; then
1196 libc_cv_signed_size_t=no
1197 else
1198 libc_cv_signed_size_t=yes
1200 rm -f conftest*
1203 echo "$ac_t""$libc_cv_signed_size_t" 1>&4
1204 if test $libc_cv_signed_size_t = yes; then
1205 cat >> confdefs.h <<\EOF
1206 #undef __SIZE_TYPE__
1207 #define __SIZE_TYPE__ unsigned
1211 echo $ac_n "checking for libc-friendly stddef.h""... $ac_c" 1>&4
1212 if eval "test \"`echo '$''{'libc_cv_friendly_stddef'+set}'`\" = set"; then
1213 echo $ac_n "(cached) $ac_c" 1>&4
1214 else
1215 cat > conftest.$ac_ext <<EOF
1216 #line 1217 "configure"
1217 #include "confdefs.h"
1218 #define __need_size_t
1219 #define __need_wchar_t
1220 #include <stddef.h>
1221 #define __need_NULL
1222 #include <stddef.h>
1223 int main() { return 0; }
1224 int t() {
1225 size_t size; wchar_t wchar;
1226 #ifdef offsetof
1227 #error stddef.h ignored __need_*
1228 #endif
1229 if (&size == NULL || &wchar == NULL) abort ();
1230 ; return 0; }
1232 if { (eval echo configure:1233: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1233 rm -rf conftest*
1234 libc_cv_friendly_stddef=yes
1235 else
1236 rm -rf conftest*
1237 libc_cv_friendly_stddef=no
1239 rm -f conftest*
1243 echo "$ac_t""$libc_cv_friendly_stddef" 1>&4
1244 if test $libc_cv_friendly_stddef = yes; then
1245 config_vars="$config_vars
1246 override stddef.h = # The installed <stddef.h> seems to be libc-friendly."
1249 echo $ac_n "checking whether we need to use -P to assemble .S files""... $ac_c" 1>&4
1250 if eval "test \"`echo '$''{'libc_cv_need_minus_P'+set}'`\" = set"; then
1251 echo $ac_n "(cached) $ac_c" 1>&4
1252 else
1253 cat > conftest.S <<EOF
1254 #include "confdefs.h"
1255 /* Nothing whatsoever. */
1257 if ${CC-cc} $CFLAGS -c conftest.S 2>/dev/null; then
1258 libc_cv_need_minus_P=no
1259 else
1260 libc_cv_need_minus_P=yes
1262 rm -f conftest*
1265 echo "$ac_t""$libc_cv_need_minus_P" 1>&4
1266 if test $libc_cv_need_minus_P = yes; then
1267 config_vars="$config_vars
1268 asm-CPPFLAGS = -P # The assembler can't grok cpp's # line directives."
1271 echo $ac_n "checking for assembler global-symbol directive""... $ac_c" 1>&4
1272 if eval "test \"`echo '$''{'libc_cv_asm_global_directive'+set}'`\" = set"; then
1273 echo $ac_n "(cached) $ac_c" 1>&4
1274 else
1275 libc_cv_asm_global_directive=UNKNOWN
1276 for ac_globl in .globl .global; do
1277 cat > conftest.s <<EOF
1278 .text
1279 ${ac_globl} foo
1280 foo: .long 0
1282 if ${CC-cc} $CFLAGS -c conftest.s 2>/dev/null; then
1283 libc_cv_asm_global_directive=${ac_globl}
1285 rm -f conftest*
1286 test $libc_cv_asm_global_directive != UNKNOWN && break
1287 done
1290 echo "$ac_t""$libc_cv_asm_global_directive" 1>&4
1291 if test $libc_cv_asm_global_directive = UNKNOWN; then
1292 { echo "configure: error: cannot determine asm global directive" 1>&2; exit 1; }
1293 else
1294 cat >> confdefs.h <<EOF
1295 #define ASM_GLOBAL_DIRECTIVE ${libc_cv_asm_global_directive}
1300 echo $ac_n "checking for .set assembler directive""... $ac_c" 1>&4
1301 if eval "test \"`echo '$''{'libc_cv_asm_set_directive'+set}'`\" = set"; then
1302 echo $ac_n "(cached) $ac_c" 1>&4
1303 else
1304 cat > conftest.s <<EOF
1305 .text
1306 foo: .long 0
1307 .set glibc_conftest_frobozz,foo
1308 $libc_cv_asm_global_directive glibc_conftest_frobozz
1310 # The alpha-dec-osf1 assembler gives only a warning for `.set'
1311 # (but it doesn't work), so we must do a linking check to be sure.
1312 cat > conftest1.c <<\EOF
1313 extern int glibc_conftest_frobozz;
1314 main () { printf ("%d\n", glibc_conftest_frobozz); }
1316 if ${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \
1317 -o conftest conftest.s conftest1.c 1>&5 2>&5; then
1318 libc_cv_asm_set_directive=yes
1319 else
1320 libc_cv_asm_set_directive=no
1322 rm -f conftest*
1325 echo "$ac_t""$libc_cv_asm_set_directive" 1>&4
1326 if test $libc_cv_asm_set_directive = yes; then
1327 cat >> confdefs.h <<\EOF
1328 #define HAVE_ASM_SET_DIRECTIVE 1
1333 if test $elf != yes; then
1334 echo $ac_n "checking for .init and .fini sections""... $ac_c" 1>&4
1335 if eval "test \"`echo '$''{'libc_cv_have_initfini'+set}'`\" = set"; then
1336 echo $ac_n "(cached) $ac_c" 1>&4
1337 else
1338 cat > conftest.$ac_ext <<EOF
1339 #line 1340 "configure"
1340 #include "confdefs.h"
1342 int main() { return 0; }
1343 int t() {
1344 asm (".section .init");
1345 asm (".section .fini");
1346 ; return 0; }
1348 if { (eval echo configure:1349: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1349 rm -rf conftest*
1350 libc_cv_have_initfini=yes
1351 else
1352 rm -rf conftest*
1353 libc_cv_have_initfini=no
1355 rm -f conftest*
1359 echo "$ac_t""$libc_cv_have_initfini" 1>&4
1360 if test $libc_cv_have_initfini = yes; then
1361 cat >> confdefs.h <<\EOF
1362 #define HAVE_INITFINI 1
1368 if test $elf = yes; then
1369 libc_cv_asm_underscores=no
1370 else
1371 echo $ac_n "checking for _ prefix on C symbol names""... $ac_c" 1>&4
1372 if eval "test \"`echo '$''{'libc_cv_asm_underscores'+set}'`\" = set"; then
1373 echo $ac_n "(cached) $ac_c" 1>&4
1374 else
1375 cat > conftest.$ac_ext <<EOF
1376 #line 1377 "configure"
1377 #include "confdefs.h"
1378 asm ("_glibc_foobar:");
1379 int main() { return 0; }
1380 int t() {
1381 glibc_foobar ();
1382 ; return 0; }
1384 if { (eval echo configure:1385: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1385 rm -rf conftest*
1386 libc_cv_asm_underscores=yes
1387 else
1388 rm -rf conftest*
1389 libc_cv_asm_underscores=no
1391 rm -f conftest*
1395 echo "$ac_t""$libc_cv_asm_underscores" 1>&4
1397 if test $libc_cv_asm_underscores = no; then
1398 cat >> confdefs.h <<\EOF
1399 #define NO_UNDERSCORES 1
1404 if test $elf = yes; then
1405 libc_cv_weak_symbols=yes
1406 libc_cv_asm_weak_directive=yes
1407 libc_cv_asm_weakext_directive=no
1408 else
1409 echo $ac_n "checking for assembler .weak directive""... $ac_c" 1>&4
1410 if eval "test \"`echo '$''{'libc_cv_asm_weak_directive'+set}'`\" = set"; then
1411 echo $ac_n "(cached) $ac_c" 1>&4
1412 else
1413 cat > conftest.s <<EOF
1414 .text
1415 ${libc_cv_asm_global_directive} foo
1416 foo: .long 0
1417 .weak foo
1418 .weak bar; bar = foo
1420 if ${CC-cc} $CFLAGS -c conftest.s 2>/dev/null; then
1421 libc_cv_asm_weak_directive=yes
1422 else
1423 libc_cv_asm_weak_directive=no
1425 rm -f conftest*
1428 echo "$ac_t""$libc_cv_asm_weak_directive" 1>&4
1430 if test $libc_cv_asm_weak_directive = no; then
1431 echo $ac_n "checking for assembler .weakext directive""... $ac_c" 1>&4
1432 if eval "test \"`echo '$''{'libc_cv_asm_weakext_directive'+set}'`\" = set"; then
1433 echo $ac_n "(cached) $ac_c" 1>&4
1434 else
1435 cat > conftest.s <<EOF
1436 .text
1437 ${libc_cv_asm_global_directive} foo
1438 foo: .long 0
1439 .weakext foo
1440 .weakext bar, foo
1442 if ${CC-cc} $CFLAGS -c conftest.s 2>/dev/null; then
1443 libc_cv_asm_weakext_directive=yes
1444 else
1445 libc_cv_asm_weakext_directive=no
1447 rm -f conftest*
1450 echo "$ac_t""$libc_cv_asm_weakext_directive" 1>&4
1452 fi # no .weak
1453 fi # not ELF
1455 if test $libc_cv_asm_weak_directive = yes; then
1456 cat >> confdefs.h <<\EOF
1457 #define HAVE_ASM_WEAK_DIRECTIVE 1
1460 elif test $libc_cv_asm_weakext_directive = yes; then
1461 cat >> confdefs.h <<\EOF
1462 #define HAVE_ASM_WEAKEXT_DIRECTIVE 1
1467 ### End of automated tests.
1468 ### Now run sysdeps configure fragments.
1470 # sysdeps configure fragments may set these with files to be linked below.
1471 libc_link_dests=
1472 libc_link_sources=
1474 # Iterate over all the sysdep directories we will use, running their
1475 # configure fragments, and looking for a uname implementation.
1476 uname=
1477 for dir in $sysnames; do
1478 if test -r $sysdep_dir/$dir/configure; then
1479 echo "$ac_t""running configure fragment for $dir" 1>&4
1480 . $sysdep_dir/$dir/configure
1483 if test -z "$uname"; then
1484 if test -r $sysdep_dir/$dir/uname.c ||
1485 test -r $sysdep_dir/$dir/uname.S ||
1486 { test -r $sysdep_dir/$dir/syscalls.list &&
1487 grep '^uname[ ]' $sysdep_dir/$dir/syscalls.list >/dev/null; }; then
1488 uname=$dir
1491 done
1495 # If we will use the generic uname implementation, we must figure out what
1496 # it will say by examining the system, and write the results in config-name.h.
1497 if test "$uname" = generic; then
1499 uname_sysname=`echo $config_os | sed 's/[0-9.]*$//'`
1500 if test $uname_sysname != $config_os; then
1501 config_release=`echo $config_os | sed s/$uname_sysname//`
1504 echo $ac_n "checking OS release for uname""... $ac_c" 1>&4
1505 if eval "test \"`echo '$''{'libc_cv_uname_release'+set}'`\" = set"; then
1506 echo $ac_n "(cached) $ac_c" 1>&4
1507 else
1508 kernel_release=`echo "$kernel_id" | sed 's/^[^0-9.]*\([0-9.]*\).*$/\1/'`
1509 if test x`echo "$config_release" | sed "s/^$kernel_release//"` \
1510 != x$config_release; then
1511 # The configuration release is a substring of the kernel release.
1512 libc_cv_uname_release=$kernel_release
1513 elif test x$config_release != x; then
1514 libc_cv_uname_release=$config_release
1515 elif test x$kernel_release != x; then
1516 libc_cv_uname_release=$kernel_release
1517 else
1518 libc_cv_uname_release=unknown
1522 echo "$ac_t""$libc_cv_uname_release" 1>&4
1523 uname_release="$libc_cv_uname_release"
1525 echo $ac_n "checking OS version for uname""... $ac_c" 1>&4
1526 if eval "test \"`echo '$''{'libc_cv_uname_version'+set}'`\" = set"; then
1527 echo $ac_n "(cached) $ac_c" 1>&4
1528 else
1529 kernel_version=`echo "$kernel_id" | sed 's/^[^#]*#\([0-9]*\).*$/\1/'`
1530 if test -n "$kernel_version"; then
1531 libc_cv_uname_version="$kernel_version"
1532 else
1533 libc_cv_uname_version=unknown
1537 echo "$ac_t""$libc_cv_uname_version" 1>&4
1538 uname_version="$libc_cv_uname_version"
1540 config_uname=config-name.h:config-name.in
1541 else
1542 # For non-generic uname, we don't need to create config-name.h at all.
1543 config_uname=
1546 echo $ac_n "checking stdio selection""... $ac_c" 1>&4
1548 case $stdio in
1549 libio) cat >> confdefs.h <<\EOF
1550 #define USE_IN_LIBIO 1
1553 default) stdio=stdio ;;
1554 esac
1555 echo "$ac_t""$stdio" 1>&4
1558 if test $gnu_ld = yes; then
1559 cat >> confdefs.h <<\EOF
1560 #define HAVE_GNU_LD 1
1564 if test $gnu_as = yes; then
1565 cat >> confdefs.h <<\EOF
1566 #define HAVE_GNU_AS 1
1570 if test $elf = yes; then
1571 cat >> confdefs.h <<\EOF
1572 #define HAVE_ELF 1
1578 if test $shared = default; then
1579 if test $gnu_ld = yes; then
1580 shared=$elf
1586 if test "`(cd $srcdir; pwd)`" = "`pwd`"; then
1587 config_makefile=
1588 else
1589 config_makefile=Makefile
1592 trap '' 1 2 15
1593 cat > confcache <<\EOF
1594 # This file is a shell script that caches the results of configure
1595 # tests run on this system so they can be shared between configure
1596 # scripts and configure runs. It is not useful on other systems.
1597 # If it contains results you don't want to keep, you may remove or edit it.
1599 # By default, configure uses ./config.cache as the cache file,
1600 # creating it if it does not exist already. You can give configure
1601 # the --cache-file=FILE option to use a different cache file; that is
1602 # what configure does when it calls configure scripts in
1603 # subdirectories, so they share the cache.
1604 # Giving --cache-file=/dev/null disables caching, for debugging configure.
1605 # config.status only pays attention to the cache file if you give it the
1606 # --recheck option to rerun configure.
1609 # Ultrix sh set writes to stderr and can't be redirected directly,
1610 # and sets the high bit in the cache file unless we assign to the vars.
1611 (set) 2>&1 |
1612 sed -n "s/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=\${\1='\2'}/p" \
1613 >> confcache
1614 if cmp -s $cache_file confcache; then
1616 else
1617 if test -w $cache_file; then
1618 echo "updating cache $cache_file"
1619 cat confcache > $cache_file
1620 else
1621 echo "not updating unwritable cache $cache_file"
1624 rm -f confcache
1626 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
1628 test "x$prefix" = xNONE && prefix=$ac_default_prefix
1629 # Let make expand exec_prefix.
1630 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
1632 # Any assignment to VPATH causes Sun make to only execute
1633 # the first set of double-colon rules, so remove it if not needed.
1634 # If there is a colon in the path, we need to keep it.
1635 if test "x$srcdir" = x.; then
1636 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
1639 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
1641 DEFS=-DHAVE_CONFIG_H
1643 # Without the "./", some shells look in PATH for config.status.
1644 : ${CONFIG_STATUS=./config.status}
1646 echo creating $CONFIG_STATUS
1647 rm -f $CONFIG_STATUS
1648 cat > $CONFIG_STATUS <<EOF
1649 #! /bin/sh
1650 # Generated automatically by configure.
1651 # Run this file to recreate the current configuration.
1652 # This directory was configured as follows,
1653 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
1655 # $0 $ac_configure_args
1657 # Compiler output produced by configure, useful for debugging
1658 # configure, is in ./config.log if it exists.
1660 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
1661 for ac_option
1663 case "\$ac_option" in
1664 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1665 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
1666 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
1667 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
1668 echo "$CONFIG_STATUS generated by autoconf version 2.9"
1669 exit 0 ;;
1670 -help | --help | --hel | --he | --h)
1671 echo "\$ac_cs_usage"; exit 0 ;;
1672 *) echo "\$ac_cs_usage"; exit 1 ;;
1673 esac
1674 done
1676 ac_given_srcdir=$srcdir
1677 ac_given_INSTALL="$INSTALL"
1679 trap 'rm -fr `echo "config.make ${config_makefile} ${config_uname} config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
1681 cat >> $CONFIG_STATUS <<EOF
1683 # Protect against being on the right side of a sed subst in config.status.
1684 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
1685 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
1686 $ac_vpsub
1687 $extrasub
1688 s%@CFLAGS@%$CFLAGS%g
1689 s%@CPPFLAGS@%$CPPFLAGS%g
1690 s%@CXXFLAGS@%$CXXFLAGS%g
1691 s%@DEFS@%$DEFS%g
1692 s%@LDFLAGS@%$LDFLAGS%g
1693 s%@LIBS@%$LIBS%g
1694 s%@exec_prefix@%$exec_prefix%g
1695 s%@prefix@%$prefix%g
1696 s%@program_transform_name@%$program_transform_name%g
1697 s%@bindir@%$bindir%g
1698 s%@sbindir@%$sbindir%g
1699 s%@libexecdir@%$libexecdir%g
1700 s%@datadir@%$datadir%g
1701 s%@sysconfdir@%$sysconfdir%g
1702 s%@sharedstatedir@%$sharedstatedir%g
1703 s%@localstatedir@%$localstatedir%g
1704 s%@libdir@%$libdir%g
1705 s%@includedir@%$includedir%g
1706 s%@oldincludedir@%$oldincludedir%g
1707 s%@infodir@%$infodir%g
1708 s%@mandir@%$mandir%g
1709 s%@host@%$host%g
1710 s%@host_alias@%$host_alias%g
1711 s%@host_cpu@%$host_cpu%g
1712 s%@host_vendor@%$host_vendor%g
1713 s%@host_os@%$host_os%g
1714 s%@sysnames@%$sysnames%g
1715 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
1716 s%@INSTALL_DATA@%$INSTALL_DATA%g
1717 s%@build@%$build%g
1718 s%@build_alias@%$build_alias%g
1719 s%@build_cpu@%$build_cpu%g
1720 s%@build_vendor@%$build_vendor%g
1721 s%@build_os@%$build_os%g
1722 s%@CC@%$CC%g
1723 s%@AR@%$AR%g
1724 s%@RANLIB@%$RANLIB%g
1725 s%@CPP@%$CPP%g
1726 s%@libc_cv_have_initfini@%$libc_cv_have_initfini%g
1727 s%@uname_sysname@%$uname_sysname%g
1728 s%@uname_release@%$uname_release%g
1729 s%@uname_version@%$uname_version%g
1730 s%@stdio@%$stdio%g
1731 s%@gnu_ld@%$gnu_ld%g
1732 s%@gnu_as@%$gnu_as%g
1733 s%@elf@%$elf%g
1734 s%@shared@%$shared%g
1735 s%@profile@%$profile%g
1736 s%@omitfp@%$omitfp%g
1738 CEOF
1740 cat >> $CONFIG_STATUS <<EOF
1742 CONFIG_FILES=\${CONFIG_FILES-"config.make ${config_makefile} ${config_uname}"}
1744 cat >> $CONFIG_STATUS <<\EOF
1745 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
1746 # Support "outfile[:infile]", defaulting infile="outfile.in".
1747 case "$ac_file" in
1748 *:*) ac_file_in=`echo "$ac_file"|sed 's%.*:%%'`
1749 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
1750 *) ac_file_in="${ac_file}.in" ;;
1751 esac
1753 # Adjust relative srcdir, etc. for subdirectories.
1755 # Remove last slash and all that follows it. Not all systems have dirname.
1756 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
1757 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
1758 # The file is in a subdirectory.
1759 test ! -d "$ac_dir" && mkdir "$ac_dir"
1760 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
1761 # A "../" for each directory in $ac_dir_suffix.
1762 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
1763 else
1764 ac_dir_suffix= ac_dots=
1767 case "$ac_given_srcdir" in
1768 .) srcdir=.
1769 if test -z "$ac_dots"; then top_srcdir=.
1770 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
1771 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
1772 *) # Relative path.
1773 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
1774 top_srcdir="$ac_dots$ac_given_srcdir" ;;
1775 esac
1777 case "$ac_given_INSTALL" in
1778 [/$]*) INSTALL="$ac_given_INSTALL" ;;
1779 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
1780 esac
1781 echo creating "$ac_file"
1782 rm -f "$ac_file"
1783 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
1784 case "$ac_file" in
1785 *Makefile*) ac_comsub="1i\\
1786 # $configure_input" ;;
1787 *) ac_comsub= ;;
1788 esac
1789 sed -e "$ac_comsub
1790 s%@configure_input@%$configure_input%g
1791 s%@srcdir@%$srcdir%g
1792 s%@top_srcdir@%$top_srcdir%g
1793 s%@INSTALL@%$INSTALL%g
1794 " -f conftest.subs $ac_given_srcdir/$ac_file_in > $ac_file
1795 fi; done
1796 rm -f conftest.subs
1798 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
1799 # NAME is the cpp macro being defined and VALUE is the value it is being given.
1801 # ac_d sets the value in "#define NAME VALUE" lines.
1802 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
1803 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
1804 ac_dC='\3'
1805 ac_dD='%g'
1806 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
1807 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
1808 ac_uB='\([ ]\)%\1#\2define\3'
1809 ac_uC=' '
1810 ac_uD='\4%g'
1811 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
1812 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
1813 ac_eB='$%\1#\2define\3'
1814 ac_eC=' '
1815 ac_eD='%g'
1817 CONFIG_HEADERS=${CONFIG_HEADERS-"config.h"}
1818 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
1819 # Support "outfile[:infile]", defaulting infile="outfile.in".
1820 case "$ac_file" in
1821 *:*) ac_file_in=`echo "$ac_file"|sed 's%.*:%%'`
1822 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
1823 *) ac_file_in="${ac_file}.in" ;;
1824 esac
1826 echo creating $ac_file
1828 rm -f conftest.frag conftest.in conftest.out
1829 cp $ac_given_srcdir/$ac_file_in conftest.in
1833 # Transform confdefs.h into a sed script conftest.vals that substitutes
1834 # the proper values into config.h.in to produce config.h. And first:
1835 # Protect against being on the right side of a sed subst in config.status.
1836 # Protect against being in an unquoted here document in config.status.
1837 rm -f conftest.vals
1838 cat > conftest.hdr <<\EOF
1839 s/[\\&%]/\\&/g
1840 s%[\\$`]%\\&%g
1841 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
1842 s%ac_d%ac_u%gp
1843 s%ac_u%ac_e%gp
1845 sed -n -f conftest.hdr confdefs.h > conftest.vals
1846 rm -f conftest.hdr
1848 # This sed command replaces #undef with comments. This is necessary, for
1849 # example, in the case of _POSIX_SOURCE, which is predefined and required
1850 # on some systems where configure will not decide to define it.
1851 cat >> conftest.vals <<\EOF
1852 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
1855 # Break up conftest.vals because some shells have a limit on
1856 # the size of here documents, and old seds have small limits too.
1857 # Maximum number of lines to put in a single here document.
1858 ac_max_here_lines=12
1860 rm -f conftest.tail
1861 while :
1863 ac_lines=`grep -c . conftest.vals`
1864 # grep -c gives empty output for an empty file on some AIX systems.
1865 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
1866 # Write a limited-size here document to conftest.frag.
1867 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
1868 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
1869 echo 'CEOF
1870 sed -f conftest.frag conftest.in > conftest.out
1871 rm -f conftest.in
1872 mv conftest.out conftest.in
1873 ' >> $CONFIG_STATUS
1874 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
1875 rm -f conftest.vals
1876 mv conftest.tail conftest.vals
1877 done
1878 rm -f conftest.vals
1880 cat >> $CONFIG_STATUS <<\EOF
1881 rm -f conftest.frag conftest.h
1882 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
1883 cat conftest.in >> conftest.h
1884 rm -f conftest.in
1885 if cmp -s $ac_file conftest.h 2>/dev/null; then
1886 echo "$ac_file is unchanged"
1887 rm -f conftest.h
1888 else
1889 rm -f $ac_file
1890 mv conftest.h $ac_file
1892 fi; done
1896 cat >> $CONFIG_STATUS <<EOF
1897 ac_sources="`echo $libc_link_sources`"
1898 ac_dests="`echo $libc_link_dests`"
1901 cat >> $CONFIG_STATUS <<\EOF
1902 srcdir=$ac_given_srcdir
1903 while test -n "$ac_sources"; do
1904 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
1905 set $ac_sources; ac_source=$1; shift; ac_sources=$*
1907 echo "linking $srcdir/$ac_source to $ac_dest"
1909 if test ! -r $srcdir/$ac_source; then
1910 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
1912 rm -f $ac_dest
1914 # Make relative symlinks.
1915 # Remove last slash and all that follows it. Not all systems have dirname.
1916 ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'`
1917 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
1918 # The dest file is in a subdirectory.
1919 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
1920 ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`"
1921 # A "../" for each directory in $ac_dest_dir_suffix.
1922 ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'`
1923 else
1924 ac_dest_dir_suffix= ac_dots=
1927 case "$srcdir" in
1928 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
1929 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
1930 esac
1932 # Make a symlink if possible; otherwise try a hard link.
1933 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
1934 ln $srcdir/$ac_source $ac_dest; then :
1935 else
1936 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
1938 done
1940 cat >> $CONFIG_STATUS <<EOF
1941 echo '$config_vars' >> config.make
1943 cat >> $CONFIG_STATUS <<\EOF
1945 exit 0
1947 chmod +x $CONFIG_STATUS
1948 rm -fr confdefs* $ac_clean_files
1949 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1