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

Subversion Repositories or1k

[/] [or1k/] [tags/] [final_interface/] [gdb-5.0/] [sim/] [common/] [configure] - Blame information for rev 1765

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

powered by: WebSVN 2.1.0

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