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