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

Subversion Repositories or1k

[/] [or1k/] [trunk/] [insight/] [sim/] [m32r/] [configure] - Blame information for rev 1765

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 578 markom
#! /bin/sh
2
 
3
 
4
 
5
 
6
 
7
 
8
 
9
 
10
 
11
 
12
 
13
 
14
 
15
 
16
 
17
 
18
 
19
 
20
 
21
 
22
 
23
 
24
 
25
 
26
 
27
 
28
 
29
 
30
 
31
 
32
 
33
 
34
 
35
 
36
 
37
 
38
 
39
 
40
 
41
 
42
 
43
 
44
 
45
sim_inline="-DDEFAULT_INLINE=0"
46
 
47
 
48
 
49
 
50
 
51
 
52
 
53
 
54
 
55
 
56
 
57
 
58
 
59
 
60
 
61
 
62
 
63
 
64
 
65
 
66
 
67
 
68
 
69
 
70
 
71
 
72
 
73
 
74
 
75
 
76
 
77
 
78
 
79
 
80
 
81
 
82
# This file is derived from `gettext.m4'.  The difference is that the
83
# included macros assume Cygnus-style source and build trees.
84
 
85
# Macro to add for using GNU gettext.
86
# Ulrich Drepper , 1995.
87
#
88
# This file file be copied and used freely without restrictions.  It can
89
# be used in projects which are not available under the GNU Public License
90
# but which still want to provide support for the GNU gettext functionality.
91
# Please note that the actual code is *not* freely available.
92
 
93
# serial 3
94
 
95
 
96
 
97
 
98
 
99
# Search path for a program which passes the given test.
100
# Ulrich Drepper , 1996.
101
#
102
# This file file be copied and used freely without restrictions.  It can
103
# be used in projects which are not available under the GNU Public License
104
# but which still want to provide support for the GNU gettext functionality.
105
# Please note that the actual code is *not* freely available.
106
 
107
# serial 1
108
 
109
 
110
 
111
# Check whether LC_MESSAGES is available in .
112
# Ulrich Drepper , 1995.
113
#
114
# This file file be copied and used freely without restrictions.  It can
115
# be used in projects which are not available under the GNU Public License
116
# but which still want to provide support for the GNU gettext functionality.
117
# Please note that the actual code is *not* freely available.
118
 
119
# serial 1
120
 
121
 
122
 
123
 
124
 
125
 
126
# Guess values for system-dependent variables and create Makefiles.
127
# Generated automatically using autoconf version 2.13
128
# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
129
#
130
# This configure script is free software; the Free Software Foundation
131
# gives unlimited permission to copy, distribute and modify it.
132
 
133
# Defaults:
134
ac_help=
135
ac_default_prefix=/usr/local
136
# Any additions from configure.in:
137
ac_help="$ac_help
138
  --disable-nls           do not use Native Language Support"
139
ac_help="$ac_help
140
  --with-included-gettext use the GNU gettext library included here"
141
ac_help="$ac_help
142
  --enable-maintainer-mode              Enable developer functionality."
143
ac_help="$ac_help
144
  --enable-sim-bswap                    Use Host specific BSWAP instruction."
145
ac_help="$ac_help
146
  --enable-sim-cflags=opts              Extra CFLAGS for use in building simulator"
147
ac_help="$ac_help
148
  --enable-sim-debug=opts               Enable debugging flags"
149
ac_help="$ac_help
150
  --enable-sim-stdio                    Specify whether to use stdio for console input/output."
151
ac_help="$ac_help
152
  --enable-sim-trace=opts               Enable tracing flags"
153
ac_help="$ac_help
154
  --enable-sim-profile=opts             Enable profiling flags"
155
ac_help="$ac_help
156
  --enable-sim-endian=endian            Specify target byte endian orientation."
157
ac_help="$ac_help
158
  --enable-sim-alignment=align          Specify strict,  nonstrict or forced alignment of memory accesses."
159
ac_help="$ac_help
160
  --enable-sim-hostendian=end           Specify host byte endian orientation."
161
ac_help="$ac_help
162
  --enable-sim-scache=size              Specify simulator execution cache size."
163
ac_help="$ac_help
164
  --enable-sim-default-model=model      Specify default model to simulate."
165
ac_help="$ac_help
166
  --enable-sim-environment=environment  Specify mixed, user, virtual or operating environment."
167
ac_help="$ac_help
168
  --enable-sim-inline=inlines           Specify which functions should be inlined."
169
ac_help="$ac_help
170
  --enable-cgen-maint[=DIR]    build cgen generated files"
171
 
172
# Initialize some variables set by options.
173
# The variables have the same names as the options, with
174
# dashes changed to underlines.
175
build=NONE
176
cache_file=./config.cache
177
exec_prefix=NONE
178
host=NONE
179
no_create=
180
nonopt=NONE
181
no_recursion=
182
prefix=NONE
183
program_prefix=NONE
184
program_suffix=NONE
185
program_transform_name=s,x,x,
186
silent=
187
site=
188
sitefile=
189
srcdir=
190
target=NONE
191
verbose=
192
x_includes=NONE
193
x_libraries=NONE
194
bindir='${exec_prefix}/bin'
195
sbindir='${exec_prefix}/sbin'
196
libexecdir='${exec_prefix}/libexec'
197
datadir='${prefix}/share'
198
sysconfdir='${prefix}/etc'
199
sharedstatedir='${prefix}/com'
200
localstatedir='${prefix}/var'
201
libdir='${exec_prefix}/lib'
202
includedir='${prefix}/include'
203
oldincludedir='/usr/include'
204
infodir='${prefix}/info'
205
mandir='${prefix}/man'
206
 
207
# Initialize some other variables.
208
subdirs=
209
MFLAGS= MAKEFLAGS=
210
SHELL=${CONFIG_SHELL-/bin/sh}
211
# Maximum number of lines to put in a shell here document.
212
ac_max_here_lines=12
213
 
214
ac_prev=
215
for ac_option
216
do
217
 
218
  # If the previous option needs an argument, assign it.
219
  if test -n "$ac_prev"; then
220
    eval "$ac_prev=\$ac_option"
221
    ac_prev=
222
    continue
223
  fi
224
 
225
  case "$ac_option" in
226
  -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
227
  *) ac_optarg= ;;
228
  esac
229
 
230
  # Accept the important Cygnus configure options, so we can diagnose typos.
231
 
232
  case "$ac_option" in
233
 
234
  -bindir | --bindir | --bindi | --bind | --bin | --bi)
235
    ac_prev=bindir ;;
236
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
237
    bindir="$ac_optarg" ;;
238
 
239
  -build | --build | --buil | --bui | --bu)
240
    ac_prev=build ;;
241
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
242
    build="$ac_optarg" ;;
243
 
244
  -cache-file | --cache-file | --cache-fil | --cache-fi \
245
  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
246
    ac_prev=cache_file ;;
247
  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
248
  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
249
    cache_file="$ac_optarg" ;;
250
 
251
  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
252
    ac_prev=datadir ;;
253
  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
254
  | --da=*)
255
    datadir="$ac_optarg" ;;
256
 
257
  -disable-* | --disable-*)
258
    ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
259
    # Reject names that are not valid shell variable names.
260
    if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
261
      { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
262
    fi
263
    ac_feature=`echo $ac_feature| sed 's/-/_/g'`
264
    eval "enable_${ac_feature}=no" ;;
265
 
266
  -enable-* | --enable-*)
267
    ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
268
    # Reject names that are not valid shell variable names.
269
    if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
270
      { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
271
    fi
272
    ac_feature=`echo $ac_feature| sed 's/-/_/g'`
273
    case "$ac_option" in
274
      *=*) ;;
275
      *) ac_optarg=yes ;;
276
    esac
277
    eval "enable_${ac_feature}='$ac_optarg'" ;;
278
 
279
  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
280
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
281
  | --exec | --exe | --ex)
282
    ac_prev=exec_prefix ;;
283
  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
284
  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
285
  | --exec=* | --exe=* | --ex=*)
286
    exec_prefix="$ac_optarg" ;;
287
 
288
  -gas | --gas | --ga | --g)
289
    # Obsolete; use --with-gas.
290
    with_gas=yes ;;
291
 
292
  -help | --help | --hel | --he)
293
    # Omit some internal or obsolete options to make the list less imposing.
294
    # This message is too long to be a string in the A/UX 3.1 sh.
295
    cat << EOF
296
Usage: configure [options] [host]
297
Options: [defaults in brackets after descriptions]
298
Configuration:
299
  --cache-file=FILE       cache test results in FILE
300
  --help                  print this message
301
  --no-create             do not create output files
302
  --quiet, --silent       do not print \`checking...' messages
303
  --site-file=FILE        use FILE as the site file
304
  --version               print the version of autoconf that created configure
305
Directory and file names:
306
  --prefix=PREFIX         install architecture-independent files in PREFIX
307
                          [$ac_default_prefix]
308
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
309
                          [same as prefix]
310
  --bindir=DIR            user executables in DIR [EPREFIX/bin]
311
  --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
312
  --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
313
  --datadir=DIR           read-only architecture-independent data in DIR
314
                          [PREFIX/share]
315
  --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
316
  --sharedstatedir=DIR    modifiable architecture-independent data in DIR
317
                          [PREFIX/com]
318
  --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
319
  --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
320
  --includedir=DIR        C header files in DIR [PREFIX/include]
321
  --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
322
  --infodir=DIR           info documentation in DIR [PREFIX/info]
323
  --mandir=DIR            man documentation in DIR [PREFIX/man]
324
  --srcdir=DIR            find the sources in DIR [configure dir or ..]
325
  --program-prefix=PREFIX prepend PREFIX to installed program names
326
  --program-suffix=SUFFIX append SUFFIX to installed program names
327
  --program-transform-name=PROGRAM
328
                          run sed PROGRAM on installed program names
329
EOF
330
    cat << EOF
331
Host type:
332
  --build=BUILD           configure for building on BUILD [BUILD=HOST]
333
  --host=HOST             configure for HOST [guessed]
334
  --target=TARGET         configure for TARGET [TARGET=HOST]
335
Features and packages:
336
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
337
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
338
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
339
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
340
  --x-includes=DIR        X include files are in DIR
341
  --x-libraries=DIR       X library files are in DIR
342
EOF
343
    if test -n "$ac_help"; then
344
      echo "--enable and --with options recognized:$ac_help"
345
    fi
346
    exit 0 ;;
347
 
348
  -host | --host | --hos | --ho)
349
    ac_prev=host ;;
350
  -host=* | --host=* | --hos=* | --ho=*)
351
    host="$ac_optarg" ;;
352
 
353
  -includedir | --includedir | --includedi | --included | --include \
354
  | --includ | --inclu | --incl | --inc)
355
    ac_prev=includedir ;;
356
  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
357
  | --includ=* | --inclu=* | --incl=* | --inc=*)
358
    includedir="$ac_optarg" ;;
359
 
360
  -infodir | --infodir | --infodi | --infod | --info | --inf)
361
    ac_prev=infodir ;;
362
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
363
    infodir="$ac_optarg" ;;
364
 
365
  -libdir | --libdir | --libdi | --libd)
366
    ac_prev=libdir ;;
367
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
368
    libdir="$ac_optarg" ;;
369
 
370
  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
371
  | --libexe | --libex | --libe)
372
    ac_prev=libexecdir ;;
373
  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
374
  | --libexe=* | --libex=* | --libe=*)
375
    libexecdir="$ac_optarg" ;;
376
 
377
  -localstatedir | --localstatedir | --localstatedi | --localstated \
378
  | --localstate | --localstat | --localsta | --localst \
379
  | --locals | --local | --loca | --loc | --lo)
380
    ac_prev=localstatedir ;;
381
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
382
  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
383
  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
384
    localstatedir="$ac_optarg" ;;
385
 
386
  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
387
    ac_prev=mandir ;;
388
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
389
    mandir="$ac_optarg" ;;
390
 
391
  -nfp | --nfp | --nf)
392
    # Obsolete; use --without-fp.
393
    with_fp=no ;;
394
 
395
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
396
  | --no-cr | --no-c)
397
    no_create=yes ;;
398
 
399
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
400
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
401
    no_recursion=yes ;;
402
 
403
  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
404
  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
405
  | --oldin | --oldi | --old | --ol | --o)
406
    ac_prev=oldincludedir ;;
407
  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
408
  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
409
  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
410
    oldincludedir="$ac_optarg" ;;
411
 
412
  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
413
    ac_prev=prefix ;;
414
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
415
    prefix="$ac_optarg" ;;
416
 
417
  -program-prefix | --program-prefix | --program-prefi | --program-pref \
418
  | --program-pre | --program-pr | --program-p)
419
    ac_prev=program_prefix ;;
420
  -program-prefix=* | --program-prefix=* | --program-prefi=* \
421
  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
422
    program_prefix="$ac_optarg" ;;
423
 
424
  -program-suffix | --program-suffix | --program-suffi | --program-suff \
425
  | --program-suf | --program-su | --program-s)
426
    ac_prev=program_suffix ;;
427
  -program-suffix=* | --program-suffix=* | --program-suffi=* \
428
  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
429
    program_suffix="$ac_optarg" ;;
430
 
431
  -program-transform-name | --program-transform-name \
432
  | --program-transform-nam | --program-transform-na \
433
  | --program-transform-n | --program-transform- \
434
  | --program-transform | --program-transfor \
435
  | --program-transfo | --program-transf \
436
  | --program-trans | --program-tran \
437
  | --progr-tra | --program-tr | --program-t)
438
    ac_prev=program_transform_name ;;
439
  -program-transform-name=* | --program-transform-name=* \
440
  | --program-transform-nam=* | --program-transform-na=* \
441
  | --program-transform-n=* | --program-transform-=* \
442
  | --program-transform=* | --program-transfor=* \
443
  | --program-transfo=* | --program-transf=* \
444
  | --program-trans=* | --program-tran=* \
445
  | --progr-tra=* | --program-tr=* | --program-t=*)
446
    program_transform_name="$ac_optarg" ;;
447
 
448
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
449
  | -silent | --silent | --silen | --sile | --sil)
450
    silent=yes ;;
451
 
452
  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
453
    ac_prev=sbindir ;;
454
  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
455
  | --sbi=* | --sb=*)
456
    sbindir="$ac_optarg" ;;
457
 
458
  -sharedstatedir | --sharedstatedir | --sharedstatedi \
459
  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
460
  | --sharedst | --shareds | --shared | --share | --shar \
461
  | --sha | --sh)
462
    ac_prev=sharedstatedir ;;
463
  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
464
  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
465
  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
466
  | --sha=* | --sh=*)
467
    sharedstatedir="$ac_optarg" ;;
468
 
469
  -site | --site | --sit)
470
    ac_prev=site ;;
471
  -site=* | --site=* | --sit=*)
472
    site="$ac_optarg" ;;
473
 
474
  -site-file | --site-file | --site-fil | --site-fi | --site-f)
475
    ac_prev=sitefile ;;
476
  -site-file=* | --site-file=* | --site-fil=* | --site-fi=* | --site-f=*)
477
    sitefile="$ac_optarg" ;;
478
 
479
  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
480
    ac_prev=srcdir ;;
481
  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
482
    srcdir="$ac_optarg" ;;
483
 
484
  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
485
  | --syscon | --sysco | --sysc | --sys | --sy)
486
    ac_prev=sysconfdir ;;
487
  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
488
  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
489
    sysconfdir="$ac_optarg" ;;
490
 
491
  -target | --target | --targe | --targ | --tar | --ta | --t)
492
    ac_prev=target ;;
493
  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
494
    target="$ac_optarg" ;;
495
 
496
  -v | -verbose | --verbose | --verbos | --verbo | --verb)
497
    verbose=yes ;;
498
 
499
  -version | --version | --versio | --versi | --vers)
500
    echo "configure generated by autoconf version 2.13"
501
    exit 0 ;;
502
 
503
  -with-* | --with-*)
504
    ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
505
    # Reject names that are not valid shell variable names.
506
    if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
507
      { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
508
    fi
509
    ac_package=`echo $ac_package| sed 's/-/_/g'`
510
    case "$ac_option" in
511
      *=*) ;;
512
      *) ac_optarg=yes ;;
513
    esac
514
    eval "with_${ac_package}='$ac_optarg'" ;;
515
 
516
  -without-* | --without-*)
517
    ac_package=`echo $ac_option|sed -e 's/-*without-//'`
518
    # Reject names that are not valid shell variable names.
519
    if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
520
      { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
521
    fi
522
    ac_package=`echo $ac_package| sed 's/-/_/g'`
523
    eval "with_${ac_package}=no" ;;
524
 
525
  --x)
526
    # Obsolete; use --with-x.
527
    with_x=yes ;;
528
 
529
  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
530
  | --x-incl | --x-inc | --x-in | --x-i)
531
    ac_prev=x_includes ;;
532
  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
533
  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
534
    x_includes="$ac_optarg" ;;
535
 
536
  -x-libraries | --x-libraries | --x-librarie | --x-librari \
537
  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
538
    ac_prev=x_libraries ;;
539
  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
540
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
541
    x_libraries="$ac_optarg" ;;
542
 
543
  -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
544
    ;;
545
 
546
  *)
547
    if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
548
      echo "configure: warning: $ac_option: invalid host type" 1>&2
549
    fi
550
    if test "x$nonopt" != xNONE; then
551
      { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
552
    fi
553
    nonopt="$ac_option"
554
    ;;
555
 
556
  esac
557
done
558
 
559
if test -n "$ac_prev"; then
560
  { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
561
fi
562
 
563
trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
564
 
565
# File descriptor usage:
566
# 0 standard input
567
# 1 file creation
568
# 2 errors and warnings
569
# 3 some systems may open it to /dev/tty
570
# 4 used on the Kubota Titan
571
# 6 checking for... messages and results
572
# 5 compiler messages saved in config.log
573
if test "$silent" = yes; then
574
  exec 6>/dev/null
575
else
576
  exec 6>&1
577
fi
578
exec 5>./config.log
579
 
580
echo "\
581
This file contains any messages produced by compilers while
582
running configure, to aid debugging if configure makes a mistake.
583
" 1>&5
584
 
585
# Strip out --no-create and --no-recursion so they do not pile up.
586
# Also quote any args containing shell metacharacters.
587
ac_configure_args=
588
for ac_arg
589
do
590
  case "$ac_arg" in
591
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
592
  | --no-cr | --no-c) ;;
593
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
594
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
595
  *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
596
  ac_configure_args="$ac_configure_args '$ac_arg'" ;;
597
  *) ac_configure_args="$ac_configure_args $ac_arg" ;;
598
  esac
599
done
600
 
601
# NLS nuisances.
602
# Only set these to C if already set.  These must not be set unconditionally
603
# because not all systems understand e.g. LANG=C (notably SCO).
604
# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
605
# Non-C LC_CTYPE values break the ctype check.
606
if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
607
if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
608
if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
609
if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
610
 
611
# confdefs.h avoids OS command line length limits that DEFS can exceed.
612
rm -rf conftest* confdefs.h
613
# AIX cpp loses on an empty file, so make sure it contains at least a newline.
614
echo > confdefs.h
615
 
616
# A filename unique to this package, relative to the directory that
617
# configure is in, which we can look for to find out if srcdir is correct.
618
ac_unique_file=Makefile.in
619
 
620
# Find the source files, if location was not specified.
621
if test -z "$srcdir"; then
622
  ac_srcdir_defaulted=yes
623
  # Try the directory containing this script, then its parent.
624
  ac_prog=$0
625
  ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
626
  test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
627
  srcdir=$ac_confdir
628
  if test ! -r $srcdir/$ac_unique_file; then
629
    srcdir=..
630
  fi
631
else
632
  ac_srcdir_defaulted=no
633
fi
634
if test ! -r $srcdir/$ac_unique_file; then
635
  if test "$ac_srcdir_defaulted" = yes; then
636
    { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
637
  else
638
    { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
639
  fi
640
fi
641
srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
642
 
643
# Prefer explicitly selected file to automatically selected ones.
644
if test -z "$sitefile"; then
645
  if test -z "$CONFIG_SITE"; then
646
    if test "x$prefix" != xNONE; then
647
      CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
648
    else
649
      CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
650
    fi
651
  fi
652
else
653
  CONFIG_SITE="$sitefile"
654
fi
655
for ac_site_file in $CONFIG_SITE; do
656
  if test -r "$ac_site_file"; then
657
    echo "loading site script $ac_site_file"
658
    . "$ac_site_file"
659
  fi
660
done
661
 
662
if test -r "$cache_file"; then
663
  echo "loading cache $cache_file"
664
  . $cache_file
665
else
666
  echo "creating cache $cache_file"
667
  > $cache_file
668
fi
669
 
670
ac_ext=c
671
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
672
ac_cpp='$CPP $CPPFLAGS'
673
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
674
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
675
cross_compiling=$ac_cv_prog_cc_cross
676
 
677
ac_exeext=
678
ac_objext=o
679
if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
680
  # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
681
  if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
682
    ac_n= ac_c='
683
' ac_t='        '
684
  else
685
    ac_n=-n ac_c= ac_t=
686
  fi
687
else
688
  ac_n= ac_c='\c' ac_t=
689
fi
690
 
691
 
692
 
693
echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
694
echo "configure:695: checking how to run the C preprocessor" >&5
695
# On Suns, sometimes $CPP names a directory.
696
if test -n "$CPP" && test -d "$CPP"; then
697
  CPP=
698
fi
699
if test -z "$CPP"; then
700
if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
701
  echo $ac_n "(cached) $ac_c" 1>&6
702
else
703
    # This must be in double quotes, not single quotes, because CPP may get
704
  # substituted into the Makefile and "${CC-cc}" will confuse make.
705
  CPP="${CC-cc} -E"
706
  # On the NeXT, cc -E runs the code through the compiler's parser,
707
  # not just through cpp.
708
  cat > conftest.$ac_ext <
709
#line 710 "configure"
710
#include "confdefs.h"
711
#include 
712
Syntax Error
713
EOF
714
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
715
{ (eval echo configure:716: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
716
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
717
if test -z "$ac_err"; then
718
  :
719
else
720
  echo "$ac_err" >&5
721
  echo "configure: failed program was:" >&5
722
  cat conftest.$ac_ext >&5
723
  rm -rf conftest*
724
  CPP="${CC-cc} -E -traditional-cpp"
725
  cat > conftest.$ac_ext <
726
#line 727 "configure"
727
#include "confdefs.h"
728
#include 
729
Syntax Error
730
EOF
731
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
732
{ (eval echo configure:733: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
733
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
734
if test -z "$ac_err"; then
735
  :
736
else
737
  echo "$ac_err" >&5
738
  echo "configure: failed program was:" >&5
739
  cat conftest.$ac_ext >&5
740
  rm -rf conftest*
741
  CPP="${CC-cc} -nologo -E"
742
  cat > conftest.$ac_ext <
743
#line 744 "configure"
744
#include "confdefs.h"
745
#include 
746
Syntax Error
747
EOF
748
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
749
{ (eval echo configure:750: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
750
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
751
if test -z "$ac_err"; then
752
  :
753
else
754
  echo "$ac_err" >&5
755
  echo "configure: failed program was:" >&5
756
  cat conftest.$ac_ext >&5
757
  rm -rf conftest*
758
  CPP=/lib/cpp
759
fi
760
rm -f conftest*
761
fi
762
rm -f conftest*
763
fi
764
rm -f conftest*
765
  ac_cv_prog_CPP="$CPP"
766
fi
767
  CPP="$ac_cv_prog_CPP"
768
else
769
  ac_cv_prog_CPP="$CPP"
770
fi
771
echo "$ac_t""$CPP" 1>&6
772
 
773
echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
774
echo "configure:775: checking whether ${MAKE-make} sets \${MAKE}" >&5
775
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
776
if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
777
  echo $ac_n "(cached) $ac_c" 1>&6
778
else
779
  cat > conftestmake <<\EOF
780
all:
781
        @echo 'ac_maketemp="${MAKE}"'
782
EOF
783
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
784
eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
785
if test -n "$ac_maketemp"; then
786
  eval ac_cv_prog_make_${ac_make}_set=yes
787
else
788
  eval ac_cv_prog_make_${ac_make}_set=no
789
fi
790
rm -f conftestmake
791
fi
792
if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
793
  echo "$ac_t""yes" 1>&6
794
  SET_MAKE=
795
else
796
  echo "$ac_t""no" 1>&6
797
  SET_MAKE="MAKE=${MAKE-make}"
798
fi
799
 
800
echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
801
echo "configure:802: checking for POSIXized ISC" >&5
802
if test -d /etc/conf/kconfig.d &&
803
  grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
804
then
805
  echo "$ac_t""yes" 1>&6
806
  ISC=yes # If later tests want to check for ISC.
807
  cat >> confdefs.h <<\EOF
808
#define _POSIX_SOURCE 1
809
EOF
810
 
811
  if test "$GCC" = yes; then
812
    CC="$CC -posix"
813
  else
814
    CC="$CC -Xp"
815
  fi
816
else
817
  echo "$ac_t""no" 1>&6
818
  ISC=
819
fi
820
 
821
echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
822
echo "configure:823: checking for ANSI C header files" >&5
823
if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
824
  echo $ac_n "(cached) $ac_c" 1>&6
825
else
826
  cat > conftest.$ac_ext <
827
#line 828 "configure"
828
#include "confdefs.h"
829
#include 
830
#include 
831
#include 
832
#include 
833
EOF
834
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
835
{ (eval echo configure:836: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
836
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
837
if test -z "$ac_err"; then
838
  rm -rf conftest*
839
  ac_cv_header_stdc=yes
840
else
841
  echo "$ac_err" >&5
842
  echo "configure: failed program was:" >&5
843
  cat conftest.$ac_ext >&5
844
  rm -rf conftest*
845
  ac_cv_header_stdc=no
846
fi
847
rm -f conftest*
848
 
849
if test $ac_cv_header_stdc = yes; then
850
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
851
cat > conftest.$ac_ext <
852
#line 853 "configure"
853
#include "confdefs.h"
854
#include 
855
EOF
856
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
857
  egrep "memchr" >/dev/null 2>&1; then
858
  :
859
else
860
  rm -rf conftest*
861
  ac_cv_header_stdc=no
862
fi
863
rm -f conftest*
864
 
865
fi
866
 
867
if test $ac_cv_header_stdc = yes; then
868
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
869
cat > conftest.$ac_ext <
870
#line 871 "configure"
871
#include "confdefs.h"
872
#include 
873
EOF
874
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
875
  egrep "free" >/dev/null 2>&1; then
876
  :
877
else
878
  rm -rf conftest*
879
  ac_cv_header_stdc=no
880
fi
881
rm -f conftest*
882
 
883
fi
884
 
885
if test $ac_cv_header_stdc = yes; then
886
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
887
if test "$cross_compiling" = yes; then
888
  :
889
else
890
  cat > conftest.$ac_ext <
891
#line 892 "configure"
892
#include "confdefs.h"
893
#include 
894
#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
895
#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
896
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
897
int main () { int i; for (i = 0; i < 256; i++)
898
if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
899
exit (0); }
900
 
901
EOF
902
if { (eval echo configure:903: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
903
then
904
  :
905
else
906
  echo "configure: failed program was:" >&5
907
  cat conftest.$ac_ext >&5
908
  rm -fr conftest*
909
  ac_cv_header_stdc=no
910
fi
911
rm -fr conftest*
912
fi
913
 
914
fi
915
fi
916
 
917
echo "$ac_t""$ac_cv_header_stdc" 1>&6
918
if test $ac_cv_header_stdc = yes; then
919
  cat >> confdefs.h <<\EOF
920
#define STDC_HEADERS 1
921
EOF
922
 
923
fi
924
 
925
echo $ac_n "checking for working const""... $ac_c" 1>&6
926
echo "configure:927: checking for working const" >&5
927
if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
928
  echo $ac_n "(cached) $ac_c" 1>&6
929
else
930
  cat > conftest.$ac_ext <
931
#line 932 "configure"
932
#include "confdefs.h"
933
 
934
int main() {
935
 
936
/* Ultrix mips cc rejects this.  */
937
typedef int charset[2]; const charset x;
938
/* SunOS 4.1.1 cc rejects this.  */
939
char const *const *ccp;
940
char **p;
941
/* NEC SVR4.0.2 mips cc rejects this.  */
942
struct point {int x, y;};
943
static struct point const zero = {0,0};
944
/* AIX XL C 1.02.0.0 rejects this.
945
   It does not let you subtract one const X* pointer from another in an arm
946
   of an if-expression whose if-part is not a constant expression */
947
const char *g = "string";
948
ccp = &g + (g ? g-g : 0);
949
/* HPUX 7.0 cc rejects these. */
950
++ccp;
951
p = (char**) ccp;
952
ccp = (char const *const *) p;
953
{ /* SCO 3.2v4 cc rejects this.  */
954
  char *t;
955
  char const *s = 0 ? (char *) 0 : (char const *) 0;
956
 
957
  *t++ = 0;
958
}
959
{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
960
  int x[] = {25, 17};
961
  const int *foo = &x[0];
962
  ++foo;
963
}
964
{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
965
  typedef const int *iptr;
966
  iptr p = 0;
967
  ++p;
968
}
969
{ /* AIX XL C 1.02.0.0 rejects this saying
970
     "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
971
  struct s { int j; const int *ap[3]; };
972
  struct s *b; b->j = 5;
973
}
974
{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
975
  const int foo = 10;
976
}
977
 
978
; return 0; }
979
EOF
980
if { (eval echo configure:981: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
981
  rm -rf conftest*
982
  ac_cv_c_const=yes
983
else
984
  echo "configure: failed program was:" >&5
985
  cat conftest.$ac_ext >&5
986
  rm -rf conftest*
987
  ac_cv_c_const=no
988
fi
989
rm -f conftest*
990
fi
991
 
992
echo "$ac_t""$ac_cv_c_const" 1>&6
993
if test $ac_cv_c_const = no; then
994
  cat >> confdefs.h <<\EOF
995
#define const
996
EOF
997
 
998
fi
999
 
1000
echo $ac_n "checking for inline""... $ac_c" 1>&6
1001
echo "configure:1002: checking for inline" >&5
1002
if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1003
  echo $ac_n "(cached) $ac_c" 1>&6
1004
else
1005
  ac_cv_c_inline=no
1006
for ac_kw in inline __inline__ __inline; do
1007
  cat > conftest.$ac_ext <
1008
#line 1009 "configure"
1009
#include "confdefs.h"
1010
 
1011
int main() {
1012
} $ac_kw foo() {
1013
; return 0; }
1014
EOF
1015
if { (eval echo configure:1016: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1016
  rm -rf conftest*
1017
  ac_cv_c_inline=$ac_kw; break
1018
else
1019
  echo "configure: failed program was:" >&5
1020
  cat conftest.$ac_ext >&5
1021
fi
1022
rm -f conftest*
1023
done
1024
 
1025
fi
1026
 
1027
echo "$ac_t""$ac_cv_c_inline" 1>&6
1028
case "$ac_cv_c_inline" in
1029
  inline | yes) ;;
1030
  no) cat >> confdefs.h <<\EOF
1031
#define inline
1032
EOF
1033
 ;;
1034
  *)  cat >> confdefs.h <
1035
#define inline $ac_cv_c_inline
1036
EOF
1037
 ;;
1038
esac
1039
 
1040
echo $ac_n "checking for off_t""... $ac_c" 1>&6
1041
echo "configure:1042: checking for off_t" >&5
1042
if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
1043
  echo $ac_n "(cached) $ac_c" 1>&6
1044
else
1045
  cat > conftest.$ac_ext <
1046
#line 1047 "configure"
1047
#include "confdefs.h"
1048
#include 
1049
#if STDC_HEADERS
1050
#include 
1051
#include 
1052
#endif
1053
EOF
1054
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1055
  egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1056
  rm -rf conftest*
1057
  ac_cv_type_off_t=yes
1058
else
1059
  rm -rf conftest*
1060
  ac_cv_type_off_t=no
1061
fi
1062
rm -f conftest*
1063
 
1064
fi
1065
echo "$ac_t""$ac_cv_type_off_t" 1>&6
1066
if test $ac_cv_type_off_t = no; then
1067
  cat >> confdefs.h <<\EOF
1068
#define off_t long
1069
EOF
1070
 
1071
fi
1072
 
1073
echo $ac_n "checking for size_t""... $ac_c" 1>&6
1074
echo "configure:1075: checking for size_t" >&5
1075
if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
1076
  echo $ac_n "(cached) $ac_c" 1>&6
1077
else
1078
  cat > conftest.$ac_ext <
1079
#line 1080 "configure"
1080
#include "confdefs.h"
1081
#include 
1082
#if STDC_HEADERS
1083
#include 
1084
#include 
1085
#endif
1086
EOF
1087
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1088
  egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1089
  rm -rf conftest*
1090
  ac_cv_type_size_t=yes
1091
else
1092
  rm -rf conftest*
1093
  ac_cv_type_size_t=no
1094
fi
1095
rm -f conftest*
1096
 
1097
fi
1098
echo "$ac_t""$ac_cv_type_size_t" 1>&6
1099
if test $ac_cv_type_size_t = no; then
1100
  cat >> confdefs.h <<\EOF
1101
#define size_t unsigned
1102
EOF
1103
 
1104
fi
1105
 
1106
# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
1107
# for constant arguments.  Useless!
1108
echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
1109
echo "configure:1110: checking for working alloca.h" >&5
1110
if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
1111
  echo $ac_n "(cached) $ac_c" 1>&6
1112
else
1113
  cat > conftest.$ac_ext <
1114
#line 1115 "configure"
1115
#include "confdefs.h"
1116
#include 
1117
int main() {
1118
char *p = alloca(2 * sizeof(int));
1119
; return 0; }
1120
EOF
1121
if { (eval echo configure:1122: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1122
  rm -rf conftest*
1123
  ac_cv_header_alloca_h=yes
1124
else
1125
  echo "configure: failed program was:" >&5
1126
  cat conftest.$ac_ext >&5
1127
  rm -rf conftest*
1128
  ac_cv_header_alloca_h=no
1129
fi
1130
rm -f conftest*
1131
fi
1132
 
1133
echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
1134
if test $ac_cv_header_alloca_h = yes; then
1135
  cat >> confdefs.h <<\EOF
1136
#define HAVE_ALLOCA_H 1
1137
EOF
1138
 
1139
fi
1140
 
1141
echo $ac_n "checking for alloca""... $ac_c" 1>&6
1142
echo "configure:1143: checking for alloca" >&5
1143
if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
1144
  echo $ac_n "(cached) $ac_c" 1>&6
1145
else
1146
  cat > conftest.$ac_ext <
1147
#line 1148 "configure"
1148
#include "confdefs.h"
1149
 
1150
#ifdef __GNUC__
1151
# define alloca __builtin_alloca
1152
#else
1153
# ifdef _MSC_VER
1154
#  include 
1155
#  define alloca _alloca
1156
# else
1157
#  if HAVE_ALLOCA_H
1158
#   include 
1159
#  else
1160
#   ifdef _AIX
1161
 #pragma alloca
1162
#   else
1163
#    ifndef alloca /* predefined by HP cc +Olibcalls */
1164
char *alloca ();
1165
#    endif
1166
#   endif
1167
#  endif
1168
# endif
1169
#endif
1170
 
1171
int main() {
1172
char *p = (char *) alloca(1);
1173
; return 0; }
1174
EOF
1175
if { (eval echo configure:1176: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1176
  rm -rf conftest*
1177
  ac_cv_func_alloca_works=yes
1178
else
1179
  echo "configure: failed program was:" >&5
1180
  cat conftest.$ac_ext >&5
1181
  rm -rf conftest*
1182
  ac_cv_func_alloca_works=no
1183
fi
1184
rm -f conftest*
1185
fi
1186
 
1187
echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
1188
if test $ac_cv_func_alloca_works = yes; then
1189
  cat >> confdefs.h <<\EOF
1190
#define HAVE_ALLOCA 1
1191
EOF
1192
 
1193
fi
1194
 
1195
if test $ac_cv_func_alloca_works = no; then
1196
  # The SVR3 libPW and SVR4 libucb both contain incompatible functions
1197
  # that cause trouble.  Some versions do not even contain alloca or
1198
  # contain a buggy version.  If you still want to use their alloca,
1199
  # use ar to extract alloca.o from them instead of compiling alloca.c.
1200
  ALLOCA=alloca.${ac_objext}
1201
  cat >> confdefs.h <<\EOF
1202
#define C_ALLOCA 1
1203
EOF
1204
 
1205
 
1206
echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
1207
echo "configure:1208: checking whether alloca needs Cray hooks" >&5
1208
if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
1209
  echo $ac_n "(cached) $ac_c" 1>&6
1210
else
1211
  cat > conftest.$ac_ext <
1212
#line 1213 "configure"
1213
#include "confdefs.h"
1214
#if defined(CRAY) && ! defined(CRAY2)
1215
webecray
1216
#else
1217
wenotbecray
1218
#endif
1219
 
1220
EOF
1221
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1222
  egrep "webecray" >/dev/null 2>&1; then
1223
  rm -rf conftest*
1224
  ac_cv_os_cray=yes
1225
else
1226
  rm -rf conftest*
1227
  ac_cv_os_cray=no
1228
fi
1229
rm -f conftest*
1230
 
1231
fi
1232
 
1233
echo "$ac_t""$ac_cv_os_cray" 1>&6
1234
if test $ac_cv_os_cray = yes; then
1235
for ac_func in _getb67 GETB67 getb67; do
1236
  echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1237
echo "configure:1238: checking for $ac_func" >&5
1238
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1239
  echo $ac_n "(cached) $ac_c" 1>&6
1240
else
1241
  cat > conftest.$ac_ext <
1242
#line 1243 "configure"
1243
#include "confdefs.h"
1244
/* System header to define __stub macros and hopefully few prototypes,
1245
    which can conflict with char $ac_func(); below.  */
1246
#include 
1247
/* Override any gcc2 internal prototype to avoid an error.  */
1248
/* We use char because int might match the return type of a gcc2
1249
    builtin and then its argument prototype would still apply.  */
1250
char $ac_func();
1251
 
1252
int main() {
1253
 
1254
/* The GNU C library defines this for functions which it implements
1255
    to always fail with ENOSYS.  Some functions are actually named
1256
    something starting with __ and the normal name is an alias.  */
1257
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1258
choke me
1259
#else
1260
$ac_func();
1261
#endif
1262
 
1263
; return 0; }
1264
EOF
1265
if { (eval echo configure:1266: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1266
  rm -rf conftest*
1267
  eval "ac_cv_func_$ac_func=yes"
1268
else
1269
  echo "configure: failed program was:" >&5
1270
  cat conftest.$ac_ext >&5
1271
  rm -rf conftest*
1272
  eval "ac_cv_func_$ac_func=no"
1273
fi
1274
rm -f conftest*
1275
fi
1276
 
1277
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1278
  echo "$ac_t""yes" 1>&6
1279
  cat >> confdefs.h <
1280
#define CRAY_STACKSEG_END $ac_func
1281
EOF
1282
 
1283
  break
1284
else
1285
  echo "$ac_t""no" 1>&6
1286
fi
1287
 
1288
done
1289
fi
1290
 
1291
echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
1292
echo "configure:1293: checking stack direction for C alloca" >&5
1293
if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
1294
  echo $ac_n "(cached) $ac_c" 1>&6
1295
else
1296
  if test "$cross_compiling" = yes; then
1297
  ac_cv_c_stack_direction=0
1298
else
1299
  cat > conftest.$ac_ext <
1300
#line 1301 "configure"
1301
#include "confdefs.h"
1302
find_stack_direction ()
1303
{
1304
  static char *addr = 0;
1305
  auto char dummy;
1306
  if (addr == 0)
1307
    {
1308
      addr = &dummy;
1309
      return find_stack_direction ();
1310
    }
1311
  else
1312
    return (&dummy > addr) ? 1 : -1;
1313
}
1314
main ()
1315
{
1316
  exit (find_stack_direction() < 0);
1317
}
1318
EOF
1319
if { (eval echo configure:1320: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1320
then
1321
  ac_cv_c_stack_direction=1
1322
else
1323
  echo "configure: failed program was:" >&5
1324
  cat conftest.$ac_ext >&5
1325
  rm -fr conftest*
1326
  ac_cv_c_stack_direction=-1
1327
fi
1328
rm -fr conftest*
1329
fi
1330
 
1331
fi
1332
 
1333
echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
1334
cat >> confdefs.h <
1335
#define STACK_DIRECTION $ac_cv_c_stack_direction
1336
EOF
1337
 
1338
fi
1339
 
1340
for ac_hdr in unistd.h
1341
do
1342
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1343
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1344
echo "configure:1345: checking for $ac_hdr" >&5
1345
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1346
  echo $ac_n "(cached) $ac_c" 1>&6
1347
else
1348
  cat > conftest.$ac_ext <
1349
#line 1350 "configure"
1350
#include "confdefs.h"
1351
#include <$ac_hdr>
1352
EOF
1353
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1354
{ (eval echo configure:1355: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1355
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1356
if test -z "$ac_err"; then
1357
  rm -rf conftest*
1358
  eval "ac_cv_header_$ac_safe=yes"
1359
else
1360
  echo "$ac_err" >&5
1361
  echo "configure: failed program was:" >&5
1362
  cat conftest.$ac_ext >&5
1363
  rm -rf conftest*
1364
  eval "ac_cv_header_$ac_safe=no"
1365
fi
1366
rm -f conftest*
1367
fi
1368
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1369
  echo "$ac_t""yes" 1>&6
1370
    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1371
  cat >> confdefs.h <
1372
#define $ac_tr_hdr 1
1373
EOF
1374
 
1375
else
1376
  echo "$ac_t""no" 1>&6
1377
fi
1378
done
1379
 
1380
for ac_func in getpagesize
1381
do
1382
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1383
echo "configure:1384: checking for $ac_func" >&5
1384
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1385
  echo $ac_n "(cached) $ac_c" 1>&6
1386
else
1387
  cat > conftest.$ac_ext <
1388
#line 1389 "configure"
1389
#include "confdefs.h"
1390
/* System header to define __stub macros and hopefully few prototypes,
1391
    which can conflict with char $ac_func(); below.  */
1392
#include 
1393
/* Override any gcc2 internal prototype to avoid an error.  */
1394
/* We use char because int might match the return type of a gcc2
1395
    builtin and then its argument prototype would still apply.  */
1396
char $ac_func();
1397
 
1398
int main() {
1399
 
1400
/* The GNU C library defines this for functions which it implements
1401
    to always fail with ENOSYS.  Some functions are actually named
1402
    something starting with __ and the normal name is an alias.  */
1403
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1404
choke me
1405
#else
1406
$ac_func();
1407
#endif
1408
 
1409
; return 0; }
1410
EOF
1411
if { (eval echo configure:1412: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1412
  rm -rf conftest*
1413
  eval "ac_cv_func_$ac_func=yes"
1414
else
1415
  echo "configure: failed program was:" >&5
1416
  cat conftest.$ac_ext >&5
1417
  rm -rf conftest*
1418
  eval "ac_cv_func_$ac_func=no"
1419
fi
1420
rm -f conftest*
1421
fi
1422
 
1423
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1424
  echo "$ac_t""yes" 1>&6
1425
    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1426
  cat >> confdefs.h <
1427
#define $ac_tr_func 1
1428
EOF
1429
 
1430
else
1431
  echo "$ac_t""no" 1>&6
1432
fi
1433
done
1434
 
1435
echo $ac_n "checking for working mmap""... $ac_c" 1>&6
1436
echo "configure:1437: checking for working mmap" >&5
1437
if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
1438
  echo $ac_n "(cached) $ac_c" 1>&6
1439
else
1440
  if test "$cross_compiling" = yes; then
1441
  ac_cv_func_mmap_fixed_mapped=no
1442
else
1443
  cat > conftest.$ac_ext <
1444
#line 1445 "configure"
1445
#include "confdefs.h"
1446
 
1447
/* Thanks to Mike Haertel and Jim Avera for this test.
1448
   Here is a matrix of mmap possibilities:
1449
        mmap private not fixed
1450
        mmap private fixed at somewhere currently unmapped
1451
        mmap private fixed at somewhere already mapped
1452
        mmap shared not fixed
1453
        mmap shared fixed at somewhere currently unmapped
1454
        mmap shared fixed at somewhere already mapped
1455
   For private mappings, we should verify that changes cannot be read()
1456
   back from the file, nor mmap's back from the file at a different
1457
   address.  (There have been systems where private was not correctly
1458
   implemented like the infamous i386 svr4.0, and systems where the
1459
   VM page cache was not coherent with the filesystem buffer cache
1460
   like early versions of FreeBSD and possibly contemporary NetBSD.)
1461
   For shared mappings, we should conversely verify that changes get
1462
   propogated back to all the places they're supposed to be.
1463
 
1464
   Grep wants private fixed already mapped.
1465
   The main things grep needs to know about mmap are:
1466
   * does it exist and is it safe to write into the mmap'd area
1467
   * how to use it (BSD variants)  */
1468
#include 
1469
#include 
1470
#include 
1471
 
1472
/* This mess was copied from the GNU getpagesize.h.  */
1473
#ifndef HAVE_GETPAGESIZE
1474
# ifdef HAVE_UNISTD_H
1475
#  include 
1476
# endif
1477
 
1478
/* Assume that all systems that can run configure have sys/param.h.  */
1479
# ifndef HAVE_SYS_PARAM_H
1480
#  define HAVE_SYS_PARAM_H 1
1481
# endif
1482
 
1483
# ifdef _SC_PAGESIZE
1484
#  define getpagesize() sysconf(_SC_PAGESIZE)
1485
# else /* no _SC_PAGESIZE */
1486
#  ifdef HAVE_SYS_PARAM_H
1487
#   include 
1488
#   ifdef EXEC_PAGESIZE
1489
#    define getpagesize() EXEC_PAGESIZE
1490
#   else /* no EXEC_PAGESIZE */
1491
#    ifdef NBPG
1492
#     define getpagesize() NBPG * CLSIZE
1493
#     ifndef CLSIZE
1494
#      define CLSIZE 1
1495
#     endif /* no CLSIZE */
1496
#    else /* no NBPG */
1497
#     ifdef NBPC
1498
#      define getpagesize() NBPC
1499
#     else /* no NBPC */
1500
#      ifdef PAGESIZE
1501
#       define getpagesize() PAGESIZE
1502
#      endif /* PAGESIZE */
1503
#     endif /* no NBPC */
1504
#    endif /* no NBPG */
1505
#   endif /* no EXEC_PAGESIZE */
1506
#  else /* no HAVE_SYS_PARAM_H */
1507
#   define getpagesize() 8192   /* punt totally */
1508
#  endif /* no HAVE_SYS_PARAM_H */
1509
# endif /* no _SC_PAGESIZE */
1510
 
1511
#endif /* no HAVE_GETPAGESIZE */
1512
 
1513
#ifdef __cplusplus
1514
extern "C" { void *malloc(unsigned); }
1515
#else
1516
char *malloc();
1517
#endif
1518
 
1519
int
1520
main()
1521
{
1522
        char *data, *data2, *data3;
1523
        int i, pagesize;
1524
        int fd;
1525
 
1526
        pagesize = getpagesize();
1527
 
1528
        /*
1529
         * First, make a file with some known garbage in it.
1530
         */
1531
        data = malloc(pagesize);
1532
        if (!data)
1533
                exit(1);
1534
        for (i = 0; i < pagesize; ++i)
1535
                *(data + i) = rand();
1536
        umask(0);
1537
        fd = creat("conftestmmap", 0600);
1538
        if (fd < 0)
1539
                exit(1);
1540
        if (write(fd, data, pagesize) != pagesize)
1541
                exit(1);
1542
        close(fd);
1543
 
1544
        /*
1545
         * Next, try to mmap the file at a fixed address which
1546
         * already has something else allocated at it.  If we can,
1547
         * also make sure that we see the same garbage.
1548
         */
1549
        fd = open("conftestmmap", O_RDWR);
1550
        if (fd < 0)
1551
                exit(1);
1552
        data2 = malloc(2 * pagesize);
1553
        if (!data2)
1554
                exit(1);
1555
        data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
1556
        if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
1557
            MAP_PRIVATE | MAP_FIXED, fd, 0L))
1558
                exit(1);
1559
        for (i = 0; i < pagesize; ++i)
1560
                if (*(data + i) != *(data2 + i))
1561
                        exit(1);
1562
 
1563
        /*
1564
         * Finally, make sure that changes to the mapped area
1565
         * do not percolate back to the file as seen by read().
1566
         * (This is a bug on some variants of i386 svr4.0.)
1567
         */
1568
        for (i = 0; i < pagesize; ++i)
1569
                *(data2 + i) = *(data2 + i) + 1;
1570
        data3 = malloc(pagesize);
1571
        if (!data3)
1572
                exit(1);
1573
        if (read(fd, data3, pagesize) != pagesize)
1574
                exit(1);
1575
        for (i = 0; i < pagesize; ++i)
1576
                if (*(data + i) != *(data3 + i))
1577
                        exit(1);
1578
        close(fd);
1579
        unlink("conftestmmap");
1580
        exit(0);
1581
}
1582
 
1583
EOF
1584
if { (eval echo configure:1585: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1585
then
1586
  ac_cv_func_mmap_fixed_mapped=yes
1587
else
1588
  echo "configure: failed program was:" >&5
1589
  cat conftest.$ac_ext >&5
1590
  rm -fr conftest*
1591
  ac_cv_func_mmap_fixed_mapped=no
1592
fi
1593
rm -fr conftest*
1594
fi
1595
 
1596
fi
1597
 
1598
echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
1599
if test $ac_cv_func_mmap_fixed_mapped = yes; then
1600
  cat >> confdefs.h <<\EOF
1601
#define HAVE_MMAP 1
1602
EOF
1603
 
1604
fi
1605
 
1606
echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
1607
echo "configure:1608: checking for Cygwin environment" >&5
1608
if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
1609
  echo $ac_n "(cached) $ac_c" 1>&6
1610
else
1611
  cat > conftest.$ac_ext <
1612
#line 1613 "configure"
1613
#include "confdefs.h"
1614
 
1615
int main() {
1616
 
1617
#ifndef __CYGWIN__
1618
#define __CYGWIN__ __CYGWIN32__
1619
#endif
1620
return __CYGWIN__;
1621
; return 0; }
1622
EOF
1623
if { (eval echo configure:1624: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1624
  rm -rf conftest*
1625
  ac_cv_cygwin=yes
1626
else
1627
  echo "configure: failed program was:" >&5
1628
  cat conftest.$ac_ext >&5
1629
  rm -rf conftest*
1630
  ac_cv_cygwin=no
1631
fi
1632
rm -f conftest*
1633
rm -f conftest*
1634
fi
1635
 
1636
echo "$ac_t""$ac_cv_cygwin" 1>&6
1637
CYGWIN=
1638
test "$ac_cv_cygwin" = yes && CYGWIN=yes
1639
echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
1640
echo "configure:1641: checking for mingw32 environment" >&5
1641
if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
1642
  echo $ac_n "(cached) $ac_c" 1>&6
1643
else
1644
  cat > conftest.$ac_ext <
1645
#line 1646 "configure"
1646
#include "confdefs.h"
1647
 
1648
int main() {
1649
return __MINGW32__;
1650
; return 0; }
1651
EOF
1652
if { (eval echo configure:1653: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1653
  rm -rf conftest*
1654
  ac_cv_mingw32=yes
1655
else
1656
  echo "configure: failed program was:" >&5
1657
  cat conftest.$ac_ext >&5
1658
  rm -rf conftest*
1659
  ac_cv_mingw32=no
1660
fi
1661
rm -f conftest*
1662
rm -f conftest*
1663
fi
1664
 
1665
echo "$ac_t""$ac_cv_mingw32" 1>&6
1666
MINGW32=
1667
test "$ac_cv_mingw32" = yes && MINGW32=yes
1668
 
1669
# autoconf.info says this should be called right after AC_INIT.
1670
 
1671
 
1672
ac_aux_dir=
1673
for ac_dir in `cd $srcdir;pwd`/../.. $srcdir/`cd $srcdir;pwd`/../..; do
1674
  if test -f $ac_dir/install-sh; then
1675
    ac_aux_dir=$ac_dir
1676
    ac_install_sh="$ac_aux_dir/install-sh -c"
1677
    break
1678
  elif test -f $ac_dir/install.sh; then
1679
    ac_aux_dir=$ac_dir
1680
    ac_install_sh="$ac_aux_dir/install.sh -c"
1681
    break
1682
  fi
1683
done
1684
if test -z "$ac_aux_dir"; then
1685
  { echo "configure: error: can not find install-sh or install.sh in `cd $srcdir;pwd`/../.. $srcdir/`cd $srcdir;pwd`/../.." 1>&2; exit 1; }
1686
fi
1687
ac_config_guess=$ac_aux_dir/config.guess
1688
ac_config_sub=$ac_aux_dir/config.sub
1689
ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
1690
 
1691
 
1692
# Do some error checking and defaulting for the host and target type.
1693
# The inputs are:
1694
#    configure --host=HOST --target=TARGET --build=BUILD NONOPT
1695
#
1696
# The rules are:
1697
# 1. You are not allowed to specify --host, --target, and nonopt at the
1698
#    same time.
1699
# 2. Host defaults to nonopt.
1700
# 3. If nonopt is not specified, then host defaults to the current host,
1701
#    as determined by config.guess.
1702
# 4. Target and build default to nonopt.
1703
# 5. If nonopt is not specified, then target and build default to host.
1704
 
1705
# The aliases save the names the user supplied, while $host etc.
1706
# will get canonicalized.
1707
case $host---$target---$nonopt in
1708
NONE---*---* | *---NONE---* | *---*---NONE) ;;
1709
*) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
1710
esac
1711
 
1712
 
1713
# Make sure we can run config.sub.
1714
if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
1715
else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1716
fi
1717
 
1718
echo $ac_n "checking host system type""... $ac_c" 1>&6
1719
echo "configure:1720: checking host system type" >&5
1720
 
1721
host_alias=$host
1722
case "$host_alias" in
1723
NONE)
1724
  case $nonopt in
1725
  NONE)
1726
    if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1727
    else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1728
    fi ;;
1729
  *) host_alias=$nonopt ;;
1730
  esac ;;
1731
esac
1732
 
1733
host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1734
host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1735
host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1736
host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1737
echo "$ac_t""$host" 1>&6
1738
 
1739
echo $ac_n "checking target system type""... $ac_c" 1>&6
1740
echo "configure:1741: checking target system type" >&5
1741
 
1742
target_alias=$target
1743
case "$target_alias" in
1744
NONE)
1745
  case $nonopt in
1746
  NONE) target_alias=$host_alias ;;
1747
  *) target_alias=$nonopt ;;
1748
  esac ;;
1749
esac
1750
 
1751
target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
1752
target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1753
target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1754
target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1755
echo "$ac_t""$target" 1>&6
1756
 
1757
echo $ac_n "checking build system type""... $ac_c" 1>&6
1758
echo "configure:1759: checking build system type" >&5
1759
 
1760
build_alias=$build
1761
case "$build_alias" in
1762
NONE)
1763
  case $nonopt in
1764
  NONE) build_alias=$host_alias ;;
1765
  *) build_alias=$nonopt ;;
1766
  esac ;;
1767
esac
1768
 
1769
build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1770
build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1771
build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1772
build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1773
echo "$ac_t""$build" 1>&6
1774
 
1775
test "$host_alias" != "$target_alias" &&
1776
  test "$program_prefix$program_suffix$program_transform_name" = \
1777
    NONENONEs,x,x, &&
1778
  program_prefix=${target_alias}-
1779
 
1780
if test "$program_transform_name" = s,x,x,; then
1781
  program_transform_name=
1782
else
1783
  # Double any \ or $.  echo might interpret backslashes.
1784
  cat <<\EOF_SED > conftestsed
1785
s,\\,\\\\,g; s,\$,$$,g
1786
EOF_SED
1787
  program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
1788
  rm -f conftestsed
1789
fi
1790
test "$program_prefix" != NONE &&
1791
  program_transform_name="s,^,${program_prefix},; $program_transform_name"
1792
# Use a double $ so make ignores it.
1793
test "$program_suffix" != NONE &&
1794
  program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
1795
 
1796
# sed with no file args requires a program.
1797
test "$program_transform_name" = "" && program_transform_name="s,x,x,"
1798
 
1799
# Extract the first word of "gcc", so it can be a program name with args.
1800
set dummy gcc; ac_word=$2
1801
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1802
echo "configure:1803: checking for $ac_word" >&5
1803
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1804
  echo $ac_n "(cached) $ac_c" 1>&6
1805
else
1806
  if test -n "$CC"; then
1807
  ac_cv_prog_CC="$CC" # Let the user override the test.
1808
else
1809
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1810
  ac_dummy="$PATH"
1811
  for ac_dir in $ac_dummy; do
1812
    test -z "$ac_dir" && ac_dir=.
1813
    if test -f $ac_dir/$ac_word; then
1814
      ac_cv_prog_CC="gcc"
1815
      break
1816
    fi
1817
  done
1818
  IFS="$ac_save_ifs"
1819
fi
1820
fi
1821
CC="$ac_cv_prog_CC"
1822
if test -n "$CC"; then
1823
  echo "$ac_t""$CC" 1>&6
1824
else
1825
  echo "$ac_t""no" 1>&6
1826
fi
1827
 
1828
if test -z "$CC"; then
1829
  # Extract the first word of "cc", so it can be a program name with args.
1830
set dummy cc; ac_word=$2
1831
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1832
echo "configure:1833: checking for $ac_word" >&5
1833
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1834
  echo $ac_n "(cached) $ac_c" 1>&6
1835
else
1836
  if test -n "$CC"; then
1837
  ac_cv_prog_CC="$CC" # Let the user override the test.
1838
else
1839
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1840
  ac_prog_rejected=no
1841
  ac_dummy="$PATH"
1842
  for ac_dir in $ac_dummy; do
1843
    test -z "$ac_dir" && ac_dir=.
1844
    if test -f $ac_dir/$ac_word; then
1845
      if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1846
        ac_prog_rejected=yes
1847
        continue
1848
      fi
1849
      ac_cv_prog_CC="cc"
1850
      break
1851
    fi
1852
  done
1853
  IFS="$ac_save_ifs"
1854
if test $ac_prog_rejected = yes; then
1855
  # We found a bogon in the path, so make sure we never use it.
1856
  set dummy $ac_cv_prog_CC
1857
  shift
1858
  if test $# -gt 0; then
1859
    # We chose a different compiler from the bogus one.
1860
    # However, it has the same basename, so the bogon will be chosen
1861
    # first if we set CC to just the basename; use the full file name.
1862
    shift
1863
    set dummy "$ac_dir/$ac_word" "$@"
1864
    shift
1865
    ac_cv_prog_CC="$@"
1866
  fi
1867
fi
1868
fi
1869
fi
1870
CC="$ac_cv_prog_CC"
1871
if test -n "$CC"; then
1872
  echo "$ac_t""$CC" 1>&6
1873
else
1874
  echo "$ac_t""no" 1>&6
1875
fi
1876
 
1877
  if test -z "$CC"; then
1878
    case "`uname -s`" in
1879
    *win32* | *WIN32*)
1880
      # Extract the first word of "cl", so it can be a program name with args.
1881
set dummy cl; ac_word=$2
1882
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1883
echo "configure:1884: checking for $ac_word" >&5
1884
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1885
  echo $ac_n "(cached) $ac_c" 1>&6
1886
else
1887
  if test -n "$CC"; then
1888
  ac_cv_prog_CC="$CC" # Let the user override the test.
1889
else
1890
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1891
  ac_dummy="$PATH"
1892
  for ac_dir in $ac_dummy; do
1893
    test -z "$ac_dir" && ac_dir=.
1894
    if test -f $ac_dir/$ac_word; then
1895
      ac_cv_prog_CC="cl"
1896
      break
1897
    fi
1898
  done
1899
  IFS="$ac_save_ifs"
1900
fi
1901
fi
1902
CC="$ac_cv_prog_CC"
1903
if test -n "$CC"; then
1904
  echo "$ac_t""$CC" 1>&6
1905
else
1906
  echo "$ac_t""no" 1>&6
1907
fi
1908
 ;;
1909
    esac
1910
  fi
1911
  test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1912
fi
1913
 
1914
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1915
echo "configure:1916: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1916
 
1917
ac_ext=c
1918
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1919
ac_cpp='$CPP $CPPFLAGS'
1920
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1921
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1922
cross_compiling=$ac_cv_prog_cc_cross
1923
 
1924
cat > conftest.$ac_ext << EOF
1925
 
1926
#line 1927 "configure"
1927
#include "confdefs.h"
1928
 
1929
main(){return(0);}
1930
EOF
1931
if { (eval echo configure:1932: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1932
  ac_cv_prog_cc_works=yes
1933
  # If we can't run a trivial program, we are probably using a cross compiler.
1934
  if (./conftest; exit) 2>/dev/null; then
1935
    ac_cv_prog_cc_cross=no
1936
  else
1937
    ac_cv_prog_cc_cross=yes
1938
  fi
1939
else
1940
  echo "configure: failed program was:" >&5
1941
  cat conftest.$ac_ext >&5
1942
  ac_cv_prog_cc_works=no
1943
fi
1944
rm -fr conftest*
1945
ac_ext=c
1946
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1947
ac_cpp='$CPP $CPPFLAGS'
1948
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1949
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1950
cross_compiling=$ac_cv_prog_cc_cross
1951
 
1952
echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1953
if test $ac_cv_prog_cc_works = no; then
1954
  { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1955
fi
1956
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1957
echo "configure:1958: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1958
echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1959
cross_compiling=$ac_cv_prog_cc_cross
1960
 
1961
echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1962
echo "configure:1963: checking whether we are using GNU C" >&5
1963
if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1964
  echo $ac_n "(cached) $ac_c" 1>&6
1965
else
1966
  cat > conftest.c <
1967
#ifdef __GNUC__
1968
  yes;
1969
#endif
1970
EOF
1971
if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1972: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1972
  ac_cv_prog_gcc=yes
1973
else
1974
  ac_cv_prog_gcc=no
1975
fi
1976
fi
1977
 
1978
echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1979
 
1980
if test $ac_cv_prog_gcc = yes; then
1981
  GCC=yes
1982
else
1983
  GCC=
1984
fi
1985
 
1986
ac_test_CFLAGS="${CFLAGS+set}"
1987
ac_save_CFLAGS="$CFLAGS"
1988
CFLAGS=
1989
echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1990
echo "configure:1991: checking whether ${CC-cc} accepts -g" >&5
1991
if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1992
  echo $ac_n "(cached) $ac_c" 1>&6
1993
else
1994
  echo 'void f(){}' > conftest.c
1995
if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1996
  ac_cv_prog_cc_g=yes
1997
else
1998
  ac_cv_prog_cc_g=no
1999
fi
2000
rm -f conftest*
2001
 
2002
fi
2003
 
2004
echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
2005
if test "$ac_test_CFLAGS" = set; then
2006
  CFLAGS="$ac_save_CFLAGS"
2007
elif test $ac_cv_prog_cc_g = yes; then
2008
  if test "$GCC" = yes; then
2009
    CFLAGS="-g -O2"
2010
  else
2011
    CFLAGS="-g"
2012
  fi
2013
else
2014
  if test "$GCC" = yes; then
2015
    CFLAGS="-O2"
2016
  else
2017
    CFLAGS=
2018
  fi
2019
fi
2020
 
2021
# Find a good install program.  We prefer a C program (faster),
2022
# so one script is as good as another.  But avoid the broken or
2023
# incompatible versions:
2024
# SysV /etc/install, /usr/sbin/install
2025
# SunOS /usr/etc/install
2026
# IRIX /sbin/install
2027
# AIX /bin/install
2028
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2029
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2030
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2031
# ./install, which can be erroneously created by make from ./install.sh.
2032
echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
2033
echo "configure:2034: checking for a BSD compatible install" >&5
2034
if test -z "$INSTALL"; then
2035
if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
2036
  echo $ac_n "(cached) $ac_c" 1>&6
2037
else
2038
    IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS=":"
2039
  for ac_dir in $PATH; do
2040
    # Account for people who put trailing slashes in PATH elements.
2041
    case "$ac_dir/" in
2042
    /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
2043
    *)
2044
      # OSF1 and SCO ODT 3.0 have their own names for install.
2045
      # Don't use installbsd from OSF since it installs stuff as root
2046
      # by default.
2047
      for ac_prog in ginstall scoinst install; do
2048
        if test -f $ac_dir/$ac_prog; then
2049
          if test $ac_prog = install &&
2050
            grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
2051
            # AIX install.  It has an incompatible calling convention.
2052
            :
2053
          else
2054
            ac_cv_path_install="$ac_dir/$ac_prog -c"
2055
            break 2
2056
          fi
2057
        fi
2058
      done
2059
      ;;
2060
    esac
2061
  done
2062
  IFS="$ac_save_IFS"
2063
 
2064
fi
2065
  if test "${ac_cv_path_install+set}" = set; then
2066
    INSTALL="$ac_cv_path_install"
2067
  else
2068
    # As a last resort, use the slow shell script.  We don't cache a
2069
    # path for INSTALL within a source directory, because that will
2070
    # break other packages using the cache if that directory is
2071
    # removed, or if the path is relative.
2072
    INSTALL="$ac_install_sh"
2073
  fi
2074
fi
2075
echo "$ac_t""$INSTALL" 1>&6
2076
 
2077
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2078
# It thinks the first close brace ends the variable substitution.
2079
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2080
 
2081
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
2082
 
2083
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2084
 
2085
 
2086
# Put a plausible default for CC_FOR_BUILD in Makefile.
2087
if test "x$cross_compiling" = "xno"; then
2088
  CC_FOR_BUILD='$(CC)'
2089
else
2090
  CC_FOR_BUILD=gcc
2091
fi
2092
 
2093
 
2094
 
2095
 
2096
AR=${AR-ar}
2097
 
2098
# Extract the first word of "ranlib", so it can be a program name with args.
2099
set dummy ranlib; ac_word=$2
2100
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2101
echo "configure:2102: checking for $ac_word" >&5
2102
if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2103
  echo $ac_n "(cached) $ac_c" 1>&6
2104
else
2105
  if test -n "$RANLIB"; then
2106
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2107
else
2108
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2109
  ac_dummy="$PATH"
2110
  for ac_dir in $ac_dummy; do
2111
    test -z "$ac_dir" && ac_dir=.
2112
    if test -f $ac_dir/$ac_word; then
2113
      ac_cv_prog_RANLIB="ranlib"
2114
      break
2115
    fi
2116
  done
2117
  IFS="$ac_save_ifs"
2118
  test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2119
fi
2120
fi
2121
RANLIB="$ac_cv_prog_RANLIB"
2122
if test -n "$RANLIB"; then
2123
  echo "$ac_t""$RANLIB" 1>&6
2124
else
2125
  echo "$ac_t""no" 1>&6
2126
fi
2127
 
2128
 
2129
ALL_LINGUAS=
2130
 
2131
   for ac_hdr in argz.h limits.h locale.h nl_types.h malloc.h string.h \
2132
unistd.h values.h sys/param.h
2133
do
2134
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2135
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2136
echo "configure:2137: checking for $ac_hdr" >&5
2137
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2138
  echo $ac_n "(cached) $ac_c" 1>&6
2139
else
2140
  cat > conftest.$ac_ext <
2141
#line 2142 "configure"
2142
#include "confdefs.h"
2143
#include <$ac_hdr>
2144
EOF
2145
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2146
{ (eval echo configure:2147: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2147
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2148
if test -z "$ac_err"; then
2149
  rm -rf conftest*
2150
  eval "ac_cv_header_$ac_safe=yes"
2151
else
2152
  echo "$ac_err" >&5
2153
  echo "configure: failed program was:" >&5
2154
  cat conftest.$ac_ext >&5
2155
  rm -rf conftest*
2156
  eval "ac_cv_header_$ac_safe=no"
2157
fi
2158
rm -f conftest*
2159
fi
2160
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2161
  echo "$ac_t""yes" 1>&6
2162
    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2163
  cat >> confdefs.h <
2164
#define $ac_tr_hdr 1
2165
EOF
2166
 
2167
else
2168
  echo "$ac_t""no" 1>&6
2169
fi
2170
done
2171
 
2172
   for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \
2173
__argz_count __argz_stringify __argz_next
2174
do
2175
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2176
echo "configure:2177: checking for $ac_func" >&5
2177
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2178
  echo $ac_n "(cached) $ac_c" 1>&6
2179
else
2180
  cat > conftest.$ac_ext <
2181
#line 2182 "configure"
2182
#include "confdefs.h"
2183
/* System header to define __stub macros and hopefully few prototypes,
2184
    which can conflict with char $ac_func(); below.  */
2185
#include 
2186
/* Override any gcc2 internal prototype to avoid an error.  */
2187
/* We use char because int might match the return type of a gcc2
2188
    builtin and then its argument prototype would still apply.  */
2189
char $ac_func();
2190
 
2191
int main() {
2192
 
2193
/* The GNU C library defines this for functions which it implements
2194
    to always fail with ENOSYS.  Some functions are actually named
2195
    something starting with __ and the normal name is an alias.  */
2196
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2197
choke me
2198
#else
2199
$ac_func();
2200
#endif
2201
 
2202
; return 0; }
2203
EOF
2204
if { (eval echo configure:2205: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2205
  rm -rf conftest*
2206
  eval "ac_cv_func_$ac_func=yes"
2207
else
2208
  echo "configure: failed program was:" >&5
2209
  cat conftest.$ac_ext >&5
2210
  rm -rf conftest*
2211
  eval "ac_cv_func_$ac_func=no"
2212
fi
2213
rm -f conftest*
2214
fi
2215
 
2216
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2217
  echo "$ac_t""yes" 1>&6
2218
    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2219
  cat >> confdefs.h <
2220
#define $ac_tr_func 1
2221
EOF
2222
 
2223
else
2224
  echo "$ac_t""no" 1>&6
2225
fi
2226
done
2227
 
2228
 
2229
   if test "${ac_cv_func_stpcpy+set}" != "set"; then
2230
     for ac_func in stpcpy
2231
do
2232
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2233
echo "configure:2234: checking for $ac_func" >&5
2234
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2235
  echo $ac_n "(cached) $ac_c" 1>&6
2236
else
2237
  cat > conftest.$ac_ext <
2238
#line 2239 "configure"
2239
#include "confdefs.h"
2240
/* System header to define __stub macros and hopefully few prototypes,
2241
    which can conflict with char $ac_func(); below.  */
2242
#include 
2243
/* Override any gcc2 internal prototype to avoid an error.  */
2244
/* We use char because int might match the return type of a gcc2
2245
    builtin and then its argument prototype would still apply.  */
2246
char $ac_func();
2247
 
2248
int main() {
2249
 
2250
/* The GNU C library defines this for functions which it implements
2251
    to always fail with ENOSYS.  Some functions are actually named
2252
    something starting with __ and the normal name is an alias.  */
2253
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2254
choke me
2255
#else
2256
$ac_func();
2257
#endif
2258
 
2259
; return 0; }
2260
EOF
2261
if { (eval echo configure:2262: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2262
  rm -rf conftest*
2263
  eval "ac_cv_func_$ac_func=yes"
2264
else
2265
  echo "configure: failed program was:" >&5
2266
  cat conftest.$ac_ext >&5
2267
  rm -rf conftest*
2268
  eval "ac_cv_func_$ac_func=no"
2269
fi
2270
rm -f conftest*
2271
fi
2272
 
2273
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2274
  echo "$ac_t""yes" 1>&6
2275
    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2276
  cat >> confdefs.h <
2277
#define $ac_tr_func 1
2278
EOF
2279
 
2280
else
2281
  echo "$ac_t""no" 1>&6
2282
fi
2283
done
2284
 
2285
   fi
2286
   if test "${ac_cv_func_stpcpy}" = "yes"; then
2287
     cat >> confdefs.h <<\EOF
2288
#define HAVE_STPCPY 1
2289
EOF
2290
 
2291
   fi
2292
 
2293
   if test $ac_cv_header_locale_h = yes; then
2294
    echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
2295
echo "configure:2296: checking for LC_MESSAGES" >&5
2296
if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
2297
  echo $ac_n "(cached) $ac_c" 1>&6
2298
else
2299
  cat > conftest.$ac_ext <
2300
#line 2301 "configure"
2301
#include "confdefs.h"
2302
#include 
2303
int main() {
2304
return LC_MESSAGES
2305
; return 0; }
2306
EOF
2307
if { (eval echo configure:2308: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2308
  rm -rf conftest*
2309
  am_cv_val_LC_MESSAGES=yes
2310
else
2311
  echo "configure: failed program was:" >&5
2312
  cat conftest.$ac_ext >&5
2313
  rm -rf conftest*
2314
  am_cv_val_LC_MESSAGES=no
2315
fi
2316
rm -f conftest*
2317
fi
2318
 
2319
echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
2320
    if test $am_cv_val_LC_MESSAGES = yes; then
2321
      cat >> confdefs.h <<\EOF
2322
#define HAVE_LC_MESSAGES 1
2323
EOF
2324
 
2325
    fi
2326
  fi
2327
   echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
2328
echo "configure:2329: checking whether NLS is requested" >&5
2329
        # Check whether --enable-nls or --disable-nls was given.
2330
if test "${enable_nls+set}" = set; then
2331
  enableval="$enable_nls"
2332
  USE_NLS=$enableval
2333
else
2334
  USE_NLS=yes
2335
fi
2336
 
2337
    echo "$ac_t""$USE_NLS" 1>&6
2338
 
2339
 
2340
    USE_INCLUDED_LIBINTL=no
2341
 
2342
        if test "$USE_NLS" = "yes"; then
2343
      cat >> confdefs.h <<\EOF
2344
#define ENABLE_NLS 1
2345
EOF
2346
 
2347
      echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
2348
echo "configure:2349: checking whether included gettext is requested" >&5
2349
      # Check whether --with-included-gettext or --without-included-gettext was given.
2350
if test "${with_included_gettext+set}" = set; then
2351
  withval="$with_included_gettext"
2352
  nls_cv_force_use_gnu_gettext=$withval
2353
else
2354
  nls_cv_force_use_gnu_gettext=no
2355
fi
2356
 
2357
      echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
2358
 
2359
      nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
2360
      if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
2361
                                        nls_cv_header_intl=
2362
        nls_cv_header_libgt=
2363
        CATOBJEXT=NONE
2364
 
2365
        ac_safe=`echo "libintl.h" | sed 'y%./+-%__p_%'`
2366
echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
2367
echo "configure:2368: checking for libintl.h" >&5
2368
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2369
  echo $ac_n "(cached) $ac_c" 1>&6
2370
else
2371
  cat > conftest.$ac_ext <
2372
#line 2373 "configure"
2373
#include "confdefs.h"
2374
#include 
2375
EOF
2376
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2377
{ (eval echo configure:2378: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2378
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2379
if test -z "$ac_err"; then
2380
  rm -rf conftest*
2381
  eval "ac_cv_header_$ac_safe=yes"
2382
else
2383
  echo "$ac_err" >&5
2384
  echo "configure: failed program was:" >&5
2385
  cat conftest.$ac_ext >&5
2386
  rm -rf conftest*
2387
  eval "ac_cv_header_$ac_safe=no"
2388
fi
2389
rm -f conftest*
2390
fi
2391
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2392
  echo "$ac_t""yes" 1>&6
2393
  echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6
2394
echo "configure:2395: checking for gettext in libc" >&5
2395
if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then
2396
  echo $ac_n "(cached) $ac_c" 1>&6
2397
else
2398
  cat > conftest.$ac_ext <
2399
#line 2400 "configure"
2400
#include "confdefs.h"
2401
#include 
2402
int main() {
2403
return (int) gettext ("")
2404
; return 0; }
2405
EOF
2406
if { (eval echo configure:2407: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2407
  rm -rf conftest*
2408
  gt_cv_func_gettext_libc=yes
2409
else
2410
  echo "configure: failed program was:" >&5
2411
  cat conftest.$ac_ext >&5
2412
  rm -rf conftest*
2413
  gt_cv_func_gettext_libc=no
2414
fi
2415
rm -f conftest*
2416
fi
2417
 
2418
echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6
2419
 
2420
           if test "$gt_cv_func_gettext_libc" != "yes"; then
2421
             echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6
2422
echo "configure:2423: checking for bindtextdomain in -lintl" >&5
2423
ac_lib_var=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'`
2424
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2425
  echo $ac_n "(cached) $ac_c" 1>&6
2426
else
2427
  ac_save_LIBS="$LIBS"
2428
LIBS="-lintl  $LIBS"
2429
cat > conftest.$ac_ext <
2430
#line 2431 "configure"
2431
#include "confdefs.h"
2432
/* Override any gcc2 internal prototype to avoid an error.  */
2433
/* We use char because int might match the return type of a gcc2
2434
    builtin and then its argument prototype would still apply.  */
2435
char bindtextdomain();
2436
 
2437
int main() {
2438
bindtextdomain()
2439
; return 0; }
2440
EOF
2441
if { (eval echo configure:2442: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2442
  rm -rf conftest*
2443
  eval "ac_cv_lib_$ac_lib_var=yes"
2444
else
2445
  echo "configure: failed program was:" >&5
2446
  cat conftest.$ac_ext >&5
2447
  rm -rf conftest*
2448
  eval "ac_cv_lib_$ac_lib_var=no"
2449
fi
2450
rm -f conftest*
2451
LIBS="$ac_save_LIBS"
2452
 
2453
fi
2454
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2455
  echo "$ac_t""yes" 1>&6
2456
  echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6
2457
echo "configure:2458: checking for gettext in libintl" >&5
2458
if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then
2459
  echo $ac_n "(cached) $ac_c" 1>&6
2460
else
2461
  cat > conftest.$ac_ext <
2462
#line 2463 "configure"
2463
#include "confdefs.h"
2464
 
2465
int main() {
2466
return (int) gettext ("")
2467
; return 0; }
2468
EOF
2469
if { (eval echo configure:2470: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2470
  rm -rf conftest*
2471
  gt_cv_func_gettext_libintl=yes
2472
else
2473
  echo "configure: failed program was:" >&5
2474
  cat conftest.$ac_ext >&5
2475
  rm -rf conftest*
2476
  gt_cv_func_gettext_libintl=no
2477
fi
2478
rm -f conftest*
2479
fi
2480
 
2481
echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6
2482
else
2483
  echo "$ac_t""no" 1>&6
2484
fi
2485
 
2486
           fi
2487
 
2488
           if test "$gt_cv_func_gettext_libc" = "yes" \
2489
              || test "$gt_cv_func_gettext_libintl" = "yes"; then
2490
              cat >> confdefs.h <<\EOF
2491
#define HAVE_GETTEXT 1
2492
EOF
2493
 
2494
              # Extract the first word of "msgfmt", so it can be a program name with args.
2495
set dummy msgfmt; ac_word=$2
2496
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2497
echo "configure:2498: checking for $ac_word" >&5
2498
if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2499
  echo $ac_n "(cached) $ac_c" 1>&6
2500
else
2501
  case "$MSGFMT" in
2502
  /*)
2503
  ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
2504
  ;;
2505
  *)
2506
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2507
  for ac_dir in $PATH; do
2508
    test -z "$ac_dir" && ac_dir=.
2509
    if test -f $ac_dir/$ac_word; then
2510
      if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
2511
        ac_cv_path_MSGFMT="$ac_dir/$ac_word"
2512
        break
2513
      fi
2514
    fi
2515
  done
2516
  IFS="$ac_save_ifs"
2517
  test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
2518
  ;;
2519
esac
2520
fi
2521
MSGFMT="$ac_cv_path_MSGFMT"
2522
if test -n "$MSGFMT"; then
2523
  echo "$ac_t""$MSGFMT" 1>&6
2524
else
2525
  echo "$ac_t""no" 1>&6
2526
fi
2527
              if test "$MSGFMT" != "no"; then
2528
                for ac_func in dcgettext
2529
do
2530
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2531
echo "configure:2532: checking for $ac_func" >&5
2532
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2533
  echo $ac_n "(cached) $ac_c" 1>&6
2534
else
2535
  cat > conftest.$ac_ext <
2536
#line 2537 "configure"
2537
#include "confdefs.h"
2538
/* System header to define __stub macros and hopefully few prototypes,
2539
    which can conflict with char $ac_func(); below.  */
2540
#include 
2541
/* Override any gcc2 internal prototype to avoid an error.  */
2542
/* We use char because int might match the return type of a gcc2
2543
    builtin and then its argument prototype would still apply.  */
2544
char $ac_func();
2545
 
2546
int main() {
2547
 
2548
/* The GNU C library defines this for functions which it implements
2549
    to always fail with ENOSYS.  Some functions are actually named
2550
    something starting with __ and the normal name is an alias.  */
2551
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2552
choke me
2553
#else
2554
$ac_func();
2555
#endif
2556
 
2557
; return 0; }
2558
EOF
2559
if { (eval echo configure:2560: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2560
  rm -rf conftest*
2561
  eval "ac_cv_func_$ac_func=yes"
2562
else
2563
  echo "configure: failed program was:" >&5
2564
  cat conftest.$ac_ext >&5
2565
  rm -rf conftest*
2566
  eval "ac_cv_func_$ac_func=no"
2567
fi
2568
rm -f conftest*
2569
fi
2570
 
2571
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2572
  echo "$ac_t""yes" 1>&6
2573
    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2574
  cat >> confdefs.h <
2575
#define $ac_tr_func 1
2576
EOF
2577
 
2578
else
2579
  echo "$ac_t""no" 1>&6
2580
fi
2581
done
2582
 
2583
                # Extract the first word of "gmsgfmt", so it can be a program name with args.
2584
set dummy gmsgfmt; ac_word=$2
2585
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2586
echo "configure:2587: checking for $ac_word" >&5
2587
if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2588
  echo $ac_n "(cached) $ac_c" 1>&6
2589
else
2590
  case "$GMSGFMT" in
2591
  /*)
2592
  ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
2593
  ;;
2594
  ?:/*)
2595
  ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
2596
  ;;
2597
  *)
2598
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2599
  ac_dummy="$PATH"
2600
  for ac_dir in $ac_dummy; do
2601
    test -z "$ac_dir" && ac_dir=.
2602
    if test -f $ac_dir/$ac_word; then
2603
      ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
2604
      break
2605
    fi
2606
  done
2607
  IFS="$ac_save_ifs"
2608
  test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
2609
  ;;
2610
esac
2611
fi
2612
GMSGFMT="$ac_cv_path_GMSGFMT"
2613
if test -n "$GMSGFMT"; then
2614
  echo "$ac_t""$GMSGFMT" 1>&6
2615
else
2616
  echo "$ac_t""no" 1>&6
2617
fi
2618
 
2619
                # Extract the first word of "xgettext", so it can be a program name with args.
2620
set dummy xgettext; ac_word=$2
2621
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2622
echo "configure:2623: checking for $ac_word" >&5
2623
if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
2624
  echo $ac_n "(cached) $ac_c" 1>&6
2625
else
2626
  case "$XGETTEXT" in
2627
  /*)
2628
  ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
2629
  ;;
2630
  *)
2631
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2632
  for ac_dir in $PATH; do
2633
    test -z "$ac_dir" && ac_dir=.
2634
    if test -f $ac_dir/$ac_word; then
2635
      if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
2636
        ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
2637
        break
2638
      fi
2639
    fi
2640
  done
2641
  IFS="$ac_save_ifs"
2642
  test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
2643
  ;;
2644
esac
2645
fi
2646
XGETTEXT="$ac_cv_path_XGETTEXT"
2647
if test -n "$XGETTEXT"; then
2648
  echo "$ac_t""$XGETTEXT" 1>&6
2649
else
2650
  echo "$ac_t""no" 1>&6
2651
fi
2652
 
2653
                cat > conftest.$ac_ext <
2654
#line 2655 "configure"
2655
#include "confdefs.h"
2656
 
2657
int main() {
2658
extern int _nl_msg_cat_cntr;
2659
                               return _nl_msg_cat_cntr
2660
; return 0; }
2661
EOF
2662
if { (eval echo configure:2663: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2663
  rm -rf conftest*
2664
  CATOBJEXT=.gmo
2665
                   DATADIRNAME=share
2666
else
2667
  echo "configure: failed program was:" >&5
2668
  cat conftest.$ac_ext >&5
2669
  rm -rf conftest*
2670
  CATOBJEXT=.mo
2671
                   DATADIRNAME=lib
2672
fi
2673
rm -f conftest*
2674
                INSTOBJEXT=.mo
2675
              fi
2676
            fi
2677
 
2678
else
2679
  echo "$ac_t""no" 1>&6
2680
fi
2681
 
2682
 
2683
 
2684
        if test "$CATOBJEXT" = "NONE"; then
2685
                          nls_cv_use_gnu_gettext=yes
2686
        fi
2687
      fi
2688
 
2689
      if test "$nls_cv_use_gnu_gettext" = "yes"; then
2690
                INTLOBJS="\$(GETTOBJS)"
2691
        # Extract the first word of "msgfmt", so it can be a program name with args.
2692
set dummy msgfmt; ac_word=$2
2693
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2694
echo "configure:2695: checking for $ac_word" >&5
2695
if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2696
  echo $ac_n "(cached) $ac_c" 1>&6
2697
else
2698
  case "$MSGFMT" in
2699
  /*)
2700
  ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
2701
  ;;
2702
  *)
2703
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2704
  for ac_dir in $PATH; do
2705
    test -z "$ac_dir" && ac_dir=.
2706
    if test -f $ac_dir/$ac_word; then
2707
      if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
2708
        ac_cv_path_MSGFMT="$ac_dir/$ac_word"
2709
        break
2710
      fi
2711
    fi
2712
  done
2713
  IFS="$ac_save_ifs"
2714
  test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt"
2715
  ;;
2716
esac
2717
fi
2718
MSGFMT="$ac_cv_path_MSGFMT"
2719
if test -n "$MSGFMT"; then
2720
  echo "$ac_t""$MSGFMT" 1>&6
2721
else
2722
  echo "$ac_t""no" 1>&6
2723
fi
2724
 
2725
        # Extract the first word of "gmsgfmt", so it can be a program name with args.
2726
set dummy gmsgfmt; ac_word=$2
2727
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2728
echo "configure:2729: checking for $ac_word" >&5
2729
if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2730
  echo $ac_n "(cached) $ac_c" 1>&6
2731
else
2732
  case "$GMSGFMT" in
2733
  /*)
2734
  ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
2735
  ;;
2736
  ?:/*)
2737
  ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
2738
  ;;
2739
  *)
2740
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2741
  ac_dummy="$PATH"
2742
  for ac_dir in $ac_dummy; do
2743
    test -z "$ac_dir" && ac_dir=.
2744
    if test -f $ac_dir/$ac_word; then
2745
      ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
2746
      break
2747
    fi
2748
  done
2749
  IFS="$ac_save_ifs"
2750
  test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
2751
  ;;
2752
esac
2753
fi
2754
GMSGFMT="$ac_cv_path_GMSGFMT"
2755
if test -n "$GMSGFMT"; then
2756
  echo "$ac_t""$GMSGFMT" 1>&6
2757
else
2758
  echo "$ac_t""no" 1>&6
2759
fi
2760
 
2761
        # Extract the first word of "xgettext", so it can be a program name with args.
2762
set dummy xgettext; ac_word=$2
2763
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2764
echo "configure:2765: checking for $ac_word" >&5
2765
if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
2766
  echo $ac_n "(cached) $ac_c" 1>&6
2767
else
2768
  case "$XGETTEXT" in
2769
  /*)
2770
  ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
2771
  ;;
2772
  *)
2773
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2774
  for ac_dir in $PATH; do
2775
    test -z "$ac_dir" && ac_dir=.
2776
    if test -f $ac_dir/$ac_word; then
2777
      if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
2778
        ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
2779
        break
2780
      fi
2781
    fi
2782
  done
2783
  IFS="$ac_save_ifs"
2784
  test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
2785
  ;;
2786
esac
2787
fi
2788
XGETTEXT="$ac_cv_path_XGETTEXT"
2789
if test -n "$XGETTEXT"; then
2790
  echo "$ac_t""$XGETTEXT" 1>&6
2791
else
2792
  echo "$ac_t""no" 1>&6
2793
fi
2794
 
2795
 
2796
        USE_INCLUDED_LIBINTL=yes
2797
        CATOBJEXT=.gmo
2798
        INSTOBJEXT=.mo
2799
        DATADIRNAME=share
2800
        INTLDEPS='$(top_builddir)/../intl/libintl.a'
2801
        INTLLIBS=$INTLDEPS
2802
        LIBS=`echo $LIBS | sed -e 's/-lintl//'`
2803
        nls_cv_header_intl=libintl.h
2804
        nls_cv_header_libgt=libgettext.h
2805
      fi
2806
 
2807
            if test "$XGETTEXT" != ":"; then
2808
                        if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
2809
          : ;
2810
        else
2811
          echo "$ac_t""found xgettext programs is not GNU xgettext; ignore it" 1>&6
2812
          XGETTEXT=":"
2813
        fi
2814
      fi
2815
 
2816
      # We need to process the po/ directory.
2817
      POSUB=po
2818
    else
2819
      DATADIRNAME=share
2820
      nls_cv_header_intl=libintl.h
2821
      nls_cv_header_libgt=libgettext.h
2822
    fi
2823
 
2824
    # If this is used in GNU gettext we have to set USE_NLS to `yes'
2825
    # because some of the sources are only built for this goal.
2826
    if test "$PACKAGE" = gettext; then
2827
      USE_NLS=yes
2828
      USE_INCLUDED_LIBINTL=yes
2829
    fi
2830
 
2831
                for lang in $ALL_LINGUAS; do
2832
      GMOFILES="$GMOFILES $lang.gmo"
2833
      POFILES="$POFILES $lang.po"
2834
    done
2835
 
2836
 
2837
 
2838
 
2839
 
2840
 
2841
 
2842
 
2843
 
2844
 
2845
 
2846
 
2847
 
2848
 
2849
   if test "x$CATOBJEXT" != "x"; then
2850
     if test "x$ALL_LINGUAS" = "x"; then
2851
       LINGUAS=
2852
     else
2853
       echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
2854
echo "configure:2855: checking for catalogs to be installed" >&5
2855
       NEW_LINGUAS=
2856
       for lang in ${LINGUAS=$ALL_LINGUAS}; do
2857
         case "$ALL_LINGUAS" in
2858
          *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
2859
         esac
2860
       done
2861
       LINGUAS=$NEW_LINGUAS
2862
       echo "$ac_t""$LINGUAS" 1>&6
2863
     fi
2864
 
2865
          if test -n "$LINGUAS"; then
2866
       for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
2867
     fi
2868
   fi
2869
 
2870
            if test $ac_cv_header_locale_h = yes; then
2871
     INCLUDE_LOCALE_H="#include "
2872
   else
2873
     INCLUDE_LOCALE_H="\
2874
/* The system does not provide the header .  Take care yourself.  */"
2875
   fi
2876
 
2877
 
2878
            if test -f $srcdir/po2tbl.sed.in; then
2879
      if test "$CATOBJEXT" = ".cat"; then
2880
         ac_safe=`echo "linux/version.h" | sed 'y%./+-%__p_%'`
2881
echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6
2882
echo "configure:2883: checking for linux/version.h" >&5
2883
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2884
  echo $ac_n "(cached) $ac_c" 1>&6
2885
else
2886
  cat > conftest.$ac_ext <
2887
#line 2888 "configure"
2888
#include "confdefs.h"
2889
#include 
2890
EOF
2891
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2892
{ (eval echo configure:2893: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2893
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2894
if test -z "$ac_err"; then
2895
  rm -rf conftest*
2896
  eval "ac_cv_header_$ac_safe=yes"
2897
else
2898
  echo "$ac_err" >&5
2899
  echo "configure: failed program was:" >&5
2900
  cat conftest.$ac_ext >&5
2901
  rm -rf conftest*
2902
  eval "ac_cv_header_$ac_safe=no"
2903
fi
2904
rm -f conftest*
2905
fi
2906
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2907
  echo "$ac_t""yes" 1>&6
2908
  msgformat=linux
2909
else
2910
  echo "$ac_t""no" 1>&6
2911
msgformat=xopen
2912
fi
2913
 
2914
 
2915
                         sed -e '/^#/d' $srcdir/$msgformat-msg.sed > po2msg.sed
2916
      fi
2917
            sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
2918
         $srcdir/po2tbl.sed.in > po2tbl.sed
2919
   fi
2920
 
2921
            if test "$PACKAGE" = "gettext"; then
2922
     GT_NO="#NO#"
2923
     GT_YES=
2924
   else
2925
     GT_NO=
2926
     GT_YES="#YES#"
2927
   fi
2928
 
2929
 
2930
 
2931
   MKINSTALLDIRS="\$(srcdir)/../../mkinstalldirs"
2932
 
2933
 
2934
      l=
2935
 
2936
 
2937
            if test -d $srcdir/po; then
2938
      test -d po || mkdir po
2939
      if test "x$srcdir" != "x."; then
2940
         if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
2941
            posrcprefix="$srcdir/"
2942
         else
2943
            posrcprefix="../$srcdir/"
2944
         fi
2945
      else
2946
         posrcprefix="../"
2947
      fi
2948
      rm -f po/POTFILES
2949
      sed -e "/^#/d" -e "/^\$/d" -e "s,.*,      $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
2950
         < $srcdir/po/POTFILES.in > po/POTFILES
2951
   fi
2952
 
2953
 
2954
# Check for common headers.
2955
# FIXME: Seems to me this can cause problems for i386-windows hosts.
2956
# At one point there were hardcoded AC_DEFINE's if ${host} = i386-*-windows*.
2957
for ac_hdr in stdlib.h string.h strings.h unistd.h time.h
2958
do
2959
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2960
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2961
echo "configure:2962: checking for $ac_hdr" >&5
2962
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2963
  echo $ac_n "(cached) $ac_c" 1>&6
2964
else
2965
  cat > conftest.$ac_ext <
2966
#line 2967 "configure"
2967
#include "confdefs.h"
2968
#include <$ac_hdr>
2969
EOF
2970
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2971
{ (eval echo configure:2972: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2972
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2973
if test -z "$ac_err"; then
2974
  rm -rf conftest*
2975
  eval "ac_cv_header_$ac_safe=yes"
2976
else
2977
  echo "$ac_err" >&5
2978
  echo "configure: failed program was:" >&5
2979
  cat conftest.$ac_ext >&5
2980
  rm -rf conftest*
2981
  eval "ac_cv_header_$ac_safe=no"
2982
fi
2983
rm -f conftest*
2984
fi
2985
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2986
  echo "$ac_t""yes" 1>&6
2987
    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2988
  cat >> confdefs.h <
2989
#define $ac_tr_hdr 1
2990
EOF
2991
 
2992
else
2993
  echo "$ac_t""no" 1>&6
2994
fi
2995
done
2996
 
2997
for ac_hdr in sys/time.h sys/resource.h
2998
do
2999
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3000
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3001
echo "configure:3002: checking for $ac_hdr" >&5
3002
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3003
  echo $ac_n "(cached) $ac_c" 1>&6
3004
else
3005
  cat > conftest.$ac_ext <
3006
#line 3007 "configure"
3007
#include "confdefs.h"
3008
#include <$ac_hdr>
3009
EOF
3010
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3011
{ (eval echo configure:3012: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3012
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3013
if test -z "$ac_err"; then
3014
  rm -rf conftest*
3015
  eval "ac_cv_header_$ac_safe=yes"
3016
else
3017
  echo "$ac_err" >&5
3018
  echo "configure: failed program was:" >&5
3019
  cat conftest.$ac_ext >&5
3020
  rm -rf conftest*
3021
  eval "ac_cv_header_$ac_safe=no"
3022
fi
3023
rm -f conftest*
3024
fi
3025
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3026
  echo "$ac_t""yes" 1>&6
3027
    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3028
  cat >> confdefs.h <
3029
#define $ac_tr_hdr 1
3030
EOF
3031
 
3032
else
3033
  echo "$ac_t""no" 1>&6
3034
fi
3035
done
3036
 
3037
for ac_hdr in fcntl.h fpu_control.h
3038
do
3039
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3040
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3041
echo "configure:3042: checking for $ac_hdr" >&5
3042
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3043
  echo $ac_n "(cached) $ac_c" 1>&6
3044
else
3045
  cat > conftest.$ac_ext <
3046
#line 3047 "configure"
3047
#include "confdefs.h"
3048
#include <$ac_hdr>
3049
EOF
3050
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3051
{ (eval echo configure:3052: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3052
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3053
if test -z "$ac_err"; then
3054
  rm -rf conftest*
3055
  eval "ac_cv_header_$ac_safe=yes"
3056
else
3057
  echo "$ac_err" >&5
3058
  echo "configure: failed program was:" >&5
3059
  cat conftest.$ac_ext >&5
3060
  rm -rf conftest*
3061
  eval "ac_cv_header_$ac_safe=no"
3062
fi
3063
rm -f conftest*
3064
fi
3065
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3066
  echo "$ac_t""yes" 1>&6
3067
    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3068
  cat >> confdefs.h <
3069
#define $ac_tr_hdr 1
3070
EOF
3071
 
3072
else
3073
  echo "$ac_t""no" 1>&6
3074
fi
3075
done
3076
 
3077
for ac_hdr in dlfcn.h errno.h sys/stat.h
3078
do
3079
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3080
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3081
echo "configure:3082: checking for $ac_hdr" >&5
3082
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3083
  echo $ac_n "(cached) $ac_c" 1>&6
3084
else
3085
  cat > conftest.$ac_ext <
3086
#line 3087 "configure"
3087
#include "confdefs.h"
3088
#include <$ac_hdr>
3089
EOF
3090
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3091
{ (eval echo configure:3092: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3092
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3093
if test -z "$ac_err"; then
3094
  rm -rf conftest*
3095
  eval "ac_cv_header_$ac_safe=yes"
3096
else
3097
  echo "$ac_err" >&5
3098
  echo "configure: failed program was:" >&5
3099
  cat conftest.$ac_ext >&5
3100
  rm -rf conftest*
3101
  eval "ac_cv_header_$ac_safe=no"
3102
fi
3103
rm -f conftest*
3104
fi
3105
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3106
  echo "$ac_t""yes" 1>&6
3107
    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3108
  cat >> confdefs.h <
3109
#define $ac_tr_hdr 1
3110
EOF
3111
 
3112
else
3113
  echo "$ac_t""no" 1>&6
3114
fi
3115
done
3116
 
3117
for ac_func in getrusage time sigaction __setfpucw
3118
do
3119
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3120
echo "configure:3121: checking for $ac_func" >&5
3121
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3122
  echo $ac_n "(cached) $ac_c" 1>&6
3123
else
3124
  cat > conftest.$ac_ext <
3125
#line 3126 "configure"
3126
#include "confdefs.h"
3127
/* System header to define __stub macros and hopefully few prototypes,
3128
    which can conflict with char $ac_func(); below.  */
3129
#include 
3130
/* Override any gcc2 internal prototype to avoid an error.  */
3131
/* We use char because int might match the return type of a gcc2
3132
    builtin and then its argument prototype would still apply.  */
3133
char $ac_func();
3134
 
3135
int main() {
3136
 
3137
/* The GNU C library defines this for functions which it implements
3138
    to always fail with ENOSYS.  Some functions are actually named
3139
    something starting with __ and the normal name is an alias.  */
3140
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3141
choke me
3142
#else
3143
$ac_func();
3144
#endif
3145
 
3146
; return 0; }
3147
EOF
3148
if { (eval echo configure:3149: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3149
  rm -rf conftest*
3150
  eval "ac_cv_func_$ac_func=yes"
3151
else
3152
  echo "configure: failed program was:" >&5
3153
  cat conftest.$ac_ext >&5
3154
  rm -rf conftest*
3155
  eval "ac_cv_func_$ac_func=no"
3156
fi
3157
rm -f conftest*
3158
fi
3159
 
3160
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3161
  echo "$ac_t""yes" 1>&6
3162
    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3163
  cat >> confdefs.h <
3164
#define $ac_tr_func 1
3165
EOF
3166
 
3167
else
3168
  echo "$ac_t""no" 1>&6
3169
fi
3170
done
3171
 
3172
 
3173
# Check for socket libraries
3174
echo $ac_n "checking for bind in -lsocket""... $ac_c" 1>&6
3175
echo "configure:3176: checking for bind in -lsocket" >&5
3176
ac_lib_var=`echo socket'_'bind | sed 'y%./+-%__p_%'`
3177
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3178
  echo $ac_n "(cached) $ac_c" 1>&6
3179
else
3180
  ac_save_LIBS="$LIBS"
3181
LIBS="-lsocket  $LIBS"
3182
cat > conftest.$ac_ext <
3183
#line 3184 "configure"
3184
#include "confdefs.h"
3185
/* Override any gcc2 internal prototype to avoid an error.  */
3186
/* We use char because int might match the return type of a gcc2
3187
    builtin and then its argument prototype would still apply.  */
3188
char bind();
3189
 
3190
int main() {
3191
bind()
3192
; return 0; }
3193
EOF
3194
if { (eval echo configure:3195: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3195
  rm -rf conftest*
3196
  eval "ac_cv_lib_$ac_lib_var=yes"
3197
else
3198
  echo "configure: failed program was:" >&5
3199
  cat conftest.$ac_ext >&5
3200
  rm -rf conftest*
3201
  eval "ac_cv_lib_$ac_lib_var=no"
3202
fi
3203
rm -f conftest*
3204
LIBS="$ac_save_LIBS"
3205
 
3206
fi
3207
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3208
  echo "$ac_t""yes" 1>&6
3209
    ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3210
    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3211
  cat >> confdefs.h <
3212
#define $ac_tr_lib 1
3213
EOF
3214
 
3215
  LIBS="-lsocket $LIBS"
3216
 
3217
else
3218
  echo "$ac_t""no" 1>&6
3219
fi
3220
 
3221
echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
3222
echo "configure:3223: checking for gethostbyname in -lnsl" >&5
3223
ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
3224
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3225
  echo $ac_n "(cached) $ac_c" 1>&6
3226
else
3227
  ac_save_LIBS="$LIBS"
3228
LIBS="-lnsl  $LIBS"
3229
cat > conftest.$ac_ext <
3230
#line 3231 "configure"
3231
#include "confdefs.h"
3232
/* Override any gcc2 internal prototype to avoid an error.  */
3233
/* We use char because int might match the return type of a gcc2
3234
    builtin and then its argument prototype would still apply.  */
3235
char gethostbyname();
3236
 
3237
int main() {
3238
gethostbyname()
3239
; return 0; }
3240
EOF
3241
if { (eval echo configure:3242: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3242
  rm -rf conftest*
3243
  eval "ac_cv_lib_$ac_lib_var=yes"
3244
else
3245
  echo "configure: failed program was:" >&5
3246
  cat conftest.$ac_ext >&5
3247
  rm -rf conftest*
3248
  eval "ac_cv_lib_$ac_lib_var=no"
3249
fi
3250
rm -f conftest*
3251
LIBS="$ac_save_LIBS"
3252
 
3253
fi
3254
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3255
  echo "$ac_t""yes" 1>&6
3256
    ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3257
    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3258
  cat >> confdefs.h <
3259
#define $ac_tr_lib 1
3260
EOF
3261
 
3262
  LIBS="-lnsl $LIBS"
3263
 
3264
else
3265
  echo "$ac_t""no" 1>&6
3266
fi
3267
 
3268
 
3269
. ${srcdir}/../../bfd/configure.host
3270
 
3271
 
3272
 
3273
USE_MAINTAINER_MODE=no
3274
# Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
3275
if test "${enable_maintainer_mode+set}" = set; then
3276
  enableval="$enable_maintainer_mode"
3277
  case "${enableval}" in
3278
  yes)  MAINT="" USE_MAINTAINER_MODE=yes ;;
3279
  no)   MAINT="#" ;;
3280
  *)    { echo "configure: error: "--enable-maintainer-mode does not take a value"" 1>&2; exit 1; }; MAINT="#" ;;
3281
esac
3282
if test x"$silent" != x"yes" && test x"$MAINT" = x""; then
3283
  echo "Setting maintainer mode" 6>&1
3284
fi
3285
else
3286
  MAINT="#"
3287
fi
3288
 
3289
 
3290
 
3291
# Check whether --enable-sim-bswap or --disable-sim-bswap was given.
3292
if test "${enable_sim_bswap+set}" = set; then
3293
  enableval="$enable_sim_bswap"
3294
  case "${enableval}" in
3295
  yes)  sim_bswap="-DWITH_BSWAP=1 -DUSE_BSWAP=1";;
3296
  no)   sim_bswap="-DWITH_BSWAP=0";;
3297
  *)    { echo "configure: error: "--enable-sim-bswap does not take a value"" 1>&2; exit 1; }; sim_bswap="";;
3298
esac
3299
if test x"$silent" != x"yes" && test x"$sim_bswap" != x""; then
3300
  echo "Setting bswap flags = $sim_bswap" 6>&1
3301
fi
3302
else
3303
  sim_bswap=""
3304
fi
3305
 
3306
 
3307
 
3308
# Check whether --enable-sim-cflags or --disable-sim-cflags was given.
3309
if test "${enable_sim_cflags+set}" = set; then
3310
  enableval="$enable_sim_cflags"
3311
  case "${enableval}" in
3312
  yes)   sim_cflags="-O2 -fomit-frame-pointer";;
3313
  trace) { echo "configure: error: "Please use --enable-sim-debug instead."" 1>&2; exit 1; }; sim_cflags="";;
3314
  no)    sim_cflags="";;
3315
  *)     sim_cflags=`echo "${enableval}" | sed -e "s/,/ /g"`;;
3316
esac
3317
if test x"$silent" != x"yes" && test x"$sim_cflags" != x""; then
3318
  echo "Setting sim cflags = $sim_cflags" 6>&1
3319
fi
3320
else
3321
  sim_cflags=""
3322
fi
3323
 
3324
 
3325
 
3326
# Check whether --enable-sim-debug or --disable-sim-debug was given.
3327
if test "${enable_sim_debug+set}" = set; then
3328
  enableval="$enable_sim_debug"
3329
  case "${enableval}" in
3330
  yes) sim_debug="-DDEBUG=7 -DWITH_DEBUG=7";;
3331
  no)  sim_debug="-DDEBUG=0 -DWITH_DEBUG=0";;
3332
  *)   sim_debug="-DDEBUG='(${enableval})' -DWITH_DEBUG='(${enableval})'";;
3333
esac
3334
if test x"$silent" != x"yes" && test x"$sim_debug" != x""; then
3335
  echo "Setting sim debug = $sim_debug" 6>&1
3336
fi
3337
else
3338
  sim_debug=""
3339
fi
3340
 
3341
 
3342
 
3343
# Check whether --enable-sim-stdio or --disable-sim-stdio was given.
3344
if test "${enable_sim_stdio+set}" = set; then
3345
  enableval="$enable_sim_stdio"
3346
  case "${enableval}" in
3347
  yes)  sim_stdio="-DWITH_STDIO=DO_USE_STDIO";;
3348
  no)   sim_stdio="-DWITH_STDIO=DONT_USE_STDIO";;
3349
  *)    { echo "configure: error: "Unknown value $enableval passed to --enable-sim-stdio"" 1>&2; exit 1; }; sim_stdio="";;
3350
esac
3351
if test x"$silent" != x"yes" && test x"$sim_stdio" != x""; then
3352
  echo "Setting stdio flags = $sim_stdio" 6>&1
3353
fi
3354
else
3355
  sim_stdio=""
3356
fi
3357
 
3358
 
3359
 
3360
# Check whether --enable-sim-trace or --disable-sim-trace was given.
3361
if test "${enable_sim_trace+set}" = set; then
3362
  enableval="$enable_sim_trace"
3363
  case "${enableval}" in
3364
  yes)  sim_trace="-DTRACE=1 -DWITH_TRACE=-1";;
3365
  no)   sim_trace="-DTRACE=0 -DWITH_TRACE=0";;
3366
  [-0-9]*)
3367
        sim_trace="-DTRACE='(${enableval})' -DWITH_TRACE='(${enableval})'";;
3368
  [a-z]*)
3369
        sim_trace=""
3370
        for x in `echo "$enableval" | sed -e "s/,/ /g"`; do
3371
          if test x"$sim_trace" = x; then
3372
            sim_trace="-DWITH_TRACE='(TRACE_$x"
3373
          else
3374
            sim_trace="${sim_trace}|TRACE_$x"
3375
          fi
3376
        done
3377
        sim_trace="$sim_trace)'" ;;
3378
esac
3379
if test x"$silent" != x"yes" && test x"$sim_trace" != x""; then
3380
  echo "Setting sim trace = $sim_trace" 6>&1
3381
fi
3382
else
3383
  sim_trace=""
3384
fi
3385
 
3386
 
3387
 
3388
# Check whether --enable-sim-profile or --disable-sim-profile was given.
3389
if test "${enable_sim_profile+set}" = set; then
3390
  enableval="$enable_sim_profile"
3391
  case "${enableval}" in
3392
  yes)  sim_profile="-DPROFILE=1 -DWITH_PROFILE=-1";;
3393
  no)   sim_profile="-DPROFILE=0 -DWITH_PROFILE=0";;
3394
  [-0-9]*)
3395
        sim_profile="-DPROFILE='(${enableval})' -DWITH_PROFILE='(${enableval})'";;
3396
  [a-z]*)
3397
        sim_profile=""
3398
        for x in `echo "$enableval" | sed -e "s/,/ /g"`; do
3399
          if test x"$sim_profile" = x; then
3400
            sim_profile="-DWITH_PROFILE='(PROFILE_$x"
3401
          else
3402
            sim_profile="${sim_profile}|PROFILE_$x"
3403
          fi
3404
        done
3405
        sim_profile="$sim_profile)'" ;;
3406
esac
3407
if test x"$silent" != x"yes" && test x"$sim_profile" != x""; then
3408
  echo "Setting sim profile = $sim_profile" 6>&1
3409
fi
3410
else
3411
  sim_profile="-DPROFILE=1 -DWITH_PROFILE=-1"
3412
fi
3413
 
3414
 
3415
 
3416
echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
3417
echo "configure:3418: checking return type of signal handlers" >&5
3418
if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
3419
  echo $ac_n "(cached) $ac_c" 1>&6
3420
else
3421
  cat > conftest.$ac_ext <
3422
#line 3423 "configure"
3423
#include "confdefs.h"
3424
#include 
3425
#include 
3426
#ifdef signal
3427
#undef signal
3428
#endif
3429
#ifdef __cplusplus
3430
extern "C" void (*signal (int, void (*)(int)))(int);
3431
#else
3432
void (*signal ()) ();
3433
#endif
3434
 
3435
int main() {
3436
int i;
3437
; return 0; }
3438
EOF
3439
if { (eval echo configure:3440: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3440
  rm -rf conftest*
3441
  ac_cv_type_signal=void
3442
else
3443
  echo "configure: failed program was:" >&5
3444
  cat conftest.$ac_ext >&5
3445
  rm -rf conftest*
3446
  ac_cv_type_signal=int
3447
fi
3448
rm -f conftest*
3449
fi
3450
 
3451
echo "$ac_t""$ac_cv_type_signal" 1>&6
3452
cat >> confdefs.h <
3453
#define RETSIGTYPE $ac_cv_type_signal
3454
EOF
3455
 
3456
 
3457
 
3458
 
3459
 
3460
echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
3461
echo "configure:3462: checking for executable suffix" >&5
3462
if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
3463
  echo $ac_n "(cached) $ac_c" 1>&6
3464
else
3465
  if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
3466
  ac_cv_exeext=.exe
3467
else
3468
  rm -f conftest*
3469
  echo 'int main () { return 0; }' > conftest.$ac_ext
3470
  ac_cv_exeext=
3471
  if { (eval echo configure:3472: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
3472
    for file in conftest.*; do
3473
      case $file in
3474
      *.c | *.o | *.obj | *.ilk | *.pdb) ;;
3475
      *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
3476
      esac
3477
    done
3478
  else
3479
    { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
3480
  fi
3481
  rm -f conftest*
3482
  test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
3483
fi
3484
fi
3485
 
3486
EXEEXT=""
3487
test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
3488
echo "$ac_t""${ac_cv_exeext}" 1>&6
3489
ac_exeext=$EXEEXT
3490
 
3491
 
3492
sim_link_files=
3493
sim_link_links=
3494
 
3495
sim_link_links=tconfig.h
3496
if test -f ${srcdir}/tconfig.in
3497
then
3498
  sim_link_files=tconfig.in
3499
else
3500
  sim_link_files=../common/tconfig.in
3501
fi
3502
 
3503
# targ-vals.def points to the libc macro description file.
3504
case "${target}" in
3505
*-*-*) TARG_VALS_DEF=../common/nltvals.def ;;
3506
esac
3507
sim_link_files="${sim_link_files} ${TARG_VALS_DEF}"
3508
sim_link_links="${sim_link_links} targ-vals.def"
3509
 
3510
 
3511
 
3512
 
3513
wire_endian="BIG_ENDIAN"
3514
default_endian=""
3515
# Check whether --enable-sim-endian or --disable-sim-endian was given.
3516
if test "${enable_sim_endian+set}" = set; then
3517
  enableval="$enable_sim_endian"
3518
  case "${enableval}" in
3519
  b*|B*) sim_endian="-DWITH_TARGET_BYTE_ORDER=BIG_ENDIAN";;
3520
  l*|L*) sim_endian="-DWITH_TARGET_BYTE_ORDER=LITTLE_ENDIAN";;
3521
  yes)   if test x"$wire_endian" != x; then
3522
           sim_endian="-DWITH_TARGET_BYTE_ORDER=${wire_endian}"
3523
         else
3524
           if test x"$default_endian" != x; then
3525
             sim_endian="-DWITH_TARGET_BYTE_ORDER=${default_endian}"
3526
           else
3527
             echo "No hard-wired endian for target $target" 1>&6
3528
             sim_endian="-DWITH_TARGET_BYTE_ORDER=0"
3529
           fi
3530
         fi;;
3531
  no)    if test x"$default_endian" != x; then
3532
           sim_endian="-DWITH_DEFAULT_TARGET_BYTE_ORDER=${default_endian}"
3533
         else
3534
           if test x"$wire_endian" != x; then
3535
             sim_endian="-DWITH_DEFAULT_TARGET_BYTE_ORDER=${wire_endian}"
3536
           else
3537
             echo "No default endian for target $target" 1>&6
3538
             sim_endian="-DWITH_DEFAULT_TARGET_BYTE_ORDER=0"
3539
           fi
3540
         fi;;
3541
  *)     { echo "configure: error: "Unknown value $enableval for --enable-sim-endian"" 1>&2; exit 1; }; sim_endian="";;
3542
esac
3543
if test x"$silent" != x"yes" && test x"$sim_endian" != x""; then
3544
  echo "Setting endian flags = $sim_endian" 6>&1
3545
fi
3546
else
3547
  if test x"$default_endian" != x; then
3548
  sim_endian="-DWITH_DEFAULT_TARGET_BYTE_ORDER=${default_endian}"
3549
else
3550
  if test x"$wire_endian" != x; then
3551
    sim_endian="-DWITH_TARGET_BYTE_ORDER=${wire_endian}"
3552
  else
3553
    sim_endian=
3554
  fi
3555
fi
3556
fi
3557
 
3558
wire_alignment="STRICT_ALIGNMENT"
3559
default_alignment=""
3560
 
3561
# Check whether --enable-sim-alignment or --disable-sim-alignment was given.
3562
if test "${enable_sim_alignment+set}" = set; then
3563
  enableval="$enable_sim_alignment"
3564
  case "${enableval}" in
3565
  strict | STRICT)       sim_alignment="-DWITH_ALIGNMENT=STRICT_ALIGNMENT";;
3566
  nonstrict | NONSTRICT) sim_alignment="-DWITH_ALIGNMENT=NONSTRICT_ALIGNMENT";;
3567
  forced | FORCED)       sim_alignment="-DWITH_ALIGNMENT=FORCED_ALIGNMENT";;
3568
  yes) if test x"$wire_alignment" != x; then
3569
         sim_alignment="-DWITH_ALIGNMENT=${wire_alignment}"
3570
       else
3571
         if test x"$default_alignment" != x; then
3572
           sim_alignment="-DWITH_ALIGNMENT=${default_alignment}"
3573
         else
3574
           echo "No hard-wired alignment for target $target" 1>&6
3575
           sim_alignment="-DWITH_ALIGNMENT=0"
3576
         fi
3577
       fi;;
3578
  no)  if test x"$default_alignment" != x; then
3579
         sim_alignment="-DWITH_DEFAULT_ALIGNMENT=${default_alignment}"
3580
       else
3581
         if test x"$wire_alignment" != x; then
3582
           sim_alignment="-DWITH_DEFAULT_ALIGNMENT=${wire_alignment}"
3583
         else
3584
           echo "No default alignment for target $target" 1>&6
3585
           sim_alignment="-DWITH_DEFAULT_ALIGNMENT=0"
3586
         fi
3587
       fi;;
3588
  *)   { echo "configure: error: "Unknown value $enableval passed to --enable-sim-alignment"" 1>&2; exit 1; }; sim_alignment="";;
3589
esac
3590
if test x"$silent" != x"yes" && test x"$sim_alignment" != x""; then
3591
  echo "Setting alignment flags = $sim_alignment" 6>&1
3592
fi
3593
else
3594
  if test x"$default_alignment" != x; then
3595
  sim_alignment="-DWITH_DEFAULT_ALIGNMENT=${default_alignment}"
3596
else
3597
  if test x"$wire_alignment" != x; then
3598
    sim_alignment="-DWITH_ALIGNMENT=${wire_alignment}"
3599
  else
3600
    sim_alignment=
3601
  fi
3602
fi
3603
fi
3604
 
3605
 
3606
# Check whether --enable-sim-hostendian or --disable-sim-hostendian was given.
3607
if test "${enable_sim_hostendian+set}" = set; then
3608
  enableval="$enable_sim_hostendian"
3609
  case "${enableval}" in
3610
  no)    sim_hostendian="-DWITH_HOST_BYTE_ORDER=0";;
3611
  b*|B*) sim_hostendian="-DWITH_HOST_BYTE_ORDER=BIG_ENDIAN";;
3612
  l*|L*) sim_hostendian="-DWITH_HOST_BYTE_ORDER=LITTLE_ENDIAN";;
3613
  *)     { echo "configure: error: "Unknown value $enableval for --enable-sim-hostendian"" 1>&2; exit 1; }; sim_hostendian="";;
3614
esac
3615
if test x"$silent" != x"yes" && test x"$sim_hostendian" != x""; then
3616
  echo "Setting hostendian flags = $sim_hostendian" 6>&1
3617
fi
3618
else
3619
 
3620
if test "x$cross_compiling" = "xno"; then
3621
  echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
3622
echo "configure:3623: checking whether byte ordering is bigendian" >&5
3623
if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
3624
  echo $ac_n "(cached) $ac_c" 1>&6
3625
else
3626
  ac_cv_c_bigendian=unknown
3627
# See if sys/param.h defines the BYTE_ORDER macro.
3628
cat > conftest.$ac_ext <
3629
#line 3630 "configure"
3630
#include "confdefs.h"
3631
#include 
3632
#include 
3633
int main() {
3634
 
3635
#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
3636
 bogus endian macros
3637
#endif
3638
; return 0; }
3639
EOF
3640
if { (eval echo configure:3641: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3641
  rm -rf conftest*
3642
  # It does; now see whether it defined to BIG_ENDIAN or not.
3643
cat > conftest.$ac_ext <
3644
#line 3645 "configure"
3645
#include "confdefs.h"
3646
#include 
3647
#include 
3648
int main() {
3649
 
3650
#if BYTE_ORDER != BIG_ENDIAN
3651
 not big endian
3652
#endif
3653
; return 0; }
3654
EOF
3655
if { (eval echo configure:3656: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3656
  rm -rf conftest*
3657
  ac_cv_c_bigendian=yes
3658
else
3659
  echo "configure: failed program was:" >&5
3660
  cat conftest.$ac_ext >&5
3661
  rm -rf conftest*
3662
  ac_cv_c_bigendian=no
3663
fi
3664
rm -f conftest*
3665
else
3666
  echo "configure: failed program was:" >&5
3667
  cat conftest.$ac_ext >&5
3668
fi
3669
rm -f conftest*
3670
if test $ac_cv_c_bigendian = unknown; then
3671
if test "$cross_compiling" = yes; then
3672
    { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3673
else
3674
  cat > conftest.$ac_ext <
3675
#line 3676 "configure"
3676
#include "confdefs.h"
3677
main () {
3678
  /* Are we little or big endian?  From Harbison&Steele.  */
3679
  union
3680
  {
3681
    long l;
3682
    char c[sizeof (long)];
3683
  } u;
3684
  u.l = 1;
3685
  exit (u.c[sizeof (long) - 1] == 1);
3686
}
3687
EOF
3688
if { (eval echo configure:3689: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3689
then
3690
  ac_cv_c_bigendian=no
3691
else
3692
  echo "configure: failed program was:" >&5
3693
  cat conftest.$ac_ext >&5
3694
  rm -fr conftest*
3695
  ac_cv_c_bigendian=yes
3696
fi
3697
rm -fr conftest*
3698
fi
3699
 
3700
fi
3701
fi
3702
 
3703
echo "$ac_t""$ac_cv_c_bigendian" 1>&6
3704
if test $ac_cv_c_bigendian = yes; then
3705
  cat >> confdefs.h <<\EOF
3706
#define WORDS_BIGENDIAN 1
3707
EOF
3708
 
3709
fi
3710
 
3711
  if test $ac_cv_c_bigendian = yes; then
3712
    sim_hostendian="-DWITH_HOST_BYTE_ORDER=BIG_ENDIAN"
3713
  else
3714
    sim_hostendian="-DWITH_HOST_BYTE_ORDER=LITTLE_ENDIAN"
3715
  fi
3716
else
3717
  sim_hostendian="-DWITH_HOST_BYTE_ORDER=0"
3718
fi
3719
fi
3720
 
3721
 
3722
default_sim_scache="16384"
3723
# Check whether --enable-sim-scache or --disable-sim-scache was given.
3724
if test "${enable_sim_scache+set}" = set; then
3725
  enableval="$enable_sim_scache"
3726
  case "${enableval}" in
3727
  yes)  sim_scache="-DWITH_SCACHE=${default_sim_scache}";;
3728
  no)   sim_scache="-DWITH_SCACHE=0" ;;
3729
  [0-9]*) sim_scache="-DWITH_SCACHE=${enableval}";;
3730
  *)    { echo "configure: error: "Bad value $enableval passed to --enable-sim-scache"" 1>&2; exit 1; };
3731
        sim_scache="";;
3732
esac
3733
if test x"$silent" != x"yes" && test x"$sim_scache" != x""; then
3734
  echo "Setting scache size = $sim_scache" 6>&1
3735
fi
3736
else
3737
  sim_scache="-DWITH_SCACHE=${default_sim_scache}"
3738
fi
3739
 
3740
 
3741
 
3742
default_sim_default_model="m32r/d"
3743
# Check whether --enable-sim-default-model or --disable-sim-default-model was given.
3744
if test "${enable_sim_default_model+set}" = set; then
3745
  enableval="$enable_sim_default_model"
3746
  case "${enableval}" in
3747
  yes|no) { echo "configure: error: "Missing argument to --enable-sim-default-model"" 1>&2; exit 1; };;
3748
  *)    sim_default_model="-DWITH_DEFAULT_MODEL='\"${enableval}\"'";;
3749
esac
3750
if test x"$silent" != x"yes" && test x"$sim_default_model" != x""; then
3751
  echo "Setting default model = $sim_default_model" 6>&1
3752
fi
3753
else
3754
  sim_default_model="-DWITH_DEFAULT_MODEL='\"${default_sim_default_model}\"'"
3755
fi
3756
 
3757
 
3758
 
3759
# Check whether --enable-sim-environment or --disable-sim-environment was given.
3760
if test "${enable_sim_environment+set}" = set; then
3761
  enableval="$enable_sim_environment"
3762
  case "${enableval}" in
3763
  all | ALL)             sim_environment="-DWITH_ENVIRONMENT=ALL_ENVIRONMENT";;
3764
  user | USER)           sim_environment="-DWITH_ENVIRONMENT=USER_ENVIRONMENT";;
3765
  virtual | VIRTUAL)     sim_environment="-DWITH_ENVIRONMENT=VIRTUAL_ENVIRONMENT";;
3766
  operating | OPERATING) sim_environment="-DWITH_ENVIRONMENT=OPERATING_ENVIRONMENT";;
3767
  *)   { echo "configure: error: "Unknown value $enableval passed to --enable-sim-environment"" 1>&2; exit 1; };
3768
       sim_environment="";;
3769
esac
3770
if test x"$silent" != x"yes" && test x"$sim_environment" != x""; then
3771
  echo "Setting sim environment = $sim_environment" 6>&1
3772
fi
3773
else
3774
  sim_environment="-DWITH_ENVIRONMENT=ALL_ENVIRONMENT"
3775
fi
3776
 
3777
 
3778
default_sim_inline=""
3779
# Check whether --enable-sim-inline or --disable-sim-inline was given.
3780
if test "${enable_sim_inline+set}" = set; then
3781
  enableval="$enable_sim_inline"
3782
  sim_inline=""
3783
case "$enableval" in
3784
  no)           sim_inline="-DDEFAULT_INLINE=0";;
3785
  0)            sim_inline="-DDEFAULT_INLINE=0";;
3786
  yes | 2)      sim_inline="-DDEFAULT_INLINE=ALL_C_INLINE";;
3787
  1)            sim_inline="-DDEFAULT_INLINE=INLINE_LOCALS";;
3788
  *) for x in `echo "$enableval" | sed -e "s/,/ /g"`; do
3789
       new_flag=""
3790
       case "$x" in
3791
         *_INLINE=*)    new_flag="-D$x";;
3792
         *=*)           new_flag=`echo "$x" | sed -e "s/=/_INLINE=/" -e "s/^/-D/"`;;
3793
         *_INLINE)      new_flag="-D$x=ALL_C_INLINE";;
3794
         *)             new_flag="-D$x""_INLINE=ALL_C_INLINE";;
3795
       esac
3796
       if test x"$sim_inline" = x""; then
3797
         sim_inline="$new_flag"
3798
       else
3799
         sim_inline="$sim_inline $new_flag"
3800
       fi
3801
     done;;
3802
esac
3803
if test x"$silent" != x"yes" && test x"$sim_inline" != x""; then
3804
  echo "Setting inline flags = $sim_inline" 6>&1
3805
fi
3806
else
3807
 
3808
if test "x$cross_compiling" = "xno"; then
3809
  if test x"$GCC" != "x" -a x"${default_sim_inline}" != "x" ; then
3810
    sim_inline="${default_sim_inline}"
3811
    if test x"$silent" != x"yes"; then
3812
      echo "Setting inline flags = $sim_inline" 6>&1
3813
    fi
3814
  else
3815
    sim_inline=""
3816
  fi
3817
else
3818
  sim_inline="-DDEFAULT_INLINE=0"
3819
fi
3820
fi
3821
 
3822
 
3823
cgen_maint=no
3824
cgen=guile
3825
cgendir='$(srcdir)/../../cgen'
3826
# Check whether --enable-cgen-maint or --disable-cgen-maint was given.
3827
if test "${enable_cgen_maint+set}" = set; then
3828
  enableval="$enable_cgen_maint"
3829
  case "${enableval}" in
3830
  yes)  cgen_maint=yes ;;
3831
  no)   cgen_maint=no ;;
3832
  *)
3833
        # argument is cgen install directory (not implemented yet).
3834
        # Having a `share' directory might be more appropriate for the .scm,
3835
        # .cpu, etc. files.
3836
        cgendir=${cgen_maint}/lib/cgen
3837
        cgen=guile
3838
        ;;
3839
esac
3840
fi
3841
if test x${cgen_maint} != xno ; then
3842
  CGEN_MAINT=''
3843
else
3844
  CGEN_MAINT='#'
3845
fi
3846
 
3847
 
3848
 
3849
 
3850
 
3851
 
3852
 
3853
trap '' 1 2 15
3854
cat > confcache <<\EOF
3855
# This file is a shell script that caches the results of configure
3856
# tests run on this system so they can be shared between configure
3857
# scripts and configure runs.  It is not useful on other systems.
3858
# If it contains results you don't want to keep, you may remove or edit it.
3859
#
3860
# By default, configure uses ./config.cache as the cache file,
3861
# creating it if it does not exist already.  You can give configure
3862
# the --cache-file=FILE option to use a different cache file; that is
3863
# what configure does when it calls configure scripts in
3864
# subdirectories, so they share the cache.
3865
# Giving --cache-file=/dev/null disables caching, for debugging configure.
3866
# config.status only pays attention to the cache file if you give it the
3867
# --recheck option to rerun configure.
3868
#
3869
EOF
3870
# The following way of writing the cache mishandles newlines in values,
3871
# but we know of no workaround that is simple, portable, and efficient.
3872
# So, don't put newlines in cache variables' values.
3873
# Ultrix sh set writes to stderr and can't be redirected directly,
3874
# and sets the high bit in the cache file unless we assign to the vars.
3875
(set) 2>&1 |
3876
  case `(ac_space=' '; set | grep ac_space) 2>&1` in
3877
  *ac_space=\ *)
3878
    # `set' does not quote correctly, so add quotes (double-quote substitution
3879
    # turns \\\\ into \\, and sed turns \\ into \).
3880
    sed -n \
3881
      -e "s/'/'\\\\''/g" \
3882
      -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
3883
    ;;
3884
  *)
3885
    # `set' quotes correctly as required by POSIX, so do not add quotes.
3886
    sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
3887
    ;;
3888
  esac >> confcache
3889
if cmp -s $cache_file confcache; then
3890
  :
3891
else
3892
  if test -w $cache_file; then
3893
    echo "updating cache $cache_file"
3894
    cat confcache > $cache_file
3895
  else
3896
    echo "not updating unwritable cache $cache_file"
3897
  fi
3898
fi
3899
rm -f confcache
3900
 
3901
trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
3902
 
3903
test "x$prefix" = xNONE && prefix=$ac_default_prefix
3904
# Let make expand exec_prefix.
3905
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3906
 
3907
# Any assignment to VPATH causes Sun make to only execute
3908
# the first set of double-colon rules, so remove it if not needed.
3909
# If there is a colon in the path, we need to keep it.
3910
if test "x$srcdir" = x.; then
3911
  ac_vpsub='/^[         ]*VPATH[        ]*=[^:]*$/d'
3912
fi
3913
 
3914
trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
3915
 
3916
DEFS=-DHAVE_CONFIG_H
3917
 
3918
# Without the "./", some shells look in PATH for config.status.
3919
: ${CONFIG_STATUS=./config.status}
3920
 
3921
echo creating $CONFIG_STATUS
3922
rm -f $CONFIG_STATUS
3923
cat > $CONFIG_STATUS <
3924
#! /bin/sh
3925
# Generated automatically by configure.
3926
# Run this file to recreate the current configuration.
3927
# This directory was configured as follows,
3928
# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
3929
#
3930
# $0 $ac_configure_args
3931
#
3932
# Compiler output produced by configure, useful for debugging
3933
# configure, is in ./config.log if it exists.
3934
 
3935
ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
3936
for ac_option
3937
do
3938
  case "\$ac_option" in
3939
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3940
    echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
3941
    exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
3942
  -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
3943
    echo "$CONFIG_STATUS generated by autoconf version 2.13"
3944
    exit 0 ;;
3945
  -help | --help | --hel | --he | --h)
3946
    echo "\$ac_cs_usage"; exit 0 ;;
3947
  *) echo "\$ac_cs_usage"; exit 1 ;;
3948
  esac
3949
done
3950
 
3951
ac_given_srcdir=$srcdir
3952
ac_given_INSTALL="$INSTALL"
3953
 
3954
trap 'rm -fr `echo "Makefile.sim:Makefile.in Make-common.sim:../common/Make-common.in .gdbinit:../common/gdbinit.in config.h:config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
3955
EOF
3956
cat >> $CONFIG_STATUS <
3957
 
3958
# Protect against being on the right side of a sed subst in config.status.
3959
sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
3960
 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
3961
$ac_vpsub
3962
$extrasub
3963
s%@sim_environment@%$sim_environment%g
3964
s%@sim_alignment@%$sim_alignment%g
3965
s%@sim_assert@%$sim_assert%g
3966
s%@sim_bitsize@%$sim_bitsize%g
3967
s%@sim_endian@%$sim_endian%g
3968
s%@sim_hostendian@%$sim_hostendian%g
3969
s%@sim_float@%$sim_float%g
3970
s%@sim_scache@%$sim_scache%g
3971
s%@sim_default_model@%$sim_default_model%g
3972
s%@sim_hw_cflags@%$sim_hw_cflags%g
3973
s%@sim_hw_objs@%$sim_hw_objs%g
3974
s%@sim_hw@%$sim_hw%g
3975
s%@sim_inline@%$sim_inline%g
3976
s%@sim_packages@%$sim_packages%g
3977
s%@sim_regparm@%$sim_regparm%g
3978
s%@sim_reserved_bits@%$sim_reserved_bits%g
3979
s%@sim_smp@%$sim_smp%g
3980
s%@sim_stdcall@%$sim_stdcall%g
3981
s%@sim_xor_endian@%$sim_xor_endian%g
3982
s%@WARN_CFLAGS@%$WARN_CFLAGS%g
3983
s%@WERROR_CFLAGS@%$WERROR_CFLAGS%g
3984
s%@SHELL@%$SHELL%g
3985
s%@CFLAGS@%$CFLAGS%g
3986
s%@CPPFLAGS@%$CPPFLAGS%g
3987
s%@CXXFLAGS@%$CXXFLAGS%g
3988
s%@FFLAGS@%$FFLAGS%g
3989
s%@DEFS@%$DEFS%g
3990
s%@LDFLAGS@%$LDFLAGS%g
3991
s%@LIBS@%$LIBS%g
3992
s%@exec_prefix@%$exec_prefix%g
3993
s%@prefix@%$prefix%g
3994
s%@program_transform_name@%$program_transform_name%g
3995
s%@bindir@%$bindir%g
3996
s%@sbindir@%$sbindir%g
3997
s%@libexecdir@%$libexecdir%g
3998
s%@datadir@%$datadir%g
3999
s%@sysconfdir@%$sysconfdir%g
4000
s%@sharedstatedir@%$sharedstatedir%g
4001
s%@localstatedir@%$localstatedir%g
4002
s%@libdir@%$libdir%g
4003
s%@includedir@%$includedir%g
4004
s%@oldincludedir@%$oldincludedir%g
4005
s%@infodir@%$infodir%g
4006
s%@mandir@%$mandir%g
4007
s%@host@%$host%g
4008
s%@host_alias@%$host_alias%g
4009
s%@host_cpu@%$host_cpu%g
4010
s%@host_vendor@%$host_vendor%g
4011
s%@host_os@%$host_os%g
4012
s%@target@%$target%g
4013
s%@target_alias@%$target_alias%g
4014
s%@target_cpu@%$target_cpu%g
4015
s%@target_vendor@%$target_vendor%g
4016
s%@target_os@%$target_os%g
4017
s%@build@%$build%g
4018
s%@build_alias@%$build_alias%g
4019
s%@build_cpu@%$build_cpu%g
4020
s%@build_vendor@%$build_vendor%g
4021
s%@build_os@%$build_os%g
4022
s%@CC@%$CC%g
4023
s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
4024
s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
4025
s%@INSTALL_DATA@%$INSTALL_DATA%g
4026
s%@CC_FOR_BUILD@%$CC_FOR_BUILD%g
4027
s%@HDEFINES@%$HDEFINES%g
4028
s%@AR@%$AR%g
4029
s%@RANLIB@%$RANLIB%g
4030
s%@SET_MAKE@%$SET_MAKE%g
4031
s%@CPP@%$CPP%g
4032
s%@ALLOCA@%$ALLOCA%g
4033
s%@USE_NLS@%$USE_NLS%g
4034
s%@MSGFMT@%$MSGFMT%g
4035
s%@GMSGFMT@%$GMSGFMT%g
4036
s%@XGETTEXT@%$XGETTEXT%g
4037
s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
4038
s%@CATALOGS@%$CATALOGS%g
4039
s%@CATOBJEXT@%$CATOBJEXT%g
4040
s%@DATADIRNAME@%$DATADIRNAME%g
4041
s%@GMOFILES@%$GMOFILES%g
4042
s%@INSTOBJEXT@%$INSTOBJEXT%g
4043
s%@INTLDEPS@%$INTLDEPS%g
4044
s%@INTLLIBS@%$INTLLIBS%g
4045
s%@INTLOBJS@%$INTLOBJS%g
4046
s%@POFILES@%$POFILES%g
4047
s%@POSUB@%$POSUB%g
4048
s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g
4049
s%@GT_NO@%$GT_NO%g
4050
s%@GT_YES@%$GT_YES%g
4051
s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
4052
s%@l@%$l%g
4053
s%@MAINT@%$MAINT%g
4054
s%@sim_bswap@%$sim_bswap%g
4055
s%@sim_cflags@%$sim_cflags%g
4056
s%@sim_debug@%$sim_debug%g
4057
s%@sim_stdio@%$sim_stdio%g
4058
s%@sim_trace@%$sim_trace%g
4059
s%@sim_profile@%$sim_profile%g
4060
s%@EXEEXT@%$EXEEXT%g
4061
s%@CGEN_MAINT@%$CGEN_MAINT%g
4062
s%@cgendir@%$cgendir%g
4063
s%@cgen@%$cgen%g
4064
 
4065
CEOF
4066
EOF
4067
 
4068
cat >> $CONFIG_STATUS <<\EOF
4069
 
4070
# Split the substitutions into bite-sized pieces for seds with
4071
# small command number limits, like on Digital OSF/1 and HP-UX.
4072
ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
4073
ac_file=1 # Number of current file.
4074
ac_beg=1 # First line for current file.
4075
ac_end=$ac_max_sed_cmds # Line after last line for current file.
4076
ac_more_lines=:
4077
ac_sed_cmds=""
4078
while $ac_more_lines; do
4079
  if test $ac_beg -gt 1; then
4080
    sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
4081
  else
4082
    sed "${ac_end}q" conftest.subs > conftest.s$ac_file
4083
  fi
4084
  if test ! -s conftest.s$ac_file; then
4085
    ac_more_lines=false
4086
    rm -f conftest.s$ac_file
4087
  else
4088
    if test -z "$ac_sed_cmds"; then
4089
      ac_sed_cmds="sed -f conftest.s$ac_file"
4090
    else
4091
      ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
4092
    fi
4093
    ac_file=`expr $ac_file + 1`
4094
    ac_beg=$ac_end
4095
    ac_end=`expr $ac_end + $ac_max_sed_cmds`
4096
  fi
4097
done
4098
if test -z "$ac_sed_cmds"; then
4099
  ac_sed_cmds=cat
4100
fi
4101
EOF
4102
 
4103
cat >> $CONFIG_STATUS <
4104
 
4105
CONFIG_FILES=\${CONFIG_FILES-"Makefile.sim:Makefile.in Make-common.sim:../common/Make-common.in .gdbinit:../common/gdbinit.in"}
4106
EOF
4107
cat >> $CONFIG_STATUS <<\EOF
4108
for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
4109
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4110
  case "$ac_file" in
4111
  *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
4112
       ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
4113
  *) ac_file_in="${ac_file}.in" ;;
4114
  esac
4115
 
4116
  # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
4117
 
4118
  # Remove last slash and all that follows it.  Not all systems have dirname.
4119
  ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
4120
  if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
4121
    # The file is in a subdirectory.
4122
    test ! -d "$ac_dir" && mkdir "$ac_dir"
4123
    ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
4124
    # A "../" for each directory in $ac_dir_suffix.
4125
    ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
4126
  else
4127
    ac_dir_suffix= ac_dots=
4128
  fi
4129
 
4130
  case "$ac_given_srcdir" in
4131
  .)  srcdir=.
4132
      if test -z "$ac_dots"; then top_srcdir=.
4133
      else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
4134
  /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
4135
  *) # Relative path.
4136
    srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
4137
    top_srcdir="$ac_dots$ac_given_srcdir" ;;
4138
  esac
4139
 
4140
  case "$ac_given_INSTALL" in
4141
  [/$]*) INSTALL="$ac_given_INSTALL" ;;
4142
  *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
4143
  esac
4144
 
4145
  echo creating "$ac_file"
4146
  rm -f "$ac_file"
4147
  configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
4148
  case "$ac_file" in
4149
  *Makefile*) ac_comsub="1i\\
4150
# $configure_input" ;;
4151
  *) ac_comsub= ;;
4152
  esac
4153
 
4154
  ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4155
  sed -e "$ac_comsub
4156
s%@configure_input@%$configure_input%g
4157
s%@srcdir@%$srcdir%g
4158
s%@top_srcdir@%$top_srcdir%g
4159
s%@INSTALL@%$INSTALL%g
4160
" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
4161
fi; done
4162
rm -f conftest.s*
4163
 
4164
# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
4165
# NAME is the cpp macro being defined and VALUE is the value it is being given.
4166
#
4167
# ac_d sets the value in "#define NAME VALUE" lines.
4168
ac_dA='s%^\([   ]*\)#\([        ]*define[       ][      ]*\)'
4169
ac_dB='\([      ][      ]*\)[^  ]*%\1#\2'
4170
ac_dC='\3'
4171
ac_dD='%g'
4172
# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
4173
ac_uA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
4174
ac_uB='\([      ]\)%\1#\2define\3'
4175
ac_uC=' '
4176
ac_uD='\4%g'
4177
# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
4178
ac_eA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
4179
ac_eB='$%\1#\2define\3'
4180
ac_eC=' '
4181
ac_eD='%g'
4182
 
4183
if test "${CONFIG_HEADERS+set}" != set; then
4184
EOF
4185
cat >> $CONFIG_STATUS <
4186
  CONFIG_HEADERS="config.h:config.in"
4187
EOF
4188
cat >> $CONFIG_STATUS <<\EOF
4189
fi
4190
for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
4191
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4192
  case "$ac_file" in
4193
  *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
4194
       ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
4195
  *) ac_file_in="${ac_file}.in" ;;
4196
  esac
4197
 
4198
  echo creating $ac_file
4199
 
4200
  rm -f conftest.frag conftest.in conftest.out
4201
  ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4202
  cat $ac_file_inputs > conftest.in
4203
 
4204
EOF
4205
 
4206
# Transform confdefs.h into a sed script conftest.vals that substitutes
4207
# the proper values into config.h.in to produce config.h.  And first:
4208
# Protect against being on the right side of a sed subst in config.status.
4209
# Protect against being in an unquoted here document in config.status.
4210
rm -f conftest.vals
4211
cat > conftest.hdr <<\EOF
4212
s/[\\&%]/\\&/g
4213
s%[\\$`]%\\&%g
4214
s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
4215
s%ac_d%ac_u%gp
4216
s%ac_u%ac_e%gp
4217
EOF
4218
sed -n -f conftest.hdr confdefs.h > conftest.vals
4219
rm -f conftest.hdr
4220
 
4221
# This sed command replaces #undef with comments.  This is necessary, for
4222
# example, in the case of _POSIX_SOURCE, which is predefined and required
4223
# on some systems where configure will not decide to define it.
4224
cat >> conftest.vals <<\EOF
4225
s%^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
4226
EOF
4227
 
4228
# Break up conftest.vals because some shells have a limit on
4229
# the size of here documents, and old seds have small limits too.
4230
 
4231
rm -f conftest.tail
4232
while :
4233
do
4234
  ac_lines=`grep -c . conftest.vals`
4235
  # grep -c gives empty output for an empty file on some AIX systems.
4236
  if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
4237
  # Write a limited-size here document to conftest.frag.
4238
  echo '  cat > conftest.frag <> $CONFIG_STATUS
4239
  sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
4240
  echo 'CEOF
4241
  sed -f conftest.frag conftest.in > conftest.out
4242
  rm -f conftest.in
4243
  mv conftest.out conftest.in
4244
' >> $CONFIG_STATUS
4245
  sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
4246
  rm -f conftest.vals
4247
  mv conftest.tail conftest.vals
4248
done
4249
rm -f conftest.vals
4250
 
4251
cat >> $CONFIG_STATUS <<\EOF
4252
  rm -f conftest.frag conftest.h
4253
  echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
4254
  cat conftest.in >> conftest.h
4255
  rm -f conftest.in
4256
  if cmp -s $ac_file conftest.h 2>/dev/null; then
4257
    echo "$ac_file is unchanged"
4258
    rm -f conftest.h
4259
  else
4260
    # Remove last slash and all that follows it.  Not all systems have dirname.
4261
      ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
4262
      if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
4263
      # The file is in a subdirectory.
4264
      test ! -d "$ac_dir" && mkdir "$ac_dir"
4265
    fi
4266
    rm -f $ac_file
4267
    mv conftest.h $ac_file
4268
  fi
4269
fi; done
4270
 
4271
EOF
4272
 
4273
cat >> $CONFIG_STATUS <
4274
ac_sources="$sim_link_files"
4275
ac_dests="$sim_link_links"
4276
EOF
4277
 
4278
cat >> $CONFIG_STATUS <<\EOF
4279
srcdir=$ac_given_srcdir
4280
while test -n "$ac_sources"; do
4281
  set $ac_dests; ac_dest=$1; shift; ac_dests=$*
4282
  set $ac_sources; ac_source=$1; shift; ac_sources=$*
4283
 
4284
  echo "linking $srcdir/$ac_source to $ac_dest"
4285
 
4286
  if test ! -r $srcdir/$ac_source; then
4287
    { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
4288
  fi
4289
  rm -f $ac_dest
4290
 
4291
  # Make relative symlinks.
4292
  # Remove last slash and all that follows it.  Not all systems have dirname.
4293
  ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'`
4294
  if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
4295
    # The dest file is in a subdirectory.
4296
    test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
4297
    ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`"
4298
    # A "../" for each directory in $ac_dest_dir_suffix.
4299
    ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'`
4300
  else
4301
    ac_dest_dir_suffix= ac_dots=
4302
  fi
4303
 
4304
  case "$srcdir" in
4305
  [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
4306
  *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
4307
  esac
4308
 
4309
  # Make a symlink if possible; otherwise try a hard link.
4310
  if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
4311
    ln $srcdir/$ac_source $ac_dest; then :
4312
  else
4313
    { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
4314
  fi
4315
done
4316
EOF
4317
cat >> $CONFIG_STATUS <
4318
 
4319
EOF
4320
cat >> $CONFIG_STATUS <<\EOF
4321
case "x$CONFIG_FILES" in
4322
 xMakefile*)
4323
   echo "Merging Makefile.sim+Make-common.sim into Makefile ..."
4324
   rm -f Makesim1.tmp Makesim2.tmp Makefile
4325
   sed -n -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ p' Makesim1.tmp
4326
   sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' Makesim2.tmp
4327
   sed -e '/^## COMMON_PRE_/ r Makesim1.tmp' \
4328
        -e '/^## COMMON_POST_/ r Makesim2.tmp' \
4329
        Makefile
4330
   rm -f Makefile.sim Make-common.sim Makesim1.tmp Makesim2.tmp
4331
   ;;
4332
 esac
4333
 case "x$CONFIG_HEADERS" in xconfig.h:config.in) echo > stamp-h ;; esac
4334
 
4335
exit 0
4336
EOF
4337
chmod +x $CONFIG_STATUS
4338
rm -fr confdefs* $ac_clean_files
4339
test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
4340
 
4341
 

powered by: WebSVN 2.1.0

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