Changeset 2989 in orxonox.OLD for orxonox/trunk/configure
- Timestamp:
- Nov 25, 2004, 11:13:25 PM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/configure
r2981 r2989 312 312 #endif" 313 313 314 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot CXX CXXFLAGS LDFLAGS CPPFLAGS ac_ct_CXX EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CC CFLAGS ac_ct_CC CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CPP EGREP MSBITFIELDS SDL_CONFIG SDL_CFLAGS SDL_LIBS PKG_CONFIG GTK2_CFLAGS GTK2_LIBS HAVE_GTK2_TRUE HAVE_GTK2_FALSE LIBOBJS LTLIBOBJS'314 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot CXX CXXFLAGS LDFLAGS CPPFLAGS ac_ct_CXX EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CC CFLAGS ac_ct_CC CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CPP EGREP SDL_CONFIG SDL_CFLAGS SDL_LIBS MSBITFIELDS PKG_CONFIG GTK2_CFLAGS GTK2_LIBS HAVE_GTK2_TRUE HAVE_GTK2_FALSE LIBOBJS LTLIBOBJS' 315 315 ac_subst_files='' 316 316 … … 4385 4385 fi 4386 4386 4387 4388 4387 # checking for mingw32 4389 4388 echo "$as_me:$LINENO: checking for main in -lmingw32" >&5 … … 4452 4451 LIBS="$LIBS -lmingw32" 4453 4452 fi 4454 4455 ;; 4456 4457 ### LINUX ### 4458 *-*-linux*) 4459 echo "Linux detected" 4460 4461 Linux="yes" 4462 4463 # checking gl header 4464 4465 for ac_header in GL/gl.h 4453 # checking for SDL-headers 4454 4455 for ac_header in SDL/SDL.h 4466 4456 do 4467 4457 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` … … 4609 4599 4610 4600 else 4611 { { echo "$as_me:$LINENO: error: cannot find openglheaders" >&54612 echo "$as_me: error: cannot find openglheaders" >&2;}4601 { { echo "$as_me:$LINENO: error: cannot find SDL headers" >&5 4602 echo "$as_me: error: cannot find SDL headers" >&2;} 4613 4603 { (exit 1); exit 1; }; } 4614 4604 fi … … 4617 4607 4618 4608 4619 # checking for Unix GL4620 echo "$as_me:$LINENO: checking for main in -lGL" >&54621 echo $ECHO_N "checking for main in -l GL... $ECHO_C" >&64622 if test "${ac_cv_lib_ GL_main+set}" = set; then4609 #checking for libSDL 4610 echo "$as_me:$LINENO: checking for main in -lsdlmain" >&5 4611 echo $ECHO_N "checking for main in -lsdlmain... $ECHO_C" >&6 4612 if test "${ac_cv_lib_sdlmain_main+set}" = set; then 4623 4613 echo $ECHO_N "(cached) $ECHO_C" >&6 4624 4614 else 4625 4615 ac_check_lib_save_LIBS=$LIBS 4626 LIBS="-l GL$LIBS"4616 LIBS="-lsdlmain $LIBS" 4627 4617 cat >conftest.$ac_ext <<_ACEOF 4628 4618 /* confdefs.h. */ … … 4663 4653 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4664 4654 (exit $ac_status); }; }; then 4665 ac_cv_lib_ GL_main=yes4655 ac_cv_lib_sdlmain_main=yes 4666 4656 else 4667 4657 echo "$as_me: failed program was:" >&5 4668 4658 sed 's/^/| /' conftest.$ac_ext >&5 4669 4659 4670 ac_cv_lib_ GL_main=no4660 ac_cv_lib_sdlmain_main=no 4671 4661 fi 4672 4662 rm -f conftest.err conftest.$ac_objext \ … … 4674 4664 LIBS=$ac_check_lib_save_LIBS 4675 4665 fi 4676 echo "$as_me:$LINENO: result: $ac_cv_lib_GL_main" >&5 4677 echo "${ECHO_T}$ac_cv_lib_GL_main" >&6 4678 if test $ac_cv_lib_GL_main = yes; then 4679 FOUND_GL=yes 4680 fi 4681 4682 if test "$FOUND_GL" = "yes" ; then 4683 LIBS="$LIBS -lGL" 4684 else 4685 echo "------------------" 4686 echo "opengl not found." 4687 echo "please install the opengl package which can be found at http://www.opengl.org" 4688 echo "------------------" 4689 exit -1 4690 fi 4691 4692 # cheking for GLU-header 4693 4694 for ac_header in GL/glu.h 4666 echo "$as_me:$LINENO: result: $ac_cv_lib_sdlmain_main" >&5 4667 echo "${ECHO_T}$ac_cv_lib_sdlmain_main" >&6 4668 if test $ac_cv_lib_sdlmain_main = yes; then 4669 FOUND_sdlmain=yes 4670 fi 4671 4672 if test "$FOUND_sdlmain" = "yes" ; then 4673 LIBS="$LIBS -lsdlmain" 4674 else 4675 echo "------------------" 4676 echo "SDL library not found." 4677 echo "please install the SDL library, which can be found at http://www.libsdl.org" 4678 echo "------------------" 4679 exit 1 4680 fi 4681 echo "$as_me:$LINENO: checking for main in -lsdl" >&5 4682 echo $ECHO_N "checking for main in -lsdl... $ECHO_C" >&6 4683 if test "${ac_cv_lib_sdl_main+set}" = set; then 4684 echo $ECHO_N "(cached) $ECHO_C" >&6 4685 else 4686 ac_check_lib_save_LIBS=$LIBS 4687 LIBS="-lsdl $LIBS" 4688 cat >conftest.$ac_ext <<_ACEOF 4689 /* confdefs.h. */ 4690 _ACEOF 4691 cat confdefs.h >>conftest.$ac_ext 4692 cat >>conftest.$ac_ext <<_ACEOF 4693 /* end confdefs.h. */ 4694 4695 4696 int 4697 main () 4698 { 4699 main (); 4700 ; 4701 return 0; 4702 } 4703 _ACEOF 4704 rm -f conftest.$ac_objext conftest$ac_exeext 4705 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4706 (eval $ac_link) 2>conftest.er1 4707 ac_status=$? 4708 grep -v '^ *+' conftest.er1 >conftest.err 4709 rm -f conftest.er1 4710 cat conftest.err >&5 4711 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4712 (exit $ac_status); } && 4713 { ac_try='test -z "$ac_c_werror_flag" 4714 || test ! -s conftest.err' 4715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4716 (eval $ac_try) 2>&5 4717 ac_status=$? 4718 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4719 (exit $ac_status); }; } && 4720 { ac_try='test -s conftest$ac_exeext' 4721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4722 (eval $ac_try) 2>&5 4723 ac_status=$? 4724 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4725 (exit $ac_status); }; }; then 4726 ac_cv_lib_sdl_main=yes 4727 else 4728 echo "$as_me: failed program was:" >&5 4729 sed 's/^/| /' conftest.$ac_ext >&5 4730 4731 ac_cv_lib_sdl_main=no 4732 fi 4733 rm -f conftest.err conftest.$ac_objext \ 4734 conftest$ac_exeext conftest.$ac_ext 4735 LIBS=$ac_check_lib_save_LIBS 4736 fi 4737 echo "$as_me:$LINENO: result: $ac_cv_lib_sdl_main" >&5 4738 echo "${ECHO_T}$ac_cv_lib_sdl_main" >&6 4739 if test $ac_cv_lib_sdl_main = yes; then 4740 FOUND_sdl=yes 4741 fi 4742 4743 if test "$FOUND_sdl" = "yes" ; then 4744 LIBS="$LIBS -lsdl" 4745 else 4746 echo "------------------" 4747 echo "SDL library not found." 4748 echo "please install the SDL library, which can be found at http://www.libsdl.org" 4749 echo "------------------" 4750 exit -1 4751 fi 4752 4753 4754 ;; 4755 4756 ### LINUX ### 4757 *-*-linux*) 4758 echo "Linux detected" 4759 4760 Linux="yes" 4761 4762 # checking gl header 4763 4764 for ac_header in GL/gl.h 4695 4765 do 4696 4766 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` … … 4846 4916 4847 4917 4918 # checking for Unix GL 4919 echo "$as_me:$LINENO: checking for main in -lGL" >&5 4920 echo $ECHO_N "checking for main in -lGL... $ECHO_C" >&6 4921 if test "${ac_cv_lib_GL_main+set}" = set; then 4922 echo $ECHO_N "(cached) $ECHO_C" >&6 4923 else 4924 ac_check_lib_save_LIBS=$LIBS 4925 LIBS="-lGL $LIBS" 4926 cat >conftest.$ac_ext <<_ACEOF 4927 /* confdefs.h. */ 4928 _ACEOF 4929 cat confdefs.h >>conftest.$ac_ext 4930 cat >>conftest.$ac_ext <<_ACEOF 4931 /* end confdefs.h. */ 4932 4933 4934 int 4935 main () 4936 { 4937 main (); 4938 ; 4939 return 0; 4940 } 4941 _ACEOF 4942 rm -f conftest.$ac_objext conftest$ac_exeext 4943 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4944 (eval $ac_link) 2>conftest.er1 4945 ac_status=$? 4946 grep -v '^ *+' conftest.er1 >conftest.err 4947 rm -f conftest.er1 4948 cat conftest.err >&5 4949 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4950 (exit $ac_status); } && 4951 { ac_try='test -z "$ac_c_werror_flag" 4952 || test ! -s conftest.err' 4953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4954 (eval $ac_try) 2>&5 4955 ac_status=$? 4956 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4957 (exit $ac_status); }; } && 4958 { ac_try='test -s conftest$ac_exeext' 4959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4960 (eval $ac_try) 2>&5 4961 ac_status=$? 4962 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4963 (exit $ac_status); }; }; then 4964 ac_cv_lib_GL_main=yes 4965 else 4966 echo "$as_me: failed program was:" >&5 4967 sed 's/^/| /' conftest.$ac_ext >&5 4968 4969 ac_cv_lib_GL_main=no 4970 fi 4971 rm -f conftest.err conftest.$ac_objext \ 4972 conftest$ac_exeext conftest.$ac_ext 4973 LIBS=$ac_check_lib_save_LIBS 4974 fi 4975 echo "$as_me:$LINENO: result: $ac_cv_lib_GL_main" >&5 4976 echo "${ECHO_T}$ac_cv_lib_GL_main" >&6 4977 if test $ac_cv_lib_GL_main = yes; then 4978 FOUND_GL=yes 4979 fi 4980 4981 if test "$FOUND_GL" = "yes" ; then 4982 LIBS="$LIBS -lGL" 4983 else 4984 echo "------------------" 4985 echo "opengl not found." 4986 echo "please install the opengl package which can be found at http://www.opengl.org" 4987 echo "------------------" 4988 exit -1 4989 fi 4990 4991 # cheking for GLU-header 4992 4993 for ac_header in GL/glu.h 4994 do 4995 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 4996 if eval "test \"\${$as_ac_Header+set}\" = set"; then 4997 echo "$as_me:$LINENO: checking for $ac_header" >&5 4998 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 4999 if eval "test \"\${$as_ac_Header+set}\" = set"; then 5000 echo $ECHO_N "(cached) $ECHO_C" >&6 5001 fi 5002 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 5003 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 5004 else 5005 # Is the header compilable? 5006 echo "$as_me:$LINENO: checking $ac_header usability" >&5 5007 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 5008 cat >conftest.$ac_ext <<_ACEOF 5009 /* confdefs.h. */ 5010 _ACEOF 5011 cat confdefs.h >>conftest.$ac_ext 5012 cat >>conftest.$ac_ext <<_ACEOF 5013 /* end confdefs.h. */ 5014 $ac_includes_default 5015 #include <$ac_header> 5016 _ACEOF 5017 rm -f conftest.$ac_objext 5018 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5019 (eval $ac_compile) 2>conftest.er1 5020 ac_status=$? 5021 grep -v '^ *+' conftest.er1 >conftest.err 5022 rm -f conftest.er1 5023 cat conftest.err >&5 5024 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5025 (exit $ac_status); } && 5026 { ac_try='test -z "$ac_c_werror_flag" 5027 || test ! -s conftest.err' 5028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5029 (eval $ac_try) 2>&5 5030 ac_status=$? 5031 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5032 (exit $ac_status); }; } && 5033 { ac_try='test -s conftest.$ac_objext' 5034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5035 (eval $ac_try) 2>&5 5036 ac_status=$? 5037 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5038 (exit $ac_status); }; }; then 5039 ac_header_compiler=yes 5040 else 5041 echo "$as_me: failed program was:" >&5 5042 sed 's/^/| /' conftest.$ac_ext >&5 5043 5044 ac_header_compiler=no 5045 fi 5046 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5047 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 5048 echo "${ECHO_T}$ac_header_compiler" >&6 5049 5050 # Is the header present? 5051 echo "$as_me:$LINENO: checking $ac_header presence" >&5 5052 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 5053 cat >conftest.$ac_ext <<_ACEOF 5054 /* confdefs.h. */ 5055 _ACEOF 5056 cat confdefs.h >>conftest.$ac_ext 5057 cat >>conftest.$ac_ext <<_ACEOF 5058 /* end confdefs.h. */ 5059 #include <$ac_header> 5060 _ACEOF 5061 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 5062 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 5063 ac_status=$? 5064 grep -v '^ *+' conftest.er1 >conftest.err 5065 rm -f conftest.er1 5066 cat conftest.err >&5 5067 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5068 (exit $ac_status); } >/dev/null; then 5069 if test -s conftest.err; then 5070 ac_cpp_err=$ac_c_preproc_warn_flag 5071 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 5072 else 5073 ac_cpp_err= 5074 fi 5075 else 5076 ac_cpp_err=yes 5077 fi 5078 if test -z "$ac_cpp_err"; then 5079 ac_header_preproc=yes 5080 else 5081 echo "$as_me: failed program was:" >&5 5082 sed 's/^/| /' conftest.$ac_ext >&5 5083 5084 ac_header_preproc=no 5085 fi 5086 rm -f conftest.err conftest.$ac_ext 5087 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 5088 echo "${ECHO_T}$ac_header_preproc" >&6 5089 5090 # So? What about this header? 5091 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 5092 yes:no: ) 5093 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 5094 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 5095 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 5096 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 5097 ac_header_preproc=yes 5098 ;; 5099 no:yes:* ) 5100 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 5101 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 5102 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 5103 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 5104 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 5105 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 5106 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 5107 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 5108 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 5109 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 5110 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 5111 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 5112 ( 5113 cat <<\_ASBOX 5114 ## ------------------------------------------- ## 5115 ## Report this to orxonox-dev@mail.datacore.ch ## 5116 ## ------------------------------------------- ## 5117 _ASBOX 5118 ) | 5119 sed "s/^/$as_me: WARNING: /" >&2 5120 ;; 5121 esac 5122 echo "$as_me:$LINENO: checking for $ac_header" >&5 5123 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 5124 if eval "test \"\${$as_ac_Header+set}\" = set"; then 5125 echo $ECHO_N "(cached) $ECHO_C" >&6 5126 else 5127 eval "$as_ac_Header=\$ac_header_preproc" 5128 fi 5129 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 5130 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 5131 5132 fi 5133 if test `eval echo '${'$as_ac_Header'}'` = yes; then 5134 cat >>confdefs.h <<_ACEOF 5135 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 5136 _ACEOF 5137 5138 else 5139 { { echo "$as_me:$LINENO: error: cannot find opengl headers" >&5 5140 echo "$as_me: error: cannot find opengl headers" >&2;} 5141 { (exit 1); exit 1; }; } 5142 fi 5143 5144 done 5145 5146 4848 5147 echo "$as_me:$LINENO: checking for gluProject in -lGLU" >&5 4849 5148 echo $ECHO_N "checking for gluProject in -lGLU... $ECHO_C" >&6 … … 4923 5222 exit -1 4924 5223 fi 4925 ;;4926 *)4927 mingw="no"4928 ;;4929 esac4930 4931 4932 4933 5224 4934 5225 ## checking for SDL 4935 SDL_VERSION=1.2.75226 SDL_VERSION=1.2.7 4936 5227 4937 5228 # Check whether --with-sdl-prefix or --without-sdl-prefix was given. … … 5228 5519 rm -f conf.sdltest 5229 5520 5230 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS" 5231 LIBS="$LIBS $SDL_LIBS" 5521 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS" 5522 LIBS="$LIBS $SDL_LIBS" 5523 ;; 5524 *) 5525 mingw="no" 5526 ;; 5527 esac 5528 5529 5530 5531 5232 5532 5233 5533 … … 7010 7310 s,@CPP@,$CPP,;t t 7011 7311 s,@EGREP@,$EGREP,;t t 7012 s,@MSBITFIELDS@,$MSBITFIELDS,;t t7013 7312 s,@SDL_CONFIG@,$SDL_CONFIG,;t t 7014 7313 s,@SDL_CFLAGS@,$SDL_CFLAGS,;t t 7015 7314 s,@SDL_LIBS@,$SDL_LIBS,;t t 7315 s,@MSBITFIELDS@,$MSBITFIELDS,;t t 7016 7316 s,@PKG_CONFIG@,$PKG_CONFIG,;t t 7017 7317 s,@GTK2_CFLAGS@,$GTK2_CFLAGS,;t t
Note: See TracChangeset
for help on using the changeset viewer.