2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61 for RtAudio 4.0.
5 # Report bugs to <gary@music.mcgill.ca>.
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 ## --------------------- ##
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
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+"$@"}'='"$@"'
25 case `(set -o) 2>/dev/null` in
26 *posix*) set -o posix ;;
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
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
47 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
55 # Support unset when possible.
56 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
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.)
72 # Find who we are. Look in the path if we contain no directory separator.
74 *[\\/]* ) as_myself=$0 ;;
75 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
79 test -z "$as_dir" && as_dir=.
80 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
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
91 if test ! -f "$as_myself"; then
92 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
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
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 \
110 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
111 eval $as_var=C; export $as_var
113 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
117 # Required to use basename.
118 if expr a : '\(a\)' >/dev/null 2>&1 &&
119 test "X`expr 00001 : '.*\(...\)'`" = X001; then
125 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
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 ||
138 sed '/^.*\/\([^/][^/]*\)\/*$/{
156 if test "x$CONFIG_SHELL" = x; then
157 if (eval ":") 2>/dev/null; then
163 if test $as_have_required = yes && (eval ":
173 as_func_ret_success () {
176 as_func_ret_failure () {
181 if as_func_success; then
185 echo as_func_success failed.
188 if as_func_failure; then
190 echo as_func_failure succeeded.
193 if as_func_ret_success; then
197 echo as_func_ret_success failed.
200 if as_func_ret_failure; then
202 echo as_func_ret_failure succeeded.
205 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
209 echo positional parameters were not saved.
212 test \$exitcode = 0) || { (exit 1); exit 1; }
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
223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
224 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
227 test -z "$as_dir" && as_dir=.
230 for as_base in sh bash ksh sh5; do
231 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
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
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+"$@"}'='"$@"'
250 case `(set -o) 2>/dev/null` in
251 *posix*) set -o posix ;;
260 CONFIG_SHELL=$as_shell
262 if { "$as_shell" 2> /dev/null <<\_ASEOF
263 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
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+"$@"}'='"$@"'
271 case `(set -o) 2>/dev/null` in
272 *posix*) set -o posix ;;
288 as_func_ret_success () {
291 as_func_ret_failure () {
296 if as_func_success; then
300 echo as_func_success failed.
303 if as_func_failure; then
305 echo as_func_failure succeeded.
308 if as_func_ret_success; then
312 echo as_func_ret_success failed.
315 if as_func_ret_failure; then
317 echo as_func_ret_failure succeeded.
320 if ( set x; as_func_ret_success y && test x = "$1" ); then
324 echo positional parameters were not saved.
327 test $exitcode = 0) || { (exit 1); exit 1; }
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; }
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
349 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
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; }
368 (eval "as_func_return () {
377 as_func_ret_success () {
380 as_func_ret_failure () {
385 if as_func_success; then
389 echo as_func_success failed.
392 if as_func_failure; then
394 echo as_func_failure succeeded.
397 if as_func_ret_success; then
401 echo as_func_ret_success failed.
404 if as_func_ret_failure; then
406 echo as_func_ret_failure succeeded.
409 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
413 echo positional parameters were not saved.
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
427 test "x$as_lineno_1" != "x$as_lineno_2" &&
428 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
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
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. :-)
451 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
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; }; }
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).
463 # Exit status is that of the last command.
468 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
474 ECHO_C= ECHO_N= ECHO_T=
478 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
485 if expr a : '\(a\)' >/dev/null 2>&1 &&
486 test "X`expr 00001 : '.*\(...\)'`" = X001; then
492 rm -f conf$$ conf$$.exe conf$$.file
493 if test -d conf$$.dir; then
494 rm -f conf$$.dir/conf$$.file
500 if ln -s conf$$.file conf$$ 2>/dev/null; then
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 ||
508 elif ln conf$$.file conf$$ 2>/dev/null; then
513 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
514 rmdir conf$$.dir 2>/dev/null
516 if mkdir -p . 2>/dev/null; then
519 test -d ./-p && rmdir ./-p
523 if test -x / >/dev/null 2>&1; then
526 if ls -dL / >/dev/null 2>&1; then
533 if test -d "$1"; then
539 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
540 ???[sx]*):;;*)false;;esac;fi
544 as_executable_p=$as_test_x
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'"
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'"
554 exec 7<&0 </dev/null 6>&1
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`
564 ac_default_prefix=/usr/local
566 ac_config_libobj_dir=.
572 SHELL=${CONFIG_SHELL-/bin/sh}
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'
581 ac_unique_file="RtAudio.cpp"
582 # Factoring default headers for most tests.
583 ac_includes_default="\
585 #ifdef HAVE_SYS_TYPES_H
586 # include <sys/types.h>
588 #ifdef HAVE_SYS_STAT_H
589 # include <sys/stat.h>
595 # ifdef HAVE_STDLIB_H
600 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
605 #ifdef HAVE_STRINGS_H
606 # include <strings.h>
608 #ifdef HAVE_INTTYPES_H
609 # include <inttypes.h>
627 program_transform_name
690 ac_precious_vars='build_alias
704 # Initialize some variables set by options.
706 ac_init_version=false
707 # The variables have the same names as the options, with
708 # dashes changed to underlines.
716 program_transform_name=s,x,x,
724 # Installation directory options.
725 # These are left unexpanded so users can "make install exec_prefix=/foo"
726 # and all the variables that are supposed to be based on exec_prefix
727 # by default will actually change.
728 # Use braces instead of parens because sh, perl, etc. also accept them.
729 # (The list follows the same order as the GNU Coding Standards.)
730 bindir='${exec_prefix}/bin'
731 sbindir='${exec_prefix}/sbin'
732 libexecdir='${exec_prefix}/libexec'
733 datarootdir='${prefix}/share'
734 datadir='${datarootdir}'
735 sysconfdir='${prefix}/etc'
736 sharedstatedir='${prefix}/com'
737 localstatedir='${prefix}/var'
738 includedir='${prefix}/include'
739 oldincludedir='/usr/include'
740 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
741 infodir='${datarootdir}/info'
746 libdir='${exec_prefix}/lib'
747 localedir='${datarootdir}/locale'
748 mandir='${datarootdir}/man'
754 # If the previous option needs an argument, assign it.
755 if test -n "$ac_prev"; then
756 eval $ac_prev=\$ac_option
762 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
766 # Accept the important Cygnus configure options, so we can diagnose typos.
768 case $ac_dashdash$ac_option in
772 -bindir | --bindir | --bindi | --bind | --bin | --bi)
774 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
777 -build | --build | --buil | --bui | --bu)
778 ac_prev=build_alias ;;
779 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
780 build_alias=$ac_optarg ;;
782 -cache-file | --cache-file | --cache-fil | --cache-fi \
783 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
784 ac_prev=cache_file ;;
785 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
786 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
787 cache_file=$ac_optarg ;;
790 cache_file=config.cache ;;
792 -datadir | --datadir | --datadi | --datad)
794 -datadir=* | --datadir=* | --datadi=* | --datad=*)
795 datadir=$ac_optarg ;;
797 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
798 | --dataroo | --dataro | --datar)
799 ac_prev=datarootdir ;;
800 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
801 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
802 datarootdir=$ac_optarg ;;
804 -disable-* | --disable-*)
805 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
806 # Reject names that are not valid shell variable names.
807 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
808 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
809 { (exit 1); exit 1; }; }
810 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
811 eval enable_$ac_feature=no ;;
813 -docdir | --docdir | --docdi | --doc | --do)
815 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
818 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
820 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
823 -enable-* | --enable-*)
824 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
825 # Reject names that are not valid shell variable names.
826 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
827 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
828 { (exit 1); exit 1; }; }
829 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
830 eval enable_$ac_feature=\$ac_optarg ;;
832 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
833 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
834 | --exec | --exe | --ex)
835 ac_prev=exec_prefix ;;
836 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
837 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
838 | --exec=* | --exe=* | --ex=*)
839 exec_prefix=$ac_optarg ;;
841 -gas | --gas | --ga | --g)
842 # Obsolete; use --with-gas.
845 -help | --help | --hel | --he | -h)
847 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
848 ac_init_help=recursive ;;
849 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
850 ac_init_help=short ;;
852 -host | --host | --hos | --ho)
853 ac_prev=host_alias ;;
854 -host=* | --host=* | --hos=* | --ho=*)
855 host_alias=$ac_optarg ;;
857 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
859 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
861 htmldir=$ac_optarg ;;
863 -includedir | --includedir | --includedi | --included | --include \
864 | --includ | --inclu | --incl | --inc)
865 ac_prev=includedir ;;
866 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
867 | --includ=* | --inclu=* | --incl=* | --inc=*)
868 includedir=$ac_optarg ;;
870 -infodir | --infodir | --infodi | --infod | --info | --inf)
872 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
873 infodir=$ac_optarg ;;
875 -libdir | --libdir | --libdi | --libd)
877 -libdir=* | --libdir=* | --libdi=* | --libd=*)
880 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
881 | --libexe | --libex | --libe)
882 ac_prev=libexecdir ;;
883 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
884 | --libexe=* | --libex=* | --libe=*)
885 libexecdir=$ac_optarg ;;
887 -localedir | --localedir | --localedi | --localed | --locale)
889 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
890 localedir=$ac_optarg ;;
892 -localstatedir | --localstatedir | --localstatedi | --localstated \
893 | --localstate | --localstat | --localsta | --localst | --locals)
894 ac_prev=localstatedir ;;
895 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
896 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
897 localstatedir=$ac_optarg ;;
899 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
901 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
905 # Obsolete; use --without-fp.
908 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
909 | --no-cr | --no-c | -n)
912 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
913 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
916 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
917 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
918 | --oldin | --oldi | --old | --ol | --o)
919 ac_prev=oldincludedir ;;
920 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
921 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
922 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
923 oldincludedir=$ac_optarg ;;
925 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
927 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
930 -program-prefix | --program-prefix | --program-prefi | --program-pref \
931 | --program-pre | --program-pr | --program-p)
932 ac_prev=program_prefix ;;
933 -program-prefix=* | --program-prefix=* | --program-prefi=* \
934 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
935 program_prefix=$ac_optarg ;;
937 -program-suffix | --program-suffix | --program-suffi | --program-suff \
938 | --program-suf | --program-su | --program-s)
939 ac_prev=program_suffix ;;
940 -program-suffix=* | --program-suffix=* | --program-suffi=* \
941 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
942 program_suffix=$ac_optarg ;;
944 -program-transform-name | --program-transform-name \
945 | --program-transform-nam | --program-transform-na \
946 | --program-transform-n | --program-transform- \
947 | --program-transform | --program-transfor \
948 | --program-transfo | --program-transf \
949 | --program-trans | --program-tran \
950 | --progr-tra | --program-tr | --program-t)
951 ac_prev=program_transform_name ;;
952 -program-transform-name=* | --program-transform-name=* \
953 | --program-transform-nam=* | --program-transform-na=* \
954 | --program-transform-n=* | --program-transform-=* \
955 | --program-transform=* | --program-transfor=* \
956 | --program-transfo=* | --program-transf=* \
957 | --program-trans=* | --program-tran=* \
958 | --progr-tra=* | --program-tr=* | --program-t=*)
959 program_transform_name=$ac_optarg ;;
961 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
963 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
966 -psdir | --psdir | --psdi | --psd | --ps)
968 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
971 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
972 | -silent | --silent | --silen | --sile | --sil)
975 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
977 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
979 sbindir=$ac_optarg ;;
981 -sharedstatedir | --sharedstatedir | --sharedstatedi \
982 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
983 | --sharedst | --shareds | --shared | --share | --shar \
985 ac_prev=sharedstatedir ;;
986 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
987 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
988 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
990 sharedstatedir=$ac_optarg ;;
992 -site | --site | --sit)
994 -site=* | --site=* | --sit=*)
997 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
999 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1000 srcdir=$ac_optarg ;;
1002 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1003 | --syscon | --sysco | --sysc | --sys | --sy)
1004 ac_prev=sysconfdir ;;
1005 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1006 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1007 sysconfdir=$ac_optarg ;;
1009 -target | --target | --targe | --targ | --tar | --ta | --t)
1010 ac_prev=target_alias ;;
1011 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1012 target_alias=$ac_optarg ;;
1014 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1017 -version | --version | --versio | --versi | --vers | -V)
1018 ac_init_version=: ;;
1021 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1022 # Reject names that are not valid shell variable names.
1023 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1024 { echo "$as_me: error: invalid package name: $ac_package" >&2
1025 { (exit 1); exit 1; }; }
1026 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1027 eval with_$ac_package=\$ac_optarg ;;
1029 -without-* | --without-*)
1030 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1031 # Reject names that are not valid shell variable names.
1032 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1033 { echo "$as_me: error: invalid package name: $ac_package" >&2
1034 { (exit 1); exit 1; }; }
1035 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1036 eval with_$ac_package=no ;;
1039 # Obsolete; use --with-x.
1042 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1043 | --x-incl | --x-inc | --x-in | --x-i)
1044 ac_prev=x_includes ;;
1045 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1046 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1047 x_includes=$ac_optarg ;;
1049 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1050 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1051 ac_prev=x_libraries ;;
1052 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1053 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1054 x_libraries=$ac_optarg ;;
1056 -*) { echo "$as_me: error: unrecognized option: $ac_option
1057 Try \`$0 --help' for more information." >&2
1058 { (exit 1); exit 1; }; }
1062 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1063 # Reject names that are not valid shell variable names.
1064 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1065 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1066 { (exit 1); exit 1; }; }
1067 eval $ac_envvar=\$ac_optarg
1068 export $ac_envvar ;;
1071 # FIXME: should be removed in autoconf 3.0.
1072 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1073 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1074 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1075 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1081 if test -n "$ac_prev"; then
1082 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1083 { echo "$as_me: error: missing argument to $ac_option" >&2
1084 { (exit 1); exit 1; }; }
1087 # Be sure to have absolute directory names.
1088 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1089 datadir sysconfdir sharedstatedir localstatedir includedir \
1090 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1091 libdir localedir mandir
1093 eval ac_val=\$$ac_var
1095 [\\/$]* | ?:[\\/]* ) continue;;
1096 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1098 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1099 { (exit 1); exit 1; }; }
1102 # There might be people who depend on the old broken behavior: `$host'
1103 # used to hold the argument of --host etc.
1104 # FIXME: To remove some day.
1107 target=$target_alias
1109 # FIXME: To remove some day.
1110 if test "x$host_alias" != x; then
1111 if test "x$build_alias" = x; then
1112 cross_compiling=maybe
1113 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1114 If a cross compiler is detected then cross compile mode will be used." >&2
1115 elif test "x$build_alias" != "x$host_alias"; then
1121 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1123 test "$silent" = yes && exec 6>/dev/null
1126 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1127 ac_ls_di=`ls -di .` &&
1128 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1129 { echo "$as_me: error: Working directory cannot be determined" >&2
1130 { (exit 1); exit 1; }; }
1131 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1132 { echo "$as_me: error: pwd does not report name of working directory" >&2
1133 { (exit 1); exit 1; }; }
1136 # Find the source files, if location was not specified.
1137 if test -z "$srcdir"; then
1138 ac_srcdir_defaulted=yes
1139 # Try the directory containing this script, then the parent directory.
1140 ac_confdir=`$as_dirname -- "$0" ||
1141 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1142 X"$0" : 'X\(//\)[^/]' \| \
1143 X"$0" : 'X\(//\)$' \| \
1144 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1146 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1164 if test ! -r "$srcdir/$ac_unique_file"; then
1168 ac_srcdir_defaulted=no
1170 if test ! -r "$srcdir/$ac_unique_file"; then
1171 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1172 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1173 { (exit 1); exit 1; }; }
1175 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1177 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1178 { (exit 1); exit 1; }; }
1180 # When building in place, set srcdir=.
1181 if test "$ac_abs_confdir" = "$ac_pwd"; then
1184 # Remove unnecessary trailing slashes from srcdir.
1185 # Double slashes in file names in object file debugging info
1186 # mess up M-x gdb in Emacs.
1188 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1190 for ac_var in $ac_precious_vars; do
1191 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1192 eval ac_env_${ac_var}_value=\$${ac_var}
1193 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1194 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1198 # Report the --help message.
1200 if test "$ac_init_help" = "long"; then
1201 # Omit some internal or obsolete options to make the list less imposing.
1202 # This message is too long to be a string in the A/UX 3.1 sh.
1204 \`configure' configures RtAudio 4.0 to adapt to many kinds of systems.
1206 Usage: $0 [OPTION]... [VAR=VALUE]...
1208 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1209 VAR=VALUE. See below for descriptions of some of the useful variables.
1211 Defaults for the options are specified in brackets.
1214 -h, --help display this help and exit
1215 --help=short display options specific to this package
1216 --help=recursive display the short help of all the included packages
1217 -V, --version display version information and exit
1218 -q, --quiet, --silent do not print \`checking...' messages
1219 --cache-file=FILE cache test results in FILE [disabled]
1220 -C, --config-cache alias for \`--cache-file=config.cache'
1221 -n, --no-create do not create output files
1222 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1224 Installation directories:
1225 --prefix=PREFIX install architecture-independent files in PREFIX
1226 [$ac_default_prefix]
1227 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1230 By default, \`make install' will install all the files in
1231 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1232 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1233 for instance \`--prefix=\$HOME'.
1235 For better control, use the options below.
1237 Fine tuning of the installation directories:
1238 --bindir=DIR user executables [EPREFIX/bin]
1239 --sbindir=DIR system admin executables [EPREFIX/sbin]
1240 --libexecdir=DIR program executables [EPREFIX/libexec]
1241 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1242 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1243 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1244 --libdir=DIR object code libraries [EPREFIX/lib]
1245 --includedir=DIR C header files [PREFIX/include]
1246 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1247 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1248 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1249 --infodir=DIR info documentation [DATAROOTDIR/info]
1250 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1251 --mandir=DIR man documentation [DATAROOTDIR/man]
1252 --docdir=DIR documentation root [DATAROOTDIR/doc/rtaudio]
1253 --htmldir=DIR html documentation [DOCDIR]
1254 --dvidir=DIR dvi documentation [DOCDIR]
1255 --pdfdir=DIR pdf documentation [DOCDIR]
1256 --psdir=DIR ps documentation [DOCDIR]
1262 --build=BUILD configure for building on BUILD [guessed]
1263 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1267 if test -n "$ac_init_help"; then
1268 case $ac_init_help in
1269 short | recursive ) echo "Configuration of RtAudio 4.0:";;
1274 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1275 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1276 --enable-debug = enable various debug output
1279 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1280 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1281 --with-jack = choose JACK server support (mac and linux only)
1282 --with-alsa = choose native ALSA API support (linux only)
1283 --with-oss = choose OSS API support (linux only)
1284 --with-jack = choose JACK server support (unix only)
1285 --with-core = choose CoreAudio API support (mac only)
1286 --with-asio = choose ASIO API support (windoze only)
1287 --with-ds = choose DirectSound API support (windoze only)
1289 Some influential environment variables:
1290 CXX C++ compiler command
1291 CXXFLAGS C++ compiler flags
1292 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1293 nonstandard directory <lib dir>
1294 LIBS libraries to pass to the linker, e.g. -l<library>
1295 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1296 you have headers in a nonstandard directory <include dir>
1297 CC C compiler command
1298 CFLAGS C compiler flags
1301 Use these variables to override the choices made by `configure' or to help
1302 it to find libraries and programs with nonstandard names/locations.
1304 Report bugs to <gary@music.mcgill.ca>.
1309 if test "$ac_init_help" = "recursive"; then
1310 # If there are subdirs, report their specific --help.
1311 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1312 test -d "$ac_dir" || continue
1316 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1318 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1319 # A ".." for each directory in $ac_dir_suffix.
1320 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1321 case $ac_top_builddir_sub in
1322 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1323 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1326 ac_abs_top_builddir=$ac_pwd
1327 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1328 # for backward compatibility:
1329 ac_top_builddir=$ac_top_build_prefix
1332 .) # We are building in place.
1334 ac_top_srcdir=$ac_top_builddir_sub
1335 ac_abs_top_srcdir=$ac_pwd ;;
1336 [\\/]* | ?:[\\/]* ) # Absolute name.
1337 ac_srcdir=$srcdir$ac_dir_suffix;
1338 ac_top_srcdir=$srcdir
1339 ac_abs_top_srcdir=$srcdir ;;
1341 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1342 ac_top_srcdir=$ac_top_build_prefix$srcdir
1343 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1345 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1347 cd "$ac_dir" || { ac_status=$?; continue; }
1348 # Check for guested configure.
1349 if test -f "$ac_srcdir/configure.gnu"; then
1351 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1352 elif test -f "$ac_srcdir/configure"; then
1354 $SHELL "$ac_srcdir/configure" --help=recursive
1356 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1358 cd "$ac_pwd" || { ac_status=$?; break; }
1362 test -n "$ac_init_help" && exit $ac_status
1363 if $ac_init_version; then
1365 RtAudio configure 4.0
1366 generated by GNU Autoconf 2.61
1368 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1369 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1370 This configure script is free software; the Free Software Foundation
1371 gives unlimited permission to copy, distribute and modify it.
1375 cat >config.log <<_ACEOF
1376 This file contains any messages produced by compilers while
1377 running configure, to aid debugging if configure makes a mistake.
1379 It was created by RtAudio $as_me 4.0, which was
1380 generated by GNU Autoconf 2.61. Invocation command line was
1392 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1393 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1394 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1395 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1396 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1398 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1399 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1401 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1402 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1403 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1404 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1405 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1406 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1407 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1411 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1415 test -z "$as_dir" && as_dir=.
1416 echo "PATH: $as_dir"
1432 # Keep a trace of the command line.
1433 # Strip out --no-create and --no-recursion so they do not pile up.
1434 # Strip out --silent because we don't want to record it for future runs.
1435 # Also quote any args containing shell meta-characters.
1436 # Make two passes to allow for proper duplicate-argument suppression.
1440 ac_must_keep_next=false
1446 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1447 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1448 | -silent | --silent | --silen | --sile | --sil)
1451 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1454 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1456 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1457 if test $ac_must_keep_next = true; then
1458 ac_must_keep_next=false # Got value, back to normal.
1461 *=* | --config-cache | -C | -disable-* | --disable-* \
1462 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1463 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1464 | -with-* | --with-* | -without-* | --without-* | --x)
1465 case "$ac_configure_args0 " in
1466 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1469 -* ) ac_must_keep_next=true ;;
1472 ac_configure_args="$ac_configure_args '$ac_arg'"
1477 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1478 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1480 # When interrupted or exit'd, cleanup temporary files, and complete
1481 # config.log. We remove comments because anyway the quotes in there
1482 # would cause problems or look ugly.
1483 # WARNING: Use '\'' to represent an apostrophe within the trap.
1484 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1485 trap 'exit_status=$?
1486 # Save into config.log some information that might help in debugging.
1491 ## ---------------- ##
1492 ## Cache variables. ##
1493 ## ---------------- ##
1496 # The following way of writing the cache mishandles newlines in values,
1498 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1499 eval ac_val=\$$ac_var
1503 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1504 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1507 _ | IFS | as_nl) ;; #(
1508 *) $as_unset $ac_var ;;
1513 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1514 *${as_nl}ac_space=\ *)
1516 "s/'\''/'\''\\\\'\'''\''/g;
1517 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1520 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1528 ## ----------------- ##
1529 ## Output variables. ##
1530 ## ----------------- ##
1533 for ac_var in $ac_subst_vars
1535 eval ac_val=\$$ac_var
1537 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1539 echo "$ac_var='\''$ac_val'\''"
1543 if test -n "$ac_subst_files"; then
1545 ## ------------------- ##
1546 ## File substitutions. ##
1547 ## ------------------- ##
1550 for ac_var in $ac_subst_files
1552 eval ac_val=\$$ac_var
1554 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1556 echo "$ac_var='\''$ac_val'\''"
1561 if test -s confdefs.h; then
1571 test "$ac_signal" != 0 &&
1572 echo "$as_me: caught signal $ac_signal"
1573 echo "$as_me: exit $exit_status"
1575 rm -f core *.core core.conftest.* &&
1576 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1579 for ac_signal in 1 2 13 15; do
1580 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1584 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1585 rm -f -r conftest* confdefs.h
1587 # Predefined preprocessor variables.
1589 cat >>confdefs.h <<_ACEOF
1590 #define PACKAGE_NAME "$PACKAGE_NAME"
1594 cat >>confdefs.h <<_ACEOF
1595 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1599 cat >>confdefs.h <<_ACEOF
1600 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1604 cat >>confdefs.h <<_ACEOF
1605 #define PACKAGE_STRING "$PACKAGE_STRING"
1609 cat >>confdefs.h <<_ACEOF
1610 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1614 # Let the site file select an alternate cache file if it wants to.
1615 # Prefer explicitly selected file to automatically selected ones.
1616 if test -n "$CONFIG_SITE"; then
1617 set x "$CONFIG_SITE"
1618 elif test "x$prefix" != xNONE; then
1619 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1621 set x "$ac_default_prefix/share/config.site" \
1622 "$ac_default_prefix/etc/config.site"
1627 if test -r "$ac_site_file"; then
1628 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1629 echo "$as_me: loading site script $ac_site_file" >&6;}
1630 sed 's/^/| /' "$ac_site_file" >&5
1635 if test -r "$cache_file"; then
1636 # Some versions of bash will fail to source /dev/null (special
1637 # files actually), so we avoid doing that.
1638 if test -f "$cache_file"; then
1639 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1640 echo "$as_me: loading cache $cache_file" >&6;}
1642 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1643 *) . "./$cache_file";;
1647 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1648 echo "$as_me: creating cache $cache_file" >&6;}
1652 # Check that the precious variables saved in the cache have kept the same
1654 ac_cache_corrupted=false
1655 for ac_var in $ac_precious_vars; do
1656 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1657 eval ac_new_set=\$ac_env_${ac_var}_set
1658 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1659 eval ac_new_val=\$ac_env_${ac_var}_value
1660 case $ac_old_set,$ac_new_set in
1662 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1663 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1664 ac_cache_corrupted=: ;;
1666 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1667 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1668 ac_cache_corrupted=: ;;
1671 if test "x$ac_old_val" != "x$ac_new_val"; then
1672 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1673 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1674 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1675 echo "$as_me: former value: $ac_old_val" >&2;}
1676 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1677 echo "$as_me: current value: $ac_new_val" >&2;}
1678 ac_cache_corrupted=:
1681 # Pass precious variables to config.status.
1682 if test "$ac_new_set" = set; then
1684 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1685 *) ac_arg=$ac_var=$ac_new_val ;;
1687 case " $ac_configure_args " in
1688 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1689 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1693 if $ac_cache_corrupted; then
1694 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1695 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1696 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1697 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1698 { (exit 1); exit 1; }; }
1726 ac_cpp='$CPP $CPPFLAGS'
1727 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1728 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1729 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1733 for ac_dir in config "$srcdir"/config; do
1734 if test -f "$ac_dir/install-sh"; then
1736 ac_install_sh="$ac_aux_dir/install-sh -c"
1738 elif test -f "$ac_dir/install.sh"; then
1740 ac_install_sh="$ac_aux_dir/install.sh -c"
1742 elif test -f "$ac_dir/shtool"; then
1744 ac_install_sh="$ac_aux_dir/shtool install -c"
1748 if test -z "$ac_aux_dir"; then
1749 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&5
1750 echo "$as_me: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&2;}
1751 { (exit 1); exit 1; }; }
1754 # These three variables are undocumented and unsupported,
1755 # and are intended to be withdrawn in a future Autoconf release.
1756 # They can cause serious problems if a builder's source tree is in a directory
1757 # whose full name contains unusual characters.
1758 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1759 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1760 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1764 ac_config_files="$ac_config_files rtaudio-config Makefile tests/Makefile"
1767 # Fill GXX with something before test.
1771 # Checks for programs.
1773 ac_cpp='$CXXCPP $CPPFLAGS'
1774 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1775 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1776 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1777 if test -z "$CXX"; then
1778 if test -n "$CCC"; then
1781 if test -n "$ac_tool_prefix"; then
1782 for ac_prog in g++ CC c++ cxx
1784 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1785 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1786 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1787 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1788 if test "${ac_cv_prog_CXX+set}" = set; then
1789 echo $ECHO_N "(cached) $ECHO_C" >&6
1791 if test -n "$CXX"; then
1792 ac_cv_prog_CXX="$CXX" # Let the user override the test.
1794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1798 test -z "$as_dir" && as_dir=.
1799 for ac_exec_ext in '' $ac_executable_extensions; do
1800 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1801 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
1802 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1812 if test -n "$CXX"; then
1813 { echo "$as_me:$LINENO: result: $CXX" >&5
1814 echo "${ECHO_T}$CXX" >&6; }
1816 { echo "$as_me:$LINENO: result: no" >&5
1817 echo "${ECHO_T}no" >&6; }
1821 test -n "$CXX" && break
1824 if test -z "$CXX"; then
1826 for ac_prog in g++ CC c++ cxx
1828 # Extract the first word of "$ac_prog", so it can be a program name with args.
1829 set dummy $ac_prog; ac_word=$2
1830 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1831 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1832 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
1833 echo $ECHO_N "(cached) $ECHO_C" >&6
1835 if test -n "$ac_ct_CXX"; then
1836 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
1838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1842 test -z "$as_dir" && as_dir=.
1843 for ac_exec_ext in '' $ac_executable_extensions; do
1844 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1845 ac_cv_prog_ac_ct_CXX="$ac_prog"
1846 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1855 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
1856 if test -n "$ac_ct_CXX"; then
1857 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
1858 echo "${ECHO_T}$ac_ct_CXX" >&6; }
1860 { echo "$as_me:$LINENO: result: no" >&5
1861 echo "${ECHO_T}no" >&6; }
1865 test -n "$ac_ct_CXX" && break
1868 if test "x$ac_ct_CXX" = x; then
1871 case $cross_compiling:$ac_tool_warned in
1873 { echo "$as_me:$LINENO: 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." >&5
1876 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
1877 whose name does not start with the host triplet. If you think this
1878 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
1879 ac_tool_warned=yes ;;
1887 # Provide some information about the compiler.
1888 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
1889 ac_compiler=`set X $ac_compile; echo $2`
1890 { (ac_try="$ac_compiler --version >&5"
1892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1893 *) ac_try_echo=$ac_try;;
1895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1896 (eval "$ac_compiler --version >&5") 2>&5
1898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1899 (exit $ac_status); }
1900 { (ac_try="$ac_compiler -v >&5"
1902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1903 *) ac_try_echo=$ac_try;;
1905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1906 (eval "$ac_compiler -v >&5") 2>&5
1908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1909 (exit $ac_status); }
1910 { (ac_try="$ac_compiler -V >&5"
1912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1913 *) ac_try_echo=$ac_try;;
1915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1916 (eval "$ac_compiler -V >&5") 2>&5
1918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1919 (exit $ac_status); }
1921 cat >conftest.$ac_ext <<_ACEOF
1924 cat confdefs.h >>conftest.$ac_ext
1925 cat >>conftest.$ac_ext <<_ACEOF
1926 /* end confdefs.h. */
1936 ac_clean_files_save=$ac_clean_files
1937 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1938 # Try to create an executable without -o first, disregard a.out.
1939 # It will help us diagnose broken compilers, and finding out an intuition
1941 { echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
1942 echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6; }
1943 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1945 # List of possible output files, starting from the most likely.
1946 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
1947 # only as a last resort. b.out is created by i960 compilers.
1948 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
1950 # The IRIX 6 linker writes into existing files which may not be
1951 # executable, retaining their permissions. Remove them first so a
1952 # subsequent execution test works.
1954 for ac_file in $ac_files
1957 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
1958 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
1963 if { (ac_try="$ac_link_default"
1965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1966 *) ac_try_echo=$ac_try;;
1968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1969 (eval "$ac_link_default") 2>&5
1971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1972 (exit $ac_status); }; then
1973 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
1974 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
1975 # in a Makefile. We should not override ac_cv_exeext if it was cached,
1976 # so that the user can short-circuit this test for compilers unknown to
1978 for ac_file in $ac_files ''
1980 test -f "$ac_file" || continue
1982 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
1985 # We found the default executable, but exeext='' is most
1989 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
1991 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1993 # We set ac_cv_exeext here because the later test for it is not
1994 # safe: cross compilers may not add the suffix if given an `-o'
1995 # argument, so we may need to know it at that point already.
1996 # Even if this section looks crufty: it has the advantage of
2003 test "$ac_cv_exeext" = no && ac_cv_exeext=
2009 { echo "$as_me:$LINENO: result: $ac_file" >&5
2010 echo "${ECHO_T}$ac_file" >&6; }
2011 if test -z "$ac_file"; then
2012 echo "$as_me: failed program was:" >&5
2013 sed 's/^/| /' conftest.$ac_ext >&5
2015 { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
2016 See \`config.log' for more details." >&5
2017 echo "$as_me: error: C++ compiler cannot create executables
2018 See \`config.log' for more details." >&2;}
2019 { (exit 77); exit 77; }; }
2022 ac_exeext=$ac_cv_exeext
2024 # Check that the compiler produces executables we can run. If not, either
2025 # the compiler is broken, or we cross compile.
2026 { echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
2027 echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6; }
2028 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2029 # If not cross compiling, check that we can run a simple program.
2030 if test "$cross_compiling" != yes; then
2031 if { ac_try='./$ac_file'
2032 { (case "(($ac_try" in
2033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2034 *) ac_try_echo=$ac_try;;
2036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2037 (eval "$ac_try") 2>&5
2039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2040 (exit $ac_status); }; }; then
2043 if test "$cross_compiling" = maybe; then
2046 { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
2047 If you meant to cross compile, use \`--host'.
2048 See \`config.log' for more details." >&5
2049 echo "$as_me: error: cannot run C++ compiled programs.
2050 If you meant to cross compile, use \`--host'.
2051 See \`config.log' for more details." >&2;}
2052 { (exit 1); exit 1; }; }
2056 { echo "$as_me:$LINENO: result: yes" >&5
2057 echo "${ECHO_T}yes" >&6; }
2059 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2060 ac_clean_files=$ac_clean_files_save
2061 # Check that the compiler produces executables we can run. If not, either
2062 # the compiler is broken, or we cross compile.
2063 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2064 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2065 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2066 echo "${ECHO_T}$cross_compiling" >&6; }
2068 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2069 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2070 if { (ac_try="$ac_link"
2072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2073 *) ac_try_echo=$ac_try;;
2075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2076 (eval "$ac_link") 2>&5
2078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2079 (exit $ac_status); }; then
2080 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2081 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2082 # work properly (i.e., refer to `conftest.exe'), while it won't with
2084 for ac_file in conftest.exe conftest conftest.*; do
2085 test -f "$ac_file" || continue
2087 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2088 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2094 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2095 See \`config.log' for more details." >&5
2096 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2097 See \`config.log' for more details." >&2;}
2098 { (exit 1); exit 1; }; }
2101 rm -f conftest$ac_cv_exeext
2102 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2103 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2105 rm -f conftest.$ac_ext
2106 EXEEXT=$ac_cv_exeext
2108 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2109 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2110 if test "${ac_cv_objext+set}" = set; then
2111 echo $ECHO_N "(cached) $ECHO_C" >&6
2113 cat >conftest.$ac_ext <<_ACEOF
2116 cat confdefs.h >>conftest.$ac_ext
2117 cat >>conftest.$ac_ext <<_ACEOF
2118 /* end confdefs.h. */
2128 rm -f conftest.o conftest.obj
2129 if { (ac_try="$ac_compile"
2131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2132 *) ac_try_echo=$ac_try;;
2134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2135 (eval "$ac_compile") 2>&5
2137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2138 (exit $ac_status); }; then
2139 for ac_file in conftest.o conftest.obj conftest.*; do
2140 test -f "$ac_file" || continue;
2142 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2143 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2148 echo "$as_me: failed program was:" >&5
2149 sed 's/^/| /' conftest.$ac_ext >&5
2151 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2152 See \`config.log' for more details." >&5
2153 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2154 See \`config.log' for more details." >&2;}
2155 { (exit 1); exit 1; }; }
2158 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2160 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2161 echo "${ECHO_T}$ac_cv_objext" >&6; }
2162 OBJEXT=$ac_cv_objext
2164 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2165 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2166 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2167 echo $ECHO_N "(cached) $ECHO_C" >&6
2169 cat >conftest.$ac_ext <<_ACEOF
2172 cat confdefs.h >>conftest.$ac_ext
2173 cat >>conftest.$ac_ext <<_ACEOF
2174 /* end confdefs.h. */
2187 rm -f conftest.$ac_objext
2188 if { (ac_try="$ac_compile"
2190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2191 *) ac_try_echo=$ac_try;;
2193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2194 (eval "$ac_compile") 2>conftest.er1
2196 grep -v '^ *+' conftest.er1 >conftest.err
2198 cat conftest.err >&5
2199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2200 (exit $ac_status); } && {
2201 test -z "$ac_cxx_werror_flag" ||
2202 test ! -s conftest.err
2203 } && test -s conftest.$ac_objext; then
2206 echo "$as_me: failed program was:" >&5
2207 sed 's/^/| /' conftest.$ac_ext >&5
2212 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2213 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2216 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2217 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
2218 GXX=`test $ac_compiler_gnu = yes && echo yes`
2219 ac_test_CXXFLAGS=${CXXFLAGS+set}
2220 ac_save_CXXFLAGS=$CXXFLAGS
2221 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2222 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
2223 if test "${ac_cv_prog_cxx_g+set}" = set; then
2224 echo $ECHO_N "(cached) $ECHO_C" >&6
2226 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
2227 ac_cxx_werror_flag=yes
2230 cat >conftest.$ac_ext <<_ACEOF
2233 cat confdefs.h >>conftest.$ac_ext
2234 cat >>conftest.$ac_ext <<_ACEOF
2235 /* end confdefs.h. */
2245 rm -f conftest.$ac_objext
2246 if { (ac_try="$ac_compile"
2248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2249 *) ac_try_echo=$ac_try;;
2251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2252 (eval "$ac_compile") 2>conftest.er1
2254 grep -v '^ *+' conftest.er1 >conftest.err
2256 cat conftest.err >&5
2257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2258 (exit $ac_status); } && {
2259 test -z "$ac_cxx_werror_flag" ||
2260 test ! -s conftest.err
2261 } && test -s conftest.$ac_objext; then
2262 ac_cv_prog_cxx_g=yes
2264 echo "$as_me: failed program was:" >&5
2265 sed 's/^/| /' conftest.$ac_ext >&5
2268 cat >conftest.$ac_ext <<_ACEOF
2271 cat confdefs.h >>conftest.$ac_ext
2272 cat >>conftest.$ac_ext <<_ACEOF
2273 /* end confdefs.h. */
2283 rm -f conftest.$ac_objext
2284 if { (ac_try="$ac_compile"
2286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2287 *) ac_try_echo=$ac_try;;
2289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2290 (eval "$ac_compile") 2>conftest.er1
2292 grep -v '^ *+' conftest.er1 >conftest.err
2294 cat conftest.err >&5
2295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2296 (exit $ac_status); } && {
2297 test -z "$ac_cxx_werror_flag" ||
2298 test ! -s conftest.err
2299 } && test -s conftest.$ac_objext; then
2302 echo "$as_me: failed program was:" >&5
2303 sed 's/^/| /' conftest.$ac_ext >&5
2305 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
2307 cat >conftest.$ac_ext <<_ACEOF
2310 cat confdefs.h >>conftest.$ac_ext
2311 cat >>conftest.$ac_ext <<_ACEOF
2312 /* end confdefs.h. */
2322 rm -f conftest.$ac_objext
2323 if { (ac_try="$ac_compile"
2325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2326 *) ac_try_echo=$ac_try;;
2328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2329 (eval "$ac_compile") 2>conftest.er1
2331 grep -v '^ *+' conftest.er1 >conftest.err
2333 cat conftest.err >&5
2334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2335 (exit $ac_status); } && {
2336 test -z "$ac_cxx_werror_flag" ||
2337 test ! -s conftest.err
2338 } && test -s conftest.$ac_objext; then
2339 ac_cv_prog_cxx_g=yes
2341 echo "$as_me: failed program was:" >&5
2342 sed 's/^/| /' conftest.$ac_ext >&5
2347 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2350 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2353 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2354 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
2356 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2357 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
2358 if test "$ac_test_CXXFLAGS" = set; then
2359 CXXFLAGS=$ac_save_CXXFLAGS
2360 elif test $ac_cv_prog_cxx_g = yes; then
2361 if test "$GXX" = yes; then
2367 if test "$GXX" = yes; then
2374 ac_cpp='$CPP $CPPFLAGS'
2375 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2376 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2377 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2379 if test -n "$ac_tool_prefix"; then
2380 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2381 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2382 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2383 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2384 if test "${ac_cv_prog_RANLIB+set}" = set; then
2385 echo $ECHO_N "(cached) $ECHO_C" >&6
2387 if test -n "$RANLIB"; then
2388 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2394 test -z "$as_dir" && as_dir=.
2395 for ac_exec_ext in '' $ac_executable_extensions; do
2396 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2397 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2398 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2407 RANLIB=$ac_cv_prog_RANLIB
2408 if test -n "$RANLIB"; then
2409 { echo "$as_me:$LINENO: result: $RANLIB" >&5
2410 echo "${ECHO_T}$RANLIB" >&6; }
2412 { echo "$as_me:$LINENO: result: no" >&5
2413 echo "${ECHO_T}no" >&6; }
2418 if test -z "$ac_cv_prog_RANLIB"; then
2419 ac_ct_RANLIB=$RANLIB
2420 # Extract the first word of "ranlib", so it can be a program name with args.
2421 set dummy ranlib; ac_word=$2
2422 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2423 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2424 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2425 echo $ECHO_N "(cached) $ECHO_C" >&6
2427 if test -n "$ac_ct_RANLIB"; then
2428 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2434 test -z "$as_dir" && as_dir=.
2435 for ac_exec_ext in '' $ac_executable_extensions; do
2436 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2437 ac_cv_prog_ac_ct_RANLIB="ranlib"
2438 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2447 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2448 if test -n "$ac_ct_RANLIB"; then
2449 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2450 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
2452 { echo "$as_me:$LINENO: result: no" >&5
2453 echo "${ECHO_T}no" >&6; }
2456 if test "x$ac_ct_RANLIB" = x; then
2459 case $cross_compiling:$ac_tool_warned in
2461 { echo "$as_me:$LINENO: 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." >&5
2464 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2465 whose name does not start with the host triplet. If you think this
2466 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2467 ac_tool_warned=yes ;;
2469 RANLIB=$ac_ct_RANLIB
2472 RANLIB="$ac_cv_prog_RANLIB"
2475 # Extract the first word of "ar", so it can be a program name with args.
2476 set dummy ar; ac_word=$2
2477 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2478 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2479 if test "${ac_cv_path_AR+set}" = set; then
2480 echo $ECHO_N "(cached) $ECHO_C" >&6
2484 ac_cv_path_AR="$AR" # Let the user override the test with a path.
2487 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2491 test -z "$as_dir" && as_dir=.
2492 for ac_exec_ext in '' $ac_executable_extensions; do
2493 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2494 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
2495 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2502 test -z "$ac_cv_path_AR" && ac_cv_path_AR="no"
2507 if test -n "$AR"; then
2508 { echo "$as_me:$LINENO: result: $AR" >&5
2509 echo "${ECHO_T}$AR" >&6; }
2511 { echo "$as_me:$LINENO: result: no" >&5
2512 echo "${ECHO_T}no" >&6; }
2516 if [ $AR = "no" ] ; then
2517 { { echo "$as_me:$LINENO: error: \"Could not find ar - needed to create a library\"" >&5
2518 echo "$as_me: error: \"Could not find ar - needed to create a library\"" >&2;}
2519 { (exit 1); exit 1; }; };
2522 # Checks for header files.
2524 ac_cpp='$CPP $CPPFLAGS'
2525 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2526 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2527 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2528 if test -n "$ac_tool_prefix"; then
2529 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2530 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2531 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2532 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2533 if test "${ac_cv_prog_CC+set}" = set; then
2534 echo $ECHO_N "(cached) $ECHO_C" >&6
2536 if test -n "$CC"; then
2537 ac_cv_prog_CC="$CC" # Let the user override the test.
2539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2543 test -z "$as_dir" && as_dir=.
2544 for ac_exec_ext in '' $ac_executable_extensions; do
2545 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2546 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2547 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2557 if test -n "$CC"; then
2558 { echo "$as_me:$LINENO: result: $CC" >&5
2559 echo "${ECHO_T}$CC" >&6; }
2561 { echo "$as_me:$LINENO: result: no" >&5
2562 echo "${ECHO_T}no" >&6; }
2567 if test -z "$ac_cv_prog_CC"; then
2569 # Extract the first word of "gcc", so it can be a program name with args.
2570 set dummy gcc; ac_word=$2
2571 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2572 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2573 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2574 echo $ECHO_N "(cached) $ECHO_C" >&6
2576 if test -n "$ac_ct_CC"; then
2577 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2583 test -z "$as_dir" && as_dir=.
2584 for ac_exec_ext in '' $ac_executable_extensions; do
2585 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2586 ac_cv_prog_ac_ct_CC="gcc"
2587 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2596 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2597 if test -n "$ac_ct_CC"; then
2598 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2599 echo "${ECHO_T}$ac_ct_CC" >&6; }
2601 { echo "$as_me:$LINENO: result: no" >&5
2602 echo "${ECHO_T}no" >&6; }
2605 if test "x$ac_ct_CC" = x; then
2608 case $cross_compiling:$ac_tool_warned in
2610 { echo "$as_me:$LINENO: 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." >&5
2613 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2614 whose name does not start with the host triplet. If you think this
2615 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2616 ac_tool_warned=yes ;;
2624 if test -z "$CC"; then
2625 if test -n "$ac_tool_prefix"; then
2626 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2627 set dummy ${ac_tool_prefix}cc; ac_word=$2
2628 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2629 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2630 if test "${ac_cv_prog_CC+set}" = set; then
2631 echo $ECHO_N "(cached) $ECHO_C" >&6
2633 if test -n "$CC"; then
2634 ac_cv_prog_CC="$CC" # Let the user override the test.
2636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2640 test -z "$as_dir" && as_dir=.
2641 for ac_exec_ext in '' $ac_executable_extensions; do
2642 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2643 ac_cv_prog_CC="${ac_tool_prefix}cc"
2644 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2654 if test -n "$CC"; then
2655 { echo "$as_me:$LINENO: result: $CC" >&5
2656 echo "${ECHO_T}$CC" >&6; }
2658 { echo "$as_me:$LINENO: result: no" >&5
2659 echo "${ECHO_T}no" >&6; }
2665 if test -z "$CC"; then
2666 # Extract the first word of "cc", so it can be a program name with args.
2667 set dummy cc; ac_word=$2
2668 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2669 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2670 if test "${ac_cv_prog_CC+set}" = set; then
2671 echo $ECHO_N "(cached) $ECHO_C" >&6
2673 if test -n "$CC"; then
2674 ac_cv_prog_CC="$CC" # Let the user override the test.
2677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2681 test -z "$as_dir" && as_dir=.
2682 for ac_exec_ext in '' $ac_executable_extensions; do
2683 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2684 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2685 ac_prog_rejected=yes
2689 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2696 if test $ac_prog_rejected = yes; then
2697 # We found a bogon in the path, so make sure we never use it.
2698 set dummy $ac_cv_prog_CC
2700 if test $# != 0; then
2701 # We chose a different compiler from the bogus one.
2702 # However, it has the same basename, so the bogon will be chosen
2703 # first if we set CC to just the basename; use the full file name.
2705 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2711 if test -n "$CC"; then
2712 { echo "$as_me:$LINENO: result: $CC" >&5
2713 echo "${ECHO_T}$CC" >&6; }
2715 { echo "$as_me:$LINENO: result: no" >&5
2716 echo "${ECHO_T}no" >&6; }
2721 if test -z "$CC"; then
2722 if test -n "$ac_tool_prefix"; then
2723 for ac_prog in cl.exe
2725 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2726 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2727 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2728 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2729 if test "${ac_cv_prog_CC+set}" = set; then
2730 echo $ECHO_N "(cached) $ECHO_C" >&6
2732 if test -n "$CC"; then
2733 ac_cv_prog_CC="$CC" # Let the user override the test.
2735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2739 test -z "$as_dir" && as_dir=.
2740 for ac_exec_ext in '' $ac_executable_extensions; do
2741 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2742 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2743 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2753 if test -n "$CC"; then
2754 { echo "$as_me:$LINENO: result: $CC" >&5
2755 echo "${ECHO_T}$CC" >&6; }
2757 { echo "$as_me:$LINENO: result: no" >&5
2758 echo "${ECHO_T}no" >&6; }
2762 test -n "$CC" && break
2765 if test -z "$CC"; then
2767 for ac_prog in cl.exe
2769 # Extract the first word of "$ac_prog", so it can be a program name with args.
2770 set dummy $ac_prog; ac_word=$2
2771 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2772 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2773 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2774 echo $ECHO_N "(cached) $ECHO_C" >&6
2776 if test -n "$ac_ct_CC"; then
2777 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2783 test -z "$as_dir" && as_dir=.
2784 for ac_exec_ext in '' $ac_executable_extensions; do
2785 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2786 ac_cv_prog_ac_ct_CC="$ac_prog"
2787 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2796 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2797 if test -n "$ac_ct_CC"; then
2798 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2799 echo "${ECHO_T}$ac_ct_CC" >&6; }
2801 { echo "$as_me:$LINENO: result: no" >&5
2802 echo "${ECHO_T}no" >&6; }
2806 test -n "$ac_ct_CC" && break
2809 if test "x$ac_ct_CC" = x; then
2812 case $cross_compiling:$ac_tool_warned in
2814 { echo "$as_me:$LINENO: 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." >&5
2817 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2818 whose name does not start with the host triplet. If you think this
2819 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2820 ac_tool_warned=yes ;;
2829 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2830 See \`config.log' for more details." >&5
2831 echo "$as_me: error: no acceptable C compiler found in \$PATH
2832 See \`config.log' for more details." >&2;}
2833 { (exit 1); exit 1; }; }
2835 # Provide some information about the compiler.
2836 echo "$as_me:$LINENO: checking for C compiler version" >&5
2837 ac_compiler=`set X $ac_compile; echo $2`
2838 { (ac_try="$ac_compiler --version >&5"
2840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2841 *) ac_try_echo=$ac_try;;
2843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2844 (eval "$ac_compiler --version >&5") 2>&5
2846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2847 (exit $ac_status); }
2848 { (ac_try="$ac_compiler -v >&5"
2850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2851 *) ac_try_echo=$ac_try;;
2853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2854 (eval "$ac_compiler -v >&5") 2>&5
2856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2857 (exit $ac_status); }
2858 { (ac_try="$ac_compiler -V >&5"
2860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2861 *) ac_try_echo=$ac_try;;
2863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2864 (eval "$ac_compiler -V >&5") 2>&5
2866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2867 (exit $ac_status); }
2869 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2870 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2871 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2872 echo $ECHO_N "(cached) $ECHO_C" >&6
2874 cat >conftest.$ac_ext <<_ACEOF
2877 cat confdefs.h >>conftest.$ac_ext
2878 cat >>conftest.$ac_ext <<_ACEOF
2879 /* end confdefs.h. */
2892 rm -f conftest.$ac_objext
2893 if { (ac_try="$ac_compile"
2895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2896 *) ac_try_echo=$ac_try;;
2898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2899 (eval "$ac_compile") 2>conftest.er1
2901 grep -v '^ *+' conftest.er1 >conftest.err
2903 cat conftest.err >&5
2904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2905 (exit $ac_status); } && {
2906 test -z "$ac_c_werror_flag" ||
2907 test ! -s conftest.err
2908 } && test -s conftest.$ac_objext; then
2911 echo "$as_me: failed program was:" >&5
2912 sed 's/^/| /' conftest.$ac_ext >&5
2917 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2918 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2921 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2922 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2923 GCC=`test $ac_compiler_gnu = yes && echo yes`
2924 ac_test_CFLAGS=${CFLAGS+set}
2925 ac_save_CFLAGS=$CFLAGS
2926 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2927 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2928 if test "${ac_cv_prog_cc_g+set}" = set; then
2929 echo $ECHO_N "(cached) $ECHO_C" >&6
2931 ac_save_c_werror_flag=$ac_c_werror_flag
2932 ac_c_werror_flag=yes
2935 cat >conftest.$ac_ext <<_ACEOF
2938 cat confdefs.h >>conftest.$ac_ext
2939 cat >>conftest.$ac_ext <<_ACEOF
2940 /* end confdefs.h. */
2950 rm -f conftest.$ac_objext
2951 if { (ac_try="$ac_compile"
2953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2954 *) ac_try_echo=$ac_try;;
2956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2957 (eval "$ac_compile") 2>conftest.er1
2959 grep -v '^ *+' conftest.er1 >conftest.err
2961 cat conftest.err >&5
2962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2963 (exit $ac_status); } && {
2964 test -z "$ac_c_werror_flag" ||
2965 test ! -s conftest.err
2966 } && test -s conftest.$ac_objext; then
2969 echo "$as_me: failed program was:" >&5
2970 sed 's/^/| /' conftest.$ac_ext >&5
2973 cat >conftest.$ac_ext <<_ACEOF
2976 cat confdefs.h >>conftest.$ac_ext
2977 cat >>conftest.$ac_ext <<_ACEOF
2978 /* end confdefs.h. */
2988 rm -f conftest.$ac_objext
2989 if { (ac_try="$ac_compile"
2991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2992 *) ac_try_echo=$ac_try;;
2994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2995 (eval "$ac_compile") 2>conftest.er1
2997 grep -v '^ *+' conftest.er1 >conftest.err
2999 cat conftest.err >&5
3000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3001 (exit $ac_status); } && {
3002 test -z "$ac_c_werror_flag" ||
3003 test ! -s conftest.err
3004 } && test -s conftest.$ac_objext; then
3007 echo "$as_me: failed program was:" >&5
3008 sed 's/^/| /' conftest.$ac_ext >&5
3010 ac_c_werror_flag=$ac_save_c_werror_flag
3012 cat >conftest.$ac_ext <<_ACEOF
3015 cat confdefs.h >>conftest.$ac_ext
3016 cat >>conftest.$ac_ext <<_ACEOF
3017 /* end confdefs.h. */
3027 rm -f conftest.$ac_objext
3028 if { (ac_try="$ac_compile"
3030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3031 *) ac_try_echo=$ac_try;;
3033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3034 (eval "$ac_compile") 2>conftest.er1
3036 grep -v '^ *+' conftest.er1 >conftest.err
3038 cat conftest.err >&5
3039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3040 (exit $ac_status); } && {
3041 test -z "$ac_c_werror_flag" ||
3042 test ! -s conftest.err
3043 } && test -s conftest.$ac_objext; then
3046 echo "$as_me: failed program was:" >&5
3047 sed 's/^/| /' conftest.$ac_ext >&5
3052 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3058 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3059 ac_c_werror_flag=$ac_save_c_werror_flag
3061 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3062 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3063 if test "$ac_test_CFLAGS" = set; then
3064 CFLAGS=$ac_save_CFLAGS
3065 elif test $ac_cv_prog_cc_g = yes; then
3066 if test "$GCC" = yes; then
3072 if test "$GCC" = yes; then
3078 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3079 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3080 if test "${ac_cv_prog_cc_c89+set}" = set; then
3081 echo $ECHO_N "(cached) $ECHO_C" >&6
3083 ac_cv_prog_cc_c89=no
3085 cat >conftest.$ac_ext <<_ACEOF
3088 cat confdefs.h >>conftest.$ac_ext
3089 cat >>conftest.$ac_ext <<_ACEOF
3090 /* end confdefs.h. */
3093 #include <sys/types.h>
3094 #include <sys/stat.h>
3095 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3096 struct buf { int x; };
3097 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3098 static char *e (p, i)
3104 static char *f (char * (*g) (char **, int), char **p, ...)
3109 s = g (p, va_arg (v,int));
3114 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3115 function prototypes and stuff, but not '\xHH' hex character constants.
3116 These don't provoke an error unfortunately, instead are silently treated
3117 as 'x'. The following induces an error, until -std is added to get
3118 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3119 array size at least. It's necessary to write '\x00'==0 to get something
3120 that's true only with -std. */
3121 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3123 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3124 inside strings and character constants. */
3126 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3128 int test (int i, double x);
3129 struct s1 {int (*f) (int a);};
3130 struct s2 {int (*f) (double a);};
3131 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3137 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3142 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3143 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3145 CC="$ac_save_CC $ac_arg"
3146 rm -f conftest.$ac_objext
3147 if { (ac_try="$ac_compile"
3149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3150 *) ac_try_echo=$ac_try;;
3152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3153 (eval "$ac_compile") 2>conftest.er1
3155 grep -v '^ *+' conftest.er1 >conftest.err
3157 cat conftest.err >&5
3158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3159 (exit $ac_status); } && {
3160 test -z "$ac_c_werror_flag" ||
3161 test ! -s conftest.err
3162 } && test -s conftest.$ac_objext; then
3163 ac_cv_prog_cc_c89=$ac_arg
3165 echo "$as_me: failed program was:" >&5
3166 sed 's/^/| /' conftest.$ac_ext >&5
3171 rm -f core conftest.err conftest.$ac_objext
3172 test "x$ac_cv_prog_cc_c89" != "xno" && break
3174 rm -f conftest.$ac_ext
3179 case "x$ac_cv_prog_cc_c89" in
3181 { echo "$as_me:$LINENO: result: none needed" >&5
3182 echo "${ECHO_T}none needed" >&6; } ;;
3184 { echo "$as_me:$LINENO: result: unsupported" >&5
3185 echo "${ECHO_T}unsupported" >&6; } ;;
3187 CC="$CC $ac_cv_prog_cc_c89"
3188 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3189 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3194 ac_cpp='$CPP $CPPFLAGS'
3195 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3196 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3197 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3201 ac_cpp='$CPP $CPPFLAGS'
3202 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3203 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3204 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3205 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3206 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3207 # On Suns, sometimes $CPP names a directory.
3208 if test -n "$CPP" && test -d "$CPP"; then
3211 if test -z "$CPP"; then
3212 if test "${ac_cv_prog_CPP+set}" = set; then
3213 echo $ECHO_N "(cached) $ECHO_C" >&6
3215 # Double quotes because CPP needs to be expanded
3216 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3219 for ac_c_preproc_warn_flag in '' yes
3221 # Use a header file that comes with gcc, so configuring glibc
3222 # with a fresh cross-compiler works.
3223 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3224 # <limits.h> exists even on freestanding compilers.
3225 # On the NeXT, cc -E runs the code through the compiler's parser,
3226 # not just through cpp. "Syntax error" is here to catch this case.
3227 cat >conftest.$ac_ext <<_ACEOF
3230 cat confdefs.h >>conftest.$ac_ext
3231 cat >>conftest.$ac_ext <<_ACEOF
3232 /* end confdefs.h. */
3234 # include <limits.h>
3236 # include <assert.h>
3240 if { (ac_try="$ac_cpp conftest.$ac_ext"
3242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3243 *) ac_try_echo=$ac_try;;
3245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3246 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3248 grep -v '^ *+' conftest.er1 >conftest.err
3250 cat conftest.err >&5
3251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3252 (exit $ac_status); } >/dev/null && {
3253 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3254 test ! -s conftest.err
3258 echo "$as_me: failed program was:" >&5
3259 sed 's/^/| /' conftest.$ac_ext >&5
3261 # Broken: fails on valid input.
3265 rm -f conftest.err conftest.$ac_ext
3267 # OK, works on sane cases. Now check whether nonexistent headers
3268 # can be detected and how.
3269 cat >conftest.$ac_ext <<_ACEOF
3272 cat confdefs.h >>conftest.$ac_ext
3273 cat >>conftest.$ac_ext <<_ACEOF
3274 /* end confdefs.h. */
3275 #include <ac_nonexistent.h>
3277 if { (ac_try="$ac_cpp conftest.$ac_ext"
3279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3280 *) ac_try_echo=$ac_try;;
3282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3283 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3285 grep -v '^ *+' conftest.er1 >conftest.err
3287 cat conftest.err >&5
3288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3289 (exit $ac_status); } >/dev/null && {
3290 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3291 test ! -s conftest.err
3293 # Broken: success on invalid input.
3296 echo "$as_me: failed program was:" >&5
3297 sed 's/^/| /' conftest.$ac_ext >&5
3299 # Passes both tests.
3304 rm -f conftest.err conftest.$ac_ext
3307 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3308 rm -f conftest.err conftest.$ac_ext
3309 if $ac_preproc_ok; then
3321 { echo "$as_me:$LINENO: result: $CPP" >&5
3322 echo "${ECHO_T}$CPP" >&6; }
3324 for ac_c_preproc_warn_flag in '' yes
3326 # Use a header file that comes with gcc, so configuring glibc
3327 # with a fresh cross-compiler works.
3328 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3329 # <limits.h> exists even on freestanding compilers.
3330 # On the NeXT, cc -E runs the code through the compiler's parser,
3331 # not just through cpp. "Syntax error" is here to catch this case.
3332 cat >conftest.$ac_ext <<_ACEOF
3335 cat confdefs.h >>conftest.$ac_ext
3336 cat >>conftest.$ac_ext <<_ACEOF
3337 /* end confdefs.h. */
3339 # include <limits.h>
3341 # include <assert.h>
3345 if { (ac_try="$ac_cpp conftest.$ac_ext"
3347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3348 *) ac_try_echo=$ac_try;;
3350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3351 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3353 grep -v '^ *+' conftest.er1 >conftest.err
3355 cat conftest.err >&5
3356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3357 (exit $ac_status); } >/dev/null && {
3358 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3359 test ! -s conftest.err
3363 echo "$as_me: failed program was:" >&5
3364 sed 's/^/| /' conftest.$ac_ext >&5
3366 # Broken: fails on valid input.
3370 rm -f conftest.err conftest.$ac_ext
3372 # OK, works on sane cases. Now check whether nonexistent headers
3373 # can be detected and how.
3374 cat >conftest.$ac_ext <<_ACEOF
3377 cat confdefs.h >>conftest.$ac_ext
3378 cat >>conftest.$ac_ext <<_ACEOF
3379 /* end confdefs.h. */
3380 #include <ac_nonexistent.h>
3382 if { (ac_try="$ac_cpp conftest.$ac_ext"
3384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3385 *) ac_try_echo=$ac_try;;
3387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3388 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3390 grep -v '^ *+' conftest.er1 >conftest.err
3392 cat conftest.err >&5
3393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3394 (exit $ac_status); } >/dev/null && {
3395 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3396 test ! -s conftest.err
3398 # Broken: success on invalid input.
3401 echo "$as_me: failed program was:" >&5
3402 sed 's/^/| /' conftest.$ac_ext >&5
3404 # Passes both tests.
3409 rm -f conftest.err conftest.$ac_ext
3412 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3413 rm -f conftest.err conftest.$ac_ext
3414 if $ac_preproc_ok; then
3417 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3418 See \`config.log' for more details." >&5
3419 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3420 See \`config.log' for more details." >&2;}
3421 { (exit 1); exit 1; }; }
3425 ac_cpp='$CPP $CPPFLAGS'
3426 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3427 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3428 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3431 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3432 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3433 if test "${ac_cv_path_GREP+set}" = set; then
3434 echo $ECHO_N "(cached) $ECHO_C" >&6
3436 # Extract the first word of "grep ggrep" to use in msg output
3437 if test -z "$GREP"; then
3438 set dummy grep ggrep; ac_prog_name=$2
3439 if test "${ac_cv_path_GREP+set}" = set; then
3440 echo $ECHO_N "(cached) $ECHO_C" >&6
3442 ac_path_GREP_found=false
3443 # Loop through the user's path and test for each of PROGNAME-LIST
3444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3445 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3448 test -z "$as_dir" && as_dir=.
3449 for ac_prog in grep ggrep; do
3450 for ac_exec_ext in '' $ac_executable_extensions; do
3451 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3452 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3453 # Check for GNU ac_path_GREP and select it if it is found.
3454 # Check for GNU $ac_path_GREP
3455 case `"$ac_path_GREP" --version 2>&1` in
3457 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3460 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3463 cat "conftest.in" "conftest.in" >"conftest.tmp"
3464 mv "conftest.tmp" "conftest.in"
3465 cp "conftest.in" "conftest.nl"
3466 echo 'GREP' >> "conftest.nl"
3467 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3468 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3469 ac_count=`expr $ac_count + 1`
3470 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3471 # Best one so far, save it but keep looking for a better one
3472 ac_cv_path_GREP="$ac_path_GREP"
3473 ac_path_GREP_max=$ac_count
3475 # 10*(2^10) chars as input seems more than enough
3476 test $ac_count -gt 10 && break
3478 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3482 $ac_path_GREP_found && break 3
3492 GREP="$ac_cv_path_GREP"
3493 if test -z "$GREP"; then
3494 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3495 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3496 { (exit 1); exit 1; }; }
3500 ac_cv_path_GREP=$GREP
3505 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3506 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3507 GREP="$ac_cv_path_GREP"
3510 { echo "$as_me:$LINENO: checking for egrep" >&5
3511 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3512 if test "${ac_cv_path_EGREP+set}" = set; then
3513 echo $ECHO_N "(cached) $ECHO_C" >&6
3515 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3516 then ac_cv_path_EGREP="$GREP -E"
3518 # Extract the first word of "egrep" to use in msg output
3519 if test -z "$EGREP"; then
3520 set dummy egrep; ac_prog_name=$2
3521 if test "${ac_cv_path_EGREP+set}" = set; then
3522 echo $ECHO_N "(cached) $ECHO_C" >&6
3524 ac_path_EGREP_found=false
3525 # Loop through the user's path and test for each of PROGNAME-LIST
3526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3527 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3530 test -z "$as_dir" && as_dir=.
3531 for ac_prog in egrep; do
3532 for ac_exec_ext in '' $ac_executable_extensions; do
3533 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3534 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3535 # Check for GNU ac_path_EGREP and select it if it is found.
3536 # Check for GNU $ac_path_EGREP
3537 case `"$ac_path_EGREP" --version 2>&1` in
3539 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3542 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3545 cat "conftest.in" "conftest.in" >"conftest.tmp"
3546 mv "conftest.tmp" "conftest.in"
3547 cp "conftest.in" "conftest.nl"
3548 echo 'EGREP' >> "conftest.nl"
3549 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3550 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3551 ac_count=`expr $ac_count + 1`
3552 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3553 # Best one so far, save it but keep looking for a better one
3554 ac_cv_path_EGREP="$ac_path_EGREP"
3555 ac_path_EGREP_max=$ac_count
3557 # 10*(2^10) chars as input seems more than enough
3558 test $ac_count -gt 10 && break
3560 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3564 $ac_path_EGREP_found && break 3
3574 EGREP="$ac_cv_path_EGREP"
3575 if test -z "$EGREP"; then
3576 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3577 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3578 { (exit 1); exit 1; }; }
3582 ac_cv_path_EGREP=$EGREP
3588 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3589 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3590 EGREP="$ac_cv_path_EGREP"
3593 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3594 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3595 if test "${ac_cv_header_stdc+set}" = set; then
3596 echo $ECHO_N "(cached) $ECHO_C" >&6
3598 cat >conftest.$ac_ext <<_ACEOF
3601 cat confdefs.h >>conftest.$ac_ext
3602 cat >>conftest.$ac_ext <<_ACEOF
3603 /* end confdefs.h. */
3617 rm -f conftest.$ac_objext
3618 if { (ac_try="$ac_compile"
3620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3621 *) ac_try_echo=$ac_try;;
3623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3624 (eval "$ac_compile") 2>conftest.er1
3626 grep -v '^ *+' conftest.er1 >conftest.err
3628 cat conftest.err >&5
3629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3630 (exit $ac_status); } && {
3631 test -z "$ac_c_werror_flag" ||
3632 test ! -s conftest.err
3633 } && test -s conftest.$ac_objext; then
3634 ac_cv_header_stdc=yes
3636 echo "$as_me: failed program was:" >&5
3637 sed 's/^/| /' conftest.$ac_ext >&5
3639 ac_cv_header_stdc=no
3642 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3644 if test $ac_cv_header_stdc = yes; then
3645 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3646 cat >conftest.$ac_ext <<_ACEOF
3649 cat confdefs.h >>conftest.$ac_ext
3650 cat >>conftest.$ac_ext <<_ACEOF
3651 /* end confdefs.h. */
3655 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3656 $EGREP "memchr" >/dev/null 2>&1; then
3659 ac_cv_header_stdc=no
3665 if test $ac_cv_header_stdc = yes; then
3666 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3667 cat >conftest.$ac_ext <<_ACEOF
3670 cat confdefs.h >>conftest.$ac_ext
3671 cat >>conftest.$ac_ext <<_ACEOF
3672 /* end confdefs.h. */
3676 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3677 $EGREP "free" >/dev/null 2>&1; then
3680 ac_cv_header_stdc=no
3686 if test $ac_cv_header_stdc = yes; then
3687 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3688 if test "$cross_compiling" = yes; then
3691 cat >conftest.$ac_ext <<_ACEOF
3694 cat confdefs.h >>conftest.$ac_ext
3695 cat >>conftest.$ac_ext <<_ACEOF
3696 /* end confdefs.h. */
3699 #if ((' ' & 0x0FF) == 0x020)
3700 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3701 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3703 # define ISLOWER(c) \
3704 (('a' <= (c) && (c) <= 'i') \
3705 || ('j' <= (c) && (c) <= 'r') \
3706 || ('s' <= (c) && (c) <= 'z'))
3707 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3710 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3715 for (i = 0; i < 256; i++)
3716 if (XOR (islower (i), ISLOWER (i))
3717 || toupper (i) != TOUPPER (i))
3722 rm -f conftest$ac_exeext
3723 if { (ac_try="$ac_link"
3725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3726 *) ac_try_echo=$ac_try;;
3728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3729 (eval "$ac_link") 2>&5
3731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3732 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3733 { (case "(($ac_try" in
3734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3735 *) ac_try_echo=$ac_try;;
3737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3738 (eval "$ac_try") 2>&5
3740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3741 (exit $ac_status); }; }; then
3744 echo "$as_me: program exited with status $ac_status" >&5
3745 echo "$as_me: failed program was:" >&5
3746 sed 's/^/| /' conftest.$ac_ext >&5
3749 ac_cv_header_stdc=no
3751 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3757 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3758 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
3759 if test $ac_cv_header_stdc = yes; then
3761 cat >>confdefs.h <<\_ACEOF
3762 #define STDC_HEADERS 1
3767 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3777 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3778 inttypes.h stdint.h unistd.h
3780 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3781 { echo "$as_me:$LINENO: checking for $ac_header" >&5
3782 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3783 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3784 echo $ECHO_N "(cached) $ECHO_C" >&6
3786 cat >conftest.$ac_ext <<_ACEOF
3789 cat confdefs.h >>conftest.$ac_ext
3790 cat >>conftest.$ac_ext <<_ACEOF
3791 /* end confdefs.h. */
3792 $ac_includes_default
3794 #include <$ac_header>
3796 rm -f conftest.$ac_objext
3797 if { (ac_try="$ac_compile"
3799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3800 *) ac_try_echo=$ac_try;;
3802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3803 (eval "$ac_compile") 2>conftest.er1
3805 grep -v '^ *+' conftest.er1 >conftest.err
3807 cat conftest.err >&5
3808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3809 (exit $ac_status); } && {
3810 test -z "$ac_c_werror_flag" ||
3811 test ! -s conftest.err
3812 } && test -s conftest.$ac_objext; then
3813 eval "$as_ac_Header=yes"
3815 echo "$as_me: failed program was:" >&5
3816 sed 's/^/| /' conftest.$ac_ext >&5
3818 eval "$as_ac_Header=no"
3821 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3823 ac_res=`eval echo '${'$as_ac_Header'}'`
3824 { echo "$as_me:$LINENO: result: $ac_res" >&5
3825 echo "${ECHO_T}$ac_res" >&6; }
3826 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3827 cat >>confdefs.h <<_ACEOF
3828 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3838 for ac_header in sys/ioctl.h unistd.h
3840 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3841 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3842 { echo "$as_me:$LINENO: checking for $ac_header" >&5
3843 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3844 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3845 echo $ECHO_N "(cached) $ECHO_C" >&6
3847 ac_res=`eval echo '${'$as_ac_Header'}'`
3848 { echo "$as_me:$LINENO: result: $ac_res" >&5
3849 echo "${ECHO_T}$ac_res" >&6; }
3851 # Is the header compilable?
3852 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
3853 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
3854 cat >conftest.$ac_ext <<_ACEOF
3857 cat confdefs.h >>conftest.$ac_ext
3858 cat >>conftest.$ac_ext <<_ACEOF
3859 /* end confdefs.h. */
3860 $ac_includes_default
3861 #include <$ac_header>
3863 rm -f conftest.$ac_objext
3864 if { (ac_try="$ac_compile"
3866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3867 *) ac_try_echo=$ac_try;;
3869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3870 (eval "$ac_compile") 2>conftest.er1
3872 grep -v '^ *+' conftest.er1 >conftest.err
3874 cat conftest.err >&5
3875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3876 (exit $ac_status); } && {
3877 test -z "$ac_c_werror_flag" ||
3878 test ! -s conftest.err
3879 } && test -s conftest.$ac_objext; then
3880 ac_header_compiler=yes
3882 echo "$as_me: failed program was:" >&5
3883 sed 's/^/| /' conftest.$ac_ext >&5
3885 ac_header_compiler=no
3888 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3889 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3890 echo "${ECHO_T}$ac_header_compiler" >&6; }
3892 # Is the header present?
3893 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
3894 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
3895 cat >conftest.$ac_ext <<_ACEOF
3898 cat confdefs.h >>conftest.$ac_ext
3899 cat >>conftest.$ac_ext <<_ACEOF
3900 /* end confdefs.h. */
3901 #include <$ac_header>
3903 if { (ac_try="$ac_cpp conftest.$ac_ext"
3905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3906 *) ac_try_echo=$ac_try;;
3908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3909 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3911 grep -v '^ *+' conftest.er1 >conftest.err
3913 cat conftest.err >&5
3914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3915 (exit $ac_status); } >/dev/null && {
3916 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3917 test ! -s conftest.err
3919 ac_header_preproc=yes
3921 echo "$as_me: failed program was:" >&5
3922 sed 's/^/| /' conftest.$ac_ext >&5
3924 ac_header_preproc=no
3927 rm -f conftest.err conftest.$ac_ext
3928 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3929 echo "${ECHO_T}$ac_header_preproc" >&6; }
3931 # So? What about this header?
3932 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3934 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3935 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3936 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3937 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3938 ac_header_preproc=yes
3941 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3942 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3943 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3944 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3945 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3946 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3947 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3948 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
3949 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3950 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3951 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3952 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3954 ## ----------------------------------- ##
3955 ## Report this to gary@music.mcgill.ca ##
3956 ## ----------------------------------- ##
3958 ) | sed "s/^/$as_me: WARNING: /" >&2
3961 { echo "$as_me:$LINENO: checking for $ac_header" >&5
3962 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3963 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3964 echo $ECHO_N "(cached) $ECHO_C" >&6
3966 eval "$as_ac_Header=\$ac_header_preproc"
3968 ac_res=`eval echo '${'$as_ac_Header'}'`
3969 { echo "$as_me:$LINENO: result: $ac_res" >&5
3970 echo "${ECHO_T}$ac_res" >&6; }
3973 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3974 cat >>confdefs.h <<_ACEOF
3975 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3984 { echo "$as_me:$LINENO: checking whether to compile debug version" >&5
3985 echo $ECHO_N "checking whether to compile debug version... $ECHO_C" >&6; }
3986 # Check whether --enable-debug was given.
3987 if test "${enable_debug+set}" = set; then
3988 enableval=$enable_debug; cppflag=-D__RTAUDIO_DEBUG__
3991 { echo "$as_me:$LINENO: result: yes" >&5
3992 echo "${ECHO_T}yes" >&6; }
3997 { echo "$as_me:$LINENO: result: no" >&5
3998 echo "${ECHO_T}no" >&6; }
4003 # Checks for functions
4004 { echo "$as_me:$LINENO: checking for gettimeofday" >&5
4005 echo $ECHO_N "checking for gettimeofday... $ECHO_C" >&6; }
4006 if test "${ac_cv_func_gettimeofday+set}" = set; then
4007 echo $ECHO_N "(cached) $ECHO_C" >&6
4009 cat >conftest.$ac_ext <<_ACEOF
4012 cat confdefs.h >>conftest.$ac_ext
4013 cat >>conftest.$ac_ext <<_ACEOF
4014 /* end confdefs.h. */
4015 /* Define gettimeofday to an innocuous variant, in case <limits.h> declares gettimeofday.
4016 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4017 #define gettimeofday innocuous_gettimeofday
4019 /* System header to define __stub macros and hopefully few prototypes,
4020 which can conflict with char gettimeofday (); below.
4021 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4022 <limits.h> exists even on freestanding compilers. */
4025 # include <limits.h>
4027 # include <assert.h>
4032 /* Override any GCC internal prototype to avoid an error.
4033 Use char because int might match the return type of a GCC
4034 builtin and then its argument prototype would still apply. */
4038 char gettimeofday ();
4039 /* The GNU C library defines this for functions which it implements
4040 to always fail with ENOSYS. Some functions are actually named
4041 something starting with __ and the normal name is an alias. */
4042 #if defined __stub_gettimeofday || defined __stub___gettimeofday
4049 return gettimeofday ();
4054 rm -f conftest.$ac_objext conftest$ac_exeext
4055 if { (ac_try="$ac_link"
4057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4058 *) ac_try_echo=$ac_try;;
4060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4061 (eval "$ac_link") 2>conftest.er1
4063 grep -v '^ *+' conftest.er1 >conftest.err
4065 cat conftest.err >&5
4066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4067 (exit $ac_status); } && {
4068 test -z "$ac_c_werror_flag" ||
4069 test ! -s conftest.err
4070 } && test -s conftest$ac_exeext &&
4071 $as_test_x conftest$ac_exeext; then
4072 ac_cv_func_gettimeofday=yes
4074 echo "$as_me: failed program was:" >&5
4075 sed 's/^/| /' conftest.$ac_ext >&5
4077 ac_cv_func_gettimeofday=no
4080 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4081 conftest$ac_exeext conftest.$ac_ext
4083 { echo "$as_me:$LINENO: result: $ac_cv_func_gettimeofday" >&5
4084 echo "${ECHO_T}$ac_cv_func_gettimeofday" >&6; }
4085 if test $ac_cv_func_gettimeofday = yes; then
4086 cppflag="$cppflag -DHAVE_GETTIMEOFDAY"
4090 # For -I and -D flags
4091 CPPFLAGS="$CPPFLAGS $cppflag"
4093 # For debugging and optimization ... overwrite default because it has both -g and -O2
4094 #CXXFLAGS="$CXXFLAGS $cxxflag"
4097 # Check compiler and use -Wall if gnu.
4098 if test $GXX = "yes" ; then
4103 CXXFLAGS="$CXXFLAGS $cxxflag"
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; }; }
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
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; }; }
4129 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
4130 echo "${ECHO_T}$ac_cv_build" >&6; }
4131 case $ac_cv_build in
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; }; };;
4138 ac_save_IFS=$IFS; IFS='-'
4144 # Remember, the first character of IFS is used to create $*,
4145 # except with old shells:
4148 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
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
4156 if test "x$host_alias" = x; then
4157 ac_cv_host=$ac_cv_build
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; }; }
4166 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4167 echo "${ECHO_T}$ac_cv_host" >&6; }
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; }; };;
4175 ac_save_IFS=$IFS; IFS='-'
4181 # Remember, the first character of IFS is used to create $*,
4182 # except with old shells:
4185 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4189 sharedlib="librtaudio.so"
4191 sharedname="librtaudio.so.\$(RELEASE)"
4193 libflags="-shared -Wl,-soname,\$(SHAREDLIB).\$(MAJOR) -o \$(SHAREDLIB).\$(RELEASE)"
4197 sharedlib="librtaudio.dylib"
4199 sharedname="librtaudio.\$(RELEASE).dylib"
4201 libflags="-dynamiclib -o librtaudio.\$(RELEASE).dylib"
4205 # Checks for package options and external software
4208 { echo "$as_me:$LINENO: checking for audio API" >&5
4209 echo $ECHO_N "checking for audio API... $ECHO_C" >&6; }
4212 { echo "$as_me:$LINENO: result: using OSS" >&5
4213 echo "${ECHO_T}using OSS" >&6; }
4214 api="$api -D__LINUX_OSS__"
4215 LIBS="$LIBS -lossaudio"
4217 { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
4218 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
4219 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
4220 echo $ECHO_N "(cached) $ECHO_C" >&6
4222 ac_check_lib_save_LIBS=$LIBS
4223 LIBS="-lpthread $LIBS"
4224 cat >conftest.$ac_ext <<_ACEOF
4227 cat confdefs.h >>conftest.$ac_ext
4228 cat >>conftest.$ac_ext <<_ACEOF
4229 /* end confdefs.h. */
4231 /* Override any GCC internal prototype to avoid an error.
4232 Use char because int might match the return type of a GCC
4233 builtin and then its argument prototype would still apply. */
4237 char pthread_create ();
4241 return pthread_create ();
4246 rm -f conftest.$ac_objext conftest$ac_exeext
4247 if { (ac_try="$ac_link"
4249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4250 *) ac_try_echo=$ac_try;;
4252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4253 (eval "$ac_link") 2>conftest.er1
4255 grep -v '^ *+' conftest.er1 >conftest.err
4257 cat conftest.err >&5
4258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4259 (exit $ac_status); } && {
4260 test -z "$ac_c_werror_flag" ||
4261 test ! -s conftest.err
4262 } && test -s conftest$ac_exeext &&
4263 $as_test_x conftest$ac_exeext; then
4264 ac_cv_lib_pthread_pthread_create=yes
4266 echo "$as_me: failed program was:" >&5
4267 sed 's/^/| /' conftest.$ac_ext >&5
4269 ac_cv_lib_pthread_pthread_create=no
4272 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4273 conftest$ac_exeext conftest.$ac_ext
4274 LIBS=$ac_check_lib_save_LIBS
4276 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
4277 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; }
4278 if test $ac_cv_lib_pthread_pthread_create = yes; then
4279 cat >>confdefs.h <<_ACEOF
4280 #define HAVE_LIBPTHREAD 1
4283 LIBS="-lpthread $LIBS"
4286 { { echo "$as_me:$LINENO: error: RtAudio requires the pthread library!" >&5
4287 echo "$as_me: error: RtAudio requires the pthread library!" >&2;}
4288 { (exit 1); exit 1; }; }
4295 # Check whether --with-jack was given.
4296 if test "${with_jack+set}" = set; then
4298 api="$api -D__UNIX_JACK__"
4299 { echo "$as_me:$LINENO: result: using JACK" >&5
4300 echo "${ECHO_T}using JACK" >&6; }
4302 { echo "$as_me:$LINENO: checking for jack_client_open in -ljack" >&5
4303 echo $ECHO_N "checking for jack_client_open in -ljack... $ECHO_C" >&6; }
4304 if test "${ac_cv_lib_jack_jack_client_open+set}" = set; then
4305 echo $ECHO_N "(cached) $ECHO_C" >&6
4307 ac_check_lib_save_LIBS=$LIBS
4309 cat >conftest.$ac_ext <<_ACEOF
4312 cat confdefs.h >>conftest.$ac_ext
4313 cat >>conftest.$ac_ext <<_ACEOF
4314 /* end confdefs.h. */
4316 /* Override any GCC internal prototype to avoid an error.
4317 Use char because int might match the return type of a GCC
4318 builtin and then its argument prototype would still apply. */
4322 char jack_client_open ();
4326 return jack_client_open ();
4331 rm -f conftest.$ac_objext conftest$ac_exeext
4332 if { (ac_try="$ac_link"
4334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4335 *) ac_try_echo=$ac_try;;
4337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4338 (eval "$ac_link") 2>conftest.er1
4340 grep -v '^ *+' conftest.er1 >conftest.err
4342 cat conftest.err >&5
4343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4344 (exit $ac_status); } && {
4345 test -z "$ac_c_werror_flag" ||
4346 test ! -s conftest.err
4347 } && test -s conftest$ac_exeext &&
4348 $as_test_x conftest$ac_exeext; then
4349 ac_cv_lib_jack_jack_client_open=yes
4351 echo "$as_me: failed program was:" >&5
4352 sed 's/^/| /' conftest.$ac_ext >&5
4354 ac_cv_lib_jack_jack_client_open=no
4357 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4358 conftest$ac_exeext conftest.$ac_ext
4359 LIBS=$ac_check_lib_save_LIBS
4361 { echo "$as_me:$LINENO: result: $ac_cv_lib_jack_jack_client_open" >&5
4362 echo "${ECHO_T}$ac_cv_lib_jack_jack_client_open" >&6; }
4363 if test $ac_cv_lib_jack_jack_client_open = yes; then
4364 cat >>confdefs.h <<_ACEOF
4365 #define HAVE_LIBJACK 1
4371 { { echo "$as_me:$LINENO: error: JACK support requires the jack library!" >&5
4372 echo "$as_me: error: JACK support requires the jack library!" >&2;}
4373 { (exit 1); exit 1; }; }
4377 { echo "$as_me:$LINENO: checking for snd_pcm_open in -lasound" >&5
4378 echo $ECHO_N "checking for snd_pcm_open in -lasound... $ECHO_C" >&6; }
4379 if test "${ac_cv_lib_asound_snd_pcm_open+set}" = set; then
4380 echo $ECHO_N "(cached) $ECHO_C" >&6
4382 ac_check_lib_save_LIBS=$LIBS
4383 LIBS="-lasound $LIBS"
4384 cat >conftest.$ac_ext <<_ACEOF
4387 cat confdefs.h >>conftest.$ac_ext
4388 cat >>conftest.$ac_ext <<_ACEOF
4389 /* end confdefs.h. */
4391 /* Override any GCC internal prototype to avoid an error.
4392 Use char because int might match the return type of a GCC
4393 builtin and then its argument prototype would still apply. */
4397 char snd_pcm_open ();
4401 return snd_pcm_open ();
4406 rm -f conftest.$ac_objext conftest$ac_exeext
4407 if { (ac_try="$ac_link"
4409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4410 *) ac_try_echo=$ac_try;;
4412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4413 (eval "$ac_link") 2>conftest.er1
4415 grep -v '^ *+' conftest.er1 >conftest.err
4417 cat conftest.err >&5
4418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4419 (exit $ac_status); } && {
4420 test -z "$ac_c_werror_flag" ||
4421 test ! -s conftest.err
4422 } && test -s conftest$ac_exeext &&
4423 $as_test_x conftest$ac_exeext; then
4424 ac_cv_lib_asound_snd_pcm_open=yes
4426 echo "$as_me: failed program was:" >&5
4427 sed 's/^/| /' conftest.$ac_ext >&5
4429 ac_cv_lib_asound_snd_pcm_open=no
4432 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4433 conftest$ac_exeext conftest.$ac_ext
4434 LIBS=$ac_check_lib_save_LIBS
4436 { echo "$as_me:$LINENO: result: $ac_cv_lib_asound_snd_pcm_open" >&5
4437 echo "${ECHO_T}$ac_cv_lib_asound_snd_pcm_open" >&6; }
4438 if test $ac_cv_lib_asound_snd_pcm_open = yes; then
4439 cat >>confdefs.h <<_ACEOF
4440 #define HAVE_LIBASOUND 1
4443 LIBS="-lasound $LIBS"
4446 { { echo "$as_me:$LINENO: error: Jack support also requires the asound library!" >&5
4447 echo "$as_me: error: Jack support also requires the asound library!" >&2;}
4448 { (exit 1); exit 1; }; }
4454 # Look for ALSA flag
4456 # Check whether --with-alsa was given.
4457 if test "${with_alsa+set}" = set; then
4459 api="$api -D__LINUX_ALSA__"
4460 { echo "$as_me:$LINENO: result: using ALSA" >&5
4461 echo "${ECHO_T}using ALSA" >&6; }
4463 { echo "$as_me:$LINENO: checking for snd_pcm_open in -lasound" >&5
4464 echo $ECHO_N "checking for snd_pcm_open in -lasound... $ECHO_C" >&6; }
4465 if test "${ac_cv_lib_asound_snd_pcm_open+set}" = set; then
4466 echo $ECHO_N "(cached) $ECHO_C" >&6
4468 ac_check_lib_save_LIBS=$LIBS
4469 LIBS="-lasound $LIBS"
4470 cat >conftest.$ac_ext <<_ACEOF
4473 cat confdefs.h >>conftest.$ac_ext
4474 cat >>conftest.$ac_ext <<_ACEOF
4475 /* end confdefs.h. */
4477 /* Override any GCC internal prototype to avoid an error.
4478 Use char because int might match the return type of a GCC
4479 builtin and then its argument prototype would still apply. */
4483 char snd_pcm_open ();
4487 return snd_pcm_open ();
4492 rm -f conftest.$ac_objext conftest$ac_exeext
4493 if { (ac_try="$ac_link"
4495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4496 *) ac_try_echo=$ac_try;;
4498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4499 (eval "$ac_link") 2>conftest.er1
4501 grep -v '^ *+' conftest.er1 >conftest.err
4503 cat conftest.err >&5
4504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4505 (exit $ac_status); } && {
4506 test -z "$ac_c_werror_flag" ||
4507 test ! -s conftest.err
4508 } && test -s conftest$ac_exeext &&
4509 $as_test_x conftest$ac_exeext; then
4510 ac_cv_lib_asound_snd_pcm_open=yes
4512 echo "$as_me: failed program was:" >&5
4513 sed 's/^/| /' conftest.$ac_ext >&5
4515 ac_cv_lib_asound_snd_pcm_open=no
4518 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4519 conftest$ac_exeext conftest.$ac_ext
4520 LIBS=$ac_check_lib_save_LIBS
4522 { echo "$as_me:$LINENO: result: $ac_cv_lib_asound_snd_pcm_open" >&5
4523 echo "${ECHO_T}$ac_cv_lib_asound_snd_pcm_open" >&6; }
4524 if test $ac_cv_lib_asound_snd_pcm_open = yes; then
4525 cat >>confdefs.h <<_ACEOF
4526 #define HAVE_LIBASOUND 1
4529 LIBS="-lasound $LIBS"
4532 { { echo "$as_me:$LINENO: error: ALSA support requires the asound library!" >&5
4533 echo "$as_me: error: ALSA support requires the asound library!" >&2;}
4534 { (exit 1); exit 1; }; }
4542 # Check whether --with-oss was given.
4543 if test "${with_oss+set}" = set; then
4545 api="$api -D__LINUX_OSS__"
4546 { echo "$as_me:$LINENO: result: using OSS" >&5
4547 echo "${ECHO_T}using OSS" >&6; }
4551 # If no audio api flags specified, use ALSA
4552 if test "$api" == ""; then
4553 { echo "$as_me:$LINENO: result: using ALSA" >&5
4554 echo "${ECHO_T}using ALSA" >&6; }
4555 api=-D__LINUX_ALSA__
4558 { echo "$as_me:$LINENO: checking for snd_pcm_open in -lasound" >&5
4559 echo $ECHO_N "checking for snd_pcm_open in -lasound... $ECHO_C" >&6; }
4560 if test "${ac_cv_lib_asound_snd_pcm_open+set}" = set; then
4561 echo $ECHO_N "(cached) $ECHO_C" >&6
4563 ac_check_lib_save_LIBS=$LIBS
4564 LIBS="-lasound $LIBS"
4565 cat >conftest.$ac_ext <<_ACEOF
4568 cat confdefs.h >>conftest.$ac_ext
4569 cat >>conftest.$ac_ext <<_ACEOF
4570 /* end confdefs.h. */
4572 /* Override any GCC internal prototype to avoid an error.
4573 Use char because int might match the return type of a GCC
4574 builtin and then its argument prototype would still apply. */
4578 char snd_pcm_open ();
4582 return snd_pcm_open ();
4587 rm -f conftest.$ac_objext conftest$ac_exeext
4588 if { (ac_try="$ac_link"
4590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4591 *) ac_try_echo=$ac_try;;
4593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4594 (eval "$ac_link") 2>conftest.er1
4596 grep -v '^ *+' conftest.er1 >conftest.err
4598 cat conftest.err >&5
4599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4600 (exit $ac_status); } && {
4601 test -z "$ac_c_werror_flag" ||
4602 test ! -s conftest.err
4603 } && test -s conftest$ac_exeext &&
4604 $as_test_x conftest$ac_exeext; then
4605 ac_cv_lib_asound_snd_pcm_open=yes
4607 echo "$as_me: failed program was:" >&5
4608 sed 's/^/| /' conftest.$ac_ext >&5
4610 ac_cv_lib_asound_snd_pcm_open=no
4613 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4614 conftest$ac_exeext conftest.$ac_ext
4615 LIBS=$ac_check_lib_save_LIBS
4617 { echo "$as_me:$LINENO: result: $ac_cv_lib_asound_snd_pcm_open" >&5
4618 echo "${ECHO_T}$ac_cv_lib_asound_snd_pcm_open" >&6; }
4619 if test $ac_cv_lib_asound_snd_pcm_open = yes; then
4620 cat >>confdefs.h <<_ACEOF
4621 #define HAVE_LIBASOUND 1
4624 LIBS="-lasound $LIBS"
4627 { { echo "$as_me:$LINENO: error: ALSA support requires the asound library!" >&5
4628 echo "$as_me: error: ALSA support requires the asound library!" >&2;}
4629 { (exit 1); exit 1; }; }
4635 { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
4636 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
4637 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
4638 echo $ECHO_N "(cached) $ECHO_C" >&6
4640 ac_check_lib_save_LIBS=$LIBS
4641 LIBS="-lpthread $LIBS"
4642 cat >conftest.$ac_ext <<_ACEOF
4645 cat confdefs.h >>conftest.$ac_ext
4646 cat >>conftest.$ac_ext <<_ACEOF
4647 /* end confdefs.h. */
4649 /* Override any GCC internal prototype to avoid an error.
4650 Use char because int might match the return type of a GCC
4651 builtin and then its argument prototype would still apply. */
4655 char pthread_create ();
4659 return pthread_create ();
4664 rm -f conftest.$ac_objext conftest$ac_exeext
4665 if { (ac_try="$ac_link"
4667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4668 *) ac_try_echo=$ac_try;;
4670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4671 (eval "$ac_link") 2>conftest.er1
4673 grep -v '^ *+' conftest.er1 >conftest.err
4675 cat conftest.err >&5
4676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4677 (exit $ac_status); } && {
4678 test -z "$ac_c_werror_flag" ||
4679 test ! -s conftest.err
4680 } && test -s conftest$ac_exeext &&
4681 $as_test_x conftest$ac_exeext; then
4682 ac_cv_lib_pthread_pthread_create=yes
4684 echo "$as_me: failed program was:" >&5
4685 sed 's/^/| /' conftest.$ac_ext >&5
4687 ac_cv_lib_pthread_pthread_create=no
4690 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4691 conftest$ac_exeext conftest.$ac_ext
4692 LIBS=$ac_check_lib_save_LIBS
4694 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
4695 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; }
4696 if test $ac_cv_lib_pthread_pthread_create = yes; then
4697 cat >>confdefs.h <<_ACEOF
4698 #define HAVE_LIBPTHREAD 1
4701 LIBS="-lpthread $LIBS"
4704 { { echo "$as_me:$LINENO: error: RtAudio requires the pthread library!" >&5
4705 echo "$as_me: error: RtAudio requires the pthread library!" >&2;}
4706 { (exit 1); exit 1; }; }
4713 # Check whether --with-jack was given.
4714 if test "${with_jack+set}" = set; then
4716 api="$api -D__UNIX_JACK__"
4717 { echo "$as_me:$LINENO: result: using JACK" >&5
4718 echo "${ECHO_T}using JACK" >&6; }
4720 { echo "$as_me:$LINENO: checking for jack_client_open in -ljack" >&5
4721 echo $ECHO_N "checking for jack_client_open in -ljack... $ECHO_C" >&6; }
4722 if test "${ac_cv_lib_jack_jack_client_open+set}" = set; then
4723 echo $ECHO_N "(cached) $ECHO_C" >&6
4725 ac_check_lib_save_LIBS=$LIBS
4727 cat >conftest.$ac_ext <<_ACEOF
4730 cat confdefs.h >>conftest.$ac_ext
4731 cat >>conftest.$ac_ext <<_ACEOF
4732 /* end confdefs.h. */
4734 /* Override any GCC internal prototype to avoid an error.
4735 Use char because int might match the return type of a GCC
4736 builtin and then its argument prototype would still apply. */
4740 char jack_client_open ();
4744 return jack_client_open ();
4749 rm -f conftest.$ac_objext conftest$ac_exeext
4750 if { (ac_try="$ac_link"
4752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4753 *) ac_try_echo=$ac_try;;
4755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4756 (eval "$ac_link") 2>conftest.er1
4758 grep -v '^ *+' conftest.er1 >conftest.err
4760 cat conftest.err >&5
4761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4762 (exit $ac_status); } && {
4763 test -z "$ac_c_werror_flag" ||
4764 test ! -s conftest.err
4765 } && test -s conftest$ac_exeext &&
4766 $as_test_x conftest$ac_exeext; then
4767 ac_cv_lib_jack_jack_client_open=yes
4769 echo "$as_me: failed program was:" >&5
4770 sed 's/^/| /' conftest.$ac_ext >&5
4772 ac_cv_lib_jack_jack_client_open=no
4775 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4776 conftest$ac_exeext conftest.$ac_ext
4777 LIBS=$ac_check_lib_save_LIBS
4779 { echo "$as_me:$LINENO: result: $ac_cv_lib_jack_jack_client_open" >&5
4780 echo "${ECHO_T}$ac_cv_lib_jack_jack_client_open" >&6; }
4781 if test $ac_cv_lib_jack_jack_client_open = yes; then
4782 cat >>confdefs.h <<_ACEOF
4783 #define HAVE_LIBJACK 1
4789 { { echo "$as_me:$LINENO: error: JACK support requires the jack library!" >&5
4790 echo "$as_me: error: JACK support requires the jack library!" >&2;}
4791 { (exit 1); exit 1; }; }
4797 # AC_CHECK_HEADER(jack/jack.h, [], [AC_MSG_ERROR(Jack header file not found!)] )
4798 # LIBS="$LIBS -framework jackmp" ], )
4801 # Look for Core flag
4803 # Check whether --with-core was given.
4804 if test "${with_core+set}" = set; then
4806 api="$api -D__MACOSX_CORE__"
4807 { echo "$as_me:$LINENO: result: using CoreAudio" >&5
4808 echo "${ECHO_T}using CoreAudio" >&6; }
4809 if test "${ac_cv_header_CoreAudio_CoreAudio_h+set}" = set; then
4810 { echo "$as_me:$LINENO: checking for CoreAudio/CoreAudio.h" >&5
4811 echo $ECHO_N "checking for CoreAudio/CoreAudio.h... $ECHO_C" >&6; }
4812 if test "${ac_cv_header_CoreAudio_CoreAudio_h+set}" = set; then
4813 echo $ECHO_N "(cached) $ECHO_C" >&6
4815 { echo "$as_me:$LINENO: result: $ac_cv_header_CoreAudio_CoreAudio_h" >&5
4816 echo "${ECHO_T}$ac_cv_header_CoreAudio_CoreAudio_h" >&6; }
4818 # Is the header compilable?
4819 { echo "$as_me:$LINENO: checking CoreAudio/CoreAudio.h usability" >&5
4820 echo $ECHO_N "checking CoreAudio/CoreAudio.h usability... $ECHO_C" >&6; }
4821 cat >conftest.$ac_ext <<_ACEOF
4824 cat confdefs.h >>conftest.$ac_ext
4825 cat >>conftest.$ac_ext <<_ACEOF
4826 /* end confdefs.h. */
4827 $ac_includes_default
4828 #include <CoreAudio/CoreAudio.h>
4830 rm -f conftest.$ac_objext
4831 if { (ac_try="$ac_compile"
4833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4834 *) ac_try_echo=$ac_try;;
4836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4837 (eval "$ac_compile") 2>conftest.er1
4839 grep -v '^ *+' conftest.er1 >conftest.err
4841 cat conftest.err >&5
4842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4843 (exit $ac_status); } && {
4844 test -z "$ac_c_werror_flag" ||
4845 test ! -s conftest.err
4846 } && test -s conftest.$ac_objext; then
4847 ac_header_compiler=yes
4849 echo "$as_me: failed program was:" >&5
4850 sed 's/^/| /' conftest.$ac_ext >&5
4852 ac_header_compiler=no
4855 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4856 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4857 echo "${ECHO_T}$ac_header_compiler" >&6; }
4859 # Is the header present?
4860 { echo "$as_me:$LINENO: checking CoreAudio/CoreAudio.h presence" >&5
4861 echo $ECHO_N "checking CoreAudio/CoreAudio.h presence... $ECHO_C" >&6; }
4862 cat >conftest.$ac_ext <<_ACEOF
4865 cat confdefs.h >>conftest.$ac_ext
4866 cat >>conftest.$ac_ext <<_ACEOF
4867 /* end confdefs.h. */
4868 #include <CoreAudio/CoreAudio.h>
4870 if { (ac_try="$ac_cpp conftest.$ac_ext"
4872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4873 *) ac_try_echo=$ac_try;;
4875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4876 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4878 grep -v '^ *+' conftest.er1 >conftest.err
4880 cat conftest.err >&5
4881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4882 (exit $ac_status); } >/dev/null && {
4883 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4884 test ! -s conftest.err
4886 ac_header_preproc=yes
4888 echo "$as_me: failed program was:" >&5
4889 sed 's/^/| /' conftest.$ac_ext >&5
4891 ac_header_preproc=no
4894 rm -f conftest.err conftest.$ac_ext
4895 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4896 echo "${ECHO_T}$ac_header_preproc" >&6; }
4898 # So? What about this header?
4899 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4901 { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: accepted by the compiler, rejected by the preprocessor!" >&5
4902 echo "$as_me: WARNING: CoreAudio/CoreAudio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4903 { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: proceeding with the compiler's result" >&5
4904 echo "$as_me: WARNING: CoreAudio/CoreAudio.h: proceeding with the compiler's result" >&2;}
4905 ac_header_preproc=yes
4908 { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: present but cannot be compiled" >&5
4909 echo "$as_me: WARNING: CoreAudio/CoreAudio.h: present but cannot be compiled" >&2;}
4910 { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: check for missing prerequisite headers?" >&5
4911 echo "$as_me: WARNING: CoreAudio/CoreAudio.h: check for missing prerequisite headers?" >&2;}
4912 { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: see the Autoconf documentation" >&5
4913 echo "$as_me: WARNING: CoreAudio/CoreAudio.h: see the Autoconf documentation" >&2;}
4914 { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: section \"Present But Cannot Be Compiled\"" >&5
4915 echo "$as_me: WARNING: CoreAudio/CoreAudio.h: section \"Present But Cannot Be Compiled\"" >&2;}
4916 { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: proceeding with the preprocessor's result" >&5
4917 echo "$as_me: WARNING: CoreAudio/CoreAudio.h: proceeding with the preprocessor's result" >&2;}
4918 { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: in the future, the compiler will take precedence" >&5
4919 echo "$as_me: WARNING: CoreAudio/CoreAudio.h: in the future, the compiler will take precedence" >&2;}
4921 ## ----------------------------------- ##
4922 ## Report this to gary@music.mcgill.ca ##
4923 ## ----------------------------------- ##
4925 ) | sed "s/^/$as_me: WARNING: /" >&2
4928 { echo "$as_me:$LINENO: checking for CoreAudio/CoreAudio.h" >&5
4929 echo $ECHO_N "checking for CoreAudio/CoreAudio.h... $ECHO_C" >&6; }
4930 if test "${ac_cv_header_CoreAudio_CoreAudio_h+set}" = set; then
4931 echo $ECHO_N "(cached) $ECHO_C" >&6
4933 ac_cv_header_CoreAudio_CoreAudio_h=$ac_header_preproc
4935 { echo "$as_me:$LINENO: result: $ac_cv_header_CoreAudio_CoreAudio_h" >&5
4936 echo "${ECHO_T}$ac_cv_header_CoreAudio_CoreAudio_h" >&6; }
4939 if test $ac_cv_header_CoreAudio_CoreAudio_h = yes; then
4942 { { echo "$as_me:$LINENO: error: CoreAudio header files not found!" >&5
4943 echo "$as_me: error: CoreAudio header files not found!" >&2;}
4944 { (exit 1); exit 1; }; }
4948 LIBS="$LIBS -framework CoreAudio -framework CoreFoundation"
4952 # If no audio api flags specified, use CoreAudio
4953 if test "$api" == ""; then
4954 api=-D__MACOSX_CORE__
4956 { echo "$as_me:$LINENO: result: using CoreAudio" >&5
4957 echo "${ECHO_T}using CoreAudio" >&6; }
4958 if test "${ac_cv_header_CoreAudio_CoreAudio_h+set}" = set; then
4959 { echo "$as_me:$LINENO: checking for CoreAudio/CoreAudio.h" >&5
4960 echo $ECHO_N "checking for CoreAudio/CoreAudio.h... $ECHO_C" >&6; }
4961 if test "${ac_cv_header_CoreAudio_CoreAudio_h+set}" = set; then
4962 echo $ECHO_N "(cached) $ECHO_C" >&6
4964 { echo "$as_me:$LINENO: result: $ac_cv_header_CoreAudio_CoreAudio_h" >&5
4965 echo "${ECHO_T}$ac_cv_header_CoreAudio_CoreAudio_h" >&6; }
4967 # Is the header compilable?
4968 { echo "$as_me:$LINENO: checking CoreAudio/CoreAudio.h usability" >&5
4969 echo $ECHO_N "checking CoreAudio/CoreAudio.h usability... $ECHO_C" >&6; }
4970 cat >conftest.$ac_ext <<_ACEOF
4973 cat confdefs.h >>conftest.$ac_ext
4974 cat >>conftest.$ac_ext <<_ACEOF
4975 /* end confdefs.h. */
4976 $ac_includes_default
4977 #include <CoreAudio/CoreAudio.h>
4979 rm -f conftest.$ac_objext
4980 if { (ac_try="$ac_compile"
4982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4983 *) ac_try_echo=$ac_try;;
4985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4986 (eval "$ac_compile") 2>conftest.er1
4988 grep -v '^ *+' conftest.er1 >conftest.err
4990 cat conftest.err >&5
4991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4992 (exit $ac_status); } && {
4993 test -z "$ac_c_werror_flag" ||
4994 test ! -s conftest.err
4995 } && test -s conftest.$ac_objext; then
4996 ac_header_compiler=yes
4998 echo "$as_me: failed program was:" >&5
4999 sed 's/^/| /' conftest.$ac_ext >&5
5001 ac_header_compiler=no
5004 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5005 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5006 echo "${ECHO_T}$ac_header_compiler" >&6; }
5008 # Is the header present?
5009 { echo "$as_me:$LINENO: checking CoreAudio/CoreAudio.h presence" >&5
5010 echo $ECHO_N "checking CoreAudio/CoreAudio.h presence... $ECHO_C" >&6; }
5011 cat >conftest.$ac_ext <<_ACEOF
5014 cat confdefs.h >>conftest.$ac_ext
5015 cat >>conftest.$ac_ext <<_ACEOF
5016 /* end confdefs.h. */
5017 #include <CoreAudio/CoreAudio.h>
5019 if { (ac_try="$ac_cpp conftest.$ac_ext"
5021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5022 *) ac_try_echo=$ac_try;;
5024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5025 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5027 grep -v '^ *+' conftest.er1 >conftest.err
5029 cat conftest.err >&5
5030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5031 (exit $ac_status); } >/dev/null && {
5032 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5033 test ! -s conftest.err
5035 ac_header_preproc=yes
5037 echo "$as_me: failed program was:" >&5
5038 sed 's/^/| /' conftest.$ac_ext >&5
5040 ac_header_preproc=no
5043 rm -f conftest.err conftest.$ac_ext
5044 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5045 echo "${ECHO_T}$ac_header_preproc" >&6; }
5047 # So? What about this header?
5048 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5050 { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: accepted by the compiler, rejected by the preprocessor!" >&5
5051 echo "$as_me: WARNING: CoreAudio/CoreAudio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5052 { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: proceeding with the compiler's result" >&5
5053 echo "$as_me: WARNING: CoreAudio/CoreAudio.h: proceeding with the compiler's result" >&2;}
5054 ac_header_preproc=yes
5057 { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: present but cannot be compiled" >&5
5058 echo "$as_me: WARNING: CoreAudio/CoreAudio.h: present but cannot be compiled" >&2;}
5059 { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: check for missing prerequisite headers?" >&5
5060 echo "$as_me: WARNING: CoreAudio/CoreAudio.h: check for missing prerequisite headers?" >&2;}
5061 { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: see the Autoconf documentation" >&5
5062 echo "$as_me: WARNING: CoreAudio/CoreAudio.h: see the Autoconf documentation" >&2;}
5063 { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: section \"Present But Cannot Be Compiled\"" >&5
5064 echo "$as_me: WARNING: CoreAudio/CoreAudio.h: section \"Present But Cannot Be Compiled\"" >&2;}
5065 { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: proceeding with the preprocessor's result" >&5
5066 echo "$as_me: WARNING: CoreAudio/CoreAudio.h: proceeding with the preprocessor's result" >&2;}
5067 { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: in the future, the compiler will take precedence" >&5
5068 echo "$as_me: WARNING: CoreAudio/CoreAudio.h: in the future, the compiler will take precedence" >&2;}
5070 ## ----------------------------------- ##
5071 ## Report this to gary@music.mcgill.ca ##
5072 ## ----------------------------------- ##
5074 ) | sed "s/^/$as_me: WARNING: /" >&2
5077 { echo "$as_me:$LINENO: checking for CoreAudio/CoreAudio.h" >&5
5078 echo $ECHO_N "checking for CoreAudio/CoreAudio.h... $ECHO_C" >&6; }
5079 if test "${ac_cv_header_CoreAudio_CoreAudio_h+set}" = set; then
5080 echo $ECHO_N "(cached) $ECHO_C" >&6
5082 ac_cv_header_CoreAudio_CoreAudio_h=$ac_header_preproc
5084 { echo "$as_me:$LINENO: result: $ac_cv_header_CoreAudio_CoreAudio_h" >&5
5085 echo "${ECHO_T}$ac_cv_header_CoreAudio_CoreAudio_h" >&6; }
5088 if test $ac_cv_header_CoreAudio_CoreAudio_h = yes; then
5091 { { echo "$as_me:$LINENO: error: CoreAudio header files not found!" >&5
5092 echo "$as_me: error: CoreAudio header files not found!" >&2;}
5093 { (exit 1); exit 1; }; }
5097 LIBS="-framework CoreAudio -framework CoreFoundation"
5102 { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
5103 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
5104 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
5105 echo $ECHO_N "(cached) $ECHO_C" >&6
5107 ac_check_lib_save_LIBS=$LIBS
5108 LIBS="-lpthread $LIBS"
5109 cat >conftest.$ac_ext <<_ACEOF
5112 cat confdefs.h >>conftest.$ac_ext
5113 cat >>conftest.$ac_ext <<_ACEOF
5114 /* end confdefs.h. */
5116 /* Override any GCC internal prototype to avoid an error.
5117 Use char because int might match the return type of a GCC
5118 builtin and then its argument prototype would still apply. */
5122 char pthread_create ();
5126 return pthread_create ();
5131 rm -f conftest.$ac_objext conftest$ac_exeext
5132 if { (ac_try="$ac_link"
5134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5135 *) ac_try_echo=$ac_try;;
5137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5138 (eval "$ac_link") 2>conftest.er1
5140 grep -v '^ *+' conftest.er1 >conftest.err
5142 cat conftest.err >&5
5143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5144 (exit $ac_status); } && {
5145 test -z "$ac_c_werror_flag" ||
5146 test ! -s conftest.err
5147 } && test -s conftest$ac_exeext &&
5148 $as_test_x conftest$ac_exeext; then
5149 ac_cv_lib_pthread_pthread_create=yes
5151 echo "$as_me: failed program was:" >&5
5152 sed 's/^/| /' conftest.$ac_ext >&5
5154 ac_cv_lib_pthread_pthread_create=no
5157 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5158 conftest$ac_exeext conftest.$ac_ext
5159 LIBS=$ac_check_lib_save_LIBS
5161 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
5162 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; }
5163 if test $ac_cv_lib_pthread_pthread_create = yes; then
5164 cat >>confdefs.h <<_ACEOF
5165 #define HAVE_LIBPTHREAD 1
5168 LIBS="-lpthread $LIBS"
5171 { { echo "$as_me:$LINENO: error: RtAudio requires the pthread library!" >&5
5172 echo "$as_me: error: RtAudio requires the pthread library!" >&2;}
5173 { (exit 1); exit 1; }; }
5180 # Check whether --with-asio was given.
5181 if test "${with_asio+set}" = set; then
5183 api="$api -D__WINDOWS_ASIO__"
5184 { echo "$as_me:$LINENO: result: using ASIO" >&5
5185 echo "${ECHO_T}using ASIO" >&6; }
5186 objects="asio.o asiodrivers.o asiolist.o iasiothiscallresolver.o"
5191 # Look for DirectSound flag
5193 # Check whether --with-ds was given.
5194 if test "${with_ds+set}" = set; then
5196 api="$api -D__WINDOWS_DS__"
5197 { echo "$as_me:$LINENO: result: using DirectSound" >&5
5198 echo "${ECHO_T}using DirectSound" >&6; }
5199 LIBS="-ldsound -lwinmm $LIBS"
5203 # If no audio api flags specified, use DirectSound
5204 if test "$api" == ""; then
5205 api=-D__WINDOWS_DS__
5207 { echo "$as_me:$LINENO: result: using DirectSound" >&5
5208 echo "${ECHO_T}using DirectSound" >&6; }
5209 LIBS="-ldsound -lwinmm $LIBS"
5212 LIBS="-lole32 $LIBS"
5216 # Default case for unknown realtime systems.
5217 { { echo "$as_me:$LINENO: error: Unknown system type for realtime support!" >&5
5218 echo "$as_me: error: Unknown system type for realtime support!" >&2;}
5219 { (exit 1); exit 1; }; }
5223 CPPFLAGS="$CPPFLAGS $api"
5225 cat >confcache <<\_ACEOF
5226 # This file is a shell script that caches the results of configure
5227 # tests run on this system so they can be shared between configure
5228 # scripts and configure runs, see configure's option --config-cache.
5229 # It is not useful on other systems. If it contains results you don't
5230 # want to keep, you may remove or edit it.
5232 # config.status only pays attention to the cache file if you give it
5233 # the --recheck option to rerun configure.
5235 # `ac_cv_env_foo' variables (set or unset) will be overridden when
5236 # loading this file, other *unset* `ac_cv_foo' will be assigned the
5241 # The following way of writing the cache mishandles newlines in values,
5242 # but we know of no workaround that is simple, portable, and efficient.
5243 # So, we kill variables containing newlines.
5244 # Ultrix sh set writes to stderr and can't be redirected directly,
5245 # and sets the high bit in the cache file unless we assign to the vars.
5247 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
5248 eval ac_val=\$$ac_var
5252 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
5253 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
5256 _ | IFS | as_nl) ;; #(
5257 *) $as_unset $ac_var ;;
5263 case $as_nl`(ac_space=' '; set) 2>&1` in #(
5264 *${as_nl}ac_space=\ *)
5265 # `set' does not quote correctly, so add quotes (double-quote
5266 # substitution turns \\\\ into \\, and sed turns \\ into \).
5269 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5272 # `set' quotes correctly as required by POSIX, so do not add quotes.
5273 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
5282 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5284 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5286 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
5287 if test -w "$cache_file"; then
5288 test "x$cache_file" != "x/dev/null" &&
5289 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
5290 echo "$as_me: updating cache $cache_file" >&6;}
5291 cat confcache >$cache_file
5293 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
5294 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
5299 test "x$prefix" = xNONE && prefix=$ac_default_prefix
5300 # Let make expand exec_prefix.
5301 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5303 # Transform confdefs.h into DEFS.
5304 # Protect against shell expansion while executing Makefile rules.
5305 # Protect against Makefile macro expansion.
5307 # If the first sed substitution is executed (which looks for macros that
5308 # take arguments), then branch to the quote section. Otherwise,
5309 # look for a macro that doesn't take arguments.
5313 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
5315 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
5319 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
5332 DEFS=`sed -n "$ac_script" confdefs.h`
5337 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
5338 # 1. Remove the extension, and $U if already installed.
5339 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
5340 ac_i=`echo "$ac_i" | sed "$ac_script"`
5341 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
5342 # will be set to the directory where LIBOBJS objects are built.
5343 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
5344 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
5348 LTLIBOBJS=$ac_ltlibobjs
5352 : ${CONFIG_STATUS=./config.status}
5353 ac_clean_files_save=$ac_clean_files
5354 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5355 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
5356 echo "$as_me: creating $CONFIG_STATUS" >&6;}
5357 cat >$CONFIG_STATUS <<_ACEOF
5359 # Generated by $as_me.
5360 # Run this file to recreate the current configuration.
5361 # Compiler output produced by configure, useful for debugging
5362 # configure, is in config.log if it exists.
5367 SHELL=\${CONFIG_SHELL-$SHELL}
5370 cat >>$CONFIG_STATUS <<\_ACEOF
5371 ## --------------------- ##
5372 ## M4sh Initialization. ##
5373 ## --------------------- ##
5375 # Be more Bourne compatible
5376 DUALCASE=1; export DUALCASE # for MKS sh
5377 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
5380 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
5381 # is contrary to our usage. Disable this feature.
5382 alias -g '${1+"$@"}'='"$@"'
5383 setopt NO_GLOB_SUBST
5385 case `(set -o) 2>/dev/null` in
5386 *posix*) set -o posix ;;
5395 # Avoid depending upon Character Ranges.
5396 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
5397 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
5398 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
5399 as_cr_digits='0123456789'
5400 as_cr_alnum=$as_cr_Letters$as_cr_digits
5402 # The user is always right.
5403 if test "${PATH_SEPARATOR+set}" != set; then
5404 echo "#! /bin/sh" >conf$$.sh
5405 echo "exit 0" >>conf$$.sh
5407 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5415 # Support unset when possible.
5416 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5424 # We need space, tab and new line, in precisely that order. Quoting is
5425 # there to prevent editors from complaining about space-tab.
5426 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
5427 # splitting by setting IFS to empty value.)
5432 # Find who we are. Look in the path if we contain no directory separator.
5434 *[\\/]* ) as_myself=$0 ;;
5435 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5439 test -z "$as_dir" && as_dir=.
5440 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
5446 # We did not find ourselves, most probably we were run as `sh COMMAND'
5447 # in which case we are not to be found in the path.
5448 if test "x$as_myself" = x; then
5451 if test ! -f "$as_myself"; then
5452 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
5453 { (exit 1); exit 1; }
5456 # Work around bugs in pre-3.0 UWIN ksh.
5457 for as_var in ENV MAIL MAILPATH
5458 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
5466 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
5467 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
5468 LC_TELEPHONE LC_TIME
5470 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
5471 eval $as_var=C; export $as_var
5473 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
5477 # Required to use basename.
5478 if expr a : '\(a\)' >/dev/null 2>&1 &&
5479 test "X`expr 00001 : '.*\(...\)'`" = X001; then
5485 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
5486 as_basename=basename
5492 # Name of the executable.
5493 as_me=`$as_basename -- "$0" ||
5494 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
5495 X"$0" : 'X\(//\)$' \| \
5496 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
5498 sed '/^.*\/\([^/][^/]*\)\/*$/{
5519 test "x$as_lineno_1" != "x$as_lineno_2" &&
5520 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
5522 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
5523 # uniformly replaced by the line number. The first 'sed' inserts a
5524 # line-number line after each line using $LINENO; the second 'sed'
5525 # does the real work. The second script uses 'N' to pair each
5526 # line-number line with the line containing $LINENO, and appends
5527 # trailing '-' during substitution so that $LINENO is not a special
5529 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
5530 # scripts with optimization help from Paolo Bonzini. Blame Lee
5531 # E. McMahon (1931-1989) for sed's syntax. :-)
5543 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
5547 chmod +x "$as_me.lineno" ||
5548 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
5549 { (exit 1); exit 1; }; }
5551 # Don't try to exec as it changes $[0], causing all sort of problems
5552 # (the dirname of $[0] is not the place where we might find the
5553 # original and so on. Autoconf is especially sensitive to this).
5555 # Exit status is that of the last command.
5560 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
5566 ECHO_C= ECHO_N= ECHO_T=
5569 case `echo 'x\c'` in
5570 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
5577 if expr a : '\(a\)' >/dev/null 2>&1 &&
5578 test "X`expr 00001 : '.*\(...\)'`" = X001; then
5584 rm -f conf$$ conf$$.exe conf$$.file
5585 if test -d conf$$.dir; then
5586 rm -f conf$$.dir/conf$$.file
5592 if ln -s conf$$.file conf$$ 2>/dev/null; then
5594 # ... but there are two gotchas:
5595 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
5596 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
5597 # In both cases, we have to default to `cp -p'.
5598 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
5600 elif ln conf$$.file conf$$ 2>/dev/null; then
5605 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
5606 rmdir conf$$.dir 2>/dev/null
5608 if mkdir -p . 2>/dev/null; then
5611 test -d ./-p && rmdir ./-p
5615 if test -x / >/dev/null 2>&1; then
5618 if ls -dL / >/dev/null 2>&1; then
5625 if test -d "$1"; then
5631 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
5632 ???[sx]*):;;*)false;;esac;fi
5636 as_executable_p=$as_test_x
5638 # Sed expression to map a string onto a valid CPP name.
5639 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
5641 # Sed expression to map a string onto a valid variable name.
5642 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
5647 # Save the log message, to keep $[0] and so on meaningful, and to
5648 # report actual input values of CONFIG_FILES etc. instead of their
5649 # values after options handling.
5651 This file was extended by RtAudio $as_me 4.0, which was
5652 generated by GNU Autoconf 2.61. Invocation command line was
5654 CONFIG_FILES = $CONFIG_FILES
5655 CONFIG_HEADERS = $CONFIG_HEADERS
5656 CONFIG_LINKS = $CONFIG_LINKS
5657 CONFIG_COMMANDS = $CONFIG_COMMANDS
5660 on `(hostname || uname -n) 2>/dev/null | sed 1q`
5665 cat >>$CONFIG_STATUS <<_ACEOF
5666 # Files that config.status was made for.
5667 config_files="$ac_config_files"
5671 cat >>$CONFIG_STATUS <<\_ACEOF
5673 \`$as_me' instantiates files from templates according to the
5674 current configuration.
5676 Usage: $0 [OPTIONS] [FILE]...
5678 -h, --help print this help, then exit
5679 -V, --version print version number and configuration settings, then exit
5680 -q, --quiet do not print progress messages
5681 -d, --debug don't remove temporary files
5682 --recheck update $as_me by reconfiguring in the same conditions
5683 --file=FILE[:TEMPLATE]
5684 instantiate the configuration file FILE
5686 Configuration files:
5689 Report bugs to <bug-autoconf@gnu.org>."
5692 cat >>$CONFIG_STATUS <<_ACEOF
5694 RtAudio config.status 4.0
5695 configured by $0, generated by GNU Autoconf 2.61,
5696 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
5698 Copyright (C) 2006 Free Software Foundation, Inc.
5699 This config.status script is free software; the Free Software Foundation
5700 gives unlimited permission to copy, distribute and modify it."
5706 cat >>$CONFIG_STATUS <<\_ACEOF
5707 # If no file are specified by the user, then we need to provide default
5708 # value. By we need to know if files were specified by the user.
5714 ac_option=`expr "X$1" : 'X\([^=]*\)='`
5715 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
5726 # Handling of the options.
5727 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5729 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
5730 echo "$ac_cs_version"; exit ;;
5731 --debug | --debu | --deb | --de | --d | -d )
5733 --file | --fil | --fi | --f )
5735 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
5736 ac_need_defaults=false;;
5737 --he | --h | --help | --hel | -h )
5738 echo "$ac_cs_usage"; exit ;;
5739 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
5740 | -silent | --silent | --silen | --sile | --sil | --si | --s)
5744 -*) { echo "$as_me: error: unrecognized option: $1
5745 Try \`$0 --help' for more information." >&2
5746 { (exit 1); exit 1; }; } ;;
5748 *) ac_config_targets="$ac_config_targets $1"
5749 ac_need_defaults=false ;;
5755 ac_configure_extra_args=
5757 if $ac_cs_silent; then
5759 ac_configure_extra_args="$ac_configure_extra_args --silent"
5763 cat >>$CONFIG_STATUS <<_ACEOF
5764 if \$ac_cs_recheck; then
5765 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
5768 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
5772 cat >>$CONFIG_STATUS <<\_ACEOF
5776 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
5777 ## Running $as_me. ##
5783 cat >>$CONFIG_STATUS <<_ACEOF
5786 cat >>$CONFIG_STATUS <<\_ACEOF
5788 # Handling of arguments.
5789 for ac_config_target in $ac_config_targets
5791 case $ac_config_target in
5792 "rtaudio-config") CONFIG_FILES="$CONFIG_FILES rtaudio-config" ;;
5793 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
5794 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
5796 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
5797 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
5798 { (exit 1); exit 1; }; };;
5803 # If the user did not use the arguments to specify the items to instantiate,
5804 # then the envvar interface is used. Set only those that are not.
5805 # We use the long form for the default assignment because of an extremely
5806 # bizarre bug on SunOS 4.1.3.
5807 if $ac_need_defaults; then
5808 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
5811 # Have a temporary directory for convenience. Make it in the build tree
5812 # simply because there is no reason against having it here, and in addition,
5813 # creating and moving files from /tmp can sometimes cause problems.
5814 # Hook for its removal unless debugging.
5815 # Note that there is a small window in which the directory will not be cleaned:
5816 # after its creation but before its name has been assigned to `$tmp'.
5820 trap 'exit_status=$?
5821 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
5823 trap '{ (exit 1); exit 1; }' 1 2 13 15
5825 # Create a (secure) tmp directory for tmp files.
5828 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
5829 test -n "$tmp" && test -d "$tmp"
5832 tmp=./conf$$-$RANDOM
5833 (umask 077 && mkdir "$tmp")
5836 echo "$me: cannot create a temporary directory in ." >&2
5837 { (exit 1); exit 1; }
5841 # Set up the sed scripts for CONFIG_FILES section.
5844 # No need to generate the scripts if there are no CONFIG_FILES.
5845 # This happens for instance when ./config.status config.h
5846 if test -n "$CONFIG_FILES"; then
5853 for ac_last_try in false false false false false :; do
5854 cat >conf$$subs.sed <<_ACEOF
5855 SHELL!$SHELL$ac_delim
5856 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
5857 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
5858 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
5859 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
5860 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
5861 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
5862 exec_prefix!$exec_prefix$ac_delim
5863 prefix!$prefix$ac_delim
5864 program_transform_name!$program_transform_name$ac_delim
5865 bindir!$bindir$ac_delim
5866 sbindir!$sbindir$ac_delim
5867 libexecdir!$libexecdir$ac_delim
5868 datarootdir!$datarootdir$ac_delim
5869 datadir!$datadir$ac_delim
5870 sysconfdir!$sysconfdir$ac_delim
5871 sharedstatedir!$sharedstatedir$ac_delim
5872 localstatedir!$localstatedir$ac_delim
5873 includedir!$includedir$ac_delim
5874 oldincludedir!$oldincludedir$ac_delim
5875 docdir!$docdir$ac_delim
5876 infodir!$infodir$ac_delim
5877 htmldir!$htmldir$ac_delim
5878 dvidir!$dvidir$ac_delim
5879 pdfdir!$pdfdir$ac_delim
5880 psdir!$psdir$ac_delim
5881 libdir!$libdir$ac_delim
5882 localedir!$localedir$ac_delim
5883 mandir!$mandir$ac_delim
5885 ECHO_C!$ECHO_C$ac_delim
5886 ECHO_N!$ECHO_N$ac_delim
5887 ECHO_T!$ECHO_T$ac_delim
5889 build_alias!$build_alias$ac_delim
5890 host_alias!$host_alias$ac_delim
5891 target_alias!$target_alias$ac_delim
5894 CXXFLAGS!$CXXFLAGS$ac_delim
5895 LDFLAGS!$LDFLAGS$ac_delim
5896 CPPFLAGS!$CPPFLAGS$ac_delim
5897 ac_ct_CXX!$ac_ct_CXX$ac_delim
5898 EXEEXT!$EXEEXT$ac_delim
5899 OBJEXT!$OBJEXT$ac_delim
5900 RANLIB!$RANLIB$ac_delim
5903 CFLAGS!$CFLAGS$ac_delim
5904 ac_ct_CC!$ac_ct_CC$ac_delim
5907 EGREP!$EGREP$ac_delim
5908 cppflag!$cppflag$ac_delim
5909 cxxflag!$cxxflag$ac_delim
5910 object_path!$object_path$ac_delim
5911 build!$build$ac_delim
5912 build_cpu!$build_cpu$ac_delim
5913 build_vendor!$build_vendor$ac_delim
5914 build_os!$build_os$ac_delim
5916 host_cpu!$host_cpu$ac_delim
5917 host_vendor!$host_vendor$ac_delim
5918 host_os!$host_os$ac_delim
5919 sharedlib!$sharedlib$ac_delim
5920 sharedname!$sharedname$ac_delim
5921 libflags!$libflags$ac_delim
5923 objects!$objects$ac_delim
5924 LIBOBJS!$LIBOBJS$ac_delim
5925 LTLIBOBJS!$LTLIBOBJS$ac_delim
5928 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 71; then
5930 elif $ac_last_try; then
5931 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
5932 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
5933 { (exit 1); exit 1; }; }
5935 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
5939 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
5940 if test -n "$ac_eof"; then
5941 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
5942 ac_eof=`expr $ac_eof + 1`
5945 cat >>$CONFIG_STATUS <<_ACEOF
5946 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
5947 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
5950 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
5951 s/^/s,@/; s/!/@,|#_!!_#|/
5954 s/'"$ac_delim"'$/,g/; t
5956 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
5957 ' >>$CONFIG_STATUS <conf$$subs.sed
5958 rm -f conf$$subs.sed
5959 cat >>$CONFIG_STATUS <<_ACEOF
5966 # VPATH may cause trouble with some makes, so we remove $(srcdir),
5967 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
5968 # trailing colons and then remove the whole line if VPATH becomes empty
5969 # (actually we leave an empty line to preserve line numbers).
5970 if test "x$srcdir" = x.; then
5971 ac_vpsub='/^[ ]*VPATH[ ]*=/{
5975 s/^\([^=]*=[ ]*\):*/\1/
5981 cat >>$CONFIG_STATUS <<\_ACEOF
5982 fi # test -n "$CONFIG_FILES"
5985 for ac_tag in :F $CONFIG_FILES
5988 :[FHLC]) ac_mode=$ac_tag; continue;;
5990 case $ac_mode$ac_tag in
5992 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
5993 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
5994 { (exit 1); exit 1; }; };;
5995 :[FH]-) ac_tag=-:-;;
5996 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
6013 -) ac_f="$tmp/stdin";;
6014 *) # Look for the file first in the build tree, then in the source tree
6015 # (if the path is not absolute). The absolute path cannot be DOS-style,
6016 # because $ac_f cannot contain `:'.
6020 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
6022 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
6023 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
6024 { (exit 1); exit 1; }; };;
6026 ac_file_inputs="$ac_file_inputs $ac_f"
6029 # Let's still pretend it is `configure' which instantiates (i.e., don't
6030 # use $as_me), people would be surprised to read:
6031 # /* config.h. Generated by config.status. */
6032 configure_input="Generated from "`IFS=:
6033 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
6034 if test x"$ac_file" != x-; then
6035 configure_input="$ac_file. $configure_input"
6036 { echo "$as_me:$LINENO: creating $ac_file" >&5
6037 echo "$as_me: creating $ac_file" >&6;}
6041 *:-:* | *:-) cat >"$tmp/stdin";;
6046 ac_dir=`$as_dirname -- "$ac_file" ||
6047 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6048 X"$ac_file" : 'X\(//\)[^/]' \| \
6049 X"$ac_file" : 'X\(//\)$' \| \
6050 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
6052 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6071 -*) as_dir=./$as_dir;;
6073 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
6077 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
6078 *) as_qdir=$as_dir;;
6080 as_dirs="'$as_qdir' $as_dirs"
6081 as_dir=`$as_dirname -- "$as_dir" ||
6082 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6083 X"$as_dir" : 'X\(//\)[^/]' \| \
6084 X"$as_dir" : 'X\(//\)$' \| \
6085 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
6087 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6104 test -d "$as_dir" && break
6106 test -z "$as_dirs" || eval "mkdir $as_dirs"
6107 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
6108 echo "$as_me: error: cannot create directory $as_dir" >&2;}
6109 { (exit 1); exit 1; }; }; }
6113 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
6115 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
6116 # A ".." for each directory in $ac_dir_suffix.
6117 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
6118 case $ac_top_builddir_sub in
6119 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
6120 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
6123 ac_abs_top_builddir=$ac_pwd
6124 ac_abs_builddir=$ac_pwd$ac_dir_suffix
6125 # for backward compatibility:
6126 ac_top_builddir=$ac_top_build_prefix
6129 .) # We are building in place.
6131 ac_top_srcdir=$ac_top_builddir_sub
6132 ac_abs_top_srcdir=$ac_pwd ;;
6133 [\\/]* | ?:[\\/]* ) # Absolute name.
6134 ac_srcdir=$srcdir$ac_dir_suffix;
6135 ac_top_srcdir=$srcdir
6136 ac_abs_top_srcdir=$srcdir ;;
6138 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
6139 ac_top_srcdir=$ac_top_build_prefix$srcdir
6140 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
6142 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
6153 cat >>$CONFIG_STATUS <<\_ACEOF
6154 # If the template does not know about datarootdir, expand it.
6155 # FIXME: This hack should be removed a few years after 2.60.
6156 ac_datarootdir_hack=; ac_datarootdir_seen=
6158 case `sed -n '/datarootdir/ {
6167 ' $ac_file_inputs` in
6168 *datarootdir*) ac_datarootdir_seen=yes;;
6169 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
6170 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
6171 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
6173 cat >>$CONFIG_STATUS <<_ACEOF
6174 ac_datarootdir_hack='
6175 s&@datadir@&$datadir&g
6176 s&@docdir@&$docdir&g
6177 s&@infodir@&$infodir&g
6178 s&@localedir@&$localedir&g
6179 s&@mandir@&$mandir&g
6180 s&\\\${datarootdir}&$datarootdir&g' ;;
6184 # Neutralize VPATH when `$srcdir' = `.'.
6185 # Shell code in configure.ac might set extrasub.
6186 # FIXME: do we really want to maintain this feature?
6187 cat >>$CONFIG_STATUS <<_ACEOF
6191 cat >>$CONFIG_STATUS <<\_ACEOF
6193 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
6194 s&@configure_input@&$configure_input&;t t
6195 s&@top_builddir@&$ac_top_builddir_sub&;t t
6196 s&@srcdir@&$ac_srcdir&;t t
6197 s&@abs_srcdir@&$ac_abs_srcdir&;t t
6198 s&@top_srcdir@&$ac_top_srcdir&;t t
6199 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
6200 s&@builddir@&$ac_builddir&;t t
6201 s&@abs_builddir@&$ac_abs_builddir&;t t
6202 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
6203 $ac_datarootdir_hack
6204 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" >$tmp/out
6206 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
6207 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
6208 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
6209 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
6210 which seems to be undefined. Please make sure it is defined." >&5
6211 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
6212 which seems to be undefined. Please make sure it is defined." >&2;}
6216 -) cat "$tmp/out"; rm -f "$tmp/out";;
6217 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
6228 { (exit 0); exit 0; }
6230 chmod +x $CONFIG_STATUS
6231 ac_clean_files=$ac_clean_files_save
6234 # configure is writing to config.log, and then calls config.status.
6235 # config.status does its own redirection, appending to config.log.
6236 # Unfortunately, on DOS this fails, as config.log is still kept open
6237 # by configure, so config.status won't be able to write to it; its
6238 # output is simply discarded. So we exec the FD to /dev/null,
6239 # effectively closing config.log, so it can be properly (re)opened and
6240 # appended to by config.status. When coming back to configure, we
6241 # need to make the FD available again.
6242 if test "$no_create" != yes; then
6244 ac_config_status_args=
6245 test "$silent" = yes &&
6246 ac_config_status_args="$ac_config_status_args --quiet"
6248 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
6250 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
6251 # would make configure fail if this is the last instruction.
6252 $ac_cs_success || { (exit 1); exit 1; }
6256 chmod oug+x rtaudio-config