Changeset 3885 in orxonox.OLD for orxonox/branches/sound_engine/configure
- Timestamp:
- Apr 18, 2005, 11:22:38 PM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/branches/sound_engine/configure
r3863 r3885 6170 6170 ## CHECKING FOR HEADERS AND LIBS ## 6171 6171 ################################### 6172 #-----------# 6173 # SDL_mixer # 6174 #-----------# 6175 6176 for ac_header in SDL/SDL_mixer.h 6177 do 6178 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 6179 if eval "test \"\${$as_ac_Header+set}\" = set"; then 6180 echo "$as_me:$LINENO: checking for $ac_header" >&5 6181 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 6182 if eval "test \"\${$as_ac_Header+set}\" = set"; then 6183 echo $ECHO_N "(cached) $ECHO_C" >&6 6184 fi 6185 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 6186 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 6187 else 6188 # Is the header compilable? 6189 echo "$as_me:$LINENO: checking $ac_header usability" >&5 6190 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 6191 cat >conftest.$ac_ext <<_ACEOF 6192 /* confdefs.h. */ 6193 _ACEOF 6194 cat confdefs.h >>conftest.$ac_ext 6195 cat >>conftest.$ac_ext <<_ACEOF 6196 /* end confdefs.h. */ 6197 $ac_includes_default 6198 #include <$ac_header> 6199 _ACEOF 6200 rm -f conftest.$ac_objext 6201 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6202 (eval $ac_compile) 2>conftest.er1 6203 ac_status=$? 6204 grep -v '^ *+' conftest.er1 >conftest.err 6205 rm -f conftest.er1 6206 cat conftest.err >&5 6207 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6208 (exit $ac_status); } && 6209 { ac_try='test -z "$ac_c_werror_flag" 6210 || test ! -s conftest.err' 6211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6212 (eval $ac_try) 2>&5 6213 ac_status=$? 6214 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6215 (exit $ac_status); }; } && 6216 { ac_try='test -s conftest.$ac_objext' 6217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6218 (eval $ac_try) 2>&5 6219 ac_status=$? 6220 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6221 (exit $ac_status); }; }; then 6222 ac_header_compiler=yes 6223 else 6224 echo "$as_me: failed program was:" >&5 6225 sed 's/^/| /' conftest.$ac_ext >&5 6226 6227 ac_header_compiler=no 6228 fi 6229 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 6230 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 6231 echo "${ECHO_T}$ac_header_compiler" >&6 6232 6233 # Is the header present? 6234 echo "$as_me:$LINENO: checking $ac_header presence" >&5 6235 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 6236 cat >conftest.$ac_ext <<_ACEOF 6237 /* confdefs.h. */ 6238 _ACEOF 6239 cat confdefs.h >>conftest.$ac_ext 6240 cat >>conftest.$ac_ext <<_ACEOF 6241 /* end confdefs.h. */ 6242 #include <$ac_header> 6243 _ACEOF 6244 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 6245 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 6246 ac_status=$? 6247 grep -v '^ *+' conftest.er1 >conftest.err 6248 rm -f conftest.er1 6249 cat conftest.err >&5 6250 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6251 (exit $ac_status); } >/dev/null; then 6252 if test -s conftest.err; then 6253 ac_cpp_err=$ac_c_preproc_warn_flag 6254 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 6255 else 6256 ac_cpp_err= 6257 fi 6258 else 6259 ac_cpp_err=yes 6260 fi 6261 if test -z "$ac_cpp_err"; then 6262 ac_header_preproc=yes 6263 else 6264 echo "$as_me: failed program was:" >&5 6265 sed 's/^/| /' conftest.$ac_ext >&5 6266 6267 ac_header_preproc=no 6268 fi 6269 rm -f conftest.err conftest.$ac_ext 6270 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 6271 echo "${ECHO_T}$ac_header_preproc" >&6 6272 6273 # So? What about this header? 6274 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 6275 yes:no: ) 6276 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 6277 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 6278 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 6279 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 6280 ac_header_preproc=yes 6281 ;; 6282 no:yes:* ) 6283 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 6284 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 6285 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 6286 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 6287 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 6288 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 6289 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 6290 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 6291 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 6292 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 6293 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 6294 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 6295 ( 6296 cat <<\_ASBOX 6297 ## ---------------------------------------------- ## 6298 ## Report this to orxonox-dev at mail.datacore.ch ## 6299 ## ---------------------------------------------- ## 6300 _ASBOX 6301 ) | 6302 sed "s/^/$as_me: WARNING: /" >&2 6303 ;; 6304 esac 6305 echo "$as_me:$LINENO: checking for $ac_header" >&5 6306 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 6307 if eval "test \"\${$as_ac_Header+set}\" = set"; then 6308 echo $ECHO_N "(cached) $ECHO_C" >&6 6309 else 6310 eval "$as_ac_Header=\$ac_header_preproc" 6311 fi 6312 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 6313 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 6314 6315 fi 6316 if test `eval echo '${'$as_ac_Header'}'` = yes; then 6317 cat >>confdefs.h <<_ACEOF 6318 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 6319 _ACEOF 6320 6321 else 6322 { { echo "$as_me:$LINENO: error: sdl_mixer not found" >&5 6323 echo "$as_me: error: sdl_mixer not found" >&2;} 6324 { (exit 1); exit 1; }; } 6325 fi 6326 6327 done 6328 6329 # checking for SDL_mixer-lib 6330 echo "$as_me:$LINENO: checking for main in -lSDL_mixer" >&5 6331 echo $ECHO_N "checking for main in -lSDL_mixer... $ECHO_C" >&6 6332 if test "${ac_cv_lib_SDL_mixer_main+set}" = set; then 6333 echo $ECHO_N "(cached) $ECHO_C" >&6 6334 else 6335 ac_check_lib_save_LIBS=$LIBS 6336 LIBS="-lSDL_mixer $LIBS" 6337 cat >conftest.$ac_ext <<_ACEOF 6338 /* confdefs.h. */ 6339 _ACEOF 6340 cat confdefs.h >>conftest.$ac_ext 6341 cat >>conftest.$ac_ext <<_ACEOF 6342 /* end confdefs.h. */ 6343 6344 6345 int 6346 main () 6347 { 6348 main (); 6349 ; 6350 return 0; 6351 } 6352 _ACEOF 6353 rm -f conftest.$ac_objext conftest$ac_exeext 6354 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6355 (eval $ac_link) 2>conftest.er1 6356 ac_status=$? 6357 grep -v '^ *+' conftest.er1 >conftest.err 6358 rm -f conftest.er1 6359 cat conftest.err >&5 6360 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6361 (exit $ac_status); } && 6362 { ac_try='test -z "$ac_c_werror_flag" 6363 || test ! -s conftest.err' 6364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6365 (eval $ac_try) 2>&5 6366 ac_status=$? 6367 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6368 (exit $ac_status); }; } && 6369 { ac_try='test -s conftest$ac_exeext' 6370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6371 (eval $ac_try) 2>&5 6372 ac_status=$? 6373 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6374 (exit $ac_status); }; }; then 6375 ac_cv_lib_SDL_mixer_main=yes 6376 else 6377 echo "$as_me: failed program was:" >&5 6378 sed 's/^/| /' conftest.$ac_ext >&5 6379 6380 ac_cv_lib_SDL_mixer_main=no 6381 fi 6382 rm -f conftest.err conftest.$ac_objext \ 6383 conftest$ac_exeext conftest.$ac_ext 6384 LIBS=$ac_check_lib_save_LIBS 6385 fi 6386 echo "$as_me:$LINENO: result: $ac_cv_lib_SDL_mixer_main" >&5 6387 echo "${ECHO_T}$ac_cv_lib_SDL_mixer_main" >&6 6388 if test $ac_cv_lib_SDL_mixer_main = yes; then 6389 FOUND_SDL_mixer=yes 6390 fi 6391 6392 if test x$FOUND_SDL_mixer = xyes ; then 6393 LIBS="$LIBS -lSDL_mixer" 6394 else 6395 echo "------------------" 6396 echo "SDL_mixer library not found." 6397 echo "please install the SDL_mixer library, which can be found at http://www.libsdl.org/projects/SDL_mixer/" 6398 echo "------------------" 6399 exit -1 6400 fi 6172 6401 6173 6402 #---------#
Note: See TracChangeset
for help on using the changeset viewer.