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