OSDN Git Service

0279884f66b1a3f487246b4342e5436e7a236870
[pf3gnuchains/pf3gnuchains4x.git] / newlib / libc / sys / a29khif / configure
1 #! /bin/sh
2
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13 
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
6 #
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9
10 # Defaults:
11 ac_help=
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
14 ac_help="$ac_help
15   --enable-multilib         build many library versions (default)"
16 ac_help="$ac_help
17   --enable-target-optspace  optimize for space"
18 ac_help="$ac_help
19   --enable-newlib-mb        enable multibyte support"
20 ac_help="$ac_help
21   --enable-maintainer-mode enable make rules and dependencies not useful
22                           (and sometimes confusing) to the casual installer"
23
24 # Initialize some variables set by options.
25 # The variables have the same names as the options, with
26 # dashes changed to underlines.
27 build=NONE
28 cache_file=./config.cache
29 exec_prefix=NONE
30 host=NONE
31 no_create=
32 nonopt=NONE
33 no_recursion=
34 prefix=NONE
35 program_prefix=NONE
36 program_suffix=NONE
37 program_transform_name=s,x,x,
38 silent=
39 site=
40 sitefile=
41 srcdir=
42 target=NONE
43 verbose=
44 x_includes=NONE
45 x_libraries=NONE
46 bindir='${exec_prefix}/bin'
47 sbindir='${exec_prefix}/sbin'
48 libexecdir='${exec_prefix}/libexec'
49 datadir='${prefix}/share'
50 sysconfdir='${prefix}/etc'
51 sharedstatedir='${prefix}/com'
52 localstatedir='${prefix}/var'
53 libdir='${exec_prefix}/lib'
54 includedir='${prefix}/include'
55 oldincludedir='/usr/include'
56 infodir='${prefix}/info'
57 mandir='${prefix}/man'
58
59 # Initialize some other variables.
60 subdirs=
61 MFLAGS= MAKEFLAGS=
62 SHELL=${CONFIG_SHELL-/bin/sh}
63 # Maximum number of lines to put in a shell here document.
64 ac_max_here_lines=12
65
66 ac_prev=
67 for ac_option
68 do
69
70   # If the previous option needs an argument, assign it.
71   if test -n "$ac_prev"; then
72     eval "$ac_prev=\$ac_option"
73     ac_prev=
74     continue
75   fi
76
77   case "$ac_option" in
78   -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
79   *) ac_optarg= ;;
80   esac
81
82   # Accept the important Cygnus configure options, so we can diagnose typos.
83
84   case "$ac_option" in
85
86   -bindir | --bindir | --bindi | --bind | --bin | --bi)
87     ac_prev=bindir ;;
88   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
89     bindir="$ac_optarg" ;;
90
91   -build | --build | --buil | --bui | --bu)
92     ac_prev=build ;;
93   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
94     build="$ac_optarg" ;;
95
96   -cache-file | --cache-file | --cache-fil | --cache-fi \
97   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
98     ac_prev=cache_file ;;
99   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
100   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
101     cache_file="$ac_optarg" ;;
102
103   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
104     ac_prev=datadir ;;
105   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
106   | --da=*)
107     datadir="$ac_optarg" ;;
108
109   -disable-* | --disable-*)
110     ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
111     # Reject names that are not valid shell variable names.
112     if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
113       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
114     fi
115     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
116     eval "enable_${ac_feature}=no" ;;
117
118   -enable-* | --enable-*)
119     ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
120     # Reject names that are not valid shell variable names.
121     if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
122       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
123     fi
124     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
125     case "$ac_option" in
126       *=*) ;;
127       *) ac_optarg=yes ;;
128     esac
129     eval "enable_${ac_feature}='$ac_optarg'" ;;
130
131   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
132   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
133   | --exec | --exe | --ex)
134     ac_prev=exec_prefix ;;
135   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
136   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
137   | --exec=* | --exe=* | --ex=*)
138     exec_prefix="$ac_optarg" ;;
139
140   -gas | --gas | --ga | --g)
141     # Obsolete; use --with-gas.
142     with_gas=yes ;;
143
144   -help | --help | --hel | --he)
145     # Omit some internal or obsolete options to make the list less imposing.
146     # This message is too long to be a string in the A/UX 3.1 sh.
147     cat << EOF
148 Usage: configure [options] [host]
149 Options: [defaults in brackets after descriptions]
150 Configuration:
151   --cache-file=FILE       cache test results in FILE
152   --help                  print this message
153   --no-create             do not create output files
154   --quiet, --silent       do not print \`checking...' messages
155   --site-file=FILE        use FILE as the site file
156   --version               print the version of autoconf that created configure
157 Directory and file names:
158   --prefix=PREFIX         install architecture-independent files in PREFIX
159                           [$ac_default_prefix]
160   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
161                           [same as prefix]
162   --bindir=DIR            user executables in DIR [EPREFIX/bin]
163   --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
164   --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
165   --datadir=DIR           read-only architecture-independent data in DIR
166                           [PREFIX/share]
167   --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
168   --sharedstatedir=DIR    modifiable architecture-independent data in DIR
169                           [PREFIX/com]
170   --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
171   --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
172   --includedir=DIR        C header files in DIR [PREFIX/include]
173   --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
174   --infodir=DIR           info documentation in DIR [PREFIX/info]
175   --mandir=DIR            man documentation in DIR [PREFIX/man]
176   --srcdir=DIR            find the sources in DIR [configure dir or ..]
177   --program-prefix=PREFIX prepend PREFIX to installed program names
178   --program-suffix=SUFFIX append SUFFIX to installed program names
179   --program-transform-name=PROGRAM
180                           run sed PROGRAM on installed program names
181 EOF
182     cat << EOF
183 Host type:
184   --build=BUILD           configure for building on BUILD [BUILD=HOST]
185   --host=HOST             configure for HOST [guessed]
186   --target=TARGET         configure for TARGET [TARGET=HOST]
187 Features and packages:
188   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
189   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
190   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
191   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
192   --x-includes=DIR        X include files are in DIR
193   --x-libraries=DIR       X library files are in DIR
194 EOF
195     if test -n "$ac_help"; then
196       echo "--enable and --with options recognized:$ac_help"
197     fi
198     exit 0 ;;
199
200   -host | --host | --hos | --ho)
201     ac_prev=host ;;
202   -host=* | --host=* | --hos=* | --ho=*)
203     host="$ac_optarg" ;;
204
205   -includedir | --includedir | --includedi | --included | --include \
206   | --includ | --inclu | --incl | --inc)
207     ac_prev=includedir ;;
208   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
209   | --includ=* | --inclu=* | --incl=* | --inc=*)
210     includedir="$ac_optarg" ;;
211
212   -infodir | --infodir | --infodi | --infod | --info | --inf)
213     ac_prev=infodir ;;
214   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
215     infodir="$ac_optarg" ;;
216
217   -libdir | --libdir | --libdi | --libd)
218     ac_prev=libdir ;;
219   -libdir=* | --libdir=* | --libdi=* | --libd=*)
220     libdir="$ac_optarg" ;;
221
222   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
223   | --libexe | --libex | --libe)
224     ac_prev=libexecdir ;;
225   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
226   | --libexe=* | --libex=* | --libe=*)
227     libexecdir="$ac_optarg" ;;
228
229   -localstatedir | --localstatedir | --localstatedi | --localstated \
230   | --localstate | --localstat | --localsta | --localst \
231   | --locals | --local | --loca | --loc | --lo)
232     ac_prev=localstatedir ;;
233   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
234   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
235   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
236     localstatedir="$ac_optarg" ;;
237
238   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
239     ac_prev=mandir ;;
240   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
241     mandir="$ac_optarg" ;;
242
243   -nfp | --nfp | --nf)
244     # Obsolete; use --without-fp.
245     with_fp=no ;;
246
247   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
248   | --no-cr | --no-c)
249     no_create=yes ;;
250
251   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
252   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
253     no_recursion=yes ;;
254
255   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
256   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
257   | --oldin | --oldi | --old | --ol | --o)
258     ac_prev=oldincludedir ;;
259   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
260   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
261   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
262     oldincludedir="$ac_optarg" ;;
263
264   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
265     ac_prev=prefix ;;
266   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
267     prefix="$ac_optarg" ;;
268
269   -program-prefix | --program-prefix | --program-prefi | --program-pref \
270   | --program-pre | --program-pr | --program-p)
271     ac_prev=program_prefix ;;
272   -program-prefix=* | --program-prefix=* | --program-prefi=* \
273   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
274     program_prefix="$ac_optarg" ;;
275
276   -program-suffix | --program-suffix | --program-suffi | --program-suff \
277   | --program-suf | --program-su | --program-s)
278     ac_prev=program_suffix ;;
279   -program-suffix=* | --program-suffix=* | --program-suffi=* \
280   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
281     program_suffix="$ac_optarg" ;;
282
283   -program-transform-name | --program-transform-name \
284   | --program-transform-nam | --program-transform-na \
285   | --program-transform-n | --program-transform- \
286   | --program-transform | --program-transfor \
287   | --program-transfo | --program-transf \
288   | --program-trans | --program-tran \
289   | --progr-tra | --program-tr | --program-t)
290     ac_prev=program_transform_name ;;
291   -program-transform-name=* | --program-transform-name=* \
292   | --program-transform-nam=* | --program-transform-na=* \
293   | --program-transform-n=* | --program-transform-=* \
294   | --program-transform=* | --program-transfor=* \
295   | --program-transfo=* | --program-transf=* \
296   | --program-trans=* | --program-tran=* \
297   | --progr-tra=* | --program-tr=* | --program-t=*)
298     program_transform_name="$ac_optarg" ;;
299
300   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
301   | -silent | --silent | --silen | --sile | --sil)
302     silent=yes ;;
303
304   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
305     ac_prev=sbindir ;;
306   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
307   | --sbi=* | --sb=*)
308     sbindir="$ac_optarg" ;;
309
310   -sharedstatedir | --sharedstatedir | --sharedstatedi \
311   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
312   | --sharedst | --shareds | --shared | --share | --shar \
313   | --sha | --sh)
314     ac_prev=sharedstatedir ;;
315   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
316   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
317   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
318   | --sha=* | --sh=*)
319     sharedstatedir="$ac_optarg" ;;
320
321   -site | --site | --sit)
322     ac_prev=site ;;
323   -site=* | --site=* | --sit=*)
324     site="$ac_optarg" ;;
325
326   -site-file | --site-file | --site-fil | --site-fi | --site-f)
327     ac_prev=sitefile ;;
328   -site-file=* | --site-file=* | --site-fil=* | --site-fi=* | --site-f=*)
329     sitefile="$ac_optarg" ;;
330
331   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
332     ac_prev=srcdir ;;
333   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
334     srcdir="$ac_optarg" ;;
335
336   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
337   | --syscon | --sysco | --sysc | --sys | --sy)
338     ac_prev=sysconfdir ;;
339   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
340   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
341     sysconfdir="$ac_optarg" ;;
342
343   -target | --target | --targe | --targ | --tar | --ta | --t)
344     ac_prev=target ;;
345   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
346     target="$ac_optarg" ;;
347
348   -v | -verbose | --verbose | --verbos | --verbo | --verb)
349     verbose=yes ;;
350
351   -version | --version | --versio | --versi | --vers)
352     echo "configure generated by autoconf version 2.13"
353     exit 0 ;;
354
355   -with-* | --with-*)
356     ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
357     # Reject names that are not valid shell variable names.
358     if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
359       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
360     fi
361     ac_package=`echo $ac_package| sed 's/-/_/g'`
362     case "$ac_option" in
363       *=*) ;;
364       *) ac_optarg=yes ;;
365     esac
366     eval "with_${ac_package}='$ac_optarg'" ;;
367
368   -without-* | --without-*)
369     ac_package=`echo $ac_option|sed -e 's/-*without-//'`
370     # Reject names that are not valid shell variable names.
371     if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
372       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
373     fi
374     ac_package=`echo $ac_package| sed 's/-/_/g'`
375     eval "with_${ac_package}=no" ;;
376
377   --x)
378     # Obsolete; use --with-x.
379     with_x=yes ;;
380
381   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
382   | --x-incl | --x-inc | --x-in | --x-i)
383     ac_prev=x_includes ;;
384   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
385   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
386     x_includes="$ac_optarg" ;;
387
388   -x-libraries | --x-libraries | --x-librarie | --x-librari \
389   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
390     ac_prev=x_libraries ;;
391   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
392   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
393     x_libraries="$ac_optarg" ;;
394
395   -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
396     ;;
397
398   *)
399     if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
400       echo "configure: warning: $ac_option: invalid host type" 1>&2
401     fi
402     if test "x$nonopt" != xNONE; then
403       { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
404     fi
405     nonopt="$ac_option"
406     ;;
407
408   esac
409 done
410
411 if test -n "$ac_prev"; then
412   { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
413 fi
414
415 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
416
417 # File descriptor usage:
418 # 0 standard input
419 # 1 file creation
420 # 2 errors and warnings
421 # 3 some systems may open it to /dev/tty
422 # 4 used on the Kubota Titan
423 # 6 checking for... messages and results
424 # 5 compiler messages saved in config.log
425 if test "$silent" = yes; then
426   exec 6>/dev/null
427 else
428   exec 6>&1
429 fi
430 exec 5>./config.log
431
432 echo "\
433 This file contains any messages produced by compilers while
434 running configure, to aid debugging if configure makes a mistake.
435 " 1>&5
436
437 # Strip out --no-create and --no-recursion so they do not pile up.
438 # Also quote any args containing shell metacharacters.
439 ac_configure_args=
440 for ac_arg
441 do
442   case "$ac_arg" in
443   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
444   | --no-cr | --no-c) ;;
445   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
446   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
447   *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
448   ac_configure_args="$ac_configure_args '$ac_arg'" ;;
449   *) ac_configure_args="$ac_configure_args $ac_arg" ;;
450   esac
451 done
452
453 # NLS nuisances.
454 # Only set these to C if already set.  These must not be set unconditionally
455 # because not all systems understand e.g. LANG=C (notably SCO).
456 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
457 # Non-C LC_CTYPE values break the ctype check.
458 if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
459 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
460 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
461 if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
462
463 # confdefs.h avoids OS command line length limits that DEFS can exceed.
464 rm -rf conftest* confdefs.h
465 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
466 echo > confdefs.h
467
468 # A filename unique to this package, relative to the directory that
469 # configure is in, which we can look for to find out if srcdir is correct.
470 ac_unique_file=_alloc.s
471
472 # Find the source files, if location was not specified.
473 if test -z "$srcdir"; then
474   ac_srcdir_defaulted=yes
475   # Try the directory containing this script, then its parent.
476   ac_prog=$0
477   ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
478   test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
479   srcdir=$ac_confdir
480   if test ! -r $srcdir/$ac_unique_file; then
481     srcdir=..
482   fi
483 else
484   ac_srcdir_defaulted=no
485 fi
486 if test ! -r $srcdir/$ac_unique_file; then
487   if test "$ac_srcdir_defaulted" = yes; then
488     { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
489   else
490     { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
491   fi
492 fi
493 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
494
495 # Prefer explicitly selected file to automatically selected ones.
496 if test -z "$sitefile"; then
497   if test -z "$CONFIG_SITE"; then
498     if test "x$prefix" != xNONE; then
499       CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
500     else
501       CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
502     fi
503   fi
504 else
505   CONFIG_SITE="$sitefile"
506 fi
507 for ac_site_file in $CONFIG_SITE; do
508   if test -r "$ac_site_file"; then
509     echo "loading site script $ac_site_file"
510     . "$ac_site_file"
511   fi
512 done
513
514 if test -r "$cache_file"; then
515   echo "loading cache $cache_file"
516   . $cache_file
517 else
518   echo "creating cache $cache_file"
519   > $cache_file
520 fi
521
522 ac_ext=c
523 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
524 ac_cpp='$CPP $CPPFLAGS'
525 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
526 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
527 cross_compiling=$ac_cv_prog_cc_cross
528
529 ac_exeext=
530 ac_objext=o
531 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
532   # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
533   if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
534     ac_n= ac_c='
535 ' ac_t='        '
536   else
537     ac_n=-n ac_c= ac_t=
538   fi
539 else
540   ac_n= ac_c='\c' ac_t=
541 fi
542
543
544
545 ac_aux_dir=
546 for ac_dir in ../../../.. $srcdir/../../../..; do
547   if test -f $ac_dir/install-sh; then
548     ac_aux_dir=$ac_dir
549     ac_install_sh="$ac_aux_dir/install-sh -c"
550     break
551   elif test -f $ac_dir/install.sh; then
552     ac_aux_dir=$ac_dir
553     ac_install_sh="$ac_aux_dir/install.sh -c"
554     break
555   fi
556 done
557 if test -z "$ac_aux_dir"; then
558   { echo "configure: error: can not find install-sh or install.sh in ../../../.. $srcdir/../../../.." 1>&2; exit 1; }
559 fi
560 ac_config_guess=$ac_aux_dir/config.guess
561 ac_config_sub=$ac_aux_dir/config.sub
562 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
563
564
565 # Find a good install program.  We prefer a C program (faster),
566 # so one script is as good as another.  But avoid the broken or
567 # incompatible versions:
568 # SysV /etc/install, /usr/sbin/install
569 # SunOS /usr/etc/install
570 # IRIX /sbin/install
571 # AIX /bin/install
572 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
573 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
574 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
575 # ./install, which can be erroneously created by make from ./install.sh.
576 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
577 echo "configure:578: checking for a BSD compatible install" >&5
578 if test -z "$INSTALL"; then
579 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
580   echo $ac_n "(cached) $ac_c" 1>&6
581 else
582     IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS=":"
583   for ac_dir in $PATH; do
584     # Account for people who put trailing slashes in PATH elements.
585     case "$ac_dir/" in
586     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
587     *)
588       # OSF1 and SCO ODT 3.0 have their own names for install.
589       # Don't use installbsd from OSF since it installs stuff as root
590       # by default.
591       for ac_prog in ginstall scoinst install; do
592         if test -f $ac_dir/$ac_prog; then
593           if test $ac_prog = install &&
594             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
595             # AIX install.  It has an incompatible calling convention.
596             :
597           else
598             ac_cv_path_install="$ac_dir/$ac_prog -c"
599             break 2
600           fi
601         fi
602       done
603       ;;
604     esac
605   done
606   IFS="$ac_save_IFS"
607
608 fi
609   if test "${ac_cv_path_install+set}" = set; then
610     INSTALL="$ac_cv_path_install"
611   else
612     # As a last resort, use the slow shell script.  We don't cache a
613     # path for INSTALL within a source directory, because that will
614     # break other packages using the cache if that directory is
615     # removed, or if the path is relative.
616     INSTALL="$ac_install_sh"
617   fi
618 fi
619 echo "$ac_t""$INSTALL" 1>&6
620
621 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
622 # It thinks the first close brace ends the variable substitution.
623 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
624
625 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
626
627 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
628
629 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
630 echo "configure:631: checking whether build environment is sane" >&5
631 # Just in case
632 sleep 1
633 echo timestamp > conftestfile
634 # Do `set' in a subshell so we don't clobber the current shell's
635 # arguments.  Must try -L first in case configure is actually a
636 # symlink; some systems play weird games with the mod time of symlinks
637 # (eg FreeBSD returns the mod time of the symlink's containing
638 # directory).
639 if (
640    set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
641    if test "$*" = "X"; then
642       # -L didn't work.
643       set X `ls -t $srcdir/configure conftestfile`
644    fi
645    if test "$*" != "X $srcdir/configure conftestfile" \
646       && test "$*" != "X conftestfile $srcdir/configure"; then
647
648       # If neither matched, then we have a broken ls.  This can happen
649       # if, for instance, CONFIG_SHELL is bash and it inherits a
650       # broken ls alias from the environment.  This has actually
651       # happened.  Such a system could not be considered "sane".
652       { echo "configure: error: ls -t appears to fail.  Make sure there is not a broken
653 alias in your environment" 1>&2; exit 1; }
654    fi
655
656    test "$2" = conftestfile
657    )
658 then
659    # Ok.
660    :
661 else
662    { echo "configure: error: newly created file is older than distributed files!
663 Check your system clock" 1>&2; exit 1; }
664 fi
665 rm -f conftest*
666 echo "$ac_t""yes" 1>&6
667 if test "$program_transform_name" = s,x,x,; then
668   program_transform_name=
669 else
670   # Double any \ or $.  echo might interpret backslashes.
671   cat <<\EOF_SED > conftestsed
672 s,\\,\\\\,g; s,\$,$$,g
673 EOF_SED
674   program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
675   rm -f conftestsed
676 fi
677 test "$program_prefix" != NONE &&
678   program_transform_name="s,^,${program_prefix},; $program_transform_name"
679 # Use a double $ so make ignores it.
680 test "$program_suffix" != NONE &&
681   program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
682
683 # sed with no file args requires a program.
684 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
685
686 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
687 echo "configure:688: checking whether ${MAKE-make} sets \${MAKE}" >&5
688 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
689 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
690   echo $ac_n "(cached) $ac_c" 1>&6
691 else
692   cat > conftestmake <<\EOF
693 all:
694         @echo 'ac_maketemp="${MAKE}"'
695 EOF
696 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
697 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
698 if test -n "$ac_maketemp"; then
699   eval ac_cv_prog_make_${ac_make}_set=yes
700 else
701   eval ac_cv_prog_make_${ac_make}_set=no
702 fi
703 rm -f conftestmake
704 fi
705 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
706   echo "$ac_t""yes" 1>&6
707   SET_MAKE=
708 else
709   echo "$ac_t""no" 1>&6
710   SET_MAKE="MAKE=${MAKE-make}"
711 fi
712
713 if test $host != $build; then
714   ac_tool_prefix=${host_alias}-
715 else
716   ac_tool_prefix=
717 fi
718
719 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
720 echo "configure:721: checking for Cygwin environment" >&5
721 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
722   echo $ac_n "(cached) $ac_c" 1>&6
723 else
724   cat > conftest.$ac_ext <<EOF
725 #line 726 "configure"
726 #include "confdefs.h"
727
728 int main() {
729
730 #ifndef __CYGWIN__
731 #define __CYGWIN__ __CYGWIN32__
732 #endif
733 return __CYGWIN__;
734 ; return 0; }
735 EOF
736 if { (eval echo configure:737: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
737   rm -rf conftest*
738   ac_cv_cygwin=yes
739 else
740   echo "configure: failed program was:" >&5
741   cat conftest.$ac_ext >&5
742   rm -rf conftest*
743   ac_cv_cygwin=no
744 fi
745 rm -f conftest*
746 rm -f conftest*
747 fi
748
749 echo "$ac_t""$ac_cv_cygwin" 1>&6
750 CYGWIN=
751 test "$ac_cv_cygwin" = yes && CYGWIN=yes
752 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
753 echo "configure:754: checking for mingw32 environment" >&5
754 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
755   echo $ac_n "(cached) $ac_c" 1>&6
756 else
757   cat > conftest.$ac_ext <<EOF
758 #line 759 "configure"
759 #include "confdefs.h"
760
761 int main() {
762 return __MINGW32__;
763 ; return 0; }
764 EOF
765 if { (eval echo configure:766: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
766   rm -rf conftest*
767   ac_cv_mingw32=yes
768 else
769   echo "configure: failed program was:" >&5
770   cat conftest.$ac_ext >&5
771   rm -rf conftest*
772   ac_cv_mingw32=no
773 fi
774 rm -f conftest*
775 rm -f conftest*
776 fi
777
778 echo "$ac_t""$ac_cv_mingw32" 1>&6
779 MINGW32=
780 test "$ac_cv_mingw32" = yes && MINGW32=yes
781
782 # Check whether --enable-multilib or --disable-multilib was given.
783 if test "${enable_multilib+set}" = set; then
784   enableval="$enable_multilib"
785   case "${enableval}" in
786   yes) multilib=yes ;;
787   no)  multilib=no ;;
788   *)   { echo "configure: error: bad value ${enableval} for multilib option" 1>&2; exit 1; } ;;
789  esac
790 else
791   multilib=yes
792 fi
793
794 # Check whether --enable-target-optspace or --disable-target-optspace was given.
795 if test "${enable_target_optspace+set}" = set; then
796   enableval="$enable_target_optspace"
797   case "${enableval}" in
798   yes) target_optspace=yes ;;
799   no)  target_optspace=no ;;
800   *)   { echo "configure: error: bad value ${enableval} for target-optspace option" 1>&2; exit 1; } ;;
801  esac
802 else
803   target_optspace=
804 fi
805
806 # Check whether --enable-newlib-mb or --disable-newlib-mb was given.
807 if test "${enable_newlib_mb+set}" = set; then
808   enableval="$enable_newlib_mb"
809   case "${enableval}" in
810   yes) newlib_mb=yes ;;
811   no)  newlib_mb=no ;;
812   *)   { echo "configure: error: bad value ${enableval} for newlib-mb option" 1>&2; exit 1; } ;;
813  esac
814 else
815   newlib_mb=no
816 fi
817
818
819 test -z "${with_target_subdir}" && with_target_subdir=.
820
821 if test "${srcdir}" = "."; then
822   if test "${with_target_subdir}" != "."; then
823     newlib_basedir="${srcdir}/${with_multisrctop}../../../.."
824   else
825     newlib_basedir="${srcdir}/${with_multisrctop}../../.."
826   fi
827 else
828   newlib_basedir="${srcdir}/../../.."
829 fi
830
831
832
833 # Make sure we can run config.sub.
834 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
835 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
836 fi
837
838 echo $ac_n "checking host system type""... $ac_c" 1>&6
839 echo "configure:840: checking host system type" >&5
840
841 host_alias=$host
842 case "$host_alias" in
843 NONE)
844   case $nonopt in
845   NONE)
846     if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
847     else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
848     fi ;;
849   *) host_alias=$nonopt ;;
850   esac ;;
851 esac
852
853 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
854 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
855 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
856 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
857 echo "$ac_t""$host" 1>&6
858
859
860
861 PACKAGE=newlib
862
863 VERSION=1.8.1
864
865 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
866   { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
867 fi
868 cat >> confdefs.h <<EOF
869 #define PACKAGE "$PACKAGE"
870 EOF
871
872 cat >> confdefs.h <<EOF
873 #define VERSION "$VERSION"
874 EOF
875
876
877
878 missing_dir=`cd $ac_aux_dir && pwd`
879 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
880 echo "configure:881: checking for working aclocal" >&5
881 # Run test in a subshell; some versions of sh will print an error if
882 # an executable is not found, even if stderr is redirected.
883 # Redirect stdin to placate older versions of autoconf.  Sigh.
884 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
885    ACLOCAL=aclocal
886    echo "$ac_t""found" 1>&6
887 else
888    ACLOCAL="$missing_dir/missing aclocal"
889    echo "$ac_t""missing" 1>&6
890 fi
891
892 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
893 echo "configure:894: checking for working autoconf" >&5
894 # Run test in a subshell; some versions of sh will print an error if
895 # an executable is not found, even if stderr is redirected.
896 # Redirect stdin to placate older versions of autoconf.  Sigh.
897 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
898    AUTOCONF=autoconf
899    echo "$ac_t""found" 1>&6
900 else
901    AUTOCONF="$missing_dir/missing autoconf"
902    echo "$ac_t""missing" 1>&6
903 fi
904
905 echo $ac_n "checking for working automake""... $ac_c" 1>&6
906 echo "configure:907: checking for working automake" >&5
907 # Run test in a subshell; some versions of sh will print an error if
908 # an executable is not found, even if stderr is redirected.
909 # Redirect stdin to placate older versions of autoconf.  Sigh.
910 if (automake --version) < /dev/null > /dev/null 2>&1; then
911    AUTOMAKE=automake
912    echo "$ac_t""found" 1>&6
913 else
914    AUTOMAKE="$missing_dir/missing automake"
915    echo "$ac_t""missing" 1>&6
916 fi
917
918 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
919 echo "configure:920: checking for working autoheader" >&5
920 # Run test in a subshell; some versions of sh will print an error if
921 # an executable is not found, even if stderr is redirected.
922 # Redirect stdin to placate older versions of autoconf.  Sigh.
923 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
924    AUTOHEADER=autoheader
925    echo "$ac_t""found" 1>&6
926 else
927    AUTOHEADER="$missing_dir/missing autoheader"
928    echo "$ac_t""missing" 1>&6
929 fi
930
931 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
932 echo "configure:933: checking for working makeinfo" >&5
933 # Run test in a subshell; some versions of sh will print an error if
934 # an executable is not found, even if stderr is redirected.
935 # Redirect stdin to placate older versions of autoconf.  Sigh.
936 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
937    MAKEINFO=makeinfo
938    echo "$ac_t""found" 1>&6
939 else
940    MAKEINFO="$missing_dir/missing makeinfo"
941    echo "$ac_t""missing" 1>&6
942 fi
943
944
945
946 # FIXME: We temporarily define our own version of AC_PROG_CC.  This is
947 # copied from autoconf 2.12, but does not call AC_PROG_CC_WORKS.  We
948 # are probably using a cross compiler, which will not be able to fully
949 # link an executable.  This should really be fixed in autoconf
950 # itself.
951
952
953
954 # Extract the first word of "gcc", so it can be a program name with args.
955 set dummy gcc; ac_word=$2
956 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
957 echo "configure:958: checking for $ac_word" >&5
958 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
959   echo $ac_n "(cached) $ac_c" 1>&6
960 else
961   if test -n "$CC"; then
962   ac_cv_prog_CC="$CC" # Let the user override the test.
963 else
964   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
965   ac_dummy="$PATH"
966   for ac_dir in $ac_dummy; do
967     test -z "$ac_dir" && ac_dir=.
968     if test -f $ac_dir/$ac_word; then
969       ac_cv_prog_CC="gcc"
970       break
971     fi
972   done
973   IFS="$ac_save_ifs"
974 fi
975 fi
976 CC="$ac_cv_prog_CC"
977 if test -n "$CC"; then
978   echo "$ac_t""$CC" 1>&6
979 else
980   echo "$ac_t""no" 1>&6
981 fi
982
983 if test -z "$CC"; then
984   # Extract the first word of "cc", so it can be a program name with args.
985 set dummy cc; ac_word=$2
986 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
987 echo "configure:988: checking for $ac_word" >&5
988 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
989   echo $ac_n "(cached) $ac_c" 1>&6
990 else
991   if test -n "$CC"; then
992   ac_cv_prog_CC="$CC" # Let the user override the test.
993 else
994   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
995   ac_prog_rejected=no
996   ac_dummy="$PATH"
997   for ac_dir in $ac_dummy; do
998     test -z "$ac_dir" && ac_dir=.
999     if test -f $ac_dir/$ac_word; then
1000       if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1001         ac_prog_rejected=yes
1002         continue
1003       fi
1004       ac_cv_prog_CC="cc"
1005       break
1006     fi
1007   done
1008   IFS="$ac_save_ifs"
1009 if test $ac_prog_rejected = yes; then
1010   # We found a bogon in the path, so make sure we never use it.
1011   set dummy $ac_cv_prog_CC
1012   shift
1013   if test $# -gt 0; then
1014     # We chose a different compiler from the bogus one.
1015     # However, it has the same basename, so the bogon will be chosen
1016     # first if we set CC to just the basename; use the full file name.
1017     shift
1018     set dummy "$ac_dir/$ac_word" "$@"
1019     shift
1020     ac_cv_prog_CC="$@"
1021   fi
1022 fi
1023 fi
1024 fi
1025 CC="$ac_cv_prog_CC"
1026 if test -n "$CC"; then
1027   echo "$ac_t""$CC" 1>&6
1028 else
1029   echo "$ac_t""no" 1>&6
1030 fi
1031
1032   test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1033 fi
1034
1035 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1036 echo "configure:1037: checking whether we are using GNU C" >&5
1037 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1038   echo $ac_n "(cached) $ac_c" 1>&6
1039 else
1040   cat > conftest.c <<EOF
1041 #ifdef __GNUC__
1042   yes;
1043 #endif
1044 EOF
1045 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1046: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1046   ac_cv_prog_gcc=yes
1047 else
1048   ac_cv_prog_gcc=no
1049 fi
1050 fi
1051
1052 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1053
1054 if test $ac_cv_prog_gcc = yes; then
1055   GCC=yes
1056   ac_test_CFLAGS="${CFLAGS+set}"
1057   ac_save_CFLAGS="$CFLAGS"
1058   CFLAGS=
1059   echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1060 echo "configure:1061: checking whether ${CC-cc} accepts -g" >&5
1061 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1062   echo $ac_n "(cached) $ac_c" 1>&6
1063 else
1064   echo 'void f(){}' > conftest.c
1065 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1066   ac_cv_prog_cc_g=yes
1067 else
1068   ac_cv_prog_cc_g=no
1069 fi
1070 rm -f conftest*
1071
1072 fi
1073
1074 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1075   if test "$ac_test_CFLAGS" = set; then
1076     CFLAGS="$ac_save_CFLAGS"
1077   elif test $ac_cv_prog_cc_g = yes; then
1078     CFLAGS="-g -O2"
1079   else
1080     CFLAGS="-O2"
1081   fi
1082 else
1083   GCC=
1084   test "${CFLAGS+set}" = set || CFLAGS="-g"
1085 fi
1086
1087
1088 # AC_CHECK_TOOL does AC_REQUIRE (AC_CANONICAL_BUILD).  If we don't
1089 # run it explicitly here, it will be run implicitly before
1090 # NEWLIB_CONFIGURE, which doesn't work because that means that it will
1091 # be run before AC_CANONICAL_HOST.
1092 echo $ac_n "checking build system type""... $ac_c" 1>&6
1093 echo "configure:1094: checking build system type" >&5
1094
1095 build_alias=$build
1096 case "$build_alias" in
1097 NONE)
1098   case $nonopt in
1099   NONE) build_alias=$host_alias ;;
1100   *) build_alias=$nonopt ;;
1101   esac ;;
1102 esac
1103
1104 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1105 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1106 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1107 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1108 echo "$ac_t""$build" 1>&6
1109
1110
1111 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
1112 set dummy ${ac_tool_prefix}as; ac_word=$2
1113 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1114 echo "configure:1115: checking for $ac_word" >&5
1115 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
1116   echo $ac_n "(cached) $ac_c" 1>&6
1117 else
1118   if test -n "$AS"; then
1119   ac_cv_prog_AS="$AS" # Let the user override the test.
1120 else
1121   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1122   ac_dummy="$PATH"
1123   for ac_dir in $ac_dummy; do
1124     test -z "$ac_dir" && ac_dir=.
1125     if test -f $ac_dir/$ac_word; then
1126       ac_cv_prog_AS="${ac_tool_prefix}as"
1127       break
1128     fi
1129   done
1130   IFS="$ac_save_ifs"
1131   test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="as"
1132 fi
1133 fi
1134 AS="$ac_cv_prog_AS"
1135 if test -n "$AS"; then
1136   echo "$ac_t""$AS" 1>&6
1137 else
1138   echo "$ac_t""no" 1>&6
1139 fi
1140
1141
1142
1143 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
1144 set dummy ${ac_tool_prefix}ar; ac_word=$2
1145 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1146 echo "configure:1147: checking for $ac_word" >&5
1147 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1148   echo $ac_n "(cached) $ac_c" 1>&6
1149 else
1150   if test -n "$AR"; then
1151   ac_cv_prog_AR="$AR" # Let the user override the test.
1152 else
1153   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1154   ac_dummy="$PATH"
1155   for ac_dir in $ac_dummy; do
1156     test -z "$ac_dir" && ac_dir=.
1157     if test -f $ac_dir/$ac_word; then
1158       ac_cv_prog_AR="${ac_tool_prefix}ar"
1159       break
1160     fi
1161   done
1162   IFS="$ac_save_ifs"
1163   test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
1164 fi
1165 fi
1166 AR="$ac_cv_prog_AR"
1167 if test -n "$AR"; then
1168   echo "$ac_t""$AR" 1>&6
1169 else
1170   echo "$ac_t""no" 1>&6
1171 fi
1172
1173
1174
1175 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1176 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1177 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1178 echo "configure:1179: checking for $ac_word" >&5
1179 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1180   echo $ac_n "(cached) $ac_c" 1>&6
1181 else
1182   if test -n "$RANLIB"; then
1183   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1184 else
1185   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1186   ac_dummy="$PATH"
1187   for ac_dir in $ac_dummy; do
1188     test -z "$ac_dir" && ac_dir=.
1189     if test -f $ac_dir/$ac_word; then
1190       ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1191       break
1192     fi
1193   done
1194   IFS="$ac_save_ifs"
1195 fi
1196 fi
1197 RANLIB="$ac_cv_prog_RANLIB"
1198 if test -n "$RANLIB"; then
1199   echo "$ac_t""$RANLIB" 1>&6
1200 else
1201   echo "$ac_t""no" 1>&6
1202 fi
1203
1204
1205 if test -z "$ac_cv_prog_RANLIB"; then
1206 if test -n "$ac_tool_prefix"; then
1207   # Extract the first word of "ranlib", so it can be a program name with args.
1208 set dummy ranlib; ac_word=$2
1209 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1210 echo "configure:1211: checking for $ac_word" >&5
1211 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1212   echo $ac_n "(cached) $ac_c" 1>&6
1213 else
1214   if test -n "$RANLIB"; then
1215   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1216 else
1217   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1218   ac_dummy="$PATH"
1219   for ac_dir in $ac_dummy; do
1220     test -z "$ac_dir" && ac_dir=.
1221     if test -f $ac_dir/$ac_word; then
1222       ac_cv_prog_RANLIB="ranlib"
1223       break
1224     fi
1225   done
1226   IFS="$ac_save_ifs"
1227   test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1228 fi
1229 fi
1230 RANLIB="$ac_cv_prog_RANLIB"
1231 if test -n "$RANLIB"; then
1232   echo "$ac_t""$RANLIB" 1>&6
1233 else
1234   echo "$ac_t""no" 1>&6
1235 fi
1236
1237 else
1238   RANLIB=":"
1239 fi
1240 fi
1241
1242
1243 # Find a good install program.  We prefer a C program (faster),
1244 # so one script is as good as another.  But avoid the broken or
1245 # incompatible versions:
1246 # SysV /etc/install, /usr/sbin/install
1247 # SunOS /usr/etc/install
1248 # IRIX /sbin/install
1249 # AIX /bin/install
1250 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1251 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1252 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1253 # ./install, which can be erroneously created by make from ./install.sh.
1254 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1255 echo "configure:1256: checking for a BSD compatible install" >&5
1256 if test -z "$INSTALL"; then
1257 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1258   echo $ac_n "(cached) $ac_c" 1>&6
1259 else
1260     IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS=":"
1261   for ac_dir in $PATH; do
1262     # Account for people who put trailing slashes in PATH elements.
1263     case "$ac_dir/" in
1264     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1265     *)
1266       # OSF1 and SCO ODT 3.0 have their own names for install.
1267       # Don't use installbsd from OSF since it installs stuff as root
1268       # by default.
1269       for ac_prog in ginstall scoinst install; do
1270         if test -f $ac_dir/$ac_prog; then
1271           if test $ac_prog = install &&
1272             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1273             # AIX install.  It has an incompatible calling convention.
1274             :
1275           else
1276             ac_cv_path_install="$ac_dir/$ac_prog -c"
1277             break 2
1278           fi
1279         fi
1280       done
1281       ;;
1282     esac
1283   done
1284   IFS="$ac_save_IFS"
1285
1286 fi
1287   if test "${ac_cv_path_install+set}" = set; then
1288     INSTALL="$ac_cv_path_install"
1289   else
1290     # As a last resort, use the slow shell script.  We don't cache a
1291     # path for INSTALL within a source directory, because that will
1292     # break other packages using the cache if that directory is
1293     # removed, or if the path is relative.
1294     INSTALL="$ac_install_sh"
1295   fi
1296 fi
1297 echo "$ac_t""$INSTALL" 1>&6
1298
1299 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1300 # It thinks the first close brace ends the variable substitution.
1301 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1302
1303 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1304
1305 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1306
1307
1308 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
1309 echo "configure:1310: checking whether to enable maintainer-specific portions of Makefiles" >&5
1310     # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1311 if test "${enable_maintainer_mode+set}" = set; then
1312   enableval="$enable_maintainer_mode"
1313   USE_MAINTAINER_MODE=$enableval
1314 else
1315   USE_MAINTAINER_MODE=no
1316 fi
1317
1318   echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
1319   
1320
1321 if test $USE_MAINTAINER_MODE = yes; then
1322   MAINTAINER_MODE_TRUE=
1323   MAINTAINER_MODE_FALSE='#'
1324 else
1325   MAINTAINER_MODE_TRUE='#'
1326   MAINTAINER_MODE_FALSE=
1327 fi
1328   MAINT=$MAINTAINER_MODE_TRUE
1329   
1330
1331
1332 # We need AC_EXEEXT to keep automake happy in cygnus mode.  However,
1333 # at least currently, we never actually build a program, so we never
1334 # need to use $(EXEEXT).  Moreover, the test for EXEEXT normally
1335 # fails, because we are probably configuring with a cross compiler
1336 # which can't create executables.  So we include AC_EXEEXT to keep
1337 # automake happy, but we don't execute it, since we don't care about
1338 # the result.
1339 if false; then
1340   
1341
1342 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1343 echo "configure:1344: checking for executable suffix" >&5
1344 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1345   echo $ac_n "(cached) $ac_c" 1>&6
1346 else
1347   if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
1348   ac_cv_exeext=.exe
1349 else
1350   rm -f conftest*
1351   echo 'int main () { return 0; }' > conftest.$ac_ext
1352   ac_cv_exeext=
1353   if { (eval echo configure:1354: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1354     for file in conftest.*; do
1355       case $file in
1356       *.c | *.o | *.obj | *.ilk | *.pdb) ;;
1357       *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
1358       esac
1359     done
1360   else
1361     { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1362   fi
1363   rm -f conftest*
1364   test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
1365 fi
1366 fi
1367
1368 EXEEXT=""
1369 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
1370 echo "$ac_t""${ac_cv_exeext}" 1>&6
1371 ac_exeext=$EXEEXT
1372
1373 fi
1374
1375 . ${newlib_basedir}/configure.host
1376
1377 case ${newlib_basedir} in
1378 /* | A-Za-z:/\\*) newlib_flagbasedir=${newlib_basedir} ;;
1379 *) newlib_flagbasedir='$(top_builddir)/'${newlib_basedir} ;;
1380 esac
1381
1382 newlib_cflags="${newlib_cflags} -I"'$(top_builddir)'"/../../../targ-include -I${newlib_flagbasedir}/libc/include"
1383 case "${host}" in
1384   *-*-cygwin*)
1385     newlib_cflags="${newlib_cflags} -I${newlib_flagbasedir}/../winsup/cygwin/include  -I${newlib_flagbasedir}/../winsup/w32api/include"
1386     ;;
1387 esac
1388
1389 newlib_cflags="${newlib_cflags} -fno-builtin"
1390
1391 NEWLIB_CFLAGS=${newlib_cflags}
1392
1393
1394
1395
1396
1397
1398 trap '' 1 2 15
1399 cat > confcache <<\EOF
1400 # This file is a shell script that caches the results of configure
1401 # tests run on this system so they can be shared between configure
1402 # scripts and configure runs.  It is not useful on other systems.
1403 # If it contains results you don't want to keep, you may remove or edit it.
1404 #
1405 # By default, configure uses ./config.cache as the cache file,
1406 # creating it if it does not exist already.  You can give configure
1407 # the --cache-file=FILE option to use a different cache file; that is
1408 # what configure does when it calls configure scripts in
1409 # subdirectories, so they share the cache.
1410 # Giving --cache-file=/dev/null disables caching, for debugging configure.
1411 # config.status only pays attention to the cache file if you give it the
1412 # --recheck option to rerun configure.
1413 #
1414 EOF
1415 # The following way of writing the cache mishandles newlines in values,
1416 # but we know of no workaround that is simple, portable, and efficient.
1417 # So, don't put newlines in cache variables' values.
1418 # Ultrix sh set writes to stderr and can't be redirected directly,
1419 # and sets the high bit in the cache file unless we assign to the vars.
1420 (set) 2>&1 |
1421   case `(ac_space=' '; set | grep ac_space) 2>&1` in
1422   *ac_space=\ *)
1423     # `set' does not quote correctly, so add quotes (double-quote substitution
1424     # turns \\\\ into \\, and sed turns \\ into \).
1425     sed -n \
1426       -e "s/'/'\\\\''/g" \
1427       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
1428     ;;
1429   *)
1430     # `set' quotes correctly as required by POSIX, so do not add quotes.
1431     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
1432     ;;
1433   esac >> confcache
1434 if cmp -s $cache_file confcache; then
1435   :
1436 else
1437   if test -w $cache_file; then
1438     echo "updating cache $cache_file"
1439     cat confcache > $cache_file
1440   else
1441     echo "not updating unwritable cache $cache_file"
1442   fi
1443 fi
1444 rm -f confcache
1445
1446 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
1447
1448 test "x$prefix" = xNONE && prefix=$ac_default_prefix
1449 # Let make expand exec_prefix.
1450 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
1451
1452 # Any assignment to VPATH causes Sun make to only execute
1453 # the first set of double-colon rules, so remove it if not needed.
1454 # If there is a colon in the path, we need to keep it.
1455 if test "x$srcdir" = x.; then
1456   ac_vpsub='/^[         ]*VPATH[        ]*=[^:]*$/d'
1457 fi
1458
1459 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
1460
1461 # Transform confdefs.h into DEFS.
1462 # Protect against shell expansion while executing Makefile rules.
1463 # Protect against Makefile macro expansion.
1464 cat > conftest.defs <<\EOF
1465 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
1466 s%[     `~#$^&*(){}\\|;'"<>?]%\\&%g
1467 s%\[%\\&%g
1468 s%\]%\\&%g
1469 s%\$%$$%g
1470 EOF
1471 DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
1472 rm -f conftest.defs
1473
1474
1475 # Without the "./", some shells look in PATH for config.status.
1476 : ${CONFIG_STATUS=./config.status}
1477
1478 echo creating $CONFIG_STATUS
1479 rm -f $CONFIG_STATUS
1480 cat > $CONFIG_STATUS <<EOF
1481 #! /bin/sh
1482 # Generated automatically by configure.
1483 # Run this file to recreate the current configuration.
1484 # This directory was configured as follows,
1485 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
1486 #
1487 # $0 $ac_configure_args
1488 #
1489 # Compiler output produced by configure, useful for debugging
1490 # configure, is in ./config.log if it exists.
1491
1492 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
1493 for ac_option
1494 do
1495   case "\$ac_option" in
1496   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1497     echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
1498     exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
1499   -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
1500     echo "$CONFIG_STATUS generated by autoconf version 2.13"
1501     exit 0 ;;
1502   -help | --help | --hel | --he | --h)
1503     echo "\$ac_cs_usage"; exit 0 ;;
1504   *) echo "\$ac_cs_usage"; exit 1 ;;
1505   esac
1506 done
1507
1508 ac_given_srcdir=$srcdir
1509 ac_given_INSTALL="$INSTALL"
1510
1511 trap 'rm -fr `echo "Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
1512 EOF
1513 cat >> $CONFIG_STATUS <<EOF
1514
1515 # Protect against being on the right side of a sed subst in config.status.
1516 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
1517  s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
1518 $ac_vpsub
1519 $extrasub
1520 s%@SHELL@%$SHELL%g
1521 s%@CFLAGS@%$CFLAGS%g
1522 s%@CPPFLAGS@%$CPPFLAGS%g
1523 s%@CXXFLAGS@%$CXXFLAGS%g
1524 s%@FFLAGS@%$FFLAGS%g
1525 s%@DEFS@%$DEFS%g
1526 s%@LDFLAGS@%$LDFLAGS%g
1527 s%@LIBS@%$LIBS%g
1528 s%@exec_prefix@%$exec_prefix%g
1529 s%@prefix@%$prefix%g
1530 s%@program_transform_name@%$program_transform_name%g
1531 s%@bindir@%$bindir%g
1532 s%@sbindir@%$sbindir%g
1533 s%@libexecdir@%$libexecdir%g
1534 s%@datadir@%$datadir%g
1535 s%@sysconfdir@%$sysconfdir%g
1536 s%@sharedstatedir@%$sharedstatedir%g
1537 s%@localstatedir@%$localstatedir%g
1538 s%@libdir@%$libdir%g
1539 s%@includedir@%$includedir%g
1540 s%@oldincludedir@%$oldincludedir%g
1541 s%@infodir@%$infodir%g
1542 s%@mandir@%$mandir%g
1543 s%@newlib_basedir@%$newlib_basedir%g
1544 s%@host@%$host%g
1545 s%@host_alias@%$host_alias%g
1546 s%@host_cpu@%$host_cpu%g
1547 s%@host_vendor@%$host_vendor%g
1548 s%@host_os@%$host_os%g
1549 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
1550 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
1551 s%@INSTALL_DATA@%$INSTALL_DATA%g
1552 s%@PACKAGE@%$PACKAGE%g
1553 s%@VERSION@%$VERSION%g
1554 s%@ACLOCAL@%$ACLOCAL%g
1555 s%@AUTOCONF@%$AUTOCONF%g
1556 s%@AUTOMAKE@%$AUTOMAKE%g
1557 s%@AUTOHEADER@%$AUTOHEADER%g
1558 s%@MAKEINFO@%$MAKEINFO%g
1559 s%@SET_MAKE@%$SET_MAKE%g
1560 s%@CC@%$CC%g
1561 s%@build@%$build%g
1562 s%@build_alias@%$build_alias%g
1563 s%@build_cpu@%$build_cpu%g
1564 s%@build_vendor@%$build_vendor%g
1565 s%@build_os@%$build_os%g
1566 s%@AS@%$AS%g
1567 s%@AR@%$AR%g
1568 s%@RANLIB@%$RANLIB%g
1569 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
1570 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
1571 s%@MAINT@%$MAINT%g
1572 s%@EXEEXT@%$EXEEXT%g
1573 s%@NEWLIB_CFLAGS@%$NEWLIB_CFLAGS%g
1574 s%@machine_dir@%$machine_dir%g
1575 s%@sys_dir@%$sys_dir%g
1576
1577 CEOF
1578 EOF
1579
1580 cat >> $CONFIG_STATUS <<\EOF
1581
1582 # Split the substitutions into bite-sized pieces for seds with
1583 # small command number limits, like on Digital OSF/1 and HP-UX.
1584 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
1585 ac_file=1 # Number of current file.
1586 ac_beg=1 # First line for current file.
1587 ac_end=$ac_max_sed_cmds # Line after last line for current file.
1588 ac_more_lines=:
1589 ac_sed_cmds=""
1590 while $ac_more_lines; do
1591   if test $ac_beg -gt 1; then
1592     sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
1593   else
1594     sed "${ac_end}q" conftest.subs > conftest.s$ac_file
1595   fi
1596   if test ! -s conftest.s$ac_file; then
1597     ac_more_lines=false
1598     rm -f conftest.s$ac_file
1599   else
1600     if test -z "$ac_sed_cmds"; then
1601       ac_sed_cmds="sed -f conftest.s$ac_file"
1602     else
1603       ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
1604     fi
1605     ac_file=`expr $ac_file + 1`
1606     ac_beg=$ac_end
1607     ac_end=`expr $ac_end + $ac_max_sed_cmds`
1608   fi
1609 done
1610 if test -z "$ac_sed_cmds"; then
1611   ac_sed_cmds=cat
1612 fi
1613 EOF
1614
1615 cat >> $CONFIG_STATUS <<EOF
1616
1617 CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
1618 EOF
1619 cat >> $CONFIG_STATUS <<\EOF
1620 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
1621   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
1622   case "$ac_file" in
1623   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
1624        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
1625   *) ac_file_in="${ac_file}.in" ;;
1626   esac
1627
1628   # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
1629
1630   # Remove last slash and all that follows it.  Not all systems have dirname.
1631   ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
1632   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
1633     # The file is in a subdirectory.
1634     test ! -d "$ac_dir" && mkdir "$ac_dir"
1635     ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
1636     # A "../" for each directory in $ac_dir_suffix.
1637     ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
1638   else
1639     ac_dir_suffix= ac_dots=
1640   fi
1641
1642   case "$ac_given_srcdir" in
1643   .)  srcdir=.
1644       if test -z "$ac_dots"; then top_srcdir=.
1645       else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
1646   /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
1647   *) # Relative path.
1648     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
1649     top_srcdir="$ac_dots$ac_given_srcdir" ;;
1650   esac
1651
1652   case "$ac_given_INSTALL" in
1653   [/$]*) INSTALL="$ac_given_INSTALL" ;;
1654   *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
1655   esac
1656
1657   echo creating "$ac_file"
1658   rm -f "$ac_file"
1659   configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
1660   case "$ac_file" in
1661   *Makefile*) ac_comsub="1i\\
1662 # $configure_input" ;;
1663   *) ac_comsub= ;;
1664   esac
1665
1666   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
1667   sed -e "$ac_comsub
1668 s%@configure_input@%$configure_input%g
1669 s%@srcdir@%$srcdir%g
1670 s%@top_srcdir@%$top_srcdir%g
1671 s%@INSTALL@%$INSTALL%g
1672 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
1673 fi; done
1674 rm -f conftest.s*
1675
1676 EOF
1677 cat >> $CONFIG_STATUS <<EOF
1678
1679 EOF
1680 cat >> $CONFIG_STATUS <<\EOF
1681
1682 exit 0
1683 EOF
1684 chmod +x $CONFIG_STATUS
1685 rm -fr confdefs* $ac_clean_files
1686 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
1687