ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/cvsroot/PDL-Audio/sndlib/configure
Revision: 1.1
Committed: Tue Dec 28 01:05:17 2004 UTC (21 years, 9 months ago) by root
Branch: MAIN
CVS Tags: rel-1_1
Log Message:
*** empty log message ***

File Contents

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