Changeset 5224 in orxonox.OLD for trunk/configure
- Timestamp:
- Sep 23, 2005, 7:09:27 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/configure
r5221 r5224 3959 3959 if test "${with_shared_lib_path+set}" = set; then 3960 3960 withval="$with_shared_lib_path" 3961 SHARED_LIB_PATH=$ enableval3961 SHARED_LIB_PATH=$withval 3962 3962 fi; 3963 3964 if test x$SHARED_LIB_PATH = xno; then 3963 if test x$SHARED_LIB_PATH != xno; then 3964 echo "set to $SHARED_LIB_PATH" 3965 else 3965 3966 echo "no" 3966 else3967 echo $SHARED_LIB_PATH3968 3967 fi 3969 3968 … … 3996 3995 #define DEBUG $DEBUG 3997 3996 _ACEOF 3998 3999 3997 4000 3998 … … 4321 4319 echo "mingw-WINDOWS detected" 4322 4320 4323 CPPFLAGS="-I/usr/include -I/mingw/include "4321 CPPFLAGS="-I/usr/include -I/mingw/include $CPPFLAGS" 4324 4322 4325 4323 mingw="yes" … … 5539 5537 Linux="yes" 5540 5538 5541 CPPFLAGS="-I/usr/include" 5539 ##CPPFLAGS="-I/usr/include $CPPFLAGS" 5540 ##LDFLAGS="-L/usr/lib $LDFLAGS" 5542 5541 if test x$SHARED_LIB_PATH != xno; then 5543 echo "setting new LDFlAGS with $SHARED_LIB_PATH" 5544 LDFLAGS="-Wl,-rpath,$SHARED_LIB_PATH $LDFLAGS" 5545 fi 5546 LDFLAGS="-L/usr/lib" 5547 ## LDFLAGS="-L/usr/lib -L$HOME/tmp/lib $LDFLAGS" 5542 echo "setting new LDFLAGS with $SHARED_LIB_PATH" 5543 LDFLAGS="-Wl,-rpath,$SHARED_LIB_PATH -L$SHARED_LIB_PATH $LDFLAGS" 5544 fi 5548 5545 5549 5546 # checking gl header … … 5932 5929 5933 5930 5934 echo "$as_me:$LINENO: checking for main in -lGLU" >&5 5935 echo $ECHO_N "checking for main in -lGLU... $ECHO_C" >&6 5936 if test "${ac_cv_lib_GLU_main+set}" = set; then 5937 echo $ECHO_N "(cached) $ECHO_C" >&6 5938 else 5939 ac_check_lib_save_LIBS=$LIBS 5940 LIBS="-lGLU $LIBS" 5941 cat >conftest.$ac_ext <<_ACEOF 5942 /* confdefs.h. */ 5943 _ACEOF 5944 cat confdefs.h >>conftest.$ac_ext 5945 cat >>conftest.$ac_ext <<_ACEOF 5946 /* end confdefs.h. */ 5947 5948 5949 int 5950 main () 5951 { 5952 main (); 5953 ; 5954 return 0; 5955 } 5956 _ACEOF 5957 rm -f conftest.$ac_objext conftest$ac_exeext 5958 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5959 (eval $ac_link) 2>conftest.er1 5960 ac_status=$? 5961 grep -v '^ *+' conftest.er1 >conftest.err 5962 rm -f conftest.er1 5963 cat conftest.err >&5 5964 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5965 (exit $ac_status); } && 5966 { ac_try='test -z "$ac_c_werror_flag" 5967 || test ! -s conftest.err' 5968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5969 (eval $ac_try) 2>&5 5970 ac_status=$? 5971 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5972 (exit $ac_status); }; } && 5973 { ac_try='test -s conftest$ac_exeext' 5974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5975 (eval $ac_try) 2>&5 5976 ac_status=$? 5977 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5978 (exit $ac_status); }; }; then 5979 ac_cv_lib_GLU_main=yes 5980 else 5981 echo "$as_me: failed program was:" >&5 5982 sed 's/^/| /' conftest.$ac_ext >&5 5983 5984 ac_cv_lib_GLU_main=no 5985 fi 5986 rm -f conftest.err conftest.$ac_objext \ 5987 conftest$ac_exeext conftest.$ac_ext 5988 LIBS=$ac_check_lib_save_LIBS 5989 fi 5990 echo "$as_me:$LINENO: result: $ac_cv_lib_GLU_main" >&5 5991 echo "${ECHO_T}$ac_cv_lib_GLU_main" >&6 5992 if test $ac_cv_lib_GLU_main = yes; then 5993 FOUND_GLU=yes 5994 fi 5995 5996 if test x$FOUND_GLU = xyes ; then 5931 # AC_CHECK_LIB([GLU], [main], FOUND_GLU=yes) 5932 # if test x$FOUND_GLU = xyes ; then 5997 5933 LIBS="$LIBS -lGLU" 5998 else5999 echo "------------------"6000 echo "GLU library not found."6001 echo "please install the GLU library, that should come with openGL, which can be found at http://www.opengl.org"6002 echo "------------------"6003 exit -16004 fi5934 # else 5935 # echo "------------------" 5936 # echo "GLU library not found." 5937 # echo "please install the GLU library, that should come with openGL, which can be found at http://www.opengl.org" 5938 # echo "------------------" 5939 # exit -1 5940 # fi 6005 5941 6006 5942 #--------# … … 6235 6171 fi 6236 6172 # checking for alut 6237 # AC_CHECK_LIB([alut], [main], [FOUND_openal=yes]) 6238 # if test x$FOUND_openal = xyes ; then 6239 # LIBS="$LIBS -lalut" 6240 # fi 6241 6242 # checking for SDL 6243 echo "$as_me:$LINENO: checking for SDL-version" >&5 6244 echo $ECHO_N "checking for SDL-version... $ECHO_C" >&6 6245 SDL_VERSION=`sdl-config --version` 6246 echo $SDL_VERSION 6247 6248 6249 for ac_header in SDL.h 6173 6174 for ac_header in AL/alut.h 6250 6175 do 6251 6176 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` … … 6393 6318 6394 6319 else 6395 6396 for ac_header in SDL/SDL.h 6320 { { echo "$as_me:$LINENO: error: cannot find openAL Utility Toolkit (alut) header." >&5 6321 echo "$as_me: error: cannot find openAL Utility Toolkit (alut) header." >&2;} 6322 { (exit 1); exit 1; }; } 6323 fi 6324 6325 done 6326 6327 echo "$as_me:$LINENO: checking for main in -lalut" >&5 6328 echo $ECHO_N "checking for main in -lalut... $ECHO_C" >&6 6329 if test "${ac_cv_lib_alut_main+set}" = set; then 6330 echo $ECHO_N "(cached) $ECHO_C" >&6 6331 else 6332 ac_check_lib_save_LIBS=$LIBS 6333 LIBS="-lalut $LIBS" 6334 cat >conftest.$ac_ext <<_ACEOF 6335 /* confdefs.h. */ 6336 _ACEOF 6337 cat confdefs.h >>conftest.$ac_ext 6338 cat >>conftest.$ac_ext <<_ACEOF 6339 /* end confdefs.h. */ 6340 6341 6342 int 6343 main () 6344 { 6345 main (); 6346 ; 6347 return 0; 6348 } 6349 _ACEOF 6350 rm -f conftest.$ac_objext conftest$ac_exeext 6351 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6352 (eval $ac_link) 2>conftest.er1 6353 ac_status=$? 6354 grep -v '^ *+' conftest.er1 >conftest.err 6355 rm -f conftest.er1 6356 cat conftest.err >&5 6357 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6358 (exit $ac_status); } && 6359 { ac_try='test -z "$ac_c_werror_flag" 6360 || test ! -s conftest.err' 6361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6362 (eval $ac_try) 2>&5 6363 ac_status=$? 6364 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6365 (exit $ac_status); }; } && 6366 { ac_try='test -s conftest$ac_exeext' 6367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6368 (eval $ac_try) 2>&5 6369 ac_status=$? 6370 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6371 (exit $ac_status); }; }; then 6372 ac_cv_lib_alut_main=yes 6373 else 6374 echo "$as_me: failed program was:" >&5 6375 sed 's/^/| /' conftest.$ac_ext >&5 6376 6377 ac_cv_lib_alut_main=no 6378 fi 6379 rm -f conftest.err conftest.$ac_objext \ 6380 conftest$ac_exeext conftest.$ac_ext 6381 LIBS=$ac_check_lib_save_LIBS 6382 fi 6383 echo "$as_me:$LINENO: result: $ac_cv_lib_alut_main" >&5 6384 echo "${ECHO_T}$ac_cv_lib_alut_main" >&6 6385 if test $ac_cv_lib_alut_main = yes; then 6386 FOUND_alut=yes 6387 fi 6388 6389 if test x$FOUND_alut = xyes ; then 6390 LIBS="-lalut $LIBS" 6391 fi 6392 6393 # checking for SDL 6394 echo "$as_me:$LINENO: checking for SDL-version" >&5 6395 echo $ECHO_N "checking for SDL-version... $ECHO_C" >&6 6396 SDL_VERSION=`sdl-config --version` 6397 echo $SDL_VERSION 6398 6399 CPPFLAGS="$CPPFLAGS `sdl-config --cflags`" 6400 6401 for ac_header in SDL.h 6397 6402 do 6398 6403 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` … … 6540 6545 6541 6546 else 6547 6548 for ac_header in SDL/SDL.h 6549 do 6550 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 6551 if eval "test \"\${$as_ac_Header+set}\" = set"; then 6552 echo "$as_me:$LINENO: checking for $ac_header" >&5 6553 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 6554 if eval "test \"\${$as_ac_Header+set}\" = set"; then 6555 echo $ECHO_N "(cached) $ECHO_C" >&6 6556 fi 6557 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 6558 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 6559 else 6560 # Is the header compilable? 6561 echo "$as_me:$LINENO: checking $ac_header usability" >&5 6562 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 6563 cat >conftest.$ac_ext <<_ACEOF 6564 /* confdefs.h. */ 6565 _ACEOF 6566 cat confdefs.h >>conftest.$ac_ext 6567 cat >>conftest.$ac_ext <<_ACEOF 6568 /* end confdefs.h. */ 6569 $ac_includes_default 6570 #include <$ac_header> 6571 _ACEOF 6572 rm -f conftest.$ac_objext 6573 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6574 (eval $ac_compile) 2>conftest.er1 6575 ac_status=$? 6576 grep -v '^ *+' conftest.er1 >conftest.err 6577 rm -f conftest.er1 6578 cat conftest.err >&5 6579 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6580 (exit $ac_status); } && 6581 { ac_try='test -z "$ac_c_werror_flag" 6582 || test ! -s conftest.err' 6583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6584 (eval $ac_try) 2>&5 6585 ac_status=$? 6586 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6587 (exit $ac_status); }; } && 6588 { ac_try='test -s conftest.$ac_objext' 6589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6590 (eval $ac_try) 2>&5 6591 ac_status=$? 6592 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6593 (exit $ac_status); }; }; then 6594 ac_header_compiler=yes 6595 else 6596 echo "$as_me: failed program was:" >&5 6597 sed 's/^/| /' conftest.$ac_ext >&5 6598 6599 ac_header_compiler=no 6600 fi 6601 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 6602 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 6603 echo "${ECHO_T}$ac_header_compiler" >&6 6604 6605 # Is the header present? 6606 echo "$as_me:$LINENO: checking $ac_header presence" >&5 6607 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 6608 cat >conftest.$ac_ext <<_ACEOF 6609 /* confdefs.h. */ 6610 _ACEOF 6611 cat confdefs.h >>conftest.$ac_ext 6612 cat >>conftest.$ac_ext <<_ACEOF 6613 /* end confdefs.h. */ 6614 #include <$ac_header> 6615 _ACEOF 6616 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 6617 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 6618 ac_status=$? 6619 grep -v '^ *+' conftest.er1 >conftest.err 6620 rm -f conftest.er1 6621 cat conftest.err >&5 6622 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6623 (exit $ac_status); } >/dev/null; then 6624 if test -s conftest.err; then 6625 ac_cpp_err=$ac_c_preproc_warn_flag 6626 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 6627 else 6628 ac_cpp_err= 6629 fi 6630 else 6631 ac_cpp_err=yes 6632 fi 6633 if test -z "$ac_cpp_err"; then 6634 ac_header_preproc=yes 6635 else 6636 echo "$as_me: failed program was:" >&5 6637 sed 's/^/| /' conftest.$ac_ext >&5 6638 6639 ac_header_preproc=no 6640 fi 6641 rm -f conftest.err conftest.$ac_ext 6642 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 6643 echo "${ECHO_T}$ac_header_preproc" >&6 6644 6645 # So? What about this header? 6646 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 6647 yes:no: ) 6648 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 6649 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 6650 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 6651 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 6652 ac_header_preproc=yes 6653 ;; 6654 no:yes:* ) 6655 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 6656 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 6657 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 6658 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 6659 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 6660 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 6661 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 6662 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 6663 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 6664 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 6665 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 6666 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 6667 ( 6668 cat <<\_ASBOX 6669 ## ---------------------------------------------- ## 6670 ## Report this to orxonox-dev at mail.datacore.ch ## 6671 ## ---------------------------------------------- ## 6672 _ASBOX 6673 ) | 6674 sed "s/^/$as_me: WARNING: /" >&2 6675 ;; 6676 esac 6677 echo "$as_me:$LINENO: checking for $ac_header" >&5 6678 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 6679 if eval "test \"\${$as_ac_Header+set}\" = set"; then 6680 echo $ECHO_N "(cached) $ECHO_C" >&6 6681 else 6682 eval "$as_ac_Header=\$ac_header_preproc" 6683 fi 6684 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 6685 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 6686 6687 fi 6688 if test `eval echo '${'$as_ac_Header'}'` = yes; then 6689 cat >>confdefs.h <<_ACEOF 6690 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 6691 _ACEOF 6692 6693 else 6542 6694 { { echo "$as_me:$LINENO: error: cannot find SDL header. please download from libsdl.org" >&5 6543 6695 echo "$as_me: error: cannot find SDL header. please download from libsdl.org" >&2;} … … 6551 6703 done 6552 6704 6553 CPPFLAGS="`sdl-config --cflags` $CPPFLAGS"6705 LIBS="`sdl-config --libs` $LIBS" 6554 6706 echo "$as_me:$LINENO: checking for main in -lSDL" >&5 6555 6707 echo $ECHO_N "checking for main in -lSDL... $ECHO_C" >&6 … … 6615 6767 6616 6768 if test x$FOUND_SDL = xyes ; then 6617 LIBS="`sdl-config --libs` $LIBS" 6769 echo `sdl-config --libs` 6618 6770 else 6619 6771 echo "------------------"
Note: See TracChangeset
for help on using the changeset viewer.