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

Subversion Repositories or1k

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

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

Line No. Rev Author Line
1 268 lampret
#! /bin/sh
2
 
3
# From configure.in Id: configure.in,v 1.1.1.1 2001/06/19 11:12:37 markom 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
  --enable-speed          optimize for speed over accuracy"
120
ac_help="$ac_help
121
  --enable-accuracy       optimize for accuracy over speed"
122
ac_help="$ac_help
123
  --enable-fpm=     use -specific fixed-point math routines
124
                          (one of: intel, arm, mips, sparc, ppc,
125
                           64bit, default)"
126
ac_help="$ac_help
127
  --enable-sso            use subband synthesis optimization"
128
ac_help="$ac_help
129
  --disable-aso           disable architecture-specific optimizations"
130
ac_help="$ac_help
131
  --enable-strict-iso     use strict ISO/IEC interpretations"
132
ac_help="$ac_help
133
  --enable-profiling      generate profiling code"
134
ac_help="$ac_help
135
  --enable-debugging      enable diagnostic debugging support
136
  --disable-debugging     do not enable debugging and use more optimization"
137
ac_help="$ac_help
138
  --enable-experimental   enable experimental code"
139
 
140
# Initialize some variables set by options.
141
# The variables have the same names as the options, with
142
# dashes changed to underlines.
143
build=NONE
144
cache_file=./config.cache
145
exec_prefix=NONE
146
host=NONE
147
no_create=
148
nonopt=NONE
149
no_recursion=
150
prefix=NONE
151
program_prefix=NONE
152
program_suffix=NONE
153
program_transform_name=s,x,x,
154
silent=
155
site=
156
srcdir=
157
target=NONE
158
verbose=
159
x_includes=NONE
160
x_libraries=NONE
161
bindir='${exec_prefix}/bin'
162
sbindir='${exec_prefix}/sbin'
163
libexecdir='${exec_prefix}/libexec'
164
datadir='${prefix}/share'
165
sysconfdir='${prefix}/etc'
166
sharedstatedir='${prefix}/com'
167
localstatedir='${prefix}/var'
168
libdir='${exec_prefix}/lib'
169
includedir='${prefix}/include'
170
oldincludedir='/usr/include'
171
infodir='${prefix}/info'
172
mandir='${prefix}/man'
173
 
174
# Initialize some other variables.
175
subdirs=
176
MFLAGS= MAKEFLAGS=
177
SHELL=${CONFIG_SHELL-/bin/sh}
178
# Maximum number of lines to put in a shell here document.
179
ac_max_here_lines=12
180
 
181
ac_prev=
182
for ac_option
183
do
184
 
185
  # If the previous option needs an argument, assign it.
186
  if test -n "$ac_prev"; then
187
    eval "$ac_prev=\$ac_option"
188
    ac_prev=
189
    continue
190
  fi
191
 
192
  case "$ac_option" in
193
  -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
194
  *) ac_optarg= ;;
195
  esac
196
 
197
  # Accept the important Cygnus configure options, so we can diagnose typos.
198
 
199
  case "$ac_option" in
200
 
201
  -bindir | --bindir | --bindi | --bind | --bin | --bi)
202
    ac_prev=bindir ;;
203
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
204
    bindir="$ac_optarg" ;;
205
 
206
  -build | --build | --buil | --bui | --bu)
207
    ac_prev=build ;;
208
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
209
    build="$ac_optarg" ;;
210
 
211
  -cache-file | --cache-file | --cache-fil | --cache-fi \
212
  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
213
    ac_prev=cache_file ;;
214
  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
215
  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
216
    cache_file="$ac_optarg" ;;
217
 
218
  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
219
    ac_prev=datadir ;;
220
  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
221
  | --da=*)
222
    datadir="$ac_optarg" ;;
223
 
224
  -disable-* | --disable-*)
225
    ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
226
    # Reject names that are not valid shell variable names.
227
    if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
228
      { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
229
    fi
230
    ac_feature=`echo $ac_feature| sed 's/-/_/g'`
231
    eval "enable_${ac_feature}=no" ;;
232
 
233
  -enable-* | --enable-*)
234
    ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
235
    # Reject names that are not valid shell variable names.
236
    if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
237
      { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
238
    fi
239
    ac_feature=`echo $ac_feature| sed 's/-/_/g'`
240
    case "$ac_option" in
241
      *=*) ;;
242
      *) ac_optarg=yes ;;
243
    esac
244
    eval "enable_${ac_feature}='$ac_optarg'" ;;
245
 
246
  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
247
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
248
  | --exec | --exe | --ex)
249
    ac_prev=exec_prefix ;;
250
  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
251
  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
252
  | --exec=* | --exe=* | --ex=*)
253
    exec_prefix="$ac_optarg" ;;
254
 
255
  -gas | --gas | --ga | --g)
256
    # Obsolete; use --with-gas.
257
    with_gas=yes ;;
258
 
259
  -help | --help | --hel | --he)
260
    # Omit some internal or obsolete options to make the list less imposing.
261
    # This message is too long to be a string in the A/UX 3.1 sh.
262
    cat << EOF
263
Usage: configure [options] [host]
264
Options: [defaults in brackets after descriptions]
265
Configuration:
266
  --cache-file=FILE       cache test results in FILE
267
  --help                  print this message
268
  --no-create             do not create output files
269
  --quiet, --silent       do not print \`checking...' messages
270
  --version               print the version of autoconf that created configure
271
Directory and file names:
272
  --prefix=PREFIX         install architecture-independent files in PREFIX
273
                          [$ac_default_prefix]
274
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
275
                          [same as prefix]
276
  --bindir=DIR            user executables in DIR [EPREFIX/bin]
277
  --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
278
  --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
279
  --datadir=DIR           read-only architecture-independent data in DIR
280
                          [PREFIX/share]
281
  --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
282
  --sharedstatedir=DIR    modifiable architecture-independent data in DIR
283
                          [PREFIX/com]
284
  --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
285
  --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
286
  --includedir=DIR        C header files in DIR [PREFIX/include]
287
  --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
288
  --infodir=DIR           info documentation in DIR [PREFIX/info]
289
  --mandir=DIR            man documentation in DIR [PREFIX/man]
290
  --srcdir=DIR            find the sources in DIR [configure dir or ..]
291
  --program-prefix=PREFIX prepend PREFIX to installed program names
292
  --program-suffix=SUFFIX append SUFFIX to installed program names
293
  --program-transform-name=PROGRAM
294
                          run sed PROGRAM on installed program names
295
EOF
296
    cat << EOF
297
Host type:
298
  --build=BUILD           configure for building on BUILD [BUILD=HOST]
299
  --host=HOST             configure for HOST [guessed]
300
  --target=TARGET         configure for TARGET [TARGET=HOST]
301
Features and packages:
302
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
303
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
304
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
305
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
306
  --x-includes=DIR        X include files are in DIR
307
  --x-libraries=DIR       X library files are in DIR
308
EOF
309
    if test -n "$ac_help"; then
310
      echo "--enable and --with options recognized:$ac_help"
311
    fi
312
    exit 0 ;;
313
 
314
  -host | --host | --hos | --ho)
315
    ac_prev=host ;;
316
  -host=* | --host=* | --hos=* | --ho=*)
317
    host="$ac_optarg" ;;
318
 
319
  -includedir | --includedir | --includedi | --included | --include \
320
  | --includ | --inclu | --incl | --inc)
321
    ac_prev=includedir ;;
322
  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
323
  | --includ=* | --inclu=* | --incl=* | --inc=*)
324
    includedir="$ac_optarg" ;;
325
 
326
  -infodir | --infodir | --infodi | --infod | --info | --inf)
327
    ac_prev=infodir ;;
328
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
329
    infodir="$ac_optarg" ;;
330
 
331
  -libdir | --libdir | --libdi | --libd)
332
    ac_prev=libdir ;;
333
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
334
    libdir="$ac_optarg" ;;
335
 
336
  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
337
  | --libexe | --libex | --libe)
338
    ac_prev=libexecdir ;;
339
  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
340
  | --libexe=* | --libex=* | --libe=*)
341
    libexecdir="$ac_optarg" ;;
342
 
343
  -localstatedir | --localstatedir | --localstatedi | --localstated \
344
  | --localstate | --localstat | --localsta | --localst \
345
  | --locals | --local | --loca | --loc | --lo)
346
    ac_prev=localstatedir ;;
347
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
348
  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
349
  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
350
    localstatedir="$ac_optarg" ;;
351
 
352
  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
353
    ac_prev=mandir ;;
354
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
355
    mandir="$ac_optarg" ;;
356
 
357
  -nfp | --nfp | --nf)
358
    # Obsolete; use --without-fp.
359
    with_fp=no ;;
360
 
361
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
362
  | --no-cr | --no-c)
363
    no_create=yes ;;
364
 
365
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
366
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
367
    no_recursion=yes ;;
368
 
369
  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
370
  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
371
  | --oldin | --oldi | --old | --ol | --o)
372
    ac_prev=oldincludedir ;;
373
  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
374
  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
375
  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
376
    oldincludedir="$ac_optarg" ;;
377
 
378
  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
379
    ac_prev=prefix ;;
380
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
381
    prefix="$ac_optarg" ;;
382
 
383
  -program-prefix | --program-prefix | --program-prefi | --program-pref \
384
  | --program-pre | --program-pr | --program-p)
385
    ac_prev=program_prefix ;;
386
  -program-prefix=* | --program-prefix=* | --program-prefi=* \
387
  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
388
    program_prefix="$ac_optarg" ;;
389
 
390
  -program-suffix | --program-suffix | --program-suffi | --program-suff \
391
  | --program-suf | --program-su | --program-s)
392
    ac_prev=program_suffix ;;
393
  -program-suffix=* | --program-suffix=* | --program-suffi=* \
394
  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
395
    program_suffix="$ac_optarg" ;;
396
 
397
  -program-transform-name | --program-transform-name \
398
  | --program-transform-nam | --program-transform-na \
399
  | --program-transform-n | --program-transform- \
400
  | --program-transform | --program-transfor \
401
  | --program-transfo | --program-transf \
402
  | --program-trans | --program-tran \
403
  | --progr-tra | --program-tr | --program-t)
404
    ac_prev=program_transform_name ;;
405
  -program-transform-name=* | --program-transform-name=* \
406
  | --program-transform-nam=* | --program-transform-na=* \
407
  | --program-transform-n=* | --program-transform-=* \
408
  | --program-transform=* | --program-transfor=* \
409
  | --program-transfo=* | --program-transf=* \
410
  | --program-trans=* | --program-tran=* \
411
  | --progr-tra=* | --program-tr=* | --program-t=*)
412
    program_transform_name="$ac_optarg" ;;
413
 
414
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
415
  | -silent | --silent | --silen | --sile | --sil)
416
    silent=yes ;;
417
 
418
  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
419
    ac_prev=sbindir ;;
420
  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
421
  | --sbi=* | --sb=*)
422
    sbindir="$ac_optarg" ;;
423
 
424
  -sharedstatedir | --sharedstatedir | --sharedstatedi \
425
  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
426
  | --sharedst | --shareds | --shared | --share | --shar \
427
  | --sha | --sh)
428
    ac_prev=sharedstatedir ;;
429
  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
430
  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
431
  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
432
  | --sha=* | --sh=*)
433
    sharedstatedir="$ac_optarg" ;;
434
 
435
  -site | --site | --sit)
436
    ac_prev=site ;;
437
  -site=* | --site=* | --sit=*)
438
    site="$ac_optarg" ;;
439
 
440
  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
441
    ac_prev=srcdir ;;
442
  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
443
    srcdir="$ac_optarg" ;;
444
 
445
  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
446
  | --syscon | --sysco | --sysc | --sys | --sy)
447
    ac_prev=sysconfdir ;;
448
  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
449
  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
450
    sysconfdir="$ac_optarg" ;;
451
 
452
  -target | --target | --targe | --targ | --tar | --ta | --t)
453
    ac_prev=target ;;
454
  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
455
    target="$ac_optarg" ;;
456
 
457
  -v | -verbose | --verbose | --verbos | --verbo | --verb)
458
    verbose=yes ;;
459
 
460
  -version | --version | --versio | --versi | --vers)
461
    echo "configure generated by autoconf version 2.13"
462
    exit 0 ;;
463
 
464
  -with-* | --with-*)
465
    ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
466
    # Reject names that are not valid shell variable names.
467
    if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
468
      { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
469
    fi
470
    ac_package=`echo $ac_package| sed 's/-/_/g'`
471
    case "$ac_option" in
472
      *=*) ;;
473
      *) ac_optarg=yes ;;
474
    esac
475
    eval "with_${ac_package}='$ac_optarg'" ;;
476
 
477
  -without-* | --without-*)
478
    ac_package=`echo $ac_option|sed -e 's/-*without-//'`
479
    # Reject names that are not valid shell variable names.
480
    if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
481
      { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
482
    fi
483
    ac_package=`echo $ac_package| sed 's/-/_/g'`
484
    eval "with_${ac_package}=no" ;;
485
 
486
  --x)
487
    # Obsolete; use --with-x.
488
    with_x=yes ;;
489
 
490
  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
491
  | --x-incl | --x-inc | --x-in | --x-i)
492
    ac_prev=x_includes ;;
493
  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
494
  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
495
    x_includes="$ac_optarg" ;;
496
 
497
  -x-libraries | --x-libraries | --x-librarie | --x-librari \
498
  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
499
    ac_prev=x_libraries ;;
500
  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
501
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
502
    x_libraries="$ac_optarg" ;;
503
 
504
  -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
505
    ;;
506
 
507
  *)
508
    if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
509
      echo "configure: warning: $ac_option: invalid host type" 1>&2
510
    fi
511
    if test "x$nonopt" != xNONE; then
512
      { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
513
    fi
514
    nonopt="$ac_option"
515
    ;;
516
 
517
  esac
518
done
519
 
520
if test -n "$ac_prev"; then
521
  { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
522
fi
523
 
524
trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
525
 
526
# File descriptor usage:
527
# 0 standard input
528
# 1 file creation
529
# 2 errors and warnings
530
# 3 some systems may open it to /dev/tty
531
# 4 used on the Kubota Titan
532
# 6 checking for... messages and results
533
# 5 compiler messages saved in config.log
534
if test "$silent" = yes; then
535
  exec 6>/dev/null
536
else
537
  exec 6>&1
538
fi
539
exec 5>./config.log
540
 
541
echo "\
542
This file contains any messages produced by compilers while
543
running configure, to aid debugging if configure makes a mistake.
544
" 1>&5
545
 
546
# Strip out --no-create and --no-recursion so they do not pile up.
547
# Also quote any args containing shell metacharacters.
548
ac_configure_args=
549
for ac_arg
550
do
551
  case "$ac_arg" in
552
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
553
  | --no-cr | --no-c) ;;
554
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
555
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
556
  *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
557
  ac_configure_args="$ac_configure_args '$ac_arg'" ;;
558
  *) ac_configure_args="$ac_configure_args $ac_arg" ;;
559
  esac
560
done
561
 
562
# NLS nuisances.
563
# Only set these to C if already set.  These must not be set unconditionally
564
# because not all systems understand e.g. LANG=C (notably SCO).
565
# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
566
# Non-C LC_CTYPE values break the ctype check.
567
if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
568
if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
569
if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
570
if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
571
 
572
# confdefs.h avoids OS command line length limits that DEFS can exceed.
573
rm -rf conftest* confdefs.h
574
# AIX cpp loses on an empty file, so make sure it contains at least a newline.
575
echo > confdefs.h
576
 
577
# A filename unique to this package, relative to the directory that
578
# configure is in, which we can look for to find out if srcdir is correct.
579
ac_unique_file=decoder.h
580
 
581
# Find the source files, if location was not specified.
582
if test -z "$srcdir"; then
583
  ac_srcdir_defaulted=yes
584
  # Try the directory containing this script, then its parent.
585
  ac_prog=$0
586
  ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
587
  test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
588
  srcdir=$ac_confdir
589
  if test ! -r $srcdir/$ac_unique_file; then
590
    srcdir=..
591
  fi
592
else
593
  ac_srcdir_defaulted=no
594
fi
595
if test ! -r $srcdir/$ac_unique_file; then
596
  if test "$ac_srcdir_defaulted" = yes; then
597
    { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
598
  else
599
    { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
600
  fi
601
fi
602
srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
603
 
604
# Prefer explicitly selected file to automatically selected ones.
605
if test -z "$CONFIG_SITE"; then
606
  if test "x$prefix" != xNONE; then
607
    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
608
  else
609
    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
610
  fi
611
fi
612
for ac_site_file in $CONFIG_SITE; do
613
  if test -r "$ac_site_file"; then
614
    echo "loading site script $ac_site_file"
615
    . "$ac_site_file"
616
  fi
617
done
618
 
619
if test -r "$cache_file"; then
620
  echo "loading cache $cache_file"
621
  . $cache_file
622
else
623
  echo "creating cache $cache_file"
624
  > $cache_file
625
fi
626
 
627
ac_ext=c
628
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
629
ac_cpp='$CPP $CPPFLAGS'
630
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
631
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
632
cross_compiling=$ac_cv_prog_cc_cross
633
 
634
ac_exeext=
635
ac_objext=o
636
if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
637
  # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
638
  if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
639
    ac_n= ac_c='
640
' ac_t='        '
641
  else
642
    ac_n=-n ac_c= ac_t=
643
  fi
644
else
645
  ac_n= ac_c='\c' ac_t=
646
fi
647
 
648
 
649
ac_aux_dir=
650
for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
651
  if test -f $ac_dir/install-sh; then
652
    ac_aux_dir=$ac_dir
653
    ac_install_sh="$ac_aux_dir/install-sh -c"
654
    break
655
  elif test -f $ac_dir/install.sh; then
656
    ac_aux_dir=$ac_dir
657
    ac_install_sh="$ac_aux_dir/install.sh -c"
658
    break
659
  fi
660
done
661
if test -z "$ac_aux_dir"; then
662
  { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
663
fi
664
ac_config_guess=$ac_aux_dir/config.guess
665
ac_config_sub=$ac_aux_dir/config.sub
666
ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
667
 
668
# Find a good install program.  We prefer a C program (faster),
669
# so one script is as good as another.  But avoid the broken or
670
# incompatible versions:
671
# SysV /etc/install, /usr/sbin/install
672
# SunOS /usr/etc/install
673
# IRIX /sbin/install
674
# AIX /bin/install
675
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
676
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
677
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
678
# ./install, which can be erroneously created by make from ./install.sh.
679
echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
680
echo "configure:681: checking for a BSD compatible install" >&5
681
if test -z "$INSTALL"; then
682
if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
683
  echo $ac_n "(cached) $ac_c" 1>&6
684
else
685
    IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS=":"
686
  for ac_dir in $PATH; do
687
    # Account for people who put trailing slashes in PATH elements.
688
    case "$ac_dir/" in
689
    /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
690
    *)
691
      # OSF1 and SCO ODT 3.0 have their own names for install.
692
      # Don't use installbsd from OSF since it installs stuff as root
693
      # by default.
694
      for ac_prog in ginstall scoinst install; do
695
        if test -f $ac_dir/$ac_prog; then
696
          if test $ac_prog = install &&
697
            grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
698
            # AIX install.  It has an incompatible calling convention.
699
            :
700
          else
701
            ac_cv_path_install="$ac_dir/$ac_prog -c"
702
            break 2
703
          fi
704
        fi
705
      done
706
      ;;
707
    esac
708
  done
709
  IFS="$ac_save_IFS"
710
 
711
fi
712
  if test "${ac_cv_path_install+set}" = set; then
713
    INSTALL="$ac_cv_path_install"
714
  else
715
    # As a last resort, use the slow shell script.  We don't cache a
716
    # path for INSTALL within a source directory, because that will
717
    # break other packages using the cache if that directory is
718
    # removed, or if the path is relative.
719
    INSTALL="$ac_install_sh"
720
  fi
721
fi
722
echo "$ac_t""$INSTALL" 1>&6
723
 
724
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
725
# It thinks the first close brace ends the variable substitution.
726
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
727
 
728
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
729
 
730
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
731
 
732
echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
733
echo "configure:734: checking whether build environment is sane" >&5
734
# Just in case
735
sleep 1
736
echo timestamp > conftestfile
737
# Do `set' in a subshell so we don't clobber the current shell's
738
# arguments.  Must try -L first in case configure is actually a
739
# symlink; some systems play weird games with the mod time of symlinks
740
# (eg FreeBSD returns the mod time of the symlink's containing
741
# directory).
742
if (
743
   set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
744
   if test "$*" = "X"; then
745
      # -L didn't work.
746
      set X `ls -t $srcdir/configure conftestfile`
747
   fi
748
   if test "$*" != "X $srcdir/configure conftestfile" \
749
      && test "$*" != "X conftestfile $srcdir/configure"; then
750
 
751
      # If neither matched, then we have a broken ls.  This can happen
752
      # if, for instance, CONFIG_SHELL is bash and it inherits a
753
      # broken ls alias from the environment.  This has actually
754
      # happened.  Such a system could not be considered "sane".
755
      { echo "configure: error: ls -t appears to fail.  Make sure there is not a broken
756
alias in your environment" 1>&2; exit 1; }
757
   fi
758
 
759
   test "$2" = conftestfile
760
   )
761
then
762
   # Ok.
763
   :
764
else
765
   { echo "configure: error: newly created file is older than distributed files!
766
Check your system clock" 1>&2; exit 1; }
767
fi
768
rm -f conftest*
769
echo "$ac_t""yes" 1>&6
770
if test "$program_transform_name" = s,x,x,; then
771
  program_transform_name=
772
else
773
  # Double any \ or $.  echo might interpret backslashes.
774
  cat <<\EOF_SED > conftestsed
775
s,\\,\\\\,g; s,\$,$$,g
776
EOF_SED
777
  program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
778
  rm -f conftestsed
779
fi
780
test "$program_prefix" != NONE &&
781
  program_transform_name="s,^,${program_prefix},; $program_transform_name"
782
# Use a double $ so make ignores it.
783
test "$program_suffix" != NONE &&
784
  program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
785
 
786
# sed with no file args requires a program.
787
test "$program_transform_name" = "" && program_transform_name="s,x,x,"
788
 
789
echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
790
echo "configure:791: checking whether ${MAKE-make} sets \${MAKE}" >&5
791
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
792
if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
793
  echo $ac_n "(cached) $ac_c" 1>&6
794
else
795
  cat > conftestmake <<\EOF
796
all:
797
        @echo 'ac_maketemp="${MAKE}"'
798
EOF
799
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
800
eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
801
if test -n "$ac_maketemp"; then
802
  eval ac_cv_prog_make_${ac_make}_set=yes
803
else
804
  eval ac_cv_prog_make_${ac_make}_set=no
805
fi
806
rm -f conftestmake
807
fi
808
if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
809
  echo "$ac_t""yes" 1>&6
810
  SET_MAKE=
811
else
812
  echo "$ac_t""no" 1>&6
813
  SET_MAKE="MAKE=${MAKE-make}"
814
fi
815
 
816
 
817
PACKAGE=libmad
818
 
819
VERSION=0.13.0b
820
 
821
if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
822
  { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
823
fi
824
cat >> confdefs.h <
825
#define PACKAGE "$PACKAGE"
826
EOF
827
 
828
cat >> confdefs.h <
829
#define VERSION "$VERSION"
830
EOF
831
 
832
 
833
 
834
missing_dir=`cd $ac_aux_dir && pwd`
835
echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
836
echo "configure:837: checking for working aclocal" >&5
837
# Run test in a subshell; some versions of sh will print an error if
838
# an executable is not found, even if stderr is redirected.
839
# Redirect stdin to placate older versions of autoconf.  Sigh.
840
if (aclocal --version) < /dev/null > /dev/null 2>&1; then
841
   ACLOCAL=aclocal
842
   echo "$ac_t""found" 1>&6
843
else
844
   ACLOCAL="$missing_dir/missing aclocal"
845
   echo "$ac_t""missing" 1>&6
846
fi
847
 
848
echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
849
echo "configure:850: checking for working autoconf" >&5
850
# Run test in a subshell; some versions of sh will print an error if
851
# an executable is not found, even if stderr is redirected.
852
# Redirect stdin to placate older versions of autoconf.  Sigh.
853
if (autoconf --version) < /dev/null > /dev/null 2>&1; then
854
   AUTOCONF=autoconf
855
   echo "$ac_t""found" 1>&6
856
else
857
   AUTOCONF="$missing_dir/missing autoconf"
858
   echo "$ac_t""missing" 1>&6
859
fi
860
 
861
echo $ac_n "checking for working automake""... $ac_c" 1>&6
862
echo "configure:863: checking for working automake" >&5
863
# Run test in a subshell; some versions of sh will print an error if
864
# an executable is not found, even if stderr is redirected.
865
# Redirect stdin to placate older versions of autoconf.  Sigh.
866
if (automake --version) < /dev/null > /dev/null 2>&1; then
867
   AUTOMAKE=automake
868
   echo "$ac_t""found" 1>&6
869
else
870
   AUTOMAKE="$missing_dir/missing automake"
871
   echo "$ac_t""missing" 1>&6
872
fi
873
 
874
echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
875
echo "configure:876: checking for working autoheader" >&5
876
# Run test in a subshell; some versions of sh will print an error if
877
# an executable is not found, even if stderr is redirected.
878
# Redirect stdin to placate older versions of autoconf.  Sigh.
879
if (autoheader --version) < /dev/null > /dev/null 2>&1; then
880
   AUTOHEADER=autoheader
881
   echo "$ac_t""found" 1>&6
882
else
883
   AUTOHEADER="$missing_dir/missing autoheader"
884
   echo "$ac_t""missing" 1>&6
885
fi
886
 
887
echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
888
echo "configure:889: checking for working makeinfo" >&5
889
# Run test in a subshell; some versions of sh will print an error if
890
# an executable is not found, even if stderr is redirected.
891
# Redirect stdin to placate older versions of autoconf.  Sigh.
892
if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
893
   MAKEINFO=makeinfo
894
   echo "$ac_t""found" 1>&6
895
else
896
   MAKEINFO="$missing_dir/missing makeinfo"
897
   echo "$ac_t""missing" 1>&6
898
fi
899
 
900
 
901
 
902
 
903
 
904
 
905
 
906
 
907
 
908
# Make sure we can run config.sub.
909
if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
910
else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
911
fi
912
 
913
echo $ac_n "checking host system type""... $ac_c" 1>&6
914
echo "configure:915: checking host system type" >&5
915
 
916
host_alias=$host
917
case "$host_alias" in
918
NONE)
919
  case $nonopt in
920
  NONE)
921
    if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
922
    else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
923
    fi ;;
924
  *) host_alias=$nonopt ;;
925
  esac ;;
926
esac
927
 
928
host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
929
host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
930
host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
931
host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
932
echo "$ac_t""$host" 1>&6
933
 
934
 
935
 
936
echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
937
echo "configure:938: checking whether ${MAKE-make} sets \${MAKE}" >&5
938
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
939
if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
940
  echo $ac_n "(cached) $ac_c" 1>&6
941
else
942
  cat > conftestmake <<\EOF
943
all:
944
        @echo 'ac_maketemp="${MAKE}"'
945
EOF
946
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
947
eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
948
if test -n "$ac_maketemp"; then
949
  eval ac_cv_prog_make_${ac_make}_set=yes
950
else
951
  eval ac_cv_prog_make_${ac_make}_set=no
952
fi
953
rm -f conftestmake
954
fi
955
if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
956
  echo "$ac_t""yes" 1>&6
957
  SET_MAKE=
958
else
959
  echo "$ac_t""no" 1>&6
960
  SET_MAKE="MAKE=${MAKE-make}"
961
fi
962
 
963
echo $ac_n "checking build system type""... $ac_c" 1>&6
964
echo "configure:965: checking build system type" >&5
965
 
966
build_alias=$build
967
case "$build_alias" in
968
NONE)
969
  case $nonopt in
970
  NONE) build_alias=$host_alias ;;
971
  *) build_alias=$nonopt ;;
972
  esac ;;
973
esac
974
 
975
build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
976
build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
977
build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
978
build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
979
echo "$ac_t""$build" 1>&6
980
 
981
if test $host != $build; then
982
  ac_tool_prefix=${host_alias}-
983
else
984
  ac_tool_prefix=
985
fi
986
 
987
# Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
988
set dummy ${ac_tool_prefix}cc; ac_word=$2
989
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
990
echo "configure:991: checking for $ac_word" >&5
991
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
992
  echo $ac_n "(cached) $ac_c" 1>&6
993
else
994
  if test -n "$CC"; then
995
  ac_cv_prog_CC="$CC" # Let the user override the test.
996
else
997
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
998
  ac_dummy="$PATH"
999
  for ac_dir in $ac_dummy; do
1000
    test -z "$ac_dir" && ac_dir=.
1001
    if test -f $ac_dir/$ac_word; then
1002
      ac_cv_prog_CC="${ac_tool_prefix}cc"
1003
      break
1004
    fi
1005
  done
1006
  IFS="$ac_save_ifs"
1007
fi
1008
fi
1009
CC="$ac_cv_prog_CC"
1010
if test -n "$CC"; then
1011
  echo "$ac_t""$CC" 1>&6
1012
else
1013
  echo "$ac_t""no" 1>&6
1014
fi
1015
 
1016
 
1017
if test -z "$ac_cv_prog_CC"; then
1018
if test -n "$ac_tool_prefix"; then
1019
  # Extract the first word of "cc", so it can be a program name with args.
1020
set dummy cc; ac_word=$2
1021
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1022
echo "configure:1023: checking for $ac_word" >&5
1023
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1024
  echo $ac_n "(cached) $ac_c" 1>&6
1025
else
1026
  if test -n "$CC"; then
1027
  ac_cv_prog_CC="$CC" # Let the user override the test.
1028
else
1029
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1030
  ac_dummy="$PATH"
1031
  for ac_dir in $ac_dummy; do
1032
    test -z "$ac_dir" && ac_dir=.
1033
    if test -f $ac_dir/$ac_word; then
1034
      ac_cv_prog_CC="cc"
1035
      break
1036
    fi
1037
  done
1038
  IFS="$ac_save_ifs"
1039
  test -z "$ac_cv_prog_CC" && ac_cv_prog_CC=":"
1040
fi
1041
fi
1042
CC="$ac_cv_prog_CC"
1043
if test -n "$CC"; then
1044
  echo "$ac_t""$CC" 1>&6
1045
else
1046
  echo "$ac_t""no" 1>&6
1047
fi
1048
 
1049
else
1050
  CC=":"
1051
fi
1052
fi
1053
 
1054
# Find a good install program.  We prefer a C program (faster),
1055
# so one script is as good as another.  But avoid the broken or
1056
# incompatible versions:
1057
# SysV /etc/install, /usr/sbin/install
1058
# SunOS /usr/etc/install
1059
# IRIX /sbin/install
1060
# AIX /bin/install
1061
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1062
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1063
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1064
# ./install, which can be erroneously created by make from ./install.sh.
1065
echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1066
echo "configure:1067: checking for a BSD compatible install" >&5
1067
if test -z "$INSTALL"; then
1068
if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1069
  echo $ac_n "(cached) $ac_c" 1>&6
1070
else
1071
    IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS=":"
1072
  for ac_dir in $PATH; do
1073
    # Account for people who put trailing slashes in PATH elements.
1074
    case "$ac_dir/" in
1075
    /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1076
    *)
1077
      # OSF1 and SCO ODT 3.0 have their own names for install.
1078
      # Don't use installbsd from OSF since it installs stuff as root
1079
      # by default.
1080
      for ac_prog in ginstall scoinst install; do
1081
        if test -f $ac_dir/$ac_prog; then
1082
          if test $ac_prog = install &&
1083
            grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1084
            # AIX install.  It has an incompatible calling convention.
1085
            :
1086
          else
1087
            ac_cv_path_install="$ac_dir/$ac_prog -c"
1088
            break 2
1089
          fi
1090
        fi
1091
      done
1092
      ;;
1093
    esac
1094
  done
1095
  IFS="$ac_save_IFS"
1096
 
1097
fi
1098
  if test "${ac_cv_path_install+set}" = set; then
1099
    INSTALL="$ac_cv_path_install"
1100
  else
1101
    # As a last resort, use the slow shell script.  We don't cache a
1102
    # path for INSTALL within a source directory, because that will
1103
    # break other packages using the cache if that directory is
1104
    # removed, or if the path is relative.
1105
    INSTALL="$ac_install_sh"
1106
  fi
1107
fi
1108
echo "$ac_t""$INSTALL" 1>&6
1109
 
1110
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1111
# It thinks the first close brace ends the variable substitution.
1112
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1113
 
1114
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1115
 
1116
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1117
 
1118
# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1119
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1120
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1121
echo "configure:1122: checking for $ac_word" >&5
1122
if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1123
  echo $ac_n "(cached) $ac_c" 1>&6
1124
else
1125
  if test -n "$RANLIB"; then
1126
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1127
else
1128
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1129
  ac_dummy="$PATH"
1130
  for ac_dir in $ac_dummy; do
1131
    test -z "$ac_dir" && ac_dir=.
1132
    if test -f $ac_dir/$ac_word; then
1133
      ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1134
      break
1135
    fi
1136
  done
1137
  IFS="$ac_save_ifs"
1138
fi
1139
fi
1140
RANLIB="$ac_cv_prog_RANLIB"
1141
if test -n "$RANLIB"; then
1142
  echo "$ac_t""$RANLIB" 1>&6
1143
else
1144
  echo "$ac_t""no" 1>&6
1145
fi
1146
 
1147
 
1148
if test -z "$ac_cv_prog_RANLIB"; then
1149
if test -n "$ac_tool_prefix"; then
1150
  # Extract the first word of "ranlib", so it can be a program name with args.
1151
set dummy ranlib; ac_word=$2
1152
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1153
echo "configure:1154: checking for $ac_word" >&5
1154
if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1155
  echo $ac_n "(cached) $ac_c" 1>&6
1156
else
1157
  if test -n "$RANLIB"; then
1158
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1159
else
1160
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1161
  ac_dummy="$PATH"
1162
  for ac_dir in $ac_dummy; do
1163
    test -z "$ac_dir" && ac_dir=.
1164
    if test -f $ac_dir/$ac_word; then
1165
      ac_cv_prog_RANLIB="ranlib"
1166
      break
1167
    fi
1168
  done
1169
  IFS="$ac_save_ifs"
1170
  test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1171
fi
1172
fi
1173
RANLIB="$ac_cv_prog_RANLIB"
1174
if test -n "$RANLIB"; then
1175
  echo "$ac_t""$RANLIB" 1>&6
1176
else
1177
  echo "$ac_t""no" 1>&6
1178
fi
1179
 
1180
else
1181
  RANLIB=":"
1182
fi
1183
fi
1184
 
1185
 
1186
 
1187
# Extract the first word of "gcc", so it can be a program name with args.
1188
set dummy gcc; ac_word=$2
1189
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1190
echo "configure:1191: checking for $ac_word" >&5
1191
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1192
  echo $ac_n "(cached) $ac_c" 1>&6
1193
else
1194
  if test -n "$CC"; then
1195
  ac_cv_prog_CC="$CC" # Let the user override the test.
1196
else
1197
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1198
  ac_dummy="$PATH"
1199
  for ac_dir in $ac_dummy; do
1200
    test -z "$ac_dir" && ac_dir=.
1201
    if test -f $ac_dir/$ac_word; then
1202
      ac_cv_prog_CC="gcc"
1203
      break
1204
    fi
1205
  done
1206
  IFS="$ac_save_ifs"
1207
fi
1208
fi
1209
CC="$ac_cv_prog_CC"
1210
if test -n "$CC"; then
1211
  echo "$ac_t""$CC" 1>&6
1212
else
1213
  echo "$ac_t""no" 1>&6
1214
fi
1215
 
1216
if test -z "$CC"; then
1217
  # Extract the first word of "cc", so it can be a program name with args.
1218
set dummy cc; ac_word=$2
1219
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1220
echo "configure:1221: checking for $ac_word" >&5
1221
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1222
  echo $ac_n "(cached) $ac_c" 1>&6
1223
else
1224
  if test -n "$CC"; then
1225
  ac_cv_prog_CC="$CC" # Let the user override the test.
1226
else
1227
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1228
  ac_prog_rejected=no
1229
  ac_dummy="$PATH"
1230
  for ac_dir in $ac_dummy; do
1231
    test -z "$ac_dir" && ac_dir=.
1232
    if test -f $ac_dir/$ac_word; then
1233
      if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1234
        ac_prog_rejected=yes
1235
        continue
1236
      fi
1237
      ac_cv_prog_CC="cc"
1238
      break
1239
    fi
1240
  done
1241
  IFS="$ac_save_ifs"
1242
if test $ac_prog_rejected = yes; then
1243
  # We found a bogon in the path, so make sure we never use it.
1244
  set dummy $ac_cv_prog_CC
1245
  shift
1246
  if test $# -gt 0; then
1247
    # We chose a different compiler from the bogus one.
1248
    # However, it has the same basename, so the bogon will be chosen
1249
    # first if we set CC to just the basename; use the full file name.
1250
    shift
1251
    set dummy "$ac_dir/$ac_word" "$@"
1252
    shift
1253
    ac_cv_prog_CC="$@"
1254
  fi
1255
fi
1256
fi
1257
fi
1258
CC="$ac_cv_prog_CC"
1259
if test -n "$CC"; then
1260
  echo "$ac_t""$CC" 1>&6
1261
else
1262
  echo "$ac_t""no" 1>&6
1263
fi
1264
 
1265
  if test -z "$CC"; then
1266
    case "`uname -s`" in
1267
    *win32* | *WIN32*)
1268
      # Extract the first word of "cl", so it can be a program name with args.
1269
set dummy cl; ac_word=$2
1270
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1271
echo "configure:1272: checking for $ac_word" >&5
1272
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1273
  echo $ac_n "(cached) $ac_c" 1>&6
1274
else
1275
  if test -n "$CC"; then
1276
  ac_cv_prog_CC="$CC" # Let the user override the test.
1277
else
1278
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1279
  ac_dummy="$PATH"
1280
  for ac_dir in $ac_dummy; do
1281
    test -z "$ac_dir" && ac_dir=.
1282
    if test -f $ac_dir/$ac_word; then
1283
      ac_cv_prog_CC="cl"
1284
      break
1285
    fi
1286
  done
1287
  IFS="$ac_save_ifs"
1288
fi
1289
fi
1290
CC="$ac_cv_prog_CC"
1291
if test -n "$CC"; then
1292
  echo "$ac_t""$CC" 1>&6
1293
else
1294
  echo "$ac_t""no" 1>&6
1295
fi
1296
 ;;
1297
    esac
1298
  fi
1299
  test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1300
fi
1301
 
1302
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1303
echo "configure:1304: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1304
 
1305
ac_ext=c
1306
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1307
ac_cpp='$CPP $CPPFLAGS'
1308
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1309
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1310
cross_compiling=$ac_cv_prog_cc_cross
1311
 
1312
cat > conftest.$ac_ext << EOF
1313
 
1314
#line 1315 "configure"
1315
#include "confdefs.h"
1316
 
1317
main(){return(0);}
1318
EOF
1319
if { (eval echo configure:1320: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1320
  ac_cv_prog_cc_works=yes
1321
  # If we can't run a trivial program, we are probably using a cross compiler.
1322
  if (./conftest; exit) 2>/dev/null; then
1323
    ac_cv_prog_cc_cross=no
1324
  else
1325
    ac_cv_prog_cc_cross=yes
1326
  fi
1327
else
1328
  echo "configure: failed program was:" >&5
1329
  cat conftest.$ac_ext >&5
1330
  ac_cv_prog_cc_works=no
1331
fi
1332
rm -fr conftest*
1333
ac_ext=c
1334
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1335
ac_cpp='$CPP $CPPFLAGS'
1336
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1337
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1338
cross_compiling=$ac_cv_prog_cc_cross
1339
 
1340
echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1341
if test $ac_cv_prog_cc_works = no; then
1342
  { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1343
fi
1344
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1345
echo "configure:1346: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1346
echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1347
cross_compiling=$ac_cv_prog_cc_cross
1348
 
1349
echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1350
echo "configure:1351: checking whether we are using GNU C" >&5
1351
if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1352
  echo $ac_n "(cached) $ac_c" 1>&6
1353
else
1354
  cat > conftest.c <
1355
#ifdef __GNUC__
1356
  yes;
1357
#endif
1358
EOF
1359
if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1360: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1360
  ac_cv_prog_gcc=yes
1361
else
1362
  ac_cv_prog_gcc=no
1363
fi
1364
fi
1365
 
1366
echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1367
 
1368
if test $ac_cv_prog_gcc = yes; then
1369
  GCC=yes
1370
else
1371
  GCC=
1372
fi
1373
 
1374
ac_test_CFLAGS="${CFLAGS+set}"
1375
ac_save_CFLAGS="$CFLAGS"
1376
CFLAGS=
1377
echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1378
echo "configure:1379: checking whether ${CC-cc} accepts -g" >&5
1379
if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1380
  echo $ac_n "(cached) $ac_c" 1>&6
1381
else
1382
  echo 'void f(){}' > conftest.c
1383
if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1384
  ac_cv_prog_cc_g=yes
1385
else
1386
  ac_cv_prog_cc_g=no
1387
fi
1388
rm -f conftest*
1389
 
1390
fi
1391
 
1392
echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1393
if test "$ac_test_CFLAGS" = set; then
1394
  CFLAGS="$ac_save_CFLAGS"
1395
elif test $ac_cv_prog_cc_g = yes; then
1396
  if test "$GCC" = yes; then
1397
    CFLAGS="-g -O2"
1398
  else
1399
    CFLAGS="-g"
1400
  fi
1401
else
1402
  if test "$GCC" = yes; then
1403
    CFLAGS="-O2"
1404
  else
1405
    CFLAGS=
1406
  fi
1407
fi
1408
 
1409
echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1410
echo "configure:1411: checking how to run the C preprocessor" >&5
1411
# On Suns, sometimes $CPP names a directory.
1412
if test -n "$CPP" && test -d "$CPP"; then
1413
  CPP=
1414
fi
1415
if test -z "$CPP"; then
1416
if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1417
  echo $ac_n "(cached) $ac_c" 1>&6
1418
else
1419
    # This must be in double quotes, not single quotes, because CPP may get
1420
  # substituted into the Makefile and "${CC-cc}" will confuse make.
1421
  CPP="${CC-cc} -E"
1422
  # On the NeXT, cc -E runs the code through the compiler's parser,
1423
  # not just through cpp.
1424
  cat > conftest.$ac_ext <
1425
#line 1426 "configure"
1426
#include "confdefs.h"
1427
#include 
1428
Syntax Error
1429
EOF
1430
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1431
{ (eval echo configure:1432: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1432
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1433
if test -z "$ac_err"; then
1434
  :
1435
else
1436
  echo "$ac_err" >&5
1437
  echo "configure: failed program was:" >&5
1438
  cat conftest.$ac_ext >&5
1439
  rm -rf conftest*
1440
  CPP="${CC-cc} -E -traditional-cpp"
1441
  cat > conftest.$ac_ext <
1442
#line 1443 "configure"
1443
#include "confdefs.h"
1444
#include 
1445
Syntax Error
1446
EOF
1447
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1448
{ (eval echo configure:1449: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1449
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1450
if test -z "$ac_err"; then
1451
  :
1452
else
1453
  echo "$ac_err" >&5
1454
  echo "configure: failed program was:" >&5
1455
  cat conftest.$ac_ext >&5
1456
  rm -rf conftest*
1457
  CPP="${CC-cc} -nologo -E"
1458
  cat > conftest.$ac_ext <
1459
#line 1460 "configure"
1460
#include "confdefs.h"
1461
#include 
1462
Syntax Error
1463
EOF
1464
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1465
{ (eval echo configure:1466: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1466
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1467
if test -z "$ac_err"; then
1468
  :
1469
else
1470
  echo "$ac_err" >&5
1471
  echo "configure: failed program was:" >&5
1472
  cat conftest.$ac_ext >&5
1473
  rm -rf conftest*
1474
  CPP=/lib/cpp
1475
fi
1476
rm -f conftest*
1477
fi
1478
rm -f conftest*
1479
fi
1480
rm -f conftest*
1481
  ac_cv_prog_CPP="$CPP"
1482
fi
1483
  CPP="$ac_cv_prog_CPP"
1484
else
1485
  ac_cv_prog_CPP="$CPP"
1486
fi
1487
echo "$ac_t""$CPP" 1>&6
1488
 
1489
if test $ac_cv_prog_gcc = yes; then
1490
    echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
1491
echo "configure:1492: checking whether ${CC-cc} needs -traditional" >&5
1492
if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
1493
  echo $ac_n "(cached) $ac_c" 1>&6
1494
else
1495
    ac_pattern="Autoconf.*'x'"
1496
  cat > conftest.$ac_ext <
1497
#line 1498 "configure"
1498
#include "confdefs.h"
1499
#include 
1500
Autoconf TIOCGETP
1501
EOF
1502
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1503
  egrep "$ac_pattern" >/dev/null 2>&1; then
1504
  rm -rf conftest*
1505
  ac_cv_prog_gcc_traditional=yes
1506
else
1507
  rm -rf conftest*
1508
  ac_cv_prog_gcc_traditional=no
1509
fi
1510
rm -f conftest*
1511
 
1512
 
1513
  if test $ac_cv_prog_gcc_traditional = no; then
1514
    cat > conftest.$ac_ext <
1515
#line 1516 "configure"
1516
#include "confdefs.h"
1517
#include 
1518
Autoconf TCGETA
1519
EOF
1520
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1521
  egrep "$ac_pattern" >/dev/null 2>&1; then
1522
  rm -rf conftest*
1523
  ac_cv_prog_gcc_traditional=yes
1524
fi
1525
rm -f conftest*
1526
 
1527
  fi
1528
fi
1529
 
1530
echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
1531
  if test $ac_cv_prog_gcc_traditional = yes; then
1532
    CC="$CC -traditional"
1533
  fi
1534
fi
1535
 
1536
 
1537
arch=""
1538
debug=""
1539
optimize=""
1540
profile=""
1541
 
1542
set -- $CFLAGS
1543
CFLAGS="-Wall"
1544
 
1545
while test $# -gt 0
1546
do
1547
    case "$1" in
1548
        -Wall)
1549
            shift
1550
            ;;
1551
        -g)
1552
            debug="-g"
1553
            shift
1554
            ;;
1555
        -m*)
1556
            arch="$arch $1"
1557
            shift
1558
            ;;
1559
        -O2)
1560
            optimize="-O"
1561
            shift
1562
            ;;
1563
        -fomit-frame-pointer)
1564
            shift
1565
            ;;
1566
        -O*|-f*)
1567
            optimize="$optimize $1"
1568
            shift
1569
            ;;
1570
        *)
1571
            CFLAGS="$CFLAGS $1"
1572
            shift
1573
            ;;
1574
    esac
1575
done
1576
 
1577
case "$host" in
1578
    or32*)            cat >> confdefs.h <<\EOF
1579
#define EMBED 1
1580
EOF
1581
 ;;
1582
esac
1583
 
1584
if test "$GCC" = yes
1585
then
1586
    if test -z "$arch"
1587
    then
1588
        case "$host" in
1589
            i386-*)           ;;
1590
            i?86-*)           arch="-m486" ;;
1591
            arm*-empeg-*)     arch="-march=armv4 -mtune=strongarm1100" ;;
1592
            armv4*-*)         arch="-march=armv4 -mtune=strongarm" ;;
1593
            powerpc-*)        ;;
1594
            mips*-agenda-*)   arch="-mcpu=vr4100" ;;
1595
            mips*-luxsonor-*) arch="-mips1 -mcpu=r3000 -Wa,-m4010" ;;
1596
            or32*)            arch="-mhard-div -nostdlib" ;;
1597
        esac
1598
    fi
1599
 
1600
    case "$optimize" in
1601
        -O|"-O "*)
1602
            optimize="-O"
1603
            optimize="$optimize -fforce-mem"
1604
            optimize="$optimize -fforce-addr"
1605
            : #x optimize="$optimize -finline-functions"
1606
            : #- optimize="$optimize -fstrength-reduce"
1607
            optimize="$optimize -fthread-jumps"
1608
            optimize="$optimize -fcse-follow-jumps"
1609
            optimize="$optimize -fcse-skip-blocks"
1610
            : #x optimize="$optimize -frerun-cse-after-loop"
1611
            : #x optimize="$optimize -frerun-loop-opt"
1612
            : #x optimize="$optimize -fgcse"
1613
            optimize="$optimize -fexpensive-optimizations"
1614
            optimize="$optimize -fregmove"
1615
            : #* optimize="$optimize -fdelayed-branch"
1616
            : #x optimize="$optimize -fschedule-insns"
1617
            optimize="$optimize -fschedule-insns2"
1618
            : #? optimize="$optimize -ffunction-sections"
1619
            : #? optimize="$optimize -fcaller-saves"
1620
            : #> optimize="$optimize -funroll-loops"
1621
            : #> optimize="$optimize -funroll-all-loops"
1622
            : #x optimize="$optimize -fmove-all-movables"
1623
            : #x optimize="$optimize -freduce-all-givs"
1624
            : #? optimize="$optimize -fstrict-aliasing"
1625
            : #* optimize="$optimize -fstructure-noalias"
1626
 
1627
            case "$host" in
1628
                arm*-*)
1629
                    # this may provoke bugs in gcc 2.95.2
1630
                    optimize="$optimize -fstrength-reduce"
1631
                    #
1632
                    # this may actually be slower but it
1633
                    # triggers bugs if not included
1634
                    optimize="$optimize -finline-functions"
1635
                    ;;
1636
                mips*-*)
1637
                    optimize="$optimize -fstrength-reduce"
1638
                    optimize="$optimize -finline-functions"
1639
                    ;;
1640
                i?86-*)
1641
                    optimize="$optimize -fstrength-reduce"
1642
                    ;;
1643
                *)
1644
                    # this sometimes provokes bugs in gcc 2.95.2
1645
                    : #optimize="$optimize -fstrength-reduce"
1646
                    ;;
1647
            esac
1648
            ;;
1649
    esac
1650
fi
1651
 
1652
case "$host" in
1653
    mips*-agenda-*)   cat >> confdefs.h <<\EOF
1654
#define HAVE_MADD16_ASM 1
1655
EOF
1656
 ;;
1657
    mips*-luxsonor-*) cat >> confdefs.h <<\EOF
1658
#define HAVE_MADD_ASM 1
1659
EOF
1660
   ;;
1661
esac
1662
 
1663
 
1664
echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1665
echo "configure:1666: checking for ANSI C header files" >&5
1666
if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1667
  echo $ac_n "(cached) $ac_c" 1>&6
1668
else
1669
  cat > conftest.$ac_ext <
1670
#line 1671 "configure"
1671
#include "confdefs.h"
1672
#include 
1673
#include 
1674
#include 
1675
#include 
1676
EOF
1677
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1678
{ (eval echo configure:1679: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1679
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1680
if test -z "$ac_err"; then
1681
  rm -rf conftest*
1682
  ac_cv_header_stdc=yes
1683
else
1684
  echo "$ac_err" >&5
1685
  echo "configure: failed program was:" >&5
1686
  cat conftest.$ac_ext >&5
1687
  rm -rf conftest*
1688
  ac_cv_header_stdc=no
1689
fi
1690
rm -f conftest*
1691
 
1692
if test $ac_cv_header_stdc = yes; then
1693
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1694
cat > conftest.$ac_ext <
1695
#line 1696 "configure"
1696
#include "confdefs.h"
1697
#include 
1698
EOF
1699
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1700
  egrep "memchr" >/dev/null 2>&1; then
1701
  :
1702
else
1703
  rm -rf conftest*
1704
  ac_cv_header_stdc=no
1705
fi
1706
rm -f conftest*
1707
 
1708
fi
1709
 
1710
if test $ac_cv_header_stdc = yes; then
1711
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1712
cat > conftest.$ac_ext <
1713
#line 1714 "configure"
1714
#include "confdefs.h"
1715
#include 
1716
EOF
1717
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1718
  egrep "free" >/dev/null 2>&1; then
1719
  :
1720
else
1721
  rm -rf conftest*
1722
  ac_cv_header_stdc=no
1723
fi
1724
rm -f conftest*
1725
 
1726
fi
1727
 
1728
if test $ac_cv_header_stdc = yes; then
1729
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1730
if test "$cross_compiling" = yes; then
1731
  :
1732
else
1733
  cat > conftest.$ac_ext <
1734
#line 1735 "configure"
1735
#include "confdefs.h"
1736
#include 
1737
#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1738
#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1739
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1740
int main () { int i; for (i = 0; i < 256; i++)
1741
if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1742
exit (0); }
1743
 
1744
EOF
1745
if { (eval echo configure:1746: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1746
then
1747
  :
1748
else
1749
  echo "configure: failed program was:" >&5
1750
  cat conftest.$ac_ext >&5
1751
  rm -fr conftest*
1752
  ac_cv_header_stdc=no
1753
fi
1754
rm -fr conftest*
1755
fi
1756
 
1757
fi
1758
fi
1759
 
1760
echo "$ac_t""$ac_cv_header_stdc" 1>&6
1761
if test $ac_cv_header_stdc = yes; then
1762
  cat >> confdefs.h <<\EOF
1763
#define STDC_HEADERS 1
1764
EOF
1765
 
1766
fi
1767
 
1768
echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
1769
echo "configure:1770: checking for sys/wait.h that is POSIX.1 compatible" >&5
1770
if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
1771
  echo $ac_n "(cached) $ac_c" 1>&6
1772
else
1773
  cat > conftest.$ac_ext <
1774
#line 1775 "configure"
1775
#include "confdefs.h"
1776
#include 
1777
#include 
1778
#ifndef WEXITSTATUS
1779
#define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
1780
#endif
1781
#ifndef WIFEXITED
1782
#define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
1783
#endif
1784
int main() {
1785
int s;
1786
wait (&s);
1787
s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
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_header_sys_wait_h=yes
1793
else
1794
  echo "configure: failed program was:" >&5
1795
  cat conftest.$ac_ext >&5
1796
  rm -rf conftest*
1797
  ac_cv_header_sys_wait_h=no
1798
fi
1799
rm -f conftest*
1800
fi
1801
 
1802
echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
1803
if test $ac_cv_header_sys_wait_h = yes; then
1804
  cat >> confdefs.h <<\EOF
1805
#define HAVE_SYS_WAIT_H 1
1806
EOF
1807
 
1808
fi
1809
 
1810
for ac_hdr in limits.h unistd.h
1811
do
1812
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1813
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1814
echo "configure:1815: checking for $ac_hdr" >&5
1815
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1816
  echo $ac_n "(cached) $ac_c" 1>&6
1817
else
1818
  cat > conftest.$ac_ext <
1819
#line 1820 "configure"
1820
#include "confdefs.h"
1821
#include <$ac_hdr>
1822
EOF
1823
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1824
{ (eval echo configure:1825: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1825
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1826
if test -z "$ac_err"; then
1827
  rm -rf conftest*
1828
  eval "ac_cv_header_$ac_safe=yes"
1829
else
1830
  echo "$ac_err" >&5
1831
  echo "configure: failed program was:" >&5
1832
  cat conftest.$ac_ext >&5
1833
  rm -rf conftest*
1834
  eval "ac_cv_header_$ac_safe=no"
1835
fi
1836
rm -f conftest*
1837
fi
1838
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1839
  echo "$ac_t""yes" 1>&6
1840
    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1841
  cat >> confdefs.h <
1842
#define $ac_tr_hdr 1
1843
EOF
1844
 
1845
else
1846
  echo "$ac_t""no" 1>&6
1847
fi
1848
done
1849
 
1850
 
1851
 
1852
echo $ac_n "checking for working const""... $ac_c" 1>&6
1853
echo "configure:1854: checking for working const" >&5
1854
if eval "test \"`echo '$''{'ac_cv_c_const'+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
 
1861
int main() {
1862
 
1863
/* Ultrix mips cc rejects this.  */
1864
typedef int charset[2]; const charset x;
1865
/* SunOS 4.1.1 cc rejects this.  */
1866
char const *const *ccp;
1867
char **p;
1868
/* NEC SVR4.0.2 mips cc rejects this.  */
1869
struct point {int x, y;};
1870
static struct point const zero = {0,0};
1871
/* AIX XL C 1.02.0.0 rejects this.
1872
   It does not let you subtract one const X* pointer from another in an arm
1873
   of an if-expression whose if-part is not a constant expression */
1874
const char *g = "string";
1875
ccp = &g + (g ? g-g : 0);
1876
/* HPUX 7.0 cc rejects these. */
1877
++ccp;
1878
p = (char**) ccp;
1879
ccp = (char const *const *) p;
1880
{ /* SCO 3.2v4 cc rejects this.  */
1881
  char *t;
1882
  char const *s = 0 ? (char *) 0 : (char const *) 0;
1883
 
1884
  *t++ = 0;
1885
}
1886
{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
1887
  int x[] = {25, 17};
1888
  const int *foo = &x[0];
1889
  ++foo;
1890
}
1891
{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1892
  typedef const int *iptr;
1893
  iptr p = 0;
1894
  ++p;
1895
}
1896
{ /* AIX XL C 1.02.0.0 rejects this saying
1897
     "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1898
  struct s { int j; const int *ap[3]; };
1899
  struct s *b; b->j = 5;
1900
}
1901
{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1902
  const int foo = 10;
1903
}
1904
 
1905
; return 0; }
1906
EOF
1907
if { (eval echo configure:1908: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1908
  rm -rf conftest*
1909
  ac_cv_c_const=yes
1910
else
1911
  echo "configure: failed program was:" >&5
1912
  cat conftest.$ac_ext >&5
1913
  rm -rf conftest*
1914
  ac_cv_c_const=no
1915
fi
1916
rm -f conftest*
1917
fi
1918
 
1919
echo "$ac_t""$ac_cv_c_const" 1>&6
1920
if test $ac_cv_c_const = no; then
1921
  cat >> confdefs.h <<\EOF
1922
#define const
1923
EOF
1924
 
1925
fi
1926
 
1927
echo $ac_n "checking for inline""... $ac_c" 1>&6
1928
echo "configure:1929: checking for inline" >&5
1929
if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1930
  echo $ac_n "(cached) $ac_c" 1>&6
1931
else
1932
  ac_cv_c_inline=no
1933
for ac_kw in inline __inline__ __inline; do
1934
  cat > conftest.$ac_ext <
1935
#line 1936 "configure"
1936
#include "confdefs.h"
1937
 
1938
int main() {
1939
} $ac_kw foo() {
1940
; return 0; }
1941
EOF
1942
if { (eval echo configure:1943: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1943
  rm -rf conftest*
1944
  ac_cv_c_inline=$ac_kw; break
1945
else
1946
  echo "configure: failed program was:" >&5
1947
  cat conftest.$ac_ext >&5
1948
fi
1949
rm -f conftest*
1950
done
1951
 
1952
fi
1953
 
1954
echo "$ac_t""$ac_cv_c_inline" 1>&6
1955
case "$ac_cv_c_inline" in
1956
  inline | yes) ;;
1957
  no) cat >> confdefs.h <<\EOF
1958
#define inline
1959
EOF
1960
 ;;
1961
  *)  cat >> confdefs.h <
1962
#define inline $ac_cv_c_inline
1963
EOF
1964
 ;;
1965
esac
1966
 
1967
echo $ac_n "checking for pid_t""... $ac_c" 1>&6
1968
echo "configure:1969: checking for pid_t" >&5
1969
if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
1970
  echo $ac_n "(cached) $ac_c" 1>&6
1971
else
1972
  cat > conftest.$ac_ext <
1973
#line 1974 "configure"
1974
#include "confdefs.h"
1975
#include 
1976
#if STDC_HEADERS
1977
#include 
1978
#include 
1979
#endif
1980
EOF
1981
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1982
  egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1983
  rm -rf conftest*
1984
  ac_cv_type_pid_t=yes
1985
else
1986
  rm -rf conftest*
1987
  ac_cv_type_pid_t=no
1988
fi
1989
rm -f conftest*
1990
 
1991
fi
1992
echo "$ac_t""$ac_cv_type_pid_t" 1>&6
1993
if test $ac_cv_type_pid_t = no; then
1994
  cat >> confdefs.h <<\EOF
1995
#define pid_t int
1996
EOF
1997
 
1998
fi
1999
 
2000
 
2001
echo $ac_n "checking size of int""... $ac_c" 1>&6
2002
echo "configure:2003: checking size of int" >&5
2003
if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
2004
  echo $ac_n "(cached) $ac_c" 1>&6
2005
else
2006
  if test "$cross_compiling" = yes; then
2007
  ac_cv_sizeof_int=2
2008
else
2009
  cat > conftest.$ac_ext <
2010
#line 2011 "configure"
2011
#include "confdefs.h"
2012
#include 
2013
main()
2014
{
2015
  FILE *f=fopen("conftestval", "w");
2016
  if (!f) exit(1);
2017
  fprintf(f, "%d\n", sizeof(int));
2018
  exit(0);
2019
}
2020
EOF
2021
if { (eval echo configure:2022: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2022
then
2023
  ac_cv_sizeof_int=`cat conftestval`
2024
else
2025
  echo "configure: failed program was:" >&5
2026
  cat conftest.$ac_ext >&5
2027
  rm -fr conftest*
2028
  ac_cv_sizeof_int=0
2029
fi
2030
rm -fr conftest*
2031
fi
2032
 
2033
fi
2034
echo "$ac_t""$ac_cv_sizeof_int" 1>&6
2035
cat >> confdefs.h <
2036
#define SIZEOF_INT $ac_cv_sizeof_int
2037
EOF
2038
 
2039
 
2040
echo $ac_n "checking size of long""... $ac_c" 1>&6
2041
echo "configure:2042: checking size of long" >&5
2042
if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
2043
  echo $ac_n "(cached) $ac_c" 1>&6
2044
else
2045
  if test "$cross_compiling" = yes; then
2046
  ac_cv_sizeof_long=4
2047
else
2048
  cat > conftest.$ac_ext <
2049
#line 2050 "configure"
2050
#include "confdefs.h"
2051
#include 
2052
main()
2053
{
2054
  FILE *f=fopen("conftestval", "w");
2055
  if (!f) exit(1);
2056
  fprintf(f, "%d\n", sizeof(long));
2057
  exit(0);
2058
}
2059
EOF
2060
if { (eval echo configure:2061: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2061
then
2062
  ac_cv_sizeof_long=`cat conftestval`
2063
else
2064
  echo "configure: failed program was:" >&5
2065
  cat conftest.$ac_ext >&5
2066
  rm -fr conftest*
2067
  ac_cv_sizeof_long=0
2068
fi
2069
rm -fr conftest*
2070
fi
2071
 
2072
fi
2073
echo "$ac_t""$ac_cv_sizeof_long" 1>&6
2074
cat >> confdefs.h <
2075
#define SIZEOF_LONG $ac_cv_sizeof_long
2076
EOF
2077
 
2078
 
2079
echo $ac_n "checking size of long long""... $ac_c" 1>&6
2080
echo "configure:2081: checking size of long long" >&5
2081
if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
2082
  echo $ac_n "(cached) $ac_c" 1>&6
2083
else
2084
  if test "$cross_compiling" = yes; then
2085
  ac_cv_sizeof_long_long=8
2086
else
2087
  cat > conftest.$ac_ext <
2088
#line 2089 "configure"
2089
#include "confdefs.h"
2090
#include 
2091
main()
2092
{
2093
  FILE *f=fopen("conftestval", "w");
2094
  if (!f) exit(1);
2095
  fprintf(f, "%d\n", sizeof(long long));
2096
  exit(0);
2097
}
2098
EOF
2099
if { (eval echo configure:2100: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2100
then
2101
  ac_cv_sizeof_long_long=`cat conftestval`
2102
else
2103
  echo "configure: failed program was:" >&5
2104
  cat conftest.$ac_ext >&5
2105
  rm -fr conftest*
2106
  ac_cv_sizeof_long_long=0
2107
fi
2108
rm -fr conftest*
2109
fi
2110
 
2111
fi
2112
echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
2113
cat >> confdefs.h <
2114
#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
2115
EOF
2116
 
2117
 
2118
 
2119
 
2120
 
2121
 
2122
 
2123
 
2124
 
2125
echo $ac_n "checking whether to optimize for speed or for accuracy""... $ac_c" 1>&6
2126
echo "configure:2127: checking whether to optimize for speed or for accuracy" >&5
2127
 
2128
# Check whether --enable-speed or --disable-speed was given.
2129
if test "${enable_speed+set}" = set; then
2130
  enableval="$enable_speed"
2131
 
2132
    case "$enableval" in
2133
        yes)
2134
            optimize_for="speed"
2135
            cat >> confdefs.h <<\EOF
2136
#define OPT_SPEED 1
2137
EOF
2138
 
2139
            ;;
2140
    esac
2141
 
2142
fi
2143
 
2144
 
2145
# Check whether --enable-accuracy or --disable-accuracy was given.
2146
if test "${enable_accuracy+set}" = set; then
2147
  enableval="$enable_accuracy"
2148
 
2149
    case "$enableval" in
2150
        yes)
2151
            if test "$optimize_for" = "speed"
2152
            then
2153
                optimize_for="both"
2154
            else
2155
                optimize_for="accuracy"
2156
            fi
2157
            cat >> confdefs.h <<\EOF
2158
#define OPT_ACCURACY 1
2159
EOF
2160
 
2161
            ;;
2162
    esac
2163
 
2164
fi
2165
 
2166
 
2167
echo "$ac_t""${optimize_for-default}" 1>&6
2168
 
2169
if test "$optimize_for" = "both"
2170
then
2171
    { echo "configure: error: cannot optimize for both speed and accuracy" 1>&2; exit 1; }
2172
fi
2173
 
2174
echo $ac_n "checking for architecture-specific fixed-point math routines""... $ac_c" 1>&6
2175
echo "configure:2176: checking for architecture-specific fixed-point math routines" >&5
2176
# Check whether --enable-fpm or --disable-fpm was given.
2177
if test "${enable_fpm+set}" = set; then
2178
  enableval="$enable_fpm"
2179
 
2180
    case "$enableval" in
2181
        yes)                             ;;
2182
        no|default|approx) FPM="DEFAULT" ;;
2183
        intel|i?86)        FPM="INTEL"   ;;
2184
        arm)               FPM="ARM"     ;;
2185
        mips)              FPM="MIPS"    ;;
2186
        sparc)             FPM="SPARC"   ;;
2187
        ppc|powerpc)       FPM="PPC"     ;;
2188
        64bit)             FPM="64BIT"   ;;
2189
        *)
2190
            echo "$ac_t""failed" 1>&6
2191
            { echo "configure: error: bad --enable-fpm option" 1>&2; exit 1; }
2192
            ;;
2193
    esac
2194
 
2195
fi
2196
 
2197
 
2198
if test -z "$FPM" && test "$GCC" = yes
2199
then
2200
    case "$host" in
2201
        i?86-*)     FPM="INTEL"  ;;
2202
        arm*-*)     FPM="ARM"    ;;
2203
        mips*-*)    FPM="MIPS"   ;;
2204
        sparc*-*)   FPM="SPARC"  ;;
2205
        powerpc*-*) FPM="PPC"    ;;
2206
        or32*)      FPM="DEFAULT";;
2207
        # FIXME: need to test for 64-bit long long...
2208
    esac
2209
fi
2210
 
2211
echo "$ac_t""${FPM=DEFAULT}" 1>&6
2212
 
2213
if test "$FPM" = "DEFAULT"
2214
then
2215
    echo "configure: warning: default fixed-point math will yield limited accuracy" 1>&2
2216
fi
2217
 
2218
FPM="-DFPM_$FPM"
2219
 
2220
# Check whether --enable-sso or --disable-sso was given.
2221
if test "${enable_sso+set}" = set; then
2222
  enableval="$enable_sso"
2223
 
2224
    case "$enableval" in
2225
        yes) cat >> confdefs.h <<\EOF
2226
#define OPT_SSO 1
2227
EOF
2228
 ;;
2229
    esac
2230
 
2231
fi
2232
 
2233
 
2234
# Check whether --enable-aso or --disable-aso was given.
2235
if test "${enable_aso+set}" = set; then
2236
  enableval="$enable_aso"
2237
  :
2238
else
2239
  enable_aso=yes
2240
fi
2241
 
2242
 
2243
if test "$enable_aso" = yes
2244
then
2245
    case "$host" in
2246
        i?86-*)
2247
            : #ASO="$ASO -DASO_INTERLEAVE1"
2248
            ASO="$ASO -DASO_ZEROCHECK"
2249
            : #not yet #ASO="$ASO -DASO_SYNTH"
2250
            : #not yet #ASO_OBJS="synth_mmx.lo"
2251
            ;;
2252
        arm*-*)
2253
            ASO="$ASO -DASO_INTERLEAVE1"
2254
            ASO="$ASO -DASO_IMDCT"
2255
            ASO_OBJS="imdct_l_arm.lo"
2256
            ;;
2257
        mips*-*)
2258
            ASO="$ASO -DASO_INTERLEAVE2"
2259
            ASO="$ASO -DASO_ZEROCHECK"
2260
            ;;
2261
    esac
2262
fi
2263
 
2264
echo $ac_n "checking for ISO/IEC interpretation""... $ac_c" 1>&6
2265
echo "configure:2266: checking for ISO/IEC interpretation" >&5
2266
# Check whether --enable-strict-iso or --disable-strict-iso was given.
2267
if test "${enable_strict_iso+set}" = set; then
2268
  enableval="$enable_strict_iso"
2269
 
2270
    case "$enableval" in
2271
        yes)
2272
            cat >> confdefs.h <<\EOF
2273
#define OPT_STRICT 1
2274
EOF
2275
 
2276
            interpretation="strict"
2277
            ;;
2278
    esac
2279
 
2280
fi
2281
 
2282
echo "$ac_t""${interpretation-best accepted practices}" 1>&6
2283
 
2284
echo $ac_n "checking whether to enable profiling""... $ac_c" 1>&6
2285
echo "configure:2286: checking whether to enable profiling" >&5
2286
# Check whether --enable-profiling or --disable-profiling was given.
2287
if test "${enable_profiling+set}" = set; then
2288
  enableval="$enable_profiling"
2289
 
2290
    case "$enableval" in
2291
        yes) profile="-pg" ;;
2292
    esac
2293
 
2294
fi
2295
 
2296
echo "$ac_t""${enable_profiling-no}" 1>&6
2297
 
2298
echo $ac_n "checking whether to enable debugging""... $ac_c" 1>&6
2299
echo "configure:2300: checking whether to enable debugging" >&5
2300
# Check whether --enable-debugging or --disable-debugging was given.
2301
if test "${enable_debugging+set}" = set; then
2302
  enableval="$enable_debugging"
2303
 
2304
    case "$enableval" in
2305
        yes)
2306
            cat >> confdefs.h <<\EOF
2307
#define DEBUG 1
2308
EOF
2309
 
2310
            optimize=""
2311
            ;;
2312
        no)
2313
            if test -n "$profile"
2314
            then
2315
    { echo "configure: error: --enable-profiling and --disable-debugging are incompatible" 1>&2; exit 1; }
2316
            fi
2317
 
2318
            cat >> confdefs.h <<\EOF
2319
#define NDEBUG 1
2320
EOF
2321
 
2322
            debug=""
2323
            if test "$GCC" = yes
2324
            then
2325
                optimize="$optimize -fomit-frame-pointer"
2326
            fi
2327
            ;;
2328
    esac
2329
 
2330
fi
2331
 
2332
echo "$ac_t""${enable_debugging-default}" 1>&6
2333
 
2334
echo $ac_n "checking whether to enable experimental code""... $ac_c" 1>&6
2335
echo "configure:2336: checking whether to enable experimental code" >&5
2336
# Check whether --enable-experimental or --disable-experimental was given.
2337
if test "${enable_experimental+set}" = set; then
2338
  enableval="$enable_experimental"
2339
 
2340
    case "$enableval" in
2341
        yes) cat >> confdefs.h <<\EOF
2342
#define EXPERIMENTAL 1
2343
EOF
2344
 ;;
2345
    esac
2346
 
2347
fi
2348
 
2349
echo "$ac_t""${enable_experimental-no}" 1>&6
2350
 
2351
 
2352
test -n "$arch"     && CFLAGS="$CFLAGS $arch"
2353
test -n "$debug"    && CFLAGS="$CFLAGS $debug"
2354
test -n "$optimize" && CFLAGS="$CFLAGS $optimize"
2355
test -n "$profile"  && CFLAGS="$CFLAGS $profile" LDFLAGS="$LDFLAGS $profile"
2356
LTLIBOBJS=`echo "$LIBOBJS" | sed -e 's/\.o/.lo/g'`
2357
 
2358
 
2359
trap '' 1 2 15
2360
cat > confcache <<\EOF
2361
# This file is a shell script that caches the results of configure
2362
# tests run on this system so they can be shared between configure
2363
# scripts and configure runs.  It is not useful on other systems.
2364
# If it contains results you don't want to keep, you may remove or edit it.
2365
#
2366
# By default, configure uses ./config.cache as the cache file,
2367
# creating it if it does not exist already.  You can give configure
2368
# the --cache-file=FILE option to use a different cache file; that is
2369
# what configure does when it calls configure scripts in
2370
# subdirectories, so they share the cache.
2371
# Giving --cache-file=/dev/null disables caching, for debugging configure.
2372
# config.status only pays attention to the cache file if you give it the
2373
# --recheck option to rerun configure.
2374
#
2375
EOF
2376
# The following way of writing the cache mishandles newlines in values,
2377
# but we know of no workaround that is simple, portable, and efficient.
2378
# So, don't put newlines in cache variables' values.
2379
# Ultrix sh set writes to stderr and can't be redirected directly,
2380
# and sets the high bit in the cache file unless we assign to the vars.
2381
(set) 2>&1 |
2382
  case `(ac_space=' '; set | grep ac_space) 2>&1` in
2383
  *ac_space=\ *)
2384
    # `set' does not quote correctly, so add quotes (double-quote substitution
2385
    # turns \\\\ into \\, and sed turns \\ into \).
2386
    sed -n \
2387
      -e "s/'/'\\\\''/g" \
2388
      -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2389
    ;;
2390
  *)
2391
    # `set' quotes correctly as required by POSIX, so do not add quotes.
2392
    sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2393
    ;;
2394
  esac >> confcache
2395
if cmp -s $cache_file confcache; then
2396
  :
2397
else
2398
  if test -w $cache_file; then
2399
    echo "updating cache $cache_file"
2400
    cat confcache > $cache_file
2401
  else
2402
    echo "not updating unwritable cache $cache_file"
2403
  fi
2404
fi
2405
rm -f confcache
2406
 
2407
trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
2408
 
2409
test "x$prefix" = xNONE && prefix=$ac_default_prefix
2410
# Let make expand exec_prefix.
2411
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
2412
 
2413
# Any assignment to VPATH causes Sun make to only execute
2414
# the first set of double-colon rules, so remove it if not needed.
2415
# If there is a colon in the path, we need to keep it.
2416
if test "x$srcdir" = x.; then
2417
  ac_vpsub='/^[         ]*VPATH[        ]*=[^:]*$/d'
2418
fi
2419
 
2420
trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
2421
 
2422
DEFS=-DHAVE_CONFIG_H
2423
 
2424
# Without the "./", some shells look in PATH for config.status.
2425
: ${CONFIG_STATUS=./config.status}
2426
 
2427
echo creating $CONFIG_STATUS
2428
rm -f $CONFIG_STATUS
2429
cat > $CONFIG_STATUS <
2430
#! /bin/sh
2431
# Generated automatically by configure.
2432
# Run this file to recreate the current configuration.
2433
# This directory was configured as follows,
2434
# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
2435
#
2436
# $0 $ac_configure_args
2437
#
2438
# Compiler output produced by configure, useful for debugging
2439
# configure, is in ./config.log if it exists.
2440
 
2441
ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
2442
for ac_option
2443
do
2444
  case "\$ac_option" in
2445
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
2446
    echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
2447
    exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
2448
  -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
2449
    echo "$CONFIG_STATUS generated by autoconf version 2.13"
2450
    exit 0 ;;
2451
  -help | --help | --hel | --he | --h)
2452
    echo "\$ac_cs_usage"; exit 0 ;;
2453
  *) echo "\$ac_cs_usage"; exit 1 ;;
2454
  esac
2455
done
2456
 
2457
ac_given_srcdir=$srcdir
2458
ac_given_INSTALL="$INSTALL"
2459
 
2460
trap 'rm -fr `echo "Makefile config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
2461
EOF
2462
cat >> $CONFIG_STATUS <
2463
 
2464
# Protect against being on the right side of a sed subst in config.status.
2465
sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
2466
 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
2467
$ac_vpsub
2468
$extrasub
2469
s%@SHELL@%$SHELL%g
2470
s%@CFLAGS@%$CFLAGS%g
2471
s%@CPPFLAGS@%$CPPFLAGS%g
2472
s%@CXXFLAGS@%$CXXFLAGS%g
2473
s%@FFLAGS@%$FFLAGS%g
2474
s%@DEFS@%$DEFS%g
2475
s%@LDFLAGS@%$LDFLAGS%g
2476
s%@LIBS@%$LIBS%g
2477
s%@exec_prefix@%$exec_prefix%g
2478
s%@prefix@%$prefix%g
2479
s%@program_transform_name@%$program_transform_name%g
2480
s%@bindir@%$bindir%g
2481
s%@sbindir@%$sbindir%g
2482
s%@libexecdir@%$libexecdir%g
2483
s%@datadir@%$datadir%g
2484
s%@sysconfdir@%$sysconfdir%g
2485
s%@sharedstatedir@%$sharedstatedir%g
2486
s%@localstatedir@%$localstatedir%g
2487
s%@libdir@%$libdir%g
2488
s%@includedir@%$includedir%g
2489
s%@oldincludedir@%$oldincludedir%g
2490
s%@infodir@%$infodir%g
2491
s%@mandir@%$mandir%g
2492
s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
2493
s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
2494
s%@INSTALL_DATA@%$INSTALL_DATA%g
2495
s%@PACKAGE@%$PACKAGE%g
2496
s%@VERSION@%$VERSION%g
2497
s%@ACLOCAL@%$ACLOCAL%g
2498
s%@AUTOCONF@%$AUTOCONF%g
2499
s%@AUTOMAKE@%$AUTOMAKE%g
2500
s%@AUTOHEADER@%$AUTOHEADER%g
2501
s%@MAKEINFO@%$MAKEINFO%g
2502
s%@SET_MAKE@%$SET_MAKE%g
2503
s%@host@%$host%g
2504
s%@host_alias@%$host_alias%g
2505
s%@host_cpu@%$host_cpu%g
2506
s%@host_vendor@%$host_vendor%g
2507
s%@host_os@%$host_os%g
2508
s%@build@%$build%g
2509
s%@build_alias@%$build_alias%g
2510
s%@build_cpu@%$build_cpu%g
2511
s%@build_vendor@%$build_vendor%g
2512
s%@build_os@%$build_os%g
2513
s%@CC@%$CC%g
2514
s%@RANLIB@%$RANLIB%g
2515
s%@CPP@%$CPP%g
2516
s%@FPM@%$FPM%g
2517
s%@ASO@%$ASO%g
2518
s%@ASO_OBJS@%$ASO_OBJS%g
2519
s%@LTLIBOBJS@%$LTLIBOBJS%g
2520
 
2521
CEOF
2522
EOF
2523
 
2524
cat >> $CONFIG_STATUS <<\EOF
2525
 
2526
# Split the substitutions into bite-sized pieces for seds with
2527
# small command number limits, like on Digital OSF/1 and HP-UX.
2528
ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
2529
ac_file=1 # Number of current file.
2530
ac_beg=1 # First line for current file.
2531
ac_end=$ac_max_sed_cmds # Line after last line for current file.
2532
ac_more_lines=:
2533
ac_sed_cmds=""
2534
while $ac_more_lines; do
2535
  if test $ac_beg -gt 1; then
2536
    sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
2537
  else
2538
    sed "${ac_end}q" conftest.subs > conftest.s$ac_file
2539
  fi
2540
  if test ! -s conftest.s$ac_file; then
2541
    ac_more_lines=false
2542
    rm -f conftest.s$ac_file
2543
  else
2544
    if test -z "$ac_sed_cmds"; then
2545
      ac_sed_cmds="sed -f conftest.s$ac_file"
2546
    else
2547
      ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
2548
    fi
2549
    ac_file=`expr $ac_file + 1`
2550
    ac_beg=$ac_end
2551
    ac_end=`expr $ac_end + $ac_max_sed_cmds`
2552
  fi
2553
done
2554
if test -z "$ac_sed_cmds"; then
2555
  ac_sed_cmds=cat
2556
fi
2557
EOF
2558
 
2559
cat >> $CONFIG_STATUS <
2560
 
2561
CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
2562
EOF
2563
cat >> $CONFIG_STATUS <<\EOF
2564
for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
2565
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2566
  case "$ac_file" in
2567
  *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2568
       ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2569
  *) ac_file_in="${ac_file}.in" ;;
2570
  esac
2571
 
2572
  # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
2573
 
2574
  # Remove last slash and all that follows it.  Not all systems have dirname.
2575
  ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2576
  if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2577
    # The file is in a subdirectory.
2578
    test ! -d "$ac_dir" && mkdir "$ac_dir"
2579
    ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
2580
    # A "../" for each directory in $ac_dir_suffix.
2581
    ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
2582
  else
2583
    ac_dir_suffix= ac_dots=
2584
  fi
2585
 
2586
  case "$ac_given_srcdir" in
2587
  .)  srcdir=.
2588
      if test -z "$ac_dots"; then top_srcdir=.
2589
      else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
2590
  /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
2591
  *) # Relative path.
2592
    srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
2593
    top_srcdir="$ac_dots$ac_given_srcdir" ;;
2594
  esac
2595
 
2596
  case "$ac_given_INSTALL" in
2597
  [/$]*) INSTALL="$ac_given_INSTALL" ;;
2598
  *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
2599
  esac
2600
 
2601
  echo creating "$ac_file"
2602
  rm -f "$ac_file"
2603
  configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
2604
  case "$ac_file" in
2605
  *Makefile*) ac_comsub="1i\\
2606
# $configure_input" ;;
2607
  *) ac_comsub= ;;
2608
  esac
2609
 
2610
  ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2611
  sed -e "$ac_comsub
2612
s%@configure_input@%$configure_input%g
2613
s%@srcdir@%$srcdir%g
2614
s%@top_srcdir@%$top_srcdir%g
2615
s%@INSTALL@%$INSTALL%g
2616
" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
2617
fi; done
2618
rm -f conftest.s*
2619
 
2620
# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
2621
# NAME is the cpp macro being defined and VALUE is the value it is being given.
2622
#
2623
# ac_d sets the value in "#define NAME VALUE" lines.
2624
ac_dA='s%^\([   ]*\)#\([        ]*define[       ][      ]*\)'
2625
ac_dB='\([      ][      ]*\)[^  ]*%\1#\2'
2626
ac_dC='\3'
2627
ac_dD='%g'
2628
# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
2629
ac_uA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
2630
ac_uB='\([      ]\)%\1#\2define\3'
2631
ac_uC=' '
2632
ac_uD='\4%g'
2633
# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
2634
ac_eA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
2635
ac_eB='$%\1#\2define\3'
2636
ac_eC=' '
2637
ac_eD='%g'
2638
 
2639
if test "${CONFIG_HEADERS+set}" != set; then
2640
EOF
2641
cat >> $CONFIG_STATUS <
2642
  CONFIG_HEADERS="config.h"
2643
EOF
2644
cat >> $CONFIG_STATUS <<\EOF
2645
fi
2646
for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
2647
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2648
  case "$ac_file" in
2649
  *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2650
       ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2651
  *) ac_file_in="${ac_file}.in" ;;
2652
  esac
2653
 
2654
  echo creating $ac_file
2655
 
2656
  rm -f conftest.frag conftest.in conftest.out
2657
  ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2658
  cat $ac_file_inputs > conftest.in
2659
 
2660
EOF
2661
 
2662
# Transform confdefs.h into a sed script conftest.vals that substitutes
2663
# the proper values into config.h.in to produce config.h.  And first:
2664
# Protect against being on the right side of a sed subst in config.status.
2665
# Protect against being in an unquoted here document in config.status.
2666
rm -f conftest.vals
2667
cat > conftest.hdr <<\EOF
2668
s/[\\&%]/\\&/g
2669
s%[\\$`]%\\&%g
2670
s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
2671
s%ac_d%ac_u%gp
2672
s%ac_u%ac_e%gp
2673
EOF
2674
sed -n -f conftest.hdr confdefs.h > conftest.vals
2675
rm -f conftest.hdr
2676
 
2677
# This sed command replaces #undef with comments.  This is necessary, for
2678
# example, in the case of _POSIX_SOURCE, which is predefined and required
2679
# on some systems where configure will not decide to define it.
2680
cat >> conftest.vals <<\EOF
2681
s%^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
2682
EOF
2683
 
2684
# Break up conftest.vals because some shells have a limit on
2685
# the size of here documents, and old seds have small limits too.
2686
 
2687
rm -f conftest.tail
2688
while :
2689
do
2690
  ac_lines=`grep -c . conftest.vals`
2691
  # grep -c gives empty output for an empty file on some AIX systems.
2692
  if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
2693
  # Write a limited-size here document to conftest.frag.
2694
  echo '  cat > conftest.frag <> $CONFIG_STATUS
2695
  sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
2696
  echo 'CEOF
2697
  sed -f conftest.frag conftest.in > conftest.out
2698
  rm -f conftest.in
2699
  mv conftest.out conftest.in
2700
' >> $CONFIG_STATUS
2701
  sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
2702
  rm -f conftest.vals
2703
  mv conftest.tail conftest.vals
2704
done
2705
rm -f conftest.vals
2706
 
2707
cat >> $CONFIG_STATUS <<\EOF
2708
  rm -f conftest.frag conftest.h
2709
  echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
2710
  cat conftest.in >> conftest.h
2711
  rm -f conftest.in
2712
  if cmp -s $ac_file conftest.h 2>/dev/null; then
2713
    echo "$ac_file is unchanged"
2714
    rm -f conftest.h
2715
  else
2716
    # Remove last slash and all that follows it.  Not all systems have dirname.
2717
      ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2718
      if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2719
      # The file is in a subdirectory.
2720
      test ! -d "$ac_dir" && mkdir "$ac_dir"
2721
    fi
2722
    rm -f $ac_file
2723
    mv conftest.h $ac_file
2724
  fi
2725
fi; done
2726
 
2727
EOF
2728
cat >> $CONFIG_STATUS <
2729
 
2730
 
2731
EOF
2732
cat >> $CONFIG_STATUS <<\EOF
2733
test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
2734
 
2735
exit 0
2736
EOF
2737
chmod +x $CONFIG_STATUS
2738
rm -fr confdefs* $ac_clean_files
2739
test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
2740
 

powered by: WebSVN 2.1.0

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