Changeset 4665 in orxonox.OLD for orxonox/trunk
- Timestamp:
- Jun 23, 2005, 3:04:45 PM (19 years ago)
- Location:
- orxonox/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/configure
r4664 r4665 5672 5672 CPPFLAGS="`sdl-config --cflags` $CPPFLAGS" 5673 5673 5674 for ac_header in SDL /SDL.h5674 for ac_header in SDL.h 5675 5675 do 5676 5676 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` … … 5819 5819 else 5820 5820 5821 for ac_header in SDL .h5821 for ac_header in SDL/SDL.h 5822 5822 do 5823 5823 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` … … 6334 6334 ################################### 6335 6335 6336 #-------- #6337 # openAL#6338 #-------- #6339 # checking for openAL-headers6340 6341 for ac_header in AL/al.h6336 #---------# 6337 # SDL_ttf # 6338 #---------# 6339 # checking for SDL_ttf-headers 6340 6341 for ac_header in SDL/SDL_ttf.h 6342 6342 do 6343 6343 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` … … 6485 6485 6486 6486 else 6487 { { echo "$as_me:$LINENO: error: cannot find openAL header." >&5 6488 echo "$as_me: error: cannot find openAL header." >&2;} 6489 { (exit 1); exit 1; }; } 6490 fi 6491 6492 done 6493 6494 # checking for openAL-lib 6495 echo "$as_me:$LINENO: checking for main in -lopenal" >&5 6496 echo $ECHO_N "checking for main in -lopenal... $ECHO_C" >&6 6497 if test "${ac_cv_lib_openal_main+set}" = set; then 6498 echo $ECHO_N "(cached) $ECHO_C" >&6 6499 else 6500 ac_check_lib_save_LIBS=$LIBS 6501 LIBS="-lopenal $LIBS" 6502 cat >conftest.$ac_ext <<_ACEOF 6503 /* confdefs.h. */ 6504 _ACEOF 6505 cat confdefs.h >>conftest.$ac_ext 6506 cat >>conftest.$ac_ext <<_ACEOF 6507 /* end confdefs.h. */ 6508 6509 6510 int 6511 main () 6512 { 6513 main (); 6514 ; 6515 return 0; 6516 } 6517 _ACEOF 6518 rm -f conftest.$ac_objext conftest$ac_exeext 6519 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6520 (eval $ac_link) 2>conftest.er1 6521 ac_status=$? 6522 grep -v '^ *+' conftest.er1 >conftest.err 6523 rm -f conftest.er1 6524 cat conftest.err >&5 6525 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6526 (exit $ac_status); } && 6527 { ac_try='test -z "$ac_c_werror_flag" 6528 || test ! -s conftest.err' 6529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6530 (eval $ac_try) 2>&5 6531 ac_status=$? 6532 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6533 (exit $ac_status); }; } && 6534 { ac_try='test -s conftest$ac_exeext' 6535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6536 (eval $ac_try) 2>&5 6537 ac_status=$? 6538 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6539 (exit $ac_status); }; }; then 6540 ac_cv_lib_openal_main=yes 6541 else 6542 echo "$as_me: failed program was:" >&5 6543 sed 's/^/| /' conftest.$ac_ext >&5 6544 6545 ac_cv_lib_openal_main=no 6546 fi 6547 rm -f conftest.err conftest.$ac_objext \ 6548 conftest$ac_exeext conftest.$ac_ext 6549 LIBS=$ac_check_lib_save_LIBS 6550 fi 6551 echo "$as_me:$LINENO: result: $ac_cv_lib_openal_main" >&5 6552 echo "${ECHO_T}$ac_cv_lib_openal_main" >&6 6553 if test $ac_cv_lib_openal_main = yes; then 6554 FOUND_openal=yes 6555 fi 6556 6557 if test x$FOUND_openal = xyes ; then 6558 LIBS="$LIBS -lopenal" 6559 else 6560 echo "------------------" 6561 echo "openal library not found." 6562 echo "please install the openal library, which can be found at http://www.openal.org" 6563 echo "------------------" 6564 exit -1 6565 fi 6566 6567 #-----# 6568 # ogg # 6569 #-----# 6570 # checking for ogg-headers 6571 6572 for ac_header in ogg/ogg.h 6487 6488 for ac_header in SDL_ttf.h 6573 6489 do 6574 6490 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` … … 6716 6632 6717 6633 else 6718 { { echo "$as_me:$LINENO: error: cannot find oggheader." >&56719 echo "$as_me: error: cannot find oggheader." >&2;}6634 { { echo "$as_me:$LINENO: error: cannot find SDL_ttf header." >&5 6635 echo "$as_me: error: cannot find SDL_ttf header." >&2;} 6720 6636 { (exit 1); exit 1; }; } 6721 6637 fi … … 6723 6639 done 6724 6640 6725 # checking for ogg-lib 6726 echo "$as_me:$LINENO: checking for main in -logg" >&5 6727 echo $ECHO_N "checking for main in -logg... $ECHO_C" >&6 6728 if test "${ac_cv_lib_ogg_main+set}" = set; then 6641 fi 6642 6643 done 6644 6645 #fi 6646 # checking for SDL_ttf-lib 6647 echo "$as_me:$LINENO: checking for main in -lSDL_ttf" >&5 6648 echo $ECHO_N "checking for main in -lSDL_ttf... $ECHO_C" >&6 6649 if test "${ac_cv_lib_SDL_ttf_main+set}" = set; then 6729 6650 echo $ECHO_N "(cached) $ECHO_C" >&6 6730 6651 else 6731 6652 ac_check_lib_save_LIBS=$LIBS 6732 LIBS="-l ogg$LIBS"6653 LIBS="-lSDL_ttf $LIBS" 6733 6654 cat >conftest.$ac_ext <<_ACEOF 6734 6655 /* confdefs.h. */ … … 6769 6690 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6770 6691 (exit $ac_status); }; }; then 6771 ac_cv_lib_ ogg_main=yes6692 ac_cv_lib_SDL_ttf_main=yes 6772 6693 else 6773 6694 echo "$as_me: failed program was:" >&5 6774 6695 sed 's/^/| /' conftest.$ac_ext >&5 6775 6696 6776 ac_cv_lib_ ogg_main=no6697 ac_cv_lib_SDL_ttf_main=no 6777 6698 fi 6778 6699 rm -f conftest.err conftest.$ac_objext \ … … 6780 6701 LIBS=$ac_check_lib_save_LIBS 6781 6702 fi 6782 echo "$as_me:$LINENO: result: $ac_cv_lib_ ogg_main" >&56783 echo "${ECHO_T}$ac_cv_lib_ ogg_main" >&66784 if test $ac_cv_lib_ ogg_main = yes; then6785 FOUND_ ogg=yes6786 fi 6787 6788 if test x$FOUND_ ogg= xyes ; then6789 LIBS="$LIBS -l ogg"6703 echo "$as_me:$LINENO: result: $ac_cv_lib_SDL_ttf_main" >&5 6704 echo "${ECHO_T}$ac_cv_lib_SDL_ttf_main" >&6 6705 if test $ac_cv_lib_SDL_ttf_main = yes; then 6706 FOUND_SDL_ttf=yes 6707 fi 6708 6709 if test x$FOUND_SDL_ttf = xyes ; then 6710 LIBS="$LIBS -lSDL_ttf" 6790 6711 else 6791 6712 echo "------------------" 6792 echo " ogglibrary not found."6793 echo "please install the ogg library, which can be found at http://www.xiph.org/ogg/vorbis/index.html"6713 echo "SDL_ttf library not found." 6714 echo "please install the SDL_ttf library, which can be found at http://www.libsdl.org/projects/SDL_ttf/" 6794 6715 echo "------------------" 6795 6716 exit -1 6796 6717 fi 6797 6718 6798 #--------# 6799 # vorbis # 6800 #--------# 6801 # checking for vorbis-lib 6802 echo "$as_me:$LINENO: checking for main in -lvorbis" >&5 6803 echo $ECHO_N "checking for main in -lvorbis... $ECHO_C" >&6 6804 if test "${ac_cv_lib_vorbis_main+set}" = set; then 6805 echo $ECHO_N "(cached) $ECHO_C" >&6 6806 else 6807 ac_check_lib_save_LIBS=$LIBS 6808 LIBS="-lvorbis $LIBS" 6809 cat >conftest.$ac_ext <<_ACEOF 6810 /* confdefs.h. */ 6811 _ACEOF 6812 cat confdefs.h >>conftest.$ac_ext 6813 cat >>conftest.$ac_ext <<_ACEOF 6814 /* end confdefs.h. */ 6815 6816 6817 int 6818 main () 6819 { 6820 main (); 6821 ; 6822 return 0; 6823 } 6824 _ACEOF 6825 rm -f conftest.$ac_objext conftest$ac_exeext 6826 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6827 (eval $ac_link) 2>conftest.er1 6828 ac_status=$? 6829 grep -v '^ *+' conftest.er1 >conftest.err 6830 rm -f conftest.er1 6831 cat conftest.err >&5 6832 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6833 (exit $ac_status); } && 6834 { ac_try='test -z "$ac_c_werror_flag" 6835 || test ! -s conftest.err' 6836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6837 (eval $ac_try) 2>&5 6838 ac_status=$? 6839 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6840 (exit $ac_status); }; } && 6841 { ac_try='test -s conftest$ac_exeext' 6842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6843 (eval $ac_try) 2>&5 6844 ac_status=$? 6845 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6846 (exit $ac_status); }; }; then 6847 ac_cv_lib_vorbis_main=yes 6848 else 6849 echo "$as_me: failed program was:" >&5 6850 sed 's/^/| /' conftest.$ac_ext >&5 6851 6852 ac_cv_lib_vorbis_main=no 6853 fi 6854 rm -f conftest.err conftest.$ac_objext \ 6855 conftest$ac_exeext conftest.$ac_ext 6856 LIBS=$ac_check_lib_save_LIBS 6857 fi 6858 echo "$as_me:$LINENO: result: $ac_cv_lib_vorbis_main" >&5 6859 echo "${ECHO_T}$ac_cv_lib_vorbis_main" >&6 6860 if test $ac_cv_lib_vorbis_main = yes; then 6861 FOUND_vorbis=yes 6862 fi 6863 6864 if test x$FOUND_vorbis = xyes ; then 6865 LIBS="$LIBS -lvorbis" 6866 else 6867 echo "------------------" 6868 echo "vorbis library not found." 6869 echo "please install the vorbis library, which can be found at http://www.xiph.org/ogg/vorbis/index.html" 6870 echo "------------------" 6871 exit -1 6872 fi 6873 6874 #------------# 6875 # vorbisfile # 6876 #------------# 6877 # checking for vorbis-headers 6878 6879 for ac_header in vorbis/vorbisfile.h 6719 6720 #-----------# 6721 # SDL_Image # 6722 #-----------# 6723 # checking for SDL_image-headers 6724 6725 for ac_header in SDL_image.h 6880 6726 do 6881 6727 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` … … 7023 6869 7024 6870 else 7025 { { echo "$as_me:$LINENO: error: cannot find vorbisfile header." >&5 7026 echo "$as_me: error: cannot find vorbisfile header." >&2;} 7027 { (exit 1); exit 1; }; } 7028 fi 7029 7030 done 7031 7032 # checking for vorbisfile-lib 7033 echo "$as_me:$LINENO: checking for main in -lvorbisfile" >&5 7034 echo $ECHO_N "checking for main in -lvorbisfile... $ECHO_C" >&6 7035 if test "${ac_cv_lib_vorbisfile_main+set}" = set; then 7036 echo $ECHO_N "(cached) $ECHO_C" >&6 7037 else 7038 ac_check_lib_save_LIBS=$LIBS 7039 LIBS="-lvorbisfile $LIBS" 7040 cat >conftest.$ac_ext <<_ACEOF 7041 /* confdefs.h. */ 7042 _ACEOF 7043 cat confdefs.h >>conftest.$ac_ext 7044 cat >>conftest.$ac_ext <<_ACEOF 7045 /* end confdefs.h. */ 7046 7047 7048 int 7049 main () 7050 { 7051 main (); 7052 ; 7053 return 0; 7054 } 7055 _ACEOF 7056 rm -f conftest.$ac_objext conftest$ac_exeext 7057 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7058 (eval $ac_link) 2>conftest.er1 7059 ac_status=$? 7060 grep -v '^ *+' conftest.er1 >conftest.err 7061 rm -f conftest.er1 7062 cat conftest.err >&5 7063 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7064 (exit $ac_status); } && 7065 { ac_try='test -z "$ac_c_werror_flag" 7066 || test ! -s conftest.err' 7067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7068 (eval $ac_try) 2>&5 7069 ac_status=$? 7070 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7071 (exit $ac_status); }; } && 7072 { ac_try='test -s conftest$ac_exeext' 7073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7074 (eval $ac_try) 2>&5 7075 ac_status=$? 7076 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7077 (exit $ac_status); }; }; then 7078 ac_cv_lib_vorbisfile_main=yes 7079 else 7080 echo "$as_me: failed program was:" >&5 7081 sed 's/^/| /' conftest.$ac_ext >&5 7082 7083 ac_cv_lib_vorbisfile_main=no 7084 fi 7085 rm -f conftest.err conftest.$ac_objext \ 7086 conftest$ac_exeext conftest.$ac_ext 7087 LIBS=$ac_check_lib_save_LIBS 7088 fi 7089 echo "$as_me:$LINENO: result: $ac_cv_lib_vorbisfile_main" >&5 7090 echo "${ECHO_T}$ac_cv_lib_vorbisfile_main" >&6 7091 if test $ac_cv_lib_vorbisfile_main = yes; then 7092 FOUND_vorbisfile=yes 7093 fi 7094 7095 if test x$FOUND_vorbisfile = xyes ; then 7096 LIBS="$LIBS -lvorbisfile" 7097 else 7098 echo "------------------" 7099 echo "vorbisfile library not found." 7100 echo "please install the vorbisfile library, which can be found at http://www.xiph.org/ogg/vorbis/index.html" 7101 echo "------------------" 7102 exit -1 7103 fi 7104 7105 #---------# 7106 # SDL_ttf # 7107 #---------# 7108 # checking for SDL_ttf-headers 7109 7110 for ac_header in SDL/SDL_ttf.h 6871 6872 for ac_header in SDL/SDL_image.h 7111 6873 do 7112 6874 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` … … 7254 7016 7255 7017 else 7256 7257 for ac_header in SDL_ttf.h 7018 { { echo "$as_me:$LINENO: error: sdl_image header not found." >&5 7019 echo "$as_me: error: sdl_image header not found." >&2;} 7020 { (exit 1); exit 1; }; } 7021 fi 7022 7023 done 7024 7025 fi 7026 7027 done 7028 7029 # checking for SDL_image-lib 7030 echo "$as_me:$LINENO: checking for main in -lSDL_image" >&5 7031 echo $ECHO_N "checking for main in -lSDL_image... $ECHO_C" >&6 7032 if test "${ac_cv_lib_SDL_image_main+set}" = set; then 7033 echo $ECHO_N "(cached) $ECHO_C" >&6 7034 else 7035 ac_check_lib_save_LIBS=$LIBS 7036 LIBS="-lSDL_image $LIBS" 7037 cat >conftest.$ac_ext <<_ACEOF 7038 /* confdefs.h. */ 7039 _ACEOF 7040 cat confdefs.h >>conftest.$ac_ext 7041 cat >>conftest.$ac_ext <<_ACEOF 7042 /* end confdefs.h. */ 7043 7044 7045 int 7046 main () 7047 { 7048 main (); 7049 ; 7050 return 0; 7051 } 7052 _ACEOF 7053 rm -f conftest.$ac_objext conftest$ac_exeext 7054 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7055 (eval $ac_link) 2>conftest.er1 7056 ac_status=$? 7057 grep -v '^ *+' conftest.er1 >conftest.err 7058 rm -f conftest.er1 7059 cat conftest.err >&5 7060 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7061 (exit $ac_status); } && 7062 { ac_try='test -z "$ac_c_werror_flag" 7063 || test ! -s conftest.err' 7064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7065 (eval $ac_try) 2>&5 7066 ac_status=$? 7067 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7068 (exit $ac_status); }; } && 7069 { ac_try='test -s conftest$ac_exeext' 7070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7071 (eval $ac_try) 2>&5 7072 ac_status=$? 7073 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7074 (exit $ac_status); }; }; then 7075 ac_cv_lib_SDL_image_main=yes 7076 else 7077 echo "$as_me: failed program was:" >&5 7078 sed 's/^/| /' conftest.$ac_ext >&5 7079 7080 ac_cv_lib_SDL_image_main=no 7081 fi 7082 rm -f conftest.err conftest.$ac_objext \ 7083 conftest$ac_exeext conftest.$ac_ext 7084 LIBS=$ac_check_lib_save_LIBS 7085 fi 7086 echo "$as_me:$LINENO: result: $ac_cv_lib_SDL_image_main" >&5 7087 echo "${ECHO_T}$ac_cv_lib_SDL_image_main" >&6 7088 if test $ac_cv_lib_SDL_image_main = yes; then 7089 FOUND_SDL_image=yes 7090 fi 7091 7092 if test x$FOUND_SDL_image = xyes ; then 7093 LIBS="$LIBS -lSDL_image" 7094 else 7095 echo "------------------" 7096 echo "SDL_image library not found." 7097 echo "please install the SDL_image library, which can be found at http://www.libsdl.org/projects/SDL_image/" 7098 echo "------------------" 7099 exit -1 7100 fi 7101 7102 #--------# 7103 # openAL # 7104 #--------# 7105 # checking for openAL-headers 7106 7107 for ac_header in AL/al.h 7258 7108 do 7259 7109 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` … … 7401 7251 7402 7252 else 7403 { { echo "$as_me:$LINENO: error: cannot find SDL_ttfheader." >&57404 echo "$as_me: error: cannot find SDL_ttfheader." >&2;}7253 { { echo "$as_me:$LINENO: error: cannot find openAL header." >&5 7254 echo "$as_me: error: cannot find openAL header." >&2;} 7405 7255 { (exit 1); exit 1; }; } 7406 7256 fi … … 7408 7258 done 7409 7259 7410 fi 7411 7412 done 7413 7414 #fi 7415 # checking for SDL_ttf-lib 7416 echo "$as_me:$LINENO: checking for main in -lSDL_ttf" >&5 7417 echo $ECHO_N "checking for main in -lSDL_ttf... $ECHO_C" >&6 7418 if test "${ac_cv_lib_SDL_ttf_main+set}" = set; then 7260 # checking for openAL-lib 7261 echo "$as_me:$LINENO: checking for main in -lopenal" >&5 7262 echo $ECHO_N "checking for main in -lopenal... $ECHO_C" >&6 7263 if test "${ac_cv_lib_openal_main+set}" = set; then 7419 7264 echo $ECHO_N "(cached) $ECHO_C" >&6 7420 7265 else 7421 7266 ac_check_lib_save_LIBS=$LIBS 7422 LIBS="-l SDL_ttf$LIBS"7267 LIBS="-lopenal $LIBS" 7423 7268 cat >conftest.$ac_ext <<_ACEOF 7424 7269 /* confdefs.h. */ … … 7459 7304 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7460 7305 (exit $ac_status); }; }; then 7461 ac_cv_lib_ SDL_ttf_main=yes7306 ac_cv_lib_openal_main=yes 7462 7307 else 7463 7308 echo "$as_me: failed program was:" >&5 7464 7309 sed 's/^/| /' conftest.$ac_ext >&5 7465 7310 7466 ac_cv_lib_ SDL_ttf_main=no7311 ac_cv_lib_openal_main=no 7467 7312 fi 7468 7313 rm -f conftest.err conftest.$ac_objext \ … … 7470 7315 LIBS=$ac_check_lib_save_LIBS 7471 7316 fi 7472 echo "$as_me:$LINENO: result: $ac_cv_lib_ SDL_ttf_main" >&57473 echo "${ECHO_T}$ac_cv_lib_ SDL_ttf_main" >&67474 if test $ac_cv_lib_ SDL_ttf_main = yes; then7475 FOUND_ SDL_ttf=yes7476 fi 7477 7478 if test x$FOUND_ SDL_ttf= xyes ; then7479 LIBS="$LIBS -l SDL_ttf"7317 echo "$as_me:$LINENO: result: $ac_cv_lib_openal_main" >&5 7318 echo "${ECHO_T}$ac_cv_lib_openal_main" >&6 7319 if test $ac_cv_lib_openal_main = yes; then 7320 FOUND_openal=yes 7321 fi 7322 7323 if test x$FOUND_openal = xyes ; then 7324 LIBS="$LIBS -lopenal" 7480 7325 else 7481 7326 echo "------------------" 7482 echo " SDL_ttflibrary not found."7483 echo "please install the SDL_ttf library, which can be found at http://www.libsdl.org/projects/SDL_ttf/"7327 echo "openal library not found." 7328 echo "please install the openal library, which can be found at http://www.openal.org" 7484 7329 echo "------------------" 7485 7330 exit -1 7486 7331 fi 7487 7332 7488 7489 #-----------# 7490 # SDL_Image # 7491 #-----------# 7492 # checking for SDL_image-headers 7493 7494 for ac_header in SDL_image.h 7333 #-----# 7334 # ogg # 7335 #-----# 7336 # checking for ogg-headers 7337 7338 for ac_header in ogg/ogg.h 7495 7339 do 7496 7340 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` … … 7638 7482 7639 7483 else 7640 7641 for ac_header in SDL/SDL_image.h 7484 { { echo "$as_me:$LINENO: error: cannot find ogg header." >&5 7485 echo "$as_me: error: cannot find ogg header." >&2;} 7486 { (exit 1); exit 1; }; } 7487 fi 7488 7489 done 7490 7491 # checking for ogg-lib 7492 echo "$as_me:$LINENO: checking for main in -logg" >&5 7493 echo $ECHO_N "checking for main in -logg... $ECHO_C" >&6 7494 if test "${ac_cv_lib_ogg_main+set}" = set; then 7495 echo $ECHO_N "(cached) $ECHO_C" >&6 7496 else 7497 ac_check_lib_save_LIBS=$LIBS 7498 LIBS="-logg $LIBS" 7499 cat >conftest.$ac_ext <<_ACEOF 7500 /* confdefs.h. */ 7501 _ACEOF 7502 cat confdefs.h >>conftest.$ac_ext 7503 cat >>conftest.$ac_ext <<_ACEOF 7504 /* end confdefs.h. */ 7505 7506 7507 int 7508 main () 7509 { 7510 main (); 7511 ; 7512 return 0; 7513 } 7514 _ACEOF 7515 rm -f conftest.$ac_objext conftest$ac_exeext 7516 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7517 (eval $ac_link) 2>conftest.er1 7518 ac_status=$? 7519 grep -v '^ *+' conftest.er1 >conftest.err 7520 rm -f conftest.er1 7521 cat conftest.err >&5 7522 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7523 (exit $ac_status); } && 7524 { ac_try='test -z "$ac_c_werror_flag" 7525 || test ! -s conftest.err' 7526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7527 (eval $ac_try) 2>&5 7528 ac_status=$? 7529 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7530 (exit $ac_status); }; } && 7531 { ac_try='test -s conftest$ac_exeext' 7532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7533 (eval $ac_try) 2>&5 7534 ac_status=$? 7535 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7536 (exit $ac_status); }; }; then 7537 ac_cv_lib_ogg_main=yes 7538 else 7539 echo "$as_me: failed program was:" >&5 7540 sed 's/^/| /' conftest.$ac_ext >&5 7541 7542 ac_cv_lib_ogg_main=no 7543 fi 7544 rm -f conftest.err conftest.$ac_objext \ 7545 conftest$ac_exeext conftest.$ac_ext 7546 LIBS=$ac_check_lib_save_LIBS 7547 fi 7548 echo "$as_me:$LINENO: result: $ac_cv_lib_ogg_main" >&5 7549 echo "${ECHO_T}$ac_cv_lib_ogg_main" >&6 7550 if test $ac_cv_lib_ogg_main = yes; then 7551 FOUND_ogg=yes 7552 fi 7553 7554 if test x$FOUND_ogg = xyes ; then 7555 LIBS="$LIBS -logg" 7556 else 7557 echo "------------------" 7558 echo "ogg library not found." 7559 echo "please install the ogg library, which can be found at http://www.xiph.org/ogg/vorbis/index.html" 7560 echo "------------------" 7561 exit -1 7562 fi 7563 7564 #--------# 7565 # vorbis # 7566 #--------# 7567 # checking for vorbis-lib 7568 echo "$as_me:$LINENO: checking for main in -lvorbis" >&5 7569 echo $ECHO_N "checking for main in -lvorbis... $ECHO_C" >&6 7570 if test "${ac_cv_lib_vorbis_main+set}" = set; then 7571 echo $ECHO_N "(cached) $ECHO_C" >&6 7572 else 7573 ac_check_lib_save_LIBS=$LIBS 7574 LIBS="-lvorbis $LIBS" 7575 cat >conftest.$ac_ext <<_ACEOF 7576 /* confdefs.h. */ 7577 _ACEOF 7578 cat confdefs.h >>conftest.$ac_ext 7579 cat >>conftest.$ac_ext <<_ACEOF 7580 /* end confdefs.h. */ 7581 7582 7583 int 7584 main () 7585 { 7586 main (); 7587 ; 7588 return 0; 7589 } 7590 _ACEOF 7591 rm -f conftest.$ac_objext conftest$ac_exeext 7592 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7593 (eval $ac_link) 2>conftest.er1 7594 ac_status=$? 7595 grep -v '^ *+' conftest.er1 >conftest.err 7596 rm -f conftest.er1 7597 cat conftest.err >&5 7598 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7599 (exit $ac_status); } && 7600 { ac_try='test -z "$ac_c_werror_flag" 7601 || test ! -s conftest.err' 7602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7603 (eval $ac_try) 2>&5 7604 ac_status=$? 7605 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7606 (exit $ac_status); }; } && 7607 { ac_try='test -s conftest$ac_exeext' 7608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7609 (eval $ac_try) 2>&5 7610 ac_status=$? 7611 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7612 (exit $ac_status); }; }; then 7613 ac_cv_lib_vorbis_main=yes 7614 else 7615 echo "$as_me: failed program was:" >&5 7616 sed 's/^/| /' conftest.$ac_ext >&5 7617 7618 ac_cv_lib_vorbis_main=no 7619 fi 7620 rm -f conftest.err conftest.$ac_objext \ 7621 conftest$ac_exeext conftest.$ac_ext 7622 LIBS=$ac_check_lib_save_LIBS 7623 fi 7624 echo "$as_me:$LINENO: result: $ac_cv_lib_vorbis_main" >&5 7625 echo "${ECHO_T}$ac_cv_lib_vorbis_main" >&6 7626 if test $ac_cv_lib_vorbis_main = yes; then 7627 FOUND_vorbis=yes 7628 fi 7629 7630 if test x$FOUND_vorbis = xyes ; then 7631 LIBS="$LIBS -lvorbis" 7632 else 7633 echo "------------------" 7634 echo "vorbis library not found." 7635 echo "please install the vorbis library, which can be found at http://www.xiph.org/ogg/vorbis/index.html" 7636 echo "------------------" 7637 exit -1 7638 fi 7639 7640 #------------# 7641 # vorbisfile # 7642 #------------# 7643 # checking for vorbis-headers 7644 7645 for ac_header in vorbis/vorbisfile.h 7642 7646 do 7643 7647 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` … … 7785 7789 7786 7790 else 7787 { { echo "$as_me:$LINENO: error: sdl_image header not found." >&57788 echo "$as_me: error: sdl_image header not found." >&2;}7791 { { echo "$as_me:$LINENO: error: cannot find vorbisfile header." >&5 7792 echo "$as_me: error: cannot find vorbisfile header." >&2;} 7789 7793 { (exit 1); exit 1; }; } 7790 7794 fi … … 7792 7796 done 7793 7797 7794 fi 7795 7796 done 7797 7798 # checking for SDL_image-lib 7799 echo "$as_me:$LINENO: checking for main in -lSDL_image" >&5 7800 echo $ECHO_N "checking for main in -lSDL_image... $ECHO_C" >&6 7801 if test "${ac_cv_lib_SDL_image_main+set}" = set; then 7798 # checking for vorbisfile-lib 7799 echo "$as_me:$LINENO: checking for main in -lvorbisfile" >&5 7800 echo $ECHO_N "checking for main in -lvorbisfile... $ECHO_C" >&6 7801 if test "${ac_cv_lib_vorbisfile_main+set}" = set; then 7802 7802 echo $ECHO_N "(cached) $ECHO_C" >&6 7803 7803 else 7804 7804 ac_check_lib_save_LIBS=$LIBS 7805 LIBS="-l SDL_image $LIBS"7805 LIBS="-lvorbisfile $LIBS" 7806 7806 cat >conftest.$ac_ext <<_ACEOF 7807 7807 /* confdefs.h. */ … … 7842 7842 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7843 7843 (exit $ac_status); }; }; then 7844 ac_cv_lib_ SDL_image_main=yes7844 ac_cv_lib_vorbisfile_main=yes 7845 7845 else 7846 7846 echo "$as_me: failed program was:" >&5 7847 7847 sed 's/^/| /' conftest.$ac_ext >&5 7848 7848 7849 ac_cv_lib_ SDL_image_main=no7849 ac_cv_lib_vorbisfile_main=no 7850 7850 fi 7851 7851 rm -f conftest.err conftest.$ac_objext \ … … 7853 7853 LIBS=$ac_check_lib_save_LIBS 7854 7854 fi 7855 echo "$as_me:$LINENO: result: $ac_cv_lib_ SDL_image_main" >&57856 echo "${ECHO_T}$ac_cv_lib_ SDL_image_main" >&67857 if test $ac_cv_lib_ SDL_image_main = yes; then7858 FOUND_ SDL_image=yes7859 fi 7860 7861 if test x$FOUND_SDL_image = xyes ; then7862 LIBS="$LIBS -lSDL_image"7863 else7864 echo "------------------"7865 echo "SDL_image library not found."7866 echo "please install the SDL_image library, which can be found at http://www.libsdl.org/projects/SDL_image/"7867 echo "------------------"7868 exit -17869 fi7855 echo "$as_me:$LINENO: result: $ac_cv_lib_vorbisfile_main" >&5 7856 echo "${ECHO_T}$ac_cv_lib_vorbisfile_main" >&6 7857 if test $ac_cv_lib_vorbisfile_main = yes; then 7858 FOUND_vorbisfile=yes 7859 fi 7860 7861 if test x$FOUND_vorbisfile = xyes ; then 7862 LIBS="$LIBS -lvorbisfile" 7863 else 7864 echo "------------------" 7865 echo "vorbisfile library not found." 7866 echo "please install the vorbisfile library, which can be found at http://www.xiph.org/ogg/vorbis/index.html" 7867 echo "------------------" 7868 exit -1 7869 fi 7870 7870 7871 7871 #-----# -
orxonox/trunk/configure.ac
r4664 r4665 334 334 335 335 CPPFLAGS="`sdl-config --cflags` $CPPFLAGS" 336 AC_CHECK_HEADERS([SDL /SDL.h] ,,337 [AC_CHECK_HEADERS([SDL .h] ,,AC_MSG_ERROR([cannot find SDL header. please download from libsdl.org])]))336 AC_CHECK_HEADERS([SDL.h] ,, 337 [AC_CHECK_HEADERS([SDL/SDL.h] ,,AC_MSG_ERROR([cannot find SDL header. please download from libsdl.org])])) 338 338 339 339 LIBS="`sdl-config --libs` $LIBS" … … 389 389 ## CHECKING FOR HEADERS AND LIBS ## 390 390 ################################### 391 392 #--------#393 # openAL #394 #--------#395 # checking for openAL-headers396 AC_CHECK_HEADERS([AL/al.h] ,,397 [AC_MSG_ERROR([cannot find openAL header.])])398 # checking for openAL-lib399 AC_CHECK_LIB([openal], [main], [FOUND_openal=yes])400 if test x$FOUND_openal = xyes ; then401 LIBS="$LIBS -lopenal"402 else403 echo "------------------"404 echo "openal library not found."405 echo "please install the openal library, which can be found at http://www.openal.org"406 echo "------------------"407 exit -1408 fi409 410 #-----#411 # ogg #412 #-----#413 # checking for ogg-headers414 AC_CHECK_HEADERS([ogg/ogg.h] ,,415 [AC_MSG_ERROR([cannot find ogg header.])])416 # checking for ogg-lib417 AC_CHECK_LIB([ogg], [main], [FOUND_ogg=yes])418 if test x$FOUND_ogg = xyes ; then419 LIBS="$LIBS -logg"420 else421 echo "------------------"422 echo "ogg library not found."423 echo "please install the ogg library, which can be found at http://www.xiph.org/ogg/vorbis/index.html"424 echo "------------------"425 exit -1426 fi427 428 #--------#429 # vorbis #430 #--------#431 # checking for vorbis-lib432 AC_CHECK_LIB([vorbis], [main], [FOUND_vorbis=yes])433 if test x$FOUND_vorbis = xyes ; then434 LIBS="$LIBS -lvorbis"435 else436 echo "------------------"437 echo "vorbis library not found."438 echo "please install the vorbis library, which can be found at http://www.xiph.org/ogg/vorbis/index.html"439 echo "------------------"440 exit -1441 fi442 443 #------------#444 # vorbisfile #445 #------------#446 # checking for vorbis-headers447 AC_CHECK_HEADERS([vorbis/vorbisfile.h] ,,448 [AC_MSG_ERROR([cannot find vorbisfile header.])])449 # checking for vorbisfile-lib450 AC_CHECK_LIB([vorbisfile], [main], [FOUND_vorbisfile=yes])451 if test x$FOUND_vorbisfile = xyes ; then452 LIBS="$LIBS -lvorbisfile"453 else454 echo "------------------"455 echo "vorbisfile library not found."456 echo "please install the vorbisfile library, which can be found at http://www.xiph.org/ogg/vorbis/index.html"457 echo "------------------"458 exit -1459 fi460 391 461 392 #---------# … … 496 427 exit -1 497 428 fi 429 430 #--------# 431 # openAL # 432 #--------# 433 # checking for openAL-headers 434 AC_CHECK_HEADERS([AL/al.h] ,, 435 [AC_MSG_ERROR([cannot find openAL header.])]) 436 # checking for openAL-lib 437 AC_CHECK_LIB([openal], [main], [FOUND_openal=yes]) 438 if test x$FOUND_openal = xyes ; then 439 LIBS="$LIBS -lopenal" 440 else 441 echo "------------------" 442 echo "openal library not found." 443 echo "please install the openal library, which can be found at http://www.openal.org" 444 echo "------------------" 445 exit -1 446 fi 447 448 #-----# 449 # ogg # 450 #-----# 451 # checking for ogg-headers 452 AC_CHECK_HEADERS([ogg/ogg.h] ,, 453 [AC_MSG_ERROR([cannot find ogg header.])]) 454 # checking for ogg-lib 455 AC_CHECK_LIB([ogg], [main], [FOUND_ogg=yes]) 456 if test x$FOUND_ogg = xyes ; then 457 LIBS="$LIBS -logg" 458 else 459 echo "------------------" 460 echo "ogg library not found." 461 echo "please install the ogg library, which can be found at http://www.xiph.org/ogg/vorbis/index.html" 462 echo "------------------" 463 exit -1 464 fi 465 466 #--------# 467 # vorbis # 468 #--------# 469 # checking for vorbis-lib 470 AC_CHECK_LIB([vorbis], [main], [FOUND_vorbis=yes]) 471 if test x$FOUND_vorbis = xyes ; then 472 LIBS="$LIBS -lvorbis" 473 else 474 echo "------------------" 475 echo "vorbis library not found." 476 echo "please install the vorbis library, which can be found at http://www.xiph.org/ogg/vorbis/index.html" 477 echo "------------------" 478 exit -1 479 fi 480 481 #------------# 482 # vorbisfile # 483 #------------# 484 # checking for vorbis-headers 485 AC_CHECK_HEADERS([vorbis/vorbisfile.h] ,, 486 [AC_MSG_ERROR([cannot find vorbisfile header.])]) 487 # checking for vorbisfile-lib 488 AC_CHECK_LIB([vorbisfile], [main], [FOUND_vorbisfile=yes]) 489 if test x$FOUND_vorbisfile = xyes ; then 490 LIBS="$LIBS -lvorbisfile" 491 else 492 echo "------------------" 493 echo "vorbisfile library not found." 494 echo "please install the vorbisfile library, which can be found at http://www.xiph.org/ogg/vorbis/index.html" 495 echo "------------------" 496 exit -1 497 fi 498 498 499 499 #-----#
Note: See TracChangeset
for help on using the changeset viewer.