1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.59 for vorbisgain 0.37.
4#
5# Copyright (C) 2003 Free Software Foundation, Inc.
6# This configure script is free software; the Free Software Foundation
7# gives unlimited permission to copy, distribute and modify it.
8## --------------------- ##
9## M4sh Initialization.  ##
10## --------------------- ##
11
12# Be Bourne compatible
13if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14  emulate sh
15  NULLCMD=:
16  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17  # is contrary to our usage.  Disable this feature.
18  alias -g '${1+"$@"}'='"$@"'
19elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20  set -o posix
21fi
22DUALCASE=1; export DUALCASE # for MKS sh
23
24# Support unset when possible.
25if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26  as_unset=unset
27else
28  as_unset=false
29fi
30
31
32# Work around bugs in pre-3.0 UWIN ksh.
33$as_unset ENV MAIL MAILPATH
34PS1='$ '
35PS2='> '
36PS4='+ '
37
38# NLS nuisances.
39for as_var in \
40  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42  LC_TELEPHONE LC_TIME
43do
44  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45    eval $as_var=C; export $as_var
46  else
47    $as_unset $as_var
48  fi
49done
50
51# Required to use basename.
52if expr a : '\(a\)' >/dev/null 2>&1; then
53  as_expr=expr
54else
55  as_expr=false
56fi
57
58if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59  as_basename=basename
60else
61  as_basename=false
62fi
63
64
65# Name of the executable.
66as_me=`$as_basename "$0" ||
67$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68	 X"$0" : 'X\(//\)$' \| \
69	 X"$0" : 'X\(/\)$' \| \
70	 .     : '\(.\)' 2>/dev/null ||
71echo X/"$0" |
72    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73  	  /^X\/\(\/\/\)$/{ s//\1/; q; }
74  	  /^X\/\(\/\).*/{ s//\1/; q; }
75  	  s/.*/./; q'`
76
77
78# PATH needs CR, and LINENO needs CR and PATH.
79# Avoid depending upon Character Ranges.
80as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83as_cr_digits='0123456789'
84as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86# The user is always right.
87if test "${PATH_SEPARATOR+set}" != set; then
88  echo "#! /bin/sh" >conf$$.sh
89  echo  "exit 0"   >>conf$$.sh
90  chmod +x conf$$.sh
91  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92    PATH_SEPARATOR=';'
93  else
94    PATH_SEPARATOR=:
95  fi
96  rm -f conf$$.sh
97fi
98
99
100  as_lineno_1=$LINENO
101  as_lineno_2=$LINENO
102  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103  test "x$as_lineno_1" != "x$as_lineno_2" &&
104  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
105  # Find who we are.  Look in the path if we contain no path at all
106  # relative or not.
107  case $0 in
108    *[\\/]* ) as_myself=$0 ;;
109    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110for as_dir in $PATH
111do
112  IFS=$as_save_IFS
113  test -z "$as_dir" && as_dir=.
114  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115done
116
117       ;;
118  esac
119  # We did not find ourselves, most probably we were run as `sh COMMAND'
120  # in which case we are not to be found in the path.
121  if test "x$as_myself" = x; then
122    as_myself=$0
123  fi
124  if test ! -f "$as_myself"; then
125    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126   { (exit 1); exit 1; }; }
127  fi
128  case $CONFIG_SHELL in
129  '')
130    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132do
133  IFS=$as_save_IFS
134  test -z "$as_dir" && as_dir=.
135  for as_base in sh bash ksh sh5; do
136	 case $as_dir in
137	 /*)
138	   if ("$as_dir/$as_base" -c '
139  as_lineno_1=$LINENO
140  as_lineno_2=$LINENO
141  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142  test "x$as_lineno_1" != "x$as_lineno_2" &&
143  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
144	     $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145	     $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146	     CONFIG_SHELL=$as_dir/$as_base
147	     export CONFIG_SHELL
148	     exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149	   fi;;
150	 esac
151       done
152done
153;;
154  esac
155
156  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157  # uniformly replaced by the line number.  The first 'sed' inserts a
158  # line-number line before each line; the second 'sed' does the real
159  # work.  The second script uses 'N' to pair each line-number line
160  # with the numbered line, and appends trailing '-' during
161  # substitution so that $LINENO is not a special case at line end.
162  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
164  sed '=' <$as_myself |
165    sed '
166      N
167      s,$,-,
168      : loop
169      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170      t loop
171      s,-$,,
172      s,^['$as_cr_digits']*\n,,
173    ' >$as_me.lineno &&
174  chmod +x $as_me.lineno ||
175    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176   { (exit 1); exit 1; }; }
177
178  # Don't try to exec as it changes $[0], causing all sort of problems
179  # (the dirname of $[0] is not the place where we might find the
180  # original and so on.  Autoconf is especially sensible to this).
181  . ./$as_me.lineno
182  # Exit status is that of the last command.
183  exit
184}
185
186
187case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188  *c*,-n*) ECHO_N= ECHO_C='
189' ECHO_T='	' ;;
190  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
192esac
193
194if expr a : '\(a\)' >/dev/null 2>&1; then
195  as_expr=expr
196else
197  as_expr=false
198fi
199
200rm -f conf$$ conf$$.exe conf$$.file
201echo >conf$$.file
202if ln -s conf$$.file conf$$ 2>/dev/null; then
203  # We could just check for DJGPP; but this test a) works b) is more generic
204  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205  if test -f conf$$.exe; then
206    # Don't use ln at all; we don't have any links
207    as_ln_s='cp -p'
208  else
209    as_ln_s='ln -s'
210  fi
211elif ln conf$$.file conf$$ 2>/dev/null; then
212  as_ln_s=ln
213else
214  as_ln_s='cp -p'
215fi
216rm -f conf$$ conf$$.exe conf$$.file
217
218if mkdir -p . 2>/dev/null; then
219  as_mkdir_p=:
220else
221  test -d ./-p && rmdir ./-p
222  as_mkdir_p=false
223fi
224
225as_executable_p="test -f"
226
227# Sed expression to map a string onto a valid CPP name.
228as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229
230# Sed expression to map a string onto a valid variable name.
231as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
233
234# IFS
235# We need space, tab and new line, in precisely that order.
236as_nl='
237'
238IFS=" 	$as_nl"
239
240# CDPATH.
241$as_unset CDPATH
242
243
244# Name of the host.
245# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246# so uname gets run too.
247ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
248
249exec 6>&1
250
251#
252# Initializations.
253#
254ac_default_prefix=/usr/local
255ac_config_libobj_dir=.
256cross_compiling=no
257subdirs=
258MFLAGS=
259MAKEFLAGS=
260SHELL=${CONFIG_SHELL-/bin/sh}
261
262# Maximum number of lines to put in a shell here document.
263# This variable seems obsolete.  It should probably be removed, and
264# only ac_max_sed_lines should be used.
265: ${ac_max_here_lines=38}
266
267# Identity of this package.
268PACKAGE_NAME='vorbisgain'
269PACKAGE_TARNAME='vorbisgain'
270PACKAGE_VERSION='0.37'
271PACKAGE_STRING='vorbisgain 0.37'
272PACKAGE_BUGREPORT=''
273
274ac_unique_file="vorbisgain.c"
275# Factoring default headers for most tests.
276ac_includes_default="\
277#include <stdio.h>
278#if HAVE_SYS_TYPES_H
279# include <sys/types.h>
280#endif
281#if HAVE_SYS_STAT_H
282# include <sys/stat.h>
283#endif
284#if STDC_HEADERS
285# include <stdlib.h>
286# include <stddef.h>
287#else
288# if HAVE_STDLIB_H
289#  include <stdlib.h>
290# endif
291#endif
292#if HAVE_STRING_H
293# if !STDC_HEADERS && HAVE_MEMORY_H
294#  include <memory.h>
295# endif
296# include <string.h>
297#endif
298#if HAVE_STRINGS_H
299# include <strings.h>
300#endif
301#if HAVE_INTTYPES_H
302# include <inttypes.h>
303#else
304# if HAVE_STDINT_H
305#  include <stdint.h>
306# endif
307#endif
308#if HAVE_UNISTD_H
309# include <unistd.h>
310#endif"
311
312ac_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 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 OGG_CFLAGS OGG_LIBS VORBIS_CFLAGS VORBIS_LIBS CPP EGREP LIBOBJS LTLIBOBJS'
313ac_subst_files=''
314
315# Initialize some variables set by options.
316ac_init_help=
317ac_init_version=false
318# The variables have the same names as the options, with
319# dashes changed to underlines.
320cache_file=/dev/null
321exec_prefix=NONE
322no_create=
323no_recursion=
324prefix=NONE
325program_prefix=NONE
326program_suffix=NONE
327program_transform_name=s,x,x,
328silent=
329site=
330srcdir=
331verbose=
332x_includes=NONE
333x_libraries=NONE
334
335# Installation directory options.
336# These are left unexpanded so users can "make install exec_prefix=/foo"
337# and all the variables that are supposed to be based on exec_prefix
338# by default will actually change.
339# Use braces instead of parens because sh, perl, etc. also accept them.
340bindir='${exec_prefix}/bin'
341sbindir='${exec_prefix}/sbin'
342libexecdir='${exec_prefix}/libexec'
343datadir='${prefix}/share'
344sysconfdir='${prefix}/etc'
345sharedstatedir='${prefix}/com'
346localstatedir='${prefix}/var'
347libdir='${exec_prefix}/lib'
348includedir='${prefix}/include'
349oldincludedir='/usr/include'
350infodir='${prefix}/info'
351mandir='${prefix}/man'
352
353ac_prev=
354for ac_option
355do
356  # If the previous option needs an argument, assign it.
357  if test -n "$ac_prev"; then
358    eval "$ac_prev=\$ac_option"
359    ac_prev=
360    continue
361  fi
362
363  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
364
365  # Accept the important Cygnus configure options, so we can diagnose typos.
366
367  case $ac_option in
368
369  -bindir | --bindir | --bindi | --bind | --bin | --bi)
370    ac_prev=bindir ;;
371  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
372    bindir=$ac_optarg ;;
373
374  -build | --build | --buil | --bui | --bu)
375    ac_prev=build_alias ;;
376  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
377    build_alias=$ac_optarg ;;
378
379  -cache-file | --cache-file | --cache-fil | --cache-fi \
380  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
381    ac_prev=cache_file ;;
382  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
383  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
384    cache_file=$ac_optarg ;;
385
386  --config-cache | -C)
387    cache_file=config.cache ;;
388
389  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
390    ac_prev=datadir ;;
391  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
392  | --da=*)
393    datadir=$ac_optarg ;;
394
395  -disable-* | --disable-*)
396    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
397    # Reject names that are not valid shell variable names.
398    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
399      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
400   { (exit 1); exit 1; }; }
401    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
402    eval "enable_$ac_feature=no" ;;
403
404  -enable-* | --enable-*)
405    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
406    # Reject names that are not valid shell variable names.
407    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
408      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
409   { (exit 1); exit 1; }; }
410    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
411    case $ac_option in
412      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
413      *) ac_optarg=yes ;;
414    esac
415    eval "enable_$ac_feature='$ac_optarg'" ;;
416
417  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
418  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
419  | --exec | --exe | --ex)
420    ac_prev=exec_prefix ;;
421  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
422  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
423  | --exec=* | --exe=* | --ex=*)
424    exec_prefix=$ac_optarg ;;
425
426  -gas | --gas | --ga | --g)
427    # Obsolete; use --with-gas.
428    with_gas=yes ;;
429
430  -help | --help | --hel | --he | -h)
431    ac_init_help=long ;;
432  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
433    ac_init_help=recursive ;;
434  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
435    ac_init_help=short ;;
436
437  -host | --host | --hos | --ho)
438    ac_prev=host_alias ;;
439  -host=* | --host=* | --hos=* | --ho=*)
440    host_alias=$ac_optarg ;;
441
442  -includedir | --includedir | --includedi | --included | --include \
443  | --includ | --inclu | --incl | --inc)
444    ac_prev=includedir ;;
445  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
446  | --includ=* | --inclu=* | --incl=* | --inc=*)
447    includedir=$ac_optarg ;;
448
449  -infodir | --infodir | --infodi | --infod | --info | --inf)
450    ac_prev=infodir ;;
451  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
452    infodir=$ac_optarg ;;
453
454  -libdir | --libdir | --libdi | --libd)
455    ac_prev=libdir ;;
456  -libdir=* | --libdir=* | --libdi=* | --libd=*)
457    libdir=$ac_optarg ;;
458
459  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
460  | --libexe | --libex | --libe)
461    ac_prev=libexecdir ;;
462  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
463  | --libexe=* | --libex=* | --libe=*)
464    libexecdir=$ac_optarg ;;
465
466  -localstatedir | --localstatedir | --localstatedi | --localstated \
467  | --localstate | --localstat | --localsta | --localst \
468  | --locals | --local | --loca | --loc | --lo)
469    ac_prev=localstatedir ;;
470  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
471  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
472  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
473    localstatedir=$ac_optarg ;;
474
475  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
476    ac_prev=mandir ;;
477  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
478    mandir=$ac_optarg ;;
479
480  -nfp | --nfp | --nf)
481    # Obsolete; use --without-fp.
482    with_fp=no ;;
483
484  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
485  | --no-cr | --no-c | -n)
486    no_create=yes ;;
487
488  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
489  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
490    no_recursion=yes ;;
491
492  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
493  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
494  | --oldin | --oldi | --old | --ol | --o)
495    ac_prev=oldincludedir ;;
496  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
497  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
498  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
499    oldincludedir=$ac_optarg ;;
500
501  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
502    ac_prev=prefix ;;
503  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
504    prefix=$ac_optarg ;;
505
506  -program-prefix | --program-prefix | --program-prefi | --program-pref \
507  | --program-pre | --program-pr | --program-p)
508    ac_prev=program_prefix ;;
509  -program-prefix=* | --program-prefix=* | --program-prefi=* \
510  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
511    program_prefix=$ac_optarg ;;
512
513  -program-suffix | --program-suffix | --program-suffi | --program-suff \
514  | --program-suf | --program-su | --program-s)
515    ac_prev=program_suffix ;;
516  -program-suffix=* | --program-suffix=* | --program-suffi=* \
517  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
518    program_suffix=$ac_optarg ;;
519
520  -program-transform-name | --program-transform-name \
521  | --program-transform-nam | --program-transform-na \
522  | --program-transform-n | --program-transform- \
523  | --program-transform | --program-transfor \
524  | --program-transfo | --program-transf \
525  | --program-trans | --program-tran \
526  | --progr-tra | --program-tr | --program-t)
527    ac_prev=program_transform_name ;;
528  -program-transform-name=* | --program-transform-name=* \
529  | --program-transform-nam=* | --program-transform-na=* \
530  | --program-transform-n=* | --program-transform-=* \
531  | --program-transform=* | --program-transfor=* \
532  | --program-transfo=* | --program-transf=* \
533  | --program-trans=* | --program-tran=* \
534  | --progr-tra=* | --program-tr=* | --program-t=*)
535    program_transform_name=$ac_optarg ;;
536
537  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
538  | -silent | --silent | --silen | --sile | --sil)
539    silent=yes ;;
540
541  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
542    ac_prev=sbindir ;;
543  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
544  | --sbi=* | --sb=*)
545    sbindir=$ac_optarg ;;
546
547  -sharedstatedir | --sharedstatedir | --sharedstatedi \
548  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
549  | --sharedst | --shareds | --shared | --share | --shar \
550  | --sha | --sh)
551    ac_prev=sharedstatedir ;;
552  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
553  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
554  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
555  | --sha=* | --sh=*)
556    sharedstatedir=$ac_optarg ;;
557
558  -site | --site | --sit)
559    ac_prev=site ;;
560  -site=* | --site=* | --sit=*)
561    site=$ac_optarg ;;
562
563  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
564    ac_prev=srcdir ;;
565  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
566    srcdir=$ac_optarg ;;
567
568  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
569  | --syscon | --sysco | --sysc | --sys | --sy)
570    ac_prev=sysconfdir ;;
571  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
572  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
573    sysconfdir=$ac_optarg ;;
574
575  -target | --target | --targe | --targ | --tar | --ta | --t)
576    ac_prev=target_alias ;;
577  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
578    target_alias=$ac_optarg ;;
579
580  -v | -verbose | --verbose | --verbos | --verbo | --verb)
581    verbose=yes ;;
582
583  -version | --version | --versio | --versi | --vers | -V)
584    ac_init_version=: ;;
585
586  -with-* | --with-*)
587    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
588    # Reject names that are not valid shell variable names.
589    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
590      { echo "$as_me: error: invalid package name: $ac_package" >&2
591   { (exit 1); exit 1; }; }
592    ac_package=`echo $ac_package| sed 's/-/_/g'`
593    case $ac_option in
594      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
595      *) ac_optarg=yes ;;
596    esac
597    eval "with_$ac_package='$ac_optarg'" ;;
598
599  -without-* | --without-*)
600    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
601    # Reject names that are not valid shell variable names.
602    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
603      { echo "$as_me: error: invalid package name: $ac_package" >&2
604   { (exit 1); exit 1; }; }
605    ac_package=`echo $ac_package | sed 's/-/_/g'`
606    eval "with_$ac_package=no" ;;
607
608  --x)
609    # Obsolete; use --with-x.
610    with_x=yes ;;
611
612  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
613  | --x-incl | --x-inc | --x-in | --x-i)
614    ac_prev=x_includes ;;
615  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
616  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
617    x_includes=$ac_optarg ;;
618
619  -x-libraries | --x-libraries | --x-librarie | --x-librari \
620  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
621    ac_prev=x_libraries ;;
622  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
623  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
624    x_libraries=$ac_optarg ;;
625
626  -*) { echo "$as_me: error: unrecognized option: $ac_option
627Try \`$0 --help' for more information." >&2
628   { (exit 1); exit 1; }; }
629    ;;
630
631  *=*)
632    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
633    # Reject names that are not valid shell variable names.
634    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
635      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
636   { (exit 1); exit 1; }; }
637    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
638    eval "$ac_envvar='$ac_optarg'"
639    export $ac_envvar ;;
640
641  *)
642    # FIXME: should be removed in autoconf 3.0.
643    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
644    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
645      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
646    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
647    ;;
648
649  esac
650done
651
652if test -n "$ac_prev"; then
653  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
654  { echo "$as_me: error: missing argument to $ac_option" >&2
655   { (exit 1); exit 1; }; }
656fi
657
658# Be sure to have absolute paths.
659for ac_var in exec_prefix prefix
660do
661  eval ac_val=$`echo $ac_var`
662  case $ac_val in
663    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
664    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665   { (exit 1); exit 1; }; };;
666  esac
667done
668
669# Be sure to have absolute paths.
670for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671	      localstatedir libdir includedir oldincludedir infodir mandir
672do
673  eval ac_val=$`echo $ac_var`
674  case $ac_val in
675    [\\/$]* | ?:[\\/]* ) ;;
676    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677   { (exit 1); exit 1; }; };;
678  esac
679done
680
681# There might be people who depend on the old broken behavior: `$host'
682# used to hold the argument of --host etc.
683# FIXME: To remove some day.
684build=$build_alias
685host=$host_alias
686target=$target_alias
687
688# FIXME: To remove some day.
689if test "x$host_alias" != x; then
690  if test "x$build_alias" = x; then
691    cross_compiling=maybe
692    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
693    If a cross compiler is detected then cross compile mode will be used." >&2
694  elif test "x$build_alias" != "x$host_alias"; then
695    cross_compiling=yes
696  fi
697fi
698
699ac_tool_prefix=
700test -n "$host_alias" && ac_tool_prefix=$host_alias-
701
702test "$silent" = yes && exec 6>/dev/null
703
704
705# Find the source files, if location was not specified.
706if test -z "$srcdir"; then
707  ac_srcdir_defaulted=yes
708  # Try the directory containing this script, then its parent.
709  ac_confdir=`(dirname "$0") 2>/dev/null ||
710$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
711	 X"$0" : 'X\(//\)[^/]' \| \
712	 X"$0" : 'X\(//\)$' \| \
713	 X"$0" : 'X\(/\)' \| \
714	 .     : '\(.\)' 2>/dev/null ||
715echo X"$0" |
716    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
718  	  /^X\(\/\/\)$/{ s//\1/; q; }
719  	  /^X\(\/\).*/{ s//\1/; q; }
720  	  s/.*/./; q'`
721  srcdir=$ac_confdir
722  if test ! -r "$srcdir/$ac_unique_file"; then
723    srcdir=..
724  fi
725else
726  ac_srcdir_defaulted=no
727fi
728if test ! -r "$srcdir/$ac_unique_file"; then
729  if test "$ac_srcdir_defaulted" = yes; then
730    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731   { (exit 1); exit 1; }; }
732  else
733    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734   { (exit 1); exit 1; }; }
735  fi
736fi
737(cd $srcdir && test -r "./$ac_unique_file") 2>/dev/null ||
738  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
739   { (exit 1); exit 1; }; }
740srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741ac_env_build_alias_set=${build_alias+set}
742ac_env_build_alias_value=$build_alias
743ac_cv_env_build_alias_set=${build_alias+set}
744ac_cv_env_build_alias_value=$build_alias
745ac_env_host_alias_set=${host_alias+set}
746ac_env_host_alias_value=$host_alias
747ac_cv_env_host_alias_set=${host_alias+set}
748ac_cv_env_host_alias_value=$host_alias
749ac_env_target_alias_set=${target_alias+set}
750ac_env_target_alias_value=$target_alias
751ac_cv_env_target_alias_set=${target_alias+set}
752ac_cv_env_target_alias_value=$target_alias
753ac_env_CC_set=${CC+set}
754ac_env_CC_value=$CC
755ac_cv_env_CC_set=${CC+set}
756ac_cv_env_CC_value=$CC
757ac_env_CFLAGS_set=${CFLAGS+set}
758ac_env_CFLAGS_value=$CFLAGS
759ac_cv_env_CFLAGS_set=${CFLAGS+set}
760ac_cv_env_CFLAGS_value=$CFLAGS
761ac_env_LDFLAGS_set=${LDFLAGS+set}
762ac_env_LDFLAGS_value=$LDFLAGS
763ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
764ac_cv_env_LDFLAGS_value=$LDFLAGS
765ac_env_CPPFLAGS_set=${CPPFLAGS+set}
766ac_env_CPPFLAGS_value=$CPPFLAGS
767ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
768ac_cv_env_CPPFLAGS_value=$CPPFLAGS
769ac_env_CPP_set=${CPP+set}
770ac_env_CPP_value=$CPP
771ac_cv_env_CPP_set=${CPP+set}
772ac_cv_env_CPP_value=$CPP
773
774#
775# Report the --help message.
776#
777if test "$ac_init_help" = "long"; then
778  # Omit some internal or obsolete options to make the list less imposing.
779  # This message is too long to be a string in the A/UX 3.1 sh.
780  cat <<_ACEOF
781\`configure' configures vorbisgain 0.37 to adapt to many kinds of systems.
782
783Usage: $0 [OPTION]... [VAR=VALUE]...
784
785To assign environment variables (e.g., CC, CFLAGS...), specify them as
786VAR=VALUE.  See below for descriptions of some of the useful variables.
787
788Defaults for the options are specified in brackets.
789
790Configuration:
791  -h, --help              display this help and exit
792      --help=short        display options specific to this package
793      --help=recursive    display the short help of all the included packages
794  -V, --version           display version information and exit
795  -q, --quiet, --silent   do not print \`checking...' messages
796      --cache-file=FILE   cache test results in FILE [disabled]
797  -C, --config-cache      alias for \`--cache-file=config.cache'
798  -n, --no-create         do not create output files
799      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
800
801_ACEOF
802
803  cat <<_ACEOF
804Installation directories:
805  --prefix=PREFIX         install architecture-independent files in PREFIX
806			  [$ac_default_prefix]
807  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
808			  [PREFIX]
809
810By default, \`make install' will install all the files in
811\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
812an installation prefix other than \`$ac_default_prefix' using \`--prefix',
813for instance \`--prefix=\$HOME'.
814
815For better control, use the options below.
816
817Fine tuning of the installation directories:
818  --bindir=DIR           user executables [EPREFIX/bin]
819  --sbindir=DIR          system admin executables [EPREFIX/sbin]
820  --libexecdir=DIR       program executables [EPREFIX/libexec]
821  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
822  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
823  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
824  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
825  --libdir=DIR           object code libraries [EPREFIX/lib]
826  --includedir=DIR       C header files [PREFIX/include]
827  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
828  --infodir=DIR          info documentation [PREFIX/info]
829  --mandir=DIR           man documentation [PREFIX/man]
830_ACEOF
831
832  cat <<\_ACEOF
833
834Program names:
835  --program-prefix=PREFIX            prepend PREFIX to installed program names
836  --program-suffix=SUFFIX            append SUFFIX to installed program names
837  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
838_ACEOF
839fi
840
841if test -n "$ac_init_help"; then
842  case $ac_init_help in
843     short | recursive ) echo "Configuration of vorbisgain 0.37:";;
844   esac
845  cat <<\_ACEOF
846
847Optional Features:
848  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
849  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
850  --disable-dependency-tracking Speeds up one-time builds
851  --enable-dependency-tracking  Do not reject slow dependency extractors
852  --disable-oggtest       Do not try to compile and run a test Ogg program
853  --disable-vorbistest       Do not try to compile and run a test Vorbis program
854  --enable-recursive      enable recursive processing and pattern matching
855  --disable-winsize       disable getting console window size using ioctl()
856
857Optional Packages:
858  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
859  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
860  --with-ogg-prefix=PFX   Prefix where libogg is installed (optional)
861  --with-vorbis-prefix=PFX   Prefix where libvorbis is installed (optional)
862
863Some influential environment variables:
864  CC          C compiler command
865  CFLAGS      C compiler flags
866  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
867              nonstandard directory <lib dir>
868  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
869              headers in a nonstandard directory <include dir>
870  CPP         C preprocessor
871
872Use these variables to override the choices made by `configure' or to help
873it to find libraries and programs with nonstandard names/locations.
874
875_ACEOF
876fi
877
878if test "$ac_init_help" = "recursive"; then
879  # If there are subdirs, report their specific --help.
880  ac_popdir=`pwd`
881  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
882    test -d $ac_dir || continue
883    ac_builddir=.
884
885if test "$ac_dir" != .; then
886  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
887  # A "../" for each directory in $ac_dir_suffix.
888  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
889else
890  ac_dir_suffix= ac_top_builddir=
891fi
892
893case $srcdir in
894  .)  # No --srcdir option.  We are building in place.
895    ac_srcdir=.
896    if test -z "$ac_top_builddir"; then
897       ac_top_srcdir=.
898    else
899       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
900    fi ;;
901  [\\/]* | ?:[\\/]* )  # Absolute path.
902    ac_srcdir=$srcdir$ac_dir_suffix;
903    ac_top_srcdir=$srcdir ;;
904  *) # Relative path.
905    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
906    ac_top_srcdir=$ac_top_builddir$srcdir ;;
907esac
908
909# Do not use `cd foo && pwd` to compute absolute paths, because
910# the directories may not exist.
911case `pwd` in
912.) ac_abs_builddir="$ac_dir";;
913*)
914  case "$ac_dir" in
915  .) ac_abs_builddir=`pwd`;;
916  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
917  *) ac_abs_builddir=`pwd`/"$ac_dir";;
918  esac;;
919esac
920case $ac_abs_builddir in
921.) ac_abs_top_builddir=${ac_top_builddir}.;;
922*)
923  case ${ac_top_builddir}. in
924  .) ac_abs_top_builddir=$ac_abs_builddir;;
925  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
926  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
927  esac;;
928esac
929case $ac_abs_builddir in
930.) ac_abs_srcdir=$ac_srcdir;;
931*)
932  case $ac_srcdir in
933  .) ac_abs_srcdir=$ac_abs_builddir;;
934  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
935  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
936  esac;;
937esac
938case $ac_abs_builddir in
939.) ac_abs_top_srcdir=$ac_top_srcdir;;
940*)
941  case $ac_top_srcdir in
942  .) ac_abs_top_srcdir=$ac_abs_builddir;;
943  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
944  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
945  esac;;
946esac
947
948    cd $ac_dir
949    # Check for guested configure; otherwise get Cygnus style configure.
950    if test -f $ac_srcdir/configure.gnu; then
951      echo
952      $SHELL $ac_srcdir/configure.gnu  --help=recursive
953    elif test -f $ac_srcdir/configure; then
954      echo
955      $SHELL $ac_srcdir/configure  --help=recursive
956    elif test -f $ac_srcdir/configure.ac ||
957	   test -f $ac_srcdir/configure.in; then
958      echo
959      $ac_configure --help
960    else
961      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
962    fi
963    cd $ac_popdir
964  done
965fi
966
967test -n "$ac_init_help" && exit 0
968if $ac_init_version; then
969  cat <<\_ACEOF
970vorbisgain configure 0.37
971generated by GNU Autoconf 2.59
972
973Copyright (C) 2003 Free Software Foundation, Inc.
974This configure script is free software; the Free Software Foundation
975gives unlimited permission to copy, distribute and modify it.
976_ACEOF
977  exit 0
978fi
979exec 5>config.log
980cat >&5 <<_ACEOF
981This file contains any messages produced by compilers while
982running configure, to aid debugging if configure makes a mistake.
983
984It was created by vorbisgain $as_me 0.37, which was
985generated by GNU Autoconf 2.59.  Invocation command line was
986
987  $ $0 $@
988
989_ACEOF
990{
991cat <<_ASUNAME
992## --------- ##
993## Platform. ##
994## --------- ##
995
996hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
997uname -m = `(uname -m) 2>/dev/null || echo unknown`
998uname -r = `(uname -r) 2>/dev/null || echo unknown`
999uname -s = `(uname -s) 2>/dev/null || echo unknown`
1000uname -v = `(uname -v) 2>/dev/null || echo unknown`
1001
1002/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1003/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1004
1005/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1006/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1007/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1008hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1009/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1010/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1011/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1012
1013_ASUNAME
1014
1015as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1016for as_dir in $PATH
1017do
1018  IFS=$as_save_IFS
1019  test -z "$as_dir" && as_dir=.
1020  echo "PATH: $as_dir"
1021done
1022
1023} >&5
1024
1025cat >&5 <<_ACEOF
1026
1027
1028## ----------- ##
1029## Core tests. ##
1030## ----------- ##
1031
1032_ACEOF
1033
1034
1035# Keep a trace of the command line.
1036# Strip out --no-create and --no-recursion so they do not pile up.
1037# Strip out --silent because we don't want to record it for future runs.
1038# Also quote any args containing shell meta-characters.
1039# Make two passes to allow for proper duplicate-argument suppression.
1040ac_configure_args=
1041ac_configure_args0=
1042ac_configure_args1=
1043ac_sep=
1044ac_must_keep_next=false
1045for ac_pass in 1 2
1046do
1047  for ac_arg
1048  do
1049    case $ac_arg in
1050    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1051    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1052    | -silent | --silent | --silen | --sile | --sil)
1053      continue ;;
1054    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1055      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1056    esac
1057    case $ac_pass in
1058    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1059    2)
1060      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1061      if test $ac_must_keep_next = true; then
1062	ac_must_keep_next=false # Got value, back to normal.
1063      else
1064	case $ac_arg in
1065	  *=* | --config-cache | -C | -disable-* | --disable-* \
1066	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1067	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1068	  | -with-* | --with-* | -without-* | --without-* | --x)
1069	    case "$ac_configure_args0 " in
1070	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1071	    esac
1072	    ;;
1073	  -* ) ac_must_keep_next=true ;;
1074	esac
1075      fi
1076      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1077      # Get rid of the leading space.
1078      ac_sep=" "
1079      ;;
1080    esac
1081  done
1082done
1083$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1084$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1085
1086# When interrupted or exit'd, cleanup temporary files, and complete
1087# config.log.  We remove comments because anyway the quotes in there
1088# would cause problems or look ugly.
1089# WARNING: Be sure not to use single quotes in there, as some shells,
1090# such as our DU 5.0 friend, will then `close' the trap.
1091trap 'exit_status=$?
1092  # Save into config.log some information that might help in debugging.
1093  {
1094    echo
1095
1096    cat <<\_ASBOX
1097## ---------------- ##
1098## Cache variables. ##
1099## ---------------- ##
1100_ASBOX
1101    echo
1102    # The following way of writing the cache mishandles newlines in values,
1103{
1104  (set) 2>&1 |
1105    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1106    *ac_space=\ *)
1107      sed -n \
1108	"s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1109	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1110      ;;
1111    *)
1112      sed -n \
1113	"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1114      ;;
1115    esac;
1116}
1117    echo
1118
1119    cat <<\_ASBOX
1120## ----------------- ##
1121## Output variables. ##
1122## ----------------- ##
1123_ASBOX
1124    echo
1125    for ac_var in $ac_subst_vars
1126    do
1127      eval ac_val=$`echo $ac_var`
1128      echo "$ac_var='"'"'$ac_val'"'"'"
1129    done | sort
1130    echo
1131
1132    if test -n "$ac_subst_files"; then
1133      cat <<\_ASBOX
1134## ------------- ##
1135## Output files. ##
1136## ------------- ##
1137_ASBOX
1138      echo
1139      for ac_var in $ac_subst_files
1140      do
1141	eval ac_val=$`echo $ac_var`
1142	echo "$ac_var='"'"'$ac_val'"'"'"
1143      done | sort
1144      echo
1145    fi
1146
1147    if test -s confdefs.h; then
1148      cat <<\_ASBOX
1149## ----------- ##
1150## confdefs.h. ##
1151## ----------- ##
1152_ASBOX
1153      echo
1154      sed "/^$/d" confdefs.h | sort
1155      echo
1156    fi
1157    test "$ac_signal" != 0 &&
1158      echo "$as_me: caught signal $ac_signal"
1159    echo "$as_me: exit $exit_status"
1160  } >&5
1161  rm -f core *.core &&
1162  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1163    exit $exit_status
1164     ' 0
1165for ac_signal in 1 2 13 15; do
1166  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1167done
1168ac_signal=0
1169
1170# confdefs.h avoids OS command line length limits that DEFS can exceed.
1171rm -rf conftest* confdefs.h
1172# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1173echo >confdefs.h
1174
1175# Predefined preprocessor variables.
1176
1177cat >>confdefs.h <<_ACEOF
1178#define PACKAGE_NAME "$PACKAGE_NAME"
1179_ACEOF
1180
1181
1182cat >>confdefs.h <<_ACEOF
1183#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1184_ACEOF
1185
1186
1187cat >>confdefs.h <<_ACEOF
1188#define PACKAGE_VERSION "$PACKAGE_VERSION"
1189_ACEOF
1190
1191
1192cat >>confdefs.h <<_ACEOF
1193#define PACKAGE_STRING "$PACKAGE_STRING"
1194_ACEOF
1195
1196
1197cat >>confdefs.h <<_ACEOF
1198#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1199_ACEOF
1200
1201
1202# Let the site file select an alternate cache file if it wants to.
1203# Prefer explicitly selected file to automatically selected ones.
1204if test -z "$CONFIG_SITE"; then
1205  if test "x$prefix" != xNONE; then
1206    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1207  else
1208    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1209  fi
1210fi
1211for ac_site_file in $CONFIG_SITE; do
1212  if test -r "$ac_site_file"; then
1213    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1214echo "$as_me: loading site script $ac_site_file" >&6;}
1215    sed 's/^/| /' "$ac_site_file" >&5
1216    . "$ac_site_file"
1217  fi
1218done
1219
1220if test -r "$cache_file"; then
1221  # Some versions of bash will fail to source /dev/null (special
1222  # files actually), so we avoid doing that.
1223  if test -f "$cache_file"; then
1224    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1225echo "$as_me: loading cache $cache_file" >&6;}
1226    case $cache_file in
1227      [\\/]* | ?:[\\/]* ) . $cache_file;;
1228      *)                      . ./$cache_file;;
1229    esac
1230  fi
1231else
1232  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1233echo "$as_me: creating cache $cache_file" >&6;}
1234  >$cache_file
1235fi
1236
1237# Check that the precious variables saved in the cache have kept the same
1238# value.
1239ac_cache_corrupted=false
1240for ac_var in `(set) 2>&1 |
1241	       sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1242  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1243  eval ac_new_set=\$ac_env_${ac_var}_set
1244  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1245  eval ac_new_val="\$ac_env_${ac_var}_value"
1246  case $ac_old_set,$ac_new_set in
1247    set,)
1248      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1249echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1250      ac_cache_corrupted=: ;;
1251    ,set)
1252      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1253echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1254      ac_cache_corrupted=: ;;
1255    ,);;
1256    *)
1257      if test "x$ac_old_val" != "x$ac_new_val"; then
1258	{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1259echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1260	{ echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1261echo "$as_me:   former value:  $ac_old_val" >&2;}
1262	{ echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1263echo "$as_me:   current value: $ac_new_val" >&2;}
1264	ac_cache_corrupted=:
1265      fi;;
1266  esac
1267  # Pass precious variables to config.status.
1268  if test "$ac_new_set" = set; then
1269    case $ac_new_val in
1270    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1271      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1272    *) ac_arg=$ac_var=$ac_new_val ;;
1273    esac
1274    case " $ac_configure_args " in
1275      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1276      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1277    esac
1278  fi
1279done
1280if $ac_cache_corrupted; then
1281  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1282echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1283  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1284echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1285   { (exit 1); exit 1; }; }
1286fi
1287
1288ac_ext=c
1289ac_cpp='$CPP $CPPFLAGS'
1290ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1291ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1292ac_compiler_gnu=$ac_cv_c_compiler_gnu
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321am__api_version="1.7"
1322ac_aux_dir=
1323for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1324  if test -f $ac_dir/install-sh; then
1325    ac_aux_dir=$ac_dir
1326    ac_install_sh="$ac_aux_dir/install-sh -c"
1327    break
1328  elif test -f $ac_dir/install.sh; then
1329    ac_aux_dir=$ac_dir
1330    ac_install_sh="$ac_aux_dir/install.sh -c"
1331    break
1332  elif test -f $ac_dir/shtool; then
1333    ac_aux_dir=$ac_dir
1334    ac_install_sh="$ac_aux_dir/shtool install -c"
1335    break
1336  fi
1337done
1338if test -z "$ac_aux_dir"; then
1339  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1340echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1341   { (exit 1); exit 1; }; }
1342fi
1343ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1344ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1345ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1346
1347# Find a good install program.  We prefer a C program (faster),
1348# so one script is as good as another.  But avoid the broken or
1349# incompatible versions:
1350# SysV /etc/install, /usr/sbin/install
1351# SunOS /usr/etc/install
1352# IRIX /sbin/install
1353# AIX /bin/install
1354# AmigaOS /C/install, which installs bootblocks on floppy discs
1355# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1356# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1357# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1358# OS/2's system install, which has a completely different semantic
1359# ./install, which can be erroneously created by make from ./install.sh.
1360echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1361echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1362if test -z "$INSTALL"; then
1363if test "${ac_cv_path_install+set}" = set; then
1364  echo $ECHO_N "(cached) $ECHO_C" >&6
1365else
1366  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1367for as_dir in $PATH
1368do
1369  IFS=$as_save_IFS
1370  test -z "$as_dir" && as_dir=.
1371  # Account for people who put trailing slashes in PATH elements.
1372case $as_dir/ in
1373  ./ | .// | /cC/* | \
1374  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1375  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1376  /usr/ucb/* ) ;;
1377  *)
1378    # OSF1 and SCO ODT 3.0 have their own names for install.
1379    # Don't use installbsd from OSF since it installs stuff as root
1380    # by default.
1381    for ac_prog in ginstall scoinst install; do
1382      for ac_exec_ext in '' $ac_executable_extensions; do
1383	if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1384	  if test $ac_prog = install &&
1385	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1386	    # AIX install.  It has an incompatible calling convention.
1387	    :
1388	  elif test $ac_prog = install &&
1389	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1390	    # program-specific install script used by HP pwplus--don't use.
1391	    :
1392	  else
1393	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1394	    break 3
1395	  fi
1396	fi
1397      done
1398    done
1399    ;;
1400esac
1401done
1402
1403
1404fi
1405  if test "${ac_cv_path_install+set}" = set; then
1406    INSTALL=$ac_cv_path_install
1407  else
1408    # As a last resort, use the slow shell script.  We don't cache a
1409    # path for INSTALL within a source directory, because that will
1410    # break other packages using the cache if that directory is
1411    # removed, or if the path is relative.
1412    INSTALL=$ac_install_sh
1413  fi
1414fi
1415echo "$as_me:$LINENO: result: $INSTALL" >&5
1416echo "${ECHO_T}$INSTALL" >&6
1417
1418# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1419# It thinks the first close brace ends the variable substitution.
1420test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1421
1422test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1423
1424test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1425
1426echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1427echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1428# Just in case
1429sleep 1
1430echo timestamp > conftest.file
1431# Do `set' in a subshell so we don't clobber the current shell's
1432# arguments.  Must try -L first in case configure is actually a
1433# symlink; some systems play weird games with the mod time of symlinks
1434# (eg FreeBSD returns the mod time of the symlink's containing
1435# directory).
1436if (
1437   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1438   if test "$*" = "X"; then
1439      # -L didn't work.
1440      set X `ls -t $srcdir/configure conftest.file`
1441   fi
1442   rm -f conftest.file
1443   if test "$*" != "X $srcdir/configure conftest.file" \
1444      && test "$*" != "X conftest.file $srcdir/configure"; then
1445
1446      # If neither matched, then we have a broken ls.  This can happen
1447      # if, for instance, CONFIG_SHELL is bash and it inherits a
1448      # broken ls alias from the environment.  This has actually
1449      # happened.  Such a system could not be considered "sane".
1450      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1451alias in your environment" >&5
1452echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1453alias in your environment" >&2;}
1454   { (exit 1); exit 1; }; }
1455   fi
1456
1457   test "$2" = conftest.file
1458   )
1459then
1460   # Ok.
1461   :
1462else
1463   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1464Check your system clock" >&5
1465echo "$as_me: error: newly created file is older than distributed files!
1466Check your system clock" >&2;}
1467   { (exit 1); exit 1; }; }
1468fi
1469echo "$as_me:$LINENO: result: yes" >&5
1470echo "${ECHO_T}yes" >&6
1471test "$program_prefix" != NONE &&
1472  program_transform_name="s,^,$program_prefix,;$program_transform_name"
1473# Use a double $ so make ignores it.
1474test "$program_suffix" != NONE &&
1475  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1476# Double any \ or $.  echo might interpret backslashes.
1477# By default was `s,x,x', remove it if useless.
1478cat <<\_ACEOF >conftest.sed
1479s/[\\$]/&&/g;s/;s,x,x,$//
1480_ACEOF
1481program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1482rm conftest.sed
1483
1484
1485# expand $ac_aux_dir to an absolute path
1486am_aux_dir=`cd $ac_aux_dir && pwd`
1487
1488test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1489# Use eval to expand $SHELL
1490if eval "$MISSING --run true"; then
1491  am_missing_run="$MISSING --run "
1492else
1493  am_missing_run=
1494  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1495echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1496fi
1497
1498for ac_prog in gawk mawk nawk awk
1499do
1500  # Extract the first word of "$ac_prog", so it can be a program name with args.
1501set dummy $ac_prog; ac_word=$2
1502echo "$as_me:$LINENO: checking for $ac_word" >&5
1503echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1504if test "${ac_cv_prog_AWK+set}" = set; then
1505  echo $ECHO_N "(cached) $ECHO_C" >&6
1506else
1507  if test -n "$AWK"; then
1508  ac_cv_prog_AWK="$AWK" # Let the user override the test.
1509else
1510as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1511for as_dir in $PATH
1512do
1513  IFS=$as_save_IFS
1514  test -z "$as_dir" && as_dir=.
1515  for ac_exec_ext in '' $ac_executable_extensions; do
1516  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1517    ac_cv_prog_AWK="$ac_prog"
1518    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1519    break 2
1520  fi
1521done
1522done
1523
1524fi
1525fi
1526AWK=$ac_cv_prog_AWK
1527if test -n "$AWK"; then
1528  echo "$as_me:$LINENO: result: $AWK" >&5
1529echo "${ECHO_T}$AWK" >&6
1530else
1531  echo "$as_me:$LINENO: result: no" >&5
1532echo "${ECHO_T}no" >&6
1533fi
1534
1535  test -n "$AWK" && break
1536done
1537
1538echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1539echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1540set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1541if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1542  echo $ECHO_N "(cached) $ECHO_C" >&6
1543else
1544  cat >conftest.make <<\_ACEOF
1545all:
1546	@echo 'ac_maketemp="$(MAKE)"'
1547_ACEOF
1548# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1549eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1550if test -n "$ac_maketemp"; then
1551  eval ac_cv_prog_make_${ac_make}_set=yes
1552else
1553  eval ac_cv_prog_make_${ac_make}_set=no
1554fi
1555rm -f conftest.make
1556fi
1557if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1558  echo "$as_me:$LINENO: result: yes" >&5
1559echo "${ECHO_T}yes" >&6
1560  SET_MAKE=
1561else
1562  echo "$as_me:$LINENO: result: no" >&5
1563echo "${ECHO_T}no" >&6
1564  SET_MAKE="MAKE=${MAKE-make}"
1565fi
1566
1567rm -rf .tst 2>/dev/null
1568mkdir .tst 2>/dev/null
1569if test -d .tst; then
1570  am__leading_dot=.
1571else
1572  am__leading_dot=_
1573fi
1574rmdir .tst 2>/dev/null
1575
1576 # test to see if srcdir already configured
1577if test "`cd $srcdir && pwd`" != "`pwd`" &&
1578   test -f $srcdir/config.status; then
1579  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1580echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1581   { (exit 1); exit 1; }; }
1582fi
1583
1584# test whether we have cygpath
1585if test -z "$CYGPATH_W"; then
1586  if (cygpath --version) >/dev/null 2>/dev/null; then
1587    CYGPATH_W='cygpath -w'
1588  else
1589    CYGPATH_W=echo
1590  fi
1591fi
1592
1593
1594# Define the identity of the package.
1595 PACKAGE='vorbisgain'
1596 VERSION='0.37'
1597
1598
1599cat >>confdefs.h <<_ACEOF
1600#define PACKAGE "$PACKAGE"
1601_ACEOF
1602
1603
1604cat >>confdefs.h <<_ACEOF
1605#define VERSION "$VERSION"
1606_ACEOF
1607
1608# Some tools Automake needs.
1609
1610ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1611
1612
1613AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1614
1615
1616AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1617
1618
1619AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1620
1621
1622MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1623
1624
1625AMTAR=${AMTAR-"${am_missing_run}tar"}
1626
1627install_sh=${install_sh-"$am_aux_dir/install-sh"}
1628
1629# Installed binaries are usually stripped using `strip' when the user
1630# run `make install-strip'.  However `strip' might not be the right
1631# tool to use in cross-compilation environments, therefore Automake
1632# will honor the `STRIP' environment variable to overrule this program.
1633if test "$cross_compiling" != no; then
1634  if test -n "$ac_tool_prefix"; then
1635  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1636set dummy ${ac_tool_prefix}strip; ac_word=$2
1637echo "$as_me:$LINENO: checking for $ac_word" >&5
1638echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1639if test "${ac_cv_prog_STRIP+set}" = set; then
1640  echo $ECHO_N "(cached) $ECHO_C" >&6
1641else
1642  if test -n "$STRIP"; then
1643  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1644else
1645as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1646for as_dir in $PATH
1647do
1648  IFS=$as_save_IFS
1649  test -z "$as_dir" && as_dir=.
1650  for ac_exec_ext in '' $ac_executable_extensions; do
1651  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1652    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1653    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1654    break 2
1655  fi
1656done
1657done
1658
1659fi
1660fi
1661STRIP=$ac_cv_prog_STRIP
1662if test -n "$STRIP"; then
1663  echo "$as_me:$LINENO: result: $STRIP" >&5
1664echo "${ECHO_T}$STRIP" >&6
1665else
1666  echo "$as_me:$LINENO: result: no" >&5
1667echo "${ECHO_T}no" >&6
1668fi
1669
1670fi
1671if test -z "$ac_cv_prog_STRIP"; then
1672  ac_ct_STRIP=$STRIP
1673  # Extract the first word of "strip", so it can be a program name with args.
1674set dummy strip; ac_word=$2
1675echo "$as_me:$LINENO: checking for $ac_word" >&5
1676echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1677if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1678  echo $ECHO_N "(cached) $ECHO_C" >&6
1679else
1680  if test -n "$ac_ct_STRIP"; then
1681  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1682else
1683as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1684for as_dir in $PATH
1685do
1686  IFS=$as_save_IFS
1687  test -z "$as_dir" && as_dir=.
1688  for ac_exec_ext in '' $ac_executable_extensions; do
1689  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1690    ac_cv_prog_ac_ct_STRIP="strip"
1691    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1692    break 2
1693  fi
1694done
1695done
1696
1697  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1698fi
1699fi
1700ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1701if test -n "$ac_ct_STRIP"; then
1702  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1703echo "${ECHO_T}$ac_ct_STRIP" >&6
1704else
1705  echo "$as_me:$LINENO: result: no" >&5
1706echo "${ECHO_T}no" >&6
1707fi
1708
1709  STRIP=$ac_ct_STRIP
1710else
1711  STRIP="$ac_cv_prog_STRIP"
1712fi
1713
1714fi
1715INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1716
1717# We need awk for the "check" target.  The system "awk" is bad on
1718# some platforms.
1719
1720
1721
1722          ac_config_headers="$ac_config_headers config.h"
1723
1724
1725# ------------------------------------------------
1726# Checks for programs.
1727# --------------------------------------------------
1728
1729# save $CFLAGS since AC_PROG_CC likes to insert "-g -O2"
1730# if $CLFAGS is blank
1731cflags_save="$CFLAGS"
1732ac_ext=c
1733ac_cpp='$CPP $CPPFLAGS'
1734ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1735ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1736ac_compiler_gnu=$ac_cv_c_compiler_gnu
1737if test -n "$ac_tool_prefix"; then
1738  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1739set dummy ${ac_tool_prefix}gcc; ac_word=$2
1740echo "$as_me:$LINENO: checking for $ac_word" >&5
1741echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1742if test "${ac_cv_prog_CC+set}" = set; then
1743  echo $ECHO_N "(cached) $ECHO_C" >&6
1744else
1745  if test -n "$CC"; then
1746  ac_cv_prog_CC="$CC" # Let the user override the test.
1747else
1748as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1749for as_dir in $PATH
1750do
1751  IFS=$as_save_IFS
1752  test -z "$as_dir" && as_dir=.
1753  for ac_exec_ext in '' $ac_executable_extensions; do
1754  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1755    ac_cv_prog_CC="${ac_tool_prefix}gcc"
1756    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1757    break 2
1758  fi
1759done
1760done
1761
1762fi
1763fi
1764CC=$ac_cv_prog_CC
1765if test -n "$CC"; then
1766  echo "$as_me:$LINENO: result: $CC" >&5
1767echo "${ECHO_T}$CC" >&6
1768else
1769  echo "$as_me:$LINENO: result: no" >&5
1770echo "${ECHO_T}no" >&6
1771fi
1772
1773fi
1774if test -z "$ac_cv_prog_CC"; then
1775  ac_ct_CC=$CC
1776  # Extract the first word of "gcc", so it can be a program name with args.
1777set dummy gcc; ac_word=$2
1778echo "$as_me:$LINENO: checking for $ac_word" >&5
1779echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1780if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1781  echo $ECHO_N "(cached) $ECHO_C" >&6
1782else
1783  if test -n "$ac_ct_CC"; then
1784  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1785else
1786as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1787for as_dir in $PATH
1788do
1789  IFS=$as_save_IFS
1790  test -z "$as_dir" && as_dir=.
1791  for ac_exec_ext in '' $ac_executable_extensions; do
1792  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1793    ac_cv_prog_ac_ct_CC="gcc"
1794    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1795    break 2
1796  fi
1797done
1798done
1799
1800fi
1801fi
1802ac_ct_CC=$ac_cv_prog_ac_ct_CC
1803if test -n "$ac_ct_CC"; then
1804  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1805echo "${ECHO_T}$ac_ct_CC" >&6
1806else
1807  echo "$as_me:$LINENO: result: no" >&5
1808echo "${ECHO_T}no" >&6
1809fi
1810
1811  CC=$ac_ct_CC
1812else
1813  CC="$ac_cv_prog_CC"
1814fi
1815
1816if test -z "$CC"; then
1817  if test -n "$ac_tool_prefix"; then
1818  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1819set dummy ${ac_tool_prefix}cc; ac_word=$2
1820echo "$as_me:$LINENO: checking for $ac_word" >&5
1821echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1822if test "${ac_cv_prog_CC+set}" = set; then
1823  echo $ECHO_N "(cached) $ECHO_C" >&6
1824else
1825  if test -n "$CC"; then
1826  ac_cv_prog_CC="$CC" # Let the user override the test.
1827else
1828as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1829for as_dir in $PATH
1830do
1831  IFS=$as_save_IFS
1832  test -z "$as_dir" && as_dir=.
1833  for ac_exec_ext in '' $ac_executable_extensions; do
1834  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1835    ac_cv_prog_CC="${ac_tool_prefix}cc"
1836    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1837    break 2
1838  fi
1839done
1840done
1841
1842fi
1843fi
1844CC=$ac_cv_prog_CC
1845if test -n "$CC"; then
1846  echo "$as_me:$LINENO: result: $CC" >&5
1847echo "${ECHO_T}$CC" >&6
1848else
1849  echo "$as_me:$LINENO: result: no" >&5
1850echo "${ECHO_T}no" >&6
1851fi
1852
1853fi
1854if test -z "$ac_cv_prog_CC"; then
1855  ac_ct_CC=$CC
1856  # Extract the first word of "cc", so it can be a program name with args.
1857set dummy cc; ac_word=$2
1858echo "$as_me:$LINENO: checking for $ac_word" >&5
1859echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1860if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1861  echo $ECHO_N "(cached) $ECHO_C" >&6
1862else
1863  if test -n "$ac_ct_CC"; then
1864  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1865else
1866as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1867for as_dir in $PATH
1868do
1869  IFS=$as_save_IFS
1870  test -z "$as_dir" && as_dir=.
1871  for ac_exec_ext in '' $ac_executable_extensions; do
1872  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1873    ac_cv_prog_ac_ct_CC="cc"
1874    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1875    break 2
1876  fi
1877done
1878done
1879
1880fi
1881fi
1882ac_ct_CC=$ac_cv_prog_ac_ct_CC
1883if test -n "$ac_ct_CC"; then
1884  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1885echo "${ECHO_T}$ac_ct_CC" >&6
1886else
1887  echo "$as_me:$LINENO: result: no" >&5
1888echo "${ECHO_T}no" >&6
1889fi
1890
1891  CC=$ac_ct_CC
1892else
1893  CC="$ac_cv_prog_CC"
1894fi
1895
1896fi
1897if test -z "$CC"; then
1898  # Extract the first word of "cc", so it can be a program name with args.
1899set dummy cc; ac_word=$2
1900echo "$as_me:$LINENO: checking for $ac_word" >&5
1901echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1902if test "${ac_cv_prog_CC+set}" = set; then
1903  echo $ECHO_N "(cached) $ECHO_C" >&6
1904else
1905  if test -n "$CC"; then
1906  ac_cv_prog_CC="$CC" # Let the user override the test.
1907else
1908  ac_prog_rejected=no
1909as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1910for as_dir in $PATH
1911do
1912  IFS=$as_save_IFS
1913  test -z "$as_dir" && as_dir=.
1914  for ac_exec_ext in '' $ac_executable_extensions; do
1915  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1916    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1917       ac_prog_rejected=yes
1918       continue
1919     fi
1920    ac_cv_prog_CC="cc"
1921    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1922    break 2
1923  fi
1924done
1925done
1926
1927if test $ac_prog_rejected = yes; then
1928  # We found a bogon in the path, so make sure we never use it.
1929  set dummy $ac_cv_prog_CC
1930  shift
1931  if test $# != 0; then
1932    # We chose a different compiler from the bogus one.
1933    # However, it has the same basename, so the bogon will be chosen
1934    # first if we set CC to just the basename; use the full file name.
1935    shift
1936    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1937  fi
1938fi
1939fi
1940fi
1941CC=$ac_cv_prog_CC
1942if test -n "$CC"; then
1943  echo "$as_me:$LINENO: result: $CC" >&5
1944echo "${ECHO_T}$CC" >&6
1945else
1946  echo "$as_me:$LINENO: result: no" >&5
1947echo "${ECHO_T}no" >&6
1948fi
1949
1950fi
1951if test -z "$CC"; then
1952  if test -n "$ac_tool_prefix"; then
1953  for ac_prog in cl
1954  do
1955    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1956set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1957echo "$as_me:$LINENO: checking for $ac_word" >&5
1958echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1959if test "${ac_cv_prog_CC+set}" = set; then
1960  echo $ECHO_N "(cached) $ECHO_C" >&6
1961else
1962  if test -n "$CC"; then
1963  ac_cv_prog_CC="$CC" # Let the user override the test.
1964else
1965as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1966for as_dir in $PATH
1967do
1968  IFS=$as_save_IFS
1969  test -z "$as_dir" && as_dir=.
1970  for ac_exec_ext in '' $ac_executable_extensions; do
1971  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1972    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1973    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1974    break 2
1975  fi
1976done
1977done
1978
1979fi
1980fi
1981CC=$ac_cv_prog_CC
1982if test -n "$CC"; then
1983  echo "$as_me:$LINENO: result: $CC" >&5
1984echo "${ECHO_T}$CC" >&6
1985else
1986  echo "$as_me:$LINENO: result: no" >&5
1987echo "${ECHO_T}no" >&6
1988fi
1989
1990    test -n "$CC" && break
1991  done
1992fi
1993if test -z "$CC"; then
1994  ac_ct_CC=$CC
1995  for ac_prog in cl
1996do
1997  # Extract the first word of "$ac_prog", so it can be a program name with args.
1998set dummy $ac_prog; ac_word=$2
1999echo "$as_me:$LINENO: checking for $ac_word" >&5
2000echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2001if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2002  echo $ECHO_N "(cached) $ECHO_C" >&6
2003else
2004  if test -n "$ac_ct_CC"; then
2005  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2006else
2007as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2008for as_dir in $PATH
2009do
2010  IFS=$as_save_IFS
2011  test -z "$as_dir" && as_dir=.
2012  for ac_exec_ext in '' $ac_executable_extensions; do
2013  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2014    ac_cv_prog_ac_ct_CC="$ac_prog"
2015    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2016    break 2
2017  fi
2018done
2019done
2020
2021fi
2022fi
2023ac_ct_CC=$ac_cv_prog_ac_ct_CC
2024if test -n "$ac_ct_CC"; then
2025  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2026echo "${ECHO_T}$ac_ct_CC" >&6
2027else
2028  echo "$as_me:$LINENO: result: no" >&5
2029echo "${ECHO_T}no" >&6
2030fi
2031
2032  test -n "$ac_ct_CC" && break
2033done
2034
2035  CC=$ac_ct_CC
2036fi
2037
2038fi
2039
2040
2041test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2042See \`config.log' for more details." >&5
2043echo "$as_me: error: no acceptable C compiler found in \$PATH
2044See \`config.log' for more details." >&2;}
2045   { (exit 1); exit 1; }; }
2046
2047# Provide some information about the compiler.
2048echo "$as_me:$LINENO:" \
2049     "checking for C compiler version" >&5
2050ac_compiler=`set X $ac_compile; echo $2`
2051{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2052  (eval $ac_compiler --version </dev/null >&5) 2>&5
2053  ac_status=$?
2054  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2055  (exit $ac_status); }
2056{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2057  (eval $ac_compiler -v </dev/null >&5) 2>&5
2058  ac_status=$?
2059  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2060  (exit $ac_status); }
2061{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2062  (eval $ac_compiler -V </dev/null >&5) 2>&5
2063  ac_status=$?
2064  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2065  (exit $ac_status); }
2066
2067cat >conftest.$ac_ext <<_ACEOF
2068/* confdefs.h.  */
2069_ACEOF
2070cat confdefs.h >>conftest.$ac_ext
2071cat >>conftest.$ac_ext <<_ACEOF
2072/* end confdefs.h.  */
2073
2074int
2075main ()
2076{
2077
2078  ;
2079  return 0;
2080}
2081_ACEOF
2082ac_clean_files_save=$ac_clean_files
2083ac_clean_files="$ac_clean_files a.out a.exe b.out"
2084# Try to create an executable without -o first, disregard a.out.
2085# It will help us diagnose broken compilers, and finding out an intuition
2086# of exeext.
2087echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2088echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2089ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2090if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2091  (eval $ac_link_default) 2>&5
2092  ac_status=$?
2093  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2094  (exit $ac_status); }; then
2095  # Find the output, starting from the most likely.  This scheme is
2096# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2097# resort.
2098
2099# Be careful to initialize this variable, since it used to be cached.
2100# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2101ac_cv_exeext=
2102# b.out is created by i960 compilers.
2103for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2104do
2105  test -f "$ac_file" || continue
2106  case $ac_file in
2107    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2108	;;
2109    conftest.$ac_ext )
2110	# This is the source file.
2111	;;
2112    [ab].out )
2113	# We found the default executable, but exeext='' is most
2114	# certainly right.
2115	break;;
2116    *.* )
2117	ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2118	# FIXME: I believe we export ac_cv_exeext for Libtool,
2119	# but it would be cool to find out if it's true.  Does anybody
2120	# maintain Libtool? --akim.
2121	export ac_cv_exeext
2122	break;;
2123    * )
2124	break;;
2125  esac
2126done
2127else
2128  echo "$as_me: failed program was:" >&5
2129sed 's/^/| /' conftest.$ac_ext >&5
2130
2131{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2132See \`config.log' for more details." >&5
2133echo "$as_me: error: C compiler cannot create executables
2134See \`config.log' for more details." >&2;}
2135   { (exit 77); exit 77; }; }
2136fi
2137
2138ac_exeext=$ac_cv_exeext
2139echo "$as_me:$LINENO: result: $ac_file" >&5
2140echo "${ECHO_T}$ac_file" >&6
2141
2142# Check the compiler produces executables we can run.  If not, either
2143# the compiler is broken, or we cross compile.
2144echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2145echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2146# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2147# If not cross compiling, check that we can run a simple program.
2148if test "$cross_compiling" != yes; then
2149  if { ac_try='./$ac_file'
2150  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2151  (eval $ac_try) 2>&5
2152  ac_status=$?
2153  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2154  (exit $ac_status); }; }; then
2155    cross_compiling=no
2156  else
2157    if test "$cross_compiling" = maybe; then
2158	cross_compiling=yes
2159    else
2160	{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2161If you meant to cross compile, use \`--host'.
2162See \`config.log' for more details." >&5
2163echo "$as_me: error: cannot run C compiled programs.
2164If you meant to cross compile, use \`--host'.
2165See \`config.log' for more details." >&2;}
2166   { (exit 1); exit 1; }; }
2167    fi
2168  fi
2169fi
2170echo "$as_me:$LINENO: result: yes" >&5
2171echo "${ECHO_T}yes" >&6
2172
2173rm -f a.out a.exe conftest$ac_cv_exeext b.out
2174ac_clean_files=$ac_clean_files_save
2175# Check the compiler produces executables we can run.  If not, either
2176# the compiler is broken, or we cross compile.
2177echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2178echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2179echo "$as_me:$LINENO: result: $cross_compiling" >&5
2180echo "${ECHO_T}$cross_compiling" >&6
2181
2182echo "$as_me:$LINENO: checking for suffix of executables" >&5
2183echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2184if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2185  (eval $ac_link) 2>&5
2186  ac_status=$?
2187  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2188  (exit $ac_status); }; then
2189  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2190# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2191# work properly (i.e., refer to `conftest.exe'), while it won't with
2192# `rm'.
2193for ac_file in conftest.exe conftest conftest.*; do
2194  test -f "$ac_file" || continue
2195  case $ac_file in
2196    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2197    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2198	  export ac_cv_exeext
2199	  break;;
2200    * ) break;;
2201  esac
2202done
2203else
2204  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2205See \`config.log' for more details." >&5
2206echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2207See \`config.log' for more details." >&2;}
2208   { (exit 1); exit 1; }; }
2209fi
2210
2211rm -f conftest$ac_cv_exeext
2212echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2213echo "${ECHO_T}$ac_cv_exeext" >&6
2214
2215rm -f conftest.$ac_ext
2216EXEEXT=$ac_cv_exeext
2217ac_exeext=$EXEEXT
2218echo "$as_me:$LINENO: checking for suffix of object files" >&5
2219echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2220if test "${ac_cv_objext+set}" = set; then
2221  echo $ECHO_N "(cached) $ECHO_C" >&6
2222else
2223  cat >conftest.$ac_ext <<_ACEOF
2224/* confdefs.h.  */
2225_ACEOF
2226cat confdefs.h >>conftest.$ac_ext
2227cat >>conftest.$ac_ext <<_ACEOF
2228/* end confdefs.h.  */
2229
2230int
2231main ()
2232{
2233
2234  ;
2235  return 0;
2236}
2237_ACEOF
2238rm -f conftest.o conftest.obj
2239if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2240  (eval $ac_compile) 2>&5
2241  ac_status=$?
2242  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2243  (exit $ac_status); }; then
2244  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2245  case $ac_file in
2246    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2247    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2248       break;;
2249  esac
2250done
2251else
2252  echo "$as_me: failed program was:" >&5
2253sed 's/^/| /' conftest.$ac_ext >&5
2254
2255{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2256See \`config.log' for more details." >&5
2257echo "$as_me: error: cannot compute suffix of object files: cannot compile
2258See \`config.log' for more details." >&2;}
2259   { (exit 1); exit 1; }; }
2260fi
2261
2262rm -f conftest.$ac_cv_objext conftest.$ac_ext
2263fi
2264echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2265echo "${ECHO_T}$ac_cv_objext" >&6
2266OBJEXT=$ac_cv_objext
2267ac_objext=$OBJEXT
2268echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2269echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2270if test "${ac_cv_c_compiler_gnu+set}" = set; then
2271  echo $ECHO_N "(cached) $ECHO_C" >&6
2272else
2273  cat >conftest.$ac_ext <<_ACEOF
2274/* confdefs.h.  */
2275_ACEOF
2276cat confdefs.h >>conftest.$ac_ext
2277cat >>conftest.$ac_ext <<_ACEOF
2278/* end confdefs.h.  */
2279
2280int
2281main ()
2282{
2283#ifndef __GNUC__
2284       choke me
2285#endif
2286
2287  ;
2288  return 0;
2289}
2290_ACEOF
2291rm -f conftest.$ac_objext
2292if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2293  (eval $ac_compile) 2>conftest.er1
2294  ac_status=$?
2295  grep -v '^ *+' conftest.er1 >conftest.err
2296  rm -f conftest.er1
2297  cat conftest.err >&5
2298  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2299  (exit $ac_status); } &&
2300	 { ac_try='test -z "$ac_c_werror_flag"
2301			 || test ! -s conftest.err'
2302  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2303  (eval $ac_try) 2>&5
2304  ac_status=$?
2305  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2306  (exit $ac_status); }; } &&
2307	 { ac_try='test -s conftest.$ac_objext'
2308  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2309  (eval $ac_try) 2>&5
2310  ac_status=$?
2311  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2312  (exit $ac_status); }; }; then
2313  ac_compiler_gnu=yes
2314else
2315  echo "$as_me: failed program was:" >&5
2316sed 's/^/| /' conftest.$ac_ext >&5
2317
2318ac_compiler_gnu=no
2319fi
2320rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2321ac_cv_c_compiler_gnu=$ac_compiler_gnu
2322
2323fi
2324echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2325echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2326GCC=`test $ac_compiler_gnu = yes && echo yes`
2327ac_test_CFLAGS=${CFLAGS+set}
2328ac_save_CFLAGS=$CFLAGS
2329CFLAGS="-g"
2330echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2331echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2332if test "${ac_cv_prog_cc_g+set}" = set; then
2333  echo $ECHO_N "(cached) $ECHO_C" >&6
2334else
2335  cat >conftest.$ac_ext <<_ACEOF
2336/* confdefs.h.  */
2337_ACEOF
2338cat confdefs.h >>conftest.$ac_ext
2339cat >>conftest.$ac_ext <<_ACEOF
2340/* end confdefs.h.  */
2341
2342int
2343main ()
2344{
2345
2346  ;
2347  return 0;
2348}
2349_ACEOF
2350rm -f conftest.$ac_objext
2351if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2352  (eval $ac_compile) 2>conftest.er1
2353  ac_status=$?
2354  grep -v '^ *+' conftest.er1 >conftest.err
2355  rm -f conftest.er1
2356  cat conftest.err >&5
2357  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2358  (exit $ac_status); } &&
2359	 { ac_try='test -z "$ac_c_werror_flag"
2360			 || test ! -s conftest.err'
2361  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2362  (eval $ac_try) 2>&5
2363  ac_status=$?
2364  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2365  (exit $ac_status); }; } &&
2366	 { ac_try='test -s conftest.$ac_objext'
2367  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2368  (eval $ac_try) 2>&5
2369  ac_status=$?
2370  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2371  (exit $ac_status); }; }; then
2372  ac_cv_prog_cc_g=yes
2373else
2374  echo "$as_me: failed program was:" >&5
2375sed 's/^/| /' conftest.$ac_ext >&5
2376
2377ac_cv_prog_cc_g=no
2378fi
2379rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2380fi
2381echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2382echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2383if test "$ac_test_CFLAGS" = set; then
2384  CFLAGS=$ac_save_CFLAGS
2385elif test $ac_cv_prog_cc_g = yes; then
2386  if test "$GCC" = yes; then
2387    CFLAGS="-g -O2"
2388  else
2389    CFLAGS="-g"
2390  fi
2391else
2392  if test "$GCC" = yes; then
2393    CFLAGS="-O2"
2394  else
2395    CFLAGS=
2396  fi
2397fi
2398echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2399echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2400if test "${ac_cv_prog_cc_stdc+set}" = set; then
2401  echo $ECHO_N "(cached) $ECHO_C" >&6
2402else
2403  ac_cv_prog_cc_stdc=no
2404ac_save_CC=$CC
2405cat >conftest.$ac_ext <<_ACEOF
2406/* confdefs.h.  */
2407_ACEOF
2408cat confdefs.h >>conftest.$ac_ext
2409cat >>conftest.$ac_ext <<_ACEOF
2410/* end confdefs.h.  */
2411#include <stdarg.h>
2412#include <stdio.h>
2413#include <sys/types.h>
2414#include <sys/stat.h>
2415/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2416struct buf { int x; };
2417FILE * (*rcsopen) (struct buf *, struct stat *, int);
2418static char *e (p, i)
2419     char **p;
2420     int i;
2421{
2422  return p[i];
2423}
2424static char *f (char * (*g) (char **, int), char **p, ...)
2425{
2426  char *s;
2427  va_list v;
2428  va_start (v,p);
2429  s = g (p, va_arg (v,int));
2430  va_end (v);
2431  return s;
2432}
2433
2434/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2435   function prototypes and stuff, but not '\xHH' hex character constants.
2436   These don't provoke an error unfortunately, instead are silently treated
2437   as 'x'.  The following induces an error, until -std1 is added to get
2438   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2439   array size at least.  It's necessary to write '\x00'==0 to get something
2440   that's true only with -std1.  */
2441int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2442
2443int test (int i, double x);
2444struct s1 {int (*f) (int a);};
2445struct s2 {int (*f) (double a);};
2446int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2447int argc;
2448char **argv;
2449int
2450main ()
2451{
2452return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2453  ;
2454  return 0;
2455}
2456_ACEOF
2457# Don't try gcc -ansi; that turns off useful extensions and
2458# breaks some systems' header files.
2459# AIX			-qlanglvl=ansi
2460# Ultrix and OSF/1	-std1
2461# HP-UX 10.20 and later	-Ae
2462# HP-UX older versions	-Aa -D_HPUX_SOURCE
2463# SVR4			-Xc -D__EXTENSIONS__
2464for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2465do
2466  CC="$ac_save_CC $ac_arg"
2467  rm -f conftest.$ac_objext
2468if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2469  (eval $ac_compile) 2>conftest.er1
2470  ac_status=$?
2471  grep -v '^ *+' conftest.er1 >conftest.err
2472  rm -f conftest.er1
2473  cat conftest.err >&5
2474  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2475  (exit $ac_status); } &&
2476	 { ac_try='test -z "$ac_c_werror_flag"
2477			 || test ! -s conftest.err'
2478  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2479  (eval $ac_try) 2>&5
2480  ac_status=$?
2481  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2482  (exit $ac_status); }; } &&
2483	 { ac_try='test -s conftest.$ac_objext'
2484  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2485  (eval $ac_try) 2>&5
2486  ac_status=$?
2487  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2488  (exit $ac_status); }; }; then
2489  ac_cv_prog_cc_stdc=$ac_arg
2490break
2491else
2492  echo "$as_me: failed program was:" >&5
2493sed 's/^/| /' conftest.$ac_ext >&5
2494
2495fi
2496rm -f conftest.err conftest.$ac_objext
2497done
2498rm -f conftest.$ac_ext conftest.$ac_objext
2499CC=$ac_save_CC
2500
2501fi
2502
2503case "x$ac_cv_prog_cc_stdc" in
2504  x|xno)
2505    echo "$as_me:$LINENO: result: none needed" >&5
2506echo "${ECHO_T}none needed" >&6 ;;
2507  *)
2508    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2509echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2510    CC="$CC $ac_cv_prog_cc_stdc" ;;
2511esac
2512
2513# Some people use a C++ compiler to compile C.  Since we use `exit',
2514# in C++ we need to declare it.  In case someone uses the same compiler
2515# for both compiling C and C++ we need to have the C++ compiler decide
2516# the declaration of exit, since it's the most demanding environment.
2517cat >conftest.$ac_ext <<_ACEOF
2518#ifndef __cplusplus
2519  choke me
2520#endif
2521_ACEOF
2522rm -f conftest.$ac_objext
2523if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2524  (eval $ac_compile) 2>conftest.er1
2525  ac_status=$?
2526  grep -v '^ *+' conftest.er1 >conftest.err
2527  rm -f conftest.er1
2528  cat conftest.err >&5
2529  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2530  (exit $ac_status); } &&
2531	 { ac_try='test -z "$ac_c_werror_flag"
2532			 || test ! -s conftest.err'
2533  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2534  (eval $ac_try) 2>&5
2535  ac_status=$?
2536  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2537  (exit $ac_status); }; } &&
2538	 { ac_try='test -s conftest.$ac_objext'
2539  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2540  (eval $ac_try) 2>&5
2541  ac_status=$?
2542  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2543  (exit $ac_status); }; }; then
2544  for ac_declaration in \
2545   '' \
2546   'extern "C" void std::exit (int) throw (); using std::exit;' \
2547   'extern "C" void std::exit (int); using std::exit;' \
2548   'extern "C" void exit (int) throw ();' \
2549   'extern "C" void exit (int);' \
2550   'void exit (int);'
2551do
2552  cat >conftest.$ac_ext <<_ACEOF
2553/* confdefs.h.  */
2554_ACEOF
2555cat confdefs.h >>conftest.$ac_ext
2556cat >>conftest.$ac_ext <<_ACEOF
2557/* end confdefs.h.  */
2558$ac_declaration
2559#include <stdlib.h>
2560int
2561main ()
2562{
2563exit (42);
2564  ;
2565  return 0;
2566}
2567_ACEOF
2568rm -f conftest.$ac_objext
2569if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2570  (eval $ac_compile) 2>conftest.er1
2571  ac_status=$?
2572  grep -v '^ *+' conftest.er1 >conftest.err
2573  rm -f conftest.er1
2574  cat conftest.err >&5
2575  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2576  (exit $ac_status); } &&
2577	 { ac_try='test -z "$ac_c_werror_flag"
2578			 || test ! -s conftest.err'
2579  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2580  (eval $ac_try) 2>&5
2581  ac_status=$?
2582  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2583  (exit $ac_status); }; } &&
2584	 { ac_try='test -s conftest.$ac_objext'
2585  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2586  (eval $ac_try) 2>&5
2587  ac_status=$?
2588  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2589  (exit $ac_status); }; }; then
2590  :
2591else
2592  echo "$as_me: failed program was:" >&5
2593sed 's/^/| /' conftest.$ac_ext >&5
2594
2595continue
2596fi
2597rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2598  cat >conftest.$ac_ext <<_ACEOF
2599/* confdefs.h.  */
2600_ACEOF
2601cat confdefs.h >>conftest.$ac_ext
2602cat >>conftest.$ac_ext <<_ACEOF
2603/* end confdefs.h.  */
2604$ac_declaration
2605int
2606main ()
2607{
2608exit (42);
2609  ;
2610  return 0;
2611}
2612_ACEOF
2613rm -f conftest.$ac_objext
2614if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2615  (eval $ac_compile) 2>conftest.er1
2616  ac_status=$?
2617  grep -v '^ *+' conftest.er1 >conftest.err
2618  rm -f conftest.er1
2619  cat conftest.err >&5
2620  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2621  (exit $ac_status); } &&
2622	 { ac_try='test -z "$ac_c_werror_flag"
2623			 || test ! -s conftest.err'
2624  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2625  (eval $ac_try) 2>&5
2626  ac_status=$?
2627  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2628  (exit $ac_status); }; } &&
2629	 { ac_try='test -s conftest.$ac_objext'
2630  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2631  (eval $ac_try) 2>&5
2632  ac_status=$?
2633  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2634  (exit $ac_status); }; }; then
2635  break
2636else
2637  echo "$as_me: failed program was:" >&5
2638sed 's/^/| /' conftest.$ac_ext >&5
2639
2640fi
2641rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2642done
2643rm -f conftest*
2644if test -n "$ac_declaration"; then
2645  echo '#ifdef __cplusplus' >>confdefs.h
2646  echo $ac_declaration      >>confdefs.h
2647  echo '#endif'             >>confdefs.h
2648fi
2649
2650else
2651  echo "$as_me: failed program was:" >&5
2652sed 's/^/| /' conftest.$ac_ext >&5
2653
2654fi
2655rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2656ac_ext=c
2657ac_cpp='$CPP $CPPFLAGS'
2658ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2659ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2660ac_compiler_gnu=$ac_cv_c_compiler_gnu
2661DEPDIR="${am__leading_dot}deps"
2662
2663          ac_config_commands="$ac_config_commands depfiles"
2664
2665
2666am_make=${MAKE-make}
2667cat > confinc << 'END'
2668am__doit:
2669	@echo done
2670.PHONY: am__doit
2671END
2672# If we don't find an include directive, just comment out the code.
2673echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2674echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2675am__include="#"
2676am__quote=
2677_am_result=none
2678# First try GNU make style include.
2679echo "include confinc" > confmf
2680# We grep out `Entering directory' and `Leaving directory'
2681# messages which can occur if `w' ends up in MAKEFLAGS.
2682# In particular we don't look at `^make:' because GNU make might
2683# be invoked under some other name (usually "gmake"), in which
2684# case it prints its new name instead of `make'.
2685if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2686   am__include=include
2687   am__quote=
2688   _am_result=GNU
2689fi
2690# Now try BSD make style include.
2691if test "$am__include" = "#"; then
2692   echo '.include "confinc"' > confmf
2693   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2694      am__include=.include
2695      am__quote="\""
2696      _am_result=BSD
2697   fi
2698fi
2699
2700
2701echo "$as_me:$LINENO: result: $_am_result" >&5
2702echo "${ECHO_T}$_am_result" >&6
2703rm -f confinc confmf
2704
2705# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2706if test "${enable_dependency_tracking+set}" = set; then
2707  enableval="$enable_dependency_tracking"
2708
2709fi;
2710if test "x$enable_dependency_tracking" != xno; then
2711  am_depcomp="$ac_aux_dir/depcomp"
2712  AMDEPBACKSLASH='\'
2713fi
2714
2715
2716if test "x$enable_dependency_tracking" != xno; then
2717  AMDEP_TRUE=
2718  AMDEP_FALSE='#'
2719else
2720  AMDEP_TRUE='#'
2721  AMDEP_FALSE=
2722fi
2723
2724
2725
2726
2727depcc="$CC"   am_compiler_list=
2728
2729echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2730echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2731if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2732  echo $ECHO_N "(cached) $ECHO_C" >&6
2733else
2734  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2735  # We make a subdir and do the tests there.  Otherwise we can end up
2736  # making bogus files that we don't know about and never remove.  For
2737  # instance it was reported that on HP-UX the gcc test will end up
2738  # making a dummy file named `D' -- because `-MD' means `put the output
2739  # in D'.
2740  mkdir conftest.dir
2741  # Copy depcomp to subdir because otherwise we won't find it if we're
2742  # using a relative directory.
2743  cp "$am_depcomp" conftest.dir
2744  cd conftest.dir
2745  # We will build objects and dependencies in a subdirectory because
2746  # it helps to detect inapplicable dependency modes.  For instance
2747  # both Tru64's cc and ICC support -MD to output dependencies as a
2748  # side effect of compilation, but ICC will put the dependencies in
2749  # the current directory while Tru64 will put them in the object
2750  # directory.
2751  mkdir sub
2752
2753  am_cv_CC_dependencies_compiler_type=none
2754  if test "$am_compiler_list" = ""; then
2755     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2756  fi
2757  for depmode in $am_compiler_list; do
2758    # Setup a source with many dependencies, because some compilers
2759    # like to wrap large dependency lists on column 80 (with \), and
2760    # we should not choose a depcomp mode which is confused by this.
2761    #
2762    # We need to recreate these files for each test, as the compiler may
2763    # overwrite some of them when testing with obscure command lines.
2764    # This happens at least with the AIX C compiler.
2765    : > sub/conftest.c
2766    for i in 1 2 3 4 5 6; do
2767      echo '#include "conftst'$i'.h"' >> sub/conftest.c
2768      : > sub/conftst$i.h
2769    done
2770    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2771
2772    case $depmode in
2773    nosideeffect)
2774      # after this tag, mechanisms are not by side-effect, so they'll
2775      # only be used when explicitly requested
2776      if test "x$enable_dependency_tracking" = xyes; then
2777	continue
2778      else
2779	break
2780      fi
2781      ;;
2782    none) break ;;
2783    esac
2784    # We check with `-c' and `-o' for the sake of the "dashmstdout"
2785    # mode.  It turns out that the SunPro C++ compiler does not properly
2786    # handle `-M -o', and we need to detect this.
2787    if depmode=$depmode \
2788       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
2789       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
2790       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
2791         >/dev/null 2>conftest.err &&
2792       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
2793       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
2794       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2795      # icc doesn't choke on unknown options, it will just issue warnings
2796      # (even with -Werror).  So we grep stderr for any message
2797      # that says an option was ignored.
2798      if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
2799        am_cv_CC_dependencies_compiler_type=$depmode
2800        break
2801      fi
2802    fi
2803  done
2804
2805  cd ..
2806  rm -rf conftest.dir
2807else
2808  am_cv_CC_dependencies_compiler_type=none
2809fi
2810
2811fi
2812echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
2813echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
2814CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
2815
2816
2817
2818if
2819  test "x$enable_dependency_tracking" != xno \
2820  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
2821  am__fastdepCC_TRUE=
2822  am__fastdepCC_FALSE='#'
2823else
2824  am__fastdepCC_TRUE='#'
2825  am__fastdepCC_FALSE=
2826fi
2827
2828
2829CFLAGS="$cflags_save"
2830
2831# --------------------------------------------------
2832# Set build flags based on environment
2833# --------------------------------------------------
2834
2835cflags_save="$CFLAGS"
2836ldflags_save="$LDFLAGS"
2837if test -z "$GCC"; then
2838        case $host in
2839        *)
2840                DEBUG="-g"
2841                CFLAGS=""
2842                PROFILE="-g -p"
2843                ;;
2844        esac
2845else
2846        case $host in
2847        *)
2848                DEBUG="-g -Wall -fsigned-char"
2849                CFLAGS="-fsigned-char"
2850                PROFILE="-g -pg -fsigned-char"
2851                ;;
2852        esac
2853fi
2854CFLAGS="$CFLAGS $cflags_save"
2855DEBUG="$DEBUG $cflags_save"
2856PROFILE="$PROFILE $cflags_save"
2857LDFLAGS="$LDFLAGS $ldflags_save"
2858
2859# --------------------------------------------------
2860# Check for libraries
2861# --------------------------------------------------
2862
2863
2864
2865# Check whether --with-ogg-prefix or --without-ogg-prefix was given.
2866if test "${with_ogg_prefix+set}" = set; then
2867  withval="$with_ogg_prefix"
2868  ogg_prefix="$withval"
2869else
2870  ogg_prefix=""
2871fi;
2872# Check whether --enable-oggtest or --disable-oggtest was given.
2873if test "${enable_oggtest+set}" = set; then
2874  enableval="$enable_oggtest"
2875
2876else
2877  enable_oggtest=yes
2878fi;
2879
2880  if test x$ogg_prefix != x ; then
2881    ogg_args="$ogg_args --prefix=$ogg_prefix"
2882    OGG_CFLAGS="-I$ogg_prefix/include"
2883    OGG_LIBS="-L$ogg_prefix/lib"
2884  fi
2885
2886  OGG_LIBS="$OGG_LIBS -logg"
2887
2888  echo "$as_me:$LINENO: checking for Ogg" >&5
2889echo $ECHO_N "checking for Ogg... $ECHO_C" >&6
2890  no_ogg=""
2891
2892
2893  if test "x$enable_oggtest" = "xyes" ; then
2894    ac_save_CFLAGS="$CFLAGS"
2895    ac_save_LIBS="$LIBS"
2896    CFLAGS="$CFLAGS $OGG_CFLAGS"
2897    LIBS="$LIBS $OGG_LIBS"
2898      rm -f conf.oggtest
2899      if test "$cross_compiling" = yes; then
2900  echo $ac_n "cross compiling; assumed OK... $ac_c"
2901else
2902  cat >conftest.$ac_ext <<_ACEOF
2903/* confdefs.h.  */
2904_ACEOF
2905cat confdefs.h >>conftest.$ac_ext
2906cat >>conftest.$ac_ext <<_ACEOF
2907/* end confdefs.h.  */
2908
2909#include <stdio.h>
2910#include <stdlib.h>
2911#include <string.h>
2912#include <ogg/ogg.h>
2913
2914int main ()
2915{
2916  system("touch conf.oggtest");
2917  return 0;
2918}
2919
2920
2921_ACEOF
2922rm -f conftest$ac_exeext
2923if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2924  (eval $ac_link) 2>&5
2925  ac_status=$?
2926  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2927  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2928  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2929  (eval $ac_try) 2>&5
2930  ac_status=$?
2931  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2932  (exit $ac_status); }; }; then
2933  :
2934else
2935  echo "$as_me: program exited with status $ac_status" >&5
2936echo "$as_me: failed program was:" >&5
2937sed 's/^/| /' conftest.$ac_ext >&5
2938
2939( exit $ac_status )
2940no_ogg=yes
2941fi
2942rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2943fi
2944       CFLAGS="$ac_save_CFLAGS"
2945       LIBS="$ac_save_LIBS"
2946  fi
2947
2948  if test "x$no_ogg" = x ; then
2949     echo "$as_me:$LINENO: result: yes" >&5
2950echo "${ECHO_T}yes" >&6
2951     :
2952  else
2953     echo "$as_me:$LINENO: result: no" >&5
2954echo "${ECHO_T}no" >&6
2955     if test -f conf.oggtest ; then
2956       :
2957     else
2958       echo "*** Could not run Ogg test program, checking why..."
2959       CFLAGS="$CFLAGS $OGG_CFLAGS"
2960       LIBS="$LIBS $OGG_LIBS"
2961       cat >conftest.$ac_ext <<_ACEOF
2962/* confdefs.h.  */
2963_ACEOF
2964cat confdefs.h >>conftest.$ac_ext
2965cat >>conftest.$ac_ext <<_ACEOF
2966/* end confdefs.h.  */
2967
2968#include <stdio.h>
2969#include <ogg/ogg.h>
2970
2971int
2972main ()
2973{
2974 return 0;
2975  ;
2976  return 0;
2977}
2978_ACEOF
2979rm -f conftest.$ac_objext conftest$ac_exeext
2980if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2981  (eval $ac_link) 2>conftest.er1
2982  ac_status=$?
2983  grep -v '^ *+' conftest.er1 >conftest.err
2984  rm -f conftest.er1
2985  cat conftest.err >&5
2986  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2987  (exit $ac_status); } &&
2988	 { ac_try='test -z "$ac_c_werror_flag"
2989			 || test ! -s conftest.err'
2990  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2991  (eval $ac_try) 2>&5
2992  ac_status=$?
2993  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2994  (exit $ac_status); }; } &&
2995	 { ac_try='test -s conftest$ac_exeext'
2996  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2997  (eval $ac_try) 2>&5
2998  ac_status=$?
2999  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3000  (exit $ac_status); }; }; then
3001   echo "*** The test program compiled, but did not run. This usually means"
3002       echo "*** that the run-time linker is not finding Ogg or finding the wrong"
3003       echo "*** version of Ogg. If it is not finding Ogg, you'll need to set your"
3004       echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
3005       echo "*** to the installed location  Also, make sure you have run ldconfig if that"
3006       echo "*** is required on your system"
3007       echo "***"
3008       echo "*** If you have an old version installed, it is best to remove it, although"
3009       echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
3010else
3011  echo "$as_me: failed program was:" >&5
3012sed 's/^/| /' conftest.$ac_ext >&5
3013
3014 echo "*** The test program failed to compile or link. See the file config.log for the"
3015       echo "*** exact error that occured. This usually means Ogg was incorrectly installed"
3016       echo "*** or that you have moved Ogg since it was installed. In the latter case, you"
3017       echo "*** may want to edit the ogg-config script: $OGG_CONFIG"
3018fi
3019rm -f conftest.err conftest.$ac_objext \
3020      conftest$ac_exeext conftest.$ac_ext
3021       CFLAGS="$ac_save_CFLAGS"
3022       LIBS="$ac_save_LIBS"
3023     fi
3024     OGG_CFLAGS=""
3025     OGG_LIBS=""
3026     { { echo "$as_me:$LINENO: error: *** libogg not installed - please install first ***" >&5
3027echo "$as_me: error: *** libogg not installed - please install first ***" >&2;}
3028   { (exit 1); exit 1; }; }
3029  fi
3030
3031
3032  rm -f conf.oggtest
3033
3034
3035# Check whether --with-vorbis-prefix or --without-vorbis-prefix was given.
3036if test "${with_vorbis_prefix+set}" = set; then
3037  withval="$with_vorbis_prefix"
3038  vorbis_prefix="$withval"
3039else
3040  vorbis_prefix=""
3041fi;
3042# Check whether --enable-vorbistest or --disable-vorbistest was given.
3043if test "${enable_vorbistest+set}" = set; then
3044  enableval="$enable_vorbistest"
3045
3046else
3047  enable_vorbistest=yes
3048fi;
3049
3050  if test x$vorbis_prefix != x ; then
3051    vorbis_args="$vorbis_args --prefix=$vorbis_prefix"
3052    VORBIS_CFLAGS="-I$vorbis_prefix/include"
3053    VORBIS_LIBS="-L$vorbis_prefix/lib"
3054  fi
3055
3056  VORBIS_LIBS="$VORBIS_LIBS -lvorbisfile -lvorbis -lm"
3057
3058  echo "$as_me:$LINENO: checking for Vorbis" >&5
3059echo $ECHO_N "checking for Vorbis... $ECHO_C" >&6
3060  no_vorbis=""
3061
3062
3063  if test "x$enable_vorbistest" = "xyes" ; then
3064    ac_save_CFLAGS="$CFLAGS"
3065    ac_save_LIBS="$LIBS"
3066    CFLAGS="$CFLAGS $VORBIS_CFLAGS"
3067    LIBS="$LIBS $VORBIS_LIBS $OGG_LIBS"
3068      rm -f conf.vorbistest
3069      if test "$cross_compiling" = yes; then
3070  echo $ac_n "cross compiling; assumed OK... $ac_c"
3071else
3072  cat >conftest.$ac_ext <<_ACEOF
3073/* confdefs.h.  */
3074_ACEOF
3075cat confdefs.h >>conftest.$ac_ext
3076cat >>conftest.$ac_ext <<_ACEOF
3077/* end confdefs.h.  */
3078
3079#include <stdio.h>
3080#include <stdlib.h>
3081#include <string.h>
3082#include <vorbis/codec.h>
3083
3084int main ()
3085{
3086  system("touch conf.vorbistest");
3087  return 0;
3088}
3089
3090
3091_ACEOF
3092rm -f conftest$ac_exeext
3093if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3094  (eval $ac_link) 2>&5
3095  ac_status=$?
3096  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3097  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3098  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3099  (eval $ac_try) 2>&5
3100  ac_status=$?
3101  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3102  (exit $ac_status); }; }; then
3103  :
3104else
3105  echo "$as_me: program exited with status $ac_status" >&5
3106echo "$as_me: failed program was:" >&5
3107sed 's/^/| /' conftest.$ac_ext >&5
3108
3109( exit $ac_status )
3110no_vorbis=yes
3111fi
3112rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3113fi
3114       CFLAGS="$ac_save_CFLAGS"
3115       LIBS="$ac_save_LIBS"
3116  fi
3117
3118  if test "x$no_vorbis" = x ; then
3119     echo "$as_me:$LINENO: result: yes" >&5
3120echo "${ECHO_T}yes" >&6
3121     :
3122  else
3123     echo "$as_me:$LINENO: result: no" >&5
3124echo "${ECHO_T}no" >&6
3125     if test -f conf.vorbistest ; then
3126       :
3127     else
3128       echo "*** Could not run Vorbis test program, checking why..."
3129       CFLAGS="$CFLAGS $VORBIS_CFLAGS"
3130       LIBS="$LIBS $VORBIS_LIBS $OGG_LIBS"
3131       cat >conftest.$ac_ext <<_ACEOF
3132/* confdefs.h.  */
3133_ACEOF
3134cat confdefs.h >>conftest.$ac_ext
3135cat >>conftest.$ac_ext <<_ACEOF
3136/* end confdefs.h.  */
3137
3138#include <stdio.h>
3139#include <vorbis/codec.h>
3140
3141int
3142main ()
3143{
3144 return 0;
3145  ;
3146  return 0;
3147}
3148_ACEOF
3149rm -f conftest.$ac_objext conftest$ac_exeext
3150if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3151  (eval $ac_link) 2>conftest.er1
3152  ac_status=$?
3153  grep -v '^ *+' conftest.er1 >conftest.err
3154  rm -f conftest.er1
3155  cat conftest.err >&5
3156  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3157  (exit $ac_status); } &&
3158	 { ac_try='test -z "$ac_c_werror_flag"
3159			 || test ! -s conftest.err'
3160  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3161  (eval $ac_try) 2>&5
3162  ac_status=$?
3163  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3164  (exit $ac_status); }; } &&
3165	 { ac_try='test -s conftest$ac_exeext'
3166  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3167  (eval $ac_try) 2>&5
3168  ac_status=$?
3169  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3170  (exit $ac_status); }; }; then
3171   echo "*** The test program compiled, but did not run. This usually means"
3172       echo "*** that the run-time linker is not finding Vorbis or finding the wrong"
3173       echo "*** version of Vorbis. If it is not finding Vorbis, you'll need to set your"
3174       echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
3175       echo "*** to the installed location  Also, make sure you have run ldconfig if that"
3176       echo "*** is required on your system"
3177       echo "***"
3178       echo "*** If you have an old version installed, it is best to remove it, although"
3179       echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
3180else
3181  echo "$as_me: failed program was:" >&5
3182sed 's/^/| /' conftest.$ac_ext >&5
3183
3184 echo "*** The test program failed to compile or link. See the file config.log for the"
3185       echo "*** exact error that occured. This usually means Vorbis was incorrectly installed"
3186       echo "*** or that you have moved Vorbis since it was installed."
3187fi
3188rm -f conftest.err conftest.$ac_objext \
3189      conftest$ac_exeext conftest.$ac_ext
3190       CFLAGS="$ac_save_CFLAGS"
3191       LIBS="$ac_save_LIBS"
3192     fi
3193     VORBIS_CFLAGS=""
3194     VORBIS_LIBS=""
3195     { { echo "$as_me:$LINENO: error: *** libvorbis not installed - please install first ***" >&5
3196echo "$as_me: error: *** libvorbis not installed - please install first ***" >&2;}
3197   { (exit 1); exit 1; }; }
3198  fi
3199
3200
3201  rm -f conf.vorbistest
3202
3203
3204# --------------------------------------------------
3205# Checks for header files.
3206# --------------------------------------------------
3207
3208
3209
3210
3211
3212
3213ac_header_dirent=no
3214for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
3215  as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
3216echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
3217echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
3218if eval "test \"\${$as_ac_Header+set}\" = set"; then
3219  echo $ECHO_N "(cached) $ECHO_C" >&6
3220else
3221  cat >conftest.$ac_ext <<_ACEOF
3222/* confdefs.h.  */
3223_ACEOF
3224cat confdefs.h >>conftest.$ac_ext
3225cat >>conftest.$ac_ext <<_ACEOF
3226/* end confdefs.h.  */
3227#include <sys/types.h>
3228#include <$ac_hdr>
3229
3230int
3231main ()
3232{
3233if ((DIR *) 0)
3234return 0;
3235  ;
3236  return 0;
3237}
3238_ACEOF
3239rm -f conftest.$ac_objext
3240if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3241  (eval $ac_compile) 2>conftest.er1
3242  ac_status=$?
3243  grep -v '^ *+' conftest.er1 >conftest.err
3244  rm -f conftest.er1
3245  cat conftest.err >&5
3246  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3247  (exit $ac_status); } &&
3248	 { ac_try='test -z "$ac_c_werror_flag"
3249			 || test ! -s conftest.err'
3250  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3251  (eval $ac_try) 2>&5
3252  ac_status=$?
3253  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3254  (exit $ac_status); }; } &&
3255	 { ac_try='test -s conftest.$ac_objext'
3256  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3257  (eval $ac_try) 2>&5
3258  ac_status=$?
3259  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3260  (exit $ac_status); }; }; then
3261  eval "$as_ac_Header=yes"
3262else
3263  echo "$as_me: failed program was:" >&5
3264sed 's/^/| /' conftest.$ac_ext >&5
3265
3266eval "$as_ac_Header=no"
3267fi
3268rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3269fi
3270echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3271echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3272if test `eval echo '${'$as_ac_Header'}'` = yes; then
3273  cat >>confdefs.h <<_ACEOF
3274#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
3275_ACEOF
3276
3277ac_header_dirent=$ac_hdr; break
3278fi
3279
3280done
3281# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
3282if test $ac_header_dirent = dirent.h; then
3283  echo "$as_me:$LINENO: checking for library containing opendir" >&5
3284echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
3285if test "${ac_cv_search_opendir+set}" = set; then
3286  echo $ECHO_N "(cached) $ECHO_C" >&6
3287else
3288  ac_func_search_save_LIBS=$LIBS
3289ac_cv_search_opendir=no
3290cat >conftest.$ac_ext <<_ACEOF
3291/* confdefs.h.  */
3292_ACEOF
3293cat confdefs.h >>conftest.$ac_ext
3294cat >>conftest.$ac_ext <<_ACEOF
3295/* end confdefs.h.  */
3296
3297/* Override any gcc2 internal prototype to avoid an error.  */
3298#ifdef __cplusplus
3299extern "C"
3300#endif
3301/* We use char because int might match the return type of a gcc2
3302   builtin and then its argument prototype would still apply.  */
3303char opendir ();
3304int
3305main ()
3306{
3307opendir ();
3308  ;
3309  return 0;
3310}
3311_ACEOF
3312rm -f conftest.$ac_objext conftest$ac_exeext
3313if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3314  (eval $ac_link) 2>conftest.er1
3315  ac_status=$?
3316  grep -v '^ *+' conftest.er1 >conftest.err
3317  rm -f conftest.er1
3318  cat conftest.err >&5
3319  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3320  (exit $ac_status); } &&
3321	 { ac_try='test -z "$ac_c_werror_flag"
3322			 || test ! -s conftest.err'
3323  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3324  (eval $ac_try) 2>&5
3325  ac_status=$?
3326  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3327  (exit $ac_status); }; } &&
3328	 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
3334  ac_cv_search_opendir="none required"
3335else
3336  echo "$as_me: failed program was:" >&5
3337sed 's/^/| /' conftest.$ac_ext >&5
3338
3339fi
3340rm -f conftest.err conftest.$ac_objext \
3341      conftest$ac_exeext conftest.$ac_ext
3342if test "$ac_cv_search_opendir" = no; then
3343  for ac_lib in dir; do
3344    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
3345    cat >conftest.$ac_ext <<_ACEOF
3346/* confdefs.h.  */
3347_ACEOF
3348cat confdefs.h >>conftest.$ac_ext
3349cat >>conftest.$ac_ext <<_ACEOF
3350/* end confdefs.h.  */
3351
3352/* Override any gcc2 internal prototype to avoid an error.  */
3353#ifdef __cplusplus
3354extern "C"
3355#endif
3356/* We use char because int might match the return type of a gcc2
3357   builtin and then its argument prototype would still apply.  */
3358char opendir ();
3359int
3360main ()
3361{
3362opendir ();
3363  ;
3364  return 0;
3365}
3366_ACEOF
3367rm -f conftest.$ac_objext conftest$ac_exeext
3368if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3369  (eval $ac_link) 2>conftest.er1
3370  ac_status=$?
3371  grep -v '^ *+' conftest.er1 >conftest.err
3372  rm -f conftest.er1
3373  cat conftest.err >&5
3374  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3375  (exit $ac_status); } &&
3376	 { ac_try='test -z "$ac_c_werror_flag"
3377			 || test ! -s conftest.err'
3378  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3379  (eval $ac_try) 2>&5
3380  ac_status=$?
3381  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3382  (exit $ac_status); }; } &&
3383	 { ac_try='test -s conftest$ac_exeext'
3384  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3385  (eval $ac_try) 2>&5
3386  ac_status=$?
3387  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3388  (exit $ac_status); }; }; then
3389  ac_cv_search_opendir="-l$ac_lib"
3390break
3391else
3392  echo "$as_me: failed program was:" >&5
3393sed 's/^/| /' conftest.$ac_ext >&5
3394
3395fi
3396rm -f conftest.err conftest.$ac_objext \
3397      conftest$ac_exeext conftest.$ac_ext
3398  done
3399fi
3400LIBS=$ac_func_search_save_LIBS
3401fi
3402echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
3403echo "${ECHO_T}$ac_cv_search_opendir" >&6
3404if test "$ac_cv_search_opendir" != no; then
3405  test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
3406
3407fi
3408
3409else
3410  echo "$as_me:$LINENO: checking for library containing opendir" >&5
3411echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
3412if test "${ac_cv_search_opendir+set}" = set; then
3413  echo $ECHO_N "(cached) $ECHO_C" >&6
3414else
3415  ac_func_search_save_LIBS=$LIBS
3416ac_cv_search_opendir=no
3417cat >conftest.$ac_ext <<_ACEOF
3418/* confdefs.h.  */
3419_ACEOF
3420cat confdefs.h >>conftest.$ac_ext
3421cat >>conftest.$ac_ext <<_ACEOF
3422/* end confdefs.h.  */
3423
3424/* Override any gcc2 internal prototype to avoid an error.  */
3425#ifdef __cplusplus
3426extern "C"
3427#endif
3428/* We use char because int might match the return type of a gcc2
3429   builtin and then its argument prototype would still apply.  */
3430char opendir ();
3431int
3432main ()
3433{
3434opendir ();
3435  ;
3436  return 0;
3437}
3438_ACEOF
3439rm -f conftest.$ac_objext conftest$ac_exeext
3440if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3441  (eval $ac_link) 2>conftest.er1
3442  ac_status=$?
3443  grep -v '^ *+' conftest.er1 >conftest.err
3444  rm -f conftest.er1
3445  cat conftest.err >&5
3446  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3447  (exit $ac_status); } &&
3448	 { ac_try='test -z "$ac_c_werror_flag"
3449			 || test ! -s conftest.err'
3450  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3451  (eval $ac_try) 2>&5
3452  ac_status=$?
3453  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3454  (exit $ac_status); }; } &&
3455	 { ac_try='test -s conftest$ac_exeext'
3456  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3457  (eval $ac_try) 2>&5
3458  ac_status=$?
3459  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3460  (exit $ac_status); }; }; then
3461  ac_cv_search_opendir="none required"
3462else
3463  echo "$as_me: failed program was:" >&5
3464sed 's/^/| /' conftest.$ac_ext >&5
3465
3466fi
3467rm -f conftest.err conftest.$ac_objext \
3468      conftest$ac_exeext conftest.$ac_ext
3469if test "$ac_cv_search_opendir" = no; then
3470  for ac_lib in x; do
3471    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
3472    cat >conftest.$ac_ext <<_ACEOF
3473/* confdefs.h.  */
3474_ACEOF
3475cat confdefs.h >>conftest.$ac_ext
3476cat >>conftest.$ac_ext <<_ACEOF
3477/* end confdefs.h.  */
3478
3479/* Override any gcc2 internal prototype to avoid an error.  */
3480#ifdef __cplusplus
3481extern "C"
3482#endif
3483/* We use char because int might match the return type of a gcc2
3484   builtin and then its argument prototype would still apply.  */
3485char opendir ();
3486int
3487main ()
3488{
3489opendir ();
3490  ;
3491  return 0;
3492}
3493_ACEOF
3494rm -f conftest.$ac_objext conftest$ac_exeext
3495if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3496  (eval $ac_link) 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_exeext'
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_search_opendir="-l$ac_lib"
3517break
3518else
3519  echo "$as_me: failed program was:" >&5
3520sed 's/^/| /' conftest.$ac_ext >&5
3521
3522fi
3523rm -f conftest.err conftest.$ac_objext \
3524      conftest$ac_exeext conftest.$ac_ext
3525  done
3526fi
3527LIBS=$ac_func_search_save_LIBS
3528fi
3529echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
3530echo "${ECHO_T}$ac_cv_search_opendir" >&6
3531if test "$ac_cv_search_opendir" != no; then
3532  test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
3533
3534fi
3535
3536fi
3537
3538ac_ext=c
3539ac_cpp='$CPP $CPPFLAGS'
3540ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3541ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3542ac_compiler_gnu=$ac_cv_c_compiler_gnu
3543echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3544echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3545# On Suns, sometimes $CPP names a directory.
3546if test -n "$CPP" && test -d "$CPP"; then
3547  CPP=
3548fi
3549if test -z "$CPP"; then
3550  if test "${ac_cv_prog_CPP+set}" = set; then
3551  echo $ECHO_N "(cached) $ECHO_C" >&6
3552else
3553      # Double quotes because CPP needs to be expanded
3554    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3555    do
3556      ac_preproc_ok=false
3557for ac_c_preproc_warn_flag in '' yes
3558do
3559  # Use a header file that comes with gcc, so configuring glibc
3560  # with a fresh cross-compiler works.
3561  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3562  # <limits.h> exists even on freestanding compilers.
3563  # On the NeXT, cc -E runs the code through the compiler's parser,
3564  # not just through cpp. "Syntax error" is here to catch this case.
3565  cat >conftest.$ac_ext <<_ACEOF
3566/* confdefs.h.  */
3567_ACEOF
3568cat confdefs.h >>conftest.$ac_ext
3569cat >>conftest.$ac_ext <<_ACEOF
3570/* end confdefs.h.  */
3571#ifdef __STDC__
3572# include <limits.h>
3573#else
3574# include <assert.h>
3575#endif
3576		     Syntax error
3577_ACEOF
3578if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3579  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3580  ac_status=$?
3581  grep -v '^ *+' conftest.er1 >conftest.err
3582  rm -f conftest.er1
3583  cat conftest.err >&5
3584  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3585  (exit $ac_status); } >/dev/null; then
3586  if test -s conftest.err; then
3587    ac_cpp_err=$ac_c_preproc_warn_flag
3588    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3589  else
3590    ac_cpp_err=
3591  fi
3592else
3593  ac_cpp_err=yes
3594fi
3595if test -z "$ac_cpp_err"; then
3596  :
3597else
3598  echo "$as_me: failed program was:" >&5
3599sed 's/^/| /' conftest.$ac_ext >&5
3600
3601  # Broken: fails on valid input.
3602continue
3603fi
3604rm -f conftest.err conftest.$ac_ext
3605
3606  # OK, works on sane cases.  Now check whether non-existent headers
3607  # can be detected and how.
3608  cat >conftest.$ac_ext <<_ACEOF
3609/* confdefs.h.  */
3610_ACEOF
3611cat confdefs.h >>conftest.$ac_ext
3612cat >>conftest.$ac_ext <<_ACEOF
3613/* end confdefs.h.  */
3614#include <ac_nonexistent.h>
3615_ACEOF
3616if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3617  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3618  ac_status=$?
3619  grep -v '^ *+' conftest.er1 >conftest.err
3620  rm -f conftest.er1
3621  cat conftest.err >&5
3622  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3623  (exit $ac_status); } >/dev/null; then
3624  if test -s conftest.err; then
3625    ac_cpp_err=$ac_c_preproc_warn_flag
3626    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3627  else
3628    ac_cpp_err=
3629  fi
3630else
3631  ac_cpp_err=yes
3632fi
3633if test -z "$ac_cpp_err"; then
3634  # Broken: success on invalid input.
3635continue
3636else
3637  echo "$as_me: failed program was:" >&5
3638sed 's/^/| /' conftest.$ac_ext >&5
3639
3640  # Passes both tests.
3641ac_preproc_ok=:
3642break
3643fi
3644rm -f conftest.err conftest.$ac_ext
3645
3646done
3647# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3648rm -f conftest.err conftest.$ac_ext
3649if $ac_preproc_ok; then
3650  break
3651fi
3652
3653    done
3654    ac_cv_prog_CPP=$CPP
3655
3656fi
3657  CPP=$ac_cv_prog_CPP
3658else
3659  ac_cv_prog_CPP=$CPP
3660fi
3661echo "$as_me:$LINENO: result: $CPP" >&5
3662echo "${ECHO_T}$CPP" >&6
3663ac_preproc_ok=false
3664for ac_c_preproc_warn_flag in '' yes
3665do
3666  # Use a header file that comes with gcc, so configuring glibc
3667  # with a fresh cross-compiler works.
3668  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3669  # <limits.h> exists even on freestanding compilers.
3670  # On the NeXT, cc -E runs the code through the compiler's parser,
3671  # not just through cpp. "Syntax error" is here to catch this case.
3672  cat >conftest.$ac_ext <<_ACEOF
3673/* confdefs.h.  */
3674_ACEOF
3675cat confdefs.h >>conftest.$ac_ext
3676cat >>conftest.$ac_ext <<_ACEOF
3677/* end confdefs.h.  */
3678#ifdef __STDC__
3679# include <limits.h>
3680#else
3681# include <assert.h>
3682#endif
3683		     Syntax error
3684_ACEOF
3685if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3686  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3687  ac_status=$?
3688  grep -v '^ *+' conftest.er1 >conftest.err
3689  rm -f conftest.er1
3690  cat conftest.err >&5
3691  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3692  (exit $ac_status); } >/dev/null; then
3693  if test -s conftest.err; then
3694    ac_cpp_err=$ac_c_preproc_warn_flag
3695    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3696  else
3697    ac_cpp_err=
3698  fi
3699else
3700  ac_cpp_err=yes
3701fi
3702if test -z "$ac_cpp_err"; then
3703  :
3704else
3705  echo "$as_me: failed program was:" >&5
3706sed 's/^/| /' conftest.$ac_ext >&5
3707
3708  # Broken: fails on valid input.
3709continue
3710fi
3711rm -f conftest.err conftest.$ac_ext
3712
3713  # OK, works on sane cases.  Now check whether non-existent headers
3714  # can be detected and how.
3715  cat >conftest.$ac_ext <<_ACEOF
3716/* confdefs.h.  */
3717_ACEOF
3718cat confdefs.h >>conftest.$ac_ext
3719cat >>conftest.$ac_ext <<_ACEOF
3720/* end confdefs.h.  */
3721#include <ac_nonexistent.h>
3722_ACEOF
3723if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3724  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3725  ac_status=$?
3726  grep -v '^ *+' conftest.er1 >conftest.err
3727  rm -f conftest.er1
3728  cat conftest.err >&5
3729  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3730  (exit $ac_status); } >/dev/null; then
3731  if test -s conftest.err; then
3732    ac_cpp_err=$ac_c_preproc_warn_flag
3733    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3734  else
3735    ac_cpp_err=
3736  fi
3737else
3738  ac_cpp_err=yes
3739fi
3740if test -z "$ac_cpp_err"; then
3741  # Broken: success on invalid input.
3742continue
3743else
3744  echo "$as_me: failed program was:" >&5
3745sed 's/^/| /' conftest.$ac_ext >&5
3746
3747  # Passes both tests.
3748ac_preproc_ok=:
3749break
3750fi
3751rm -f conftest.err conftest.$ac_ext
3752
3753done
3754# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3755rm -f conftest.err conftest.$ac_ext
3756if $ac_preproc_ok; then
3757  :
3758else
3759  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3760See \`config.log' for more details." >&5
3761echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3762See \`config.log' for more details." >&2;}
3763   { (exit 1); exit 1; }; }
3764fi
3765
3766ac_ext=c
3767ac_cpp='$CPP $CPPFLAGS'
3768ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3769ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3770ac_compiler_gnu=$ac_cv_c_compiler_gnu
3771
3772
3773echo "$as_me:$LINENO: checking for egrep" >&5
3774echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3775if test "${ac_cv_prog_egrep+set}" = set; then
3776  echo $ECHO_N "(cached) $ECHO_C" >&6
3777else
3778  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3779    then ac_cv_prog_egrep='grep -E'
3780    else ac_cv_prog_egrep='egrep'
3781    fi
3782fi
3783echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3784echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3785 EGREP=$ac_cv_prog_egrep
3786
3787
3788echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3789echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3790if test "${ac_cv_header_stdc+set}" = set; then
3791  echo $ECHO_N "(cached) $ECHO_C" >&6
3792else
3793  cat >conftest.$ac_ext <<_ACEOF
3794/* confdefs.h.  */
3795_ACEOF
3796cat confdefs.h >>conftest.$ac_ext
3797cat >>conftest.$ac_ext <<_ACEOF
3798/* end confdefs.h.  */
3799#include <stdlib.h>
3800#include <stdarg.h>
3801#include <string.h>
3802#include <float.h>
3803
3804int
3805main ()
3806{
3807
3808  ;
3809  return 0;
3810}
3811_ACEOF
3812rm -f conftest.$ac_objext
3813if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3814  (eval $ac_compile) 2>conftest.er1
3815  ac_status=$?
3816  grep -v '^ *+' conftest.er1 >conftest.err
3817  rm -f conftest.er1
3818  cat conftest.err >&5
3819  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3820  (exit $ac_status); } &&
3821	 { ac_try='test -z "$ac_c_werror_flag"
3822			 || test ! -s conftest.err'
3823  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3824  (eval $ac_try) 2>&5
3825  ac_status=$?
3826  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3827  (exit $ac_status); }; } &&
3828	 { ac_try='test -s conftest.$ac_objext'
3829  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3830  (eval $ac_try) 2>&5
3831  ac_status=$?
3832  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3833  (exit $ac_status); }; }; then
3834  ac_cv_header_stdc=yes
3835else
3836  echo "$as_me: failed program was:" >&5
3837sed 's/^/| /' conftest.$ac_ext >&5
3838
3839ac_cv_header_stdc=no
3840fi
3841rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3842
3843if test $ac_cv_header_stdc = yes; then
3844  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3845  cat >conftest.$ac_ext <<_ACEOF
3846/* confdefs.h.  */
3847_ACEOF
3848cat confdefs.h >>conftest.$ac_ext
3849cat >>conftest.$ac_ext <<_ACEOF
3850/* end confdefs.h.  */
3851#include <string.h>
3852
3853_ACEOF
3854if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3855  $EGREP "memchr" >/dev/null 2>&1; then
3856  :
3857else
3858  ac_cv_header_stdc=no
3859fi
3860rm -f conftest*
3861
3862fi
3863
3864if test $ac_cv_header_stdc = yes; then
3865  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3866  cat >conftest.$ac_ext <<_ACEOF
3867/* confdefs.h.  */
3868_ACEOF
3869cat confdefs.h >>conftest.$ac_ext
3870cat >>conftest.$ac_ext <<_ACEOF
3871/* end confdefs.h.  */
3872#include <stdlib.h>
3873
3874_ACEOF
3875if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3876  $EGREP "free" >/dev/null 2>&1; then
3877  :
3878else
3879  ac_cv_header_stdc=no
3880fi
3881rm -f conftest*
3882
3883fi
3884
3885if test $ac_cv_header_stdc = yes; then
3886  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3887  if test "$cross_compiling" = yes; then
3888  :
3889else
3890  cat >conftest.$ac_ext <<_ACEOF
3891/* confdefs.h.  */
3892_ACEOF
3893cat confdefs.h >>conftest.$ac_ext
3894cat >>conftest.$ac_ext <<_ACEOF
3895/* end confdefs.h.  */
3896#include <ctype.h>
3897#if ((' ' & 0x0FF) == 0x020)
3898# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3899# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3900#else
3901# define ISLOWER(c) \
3902		   (('a' <= (c) && (c) <= 'i') \
3903		     || ('j' <= (c) && (c) <= 'r') \
3904		     || ('s' <= (c) && (c) <= 'z'))
3905# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3906#endif
3907
3908#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3909int
3910main ()
3911{
3912  int i;
3913  for (i = 0; i < 256; i++)
3914    if (XOR (islower (i), ISLOWER (i))
3915	|| toupper (i) != TOUPPER (i))
3916      exit(2);
3917  exit (0);
3918}
3919_ACEOF
3920rm -f conftest$ac_exeext
3921if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3922  (eval $ac_link) 2>&5
3923  ac_status=$?
3924  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3925  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3926  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3927  (eval $ac_try) 2>&5
3928  ac_status=$?
3929  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3930  (exit $ac_status); }; }; then
3931  :
3932else
3933  echo "$as_me: program exited with status $ac_status" >&5
3934echo "$as_me: failed program was:" >&5
3935sed 's/^/| /' conftest.$ac_ext >&5
3936
3937( exit $ac_status )
3938ac_cv_header_stdc=no
3939fi
3940rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3941fi
3942fi
3943fi
3944echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3945echo "${ECHO_T}$ac_cv_header_stdc" >&6
3946if test $ac_cv_header_stdc = yes; then
3947
3948cat >>confdefs.h <<\_ACEOF
3949#define STDC_HEADERS 1
3950_ACEOF
3951
3952fi
3953
3954echo "$as_me:$LINENO: checking whether termios.h defines TIOCGWINSZ" >&5
3955echo $ECHO_N "checking whether termios.h defines TIOCGWINSZ... $ECHO_C" >&6
3956if test "${ac_cv_sys_tiocgwinsz_in_termios_h+set}" = set; then
3957  echo $ECHO_N "(cached) $ECHO_C" >&6
3958else
3959  cat >conftest.$ac_ext <<_ACEOF
3960/* confdefs.h.  */
3961_ACEOF
3962cat confdefs.h >>conftest.$ac_ext
3963cat >>conftest.$ac_ext <<_ACEOF
3964/* end confdefs.h.  */
3965#include <sys/types.h>
3966#include <termios.h>
3967#ifdef TIOCGWINSZ
3968  yes
3969#endif
3970
3971_ACEOF
3972if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3973  $EGREP "yes" >/dev/null 2>&1; then
3974  ac_cv_sys_tiocgwinsz_in_termios_h=yes
3975else
3976  ac_cv_sys_tiocgwinsz_in_termios_h=no
3977fi
3978rm -f conftest*
3979
3980fi
3981echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
3982echo "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_termios_h" >&6
3983
3984if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
3985  echo "$as_me:$LINENO: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
3986echo $ECHO_N "checking whether sys/ioctl.h defines TIOCGWINSZ... $ECHO_C" >&6
3987if test "${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+set}" = set; then
3988  echo $ECHO_N "(cached) $ECHO_C" >&6
3989else
3990  cat >conftest.$ac_ext <<_ACEOF
3991/* confdefs.h.  */
3992_ACEOF
3993cat confdefs.h >>conftest.$ac_ext
3994cat >>conftest.$ac_ext <<_ACEOF
3995/* end confdefs.h.  */
3996#include <sys/types.h>
3997#include <sys/ioctl.h>
3998#ifdef TIOCGWINSZ
3999  yes
4000#endif
4001
4002_ACEOF
4003if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4004  $EGREP "yes" >/dev/null 2>&1; then
4005  ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes
4006else
4007  ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no
4008fi
4009rm -f conftest*
4010
4011fi
4012echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
4013echo "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6
4014
4015  if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
4016
4017cat >>confdefs.h <<\_ACEOF
4018#define GWINSZ_IN_SYS_IOCTL 1
4019_ACEOF
4020
4021  fi
4022fi
4023
4024# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4025
4026
4027
4028
4029
4030
4031
4032
4033
4034for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4035		  inttypes.h stdint.h unistd.h
4036do
4037as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4038echo "$as_me:$LINENO: checking for $ac_header" >&5
4039echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4040if eval "test \"\${$as_ac_Header+set}\" = set"; then
4041  echo $ECHO_N "(cached) $ECHO_C" >&6
4042else
4043  cat >conftest.$ac_ext <<_ACEOF
4044/* confdefs.h.  */
4045_ACEOF
4046cat confdefs.h >>conftest.$ac_ext
4047cat >>conftest.$ac_ext <<_ACEOF
4048/* end confdefs.h.  */
4049$ac_includes_default
4050
4051#include <$ac_header>
4052_ACEOF
4053rm -f conftest.$ac_objext
4054if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4055  (eval $ac_compile) 2>conftest.er1
4056  ac_status=$?
4057  grep -v '^ *+' conftest.er1 >conftest.err
4058  rm -f conftest.er1
4059  cat conftest.err >&5
4060  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4061  (exit $ac_status); } &&
4062	 { ac_try='test -z "$ac_c_werror_flag"
4063			 || test ! -s conftest.err'
4064  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4065  (eval $ac_try) 2>&5
4066  ac_status=$?
4067  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4068  (exit $ac_status); }; } &&
4069	 { ac_try='test -s conftest.$ac_objext'
4070  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4071  (eval $ac_try) 2>&5
4072  ac_status=$?
4073  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4074  (exit $ac_status); }; }; then
4075  eval "$as_ac_Header=yes"
4076else
4077  echo "$as_me: failed program was:" >&5
4078sed 's/^/| /' conftest.$ac_ext >&5
4079
4080eval "$as_ac_Header=no"
4081fi
4082rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4083fi
4084echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4085echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4086if test `eval echo '${'$as_ac_Header'}'` = yes; then
4087  cat >>confdefs.h <<_ACEOF
4088#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4089_ACEOF
4090
4091fi
4092
4093done
4094
4095
4096
4097
4098
4099
4100
4101
4102for ac_header in errno.h stdlib.h string.h unistd.h utime.h termios.h
4103do
4104as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4105if eval "test \"\${$as_ac_Header+set}\" = set"; then
4106  echo "$as_me:$LINENO: checking for $ac_header" >&5
4107echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4108if eval "test \"\${$as_ac_Header+set}\" = set"; then
4109  echo $ECHO_N "(cached) $ECHO_C" >&6
4110fi
4111echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4112echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4113else
4114  # Is the header compilable?
4115echo "$as_me:$LINENO: checking $ac_header usability" >&5
4116echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4117cat >conftest.$ac_ext <<_ACEOF
4118/* confdefs.h.  */
4119_ACEOF
4120cat confdefs.h >>conftest.$ac_ext
4121cat >>conftest.$ac_ext <<_ACEOF
4122/* end confdefs.h.  */
4123$ac_includes_default
4124#include <$ac_header>
4125_ACEOF
4126rm -f conftest.$ac_objext
4127if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4128  (eval $ac_compile) 2>conftest.er1
4129  ac_status=$?
4130  grep -v '^ *+' conftest.er1 >conftest.err
4131  rm -f conftest.er1
4132  cat conftest.err >&5
4133  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4134  (exit $ac_status); } &&
4135	 { ac_try='test -z "$ac_c_werror_flag"
4136			 || test ! -s conftest.err'
4137  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4138  (eval $ac_try) 2>&5
4139  ac_status=$?
4140  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4141  (exit $ac_status); }; } &&
4142	 { ac_try='test -s conftest.$ac_objext'
4143  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4144  (eval $ac_try) 2>&5
4145  ac_status=$?
4146  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4147  (exit $ac_status); }; }; then
4148  ac_header_compiler=yes
4149else
4150  echo "$as_me: failed program was:" >&5
4151sed 's/^/| /' conftest.$ac_ext >&5
4152
4153ac_header_compiler=no
4154fi
4155rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4156echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4157echo "${ECHO_T}$ac_header_compiler" >&6
4158
4159# Is the header present?
4160echo "$as_me:$LINENO: checking $ac_header presence" >&5
4161echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4162cat >conftest.$ac_ext <<_ACEOF
4163/* confdefs.h.  */
4164_ACEOF
4165cat confdefs.h >>conftest.$ac_ext
4166cat >>conftest.$ac_ext <<_ACEOF
4167/* end confdefs.h.  */
4168#include <$ac_header>
4169_ACEOF
4170if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4171  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4172  ac_status=$?
4173  grep -v '^ *+' conftest.er1 >conftest.err
4174  rm -f conftest.er1
4175  cat conftest.err >&5
4176  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4177  (exit $ac_status); } >/dev/null; then
4178  if test -s conftest.err; then
4179    ac_cpp_err=$ac_c_preproc_warn_flag
4180    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4181  else
4182    ac_cpp_err=
4183  fi
4184else
4185  ac_cpp_err=yes
4186fi
4187if test -z "$ac_cpp_err"; then
4188  ac_header_preproc=yes
4189else
4190  echo "$as_me: failed program was:" >&5
4191sed 's/^/| /' conftest.$ac_ext >&5
4192
4193  ac_header_preproc=no
4194fi
4195rm -f conftest.err conftest.$ac_ext
4196echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4197echo "${ECHO_T}$ac_header_preproc" >&6
4198
4199# So?  What about this header?
4200case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4201  yes:no: )
4202    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4203echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4204    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4205echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4206    ac_header_preproc=yes
4207    ;;
4208  no:yes:* )
4209    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4210echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4211    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4212echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4213    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4214echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4215    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4216echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4217    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4218echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4219    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4220echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4221    (
4222      cat <<\_ASBOX
4223## ------------------------------------- ##
4224## Report this to the vorbisgain lists.  ##
4225## ------------------------------------- ##
4226_ASBOX
4227    ) |
4228      sed "s/^/$as_me: WARNING:     /" >&2
4229    ;;
4230esac
4231echo "$as_me:$LINENO: checking for $ac_header" >&5
4232echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4233if eval "test \"\${$as_ac_Header+set}\" = set"; then
4234  echo $ECHO_N "(cached) $ECHO_C" >&6
4235else
4236  eval "$as_ac_Header=\$ac_header_preproc"
4237fi
4238echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4239echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4240
4241fi
4242if test `eval echo '${'$as_ac_Header'}'` = yes; then
4243  cat >>confdefs.h <<_ACEOF
4244#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4245_ACEOF
4246
4247fi
4248
4249done
4250
4251
4252# --------------------------------------------------
4253# Checks for typedefs, structures, and compiler characteristics.
4254# --------------------------------------------------
4255
4256echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
4257echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
4258if test "${ac_cv_c_const+set}" = set; then
4259  echo $ECHO_N "(cached) $ECHO_C" >&6
4260else
4261  cat >conftest.$ac_ext <<_ACEOF
4262/* confdefs.h.  */
4263_ACEOF
4264cat confdefs.h >>conftest.$ac_ext
4265cat >>conftest.$ac_ext <<_ACEOF
4266/* end confdefs.h.  */
4267
4268int
4269main ()
4270{
4271/* FIXME: Include the comments suggested by Paul. */
4272#ifndef __cplusplus
4273  /* Ultrix mips cc rejects this.  */
4274  typedef int charset[2];
4275  const charset x;
4276  /* SunOS 4.1.1 cc rejects this.  */
4277  char const *const *ccp;
4278  char **p;
4279  /* NEC SVR4.0.2 mips cc rejects this.  */
4280  struct point {int x, y;};
4281  static struct point const zero = {0,0};
4282  /* AIX XL C 1.02.0.0 rejects this.
4283     It does not let you subtract one const X* pointer from another in
4284     an arm of an if-expression whose if-part is not a constant
4285     expression */
4286  const char *g = "string";
4287  ccp = &g + (g ? g-g : 0);
4288  /* HPUX 7.0 cc rejects these. */
4289  ++ccp;
4290  p = (char**) ccp;
4291  ccp = (char const *const *) p;
4292  { /* SCO 3.2v4 cc rejects this.  */
4293    char *t;
4294    char const *s = 0 ? (char *) 0 : (char const *) 0;
4295
4296    *t++ = 0;
4297  }
4298  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
4299    int x[] = {25, 17};
4300    const int *foo = &x[0];
4301    ++foo;
4302  }
4303  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4304    typedef const int *iptr;
4305    iptr p = 0;
4306    ++p;
4307  }
4308  { /* AIX XL C 1.02.0.0 rejects this saying
4309       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4310    struct s { int j; const int *ap[3]; };
4311    struct s *b; b->j = 5;
4312  }
4313  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4314    const int foo = 10;
4315  }
4316#endif
4317
4318  ;
4319  return 0;
4320}
4321_ACEOF
4322rm -f conftest.$ac_objext
4323if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4324  (eval $ac_compile) 2>conftest.er1
4325  ac_status=$?
4326  grep -v '^ *+' conftest.er1 >conftest.err
4327  rm -f conftest.er1
4328  cat conftest.err >&5
4329  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4330  (exit $ac_status); } &&
4331	 { ac_try='test -z "$ac_c_werror_flag"
4332			 || test ! -s conftest.err'
4333  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4334  (eval $ac_try) 2>&5
4335  ac_status=$?
4336  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4337  (exit $ac_status); }; } &&
4338	 { ac_try='test -s conftest.$ac_objext'
4339  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4340  (eval $ac_try) 2>&5
4341  ac_status=$?
4342  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4343  (exit $ac_status); }; }; then
4344  ac_cv_c_const=yes
4345else
4346  echo "$as_me: failed program was:" >&5
4347sed 's/^/| /' conftest.$ac_ext >&5
4348
4349ac_cv_c_const=no
4350fi
4351rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4352fi
4353echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
4354echo "${ECHO_T}$ac_cv_c_const" >&6
4355if test $ac_cv_c_const = no; then
4356
4357cat >>confdefs.h <<\_ACEOF
4358#define const
4359_ACEOF
4360
4361fi
4362
4363echo "$as_me:$LINENO: checking for inline" >&5
4364echo $ECHO_N "checking for inline... $ECHO_C" >&6
4365if test "${ac_cv_c_inline+set}" = set; then
4366  echo $ECHO_N "(cached) $ECHO_C" >&6
4367else
4368  ac_cv_c_inline=no
4369for ac_kw in inline __inline__ __inline; do
4370  cat >conftest.$ac_ext <<_ACEOF
4371/* confdefs.h.  */
4372_ACEOF
4373cat confdefs.h >>conftest.$ac_ext
4374cat >>conftest.$ac_ext <<_ACEOF
4375/* end confdefs.h.  */
4376#ifndef __cplusplus
4377typedef int foo_t;
4378static $ac_kw foo_t static_foo () {return 0; }
4379$ac_kw foo_t foo () {return 0; }
4380#endif
4381
4382_ACEOF
4383rm -f conftest.$ac_objext
4384if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4385  (eval $ac_compile) 2>conftest.er1
4386  ac_status=$?
4387  grep -v '^ *+' conftest.er1 >conftest.err
4388  rm -f conftest.er1
4389  cat conftest.err >&5
4390  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4391  (exit $ac_status); } &&
4392	 { ac_try='test -z "$ac_c_werror_flag"
4393			 || test ! -s conftest.err'
4394  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4395  (eval $ac_try) 2>&5
4396  ac_status=$?
4397  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4398  (exit $ac_status); }; } &&
4399	 { ac_try='test -s conftest.$ac_objext'
4400  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4401  (eval $ac_try) 2>&5
4402  ac_status=$?
4403  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4404  (exit $ac_status); }; }; then
4405  ac_cv_c_inline=$ac_kw; break
4406else
4407  echo "$as_me: failed program was:" >&5
4408sed 's/^/| /' conftest.$ac_ext >&5
4409
4410fi
4411rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4412done
4413
4414fi
4415echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
4416echo "${ECHO_T}$ac_cv_c_inline" >&6
4417
4418
4419case $ac_cv_c_inline in
4420  inline | yes) ;;
4421  *)
4422    case $ac_cv_c_inline in
4423      no) ac_val=;;
4424      *) ac_val=$ac_cv_c_inline;;
4425    esac
4426    cat >>confdefs.h <<_ACEOF
4427#ifndef __cplusplus
4428#define inline $ac_val
4429#endif
4430_ACEOF
4431    ;;
4432esac
4433
4434echo "$as_me:$LINENO: checking for size_t" >&5
4435echo $ECHO_N "checking for size_t... $ECHO_C" >&6
4436if test "${ac_cv_type_size_t+set}" = set; then
4437  echo $ECHO_N "(cached) $ECHO_C" >&6
4438else
4439  cat >conftest.$ac_ext <<_ACEOF
4440/* confdefs.h.  */
4441_ACEOF
4442cat confdefs.h >>conftest.$ac_ext
4443cat >>conftest.$ac_ext <<_ACEOF
4444/* end confdefs.h.  */
4445$ac_includes_default
4446int
4447main ()
4448{
4449if ((size_t *) 0)
4450  return 0;
4451if (sizeof (size_t))
4452  return 0;
4453  ;
4454  return 0;
4455}
4456_ACEOF
4457rm -f conftest.$ac_objext
4458if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4459  (eval $ac_compile) 2>conftest.er1
4460  ac_status=$?
4461  grep -v '^ *+' conftest.er1 >conftest.err
4462  rm -f conftest.er1
4463  cat conftest.err >&5
4464  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4465  (exit $ac_status); } &&
4466	 { ac_try='test -z "$ac_c_werror_flag"
4467			 || test ! -s conftest.err'
4468  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4469  (eval $ac_try) 2>&5
4470  ac_status=$?
4471  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4472  (exit $ac_status); }; } &&
4473	 { ac_try='test -s conftest.$ac_objext'
4474  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4475  (eval $ac_try) 2>&5
4476  ac_status=$?
4477  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4478  (exit $ac_status); }; }; then
4479  ac_cv_type_size_t=yes
4480else
4481  echo "$as_me: failed program was:" >&5
4482sed 's/^/| /' conftest.$ac_ext >&5
4483
4484ac_cv_type_size_t=no
4485fi
4486rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4487fi
4488echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
4489echo "${ECHO_T}$ac_cv_type_size_t" >&6
4490if test $ac_cv_type_size_t = yes; then
4491  :
4492else
4493
4494cat >>confdefs.h <<_ACEOF
4495#define size_t unsigned
4496_ACEOF
4497
4498fi
4499
4500
4501# --------------------------------------------------
4502# Checks for library functions.
4503# --------------------------------------------------
4504
4505# GCP: This does very wrong things on my Debian sid box
4506#AC_FUNC_MALLOC
4507
4508echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
4509echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6
4510if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
4511  echo $ECHO_N "(cached) $ECHO_C" >&6
4512else
4513  rm -f conftest.sym conftest.file
4514echo >conftest.file
4515if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
4516  if test "$cross_compiling" = yes; then
4517  ac_cv_func_lstat_dereferences_slashed_symlink=no
4518else
4519  cat >conftest.$ac_ext <<_ACEOF
4520/* confdefs.h.  */
4521_ACEOF
4522cat confdefs.h >>conftest.$ac_ext
4523cat >>conftest.$ac_ext <<_ACEOF
4524/* end confdefs.h.  */
4525$ac_includes_default
4526int
4527main ()
4528{
4529struct stat sbuf;
4530     /* Linux will dereference the symlink and fail.
4531	That is better in the sense that it means we will not
4532	have to compile and use the lstat wrapper.  */
4533     exit (lstat ("conftest.sym/", &sbuf) ? 0 : 1);
4534  ;
4535  return 0;
4536}
4537_ACEOF
4538rm -f conftest$ac_exeext
4539if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4540  (eval $ac_link) 2>&5
4541  ac_status=$?
4542  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4543  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4544  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4545  (eval $ac_try) 2>&5
4546  ac_status=$?
4547  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4548  (exit $ac_status); }; }; then
4549  ac_cv_func_lstat_dereferences_slashed_symlink=yes
4550else
4551  echo "$as_me: program exited with status $ac_status" >&5
4552echo "$as_me: failed program was:" >&5
4553sed 's/^/| /' conftest.$ac_ext >&5
4554
4555( exit $ac_status )
4556ac_cv_func_lstat_dereferences_slashed_symlink=no
4557fi
4558rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4559fi
4560else
4561  # If the `ln -s' command failed, then we probably don't even
4562  # have an lstat function.
4563  ac_cv_func_lstat_dereferences_slashed_symlink=no
4564fi
4565rm -f conftest.sym conftest.file
4566
4567fi
4568echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
4569echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6
4570
4571test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
4572
4573cat >>confdefs.h <<_ACEOF
4574#define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
4575_ACEOF
4576
4577
4578if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
4579  case $LIBOBJS in
4580    "lstat.$ac_objext"   | \
4581  *" lstat.$ac_objext"   | \
4582    "lstat.$ac_objext "* | \
4583  *" lstat.$ac_objext "* ) ;;
4584  *) LIBOBJS="$LIBOBJS lstat.$ac_objext" ;;
4585esac
4586
4587fi
4588
4589echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
4590echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6
4591if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
4592  echo $ECHO_N "(cached) $ECHO_C" >&6
4593else
4594  if test "$cross_compiling" = yes; then
4595  ac_cv_func_stat_empty_string_bug=yes
4596else
4597  cat >conftest.$ac_ext <<_ACEOF
4598/* confdefs.h.  */
4599_ACEOF
4600cat confdefs.h >>conftest.$ac_ext
4601cat >>conftest.$ac_ext <<_ACEOF
4602/* end confdefs.h.  */
4603$ac_includes_default
4604int
4605main ()
4606{
4607struct stat sbuf;
4608  exit (stat ("", &sbuf) ? 1 : 0);
4609  ;
4610  return 0;
4611}
4612_ACEOF
4613rm -f conftest$ac_exeext
4614if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4615  (eval $ac_link) 2>&5
4616  ac_status=$?
4617  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4618  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4619  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4620  (eval $ac_try) 2>&5
4621  ac_status=$?
4622  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4623  (exit $ac_status); }; }; then
4624  ac_cv_func_stat_empty_string_bug=yes
4625else
4626  echo "$as_me: program exited with status $ac_status" >&5
4627echo "$as_me: failed program was:" >&5
4628sed 's/^/| /' conftest.$ac_ext >&5
4629
4630( exit $ac_status )
4631ac_cv_func_stat_empty_string_bug=no
4632fi
4633rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4634fi
4635fi
4636echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
4637echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6
4638if test $ac_cv_func_stat_empty_string_bug = yes; then
4639  case $LIBOBJS in
4640    "stat.$ac_objext"   | \
4641  *" stat.$ac_objext"   | \
4642    "stat.$ac_objext "* | \
4643  *" stat.$ac_objext "* ) ;;
4644  *) LIBOBJS="$LIBOBJS stat.$ac_objext" ;;
4645esac
4646
4647
4648cat >>confdefs.h <<_ACEOF
4649#define HAVE_STAT_EMPTY_STRING_BUG 1
4650_ACEOF
4651
4652fi
4653
4654
4655for ac_func in vprintf
4656do
4657as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4658echo "$as_me:$LINENO: checking for $ac_func" >&5
4659echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4660if eval "test \"\${$as_ac_var+set}\" = set"; then
4661  echo $ECHO_N "(cached) $ECHO_C" >&6
4662else
4663  cat >conftest.$ac_ext <<_ACEOF
4664/* confdefs.h.  */
4665_ACEOF
4666cat confdefs.h >>conftest.$ac_ext
4667cat >>conftest.$ac_ext <<_ACEOF
4668/* end confdefs.h.  */
4669/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4670   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
4671#define $ac_func innocuous_$ac_func
4672
4673/* System header to define __stub macros and hopefully few prototypes,
4674    which can conflict with char $ac_func (); below.
4675    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4676    <limits.h> exists even on freestanding compilers.  */
4677
4678#ifdef __STDC__
4679# include <limits.h>
4680#else
4681# include <assert.h>
4682#endif
4683
4684#undef $ac_func
4685
4686/* Override any gcc2 internal prototype to avoid an error.  */
4687#ifdef __cplusplus
4688extern "C"
4689{
4690#endif
4691/* We use char because int might match the return type of a gcc2
4692   builtin and then its argument prototype would still apply.  */
4693char $ac_func ();
4694/* The GNU C library defines this for functions which it implements
4695    to always fail with ENOSYS.  Some functions are actually named
4696    something starting with __ and the normal name is an alias.  */
4697#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4698choke me
4699#else
4700char (*f) () = $ac_func;
4701#endif
4702#ifdef __cplusplus
4703}
4704#endif
4705
4706int
4707main ()
4708{
4709return f != $ac_func;
4710  ;
4711  return 0;
4712}
4713_ACEOF
4714rm -f conftest.$ac_objext conftest$ac_exeext
4715if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4716  (eval $ac_link) 2>conftest.er1
4717  ac_status=$?
4718  grep -v '^ *+' conftest.er1 >conftest.err
4719  rm -f conftest.er1
4720  cat conftest.err >&5
4721  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4722  (exit $ac_status); } &&
4723	 { ac_try='test -z "$ac_c_werror_flag"
4724			 || test ! -s conftest.err'
4725  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4726  (eval $ac_try) 2>&5
4727  ac_status=$?
4728  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4729  (exit $ac_status); }; } &&
4730	 { ac_try='test -s conftest$ac_exeext'
4731  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4732  (eval $ac_try) 2>&5
4733  ac_status=$?
4734  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4735  (exit $ac_status); }; }; then
4736  eval "$as_ac_var=yes"
4737else
4738  echo "$as_me: failed program was:" >&5
4739sed 's/^/| /' conftest.$ac_ext >&5
4740
4741eval "$as_ac_var=no"
4742fi
4743rm -f conftest.err conftest.$ac_objext \
4744      conftest$ac_exeext conftest.$ac_ext
4745fi
4746echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4747echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4748if test `eval echo '${'$as_ac_var'}'` = yes; then
4749  cat >>confdefs.h <<_ACEOF
4750#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4751_ACEOF
4752
4753echo "$as_me:$LINENO: checking for _doprnt" >&5
4754echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
4755if test "${ac_cv_func__doprnt+set}" = set; then
4756  echo $ECHO_N "(cached) $ECHO_C" >&6
4757else
4758  cat >conftest.$ac_ext <<_ACEOF
4759/* confdefs.h.  */
4760_ACEOF
4761cat confdefs.h >>conftest.$ac_ext
4762cat >>conftest.$ac_ext <<_ACEOF
4763/* end confdefs.h.  */
4764/* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
4765   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
4766#define _doprnt innocuous__doprnt
4767
4768/* System header to define __stub macros and hopefully few prototypes,
4769    which can conflict with char _doprnt (); below.
4770    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4771    <limits.h> exists even on freestanding compilers.  */
4772
4773#ifdef __STDC__
4774# include <limits.h>
4775#else
4776# include <assert.h>
4777#endif
4778
4779#undef _doprnt
4780
4781/* Override any gcc2 internal prototype to avoid an error.  */
4782#ifdef __cplusplus
4783extern "C"
4784{
4785#endif
4786/* We use char because int might match the return type of a gcc2
4787   builtin and then its argument prototype would still apply.  */
4788char _doprnt ();
4789/* The GNU C library defines this for functions which it implements
4790    to always fail with ENOSYS.  Some functions are actually named
4791    something starting with __ and the normal name is an alias.  */
4792#if defined (__stub__doprnt) || defined (__stub____doprnt)
4793choke me
4794#else
4795char (*f) () = _doprnt;
4796#endif
4797#ifdef __cplusplus
4798}
4799#endif
4800
4801int
4802main ()
4803{
4804return f != _doprnt;
4805  ;
4806  return 0;
4807}
4808_ACEOF
4809rm -f conftest.$ac_objext conftest$ac_exeext
4810if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4811  (eval $ac_link) 2>conftest.er1
4812  ac_status=$?
4813  grep -v '^ *+' conftest.er1 >conftest.err
4814  rm -f conftest.er1
4815  cat conftest.err >&5
4816  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4817  (exit $ac_status); } &&
4818	 { ac_try='test -z "$ac_c_werror_flag"
4819			 || test ! -s conftest.err'
4820  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4821  (eval $ac_try) 2>&5
4822  ac_status=$?
4823  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4824  (exit $ac_status); }; } &&
4825	 { ac_try='test -s conftest$ac_exeext'
4826  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4827  (eval $ac_try) 2>&5
4828  ac_status=$?
4829  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4830  (exit $ac_status); }; }; then
4831  ac_cv_func__doprnt=yes
4832else
4833  echo "$as_me: failed program was:" >&5
4834sed 's/^/| /' conftest.$ac_ext >&5
4835
4836ac_cv_func__doprnt=no
4837fi
4838rm -f conftest.err conftest.$ac_objext \
4839      conftest$ac_exeext conftest.$ac_ext
4840fi
4841echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
4842echo "${ECHO_T}$ac_cv_func__doprnt" >&6
4843if test $ac_cv_func__doprnt = yes; then
4844
4845cat >>confdefs.h <<\_ACEOF
4846#define HAVE_DOPRNT 1
4847_ACEOF
4848
4849fi
4850
4851fi
4852done
4853
4854
4855
4856
4857
4858
4859
4860
4861
4862
4863for ac_func in floor getcwd memmove memset pow strchr strdup strerror
4864do
4865as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4866echo "$as_me:$LINENO: checking for $ac_func" >&5
4867echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4868if eval "test \"\${$as_ac_var+set}\" = set"; then
4869  echo $ECHO_N "(cached) $ECHO_C" >&6
4870else
4871  cat >conftest.$ac_ext <<_ACEOF
4872/* confdefs.h.  */
4873_ACEOF
4874cat confdefs.h >>conftest.$ac_ext
4875cat >>conftest.$ac_ext <<_ACEOF
4876/* end confdefs.h.  */
4877/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4878   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
4879#define $ac_func innocuous_$ac_func
4880
4881/* System header to define __stub macros and hopefully few prototypes,
4882    which can conflict with char $ac_func (); below.
4883    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4884    <limits.h> exists even on freestanding compilers.  */
4885
4886#ifdef __STDC__
4887# include <limits.h>
4888#else
4889# include <assert.h>
4890#endif
4891
4892#undef $ac_func
4893
4894/* Override any gcc2 internal prototype to avoid an error.  */
4895#ifdef __cplusplus
4896extern "C"
4897{
4898#endif
4899/* We use char because int might match the return type of a gcc2
4900   builtin and then its argument prototype would still apply.  */
4901char $ac_func ();
4902/* The GNU C library defines this for functions which it implements
4903    to always fail with ENOSYS.  Some functions are actually named
4904    something starting with __ and the normal name is an alias.  */
4905#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4906choke me
4907#else
4908char (*f) () = $ac_func;
4909#endif
4910#ifdef __cplusplus
4911}
4912#endif
4913
4914int
4915main ()
4916{
4917return f != $ac_func;
4918  ;
4919  return 0;
4920}
4921_ACEOF
4922rm -f conftest.$ac_objext conftest$ac_exeext
4923if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4924  (eval $ac_link) 2>conftest.er1
4925  ac_status=$?
4926  grep -v '^ *+' conftest.er1 >conftest.err
4927  rm -f conftest.er1
4928  cat conftest.err >&5
4929  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4930  (exit $ac_status); } &&
4931	 { ac_try='test -z "$ac_c_werror_flag"
4932			 || test ! -s conftest.err'
4933  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4934  (eval $ac_try) 2>&5
4935  ac_status=$?
4936  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4937  (exit $ac_status); }; } &&
4938	 { ac_try='test -s conftest$ac_exeext'
4939  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4940  (eval $ac_try) 2>&5
4941  ac_status=$?
4942  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4943  (exit $ac_status); }; }; then
4944  eval "$as_ac_var=yes"
4945else
4946  echo "$as_me: failed program was:" >&5
4947sed 's/^/| /' conftest.$ac_ext >&5
4948
4949eval "$as_ac_var=no"
4950fi
4951rm -f conftest.err conftest.$ac_objext \
4952      conftest$ac_exeext conftest.$ac_ext
4953fi
4954echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4955echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4956if test `eval echo '${'$as_ac_var'}'` = yes; then
4957  cat >>confdefs.h <<_ACEOF
4958#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4959_ACEOF
4960
4961fi
4962done
4963
4964
4965
4966echo "$as_me:$LINENO: checking for ov_read_float in -lvorbisfile" >&5
4967echo $ECHO_N "checking for ov_read_float in -lvorbisfile... $ECHO_C" >&6
4968if test "${ac_cv_lib_vorbisfile_ov_read_float+set}" = set; then
4969  echo $ECHO_N "(cached) $ECHO_C" >&6
4970else
4971  ac_check_lib_save_LIBS=$LIBS
4972LIBS="-lvorbisfile $VORBIS_LIBS $OGG_LIBS $LIBS"
4973cat >conftest.$ac_ext <<_ACEOF
4974/* confdefs.h.  */
4975_ACEOF
4976cat confdefs.h >>conftest.$ac_ext
4977cat >>conftest.$ac_ext <<_ACEOF
4978/* end confdefs.h.  */
4979
4980/* Override any gcc2 internal prototype to avoid an error.  */
4981#ifdef __cplusplus
4982extern "C"
4983#endif
4984/* We use char because int might match the return type of a gcc2
4985   builtin and then its argument prototype would still apply.  */
4986char ov_read_float ();
4987int
4988main ()
4989{
4990ov_read_float ();
4991  ;
4992  return 0;
4993}
4994_ACEOF
4995rm -f conftest.$ac_objext conftest$ac_exeext
4996if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4997  (eval $ac_link) 2>conftest.er1
4998  ac_status=$?
4999  grep -v '^ *+' conftest.er1 >conftest.err
5000  rm -f conftest.er1
5001  cat conftest.err >&5
5002  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5003  (exit $ac_status); } &&
5004	 { ac_try='test -z "$ac_c_werror_flag"
5005			 || test ! -s conftest.err'
5006  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5007  (eval $ac_try) 2>&5
5008  ac_status=$?
5009  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5010  (exit $ac_status); }; } &&
5011	 { ac_try='test -s conftest$ac_exeext'
5012  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5013  (eval $ac_try) 2>&5
5014  ac_status=$?
5015  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5016  (exit $ac_status); }; }; then
5017  ac_cv_lib_vorbisfile_ov_read_float=yes
5018else
5019  echo "$as_me: failed program was:" >&5
5020sed 's/^/| /' conftest.$ac_ext >&5
5021
5022ac_cv_lib_vorbisfile_ov_read_float=no
5023fi
5024rm -f conftest.err conftest.$ac_objext \
5025      conftest$ac_exeext conftest.$ac_ext
5026LIBS=$ac_check_lib_save_LIBS
5027fi
5028echo "$as_me:$LINENO: result: $ac_cv_lib_vorbisfile_ov_read_float" >&5
5029echo "${ECHO_T}$ac_cv_lib_vorbisfile_ov_read_float" >&6
5030if test $ac_cv_lib_vorbisfile_ov_read_float = yes; then
5031  cat >>confdefs.h <<_ACEOF
5032#define HAVE_LIBVORBISFILE 1
5033_ACEOF
5034
5035  LIBS="-lvorbisfile $LIBS"
5036
5037else
5038  { { echo "$as_me:$LINENO: error: *** libvorbisfile does not contain ov_read_float - please upgrade ***" >&5
5039echo "$as_me: error: *** libvorbisfile does not contain ov_read_float - please upgrade ***" >&2;}
5040   { (exit 1); exit 1; }; }
5041fi
5042
5043
5044CFLAGS_save=$CFLAGS
5045LIBS_save=$LIBS
5046CFLAGS="$CFLAGS $OGG_CFLAGS $VORBIS_CFLAGS"
5047LIBS="$LIBS $VORBIS_LIBS $OGG_LIBS"
5048
5049echo "$as_me:$LINENO: checking if ov_read_float() takes four arguments" >&5
5050echo $ECHO_N "checking if ov_read_float() takes four arguments... $ECHO_C" >&6
5051cat >conftest.$ac_ext <<_ACEOF
5052/* confdefs.h.  */
5053_ACEOF
5054cat confdefs.h >>conftest.$ac_ext
5055cat >>conftest.$ac_ext <<_ACEOF
5056/* end confdefs.h.  */
5057#include <vorbis/vorbisfile.h>
5058int
5059main ()
5060{
5061OggVorbis_File vf;
5062     float **pcm;
5063     ov_read_float(&vf, &pcm, 1024, 0);
5064  ;
5065  return 0;
5066}
5067_ACEOF
5068rm -f conftest.$ac_objext
5069if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5070  (eval $ac_compile) 2>conftest.er1
5071  ac_status=$?
5072  grep -v '^ *+' conftest.er1 >conftest.err
5073  rm -f conftest.er1
5074  cat conftest.err >&5
5075  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5076  (exit $ac_status); } &&
5077	 { ac_try='test -z "$ac_c_werror_flag"
5078			 || test ! -s conftest.err'
5079  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5080  (eval $ac_try) 2>&5
5081  ac_status=$?
5082  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5083  (exit $ac_status); }; } &&
5084	 { ac_try='test -s conftest.$ac_objext'
5085  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5086  (eval $ac_try) 2>&5
5087  ac_status=$?
5088  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5089  (exit $ac_status); }; }; then
5090  echo "$as_me:$LINENO: result: yes" >&5
5091echo "${ECHO_T}yes" >&6
5092else
5093  echo "$as_me: failed program was:" >&5
5094sed 's/^/| /' conftest.$ac_ext >&5
5095
5096echo "$as_me:$LINENO: result: no" >&5
5097echo "${ECHO_T}no" >&6
5098
5099cat >>confdefs.h <<\_ACEOF
5100#define VORBISFILE_OV_READ_FLOAT_3_ARGS
5101_ACEOF
5102
5103fi
5104rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5105
5106CFLAGS=$CFLAGS_save
5107LIBS=$LIBS_save
5108
5109# --------------------------------------------------
5110# Check for features to enable
5111# --------------------------------------------------
5112
5113# Check whether --enable-recursive or --disable-recursive was given.
5114if test "${enable_recursive+set}" = set; then
5115  enableval="$enable_recursive"
5116
5117cat >>confdefs.h <<\_ACEOF
5118#define ENABLE_RECURSIVE
5119_ACEOF
5120
5121fi;
5122
5123# Check whether --enable-winsize or --disable-winsize was given.
5124if test "${enable_winsize+set}" = set; then
5125  enableval="$enable_winsize"
5126
5127cat >>confdefs.h <<\_ACEOF
5128#define DISABLE_WINSIZE
5129_ACEOF
5130
5131fi;
5132
5133          ac_config_files="$ac_config_files Makefile"
5134cat >confcache <<\_ACEOF
5135# This file is a shell script that caches the results of configure
5136# tests run on this system so they can be shared between configure
5137# scripts and configure runs, see configure's option --config-cache.
5138# It is not useful on other systems.  If it contains results you don't
5139# want to keep, you may remove or edit it.
5140#
5141# config.status only pays attention to the cache file if you give it
5142# the --recheck option to rerun configure.
5143#
5144# `ac_cv_env_foo' variables (set or unset) will be overridden when
5145# loading this file, other *unset* `ac_cv_foo' will be assigned the
5146# following values.
5147
5148_ACEOF
5149
5150# The following way of writing the cache mishandles newlines in values,
5151# but we know of no workaround that is simple, portable, and efficient.
5152# So, don't put newlines in cache variables' values.
5153# Ultrix sh set writes to stderr and can't be redirected directly,
5154# and sets the high bit in the cache file unless we assign to the vars.
5155{
5156  (set) 2>&1 |
5157    case `(ac_space=' '; set | grep ac_space) 2>&1` in
5158    *ac_space=\ *)
5159      # `set' does not quote correctly, so add quotes (double-quote
5160      # substitution turns \\\\ into \\, and sed turns \\ into \).
5161      sed -n \
5162	"s/'/'\\\\''/g;
5163	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5164      ;;
5165    *)
5166      # `set' quotes correctly as required by POSIX, so do not add quotes.
5167      sed -n \
5168	"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
5169      ;;
5170    esac;
5171} |
5172  sed '
5173     t clear
5174     : clear
5175     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5176     t end
5177     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5178     : end' >>confcache
5179if diff $cache_file confcache >/dev/null 2>&1; then :; else
5180  if test -w $cache_file; then
5181    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
5182    cat confcache >$cache_file
5183  else
5184    echo "not updating unwritable cache $cache_file"
5185  fi
5186fi
5187rm -f confcache
5188
5189test "x$prefix" = xNONE && prefix=$ac_default_prefix
5190# Let make expand exec_prefix.
5191test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5192
5193# VPATH may cause trouble with some makes, so we remove $(srcdir),
5194# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
5195# trailing colons and then remove the whole line if VPATH becomes empty
5196# (actually we leave an empty line to preserve line numbers).
5197if test "x$srcdir" = x.; then
5198  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
5199s/:*\$(srcdir):*/:/;
5200s/:*\${srcdir}:*/:/;
5201s/:*@srcdir@:*/:/;
5202s/^\([^=]*=[	 ]*\):*/\1/;
5203s/:*$//;
5204s/^[^=]*=[	 ]*$//;
5205}'
5206fi
5207
5208DEFS=-DHAVE_CONFIG_H
5209
5210ac_libobjs=
5211ac_ltlibobjs=
5212for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
5213  # 1. Remove the extension, and $U if already installed.
5214  ac_i=`echo "$ac_i" |
5215	 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
5216  # 2. Add them.
5217  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
5218  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
5219done
5220LIBOBJS=$ac_libobjs
5221
5222LTLIBOBJS=$ac_ltlibobjs
5223
5224
5225if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
5226  { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
5227Usually this means the macro was only invoked conditionally." >&5
5228echo "$as_me: error: conditional \"AMDEP\" was never defined.
5229Usually this means the macro was only invoked conditionally." >&2;}
5230   { (exit 1); exit 1; }; }
5231fi
5232if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
5233  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
5234Usually this means the macro was only invoked conditionally." >&5
5235echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
5236Usually this means the macro was only invoked conditionally." >&2;}
5237   { (exit 1); exit 1; }; }
5238fi
5239
5240: ${CONFIG_STATUS=./config.status}
5241ac_clean_files_save=$ac_clean_files
5242ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5243{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
5244echo "$as_me: creating $CONFIG_STATUS" >&6;}
5245cat >$CONFIG_STATUS <<_ACEOF
5246#! $SHELL
5247# Generated by $as_me.
5248# Run this file to recreate the current configuration.
5249# Compiler output produced by configure, useful for debugging
5250# configure, is in config.log if it exists.
5251
5252debug=false
5253ac_cs_recheck=false
5254ac_cs_silent=false
5255SHELL=\${CONFIG_SHELL-$SHELL}
5256_ACEOF
5257
5258cat >>$CONFIG_STATUS <<\_ACEOF
5259## --------------------- ##
5260## M4sh Initialization.  ##
5261## --------------------- ##
5262
5263# Be Bourne compatible
5264if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
5265  emulate sh
5266  NULLCMD=:
5267  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
5268  # is contrary to our usage.  Disable this feature.
5269  alias -g '${1+"$@"}'='"$@"'
5270elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
5271  set -o posix
5272fi
5273DUALCASE=1; export DUALCASE # for MKS sh
5274
5275# Support unset when possible.
5276if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5277  as_unset=unset
5278else
5279  as_unset=false
5280fi
5281
5282
5283# Work around bugs in pre-3.0 UWIN ksh.
5284$as_unset ENV MAIL MAILPATH
5285PS1='$ '
5286PS2='> '
5287PS4='+ '
5288
5289# NLS nuisances.
5290for as_var in \
5291  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
5292  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
5293  LC_TELEPHONE LC_TIME
5294do
5295  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
5296    eval $as_var=C; export $as_var
5297  else
5298    $as_unset $as_var
5299  fi
5300done
5301
5302# Required to use basename.
5303if expr a : '\(a\)' >/dev/null 2>&1; then
5304  as_expr=expr
5305else
5306  as_expr=false
5307fi
5308
5309if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
5310  as_basename=basename
5311else
5312  as_basename=false
5313fi
5314
5315
5316# Name of the executable.
5317as_me=`$as_basename "$0" ||
5318$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
5319	 X"$0" : 'X\(//\)$' \| \
5320	 X"$0" : 'X\(/\)$' \| \
5321	 .     : '\(.\)' 2>/dev/null ||
5322echo X/"$0" |
5323    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
5324  	  /^X\/\(\/\/\)$/{ s//\1/; q; }
5325  	  /^X\/\(\/\).*/{ s//\1/; q; }
5326  	  s/.*/./; q'`
5327
5328
5329# PATH needs CR, and LINENO needs CR and PATH.
5330# Avoid depending upon Character Ranges.
5331as_cr_letters='abcdefghijklmnopqrstuvwxyz'
5332as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
5333as_cr_Letters=$as_cr_letters$as_cr_LETTERS
5334as_cr_digits='0123456789'
5335as_cr_alnum=$as_cr_Letters$as_cr_digits
5336
5337# The user is always right.
5338if test "${PATH_SEPARATOR+set}" != set; then
5339  echo "#! /bin/sh" >conf$$.sh
5340  echo  "exit 0"   >>conf$$.sh
5341  chmod +x conf$$.sh
5342  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5343    PATH_SEPARATOR=';'
5344  else
5345    PATH_SEPARATOR=:
5346  fi
5347  rm -f conf$$.sh
5348fi
5349
5350
5351  as_lineno_1=$LINENO
5352  as_lineno_2=$LINENO
5353  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
5354  test "x$as_lineno_1" != "x$as_lineno_2" &&
5355  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
5356  # Find who we are.  Look in the path if we contain no path at all
5357  # relative or not.
5358  case $0 in
5359    *[\\/]* ) as_myself=$0 ;;
5360    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5361for as_dir in $PATH
5362do
5363  IFS=$as_save_IFS
5364  test -z "$as_dir" && as_dir=.
5365  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
5366done
5367
5368       ;;
5369  esac
5370  # We did not find ourselves, most probably we were run as `sh COMMAND'
5371  # in which case we are not to be found in the path.
5372  if test "x$as_myself" = x; then
5373    as_myself=$0
5374  fi
5375  if test ! -f "$as_myself"; then
5376    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
5377echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
5378   { (exit 1); exit 1; }; }
5379  fi
5380  case $CONFIG_SHELL in
5381  '')
5382    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5383for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
5384do
5385  IFS=$as_save_IFS
5386  test -z "$as_dir" && as_dir=.
5387  for as_base in sh bash ksh sh5; do
5388	 case $as_dir in
5389	 /*)
5390	   if ("$as_dir/$as_base" -c '
5391  as_lineno_1=$LINENO
5392  as_lineno_2=$LINENO
5393  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
5394  test "x$as_lineno_1" != "x$as_lineno_2" &&
5395  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
5396	     $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
5397	     $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
5398	     CONFIG_SHELL=$as_dir/$as_base
5399	     export CONFIG_SHELL
5400	     exec "$CONFIG_SHELL" "$0" ${1+"$@"}
5401	   fi;;
5402	 esac
5403       done
5404done
5405;;
5406  esac
5407
5408  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
5409  # uniformly replaced by the line number.  The first 'sed' inserts a
5410  # line-number line before each line; the second 'sed' does the real
5411  # work.  The second script uses 'N' to pair each line-number line
5412  # with the numbered line, and appends trailing '-' during
5413  # substitution so that $LINENO is not a special case at line end.
5414  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
5415  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
5416  sed '=' <$as_myself |
5417    sed '
5418      N
5419      s,$,-,
5420      : loop
5421      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
5422      t loop
5423      s,-$,,
5424      s,^['$as_cr_digits']*\n,,
5425    ' >$as_me.lineno &&
5426  chmod +x $as_me.lineno ||
5427    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
5428echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
5429   { (exit 1); exit 1; }; }
5430
5431  # Don't try to exec as it changes $[0], causing all sort of problems
5432  # (the dirname of $[0] is not the place where we might find the
5433  # original and so on.  Autoconf is especially sensible to this).
5434  . ./$as_me.lineno
5435  # Exit status is that of the last command.
5436  exit
5437}
5438
5439
5440case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
5441  *c*,-n*) ECHO_N= ECHO_C='
5442' ECHO_T='	' ;;
5443  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
5444  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
5445esac
5446
5447if expr a : '\(a\)' >/dev/null 2>&1; then
5448  as_expr=expr
5449else
5450  as_expr=false
5451fi
5452
5453rm -f conf$$ conf$$.exe conf$$.file
5454echo >conf$$.file
5455if ln -s conf$$.file conf$$ 2>/dev/null; then
5456  # We could just check for DJGPP; but this test a) works b) is more generic
5457  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
5458  if test -f conf$$.exe; then
5459    # Don't use ln at all; we don't have any links
5460    as_ln_s='cp -p'
5461  else
5462    as_ln_s='ln -s'
5463  fi
5464elif ln conf$$.file conf$$ 2>/dev/null; then
5465  as_ln_s=ln
5466else
5467  as_ln_s='cp -p'
5468fi
5469rm -f conf$$ conf$$.exe conf$$.file
5470
5471if mkdir -p . 2>/dev/null; then
5472  as_mkdir_p=:
5473else
5474  test -d ./-p && rmdir ./-p
5475  as_mkdir_p=false
5476fi
5477
5478as_executable_p="test -f"
5479
5480# Sed expression to map a string onto a valid CPP name.
5481as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
5482
5483# Sed expression to map a string onto a valid variable name.
5484as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
5485
5486
5487# IFS
5488# We need space, tab and new line, in precisely that order.
5489as_nl='
5490'
5491IFS=" 	$as_nl"
5492
5493# CDPATH.
5494$as_unset CDPATH
5495
5496exec 6>&1
5497
5498# Open the log real soon, to keep \$[0] and so on meaningful, and to
5499# report actual input values of CONFIG_FILES etc. instead of their
5500# values after options handling.  Logging --version etc. is OK.
5501exec 5>>config.log
5502{
5503  echo
5504  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
5505## Running $as_me. ##
5506_ASBOX
5507} >&5
5508cat >&5 <<_CSEOF
5509
5510This file was extended by vorbisgain $as_me 0.37, which was
5511generated by GNU Autoconf 2.59.  Invocation command line was
5512
5513  CONFIG_FILES    = $CONFIG_FILES
5514  CONFIG_HEADERS  = $CONFIG_HEADERS
5515  CONFIG_LINKS    = $CONFIG_LINKS
5516  CONFIG_COMMANDS = $CONFIG_COMMANDS
5517  $ $0 $@
5518
5519_CSEOF
5520echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
5521echo >&5
5522_ACEOF
5523
5524# Files that config.status was made for.
5525if test -n "$ac_config_files"; then
5526  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
5527fi
5528
5529if test -n "$ac_config_headers"; then
5530  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
5531fi
5532
5533if test -n "$ac_config_links"; then
5534  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
5535fi
5536
5537if test -n "$ac_config_commands"; then
5538  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
5539fi
5540
5541cat >>$CONFIG_STATUS <<\_ACEOF
5542
5543ac_cs_usage="\
5544\`$as_me' instantiates files from templates according to the
5545current configuration.
5546
5547Usage: $0 [OPTIONS] [FILE]...
5548
5549  -h, --help       print this help, then exit
5550  -V, --version    print version number, then exit
5551  -q, --quiet      do not print progress messages
5552  -d, --debug      don't remove temporary files
5553      --recheck    update $as_me by reconfiguring in the same conditions
5554  --file=FILE[:TEMPLATE]
5555		   instantiate the configuration file FILE
5556  --header=FILE[:TEMPLATE]
5557		   instantiate the configuration header FILE
5558
5559Configuration files:
5560$config_files
5561
5562Configuration headers:
5563$config_headers
5564
5565Configuration commands:
5566$config_commands
5567
5568Report bugs to <bug-autoconf@gnu.org>."
5569_ACEOF
5570
5571cat >>$CONFIG_STATUS <<_ACEOF
5572ac_cs_version="\\
5573vorbisgain config.status 0.37
5574configured by $0, generated by GNU Autoconf 2.59,
5575  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
5576
5577Copyright (C) 2003 Free Software Foundation, Inc.
5578This config.status script is free software; the Free Software Foundation
5579gives unlimited permission to copy, distribute and modify it."
5580srcdir=$srcdir
5581INSTALL="$INSTALL"
5582_ACEOF
5583
5584cat >>$CONFIG_STATUS <<\_ACEOF
5585# If no file are specified by the user, then we need to provide default
5586# value.  By we need to know if files were specified by the user.
5587ac_need_defaults=:
5588while test $# != 0
5589do
5590  case $1 in
5591  --*=*)
5592    ac_option=`expr "x$1" : 'x\([^=]*\)='`
5593    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
5594    ac_shift=:
5595    ;;
5596  -*)
5597    ac_option=$1
5598    ac_optarg=$2
5599    ac_shift=shift
5600    ;;
5601  *) # This is not an option, so the user has probably given explicit
5602     # arguments.
5603     ac_option=$1
5604     ac_need_defaults=false;;
5605  esac
5606
5607  case $ac_option in
5608  # Handling of the options.
5609_ACEOF
5610cat >>$CONFIG_STATUS <<\_ACEOF
5611  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5612    ac_cs_recheck=: ;;
5613  --version | --vers* | -V )
5614    echo "$ac_cs_version"; exit 0 ;;
5615  --he | --h)
5616    # Conflict between --help and --header
5617    { { echo "$as_me:$LINENO: error: ambiguous option: $1
5618Try \`$0 --help' for more information." >&5
5619echo "$as_me: error: ambiguous option: $1
5620Try \`$0 --help' for more information." >&2;}
5621   { (exit 1); exit 1; }; };;
5622  --help | --hel | -h )
5623    echo "$ac_cs_usage"; exit 0 ;;
5624  --debug | --d* | -d )
5625    debug=: ;;
5626  --file | --fil | --fi | --f )
5627    $ac_shift
5628    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
5629    ac_need_defaults=false;;
5630  --header | --heade | --head | --hea )
5631    $ac_shift
5632    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
5633    ac_need_defaults=false;;
5634  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
5635  | -silent | --silent | --silen | --sile | --sil | --si | --s)
5636    ac_cs_silent=: ;;
5637
5638  # This is an error.
5639  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
5640Try \`$0 --help' for more information." >&5
5641echo "$as_me: error: unrecognized option: $1
5642Try \`$0 --help' for more information." >&2;}
5643   { (exit 1); exit 1; }; } ;;
5644
5645  *) ac_config_targets="$ac_config_targets $1" ;;
5646
5647  esac
5648  shift
5649done
5650
5651ac_configure_extra_args=
5652
5653if $ac_cs_silent; then
5654  exec 6>/dev/null
5655  ac_configure_extra_args="$ac_configure_extra_args --silent"
5656fi
5657
5658_ACEOF
5659cat >>$CONFIG_STATUS <<_ACEOF
5660if \$ac_cs_recheck; then
5661  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
5662  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
5663fi
5664
5665_ACEOF
5666
5667cat >>$CONFIG_STATUS <<_ACEOF
5668#
5669# INIT-COMMANDS section.
5670#
5671
5672AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
5673
5674_ACEOF
5675
5676
5677
5678cat >>$CONFIG_STATUS <<\_ACEOF
5679for ac_config_target in $ac_config_targets
5680do
5681  case "$ac_config_target" in
5682  # Handling of arguments.
5683  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
5684  "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
5685  "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
5686  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
5687echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
5688   { (exit 1); exit 1; }; };;
5689  esac
5690done
5691
5692# If the user did not use the arguments to specify the items to instantiate,
5693# then the envvar interface is used.  Set only those that are not.
5694# We use the long form for the default assignment because of an extremely
5695# bizarre bug on SunOS 4.1.3.
5696if $ac_need_defaults; then
5697  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
5698  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
5699  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
5700fi
5701
5702# Have a temporary directory for convenience.  Make it in the build tree
5703# simply because there is no reason to put it here, and in addition,
5704# creating and moving files from /tmp can sometimes cause problems.
5705# Create a temporary directory, and hook for its removal unless debugging.
5706$debug ||
5707{
5708  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
5709  trap '{ (exit 1); exit 1; }' 1 2 13 15
5710}
5711
5712# Create a (secure) tmp directory for tmp files.
5713
5714{
5715  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
5716  test -n "$tmp" && test -d "$tmp"
5717}  ||
5718{
5719  tmp=./confstat$$-$RANDOM
5720  (umask 077 && mkdir $tmp)
5721} ||
5722{
5723   echo "$me: cannot create a temporary directory in ." >&2
5724   { (exit 1); exit 1; }
5725}
5726
5727_ACEOF
5728
5729cat >>$CONFIG_STATUS <<_ACEOF
5730
5731#
5732# CONFIG_FILES section.
5733#
5734
5735# No need to generate the scripts if there are no CONFIG_FILES.
5736# This happens for instance when ./config.status config.h
5737if test -n "\$CONFIG_FILES"; then
5738  # Protect against being on the right side of a sed subst in config.status.
5739  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
5740   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
5741s,@SHELL@,$SHELL,;t t
5742s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
5743s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
5744s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
5745s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
5746s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
5747s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
5748s,@exec_prefix@,$exec_prefix,;t t
5749s,@prefix@,$prefix,;t t
5750s,@program_transform_name@,$program_transform_name,;t t
5751s,@bindir@,$bindir,;t t
5752s,@sbindir@,$sbindir,;t t
5753s,@libexecdir@,$libexecdir,;t t
5754s,@datadir@,$datadir,;t t
5755s,@sysconfdir@,$sysconfdir,;t t
5756s,@sharedstatedir@,$sharedstatedir,;t t
5757s,@localstatedir@,$localstatedir,;t t
5758s,@libdir@,$libdir,;t t
5759s,@includedir@,$includedir,;t t
5760s,@oldincludedir@,$oldincludedir,;t t
5761s,@infodir@,$infodir,;t t
5762s,@mandir@,$mandir,;t t
5763s,@build_alias@,$build_alias,;t t
5764s,@host_alias@,$host_alias,;t t
5765s,@target_alias@,$target_alias,;t t
5766s,@DEFS@,$DEFS,;t t
5767s,@ECHO_C@,$ECHO_C,;t t
5768s,@ECHO_N@,$ECHO_N,;t t
5769s,@ECHO_T@,$ECHO_T,;t t
5770s,@LIBS@,$LIBS,;t t
5771s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
5772s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
5773s,@INSTALL_DATA@,$INSTALL_DATA,;t t
5774s,@CYGPATH_W@,$CYGPATH_W,;t t
5775s,@PACKAGE@,$PACKAGE,;t t
5776s,@VERSION@,$VERSION,;t t
5777s,@ACLOCAL@,$ACLOCAL,;t t
5778s,@AUTOCONF@,$AUTOCONF,;t t
5779s,@AUTOMAKE@,$AUTOMAKE,;t t
5780s,@AUTOHEADER@,$AUTOHEADER,;t t
5781s,@MAKEINFO@,$MAKEINFO,;t t
5782s,@AMTAR@,$AMTAR,;t t
5783s,@install_sh@,$install_sh,;t t
5784s,@STRIP@,$STRIP,;t t
5785s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
5786s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
5787s,@AWK@,$AWK,;t t
5788s,@SET_MAKE@,$SET_MAKE,;t t
5789s,@am__leading_dot@,$am__leading_dot,;t t
5790s,@CC@,$CC,;t t
5791s,@CFLAGS@,$CFLAGS,;t t
5792s,@LDFLAGS@,$LDFLAGS,;t t
5793s,@CPPFLAGS@,$CPPFLAGS,;t t
5794s,@ac_ct_CC@,$ac_ct_CC,;t t
5795s,@EXEEXT@,$EXEEXT,;t t
5796s,@OBJEXT@,$OBJEXT,;t t
5797s,@DEPDIR@,$DEPDIR,;t t
5798s,@am__include@,$am__include,;t t
5799s,@am__quote@,$am__quote,;t t
5800s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
5801s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
5802s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
5803s,@CCDEPMODE@,$CCDEPMODE,;t t
5804s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
5805s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
5806s,@OGG_CFLAGS@,$OGG_CFLAGS,;t t
5807s,@OGG_LIBS@,$OGG_LIBS,;t t
5808s,@VORBIS_CFLAGS@,$VORBIS_CFLAGS,;t t
5809s,@VORBIS_LIBS@,$VORBIS_LIBS,;t t
5810s,@CPP@,$CPP,;t t
5811s,@EGREP@,$EGREP,;t t
5812s,@LIBOBJS@,$LIBOBJS,;t t
5813s,@LTLIBOBJS@,$LTLIBOBJS,;t t
5814CEOF
5815
5816_ACEOF
5817
5818  cat >>$CONFIG_STATUS <<\_ACEOF
5819  # Split the substitutions into bite-sized pieces for seds with
5820  # small command number limits, like on Digital OSF/1 and HP-UX.
5821  ac_max_sed_lines=48
5822  ac_sed_frag=1 # Number of current file.
5823  ac_beg=1 # First line for current file.
5824  ac_end=$ac_max_sed_lines # Line after last line for current file.
5825  ac_more_lines=:
5826  ac_sed_cmds=
5827  while $ac_more_lines; do
5828    if test $ac_beg -gt 1; then
5829      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
5830    else
5831      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
5832    fi
5833    if test ! -s $tmp/subs.frag; then
5834      ac_more_lines=false
5835    else
5836      # The purpose of the label and of the branching condition is to
5837      # speed up the sed processing (if there are no `@' at all, there
5838      # is no need to browse any of the substitutions).
5839      # These are the two extra sed commands mentioned above.
5840      (echo ':t
5841  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
5842      if test -z "$ac_sed_cmds"; then
5843	ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
5844      else
5845	ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
5846      fi
5847      ac_sed_frag=`expr $ac_sed_frag + 1`
5848      ac_beg=$ac_end
5849      ac_end=`expr $ac_end + $ac_max_sed_lines`
5850    fi
5851  done
5852  if test -z "$ac_sed_cmds"; then
5853    ac_sed_cmds=cat
5854  fi
5855fi # test -n "$CONFIG_FILES"
5856
5857_ACEOF
5858cat >>$CONFIG_STATUS <<\_ACEOF
5859for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
5860  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5861  case $ac_file in
5862  - | *:- | *:-:* ) # input from stdin
5863	cat >$tmp/stdin
5864	ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5865	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5866  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5867	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5868  * )   ac_file_in=$ac_file.in ;;
5869  esac
5870
5871  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
5872  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
5873$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5874	 X"$ac_file" : 'X\(//\)[^/]' \| \
5875	 X"$ac_file" : 'X\(//\)$' \| \
5876	 X"$ac_file" : 'X\(/\)' \| \
5877	 .     : '\(.\)' 2>/dev/null ||
5878echo X"$ac_file" |
5879    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5880  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5881  	  /^X\(\/\/\)$/{ s//\1/; q; }
5882  	  /^X\(\/\).*/{ s//\1/; q; }
5883  	  s/.*/./; q'`
5884  { if $as_mkdir_p; then
5885    mkdir -p "$ac_dir"
5886  else
5887    as_dir="$ac_dir"
5888    as_dirs=
5889    while test ! -d "$as_dir"; do
5890      as_dirs="$as_dir $as_dirs"
5891      as_dir=`(dirname "$as_dir") 2>/dev/null ||
5892$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5893	 X"$as_dir" : 'X\(//\)[^/]' \| \
5894	 X"$as_dir" : 'X\(//\)$' \| \
5895	 X"$as_dir" : 'X\(/\)' \| \
5896	 .     : '\(.\)' 2>/dev/null ||
5897echo X"$as_dir" |
5898    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5899  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5900  	  /^X\(\/\/\)$/{ s//\1/; q; }
5901  	  /^X\(\/\).*/{ s//\1/; q; }
5902  	  s/.*/./; q'`
5903    done
5904    test ! -n "$as_dirs" || mkdir $as_dirs
5905  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
5906echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
5907   { (exit 1); exit 1; }; }; }
5908
5909  ac_builddir=.
5910
5911if test "$ac_dir" != .; then
5912  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
5913  # A "../" for each directory in $ac_dir_suffix.
5914  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
5915else
5916  ac_dir_suffix= ac_top_builddir=
5917fi
5918
5919case $srcdir in
5920  .)  # No --srcdir option.  We are building in place.
5921    ac_srcdir=.
5922    if test -z "$ac_top_builddir"; then
5923       ac_top_srcdir=.
5924    else
5925       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
5926    fi ;;
5927  [\\/]* | ?:[\\/]* )  # Absolute path.
5928    ac_srcdir=$srcdir$ac_dir_suffix;
5929    ac_top_srcdir=$srcdir ;;
5930  *) # Relative path.
5931    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
5932    ac_top_srcdir=$ac_top_builddir$srcdir ;;
5933esac
5934
5935# Do not use `cd foo && pwd` to compute absolute paths, because
5936# the directories may not exist.
5937case `pwd` in
5938.) ac_abs_builddir="$ac_dir";;
5939*)
5940  case "$ac_dir" in
5941  .) ac_abs_builddir=`pwd`;;
5942  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
5943  *) ac_abs_builddir=`pwd`/"$ac_dir";;
5944  esac;;
5945esac
5946case $ac_abs_builddir in
5947.) ac_abs_top_builddir=${ac_top_builddir}.;;
5948*)
5949  case ${ac_top_builddir}. in
5950  .) ac_abs_top_builddir=$ac_abs_builddir;;
5951  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
5952  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
5953  esac;;
5954esac
5955case $ac_abs_builddir in
5956.) ac_abs_srcdir=$ac_srcdir;;
5957*)
5958  case $ac_srcdir in
5959  .) ac_abs_srcdir=$ac_abs_builddir;;
5960  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
5961  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
5962  esac;;
5963esac
5964case $ac_abs_builddir in
5965.) ac_abs_top_srcdir=$ac_top_srcdir;;
5966*)
5967  case $ac_top_srcdir in
5968  .) ac_abs_top_srcdir=$ac_abs_builddir;;
5969  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
5970  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
5971  esac;;
5972esac
5973
5974
5975  case $INSTALL in
5976  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
5977  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
5978  esac
5979
5980  if test x"$ac_file" != x-; then
5981    { echo "$as_me:$LINENO: creating $ac_file" >&5
5982echo "$as_me: creating $ac_file" >&6;}
5983    rm -f "$ac_file"
5984  fi
5985  # Let's still pretend it is `configure' which instantiates (i.e., don't
5986  # use $as_me), people would be surprised to read:
5987  #    /* config.h.  Generated by config.status.  */
5988  if test x"$ac_file" = x-; then
5989    configure_input=
5990  else
5991    configure_input="$ac_file.  "
5992  fi
5993  configure_input=$configure_input"Generated from `echo $ac_file_in |
5994				     sed 's,.*/,,'` by configure."
5995
5996  # First look for the input files in the build tree, otherwise in the
5997  # src tree.
5998  ac_file_inputs=`IFS=:
5999    for f in $ac_file_in; do
6000      case $f in
6001      -) echo $tmp/stdin ;;
6002      [\\/$]*)
6003	 # Absolute (can't be DOS-style, as IFS=:)
6004	 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6005echo "$as_me: error: cannot find input file: $f" >&2;}
6006   { (exit 1); exit 1; }; }
6007	 echo "$f";;
6008      *) # Relative
6009	 if test -f "$f"; then
6010	   # Build tree
6011	   echo "$f"
6012	 elif test -f "$srcdir/$f"; then
6013	   # Source tree
6014	   echo "$srcdir/$f"
6015	 else
6016	   # /dev/null tree
6017	   { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6018echo "$as_me: error: cannot find input file: $f" >&2;}
6019   { (exit 1); exit 1; }; }
6020	 fi;;
6021      esac
6022    done` || { (exit 1); exit 1; }
6023_ACEOF
6024cat >>$CONFIG_STATUS <<_ACEOF
6025  sed "$ac_vpsub
6026$extrasub
6027_ACEOF
6028cat >>$CONFIG_STATUS <<\_ACEOF
6029:t
6030/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
6031s,@configure_input@,$configure_input,;t t
6032s,@srcdir@,$ac_srcdir,;t t
6033s,@abs_srcdir@,$ac_abs_srcdir,;t t
6034s,@top_srcdir@,$ac_top_srcdir,;t t
6035s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
6036s,@builddir@,$ac_builddir,;t t
6037s,@abs_builddir@,$ac_abs_builddir,;t t
6038s,@top_builddir@,$ac_top_builddir,;t t
6039s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
6040s,@INSTALL@,$ac_INSTALL,;t t
6041" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
6042  rm -f $tmp/stdin
6043  if test x"$ac_file" != x-; then
6044    mv $tmp/out $ac_file
6045  else
6046    cat $tmp/out
6047    rm -f $tmp/out
6048  fi
6049
6050done
6051_ACEOF
6052cat >>$CONFIG_STATUS <<\_ACEOF
6053
6054#
6055# CONFIG_HEADER section.
6056#
6057
6058# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
6059# NAME is the cpp macro being defined and VALUE is the value it is being given.
6060#
6061# ac_d sets the value in "#define NAME VALUE" lines.
6062ac_dA='s,^\([	 ]*\)#\([	 ]*define[	 ][	 ]*\)'
6063ac_dB='[	 ].*$,\1#\2'
6064ac_dC=' '
6065ac_dD=',;t'
6066# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
6067ac_uA='s,^\([	 ]*\)#\([	 ]*\)undef\([	 ][	 ]*\)'
6068ac_uB='$,\1#\2define\3'
6069ac_uC=' '
6070ac_uD=',;t'
6071
6072for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
6073  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6074  case $ac_file in
6075  - | *:- | *:-:* ) # input from stdin
6076	cat >$tmp/stdin
6077	ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6078	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6079  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6080	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6081  * )   ac_file_in=$ac_file.in ;;
6082  esac
6083
6084  test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
6085echo "$as_me: creating $ac_file" >&6;}
6086
6087  # First look for the input files in the build tree, otherwise in the
6088  # src tree.
6089  ac_file_inputs=`IFS=:
6090    for f in $ac_file_in; do
6091      case $f in
6092      -) echo $tmp/stdin ;;
6093      [\\/$]*)
6094	 # Absolute (can't be DOS-style, as IFS=:)
6095	 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6096echo "$as_me: error: cannot find input file: $f" >&2;}
6097   { (exit 1); exit 1; }; }
6098	 # Do quote $f, to prevent DOS paths from being IFS'd.
6099	 echo "$f";;
6100      *) # Relative
6101	 if test -f "$f"; then
6102	   # Build tree
6103	   echo "$f"
6104	 elif test -f "$srcdir/$f"; then
6105	   # Source tree
6106	   echo "$srcdir/$f"
6107	 else
6108	   # /dev/null tree
6109	   { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6110echo "$as_me: error: cannot find input file: $f" >&2;}
6111   { (exit 1); exit 1; }; }
6112	 fi;;
6113      esac
6114    done` || { (exit 1); exit 1; }
6115  # Remove the trailing spaces.
6116  sed 's/[	 ]*$//' $ac_file_inputs >$tmp/in
6117
6118_ACEOF
6119
6120# Transform confdefs.h into two sed scripts, `conftest.defines' and
6121# `conftest.undefs', that substitutes the proper values into
6122# config.h.in to produce config.h.  The first handles `#define'
6123# templates, and the second `#undef' templates.
6124# And first: Protect against being on the right side of a sed subst in
6125# config.status.  Protect against being in an unquoted here document
6126# in config.status.
6127rm -f conftest.defines conftest.undefs
6128# Using a here document instead of a string reduces the quoting nightmare.
6129# Putting comments in sed scripts is not portable.
6130#
6131# `end' is used to avoid that the second main sed command (meant for
6132# 0-ary CPP macros) applies to n-ary macro definitions.
6133# See the Autoconf documentation for `clear'.
6134cat >confdef2sed.sed <<\_ACEOF
6135s/[\\&,]/\\&/g
6136s,[\\$`],\\&,g
6137t clear
6138: clear
6139s,^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 (][^	 (]*\)\(([^)]*)\)[	 ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
6140t end
6141s,^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 ][^	 ]*\)[	 ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
6142: end
6143_ACEOF
6144# If some macros were called several times there might be several times
6145# the same #defines, which is useless.  Nevertheless, we may not want to
6146# sort them, since we want the *last* AC-DEFINE to be honored.
6147uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
6148sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
6149rm -f confdef2sed.sed
6150
6151# This sed command replaces #undef with comments.  This is necessary, for
6152# example, in the case of _POSIX_SOURCE, which is predefined and required
6153# on some systems where configure will not decide to define it.
6154cat >>conftest.undefs <<\_ACEOF
6155s,^[	 ]*#[	 ]*undef[	 ][	 ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
6156_ACEOF
6157
6158# Break up conftest.defines because some shells have a limit on the size
6159# of here documents, and old seds have small limits too (100 cmds).
6160echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
6161echo '  if grep "^[	 ]*#[	 ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
6162echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
6163echo '  :' >>$CONFIG_STATUS
6164rm -f conftest.tail
6165while grep . conftest.defines >/dev/null
6166do
6167  # Write a limited-size here document to $tmp/defines.sed.
6168  echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
6169  # Speed up: don't consider the non `#define' lines.
6170  echo '/^[	 ]*#[	 ]*define/!b' >>$CONFIG_STATUS
6171  # Work around the forget-to-reset-the-flag bug.
6172  echo 't clr' >>$CONFIG_STATUS
6173  echo ': clr' >>$CONFIG_STATUS
6174  sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
6175  echo 'CEOF
6176  sed -f $tmp/defines.sed $tmp/in >$tmp/out
6177  rm -f $tmp/in
6178  mv $tmp/out $tmp/in
6179' >>$CONFIG_STATUS
6180  sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
6181  rm -f conftest.defines
6182  mv conftest.tail conftest.defines
6183done
6184rm -f conftest.defines
6185echo '  fi # grep' >>$CONFIG_STATUS
6186echo >>$CONFIG_STATUS
6187
6188# Break up conftest.undefs because some shells have a limit on the size
6189# of here documents, and old seds have small limits too (100 cmds).
6190echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
6191rm -f conftest.tail
6192while grep . conftest.undefs >/dev/null
6193do
6194  # Write a limited-size here document to $tmp/undefs.sed.
6195  echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
6196  # Speed up: don't consider the non `#undef'
6197  echo '/^[	 ]*#[	 ]*undef/!b' >>$CONFIG_STATUS
6198  # Work around the forget-to-reset-the-flag bug.
6199  echo 't clr' >>$CONFIG_STATUS
6200  echo ': clr' >>$CONFIG_STATUS
6201  sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
6202  echo 'CEOF
6203  sed -f $tmp/undefs.sed $tmp/in >$tmp/out
6204  rm -f $tmp/in
6205  mv $tmp/out $tmp/in
6206' >>$CONFIG_STATUS
6207  sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
6208  rm -f conftest.undefs
6209  mv conftest.tail conftest.undefs
6210done
6211rm -f conftest.undefs
6212
6213cat >>$CONFIG_STATUS <<\_ACEOF
6214  # Let's still pretend it is `configure' which instantiates (i.e., don't
6215  # use $as_me), people would be surprised to read:
6216  #    /* config.h.  Generated by config.status.  */
6217  if test x"$ac_file" = x-; then
6218    echo "/* Generated by configure.  */" >$tmp/config.h
6219  else
6220    echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
6221  fi
6222  cat $tmp/in >>$tmp/config.h
6223  rm -f $tmp/in
6224  if test x"$ac_file" != x-; then
6225    if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
6226      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
6227echo "$as_me: $ac_file is unchanged" >&6;}
6228    else
6229      ac_dir=`(dirname "$ac_file") 2>/dev/null ||
6230$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6231	 X"$ac_file" : 'X\(//\)[^/]' \| \
6232	 X"$ac_file" : 'X\(//\)$' \| \
6233	 X"$ac_file" : 'X\(/\)' \| \
6234	 .     : '\(.\)' 2>/dev/null ||
6235echo X"$ac_file" |
6236    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6237  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6238  	  /^X\(\/\/\)$/{ s//\1/; q; }
6239  	  /^X\(\/\).*/{ s//\1/; q; }
6240  	  s/.*/./; q'`
6241      { if $as_mkdir_p; then
6242    mkdir -p "$ac_dir"
6243  else
6244    as_dir="$ac_dir"
6245    as_dirs=
6246    while test ! -d "$as_dir"; do
6247      as_dirs="$as_dir $as_dirs"
6248      as_dir=`(dirname "$as_dir") 2>/dev/null ||
6249$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6250	 X"$as_dir" : 'X\(//\)[^/]' \| \
6251	 X"$as_dir" : 'X\(//\)$' \| \
6252	 X"$as_dir" : 'X\(/\)' \| \
6253	 .     : '\(.\)' 2>/dev/null ||
6254echo X"$as_dir" |
6255    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6256  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6257  	  /^X\(\/\/\)$/{ s//\1/; q; }
6258  	  /^X\(\/\).*/{ s//\1/; q; }
6259  	  s/.*/./; q'`
6260    done
6261    test ! -n "$as_dirs" || mkdir $as_dirs
6262  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
6263echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
6264   { (exit 1); exit 1; }; }; }
6265
6266      rm -f $ac_file
6267      mv $tmp/config.h $ac_file
6268    fi
6269  else
6270    cat $tmp/config.h
6271    rm -f $tmp/config.h
6272  fi
6273# Compute $ac_file's index in $config_headers.
6274_am_stamp_count=1
6275for _am_header in $config_headers :; do
6276  case $_am_header in
6277    $ac_file | $ac_file:* )
6278      break ;;
6279    * )
6280      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
6281  esac
6282done
6283echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
6284$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6285	 X$ac_file : 'X\(//\)[^/]' \| \
6286	 X$ac_file : 'X\(//\)$' \| \
6287	 X$ac_file : 'X\(/\)' \| \
6288	 .     : '\(.\)' 2>/dev/null ||
6289echo X$ac_file |
6290    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6291  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6292  	  /^X\(\/\/\)$/{ s//\1/; q; }
6293  	  /^X\(\/\).*/{ s//\1/; q; }
6294  	  s/.*/./; q'`/stamp-h$_am_stamp_count
6295done
6296_ACEOF
6297cat >>$CONFIG_STATUS <<\_ACEOF
6298
6299#
6300# CONFIG_COMMANDS section.
6301#
6302for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
6303  ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
6304  ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
6305  ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
6306$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6307	 X"$ac_dest" : 'X\(//\)[^/]' \| \
6308	 X"$ac_dest" : 'X\(//\)$' \| \
6309	 X"$ac_dest" : 'X\(/\)' \| \
6310	 .     : '\(.\)' 2>/dev/null ||
6311echo X"$ac_dest" |
6312    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6313  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6314  	  /^X\(\/\/\)$/{ s//\1/; q; }
6315  	  /^X\(\/\).*/{ s//\1/; q; }
6316  	  s/.*/./; q'`
6317  { if $as_mkdir_p; then
6318    mkdir -p "$ac_dir"
6319  else
6320    as_dir="$ac_dir"
6321    as_dirs=
6322    while test ! -d "$as_dir"; do
6323      as_dirs="$as_dir $as_dirs"
6324      as_dir=`(dirname "$as_dir") 2>/dev/null ||
6325$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6326	 X"$as_dir" : 'X\(//\)[^/]' \| \
6327	 X"$as_dir" : 'X\(//\)$' \| \
6328	 X"$as_dir" : 'X\(/\)' \| \
6329	 .     : '\(.\)' 2>/dev/null ||
6330echo X"$as_dir" |
6331    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6332  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6333  	  /^X\(\/\/\)$/{ s//\1/; q; }
6334  	  /^X\(\/\).*/{ s//\1/; q; }
6335  	  s/.*/./; q'`
6336    done
6337    test ! -n "$as_dirs" || mkdir $as_dirs
6338  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
6339echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
6340   { (exit 1); exit 1; }; }; }
6341
6342  ac_builddir=.
6343
6344if test "$ac_dir" != .; then
6345  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
6346  # A "../" for each directory in $ac_dir_suffix.
6347  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
6348else
6349  ac_dir_suffix= ac_top_builddir=
6350fi
6351
6352case $srcdir in
6353  .)  # No --srcdir option.  We are building in place.
6354    ac_srcdir=.
6355    if test -z "$ac_top_builddir"; then
6356       ac_top_srcdir=.
6357    else
6358       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
6359    fi ;;
6360  [\\/]* | ?:[\\/]* )  # Absolute path.
6361    ac_srcdir=$srcdir$ac_dir_suffix;
6362    ac_top_srcdir=$srcdir ;;
6363  *) # Relative path.
6364    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
6365    ac_top_srcdir=$ac_top_builddir$srcdir ;;
6366esac
6367
6368# Do not use `cd foo && pwd` to compute absolute paths, because
6369# the directories may not exist.
6370case `pwd` in
6371.) ac_abs_builddir="$ac_dir";;
6372*)
6373  case "$ac_dir" in
6374  .) ac_abs_builddir=`pwd`;;
6375  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
6376  *) ac_abs_builddir=`pwd`/"$ac_dir";;
6377  esac;;
6378esac
6379case $ac_abs_builddir in
6380.) ac_abs_top_builddir=${ac_top_builddir}.;;
6381*)
6382  case ${ac_top_builddir}. in
6383  .) ac_abs_top_builddir=$ac_abs_builddir;;
6384  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
6385  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
6386  esac;;
6387esac
6388case $ac_abs_builddir in
6389.) ac_abs_srcdir=$ac_srcdir;;
6390*)
6391  case $ac_srcdir in
6392  .) ac_abs_srcdir=$ac_abs_builddir;;
6393  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
6394  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
6395  esac;;
6396esac
6397case $ac_abs_builddir in
6398.) ac_abs_top_srcdir=$ac_top_srcdir;;
6399*)
6400  case $ac_top_srcdir in
6401  .) ac_abs_top_srcdir=$ac_abs_builddir;;
6402  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
6403  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
6404  esac;;
6405esac
6406
6407
6408  { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
6409echo "$as_me: executing $ac_dest commands" >&6;}
6410  case $ac_dest in
6411    depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
6412  # Strip MF so we end up with the name of the file.
6413  mf=`echo "$mf" | sed -e 's/:.*$//'`
6414  # Check whether this is an Automake generated Makefile or not.
6415  # We used to match only the files named `Makefile.in', but
6416  # some people rename them; so instead we look at the file content.
6417  # Grep'ing the first line is not enough: some people post-process
6418  # each Makefile.in and add a new line on top of each file to say so.
6419  # So let's grep whole file.
6420  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
6421    dirpart=`(dirname "$mf") 2>/dev/null ||
6422$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6423	 X"$mf" : 'X\(//\)[^/]' \| \
6424	 X"$mf" : 'X\(//\)$' \| \
6425	 X"$mf" : 'X\(/\)' \| \
6426	 .     : '\(.\)' 2>/dev/null ||
6427echo X"$mf" |
6428    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6429  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6430  	  /^X\(\/\/\)$/{ s//\1/; q; }
6431  	  /^X\(\/\).*/{ s//\1/; q; }
6432  	  s/.*/./; q'`
6433  else
6434    continue
6435  fi
6436  grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
6437  # Extract the definition of DEP_FILES from the Makefile without
6438  # running `make'.
6439  DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
6440  test -z "$DEPDIR" && continue
6441  # When using ansi2knr, U may be empty or an underscore; expand it
6442  U=`sed -n -e '/^U = / s///p' < "$mf"`
6443  test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
6444  # We invoke sed twice because it is the simplest approach to
6445  # changing $(DEPDIR) to its actual value in the expansion.
6446  for file in `sed -n -e '
6447    /^DEP_FILES = .*\\\\$/ {
6448      s/^DEP_FILES = //
6449      :loop
6450	s/\\\\$//
6451	p
6452	n
6453	/\\\\$/ b loop
6454      p
6455    }
6456    /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
6457       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
6458    # Make sure the directory exists.
6459    test -f "$dirpart/$file" && continue
6460    fdir=`(dirname "$file") 2>/dev/null ||
6461$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6462	 X"$file" : 'X\(//\)[^/]' \| \
6463	 X"$file" : 'X\(//\)$' \| \
6464	 X"$file" : 'X\(/\)' \| \
6465	 .     : '\(.\)' 2>/dev/null ||
6466echo X"$file" |
6467    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6468  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6469  	  /^X\(\/\/\)$/{ s//\1/; q; }
6470  	  /^X\(\/\).*/{ s//\1/; q; }
6471  	  s/.*/./; q'`
6472    { if $as_mkdir_p; then
6473    mkdir -p $dirpart/$fdir
6474  else
6475    as_dir=$dirpart/$fdir
6476    as_dirs=
6477    while test ! -d "$as_dir"; do
6478      as_dirs="$as_dir $as_dirs"
6479      as_dir=`(dirname "$as_dir") 2>/dev/null ||
6480$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6481	 X"$as_dir" : 'X\(//\)[^/]' \| \
6482	 X"$as_dir" : 'X\(//\)$' \| \
6483	 X"$as_dir" : 'X\(/\)' \| \
6484	 .     : '\(.\)' 2>/dev/null ||
6485echo X"$as_dir" |
6486    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6487  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6488  	  /^X\(\/\/\)$/{ s//\1/; q; }
6489  	  /^X\(\/\).*/{ s//\1/; q; }
6490  	  s/.*/./; q'`
6491    done
6492    test ! -n "$as_dirs" || mkdir $as_dirs
6493  fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
6494echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
6495   { (exit 1); exit 1; }; }; }
6496
6497    # echo "creating $dirpart/$file"
6498    echo '# dummy' > "$dirpart/$file"
6499  done
6500done
6501 ;;
6502  esac
6503done
6504_ACEOF
6505
6506cat >>$CONFIG_STATUS <<\_ACEOF
6507
6508{ (exit 0); exit 0; }
6509_ACEOF
6510chmod +x $CONFIG_STATUS
6511ac_clean_files=$ac_clean_files_save
6512
6513
6514# configure is writing to config.log, and then calls config.status.
6515# config.status does its own redirection, appending to config.log.
6516# Unfortunately, on DOS this fails, as config.log is still kept open
6517# by configure, so config.status won't be able to write to it; its
6518# output is simply discarded.  So we exec the FD to /dev/null,
6519# effectively closing config.log, so it can be properly (re)opened and
6520# appended to by config.status.  When coming back to configure, we
6521# need to make the FD available again.
6522if test "$no_create" != yes; then
6523  ac_cs_success=:
6524  ac_config_status_args=
6525  test "$silent" = yes &&
6526    ac_config_status_args="$ac_config_status_args --quiet"
6527  exec 5>/dev/null
6528  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
6529  exec 5>>config.log
6530  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
6531  # would make configure fail if this is the last instruction.
6532  $ac_cs_success || { (exit 1); exit 1; }
6533fi
6534
6535