~ubuntu-branches/ubuntu/wily/avr-libc/wily-proposed

« back to all changes in this revision

Viewing changes to configure

  • Committer: Bazaar Package Importer
  • Author(s): Hakan Ardo
  • Date: 2002-04-15 14:53:38 UTC
  • Revision ID: james.westby@ubuntu.com-20020415145338-c8hi0tn5bx74w7o3
Tags: upstream-20020203
ImportĀ upstreamĀ versionĀ 20020203

Show diffs side-by-side

added added

removed removed

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