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

Subversion Repositories or1k

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

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 1005 ivang
#! /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-malloc-debugging indicate malloc debugging requested"
20
ac_help="$ac_help
21
  --enable-newlib-mb        enable multibyte support"
22
ac_help="$ac_help
23
  --enable-maintainer-mode enable make rules and dependencies not useful
24
                          (and sometimes confusing) to the casual installer"
25
ac_help="$ac_help
26
  --enable-shared[=PKGS]  build shared libraries [default=yes]"
27
ac_help="$ac_help
28
  --enable-static[=PKGS]  build static libraries [default=yes]"
29
ac_help="$ac_help
30
  --enable-fast-install[=PKGS]  optimize for fast installation [default=yes]"
31
ac_help="$ac_help
32
  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]"
33
ac_help="$ac_help
34
  --disable-libtool-lock  avoid locking (might break parallel builds)"
35
ac_help="$ac_help
36
  --enable-newlib-hw-fp    Turn on hardware floating point math"
37
 
38
# Initialize some variables set by options.
39
# The variables have the same names as the options, with
40
# dashes changed to underlines.
41
build=NONE
42
cache_file=./config.cache
43
exec_prefix=NONE
44
host=NONE
45
no_create=
46
nonopt=NONE
47
no_recursion=
48
prefix=NONE
49
program_prefix=NONE
50
program_suffix=NONE
51
program_transform_name=s,x,x,
52
silent=
53
site=
54
sitefile=
55
srcdir=
56
target=NONE
57
verbose=
58
x_includes=NONE
59
x_libraries=NONE
60
bindir='${exec_prefix}/bin'
61
sbindir='${exec_prefix}/sbin'
62
libexecdir='${exec_prefix}/libexec'
63
datadir='${prefix}/share'
64
sysconfdir='${prefix}/etc'
65
sharedstatedir='${prefix}/com'
66
localstatedir='${prefix}/var'
67
libdir='${exec_prefix}/lib'
68
includedir='${prefix}/include'
69
oldincludedir='/usr/include'
70
infodir='${prefix}/info'
71
mandir='${prefix}/man'
72
 
73
# Initialize some other variables.
74
subdirs=
75
MFLAGS= MAKEFLAGS=
76
SHELL=${CONFIG_SHELL-/bin/sh}
77
# Maximum number of lines to put in a shell here document.
78
ac_max_here_lines=12
79
 
80
ac_prev=
81
for ac_option
82
do
83
 
84
  # If the previous option needs an argument, assign it.
85
  if test -n "$ac_prev"; then
86
    eval "$ac_prev=\$ac_option"
87
    ac_prev=
88
    continue
89
  fi
90
 
91
  case "$ac_option" in
92
  -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
93
  *) ac_optarg= ;;
94
  esac
95
 
96
  # Accept the important Cygnus configure options, so we can diagnose typos.
97
 
98
  case "$ac_option" in
99
 
100
  -bindir | --bindir | --bindi | --bind | --bin | --bi)
101
    ac_prev=bindir ;;
102
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
103
    bindir="$ac_optarg" ;;
104
 
105
  -build | --build | --buil | --bui | --bu)
106
    ac_prev=build ;;
107
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
108
    build="$ac_optarg" ;;
109
 
110
  -cache-file | --cache-file | --cache-fil | --cache-fi \
111
  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
112
    ac_prev=cache_file ;;
113
  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
114
  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
115
    cache_file="$ac_optarg" ;;
116
 
117
  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
118
    ac_prev=datadir ;;
119
  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
120
  | --da=*)
121
    datadir="$ac_optarg" ;;
122
 
123
  -disable-* | --disable-*)
124
    ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
125
    # Reject names that are not valid shell variable names.
126
    if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
127
      { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
128
    fi
129
    ac_feature=`echo $ac_feature| sed 's/-/_/g'`
130
    eval "enable_${ac_feature}=no" ;;
131
 
132
  -enable-* | --enable-*)
133
    ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
134
    # Reject names that are not valid shell variable names.
135
    if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
136
      { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
137
    fi
138
    ac_feature=`echo $ac_feature| sed 's/-/_/g'`
139
    case "$ac_option" in
140
      *=*) ;;
141
      *) ac_optarg=yes ;;
142
    esac
143
    eval "enable_${ac_feature}='$ac_optarg'" ;;
144
 
145
  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
146
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
147
  | --exec | --exe | --ex)
148
    ac_prev=exec_prefix ;;
149
  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
150
  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
151
  | --exec=* | --exe=* | --ex=*)
152
    exec_prefix="$ac_optarg" ;;
153
 
154
  -gas | --gas | --ga | --g)
155
    # Obsolete; use --with-gas.
156
    with_gas=yes ;;
157
 
158
  -help | --help | --hel | --he)
159
    # Omit some internal or obsolete options to make the list less imposing.
160
    # This message is too long to be a string in the A/UX 3.1 sh.
161
    cat << EOF
162
Usage: configure [options] [host]
163
Options: [defaults in brackets after descriptions]
164
Configuration:
165
  --cache-file=FILE       cache test results in FILE
166
  --help                  print this message
167
  --no-create             do not create output files
168
  --quiet, --silent       do not print \`checking...' messages
169
  --site-file=FILE        use FILE as the site file
170
  --version               print the version of autoconf that created configure
171
Directory and file names:
172
  --prefix=PREFIX         install architecture-independent files in PREFIX
173
                          [$ac_default_prefix]
174
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
175
                          [same as prefix]
176
  --bindir=DIR            user executables in DIR [EPREFIX/bin]
177
  --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
178
  --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
179
  --datadir=DIR           read-only architecture-independent data in DIR
180
                          [PREFIX/share]
181
  --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
182
  --sharedstatedir=DIR    modifiable architecture-independent data in DIR
183
                          [PREFIX/com]
184
  --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
185
  --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
186
  --includedir=DIR        C header files in DIR [PREFIX/include]
187
  --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
188
  --infodir=DIR           info documentation in DIR [PREFIX/info]
189
  --mandir=DIR            man documentation in DIR [PREFIX/man]
190
  --srcdir=DIR            find the sources in DIR [configure dir or ..]
191
  --program-prefix=PREFIX prepend PREFIX to installed program names
192
  --program-suffix=SUFFIX append SUFFIX to installed program names
193
  --program-transform-name=PROGRAM
194
                          run sed PROGRAM on installed program names
195
EOF
196
    cat << EOF
197
Host type:
198
  --build=BUILD           configure for building on BUILD [BUILD=HOST]
199
  --host=HOST             configure for HOST [guessed]
200
  --target=TARGET         configure for TARGET [TARGET=HOST]
201
Features and packages:
202
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
203
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
204
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
205
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
206
  --x-includes=DIR        X include files are in DIR
207
  --x-libraries=DIR       X library files are in DIR
208
EOF
209
    if test -n "$ac_help"; then
210
      echo "--enable and --with options recognized:$ac_help"
211
    fi
212
    exit 0 ;;
213
 
214
  -host | --host | --hos | --ho)
215
    ac_prev=host ;;
216
  -host=* | --host=* | --hos=* | --ho=*)
217
    host="$ac_optarg" ;;
218
 
219
  -includedir | --includedir | --includedi | --included | --include \
220
  | --includ | --inclu | --incl | --inc)
221
    ac_prev=includedir ;;
222
  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
223
  | --includ=* | --inclu=* | --incl=* | --inc=*)
224
    includedir="$ac_optarg" ;;
225
 
226
  -infodir | --infodir | --infodi | --infod | --info | --inf)
227
    ac_prev=infodir ;;
228
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
229
    infodir="$ac_optarg" ;;
230
 
231
  -libdir | --libdir | --libdi | --libd)
232
    ac_prev=libdir ;;
233
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
234
    libdir="$ac_optarg" ;;
235
 
236
  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
237
  | --libexe | --libex | --libe)
238
    ac_prev=libexecdir ;;
239
  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
240
  | --libexe=* | --libex=* | --libe=*)
241
    libexecdir="$ac_optarg" ;;
242
 
243
  -localstatedir | --localstatedir | --localstatedi | --localstated \
244
  | --localstate | --localstat | --localsta | --localst \
245
  | --locals | --local | --loca | --loc | --lo)
246
    ac_prev=localstatedir ;;
247
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
248
  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
249
  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
250
    localstatedir="$ac_optarg" ;;
251
 
252
  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
253
    ac_prev=mandir ;;
254
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
255
    mandir="$ac_optarg" ;;
256
 
257
  -nfp | --nfp | --nf)
258
    # Obsolete; use --without-fp.
259
    with_fp=no ;;
260
 
261
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
262
  | --no-cr | --no-c)
263
    no_create=yes ;;
264
 
265
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
266
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
267
    no_recursion=yes ;;
268
 
269
  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
270
  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
271
  | --oldin | --oldi | --old | --ol | --o)
272
    ac_prev=oldincludedir ;;
273
  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
274
  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
275
  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
276
    oldincludedir="$ac_optarg" ;;
277
 
278
  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
279
    ac_prev=prefix ;;
280
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
281
    prefix="$ac_optarg" ;;
282
 
283
  -program-prefix | --program-prefix | --program-prefi | --program-pref \
284
  | --program-pre | --program-pr | --program-p)
285
    ac_prev=program_prefix ;;
286
  -program-prefix=* | --program-prefix=* | --program-prefi=* \
287
  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
288
    program_prefix="$ac_optarg" ;;
289
 
290
  -program-suffix | --program-suffix | --program-suffi | --program-suff \
291
  | --program-suf | --program-su | --program-s)
292
    ac_prev=program_suffix ;;
293
  -program-suffix=* | --program-suffix=* | --program-suffi=* \
294
  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
295
    program_suffix="$ac_optarg" ;;
296
 
297
  -program-transform-name | --program-transform-name \
298
  | --program-transform-nam | --program-transform-na \
299
  | --program-transform-n | --program-transform- \
300
  | --program-transform | --program-transfor \
301
  | --program-transfo | --program-transf \
302
  | --program-trans | --program-tran \
303
  | --progr-tra | --program-tr | --program-t)
304
    ac_prev=program_transform_name ;;
305
  -program-transform-name=* | --program-transform-name=* \
306
  | --program-transform-nam=* | --program-transform-na=* \
307
  | --program-transform-n=* | --program-transform-=* \
308
  | --program-transform=* | --program-transfor=* \
309
  | --program-transfo=* | --program-transf=* \
310
  | --program-trans=* | --program-tran=* \
311
  | --progr-tra=* | --program-tr=* | --program-t=*)
312
    program_transform_name="$ac_optarg" ;;
313
 
314
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
315
  | -silent | --silent | --silen | --sile | --sil)
316
    silent=yes ;;
317
 
318
  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
319
    ac_prev=sbindir ;;
320
  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
321
  | --sbi=* | --sb=*)
322
    sbindir="$ac_optarg" ;;
323
 
324
  -sharedstatedir | --sharedstatedir | --sharedstatedi \
325
  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
326
  | --sharedst | --shareds | --shared | --share | --shar \
327
  | --sha | --sh)
328
    ac_prev=sharedstatedir ;;
329
  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
330
  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
331
  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
332
  | --sha=* | --sh=*)
333
    sharedstatedir="$ac_optarg" ;;
334
 
335
  -site | --site | --sit)
336
    ac_prev=site ;;
337
  -site=* | --site=* | --sit=*)
338
    site="$ac_optarg" ;;
339
 
340
  -site-file | --site-file | --site-fil | --site-fi | --site-f)
341
    ac_prev=sitefile ;;
342
  -site-file=* | --site-file=* | --site-fil=* | --site-fi=* | --site-f=*)
343
    sitefile="$ac_optarg" ;;
344
 
345
  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
346
    ac_prev=srcdir ;;
347
  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
348
    srcdir="$ac_optarg" ;;
349
 
350
  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
351
  | --syscon | --sysco | --sysc | --sys | --sy)
352
    ac_prev=sysconfdir ;;
353
  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
354
  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
355
    sysconfdir="$ac_optarg" ;;
356
 
357
  -target | --target | --targe | --targ | --tar | --ta | --t)
358
    ac_prev=target ;;
359
  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
360
    target="$ac_optarg" ;;
361
 
362
  -v | -verbose | --verbose | --verbos | --verbo | --verb)
363
    verbose=yes ;;
364
 
365
  -version | --version | --versio | --versi | --vers)
366
    echo "configure generated by autoconf version 2.13"
367
    exit 0 ;;
368
 
369
  -with-* | --with-*)
370
    ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
371
    # Reject names that are not valid shell variable names.
372
    if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
373
      { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
374
    fi
375
    ac_package=`echo $ac_package| sed 's/-/_/g'`
376
    case "$ac_option" in
377
      *=*) ;;
378
      *) ac_optarg=yes ;;
379
    esac
380
    eval "with_${ac_package}='$ac_optarg'" ;;
381
 
382
  -without-* | --without-*)
383
    ac_package=`echo $ac_option|sed -e 's/-*without-//'`
384
    # Reject names that are not valid shell variable names.
385
    if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
386
      { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
387
    fi
388
    ac_package=`echo $ac_package| sed 's/-/_/g'`
389
    eval "with_${ac_package}=no" ;;
390
 
391
  --x)
392
    # Obsolete; use --with-x.
393
    with_x=yes ;;
394
 
395
  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
396
  | --x-incl | --x-inc | --x-in | --x-i)
397
    ac_prev=x_includes ;;
398
  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
399
  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
400
    x_includes="$ac_optarg" ;;
401
 
402
  -x-libraries | --x-libraries | --x-librarie | --x-librari \
403
  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
404
    ac_prev=x_libraries ;;
405
  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
406
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
407
    x_libraries="$ac_optarg" ;;
408
 
409
  -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
410
    ;;
411
 
412
  *)
413
    if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
414
      echo "configure: warning: $ac_option: invalid host type" 1>&2
415
    fi
416
    if test "x$nonopt" != xNONE; then
417
      { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
418
    fi
419
    nonopt="$ac_option"
420
    ;;
421
 
422
  esac
423
done
424
 
425
if test -n "$ac_prev"; then
426
  { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
427
fi
428
 
429
trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
430
 
431
# File descriptor usage:
432
# 0 standard input
433
# 1 file creation
434
# 2 errors and warnings
435
# 3 some systems may open it to /dev/tty
436
# 4 used on the Kubota Titan
437
# 6 checking for... messages and results
438
# 5 compiler messages saved in config.log
439
if test "$silent" = yes; then
440
  exec 6>/dev/null
441
else
442
  exec 6>&1
443
fi
444
exec 5>./config.log
445
 
446
echo "\
447
This file contains any messages produced by compilers while
448
running configure, to aid debugging if configure makes a mistake.
449
" 1>&5
450
 
451
# Strip out --no-create and --no-recursion so they do not pile up.
452
# Also quote any args containing shell metacharacters.
453
ac_configure_args=
454
for ac_arg
455
do
456
  case "$ac_arg" in
457
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
458
  | --no-cr | --no-c) ;;
459
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
460
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
461
  *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
462
  ac_configure_args="$ac_configure_args '$ac_arg'" ;;
463
  *) ac_configure_args="$ac_configure_args $ac_arg" ;;
464
  esac
465
done
466
 
467
# NLS nuisances.
468
# Only set these to C if already set.  These must not be set unconditionally
469
# because not all systems understand e.g. LANG=C (notably SCO).
470
# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
471
# Non-C LC_CTYPE values break the ctype check.
472
if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
473
if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
474
if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
475
if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
476
 
477
# confdefs.h avoids OS command line length limits that DEFS can exceed.
478
rm -rf conftest* confdefs.h
479
# AIX cpp loses on an empty file, so make sure it contains at least a newline.
480
echo > confdefs.h
481
 
482
# A filename unique to this package, relative to the directory that
483
# configure is in, which we can look for to find out if srcdir is correct.
484
ac_unique_file=libc
485
 
486
# Find the source files, if location was not specified.
487
if test -z "$srcdir"; then
488
  ac_srcdir_defaulted=yes
489
  # Try the directory containing this script, then its parent.
490
  ac_prog=$0
491
  ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
492
  test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
493
  srcdir=$ac_confdir
494
  if test ! -r $srcdir/$ac_unique_file; then
495
    srcdir=..
496
  fi
497
else
498
  ac_srcdir_defaulted=no
499
fi
500
if test ! -r $srcdir/$ac_unique_file; then
501
  if test "$ac_srcdir_defaulted" = yes; then
502
    { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
503
  else
504
    { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
505
  fi
506
fi
507
srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
508
 
509
# Prefer explicitly selected file to automatically selected ones.
510
if test -z "$sitefile"; then
511
  if test -z "$CONFIG_SITE"; then
512
    if test "x$prefix" != xNONE; then
513
      CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
514
    else
515
      CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
516
    fi
517
  fi
518
else
519
  CONFIG_SITE="$sitefile"
520
fi
521
for ac_site_file in $CONFIG_SITE; do
522
  if test -r "$ac_site_file"; then
523
    echo "loading site script $ac_site_file"
524
    . "$ac_site_file"
525
  fi
526
done
527
 
528
if test -r "$cache_file"; then
529
  echo "loading cache $cache_file"
530
  . $cache_file
531
else
532
  echo "creating cache $cache_file"
533
  > $cache_file
534
fi
535
 
536
ac_ext=c
537
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
538
ac_cpp='$CPP $CPPFLAGS'
539
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
540
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
541
cross_compiling=$ac_cv_prog_cc_cross
542
 
543
ac_exeext=
544
ac_objext=o
545
if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
546
  # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
547
  if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
548
    ac_n= ac_c='
549
' ac_t='        '
550
  else
551
    ac_n=-n ac_c= ac_t=
552
  fi
553
else
554
  ac_n= ac_c='\c' ac_t=
555
fi
556
 
557
 
558
 
559
ac_aux_dir=
560
for ac_dir in .. $srcdir/..; do
561
  if test -f $ac_dir/install-sh; then
562
    ac_aux_dir=$ac_dir
563
    ac_install_sh="$ac_aux_dir/install-sh -c"
564
    break
565
  elif test -f $ac_dir/install.sh; then
566
    ac_aux_dir=$ac_dir
567
    ac_install_sh="$ac_aux_dir/install.sh -c"
568
    break
569
  fi
570
done
571
if test -z "$ac_aux_dir"; then
572
  { echo "configure: error: can not find install-sh or install.sh in .. $srcdir/.." 1>&2; exit 1; }
573
fi
574
ac_config_guess=$ac_aux_dir/config.guess
575
ac_config_sub=$ac_aux_dir/config.sub
576
ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
577
 
578
 
579
# Find a good install program.  We prefer a C program (faster),
580
# so one script is as good as another.  But avoid the broken or
581
# incompatible versions:
582
# SysV /etc/install, /usr/sbin/install
583
# SunOS /usr/etc/install
584
# IRIX /sbin/install
585
# AIX /bin/install
586
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
587
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
588
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
589
# ./install, which can be erroneously created by make from ./install.sh.
590
echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
591
echo "configure:592: checking for a BSD compatible install" >&5
592
if test -z "$INSTALL"; then
593
if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
594
  echo $ac_n "(cached) $ac_c" 1>&6
595
else
596
    IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS=":"
597
  for ac_dir in $PATH; do
598
    # Account for people who put trailing slashes in PATH elements.
599
    case "$ac_dir/" in
600
    /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
601
    *)
602
      # OSF1 and SCO ODT 3.0 have their own names for install.
603
      # Don't use installbsd from OSF since it installs stuff as root
604
      # by default.
605
      for ac_prog in ginstall scoinst install; do
606
        if test -f $ac_dir/$ac_prog; then
607
          if test $ac_prog = install &&
608
            grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
609
            # AIX install.  It has an incompatible calling convention.
610
            :
611
          else
612
            ac_cv_path_install="$ac_dir/$ac_prog -c"
613
            break 2
614
          fi
615
        fi
616
      done
617
      ;;
618
    esac
619
  done
620
  IFS="$ac_save_IFS"
621
 
622
fi
623
  if test "${ac_cv_path_install+set}" = set; then
624
    INSTALL="$ac_cv_path_install"
625
  else
626
    # As a last resort, use the slow shell script.  We don't cache a
627
    # path for INSTALL within a source directory, because that will
628
    # break other packages using the cache if that directory is
629
    # removed, or if the path is relative.
630
    INSTALL="$ac_install_sh"
631
  fi
632
fi
633
echo "$ac_t""$INSTALL" 1>&6
634
 
635
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
636
# It thinks the first close brace ends the variable substitution.
637
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
638
 
639
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
640
 
641
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
642
 
643
echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
644
echo "configure:645: checking whether build environment is sane" >&5
645
# Just in case
646
sleep 1
647
echo timestamp > conftestfile
648
# Do `set' in a subshell so we don't clobber the current shell's
649
# arguments.  Must try -L first in case configure is actually a
650
# symlink; some systems play weird games with the mod time of symlinks
651
# (eg FreeBSD returns the mod time of the symlink's containing
652
# directory).
653
if (
654
   set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
655
   if test "$*" = "X"; then
656
      # -L didn't work.
657
      set X `ls -t $srcdir/configure conftestfile`
658
   fi
659
   if test "$*" != "X $srcdir/configure conftestfile" \
660
      && test "$*" != "X conftestfile $srcdir/configure"; then
661
 
662
      # If neither matched, then we have a broken ls.  This can happen
663
      # if, for instance, CONFIG_SHELL is bash and it inherits a
664
      # broken ls alias from the environment.  This has actually
665
      # happened.  Such a system could not be considered "sane".
666
      { echo "configure: error: ls -t appears to fail.  Make sure there is not a broken
667
alias in your environment" 1>&2; exit 1; }
668
   fi
669
 
670
   test "$2" = conftestfile
671
   )
672
then
673
   # Ok.
674
   :
675
else
676
   { echo "configure: error: newly created file is older than distributed files!
677
Check your system clock" 1>&2; exit 1; }
678
fi
679
rm -f conftest*
680
echo "$ac_t""yes" 1>&6
681
if test "$program_transform_name" = s,x,x,; then
682
  program_transform_name=
683
else
684
  # Double any \ or $.  echo might interpret backslashes.
685
  cat <<\EOF_SED > conftestsed
686
s,\\,\\\\,g; s,\$,$$,g
687
EOF_SED
688
  program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
689
  rm -f conftestsed
690
fi
691
test "$program_prefix" != NONE &&
692
  program_transform_name="s,^,${program_prefix},; $program_transform_name"
693
# Use a double $ so make ignores it.
694
test "$program_suffix" != NONE &&
695
  program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
696
 
697
# sed with no file args requires a program.
698
test "$program_transform_name" = "" && program_transform_name="s,x,x,"
699
 
700
echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
701
echo "configure:702: checking whether ${MAKE-make} sets \${MAKE}" >&5
702
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
703
if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
704
  echo $ac_n "(cached) $ac_c" 1>&6
705
else
706
  cat > conftestmake <<\EOF
707
all:
708
        @echo 'ac_maketemp="${MAKE}"'
709
EOF
710
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
711
eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
712
if test -n "$ac_maketemp"; then
713
  eval ac_cv_prog_make_${ac_make}_set=yes
714
else
715
  eval ac_cv_prog_make_${ac_make}_set=no
716
fi
717
rm -f conftestmake
718
fi
719
if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
720
  echo "$ac_t""yes" 1>&6
721
  SET_MAKE=
722
else
723
  echo "$ac_t""no" 1>&6
724
  SET_MAKE="MAKE=${MAKE-make}"
725
fi
726
 
727
if test $host != $build; then
728
  ac_tool_prefix=${host_alias}-
729
else
730
  ac_tool_prefix=
731
fi
732
 
733
echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
734
echo "configure:735: checking for Cygwin environment" >&5
735
if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
736
  echo $ac_n "(cached) $ac_c" 1>&6
737
else
738
  cat > conftest.$ac_ext <
739
#line 740 "configure"
740
#include "confdefs.h"
741
 
742
int main() {
743
 
744
#ifndef __CYGWIN__
745
#define __CYGWIN__ __CYGWIN32__
746
#endif
747
return __CYGWIN__;
748
; return 0; }
749
EOF
750
if { (eval echo configure:751: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
751
  rm -rf conftest*
752
  ac_cv_cygwin=yes
753
else
754
  echo "configure: failed program was:" >&5
755
  cat conftest.$ac_ext >&5
756
  rm -rf conftest*
757
  ac_cv_cygwin=no
758
fi
759
rm -f conftest*
760
rm -f conftest*
761
fi
762
 
763
echo "$ac_t""$ac_cv_cygwin" 1>&6
764
CYGWIN=
765
test "$ac_cv_cygwin" = yes && CYGWIN=yes
766
echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
767
echo "configure:768: checking for mingw32 environment" >&5
768
if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
769
  echo $ac_n "(cached) $ac_c" 1>&6
770
else
771
  cat > conftest.$ac_ext <
772
#line 773 "configure"
773
#include "confdefs.h"
774
 
775
int main() {
776
return __MINGW32__;
777
; return 0; }
778
EOF
779
if { (eval echo configure:780: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
780
  rm -rf conftest*
781
  ac_cv_mingw32=yes
782
else
783
  echo "configure: failed program was:" >&5
784
  cat conftest.$ac_ext >&5
785
  rm -rf conftest*
786
  ac_cv_mingw32=no
787
fi
788
rm -f conftest*
789
rm -f conftest*
790
fi
791
 
792
echo "$ac_t""$ac_cv_mingw32" 1>&6
793
MINGW32=
794
test "$ac_cv_mingw32" = yes && MINGW32=yes
795
 
796
# Check whether --enable-multilib or --disable-multilib was given.
797
if test "${enable_multilib+set}" = set; then
798
  enableval="$enable_multilib"
799
  case "${enableval}" in
800
  yes) multilib=yes ;;
801
  no)  multilib=no ;;
802
  *)   { echo "configure: error: bad value ${enableval} for multilib option" 1>&2; exit 1; } ;;
803
 esac
804
else
805
  multilib=yes
806
fi
807
 
808
# Check whether --enable-target-optspace or --disable-target-optspace was given.
809
if test "${enable_target_optspace+set}" = set; then
810
  enableval="$enable_target_optspace"
811
  case "${enableval}" in
812
  yes) target_optspace=yes ;;
813
  no)  target_optspace=no ;;
814
  *)   { echo "configure: error: bad value ${enableval} for target-optspace option" 1>&2; exit 1; } ;;
815
 esac
816
else
817
  target_optspace=
818
fi
819
 
820
# Check whether --enable-malloc-debugging or --disable-malloc-debugging was given.
821
if test "${enable_malloc_debugging+set}" = set; then
822
  enableval="$enable_malloc_debugging"
823
  case "${enableval}" in
824
  yes) malloc_debugging=yes ;;
825
  no)  malloc_debugging=no ;;
826
  *)   { echo "configure: error: bad value ${enableval} for malloc-debugging option" 1>&2; exit 1; } ;;
827
 esac
828
else
829
  malloc_debugging=
830
fi
831
 
832
# Check whether --enable-newlib-mb or --disable-newlib-mb was given.
833
if test "${enable_newlib_mb+set}" = set; then
834
  enableval="$enable_newlib_mb"
835
  case "${enableval}" in
836
  yes) newlib_mb=yes ;;
837
  no)  newlib_mb=no ;;
838
  *)   { echo "configure: error: bad value ${enableval} for newlib-mb option" 1>&2; exit 1; } ;;
839
 esac
840
else
841
  newlib_mb=no
842
fi
843
 
844
 
845
test -z "${with_target_subdir}" && with_target_subdir=.
846
 
847
if test "${srcdir}" = "."; then
848
  if test "${with_target_subdir}" != "."; then
849
    newlib_basedir="${srcdir}/${with_multisrctop}../."
850
  else
851
    newlib_basedir="${srcdir}/${with_multisrctop}."
852
  fi
853
else
854
  newlib_basedir="${srcdir}/."
855
fi
856
 
857
 
858
 
859
# Make sure we can run config.sub.
860
if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
861
else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
862
fi
863
 
864
echo $ac_n "checking host system type""... $ac_c" 1>&6
865
echo "configure:866: checking host system type" >&5
866
 
867
host_alias=$host
868
case "$host_alias" in
869
NONE)
870
  case $nonopt in
871
  NONE)
872
    if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
873
    else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
874
    fi ;;
875
  *) host_alias=$nonopt ;;
876
  esac ;;
877
esac
878
 
879
host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
880
host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
881
host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
882
host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
883
echo "$ac_t""$host" 1>&6
884
 
885
 
886
 
887
PACKAGE=newlib
888
 
889
VERSION=1.10.0
890
 
891
if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
892
  { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
893
fi
894
cat >> confdefs.h <
895
#define PACKAGE "$PACKAGE"
896
EOF
897
 
898
cat >> confdefs.h <
899
#define VERSION "$VERSION"
900
EOF
901
 
902
 
903
 
904
missing_dir=`cd $ac_aux_dir && pwd`
905
echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
906
echo "configure:907: checking for working aclocal" >&5
907
# Run test in a subshell; some versions of sh will print an error if
908
# an executable is not found, even if stderr is redirected.
909
# Redirect stdin to placate older versions of autoconf.  Sigh.
910
if (aclocal --version) < /dev/null > /dev/null 2>&1; then
911
   ACLOCAL=aclocal
912
   echo "$ac_t""found" 1>&6
913
else
914
   ACLOCAL="$missing_dir/missing aclocal"
915
   echo "$ac_t""missing" 1>&6
916
fi
917
 
918
echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
919
echo "configure:920: checking for working autoconf" >&5
920
# Run test in a subshell; some versions of sh will print an error if
921
# an executable is not found, even if stderr is redirected.
922
# Redirect stdin to placate older versions of autoconf.  Sigh.
923
if (autoconf --version) < /dev/null > /dev/null 2>&1; then
924
   AUTOCONF=autoconf
925
   echo "$ac_t""found" 1>&6
926
else
927
   AUTOCONF="$missing_dir/missing autoconf"
928
   echo "$ac_t""missing" 1>&6
929
fi
930
 
931
echo $ac_n "checking for working automake""... $ac_c" 1>&6
932
echo "configure:933: checking for working automake" >&5
933
# Run test in a subshell; some versions of sh will print an error if
934
# an executable is not found, even if stderr is redirected.
935
# Redirect stdin to placate older versions of autoconf.  Sigh.
936
if (automake --version) < /dev/null > /dev/null 2>&1; then
937
   AUTOMAKE=automake
938
   echo "$ac_t""found" 1>&6
939
else
940
   AUTOMAKE="$missing_dir/missing automake"
941
   echo "$ac_t""missing" 1>&6
942
fi
943
 
944
echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
945
echo "configure:946: checking for working autoheader" >&5
946
# Run test in a subshell; some versions of sh will print an error if
947
# an executable is not found, even if stderr is redirected.
948
# Redirect stdin to placate older versions of autoconf.  Sigh.
949
if (autoheader --version) < /dev/null > /dev/null 2>&1; then
950
   AUTOHEADER=autoheader
951
   echo "$ac_t""found" 1>&6
952
else
953
   AUTOHEADER="$missing_dir/missing autoheader"
954
   echo "$ac_t""missing" 1>&6
955
fi
956
 
957
echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
958
echo "configure:959: checking for working makeinfo" >&5
959
# Run test in a subshell; some versions of sh will print an error if
960
# an executable is not found, even if stderr is redirected.
961
# Redirect stdin to placate older versions of autoconf.  Sigh.
962
if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
963
   MAKEINFO=makeinfo
964
   echo "$ac_t""found" 1>&6
965
else
966
   MAKEINFO="$missing_dir/missing makeinfo"
967
   echo "$ac_t""missing" 1>&6
968
fi
969
 
970
 
971
 
972
# FIXME: We temporarily define our own version of AC_PROG_CC.  This is
973
# copied from autoconf 2.12, but does not call AC_PROG_CC_WORKS.  We
974
# are probably using a cross compiler, which will not be able to fully
975
# link an executable.  This should really be fixed in autoconf
976
# itself.
977
 
978
 
979
 
980
# Extract the first word of "gcc", so it can be a program name with args.
981
set dummy gcc; ac_word=$2
982
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
983
echo "configure:984: checking for $ac_word" >&5
984
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
985
  echo $ac_n "(cached) $ac_c" 1>&6
986
else
987
  if test -n "$CC"; then
988
  ac_cv_prog_CC="$CC" # Let the user override the test.
989
else
990
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
991
  ac_dummy="$PATH"
992
  for ac_dir in $ac_dummy; do
993
    test -z "$ac_dir" && ac_dir=.
994
    if test -f $ac_dir/$ac_word; then
995
      ac_cv_prog_CC="gcc"
996
      break
997
    fi
998
  done
999
  IFS="$ac_save_ifs"
1000
fi
1001
fi
1002
CC="$ac_cv_prog_CC"
1003
if test -n "$CC"; then
1004
  echo "$ac_t""$CC" 1>&6
1005
else
1006
  echo "$ac_t""no" 1>&6
1007
fi
1008
 
1009
if test -z "$CC"; then
1010
  # Extract the first word of "cc", so it can be a program name with args.
1011
set dummy cc; ac_word=$2
1012
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1013
echo "configure:1014: checking for $ac_word" >&5
1014
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1015
  echo $ac_n "(cached) $ac_c" 1>&6
1016
else
1017
  if test -n "$CC"; then
1018
  ac_cv_prog_CC="$CC" # Let the user override the test.
1019
else
1020
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1021
  ac_prog_rejected=no
1022
  ac_dummy="$PATH"
1023
  for ac_dir in $ac_dummy; do
1024
    test -z "$ac_dir" && ac_dir=.
1025
    if test -f $ac_dir/$ac_word; then
1026
      if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1027
        ac_prog_rejected=yes
1028
        continue
1029
      fi
1030
      ac_cv_prog_CC="cc"
1031
      break
1032
    fi
1033
  done
1034
  IFS="$ac_save_ifs"
1035
if test $ac_prog_rejected = yes; then
1036
  # We found a bogon in the path, so make sure we never use it.
1037
  set dummy $ac_cv_prog_CC
1038
  shift
1039
  if test $# -gt 0; then
1040
    # We chose a different compiler from the bogus one.
1041
    # However, it has the same basename, so the bogon will be chosen
1042
    # first if we set CC to just the basename; use the full file name.
1043
    shift
1044
    set dummy "$ac_dir/$ac_word" "$@"
1045
    shift
1046
    ac_cv_prog_CC="$@"
1047
  fi
1048
fi
1049
fi
1050
fi
1051
CC="$ac_cv_prog_CC"
1052
if test -n "$CC"; then
1053
  echo "$ac_t""$CC" 1>&6
1054
else
1055
  echo "$ac_t""no" 1>&6
1056
fi
1057
 
1058
  test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1059
fi
1060
 
1061
echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1062
echo "configure:1063: checking whether we are using GNU C" >&5
1063
if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1064
  echo $ac_n "(cached) $ac_c" 1>&6
1065
else
1066
  cat > conftest.c <
1067
#ifdef __GNUC__
1068
  yes;
1069
#endif
1070
EOF
1071
if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1072: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1072
  ac_cv_prog_gcc=yes
1073
else
1074
  ac_cv_prog_gcc=no
1075
fi
1076
fi
1077
 
1078
echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1079
 
1080
if test $ac_cv_prog_gcc = yes; then
1081
  GCC=yes
1082
  ac_test_CFLAGS="${CFLAGS+set}"
1083
  ac_save_CFLAGS="$CFLAGS"
1084
  CFLAGS=
1085
  echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1086
echo "configure:1087: checking whether ${CC-cc} accepts -g" >&5
1087
if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1088
  echo $ac_n "(cached) $ac_c" 1>&6
1089
else
1090
  echo 'void f(){}' > conftest.c
1091
if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1092
  ac_cv_prog_cc_g=yes
1093
else
1094
  ac_cv_prog_cc_g=no
1095
fi
1096
rm -f conftest*
1097
 
1098
fi
1099
 
1100
echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1101
  if test "$ac_test_CFLAGS" = set; then
1102
    CFLAGS="$ac_save_CFLAGS"
1103
  elif test $ac_cv_prog_cc_g = yes; then
1104
    CFLAGS="-g -O2"
1105
  else
1106
    CFLAGS="-O2"
1107
  fi
1108
else
1109
  GCC=
1110
  test "${CFLAGS+set}" = set || CFLAGS="-g"
1111
fi
1112
 
1113
 
1114
# AC_CHECK_TOOL does AC_REQUIRE (AC_CANONICAL_BUILD).  If we don't
1115
# run it explicitly here, it will be run implicitly before
1116
# NEWLIB_CONFIGURE, which doesn't work because that means that it will
1117
# be run before AC_CANONICAL_HOST.
1118
echo $ac_n "checking build system type""... $ac_c" 1>&6
1119
echo "configure:1120: checking build system type" >&5
1120
 
1121
build_alias=$build
1122
case "$build_alias" in
1123
NONE)
1124
  case $nonopt in
1125
  NONE) build_alias=$host_alias ;;
1126
  *) build_alias=$nonopt ;;
1127
  esac ;;
1128
esac
1129
 
1130
build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1131
build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1132
build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1133
build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1134
echo "$ac_t""$build" 1>&6
1135
 
1136
 
1137
# Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
1138
set dummy ${ac_tool_prefix}as; ac_word=$2
1139
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1140
echo "configure:1141: checking for $ac_word" >&5
1141
if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
1142
  echo $ac_n "(cached) $ac_c" 1>&6
1143
else
1144
  if test -n "$AS"; then
1145
  ac_cv_prog_AS="$AS" # Let the user override the test.
1146
else
1147
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1148
  ac_dummy="$PATH"
1149
  for ac_dir in $ac_dummy; do
1150
    test -z "$ac_dir" && ac_dir=.
1151
    if test -f $ac_dir/$ac_word; then
1152
      ac_cv_prog_AS="${ac_tool_prefix}as"
1153
      break
1154
    fi
1155
  done
1156
  IFS="$ac_save_ifs"
1157
  test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="as"
1158
fi
1159
fi
1160
AS="$ac_cv_prog_AS"
1161
if test -n "$AS"; then
1162
  echo "$ac_t""$AS" 1>&6
1163
else
1164
  echo "$ac_t""no" 1>&6
1165
fi
1166
 
1167
 
1168
 
1169
# Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
1170
set dummy ${ac_tool_prefix}ar; ac_word=$2
1171
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1172
echo "configure:1173: checking for $ac_word" >&5
1173
if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1174
  echo $ac_n "(cached) $ac_c" 1>&6
1175
else
1176
  if test -n "$AR"; then
1177
  ac_cv_prog_AR="$AR" # Let the user override the test.
1178
else
1179
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1180
  ac_dummy="$PATH"
1181
  for ac_dir in $ac_dummy; do
1182
    test -z "$ac_dir" && ac_dir=.
1183
    if test -f $ac_dir/$ac_word; then
1184
      ac_cv_prog_AR="${ac_tool_prefix}ar"
1185
      break
1186
    fi
1187
  done
1188
  IFS="$ac_save_ifs"
1189
  test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
1190
fi
1191
fi
1192
AR="$ac_cv_prog_AR"
1193
if test -n "$AR"; then
1194
  echo "$ac_t""$AR" 1>&6
1195
else
1196
  echo "$ac_t""no" 1>&6
1197
fi
1198
 
1199
 
1200
 
1201
# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1202
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1203
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1204
echo "configure:1205: checking for $ac_word" >&5
1205
if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1206
  echo $ac_n "(cached) $ac_c" 1>&6
1207
else
1208
  if test -n "$RANLIB"; then
1209
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1210
else
1211
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1212
  ac_dummy="$PATH"
1213
  for ac_dir in $ac_dummy; do
1214
    test -z "$ac_dir" && ac_dir=.
1215
    if test -f $ac_dir/$ac_word; then
1216
      ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1217
      break
1218
    fi
1219
  done
1220
  IFS="$ac_save_ifs"
1221
fi
1222
fi
1223
RANLIB="$ac_cv_prog_RANLIB"
1224
if test -n "$RANLIB"; then
1225
  echo "$ac_t""$RANLIB" 1>&6
1226
else
1227
  echo "$ac_t""no" 1>&6
1228
fi
1229
 
1230
 
1231
if test -z "$ac_cv_prog_RANLIB"; then
1232
if test -n "$ac_tool_prefix"; then
1233
  # Extract the first word of "ranlib", so it can be a program name with args.
1234
set dummy ranlib; ac_word=$2
1235
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1236
echo "configure:1237: checking for $ac_word" >&5
1237
if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1238
  echo $ac_n "(cached) $ac_c" 1>&6
1239
else
1240
  if test -n "$RANLIB"; then
1241
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1242
else
1243
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1244
  ac_dummy="$PATH"
1245
  for ac_dir in $ac_dummy; do
1246
    test -z "$ac_dir" && ac_dir=.
1247
    if test -f $ac_dir/$ac_word; then
1248
      ac_cv_prog_RANLIB="ranlib"
1249
      break
1250
    fi
1251
  done
1252
  IFS="$ac_save_ifs"
1253
  test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1254
fi
1255
fi
1256
RANLIB="$ac_cv_prog_RANLIB"
1257
if test -n "$RANLIB"; then
1258
  echo "$ac_t""$RANLIB" 1>&6
1259
else
1260
  echo "$ac_t""no" 1>&6
1261
fi
1262
 
1263
else
1264
  RANLIB=":"
1265
fi
1266
fi
1267
 
1268
 
1269
# Find a good install program.  We prefer a C program (faster),
1270
# so one script is as good as another.  But avoid the broken or
1271
# incompatible versions:
1272
# SysV /etc/install, /usr/sbin/install
1273
# SunOS /usr/etc/install
1274
# IRIX /sbin/install
1275
# AIX /bin/install
1276
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1277
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1278
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1279
# ./install, which can be erroneously created by make from ./install.sh.
1280
echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1281
echo "configure:1282: checking for a BSD compatible install" >&5
1282
if test -z "$INSTALL"; then
1283
if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1284
  echo $ac_n "(cached) $ac_c" 1>&6
1285
else
1286
    IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS=":"
1287
  for ac_dir in $PATH; do
1288
    # Account for people who put trailing slashes in PATH elements.
1289
    case "$ac_dir/" in
1290
    /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1291
    *)
1292
      # OSF1 and SCO ODT 3.0 have their own names for install.
1293
      # Don't use installbsd from OSF since it installs stuff as root
1294
      # by default.
1295
      for ac_prog in ginstall scoinst install; do
1296
        if test -f $ac_dir/$ac_prog; then
1297
          if test $ac_prog = install &&
1298
            grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1299
            # AIX install.  It has an incompatible calling convention.
1300
            :
1301
          else
1302
            ac_cv_path_install="$ac_dir/$ac_prog -c"
1303
            break 2
1304
          fi
1305
        fi
1306
      done
1307
      ;;
1308
    esac
1309
  done
1310
  IFS="$ac_save_IFS"
1311
 
1312
fi
1313
  if test "${ac_cv_path_install+set}" = set; then
1314
    INSTALL="$ac_cv_path_install"
1315
  else
1316
    # As a last resort, use the slow shell script.  We don't cache a
1317
    # path for INSTALL within a source directory, because that will
1318
    # break other packages using the cache if that directory is
1319
    # removed, or if the path is relative.
1320
    INSTALL="$ac_install_sh"
1321
  fi
1322
fi
1323
echo "$ac_t""$INSTALL" 1>&6
1324
 
1325
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1326
# It thinks the first close brace ends the variable substitution.
1327
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1328
 
1329
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1330
 
1331
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1332
 
1333
 
1334
echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
1335
echo "configure:1336: checking whether to enable maintainer-specific portions of Makefiles" >&5
1336
    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1337
if test "${enable_maintainer_mode+set}" = set; then
1338
  enableval="$enable_maintainer_mode"
1339
  USE_MAINTAINER_MODE=$enableval
1340
else
1341
  USE_MAINTAINER_MODE=no
1342
fi
1343
 
1344
  echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
1345
 
1346
 
1347
if test $USE_MAINTAINER_MODE = yes; then
1348
  MAINTAINER_MODE_TRUE=
1349
  MAINTAINER_MODE_FALSE='#'
1350
else
1351
  MAINTAINER_MODE_TRUE='#'
1352
  MAINTAINER_MODE_FALSE=
1353
fi
1354
  MAINT=$MAINTAINER_MODE_TRUE
1355
 
1356
 
1357
 
1358
# We need AC_EXEEXT to keep automake happy in cygnus mode.  However,
1359
# at least currently, we never actually build a program, so we never
1360
# need to use $(EXEEXT).  Moreover, the test for EXEEXT normally
1361
# fails, because we are probably configuring with a cross compiler
1362
# which can't create executables.  So we include AC_EXEEXT to keep
1363
# automake happy, but we don't execute it, since we don't care about
1364
# the result.
1365
if false; then
1366
 
1367
 
1368
echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1369
echo "configure:1370: checking for executable suffix" >&5
1370
if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1371
  echo $ac_n "(cached) $ac_c" 1>&6
1372
else
1373
  if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
1374
  ac_cv_exeext=.exe
1375
else
1376
  rm -f conftest*
1377
  echo 'int main () { return 0; }' > conftest.$ac_ext
1378
  ac_cv_exeext=
1379
  if { (eval echo configure:1380: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1380
    for file in conftest.*; do
1381
      case $file in
1382
      *.c | *.o | *.obj | *.ilk | *.pdb) ;;
1383
      *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
1384
      esac
1385
    done
1386
  else
1387
    { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1388
  fi
1389
  rm -f conftest*
1390
  test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
1391
fi
1392
fi
1393
 
1394
EXEEXT=""
1395
test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
1396
echo "$ac_t""${ac_cv_exeext}" 1>&6
1397
ac_exeext=$EXEEXT
1398
 
1399
fi
1400
 
1401
. ${newlib_basedir}/configure.host
1402
 
1403
case ${newlib_basedir} in
1404
/* | A-Za-z:/\\*) newlib_flagbasedir=${newlib_basedir} ;;
1405
*) newlib_flagbasedir='$(top_builddir)/'${newlib_basedir} ;;
1406
esac
1407
 
1408
newlib_cflags="${newlib_cflags} -I"'$(top_builddir)'"/./targ-include -I${newlib_flagbasedir}/libc/include"
1409
case "${host}" in
1410
  *-*-cygwin*)
1411
    newlib_cflags="${newlib_cflags} -I${newlib_flagbasedir}/../winsup/cygwin/include  -I${newlib_flagbasedir}/../winsup/w32api/include"
1412
    ;;
1413
esac
1414
 
1415
newlib_cflags="${newlib_cflags} -fno-builtin"
1416
 
1417
NEWLIB_CFLAGS=${newlib_cflags}
1418
 
1419
 
1420
LDFLAGS=${ldflags}
1421
 
1422
 
1423
 
1424
 
1425
if test x${use_libtool} = xyes; then
1426
  USE_LIBTOOL_TRUE=
1427
  USE_LIBTOOL_FALSE='#'
1428
else
1429
  USE_LIBTOOL_TRUE='#'
1430
  USE_LIBTOOL_FALSE=
1431
fi
1432
 
1433
 
1434
 
1435
 
1436
 
1437
 
1438
 
1439
 
1440
if test "${use_libtool}" = "yes"; then
1441
 
1442
# Check whether --enable-shared or --disable-shared was given.
1443
if test "${enable_shared+set}" = set; then
1444
  enableval="$enable_shared"
1445
  p=${PACKAGE-default}
1446
case "$enableval" in
1447
yes) enable_shared=yes ;;
1448
no) enable_shared=no ;;
1449
*)
1450
  enable_shared=no
1451
  # Look at the argument we got.  We use all the common list separators.
1452
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1453
  for pkg in $enableval; do
1454
    if test "X$pkg" = "X$p"; then
1455
      enable_shared=yes
1456
    fi
1457
  done
1458
  IFS="$ac_save_ifs"
1459
  ;;
1460
esac
1461
else
1462
  enable_shared=yes
1463
fi
1464
 
1465
# Check whether --enable-static or --disable-static was given.
1466
if test "${enable_static+set}" = set; then
1467
  enableval="$enable_static"
1468
  p=${PACKAGE-default}
1469
case "$enableval" in
1470
yes) enable_static=yes ;;
1471
no) enable_static=no ;;
1472
*)
1473
  enable_static=no
1474
  # Look at the argument we got.  We use all the common list separators.
1475
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1476
  for pkg in $enableval; do
1477
    if test "X$pkg" = "X$p"; then
1478
      enable_static=yes
1479
    fi
1480
  done
1481
  IFS="$ac_save_ifs"
1482
  ;;
1483
esac
1484
else
1485
  enable_static=yes
1486
fi
1487
 
1488
# Check whether --enable-fast-install or --disable-fast-install was given.
1489
if test "${enable_fast_install+set}" = set; then
1490
  enableval="$enable_fast_install"
1491
  p=${PACKAGE-default}
1492
case "$enableval" in
1493
yes) enable_fast_install=yes ;;
1494
no) enable_fast_install=no ;;
1495
*)
1496
  enable_fast_install=no
1497
  # Look at the argument we got.  We use all the common list separators.
1498
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1499
  for pkg in $enableval; do
1500
    if test "X$pkg" = "X$p"; then
1501
      enable_fast_install=yes
1502
    fi
1503
  done
1504
  IFS="$ac_save_ifs"
1505
  ;;
1506
esac
1507
else
1508
  enable_fast_install=yes
1509
fi
1510
 
1511
# Extract the first word of "ranlib", so it can be a program name with args.
1512
set dummy ranlib; ac_word=$2
1513
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1514
echo "configure:1515: checking for $ac_word" >&5
1515
if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1516
  echo $ac_n "(cached) $ac_c" 1>&6
1517
else
1518
  if test -n "$RANLIB"; then
1519
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1520
else
1521
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1522
  ac_dummy="$PATH"
1523
  for ac_dir in $ac_dummy; do
1524
    test -z "$ac_dir" && ac_dir=.
1525
    if test -f $ac_dir/$ac_word; then
1526
      ac_cv_prog_RANLIB="ranlib"
1527
      break
1528
    fi
1529
  done
1530
  IFS="$ac_save_ifs"
1531
  test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1532
fi
1533
fi
1534
RANLIB="$ac_cv_prog_RANLIB"
1535
if test -n "$RANLIB"; then
1536
  echo "$ac_t""$RANLIB" 1>&6
1537
else
1538
  echo "$ac_t""no" 1>&6
1539
fi
1540
 
1541
# Extract the first word of "gcc", so it can be a program name with args.
1542
set dummy gcc; ac_word=$2
1543
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1544
echo "configure:1545: checking for $ac_word" >&5
1545
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1546
  echo $ac_n "(cached) $ac_c" 1>&6
1547
else
1548
  if test -n "$CC"; then
1549
  ac_cv_prog_CC="$CC" # Let the user override the test.
1550
else
1551
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1552
  ac_dummy="$PATH"
1553
  for ac_dir in $ac_dummy; do
1554
    test -z "$ac_dir" && ac_dir=.
1555
    if test -f $ac_dir/$ac_word; then
1556
      ac_cv_prog_CC="gcc"
1557
      break
1558
    fi
1559
  done
1560
  IFS="$ac_save_ifs"
1561
fi
1562
fi
1563
CC="$ac_cv_prog_CC"
1564
if test -n "$CC"; then
1565
  echo "$ac_t""$CC" 1>&6
1566
else
1567
  echo "$ac_t""no" 1>&6
1568
fi
1569
 
1570
if test -z "$CC"; then
1571
  # Extract the first word of "cc", so it can be a program name with args.
1572
set dummy cc; ac_word=$2
1573
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1574
echo "configure:1575: checking for $ac_word" >&5
1575
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1576
  echo $ac_n "(cached) $ac_c" 1>&6
1577
else
1578
  if test -n "$CC"; then
1579
  ac_cv_prog_CC="$CC" # Let the user override the test.
1580
else
1581
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1582
  ac_prog_rejected=no
1583
  ac_dummy="$PATH"
1584
  for ac_dir in $ac_dummy; do
1585
    test -z "$ac_dir" && ac_dir=.
1586
    if test -f $ac_dir/$ac_word; then
1587
      if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1588
        ac_prog_rejected=yes
1589
        continue
1590
      fi
1591
      ac_cv_prog_CC="cc"
1592
      break
1593
    fi
1594
  done
1595
  IFS="$ac_save_ifs"
1596
if test $ac_prog_rejected = yes; then
1597
  # We found a bogon in the path, so make sure we never use it.
1598
  set dummy $ac_cv_prog_CC
1599
  shift
1600
  if test $# -gt 0; then
1601
    # We chose a different compiler from the bogus one.
1602
    # However, it has the same basename, so the bogon will be chosen
1603
    # first if we set CC to just the basename; use the full file name.
1604
    shift
1605
    set dummy "$ac_dir/$ac_word" "$@"
1606
    shift
1607
    ac_cv_prog_CC="$@"
1608
  fi
1609
fi
1610
fi
1611
fi
1612
CC="$ac_cv_prog_CC"
1613
if test -n "$CC"; then
1614
  echo "$ac_t""$CC" 1>&6
1615
else
1616
  echo "$ac_t""no" 1>&6
1617
fi
1618
 
1619
  if test -z "$CC"; then
1620
    case "`uname -s`" in
1621
    *win32* | *WIN32*)
1622
      # Extract the first word of "cl", so it can be a program name with args.
1623
set dummy cl; ac_word=$2
1624
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1625
echo "configure:1626: checking for $ac_word" >&5
1626
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1627
  echo $ac_n "(cached) $ac_c" 1>&6
1628
else
1629
  if test -n "$CC"; then
1630
  ac_cv_prog_CC="$CC" # Let the user override the test.
1631
else
1632
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1633
  ac_dummy="$PATH"
1634
  for ac_dir in $ac_dummy; do
1635
    test -z "$ac_dir" && ac_dir=.
1636
    if test -f $ac_dir/$ac_word; then
1637
      ac_cv_prog_CC="cl"
1638
      break
1639
    fi
1640
  done
1641
  IFS="$ac_save_ifs"
1642
fi
1643
fi
1644
CC="$ac_cv_prog_CC"
1645
if test -n "$CC"; then
1646
  echo "$ac_t""$CC" 1>&6
1647
else
1648
  echo "$ac_t""no" 1>&6
1649
fi
1650
 ;;
1651
    esac
1652
  fi
1653
  test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1654
fi
1655
 
1656
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1657
echo "configure:1658: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1658
 
1659
ac_ext=c
1660
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1661
ac_cpp='$CPP $CPPFLAGS'
1662
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1663
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1664
cross_compiling=$ac_cv_prog_cc_cross
1665
 
1666
cat > conftest.$ac_ext << EOF
1667
 
1668
#line 1669 "configure"
1669
#include "confdefs.h"
1670
 
1671
main(){return(0);}
1672
EOF
1673
if { (eval echo configure:1674: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1674
  ac_cv_prog_cc_works=yes
1675
  # If we can't run a trivial program, we are probably using a cross compiler.
1676
  if (./conftest; exit) 2>/dev/null; then
1677
    ac_cv_prog_cc_cross=no
1678
  else
1679
    ac_cv_prog_cc_cross=yes
1680
  fi
1681
else
1682
  echo "configure: failed program was:" >&5
1683
  cat conftest.$ac_ext >&5
1684
  ac_cv_prog_cc_works=no
1685
fi
1686
rm -fr conftest*
1687
ac_ext=c
1688
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1689
ac_cpp='$CPP $CPPFLAGS'
1690
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1691
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1692
cross_compiling=$ac_cv_prog_cc_cross
1693
 
1694
echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1695
if test $ac_cv_prog_cc_works = no; then
1696
  { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1697
fi
1698
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1699
echo "configure:1700: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1700
echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1701
cross_compiling=$ac_cv_prog_cc_cross
1702
 
1703
echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1704
echo "configure:1705: checking whether we are using GNU C" >&5
1705
if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1706
  echo $ac_n "(cached) $ac_c" 1>&6
1707
else
1708
  cat > conftest.c <
1709
#ifdef __GNUC__
1710
  yes;
1711
#endif
1712
EOF
1713
if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1714: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1714
  ac_cv_prog_gcc=yes
1715
else
1716
  ac_cv_prog_gcc=no
1717
fi
1718
fi
1719
 
1720
echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1721
 
1722
if test $ac_cv_prog_gcc = yes; then
1723
  GCC=yes
1724
else
1725
  GCC=
1726
fi
1727
 
1728
ac_test_CFLAGS="${CFLAGS+set}"
1729
ac_save_CFLAGS="$CFLAGS"
1730
CFLAGS=
1731
echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1732
echo "configure:1733: checking whether ${CC-cc} accepts -g" >&5
1733
if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1734
  echo $ac_n "(cached) $ac_c" 1>&6
1735
else
1736
  echo 'void f(){}' > conftest.c
1737
if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1738
  ac_cv_prog_cc_g=yes
1739
else
1740
  ac_cv_prog_cc_g=no
1741
fi
1742
rm -f conftest*
1743
 
1744
fi
1745
 
1746
echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1747
if test "$ac_test_CFLAGS" = set; then
1748
  CFLAGS="$ac_save_CFLAGS"
1749
elif test $ac_cv_prog_cc_g = yes; then
1750
  if test "$GCC" = yes; then
1751
    CFLAGS="-g -O2"
1752
  else
1753
    CFLAGS="-g"
1754
  fi
1755
else
1756
  if test "$GCC" = yes; then
1757
    CFLAGS="-O2"
1758
  else
1759
    CFLAGS=
1760
  fi
1761
fi
1762
 
1763
# Check whether --with-gnu-ld or --without-gnu-ld was given.
1764
if test "${with_gnu_ld+set}" = set; then
1765
  withval="$with_gnu_ld"
1766
  test "$withval" = no || with_gnu_ld=yes
1767
else
1768
  with_gnu_ld=no
1769
fi
1770
 
1771
ac_prog=ld
1772
if test "$ac_cv_prog_gcc" = yes; then
1773
  # Check if gcc -print-prog-name=ld gives a path.
1774
  echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1775
echo "configure:1776: checking for ld used by GCC" >&5
1776
  ac_prog=`($CC -print-prog-name=ld) 2>&5`
1777
  case "$ac_prog" in
1778
    # Accept absolute paths.
1779
    [\\/]* | [A-Za-z]:[\\/]*)
1780
      re_direlt='/[^/][^/]*/\.\./'
1781
      # Canonicalize the path of ld
1782
      ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
1783
      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
1784
        ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
1785
      done
1786
      test -z "$LD" && LD="$ac_prog"
1787
      ;;
1788
  "")
1789
    # If it fails, then pretend we aren't using GCC.
1790
    ac_prog=ld
1791
    ;;
1792
  *)
1793
    # If it is relative, then search for the first ld in PATH.
1794
    with_gnu_ld=unknown
1795
    ;;
1796
  esac
1797
elif test "$with_gnu_ld" = yes; then
1798
  echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1799
echo "configure:1800: checking for GNU ld" >&5
1800
else
1801
  echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1802
echo "configure:1803: checking for non-GNU ld" >&5
1803
fi
1804
if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
1805
  echo $ac_n "(cached) $ac_c" 1>&6
1806
else
1807
  if test -z "$LD"; then
1808
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1809
  for ac_dir in $PATH; do
1810
    test -z "$ac_dir" && ac_dir=.
1811
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
1812
      ac_cv_path_LD="$ac_dir/$ac_prog"
1813
      # Check to see if the program is GNU ld.  I'd rather use --version,
1814
      # but apparently some GNU ld's only accept -v.
1815
      # Break only if it was the GNU/non-GNU ld that we prefer.
1816
      if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1817
        test "$with_gnu_ld" != no && break
1818
      else
1819
        test "$with_gnu_ld" != yes && break
1820
      fi
1821
    fi
1822
  done
1823
  IFS="$ac_save_ifs"
1824
else
1825
  ac_cv_path_LD="$LD" # Let the user override the test with a path.
1826
fi
1827
fi
1828
 
1829
LD="$ac_cv_path_LD"
1830
if test -n "$LD"; then
1831
  echo "$ac_t""$LD" 1>&6
1832
else
1833
  echo "$ac_t""no" 1>&6
1834
fi
1835
test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1836
echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1837
echo "configure:1838: checking if the linker ($LD) is GNU ld" >&5
1838
if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
1839
  echo $ac_n "(cached) $ac_c" 1>&6
1840
else
1841
  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1842
if $LD -v 2>&1 &5; then
1843
  ac_cv_prog_gnu_ld=yes
1844
else
1845
  ac_cv_prog_gnu_ld=no
1846
fi
1847
fi
1848
 
1849
echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
1850
 
1851
 
1852
echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1853
echo "configure:1854: checking for BSD-compatible nm" >&5
1854
if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then
1855
  echo $ac_n "(cached) $ac_c" 1>&6
1856
else
1857
  if test -n "$NM"; then
1858
  # Let the user override the test.
1859
  ac_cv_path_NM="$NM"
1860
else
1861
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1862
  for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
1863
    test -z "$ac_dir" && ac_dir=.
1864
    if test -f $ac_dir/nm || test -f $ac_dir/nm$ac_exeext ; then
1865
      # Check to see if the nm accepts a BSD-compat flag.
1866
      # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1867
      #   nm: unknown option "B" ignored
1868
      if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1869
        ac_cv_path_NM="$ac_dir/nm -B"
1870
        break
1871
      elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1872
        ac_cv_path_NM="$ac_dir/nm -p"
1873
        break
1874
      else
1875
        ac_cv_path_NM=${ac_cv_path_NM="$ac_dir/nm"} # keep the first match, but
1876
        continue # so that we can try to find one that supports BSD flags
1877
      fi
1878
    fi
1879
  done
1880
  IFS="$ac_save_ifs"
1881
  test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
1882
fi
1883
fi
1884
 
1885
NM="$ac_cv_path_NM"
1886
echo "$ac_t""$NM" 1>&6
1887
 
1888
echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1889
echo "configure:1890: checking whether ln -s works" >&5
1890
if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1891
  echo $ac_n "(cached) $ac_c" 1>&6
1892
else
1893
  rm -f conftestdata
1894
if ln -s X conftestdata 2>/dev/null
1895
then
1896
  rm -f conftestdata
1897
  ac_cv_prog_LN_S="ln -s"
1898
else
1899
  ac_cv_prog_LN_S=ln
1900
fi
1901
fi
1902
LN_S="$ac_cv_prog_LN_S"
1903
if test "$ac_cv_prog_LN_S" = "ln -s"; then
1904
  echo "$ac_t""yes" 1>&6
1905
else
1906
  echo "$ac_t""no" 1>&6
1907
fi
1908
 
1909
 
1910
# Check for any special flags to pass to ltconfig.
1911
libtool_flags="--cache-file=$cache_file"
1912
test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
1913
test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
1914
test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
1915
test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
1916
test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
1917
 
1918
libtool_flags="$libtool_flags --enable-win32-dll"
1919
# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
1920
if test "${enable_libtool_lock+set}" = set; then
1921
  enableval="$enable_libtool_lock"
1922
  :
1923
fi
1924
 
1925
test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
1926
test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
1927
 
1928
# Some flags need to be propagated to the compiler or linker for good
1929
# libtool support.
1930
case "$host" in
1931
*-*-irix6*)
1932
  # Find out which ABI we are using.
1933
  echo '#line 1934 "configure"' > conftest.$ac_ext
1934
  if { (eval echo configure:1935: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1935
    case "`/usr/bin/file conftest.o`" in
1936
    *32-bit*)
1937
      LD="${LD-ld} -32"
1938
      ;;
1939
    *N32*)
1940
      LD="${LD-ld} -n32"
1941
      ;;
1942
    *64-bit*)
1943
      LD="${LD-ld} -64"
1944
      ;;
1945
    esac
1946
  fi
1947
  rm -rf conftest*
1948
  ;;
1949
 
1950
*-*-sco3.2v5*)
1951
  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
1952
  SAVE_CFLAGS="$CFLAGS"
1953
  CFLAGS="$CFLAGS -belf"
1954
  echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
1955
echo "configure:1956: checking whether the C compiler needs -belf" >&5
1956
if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
1957
  echo $ac_n "(cached) $ac_c" 1>&6
1958
else
1959
  cat > conftest.$ac_ext <
1960
#line 1961 "configure"
1961
#include "confdefs.h"
1962
 
1963
int main() {
1964
 
1965
; return 0; }
1966
EOF
1967
if { (eval echo configure:1968: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1968
  rm -rf conftest*
1969
  lt_cv_cc_needs_belf=yes
1970
else
1971
  echo "configure: failed program was:" >&5
1972
  cat conftest.$ac_ext >&5
1973
  rm -rf conftest*
1974
  lt_cv_cc_needs_belf=no
1975
fi
1976
rm -f conftest*
1977
fi
1978
 
1979
echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
1980
  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
1981
    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
1982
    CFLAGS="$SAVE_CFLAGS"
1983
  fi
1984
  ;;
1985
 
1986
*-*-cygwin* | *-*-mingw*)
1987
  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
1988
set dummy ${ac_tool_prefix}dlltool; ac_word=$2
1989
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1990
echo "configure:1991: checking for $ac_word" >&5
1991
if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then
1992
  echo $ac_n "(cached) $ac_c" 1>&6
1993
else
1994
  if test -n "$DLLTOOL"; then
1995
  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
1996
else
1997
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1998
  ac_dummy="$PATH"
1999
  for ac_dir in $ac_dummy; do
2000
    test -z "$ac_dir" && ac_dir=.
2001
    if test -f $ac_dir/$ac_word; then
2002
      ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
2003
      break
2004
    fi
2005
  done
2006
  IFS="$ac_save_ifs"
2007
fi
2008
fi
2009
DLLTOOL="$ac_cv_prog_DLLTOOL"
2010
if test -n "$DLLTOOL"; then
2011
  echo "$ac_t""$DLLTOOL" 1>&6
2012
else
2013
  echo "$ac_t""no" 1>&6
2014
fi
2015
 
2016
 
2017
if test -z "$ac_cv_prog_DLLTOOL"; then
2018
if test -n "$ac_tool_prefix"; then
2019
  # Extract the first word of "dlltool", so it can be a program name with args.
2020
set dummy dlltool; ac_word=$2
2021
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2022
echo "configure:2023: checking for $ac_word" >&5
2023
if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then
2024
  echo $ac_n "(cached) $ac_c" 1>&6
2025
else
2026
  if test -n "$DLLTOOL"; then
2027
  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
2028
else
2029
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2030
  ac_dummy="$PATH"
2031
  for ac_dir in $ac_dummy; do
2032
    test -z "$ac_dir" && ac_dir=.
2033
    if test -f $ac_dir/$ac_word; then
2034
      ac_cv_prog_DLLTOOL="dlltool"
2035
      break
2036
    fi
2037
  done
2038
  IFS="$ac_save_ifs"
2039
  test -z "$ac_cv_prog_DLLTOOL" && ac_cv_prog_DLLTOOL="false"
2040
fi
2041
fi
2042
DLLTOOL="$ac_cv_prog_DLLTOOL"
2043
if test -n "$DLLTOOL"; then
2044
  echo "$ac_t""$DLLTOOL" 1>&6
2045
else
2046
  echo "$ac_t""no" 1>&6
2047
fi
2048
 
2049
else
2050
  DLLTOOL="false"
2051
fi
2052
fi
2053
 
2054
  # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
2055
set dummy ${ac_tool_prefix}as; ac_word=$2
2056
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2057
echo "configure:2058: checking for $ac_word" >&5
2058
if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
2059
  echo $ac_n "(cached) $ac_c" 1>&6
2060
else
2061
  if test -n "$AS"; then
2062
  ac_cv_prog_AS="$AS" # Let the user override the test.
2063
else
2064
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2065
  ac_dummy="$PATH"
2066
  for ac_dir in $ac_dummy; do
2067
    test -z "$ac_dir" && ac_dir=.
2068
    if test -f $ac_dir/$ac_word; then
2069
      ac_cv_prog_AS="${ac_tool_prefix}as"
2070
      break
2071
    fi
2072
  done
2073
  IFS="$ac_save_ifs"
2074
fi
2075
fi
2076
AS="$ac_cv_prog_AS"
2077
if test -n "$AS"; then
2078
  echo "$ac_t""$AS" 1>&6
2079
else
2080
  echo "$ac_t""no" 1>&6
2081
fi
2082
 
2083
 
2084
if test -z "$ac_cv_prog_AS"; then
2085
if test -n "$ac_tool_prefix"; then
2086
  # Extract the first word of "as", so it can be a program name with args.
2087
set dummy as; ac_word=$2
2088
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2089
echo "configure:2090: checking for $ac_word" >&5
2090
if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
2091
  echo $ac_n "(cached) $ac_c" 1>&6
2092
else
2093
  if test -n "$AS"; then
2094
  ac_cv_prog_AS="$AS" # Let the user override the test.
2095
else
2096
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2097
  ac_dummy="$PATH"
2098
  for ac_dir in $ac_dummy; do
2099
    test -z "$ac_dir" && ac_dir=.
2100
    if test -f $ac_dir/$ac_word; then
2101
      ac_cv_prog_AS="as"
2102
      break
2103
    fi
2104
  done
2105
  IFS="$ac_save_ifs"
2106
  test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="false"
2107
fi
2108
fi
2109
AS="$ac_cv_prog_AS"
2110
if test -n "$AS"; then
2111
  echo "$ac_t""$AS" 1>&6
2112
else
2113
  echo "$ac_t""no" 1>&6
2114
fi
2115
 
2116
else
2117
  AS="false"
2118
fi
2119
fi
2120
 
2121
  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
2122
set dummy ${ac_tool_prefix}objdump; ac_word=$2
2123
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2124
echo "configure:2125: checking for $ac_word" >&5
2125
if eval "test \"`echo '$''{'ac_cv_prog_OBJDUMP'+set}'`\" = set"; then
2126
  echo $ac_n "(cached) $ac_c" 1>&6
2127
else
2128
  if test -n "$OBJDUMP"; then
2129
  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
2130
else
2131
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2132
  ac_dummy="$PATH"
2133
  for ac_dir in $ac_dummy; do
2134
    test -z "$ac_dir" && ac_dir=.
2135
    if test -f $ac_dir/$ac_word; then
2136
      ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
2137
      break
2138
    fi
2139
  done
2140
  IFS="$ac_save_ifs"
2141
fi
2142
fi
2143
OBJDUMP="$ac_cv_prog_OBJDUMP"
2144
if test -n "$OBJDUMP"; then
2145
  echo "$ac_t""$OBJDUMP" 1>&6
2146
else
2147
  echo "$ac_t""no" 1>&6
2148
fi
2149
 
2150
 
2151
if test -z "$ac_cv_prog_OBJDUMP"; then
2152
if test -n "$ac_tool_prefix"; then
2153
  # Extract the first word of "objdump", so it can be a program name with args.
2154
set dummy objdump; ac_word=$2
2155
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2156
echo "configure:2157: checking for $ac_word" >&5
2157
if eval "test \"`echo '$''{'ac_cv_prog_OBJDUMP'+set}'`\" = set"; then
2158
  echo $ac_n "(cached) $ac_c" 1>&6
2159
else
2160
  if test -n "$OBJDUMP"; then
2161
  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
2162
else
2163
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2164
  ac_dummy="$PATH"
2165
  for ac_dir in $ac_dummy; do
2166
    test -z "$ac_dir" && ac_dir=.
2167
    if test -f $ac_dir/$ac_word; then
2168
      ac_cv_prog_OBJDUMP="objdump"
2169
      break
2170
    fi
2171
  done
2172
  IFS="$ac_save_ifs"
2173
  test -z "$ac_cv_prog_OBJDUMP" && ac_cv_prog_OBJDUMP="false"
2174
fi
2175
fi
2176
OBJDUMP="$ac_cv_prog_OBJDUMP"
2177
if test -n "$OBJDUMP"; then
2178
  echo "$ac_t""$OBJDUMP" 1>&6
2179
else
2180
  echo "$ac_t""no" 1>&6
2181
fi
2182
 
2183
else
2184
  OBJDUMP="false"
2185
fi
2186
fi
2187
 
2188
  ;;
2189
 
2190
esac
2191
 
2192
 
2193
# Save cache, so that ltconfig can load it
2194
cat > confcache <<\EOF
2195
# This file is a shell script that caches the results of configure
2196
# tests run on this system so they can be shared between configure
2197
# scripts and configure runs.  It is not useful on other systems.
2198
# If it contains results you don't want to keep, you may remove or edit it.
2199
#
2200
# By default, configure uses ./config.cache as the cache file,
2201
# creating it if it does not exist already.  You can give configure
2202
# the --cache-file=FILE option to use a different cache file; that is
2203
# what configure does when it calls configure scripts in
2204
# subdirectories, so they share the cache.
2205
# Giving --cache-file=/dev/null disables caching, for debugging configure.
2206
# config.status only pays attention to the cache file if you give it the
2207
# --recheck option to rerun configure.
2208
#
2209
EOF
2210
# The following way of writing the cache mishandles newlines in values,
2211
# but we know of no workaround that is simple, portable, and efficient.
2212
# So, don't put newlines in cache variables' values.
2213
# Ultrix sh set writes to stderr and can't be redirected directly,
2214
# and sets the high bit in the cache file unless we assign to the vars.
2215
(set) 2>&1 |
2216
  case `(ac_space=' '; set | grep ac_space) 2>&1` in
2217
  *ac_space=\ *)
2218
    # `set' does not quote correctly, so add quotes (double-quote substitution
2219
    # turns \\\\ into \\, and sed turns \\ into \).
2220
    sed -n \
2221
      -e "s/'/'\\\\''/g" \
2222
      -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2223
    ;;
2224
  *)
2225
    # `set' quotes correctly as required by POSIX, so do not add quotes.
2226
    sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2227
    ;;
2228
  esac >> confcache
2229
if cmp -s $cache_file confcache; then
2230
  :
2231
else
2232
  if test -w $cache_file; then
2233
    echo "updating cache $cache_file"
2234
    cat confcache > $cache_file
2235
  else
2236
    echo "not updating unwritable cache $cache_file"
2237
  fi
2238
fi
2239
rm -f confcache
2240
 
2241
 
2242
# Actually configure libtool.  ac_aux_dir is where install-sh is found.
2243
CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
2244
LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2245
LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" \
2246
DLLTOOL="$DLLTOOL" AS="$AS" OBJDUMP="$OBJDUMP" \
2247
${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
2248
$libtool_flags --no-verify $ac_aux_dir/ltmain.sh $host \
2249
|| { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
2250
 
2251
# Reload cache, that may have been modified by ltconfig
2252
if test -r "$cache_file"; then
2253
  echo "loading cache $cache_file"
2254
  . $cache_file
2255
else
2256
  echo "creating cache $cache_file"
2257
  > $cache_file
2258
fi
2259
 
2260
 
2261
# This can be used to rebuild libtool when needed
2262
LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh"
2263
 
2264
# Always use our own libtool.
2265
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
2266
 
2267
# Redirect the config.log output again, so that the ltconfig log is not
2268
# clobbered by the next message.
2269
exec 5>>./config.log
2270
 
2271
for ac_prog in mawk gawk nawk awk
2272
do
2273
# Extract the first word of "$ac_prog", so it can be a program name with args.
2274
set dummy $ac_prog; ac_word=$2
2275
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2276
echo "configure:2277: checking for $ac_word" >&5
2277
if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
2278
  echo $ac_n "(cached) $ac_c" 1>&6
2279
else
2280
  if test -n "$AWK"; then
2281
  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2282
else
2283
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2284
  ac_dummy="$PATH"
2285
  for ac_dir in $ac_dummy; do
2286
    test -z "$ac_dir" && ac_dir=.
2287
    if test -f $ac_dir/$ac_word; then
2288
      ac_cv_prog_AWK="$ac_prog"
2289
      break
2290
    fi
2291
  done
2292
  IFS="$ac_save_ifs"
2293
fi
2294
fi
2295
AWK="$ac_cv_prog_AWK"
2296
if test -n "$AWK"; then
2297
  echo "$ac_t""$AWK" 1>&6
2298
else
2299
  echo "$ac_t""no" 1>&6
2300
fi
2301
 
2302
test -n "$AWK" && break
2303
done
2304
 
2305
fi
2306
 
2307
configdirs="libc libm"
2308
 
2309
# Check whether --enable-newlib_hw_fp or --disable-newlib_hw_fp was given.
2310
if test "${enable_newlib_hw_fp+set}" = set; then
2311
  enableval="$enable_newlib_hw_fp"
2312
  case "${enableval}" in
2313
   yes) newlib_hw_fp=true ;;
2314
   no)  newlib_hw_fp=false ;;
2315
   *) { echo "configure: error: bad value ${enableval} for --enable-newlib-hw-fp" 1>&2; exit 1; } ;;
2316
 esac
2317
else
2318
  newlib_hw_fp=false
2319
fi
2320
 
2321
 
2322
 
2323
if test x$newlib_hw_fp = xtrue; then
2324
  NEWLIB_HW_FP_TRUE=
2325
  NEWLIB_HW_FP_FALSE='#'
2326
else
2327
  NEWLIB_HW_FP_TRUE='#'
2328
  NEWLIB_HW_FP_FALSE=
2329
fi
2330
 
2331
if test -z "${with_multisubdir}"; then
2332
  configdirs="${configdirs} doc"
2333
  have_doc=yes
2334
else
2335
  have_doc=
2336
fi
2337
 
2338
 
2339
if test x$have_doc = xyes; then
2340
  HAVE_DOC_TRUE=
2341
  HAVE_DOC_FALSE='#'
2342
else
2343
  HAVE_DOC_TRUE='#'
2344
  HAVE_DOC_FALSE=
2345
fi
2346
 
2347
subdirs="${configdirs}"
2348
 
2349
 
2350
CRT0=
2351
CRT0_DIR=
2352
if test -n "${sys_dir}"; then
2353
  CRT0=crt0.o
2354
  CRT0_DIR=libc
2355
fi
2356
 
2357
 
2358
 
2359
if test -n "${libm_machine_dir}"; then
2360
  LIBM_MACHINE_OBJECTLIST=libm/machine/${libm_machine_dir}/objectlist.awk.in
2361
fi
2362
 
2363
 
2364
if test -n "${machine_dir}"; then
2365
  MACHINE_OBJECTLIST=libc/machine/${machine_dir}/objectlist.awk.in
2366
fi
2367
 
2368
 
2369
if test -n "${sys_dir}"; then
2370
  SYS_OBJECTLIST=libc/sys/${sys_dir}/objectlist.awk.in
2371
fi
2372
 
2373
 
2374
if test -n "${posix_dir}"; then
2375
  POSIX_OBJECTLIST=libc/${posix_dir}/objectlist.awk.in
2376
fi
2377
 
2378
 
2379
if test -n "${signal_dir}"; then
2380
  SIGNAL_OBJECTLIST=libc/${signal_dir}/objectlist.awk.in
2381
fi
2382
 
2383
 
2384
if test -n "${syscall_dir}"; then
2385
  SYSCALL_OBJECTLIST=libc/${syscall_dir}/objectlist.awk.in
2386
fi
2387
 
2388
 
2389
if test -n "${unix_dir}"; then
2390
  UNIX_OBJECTLIST=libc/${unix_dir}/objectlist.awk.in
2391
fi
2392
 
2393
 
2394
# Put a plausible default for CC_FOR_BUILD in Makefile.
2395
if test -z "$CC_FOR_BUILD"; then
2396
  if test "x$cross_compiling" = "xno"; then
2397
    CC_FOR_BUILD='$(CC)'
2398
  else
2399
    CC_FOR_BUILD=gcc
2400
  fi
2401
fi
2402
 
2403
 
2404
if test "${multilib}" = "yes"; then
2405
  multilib_arg="--enable-multilib"
2406
else
2407
  multilib_arg=
2408
fi
2409
 
2410
 
2411
trap '' 1 2 15
2412
cat > confcache <<\EOF
2413
# This file is a shell script that caches the results of configure
2414
# tests run on this system so they can be shared between configure
2415
# scripts and configure runs.  It is not useful on other systems.
2416
# If it contains results you don't want to keep, you may remove or edit it.
2417
#
2418
# By default, configure uses ./config.cache as the cache file,
2419
# creating it if it does not exist already.  You can give configure
2420
# the --cache-file=FILE option to use a different cache file; that is
2421
# what configure does when it calls configure scripts in
2422
# subdirectories, so they share the cache.
2423
# Giving --cache-file=/dev/null disables caching, for debugging configure.
2424
# config.status only pays attention to the cache file if you give it the
2425
# --recheck option to rerun configure.
2426
#
2427
EOF
2428
# The following way of writing the cache mishandles newlines in values,
2429
# but we know of no workaround that is simple, portable, and efficient.
2430
# So, don't put newlines in cache variables' values.
2431
# Ultrix sh set writes to stderr and can't be redirected directly,
2432
# and sets the high bit in the cache file unless we assign to the vars.
2433
(set) 2>&1 |
2434
  case `(ac_space=' '; set | grep ac_space) 2>&1` in
2435
  *ac_space=\ *)
2436
    # `set' does not quote correctly, so add quotes (double-quote substitution
2437
    # turns \\\\ into \\, and sed turns \\ into \).
2438
    sed -n \
2439
      -e "s/'/'\\\\''/g" \
2440
      -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2441
    ;;
2442
  *)
2443
    # `set' quotes correctly as required by POSIX, so do not add quotes.
2444
    sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2445
    ;;
2446
  esac >> confcache
2447
if cmp -s $cache_file confcache; then
2448
  :
2449
else
2450
  if test -w $cache_file; then
2451
    echo "updating cache $cache_file"
2452
    cat confcache > $cache_file
2453
  else
2454
    echo "not updating unwritable cache $cache_file"
2455
  fi
2456
fi
2457
rm -f confcache
2458
 
2459
trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
2460
 
2461
test "x$prefix" = xNONE && prefix=$ac_default_prefix
2462
# Let make expand exec_prefix.
2463
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
2464
 
2465
# Any assignment to VPATH causes Sun make to only execute
2466
# the first set of double-colon rules, so remove it if not needed.
2467
# If there is a colon in the path, we need to keep it.
2468
if test "x$srcdir" = x.; then
2469
  ac_vpsub='/^[         ]*VPATH[        ]*=[^:]*$/d'
2470
fi
2471
 
2472
trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
2473
 
2474
# Transform confdefs.h into DEFS.
2475
# Protect against shell expansion while executing Makefile rules.
2476
# Protect against Makefile macro expansion.
2477
cat > conftest.defs <<\EOF
2478
s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
2479
s%[     `~#$^&*(){}\\|;'"<>?]%\\&%g
2480
s%\[%\\&%g
2481
s%\]%\\&%g
2482
s%\$%$$%g
2483
EOF
2484
DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
2485
rm -f conftest.defs
2486
 
2487
 
2488
# Without the "./", some shells look in PATH for config.status.
2489
: ${CONFIG_STATUS=./config.status}
2490
 
2491
echo creating $CONFIG_STATUS
2492
rm -f $CONFIG_STATUS
2493
cat > $CONFIG_STATUS <
2494
#! /bin/sh
2495
# Generated automatically by configure.
2496
# Run this file to recreate the current configuration.
2497
# This directory was configured as follows,
2498
# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
2499
#
2500
# $0 $ac_configure_args
2501
#
2502
# Compiler output produced by configure, useful for debugging
2503
# configure, is in ./config.log if it exists.
2504
 
2505
ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
2506
for ac_option
2507
do
2508
  case "\$ac_option" in
2509
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
2510
    echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
2511
    exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
2512
  -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
2513
    echo "$CONFIG_STATUS generated by autoconf version 2.13"
2514
    exit 0 ;;
2515
  -help | --help | --hel | --he | --h)
2516
    echo "\$ac_cs_usage"; exit 0 ;;
2517
  *) echo "\$ac_cs_usage"; exit 1 ;;
2518
  esac
2519
done
2520
 
2521
ac_given_srcdir=$srcdir
2522
ac_given_INSTALL="$INSTALL"
2523
 
2524
trap 'rm -fr `echo "Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
2525
EOF
2526
cat >> $CONFIG_STATUS <
2527
 
2528
# Protect against being on the right side of a sed subst in config.status.
2529
sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
2530
 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
2531
$ac_vpsub
2532
$extrasub
2533
s%@SHELL@%$SHELL%g
2534
s%@CFLAGS@%$CFLAGS%g
2535
s%@CPPFLAGS@%$CPPFLAGS%g
2536
s%@CXXFLAGS@%$CXXFLAGS%g
2537
s%@FFLAGS@%$FFLAGS%g
2538
s%@DEFS@%$DEFS%g
2539
s%@LDFLAGS@%$LDFLAGS%g
2540
s%@LIBS@%$LIBS%g
2541
s%@exec_prefix@%$exec_prefix%g
2542
s%@prefix@%$prefix%g
2543
s%@program_transform_name@%$program_transform_name%g
2544
s%@bindir@%$bindir%g
2545
s%@sbindir@%$sbindir%g
2546
s%@libexecdir@%$libexecdir%g
2547
s%@datadir@%$datadir%g
2548
s%@sysconfdir@%$sysconfdir%g
2549
s%@sharedstatedir@%$sharedstatedir%g
2550
s%@localstatedir@%$localstatedir%g
2551
s%@libdir@%$libdir%g
2552
s%@includedir@%$includedir%g
2553
s%@oldincludedir@%$oldincludedir%g
2554
s%@infodir@%$infodir%g
2555
s%@mandir@%$mandir%g
2556
s%@newlib_basedir@%$newlib_basedir%g
2557
s%@host@%$host%g
2558
s%@host_alias@%$host_alias%g
2559
s%@host_cpu@%$host_cpu%g
2560
s%@host_vendor@%$host_vendor%g
2561
s%@host_os@%$host_os%g
2562
s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
2563
s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
2564
s%@INSTALL_DATA@%$INSTALL_DATA%g
2565
s%@PACKAGE@%$PACKAGE%g
2566
s%@VERSION@%$VERSION%g
2567
s%@ACLOCAL@%$ACLOCAL%g
2568
s%@AUTOCONF@%$AUTOCONF%g
2569
s%@AUTOMAKE@%$AUTOMAKE%g
2570
s%@AUTOHEADER@%$AUTOHEADER%g
2571
s%@MAKEINFO@%$MAKEINFO%g
2572
s%@SET_MAKE@%$SET_MAKE%g
2573
s%@CC@%$CC%g
2574
s%@build@%$build%g
2575
s%@build_alias@%$build_alias%g
2576
s%@build_cpu@%$build_cpu%g
2577
s%@build_vendor@%$build_vendor%g
2578
s%@build_os@%$build_os%g
2579
s%@AS@%$AS%g
2580
s%@AR@%$AR%g
2581
s%@RANLIB@%$RANLIB%g
2582
s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
2583
s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
2584
s%@MAINT@%$MAINT%g
2585
s%@EXEEXT@%$EXEEXT%g
2586
s%@NEWLIB_CFLAGS@%$NEWLIB_CFLAGS%g
2587
s%@USE_LIBTOOL_TRUE@%$USE_LIBTOOL_TRUE%g
2588
s%@USE_LIBTOOL_FALSE@%$USE_LIBTOOL_FALSE%g
2589
s%@oext@%$oext%g
2590
s%@aext@%$aext%g
2591
s%@libm_machine_dir@%$libm_machine_dir%g
2592
s%@machine_dir@%$machine_dir%g
2593
s%@sys_dir@%$sys_dir%g
2594
s%@LN_S@%$LN_S%g
2595
s%@DLLTOOL@%$DLLTOOL%g
2596
s%@OBJDUMP@%$OBJDUMP%g
2597
s%@LIBTOOL@%$LIBTOOL%g
2598
s%@AWK@%$AWK%g
2599
s%@NEWLIB_HW_FP_TRUE@%$NEWLIB_HW_FP_TRUE%g
2600
s%@NEWLIB_HW_FP_FALSE@%$NEWLIB_HW_FP_FALSE%g
2601
s%@HAVE_DOC_TRUE@%$HAVE_DOC_TRUE%g
2602
s%@HAVE_DOC_FALSE@%$HAVE_DOC_FALSE%g
2603
s%@subdirs@%$subdirs%g
2604
s%@CRT0@%$CRT0%g
2605
s%@CRT0_DIR@%$CRT0_DIR%g
2606
s%@LIBM_MACHINE_OBJECTLIST@%$LIBM_MACHINE_OBJECTLIST%g
2607
s%@MACHINE_OBJECTLIST@%$MACHINE_OBJECTLIST%g
2608
s%@SYS_OBJECTLIST@%$SYS_OBJECTLIST%g
2609
s%@POSIX_OBJECTLIST@%$POSIX_OBJECTLIST%g
2610
s%@SIGNAL_OBJECTLIST@%$SIGNAL_OBJECTLIST%g
2611
s%@SYSCALL_OBJECTLIST@%$SYSCALL_OBJECTLIST%g
2612
s%@UNIX_OBJECTLIST@%$UNIX_OBJECTLIST%g
2613
s%@CC_FOR_BUILD@%$CC_FOR_BUILD%g
2614
 
2615
CEOF
2616
EOF
2617
 
2618
cat >> $CONFIG_STATUS <<\EOF
2619
 
2620
# Split the substitutions into bite-sized pieces for seds with
2621
# small command number limits, like on Digital OSF/1 and HP-UX.
2622
ac_max_sed_cmds=60 # Maximum number of lines to put in a sed script.
2623
ac_file=1 # Number of current file.
2624
ac_beg=1 # First line for current file.
2625
ac_end=$ac_max_sed_cmds # Line after last line for current file.
2626
ac_more_lines=:
2627
ac_sed_cmds=""
2628
while $ac_more_lines; do
2629
  if test $ac_beg -gt 1; then
2630
    sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
2631
  else
2632
    sed "${ac_end}q" conftest.subs > conftest.s$ac_file
2633
  fi
2634
  if test ! -s conftest.s$ac_file; then
2635
    ac_more_lines=false
2636
    rm -f conftest.s$ac_file
2637
  else
2638
    if test -z "$ac_sed_cmds"; then
2639
      ac_sed_cmds="sed -f conftest.s$ac_file"
2640
    else
2641
      ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
2642
    fi
2643
    ac_file=`expr $ac_file + 1`
2644
    ac_beg=$ac_end
2645
    ac_end=`expr $ac_end + $ac_max_sed_cmds`
2646
  fi
2647
done
2648
if test -z "$ac_sed_cmds"; then
2649
  ac_sed_cmds=cat
2650
fi
2651
EOF
2652
 
2653
cat >> $CONFIG_STATUS <
2654
 
2655
CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
2656
EOF
2657
cat >> $CONFIG_STATUS <<\EOF
2658
for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
2659
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2660
  case "$ac_file" in
2661
  *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2662
       ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2663
  *) ac_file_in="${ac_file}.in" ;;
2664
  esac
2665
 
2666
  # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
2667
 
2668
  # Remove last slash and all that follows it.  Not all systems have dirname.
2669
  ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2670
  if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2671
    # The file is in a subdirectory.
2672
    test ! -d "$ac_dir" && mkdir "$ac_dir"
2673
    ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
2674
    # A "../" for each directory in $ac_dir_suffix.
2675
    ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
2676
  else
2677
    ac_dir_suffix= ac_dots=
2678
  fi
2679
 
2680
  case "$ac_given_srcdir" in
2681
  .)  srcdir=.
2682
      if test -z "$ac_dots"; then top_srcdir=.
2683
      else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
2684
  /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
2685
  *) # Relative path.
2686
    srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
2687
    top_srcdir="$ac_dots$ac_given_srcdir" ;;
2688
  esac
2689
 
2690
  case "$ac_given_INSTALL" in
2691
  [/$]*) INSTALL="$ac_given_INSTALL" ;;
2692
  *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
2693
  esac
2694
 
2695
  echo creating "$ac_file"
2696
  rm -f "$ac_file"
2697
  configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
2698
  case "$ac_file" in
2699
  *Makefile*) ac_comsub="1i\\
2700
# $configure_input" ;;
2701
  *) ac_comsub= ;;
2702
  esac
2703
 
2704
  ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2705
  sed -e "$ac_comsub
2706
s%@configure_input@%$configure_input%g
2707
s%@srcdir@%$srcdir%g
2708
s%@top_srcdir@%$top_srcdir%g
2709
s%@INSTALL@%$INSTALL%g
2710
" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
2711
fi; done
2712
rm -f conftest.s*
2713
 
2714
EOF
2715
cat >> $CONFIG_STATUS <
2716
srcdir=${srcdir}
2717
host=${host}
2718
target=${target}
2719
with_multisubdir=${with_multisubdir}
2720
ac_configure_args="${multilib_arg} ${ac_configure_args}"
2721
CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
2722
newlib_basedir=${newlib_basedir}
2723
CC="${CC}"
2724
LDFLAGS="${LDFLAGS}"
2725
 
2726
EOF
2727
cat >> $CONFIG_STATUS <<\EOF
2728
if test -n "$CONFIG_FILES"; then
2729
  . ${newlib_basedir}/../config-ml.in
2730
fi
2731
exit 0
2732
EOF
2733
chmod +x $CONFIG_STATUS
2734
rm -fr confdefs* $ac_clean_files
2735
test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
2736
 
2737
if test "$no_recursion" != yes; then
2738
 
2739
  # Remove --cache-file and --srcdir arguments so they do not pile up.
2740
  ac_sub_configure_args=
2741
  ac_prev=
2742
  for ac_arg in $ac_configure_args; do
2743
    if test -n "$ac_prev"; then
2744
      ac_prev=
2745
      continue
2746
    fi
2747
    case "$ac_arg" in
2748
    -cache-file | --cache-file | --cache-fil | --cache-fi \
2749
    | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
2750
      ac_prev=cache_file ;;
2751
    -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
2752
    | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
2753
      ;;
2754
    -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
2755
      ac_prev=srcdir ;;
2756
    -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
2757
      ;;
2758
    *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
2759
    esac
2760
  done
2761
 
2762
  for ac_config_dir in ${configdirs}; do
2763
 
2764
    # Do not complain, so a configure script can configure whichever
2765
    # parts of a large source tree are present.
2766
    if test ! -d $srcdir/$ac_config_dir; then
2767
      continue
2768
    fi
2769
 
2770
    echo configuring in $ac_config_dir
2771
 
2772
    case "$srcdir" in
2773
    .) ;;
2774
    *)
2775
      if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
2776
      else
2777
        { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
2778
      fi
2779
      ;;
2780
    esac
2781
 
2782
    ac_popdir=`pwd`
2783
    cd $ac_config_dir
2784
 
2785
      # A "../" for each directory in /$ac_config_dir.
2786
      ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
2787
 
2788
    case "$srcdir" in
2789
    .) # No --srcdir option.  We are building in place.
2790
      ac_sub_srcdir=$srcdir ;;
2791
    /*) # Absolute path.
2792
      ac_sub_srcdir=$srcdir/$ac_config_dir ;;
2793
    *) # Relative path.
2794
      ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
2795
    esac
2796
 
2797
    # Check for guested configure; otherwise get Cygnus style configure.
2798
    if test -f $ac_sub_srcdir/configure; then
2799
      ac_sub_configure=$ac_sub_srcdir/configure
2800
    elif test -f $ac_sub_srcdir/configure.in; then
2801
      ac_sub_configure=$ac_configure
2802
    else
2803
      echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
2804
      ac_sub_configure=
2805
    fi
2806
 
2807
    # The recursion is here.
2808
    if test -n "$ac_sub_configure"; then
2809
 
2810
      # Make the cache file name correct relative to the subdirectory.
2811
      case "$cache_file" in
2812
      /*) ac_sub_cache_file=$cache_file ;;
2813
      *) # Relative path.
2814
        ac_sub_cache_file="$ac_dots$cache_file" ;;
2815
      esac
2816
  case "$ac_given_INSTALL" in
2817
        [/$]*) INSTALL="$ac_given_INSTALL" ;;
2818
        *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
2819
        esac
2820
 
2821
      echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
2822
      # The eval makes quoting arguments work.
2823
      if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
2824
      then :
2825
      else
2826
        { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
2827
      fi
2828
    fi
2829
 
2830
    cd $ac_popdir
2831
  done
2832
fi
2833
 

powered by: WebSVN 2.1.0

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