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

Subversion Repositories or1k

[/] [or1k/] [trunk/] [gdb-5.0/] [sim/] [d30v/] [configure] - Blame information for rev 1779

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

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

powered by: WebSVN 2.1.0

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