update from main archive 960910
[platform/upstream/glibc.git] / configure
1 #! /bin/sh
2
3 # From configure.in CVSid
4 # Guess values for system-dependent variables and create Makefiles.
5 # Generated automatically using autoconf version 2.99 
6 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 #
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
10
11 # Defaults:
12 ac_help=
13 ac_default_prefix=/usr/local
14 # Any additions from configure.in:
15 ac_help="$ac_help
16   --with-gmp=DIRECTORY    find GMP source code in DIRECTORY (not needed)"
17 ac_help="$ac_help
18   --with-gettext=DIR      find GNU gettext source code in DIR (not needed)"
19 ac_help="$ac_help
20   --with-fp               if using floating-point hardware default=yes"
21 ac_help="$ac_help
22   --with-gnu-binutils     if using GNU binutils (as and ld)"
23 ac_help="$ac_help
24   --with-gnu-ld           if using GNU ld (in the binutils package)"
25 ac_help="$ac_help
26   --with-gnu-as           if using GNU as (in the binutils package)"
27 ac_help="$ac_help
28   --with-elf              if using the ELF object format"
29 ac_help="$ac_help
30   --enable-libio          build in GNU libio instead of GNU stdio"
31 ac_help="$ac_help
32   --enable-shared         build shared library [default=yes if GNU ld & ELF]"
33 ac_help="$ac_help
34   --enable-profile        build profiled library [default=yes]"
35 ac_help="$ac_help
36   --enable-omitfp         build undebuggable optimized library [default=no]"
37 ac_help="$ac_help
38   --enable-add-ons=DIR... configure and build named extra directories"
39
40 # Initialize some variables set by options.
41 # The variables have the same names as the options, with
42 # dashes changed to underlines.
43 build=NONE
44 cache_file=./config.cache
45 exec_prefix=NONE
46 host=NONE
47 no_create=
48 nonopt=NONE
49 no_recursion=
50 prefix=NONE
51 program_prefix=NONE
52 program_suffix=NONE
53 program_transform_name=s,x,x,
54 silent=
55 site=
56 srcdir=
57 target=NONE
58 verbose=
59 x_includes=NONE
60 x_libraries=NONE
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'
73
74 # Initialize some other variables.
75 subdirs=
76 MFLAGS= MAKEFLAGS=
77
78 ac_prev=
79 for ac_option
80 do
81
82   # If the previous option needs an argument, assign it.
83   if test -n "$ac_prev"; then
84     eval "$ac_prev=\$ac_option"
85     ac_prev=
86     continue
87   fi
88
89   case "$ac_option" in
90   -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
91   *) ac_optarg= ;;
92   esac
93
94   # Accept the important Cygnus configure options, so we can diagnose typos.
95
96   case "$ac_option" in
97
98   -bindir | --bindir | --bindi | --bind | --bin | --bi)
99     ac_prev=bindir ;;
100   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
101     bindir="$ac_optarg" ;;
102
103   -build | --build | --buil | --bui | --bu)
104     ac_prev=build ;;
105   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
106     build="$ac_optarg" ;;
107
108   -cache-file | --cache-file | --cache-fil | --cache-fi \
109   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
110     ac_prev=cache_file ;;
111   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
112   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
113     cache_file="$ac_optarg" ;;
114
115   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
116     ac_prev=datadir ;;
117   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
118   | --da=*)
119     datadir="$ac_optarg" ;;
120
121   -disable-* | --disable-*)
122     ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
123     # Reject names that are not valid shell variable names.
124     if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
125       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
126     fi
127     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
128     eval "enable_${ac_feature}=no" ;;
129
130   -enable-* | --enable-*)
131     ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
132     # Reject names that are not valid shell variable names.
133     if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
134       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
135     fi
136     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
137     case "$ac_option" in
138       *=*) ;;
139       *) ac_optarg=yes ;;
140     esac
141     eval "enable_${ac_feature}='$ac_optarg'" ;;
142
143   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
144   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
145   | --exec | --exe | --ex)
146     ac_prev=exec_prefix ;;
147   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
148   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
149   | --exec=* | --exe=* | --ex=*)
150     exec_prefix="$ac_optarg" ;;
151
152   -gas | --gas | --ga | --g)
153     # Obsolete; use --with-gas.
154     with_gas=yes ;;
155
156   -help | --help | --hel | --he)
157     # Omit some internal or obsolete options to make the list less imposing.
158     # This message is too long to be a string in the A/UX 3.1 sh.
159     cat << EOF
160 Usage: configure [options] [host]
161 Options: [defaults in brackets after descriptions]
162 Configuration:
163   --cache-file=FILE       cache test results in FILE
164   --help                  print this message
165   --no-create             do not create output files
166   --quiet, --silent       do not print \`checking...' messages
167   --version               print the version of autoconf that created configure
168 Directory and file names:
169   --prefix=PREFIX         install architecture-independent files in PREFIX
170                           [$ac_default_prefix]
171   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
172                           [same as prefix]
173   --bindir=DIR            user executables in DIR [EPREFIX/bin]
174   --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
175   --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
176   --datadir=DIR           read-only architecture-independent data in DIR
177                           [PREFIX/share]
178   --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
179   --sharedstatedir=DIR    modifiable architecture-independent data in DIR
180                           [PREFIX/com]
181   --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
182   --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
183   --includedir=DIR        C header files in DIR [PREFIX/include]
184   --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
185   --infodir=DIR           info documentation in DIR [PREFIX/info]
186   --mandir=DIR            man documentation in DIR [PREFIX/man]
187   --srcdir=DIR            find the sources in DIR [configure dir or ..]
188   --program-prefix=PREFIX prepend PREFIX to installed program names
189   --program-suffix=SUFFIX append SUFFIX to installed program names
190   --program-transform-name=PROGRAM
191                           run sed PROGRAM on installed program names
192 EOF
193     cat << EOF
194 Host type:
195   --build=BUILD           configure for building on BUILD [BUILD=HOST]
196   --host=HOST             configure for HOST [guessed]
197   --target=TARGET         configure for TARGET [TARGET=HOST]
198 Features and packages:
199   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
200   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
201   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
202   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
203   --x-includes=DIR        X include files are in DIR
204   --x-libraries=DIR       X library files are in DIR
205 EOF
206     if test -n "$ac_help"; then
207       echo "--enable and --with options recognized:$ac_help"
208     fi
209     exit 0 ;;
210
211   -host | --host | --hos | --ho)
212     ac_prev=host ;;
213   -host=* | --host=* | --hos=* | --ho=*)
214     host="$ac_optarg" ;;
215
216   -includedir | --includedir | --includedi | --included | --include \
217   | --includ | --inclu | --incl | --inc)
218     ac_prev=includedir ;;
219   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
220   | --includ=* | --inclu=* | --incl=* | --inc=*)
221     includedir="$ac_optarg" ;;
222
223   -infodir | --infodir | --infodi | --infod | --info | --inf)
224     ac_prev=infodir ;;
225   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
226     infodir="$ac_optarg" ;;
227
228   -libdir | --libdir | --libdi | --libd)
229     ac_prev=libdir ;;
230   -libdir=* | --libdir=* | --libdi=* | --libd=*)
231     libdir="$ac_optarg" ;;
232
233   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
234   | --libexe | --libex | --libe)
235     ac_prev=libexecdir ;;
236   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
237   | --libexe=* | --libex=* | --libe=*)
238     libexecdir="$ac_optarg" ;;
239
240   -localstatedir | --localstatedir | --localstatedi | --localstated \
241   | --localstate | --localstat | --localsta | --localst \
242   | --locals | --local | --loca | --loc | --lo)
243     ac_prev=localstatedir ;;
244   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
245   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
246   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
247     localstatedir="$ac_optarg" ;;
248
249   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
250     ac_prev=mandir ;;
251   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
252     mandir="$ac_optarg" ;;
253
254   -nfp | --nfp | --nf)
255     # Obsolete; use --without-fp.
256     with_fp=no ;;
257
258   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
259   | --no-cr | --no-c)
260     no_create=yes ;;
261
262   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
263   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
264     no_recursion=yes ;;
265
266   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
267   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
268   | --oldin | --oldi | --old | --ol | --o)
269     ac_prev=oldincludedir ;;
270   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
271   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
272   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
273     oldincludedir="$ac_optarg" ;;
274
275   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
276     ac_prev=prefix ;;
277   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
278     prefix="$ac_optarg" ;;
279
280   -program-prefix | --program-prefix | --program-prefi | --program-pref \
281   | --program-pre | --program-pr | --program-p)
282     ac_prev=program_prefix ;;
283   -program-prefix=* | --program-prefix=* | --program-prefi=* \
284   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
285     program_prefix="$ac_optarg" ;;
286
287   -program-suffix | --program-suffix | --program-suffi | --program-suff \
288   | --program-suf | --program-su | --program-s)
289     ac_prev=program_suffix ;;
290   -program-suffix=* | --program-suffix=* | --program-suffi=* \
291   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
292     program_suffix="$ac_optarg" ;;
293
294   -program-transform-name | --program-transform-name \
295   | --program-transform-nam | --program-transform-na \
296   | --program-transform-n | --program-transform- \
297   | --program-transform | --program-transfor \
298   | --program-transfo | --program-transf \
299   | --program-trans | --program-tran \
300   | --progr-tra | --program-tr | --program-t)
301     ac_prev=program_transform_name ;;
302   -program-transform-name=* | --program-transform-name=* \
303   | --program-transform-nam=* | --program-transform-na=* \
304   | --program-transform-n=* | --program-transform-=* \
305   | --program-transform=* | --program-transfor=* \
306   | --program-transfo=* | --program-transf=* \
307   | --program-trans=* | --program-tran=* \
308   | --progr-tra=* | --program-tr=* | --program-t=*)
309     program_transform_name="$ac_optarg" ;;
310
311   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
312   | -silent | --silent | --silen | --sile | --sil)
313     silent=yes ;;
314
315   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
316     ac_prev=sbindir ;;
317   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
318   | --sbi=* | --sb=*)
319     sbindir="$ac_optarg" ;;
320
321   -sharedstatedir | --sharedstatedir | --sharedstatedi \
322   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
323   | --sharedst | --shareds | --shared | --share | --shar \
324   | --sha | --sh)
325     ac_prev=sharedstatedir ;;
326   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
327   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
328   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
329   | --sha=* | --sh=*)
330     sharedstatedir="$ac_optarg" ;;
331
332   -site | --site | --sit)
333     ac_prev=site ;;
334   -site=* | --site=* | --sit=*)
335     site="$ac_optarg" ;;
336
337   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
338     ac_prev=srcdir ;;
339   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
340     srcdir="$ac_optarg" ;;
341
342   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
343   | --syscon | --sysco | --sysc | --sys | --sy)
344     ac_prev=sysconfdir ;;
345   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
346   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
347     sysconfdir="$ac_optarg" ;;
348
349   -target | --target | --targe | --targ | --tar | --ta | --t)
350     ac_prev=target ;;
351   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
352     target="$ac_optarg" ;;
353
354   -v | -verbose | --verbose | --verbos | --verbo | --verb)
355     verbose=yes ;;
356
357   -version | --version | --versio | --versi | --vers)
358     echo "configure generated by autoconf version 2.99"
359     exit 0 ;;
360
361   -with-* | --with-*)
362     ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
363     # Reject names that are not valid shell variable names.
364     if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
365       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
366     fi
367     ac_package=`echo $ac_package| sed 's/-/_/g'`
368     case "$ac_option" in
369       *=*) ;;
370       *) ac_optarg=yes ;;
371     esac
372     eval "with_${ac_package}='$ac_optarg'" ;;
373
374   -without-* | --without-*)
375     ac_package=`echo $ac_option|sed -e 's/-*without-//'`
376     # Reject names that are not valid shell variable names.
377     if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
378       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
379     fi
380     ac_package=`echo $ac_package| sed 's/-/_/g'`
381     eval "with_${ac_package}=no" ;;
382
383   --x)
384     # Obsolete; use --with-x.
385     with_x=yes ;;
386
387   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
388   | --x-incl | --x-inc | --x-in | --x-i)
389     ac_prev=x_includes ;;
390   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
391   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
392     x_includes="$ac_optarg" ;;
393
394   -x-libraries | --x-libraries | --x-librarie | --x-librari \
395   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
396     ac_prev=x_libraries ;;
397   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
398   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
399     x_libraries="$ac_optarg" ;;
400
401   -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
402     ;;
403
404   *)
405     if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
406       echo "configure: warning: $ac_option: invalid host type" 1>&2
407     fi
408     if test "x$nonopt" != xNONE; then
409       { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
410     fi
411     nonopt="$ac_option"
412     ;;
413
414   esac
415 done
416
417 if test -n "$ac_prev"; then
418   { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
419 fi
420
421 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
422
423 # File descriptor usage:
424 # 0 standard input
425 # 1 file creation
426 # 2 errors and warnings
427 # 3 some systems may open it to /dev/tty
428 # 4 used on the Kubota Titan
429 # 6 checking for... messages and results
430 # 5 compiler messages saved in config.log
431 if test "$silent" = yes; then
432   exec 6>/dev/null
433 else
434   exec 6>&1
435 fi
436 exec 5>./config.log
437
438 echo "\
439 This file contains any messages produced by compilers while
440 running configure, to aid debugging if configure makes a mistake.
441 " 1>&5
442
443 # Strip out --no-create and --no-recursion so they do not pile up.
444 # Also quote any args containing shell metacharacters.
445 ac_configure_args=
446 for ac_arg
447 do
448   case "$ac_arg" in
449   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
450   | --no-cr | --no-c) ;;
451   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
452   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
453   *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
454   ac_configure_args="$ac_configure_args '$ac_arg'" ;;
455   *) ac_configure_args="$ac_configure_args $ac_arg" ;;
456   esac
457 done
458
459 # NLS nuisances.
460 # Only set LANG and LC_ALL to C if already set.
461 # These must not be set unconditionally because not all systems understand
462 # e.g. LANG=C (notably SCO).
463 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
464 if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
465
466 # confdefs.h avoids OS command line length limits that DEFS can exceed.
467 rm -rf conftest* confdefs.h
468 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
469 echo > confdefs.h
470
471 # A filename unique to this package, relative to the directory that
472 # configure is in, which we can look for to find out if srcdir is correct.
473 ac_unique_file=features.h
474
475 # Find the source files, if location was not specified.
476 if test -z "$srcdir"; then
477   ac_srcdir_defaulted=yes
478   # Try the directory containing this script, then its parent.
479   ac_prog=$0
480   ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
481   test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
482   srcdir=$ac_confdir
483   if test ! -r $srcdir/$ac_unique_file; then
484     srcdir=..
485   fi
486 else
487   ac_srcdir_defaulted=no
488 fi
489 if test ! -r $srcdir/$ac_unique_file; then
490   if test "$ac_srcdir_defaulted" = yes; then
491     { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
492   else
493     { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
494   fi
495 fi
496 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
497
498 # Prefer explicitly selected file to automatically selected ones.
499 if test -z "$CONFIG_SITE"; then
500   if test "x$prefix" != xNONE; then
501     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
502   else
503     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
504   fi
505 fi
506 for ac_site_file in $CONFIG_SITE; do
507   if test -r "$ac_site_file"; then
508     echo "loading site script $ac_site_file"
509     . "$ac_site_file"
510   fi
511 done
512
513 if test -r "$cache_file"; then
514   echo "loading cache $cache_file"
515   . $cache_file
516 else
517   echo "creating cache $cache_file"
518   > $cache_file
519 fi
520
521 ac_ext=c
522 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
523 ac_cpp='$CPP $CPPFLAGS'
524 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
525 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
526
527 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
528   # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
529   if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
530     ac_n= ac_c='
531 ' ac_t='        '
532   else
533     ac_n=-n ac_c= ac_t=
534   fi
535 else
536   ac_n= ac_c='\c' ac_t=
537 fi
538
539     if test -r /vmunix; then
540       kernel_id=`strings /vmunix | grep UNIX`
541     elif test -r /dynix; then
542       kernel_id=`strings /dynix | grep DYNIX`
543     else
544       kernel_id=
545     fi
546
547
548
549
550 # This will get text that should go into config.make.
551 config_vars=
552
553 # Check for a --with-gmp argument and set gmp-srcdir in config.make.
554 # Check whether --with-gmp or --without-gmp was given.
555 if test "${with_gmp+set}" = set; then
556   withval="$with_gmp"
557   case "$with_gmp" in
558 yes) { echo "configure: error: --with-gmp requires an argument; use --with-gmp=DIRECTORY" 1>&2; exit 1; } ;;
559 ''|no) ;;
560 *) config_vars="$config_vars
561 gmp-srcdir = $withval" ;;
562 esac
563
564 fi
565
566 # Check for a --with-gettext argument and set gettext-srcdir in config.make.
567 # Check whether --with-gettext or --without-gettext was given.
568 if test "${with_gettext+set}" = set; then
569   withval="$with_gettext"
570   case "$with_gettext" in
571 yes)
572   { echo "configure: error: --with-gettext requires an argument; use --with-gettext=DIR" 1>&2; exit 1; } ;;
573 ''|no) ;;
574 *)
575   config_vars="$config_vars
576 gettext-srcdir = $withval" ;;
577 esac
578
579 fi
580
581
582 # Check whether --with-fp or --without-fp was given.
583 if test "${with_fp+set}" = set; then
584   withval="$with_fp"
585   with_fp=$withval
586 else
587   with_fp=yes
588 fi
589
590 # Check whether --with-gnu-binutils or --without-gnu-binutils was given.
591 if test "${with_gnu_binutils+set}" = set; then
592   withval="$with_gnu_binutils"
593   gnu_binutils=$withval
594 else
595   gnu_binutils=no
596 fi
597
598 # Check whether --with-gnu-ld or --without-gnu-ld was given.
599 if test "${with_gnu_ld+set}" = set; then
600   withval="$with_gnu_ld"
601   gnu_ld=$withval
602 else
603   gnu_ld=no
604 fi
605
606 # Check whether --with-gnu-as or --without-gnu-as was given.
607 if test "${with_gnu_as+set}" = set; then
608   withval="$with_gnu_as"
609   gnu_as=$withval
610 else
611   gnu_as=no
612 fi
613
614 test $gnu_binutils = yes && gnu_as=yes gnu_ld=yes
615 # Check whether --with-elf or --without-elf was given.
616 if test "${with_elf+set}" = set; then
617   withval="$with_elf"
618   elf=$withval
619 else
620   elf=no
621 fi
622
623
624 # Check whether --enable-libio or --disable-libio was given.
625 if test "${enable_libio+set}" = set; then
626   enableval="$enable_libio"
627   if test $enableval = yes; then
628                  stdio=libio
629                else
630                  stdio=stdio
631                fi
632 else
633   stdio=default
634 fi
635
636
637 # Check whether --enable-shared or --disable-shared was given.
638 if test "${enable_shared+set}" = set; then
639   enableval="$enable_shared"
640   shared=$enableval
641 else
642   shared=default
643 fi
644
645 # Check whether --enable-profile or --disable-profile was given.
646 if test "${enable_profile+set}" = set; then
647   enableval="$enable_profile"
648   profile=$enableval
649 else
650   profile=yes
651 fi
652
653 # Check whether --enable-omitfp or --disable-omitfp was given.
654 if test "${enable_omitfp+set}" = set; then
655   enableval="$enable_omitfp"
656   omitfp=$enableval
657 else
658   omitfp=no
659 fi
660
661
662 # Check whether --enable-add-ons or --disable-add-ons was given.
663 if test "${enable_add_ons+set}" = set; then
664   enableval="$enable_add_ons"
665   add_ons=`echo "$enableval" | sed 's/,/ /g'`
666 else
667   add_ons=
668 fi
669
670 ac_aux_dir=
671 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
672   if test -f $ac_dir/install-sh; then
673     ac_aux_dir=$ac_dir
674     ac_install_sh="$ac_aux_dir/install-sh -c"
675     break
676   elif test -f $ac_dir/install.sh; then
677     ac_aux_dir=$ac_dir
678     ac_install_sh="$ac_aux_dir/install.sh -c"
679     break
680   fi
681 done
682 if test -z "$ac_aux_dir"; then
683   { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
684 fi
685 ac_config_mkinstalldirs=$ac_aux_dir/mkinstalldirs
686 ac_config_guess=$ac_aux_dir/config.guess
687 ac_config_sub=$ac_aux_dir/config.sub
688 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
689
690 subdirs="$add_ons"
691
692 add_ons_pfx=
693 if test x"$add_ons" != x; then
694   for f in $add_ons; do
695     add_ons_pfx="$add_ons_pfx $f/"
696   done
697 fi
698
699
700 # Make sure we can run config.sub.
701 if $ac_config_sub sun4 >/dev/null 2>&1; then :
702 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
703 fi
704
705 echo $ac_n "checking host system type""... $ac_c" 1>&6
706
707 host_alias=$host
708 case "$host_alias" in
709 NONE)
710   case $nonopt in
711   NONE)
712     if host_alias=`$ac_config_guess`; then :
713     else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
714     fi ;;
715   *) host_alias=$nonopt ;;
716   esac ;;
717 esac
718
719 host=`$ac_config_sub $host_alias`
720 host_cpu=`echo $host | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\1/'`
721 host_vendor=`echo $host | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\2/'`
722 host_os=`echo $host | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\3/'`
723 echo "$ac_t""$host" 1>&6
724
725 # We keep the original values in `$config_*' and never modify them, so we
726 # can write them unchanged into config.make.  Everything else uses
727 # $machine, $vendor, and $os, and changes them whenever convenient.
728 config_machine=$host_cpu config_vendor=$host_vendor config_os=$host_os
729
730 # Some configurations imply other options.
731 case "$host_os" in
732 gnu* | linux* | bsd4.4* | netbsd* | freebsd*)
733   # These systems always use GNU tools.
734   gnu_ld=yes gnu_as=yes ;;
735 esac
736 case "$host_os" in
737 linux*ecoff*)
738   ;;
739 gnu* | linux* | sysv4* | solaris2*)
740   # These systems (almost) always use the ELF format.
741   elf=yes
742   ;;
743 esac
744
745 machine=$config_machine
746 vendor=$config_vendor
747 os=$config_os
748
749 # Expand the configuration machine name into a subdirectory by architecture
750 # type and particular chip.
751 case "$machine" in
752 a29k | am29000) base_machine=a29k machine=a29k ;;
753 alpha*)         base_machine=alpha machine=alpha/$machine ;;
754 hppa*)          base_machine=hppa machine=hppa/$machine ;;
755 i[3456]86)      base_machine=i386 machine=i386/$machine ;;
756 m680?0)         base_machine=m68k machine=m68k/$machine ;;
757 m68k)           base_machine=m68k machine=m68k/m68020 ;;
758 m88???)         base_machine=m88k machine=m88k/$machine ;;
759 m88k)           base_machine=m88k machine=m88k/m88100 ;;
760 mips*)          base_machine=mips machine=mips/$machine ;;
761 mips64*)        base_machine=mips64 machine=mips/mips64/$machine ;;
762 sparc[6789])    base_machine=sparc machine=sparc/$machine ;;
763 supersparc)     base_machine=sparc machine=sparc/sparc8 ;;
764 esac
765
766
767 # Compute the list of sysdep directories for this configuration.
768 # This can take a while to compute.
769 sysdep_dir=$srcdir/sysdeps
770 echo $ac_n "checking sysdep dirs""... $ac_c" 1>&6
771 # Make sco3.2v4 become sco3.2.4 and sunos4.1.1_U1 become sunos4.1.1.U1.
772 os="`echo $os | sed 's/\([0-9A-Z]\)[v_]\([0-9A-Z]\)/\1.\2/g'`"
773
774 case "$os" in
775 gnu*)
776   base_os=mach/hurd ;;
777 netbsd* | 386bsd* | freebsd* | bsdi*)
778   base_os=unix/bsd/bsd4.4 ;;
779 osf* | sunos* | ultrix* | newsos* | dynix* | *bsd*)
780   base_os=unix/bsd ;;
781 sysv* | isc* | esix* | sco* | minix* | irix4* | linux*)
782   base_os=unix/sysv ;;
783 solaris[2-9]*)
784   base_os=unix/sysv/sysv4 ;;
785 none)
786   base_os=standalone ;;
787 *)
788   base_os='' ;;
789 esac
790
791 # For sunos4.1.1, try sunos4.1.1, then sunos4.1, then sunos4, then sunos.
792 tail=$os
793 ostry=$os
794 while o=`echo $tail | sed 's/\.[^.]*$//'`; test $o != $tail; do
795   ostry="$ostry /$o"
796   tail=$o
797 done
798 o=`echo $tail | sed 's/[0-9]*$//'`
799 if test $o != $tail; then
800   ostry="$ostry /$o"
801 fi
802
803 # For unix/sysv/sysv4, try unix/sysv/sysv4, then unix/sysv, then unix.
804 base=
805 tail=$base_os
806 while b=`echo $tail | sed 's@^\(.*\)/\([^/]*\)$@& \1@'`; test -n "$b"; do
807   set $b
808   base="$base /$1"
809   tail="$2"
810 done
811
812 # For sparc/sparc9, try sparc/sparc9 and then sparc.
813 mach=
814 tail=$machine
815 while m=`echo $tail | sed 's@^\(.*\)/\([^/]*\)$@& \1@'`; test -n "$m"; do
816   set $m
817   # Prepend the machine's FPU directory unless --without-fp.
818   if test "$with_fp" = yes; then
819     mach="$mach /$1/fpu"
820   fi
821   mach="$mach /$1"
822   tail="$2"
823 done
824
825
826 # Find what sysdep directories exist.
827 sysnames=
828 IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
829 for d in $add_ons_pfx ''; do
830   for b in $base ''; do
831     for m0 in $mach ''; do
832       for v in /$vendor ''; do
833         for o in /$ostry ''; do
834           for m in $mach ''; do
835             if test "$m0$b$v$o$m"; then
836               try="${d}sysdeps$m0$b$v$o$m"
837               test -n "$enable_debug_configure" &&
838               echo "$0 DEBUG: try $try" >&2
839               case $try in
840                 /*) dest=$try ;;
841                 *)  dest=$srcdir/$try ;;
842               esac
843               if test -d $dest; then
844                 sysnames="$sysnames $try"
845                 { test -n "$o" || test -n "$b"; } && os_used=t
846                 { test -n "$m" || test -n "$m0"; } && machine_used=t
847               fi
848             fi
849           done
850         done
851       done
852     done
853   done
854 done
855 IFS="$ac_save_ifs"
856
857 if test -z "$os_used" && test "$os" != none; then
858   { echo "configure: error: Operating system $os is not supported." 1>&2; exit 1; }
859 fi
860 if test -z "$machine_used" && test "$machine" != none; then
861   { echo "configure: error: The $machine is not supported." 1>&2; exit 1; }
862 fi
863
864 # We have now validated the configuration.
865
866
867 # If using ELF, look for an `elf' subdirectory of each machine directory.
868 # We prepend these rather than inserting them whereever the machine appears
869 # because things specified by the machine's ELF ABI should override
870 # OS-specific things, and should always be the same for any OS on the
871 # machine (otherwise what's the point of an ABI?).
872 if test "$elf" = yes; then
873   elf_dirs=
874   for d in $add_ons_pfx ''; do
875     case $d in
876       /*) xsrcdir= ;;
877       *)  xsrcdir=$srcdir/ ;;
878     esac
879     for m in $mach; do
880       if test -d $xsrcdir${d}sysdeps$m/elf; then
881         elf_dirs="$elf_dirs ${d}sysdeps$m/elf"
882       fi
883     done
884   done
885   sysnames="`echo $elf_dirs | sed -e 's,//,/,g'` $sysnames"
886 fi
887
888
889 # Expand the list of system names into a full list of directories
890 # from each element's parent name and Implies file (if present).
891 set $sysnames
892 names=
893 while test $# -gt 0; do
894   name=$1
895   shift
896
897   case " $names " in *" $name "*)
898     # Already in the list.
899     continue
900   esac
901
902   # Report each name as we discover it, so there is no long pause in output.
903   echo $ac_n "$name $ac_c" >&6
904
905   name_base=`echo $name | sed -e 's@\(.*sysdeps\)/.*@\1@'`
906
907   case $name in
908     /*) xsrcdir= ;;
909     *)  xsrcdir=$srcdir/ ;;
910   esac
911   test -n "$enable_debug_configure" &&
912   echo "DEBUG: name/Implies $xsrcdir$name/Implies" >&2
913
914   if test -f $xsrcdir$name/Implies; then
915     # Collect more names from the `Implies' file (removing comments).
916     implied_candidate="`sed 's/#.*$//' < $xsrcdir$name/Implies`"
917     implied=
918     for x in $implied_candidate; do
919       if test -d $xsrcdir$name_base/$x; then
920         implied="$implied $name_base/$x";
921       else
922         echo "configure: warning: $name/Implies specifies nonexistent $x" 1>&2
923       fi
924     done
925   else
926     implied=
927   fi
928
929   # Add NAME to the list of names.
930   names="$names $name"
931
932   # Find the parent of NAME, using the empty string if it has none.
933   parent="`echo $name | sed -n -e 's=/[^/]*$==' -e '/sysdeps$/q' -e p`"
934
935   # Add the names implied by NAME, and NAME's parent (if it has one), to
936   # the list of names to be processed (the argument list).  We prepend the
937   # implied names to the list and append the parent.  We want implied
938   # directories to come before further directories inferred from the
939   # configuration components; this ensures that for sysv4, unix/common
940   # (implied by unix/sysv/sysv4) comes before unix/sysv (in ostry (here $*)
941   # after sysv4).
942   sysnames="`echo $implied $* $parent`"
943   test -n "$sysnames" && set $sysnames
944 done
945
946 # Add the default directories.
947 sysnames="$names sysdeps/generic sysdeps/stub"
948
949 # The other names were emitted during the scan.
950 echo "$ac_t""sysdeps/generic sysdeps/stub" 1>&6
951
952
953 ### Locate tools.
954
955 # Find a good install program.  We prefer a C program (faster),
956 # so one script is as good as another.  But avoid the broken or
957 # incompatible versions:
958 # SysV /etc/install, /usr/sbin/install
959 # SunOS /usr/etc/install
960 # IRIX /sbin/install
961 # AIX /bin/install
962 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
963 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
964 # ./install, which can be erroneously created by make from ./install.sh.
965 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
966 if test -z "$INSTALL"; then
967 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
968   echo $ac_n "(cached) $ac_c" 1>&6
969 else
970     IFS="${IFS=         }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
971   for ac_dir in $PATH; do
972     # Account for people who put trailing slashes in PATH elements.
973     case "$ac_dir/" in
974     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
975     *)
976       # OSF1 and SCO ODT 3.0 have their own names for install.
977       for ac_prog in ginstall installbsd scoinst install; do
978         if test -f $ac_dir/$ac_prog; then
979           if test $ac_prog = install &&
980             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
981             # AIX install.  It has an incompatible calling convention.
982             # OSF/1 installbsd also uses dspmsg, but is usable.
983             :
984           else
985             ac_cv_path_install="$ac_dir/$ac_prog -c"
986             break 2
987           fi
988         fi
989       done
990       ;;
991     esac
992   done
993   IFS="$ac_save_ifs"
994
995 fi
996   if test "${ac_cv_path_install+set}" = set; then
997     INSTALL="$ac_cv_path_install"
998   else
999     # As a last resort, use the slow shell script.  We don't cache a
1000     # path for INSTALL within a source directory, because that will
1001     # break other packages using the cache if that directory is
1002     # removed, or if the path is relative.
1003     INSTALL="$ac_install_sh"
1004   fi
1005 fi
1006 echo "$ac_t""$INSTALL" 1>&6
1007
1008 # The purpose of this command is only to make sure the auxiliary path
1009 # is set and that the symbol AC_REQUIRE_AC_PROG_MKINSTALLDIRS is set.
1010
1011
1012 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1013 # It thinks the first close brace ends the variable substitution.
1014 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1015
1016 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1017
1018 if test "$INSTALL" = "${srcdir}/install-sh"; then
1019   # The makefiles need to use a different form to find it in $srcdir.
1020   INSTALL='$(..)./install-sh'
1021 fi
1022 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1023 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1024   echo $ac_n "(cached) $ac_c" 1>&6
1025 else
1026   rm -f conftestdata
1027 if ln -s X conftestdata 2>/dev/null
1028 then
1029   rm -f conftestdata
1030   ac_cv_prog_LN_S="ln -s"
1031 else
1032   ac_cv_prog_LN_S=ln
1033 fi
1034 fi
1035 LN_S="$ac_cv_prog_LN_S"
1036 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1037   echo "$ac_t""yes" 1>&6
1038 else
1039   echo "$ac_t""no" 1>&6
1040 fi
1041
1042 for ac_prog in msgfmt gmsgfmt
1043 do
1044 # Extract the first word of "$ac_prog", so it can be a program name with args.
1045 set dummy $ac_prog; ac_word=$2
1046 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1047 if eval "test \"`echo '$''{'ac_cv_prog_MSGFMT'+set}'`\" = set"; then
1048   echo $ac_n "(cached) $ac_c" 1>&6
1049 else
1050   if test -n "$MSGFMT"; then
1051   ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
1052 else
1053   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1054   for ac_dir in $PATH; do
1055     test -z "$ac_dir" && ac_dir=.
1056     if test -f $ac_dir/$ac_word; then
1057       ac_cv_prog_MSGFMT="$ac_prog"
1058       break
1059     fi
1060   done
1061   IFS="$ac_save_ifs"
1062 fi
1063 fi
1064 MSGFMT="$ac_cv_prog_MSGFMT"
1065 if test -n "$MSGFMT"; then
1066   echo "$ac_t""$MSGFMT" 1>&6
1067 else
1068   echo "$ac_t""no" 1>&6
1069 fi
1070
1071 test -n "$MSGFMT" && break
1072 done
1073 test -n "$MSGFMT" || MSGFMT=":"
1074
1075
1076 echo $ac_n "checking build system type""... $ac_c" 1>&6
1077
1078 build_alias=$build
1079 case "$build_alias" in
1080 NONE)
1081   case $nonopt in
1082   NONE) build_alias=$host_alias ;;
1083   *) build_alias=$nonopt ;;
1084   esac ;;
1085 esac
1086
1087 build=`$ac_config_sub $build_alias`
1088 build_cpu=`echo $build | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\1/'`
1089 build_vendor=`echo $build | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\2/'`
1090 build_os=`echo $build | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\3/'`
1091 echo "$ac_t""$build" 1>&6
1092
1093 if test $host != $build; then
1094   ac_tool_prefix=${host_alias}-
1095 else
1096   ac_tool_prefix=
1097 fi
1098
1099 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1100 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1101 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1102 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1103   echo $ac_n "(cached) $ac_c" 1>&6
1104 else
1105   if test -n "$CC"; then
1106   ac_cv_prog_CC="$CC" # Let the user override the test.
1107 else
1108   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1109   for ac_dir in $PATH; do
1110     test -z "$ac_dir" && ac_dir=.
1111     if test -f $ac_dir/$ac_word; then
1112       ac_cv_prog_CC="${ac_tool_prefix}gcc"
1113       break
1114     fi
1115   done
1116   IFS="$ac_save_ifs"
1117   test -z "$ac_cv_prog_CC" && ac_cv_prog_CC="gcc"
1118 fi
1119 fi
1120 CC="$ac_cv_prog_CC"
1121 if test -n "$CC"; then
1122   echo "$ac_t""$CC" 1>&6
1123 else
1124   echo "$ac_t""no" 1>&6
1125 fi
1126
1127
1128
1129 if test $host != $build; then
1130   # Extract the first word of "gcc cc", so it can be a program name with args.
1131 set dummy gcc cc; ac_word=$2
1132 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1133 if eval "test \"`echo '$''{'ac_cv_prog_BUILD_CC'+set}'`\" = set"; then
1134   echo $ac_n "(cached) $ac_c" 1>&6
1135 else
1136   if test -n "$BUILD_CC"; then
1137   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
1138 else
1139   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1140   for ac_dir in $PATH; do
1141     test -z "$ac_dir" && ac_dir=.
1142     if test -f $ac_dir/$ac_word; then
1143       ac_cv_prog_BUILD_CC=""
1144       break
1145     fi
1146   done
1147   IFS="$ac_save_ifs"
1148 fi
1149 fi
1150 BUILD_CC="$ac_cv_prog_BUILD_CC"
1151 if test -n "$BUILD_CC"; then
1152   echo "$ac_t""$BUILD_CC" 1>&6
1153 else
1154   echo "$ac_t""no" 1>&6
1155 fi
1156
1157 fi
1158 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1159 # On Suns, sometimes $CPP names a directory.
1160 if test -n "$CPP" && test -d "$CPP"; then
1161   CPP=
1162 fi
1163 if test -z "$CPP"; then
1164 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1165   echo $ac_n "(cached) $ac_c" 1>&6
1166 else
1167     # This must be in double quotes, not single quotes, because CPP may get
1168   # substituted into the Makefile and "${CC-cc}" will confuse make.
1169   CPP="${CC-cc} -E"
1170   # On the NeXT, cc -E runs the code through the compiler's parser,
1171   # not just through cpp.
1172   cat > conftest.$ac_ext <<EOF
1173 #line 1174 "configure"
1174 #include "confdefs.h"
1175 #include <assert.h>
1176 Syntax Error
1177 EOF
1178 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1179 { (eval echo configure:1180: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1180 ac_err=`grep -v '^ *+' conftest.out`
1181 if test -z "$ac_err"; then
1182   :
1183 else
1184   echo "$ac_err" >&5
1185   rm -rf conftest*
1186   CPP="${CC-cc} -E -traditional-cpp"
1187   cat > conftest.$ac_ext <<EOF
1188 #line 1189 "configure"
1189 #include "confdefs.h"
1190 #include <assert.h>
1191 Syntax Error
1192 EOF
1193 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1194 { (eval echo configure:1195: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1195 ac_err=`grep -v '^ *+' conftest.out`
1196 if test -z "$ac_err"; then
1197   :
1198 else
1199   echo "$ac_err" >&5
1200   rm -rf conftest*
1201   CPP=/lib/cpp
1202 fi
1203 rm -f conftest*
1204 fi
1205 rm -f conftest*
1206   ac_cv_prog_CPP="$CPP"
1207 fi
1208   CPP="$ac_cv_prog_CPP"
1209 else
1210   ac_cv_prog_CPP="$CPP"
1211 fi
1212 echo "$ac_t""$CPP" 1>&6
1213
1214 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
1215 set dummy ${ac_tool_prefix}ar; ac_word=$2
1216 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1217 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1218   echo $ac_n "(cached) $ac_c" 1>&6
1219 else
1220   if test -n "$AR"; then
1221   ac_cv_prog_AR="$AR" # Let the user override the test.
1222 else
1223   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1224   for ac_dir in $PATH; do
1225     test -z "$ac_dir" && ac_dir=.
1226     if test -f $ac_dir/$ac_word; then
1227       ac_cv_prog_AR="${ac_tool_prefix}ar"
1228       break
1229     fi
1230   done
1231   IFS="$ac_save_ifs"
1232   test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
1233 fi
1234 fi
1235 AR="$ac_cv_prog_AR"
1236 if test -n "$AR"; then
1237   echo "$ac_t""$AR" 1>&6
1238 else
1239   echo "$ac_t""no" 1>&6
1240 fi
1241
1242
1243
1244 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1245 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1246 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1247 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1248   echo $ac_n "(cached) $ac_c" 1>&6
1249 else
1250   if test -n "$RANLIB"; then
1251   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1252 else
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_RANLIB="${ac_tool_prefix}ranlib"
1258       break
1259     fi
1260   done
1261   IFS="$ac_save_ifs"
1262 fi
1263 fi
1264 RANLIB="$ac_cv_prog_RANLIB"
1265 if test -n "$RANLIB"; then
1266   echo "$ac_t""$RANLIB" 1>&6
1267 else
1268   echo "$ac_t""no" 1>&6
1269 fi
1270
1271
1272 if test -z "$ac_cv_prog_RANLIB"; then
1273 if test -n "$ac_tool_prefix"; then
1274   # Extract the first word of "ranlib", so it can be a program name with args.
1275 set dummy ranlib; ac_word=$2
1276 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1277 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1278   echo $ac_n "(cached) $ac_c" 1>&6
1279 else
1280   if test -n "$RANLIB"; then
1281   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1282 else
1283   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1284   for ac_dir in $PATH; do
1285     test -z "$ac_dir" && ac_dir=.
1286     if test -f $ac_dir/$ac_word; then
1287       ac_cv_prog_RANLIB="ranlib"
1288       break
1289     fi
1290   done
1291   IFS="$ac_save_ifs"
1292   test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1293 fi
1294 fi
1295 RANLIB="$ac_cv_prog_RANLIB"
1296 if test -n "$RANLIB"; then
1297   echo "$ac_t""$RANLIB" 1>&6
1298 else
1299   echo "$ac_t""no" 1>&6
1300 fi
1301
1302 else
1303   RANLIB=":"
1304 fi
1305 fi
1306
1307
1308 echo $ac_n "checking for signed size_t type""... $ac_c" 1>&6
1309 if eval "test \"`echo '$''{'libc_cv_signed_size_t'+set}'`\" = set"; then
1310   echo $ac_n "(cached) $ac_c" 1>&6
1311 else
1312   echo '#include <stddef.h>
1313 FOOBAR __SIZE_TYPE__ FOOBAR' > conftest.c
1314 if eval "$ac_cpp conftest.c 2>/dev/null" \
1315 | grep '^FOOBAR.*unsigned.*FOOBAR$' >/dev/null; then
1316   libc_cv_signed_size_t=no
1317 else
1318   libc_cv_signed_size_t=yes
1319 fi
1320 rm -f conftest*
1321 fi
1322
1323 echo "$ac_t""$libc_cv_signed_size_t" 1>&6
1324 if test $libc_cv_signed_size_t = yes; then
1325     cat >> confdefs.h <<\EOF
1326 #undef __SIZE_TYPE__
1327 #define __SIZE_TYPE__ unsigned
1328 EOF
1329 fi
1330
1331 echo $ac_n "checking for libc-friendly stddef.h""... $ac_c" 1>&6
1332 if eval "test \"`echo '$''{'libc_cv_friendly_stddef'+set}'`\" = set"; then
1333   echo $ac_n "(cached) $ac_c" 1>&6
1334 else
1335   cat > conftest.$ac_ext <<EOF
1336 #line 1337 "configure"
1337 #include "confdefs.h"
1338 #define __need_size_t
1339 #define __need_wchar_t
1340 #include <stddef.h>
1341 #define __need_NULL
1342 #include <stddef.h>
1343 int main() { return 0; }
1344 int t() {
1345 size_t size; wchar_t wchar;
1346 #ifdef offsetof
1347 #error stddef.h ignored __need_*
1348 #endif
1349 if (&size == NULL || &wchar == NULL) abort ();
1350 ; return 0; }
1351 EOF
1352 if { (eval echo configure:1353: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1353   rm -rf conftest*
1354   libc_cv_friendly_stddef=yes
1355 else
1356   rm -rf conftest*
1357   libc_cv_friendly_stddef=no
1358 fi
1359 rm -f conftest*
1360
1361 fi
1362
1363 echo "$ac_t""$libc_cv_friendly_stddef" 1>&6
1364 if test $libc_cv_friendly_stddef = yes; then
1365   config_vars="$config_vars
1366 override stddef.h = # The installed <stddef.h> seems to be libc-friendly."
1367 fi
1368
1369 echo $ac_n "checking whether we need to use -P to assemble .S files""... $ac_c" 1>&6
1370 if eval "test \"`echo '$''{'libc_cv_need_minus_P'+set}'`\" = set"; then
1371   echo $ac_n "(cached) $ac_c" 1>&6
1372 else
1373   cat > conftest.S <<EOF
1374 #include "confdefs.h"
1375 /* Nothing whatsoever.  */
1376 EOF
1377 if ${CC-cc} $CFLAGS -c conftest.S 2>/dev/null; then
1378   libc_cv_need_minus_P=no
1379 else
1380   libc_cv_need_minus_P=yes
1381 fi
1382 rm -f conftest*
1383 fi
1384
1385 echo "$ac_t""$libc_cv_need_minus_P" 1>&6
1386 if test $libc_cv_need_minus_P = yes; then
1387   config_vars="$config_vars
1388 asm-CPPFLAGS = -P # The assembler can't grok cpp's # line directives."
1389 fi
1390
1391 echo $ac_n "checking for assembler global-symbol directive""... $ac_c" 1>&6
1392 if eval "test \"`echo '$''{'libc_cv_asm_global_directive'+set}'`\" = set"; then
1393   echo $ac_n "(cached) $ac_c" 1>&6
1394 else
1395   libc_cv_asm_global_directive=UNKNOWN
1396 for ac_globl in .globl .global; do
1397   cat > conftest.s <<EOF
1398 .text
1399 ${ac_globl} foo
1400 foo: .long 0
1401 EOF
1402   if ${CC-cc} $CFLAGS -c conftest.s 2>/dev/null; then
1403     libc_cv_asm_global_directive=${ac_globl}
1404   fi
1405   rm -f conftest*
1406   test $libc_cv_asm_global_directive != UNKNOWN && break
1407 done
1408 fi
1409
1410 echo "$ac_t""$libc_cv_asm_global_directive" 1>&6
1411 if test $libc_cv_asm_global_directive = UNKNOWN; then
1412   { echo "configure: error: cannot determine asm global directive" 1>&2; exit 1; }
1413 else
1414   cat >> confdefs.h <<EOF
1415 #define ASM_GLOBAL_DIRECTIVE ${libc_cv_asm_global_directive}
1416 EOF
1417
1418 fi
1419
1420 echo $ac_n "checking for .set assembler directive""... $ac_c" 1>&6
1421 if eval "test \"`echo '$''{'libc_cv_asm_set_directive'+set}'`\" = set"; then
1422   echo $ac_n "(cached) $ac_c" 1>&6
1423 else
1424   cat > conftest.s <<EOF
1425 .text
1426 foo: .long 0
1427 .set glibc_conftest_frobozz,foo
1428 $libc_cv_asm_global_directive glibc_conftest_frobozz
1429 EOF
1430 # The alpha-dec-osf1 assembler gives only a warning for `.set'
1431 # (but it doesn't work), so we must do a linking check to be sure.
1432 cat > conftest1.c <<\EOF
1433 extern int glibc_conftest_frobozz;
1434 main () { printf ("%d\n", glibc_conftest_frobozz); }
1435 EOF
1436 if ${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \
1437             -o conftest conftest.s conftest1.c 1>&5 2>&5; then
1438   libc_cv_asm_set_directive=yes
1439 else
1440   libc_cv_asm_set_directive=no
1441 fi
1442 rm -f conftest*
1443 fi
1444
1445 echo "$ac_t""$libc_cv_asm_set_directive" 1>&6
1446 if test $libc_cv_asm_set_directive = yes; then
1447   cat >> confdefs.h <<\EOF
1448 #define HAVE_ASM_SET_DIRECTIVE 1
1449 EOF
1450
1451 fi
1452
1453 if test $elf != yes; then
1454   echo $ac_n "checking for .init and .fini sections""... $ac_c" 1>&6
1455 if eval "test \"`echo '$''{'libc_cv_have_initfini'+set}'`\" = set"; then
1456   echo $ac_n "(cached) $ac_c" 1>&6
1457 else
1458   cat > conftest.$ac_ext <<EOF
1459 #line 1460 "configure"
1460 #include "confdefs.h"
1461
1462 int main() { return 0; }
1463 int t() {
1464 asm (".section .init");
1465                                     asm (".section .fini");
1466                                     asm (".text");
1467 ; return 0; }
1468 EOF
1469 if { (eval echo configure:1470: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1470   rm -rf conftest*
1471   libc_cv_have_initfini=yes
1472 else
1473   rm -rf conftest*
1474   libc_cv_have_initfini=no
1475 fi
1476 rm -f conftest*
1477
1478 fi
1479
1480 echo "$ac_t""$libc_cv_have_initfini" 1>&6
1481     if test $libc_cv_have_initfini = yes; then
1482     cat >> confdefs.h <<\EOF
1483 #define HAVE_INITFINI 1
1484 EOF
1485
1486   fi
1487 fi
1488
1489 if test $elf = yes; then
1490   libc_cv_asm_underscores=no
1491 else
1492   echo $ac_n "checking for _ prefix on C symbol names""... $ac_c" 1>&6
1493 if eval "test \"`echo '$''{'libc_cv_asm_underscores'+set}'`\" = set"; then
1494   echo $ac_n "(cached) $ac_c" 1>&6
1495 else
1496   cat > conftest.$ac_ext <<EOF
1497 #line 1498 "configure"
1498 #include "confdefs.h"
1499 asm ("_glibc_foobar:");
1500 int main() { return 0; }
1501 int t() {
1502 glibc_foobar ();
1503 ; return 0; }
1504 EOF
1505 if { (eval echo configure:1506: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1506   rm -rf conftest*
1507   libc_cv_asm_underscores=yes
1508 else
1509   rm -rf conftest*
1510   libc_cv_asm_underscores=no
1511 fi
1512 rm -f conftest*
1513
1514 fi
1515
1516 echo "$ac_t""$libc_cv_asm_underscores" 1>&6
1517 fi
1518 if test $libc_cv_asm_underscores = no; then
1519   cat >> confdefs.h <<\EOF
1520 #define NO_UNDERSCORES 1
1521 EOF
1522
1523 fi
1524
1525 if test $elf = yes; then
1526   libc_cv_weak_symbols=yes
1527   libc_cv_asm_weak_directive=yes
1528   libc_cv_asm_weakext_directive=no
1529 else
1530   echo $ac_n "checking for assembler .weak directive""... $ac_c" 1>&6
1531 if eval "test \"`echo '$''{'libc_cv_asm_weak_directive'+set}'`\" = set"; then
1532   echo $ac_n "(cached) $ac_c" 1>&6
1533 else
1534   cat > conftest.s <<EOF
1535 .text
1536 ${libc_cv_asm_global_directive} foo
1537 foo: .long 0
1538 .weak foo
1539 .weak bar; bar = foo
1540 EOF
1541   if ${CC-cc} $CFLAGS -c conftest.s 2>/dev/null; then
1542     libc_cv_asm_weak_directive=yes
1543   else
1544     libc_cv_asm_weak_directive=no
1545   fi
1546   rm -f conftest*
1547 fi
1548
1549 echo "$ac_t""$libc_cv_asm_weak_directive" 1>&6
1550
1551 if test $libc_cv_asm_weak_directive = no; then
1552   echo $ac_n "checking for assembler .weakext directive""... $ac_c" 1>&6
1553 if eval "test \"`echo '$''{'libc_cv_asm_weakext_directive'+set}'`\" = set"; then
1554   echo $ac_n "(cached) $ac_c" 1>&6
1555 else
1556   cat > conftest.s <<EOF
1557 .text
1558 ${libc_cv_asm_global_directive} foo
1559 foo: .long 0
1560 .weakext foo
1561 .weakext foo, bar
1562 EOF
1563   if ${CC-cc} $CFLAGS -c conftest.s 2>/dev/null; then
1564     libc_cv_asm_weakext_directive=yes
1565   else
1566     libc_cv_asm_weakext_directive=no
1567   fi
1568   rm -f conftest*
1569 fi
1570
1571 echo "$ac_t""$libc_cv_asm_weakext_directive" 1>&6
1572
1573   fi # no .weak
1574 fi # not ELF
1575
1576 if test $libc_cv_asm_weak_directive = yes; then
1577   cat >> confdefs.h <<\EOF
1578 #define HAVE_ASM_WEAK_DIRECTIVE 1
1579 EOF
1580
1581 elif test $libc_cv_asm_weakext_directive = yes; then
1582   cat >> confdefs.h <<\EOF
1583 #define HAVE_ASM_WEAKEXT_DIRECTIVE 1
1584 EOF
1585
1586 fi
1587
1588 echo $ac_n "checking for ld --no-whole-archive""... $ac_c" 1>&6
1589 if eval "test \"`echo '$''{'libc_cv_ld_no_whole_archive'+set}'`\" = set"; then
1590   echo $ac_n "(cached) $ac_c" 1>&6
1591 else
1592   cat > conftest.c <<\EOF
1593 _start () {}
1594 int __eh_pc;
1595 __throw () {}
1596 EOF
1597 if { ac_try='${CC-cc} $CFLAGS
1598                             -nostdlib -nostartfiles -Wl,--no-whole-archive
1599                             -o conftest conftest.c'; { (eval echo configure:1600: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
1600   libc_cv_ld_no_whole_archive=yes
1601 else
1602   libc_cv_ld_no_whole_archive=no
1603 fi
1604 rm -f conftest*
1605 fi
1606
1607 echo "$ac_t""$libc_cv_ld_no_whole_archive" 1>&6
1608
1609 echo $ac_n "checking for gcc -fno-exceptions""... $ac_c" 1>&6
1610 if eval "test \"`echo '$''{'libc_cv_gcc_no_exceptions'+set}'`\" = set"; then
1611   echo $ac_n "(cached) $ac_c" 1>&6
1612 else
1613   cat > conftest.c <<\EOF
1614 _start () {}
1615 int __eh_pc;
1616 __throw () {}
1617 EOF
1618 if { ac_try='${CC-cc} $CFLAGS
1619                             -nostdlib -nostartfiles -fno-exceptions
1620                             -o conftest conftest.c'; { (eval echo configure:1621: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
1621   libc_cv_gcc_no_exceptions=yes
1622 else
1623   libc_cv_gcc_no_exceptions=no
1624 fi
1625 rm -f conftest*
1626 fi
1627
1628 echo "$ac_t""$libc_cv_gcc_no_exceptions" 1>&6
1629
1630 ### End of automated tests.
1631 ### Now run sysdeps configure fragments.
1632
1633 # sysdeps configure fragments may set these with files to be linked below.
1634 libc_link_dests=
1635 libc_link_sources=
1636
1637 # Iterate over all the sysdep directories we will use, running their
1638 # configure fragments, and looking for a uname implementation.
1639 uname=
1640 for dir in $sysnames; do
1641   case $dir in
1642     /*) dest=$dir ;;
1643     *)  dest=$srcdir/$dir ;;
1644   esac
1645   if test -r $dest/configure; then
1646     echo "$ac_t""running configure fragment for $dest" 1>&6
1647     . $dest/configure
1648   fi
1649
1650   if test -z "$uname"; then
1651     if test -r $sysdep_dir/$dir/uname.c ||
1652        test -r $sysdep_dir/$dir/uname.S ||
1653        { test -r $sysdep_dir/$dir/syscalls.list &&
1654          grep '^uname[  ]' $sysdep_dir/$dir/syscalls.list >/dev/null; }; then
1655       uname=$dir
1656     fi
1657   fi
1658 done
1659
1660
1661
1662 # If we will use the generic uname implementation, we must figure out what
1663 # it will say by examining the system, and write the results in config-name.h.
1664 if test "$uname" = generic; then
1665
1666   uname_sysname=`echo $config_os | sed 's/[0-9.]*$//'`
1667   if test $uname_sysname != $config_os; then
1668     config_release=`echo $config_os | sed s/$uname_sysname//`
1669   fi
1670
1671   echo $ac_n "checking OS release for uname""... $ac_c" 1>&6
1672 if eval "test \"`echo '$''{'libc_cv_uname_release'+set}'`\" = set"; then
1673   echo $ac_n "(cached) $ac_c" 1>&6
1674 else
1675     kernel_release=`echo "$kernel_id" | sed 's/^[^0-9.]*\([0-9.]*\).*$/\1/'`
1676   if test x`echo "$config_release" | sed "s/^$kernel_release//"` \
1677          != x$config_release; then
1678     # The configuration release is a substring of the kernel release.
1679     libc_cv_uname_release=$kernel_release
1680   elif test x$config_release != x; then
1681     libc_cv_uname_release=$config_release
1682   elif test x$kernel_release != x; then
1683     libc_cv_uname_release=$kernel_release
1684   else
1685     libc_cv_uname_release=unknown
1686   fi
1687 fi
1688
1689 echo "$ac_t""$libc_cv_uname_release" 1>&6
1690   uname_release="$libc_cv_uname_release"
1691
1692   echo $ac_n "checking OS version for uname""... $ac_c" 1>&6
1693 if eval "test \"`echo '$''{'libc_cv_uname_version'+set}'`\" = set"; then
1694   echo $ac_n "(cached) $ac_c" 1>&6
1695 else
1696     kernel_version=`echo "$kernel_id" | sed 's/^[^#]*#\([0-9]*\).*$/\1/'`
1697   if test -n "$kernel_version"; then
1698     libc_cv_uname_version="$kernel_version"
1699   else
1700     libc_cv_uname_version=unknown
1701   fi
1702 fi
1703
1704 echo "$ac_t""$libc_cv_uname_version" 1>&6
1705   uname_version="$libc_cv_uname_version"
1706
1707     config_uname=config-name.h:config-name.in
1708 else
1709   # For non-generic uname, we don't need to create config-name.h at all.
1710   config_uname=
1711 fi
1712
1713 echo $ac_n "checking stdio selection""... $ac_c" 1>&6
1714
1715 case $stdio in
1716 libio) cat >> confdefs.h <<\EOF
1717 #define USE_IN_LIBIO 1
1718 EOF
1719  ;;
1720 default) stdio=stdio ;;
1721 esac
1722 echo "$ac_t""$stdio" 1>&6
1723
1724   
1725 if test $gnu_ld = yes; then
1726   cat >> confdefs.h <<\EOF
1727 #define HAVE_GNU_LD 1
1728 EOF
1729
1730 fi
1731 if test $gnu_as = yes; then
1732   cat >> confdefs.h <<\EOF
1733 #define HAVE_GNU_AS 1
1734 EOF
1735
1736 fi
1737 if test $elf = yes; then
1738   cat >> confdefs.h <<\EOF
1739 #define HAVE_ELF 1
1740 EOF
1741
1742 fi
1743
1744
1745 if test $shared = default; then
1746   if test $gnu_ld = yes; then
1747     shared=$elf
1748   fi
1749 fi
1750
1751
1752
1753
1754
1755 if test "`(cd $srcdir; pwd)`" = "`pwd`"; then
1756   config_makefile=
1757 else
1758   config_makefile=Makefile
1759 fi
1760
1761 trap '' 1 2 15
1762 cat > confcache <<\EOF
1763 # This file is a shell script that caches the results of configure
1764 # tests run on this system so they can be shared between configure
1765 # scripts and configure runs.  It is not useful on other systems.
1766 # If it contains results you don't want to keep, you may remove or edit it.
1767 #
1768 # By default, configure uses ./config.cache as the cache file,
1769 # creating it if it does not exist already.  You can give configure
1770 # the --cache-file=FILE option to use a different cache file; that is
1771 # what configure does when it calls configure scripts in
1772 # subdirectories, so they share the cache.
1773 # Giving --cache-file=/dev/null disables caching, for debugging configure.
1774 # config.status only pays attention to the cache file if you give it the
1775 # --recheck option to rerun configure.
1776 #
1777 EOF
1778 # Ultrix sh set writes to stderr and can't be redirected directly,
1779 # and sets the high bit in the cache file unless we assign to the vars.
1780 (set) 2>&1 |
1781   sed -n "s/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=\${\1='\2'}/p" \
1782   >> confcache
1783 if cmp -s $cache_file confcache; then
1784   :
1785 else
1786   if test -w $cache_file; then
1787     echo "updating cache $cache_file"
1788     cat confcache > $cache_file
1789   else
1790     echo "not updating unwritable cache $cache_file"
1791   fi
1792 fi
1793 rm -f confcache
1794
1795 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
1796
1797 test "x$prefix" = xNONE && prefix=$ac_default_prefix
1798 # Let make expand exec_prefix.
1799 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
1800
1801 # Any assignment to VPATH causes Sun make to only execute
1802 # the first set of double-colon rules, so remove it if not needed.
1803 # If there is a colon in the path, we need to keep it.
1804 if test "x$srcdir" = x.; then
1805   ac_vpsub='/^[         ]*VPATH[        ]*=[^:]*$/d'
1806 fi
1807
1808 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
1809
1810 DEFS=-DHAVE_CONFIG_H
1811
1812 # Without the "./", some shells look in PATH for config.status.
1813 : ${CONFIG_STATUS=./config.status}
1814
1815 echo creating $CONFIG_STATUS
1816 rm -f $CONFIG_STATUS
1817 cat > $CONFIG_STATUS <<EOF
1818 #! /bin/sh
1819 # Generated automatically by configure.
1820 # Run this file to recreate the current configuration.
1821 # This directory was configured as follows,
1822 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
1823 #
1824 # $0 $ac_configure_args
1825 #
1826 # Compiler output produced by configure, useful for debugging
1827 # configure, is in ./config.log if it exists.
1828
1829 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
1830 for ac_option
1831 do
1832   case "\$ac_option" in
1833   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1834     echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
1835     exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
1836   -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
1837     echo "$CONFIG_STATUS generated by autoconf version 2.99"
1838     exit 0 ;;
1839   -help | --help | --hel | --he | --h)
1840     echo "\$ac_cs_usage"; exit 0 ;;
1841   *) echo "\$ac_cs_usage"; exit 1 ;;
1842   esac
1843 done
1844
1845 ac_given_srcdir=$srcdir
1846 ac_given_INSTALL="$INSTALL"
1847
1848 trap 'rm -fr `echo "config.make ${config_makefile} ${config_uname} config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
1849 EOF
1850 cat >> $CONFIG_STATUS <<EOF
1851
1852 # Protect against being on the right side of a sed subst in config.status.
1853 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
1854  s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
1855 $ac_vpsub
1856 $extrasub
1857 s%@CFLAGS@%$CFLAGS%g
1858 s%@CPPFLAGS@%$CPPFLAGS%g
1859 s%@CXXFLAGS@%$CXXFLAGS%g
1860 s%@DEFS@%$DEFS%g
1861 s%@LDFLAGS@%$LDFLAGS%g
1862 s%@LIBS@%$LIBS%g
1863 s%@exec_prefix@%$exec_prefix%g
1864 s%@prefix@%$prefix%g
1865 s%@program_transform_name@%$program_transform_name%g
1866 s%@bindir@%$bindir%g
1867 s%@sbindir@%$sbindir%g
1868 s%@libexecdir@%$libexecdir%g
1869 s%@datadir@%$datadir%g
1870 s%@sysconfdir@%$sysconfdir%g
1871 s%@sharedstatedir@%$sharedstatedir%g
1872 s%@localstatedir@%$localstatedir%g
1873 s%@libdir@%$libdir%g
1874 s%@includedir@%$includedir%g
1875 s%@oldincludedir@%$oldincludedir%g
1876 s%@infodir@%$infodir%g
1877 s%@mandir@%$mandir%g
1878 s%@subdirs@%$subdirs%g
1879 s%@host@%$host%g
1880 s%@host_alias@%$host_alias%g
1881 s%@host_cpu@%$host_cpu%g
1882 s%@host_vendor@%$host_vendor%g
1883 s%@host_os@%$host_os%g
1884 s%@base_machine@%$base_machine%g
1885 s%@sysnames@%$sysnames%g
1886 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
1887 s%@INSTALL_DATA@%$INSTALL_DATA%g
1888 s%@LN_S@%$LN_S%g
1889 s%@MSGFMT@%$MSGFMT%g
1890 s%@build@%$build%g
1891 s%@build_alias@%$build_alias%g
1892 s%@build_cpu@%$build_cpu%g
1893 s%@build_vendor@%$build_vendor%g
1894 s%@build_os@%$build_os%g
1895 s%@CC@%$CC%g
1896 s%@BUILD_CC@%$BUILD_CC%g
1897 s%@CPP@%$CPP%g
1898 s%@AR@%$AR%g
1899 s%@RANLIB@%$RANLIB%g
1900 s%@libc_cv_have_initfini@%$libc_cv_have_initfini%g
1901 s%@libc_cv_ld_no_whole_archive@%$libc_cv_ld_no_whole_archive%g
1902 s%@libc_cv_gcc_no_exceptions@%$libc_cv_gcc_no_exceptions%g
1903 s%@uname_sysname@%$uname_sysname%g
1904 s%@uname_release@%$uname_release%g
1905 s%@uname_version@%$uname_version%g
1906 s%@stdio@%$stdio%g
1907 s%@gnu_ld@%$gnu_ld%g
1908 s%@gnu_as@%$gnu_as%g
1909 s%@elf@%$elf%g
1910 s%@shared@%$shared%g
1911 s%@profile@%$profile%g
1912 s%@omitfp@%$omitfp%g
1913 s%@DEFINES@%$DEFINES%g
1914
1915 CEOF
1916 EOF
1917 cat >> $CONFIG_STATUS <<EOF
1918
1919 CONFIG_FILES=\${CONFIG_FILES-"config.make ${config_makefile} ${config_uname}"}
1920 EOF
1921 cat >> $CONFIG_STATUS <<\EOF
1922 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
1923   # Support "outfile[:infile]", defaulting infile="outfile.in".
1924   case "$ac_file" in
1925   *:*) ac_file_in=`echo "$ac_file"|sed 's%.*:%%'`
1926        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
1927   *) ac_file_in="${ac_file}.in" ;;
1928   esac
1929
1930   # Adjust relative srcdir, etc. for subdirectories.
1931
1932   # Remove last slash and all that follows it.  Not all systems have dirname.
1933   ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
1934   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
1935     # The file is in a subdirectory.
1936     test ! -d "$ac_dir" && mkdir "$ac_dir"
1937     ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
1938     # A "../" for each directory in $ac_dir_suffix.
1939     ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
1940   else
1941     ac_dir_suffix= ac_dots=
1942   fi
1943
1944   case "$ac_given_srcdir" in
1945   .)  srcdir=.
1946       if test -z "$ac_dots"; then top_srcdir=.
1947       else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
1948   /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
1949   *) # Relative path.
1950     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
1951     top_srcdir="$ac_dots$ac_given_srcdir" ;;
1952   esac
1953
1954   case "$ac_given_INSTALL" in
1955   [/$]*) INSTALL="$ac_given_INSTALL" ;;
1956   *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
1957   esac
1958   echo creating "$ac_file"
1959   rm -f "$ac_file"
1960   configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
1961   case "$ac_file" in
1962   *Makefile*) ac_comsub="1i\\
1963 # $configure_input" ;;
1964   *) ac_comsub= ;;
1965   esac
1966   sed -e "$ac_comsub
1967 s%@configure_input@%$configure_input%g
1968 s%@srcdir@%$srcdir%g
1969 s%@top_srcdir@%$top_srcdir%g
1970 s%@INSTALL@%$INSTALL%g
1971 " -f conftest.subs $ac_given_srcdir/$ac_file_in > $ac_file
1972 fi; done
1973 rm -f conftest.subs
1974
1975 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
1976 # NAME is the cpp macro being defined and VALUE is the value it is being given.
1977 #
1978 # ac_d sets the value in "#define NAME VALUE" lines.
1979 ac_dA='s%^\([   ]*\)#\([        ]*define[       ][      ]*\)'
1980 ac_dB='\([      ][      ]*\)[^  ]*%\1#\2'
1981 ac_dC='\3'
1982 ac_dD='%g'
1983 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
1984 ac_uA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
1985 ac_uB='\([      ]\)%\1#\2define\3'
1986 ac_uC=' '
1987 ac_uD='\4%g'
1988 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
1989 ac_eA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
1990 ac_eB='$%\1#\2define\3'
1991 ac_eC=' '
1992 ac_eD='%g'
1993
1994 CONFIG_HEADERS=${CONFIG_HEADERS-"config.h"}
1995 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
1996   # Support "outfile[:infile]", defaulting infile="outfile.in".
1997   case "$ac_file" in
1998   *:*) ac_file_in=`echo "$ac_file"|sed 's%.*:%%'`
1999        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2000   *) ac_file_in="${ac_file}.in" ;;
2001   esac
2002
2003   echo creating $ac_file
2004
2005   rm -f conftest.frag conftest.in conftest.out
2006   cp $ac_given_srcdir/$ac_file_in conftest.in
2007
2008 EOF
2009
2010 # Transform confdefs.h into a sed script conftest.vals that substitutes
2011 # the proper values into config.h.in to produce config.h.  And first:
2012 # Protect against being on the right side of a sed subst in config.status.
2013 # Protect against being in an unquoted here document in config.status.
2014 rm -f conftest.vals
2015 cat > conftest.hdr <<\EOF
2016 s/[\\&%]/\\&/g
2017 s%[\\$`]%\\&%g
2018 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
2019 s%ac_d%ac_u%gp
2020 s%ac_u%ac_e%gp
2021 EOF
2022 sed -n -f conftest.hdr confdefs.h > conftest.vals
2023 rm -f conftest.hdr
2024
2025 # This sed command replaces #undef with comments.  This is necessary, for
2026 # example, in the case of _POSIX_SOURCE, which is predefined and required
2027 # on some systems where configure will not decide to define it.
2028 cat >> conftest.vals <<\EOF
2029 s%^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
2030 EOF
2031
2032 # Break up conftest.vals because some shells have a limit on
2033 # the size of here documents, and old seds have small limits too.
2034 # Maximum number of lines to put in a single here document.
2035 ac_max_here_lines=12
2036
2037 rm -f conftest.tail
2038 while :
2039 do
2040   ac_lines=`grep -c . conftest.vals`
2041   # grep -c gives empty output for an empty file on some AIX systems.
2042   if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
2043   # Write a limited-size here document to conftest.frag.
2044   echo '  cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
2045   sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
2046   echo 'CEOF
2047   sed -f conftest.frag conftest.in > conftest.out
2048   rm -f conftest.in
2049   mv conftest.out conftest.in
2050 ' >> $CONFIG_STATUS
2051   sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
2052   rm -f conftest.vals
2053   mv conftest.tail conftest.vals
2054 done
2055 rm -f conftest.vals
2056
2057 cat >> $CONFIG_STATUS <<\EOF
2058   rm -f conftest.frag conftest.h
2059   echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
2060   cat conftest.in >> conftest.h
2061   rm -f conftest.in
2062   if cmp -s $ac_file conftest.h 2>/dev/null; then
2063     echo "$ac_file is unchanged"
2064     rm -f conftest.h
2065   else
2066     # Remove last slash and all that follows it.  Not all systems have dirname.
2067       ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2068       if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2069       # The file is in a subdirectory.
2070       test ! -d "$ac_dir" && mkdir "$ac_dir"
2071     fi
2072     rm -f $ac_file
2073     mv conftest.h $ac_file
2074   fi
2075 fi; done
2076
2077 EOF
2078
2079 cat >> $CONFIG_STATUS <<EOF
2080 ac_sources="`echo $libc_link_sources`"
2081 ac_dests="`echo $libc_link_dests`"
2082 EOF
2083
2084 cat >> $CONFIG_STATUS <<\EOF
2085 srcdir=$ac_given_srcdir
2086 while test -n "$ac_sources"; do
2087   set $ac_dests; ac_dest=$1; shift; ac_dests=$*
2088   set $ac_sources; ac_source=$1; shift; ac_sources=$*
2089
2090   echo "linking $srcdir/$ac_source to $ac_dest"
2091
2092   if test ! -r $srcdir/$ac_source; then
2093     { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
2094   fi
2095   rm -f $ac_dest
2096
2097   # Make relative symlinks.
2098   # Remove last slash and all that follows it.  Not all systems have dirname.
2099   ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'`
2100   if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
2101     # The dest file is in a subdirectory.
2102     test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
2103     ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`"
2104     # A "../" for each directory in $ac_dest_dir_suffix.
2105     ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'`
2106   else
2107     ac_dest_dir_suffix= ac_dots=
2108   fi
2109
2110   case "$srcdir" in
2111   [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
2112   *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
2113   esac
2114
2115   # Make a symlink if possible; otherwise try a hard link.
2116   if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
2117     ln $srcdir/$ac_source $ac_dest; then :
2118   else
2119     { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
2120   fi
2121 done
2122 EOF
2123 cat >> $CONFIG_STATUS <<EOF
2124 echo '$config_vars' >> config.make
2125 EOF
2126 cat >> $CONFIG_STATUS <<\EOF
2127
2128 exit 0
2129 EOF
2130 chmod +x $CONFIG_STATUS
2131 rm -fr confdefs* $ac_clean_files
2132 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
2133
2134 if test "$no_recursion" != yes; then
2135
2136   # Remove --cache-file and --srcdir arguments so they do not pile up.
2137   ac_sub_configure_args=
2138   ac_prev=
2139   for ac_arg in $ac_configure_args; do
2140     if test -n "$ac_prev"; then
2141       ac_prev=
2142       continue
2143     fi
2144     case "$ac_arg" in
2145     -cache-file | --cache-file | --cache-fil | --cache-fi \
2146     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
2147       ac_prev=cache_file ;;
2148     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
2149     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
2150       ;;
2151     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
2152       ac_prev=srcdir ;;
2153     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
2154       ;;
2155     *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
2156     esac
2157   done
2158
2159   for ac_config_dir in $add_ons; do
2160
2161     # Do not complain, so a configure script can configure whichever
2162     # parts of a large source tree are present.
2163     if test ! -d $srcdir/$ac_config_dir; then
2164       continue
2165     fi
2166
2167     echo configuring in $ac_config_dir
2168
2169     case "$srcdir" in
2170     .) ;;
2171     *)
2172       if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
2173       else
2174         { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
2175       fi
2176       ;;
2177     esac
2178
2179     ac_popdir=`pwd`
2180     cd $ac_config_dir
2181
2182     case "$srcdir" in
2183     .) # No --srcdir option.  We are building in place.
2184       ac_sub_srcdir=$srcdir ;;
2185     /*) # Absolute path.
2186       ac_sub_srcdir=$srcdir/$ac_config_dir ;;
2187     *) # Relative path.
2188       ac_sub_srcdir=../$srcdir/$ac_config_dir ;;
2189     esac
2190
2191     # Check for guested configure; otherwise get Cygnus style configure.
2192     if test -f $ac_sub_srcdir/configure; then
2193       ac_sub_configure=$ac_sub_srcdir/configure
2194     elif test -f $ac_sub_srcdir/configure.in; then
2195       ac_sub_configure=$ac_configure
2196     else
2197       echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
2198       ac_sub_configure=
2199     fi
2200
2201     # The recursion is here.
2202     if test -n "$ac_sub_configure"; then
2203
2204       # Make the cache file name correct relative to the subdirectory.
2205       # A "../" for each directory in /$ac_config_dir.
2206       ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
2207       case "$cache_file" in
2208       /*) ac_sub_cache_file=$cache_file ;;
2209       *) # Relative path.
2210         ac_sub_cache_file="$ac_dots$cache_file" ;;
2211       esac
2212   case "$ac_given_INSTALL" in
2213         [/$]*) INSTALL="$ac_given_INSTALL" ;;
2214         *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
2215         esac
2216
2217       echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
2218       # The eval makes quoting arguments work.
2219       if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
2220       then :
2221       else
2222         { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
2223       fi
2224     fi
2225
2226     cd $ac_popdir
2227   done
2228 fi
2229