Changeset 2991 in orxonox.OLD for orxonox/trunk/configure
- Timestamp:
- Nov 26, 2004, 12:07:17 AM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/configure
r2989 r2991 312 312 #endif" 313 313 314 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot CXX CXXFLAGS LDFLAGS CPPFLAGS ac_ct_CXX EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CC CFLAGS ac_ct_CC CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CPP EGREP SDL_CONFIG SDL_CFLAGS SDL_LIBSMSBITFIELDS PKG_CONFIG GTK2_CFLAGS GTK2_LIBS HAVE_GTK2_TRUE HAVE_GTK2_FALSE LIBOBJS LTLIBOBJS'314 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot CXX CXXFLAGS LDFLAGS CPPFLAGS ac_ct_CXX EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CC CFLAGS ac_ct_CC CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CPP EGREP MSBITFIELDS PKG_CONFIG GTK2_CFLAGS GTK2_LIBS HAVE_GTK2_TRUE HAVE_GTK2_FALSE LIBOBJS LTLIBOBJS' 315 315 ac_subst_files='' 316 316 … … 865 865 --disable-dependency-tracking speeds up one-time build 866 866 --enable-dependency-tracking do not reject slow dependency extractors 867 --disable-sdltest Do not try to compile and run a test SDL program868 869 Optional Packages:870 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]871 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)872 --with-sdl-prefix=PFX Prefix where SDL is installed (optional)873 --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)874 867 875 868 Some influential environment variables: … … 5222 5215 exit -1 5223 5216 fi 5224 5225 ## checking for SDL 5226 SDL_VERSION=1.2.7 5227 5228 # Check whether --with-sdl-prefix or --without-sdl-prefix was given. 5229 if test "${with_sdl_prefix+set}" = set; then 5230 withval="$with_sdl_prefix" 5231 sdl_prefix="$withval" 5232 else 5233 sdl_prefix="" 5234 fi; 5235 5236 # Check whether --with-sdl-exec-prefix or --without-sdl-exec-prefix was given. 5237 if test "${with_sdl_exec_prefix+set}" = set; then 5238 withval="$with_sdl_exec_prefix" 5239 sdl_exec_prefix="$withval" 5240 else 5241 sdl_exec_prefix="" 5242 fi; 5243 # Check whether --enable-sdltest or --disable-sdltest was given. 5244 if test "${enable_sdltest+set}" = set; then 5245 enableval="$enable_sdltest" 5246 5247 else 5248 enable_sdltest=yes 5249 fi; 5250 5251 if test x$sdl_exec_prefix != x ; then 5252 sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix" 5253 if test x${SDL_CONFIG+set} != xset ; then 5254 SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config 5255 fi 5256 fi 5257 if test x$sdl_prefix != x ; then 5258 sdl_args="$sdl_args --prefix=$sdl_prefix" 5259 if test x${SDL_CONFIG+set} != xset ; then 5260 SDL_CONFIG=$sdl_prefix/bin/sdl-config 5261 fi 5262 fi 5263 5264 5265 PATH="$prefix/bin:$prefix/usr/bin:$PATH" 5266 # Extract the first word of "sdl-config", so it can be a program name with args. 5267 set dummy sdl-config; ac_word=$2 5268 echo "$as_me:$LINENO: checking for $ac_word" >&5 5269 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 5270 if test "${ac_cv_path_SDL_CONFIG+set}" = set; then 5217 # checking for SDL-headers 5218 5219 for ac_header in SDL/SDL.h 5220 do 5221 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 5222 if eval "test \"\${$as_ac_Header+set}\" = set"; then 5223 echo "$as_me:$LINENO: checking for $ac_header" >&5 5224 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 5225 if eval "test \"\${$as_ac_Header+set}\" = set"; then 5271 5226 echo $ECHO_N "(cached) $ECHO_C" >&6 5272 else 5273 case $SDL_CONFIG in 5274 [\\/]* | ?:[\\/]*) 5275 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path. 5276 ;; 5277 *) 5278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5279 for as_dir in $PATH 5280 do 5281 IFS=$as_save_IFS 5282 test -z "$as_dir" && as_dir=. 5283 for ac_exec_ext in '' $ac_executable_extensions; do 5284 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5285 ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext" 5286 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5287 break 2 5288 fi 5289 done 5290 done 5291 5292 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no" 5293 ;; 5294 esac 5295 fi 5296 SDL_CONFIG=$ac_cv_path_SDL_CONFIG 5297 5298 if test -n "$SDL_CONFIG"; then 5299 echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5 5300 echo "${ECHO_T}$SDL_CONFIG" >&6 5301 else 5302 echo "$as_me:$LINENO: result: no" >&5 5303 echo "${ECHO_T}no" >&6 5304 fi 5305 5306 min_sdl_version=$SDL_VERSION 5307 echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5 5308 echo $ECHO_N "checking for SDL - version >= $min_sdl_version... $ECHO_C" >&6 5309 no_sdl="" 5310 if test "$SDL_CONFIG" = "no" ; then 5311 no_sdl=yes 5312 else 5313 SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags` 5314 SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs` 5315 5316 sdl_major_version=`$SDL_CONFIG $sdl_args --version | \ 5317 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` 5318 sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \ 5319 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` 5320 sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \ 5321 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` 5322 if test "x$enable_sdltest" = "xyes" ; then 5323 ac_save_CFLAGS="$CFLAGS" 5324 ac_save_LIBS="$LIBS" 5325 CFLAGS="$CFLAGS $SDL_CFLAGS" 5326 LIBS="$LIBS $SDL_LIBS" 5327 rm -f conf.sdltest 5328 if test "$cross_compiling" = yes; then 5329 echo $ac_n "cross compiling; assumed OK... $ac_c" 5330 else 5331 cat >conftest.$ac_ext <<_ACEOF 5227 fi 5228 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 5229 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 5230 else 5231 # Is the header compilable? 5232 echo "$as_me:$LINENO: checking $ac_header usability" >&5 5233 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 5234 cat >conftest.$ac_ext <<_ACEOF 5332 5235 /* confdefs.h. */ 5333 5236 _ACEOF … … 5335 5238 cat >>conftest.$ac_ext <<_ACEOF 5336 5239 /* end confdefs.h. */ 5337 5338 #include <stdio.h> 5339 #include <stdlib.h> 5340 #include <string.h> 5341 #include "SDL.h" 5342 5343 char* 5344 my_strdup (char *str) 5345 { 5346 char *new_str; 5347 5348 if (str) 5349 { 5350 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char)); 5351 strcpy (new_str, str); 5352 } 5353 else 5354 new_str = NULL; 5355 5356 return new_str; 5357 } 5358 5359 int main (int argc, char *argv[]) 5360 { 5361 int major, minor, micro; 5362 char *tmp_version; 5363 5364 /* This hangs on some systems (?) 5365 system ("touch conf.sdltest"); 5366 */ 5367 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); } 5368 5369 /* HP/UX 9 (%@#!) writes to sscanf strings */ 5370 tmp_version = my_strdup("$min_sdl_version"); 5371 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { 5372 printf("%s, bad version string\n", "$min_sdl_version"); 5373 exit(1); 5374 } 5375 5376 if (($sdl_major_version > major) || 5377 (($sdl_major_version == major) && ($sdl_minor_version > minor)) || 5378 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro))) 5379 { 5380 return 0; 5381 } 5382 else 5383 { 5384 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version); 5385 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro); 5386 printf("*** best to upgrade to the required version.\n"); 5387 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n"); 5388 printf("*** to point to the correct copy of sdl-config, and remove the file\n"); 5389 printf("*** config.cache before re-running configure\n"); 5390 return 1; 5391 } 5392 } 5393 5394 5395 _ACEOF 5396 rm -f conftest$ac_exeext 5397 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5398 (eval $ac_link) 2>&5 5399 ac_status=$? 5400 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5401 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 5402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5403 (eval $ac_try) 2>&5 5404 ac_status=$? 5405 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5406 (exit $ac_status); }; }; then 5407 : 5408 else 5409 echo "$as_me: program exited with status $ac_status" >&5 5410 echo "$as_me: failed program was:" >&5 5411 sed 's/^/| /' conftest.$ac_ext >&5 5412 5413 ( exit $ac_status ) 5414 no_sdl=yes 5415 fi 5416 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 5417 fi 5418 CFLAGS="$ac_save_CFLAGS" 5419 LIBS="$ac_save_LIBS" 5420 fi 5421 fi 5422 if test "x$no_sdl" = x ; then 5423 echo "$as_me:$LINENO: result: yes" >&5 5424 echo "${ECHO_T}yes" >&6 5425 : 5426 else 5427 echo "$as_me:$LINENO: result: no" >&5 5428 echo "${ECHO_T}no" >&6 5429 if test "$SDL_CONFIG" = "no" ; then 5430 echo "*** The sdl-config script installed by SDL could not be found" 5431 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in" 5432 echo "*** your path, or set the SDL_CONFIG environment variable to the" 5433 echo "*** full path to sdl-config." 5434 else 5435 if test -f conf.sdltest ; then 5436 : 5437 else 5438 echo "*** Could not run SDL test program, checking why..." 5439 CFLAGS="$CFLAGS $SDL_CFLAGS" 5440 LIBS="$LIBS $SDL_LIBS" 5441 cat >conftest.$ac_ext <<_ACEOF 5442 /* confdefs.h. */ 5443 _ACEOF 5444 cat confdefs.h >>conftest.$ac_ext 5445 cat >>conftest.$ac_ext <<_ACEOF 5446 /* end confdefs.h. */ 5447 5448 #include <stdio.h> 5449 #include "SDL.h" 5450 5451 int main(int argc, char *argv[]) 5452 { return 0; } 5453 #undef main 5454 #define main K_and_R_C_main 5455 5456 int 5457 main () 5458 { 5459 return 0; 5460 ; 5461 return 0; 5462 } 5463 _ACEOF 5464 rm -f conftest.$ac_objext conftest$ac_exeext 5465 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5466 (eval $ac_link) 2>conftest.er1 5240 $ac_includes_default 5241 #include <$ac_header> 5242 _ACEOF 5243 rm -f conftest.$ac_objext 5244 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5245 (eval $ac_compile) 2>conftest.er1 5467 5246 ac_status=$? 5468 5247 grep -v '^ *+' conftest.er1 >conftest.err … … 5478 5257 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5479 5258 (exit $ac_status); }; } && 5259 { ac_try='test -s conftest.$ac_objext' 5260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5261 (eval $ac_try) 2>&5 5262 ac_status=$? 5263 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5264 (exit $ac_status); }; }; then 5265 ac_header_compiler=yes 5266 else 5267 echo "$as_me: failed program was:" >&5 5268 sed 's/^/| /' conftest.$ac_ext >&5 5269 5270 ac_header_compiler=no 5271 fi 5272 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5273 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 5274 echo "${ECHO_T}$ac_header_compiler" >&6 5275 5276 # Is the header present? 5277 echo "$as_me:$LINENO: checking $ac_header presence" >&5 5278 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 5279 cat >conftest.$ac_ext <<_ACEOF 5280 /* confdefs.h. */ 5281 _ACEOF 5282 cat confdefs.h >>conftest.$ac_ext 5283 cat >>conftest.$ac_ext <<_ACEOF 5284 /* end confdefs.h. */ 5285 #include <$ac_header> 5286 _ACEOF 5287 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 5288 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 5289 ac_status=$? 5290 grep -v '^ *+' conftest.er1 >conftest.err 5291 rm -f conftest.er1 5292 cat conftest.err >&5 5293 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5294 (exit $ac_status); } >/dev/null; then 5295 if test -s conftest.err; then 5296 ac_cpp_err=$ac_c_preproc_warn_flag 5297 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 5298 else 5299 ac_cpp_err= 5300 fi 5301 else 5302 ac_cpp_err=yes 5303 fi 5304 if test -z "$ac_cpp_err"; then 5305 ac_header_preproc=yes 5306 else 5307 echo "$as_me: failed program was:" >&5 5308 sed 's/^/| /' conftest.$ac_ext >&5 5309 5310 ac_header_preproc=no 5311 fi 5312 rm -f conftest.err conftest.$ac_ext 5313 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 5314 echo "${ECHO_T}$ac_header_preproc" >&6 5315 5316 # So? What about this header? 5317 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 5318 yes:no: ) 5319 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 5320 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 5321 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 5322 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 5323 ac_header_preproc=yes 5324 ;; 5325 no:yes:* ) 5326 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 5327 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 5328 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 5329 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 5330 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 5331 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 5332 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 5333 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 5334 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 5335 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 5336 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 5337 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 5338 ( 5339 cat <<\_ASBOX 5340 ## ------------------------------------------- ## 5341 ## Report this to orxonox-dev@mail.datacore.ch ## 5342 ## ------------------------------------------- ## 5343 _ASBOX 5344 ) | 5345 sed "s/^/$as_me: WARNING: /" >&2 5346 ;; 5347 esac 5348 echo "$as_me:$LINENO: checking for $ac_header" >&5 5349 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 5350 if eval "test \"\${$as_ac_Header+set}\" = set"; then 5351 echo $ECHO_N "(cached) $ECHO_C" >&6 5352 else 5353 eval "$as_ac_Header=\$ac_header_preproc" 5354 fi 5355 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 5356 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 5357 5358 fi 5359 if test `eval echo '${'$as_ac_Header'}'` = yes; then 5360 cat >>confdefs.h <<_ACEOF 5361 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 5362 _ACEOF 5363 5364 else 5365 { { echo "$as_me:$LINENO: error: cannot find SDL headers" >&5 5366 echo "$as_me: error: cannot find SDL headers" >&2;} 5367 { (exit 1); exit 1; }; } 5368 fi 5369 5370 done 5371 5372 5373 echo "$as_me:$LINENO: checking for main in -lSDL" >&5 5374 echo $ECHO_N "checking for main in -lSDL... $ECHO_C" >&6 5375 if test "${ac_cv_lib_SDL_main+set}" = set; then 5376 echo $ECHO_N "(cached) $ECHO_C" >&6 5377 else 5378 ac_check_lib_save_LIBS=$LIBS 5379 LIBS="-lSDL $LIBS" 5380 cat >conftest.$ac_ext <<_ACEOF 5381 /* confdefs.h. */ 5382 _ACEOF 5383 cat confdefs.h >>conftest.$ac_ext 5384 cat >>conftest.$ac_ext <<_ACEOF 5385 /* end confdefs.h. */ 5386 5387 5388 int 5389 main () 5390 { 5391 main (); 5392 ; 5393 return 0; 5394 } 5395 _ACEOF 5396 rm -f conftest.$ac_objext conftest$ac_exeext 5397 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5398 (eval $ac_link) 2>conftest.er1 5399 ac_status=$? 5400 grep -v '^ *+' conftest.er1 >conftest.err 5401 rm -f conftest.er1 5402 cat conftest.err >&5 5403 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5404 (exit $ac_status); } && 5405 { ac_try='test -z "$ac_c_werror_flag" 5406 || test ! -s conftest.err' 5407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5408 (eval $ac_try) 2>&5 5409 ac_status=$? 5410 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5411 (exit $ac_status); }; } && 5480 5412 { ac_try='test -s conftest$ac_exeext' 5481 5413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 … … 5484 5416 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5485 5417 (exit $ac_status); }; }; then 5486 echo "*** The test program compiled, but did not run. This usually means" 5487 echo "*** that the run-time linker is not finding SDL or finding the wrong" 5488 echo "*** version of SDL. If it is not finding SDL, you'll need to set your" 5489 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" 5490 echo "*** to the installed location Also, make sure you have run ldconfig if that" 5491 echo "*** is required on your system" 5492 echo "***" 5493 echo "*** If you have an old version installed, it is best to remove it, although" 5494 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" 5418 ac_cv_lib_SDL_main=yes 5495 5419 else 5496 5420 echo "$as_me: failed program was:" >&5 5497 5421 sed 's/^/| /' conftest.$ac_ext >&5 5498 5422 5499 echo "*** The test program failed to compile or link. See the file config.log for the" 5500 echo "*** exact error that occured. This usually means SDL was incorrectly installed" 5501 echo "*** or that you have moved SDL since it was installed. In the latter case, you" 5502 echo "*** may want to edit the sdl-config script: $SDL_CONFIG" 5423 ac_cv_lib_SDL_main=no 5503 5424 fi 5504 5425 rm -f conftest.err conftest.$ac_objext \ 5505 5426 conftest$ac_exeext conftest.$ac_ext 5506 CFLAGS="$ac_save_CFLAGS" 5507 LIBS="$ac_save_LIBS" 5508 fi 5427 LIBS=$ac_check_lib_save_LIBS 5428 fi 5429 echo "$as_me:$LINENO: result: $ac_cv_lib_SDL_main" >&5 5430 echo "${ECHO_T}$ac_cv_lib_SDL_main" >&6 5431 if test $ac_cv_lib_SDL_main = yes; then 5432 FOUND_SDL=yes 5433 fi 5434 5435 if test "$FOUND_SDL" = "yes" ; then 5436 LIBS="$LIBS -lSDL" 5437 else 5438 echo "------------------" 5439 echo "SDL library not found." 5440 echo "please install the SDL library, which can be found at http://www.libsdl.org" 5441 echo "------------------" 5442 exit -1 5509 5443 fi 5510 SDL_CFLAGS="" 5511 SDL_LIBS="" 5512 { { echo "$as_me:$LINENO: error: *** SDL version $SDL_VERSION not found!" >&5 5513 echo "$as_me: error: *** SDL version $SDL_VERSION not found!" >&2;} 5514 { (exit 1); exit 1; }; } 5515 5516 fi 5517 5518 5519 rm -f conf.sdltest 5520 5521 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS" 5522 LIBS="$LIBS $SDL_LIBS" 5444 5445 ## checking for SDL 5446 # SDL_VERSION=1.2.7 5447 # AM_PATH_SDL($SDL_VERSION, 5448 # :, 5449 # AC_MSG_ERROR([*** SDL version $SDL_VERSION not found!]) 5450 # ) 5451 # CXXFLAGS="$CXXFLAGS $SDL_CFLAGS" 5452 # LIBS="$LIBS $SDL_LIBS" 5523 5453 ;; 5524 5454 *) 5525 mingw="no"5526 5455 ;; 5527 5456 esac … … 7310 7239 s,@CPP@,$CPP,;t t 7311 7240 s,@EGREP@,$EGREP,;t t 7312 s,@SDL_CONFIG@,$SDL_CONFIG,;t t7313 s,@SDL_CFLAGS@,$SDL_CFLAGS,;t t7314 s,@SDL_LIBS@,$SDL_LIBS,;t t7315 7241 s,@MSBITFIELDS@,$MSBITFIELDS,;t t 7316 7242 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
Note: See TracChangeset
for help on using the changeset viewer.