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

Subversion Repositories or1k

[/] [or1k/] [trunk/] [newlib-1.10.0/] [newlib/] [libc/] [machine/] [arm/] [configure] - Blame information for rev 1765

Details | Compare with Previous | View Log

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

powered by: WebSVN 2.1.0

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