OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [trunk/] [newlib/] [newlib/] [configure] - Blame information for rev 1765

Details | Compare with Previous | View Log

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

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.