~ubuntu-branches/ubuntu/lucid/mpg123/lucid

« back to all changes in this revision

Viewing changes to configure

Tags: upstream-0.60
ImportĀ upstreamĀ versionĀ 0.60

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#! /bin/sh
 
2
# Guess values for system-dependent variables and create Makefiles.
 
3
# Generated by GNU Autoconf 2.59 for mpg123 0.60.
 
4
#
 
5
# Report bugs to <mpg123-devel@lists.sourceforge.net>.
 
6
#
 
7
# Copyright (C) 2003 Free Software Foundation, Inc.
 
8
# This configure script is free software; the Free Software Foundation
 
9
# gives unlimited permission to copy, distribute and modify it.
 
10
## --------------------- ##
 
11
## M4sh Initialization.  ##
 
12
## --------------------- ##
 
13
 
 
14
# Be Bourne compatible
 
15
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
 
16
  emulate sh
 
17
  NULLCMD=:
 
18
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
 
19
  # is contrary to our usage.  Disable this feature.
 
20
  alias -g '${1+"$@"}'='"$@"'
 
21
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
 
22
  set -o posix
 
23
fi
 
24
DUALCASE=1; export DUALCASE # for MKS sh
 
25
 
 
26
# Support unset when possible.
 
27
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
 
28
  as_unset=unset
 
29
else
 
30
  as_unset=false
 
31
fi
 
32
 
 
33
 
 
34
# Work around bugs in pre-3.0 UWIN ksh.
 
35
$as_unset ENV MAIL MAILPATH
 
36
PS1='$ '
 
37
PS2='> '
 
38
PS4='+ '
 
39
 
 
40
# NLS nuisances.
 
41
for as_var in \
 
42
  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
 
43
  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
 
44
  LC_TELEPHONE LC_TIME
 
45
do
 
46
  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
 
47
    eval $as_var=C; export $as_var
 
48
  else
 
49
    $as_unset $as_var
 
50
  fi
 
51
done
 
52
 
 
53
# Required to use basename.
 
54
if expr a : '\(a\)' >/dev/null 2>&1; then
 
55
  as_expr=expr
 
56
else
 
57
  as_expr=false
 
58
fi
 
59
 
 
60
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
 
61
  as_basename=basename
 
62
else
 
63
  as_basename=false
 
64
fi
 
65
 
 
66
 
 
67
# Name of the executable.
 
68
as_me=`$as_basename "$0" ||
 
69
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
 
70
         X"$0" : 'X\(//\)$' \| \
 
71
         X"$0" : 'X\(/\)$' \| \
 
72
         .     : '\(.\)' 2>/dev/null ||
 
73
echo X/"$0" |
 
74
    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
 
75
          /^X\/\(\/\/\)$/{ s//\1/; q; }
 
76
          /^X\/\(\/\).*/{ s//\1/; q; }
 
77
          s/.*/./; q'`
 
78
 
 
79
 
 
80
# PATH needs CR, and LINENO needs CR and PATH.
 
81
# Avoid depending upon Character Ranges.
 
82
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
 
83
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
 
84
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
 
85
as_cr_digits='0123456789'
 
86
as_cr_alnum=$as_cr_Letters$as_cr_digits
 
87
 
 
88
# The user is always right.
 
89
if test "${PATH_SEPARATOR+set}" != set; then
 
90
  echo "#! /bin/sh" >conf$$.sh
 
91
  echo  "exit 0"   >>conf$$.sh
 
92
  chmod +x conf$$.sh
 
93
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
 
94
    PATH_SEPARATOR=';'
 
95
  else
 
96
    PATH_SEPARATOR=:
 
97
  fi
 
98
  rm -f conf$$.sh
 
99
fi
 
100
 
 
101
 
 
102
  as_lineno_1=$LINENO
 
103
  as_lineno_2=$LINENO
 
104
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
 
105
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
106
  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
 
107
  # Find who we are.  Look in the path if we contain no path at all
 
108
  # relative or not.
 
109
  case $0 in
 
110
    *[\\/]* ) as_myself=$0 ;;
 
111
    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
112
for as_dir in $PATH
 
113
do
 
114
  IFS=$as_save_IFS
 
115
  test -z "$as_dir" && as_dir=.
 
116
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 
117
done
 
118
 
 
119
       ;;
 
120
  esac
 
121
  # We did not find ourselves, most probably we were run as `sh COMMAND'
 
122
  # in which case we are not to be found in the path.
 
123
  if test "x$as_myself" = x; then
 
124
    as_myself=$0
 
125
  fi
 
126
  if test ! -f "$as_myself"; then
 
127
    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
 
128
   { (exit 1); exit 1; }; }
 
129
  fi
 
130
  case $CONFIG_SHELL in
 
131
  '')
 
132
    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
133
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
 
134
do
 
135
  IFS=$as_save_IFS
 
136
  test -z "$as_dir" && as_dir=.
 
137
  for as_base in sh bash ksh sh5; do
 
138
         case $as_dir in
 
139
         /*)
 
140
           if ("$as_dir/$as_base" -c '
 
141
  as_lineno_1=$LINENO
 
142
  as_lineno_2=$LINENO
 
143
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
 
144
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
145
  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
 
146
             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
 
147
             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
 
148
             CONFIG_SHELL=$as_dir/$as_base
 
149
             export CONFIG_SHELL
 
150
             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
 
151
           fi;;
 
152
         esac
 
153
       done
 
154
done
 
155
;;
 
156
  esac
 
157
 
 
158
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
 
159
  # uniformly replaced by the line number.  The first 'sed' inserts a
 
160
  # line-number line before each line; the second 'sed' does the real
 
161
  # work.  The second script uses 'N' to pair each line-number line
 
162
  # with the numbered line, and appends trailing '-' during
 
163
  # substitution so that $LINENO is not a special case at line end.
 
164
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
 
165
  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
 
166
  sed '=' <$as_myself |
 
167
    sed '
 
168
      N
 
169
      s,$,-,
 
170
      : loop
 
171
      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
 
172
      t loop
 
173
      s,-$,,
 
174
      s,^['$as_cr_digits']*\n,,
 
175
    ' >$as_me.lineno &&
 
176
  chmod +x $as_me.lineno ||
 
177
    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
 
178
   { (exit 1); exit 1; }; }
 
179
 
 
180
  # Don't try to exec as it changes $[0], causing all sort of problems
 
181
  # (the dirname of $[0] is not the place where we might find the
 
182
  # original and so on.  Autoconf is especially sensible to this).
 
183
  . ./$as_me.lineno
 
184
  # Exit status is that of the last command.
 
185
  exit
 
186
}
 
187
 
 
188
 
 
189
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
 
190
  *c*,-n*) ECHO_N= ECHO_C='
 
191
' ECHO_T='      ' ;;
 
192
  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
 
193
  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
 
194
esac
 
195
 
 
196
if expr a : '\(a\)' >/dev/null 2>&1; then
 
197
  as_expr=expr
 
198
else
 
199
  as_expr=false
 
200
fi
 
201
 
 
202
rm -f conf$$ conf$$.exe conf$$.file
 
203
echo >conf$$.file
 
204
if ln -s conf$$.file conf$$ 2>/dev/null; then
 
205
  # We could just check for DJGPP; but this test a) works b) is more generic
 
206
  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
 
207
  if test -f conf$$.exe; then
 
208
    # Don't use ln at all; we don't have any links
 
209
    as_ln_s='cp -p'
 
210
  else
 
211
    as_ln_s='ln -s'
 
212
  fi
 
213
elif ln conf$$.file conf$$ 2>/dev/null; then
 
214
  as_ln_s=ln
 
215
else
 
216
  as_ln_s='cp -p'
 
217
fi
 
218
rm -f conf$$ conf$$.exe conf$$.file
 
219
 
 
220
if mkdir -p . 2>/dev/null; then
 
221
  as_mkdir_p=:
 
222
else
 
223
  test -d ./-p && rmdir ./-p
 
224
  as_mkdir_p=false
 
225
fi
 
226
 
 
227
as_executable_p="test -f"
 
228
 
 
229
# Sed expression to map a string onto a valid CPP name.
 
230
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
 
231
 
 
232
# Sed expression to map a string onto a valid variable name.
 
233
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
 
234
 
 
235
 
 
236
# IFS
 
237
# We need space, tab and new line, in precisely that order.
 
238
as_nl='
 
239
'
 
240
IFS="   $as_nl"
 
241
 
 
242
# CDPATH.
 
243
$as_unset CDPATH
 
244
 
 
245
 
 
246
# Name of the host.
 
247
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
 
248
# so uname gets run too.
 
249
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
 
250
 
 
251
exec 6>&1
 
252
 
 
253
#
 
254
# Initializations.
 
255
#
 
256
ac_default_prefix=/usr/local
 
257
ac_config_libobj_dir=.
 
258
cross_compiling=no
 
259
subdirs=
 
260
MFLAGS=
 
261
MAKEFLAGS=
 
262
SHELL=${CONFIG_SHELL-/bin/sh}
 
263
 
 
264
# Maximum number of lines to put in a shell here document.
 
265
# This variable seems obsolete.  It should probably be removed, and
 
266
# only ac_max_sed_lines should be used.
 
267
: ${ac_max_here_lines=38}
 
268
 
 
269
# Identity of this package.
 
270
PACKAGE_NAME='mpg123'
 
271
PACKAGE_TARNAME='mpg123'
 
272
PACKAGE_VERSION='0.60'
 
273
PACKAGE_STRING='mpg123 0.60'
 
274
PACKAGE_BUGREPORT='mpg123-devel@lists.sourceforge.net'
 
275
 
 
276
ac_unique_file="src/mpg123.c"
 
277
# Factoring default headers for most tests.
 
278
ac_includes_default="\
 
279
#include <stdio.h>
 
280
#if HAVE_SYS_TYPES_H
 
281
# include <sys/types.h>
 
282
#endif
 
283
#if HAVE_SYS_STAT_H
 
284
# include <sys/stat.h>
 
285
#endif
 
286
#if STDC_HEADERS
 
287
# include <stdlib.h>
 
288
# include <stddef.h>
 
289
#else
 
290
# if HAVE_STDLIB_H
 
291
#  include <stdlib.h>
 
292
# endif
 
293
#endif
 
294
#if HAVE_STRING_H
 
295
# if !STDC_HEADERS && HAVE_MEMORY_H
 
296
#  include <memory.h>
 
297
# endif
 
298
# include <string.h>
 
299
#endif
 
300
#if HAVE_STRINGS_H
 
301
# include <strings.h>
 
302
#endif
 
303
#if HAVE_INTTYPES_H
 
304
# include <inttypes.h>
 
305
#else
 
306
# if HAVE_STDINT_H
 
307
#  include <stdint.h>
 
308
# endif
 
309
#endif
 
310
#if HAVE_UNISTD_H
 
311
# include <unistd.h>
 
312
#endif"
 
313
 
 
314
ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM AWK SET_MAKE am__leading_dot CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CCAS CCASFLAGS RANLIB ac_ct_RANLIB CPP EGREP PKG_CONFIG JACK_CFLAGS JACK_LIBS ESOUND_CFLAGS ESOUND_LIBS SDL_CFLAGS SDL_LIBS CPU_TYPE_LIB  AUDIO_OBJ AUDIO_CFLAGS AUDIO_LIBS LIBOBJS LTLIBOBJS'
 
315
ac_subst_files=''
 
316
 
 
317
# Initialize some variables set by options.
 
318
ac_init_help=
 
319
ac_init_version=false
 
320
# The variables have the same names as the options, with
 
321
# dashes changed to underlines.
 
322
cache_file=/dev/null
 
323
exec_prefix=NONE
 
324
no_create=
 
325
no_recursion=
 
326
prefix=NONE
 
327
program_prefix=NONE
 
328
program_suffix=NONE
 
329
program_transform_name=s,x,x,
 
330
silent=
 
331
site=
 
332
srcdir=
 
333
verbose=
 
334
x_includes=NONE
 
335
x_libraries=NONE
 
336
 
 
337
# Installation directory options.
 
338
# These are left unexpanded so users can "make install exec_prefix=/foo"
 
339
# and all the variables that are supposed to be based on exec_prefix
 
340
# by default will actually change.
 
341
# Use braces instead of parens because sh, perl, etc. also accept them.
 
342
bindir='${exec_prefix}/bin'
 
343
sbindir='${exec_prefix}/sbin'
 
344
libexecdir='${exec_prefix}/libexec'
 
345
datadir='${prefix}/share'
 
346
sysconfdir='${prefix}/etc'
 
347
sharedstatedir='${prefix}/com'
 
348
localstatedir='${prefix}/var'
 
349
libdir='${exec_prefix}/lib'
 
350
includedir='${prefix}/include'
 
351
oldincludedir='/usr/include'
 
352
infodir='${prefix}/info'
 
353
mandir='${prefix}/man'
 
354
 
 
355
ac_prev=
 
356
for ac_option
 
357
do
 
358
  # If the previous option needs an argument, assign it.
 
359
  if test -n "$ac_prev"; then
 
360
    eval "$ac_prev=\$ac_option"
 
361
    ac_prev=
 
362
    continue
 
363
  fi
 
364
 
 
365
  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
 
366
 
 
367
  # Accept the important Cygnus configure options, so we can diagnose typos.
 
368
 
 
369
  case $ac_option in
 
370
 
 
371
  -bindir | --bindir | --bindi | --bind | --bin | --bi)
 
372
    ac_prev=bindir ;;
 
373
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
 
374
    bindir=$ac_optarg ;;
 
375
 
 
376
  -build | --build | --buil | --bui | --bu)
 
377
    ac_prev=build_alias ;;
 
378
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
 
379
    build_alias=$ac_optarg ;;
 
380
 
 
381
  -cache-file | --cache-file | --cache-fil | --cache-fi \
 
382
  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
 
383
    ac_prev=cache_file ;;
 
384
  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
 
385
  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
 
386
    cache_file=$ac_optarg ;;
 
387
 
 
388
  --config-cache | -C)
 
389
    cache_file=config.cache ;;
 
390
 
 
391
  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
 
392
    ac_prev=datadir ;;
 
393
  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
 
394
  | --da=*)
 
395
    datadir=$ac_optarg ;;
 
396
 
 
397
  -disable-* | --disable-*)
 
398
    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
 
399
    # Reject names that are not valid shell variable names.
 
400
    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
 
401
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
 
402
   { (exit 1); exit 1; }; }
 
403
    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
 
404
    eval "enable_$ac_feature=no" ;;
 
405
 
 
406
  -enable-* | --enable-*)
 
407
    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
 
408
    # Reject names that are not valid shell variable names.
 
409
    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
 
410
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
 
411
   { (exit 1); exit 1; }; }
 
412
    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
 
413
    case $ac_option in
 
414
      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
 
415
      *) ac_optarg=yes ;;
 
416
    esac
 
417
    eval "enable_$ac_feature='$ac_optarg'" ;;
 
418
 
 
419
  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
 
420
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
 
421
  | --exec | --exe | --ex)
 
422
    ac_prev=exec_prefix ;;
 
423
  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
 
424
  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
 
425
  | --exec=* | --exe=* | --ex=*)
 
426
    exec_prefix=$ac_optarg ;;
 
427
 
 
428
  -gas | --gas | --ga | --g)
 
429
    # Obsolete; use --with-gas.
 
430
    with_gas=yes ;;
 
431
 
 
432
  -help | --help | --hel | --he | -h)
 
433
    ac_init_help=long ;;
 
434
  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
 
435
    ac_init_help=recursive ;;
 
436
  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
 
437
    ac_init_help=short ;;
 
438
 
 
439
  -host | --host | --hos | --ho)
 
440
    ac_prev=host_alias ;;
 
441
  -host=* | --host=* | --hos=* | --ho=*)
 
442
    host_alias=$ac_optarg ;;
 
443
 
 
444
  -includedir | --includedir | --includedi | --included | --include \
 
445
  | --includ | --inclu | --incl | --inc)
 
446
    ac_prev=includedir ;;
 
447
  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
 
448
  | --includ=* | --inclu=* | --incl=* | --inc=*)
 
449
    includedir=$ac_optarg ;;
 
450
 
 
451
  -infodir | --infodir | --infodi | --infod | --info | --inf)
 
452
    ac_prev=infodir ;;
 
453
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
 
454
    infodir=$ac_optarg ;;
 
455
 
 
456
  -libdir | --libdir | --libdi | --libd)
 
457
    ac_prev=libdir ;;
 
458
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
 
459
    libdir=$ac_optarg ;;
 
460
 
 
461
  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
 
462
  | --libexe | --libex | --libe)
 
463
    ac_prev=libexecdir ;;
 
464
  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
 
465
  | --libexe=* | --libex=* | --libe=*)
 
466
    libexecdir=$ac_optarg ;;
 
467
 
 
468
  -localstatedir | --localstatedir | --localstatedi | --localstated \
 
469
  | --localstate | --localstat | --localsta | --localst \
 
470
  | --locals | --local | --loca | --loc | --lo)
 
471
    ac_prev=localstatedir ;;
 
472
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
 
473
  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
 
474
  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
 
475
    localstatedir=$ac_optarg ;;
 
476
 
 
477
  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
 
478
    ac_prev=mandir ;;
 
479
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
 
480
    mandir=$ac_optarg ;;
 
481
 
 
482
  -nfp | --nfp | --nf)
 
483
    # Obsolete; use --without-fp.
 
484
    with_fp=no ;;
 
485
 
 
486
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
 
487
  | --no-cr | --no-c | -n)
 
488
    no_create=yes ;;
 
489
 
 
490
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
 
491
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
 
492
    no_recursion=yes ;;
 
493
 
 
494
  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
 
495
  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
 
496
  | --oldin | --oldi | --old | --ol | --o)
 
497
    ac_prev=oldincludedir ;;
 
498
  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
 
499
  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
 
500
  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
 
501
    oldincludedir=$ac_optarg ;;
 
502
 
 
503
  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
 
504
    ac_prev=prefix ;;
 
505
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
 
506
    prefix=$ac_optarg ;;
 
507
 
 
508
  -program-prefix | --program-prefix | --program-prefi | --program-pref \
 
509
  | --program-pre | --program-pr | --program-p)
 
510
    ac_prev=program_prefix ;;
 
511
  -program-prefix=* | --program-prefix=* | --program-prefi=* \
 
512
  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
 
513
    program_prefix=$ac_optarg ;;
 
514
 
 
515
  -program-suffix | --program-suffix | --program-suffi | --program-suff \
 
516
  | --program-suf | --program-su | --program-s)
 
517
    ac_prev=program_suffix ;;
 
518
  -program-suffix=* | --program-suffix=* | --program-suffi=* \
 
519
  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
 
520
    program_suffix=$ac_optarg ;;
 
521
 
 
522
  -program-transform-name | --program-transform-name \
 
523
  | --program-transform-nam | --program-transform-na \
 
524
  | --program-transform-n | --program-transform- \
 
525
  | --program-transform | --program-transfor \
 
526
  | --program-transfo | --program-transf \
 
527
  | --program-trans | --program-tran \
 
528
  | --progr-tra | --program-tr | --program-t)
 
529
    ac_prev=program_transform_name ;;
 
530
  -program-transform-name=* | --program-transform-name=* \
 
531
  | --program-transform-nam=* | --program-transform-na=* \
 
532
  | --program-transform-n=* | --program-transform-=* \
 
533
  | --program-transform=* | --program-transfor=* \
 
534
  | --program-transfo=* | --program-transf=* \
 
535
  | --program-trans=* | --program-tran=* \
 
536
  | --progr-tra=* | --program-tr=* | --program-t=*)
 
537
    program_transform_name=$ac_optarg ;;
 
538
 
 
539
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
540
  | -silent | --silent | --silen | --sile | --sil)
 
541
    silent=yes ;;
 
542
 
 
543
  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
 
544
    ac_prev=sbindir ;;
 
545
  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
 
546
  | --sbi=* | --sb=*)
 
547
    sbindir=$ac_optarg ;;
 
548
 
 
549
  -sharedstatedir | --sharedstatedir | --sharedstatedi \
 
550
  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
 
551
  | --sharedst | --shareds | --shared | --share | --shar \
 
552
  | --sha | --sh)
 
553
    ac_prev=sharedstatedir ;;
 
554
  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
 
555
  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
 
556
  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
 
557
  | --sha=* | --sh=*)
 
558
    sharedstatedir=$ac_optarg ;;
 
559
 
 
560
  -site | --site | --sit)
 
561
    ac_prev=site ;;
 
562
  -site=* | --site=* | --sit=*)
 
563
    site=$ac_optarg ;;
 
564
 
 
565
  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
 
566
    ac_prev=srcdir ;;
 
567
  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
 
568
    srcdir=$ac_optarg ;;
 
569
 
 
570
  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
 
571
  | --syscon | --sysco | --sysc | --sys | --sy)
 
572
    ac_prev=sysconfdir ;;
 
573
  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
 
574
  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
 
575
    sysconfdir=$ac_optarg ;;
 
576
 
 
577
  -target | --target | --targe | --targ | --tar | --ta | --t)
 
578
    ac_prev=target_alias ;;
 
579
  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
 
580
    target_alias=$ac_optarg ;;
 
581
 
 
582
  -v | -verbose | --verbose | --verbos | --verbo | --verb)
 
583
    verbose=yes ;;
 
584
 
 
585
  -version | --version | --versio | --versi | --vers | -V)
 
586
    ac_init_version=: ;;
 
587
 
 
588
  -with-* | --with-*)
 
589
    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
 
590
    # Reject names that are not valid shell variable names.
 
591
    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
 
592
      { echo "$as_me: error: invalid package name: $ac_package" >&2
 
593
   { (exit 1); exit 1; }; }
 
594
    ac_package=`echo $ac_package| sed 's/-/_/g'`
 
595
    case $ac_option in
 
596
      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
 
597
      *) ac_optarg=yes ;;
 
598
    esac
 
599
    eval "with_$ac_package='$ac_optarg'" ;;
 
600
 
 
601
  -without-* | --without-*)
 
602
    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
 
603
    # Reject names that are not valid shell variable names.
 
604
    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
 
605
      { echo "$as_me: error: invalid package name: $ac_package" >&2
 
606
   { (exit 1); exit 1; }; }
 
607
    ac_package=`echo $ac_package | sed 's/-/_/g'`
 
608
    eval "with_$ac_package=no" ;;
 
609
 
 
610
  --x)
 
611
    # Obsolete; use --with-x.
 
612
    with_x=yes ;;
 
613
 
 
614
  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
 
615
  | --x-incl | --x-inc | --x-in | --x-i)
 
616
    ac_prev=x_includes ;;
 
617
  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
 
618
  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
 
619
    x_includes=$ac_optarg ;;
 
620
 
 
621
  -x-libraries | --x-libraries | --x-librarie | --x-librari \
 
622
  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
 
623
    ac_prev=x_libraries ;;
 
624
  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
 
625
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
 
626
    x_libraries=$ac_optarg ;;
 
627
 
 
628
  -*) { echo "$as_me: error: unrecognized option: $ac_option
 
629
Try \`$0 --help' for more information." >&2
 
630
   { (exit 1); exit 1; }; }
 
631
    ;;
 
632
 
 
633
  *=*)
 
634
    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
 
635
    # Reject names that are not valid shell variable names.
 
636
    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
 
637
      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
 
638
   { (exit 1); exit 1; }; }
 
639
    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
 
640
    eval "$ac_envvar='$ac_optarg'"
 
641
    export $ac_envvar ;;
 
642
 
 
643
  *)
 
644
    # FIXME: should be removed in autoconf 3.0.
 
645
    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
 
646
    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
 
647
      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
 
648
    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
 
649
    ;;
 
650
 
 
651
  esac
 
652
done
 
653
 
 
654
if test -n "$ac_prev"; then
 
655
  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
 
656
  { echo "$as_me: error: missing argument to $ac_option" >&2
 
657
   { (exit 1); exit 1; }; }
 
658
fi
 
659
 
 
660
# Be sure to have absolute paths.
 
661
for ac_var in exec_prefix prefix
 
662
do
 
663
  eval ac_val=$`echo $ac_var`
 
664
  case $ac_val in
 
665
    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
 
666
    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
 
667
   { (exit 1); exit 1; }; };;
 
668
  esac
 
669
done
 
670
 
 
671
# Be sure to have absolute paths.
 
672
for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
 
673
              localstatedir libdir includedir oldincludedir infodir mandir
 
674
do
 
675
  eval ac_val=$`echo $ac_var`
 
676
  case $ac_val in
 
677
    [\\/$]* | ?:[\\/]* ) ;;
 
678
    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
 
679
   { (exit 1); exit 1; }; };;
 
680
  esac
 
681
done
 
682
 
 
683
# There might be people who depend on the old broken behavior: `$host'
 
684
# used to hold the argument of --host etc.
 
685
# FIXME: To remove some day.
 
686
build=$build_alias
 
687
host=$host_alias
 
688
target=$target_alias
 
689
 
 
690
# FIXME: To remove some day.
 
691
if test "x$host_alias" != x; then
 
692
  if test "x$build_alias" = x; then
 
693
    cross_compiling=maybe
 
694
    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
 
695
    If a cross compiler is detected then cross compile mode will be used." >&2
 
696
  elif test "x$build_alias" != "x$host_alias"; then
 
697
    cross_compiling=yes
 
698
  fi
 
699
fi
 
700
 
 
701
ac_tool_prefix=
 
702
test -n "$host_alias" && ac_tool_prefix=$host_alias-
 
703
 
 
704
test "$silent" = yes && exec 6>/dev/null
 
705
 
 
706
 
 
707
# Find the source files, if location was not specified.
 
708
if test -z "$srcdir"; then
 
709
  ac_srcdir_defaulted=yes
 
710
  # Try the directory containing this script, then its parent.
 
711
  ac_confdir=`(dirname "$0") 2>/dev/null ||
 
712
$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
713
         X"$0" : 'X\(//\)[^/]' \| \
 
714
         X"$0" : 'X\(//\)$' \| \
 
715
         X"$0" : 'X\(/\)' \| \
 
716
         .     : '\(.\)' 2>/dev/null ||
 
717
echo X"$0" |
 
718
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
719
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
720
          /^X\(\/\/\)$/{ s//\1/; q; }
 
721
          /^X\(\/\).*/{ s//\1/; q; }
 
722
          s/.*/./; q'`
 
723
  srcdir=$ac_confdir
 
724
  if test ! -r $srcdir/$ac_unique_file; then
 
725
    srcdir=..
 
726
  fi
 
727
else
 
728
  ac_srcdir_defaulted=no
 
729
fi
 
730
if test ! -r $srcdir/$ac_unique_file; then
 
731
  if test "$ac_srcdir_defaulted" = yes; then
 
732
    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
 
733
   { (exit 1); exit 1; }; }
 
734
  else
 
735
    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
 
736
   { (exit 1); exit 1; }; }
 
737
  fi
 
738
fi
 
739
(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
 
740
  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
 
741
   { (exit 1); exit 1; }; }
 
742
srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
 
743
ac_env_build_alias_set=${build_alias+set}
 
744
ac_env_build_alias_value=$build_alias
 
745
ac_cv_env_build_alias_set=${build_alias+set}
 
746
ac_cv_env_build_alias_value=$build_alias
 
747
ac_env_host_alias_set=${host_alias+set}
 
748
ac_env_host_alias_value=$host_alias
 
749
ac_cv_env_host_alias_set=${host_alias+set}
 
750
ac_cv_env_host_alias_value=$host_alias
 
751
ac_env_target_alias_set=${target_alias+set}
 
752
ac_env_target_alias_value=$target_alias
 
753
ac_cv_env_target_alias_set=${target_alias+set}
 
754
ac_cv_env_target_alias_value=$target_alias
 
755
ac_env_CC_set=${CC+set}
 
756
ac_env_CC_value=$CC
 
757
ac_cv_env_CC_set=${CC+set}
 
758
ac_cv_env_CC_value=$CC
 
759
ac_env_CFLAGS_set=${CFLAGS+set}
 
760
ac_env_CFLAGS_value=$CFLAGS
 
761
ac_cv_env_CFLAGS_set=${CFLAGS+set}
 
762
ac_cv_env_CFLAGS_value=$CFLAGS
 
763
ac_env_LDFLAGS_set=${LDFLAGS+set}
 
764
ac_env_LDFLAGS_value=$LDFLAGS
 
765
ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
 
766
ac_cv_env_LDFLAGS_value=$LDFLAGS
 
767
ac_env_CPPFLAGS_set=${CPPFLAGS+set}
 
768
ac_env_CPPFLAGS_value=$CPPFLAGS
 
769
ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
 
770
ac_cv_env_CPPFLAGS_value=$CPPFLAGS
 
771
ac_env_CPP_set=${CPP+set}
 
772
ac_env_CPP_value=$CPP
 
773
ac_cv_env_CPP_set=${CPP+set}
 
774
ac_cv_env_CPP_value=$CPP
 
775
 
 
776
#
 
777
# Report the --help message.
 
778
#
 
779
if test "$ac_init_help" = "long"; then
 
780
  # Omit some internal or obsolete options to make the list less imposing.
 
781
  # This message is too long to be a string in the A/UX 3.1 sh.
 
782
  cat <<_ACEOF
 
783
\`configure' configures mpg123 0.60 to adapt to many kinds of systems.
 
784
 
 
785
Usage: $0 [OPTION]... [VAR=VALUE]...
 
786
 
 
787
To assign environment variables (e.g., CC, CFLAGS...), specify them as
 
788
VAR=VALUE.  See below for descriptions of some of the useful variables.
 
789
 
 
790
Defaults for the options are specified in brackets.
 
791
 
 
792
Configuration:
 
793
  -h, --help              display this help and exit
 
794
      --help=short        display options specific to this package
 
795
      --help=recursive    display the short help of all the included packages
 
796
  -V, --version           display version information and exit
 
797
  -q, --quiet, --silent   do not print \`checking...' messages
 
798
      --cache-file=FILE   cache test results in FILE [disabled]
 
799
  -C, --config-cache      alias for \`--cache-file=config.cache'
 
800
  -n, --no-create         do not create output files
 
801
      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
 
802
 
 
803
_ACEOF
 
804
 
 
805
  cat <<_ACEOF
 
806
Installation directories:
 
807
  --prefix=PREFIX         install architecture-independent files in PREFIX
 
808
                          [$ac_default_prefix]
 
809
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
 
810
                          [PREFIX]
 
811
 
 
812
By default, \`make install' will install all the files in
 
813
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
 
814
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
 
815
for instance \`--prefix=\$HOME'.
 
816
 
 
817
For better control, use the options below.
 
818
 
 
819
Fine tuning of the installation directories:
 
820
  --bindir=DIR           user executables [EPREFIX/bin]
 
821
  --sbindir=DIR          system admin executables [EPREFIX/sbin]
 
822
  --libexecdir=DIR       program executables [EPREFIX/libexec]
 
823
  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
 
824
  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
 
825
  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
 
826
  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
 
827
  --libdir=DIR           object code libraries [EPREFIX/lib]
 
828
  --includedir=DIR       C header files [PREFIX/include]
 
829
  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
 
830
  --infodir=DIR          info documentation [PREFIX/info]
 
831
  --mandir=DIR           man documentation [PREFIX/man]
 
832
_ACEOF
 
833
 
 
834
  cat <<\_ACEOF
 
835
 
 
836
Program names:
 
837
  --program-prefix=PREFIX            prepend PREFIX to installed program names
 
838
  --program-suffix=SUFFIX            append SUFFIX to installed program names
 
839
  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
 
840
 
 
841
System types:
 
842
  --build=BUILD     configure for building on BUILD [guessed]
 
843
  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
 
844
  --target=TARGET   configure for building compilers for TARGET [HOST]
 
845
_ACEOF
 
846
fi
 
847
 
 
848
if test -n "$ac_init_help"; then
 
849
  case $ac_init_help in
 
850
     short | recursive ) echo "Configuration of mpg123 0.60:";;
 
851
   esac
 
852
  cat <<\_ACEOF
 
853
 
 
854
Optional Features:
 
855
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
 
856
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
 
857
  --disable-dependency-tracking Speeds up one-time builds
 
858
  --enable-dependency-tracking  Do not reject slow dependency extractors
 
859
  --enable-debug=no/yes turn on debugging
 
860
  --enable-gapless=no/yes turn on gapless (enabled per default)
 
861
 
 
862
Optional Packages:
 
863
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
 
864
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
 
865
 
 
866
  --with-cpu=generic_fpu      Use generic processor code with floating point arithmetic
 
867
  --with-cpu=generic_nofpu      Use generic processor code with fixed point arithmetic (p.ex. ARM, experimental)
 
868
  --with-cpu=i386_fpu         Use code optimized for i386 processors with floating point arithmetic
 
869
  --with-cpu=i386_nofpu         Use code optimized for i386 processors with fixed point arithmetic (experimental)
 
870
  --with-cpu=i486         Use code optimized for i486 processors
 
871
  --with-cpu=i586         Use code optimized for i586 processors
 
872
  --with-cpu=i586_dither  Use code optimized for i586 processors with dithering (noise shaping)
 
873
  --with-cpu=3dnow        Use code optimized for 3dnow processors
 
874
  --with-cpu=mmx          Use code optimized for MMX processors
 
875
  --with-cpu=altivec      Use code optimized for Altivec processors (PowerPC G4 and G5)
 
876
 
 
877
 
 
878
  --with-audio=aix        Use AIX audio output sub-system
 
879
  --with-audio=alib       Use Alib audio output sub-system (for HPUX)
 
880
  --with-audio=alsa       Use ALSA audio output sub-system
 
881
  --with-audio=dummy      Use dummy audio (when no sound card is available)
 
882
  --with-audio=esd        Use ESoundD audio output sub-system
 
883
  --with-audio=hp         Use HP audio output sub-system
 
884
  --with-audio=jack       Use JACK low-latency audio server
 
885
  --with-audio=macosx     Use Mac OS X audio output sub-system (CoreAudio)
 
886
  --with-audio=mint       Use MinT audio output sub-system (Atari)
 
887
  --with-audio=nas        Use NAS audio output (Network Audio System)
 
888
  --with-audio=os2        Use OS2 audio output sub-system
 
889
  --with-audio=oss        Use OSS audio output sub-system (/dev/dsp)
 
890
  --with-audio=portaudio  Use PortAudio audio output sub-system
 
891
  --with-audio=sdl        Use SDL audio output sub-system (Simple DirectMedia Layer)
 
892
  --with-audio=sgi        Use SGI audio output sub-system (IRIX)
 
893
  --with-audio=sun        Use Sun audio output sub-system (/dev/audio)
 
894
 
 
895
 
 
896
  --with-optimization=0   No Optimization
 
897
  --with-optimization=1   Limited Optimization (-O)
 
898
  --with-optimization=2   Default Optimization (-O2)
 
899
  --with-optimization=3   More Optimize than default (-O3)
 
900
  --with-optimization=4   Optimize yet more (-O4)
 
901
 
 
902
 
 
903
  --with-seektable=<size> choose size of seek index table (0 disables it), default 1000
 
904
 
 
905
 
 
906
Some influential environment variables:
 
907
  CC          C compiler command
 
908
  CFLAGS      C compiler flags
 
909
  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
 
910
              nonstandard directory <lib dir>
 
911
  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
 
912
              headers in a nonstandard directory <include dir>
 
913
  CPP         C preprocessor
 
914
 
 
915
Use these variables to override the choices made by `configure' or to help
 
916
it to find libraries and programs with nonstandard names/locations.
 
917
 
 
918
Report bugs to <mpg123-devel@lists.sourceforge.net>.
 
919
_ACEOF
 
920
fi
 
921
 
 
922
if test "$ac_init_help" = "recursive"; then
 
923
  # If there are subdirs, report their specific --help.
 
924
  ac_popdir=`pwd`
 
925
  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
 
926
    test -d $ac_dir || continue
 
927
    ac_builddir=.
 
928
 
 
929
if test "$ac_dir" != .; then
 
930
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
 
931
  # A "../" for each directory in $ac_dir_suffix.
 
932
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
 
933
else
 
934
  ac_dir_suffix= ac_top_builddir=
 
935
fi
 
936
 
 
937
case $srcdir in
 
938
  .)  # No --srcdir option.  We are building in place.
 
939
    ac_srcdir=.
 
940
    if test -z "$ac_top_builddir"; then
 
941
       ac_top_srcdir=.
 
942
    else
 
943
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
 
944
    fi ;;
 
945
  [\\/]* | ?:[\\/]* )  # Absolute path.
 
946
    ac_srcdir=$srcdir$ac_dir_suffix;
 
947
    ac_top_srcdir=$srcdir ;;
 
948
  *) # Relative path.
 
949
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
 
950
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
 
951
esac
 
952
 
 
953
# Do not use `cd foo && pwd` to compute absolute paths, because
 
954
# the directories may not exist.
 
955
case `pwd` in
 
956
.) ac_abs_builddir="$ac_dir";;
 
957
*)
 
958
  case "$ac_dir" in
 
959
  .) ac_abs_builddir=`pwd`;;
 
960
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
 
961
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
 
962
  esac;;
 
963
esac
 
964
case $ac_abs_builddir in
 
965
.) ac_abs_top_builddir=${ac_top_builddir}.;;
 
966
*)
 
967
  case ${ac_top_builddir}. in
 
968
  .) ac_abs_top_builddir=$ac_abs_builddir;;
 
969
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
 
970
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
 
971
  esac;;
 
972
esac
 
973
case $ac_abs_builddir in
 
974
.) ac_abs_srcdir=$ac_srcdir;;
 
975
*)
 
976
  case $ac_srcdir in
 
977
  .) ac_abs_srcdir=$ac_abs_builddir;;
 
978
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
 
979
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
 
980
  esac;;
 
981
esac
 
982
case $ac_abs_builddir in
 
983
.) ac_abs_top_srcdir=$ac_top_srcdir;;
 
984
*)
 
985
  case $ac_top_srcdir in
 
986
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
 
987
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
 
988
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
 
989
  esac;;
 
990
esac
 
991
 
 
992
    cd $ac_dir
 
993
    # Check for guested configure; otherwise get Cygnus style configure.
 
994
    if test -f $ac_srcdir/configure.gnu; then
 
995
      echo
 
996
      $SHELL $ac_srcdir/configure.gnu  --help=recursive
 
997
    elif test -f $ac_srcdir/configure; then
 
998
      echo
 
999
      $SHELL $ac_srcdir/configure  --help=recursive
 
1000
    elif test -f $ac_srcdir/configure.ac ||
 
1001
           test -f $ac_srcdir/configure.in; then
 
1002
      echo
 
1003
      $ac_configure --help
 
1004
    else
 
1005
      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
 
1006
    fi
 
1007
    cd $ac_popdir
 
1008
  done
 
1009
fi
 
1010
 
 
1011
test -n "$ac_init_help" && exit 0
 
1012
if $ac_init_version; then
 
1013
  cat <<\_ACEOF
 
1014
mpg123 configure 0.60
 
1015
generated by GNU Autoconf 2.59
 
1016
 
 
1017
Copyright (C) 2003 Free Software Foundation, Inc.
 
1018
This configure script is free software; the Free Software Foundation
 
1019
gives unlimited permission to copy, distribute and modify it.
 
1020
_ACEOF
 
1021
  exit 0
 
1022
fi
 
1023
exec 5>config.log
 
1024
cat >&5 <<_ACEOF
 
1025
This file contains any messages produced by compilers while
 
1026
running configure, to aid debugging if configure makes a mistake.
 
1027
 
 
1028
It was created by mpg123 $as_me 0.60, which was
 
1029
generated by GNU Autoconf 2.59.  Invocation command line was
 
1030
 
 
1031
  $ $0 $@
 
1032
 
 
1033
_ACEOF
 
1034
{
 
1035
cat <<_ASUNAME
 
1036
## --------- ##
 
1037
## Platform. ##
 
1038
## --------- ##
 
1039
 
 
1040
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
 
1041
uname -m = `(uname -m) 2>/dev/null || echo unknown`
 
1042
uname -r = `(uname -r) 2>/dev/null || echo unknown`
 
1043
uname -s = `(uname -s) 2>/dev/null || echo unknown`
 
1044
uname -v = `(uname -v) 2>/dev/null || echo unknown`
 
1045
 
 
1046
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
 
1047
/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
 
1048
 
 
1049
/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
 
1050
/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
 
1051
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
 
1052
hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
 
1053
/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
 
1054
/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
 
1055
/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
 
1056
 
 
1057
_ASUNAME
 
1058
 
 
1059
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1060
for as_dir in $PATH
 
1061
do
 
1062
  IFS=$as_save_IFS
 
1063
  test -z "$as_dir" && as_dir=.
 
1064
  echo "PATH: $as_dir"
 
1065
done
 
1066
 
 
1067
} >&5
 
1068
 
 
1069
cat >&5 <<_ACEOF
 
1070
 
 
1071
 
 
1072
## ----------- ##
 
1073
## Core tests. ##
 
1074
## ----------- ##
 
1075
 
 
1076
_ACEOF
 
1077
 
 
1078
 
 
1079
# Keep a trace of the command line.
 
1080
# Strip out --no-create and --no-recursion so they do not pile up.
 
1081
# Strip out --silent because we don't want to record it for future runs.
 
1082
# Also quote any args containing shell meta-characters.
 
1083
# Make two passes to allow for proper duplicate-argument suppression.
 
1084
ac_configure_args=
 
1085
ac_configure_args0=
 
1086
ac_configure_args1=
 
1087
ac_sep=
 
1088
ac_must_keep_next=false
 
1089
for ac_pass in 1 2
 
1090
do
 
1091
  for ac_arg
 
1092
  do
 
1093
    case $ac_arg in
 
1094
    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
 
1095
    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
1096
    | -silent | --silent | --silen | --sile | --sil)
 
1097
      continue ;;
 
1098
    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
 
1099
      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
 
1100
    esac
 
1101
    case $ac_pass in
 
1102
    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
 
1103
    2)
 
1104
      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
 
1105
      if test $ac_must_keep_next = true; then
 
1106
        ac_must_keep_next=false # Got value, back to normal.
 
1107
      else
 
1108
        case $ac_arg in
 
1109
          *=* | --config-cache | -C | -disable-* | --disable-* \
 
1110
          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
 
1111
          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
 
1112
          | -with-* | --with-* | -without-* | --without-* | --x)
 
1113
            case "$ac_configure_args0 " in
 
1114
              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
 
1115
            esac
 
1116
            ;;
 
1117
          -* ) ac_must_keep_next=true ;;
 
1118
        esac
 
1119
      fi
 
1120
      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
 
1121
      # Get rid of the leading space.
 
1122
      ac_sep=" "
 
1123
      ;;
 
1124
    esac
 
1125
  done
 
1126
done
 
1127
$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
 
1128
$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
 
1129
 
 
1130
# When interrupted or exit'd, cleanup temporary files, and complete
 
1131
# config.log.  We remove comments because anyway the quotes in there
 
1132
# would cause problems or look ugly.
 
1133
# WARNING: Be sure not to use single quotes in there, as some shells,
 
1134
# such as our DU 5.0 friend, will then `close' the trap.
 
1135
trap 'exit_status=$?
 
1136
  # Save into config.log some information that might help in debugging.
 
1137
  {
 
1138
    echo
 
1139
 
 
1140
    cat <<\_ASBOX
 
1141
## ---------------- ##
 
1142
## Cache variables. ##
 
1143
## ---------------- ##
 
1144
_ASBOX
 
1145
    echo
 
1146
    # The following way of writing the cache mishandles newlines in values,
 
1147
{
 
1148
  (set) 2>&1 |
 
1149
    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
 
1150
    *ac_space=\ *)
 
1151
      sed -n \
 
1152
        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
 
1153
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
 
1154
      ;;
 
1155
    *)
 
1156
      sed -n \
 
1157
        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
 
1158
      ;;
 
1159
    esac;
 
1160
}
 
1161
    echo
 
1162
 
 
1163
    cat <<\_ASBOX
 
1164
## ----------------- ##
 
1165
## Output variables. ##
 
1166
## ----------------- ##
 
1167
_ASBOX
 
1168
    echo
 
1169
    for ac_var in $ac_subst_vars
 
1170
    do
 
1171
      eval ac_val=$`echo $ac_var`
 
1172
      echo "$ac_var='"'"'$ac_val'"'"'"
 
1173
    done | sort
 
1174
    echo
 
1175
 
 
1176
    if test -n "$ac_subst_files"; then
 
1177
      cat <<\_ASBOX
 
1178
## ------------- ##
 
1179
## Output files. ##
 
1180
## ------------- ##
 
1181
_ASBOX
 
1182
      echo
 
1183
      for ac_var in $ac_subst_files
 
1184
      do
 
1185
        eval ac_val=$`echo $ac_var`
 
1186
        echo "$ac_var='"'"'$ac_val'"'"'"
 
1187
      done | sort
 
1188
      echo
 
1189
    fi
 
1190
 
 
1191
    if test -s confdefs.h; then
 
1192
      cat <<\_ASBOX
 
1193
## ----------- ##
 
1194
## confdefs.h. ##
 
1195
## ----------- ##
 
1196
_ASBOX
 
1197
      echo
 
1198
      sed "/^$/d" confdefs.h | sort
 
1199
      echo
 
1200
    fi
 
1201
    test "$ac_signal" != 0 &&
 
1202
      echo "$as_me: caught signal $ac_signal"
 
1203
    echo "$as_me: exit $exit_status"
 
1204
  } >&5
 
1205
  rm -f core *.core &&
 
1206
  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
 
1207
    exit $exit_status
 
1208
     ' 0
 
1209
for ac_signal in 1 2 13 15; do
 
1210
  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
 
1211
done
 
1212
ac_signal=0
 
1213
 
 
1214
# confdefs.h avoids OS command line length limits that DEFS can exceed.
 
1215
rm -rf conftest* confdefs.h
 
1216
# AIX cpp loses on an empty file, so make sure it contains at least a newline.
 
1217
echo >confdefs.h
 
1218
 
 
1219
# Predefined preprocessor variables.
 
1220
 
 
1221
cat >>confdefs.h <<_ACEOF
 
1222
#define PACKAGE_NAME "$PACKAGE_NAME"
 
1223
_ACEOF
 
1224
 
 
1225
 
 
1226
cat >>confdefs.h <<_ACEOF
 
1227
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
 
1228
_ACEOF
 
1229
 
 
1230
 
 
1231
cat >>confdefs.h <<_ACEOF
 
1232
#define PACKAGE_VERSION "$PACKAGE_VERSION"
 
1233
_ACEOF
 
1234
 
 
1235
 
 
1236
cat >>confdefs.h <<_ACEOF
 
1237
#define PACKAGE_STRING "$PACKAGE_STRING"
 
1238
_ACEOF
 
1239
 
 
1240
 
 
1241
cat >>confdefs.h <<_ACEOF
 
1242
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
 
1243
_ACEOF
 
1244
 
 
1245
 
 
1246
# Let the site file select an alternate cache file if it wants to.
 
1247
# Prefer explicitly selected file to automatically selected ones.
 
1248
if test -z "$CONFIG_SITE"; then
 
1249
  if test "x$prefix" != xNONE; then
 
1250
    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
 
1251
  else
 
1252
    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
 
1253
  fi
 
1254
fi
 
1255
for ac_site_file in $CONFIG_SITE; do
 
1256
  if test -r "$ac_site_file"; then
 
1257
    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
 
1258
echo "$as_me: loading site script $ac_site_file" >&6;}
 
1259
    sed 's/^/| /' "$ac_site_file" >&5
 
1260
    . "$ac_site_file"
 
1261
  fi
 
1262
done
 
1263
 
 
1264
if test -r "$cache_file"; then
 
1265
  # Some versions of bash will fail to source /dev/null (special
 
1266
  # files actually), so we avoid doing that.
 
1267
  if test -f "$cache_file"; then
 
1268
    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
 
1269
echo "$as_me: loading cache $cache_file" >&6;}
 
1270
    case $cache_file in
 
1271
      [\\/]* | ?:[\\/]* ) . $cache_file;;
 
1272
      *)                      . ./$cache_file;;
 
1273
    esac
 
1274
  fi
 
1275
else
 
1276
  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
 
1277
echo "$as_me: creating cache $cache_file" >&6;}
 
1278
  >$cache_file
 
1279
fi
 
1280
 
 
1281
# Check that the precious variables saved in the cache have kept the same
 
1282
# value.
 
1283
ac_cache_corrupted=false
 
1284
for ac_var in `(set) 2>&1 |
 
1285
               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
 
1286
  eval ac_old_set=\$ac_cv_env_${ac_var}_set
 
1287
  eval ac_new_set=\$ac_env_${ac_var}_set
 
1288
  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
 
1289
  eval ac_new_val="\$ac_env_${ac_var}_value"
 
1290
  case $ac_old_set,$ac_new_set in
 
1291
    set,)
 
1292
      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
 
1293
echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
 
1294
      ac_cache_corrupted=: ;;
 
1295
    ,set)
 
1296
      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
 
1297
echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
 
1298
      ac_cache_corrupted=: ;;
 
1299
    ,);;
 
1300
    *)
 
1301
      if test "x$ac_old_val" != "x$ac_new_val"; then
 
1302
        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
 
1303
echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
 
1304
        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
 
1305
echo "$as_me:   former value:  $ac_old_val" >&2;}
 
1306
        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
 
1307
echo "$as_me:   current value: $ac_new_val" >&2;}
 
1308
        ac_cache_corrupted=:
 
1309
      fi;;
 
1310
  esac
 
1311
  # Pass precious variables to config.status.
 
1312
  if test "$ac_new_set" = set; then
 
1313
    case $ac_new_val in
 
1314
    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
 
1315
      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
 
1316
    *) ac_arg=$ac_var=$ac_new_val ;;
 
1317
    esac
 
1318
    case " $ac_configure_args " in
 
1319
      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
 
1320
      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
 
1321
    esac
 
1322
  fi
 
1323
done
 
1324
if $ac_cache_corrupted; then
 
1325
  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
 
1326
echo "$as_me: error: changes in the environment can compromise the build" >&2;}
 
1327
  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
 
1328
echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
 
1329
   { (exit 1); exit 1; }; }
 
1330
fi
 
1331
 
 
1332
ac_ext=c
 
1333
ac_cpp='$CPP $CPPFLAGS'
 
1334
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
1335
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
1336
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
1337
 
 
1338
 
 
1339
 
 
1340
 
 
1341
 
 
1342
 
 
1343
 
 
1344
 
 
1345
 
 
1346
 
 
1347
 
 
1348
 
 
1349
 
 
1350
 
 
1351
 
 
1352
 
 
1353
 
 
1354
 
 
1355
 
 
1356
 
 
1357
 
 
1358
 
 
1359
 
 
1360
 
 
1361
 
 
1362
 
 
1363
 
 
1364
 
 
1365
 
 
1366
ac_aux_dir=
 
1367
for ac_dir in build $srcdir/build; do
 
1368
  if test -f $ac_dir/install-sh; then
 
1369
    ac_aux_dir=$ac_dir
 
1370
    ac_install_sh="$ac_aux_dir/install-sh -c"
 
1371
    break
 
1372
  elif test -f $ac_dir/install.sh; then
 
1373
    ac_aux_dir=$ac_dir
 
1374
    ac_install_sh="$ac_aux_dir/install.sh -c"
 
1375
    break
 
1376
  elif test -f $ac_dir/shtool; then
 
1377
    ac_aux_dir=$ac_dir
 
1378
    ac_install_sh="$ac_aux_dir/shtool install -c"
 
1379
    break
 
1380
  fi
 
1381
done
 
1382
if test -z "$ac_aux_dir"; then
 
1383
  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in build $srcdir/build" >&5
 
1384
echo "$as_me: error: cannot find install-sh or install.sh in build $srcdir/build" >&2;}
 
1385
   { (exit 1); exit 1; }; }
 
1386
fi
 
1387
ac_config_guess="$SHELL $ac_aux_dir/config.guess"
 
1388
ac_config_sub="$SHELL $ac_aux_dir/config.sub"
 
1389
ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
 
1390
 
 
1391
# Make sure we can run config.sub.
 
1392
$ac_config_sub sun4 >/dev/null 2>&1 ||
 
1393
  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
 
1394
echo "$as_me: error: cannot run $ac_config_sub" >&2;}
 
1395
   { (exit 1); exit 1; }; }
 
1396
 
 
1397
echo "$as_me:$LINENO: checking build system type" >&5
 
1398
echo $ECHO_N "checking build system type... $ECHO_C" >&6
 
1399
if test "${ac_cv_build+set}" = set; then
 
1400
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1401
else
 
1402
  ac_cv_build_alias=$build_alias
 
1403
test -z "$ac_cv_build_alias" &&
 
1404
  ac_cv_build_alias=`$ac_config_guess`
 
1405
test -z "$ac_cv_build_alias" &&
 
1406
  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
 
1407
echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
 
1408
   { (exit 1); exit 1; }; }
 
1409
ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
 
1410
  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
 
1411
echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
 
1412
   { (exit 1); exit 1; }; }
 
1413
 
 
1414
fi
 
1415
echo "$as_me:$LINENO: result: $ac_cv_build" >&5
 
1416
echo "${ECHO_T}$ac_cv_build" >&6
 
1417
build=$ac_cv_build
 
1418
build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
 
1419
build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
 
1420
build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
 
1421
 
 
1422
 
 
1423
echo "$as_me:$LINENO: checking host system type" >&5
 
1424
echo $ECHO_N "checking host system type... $ECHO_C" >&6
 
1425
if test "${ac_cv_host+set}" = set; then
 
1426
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1427
else
 
1428
  ac_cv_host_alias=$host_alias
 
1429
test -z "$ac_cv_host_alias" &&
 
1430
  ac_cv_host_alias=$ac_cv_build_alias
 
1431
ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
 
1432
  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
 
1433
echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
 
1434
   { (exit 1); exit 1; }; }
 
1435
 
 
1436
fi
 
1437
echo "$as_me:$LINENO: result: $ac_cv_host" >&5
 
1438
echo "${ECHO_T}$ac_cv_host" >&6
 
1439
host=$ac_cv_host
 
1440
host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
 
1441
host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
 
1442
host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
 
1443
 
 
1444
 
 
1445
echo "$as_me:$LINENO: checking target system type" >&5
 
1446
echo $ECHO_N "checking target system type... $ECHO_C" >&6
 
1447
if test "${ac_cv_target+set}" = set; then
 
1448
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1449
else
 
1450
  ac_cv_target_alias=$target_alias
 
1451
test "x$ac_cv_target_alias" = "x" &&
 
1452
  ac_cv_target_alias=$ac_cv_host_alias
 
1453
ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
 
1454
  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
 
1455
echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
 
1456
   { (exit 1); exit 1; }; }
 
1457
 
 
1458
fi
 
1459
echo "$as_me:$LINENO: result: $ac_cv_target" >&5
 
1460
echo "${ECHO_T}$ac_cv_target" >&6
 
1461
target=$ac_cv_target
 
1462
target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
 
1463
target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
 
1464
target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
 
1465
 
 
1466
 
 
1467
# The aliases save the names the user supplied, while $host etc.
 
1468
# will get canonicalized.
 
1469
test -n "$target_alias" &&
 
1470
  test "$program_prefix$program_suffix$program_transform_name" = \
 
1471
    NONENONEs,x,x, &&
 
1472
  program_prefix=${target_alias}-
 
1473
 
 
1474
am__api_version="1.7"
 
1475
# Find a good install program.  We prefer a C program (faster),
 
1476
# so one script is as good as another.  But avoid the broken or
 
1477
# incompatible versions:
 
1478
# SysV /etc/install, /usr/sbin/install
 
1479
# SunOS /usr/etc/install
 
1480
# IRIX /sbin/install
 
1481
# AIX /bin/install
 
1482
# AmigaOS /C/install, which installs bootblocks on floppy discs
 
1483
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
 
1484
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
 
1485
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
 
1486
# OS/2's system install, which has a completely different semantic
 
1487
# ./install, which can be erroneously created by make from ./install.sh.
 
1488
echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
 
1489
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
 
1490
if test -z "$INSTALL"; then
 
1491
if test "${ac_cv_path_install+set}" = set; then
 
1492
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1493
else
 
1494
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1495
for as_dir in $PATH
 
1496
do
 
1497
  IFS=$as_save_IFS
 
1498
  test -z "$as_dir" && as_dir=.
 
1499
  # Account for people who put trailing slashes in PATH elements.
 
1500
case $as_dir/ in
 
1501
  ./ | .// | /cC/* | \
 
1502
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
 
1503
  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
 
1504
  /usr/ucb/* ) ;;
 
1505
  *)
 
1506
    # OSF1 and SCO ODT 3.0 have their own names for install.
 
1507
    # Don't use installbsd from OSF since it installs stuff as root
 
1508
    # by default.
 
1509
    for ac_prog in ginstall scoinst install; do
 
1510
      for ac_exec_ext in '' $ac_executable_extensions; do
 
1511
        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
 
1512
          if test $ac_prog = install &&
 
1513
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
 
1514
            # AIX install.  It has an incompatible calling convention.
 
1515
            :
 
1516
          elif test $ac_prog = install &&
 
1517
            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
 
1518
            # program-specific install script used by HP pwplus--don't use.
 
1519
            :
 
1520
          else
 
1521
            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
 
1522
            break 3
 
1523
          fi
 
1524
        fi
 
1525
      done
 
1526
    done
 
1527
    ;;
 
1528
esac
 
1529
done
 
1530
 
 
1531
 
 
1532
fi
 
1533
  if test "${ac_cv_path_install+set}" = set; then
 
1534
    INSTALL=$ac_cv_path_install
 
1535
  else
 
1536
    # As a last resort, use the slow shell script.  We don't cache a
 
1537
    # path for INSTALL within a source directory, because that will
 
1538
    # break other packages using the cache if that directory is
 
1539
    # removed, or if the path is relative.
 
1540
    INSTALL=$ac_install_sh
 
1541
  fi
 
1542
fi
 
1543
echo "$as_me:$LINENO: result: $INSTALL" >&5
 
1544
echo "${ECHO_T}$INSTALL" >&6
 
1545
 
 
1546
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
 
1547
# It thinks the first close brace ends the variable substitution.
 
1548
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
 
1549
 
 
1550
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
 
1551
 
 
1552
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
 
1553
 
 
1554
echo "$as_me:$LINENO: checking whether build environment is sane" >&5
 
1555
echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
 
1556
# Just in case
 
1557
sleep 1
 
1558
echo timestamp > conftest.file
 
1559
# Do `set' in a subshell so we don't clobber the current shell's
 
1560
# arguments.  Must try -L first in case configure is actually a
 
1561
# symlink; some systems play weird games with the mod time of symlinks
 
1562
# (eg FreeBSD returns the mod time of the symlink's containing
 
1563
# directory).
 
1564
if (
 
1565
   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
 
1566
   if test "$*" = "X"; then
 
1567
      # -L didn't work.
 
1568
      set X `ls -t $srcdir/configure conftest.file`
 
1569
   fi
 
1570
   rm -f conftest.file
 
1571
   if test "$*" != "X $srcdir/configure conftest.file" \
 
1572
      && test "$*" != "X conftest.file $srcdir/configure"; then
 
1573
 
 
1574
      # If neither matched, then we have a broken ls.  This can happen
 
1575
      # if, for instance, CONFIG_SHELL is bash and it inherits a
 
1576
      # broken ls alias from the environment.  This has actually
 
1577
      # happened.  Such a system could not be considered "sane".
 
1578
      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
 
1579
alias in your environment" >&5
 
1580
echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
 
1581
alias in your environment" >&2;}
 
1582
   { (exit 1); exit 1; }; }
 
1583
   fi
 
1584
 
 
1585
   test "$2" = conftest.file
 
1586
   )
 
1587
then
 
1588
   # Ok.
 
1589
   :
 
1590
else
 
1591
   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
 
1592
Check your system clock" >&5
 
1593
echo "$as_me: error: newly created file is older than distributed files!
 
1594
Check your system clock" >&2;}
 
1595
   { (exit 1); exit 1; }; }
 
1596
fi
 
1597
echo "$as_me:$LINENO: result: yes" >&5
 
1598
echo "${ECHO_T}yes" >&6
 
1599
test "$program_prefix" != NONE &&
 
1600
  program_transform_name="s,^,$program_prefix,;$program_transform_name"
 
1601
# Use a double $ so make ignores it.
 
1602
test "$program_suffix" != NONE &&
 
1603
  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
 
1604
# Double any \ or $.  echo might interpret backslashes.
 
1605
# By default was `s,x,x', remove it if useless.
 
1606
cat <<\_ACEOF >conftest.sed
 
1607
s/[\\$]/&&/g;s/;s,x,x,$//
 
1608
_ACEOF
 
1609
program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
 
1610
rm conftest.sed
 
1611
 
 
1612
 
 
1613
# expand $ac_aux_dir to an absolute path
 
1614
am_aux_dir=`cd $ac_aux_dir && pwd`
 
1615
 
 
1616
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
 
1617
# Use eval to expand $SHELL
 
1618
if eval "$MISSING --run true"; then
 
1619
  am_missing_run="$MISSING --run "
 
1620
else
 
1621
  am_missing_run=
 
1622
  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
 
1623
echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
 
1624
fi
 
1625
 
 
1626
for ac_prog in gawk mawk nawk awk
 
1627
do
 
1628
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
1629
set dummy $ac_prog; ac_word=$2
 
1630
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
1631
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
1632
if test "${ac_cv_prog_AWK+set}" = set; then
 
1633
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1634
else
 
1635
  if test -n "$AWK"; then
 
1636
  ac_cv_prog_AWK="$AWK" # Let the user override the test.
 
1637
else
 
1638
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1639
for as_dir in $PATH
 
1640
do
 
1641
  IFS=$as_save_IFS
 
1642
  test -z "$as_dir" && as_dir=.
 
1643
  for ac_exec_ext in '' $ac_executable_extensions; do
 
1644
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
1645
    ac_cv_prog_AWK="$ac_prog"
 
1646
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
1647
    break 2
 
1648
  fi
 
1649
done
 
1650
done
 
1651
 
 
1652
fi
 
1653
fi
 
1654
AWK=$ac_cv_prog_AWK
 
1655
if test -n "$AWK"; then
 
1656
  echo "$as_me:$LINENO: result: $AWK" >&5
 
1657
echo "${ECHO_T}$AWK" >&6
 
1658
else
 
1659
  echo "$as_me:$LINENO: result: no" >&5
 
1660
echo "${ECHO_T}no" >&6
 
1661
fi
 
1662
 
 
1663
  test -n "$AWK" && break
 
1664
done
 
1665
 
 
1666
echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
 
1667
echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
 
1668
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
 
1669
if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
 
1670
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1671
else
 
1672
  cat >conftest.make <<\_ACEOF
 
1673
all:
 
1674
        @echo 'ac_maketemp="$(MAKE)"'
 
1675
_ACEOF
 
1676
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
 
1677
eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
 
1678
if test -n "$ac_maketemp"; then
 
1679
  eval ac_cv_prog_make_${ac_make}_set=yes
 
1680
else
 
1681
  eval ac_cv_prog_make_${ac_make}_set=no
 
1682
fi
 
1683
rm -f conftest.make
 
1684
fi
 
1685
if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
 
1686
  echo "$as_me:$LINENO: result: yes" >&5
 
1687
echo "${ECHO_T}yes" >&6
 
1688
  SET_MAKE=
 
1689
else
 
1690
  echo "$as_me:$LINENO: result: no" >&5
 
1691
echo "${ECHO_T}no" >&6
 
1692
  SET_MAKE="MAKE=${MAKE-make}"
 
1693
fi
 
1694
 
 
1695
rm -rf .tst 2>/dev/null
 
1696
mkdir .tst 2>/dev/null
 
1697
if test -d .tst; then
 
1698
  am__leading_dot=.
 
1699
else
 
1700
  am__leading_dot=_
 
1701
fi
 
1702
rmdir .tst 2>/dev/null
 
1703
 
 
1704
 # test to see if srcdir already configured
 
1705
if test "`cd $srcdir && pwd`" != "`pwd`" &&
 
1706
   test -f $srcdir/config.status; then
 
1707
  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
 
1708
echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
 
1709
   { (exit 1); exit 1; }; }
 
1710
fi
 
1711
 
 
1712
# test whether we have cygpath
 
1713
if test -z "$CYGPATH_W"; then
 
1714
  if (cygpath --version) >/dev/null 2>/dev/null; then
 
1715
    CYGPATH_W='cygpath -w'
 
1716
  else
 
1717
    CYGPATH_W=echo
 
1718
  fi
 
1719
fi
 
1720
 
 
1721
 
 
1722
# Define the identity of the package.
 
1723
 PACKAGE='mpg123'
 
1724
 VERSION='0.60'
 
1725
 
 
1726
 
 
1727
cat >>confdefs.h <<_ACEOF
 
1728
#define PACKAGE "$PACKAGE"
 
1729
_ACEOF
 
1730
 
 
1731
 
 
1732
cat >>confdefs.h <<_ACEOF
 
1733
#define VERSION "$VERSION"
 
1734
_ACEOF
 
1735
 
 
1736
# Some tools Automake needs.
 
1737
 
 
1738
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
 
1739
 
 
1740
 
 
1741
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
 
1742
 
 
1743
 
 
1744
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
 
1745
 
 
1746
 
 
1747
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
 
1748
 
 
1749
 
 
1750
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
 
1751
 
 
1752
 
 
1753
AMTAR=${AMTAR-"${am_missing_run}tar"}
 
1754
 
 
1755
install_sh=${install_sh-"$am_aux_dir/install-sh"}
 
1756
 
 
1757
# Installed binaries are usually stripped using `strip' when the user
 
1758
# run `make install-strip'.  However `strip' might not be the right
 
1759
# tool to use in cross-compilation environments, therefore Automake
 
1760
# will honor the `STRIP' environment variable to overrule this program.
 
1761
if test "$cross_compiling" != no; then
 
1762
  if test -n "$ac_tool_prefix"; then
 
1763
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
 
1764
set dummy ${ac_tool_prefix}strip; ac_word=$2
 
1765
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
1766
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
1767
if test "${ac_cv_prog_STRIP+set}" = set; then
 
1768
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1769
else
 
1770
  if test -n "$STRIP"; then
 
1771
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
 
1772
else
 
1773
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1774
for as_dir in $PATH
 
1775
do
 
1776
  IFS=$as_save_IFS
 
1777
  test -z "$as_dir" && as_dir=.
 
1778
  for ac_exec_ext in '' $ac_executable_extensions; do
 
1779
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
1780
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
 
1781
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
1782
    break 2
 
1783
  fi
 
1784
done
 
1785
done
 
1786
 
 
1787
fi
 
1788
fi
 
1789
STRIP=$ac_cv_prog_STRIP
 
1790
if test -n "$STRIP"; then
 
1791
  echo "$as_me:$LINENO: result: $STRIP" >&5
 
1792
echo "${ECHO_T}$STRIP" >&6
 
1793
else
 
1794
  echo "$as_me:$LINENO: result: no" >&5
 
1795
echo "${ECHO_T}no" >&6
 
1796
fi
 
1797
 
 
1798
fi
 
1799
if test -z "$ac_cv_prog_STRIP"; then
 
1800
  ac_ct_STRIP=$STRIP
 
1801
  # Extract the first word of "strip", so it can be a program name with args.
 
1802
set dummy strip; ac_word=$2
 
1803
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
1804
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
1805
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
 
1806
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1807
else
 
1808
  if test -n "$ac_ct_STRIP"; then
 
1809
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
 
1810
else
 
1811
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1812
for as_dir in $PATH
 
1813
do
 
1814
  IFS=$as_save_IFS
 
1815
  test -z "$as_dir" && as_dir=.
 
1816
  for ac_exec_ext in '' $ac_executable_extensions; do
 
1817
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
1818
    ac_cv_prog_ac_ct_STRIP="strip"
 
1819
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
1820
    break 2
 
1821
  fi
 
1822
done
 
1823
done
 
1824
 
 
1825
  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
 
1826
fi
 
1827
fi
 
1828
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
 
1829
if test -n "$ac_ct_STRIP"; then
 
1830
  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
 
1831
echo "${ECHO_T}$ac_ct_STRIP" >&6
 
1832
else
 
1833
  echo "$as_me:$LINENO: result: no" >&5
 
1834
echo "${ECHO_T}no" >&6
 
1835
fi
 
1836
 
 
1837
  STRIP=$ac_ct_STRIP
 
1838
else
 
1839
  STRIP="$ac_cv_prog_STRIP"
 
1840
fi
 
1841
 
 
1842
fi
 
1843
INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
 
1844
 
 
1845
# We need awk for the "check" target.  The system "awk" is bad on
 
1846
# some platforms.
 
1847
 
 
1848
 
 
1849
 
 
1850
          ac_config_headers="$ac_config_headers src/config.h"
 
1851
 
 
1852
 
 
1853
 
 
1854
 
 
1855
 
 
1856
DEPDIR="${am__leading_dot}deps"
 
1857
 
 
1858
          ac_config_commands="$ac_config_commands depfiles"
 
1859
 
 
1860
 
 
1861
am_make=${MAKE-make}
 
1862
cat > confinc << 'END'
 
1863
am__doit:
 
1864
        @echo done
 
1865
.PHONY: am__doit
 
1866
END
 
1867
# If we don't find an include directive, just comment out the code.
 
1868
echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
 
1869
echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
 
1870
am__include="#"
 
1871
am__quote=
 
1872
_am_result=none
 
1873
# First try GNU make style include.
 
1874
echo "include confinc" > confmf
 
1875
# We grep out `Entering directory' and `Leaving directory'
 
1876
# messages which can occur if `w' ends up in MAKEFLAGS.
 
1877
# In particular we don't look at `^make:' because GNU make might
 
1878
# be invoked under some other name (usually "gmake"), in which
 
1879
# case it prints its new name instead of `make'.
 
1880
if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
 
1881
   am__include=include
 
1882
   am__quote=
 
1883
   _am_result=GNU
 
1884
fi
 
1885
# Now try BSD make style include.
 
1886
if test "$am__include" = "#"; then
 
1887
   echo '.include "confinc"' > confmf
 
1888
   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
 
1889
      am__include=.include
 
1890
      am__quote="\""
 
1891
      _am_result=BSD
 
1892
   fi
 
1893
fi
 
1894
 
 
1895
 
 
1896
echo "$as_me:$LINENO: result: $_am_result" >&5
 
1897
echo "${ECHO_T}$_am_result" >&6
 
1898
rm -f confinc confmf
 
1899
 
 
1900
# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
 
1901
if test "${enable_dependency_tracking+set}" = set; then
 
1902
  enableval="$enable_dependency_tracking"
 
1903
 
 
1904
fi;
 
1905
if test "x$enable_dependency_tracking" != xno; then
 
1906
  am_depcomp="$ac_aux_dir/depcomp"
 
1907
  AMDEPBACKSLASH='\'
 
1908
fi
 
1909
 
 
1910
 
 
1911
if test "x$enable_dependency_tracking" != xno; then
 
1912
  AMDEP_TRUE=
 
1913
  AMDEP_FALSE='#'
 
1914
else
 
1915
  AMDEP_TRUE='#'
 
1916
  AMDEP_FALSE=
 
1917
fi
 
1918
 
 
1919
 
 
1920
 
 
1921
ac_ext=c
 
1922
ac_cpp='$CPP $CPPFLAGS'
 
1923
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
1924
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
1925
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
1926
if test -n "$ac_tool_prefix"; then
 
1927
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
 
1928
set dummy ${ac_tool_prefix}gcc; ac_word=$2
 
1929
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
1930
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
1931
if test "${ac_cv_prog_CC+set}" = set; then
 
1932
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1933
else
 
1934
  if test -n "$CC"; then
 
1935
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
1936
else
 
1937
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1938
for as_dir in $PATH
 
1939
do
 
1940
  IFS=$as_save_IFS
 
1941
  test -z "$as_dir" && as_dir=.
 
1942
  for ac_exec_ext in '' $ac_executable_extensions; do
 
1943
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
1944
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
 
1945
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
1946
    break 2
 
1947
  fi
 
1948
done
 
1949
done
 
1950
 
 
1951
fi
 
1952
fi
 
1953
CC=$ac_cv_prog_CC
 
1954
if test -n "$CC"; then
 
1955
  echo "$as_me:$LINENO: result: $CC" >&5
 
1956
echo "${ECHO_T}$CC" >&6
 
1957
else
 
1958
  echo "$as_me:$LINENO: result: no" >&5
 
1959
echo "${ECHO_T}no" >&6
 
1960
fi
 
1961
 
 
1962
fi
 
1963
if test -z "$ac_cv_prog_CC"; then
 
1964
  ac_ct_CC=$CC
 
1965
  # Extract the first word of "gcc", so it can be a program name with args.
 
1966
set dummy gcc; ac_word=$2
 
1967
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
1968
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
1969
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
 
1970
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1971
else
 
1972
  if test -n "$ac_ct_CC"; then
 
1973
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
1974
else
 
1975
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1976
for as_dir in $PATH
 
1977
do
 
1978
  IFS=$as_save_IFS
 
1979
  test -z "$as_dir" && as_dir=.
 
1980
  for ac_exec_ext in '' $ac_executable_extensions; do
 
1981
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
1982
    ac_cv_prog_ac_ct_CC="gcc"
 
1983
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
1984
    break 2
 
1985
  fi
 
1986
done
 
1987
done
 
1988
 
 
1989
fi
 
1990
fi
 
1991
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
1992
if test -n "$ac_ct_CC"; then
 
1993
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 
1994
echo "${ECHO_T}$ac_ct_CC" >&6
 
1995
else
 
1996
  echo "$as_me:$LINENO: result: no" >&5
 
1997
echo "${ECHO_T}no" >&6
 
1998
fi
 
1999
 
 
2000
  CC=$ac_ct_CC
 
2001
else
 
2002
  CC="$ac_cv_prog_CC"
 
2003
fi
 
2004
 
 
2005
if test -z "$CC"; then
 
2006
  if test -n "$ac_tool_prefix"; then
 
2007
  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
 
2008
set dummy ${ac_tool_prefix}cc; ac_word=$2
 
2009
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2010
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2011
if test "${ac_cv_prog_CC+set}" = set; then
 
2012
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2013
else
 
2014
  if test -n "$CC"; then
 
2015
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
2016
else
 
2017
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2018
for as_dir in $PATH
 
2019
do
 
2020
  IFS=$as_save_IFS
 
2021
  test -z "$as_dir" && as_dir=.
 
2022
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2023
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2024
    ac_cv_prog_CC="${ac_tool_prefix}cc"
 
2025
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2026
    break 2
 
2027
  fi
 
2028
done
 
2029
done
 
2030
 
 
2031
fi
 
2032
fi
 
2033
CC=$ac_cv_prog_CC
 
2034
if test -n "$CC"; then
 
2035
  echo "$as_me:$LINENO: result: $CC" >&5
 
2036
echo "${ECHO_T}$CC" >&6
 
2037
else
 
2038
  echo "$as_me:$LINENO: result: no" >&5
 
2039
echo "${ECHO_T}no" >&6
 
2040
fi
 
2041
 
 
2042
fi
 
2043
if test -z "$ac_cv_prog_CC"; then
 
2044
  ac_ct_CC=$CC
 
2045
  # Extract the first word of "cc", so it can be a program name with args.
 
2046
set dummy cc; ac_word=$2
 
2047
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2048
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2049
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
 
2050
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2051
else
 
2052
  if test -n "$ac_ct_CC"; then
 
2053
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
2054
else
 
2055
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2056
for as_dir in $PATH
 
2057
do
 
2058
  IFS=$as_save_IFS
 
2059
  test -z "$as_dir" && as_dir=.
 
2060
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2061
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2062
    ac_cv_prog_ac_ct_CC="cc"
 
2063
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2064
    break 2
 
2065
  fi
 
2066
done
 
2067
done
 
2068
 
 
2069
fi
 
2070
fi
 
2071
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
2072
if test -n "$ac_ct_CC"; then
 
2073
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 
2074
echo "${ECHO_T}$ac_ct_CC" >&6
 
2075
else
 
2076
  echo "$as_me:$LINENO: result: no" >&5
 
2077
echo "${ECHO_T}no" >&6
 
2078
fi
 
2079
 
 
2080
  CC=$ac_ct_CC
 
2081
else
 
2082
  CC="$ac_cv_prog_CC"
 
2083
fi
 
2084
 
 
2085
fi
 
2086
if test -z "$CC"; then
 
2087
  # Extract the first word of "cc", so it can be a program name with args.
 
2088
set dummy cc; ac_word=$2
 
2089
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2090
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2091
if test "${ac_cv_prog_CC+set}" = set; then
 
2092
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2093
else
 
2094
  if test -n "$CC"; then
 
2095
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
2096
else
 
2097
  ac_prog_rejected=no
 
2098
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2099
for as_dir in $PATH
 
2100
do
 
2101
  IFS=$as_save_IFS
 
2102
  test -z "$as_dir" && as_dir=.
 
2103
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2104
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2105
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
 
2106
       ac_prog_rejected=yes
 
2107
       continue
 
2108
     fi
 
2109
    ac_cv_prog_CC="cc"
 
2110
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2111
    break 2
 
2112
  fi
 
2113
done
 
2114
done
 
2115
 
 
2116
if test $ac_prog_rejected = yes; then
 
2117
  # We found a bogon in the path, so make sure we never use it.
 
2118
  set dummy $ac_cv_prog_CC
 
2119
  shift
 
2120
  if test $# != 0; then
 
2121
    # We chose a different compiler from the bogus one.
 
2122
    # However, it has the same basename, so the bogon will be chosen
 
2123
    # first if we set CC to just the basename; use the full file name.
 
2124
    shift
 
2125
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
 
2126
  fi
 
2127
fi
 
2128
fi
 
2129
fi
 
2130
CC=$ac_cv_prog_CC
 
2131
if test -n "$CC"; then
 
2132
  echo "$as_me:$LINENO: result: $CC" >&5
 
2133
echo "${ECHO_T}$CC" >&6
 
2134
else
 
2135
  echo "$as_me:$LINENO: result: no" >&5
 
2136
echo "${ECHO_T}no" >&6
 
2137
fi
 
2138
 
 
2139
fi
 
2140
if test -z "$CC"; then
 
2141
  if test -n "$ac_tool_prefix"; then
 
2142
  for ac_prog in cl
 
2143
  do
 
2144
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
2145
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
2146
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2147
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2148
if test "${ac_cv_prog_CC+set}" = set; then
 
2149
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2150
else
 
2151
  if test -n "$CC"; then
 
2152
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
2153
else
 
2154
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2155
for as_dir in $PATH
 
2156
do
 
2157
  IFS=$as_save_IFS
 
2158
  test -z "$as_dir" && as_dir=.
 
2159
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2160
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2161
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
 
2162
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2163
    break 2
 
2164
  fi
 
2165
done
 
2166
done
 
2167
 
 
2168
fi
 
2169
fi
 
2170
CC=$ac_cv_prog_CC
 
2171
if test -n "$CC"; then
 
2172
  echo "$as_me:$LINENO: result: $CC" >&5
 
2173
echo "${ECHO_T}$CC" >&6
 
2174
else
 
2175
  echo "$as_me:$LINENO: result: no" >&5
 
2176
echo "${ECHO_T}no" >&6
 
2177
fi
 
2178
 
 
2179
    test -n "$CC" && break
 
2180
  done
 
2181
fi
 
2182
if test -z "$CC"; then
 
2183
  ac_ct_CC=$CC
 
2184
  for ac_prog in cl
 
2185
do
 
2186
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
2187
set dummy $ac_prog; ac_word=$2
 
2188
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2189
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2190
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
 
2191
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2192
else
 
2193
  if test -n "$ac_ct_CC"; then
 
2194
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
2195
else
 
2196
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2197
for as_dir in $PATH
 
2198
do
 
2199
  IFS=$as_save_IFS
 
2200
  test -z "$as_dir" && as_dir=.
 
2201
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2202
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2203
    ac_cv_prog_ac_ct_CC="$ac_prog"
 
2204
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2205
    break 2
 
2206
  fi
 
2207
done
 
2208
done
 
2209
 
 
2210
fi
 
2211
fi
 
2212
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
2213
if test -n "$ac_ct_CC"; then
 
2214
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 
2215
echo "${ECHO_T}$ac_ct_CC" >&6
 
2216
else
 
2217
  echo "$as_me:$LINENO: result: no" >&5
 
2218
echo "${ECHO_T}no" >&6
 
2219
fi
 
2220
 
 
2221
  test -n "$ac_ct_CC" && break
 
2222
done
 
2223
 
 
2224
  CC=$ac_ct_CC
 
2225
fi
 
2226
 
 
2227
fi
 
2228
 
 
2229
 
 
2230
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
 
2231
See \`config.log' for more details." >&5
 
2232
echo "$as_me: error: no acceptable C compiler found in \$PATH
 
2233
See \`config.log' for more details." >&2;}
 
2234
   { (exit 1); exit 1; }; }
 
2235
 
 
2236
# Provide some information about the compiler.
 
2237
echo "$as_me:$LINENO:" \
 
2238
     "checking for C compiler version" >&5
 
2239
ac_compiler=`set X $ac_compile; echo $2`
 
2240
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
 
2241
  (eval $ac_compiler --version </dev/null >&5) 2>&5
 
2242
  ac_status=$?
 
2243
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2244
  (exit $ac_status); }
 
2245
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
 
2246
  (eval $ac_compiler -v </dev/null >&5) 2>&5
 
2247
  ac_status=$?
 
2248
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2249
  (exit $ac_status); }
 
2250
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
 
2251
  (eval $ac_compiler -V </dev/null >&5) 2>&5
 
2252
  ac_status=$?
 
2253
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2254
  (exit $ac_status); }
 
2255
 
 
2256
cat >conftest.$ac_ext <<_ACEOF
 
2257
/* confdefs.h.  */
 
2258
_ACEOF
 
2259
cat confdefs.h >>conftest.$ac_ext
 
2260
cat >>conftest.$ac_ext <<_ACEOF
 
2261
/* end confdefs.h.  */
 
2262
 
 
2263
int
 
2264
main ()
 
2265
{
 
2266
 
 
2267
  ;
 
2268
  return 0;
 
2269
}
 
2270
_ACEOF
 
2271
ac_clean_files_save=$ac_clean_files
 
2272
ac_clean_files="$ac_clean_files a.out a.exe b.out"
 
2273
# Try to create an executable without -o first, disregard a.out.
 
2274
# It will help us diagnose broken compilers, and finding out an intuition
 
2275
# of exeext.
 
2276
echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
 
2277
echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
 
2278
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
 
2279
if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
 
2280
  (eval $ac_link_default) 2>&5
 
2281
  ac_status=$?
 
2282
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2283
  (exit $ac_status); }; then
 
2284
  # Find the output, starting from the most likely.  This scheme is
 
2285
# not robust to junk in `.', hence go to wildcards (a.*) only as a last
 
2286
# resort.
 
2287
 
 
2288
# Be careful to initialize this variable, since it used to be cached.
 
2289
# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
 
2290
ac_cv_exeext=
 
2291
# b.out is created by i960 compilers.
 
2292
for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
 
2293
do
 
2294
  test -f "$ac_file" || continue
 
2295
  case $ac_file in
 
2296
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
 
2297
        ;;
 
2298
    conftest.$ac_ext )
 
2299
        # This is the source file.
 
2300
        ;;
 
2301
    [ab].out )
 
2302
        # We found the default executable, but exeext='' is most
 
2303
        # certainly right.
 
2304
        break;;
 
2305
    *.* )
 
2306
        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
 
2307
        # FIXME: I believe we export ac_cv_exeext for Libtool,
 
2308
        # but it would be cool to find out if it's true.  Does anybody
 
2309
        # maintain Libtool? --akim.
 
2310
        export ac_cv_exeext
 
2311
        break;;
 
2312
    * )
 
2313
        break;;
 
2314
  esac
 
2315
done
 
2316
else
 
2317
  echo "$as_me: failed program was:" >&5
 
2318
sed 's/^/| /' conftest.$ac_ext >&5
 
2319
 
 
2320
{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
 
2321
See \`config.log' for more details." >&5
 
2322
echo "$as_me: error: C compiler cannot create executables
 
2323
See \`config.log' for more details." >&2;}
 
2324
   { (exit 77); exit 77; }; }
 
2325
fi
 
2326
 
 
2327
ac_exeext=$ac_cv_exeext
 
2328
echo "$as_me:$LINENO: result: $ac_file" >&5
 
2329
echo "${ECHO_T}$ac_file" >&6
 
2330
 
 
2331
# Check the compiler produces executables we can run.  If not, either
 
2332
# the compiler is broken, or we cross compile.
 
2333
echo "$as_me:$LINENO: checking whether the C compiler works" >&5
 
2334
echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
 
2335
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
 
2336
# If not cross compiling, check that we can run a simple program.
 
2337
if test "$cross_compiling" != yes; then
 
2338
  if { ac_try='./$ac_file'
 
2339
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2340
  (eval $ac_try) 2>&5
 
2341
  ac_status=$?
 
2342
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2343
  (exit $ac_status); }; }; then
 
2344
    cross_compiling=no
 
2345
  else
 
2346
    if test "$cross_compiling" = maybe; then
 
2347
        cross_compiling=yes
 
2348
    else
 
2349
        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
 
2350
If you meant to cross compile, use \`--host'.
 
2351
See \`config.log' for more details." >&5
 
2352
echo "$as_me: error: cannot run C compiled programs.
 
2353
If you meant to cross compile, use \`--host'.
 
2354
See \`config.log' for more details." >&2;}
 
2355
   { (exit 1); exit 1; }; }
 
2356
    fi
 
2357
  fi
 
2358
fi
 
2359
echo "$as_me:$LINENO: result: yes" >&5
 
2360
echo "${ECHO_T}yes" >&6
 
2361
 
 
2362
rm -f a.out a.exe conftest$ac_cv_exeext b.out
 
2363
ac_clean_files=$ac_clean_files_save
 
2364
# Check the compiler produces executables we can run.  If not, either
 
2365
# the compiler is broken, or we cross compile.
 
2366
echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
 
2367
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
 
2368
echo "$as_me:$LINENO: result: $cross_compiling" >&5
 
2369
echo "${ECHO_T}$cross_compiling" >&6
 
2370
 
 
2371
echo "$as_me:$LINENO: checking for suffix of executables" >&5
 
2372
echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
 
2373
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
2374
  (eval $ac_link) 2>&5
 
2375
  ac_status=$?
 
2376
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2377
  (exit $ac_status); }; then
 
2378
  # If both `conftest.exe' and `conftest' are `present' (well, observable)
 
2379
# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
 
2380
# work properly (i.e., refer to `conftest.exe'), while it won't with
 
2381
# `rm'.
 
2382
for ac_file in conftest.exe conftest conftest.*; do
 
2383
  test -f "$ac_file" || continue
 
2384
  case $ac_file in
 
2385
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
 
2386
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
 
2387
          export ac_cv_exeext
 
2388
          break;;
 
2389
    * ) break;;
 
2390
  esac
 
2391
done
 
2392
else
 
2393
  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
 
2394
See \`config.log' for more details." >&5
 
2395
echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
 
2396
See \`config.log' for more details." >&2;}
 
2397
   { (exit 1); exit 1; }; }
 
2398
fi
 
2399
 
 
2400
rm -f conftest$ac_cv_exeext
 
2401
echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
 
2402
echo "${ECHO_T}$ac_cv_exeext" >&6
 
2403
 
 
2404
rm -f conftest.$ac_ext
 
2405
EXEEXT=$ac_cv_exeext
 
2406
ac_exeext=$EXEEXT
 
2407
echo "$as_me:$LINENO: checking for suffix of object files" >&5
 
2408
echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
 
2409
if test "${ac_cv_objext+set}" = set; then
 
2410
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2411
else
 
2412
  cat >conftest.$ac_ext <<_ACEOF
 
2413
/* confdefs.h.  */
 
2414
_ACEOF
 
2415
cat confdefs.h >>conftest.$ac_ext
 
2416
cat >>conftest.$ac_ext <<_ACEOF
 
2417
/* end confdefs.h.  */
 
2418
 
 
2419
int
 
2420
main ()
 
2421
{
 
2422
 
 
2423
  ;
 
2424
  return 0;
 
2425
}
 
2426
_ACEOF
 
2427
rm -f conftest.o conftest.obj
 
2428
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2429
  (eval $ac_compile) 2>&5
 
2430
  ac_status=$?
 
2431
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2432
  (exit $ac_status); }; then
 
2433
  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
 
2434
  case $ac_file in
 
2435
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
 
2436
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
 
2437
       break;;
 
2438
  esac
 
2439
done
 
2440
else
 
2441
  echo "$as_me: failed program was:" >&5
 
2442
sed 's/^/| /' conftest.$ac_ext >&5
 
2443
 
 
2444
{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
 
2445
See \`config.log' for more details." >&5
 
2446
echo "$as_me: error: cannot compute suffix of object files: cannot compile
 
2447
See \`config.log' for more details." >&2;}
 
2448
   { (exit 1); exit 1; }; }
 
2449
fi
 
2450
 
 
2451
rm -f conftest.$ac_cv_objext conftest.$ac_ext
 
2452
fi
 
2453
echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
 
2454
echo "${ECHO_T}$ac_cv_objext" >&6
 
2455
OBJEXT=$ac_cv_objext
 
2456
ac_objext=$OBJEXT
 
2457
echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
 
2458
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
 
2459
if test "${ac_cv_c_compiler_gnu+set}" = set; then
 
2460
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2461
else
 
2462
  cat >conftest.$ac_ext <<_ACEOF
 
2463
/* confdefs.h.  */
 
2464
_ACEOF
 
2465
cat confdefs.h >>conftest.$ac_ext
 
2466
cat >>conftest.$ac_ext <<_ACEOF
 
2467
/* end confdefs.h.  */
 
2468
 
 
2469
int
 
2470
main ()
 
2471
{
 
2472
#ifndef __GNUC__
 
2473
       choke me
 
2474
#endif
 
2475
 
 
2476
  ;
 
2477
  return 0;
 
2478
}
 
2479
_ACEOF
 
2480
rm -f conftest.$ac_objext
 
2481
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2482
  (eval $ac_compile) 2>conftest.er1
 
2483
  ac_status=$?
 
2484
  grep -v '^ *+' conftest.er1 >conftest.err
 
2485
  rm -f conftest.er1
 
2486
  cat conftest.err >&5
 
2487
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2488
  (exit $ac_status); } &&
 
2489
         { ac_try='test -z "$ac_c_werror_flag"
 
2490
                         || test ! -s conftest.err'
 
2491
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2492
  (eval $ac_try) 2>&5
 
2493
  ac_status=$?
 
2494
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2495
  (exit $ac_status); }; } &&
 
2496
         { ac_try='test -s conftest.$ac_objext'
 
2497
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2498
  (eval $ac_try) 2>&5
 
2499
  ac_status=$?
 
2500
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2501
  (exit $ac_status); }; }; then
 
2502
  ac_compiler_gnu=yes
 
2503
else
 
2504
  echo "$as_me: failed program was:" >&5
 
2505
sed 's/^/| /' conftest.$ac_ext >&5
 
2506
 
 
2507
ac_compiler_gnu=no
 
2508
fi
 
2509
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
2510
ac_cv_c_compiler_gnu=$ac_compiler_gnu
 
2511
 
 
2512
fi
 
2513
echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
 
2514
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
 
2515
GCC=`test $ac_compiler_gnu = yes && echo yes`
 
2516
ac_test_CFLAGS=${CFLAGS+set}
 
2517
ac_save_CFLAGS=$CFLAGS
 
2518
CFLAGS="-g"
 
2519
echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
 
2520
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
 
2521
if test "${ac_cv_prog_cc_g+set}" = set; then
 
2522
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2523
else
 
2524
  cat >conftest.$ac_ext <<_ACEOF
 
2525
/* confdefs.h.  */
 
2526
_ACEOF
 
2527
cat confdefs.h >>conftest.$ac_ext
 
2528
cat >>conftest.$ac_ext <<_ACEOF
 
2529
/* end confdefs.h.  */
 
2530
 
 
2531
int
 
2532
main ()
 
2533
{
 
2534
 
 
2535
  ;
 
2536
  return 0;
 
2537
}
 
2538
_ACEOF
 
2539
rm -f conftest.$ac_objext
 
2540
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2541
  (eval $ac_compile) 2>conftest.er1
 
2542
  ac_status=$?
 
2543
  grep -v '^ *+' conftest.er1 >conftest.err
 
2544
  rm -f conftest.er1
 
2545
  cat conftest.err >&5
 
2546
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2547
  (exit $ac_status); } &&
 
2548
         { ac_try='test -z "$ac_c_werror_flag"
 
2549
                         || test ! -s conftest.err'
 
2550
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2551
  (eval $ac_try) 2>&5
 
2552
  ac_status=$?
 
2553
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2554
  (exit $ac_status); }; } &&
 
2555
         { ac_try='test -s conftest.$ac_objext'
 
2556
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2557
  (eval $ac_try) 2>&5
 
2558
  ac_status=$?
 
2559
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2560
  (exit $ac_status); }; }; then
 
2561
  ac_cv_prog_cc_g=yes
 
2562
else
 
2563
  echo "$as_me: failed program was:" >&5
 
2564
sed 's/^/| /' conftest.$ac_ext >&5
 
2565
 
 
2566
ac_cv_prog_cc_g=no
 
2567
fi
 
2568
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
2569
fi
 
2570
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
 
2571
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
 
2572
if test "$ac_test_CFLAGS" = set; then
 
2573
  CFLAGS=$ac_save_CFLAGS
 
2574
elif test $ac_cv_prog_cc_g = yes; then
 
2575
  if test "$GCC" = yes; then
 
2576
    CFLAGS="-g -O2"
 
2577
  else
 
2578
    CFLAGS="-g"
 
2579
  fi
 
2580
else
 
2581
  if test "$GCC" = yes; then
 
2582
    CFLAGS="-O2"
 
2583
  else
 
2584
    CFLAGS=
 
2585
  fi
 
2586
fi
 
2587
echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
 
2588
echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
 
2589
if test "${ac_cv_prog_cc_stdc+set}" = set; then
 
2590
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2591
else
 
2592
  ac_cv_prog_cc_stdc=no
 
2593
ac_save_CC=$CC
 
2594
cat >conftest.$ac_ext <<_ACEOF
 
2595
/* confdefs.h.  */
 
2596
_ACEOF
 
2597
cat confdefs.h >>conftest.$ac_ext
 
2598
cat >>conftest.$ac_ext <<_ACEOF
 
2599
/* end confdefs.h.  */
 
2600
#include <stdarg.h>
 
2601
#include <stdio.h>
 
2602
#include <sys/types.h>
 
2603
#include <sys/stat.h>
 
2604
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
 
2605
struct buf { int x; };
 
2606
FILE * (*rcsopen) (struct buf *, struct stat *, int);
 
2607
static char *e (p, i)
 
2608
     char **p;
 
2609
     int i;
 
2610
{
 
2611
  return p[i];
 
2612
}
 
2613
static char *f (char * (*g) (char **, int), char **p, ...)
 
2614
{
 
2615
  char *s;
 
2616
  va_list v;
 
2617
  va_start (v,p);
 
2618
  s = g (p, va_arg (v,int));
 
2619
  va_end (v);
 
2620
  return s;
 
2621
}
 
2622
 
 
2623
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
 
2624
   function prototypes and stuff, but not '\xHH' hex character constants.
 
2625
   These don't provoke an error unfortunately, instead are silently treated
 
2626
   as 'x'.  The following induces an error, until -std1 is added to get
 
2627
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
 
2628
   array size at least.  It's necessary to write '\x00'==0 to get something
 
2629
   that's true only with -std1.  */
 
2630
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
 
2631
 
 
2632
int test (int i, double x);
 
2633
struct s1 {int (*f) (int a);};
 
2634
struct s2 {int (*f) (double a);};
 
2635
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
 
2636
int argc;
 
2637
char **argv;
 
2638
int
 
2639
main ()
 
2640
{
 
2641
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
 
2642
  ;
 
2643
  return 0;
 
2644
}
 
2645
_ACEOF
 
2646
# Don't try gcc -ansi; that turns off useful extensions and
 
2647
# breaks some systems' header files.
 
2648
# AIX                   -qlanglvl=ansi
 
2649
# Ultrix and OSF/1      -std1
 
2650
# HP-UX 10.20 and later -Ae
 
2651
# HP-UX older versions  -Aa -D_HPUX_SOURCE
 
2652
# SVR4                  -Xc -D__EXTENSIONS__
 
2653
for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
 
2654
do
 
2655
  CC="$ac_save_CC $ac_arg"
 
2656
  rm -f conftest.$ac_objext
 
2657
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2658
  (eval $ac_compile) 2>conftest.er1
 
2659
  ac_status=$?
 
2660
  grep -v '^ *+' conftest.er1 >conftest.err
 
2661
  rm -f conftest.er1
 
2662
  cat conftest.err >&5
 
2663
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2664
  (exit $ac_status); } &&
 
2665
         { ac_try='test -z "$ac_c_werror_flag"
 
2666
                         || test ! -s conftest.err'
 
2667
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2668
  (eval $ac_try) 2>&5
 
2669
  ac_status=$?
 
2670
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2671
  (exit $ac_status); }; } &&
 
2672
         { ac_try='test -s conftest.$ac_objext'
 
2673
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2674
  (eval $ac_try) 2>&5
 
2675
  ac_status=$?
 
2676
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2677
  (exit $ac_status); }; }; then
 
2678
  ac_cv_prog_cc_stdc=$ac_arg
 
2679
break
 
2680
else
 
2681
  echo "$as_me: failed program was:" >&5
 
2682
sed 's/^/| /' conftest.$ac_ext >&5
 
2683
 
 
2684
fi
 
2685
rm -f conftest.err conftest.$ac_objext
 
2686
done
 
2687
rm -f conftest.$ac_ext conftest.$ac_objext
 
2688
CC=$ac_save_CC
 
2689
 
 
2690
fi
 
2691
 
 
2692
case "x$ac_cv_prog_cc_stdc" in
 
2693
  x|xno)
 
2694
    echo "$as_me:$LINENO: result: none needed" >&5
 
2695
echo "${ECHO_T}none needed" >&6 ;;
 
2696
  *)
 
2697
    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
 
2698
echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
 
2699
    CC="$CC $ac_cv_prog_cc_stdc" ;;
 
2700
esac
 
2701
 
 
2702
# Some people use a C++ compiler to compile C.  Since we use `exit',
 
2703
# in C++ we need to declare it.  In case someone uses the same compiler
 
2704
# for both compiling C and C++ we need to have the C++ compiler decide
 
2705
# the declaration of exit, since it's the most demanding environment.
 
2706
cat >conftest.$ac_ext <<_ACEOF
 
2707
#ifndef __cplusplus
 
2708
  choke me
 
2709
#endif
 
2710
_ACEOF
 
2711
rm -f conftest.$ac_objext
 
2712
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2713
  (eval $ac_compile) 2>conftest.er1
 
2714
  ac_status=$?
 
2715
  grep -v '^ *+' conftest.er1 >conftest.err
 
2716
  rm -f conftest.er1
 
2717
  cat conftest.err >&5
 
2718
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2719
  (exit $ac_status); } &&
 
2720
         { ac_try='test -z "$ac_c_werror_flag"
 
2721
                         || test ! -s conftest.err'
 
2722
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2723
  (eval $ac_try) 2>&5
 
2724
  ac_status=$?
 
2725
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2726
  (exit $ac_status); }; } &&
 
2727
         { ac_try='test -s conftest.$ac_objext'
 
2728
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2729
  (eval $ac_try) 2>&5
 
2730
  ac_status=$?
 
2731
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2732
  (exit $ac_status); }; }; then
 
2733
  for ac_declaration in \
 
2734
   '' \
 
2735
   'extern "C" void std::exit (int) throw (); using std::exit;' \
 
2736
   'extern "C" void std::exit (int); using std::exit;' \
 
2737
   'extern "C" void exit (int) throw ();' \
 
2738
   'extern "C" void exit (int);' \
 
2739
   'void exit (int);'
 
2740
do
 
2741
  cat >conftest.$ac_ext <<_ACEOF
 
2742
/* confdefs.h.  */
 
2743
_ACEOF
 
2744
cat confdefs.h >>conftest.$ac_ext
 
2745
cat >>conftest.$ac_ext <<_ACEOF
 
2746
/* end confdefs.h.  */
 
2747
$ac_declaration
 
2748
#include <stdlib.h>
 
2749
int
 
2750
main ()
 
2751
{
 
2752
exit (42);
 
2753
  ;
 
2754
  return 0;
 
2755
}
 
2756
_ACEOF
 
2757
rm -f conftest.$ac_objext
 
2758
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2759
  (eval $ac_compile) 2>conftest.er1
 
2760
  ac_status=$?
 
2761
  grep -v '^ *+' conftest.er1 >conftest.err
 
2762
  rm -f conftest.er1
 
2763
  cat conftest.err >&5
 
2764
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2765
  (exit $ac_status); } &&
 
2766
         { ac_try='test -z "$ac_c_werror_flag"
 
2767
                         || test ! -s conftest.err'
 
2768
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2769
  (eval $ac_try) 2>&5
 
2770
  ac_status=$?
 
2771
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2772
  (exit $ac_status); }; } &&
 
2773
         { ac_try='test -s conftest.$ac_objext'
 
2774
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2775
  (eval $ac_try) 2>&5
 
2776
  ac_status=$?
 
2777
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2778
  (exit $ac_status); }; }; then
 
2779
  :
 
2780
else
 
2781
  echo "$as_me: failed program was:" >&5
 
2782
sed 's/^/| /' conftest.$ac_ext >&5
 
2783
 
 
2784
continue
 
2785
fi
 
2786
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
2787
  cat >conftest.$ac_ext <<_ACEOF
 
2788
/* confdefs.h.  */
 
2789
_ACEOF
 
2790
cat confdefs.h >>conftest.$ac_ext
 
2791
cat >>conftest.$ac_ext <<_ACEOF
 
2792
/* end confdefs.h.  */
 
2793
$ac_declaration
 
2794
int
 
2795
main ()
 
2796
{
 
2797
exit (42);
 
2798
  ;
 
2799
  return 0;
 
2800
}
 
2801
_ACEOF
 
2802
rm -f conftest.$ac_objext
 
2803
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2804
  (eval $ac_compile) 2>conftest.er1
 
2805
  ac_status=$?
 
2806
  grep -v '^ *+' conftest.er1 >conftest.err
 
2807
  rm -f conftest.er1
 
2808
  cat conftest.err >&5
 
2809
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2810
  (exit $ac_status); } &&
 
2811
         { ac_try='test -z "$ac_c_werror_flag"
 
2812
                         || test ! -s conftest.err'
 
2813
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2814
  (eval $ac_try) 2>&5
 
2815
  ac_status=$?
 
2816
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2817
  (exit $ac_status); }; } &&
 
2818
         { ac_try='test -s conftest.$ac_objext'
 
2819
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2820
  (eval $ac_try) 2>&5
 
2821
  ac_status=$?
 
2822
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2823
  (exit $ac_status); }; }; then
 
2824
  break
 
2825
else
 
2826
  echo "$as_me: failed program was:" >&5
 
2827
sed 's/^/| /' conftest.$ac_ext >&5
 
2828
 
 
2829
fi
 
2830
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
2831
done
 
2832
rm -f conftest*
 
2833
if test -n "$ac_declaration"; then
 
2834
  echo '#ifdef __cplusplus' >>confdefs.h
 
2835
  echo $ac_declaration      >>confdefs.h
 
2836
  echo '#endif'             >>confdefs.h
 
2837
fi
 
2838
 
 
2839
else
 
2840
  echo "$as_me: failed program was:" >&5
 
2841
sed 's/^/| /' conftest.$ac_ext >&5
 
2842
 
 
2843
fi
 
2844
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
2845
ac_ext=c
 
2846
ac_cpp='$CPP $CPPFLAGS'
 
2847
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
2848
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
2849
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
2850
 
 
2851
depcc="$CC"   am_compiler_list=
 
2852
 
 
2853
echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
 
2854
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
 
2855
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
 
2856
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2857
else
 
2858
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
 
2859
  # We make a subdir and do the tests there.  Otherwise we can end up
 
2860
  # making bogus files that we don't know about and never remove.  For
 
2861
  # instance it was reported that on HP-UX the gcc test will end up
 
2862
  # making a dummy file named `D' -- because `-MD' means `put the output
 
2863
  # in D'.
 
2864
  mkdir conftest.dir
 
2865
  # Copy depcomp to subdir because otherwise we won't find it if we're
 
2866
  # using a relative directory.
 
2867
  cp "$am_depcomp" conftest.dir
 
2868
  cd conftest.dir
 
2869
  # We will build objects and dependencies in a subdirectory because
 
2870
  # it helps to detect inapplicable dependency modes.  For instance
 
2871
  # both Tru64's cc and ICC support -MD to output dependencies as a
 
2872
  # side effect of compilation, but ICC will put the dependencies in
 
2873
  # the current directory while Tru64 will put them in the object
 
2874
  # directory.
 
2875
  mkdir sub
 
2876
 
 
2877
  am_cv_CC_dependencies_compiler_type=none
 
2878
  if test "$am_compiler_list" = ""; then
 
2879
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
 
2880
  fi
 
2881
  for depmode in $am_compiler_list; do
 
2882
    # Setup a source with many dependencies, because some compilers
 
2883
    # like to wrap large dependency lists on column 80 (with \), and
 
2884
    # we should not choose a depcomp mode which is confused by this.
 
2885
    #
 
2886
    # We need to recreate these files for each test, as the compiler may
 
2887
    # overwrite some of them when testing with obscure command lines.
 
2888
    # This happens at least with the AIX C compiler.
 
2889
    : > sub/conftest.c
 
2890
    for i in 1 2 3 4 5 6; do
 
2891
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
 
2892
      : > sub/conftst$i.h
 
2893
    done
 
2894
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
 
2895
 
 
2896
    case $depmode in
 
2897
    nosideeffect)
 
2898
      # after this tag, mechanisms are not by side-effect, so they'll
 
2899
      # only be used when explicitly requested
 
2900
      if test "x$enable_dependency_tracking" = xyes; then
 
2901
        continue
 
2902
      else
 
2903
        break
 
2904
      fi
 
2905
      ;;
 
2906
    none) break ;;
 
2907
    esac
 
2908
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
 
2909
    # mode.  It turns out that the SunPro C++ compiler does not properly
 
2910
    # handle `-M -o', and we need to detect this.
 
2911
    if depmode=$depmode \
 
2912
       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
 
2913
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
 
2914
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
 
2915
         >/dev/null 2>conftest.err &&
 
2916
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
 
2917
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
 
2918
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
 
2919
      # icc doesn't choke on unknown options, it will just issue warnings
 
2920
      # (even with -Werror).  So we grep stderr for any message
 
2921
      # that says an option was ignored.
 
2922
      if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
 
2923
        am_cv_CC_dependencies_compiler_type=$depmode
 
2924
        break
 
2925
      fi
 
2926
    fi
 
2927
  done
 
2928
 
 
2929
  cd ..
 
2930
  rm -rf conftest.dir
 
2931
else
 
2932
  am_cv_CC_dependencies_compiler_type=none
 
2933
fi
 
2934
 
 
2935
fi
 
2936
echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
 
2937
echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
 
2938
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
 
2939
 
 
2940
 
 
2941
 
 
2942
if
 
2943
  test "x$enable_dependency_tracking" != xno \
 
2944
  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
 
2945
  am__fastdepCC_TRUE=
 
2946
  am__fastdepCC_FALSE='#'
 
2947
else
 
2948
  am__fastdepCC_TRUE='#'
 
2949
  am__fastdepCC_FALSE=
 
2950
fi
 
2951
 
 
2952
 
 
2953
# By default we simply use the C compiler to build assembly code.
 
2954
 
 
2955
: ${CCAS='$(CC)'}
 
2956
# Set ASFLAGS if not already set.
 
2957
: ${CCASFLAGS='$(CFLAGS)'}
 
2958
 
 
2959
 
 
2960
ac_ext=c
 
2961
ac_cpp='$CPP $CPPFLAGS'
 
2962
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
2963
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
2964
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
2965
if test -n "$ac_tool_prefix"; then
 
2966
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
 
2967
set dummy ${ac_tool_prefix}gcc; ac_word=$2
 
2968
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2969
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2970
if test "${ac_cv_prog_CC+set}" = set; then
 
2971
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2972
else
 
2973
  if test -n "$CC"; then
 
2974
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
2975
else
 
2976
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2977
for as_dir in $PATH
 
2978
do
 
2979
  IFS=$as_save_IFS
 
2980
  test -z "$as_dir" && as_dir=.
 
2981
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2982
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2983
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
 
2984
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2985
    break 2
 
2986
  fi
 
2987
done
 
2988
done
 
2989
 
 
2990
fi
 
2991
fi
 
2992
CC=$ac_cv_prog_CC
 
2993
if test -n "$CC"; then
 
2994
  echo "$as_me:$LINENO: result: $CC" >&5
 
2995
echo "${ECHO_T}$CC" >&6
 
2996
else
 
2997
  echo "$as_me:$LINENO: result: no" >&5
 
2998
echo "${ECHO_T}no" >&6
 
2999
fi
 
3000
 
 
3001
fi
 
3002
if test -z "$ac_cv_prog_CC"; then
 
3003
  ac_ct_CC=$CC
 
3004
  # Extract the first word of "gcc", so it can be a program name with args.
 
3005
set dummy gcc; ac_word=$2
 
3006
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
3007
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
3008
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
 
3009
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3010
else
 
3011
  if test -n "$ac_ct_CC"; then
 
3012
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
3013
else
 
3014
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3015
for as_dir in $PATH
 
3016
do
 
3017
  IFS=$as_save_IFS
 
3018
  test -z "$as_dir" && as_dir=.
 
3019
  for ac_exec_ext in '' $ac_executable_extensions; do
 
3020
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
3021
    ac_cv_prog_ac_ct_CC="gcc"
 
3022
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3023
    break 2
 
3024
  fi
 
3025
done
 
3026
done
 
3027
 
 
3028
fi
 
3029
fi
 
3030
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
3031
if test -n "$ac_ct_CC"; then
 
3032
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 
3033
echo "${ECHO_T}$ac_ct_CC" >&6
 
3034
else
 
3035
  echo "$as_me:$LINENO: result: no" >&5
 
3036
echo "${ECHO_T}no" >&6
 
3037
fi
 
3038
 
 
3039
  CC=$ac_ct_CC
 
3040
else
 
3041
  CC="$ac_cv_prog_CC"
 
3042
fi
 
3043
 
 
3044
if test -z "$CC"; then
 
3045
  if test -n "$ac_tool_prefix"; then
 
3046
  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
 
3047
set dummy ${ac_tool_prefix}cc; ac_word=$2
 
3048
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
3049
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
3050
if test "${ac_cv_prog_CC+set}" = set; then
 
3051
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3052
else
 
3053
  if test -n "$CC"; then
 
3054
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
3055
else
 
3056
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3057
for as_dir in $PATH
 
3058
do
 
3059
  IFS=$as_save_IFS
 
3060
  test -z "$as_dir" && as_dir=.
 
3061
  for ac_exec_ext in '' $ac_executable_extensions; do
 
3062
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
3063
    ac_cv_prog_CC="${ac_tool_prefix}cc"
 
3064
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3065
    break 2
 
3066
  fi
 
3067
done
 
3068
done
 
3069
 
 
3070
fi
 
3071
fi
 
3072
CC=$ac_cv_prog_CC
 
3073
if test -n "$CC"; then
 
3074
  echo "$as_me:$LINENO: result: $CC" >&5
 
3075
echo "${ECHO_T}$CC" >&6
 
3076
else
 
3077
  echo "$as_me:$LINENO: result: no" >&5
 
3078
echo "${ECHO_T}no" >&6
 
3079
fi
 
3080
 
 
3081
fi
 
3082
if test -z "$ac_cv_prog_CC"; then
 
3083
  ac_ct_CC=$CC
 
3084
  # Extract the first word of "cc", so it can be a program name with args.
 
3085
set dummy cc; ac_word=$2
 
3086
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
3087
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
3088
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
 
3089
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3090
else
 
3091
  if test -n "$ac_ct_CC"; then
 
3092
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
3093
else
 
3094
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3095
for as_dir in $PATH
 
3096
do
 
3097
  IFS=$as_save_IFS
 
3098
  test -z "$as_dir" && as_dir=.
 
3099
  for ac_exec_ext in '' $ac_executable_extensions; do
 
3100
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
3101
    ac_cv_prog_ac_ct_CC="cc"
 
3102
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3103
    break 2
 
3104
  fi
 
3105
done
 
3106
done
 
3107
 
 
3108
fi
 
3109
fi
 
3110
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
3111
if test -n "$ac_ct_CC"; then
 
3112
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 
3113
echo "${ECHO_T}$ac_ct_CC" >&6
 
3114
else
 
3115
  echo "$as_me:$LINENO: result: no" >&5
 
3116
echo "${ECHO_T}no" >&6
 
3117
fi
 
3118
 
 
3119
  CC=$ac_ct_CC
 
3120
else
 
3121
  CC="$ac_cv_prog_CC"
 
3122
fi
 
3123
 
 
3124
fi
 
3125
if test -z "$CC"; then
 
3126
  # Extract the first word of "cc", so it can be a program name with args.
 
3127
set dummy cc; ac_word=$2
 
3128
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
3129
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
3130
if test "${ac_cv_prog_CC+set}" = set; then
 
3131
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3132
else
 
3133
  if test -n "$CC"; then
 
3134
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
3135
else
 
3136
  ac_prog_rejected=no
 
3137
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3138
for as_dir in $PATH
 
3139
do
 
3140
  IFS=$as_save_IFS
 
3141
  test -z "$as_dir" && as_dir=.
 
3142
  for ac_exec_ext in '' $ac_executable_extensions; do
 
3143
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
3144
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
 
3145
       ac_prog_rejected=yes
 
3146
       continue
 
3147
     fi
 
3148
    ac_cv_prog_CC="cc"
 
3149
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3150
    break 2
 
3151
  fi
 
3152
done
 
3153
done
 
3154
 
 
3155
if test $ac_prog_rejected = yes; then
 
3156
  # We found a bogon in the path, so make sure we never use it.
 
3157
  set dummy $ac_cv_prog_CC
 
3158
  shift
 
3159
  if test $# != 0; then
 
3160
    # We chose a different compiler from the bogus one.
 
3161
    # However, it has the same basename, so the bogon will be chosen
 
3162
    # first if we set CC to just the basename; use the full file name.
 
3163
    shift
 
3164
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
 
3165
  fi
 
3166
fi
 
3167
fi
 
3168
fi
 
3169
CC=$ac_cv_prog_CC
 
3170
if test -n "$CC"; then
 
3171
  echo "$as_me:$LINENO: result: $CC" >&5
 
3172
echo "${ECHO_T}$CC" >&6
 
3173
else
 
3174
  echo "$as_me:$LINENO: result: no" >&5
 
3175
echo "${ECHO_T}no" >&6
 
3176
fi
 
3177
 
 
3178
fi
 
3179
if test -z "$CC"; then
 
3180
  if test -n "$ac_tool_prefix"; then
 
3181
  for ac_prog in cl
 
3182
  do
 
3183
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
3184
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
3185
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
3186
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
3187
if test "${ac_cv_prog_CC+set}" = set; then
 
3188
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3189
else
 
3190
  if test -n "$CC"; then
 
3191
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
3192
else
 
3193
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3194
for as_dir in $PATH
 
3195
do
 
3196
  IFS=$as_save_IFS
 
3197
  test -z "$as_dir" && as_dir=.
 
3198
  for ac_exec_ext in '' $ac_executable_extensions; do
 
3199
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
3200
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
 
3201
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3202
    break 2
 
3203
  fi
 
3204
done
 
3205
done
 
3206
 
 
3207
fi
 
3208
fi
 
3209
CC=$ac_cv_prog_CC
 
3210
if test -n "$CC"; then
 
3211
  echo "$as_me:$LINENO: result: $CC" >&5
 
3212
echo "${ECHO_T}$CC" >&6
 
3213
else
 
3214
  echo "$as_me:$LINENO: result: no" >&5
 
3215
echo "${ECHO_T}no" >&6
 
3216
fi
 
3217
 
 
3218
    test -n "$CC" && break
 
3219
  done
 
3220
fi
 
3221
if test -z "$CC"; then
 
3222
  ac_ct_CC=$CC
 
3223
  for ac_prog in cl
 
3224
do
 
3225
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
3226
set dummy $ac_prog; ac_word=$2
 
3227
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
3228
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
3229
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
 
3230
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3231
else
 
3232
  if test -n "$ac_ct_CC"; then
 
3233
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
3234
else
 
3235
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3236
for as_dir in $PATH
 
3237
do
 
3238
  IFS=$as_save_IFS
 
3239
  test -z "$as_dir" && as_dir=.
 
3240
  for ac_exec_ext in '' $ac_executable_extensions; do
 
3241
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
3242
    ac_cv_prog_ac_ct_CC="$ac_prog"
 
3243
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3244
    break 2
 
3245
  fi
 
3246
done
 
3247
done
 
3248
 
 
3249
fi
 
3250
fi
 
3251
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
3252
if test -n "$ac_ct_CC"; then
 
3253
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 
3254
echo "${ECHO_T}$ac_ct_CC" >&6
 
3255
else
 
3256
  echo "$as_me:$LINENO: result: no" >&5
 
3257
echo "${ECHO_T}no" >&6
 
3258
fi
 
3259
 
 
3260
  test -n "$ac_ct_CC" && break
 
3261
done
 
3262
 
 
3263
  CC=$ac_ct_CC
 
3264
fi
 
3265
 
 
3266
fi
 
3267
 
 
3268
 
 
3269
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
 
3270
See \`config.log' for more details." >&5
 
3271
echo "$as_me: error: no acceptable C compiler found in \$PATH
 
3272
See \`config.log' for more details." >&2;}
 
3273
   { (exit 1); exit 1; }; }
 
3274
 
 
3275
# Provide some information about the compiler.
 
3276
echo "$as_me:$LINENO:" \
 
3277
     "checking for C compiler version" >&5
 
3278
ac_compiler=`set X $ac_compile; echo $2`
 
3279
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
 
3280
  (eval $ac_compiler --version </dev/null >&5) 2>&5
 
3281
  ac_status=$?
 
3282
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3283
  (exit $ac_status); }
 
3284
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
 
3285
  (eval $ac_compiler -v </dev/null >&5) 2>&5
 
3286
  ac_status=$?
 
3287
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3288
  (exit $ac_status); }
 
3289
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
 
3290
  (eval $ac_compiler -V </dev/null >&5) 2>&5
 
3291
  ac_status=$?
 
3292
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3293
  (exit $ac_status); }
 
3294
 
 
3295
echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
 
3296
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
 
3297
if test "${ac_cv_c_compiler_gnu+set}" = set; then
 
3298
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3299
else
 
3300
  cat >conftest.$ac_ext <<_ACEOF
 
3301
/* confdefs.h.  */
 
3302
_ACEOF
 
3303
cat confdefs.h >>conftest.$ac_ext
 
3304
cat >>conftest.$ac_ext <<_ACEOF
 
3305
/* end confdefs.h.  */
 
3306
 
 
3307
int
 
3308
main ()
 
3309
{
 
3310
#ifndef __GNUC__
 
3311
       choke me
 
3312
#endif
 
3313
 
 
3314
  ;
 
3315
  return 0;
 
3316
}
 
3317
_ACEOF
 
3318
rm -f conftest.$ac_objext
 
3319
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
3320
  (eval $ac_compile) 2>conftest.er1
 
3321
  ac_status=$?
 
3322
  grep -v '^ *+' conftest.er1 >conftest.err
 
3323
  rm -f conftest.er1
 
3324
  cat conftest.err >&5
 
3325
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3326
  (exit $ac_status); } &&
 
3327
         { ac_try='test -z "$ac_c_werror_flag"
 
3328
                         || test ! -s conftest.err'
 
3329
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3330
  (eval $ac_try) 2>&5
 
3331
  ac_status=$?
 
3332
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3333
  (exit $ac_status); }; } &&
 
3334
         { ac_try='test -s conftest.$ac_objext'
 
3335
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3336
  (eval $ac_try) 2>&5
 
3337
  ac_status=$?
 
3338
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3339
  (exit $ac_status); }; }; then
 
3340
  ac_compiler_gnu=yes
 
3341
else
 
3342
  echo "$as_me: failed program was:" >&5
 
3343
sed 's/^/| /' conftest.$ac_ext >&5
 
3344
 
 
3345
ac_compiler_gnu=no
 
3346
fi
 
3347
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
3348
ac_cv_c_compiler_gnu=$ac_compiler_gnu
 
3349
 
 
3350
fi
 
3351
echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
 
3352
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
 
3353
GCC=`test $ac_compiler_gnu = yes && echo yes`
 
3354
ac_test_CFLAGS=${CFLAGS+set}
 
3355
ac_save_CFLAGS=$CFLAGS
 
3356
CFLAGS="-g"
 
3357
echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
 
3358
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
 
3359
if test "${ac_cv_prog_cc_g+set}" = set; then
 
3360
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3361
else
 
3362
  cat >conftest.$ac_ext <<_ACEOF
 
3363
/* confdefs.h.  */
 
3364
_ACEOF
 
3365
cat confdefs.h >>conftest.$ac_ext
 
3366
cat >>conftest.$ac_ext <<_ACEOF
 
3367
/* end confdefs.h.  */
 
3368
 
 
3369
int
 
3370
main ()
 
3371
{
 
3372
 
 
3373
  ;
 
3374
  return 0;
 
3375
}
 
3376
_ACEOF
 
3377
rm -f conftest.$ac_objext
 
3378
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
3379
  (eval $ac_compile) 2>conftest.er1
 
3380
  ac_status=$?
 
3381
  grep -v '^ *+' conftest.er1 >conftest.err
 
3382
  rm -f conftest.er1
 
3383
  cat conftest.err >&5
 
3384
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3385
  (exit $ac_status); } &&
 
3386
         { ac_try='test -z "$ac_c_werror_flag"
 
3387
                         || test ! -s conftest.err'
 
3388
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3389
  (eval $ac_try) 2>&5
 
3390
  ac_status=$?
 
3391
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3392
  (exit $ac_status); }; } &&
 
3393
         { ac_try='test -s conftest.$ac_objext'
 
3394
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3395
  (eval $ac_try) 2>&5
 
3396
  ac_status=$?
 
3397
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3398
  (exit $ac_status); }; }; then
 
3399
  ac_cv_prog_cc_g=yes
 
3400
else
 
3401
  echo "$as_me: failed program was:" >&5
 
3402
sed 's/^/| /' conftest.$ac_ext >&5
 
3403
 
 
3404
ac_cv_prog_cc_g=no
 
3405
fi
 
3406
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
3407
fi
 
3408
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
 
3409
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
 
3410
if test "$ac_test_CFLAGS" = set; then
 
3411
  CFLAGS=$ac_save_CFLAGS
 
3412
elif test $ac_cv_prog_cc_g = yes; then
 
3413
  if test "$GCC" = yes; then
 
3414
    CFLAGS="-g -O2"
 
3415
  else
 
3416
    CFLAGS="-g"
 
3417
  fi
 
3418
else
 
3419
  if test "$GCC" = yes; then
 
3420
    CFLAGS="-O2"
 
3421
  else
 
3422
    CFLAGS=
 
3423
  fi
 
3424
fi
 
3425
echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
 
3426
echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
 
3427
if test "${ac_cv_prog_cc_stdc+set}" = set; then
 
3428
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3429
else
 
3430
  ac_cv_prog_cc_stdc=no
 
3431
ac_save_CC=$CC
 
3432
cat >conftest.$ac_ext <<_ACEOF
 
3433
/* confdefs.h.  */
 
3434
_ACEOF
 
3435
cat confdefs.h >>conftest.$ac_ext
 
3436
cat >>conftest.$ac_ext <<_ACEOF
 
3437
/* end confdefs.h.  */
 
3438
#include <stdarg.h>
 
3439
#include <stdio.h>
 
3440
#include <sys/types.h>
 
3441
#include <sys/stat.h>
 
3442
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
 
3443
struct buf { int x; };
 
3444
FILE * (*rcsopen) (struct buf *, struct stat *, int);
 
3445
static char *e (p, i)
 
3446
     char **p;
 
3447
     int i;
 
3448
{
 
3449
  return p[i];
 
3450
}
 
3451
static char *f (char * (*g) (char **, int), char **p, ...)
 
3452
{
 
3453
  char *s;
 
3454
  va_list v;
 
3455
  va_start (v,p);
 
3456
  s = g (p, va_arg (v,int));
 
3457
  va_end (v);
 
3458
  return s;
 
3459
}
 
3460
 
 
3461
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
 
3462
   function prototypes and stuff, but not '\xHH' hex character constants.
 
3463
   These don't provoke an error unfortunately, instead are silently treated
 
3464
   as 'x'.  The following induces an error, until -std1 is added to get
 
3465
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
 
3466
   array size at least.  It's necessary to write '\x00'==0 to get something
 
3467
   that's true only with -std1.  */
 
3468
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
 
3469
 
 
3470
int test (int i, double x);
 
3471
struct s1 {int (*f) (int a);};
 
3472
struct s2 {int (*f) (double a);};
 
3473
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
 
3474
int argc;
 
3475
char **argv;
 
3476
int
 
3477
main ()
 
3478
{
 
3479
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
 
3480
  ;
 
3481
  return 0;
 
3482
}
 
3483
_ACEOF
 
3484
# Don't try gcc -ansi; that turns off useful extensions and
 
3485
# breaks some systems' header files.
 
3486
# AIX                   -qlanglvl=ansi
 
3487
# Ultrix and OSF/1      -std1
 
3488
# HP-UX 10.20 and later -Ae
 
3489
# HP-UX older versions  -Aa -D_HPUX_SOURCE
 
3490
# SVR4                  -Xc -D__EXTENSIONS__
 
3491
for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
 
3492
do
 
3493
  CC="$ac_save_CC $ac_arg"
 
3494
  rm -f conftest.$ac_objext
 
3495
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
3496
  (eval $ac_compile) 2>conftest.er1
 
3497
  ac_status=$?
 
3498
  grep -v '^ *+' conftest.er1 >conftest.err
 
3499
  rm -f conftest.er1
 
3500
  cat conftest.err >&5
 
3501
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3502
  (exit $ac_status); } &&
 
3503
         { ac_try='test -z "$ac_c_werror_flag"
 
3504
                         || test ! -s conftest.err'
 
3505
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3506
  (eval $ac_try) 2>&5
 
3507
  ac_status=$?
 
3508
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3509
  (exit $ac_status); }; } &&
 
3510
         { ac_try='test -s conftest.$ac_objext'
 
3511
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3512
  (eval $ac_try) 2>&5
 
3513
  ac_status=$?
 
3514
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3515
  (exit $ac_status); }; }; then
 
3516
  ac_cv_prog_cc_stdc=$ac_arg
 
3517
break
 
3518
else
 
3519
  echo "$as_me: failed program was:" >&5
 
3520
sed 's/^/| /' conftest.$ac_ext >&5
 
3521
 
 
3522
fi
 
3523
rm -f conftest.err conftest.$ac_objext
 
3524
done
 
3525
rm -f conftest.$ac_ext conftest.$ac_objext
 
3526
CC=$ac_save_CC
 
3527
 
 
3528
fi
 
3529
 
 
3530
case "x$ac_cv_prog_cc_stdc" in
 
3531
  x|xno)
 
3532
    echo "$as_me:$LINENO: result: none needed" >&5
 
3533
echo "${ECHO_T}none needed" >&6 ;;
 
3534
  *)
 
3535
    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
 
3536
echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
 
3537
    CC="$CC $ac_cv_prog_cc_stdc" ;;
 
3538
esac
 
3539
 
 
3540
# Some people use a C++ compiler to compile C.  Since we use `exit',
 
3541
# in C++ we need to declare it.  In case someone uses the same compiler
 
3542
# for both compiling C and C++ we need to have the C++ compiler decide
 
3543
# the declaration of exit, since it's the most demanding environment.
 
3544
cat >conftest.$ac_ext <<_ACEOF
 
3545
#ifndef __cplusplus
 
3546
  choke me
 
3547
#endif
 
3548
_ACEOF
 
3549
rm -f conftest.$ac_objext
 
3550
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
3551
  (eval $ac_compile) 2>conftest.er1
 
3552
  ac_status=$?
 
3553
  grep -v '^ *+' conftest.er1 >conftest.err
 
3554
  rm -f conftest.er1
 
3555
  cat conftest.err >&5
 
3556
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3557
  (exit $ac_status); } &&
 
3558
         { ac_try='test -z "$ac_c_werror_flag"
 
3559
                         || test ! -s conftest.err'
 
3560
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3561
  (eval $ac_try) 2>&5
 
3562
  ac_status=$?
 
3563
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3564
  (exit $ac_status); }; } &&
 
3565
         { ac_try='test -s conftest.$ac_objext'
 
3566
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3567
  (eval $ac_try) 2>&5
 
3568
  ac_status=$?
 
3569
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3570
  (exit $ac_status); }; }; then
 
3571
  for ac_declaration in \
 
3572
   '' \
 
3573
   'extern "C" void std::exit (int) throw (); using std::exit;' \
 
3574
   'extern "C" void std::exit (int); using std::exit;' \
 
3575
   'extern "C" void exit (int) throw ();' \
 
3576
   'extern "C" void exit (int);' \
 
3577
   'void exit (int);'
 
3578
do
 
3579
  cat >conftest.$ac_ext <<_ACEOF
 
3580
/* confdefs.h.  */
 
3581
_ACEOF
 
3582
cat confdefs.h >>conftest.$ac_ext
 
3583
cat >>conftest.$ac_ext <<_ACEOF
 
3584
/* end confdefs.h.  */
 
3585
$ac_declaration
 
3586
#include <stdlib.h>
 
3587
int
 
3588
main ()
 
3589
{
 
3590
exit (42);
 
3591
  ;
 
3592
  return 0;
 
3593
}
 
3594
_ACEOF
 
3595
rm -f conftest.$ac_objext
 
3596
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
3597
  (eval $ac_compile) 2>conftest.er1
 
3598
  ac_status=$?
 
3599
  grep -v '^ *+' conftest.er1 >conftest.err
 
3600
  rm -f conftest.er1
 
3601
  cat conftest.err >&5
 
3602
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3603
  (exit $ac_status); } &&
 
3604
         { ac_try='test -z "$ac_c_werror_flag"
 
3605
                         || test ! -s conftest.err'
 
3606
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3607
  (eval $ac_try) 2>&5
 
3608
  ac_status=$?
 
3609
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3610
  (exit $ac_status); }; } &&
 
3611
         { ac_try='test -s conftest.$ac_objext'
 
3612
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3613
  (eval $ac_try) 2>&5
 
3614
  ac_status=$?
 
3615
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3616
  (exit $ac_status); }; }; then
 
3617
  :
 
3618
else
 
3619
  echo "$as_me: failed program was:" >&5
 
3620
sed 's/^/| /' conftest.$ac_ext >&5
 
3621
 
 
3622
continue
 
3623
fi
 
3624
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
3625
  cat >conftest.$ac_ext <<_ACEOF
 
3626
/* confdefs.h.  */
 
3627
_ACEOF
 
3628
cat confdefs.h >>conftest.$ac_ext
 
3629
cat >>conftest.$ac_ext <<_ACEOF
 
3630
/* end confdefs.h.  */
 
3631
$ac_declaration
 
3632
int
 
3633
main ()
 
3634
{
 
3635
exit (42);
 
3636
  ;
 
3637
  return 0;
 
3638
}
 
3639
_ACEOF
 
3640
rm -f conftest.$ac_objext
 
3641
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
3642
  (eval $ac_compile) 2>conftest.er1
 
3643
  ac_status=$?
 
3644
  grep -v '^ *+' conftest.er1 >conftest.err
 
3645
  rm -f conftest.er1
 
3646
  cat conftest.err >&5
 
3647
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3648
  (exit $ac_status); } &&
 
3649
         { ac_try='test -z "$ac_c_werror_flag"
 
3650
                         || test ! -s conftest.err'
 
3651
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3652
  (eval $ac_try) 2>&5
 
3653
  ac_status=$?
 
3654
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3655
  (exit $ac_status); }; } &&
 
3656
         { ac_try='test -s conftest.$ac_objext'
 
3657
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3658
  (eval $ac_try) 2>&5
 
3659
  ac_status=$?
 
3660
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3661
  (exit $ac_status); }; }; then
 
3662
  break
 
3663
else
 
3664
  echo "$as_me: failed program was:" >&5
 
3665
sed 's/^/| /' conftest.$ac_ext >&5
 
3666
 
 
3667
fi
 
3668
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
3669
done
 
3670
rm -f conftest*
 
3671
if test -n "$ac_declaration"; then
 
3672
  echo '#ifdef __cplusplus' >>confdefs.h
 
3673
  echo $ac_declaration      >>confdefs.h
 
3674
  echo '#endif'             >>confdefs.h
 
3675
fi
 
3676
 
 
3677
else
 
3678
  echo "$as_me: failed program was:" >&5
 
3679
sed 's/^/| /' conftest.$ac_ext >&5
 
3680
 
 
3681
fi
 
3682
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
3683
ac_ext=c
 
3684
ac_cpp='$CPP $CPPFLAGS'
 
3685
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
3686
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
3687
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
3688
 
 
3689
depcc="$CC"   am_compiler_list=
 
3690
 
 
3691
echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
 
3692
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
 
3693
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
 
3694
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3695
else
 
3696
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
 
3697
  # We make a subdir and do the tests there.  Otherwise we can end up
 
3698
  # making bogus files that we don't know about and never remove.  For
 
3699
  # instance it was reported that on HP-UX the gcc test will end up
 
3700
  # making a dummy file named `D' -- because `-MD' means `put the output
 
3701
  # in D'.
 
3702
  mkdir conftest.dir
 
3703
  # Copy depcomp to subdir because otherwise we won't find it if we're
 
3704
  # using a relative directory.
 
3705
  cp "$am_depcomp" conftest.dir
 
3706
  cd conftest.dir
 
3707
  # We will build objects and dependencies in a subdirectory because
 
3708
  # it helps to detect inapplicable dependency modes.  For instance
 
3709
  # both Tru64's cc and ICC support -MD to output dependencies as a
 
3710
  # side effect of compilation, but ICC will put the dependencies in
 
3711
  # the current directory while Tru64 will put them in the object
 
3712
  # directory.
 
3713
  mkdir sub
 
3714
 
 
3715
  am_cv_CC_dependencies_compiler_type=none
 
3716
  if test "$am_compiler_list" = ""; then
 
3717
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
 
3718
  fi
 
3719
  for depmode in $am_compiler_list; do
 
3720
    # Setup a source with many dependencies, because some compilers
 
3721
    # like to wrap large dependency lists on column 80 (with \), and
 
3722
    # we should not choose a depcomp mode which is confused by this.
 
3723
    #
 
3724
    # We need to recreate these files for each test, as the compiler may
 
3725
    # overwrite some of them when testing with obscure command lines.
 
3726
    # This happens at least with the AIX C compiler.
 
3727
    : > sub/conftest.c
 
3728
    for i in 1 2 3 4 5 6; do
 
3729
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
 
3730
      : > sub/conftst$i.h
 
3731
    done
 
3732
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
 
3733
 
 
3734
    case $depmode in
 
3735
    nosideeffect)
 
3736
      # after this tag, mechanisms are not by side-effect, so they'll
 
3737
      # only be used when explicitly requested
 
3738
      if test "x$enable_dependency_tracking" = xyes; then
 
3739
        continue
 
3740
      else
 
3741
        break
 
3742
      fi
 
3743
      ;;
 
3744
    none) break ;;
 
3745
    esac
 
3746
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
 
3747
    # mode.  It turns out that the SunPro C++ compiler does not properly
 
3748
    # handle `-M -o', and we need to detect this.
 
3749
    if depmode=$depmode \
 
3750
       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
 
3751
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
 
3752
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
 
3753
         >/dev/null 2>conftest.err &&
 
3754
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
 
3755
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
 
3756
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
 
3757
      # icc doesn't choke on unknown options, it will just issue warnings
 
3758
      # (even with -Werror).  So we grep stderr for any message
 
3759
      # that says an option was ignored.
 
3760
      if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
 
3761
        am_cv_CC_dependencies_compiler_type=$depmode
 
3762
        break
 
3763
      fi
 
3764
    fi
 
3765
  done
 
3766
 
 
3767
  cd ..
 
3768
  rm -rf conftest.dir
 
3769
else
 
3770
  am_cv_CC_dependencies_compiler_type=none
 
3771
fi
 
3772
 
 
3773
fi
 
3774
echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
 
3775
echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
 
3776
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
 
3777
 
 
3778
 
 
3779
 
 
3780
if
 
3781
  test "x$enable_dependency_tracking" != xno \
 
3782
  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
 
3783
  am__fastdepCC_TRUE=
 
3784
  am__fastdepCC_FALSE='#'
 
3785
else
 
3786
  am__fastdepCC_TRUE='#'
 
3787
  am__fastdepCC_FALSE=
 
3788
fi
 
3789
 
 
3790
 
 
3791
# Find a good install program.  We prefer a C program (faster),
 
3792
# so one script is as good as another.  But avoid the broken or
 
3793
# incompatible versions:
 
3794
# SysV /etc/install, /usr/sbin/install
 
3795
# SunOS /usr/etc/install
 
3796
# IRIX /sbin/install
 
3797
# AIX /bin/install
 
3798
# AmigaOS /C/install, which installs bootblocks on floppy discs
 
3799
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
 
3800
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
 
3801
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
 
3802
# OS/2's system install, which has a completely different semantic
 
3803
# ./install, which can be erroneously created by make from ./install.sh.
 
3804
echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
 
3805
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
 
3806
if test -z "$INSTALL"; then
 
3807
if test "${ac_cv_path_install+set}" = set; then
 
3808
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3809
else
 
3810
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3811
for as_dir in $PATH
 
3812
do
 
3813
  IFS=$as_save_IFS
 
3814
  test -z "$as_dir" && as_dir=.
 
3815
  # Account for people who put trailing slashes in PATH elements.
 
3816
case $as_dir/ in
 
3817
  ./ | .// | /cC/* | \
 
3818
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
 
3819
  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
 
3820
  /usr/ucb/* ) ;;
 
3821
  *)
 
3822
    # OSF1 and SCO ODT 3.0 have their own names for install.
 
3823
    # Don't use installbsd from OSF since it installs stuff as root
 
3824
    # by default.
 
3825
    for ac_prog in ginstall scoinst install; do
 
3826
      for ac_exec_ext in '' $ac_executable_extensions; do
 
3827
        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
 
3828
          if test $ac_prog = install &&
 
3829
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
 
3830
            # AIX install.  It has an incompatible calling convention.
 
3831
            :
 
3832
          elif test $ac_prog = install &&
 
3833
            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
 
3834
            # program-specific install script used by HP pwplus--don't use.
 
3835
            :
 
3836
          else
 
3837
            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
 
3838
            break 3
 
3839
          fi
 
3840
        fi
 
3841
      done
 
3842
    done
 
3843
    ;;
 
3844
esac
 
3845
done
 
3846
 
 
3847
 
 
3848
fi
 
3849
  if test "${ac_cv_path_install+set}" = set; then
 
3850
    INSTALL=$ac_cv_path_install
 
3851
  else
 
3852
    # As a last resort, use the slow shell script.  We don't cache a
 
3853
    # path for INSTALL within a source directory, because that will
 
3854
    # break other packages using the cache if that directory is
 
3855
    # removed, or if the path is relative.
 
3856
    INSTALL=$ac_install_sh
 
3857
  fi
 
3858
fi
 
3859
echo "$as_me:$LINENO: result: $INSTALL" >&5
 
3860
echo "${ECHO_T}$INSTALL" >&6
 
3861
 
 
3862
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
 
3863
# It thinks the first close brace ends the variable substitution.
 
3864
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
 
3865
 
 
3866
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
 
3867
 
 
3868
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
 
3869
 
 
3870
if test -n "$ac_tool_prefix"; then
 
3871
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
 
3872
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
 
3873
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
3874
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
3875
if test "${ac_cv_prog_RANLIB+set}" = set; then
 
3876
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3877
else
 
3878
  if test -n "$RANLIB"; then
 
3879
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
 
3880
else
 
3881
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3882
for as_dir in $PATH
 
3883
do
 
3884
  IFS=$as_save_IFS
 
3885
  test -z "$as_dir" && as_dir=.
 
3886
  for ac_exec_ext in '' $ac_executable_extensions; do
 
3887
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
3888
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
 
3889
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3890
    break 2
 
3891
  fi
 
3892
done
 
3893
done
 
3894
 
 
3895
fi
 
3896
fi
 
3897
RANLIB=$ac_cv_prog_RANLIB
 
3898
if test -n "$RANLIB"; then
 
3899
  echo "$as_me:$LINENO: result: $RANLIB" >&5
 
3900
echo "${ECHO_T}$RANLIB" >&6
 
3901
else
 
3902
  echo "$as_me:$LINENO: result: no" >&5
 
3903
echo "${ECHO_T}no" >&6
 
3904
fi
 
3905
 
 
3906
fi
 
3907
if test -z "$ac_cv_prog_RANLIB"; then
 
3908
  ac_ct_RANLIB=$RANLIB
 
3909
  # Extract the first word of "ranlib", so it can be a program name with args.
 
3910
set dummy ranlib; ac_word=$2
 
3911
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
3912
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
3913
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
 
3914
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3915
else
 
3916
  if test -n "$ac_ct_RANLIB"; then
 
3917
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
 
3918
else
 
3919
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3920
for as_dir in $PATH
 
3921
do
 
3922
  IFS=$as_save_IFS
 
3923
  test -z "$as_dir" && as_dir=.
 
3924
  for ac_exec_ext in '' $ac_executable_extensions; do
 
3925
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
3926
    ac_cv_prog_ac_ct_RANLIB="ranlib"
 
3927
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3928
    break 2
 
3929
  fi
 
3930
done
 
3931
done
 
3932
 
 
3933
  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
 
3934
fi
 
3935
fi
 
3936
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
 
3937
if test -n "$ac_ct_RANLIB"; then
 
3938
  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
 
3939
echo "${ECHO_T}$ac_ct_RANLIB" >&6
 
3940
else
 
3941
  echo "$as_me:$LINENO: result: no" >&5
 
3942
echo "${ECHO_T}no" >&6
 
3943
fi
 
3944
 
 
3945
  RANLIB=$ac_ct_RANLIB
 
3946
else
 
3947
  RANLIB="$ac_cv_prog_RANLIB"
 
3948
fi
 
3949
 
 
3950
 
 
3951
 
 
3952
echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
 
3953
echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
 
3954
if test "${ac_cv_c_const+set}" = set; then
 
3955
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3956
else
 
3957
  cat >conftest.$ac_ext <<_ACEOF
 
3958
/* confdefs.h.  */
 
3959
_ACEOF
 
3960
cat confdefs.h >>conftest.$ac_ext
 
3961
cat >>conftest.$ac_ext <<_ACEOF
 
3962
/* end confdefs.h.  */
 
3963
 
 
3964
int
 
3965
main ()
 
3966
{
 
3967
/* FIXME: Include the comments suggested by Paul. */
 
3968
#ifndef __cplusplus
 
3969
  /* Ultrix mips cc rejects this.  */
 
3970
  typedef int charset[2];
 
3971
  const charset x;
 
3972
  /* SunOS 4.1.1 cc rejects this.  */
 
3973
  char const *const *ccp;
 
3974
  char **p;
 
3975
  /* NEC SVR4.0.2 mips cc rejects this.  */
 
3976
  struct point {int x, y;};
 
3977
  static struct point const zero = {0,0};
 
3978
  /* AIX XL C 1.02.0.0 rejects this.
 
3979
     It does not let you subtract one const X* pointer from another in
 
3980
     an arm of an if-expression whose if-part is not a constant
 
3981
     expression */
 
3982
  const char *g = "string";
 
3983
  ccp = &g + (g ? g-g : 0);
 
3984
  /* HPUX 7.0 cc rejects these. */
 
3985
  ++ccp;
 
3986
  p = (char**) ccp;
 
3987
  ccp = (char const *const *) p;
 
3988
  { /* SCO 3.2v4 cc rejects this.  */
 
3989
    char *t;
 
3990
    char const *s = 0 ? (char *) 0 : (char const *) 0;
 
3991
 
 
3992
    *t++ = 0;
 
3993
  }
 
3994
  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
 
3995
    int x[] = {25, 17};
 
3996
    const int *foo = &x[0];
 
3997
    ++foo;
 
3998
  }
 
3999
  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
 
4000
    typedef const int *iptr;
 
4001
    iptr p = 0;
 
4002
    ++p;
 
4003
  }
 
4004
  { /* AIX XL C 1.02.0.0 rejects this saying
 
4005
       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
 
4006
    struct s { int j; const int *ap[3]; };
 
4007
    struct s *b; b->j = 5;
 
4008
  }
 
4009
  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
 
4010
    const int foo = 10;
 
4011
  }
 
4012
#endif
 
4013
 
 
4014
  ;
 
4015
  return 0;
 
4016
}
 
4017
_ACEOF
 
4018
rm -f conftest.$ac_objext
 
4019
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4020
  (eval $ac_compile) 2>conftest.er1
 
4021
  ac_status=$?
 
4022
  grep -v '^ *+' conftest.er1 >conftest.err
 
4023
  rm -f conftest.er1
 
4024
  cat conftest.err >&5
 
4025
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4026
  (exit $ac_status); } &&
 
4027
         { ac_try='test -z "$ac_c_werror_flag"
 
4028
                         || test ! -s conftest.err'
 
4029
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4030
  (eval $ac_try) 2>&5
 
4031
  ac_status=$?
 
4032
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4033
  (exit $ac_status); }; } &&
 
4034
         { ac_try='test -s conftest.$ac_objext'
 
4035
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4036
  (eval $ac_try) 2>&5
 
4037
  ac_status=$?
 
4038
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4039
  (exit $ac_status); }; }; then
 
4040
  ac_cv_c_const=yes
 
4041
else
 
4042
  echo "$as_me: failed program was:" >&5
 
4043
sed 's/^/| /' conftest.$ac_ext >&5
 
4044
 
 
4045
ac_cv_c_const=no
 
4046
fi
 
4047
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
4048
fi
 
4049
echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
 
4050
echo "${ECHO_T}$ac_cv_c_const" >&6
 
4051
if test $ac_cv_c_const = no; then
 
4052
 
 
4053
cat >>confdefs.h <<\_ACEOF
 
4054
#define const
 
4055
_ACEOF
 
4056
 
 
4057
fi
 
4058
 
 
4059
echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
 
4060
echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
 
4061
if test "${ac_cv_c_bigendian+set}" = set; then
 
4062
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4063
else
 
4064
  # See if sys/param.h defines the BYTE_ORDER macro.
 
4065
cat >conftest.$ac_ext <<_ACEOF
 
4066
/* confdefs.h.  */
 
4067
_ACEOF
 
4068
cat confdefs.h >>conftest.$ac_ext
 
4069
cat >>conftest.$ac_ext <<_ACEOF
 
4070
/* end confdefs.h.  */
 
4071
#include <sys/types.h>
 
4072
#include <sys/param.h>
 
4073
 
 
4074
int
 
4075
main ()
 
4076
{
 
4077
#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
 
4078
 bogus endian macros
 
4079
#endif
 
4080
 
 
4081
  ;
 
4082
  return 0;
 
4083
}
 
4084
_ACEOF
 
4085
rm -f conftest.$ac_objext
 
4086
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4087
  (eval $ac_compile) 2>conftest.er1
 
4088
  ac_status=$?
 
4089
  grep -v '^ *+' conftest.er1 >conftest.err
 
4090
  rm -f conftest.er1
 
4091
  cat conftest.err >&5
 
4092
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4093
  (exit $ac_status); } &&
 
4094
         { ac_try='test -z "$ac_c_werror_flag"
 
4095
                         || test ! -s conftest.err'
 
4096
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4097
  (eval $ac_try) 2>&5
 
4098
  ac_status=$?
 
4099
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4100
  (exit $ac_status); }; } &&
 
4101
         { ac_try='test -s conftest.$ac_objext'
 
4102
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4103
  (eval $ac_try) 2>&5
 
4104
  ac_status=$?
 
4105
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4106
  (exit $ac_status); }; }; then
 
4107
  # It does; now see whether it defined to BIG_ENDIAN or not.
 
4108
cat >conftest.$ac_ext <<_ACEOF
 
4109
/* confdefs.h.  */
 
4110
_ACEOF
 
4111
cat confdefs.h >>conftest.$ac_ext
 
4112
cat >>conftest.$ac_ext <<_ACEOF
 
4113
/* end confdefs.h.  */
 
4114
#include <sys/types.h>
 
4115
#include <sys/param.h>
 
4116
 
 
4117
int
 
4118
main ()
 
4119
{
 
4120
#if BYTE_ORDER != BIG_ENDIAN
 
4121
 not big endian
 
4122
#endif
 
4123
 
 
4124
  ;
 
4125
  return 0;
 
4126
}
 
4127
_ACEOF
 
4128
rm -f conftest.$ac_objext
 
4129
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4130
  (eval $ac_compile) 2>conftest.er1
 
4131
  ac_status=$?
 
4132
  grep -v '^ *+' conftest.er1 >conftest.err
 
4133
  rm -f conftest.er1
 
4134
  cat conftest.err >&5
 
4135
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4136
  (exit $ac_status); } &&
 
4137
         { ac_try='test -z "$ac_c_werror_flag"
 
4138
                         || test ! -s conftest.err'
 
4139
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4140
  (eval $ac_try) 2>&5
 
4141
  ac_status=$?
 
4142
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4143
  (exit $ac_status); }; } &&
 
4144
         { ac_try='test -s conftest.$ac_objext'
 
4145
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4146
  (eval $ac_try) 2>&5
 
4147
  ac_status=$?
 
4148
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4149
  (exit $ac_status); }; }; then
 
4150
  ac_cv_c_bigendian=yes
 
4151
else
 
4152
  echo "$as_me: failed program was:" >&5
 
4153
sed 's/^/| /' conftest.$ac_ext >&5
 
4154
 
 
4155
ac_cv_c_bigendian=no
 
4156
fi
 
4157
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
4158
else
 
4159
  echo "$as_me: failed program was:" >&5
 
4160
sed 's/^/| /' conftest.$ac_ext >&5
 
4161
 
 
4162
# It does not; compile a test program.
 
4163
if test "$cross_compiling" = yes; then
 
4164
  # try to guess the endianness by grepping values into an object file
 
4165
  ac_cv_c_bigendian=unknown
 
4166
  cat >conftest.$ac_ext <<_ACEOF
 
4167
/* confdefs.h.  */
 
4168
_ACEOF
 
4169
cat confdefs.h >>conftest.$ac_ext
 
4170
cat >>conftest.$ac_ext <<_ACEOF
 
4171
/* end confdefs.h.  */
 
4172
short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
 
4173
short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
 
4174
void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
 
4175
short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
 
4176
short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
 
4177
void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
 
4178
int
 
4179
main ()
 
4180
{
 
4181
 _ascii (); _ebcdic ();
 
4182
  ;
 
4183
  return 0;
 
4184
}
 
4185
_ACEOF
 
4186
rm -f conftest.$ac_objext
 
4187
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4188
  (eval $ac_compile) 2>conftest.er1
 
4189
  ac_status=$?
 
4190
  grep -v '^ *+' conftest.er1 >conftest.err
 
4191
  rm -f conftest.er1
 
4192
  cat conftest.err >&5
 
4193
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4194
  (exit $ac_status); } &&
 
4195
         { ac_try='test -z "$ac_c_werror_flag"
 
4196
                         || test ! -s conftest.err'
 
4197
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4198
  (eval $ac_try) 2>&5
 
4199
  ac_status=$?
 
4200
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4201
  (exit $ac_status); }; } &&
 
4202
         { ac_try='test -s conftest.$ac_objext'
 
4203
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4204
  (eval $ac_try) 2>&5
 
4205
  ac_status=$?
 
4206
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4207
  (exit $ac_status); }; }; then
 
4208
  if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
 
4209
  ac_cv_c_bigendian=yes
 
4210
fi
 
4211
if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
 
4212
  if test "$ac_cv_c_bigendian" = unknown; then
 
4213
    ac_cv_c_bigendian=no
 
4214
  else
 
4215
    # finding both strings is unlikely to happen, but who knows?
 
4216
    ac_cv_c_bigendian=unknown
 
4217
  fi
 
4218
fi
 
4219
else
 
4220
  echo "$as_me: failed program was:" >&5
 
4221
sed 's/^/| /' conftest.$ac_ext >&5
 
4222
 
 
4223
fi
 
4224
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
4225
else
 
4226
  cat >conftest.$ac_ext <<_ACEOF
 
4227
/* confdefs.h.  */
 
4228
_ACEOF
 
4229
cat confdefs.h >>conftest.$ac_ext
 
4230
cat >>conftest.$ac_ext <<_ACEOF
 
4231
/* end confdefs.h.  */
 
4232
int
 
4233
main ()
 
4234
{
 
4235
  /* Are we little or big endian?  From Harbison&Steele.  */
 
4236
  union
 
4237
  {
 
4238
    long l;
 
4239
    char c[sizeof (long)];
 
4240
  } u;
 
4241
  u.l = 1;
 
4242
  exit (u.c[sizeof (long) - 1] == 1);
 
4243
}
 
4244
_ACEOF
 
4245
rm -f conftest$ac_exeext
 
4246
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
4247
  (eval $ac_link) 2>&5
 
4248
  ac_status=$?
 
4249
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4250
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
4251
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4252
  (eval $ac_try) 2>&5
 
4253
  ac_status=$?
 
4254
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4255
  (exit $ac_status); }; }; then
 
4256
  ac_cv_c_bigendian=no
 
4257
else
 
4258
  echo "$as_me: program exited with status $ac_status" >&5
 
4259
echo "$as_me: failed program was:" >&5
 
4260
sed 's/^/| /' conftest.$ac_ext >&5
 
4261
 
 
4262
( exit $ac_status )
 
4263
ac_cv_c_bigendian=yes
 
4264
fi
 
4265
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
4266
fi
 
4267
fi
 
4268
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
4269
fi
 
4270
echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
 
4271
echo "${ECHO_T}$ac_cv_c_bigendian" >&6
 
4272
case $ac_cv_c_bigendian in
 
4273
  yes)
 
4274
 
 
4275
cat >>confdefs.h <<\_ACEOF
 
4276
#define WORDS_BIGENDIAN 1
 
4277
_ACEOF
 
4278
 ;;
 
4279
  no)
 
4280
     ;;
 
4281
  *)
 
4282
    { { echo "$as_me:$LINENO: error: unknown endianness
 
4283
presetting ac_cv_c_bigendian=no (or yes) will help" >&5
 
4284
echo "$as_me: error: unknown endianness
 
4285
presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
 
4286
   { (exit 1); exit 1; }; } ;;
 
4287
esac
 
4288
 
 
4289
echo "$as_me:$LINENO: checking for inline" >&5
 
4290
echo $ECHO_N "checking for inline... $ECHO_C" >&6
 
4291
if test "${ac_cv_c_inline+set}" = set; then
 
4292
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4293
else
 
4294
  ac_cv_c_inline=no
 
4295
for ac_kw in inline __inline__ __inline; do
 
4296
  cat >conftest.$ac_ext <<_ACEOF
 
4297
/* confdefs.h.  */
 
4298
_ACEOF
 
4299
cat confdefs.h >>conftest.$ac_ext
 
4300
cat >>conftest.$ac_ext <<_ACEOF
 
4301
/* end confdefs.h.  */
 
4302
#ifndef __cplusplus
 
4303
typedef int foo_t;
 
4304
static $ac_kw foo_t static_foo () {return 0; }
 
4305
$ac_kw foo_t foo () {return 0; }
 
4306
#endif
 
4307
 
 
4308
_ACEOF
 
4309
rm -f conftest.$ac_objext
 
4310
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4311
  (eval $ac_compile) 2>conftest.er1
 
4312
  ac_status=$?
 
4313
  grep -v '^ *+' conftest.er1 >conftest.err
 
4314
  rm -f conftest.er1
 
4315
  cat conftest.err >&5
 
4316
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4317
  (exit $ac_status); } &&
 
4318
         { ac_try='test -z "$ac_c_werror_flag"
 
4319
                         || test ! -s conftest.err'
 
4320
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4321
  (eval $ac_try) 2>&5
 
4322
  ac_status=$?
 
4323
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4324
  (exit $ac_status); }; } &&
 
4325
         { ac_try='test -s conftest.$ac_objext'
 
4326
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4327
  (eval $ac_try) 2>&5
 
4328
  ac_status=$?
 
4329
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4330
  (exit $ac_status); }; }; then
 
4331
  ac_cv_c_inline=$ac_kw; break
 
4332
else
 
4333
  echo "$as_me: failed program was:" >&5
 
4334
sed 's/^/| /' conftest.$ac_ext >&5
 
4335
 
 
4336
fi
 
4337
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
4338
done
 
4339
 
 
4340
fi
 
4341
echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
 
4342
echo "${ECHO_T}$ac_cv_c_inline" >&6
 
4343
 
 
4344
 
 
4345
case $ac_cv_c_inline in
 
4346
  inline | yes) ;;
 
4347
  *)
 
4348
    case $ac_cv_c_inline in
 
4349
      no) ac_val=;;
 
4350
      *) ac_val=$ac_cv_c_inline;;
 
4351
    esac
 
4352
    cat >>confdefs.h <<_ACEOF
 
4353
#ifndef __cplusplus
 
4354
#define inline $ac_val
 
4355
#endif
 
4356
_ACEOF
 
4357
    ;;
 
4358
esac
 
4359
 
 
4360
 
 
4361
# Check if system supports termios
 
4362
echo "$as_me:$LINENO: checking POSIX termios" >&5
 
4363
echo $ECHO_N "checking POSIX termios... $ECHO_C" >&6
 
4364
if test "${ac_cv_sys_posix_termios+set}" = set; then
 
4365
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4366
else
 
4367
  cat >conftest.$ac_ext <<_ACEOF
 
4368
/* confdefs.h.  */
 
4369
_ACEOF
 
4370
cat confdefs.h >>conftest.$ac_ext
 
4371
cat >>conftest.$ac_ext <<_ACEOF
 
4372
/* end confdefs.h.  */
 
4373
#include <sys/types.h>
 
4374
#include <unistd.h>
 
4375
#include <termios.h>
 
4376
 
 
4377
int
 
4378
main ()
 
4379
{
 
4380
/* SunOS 4.0.3 has termios.h but not the library calls.  */
 
4381
   tcgetattr(0, 0);
 
4382
  ;
 
4383
  return 0;
 
4384
}
 
4385
_ACEOF
 
4386
rm -f conftest.$ac_objext conftest$ac_exeext
 
4387
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
4388
  (eval $ac_link) 2>conftest.er1
 
4389
  ac_status=$?
 
4390
  grep -v '^ *+' conftest.er1 >conftest.err
 
4391
  rm -f conftest.er1
 
4392
  cat conftest.err >&5
 
4393
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4394
  (exit $ac_status); } &&
 
4395
         { ac_try='test -z "$ac_c_werror_flag"
 
4396
                         || test ! -s conftest.err'
 
4397
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4398
  (eval $ac_try) 2>&5
 
4399
  ac_status=$?
 
4400
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4401
  (exit $ac_status); }; } &&
 
4402
         { ac_try='test -s conftest$ac_exeext'
 
4403
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4404
  (eval $ac_try) 2>&5
 
4405
  ac_status=$?
 
4406
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4407
  (exit $ac_status); }; }; then
 
4408
  ac_cv_sys_posix_termios=yes
 
4409
else
 
4410
  echo "$as_me: failed program was:" >&5
 
4411
sed 's/^/| /' conftest.$ac_ext >&5
 
4412
 
 
4413
ac_cv_sys_posix_termios=no
 
4414
fi
 
4415
rm -f conftest.err conftest.$ac_objext \
 
4416
      conftest$ac_exeext conftest.$ac_ext
 
4417
fi
 
4418
echo "$as_me:$LINENO: result: $ac_cv_sys_posix_termios" >&5
 
4419
echo "${ECHO_T}$ac_cv_sys_posix_termios" >&6
 
4420
 
 
4421
if test "x$ac_cv_sys_posix_termios" = "xyes"; then
 
4422
 
 
4423
cat >>confdefs.h <<_ACEOF
 
4424
#define HAVE_TERMIOS 1
 
4425
_ACEOF
 
4426
 
 
4427
fi
 
4428
 
 
4429
 
 
4430
 
 
4431
 
 
4432
# Check whether --enable-debug or --disable-debug was given.
 
4433
if test "${enable_debug+set}" = set; then
 
4434
  enableval="$enable_debug"
 
4435
 
 
4436
                if test "x$enableval" = xyes
 
4437
                then
 
4438
                  debugging="enabled"
 
4439
 
 
4440
cat >>confdefs.h <<\_ACEOF
 
4441
#define DEBUG 1
 
4442
_ACEOF
 
4443
 
 
4444
                else
 
4445
                  debugging="disabled"
 
4446
                fi
 
4447
 
 
4448
else
 
4449
   debugging="disabled"
 
4450
 
 
4451
fi;
 
4452
 
 
4453
# Check whether --enable-gapless or --disable-gapless was given.
 
4454
if test "${enable_gapless+set}" = set; then
 
4455
  enableval="$enable_gapless"
 
4456
 
 
4457
                if test "x$enableval" = xyes
 
4458
                then
 
4459
                  gapless="enabled"
 
4460
 
 
4461
cat >>confdefs.h <<\_ACEOF
 
4462
#define GAPLESS 1
 
4463
_ACEOF
 
4464
 
 
4465
                else
 
4466
                  gapless="disabled"
 
4467
                fi
 
4468
 
 
4469
else
 
4470
 
 
4471
                gapless="enabled"
 
4472
 
 
4473
cat >>confdefs.h <<\_ACEOF
 
4474
#define GAPLESS 1
 
4475
_ACEOF
 
4476
 
 
4477
 
 
4478
 
 
4479
fi;
 
4480
 
 
4481
 
 
4482
# Check whether --with-cpu or --without-cpu was given.
 
4483
if test "${with_cpu+set}" = set; then
 
4484
  withval="$with_cpu"
 
4485
 
 
4486
fi;
 
4487
 
 
4488
 
 
4489
# Check whether --with-audio or --without-audio was given.
 
4490
if test "${with_audio+set}" = set; then
 
4491
  withval="$with_audio"
 
4492
 
 
4493
fi;
 
4494
 
 
4495
 
 
4496
# Check whether --with-optimization or --without-optimization was given.
 
4497
if test "${with_optimization+set}" = set; then
 
4498
  withval="$with_optimization"
 
4499
 
 
4500
fi;
 
4501
 
 
4502
 
 
4503
# Check whether --with-seektable or --without-seektable was given.
 
4504
if test "${with_seektable+set}" = set; then
 
4505
  withval="$with_seektable"
 
4506
 
 
4507
fi;
 
4508
 
 
4509
 
 
4510
ac_ext=c
 
4511
ac_cpp='$CPP $CPPFLAGS'
 
4512
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
4513
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
4514
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
4515
echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
 
4516
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
 
4517
# On Suns, sometimes $CPP names a directory.
 
4518
if test -n "$CPP" && test -d "$CPP"; then
 
4519
  CPP=
 
4520
fi
 
4521
if test -z "$CPP"; then
 
4522
  if test "${ac_cv_prog_CPP+set}" = set; then
 
4523
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4524
else
 
4525
      # Double quotes because CPP needs to be expanded
 
4526
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
 
4527
    do
 
4528
      ac_preproc_ok=false
 
4529
for ac_c_preproc_warn_flag in '' yes
 
4530
do
 
4531
  # Use a header file that comes with gcc, so configuring glibc
 
4532
  # with a fresh cross-compiler works.
 
4533
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
4534
  # <limits.h> exists even on freestanding compilers.
 
4535
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
4536
  # not just through cpp. "Syntax error" is here to catch this case.
 
4537
  cat >conftest.$ac_ext <<_ACEOF
 
4538
/* confdefs.h.  */
 
4539
_ACEOF
 
4540
cat confdefs.h >>conftest.$ac_ext
 
4541
cat >>conftest.$ac_ext <<_ACEOF
 
4542
/* end confdefs.h.  */
 
4543
#ifdef __STDC__
 
4544
# include <limits.h>
 
4545
#else
 
4546
# include <assert.h>
 
4547
#endif
 
4548
                     Syntax error
 
4549
_ACEOF
 
4550
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
4551
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
4552
  ac_status=$?
 
4553
  grep -v '^ *+' conftest.er1 >conftest.err
 
4554
  rm -f conftest.er1
 
4555
  cat conftest.err >&5
 
4556
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4557
  (exit $ac_status); } >/dev/null; then
 
4558
  if test -s conftest.err; then
 
4559
    ac_cpp_err=$ac_c_preproc_warn_flag
 
4560
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
4561
  else
 
4562
    ac_cpp_err=
 
4563
  fi
 
4564
else
 
4565
  ac_cpp_err=yes
 
4566
fi
 
4567
if test -z "$ac_cpp_err"; then
 
4568
  :
 
4569
else
 
4570
  echo "$as_me: failed program was:" >&5
 
4571
sed 's/^/| /' conftest.$ac_ext >&5
 
4572
 
 
4573
  # Broken: fails on valid input.
 
4574
continue
 
4575
fi
 
4576
rm -f conftest.err conftest.$ac_ext
 
4577
 
 
4578
  # OK, works on sane cases.  Now check whether non-existent headers
 
4579
  # can be detected and how.
 
4580
  cat >conftest.$ac_ext <<_ACEOF
 
4581
/* confdefs.h.  */
 
4582
_ACEOF
 
4583
cat confdefs.h >>conftest.$ac_ext
 
4584
cat >>conftest.$ac_ext <<_ACEOF
 
4585
/* end confdefs.h.  */
 
4586
#include <ac_nonexistent.h>
 
4587
_ACEOF
 
4588
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
4589
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
4590
  ac_status=$?
 
4591
  grep -v '^ *+' conftest.er1 >conftest.err
 
4592
  rm -f conftest.er1
 
4593
  cat conftest.err >&5
 
4594
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4595
  (exit $ac_status); } >/dev/null; then
 
4596
  if test -s conftest.err; then
 
4597
    ac_cpp_err=$ac_c_preproc_warn_flag
 
4598
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
4599
  else
 
4600
    ac_cpp_err=
 
4601
  fi
 
4602
else
 
4603
  ac_cpp_err=yes
 
4604
fi
 
4605
if test -z "$ac_cpp_err"; then
 
4606
  # Broken: success on invalid input.
 
4607
continue
 
4608
else
 
4609
  echo "$as_me: failed program was:" >&5
 
4610
sed 's/^/| /' conftest.$ac_ext >&5
 
4611
 
 
4612
  # Passes both tests.
 
4613
ac_preproc_ok=:
 
4614
break
 
4615
fi
 
4616
rm -f conftest.err conftest.$ac_ext
 
4617
 
 
4618
done
 
4619
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
4620
rm -f conftest.err conftest.$ac_ext
 
4621
if $ac_preproc_ok; then
 
4622
  break
 
4623
fi
 
4624
 
 
4625
    done
 
4626
    ac_cv_prog_CPP=$CPP
 
4627
 
 
4628
fi
 
4629
  CPP=$ac_cv_prog_CPP
 
4630
else
 
4631
  ac_cv_prog_CPP=$CPP
 
4632
fi
 
4633
echo "$as_me:$LINENO: result: $CPP" >&5
 
4634
echo "${ECHO_T}$CPP" >&6
 
4635
ac_preproc_ok=false
 
4636
for ac_c_preproc_warn_flag in '' yes
 
4637
do
 
4638
  # Use a header file that comes with gcc, so configuring glibc
 
4639
  # with a fresh cross-compiler works.
 
4640
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
4641
  # <limits.h> exists even on freestanding compilers.
 
4642
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
4643
  # not just through cpp. "Syntax error" is here to catch this case.
 
4644
  cat >conftest.$ac_ext <<_ACEOF
 
4645
/* confdefs.h.  */
 
4646
_ACEOF
 
4647
cat confdefs.h >>conftest.$ac_ext
 
4648
cat >>conftest.$ac_ext <<_ACEOF
 
4649
/* end confdefs.h.  */
 
4650
#ifdef __STDC__
 
4651
# include <limits.h>
 
4652
#else
 
4653
# include <assert.h>
 
4654
#endif
 
4655
                     Syntax error
 
4656
_ACEOF
 
4657
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
4658
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
4659
  ac_status=$?
 
4660
  grep -v '^ *+' conftest.er1 >conftest.err
 
4661
  rm -f conftest.er1
 
4662
  cat conftest.err >&5
 
4663
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4664
  (exit $ac_status); } >/dev/null; then
 
4665
  if test -s conftest.err; then
 
4666
    ac_cpp_err=$ac_c_preproc_warn_flag
 
4667
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
4668
  else
 
4669
    ac_cpp_err=
 
4670
  fi
 
4671
else
 
4672
  ac_cpp_err=yes
 
4673
fi
 
4674
if test -z "$ac_cpp_err"; then
 
4675
  :
 
4676
else
 
4677
  echo "$as_me: failed program was:" >&5
 
4678
sed 's/^/| /' conftest.$ac_ext >&5
 
4679
 
 
4680
  # Broken: fails on valid input.
 
4681
continue
 
4682
fi
 
4683
rm -f conftest.err conftest.$ac_ext
 
4684
 
 
4685
  # OK, works on sane cases.  Now check whether non-existent headers
 
4686
  # can be detected and how.
 
4687
  cat >conftest.$ac_ext <<_ACEOF
 
4688
/* confdefs.h.  */
 
4689
_ACEOF
 
4690
cat confdefs.h >>conftest.$ac_ext
 
4691
cat >>conftest.$ac_ext <<_ACEOF
 
4692
/* end confdefs.h.  */
 
4693
#include <ac_nonexistent.h>
 
4694
_ACEOF
 
4695
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
4696
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
4697
  ac_status=$?
 
4698
  grep -v '^ *+' conftest.er1 >conftest.err
 
4699
  rm -f conftest.er1
 
4700
  cat conftest.err >&5
 
4701
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4702
  (exit $ac_status); } >/dev/null; then
 
4703
  if test -s conftest.err; then
 
4704
    ac_cpp_err=$ac_c_preproc_warn_flag
 
4705
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
4706
  else
 
4707
    ac_cpp_err=
 
4708
  fi
 
4709
else
 
4710
  ac_cpp_err=yes
 
4711
fi
 
4712
if test -z "$ac_cpp_err"; then
 
4713
  # Broken: success on invalid input.
 
4714
continue
 
4715
else
 
4716
  echo "$as_me: failed program was:" >&5
 
4717
sed 's/^/| /' conftest.$ac_ext >&5
 
4718
 
 
4719
  # Passes both tests.
 
4720
ac_preproc_ok=:
 
4721
break
 
4722
fi
 
4723
rm -f conftest.err conftest.$ac_ext
 
4724
 
 
4725
done
 
4726
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
4727
rm -f conftest.err conftest.$ac_ext
 
4728
if $ac_preproc_ok; then
 
4729
  :
 
4730
else
 
4731
  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
 
4732
See \`config.log' for more details." >&5
 
4733
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
 
4734
See \`config.log' for more details." >&2;}
 
4735
   { (exit 1); exit 1; }; }
 
4736
fi
 
4737
 
 
4738
ac_ext=c
 
4739
ac_cpp='$CPP $CPPFLAGS'
 
4740
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
4741
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
4742
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
4743
 
 
4744
 
 
4745
echo "$as_me:$LINENO: checking for egrep" >&5
 
4746
echo $ECHO_N "checking for egrep... $ECHO_C" >&6
 
4747
if test "${ac_cv_prog_egrep+set}" = set; then
 
4748
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4749
else
 
4750
  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
 
4751
    then ac_cv_prog_egrep='grep -E'
 
4752
    else ac_cv_prog_egrep='egrep'
 
4753
    fi
 
4754
fi
 
4755
echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
 
4756
echo "${ECHO_T}$ac_cv_prog_egrep" >&6
 
4757
 EGREP=$ac_cv_prog_egrep
 
4758
 
 
4759
 
 
4760
echo "$as_me:$LINENO: checking for ANSI C header files" >&5
 
4761
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
 
4762
if test "${ac_cv_header_stdc+set}" = set; then
 
4763
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4764
else
 
4765
  cat >conftest.$ac_ext <<_ACEOF
 
4766
/* confdefs.h.  */
 
4767
_ACEOF
 
4768
cat confdefs.h >>conftest.$ac_ext
 
4769
cat >>conftest.$ac_ext <<_ACEOF
 
4770
/* end confdefs.h.  */
 
4771
#include <stdlib.h>
 
4772
#include <stdarg.h>
 
4773
#include <string.h>
 
4774
#include <float.h>
 
4775
 
 
4776
int
 
4777
main ()
 
4778
{
 
4779
 
 
4780
  ;
 
4781
  return 0;
 
4782
}
 
4783
_ACEOF
 
4784
rm -f conftest.$ac_objext
 
4785
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4786
  (eval $ac_compile) 2>conftest.er1
 
4787
  ac_status=$?
 
4788
  grep -v '^ *+' conftest.er1 >conftest.err
 
4789
  rm -f conftest.er1
 
4790
  cat conftest.err >&5
 
4791
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4792
  (exit $ac_status); } &&
 
4793
         { ac_try='test -z "$ac_c_werror_flag"
 
4794
                         || test ! -s conftest.err'
 
4795
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4796
  (eval $ac_try) 2>&5
 
4797
  ac_status=$?
 
4798
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4799
  (exit $ac_status); }; } &&
 
4800
         { ac_try='test -s conftest.$ac_objext'
 
4801
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4802
  (eval $ac_try) 2>&5
 
4803
  ac_status=$?
 
4804
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4805
  (exit $ac_status); }; }; then
 
4806
  ac_cv_header_stdc=yes
 
4807
else
 
4808
  echo "$as_me: failed program was:" >&5
 
4809
sed 's/^/| /' conftest.$ac_ext >&5
 
4810
 
 
4811
ac_cv_header_stdc=no
 
4812
fi
 
4813
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
4814
 
 
4815
if test $ac_cv_header_stdc = yes; then
 
4816
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
 
4817
  cat >conftest.$ac_ext <<_ACEOF
 
4818
/* confdefs.h.  */
 
4819
_ACEOF
 
4820
cat confdefs.h >>conftest.$ac_ext
 
4821
cat >>conftest.$ac_ext <<_ACEOF
 
4822
/* end confdefs.h.  */
 
4823
#include <string.h>
 
4824
 
 
4825
_ACEOF
 
4826
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
4827
  $EGREP "memchr" >/dev/null 2>&1; then
 
4828
  :
 
4829
else
 
4830
  ac_cv_header_stdc=no
 
4831
fi
 
4832
rm -f conftest*
 
4833
 
 
4834
fi
 
4835
 
 
4836
if test $ac_cv_header_stdc = yes; then
 
4837
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
 
4838
  cat >conftest.$ac_ext <<_ACEOF
 
4839
/* confdefs.h.  */
 
4840
_ACEOF
 
4841
cat confdefs.h >>conftest.$ac_ext
 
4842
cat >>conftest.$ac_ext <<_ACEOF
 
4843
/* end confdefs.h.  */
 
4844
#include <stdlib.h>
 
4845
 
 
4846
_ACEOF
 
4847
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
4848
  $EGREP "free" >/dev/null 2>&1; then
 
4849
  :
 
4850
else
 
4851
  ac_cv_header_stdc=no
 
4852
fi
 
4853
rm -f conftest*
 
4854
 
 
4855
fi
 
4856
 
 
4857
if test $ac_cv_header_stdc = yes; then
 
4858
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
 
4859
  if test "$cross_compiling" = yes; then
 
4860
  :
 
4861
else
 
4862
  cat >conftest.$ac_ext <<_ACEOF
 
4863
/* confdefs.h.  */
 
4864
_ACEOF
 
4865
cat confdefs.h >>conftest.$ac_ext
 
4866
cat >>conftest.$ac_ext <<_ACEOF
 
4867
/* end confdefs.h.  */
 
4868
#include <ctype.h>
 
4869
#if ((' ' & 0x0FF) == 0x020)
 
4870
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
 
4871
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
 
4872
#else
 
4873
# define ISLOWER(c) \
 
4874
                   (('a' <= (c) && (c) <= 'i') \
 
4875
                     || ('j' <= (c) && (c) <= 'r') \
 
4876
                     || ('s' <= (c) && (c) <= 'z'))
 
4877
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
 
4878
#endif
 
4879
 
 
4880
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
 
4881
int
 
4882
main ()
 
4883
{
 
4884
  int i;
 
4885
  for (i = 0; i < 256; i++)
 
4886
    if (XOR (islower (i), ISLOWER (i))
 
4887
        || toupper (i) != TOUPPER (i))
 
4888
      exit(2);
 
4889
  exit (0);
 
4890
}
 
4891
_ACEOF
 
4892
rm -f conftest$ac_exeext
 
4893
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
4894
  (eval $ac_link) 2>&5
 
4895
  ac_status=$?
 
4896
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4897
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
4898
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4899
  (eval $ac_try) 2>&5
 
4900
  ac_status=$?
 
4901
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4902
  (exit $ac_status); }; }; then
 
4903
  :
 
4904
else
 
4905
  echo "$as_me: program exited with status $ac_status" >&5
 
4906
echo "$as_me: failed program was:" >&5
 
4907
sed 's/^/| /' conftest.$ac_ext >&5
 
4908
 
 
4909
( exit $ac_status )
 
4910
ac_cv_header_stdc=no
 
4911
fi
 
4912
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
4913
fi
 
4914
fi
 
4915
fi
 
4916
echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
 
4917
echo "${ECHO_T}$ac_cv_header_stdc" >&6
 
4918
if test $ac_cv_header_stdc = yes; then
 
4919
 
 
4920
cat >>confdefs.h <<\_ACEOF
 
4921
#define STDC_HEADERS 1
 
4922
_ACEOF
 
4923
 
 
4924
fi
 
4925
 
 
4926
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
 
4927
 
 
4928
 
 
4929
 
 
4930
 
 
4931
 
 
4932
 
 
4933
 
 
4934
 
 
4935
 
 
4936
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
 
4937
                  inttypes.h stdint.h unistd.h
 
4938
do
 
4939
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
4940
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
4941
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
4942
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
4943
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4944
else
 
4945
  cat >conftest.$ac_ext <<_ACEOF
 
4946
/* confdefs.h.  */
 
4947
_ACEOF
 
4948
cat confdefs.h >>conftest.$ac_ext
 
4949
cat >>conftest.$ac_ext <<_ACEOF
 
4950
/* end confdefs.h.  */
 
4951
$ac_includes_default
 
4952
 
 
4953
#include <$ac_header>
 
4954
_ACEOF
 
4955
rm -f conftest.$ac_objext
 
4956
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4957
  (eval $ac_compile) 2>conftest.er1
 
4958
  ac_status=$?
 
4959
  grep -v '^ *+' conftest.er1 >conftest.err
 
4960
  rm -f conftest.er1
 
4961
  cat conftest.err >&5
 
4962
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4963
  (exit $ac_status); } &&
 
4964
         { ac_try='test -z "$ac_c_werror_flag"
 
4965
                         || test ! -s conftest.err'
 
4966
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4967
  (eval $ac_try) 2>&5
 
4968
  ac_status=$?
 
4969
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4970
  (exit $ac_status); }; } &&
 
4971
         { ac_try='test -s conftest.$ac_objext'
 
4972
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4973
  (eval $ac_try) 2>&5
 
4974
  ac_status=$?
 
4975
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4976
  (exit $ac_status); }; }; then
 
4977
  eval "$as_ac_Header=yes"
 
4978
else
 
4979
  echo "$as_me: failed program was:" >&5
 
4980
sed 's/^/| /' conftest.$ac_ext >&5
 
4981
 
 
4982
eval "$as_ac_Header=no"
 
4983
fi
 
4984
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
4985
fi
 
4986
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
4987
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
4988
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
4989
  cat >>confdefs.h <<_ACEOF
 
4990
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
4991
_ACEOF
 
4992
 
 
4993
fi
 
4994
 
 
4995
done
 
4996
 
 
4997
 
 
4998
 
 
4999
 
 
5000
for ac_header in stdlib.h unistd.h
 
5001
do
 
5002
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
5003
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
5004
  echo "$as_me:$LINENO: checking for $ac_header" >&5
 
5005
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
5006
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
5007
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5008
fi
 
5009
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
5010
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
5011
else
 
5012
  # Is the header compilable?
 
5013
echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
5014
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
5015
cat >conftest.$ac_ext <<_ACEOF
 
5016
/* confdefs.h.  */
 
5017
_ACEOF
 
5018
cat confdefs.h >>conftest.$ac_ext
 
5019
cat >>conftest.$ac_ext <<_ACEOF
 
5020
/* end confdefs.h.  */
 
5021
$ac_includes_default
 
5022
#include <$ac_header>
 
5023
_ACEOF
 
5024
rm -f conftest.$ac_objext
 
5025
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
5026
  (eval $ac_compile) 2>conftest.er1
 
5027
  ac_status=$?
 
5028
  grep -v '^ *+' conftest.er1 >conftest.err
 
5029
  rm -f conftest.er1
 
5030
  cat conftest.err >&5
 
5031
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5032
  (exit $ac_status); } &&
 
5033
         { ac_try='test -z "$ac_c_werror_flag"
 
5034
                         || test ! -s conftest.err'
 
5035
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5036
  (eval $ac_try) 2>&5
 
5037
  ac_status=$?
 
5038
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5039
  (exit $ac_status); }; } &&
 
5040
         { ac_try='test -s conftest.$ac_objext'
 
5041
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5042
  (eval $ac_try) 2>&5
 
5043
  ac_status=$?
 
5044
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5045
  (exit $ac_status); }; }; then
 
5046
  ac_header_compiler=yes
 
5047
else
 
5048
  echo "$as_me: failed program was:" >&5
 
5049
sed 's/^/| /' conftest.$ac_ext >&5
 
5050
 
 
5051
ac_header_compiler=no
 
5052
fi
 
5053
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
5054
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
5055
echo "${ECHO_T}$ac_header_compiler" >&6
 
5056
 
 
5057
# Is the header present?
 
5058
echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
5059
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
5060
cat >conftest.$ac_ext <<_ACEOF
 
5061
/* confdefs.h.  */
 
5062
_ACEOF
 
5063
cat confdefs.h >>conftest.$ac_ext
 
5064
cat >>conftest.$ac_ext <<_ACEOF
 
5065
/* end confdefs.h.  */
 
5066
#include <$ac_header>
 
5067
_ACEOF
 
5068
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
5069
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
5070
  ac_status=$?
 
5071
  grep -v '^ *+' conftest.er1 >conftest.err
 
5072
  rm -f conftest.er1
 
5073
  cat conftest.err >&5
 
5074
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5075
  (exit $ac_status); } >/dev/null; then
 
5076
  if test -s conftest.err; then
 
5077
    ac_cpp_err=$ac_c_preproc_warn_flag
 
5078
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
5079
  else
 
5080
    ac_cpp_err=
 
5081
  fi
 
5082
else
 
5083
  ac_cpp_err=yes
 
5084
fi
 
5085
if test -z "$ac_cpp_err"; then
 
5086
  ac_header_preproc=yes
 
5087
else
 
5088
  echo "$as_me: failed program was:" >&5
 
5089
sed 's/^/| /' conftest.$ac_ext >&5
 
5090
 
 
5091
  ac_header_preproc=no
 
5092
fi
 
5093
rm -f conftest.err conftest.$ac_ext
 
5094
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
5095
echo "${ECHO_T}$ac_header_preproc" >&6
 
5096
 
 
5097
# So?  What about this header?
 
5098
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
5099
  yes:no: )
 
5100
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
5101
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
5102
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
5103
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
5104
    ac_header_preproc=yes
 
5105
    ;;
 
5106
  no:yes:* )
 
5107
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
5108
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
5109
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
5110
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
5111
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
5112
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
5113
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
5114
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
5115
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
5116
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
5117
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
5118
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
5119
    (
 
5120
      cat <<\_ASBOX
 
5121
## ------------------------------------------------- ##
 
5122
## Report this to mpg123-devel@lists.sourceforge.net ##
 
5123
## ------------------------------------------------- ##
 
5124
_ASBOX
 
5125
    ) |
 
5126
      sed "s/^/$as_me: WARNING:     /" >&2
 
5127
    ;;
 
5128
esac
 
5129
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
5130
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
5131
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
5132
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5133
else
 
5134
  eval "$as_ac_Header=\$ac_header_preproc"
 
5135
fi
 
5136
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
5137
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
5138
 
 
5139
fi
 
5140
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
5141
  cat >>confdefs.h <<_ACEOF
 
5142
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
5143
_ACEOF
 
5144
 
 
5145
fi
 
5146
 
 
5147
done
 
5148
 
 
5149
 
 
5150
for ac_func in getpagesize
 
5151
do
 
5152
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
5153
echo "$as_me:$LINENO: checking for $ac_func" >&5
 
5154
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
 
5155
if eval "test \"\${$as_ac_var+set}\" = set"; then
 
5156
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5157
else
 
5158
  cat >conftest.$ac_ext <<_ACEOF
 
5159
/* confdefs.h.  */
 
5160
_ACEOF
 
5161
cat confdefs.h >>conftest.$ac_ext
 
5162
cat >>conftest.$ac_ext <<_ACEOF
 
5163
/* end confdefs.h.  */
 
5164
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
5165
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
5166
#define $ac_func innocuous_$ac_func
 
5167
 
 
5168
/* System header to define __stub macros and hopefully few prototypes,
 
5169
    which can conflict with char $ac_func (); below.
 
5170
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
5171
    <limits.h> exists even on freestanding compilers.  */
 
5172
 
 
5173
#ifdef __STDC__
 
5174
# include <limits.h>
 
5175
#else
 
5176
# include <assert.h>
 
5177
#endif
 
5178
 
 
5179
#undef $ac_func
 
5180
 
 
5181
/* Override any gcc2 internal prototype to avoid an error.  */
 
5182
#ifdef __cplusplus
 
5183
extern "C"
 
5184
{
 
5185
#endif
 
5186
/* We use char because int might match the return type of a gcc2
 
5187
   builtin and then its argument prototype would still apply.  */
 
5188
char $ac_func ();
 
5189
/* The GNU C library defines this for functions which it implements
 
5190
    to always fail with ENOSYS.  Some functions are actually named
 
5191
    something starting with __ and the normal name is an alias.  */
 
5192
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
 
5193
choke me
 
5194
#else
 
5195
char (*f) () = $ac_func;
 
5196
#endif
 
5197
#ifdef __cplusplus
 
5198
}
 
5199
#endif
 
5200
 
 
5201
int
 
5202
main ()
 
5203
{
 
5204
return f != $ac_func;
 
5205
  ;
 
5206
  return 0;
 
5207
}
 
5208
_ACEOF
 
5209
rm -f conftest.$ac_objext conftest$ac_exeext
 
5210
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
5211
  (eval $ac_link) 2>conftest.er1
 
5212
  ac_status=$?
 
5213
  grep -v '^ *+' conftest.er1 >conftest.err
 
5214
  rm -f conftest.er1
 
5215
  cat conftest.err >&5
 
5216
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5217
  (exit $ac_status); } &&
 
5218
         { ac_try='test -z "$ac_c_werror_flag"
 
5219
                         || test ! -s conftest.err'
 
5220
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5221
  (eval $ac_try) 2>&5
 
5222
  ac_status=$?
 
5223
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5224
  (exit $ac_status); }; } &&
 
5225
         { ac_try='test -s conftest$ac_exeext'
 
5226
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5227
  (eval $ac_try) 2>&5
 
5228
  ac_status=$?
 
5229
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5230
  (exit $ac_status); }; }; then
 
5231
  eval "$as_ac_var=yes"
 
5232
else
 
5233
  echo "$as_me: failed program was:" >&5
 
5234
sed 's/^/| /' conftest.$ac_ext >&5
 
5235
 
 
5236
eval "$as_ac_var=no"
 
5237
fi
 
5238
rm -f conftest.err conftest.$ac_objext \
 
5239
      conftest$ac_exeext conftest.$ac_ext
 
5240
fi
 
5241
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
 
5242
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
 
5243
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
5244
  cat >>confdefs.h <<_ACEOF
 
5245
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
5246
_ACEOF
 
5247
 
 
5248
fi
 
5249
done
 
5250
 
 
5251
echo "$as_me:$LINENO: checking for working mmap" >&5
 
5252
echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
 
5253
if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
 
5254
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5255
else
 
5256
  if test "$cross_compiling" = yes; then
 
5257
  ac_cv_func_mmap_fixed_mapped=no
 
5258
else
 
5259
  cat >conftest.$ac_ext <<_ACEOF
 
5260
/* confdefs.h.  */
 
5261
_ACEOF
 
5262
cat confdefs.h >>conftest.$ac_ext
 
5263
cat >>conftest.$ac_ext <<_ACEOF
 
5264
/* end confdefs.h.  */
 
5265
$ac_includes_default
 
5266
/* malloc might have been renamed as rpl_malloc. */
 
5267
#undef malloc
 
5268
 
 
5269
/* Thanks to Mike Haertel and Jim Avera for this test.
 
5270
   Here is a matrix of mmap possibilities:
 
5271
        mmap private not fixed
 
5272
        mmap private fixed at somewhere currently unmapped
 
5273
        mmap private fixed at somewhere already mapped
 
5274
        mmap shared not fixed
 
5275
        mmap shared fixed at somewhere currently unmapped
 
5276
        mmap shared fixed at somewhere already mapped
 
5277
   For private mappings, we should verify that changes cannot be read()
 
5278
   back from the file, nor mmap's back from the file at a different
 
5279
   address.  (There have been systems where private was not correctly
 
5280
   implemented like the infamous i386 svr4.0, and systems where the
 
5281
   VM page cache was not coherent with the file system buffer cache
 
5282
   like early versions of FreeBSD and possibly contemporary NetBSD.)
 
5283
   For shared mappings, we should conversely verify that changes get
 
5284
   propagated back to all the places they're supposed to be.
 
5285
 
 
5286
   Grep wants private fixed already mapped.
 
5287
   The main things grep needs to know about mmap are:
 
5288
   * does it exist and is it safe to write into the mmap'd area
 
5289
   * how to use it (BSD variants)  */
 
5290
 
 
5291
#include <fcntl.h>
 
5292
#include <sys/mman.h>
 
5293
 
 
5294
#if !STDC_HEADERS && !HAVE_STDLIB_H
 
5295
char *malloc ();
 
5296
#endif
 
5297
 
 
5298
/* This mess was copied from the GNU getpagesize.h.  */
 
5299
#if !HAVE_GETPAGESIZE
 
5300
/* Assume that all systems that can run configure have sys/param.h.  */
 
5301
# if !HAVE_SYS_PARAM_H
 
5302
#  define HAVE_SYS_PARAM_H 1
 
5303
# endif
 
5304
 
 
5305
# ifdef _SC_PAGESIZE
 
5306
#  define getpagesize() sysconf(_SC_PAGESIZE)
 
5307
# else /* no _SC_PAGESIZE */
 
5308
#  if HAVE_SYS_PARAM_H
 
5309
#   include <sys/param.h>
 
5310
#   ifdef EXEC_PAGESIZE
 
5311
#    define getpagesize() EXEC_PAGESIZE
 
5312
#   else /* no EXEC_PAGESIZE */
 
5313
#    ifdef NBPG
 
5314
#     define getpagesize() NBPG * CLSIZE
 
5315
#     ifndef CLSIZE
 
5316
#      define CLSIZE 1
 
5317
#     endif /* no CLSIZE */
 
5318
#    else /* no NBPG */
 
5319
#     ifdef NBPC
 
5320
#      define getpagesize() NBPC
 
5321
#     else /* no NBPC */
 
5322
#      ifdef PAGESIZE
 
5323
#       define getpagesize() PAGESIZE
 
5324
#      endif /* PAGESIZE */
 
5325
#     endif /* no NBPC */
 
5326
#    endif /* no NBPG */
 
5327
#   endif /* no EXEC_PAGESIZE */
 
5328
#  else /* no HAVE_SYS_PARAM_H */
 
5329
#   define getpagesize() 8192   /* punt totally */
 
5330
#  endif /* no HAVE_SYS_PARAM_H */
 
5331
# endif /* no _SC_PAGESIZE */
 
5332
 
 
5333
#endif /* no HAVE_GETPAGESIZE */
 
5334
 
 
5335
int
 
5336
main ()
 
5337
{
 
5338
  char *data, *data2, *data3;
 
5339
  int i, pagesize;
 
5340
  int fd;
 
5341
 
 
5342
  pagesize = getpagesize ();
 
5343
 
 
5344
  /* First, make a file with some known garbage in it. */
 
5345
  data = (char *) malloc (pagesize);
 
5346
  if (!data)
 
5347
    exit (1);
 
5348
  for (i = 0; i < pagesize; ++i)
 
5349
    *(data + i) = rand ();
 
5350
  umask (0);
 
5351
  fd = creat ("conftest.mmap", 0600);
 
5352
  if (fd < 0)
 
5353
    exit (1);
 
5354
  if (write (fd, data, pagesize) != pagesize)
 
5355
    exit (1);
 
5356
  close (fd);
 
5357
 
 
5358
  /* Next, try to mmap the file at a fixed address which already has
 
5359
     something else allocated at it.  If we can, also make sure that
 
5360
     we see the same garbage.  */
 
5361
  fd = open ("conftest.mmap", O_RDWR);
 
5362
  if (fd < 0)
 
5363
    exit (1);
 
5364
  data2 = (char *) malloc (2 * pagesize);
 
5365
  if (!data2)
 
5366
    exit (1);
 
5367
  data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
 
5368
  if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
 
5369
                     MAP_PRIVATE | MAP_FIXED, fd, 0L))
 
5370
    exit (1);
 
5371
  for (i = 0; i < pagesize; ++i)
 
5372
    if (*(data + i) != *(data2 + i))
 
5373
      exit (1);
 
5374
 
 
5375
  /* Finally, make sure that changes to the mapped area do not
 
5376
     percolate back to the file as seen by read().  (This is a bug on
 
5377
     some variants of i386 svr4.0.)  */
 
5378
  for (i = 0; i < pagesize; ++i)
 
5379
    *(data2 + i) = *(data2 + i) + 1;
 
5380
  data3 = (char *) malloc (pagesize);
 
5381
  if (!data3)
 
5382
    exit (1);
 
5383
  if (read (fd, data3, pagesize) != pagesize)
 
5384
    exit (1);
 
5385
  for (i = 0; i < pagesize; ++i)
 
5386
    if (*(data + i) != *(data3 + i))
 
5387
      exit (1);
 
5388
  close (fd);
 
5389
  exit (0);
 
5390
}
 
5391
_ACEOF
 
5392
rm -f conftest$ac_exeext
 
5393
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
5394
  (eval $ac_link) 2>&5
 
5395
  ac_status=$?
 
5396
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5397
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
5398
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5399
  (eval $ac_try) 2>&5
 
5400
  ac_status=$?
 
5401
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5402
  (exit $ac_status); }; }; then
 
5403
  ac_cv_func_mmap_fixed_mapped=yes
 
5404
else
 
5405
  echo "$as_me: program exited with status $ac_status" >&5
 
5406
echo "$as_me: failed program was:" >&5
 
5407
sed 's/^/| /' conftest.$ac_ext >&5
 
5408
 
 
5409
( exit $ac_status )
 
5410
ac_cv_func_mmap_fixed_mapped=no
 
5411
fi
 
5412
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
5413
fi
 
5414
fi
 
5415
echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
 
5416
echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
 
5417
if test $ac_cv_func_mmap_fixed_mapped = yes; then
 
5418
 
 
5419
cat >>confdefs.h <<\_ACEOF
 
5420
#define HAVE_MMAP 1
 
5421
_ACEOF
 
5422
 
 
5423
fi
 
5424
rm -f conftest.mmap
 
5425
 
 
5426
 
 
5427
# Check for sched_setscheduler
 
5428
 
 
5429
for ac_func in sched_setscheduler
 
5430
do
 
5431
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
5432
echo "$as_me:$LINENO: checking for $ac_func" >&5
 
5433
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
 
5434
if eval "test \"\${$as_ac_var+set}\" = set"; then
 
5435
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5436
else
 
5437
  cat >conftest.$ac_ext <<_ACEOF
 
5438
/* confdefs.h.  */
 
5439
_ACEOF
 
5440
cat confdefs.h >>conftest.$ac_ext
 
5441
cat >>conftest.$ac_ext <<_ACEOF
 
5442
/* end confdefs.h.  */
 
5443
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
5444
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
5445
#define $ac_func innocuous_$ac_func
 
5446
 
 
5447
/* System header to define __stub macros and hopefully few prototypes,
 
5448
    which can conflict with char $ac_func (); below.
 
5449
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
5450
    <limits.h> exists even on freestanding compilers.  */
 
5451
 
 
5452
#ifdef __STDC__
 
5453
# include <limits.h>
 
5454
#else
 
5455
# include <assert.h>
 
5456
#endif
 
5457
 
 
5458
#undef $ac_func
 
5459
 
 
5460
/* Override any gcc2 internal prototype to avoid an error.  */
 
5461
#ifdef __cplusplus
 
5462
extern "C"
 
5463
{
 
5464
#endif
 
5465
/* We use char because int might match the return type of a gcc2
 
5466
   builtin and then its argument prototype would still apply.  */
 
5467
char $ac_func ();
 
5468
/* The GNU C library defines this for functions which it implements
 
5469
    to always fail with ENOSYS.  Some functions are actually named
 
5470
    something starting with __ and the normal name is an alias.  */
 
5471
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
 
5472
choke me
 
5473
#else
 
5474
char (*f) () = $ac_func;
 
5475
#endif
 
5476
#ifdef __cplusplus
 
5477
}
 
5478
#endif
 
5479
 
 
5480
int
 
5481
main ()
 
5482
{
 
5483
return f != $ac_func;
 
5484
  ;
 
5485
  return 0;
 
5486
}
 
5487
_ACEOF
 
5488
rm -f conftest.$ac_objext conftest$ac_exeext
 
5489
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
5490
  (eval $ac_link) 2>conftest.er1
 
5491
  ac_status=$?
 
5492
  grep -v '^ *+' conftest.er1 >conftest.err
 
5493
  rm -f conftest.er1
 
5494
  cat conftest.err >&5
 
5495
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5496
  (exit $ac_status); } &&
 
5497
         { ac_try='test -z "$ac_c_werror_flag"
 
5498
                         || test ! -s conftest.err'
 
5499
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5500
  (eval $ac_try) 2>&5
 
5501
  ac_status=$?
 
5502
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5503
  (exit $ac_status); }; } &&
 
5504
         { ac_try='test -s conftest$ac_exeext'
 
5505
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5506
  (eval $ac_try) 2>&5
 
5507
  ac_status=$?
 
5508
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5509
  (exit $ac_status); }; }; then
 
5510
  eval "$as_ac_var=yes"
 
5511
else
 
5512
  echo "$as_me: failed program was:" >&5
 
5513
sed 's/^/| /' conftest.$ac_ext >&5
 
5514
 
 
5515
eval "$as_ac_var=no"
 
5516
fi
 
5517
rm -f conftest.err conftest.$ac_objext \
 
5518
      conftest$ac_exeext conftest.$ac_ext
 
5519
fi
 
5520
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
 
5521
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
 
5522
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
5523
  cat >>confdefs.h <<_ACEOF
 
5524
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
5525
_ACEOF
 
5526
 
 
5527
fi
 
5528
done
 
5529
 
 
5530
 
 
5531
# Check for setpriority
 
5532
 
 
5533
for ac_func in setpriority
 
5534
do
 
5535
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
5536
echo "$as_me:$LINENO: checking for $ac_func" >&5
 
5537
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
 
5538
if eval "test \"\${$as_ac_var+set}\" = set"; then
 
5539
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5540
else
 
5541
  cat >conftest.$ac_ext <<_ACEOF
 
5542
/* confdefs.h.  */
 
5543
_ACEOF
 
5544
cat confdefs.h >>conftest.$ac_ext
 
5545
cat >>conftest.$ac_ext <<_ACEOF
 
5546
/* end confdefs.h.  */
 
5547
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
5548
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
5549
#define $ac_func innocuous_$ac_func
 
5550
 
 
5551
/* System header to define __stub macros and hopefully few prototypes,
 
5552
    which can conflict with char $ac_func (); below.
 
5553
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
5554
    <limits.h> exists even on freestanding compilers.  */
 
5555
 
 
5556
#ifdef __STDC__
 
5557
# include <limits.h>
 
5558
#else
 
5559
# include <assert.h>
 
5560
#endif
 
5561
 
 
5562
#undef $ac_func
 
5563
 
 
5564
/* Override any gcc2 internal prototype to avoid an error.  */
 
5565
#ifdef __cplusplus
 
5566
extern "C"
 
5567
{
 
5568
#endif
 
5569
/* We use char because int might match the return type of a gcc2
 
5570
   builtin and then its argument prototype would still apply.  */
 
5571
char $ac_func ();
 
5572
/* The GNU C library defines this for functions which it implements
 
5573
    to always fail with ENOSYS.  Some functions are actually named
 
5574
    something starting with __ and the normal name is an alias.  */
 
5575
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
 
5576
choke me
 
5577
#else
 
5578
char (*f) () = $ac_func;
 
5579
#endif
 
5580
#ifdef __cplusplus
 
5581
}
 
5582
#endif
 
5583
 
 
5584
int
 
5585
main ()
 
5586
{
 
5587
return f != $ac_func;
 
5588
  ;
 
5589
  return 0;
 
5590
}
 
5591
_ACEOF
 
5592
rm -f conftest.$ac_objext conftest$ac_exeext
 
5593
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
5594
  (eval $ac_link) 2>conftest.er1
 
5595
  ac_status=$?
 
5596
  grep -v '^ *+' conftest.er1 >conftest.err
 
5597
  rm -f conftest.er1
 
5598
  cat conftest.err >&5
 
5599
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5600
  (exit $ac_status); } &&
 
5601
         { ac_try='test -z "$ac_c_werror_flag"
 
5602
                         || test ! -s conftest.err'
 
5603
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5604
  (eval $ac_try) 2>&5
 
5605
  ac_status=$?
 
5606
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5607
  (exit $ac_status); }; } &&
 
5608
         { ac_try='test -s conftest$ac_exeext'
 
5609
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5610
  (eval $ac_try) 2>&5
 
5611
  ac_status=$?
 
5612
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5613
  (exit $ac_status); }; }; then
 
5614
  eval "$as_ac_var=yes"
 
5615
else
 
5616
  echo "$as_me: failed program was:" >&5
 
5617
sed 's/^/| /' conftest.$ac_ext >&5
 
5618
 
 
5619
eval "$as_ac_var=no"
 
5620
fi
 
5621
rm -f conftest.err conftest.$ac_objext \
 
5622
      conftest$ac_exeext conftest.$ac_ext
 
5623
fi
 
5624
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
 
5625
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
 
5626
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
5627
  cat >>confdefs.h <<_ACEOF
 
5628
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
5629
_ACEOF
 
5630
 
 
5631
fi
 
5632
done
 
5633
 
 
5634
 
 
5635
 
 
5636
 
 
5637
 
 
5638
# Checks for libraries.
 
5639
 
 
5640
echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
 
5641
echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6
 
5642
if test "${ac_cv_lib_m_sqrt+set}" = set; then
 
5643
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5644
else
 
5645
  ac_check_lib_save_LIBS=$LIBS
 
5646
LIBS="-lm  $LIBS"
 
5647
cat >conftest.$ac_ext <<_ACEOF
 
5648
/* confdefs.h.  */
 
5649
_ACEOF
 
5650
cat confdefs.h >>conftest.$ac_ext
 
5651
cat >>conftest.$ac_ext <<_ACEOF
 
5652
/* end confdefs.h.  */
 
5653
 
 
5654
/* Override any gcc2 internal prototype to avoid an error.  */
 
5655
#ifdef __cplusplus
 
5656
extern "C"
 
5657
#endif
 
5658
/* We use char because int might match the return type of a gcc2
 
5659
   builtin and then its argument prototype would still apply.  */
 
5660
char sqrt ();
 
5661
int
 
5662
main ()
 
5663
{
 
5664
sqrt ();
 
5665
  ;
 
5666
  return 0;
 
5667
}
 
5668
_ACEOF
 
5669
rm -f conftest.$ac_objext conftest$ac_exeext
 
5670
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
5671
  (eval $ac_link) 2>conftest.er1
 
5672
  ac_status=$?
 
5673
  grep -v '^ *+' conftest.er1 >conftest.err
 
5674
  rm -f conftest.er1
 
5675
  cat conftest.err >&5
 
5676
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5677
  (exit $ac_status); } &&
 
5678
         { ac_try='test -z "$ac_c_werror_flag"
 
5679
                         || test ! -s conftest.err'
 
5680
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5681
  (eval $ac_try) 2>&5
 
5682
  ac_status=$?
 
5683
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5684
  (exit $ac_status); }; } &&
 
5685
         { ac_try='test -s conftest$ac_exeext'
 
5686
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5687
  (eval $ac_try) 2>&5
 
5688
  ac_status=$?
 
5689
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5690
  (exit $ac_status); }; }; then
 
5691
  ac_cv_lib_m_sqrt=yes
 
5692
else
 
5693
  echo "$as_me: failed program was:" >&5
 
5694
sed 's/^/| /' conftest.$ac_ext >&5
 
5695
 
 
5696
ac_cv_lib_m_sqrt=no
 
5697
fi
 
5698
rm -f conftest.err conftest.$ac_objext \
 
5699
      conftest$ac_exeext conftest.$ac_ext
 
5700
LIBS=$ac_check_lib_save_LIBS
 
5701
fi
 
5702
echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
 
5703
echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6
 
5704
if test $ac_cv_lib_m_sqrt = yes; then
 
5705
  cat >>confdefs.h <<_ACEOF
 
5706
#define HAVE_LIBM 1
 
5707
_ACEOF
 
5708
 
 
5709
  LIBS="-lm $LIBS"
 
5710
 
 
5711
fi
 
5712
 
 
5713
 
 
5714
echo "$as_me:$LINENO: checking for powf in -lmx" >&5
 
5715
echo $ECHO_N "checking for powf in -lmx... $ECHO_C" >&6
 
5716
if test "${ac_cv_lib_mx_powf+set}" = set; then
 
5717
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5718
else
 
5719
  ac_check_lib_save_LIBS=$LIBS
 
5720
LIBS="-lmx  $LIBS"
 
5721
cat >conftest.$ac_ext <<_ACEOF
 
5722
/* confdefs.h.  */
 
5723
_ACEOF
 
5724
cat confdefs.h >>conftest.$ac_ext
 
5725
cat >>conftest.$ac_ext <<_ACEOF
 
5726
/* end confdefs.h.  */
 
5727
 
 
5728
/* Override any gcc2 internal prototype to avoid an error.  */
 
5729
#ifdef __cplusplus
 
5730
extern "C"
 
5731
#endif
 
5732
/* We use char because int might match the return type of a gcc2
 
5733
   builtin and then its argument prototype would still apply.  */
 
5734
char powf ();
 
5735
int
 
5736
main ()
 
5737
{
 
5738
powf ();
 
5739
  ;
 
5740
  return 0;
 
5741
}
 
5742
_ACEOF
 
5743
rm -f conftest.$ac_objext conftest$ac_exeext
 
5744
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
5745
  (eval $ac_link) 2>conftest.er1
 
5746
  ac_status=$?
 
5747
  grep -v '^ *+' conftest.er1 >conftest.err
 
5748
  rm -f conftest.er1
 
5749
  cat conftest.err >&5
 
5750
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5751
  (exit $ac_status); } &&
 
5752
         { ac_try='test -z "$ac_c_werror_flag"
 
5753
                         || test ! -s conftest.err'
 
5754
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5755
  (eval $ac_try) 2>&5
 
5756
  ac_status=$?
 
5757
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5758
  (exit $ac_status); }; } &&
 
5759
         { ac_try='test -s conftest$ac_exeext'
 
5760
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5761
  (eval $ac_try) 2>&5
 
5762
  ac_status=$?
 
5763
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5764
  (exit $ac_status); }; }; then
 
5765
  ac_cv_lib_mx_powf=yes
 
5766
else
 
5767
  echo "$as_me: failed program was:" >&5
 
5768
sed 's/^/| /' conftest.$ac_ext >&5
 
5769
 
 
5770
ac_cv_lib_mx_powf=no
 
5771
fi
 
5772
rm -f conftest.err conftest.$ac_objext \
 
5773
      conftest$ac_exeext conftest.$ac_ext
 
5774
LIBS=$ac_check_lib_save_LIBS
 
5775
fi
 
5776
echo "$as_me:$LINENO: result: $ac_cv_lib_mx_powf" >&5
 
5777
echo "${ECHO_T}$ac_cv_lib_mx_powf" >&6
 
5778
if test $ac_cv_lib_mx_powf = yes; then
 
5779
  cat >>confdefs.h <<_ACEOF
 
5780
#define HAVE_LIBMX 1
 
5781
_ACEOF
 
5782
 
 
5783
  LIBS="-lmx $LIBS"
 
5784
 
 
5785
fi
 
5786
 
 
5787
 
 
5788
# Check for JACK
 
5789
 
 
5790
  succeeded=no
 
5791
 
 
5792
  if test -z "$PKG_CONFIG"; then
 
5793
    # Extract the first word of "pkg-config", so it can be a program name with args.
 
5794
set dummy pkg-config; ac_word=$2
 
5795
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5796
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
5797
if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
 
5798
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5799
else
 
5800
  case $PKG_CONFIG in
 
5801
  [\\/]* | ?:[\\/]*)
 
5802
  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
 
5803
  ;;
 
5804
  *)
 
5805
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5806
for as_dir in $PATH
 
5807
do
 
5808
  IFS=$as_save_IFS
 
5809
  test -z "$as_dir" && as_dir=.
 
5810
  for ac_exec_ext in '' $ac_executable_extensions; do
 
5811
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
5812
    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
 
5813
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5814
    break 2
 
5815
  fi
 
5816
done
 
5817
done
 
5818
 
 
5819
  test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
 
5820
  ;;
 
5821
esac
 
5822
fi
 
5823
PKG_CONFIG=$ac_cv_path_PKG_CONFIG
 
5824
 
 
5825
if test -n "$PKG_CONFIG"; then
 
5826
  echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
 
5827
echo "${ECHO_T}$PKG_CONFIG" >&6
 
5828
else
 
5829
  echo "$as_me:$LINENO: result: no" >&5
 
5830
echo "${ECHO_T}no" >&6
 
5831
fi
 
5832
 
 
5833
  fi
 
5834
 
 
5835
  if test "$PKG_CONFIG" = "no" ; then
 
5836
     echo "*** The pkg-config script could not be found. Make sure it is"
 
5837
     echo "*** in your path, or set the PKG_CONFIG environment variable"
 
5838
     echo "*** to the full path to pkg-config."
 
5839
     echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
 
5840
  else
 
5841
     PKG_CONFIG_MIN_VERSION=0.9.0
 
5842
     if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
 
5843
        echo "$as_me:$LINENO: checking for jack" >&5
 
5844
echo $ECHO_N "checking for jack... $ECHO_C" >&6
 
5845
 
 
5846
        if $PKG_CONFIG --exists "jack" ; then
 
5847
            echo "$as_me:$LINENO: result: yes" >&5
 
5848
echo "${ECHO_T}yes" >&6
 
5849
            succeeded=yes
 
5850
 
 
5851
            echo "$as_me:$LINENO: checking JACK_CFLAGS" >&5
 
5852
echo $ECHO_N "checking JACK_CFLAGS... $ECHO_C" >&6
 
5853
            JACK_CFLAGS=`$PKG_CONFIG --cflags "jack"`
 
5854
            echo "$as_me:$LINENO: result: $JACK_CFLAGS" >&5
 
5855
echo "${ECHO_T}$JACK_CFLAGS" >&6
 
5856
 
 
5857
            echo "$as_me:$LINENO: checking JACK_LIBS" >&5
 
5858
echo $ECHO_N "checking JACK_LIBS... $ECHO_C" >&6
 
5859
            JACK_LIBS=`$PKG_CONFIG --libs "jack"`
 
5860
            echo "$as_me:$LINENO: result: $JACK_LIBS" >&5
 
5861
echo "${ECHO_T}$JACK_LIBS" >&6
 
5862
        else
 
5863
            JACK_CFLAGS=""
 
5864
            JACK_LIBS=""
 
5865
            ## If we have a custom action on failure, don't print errors, but
 
5866
            ## do set a variable so people can do so.
 
5867
            JACK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "jack"`
 
5868
 
 
5869
        fi
 
5870
 
 
5871
 
 
5872
 
 
5873
     else
 
5874
        echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
 
5875
        echo "*** See http://www.freedesktop.org/software/pkgconfig"
 
5876
     fi
 
5877
  fi
 
5878
 
 
5879
  if test $succeeded = yes; then
 
5880
     HAVE_JACK=yes
 
5881
  else
 
5882
     HAVE_JACK=no
 
5883
  fi
 
5884
 
 
5885
 
 
5886
# Check for EsounD
 
5887
 
 
5888
  succeeded=no
 
5889
 
 
5890
  if test -z "$PKG_CONFIG"; then
 
5891
    # Extract the first word of "pkg-config", so it can be a program name with args.
 
5892
set dummy pkg-config; ac_word=$2
 
5893
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5894
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
5895
if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
 
5896
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5897
else
 
5898
  case $PKG_CONFIG in
 
5899
  [\\/]* | ?:[\\/]*)
 
5900
  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
 
5901
  ;;
 
5902
  *)
 
5903
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5904
for as_dir in $PATH
 
5905
do
 
5906
  IFS=$as_save_IFS
 
5907
  test -z "$as_dir" && as_dir=.
 
5908
  for ac_exec_ext in '' $ac_executable_extensions; do
 
5909
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
5910
    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
 
5911
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5912
    break 2
 
5913
  fi
 
5914
done
 
5915
done
 
5916
 
 
5917
  test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
 
5918
  ;;
 
5919
esac
 
5920
fi
 
5921
PKG_CONFIG=$ac_cv_path_PKG_CONFIG
 
5922
 
 
5923
if test -n "$PKG_CONFIG"; then
 
5924
  echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
 
5925
echo "${ECHO_T}$PKG_CONFIG" >&6
 
5926
else
 
5927
  echo "$as_me:$LINENO: result: no" >&5
 
5928
echo "${ECHO_T}no" >&6
 
5929
fi
 
5930
 
 
5931
  fi
 
5932
 
 
5933
  if test "$PKG_CONFIG" = "no" ; then
 
5934
     echo "*** The pkg-config script could not be found. Make sure it is"
 
5935
     echo "*** in your path, or set the PKG_CONFIG environment variable"
 
5936
     echo "*** to the full path to pkg-config."
 
5937
     echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
 
5938
  else
 
5939
     PKG_CONFIG_MIN_VERSION=0.9.0
 
5940
     if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
 
5941
        echo "$as_me:$LINENO: checking for esound" >&5
 
5942
echo $ECHO_N "checking for esound... $ECHO_C" >&6
 
5943
 
 
5944
        if $PKG_CONFIG --exists "esound" ; then
 
5945
            echo "$as_me:$LINENO: result: yes" >&5
 
5946
echo "${ECHO_T}yes" >&6
 
5947
            succeeded=yes
 
5948
 
 
5949
            echo "$as_me:$LINENO: checking ESOUND_CFLAGS" >&5
 
5950
echo $ECHO_N "checking ESOUND_CFLAGS... $ECHO_C" >&6
 
5951
            ESOUND_CFLAGS=`$PKG_CONFIG --cflags "esound"`
 
5952
            echo "$as_me:$LINENO: result: $ESOUND_CFLAGS" >&5
 
5953
echo "${ECHO_T}$ESOUND_CFLAGS" >&6
 
5954
 
 
5955
            echo "$as_me:$LINENO: checking ESOUND_LIBS" >&5
 
5956
echo $ECHO_N "checking ESOUND_LIBS... $ECHO_C" >&6
 
5957
            ESOUND_LIBS=`$PKG_CONFIG --libs "esound"`
 
5958
            echo "$as_me:$LINENO: result: $ESOUND_LIBS" >&5
 
5959
echo "${ECHO_T}$ESOUND_LIBS" >&6
 
5960
        else
 
5961
            ESOUND_CFLAGS=""
 
5962
            ESOUND_LIBS=""
 
5963
            ## If we have a custom action on failure, don't print errors, but
 
5964
            ## do set a variable so people can do so.
 
5965
            ESOUND_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "esound"`
 
5966
 
 
5967
        fi
 
5968
 
 
5969
 
 
5970
 
 
5971
     else
 
5972
        echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
 
5973
        echo "*** See http://www.freedesktop.org/software/pkgconfig"
 
5974
     fi
 
5975
  fi
 
5976
 
 
5977
  if test $succeeded = yes; then
 
5978
     HAVE_ESOUND=yes
 
5979
  else
 
5980
     HAVE_ESOUND=no
 
5981
  fi
 
5982
 
 
5983
 
 
5984
# Check for SDL
 
5985
 
 
5986
  succeeded=no
 
5987
 
 
5988
  if test -z "$PKG_CONFIG"; then
 
5989
    # Extract the first word of "pkg-config", so it can be a program name with args.
 
5990
set dummy pkg-config; ac_word=$2
 
5991
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5992
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
5993
if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
 
5994
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5995
else
 
5996
  case $PKG_CONFIG in
 
5997
  [\\/]* | ?:[\\/]*)
 
5998
  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
 
5999
  ;;
 
6000
  *)
 
6001
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6002
for as_dir in $PATH
 
6003
do
 
6004
  IFS=$as_save_IFS
 
6005
  test -z "$as_dir" && as_dir=.
 
6006
  for ac_exec_ext in '' $ac_executable_extensions; do
 
6007
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
6008
    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
 
6009
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6010
    break 2
 
6011
  fi
 
6012
done
 
6013
done
 
6014
 
 
6015
  test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
 
6016
  ;;
 
6017
esac
 
6018
fi
 
6019
PKG_CONFIG=$ac_cv_path_PKG_CONFIG
 
6020
 
 
6021
if test -n "$PKG_CONFIG"; then
 
6022
  echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
 
6023
echo "${ECHO_T}$PKG_CONFIG" >&6
 
6024
else
 
6025
  echo "$as_me:$LINENO: result: no" >&5
 
6026
echo "${ECHO_T}no" >&6
 
6027
fi
 
6028
 
 
6029
  fi
 
6030
 
 
6031
  if test "$PKG_CONFIG" = "no" ; then
 
6032
     echo "*** The pkg-config script could not be found. Make sure it is"
 
6033
     echo "*** in your path, or set the PKG_CONFIG environment variable"
 
6034
     echo "*** to the full path to pkg-config."
 
6035
     echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
 
6036
  else
 
6037
     PKG_CONFIG_MIN_VERSION=0.9.0
 
6038
     if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
 
6039
        echo "$as_me:$LINENO: checking for sdl" >&5
 
6040
echo $ECHO_N "checking for sdl... $ECHO_C" >&6
 
6041
 
 
6042
        if $PKG_CONFIG --exists "sdl" ; then
 
6043
            echo "$as_me:$LINENO: result: yes" >&5
 
6044
echo "${ECHO_T}yes" >&6
 
6045
            succeeded=yes
 
6046
 
 
6047
            echo "$as_me:$LINENO: checking SDL_CFLAGS" >&5
 
6048
echo $ECHO_N "checking SDL_CFLAGS... $ECHO_C" >&6
 
6049
            SDL_CFLAGS=`$PKG_CONFIG --cflags "sdl"`
 
6050
            echo "$as_me:$LINENO: result: $SDL_CFLAGS" >&5
 
6051
echo "${ECHO_T}$SDL_CFLAGS" >&6
 
6052
 
 
6053
            echo "$as_me:$LINENO: checking SDL_LIBS" >&5
 
6054
echo $ECHO_N "checking SDL_LIBS... $ECHO_C" >&6
 
6055
            SDL_LIBS=`$PKG_CONFIG --libs "sdl"`
 
6056
            echo "$as_me:$LINENO: result: $SDL_LIBS" >&5
 
6057
echo "${ECHO_T}$SDL_LIBS" >&6
 
6058
        else
 
6059
            SDL_CFLAGS=""
 
6060
            SDL_LIBS=""
 
6061
            ## If we have a custom action on failure, don't print errors, but
 
6062
            ## do set a variable so people can do so.
 
6063
            SDL_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "sdl"`
 
6064
 
 
6065
        fi
 
6066
 
 
6067
 
 
6068
 
 
6069
     else
 
6070
        echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
 
6071
        echo "*** See http://www.freedesktop.org/software/pkgconfig"
 
6072
     fi
 
6073
  fi
 
6074
 
 
6075
  if test $succeeded = yes; then
 
6076
     HAVE_SDL=yes
 
6077
  else
 
6078
     HAVE_SDL=no
 
6079
  fi
 
6080
 
 
6081
 
 
6082
# Check for NAS
 
6083
echo "$as_me:$LINENO: checking for AuOpenServer in -laudio" >&5
 
6084
echo $ECHO_N "checking for AuOpenServer in -laudio... $ECHO_C" >&6
 
6085
if test "${ac_cv_lib_audio_AuOpenServer+set}" = set; then
 
6086
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6087
else
 
6088
  ac_check_lib_save_LIBS=$LIBS
 
6089
LIBS="-laudio  $LIBS"
 
6090
cat >conftest.$ac_ext <<_ACEOF
 
6091
/* confdefs.h.  */
 
6092
_ACEOF
 
6093
cat confdefs.h >>conftest.$ac_ext
 
6094
cat >>conftest.$ac_ext <<_ACEOF
 
6095
/* end confdefs.h.  */
 
6096
 
 
6097
/* Override any gcc2 internal prototype to avoid an error.  */
 
6098
#ifdef __cplusplus
 
6099
extern "C"
 
6100
#endif
 
6101
/* We use char because int might match the return type of a gcc2
 
6102
   builtin and then its argument prototype would still apply.  */
 
6103
char AuOpenServer ();
 
6104
int
 
6105
main ()
 
6106
{
 
6107
AuOpenServer ();
 
6108
  ;
 
6109
  return 0;
 
6110
}
 
6111
_ACEOF
 
6112
rm -f conftest.$ac_objext conftest$ac_exeext
 
6113
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
6114
  (eval $ac_link) 2>conftest.er1
 
6115
  ac_status=$?
 
6116
  grep -v '^ *+' conftest.er1 >conftest.err
 
6117
  rm -f conftest.er1
 
6118
  cat conftest.err >&5
 
6119
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6120
  (exit $ac_status); } &&
 
6121
         { ac_try='test -z "$ac_c_werror_flag"
 
6122
                         || test ! -s conftest.err'
 
6123
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6124
  (eval $ac_try) 2>&5
 
6125
  ac_status=$?
 
6126
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6127
  (exit $ac_status); }; } &&
 
6128
         { ac_try='test -s conftest$ac_exeext'
 
6129
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6130
  (eval $ac_try) 2>&5
 
6131
  ac_status=$?
 
6132
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6133
  (exit $ac_status); }; }; then
 
6134
  ac_cv_lib_audio_AuOpenServer=yes
 
6135
else
 
6136
  echo "$as_me: failed program was:" >&5
 
6137
sed 's/^/| /' conftest.$ac_ext >&5
 
6138
 
 
6139
ac_cv_lib_audio_AuOpenServer=no
 
6140
fi
 
6141
rm -f conftest.err conftest.$ac_objext \
 
6142
      conftest$ac_exeext conftest.$ac_ext
 
6143
LIBS=$ac_check_lib_save_LIBS
 
6144
fi
 
6145
echo "$as_me:$LINENO: result: $ac_cv_lib_audio_AuOpenServer" >&5
 
6146
echo "${ECHO_T}$ac_cv_lib_audio_AuOpenServer" >&6
 
6147
if test $ac_cv_lib_audio_AuOpenServer = yes; then
 
6148
   if test "${ac_cv_header_audio_audiolib_h+set}" = set; then
 
6149
  echo "$as_me:$LINENO: checking for audio/audiolib.h" >&5
 
6150
echo $ECHO_N "checking for audio/audiolib.h... $ECHO_C" >&6
 
6151
if test "${ac_cv_header_audio_audiolib_h+set}" = set; then
 
6152
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6153
fi
 
6154
echo "$as_me:$LINENO: result: $ac_cv_header_audio_audiolib_h" >&5
 
6155
echo "${ECHO_T}$ac_cv_header_audio_audiolib_h" >&6
 
6156
else
 
6157
  # Is the header compilable?
 
6158
echo "$as_me:$LINENO: checking audio/audiolib.h usability" >&5
 
6159
echo $ECHO_N "checking audio/audiolib.h usability... $ECHO_C" >&6
 
6160
cat >conftest.$ac_ext <<_ACEOF
 
6161
/* confdefs.h.  */
 
6162
_ACEOF
 
6163
cat confdefs.h >>conftest.$ac_ext
 
6164
cat >>conftest.$ac_ext <<_ACEOF
 
6165
/* end confdefs.h.  */
 
6166
$ac_includes_default
 
6167
#include <audio/audiolib.h>
 
6168
_ACEOF
 
6169
rm -f conftest.$ac_objext
 
6170
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
6171
  (eval $ac_compile) 2>conftest.er1
 
6172
  ac_status=$?
 
6173
  grep -v '^ *+' conftest.er1 >conftest.err
 
6174
  rm -f conftest.er1
 
6175
  cat conftest.err >&5
 
6176
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6177
  (exit $ac_status); } &&
 
6178
         { ac_try='test -z "$ac_c_werror_flag"
 
6179
                         || test ! -s conftest.err'
 
6180
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6181
  (eval $ac_try) 2>&5
 
6182
  ac_status=$?
 
6183
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6184
  (exit $ac_status); }; } &&
 
6185
         { ac_try='test -s conftest.$ac_objext'
 
6186
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6187
  (eval $ac_try) 2>&5
 
6188
  ac_status=$?
 
6189
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6190
  (exit $ac_status); }; }; then
 
6191
  ac_header_compiler=yes
 
6192
else
 
6193
  echo "$as_me: failed program was:" >&5
 
6194
sed 's/^/| /' conftest.$ac_ext >&5
 
6195
 
 
6196
ac_header_compiler=no
 
6197
fi
 
6198
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
6199
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
6200
echo "${ECHO_T}$ac_header_compiler" >&6
 
6201
 
 
6202
# Is the header present?
 
6203
echo "$as_me:$LINENO: checking audio/audiolib.h presence" >&5
 
6204
echo $ECHO_N "checking audio/audiolib.h presence... $ECHO_C" >&6
 
6205
cat >conftest.$ac_ext <<_ACEOF
 
6206
/* confdefs.h.  */
 
6207
_ACEOF
 
6208
cat confdefs.h >>conftest.$ac_ext
 
6209
cat >>conftest.$ac_ext <<_ACEOF
 
6210
/* end confdefs.h.  */
 
6211
#include <audio/audiolib.h>
 
6212
_ACEOF
 
6213
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
6214
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
6215
  ac_status=$?
 
6216
  grep -v '^ *+' conftest.er1 >conftest.err
 
6217
  rm -f conftest.er1
 
6218
  cat conftest.err >&5
 
6219
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6220
  (exit $ac_status); } >/dev/null; then
 
6221
  if test -s conftest.err; then
 
6222
    ac_cpp_err=$ac_c_preproc_warn_flag
 
6223
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
6224
  else
 
6225
    ac_cpp_err=
 
6226
  fi
 
6227
else
 
6228
  ac_cpp_err=yes
 
6229
fi
 
6230
if test -z "$ac_cpp_err"; then
 
6231
  ac_header_preproc=yes
 
6232
else
 
6233
  echo "$as_me: failed program was:" >&5
 
6234
sed 's/^/| /' conftest.$ac_ext >&5
 
6235
 
 
6236
  ac_header_preproc=no
 
6237
fi
 
6238
rm -f conftest.err conftest.$ac_ext
 
6239
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
6240
echo "${ECHO_T}$ac_header_preproc" >&6
 
6241
 
 
6242
# So?  What about this header?
 
6243
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
6244
  yes:no: )
 
6245
    { echo "$as_me:$LINENO: WARNING: audio/audiolib.h: accepted by the compiler, rejected by the preprocessor!" >&5
 
6246
echo "$as_me: WARNING: audio/audiolib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
6247
    { echo "$as_me:$LINENO: WARNING: audio/audiolib.h: proceeding with the compiler's result" >&5
 
6248
echo "$as_me: WARNING: audio/audiolib.h: proceeding with the compiler's result" >&2;}
 
6249
    ac_header_preproc=yes
 
6250
    ;;
 
6251
  no:yes:* )
 
6252
    { echo "$as_me:$LINENO: WARNING: audio/audiolib.h: present but cannot be compiled" >&5
 
6253
echo "$as_me: WARNING: audio/audiolib.h: present but cannot be compiled" >&2;}
 
6254
    { echo "$as_me:$LINENO: WARNING: audio/audiolib.h:     check for missing prerequisite headers?" >&5
 
6255
echo "$as_me: WARNING: audio/audiolib.h:     check for missing prerequisite headers?" >&2;}
 
6256
    { echo "$as_me:$LINENO: WARNING: audio/audiolib.h: see the Autoconf documentation" >&5
 
6257
echo "$as_me: WARNING: audio/audiolib.h: see the Autoconf documentation" >&2;}
 
6258
    { echo "$as_me:$LINENO: WARNING: audio/audiolib.h:     section \"Present But Cannot Be Compiled\"" >&5
 
6259
echo "$as_me: WARNING: audio/audiolib.h:     section \"Present But Cannot Be Compiled\"" >&2;}
 
6260
    { echo "$as_me:$LINENO: WARNING: audio/audiolib.h: proceeding with the preprocessor's result" >&5
 
6261
echo "$as_me: WARNING: audio/audiolib.h: proceeding with the preprocessor's result" >&2;}
 
6262
    { echo "$as_me:$LINENO: WARNING: audio/audiolib.h: in the future, the compiler will take precedence" >&5
 
6263
echo "$as_me: WARNING: audio/audiolib.h: in the future, the compiler will take precedence" >&2;}
 
6264
    (
 
6265
      cat <<\_ASBOX
 
6266
## ------------------------------------------------- ##
 
6267
## Report this to mpg123-devel@lists.sourceforge.net ##
 
6268
## ------------------------------------------------- ##
 
6269
_ASBOX
 
6270
    ) |
 
6271
      sed "s/^/$as_me: WARNING:     /" >&2
 
6272
    ;;
 
6273
esac
 
6274
echo "$as_me:$LINENO: checking for audio/audiolib.h" >&5
 
6275
echo $ECHO_N "checking for audio/audiolib.h... $ECHO_C" >&6
 
6276
if test "${ac_cv_header_audio_audiolib_h+set}" = set; then
 
6277
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6278
else
 
6279
  ac_cv_header_audio_audiolib_h=$ac_header_preproc
 
6280
fi
 
6281
echo "$as_me:$LINENO: result: $ac_cv_header_audio_audiolib_h" >&5
 
6282
echo "${ECHO_T}$ac_cv_header_audio_audiolib_h" >&6
 
6283
 
 
6284
fi
 
6285
if test $ac_cv_header_audio_audiolib_h = yes; then
 
6286
   HAVE_NAS="yes"
 
6287
else
 
6288
   { echo "$as_me:$LINENO: WARNING: Found NAS library but NOT header files on your system" >&5
 
6289
echo "$as_me: WARNING: Found NAS library but NOT header files on your system" >&2;}
 
6290
fi
 
6291
 
 
6292
 
 
6293
 
 
6294
 
 
6295
fi
 
6296
 
 
6297
 
 
6298
# Check for PortAudio
 
6299
echo "$as_me:$LINENO: checking for Pa_Initialize in -lportaudio" >&5
 
6300
echo $ECHO_N "checking for Pa_Initialize in -lportaudio... $ECHO_C" >&6
 
6301
if test "${ac_cv_lib_portaudio_Pa_Initialize+set}" = set; then
 
6302
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6303
else
 
6304
  ac_check_lib_save_LIBS=$LIBS
 
6305
LIBS="-lportaudio  $LIBS"
 
6306
cat >conftest.$ac_ext <<_ACEOF
 
6307
/* confdefs.h.  */
 
6308
_ACEOF
 
6309
cat confdefs.h >>conftest.$ac_ext
 
6310
cat >>conftest.$ac_ext <<_ACEOF
 
6311
/* end confdefs.h.  */
 
6312
 
 
6313
/* Override any gcc2 internal prototype to avoid an error.  */
 
6314
#ifdef __cplusplus
 
6315
extern "C"
 
6316
#endif
 
6317
/* We use char because int might match the return type of a gcc2
 
6318
   builtin and then its argument prototype would still apply.  */
 
6319
char Pa_Initialize ();
 
6320
int
 
6321
main ()
 
6322
{
 
6323
Pa_Initialize ();
 
6324
  ;
 
6325
  return 0;
 
6326
}
 
6327
_ACEOF
 
6328
rm -f conftest.$ac_objext conftest$ac_exeext
 
6329
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
6330
  (eval $ac_link) 2>conftest.er1
 
6331
  ac_status=$?
 
6332
  grep -v '^ *+' conftest.er1 >conftest.err
 
6333
  rm -f conftest.er1
 
6334
  cat conftest.err >&5
 
6335
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6336
  (exit $ac_status); } &&
 
6337
         { ac_try='test -z "$ac_c_werror_flag"
 
6338
                         || test ! -s conftest.err'
 
6339
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6340
  (eval $ac_try) 2>&5
 
6341
  ac_status=$?
 
6342
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6343
  (exit $ac_status); }; } &&
 
6344
         { ac_try='test -s conftest$ac_exeext'
 
6345
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6346
  (eval $ac_try) 2>&5
 
6347
  ac_status=$?
 
6348
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6349
  (exit $ac_status); }; }; then
 
6350
  ac_cv_lib_portaudio_Pa_Initialize=yes
 
6351
else
 
6352
  echo "$as_me: failed program was:" >&5
 
6353
sed 's/^/| /' conftest.$ac_ext >&5
 
6354
 
 
6355
ac_cv_lib_portaudio_Pa_Initialize=no
 
6356
fi
 
6357
rm -f conftest.err conftest.$ac_objext \
 
6358
      conftest$ac_exeext conftest.$ac_ext
 
6359
LIBS=$ac_check_lib_save_LIBS
 
6360
fi
 
6361
echo "$as_me:$LINENO: result: $ac_cv_lib_portaudio_Pa_Initialize" >&5
 
6362
echo "${ECHO_T}$ac_cv_lib_portaudio_Pa_Initialize" >&6
 
6363
if test $ac_cv_lib_portaudio_Pa_Initialize = yes; then
 
6364
   if test "${ac_cv_header_portaudio_h+set}" = set; then
 
6365
  echo "$as_me:$LINENO: checking for portaudio.h" >&5
 
6366
echo $ECHO_N "checking for portaudio.h... $ECHO_C" >&6
 
6367
if test "${ac_cv_header_portaudio_h+set}" = set; then
 
6368
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6369
fi
 
6370
echo "$as_me:$LINENO: result: $ac_cv_header_portaudio_h" >&5
 
6371
echo "${ECHO_T}$ac_cv_header_portaudio_h" >&6
 
6372
else
 
6373
  # Is the header compilable?
 
6374
echo "$as_me:$LINENO: checking portaudio.h usability" >&5
 
6375
echo $ECHO_N "checking portaudio.h usability... $ECHO_C" >&6
 
6376
cat >conftest.$ac_ext <<_ACEOF
 
6377
/* confdefs.h.  */
 
6378
_ACEOF
 
6379
cat confdefs.h >>conftest.$ac_ext
 
6380
cat >>conftest.$ac_ext <<_ACEOF
 
6381
/* end confdefs.h.  */
 
6382
$ac_includes_default
 
6383
#include <portaudio.h>
 
6384
_ACEOF
 
6385
rm -f conftest.$ac_objext
 
6386
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
6387
  (eval $ac_compile) 2>conftest.er1
 
6388
  ac_status=$?
 
6389
  grep -v '^ *+' conftest.er1 >conftest.err
 
6390
  rm -f conftest.er1
 
6391
  cat conftest.err >&5
 
6392
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6393
  (exit $ac_status); } &&
 
6394
         { ac_try='test -z "$ac_c_werror_flag"
 
6395
                         || test ! -s conftest.err'
 
6396
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6397
  (eval $ac_try) 2>&5
 
6398
  ac_status=$?
 
6399
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6400
  (exit $ac_status); }; } &&
 
6401
         { ac_try='test -s conftest.$ac_objext'
 
6402
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6403
  (eval $ac_try) 2>&5
 
6404
  ac_status=$?
 
6405
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6406
  (exit $ac_status); }; }; then
 
6407
  ac_header_compiler=yes
 
6408
else
 
6409
  echo "$as_me: failed program was:" >&5
 
6410
sed 's/^/| /' conftest.$ac_ext >&5
 
6411
 
 
6412
ac_header_compiler=no
 
6413
fi
 
6414
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
6415
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
6416
echo "${ECHO_T}$ac_header_compiler" >&6
 
6417
 
 
6418
# Is the header present?
 
6419
echo "$as_me:$LINENO: checking portaudio.h presence" >&5
 
6420
echo $ECHO_N "checking portaudio.h presence... $ECHO_C" >&6
 
6421
cat >conftest.$ac_ext <<_ACEOF
 
6422
/* confdefs.h.  */
 
6423
_ACEOF
 
6424
cat confdefs.h >>conftest.$ac_ext
 
6425
cat >>conftest.$ac_ext <<_ACEOF
 
6426
/* end confdefs.h.  */
 
6427
#include <portaudio.h>
 
6428
_ACEOF
 
6429
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
6430
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
6431
  ac_status=$?
 
6432
  grep -v '^ *+' conftest.er1 >conftest.err
 
6433
  rm -f conftest.er1
 
6434
  cat conftest.err >&5
 
6435
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6436
  (exit $ac_status); } >/dev/null; then
 
6437
  if test -s conftest.err; then
 
6438
    ac_cpp_err=$ac_c_preproc_warn_flag
 
6439
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
6440
  else
 
6441
    ac_cpp_err=
 
6442
  fi
 
6443
else
 
6444
  ac_cpp_err=yes
 
6445
fi
 
6446
if test -z "$ac_cpp_err"; then
 
6447
  ac_header_preproc=yes
 
6448
else
 
6449
  echo "$as_me: failed program was:" >&5
 
6450
sed 's/^/| /' conftest.$ac_ext >&5
 
6451
 
 
6452
  ac_header_preproc=no
 
6453
fi
 
6454
rm -f conftest.err conftest.$ac_ext
 
6455
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
6456
echo "${ECHO_T}$ac_header_preproc" >&6
 
6457
 
 
6458
# So?  What about this header?
 
6459
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
6460
  yes:no: )
 
6461
    { echo "$as_me:$LINENO: WARNING: portaudio.h: accepted by the compiler, rejected by the preprocessor!" >&5
 
6462
echo "$as_me: WARNING: portaudio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
6463
    { echo "$as_me:$LINENO: WARNING: portaudio.h: proceeding with the compiler's result" >&5
 
6464
echo "$as_me: WARNING: portaudio.h: proceeding with the compiler's result" >&2;}
 
6465
    ac_header_preproc=yes
 
6466
    ;;
 
6467
  no:yes:* )
 
6468
    { echo "$as_me:$LINENO: WARNING: portaudio.h: present but cannot be compiled" >&5
 
6469
echo "$as_me: WARNING: portaudio.h: present but cannot be compiled" >&2;}
 
6470
    { echo "$as_me:$LINENO: WARNING: portaudio.h:     check for missing prerequisite headers?" >&5
 
6471
echo "$as_me: WARNING: portaudio.h:     check for missing prerequisite headers?" >&2;}
 
6472
    { echo "$as_me:$LINENO: WARNING: portaudio.h: see the Autoconf documentation" >&5
 
6473
echo "$as_me: WARNING: portaudio.h: see the Autoconf documentation" >&2;}
 
6474
    { echo "$as_me:$LINENO: WARNING: portaudio.h:     section \"Present But Cannot Be Compiled\"" >&5
 
6475
echo "$as_me: WARNING: portaudio.h:     section \"Present But Cannot Be Compiled\"" >&2;}
 
6476
    { echo "$as_me:$LINENO: WARNING: portaudio.h: proceeding with the preprocessor's result" >&5
 
6477
echo "$as_me: WARNING: portaudio.h: proceeding with the preprocessor's result" >&2;}
 
6478
    { echo "$as_me:$LINENO: WARNING: portaudio.h: in the future, the compiler will take precedence" >&5
 
6479
echo "$as_me: WARNING: portaudio.h: in the future, the compiler will take precedence" >&2;}
 
6480
    (
 
6481
      cat <<\_ASBOX
 
6482
## ------------------------------------------------- ##
 
6483
## Report this to mpg123-devel@lists.sourceforge.net ##
 
6484
## ------------------------------------------------- ##
 
6485
_ASBOX
 
6486
    ) |
 
6487
      sed "s/^/$as_me: WARNING:     /" >&2
 
6488
    ;;
 
6489
esac
 
6490
echo "$as_me:$LINENO: checking for portaudio.h" >&5
 
6491
echo $ECHO_N "checking for portaudio.h... $ECHO_C" >&6
 
6492
if test "${ac_cv_header_portaudio_h+set}" = set; then
 
6493
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6494
else
 
6495
  ac_cv_header_portaudio_h=$ac_header_preproc
 
6496
fi
 
6497
echo "$as_me:$LINENO: result: $ac_cv_header_portaudio_h" >&5
 
6498
echo "${ECHO_T}$ac_cv_header_portaudio_h" >&6
 
6499
 
 
6500
fi
 
6501
if test $ac_cv_header_portaudio_h = yes; then
 
6502
   HAVE_PORTAUDIO="yes"
 
6503
else
 
6504
   { echo "$as_me:$LINENO: WARNING: Found PortAudio library but NOT header files on your system" >&5
 
6505
echo "$as_me: WARNING: Found PortAudio library but NOT header files on your system" >&2;}
 
6506
fi
 
6507
 
 
6508
 
 
6509
 
 
6510
 
 
6511
fi
 
6512
 
 
6513
 
 
6514
# Check for ALSA
 
6515
echo "$as_me:$LINENO: checking for snd_pcm_open in -lasound" >&5
 
6516
echo $ECHO_N "checking for snd_pcm_open in -lasound... $ECHO_C" >&6
 
6517
if test "${ac_cv_lib_asound_snd_pcm_open+set}" = set; then
 
6518
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6519
else
 
6520
  ac_check_lib_save_LIBS=$LIBS
 
6521
LIBS="-lasound  $LIBS"
 
6522
cat >conftest.$ac_ext <<_ACEOF
 
6523
/* confdefs.h.  */
 
6524
_ACEOF
 
6525
cat confdefs.h >>conftest.$ac_ext
 
6526
cat >>conftest.$ac_ext <<_ACEOF
 
6527
/* end confdefs.h.  */
 
6528
 
 
6529
/* Override any gcc2 internal prototype to avoid an error.  */
 
6530
#ifdef __cplusplus
 
6531
extern "C"
 
6532
#endif
 
6533
/* We use char because int might match the return type of a gcc2
 
6534
   builtin and then its argument prototype would still apply.  */
 
6535
char snd_pcm_open ();
 
6536
int
 
6537
main ()
 
6538
{
 
6539
snd_pcm_open ();
 
6540
  ;
 
6541
  return 0;
 
6542
}
 
6543
_ACEOF
 
6544
rm -f conftest.$ac_objext conftest$ac_exeext
 
6545
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
6546
  (eval $ac_link) 2>conftest.er1
 
6547
  ac_status=$?
 
6548
  grep -v '^ *+' conftest.er1 >conftest.err
 
6549
  rm -f conftest.er1
 
6550
  cat conftest.err >&5
 
6551
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6552
  (exit $ac_status); } &&
 
6553
         { ac_try='test -z "$ac_c_werror_flag"
 
6554
                         || test ! -s conftest.err'
 
6555
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6556
  (eval $ac_try) 2>&5
 
6557
  ac_status=$?
 
6558
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6559
  (exit $ac_status); }; } &&
 
6560
         { ac_try='test -s conftest$ac_exeext'
 
6561
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6562
  (eval $ac_try) 2>&5
 
6563
  ac_status=$?
 
6564
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6565
  (exit $ac_status); }; }; then
 
6566
  ac_cv_lib_asound_snd_pcm_open=yes
 
6567
else
 
6568
  echo "$as_me: failed program was:" >&5
 
6569
sed 's/^/| /' conftest.$ac_ext >&5
 
6570
 
 
6571
ac_cv_lib_asound_snd_pcm_open=no
 
6572
fi
 
6573
rm -f conftest.err conftest.$ac_objext \
 
6574
      conftest$ac_exeext conftest.$ac_ext
 
6575
LIBS=$ac_check_lib_save_LIBS
 
6576
fi
 
6577
echo "$as_me:$LINENO: result: $ac_cv_lib_asound_snd_pcm_open" >&5
 
6578
echo "${ECHO_T}$ac_cv_lib_asound_snd_pcm_open" >&6
 
6579
if test $ac_cv_lib_asound_snd_pcm_open = yes; then
 
6580
   if test "${ac_cv_header_alsa_asoundlib_h+set}" = set; then
 
6581
  echo "$as_me:$LINENO: checking for alsa/asoundlib.h" >&5
 
6582
echo $ECHO_N "checking for alsa/asoundlib.h... $ECHO_C" >&6
 
6583
if test "${ac_cv_header_alsa_asoundlib_h+set}" = set; then
 
6584
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6585
fi
 
6586
echo "$as_me:$LINENO: result: $ac_cv_header_alsa_asoundlib_h" >&5
 
6587
echo "${ECHO_T}$ac_cv_header_alsa_asoundlib_h" >&6
 
6588
else
 
6589
  # Is the header compilable?
 
6590
echo "$as_me:$LINENO: checking alsa/asoundlib.h usability" >&5
 
6591
echo $ECHO_N "checking alsa/asoundlib.h usability... $ECHO_C" >&6
 
6592
cat >conftest.$ac_ext <<_ACEOF
 
6593
/* confdefs.h.  */
 
6594
_ACEOF
 
6595
cat confdefs.h >>conftest.$ac_ext
 
6596
cat >>conftest.$ac_ext <<_ACEOF
 
6597
/* end confdefs.h.  */
 
6598
$ac_includes_default
 
6599
#include <alsa/asoundlib.h>
 
6600
_ACEOF
 
6601
rm -f conftest.$ac_objext
 
6602
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
6603
  (eval $ac_compile) 2>conftest.er1
 
6604
  ac_status=$?
 
6605
  grep -v '^ *+' conftest.er1 >conftest.err
 
6606
  rm -f conftest.er1
 
6607
  cat conftest.err >&5
 
6608
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6609
  (exit $ac_status); } &&
 
6610
         { ac_try='test -z "$ac_c_werror_flag"
 
6611
                         || test ! -s conftest.err'
 
6612
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6613
  (eval $ac_try) 2>&5
 
6614
  ac_status=$?
 
6615
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6616
  (exit $ac_status); }; } &&
 
6617
         { ac_try='test -s conftest.$ac_objext'
 
6618
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6619
  (eval $ac_try) 2>&5
 
6620
  ac_status=$?
 
6621
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6622
  (exit $ac_status); }; }; then
 
6623
  ac_header_compiler=yes
 
6624
else
 
6625
  echo "$as_me: failed program was:" >&5
 
6626
sed 's/^/| /' conftest.$ac_ext >&5
 
6627
 
 
6628
ac_header_compiler=no
 
6629
fi
 
6630
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
6631
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
6632
echo "${ECHO_T}$ac_header_compiler" >&6
 
6633
 
 
6634
# Is the header present?
 
6635
echo "$as_me:$LINENO: checking alsa/asoundlib.h presence" >&5
 
6636
echo $ECHO_N "checking alsa/asoundlib.h presence... $ECHO_C" >&6
 
6637
cat >conftest.$ac_ext <<_ACEOF
 
6638
/* confdefs.h.  */
 
6639
_ACEOF
 
6640
cat confdefs.h >>conftest.$ac_ext
 
6641
cat >>conftest.$ac_ext <<_ACEOF
 
6642
/* end confdefs.h.  */
 
6643
#include <alsa/asoundlib.h>
 
6644
_ACEOF
 
6645
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
6646
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
6647
  ac_status=$?
 
6648
  grep -v '^ *+' conftest.er1 >conftest.err
 
6649
  rm -f conftest.er1
 
6650
  cat conftest.err >&5
 
6651
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6652
  (exit $ac_status); } >/dev/null; then
 
6653
  if test -s conftest.err; then
 
6654
    ac_cpp_err=$ac_c_preproc_warn_flag
 
6655
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
6656
  else
 
6657
    ac_cpp_err=
 
6658
  fi
 
6659
else
 
6660
  ac_cpp_err=yes
 
6661
fi
 
6662
if test -z "$ac_cpp_err"; then
 
6663
  ac_header_preproc=yes
 
6664
else
 
6665
  echo "$as_me: failed program was:" >&5
 
6666
sed 's/^/| /' conftest.$ac_ext >&5
 
6667
 
 
6668
  ac_header_preproc=no
 
6669
fi
 
6670
rm -f conftest.err conftest.$ac_ext
 
6671
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
6672
echo "${ECHO_T}$ac_header_preproc" >&6
 
6673
 
 
6674
# So?  What about this header?
 
6675
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
6676
  yes:no: )
 
6677
    { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
 
6678
echo "$as_me: WARNING: alsa/asoundlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
6679
    { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: proceeding with the compiler's result" >&5
 
6680
echo "$as_me: WARNING: alsa/asoundlib.h: proceeding with the compiler's result" >&2;}
 
6681
    ac_header_preproc=yes
 
6682
    ;;
 
6683
  no:yes:* )
 
6684
    { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: present but cannot be compiled" >&5
 
6685
echo "$as_me: WARNING: alsa/asoundlib.h: present but cannot be compiled" >&2;}
 
6686
    { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h:     check for missing prerequisite headers?" >&5
 
6687
echo "$as_me: WARNING: alsa/asoundlib.h:     check for missing prerequisite headers?" >&2;}
 
6688
    { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: see the Autoconf documentation" >&5
 
6689
echo "$as_me: WARNING: alsa/asoundlib.h: see the Autoconf documentation" >&2;}
 
6690
    { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h:     section \"Present But Cannot Be Compiled\"" >&5
 
6691
echo "$as_me: WARNING: alsa/asoundlib.h:     section \"Present But Cannot Be Compiled\"" >&2;}
 
6692
    { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: proceeding with the preprocessor's result" >&5
 
6693
echo "$as_me: WARNING: alsa/asoundlib.h: proceeding with the preprocessor's result" >&2;}
 
6694
    { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: in the future, the compiler will take precedence" >&5
 
6695
echo "$as_me: WARNING: alsa/asoundlib.h: in the future, the compiler will take precedence" >&2;}
 
6696
    (
 
6697
      cat <<\_ASBOX
 
6698
## ------------------------------------------------- ##
 
6699
## Report this to mpg123-devel@lists.sourceforge.net ##
 
6700
## ------------------------------------------------- ##
 
6701
_ASBOX
 
6702
    ) |
 
6703
      sed "s/^/$as_me: WARNING:     /" >&2
 
6704
    ;;
 
6705
esac
 
6706
echo "$as_me:$LINENO: checking for alsa/asoundlib.h" >&5
 
6707
echo $ECHO_N "checking for alsa/asoundlib.h... $ECHO_C" >&6
 
6708
if test "${ac_cv_header_alsa_asoundlib_h+set}" = set; then
 
6709
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6710
else
 
6711
  ac_cv_header_alsa_asoundlib_h=$ac_header_preproc
 
6712
fi
 
6713
echo "$as_me:$LINENO: result: $ac_cv_header_alsa_asoundlib_h" >&5
 
6714
echo "${ECHO_T}$ac_cv_header_alsa_asoundlib_h" >&6
 
6715
 
 
6716
fi
 
6717
if test $ac_cv_header_alsa_asoundlib_h = yes; then
 
6718
   HAVE_ALSA="yes"
 
6719
else
 
6720
   { echo "$as_me:$LINENO: WARNING: Found ALSA library but NOT header files on your system" >&5
 
6721
echo "$as_me: WARNING: Found ALSA library but NOT header files on your system" >&2;}
 
6722
fi
 
6723
 
 
6724
 
 
6725
 
 
6726
 
 
6727
fi
 
6728
 
 
6729
 
 
6730
 
 
6731
 
 
6732
echo "$as_me:$LINENO: checking for ANSI C header files" >&5
 
6733
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
 
6734
if test "${ac_cv_header_stdc+set}" = set; then
 
6735
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6736
else
 
6737
  cat >conftest.$ac_ext <<_ACEOF
 
6738
/* confdefs.h.  */
 
6739
_ACEOF
 
6740
cat confdefs.h >>conftest.$ac_ext
 
6741
cat >>conftest.$ac_ext <<_ACEOF
 
6742
/* end confdefs.h.  */
 
6743
#include <stdlib.h>
 
6744
#include <stdarg.h>
 
6745
#include <string.h>
 
6746
#include <float.h>
 
6747
 
 
6748
int
 
6749
main ()
 
6750
{
 
6751
 
 
6752
  ;
 
6753
  return 0;
 
6754
}
 
6755
_ACEOF
 
6756
rm -f conftest.$ac_objext
 
6757
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
6758
  (eval $ac_compile) 2>conftest.er1
 
6759
  ac_status=$?
 
6760
  grep -v '^ *+' conftest.er1 >conftest.err
 
6761
  rm -f conftest.er1
 
6762
  cat conftest.err >&5
 
6763
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6764
  (exit $ac_status); } &&
 
6765
         { ac_try='test -z "$ac_c_werror_flag"
 
6766
                         || test ! -s conftest.err'
 
6767
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6768
  (eval $ac_try) 2>&5
 
6769
  ac_status=$?
 
6770
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6771
  (exit $ac_status); }; } &&
 
6772
         { ac_try='test -s conftest.$ac_objext'
 
6773
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6774
  (eval $ac_try) 2>&5
 
6775
  ac_status=$?
 
6776
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6777
  (exit $ac_status); }; }; then
 
6778
  ac_cv_header_stdc=yes
 
6779
else
 
6780
  echo "$as_me: failed program was:" >&5
 
6781
sed 's/^/| /' conftest.$ac_ext >&5
 
6782
 
 
6783
ac_cv_header_stdc=no
 
6784
fi
 
6785
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
6786
 
 
6787
if test $ac_cv_header_stdc = yes; then
 
6788
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
 
6789
  cat >conftest.$ac_ext <<_ACEOF
 
6790
/* confdefs.h.  */
 
6791
_ACEOF
 
6792
cat confdefs.h >>conftest.$ac_ext
 
6793
cat >>conftest.$ac_ext <<_ACEOF
 
6794
/* end confdefs.h.  */
 
6795
#include <string.h>
 
6796
 
 
6797
_ACEOF
 
6798
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
6799
  $EGREP "memchr" >/dev/null 2>&1; then
 
6800
  :
 
6801
else
 
6802
  ac_cv_header_stdc=no
 
6803
fi
 
6804
rm -f conftest*
 
6805
 
 
6806
fi
 
6807
 
 
6808
if test $ac_cv_header_stdc = yes; then
 
6809
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
 
6810
  cat >conftest.$ac_ext <<_ACEOF
 
6811
/* confdefs.h.  */
 
6812
_ACEOF
 
6813
cat confdefs.h >>conftest.$ac_ext
 
6814
cat >>conftest.$ac_ext <<_ACEOF
 
6815
/* end confdefs.h.  */
 
6816
#include <stdlib.h>
 
6817
 
 
6818
_ACEOF
 
6819
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
6820
  $EGREP "free" >/dev/null 2>&1; then
 
6821
  :
 
6822
else
 
6823
  ac_cv_header_stdc=no
 
6824
fi
 
6825
rm -f conftest*
 
6826
 
 
6827
fi
 
6828
 
 
6829
if test $ac_cv_header_stdc = yes; then
 
6830
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
 
6831
  if test "$cross_compiling" = yes; then
 
6832
  :
 
6833
else
 
6834
  cat >conftest.$ac_ext <<_ACEOF
 
6835
/* confdefs.h.  */
 
6836
_ACEOF
 
6837
cat confdefs.h >>conftest.$ac_ext
 
6838
cat >>conftest.$ac_ext <<_ACEOF
 
6839
/* end confdefs.h.  */
 
6840
#include <ctype.h>
 
6841
#if ((' ' & 0x0FF) == 0x020)
 
6842
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
 
6843
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
 
6844
#else
 
6845
# define ISLOWER(c) \
 
6846
                   (('a' <= (c) && (c) <= 'i') \
 
6847
                     || ('j' <= (c) && (c) <= 'r') \
 
6848
                     || ('s' <= (c) && (c) <= 'z'))
 
6849
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
 
6850
#endif
 
6851
 
 
6852
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
 
6853
int
 
6854
main ()
 
6855
{
 
6856
  int i;
 
6857
  for (i = 0; i < 256; i++)
 
6858
    if (XOR (islower (i), ISLOWER (i))
 
6859
        || toupper (i) != TOUPPER (i))
 
6860
      exit(2);
 
6861
  exit (0);
 
6862
}
 
6863
_ACEOF
 
6864
rm -f conftest$ac_exeext
 
6865
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
6866
  (eval $ac_link) 2>&5
 
6867
  ac_status=$?
 
6868
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6869
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
6870
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6871
  (eval $ac_try) 2>&5
 
6872
  ac_status=$?
 
6873
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6874
  (exit $ac_status); }; }; then
 
6875
  :
 
6876
else
 
6877
  echo "$as_me: program exited with status $ac_status" >&5
 
6878
echo "$as_me: failed program was:" >&5
 
6879
sed 's/^/| /' conftest.$ac_ext >&5
 
6880
 
 
6881
( exit $ac_status )
 
6882
ac_cv_header_stdc=no
 
6883
fi
 
6884
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
6885
fi
 
6886
fi
 
6887
fi
 
6888
echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
 
6889
echo "${ECHO_T}$ac_cv_header_stdc" >&6
 
6890
if test $ac_cv_header_stdc = yes; then
 
6891
 
 
6892
cat >>confdefs.h <<\_ACEOF
 
6893
#define STDC_HEADERS 1
 
6894
_ACEOF
 
6895
 
 
6896
fi
 
6897
 
 
6898
 
 
6899
 
 
6900
 
 
6901
 
 
6902
 
 
6903
 
 
6904
 
 
6905
for ac_header in stdlib.h string.h unistd.h sched.h sys/ioctl.h stdint.h limits.h
 
6906
do
 
6907
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
6908
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
6909
  echo "$as_me:$LINENO: checking for $ac_header" >&5
 
6910
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
6911
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
6912
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6913
fi
 
6914
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
6915
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
6916
else
 
6917
  # Is the header compilable?
 
6918
echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
6919
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
6920
cat >conftest.$ac_ext <<_ACEOF
 
6921
/* confdefs.h.  */
 
6922
_ACEOF
 
6923
cat confdefs.h >>conftest.$ac_ext
 
6924
cat >>conftest.$ac_ext <<_ACEOF
 
6925
/* end confdefs.h.  */
 
6926
$ac_includes_default
 
6927
#include <$ac_header>
 
6928
_ACEOF
 
6929
rm -f conftest.$ac_objext
 
6930
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
6931
  (eval $ac_compile) 2>conftest.er1
 
6932
  ac_status=$?
 
6933
  grep -v '^ *+' conftest.er1 >conftest.err
 
6934
  rm -f conftest.er1
 
6935
  cat conftest.err >&5
 
6936
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6937
  (exit $ac_status); } &&
 
6938
         { ac_try='test -z "$ac_c_werror_flag"
 
6939
                         || test ! -s conftest.err'
 
6940
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6941
  (eval $ac_try) 2>&5
 
6942
  ac_status=$?
 
6943
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6944
  (exit $ac_status); }; } &&
 
6945
         { ac_try='test -s conftest.$ac_objext'
 
6946
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6947
  (eval $ac_try) 2>&5
 
6948
  ac_status=$?
 
6949
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6950
  (exit $ac_status); }; }; then
 
6951
  ac_header_compiler=yes
 
6952
else
 
6953
  echo "$as_me: failed program was:" >&5
 
6954
sed 's/^/| /' conftest.$ac_ext >&5
 
6955
 
 
6956
ac_header_compiler=no
 
6957
fi
 
6958
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
6959
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
6960
echo "${ECHO_T}$ac_header_compiler" >&6
 
6961
 
 
6962
# Is the header present?
 
6963
echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
6964
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
6965
cat >conftest.$ac_ext <<_ACEOF
 
6966
/* confdefs.h.  */
 
6967
_ACEOF
 
6968
cat confdefs.h >>conftest.$ac_ext
 
6969
cat >>conftest.$ac_ext <<_ACEOF
 
6970
/* end confdefs.h.  */
 
6971
#include <$ac_header>
 
6972
_ACEOF
 
6973
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
6974
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
6975
  ac_status=$?
 
6976
  grep -v '^ *+' conftest.er1 >conftest.err
 
6977
  rm -f conftest.er1
 
6978
  cat conftest.err >&5
 
6979
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6980
  (exit $ac_status); } >/dev/null; then
 
6981
  if test -s conftest.err; then
 
6982
    ac_cpp_err=$ac_c_preproc_warn_flag
 
6983
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
6984
  else
 
6985
    ac_cpp_err=
 
6986
  fi
 
6987
else
 
6988
  ac_cpp_err=yes
 
6989
fi
 
6990
if test -z "$ac_cpp_err"; then
 
6991
  ac_header_preproc=yes
 
6992
else
 
6993
  echo "$as_me: failed program was:" >&5
 
6994
sed 's/^/| /' conftest.$ac_ext >&5
 
6995
 
 
6996
  ac_header_preproc=no
 
6997
fi
 
6998
rm -f conftest.err conftest.$ac_ext
 
6999
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
7000
echo "${ECHO_T}$ac_header_preproc" >&6
 
7001
 
 
7002
# So?  What about this header?
 
7003
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
7004
  yes:no: )
 
7005
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
7006
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
7007
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
7008
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
7009
    ac_header_preproc=yes
 
7010
    ;;
 
7011
  no:yes:* )
 
7012
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
7013
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
7014
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
7015
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
7016
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
7017
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
7018
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
7019
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
7020
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
7021
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
7022
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
7023
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
7024
    (
 
7025
      cat <<\_ASBOX
 
7026
## ------------------------------------------------- ##
 
7027
## Report this to mpg123-devel@lists.sourceforge.net ##
 
7028
## ------------------------------------------------- ##
 
7029
_ASBOX
 
7030
    ) |
 
7031
      sed "s/^/$as_me: WARNING:     /" >&2
 
7032
    ;;
 
7033
esac
 
7034
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
7035
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
7036
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
7037
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7038
else
 
7039
  eval "$as_ac_Header=\$ac_header_preproc"
 
7040
fi
 
7041
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
7042
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
7043
 
 
7044
fi
 
7045
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
7046
  cat >>confdefs.h <<_ACEOF
 
7047
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
7048
_ACEOF
 
7049
 
 
7050
fi
 
7051
 
 
7052
done
 
7053
 
 
7054
 
 
7055
 
 
7056
# OSS Header files
 
7057
 
 
7058
 
 
7059
 
 
7060
for ac_header in sys/soundcard.h linux/soundcard.h machine/soundcard.h
 
7061
do
 
7062
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
7063
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
7064
  echo "$as_me:$LINENO: checking for $ac_header" >&5
 
7065
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
7066
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
7067
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7068
fi
 
7069
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
7070
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
7071
else
 
7072
  # Is the header compilable?
 
7073
echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
7074
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
7075
cat >conftest.$ac_ext <<_ACEOF
 
7076
/* confdefs.h.  */
 
7077
_ACEOF
 
7078
cat confdefs.h >>conftest.$ac_ext
 
7079
cat >>conftest.$ac_ext <<_ACEOF
 
7080
/* end confdefs.h.  */
 
7081
$ac_includes_default
 
7082
#include <$ac_header>
 
7083
_ACEOF
 
7084
rm -f conftest.$ac_objext
 
7085
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
7086
  (eval $ac_compile) 2>conftest.er1
 
7087
  ac_status=$?
 
7088
  grep -v '^ *+' conftest.er1 >conftest.err
 
7089
  rm -f conftest.er1
 
7090
  cat conftest.err >&5
 
7091
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7092
  (exit $ac_status); } &&
 
7093
         { ac_try='test -z "$ac_c_werror_flag"
 
7094
                         || test ! -s conftest.err'
 
7095
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7096
  (eval $ac_try) 2>&5
 
7097
  ac_status=$?
 
7098
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7099
  (exit $ac_status); }; } &&
 
7100
         { ac_try='test -s conftest.$ac_objext'
 
7101
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7102
  (eval $ac_try) 2>&5
 
7103
  ac_status=$?
 
7104
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7105
  (exit $ac_status); }; }; then
 
7106
  ac_header_compiler=yes
 
7107
else
 
7108
  echo "$as_me: failed program was:" >&5
 
7109
sed 's/^/| /' conftest.$ac_ext >&5
 
7110
 
 
7111
ac_header_compiler=no
 
7112
fi
 
7113
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
7114
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
7115
echo "${ECHO_T}$ac_header_compiler" >&6
 
7116
 
 
7117
# Is the header present?
 
7118
echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
7119
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
7120
cat >conftest.$ac_ext <<_ACEOF
 
7121
/* confdefs.h.  */
 
7122
_ACEOF
 
7123
cat confdefs.h >>conftest.$ac_ext
 
7124
cat >>conftest.$ac_ext <<_ACEOF
 
7125
/* end confdefs.h.  */
 
7126
#include <$ac_header>
 
7127
_ACEOF
 
7128
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
7129
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
7130
  ac_status=$?
 
7131
  grep -v '^ *+' conftest.er1 >conftest.err
 
7132
  rm -f conftest.er1
 
7133
  cat conftest.err >&5
 
7134
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7135
  (exit $ac_status); } >/dev/null; then
 
7136
  if test -s conftest.err; then
 
7137
    ac_cpp_err=$ac_c_preproc_warn_flag
 
7138
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
7139
  else
 
7140
    ac_cpp_err=
 
7141
  fi
 
7142
else
 
7143
  ac_cpp_err=yes
 
7144
fi
 
7145
if test -z "$ac_cpp_err"; then
 
7146
  ac_header_preproc=yes
 
7147
else
 
7148
  echo "$as_me: failed program was:" >&5
 
7149
sed 's/^/| /' conftest.$ac_ext >&5
 
7150
 
 
7151
  ac_header_preproc=no
 
7152
fi
 
7153
rm -f conftest.err conftest.$ac_ext
 
7154
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
7155
echo "${ECHO_T}$ac_header_preproc" >&6
 
7156
 
 
7157
# So?  What about this header?
 
7158
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
7159
  yes:no: )
 
7160
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
7161
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
7162
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
7163
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
7164
    ac_header_preproc=yes
 
7165
    ;;
 
7166
  no:yes:* )
 
7167
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
7168
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
7169
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
7170
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
7171
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
7172
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
7173
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
7174
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
7175
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
7176
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
7177
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
7178
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
7179
    (
 
7180
      cat <<\_ASBOX
 
7181
## ------------------------------------------------- ##
 
7182
## Report this to mpg123-devel@lists.sourceforge.net ##
 
7183
## ------------------------------------------------- ##
 
7184
_ASBOX
 
7185
    ) |
 
7186
      sed "s/^/$as_me: WARNING:     /" >&2
 
7187
    ;;
 
7188
esac
 
7189
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
7190
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
7191
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
7192
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7193
else
 
7194
  eval "$as_ac_Header=\$ac_header_preproc"
 
7195
fi
 
7196
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
7197
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
7198
 
 
7199
fi
 
7200
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
7201
  cat >>confdefs.h <<_ACEOF
 
7202
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
7203
_ACEOF
 
7204
 
 
7205
fi
 
7206
 
 
7207
done
 
7208
 
 
7209
 
 
7210
# Sun Audio headers
 
7211
 
 
7212
 
 
7213
 
 
7214
 
 
7215
for ac_header in sun/audioio.h sys/audioio.h asm/audioio.h sys/audio.h
 
7216
do
 
7217
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
7218
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
7219
  echo "$as_me:$LINENO: checking for $ac_header" >&5
 
7220
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
7221
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
7222
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7223
fi
 
7224
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
7225
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
7226
else
 
7227
  # Is the header compilable?
 
7228
echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
7229
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
7230
cat >conftest.$ac_ext <<_ACEOF
 
7231
/* confdefs.h.  */
 
7232
_ACEOF
 
7233
cat confdefs.h >>conftest.$ac_ext
 
7234
cat >>conftest.$ac_ext <<_ACEOF
 
7235
/* end confdefs.h.  */
 
7236
$ac_includes_default
 
7237
#include <$ac_header>
 
7238
_ACEOF
 
7239
rm -f conftest.$ac_objext
 
7240
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
7241
  (eval $ac_compile) 2>conftest.er1
 
7242
  ac_status=$?
 
7243
  grep -v '^ *+' conftest.er1 >conftest.err
 
7244
  rm -f conftest.er1
 
7245
  cat conftest.err >&5
 
7246
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7247
  (exit $ac_status); } &&
 
7248
         { ac_try='test -z "$ac_c_werror_flag"
 
7249
                         || test ! -s conftest.err'
 
7250
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7251
  (eval $ac_try) 2>&5
 
7252
  ac_status=$?
 
7253
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7254
  (exit $ac_status); }; } &&
 
7255
         { ac_try='test -s conftest.$ac_objext'
 
7256
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7257
  (eval $ac_try) 2>&5
 
7258
  ac_status=$?
 
7259
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7260
  (exit $ac_status); }; }; then
 
7261
  ac_header_compiler=yes
 
7262
else
 
7263
  echo "$as_me: failed program was:" >&5
 
7264
sed 's/^/| /' conftest.$ac_ext >&5
 
7265
 
 
7266
ac_header_compiler=no
 
7267
fi
 
7268
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
7269
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
7270
echo "${ECHO_T}$ac_header_compiler" >&6
 
7271
 
 
7272
# Is the header present?
 
7273
echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
7274
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
7275
cat >conftest.$ac_ext <<_ACEOF
 
7276
/* confdefs.h.  */
 
7277
_ACEOF
 
7278
cat confdefs.h >>conftest.$ac_ext
 
7279
cat >>conftest.$ac_ext <<_ACEOF
 
7280
/* end confdefs.h.  */
 
7281
#include <$ac_header>
 
7282
_ACEOF
 
7283
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
7284
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
7285
  ac_status=$?
 
7286
  grep -v '^ *+' conftest.er1 >conftest.err
 
7287
  rm -f conftest.er1
 
7288
  cat conftest.err >&5
 
7289
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7290
  (exit $ac_status); } >/dev/null; then
 
7291
  if test -s conftest.err; then
 
7292
    ac_cpp_err=$ac_c_preproc_warn_flag
 
7293
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
7294
  else
 
7295
    ac_cpp_err=
 
7296
  fi
 
7297
else
 
7298
  ac_cpp_err=yes
 
7299
fi
 
7300
if test -z "$ac_cpp_err"; then
 
7301
  ac_header_preproc=yes
 
7302
else
 
7303
  echo "$as_me: failed program was:" >&5
 
7304
sed 's/^/| /' conftest.$ac_ext >&5
 
7305
 
 
7306
  ac_header_preproc=no
 
7307
fi
 
7308
rm -f conftest.err conftest.$ac_ext
 
7309
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
7310
echo "${ECHO_T}$ac_header_preproc" >&6
 
7311
 
 
7312
# So?  What about this header?
 
7313
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
7314
  yes:no: )
 
7315
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
7316
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
7317
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
7318
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
7319
    ac_header_preproc=yes
 
7320
    ;;
 
7321
  no:yes:* )
 
7322
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
7323
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
7324
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
7325
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
7326
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
7327
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
7328
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
7329
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
7330
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
7331
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
7332
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
7333
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
7334
    (
 
7335
      cat <<\_ASBOX
 
7336
## ------------------------------------------------- ##
 
7337
## Report this to mpg123-devel@lists.sourceforge.net ##
 
7338
## ------------------------------------------------- ##
 
7339
_ASBOX
 
7340
    ) |
 
7341
      sed "s/^/$as_me: WARNING:     /" >&2
 
7342
    ;;
 
7343
esac
 
7344
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
7345
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
7346
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
7347
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7348
else
 
7349
  eval "$as_ac_Header=\$ac_header_preproc"
 
7350
fi
 
7351
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
7352
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
7353
 
 
7354
fi
 
7355
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
7356
  cat >>confdefs.h <<_ACEOF
 
7357
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
7358
_ACEOF
 
7359
 
 
7360
fi
 
7361
 
 
7362
done
 
7363
 
 
7364
 
 
7365
# Mac OS X
 
7366
 
 
7367
for ac_header in CoreAudio/CoreAudio.h
 
7368
do
 
7369
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
7370
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
7371
  echo "$as_me:$LINENO: checking for $ac_header" >&5
 
7372
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
7373
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
7374
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7375
fi
 
7376
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
7377
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
7378
else
 
7379
  # Is the header compilable?
 
7380
echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
7381
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
7382
cat >conftest.$ac_ext <<_ACEOF
 
7383
/* confdefs.h.  */
 
7384
_ACEOF
 
7385
cat confdefs.h >>conftest.$ac_ext
 
7386
cat >>conftest.$ac_ext <<_ACEOF
 
7387
/* end confdefs.h.  */
 
7388
$ac_includes_default
 
7389
#include <$ac_header>
 
7390
_ACEOF
 
7391
rm -f conftest.$ac_objext
 
7392
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
7393
  (eval $ac_compile) 2>conftest.er1
 
7394
  ac_status=$?
 
7395
  grep -v '^ *+' conftest.er1 >conftest.err
 
7396
  rm -f conftest.er1
 
7397
  cat conftest.err >&5
 
7398
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7399
  (exit $ac_status); } &&
 
7400
         { ac_try='test -z "$ac_c_werror_flag"
 
7401
                         || test ! -s conftest.err'
 
7402
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7403
  (eval $ac_try) 2>&5
 
7404
  ac_status=$?
 
7405
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7406
  (exit $ac_status); }; } &&
 
7407
         { ac_try='test -s conftest.$ac_objext'
 
7408
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7409
  (eval $ac_try) 2>&5
 
7410
  ac_status=$?
 
7411
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7412
  (exit $ac_status); }; }; then
 
7413
  ac_header_compiler=yes
 
7414
else
 
7415
  echo "$as_me: failed program was:" >&5
 
7416
sed 's/^/| /' conftest.$ac_ext >&5
 
7417
 
 
7418
ac_header_compiler=no
 
7419
fi
 
7420
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
7421
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
7422
echo "${ECHO_T}$ac_header_compiler" >&6
 
7423
 
 
7424
# Is the header present?
 
7425
echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
7426
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
7427
cat >conftest.$ac_ext <<_ACEOF
 
7428
/* confdefs.h.  */
 
7429
_ACEOF
 
7430
cat confdefs.h >>conftest.$ac_ext
 
7431
cat >>conftest.$ac_ext <<_ACEOF
 
7432
/* end confdefs.h.  */
 
7433
#include <$ac_header>
 
7434
_ACEOF
 
7435
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
7436
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
7437
  ac_status=$?
 
7438
  grep -v '^ *+' conftest.er1 >conftest.err
 
7439
  rm -f conftest.er1
 
7440
  cat conftest.err >&5
 
7441
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7442
  (exit $ac_status); } >/dev/null; then
 
7443
  if test -s conftest.err; then
 
7444
    ac_cpp_err=$ac_c_preproc_warn_flag
 
7445
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
7446
  else
 
7447
    ac_cpp_err=
 
7448
  fi
 
7449
else
 
7450
  ac_cpp_err=yes
 
7451
fi
 
7452
if test -z "$ac_cpp_err"; then
 
7453
  ac_header_preproc=yes
 
7454
else
 
7455
  echo "$as_me: failed program was:" >&5
 
7456
sed 's/^/| /' conftest.$ac_ext >&5
 
7457
 
 
7458
  ac_header_preproc=no
 
7459
fi
 
7460
rm -f conftest.err conftest.$ac_ext
 
7461
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
7462
echo "${ECHO_T}$ac_header_preproc" >&6
 
7463
 
 
7464
# So?  What about this header?
 
7465
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
7466
  yes:no: )
 
7467
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
7468
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
7469
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
7470
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
7471
    ac_header_preproc=yes
 
7472
    ;;
 
7473
  no:yes:* )
 
7474
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
7475
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
7476
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
7477
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
7478
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
7479
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
7480
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
7481
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
7482
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
7483
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
7484
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
7485
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
7486
    (
 
7487
      cat <<\_ASBOX
 
7488
## ------------------------------------------------- ##
 
7489
## Report this to mpg123-devel@lists.sourceforge.net ##
 
7490
## ------------------------------------------------- ##
 
7491
_ASBOX
 
7492
    ) |
 
7493
      sed "s/^/$as_me: WARNING:     /" >&2
 
7494
    ;;
 
7495
esac
 
7496
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
7497
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
7498
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
7499
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7500
else
 
7501
  eval "$as_ac_Header=\$ac_header_preproc"
 
7502
fi
 
7503
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
7504
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
7505
 
 
7506
fi
 
7507
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
7508
  cat >>confdefs.h <<_ACEOF
 
7509
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
7510
_ACEOF
 
7511
 HAVE_COREAUDIO=yes
 
7512
else
 
7513
  HAVE_COREAUDIO=no
 
7514
fi
 
7515
 
 
7516
done
 
7517
 
 
7518
 
 
7519
 
 
7520
 
 
7521
 
 
7522
 
 
7523
CFLAGS="$CFLAGS -Wall"
 
7524
LIBS="$LIBS"
 
7525
 
 
7526
# If debugging is enabled then make warnings errors
 
7527
if test "$debugging" = "enabled"; then
 
7528
        CFLAGS="$CFLAGS -g -Werror -pedantic"
 
7529
fi
 
7530
 
 
7531
 
 
7532
case $target in
 
7533
  arm-*-linux*)
 
7534
    cpu_type="generic_nofpu"
 
7535
  ;;
 
7536
  i386-*-linux*)
 
7537
    cpu_type="i386_fpu"
 
7538
  ;;
 
7539
  i486-*-linux*)
 
7540
    cpu_type="i486"
 
7541
  ;;
 
7542
  i586-*-linux*)
 
7543
    cpu_type="i586"
 
7544
  ;;
 
7545
  i686-*-linux*)
 
7546
    cpu_type="mmx"
 
7547
  ;;
 
7548
  *-*-linux*)
 
7549
    cpu_type="generic_fpu"
 
7550
  ;;
 
7551
  *-apple-darwin*)
 
7552
    cpu_type="generic_fpu"
 
7553
  ;;
 
7554
  i386-*-freebsd*)
 
7555
    cpu_type="i386_fpu"
 
7556
  ;;
 
7557
  *-*-freebsd*)
 
7558
    cpu_type="generic_fpu"
 
7559
  ;;
 
7560
  *-sun-solaris*)
 
7561
    cpu_type="generic_fpu"
 
7562
    LIBS="$LIBS -lsocket -lnsl"
 
7563
  ;;
 
7564
  *)
 
7565
        { echo "$as_me:$LINENO: WARNING: Unknown target operating system" >&5
 
7566
echo "$as_me: WARNING: Unknown target operating system" >&2;}
 
7567
    cpu_type="generic_fpu"
 
7568
    CFLAGS="$CFLAGS -DGENERIC"
 
7569
  ;;
 
7570
esac
 
7571
 
 
7572
 
 
7573
if test "x$with_cpu" != "x"; then
 
7574
        cpu_type=$with_cpu
 
7575
fi
 
7576
 
 
7577
 
 
7578
case $cpu_type in
 
7579
  generic)
 
7580
    CFLAGS="$CFLAGS -DREAL_IS_FLOAT"
 
7581
  ;;
 
7582
  generic_fpu)
 
7583
    CFLAGS="$CFLAGS -DREAL_IS_FLOAT"
 
7584
  ;;
 
7585
  generic_nofpu)
 
7586
    CFLAGS="$CFLAGS -DREAL_IS_FIXED"
 
7587
  ;;
 
7588
  altivec)
 
7589
    CFLAGS="$CFLAGS -maltivec -DREAL_IS_FLOAT"
 
7590
  ;;
 
7591
  i386)
 
7592
    CFLAGS="$CFLAGS -march=i386 -DI386_ASSEM -DREAL_IS_FLOAT"
 
7593
  ;;
 
7594
  i386_fpu)
 
7595
    CFLAGS="$CFLAGS -march=i386 -DI386_ASSEM -DREAL_IS_FLOAT"
 
7596
  ;;
 
7597
  i386_nofpu)
 
7598
    CFLAGS="$CFLAGS -march=i386 -DI386_ASSEM -DREAL_IS_FIXED"
 
7599
  ;;
 
7600
  i486)
 
7601
    CFLAGS="$CFLAGS -march=i486 -DI386_ASSEM -DI486_OPT -DREAL_IS_FLOAT"
 
7602
  ;;
 
7603
  i586)
 
7604
    CFLAGS="$CFLAGS -DI386_ASSEM -DPENTIUM_OPT -DREAL_IS_FLOAT"
 
7605
  ;;
 
7606
  i586_dither)
 
7607
    CFLAGS="$CFLAGS -DI386_ASSEM -DPENTIUM_OPT -DREAL_IS_FLOAT"
 
7608
  ;;
 
7609
  3dnow)
 
7610
    CFLAGS="$CFLAGS -DUSE_3DNOW -DI386_ASSEM -DPENTIUM_OPT -DREAL_IS_FLOAT"
 
7611
  ;;
 
7612
  mmx)
 
7613
    CFLAGS="$CFLAGS -DUSE_MMX -DI386_ASSEM -DPENTIUM_OPT -DREAL_IS_FLOAT"
 
7614
  ;;
 
7615
  *)
 
7616
        { { echo "$as_me:$LINENO: error: Unknown CPU type '$cpu_type'" >&5
 
7617
echo "$as_me: error: Unknown CPU type '$cpu_type'" >&2;}
 
7618
   { (exit 1); exit 1; }; }
 
7619
  ;;
 
7620
esac
 
7621
 
 
7622
CPU_TYPE_LIB="libcpu_$cpu_type.a"
 
7623
 
 
7624
 
 
7625
 
 
7626
 
 
7627
 
 
7628
 
 
7629
# None chosen?
 
7630
if test "x$with_optimization" == "x"; then
 
7631
        if test "$debugging" = "enabled"; then
 
7632
                with_optimization="0"
 
7633
        else
 
7634
                with_optimization="2"
 
7635
        fi
 
7636
fi
 
7637
 
 
7638
case $with_optimization in
 
7639
  0)
 
7640
    # No Optimizations
 
7641
    CFLAGS="$CFLAGS"
 
7642
  ;;
 
7643
  1)
 
7644
    CFLAGS="$CFLAGS -O"
 
7645
  ;;
 
7646
  2)
 
7647
    CFLAGS="$CFLAGS -O2"
 
7648
    CFLAGS="$CFLAGS -fomit-frame-pointer -funroll-all-loops"
 
7649
    CFLAGS="$CFLAGS -finline-functions -ffast-math"
 
7650
  ;;
 
7651
  3)
 
7652
    CFLAGS="$CFLAGS -O3"
 
7653
    CFLAGS="$CFLAGS -fomit-frame-pointer -funroll-all-loops"
 
7654
    CFLAGS="$CFLAGS -finline-functions -ffast-math"
 
7655
  ;;
 
7656
  4)
 
7657
    CFLAGS="$CFLAGS -O4"
 
7658
    CFLAGS="$CFLAGS -fomit-frame-pointer -funroll-all-loops"
 
7659
    CFLAGS="$CFLAGS -finline-functions -ffast-math"
 
7660
  ;;
 
7661
  *)
 
7662
        { { echo "$as_me:$LINENO: error: Unknown optimizations level '$with_optimization'" >&5
 
7663
echo "$as_me: error: Unknown optimizations level '$with_optimization'" >&2;}
 
7664
   { (exit 1); exit 1; }; }
 
7665
  ;;
 
7666
esac
 
7667
 
 
7668
 
 
7669
if test "x$with_seektable" == "x"; then
 
7670
        seektable=1000
 
7671
else
 
7672
        seektable=$with_seektable
 
7673
fi
 
7674
 
 
7675
 
 
7676
cat >>confdefs.h <<_ACEOF
 
7677
#define INDEX_SIZE $seektable
 
7678
_ACEOF
 
7679
 
 
7680
 
 
7681
 
 
7682
# Choose audio subsystem based on Operating System
 
7683
case $target in
 
7684
  *-*-linux*)
 
7685
    if test "x$HAVE_ALSA" = "xyes" ; then
 
7686
        audio_system="alsa"
 
7687
    else
 
7688
        audio_system="oss"
 
7689
    fi
 
7690
  ;;
 
7691
  *-*-freebsd*)
 
7692
    audio_system="oss"
 
7693
  ;;
 
7694
  *-apple-darwin*)
 
7695
    audio_system="macosx"
 
7696
  ;;
 
7697
  *-*-sun*)
 
7698
    audio_system="sun"
 
7699
  ;;
 
7700
  *)
 
7701
        audio_system="dummy"
 
7702
  ;;
 
7703
esac
 
7704
 
 
7705
# Did user choose other audio type ?
 
7706
if test "x$with_audio" != "x"; then
 
7707
        audio_system=$with_audio
 
7708
fi
 
7709
 
 
7710
 
 
7711
 
 
7712
AUDIO_OBJ="audio_$audio_system.\$(OBJEXT)"
 
7713
AUDIO_CFLAGS=""
 
7714
AUDIO_LIBS=""
 
7715
 
 
7716
case $audio_system in
 
7717
  aix)
 
7718
    # Currently unsupported in the new build system
 
7719
  ;;
 
7720
  alib)
 
7721
    # Currently unsupported in the new build system
 
7722
    AUDIO_CFLAGS="-I/opt/audio/include"
 
7723
  ;;
 
7724
  alsa)
 
7725
    if test "x$HAVE_ALSA" != "xyes" ; then
 
7726
                { { echo "$as_me:$LINENO: error: ALSA is not available for audio output subsystem. " >&5
 
7727
echo "$as_me: error: ALSA is not available for audio output subsystem. " >&2;}
 
7728
   { (exit 1); exit 1; }; }
 
7729
    fi
 
7730
    AUDIO_CFLAGS=""
 
7731
    AUDIO_LIBS="-lasound"
 
7732
  ;;
 
7733
  dummy)
 
7734
    { echo "$as_me:$LINENO: WARNING: Using dummy audio output. " >&5
 
7735
echo "$as_me: WARNING: Using dummy audio output. " >&2;}
 
7736
  ;;
 
7737
  esd)
 
7738
        if test "x$HAVE_ESD" != "xyes" ; then
 
7739
                { { echo "$as_me:$LINENO: error: ESounD is not available for audio output subsystem. " >&5
 
7740
echo "$as_me: error: ESounD is not available for audio output subsystem. " >&2;}
 
7741
   { (exit 1); exit 1; }; }
 
7742
        fi
 
7743
    AUDIO_CFLAGS=$ESOUND_CFLAGS
 
7744
    AUDIO_LIBS=$ESOUND_LIBS
 
7745
  ;;
 
7746
  hp)
 
7747
    # Currently unsupported in the new build system
 
7748
        AUDIO_CFLAGS="-I/opt/audio/include"
 
7749
        AUDIO_LIBS="-L/opt/audio/lib -lAlib"
 
7750
  ;;
 
7751
  jack)
 
7752
        if test "x$HAVE_JACK" != "xyes" ; then
 
7753
                { { echo "$as_me:$LINENO: error: JACK is not available for audio output subsystem. " >&5
 
7754
echo "$as_me: error: JACK is not available for audio output subsystem. " >&2;}
 
7755
   { (exit 1); exit 1; }; }
 
7756
        fi
 
7757
    AUDIO_CFLAGS=$JACK_CFLAGS
 
7758
    AUDIO_LIBS=$JACK_LIBS
 
7759
  ;;
 
7760
  macosx)
 
7761
        if test "x$HAVE_COREAUDIO" != "xyes" ; then
 
7762
                { { echo "$as_me:$LINENO: error: Can't find Mac OS X's CoreAudio header files " >&5
 
7763
echo "$as_me: error: Can't find Mac OS X's CoreAudio header files " >&2;}
 
7764
   { (exit 1); exit 1; }; }
 
7765
        fi
 
7766
        AUDIO_LIBS="-framework CoreAudio"
 
7767
  ;;
 
7768
  mint)
 
7769
    # Currently unsupported in the new build system
 
7770
  ;;
 
7771
  nas)
 
7772
        if test "x$HAVE_NAS" != "xyes" ; then
 
7773
                { { echo "$as_me:$LINENO: error: NAS (Network Audio System) is not available. " >&5
 
7774
echo "$as_me: error: NAS (Network Audio System) is not available. " >&2;}
 
7775
   { (exit 1); exit 1; }; }
 
7776
        fi
 
7777
    AUDIO_CFLAGS=""
 
7778
    AUDIO_LIBS="-laudio"
 
7779
  ;;
 
7780
  os2)
 
7781
    # Currently unsupported in the new build system
 
7782
  ;;
 
7783
  oss)
 
7784
    if test "x${ac_cv_header_sys_soundcard_h}" = "xyes" \
 
7785
         -o "x${ac_cv_header_linux_soundcard_h}" = "xyes" \
 
7786
         -o "x${ac_cv_header_machine_soundcard_h}" = "xyes";
 
7787
    then
 
7788
                AUDIO_CFLAGS=""
 
7789
                AUDIO_LIBS=""
 
7790
        else
 
7791
                { { echo "$as_me:$LINENO: error: Can't find OSS header files" >&5
 
7792
echo "$as_me: error: Can't find OSS header files" >&2;}
 
7793
   { (exit 1); exit 1; }; }
 
7794
        fi
 
7795
  ;;
 
7796
  portaudio)
 
7797
        if test "x$HAVE_PORTAUDIO" != "xyes" ; then
 
7798
                { { echo "$as_me:$LINENO: error: PortAudio is not available. " >&5
 
7799
echo "$as_me: error: PortAudio is not available. " >&2;}
 
7800
   { (exit 1); exit 1; }; }
 
7801
        fi
 
7802
    AUDIO_CFLAGS=""
 
7803
    AUDIO_LIBS="-lportaudio"
 
7804
  ;;
 
7805
  sdl)
 
7806
        if test "x$HAVE_SDL" != "xyes" ; then
 
7807
                { { echo "$as_me:$LINENO: error: SDL is not available for audio output subsystem. " >&5
 
7808
echo "$as_me: error: SDL is not available for audio output subsystem. " >&2;}
 
7809
   { (exit 1); exit 1; }; }
 
7810
        fi
 
7811
    AUDIO_CFLAGS=$SDL_CFLAGS
 
7812
    AUDIO_LIBS=$SDL_LIBS
 
7813
  ;;
 
7814
  sgi)
 
7815
    # Currently unsupported in the new build system
 
7816
  ;;
 
7817
  sun)
 
7818
    if test "x${ac_cv_header_sun_audioio_h}" = "xyes" \
 
7819
         -o "x${ac_cv_header_sys_audioio_h}" = "xyes" \
 
7820
         -o "x${ac_cv_header_asm_audioio_h}" = "xyes";
 
7821
    then
 
7822
                AUDIO_CFLAGS=""
 
7823
                AUDIO_LIBS=""
 
7824
        else
 
7825
                { { echo "$as_me:$LINENO: error: Can't find Sun Audio header files" >&5
 
7826
echo "$as_me: error: Can't find Sun Audio header files" >&2;}
 
7827
   { (exit 1); exit 1; }; }
 
7828
        fi
 
7829
  ;;
 
7830
  *)
 
7831
        { { echo "$as_me:$LINENO: error: Unknown Audio sub-system '$audio_system'." >&5
 
7832
echo "$as_me: error: Unknown Audio sub-system '$audio_system'." >&2;}
 
7833
   { (exit 1); exit 1; }; }
 
7834
  ;;
 
7835
esac
 
7836
 
 
7837
 
 
7838
 
 
7839
 
 
7840
 
 
7841
 
 
7842
 
 
7843
 
 
7844
                    ac_config_files="$ac_config_files Makefile src/Makefile"
 
7845
cat >confcache <<\_ACEOF
 
7846
# This file is a shell script that caches the results of configure
 
7847
# tests run on this system so they can be shared between configure
 
7848
# scripts and configure runs, see configure's option --config-cache.
 
7849
# It is not useful on other systems.  If it contains results you don't
 
7850
# want to keep, you may remove or edit it.
 
7851
#
 
7852
# config.status only pays attention to the cache file if you give it
 
7853
# the --recheck option to rerun configure.
 
7854
#
 
7855
# `ac_cv_env_foo' variables (set or unset) will be overridden when
 
7856
# loading this file, other *unset* `ac_cv_foo' will be assigned the
 
7857
# following values.
 
7858
 
 
7859
_ACEOF
 
7860
 
 
7861
# The following way of writing the cache mishandles newlines in values,
 
7862
# but we know of no workaround that is simple, portable, and efficient.
 
7863
# So, don't put newlines in cache variables' values.
 
7864
# Ultrix sh set writes to stderr and can't be redirected directly,
 
7865
# and sets the high bit in the cache file unless we assign to the vars.
 
7866
{
 
7867
  (set) 2>&1 |
 
7868
    case `(ac_space=' '; set | grep ac_space) 2>&1` in
 
7869
    *ac_space=\ *)
 
7870
      # `set' does not quote correctly, so add quotes (double-quote
 
7871
      # substitution turns \\\\ into \\, and sed turns \\ into \).
 
7872
      sed -n \
 
7873
        "s/'/'\\\\''/g;
 
7874
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
 
7875
      ;;
 
7876
    *)
 
7877
      # `set' quotes correctly as required by POSIX, so do not add quotes.
 
7878
      sed -n \
 
7879
        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
 
7880
      ;;
 
7881
    esac;
 
7882
} |
 
7883
  sed '
 
7884
     t clear
 
7885
     : clear
 
7886
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
 
7887
     t end
 
7888
     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
 
7889
     : end' >>confcache
 
7890
if diff $cache_file confcache >/dev/null 2>&1; then :; else
 
7891
  if test -w $cache_file; then
 
7892
    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
 
7893
    cat confcache >$cache_file
 
7894
  else
 
7895
    echo "not updating unwritable cache $cache_file"
 
7896
  fi
 
7897
fi
 
7898
rm -f confcache
 
7899
 
 
7900
test "x$prefix" = xNONE && prefix=$ac_default_prefix
 
7901
# Let make expand exec_prefix.
 
7902
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
 
7903
 
 
7904
# VPATH may cause trouble with some makes, so we remove $(srcdir),
 
7905
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
 
7906
# trailing colons and then remove the whole line if VPATH becomes empty
 
7907
# (actually we leave an empty line to preserve line numbers).
 
7908
if test "x$srcdir" = x.; then
 
7909
  ac_vpsub='/^[  ]*VPATH[        ]*=/{
 
7910
s/:*\$(srcdir):*/:/;
 
7911
s/:*\${srcdir}:*/:/;
 
7912
s/:*@srcdir@:*/:/;
 
7913
s/^\([^=]*=[     ]*\):*/\1/;
 
7914
s/:*$//;
 
7915
s/^[^=]*=[       ]*$//;
 
7916
}'
 
7917
fi
 
7918
 
 
7919
DEFS=-DHAVE_CONFIG_H
 
7920
 
 
7921
ac_libobjs=
 
7922
ac_ltlibobjs=
 
7923
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
 
7924
  # 1. Remove the extension, and $U if already installed.
 
7925
  ac_i=`echo "$ac_i" |
 
7926
         sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
 
7927
  # 2. Add them.
 
7928
  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
 
7929
  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
 
7930
done
 
7931
LIBOBJS=$ac_libobjs
 
7932
 
 
7933
LTLIBOBJS=$ac_ltlibobjs
 
7934
 
 
7935
 
 
7936
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
 
7937
  { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
 
7938
Usually this means the macro was only invoked conditionally." >&5
 
7939
echo "$as_me: error: conditional \"AMDEP\" was never defined.
 
7940
Usually this means the macro was only invoked conditionally." >&2;}
 
7941
   { (exit 1); exit 1; }; }
 
7942
fi
 
7943
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
 
7944
  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
 
7945
Usually this means the macro was only invoked conditionally." >&5
 
7946
echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
 
7947
Usually this means the macro was only invoked conditionally." >&2;}
 
7948
   { (exit 1); exit 1; }; }
 
7949
fi
 
7950
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
 
7951
  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
 
7952
Usually this means the macro was only invoked conditionally." >&5
 
7953
echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
 
7954
Usually this means the macro was only invoked conditionally." >&2;}
 
7955
   { (exit 1); exit 1; }; }
 
7956
fi
 
7957
 
 
7958
: ${CONFIG_STATUS=./config.status}
 
7959
ac_clean_files_save=$ac_clean_files
 
7960
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
 
7961
{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
 
7962
echo "$as_me: creating $CONFIG_STATUS" >&6;}
 
7963
cat >$CONFIG_STATUS <<_ACEOF
 
7964
#! $SHELL
 
7965
# Generated by $as_me.
 
7966
# Run this file to recreate the current configuration.
 
7967
# Compiler output produced by configure, useful for debugging
 
7968
# configure, is in config.log if it exists.
 
7969
 
 
7970
debug=false
 
7971
ac_cs_recheck=false
 
7972
ac_cs_silent=false
 
7973
SHELL=\${CONFIG_SHELL-$SHELL}
 
7974
_ACEOF
 
7975
 
 
7976
cat >>$CONFIG_STATUS <<\_ACEOF
 
7977
## --------------------- ##
 
7978
## M4sh Initialization.  ##
 
7979
## --------------------- ##
 
7980
 
 
7981
# Be Bourne compatible
 
7982
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
 
7983
  emulate sh
 
7984
  NULLCMD=:
 
7985
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
 
7986
  # is contrary to our usage.  Disable this feature.
 
7987
  alias -g '${1+"$@"}'='"$@"'
 
7988
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
 
7989
  set -o posix
 
7990
fi
 
7991
DUALCASE=1; export DUALCASE # for MKS sh
 
7992
 
 
7993
# Support unset when possible.
 
7994
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
 
7995
  as_unset=unset
 
7996
else
 
7997
  as_unset=false
 
7998
fi
 
7999
 
 
8000
 
 
8001
# Work around bugs in pre-3.0 UWIN ksh.
 
8002
$as_unset ENV MAIL MAILPATH
 
8003
PS1='$ '
 
8004
PS2='> '
 
8005
PS4='+ '
 
8006
 
 
8007
# NLS nuisances.
 
8008
for as_var in \
 
8009
  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
 
8010
  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
 
8011
  LC_TELEPHONE LC_TIME
 
8012
do
 
8013
  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
 
8014
    eval $as_var=C; export $as_var
 
8015
  else
 
8016
    $as_unset $as_var
 
8017
  fi
 
8018
done
 
8019
 
 
8020
# Required to use basename.
 
8021
if expr a : '\(a\)' >/dev/null 2>&1; then
 
8022
  as_expr=expr
 
8023
else
 
8024
  as_expr=false
 
8025
fi
 
8026
 
 
8027
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
 
8028
  as_basename=basename
 
8029
else
 
8030
  as_basename=false
 
8031
fi
 
8032
 
 
8033
 
 
8034
# Name of the executable.
 
8035
as_me=`$as_basename "$0" ||
 
8036
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
 
8037
         X"$0" : 'X\(//\)$' \| \
 
8038
         X"$0" : 'X\(/\)$' \| \
 
8039
         .     : '\(.\)' 2>/dev/null ||
 
8040
echo X/"$0" |
 
8041
    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
 
8042
          /^X\/\(\/\/\)$/{ s//\1/; q; }
 
8043
          /^X\/\(\/\).*/{ s//\1/; q; }
 
8044
          s/.*/./; q'`
 
8045
 
 
8046
 
 
8047
# PATH needs CR, and LINENO needs CR and PATH.
 
8048
# Avoid depending upon Character Ranges.
 
8049
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
 
8050
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
 
8051
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
 
8052
as_cr_digits='0123456789'
 
8053
as_cr_alnum=$as_cr_Letters$as_cr_digits
 
8054
 
 
8055
# The user is always right.
 
8056
if test "${PATH_SEPARATOR+set}" != set; then
 
8057
  echo "#! /bin/sh" >conf$$.sh
 
8058
  echo  "exit 0"   >>conf$$.sh
 
8059
  chmod +x conf$$.sh
 
8060
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
 
8061
    PATH_SEPARATOR=';'
 
8062
  else
 
8063
    PATH_SEPARATOR=:
 
8064
  fi
 
8065
  rm -f conf$$.sh
 
8066
fi
 
8067
 
 
8068
 
 
8069
  as_lineno_1=$LINENO
 
8070
  as_lineno_2=$LINENO
 
8071
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
 
8072
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
8073
  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
 
8074
  # Find who we are.  Look in the path if we contain no path at all
 
8075
  # relative or not.
 
8076
  case $0 in
 
8077
    *[\\/]* ) as_myself=$0 ;;
 
8078
    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
8079
for as_dir in $PATH
 
8080
do
 
8081
  IFS=$as_save_IFS
 
8082
  test -z "$as_dir" && as_dir=.
 
8083
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 
8084
done
 
8085
 
 
8086
       ;;
 
8087
  esac
 
8088
  # We did not find ourselves, most probably we were run as `sh COMMAND'
 
8089
  # in which case we are not to be found in the path.
 
8090
  if test "x$as_myself" = x; then
 
8091
    as_myself=$0
 
8092
  fi
 
8093
  if test ! -f "$as_myself"; then
 
8094
    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
 
8095
echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
 
8096
   { (exit 1); exit 1; }; }
 
8097
  fi
 
8098
  case $CONFIG_SHELL in
 
8099
  '')
 
8100
    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
8101
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
 
8102
do
 
8103
  IFS=$as_save_IFS
 
8104
  test -z "$as_dir" && as_dir=.
 
8105
  for as_base in sh bash ksh sh5; do
 
8106
         case $as_dir in
 
8107
         /*)
 
8108
           if ("$as_dir/$as_base" -c '
 
8109
  as_lineno_1=$LINENO
 
8110
  as_lineno_2=$LINENO
 
8111
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
 
8112
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
8113
  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
 
8114
             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
 
8115
             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
 
8116
             CONFIG_SHELL=$as_dir/$as_base
 
8117
             export CONFIG_SHELL
 
8118
             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
 
8119
           fi;;
 
8120
         esac
 
8121
       done
 
8122
done
 
8123
;;
 
8124
  esac
 
8125
 
 
8126
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
 
8127
  # uniformly replaced by the line number.  The first 'sed' inserts a
 
8128
  # line-number line before each line; the second 'sed' does the real
 
8129
  # work.  The second script uses 'N' to pair each line-number line
 
8130
  # with the numbered line, and appends trailing '-' during
 
8131
  # substitution so that $LINENO is not a special case at line end.
 
8132
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
 
8133
  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
 
8134
  sed '=' <$as_myself |
 
8135
    sed '
 
8136
      N
 
8137
      s,$,-,
 
8138
      : loop
 
8139
      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
 
8140
      t loop
 
8141
      s,-$,,
 
8142
      s,^['$as_cr_digits']*\n,,
 
8143
    ' >$as_me.lineno &&
 
8144
  chmod +x $as_me.lineno ||
 
8145
    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
 
8146
echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
 
8147
   { (exit 1); exit 1; }; }
 
8148
 
 
8149
  # Don't try to exec as it changes $[0], causing all sort of problems
 
8150
  # (the dirname of $[0] is not the place where we might find the
 
8151
  # original and so on.  Autoconf is especially sensible to this).
 
8152
  . ./$as_me.lineno
 
8153
  # Exit status is that of the last command.
 
8154
  exit
 
8155
}
 
8156
 
 
8157
 
 
8158
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
 
8159
  *c*,-n*) ECHO_N= ECHO_C='
 
8160
' ECHO_T='      ' ;;
 
8161
  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
 
8162
  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
 
8163
esac
 
8164
 
 
8165
if expr a : '\(a\)' >/dev/null 2>&1; then
 
8166
  as_expr=expr
 
8167
else
 
8168
  as_expr=false
 
8169
fi
 
8170
 
 
8171
rm -f conf$$ conf$$.exe conf$$.file
 
8172
echo >conf$$.file
 
8173
if ln -s conf$$.file conf$$ 2>/dev/null; then
 
8174
  # We could just check for DJGPP; but this test a) works b) is more generic
 
8175
  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
 
8176
  if test -f conf$$.exe; then
 
8177
    # Don't use ln at all; we don't have any links
 
8178
    as_ln_s='cp -p'
 
8179
  else
 
8180
    as_ln_s='ln -s'
 
8181
  fi
 
8182
elif ln conf$$.file conf$$ 2>/dev/null; then
 
8183
  as_ln_s=ln
 
8184
else
 
8185
  as_ln_s='cp -p'
 
8186
fi
 
8187
rm -f conf$$ conf$$.exe conf$$.file
 
8188
 
 
8189
if mkdir -p . 2>/dev/null; then
 
8190
  as_mkdir_p=:
 
8191
else
 
8192
  test -d ./-p && rmdir ./-p
 
8193
  as_mkdir_p=false
 
8194
fi
 
8195
 
 
8196
as_executable_p="test -f"
 
8197
 
 
8198
# Sed expression to map a string onto a valid CPP name.
 
8199
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
 
8200
 
 
8201
# Sed expression to map a string onto a valid variable name.
 
8202
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
 
8203
 
 
8204
 
 
8205
# IFS
 
8206
# We need space, tab and new line, in precisely that order.
 
8207
as_nl='
 
8208
'
 
8209
IFS="   $as_nl"
 
8210
 
 
8211
# CDPATH.
 
8212
$as_unset CDPATH
 
8213
 
 
8214
exec 6>&1
 
8215
 
 
8216
# Open the log real soon, to keep \$[0] and so on meaningful, and to
 
8217
# report actual input values of CONFIG_FILES etc. instead of their
 
8218
# values after options handling.  Logging --version etc. is OK.
 
8219
exec 5>>config.log
 
8220
{
 
8221
  echo
 
8222
  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
 
8223
## Running $as_me. ##
 
8224
_ASBOX
 
8225
} >&5
 
8226
cat >&5 <<_CSEOF
 
8227
 
 
8228
This file was extended by mpg123 $as_me 0.60, which was
 
8229
generated by GNU Autoconf 2.59.  Invocation command line was
 
8230
 
 
8231
  CONFIG_FILES    = $CONFIG_FILES
 
8232
  CONFIG_HEADERS  = $CONFIG_HEADERS
 
8233
  CONFIG_LINKS    = $CONFIG_LINKS
 
8234
  CONFIG_COMMANDS = $CONFIG_COMMANDS
 
8235
  $ $0 $@
 
8236
 
 
8237
_CSEOF
 
8238
echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
 
8239
echo >&5
 
8240
_ACEOF
 
8241
 
 
8242
# Files that config.status was made for.
 
8243
if test -n "$ac_config_files"; then
 
8244
  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
 
8245
fi
 
8246
 
 
8247
if test -n "$ac_config_headers"; then
 
8248
  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
 
8249
fi
 
8250
 
 
8251
if test -n "$ac_config_links"; then
 
8252
  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
 
8253
fi
 
8254
 
 
8255
if test -n "$ac_config_commands"; then
 
8256
  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
 
8257
fi
 
8258
 
 
8259
cat >>$CONFIG_STATUS <<\_ACEOF
 
8260
 
 
8261
ac_cs_usage="\
 
8262
\`$as_me' instantiates files from templates according to the
 
8263
current configuration.
 
8264
 
 
8265
Usage: $0 [OPTIONS] [FILE]...
 
8266
 
 
8267
  -h, --help       print this help, then exit
 
8268
  -V, --version    print version number, then exit
 
8269
  -q, --quiet      do not print progress messages
 
8270
  -d, --debug      don't remove temporary files
 
8271
      --recheck    update $as_me by reconfiguring in the same conditions
 
8272
  --file=FILE[:TEMPLATE]
 
8273
                   instantiate the configuration file FILE
 
8274
  --header=FILE[:TEMPLATE]
 
8275
                   instantiate the configuration header FILE
 
8276
 
 
8277
Configuration files:
 
8278
$config_files
 
8279
 
 
8280
Configuration headers:
 
8281
$config_headers
 
8282
 
 
8283
Configuration commands:
 
8284
$config_commands
 
8285
 
 
8286
Report bugs to <bug-autoconf@gnu.org>."
 
8287
_ACEOF
 
8288
 
 
8289
cat >>$CONFIG_STATUS <<_ACEOF
 
8290
ac_cs_version="\\
 
8291
mpg123 config.status 0.60
 
8292
configured by $0, generated by GNU Autoconf 2.59,
 
8293
  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
 
8294
 
 
8295
Copyright (C) 2003 Free Software Foundation, Inc.
 
8296
This config.status script is free software; the Free Software Foundation
 
8297
gives unlimited permission to copy, distribute and modify it."
 
8298
srcdir=$srcdir
 
8299
INSTALL="$INSTALL"
 
8300
_ACEOF
 
8301
 
 
8302
cat >>$CONFIG_STATUS <<\_ACEOF
 
8303
# If no file are specified by the user, then we need to provide default
 
8304
# value.  By we need to know if files were specified by the user.
 
8305
ac_need_defaults=:
 
8306
while test $# != 0
 
8307
do
 
8308
  case $1 in
 
8309
  --*=*)
 
8310
    ac_option=`expr "x$1" : 'x\([^=]*\)='`
 
8311
    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
 
8312
    ac_shift=:
 
8313
    ;;
 
8314
  -*)
 
8315
    ac_option=$1
 
8316
    ac_optarg=$2
 
8317
    ac_shift=shift
 
8318
    ;;
 
8319
  *) # This is not an option, so the user has probably given explicit
 
8320
     # arguments.
 
8321
     ac_option=$1
 
8322
     ac_need_defaults=false;;
 
8323
  esac
 
8324
 
 
8325
  case $ac_option in
 
8326
  # Handling of the options.
 
8327
_ACEOF
 
8328
cat >>$CONFIG_STATUS <<\_ACEOF
 
8329
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
 
8330
    ac_cs_recheck=: ;;
 
8331
  --version | --vers* | -V )
 
8332
    echo "$ac_cs_version"; exit 0 ;;
 
8333
  --he | --h)
 
8334
    # Conflict between --help and --header
 
8335
    { { echo "$as_me:$LINENO: error: ambiguous option: $1
 
8336
Try \`$0 --help' for more information." >&5
 
8337
echo "$as_me: error: ambiguous option: $1
 
8338
Try \`$0 --help' for more information." >&2;}
 
8339
   { (exit 1); exit 1; }; };;
 
8340
  --help | --hel | -h )
 
8341
    echo "$ac_cs_usage"; exit 0 ;;
 
8342
  --debug | --d* | -d )
 
8343
    debug=: ;;
 
8344
  --file | --fil | --fi | --f )
 
8345
    $ac_shift
 
8346
    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
 
8347
    ac_need_defaults=false;;
 
8348
  --header | --heade | --head | --hea )
 
8349
    $ac_shift
 
8350
    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
 
8351
    ac_need_defaults=false;;
 
8352
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
8353
  | -silent | --silent | --silen | --sile | --sil | --si | --s)
 
8354
    ac_cs_silent=: ;;
 
8355
 
 
8356
  # This is an error.
 
8357
  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
 
8358
Try \`$0 --help' for more information." >&5
 
8359
echo "$as_me: error: unrecognized option: $1
 
8360
Try \`$0 --help' for more information." >&2;}
 
8361
   { (exit 1); exit 1; }; } ;;
 
8362
 
 
8363
  *) ac_config_targets="$ac_config_targets $1" ;;
 
8364
 
 
8365
  esac
 
8366
  shift
 
8367
done
 
8368
 
 
8369
ac_configure_extra_args=
 
8370
 
 
8371
if $ac_cs_silent; then
 
8372
  exec 6>/dev/null
 
8373
  ac_configure_extra_args="$ac_configure_extra_args --silent"
 
8374
fi
 
8375
 
 
8376
_ACEOF
 
8377
cat >>$CONFIG_STATUS <<_ACEOF
 
8378
if \$ac_cs_recheck; then
 
8379
  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
 
8380
  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
 
8381
fi
 
8382
 
 
8383
_ACEOF
 
8384
 
 
8385
cat >>$CONFIG_STATUS <<_ACEOF
 
8386
#
 
8387
# INIT-COMMANDS section.
 
8388
#
 
8389
 
 
8390
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
 
8391
 
 
8392
_ACEOF
 
8393
 
 
8394
 
 
8395
 
 
8396
cat >>$CONFIG_STATUS <<\_ACEOF
 
8397
for ac_config_target in $ac_config_targets
 
8398
do
 
8399
  case "$ac_config_target" in
 
8400
  # Handling of arguments.
 
8401
  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
 
8402
  "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
 
8403
  "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
 
8404
  "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
 
8405
  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
 
8406
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
 
8407
   { (exit 1); exit 1; }; };;
 
8408
  esac
 
8409
done
 
8410
 
 
8411
# If the user did not use the arguments to specify the items to instantiate,
 
8412
# then the envvar interface is used.  Set only those that are not.
 
8413
# We use the long form for the default assignment because of an extremely
 
8414
# bizarre bug on SunOS 4.1.3.
 
8415
if $ac_need_defaults; then
 
8416
  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
 
8417
  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
 
8418
  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
 
8419
fi
 
8420
 
 
8421
# Have a temporary directory for convenience.  Make it in the build tree
 
8422
# simply because there is no reason to put it here, and in addition,
 
8423
# creating and moving files from /tmp can sometimes cause problems.
 
8424
# Create a temporary directory, and hook for its removal unless debugging.
 
8425
$debug ||
 
8426
{
 
8427
  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
 
8428
  trap '{ (exit 1); exit 1; }' 1 2 13 15
 
8429
}
 
8430
 
 
8431
# Create a (secure) tmp directory for tmp files.
 
8432
 
 
8433
{
 
8434
  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
 
8435
  test -n "$tmp" && test -d "$tmp"
 
8436
}  ||
 
8437
{
 
8438
  tmp=./confstat$$-$RANDOM
 
8439
  (umask 077 && mkdir $tmp)
 
8440
} ||
 
8441
{
 
8442
   echo "$me: cannot create a temporary directory in ." >&2
 
8443
   { (exit 1); exit 1; }
 
8444
}
 
8445
 
 
8446
_ACEOF
 
8447
 
 
8448
cat >>$CONFIG_STATUS <<_ACEOF
 
8449
 
 
8450
#
 
8451
# CONFIG_FILES section.
 
8452
#
 
8453
 
 
8454
# No need to generate the scripts if there are no CONFIG_FILES.
 
8455
# This happens for instance when ./config.status config.h
 
8456
if test -n "\$CONFIG_FILES"; then
 
8457
  # Protect against being on the right side of a sed subst in config.status.
 
8458
  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
 
8459
   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
 
8460
s,@SHELL@,$SHELL,;t t
 
8461
s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
 
8462
s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
 
8463
s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
 
8464
s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
 
8465
s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
 
8466
s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
 
8467
s,@exec_prefix@,$exec_prefix,;t t
 
8468
s,@prefix@,$prefix,;t t
 
8469
s,@program_transform_name@,$program_transform_name,;t t
 
8470
s,@bindir@,$bindir,;t t
 
8471
s,@sbindir@,$sbindir,;t t
 
8472
s,@libexecdir@,$libexecdir,;t t
 
8473
s,@datadir@,$datadir,;t t
 
8474
s,@sysconfdir@,$sysconfdir,;t t
 
8475
s,@sharedstatedir@,$sharedstatedir,;t t
 
8476
s,@localstatedir@,$localstatedir,;t t
 
8477
s,@libdir@,$libdir,;t t
 
8478
s,@includedir@,$includedir,;t t
 
8479
s,@oldincludedir@,$oldincludedir,;t t
 
8480
s,@infodir@,$infodir,;t t
 
8481
s,@mandir@,$mandir,;t t
 
8482
s,@build_alias@,$build_alias,;t t
 
8483
s,@host_alias@,$host_alias,;t t
 
8484
s,@target_alias@,$target_alias,;t t
 
8485
s,@DEFS@,$DEFS,;t t
 
8486
s,@ECHO_C@,$ECHO_C,;t t
 
8487
s,@ECHO_N@,$ECHO_N,;t t
 
8488
s,@ECHO_T@,$ECHO_T,;t t
 
8489
s,@LIBS@,$LIBS,;t t
 
8490
s,@build@,$build,;t t
 
8491
s,@build_cpu@,$build_cpu,;t t
 
8492
s,@build_vendor@,$build_vendor,;t t
 
8493
s,@build_os@,$build_os,;t t
 
8494
s,@host@,$host,;t t
 
8495
s,@host_cpu@,$host_cpu,;t t
 
8496
s,@host_vendor@,$host_vendor,;t t
 
8497
s,@host_os@,$host_os,;t t
 
8498
s,@target@,$target,;t t
 
8499
s,@target_cpu@,$target_cpu,;t t
 
8500
s,@target_vendor@,$target_vendor,;t t
 
8501
s,@target_os@,$target_os,;t t
 
8502
s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
 
8503
s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
 
8504
s,@INSTALL_DATA@,$INSTALL_DATA,;t t
 
8505
s,@CYGPATH_W@,$CYGPATH_W,;t t
 
8506
s,@PACKAGE@,$PACKAGE,;t t
 
8507
s,@VERSION@,$VERSION,;t t
 
8508
s,@ACLOCAL@,$ACLOCAL,;t t
 
8509
s,@AUTOCONF@,$AUTOCONF,;t t
 
8510
s,@AUTOMAKE@,$AUTOMAKE,;t t
 
8511
s,@AUTOHEADER@,$AUTOHEADER,;t t
 
8512
s,@MAKEINFO@,$MAKEINFO,;t t
 
8513
s,@AMTAR@,$AMTAR,;t t
 
8514
s,@install_sh@,$install_sh,;t t
 
8515
s,@STRIP@,$STRIP,;t t
 
8516
s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
 
8517
s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
 
8518
s,@AWK@,$AWK,;t t
 
8519
s,@SET_MAKE@,$SET_MAKE,;t t
 
8520
s,@am__leading_dot@,$am__leading_dot,;t t
 
8521
s,@CC@,$CC,;t t
 
8522
s,@CFLAGS@,$CFLAGS,;t t
 
8523
s,@LDFLAGS@,$LDFLAGS,;t t
 
8524
s,@CPPFLAGS@,$CPPFLAGS,;t t
 
8525
s,@ac_ct_CC@,$ac_ct_CC,;t t
 
8526
s,@EXEEXT@,$EXEEXT,;t t
 
8527
s,@OBJEXT@,$OBJEXT,;t t
 
8528
s,@DEPDIR@,$DEPDIR,;t t
 
8529
s,@am__include@,$am__include,;t t
 
8530
s,@am__quote@,$am__quote,;t t
 
8531
s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
 
8532
s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
 
8533
s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
 
8534
s,@CCDEPMODE@,$CCDEPMODE,;t t
 
8535
s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
 
8536
s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
 
8537
s,@CCAS@,$CCAS,;t t
 
8538
s,@CCASFLAGS@,$CCASFLAGS,;t t
 
8539
s,@RANLIB@,$RANLIB,;t t
 
8540
s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
 
8541
s,@CPP@,$CPP,;t t
 
8542
s,@EGREP@,$EGREP,;t t
 
8543
s,@PKG_CONFIG@,$PKG_CONFIG,;t t
 
8544
s,@JACK_CFLAGS@,$JACK_CFLAGS,;t t
 
8545
s,@JACK_LIBS@,$JACK_LIBS,;t t
 
8546
s,@ESOUND_CFLAGS@,$ESOUND_CFLAGS,;t t
 
8547
s,@ESOUND_LIBS@,$ESOUND_LIBS,;t t
 
8548
s,@SDL_CFLAGS@,$SDL_CFLAGS,;t t
 
8549
s,@SDL_LIBS@,$SDL_LIBS,;t t
 
8550
s,@CPU_TYPE_LIB@,$CPU_TYPE_LIB,;t t
 
8551
s,@AUDIO_OBJ@,$AUDIO_OBJ,;t t
 
8552
s,@AUDIO_CFLAGS@,$AUDIO_CFLAGS,;t t
 
8553
s,@AUDIO_LIBS@,$AUDIO_LIBS,;t t
 
8554
s,@LIBOBJS@,$LIBOBJS,;t t
 
8555
s,@LTLIBOBJS@,$LTLIBOBJS,;t t
 
8556
CEOF
 
8557
 
 
8558
_ACEOF
 
8559
 
 
8560
  cat >>$CONFIG_STATUS <<\_ACEOF
 
8561
  # Split the substitutions into bite-sized pieces for seds with
 
8562
  # small command number limits, like on Digital OSF/1 and HP-UX.
 
8563
  ac_max_sed_lines=48
 
8564
  ac_sed_frag=1 # Number of current file.
 
8565
  ac_beg=1 # First line for current file.
 
8566
  ac_end=$ac_max_sed_lines # Line after last line for current file.
 
8567
  ac_more_lines=:
 
8568
  ac_sed_cmds=
 
8569
  while $ac_more_lines; do
 
8570
    if test $ac_beg -gt 1; then
 
8571
      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
 
8572
    else
 
8573
      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
 
8574
    fi
 
8575
    if test ! -s $tmp/subs.frag; then
 
8576
      ac_more_lines=false
 
8577
    else
 
8578
      # The purpose of the label and of the branching condition is to
 
8579
      # speed up the sed processing (if there are no `@' at all, there
 
8580
      # is no need to browse any of the substitutions).
 
8581
      # These are the two extra sed commands mentioned above.
 
8582
      (echo ':t
 
8583
  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
 
8584
      if test -z "$ac_sed_cmds"; then
 
8585
        ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
 
8586
      else
 
8587
        ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
 
8588
      fi
 
8589
      ac_sed_frag=`expr $ac_sed_frag + 1`
 
8590
      ac_beg=$ac_end
 
8591
      ac_end=`expr $ac_end + $ac_max_sed_lines`
 
8592
    fi
 
8593
  done
 
8594
  if test -z "$ac_sed_cmds"; then
 
8595
    ac_sed_cmds=cat
 
8596
  fi
 
8597
fi # test -n "$CONFIG_FILES"
 
8598
 
 
8599
_ACEOF
 
8600
cat >>$CONFIG_STATUS <<\_ACEOF
 
8601
for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
 
8602
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
 
8603
  case $ac_file in
 
8604
  - | *:- | *:-:* ) # input from stdin
 
8605
        cat >$tmp/stdin
 
8606
        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
 
8607
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
 
8608
  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
 
8609
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
 
8610
  * )   ac_file_in=$ac_file.in ;;
 
8611
  esac
 
8612
 
 
8613
  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
 
8614
  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
 
8615
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
8616
         X"$ac_file" : 'X\(//\)[^/]' \| \
 
8617
         X"$ac_file" : 'X\(//\)$' \| \
 
8618
         X"$ac_file" : 'X\(/\)' \| \
 
8619
         .     : '\(.\)' 2>/dev/null ||
 
8620
echo X"$ac_file" |
 
8621
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
8622
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
8623
          /^X\(\/\/\)$/{ s//\1/; q; }
 
8624
          /^X\(\/\).*/{ s//\1/; q; }
 
8625
          s/.*/./; q'`
 
8626
  { if $as_mkdir_p; then
 
8627
    mkdir -p "$ac_dir"
 
8628
  else
 
8629
    as_dir="$ac_dir"
 
8630
    as_dirs=
 
8631
    while test ! -d "$as_dir"; do
 
8632
      as_dirs="$as_dir $as_dirs"
 
8633
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
 
8634
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
8635
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
8636
         X"$as_dir" : 'X\(//\)$' \| \
 
8637
         X"$as_dir" : 'X\(/\)' \| \
 
8638
         .     : '\(.\)' 2>/dev/null ||
 
8639
echo X"$as_dir" |
 
8640
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
8641
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
8642
          /^X\(\/\/\)$/{ s//\1/; q; }
 
8643
          /^X\(\/\).*/{ s//\1/; q; }
 
8644
          s/.*/./; q'`
 
8645
    done
 
8646
    test ! -n "$as_dirs" || mkdir $as_dirs
 
8647
  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
 
8648
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
 
8649
   { (exit 1); exit 1; }; }; }
 
8650
 
 
8651
  ac_builddir=.
 
8652
 
 
8653
if test "$ac_dir" != .; then
 
8654
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
 
8655
  # A "../" for each directory in $ac_dir_suffix.
 
8656
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
 
8657
else
 
8658
  ac_dir_suffix= ac_top_builddir=
 
8659
fi
 
8660
 
 
8661
case $srcdir in
 
8662
  .)  # No --srcdir option.  We are building in place.
 
8663
    ac_srcdir=.
 
8664
    if test -z "$ac_top_builddir"; then
 
8665
       ac_top_srcdir=.
 
8666
    else
 
8667
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
 
8668
    fi ;;
 
8669
  [\\/]* | ?:[\\/]* )  # Absolute path.
 
8670
    ac_srcdir=$srcdir$ac_dir_suffix;
 
8671
    ac_top_srcdir=$srcdir ;;
 
8672
  *) # Relative path.
 
8673
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
 
8674
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
 
8675
esac
 
8676
 
 
8677
# Do not use `cd foo && pwd` to compute absolute paths, because
 
8678
# the directories may not exist.
 
8679
case `pwd` in
 
8680
.) ac_abs_builddir="$ac_dir";;
 
8681
*)
 
8682
  case "$ac_dir" in
 
8683
  .) ac_abs_builddir=`pwd`;;
 
8684
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
 
8685
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
 
8686
  esac;;
 
8687
esac
 
8688
case $ac_abs_builddir in
 
8689
.) ac_abs_top_builddir=${ac_top_builddir}.;;
 
8690
*)
 
8691
  case ${ac_top_builddir}. in
 
8692
  .) ac_abs_top_builddir=$ac_abs_builddir;;
 
8693
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
 
8694
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
 
8695
  esac;;
 
8696
esac
 
8697
case $ac_abs_builddir in
 
8698
.) ac_abs_srcdir=$ac_srcdir;;
 
8699
*)
 
8700
  case $ac_srcdir in
 
8701
  .) ac_abs_srcdir=$ac_abs_builddir;;
 
8702
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
 
8703
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
 
8704
  esac;;
 
8705
esac
 
8706
case $ac_abs_builddir in
 
8707
.) ac_abs_top_srcdir=$ac_top_srcdir;;
 
8708
*)
 
8709
  case $ac_top_srcdir in
 
8710
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
 
8711
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
 
8712
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
 
8713
  esac;;
 
8714
esac
 
8715
 
 
8716
 
 
8717
  case $INSTALL in
 
8718
  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
 
8719
  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
 
8720
  esac
 
8721
 
 
8722
  if test x"$ac_file" != x-; then
 
8723
    { echo "$as_me:$LINENO: creating $ac_file" >&5
 
8724
echo "$as_me: creating $ac_file" >&6;}
 
8725
    rm -f "$ac_file"
 
8726
  fi
 
8727
  # Let's still pretend it is `configure' which instantiates (i.e., don't
 
8728
  # use $as_me), people would be surprised to read:
 
8729
  #    /* config.h.  Generated by config.status.  */
 
8730
  if test x"$ac_file" = x-; then
 
8731
    configure_input=
 
8732
  else
 
8733
    configure_input="$ac_file.  "
 
8734
  fi
 
8735
  configure_input=$configure_input"Generated from `echo $ac_file_in |
 
8736
                                     sed 's,.*/,,'` by configure."
 
8737
 
 
8738
  # First look for the input files in the build tree, otherwise in the
 
8739
  # src tree.
 
8740
  ac_file_inputs=`IFS=:
 
8741
    for f in $ac_file_in; do
 
8742
      case $f in
 
8743
      -) echo $tmp/stdin ;;
 
8744
      [\\/$]*)
 
8745
         # Absolute (can't be DOS-style, as IFS=:)
 
8746
         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
 
8747
echo "$as_me: error: cannot find input file: $f" >&2;}
 
8748
   { (exit 1); exit 1; }; }
 
8749
         echo "$f";;
 
8750
      *) # Relative
 
8751
         if test -f "$f"; then
 
8752
           # Build tree
 
8753
           echo "$f"
 
8754
         elif test -f "$srcdir/$f"; then
 
8755
           # Source tree
 
8756
           echo "$srcdir/$f"
 
8757
         else
 
8758
           # /dev/null tree
 
8759
           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
 
8760
echo "$as_me: error: cannot find input file: $f" >&2;}
 
8761
   { (exit 1); exit 1; }; }
 
8762
         fi;;
 
8763
      esac
 
8764
    done` || { (exit 1); exit 1; }
 
8765
_ACEOF
 
8766
cat >>$CONFIG_STATUS <<_ACEOF
 
8767
  sed "$ac_vpsub
 
8768
$extrasub
 
8769
_ACEOF
 
8770
cat >>$CONFIG_STATUS <<\_ACEOF
 
8771
:t
 
8772
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
 
8773
s,@configure_input@,$configure_input,;t t
 
8774
s,@srcdir@,$ac_srcdir,;t t
 
8775
s,@abs_srcdir@,$ac_abs_srcdir,;t t
 
8776
s,@top_srcdir@,$ac_top_srcdir,;t t
 
8777
s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
 
8778
s,@builddir@,$ac_builddir,;t t
 
8779
s,@abs_builddir@,$ac_abs_builddir,;t t
 
8780
s,@top_builddir@,$ac_top_builddir,;t t
 
8781
s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
 
8782
s,@INSTALL@,$ac_INSTALL,;t t
 
8783
" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
 
8784
  rm -f $tmp/stdin
 
8785
  if test x"$ac_file" != x-; then
 
8786
    mv $tmp/out $ac_file
 
8787
  else
 
8788
    cat $tmp/out
 
8789
    rm -f $tmp/out
 
8790
  fi
 
8791
 
 
8792
done
 
8793
_ACEOF
 
8794
cat >>$CONFIG_STATUS <<\_ACEOF
 
8795
 
 
8796
#
 
8797
# CONFIG_HEADER section.
 
8798
#
 
8799
 
 
8800
# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
 
8801
# NAME is the cpp macro being defined and VALUE is the value it is being given.
 
8802
#
 
8803
# ac_d sets the value in "#define NAME VALUE" lines.
 
8804
ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
 
8805
ac_dB='[         ].*$,\1#\2'
 
8806
ac_dC=' '
 
8807
ac_dD=',;t'
 
8808
# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
 
8809
ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
 
8810
ac_uB='$,\1#\2define\3'
 
8811
ac_uC=' '
 
8812
ac_uD=',;t'
 
8813
 
 
8814
for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
 
8815
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
 
8816
  case $ac_file in
 
8817
  - | *:- | *:-:* ) # input from stdin
 
8818
        cat >$tmp/stdin
 
8819
        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
 
8820
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
 
8821
  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
 
8822
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
 
8823
  * )   ac_file_in=$ac_file.in ;;
 
8824
  esac
 
8825
 
 
8826
  test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
 
8827
echo "$as_me: creating $ac_file" >&6;}
 
8828
 
 
8829
  # First look for the input files in the build tree, otherwise in the
 
8830
  # src tree.
 
8831
  ac_file_inputs=`IFS=:
 
8832
    for f in $ac_file_in; do
 
8833
      case $f in
 
8834
      -) echo $tmp/stdin ;;
 
8835
      [\\/$]*)
 
8836
         # Absolute (can't be DOS-style, as IFS=:)
 
8837
         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
 
8838
echo "$as_me: error: cannot find input file: $f" >&2;}
 
8839
   { (exit 1); exit 1; }; }
 
8840
         # Do quote $f, to prevent DOS paths from being IFS'd.
 
8841
         echo "$f";;
 
8842
      *) # Relative
 
8843
         if test -f "$f"; then
 
8844
           # Build tree
 
8845
           echo "$f"
 
8846
         elif test -f "$srcdir/$f"; then
 
8847
           # Source tree
 
8848
           echo "$srcdir/$f"
 
8849
         else
 
8850
           # /dev/null tree
 
8851
           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
 
8852
echo "$as_me: error: cannot find input file: $f" >&2;}
 
8853
   { (exit 1); exit 1; }; }
 
8854
         fi;;
 
8855
      esac
 
8856
    done` || { (exit 1); exit 1; }
 
8857
  # Remove the trailing spaces.
 
8858
  sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
 
8859
 
 
8860
_ACEOF
 
8861
 
 
8862
# Transform confdefs.h into two sed scripts, `conftest.defines' and
 
8863
# `conftest.undefs', that substitutes the proper values into
 
8864
# config.h.in to produce config.h.  The first handles `#define'
 
8865
# templates, and the second `#undef' templates.
 
8866
# And first: Protect against being on the right side of a sed subst in
 
8867
# config.status.  Protect against being in an unquoted here document
 
8868
# in config.status.
 
8869
rm -f conftest.defines conftest.undefs
 
8870
# Using a here document instead of a string reduces the quoting nightmare.
 
8871
# Putting comments in sed scripts is not portable.
 
8872
#
 
8873
# `end' is used to avoid that the second main sed command (meant for
 
8874
# 0-ary CPP macros) applies to n-ary macro definitions.
 
8875
# See the Autoconf documentation for `clear'.
 
8876
cat >confdef2sed.sed <<\_ACEOF
 
8877
s/[\\&,]/\\&/g
 
8878
s,[\\$`],\\&,g
 
8879
t clear
 
8880
: clear
 
8881
s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
 
8882
t end
 
8883
s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
 
8884
: end
 
8885
_ACEOF
 
8886
# If some macros were called several times there might be several times
 
8887
# the same #defines, which is useless.  Nevertheless, we may not want to
 
8888
# sort them, since we want the *last* AC-DEFINE to be honored.
 
8889
uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
 
8890
sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
 
8891
rm -f confdef2sed.sed
 
8892
 
 
8893
# This sed command replaces #undef with comments.  This is necessary, for
 
8894
# example, in the case of _POSIX_SOURCE, which is predefined and required
 
8895
# on some systems where configure will not decide to define it.
 
8896
cat >>conftest.undefs <<\_ACEOF
 
8897
s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
 
8898
_ACEOF
 
8899
 
 
8900
# Break up conftest.defines because some shells have a limit on the size
 
8901
# of here documents, and old seds have small limits too (100 cmds).
 
8902
echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
 
8903
echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
 
8904
echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
 
8905
echo '  :' >>$CONFIG_STATUS
 
8906
rm -f conftest.tail
 
8907
while grep . conftest.defines >/dev/null
 
8908
do
 
8909
  # Write a limited-size here document to $tmp/defines.sed.
 
8910
  echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
 
8911
  # Speed up: don't consider the non `#define' lines.
 
8912
  echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
 
8913
  # Work around the forget-to-reset-the-flag bug.
 
8914
  echo 't clr' >>$CONFIG_STATUS
 
8915
  echo ': clr' >>$CONFIG_STATUS
 
8916
  sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
 
8917
  echo 'CEOF
 
8918
  sed -f $tmp/defines.sed $tmp/in >$tmp/out
 
8919
  rm -f $tmp/in
 
8920
  mv $tmp/out $tmp/in
 
8921
' >>$CONFIG_STATUS
 
8922
  sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
 
8923
  rm -f conftest.defines
 
8924
  mv conftest.tail conftest.defines
 
8925
done
 
8926
rm -f conftest.defines
 
8927
echo '  fi # grep' >>$CONFIG_STATUS
 
8928
echo >>$CONFIG_STATUS
 
8929
 
 
8930
# Break up conftest.undefs because some shells have a limit on the size
 
8931
# of here documents, and old seds have small limits too (100 cmds).
 
8932
echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
 
8933
rm -f conftest.tail
 
8934
while grep . conftest.undefs >/dev/null
 
8935
do
 
8936
  # Write a limited-size here document to $tmp/undefs.sed.
 
8937
  echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
 
8938
  # Speed up: don't consider the non `#undef'
 
8939
  echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
 
8940
  # Work around the forget-to-reset-the-flag bug.
 
8941
  echo 't clr' >>$CONFIG_STATUS
 
8942
  echo ': clr' >>$CONFIG_STATUS
 
8943
  sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
 
8944
  echo 'CEOF
 
8945
  sed -f $tmp/undefs.sed $tmp/in >$tmp/out
 
8946
  rm -f $tmp/in
 
8947
  mv $tmp/out $tmp/in
 
8948
' >>$CONFIG_STATUS
 
8949
  sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
 
8950
  rm -f conftest.undefs
 
8951
  mv conftest.tail conftest.undefs
 
8952
done
 
8953
rm -f conftest.undefs
 
8954
 
 
8955
cat >>$CONFIG_STATUS <<\_ACEOF
 
8956
  # Let's still pretend it is `configure' which instantiates (i.e., don't
 
8957
  # use $as_me), people would be surprised to read:
 
8958
  #    /* config.h.  Generated by config.status.  */
 
8959
  if test x"$ac_file" = x-; then
 
8960
    echo "/* Generated by configure.  */" >$tmp/config.h
 
8961
  else
 
8962
    echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
 
8963
  fi
 
8964
  cat $tmp/in >>$tmp/config.h
 
8965
  rm -f $tmp/in
 
8966
  if test x"$ac_file" != x-; then
 
8967
    if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
 
8968
      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
 
8969
echo "$as_me: $ac_file is unchanged" >&6;}
 
8970
    else
 
8971
      ac_dir=`(dirname "$ac_file") 2>/dev/null ||
 
8972
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
8973
         X"$ac_file" : 'X\(//\)[^/]' \| \
 
8974
         X"$ac_file" : 'X\(//\)$' \| \
 
8975
         X"$ac_file" : 'X\(/\)' \| \
 
8976
         .     : '\(.\)' 2>/dev/null ||
 
8977
echo X"$ac_file" |
 
8978
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
8979
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
8980
          /^X\(\/\/\)$/{ s//\1/; q; }
 
8981
          /^X\(\/\).*/{ s//\1/; q; }
 
8982
          s/.*/./; q'`
 
8983
      { if $as_mkdir_p; then
 
8984
    mkdir -p "$ac_dir"
 
8985
  else
 
8986
    as_dir="$ac_dir"
 
8987
    as_dirs=
 
8988
    while test ! -d "$as_dir"; do
 
8989
      as_dirs="$as_dir $as_dirs"
 
8990
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
 
8991
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
8992
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
8993
         X"$as_dir" : 'X\(//\)$' \| \
 
8994
         X"$as_dir" : 'X\(/\)' \| \
 
8995
         .     : '\(.\)' 2>/dev/null ||
 
8996
echo X"$as_dir" |
 
8997
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
8998
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
8999
          /^X\(\/\/\)$/{ s//\1/; q; }
 
9000
          /^X\(\/\).*/{ s//\1/; q; }
 
9001
          s/.*/./; q'`
 
9002
    done
 
9003
    test ! -n "$as_dirs" || mkdir $as_dirs
 
9004
  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
 
9005
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
 
9006
   { (exit 1); exit 1; }; }; }
 
9007
 
 
9008
      rm -f $ac_file
 
9009
      mv $tmp/config.h $ac_file
 
9010
    fi
 
9011
  else
 
9012
    cat $tmp/config.h
 
9013
    rm -f $tmp/config.h
 
9014
  fi
 
9015
# Compute $ac_file's index in $config_headers.
 
9016
_am_stamp_count=1
 
9017
for _am_header in $config_headers :; do
 
9018
  case $_am_header in
 
9019
    $ac_file | $ac_file:* )
 
9020
      break ;;
 
9021
    * )
 
9022
      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
 
9023
  esac
 
9024
done
 
9025
echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
 
9026
$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
9027
         X$ac_file : 'X\(//\)[^/]' \| \
 
9028
         X$ac_file : 'X\(//\)$' \| \
 
9029
         X$ac_file : 'X\(/\)' \| \
 
9030
         .     : '\(.\)' 2>/dev/null ||
 
9031
echo X$ac_file |
 
9032
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
9033
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
9034
          /^X\(\/\/\)$/{ s//\1/; q; }
 
9035
          /^X\(\/\).*/{ s//\1/; q; }
 
9036
          s/.*/./; q'`/stamp-h$_am_stamp_count
 
9037
done
 
9038
_ACEOF
 
9039
cat >>$CONFIG_STATUS <<\_ACEOF
 
9040
 
 
9041
#
 
9042
# CONFIG_COMMANDS section.
 
9043
#
 
9044
for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
 
9045
  ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
 
9046
  ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
 
9047
  ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
 
9048
$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
9049
         X"$ac_dest" : 'X\(//\)[^/]' \| \
 
9050
         X"$ac_dest" : 'X\(//\)$' \| \
 
9051
         X"$ac_dest" : 'X\(/\)' \| \
 
9052
         .     : '\(.\)' 2>/dev/null ||
 
9053
echo X"$ac_dest" |
 
9054
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
9055
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
9056
          /^X\(\/\/\)$/{ s//\1/; q; }
 
9057
          /^X\(\/\).*/{ s//\1/; q; }
 
9058
          s/.*/./; q'`
 
9059
  { if $as_mkdir_p; then
 
9060
    mkdir -p "$ac_dir"
 
9061
  else
 
9062
    as_dir="$ac_dir"
 
9063
    as_dirs=
 
9064
    while test ! -d "$as_dir"; do
 
9065
      as_dirs="$as_dir $as_dirs"
 
9066
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
 
9067
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
9068
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
9069
         X"$as_dir" : 'X\(//\)$' \| \
 
9070
         X"$as_dir" : 'X\(/\)' \| \
 
9071
         .     : '\(.\)' 2>/dev/null ||
 
9072
echo X"$as_dir" |
 
9073
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
9074
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
9075
          /^X\(\/\/\)$/{ s//\1/; q; }
 
9076
          /^X\(\/\).*/{ s//\1/; q; }
 
9077
          s/.*/./; q'`
 
9078
    done
 
9079
    test ! -n "$as_dirs" || mkdir $as_dirs
 
9080
  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
 
9081
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
 
9082
   { (exit 1); exit 1; }; }; }
 
9083
 
 
9084
  ac_builddir=.
 
9085
 
 
9086
if test "$ac_dir" != .; then
 
9087
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
 
9088
  # A "../" for each directory in $ac_dir_suffix.
 
9089
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
 
9090
else
 
9091
  ac_dir_suffix= ac_top_builddir=
 
9092
fi
 
9093
 
 
9094
case $srcdir in
 
9095
  .)  # No --srcdir option.  We are building in place.
 
9096
    ac_srcdir=.
 
9097
    if test -z "$ac_top_builddir"; then
 
9098
       ac_top_srcdir=.
 
9099
    else
 
9100
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
 
9101
    fi ;;
 
9102
  [\\/]* | ?:[\\/]* )  # Absolute path.
 
9103
    ac_srcdir=$srcdir$ac_dir_suffix;
 
9104
    ac_top_srcdir=$srcdir ;;
 
9105
  *) # Relative path.
 
9106
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
 
9107
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
 
9108
esac
 
9109
 
 
9110
# Do not use `cd foo && pwd` to compute absolute paths, because
 
9111
# the directories may not exist.
 
9112
case `pwd` in
 
9113
.) ac_abs_builddir="$ac_dir";;
 
9114
*)
 
9115
  case "$ac_dir" in
 
9116
  .) ac_abs_builddir=`pwd`;;
 
9117
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
 
9118
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
 
9119
  esac;;
 
9120
esac
 
9121
case $ac_abs_builddir in
 
9122
.) ac_abs_top_builddir=${ac_top_builddir}.;;
 
9123
*)
 
9124
  case ${ac_top_builddir}. in
 
9125
  .) ac_abs_top_builddir=$ac_abs_builddir;;
 
9126
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
 
9127
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
 
9128
  esac;;
 
9129
esac
 
9130
case $ac_abs_builddir in
 
9131
.) ac_abs_srcdir=$ac_srcdir;;
 
9132
*)
 
9133
  case $ac_srcdir in
 
9134
  .) ac_abs_srcdir=$ac_abs_builddir;;
 
9135
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
 
9136
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
 
9137
  esac;;
 
9138
esac
 
9139
case $ac_abs_builddir in
 
9140
.) ac_abs_top_srcdir=$ac_top_srcdir;;
 
9141
*)
 
9142
  case $ac_top_srcdir in
 
9143
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
 
9144
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
 
9145
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
 
9146
  esac;;
 
9147
esac
 
9148
 
 
9149
 
 
9150
  { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
 
9151
echo "$as_me: executing $ac_dest commands" >&6;}
 
9152
  case $ac_dest in
 
9153
    depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
 
9154
  # Strip MF so we end up with the name of the file.
 
9155
  mf=`echo "$mf" | sed -e 's/:.*$//'`
 
9156
  # Check whether this is an Automake generated Makefile or not.
 
9157
  # We used to match only the files named `Makefile.in', but
 
9158
  # some people rename them; so instead we look at the file content.
 
9159
  # Grep'ing the first line is not enough: some people post-process
 
9160
  # each Makefile.in and add a new line on top of each file to say so.
 
9161
  # So let's grep whole file.
 
9162
  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
 
9163
    dirpart=`(dirname "$mf") 2>/dev/null ||
 
9164
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
9165
         X"$mf" : 'X\(//\)[^/]' \| \
 
9166
         X"$mf" : 'X\(//\)$' \| \
 
9167
         X"$mf" : 'X\(/\)' \| \
 
9168
         .     : '\(.\)' 2>/dev/null ||
 
9169
echo X"$mf" |
 
9170
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
9171
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
9172
          /^X\(\/\/\)$/{ s//\1/; q; }
 
9173
          /^X\(\/\).*/{ s//\1/; q; }
 
9174
          s/.*/./; q'`
 
9175
  else
 
9176
    continue
 
9177
  fi
 
9178
  grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
 
9179
  # Extract the definition of DEP_FILES from the Makefile without
 
9180
  # running `make'.
 
9181
  DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
 
9182
  test -z "$DEPDIR" && continue
 
9183
  # When using ansi2knr, U may be empty or an underscore; expand it
 
9184
  U=`sed -n -e '/^U = / s///p' < "$mf"`
 
9185
  test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
 
9186
  # We invoke sed twice because it is the simplest approach to
 
9187
  # changing $(DEPDIR) to its actual value in the expansion.
 
9188
  for file in `sed -n -e '
 
9189
    /^DEP_FILES = .*\\\\$/ {
 
9190
      s/^DEP_FILES = //
 
9191
      :loop
 
9192
        s/\\\\$//
 
9193
        p
 
9194
        n
 
9195
        /\\\\$/ b loop
 
9196
      p
 
9197
    }
 
9198
    /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
 
9199
       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
 
9200
    # Make sure the directory exists.
 
9201
    test -f "$dirpart/$file" && continue
 
9202
    fdir=`(dirname "$file") 2>/dev/null ||
 
9203
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
9204
         X"$file" : 'X\(//\)[^/]' \| \
 
9205
         X"$file" : 'X\(//\)$' \| \
 
9206
         X"$file" : 'X\(/\)' \| \
 
9207
         .     : '\(.\)' 2>/dev/null ||
 
9208
echo X"$file" |
 
9209
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
9210
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
9211
          /^X\(\/\/\)$/{ s//\1/; q; }
 
9212
          /^X\(\/\).*/{ s//\1/; q; }
 
9213
          s/.*/./; q'`
 
9214
    { if $as_mkdir_p; then
 
9215
    mkdir -p $dirpart/$fdir
 
9216
  else
 
9217
    as_dir=$dirpart/$fdir
 
9218
    as_dirs=
 
9219
    while test ! -d "$as_dir"; do
 
9220
      as_dirs="$as_dir $as_dirs"
 
9221
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
 
9222
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
9223
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
9224
         X"$as_dir" : 'X\(//\)$' \| \
 
9225
         X"$as_dir" : 'X\(/\)' \| \
 
9226
         .     : '\(.\)' 2>/dev/null ||
 
9227
echo X"$as_dir" |
 
9228
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
9229
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
9230
          /^X\(\/\/\)$/{ s//\1/; q; }
 
9231
          /^X\(\/\).*/{ s//\1/; q; }
 
9232
          s/.*/./; q'`
 
9233
    done
 
9234
    test ! -n "$as_dirs" || mkdir $as_dirs
 
9235
  fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
 
9236
echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
 
9237
   { (exit 1); exit 1; }; }; }
 
9238
 
 
9239
    # echo "creating $dirpart/$file"
 
9240
    echo '# dummy' > "$dirpart/$file"
 
9241
  done
 
9242
done
 
9243
 ;;
 
9244
  esac
 
9245
done
 
9246
_ACEOF
 
9247
 
 
9248
cat >>$CONFIG_STATUS <<\_ACEOF
 
9249
 
 
9250
{ (exit 0); exit 0; }
 
9251
_ACEOF
 
9252
chmod +x $CONFIG_STATUS
 
9253
ac_clean_files=$ac_clean_files_save
 
9254
 
 
9255
 
 
9256
# configure is writing to config.log, and then calls config.status.
 
9257
# config.status does its own redirection, appending to config.log.
 
9258
# Unfortunately, on DOS this fails, as config.log is still kept open
 
9259
# by configure, so config.status won't be able to write to it; its
 
9260
# output is simply discarded.  So we exec the FD to /dev/null,
 
9261
# effectively closing config.log, so it can be properly (re)opened and
 
9262
# appended to by config.status.  When coming back to configure, we
 
9263
# need to make the FD available again.
 
9264
if test "$no_create" != yes; then
 
9265
  ac_cs_success=:
 
9266
  ac_config_status_args=
 
9267
  test "$silent" = yes &&
 
9268
    ac_config_status_args="$ac_config_status_args --quiet"
 
9269
  exec 5>/dev/null
 
9270
  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
 
9271
  exec 5>>config.log
 
9272
  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
 
9273
  # would make configure fail if this is the last instruction.
 
9274
  $ac_cs_success || { (exit 1); exit 1; }
 
9275
fi
 
9276
 
 
9277
 
 
9278
 
 
9279
 
 
9280
 
 
9281
echo "
 
9282
  $PACKAGE $VERSION
 
9283
 
 
9284
  Install path ............ $prefix
 
9285
  CPU Optimisation......... $cpu_type
 
9286
  Compiler Optimization ... $with_optimization
 
9287
  Audio output ............ $audio_system
 
9288
  Gapless Support ......... $gapless
 
9289
  Debugging ............... $debugging
 
9290
  Seek table size ......... $seektable
 
9291
"
 
9292
 
 
9293
if test "$debugging" = "enabled"; then
 
9294
        echo "CFLAGS='$CFLAGS'"
 
9295
        echo "LIBS='$LIBS'"
 
9296
        echo "AUDIO_CFLAGS='$AUDIO_CFLAGS'"
 
9297
        echo "AUDIO_LIBS='$AUDIO_LIBS'"
 
9298
else
 
9299
    echo "Next type 'make' and then 'make install'."
 
9300
fi
 
9301
 
 
9302