Changeset 3508 in orxonox.OLD for orxonox/branches/soundEngine/configure
- Timestamp:
- Mar 11, 2005, 10:34:35 PM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/branches/soundEngine/configure
r3506 r3508 6051 6051 ## CHECKING FOR HEADERS AND LIBS ## 6052 6052 ################################### 6053 6054 #-----------# 6055 # SDL_mixer # 6056 #-----------# 6057 6058 for ac_header in SDL/SDL_mixer.h 6059 do 6060 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 6061 if eval "test \"\${$as_ac_Header+set}\" = set"; then 6062 echo "$as_me:$LINENO: checking for $ac_header" >&5 6063 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 6064 if eval "test \"\${$as_ac_Header+set}\" = set"; then 6065 echo $ECHO_N "(cached) $ECHO_C" >&6 6066 fi 6067 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 6068 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 6069 else 6070 # Is the header compilable? 6071 echo "$as_me:$LINENO: checking $ac_header usability" >&5 6072 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 6073 cat >conftest.$ac_ext <<_ACEOF 6074 /* confdefs.h. */ 6075 _ACEOF 6076 cat confdefs.h >>conftest.$ac_ext 6077 cat >>conftest.$ac_ext <<_ACEOF 6078 /* end confdefs.h. */ 6079 $ac_includes_default 6080 #include <$ac_header> 6081 _ACEOF 6082 rm -f conftest.$ac_objext 6083 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6084 (eval $ac_compile) 2>conftest.er1 6085 ac_status=$? 6086 grep -v '^ *+' conftest.er1 >conftest.err 6087 rm -f conftest.er1 6088 cat conftest.err >&5 6089 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6090 (exit $ac_status); } && 6091 { ac_try='test -z "$ac_c_werror_flag" 6092 || test ! -s conftest.err' 6093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6094 (eval $ac_try) 2>&5 6095 ac_status=$? 6096 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6097 (exit $ac_status); }; } && 6098 { ac_try='test -s conftest.$ac_objext' 6099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6100 (eval $ac_try) 2>&5 6101 ac_status=$? 6102 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6103 (exit $ac_status); }; }; then 6104 ac_header_compiler=yes 6105 else 6106 echo "$as_me: failed program was:" >&5 6107 sed 's/^/| /' conftest.$ac_ext >&5 6108 6109 ac_header_compiler=no 6110 fi 6111 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 6112 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 6113 echo "${ECHO_T}$ac_header_compiler" >&6 6114 6115 # Is the header present? 6116 echo "$as_me:$LINENO: checking $ac_header presence" >&5 6117 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 6118 cat >conftest.$ac_ext <<_ACEOF 6119 /* confdefs.h. */ 6120 _ACEOF 6121 cat confdefs.h >>conftest.$ac_ext 6122 cat >>conftest.$ac_ext <<_ACEOF 6123 /* end confdefs.h. */ 6124 #include <$ac_header> 6125 _ACEOF 6126 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 6127 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 6128 ac_status=$? 6129 grep -v '^ *+' conftest.er1 >conftest.err 6130 rm -f conftest.er1 6131 cat conftest.err >&5 6132 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6133 (exit $ac_status); } >/dev/null; then 6134 if test -s conftest.err; then 6135 ac_cpp_err=$ac_c_preproc_warn_flag 6136 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 6137 else 6138 ac_cpp_err= 6139 fi 6140 else 6141 ac_cpp_err=yes 6142 fi 6143 if test -z "$ac_cpp_err"; then 6144 ac_header_preproc=yes 6145 else 6146 echo "$as_me: failed program was:" >&5 6147 sed 's/^/| /' conftest.$ac_ext >&5 6148 6149 ac_header_preproc=no 6150 fi 6151 rm -f conftest.err conftest.$ac_ext 6152 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 6153 echo "${ECHO_T}$ac_header_preproc" >&6 6154 6155 # So? What about this header? 6156 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 6157 yes:no: ) 6158 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 6159 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 6160 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 6161 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 6162 ac_header_preproc=yes 6163 ;; 6164 no:yes:* ) 6165 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 6166 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 6167 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 6168 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 6169 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 6170 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 6171 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 6172 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 6173 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 6174 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 6175 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 6176 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 6177 ( 6178 cat <<\_ASBOX 6179 ## ---------------------------------------------- ## 6180 ## Report this to orxonox-dev at mail.datacore.ch ## 6181 ## ---------------------------------------------- ## 6182 _ASBOX 6183 ) | 6184 sed "s/^/$as_me: WARNING: /" >&2 6185 ;; 6186 esac 6187 echo "$as_me:$LINENO: checking for $ac_header" >&5 6188 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 6189 if eval "test \"\${$as_ac_Header+set}\" = set"; then 6190 echo $ECHO_N "(cached) $ECHO_C" >&6 6191 else 6192 eval "$as_ac_Header=\$ac_header_preproc" 6193 fi 6194 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 6195 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 6196 6197 fi 6198 if test `eval echo '${'$as_ac_Header'}'` = yes; then 6199 cat >>confdefs.h <<_ACEOF 6200 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 6201 _ACEOF 6202 6203 else 6204 { { echo "$as_me:$LINENO: error: sdl_mixer not found" >&5 6205 echo "$as_me: error: sdl_mixer not found" >&2;} 6206 { (exit 1); exit 1; }; } 6207 fi 6208 6209 done 6210 6211 # checking for SDL_mixer-lib 6212 echo "$as_me:$LINENO: checking for main in -lSDL_mixer" >&5 6213 echo $ECHO_N "checking for main in -lSDL_mixer... $ECHO_C" >&6 6214 if test "${ac_cv_lib_SDL_mixer_main+set}" = set; then 6215 echo $ECHO_N "(cached) $ECHO_C" >&6 6216 else 6217 ac_check_lib_save_LIBS=$LIBS 6218 LIBS="-lSDL_mixer $LIBS" 6219 cat >conftest.$ac_ext <<_ACEOF 6220 /* confdefs.h. */ 6221 _ACEOF 6222 cat confdefs.h >>conftest.$ac_ext 6223 cat >>conftest.$ac_ext <<_ACEOF 6224 /* end confdefs.h. */ 6225 6226 6227 int 6228 main () 6229 { 6230 main (); 6231 ; 6232 return 0; 6233 } 6234 _ACEOF 6235 rm -f conftest.$ac_objext conftest$ac_exeext 6236 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6237 (eval $ac_link) 2>conftest.er1 6238 ac_status=$? 6239 grep -v '^ *+' conftest.er1 >conftest.err 6240 rm -f conftest.er1 6241 cat conftest.err >&5 6242 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6243 (exit $ac_status); } && 6244 { ac_try='test -z "$ac_c_werror_flag" 6245 || test ! -s conftest.err' 6246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6247 (eval $ac_try) 2>&5 6248 ac_status=$? 6249 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6250 (exit $ac_status); }; } && 6251 { ac_try='test -s conftest$ac_exeext' 6252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6253 (eval $ac_try) 2>&5 6254 ac_status=$? 6255 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6256 (exit $ac_status); }; }; then 6257 ac_cv_lib_SDL_mixer_main=yes 6258 else 6259 echo "$as_me: failed program was:" >&5 6260 sed 's/^/| /' conftest.$ac_ext >&5 6261 6262 ac_cv_lib_SDL_mixer_main=no 6263 fi 6264 rm -f conftest.err conftest.$ac_objext \ 6265 conftest$ac_exeext conftest.$ac_ext 6266 LIBS=$ac_check_lib_save_LIBS 6267 fi 6268 echo "$as_me:$LINENO: result: $ac_cv_lib_SDL_mixer_main" >&5 6269 echo "${ECHO_T}$ac_cv_lib_SDL_mixer_main" >&6 6270 if test $ac_cv_lib_SDL_mixer_main = yes; then 6271 FOUND_SDL_mixer=yes 6272 fi 6273 6274 if test x$FOUND_SDL_mixer = xyes ; then 6275 LIBS="$LIBS -lSDL_mixer" 6276 else 6277 echo "------------------" 6278 echo "SDL_mixer library not found." 6279 echo "please install the SDL_mixer library, which can be found at http://www.libsdl.org/projects/SDL_mixer/" 6280 echo "------------------" 6281 exit -1 6282 fi 6283 6053 6284 6054 6285 #-----------#
Note: See TracChangeset
for help on using the changeset viewer.