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

Subversion Repositories or1k

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

Details | Compare with Previous | View Log

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

powered by: WebSVN 2.1.0

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