- Timestamp:
- Jun 25, 2005, 11:41:14 AM (19 years ago)
- Location:
- orxonox/trunk
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/configure
r4672 r4697 1602 1602 fi 1603 1603 1604 if mkdir -p -- version . >/dev/null 2>&1 && test ! -d ./--version; then1604 if mkdir -p -- . 2>/dev/null; then 1605 1605 # Keeping the `.' argument allows $(mkdir_p) to be used without 1606 1606 # argument. Indeed, we sometimes output rules like … … 1615 1615 # directories to create, and then abort because `.' already 1616 1616 # exists. 1617 for d in ./-p ./-- version;1617 for d in ./-p ./--; 1618 1618 do 1619 1619 test -d $d && rmdir $d … … 2521 2521 for i in 1 2 3 4 5 6; do 2522 2522 echo '#include "conftst'$i'.h"' >> sub/conftest.c 2523 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 2524 # Solaris 8's {/usr,}/bin/sh. 2525 touch sub/conftst$i.h 2523 : > sub/conftst$i.h 2526 2524 done 2527 2525 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf … … 2551 2549 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 2552 2550 # icc doesn't choke on unknown options, it will just issue warnings 2553 # or remarks (even with -Werror). So we grep stderr for any message 2554 # that says an option was ignored or not supported. 2555 # When given -MP, icc 7.0 and 7.1 complain thusly: 2556 # icc: Command line warning: ignoring option '-M'; no argument required 2557 # The diagnosis changed in icc 8.0: 2558 # icc: Command line remark: option '-MP' not supported 2559 if (grep 'ignoring option' conftest.err || 2560 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 2551 # (even with -Werror). So we grep stderr for any message 2552 # that says an option was ignored. 2553 if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else 2561 2554 am_cv_CXX_dependencies_compiler_type=$depmode 2562 2555 break … … 3439 3432 for i in 1 2 3 4 5 6; do 3440 3433 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3441 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 3442 # Solaris 8's {/usr,}/bin/sh. 3443 touch sub/conftst$i.h 3434 : > sub/conftst$i.h 3444 3435 done 3445 3436 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf … … 3469 3460 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3470 3461 # icc doesn't choke on unknown options, it will just issue warnings 3471 # or remarks (even with -Werror). So we grep stderr for any message 3472 # that says an option was ignored or not supported. 3473 # When given -MP, icc 7.0 and 7.1 complain thusly: 3474 # icc: Command line warning: ignoring option '-M'; no argument required 3475 # The diagnosis changed in icc 8.0: 3476 # icc: Command line remark: option '-MP' not supported 3477 if (grep 'ignoring option' conftest.err || 3478 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 3462 # (even with -Werror). So we grep stderr for any message 3463 # that says an option was ignored. 3464 if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else 3479 3465 am_cv_CC_dependencies_compiler_type=$depmode 3480 3466 break … … 4284 4270 MWINDOWS="-mwindows" 4285 4271 4286 # checking gl header 4287 #done before loop 4288 4289 # checking gl header 4290 # On IRIX 5.3, sys/types and inttypes.h are conflicting. 4272 4273 4274 # checking for mingw32 4275 echo "$as_me:$LINENO: checking for main in -lmingw32" >&5 4276 echo $ECHO_N "checking for main in -lmingw32... $ECHO_C" >&6 4277 if test "${ac_cv_lib_mingw32_main+set}" = set; then 4278 echo $ECHO_N "(cached) $ECHO_C" >&6 4279 else 4280 ac_check_lib_save_LIBS=$LIBS 4281 LIBS="-lmingw32 $LIBS" 4282 cat >conftest.$ac_ext <<_ACEOF 4283 /* confdefs.h. */ 4284 _ACEOF 4285 cat confdefs.h >>conftest.$ac_ext 4286 cat >>conftest.$ac_ext <<_ACEOF 4287 /* end confdefs.h. */ 4288 4289 4290 int 4291 main () 4292 { 4293 main (); 4294 ; 4295 return 0; 4296 } 4297 _ACEOF 4298 rm -f conftest.$ac_objext conftest$ac_exeext 4299 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4300 (eval $ac_link) 2>conftest.er1 4301 ac_status=$? 4302 grep -v '^ *+' conftest.er1 >conftest.err 4303 rm -f conftest.er1 4304 cat conftest.err >&5 4305 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4306 (exit $ac_status); } && 4307 { ac_try='test -z "$ac_c_werror_flag" 4308 || test ! -s conftest.err' 4309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4310 (eval $ac_try) 2>&5 4311 ac_status=$? 4312 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4313 (exit $ac_status); }; } && 4314 { ac_try='test -s conftest$ac_exeext' 4315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4316 (eval $ac_try) 2>&5 4317 ac_status=$? 4318 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4319 (exit $ac_status); }; }; then 4320 ac_cv_lib_mingw32_main=yes 4321 else 4322 echo "$as_me: failed program was:" >&5 4323 sed 's/^/| /' conftest.$ac_ext >&5 4324 4325 ac_cv_lib_mingw32_main=no 4326 fi 4327 rm -f conftest.err conftest.$ac_objext \ 4328 conftest$ac_exeext conftest.$ac_ext 4329 LIBS=$ac_check_lib_save_LIBS 4330 fi 4331 echo "$as_me:$LINENO: result: $ac_cv_lib_mingw32_main" >&5 4332 echo "${ECHO_T}$ac_cv_lib_mingw32_main" >&6 4333 if test $ac_cv_lib_mingw32_main = yes; then 4334 FOUND_mingw32=yes 4335 fi 4336 4337 if test x$FOUND_mingw32 = xyes; then 4338 LIBS="$LIBS -lmingw32" 4339 fi 4340 4341 #-----------# 4342 # SDL (win) # 4343 #-----------# 4344 # checking for SDL-headers 4345 # On IRIX 5.3, sys/types and inttypes.h are conflicting. 4291 4346 4292 4347 … … 4361 4416 4362 4417 4363 for ac_header in GL/gl.h4418 for ac_header in SDL/SDL.h 4364 4419 do 4365 4420 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` … … 4507 4562 4508 4563 else 4509 { { echo "$as_me:$LINENO: error: cannot find openglheaders" >&54510 echo "$as_me: error: cannot find openglheaders" >&2;}4564 { { echo "$as_me:$LINENO: error: cannot find SDL headers" >&5 4565 echo "$as_me: error: cannot find SDL headers" >&2;} 4511 4566 { (exit 1); exit 1; }; } 4512 4567 fi … … 4514 4569 done 4515 4570 4516 # checking for Windows openGl library 4517 echo "$as_me:$LINENO: checking for main in -lopengl32" >&5 4518 echo $ECHO_N "checking for main in -lopengl32... $ECHO_C" >&6 4519 if test "${ac_cv_lib_opengl32_main+set}" = set; then 4571 4572 #checking for libSDL 4573 echo "$as_me:$LINENO: checking for main in -lsdlmain" >&5 4574 echo $ECHO_N "checking for main in -lsdlmain... $ECHO_C" >&6 4575 if test "${ac_cv_lib_sdlmain_main+set}" = set; then 4520 4576 echo $ECHO_N "(cached) $ECHO_C" >&6 4521 4577 else 4522 4578 ac_check_lib_save_LIBS=$LIBS 4523 LIBS="-l opengl32$LIBS"4579 LIBS="-lsdlmain $LIBS" 4524 4580 cat >conftest.$ac_ext <<_ACEOF 4525 4581 /* confdefs.h. */ … … 4560 4616 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4561 4617 (exit $ac_status); }; }; then 4562 ac_cv_lib_ opengl32_main=yes4618 ac_cv_lib_sdlmain_main=yes 4563 4619 else 4564 4620 echo "$as_me: failed program was:" >&5 4565 4621 sed 's/^/| /' conftest.$ac_ext >&5 4566 4622 4567 ac_cv_lib_ opengl32_main=no4623 ac_cv_lib_sdlmain_main=no 4568 4624 fi 4569 4625 rm -f conftest.err conftest.$ac_objext \ … … 4571 4627 LIBS=$ac_check_lib_save_LIBS 4572 4628 fi 4573 echo "$as_me:$LINENO: result: $ac_cv_lib_opengl32_main" >&5 4574 echo "${ECHO_T}$ac_cv_lib_opengl32_main" >&6 4575 if test $ac_cv_lib_opengl32_main = yes; then 4576 FOUND_opengl32=yes 4577 else 4578 "gl/gl.h" 4579 fi 4580 4581 if test x$FOUND_opengl32 = xyes ; then 4582 LIBS="$LIBS -lopengl32" 4629 echo "$as_me:$LINENO: result: $ac_cv_lib_sdlmain_main" >&5 4630 echo "${ECHO_T}$ac_cv_lib_sdlmain_main" >&6 4631 if test $ac_cv_lib_sdlmain_main = yes; then 4632 FOUND_sdlmain=yes 4633 fi 4634 4635 if test x$FOUND_sdlmain = xyes ; then 4636 LIBS="$LIBS -lsdlmain" 4583 4637 else 4584 4585 echo "openglnot found."4586 echo "please install the opengl package which can be found at http://www.opengl.org"4587 4588 exit -14638 echo "------------------" 4639 echo "SDL library not found." 4640 echo "please install the SDL library, which can be found at http://www.libsdl.org" 4641 echo "------------------" 4642 exit 1 4589 4643 fi 4590 4591 # cheking for GLU-header 4592 4593 for ac_header in GL/glu.h 4644 echo "$as_me:$LINENO: checking for main in -lsdl" >&5 4645 echo $ECHO_N "checking for main in -lsdl... $ECHO_C" >&6 4646 if test "${ac_cv_lib_sdl_main+set}" = set; then 4647 echo $ECHO_N "(cached) $ECHO_C" >&6 4648 else 4649 ac_check_lib_save_LIBS=$LIBS 4650 LIBS="-lsdl $LIBS" 4651 cat >conftest.$ac_ext <<_ACEOF 4652 /* confdefs.h. */ 4653 _ACEOF 4654 cat confdefs.h >>conftest.$ac_ext 4655 cat >>conftest.$ac_ext <<_ACEOF 4656 /* end confdefs.h. */ 4657 4658 4659 int 4660 main () 4661 { 4662 main (); 4663 ; 4664 return 0; 4665 } 4666 _ACEOF 4667 rm -f conftest.$ac_objext conftest$ac_exeext 4668 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4669 (eval $ac_link) 2>conftest.er1 4670 ac_status=$? 4671 grep -v '^ *+' conftest.er1 >conftest.err 4672 rm -f conftest.er1 4673 cat conftest.err >&5 4674 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4675 (exit $ac_status); } && 4676 { ac_try='test -z "$ac_c_werror_flag" 4677 || test ! -s conftest.err' 4678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4679 (eval $ac_try) 2>&5 4680 ac_status=$? 4681 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4682 (exit $ac_status); }; } && 4683 { ac_try='test -s conftest$ac_exeext' 4684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4685 (eval $ac_try) 2>&5 4686 ac_status=$? 4687 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4688 (exit $ac_status); }; }; then 4689 ac_cv_lib_sdl_main=yes 4690 else 4691 echo "$as_me: failed program was:" >&5 4692 sed 's/^/| /' conftest.$ac_ext >&5 4693 4694 ac_cv_lib_sdl_main=no 4695 fi 4696 rm -f conftest.err conftest.$ac_objext \ 4697 conftest$ac_exeext conftest.$ac_ext 4698 LIBS=$ac_check_lib_save_LIBS 4699 fi 4700 echo "$as_me:$LINENO: result: $ac_cv_lib_sdl_main" >&5 4701 echo "${ECHO_T}$ac_cv_lib_sdl_main" >&6 4702 if test $ac_cv_lib_sdl_main = yes; then 4703 FOUND_sdl=yes 4704 fi 4705 4706 if test x$FOUND_sdl = xyes ; then 4707 LIBS="$LIBS -lsdl" 4708 else 4709 echo "------------------" 4710 echo "SDL library not found." 4711 echo "please install the SDL library, which can be found at http://www.libsdl.org" 4712 echo "------------------" 4713 exit -1 4714 fi 4715 4716 #---------------# 4717 # open-GL (win) # 4718 #---------------# 4719 # checking gl header 4720 4721 for ac_header in GL/gl.h 4594 4722 do 4595 4723 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` … … 4744 4872 done 4745 4873 4746 4747 # checking for libGLU 4748 echo "$as_me:$LINENO: checking for main in -lglu32" >&5 4749 echo $ECHO_N "checking for main in -lglu32... $ECHO_C" >&6 4750 if test "${ac_cv_lib_glu32_main+set}" = set; then 4874 # checking for Windows openGl library 4875 echo "$as_me:$LINENO: checking for main in -lopengl32" >&5 4876 echo $ECHO_N "checking for main in -lopengl32... $ECHO_C" >&6 4877 if test "${ac_cv_lib_opengl32_main+set}" = set; then 4751 4878 echo $ECHO_N "(cached) $ECHO_C" >&6 4752 4879 else 4753 4880 ac_check_lib_save_LIBS=$LIBS 4754 LIBS="-l glu32 $LIBS"4881 LIBS="-lopengl32 $LIBS" 4755 4882 cat >conftest.$ac_ext <<_ACEOF 4756 4883 /* confdefs.h. */ … … 4791 4918 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4792 4919 (exit $ac_status); }; }; then 4793 ac_cv_lib_ glu32_main=yes4920 ac_cv_lib_opengl32_main=yes 4794 4921 else 4795 4922 echo "$as_me: failed program was:" >&5 4796 4923 sed 's/^/| /' conftest.$ac_ext >&5 4797 4924 4798 ac_cv_lib_ glu32_main=no4925 ac_cv_lib_opengl32_main=no 4799 4926 fi 4800 4927 rm -f conftest.err conftest.$ac_objext \ … … 4802 4929 LIBS=$ac_check_lib_save_LIBS 4803 4930 fi 4804 echo "$as_me:$LINENO: result: $ac_cv_lib_glu32_main" >&5 4805 echo "${ECHO_T}$ac_cv_lib_glu32_main" >&6 4806 if test $ac_cv_lib_glu32_main = yes; then 4807 FOUND_glu32=yes 4808 fi 4809 4810 if test x$FOUND_glu32 = xyes ; then 4811 LIBS="$LIBS -lGLU32" 4931 echo "$as_me:$LINENO: result: $ac_cv_lib_opengl32_main" >&5 4932 echo "${ECHO_T}$ac_cv_lib_opengl32_main" >&6 4933 if test $ac_cv_lib_opengl32_main = yes; then 4934 FOUND_opengl32=yes 4935 else 4936 "gl/gl.h" 4937 fi 4938 4939 if test x$FOUND_opengl32 = xyes ; then 4940 LIBS="$LIBS -lopengl32" 4812 4941 else 4813 4942 echo "------------------" 4814 echo " GLU librarynot found."4815 echo "please install the GLU library, that should come with openGL,which can be found at http://www.opengl.org"4943 echo "opengl not found." 4944 echo "please install the opengl package which can be found at http://www.opengl.org" 4816 4945 echo "------------------" 4817 4946 exit -1 4818 4947 fi 4819 4948 4820 # checking for mingw32 4821 echo "$as_me:$LINENO: checking for main in -lmingw32" >&5 4822 echo $ECHO_N "checking for main in -lmingw32... $ECHO_C" >&6 4823 if test "${ac_cv_lib_mingw32_main+set}" = set; then 4824 echo $ECHO_N "(cached) $ECHO_C" >&6 4825 else 4826 ac_check_lib_save_LIBS=$LIBS 4827 LIBS="-lmingw32 $LIBS" 4828 cat >conftest.$ac_ext <<_ACEOF 4829 /* confdefs.h. */ 4830 _ACEOF 4831 cat confdefs.h >>conftest.$ac_ext 4832 cat >>conftest.$ac_ext <<_ACEOF 4833 /* end confdefs.h. */ 4834 4835 4836 int 4837 main () 4838 { 4839 main (); 4840 ; 4841 return 0; 4842 } 4843 _ACEOF 4844 rm -f conftest.$ac_objext conftest$ac_exeext 4845 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4846 (eval $ac_link) 2>conftest.er1 4847 ac_status=$? 4848 grep -v '^ *+' conftest.er1 >conftest.err 4849 rm -f conftest.er1 4850 cat conftest.err >&5 4851 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4852 (exit $ac_status); } && 4853 { ac_try='test -z "$ac_c_werror_flag" 4854 || test ! -s conftest.err' 4855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4856 (eval $ac_try) 2>&5 4857 ac_status=$? 4858 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4859 (exit $ac_status); }; } && 4860 { ac_try='test -s conftest$ac_exeext' 4861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4862 (eval $ac_try) 2>&5 4863 ac_status=$? 4864 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4865 (exit $ac_status); }; }; then 4866 ac_cv_lib_mingw32_main=yes 4867 else 4868 echo "$as_me: failed program was:" >&5 4869 sed 's/^/| /' conftest.$ac_ext >&5 4870 4871 ac_cv_lib_mingw32_main=no 4872 fi 4873 rm -f conftest.err conftest.$ac_objext \ 4874 conftest$ac_exeext conftest.$ac_ext 4875 LIBS=$ac_check_lib_save_LIBS 4876 fi 4877 echo "$as_me:$LINENO: result: $ac_cv_lib_mingw32_main" >&5 4878 echo "${ECHO_T}$ac_cv_lib_mingw32_main" >&6 4879 if test $ac_cv_lib_mingw32_main = yes; then 4880 FOUND_mingw32=yes 4881 fi 4882 4883 if test x$FOUND_mingw32 = xyes; then 4884 LIBS="$LIBS -lmingw32" 4885 fi 4886 # checking for SDL-headers 4887 4888 for ac_header in SDL/SDL.h 4949 # cheking for GLU-header 4950 4951 for ac_header in GL/glu.h 4889 4952 do 4890 4953 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` … … 5032 5095 5033 5096 else 5034 { { echo "$as_me:$LINENO: error: cannot find SDLheaders" >&55035 echo "$as_me: error: cannot find SDLheaders" >&2;}5097 { { echo "$as_me:$LINENO: error: cannot find opengl headers" >&5 5098 echo "$as_me: error: cannot find opengl headers" >&2;} 5036 5099 { (exit 1); exit 1; }; } 5037 5100 fi … … 5040 5103 5041 5104 5042 # checking for libSDL5043 echo "$as_me:$LINENO: checking for main in -l sdlmain" >&55044 echo $ECHO_N "checking for main in -l sdlmain... $ECHO_C" >&65045 if test "${ac_cv_lib_ sdlmain_main+set}" = set; then5105 # checking for libGLU 5106 echo "$as_me:$LINENO: checking for main in -lglu32" >&5 5107 echo $ECHO_N "checking for main in -lglu32... $ECHO_C" >&6 5108 if test "${ac_cv_lib_glu32_main+set}" = set; then 5046 5109 echo $ECHO_N "(cached) $ECHO_C" >&6 5047 5110 else 5048 5111 ac_check_lib_save_LIBS=$LIBS 5049 LIBS="-l sdlmain$LIBS"5112 LIBS="-lglu32 $LIBS" 5050 5113 cat >conftest.$ac_ext <<_ACEOF 5051 5114 /* confdefs.h. */ … … 5086 5149 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5087 5150 (exit $ac_status); }; }; then 5088 ac_cv_lib_ sdlmain_main=yes5151 ac_cv_lib_glu32_main=yes 5089 5152 else 5090 5153 echo "$as_me: failed program was:" >&5 5091 5154 sed 's/^/| /' conftest.$ac_ext >&5 5092 5155 5093 ac_cv_lib_ sdlmain_main=no5156 ac_cv_lib_glu32_main=no 5094 5157 fi 5095 5158 rm -f conftest.err conftest.$ac_objext \ … … 5097 5160 LIBS=$ac_check_lib_save_LIBS 5098 5161 fi 5099 echo "$as_me:$LINENO: result: $ac_cv_lib_ sdlmain_main" >&55100 echo "${ECHO_T}$ac_cv_lib_ sdlmain_main" >&65101 if test $ac_cv_lib_ sdlmain_main = yes; then5102 FOUND_ sdlmain=yes5103 fi 5104 5105 if test x$FOUND_ sdlmain= xyes ; then5106 LIBS="$LIBS -lsdlmain"5162 echo "$as_me:$LINENO: result: $ac_cv_lib_glu32_main" >&5 5163 echo "${ECHO_T}$ac_cv_lib_glu32_main" >&6 5164 if test $ac_cv_lib_glu32_main = yes; then 5165 FOUND_glu32=yes 5166 fi 5167 5168 if test x$FOUND_glu32 = xyes ; then 5169 LIBS="$LIBS -lGLU32" 5107 5170 else 5108 echo "------------------"5109 echo "SDLlibrary not found."5110 echo "please install the SDL library, which can be found at http://www.libsdl.org"5111 echo "------------------"5112 exit15171 echo "------------------" 5172 echo "GLU library not found." 5173 echo "please install the GLU library, that should come with openGL, which can be found at http://www.opengl.org" 5174 echo "------------------" 5175 exit -1 5113 5176 fi 5114 echo "$as_me:$LINENO: checking for main in -lsdl" >&5 5115 echo $ECHO_N "checking for main in -lsdl... $ECHO_C" >&6 5116 if test "${ac_cv_lib_sdl_main+set}" = set; then 5117 echo $ECHO_N "(cached) $ECHO_C" >&6 5118 else 5119 ac_check_lib_save_LIBS=$LIBS 5120 LIBS="-lsdl $LIBS" 5121 cat >conftest.$ac_ext <<_ACEOF 5122 /* confdefs.h. */ 5123 _ACEOF 5124 cat confdefs.h >>conftest.$ac_ext 5125 cat >>conftest.$ac_ext <<_ACEOF 5126 /* end confdefs.h. */ 5127 5128 5129 int 5130 main () 5131 { 5132 main (); 5133 ; 5134 return 0; 5135 } 5136 _ACEOF 5137 rm -f conftest.$ac_objext conftest$ac_exeext 5138 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5139 (eval $ac_link) 2>conftest.er1 5140 ac_status=$? 5141 grep -v '^ *+' conftest.er1 >conftest.err 5142 rm -f conftest.er1 5143 cat conftest.err >&5 5144 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5145 (exit $ac_status); } && 5146 { ac_try='test -z "$ac_c_werror_flag" 5147 || test ! -s conftest.err' 5148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5149 (eval $ac_try) 2>&5 5150 ac_status=$? 5151 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5152 (exit $ac_status); }; } && 5153 { ac_try='test -s conftest$ac_exeext' 5154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5155 (eval $ac_try) 2>&5 5156 ac_status=$? 5157 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5158 (exit $ac_status); }; }; then 5159 ac_cv_lib_sdl_main=yes 5160 else 5161 echo "$as_me: failed program was:" >&5 5162 sed 's/^/| /' conftest.$ac_ext >&5 5163 5164 ac_cv_lib_sdl_main=no 5165 fi 5166 rm -f conftest.err conftest.$ac_objext \ 5167 conftest$ac_exeext conftest.$ac_ext 5168 LIBS=$ac_check_lib_save_LIBS 5169 fi 5170 echo "$as_me:$LINENO: result: $ac_cv_lib_sdl_main" >&5 5171 echo "${ECHO_T}$ac_cv_lib_sdl_main" >&6 5172 if test $ac_cv_lib_sdl_main = yes; then 5173 FOUND_sdl=yes 5174 fi 5175 5176 if test x$FOUND_sdl = xyes ; then 5177 LIBS="$LIBS -lsdl" 5178 else 5179 echo "------------------" 5180 echo "SDL library not found." 5181 echo "please install the SDL library, which can be found at http://www.libsdl.org" 5182 echo "------------------" 5183 exit -1 5184 fi 5185 5186 ;; 5187 #-------# 5188 # LINUX # 5189 #-------# 5190 *-*-linux*) 5191 echo "Linux detected" 5192 5193 Linux="yes" 5194 5195 CPPFLAGS="-I/usr/X11R6/include -I/usr/include" 5196 LDFLAGS="-L/usr/lib/opengl/xorg-x11/lib -L/usr/Mesa-6.0.1/lib -L/usr/X11R6/lib $LDFLAGS" 5197 # checking gl header 5198 5199 for ac_header in GL/gl.h 5177 5178 #--------# 5179 # openAL # 5180 #--------# 5181 # checking for openAL-headers 5182 5183 for ac_header in AL/al.h 5200 5184 do 5201 5185 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` … … 5343 5327 5344 5328 else 5345 { { echo "$as_me:$LINENO: error: cannot find open gl headers" >&55346 echo "$as_me: error: cannot find open gl headers" >&2;}5329 { { echo "$as_me:$LINENO: error: cannot find openAL header." >&5 5330 echo "$as_me: error: cannot find openAL header." >&2;} 5347 5331 { (exit 1); exit 1; }; } 5348 5332 fi … … 5350 5334 done 5351 5335 5352 5353 # checking for Unix GL 5354 echo "$as_me:$LINENO: checking for glLoadIdentity in -lGL" >&5 5355 echo $ECHO_N "checking for glLoadIdentity in -lGL... $ECHO_C" >&6 5356 if test "${ac_cv_lib_GL_glLoadIdentity+set}" = set; then 5336 # checking for openAL-lib 5337 echo "$as_me:$LINENO: checking for main in -lOpenAL32" >&5 5338 echo $ECHO_N "checking for main in -lOpenAL32... $ECHO_C" >&6 5339 if test "${ac_cv_lib_OpenAL32_main+set}" = set; then 5357 5340 echo $ECHO_N "(cached) $ECHO_C" >&6 5358 5341 else 5359 5342 ac_check_lib_save_LIBS=$LIBS 5360 LIBS="-l GL$LIBS"5343 LIBS="-lOpenAL32 $LIBS" 5361 5344 cat >conftest.$ac_ext <<_ACEOF 5362 5345 /* confdefs.h. */ … … 5366 5349 /* end confdefs.h. */ 5367 5350 5368 /* Override any gcc2 internal prototype to avoid an error. */ 5369 #ifdef __cplusplus 5370 extern "C" 5371 #endif 5372 /* We use char because int might match the return type of a gcc2 5373 builtin and then its argument prototype would still apply. */ 5374 char glLoadIdentity (); 5351 5375 5352 int 5376 5353 main () 5377 5354 { 5378 glLoadIdentity();5355 main (); 5379 5356 ; 5380 5357 return 0; … … 5403 5380 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5404 5381 (exit $ac_status); }; }; then 5405 ac_cv_lib_ GL_glLoadIdentity=yes5382 ac_cv_lib_OpenAL32_main=yes 5406 5383 else 5407 5384 echo "$as_me: failed program was:" >&5 5408 5385 sed 's/^/| /' conftest.$ac_ext >&5 5409 5386 5410 ac_cv_lib_ GL_glLoadIdentity=no5387 ac_cv_lib_OpenAL32_main=no 5411 5388 fi 5412 5389 rm -f conftest.err conftest.$ac_objext \ … … 5414 5391 LIBS=$ac_check_lib_save_LIBS 5415 5392 fi 5416 echo "$as_me:$LINENO: result: $ac_cv_lib_GL_glLoadIdentity" >&5 5417 echo "${ECHO_T}$ac_cv_lib_GL_glLoadIdentity" >&6 5418 if test $ac_cv_lib_GL_glLoadIdentity = yes; then 5419 FOUND_GL=yes 5420 fi 5421 5422 if test x$FOUND_GL = xyes ; then 5423 LIBS="$LIBS -lGL" 5424 else 5425 echo "------------------" 5426 echo "opengl not found." 5427 echo "please install the opengl package which can be found at http://www.opengl.org" 5428 echo "------------------" 5429 exit -1 5430 fi 5431 5432 # cheking for GLU-header 5433 5434 for ac_header in GL/glu.h 5393 echo "$as_me:$LINENO: result: $ac_cv_lib_OpenAL32_main" >&5 5394 echo "${ECHO_T}$ac_cv_lib_OpenAL32_main" >&6 5395 if test $ac_cv_lib_OpenAL32_main = yes; then 5396 FOUND_openal=yes 5397 fi 5398 5399 echo "$as_me:$LINENO: checking for main in -lALut" >&5 5400 echo $ECHO_N "checking for main in -lALut... $ECHO_C" >&6 5401 if test "${ac_cv_lib_ALut_main+set}" = set; then 5402 echo $ECHO_N "(cached) $ECHO_C" >&6 5403 else 5404 ac_check_lib_save_LIBS=$LIBS 5405 LIBS="-lALut $LIBS" 5406 cat >conftest.$ac_ext <<_ACEOF 5407 /* confdefs.h. */ 5408 _ACEOF 5409 cat confdefs.h >>conftest.$ac_ext 5410 cat >>conftest.$ac_ext <<_ACEOF 5411 /* end confdefs.h. */ 5412 5413 5414 int 5415 main () 5416 { 5417 main (); 5418 ; 5419 return 0; 5420 } 5421 _ACEOF 5422 rm -f conftest.$ac_objext conftest$ac_exeext 5423 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5424 (eval $ac_link) 2>conftest.er1 5425 ac_status=$? 5426 grep -v '^ *+' conftest.er1 >conftest.err 5427 rm -f conftest.er1 5428 cat conftest.err >&5 5429 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5430 (exit $ac_status); } && 5431 { ac_try='test -z "$ac_c_werror_flag" 5432 || test ! -s conftest.err' 5433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5434 (eval $ac_try) 2>&5 5435 ac_status=$? 5436 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5437 (exit $ac_status); }; } && 5438 { ac_try='test -s conftest$ac_exeext' 5439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5440 (eval $ac_try) 2>&5 5441 ac_status=$? 5442 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5443 (exit $ac_status); }; }; then 5444 ac_cv_lib_ALut_main=yes 5445 else 5446 echo "$as_me: failed program was:" >&5 5447 sed 's/^/| /' conftest.$ac_ext >&5 5448 5449 ac_cv_lib_ALut_main=no 5450 fi 5451 rm -f conftest.err conftest.$ac_objext \ 5452 conftest$ac_exeext conftest.$ac_ext 5453 LIBS=$ac_check_lib_save_LIBS 5454 fi 5455 echo "$as_me:$LINENO: result: $ac_cv_lib_ALut_main" >&5 5456 echo "${ECHO_T}$ac_cv_lib_ALut_main" >&6 5457 if test $ac_cv_lib_ALut_main = yes; then 5458 FOUND_ALut=yes 5459 fi 5460 5461 if test x$FOUND_openal = xyes ; then 5462 if test x$FOUND_ALut = xyes ; then 5463 LIBS="$LIBS -lALut -lOpenAL32" 5464 else 5465 echo "------------------" 5466 echo "openal library not found." 5467 echo "please install the openal library, which can be found at http://www.openal.org" 5468 echo "------------------" 5469 exit -1 5470 fi 5471 fi 5472 ;; 5473 #-------# 5474 # LINUX # 5475 #-------# 5476 *-*-linux*) 5477 echo "Linux detected" 5478 5479 Linux="yes" 5480 5481 CPPFLAGS="-I/usr/X11R6/include -I/usr/include" 5482 LDFLAGS="-L/usr/lib/opengl/xorg-x11/lib -L/usr/Mesa-6.0.1/lib -L/usr/X11R6/lib $LDFLAGS" 5483 # checking gl header 5484 5485 for ac_header in GL/gl.h 5435 5486 do 5436 5487 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` … … 5586 5637 5587 5638 5588 echo "$as_me:$LINENO: checking for gluProject in -lGLU" >&5 5589 echo $ECHO_N "checking for gluProject in -lGLU... $ECHO_C" >&6 5590 if test "${ac_cv_lib_GLU_gluProject+set}" = set; then 5639 # checking for Unix GL 5640 echo "$as_me:$LINENO: checking for glLoadIdentity in -lGL" >&5 5641 echo $ECHO_N "checking for glLoadIdentity in -lGL... $ECHO_C" >&6 5642 if test "${ac_cv_lib_GL_glLoadIdentity+set}" = set; then 5591 5643 echo $ECHO_N "(cached) $ECHO_C" >&6 5592 5644 else 5593 5645 ac_check_lib_save_LIBS=$LIBS 5594 LIBS="-lGL U$LIBS"5646 LIBS="-lGL $LIBS" 5595 5647 cat >conftest.$ac_ext <<_ACEOF 5596 5648 /* confdefs.h. */ … … 5606 5658 /* We use char because int might match the return type of a gcc2 5607 5659 builtin and then its argument prototype would still apply. */ 5608 char gl uProject();5660 char glLoadIdentity (); 5609 5661 int 5610 5662 main () 5611 5663 { 5612 gl uProject();5664 glLoadIdentity (); 5613 5665 ; 5614 5666 return 0; … … 5637 5689 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5638 5690 (exit $ac_status); }; }; then 5639 ac_cv_lib_GL U_gluProject=yes5691 ac_cv_lib_GL_glLoadIdentity=yes 5640 5692 else 5641 5693 echo "$as_me: failed program was:" >&5 5642 5694 sed 's/^/| /' conftest.$ac_ext >&5 5643 5695 5644 ac_cv_lib_GL U_gluProject=no5696 ac_cv_lib_GL_glLoadIdentity=no 5645 5697 fi 5646 5698 rm -f conftest.err conftest.$ac_objext \ … … 5648 5700 LIBS=$ac_check_lib_save_LIBS 5649 5701 fi 5650 echo "$as_me:$LINENO: result: $ac_cv_lib_GL U_gluProject" >&55651 echo "${ECHO_T}$ac_cv_lib_GL U_gluProject" >&65652 if test $ac_cv_lib_GL U_gluProject= yes; then5653 FOUND_GL U=yes5654 fi 5655 5656 if test x$FOUND_GLU= xyes ; then5657 LIBS="$LIBS -lGLU"5658 5702 echo "$as_me:$LINENO: result: $ac_cv_lib_GL_glLoadIdentity" >&5 5703 echo "${ECHO_T}$ac_cv_lib_GL_glLoadIdentity" >&6 5704 if test $ac_cv_lib_GL_glLoadIdentity = yes; then 5705 FOUND_GL=yes 5706 fi 5707 5708 if test x$FOUND_GL = xyes ; then 5709 LIBS="$LIBS -lGL" 5710 else 5659 5711 echo "------------------" 5660 echo " GLU librarynot found."5661 echo "please install the GLU library, that should come with openGL,which can be found at http://www.opengl.org"5712 echo "opengl not found." 5713 echo "please install the opengl package which can be found at http://www.opengl.org" 5662 5714 echo "------------------" 5663 5715 exit -1 5664 fi 5665 5666 # checking for SDL 5667 echo "$as_me:$LINENO: checking for SDL-version" >&5 5668 echo $ECHO_N "checking for SDL-version... $ECHO_C" >&6 5669 SDL_VERSION=`sdl-config --version` 5670 echo $SDL_VERSION 5671 5672 CPPFLAGS="`sdl-config --cflags` $CPPFLAGS" 5673 5674 for ac_header in SDL.h 5716 fi 5717 5718 # cheking for GLU-header 5719 5720 for ac_header in GL/glu.h 5675 5721 do 5676 5722 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` … … 5818 5864 5819 5865 else 5820 5821 for ac_header in SDL/SDL.h 5866 { { echo "$as_me:$LINENO: error: cannot find opengl headers" >&5 5867 echo "$as_me: error: cannot find opengl headers" >&2;} 5868 { (exit 1); exit 1; }; } 5869 fi 5870 5871 done 5872 5873 5874 echo "$as_me:$LINENO: checking for gluProject in -lGLU" >&5 5875 echo $ECHO_N "checking for gluProject in -lGLU... $ECHO_C" >&6 5876 if test "${ac_cv_lib_GLU_gluProject+set}" = set; then 5877 echo $ECHO_N "(cached) $ECHO_C" >&6 5878 else 5879 ac_check_lib_save_LIBS=$LIBS 5880 LIBS="-lGLU $LIBS" 5881 cat >conftest.$ac_ext <<_ACEOF 5882 /* confdefs.h. */ 5883 _ACEOF 5884 cat confdefs.h >>conftest.$ac_ext 5885 cat >>conftest.$ac_ext <<_ACEOF 5886 /* end confdefs.h. */ 5887 5888 /* Override any gcc2 internal prototype to avoid an error. */ 5889 #ifdef __cplusplus 5890 extern "C" 5891 #endif 5892 /* We use char because int might match the return type of a gcc2 5893 builtin and then its argument prototype would still apply. */ 5894 char gluProject (); 5895 int 5896 main () 5897 { 5898 gluProject (); 5899 ; 5900 return 0; 5901 } 5902 _ACEOF 5903 rm -f conftest.$ac_objext conftest$ac_exeext 5904 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5905 (eval $ac_link) 2>conftest.er1 5906 ac_status=$? 5907 grep -v '^ *+' conftest.er1 >conftest.err 5908 rm -f conftest.er1 5909 cat conftest.err >&5 5910 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5911 (exit $ac_status); } && 5912 { ac_try='test -z "$ac_c_werror_flag" 5913 || test ! -s conftest.err' 5914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5915 (eval $ac_try) 2>&5 5916 ac_status=$? 5917 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5918 (exit $ac_status); }; } && 5919 { ac_try='test -s conftest$ac_exeext' 5920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5921 (eval $ac_try) 2>&5 5922 ac_status=$? 5923 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5924 (exit $ac_status); }; }; then 5925 ac_cv_lib_GLU_gluProject=yes 5926 else 5927 echo "$as_me: failed program was:" >&5 5928 sed 's/^/| /' conftest.$ac_ext >&5 5929 5930 ac_cv_lib_GLU_gluProject=no 5931 fi 5932 rm -f conftest.err conftest.$ac_objext \ 5933 conftest$ac_exeext conftest.$ac_ext 5934 LIBS=$ac_check_lib_save_LIBS 5935 fi 5936 echo "$as_me:$LINENO: result: $ac_cv_lib_GLU_gluProject" >&5 5937 echo "${ECHO_T}$ac_cv_lib_GLU_gluProject" >&6 5938 if test $ac_cv_lib_GLU_gluProject = yes; then 5939 FOUND_GLU=yes 5940 fi 5941 5942 if test x$FOUND_GLU = xyes ; then 5943 LIBS="$LIBS -lGLU" 5944 else 5945 echo "------------------" 5946 echo "GLU library not found." 5947 echo "please install the GLU library, that should come with openGL, which can be found at http://www.opengl.org" 5948 echo "------------------" 5949 exit -1 5950 fi 5951 5952 #--------# 5953 # openAL # 5954 #--------# 5955 # checking for openAL-headers 5956 5957 for ac_header in AL/al.h 5822 5958 do 5823 5959 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` … … 5965 6101 5966 6102 else 5967 { { echo "$as_me:$LINENO: error: cannot find SDL header. please download from libsdl.org" >&55968 echo "$as_me: error: cannot find SDL header. please download from libsdl.org" >&2;}6103 { { echo "$as_me:$LINENO: error: cannot find openAL header." >&5 6104 echo "$as_me: error: cannot find openAL header." >&2;} 5969 6105 { (exit 1); exit 1; }; } 5970 6106 fi … … 5972 6108 done 5973 6109 5974 fi 5975 5976 done 5977 5978 5979 LIBS="`sdl-config --libs` $LIBS" 5980 ;; 5981 5982 #-----------# 5983 # MAC -OS X # 5984 #-----------# 5985 *darwin*) 5986 echo "OS X detected" 5987 5988 osX="yes" 5989 5990 CPPFLAGS="-I/sw/include -I/sw/include $CPPFLAGS" 5991 # checking gl header 5992 5993 for ac_header in OpenGL/gl.h 6110 # checking for openAL-lib 6111 echo "$as_me:$LINENO: checking for main in -lopenal" >&5 6112 echo $ECHO_N "checking for main in -lopenal... $ECHO_C" >&6 6113 if test "${ac_cv_lib_openal_main+set}" = set; then 6114 echo $ECHO_N "(cached) $ECHO_C" >&6 6115 else 6116 ac_check_lib_save_LIBS=$LIBS 6117 LIBS="-lopenal $LIBS" 6118 cat >conftest.$ac_ext <<_ACEOF 6119 /* confdefs.h. */ 6120 _ACEOF 6121 cat confdefs.h >>conftest.$ac_ext 6122 cat >>conftest.$ac_ext <<_ACEOF 6123 /* end confdefs.h. */ 6124 6125 6126 int 6127 main () 6128 { 6129 main (); 6130 ; 6131 return 0; 6132 } 6133 _ACEOF 6134 rm -f conftest.$ac_objext conftest$ac_exeext 6135 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6136 (eval $ac_link) 2>conftest.er1 6137 ac_status=$? 6138 grep -v '^ *+' conftest.er1 >conftest.err 6139 rm -f conftest.er1 6140 cat conftest.err >&5 6141 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6142 (exit $ac_status); } && 6143 { ac_try='test -z "$ac_c_werror_flag" 6144 || test ! -s conftest.err' 6145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6146 (eval $ac_try) 2>&5 6147 ac_status=$? 6148 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6149 (exit $ac_status); }; } && 6150 { ac_try='test -s conftest$ac_exeext' 6151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6152 (eval $ac_try) 2>&5 6153 ac_status=$? 6154 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6155 (exit $ac_status); }; }; then 6156 ac_cv_lib_openal_main=yes 6157 else 6158 echo "$as_me: failed program was:" >&5 6159 sed 's/^/| /' conftest.$ac_ext >&5 6160 6161 ac_cv_lib_openal_main=no 6162 fi 6163 rm -f conftest.err conftest.$ac_objext \ 6164 conftest$ac_exeext conftest.$ac_ext 6165 LIBS=$ac_check_lib_save_LIBS 6166 fi 6167 echo "$as_me:$LINENO: result: $ac_cv_lib_openal_main" >&5 6168 echo "${ECHO_T}$ac_cv_lib_openal_main" >&6 6169 if test $ac_cv_lib_openal_main = yes; then 6170 FOUND_openal=yes 6171 fi 6172 6173 if test x$FOUND_openal = xyes ; then 6174 LIBS="$LIBS -lopenal" 6175 else 6176 echo "------------------" 6177 echo "openal library not found." 6178 echo "please install the openal library, which can be found at http://www.openal.org" 6179 echo "------------------" 6180 exit -1 6181 fi 6182 6183 # checking for SDL 6184 echo "$as_me:$LINENO: checking for SDL-version" >&5 6185 echo $ECHO_N "checking for SDL-version... $ECHO_C" >&6 6186 SDL_VERSION=`sdl-config --version` 6187 echo $SDL_VERSION 6188 6189 CPPFLAGS="`sdl-config --cflags` $CPPFLAGS" 6190 6191 for ac_header in SDL.h 5994 6192 do 5995 6193 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` … … 6137 6335 6138 6336 else 6139 { { echo "$as_me:$LINENO: error: cannot find opengl headers" >&5 6140 echo "$as_me: error: cannot find opengl headers" >&2;} 6141 { (exit 1); exit 1; }; } 6142 fi 6143 6144 done 6145 6146 # cheking for GLU-header 6147 6148 for ac_header in OpenGL/glu.h 6337 6338 for ac_header in SDL/SDL.h 6149 6339 do 6150 6340 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` … … 6292 6482 6293 6483 else 6294 { { echo "$as_me:$LINENO: error: cannot find opengl headers" >&56295 echo "$as_me: error: cannot find opengl headers" >&2;}6484 { { echo "$as_me:$LINENO: error: cannot find SDL header. please download from libsdl.org" >&5 6485 echo "$as_me: error: cannot find SDL header. please download from libsdl.org" >&2;} 6296 6486 { (exit 1); exit 1; }; } 6297 6487 fi … … 6299 6489 done 6300 6490 6301 6302 LIBS="$LIBS -framework OpenGL" 6303 6304 6305 ## SDL-check 6306 SDL_CFLAGS=`sdl-config --cflags` 6307 SDL_LIBS=`sdl-config --libs` 6308 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS" 6309 LIBS="$LIBS $SDL_LIBS" 6310 6311 6312 # checking for SDL-headers 6313 # AC_CHECK_HEADERS(SDL/SDL.h ,, 6314 # [AC_MSG_ERROR([cannot find SDL headers]) ]) 6315 6316 ## checking for SDL 6317 # SDL_VERSION=1.2.7 6318 # AM_PATH_SDL($SDL_VERSION, 6319 # :, 6320 # AC_MSG_ERROR([*** SDL version $SDL_VERSION not found!]) 6321 # ) 6322 6323 6491 fi 6492 6493 done 6494 6495 6496 LIBS="`sdl-config --libs` $LIBS" 6324 6497 ;; 6325 6498 6326 *) 6327 ;; 6328 esac 6329 6330 6331 6332 ################################### 6333 ## CHECKING FOR HEADERS AND LIBS ## 6334 ################################### 6335 6336 #---------# 6337 # SDL_ttf # 6338 #---------# 6339 # checking for SDL_ttf-headers 6340 6341 for ac_header in SDL_ttf.h 6499 #-----------# 6500 # MAC -OS X # 6501 #-----------# 6502 *darwin*) 6503 echo "OS X detected" 6504 6505 osX="yes" 6506 6507 CPPFLAGS="-I/sw/include -I/sw/include $CPPFLAGS" 6508 # checking gl header 6509 6510 for ac_header in OpenGL/gl.h 6342 6511 do 6343 6512 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` … … 6485 6654 6486 6655 else 6487 6488 for ac_header in SDL/SDL_ttf.h 6656 { { echo "$as_me:$LINENO: error: cannot find opengl headers" >&5 6657 echo "$as_me: error: cannot find opengl headers" >&2;} 6658 { (exit 1); exit 1; }; } 6659 fi 6660 6661 done 6662 6663 # cheking for GLU-header 6664 6665 for ac_header in OpenGL/glu.h 6489 6666 do 6490 6667 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` … … 6632 6809 6633 6810 else 6634 { { echo "$as_me:$LINENO: error: cannot find SDL_ttf header." >&56635 echo "$as_me: error: cannot find SDL_ttf header." >&2;}6811 { { echo "$as_me:$LINENO: error: cannot find opengl headers" >&5 6812 echo "$as_me: error: cannot find opengl headers" >&2;} 6636 6813 { (exit 1); exit 1; }; } 6637 6814 fi … … 6639 6816 done 6640 6817 6641 fi 6642 6643 done 6644 6645 # checking for SDL_ttf-lib 6646 echo "$as_me:$LINENO: checking for main in -lSDL_ttf" >&5 6647 echo $ECHO_N "checking for main in -lSDL_ttf... $ECHO_C" >&6 6648 if test "${ac_cv_lib_SDL_ttf_main+set}" = set; then 6649 echo $ECHO_N "(cached) $ECHO_C" >&6 6650 else 6651 ac_check_lib_save_LIBS=$LIBS 6652 LIBS="-lSDL_ttf $LIBS" 6653 cat >conftest.$ac_ext <<_ACEOF 6654 /* confdefs.h. */ 6655 _ACEOF 6656 cat confdefs.h >>conftest.$ac_ext 6657 cat >>conftest.$ac_ext <<_ACEOF 6658 /* end confdefs.h. */ 6659 6660 6661 int 6662 main () 6663 { 6664 main (); 6665 ; 6666 return 0; 6667 } 6668 _ACEOF 6669 rm -f conftest.$ac_objext conftest$ac_exeext 6670 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6671 (eval $ac_link) 2>conftest.er1 6672 ac_status=$? 6673 grep -v '^ *+' conftest.er1 >conftest.err 6674 rm -f conftest.er1 6675 cat conftest.err >&5 6676 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6677 (exit $ac_status); } && 6678 { ac_try='test -z "$ac_c_werror_flag" 6679 || test ! -s conftest.err' 6680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6681 (eval $ac_try) 2>&5 6682 ac_status=$? 6683 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6684 (exit $ac_status); }; } && 6685 { ac_try='test -s conftest$ac_exeext' 6686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6687 (eval $ac_try) 2>&5 6688 ac_status=$? 6689 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6690 (exit $ac_status); }; }; then 6691 ac_cv_lib_SDL_ttf_main=yes 6692 else 6693 echo "$as_me: failed program was:" >&5 6694 sed 's/^/| /' conftest.$ac_ext >&5 6695 6696 ac_cv_lib_SDL_ttf_main=no 6697 fi 6698 rm -f conftest.err conftest.$ac_objext \ 6699 conftest$ac_exeext conftest.$ac_ext 6700 LIBS=$ac_check_lib_save_LIBS 6701 fi 6702 echo "$as_me:$LINENO: result: $ac_cv_lib_SDL_ttf_main" >&5 6703 echo "${ECHO_T}$ac_cv_lib_SDL_ttf_main" >&6 6704 if test $ac_cv_lib_SDL_ttf_main = yes; then 6705 FOUND_SDL_ttf=yes 6706 fi 6707 6708 if test x$FOUND_SDL_ttf = xyes ; then 6709 LIBS="$LIBS -lSDL_ttf" 6710 else 6711 echo "------------------" 6712 echo "SDL_ttf library not found." 6713 echo "please install the SDL_ttf library, which can be found at http://www.libsdl.org/projects/SDL_ttf/" 6714 echo "------------------" 6715 exit -1 6716 fi 6717 6718 6719 #-----------# 6720 # SDL_Image # 6721 #-----------# 6722 # checking for SDL_image-headers 6723 6724 for ac_header in SDL_image.h 6818 6819 LIBS="$LIBS -framework OpenGL" 6820 6821 6822 ## SDL-check 6823 SDL_CFLAGS=`sdl-config --cflags` 6824 SDL_LIBS=`sdl-config --libs` 6825 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS" 6826 LIBS="$LIBS $SDL_LIBS" 6827 6828 6829 # checking for SDL-headers 6830 # AC_CHECK_HEADERS(SDL/SDL.h ,, 6831 # [AC_MSG_ERROR([cannot find SDL headers]) ]) 6832 6833 ## checking for SDL 6834 # SDL_VERSION=1.2.7 6835 # AM_PATH_SDL($SDL_VERSION, 6836 # :, 6837 # AC_MSG_ERROR([*** SDL version $SDL_VERSION not found!]) 6838 # ) 6839 6840 6841 ;; 6842 6843 *) 6844 ;; 6845 esac 6846 6847 6848 6849 ################################### 6850 ## CHECKING FOR HEADERS AND LIBS ## 6851 ################################### 6852 6853 #---------# 6854 # SDL_ttf # 6855 #---------# 6856 # checking for SDL_ttf-headers 6857 6858 for ac_header in SDL_ttf.h 6725 6859 do 6726 6860 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` … … 6869 7003 else 6870 7004 6871 for ac_header in SDL/SDL_ image.h7005 for ac_header in SDL/SDL_ttf.h 6872 7006 do 6873 7007 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` … … 7015 7149 7016 7150 else 7017 { { echo "$as_me:$LINENO: error: SDL_image header not found." >&57018 echo "$as_me: error: SDL_image header not found." >&2;}7151 { { echo "$as_me:$LINENO: error: cannot find SDL_ttf header." >&5 7152 echo "$as_me: error: cannot find SDL_ttf header." >&2;} 7019 7153 { (exit 1); exit 1; }; } 7020 7154 fi … … 7026 7160 done 7027 7161 7028 # checking for SDL_ image-lib7029 echo "$as_me:$LINENO: checking for main in -lSDL_image" >&57030 echo $ECHO_N "checking for main in -lSDL_image... $ECHO_C" >&67031 if test "${ac_cv_lib_SDL_ image_main+set}" = set; then7162 # checking for SDL_ttf-lib 7163 echo "$as_me:$LINENO: checking for TTF_OpenFont in -lSDL_ttf" >&5 7164 echo $ECHO_N "checking for TTF_OpenFont in -lSDL_ttf... $ECHO_C" >&6 7165 if test "${ac_cv_lib_SDL_ttf_TTF_OpenFont+set}" = set; then 7032 7166 echo $ECHO_N "(cached) $ECHO_C" >&6 7033 7167 else 7034 7168 ac_check_lib_save_LIBS=$LIBS 7035 LIBS="-lSDL_ image$LIBS"7169 LIBS="-lSDL_ttf $LIBS" 7036 7170 cat >conftest.$ac_ext <<_ACEOF 7037 7171 /* confdefs.h. */ … … 7041 7175 /* end confdefs.h. */ 7042 7176 7043 7177 /* Override any gcc2 internal prototype to avoid an error. */ 7178 #ifdef __cplusplus 7179 extern "C" 7180 #endif 7181 /* We use char because int might match the return type of a gcc2 7182 builtin and then its argument prototype would still apply. */ 7183 char TTF_OpenFont (); 7044 7184 int 7045 7185 main () 7046 7186 { 7047 main();7187 TTF_OpenFont (); 7048 7188 ; 7049 7189 return 0; … … 7072 7212 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7073 7213 (exit $ac_status); }; }; then 7074 ac_cv_lib_SDL_ image_main=yes7214 ac_cv_lib_SDL_ttf_TTF_OpenFont=yes 7075 7215 else 7076 7216 echo "$as_me: failed program was:" >&5 7077 7217 sed 's/^/| /' conftest.$ac_ext >&5 7078 7218 7079 ac_cv_lib_SDL_ image_main=no7219 ac_cv_lib_SDL_ttf_TTF_OpenFont=no 7080 7220 fi 7081 7221 rm -f conftest.err conftest.$ac_objext \ … … 7083 7223 LIBS=$ac_check_lib_save_LIBS 7084 7224 fi 7085 echo "$as_me:$LINENO: result: $ac_cv_lib_SDL_image_main" >&5 7086 echo "${ECHO_T}$ac_cv_lib_SDL_image_main" >&6 7087 if test $ac_cv_lib_SDL_image_main = yes; then 7088 FOUND_SDL_image=yes 7089 fi 7090 7091 if test x$FOUND_SDL_image = xyes ; then 7092 LIBS="$LIBS -lSDL_image" 7093 else 7094 echo "------------------" 7095 echo "SDL_image library not found." 7096 echo "please install the SDL_image library, which can be found at http://www.libsdl.org/projects/SDL_image/" 7097 echo "------------------" 7098 exit -1 7099 fi 7100 7101 #--------# 7102 # openAL # 7103 #--------# 7104 # checking for openAL-headers 7105 7106 for ac_header in AL/al.h 7225 echo "$as_me:$LINENO: result: $ac_cv_lib_SDL_ttf_TTF_OpenFont" >&5 7226 echo "${ECHO_T}$ac_cv_lib_SDL_ttf_TTF_OpenFont" >&6 7227 if test $ac_cv_lib_SDL_ttf_TTF_OpenFont = yes; then 7228 FOUND_SDL_ttf=yes 7229 fi 7230 7231 if test x$FOUND_SDL_ttf = xyes ; then 7232 LIBS="$LIBS -lSDL_ttf" 7233 else 7234 echo "------------------" 7235 echo "SDL_ttf library not found." 7236 echo "please install the SDL_ttf library, which can be found at http://www.libsdl.org/projects/SDL_ttf/" 7237 echo "------------------" 7238 exit -1 7239 fi 7240 7241 7242 #-----------# 7243 # SDL_Image # 7244 #-----------# 7245 # checking for SDL_image-headers 7246 7247 for ac_header in SDL_image.h 7107 7248 do 7108 7249 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` … … 7250 7391 7251 7392 else 7252 { { echo "$as_me:$LINENO: error: cannot find openAL header." >&5 7253 echo "$as_me: error: cannot find openAL header." >&2;} 7254 { (exit 1); exit 1; }; } 7255 fi 7256 7257 done 7258 7259 # checking for openAL-lib 7260 echo "$as_me:$LINENO: checking for main in -lopenal" >&5 7261 echo $ECHO_N "checking for main in -lopenal... $ECHO_C" >&6 7262 if test "${ac_cv_lib_openal_main+set}" = set; then 7263 echo $ECHO_N "(cached) $ECHO_C" >&6 7264 else 7265 ac_check_lib_save_LIBS=$LIBS 7266 LIBS="-lopenal $LIBS" 7267 cat >conftest.$ac_ext <<_ACEOF 7268 /* confdefs.h. */ 7269 _ACEOF 7270 cat confdefs.h >>conftest.$ac_ext 7271 cat >>conftest.$ac_ext <<_ACEOF 7272 /* end confdefs.h. */ 7273 7274 7275 int 7276 main () 7277 { 7278 main (); 7279 ; 7280 return 0; 7281 } 7282 _ACEOF 7283 rm -f conftest.$ac_objext conftest$ac_exeext 7284 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7285 (eval $ac_link) 2>conftest.er1 7286 ac_status=$? 7287 grep -v '^ *+' conftest.er1 >conftest.err 7288 rm -f conftest.er1 7289 cat conftest.err >&5 7290 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7291 (exit $ac_status); } && 7292 { ac_try='test -z "$ac_c_werror_flag" 7293 || test ! -s conftest.err' 7294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7295 (eval $ac_try) 2>&5 7296 ac_status=$? 7297 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7298 (exit $ac_status); }; } && 7299 { ac_try='test -s conftest$ac_exeext' 7300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7301 (eval $ac_try) 2>&5 7302 ac_status=$? 7303 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7304 (exit $ac_status); }; }; then 7305 ac_cv_lib_openal_main=yes 7306 else 7307 echo "$as_me: failed program was:" >&5 7308 sed 's/^/| /' conftest.$ac_ext >&5 7309 7310 ac_cv_lib_openal_main=no 7311 fi 7312 rm -f conftest.err conftest.$ac_objext \ 7313 conftest$ac_exeext conftest.$ac_ext 7314 LIBS=$ac_check_lib_save_LIBS 7315 fi 7316 echo "$as_me:$LINENO: result: $ac_cv_lib_openal_main" >&5 7317 echo "${ECHO_T}$ac_cv_lib_openal_main" >&6 7318 if test $ac_cv_lib_openal_main = yes; then 7319 FOUND_openal=yes 7320 fi 7321 7322 if test x$FOUND_openal = xyes ; then 7323 LIBS="$LIBS -lopenal" 7324 else 7325 echo "------------------" 7326 echo "openal library not found." 7327 echo "please install the openal library, which can be found at http://www.openal.org" 7328 echo "------------------" 7329 exit -1 7330 fi 7331 7332 #-----# 7333 # ogg # 7334 #-----# 7335 # checking for ogg-headers 7336 7337 for ac_header in ogg/ogg.h 7393 7394 for ac_header in SDL/SDL_image.h 7338 7395 do 7339 7396 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` … … 7481 7538 7482 7539 else 7483 { { echo "$as_me:$LINENO: error: cannot find ogg header." >&57484 echo "$as_me: error: cannot find ogg header." >&2;}7540 { { echo "$as_me:$LINENO: error: SDL_image header not found." >&5 7541 echo "$as_me: error: SDL_image header not found." >&2;} 7485 7542 { (exit 1); exit 1; }; } 7486 7543 fi … … 7488 7545 done 7489 7546 7490 # checking for ogg-lib 7491 echo "$as_me:$LINENO: checking for main in -logg" >&5 7492 echo $ECHO_N "checking for main in -logg... $ECHO_C" >&6 7493 if test "${ac_cv_lib_ogg_main+set}" = set; then 7547 fi 7548 7549 done 7550 7551 # checking for SDL_image-lib 7552 echo "$as_me:$LINENO: checking for main in -lSDL_image" >&5 7553 echo $ECHO_N "checking for main in -lSDL_image... $ECHO_C" >&6 7554 if test "${ac_cv_lib_SDL_image_main+set}" = set; then 7494 7555 echo $ECHO_N "(cached) $ECHO_C" >&6 7495 7556 else 7496 7557 ac_check_lib_save_LIBS=$LIBS 7497 LIBS="-l ogg$LIBS"7558 LIBS="-lSDL_image $LIBS" 7498 7559 cat >conftest.$ac_ext <<_ACEOF 7499 7560 /* confdefs.h. */ … … 7534 7595 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7535 7596 (exit $ac_status); }; }; then 7536 ac_cv_lib_ ogg_main=yes7597 ac_cv_lib_SDL_image_main=yes 7537 7598 else 7538 7599 echo "$as_me: failed program was:" >&5 7539 7600 sed 's/^/| /' conftest.$ac_ext >&5 7540 7601 7541 ac_cv_lib_ ogg_main=no7602 ac_cv_lib_SDL_image_main=no 7542 7603 fi 7543 7604 rm -f conftest.err conftest.$ac_objext \ … … 7545 7606 LIBS=$ac_check_lib_save_LIBS 7546 7607 fi 7547 echo "$as_me:$LINENO: result: $ac_cv_lib_ogg_main" >&5 7548 echo "${ECHO_T}$ac_cv_lib_ogg_main" >&6 7549 if test $ac_cv_lib_ogg_main = yes; then 7550 FOUND_ogg=yes 7551 fi 7552 7553 if test x$FOUND_ogg = xyes ; then 7554 LIBS="$LIBS -logg" 7555 else 7556 echo "------------------" 7557 echo "ogg library not found." 7558 echo "please install the ogg library, which can be found at http://www.xiph.org/ogg/vorbis/index.html" 7559 echo "------------------" 7560 exit -1 7561 fi 7608 echo "$as_me:$LINENO: result: $ac_cv_lib_SDL_image_main" >&5 7609 echo "${ECHO_T}$ac_cv_lib_SDL_image_main" >&6 7610 if test $ac_cv_lib_SDL_image_main = yes; then 7611 FOUND_SDL_image=yes 7612 fi 7613 7614 if test x$FOUND_SDL_image = xyes ; then 7615 LIBS="$LIBS -lSDL_image" 7616 else 7617 echo "------------------" 7618 echo "SDL_image library not found." 7619 echo "please install the SDL_image library, which can be found at http://www.libsdl.org/projects/SDL_image/" 7620 echo "------------------" 7621 exit -1 7622 fi 7623 7624 #-----# 7625 # ogg # 7626 #-----# 7627 ## checking for ogg-headers 7628 # AC_CHECK_HEADERS([ogg/ogg.h] ,, 7629 # [AC_MSG_ERROR([cannot find ogg header.])]) 7630 ## checking for ogg-lib 7631 # AC_CHECK_LIB([ogg], [main], [FOUND_ogg=yes]) 7632 # if test x$FOUND_ogg = xyes ; then 7633 # LIBS="$LIBS -logg" 7634 # else 7635 # echo "------------------" 7636 # echo "ogg library not found." 7637 # echo "please install the ogg library, which can be found at http://www.xiph.org/ogg/vorbis/index.html" 7638 # echo "------------------" 7639 # exit -1 7640 # fi 7562 7641 7563 7642 #--------# 7564 7643 # vorbis # 7565 7644 #--------# 7566 # checking for vorbis-lib 7567 echo "$as_me:$LINENO: checking for main in -lvorbis" >&5 7568 echo $ECHO_N "checking for main in -lvorbis... $ECHO_C" >&6 7569 if test "${ac_cv_lib_vorbis_main+set}" = set; then 7570 echo $ECHO_N "(cached) $ECHO_C" >&6 7571 else 7572 ac_check_lib_save_LIBS=$LIBS 7573 LIBS="-lvorbis $LIBS" 7574 cat >conftest.$ac_ext <<_ACEOF 7575 /* confdefs.h. */ 7576 _ACEOF 7577 cat confdefs.h >>conftest.$ac_ext 7578 cat >>conftest.$ac_ext <<_ACEOF 7579 /* end confdefs.h. */ 7580 7581 7582 int 7583 main () 7584 { 7585 main (); 7586 ; 7587 return 0; 7588 } 7589 _ACEOF 7590 rm -f conftest.$ac_objext conftest$ac_exeext 7591 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7592 (eval $ac_link) 2>conftest.er1 7593 ac_status=$? 7594 grep -v '^ *+' conftest.er1 >conftest.err 7595 rm -f conftest.er1 7596 cat conftest.err >&5 7597 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7598 (exit $ac_status); } && 7599 { ac_try='test -z "$ac_c_werror_flag" 7600 || test ! -s conftest.err' 7601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7602 (eval $ac_try) 2>&5 7603 ac_status=$? 7604 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7605 (exit $ac_status); }; } && 7606 { ac_try='test -s conftest$ac_exeext' 7607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7608 (eval $ac_try) 2>&5 7609 ac_status=$? 7610 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7611 (exit $ac_status); }; }; then 7612 ac_cv_lib_vorbis_main=yes 7613 else 7614 echo "$as_me: failed program was:" >&5 7615 sed 's/^/| /' conftest.$ac_ext >&5 7616 7617 ac_cv_lib_vorbis_main=no 7618 fi 7619 rm -f conftest.err conftest.$ac_objext \ 7620 conftest$ac_exeext conftest.$ac_ext 7621 LIBS=$ac_check_lib_save_LIBS 7622 fi 7623 echo "$as_me:$LINENO: result: $ac_cv_lib_vorbis_main" >&5 7624 echo "${ECHO_T}$ac_cv_lib_vorbis_main" >&6 7625 if test $ac_cv_lib_vorbis_main = yes; then 7626 FOUND_vorbis=yes 7627 fi 7628 7629 if test x$FOUND_vorbis = xyes ; then 7630 LIBS="$LIBS -lvorbis" 7631 else 7632 echo "------------------" 7633 echo "vorbis library not found." 7634 echo "please install the vorbis library, which can be found at http://www.xiph.org/ogg/vorbis/index.html" 7635 echo "------------------" 7636 exit -1 7637 fi 7645 ## checking for vorbis-lib 7646 # AC_CHECK_LIB([vorbis], [main], [FOUND_vorbis=yes]) 7647 # if test x$FOUND_vorbis = xyes ; then 7648 # LIBS="$LIBS -lvorbis" 7649 # else 7650 # echo "------------------" 7651 # echo "vorbis library not found." 7652 # echo "please install the vorbis library, which can be found at http://www.xiph.org/ogg/vorbis/index.html" 7653 # echo "------------------" 7654 # exit -1 7655 # fi 7638 7656 7639 7657 #------------# 7640 7658 # vorbisfile # 7641 7659 #------------# 7642 # checking for vorbis-headers 7643 7644 for ac_header in vorbis/vorbisfile.h 7645 do 7646 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 7647 if eval "test \"\${$as_ac_Header+set}\" = set"; then 7648 echo "$as_me:$LINENO: checking for $ac_header" >&5 7649 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 7650 if eval "test \"\${$as_ac_Header+set}\" = set"; then 7651 echo $ECHO_N "(cached) $ECHO_C" >&6 7652 fi 7653 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 7654 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 7655 else 7656 # Is the header compilable? 7657 echo "$as_me:$LINENO: checking $ac_header usability" >&5 7658 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 7659 cat >conftest.$ac_ext <<_ACEOF 7660 /* confdefs.h. */ 7661 _ACEOF 7662 cat confdefs.h >>conftest.$ac_ext 7663 cat >>conftest.$ac_ext <<_ACEOF 7664 /* end confdefs.h. */ 7665 $ac_includes_default 7666 #include <$ac_header> 7667 _ACEOF 7668 rm -f conftest.$ac_objext 7669 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7670 (eval $ac_compile) 2>conftest.er1 7671 ac_status=$? 7672 grep -v '^ *+' conftest.er1 >conftest.err 7673 rm -f conftest.er1 7674 cat conftest.err >&5 7675 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7676 (exit $ac_status); } && 7677 { ac_try='test -z "$ac_c_werror_flag" 7678 || test ! -s conftest.err' 7679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7680 (eval $ac_try) 2>&5 7681 ac_status=$? 7682 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7683 (exit $ac_status); }; } && 7684 { ac_try='test -s conftest.$ac_objext' 7685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7686 (eval $ac_try) 2>&5 7687 ac_status=$? 7688 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7689 (exit $ac_status); }; }; then 7690 ac_header_compiler=yes 7691 else 7692 echo "$as_me: failed program was:" >&5 7693 sed 's/^/| /' conftest.$ac_ext >&5 7694 7695 ac_header_compiler=no 7696 fi 7697 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 7698 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 7699 echo "${ECHO_T}$ac_header_compiler" >&6 7700 7701 # Is the header present? 7702 echo "$as_me:$LINENO: checking $ac_header presence" >&5 7703 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 7704 cat >conftest.$ac_ext <<_ACEOF 7705 /* confdefs.h. */ 7706 _ACEOF 7707 cat confdefs.h >>conftest.$ac_ext 7708 cat >>conftest.$ac_ext <<_ACEOF 7709 /* end confdefs.h. */ 7710 #include <$ac_header> 7711 _ACEOF 7712 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 7713 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 7714 ac_status=$? 7715 grep -v '^ *+' conftest.er1 >conftest.err 7716 rm -f conftest.er1 7717 cat conftest.err >&5 7718 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7719 (exit $ac_status); } >/dev/null; then 7720 if test -s conftest.err; then 7721 ac_cpp_err=$ac_c_preproc_warn_flag 7722 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 7723 else 7724 ac_cpp_err= 7725 fi 7726 else 7727 ac_cpp_err=yes 7728 fi 7729 if test -z "$ac_cpp_err"; then 7730 ac_header_preproc=yes 7731 else 7732 echo "$as_me: failed program was:" >&5 7733 sed 's/^/| /' conftest.$ac_ext >&5 7734 7735 ac_header_preproc=no 7736 fi 7737 rm -f conftest.err conftest.$ac_ext 7738 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 7739 echo "${ECHO_T}$ac_header_preproc" >&6 7740 7741 # So? What about this header? 7742 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 7743 yes:no: ) 7744 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 7745 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 7746 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 7747 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 7748 ac_header_preproc=yes 7749 ;; 7750 no:yes:* ) 7751 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 7752 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 7753 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 7754 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 7755 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 7756 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 7757 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 7758 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 7759 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 7760 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 7761 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 7762 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 7763 ( 7764 cat <<\_ASBOX 7765 ## ---------------------------------------------- ## 7766 ## Report this to orxonox-dev at mail.datacore.ch ## 7767 ## ---------------------------------------------- ## 7768 _ASBOX 7769 ) | 7770 sed "s/^/$as_me: WARNING: /" >&2 7771 ;; 7772 esac 7773 echo "$as_me:$LINENO: checking for $ac_header" >&5 7774 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 7775 if eval "test \"\${$as_ac_Header+set}\" = set"; then 7776 echo $ECHO_N "(cached) $ECHO_C" >&6 7777 else 7778 eval "$as_ac_Header=\$ac_header_preproc" 7779 fi 7780 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 7781 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 7782 7783 fi 7784 if test `eval echo '${'$as_ac_Header'}'` = yes; then 7785 cat >>confdefs.h <<_ACEOF 7786 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 7787 _ACEOF 7788 7789 else 7790 { { echo "$as_me:$LINENO: error: cannot find vorbisfile header." >&5 7791 echo "$as_me: error: cannot find vorbisfile header." >&2;} 7792 { (exit 1); exit 1; }; } 7793 fi 7794 7795 done 7796 7797 # checking for vorbisfile-lib 7798 echo "$as_me:$LINENO: checking for main in -lvorbisfile" >&5 7799 echo $ECHO_N "checking for main in -lvorbisfile... $ECHO_C" >&6 7800 if test "${ac_cv_lib_vorbisfile_main+set}" = set; then 7801 echo $ECHO_N "(cached) $ECHO_C" >&6 7802 else 7803 ac_check_lib_save_LIBS=$LIBS 7804 LIBS="-lvorbisfile $LIBS" 7805 cat >conftest.$ac_ext <<_ACEOF 7806 /* confdefs.h. */ 7807 _ACEOF 7808 cat confdefs.h >>conftest.$ac_ext 7809 cat >>conftest.$ac_ext <<_ACEOF 7810 /* end confdefs.h. */ 7811 7812 7813 int 7814 main () 7815 { 7816 main (); 7817 ; 7818 return 0; 7819 } 7820 _ACEOF 7821 rm -f conftest.$ac_objext conftest$ac_exeext 7822 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7823 (eval $ac_link) 2>conftest.er1 7824 ac_status=$? 7825 grep -v '^ *+' conftest.er1 >conftest.err 7826 rm -f conftest.er1 7827 cat conftest.err >&5 7828 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7829 (exit $ac_status); } && 7830 { ac_try='test -z "$ac_c_werror_flag" 7831 || test ! -s conftest.err' 7832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7833 (eval $ac_try) 2>&5 7834 ac_status=$? 7835 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7836 (exit $ac_status); }; } && 7837 { ac_try='test -s conftest$ac_exeext' 7838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7839 (eval $ac_try) 2>&5 7840 ac_status=$? 7841 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7842 (exit $ac_status); }; }; then 7843 ac_cv_lib_vorbisfile_main=yes 7844 else 7845 echo "$as_me: failed program was:" >&5 7846 sed 's/^/| /' conftest.$ac_ext >&5 7847 7848 ac_cv_lib_vorbisfile_main=no 7849 fi 7850 rm -f conftest.err conftest.$ac_objext \ 7851 conftest$ac_exeext conftest.$ac_ext 7852 LIBS=$ac_check_lib_save_LIBS 7853 fi 7854 echo "$as_me:$LINENO: result: $ac_cv_lib_vorbisfile_main" >&5 7855 echo "${ECHO_T}$ac_cv_lib_vorbisfile_main" >&6 7856 if test $ac_cv_lib_vorbisfile_main = yes; then 7857 FOUND_vorbisfile=yes 7858 fi 7859 7860 if test x$FOUND_vorbisfile = xyes ; then 7861 LIBS="$LIBS -lvorbisfile" 7862 else 7863 echo "------------------" 7864 echo "vorbisfile library not found." 7865 echo "please install the vorbisfile library, which can be found at http://www.xiph.org/ogg/vorbis/index.html" 7866 echo "------------------" 7867 exit -1 7868 fi 7660 ## checking for vorbis-headers 7661 # AC_CHECK_HEADERS([vorbis/vorbisfile.h] ,, 7662 # [AC_MSG_ERROR([cannot find vorbisfile header.])]) 7663 ## checking for vorbisfile-lib 7664 # AC_CHECK_LIB([vorbisfile], [main], [FOUND_vorbisfile=yes]) 7665 # if test x$FOUND_vorbisfile = xyes ; then 7666 # LIBS="$LIBS -lvorbisfile" 7667 # else 7668 # echo "------------------" 7669 # echo "vorbisfile library not found." 7670 # echo "please install the vorbisfile library, which can be found at http://www.xiph.org/ogg/vorbis/index.html" 7671 # echo "------------------" 7672 # exit -1 7673 # fi 7869 7674 7870 7675 #-----# … … 10517 10322 # Extract the definition of DEP_FILES from the Makefile without 10518 10323 # running `make'. 10519 DEPDIR=`sed -n 's/^DEPDIR =//p' < "$mf"`10324 DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"` 10520 10325 test -z "$DEPDIR" && continue 10521 10326 # When using ansi2knr, U may be empty or an underscore; expand it 10522 U=`sed -n 's/^U =//p' < "$mf"`10327 U=`sed -n -e '/^U = / s///p' < "$mf"` 10523 10328 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR" 10524 10329 # We invoke sed twice because it is the simplest approach to 10525 10330 # changing $(DEPDIR) to its actual value in the expansion. 10526 for file in `sed -n '10331 for file in `sed -n -e ' 10527 10332 /^DEP_FILES = .*\\\\$/ { 10528 10333 s/^DEP_FILES = // -
orxonox/trunk/configure.ac
r4672 r4697 221 221 MWINDOWS="-mwindows" 222 222 223 # checking gl header 224 #done before loop 225 223 224 225 # checking for mingw32 226 AC_CHECK_LIB([mingw32], [main], FOUND_mingw32=yes) 227 if test x$FOUND_mingw32 = xyes; then 228 LIBS="$LIBS -lmingw32" 229 fi 230 231 #-----------# 232 # SDL (win) # 233 #-----------# 234 # checking for SDL-headers 235 AC_CHECK_HEADERS([SDL/SDL.h] ,, 236 [AC_MSG_ERROR([cannot find SDL headers]) ]) 237 238 #checking for libSDL 239 AC_CHECK_LIB([sdlmain], [main], FOUND_sdlmain=yes) 240 if test x$FOUND_sdlmain = xyes ; then 241 LIBS="$LIBS -lsdlmain" 242 else 243 echo "------------------" 244 echo "SDL library not found." 245 echo "please install the SDL library, which can be found at http://www.libsdl.org" 246 echo "------------------" 247 exit 1 248 fi 249 AC_CHECK_LIB([sdl], [main], FOUND_sdl=yes) 250 if test x$FOUND_sdl = xyes ; then 251 LIBS="$LIBS -lsdl" 252 else 253 echo "------------------" 254 echo "SDL library not found." 255 echo "please install the SDL library, which can be found at http://www.libsdl.org" 256 echo "------------------" 257 exit -1 258 fi 259 260 #---------------# 261 # open-GL (win) # 262 #---------------# 226 263 # checking gl header 227 264 AC_CHECK_HEADERS(GL/gl.h ,, … … 255 292 fi 256 293 257 # checking for mingw32 258 AC_CHECK_LIB([mingw32], [main], FOUND_mingw32=yes) 259 if test x$FOUND_mingw32 = xyes; then 260 LIBS="$LIBS -lmingw32" 261 fi 262 # checking for SDL-headers 263 AC_CHECK_HEADERS([SDL/SDL.h] ,, 264 [AC_MSG_ERROR([cannot find SDL headers]) ]) 265 266 #checking for libSDL 267 AC_CHECK_LIB([sdlmain], [main], FOUND_sdlmain=yes) 268 if test x$FOUND_sdlmain = xyes ; then 269 LIBS="$LIBS -lsdlmain" 270 else 271 echo "------------------" 272 echo "SDL library not found." 273 echo "please install the SDL library, which can be found at http://www.libsdl.org" 274 echo "------------------" 275 exit 1 276 fi 277 AC_CHECK_LIB([sdl], [main], FOUND_sdl=yes) 278 if test x$FOUND_sdl = xyes ; then 279 LIBS="$LIBS -lsdl" 280 else 281 echo "------------------" 282 echo "SDL library not found." 283 echo "please install the SDL library, which can be found at http://www.libsdl.org" 294 #--------# 295 # openAL # 296 #--------# 297 # checking for openAL-headers 298 AC_CHECK_HEADERS([AL/al.h] ,, 299 [AC_MSG_ERROR([cannot find openAL header.])]) 300 # checking for openAL-lib 301 AC_CHECK_LIB([OpenAL32], [main], [FOUND_openal=yes]) 302 AC_CHECK_LIB([ALut], [main], [FOUND_ALut=yes]) 303 if test x$FOUND_openal = xyes ; then 304 if test x$FOUND_ALut = xyes ; then 305 LIBS="$LIBS -lALut -lOpenAL32" 306 else 307 echo "------------------" 308 echo "openal library not found." 309 echo "please install the openal library, which can be found at http://www.openal.org" 284 310 echo "------------------" 285 311 exit -1 286 fi287 312 fi 313 fi 288 314 ;; 289 315 #-------# … … 327 353 exit -1 328 354 fi 355 356 #--------# 357 # openAL # 358 #--------# 359 # checking for openAL-headers 360 AC_CHECK_HEADERS([AL/al.h] ,, 361 [AC_MSG_ERROR([cannot find openAL header.])]) 362 # checking for openAL-lib 363 AC_CHECK_LIB([openal], [main], [FOUND_openal=yes]) 364 if test x$FOUND_openal = xyes ; then 365 LIBS="$LIBS -lopenal" 366 else 367 echo "------------------" 368 echo "openal library not found." 369 echo "please install the openal library, which can be found at http://www.openal.org" 370 echo "------------------" 371 exit -1 372 fi 329 373 330 374 # checking for SDL … … 397 441 [AC_CHECK_HEADERS([SDL/SDL_ttf.h] ,,AC_MSG_ERROR([cannot find SDL_ttf header.])])) 398 442 # checking for SDL_ttf-lib 399 AC_CHECK_LIB([SDL_ttf], [ main], [FOUND_SDL_ttf=yes])443 AC_CHECK_LIB([SDL_ttf], [TTF_OpenFont], [FOUND_SDL_ttf=yes]) 400 444 if test x$FOUND_SDL_ttf = xyes ; then 401 445 LIBS="$LIBS -lSDL_ttf" … … 427 471 fi 428 472 429 #--------#430 # openAL #431 #--------#432 # checking for openAL-headers433 AC_CHECK_HEADERS([AL/al.h] ,,434 [AC_MSG_ERROR([cannot find openAL header.])])435 # checking for openAL-lib436 AC_CHECK_LIB([openal], [main], [FOUND_openal=yes])437 if test x$FOUND_openal = xyes ; then438 LIBS="$LIBS -lopenal"439 else440 echo "------------------"441 echo "openal library not found."442 echo "please install the openal library, which can be found at http://www.openal.org"443 echo "------------------"444 exit -1445 fi446 447 473 #-----# 448 474 # ogg # 449 475 #-----# 450 # checking for ogg-headers451 AC_CHECK_HEADERS([ogg/ogg.h] ,,452 [AC_MSG_ERROR([cannot find ogg header.])])453 # checking for ogg-lib454 AC_CHECK_LIB([ogg], [main], [FOUND_ogg=yes])455 if test x$FOUND_ogg = xyes ; then456 LIBS="$LIBS -logg"457 else458 echo "------------------"459 echo "ogg library not found."460 echo "please install the ogg library, which can be found at http://www.xiph.org/ogg/vorbis/index.html"461 echo "------------------"462 exit -1463 fi476 ## checking for ogg-headers 477 # AC_CHECK_HEADERS([ogg/ogg.h] ,, 478 # [AC_MSG_ERROR([cannot find ogg header.])]) 479 ## checking for ogg-lib 480 # AC_CHECK_LIB([ogg], [main], [FOUND_ogg=yes]) 481 # if test x$FOUND_ogg = xyes ; then 482 # LIBS="$LIBS -logg" 483 # else 484 # echo "------------------" 485 # echo "ogg library not found." 486 # echo "please install the ogg library, which can be found at http://www.xiph.org/ogg/vorbis/index.html" 487 # echo "------------------" 488 # exit -1 489 # fi 464 490 465 491 #--------# 466 492 # vorbis # 467 493 #--------# 468 # checking for vorbis-lib469 AC_CHECK_LIB([vorbis], [main], [FOUND_vorbis=yes])470 if test x$FOUND_vorbis = xyes ; then471 LIBS="$LIBS -lvorbis"472 else473 echo "------------------"474 echo "vorbis library not found."475 echo "please install the vorbis library, which can be found at http://www.xiph.org/ogg/vorbis/index.html"476 echo "------------------"477 exit -1478 fi494 ## checking for vorbis-lib 495 # AC_CHECK_LIB([vorbis], [main], [FOUND_vorbis=yes]) 496 # if test x$FOUND_vorbis = xyes ; then 497 # LIBS="$LIBS -lvorbis" 498 # else 499 # echo "------------------" 500 # echo "vorbis library not found." 501 # echo "please install the vorbis library, which can be found at http://www.xiph.org/ogg/vorbis/index.html" 502 # echo "------------------" 503 # exit -1 504 # fi 479 505 480 506 #------------# 481 507 # vorbisfile # 482 508 #------------# 483 # checking for vorbis-headers484 AC_CHECK_HEADERS([vorbis/vorbisfile.h] ,,485 [AC_MSG_ERROR([cannot find vorbisfile header.])])486 # checking for vorbisfile-lib487 AC_CHECK_LIB([vorbisfile], [main], [FOUND_vorbisfile=yes])488 if test x$FOUND_vorbisfile = xyes ; then489 LIBS="$LIBS -lvorbisfile"490 else491 echo "------------------"492 echo "vorbisfile library not found."493 echo "please install the vorbisfile library, which can be found at http://www.xiph.org/ogg/vorbis/index.html"494 echo "------------------"495 exit -1496 fi509 ## checking for vorbis-headers 510 # AC_CHECK_HEADERS([vorbis/vorbisfile.h] ,, 511 # [AC_MSG_ERROR([cannot find vorbisfile header.])]) 512 ## checking for vorbisfile-lib 513 # AC_CHECK_LIB([vorbisfile], [main], [FOUND_vorbisfile=yes]) 514 # if test x$FOUND_vorbisfile = xyes ; then 515 # LIBS="$LIBS -lvorbisfile" 516 # else 517 # echo "------------------" 518 # echo "vorbisfile library not found." 519 # echo "please install the vorbisfile library, which can be found at http://www.xiph.org/ogg/vorbis/index.html" 520 # echo "------------------" 521 # exit -1 522 # fi 497 523 498 524 #-----# -
orxonox/trunk/src/defs/stdincl.h
r4381 r4697 14 14 15 15 #ifdef __WIN32__ 16 #include <windows.h>16 //#include <windows.h> 17 17 #endif 18 18 -
orxonox/trunk/src/lib/graphics/importer/md2Model.cc
r4682 r4697 20 20 #include "resource_manager.h" 21 21 22 #include <fstream>22 //#include <fstream> 23 23 24 24
Note: See TracChangeset
for help on using the changeset viewer.