1.1 --- a/configure Mon Jan 28 02:38:09 2008 +0000
1.2 +++ b/configure Sun Mar 02 11:38:08 2008 +0000
1.24 # Initialize some variables set by options.
1.25 @@ -1371,6 +1377,8 @@
1.27 C compiler flags for ESOUND, overriding pkg-config
1.28 ESOUND_LIBS linker flags for ESOUND, overriding pkg-config
1.29 + ALSA_CFLAGS C compiler flags for ALSA, overriding pkg-config
1.30 + ALSA_LIBS linker flags for ALSA, overriding pkg-config
1.32 Use these variables to override the choices made by `configure' or to help
1.33 it to find libraries and programs with nonstandard names/locations.
1.34 @@ -5957,9 +5965,9 @@
1.36 { echo "$as_me:$LINENO: result: no" >&5
1.37 echo "${ECHO_T}no" >&6; }
1.38 - echo "Warning: esound not found - building without audio support"
1.39 + echo "Warning: esound not found - building without esd audio support"
1.40 elif test $pkg_failed = untried; then
1.41 - echo "Warning: esound not found - building without audio support"
1.42 + echo "Warning: esound not found - building without esd audio support"
1.44 ESOUND_CFLAGS=$pkg_cv_ESOUND_CFLAGS
1.45 ESOUND_LIBS=$pkg_cv_ESOUND_LIBS
1.46 @@ -5984,6 +5992,94 @@
1.52 +{ echo "$as_me:$LINENO: checking for ALSA" >&5
1.53 +echo $ECHO_N "checking for ALSA... $ECHO_C" >&6; }
1.55 +if test -n "$PKG_CONFIG"; then
1.56 + if test -n "$ALSA_CFLAGS"; then
1.57 + pkg_cv_ALSA_CFLAGS="$ALSA_CFLAGS"
1.59 + if test -n "$PKG_CONFIG" && \
1.60 + { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"alsa\"") >&5
1.61 + ($PKG_CONFIG --exists --print-errors "alsa") 2>&5
1.63 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.64 + (exit $ac_status); }; then
1.65 + pkg_cv_ALSA_CFLAGS=`$PKG_CONFIG --cflags "alsa" 2>/dev/null`
1.71 + pkg_failed=untried
1.73 +if test -n "$PKG_CONFIG"; then
1.74 + if test -n "$ALSA_LIBS"; then
1.75 + pkg_cv_ALSA_LIBS="$ALSA_LIBS"
1.77 + if test -n "$PKG_CONFIG" && \
1.78 + { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"alsa\"") >&5
1.79 + ($PKG_CONFIG --exists --print-errors "alsa") 2>&5
1.81 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.82 + (exit $ac_status); }; then
1.83 + pkg_cv_ALSA_LIBS=`$PKG_CONFIG --libs "alsa" 2>/dev/null`
1.89 + pkg_failed=untried
1.94 +if test $pkg_failed = yes; then
1.96 +if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
1.97 + _pkg_short_errors_supported=yes
1.99 + _pkg_short_errors_supported=no
1.101 + if test $_pkg_short_errors_supported = yes; then
1.102 + ALSA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "alsa"`
1.104 + ALSA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "alsa"`
1.106 + # Put the nasty error message in config.log where it belongs
1.107 + echo "$ALSA_PKG_ERRORS" >&5
1.109 + { echo "$as_me:$LINENO: result: no" >&5
1.110 +echo "${ECHO_T}no" >&6; }
1.111 + echo "Warning: alsa not found - building without alsa audio support"
1.112 +elif test $pkg_failed = untried; then
1.113 + echo "Warning: alsa not found - building without alsa audio support"
1.115 + ALSA_CFLAGS=$pkg_cv_ALSA_CFLAGS
1.116 + ALSA_LIBS=$pkg_cv_ALSA_LIBS
1.117 + { echo "$as_me:$LINENO: result: yes" >&5
1.118 +echo "${ECHO_T}yes" >&6; }
1.122 +cat >>confdefs.h <<\_ACEOF
1.123 +#define HAVE_ALSA 1
1.129 +if test "$HAVE_ALSA" = 'yes' ; then
1.131 + AUDIO_ALSA_FALSE='#'
1.133 + AUDIO_ALSA_TRUE='#'
1.134 + AUDIO_ALSA_FALSE=
1.138 if test "${ac_cv_header_linux_cdrom_h+set}" = set; then
1.139 { echo "$as_me:$LINENO: checking for linux/cdrom.h" >&5
1.140 echo $ECHO_N "checking for linux/cdrom.h... $ECHO_C" >&6; }
1.141 @@ -8239,6 +8335,13 @@
1.142 Usually this means the macro was only invoked conditionally." >&2;}
1.143 { (exit 1); exit 1; }; }
1.145 +if test -z "${AUDIO_ALSA_TRUE}" && test -z "${AUDIO_ALSA_FALSE}"; then
1.146 + { { echo "$as_me:$LINENO: error: conditional \"AUDIO_ALSA\" was never defined.
1.147 +Usually this means the macro was only invoked conditionally." >&5
1.148 +echo "$as_me: error: conditional \"AUDIO_ALSA\" was never defined.
1.149 +Usually this means the macro was only invoked conditionally." >&2;}
1.150 + { (exit 1); exit 1; }; }
1.152 if test -z "${CDROM_LINUX_TRUE}" && test -z "${CDROM_LINUX_FALSE}"; then
1.153 { { echo "$as_me:$LINENO: error: conditional \"CDROM_LINUX\" was never defined.
1.154 Usually this means the macro was only invoked conditionally." >&5
1.155 @@ -8948,6 +9051,10 @@
1.156 ESOUND_LIBS!$ESOUND_LIBS$ac_delim
1.157 AUDIO_ESOUND_TRUE!$AUDIO_ESOUND_TRUE$ac_delim
1.158 AUDIO_ESOUND_FALSE!$AUDIO_ESOUND_FALSE$ac_delim
1.159 +ALSA_CFLAGS!$ALSA_CFLAGS$ac_delim
1.160 +ALSA_LIBS!$ALSA_LIBS$ac_delim
1.161 +AUDIO_ALSA_TRUE!$AUDIO_ALSA_TRUE$ac_delim
1.162 +AUDIO_ALSA_FALSE!$AUDIO_ALSA_FALSE$ac_delim
1.163 CDROM_LINUX_TRUE!$CDROM_LINUX_TRUE$ac_delim
1.164 CDROM_LINUX_FALSE!$CDROM_LINUX_FALSE$ac_delim
1.165 JOY_LINUX_TRUE!$JOY_LINUX_TRUE$ac_delim
1.166 @@ -8983,7 +9090,7 @@
1.167 LTLIBOBJS!$LTLIBOBJS$ac_delim
1.170 - if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 40; then
1.171 + if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 44; then
1.173 elif $ac_last_try; then
1.174 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5