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

Subversion Repositories or1k

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

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 1010 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-newlib-hw-fp    Turn on hardware floating point math"
16
ac_help="$ac_help
17
  --enable-multilib         build many library versions (default)"
18
ac_help="$ac_help
19
  --enable-target-optspace  optimize for space"
20
ac_help="$ac_help
21
  --enable-malloc-debugging indicate malloc debugging requested"
22
ac_help="$ac_help
23
  --enable-newlib-mb        enable multibyte support"
24
ac_help="$ac_help
25
  --enable-maintainer-mode enable make rules and dependencies not useful
26
                          (and sometimes confusing) to the casual installer"
27
ac_help="$ac_help
28
  --enable-shared[=PKGS]  build shared libraries [default=yes]"
29
ac_help="$ac_help
30
  --enable-static[=PKGS]  build static libraries [default=yes]"
31
ac_help="$ac_help
32
  --enable-fast-install[=PKGS]  optimize for fast installation [default=yes]"
33
ac_help="$ac_help
34
  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]"
35
ac_help="$ac_help
36
  --disable-libtool-lock  avoid locking (might break parallel builds)"
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=libm.texinfo
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
# Check whether --enable-newlib_hw_fp or --disable-newlib_hw_fp was given.
560
if test "${enable_newlib_hw_fp+set}" = set; then
561
  enableval="$enable_newlib_hw_fp"
562
  case "${enableval}" in
563
   yes) newlib_hw_fp=true ;;
564
   no)  newlib_hw_fp=false ;;
565
   *) { echo "configure: error: bad value ${enableval} for --enable-newlib-hw-fp" 1>&2; exit 1; } ;;
566
 esac
567
else
568
  newlib_hw_fp=false
569
fi
570
 
571
 
572
 
573
if test x$newlib_hw_fp = xtrue; then
574
  NEWLIB_HW_FP_TRUE=
575
  NEWLIB_HW_FP_FALSE='#'
576
else
577
  NEWLIB_HW_FP_TRUE='#'
578
  NEWLIB_HW_FP_FALSE=
579
fi
580
 
581
ac_aux_dir=
582
for ac_dir in ../.. $srcdir/../..; do
583
  if test -f $ac_dir/install-sh; then
584
    ac_aux_dir=$ac_dir
585
    ac_install_sh="$ac_aux_dir/install-sh -c"
586
    break
587
  elif test -f $ac_dir/install.sh; then
588
    ac_aux_dir=$ac_dir
589
    ac_install_sh="$ac_aux_dir/install.sh -c"
590
    break
591
  fi
592
done
593
if test -z "$ac_aux_dir"; then
594
  { echo "configure: error: can not find install-sh or install.sh in ../.. $srcdir/../.." 1>&2; exit 1; }
595
fi
596
ac_config_guess=$ac_aux_dir/config.guess
597
ac_config_sub=$ac_aux_dir/config.sub
598
ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
599
 
600
 
601
# Find a good install program.  We prefer a C program (faster),
602
# so one script is as good as another.  But avoid the broken or
603
# incompatible versions:
604
# SysV /etc/install, /usr/sbin/install
605
# SunOS /usr/etc/install
606
# IRIX /sbin/install
607
# AIX /bin/install
608
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
609
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
610
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
611
# ./install, which can be erroneously created by make from ./install.sh.
612
echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
613
echo "configure:614: checking for a BSD compatible install" >&5
614
if test -z "$INSTALL"; then
615
if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
616
  echo $ac_n "(cached) $ac_c" 1>&6
617
else
618
    IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS=":"
619
  for ac_dir in $PATH; do
620
    # Account for people who put trailing slashes in PATH elements.
621
    case "$ac_dir/" in
622
    /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
623
    *)
624
      # OSF1 and SCO ODT 3.0 have their own names for install.
625
      # Don't use installbsd from OSF since it installs stuff as root
626
      # by default.
627
      for ac_prog in ginstall scoinst install; do
628
        if test -f $ac_dir/$ac_prog; then
629
          if test $ac_prog = install &&
630
            grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
631
            # AIX install.  It has an incompatible calling convention.
632
            :
633
          else
634
            ac_cv_path_install="$ac_dir/$ac_prog -c"
635
            break 2
636
          fi
637
        fi
638
      done
639
      ;;
640
    esac
641
  done
642
  IFS="$ac_save_IFS"
643
 
644
fi
645
  if test "${ac_cv_path_install+set}" = set; then
646
    INSTALL="$ac_cv_path_install"
647
  else
648
    # As a last resort, use the slow shell script.  We don't cache a
649
    # path for INSTALL within a source directory, because that will
650
    # break other packages using the cache if that directory is
651
    # removed, or if the path is relative.
652
    INSTALL="$ac_install_sh"
653
  fi
654
fi
655
echo "$ac_t""$INSTALL" 1>&6
656
 
657
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
658
# It thinks the first close brace ends the variable substitution.
659
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
660
 
661
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
662
 
663
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
664
 
665
echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
666
echo "configure:667: checking whether build environment is sane" >&5
667
# Just in case
668
sleep 1
669
echo timestamp > conftestfile
670
# Do `set' in a subshell so we don't clobber the current shell's
671
# arguments.  Must try -L first in case configure is actually a
672
# symlink; some systems play weird games with the mod time of symlinks
673
# (eg FreeBSD returns the mod time of the symlink's containing
674
# directory).
675
if (
676
   set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
677
   if test "$*" = "X"; then
678
      # -L didn't work.
679
      set X `ls -t $srcdir/configure conftestfile`
680
   fi
681
   if test "$*" != "X $srcdir/configure conftestfile" \
682
      && test "$*" != "X conftestfile $srcdir/configure"; then
683
 
684
      # If neither matched, then we have a broken ls.  This can happen
685
      # if, for instance, CONFIG_SHELL is bash and it inherits a
686
      # broken ls alias from the environment.  This has actually
687
      # happened.  Such a system could not be considered "sane".
688
      { echo "configure: error: ls -t appears to fail.  Make sure there is not a broken
689
alias in your environment" 1>&2; exit 1; }
690
   fi
691
 
692
   test "$2" = conftestfile
693
   )
694
then
695
   # Ok.
696
   :
697
else
698
   { echo "configure: error: newly created file is older than distributed files!
699
Check your system clock" 1>&2; exit 1; }
700
fi
701
rm -f conftest*
702
echo "$ac_t""yes" 1>&6
703
if test "$program_transform_name" = s,x,x,; then
704
  program_transform_name=
705
else
706
  # Double any \ or $.  echo might interpret backslashes.
707
  cat <<\EOF_SED > conftestsed
708
s,\\,\\\\,g; s,\$,$$,g
709
EOF_SED
710
  program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
711
  rm -f conftestsed
712
fi
713
test "$program_prefix" != NONE &&
714
  program_transform_name="s,^,${program_prefix},; $program_transform_name"
715
# Use a double $ so make ignores it.
716
test "$program_suffix" != NONE &&
717
  program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
718
 
719
# sed with no file args requires a program.
720
test "$program_transform_name" = "" && program_transform_name="s,x,x,"
721
 
722
echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
723
echo "configure:724: checking whether ${MAKE-make} sets \${MAKE}" >&5
724
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
725
if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
726
  echo $ac_n "(cached) $ac_c" 1>&6
727
else
728
  cat > conftestmake <<\EOF
729
all:
730
        @echo 'ac_maketemp="${MAKE}"'
731
EOF
732
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
733
eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
734
if test -n "$ac_maketemp"; then
735
  eval ac_cv_prog_make_${ac_make}_set=yes
736
else
737
  eval ac_cv_prog_make_${ac_make}_set=no
738
fi
739
rm -f conftestmake
740
fi
741
if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
742
  echo "$ac_t""yes" 1>&6
743
  SET_MAKE=
744
else
745
  echo "$ac_t""no" 1>&6
746
  SET_MAKE="MAKE=${MAKE-make}"
747
fi
748
 
749
if test $host != $build; then
750
  ac_tool_prefix=${host_alias}-
751
else
752
  ac_tool_prefix=
753
fi
754
 
755
echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
756
echo "configure:757: checking for Cygwin environment" >&5
757
if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
758
  echo $ac_n "(cached) $ac_c" 1>&6
759
else
760
  cat > conftest.$ac_ext <
761
#line 762 "configure"
762
#include "confdefs.h"
763
 
764
int main() {
765
 
766
#ifndef __CYGWIN__
767
#define __CYGWIN__ __CYGWIN32__
768
#endif
769
return __CYGWIN__;
770
; return 0; }
771
EOF
772
if { (eval echo configure:773: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
773
  rm -rf conftest*
774
  ac_cv_cygwin=yes
775
else
776
  echo "configure: failed program was:" >&5
777
  cat conftest.$ac_ext >&5
778
  rm -rf conftest*
779
  ac_cv_cygwin=no
780
fi
781
rm -f conftest*
782
rm -f conftest*
783
fi
784
 
785
echo "$ac_t""$ac_cv_cygwin" 1>&6
786
CYGWIN=
787
test "$ac_cv_cygwin" = yes && CYGWIN=yes
788
echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
789
echo "configure:790: checking for mingw32 environment" >&5
790
if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
791
  echo $ac_n "(cached) $ac_c" 1>&6
792
else
793
  cat > conftest.$ac_ext <
794
#line 795 "configure"
795
#include "confdefs.h"
796
 
797
int main() {
798
return __MINGW32__;
799
; return 0; }
800
EOF
801
if { (eval echo configure:802: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
802
  rm -rf conftest*
803
  ac_cv_mingw32=yes
804
else
805
  echo "configure: failed program was:" >&5
806
  cat conftest.$ac_ext >&5
807
  rm -rf conftest*
808
  ac_cv_mingw32=no
809
fi
810
rm -f conftest*
811
rm -f conftest*
812
fi
813
 
814
echo "$ac_t""$ac_cv_mingw32" 1>&6
815
MINGW32=
816
test "$ac_cv_mingw32" = yes && MINGW32=yes
817
 
818
# Check whether --enable-multilib or --disable-multilib was given.
819
if test "${enable_multilib+set}" = set; then
820
  enableval="$enable_multilib"
821
  case "${enableval}" in
822
  yes) multilib=yes ;;
823
  no)  multilib=no ;;
824
  *)   { echo "configure: error: bad value ${enableval} for multilib option" 1>&2; exit 1; } ;;
825
 esac
826
else
827
  multilib=yes
828
fi
829
 
830
# Check whether --enable-target-optspace or --disable-target-optspace was given.
831
if test "${enable_target_optspace+set}" = set; then
832
  enableval="$enable_target_optspace"
833
  case "${enableval}" in
834
  yes) target_optspace=yes ;;
835
  no)  target_optspace=no ;;
836
  *)   { echo "configure: error: bad value ${enableval} for target-optspace option" 1>&2; exit 1; } ;;
837
 esac
838
else
839
  target_optspace=
840
fi
841
 
842
# Check whether --enable-malloc-debugging or --disable-malloc-debugging was given.
843
if test "${enable_malloc_debugging+set}" = set; then
844
  enableval="$enable_malloc_debugging"
845
  case "${enableval}" in
846
  yes) malloc_debugging=yes ;;
847
  no)  malloc_debugging=no ;;
848
  *)   { echo "configure: error: bad value ${enableval} for malloc-debugging option" 1>&2; exit 1; } ;;
849
 esac
850
else
851
  malloc_debugging=
852
fi
853
 
854
# Check whether --enable-newlib-mb or --disable-newlib-mb was given.
855
if test "${enable_newlib_mb+set}" = set; then
856
  enableval="$enable_newlib_mb"
857
  case "${enableval}" in
858
  yes) newlib_mb=yes ;;
859
  no)  newlib_mb=no ;;
860
  *)   { echo "configure: error: bad value ${enableval} for newlib-mb option" 1>&2; exit 1; } ;;
861
 esac
862
else
863
  newlib_mb=no
864
fi
865
 
866
 
867
test -z "${with_target_subdir}" && with_target_subdir=.
868
 
869
if test "${srcdir}" = "."; then
870
  if test "${with_target_subdir}" != "."; then
871
    newlib_basedir="${srcdir}/${with_multisrctop}../.."
872
  else
873
    newlib_basedir="${srcdir}/${with_multisrctop}.."
874
  fi
875
else
876
  newlib_basedir="${srcdir}/.."
877
fi
878
 
879
 
880
 
881
# Make sure we can run config.sub.
882
if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
883
else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
884
fi
885
 
886
echo $ac_n "checking host system type""... $ac_c" 1>&6
887
echo "configure:888: checking host system type" >&5
888
 
889
host_alias=$host
890
case "$host_alias" in
891
NONE)
892
  case $nonopt in
893
  NONE)
894
    if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
895
    else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
896
    fi ;;
897
  *) host_alias=$nonopt ;;
898
  esac ;;
899
esac
900
 
901
host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
902
host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
903
host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
904
host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
905
echo "$ac_t""$host" 1>&6
906
 
907
 
908
 
909
PACKAGE=newlib
910
 
911
VERSION=1.10.0
912
 
913
if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
914
  { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
915
fi
916
cat >> confdefs.h <
917
#define PACKAGE "$PACKAGE"
918
EOF
919
 
920
cat >> confdefs.h <
921
#define VERSION "$VERSION"
922
EOF
923
 
924
 
925
 
926
missing_dir=`cd $ac_aux_dir && pwd`
927
echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
928
echo "configure:929: checking for working aclocal" >&5
929
# Run test in a subshell; some versions of sh will print an error if
930
# an executable is not found, even if stderr is redirected.
931
# Redirect stdin to placate older versions of autoconf.  Sigh.
932
if (aclocal --version) < /dev/null > /dev/null 2>&1; then
933
   ACLOCAL=aclocal
934
   echo "$ac_t""found" 1>&6
935
else
936
   ACLOCAL="$missing_dir/missing aclocal"
937
   echo "$ac_t""missing" 1>&6
938
fi
939
 
940
echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
941
echo "configure:942: checking for working autoconf" >&5
942
# Run test in a subshell; some versions of sh will print an error if
943
# an executable is not found, even if stderr is redirected.
944
# Redirect stdin to placate older versions of autoconf.  Sigh.
945
if (autoconf --version) < /dev/null > /dev/null 2>&1; then
946
   AUTOCONF=autoconf
947
   echo "$ac_t""found" 1>&6
948
else
949
   AUTOCONF="$missing_dir/missing autoconf"
950
   echo "$ac_t""missing" 1>&6
951
fi
952
 
953
echo $ac_n "checking for working automake""... $ac_c" 1>&6
954
echo "configure:955: checking for working automake" >&5
955
# Run test in a subshell; some versions of sh will print an error if
956
# an executable is not found, even if stderr is redirected.
957
# Redirect stdin to placate older versions of autoconf.  Sigh.
958
if (automake --version) < /dev/null > /dev/null 2>&1; then
959
   AUTOMAKE=automake
960
   echo "$ac_t""found" 1>&6
961
else
962
   AUTOMAKE="$missing_dir/missing automake"
963
   echo "$ac_t""missing" 1>&6
964
fi
965
 
966
echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
967
echo "configure:968: checking for working autoheader" >&5
968
# Run test in a subshell; some versions of sh will print an error if
969
# an executable is not found, even if stderr is redirected.
970
# Redirect stdin to placate older versions of autoconf.  Sigh.
971
if (autoheader --version) < /dev/null > /dev/null 2>&1; then
972
   AUTOHEADER=autoheader
973
   echo "$ac_t""found" 1>&6
974
else
975
   AUTOHEADER="$missing_dir/missing autoheader"
976
   echo "$ac_t""missing" 1>&6
977
fi
978
 
979
echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
980
echo "configure:981: checking for working makeinfo" >&5
981
# Run test in a subshell; some versions of sh will print an error if
982
# an executable is not found, even if stderr is redirected.
983
# Redirect stdin to placate older versions of autoconf.  Sigh.
984
if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
985
   MAKEINFO=makeinfo
986
   echo "$ac_t""found" 1>&6
987
else
988
   MAKEINFO="$missing_dir/missing makeinfo"
989
   echo "$ac_t""missing" 1>&6
990
fi
991
 
992
 
993
 
994
# FIXME: We temporarily define our own version of AC_PROG_CC.  This is
995
# copied from autoconf 2.12, but does not call AC_PROG_CC_WORKS.  We
996
# are probably using a cross compiler, which will not be able to fully
997
# link an executable.  This should really be fixed in autoconf
998
# itself.
999
 
1000
 
1001
 
1002
# Extract the first word of "gcc", so it can be a program name with args.
1003
set dummy gcc; ac_word=$2
1004
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1005
echo "configure:1006: checking for $ac_word" >&5
1006
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1007
  echo $ac_n "(cached) $ac_c" 1>&6
1008
else
1009
  if test -n "$CC"; then
1010
  ac_cv_prog_CC="$CC" # Let the user override the test.
1011
else
1012
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1013
  ac_dummy="$PATH"
1014
  for ac_dir in $ac_dummy; do
1015
    test -z "$ac_dir" && ac_dir=.
1016
    if test -f $ac_dir/$ac_word; then
1017
      ac_cv_prog_CC="gcc"
1018
      break
1019
    fi
1020
  done
1021
  IFS="$ac_save_ifs"
1022
fi
1023
fi
1024
CC="$ac_cv_prog_CC"
1025
if test -n "$CC"; then
1026
  echo "$ac_t""$CC" 1>&6
1027
else
1028
  echo "$ac_t""no" 1>&6
1029
fi
1030
 
1031
if test -z "$CC"; then
1032
  # Extract the first word of "cc", so it can be a program name with args.
1033
set dummy cc; ac_word=$2
1034
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1035
echo "configure:1036: checking for $ac_word" >&5
1036
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1037
  echo $ac_n "(cached) $ac_c" 1>&6
1038
else
1039
  if test -n "$CC"; then
1040
  ac_cv_prog_CC="$CC" # Let the user override the test.
1041
else
1042
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1043
  ac_prog_rejected=no
1044
  ac_dummy="$PATH"
1045
  for ac_dir in $ac_dummy; do
1046
    test -z "$ac_dir" && ac_dir=.
1047
    if test -f $ac_dir/$ac_word; then
1048
      if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1049
        ac_prog_rejected=yes
1050
        continue
1051
      fi
1052
      ac_cv_prog_CC="cc"
1053
      break
1054
    fi
1055
  done
1056
  IFS="$ac_save_ifs"
1057
if test $ac_prog_rejected = yes; then
1058
  # We found a bogon in the path, so make sure we never use it.
1059
  set dummy $ac_cv_prog_CC
1060
  shift
1061
  if test $# -gt 0; then
1062
    # We chose a different compiler from the bogus one.
1063
    # However, it has the same basename, so the bogon will be chosen
1064
    # first if we set CC to just the basename; use the full file name.
1065
    shift
1066
    set dummy "$ac_dir/$ac_word" "$@"
1067
    shift
1068
    ac_cv_prog_CC="$@"
1069
  fi
1070
fi
1071
fi
1072
fi
1073
CC="$ac_cv_prog_CC"
1074
if test -n "$CC"; then
1075
  echo "$ac_t""$CC" 1>&6
1076
else
1077
  echo "$ac_t""no" 1>&6
1078
fi
1079
 
1080
  test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1081
fi
1082
 
1083
echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1084
echo "configure:1085: checking whether we are using GNU C" >&5
1085
if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1086
  echo $ac_n "(cached) $ac_c" 1>&6
1087
else
1088
  cat > conftest.c <
1089
#ifdef __GNUC__
1090
  yes;
1091
#endif
1092
EOF
1093
if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1094: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1094
  ac_cv_prog_gcc=yes
1095
else
1096
  ac_cv_prog_gcc=no
1097
fi
1098
fi
1099
 
1100
echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1101
 
1102
if test $ac_cv_prog_gcc = yes; then
1103
  GCC=yes
1104
  ac_test_CFLAGS="${CFLAGS+set}"
1105
  ac_save_CFLAGS="$CFLAGS"
1106
  CFLAGS=
1107
  echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1108
echo "configure:1109: checking whether ${CC-cc} accepts -g" >&5
1109
if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1110
  echo $ac_n "(cached) $ac_c" 1>&6
1111
else
1112
  echo 'void f(){}' > conftest.c
1113
if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1114
  ac_cv_prog_cc_g=yes
1115
else
1116
  ac_cv_prog_cc_g=no
1117
fi
1118
rm -f conftest*
1119
 
1120
fi
1121
 
1122
echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1123
  if test "$ac_test_CFLAGS" = set; then
1124
    CFLAGS="$ac_save_CFLAGS"
1125
  elif test $ac_cv_prog_cc_g = yes; then
1126
    CFLAGS="-g -O2"
1127
  else
1128
    CFLAGS="-O2"
1129
  fi
1130
else
1131
  GCC=
1132
  test "${CFLAGS+set}" = set || CFLAGS="-g"
1133
fi
1134
 
1135
 
1136
# AC_CHECK_TOOL does AC_REQUIRE (AC_CANONICAL_BUILD).  If we don't
1137
# run it explicitly here, it will be run implicitly before
1138
# NEWLIB_CONFIGURE, which doesn't work because that means that it will
1139
# be run before AC_CANONICAL_HOST.
1140
echo $ac_n "checking build system type""... $ac_c" 1>&6
1141
echo "configure:1142: checking build system type" >&5
1142
 
1143
build_alias=$build
1144
case "$build_alias" in
1145
NONE)
1146
  case $nonopt in
1147
  NONE) build_alias=$host_alias ;;
1148
  *) build_alias=$nonopt ;;
1149
  esac ;;
1150
esac
1151
 
1152
build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1153
build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1154
build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1155
build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1156
echo "$ac_t""$build" 1>&6
1157
 
1158
 
1159
# Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
1160
set dummy ${ac_tool_prefix}as; ac_word=$2
1161
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1162
echo "configure:1163: checking for $ac_word" >&5
1163
if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
1164
  echo $ac_n "(cached) $ac_c" 1>&6
1165
else
1166
  if test -n "$AS"; then
1167
  ac_cv_prog_AS="$AS" # Let the user override the test.
1168
else
1169
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1170
  ac_dummy="$PATH"
1171
  for ac_dir in $ac_dummy; do
1172
    test -z "$ac_dir" && ac_dir=.
1173
    if test -f $ac_dir/$ac_word; then
1174
      ac_cv_prog_AS="${ac_tool_prefix}as"
1175
      break
1176
    fi
1177
  done
1178
  IFS="$ac_save_ifs"
1179
  test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="as"
1180
fi
1181
fi
1182
AS="$ac_cv_prog_AS"
1183
if test -n "$AS"; then
1184
  echo "$ac_t""$AS" 1>&6
1185
else
1186
  echo "$ac_t""no" 1>&6
1187
fi
1188
 
1189
 
1190
 
1191
# Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
1192
set dummy ${ac_tool_prefix}ar; ac_word=$2
1193
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1194
echo "configure:1195: checking for $ac_word" >&5
1195
if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1196
  echo $ac_n "(cached) $ac_c" 1>&6
1197
else
1198
  if test -n "$AR"; then
1199
  ac_cv_prog_AR="$AR" # Let the user override the test.
1200
else
1201
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1202
  ac_dummy="$PATH"
1203
  for ac_dir in $ac_dummy; do
1204
    test -z "$ac_dir" && ac_dir=.
1205
    if test -f $ac_dir/$ac_word; then
1206
      ac_cv_prog_AR="${ac_tool_prefix}ar"
1207
      break
1208
    fi
1209
  done
1210
  IFS="$ac_save_ifs"
1211
  test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
1212
fi
1213
fi
1214
AR="$ac_cv_prog_AR"
1215
if test -n "$AR"; then
1216
  echo "$ac_t""$AR" 1>&6
1217
else
1218
  echo "$ac_t""no" 1>&6
1219
fi
1220
 
1221
 
1222
 
1223
# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1224
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1225
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1226
echo "configure:1227: checking for $ac_word" >&5
1227
if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1228
  echo $ac_n "(cached) $ac_c" 1>&6
1229
else
1230
  if test -n "$RANLIB"; then
1231
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1232
else
1233
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1234
  ac_dummy="$PATH"
1235
  for ac_dir in $ac_dummy; do
1236
    test -z "$ac_dir" && ac_dir=.
1237
    if test -f $ac_dir/$ac_word; then
1238
      ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1239
      break
1240
    fi
1241
  done
1242
  IFS="$ac_save_ifs"
1243
fi
1244
fi
1245
RANLIB="$ac_cv_prog_RANLIB"
1246
if test -n "$RANLIB"; then
1247
  echo "$ac_t""$RANLIB" 1>&6
1248
else
1249
  echo "$ac_t""no" 1>&6
1250
fi
1251
 
1252
 
1253
if test -z "$ac_cv_prog_RANLIB"; then
1254
if test -n "$ac_tool_prefix"; then
1255
  # Extract the first word of "ranlib", so it can be a program name with args.
1256
set dummy ranlib; ac_word=$2
1257
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1258
echo "configure:1259: checking for $ac_word" >&5
1259
if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1260
  echo $ac_n "(cached) $ac_c" 1>&6
1261
else
1262
  if test -n "$RANLIB"; then
1263
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1264
else
1265
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1266
  ac_dummy="$PATH"
1267
  for ac_dir in $ac_dummy; do
1268
    test -z "$ac_dir" && ac_dir=.
1269
    if test -f $ac_dir/$ac_word; then
1270
      ac_cv_prog_RANLIB="ranlib"
1271
      break
1272
    fi
1273
  done
1274
  IFS="$ac_save_ifs"
1275
  test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1276
fi
1277
fi
1278
RANLIB="$ac_cv_prog_RANLIB"
1279
if test -n "$RANLIB"; then
1280
  echo "$ac_t""$RANLIB" 1>&6
1281
else
1282
  echo "$ac_t""no" 1>&6
1283
fi
1284
 
1285
else
1286
  RANLIB=":"
1287
fi
1288
fi
1289
 
1290
 
1291
# Find a good install program.  We prefer a C program (faster),
1292
# so one script is as good as another.  But avoid the broken or
1293
# incompatible versions:
1294
# SysV /etc/install, /usr/sbin/install
1295
# SunOS /usr/etc/install
1296
# IRIX /sbin/install
1297
# AIX /bin/install
1298
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1299
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1300
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1301
# ./install, which can be erroneously created by make from ./install.sh.
1302
echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1303
echo "configure:1304: checking for a BSD compatible install" >&5
1304
if test -z "$INSTALL"; then
1305
if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1306
  echo $ac_n "(cached) $ac_c" 1>&6
1307
else
1308
    IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS=":"
1309
  for ac_dir in $PATH; do
1310
    # Account for people who put trailing slashes in PATH elements.
1311
    case "$ac_dir/" in
1312
    /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1313
    *)
1314
      # OSF1 and SCO ODT 3.0 have their own names for install.
1315
      # Don't use installbsd from OSF since it installs stuff as root
1316
      # by default.
1317
      for ac_prog in ginstall scoinst install; do
1318
        if test -f $ac_dir/$ac_prog; then
1319
          if test $ac_prog = install &&
1320
            grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1321
            # AIX install.  It has an incompatible calling convention.
1322
            :
1323
          else
1324
            ac_cv_path_install="$ac_dir/$ac_prog -c"
1325
            break 2
1326
          fi
1327
        fi
1328
      done
1329
      ;;
1330
    esac
1331
  done
1332
  IFS="$ac_save_IFS"
1333
 
1334
fi
1335
  if test "${ac_cv_path_install+set}" = set; then
1336
    INSTALL="$ac_cv_path_install"
1337
  else
1338
    # As a last resort, use the slow shell script.  We don't cache a
1339
    # path for INSTALL within a source directory, because that will
1340
    # break other packages using the cache if that directory is
1341
    # removed, or if the path is relative.
1342
    INSTALL="$ac_install_sh"
1343
  fi
1344
fi
1345
echo "$ac_t""$INSTALL" 1>&6
1346
 
1347
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1348
# It thinks the first close brace ends the variable substitution.
1349
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1350
 
1351
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1352
 
1353
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1354
 
1355
 
1356
echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
1357
echo "configure:1358: checking whether to enable maintainer-specific portions of Makefiles" >&5
1358
    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1359
if test "${enable_maintainer_mode+set}" = set; then
1360
  enableval="$enable_maintainer_mode"
1361
  USE_MAINTAINER_MODE=$enableval
1362
else
1363
  USE_MAINTAINER_MODE=no
1364
fi
1365
 
1366
  echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
1367
 
1368
 
1369
if test $USE_MAINTAINER_MODE = yes; then
1370
  MAINTAINER_MODE_TRUE=
1371
  MAINTAINER_MODE_FALSE='#'
1372
else
1373
  MAINTAINER_MODE_TRUE='#'
1374
  MAINTAINER_MODE_FALSE=
1375
fi
1376
  MAINT=$MAINTAINER_MODE_TRUE
1377
 
1378
 
1379
 
1380
# We need AC_EXEEXT to keep automake happy in cygnus mode.  However,
1381
# at least currently, we never actually build a program, so we never
1382
# need to use $(EXEEXT).  Moreover, the test for EXEEXT normally
1383
# fails, because we are probably configuring with a cross compiler
1384
# which can't create executables.  So we include AC_EXEEXT to keep
1385
# automake happy, but we don't execute it, since we don't care about
1386
# the result.
1387
if false; then
1388
 
1389
 
1390
echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1391
echo "configure:1392: checking for executable suffix" >&5
1392
if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1393
  echo $ac_n "(cached) $ac_c" 1>&6
1394
else
1395
  if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
1396
  ac_cv_exeext=.exe
1397
else
1398
  rm -f conftest*
1399
  echo 'int main () { return 0; }' > conftest.$ac_ext
1400
  ac_cv_exeext=
1401
  if { (eval echo configure:1402: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1402
    for file in conftest.*; do
1403
      case $file in
1404
      *.c | *.o | *.obj | *.ilk | *.pdb) ;;
1405
      *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
1406
      esac
1407
    done
1408
  else
1409
    { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1410
  fi
1411
  rm -f conftest*
1412
  test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
1413
fi
1414
fi
1415
 
1416
EXEEXT=""
1417
test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
1418
echo "$ac_t""${ac_cv_exeext}" 1>&6
1419
ac_exeext=$EXEEXT
1420
 
1421
fi
1422
 
1423
. ${newlib_basedir}/configure.host
1424
 
1425
case ${newlib_basedir} in
1426
/* | A-Za-z:/\\*) newlib_flagbasedir=${newlib_basedir} ;;
1427
*) newlib_flagbasedir='$(top_builddir)/'${newlib_basedir} ;;
1428
esac
1429
 
1430
newlib_cflags="${newlib_cflags} -I"'$(top_builddir)'"/../targ-include -I${newlib_flagbasedir}/libc/include"
1431
case "${host}" in
1432
  *-*-cygwin*)
1433
    newlib_cflags="${newlib_cflags} -I${newlib_flagbasedir}/../winsup/cygwin/include  -I${newlib_flagbasedir}/../winsup/w32api/include"
1434
    ;;
1435
esac
1436
 
1437
newlib_cflags="${newlib_cflags} -fno-builtin"
1438
 
1439
NEWLIB_CFLAGS=${newlib_cflags}
1440
 
1441
 
1442
LDFLAGS=${ldflags}
1443
 
1444
 
1445
 
1446
 
1447
if test x${use_libtool} = xyes; then
1448
  USE_LIBTOOL_TRUE=
1449
  USE_LIBTOOL_FALSE='#'
1450
else
1451
  USE_LIBTOOL_TRUE='#'
1452
  USE_LIBTOOL_FALSE=
1453
fi
1454
 
1455
 
1456
 
1457
 
1458
 
1459
 
1460
 
1461
 
1462
 
1463
if test "${use_libtool}" = "yes"; then
1464
 
1465
# Check whether --enable-shared or --disable-shared was given.
1466
if test "${enable_shared+set}" = set; then
1467
  enableval="$enable_shared"
1468
  p=${PACKAGE-default}
1469
case "$enableval" in
1470
yes) enable_shared=yes ;;
1471
no) enable_shared=no ;;
1472
*)
1473
  enable_shared=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_shared=yes
1479
    fi
1480
  done
1481
  IFS="$ac_save_ifs"
1482
  ;;
1483
esac
1484
else
1485
  enable_shared=yes
1486
fi
1487
 
1488
# Check whether --enable-static or --disable-static was given.
1489
if test "${enable_static+set}" = set; then
1490
  enableval="$enable_static"
1491
  p=${PACKAGE-default}
1492
case "$enableval" in
1493
yes) enable_static=yes ;;
1494
no) enable_static=no ;;
1495
*)
1496
  enable_static=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_static=yes
1502
    fi
1503
  done
1504
  IFS="$ac_save_ifs"
1505
  ;;
1506
esac
1507
else
1508
  enable_static=yes
1509
fi
1510
 
1511
# Check whether --enable-fast-install or --disable-fast-install was given.
1512
if test "${enable_fast_install+set}" = set; then
1513
  enableval="$enable_fast_install"
1514
  p=${PACKAGE-default}
1515
case "$enableval" in
1516
yes) enable_fast_install=yes ;;
1517
no) enable_fast_install=no ;;
1518
*)
1519
  enable_fast_install=no
1520
  # Look at the argument we got.  We use all the common list separators.
1521
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1522
  for pkg in $enableval; do
1523
    if test "X$pkg" = "X$p"; then
1524
      enable_fast_install=yes
1525
    fi
1526
  done
1527
  IFS="$ac_save_ifs"
1528
  ;;
1529
esac
1530
else
1531
  enable_fast_install=yes
1532
fi
1533
 
1534
# Extract the first word of "ranlib", so it can be a program name with args.
1535
set dummy ranlib; ac_word=$2
1536
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1537
echo "configure:1538: checking for $ac_word" >&5
1538
if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1539
  echo $ac_n "(cached) $ac_c" 1>&6
1540
else
1541
  if test -n "$RANLIB"; then
1542
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1543
else
1544
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1545
  ac_dummy="$PATH"
1546
  for ac_dir in $ac_dummy; do
1547
    test -z "$ac_dir" && ac_dir=.
1548
    if test -f $ac_dir/$ac_word; then
1549
      ac_cv_prog_RANLIB="ranlib"
1550
      break
1551
    fi
1552
  done
1553
  IFS="$ac_save_ifs"
1554
  test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1555
fi
1556
fi
1557
RANLIB="$ac_cv_prog_RANLIB"
1558
if test -n "$RANLIB"; then
1559
  echo "$ac_t""$RANLIB" 1>&6
1560
else
1561
  echo "$ac_t""no" 1>&6
1562
fi
1563
 
1564
# Extract the first word of "gcc", so it can be a program name with args.
1565
set dummy gcc; ac_word=$2
1566
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1567
echo "configure:1568: checking for $ac_word" >&5
1568
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1569
  echo $ac_n "(cached) $ac_c" 1>&6
1570
else
1571
  if test -n "$CC"; then
1572
  ac_cv_prog_CC="$CC" # Let the user override the test.
1573
else
1574
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1575
  ac_dummy="$PATH"
1576
  for ac_dir in $ac_dummy; do
1577
    test -z "$ac_dir" && ac_dir=.
1578
    if test -f $ac_dir/$ac_word; then
1579
      ac_cv_prog_CC="gcc"
1580
      break
1581
    fi
1582
  done
1583
  IFS="$ac_save_ifs"
1584
fi
1585
fi
1586
CC="$ac_cv_prog_CC"
1587
if test -n "$CC"; then
1588
  echo "$ac_t""$CC" 1>&6
1589
else
1590
  echo "$ac_t""no" 1>&6
1591
fi
1592
 
1593
if test -z "$CC"; then
1594
  # Extract the first word of "cc", so it can be a program name with args.
1595
set dummy cc; ac_word=$2
1596
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1597
echo "configure:1598: checking for $ac_word" >&5
1598
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1599
  echo $ac_n "(cached) $ac_c" 1>&6
1600
else
1601
  if test -n "$CC"; then
1602
  ac_cv_prog_CC="$CC" # Let the user override the test.
1603
else
1604
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1605
  ac_prog_rejected=no
1606
  ac_dummy="$PATH"
1607
  for ac_dir in $ac_dummy; do
1608
    test -z "$ac_dir" && ac_dir=.
1609
    if test -f $ac_dir/$ac_word; then
1610
      if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1611
        ac_prog_rejected=yes
1612
        continue
1613
      fi
1614
      ac_cv_prog_CC="cc"
1615
      break
1616
    fi
1617
  done
1618
  IFS="$ac_save_ifs"
1619
if test $ac_prog_rejected = yes; then
1620
  # We found a bogon in the path, so make sure we never use it.
1621
  set dummy $ac_cv_prog_CC
1622
  shift
1623
  if test $# -gt 0; then
1624
    # We chose a different compiler from the bogus one.
1625
    # However, it has the same basename, so the bogon will be chosen
1626
    # first if we set CC to just the basename; use the full file name.
1627
    shift
1628
    set dummy "$ac_dir/$ac_word" "$@"
1629
    shift
1630
    ac_cv_prog_CC="$@"
1631
  fi
1632
fi
1633
fi
1634
fi
1635
CC="$ac_cv_prog_CC"
1636
if test -n "$CC"; then
1637
  echo "$ac_t""$CC" 1>&6
1638
else
1639
  echo "$ac_t""no" 1>&6
1640
fi
1641
 
1642
  if test -z "$CC"; then
1643
    case "`uname -s`" in
1644
    *win32* | *WIN32*)
1645
      # Extract the first word of "cl", so it can be a program name with args.
1646
set dummy cl; ac_word=$2
1647
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1648
echo "configure:1649: checking for $ac_word" >&5
1649
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1650
  echo $ac_n "(cached) $ac_c" 1>&6
1651
else
1652
  if test -n "$CC"; then
1653
  ac_cv_prog_CC="$CC" # Let the user override the test.
1654
else
1655
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1656
  ac_dummy="$PATH"
1657
  for ac_dir in $ac_dummy; do
1658
    test -z "$ac_dir" && ac_dir=.
1659
    if test -f $ac_dir/$ac_word; then
1660
      ac_cv_prog_CC="cl"
1661
      break
1662
    fi
1663
  done
1664
  IFS="$ac_save_ifs"
1665
fi
1666
fi
1667
CC="$ac_cv_prog_CC"
1668
if test -n "$CC"; then
1669
  echo "$ac_t""$CC" 1>&6
1670
else
1671
  echo "$ac_t""no" 1>&6
1672
fi
1673
 ;;
1674
    esac
1675
  fi
1676
  test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1677
fi
1678
 
1679
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1680
echo "configure:1681: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1681
 
1682
ac_ext=c
1683
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1684
ac_cpp='$CPP $CPPFLAGS'
1685
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1686
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1687
cross_compiling=$ac_cv_prog_cc_cross
1688
 
1689
cat > conftest.$ac_ext << EOF
1690
 
1691
#line 1692 "configure"
1692
#include "confdefs.h"
1693
 
1694
main(){return(0);}
1695
EOF
1696
if { (eval echo configure:1697: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1697
  ac_cv_prog_cc_works=yes
1698
  # If we can't run a trivial program, we are probably using a cross compiler.
1699
  if (./conftest; exit) 2>/dev/null; then
1700
    ac_cv_prog_cc_cross=no
1701
  else
1702
    ac_cv_prog_cc_cross=yes
1703
  fi
1704
else
1705
  echo "configure: failed program was:" >&5
1706
  cat conftest.$ac_ext >&5
1707
  ac_cv_prog_cc_works=no
1708
fi
1709
rm -fr conftest*
1710
ac_ext=c
1711
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1712
ac_cpp='$CPP $CPPFLAGS'
1713
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1714
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1715
cross_compiling=$ac_cv_prog_cc_cross
1716
 
1717
echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1718
if test $ac_cv_prog_cc_works = no; then
1719
  { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1720
fi
1721
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1722
echo "configure:1723: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1723
echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1724
cross_compiling=$ac_cv_prog_cc_cross
1725
 
1726
echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1727
echo "configure:1728: checking whether we are using GNU C" >&5
1728
if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1729
  echo $ac_n "(cached) $ac_c" 1>&6
1730
else
1731
  cat > conftest.c <
1732
#ifdef __GNUC__
1733
  yes;
1734
#endif
1735
EOF
1736
if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1737: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1737
  ac_cv_prog_gcc=yes
1738
else
1739
  ac_cv_prog_gcc=no
1740
fi
1741
fi
1742
 
1743
echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1744
 
1745
if test $ac_cv_prog_gcc = yes; then
1746
  GCC=yes
1747
else
1748
  GCC=
1749
fi
1750
 
1751
ac_test_CFLAGS="${CFLAGS+set}"
1752
ac_save_CFLAGS="$CFLAGS"
1753
CFLAGS=
1754
echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1755
echo "configure:1756: checking whether ${CC-cc} accepts -g" >&5
1756
if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1757
  echo $ac_n "(cached) $ac_c" 1>&6
1758
else
1759
  echo 'void f(){}' > conftest.c
1760
if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1761
  ac_cv_prog_cc_g=yes
1762
else
1763
  ac_cv_prog_cc_g=no
1764
fi
1765
rm -f conftest*
1766
 
1767
fi
1768
 
1769
echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1770
if test "$ac_test_CFLAGS" = set; then
1771
  CFLAGS="$ac_save_CFLAGS"
1772
elif test $ac_cv_prog_cc_g = yes; then
1773
  if test "$GCC" = yes; then
1774
    CFLAGS="-g -O2"
1775
  else
1776
    CFLAGS="-g"
1777
  fi
1778
else
1779
  if test "$GCC" = yes; then
1780
    CFLAGS="-O2"
1781
  else
1782
    CFLAGS=
1783
  fi
1784
fi
1785
 
1786
# Check whether --with-gnu-ld or --without-gnu-ld was given.
1787
if test "${with_gnu_ld+set}" = set; then
1788
  withval="$with_gnu_ld"
1789
  test "$withval" = no || with_gnu_ld=yes
1790
else
1791
  with_gnu_ld=no
1792
fi
1793
 
1794
ac_prog=ld
1795
if test "$ac_cv_prog_gcc" = yes; then
1796
  # Check if gcc -print-prog-name=ld gives a path.
1797
  echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1798
echo "configure:1799: checking for ld used by GCC" >&5
1799
  ac_prog=`($CC -print-prog-name=ld) 2>&5`
1800
  case "$ac_prog" in
1801
    # Accept absolute paths.
1802
    [\\/]* | [A-Za-z]:[\\/]*)
1803
      re_direlt='/[^/][^/]*/\.\./'
1804
      # Canonicalize the path of ld
1805
      ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
1806
      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
1807
        ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
1808
      done
1809
      test -z "$LD" && LD="$ac_prog"
1810
      ;;
1811
  "")
1812
    # If it fails, then pretend we aren't using GCC.
1813
    ac_prog=ld
1814
    ;;
1815
  *)
1816
    # If it is relative, then search for the first ld in PATH.
1817
    with_gnu_ld=unknown
1818
    ;;
1819
  esac
1820
elif test "$with_gnu_ld" = yes; then
1821
  echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1822
echo "configure:1823: checking for GNU ld" >&5
1823
else
1824
  echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1825
echo "configure:1826: checking for non-GNU ld" >&5
1826
fi
1827
if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
1828
  echo $ac_n "(cached) $ac_c" 1>&6
1829
else
1830
  if test -z "$LD"; then
1831
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1832
  for ac_dir in $PATH; do
1833
    test -z "$ac_dir" && ac_dir=.
1834
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
1835
      ac_cv_path_LD="$ac_dir/$ac_prog"
1836
      # Check to see if the program is GNU ld.  I'd rather use --version,
1837
      # but apparently some GNU ld's only accept -v.
1838
      # Break only if it was the GNU/non-GNU ld that we prefer.
1839
      if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1840
        test "$with_gnu_ld" != no && break
1841
      else
1842
        test "$with_gnu_ld" != yes && break
1843
      fi
1844
    fi
1845
  done
1846
  IFS="$ac_save_ifs"
1847
else
1848
  ac_cv_path_LD="$LD" # Let the user override the test with a path.
1849
fi
1850
fi
1851
 
1852
LD="$ac_cv_path_LD"
1853
if test -n "$LD"; then
1854
  echo "$ac_t""$LD" 1>&6
1855
else
1856
  echo "$ac_t""no" 1>&6
1857
fi
1858
test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1859
echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1860
echo "configure:1861: checking if the linker ($LD) is GNU ld" >&5
1861
if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
1862
  echo $ac_n "(cached) $ac_c" 1>&6
1863
else
1864
  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1865
if $LD -v 2>&1 &5; then
1866
  ac_cv_prog_gnu_ld=yes
1867
else
1868
  ac_cv_prog_gnu_ld=no
1869
fi
1870
fi
1871
 
1872
echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
1873
 
1874
 
1875
echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1876
echo "configure:1877: checking for BSD-compatible nm" >&5
1877
if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then
1878
  echo $ac_n "(cached) $ac_c" 1>&6
1879
else
1880
  if test -n "$NM"; then
1881
  # Let the user override the test.
1882
  ac_cv_path_NM="$NM"
1883
else
1884
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1885
  for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
1886
    test -z "$ac_dir" && ac_dir=.
1887
    if test -f $ac_dir/nm || test -f $ac_dir/nm$ac_exeext ; then
1888
      # Check to see if the nm accepts a BSD-compat flag.
1889
      # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1890
      #   nm: unknown option "B" ignored
1891
      if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1892
        ac_cv_path_NM="$ac_dir/nm -B"
1893
        break
1894
      elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1895
        ac_cv_path_NM="$ac_dir/nm -p"
1896
        break
1897
      else
1898
        ac_cv_path_NM=${ac_cv_path_NM="$ac_dir/nm"} # keep the first match, but
1899
        continue # so that we can try to find one that supports BSD flags
1900
      fi
1901
    fi
1902
  done
1903
  IFS="$ac_save_ifs"
1904
  test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
1905
fi
1906
fi
1907
 
1908
NM="$ac_cv_path_NM"
1909
echo "$ac_t""$NM" 1>&6
1910
 
1911
echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1912
echo "configure:1913: checking whether ln -s works" >&5
1913
if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1914
  echo $ac_n "(cached) $ac_c" 1>&6
1915
else
1916
  rm -f conftestdata
1917
if ln -s X conftestdata 2>/dev/null
1918
then
1919
  rm -f conftestdata
1920
  ac_cv_prog_LN_S="ln -s"
1921
else
1922
  ac_cv_prog_LN_S=ln
1923
fi
1924
fi
1925
LN_S="$ac_cv_prog_LN_S"
1926
if test "$ac_cv_prog_LN_S" = "ln -s"; then
1927
  echo "$ac_t""yes" 1>&6
1928
else
1929
  echo "$ac_t""no" 1>&6
1930
fi
1931
 
1932
 
1933
# Check for any special flags to pass to ltconfig.
1934
libtool_flags="--cache-file=$cache_file"
1935
test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
1936
test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
1937
test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
1938
test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
1939
test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
1940
 
1941
libtool_flags="$libtool_flags --enable-win32-dll"
1942
# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
1943
if test "${enable_libtool_lock+set}" = set; then
1944
  enableval="$enable_libtool_lock"
1945
  :
1946
fi
1947
 
1948
test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
1949
test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
1950
 
1951
# Some flags need to be propagated to the compiler or linker for good
1952
# libtool support.
1953
case "$host" in
1954
*-*-irix6*)
1955
  # Find out which ABI we are using.
1956
  echo '#line 1957 "configure"' > conftest.$ac_ext
1957
  if { (eval echo configure:1958: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1958
    case "`/usr/bin/file conftest.o`" in
1959
    *32-bit*)
1960
      LD="${LD-ld} -32"
1961
      ;;
1962
    *N32*)
1963
      LD="${LD-ld} -n32"
1964
      ;;
1965
    *64-bit*)
1966
      LD="${LD-ld} -64"
1967
      ;;
1968
    esac
1969
  fi
1970
  rm -rf conftest*
1971
  ;;
1972
 
1973
*-*-sco3.2v5*)
1974
  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
1975
  SAVE_CFLAGS="$CFLAGS"
1976
  CFLAGS="$CFLAGS -belf"
1977
  echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
1978
echo "configure:1979: checking whether the C compiler needs -belf" >&5
1979
if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
1980
  echo $ac_n "(cached) $ac_c" 1>&6
1981
else
1982
  cat > conftest.$ac_ext <
1983
#line 1984 "configure"
1984
#include "confdefs.h"
1985
 
1986
int main() {
1987
 
1988
; return 0; }
1989
EOF
1990
if { (eval echo configure:1991: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1991
  rm -rf conftest*
1992
  lt_cv_cc_needs_belf=yes
1993
else
1994
  echo "configure: failed program was:" >&5
1995
  cat conftest.$ac_ext >&5
1996
  rm -rf conftest*
1997
  lt_cv_cc_needs_belf=no
1998
fi
1999
rm -f conftest*
2000
fi
2001
 
2002
echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
2003
  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
2004
    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
2005
    CFLAGS="$SAVE_CFLAGS"
2006
  fi
2007
  ;;
2008
 
2009
*-*-cygwin* | *-*-mingw*)
2010
  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
2011
set dummy ${ac_tool_prefix}dlltool; ac_word=$2
2012
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2013
echo "configure:2014: checking for $ac_word" >&5
2014
if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then
2015
  echo $ac_n "(cached) $ac_c" 1>&6
2016
else
2017
  if test -n "$DLLTOOL"; then
2018
  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
2019
else
2020
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2021
  ac_dummy="$PATH"
2022
  for ac_dir in $ac_dummy; do
2023
    test -z "$ac_dir" && ac_dir=.
2024
    if test -f $ac_dir/$ac_word; then
2025
      ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
2026
      break
2027
    fi
2028
  done
2029
  IFS="$ac_save_ifs"
2030
fi
2031
fi
2032
DLLTOOL="$ac_cv_prog_DLLTOOL"
2033
if test -n "$DLLTOOL"; then
2034
  echo "$ac_t""$DLLTOOL" 1>&6
2035
else
2036
  echo "$ac_t""no" 1>&6
2037
fi
2038
 
2039
 
2040
if test -z "$ac_cv_prog_DLLTOOL"; then
2041
if test -n "$ac_tool_prefix"; then
2042
  # Extract the first word of "dlltool", so it can be a program name with args.
2043
set dummy dlltool; ac_word=$2
2044
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2045
echo "configure:2046: checking for $ac_word" >&5
2046
if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then
2047
  echo $ac_n "(cached) $ac_c" 1>&6
2048
else
2049
  if test -n "$DLLTOOL"; then
2050
  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
2051
else
2052
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2053
  ac_dummy="$PATH"
2054
  for ac_dir in $ac_dummy; do
2055
    test -z "$ac_dir" && ac_dir=.
2056
    if test -f $ac_dir/$ac_word; then
2057
      ac_cv_prog_DLLTOOL="dlltool"
2058
      break
2059
    fi
2060
  done
2061
  IFS="$ac_save_ifs"
2062
  test -z "$ac_cv_prog_DLLTOOL" && ac_cv_prog_DLLTOOL="false"
2063
fi
2064
fi
2065
DLLTOOL="$ac_cv_prog_DLLTOOL"
2066
if test -n "$DLLTOOL"; then
2067
  echo "$ac_t""$DLLTOOL" 1>&6
2068
else
2069
  echo "$ac_t""no" 1>&6
2070
fi
2071
 
2072
else
2073
  DLLTOOL="false"
2074
fi
2075
fi
2076
 
2077
  # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
2078
set dummy ${ac_tool_prefix}as; ac_word=$2
2079
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2080
echo "configure:2081: checking for $ac_word" >&5
2081
if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
2082
  echo $ac_n "(cached) $ac_c" 1>&6
2083
else
2084
  if test -n "$AS"; then
2085
  ac_cv_prog_AS="$AS" # Let the user override the test.
2086
else
2087
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2088
  ac_dummy="$PATH"
2089
  for ac_dir in $ac_dummy; do
2090
    test -z "$ac_dir" && ac_dir=.
2091
    if test -f $ac_dir/$ac_word; then
2092
      ac_cv_prog_AS="${ac_tool_prefix}as"
2093
      break
2094
    fi
2095
  done
2096
  IFS="$ac_save_ifs"
2097
fi
2098
fi
2099
AS="$ac_cv_prog_AS"
2100
if test -n "$AS"; then
2101
  echo "$ac_t""$AS" 1>&6
2102
else
2103
  echo "$ac_t""no" 1>&6
2104
fi
2105
 
2106
 
2107
if test -z "$ac_cv_prog_AS"; then
2108
if test -n "$ac_tool_prefix"; then
2109
  # Extract the first word of "as", so it can be a program name with args.
2110
set dummy as; ac_word=$2
2111
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2112
echo "configure:2113: checking for $ac_word" >&5
2113
if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
2114
  echo $ac_n "(cached) $ac_c" 1>&6
2115
else
2116
  if test -n "$AS"; then
2117
  ac_cv_prog_AS="$AS" # Let the user override the test.
2118
else
2119
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2120
  ac_dummy="$PATH"
2121
  for ac_dir in $ac_dummy; do
2122
    test -z "$ac_dir" && ac_dir=.
2123
    if test -f $ac_dir/$ac_word; then
2124
      ac_cv_prog_AS="as"
2125
      break
2126
    fi
2127
  done
2128
  IFS="$ac_save_ifs"
2129
  test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="false"
2130
fi
2131
fi
2132
AS="$ac_cv_prog_AS"
2133
if test -n "$AS"; then
2134
  echo "$ac_t""$AS" 1>&6
2135
else
2136
  echo "$ac_t""no" 1>&6
2137
fi
2138
 
2139
else
2140
  AS="false"
2141
fi
2142
fi
2143
 
2144
  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
2145
set dummy ${ac_tool_prefix}objdump; ac_word=$2
2146
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2147
echo "configure:2148: checking for $ac_word" >&5
2148
if eval "test \"`echo '$''{'ac_cv_prog_OBJDUMP'+set}'`\" = set"; then
2149
  echo $ac_n "(cached) $ac_c" 1>&6
2150
else
2151
  if test -n "$OBJDUMP"; then
2152
  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
2153
else
2154
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2155
  ac_dummy="$PATH"
2156
  for ac_dir in $ac_dummy; do
2157
    test -z "$ac_dir" && ac_dir=.
2158
    if test -f $ac_dir/$ac_word; then
2159
      ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
2160
      break
2161
    fi
2162
  done
2163
  IFS="$ac_save_ifs"
2164
fi
2165
fi
2166
OBJDUMP="$ac_cv_prog_OBJDUMP"
2167
if test -n "$OBJDUMP"; then
2168
  echo "$ac_t""$OBJDUMP" 1>&6
2169
else
2170
  echo "$ac_t""no" 1>&6
2171
fi
2172
 
2173
 
2174
if test -z "$ac_cv_prog_OBJDUMP"; then
2175
if test -n "$ac_tool_prefix"; then
2176
  # Extract the first word of "objdump", so it can be a program name with args.
2177
set dummy objdump; ac_word=$2
2178
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2179
echo "configure:2180: checking for $ac_word" >&5
2180
if eval "test \"`echo '$''{'ac_cv_prog_OBJDUMP'+set}'`\" = set"; then
2181
  echo $ac_n "(cached) $ac_c" 1>&6
2182
else
2183
  if test -n "$OBJDUMP"; then
2184
  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
2185
else
2186
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2187
  ac_dummy="$PATH"
2188
  for ac_dir in $ac_dummy; do
2189
    test -z "$ac_dir" && ac_dir=.
2190
    if test -f $ac_dir/$ac_word; then
2191
      ac_cv_prog_OBJDUMP="objdump"
2192
      break
2193
    fi
2194
  done
2195
  IFS="$ac_save_ifs"
2196
  test -z "$ac_cv_prog_OBJDUMP" && ac_cv_prog_OBJDUMP="false"
2197
fi
2198
fi
2199
OBJDUMP="$ac_cv_prog_OBJDUMP"
2200
if test -n "$OBJDUMP"; then
2201
  echo "$ac_t""$OBJDUMP" 1>&6
2202
else
2203
  echo "$ac_t""no" 1>&6
2204
fi
2205
 
2206
else
2207
  OBJDUMP="false"
2208
fi
2209
fi
2210
 
2211
  ;;
2212
 
2213
esac
2214
 
2215
 
2216
# Save cache, so that ltconfig can load it
2217
cat > confcache <<\EOF
2218
# This file is a shell script that caches the results of configure
2219
# tests run on this system so they can be shared between configure
2220
# scripts and configure runs.  It is not useful on other systems.
2221
# If it contains results you don't want to keep, you may remove or edit it.
2222
#
2223
# By default, configure uses ./config.cache as the cache file,
2224
# creating it if it does not exist already.  You can give configure
2225
# the --cache-file=FILE option to use a different cache file; that is
2226
# what configure does when it calls configure scripts in
2227
# subdirectories, so they share the cache.
2228
# Giving --cache-file=/dev/null disables caching, for debugging configure.
2229
# config.status only pays attention to the cache file if you give it the
2230
# --recheck option to rerun configure.
2231
#
2232
EOF
2233
# The following way of writing the cache mishandles newlines in values,
2234
# but we know of no workaround that is simple, portable, and efficient.
2235
# So, don't put newlines in cache variables' values.
2236
# Ultrix sh set writes to stderr and can't be redirected directly,
2237
# and sets the high bit in the cache file unless we assign to the vars.
2238
(set) 2>&1 |
2239
  case `(ac_space=' '; set | grep ac_space) 2>&1` in
2240
  *ac_space=\ *)
2241
    # `set' does not quote correctly, so add quotes (double-quote substitution
2242
    # turns \\\\ into \\, and sed turns \\ into \).
2243
    sed -n \
2244
      -e "s/'/'\\\\''/g" \
2245
      -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2246
    ;;
2247
  *)
2248
    # `set' quotes correctly as required by POSIX, so do not add quotes.
2249
    sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2250
    ;;
2251
  esac >> confcache
2252
if cmp -s $cache_file confcache; then
2253
  :
2254
else
2255
  if test -w $cache_file; then
2256
    echo "updating cache $cache_file"
2257
    cat confcache > $cache_file
2258
  else
2259
    echo "not updating unwritable cache $cache_file"
2260
  fi
2261
fi
2262
rm -f confcache
2263
 
2264
 
2265
# Actually configure libtool.  ac_aux_dir is where install-sh is found.
2266
CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
2267
LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2268
LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" \
2269
DLLTOOL="$DLLTOOL" AS="$AS" OBJDUMP="$OBJDUMP" \
2270
${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
2271
$libtool_flags --no-verify $ac_aux_dir/ltmain.sh $host \
2272
|| { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
2273
 
2274
# Reload cache, that may have been modified by ltconfig
2275
if test -r "$cache_file"; then
2276
  echo "loading cache $cache_file"
2277
  . $cache_file
2278
else
2279
  echo "creating cache $cache_file"
2280
  > $cache_file
2281
fi
2282
 
2283
 
2284
# This can be used to rebuild libtool when needed
2285
LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh"
2286
 
2287
# Always use our own libtool.
2288
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
2289
 
2290
# Redirect the config.log output again, so that the ltconfig log is not
2291
# clobbered by the next message.
2292
exec 5>>./config.log
2293
 
2294
fi
2295
 
2296
LIBM_MACHINE_LIB=
2297
if test -n "${machine_dir}"; then
2298
  subdirs="machine"
2299
 
2300
  if test "${use_libtool}" = "yes"; then
2301
    LIBM_MACHINE_LIB=machine/${machine_dir}/lib${machine_dir}.${aext}
2302
  else
2303
    LIBM_MACHINE_LIB=machine/lib.${aext}
2304
  fi
2305
fi
2306
 
2307
 
2308
 
2309
trap '' 1 2 15
2310
cat > confcache <<\EOF
2311
# This file is a shell script that caches the results of configure
2312
# tests run on this system so they can be shared between configure
2313
# scripts and configure runs.  It is not useful on other systems.
2314
# If it contains results you don't want to keep, you may remove or edit it.
2315
#
2316
# By default, configure uses ./config.cache as the cache file,
2317
# creating it if it does not exist already.  You can give configure
2318
# the --cache-file=FILE option to use a different cache file; that is
2319
# what configure does when it calls configure scripts in
2320
# subdirectories, so they share the cache.
2321
# Giving --cache-file=/dev/null disables caching, for debugging configure.
2322
# config.status only pays attention to the cache file if you give it the
2323
# --recheck option to rerun configure.
2324
#
2325
EOF
2326
# The following way of writing the cache mishandles newlines in values,
2327
# but we know of no workaround that is simple, portable, and efficient.
2328
# So, don't put newlines in cache variables' values.
2329
# Ultrix sh set writes to stderr and can't be redirected directly,
2330
# and sets the high bit in the cache file unless we assign to the vars.
2331
(set) 2>&1 |
2332
  case `(ac_space=' '; set | grep ac_space) 2>&1` in
2333
  *ac_space=\ *)
2334
    # `set' does not quote correctly, so add quotes (double-quote substitution
2335
    # turns \\\\ into \\, and sed turns \\ into \).
2336
    sed -n \
2337
      -e "s/'/'\\\\''/g" \
2338
      -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2339
    ;;
2340
  *)
2341
    # `set' quotes correctly as required by POSIX, so do not add quotes.
2342
    sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2343
    ;;
2344
  esac >> confcache
2345
if cmp -s $cache_file confcache; then
2346
  :
2347
else
2348
  if test -w $cache_file; then
2349
    echo "updating cache $cache_file"
2350
    cat confcache > $cache_file
2351
  else
2352
    echo "not updating unwritable cache $cache_file"
2353
  fi
2354
fi
2355
rm -f confcache
2356
 
2357
trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
2358
 
2359
test "x$prefix" = xNONE && prefix=$ac_default_prefix
2360
# Let make expand exec_prefix.
2361
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
2362
 
2363
# Any assignment to VPATH causes Sun make to only execute
2364
# the first set of double-colon rules, so remove it if not needed.
2365
# If there is a colon in the path, we need to keep it.
2366
if test "x$srcdir" = x.; then
2367
  ac_vpsub='/^[         ]*VPATH[        ]*=[^:]*$/d'
2368
fi
2369
 
2370
trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
2371
 
2372
# Transform confdefs.h into DEFS.
2373
# Protect against shell expansion while executing Makefile rules.
2374
# Protect against Makefile macro expansion.
2375
cat > conftest.defs <<\EOF
2376
s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
2377
s%[     `~#$^&*(){}\\|;'"<>?]%\\&%g
2378
s%\[%\\&%g
2379
s%\]%\\&%g
2380
s%\$%$$%g
2381
EOF
2382
DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
2383
rm -f conftest.defs
2384
 
2385
 
2386
# Without the "./", some shells look in PATH for config.status.
2387
: ${CONFIG_STATUS=./config.status}
2388
 
2389
echo creating $CONFIG_STATUS
2390
rm -f $CONFIG_STATUS
2391
cat > $CONFIG_STATUS <
2392
#! /bin/sh
2393
# Generated automatically by configure.
2394
# Run this file to recreate the current configuration.
2395
# This directory was configured as follows,
2396
# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
2397
#
2398
# $0 $ac_configure_args
2399
#
2400
# Compiler output produced by configure, useful for debugging
2401
# configure, is in ./config.log if it exists.
2402
 
2403
ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
2404
for ac_option
2405
do
2406
  case "\$ac_option" in
2407
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
2408
    echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
2409
    exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
2410
  -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
2411
    echo "$CONFIG_STATUS generated by autoconf version 2.13"
2412
    exit 0 ;;
2413
  -help | --help | --hel | --he | --h)
2414
    echo "\$ac_cs_usage"; exit 0 ;;
2415
  *) echo "\$ac_cs_usage"; exit 1 ;;
2416
  esac
2417
done
2418
 
2419
ac_given_srcdir=$srcdir
2420
ac_given_INSTALL="$INSTALL"
2421
 
2422
trap 'rm -fr `echo "Makefile math/Makefile mathfp/Makefile common/Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
2423
EOF
2424
cat >> $CONFIG_STATUS <
2425
 
2426
# Protect against being on the right side of a sed subst in config.status.
2427
sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
2428
 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
2429
$ac_vpsub
2430
$extrasub
2431
s%@SHELL@%$SHELL%g
2432
s%@CFLAGS@%$CFLAGS%g
2433
s%@CPPFLAGS@%$CPPFLAGS%g
2434
s%@CXXFLAGS@%$CXXFLAGS%g
2435
s%@FFLAGS@%$FFLAGS%g
2436
s%@DEFS@%$DEFS%g
2437
s%@LDFLAGS@%$LDFLAGS%g
2438
s%@LIBS@%$LIBS%g
2439
s%@exec_prefix@%$exec_prefix%g
2440
s%@prefix@%$prefix%g
2441
s%@program_transform_name@%$program_transform_name%g
2442
s%@bindir@%$bindir%g
2443
s%@sbindir@%$sbindir%g
2444
s%@libexecdir@%$libexecdir%g
2445
s%@datadir@%$datadir%g
2446
s%@sysconfdir@%$sysconfdir%g
2447
s%@sharedstatedir@%$sharedstatedir%g
2448
s%@localstatedir@%$localstatedir%g
2449
s%@libdir@%$libdir%g
2450
s%@includedir@%$includedir%g
2451
s%@oldincludedir@%$oldincludedir%g
2452
s%@infodir@%$infodir%g
2453
s%@mandir@%$mandir%g
2454
s%@NEWLIB_HW_FP_TRUE@%$NEWLIB_HW_FP_TRUE%g
2455
s%@NEWLIB_HW_FP_FALSE@%$NEWLIB_HW_FP_FALSE%g
2456
s%@newlib_basedir@%$newlib_basedir%g
2457
s%@host@%$host%g
2458
s%@host_alias@%$host_alias%g
2459
s%@host_cpu@%$host_cpu%g
2460
s%@host_vendor@%$host_vendor%g
2461
s%@host_os@%$host_os%g
2462
s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
2463
s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
2464
s%@INSTALL_DATA@%$INSTALL_DATA%g
2465
s%@PACKAGE@%$PACKAGE%g
2466
s%@VERSION@%$VERSION%g
2467
s%@ACLOCAL@%$ACLOCAL%g
2468
s%@AUTOCONF@%$AUTOCONF%g
2469
s%@AUTOMAKE@%$AUTOMAKE%g
2470
s%@AUTOHEADER@%$AUTOHEADER%g
2471
s%@MAKEINFO@%$MAKEINFO%g
2472
s%@SET_MAKE@%$SET_MAKE%g
2473
s%@CC@%$CC%g
2474
s%@build@%$build%g
2475
s%@build_alias@%$build_alias%g
2476
s%@build_cpu@%$build_cpu%g
2477
s%@build_vendor@%$build_vendor%g
2478
s%@build_os@%$build_os%g
2479
s%@AS@%$AS%g
2480
s%@AR@%$AR%g
2481
s%@RANLIB@%$RANLIB%g
2482
s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
2483
s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
2484
s%@MAINT@%$MAINT%g
2485
s%@EXEEXT@%$EXEEXT%g
2486
s%@NEWLIB_CFLAGS@%$NEWLIB_CFLAGS%g
2487
s%@USE_LIBTOOL_TRUE@%$USE_LIBTOOL_TRUE%g
2488
s%@USE_LIBTOOL_FALSE@%$USE_LIBTOOL_FALSE%g
2489
s%@oext@%$oext%g
2490
s%@aext@%$aext%g
2491
s%@libm_machine_dir@%$libm_machine_dir%g
2492
s%@machine_dir@%$machine_dir%g
2493
s%@sys_dir@%$sys_dir%g
2494
s%@LN_S@%$LN_S%g
2495
s%@DLLTOOL@%$DLLTOOL%g
2496
s%@OBJDUMP@%$OBJDUMP%g
2497
s%@LIBTOOL@%$LIBTOOL%g
2498
s%@subdirs@%$subdirs%g
2499
s%@LIBM_MACHINE_LIB@%$LIBM_MACHINE_LIB%g
2500
 
2501
CEOF
2502
EOF
2503
 
2504
cat >> $CONFIG_STATUS <<\EOF
2505
 
2506
# Split the substitutions into bite-sized pieces for seds with
2507
# small command number limits, like on Digital OSF/1 and HP-UX.
2508
ac_max_sed_cmds=60 # Maximum number of lines to put in a sed script.
2509
ac_file=1 # Number of current file.
2510
ac_beg=1 # First line for current file.
2511
ac_end=$ac_max_sed_cmds # Line after last line for current file.
2512
ac_more_lines=:
2513
ac_sed_cmds=""
2514
while $ac_more_lines; do
2515
  if test $ac_beg -gt 1; then
2516
    sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
2517
  else
2518
    sed "${ac_end}q" conftest.subs > conftest.s$ac_file
2519
  fi
2520
  if test ! -s conftest.s$ac_file; then
2521
    ac_more_lines=false
2522
    rm -f conftest.s$ac_file
2523
  else
2524
    if test -z "$ac_sed_cmds"; then
2525
      ac_sed_cmds="sed -f conftest.s$ac_file"
2526
    else
2527
      ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
2528
    fi
2529
    ac_file=`expr $ac_file + 1`
2530
    ac_beg=$ac_end
2531
    ac_end=`expr $ac_end + $ac_max_sed_cmds`
2532
  fi
2533
done
2534
if test -z "$ac_sed_cmds"; then
2535
  ac_sed_cmds=cat
2536
fi
2537
EOF
2538
 
2539
cat >> $CONFIG_STATUS <
2540
 
2541
CONFIG_FILES=\${CONFIG_FILES-"Makefile math/Makefile mathfp/Makefile common/Makefile"}
2542
EOF
2543
cat >> $CONFIG_STATUS <<\EOF
2544
for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
2545
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2546
  case "$ac_file" in
2547
  *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2548
       ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2549
  *) ac_file_in="${ac_file}.in" ;;
2550
  esac
2551
 
2552
  # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
2553
 
2554
  # Remove last slash and all that follows it.  Not all systems have dirname.
2555
  ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2556
  if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2557
    # The file is in a subdirectory.
2558
    test ! -d "$ac_dir" && mkdir "$ac_dir"
2559
    ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
2560
    # A "../" for each directory in $ac_dir_suffix.
2561
    ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
2562
  else
2563
    ac_dir_suffix= ac_dots=
2564
  fi
2565
 
2566
  case "$ac_given_srcdir" in
2567
  .)  srcdir=.
2568
      if test -z "$ac_dots"; then top_srcdir=.
2569
      else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
2570
  /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
2571
  *) # Relative path.
2572
    srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
2573
    top_srcdir="$ac_dots$ac_given_srcdir" ;;
2574
  esac
2575
 
2576
  case "$ac_given_INSTALL" in
2577
  [/$]*) INSTALL="$ac_given_INSTALL" ;;
2578
  *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
2579
  esac
2580
 
2581
  echo creating "$ac_file"
2582
  rm -f "$ac_file"
2583
  configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
2584
  case "$ac_file" in
2585
  *Makefile*) ac_comsub="1i\\
2586
# $configure_input" ;;
2587
  *) ac_comsub= ;;
2588
  esac
2589
 
2590
  ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2591
  sed -e "$ac_comsub
2592
s%@configure_input@%$configure_input%g
2593
s%@srcdir@%$srcdir%g
2594
s%@top_srcdir@%$top_srcdir%g
2595
s%@INSTALL@%$INSTALL%g
2596
" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
2597
fi; done
2598
rm -f conftest.s*
2599
 
2600
EOF
2601
cat >> $CONFIG_STATUS <
2602
 
2603
EOF
2604
cat >> $CONFIG_STATUS <<\EOF
2605
 
2606
exit 0
2607
EOF
2608
chmod +x $CONFIG_STATUS
2609
rm -fr confdefs* $ac_clean_files
2610
test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
2611
 
2612
if test "$no_recursion" != yes; then
2613
 
2614
  # Remove --cache-file and --srcdir arguments so they do not pile up.
2615
  ac_sub_configure_args=
2616
  ac_prev=
2617
  for ac_arg in $ac_configure_args; do
2618
    if test -n "$ac_prev"; then
2619
      ac_prev=
2620
      continue
2621
    fi
2622
    case "$ac_arg" in
2623
    -cache-file | --cache-file | --cache-fil | --cache-fi \
2624
    | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
2625
      ac_prev=cache_file ;;
2626
    -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
2627
    | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
2628
      ;;
2629
    -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
2630
      ac_prev=srcdir ;;
2631
    -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
2632
      ;;
2633
    *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
2634
    esac
2635
  done
2636
 
2637
  for ac_config_dir in machine; do
2638
 
2639
    # Do not complain, so a configure script can configure whichever
2640
    # parts of a large source tree are present.
2641
    if test ! -d $srcdir/$ac_config_dir; then
2642
      continue
2643
    fi
2644
 
2645
    echo configuring in $ac_config_dir
2646
 
2647
    case "$srcdir" in
2648
    .) ;;
2649
    *)
2650
      if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
2651
      else
2652
        { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
2653
      fi
2654
      ;;
2655
    esac
2656
 
2657
    ac_popdir=`pwd`
2658
    cd $ac_config_dir
2659
 
2660
      # A "../" for each directory in /$ac_config_dir.
2661
      ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
2662
 
2663
    case "$srcdir" in
2664
    .) # No --srcdir option.  We are building in place.
2665
      ac_sub_srcdir=$srcdir ;;
2666
    /*) # Absolute path.
2667
      ac_sub_srcdir=$srcdir/$ac_config_dir ;;
2668
    *) # Relative path.
2669
      ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
2670
    esac
2671
 
2672
    # Check for guested configure; otherwise get Cygnus style configure.
2673
    if test -f $ac_sub_srcdir/configure; then
2674
      ac_sub_configure=$ac_sub_srcdir/configure
2675
    elif test -f $ac_sub_srcdir/configure.in; then
2676
      ac_sub_configure=$ac_configure
2677
    else
2678
      echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
2679
      ac_sub_configure=
2680
    fi
2681
 
2682
    # The recursion is here.
2683
    if test -n "$ac_sub_configure"; then
2684
 
2685
      # Make the cache file name correct relative to the subdirectory.
2686
      case "$cache_file" in
2687
      /*) ac_sub_cache_file=$cache_file ;;
2688
      *) # Relative path.
2689
        ac_sub_cache_file="$ac_dots$cache_file" ;;
2690
      esac
2691
  case "$ac_given_INSTALL" in
2692
        [/$]*) INSTALL="$ac_given_INSTALL" ;;
2693
        *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
2694
        esac
2695
 
2696
      echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
2697
      # The eval makes quoting arguments work.
2698
      if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
2699
      then :
2700
      else
2701
        { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
2702
      fi
2703
    fi
2704
 
2705
    cd $ac_popdir
2706
  done
2707
fi
2708
 

powered by: WebSVN 2.1.0

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