Changeset 2189 in orxonox.OLD for orxonox/branches/chris
- Timestamp:
- Jul 17, 2004, 10:57:20 AM (20 years ago)
- Location:
- orxonox/branches/chris
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/branches/chris/configure
r2188 r2189 1730 1730 case `uname` in 1731 1731 *MINGW*) 1732 mingw= yes1732 mingw="yes" 1733 1733 MSBITFIELDS="-mms-bitfields" 1734 1734 MWINDOWS="-mwindows" 1735 1735 ;; 1736 1736 *) 1737 mingw= no1737 mingw="no" 1738 1738 ;; 1739 1739 esac … … 4902 4902 fi 4903 4903 4904 ## mingw CHECK 4905 if test $mingw = yes ; then 4906 echo "$as_me:$LINENO: checking for main in -lmingw32" >&5 4907 echo $ECHO_N "checking for main in -lmingw32... $ECHO_C" >&6 4908 if test "${ac_cv_lib_mingw32_main+set}" = set; then 4909 echo $ECHO_N "(cached) $ECHO_C" >&6 4910 else 4911 ac_check_lib_save_LIBS=$LIBS 4912 LIBS="-lmingw32 $LIBS" 4913 cat >conftest.$ac_ext <<_ACEOF 4914 /* confdefs.h. */ 4915 _ACEOF 4916 cat confdefs.h >>conftest.$ac_ext 4917 cat >>conftest.$ac_ext <<_ACEOF 4918 /* end confdefs.h. */ 4919 4920 4921 int 4922 main () 4923 { 4924 main (); 4925 ; 4926 return 0; 4927 } 4928 _ACEOF 4929 rm -f conftest.$ac_objext conftest$ac_exeext 4930 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4931 (eval $ac_link) 2>conftest.er1 4932 ac_status=$? 4933 grep -v '^ *+' conftest.er1 >conftest.err 4934 rm -f conftest.er1 4935 cat conftest.err >&5 4936 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4937 (exit $ac_status); } && 4938 { ac_try='test -z "$ac_c_werror_flag" 4939 || test ! -s conftest.err' 4940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4941 (eval $ac_try) 2>&5 4942 ac_status=$? 4943 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4944 (exit $ac_status); }; } && 4945 { ac_try='test -s conftest$ac_exeext' 4946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4947 (eval $ac_try) 2>&5 4948 ac_status=$? 4949 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4950 (exit $ac_status); }; }; then 4951 ac_cv_lib_mingw32_main=yes 4952 else 4953 echo "$as_me: failed program was:" >&5 4954 sed 's/^/| /' conftest.$ac_ext >&5 4955 4956 ac_cv_lib_mingw32_main=no 4957 fi 4958 rm -f conftest.err conftest.$ac_objext \ 4959 conftest$ac_exeext conftest.$ac_ext 4960 LIBS=$ac_check_lib_save_LIBS 4961 fi 4962 echo "$as_me:$LINENO: result: $ac_cv_lib_mingw32_main" >&5 4963 echo "${ECHO_T}$ac_cv_lib_mingw32_main" >&6 4964 if test $ac_cv_lib_mingw32_main = yes; then 4965 FOUND_mingw32=yes 4966 fi 4967 4968 if test $FOUND_mingw32 = "yes"; then 4969 LIBS="$LIBS -lmingw32" 4970 fi 4971 fi 4972 4904 4973 ## SDL CHECK 4905 4974 … … 5059 5128 done 5060 5129 5061 5062 echo "$as_me:$LINENO: checking for main in -lSDL" >&55130 if test $mingw = no ; then 5131 echo "$as_me:$LINENO: checking for main in -lSDL" >&5 5063 5132 echo $ECHO_N "checking for main in -lSDL... $ECHO_C" >&6 5064 5133 if test "${ac_cv_lib_SDL_main+set}" = set; then … … 5122 5191 fi 5123 5192 5124 if test "$FOUND_SDL" = "yes" ; then5125 LIBS="$LIBS -lSDL"5126 # checking for Windows sdl library 5127 else 5128 echo "We did not find the Linux sdl Library. Checking for Windows Library" 5193 if test "$FOUND_SDL" = "yes" ; then 5194 LIBS="$LIBS -lSDL" 5195 fi 5196 # checking for Windows sdl library 5197 else 5129 5198 echo "$as_me:$LINENO: checking for main in -lsdlmain" >&5 5130 5199 echo $ECHO_N "checking for main in -lsdlmain... $ECHO_C" >&6 … … 5190 5259 5191 5260 if test "$FOUND_sdlmain" = "yes" ; then 5192 LIBS="$LIBS -lsdlmain -lsdl" 5193 else 5194 echo "------------------" 5195 echo "sdl library not found." 5196 echo "please install the libsdl, which can be found at http://www.libsdl.org" 5197 echo "------------------" 5198 exit -1 5261 LIBS="$LIBS -lsdlmain" 5199 5262 fi 5200 fi 5201 5202 #checking for pthread libs 5203 echo "$as_me:$LINENO: checking for main in -lpthread" >&5 5204 echo $ECHO_N "checking for main in -lpthread... $ECHO_C" >&6 5205 if test "${ac_cv_lib_pthread_main+set}" = set; then 5263 echo "$as_me:$LINENO: checking for main in -lsdl" >&5 5264 echo $ECHO_N "checking for main in -lsdl... $ECHO_C" >&6 5265 if test "${ac_cv_lib_sdl_main+set}" = set; then 5206 5266 echo $ECHO_N "(cached) $ECHO_C" >&6 5207 5267 else 5208 5268 ac_check_lib_save_LIBS=$LIBS 5209 LIBS="-l pthread$LIBS"5269 LIBS="-lsdl $LIBS" 5210 5270 cat >conftest.$ac_ext <<_ACEOF 5211 5271 /* confdefs.h. */ … … 5246 5306 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5247 5307 (exit $ac_status); }; }; then 5248 ac_cv_lib_ pthread_main=yes5308 ac_cv_lib_sdl_main=yes 5249 5309 else 5250 5310 echo "$as_me: failed program was:" >&5 5251 5311 sed 's/^/| /' conftest.$ac_ext >&5 5252 5312 5253 ac_cv_lib_ pthread_main=no5313 ac_cv_lib_sdl_main=no 5254 5314 fi 5255 5315 rm -f conftest.err conftest.$ac_objext \ … … 5257 5317 LIBS=$ac_check_lib_save_LIBS 5258 5318 fi 5259 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_main" >&5 5260 echo "${ECHO_T}$ac_cv_lib_pthread_main" >&6 5261 if test $ac_cv_lib_pthread_main = yes; then 5262 FOUND_pthread=yes 5263 fi 5264 5265 if test "$FOUND_pthread" = "yes" ; then 5266 LIBS="$LIBS -lpthread" 5267 fi 5268 5269 #checking for libs 5319 echo "$as_me:$LINENO: result: $ac_cv_lib_sdl_main" >&5 5320 echo "${ECHO_T}$ac_cv_lib_sdl_main" >&6 5321 if test $ac_cv_lib_sdl_main = yes; then 5322 FOUND_sdl=yes 5323 fi 5324 5325 if test "$FOUND_sdl" = "yes" ; then 5326 LIBS="$LIBS -lsdl" 5327 fi 5328 fi 5329 5330 #checking for pthread libs 5270 5331 echo "$as_me:$LINENO: checking for main in -lpthread" >&5 5271 5332 echo $ECHO_N "checking for main in -lpthread... $ECHO_C" >&6 … … 5333 5394 LIBS="$LIBS -lpthread" 5334 5395 fi 5335 5336 5396 5337 5397 -
orxonox/branches/chris/configure.ac
r2188 r2189 11 11 case `uname` in 12 12 *MINGW*) 13 mingw= yes13 mingw="yes" 14 14 MSBITFIELDS="-mms-bitfields" 15 15 MWINDOWS="-mwindows" 16 16 ;; 17 17 *) 18 mingw= no18 mingw="no" 19 19 ;; 20 20 esac … … 104 104 fi 105 105 106 ## mingw CHECK 107 if test $mingw = yes ; then 108 AC_CHECK_LIB([mingw32], [main], FOUND_mingw32=yes) 109 if test $FOUND_mingw32 = "yes"; then 110 LIBS="$LIBS -lmingw32" 111 fi 112 fi 113 106 114 ## SDL CHECK 107 115 … … 109 117 AC_CHECK_HEADERS(SDL/SDL.h ,, 110 118 [AC_MSG_ERROR([cannot find SDL headers]) ]) 111 112 AC_CHECK_LIB([SDL], [main], FOUND_SDL=yes) 113 if test "$FOUND_SDL" = "yes" ; then 114 LIBS="$LIBS -lSDL" 115 # checking for Windows sdl library 119 if test $mingw = no ; then 120 AC_CHECK_LIB([SDL], [main], FOUND_SDL=yes) 121 if test "$FOUND_SDL" = "yes" ; then 122 LIBS="$LIBS -lSDL" 123 fi 124 # checking for Windows sdl library 116 125 else 117 echo "We did not find the Linux sdl Library. Checking for Windows Library"118 126 AC_CHECK_LIB([sdlmain], [main], FOUND_sdlmain=yes) 119 127 if test "$FOUND_sdlmain" = "yes" ; then 120 LIBS="$LIBS -lsdlmain -lsdl" 121 else 122 echo "------------------" 123 echo "sdl library not found." 124 echo "please install the libsdl, which can be found at http://www.libsdl.org" 125 echo "------------------" 126 exit -1 128 LIBS="$LIBS -lsdlmain" 127 129 fi 130 AC_CHECK_LIB([sdl], [main], FOUND_sdl=yes) 131 if test "$FOUND_sdl" = "yes" ; then 132 LIBS="$LIBS -lsdl" 133 fi 128 134 fi 129 135 … … 133 139 LIBS="$LIBS -lpthread" 134 140 fi 135 136 #checking for libs137 AC_CHECK_LIB([pthread], [main], FOUND_pthread=yes)138 if test "$FOUND_pthread" = "yes" ; then139 LIBS="$LIBS -lpthread"140 fi141 142 141 143 142 -
orxonox/branches/chris/src/Makefile.am
r2188 r2189 9 9 10 10 # uncomment the following if bencoder requires the math library 11 orxonox_LDADD=-lm11 #orxonox_LDADD=-lm 12 12 13 13 #EXTRA_DIST=orxonox.lsm.in orxonox.spec.in orxonox.texinfo -
orxonox/branches/chris/src/Makefile.in
r2188 r2189 118 118 bin_PROGRAMS = orxonox 119 119 orxonox_SOURCES = orxonox.cc world.cc player.cc data_tank.cc world_entity.cc vector.cc camera.cc collision.cc command_node.cc ini_parser.cc keynames.cc track.cc 120 121 # uncomment the following if bencoder requires the math library122 orxonox_LDADD = -lm123 120 subdir = src 124 121 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 … … 134 131 ini_parser.$(OBJEXT) keynames.$(OBJEXT) track.$(OBJEXT) 135 132 orxonox_OBJECTS = $(am_orxonox_OBJECTS) 133 orxonox_LDADD = $(LDADD) 136 134 orxonox_DEPENDENCIES = 137 135 orxonox_LDFLAGS = … … 409 407 410 408 409 # uncomment the following if bencoder requires the math library 410 #orxonox_LDADD=-lm 411 411 412 #EXTRA_DIST=orxonox.lsm.in orxonox.spec.in orxonox.texinfo 412 413
Note: See TracChangeset
for help on using the changeset viewer.