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