filename | configure |
changeset | 697:479b8c213f61 |
prev | 688:8a13dabbdced |
next | 700:4650d0c7f6f9 |
author | nkeynes |
date | Sun Jun 22 04:01:27 2008 +0000 (12 years ago) |
permissions | -rw-r--r-- |
last change | Commit work-in-progress CoreAudio driver (along with various changes to the audio subsystem) |
file | annotate | diff | log | raw |
1.1 --- a/configure Sat Jun 14 11:57:11 2008 +00001.2 +++ b/configure Sun Jun 22 04:01:27 2008 +00001.3 @@ -746,6 +746,8 @@1.4 BUILD_SH4X86_FALSE1.5 BUILD_X86_64_TRUE1.6 BUILD_X86_64_FALSE1.7 +AUDIO_OSX_TRUE1.8 +AUDIO_OSX_FALSE1.9 PULSE_CFLAGS1.10 PULSE_LIBS1.11 AUDIO_PULSE_TRUE1.12 @@ -8562,6 +8564,158 @@1.13 fi1.16 +if test "${ac_cv_header_AudioToolbox_AudioToolbox_h+set}" = set; then1.17 + { $as_echo "$as_me:$LINENO: checking for AudioToolbox/AudioToolbox.h" >&51.18 +$as_echo_n "checking for AudioToolbox/AudioToolbox.h... " >&6; }1.19 +if test "${ac_cv_header_AudioToolbox_AudioToolbox_h+set}" = set; then1.20 + $as_echo_n "(cached) " >&61.21 +fi1.22 +{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_AudioToolbox_AudioToolbox_h" >&51.23 +$as_echo "$ac_cv_header_AudioToolbox_AudioToolbox_h" >&6; }1.24 +else1.25 + # Is the header compilable?1.26 +{ $as_echo "$as_me:$LINENO: checking AudioToolbox/AudioToolbox.h usability" >&51.27 +$as_echo_n "checking AudioToolbox/AudioToolbox.h usability... " >&6; }1.28 +cat >conftest.$ac_ext <<_ACEOF1.29 +/* confdefs.h. */1.30 +_ACEOF1.31 +cat confdefs.h >>conftest.$ac_ext1.32 +cat >>conftest.$ac_ext <<_ACEOF1.33 +/* end confdefs.h. */1.34 +$ac_includes_default1.35 +#include <AudioToolbox/AudioToolbox.h>1.36 +_ACEOF1.37 +rm -f conftest.$ac_objext1.38 +if { (ac_try="$ac_compile"1.39 +case "(($ac_try" in1.40 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;1.41 + *) ac_try_echo=$ac_try;;1.42 +esac1.43 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""1.44 +$as_echo "$ac_try_echo") >&51.45 + (eval "$ac_compile") 2>conftest.er11.46 + ac_status=$?1.47 + grep -v '^ *+' conftest.er1 >conftest.err1.48 + rm -f conftest.er11.49 + cat conftest.err >&51.50 + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&51.51 + (exit $ac_status); } && {1.52 + test -z "$ac_c_werror_flag" ||1.53 + test ! -s conftest.err1.54 + } && test -s conftest.$ac_objext; then1.55 + ac_header_compiler=yes1.56 +else1.57 + $as_echo "$as_me: failed program was:" >&51.58 +sed 's/^/| /' conftest.$ac_ext >&51.59 +1.60 + ac_header_compiler=no1.61 +fi1.62 +1.63 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext1.64 +{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&51.65 +$as_echo "$ac_header_compiler" >&6; }1.66 +1.67 +# Is the header present?1.68 +{ $as_echo "$as_me:$LINENO: checking AudioToolbox/AudioToolbox.h presence" >&51.69 +$as_echo_n "checking AudioToolbox/AudioToolbox.h presence... " >&6; }1.70 +cat >conftest.$ac_ext <<_ACEOF1.71 +/* confdefs.h. */1.72 +_ACEOF1.73 +cat confdefs.h >>conftest.$ac_ext1.74 +cat >>conftest.$ac_ext <<_ACEOF1.75 +/* end confdefs.h. */1.76 +#include <AudioToolbox/AudioToolbox.h>1.77 +_ACEOF1.78 +if { (ac_try="$ac_cpp conftest.$ac_ext"1.79 +case "(($ac_try" in1.80 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;1.81 + *) ac_try_echo=$ac_try;;1.82 +esac1.83 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""1.84 +$as_echo "$ac_try_echo") >&51.85 + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er11.86 + ac_status=$?1.87 + grep -v '^ *+' conftest.er1 >conftest.err1.88 + rm -f conftest.er11.89 + cat conftest.err >&51.90 + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&51.91 + (exit $ac_status); } >/dev/null && {1.92 + test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||1.93 + test ! -s conftest.err1.94 + }; then1.95 + ac_header_preproc=yes1.96 +else1.97 + $as_echo "$as_me: failed program was:" >&51.98 +sed 's/^/| /' conftest.$ac_ext >&51.99 +1.100 + ac_header_preproc=no1.101 +fi1.102 +1.103 +rm -f conftest.err conftest.$ac_ext1.104 +{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&51.105 +$as_echo "$ac_header_preproc" >&6; }1.106 +1.107 +# So? What about this header?1.108 +case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in1.109 + yes:no: )1.110 + { $as_echo "$as_me:$LINENO: WARNING: AudioToolbox/AudioToolbox.h: accepted by the compiler, rejected by the preprocessor!" >&51.111 +$as_echo "$as_me: WARNING: AudioToolbox/AudioToolbox.h: accepted by the compiler, rejected by the preprocessor!" >&2;}1.112 + { $as_echo "$as_me:$LINENO: WARNING: AudioToolbox/AudioToolbox.h: proceeding with the compiler's result" >&51.113 +$as_echo "$as_me: WARNING: AudioToolbox/AudioToolbox.h: proceeding with the compiler's result" >&2;}1.114 + ac_header_preproc=yes1.115 + ;;1.116 + no:yes:* )1.117 + { $as_echo "$as_me:$LINENO: WARNING: AudioToolbox/AudioToolbox.h: present but cannot be compiled" >&51.118 +$as_echo "$as_me: WARNING: AudioToolbox/AudioToolbox.h: present but cannot be compiled" >&2;}1.119 + { $as_echo "$as_me:$LINENO: WARNING: AudioToolbox/AudioToolbox.h: check for missing prerequisite headers?" >&51.120 +$as_echo "$as_me: WARNING: AudioToolbox/AudioToolbox.h: check for missing prerequisite headers?" >&2;}1.121 + { $as_echo "$as_me:$LINENO: WARNING: AudioToolbox/AudioToolbox.h: see the Autoconf documentation" >&51.122 +$as_echo "$as_me: WARNING: AudioToolbox/AudioToolbox.h: see the Autoconf documentation" >&2;}1.123 + { $as_echo "$as_me:$LINENO: WARNING: AudioToolbox/AudioToolbox.h: section \"Present But Cannot Be Compiled\"" >&51.124 +$as_echo "$as_me: WARNING: AudioToolbox/AudioToolbox.h: section \"Present But Cannot Be Compiled\"" >&2;}1.125 + { $as_echo "$as_me:$LINENO: WARNING: AudioToolbox/AudioToolbox.h: proceeding with the preprocessor's result" >&51.126 +$as_echo "$as_me: WARNING: AudioToolbox/AudioToolbox.h: proceeding with the preprocessor's result" >&2;}1.127 + { $as_echo "$as_me:$LINENO: WARNING: AudioToolbox/AudioToolbox.h: in the future, the compiler will take precedence" >&51.128 +$as_echo "$as_me: WARNING: AudioToolbox/AudioToolbox.h: in the future, the compiler will take precedence" >&2;}1.129 +1.130 + ;;1.131 +esac1.132 +{ $as_echo "$as_me:$LINENO: checking for AudioToolbox/AudioToolbox.h" >&51.133 +$as_echo_n "checking for AudioToolbox/AudioToolbox.h... " >&6; }1.134 +if test "${ac_cv_header_AudioToolbox_AudioToolbox_h+set}" = set; then1.135 + $as_echo_n "(cached) " >&61.136 +else1.137 + ac_cv_header_AudioToolbox_AudioToolbox_h=$ac_header_preproc1.138 +fi1.139 +{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_AudioToolbox_AudioToolbox_h" >&51.140 +$as_echo "$ac_cv_header_AudioToolbox_AudioToolbox_h" >&6; }1.141 +1.142 +fi1.143 +if test $ac_cv_header_AudioToolbox_AudioToolbox_h = yes; then1.144 +1.145 + HAVE_CORE_AUDIO=yes1.146 + LIBS="$LIBS -framework AudioToolbox -framework AudioUnit"1.147 +1.148 +cat >>confdefs.h <<\_ACEOF1.149 +#define HAVE_CORE_AUDIO 11.150 +_ACEOF1.151 +1.152 +else1.153 + true1.154 +fi1.155 +1.156 +1.157 +1.158 +1.159 +if test "$HAVE_CORE_AUDIO" = 'yes' ; then1.160 + AUDIO_OSX_TRUE=1.161 + AUDIO_OSX_FALSE='#'1.162 +else1.163 + AUDIO_OSX_TRUE='#'1.164 + AUDIO_OSX_FALSE=1.165 +fi1.166 +1.167 +1.169 pkg_failed=no1.170 { $as_echo "$as_me:$LINENO: checking for PULSE" >&51.171 @@ -11176,6 +11330,13 @@1.172 Usually this means the macro was only invoked conditionally." >&2;}1.173 { (exit 1); exit 1; }; }1.174 fi1.175 +if test -z "${AUDIO_OSX_TRUE}" && test -z "${AUDIO_OSX_FALSE}"; then1.176 + { { $as_echo "$as_me:$LINENO: error: conditional \"AUDIO_OSX\" was never defined.1.177 +Usually this means the macro was only invoked conditionally." >&51.178 +$as_echo "$as_me: error: conditional \"AUDIO_OSX\" was never defined.1.179 +Usually this means the macro was only invoked conditionally." >&2;}1.180 + { (exit 1); exit 1; }; }1.181 +fi1.182 if test -z "${AUDIO_PULSE_TRUE}" && test -z "${AUDIO_PULSE_FALSE}"; then1.183 { { $as_echo "$as_me:$LINENO: error: conditional \"AUDIO_PULSE\" was never defined.1.184 Usually this means the macro was only invoked conditionally." >&5
.