3 # From configure.in CVSid
4 # Guess values for system-dependent variables and create Makefiles.
5 # Generated automatically using autoconf version 2.12
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.
13 ac_default_prefix
=/usr
/local
14 # Any additions from configure.in:
16 --with-gmp=DIRECTORY find GMP source code in DIRECTORY (not needed)"
18 --with-gettext=DIR find GNU gettext source code in DIR (not needed)"
20 --with-fp if using floating-point hardware [default=yes]"
22 --with-gnu-binutils if using GNU binutils (as and ld)"
24 --with-gnu-ld if using GNU ld (in the binutils package)"
26 --with-gnu-as if using GNU as (in the binutils package)"
28 --with-elf if using the ELF object format"
30 --enable-libio build in GNU libio instead of GNU stdio"
32 --disable-sanity-checks really do not use threads (should not be used
33 except in special situations) [default=yes]"
35 --enable-shared build shared library [default=yes if GNU ld & ELF]"
37 --enable-profile build profiled library [default=yes]"
39 --enable-omitfp build undebuggable optimized library [default=no]"
41 --enable-add-ons=DIR... configure and build named extra directories"
43 # Initialize some variables set by options.
44 # The variables have the same names as the options, with
45 # dashes changed to underlines.
47 cache_file
=.
/config.cache
56 program_transform_name
=s
,x
,x
,
64 bindir
='${exec_prefix}/bin'
65 sbindir
='${exec_prefix}/sbin'
66 libexecdir
='${exec_prefix}/libexec'
67 datadir
='${prefix}/share'
68 sysconfdir
='${prefix}/etc'
69 sharedstatedir
='${prefix}/com'
70 localstatedir
='${prefix}/var'
71 libdir
='${exec_prefix}/lib'
72 includedir
='${prefix}/include'
73 oldincludedir
='/usr/include'
74 infodir
='${prefix}/info'
75 mandir
='${prefix}/man'
77 # Initialize some other variables.
80 # Maximum number of lines to put in a shell here document.
87 # If the previous option needs an argument, assign it.
88 if test -n "$ac_prev"; then
89 eval "$ac_prev=\$ac_option"
95 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
99 # Accept the important Cygnus configure options, so we can diagnose typos.
103 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
105 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
106 bindir
="$ac_optarg" ;;
108 -build |
--build |
--buil |
--bui |
--bu)
110 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
111 build
="$ac_optarg" ;;
113 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
114 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
115 ac_prev
=cache_file
;;
116 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
117 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
118 cache_file
="$ac_optarg" ;;
120 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
122 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
124 datadir
="$ac_optarg" ;;
126 -disable-* |
--disable-*)
127 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
128 # Reject names that are not valid shell variable names.
129 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
130 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
132 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
133 eval "enable_${ac_feature}=no" ;;
135 -enable-* |
--enable-*)
136 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
137 # Reject names that are not valid shell variable names.
138 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
139 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
141 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
146 eval "enable_${ac_feature}='$ac_optarg'" ;;
148 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
149 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
150 |
--exec |
--exe |
--ex)
151 ac_prev
=exec_prefix
;;
152 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
153 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
154 |
--exec=* |
--exe=* |
--ex=*)
155 exec_prefix
="$ac_optarg" ;;
157 -gas |
--gas |
--ga |
--g)
158 # Obsolete; use --with-gas.
161 -help |
--help |
--hel |
--he)
162 # Omit some internal or obsolete options to make the list less imposing.
163 # This message is too long to be a string in the A/UX 3.1 sh.
165 Usage: configure [options] [host]
166 Options: [defaults in brackets after descriptions]
168 --cache-file=FILE cache test results in FILE
169 --help print this message
170 --no-create do not create output files
171 --quiet, --silent do not print \`checking...' messages
172 --version print the version of autoconf that created configure
173 Directory and file names:
174 --prefix=PREFIX install architecture-independent files in PREFIX
176 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
178 --bindir=DIR user executables in DIR [EPREFIX/bin]
179 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
180 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
181 --datadir=DIR read-only architecture-independent data in DIR
183 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
184 --sharedstatedir=DIR modifiable architecture-independent data in DIR
186 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
187 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
188 --includedir=DIR C header files in DIR [PREFIX/include]
189 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
190 --infodir=DIR info documentation in DIR [PREFIX/info]
191 --mandir=DIR man documentation in DIR [PREFIX/man]
192 --srcdir=DIR find the sources in DIR [configure dir or ..]
193 --program-prefix=PREFIX prepend PREFIX to installed program names
194 --program-suffix=SUFFIX append SUFFIX to installed program names
195 --program-transform-name=PROGRAM
196 run sed PROGRAM on installed program names
200 --build=BUILD configure for building on BUILD [BUILD=HOST]
201 --host=HOST configure for HOST [guessed]
202 --target=TARGET configure for TARGET [TARGET=HOST]
203 Features and packages:
204 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
205 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
206 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
207 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
208 --x-includes=DIR X include files are in DIR
209 --x-libraries=DIR X library files are in DIR
211 if test -n "$ac_help"; then
212 echo "--enable and --with options recognized:$ac_help"
216 -host |
--host |
--hos |
--ho)
218 -host=* |
--host=* |
--hos=* |
--ho=*)
221 -includedir |
--includedir |
--includedi |
--included |
--include \
222 |
--includ |
--inclu |
--incl |
--inc)
223 ac_prev
=includedir
;;
224 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
225 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
226 includedir
="$ac_optarg" ;;
228 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
230 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
231 infodir
="$ac_optarg" ;;
233 -libdir |
--libdir |
--libdi |
--libd)
235 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
236 libdir
="$ac_optarg" ;;
238 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
239 |
--libexe |
--libex |
--libe)
240 ac_prev
=libexecdir
;;
241 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
242 |
--libexe=* |
--libex=* |
--libe=*)
243 libexecdir
="$ac_optarg" ;;
245 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
246 |
--localstate |
--localstat |
--localsta |
--localst \
247 |
--locals |
--local |
--loca |
--loc |
--lo)
248 ac_prev
=localstatedir
;;
249 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
250 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
251 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
252 localstatedir
="$ac_optarg" ;;
254 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
256 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
257 mandir
="$ac_optarg" ;;
260 # Obsolete; use --without-fp.
263 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
267 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
268 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
271 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
272 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
273 |
--oldin |
--oldi |
--old |
--ol |
--o)
274 ac_prev
=oldincludedir
;;
275 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
276 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
277 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
278 oldincludedir
="$ac_optarg" ;;
280 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
282 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
283 prefix
="$ac_optarg" ;;
285 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
286 |
--program-pre |
--program-pr |
--program-p)
287 ac_prev
=program_prefix
;;
288 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
289 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
290 program_prefix
="$ac_optarg" ;;
292 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
293 |
--program-suf |
--program-su |
--program-s)
294 ac_prev
=program_suffix
;;
295 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
296 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
297 program_suffix
="$ac_optarg" ;;
299 -program-transform-name |
--program-transform-name \
300 |
--program-transform-nam |
--program-transform-na \
301 |
--program-transform-n |
--program-transform- \
302 |
--program-transform |
--program-transfor \
303 |
--program-transfo |
--program-transf \
304 |
--program-trans |
--program-tran \
305 |
--progr-tra |
--program-tr |
--program-t)
306 ac_prev
=program_transform_name
;;
307 -program-transform-name=* |
--program-transform-name=* \
308 |
--program-transform-nam=* |
--program-transform-na=* \
309 |
--program-transform-n=* |
--program-transform-=* \
310 |
--program-transform=* |
--program-transfor=* \
311 |
--program-transfo=* |
--program-transf=* \
312 |
--program-trans=* |
--program-tran=* \
313 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
314 program_transform_name
="$ac_optarg" ;;
316 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
317 |
-silent |
--silent |
--silen |
--sile |
--sil)
320 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
322 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
324 sbindir
="$ac_optarg" ;;
326 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
327 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
328 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
330 ac_prev
=sharedstatedir
;;
331 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
332 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
333 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
335 sharedstatedir
="$ac_optarg" ;;
337 -site |
--site |
--sit)
339 -site=* |
--site=* |
--sit=*)
342 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
344 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
345 srcdir
="$ac_optarg" ;;
347 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
348 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
349 ac_prev
=sysconfdir
;;
350 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
351 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
352 sysconfdir
="$ac_optarg" ;;
354 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
356 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
357 target
="$ac_optarg" ;;
359 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
362 -version |
--version |
--versio |
--versi |
--vers)
363 echo "configure generated by autoconf version 2.12"
367 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
368 # Reject names that are not valid shell variable names.
369 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
370 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
372 ac_package
=`echo $ac_package| sed 's/-/_/g'`
377 eval "with_${ac_package}='$ac_optarg'" ;;
379 -without-* |
--without-*)
380 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
381 # Reject names that are not valid shell variable names.
382 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
383 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
385 ac_package
=`echo $ac_package| sed 's/-/_/g'`
386 eval "with_${ac_package}=no" ;;
389 # Obsolete; use --with-x.
392 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
393 |
--x-incl |
--x-inc |
--x-in |
--x-i)
394 ac_prev
=x_includes
;;
395 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
396 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
397 x_includes
="$ac_optarg" ;;
399 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
400 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
401 ac_prev
=x_libraries
;;
402 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
403 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
404 x_libraries
="$ac_optarg" ;;
406 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
410 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
411 echo "configure: warning: $ac_option: invalid host type" 1>&2
413 if test "x$nonopt" != xNONE
; then
414 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
422 if test -n "$ac_prev"; then
423 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
426 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
428 # File descriptor usage:
431 # 2 errors and warnings
432 # 3 some systems may open it to /dev/tty
433 # 4 used on the Kubota Titan
434 # 6 checking for... messages and results
435 # 5 compiler messages saved in config.log
436 if test "$silent" = yes; then
444 This file contains any messages produced by compilers while
445 running configure, to aid debugging if configure makes a mistake.
448 # Strip out --no-create and --no-recursion so they do not pile up.
449 # Also quote any args containing shell metacharacters.
454 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
455 |
--no-cr |
--no-c) ;;
456 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
457 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
458 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
459 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
460 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
465 # Only set these to C if already set. These must not be set unconditionally
466 # because not all systems understand e.g. LANG=C (notably SCO).
467 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
468 # Non-C LC_CTYPE values break the ctype check.
469 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
470 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
471 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
472 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
474 # confdefs.h avoids OS command line length limits that DEFS can exceed.
475 rm -rf conftest
* confdefs.h
476 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
479 # A filename unique to this package, relative to the directory that
480 # configure is in, which we can look for to find out if srcdir is correct.
481 ac_unique_file
=features.h
483 # Find the source files, if location was not specified.
484 if test -z "$srcdir"; then
485 ac_srcdir_defaulted
=yes
486 # Try the directory containing this script, then its parent.
488 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
489 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
491 if test ! -r $srcdir/$ac_unique_file; then
495 ac_srcdir_defaulted
=no
497 if test ! -r $srcdir/$ac_unique_file; then
498 if test "$ac_srcdir_defaulted" = yes; then
499 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
501 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
504 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
506 # Prefer explicitly selected file to automatically selected ones.
507 if test -z "$CONFIG_SITE"; then
508 if test "x$prefix" != xNONE
; then
509 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
511 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
514 for ac_site_file
in $CONFIG_SITE; do
515 if test -r "$ac_site_file"; then
516 echo "loading site script $ac_site_file"
521 if test -r "$cache_file"; then
522 echo "loading cache $cache_file"
525 echo "creating cache $cache_file"
530 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
531 ac_cpp
='$CPP $CPPFLAGS'
532 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
533 ac_link
='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
534 cross_compiling
=$ac_cv_prog_cc_cross
536 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
537 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
538 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
545 ac_n
= ac_c
='\c' ac_t
=
548 if test -r /vmunix
; then
549 kernel_id
=`strings /vmunix | grep UNIX`
550 elif test -r /dynix
; then
551 kernel_id
=`strings /dynix | grep DYNIX`
559 # This will get text that should go into config.make.
562 # Check for a --with-gmp argument and set gmp-srcdir in config.make.
563 # Check whether --with-gmp or --without-gmp was given.
564 if test "${with_gmp+set}" = set; then
567 yes) { echo "configure: error: --with-gmp requires an argument; use --with-gmp=DIRECTORY" 1>&2; exit 1; } ;;
569 *) config_vars
="$config_vars
570 gmp-srcdir = $withval" ;;
575 # Check for a --with-gettext argument and set gettext-srcdir in config.make.
576 # Check whether --with-gettext or --without-gettext was given.
577 if test "${with_gettext+set}" = set; then
578 withval
="$with_gettext"
579 case "$with_gettext" in
581 { echo "configure: error: --with-gettext requires an argument; use --with-gettext=DIR" 1>&2; exit 1; } ;;
584 config_vars
="$config_vars
585 gettext-srcdir = $withval" ;;
591 # Check whether --with-fp or --without-fp was given.
592 if test "${with_fp+set}" = set; then
599 # Check whether --with-gnu-binutils or --without-gnu-binutils was given.
600 if test "${with_gnu_binutils+set}" = set; then
601 withval
="$with_gnu_binutils"
602 gnu_binutils
=$withval
607 # Check whether --with-gnu-ld or --without-gnu-ld was given.
608 if test "${with_gnu_ld+set}" = set; then
609 withval
="$with_gnu_ld"
615 # Check whether --with-gnu-as or --without-gnu-as was given.
616 if test "${with_gnu_as+set}" = set; then
617 withval
="$with_gnu_as"
623 test $gnu_binutils = yes && gnu_as
=yes gnu_ld
=yes
624 # Check whether --with-elf or --without-elf was given.
625 if test "${with_elf+set}" = set; then
633 # Check whether --enable-libio or --disable-libio was given.
634 if test "${enable_libio+set}" = set; then
635 enableval
="$enable_libio"
636 if test $enableval = yes; then
646 # Check whether --enable-sanity-checks or --disable-sanity-checks was given.
647 if test "${enable_sanity_checks+set}" = set; then
648 enableval
="$enable_sanity_checks"
649 enable_sanity
=$enableval
655 # Check whether --enable-shared or --disable-shared was given.
656 if test "${enable_shared+set}" = set; then
657 enableval
="$enable_shared"
663 # Check whether --enable-profile or --disable-profile was given.
664 if test "${enable_profile+set}" = set; then
665 enableval
="$enable_profile"
671 # Check whether --enable-omitfp or --disable-omitfp was given.
672 if test "${enable_omitfp+set}" = set; then
673 enableval
="$enable_omitfp"
680 # Check whether --enable-add-ons or --disable-add-ons was given.
681 if test "${enable_add_ons+set}" = set; then
682 enableval
="$enable_add_ons"
683 add_ons
=`echo "$enableval" | sed 's/,/ /g'`
689 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
690 if test -f $ac_dir/install-sh
; then
692 ac_install_sh
="$ac_aux_dir/install-sh -c"
694 elif test -f $ac_dir/install.sh
; then
696 ac_install_sh
="$ac_aux_dir/install.sh -c"
700 if test -z "$ac_aux_dir"; then
701 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
703 ac_config_guess
=$ac_aux_dir/config.guess
704 ac_config_sub
=$ac_aux_dir/config.sub
705 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
710 if test x
"$add_ons" != x
; then
711 for f
in $add_ons; do
712 add_ons_pfx
="$add_ons_pfx $f/"
717 # Make sure we can run config.sub.
718 if $ac_config_sub sun4
>/dev
/null
2>&1; then :
719 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
722 echo $ac_n "checking host system type""... $ac_c" 1>&6
723 echo "configure:724: checking host system type" >&5
726 case "$host_alias" in
730 if host_alias
=`$ac_config_guess`; then :
731 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
733 *) host_alias
=$nonopt ;;
737 host=`$ac_config_sub $host_alias`
738 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
739 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
740 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
741 echo "$ac_t""$host" 1>&6
744 # The way shlib-versions is used to generate soversions.mk uses a
745 # fairly simplistic model for name recognition that can't distinguish
746 # i486-pc-linux-gnu fully from i486-pc-gnu. So we mutate a $host_os
747 # of `gnu*' here to be `gnu-gnu*' just so that shlib-versions can
748 # tell. This doesn't get used much beyond that, so it's fairly safe.
753 host_os
=`echo $host_os | sed -e 's/gnu/gnu-gnu/'`
757 # We keep the original values in `$config_*' and never modify them, so we
758 # can write them unchanged into config.make. Everything else uses
759 # $machine, $vendor, and $os, and changes them whenever convenient.
760 config_machine
=$host_cpu config_vendor
=$host_vendor config_os
=$host_os
762 # Some configurations imply other options.
764 gnu
* | linux
* | bsd4.4
* | netbsd
* | freebsd
*)
765 # These systems always use GNU tools.
766 gnu_ld
=yes gnu_as
=yes ;;
771 gnu
* | linux
* | sysv4
* | solaris2
*)
772 # These systems (almost) always use the ELF format.
777 machine
=$config_machine
778 vendor
=$config_vendor
781 # Expand the configuration machine name into a subdirectory by architecture
782 # type and particular chip.
784 a29k | am29000
) base_machine
=a29k machine
=a29k
;;
785 alpha
*) base_machine
=alpha machine
=alpha
/$machine ;;
786 hppa
*) base_machine
=hppa machine
=hppa
/$machine ;;
787 i
[3456]86) base_machine
=i386 machine
=i386
/$machine ;;
788 m680?
0) base_machine
=m68k machine
=m68k
/$machine ;;
789 m68k
) base_machine
=m68k machine
=m68k
/m68020
;;
790 m88???
) base_machine
=m88k machine
=m88k
/$machine ;;
791 m88k
) base_machine
=m88k machine
=m88k
/m88100
;;
792 mips
*) base_machine
=mips machine
=mips
/$machine ;;
793 mips64
*) base_machine
=mips64 machine
=mips
/mips64
/$machine ;;
794 sparc
[6789]) base_machine
=sparc machine
=sparc
/$machine ;;
795 supersparc
) base_machine
=sparc machine
=sparc
/sparc8
;;
799 # Compute the list of sysdep directories for this configuration.
800 # This can take a while to compute.
801 sysdep_dir
=$srcdir/sysdeps
802 echo $ac_n "checking sysdep dirs""... $ac_c" 1>&6
803 echo "configure:804: checking sysdep dirs" >&5
804 # Make sco3.2v4 become sco3.2.4 and sunos4.1.1_U1 become sunos4.1.1.U1.
805 os
="`echo $os | sed 's/\([0-9A-Z]\)[v_]\([0-9A-Z]\)/\1.\2/g'`"
810 netbsd
* |
386bsd
* | freebsd
* | bsdi
*)
811 base_os
=unix
/bsd
/bsd4.4
;;
812 osf
* | sunos
* | ultrix
* | newsos
* | dynix
* |
*bsd
*)
814 sysv
* | isc
* | esix
* | sco
* | minix
* | irix4
* | linux
*)
817 base_os
=unix
/sysv
/sysv4
;;
819 base_os
=standalone
;;
824 # For sunos4.1.1, try sunos4.1.1, then sunos4.1, then sunos4, then sunos.
827 while o
=`echo $tail | sed 's/\.[^.]*$//'`; test $o != $tail; do
831 o
=`echo $tail | sed 's/[0-9]*$//'`
832 if test $o != $tail; then
835 # For linux-gnu, try linux-gnu, then linux.
836 o
=`echo $tail | sed 's/-.*$//'`
837 if test $o != $tail; then
841 # For unix/sysv/sysv4, try unix/sysv/sysv4, then unix/sysv, then unix.
844 while b
=`echo $tail | sed 's@^\(.*\)/\([^/]*\)$@& \1@'`; test -n "$b"; do
850 # For sparc/sparc9, try sparc/sparc9 and then sparc.
853 while m
=`echo $tail | sed 's@^\(.*\)/\([^/]*\)$@& \1@'`; test -n "$m"; do
855 # Prepend the machine's FPU directory unless --without-fp.
856 if test "$with_fp" = yes; then
864 # Find what sysdep directories exist.
866 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
867 for d
in $add_ons_pfx ''; do
868 for b
in $base ''; do
869 for m0
in $mach ''; do
870 for v
in /$vendor ''; do
871 for o
in /$ostry ''; do
872 for m
in $mach ''; do
873 if test "$m0$b$v$o$m"; then
874 try
="${d}sysdeps$m0$b$v$o$m"
875 test -n "$enable_debug_configure" &&
876 echo "$0 DEBUG: try $try" >&2
879 *) dest
=$srcdir/$try ;;
881 if test -d $dest; then
882 sysnames
="$sysnames $try"
883 { test -n "$o" ||
test -n "$b"; } && os_used
=t
884 { test -n "$m" ||
test -n "$m0"; } && machine_used
=t
895 if test -z "$os_used" && test "$os" != none
; then
896 { echo "configure: error: Operating system $os is not supported." 1>&2; exit 1; }
898 if test -z "$machine_used" && test "$machine" != none
; then
899 { echo "configure: error: The $machine is not supported." 1>&2; exit 1; }
902 # We have now validated the configuration.
905 # If using ELF, look for an `elf' subdirectory of each machine directory.
906 # We prepend these rather than inserting them whereever the machine appears
907 # because things specified by the machine's ELF ABI should override
908 # OS-specific things, and should always be the same for any OS on the
909 # machine (otherwise what's the point of an ABI?).
910 if test "$elf" = yes; then
912 for d
in $add_ons_pfx ''; do
915 *) xsrcdir
=$srcdir/ ;;
918 if test -d $xsrcdir${d}sysdeps
$m/elf
; then
919 elf_dirs
="$elf_dirs ${d}sysdeps$m/elf"
923 sysnames
="`echo $elf_dirs | sed -e 's,//,/,g'` $sysnames"
927 # Expand the list of system names into a full list of directories
928 # from each element's parent name and Implies file (if present).
931 while test $# -gt 0; do
935 case " $names " in *" $name "*)
936 # Already in the list.
940 # Report each name as we discover it, so there is no long pause in output.
941 echo $ac_n "$name $ac_c" >&6
943 name_base
=`echo $name | sed -e 's@\(.*sysdeps\)/.*@\1@'`
947 *) xsrcdir
=$srcdir/ ;;
949 test -n "$enable_debug_configure" &&
950 echo "DEBUG: name/Implies $xsrcdir$name/Implies" >&2
952 if test -f $xsrcdir$name/Implies
; then
953 # Collect more names from the `Implies' file (removing comments).
954 implied_candidate
="`sed 's/#.*$//' < $xsrcdir$name/Implies`"
956 for x
in $implied_candidate; do
957 if test -d $xsrcdir$name_base/$x; then
958 implied
="$implied $name_base/$x";
960 echo "configure: warning: $name/Implies specifies nonexistent $x" 1>&2
967 # Add NAME to the list of names.
970 # Find the parent of NAME, using the empty string if it has none.
971 parent
="`echo $name | sed -n -e 's=/[^/]*$==' -e '/sysdeps$/q' -e p`"
973 # Add the names implied by NAME, and NAME's parent (if it has one), to
974 # the list of names to be processed (the argument list). We prepend the
975 # implied names to the list and append the parent. We want implied
976 # directories to come before further directories inferred from the
977 # configuration components; this ensures that for sysv4, unix/common
978 # (implied by unix/sysv/sysv4) comes before unix/sysv (in ostry (here $*)
980 sysnames
="`echo $implied $* $parent`"
981 test -n "$sysnames" && set $sysnames
984 # Add the default directories.
985 sysnames
="$names sysdeps/generic sysdeps/stub"
987 # The other names were emitted during the scan.
988 echo "$ac_t""sysdeps/generic sysdeps/stub" 1>&6
993 # Find a good install program. We prefer a C program (faster),
994 # so one script is as good as another. But avoid the broken or
995 # incompatible versions:
996 # SysV /etc/install, /usr/sbin/install
997 # SunOS /usr/etc/install
1000 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1001 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1002 # ./install, which can be erroneously created by make from ./install.sh.
1003 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1004 echo "configure:1005: checking for a BSD compatible install" >&5
1005 if test -z "$INSTALL"; then
1006 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1007 echo $ac_n "(cached) $ac_c" 1>&6
1009 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="${IFS}:"
1010 for ac_dir
in $PATH; do
1011 # Account for people who put trailing slashes in PATH elements.
1013 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
1015 # OSF1 and SCO ODT 3.0 have their own names for install.
1016 for ac_prog
in ginstall installbsd scoinst
install; do
1017 if test -f $ac_dir/$ac_prog; then
1018 if test $ac_prog = install &&
1019 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
1020 # AIX install. It has an incompatible calling convention.
1021 # OSF/1 installbsd also uses dspmsg, but is usable.
1024 ac_cv_path_install
="$ac_dir/$ac_prog -c"
1035 if test "${ac_cv_path_install+set}" = set; then
1036 INSTALL
="$ac_cv_path_install"
1038 # As a last resort, use the slow shell script. We don't cache a
1039 # path for INSTALL within a source directory, because that will
1040 # break other packages using the cache if that directory is
1041 # removed, or if the path is relative.
1042 INSTALL
="$ac_install_sh"
1045 echo "$ac_t""$INSTALL" 1>&6
1047 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1048 # It thinks the first close brace ends the variable substitution.
1049 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
1051 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
1053 if test "$INSTALL" = "${srcdir}/install-sh -c"; then
1054 # The makefiles need to use a different form to find it in $srcdir.
1055 INSTALL
='$(..)./install-sh -c'
1057 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1058 echo "configure:1059: checking whether ln -s works" >&5
1059 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1060 echo $ac_n "(cached) $ac_c" 1>&6
1063 if ln -s X conftestdata
2>/dev
/null
1066 ac_cv_prog_LN_S
="ln -s"
1071 LN_S
="$ac_cv_prog_LN_S"
1072 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1073 echo "$ac_t""yes" 1>&6
1075 echo "$ac_t""no" 1>&6
1078 for ac_prog
in msgfmt gmsgfmt
1080 # Extract the first word of "$ac_prog", so it can be a program name with args.
1081 set dummy
$ac_prog; ac_word
=$2
1082 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1083 echo "configure:1084: checking for $ac_word" >&5
1084 if eval "test \"`echo '$''{'ac_cv_prog_MSGFMT'+set}'`\" = set"; then
1085 echo $ac_n "(cached) $ac_c" 1>&6
1087 if test -n "$MSGFMT"; then
1088 ac_cv_prog_MSGFMT
="$MSGFMT" # Let the user override the test.
1090 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1091 for ac_dir
in $PATH; do
1092 test -z "$ac_dir" && ac_dir
=.
1093 if test -f $ac_dir/$ac_word; then
1094 ac_cv_prog_MSGFMT
="$ac_prog"
1101 MSGFMT
="$ac_cv_prog_MSGFMT"
1102 if test -n "$MSGFMT"; then
1103 echo "$ac_t""$MSGFMT" 1>&6
1105 echo "$ac_t""no" 1>&6
1108 test -n "$MSGFMT" && break
1110 test -n "$MSGFMT" || MSGFMT
=":"
1113 echo $ac_n "checking build system type""... $ac_c" 1>&6
1114 echo "configure:1115: checking build system type" >&5
1117 case "$build_alias" in
1120 NONE
) build_alias
=$host_alias ;;
1121 *) build_alias
=$nonopt ;;
1125 build
=`$ac_config_sub $build_alias`
1126 build_cpu
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1127 build_vendor
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1128 build_os
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1129 echo "$ac_t""$build" 1>&6
1131 if test $host != $build; then
1132 ac_tool_prefix
=${host_alias}-
1137 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1138 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
1139 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1140 echo "configure:1141: checking for $ac_word" >&5
1141 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1142 echo $ac_n "(cached) $ac_c" 1>&6
1144 if test -n "$CC"; then
1145 ac_cv_prog_CC
="$CC" # Let the user override the test.
1147 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1148 for ac_dir
in $PATH; do
1149 test -z "$ac_dir" && ac_dir
=.
1150 if test -f $ac_dir/$ac_word; then
1151 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
1156 test -z "$ac_cv_prog_CC" && ac_cv_prog_CC
="gcc"
1160 if test -n "$CC"; then
1161 echo "$ac_t""$CC" 1>&6
1163 echo "$ac_t""no" 1>&6
1168 if test $host != $build; then
1169 # Extract the first word of "gcc cc", so it can be a program name with args.
1170 set dummy gcc cc
; ac_word
=$2
1171 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1172 echo "configure:1173: checking for $ac_word" >&5
1173 if eval "test \"`echo '$''{'ac_cv_prog_BUILD_CC'+set}'`\" = set"; then
1174 echo $ac_n "(cached) $ac_c" 1>&6
1176 if test -n "$BUILD_CC"; then
1177 ac_cv_prog_BUILD_CC
="$BUILD_CC" # Let the user override the test.
1179 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1180 for ac_dir
in $PATH; do
1181 test -z "$ac_dir" && ac_dir
=.
1182 if test -f $ac_dir/$ac_word; then
1183 ac_cv_prog_BUILD_CC
=""
1190 BUILD_CC
="$ac_cv_prog_BUILD_CC"
1191 if test -n "$BUILD_CC"; then
1192 echo "$ac_t""$BUILD_CC" 1>&6
1194 echo "$ac_t""no" 1>&6
1198 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1199 echo "configure:1200: checking how to run the C preprocessor" >&5
1200 # On Suns, sometimes $CPP names a directory.
1201 if test -n "$CPP" && test -d "$CPP"; then
1204 if test -z "$CPP"; then
1205 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1206 echo $ac_n "(cached) $ac_c" 1>&6
1208 # This must be in double quotes, not single quotes, because CPP may get
1209 # substituted into the Makefile and "${CC-cc}" will confuse make.
1211 # On the NeXT, cc -E runs the code through the compiler's parser,
1212 # not just through cpp.
1213 cat > conftest.
$ac_ext <<EOF
1214 #line 1215 "configure"
1215 #include "confdefs.h"
1219 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1220 { (eval echo configure
:1221: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1221 ac_err
=`grep -v '^ *+' conftest.out`
1222 if test -z "$ac_err"; then
1226 echo "configure: failed program was:" >&5
1227 cat conftest.
$ac_ext >&5
1229 CPP
="${CC-cc} -E -traditional-cpp"
1230 cat > conftest.
$ac_ext <<EOF
1231 #line 1232 "configure"
1232 #include "confdefs.h"
1236 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1237 { (eval echo configure
:1238: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1238 ac_err
=`grep -v '^ *+' conftest.out`
1239 if test -z "$ac_err"; then
1243 echo "configure: failed program was:" >&5
1244 cat conftest.
$ac_ext >&5
1251 ac_cv_prog_CPP
="$CPP"
1253 CPP
="$ac_cv_prog_CPP"
1255 ac_cv_prog_CPP
="$CPP"
1257 echo "$ac_t""$CPP" 1>&6
1259 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
1260 set dummy
${ac_tool_prefix}ar; ac_word
=$2
1261 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1262 echo "configure:1263: checking for $ac_word" >&5
1263 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1264 echo $ac_n "(cached) $ac_c" 1>&6
1266 if test -n "$AR"; then
1267 ac_cv_prog_AR
="$AR" # Let the user override the test.
1269 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1270 for ac_dir
in $PATH; do
1271 test -z "$ac_dir" && ac_dir
=.
1272 if test -f $ac_dir/$ac_word; then
1273 ac_cv_prog_AR
="${ac_tool_prefix}ar"
1278 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR
="ar"
1282 if test -n "$AR"; then
1283 echo "$ac_t""$AR" 1>&6
1285 echo "$ac_t""no" 1>&6
1290 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1291 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
1292 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1293 echo "configure:1294: checking for $ac_word" >&5
1294 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1295 echo $ac_n "(cached) $ac_c" 1>&6
1297 if test -n "$RANLIB"; then
1298 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1300 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1301 for ac_dir
in $PATH; do
1302 test -z "$ac_dir" && ac_dir
=.
1303 if test -f $ac_dir/$ac_word; then
1304 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
1311 RANLIB
="$ac_cv_prog_RANLIB"
1312 if test -n "$RANLIB"; then
1313 echo "$ac_t""$RANLIB" 1>&6
1315 echo "$ac_t""no" 1>&6
1319 if test -z "$ac_cv_prog_RANLIB"; then
1320 if test -n "$ac_tool_prefix"; then
1321 # Extract the first word of "ranlib", so it can be a program name with args.
1322 set dummy ranlib
; ac_word
=$2
1323 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1324 echo "configure:1325: checking for $ac_word" >&5
1325 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1326 echo $ac_n "(cached) $ac_c" 1>&6
1328 if test -n "$RANLIB"; then
1329 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1331 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1332 for ac_dir
in $PATH; do
1333 test -z "$ac_dir" && ac_dir
=.
1334 if test -f $ac_dir/$ac_word; then
1335 ac_cv_prog_RANLIB
="ranlib"
1340 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
1343 RANLIB
="$ac_cv_prog_RANLIB"
1344 if test -n "$RANLIB"; then
1345 echo "$ac_t""$RANLIB" 1>&6
1347 echo "$ac_t""no" 1>&6
1356 # Extract the first word of "bash", so it can be a program name with args.
1357 set dummy bash
; ac_word
=$2
1358 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1359 echo "configure:1360: checking for $ac_word" >&5
1360 if eval "test \"`echo '$''{'ac_cv_path_BASH'+set}'`\" = set"; then
1361 echo $ac_n "(cached) $ac_c" 1>&6
1365 ac_cv_path_BASH
="$BASH" # Let the user override the test with a path.
1368 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1369 for ac_dir
in $PATH; do
1370 test -z "$ac_dir" && ac_dir
=.
1371 if test -f $ac_dir/$ac_word; then
1372 ac_cv_path_BASH
="$ac_dir/$ac_word"
1377 test -z "$ac_cv_path_BASH" && ac_cv_path_BASH
="no"
1381 BASH
="$ac_cv_path_BASH"
1382 if test -n "$BASH"; then
1383 echo "$ac_t""$BASH" 1>&6
1385 echo "$ac_t""no" 1>&6
1388 if test "$BASH" != no
&&
1389 $BASH -c 'test "$BASH_VERSINFO" -ge 2 >&/dev/null'; then
1390 libc_cv_have_bash2
=yes
1392 libc_cv_have_bash2
=no
1396 if test "$BASH" = no
; then
1397 # Extract the first word of "ksh", so it can be a program name with args.
1398 set dummy ksh
; ac_word
=$2
1399 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1400 echo "configure:1401: checking for $ac_word" >&5
1401 if eval "test \"`echo '$''{'ac_cv_path_KSH'+set}'`\" = set"; then
1402 echo $ac_n "(cached) $ac_c" 1>&6
1406 ac_cv_path_KSH
="$KSH" # Let the user override the test with a path.
1409 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1410 for ac_dir
in $PATH; do
1411 test -z "$ac_dir" && ac_dir
=.
1412 if test -f $ac_dir/$ac_word; then
1413 ac_cv_path_KSH
="$ac_dir/$ac_word"
1418 test -z "$ac_cv_path_KSH" && ac_cv_path_KSH
="no"
1422 KSH
="$ac_cv_path_KSH"
1423 if test -n "$KSH"; then
1424 echo "$ac_t""$KSH" 1>&6
1426 echo "$ac_t""no" 1>&6
1429 if test "$KSH" = no
; then
1432 libc_cv_have_ksh
=yes
1437 libc_cv_have_ksh
=yes
1441 echo $ac_n "checking for signed size_t type""... $ac_c" 1>&6
1442 echo "configure:1443: checking for signed size_t type" >&5
1443 if eval "test \"`echo '$''{'libc_cv_signed_size_t'+set}'`\" = set"; then
1444 echo $ac_n "(cached) $ac_c" 1>&6
1446 echo '#include <stddef.h>
1447 FOOBAR __SIZE_TYPE__ FOOBAR' > conftest.c
1448 if eval "$ac_cpp conftest.c 2>/dev/null" \
1449 |
grep '^FOOBAR.*unsigned.*FOOBAR$' >/dev
/null
; then
1450 libc_cv_signed_size_t
=no
1452 libc_cv_signed_size_t
=yes
1457 echo "$ac_t""$libc_cv_signed_size_t" 1>&6
1458 if test $libc_cv_signed_size_t = yes; then
1459 cat >> confdefs.h
<<\EOF
1460 #undef __SIZE_TYPE__
1461 #define __SIZE_TYPE__ unsigned
1465 echo $ac_n "checking for libc-friendly stddef.h""... $ac_c" 1>&6
1466 echo "configure:1467: checking for libc-friendly stddef.h" >&5
1467 if eval "test \"`echo '$''{'libc_cv_friendly_stddef'+set}'`\" = set"; then
1468 echo $ac_n "(cached) $ac_c" 1>&6
1470 cat > conftest.
$ac_ext <<EOF
1471 #line 1472 "configure"
1472 #include "confdefs.h"
1473 #define __need_size_t
1474 #define __need_wchar_t
1479 size_t size; wchar_t wchar;
1481 #error stddef.h ignored __need_*
1483 if (&size == NULL || &wchar == NULL) abort ();
1486 if { (eval echo configure
:1487: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1488 libc_cv_friendly_stddef
=yes
1490 echo "configure: failed program was:" >&5
1491 cat conftest.
$ac_ext >&5
1493 libc_cv_friendly_stddef
=no
1498 echo "$ac_t""$libc_cv_friendly_stddef" 1>&6
1499 if test $libc_cv_friendly_stddef = yes; then
1500 config_vars
="$config_vars
1501 override stddef.h = # The installed <stddef.h> seems to be libc-friendly."
1504 echo $ac_n "checking whether we need to use -P to assemble .S files""... $ac_c" 1>&6
1505 echo "configure:1506: checking whether we need to use -P to assemble .S files" >&5
1506 if eval "test \"`echo '$''{'libc_cv_need_minus_P'+set}'`\" = set"; then
1507 echo $ac_n "(cached) $ac_c" 1>&6
1509 cat > conftest.S
<<EOF
1510 #include "confdefs.h"
1511 /* Nothing whatsoever. */
1513 if ${CC-cc} $CFLAGS -c conftest.S
2>/dev
/null
; then
1514 libc_cv_need_minus_P
=no
1516 libc_cv_need_minus_P
=yes
1521 echo "$ac_t""$libc_cv_need_minus_P" 1>&6
1522 if test $libc_cv_need_minus_P = yes; then
1523 config_vars
="$config_vars
1524 asm-CPPFLAGS = -P # The assembler can't grok cpp's # line directives."
1527 echo $ac_n "checking for assembler global-symbol directive""... $ac_c" 1>&6
1528 echo "configure:1529: checking for assembler global-symbol directive" >&5
1529 if eval "test \"`echo '$''{'libc_cv_asm_global_directive'+set}'`\" = set"; then
1530 echo $ac_n "(cached) $ac_c" 1>&6
1532 libc_cv_asm_global_directive
=UNKNOWN
1533 for ac_globl
in .globl .global
; do
1534 cat > conftest.s
<<EOF
1539 if ${CC-cc} $CFLAGS -c conftest.s
2>/dev
/null
; then
1540 libc_cv_asm_global_directive
=${ac_globl}
1543 test $libc_cv_asm_global_directive != UNKNOWN
&& break
1547 echo "$ac_t""$libc_cv_asm_global_directive" 1>&6
1548 if test $libc_cv_asm_global_directive = UNKNOWN
; then
1549 { echo "configure: error: cannot determine asm global directive" 1>&2; exit 1; }
1551 cat >> confdefs.h
<<EOF
1552 #define ASM_GLOBAL_DIRECTIVE ${libc_cv_asm_global_directive}
1557 echo $ac_n "checking for .set assembler directive""... $ac_c" 1>&6
1558 echo "configure:1559: checking for .set assembler directive" >&5
1559 if eval "test \"`echo '$''{'libc_cv_asm_set_directive'+set}'`\" = set"; then
1560 echo $ac_n "(cached) $ac_c" 1>&6
1562 cat > conftest.s
<<EOF
1565 .set glibc_conftest_frobozz,foo
1566 $libc_cv_asm_global_directive glibc_conftest_frobozz
1568 # The alpha-dec-osf1 assembler gives only a warning for `.set'
1569 # (but it doesn't work), so we must do a linking check to be sure.
1570 cat > conftest1.c
<<\EOF
1571 extern int glibc_conftest_frobozz
;
1572 main
() { printf ("%d\n", glibc_conftest_frobozz
); }
1574 if ${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \
1575 -o conftest conftest.s conftest1.c
1>&5 2>&5; then
1576 libc_cv_asm_set_directive
=yes
1578 libc_cv_asm_set_directive
=no
1583 echo "$ac_t""$libc_cv_asm_set_directive" 1>&6
1584 if test $libc_cv_asm_set_directive = yes; then
1585 cat >> confdefs.h
<<\EOF
1586 #define HAVE_ASM_SET_DIRECTIVE 1
1591 if test $elf = yes; then
1592 echo $ac_n "checking for .previous assembler directive""... $ac_c" 1>&6
1593 echo "configure:1594: checking for .previous assembler directive" >&5
1594 if eval "test \"`echo '$''{'libc_cv_asm_previous_directive'+set}'`\" = set"; then
1595 echo $ac_n "(cached) $ac_c" 1>&6
1597 cat > conftest.s
<<EOF
1598 .section foo_section
1601 if { ac_try
='${CC-cc} -c $CFLAGS conftest.s 1>&5'; { (eval echo configure
:1602: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
1602 libc_cv_asm_previous_directive
=yes
1604 libc_cv_asm_previous_directive
=no
1609 echo "$ac_t""$libc_cv_asm_previous_directive" 1>&6
1610 if test $libc_cv_asm_previous_directive = yes; then
1611 cat >> confdefs.h
<<\EOF
1612 #define HAVE_ASM_PREVIOUS_DIRECTIVE 1
1616 echo $ac_n "checking for .popsection assembler directive""... $ac_c" 1>&6
1617 echo "configure:1618: checking for .popsection assembler directive" >&5
1618 if eval "test \"`echo '$''{'libc_cv_asm_popsection_directive'+set}'`\" = set"; then
1619 echo $ac_n "(cached) $ac_c" 1>&6
1621 cat > conftest.s
<<EOF
1622 .pushsection foo_section
1625 if { ac_try
='${CC-cc} -c $CFLAGS conftest.s 1>&5'; { (eval echo configure
:1626: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
1626 libc_cv_asm_popsection_directive
=yes
1628 libc_cv_asm_popsection_directive
=no
1633 echo "$ac_t""$libc_cv_asm_popsection_directive" 1>&6
1634 if test $libc_cv_asm_popsection_directive = yes; then
1635 cat >> confdefs.h
<<\EOF
1636 #define HAVE_ASM_POPSECTION_DIRECTIVE 1
1643 if test $elf != yes; then
1644 echo $ac_n "checking for .init and .fini sections""... $ac_c" 1>&6
1645 echo "configure:1646: checking for .init and .fini sections" >&5
1646 if eval "test \"`echo '$''{'libc_cv_have_initfini'+set}'`\" = set"; then
1647 echo $ac_n "(cached) $ac_c" 1>&6
1649 cat > conftest.
$ac_ext <<EOF
1650 #line 1651 "configure"
1651 #include "confdefs.h"
1654 asm (".section .init");
1655 asm (".section .fini");
1659 if { (eval echo configure
:1660: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1661 libc_cv_have_initfini
=yes
1663 echo "configure: failed program was:" >&5
1664 cat conftest.
$ac_ext >&5
1666 libc_cv_have_initfini
=no
1671 echo "$ac_t""$libc_cv_have_initfini" 1>&6
1672 if test $libc_cv_have_initfini = yes; then
1673 cat >> confdefs.h
<<\EOF
1674 #define HAVE_INITFINI 1
1680 if test $elf = yes; then
1681 libc_cv_asm_underscores
=no
1683 echo $ac_n "checking for _ prefix on C symbol names""... $ac_c" 1>&6
1684 echo "configure:1685: checking for _ prefix on C symbol names" >&5
1685 if eval "test \"`echo '$''{'libc_cv_asm_underscores'+set}'`\" = set"; then
1686 echo $ac_n "(cached) $ac_c" 1>&6
1688 cat > conftest.
$ac_ext <<EOF
1689 #line 1690 "configure"
1690 #include "confdefs.h"
1691 asm ("_glibc_foobar:");
1696 if { (eval echo configure
:1697: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1698 libc_cv_asm_underscores
=yes
1700 echo "configure: failed program was:" >&5
1701 cat conftest.
$ac_ext >&5
1703 libc_cv_asm_underscores
=no
1708 echo "$ac_t""$libc_cv_asm_underscores" 1>&6
1710 if test $libc_cv_asm_underscores = no
; then
1711 cat >> confdefs.h
<<\EOF
1712 #define NO_UNDERSCORES 1
1717 if test $elf = yes; then
1718 libc_cv_weak_symbols
=yes
1719 libc_cv_asm_weak_directive
=yes
1720 libc_cv_asm_weakext_directive
=no
1722 echo $ac_n "checking for assembler .weak directive""... $ac_c" 1>&6
1723 echo "configure:1724: checking for assembler .weak directive" >&5
1724 if eval "test \"`echo '$''{'libc_cv_asm_weak_directive'+set}'`\" = set"; then
1725 echo $ac_n "(cached) $ac_c" 1>&6
1727 cat > conftest.s
<<EOF
1729 ${libc_cv_asm_global_directive} foo
1732 .weak bar; bar = foo
1734 if ${CC-cc} $CFLAGS -c conftest.s
2>/dev
/null
; then
1735 libc_cv_asm_weak_directive
=yes
1737 libc_cv_asm_weak_directive
=no
1742 echo "$ac_t""$libc_cv_asm_weak_directive" 1>&6
1744 if test $libc_cv_asm_weak_directive = no
; then
1745 echo $ac_n "checking for assembler .weakext directive""... $ac_c" 1>&6
1746 echo "configure:1747: checking for assembler .weakext directive" >&5
1747 if eval "test \"`echo '$''{'libc_cv_asm_weakext_directive'+set}'`\" = set"; then
1748 echo $ac_n "(cached) $ac_c" 1>&6
1750 cat > conftest.s
<<EOF
1752 ${libc_cv_asm_global_directive} foo
1757 if ${CC-cc} $CFLAGS -c conftest.s
2>/dev
/null
; then
1758 libc_cv_asm_weakext_directive
=yes
1760 libc_cv_asm_weakext_directive
=no
1765 echo "$ac_t""$libc_cv_asm_weakext_directive" 1>&6
1770 if test $libc_cv_asm_weak_directive = yes; then
1771 cat >> confdefs.h
<<\EOF
1772 #define HAVE_ASM_WEAK_DIRECTIVE 1
1775 elif test $libc_cv_asm_weakext_directive = yes; then
1776 cat >> confdefs.h
<<\EOF
1777 #define HAVE_ASM_WEAKEXT_DIRECTIVE 1
1782 echo $ac_n "checking for ld --no-whole-archive""... $ac_c" 1>&6
1783 echo "configure:1784: checking for ld --no-whole-archive" >&5
1784 if eval "test \"`echo '$''{'libc_cv_ld_no_whole_archive'+set}'`\" = set"; then
1785 echo $ac_n "(cached) $ac_c" 1>&6
1787 cat > conftest.c
<<\EOF
1792 if { ac_try
='${CC-cc} $CFLAGS
1793 -nostdlib -nostartfiles -Wl,--no-whole-archive
1794 -o conftest conftest.c'; { (eval echo configure
:1795: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
1795 libc_cv_ld_no_whole_archive
=yes
1797 libc_cv_ld_no_whole_archive
=no
1802 echo "$ac_t""$libc_cv_ld_no_whole_archive" 1>&6
1804 echo $ac_n "checking for gcc -fno-exceptions""... $ac_c" 1>&6
1805 echo "configure:1806: checking for gcc -fno-exceptions" >&5
1806 if eval "test \"`echo '$''{'libc_cv_gcc_no_exceptions'+set}'`\" = set"; then
1807 echo $ac_n "(cached) $ac_c" 1>&6
1809 cat > conftest.c
<<\EOF
1814 if { ac_try
='${CC-cc} $CFLAGS
1815 -nostdlib -nostartfiles -fno-exceptions
1816 -o conftest conftest.c'; { (eval echo configure
:1817: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
1817 libc_cv_gcc_no_exceptions
=yes
1819 libc_cv_gcc_no_exceptions
=no
1824 echo "$ac_t""$libc_cv_gcc_no_exceptions" 1>&6
1826 ### End of automated tests.
1827 ### Now run sysdeps configure fragments.
1829 # sysdeps configure fragments may set these with files to be linked below.
1833 # Iterate over all the sysdep directories we will use, running their
1834 # configure fragments, and looking for a uname implementation.
1836 for dir
in $sysnames; do
1839 *) dest
=$srcdir/$dir ;;
1841 if test -r $dest/configure
; then
1842 echo "$ac_t""running configure fragment for $dest" 1>&6
1846 if test -z "$uname"; then
1847 if test -r $sysdep_dir/$dir/uname.c ||
1848 test -r $sysdep_dir/$dir/uname.S ||
1849 { test -r $sysdep_dir/$dir/syscalls.list
&&
1850 grep '^uname[ ]' $sysdep_dir/$dir/syscalls.list
>/dev
/null
; }; then
1858 # If we will use the generic uname implementation, we must figure out what
1859 # it will say by examining the system, and write the results in config-name.h.
1860 if test "$uname" = generic
; then
1862 uname_sysname
=`echo $config_os | sed 's/[0-9.]*$//'`
1863 if test $uname_sysname != $config_os; then
1864 config_release
=`echo $config_os | sed s/$uname_sysname//`
1867 echo $ac_n "checking OS release for uname""... $ac_c" 1>&6
1868 echo "configure:1869: checking OS release for uname" >&5
1869 if eval "test \"`echo '$''{'libc_cv_uname_release'+set}'`\" = set"; then
1870 echo $ac_n "(cached) $ac_c" 1>&6
1872 kernel_release
=`echo "$kernel_id" | sed 's/^[^0-9.]*\([0-9.]*\).*$/\1/'`
1873 if test x
`echo "$config_release" | sed "s/^$kernel_release//"` \
1874 != x
$config_release; then
1875 # The configuration release is a substring of the kernel release.
1876 libc_cv_uname_release
=$kernel_release
1877 elif test x
$config_release != x
; then
1878 libc_cv_uname_release
=$config_release
1879 elif test x
$kernel_release != x
; then
1880 libc_cv_uname_release
=$kernel_release
1882 libc_cv_uname_release
=unknown
1886 echo "$ac_t""$libc_cv_uname_release" 1>&6
1887 uname_release
="$libc_cv_uname_release"
1889 echo $ac_n "checking OS version for uname""... $ac_c" 1>&6
1890 echo "configure:1891: checking OS version for uname" >&5
1891 if eval "test \"`echo '$''{'libc_cv_uname_version'+set}'`\" = set"; then
1892 echo $ac_n "(cached) $ac_c" 1>&6
1894 kernel_version
=`echo "$kernel_id" | sed 's/^[^#]*#\([0-9]*\).*$/\1/'`
1895 if test -n "$kernel_version"; then
1896 libc_cv_uname_version
="$kernel_version"
1898 libc_cv_uname_version
=unknown
1902 echo "$ac_t""$libc_cv_uname_version" 1>&6
1903 uname_version
="$libc_cv_uname_version"
1905 config_uname
=config-name.h
:config-name.
in
1907 # For non-generic uname, we don't need to create config-name.h at all.
1911 echo $ac_n "checking stdio selection""... $ac_c" 1>&6
1912 echo "configure:1913: checking stdio selection" >&5
1915 libio
) cat >> confdefs.h
<<\EOF
1916 #define USE_IN_LIBIO 1
1919 default
) stdio
=stdio
;;
1921 echo "$ac_t""$stdio" 1>&6
1930 if test $gnu_ld = yes; then
1931 cat >> confdefs.h
<<\EOF
1932 #define HAVE_GNU_LD 1
1936 if test $gnu_as = yes; then
1937 cat >> confdefs.h
<<\EOF
1938 #define HAVE_GNU_AS 1
1942 if test $elf = yes; then
1943 cat >> confdefs.h
<<\EOF
1950 if test $shared = default
; then
1951 if test $gnu_ld = yes; then
1954 # For now we do not assume shared libs are available. In future more
1955 # tests might become available.
1964 if test "`(cd $srcdir; pwd)`" = "`pwd`"; then
1967 config_makefile
=Makefile
1970 VERSION
=`sed -e 's/^#define VERSION "\([^"]*\)"/\1/p' -e d < $srcdir/version.h`
1974 cat > confcache
<<\EOF
1975 # This file is a shell script that caches the results of configure
1976 # tests run on this system so they can be shared between configure
1977 # scripts and configure runs. It is not useful on other systems.
1978 # If it contains results you don't want to keep, you may remove or edit it.
1980 # By default, configure uses ./config.cache as the cache file,
1981 # creating it if it does not exist already. You can give configure
1982 # the --cache-file=FILE option to use a different cache file; that is
1983 # what configure does when it calls configure scripts in
1984 # subdirectories, so they share the cache.
1985 # Giving --cache-file=/dev/null disables caching, for debugging configure.
1986 # config.status only pays attention to the cache file if you give it the
1987 # --recheck option to rerun configure.
1990 # The following way of writing the cache mishandles newlines in values,
1991 # but we know of no workaround that is simple, portable, and efficient.
1992 # So, don't put newlines in cache variables' values.
1993 # Ultrix sh set writes to stderr and can't be redirected directly,
1994 # and sets the high bit in the cache file unless we assign to the vars.
1996 case `(ac_space=' '; set | grep ac_space) 2>&1` in
1998 # `set' does not quote correctly, so add quotes (double-quote substitution
1999 # turns \\\\ into \\, and sed turns \\ into \).
2001 -e "s/'/'\\\\''/g" \
2002 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2005 # `set' quotes correctly as required by POSIX, so do not add quotes.
2006 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2009 if cmp -s $cache_file confcache
; then
2012 if test -w $cache_file; then
2013 echo "updating cache $cache_file"
2014 cat confcache
> $cache_file
2016 echo "not updating unwritable cache $cache_file"
2021 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
2023 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
2024 # Let make expand exec_prefix.
2025 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
2027 # Any assignment to VPATH causes Sun make to only execute
2028 # the first set of double-colon rules, so remove it if not needed.
2029 # If there is a colon in the path, we need to keep it.
2030 if test "x$srcdir" = x.
; then
2031 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
2034 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
2036 DEFS
=-DHAVE_CONFIG_H
2038 # Without the "./", some shells look in PATH for config.status.
2039 : ${CONFIG_STATUS=./config.status}
2041 echo creating
$CONFIG_STATUS
2042 rm -f $CONFIG_STATUS
2043 cat > $CONFIG_STATUS <<EOF
2045 # Generated automatically by configure.
2046 # Run this file to recreate the current configuration.
2047 # This directory was configured as follows,
2048 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
2050 # $0 $ac_configure_args
2052 # Compiler output produced by configure, useful for debugging
2053 # configure, is in ./config.log if it exists.
2055 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
2058 case "\$ac_option" in
2059 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
2060 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
2061 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
2062 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
2063 echo "$CONFIG_STATUS generated by autoconf version 2.12"
2065 -help | --help | --hel | --he | --h)
2066 echo "\$ac_cs_usage"; exit 0 ;;
2067 *) echo "\$ac_cs_usage"; exit 1 ;;
2071 ac_given_srcdir=$srcdir
2072 ac_given_INSTALL="$INSTALL"
2074 trap 'rm -fr `echo "config.make glibcbug ${config_makefile} ${config_uname} config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
2076 cat >> $CONFIG_STATUS <<EOF
2078 # Protect against being on the right side of a sed subst in config.status.
2079 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
2080 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
2083 s%@CFLAGS@%$CFLAGS%g
2084 s%@CPPFLAGS@%$CPPFLAGS%g
2085 s%@CXXFLAGS@%$CXXFLAGS%g
2087 s%@LDFLAGS@%$LDFLAGS%g
2089 s%@exec_prefix@%$exec_prefix%g
2090 s%@prefix@%$prefix%g
2091 s%@program_transform_name@%$program_transform_name%g
2092 s%@bindir@%$bindir%g
2093 s%@sbindir@%$sbindir%g
2094 s%@libexecdir@%$libexecdir%g
2095 s%@datadir@%$datadir%g
2096 s%@sysconfdir@%$sysconfdir%g
2097 s%@sharedstatedir@%$sharedstatedir%g
2098 s%@localstatedir@%$localstatedir%g
2099 s%@libdir@%$libdir%g
2100 s%@includedir@%$includedir%g
2101 s%@oldincludedir@%$oldincludedir%g
2102 s%@infodir@%$infodir%g
2103 s%@mandir@%$mandir%g
2104 s%@subdirs@%$subdirs%g
2106 s%@host_alias@%$host_alias%g
2107 s%@host_cpu@%$host_cpu%g
2108 s%@host_vendor@%$host_vendor%g
2109 s%@host_os@%$host_os%g
2110 s%@base_machine@%$base_machine%g
2111 s%@sysnames@%$sysnames%g
2112 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
2113 s%@INSTALL_DATA@%$INSTALL_DATA%g
2115 s%@MSGFMT@%$MSGFMT%g
2117 s%@build_alias@%$build_alias%g
2118 s%@build_cpu@%$build_cpu%g
2119 s%@build_vendor@%$build_vendor%g
2120 s%@build_os@%$build_os%g
2122 s%@BUILD_CC@%$BUILD_CC%g
2125 s%@RANLIB@%$RANLIB%g
2127 s%@libc_cv_have_bash2@%$libc_cv_have_bash2%g
2129 s%@libc_cv_have_ksh@%$libc_cv_have_ksh%g
2130 s%@libc_cv_have_initfini@%$libc_cv_have_initfini%g
2131 s%@libc_cv_ld_no_whole_archive@%$libc_cv_ld_no_whole_archive%g
2132 s%@libc_cv_gcc_no_exceptions@%$libc_cv_gcc_no_exceptions%g
2133 s%@uname_sysname@%$uname_sysname%g
2134 s%@uname_release@%$uname_release%g
2135 s%@uname_version@%$uname_version%g
2137 s%@libc_cv_slibdir@%$libc_cv_slibdir%g
2138 s%@libc_cv_sysconfdir@%$libc_cv_sysconfdir%g
2139 s%@libc_cv_rootsbindir@%$libc_cv_rootsbindir%g
2140 s%@has_ldconfig@%$has_ldconfig%g
2141 s%@gnu_ld@%$gnu_ld%g
2142 s%@gnu_as@%$gnu_as%g
2144 s%@shared@%$shared%g
2145 s%@profile@%$profile%g
2146 s%@omitfp@%$omitfp%g
2147 s%@DEFINES@%$DEFINES%g
2148 s%@VERSION@%$VERSION%g
2153 cat >> $CONFIG_STATUS <<\EOF
2155 # Split the substitutions into bite-sized pieces for seds with
2156 # small command number limits, like on Digital OSF/1 and HP-UX.
2157 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
2158 ac_file
=1 # Number of current file.
2159 ac_beg
=1 # First line for current file.
2160 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
2163 while $ac_more_lines; do
2164 if test $ac_beg -gt 1; then
2165 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
2167 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
2169 if test ! -s conftest.s
$ac_file; then
2171 rm -f conftest.s
$ac_file
2173 if test -z "$ac_sed_cmds"; then
2174 ac_sed_cmds
="sed -f conftest.s$ac_file"
2176 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
2178 ac_file
=`expr $ac_file + 1`
2180 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
2183 if test -z "$ac_sed_cmds"; then
2188 cat >> $CONFIG_STATUS <<EOF
2190 CONFIG_FILES=\${CONFIG_FILES-"config.make glibcbug ${config_makefile} ${config_uname}"}
2192 cat >> $CONFIG_STATUS <<\EOF
2193 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
2194 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2196 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
2197 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
2198 *) ac_file_in
="${ac_file}.in" ;;
2201 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
2203 # Remove last slash and all that follows it. Not all systems have dirname.
2204 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2205 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
2206 # The file is in a subdirectory.
2207 test ! -d "$ac_dir" && mkdir
"$ac_dir"
2208 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
2209 # A "../" for each directory in $ac_dir_suffix.
2210 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
2212 ac_dir_suffix
= ac_dots
=
2215 case "$ac_given_srcdir" in
2217 if test -z "$ac_dots"; then top_srcdir
=.
2218 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
2219 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
2221 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
2222 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
2225 case "$ac_given_INSTALL" in
2226 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
2227 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
2230 echo creating
"$ac_file"
2232 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
2234 *Makefile
*) ac_comsub
="1i\\
2235 # $configure_input" ;;
2239 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2241 s%@configure_input@%$configure_input%g
2242 s%@srcdir@%$srcdir%g
2243 s%@top_srcdir@%$top_srcdir%g
2244 s%@INSTALL@%$INSTALL%g
2245 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
2249 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
2250 # NAME is the cpp macro being defined and VALUE is the value it is being given.
2252 # ac_d sets the value in "#define NAME VALUE" lines.
2253 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
2254 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
2257 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
2258 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
2259 ac_uB
='\([ ]\)%\1#\2define\3'
2262 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
2263 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
2264 ac_eB
='$%\1#\2define\3'
2268 if test "${CONFIG_HEADERS+set}" != set; then
2270 cat >> $CONFIG_STATUS <<EOF
2271 CONFIG_HEADERS="config.h"
2273 cat >> $CONFIG_STATUS <<\EOF
2275 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
2276 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2278 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
2279 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
2280 *) ac_file_in
="${ac_file}.in" ;;
2283 echo creating
$ac_file
2285 rm -f conftest.frag conftest.
in conftest.out
2286 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2287 cat $ac_file_inputs > conftest.
in
2291 # Transform confdefs.h into a sed script conftest.vals that substitutes
2292 # the proper values into config.h.in to produce config.h. And first:
2293 # Protect against being on the right side of a sed subst in config.status.
2294 # Protect against being in an unquoted here document in config.status.
2296 cat > conftest.hdr
<<\EOF
2299 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
2303 sed -n -f conftest.hdr confdefs.h > conftest.vals
2306 # This sed command replaces #undef with comments. This is necessary, for
2307 # example, in the case of _POSIX_SOURCE, which is predefined and required
2308 # on some systems where configure will not decide to define it.
2309 cat >> conftest.vals <<\EOF
2310 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
2313 # Break up conftest.vals because some shells have a limit on
2314 # the size of here documents, and old seds have small limits too.
2319 ac_lines=`grep -c . conftest.vals
`
2320 # grep -c gives empty output for an empty file on some AIX systems.
2321 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
2322 # Write a limited-size here document to conftest.frag.
2323 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
2324 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
2326 sed -f conftest.frag conftest.in > conftest.out
2328 mv conftest.out conftest.in
2330 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
2332 mv conftest.tail conftest.vals
2336 cat >> $CONFIG_STATUS <<\EOF
2337 rm -f conftest.frag conftest.h
2338 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
2339 cat conftest.in >> conftest.h
2341 if cmp -s $ac_file conftest.h 2>/dev/null; then
2342 echo "$ac_file is unchanged"
2345 # Remove last slash and all that follows it. Not all systems have dirname.
2346 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
2347 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2348 # The file is in a subdirectory.
2349 test ! -d "$ac_dir" && mkdir "$ac_dir"
2352 mv conftest.h $ac_file
2358 cat >> $CONFIG_STATUS <<EOF
2359 ac_sources="`echo $libc_link_sources`"
2360 ac_dests="`echo $libc_link_dests`"
2363 cat >> $CONFIG_STATUS <<\EOF
2364 srcdir=$ac_given_srcdir
2365 while test -n "$ac_sources"; do
2366 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
2367 set $ac_sources; ac_source=$1; shift; ac_sources=$*
2369 echo "linking $srcdir/$ac_source to $ac_dest"
2371 if test ! -r $srcdir/$ac_source; then
2372 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
2376 # Make relative symlinks.
2377 # Remove last slash and all that follows it. Not all systems have dirname.
2378 ac_dest_dir=`echo $ac_dest|
sed 's%/[^/][^/]*$%%'`
2379 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
2380 # The dest file is in a subdirectory.
2381 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
2382 ac_dest_dir_suffix="/`echo $ac_dest_dir|
sed 's%^\./%%'`"
2383 # A "../" for each directory in $ac_dest_dir_suffix.
2384 ac_dots=`echo $ac_dest_dir_suffix|
sed 's%/[^/]*%../%g'`
2386 ac_dest_dir_suffix= ac_dots=
2390 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
2391 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
2394 # Make a symlink if possible; otherwise try a hard link.
2395 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
2396 ln $srcdir/$ac_source $ac_dest; then :
2398 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
2402 cat >> $CONFIG_STATUS <<EOF
2403 echo '$config_vars' >> config.make
2405 cat >> $CONFIG_STATUS <<\EOF
2409 chmod +x $CONFIG_STATUS
2410 rm -fr confdefs* $ac_clean_files
2411 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
2413 if test "$no_recursion" != yes; then
2415 # Remove --cache-file and --srcdir arguments so they do not pile up.
2416 ac_sub_configure_args=
2418 for ac_arg in $ac_configure_args; do
2419 if test -n "$ac_prev"; then
2424 -cache-file | --cache-file | --cache-fil | --cache-fi \
2425 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
2426 ac_prev=cache_file ;;
2427 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
2428 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
2430 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
2432 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
2434 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
2438 for ac_config_dir in $add_ons; do
2440 # Do not complain, so a configure script can configure whichever
2441 # parts of a large source tree are present.
2442 if test ! -d $srcdir/$ac_config_dir; then
2446 echo configuring in $ac_config_dir
2451 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
2453 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
2461 # A "../" for each directory in /$ac_config_dir.
2462 ac_dots=`echo $ac_config_dir|
sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
2465 .) # No --srcdir option. We are building in place.
2466 ac_sub_srcdir=$srcdir ;;
2467 /*) # Absolute path.
2468 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
2470 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
2473 # Check for guested configure; otherwise get Cygnus style configure.
2474 if test -f $ac_sub_srcdir/configure; then
2475 ac_sub_configure=$ac_sub_srcdir/configure
2476 elif test -f $ac_sub_srcdir/configure.in; then
2477 ac_sub_configure=$ac_configure
2479 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
2483 # The recursion is here.
2484 if test -n "$ac_sub_configure"; then
2486 # Make the cache file name correct relative to the subdirectory.
2487 case "$cache_file" in
2488 /*) ac_sub_cache_file=$cache_file ;;
2490 ac_sub_cache_file="$ac_dots$cache_file" ;;
2492 case "$ac_given_INSTALL" in
2493 [/$]*) INSTALL="$ac_given_INSTALL" ;;
2494 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
2497 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
2498 # The eval makes quoting arguments work.
2499 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
2502 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }