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

Subversion Repositories or1k

[/] [or1k/] [tags/] [first/] [mp3/] [sw/] [mad-xess/] [configure] - Blame information for rev 1780

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

Line No. Rev Author Line
1 266 lampret
#! /bin/sh
2
 
3
# From configure.in Id: configure.in,v 1.43 2001/02/22 07:53:36 rob Exp
4
 
5
 
6
 
7
 
8
 
9
# serial 40 AC_PROG_LIBTOOL
10
 
11
 
12
 
13
 
14
# AC_LIBTOOL_DLOPEN - enable checks for dlopen support
15
 
16
 
17
# AC_LIBTOOL_WIN32_DLL - declare package support for building win32 dll's
18
 
19
 
20
# AC_ENABLE_SHARED - implement the --enable-shared flag
21
# Usage: AC_ENABLE_SHARED[(DEFAULT)]
22
#   Where DEFAULT is either `yes' or `no'.  If omitted, it defaults to
23
#   `yes'.
24
 
25
 
26
# AC_DISABLE_SHARED - set the default shared flag to --disable-shared
27
 
28
 
29
# AC_ENABLE_STATIC - implement the --enable-static flag
30
# Usage: AC_ENABLE_STATIC[(DEFAULT)]
31
#   Where DEFAULT is either `yes' or `no'.  If omitted, it defaults to
32
#   `yes'.
33
 
34
 
35
# AC_DISABLE_STATIC - set the default static flag to --disable-static
36
 
37
 
38
 
39
# AC_ENABLE_FAST_INSTALL - implement the --enable-fast-install flag
40
# Usage: AC_ENABLE_FAST_INSTALL[(DEFAULT)]
41
#   Where DEFAULT is either `yes' or `no'.  If omitted, it defaults to
42
#   `yes'.
43
 
44
 
45
# AC_ENABLE_FAST_INSTALL - set the default to --disable-fast-install
46
 
47
 
48
# AC_PROG_LD - find the path to the GNU or non-GNU linker
49
 
50
 
51
 
52
 
53
# AC_PROG_NM - find the path to a BSD-compatible name lister
54
 
55
 
56
# AC_CHECK_LIBM - check for math library
57
 
58
 
59
# AC_LIBLTDL_CONVENIENCE[(dir)] - sets LIBLTDL to the link flags for
60
# the libltdl convenience library and INCLTDL to the include flags for
61
# the libltdl header and adds --enable-ltdl-convenience to the
62
# configure arguments.  Note that LIBLTDL and INCLTDL are not
63
# AC_SUBSTed, nor is AC_CONFIG_SUBDIRS called.  If DIR is not
64
# provided, it is assumed to be `libltdl'.  LIBLTDL will be prefixed
65
# with '${top_builddir}/' and INCLTDL will be prefixed with
66
# '${top_srcdir}/' (note the single quotes!).  If your package is not
67
# flat and you're not using automake, define top_builddir and
68
# top_srcdir appropriately in the Makefiles.
69
 
70
 
71
# AC_LIBLTDL_INSTALLABLE[(dir)] - sets LIBLTDL to the link flags for
72
# the libltdl installable library and INCLTDL to the include flags for
73
# the libltdl header and adds --enable-ltdl-install to the configure
74
# arguments.  Note that LIBLTDL and INCLTDL are not AC_SUBSTed, nor is
75
# AC_CONFIG_SUBDIRS called.  If DIR is not provided and an installed
76
# libltdl is not found, it is assumed to be `libltdl'.  LIBLTDL will
77
# be prefixed with '${top_builddir}/' and INCLTDL will be prefixed
78
# with '${top_srcdir}/' (note the single quotes!).  If your package is
79
# not flat and you're not using automake, define top_builddir and
80
# top_srcdir appropriately in the Makefiles.
81
# In the future, this macro may have to be called after AC_PROG_LIBTOOL.
82
 
83
 
84
 
85
 
86
# Do all the work for Automake.  This macro actually does too much --
87
# some checks are only needed if your package does certain things.
88
# But this isn't really a big deal.
89
 
90
# serial 1
91
 
92
 
93
 
94
 
95
#
96
# Check to make sure that the build environment is sane.
97
#
98
 
99
 
100
 
101
 
102
 
103
# Like AC_CONFIG_HEADER, but automatically create stamp file.
104
 
105
 
106
 
107
# Guess values for system-dependent variables and create Makefiles.
108
# Generated automatically using autoconf version 2.13
109
# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
110
#
111
# This configure script is free software; the Free Software Foundation
112
# gives unlimited permission to copy, distribute and modify it.
113
 
114
# Defaults:
115
ac_help=
116
ac_default_prefix=/usr/local
117
# Any additions from configure.in:
118
ac_help="$ac_help
119
  --disable-mmap     \
120
     do not use mmap even if available (lower mem usage)"
121
ac_help="$ac_help
122
  --enable-speed          optimize for speed over accuracy"
123
ac_help="$ac_help
124
  --enable-accuracy       optimize for accuracy over speed"
125
ac_help="$ac_help
126
  --enable-fpm=     use -specific fixed-point math routines
127
                          (one of: intel, arm, mips, sparc, ppc,
128
                           64bit, default)"
129
ac_help="$ac_help
130
  --enable-sso            use subband synthesis optimization"
131
ac_help="$ac_help
132
  --disable-aso           disable architecture-specific optimizations"
133
ac_help="$ac_help
134
  --enable-strict-iso     use strict ISO/IEC interpretations"
135
ac_help="$ac_help
136
  --enable-profiling      generate profiling code"
137
ac_help="$ac_help
138
  --enable-debugging      enable diagnostic debugging support
139
  --disable-debugging     do not enable debugging and use more optimization"
140
ac_help="$ac_help
141
  --enable-experimental   enable experimental code"
142
 
143
# Initialize some variables set by options.
144
# The variables have the same names as the options, with
145
# dashes changed to underlines.
146
build=NONE
147
cache_file=./config.cache
148
exec_prefix=NONE
149
host=NONE
150
no_create=
151
nonopt=NONE
152
no_recursion=
153
prefix=NONE
154
program_prefix=NONE
155
program_suffix=NONE
156
program_transform_name=s,x,x,
157
silent=
158
site=
159
srcdir=
160
target=NONE
161
verbose=
162
x_includes=NONE
163
x_libraries=NONE
164
bindir='${exec_prefix}/bin'
165
sbindir='${exec_prefix}/sbin'
166
libexecdir='${exec_prefix}/libexec'
167
datadir='${prefix}/share'
168
sysconfdir='${prefix}/etc'
169
sharedstatedir='${prefix}/com'
170
localstatedir='${prefix}/var'
171
libdir='${exec_prefix}/lib'
172
includedir='${prefix}/include'
173
oldincludedir='/usr/include'
174
infodir='${prefix}/info'
175
mandir='${prefix}/man'
176
 
177
# Initialize some other variables.
178
subdirs=
179
MFLAGS= MAKEFLAGS=
180
SHELL=${CONFIG_SHELL-/bin/sh}
181
# Maximum number of lines to put in a shell here document.
182
ac_max_here_lines=12
183
 
184
ac_prev=
185
for ac_option
186
do
187
 
188
  # If the previous option needs an argument, assign it.
189
  if test -n "$ac_prev"; then
190
    eval "$ac_prev=\$ac_option"
191
    ac_prev=
192
    continue
193
  fi
194
 
195
  case "$ac_option" in
196
  -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
197
  *) ac_optarg= ;;
198
  esac
199
 
200
  # Accept the important Cygnus configure options, so we can diagnose typos.
201
 
202
  case "$ac_option" in
203
 
204
  -bindir | --bindir | --bindi | --bind | --bin | --bi)
205
    ac_prev=bindir ;;
206
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
207
    bindir="$ac_optarg" ;;
208
 
209
  -build | --build | --buil | --bui | --bu)
210
    ac_prev=build ;;
211
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
212
    build="$ac_optarg" ;;
213
 
214
  -cache-file | --cache-file | --cache-fil | --cache-fi \
215
  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
216
    ac_prev=cache_file ;;
217
  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
218
  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
219
    cache_file="$ac_optarg" ;;
220
 
221
  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
222
    ac_prev=datadir ;;
223
  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
224
  | --da=*)
225
    datadir="$ac_optarg" ;;
226
 
227
  -disable-* | --disable-*)
228
    ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
229
    # Reject names that are not valid shell variable names.
230
    if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
231
      { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
232
    fi
233
    ac_feature=`echo $ac_feature| sed 's/-/_/g'`
234
    eval "enable_${ac_feature}=no" ;;
235
 
236
  -enable-* | --enable-*)
237
    ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
238
    # Reject names that are not valid shell variable names.
239
    if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
240
      { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
241
    fi
242
    ac_feature=`echo $ac_feature| sed 's/-/_/g'`
243
    case "$ac_option" in
244
      *=*) ;;
245
      *) ac_optarg=yes ;;
246
    esac
247
    eval "enable_${ac_feature}='$ac_optarg'" ;;
248
 
249
  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
250
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
251
  | --exec | --exe | --ex)
252
    ac_prev=exec_prefix ;;
253
  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
254
  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
255
  | --exec=* | --exe=* | --ex=*)
256
    exec_prefix="$ac_optarg" ;;
257
 
258
  -gas | --gas | --ga | --g)
259
    # Obsolete; use --with-gas.
260
    with_gas=yes ;;
261
 
262
  -help | --help | --hel | --he)
263
    # Omit some internal or obsolete options to make the list less imposing.
264
    # This message is too long to be a string in the A/UX 3.1 sh.
265
    cat << EOF
266
Usage: configure [options] [host]
267
Options: [defaults in brackets after descriptions]
268
Configuration:
269
  --cache-file=FILE       cache test results in FILE
270
  --help                  print this message
271
  --no-create             do not create output files
272
  --quiet, --silent       do not print \`checking...' messages
273
  --version               print the version of autoconf that created configure
274
Directory and file names:
275
  --prefix=PREFIX         install architecture-independent files in PREFIX
276
                          [$ac_default_prefix]
277
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
278
                          [same as prefix]
279
  --bindir=DIR            user executables in DIR [EPREFIX/bin]
280
  --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
281
  --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
282
  --datadir=DIR           read-only architecture-independent data in DIR
283
                          [PREFIX/share]
284
  --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
285
  --sharedstatedir=DIR    modifiable architecture-independent data in DIR
286
                          [PREFIX/com]
287
  --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
288
  --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
289
  --includedir=DIR        C header files in DIR [PREFIX/include]
290
  --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
291
  --infodir=DIR           info documentation in DIR [PREFIX/info]
292
  --mandir=DIR            man documentation in DIR [PREFIX/man]
293
  --srcdir=DIR            find the sources in DIR [configure dir or ..]
294
  --program-prefix=PREFIX prepend PREFIX to installed program names
295
  --program-suffix=SUFFIX append SUFFIX to installed program names
296
  --program-transform-name=PROGRAM
297
                          run sed PROGRAM on installed program names
298
EOF
299
    cat << EOF
300
Host type:
301
  --build=BUILD           configure for building on BUILD [BUILD=HOST]
302
  --host=HOST             configure for HOST [guessed]
303
  --target=TARGET         configure for TARGET [TARGET=HOST]
304
Features and packages:
305
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
306
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
307
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
308
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
309
  --x-includes=DIR        X include files are in DIR
310
  --x-libraries=DIR       X library files are in DIR
311
EOF
312
    if test -n "$ac_help"; then
313
      echo "--enable and --with options recognized:$ac_help"
314
    fi
315
    exit 0 ;;
316
 
317
  -host | --host | --hos | --ho)
318
    ac_prev=host ;;
319
  -host=* | --host=* | --hos=* | --ho=*)
320
    host="$ac_optarg" ;;
321
 
322
  -includedir | --includedir | --includedi | --included | --include \
323
  | --includ | --inclu | --incl | --inc)
324
    ac_prev=includedir ;;
325
  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
326
  | --includ=* | --inclu=* | --incl=* | --inc=*)
327
    includedir="$ac_optarg" ;;
328
 
329
  -infodir | --infodir | --infodi | --infod | --info | --inf)
330
    ac_prev=infodir ;;
331
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
332
    infodir="$ac_optarg" ;;
333
 
334
  -libdir | --libdir | --libdi | --libd)
335
    ac_prev=libdir ;;
336
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
337
    libdir="$ac_optarg" ;;
338
 
339
  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
340
  | --libexe | --libex | --libe)
341
    ac_prev=libexecdir ;;
342
  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
343
  | --libexe=* | --libex=* | --libe=*)
344
    libexecdir="$ac_optarg" ;;
345
 
346
  -localstatedir | --localstatedir | --localstatedi | --localstated \
347
  | --localstate | --localstat | --localsta | --localst \
348
  | --locals | --local | --loca | --loc | --lo)
349
    ac_prev=localstatedir ;;
350
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
351
  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
352
  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
353
    localstatedir="$ac_optarg" ;;
354
 
355
  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
356
    ac_prev=mandir ;;
357
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
358
    mandir="$ac_optarg" ;;
359
 
360
  -nfp | --nfp | --nf)
361
    # Obsolete; use --without-fp.
362
    with_fp=no ;;
363
 
364
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
365
  | --no-cr | --no-c)
366
    no_create=yes ;;
367
 
368
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
369
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
370
    no_recursion=yes ;;
371
 
372
  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
373
  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
374
  | --oldin | --oldi | --old | --ol | --o)
375
    ac_prev=oldincludedir ;;
376
  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
377
  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
378
  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
379
    oldincludedir="$ac_optarg" ;;
380
 
381
  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
382
    ac_prev=prefix ;;
383
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
384
    prefix="$ac_optarg" ;;
385
 
386
  -program-prefix | --program-prefix | --program-prefi | --program-pref \
387
  | --program-pre | --program-pr | --program-p)
388
    ac_prev=program_prefix ;;
389
  -program-prefix=* | --program-prefix=* | --program-prefi=* \
390
  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
391
    program_prefix="$ac_optarg" ;;
392
 
393
  -program-suffix | --program-suffix | --program-suffi | --program-suff \
394
  | --program-suf | --program-su | --program-s)
395
    ac_prev=program_suffix ;;
396
  -program-suffix=* | --program-suffix=* | --program-suffi=* \
397
  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
398
    program_suffix="$ac_optarg" ;;
399
 
400
  -program-transform-name | --program-transform-name \
401
  | --program-transform-nam | --program-transform-na \
402
  | --program-transform-n | --program-transform- \
403
  | --program-transform | --program-transfor \
404
  | --program-transfo | --program-transf \
405
  | --program-trans | --program-tran \
406
  | --progr-tra | --program-tr | --program-t)
407
    ac_prev=program_transform_name ;;
408
  -program-transform-name=* | --program-transform-name=* \
409
  | --program-transform-nam=* | --program-transform-na=* \
410
  | --program-transform-n=* | --program-transform-=* \
411
  | --program-transform=* | --program-transfor=* \
412
  | --program-transfo=* | --program-transf=* \
413
  | --program-trans=* | --program-tran=* \
414
  | --progr-tra=* | --program-tr=* | --program-t=*)
415
    program_transform_name="$ac_optarg" ;;
416
 
417
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
418
  | -silent | --silent | --silen | --sile | --sil)
419
    silent=yes ;;
420
 
421
  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
422
    ac_prev=sbindir ;;
423
  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
424
  | --sbi=* | --sb=*)
425
    sbindir="$ac_optarg" ;;
426
 
427
  -sharedstatedir | --sharedstatedir | --sharedstatedi \
428
  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
429
  | --sharedst | --shareds | --shared | --share | --shar \
430
  | --sha | --sh)
431
    ac_prev=sharedstatedir ;;
432
  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
433
  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
434
  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
435
  | --sha=* | --sh=*)
436
    sharedstatedir="$ac_optarg" ;;
437
 
438
  -site | --site | --sit)
439
    ac_prev=site ;;
440
  -site=* | --site=* | --sit=*)
441
    site="$ac_optarg" ;;
442
 
443
  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
444
    ac_prev=srcdir ;;
445
  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
446
    srcdir="$ac_optarg" ;;
447
 
448
  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
449
  | --syscon | --sysco | --sysc | --sys | --sy)
450
    ac_prev=sysconfdir ;;
451
  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
452
  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
453
    sysconfdir="$ac_optarg" ;;
454
 
455
  -target | --target | --targe | --targ | --tar | --ta | --t)
456
    ac_prev=target ;;
457
  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
458
    target="$ac_optarg" ;;
459
 
460
  -v | -verbose | --verbose | --verbos | --verbo | --verb)
461
    verbose=yes ;;
462
 
463
  -version | --version | --versio | --versi | --vers)
464
    echo "configure generated by autoconf version 2.13"
465
    exit 0 ;;
466
 
467
  -with-* | --with-*)
468
    ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
469
    # Reject names that are not valid shell variable names.
470
    if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
471
      { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
472
    fi
473
    ac_package=`echo $ac_package| sed 's/-/_/g'`
474
    case "$ac_option" in
475
      *=*) ;;
476
      *) ac_optarg=yes ;;
477
    esac
478
    eval "with_${ac_package}='$ac_optarg'" ;;
479
 
480
  -without-* | --without-*)
481
    ac_package=`echo $ac_option|sed -e 's/-*without-//'`
482
    # Reject names that are not valid shell variable names.
483
    if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
484
      { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
485
    fi
486
    ac_package=`echo $ac_package| sed 's/-/_/g'`
487
    eval "with_${ac_package}=no" ;;
488
 
489
  --x)
490
    # Obsolete; use --with-x.
491
    with_x=yes ;;
492
 
493
  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
494
  | --x-incl | --x-inc | --x-in | --x-i)
495
    ac_prev=x_includes ;;
496
  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
497
  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
498
    x_includes="$ac_optarg" ;;
499
 
500
  -x-libraries | --x-libraries | --x-librarie | --x-librari \
501
  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
502
    ac_prev=x_libraries ;;
503
  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
504
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
505
    x_libraries="$ac_optarg" ;;
506
 
507
  -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
508
    ;;
509
 
510
  *)
511
    if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
512
      echo "configure: warning: $ac_option: invalid host type" 1>&2
513
    fi
514
    if test "x$nonopt" != xNONE; then
515
      { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
516
    fi
517
    nonopt="$ac_option"
518
    ;;
519
 
520
  esac
521
done
522
 
523
if test -n "$ac_prev"; then
524
  { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
525
fi
526
 
527
trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
528
 
529
# File descriptor usage:
530
# 0 standard input
531
# 1 file creation
532
# 2 errors and warnings
533
# 3 some systems may open it to /dev/tty
534
# 4 used on the Kubota Titan
535
# 6 checking for... messages and results
536
# 5 compiler messages saved in config.log
537
if test "$silent" = yes; then
538
  exec 6>/dev/null
539
else
540
  exec 6>&1
541
fi
542
exec 5>./config.log
543
 
544
echo "\
545
This file contains any messages produced by compilers while
546
running configure, to aid debugging if configure makes a mistake.
547
" 1>&5
548
 
549
# Strip out --no-create and --no-recursion so they do not pile up.
550
# Also quote any args containing shell metacharacters.
551
ac_configure_args=
552
for ac_arg
553
do
554
  case "$ac_arg" in
555
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
556
  | --no-cr | --no-c) ;;
557
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
558
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
559
  *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
560
  ac_configure_args="$ac_configure_args '$ac_arg'" ;;
561
  *) ac_configure_args="$ac_configure_args $ac_arg" ;;
562
  esac
563
done
564
 
565
# NLS nuisances.
566
# Only set these to C if already set.  These must not be set unconditionally
567
# because not all systems understand e.g. LANG=C (notably SCO).
568
# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
569
# Non-C LC_CTYPE values break the ctype check.
570
if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
571
if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
572
if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
573
if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
574
 
575
# confdefs.h avoids OS command line length limits that DEFS can exceed.
576
rm -rf conftest* confdefs.h
577
# AIX cpp loses on an empty file, so make sure it contains at least a newline.
578
echo > confdefs.h
579
 
580
# A filename unique to this package, relative to the directory that
581
# configure is in, which we can look for to find out if srcdir is correct.
582
ac_unique_file=libmad/decoder.h
583
 
584
# Find the source files, if location was not specified.
585
if test -z "$srcdir"; then
586
  ac_srcdir_defaulted=yes
587
  # Try the directory containing this script, then its parent.
588
  ac_prog=$0
589
  ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
590
  test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
591
  srcdir=$ac_confdir
592
  if test ! -r $srcdir/$ac_unique_file; then
593
    srcdir=..
594
  fi
595
else
596
  ac_srcdir_defaulted=no
597
fi
598
if test ! -r $srcdir/$ac_unique_file; then
599
  if test "$ac_srcdir_defaulted" = yes; then
600
    { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
601
  else
602
    { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
603
  fi
604
fi
605
srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
606
 
607
# Prefer explicitly selected file to automatically selected ones.
608
if test -z "$CONFIG_SITE"; then
609
  if test "x$prefix" != xNONE; then
610
    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
611
  else
612
    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
613
  fi
614
fi
615
for ac_site_file in $CONFIG_SITE; do
616
  if test -r "$ac_site_file"; then
617
    echo "loading site script $ac_site_file"
618
    . "$ac_site_file"
619
  fi
620
done
621
 
622
if test -r "$cache_file"; then
623
  echo "loading cache $cache_file"
624
  . $cache_file
625
else
626
  echo "creating cache $cache_file"
627
  > $cache_file
628
fi
629
 
630
ac_ext=c
631
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
632
ac_cpp='$CPP $CPPFLAGS'
633
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
634
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
635
cross_compiling=$ac_cv_prog_cc_cross
636
 
637
ac_exeext=
638
ac_objext=o
639
if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
640
  # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
641
  if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
642
    ac_n= ac_c='
643
' ac_t='        '
644
  else
645
    ac_n=-n ac_c= ac_t=
646
  fi
647
else
648
  ac_n= ac_c='\c' ac_t=
649
fi
650
 
651
 
652
ac_aux_dir=
653
for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
654
  if test -f $ac_dir/install-sh; then
655
    ac_aux_dir=$ac_dir
656
    ac_install_sh="$ac_aux_dir/install-sh -c"
657
    break
658
  elif test -f $ac_dir/install.sh; then
659
    ac_aux_dir=$ac_dir
660
    ac_install_sh="$ac_aux_dir/install.sh -c"
661
    break
662
  fi
663
done
664
if test -z "$ac_aux_dir"; then
665
  { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
666
fi
667
ac_config_guess=$ac_aux_dir/config.guess
668
ac_config_sub=$ac_aux_dir/config.sub
669
ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
670
 
671
# Find a good install program.  We prefer a C program (faster),
672
# so one script is as good as another.  But avoid the broken or
673
# incompatible versions:
674
# SysV /etc/install, /usr/sbin/install
675
# SunOS /usr/etc/install
676
# IRIX /sbin/install
677
# AIX /bin/install
678
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
679
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
680
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
681
# ./install, which can be erroneously created by make from ./install.sh.
682
echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
683
echo "configure:684: checking for a BSD compatible install" >&5
684
if test -z "$INSTALL"; then
685
if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
686
  echo $ac_n "(cached) $ac_c" 1>&6
687
else
688
    IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS=":"
689
  for ac_dir in $PATH; do
690
    # Account for people who put trailing slashes in PATH elements.
691
    case "$ac_dir/" in
692
    /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
693
    *)
694
      # OSF1 and SCO ODT 3.0 have their own names for install.
695
      # Don't use installbsd from OSF since it installs stuff as root
696
      # by default.
697
      for ac_prog in ginstall scoinst install; do
698
        if test -f $ac_dir/$ac_prog; then
699
          if test $ac_prog = install &&
700
            grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
701
            # AIX install.  It has an incompatible calling convention.
702
            :
703
          else
704
            ac_cv_path_install="$ac_dir/$ac_prog -c"
705
            break 2
706
          fi
707
        fi
708
      done
709
      ;;
710
    esac
711
  done
712
  IFS="$ac_save_IFS"
713
 
714
fi
715
  if test "${ac_cv_path_install+set}" = set; then
716
    INSTALL="$ac_cv_path_install"
717
  else
718
    # As a last resort, use the slow shell script.  We don't cache a
719
    # path for INSTALL within a source directory, because that will
720
    # break other packages using the cache if that directory is
721
    # removed, or if the path is relative.
722
    INSTALL="$ac_install_sh"
723
  fi
724
fi
725
echo "$ac_t""$INSTALL" 1>&6
726
 
727
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
728
# It thinks the first close brace ends the variable substitution.
729
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
730
 
731
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
732
 
733
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
734
 
735
echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
736
echo "configure:737: checking whether build environment is sane" >&5
737
# Just in case
738
sleep 1
739
echo timestamp > conftestfile
740
# Do `set' in a subshell so we don't clobber the current shell's
741
# arguments.  Must try -L first in case configure is actually a
742
# symlink; some systems play weird games with the mod time of symlinks
743
# (eg FreeBSD returns the mod time of the symlink's containing
744
# directory).
745
if (
746
   set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
747
   if test "$*" = "X"; then
748
      # -L didn't work.
749
      set X `ls -t $srcdir/configure conftestfile`
750
   fi
751
   if test "$*" != "X $srcdir/configure conftestfile" \
752
      && test "$*" != "X conftestfile $srcdir/configure"; then
753
 
754
      # If neither matched, then we have a broken ls.  This can happen
755
      # if, for instance, CONFIG_SHELL is bash and it inherits a
756
      # broken ls alias from the environment.  This has actually
757
      # happened.  Such a system could not be considered "sane".
758
      { echo "configure: error: ls -t appears to fail.  Make sure there is not a broken
759
alias in your environment" 1>&2; exit 1; }
760
   fi
761
 
762
   test "$2" = conftestfile
763
   )
764
then
765
   # Ok.
766
   :
767
else
768
   { echo "configure: error: newly created file is older than distributed files!
769
Check your system clock" 1>&2; exit 1; }
770
fi
771
rm -f conftest*
772
echo "$ac_t""yes" 1>&6
773
if test "$program_transform_name" = s,x,x,; then
774
  program_transform_name=
775
else
776
  # Double any \ or $.  echo might interpret backslashes.
777
  cat <<\EOF_SED > conftestsed
778
s,\\,\\\\,g; s,\$,$$,g
779
EOF_SED
780
  program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
781
  rm -f conftestsed
782
fi
783
test "$program_prefix" != NONE &&
784
  program_transform_name="s,^,${program_prefix},; $program_transform_name"
785
# Use a double $ so make ignores it.
786
test "$program_suffix" != NONE &&
787
  program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
788
 
789
# sed with no file args requires a program.
790
test "$program_transform_name" = "" && program_transform_name="s,x,x,"
791
 
792
echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
793
echo "configure:794: checking whether ${MAKE-make} sets \${MAKE}" >&5
794
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
795
if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
796
  echo $ac_n "(cached) $ac_c" 1>&6
797
else
798
  cat > conftestmake <<\EOF
799
all:
800
        @echo 'ac_maketemp="${MAKE}"'
801
EOF
802
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
803
eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
804
if test -n "$ac_maketemp"; then
805
  eval ac_cv_prog_make_${ac_make}_set=yes
806
else
807
  eval ac_cv_prog_make_${ac_make}_set=no
808
fi
809
rm -f conftestmake
810
fi
811
if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
812
  echo "$ac_t""yes" 1>&6
813
  SET_MAKE=
814
else
815
  echo "$ac_t""no" 1>&6
816
  SET_MAKE="MAKE=${MAKE-make}"
817
fi
818
 
819
 
820
PACKAGE=mad
821
 
822
VERSION=0.13.0b
823
 
824
if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
825
  { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
826
fi
827
cat >> confdefs.h <
828
#define PACKAGE "$PACKAGE"
829
EOF
830
 
831
cat >> confdefs.h <
832
#define VERSION "$VERSION"
833
EOF
834
 
835
 
836
 
837
missing_dir=`cd $ac_aux_dir && pwd`
838
echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
839
echo "configure:840: checking for working aclocal" >&5
840
# Run test in a subshell; some versions of sh will print an error if
841
# an executable is not found, even if stderr is redirected.
842
# Redirect stdin to placate older versions of autoconf.  Sigh.
843
if (aclocal --version) < /dev/null > /dev/null 2>&1; then
844
   ACLOCAL=aclocal
845
   echo "$ac_t""found" 1>&6
846
else
847
   ACLOCAL="$missing_dir/missing aclocal"
848
   echo "$ac_t""missing" 1>&6
849
fi
850
 
851
echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
852
echo "configure:853: checking for working autoconf" >&5
853
# Run test in a subshell; some versions of sh will print an error if
854
# an executable is not found, even if stderr is redirected.
855
# Redirect stdin to placate older versions of autoconf.  Sigh.
856
if (autoconf --version) < /dev/null > /dev/null 2>&1; then
857
   AUTOCONF=autoconf
858
   echo "$ac_t""found" 1>&6
859
else
860
   AUTOCONF="$missing_dir/missing autoconf"
861
   echo "$ac_t""missing" 1>&6
862
fi
863
 
864
echo $ac_n "checking for working automake""... $ac_c" 1>&6
865
echo "configure:866: checking for working automake" >&5
866
# Run test in a subshell; some versions of sh will print an error if
867
# an executable is not found, even if stderr is redirected.
868
# Redirect stdin to placate older versions of autoconf.  Sigh.
869
if (automake --version) < /dev/null > /dev/null 2>&1; then
870
   AUTOMAKE=automake
871
   echo "$ac_t""found" 1>&6
872
else
873
   AUTOMAKE="$missing_dir/missing automake"
874
   echo "$ac_t""missing" 1>&6
875
fi
876
 
877
echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
878
echo "configure:879: checking for working autoheader" >&5
879
# Run test in a subshell; some versions of sh will print an error if
880
# an executable is not found, even if stderr is redirected.
881
# Redirect stdin to placate older versions of autoconf.  Sigh.
882
if (autoheader --version) < /dev/null > /dev/null 2>&1; then
883
   AUTOHEADER=autoheader
884
   echo "$ac_t""found" 1>&6
885
else
886
   AUTOHEADER="$missing_dir/missing autoheader"
887
   echo "$ac_t""missing" 1>&6
888
fi
889
 
890
echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
891
echo "configure:892: checking for working makeinfo" >&5
892
# Run test in a subshell; some versions of sh will print an error if
893
# an executable is not found, even if stderr is redirected.
894
# Redirect stdin to placate older versions of autoconf.  Sigh.
895
if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
896
   MAKEINFO=makeinfo
897
   echo "$ac_t""found" 1>&6
898
else
899
   MAKEINFO="$missing_dir/missing makeinfo"
900
   echo "$ac_t""missing" 1>&6
901
fi
902
 
903
 
904
 
905
 
906
 
907
 
908
subdirs="libmad"
909
 
910
 
911
 
912
 
913
# Make sure we can run config.sub.
914
if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
915
else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
916
fi
917
 
918
echo $ac_n "checking host system type""... $ac_c" 1>&6
919
echo "configure:920: checking host system type" >&5
920
 
921
host_alias=$host
922
case "$host_alias" in
923
NONE)
924
  case $nonopt in
925
  NONE)
926
    if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
927
    else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
928
    fi ;;
929
  *) host_alias=$nonopt ;;
930
  esac ;;
931
esac
932
 
933
host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
934
host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
935
host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
936
host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
937
echo "$ac_t""$host" 1>&6
938
 
939
 
940
echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
941
echo "configure:942: checking whether ${MAKE-make} sets \${MAKE}" >&5
942
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
943
if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
944
  echo $ac_n "(cached) $ac_c" 1>&6
945
else
946
  cat > conftestmake <<\EOF
947
all:
948
        @echo 'ac_maketemp="${MAKE}"'
949
EOF
950
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
951
eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
952
if test -n "$ac_maketemp"; then
953
  eval ac_cv_prog_make_${ac_make}_set=yes
954
else
955
  eval ac_cv_prog_make_${ac_make}_set=no
956
fi
957
rm -f conftestmake
958
fi
959
if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
960
  echo "$ac_t""yes" 1>&6
961
  SET_MAKE=
962
else
963
  echo "$ac_t""no" 1>&6
964
  SET_MAKE="MAKE=${MAKE-make}"
965
fi
966
 
967
echo $ac_n "checking build system type""... $ac_c" 1>&6
968
echo "configure:969: checking build system type" >&5
969
 
970
build_alias=$build
971
case "$build_alias" in
972
NONE)
973
  case $nonopt in
974
  NONE) build_alias=$host_alias ;;
975
  *) build_alias=$nonopt ;;
976
  esac ;;
977
esac
978
 
979
build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
980
build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
981
build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
982
build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
983
echo "$ac_t""$build" 1>&6
984
 
985
if test $host != $build; then
986
  ac_tool_prefix=${host_alias}-
987
else
988
  ac_tool_prefix=
989
fi
990
 
991
# Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
992
set dummy ${ac_tool_prefix}cc; ac_word=$2
993
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
994
echo "configure:995: checking for $ac_word" >&5
995
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
996
  echo $ac_n "(cached) $ac_c" 1>&6
997
else
998
  if test -n "$CC"; then
999
  ac_cv_prog_CC="$CC" # Let the user override the test.
1000
else
1001
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1002
  ac_dummy="$PATH"
1003
  for ac_dir in $ac_dummy; do
1004
    test -z "$ac_dir" && ac_dir=.
1005
    if test -f $ac_dir/$ac_word; then
1006
      ac_cv_prog_CC="${ac_tool_prefix}cc"
1007
      break
1008
    fi
1009
  done
1010
  IFS="$ac_save_ifs"
1011
fi
1012
fi
1013
CC="$ac_cv_prog_CC"
1014
if test -n "$CC"; then
1015
  echo "$ac_t""$CC" 1>&6
1016
else
1017
  echo "$ac_t""no" 1>&6
1018
fi
1019
 
1020
 
1021
if test -z "$ac_cv_prog_CC"; then
1022
if test -n "$ac_tool_prefix"; then
1023
  # Extract the first word of "cc", so it can be a program name with args.
1024
set dummy cc; ac_word=$2
1025
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1026
echo "configure:1027: checking for $ac_word" >&5
1027
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1028
  echo $ac_n "(cached) $ac_c" 1>&6
1029
else
1030
  if test -n "$CC"; then
1031
  ac_cv_prog_CC="$CC" # Let the user override the test.
1032
else
1033
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1034
  ac_dummy="$PATH"
1035
  for ac_dir in $ac_dummy; do
1036
    test -z "$ac_dir" && ac_dir=.
1037
    if test -f $ac_dir/$ac_word; then
1038
      ac_cv_prog_CC="cc"
1039
      break
1040
    fi
1041
  done
1042
  IFS="$ac_save_ifs"
1043
  test -z "$ac_cv_prog_CC" && ac_cv_prog_CC=":"
1044
fi
1045
fi
1046
CC="$ac_cv_prog_CC"
1047
if test -n "$CC"; then
1048
  echo "$ac_t""$CC" 1>&6
1049
else
1050
  echo "$ac_t""no" 1>&6
1051
fi
1052
 
1053
else
1054
  CC=":"
1055
fi
1056
fi
1057
 
1058
# Find a good install program.  We prefer a C program (faster),
1059
# so one script is as good as another.  But avoid the broken or
1060
# incompatible versions:
1061
# SysV /etc/install, /usr/sbin/install
1062
# SunOS /usr/etc/install
1063
# IRIX /sbin/install
1064
# AIX /bin/install
1065
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1066
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1067
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1068
# ./install, which can be erroneously created by make from ./install.sh.
1069
echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1070
echo "configure:1071: checking for a BSD compatible install" >&5
1071
if test -z "$INSTALL"; then
1072
if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1073
  echo $ac_n "(cached) $ac_c" 1>&6
1074
else
1075
    IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS=":"
1076
  for ac_dir in $PATH; do
1077
    # Account for people who put trailing slashes in PATH elements.
1078
    case "$ac_dir/" in
1079
    /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1080
    *)
1081
      # OSF1 and SCO ODT 3.0 have their own names for install.
1082
      # Don't use installbsd from OSF since it installs stuff as root
1083
      # by default.
1084
      for ac_prog in ginstall scoinst install; do
1085
        if test -f $ac_dir/$ac_prog; then
1086
          if test $ac_prog = install &&
1087
            grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1088
            # AIX install.  It has an incompatible calling convention.
1089
            :
1090
          else
1091
            ac_cv_path_install="$ac_dir/$ac_prog -c"
1092
            break 2
1093
          fi
1094
        fi
1095
      done
1096
      ;;
1097
    esac
1098
  done
1099
  IFS="$ac_save_IFS"
1100
 
1101
fi
1102
  if test "${ac_cv_path_install+set}" = set; then
1103
    INSTALL="$ac_cv_path_install"
1104
  else
1105
    # As a last resort, use the slow shell script.  We don't cache a
1106
    # path for INSTALL within a source directory, because that will
1107
    # break other packages using the cache if that directory is
1108
    # removed, or if the path is relative.
1109
    INSTALL="$ac_install_sh"
1110
  fi
1111
fi
1112
echo "$ac_t""$INSTALL" 1>&6
1113
 
1114
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1115
# It thinks the first close brace ends the variable substitution.
1116
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1117
 
1118
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1119
 
1120
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1121
 
1122
# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1123
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1124
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1125
echo "configure:1126: checking for $ac_word" >&5
1126
if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1127
  echo $ac_n "(cached) $ac_c" 1>&6
1128
else
1129
  if test -n "$RANLIB"; then
1130
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1131
else
1132
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1133
  ac_dummy="$PATH"
1134
  for ac_dir in $ac_dummy; do
1135
    test -z "$ac_dir" && ac_dir=.
1136
    if test -f $ac_dir/$ac_word; then
1137
      ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1138
      break
1139
    fi
1140
  done
1141
  IFS="$ac_save_ifs"
1142
fi
1143
fi
1144
RANLIB="$ac_cv_prog_RANLIB"
1145
if test -n "$RANLIB"; then
1146
  echo "$ac_t""$RANLIB" 1>&6
1147
else
1148
  echo "$ac_t""no" 1>&6
1149
fi
1150
 
1151
 
1152
if test -z "$ac_cv_prog_RANLIB"; then
1153
if test -n "$ac_tool_prefix"; then
1154
  # Extract the first word of "ranlib", so it can be a program name with args.
1155
set dummy ranlib; ac_word=$2
1156
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1157
echo "configure:1158: checking for $ac_word" >&5
1158
if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1159
  echo $ac_n "(cached) $ac_c" 1>&6
1160
else
1161
  if test -n "$RANLIB"; then
1162
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1163
else
1164
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1165
  ac_dummy="$PATH"
1166
  for ac_dir in $ac_dummy; do
1167
    test -z "$ac_dir" && ac_dir=.
1168
    if test -f $ac_dir/$ac_word; then
1169
      ac_cv_prog_RANLIB="ranlib"
1170
      break
1171
    fi
1172
  done
1173
  IFS="$ac_save_ifs"
1174
  test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1175
fi
1176
fi
1177
RANLIB="$ac_cv_prog_RANLIB"
1178
if test -n "$RANLIB"; then
1179
  echo "$ac_t""$RANLIB" 1>&6
1180
else
1181
  echo "$ac_t""no" 1>&6
1182
fi
1183
 
1184
else
1185
  RANLIB=":"
1186
fi
1187
fi
1188
 
1189
# Extract the first word of "gcc", so it can be a program name with args.
1190
set dummy gcc; ac_word=$2
1191
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1192
echo "configure:1193: checking for $ac_word" >&5
1193
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1194
  echo $ac_n "(cached) $ac_c" 1>&6
1195
else
1196
  if test -n "$CC"; then
1197
  ac_cv_prog_CC="$CC" # Let the user override the test.
1198
else
1199
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1200
  ac_dummy="$PATH"
1201
  for ac_dir in $ac_dummy; do
1202
    test -z "$ac_dir" && ac_dir=.
1203
    if test -f $ac_dir/$ac_word; then
1204
      ac_cv_prog_CC="gcc"
1205
      break
1206
    fi
1207
  done
1208
  IFS="$ac_save_ifs"
1209
fi
1210
fi
1211
CC="$ac_cv_prog_CC"
1212
if test -n "$CC"; then
1213
  echo "$ac_t""$CC" 1>&6
1214
else
1215
  echo "$ac_t""no" 1>&6
1216
fi
1217
 
1218
if test -z "$CC"; then
1219
  # Extract the first word of "cc", so it can be a program name with args.
1220
set dummy cc; ac_word=$2
1221
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1222
echo "configure:1223: checking for $ac_word" >&5
1223
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1224
  echo $ac_n "(cached) $ac_c" 1>&6
1225
else
1226
  if test -n "$CC"; then
1227
  ac_cv_prog_CC="$CC" # Let the user override the test.
1228
else
1229
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1230
  ac_prog_rejected=no
1231
  ac_dummy="$PATH"
1232
  for ac_dir in $ac_dummy; do
1233
    test -z "$ac_dir" && ac_dir=.
1234
    if test -f $ac_dir/$ac_word; then
1235
      if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1236
        ac_prog_rejected=yes
1237
        continue
1238
      fi
1239
      ac_cv_prog_CC="cc"
1240
      break
1241
    fi
1242
  done
1243
  IFS="$ac_save_ifs"
1244
if test $ac_prog_rejected = yes; then
1245
  # We found a bogon in the path, so make sure we never use it.
1246
  set dummy $ac_cv_prog_CC
1247
  shift
1248
  if test $# -gt 0; then
1249
    # We chose a different compiler from the bogus one.
1250
    # However, it has the same basename, so the bogon will be chosen
1251
    # first if we set CC to just the basename; use the full file name.
1252
    shift
1253
    set dummy "$ac_dir/$ac_word" "$@"
1254
    shift
1255
    ac_cv_prog_CC="$@"
1256
  fi
1257
fi
1258
fi
1259
fi
1260
CC="$ac_cv_prog_CC"
1261
if test -n "$CC"; then
1262
  echo "$ac_t""$CC" 1>&6
1263
else
1264
  echo "$ac_t""no" 1>&6
1265
fi
1266
 
1267
  if test -z "$CC"; then
1268
    case "`uname -s`" in
1269
    *win32* | *WIN32*)
1270
      # Extract the first word of "cl", so it can be a program name with args.
1271
set dummy cl; ac_word=$2
1272
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1273
echo "configure:1274: checking for $ac_word" >&5
1274
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1275
  echo $ac_n "(cached) $ac_c" 1>&6
1276
else
1277
  if test -n "$CC"; then
1278
  ac_cv_prog_CC="$CC" # Let the user override the test.
1279
else
1280
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1281
  ac_dummy="$PATH"
1282
  for ac_dir in $ac_dummy; do
1283
    test -z "$ac_dir" && ac_dir=.
1284
    if test -f $ac_dir/$ac_word; then
1285
      ac_cv_prog_CC="cl"
1286
      break
1287
    fi
1288
  done
1289
  IFS="$ac_save_ifs"
1290
fi
1291
fi
1292
CC="$ac_cv_prog_CC"
1293
if test -n "$CC"; then
1294
  echo "$ac_t""$CC" 1>&6
1295
else
1296
  echo "$ac_t""no" 1>&6
1297
fi
1298
 ;;
1299
    esac
1300
  fi
1301
  test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1302
fi
1303
 
1304
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1305
echo "configure:1306: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1306
 
1307
ac_ext=c
1308
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1309
ac_cpp='$CPP $CPPFLAGS'
1310
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1311
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1312
cross_compiling=$ac_cv_prog_cc_cross
1313
 
1314
cat > conftest.$ac_ext << EOF
1315
 
1316
#line 1317 "configure"
1317
#include "confdefs.h"
1318
 
1319
main(){return(0);}
1320
EOF
1321
if { (eval echo configure:1322: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1322
  ac_cv_prog_cc_works=yes
1323
  # If we can't run a trivial program, we are probably using a cross compiler.
1324
  if (./conftest; exit) 2>/dev/null; then
1325
    ac_cv_prog_cc_cross=no
1326
  else
1327
    ac_cv_prog_cc_cross=yes
1328
  fi
1329
else
1330
  echo "configure: failed program was:" >&5
1331
  cat conftest.$ac_ext >&5
1332
  ac_cv_prog_cc_works=no
1333
fi
1334
rm -fr conftest*
1335
ac_ext=c
1336
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1337
ac_cpp='$CPP $CPPFLAGS'
1338
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1339
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1340
cross_compiling=$ac_cv_prog_cc_cross
1341
 
1342
echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1343
if test $ac_cv_prog_cc_works = no; then
1344
  { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1345
fi
1346
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1347
echo "configure:1348: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1348
echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1349
cross_compiling=$ac_cv_prog_cc_cross
1350
 
1351
echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1352
echo "configure:1353: checking whether we are using GNU C" >&5
1353
if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1354
  echo $ac_n "(cached) $ac_c" 1>&6
1355
else
1356
  cat > conftest.c <
1357
#ifdef __GNUC__
1358
  yes;
1359
#endif
1360
EOF
1361
if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1362: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1362
  ac_cv_prog_gcc=yes
1363
else
1364
  ac_cv_prog_gcc=no
1365
fi
1366
fi
1367
 
1368
echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1369
 
1370
if test $ac_cv_prog_gcc = yes; then
1371
  GCC=yes
1372
else
1373
  GCC=
1374
fi
1375
 
1376
ac_test_CFLAGS="${CFLAGS+set}"
1377
ac_save_CFLAGS="$CFLAGS"
1378
CFLAGS=
1379
echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1380
echo "configure:1381: checking whether ${CC-cc} accepts -g" >&5
1381
if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1382
  echo $ac_n "(cached) $ac_c" 1>&6
1383
else
1384
  echo 'void f(){}' > conftest.c
1385
if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1386
  ac_cv_prog_cc_g=yes
1387
else
1388
  ac_cv_prog_cc_g=no
1389
fi
1390
rm -f conftest*
1391
 
1392
fi
1393
 
1394
echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1395
if test "$ac_test_CFLAGS" = set; then
1396
  CFLAGS="$ac_save_CFLAGS"
1397
elif test $ac_cv_prog_cc_g = yes; then
1398
  if test "$GCC" = yes; then
1399
    CFLAGS="-g -O2"
1400
  else
1401
    CFLAGS="-g"
1402
  fi
1403
else
1404
  if test "$GCC" = yes; then
1405
    CFLAGS="-O2"
1406
  else
1407
    CFLAGS=
1408
  fi
1409
fi
1410
 
1411
echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
1412
echo "configure:1413: checking for POSIXized ISC" >&5
1413
if test -d /etc/conf/kconfig.d &&
1414
  grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
1415
then
1416
  echo "$ac_t""yes" 1>&6
1417
  ISC=yes # If later tests want to check for ISC.
1418
  cat >> confdefs.h <<\EOF
1419
#define _POSIX_SOURCE 1
1420
EOF
1421
 
1422
  if test "$GCC" = yes; then
1423
    CC="$CC -posix"
1424
  else
1425
    CC="$CC -Xp"
1426
  fi
1427
else
1428
  echo "$ac_t""no" 1>&6
1429
  ISC=
1430
fi
1431
 
1432
 
1433
 
1434
echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1435
echo "configure:1436: checking how to run the C preprocessor" >&5
1436
# On Suns, sometimes $CPP names a directory.
1437
if test -n "$CPP" && test -d "$CPP"; then
1438
  CPP=
1439
fi
1440
if test -z "$CPP"; then
1441
if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1442
  echo $ac_n "(cached) $ac_c" 1>&6
1443
else
1444
    # This must be in double quotes, not single quotes, because CPP may get
1445
  # substituted into the Makefile and "${CC-cc}" will confuse make.
1446
  CPP="${CC-cc} -E"
1447
  # On the NeXT, cc -E runs the code through the compiler's parser,
1448
  # not just through cpp.
1449
  cat > conftest.$ac_ext <
1450
#line 1451 "configure"
1451
#include "confdefs.h"
1452
#include 
1453
Syntax Error
1454
EOF
1455
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1456
{ (eval echo configure:1457: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1457
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1458
if test -z "$ac_err"; then
1459
  :
1460
else
1461
  echo "$ac_err" >&5
1462
  echo "configure: failed program was:" >&5
1463
  cat conftest.$ac_ext >&5
1464
  rm -rf conftest*
1465
  CPP="${CC-cc} -E -traditional-cpp"
1466
  cat > conftest.$ac_ext <
1467
#line 1468 "configure"
1468
#include "confdefs.h"
1469
#include 
1470
Syntax Error
1471
EOF
1472
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1473
{ (eval echo configure:1474: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1474
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1475
if test -z "$ac_err"; then
1476
  :
1477
else
1478
  echo "$ac_err" >&5
1479
  echo "configure: failed program was:" >&5
1480
  cat conftest.$ac_ext >&5
1481
  rm -rf conftest*
1482
  CPP="${CC-cc} -nologo -E"
1483
  cat > conftest.$ac_ext <
1484
#line 1485 "configure"
1485
#include "confdefs.h"
1486
#include 
1487
Syntax Error
1488
EOF
1489
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1490
{ (eval echo configure:1491: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1491
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1492
if test -z "$ac_err"; then
1493
  :
1494
else
1495
  echo "$ac_err" >&5
1496
  echo "configure: failed program was:" >&5
1497
  cat conftest.$ac_ext >&5
1498
  rm -rf conftest*
1499
  CPP=/lib/cpp
1500
fi
1501
rm -f conftest*
1502
fi
1503
rm -f conftest*
1504
fi
1505
rm -f conftest*
1506
  ac_cv_prog_CPP="$CPP"
1507
fi
1508
  CPP="$ac_cv_prog_CPP"
1509
else
1510
  ac_cv_prog_CPP="$CPP"
1511
fi
1512
echo "$ac_t""$CPP" 1>&6
1513
 
1514
if test $ac_cv_prog_gcc = yes; then
1515
    echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
1516
echo "configure:1517: checking whether ${CC-cc} needs -traditional" >&5
1517
if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
1518
  echo $ac_n "(cached) $ac_c" 1>&6
1519
else
1520
    ac_pattern="Autoconf.*'x'"
1521
  cat > conftest.$ac_ext <
1522
#line 1523 "configure"
1523
#include "confdefs.h"
1524
#include 
1525
Autoconf TIOCGETP
1526
EOF
1527
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1528
  egrep "$ac_pattern" >/dev/null 2>&1; then
1529
  rm -rf conftest*
1530
  ac_cv_prog_gcc_traditional=yes
1531
else
1532
  rm -rf conftest*
1533
  ac_cv_prog_gcc_traditional=no
1534
fi
1535
rm -f conftest*
1536
 
1537
 
1538
  if test $ac_cv_prog_gcc_traditional = no; then
1539
    cat > conftest.$ac_ext <
1540
#line 1541 "configure"
1541
#include "confdefs.h"
1542
#include 
1543
Autoconf TCGETA
1544
EOF
1545
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1546
  egrep "$ac_pattern" >/dev/null 2>&1; then
1547
  rm -rf conftest*
1548
  ac_cv_prog_gcc_traditional=yes
1549
fi
1550
rm -f conftest*
1551
 
1552
  fi
1553
fi
1554
 
1555
echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
1556
  if test $ac_cv_prog_gcc_traditional = yes; then
1557
    CC="$CC -traditional"
1558
  fi
1559
fi
1560
 
1561
 
1562
arch=""
1563
debug=""
1564
optimize=""
1565
profile=""
1566
 
1567
set -- $CFLAGS
1568
CFLAGS="-Wall"
1569
 
1570
while test $# -gt 0
1571
do
1572
    case "$1" in
1573
        -Wall)
1574
            shift
1575
            ;;
1576
        -g)
1577
            debug="-g"
1578
            shift
1579
            ;;
1580
        -m*)
1581
            arch="$arch $1"
1582
            shift
1583
            ;;
1584
        -fomit-frame-pointer)
1585
            shift
1586
            ;;
1587
        -O*|-f*)
1588
            optimize="$1"
1589
            shift
1590
            ;;
1591
        *)
1592
            CFLAGS="$CFLAGS $1"
1593
            shift
1594
            ;;
1595
    esac
1596
done
1597
 
1598
case "$host" in
1599
    or32*)            cat >> confdefs.h <<\EOF
1600
#define EMBED 1
1601
EOF
1602
 ;;
1603
esac
1604
 
1605
if test "$GCC" = yes
1606
then
1607
    if test -z "$arch"
1608
    then
1609
        case "$host" in
1610
            i386-*)           ;;
1611
            i?86-*)           arch="-m486" ;;
1612
            arm*-empeg-*)     arch="-march=armv4 -mtune=strongarm1100" ;;
1613
            armv4*-*)         arch="-march=armv4 -mtune=strongarm" ;;
1614
            powerpc-*)        ;;
1615
            mips*-agenda-*)   arch="-mcpu=vr4100" ;;
1616
            mips*-luxsonor-*) arch="-mips1 -mcpu=r3000 -Wa,-m4010" ;;
1617
            or32*)            arch="-mhard-div -nostdlib" ;;
1618
        esac
1619
    fi
1620
 
1621
    if test -n "$optimize"
1622
    then
1623
        : #? optimize="$optimize -funroll-loops"
1624
        : #? optimize="$optimize -finline-functions"
1625
    fi
1626
fi
1627
 
1628
 
1629
echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1630
echo "configure:1631: checking for ANSI C header files" >&5
1631
if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1632
  echo $ac_n "(cached) $ac_c" 1>&6
1633
else
1634
  cat > conftest.$ac_ext <
1635
#line 1636 "configure"
1636
#include "confdefs.h"
1637
#include 
1638
#include 
1639
#include 
1640
#include 
1641
EOF
1642
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1643
{ (eval echo configure:1644: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1644
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1645
if test -z "$ac_err"; then
1646
  rm -rf conftest*
1647
  ac_cv_header_stdc=yes
1648
else
1649
  echo "$ac_err" >&5
1650
  echo "configure: failed program was:" >&5
1651
  cat conftest.$ac_ext >&5
1652
  rm -rf conftest*
1653
  ac_cv_header_stdc=no
1654
fi
1655
rm -f conftest*
1656
 
1657
if test $ac_cv_header_stdc = yes; then
1658
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1659
cat > conftest.$ac_ext <
1660
#line 1661 "configure"
1661
#include "confdefs.h"
1662
#include 
1663
EOF
1664
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1665
  egrep "memchr" >/dev/null 2>&1; then
1666
  :
1667
else
1668
  rm -rf conftest*
1669
  ac_cv_header_stdc=no
1670
fi
1671
rm -f conftest*
1672
 
1673
fi
1674
 
1675
if test $ac_cv_header_stdc = yes; then
1676
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1677
cat > conftest.$ac_ext <
1678
#line 1679 "configure"
1679
#include "confdefs.h"
1680
#include 
1681
EOF
1682
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1683
  egrep "free" >/dev/null 2>&1; then
1684
  :
1685
else
1686
  rm -rf conftest*
1687
  ac_cv_header_stdc=no
1688
fi
1689
rm -f conftest*
1690
 
1691
fi
1692
 
1693
if test $ac_cv_header_stdc = yes; then
1694
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1695
if test "$cross_compiling" = yes; then
1696
  :
1697
else
1698
  cat > conftest.$ac_ext <
1699
#line 1700 "configure"
1700
#include "confdefs.h"
1701
#include 
1702
#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1703
#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1704
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1705
int main () { int i; for (i = 0; i < 256; i++)
1706
if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1707
exit (0); }
1708
 
1709
EOF
1710
if { (eval echo configure:1711: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1711
then
1712
  :
1713
else
1714
  echo "configure: failed program was:" >&5
1715
  cat conftest.$ac_ext >&5
1716
  rm -fr conftest*
1717
  ac_cv_header_stdc=no
1718
fi
1719
rm -fr conftest*
1720
fi
1721
 
1722
fi
1723
fi
1724
 
1725
echo "$ac_t""$ac_cv_header_stdc" 1>&6
1726
if test $ac_cv_header_stdc = yes; then
1727
  cat >> confdefs.h <<\EOF
1728
#define STDC_HEADERS 1
1729
EOF
1730
 
1731
fi
1732
 
1733
 
1734
 
1735
echo $ac_n "checking for working const""... $ac_c" 1>&6
1736
echo "configure:1737: checking for working const" >&5
1737
if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1738
  echo $ac_n "(cached) $ac_c" 1>&6
1739
else
1740
  cat > conftest.$ac_ext <
1741
#line 1742 "configure"
1742
#include "confdefs.h"
1743
 
1744
int main() {
1745
 
1746
/* Ultrix mips cc rejects this.  */
1747
typedef int charset[2]; const charset x;
1748
/* SunOS 4.1.1 cc rejects this.  */
1749
char const *const *ccp;
1750
char **p;
1751
/* NEC SVR4.0.2 mips cc rejects this.  */
1752
struct point {int x, y;};
1753
static struct point const zero = {0,0};
1754
/* AIX XL C 1.02.0.0 rejects this.
1755
   It does not let you subtract one const X* pointer from another in an arm
1756
   of an if-expression whose if-part is not a constant expression */
1757
const char *g = "string";
1758
ccp = &g + (g ? g-g : 0);
1759
/* HPUX 7.0 cc rejects these. */
1760
++ccp;
1761
p = (char**) ccp;
1762
ccp = (char const *const *) p;
1763
{ /* SCO 3.2v4 cc rejects this.  */
1764
  char *t;
1765
  char const *s = 0 ? (char *) 0 : (char const *) 0;
1766
 
1767
  *t++ = 0;
1768
}
1769
{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
1770
  int x[] = {25, 17};
1771
  const int *foo = &x[0];
1772
  ++foo;
1773
}
1774
{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1775
  typedef const int *iptr;
1776
  iptr p = 0;
1777
  ++p;
1778
}
1779
{ /* AIX XL C 1.02.0.0 rejects this saying
1780
     "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1781
  struct s { int j; const int *ap[3]; };
1782
  struct s *b; b->j = 5;
1783
}
1784
{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1785
  const int foo = 10;
1786
}
1787
 
1788
; return 0; }
1789
EOF
1790
if { (eval echo configure:1791: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1791
  rm -rf conftest*
1792
  ac_cv_c_const=yes
1793
else
1794
  echo "configure: failed program was:" >&5
1795
  cat conftest.$ac_ext >&5
1796
  rm -rf conftest*
1797
  ac_cv_c_const=no
1798
fi
1799
rm -f conftest*
1800
fi
1801
 
1802
echo "$ac_t""$ac_cv_c_const" 1>&6
1803
if test $ac_cv_c_const = no; then
1804
  cat >> confdefs.h <<\EOF
1805
#define const
1806
EOF
1807
 
1808
fi
1809
 
1810
echo $ac_n "checking for inline""... $ac_c" 1>&6
1811
echo "configure:1812: checking for inline" >&5
1812
if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1813
  echo $ac_n "(cached) $ac_c" 1>&6
1814
else
1815
  ac_cv_c_inline=no
1816
for ac_kw in inline __inline__ __inline; do
1817
  cat > conftest.$ac_ext <
1818
#line 1819 "configure"
1819
#include "confdefs.h"
1820
 
1821
int main() {
1822
} $ac_kw foo() {
1823
; return 0; }
1824
EOF
1825
if { (eval echo configure:1826: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1826
  rm -rf conftest*
1827
  ac_cv_c_inline=$ac_kw; break
1828
else
1829
  echo "configure: failed program was:" >&5
1830
  cat conftest.$ac_ext >&5
1831
fi
1832
rm -f conftest*
1833
done
1834
 
1835
fi
1836
 
1837
echo "$ac_t""$ac_cv_c_inline" 1>&6
1838
case "$ac_cv_c_inline" in
1839
  inline | yes) ;;
1840
  no) cat >> confdefs.h <<\EOF
1841
#define inline
1842
EOF
1843
 ;;
1844
  *)  cat >> confdefs.h <
1845
#define inline $ac_cv_c_inline
1846
EOF
1847
 ;;
1848
esac
1849
 
1850
 
1851
 
1852
echo $ac_n "checking for vprintf""... $ac_c" 1>&6
1853
echo "configure:1854: checking for vprintf" >&5
1854
if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
1855
  echo $ac_n "(cached) $ac_c" 1>&6
1856
else
1857
  cat > conftest.$ac_ext <
1858
#line 1859 "configure"
1859
#include "confdefs.h"
1860
/* System header to define __stub macros and hopefully few prototypes,
1861
    which can conflict with char vprintf(); below.  */
1862
#include 
1863
/* Override any gcc2 internal prototype to avoid an error.  */
1864
/* We use char because int might match the return type of a gcc2
1865
    builtin and then its argument prototype would still apply.  */
1866
char vprintf();
1867
 
1868
int main() {
1869
 
1870
/* The GNU C library defines this for functions which it implements
1871
    to always fail with ENOSYS.  Some functions are actually named
1872
    something starting with __ and the normal name is an alias.  */
1873
#if defined (__stub_vprintf) || defined (__stub___vprintf)
1874
choke me
1875
#else
1876
vprintf();
1877
#endif
1878
 
1879
; return 0; }
1880
EOF
1881
if { (eval echo configure:1882: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1882
  rm -rf conftest*
1883
  eval "ac_cv_func_vprintf=yes"
1884
else
1885
  echo "configure: failed program was:" >&5
1886
  cat conftest.$ac_ext >&5
1887
  rm -rf conftest*
1888
  eval "ac_cv_func_vprintf=no"
1889
fi
1890
rm -f conftest*
1891
fi
1892
 
1893
if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
1894
  echo "$ac_t""yes" 1>&6
1895
  cat >> confdefs.h <<\EOF
1896
#define HAVE_VPRINTF 1
1897
EOF
1898
 
1899
else
1900
  echo "$ac_t""no" 1>&6
1901
fi
1902
 
1903
if test "$ac_cv_func_vprintf" != yes; then
1904
echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
1905
echo "configure:1906: checking for _doprnt" >&5
1906
if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
1907
  echo $ac_n "(cached) $ac_c" 1>&6
1908
else
1909
  cat > conftest.$ac_ext <
1910
#line 1911 "configure"
1911
#include "confdefs.h"
1912
/* System header to define __stub macros and hopefully few prototypes,
1913
    which can conflict with char _doprnt(); below.  */
1914
#include 
1915
/* Override any gcc2 internal prototype to avoid an error.  */
1916
/* We use char because int might match the return type of a gcc2
1917
    builtin and then its argument prototype would still apply.  */
1918
char _doprnt();
1919
 
1920
int main() {
1921
 
1922
/* The GNU C library defines this for functions which it implements
1923
    to always fail with ENOSYS.  Some functions are actually named
1924
    something starting with __ and the normal name is an alias.  */
1925
#if defined (__stub__doprnt) || defined (__stub____doprnt)
1926
choke me
1927
#else
1928
_doprnt();
1929
#endif
1930
 
1931
; return 0; }
1932
EOF
1933
if { (eval echo configure:1934: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1934
  rm -rf conftest*
1935
  eval "ac_cv_func__doprnt=yes"
1936
else
1937
  echo "configure: failed program was:" >&5
1938
  cat conftest.$ac_ext >&5
1939
  rm -rf conftest*
1940
  eval "ac_cv_func__doprnt=no"
1941
fi
1942
rm -f conftest*
1943
fi
1944
 
1945
if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
1946
  echo "$ac_t""yes" 1>&6
1947
  cat >> confdefs.h <<\EOF
1948
#define HAVE_DOPRNT 1
1949
EOF
1950
 
1951
else
1952
  echo "$ac_t""no" 1>&6
1953
fi
1954
 
1955
fi
1956
 
1957
for ac_func in madvise
1958
do
1959
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1960
echo "configure:1961: checking for $ac_func" >&5
1961
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1962
  echo $ac_n "(cached) $ac_c" 1>&6
1963
else
1964
  cat > conftest.$ac_ext <
1965
#line 1966 "configure"
1966
#include "confdefs.h"
1967
/* System header to define __stub macros and hopefully few prototypes,
1968
    which can conflict with char $ac_func(); below.  */
1969
#include 
1970
/* Override any gcc2 internal prototype to avoid an error.  */
1971
/* We use char because int might match the return type of a gcc2
1972
    builtin and then its argument prototype would still apply.  */
1973
char $ac_func();
1974
 
1975
int main() {
1976
 
1977
/* The GNU C library defines this for functions which it implements
1978
    to always fail with ENOSYS.  Some functions are actually named
1979
    something starting with __ and the normal name is an alias.  */
1980
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1981
choke me
1982
#else
1983
$ac_func();
1984
#endif
1985
 
1986
; return 0; }
1987
EOF
1988
if { (eval echo configure:1989: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1989
  rm -rf conftest*
1990
  eval "ac_cv_func_$ac_func=yes"
1991
else
1992
  echo "configure: failed program was:" >&5
1993
  cat conftest.$ac_ext >&5
1994
  rm -rf conftest*
1995
  eval "ac_cv_func_$ac_func=no"
1996
fi
1997
rm -f conftest*
1998
fi
1999
 
2000
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2001
  echo "$ac_t""yes" 1>&6
2002
    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2003
  cat >> confdefs.h <
2004
#define $ac_tr_func 1
2005
EOF
2006
 
2007
else
2008
  echo "$ac_t""no" 1>&6
2009
fi
2010
done
2011
 
2012
for ac_func in strcasecmp strncasecmp
2013
do
2014
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2015
echo "configure:2016: checking for $ac_func" >&5
2016
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2017
  echo $ac_n "(cached) $ac_c" 1>&6
2018
else
2019
  cat > conftest.$ac_ext <
2020
#line 2021 "configure"
2021
#include "confdefs.h"
2022
/* System header to define __stub macros and hopefully few prototypes,
2023
    which can conflict with char $ac_func(); below.  */
2024
#include 
2025
/* Override any gcc2 internal prototype to avoid an error.  */
2026
/* We use char because int might match the return type of a gcc2
2027
    builtin and then its argument prototype would still apply.  */
2028
char $ac_func();
2029
 
2030
int main() {
2031
 
2032
/* The GNU C library defines this for functions which it implements
2033
    to always fail with ENOSYS.  Some functions are actually named
2034
    something starting with __ and the normal name is an alias.  */
2035
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2036
choke me
2037
#else
2038
$ac_func();
2039
#endif
2040
 
2041
; return 0; }
2042
EOF
2043
if { (eval echo configure:2044: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2044
  rm -rf conftest*
2045
  eval "ac_cv_func_$ac_func=yes"
2046
else
2047
  echo "configure: failed program was:" >&5
2048
  cat conftest.$ac_ext >&5
2049
  rm -rf conftest*
2050
  eval "ac_cv_func_$ac_func=no"
2051
fi
2052
rm -f conftest*
2053
fi
2054
 
2055
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2056
  echo "$ac_t""yes" 1>&6
2057
    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2058
  cat >> confdefs.h <
2059
#define $ac_tr_func 1
2060
EOF
2061
 
2062
else
2063
  echo "$ac_t""no" 1>&6
2064
LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}"
2065
fi
2066
done
2067
 
2068
 
2069
 
2070
echo $ac_n "checking for library containing pow""... $ac_c" 1>&6
2071
echo "configure:2072: checking for library containing pow" >&5
2072
if eval "test \"`echo '$''{'ac_cv_search_pow'+set}'`\" = set"; then
2073
  echo $ac_n "(cached) $ac_c" 1>&6
2074
else
2075
  ac_func_search_save_LIBS="$LIBS"
2076
ac_cv_search_pow="no"
2077
cat > conftest.$ac_ext <
2078
#line 2079 "configure"
2079
#include "confdefs.h"
2080
/* Override any gcc2 internal prototype to avoid an error.  */
2081
/* We use char because int might match the return type of a gcc2
2082
    builtin and then its argument prototype would still apply.  */
2083
char pow();
2084
 
2085
int main() {
2086
pow()
2087
; return 0; }
2088
EOF
2089
if { (eval echo configure:2090: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2090
  rm -rf conftest*
2091
  ac_cv_search_pow="none required"
2092
else
2093
  echo "configure: failed program was:" >&5
2094
  cat conftest.$ac_ext >&5
2095
fi
2096
rm -f conftest*
2097
test "$ac_cv_search_pow" = "no" && for i in m; do
2098
LIBS="-l$i  $ac_func_search_save_LIBS"
2099
cat > conftest.$ac_ext <
2100
#line 2101 "configure"
2101
#include "confdefs.h"
2102
/* Override any gcc2 internal prototype to avoid an error.  */
2103
/* We use char because int might match the return type of a gcc2
2104
    builtin and then its argument prototype would still apply.  */
2105
char pow();
2106
 
2107
int main() {
2108
pow()
2109
; return 0; }
2110
EOF
2111
if { (eval echo configure:2112: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2112
  rm -rf conftest*
2113
  ac_cv_search_pow="-l$i"
2114
break
2115
else
2116
  echo "configure: failed program was:" >&5
2117
  cat conftest.$ac_ext >&5
2118
fi
2119
rm -f conftest*
2120
done
2121
LIBS="$ac_func_search_save_LIBS"
2122
fi
2123
 
2124
echo "$ac_t""$ac_cv_search_pow" 1>&6
2125
if test "$ac_cv_search_pow" != "no"; then
2126
  test "$ac_cv_search_pow" = "none required" || LIBS="$ac_cv_search_pow $LIBS"
2127
 
2128
else :
2129
 
2130
fi
2131
 
2132
echo $ac_n "checking for library containing log10""... $ac_c" 1>&6
2133
echo "configure:2134: checking for library containing log10" >&5
2134
if eval "test \"`echo '$''{'ac_cv_search_log10'+set}'`\" = set"; then
2135
  echo $ac_n "(cached) $ac_c" 1>&6
2136
else
2137
  ac_func_search_save_LIBS="$LIBS"
2138
ac_cv_search_log10="no"
2139
cat > conftest.$ac_ext <
2140
#line 2141 "configure"
2141
#include "confdefs.h"
2142
/* Override any gcc2 internal prototype to avoid an error.  */
2143
/* We use char because int might match the return type of a gcc2
2144
    builtin and then its argument prototype would still apply.  */
2145
char log10();
2146
 
2147
int main() {
2148
log10()
2149
; return 0; }
2150
EOF
2151
if { (eval echo configure:2152: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2152
  rm -rf conftest*
2153
  ac_cv_search_log10="none required"
2154
else
2155
  echo "configure: failed program was:" >&5
2156
  cat conftest.$ac_ext >&5
2157
fi
2158
rm -f conftest*
2159
test "$ac_cv_search_log10" = "no" && for i in m; do
2160
LIBS="-l$i  $ac_func_search_save_LIBS"
2161
cat > conftest.$ac_ext <
2162
#line 2163 "configure"
2163
#include "confdefs.h"
2164
/* Override any gcc2 internal prototype to avoid an error.  */
2165
/* We use char because int might match the return type of a gcc2
2166
    builtin and then its argument prototype would still apply.  */
2167
char log10();
2168
 
2169
int main() {
2170
log10()
2171
; return 0; }
2172
EOF
2173
if { (eval echo configure:2174: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2174
  rm -rf conftest*
2175
  ac_cv_search_log10="-l$i"
2176
break
2177
else
2178
  echo "configure: failed program was:" >&5
2179
  cat conftest.$ac_ext >&5
2180
fi
2181
rm -f conftest*
2182
done
2183
LIBS="$ac_func_search_save_LIBS"
2184
fi
2185
 
2186
echo "$ac_t""$ac_cv_search_log10" 1>&6
2187
if test "$ac_cv_search_log10" != "no"; then
2188
  test "$ac_cv_search_log10" = "none required" || LIBS="$ac_cv_search_log10 $LIBS"
2189
 
2190
else :
2191
 
2192
fi
2193
 
2194
case "$host" in
2195
    *-linux*) cat >> confdefs.h <<\EOF
2196
#define HAVE_MMAP 1
2197
EOF
2198
 ;;
2199
    *)        for ac_hdr in unistd.h
2200
do
2201
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2202
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2203
echo "configure:2204: checking for $ac_hdr" >&5
2204
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2205
  echo $ac_n "(cached) $ac_c" 1>&6
2206
else
2207
  cat > conftest.$ac_ext <
2208
#line 2209 "configure"
2209
#include "confdefs.h"
2210
#include <$ac_hdr>
2211
EOF
2212
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2213
{ (eval echo configure:2214: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2214
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2215
if test -z "$ac_err"; then
2216
  rm -rf conftest*
2217
  eval "ac_cv_header_$ac_safe=yes"
2218
else
2219
  echo "$ac_err" >&5
2220
  echo "configure: failed program was:" >&5
2221
  cat conftest.$ac_ext >&5
2222
  rm -rf conftest*
2223
  eval "ac_cv_header_$ac_safe=no"
2224
fi
2225
rm -f conftest*
2226
fi
2227
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2228
  echo "$ac_t""yes" 1>&6
2229
    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2230
  cat >> confdefs.h <
2231
#define $ac_tr_hdr 1
2232
EOF
2233
 
2234
else
2235
  echo "$ac_t""no" 1>&6
2236
fi
2237
done
2238
 
2239
for ac_func in getpagesize
2240
do
2241
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2242
echo "configure:2243: checking for $ac_func" >&5
2243
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2244
  echo $ac_n "(cached) $ac_c" 1>&6
2245
else
2246
  cat > conftest.$ac_ext <
2247
#line 2248 "configure"
2248
#include "confdefs.h"
2249
/* System header to define __stub macros and hopefully few prototypes,
2250
    which can conflict with char $ac_func(); below.  */
2251
#include 
2252
/* Override any gcc2 internal prototype to avoid an error.  */
2253
/* We use char because int might match the return type of a gcc2
2254
    builtin and then its argument prototype would still apply.  */
2255
char $ac_func();
2256
 
2257
int main() {
2258
 
2259
/* The GNU C library defines this for functions which it implements
2260
    to always fail with ENOSYS.  Some functions are actually named
2261
    something starting with __ and the normal name is an alias.  */
2262
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2263
choke me
2264
#else
2265
$ac_func();
2266
#endif
2267
 
2268
; return 0; }
2269
EOF
2270
if { (eval echo configure:2271: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2271
  rm -rf conftest*
2272
  eval "ac_cv_func_$ac_func=yes"
2273
else
2274
  echo "configure: failed program was:" >&5
2275
  cat conftest.$ac_ext >&5
2276
  rm -rf conftest*
2277
  eval "ac_cv_func_$ac_func=no"
2278
fi
2279
rm -f conftest*
2280
fi
2281
 
2282
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2283
  echo "$ac_t""yes" 1>&6
2284
    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2285
  cat >> confdefs.h <
2286
#define $ac_tr_func 1
2287
EOF
2288
 
2289
else
2290
  echo "$ac_t""no" 1>&6
2291
fi
2292
done
2293
 
2294
echo $ac_n "checking for working mmap""... $ac_c" 1>&6
2295
echo "configure:2296: checking for working mmap" >&5
2296
if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
2297
  echo $ac_n "(cached) $ac_c" 1>&6
2298
else
2299
  if test "$cross_compiling" = yes; then
2300
  ac_cv_func_mmap_fixed_mapped=no
2301
else
2302
  cat > conftest.$ac_ext <
2303
#line 2304 "configure"
2304
#include "confdefs.h"
2305
 
2306
/* Thanks to Mike Haertel and Jim Avera for this test.
2307
   Here is a matrix of mmap possibilities:
2308
        mmap private not fixed
2309
        mmap private fixed at somewhere currently unmapped
2310
        mmap private fixed at somewhere already mapped
2311
        mmap shared not fixed
2312
        mmap shared fixed at somewhere currently unmapped
2313
        mmap shared fixed at somewhere already mapped
2314
   For private mappings, we should verify that changes cannot be read()
2315
   back from the file, nor mmap's back from the file at a different
2316
   address.  (There have been systems where private was not correctly
2317
   implemented like the infamous i386 svr4.0, and systems where the
2318
   VM page cache was not coherent with the filesystem buffer cache
2319
   like early versions of FreeBSD and possibly contemporary NetBSD.)
2320
   For shared mappings, we should conversely verify that changes get
2321
   propogated back to all the places they're supposed to be.
2322
 
2323
   Grep wants private fixed already mapped.
2324
   The main things grep needs to know about mmap are:
2325
   * does it exist and is it safe to write into the mmap'd area
2326
   * how to use it (BSD variants)  */
2327
#include 
2328
#include 
2329
#include 
2330
 
2331
/* This mess was copied from the GNU getpagesize.h.  */
2332
#ifndef HAVE_GETPAGESIZE
2333
# ifdef HAVE_UNISTD_H
2334
#  include 
2335
# endif
2336
 
2337
/* Assume that all systems that can run configure have sys/param.h.  */
2338
# ifndef HAVE_SYS_PARAM_H
2339
#  define HAVE_SYS_PARAM_H 1
2340
# endif
2341
 
2342
# ifdef _SC_PAGESIZE
2343
#  define getpagesize() sysconf(_SC_PAGESIZE)
2344
# else /* no _SC_PAGESIZE */
2345
#  ifdef HAVE_SYS_PARAM_H
2346
#   include 
2347
#   ifdef EXEC_PAGESIZE
2348
#    define getpagesize() EXEC_PAGESIZE
2349
#   else /* no EXEC_PAGESIZE */
2350
#    ifdef NBPG
2351
#     define getpagesize() NBPG * CLSIZE
2352
#     ifndef CLSIZE
2353
#      define CLSIZE 1
2354
#     endif /* no CLSIZE */
2355
#    else /* no NBPG */
2356
#     ifdef NBPC
2357
#      define getpagesize() NBPC
2358
#     else /* no NBPC */
2359
#      ifdef PAGESIZE
2360
#       define getpagesize() PAGESIZE
2361
#      endif /* PAGESIZE */
2362
#     endif /* no NBPC */
2363
#    endif /* no NBPG */
2364
#   endif /* no EXEC_PAGESIZE */
2365
#  else /* no HAVE_SYS_PARAM_H */
2366
#   define getpagesize() 8192   /* punt totally */
2367
#  endif /* no HAVE_SYS_PARAM_H */
2368
# endif /* no _SC_PAGESIZE */
2369
 
2370
#endif /* no HAVE_GETPAGESIZE */
2371
 
2372
#ifdef __cplusplus
2373
extern "C" { void *malloc(unsigned); }
2374
#else
2375
char *malloc();
2376
#endif
2377
 
2378
int
2379
main()
2380
{
2381
        char *data, *data2, *data3;
2382
        int i, pagesize;
2383
        int fd;
2384
 
2385
        pagesize = getpagesize();
2386
 
2387
        /*
2388
         * First, make a file with some known garbage in it.
2389
         */
2390
        data = malloc(pagesize);
2391
        if (!data)
2392
                exit(1);
2393
        for (i = 0; i < pagesize; ++i)
2394
                *(data + i) = rand();
2395
        umask(0);
2396
        fd = creat("conftestmmap", 0600);
2397
        if (fd < 0)
2398
                exit(1);
2399
        if (write(fd, data, pagesize) != pagesize)
2400
                exit(1);
2401
        close(fd);
2402
 
2403
        /*
2404
         * Next, try to mmap the file at a fixed address which
2405
         * already has something else allocated at it.  If we can,
2406
         * also make sure that we see the same garbage.
2407
         */
2408
        fd = open("conftestmmap", O_RDWR);
2409
        if (fd < 0)
2410
                exit(1);
2411
        data2 = malloc(2 * pagesize);
2412
        if (!data2)
2413
                exit(1);
2414
        data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
2415
        if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
2416
            MAP_PRIVATE | MAP_FIXED, fd, 0L))
2417
                exit(1);
2418
        for (i = 0; i < pagesize; ++i)
2419
                if (*(data + i) != *(data2 + i))
2420
                        exit(1);
2421
 
2422
        /*
2423
         * Finally, make sure that changes to the mapped area
2424
         * do not percolate back to the file as seen by read().
2425
         * (This is a bug on some variants of i386 svr4.0.)
2426
         */
2427
        for (i = 0; i < pagesize; ++i)
2428
                *(data2 + i) = *(data2 + i) + 1;
2429
        data3 = malloc(pagesize);
2430
        if (!data3)
2431
                exit(1);
2432
        if (read(fd, data3, pagesize) != pagesize)
2433
                exit(1);
2434
        for (i = 0; i < pagesize; ++i)
2435
                if (*(data + i) != *(data3 + i))
2436
                        exit(1);
2437
        close(fd);
2438
        unlink("conftestmmap");
2439
        exit(0);
2440
}
2441
 
2442
EOF
2443
if { (eval echo configure:2444: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2444
then
2445
  ac_cv_func_mmap_fixed_mapped=yes
2446
else
2447
  echo "configure: failed program was:" >&5
2448
  cat conftest.$ac_ext >&5
2449
  rm -fr conftest*
2450
  ac_cv_func_mmap_fixed_mapped=no
2451
fi
2452
rm -fr conftest*
2453
fi
2454
 
2455
fi
2456
 
2457
echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
2458
if test $ac_cv_func_mmap_fixed_mapped = yes; then
2459
  cat >> confdefs.h <<\EOF
2460
#define HAVE_MMAP 1
2461
EOF
2462
 
2463
fi
2464
 ;;
2465
esac
2466
 
2467
echo $ac_n "checking whether to use mmap""... $ac_c" 1>&6
2468
echo "configure:2469: checking whether to use mmap" >&5
2469
# Check whether --enable-mmap or --disable-mmap was given.
2470
if test "${enable_mmap+set}" = set; then
2471
  enableval="$enable_mmap"
2472
 
2473
    case "$enableval" in
2474
        yes) cat >> confdefs.h <<\EOF
2475
#define USE_MMAP 1
2476
EOF
2477
 ;;
2478
    esac
2479
 
2480
else
2481
 
2482
    cat >> confdefs.h <<\EOF
2483
#define USE_MMAP 1
2484
EOF
2485
 
2486
 
2487
fi
2488
 
2489
echo "$ac_t""${enable_mmap-yes}" 1>&6
2490
 
2491
cat > confcache <<\EOF
2492
# This file is a shell script that caches the results of configure
2493
# tests run on this system so they can be shared between configure
2494
# scripts and configure runs.  It is not useful on other systems.
2495
# If it contains results you don't want to keep, you may remove or edit it.
2496
#
2497
# By default, configure uses ./config.cache as the cache file,
2498
# creating it if it does not exist already.  You can give configure
2499
# the --cache-file=FILE option to use a different cache file; that is
2500
# what configure does when it calls configure scripts in
2501
# subdirectories, so they share the cache.
2502
# Giving --cache-file=/dev/null disables caching, for debugging configure.
2503
# config.status only pays attention to the cache file if you give it the
2504
# --recheck option to rerun configure.
2505
#
2506
EOF
2507
# The following way of writing the cache mishandles newlines in values,
2508
# but we know of no workaround that is simple, portable, and efficient.
2509
# So, don't put newlines in cache variables' values.
2510
# Ultrix sh set writes to stderr and can't be redirected directly,
2511
# and sets the high bit in the cache file unless we assign to the vars.
2512
(set) 2>&1 |
2513
  case `(ac_space=' '; set | grep ac_space) 2>&1` in
2514
  *ac_space=\ *)
2515
    # `set' does not quote correctly, so add quotes (double-quote substitution
2516
    # turns \\\\ into \\, and sed turns \\ into \).
2517
    sed -n \
2518
      -e "s/'/'\\\\''/g" \
2519
      -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2520
    ;;
2521
  *)
2522
    # `set' quotes correctly as required by POSIX, so do not add quotes.
2523
    sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2524
    ;;
2525
  esac >> confcache
2526
if cmp -s $cache_file confcache; then
2527
  :
2528
else
2529
  if test -w $cache_file; then
2530
    echo "updating cache $cache_file"
2531
    cat confcache > $cache_file
2532
  else
2533
    echo "not updating unwritable cache $cache_file"
2534
  fi
2535
fi
2536
rm -f confcache
2537
 
2538
 
2539
 
2540
AUDIO=""
2541
 
2542
 
2543
echo $ac_n "checking for audio support""... $ac_c" 1>&6
2544
echo "configure:2545: checking for audio support" >&5
2545
 
2546
audio="unknown"
2547
 
2548
case "$host" in
2549
    arm*-empeg-*) audio="empeg" ;;
2550
esac
2551
 
2552
if test "$audio" = unknown
2553
then
2554
    cat > conftest.$ac_ext <
2555
#line 2556 "configure"
2556
#include "confdefs.h"
2557
 
2558
# include 
2559
# if defined(OPEN_SOUND_SYSTEM) || defined(UNIX_SOUND_SYSTEM) ||  \
2560
    defined(VOXWARE)
2561
yes
2562
# endif
2563
 
2564
EOF
2565
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2566
  egrep "yes" >/dev/null 2>&1; then
2567
  rm -rf conftest*
2568
  audio="oss"
2569
fi
2570
rm -f conftest*
2571
 
2572
fi
2573
 
2574
if test "$audio" = unknown
2575
then
2576
    cat > conftest.$ac_ext <
2577
#line 2578 "configure"
2578
#include "confdefs.h"
2579
 
2580
# include 
2581
 
2582
EOF
2583
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2584
  egrep "audio_info_t" >/dev/null 2>&1; then
2585
  rm -rf conftest*
2586
  audio="sun"
2587
fi
2588
rm -f conftest*
2589
 
2590
fi
2591
 
2592
echo "$ac_t""$audio" 1>&6
2593
 
2594
if test "$audio" = unknown
2595
then
2596
    echo "configure: warning: audio support not available; using null module" 1>&2
2597
    cat >> confdefs.h <<\EOF
2598
#define AUDIO_DEFAULT audio_null
2599
EOF
2600
 
2601
else
2602
    audio="audio_$audio"
2603
    cat >> confdefs.h <
2604
#define AUDIO_DEFAULT $audio
2605
EOF
2606
 
2607
 
2608
    AUDIO="$audio.o"
2609
fi
2610
 
2611
 
2612
# Check whether --enable-speed or --disable-speed was given.
2613
if test "${enable_speed+set}" = set; then
2614
  enableval="$enable_speed"
2615
  :
2616
fi
2617
 
2618
# Check whether --enable-accuracy or --disable-accuracy was given.
2619
if test "${enable_accuracy+set}" = set; then
2620
  enableval="$enable_accuracy"
2621
  :
2622
fi
2623
 
2624
# Check whether --enable-fpm or --disable-fpm was given.
2625
if test "${enable_fpm+set}" = set; then
2626
  enableval="$enable_fpm"
2627
  :
2628
fi
2629
 
2630
# Check whether --enable-sso or --disable-sso was given.
2631
if test "${enable_sso+set}" = set; then
2632
  enableval="$enable_sso"
2633
  :
2634
fi
2635
 
2636
# Check whether --enable-aso or --disable-aso was given.
2637
if test "${enable_aso+set}" = set; then
2638
  enableval="$enable_aso"
2639
  :
2640
fi
2641
 
2642
# Check whether --enable-strict-iso or --disable-strict-iso was given.
2643
if test "${enable_strict_iso+set}" = set; then
2644
  enableval="$enable_strict_iso"
2645
  :
2646
fi
2647
 
2648
 
2649
 
2650
echo $ac_n "checking whether to enable profiling""... $ac_c" 1>&6
2651
echo "configure:2652: checking whether to enable profiling" >&5
2652
# Check whether --enable-profiling or --disable-profiling was given.
2653
if test "${enable_profiling+set}" = set; then
2654
  enableval="$enable_profiling"
2655
 
2656
    case "$enableval" in
2657
        yes) profile="-pg" ;;
2658
    esac
2659
 
2660
fi
2661
 
2662
echo "$ac_t""${enable_profiling-no}" 1>&6
2663
 
2664
echo $ac_n "checking whether to enable debugging""... $ac_c" 1>&6
2665
echo "configure:2666: checking whether to enable debugging" >&5
2666
# Check whether --enable-debugging or --disable-debugging was given.
2667
if test "${enable_debugging+set}" = set; then
2668
  enableval="$enable_debugging"
2669
 
2670
    case "$enableval" in
2671
        yes)
2672
            cat >> confdefs.h <<\EOF
2673
#define DEBUG 1
2674
EOF
2675
 
2676
            AUDIO="$AUDIO audio_hex.o"
2677
            optimize=""
2678
            ;;
2679
        no)
2680
            if test -n "$profile"
2681
            then
2682
    { echo "configure: error: --enable-profiling and --disable-debugging are incompatible" 1>&2; exit 1; }
2683
            fi
2684
 
2685
            cat >> confdefs.h <<\EOF
2686
#define NDEBUG 1
2687
EOF
2688
 
2689
            debug=""
2690
            if test "$GCC" = yes
2691
            then
2692
                optimize="$optimize -fomit-frame-pointer"
2693
            fi
2694
            ;;
2695
    esac
2696
 
2697
fi
2698
 
2699
echo "$ac_t""${enable_debugging-default}" 1>&6
2700
 
2701
case "$enable_debugging" in
2702
    yes) echo $ac_n "checking for malloc in -lefence""... $ac_c" 1>&6
2703
echo "configure:2704: checking for malloc in -lefence" >&5
2704
ac_lib_var=`echo efence'_'malloc | sed 'y%./+-%__p_%'`
2705
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2706
  echo $ac_n "(cached) $ac_c" 1>&6
2707
else
2708
  ac_save_LIBS="$LIBS"
2709
LIBS="-lefence  $LIBS"
2710
cat > conftest.$ac_ext <
2711
#line 2712 "configure"
2712
#include "confdefs.h"
2713
/* Override any gcc2 internal prototype to avoid an error.  */
2714
/* We use char because int might match the return type of a gcc2
2715
    builtin and then its argument prototype would still apply.  */
2716
char malloc();
2717
 
2718
int main() {
2719
malloc()
2720
; return 0; }
2721
EOF
2722
if { (eval echo configure:2723: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2723
  rm -rf conftest*
2724
  eval "ac_cv_lib_$ac_lib_var=yes"
2725
else
2726
  echo "configure: failed program was:" >&5
2727
  cat conftest.$ac_ext >&5
2728
  rm -rf conftest*
2729
  eval "ac_cv_lib_$ac_lib_var=no"
2730
fi
2731
rm -f conftest*
2732
LIBS="$ac_save_LIBS"
2733
 
2734
fi
2735
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2736
  echo "$ac_t""yes" 1>&6
2737
    ac_tr_lib=HAVE_LIB`echo efence | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2738
    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2739
  cat >> confdefs.h <
2740
#define $ac_tr_lib 1
2741
EOF
2742
 
2743
  LIBS="-lefence $LIBS"
2744
 
2745
else
2746
  echo "$ac_t""no" 1>&6
2747
fi
2748
 ;;
2749
esac
2750
 
2751
echo $ac_n "checking whether to enable experimental code""... $ac_c" 1>&6
2752
echo "configure:2753: checking whether to enable experimental code" >&5
2753
# Check whether --enable-experimental or --disable-experimental was given.
2754
if test "${enable_experimental+set}" = set; then
2755
  enableval="$enable_experimental"
2756
 
2757
    case "$enableval" in
2758
        yes) cat >> confdefs.h <<\EOF
2759
#define EXPERIMENTAL 1
2760
EOF
2761
 ;;
2762
    esac
2763
 
2764
fi
2765
 
2766
echo "$ac_t""${enable_experimental-no}" 1>&6
2767
 
2768
 
2769
test -n "$arch"     && CFLAGS="$CFLAGS $arch"
2770
test -n "$debug"    && CFLAGS="$CFLAGS $debug"
2771
test -n "$optimize" && CFLAGS="$CFLAGS $optimize"
2772
test -n "$profile"  && CFLAGS="$CFLAGS $profile" LDFLAGS="$LDFLAGS $profile"
2773
trap '' 1 2 15
2774
cat > confcache <<\EOF
2775
# This file is a shell script that caches the results of configure
2776
# tests run on this system so they can be shared between configure
2777
# scripts and configure runs.  It is not useful on other systems.
2778
# If it contains results you don't want to keep, you may remove or edit it.
2779
#
2780
# By default, configure uses ./config.cache as the cache file,
2781
# creating it if it does not exist already.  You can give configure
2782
# the --cache-file=FILE option to use a different cache file; that is
2783
# what configure does when it calls configure scripts in
2784
# subdirectories, so they share the cache.
2785
# Giving --cache-file=/dev/null disables caching, for debugging configure.
2786
# config.status only pays attention to the cache file if you give it the
2787
# --recheck option to rerun configure.
2788
#
2789
EOF
2790
# The following way of writing the cache mishandles newlines in values,
2791
# but we know of no workaround that is simple, portable, and efficient.
2792
# So, don't put newlines in cache variables' values.
2793
# Ultrix sh set writes to stderr and can't be redirected directly,
2794
# and sets the high bit in the cache file unless we assign to the vars.
2795
(set) 2>&1 |
2796
  case `(ac_space=' '; set | grep ac_space) 2>&1` in
2797
  *ac_space=\ *)
2798
    # `set' does not quote correctly, so add quotes (double-quote substitution
2799
    # turns \\\\ into \\, and sed turns \\ into \).
2800
    sed -n \
2801
      -e "s/'/'\\\\''/g" \
2802
      -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2803
    ;;
2804
  *)
2805
    # `set' quotes correctly as required by POSIX, so do not add quotes.
2806
    sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2807
    ;;
2808
  esac >> confcache
2809
if cmp -s $cache_file confcache; then
2810
  :
2811
else
2812
  if test -w $cache_file; then
2813
    echo "updating cache $cache_file"
2814
    cat confcache > $cache_file
2815
  else
2816
    echo "not updating unwritable cache $cache_file"
2817
  fi
2818
fi
2819
rm -f confcache
2820
 
2821
trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
2822
 
2823
test "x$prefix" = xNONE && prefix=$ac_default_prefix
2824
# Let make expand exec_prefix.
2825
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
2826
 
2827
# Any assignment to VPATH causes Sun make to only execute
2828
# the first set of double-colon rules, so remove it if not needed.
2829
# If there is a colon in the path, we need to keep it.
2830
if test "x$srcdir" = x.; then
2831
  ac_vpsub='/^[         ]*VPATH[        ]*=[^:]*$/d'
2832
fi
2833
 
2834
trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
2835
 
2836
DEFS=-DHAVE_CONFIG_H
2837
 
2838
# Without the "./", some shells look in PATH for config.status.
2839
: ${CONFIG_STATUS=./config.status}
2840
 
2841
echo creating $CONFIG_STATUS
2842
rm -f $CONFIG_STATUS
2843
cat > $CONFIG_STATUS <
2844
#! /bin/sh
2845
# Generated automatically by configure.
2846
# Run this file to recreate the current configuration.
2847
# This directory was configured as follows,
2848
# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
2849
#
2850
# $0 $ac_configure_args
2851
#
2852
# Compiler output produced by configure, useful for debugging
2853
# configure, is in ./config.log if it exists.
2854
 
2855
ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
2856
for ac_option
2857
do
2858
  case "\$ac_option" in
2859
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
2860
    echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
2861
    exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
2862
  -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
2863
    echo "$CONFIG_STATUS generated by autoconf version 2.13"
2864
    exit 0 ;;
2865
  -help | --help | --hel | --he | --h)
2866
    echo "\$ac_cs_usage"; exit 0 ;;
2867
  *) echo "\$ac_cs_usage"; exit 1 ;;
2868
  esac
2869
done
2870
 
2871
ac_given_srcdir=$srcdir
2872
ac_given_INSTALL="$INSTALL"
2873
 
2874
trap 'rm -fr `echo "Makefile config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
2875
EOF
2876
cat >> $CONFIG_STATUS <
2877
 
2878
# Protect against being on the right side of a sed subst in config.status.
2879
sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
2880
 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
2881
$ac_vpsub
2882
$extrasub
2883
s%@SHELL@%$SHELL%g
2884
s%@CFLAGS@%$CFLAGS%g
2885
s%@CPPFLAGS@%$CPPFLAGS%g
2886
s%@CXXFLAGS@%$CXXFLAGS%g
2887
s%@FFLAGS@%$FFLAGS%g
2888
s%@DEFS@%$DEFS%g
2889
s%@LDFLAGS@%$LDFLAGS%g
2890
s%@LIBS@%$LIBS%g
2891
s%@exec_prefix@%$exec_prefix%g
2892
s%@prefix@%$prefix%g
2893
s%@program_transform_name@%$program_transform_name%g
2894
s%@bindir@%$bindir%g
2895
s%@sbindir@%$sbindir%g
2896
s%@libexecdir@%$libexecdir%g
2897
s%@datadir@%$datadir%g
2898
s%@sysconfdir@%$sysconfdir%g
2899
s%@sharedstatedir@%$sharedstatedir%g
2900
s%@localstatedir@%$localstatedir%g
2901
s%@libdir@%$libdir%g
2902
s%@includedir@%$includedir%g
2903
s%@oldincludedir@%$oldincludedir%g
2904
s%@infodir@%$infodir%g
2905
s%@mandir@%$mandir%g
2906
s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
2907
s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
2908
s%@INSTALL_DATA@%$INSTALL_DATA%g
2909
s%@PACKAGE@%$PACKAGE%g
2910
s%@VERSION@%$VERSION%g
2911
s%@ACLOCAL@%$ACLOCAL%g
2912
s%@AUTOCONF@%$AUTOCONF%g
2913
s%@AUTOMAKE@%$AUTOMAKE%g
2914
s%@AUTOHEADER@%$AUTOHEADER%g
2915
s%@MAKEINFO@%$MAKEINFO%g
2916
s%@SET_MAKE@%$SET_MAKE%g
2917
s%@subdirs@%$subdirs%g
2918
s%@host@%$host%g
2919
s%@host_alias@%$host_alias%g
2920
s%@host_cpu@%$host_cpu%g
2921
s%@host_vendor@%$host_vendor%g
2922
s%@host_os@%$host_os%g
2923
s%@build@%$build%g
2924
s%@build_alias@%$build_alias%g
2925
s%@build_cpu@%$build_cpu%g
2926
s%@build_vendor@%$build_vendor%g
2927
s%@build_os@%$build_os%g
2928
s%@CC@%$CC%g
2929
s%@RANLIB@%$RANLIB%g
2930
s%@CPP@%$CPP%g
2931
s%@LIBOBJS@%$LIBOBJS%g
2932
s%@AUDIO@%$AUDIO%g
2933
 
2934
CEOF
2935
EOF
2936
 
2937
cat >> $CONFIG_STATUS <<\EOF
2938
 
2939
# Split the substitutions into bite-sized pieces for seds with
2940
# small command number limits, like on Digital OSF/1 and HP-UX.
2941
ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
2942
ac_file=1 # Number of current file.
2943
ac_beg=1 # First line for current file.
2944
ac_end=$ac_max_sed_cmds # Line after last line for current file.
2945
ac_more_lines=:
2946
ac_sed_cmds=""
2947
while $ac_more_lines; do
2948
  if test $ac_beg -gt 1; then
2949
    sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
2950
  else
2951
    sed "${ac_end}q" conftest.subs > conftest.s$ac_file
2952
  fi
2953
  if test ! -s conftest.s$ac_file; then
2954
    ac_more_lines=false
2955
    rm -f conftest.s$ac_file
2956
  else
2957
    if test -z "$ac_sed_cmds"; then
2958
      ac_sed_cmds="sed -f conftest.s$ac_file"
2959
    else
2960
      ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
2961
    fi
2962
    ac_file=`expr $ac_file + 1`
2963
    ac_beg=$ac_end
2964
    ac_end=`expr $ac_end + $ac_max_sed_cmds`
2965
  fi
2966
done
2967
if test -z "$ac_sed_cmds"; then
2968
  ac_sed_cmds=cat
2969
fi
2970
EOF
2971
 
2972
cat >> $CONFIG_STATUS <
2973
 
2974
CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
2975
EOF
2976
cat >> $CONFIG_STATUS <<\EOF
2977
for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
2978
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2979
  case "$ac_file" in
2980
  *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2981
       ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2982
  *) ac_file_in="${ac_file}.in" ;;
2983
  esac
2984
 
2985
  # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
2986
 
2987
  # Remove last slash and all that follows it.  Not all systems have dirname.
2988
  ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2989
  if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2990
    # The file is in a subdirectory.
2991
    test ! -d "$ac_dir" && mkdir "$ac_dir"
2992
    ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
2993
    # A "../" for each directory in $ac_dir_suffix.
2994
    ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
2995
  else
2996
    ac_dir_suffix= ac_dots=
2997
  fi
2998
 
2999
  case "$ac_given_srcdir" in
3000
  .)  srcdir=.
3001
      if test -z "$ac_dots"; then top_srcdir=.
3002
      else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
3003
  /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
3004
  *) # Relative path.
3005
    srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
3006
    top_srcdir="$ac_dots$ac_given_srcdir" ;;
3007
  esac
3008
 
3009
  case "$ac_given_INSTALL" in
3010
  [/$]*) INSTALL="$ac_given_INSTALL" ;;
3011
  *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
3012
  esac
3013
 
3014
  echo creating "$ac_file"
3015
  rm -f "$ac_file"
3016
  configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
3017
  case "$ac_file" in
3018
  *Makefile*) ac_comsub="1i\\
3019
# $configure_input" ;;
3020
  *) ac_comsub= ;;
3021
  esac
3022
 
3023
  ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3024
  sed -e "$ac_comsub
3025
s%@configure_input@%$configure_input%g
3026
s%@srcdir@%$srcdir%g
3027
s%@top_srcdir@%$top_srcdir%g
3028
s%@INSTALL@%$INSTALL%g
3029
" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
3030
fi; done
3031
rm -f conftest.s*
3032
 
3033
# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
3034
# NAME is the cpp macro being defined and VALUE is the value it is being given.
3035
#
3036
# ac_d sets the value in "#define NAME VALUE" lines.
3037
ac_dA='s%^\([   ]*\)#\([        ]*define[       ][      ]*\)'
3038
ac_dB='\([      ][      ]*\)[^  ]*%\1#\2'
3039
ac_dC='\3'
3040
ac_dD='%g'
3041
# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
3042
ac_uA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
3043
ac_uB='\([      ]\)%\1#\2define\3'
3044
ac_uC=' '
3045
ac_uD='\4%g'
3046
# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
3047
ac_eA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
3048
ac_eB='$%\1#\2define\3'
3049
ac_eC=' '
3050
ac_eD='%g'
3051
 
3052
if test "${CONFIG_HEADERS+set}" != set; then
3053
EOF
3054
cat >> $CONFIG_STATUS <
3055
  CONFIG_HEADERS="config.h"
3056
EOF
3057
cat >> $CONFIG_STATUS <<\EOF
3058
fi
3059
for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
3060
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3061
  case "$ac_file" in
3062
  *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3063
       ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3064
  *) ac_file_in="${ac_file}.in" ;;
3065
  esac
3066
 
3067
  echo creating $ac_file
3068
 
3069
  rm -f conftest.frag conftest.in conftest.out
3070
  ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3071
  cat $ac_file_inputs > conftest.in
3072
 
3073
EOF
3074
 
3075
# Transform confdefs.h into a sed script conftest.vals that substitutes
3076
# the proper values into config.h.in to produce config.h.  And first:
3077
# Protect against being on the right side of a sed subst in config.status.
3078
# Protect against being in an unquoted here document in config.status.
3079
rm -f conftest.vals
3080
cat > conftest.hdr <<\EOF
3081
s/[\\&%]/\\&/g
3082
s%[\\$`]%\\&%g
3083
s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
3084
s%ac_d%ac_u%gp
3085
s%ac_u%ac_e%gp
3086
EOF
3087
sed -n -f conftest.hdr confdefs.h > conftest.vals
3088
rm -f conftest.hdr
3089
 
3090
# This sed command replaces #undef with comments.  This is necessary, for
3091
# example, in the case of _POSIX_SOURCE, which is predefined and required
3092
# on some systems where configure will not decide to define it.
3093
cat >> conftest.vals <<\EOF
3094
s%^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
3095
EOF
3096
 
3097
# Break up conftest.vals because some shells have a limit on
3098
# the size of here documents, and old seds have small limits too.
3099
 
3100
rm -f conftest.tail
3101
while :
3102
do
3103
  ac_lines=`grep -c . conftest.vals`
3104
  # grep -c gives empty output for an empty file on some AIX systems.
3105
  if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
3106
  # Write a limited-size here document to conftest.frag.
3107
  echo '  cat > conftest.frag <> $CONFIG_STATUS
3108
  sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
3109
  echo 'CEOF
3110
  sed -f conftest.frag conftest.in > conftest.out
3111
  rm -f conftest.in
3112
  mv conftest.out conftest.in
3113
' >> $CONFIG_STATUS
3114
  sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
3115
  rm -f conftest.vals
3116
  mv conftest.tail conftest.vals
3117
done
3118
rm -f conftest.vals
3119
 
3120
cat >> $CONFIG_STATUS <<\EOF
3121
  rm -f conftest.frag conftest.h
3122
  echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
3123
  cat conftest.in >> conftest.h
3124
  rm -f conftest.in
3125
  if cmp -s $ac_file conftest.h 2>/dev/null; then
3126
    echo "$ac_file is unchanged"
3127
    rm -f conftest.h
3128
  else
3129
    # Remove last slash and all that follows it.  Not all systems have dirname.
3130
      ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3131
      if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3132
      # The file is in a subdirectory.
3133
      test ! -d "$ac_dir" && mkdir "$ac_dir"
3134
    fi
3135
    rm -f $ac_file
3136
    mv conftest.h $ac_file
3137
  fi
3138
fi; done
3139
 
3140
EOF
3141
cat >> $CONFIG_STATUS <
3142
 
3143
 
3144
EOF
3145
cat >> $CONFIG_STATUS <<\EOF
3146
test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
3147
 
3148
exit 0
3149
EOF
3150
chmod +x $CONFIG_STATUS
3151
rm -fr confdefs* $ac_clean_files
3152
test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
3153
 
3154
if test "$no_recursion" != yes; then
3155
 
3156
  # Remove --cache-file and --srcdir arguments so they do not pile up.
3157
  ac_sub_configure_args=
3158
  ac_prev=
3159
  for ac_arg in $ac_configure_args; do
3160
    if test -n "$ac_prev"; then
3161
      ac_prev=
3162
      continue
3163
    fi
3164
    case "$ac_arg" in
3165
    -cache-file | --cache-file | --cache-fil | --cache-fi \
3166
    | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
3167
      ac_prev=cache_file ;;
3168
    -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
3169
    | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
3170
      ;;
3171
    -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
3172
      ac_prev=srcdir ;;
3173
    -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
3174
      ;;
3175
    *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
3176
    esac
3177
  done
3178
 
3179
  for ac_config_dir in libmad; do
3180
 
3181
    # Do not complain, so a configure script can configure whichever
3182
    # parts of a large source tree are present.
3183
    if test ! -d $srcdir/$ac_config_dir; then
3184
      continue
3185
    fi
3186
 
3187
    echo configuring in $ac_config_dir
3188
 
3189
    case "$srcdir" in
3190
    .) ;;
3191
    *)
3192
      if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
3193
      else
3194
        { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
3195
      fi
3196
      ;;
3197
    esac
3198
 
3199
    ac_popdir=`pwd`
3200
    cd $ac_config_dir
3201
 
3202
      # A "../" for each directory in /$ac_config_dir.
3203
      ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
3204
 
3205
    case "$srcdir" in
3206
    .) # No --srcdir option.  We are building in place.
3207
      ac_sub_srcdir=$srcdir ;;
3208
    /*) # Absolute path.
3209
      ac_sub_srcdir=$srcdir/$ac_config_dir ;;
3210
    *) # Relative path.
3211
      ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
3212
    esac
3213
 
3214
    # Check for guested configure; otherwise get Cygnus style configure.
3215
    if test -f $ac_sub_srcdir/configure; then
3216
      ac_sub_configure=$ac_sub_srcdir/configure
3217
    elif test -f $ac_sub_srcdir/configure.in; then
3218
      ac_sub_configure=$ac_configure
3219
    else
3220
      echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
3221
      ac_sub_configure=
3222
    fi
3223
 
3224
    # The recursion is here.
3225
    if test -n "$ac_sub_configure"; then
3226
 
3227
      # Make the cache file name correct relative to the subdirectory.
3228
      case "$cache_file" in
3229
      /*) ac_sub_cache_file=$cache_file ;;
3230
      *) # Relative path.
3231
        ac_sub_cache_file="$ac_dots$cache_file" ;;
3232
      esac
3233
  case "$ac_given_INSTALL" in
3234
        [/$]*) INSTALL="$ac_given_INSTALL" ;;
3235
        *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
3236
        esac
3237
 
3238
      echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
3239
      # The eval makes quoting arguments work.
3240
      if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
3241
      then :
3242
      else
3243
        { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
3244
      fi
3245
    fi
3246
 
3247
    cd $ac_popdir
3248
  done
3249
fi
3250
 

powered by: WebSVN 2.1.0

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