Changeset 3921 in orxonox.OLD for orxonox/branches/openAL/configure
- Timestamp:
- Apr 21, 2005, 11:48:52 AM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/branches/openAL/configure
r3906 r3921 6171 6171 ################################### 6172 6172 6173 #-------- -#6174 # SDL_ttf#6175 #-------- -#6176 # checking for SDL_ttf-headers6177 6178 for ac_header in SDL_ttf.h6173 #--------# 6174 # openAL # 6175 #--------# 6176 # checking for openAL-headers 6177 6178 for ac_header in AL/al.h 6179 6179 do 6180 6180 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` … … 6322 6322 6323 6323 else 6324 { { echo "$as_me:$LINENO: error: cannot find openAL header." >&5 6325 echo "$as_me: error: cannot find openAL header." >&2;} 6326 { (exit 1); exit 1; }; } 6327 fi 6328 6329 done 6330 6331 #fi 6332 # checking for openAL-lib 6333 echo "$as_me:$LINENO: checking for main in -lopenal" >&5 6334 echo $ECHO_N "checking for main in -lopenal... $ECHO_C" >&6 6335 if test "${ac_cv_lib_openal_main+set}" = set; then 6336 echo $ECHO_N "(cached) $ECHO_C" >&6 6337 else 6338 ac_check_lib_save_LIBS=$LIBS 6339 LIBS="-lopenal $LIBS" 6340 cat >conftest.$ac_ext <<_ACEOF 6341 /* confdefs.h. */ 6342 _ACEOF 6343 cat confdefs.h >>conftest.$ac_ext 6344 cat >>conftest.$ac_ext <<_ACEOF 6345 /* end confdefs.h. */ 6346 6347 6348 int 6349 main () 6350 { 6351 main (); 6352 ; 6353 return 0; 6354 } 6355 _ACEOF 6356 rm -f conftest.$ac_objext conftest$ac_exeext 6357 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6358 (eval $ac_link) 2>conftest.er1 6359 ac_status=$? 6360 grep -v '^ *+' conftest.er1 >conftest.err 6361 rm -f conftest.er1 6362 cat conftest.err >&5 6363 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6364 (exit $ac_status); } && 6365 { ac_try='test -z "$ac_c_werror_flag" 6366 || test ! -s conftest.err' 6367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6368 (eval $ac_try) 2>&5 6369 ac_status=$? 6370 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6371 (exit $ac_status); }; } && 6372 { ac_try='test -s conftest$ac_exeext' 6373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6374 (eval $ac_try) 2>&5 6375 ac_status=$? 6376 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6377 (exit $ac_status); }; }; then 6378 ac_cv_lib_openal_main=yes 6379 else 6380 echo "$as_me: failed program was:" >&5 6381 sed 's/^/| /' conftest.$ac_ext >&5 6382 6383 ac_cv_lib_openal_main=no 6384 fi 6385 rm -f conftest.err conftest.$ac_objext \ 6386 conftest$ac_exeext conftest.$ac_ext 6387 LIBS=$ac_check_lib_save_LIBS 6388 fi 6389 echo "$as_me:$LINENO: result: $ac_cv_lib_openal_main" >&5 6390 echo "${ECHO_T}$ac_cv_lib_openal_main" >&6 6391 if test $ac_cv_lib_openal_main = yes; then 6392 FOUND_openal=yes 6393 fi 6394 6395 if test x$FOUND_openal = xyes ; then 6396 LIBS="$LIBS -lopenal" 6397 else 6398 echo "------------------" 6399 echo "openal library not found." 6400 echo "please install the openal library, which can be found at http://www.openal.org" 6401 echo "------------------" 6402 exit -1 6403 fi 6404 6405 #---------# 6406 # SDL_ttf # 6407 #---------# 6408 # checking for SDL_ttf-headers 6409 6410 for ac_header in SDL_ttf.h 6411 do 6412 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 6413 if eval "test \"\${$as_ac_Header+set}\" = set"; then 6414 echo "$as_me:$LINENO: checking for $ac_header" >&5 6415 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 6416 if eval "test \"\${$as_ac_Header+set}\" = set"; then 6417 echo $ECHO_N "(cached) $ECHO_C" >&6 6418 fi 6419 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 6420 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 6421 else 6422 # Is the header compilable? 6423 echo "$as_me:$LINENO: checking $ac_header usability" >&5 6424 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 6425 cat >conftest.$ac_ext <<_ACEOF 6426 /* confdefs.h. */ 6427 _ACEOF 6428 cat confdefs.h >>conftest.$ac_ext 6429 cat >>conftest.$ac_ext <<_ACEOF 6430 /* end confdefs.h. */ 6431 $ac_includes_default 6432 #include <$ac_header> 6433 _ACEOF 6434 rm -f conftest.$ac_objext 6435 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6436 (eval $ac_compile) 2>conftest.er1 6437 ac_status=$? 6438 grep -v '^ *+' conftest.er1 >conftest.err 6439 rm -f conftest.er1 6440 cat conftest.err >&5 6441 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6442 (exit $ac_status); } && 6443 { ac_try='test -z "$ac_c_werror_flag" 6444 || test ! -s conftest.err' 6445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6446 (eval $ac_try) 2>&5 6447 ac_status=$? 6448 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6449 (exit $ac_status); }; } && 6450 { ac_try='test -s conftest.$ac_objext' 6451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6452 (eval $ac_try) 2>&5 6453 ac_status=$? 6454 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6455 (exit $ac_status); }; }; then 6456 ac_header_compiler=yes 6457 else 6458 echo "$as_me: failed program was:" >&5 6459 sed 's/^/| /' conftest.$ac_ext >&5 6460 6461 ac_header_compiler=no 6462 fi 6463 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 6464 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 6465 echo "${ECHO_T}$ac_header_compiler" >&6 6466 6467 # Is the header present? 6468 echo "$as_me:$LINENO: checking $ac_header presence" >&5 6469 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 6470 cat >conftest.$ac_ext <<_ACEOF 6471 /* confdefs.h. */ 6472 _ACEOF 6473 cat confdefs.h >>conftest.$ac_ext 6474 cat >>conftest.$ac_ext <<_ACEOF 6475 /* end confdefs.h. */ 6476 #include <$ac_header> 6477 _ACEOF 6478 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 6479 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 6480 ac_status=$? 6481 grep -v '^ *+' conftest.er1 >conftest.err 6482 rm -f conftest.er1 6483 cat conftest.err >&5 6484 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6485 (exit $ac_status); } >/dev/null; then 6486 if test -s conftest.err; then 6487 ac_cpp_err=$ac_c_preproc_warn_flag 6488 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 6489 else 6490 ac_cpp_err= 6491 fi 6492 else 6493 ac_cpp_err=yes 6494 fi 6495 if test -z "$ac_cpp_err"; then 6496 ac_header_preproc=yes 6497 else 6498 echo "$as_me: failed program was:" >&5 6499 sed 's/^/| /' conftest.$ac_ext >&5 6500 6501 ac_header_preproc=no 6502 fi 6503 rm -f conftest.err conftest.$ac_ext 6504 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 6505 echo "${ECHO_T}$ac_header_preproc" >&6 6506 6507 # So? What about this header? 6508 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 6509 yes:no: ) 6510 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 6511 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 6512 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 6513 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 6514 ac_header_preproc=yes 6515 ;; 6516 no:yes:* ) 6517 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 6518 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 6519 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 6520 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 6521 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 6522 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 6523 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 6524 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 6525 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 6526 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 6527 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 6528 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 6529 ( 6530 cat <<\_ASBOX 6531 ## ---------------------------------------------- ## 6532 ## Report this to orxonox-dev at mail.datacore.ch ## 6533 ## ---------------------------------------------- ## 6534 _ASBOX 6535 ) | 6536 sed "s/^/$as_me: WARNING: /" >&2 6537 ;; 6538 esac 6539 echo "$as_me:$LINENO: checking for $ac_header" >&5 6540 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 6541 if eval "test \"\${$as_ac_Header+set}\" = set"; then 6542 echo $ECHO_N "(cached) $ECHO_C" >&6 6543 else 6544 eval "$as_ac_Header=\$ac_header_preproc" 6545 fi 6546 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 6547 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 6548 6549 fi 6550 if test `eval echo '${'$as_ac_Header'}'` = yes; then 6551 cat >>confdefs.h <<_ACEOF 6552 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 6553 _ACEOF 6554 6555 else 6324 6556 { { echo "$as_me:$LINENO: error: cannot find SDL_ttf header." >&5 6325 6557 echo "$as_me: error: cannot find SDL_ttf header." >&2;} … … 6402 6634 exit -1 6403 6635 fi 6636 6404 6637 6405 6638 #-----------#
Note: See TracChangeset
for help on using the changeset viewer.