- Timestamp:
- Oct 4, 2005, 9:29:49 PM (19 years ago)
- Location:
- trunk
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/config.h.in
r5265 r5280 49 49 /* Define to 1 if you have the <ogg/ogg.h> header file. */ 50 50 #undef HAVE_OGG_OGG_H 51 52 /* Define to 1 if you have the <OpenAL/al.h> header file. */ 53 #undef HAVE_OPENAL_AL_H 51 54 52 55 /* Define to 1 if you have the <OpenGL/glu.h> header file. */ -
trunk/configure
r5277 r5280 5762 5762 # openGL # 5763 5763 #--------# 5764 ac_save_LDFLAGS="${LDFLAGS}"5765 5766 5764 # checking gl header 5767 5765 … … 5980 5978 echo "${ECHO_T}$ac_cv_lib_GL_main" >&6 5981 5979 if test $ac_cv_lib_GL_main = yes; then 5982 FOUND_GL=yes; LIBS="$LIBS -lGL" ; LDFLAGS="${LDFLAGS} -lGL"5980 FOUND_GL=yes; LIBS="$LIBS -lGL" 5983 5981 fi 5984 5982 … … 6441 6439 exit -1 6442 6440 fi 6443 ## resetting LD-flags as before GL6444 LDFLAGS="${ac_save_LDFLAGS}"6445 6441 6446 6442 #--------# … … 7289 7285 7290 7286 CPPFLAGS="-I/sw/include -I/sw/include $CPPFLAGS" 7287 LDFLAGS="$LDFLAGS -L/sw/lib" 7291 7288 # checking gl header 7292 7289 … … 7603 7600 7604 7601 7605 ## SDL-check 7606 SDL_CFLAGS=`sdl-config --cflags` 7607 SDL_LIBS=`sdl-config --libs` 7608 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS" 7609 LIBS="$LIBS $SDL_LIBS" 7610 7611 7612 # checking for SDL-headers 7613 # AC_CHECK_HEADERS(SDL/SDL.h ,, 7614 # [AC_MSG_ERROR([cannot find SDL headers]) ]) 7615 7616 ## checking for SDL 7617 # SDL_VERSION=1.2.7 7618 # AM_PATH_SDL($SDL_VERSION, 7619 # :, 7620 # AC_MSG_ERROR([*** SDL version $SDL_VERSION not found!]) 7621 # ) 7622 7623 7624 ;; 7625 7626 *) 7627 ;; 7628 esac 7629 7630 7631 7632 ################################### 7633 ## CHECKING FOR HEADERS AND LIBS ## 7634 ################################### 7635 7636 #---------# 7637 # SDL_ttf # 7638 #---------# 7639 # checking for SDL_ttf-headers 7640 7641 for ac_header in SDL_ttf.h 7602 7603 # checking for GLEW-headers 7604 7605 for ac_header in GL/glew.h 7642 7606 do 7643 7607 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` … … 7785 7749 7786 7750 else 7787 7788 for ac_header in SDL/SDL_ttf.h 7751 { { echo "$as_me:$LINENO: error: cannot find glew headers" >&5 7752 echo "$as_me: error: cannot find glew headers" >&2;} 7753 { (exit 1); exit 1; }; } 7754 fi 7755 7756 done 7757 7758 # checking for GLEW-lib 7759 echo "$as_me:$LINENO: checking for main in -lGLEW" >&5 7760 echo $ECHO_N "checking for main in -lGLEW... $ECHO_C" >&6 7761 if test "${ac_cv_lib_GLEW_main+set}" = set; then 7762 echo $ECHO_N "(cached) $ECHO_C" >&6 7763 else 7764 ac_check_lib_save_LIBS=$LIBS 7765 LIBS="-lGLEW $LIBS" 7766 cat >conftest.$ac_ext <<_ACEOF 7767 /* confdefs.h. */ 7768 _ACEOF 7769 cat confdefs.h >>conftest.$ac_ext 7770 cat >>conftest.$ac_ext <<_ACEOF 7771 /* end confdefs.h. */ 7772 7773 7774 int 7775 main () 7776 { 7777 main (); 7778 ; 7779 return 0; 7780 } 7781 _ACEOF 7782 rm -f conftest.$ac_objext conftest$ac_exeext 7783 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7784 (eval $ac_link) 2>conftest.er1 7785 ac_status=$? 7786 grep -v '^ *+' conftest.er1 >conftest.err 7787 rm -f conftest.er1 7788 cat conftest.err >&5 7789 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7790 (exit $ac_status); } && 7791 { ac_try='test -z "$ac_c_werror_flag" 7792 || test ! -s conftest.err' 7793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7794 (eval $ac_try) 2>&5 7795 ac_status=$? 7796 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7797 (exit $ac_status); }; } && 7798 { ac_try='test -s conftest$ac_exeext' 7799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7800 (eval $ac_try) 2>&5 7801 ac_status=$? 7802 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7803 (exit $ac_status); }; }; then 7804 ac_cv_lib_GLEW_main=yes 7805 else 7806 echo "$as_me: failed program was:" >&5 7807 sed 's/^/| /' conftest.$ac_ext >&5 7808 7809 ac_cv_lib_GLEW_main=no 7810 fi 7811 rm -f conftest.err conftest.$ac_objext \ 7812 conftest$ac_exeext conftest.$ac_ext 7813 LIBS=$ac_check_lib_save_LIBS 7814 fi 7815 echo "$as_me:$LINENO: result: $ac_cv_lib_GLEW_main" >&5 7816 echo "${ECHO_T}$ac_cv_lib_GLEW_main" >&6 7817 if test $ac_cv_lib_GLEW_main = yes; then 7818 FOUND_GLEW=yes; LIBS="$LIBS -lGLEW" 7819 fi 7820 7821 if test x$FOUND_GLEW != xyes ; then 7822 echo "------------------" 7823 echo "glew not found." 7824 echo "please install the glew package which can be found at http://glew.sourceforge.net" 7825 echo "------------------" 7826 exit -1 7827 fi 7828 7829 7830 7831 for ac_header in OpenAL/al.h 7789 7832 do 7790 7833 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` … … 7932 7975 7933 7976 else 7934 { { echo "$as_me:$LINENO: error: cannot find SDL_ttf header." >&57935 echo "$as_me: error: cannot find SDL_ttf header." >&2;}7977 { { echo "$as_me:$LINENO: error: cannot find opengl headers" >&5 7978 echo "$as_me: error: cannot find opengl headers" >&2;} 7936 7979 { (exit 1); exit 1; }; } 7937 7980 fi … … 7939 7982 done 7940 7983 7941 fi 7942 7943 done 7944 7945 # checking for SDL_ttf-lib 7946 echo "$as_me:$LINENO: checking for TTF_OpenFont in -lSDL_ttf" >&5 7947 echo $ECHO_N "checking for TTF_OpenFont in -lSDL_ttf... $ECHO_C" >&6 7948 if test "${ac_cv_lib_SDL_ttf_TTF_OpenFont+set}" = set; then 7949 echo $ECHO_N "(cached) $ECHO_C" >&6 7950 else 7951 ac_check_lib_save_LIBS=$LIBS 7952 LIBS="-lSDL_ttf $LIBS" 7953 cat >conftest.$ac_ext <<_ACEOF 7954 /* confdefs.h. */ 7955 _ACEOF 7956 cat confdefs.h >>conftest.$ac_ext 7957 cat >>conftest.$ac_ext <<_ACEOF 7958 /* end confdefs.h. */ 7959 7960 /* Override any gcc2 internal prototype to avoid an error. */ 7961 #ifdef __cplusplus 7962 extern "C" 7963 #endif 7964 /* We use char because int might match the return type of a gcc2 7965 builtin and then its argument prototype would still apply. */ 7966 char TTF_OpenFont (); 7967 int 7968 main () 7969 { 7970 TTF_OpenFont (); 7971 ; 7972 return 0; 7973 } 7974 _ACEOF 7975 rm -f conftest.$ac_objext conftest$ac_exeext 7976 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7977 (eval $ac_link) 2>conftest.er1 7978 ac_status=$? 7979 grep -v '^ *+' conftest.er1 >conftest.err 7980 rm -f conftest.er1 7981 cat conftest.err >&5 7982 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7983 (exit $ac_status); } && 7984 { ac_try='test -z "$ac_c_werror_flag" 7985 || test ! -s conftest.err' 7986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7987 (eval $ac_try) 2>&5 7988 ac_status=$? 7989 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7990 (exit $ac_status); }; } && 7991 { ac_try='test -s conftest$ac_exeext' 7992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7993 (eval $ac_try) 2>&5 7994 ac_status=$? 7995 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7996 (exit $ac_status); }; }; then 7997 ac_cv_lib_SDL_ttf_TTF_OpenFont=yes 7998 else 7999 echo "$as_me: failed program was:" >&5 8000 sed 's/^/| /' conftest.$ac_ext >&5 8001 8002 ac_cv_lib_SDL_ttf_TTF_OpenFont=no 8003 fi 8004 rm -f conftest.err conftest.$ac_objext \ 8005 conftest$ac_exeext conftest.$ac_ext 8006 LIBS=$ac_check_lib_save_LIBS 8007 fi 8008 echo "$as_me:$LINENO: result: $ac_cv_lib_SDL_ttf_TTF_OpenFont" >&5 8009 echo "${ECHO_T}$ac_cv_lib_SDL_ttf_TTF_OpenFont" >&6 8010 if test $ac_cv_lib_SDL_ttf_TTF_OpenFont = yes; then 8011 FOUND_SDL_ttf=yes; LIBS="$LIBS -lSDL_ttf" 8012 fi 8013 8014 if test x$FOUND_SDL_ttf != xyes ; then 8015 echo "------------------" 8016 echo "SDL_ttf library not found." 8017 echo "please install the SDL_ttf library, which can be found at http://www.libsdl.org/projects/SDL_ttf/" 8018 echo "------------------" 8019 exit -1 8020 fi 8021 8022 #-----------# 8023 # SDL_Image # 8024 #-----------# 8025 # checking for SDL_image-headers 8026 8027 for ac_header in SDL_image.h 7984 HAVE_OPENAL=yes 7985 LIBS="$LIBS -framework OpenAL" 7986 7987 7988 ## SDL-check 7989 # SDL_CFLAGS=`sdl-config --cflags` 7990 # SDL_LIBS=`sdl-config --libs` 7991 # CXXFLAGS="$CXXFLAGS $SDL_CFLAGS" 7992 # LIBS="$LIBS $SDL_LIBS" 7993 7994 for ac_header in SDL/SDL.h 8028 7995 do 8029 7996 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` … … 8171 8138 8172 8139 else 8173 8174 for ac_header in SDL/SDL_image.h 8140 { { echo "$as_me:$LINENO: error: cannot find SDL headers" >&5 8141 echo "$as_me: error: cannot find SDL headers" >&2;} 8142 { (exit 1); exit 1; }; } 8143 fi 8144 8145 done 8146 8147 HAVE_SDL=yes 8148 LIBS="$LIBS -framework SDL" 8149 8150 # checking for SDL-headers 8151 # AC_CHECK_HEADERS(SDL/SDL.h ,, 8152 # [AC_MSG_ERROR([cannot find SDL headers]) ]) 8153 8154 ## checking for SDL 8155 # SDL_VERSION=1.2.7 8156 # AM_PATH_SDL($SDL_VERSION, 8157 # :, 8158 # AC_MSG_ERROR([*** SDL version $SDL_VERSION not found!]) 8159 # ) 8160 8161 8162 ;; 8163 8164 *) 8165 ;; 8166 esac 8167 8168 8169 8170 ################################### 8171 ## CHECKING FOR HEADERS AND LIBS ## 8172 ################################### 8173 8174 #---------# 8175 # SDL_ttf # 8176 #---------# 8177 # checking for SDL_ttf-headers 8178 8179 for ac_header in SDL_ttf.h 8175 8180 do 8176 8181 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` … … 8318 8323 8319 8324 else 8325 8326 for ac_header in SDL/SDL_ttf.h 8327 do 8328 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 8329 if eval "test \"\${$as_ac_Header+set}\" = set"; then 8330 echo "$as_me:$LINENO: checking for $ac_header" >&5 8331 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 8332 if eval "test \"\${$as_ac_Header+set}\" = set"; then 8333 echo $ECHO_N "(cached) $ECHO_C" >&6 8334 fi 8335 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 8336 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 8337 else 8338 # Is the header compilable? 8339 echo "$as_me:$LINENO: checking $ac_header usability" >&5 8340 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 8341 cat >conftest.$ac_ext <<_ACEOF 8342 /* confdefs.h. */ 8343 _ACEOF 8344 cat confdefs.h >>conftest.$ac_ext 8345 cat >>conftest.$ac_ext <<_ACEOF 8346 /* end confdefs.h. */ 8347 $ac_includes_default 8348 #include <$ac_header> 8349 _ACEOF 8350 rm -f conftest.$ac_objext 8351 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8352 (eval $ac_compile) 2>conftest.er1 8353 ac_status=$? 8354 grep -v '^ *+' conftest.er1 >conftest.err 8355 rm -f conftest.er1 8356 cat conftest.err >&5 8357 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8358 (exit $ac_status); } && 8359 { ac_try='test -z "$ac_c_werror_flag" 8360 || test ! -s conftest.err' 8361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8362 (eval $ac_try) 2>&5 8363 ac_status=$? 8364 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8365 (exit $ac_status); }; } && 8366 { ac_try='test -s conftest.$ac_objext' 8367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8368 (eval $ac_try) 2>&5 8369 ac_status=$? 8370 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8371 (exit $ac_status); }; }; then 8372 ac_header_compiler=yes 8373 else 8374 echo "$as_me: failed program was:" >&5 8375 sed 's/^/| /' conftest.$ac_ext >&5 8376 8377 ac_header_compiler=no 8378 fi 8379 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 8380 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 8381 echo "${ECHO_T}$ac_header_compiler" >&6 8382 8383 # Is the header present? 8384 echo "$as_me:$LINENO: checking $ac_header presence" >&5 8385 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 8386 cat >conftest.$ac_ext <<_ACEOF 8387 /* confdefs.h. */ 8388 _ACEOF 8389 cat confdefs.h >>conftest.$ac_ext 8390 cat >>conftest.$ac_ext <<_ACEOF 8391 /* end confdefs.h. */ 8392 #include <$ac_header> 8393 _ACEOF 8394 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 8395 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 8396 ac_status=$? 8397 grep -v '^ *+' conftest.er1 >conftest.err 8398 rm -f conftest.er1 8399 cat conftest.err >&5 8400 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8401 (exit $ac_status); } >/dev/null; then 8402 if test -s conftest.err; then 8403 ac_cpp_err=$ac_c_preproc_warn_flag 8404 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 8405 else 8406 ac_cpp_err= 8407 fi 8408 else 8409 ac_cpp_err=yes 8410 fi 8411 if test -z "$ac_cpp_err"; then 8412 ac_header_preproc=yes 8413 else 8414 echo "$as_me: failed program was:" >&5 8415 sed 's/^/| /' conftest.$ac_ext >&5 8416 8417 ac_header_preproc=no 8418 fi 8419 rm -f conftest.err conftest.$ac_ext 8420 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 8421 echo "${ECHO_T}$ac_header_preproc" >&6 8422 8423 # So? What about this header? 8424 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 8425 yes:no: ) 8426 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 8427 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 8428 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 8429 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 8430 ac_header_preproc=yes 8431 ;; 8432 no:yes:* ) 8433 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 8434 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 8435 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 8436 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 8437 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 8438 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 8439 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 8440 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 8441 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 8442 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 8443 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 8444 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 8445 ( 8446 cat <<\_ASBOX 8447 ## ---------------------------------------------- ## 8448 ## Report this to orxonox-dev at mail.datacore.ch ## 8449 ## ---------------------------------------------- ## 8450 _ASBOX 8451 ) | 8452 sed "s/^/$as_me: WARNING: /" >&2 8453 ;; 8454 esac 8455 echo "$as_me:$LINENO: checking for $ac_header" >&5 8456 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 8457 if eval "test \"\${$as_ac_Header+set}\" = set"; then 8458 echo $ECHO_N "(cached) $ECHO_C" >&6 8459 else 8460 eval "$as_ac_Header=\$ac_header_preproc" 8461 fi 8462 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 8463 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 8464 8465 fi 8466 if test `eval echo '${'$as_ac_Header'}'` = yes; then 8467 cat >>confdefs.h <<_ACEOF 8468 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 8469 _ACEOF 8470 8471 else 8472 { { echo "$as_me:$LINENO: error: cannot find SDL_ttf header." >&5 8473 echo "$as_me: error: cannot find SDL_ttf header." >&2;} 8474 { (exit 1); exit 1; }; } 8475 fi 8476 8477 done 8478 8479 fi 8480 8481 done 8482 8483 # checking for SDL_ttf-lib 8484 echo "$as_me:$LINENO: checking for TTF_OpenFont in -lSDL_ttf" >&5 8485 echo $ECHO_N "checking for TTF_OpenFont in -lSDL_ttf... $ECHO_C" >&6 8486 if test "${ac_cv_lib_SDL_ttf_TTF_OpenFont+set}" = set; then 8487 echo $ECHO_N "(cached) $ECHO_C" >&6 8488 else 8489 ac_check_lib_save_LIBS=$LIBS 8490 LIBS="-lSDL_ttf $LIBS" 8491 cat >conftest.$ac_ext <<_ACEOF 8492 /* confdefs.h. */ 8493 _ACEOF 8494 cat confdefs.h >>conftest.$ac_ext 8495 cat >>conftest.$ac_ext <<_ACEOF 8496 /* end confdefs.h. */ 8497 8498 /* Override any gcc2 internal prototype to avoid an error. */ 8499 #ifdef __cplusplus 8500 extern "C" 8501 #endif 8502 /* We use char because int might match the return type of a gcc2 8503 builtin and then its argument prototype would still apply. */ 8504 char TTF_OpenFont (); 8505 int 8506 main () 8507 { 8508 TTF_OpenFont (); 8509 ; 8510 return 0; 8511 } 8512 _ACEOF 8513 rm -f conftest.$ac_objext conftest$ac_exeext 8514 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8515 (eval $ac_link) 2>conftest.er1 8516 ac_status=$? 8517 grep -v '^ *+' conftest.er1 >conftest.err 8518 rm -f conftest.er1 8519 cat conftest.err >&5 8520 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8521 (exit $ac_status); } && 8522 { ac_try='test -z "$ac_c_werror_flag" 8523 || test ! -s conftest.err' 8524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8525 (eval $ac_try) 2>&5 8526 ac_status=$? 8527 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8528 (exit $ac_status); }; } && 8529 { ac_try='test -s conftest$ac_exeext' 8530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8531 (eval $ac_try) 2>&5 8532 ac_status=$? 8533 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8534 (exit $ac_status); }; }; then 8535 ac_cv_lib_SDL_ttf_TTF_OpenFont=yes 8536 else 8537 echo "$as_me: failed program was:" >&5 8538 sed 's/^/| /' conftest.$ac_ext >&5 8539 8540 ac_cv_lib_SDL_ttf_TTF_OpenFont=no 8541 fi 8542 rm -f conftest.err conftest.$ac_objext \ 8543 conftest$ac_exeext conftest.$ac_ext 8544 LIBS=$ac_check_lib_save_LIBS 8545 fi 8546 echo "$as_me:$LINENO: result: $ac_cv_lib_SDL_ttf_TTF_OpenFont" >&5 8547 echo "${ECHO_T}$ac_cv_lib_SDL_ttf_TTF_OpenFont" >&6 8548 if test $ac_cv_lib_SDL_ttf_TTF_OpenFont = yes; then 8549 FOUND_SDL_ttf=yes; LIBS="$LIBS -lSDL_ttf" 8550 fi 8551 8552 if test x$FOUND_SDL_ttf != xyes ; then 8553 echo "------------------" 8554 echo "SDL_ttf library not found." 8555 echo "please install the SDL_ttf library, which can be found at http://www.libsdl.org/projects/SDL_ttf/" 8556 echo "------------------" 8557 exit -1 8558 fi 8559 8560 #-----------# 8561 # SDL_Image # 8562 #-----------# 8563 # checking for SDL_image-headers 8564 8565 for ac_header in SDL_image.h 8566 do 8567 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 8568 if eval "test \"\${$as_ac_Header+set}\" = set"; then 8569 echo "$as_me:$LINENO: checking for $ac_header" >&5 8570 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 8571 if eval "test \"\${$as_ac_Header+set}\" = set"; then 8572 echo $ECHO_N "(cached) $ECHO_C" >&6 8573 fi 8574 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 8575 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 8576 else 8577 # Is the header compilable? 8578 echo "$as_me:$LINENO: checking $ac_header usability" >&5 8579 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 8580 cat >conftest.$ac_ext <<_ACEOF 8581 /* confdefs.h. */ 8582 _ACEOF 8583 cat confdefs.h >>conftest.$ac_ext 8584 cat >>conftest.$ac_ext <<_ACEOF 8585 /* end confdefs.h. */ 8586 $ac_includes_default 8587 #include <$ac_header> 8588 _ACEOF 8589 rm -f conftest.$ac_objext 8590 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8591 (eval $ac_compile) 2>conftest.er1 8592 ac_status=$? 8593 grep -v '^ *+' conftest.er1 >conftest.err 8594 rm -f conftest.er1 8595 cat conftest.err >&5 8596 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8597 (exit $ac_status); } && 8598 { ac_try='test -z "$ac_c_werror_flag" 8599 || test ! -s conftest.err' 8600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8601 (eval $ac_try) 2>&5 8602 ac_status=$? 8603 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8604 (exit $ac_status); }; } && 8605 { ac_try='test -s conftest.$ac_objext' 8606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8607 (eval $ac_try) 2>&5 8608 ac_status=$? 8609 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8610 (exit $ac_status); }; }; then 8611 ac_header_compiler=yes 8612 else 8613 echo "$as_me: failed program was:" >&5 8614 sed 's/^/| /' conftest.$ac_ext >&5 8615 8616 ac_header_compiler=no 8617 fi 8618 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 8619 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 8620 echo "${ECHO_T}$ac_header_compiler" >&6 8621 8622 # Is the header present? 8623 echo "$as_me:$LINENO: checking $ac_header presence" >&5 8624 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 8625 cat >conftest.$ac_ext <<_ACEOF 8626 /* confdefs.h. */ 8627 _ACEOF 8628 cat confdefs.h >>conftest.$ac_ext 8629 cat >>conftest.$ac_ext <<_ACEOF 8630 /* end confdefs.h. */ 8631 #include <$ac_header> 8632 _ACEOF 8633 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 8634 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 8635 ac_status=$? 8636 grep -v '^ *+' conftest.er1 >conftest.err 8637 rm -f conftest.er1 8638 cat conftest.err >&5 8639 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8640 (exit $ac_status); } >/dev/null; then 8641 if test -s conftest.err; then 8642 ac_cpp_err=$ac_c_preproc_warn_flag 8643 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 8644 else 8645 ac_cpp_err= 8646 fi 8647 else 8648 ac_cpp_err=yes 8649 fi 8650 if test -z "$ac_cpp_err"; then 8651 ac_header_preproc=yes 8652 else 8653 echo "$as_me: failed program was:" >&5 8654 sed 's/^/| /' conftest.$ac_ext >&5 8655 8656 ac_header_preproc=no 8657 fi 8658 rm -f conftest.err conftest.$ac_ext 8659 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 8660 echo "${ECHO_T}$ac_header_preproc" >&6 8661 8662 # So? What about this header? 8663 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 8664 yes:no: ) 8665 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 8666 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 8667 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 8668 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 8669 ac_header_preproc=yes 8670 ;; 8671 no:yes:* ) 8672 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 8673 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 8674 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 8675 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 8676 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 8677 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 8678 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 8679 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 8680 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 8681 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 8682 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 8683 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 8684 ( 8685 cat <<\_ASBOX 8686 ## ---------------------------------------------- ## 8687 ## Report this to orxonox-dev at mail.datacore.ch ## 8688 ## ---------------------------------------------- ## 8689 _ASBOX 8690 ) | 8691 sed "s/^/$as_me: WARNING: /" >&2 8692 ;; 8693 esac 8694 echo "$as_me:$LINENO: checking for $ac_header" >&5 8695 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 8696 if eval "test \"\${$as_ac_Header+set}\" = set"; then 8697 echo $ECHO_N "(cached) $ECHO_C" >&6 8698 else 8699 eval "$as_ac_Header=\$ac_header_preproc" 8700 fi 8701 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 8702 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 8703 8704 fi 8705 if test `eval echo '${'$as_ac_Header'}'` = yes; then 8706 cat >>confdefs.h <<_ACEOF 8707 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 8708 _ACEOF 8709 8710 else 8711 8712 for ac_header in SDL/SDL_image.h 8713 do 8714 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 8715 if eval "test \"\${$as_ac_Header+set}\" = set"; then 8716 echo "$as_me:$LINENO: checking for $ac_header" >&5 8717 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 8718 if eval "test \"\${$as_ac_Header+set}\" = set"; then 8719 echo $ECHO_N "(cached) $ECHO_C" >&6 8720 fi 8721 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 8722 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 8723 else 8724 # Is the header compilable? 8725 echo "$as_me:$LINENO: checking $ac_header usability" >&5 8726 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 8727 cat >conftest.$ac_ext <<_ACEOF 8728 /* confdefs.h. */ 8729 _ACEOF 8730 cat confdefs.h >>conftest.$ac_ext 8731 cat >>conftest.$ac_ext <<_ACEOF 8732 /* end confdefs.h. */ 8733 $ac_includes_default 8734 #include <$ac_header> 8735 _ACEOF 8736 rm -f conftest.$ac_objext 8737 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8738 (eval $ac_compile) 2>conftest.er1 8739 ac_status=$? 8740 grep -v '^ *+' conftest.er1 >conftest.err 8741 rm -f conftest.er1 8742 cat conftest.err >&5 8743 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8744 (exit $ac_status); } && 8745 { ac_try='test -z "$ac_c_werror_flag" 8746 || test ! -s conftest.err' 8747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8748 (eval $ac_try) 2>&5 8749 ac_status=$? 8750 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8751 (exit $ac_status); }; } && 8752 { ac_try='test -s conftest.$ac_objext' 8753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8754 (eval $ac_try) 2>&5 8755 ac_status=$? 8756 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8757 (exit $ac_status); }; }; then 8758 ac_header_compiler=yes 8759 else 8760 echo "$as_me: failed program was:" >&5 8761 sed 's/^/| /' conftest.$ac_ext >&5 8762 8763 ac_header_compiler=no 8764 fi 8765 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 8766 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 8767 echo "${ECHO_T}$ac_header_compiler" >&6 8768 8769 # Is the header present? 8770 echo "$as_me:$LINENO: checking $ac_header presence" >&5 8771 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 8772 cat >conftest.$ac_ext <<_ACEOF 8773 /* confdefs.h. */ 8774 _ACEOF 8775 cat confdefs.h >>conftest.$ac_ext 8776 cat >>conftest.$ac_ext <<_ACEOF 8777 /* end confdefs.h. */ 8778 #include <$ac_header> 8779 _ACEOF 8780 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 8781 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 8782 ac_status=$? 8783 grep -v '^ *+' conftest.er1 >conftest.err 8784 rm -f conftest.er1 8785 cat conftest.err >&5 8786 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8787 (exit $ac_status); } >/dev/null; then 8788 if test -s conftest.err; then 8789 ac_cpp_err=$ac_c_preproc_warn_flag 8790 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 8791 else 8792 ac_cpp_err= 8793 fi 8794 else 8795 ac_cpp_err=yes 8796 fi 8797 if test -z "$ac_cpp_err"; then 8798 ac_header_preproc=yes 8799 else 8800 echo "$as_me: failed program was:" >&5 8801 sed 's/^/| /' conftest.$ac_ext >&5 8802 8803 ac_header_preproc=no 8804 fi 8805 rm -f conftest.err conftest.$ac_ext 8806 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 8807 echo "${ECHO_T}$ac_header_preproc" >&6 8808 8809 # So? What about this header? 8810 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 8811 yes:no: ) 8812 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 8813 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 8814 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 8815 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 8816 ac_header_preproc=yes 8817 ;; 8818 no:yes:* ) 8819 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 8820 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 8821 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 8822 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 8823 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 8824 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 8825 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 8826 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 8827 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 8828 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 8829 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 8830 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 8831 ( 8832 cat <<\_ASBOX 8833 ## ---------------------------------------------- ## 8834 ## Report this to orxonox-dev at mail.datacore.ch ## 8835 ## ---------------------------------------------- ## 8836 _ASBOX 8837 ) | 8838 sed "s/^/$as_me: WARNING: /" >&2 8839 ;; 8840 esac 8841 echo "$as_me:$LINENO: checking for $ac_header" >&5 8842 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 8843 if eval "test \"\${$as_ac_Header+set}\" = set"; then 8844 echo $ECHO_N "(cached) $ECHO_C" >&6 8845 else 8846 eval "$as_ac_Header=\$ac_header_preproc" 8847 fi 8848 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 8849 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 8850 8851 fi 8852 if test `eval echo '${'$as_ac_Header'}'` = yes; then 8853 cat >>confdefs.h <<_ACEOF 8854 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 8855 _ACEOF 8856 8857 else 8320 8858 { { echo "$as_me:$LINENO: error: SDL_image header not found." >&5 8321 8859 echo "$as_me: error: SDL_image header not found." >&2;} … … 8395 8933 echo "------------------" 8396 8934 echo "SDL_image library not found." 8397 echo "please install the SDL_image library, which can be found at http://www.l ibsdl.org/projects/SDL_image/"8935 echo "please install the SDL_image library, which can be found at http://www.l ibsdl.org/projects/SDL_image/" 8398 8936 echo "------------------" 8399 8937 exit -1 -
trunk/src/lib/graphics/importer/abstract_model.h
r5039 r5280 24 24 #include "stdincl.h" 25 25 #include "base_object.h" 26 #include <math.h>27 26 28 27 -
trunk/src/world_entities/weapons/crosshair.cc
r5219 r5280 24 24 #include "state.h" 25 25 #include "material.h" 26 27 #include <iostream>28 26 29 27 using namespace std;
Note: See TracChangeset
for help on using the changeset viewer.