Changeset 3140 in orxonox.OLD for orxonox/trunk/configure
- Timestamp:
- Dec 10, 2004, 7:44:36 PM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/configure
r3101 r3140 866 866 --enable-dependency-tracking do not reject slow dependency extractors 867 867 --disable-gtk Prevents GTK from being loaded 868 --disabel-sdl-image Prevents SDL_image from being loaded 868 869 869 870 Some influential environment variables: … … 3831 3832 3832 3833 3833 3834 3834 ### CHECKING OPTIONAT ARGUMENTS 3835 3835 ## GTK-disabled … … 3848 3848 echo "no" 3849 3849 fi 3850 3851 3850 ### SDL_image-disable 3851 def_sdl_image=yes 3852 echo "$as_me:$LINENO: checking if SDL_image should be enabled" >&5 3853 echo $ECHO_N "checking if SDL_image should be enabled... $ECHO_C" >&6 3854 # Check whether --enable-sdl_image or --disable-sdl_image was given. 3855 if test "${enable_sdl_image+set}" = set; then 3856 enableval="$enable_sdl_image" 3857 def_sdl_image=no 3858 fi; 3859 if test "$def_sdl_image" = yes; then 3860 echo "yes" 3861 fi 3862 if test "$def_sdl_image" = no; then 3863 echo "no" 3864 fi 3852 3865 3853 3866 ### CHECKING FOR SYSTEM ### … … 4765 4778 fi 4766 4779 4767 4768 4780 ;; 4769 4781 … … 5393 5405 5394 5406 5395 # checking for SDL-lib s5407 # checking for SDL-lib 5396 5408 echo "$as_me:$LINENO: checking for main in -lSDL" >&5 5397 5409 echo $ECHO_N "checking for main in -lSDL... $ECHO_C" >&6 … … 5466 5478 fi 5467 5479 5480 5468 5481 ## checking for SDL 5469 5482 # SDL_VERSION=1.2.7 … … 5482 5495 osX="yes" 5483 5496 5497 CPPFLAGS="-I/sw/include $CPPFLAGS" 5484 5498 # checking gl header 5485 5499 … … 5810 5824 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS" 5811 5825 LIBS="$LIBS $SDL_LIBS" 5826 5812 5827 ;; 5813 5828 … … 5818 5833 5819 5834 5820 5821 5835 ## check for SDL_Image 5836 if test "$def_sdl_image" = "yes"; then 5837 # checking for SDL_image-headers 5838 5839 for ac_header in SDL/SDL_image.h 5840 do 5841 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 5842 if eval "test \"\${$as_ac_Header+set}\" = set"; then 5843 echo "$as_me:$LINENO: checking for $ac_header" >&5 5844 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 5845 if eval "test \"\${$as_ac_Header+set}\" = set"; then 5846 echo $ECHO_N "(cached) $ECHO_C" >&6 5847 fi 5848 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 5849 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 5850 else 5851 # Is the header compilable? 5852 echo "$as_me:$LINENO: checking $ac_header usability" >&5 5853 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 5854 cat >conftest.$ac_ext <<_ACEOF 5855 /* confdefs.h. */ 5856 _ACEOF 5857 cat confdefs.h >>conftest.$ac_ext 5858 cat >>conftest.$ac_ext <<_ACEOF 5859 /* end confdefs.h. */ 5860 $ac_includes_default 5861 #include <$ac_header> 5862 _ACEOF 5863 rm -f conftest.$ac_objext 5864 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5865 (eval $ac_compile) 2>conftest.er1 5866 ac_status=$? 5867 grep -v '^ *+' conftest.er1 >conftest.err 5868 rm -f conftest.er1 5869 cat conftest.err >&5 5870 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5871 (exit $ac_status); } && 5872 { ac_try='test -z "$ac_c_werror_flag" 5873 || test ! -s conftest.err' 5874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5875 (eval $ac_try) 2>&5 5876 ac_status=$? 5877 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5878 (exit $ac_status); }; } && 5879 { ac_try='test -s conftest.$ac_objext' 5880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5881 (eval $ac_try) 2>&5 5882 ac_status=$? 5883 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5884 (exit $ac_status); }; }; then 5885 ac_header_compiler=yes 5886 else 5887 echo "$as_me: failed program was:" >&5 5888 sed 's/^/| /' conftest.$ac_ext >&5 5889 5890 ac_header_compiler=no 5891 fi 5892 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5893 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 5894 echo "${ECHO_T}$ac_header_compiler" >&6 5895 5896 # Is the header present? 5897 echo "$as_me:$LINENO: checking $ac_header presence" >&5 5898 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 5899 cat >conftest.$ac_ext <<_ACEOF 5900 /* confdefs.h. */ 5901 _ACEOF 5902 cat confdefs.h >>conftest.$ac_ext 5903 cat >>conftest.$ac_ext <<_ACEOF 5904 /* end confdefs.h. */ 5905 #include <$ac_header> 5906 _ACEOF 5907 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 5908 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 5909 ac_status=$? 5910 grep -v '^ *+' conftest.er1 >conftest.err 5911 rm -f conftest.er1 5912 cat conftest.err >&5 5913 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5914 (exit $ac_status); } >/dev/null; then 5915 if test -s conftest.err; then 5916 ac_cpp_err=$ac_c_preproc_warn_flag 5917 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 5918 else 5919 ac_cpp_err= 5920 fi 5921 else 5922 ac_cpp_err=yes 5923 fi 5924 if test -z "$ac_cpp_err"; then 5925 ac_header_preproc=yes 5926 else 5927 echo "$as_me: failed program was:" >&5 5928 sed 's/^/| /' conftest.$ac_ext >&5 5929 5930 ac_header_preproc=no 5931 fi 5932 rm -f conftest.err conftest.$ac_ext 5933 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 5934 echo "${ECHO_T}$ac_header_preproc" >&6 5935 5936 # So? What about this header? 5937 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 5938 yes:no: ) 5939 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 5940 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 5941 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 5942 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 5943 ac_header_preproc=yes 5944 ;; 5945 no:yes:* ) 5946 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 5947 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 5948 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 5949 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 5950 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 5951 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 5952 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 5953 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 5954 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 5955 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 5956 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 5957 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 5958 ( 5959 cat <<\_ASBOX 5960 ## ------------------------------------------- ## 5961 ## Report this to orxonox-dev@mail.datacore.ch ## 5962 ## ------------------------------------------- ## 5963 _ASBOX 5964 ) | 5965 sed "s/^/$as_me: WARNING: /" >&2 5966 ;; 5967 esac 5968 echo "$as_me:$LINENO: checking for $ac_header" >&5 5969 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 5970 if eval "test \"\${$as_ac_Header+set}\" = set"; then 5971 echo $ECHO_N "(cached) $ECHO_C" >&6 5972 else 5973 eval "$as_ac_Header=\$ac_header_preproc" 5974 fi 5975 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 5976 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 5977 5978 fi 5979 if test `eval echo '${'$as_ac_Header'}'` = yes; then 5980 cat >>confdefs.h <<_ACEOF 5981 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 5982 _ACEOF 5983 5984 else 5985 echo "sdl_image not found. falling back to other options"; def_sdl_image=no 5986 fi 5987 5988 done 5989 5990 fi 5991 if test "$def_sdl_image" = "yes"; then 5992 # checking for SDL_image-lib 5993 echo "$as_me:$LINENO: checking for main in -lSDL_image" >&5 5994 echo $ECHO_N "checking for main in -lSDL_image... $ECHO_C" >&6 5995 if test "${ac_cv_lib_SDL_image_main+set}" = set; then 5996 echo $ECHO_N "(cached) $ECHO_C" >&6 5997 else 5998 ac_check_lib_save_LIBS=$LIBS 5999 LIBS="-lSDL_image $LIBS" 6000 cat >conftest.$ac_ext <<_ACEOF 6001 /* confdefs.h. */ 6002 _ACEOF 6003 cat confdefs.h >>conftest.$ac_ext 6004 cat >>conftest.$ac_ext <<_ACEOF 6005 /* end confdefs.h. */ 6006 6007 6008 int 6009 main () 6010 { 6011 main (); 6012 ; 6013 return 0; 6014 } 6015 _ACEOF 6016 rm -f conftest.$ac_objext conftest$ac_exeext 6017 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6018 (eval $ac_link) 2>conftest.er1 6019 ac_status=$? 6020 grep -v '^ *+' conftest.er1 >conftest.err 6021 rm -f conftest.er1 6022 cat conftest.err >&5 6023 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6024 (exit $ac_status); } && 6025 { ac_try='test -z "$ac_c_werror_flag" 6026 || test ! -s conftest.err' 6027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6028 (eval $ac_try) 2>&5 6029 ac_status=$? 6030 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6031 (exit $ac_status); }; } && 6032 { ac_try='test -s conftest$ac_exeext' 6033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6034 (eval $ac_try) 2>&5 6035 ac_status=$? 6036 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6037 (exit $ac_status); }; }; then 6038 ac_cv_lib_SDL_image_main=yes 6039 else 6040 echo "$as_me: failed program was:" >&5 6041 sed 's/^/| /' conftest.$ac_ext >&5 6042 6043 ac_cv_lib_SDL_image_main=no 6044 fi 6045 rm -f conftest.err conftest.$ac_objext \ 6046 conftest$ac_exeext conftest.$ac_ext 6047 LIBS=$ac_check_lib_save_LIBS 6048 fi 6049 echo "$as_me:$LINENO: result: $ac_cv_lib_SDL_image_main" >&5 6050 echo "${ECHO_T}$ac_cv_lib_SDL_image_main" >&6 6051 if test $ac_cv_lib_SDL_image_main = yes; then 6052 FOUND_SDL_image=yes 6053 fi 6054 6055 if test "$FOUND_SDL_image" = "yes" ; then 6056 LIBS="$LIBS -lSDL_image" 6057 else 6058 echo "------------------" 6059 echo "SDL_image library not found." 6060 echo "please install the SDL_image library, which can be found at http://www.libsdl.org/projects/SDL_image/" 6061 echo "------------------" 6062 exit -1 6063 fi 6064 fi 6065 6066 6067 if test "$def_sdl_image" = "no"; then 6068 ## checking for libjpeg 6069 6070 for ac_header in jpeglib.h 6071 do 6072 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 6073 if eval "test \"\${$as_ac_Header+set}\" = set"; then 6074 echo "$as_me:$LINENO: checking for $ac_header" >&5 6075 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 6076 if eval "test \"\${$as_ac_Header+set}\" = set"; then 6077 echo $ECHO_N "(cached) $ECHO_C" >&6 6078 fi 6079 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 6080 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 6081 else 6082 # Is the header compilable? 6083 echo "$as_me:$LINENO: checking $ac_header usability" >&5 6084 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 6085 cat >conftest.$ac_ext <<_ACEOF 6086 /* confdefs.h. */ 6087 _ACEOF 6088 cat confdefs.h >>conftest.$ac_ext 6089 cat >>conftest.$ac_ext <<_ACEOF 6090 /* end confdefs.h. */ 6091 $ac_includes_default 6092 #include <$ac_header> 6093 _ACEOF 6094 rm -f conftest.$ac_objext 6095 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6096 (eval $ac_compile) 2>conftest.er1 6097 ac_status=$? 6098 grep -v '^ *+' conftest.er1 >conftest.err 6099 rm -f conftest.er1 6100 cat conftest.err >&5 6101 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6102 (exit $ac_status); } && 6103 { ac_try='test -z "$ac_c_werror_flag" 6104 || test ! -s conftest.err' 6105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6106 (eval $ac_try) 2>&5 6107 ac_status=$? 6108 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6109 (exit $ac_status); }; } && 6110 { ac_try='test -s conftest.$ac_objext' 6111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6112 (eval $ac_try) 2>&5 6113 ac_status=$? 6114 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6115 (exit $ac_status); }; }; then 6116 ac_header_compiler=yes 6117 else 6118 echo "$as_me: failed program was:" >&5 6119 sed 's/^/| /' conftest.$ac_ext >&5 6120 6121 ac_header_compiler=no 6122 fi 6123 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 6124 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 6125 echo "${ECHO_T}$ac_header_compiler" >&6 6126 6127 # Is the header present? 6128 echo "$as_me:$LINENO: checking $ac_header presence" >&5 6129 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 6130 cat >conftest.$ac_ext <<_ACEOF 6131 /* confdefs.h. */ 6132 _ACEOF 6133 cat confdefs.h >>conftest.$ac_ext 6134 cat >>conftest.$ac_ext <<_ACEOF 6135 /* end confdefs.h. */ 6136 #include <$ac_header> 6137 _ACEOF 6138 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 6139 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 6140 ac_status=$? 6141 grep -v '^ *+' conftest.er1 >conftest.err 6142 rm -f conftest.er1 6143 cat conftest.err >&5 6144 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6145 (exit $ac_status); } >/dev/null; then 6146 if test -s conftest.err; then 6147 ac_cpp_err=$ac_c_preproc_warn_flag 6148 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 6149 else 6150 ac_cpp_err= 6151 fi 6152 else 6153 ac_cpp_err=yes 6154 fi 6155 if test -z "$ac_cpp_err"; then 6156 ac_header_preproc=yes 6157 else 6158 echo "$as_me: failed program was:" >&5 6159 sed 's/^/| /' conftest.$ac_ext >&5 6160 6161 ac_header_preproc=no 6162 fi 6163 rm -f conftest.err conftest.$ac_ext 6164 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 6165 echo "${ECHO_T}$ac_header_preproc" >&6 6166 6167 # So? What about this header? 6168 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 6169 yes:no: ) 6170 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 6171 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 6172 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 6173 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 6174 ac_header_preproc=yes 6175 ;; 6176 no:yes:* ) 6177 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 6178 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 6179 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 6180 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 6181 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 6182 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 6183 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 6184 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 6185 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 6186 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 6187 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 6188 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 6189 ( 6190 cat <<\_ASBOX 6191 ## ------------------------------------------- ## 6192 ## Report this to orxonox-dev@mail.datacore.ch ## 6193 ## ------------------------------------------- ## 6194 _ASBOX 6195 ) | 6196 sed "s/^/$as_me: WARNING: /" >&2 6197 ;; 6198 esac 6199 echo "$as_me:$LINENO: checking for $ac_header" >&5 6200 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 6201 if eval "test \"\${$as_ac_Header+set}\" = set"; then 6202 echo $ECHO_N "(cached) $ECHO_C" >&6 6203 else 6204 eval "$as_ac_Header=\$ac_header_preproc" 6205 fi 6206 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 6207 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 6208 6209 fi 6210 if test `eval echo '${'$as_ac_Header'}'` = yes; then 6211 cat >>confdefs.h <<_ACEOF 6212 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 6213 _ACEOF 6214 jpegHeader="yes" 6215 else 6216 jpegHeader="no" 6217 fi 6218 6219 done 6220 6221 if test $jpegHeader = "no"; then 6222 echo " not including jpeg." 6223 else 6224 echo "$as_me:$LINENO: checking for main in -ljpeg" >&5 6225 echo $ECHO_N "checking for main in -ljpeg... $ECHO_C" >&6 6226 if test "${ac_cv_lib_jpeg_main+set}" = set; then 6227 echo $ECHO_N "(cached) $ECHO_C" >&6 6228 else 6229 ac_check_lib_save_LIBS=$LIBS 6230 LIBS="-ljpeg $LIBS" 6231 cat >conftest.$ac_ext <<_ACEOF 6232 /* confdefs.h. */ 6233 _ACEOF 6234 cat confdefs.h >>conftest.$ac_ext 6235 cat >>conftest.$ac_ext <<_ACEOF 6236 /* end confdefs.h. */ 6237 6238 6239 int 6240 main () 6241 { 6242 main (); 6243 ; 6244 return 0; 6245 } 6246 _ACEOF 6247 rm -f conftest.$ac_objext conftest$ac_exeext 6248 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6249 (eval $ac_link) 2>conftest.er1 6250 ac_status=$? 6251 grep -v '^ *+' conftest.er1 >conftest.err 6252 rm -f conftest.er1 6253 cat conftest.err >&5 6254 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6255 (exit $ac_status); } && 6256 { ac_try='test -z "$ac_c_werror_flag" 6257 || test ! -s conftest.err' 6258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6259 (eval $ac_try) 2>&5 6260 ac_status=$? 6261 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6262 (exit $ac_status); }; } && 6263 { ac_try='test -s conftest$ac_exeext' 6264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6265 (eval $ac_try) 2>&5 6266 ac_status=$? 6267 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6268 (exit $ac_status); }; }; then 6269 ac_cv_lib_jpeg_main=yes 6270 else 6271 echo "$as_me: failed program was:" >&5 6272 sed 's/^/| /' conftest.$ac_ext >&5 6273 6274 ac_cv_lib_jpeg_main=no 6275 fi 6276 rm -f conftest.err conftest.$ac_objext \ 6277 conftest$ac_exeext conftest.$ac_ext 6278 LIBS=$ac_check_lib_save_LIBS 6279 fi 6280 echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_main" >&5 6281 echo "${ECHO_T}$ac_cv_lib_jpeg_main" >&6 6282 if test $ac_cv_lib_jpeg_main = yes; then 6283 FOUND_jpeg=yes 6284 fi 6285 6286 if test "$FOUND_jpeg" = "yes" ; then 6287 LIBS="$LIBS -ljpeg" 6288 else 6289 echo "------------------" 6290 echo "jpeg library not found." 6291 echo "please install the jpeg library from the Independent JPEG Group, which can be found at http://www.ijg.org" 6292 echo "------------------" 6293 exit -1 6294 fi 6295 fi 6296 6297 ## checking for libpng 6298 6299 for ac_header in png.h 6300 do 6301 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 6302 if eval "test \"\${$as_ac_Header+set}\" = set"; then 6303 echo "$as_me:$LINENO: checking for $ac_header" >&5 6304 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 6305 if eval "test \"\${$as_ac_Header+set}\" = set"; then 6306 echo $ECHO_N "(cached) $ECHO_C" >&6 6307 fi 6308 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 6309 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 6310 else 6311 # Is the header compilable? 6312 echo "$as_me:$LINENO: checking $ac_header usability" >&5 6313 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 6314 cat >conftest.$ac_ext <<_ACEOF 6315 /* confdefs.h. */ 6316 _ACEOF 6317 cat confdefs.h >>conftest.$ac_ext 6318 cat >>conftest.$ac_ext <<_ACEOF 6319 /* end confdefs.h. */ 6320 $ac_includes_default 6321 #include <$ac_header> 6322 _ACEOF 6323 rm -f conftest.$ac_objext 6324 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6325 (eval $ac_compile) 2>conftest.er1 6326 ac_status=$? 6327 grep -v '^ *+' conftest.er1 >conftest.err 6328 rm -f conftest.er1 6329 cat conftest.err >&5 6330 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6331 (exit $ac_status); } && 6332 { ac_try='test -z "$ac_c_werror_flag" 6333 || test ! -s conftest.err' 6334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6335 (eval $ac_try) 2>&5 6336 ac_status=$? 6337 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6338 (exit $ac_status); }; } && 6339 { ac_try='test -s conftest.$ac_objext' 6340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6341 (eval $ac_try) 2>&5 6342 ac_status=$? 6343 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6344 (exit $ac_status); }; }; then 6345 ac_header_compiler=yes 6346 else 6347 echo "$as_me: failed program was:" >&5 6348 sed 's/^/| /' conftest.$ac_ext >&5 6349 6350 ac_header_compiler=no 6351 fi 6352 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 6353 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 6354 echo "${ECHO_T}$ac_header_compiler" >&6 6355 6356 # Is the header present? 6357 echo "$as_me:$LINENO: checking $ac_header presence" >&5 6358 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 6359 cat >conftest.$ac_ext <<_ACEOF 6360 /* confdefs.h. */ 6361 _ACEOF 6362 cat confdefs.h >>conftest.$ac_ext 6363 cat >>conftest.$ac_ext <<_ACEOF 6364 /* end confdefs.h. */ 6365 #include <$ac_header> 6366 _ACEOF 6367 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 6368 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 6369 ac_status=$? 6370 grep -v '^ *+' conftest.er1 >conftest.err 6371 rm -f conftest.er1 6372 cat conftest.err >&5 6373 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6374 (exit $ac_status); } >/dev/null; then 6375 if test -s conftest.err; then 6376 ac_cpp_err=$ac_c_preproc_warn_flag 6377 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 6378 else 6379 ac_cpp_err= 6380 fi 6381 else 6382 ac_cpp_err=yes 6383 fi 6384 if test -z "$ac_cpp_err"; then 6385 ac_header_preproc=yes 6386 else 6387 echo "$as_me: failed program was:" >&5 6388 sed 's/^/| /' conftest.$ac_ext >&5 6389 6390 ac_header_preproc=no 6391 fi 6392 rm -f conftest.err conftest.$ac_ext 6393 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 6394 echo "${ECHO_T}$ac_header_preproc" >&6 6395 6396 # So? What about this header? 6397 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 6398 yes:no: ) 6399 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 6400 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 6401 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 6402 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 6403 ac_header_preproc=yes 6404 ;; 6405 no:yes:* ) 6406 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 6407 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 6408 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 6409 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 6410 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 6411 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 6412 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 6413 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 6414 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 6415 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 6416 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 6417 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 6418 ( 6419 cat <<\_ASBOX 6420 ## ------------------------------------------- ## 6421 ## Report this to orxonox-dev@mail.datacore.ch ## 6422 ## ------------------------------------------- ## 6423 _ASBOX 6424 ) | 6425 sed "s/^/$as_me: WARNING: /" >&2 6426 ;; 6427 esac 6428 echo "$as_me:$LINENO: checking for $ac_header" >&5 6429 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 6430 if eval "test \"\${$as_ac_Header+set}\" = set"; then 6431 echo $ECHO_N "(cached) $ECHO_C" >&6 6432 else 6433 eval "$as_ac_Header=\$ac_header_preproc" 6434 fi 6435 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 6436 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 6437 6438 fi 6439 if test `eval echo '${'$as_ac_Header'}'` = yes; then 6440 cat >>confdefs.h <<_ACEOF 6441 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 6442 _ACEOF 6443 pngHeader="yes" 6444 else 6445 pngHeader="no" 6446 fi 6447 6448 done 6449 6450 if test $pngHeader = "no"; then 6451 echo " not including png." 6452 else 6453 echo "$as_me:$LINENO: checking for main in -lpng" >&5 6454 echo $ECHO_N "checking for main in -lpng... $ECHO_C" >&6 6455 if test "${ac_cv_lib_png_main+set}" = set; then 6456 echo $ECHO_N "(cached) $ECHO_C" >&6 6457 else 6458 ac_check_lib_save_LIBS=$LIBS 6459 LIBS="-lpng $LIBS" 6460 cat >conftest.$ac_ext <<_ACEOF 6461 /* confdefs.h. */ 6462 _ACEOF 6463 cat confdefs.h >>conftest.$ac_ext 6464 cat >>conftest.$ac_ext <<_ACEOF 6465 /* end confdefs.h. */ 6466 6467 6468 int 6469 main () 6470 { 6471 main (); 6472 ; 6473 return 0; 6474 } 6475 _ACEOF 6476 rm -f conftest.$ac_objext conftest$ac_exeext 6477 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6478 (eval $ac_link) 2>conftest.er1 6479 ac_status=$? 6480 grep -v '^ *+' conftest.er1 >conftest.err 6481 rm -f conftest.er1 6482 cat conftest.err >&5 6483 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6484 (exit $ac_status); } && 6485 { ac_try='test -z "$ac_c_werror_flag" 6486 || test ! -s conftest.err' 6487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6488 (eval $ac_try) 2>&5 6489 ac_status=$? 6490 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6491 (exit $ac_status); }; } && 6492 { ac_try='test -s conftest$ac_exeext' 6493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6494 (eval $ac_try) 2>&5 6495 ac_status=$? 6496 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6497 (exit $ac_status); }; }; then 6498 ac_cv_lib_png_main=yes 6499 else 6500 echo "$as_me: failed program was:" >&5 6501 sed 's/^/| /' conftest.$ac_ext >&5 6502 6503 ac_cv_lib_png_main=no 6504 fi 6505 rm -f conftest.err conftest.$ac_objext \ 6506 conftest$ac_exeext conftest.$ac_ext 6507 LIBS=$ac_check_lib_save_LIBS 6508 fi 6509 echo "$as_me:$LINENO: result: $ac_cv_lib_png_main" >&5 6510 echo "${ECHO_T}$ac_cv_lib_png_main" >&6 6511 if test $ac_cv_lib_png_main = yes; then 6512 FOUND_png=yes 6513 fi 6514 6515 if test "$FOUND_png" = "yes" ; then 6516 LIBS="$LIBS -lpng" 6517 else 6518 echo "------------------" 6519 echo "png library not found." 6520 echo "please install the png library, which can be found at http://libpng.org/pub/png/libpng.html" 6521 echo "------------------" 6522 exit -1 6523 fi 6524 fi 6525 fi 5822 6526 5823 6527 ## checking for GTK
Note: See TracChangeset
for help on using the changeset viewer.