3 # From configure.in CVSid
4 # Guess values for system-dependent variables and create Makefiles.
5 # Generated automatically using autoconf version 2.11
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 --enable-shared build shared library [default=yes if GNU ld & ELF]"
34 --enable-profile build profiled library [default=yes]"
36 --enable-omitfp build undebuggable optimized library [default=no]"
38 --enable-add-ons=DIR... configure and build named extra directories"
40 # Initialize some variables set by options.
41 # The variables have the same names as the options, with
42 # dashes changed to underlines.
44 cache_file
=.
/config.cache
53 program_transform_name
=s
,x
,x
,
61 bindir
='${exec_prefix}/bin'
62 sbindir
='${exec_prefix}/sbin'
63 libexecdir
='${exec_prefix}/libexec'
64 datadir
='${prefix}/share'
65 sysconfdir
='${prefix}/etc'
66 sharedstatedir
='${prefix}/com'
67 localstatedir
='${prefix}/var'
68 libdir
='${exec_prefix}/lib'
69 includedir
='${prefix}/include'
70 oldincludedir
='/usr/include'
71 infodir
='${prefix}/info'
72 mandir
='${prefix}/man'
74 # Initialize some other variables.
77 # Maximum number of lines to put in a shell here document.
84 # If the previous option needs an argument, assign it.
85 if test -n "$ac_prev"; then
86 eval "$ac_prev=\$ac_option"
92 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
96 # Accept the important Cygnus configure options, so we can diagnose typos.
100 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
102 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
103 bindir
="$ac_optarg" ;;
105 -build |
--build |
--buil |
--bui |
--bu)
107 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
108 build
="$ac_optarg" ;;
110 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
111 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
112 ac_prev
=cache_file
;;
113 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
114 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
115 cache_file
="$ac_optarg" ;;
117 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
119 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
121 datadir
="$ac_optarg" ;;
123 -disable-* |
--disable-*)
124 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
125 # Reject names that are not valid shell variable names.
126 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
127 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
129 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
130 eval "enable_${ac_feature}=no" ;;
132 -enable-* |
--enable-*)
133 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
134 # Reject names that are not valid shell variable names.
135 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
136 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
138 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
143 eval "enable_${ac_feature}='$ac_optarg'" ;;
145 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
146 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
147 |
--exec |
--exe |
--ex)
148 ac_prev
=exec_prefix
;;
149 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
150 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
151 |
--exec=* |
--exe=* |
--ex=*)
152 exec_prefix
="$ac_optarg" ;;
154 -gas |
--gas |
--ga |
--g)
155 # Obsolete; use --with-gas.
158 -help |
--help |
--hel |
--he)
159 # Omit some internal or obsolete options to make the list less imposing.
160 # This message is too long to be a string in the A/UX 3.1 sh.
162 Usage: configure [options] [host]
163 Options: [defaults in brackets after descriptions]
165 --cache-file=FILE cache test results in FILE
166 --help print this message
167 --no-create do not create output files
168 --quiet, --silent do not print \`checking...' messages
169 --version print the version of autoconf that created configure
170 Directory and file names:
171 --prefix=PREFIX install architecture-independent files in PREFIX
173 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
175 --bindir=DIR user executables in DIR [EPREFIX/bin]
176 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
177 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
178 --datadir=DIR read-only architecture-independent data in DIR
180 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
181 --sharedstatedir=DIR modifiable architecture-independent data in DIR
183 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
184 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
185 --includedir=DIR C header files in DIR [PREFIX/include]
186 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
187 --infodir=DIR info documentation in DIR [PREFIX/info]
188 --mandir=DIR man documentation in DIR [PREFIX/man]
189 --srcdir=DIR find the sources in DIR [configure dir or ..]
190 --program-prefix=PREFIX prepend PREFIX to installed program names
191 --program-suffix=SUFFIX append SUFFIX to installed program names
192 --program-transform-name=PROGRAM
193 run sed PROGRAM on installed program names
197 --build=BUILD configure for building on BUILD [BUILD=HOST]
198 --host=HOST configure for HOST [guessed]
199 --target=TARGET configure for TARGET [TARGET=HOST]
200 Features and packages:
201 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
202 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
203 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
204 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
205 --x-includes=DIR X include files are in DIR
206 --x-libraries=DIR X library files are in DIR
208 if test -n "$ac_help"; then
209 echo "--enable and --with options recognized:$ac_help"
213 -host |
--host |
--hos |
--ho)
215 -host=* |
--host=* |
--hos=* |
--ho=*)
218 -includedir |
--includedir |
--includedi |
--included |
--include \
219 |
--includ |
--inclu |
--incl |
--inc)
220 ac_prev
=includedir
;;
221 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
222 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
223 includedir
="$ac_optarg" ;;
225 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
227 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
228 infodir
="$ac_optarg" ;;
230 -libdir |
--libdir |
--libdi |
--libd)
232 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
233 libdir
="$ac_optarg" ;;
235 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
236 |
--libexe |
--libex |
--libe)
237 ac_prev
=libexecdir
;;
238 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
239 |
--libexe=* |
--libex=* |
--libe=*)
240 libexecdir
="$ac_optarg" ;;
242 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
243 |
--localstate |
--localstat |
--localsta |
--localst \
244 |
--locals |
--local |
--loca |
--loc |
--lo)
245 ac_prev
=localstatedir
;;
246 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
247 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
248 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
249 localstatedir
="$ac_optarg" ;;
251 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
253 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
254 mandir
="$ac_optarg" ;;
257 # Obsolete; use --without-fp.
260 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
264 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
265 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
268 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
269 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
270 |
--oldin |
--oldi |
--old |
--ol |
--o)
271 ac_prev
=oldincludedir
;;
272 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
273 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
274 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
275 oldincludedir
="$ac_optarg" ;;
277 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
279 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
280 prefix
="$ac_optarg" ;;
282 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
283 |
--program-pre |
--program-pr |
--program-p)
284 ac_prev
=program_prefix
;;
285 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
286 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
287 program_prefix
="$ac_optarg" ;;
289 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
290 |
--program-suf |
--program-su |
--program-s)
291 ac_prev
=program_suffix
;;
292 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
293 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
294 program_suffix
="$ac_optarg" ;;
296 -program-transform-name |
--program-transform-name \
297 |
--program-transform-nam |
--program-transform-na \
298 |
--program-transform-n |
--program-transform- \
299 |
--program-transform |
--program-transfor \
300 |
--program-transfo |
--program-transf \
301 |
--program-trans |
--program-tran \
302 |
--progr-tra |
--program-tr |
--program-t)
303 ac_prev
=program_transform_name
;;
304 -program-transform-name=* |
--program-transform-name=* \
305 |
--program-transform-nam=* |
--program-transform-na=* \
306 |
--program-transform-n=* |
--program-transform-=* \
307 |
--program-transform=* |
--program-transfor=* \
308 |
--program-transfo=* |
--program-transf=* \
309 |
--program-trans=* |
--program-tran=* \
310 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
311 program_transform_name
="$ac_optarg" ;;
313 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
314 |
-silent |
--silent |
--silen |
--sile |
--sil)
317 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
319 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
321 sbindir
="$ac_optarg" ;;
323 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
324 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
325 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
327 ac_prev
=sharedstatedir
;;
328 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
329 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
330 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
332 sharedstatedir
="$ac_optarg" ;;
334 -site |
--site |
--sit)
336 -site=* |
--site=* |
--sit=*)
339 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
341 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
342 srcdir
="$ac_optarg" ;;
344 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
345 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
346 ac_prev
=sysconfdir
;;
347 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
348 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
349 sysconfdir
="$ac_optarg" ;;
351 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
353 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
354 target
="$ac_optarg" ;;
356 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
359 -version |
--version |
--versio |
--versi |
--vers)
360 echo "configure generated by autoconf version 2.11"
364 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
365 # Reject names that are not valid shell variable names.
366 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
367 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
369 ac_package
=`echo $ac_package| sed 's/-/_/g'`
374 eval "with_${ac_package}='$ac_optarg'" ;;
376 -without-* |
--without-*)
377 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
378 # Reject names that are not valid shell variable names.
379 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
380 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
382 ac_package
=`echo $ac_package| sed 's/-/_/g'`
383 eval "with_${ac_package}=no" ;;
386 # Obsolete; use --with-x.
389 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
390 |
--x-incl |
--x-inc |
--x-in |
--x-i)
391 ac_prev
=x_includes
;;
392 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
393 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
394 x_includes
="$ac_optarg" ;;
396 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
397 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
398 ac_prev
=x_libraries
;;
399 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
400 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
401 x_libraries
="$ac_optarg" ;;
403 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
407 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
408 echo "configure: warning: $ac_option: invalid host type" 1>&2
410 if test "x$nonopt" != xNONE
; then
411 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
419 if test -n "$ac_prev"; then
420 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
423 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
425 # File descriptor usage:
428 # 2 errors and warnings
429 # 3 some systems may open it to /dev/tty
430 # 4 used on the Kubota Titan
431 # 6 checking for... messages and results
432 # 5 compiler messages saved in config.log
433 if test "$silent" = yes; then
441 This file contains any messages produced by compilers while
442 running configure, to aid debugging if configure makes a mistake.
445 # Strip out --no-create and --no-recursion so they do not pile up.
446 # Also quote any args containing shell metacharacters.
451 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
452 |
--no-cr |
--no-c) ;;
453 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
454 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
455 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
456 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
457 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
462 # Only set LANG and LC_ALL to C if already set.
463 # These must not be set unconditionally because not all systems understand
464 # e.g. LANG=C (notably SCO).
465 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
466 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
468 # confdefs.h avoids OS command line length limits that DEFS can exceed.
469 rm -rf conftest
* confdefs.h
470 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
473 # A filename unique to this package, relative to the directory that
474 # configure is in, which we can look for to find out if srcdir is correct.
475 ac_unique_file
=features.h
477 # Find the source files, if location was not specified.
478 if test -z "$srcdir"; then
479 ac_srcdir_defaulted
=yes
480 # Try the directory containing this script, then its parent.
482 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
483 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
485 if test ! -r $srcdir/$ac_unique_file; then
489 ac_srcdir_defaulted
=no
491 if test ! -r $srcdir/$ac_unique_file; then
492 if test "$ac_srcdir_defaulted" = yes; then
493 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
495 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
498 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
500 # Prefer explicitly selected file to automatically selected ones.
501 if test -z "$CONFIG_SITE"; then
502 if test "x$prefix" != xNONE
; then
503 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
505 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
508 for ac_site_file
in $CONFIG_SITE; do
509 if test -r "$ac_site_file"; then
510 echo "loading site script $ac_site_file"
515 if test -r "$cache_file"; then
516 echo "loading cache $cache_file"
519 echo "creating cache $cache_file"
524 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
525 ac_cpp
='$CPP $CPPFLAGS'
526 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
527 ac_link
='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
529 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
530 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
531 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
538 ac_n
= ac_c
='\c' ac_t
=
541 if test -r /vmunix
; then
542 kernel_id
=`strings /vmunix | grep UNIX`
543 elif test -r /dynix
; then
544 kernel_id
=`strings /dynix | grep DYNIX`
552 # This will get text that should go into config.make.
555 # Check for a --with-gmp argument and set gmp-srcdir in config.make.
556 # Check whether --with-gmp or --without-gmp was given.
557 if test "${with_gmp+set}" = set; then
560 yes) { echo "configure: error: --with-gmp requires an argument; use --with-gmp=DIRECTORY" 1>&2; exit 1; } ;;
562 *) config_vars
="$config_vars
563 gmp-srcdir = $withval" ;;
568 # Check for a --with-gettext argument and set gettext-srcdir in config.make.
569 # Check whether --with-gettext or --without-gettext was given.
570 if test "${with_gettext+set}" = set; then
571 withval
="$with_gettext"
572 case "$with_gettext" in
574 { echo "configure: error: --with-gettext requires an argument; use --with-gettext=DIR" 1>&2; exit 1; } ;;
577 config_vars
="$config_vars
578 gettext-srcdir = $withval" ;;
584 # Check whether --with-fp or --without-fp was given.
585 if test "${with_fp+set}" = set; then
592 # Check whether --with-gnu-binutils or --without-gnu-binutils was given.
593 if test "${with_gnu_binutils+set}" = set; then
594 withval
="$with_gnu_binutils"
595 gnu_binutils
=$withval
600 # Check whether --with-gnu-ld or --without-gnu-ld was given.
601 if test "${with_gnu_ld+set}" = set; then
602 withval
="$with_gnu_ld"
608 # Check whether --with-gnu-as or --without-gnu-as was given.
609 if test "${with_gnu_as+set}" = set; then
610 withval
="$with_gnu_as"
616 test $gnu_binutils = yes && gnu_as
=yes gnu_ld
=yes
617 # Check whether --with-elf or --without-elf was given.
618 if test "${with_elf+set}" = set; then
626 # Check whether --enable-libio or --disable-libio was given.
627 if test "${enable_libio+set}" = set; then
628 enableval
="$enable_libio"
629 if test $enableval = yes; then
639 # Check whether --enable-shared or --disable-shared was given.
640 if test "${enable_shared+set}" = set; then
641 enableval
="$enable_shared"
647 # Check whether --enable-profile or --disable-profile was given.
648 if test "${enable_profile+set}" = set; then
649 enableval
="$enable_profile"
655 # Check whether --enable-omitfp or --disable-omitfp was given.
656 if test "${enable_omitfp+set}" = set; then
657 enableval
="$enable_omitfp"
664 # Check whether --enable-add-ons or --disable-add-ons was given.
665 if test "${enable_add_ons+set}" = set; then
666 enableval
="$enable_add_ons"
667 add_ons
=`echo "$enableval" | sed 's/,/ /g'`
673 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
674 if test -f $ac_dir/install-sh
; then
676 ac_install_sh
="$ac_aux_dir/install-sh -c"
678 elif test -f $ac_dir/install.sh
; then
680 ac_install_sh
="$ac_aux_dir/install.sh -c"
684 if test -z "$ac_aux_dir"; then
685 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
687 ac_config_guess
=$ac_aux_dir/config.guess
688 ac_config_sub
=$ac_aux_dir/config.sub
689 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
694 if test x
"$add_ons" != x
; then
695 for f
in $add_ons; do
696 add_ons_pfx
="$add_ons_pfx $f/"
701 # Make sure we can run config.sub.
702 if $ac_config_sub sun4
>/dev
/null
2>&1; then :
703 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
706 echo $ac_n "checking host system type""... $ac_c" 1>&6
707 echo "configure:708: checking host system type" >&5
710 case "$host_alias" in
714 if host_alias
=`$ac_config_guess`; then :
715 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
717 *) host_alias
=$nonopt ;;
721 host=`$ac_config_sub $host_alias`
722 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
723 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
724 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
725 echo "$ac_t""$host" 1>&6
728 # The way shlib-versions is used to generate soversions.mk uses a
729 # fairly simplistic model for name recognition that can't distinguish
730 # i486-pc-linux-gnu fully from i486-pc-gnu. So we mutate a $host_os
731 # of `gnu*' here to be `gnu-gnu*' just so that shlib-versions can
732 # tell. This doesn't get used much beyond that, so it's fairly safe.
737 host_os
=`echo $host_os | sed -e 's/gnu/gnu-gnu/'`
741 # We keep the original values in `$config_*' and never modify them, so we
742 # can write them unchanged into config.make. Everything else uses
743 # $machine, $vendor, and $os, and changes them whenever convenient.
744 config_machine
=$host_cpu config_vendor
=$host_vendor config_os
=$host_os
746 # Some configurations imply other options.
748 gnu
* | linux
* | bsd4.4
* | netbsd
* | freebsd
*)
749 # These systems always use GNU tools.
750 gnu_ld
=yes gnu_as
=yes ;;
755 gnu
* | linux
* | sysv4
* | solaris2
*)
756 # These systems (almost) always use the ELF format.
761 machine
=$config_machine
762 vendor
=$config_vendor
765 # Expand the configuration machine name into a subdirectory by architecture
766 # type and particular chip.
768 a29k | am29000
) base_machine
=a29k machine
=a29k
;;
769 alpha
*) base_machine
=alpha machine
=alpha
/$machine ;;
770 hppa
*) base_machine
=hppa machine
=hppa
/$machine ;;
771 i
[3456]86) base_machine
=i386 machine
=i386
/$machine ;;
772 m680?
0) base_machine
=m68k machine
=m68k
/$machine ;;
773 m68k
) base_machine
=m68k machine
=m68k
/m68020
;;
774 m88???
) base_machine
=m88k machine
=m88k
/$machine ;;
775 m88k
) base_machine
=m88k machine
=m88k
/m88100
;;
776 mips
*) base_machine
=mips machine
=mips
/$machine ;;
777 mips64
*) base_machine
=mips64 machine
=mips
/mips64
/$machine ;;
778 sparc
[6789]) base_machine
=sparc machine
=sparc
/$machine ;;
779 supersparc
) base_machine
=sparc machine
=sparc
/sparc8
;;
783 # Compute the list of sysdep directories for this configuration.
784 # This can take a while to compute.
785 sysdep_dir
=$srcdir/sysdeps
786 echo $ac_n "checking sysdep dirs""... $ac_c" 1>&6
787 echo "configure:788: checking sysdep dirs" >&5
788 # Make sco3.2v4 become sco3.2.4 and sunos4.1.1_U1 become sunos4.1.1.U1.
789 os
="`echo $os | sed 's/\([0-9A-Z]\)[v_]\([0-9A-Z]\)/\1.\2/g'`"
794 netbsd
* |
386bsd
* | freebsd
* | bsdi
*)
795 base_os
=unix
/bsd
/bsd4.4
;;
796 osf
* | sunos
* | ultrix
* | newsos
* | dynix
* |
*bsd
*)
798 sysv
* | isc
* | esix
* | sco
* | minix
* | irix4
* | linux
*)
801 base_os
=unix
/sysv
/sysv4
;;
803 base_os
=standalone
;;
808 # For sunos4.1.1, try sunos4.1.1, then sunos4.1, then sunos4, then sunos.
811 while o
=`echo $tail | sed 's/\.[^.]*$//'`; test $o != $tail; do
815 o
=`echo $tail | sed 's/[0-9]*$//'`
816 if test $o != $tail; then
819 # For linux-gnu, try linux-gnu, then linux.
820 o
=`echo $tail | sed 's/-.*$//'`
821 if test $o != $tail; then
825 # For unix/sysv/sysv4, try unix/sysv/sysv4, then unix/sysv, then unix.
828 while b
=`echo $tail | sed 's@^\(.*\)/\([^/]*\)$@& \1@'`; test -n "$b"; do
834 # For sparc/sparc9, try sparc/sparc9 and then sparc.
837 while m
=`echo $tail | sed 's@^\(.*\)/\([^/]*\)$@& \1@'`; test -n "$m"; do
839 # Prepend the machine's FPU directory unless --without-fp.
840 if test "$with_fp" = yes; then
848 # Find what sysdep directories exist.
850 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
851 for d
in $add_ons_pfx ''; do
852 for b
in $base ''; do
853 for m0
in $mach ''; do
854 for v
in /$vendor ''; do
855 for o
in /$ostry ''; do
856 for m
in $mach ''; do
857 if test "$m0$b$v$o$m"; then
858 try
="${d}sysdeps$m0$b$v$o$m"
859 test -n "$enable_debug_configure" &&
860 echo "$0 DEBUG: try $try" >&2
863 *) dest
=$srcdir/$try ;;
865 if test -d $dest; then
866 sysnames
="$sysnames $try"
867 { test -n "$o" ||
test -n "$b"; } && os_used
=t
868 { test -n "$m" ||
test -n "$m0"; } && machine_used
=t
879 if test -z "$os_used" && test "$os" != none
; then
880 { echo "configure: error: Operating system $os is not supported." 1>&2; exit 1; }
882 if test -z "$machine_used" && test "$machine" != none
; then
883 { echo "configure: error: The $machine is not supported." 1>&2; exit 1; }
886 # We have now validated the configuration.
889 # If using ELF, look for an `elf' subdirectory of each machine directory.
890 # We prepend these rather than inserting them whereever the machine appears
891 # because things specified by the machine's ELF ABI should override
892 # OS-specific things, and should always be the same for any OS on the
893 # machine (otherwise what's the point of an ABI?).
894 if test "$elf" = yes; then
896 for d
in $add_ons_pfx ''; do
899 *) xsrcdir
=$srcdir/ ;;
902 if test -d $xsrcdir${d}sysdeps
$m/elf
; then
903 elf_dirs
="$elf_dirs ${d}sysdeps$m/elf"
907 sysnames
="`echo $elf_dirs | sed -e 's,//,/,g'` $sysnames"
911 # Expand the list of system names into a full list of directories
912 # from each element's parent name and Implies file (if present).
915 while test $# -gt 0; do
919 case " $names " in *" $name "*)
920 # Already in the list.
924 # Report each name as we discover it, so there is no long pause in output.
925 echo $ac_n "$name $ac_c" >&6
927 name_base
=`echo $name | sed -e 's@\(.*sysdeps\)/.*@\1@'`
931 *) xsrcdir
=$srcdir/ ;;
933 test -n "$enable_debug_configure" &&
934 echo "DEBUG: name/Implies $xsrcdir$name/Implies" >&2
936 if test -f $xsrcdir$name/Implies
; then
937 # Collect more names from the `Implies' file (removing comments).
938 implied_candidate
="`sed 's/#.*$//' < $xsrcdir$name/Implies`"
940 for x
in $implied_candidate; do
941 if test -d $xsrcdir$name_base/$x; then
942 implied
="$implied $name_base/$x";
944 echo "configure: warning: $name/Implies specifies nonexistent $x" 1>&2
951 # Add NAME to the list of names.
954 # Find the parent of NAME, using the empty string if it has none.
955 parent
="`echo $name | sed -n -e 's=/[^/]*$==' -e '/sysdeps$/q' -e p`"
957 # Add the names implied by NAME, and NAME's parent (if it has one), to
958 # the list of names to be processed (the argument list). We prepend the
959 # implied names to the list and append the parent. We want implied
960 # directories to come before further directories inferred from the
961 # configuration components; this ensures that for sysv4, unix/common
962 # (implied by unix/sysv/sysv4) comes before unix/sysv (in ostry (here $*)
964 sysnames
="`echo $implied $* $parent`"
965 test -n "$sysnames" && set $sysnames
968 # Add the default directories.
969 sysnames
="$names sysdeps/generic sysdeps/stub"
971 # The other names were emitted during the scan.
972 echo "$ac_t""sysdeps/generic sysdeps/stub" 1>&6
977 # Find a good install program. We prefer a C program (faster),
978 # so one script is as good as another. But avoid the broken or
979 # incompatible versions:
980 # SysV /etc/install, /usr/sbin/install
981 # SunOS /usr/etc/install
984 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
985 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
986 # ./install, which can be erroneously created by make from ./install.sh.
987 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
988 echo "configure:989: checking for a BSD compatible install" >&5
989 if test -z "$INSTALL"; then
990 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
991 echo $ac_n "(cached) $ac_c" 1>&6
993 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
994 for ac_dir
in $PATH; do
995 # Account for people who put trailing slashes in PATH elements.
997 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
999 # OSF1 and SCO ODT 3.0 have their own names for install.
1000 for ac_prog
in ginstall installbsd scoinst
install; do
1001 if test -f $ac_dir/$ac_prog; then
1002 if test $ac_prog = install &&
1003 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
1004 # AIX install. It has an incompatible calling convention.
1005 # OSF/1 installbsd also uses dspmsg, but is usable.
1008 ac_cv_path_install
="$ac_dir/$ac_prog -c"
1019 if test "${ac_cv_path_install+set}" = set; then
1020 INSTALL
="$ac_cv_path_install"
1022 # As a last resort, use the slow shell script. We don't cache a
1023 # path for INSTALL within a source directory, because that will
1024 # break other packages using the cache if that directory is
1025 # removed, or if the path is relative.
1026 INSTALL
="$ac_install_sh"
1029 echo "$ac_t""$INSTALL" 1>&6
1031 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1032 # It thinks the first close brace ends the variable substitution.
1033 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
1035 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
1037 if test "$INSTALL" = "${srcdir}/install-sh -c"; then
1038 # The makefiles need to use a different form to find it in $srcdir.
1039 INSTALL
='$(..)./install-sh -c'
1041 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1042 echo "configure:1043: checking whether ln -s works" >&5
1043 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1044 echo $ac_n "(cached) $ac_c" 1>&6
1047 if ln -s X conftestdata
2>/dev
/null
1050 ac_cv_prog_LN_S
="ln -s"
1055 LN_S
="$ac_cv_prog_LN_S"
1056 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1057 echo "$ac_t""yes" 1>&6
1059 echo "$ac_t""no" 1>&6
1062 for ac_prog
in msgfmt gmsgfmt
1064 # Extract the first word of "$ac_prog", so it can be a program name with args.
1065 set dummy
$ac_prog; ac_word
=$2
1066 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1067 echo "configure:1068: checking for $ac_word" >&5
1068 if eval "test \"`echo '$''{'ac_cv_prog_MSGFMT'+set}'`\" = set"; then
1069 echo $ac_n "(cached) $ac_c" 1>&6
1071 if test -n "$MSGFMT"; then
1072 ac_cv_prog_MSGFMT
="$MSGFMT" # Let the user override the test.
1074 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1075 for ac_dir
in $PATH; do
1076 test -z "$ac_dir" && ac_dir
=.
1077 if test -f $ac_dir/$ac_word; then
1078 ac_cv_prog_MSGFMT
="$ac_prog"
1085 MSGFMT
="$ac_cv_prog_MSGFMT"
1086 if test -n "$MSGFMT"; then
1087 echo "$ac_t""$MSGFMT" 1>&6
1089 echo "$ac_t""no" 1>&6
1092 test -n "$MSGFMT" && break
1094 test -n "$MSGFMT" || MSGFMT
=":"
1097 echo $ac_n "checking build system type""... $ac_c" 1>&6
1098 echo "configure:1099: checking build system type" >&5
1101 case "$build_alias" in
1104 NONE
) build_alias
=$host_alias ;;
1105 *) build_alias
=$nonopt ;;
1109 build
=`$ac_config_sub $build_alias`
1110 build_cpu
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1111 build_vendor
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1112 build_os
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1113 echo "$ac_t""$build" 1>&6
1115 if test $host != $build; then
1116 ac_tool_prefix
=${host_alias}-
1121 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1122 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
1123 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1124 echo "configure:1125: checking for $ac_word" >&5
1125 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1126 echo $ac_n "(cached) $ac_c" 1>&6
1128 if test -n "$CC"; then
1129 ac_cv_prog_CC
="$CC" # Let the user override the test.
1131 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1132 for ac_dir
in $PATH; do
1133 test -z "$ac_dir" && ac_dir
=.
1134 if test -f $ac_dir/$ac_word; then
1135 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
1140 test -z "$ac_cv_prog_CC" && ac_cv_prog_CC
="gcc"
1144 if test -n "$CC"; then
1145 echo "$ac_t""$CC" 1>&6
1147 echo "$ac_t""no" 1>&6
1152 if test $host != $build; then
1153 # Extract the first word of "gcc cc", so it can be a program name with args.
1154 set dummy gcc cc
; ac_word
=$2
1155 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1156 echo "configure:1157: checking for $ac_word" >&5
1157 if eval "test \"`echo '$''{'ac_cv_prog_BUILD_CC'+set}'`\" = set"; then
1158 echo $ac_n "(cached) $ac_c" 1>&6
1160 if test -n "$BUILD_CC"; then
1161 ac_cv_prog_BUILD_CC
="$BUILD_CC" # Let the user override the test.
1163 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1164 for ac_dir
in $PATH; do
1165 test -z "$ac_dir" && ac_dir
=.
1166 if test -f $ac_dir/$ac_word; then
1167 ac_cv_prog_BUILD_CC
=""
1174 BUILD_CC
="$ac_cv_prog_BUILD_CC"
1175 if test -n "$BUILD_CC"; then
1176 echo "$ac_t""$BUILD_CC" 1>&6
1178 echo "$ac_t""no" 1>&6
1182 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1183 echo "configure:1184: checking how to run the C preprocessor" >&5
1184 # On Suns, sometimes $CPP names a directory.
1185 if test -n "$CPP" && test -d "$CPP"; then
1188 if test -z "$CPP"; then
1189 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1190 echo $ac_n "(cached) $ac_c" 1>&6
1192 # This must be in double quotes, not single quotes, because CPP may get
1193 # substituted into the Makefile and "${CC-cc}" will confuse make.
1195 # On the NeXT, cc -E runs the code through the compiler's parser,
1196 # not just through cpp.
1197 cat > conftest.
$ac_ext <<EOF
1198 #line 1199 "configure"
1199 #include "confdefs.h"
1203 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1204 { (eval echo configure
:1205: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1205 ac_err
=`grep -v '^ *+' conftest.out`
1206 if test -z "$ac_err"; then
1210 echo "configure: failed program was:" >&5
1211 cat conftest.
$ac_ext >&5
1213 CPP
="${CC-cc} -E -traditional-cpp"
1214 cat > conftest.
$ac_ext <<EOF
1215 #line 1216 "configure"
1216 #include "confdefs.h"
1220 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1221 { (eval echo configure
:1222: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1222 ac_err
=`grep -v '^ *+' conftest.out`
1223 if test -z "$ac_err"; then
1227 echo "configure: failed program was:" >&5
1228 cat conftest.
$ac_ext >&5
1235 ac_cv_prog_CPP
="$CPP"
1237 CPP
="$ac_cv_prog_CPP"
1239 ac_cv_prog_CPP
="$CPP"
1241 echo "$ac_t""$CPP" 1>&6
1243 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
1244 set dummy
${ac_tool_prefix}ar; ac_word
=$2
1245 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1246 echo "configure:1247: checking for $ac_word" >&5
1247 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1248 echo $ac_n "(cached) $ac_c" 1>&6
1250 if test -n "$AR"; then
1251 ac_cv_prog_AR
="$AR" # Let the user override the test.
1253 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1254 for ac_dir
in $PATH; do
1255 test -z "$ac_dir" && ac_dir
=.
1256 if test -f $ac_dir/$ac_word; then
1257 ac_cv_prog_AR
="${ac_tool_prefix}ar"
1262 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR
="ar"
1266 if test -n "$AR"; then
1267 echo "$ac_t""$AR" 1>&6
1269 echo "$ac_t""no" 1>&6
1274 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1275 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
1276 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1277 echo "configure:1278: checking for $ac_word" >&5
1278 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1279 echo $ac_n "(cached) $ac_c" 1>&6
1281 if test -n "$RANLIB"; then
1282 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1284 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1285 for ac_dir
in $PATH; do
1286 test -z "$ac_dir" && ac_dir
=.
1287 if test -f $ac_dir/$ac_word; then
1288 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
1295 RANLIB
="$ac_cv_prog_RANLIB"
1296 if test -n "$RANLIB"; then
1297 echo "$ac_t""$RANLIB" 1>&6
1299 echo "$ac_t""no" 1>&6
1303 if test -z "$ac_cv_prog_RANLIB"; then
1304 if test -n "$ac_tool_prefix"; then
1305 # Extract the first word of "ranlib", so it can be a program name with args.
1306 set dummy ranlib
; ac_word
=$2
1307 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1308 echo "configure:1309: checking for $ac_word" >&5
1309 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1310 echo $ac_n "(cached) $ac_c" 1>&6
1312 if test -n "$RANLIB"; then
1313 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1315 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1316 for ac_dir
in $PATH; do
1317 test -z "$ac_dir" && ac_dir
=.
1318 if test -f $ac_dir/$ac_word; then
1319 ac_cv_prog_RANLIB
="ranlib"
1324 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
1327 RANLIB
="$ac_cv_prog_RANLIB"
1328 if test -n "$RANLIB"; then
1329 echo "$ac_t""$RANLIB" 1>&6
1331 echo "$ac_t""no" 1>&6
1340 # Extract the first word of "bash", so it can be a program name with args.
1341 set dummy bash
; ac_word
=$2
1342 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1343 echo "configure:1344: checking for $ac_word" >&5
1344 if eval "test \"`echo '$''{'ac_cv_path_BASH'+set}'`\" = set"; then
1345 echo $ac_n "(cached) $ac_c" 1>&6
1349 ac_cv_path_BASH
="$BASH" # Let the user override the test with a path.
1352 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1353 for ac_dir
in $PATH; do
1354 test -z "$ac_dir" && ac_dir
=.
1355 if test -f $ac_dir/$ac_word; then
1356 ac_cv_path_BASH
="$ac_dir/$ac_word"
1361 test -z "$ac_cv_path_BASH" && ac_cv_path_BASH
="no"
1365 BASH
="$ac_cv_path_BASH"
1366 if test -n "$BASH"; then
1367 echo "$ac_t""$BASH" 1>&6
1369 echo "$ac_t""no" 1>&6
1372 if test "$BASH" != no
&& $BASH -c 'test "$BASH_VERSINFO" -ge 2'; then
1373 libc_cv_have_bash2
=yes
1375 libc_cv_have_bash2
=no
1379 echo $ac_n "checking for signed size_t type""... $ac_c" 1>&6
1380 echo "configure:1381: checking for signed size_t type" >&5
1381 if eval "test \"`echo '$''{'libc_cv_signed_size_t'+set}'`\" = set"; then
1382 echo $ac_n "(cached) $ac_c" 1>&6
1384 echo '#include <stddef.h>
1385 FOOBAR __SIZE_TYPE__ FOOBAR' > conftest.c
1386 if eval "$ac_cpp conftest.c 2>/dev/null" \
1387 |
grep '^FOOBAR.*unsigned.*FOOBAR$' >/dev
/null
; then
1388 libc_cv_signed_size_t
=no
1390 libc_cv_signed_size_t
=yes
1395 echo "$ac_t""$libc_cv_signed_size_t" 1>&6
1396 if test $libc_cv_signed_size_t = yes; then
1397 cat >> confdefs.h
<<\EOF
1398 #undef __SIZE_TYPE__
1399 #define __SIZE_TYPE__ unsigned
1403 echo $ac_n "checking for libc-friendly stddef.h""... $ac_c" 1>&6
1404 echo "configure:1405: checking for libc-friendly stddef.h" >&5
1405 if eval "test \"`echo '$''{'libc_cv_friendly_stddef'+set}'`\" = set"; then
1406 echo $ac_n "(cached) $ac_c" 1>&6
1408 cat > conftest.
$ac_ext <<EOF
1409 #line 1410 "configure"
1410 #include "confdefs.h"
1411 #define __need_size_t
1412 #define __need_wchar_t
1417 size_t size; wchar_t wchar;
1419 #error stddef.h ignored __need_*
1421 if (&size == NULL || &wchar == NULL) abort ();
1424 if { (eval echo configure
:1425: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1426 libc_cv_friendly_stddef
=yes
1428 echo "configure: failed program was:" >&5
1429 cat conftest.
$ac_ext >&5
1431 libc_cv_friendly_stddef
=no
1437 echo "$ac_t""$libc_cv_friendly_stddef" 1>&6
1438 if test $libc_cv_friendly_stddef = yes; then
1439 config_vars
="$config_vars
1440 override stddef.h = # The installed <stddef.h> seems to be libc-friendly."
1443 echo $ac_n "checking whether we need to use -P to assemble .S files""... $ac_c" 1>&6
1444 echo "configure:1445: checking whether we need to use -P to assemble .S files" >&5
1445 if eval "test \"`echo '$''{'libc_cv_need_minus_P'+set}'`\" = set"; then
1446 echo $ac_n "(cached) $ac_c" 1>&6
1448 cat > conftest.S
<<EOF
1449 #include "confdefs.h"
1450 /* Nothing whatsoever. */
1452 if ${CC-cc} $CFLAGS -c conftest.S
2>/dev
/null
; then
1453 libc_cv_need_minus_P
=no
1455 libc_cv_need_minus_P
=yes
1460 echo "$ac_t""$libc_cv_need_minus_P" 1>&6
1461 if test $libc_cv_need_minus_P = yes; then
1462 config_vars
="$config_vars
1463 asm-CPPFLAGS = -P # The assembler can't grok cpp's # line directives."
1466 echo $ac_n "checking for assembler global-symbol directive""... $ac_c" 1>&6
1467 echo "configure:1468: checking for assembler global-symbol directive" >&5
1468 if eval "test \"`echo '$''{'libc_cv_asm_global_directive'+set}'`\" = set"; then
1469 echo $ac_n "(cached) $ac_c" 1>&6
1471 libc_cv_asm_global_directive
=UNKNOWN
1472 for ac_globl
in .globl .global
; do
1473 cat > conftest.s
<<EOF
1478 if ${CC-cc} $CFLAGS -c conftest.s
2>/dev
/null
; then
1479 libc_cv_asm_global_directive
=${ac_globl}
1482 test $libc_cv_asm_global_directive != UNKNOWN
&& break
1486 echo "$ac_t""$libc_cv_asm_global_directive" 1>&6
1487 if test $libc_cv_asm_global_directive = UNKNOWN
; then
1488 { echo "configure: error: cannot determine asm global directive" 1>&2; exit 1; }
1490 cat >> confdefs.h
<<EOF
1491 #define ASM_GLOBAL_DIRECTIVE ${libc_cv_asm_global_directive}
1496 echo $ac_n "checking for .set assembler directive""... $ac_c" 1>&6
1497 echo "configure:1498: checking for .set assembler directive" >&5
1498 if eval "test \"`echo '$''{'libc_cv_asm_set_directive'+set}'`\" = set"; then
1499 echo $ac_n "(cached) $ac_c" 1>&6
1501 cat > conftest.s
<<EOF
1504 .set glibc_conftest_frobozz,foo
1505 $libc_cv_asm_global_directive glibc_conftest_frobozz
1507 # The alpha-dec-osf1 assembler gives only a warning for `.set'
1508 # (but it doesn't work), so we must do a linking check to be sure.
1509 cat > conftest1.c
<<\EOF
1510 extern int glibc_conftest_frobozz
;
1511 main
() { printf ("%d\n", glibc_conftest_frobozz
); }
1513 if ${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \
1514 -o conftest conftest.s conftest1.c
1>&5 2>&5; then
1515 libc_cv_asm_set_directive
=yes
1517 libc_cv_asm_set_directive
=no
1522 echo "$ac_t""$libc_cv_asm_set_directive" 1>&6
1523 if test $libc_cv_asm_set_directive = yes; then
1524 cat >> confdefs.h
<<\EOF
1525 #define HAVE_ASM_SET_DIRECTIVE 1
1530 if test $elf != yes; then
1531 echo $ac_n "checking for .init and .fini sections""... $ac_c" 1>&6
1532 echo "configure:1533: checking for .init and .fini sections" >&5
1533 if eval "test \"`echo '$''{'libc_cv_have_initfini'+set}'`\" = set"; then
1534 echo $ac_n "(cached) $ac_c" 1>&6
1536 cat > conftest.
$ac_ext <<EOF
1537 #line 1538 "configure"
1538 #include "confdefs.h"
1541 asm (".section .init");
1542 asm (".section .fini");
1546 if { (eval echo configure
:1547: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1548 libc_cv_have_initfini
=yes
1550 echo "configure: failed program was:" >&5
1551 cat conftest.
$ac_ext >&5
1553 libc_cv_have_initfini
=no
1559 echo "$ac_t""$libc_cv_have_initfini" 1>&6
1560 if test $libc_cv_have_initfini = yes; then
1561 cat >> confdefs.h
<<\EOF
1562 #define HAVE_INITFINI 1
1568 if test $elf = yes; then
1569 libc_cv_asm_underscores
=no
1571 echo $ac_n "checking for _ prefix on C symbol names""... $ac_c" 1>&6
1572 echo "configure:1573: checking for _ prefix on C symbol names" >&5
1573 if eval "test \"`echo '$''{'libc_cv_asm_underscores'+set}'`\" = set"; then
1574 echo $ac_n "(cached) $ac_c" 1>&6
1576 cat > conftest.
$ac_ext <<EOF
1577 #line 1578 "configure"
1578 #include "confdefs.h"
1579 asm ("_glibc_foobar:");
1584 if { (eval echo configure
:1585: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1586 libc_cv_asm_underscores
=yes
1588 echo "configure: failed program was:" >&5
1589 cat conftest.
$ac_ext >&5
1591 libc_cv_asm_underscores
=no
1597 echo "$ac_t""$libc_cv_asm_underscores" 1>&6
1599 if test $libc_cv_asm_underscores = no
; then
1600 cat >> confdefs.h
<<\EOF
1601 #define NO_UNDERSCORES 1
1606 if test $elf = yes; then
1607 libc_cv_weak_symbols
=yes
1608 libc_cv_asm_weak_directive
=yes
1609 libc_cv_asm_weakext_directive
=no
1611 echo $ac_n "checking for assembler .weak directive""... $ac_c" 1>&6
1612 echo "configure:1613: checking for assembler .weak directive" >&5
1613 if eval "test \"`echo '$''{'libc_cv_asm_weak_directive'+set}'`\" = set"; then
1614 echo $ac_n "(cached) $ac_c" 1>&6
1616 cat > conftest.s
<<EOF
1618 ${libc_cv_asm_global_directive} foo
1621 .weak bar; bar = foo
1623 if ${CC-cc} $CFLAGS -c conftest.s
2>/dev
/null
; then
1624 libc_cv_asm_weak_directive
=yes
1626 libc_cv_asm_weak_directive
=no
1631 echo "$ac_t""$libc_cv_asm_weak_directive" 1>&6
1633 if test $libc_cv_asm_weak_directive = no
; then
1634 echo $ac_n "checking for assembler .weakext directive""... $ac_c" 1>&6
1635 echo "configure:1636: checking for assembler .weakext directive" >&5
1636 if eval "test \"`echo '$''{'libc_cv_asm_weakext_directive'+set}'`\" = set"; then
1637 echo $ac_n "(cached) $ac_c" 1>&6
1639 cat > conftest.s
<<EOF
1641 ${libc_cv_asm_global_directive} foo
1646 if ${CC-cc} $CFLAGS -c conftest.s
2>/dev
/null
; then
1647 libc_cv_asm_weakext_directive
=yes
1649 libc_cv_asm_weakext_directive
=no
1654 echo "$ac_t""$libc_cv_asm_weakext_directive" 1>&6
1659 if test $libc_cv_asm_weak_directive = yes; then
1660 cat >> confdefs.h
<<\EOF
1661 #define HAVE_ASM_WEAK_DIRECTIVE 1
1664 elif test $libc_cv_asm_weakext_directive = yes; then
1665 cat >> confdefs.h
<<\EOF
1666 #define HAVE_ASM_WEAKEXT_DIRECTIVE 1
1671 echo $ac_n "checking for ld --no-whole-archive""... $ac_c" 1>&6
1672 echo "configure:1673: checking for ld --no-whole-archive" >&5
1673 if eval "test \"`echo '$''{'libc_cv_ld_no_whole_archive'+set}'`\" = set"; then
1674 echo $ac_n "(cached) $ac_c" 1>&6
1676 cat > conftest.c
<<\EOF
1681 if { ac_try
='${CC-cc} $CFLAGS
1682 -nostdlib -nostartfiles -Wl,--no-whole-archive
1683 -o conftest conftest.c'; { (eval echo configure
:1684: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
1684 libc_cv_ld_no_whole_archive
=yes
1686 libc_cv_ld_no_whole_archive
=no
1691 echo "$ac_t""$libc_cv_ld_no_whole_archive" 1>&6
1693 echo $ac_n "checking for gcc -fno-exceptions""... $ac_c" 1>&6
1694 echo "configure:1695: checking for gcc -fno-exceptions" >&5
1695 if eval "test \"`echo '$''{'libc_cv_gcc_no_exceptions'+set}'`\" = set"; then
1696 echo $ac_n "(cached) $ac_c" 1>&6
1698 cat > conftest.c
<<\EOF
1703 if { ac_try
='${CC-cc} $CFLAGS
1704 -nostdlib -nostartfiles -fno-exceptions
1705 -o conftest conftest.c'; { (eval echo configure
:1706: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
1706 libc_cv_gcc_no_exceptions
=yes
1708 libc_cv_gcc_no_exceptions
=no
1713 echo "$ac_t""$libc_cv_gcc_no_exceptions" 1>&6
1715 ### End of automated tests.
1716 ### Now run sysdeps configure fragments.
1718 # sysdeps configure fragments may set these with files to be linked below.
1722 # Iterate over all the sysdep directories we will use, running their
1723 # configure fragments, and looking for a uname implementation.
1725 for dir
in $sysnames; do
1728 *) dest
=$srcdir/$dir ;;
1730 if test -r $dest/configure
; then
1731 echo "$ac_t""running configure fragment for $dest" 1>&6
1735 if test -z "$uname"; then
1736 if test -r $sysdep_dir/$dir/uname.c ||
1737 test -r $sysdep_dir/$dir/uname.S ||
1738 { test -r $sysdep_dir/$dir/syscalls.list
&&
1739 grep '^uname[ ]' $sysdep_dir/$dir/syscalls.list
>/dev
/null
; }; then
1747 # If we will use the generic uname implementation, we must figure out what
1748 # it will say by examining the system, and write the results in config-name.h.
1749 if test "$uname" = generic
; then
1751 uname_sysname
=`echo $config_os | sed 's/[0-9.]*$//'`
1752 if test $uname_sysname != $config_os; then
1753 config_release
=`echo $config_os | sed s/$uname_sysname//`
1756 echo $ac_n "checking OS release for uname""... $ac_c" 1>&6
1757 echo "configure:1758: checking OS release for uname" >&5
1758 if eval "test \"`echo '$''{'libc_cv_uname_release'+set}'`\" = set"; then
1759 echo $ac_n "(cached) $ac_c" 1>&6
1761 kernel_release
=`echo "$kernel_id" | sed 's/^[^0-9.]*\([0-9.]*\).*$/\1/'`
1762 if test x
`echo "$config_release" | sed "s/^$kernel_release//"` \
1763 != x
$config_release; then
1764 # The configuration release is a substring of the kernel release.
1765 libc_cv_uname_release
=$kernel_release
1766 elif test x
$config_release != x
; then
1767 libc_cv_uname_release
=$config_release
1768 elif test x
$kernel_release != x
; then
1769 libc_cv_uname_release
=$kernel_release
1771 libc_cv_uname_release
=unknown
1775 echo "$ac_t""$libc_cv_uname_release" 1>&6
1776 uname_release
="$libc_cv_uname_release"
1778 echo $ac_n "checking OS version for uname""... $ac_c" 1>&6
1779 echo "configure:1780: checking OS version for uname" >&5
1780 if eval "test \"`echo '$''{'libc_cv_uname_version'+set}'`\" = set"; then
1781 echo $ac_n "(cached) $ac_c" 1>&6
1783 kernel_version
=`echo "$kernel_id" | sed 's/^[^#]*#\([0-9]*\).*$/\1/'`
1784 if test -n "$kernel_version"; then
1785 libc_cv_uname_version
="$kernel_version"
1787 libc_cv_uname_version
=unknown
1791 echo "$ac_t""$libc_cv_uname_version" 1>&6
1792 uname_version
="$libc_cv_uname_version"
1794 config_uname
=config-name.h
:config-name.
in
1796 # For non-generic uname, we don't need to create config-name.h at all.
1800 echo $ac_n "checking stdio selection""... $ac_c" 1>&6
1801 echo "configure:1802: checking stdio selection" >&5
1804 libio
) cat >> confdefs.h
<<\EOF
1805 #define USE_IN_LIBIO 1
1808 default
) stdio
=stdio
;;
1810 echo "$ac_t""$stdio" 1>&6
1816 if test $gnu_ld = yes; then
1817 cat >> confdefs.h
<<\EOF
1818 #define HAVE_GNU_LD 1
1822 if test $gnu_as = yes; then
1823 cat >> confdefs.h
<<\EOF
1824 #define HAVE_GNU_AS 1
1828 if test $elf = yes; then
1829 cat >> confdefs.h
<<\EOF
1836 if test $shared = default
; then
1837 if test $gnu_ld = yes; then
1846 if test "`(cd $srcdir; pwd)`" = "`pwd`"; then
1849 config_makefile
=Makefile
1853 cat > confcache
<<\EOF
1854 # This file is a shell script that caches the results of configure
1855 # tests run on this system so they can be shared between configure
1856 # scripts and configure runs. It is not useful on other systems.
1857 # If it contains results you don't want to keep, you may remove or edit it.
1859 # By default, configure uses ./config.cache as the cache file,
1860 # creating it if it does not exist already. You can give configure
1861 # the --cache-file=FILE option to use a different cache file; that is
1862 # what configure does when it calls configure scripts in
1863 # subdirectories, so they share the cache.
1864 # Giving --cache-file=/dev/null disables caching, for debugging configure.
1865 # config.status only pays attention to the cache file if you give it the
1866 # --recheck option to rerun configure.
1869 # Ultrix sh set writes to stderr and can't be redirected directly,
1870 # and sets the high bit in the cache file unless we assign to the vars.
1871 # HP-UX 10.01 sh prints single quotes around any value that contains spaces.
1873 sed -n "s/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)='*\([^']*\)'*/\1=\${\1='\2'}/p"\
1875 if cmp -s $cache_file confcache
; then
1878 if test -w $cache_file; then
1879 echo "updating cache $cache_file"
1880 cat confcache
> $cache_file
1882 echo "not updating unwritable cache $cache_file"
1887 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
1889 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
1890 # Let make expand exec_prefix.
1891 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
1893 # Any assignment to VPATH causes Sun make to only execute
1894 # the first set of double-colon rules, so remove it if not needed.
1895 # If there is a colon in the path, we need to keep it.
1896 if test "x$srcdir" = x.
; then
1897 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
1900 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
1902 DEFS
=-DHAVE_CONFIG_H
1904 # Without the "./", some shells look in PATH for config.status.
1905 : ${CONFIG_STATUS=./config.status}
1907 echo creating
$CONFIG_STATUS
1908 rm -f $CONFIG_STATUS
1909 cat > $CONFIG_STATUS <<EOF
1911 # Generated automatically by configure.
1912 # Run this file to recreate the current configuration.
1913 # This directory was configured as follows,
1914 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
1916 # $0 $ac_configure_args
1918 # Compiler output produced by configure, useful for debugging
1919 # configure, is in ./config.log if it exists.
1921 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
1924 case "\$ac_option" in
1925 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1926 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
1927 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
1928 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
1929 echo "$CONFIG_STATUS generated by autoconf version 2.11"
1931 -help | --help | --hel | --he | --h)
1932 echo "\$ac_cs_usage"; exit 0 ;;
1933 *) echo "\$ac_cs_usage"; exit 1 ;;
1937 ac_given_srcdir=$srcdir
1938 ac_given_INSTALL="$INSTALL"
1940 trap 'rm -fr `echo "config.make ${config_makefile} ${config_uname} config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
1942 cat >> $CONFIG_STATUS <<EOF
1944 # Protect against being on the right side of a sed subst in config.status.
1945 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
1946 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
1949 s%@CFLAGS@%$CFLAGS%g
1950 s%@CPPFLAGS@%$CPPFLAGS%g
1951 s%@CXXFLAGS@%$CXXFLAGS%g
1953 s%@LDFLAGS@%$LDFLAGS%g
1955 s%@exec_prefix@%$exec_prefix%g
1956 s%@prefix@%$prefix%g
1957 s%@program_transform_name@%$program_transform_name%g
1958 s%@bindir@%$bindir%g
1959 s%@sbindir@%$sbindir%g
1960 s%@libexecdir@%$libexecdir%g
1961 s%@datadir@%$datadir%g
1962 s%@sysconfdir@%$sysconfdir%g
1963 s%@sharedstatedir@%$sharedstatedir%g
1964 s%@localstatedir@%$localstatedir%g
1965 s%@libdir@%$libdir%g
1966 s%@includedir@%$includedir%g
1967 s%@oldincludedir@%$oldincludedir%g
1968 s%@infodir@%$infodir%g
1969 s%@mandir@%$mandir%g
1970 s%@subdirs@%$subdirs%g
1972 s%@host_alias@%$host_alias%g
1973 s%@host_cpu@%$host_cpu%g
1974 s%@host_vendor@%$host_vendor%g
1975 s%@host_os@%$host_os%g
1976 s%@base_machine@%$base_machine%g
1977 s%@sysnames@%$sysnames%g
1978 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
1979 s%@INSTALL_DATA@%$INSTALL_DATA%g
1981 s%@MSGFMT@%$MSGFMT%g
1983 s%@build_alias@%$build_alias%g
1984 s%@build_cpu@%$build_cpu%g
1985 s%@build_vendor@%$build_vendor%g
1986 s%@build_os@%$build_os%g
1988 s%@BUILD_CC@%$BUILD_CC%g
1991 s%@RANLIB@%$RANLIB%g
1993 s%@libc_cv_have_bash2@%$libc_cv_have_bash2%g
1994 s%@libc_cv_have_initfini@%$libc_cv_have_initfini%g
1995 s%@libc_cv_ld_no_whole_archive@%$libc_cv_ld_no_whole_archive%g
1996 s%@libc_cv_gcc_no_exceptions@%$libc_cv_gcc_no_exceptions%g
1997 s%@uname_sysname@%$uname_sysname%g
1998 s%@uname_release@%$uname_release%g
1999 s%@uname_version@%$uname_version%g
2001 s%@libc_cv_slibdir@%$libc_cv_slibdir%g
2002 s%@libc_cv_sysconfdir@%$libc_cv_sysconfdir%g
2003 s%@gnu_ld@%$gnu_ld%g
2004 s%@gnu_as@%$gnu_as%g
2006 s%@shared@%$shared%g
2007 s%@profile@%$profile%g
2008 s%@omitfp@%$omitfp%g
2009 s%@DEFINES@%$DEFINES%g
2014 cat >> $CONFIG_STATUS <<\EOF
2016 # Split the substitutions into bite-sized pieces for seds with
2017 # small command number limits, like on Digital OSF/1 and HP-UX.
2018 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
2019 ac_file
=1 # Number of current file.
2020 ac_beg
=1 # First line for current file.
2021 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
2024 while $ac_more_lines; do
2025 if test $ac_beg -gt 1; then
2026 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
2028 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
2030 if test ! -s conftest.s
$ac_file; then
2032 rm -f conftest.s
$ac_file
2034 if test -z "$ac_sed_cmds"; then
2035 ac_sed_cmds
="sed -f conftest.s$ac_file"
2037 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
2039 ac_file
=`expr $ac_file + 1`
2041 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
2044 if test -z "$ac_sed_cmds"; then
2049 cat >> $CONFIG_STATUS <<EOF
2051 CONFIG_FILES=\${CONFIG_FILES-"config.make ${config_makefile} ${config_uname}"}
2053 cat >> $CONFIG_STATUS <<\EOF
2054 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
2055 # Support "outfile[:infile]", defaulting infile="outfile.in".
2057 *:*) ac_file_in
=`echo "$ac_file"|sed 's%.*:%%'`
2058 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
2059 *) ac_file_in
="${ac_file}.in" ;;
2062 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
2064 # Remove last slash and all that follows it. Not all systems have dirname.
2065 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2066 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
2067 # The file is in a subdirectory.
2068 test ! -d "$ac_dir" && mkdir
"$ac_dir"
2069 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
2070 # A "../" for each directory in $ac_dir_suffix.
2071 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
2073 ac_dir_suffix
= ac_dots
=
2076 case "$ac_given_srcdir" in
2078 if test -z "$ac_dots"; then top_srcdir
=.
2079 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
2080 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
2082 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
2083 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
2086 case "$ac_given_INSTALL" in
2087 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
2088 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
2091 echo creating
"$ac_file"
2093 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
2095 *Makefile
*) ac_comsub
="1i\\
2096 # $configure_input" ;;
2100 s%@configure_input@%$configure_input%g
2101 s%@srcdir@%$srcdir%g
2102 s%@top_srcdir@%$top_srcdir%g
2103 s%@INSTALL@%$INSTALL%g
2104 " $ac_given_srcdir/$ac_file_in |
eval "$ac_sed_cmds" > $ac_file
2108 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
2109 # NAME is the cpp macro being defined and VALUE is the value it is being given.
2111 # ac_d sets the value in "#define NAME VALUE" lines.
2112 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
2113 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
2116 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
2117 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
2118 ac_uB
='\([ ]\)%\1#\2define\3'
2121 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
2122 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
2123 ac_eB
='$%\1#\2define\3'
2127 if test -z "$CONFIG_HEADERS"; then
2129 cat >> $CONFIG_STATUS <<EOF
2130 CONFIG_HEADERS="config.h"
2132 cat >> $CONFIG_STATUS <<\EOF
2134 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
2135 # Support "outfile[:infile]", defaulting infile="outfile.in".
2137 *:*) ac_file_in
=`echo "$ac_file"|sed 's%.*:%%'`
2138 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
2139 *) ac_file_in
="${ac_file}.in" ;;
2142 echo creating
$ac_file
2144 rm -f conftest.frag conftest.
in conftest.out
2145 cp $ac_given_srcdir/$ac_file_in conftest.
in
2149 # Transform confdefs.h into a sed script conftest.vals that substitutes
2150 # the proper values into config.h.in to produce config.h. And first:
2151 # Protect against being on the right side of a sed subst in config.status.
2152 # Protect against being in an unquoted here document in config.status.
2154 cat > conftest.hdr
<<\EOF
2157 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
2161 sed -n -f conftest.hdr confdefs.h > conftest.vals
2164 # This sed command replaces #undef with comments. This is necessary, for
2165 # example, in the case of _POSIX_SOURCE, which is predefined and required
2166 # on some systems where configure will not decide to define it.
2167 cat >> conftest.vals <<\EOF
2168 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
2171 # Break up conftest.vals because some shells have a limit on
2172 # the size of here documents, and old seds have small limits too.
2177 ac_lines=`grep -c . conftest.vals
`
2178 # grep -c gives empty output for an empty file on some AIX systems.
2179 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
2180 # Write a limited-size here document to conftest.frag.
2181 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
2182 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
2184 sed -f conftest.frag conftest.in > conftest.out
2186 mv conftest.out conftest.in
2188 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
2190 mv conftest.tail conftest.vals
2194 cat >> $CONFIG_STATUS <<\EOF
2195 rm -f conftest.frag conftest.h
2196 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
2197 cat conftest.in >> conftest.h
2199 if cmp -s $ac_file conftest.h 2>/dev/null; then
2200 echo "$ac_file is unchanged"
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"
2210 mv conftest.h $ac_file
2216 cat >> $CONFIG_STATUS <<EOF
2217 ac_sources="`echo $libc_link_sources`"
2218 ac_dests="`echo $libc_link_dests`"
2221 cat >> $CONFIG_STATUS <<\EOF
2222 srcdir=$ac_given_srcdir
2223 while test -n "$ac_sources"; do
2224 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
2225 set $ac_sources; ac_source=$1; shift; ac_sources=$*
2227 echo "linking $srcdir/$ac_source to $ac_dest"
2229 if test ! -r $srcdir/$ac_source; then
2230 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
2234 # Make relative symlinks.
2235 # Remove last slash and all that follows it. Not all systems have dirname.
2236 ac_dest_dir=`echo $ac_dest|
sed 's%/[^/][^/]*$%%'`
2237 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
2238 # The dest file is in a subdirectory.
2239 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
2240 ac_dest_dir_suffix="/`echo $ac_dest_dir|
sed 's%^\./%%'`"
2241 # A "../" for each directory in $ac_dest_dir_suffix.
2242 ac_dots=`echo $ac_dest_dir_suffix|
sed 's%/[^/]*%../%g'`
2244 ac_dest_dir_suffix= ac_dots=
2248 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
2249 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
2252 # Make a symlink if possible; otherwise try a hard link.
2253 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
2254 ln $srcdir/$ac_source $ac_dest; then :
2256 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
2260 cat >> $CONFIG_STATUS <<EOF
2261 echo '$config_vars' >> config.make
2263 cat >> $CONFIG_STATUS <<\EOF
2267 chmod +x $CONFIG_STATUS
2268 rm -fr confdefs* $ac_clean_files
2269 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
2271 if test "$no_recursion" != yes; then
2273 # Remove --cache-file and --srcdir arguments so they do not pile up.
2274 ac_sub_configure_args=
2276 for ac_arg in $ac_configure_args; do
2277 if test -n "$ac_prev"; then
2282 -cache-file | --cache-file | --cache-fil | --cache-fi \
2283 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
2284 ac_prev=cache_file ;;
2285 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
2286 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
2288 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
2290 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
2292 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
2296 for ac_config_dir in $add_ons; do
2298 # Do not complain, so a configure script can configure whichever
2299 # parts of a large source tree are present.
2300 if test ! -d $srcdir/$ac_config_dir; then
2304 echo configuring in $ac_config_dir
2309 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
2311 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
2319 # A "../" for each directory in /$ac_config_dir.
2320 ac_dots=`echo $ac_config_dir|
sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
2323 .) # No --srcdir option. We are building in place.
2324 ac_sub_srcdir=$srcdir ;;
2325 /*) # Absolute path.
2326 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
2328 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
2331 # Check for guested configure; otherwise get Cygnus style configure.
2332 if test -f $ac_sub_srcdir/configure; then
2333 ac_sub_configure=$ac_sub_srcdir/configure
2334 elif test -f $ac_sub_srcdir/configure.in; then
2335 ac_sub_configure=$ac_configure
2337 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
2341 # The recursion is here.
2342 if test -n "$ac_sub_configure"; then
2344 # Make the cache file name correct relative to the subdirectory.
2345 case "$cache_file" in
2346 /*) ac_sub_cache_file=$cache_file ;;
2348 ac_sub_cache_file="$ac_dots$cache_file" ;;
2350 case "$ac_given_INSTALL" in
2351 [/$]*) INSTALL="$ac_given_INSTALL" ;;
2352 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
2355 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
2356 # The eval makes quoting arguments work.
2357 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
2360 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }