filename | configure |
changeset | 989:7baf5ecd8e98 |
prev | 987:3bd03f1ce0a7 |
next | 1002:8ad76ddbdc58 |
author | nkeynes |
date | Tue Mar 24 11:15:57 2009 +0000 (15 years ago) |
permissions | -rw-r--r-- |
last change | Add preliminary implementation of the GDB remote debugging server - attaches to either or both the SH4 and ARM |
file | annotate | diff | log | raw |
1.1 --- a/configure Wed Feb 25 08:50:22 2009 +00001.2 +++ b/configure Tue Mar 24 11:15:57 2009 +00001.3 @@ -755,6 +755,10 @@1.4 BUILD_SH4X86_FALSE1.5 AUDIO_OSX_TRUE1.6 AUDIO_OSX_FALSE1.7 +SDL_CFLAGS1.8 +SDL_LIBS1.9 +AUDIO_SDL_TRUE1.10 +AUDIO_SDL_FALSE1.11 PULSE_CFLAGS1.12 PULSE_LIBS1.13 AUDIO_PULSE_TRUE1.14 @@ -820,6 +824,7 @@1.15 with_gtk1.16 with_esd1.17 with_pulse1.18 +with_sdl1.19 '1.20 ac_precious_vars='build_alias1.21 host_alias1.22 @@ -841,6 +846,8 @@1.23 GLIB_LIBS1.24 GTK_CFLAGS1.25 GTK_LIBS1.26 +SDL_CFLAGS1.27 +SDL_LIBS1.28 PULSE_CFLAGS1.29 PULSE_LIBS1.30 ESOUND_CFLAGS1.31 @@ -1498,6 +1505,7 @@1.32 --with-gtk Build with the GTK UI. Default on X11 systems1.33 --with-esd Build with support for the ESounD audio system1.34 --with-pulse Build with support for the PulseAudio audio system1.35 + --with-sdl Build with support for SDL audio1.37 Some influential environment variables:1.38 CC C compiler command1.39 @@ -1520,6 +1528,8 @@1.40 GLIB_LIBS linker flags for GLIB, overriding pkg-config1.41 GTK_CFLAGS C compiler flags for GTK, overriding pkg-config1.42 GTK_LIBS linker flags for GTK, overriding pkg-config1.43 + SDL_CFLAGS C compiler flags for SDL, overriding pkg-config1.44 + SDL_LIBS linker flags for SDL, overriding pkg-config1.45 PULSE_CFLAGS1.46 C compiler flags for PULSE, overriding pkg-config1.47 PULSE_LIBS linker flags for PULSE, overriding pkg-config1.48 @@ -7211,6 +7221,13 @@1.49 fi1.52 +# Check whether --with-sdl was given.1.53 +if test "${with_sdl+set}" = set; then1.54 + withval=$with_sdl;1.55 +fi1.56 +1.57 +1.58 +1.62 @@ -9953,6 +9970,110 @@1.63 fi1.66 +if test "x$with_sdl" != "xno"; then1.67 +1.68 +pkg_failed=no1.69 +{ $as_echo "$as_me:$LINENO: checking for SDL" >&51.70 +$as_echo_n "checking for SDL... " >&6; }1.71 +1.72 +if test -n "$SDL_CFLAGS"; then1.73 + pkg_cv_SDL_CFLAGS="$SDL_CFLAGS"1.74 + elif test -n "$PKG_CONFIG"; then1.75 + if test -n "$PKG_CONFIG" && \1.76 + { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"sdl\"") >&51.77 + ($PKG_CONFIG --exists --print-errors "sdl") 2>&51.78 + ac_status=$?1.79 + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&51.80 + (exit $ac_status); }; then1.81 + pkg_cv_SDL_CFLAGS=`$PKG_CONFIG --cflags "sdl" 2>/dev/null`1.82 +else1.83 + pkg_failed=yes1.84 +fi1.85 + else1.86 + pkg_failed=untried1.87 +fi1.88 +if test -n "$SDL_LIBS"; then1.89 + pkg_cv_SDL_LIBS="$SDL_LIBS"1.90 + elif test -n "$PKG_CONFIG"; then1.91 + if test -n "$PKG_CONFIG" && \1.92 + { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"sdl\"") >&51.93 + ($PKG_CONFIG --exists --print-errors "sdl") 2>&51.94 + ac_status=$?1.95 + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&51.96 + (exit $ac_status); }; then1.97 + pkg_cv_SDL_LIBS=`$PKG_CONFIG --libs "sdl" 2>/dev/null`1.98 +else1.99 + pkg_failed=yes1.100 +fi1.101 + else1.102 + pkg_failed=untried1.103 +fi1.104 +1.105 +1.106 +1.107 +if test $pkg_failed = yes; then1.108 +1.109 +if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then1.110 + _pkg_short_errors_supported=yes1.111 +else1.112 + _pkg_short_errors_supported=no1.113 +fi1.114 + if test $_pkg_short_errors_supported = yes; then1.115 + SDL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "sdl" 2>&1`1.116 + else1.117 + SDL_PKG_ERRORS=`$PKG_CONFIG --print-errors "sdl" 2>&1`1.118 + fi1.119 + # Put the nasty error message in config.log where it belongs1.120 + echo "$SDL_PKG_ERRORS" >&51.121 +1.122 + { $as_echo "$as_me:$LINENO: result: no" >&51.123 +$as_echo "no" >&6; }1.124 +1.125 + if test "x$with_sdl" = "xyes"; then1.126 + { { $as_echo "$as_me:$LINENO: error: \"SDL libraries could not be found (but were required)1.127 +See \`config.log' for more details." >&51.128 +$as_echo "$as_me: error: \"SDL libraries could not be found (but were required)1.129 +See \`config.log' for more details." >&2;}1.130 + { (exit 1); exit 1; }; }1.131 + fi1.132 +1.133 +elif test $pkg_failed = untried; then1.134 +1.135 + if test "x$with_sdl" = "xyes"; then1.136 + { { $as_echo "$as_me:$LINENO: error: \"SDL libraries could not be found (but were required)1.137 +See \`config.log' for more details." >&51.138 +$as_echo "$as_me: error: \"SDL libraries could not be found (but were required)1.139 +See \`config.log' for more details." >&2;}1.140 + { (exit 1); exit 1; }; }1.141 + fi1.142 +1.143 +else1.144 + SDL_CFLAGS=$pkg_cv_SDL_CFLAGS1.145 + SDL_LIBS=$pkg_cv_SDL_LIBS1.146 + { $as_echo "$as_me:$LINENO: result: yes" >&51.147 +$as_echo "yes" >&6; }1.148 +1.149 + HAVE_SDL='yes'1.150 + AUDIO_DRIVERS="$AUDIO_DRIVERS sdl"1.151 +1.152 +cat >>confdefs.h <<\_ACEOF1.153 +#define HAVE_SDL 11.154 +_ACEOF1.155 +1.156 +1.157 +fi1.158 +fi1.159 +1.160 +1.161 +if test "$HAVE_SDL" = 'yes' ; then1.162 + AUDIO_SDL_TRUE=1.163 + AUDIO_SDL_FALSE='#'1.164 +else1.165 + AUDIO_SDL_TRUE='#'1.166 + AUDIO_SDL_FALSE=1.167 +fi1.168 +1.169 +1.170 if test "x$with_pulse" != "xno"; then1.172 pkg_failed=no1.173 @@ -12809,6 +12930,13 @@1.174 Usually this means the macro was only invoked conditionally." >&2;}1.175 { (exit 1); exit 1; }; }1.176 fi1.177 +if test -z "${AUDIO_SDL_TRUE}" && test -z "${AUDIO_SDL_FALSE}"; then1.178 + { { $as_echo "$as_me:$LINENO: error: conditional \"AUDIO_SDL\" was never defined.1.179 +Usually this means the macro was only invoked conditionally." >&51.180 +$as_echo "$as_me: error: conditional \"AUDIO_SDL\" was never defined.1.181 +Usually this means the macro was only invoked conditionally." >&2;}1.182 + { (exit 1); exit 1; }; }1.183 +fi1.184 if test -z "${AUDIO_PULSE_TRUE}" && test -z "${AUDIO_PULSE_FALSE}"; then1.185 { { $as_echo "$as_me:$LINENO: error: conditional \"AUDIO_PULSE\" was never defined.1.186 Usually this means the macro was only invoked conditionally." >&5
.