- Timestamp:
- Oct 22, 2004, 2:36:12 PM (20 years ago)
- Location:
- orxonox/trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/config.h.in
r2190 r2627 3 3 /* Define to 1 if you have the `bzero' function. */ 4 4 #undef HAVE_BZERO 5 6 /* Define to 1 if you have the <GL/glut.h> header file. */7 #undef HAVE_GL_GLUT_H8 5 9 6 /* Define to 1 if you have the <GL/glu.h> header file. */ -
orxonox/trunk/configure
r2190 r2627 1723 1723 1724 1724 1725 1725 1726 ac_config_headers="$ac_config_headers config.h" 1726 1727 … … 4600 4601 fi 4601 4602 4602 4603 # cheking for libglut324604 4605 for ac_header in GL/glut.h4606 do4607 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`4608 if eval "test \"\${$as_ac_Header+set}\" = set"; then4609 echo "$as_me:$LINENO: checking for $ac_header" >&54610 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&64611 if eval "test \"\${$as_ac_Header+set}\" = set"; then4612 echo $ECHO_N "(cached) $ECHO_C" >&64613 fi4614 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&54615 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&64616 else4617 # Is the header compilable?4618 echo "$as_me:$LINENO: checking $ac_header usability" >&54619 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&64620 cat >conftest.$ac_ext <<_ACEOF4621 /* confdefs.h. */4622 _ACEOF4623 cat confdefs.h >>conftest.$ac_ext4624 cat >>conftest.$ac_ext <<_ACEOF4625 /* end confdefs.h. */4626 $ac_includes_default4627 #include <$ac_header>4628 _ACEOF4629 rm -f conftest.$ac_objext4630 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&54631 (eval $ac_compile) 2>conftest.er14632 ac_status=$?4633 grep -v '^ *+' conftest.er1 >conftest.err4634 rm -f conftest.er14635 cat conftest.err >&54636 echo "$as_me:$LINENO: \$? = $ac_status" >&54637 (exit $ac_status); } &&4638 { ac_try='test -z "$ac_c_werror_flag"4639 || test ! -s conftest.err'4640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&54641 (eval $ac_try) 2>&54642 ac_status=$?4643 echo "$as_me:$LINENO: \$? = $ac_status" >&54644 (exit $ac_status); }; } &&4645 { ac_try='test -s conftest.$ac_objext'4646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&54647 (eval $ac_try) 2>&54648 ac_status=$?4649 echo "$as_me:$LINENO: \$? = $ac_status" >&54650 (exit $ac_status); }; }; then4651 ac_header_compiler=yes4652 else4653 echo "$as_me: failed program was:" >&54654 sed 's/^/| /' conftest.$ac_ext >&54655 4656 ac_header_compiler=no4657 fi4658 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext4659 echo "$as_me:$LINENO: result: $ac_header_compiler" >&54660 echo "${ECHO_T}$ac_header_compiler" >&64661 4662 # Is the header present?4663 echo "$as_me:$LINENO: checking $ac_header presence" >&54664 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&64665 cat >conftest.$ac_ext <<_ACEOF4666 /* confdefs.h. */4667 _ACEOF4668 cat confdefs.h >>conftest.$ac_ext4669 cat >>conftest.$ac_ext <<_ACEOF4670 /* end confdefs.h. */4671 #include <$ac_header>4672 _ACEOF4673 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&54674 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er14675 ac_status=$?4676 grep -v '^ *+' conftest.er1 >conftest.err4677 rm -f conftest.er14678 cat conftest.err >&54679 echo "$as_me:$LINENO: \$? = $ac_status" >&54680 (exit $ac_status); } >/dev/null; then4681 if test -s conftest.err; then4682 ac_cpp_err=$ac_c_preproc_warn_flag4683 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag4684 else4685 ac_cpp_err=4686 fi4687 else4688 ac_cpp_err=yes4689 fi4690 if test -z "$ac_cpp_err"; then4691 ac_header_preproc=yes4692 else4693 echo "$as_me: failed program was:" >&54694 sed 's/^/| /' conftest.$ac_ext >&54695 4696 ac_header_preproc=no4697 fi4698 rm -f conftest.err conftest.$ac_ext4699 echo "$as_me:$LINENO: result: $ac_header_preproc" >&54700 echo "${ECHO_T}$ac_header_preproc" >&64701 4702 # So? What about this header?4703 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in4704 yes:no: )4705 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&54706 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}4707 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&54708 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}4709 ac_header_preproc=yes4710 ;;4711 no:yes:* )4712 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&54713 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}4714 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&54715 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}4716 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&54717 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}4718 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&54719 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}4720 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&54721 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}4722 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&54723 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}4724 (4725 cat <<\_ASBOX4726 ## ------------------------------------------- ##4727 ## Report this to orxonox-dev@mail.datacore.ch ##4728 ## ------------------------------------------- ##4729 _ASBOX4730 ) |4731 sed "s/^/$as_me: WARNING: /" >&24732 ;;4733 esac4734 echo "$as_me:$LINENO: checking for $ac_header" >&54735 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&64736 if eval "test \"\${$as_ac_Header+set}\" = set"; then4737 echo $ECHO_N "(cached) $ECHO_C" >&64738 else4739 eval "$as_ac_Header=\$ac_header_preproc"4740 fi4741 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&54742 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&64743 4744 fi4745 if test `eval echo '${'$as_ac_Header'}'` = yes; then4746 cat >>confdefs.h <<_ACEOF4747 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 14748 _ACEOF4749 4750 else4751 { { echo "$as_me:$LINENO: error: cannot find glut headers" >&54752 echo "$as_me: error: cannot find glut headers" >&2;}4753 { (exit 1); exit 1; }; }4754 fi4755 4756 done4757 4758 echo "$as_me:$LINENO: checking for glutInit in -lglut" >&54759 echo $ECHO_N "checking for glutInit in -lglut... $ECHO_C" >&64760 if test "${ac_cv_lib_glut_glutInit+set}" = set; then4761 echo $ECHO_N "(cached) $ECHO_C" >&64762 else4763 ac_check_lib_save_LIBS=$LIBS4764 LIBS="-lglut $LIBS"4765 cat >conftest.$ac_ext <<_ACEOF4766 /* confdefs.h. */4767 _ACEOF4768 cat confdefs.h >>conftest.$ac_ext4769 cat >>conftest.$ac_ext <<_ACEOF4770 /* end confdefs.h. */4771 4772 /* Override any gcc2 internal prototype to avoid an error. */4773 #ifdef __cplusplus4774 extern "C"4775 #endif4776 /* We use char because int might match the return type of a gcc24777 builtin and then its argument prototype would still apply. */4778 char glutInit ();4779 int4780 main ()4781 {4782 glutInit ();4783 ;4784 return 0;4785 }4786 _ACEOF4787 rm -f conftest.$ac_objext conftest$ac_exeext4788 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&54789 (eval $ac_link) 2>conftest.er14790 ac_status=$?4791 grep -v '^ *+' conftest.er1 >conftest.err4792 rm -f conftest.er14793 cat conftest.err >&54794 echo "$as_me:$LINENO: \$? = $ac_status" >&54795 (exit $ac_status); } &&4796 { ac_try='test -z "$ac_c_werror_flag"4797 || test ! -s conftest.err'4798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&54799 (eval $ac_try) 2>&54800 ac_status=$?4801 echo "$as_me:$LINENO: \$? = $ac_status" >&54802 (exit $ac_status); }; } &&4803 { ac_try='test -s conftest$ac_exeext'4804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&54805 (eval $ac_try) 2>&54806 ac_status=$?4807 echo "$as_me:$LINENO: \$? = $ac_status" >&54808 (exit $ac_status); }; }; then4809 ac_cv_lib_glut_glutInit=yes4810 else4811 echo "$as_me: failed program was:" >&54812 sed 's/^/| /' conftest.$ac_ext >&54813 4814 ac_cv_lib_glut_glutInit=no4815 fi4816 rm -f conftest.err conftest.$ac_objext \4817 conftest$ac_exeext conftest.$ac_ext4818 LIBS=$ac_check_lib_save_LIBS4819 fi4820 echo "$as_me:$LINENO: result: $ac_cv_lib_glut_glutInit" >&54821 echo "${ECHO_T}$ac_cv_lib_glut_glutInit" >&64822 if test $ac_cv_lib_glut_glutInit = yes; then4823 FOUND_glut=yes4824 fi4825 4826 if test "$FOUND_glut" = "yes" ; then4827 LIBS="$LIBS -lglut"4828 # checking for Windows glut32 library4829 else4830 echo "We did not find the Linux glut Library. Checking for Windows Library"4831 echo "$as_me:$LINENO: checking for main in -lglut32" >&54832 echo $ECHO_N "checking for main in -lglut32... $ECHO_C" >&64833 if test "${ac_cv_lib_glut32_main+set}" = set; then4834 echo $ECHO_N "(cached) $ECHO_C" >&64835 else4836 ac_check_lib_save_LIBS=$LIBS4837 LIBS="-lglut32 $LIBS"4838 cat >conftest.$ac_ext <<_ACEOF4839 /* confdefs.h. */4840 _ACEOF4841 cat confdefs.h >>conftest.$ac_ext4842 cat >>conftest.$ac_ext <<_ACEOF4843 /* end confdefs.h. */4844 4845 4846 int4847 main ()4848 {4849 main ();4850 ;4851 return 0;4852 }4853 _ACEOF4854 rm -f conftest.$ac_objext conftest$ac_exeext4855 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&54856 (eval $ac_link) 2>conftest.er14857 ac_status=$?4858 grep -v '^ *+' conftest.er1 >conftest.err4859 rm -f conftest.er14860 cat conftest.err >&54861 echo "$as_me:$LINENO: \$? = $ac_status" >&54862 (exit $ac_status); } &&4863 { ac_try='test -z "$ac_c_werror_flag"4864 || test ! -s conftest.err'4865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&54866 (eval $ac_try) 2>&54867 ac_status=$?4868 echo "$as_me:$LINENO: \$? = $ac_status" >&54869 (exit $ac_status); }; } &&4870 { ac_try='test -s conftest$ac_exeext'4871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&54872 (eval $ac_try) 2>&54873 ac_status=$?4874 echo "$as_me:$LINENO: \$? = $ac_status" >&54875 (exit $ac_status); }; }; then4876 ac_cv_lib_glut32_main=yes4877 else4878 echo "$as_me: failed program was:" >&54879 sed 's/^/| /' conftest.$ac_ext >&54880 4881 ac_cv_lib_glut32_main=no4882 fi4883 rm -f conftest.err conftest.$ac_objext \4884 conftest$ac_exeext conftest.$ac_ext4885 LIBS=$ac_check_lib_save_LIBS4886 fi4887 echo "$as_me:$LINENO: result: $ac_cv_lib_glut32_main" >&54888 echo "${ECHO_T}$ac_cv_lib_glut32_main" >&64889 if test $ac_cv_lib_glut32_main = yes; then4890 FOUND_glut32=yes4891 fi4892 4893 if test "$FOUND_glut32" = "yes" ; then4894 LIBS="$LIBS -lglut32"4895 else4896 echo "------------------"4897 echo "glut library not found."4898 echo "please install the glut library, which can be found at http://www.xmission.com/~nate/glut.html"4899 echo "------------------"4900 exit -14901 fi4902 fi4903 4603 4904 4604 ## mingw CHECK -
orxonox/trunk/configure.ac
r2618 r2627 84 84 AC_CHECK_LIB([Xt], [main]) 85 85 86 # cheking for libglut3287 AC_CHECK_HEADERS(GL/glut.h ,,88 [AC_MSG_ERROR([cannot find glut headers]) ])89 AC_CHECK_LIB([glut], [glutInit], FOUND_glut=yes)90 if test "$FOUND_glut" = "yes" ; then91 LIBS="$LIBS -lglut"92 # checking for Windows glut32 library93 else94 echo "We did not find the Linux glut Library. Checking for Windows Library"95 AC_CHECK_LIB([glut32], [main], FOUND_glut32=yes)96 if test "$FOUND_glut32" = "yes" ; then97 LIBS="$LIBS -lglut32"98 else99 echo "------------------"100 echo "glut library not found."101 echo "please install the glut library, which can be found at http://www.xmission.com/~nate/glut.html"102 echo "------------------"103 exit -1104 fi105 fi106 107 86 ## mingw CHECK 108 87 if test $mingw = yes ; then
Note: See TracChangeset
for help on using the changeset viewer.