Changeset 2964 in orxonox.OLD for orxonox/branches/sound/configure
- Timestamp:
- Nov 23, 2004, 6:13:50 PM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/branches/sound/configure
r2854 r2964 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 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 AWK SET_MAKE am__leading_dot MSBITFIELDS 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 EGREPLIBOBJS 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 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 LIBOBJS LTLIBOBJS' 315 315 ac_subst_files='' 316 316 … … 858 858 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 859 859 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 860 --disable-dependency-tracking Speeds up one-time builds861 --enable-dependency-tracking Do not reject slow dependency extractors860 --disable-dependency-tracking speeds up one-time build 861 --enable-dependency-tracking do not reject slow dependency extractors 862 862 863 863 Some influential environment variables: … … 1321 1321 1322 1322 1323 am__api_version="1. 7"1323 am__api_version="1.8" 1324 1324 ac_aux_dir= 1325 1325 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do … … 1484 1484 rm conftest.sed 1485 1485 1486 1487 1486 # expand $ac_aux_dir to an absolute path 1488 1487 am_aux_dir=`cd $ac_aux_dir && pwd` … … 1496 1495 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 1497 1496 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 1497 fi 1498 1499 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then 1500 # Keeping the `.' argument allows $(mkdir_p) to be used without 1501 # argument. Indeed, we sometimes output rules like 1502 # $(mkdir_p) $(somedir) 1503 # where $(somedir) is conditionally defined. 1504 # (`test -n '$(somedir)' && $(mkdir_p) $(somedir)' is a more 1505 # expensive solution, as it forces Make to start a sub-shell.) 1506 mkdir_p='mkdir -p -- .' 1507 else 1508 # On NextStep and OpenStep, the `mkdir' command does not 1509 # recognize any option. It will interpret all options as 1510 # directories to create, and then abort because `.' already 1511 # exists. 1512 for d in ./-p ./--version; 1513 do 1514 test -d $d && rmdir $d 1515 done 1516 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists. 1517 if test -f "$ac_aux_dir/mkinstalldirs"; then 1518 mkdir_p='$(mkinstalldirs)' 1519 else 1520 mkdir_p='$(install_sh) -d' 1521 fi 1498 1522 fi 1499 1523 … … 1576 1600 rmdir .tst 2>/dev/null 1577 1601 1578 1602 # test to see if srcdir already configured 1579 1603 if test "`cd $srcdir && pwd`" != "`pwd`" && 1580 1604 test -f $srcdir/config.status; then … … 1725 1749 1726 1750 ac_config_headers="$ac_config_headers config.h" 1727 1728 1729 echo "$as_me:$LINENO: checking for mingw" >&51730 echo $ECHO_N "checking for mingw... $ECHO_C" >&61731 case `uname` in1732 *MINGW*)1733 mingw="yes"1734 MSBITFIELDS="-mms-bitfields"1735 MWINDOWS="-mwindows"1736 ;;1737 *)1738 mingw="no"1739 ;;1740 esac1741 echo "$as_me:$LINENO: result: $mingw" >&51742 echo "${ECHO_T}$mingw" >&61743 1751 1744 1752 … … 2407 2415 for i in 1 2 3 4 5 6; do 2408 2416 echo '#include "conftst'$i'.h"' >> sub/conftest.c 2409 : > sub/conftst$i.h 2417 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 2418 # Solaris 8's {/usr,}/bin/sh. 2419 touch sub/conftst$i.h 2410 2420 done 2411 2421 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf … … 2435 2445 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 2436 2446 # icc doesn't choke on unknown options, it will just issue warnings 2437 # (even with -Werror). So we grep stderr for any message 2438 # that says an option was ignored. 2439 if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else 2447 # or remarks (even with -Werror). So we grep stderr for any message 2448 # that says an option was ignored or not supported. 2449 # When given -MP, icc 7.0 and 7.1 complain thusly: 2450 # icc: Command line warning: ignoring option '-M'; no argument required 2451 # The diagnosis changed in icc 8.0: 2452 # icc: Command line remark: option '-MP' not supported 2453 if (grep 'ignoring option' conftest.err || 2454 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 2440 2455 am_cv_CXX_dependencies_compiler_type=$depmode 2441 2456 break … … 3238 3253 for i in 1 2 3 4 5 6; do 3239 3254 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3240 : > sub/conftst$i.h 3255 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 3256 # Solaris 8's {/usr,}/bin/sh. 3257 touch sub/conftst$i.h 3241 3258 done 3242 3259 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf … … 3266 3283 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3267 3284 # icc doesn't choke on unknown options, it will just issue warnings 3268 # (even with -Werror). So we grep stderr for any message 3269 # that says an option was ignored. 3270 if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else 3285 # or remarks (even with -Werror). So we grep stderr for any message 3286 # that says an option was ignored or not supported. 3287 # When given -MP, icc 7.0 and 7.1 complain thusly: 3288 # icc: Command line warning: ignoring option '-M'; no argument required 3289 # The diagnosis changed in icc 8.0: 3290 # icc: Command line remark: option '-MP' not supported 3291 if (grep 'ignoring option' conftest.err || 3292 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 3271 3293 am_cv_CC_dependencies_compiler_type=$depmode 3272 3294 break … … 3300 3322 3301 3323 3302 # Checks for libraries. 3303 3304 # cheking for libGL 3324 3325 3305 3326 3306 3327 ac_ext=c … … 3720 3741 fi 3721 3742 3722 # On IRIX 5.3, sys/types and inttypes.h are conflicting. 3743 3744 ### CHECKING FOR SYSTEM ### 3745 3746 echo "$as_me:$LINENO: checking for System" >&5 3747 echo $ECHO_N "checking for System... $ECHO_C" >&6 3748 case `uname` in 3749 ### WINDOWS ### 3750 *MINGW*) 3751 echo "mingw-WINDOWS detected" 3752 3753 mingw="yes" 3754 MSBITFIELDS="-mms-bitfields" 3755 MWINDOWS="-mwindows" 3756 3757 # checking gl header 3758 #done before loop 3759 3760 # checking gl header 3761 # On IRIX 5.3, sys/types and inttypes.h are conflicting. 3723 3762 3724 3763 … … 3946 3985 done 3947 3986 3948 3949 # checking for Unix GL 3950 echo "$as_me:$LINENO: checking for main in -lGL" >&5 3951 echo $ECHO_N "checking for main in -lGL... $ECHO_C" >&6 3952 if test "${ac_cv_lib_GL_main+set}" = set; then 3987 # checking for Windows openGl library 3988 echo "$as_me:$LINENO: checking for main in -lopengl32" >&5 3989 echo $ECHO_N "checking for main in -lopengl32... $ECHO_C" >&6 3990 if test "${ac_cv_lib_opengl32_main+set}" = set; then 3953 3991 echo $ECHO_N "(cached) $ECHO_C" >&6 3954 3992 else 3955 3993 ac_check_lib_save_LIBS=$LIBS 3956 LIBS="-l GL$LIBS"3994 LIBS="-lopengl32 $LIBS" 3957 3995 cat >conftest.$ac_ext <<_ACEOF 3958 3996 /* confdefs.h. */ … … 3993 4031 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3994 4032 (exit $ac_status); }; }; then 3995 ac_cv_lib_GL_main=yes3996 else3997 echo "$as_me: failed program was:" >&53998 sed 's/^/| /' conftest.$ac_ext >&53999 4000 ac_cv_lib_GL_main=no4001 fi4002 rm -f conftest.err conftest.$ac_objext \4003 conftest$ac_exeext conftest.$ac_ext4004 LIBS=$ac_check_lib_save_LIBS4005 fi4006 echo "$as_me:$LINENO: result: $ac_cv_lib_GL_main" >&54007 echo "${ECHO_T}$ac_cv_lib_GL_main" >&64008 if test $ac_cv_lib_GL_main = yes; then4009 FOUND_GL=yes4010 fi4011 4012 if test "$FOUND_GL" = "yes" ; then4013 LIBS="$LIBS -lGL"4014 # checking for Windows openGl library4015 else4016 echo "We did not find the Linux opengl Library. Checking for Windows Library"4017 echo "$as_me:$LINENO: checking for main in -lopengl32" >&54018 echo $ECHO_N "checking for main in -lopengl32... $ECHO_C" >&64019 if test "${ac_cv_lib_opengl32_main+set}" = set; then4020 echo $ECHO_N "(cached) $ECHO_C" >&64021 else4022 ac_check_lib_save_LIBS=$LIBS4023 LIBS="-lopengl32 $LIBS"4024 cat >conftest.$ac_ext <<_ACEOF4025 /* confdefs.h. */4026 _ACEOF4027 cat confdefs.h >>conftest.$ac_ext4028 cat >>conftest.$ac_ext <<_ACEOF4029 /* end confdefs.h. */4030 4031 4032 int4033 main ()4034 {4035 main ();4036 ;4037 return 0;4038 }4039 _ACEOF4040 rm -f conftest.$ac_objext conftest$ac_exeext4041 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&54042 (eval $ac_link) 2>conftest.er14043 ac_status=$?4044 grep -v '^ *+' conftest.er1 >conftest.err4045 rm -f conftest.er14046 cat conftest.err >&54047 echo "$as_me:$LINENO: \$? = $ac_status" >&54048 (exit $ac_status); } &&4049 { ac_try='test -z "$ac_c_werror_flag"4050 || test ! -s conftest.err'4051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&54052 (eval $ac_try) 2>&54053 ac_status=$?4054 echo "$as_me:$LINENO: \$? = $ac_status" >&54055 (exit $ac_status); }; } &&4056 { ac_try='test -s conftest$ac_exeext'4057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&54058 (eval $ac_try) 2>&54059 ac_status=$?4060 echo "$as_me:$LINENO: \$? = $ac_status" >&54061 (exit $ac_status); }; }; then4062 4033 ac_cv_lib_opengl32_main=yes 4063 4034 else … … 4081 4052 if test "$FOUND_opengl32" = "yes" ; then 4082 4053 LIBS="$LIBS -lopengl32" 4083 4084 4054 else 4085 4055 echo "------------------" … … 4089 4059 exit -1 4090 4060 fi 4091 fi 4092 4093 # cheking for libGLU 4061 4062 # cheking for GLU-header 4094 4063 4095 4064 for ac_header in GL/glu.h … … 4247 4216 4248 4217 4249 echo "$as_me:$LINENO: checking for gluProject in -lGLU" >&5 4250 echo $ECHO_N "checking for gluProject in -lGLU... $ECHO_C" >&6 4251 if test "${ac_cv_lib_GLU_gluProject+set}" = set; then 4252 echo $ECHO_N "(cached) $ECHO_C" >&6 4253 else 4254 ac_check_lib_save_LIBS=$LIBS 4255 LIBS="-lGLU $LIBS" 4256 cat >conftest.$ac_ext <<_ACEOF 4257 /* confdefs.h. */ 4258 _ACEOF 4259 cat confdefs.h >>conftest.$ac_ext 4260 cat >>conftest.$ac_ext <<_ACEOF 4261 /* end confdefs.h. */ 4262 4263 /* Override any gcc2 internal prototype to avoid an error. */ 4264 #ifdef __cplusplus 4265 extern "C" 4266 #endif 4267 /* We use char because int might match the return type of a gcc2 4268 builtin and then its argument prototype would still apply. */ 4269 char gluProject (); 4270 int 4271 main () 4272 { 4273 gluProject (); 4274 ; 4275 return 0; 4276 } 4277 _ACEOF 4278 rm -f conftest.$ac_objext conftest$ac_exeext 4279 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4280 (eval $ac_link) 2>conftest.er1 4281 ac_status=$? 4282 grep -v '^ *+' conftest.er1 >conftest.err 4283 rm -f conftest.er1 4284 cat conftest.err >&5 4285 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4286 (exit $ac_status); } && 4287 { ac_try='test -z "$ac_c_werror_flag" 4288 || test ! -s conftest.err' 4289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4290 (eval $ac_try) 2>&5 4291 ac_status=$? 4292 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4293 (exit $ac_status); }; } && 4294 { ac_try='test -s conftest$ac_exeext' 4295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4296 (eval $ac_try) 2>&5 4297 ac_status=$? 4298 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4299 (exit $ac_status); }; }; then 4300 ac_cv_lib_GLU_gluProject=yes 4301 else 4302 echo "$as_me: failed program was:" >&5 4303 sed 's/^/| /' conftest.$ac_ext >&5 4304 4305 ac_cv_lib_GLU_gluProject=no 4306 fi 4307 rm -f conftest.err conftest.$ac_objext \ 4308 conftest$ac_exeext conftest.$ac_ext 4309 LIBS=$ac_check_lib_save_LIBS 4310 fi 4311 echo "$as_me:$LINENO: result: $ac_cv_lib_GLU_gluProject" >&5 4312 echo "${ECHO_T}$ac_cv_lib_GLU_gluProject" >&6 4313 if test $ac_cv_lib_GLU_gluProject = yes; then 4314 FOUND_GLU=yes 4315 fi 4316 4317 if test "$FOUND_GLU" = "yes" ; then 4318 LIBS="$LIBS -lGLU" 4319 # checking for Windows GLU32 library 4320 else 4321 echo "We did not find the Linux GLU Library. Checking for Windows Library" 4218 # checking for libGLU 4322 4219 echo "$as_me:$LINENO: checking for main in -lglu32" >&5 4323 4220 echo $ECHO_N "checking for main in -lglu32... $ECHO_C" >&6 … … 4384 4281 if test "$FOUND_glu32" = "yes" ; then 4385 4282 LIBS="$LIBS -lGLU32" 4386 4387 else 4283 else 4388 4284 echo "------------------" 4389 4285 echo "GLU library not found." … … 4392 4288 exit -1 4393 4289 fi 4394 fi 4395 4396 4397 for ac_header in SDL/SDL_mixer.h 4290 4291 4292 # checking for mingw32 4293 echo "$as_me:$LINENO: checking for main in -lmingw32" >&5 4294 echo $ECHO_N "checking for main in -lmingw32... $ECHO_C" >&6 4295 if test "${ac_cv_lib_mingw32_main+set}" = set; then 4296 echo $ECHO_N "(cached) $ECHO_C" >&6 4297 else 4298 ac_check_lib_save_LIBS=$LIBS 4299 LIBS="-lmingw32 $LIBS" 4300 cat >conftest.$ac_ext <<_ACEOF 4301 /* confdefs.h. */ 4302 _ACEOF 4303 cat confdefs.h >>conftest.$ac_ext 4304 cat >>conftest.$ac_ext <<_ACEOF 4305 /* end confdefs.h. */ 4306 4307 4308 int 4309 main () 4310 { 4311 main (); 4312 ; 4313 return 0; 4314 } 4315 _ACEOF 4316 rm -f conftest.$ac_objext conftest$ac_exeext 4317 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4318 (eval $ac_link) 2>conftest.er1 4319 ac_status=$? 4320 grep -v '^ *+' conftest.er1 >conftest.err 4321 rm -f conftest.er1 4322 cat conftest.err >&5 4323 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4324 (exit $ac_status); } && 4325 { ac_try='test -z "$ac_c_werror_flag" 4326 || test ! -s conftest.err' 4327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4328 (eval $ac_try) 2>&5 4329 ac_status=$? 4330 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4331 (exit $ac_status); }; } && 4332 { ac_try='test -s conftest$ac_exeext' 4333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4334 (eval $ac_try) 2>&5 4335 ac_status=$? 4336 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4337 (exit $ac_status); }; }; then 4338 ac_cv_lib_mingw32_main=yes 4339 else 4340 echo "$as_me: failed program was:" >&5 4341 sed 's/^/| /' conftest.$ac_ext >&5 4342 4343 ac_cv_lib_mingw32_main=no 4344 fi 4345 rm -f conftest.err conftest.$ac_objext \ 4346 conftest$ac_exeext conftest.$ac_ext 4347 LIBS=$ac_check_lib_save_LIBS 4348 fi 4349 echo "$as_me:$LINENO: result: $ac_cv_lib_mingw32_main" >&5 4350 echo "${ECHO_T}$ac_cv_lib_mingw32_main" >&6 4351 if test $ac_cv_lib_mingw32_main = yes; then 4352 FOUND_mingw32=yes 4353 fi 4354 4355 if test $FOUND_mingw32 = "yes"; then 4356 LIBS="$LIBS -lmingw32" 4357 fi 4358 # checking for SDL-headers 4359 4360 for ac_header in SDL/SDL.h 4398 4361 do 4399 4362 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` … … 4541 4504 4542 4505 else 4543 { { echo "$as_me:$LINENO: error: cannot find sdlmixerheaders" >&54544 echo "$as_me: error: cannot find sdlmixerheaders" >&2;}4506 { { echo "$as_me:$LINENO: error: cannot find SDL headers" >&5 4507 echo "$as_me: error: cannot find SDL headers" >&2;} 4545 4508 { (exit 1); exit 1; }; } 4546 4509 fi … … 4549 4512 4550 4513 4551 LIBS="$LIBS -lSDL_mixer" 4552 4553 # FIXME: Replace `main' with a function in `-lOSMesa': 4554 4555 echo "$as_me:$LINENO: checking for main in -lOSMesa" >&5 4556 echo $ECHO_N "checking for main in -lOSMesa... $ECHO_C" >&6 4557 if test "${ac_cv_lib_OSMesa_main+set}" = set; then 4514 #checking for libSDL 4515 echo "$as_me:$LINENO: checking for main in -lsdlmain" >&5 4516 echo $ECHO_N "checking for main in -lsdlmain... $ECHO_C" >&6 4517 if test "${ac_cv_lib_sdlmain_main+set}" = set; then 4558 4518 echo $ECHO_N "(cached) $ECHO_C" >&6 4559 4519 else 4560 4520 ac_check_lib_save_LIBS=$LIBS 4561 LIBS="-l OSMesa$LIBS"4521 LIBS="-lsdlmain $LIBS" 4562 4522 cat >conftest.$ac_ext <<_ACEOF 4563 4523 /* confdefs.h. */ … … 4598 4558 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4599 4559 (exit $ac_status); }; }; then 4600 ac_cv_lib_ OSMesa_main=yes4560 ac_cv_lib_sdlmain_main=yes 4601 4561 else 4602 4562 echo "$as_me: failed program was:" >&5 4603 4563 sed 's/^/| /' conftest.$ac_ext >&5 4604 4564 4605 ac_cv_lib_ OSMesa_main=no4565 ac_cv_lib_sdlmain_main=no 4606 4566 fi 4607 4567 rm -f conftest.err conftest.$ac_objext \ … … 4609 4569 LIBS=$ac_check_lib_save_LIBS 4610 4570 fi 4611 echo "$as_me:$LINENO: result: $ac_cv_lib_OSMesa_main" >&5 4612 echo "${ECHO_T}$ac_cv_lib_OSMesa_main" >&6 4613 if test $ac_cv_lib_OSMesa_main = yes; then 4614 cat >>confdefs.h <<_ACEOF 4615 #define HAVE_LIBOSMESA 1 4616 _ACEOF 4617 4618 LIBS="-lOSMesa $LIBS" 4619 4620 fi 4621 4622 # FIXME: Replace `main' with a function in `-lX11': 4623 4624 echo "$as_me:$LINENO: checking for main in -lX11" >&5 4625 echo $ECHO_N "checking for main in -lX11... $ECHO_C" >&6 4626 if test "${ac_cv_lib_X11_main+set}" = set; then 4571 echo "$as_me:$LINENO: result: $ac_cv_lib_sdlmain_main" >&5 4572 echo "${ECHO_T}$ac_cv_lib_sdlmain_main" >&6 4573 if test $ac_cv_lib_sdlmain_main = yes; then 4574 FOUND_sdlmain=yes 4575 fi 4576 4577 if test "$FOUND_sdlmain" = "yes" ; then 4578 LIBS="$LIBS -lsdlmain" 4579 else 4580 echo "------------------" 4581 echo "SDL library not found." 4582 echo "please install the SDL library, which can be found at http://www.libsdl.org" 4583 echo "------------------" 4584 exit 1 4585 fi 4586 echo "$as_me:$LINENO: checking for main in -lsdl" >&5 4587 echo $ECHO_N "checking for main in -lsdl... $ECHO_C" >&6 4588 if test "${ac_cv_lib_sdl_main+set}" = set; then 4627 4589 echo $ECHO_N "(cached) $ECHO_C" >&6 4628 4590 else 4629 4591 ac_check_lib_save_LIBS=$LIBS 4630 LIBS="-l X11$LIBS"4592 LIBS="-lsdl $LIBS" 4631 4593 cat >conftest.$ac_ext <<_ACEOF 4632 4594 /* confdefs.h. */ … … 4667 4629 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4668 4630 (exit $ac_status); }; }; then 4669 ac_cv_lib_ X11_main=yes4631 ac_cv_lib_sdl_main=yes 4670 4632 else 4671 4633 echo "$as_me: failed program was:" >&5 4672 4634 sed 's/^/| /' conftest.$ac_ext >&5 4673 4635 4674 ac_cv_lib_ X11_main=no4636 ac_cv_lib_sdl_main=no 4675 4637 fi 4676 4638 rm -f conftest.err conftest.$ac_objext \ … … 4678 4640 LIBS=$ac_check_lib_save_LIBS 4679 4641 fi 4680 echo "$as_me:$LINENO: result: $ac_cv_lib_X11_main" >&5 4681 echo "${ECHO_T}$ac_cv_lib_X11_main" >&6 4682 if test $ac_cv_lib_X11_main = yes; then 4683 cat >>confdefs.h <<_ACEOF 4684 #define HAVE_LIBX11 1 4685 _ACEOF 4686 4687 LIBS="-lX11 $LIBS" 4688 4689 fi 4690 4691 # FIXME: Replace `main' with a function in `-lXt': 4692 4693 echo "$as_me:$LINENO: checking for main in -lXt" >&5 4694 echo $ECHO_N "checking for main in -lXt... $ECHO_C" >&6 4695 if test "${ac_cv_lib_Xt_main+set}" = set; then 4696 echo $ECHO_N "(cached) $ECHO_C" >&6 4697 else 4698 ac_check_lib_save_LIBS=$LIBS 4699 LIBS="-lXt $LIBS" 4700 cat >conftest.$ac_ext <<_ACEOF 4701 /* confdefs.h. */ 4702 _ACEOF 4703 cat confdefs.h >>conftest.$ac_ext 4704 cat >>conftest.$ac_ext <<_ACEOF 4705 /* end confdefs.h. */ 4706 4707 4708 int 4709 main () 4710 { 4711 main (); 4712 ; 4713 return 0; 4714 } 4715 _ACEOF 4716 rm -f conftest.$ac_objext conftest$ac_exeext 4717 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4718 (eval $ac_link) 2>conftest.er1 4719 ac_status=$? 4720 grep -v '^ *+' conftest.er1 >conftest.err 4721 rm -f conftest.er1 4722 cat conftest.err >&5 4723 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4724 (exit $ac_status); } && 4725 { ac_try='test -z "$ac_c_werror_flag" 4726 || test ! -s conftest.err' 4727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4728 (eval $ac_try) 2>&5 4729 ac_status=$? 4730 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4731 (exit $ac_status); }; } && 4732 { ac_try='test -s conftest$ac_exeext' 4733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4734 (eval $ac_try) 2>&5 4735 ac_status=$? 4736 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4737 (exit $ac_status); }; }; then 4738 ac_cv_lib_Xt_main=yes 4739 else 4740 echo "$as_me: failed program was:" >&5 4741 sed 's/^/| /' conftest.$ac_ext >&5 4742 4743 ac_cv_lib_Xt_main=no 4744 fi 4745 rm -f conftest.err conftest.$ac_objext \ 4746 conftest$ac_exeext conftest.$ac_ext 4747 LIBS=$ac_check_lib_save_LIBS 4748 fi 4749 echo "$as_me:$LINENO: result: $ac_cv_lib_Xt_main" >&5 4750 echo "${ECHO_T}$ac_cv_lib_Xt_main" >&6 4751 if test $ac_cv_lib_Xt_main = yes; then 4752 cat >>confdefs.h <<_ACEOF 4753 #define HAVE_LIBXT 1 4754 _ACEOF 4755 4756 LIBS="-lXt $LIBS" 4757 4758 fi 4759 4760 4761 ## mingw CHECK 4762 if test $mingw = yes ; then 4763 echo "$as_me:$LINENO: checking for main in -lmingw32" >&5 4764 echo $ECHO_N "checking for main in -lmingw32... $ECHO_C" >&6 4765 if test "${ac_cv_lib_mingw32_main+set}" = set; then 4766 echo $ECHO_N "(cached) $ECHO_C" >&6 4767 else 4768 ac_check_lib_save_LIBS=$LIBS 4769 LIBS="-lmingw32 $LIBS" 4770 cat >conftest.$ac_ext <<_ACEOF 4771 /* confdefs.h. */ 4772 _ACEOF 4773 cat confdefs.h >>conftest.$ac_ext 4774 cat >>conftest.$ac_ext <<_ACEOF 4775 /* end confdefs.h. */ 4776 4777 4778 int 4779 main () 4780 { 4781 main (); 4782 ; 4783 return 0; 4784 } 4785 _ACEOF 4786 rm -f conftest.$ac_objext conftest$ac_exeext 4787 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4788 (eval $ac_link) 2>conftest.er1 4789 ac_status=$? 4790 grep -v '^ *+' conftest.er1 >conftest.err 4791 rm -f conftest.er1 4792 cat conftest.err >&5 4793 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4794 (exit $ac_status); } && 4795 { ac_try='test -z "$ac_c_werror_flag" 4796 || test ! -s conftest.err' 4797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4798 (eval $ac_try) 2>&5 4799 ac_status=$? 4800 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4801 (exit $ac_status); }; } && 4802 { ac_try='test -s conftest$ac_exeext' 4803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4804 (eval $ac_try) 2>&5 4805 ac_status=$? 4806 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4807 (exit $ac_status); }; }; then 4808 ac_cv_lib_mingw32_main=yes 4809 else 4810 echo "$as_me: failed program was:" >&5 4811 sed 's/^/| /' conftest.$ac_ext >&5 4812 4813 ac_cv_lib_mingw32_main=no 4814 fi 4815 rm -f conftest.err conftest.$ac_objext \ 4816 conftest$ac_exeext conftest.$ac_ext 4817 LIBS=$ac_check_lib_save_LIBS 4818 fi 4819 echo "$as_me:$LINENO: result: $ac_cv_lib_mingw32_main" >&5 4820 echo "${ECHO_T}$ac_cv_lib_mingw32_main" >&6 4821 if test $ac_cv_lib_mingw32_main = yes; then 4822 FOUND_mingw32=yes 4823 fi 4824 4825 if test $FOUND_mingw32 = "yes"; then 4826 LIBS="$LIBS -lmingw32" 4827 fi 4828 fi 4829 4830 ## SDL CHECK 4831 4832 #checking for SDL libs 4833 4834 for ac_header in SDL/SDL.h 4642 echo "$as_me:$LINENO: result: $ac_cv_lib_sdl_main" >&5 4643 echo "${ECHO_T}$ac_cv_lib_sdl_main" >&6 4644 if test $ac_cv_lib_sdl_main = yes; then 4645 FOUND_sdl=yes 4646 fi 4647 4648 if test "$FOUND_sdl" = "yes" ; then 4649 LIBS="$LIBS -lsdl" 4650 else 4651 echo "------------------" 4652 echo "SDL library not found." 4653 echo "please install the SDL library, which can be found at http://www.libsdl.org" 4654 echo "------------------" 4655 exit -1 4656 fi 4657 4658 # checking for SDL-Mixer-headers 4659 4660 for ac_header in SDL/SDL_mixer.h 4835 4661 do 4836 4662 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` … … 4985 4811 done 4986 4812 4987 if test $mingw = no ; then 4988 echo "$as_me:$LINENO: checking for main in -lSDL" >&5 4989 echo $ECHO_N "checking for main in -lSDL... $ECHO_C" >&6 4990 if test "${ac_cv_lib_SDL_main+set}" = set; then 4813 4814 #checking for libSDL_mixer 4815 echo "$as_me:$LINENO: checking for main in -lSDL_mixer" >&5 4816 echo $ECHO_N "checking for main in -lSDL_mixer... $ECHO_C" >&6 4817 if test "${ac_cv_lib_SDL_mixer_main+set}" = set; then 4991 4818 echo $ECHO_N "(cached) $ECHO_C" >&6 4992 4819 else 4993 4820 ac_check_lib_save_LIBS=$LIBS 4994 LIBS="-lSDL $LIBS"4821 LIBS="-lSDL_mixer $LIBS" 4995 4822 cat >conftest.$ac_ext <<_ACEOF 4996 4823 /* confdefs.h. */ … … 5031 4858 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5032 4859 (exit $ac_status); }; }; then 5033 ac_cv_lib_SDL_m ain=yes4860 ac_cv_lib_SDL_mixer_main=yes 5034 4861 else 5035 4862 echo "$as_me: failed program was:" >&5 5036 4863 sed 's/^/| /' conftest.$ac_ext >&5 5037 4864 5038 ac_cv_lib_SDL_m ain=no4865 ac_cv_lib_SDL_mixer_main=no 5039 4866 fi 5040 4867 rm -f conftest.err conftest.$ac_objext \ … … 5042 4869 LIBS=$ac_check_lib_save_LIBS 5043 4870 fi 5044 echo "$as_me:$LINENO: result: $ac_cv_lib_SDL_main" >&5 5045 echo "${ECHO_T}$ac_cv_lib_SDL_main" >&6 5046 if test $ac_cv_lib_SDL_main = yes; then 5047 FOUND_SDL=yes 5048 fi 5049 5050 if test "$FOUND_SDL" = "yes" ; then 5051 LIBS="$LIBS -lSDL" 5052 fi 5053 # checking for Windows sdl library 5054 else 5055 echo "$as_me:$LINENO: checking for main in -lsdlmain" >&5 5056 echo $ECHO_N "checking for main in -lsdlmain... $ECHO_C" >&6 5057 if test "${ac_cv_lib_sdlmain_main+set}" = set; then 5058 echo $ECHO_N "(cached) $ECHO_C" >&6 5059 else 5060 ac_check_lib_save_LIBS=$LIBS 5061 LIBS="-lsdlmain $LIBS" 5062 cat >conftest.$ac_ext <<_ACEOF 5063 /* confdefs.h. */ 5064 _ACEOF 5065 cat confdefs.h >>conftest.$ac_ext 5066 cat >>conftest.$ac_ext <<_ACEOF 5067 /* end confdefs.h. */ 5068 5069 5070 int 5071 main () 5072 { 5073 main (); 5074 ; 5075 return 0; 5076 } 5077 _ACEOF 5078 rm -f conftest.$ac_objext conftest$ac_exeext 5079 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5080 (eval $ac_link) 2>conftest.er1 5081 ac_status=$? 5082 grep -v '^ *+' conftest.er1 >conftest.err 5083 rm -f conftest.er1 5084 cat conftest.err >&5 5085 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5086 (exit $ac_status); } && 5087 { ac_try='test -z "$ac_c_werror_flag" 5088 || test ! -s conftest.err' 5089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5090 (eval $ac_try) 2>&5 5091 ac_status=$? 5092 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5093 (exit $ac_status); }; } && 5094 { ac_try='test -s conftest$ac_exeext' 5095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5096 (eval $ac_try) 2>&5 5097 ac_status=$? 5098 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5099 (exit $ac_status); }; }; then 5100 ac_cv_lib_sdlmain_main=yes 5101 else 5102 echo "$as_me: failed program was:" >&5 5103 sed 's/^/| /' conftest.$ac_ext >&5 5104 5105 ac_cv_lib_sdlmain_main=no 5106 fi 5107 rm -f conftest.err conftest.$ac_objext \ 5108 conftest$ac_exeext conftest.$ac_ext 5109 LIBS=$ac_check_lib_save_LIBS 5110 fi 5111 echo "$as_me:$LINENO: result: $ac_cv_lib_sdlmain_main" >&5 5112 echo "${ECHO_T}$ac_cv_lib_sdlmain_main" >&6 5113 if test $ac_cv_lib_sdlmain_main = yes; then 5114 FOUND_sdlmain=yes 5115 fi 5116 5117 if test "$FOUND_sdlmain" = "yes" ; then 5118 LIBS="$LIBS -lsdlmain" 4871 echo "$as_me:$LINENO: result: $ac_cv_lib_SDL_mixer_main" >&5 4872 echo "${ECHO_T}$ac_cv_lib_SDL_mixer_main" >&6 4873 if test $ac_cv_lib_SDL_mixer_main = yes; then 4874 FOUND_SDL_mixer=yes 4875 fi 4876 4877 if test "$FOUND_SDL_mixer" = "yes" ; then 4878 LIBS="$LIBS -lSDL_mixer" 4879 else 4880 echo "------------------" 4881 echo "SDL Mixer library not found." 4882 echo "please install the SDL Mixer library, which can be found at http://www.libsdl.org" 4883 echo "------------------" 4884 exit 1 5119 4885 fi 5120 echo "$as_me:$LINENO: checking for main in -lsdl" >&5 5121 echo $ECHO_N "checking for main in -lsdl... $ECHO_C" >&6 5122 if test "${ac_cv_lib_sdl_main+set}" = set; then 5123 echo $ECHO_N "(cached) $ECHO_C" >&6 5124 else 5125 ac_check_lib_save_LIBS=$LIBS 5126 LIBS="-lsdl $LIBS" 5127 cat >conftest.$ac_ext <<_ACEOF 5128 /* confdefs.h. */ 5129 _ACEOF 5130 cat confdefs.h >>conftest.$ac_ext 5131 cat >>conftest.$ac_ext <<_ACEOF 5132 /* end confdefs.h. */ 5133 5134 5135 int 5136 main () 5137 { 5138 main (); 5139 ; 5140 return 0; 5141 } 5142 _ACEOF 5143 rm -f conftest.$ac_objext conftest$ac_exeext 5144 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5145 (eval $ac_link) 2>conftest.er1 5146 ac_status=$? 5147 grep -v '^ *+' conftest.er1 >conftest.err 5148 rm -f conftest.er1 5149 cat conftest.err >&5 5150 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5151 (exit $ac_status); } && 5152 { ac_try='test -z "$ac_c_werror_flag" 5153 || test ! -s conftest.err' 5154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5155 (eval $ac_try) 2>&5 5156 ac_status=$? 5157 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5158 (exit $ac_status); }; } && 5159 { ac_try='test -s conftest$ac_exeext' 5160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5161 (eval $ac_try) 2>&5 5162 ac_status=$? 5163 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5164 (exit $ac_status); }; }; then 5165 ac_cv_lib_sdl_main=yes 5166 else 5167 echo "$as_me: failed program was:" >&5 5168 sed 's/^/| /' conftest.$ac_ext >&5 5169 5170 ac_cv_lib_sdl_main=no 5171 fi 5172 rm -f conftest.err conftest.$ac_objext \ 5173 conftest$ac_exeext conftest.$ac_ext 5174 LIBS=$ac_check_lib_save_LIBS 5175 fi 5176 echo "$as_me:$LINENO: result: $ac_cv_lib_sdl_main" >&5 5177 echo "${ECHO_T}$ac_cv_lib_sdl_main" >&6 5178 if test $ac_cv_lib_sdl_main = yes; then 5179 FOUND_sdl=yes 5180 fi 5181 5182 if test "$FOUND_sdl" = "yes" ; then 5183 LIBS="$LIBS -lsdl" 5184 fi 5185 fi 5186 5187 #checking for pthread libs 5188 echo "$as_me:$LINENO: checking for main in -lpthread" >&5 5189 echo $ECHO_N "checking for main in -lpthread... $ECHO_C" >&6 5190 if test "${ac_cv_lib_pthread_main+set}" = set; then 5191 echo $ECHO_N "(cached) $ECHO_C" >&6 5192 else 5193 ac_check_lib_save_LIBS=$LIBS 5194 LIBS="-lpthread $LIBS" 5195 cat >conftest.$ac_ext <<_ACEOF 5196 /* confdefs.h. */ 5197 _ACEOF 5198 cat confdefs.h >>conftest.$ac_ext 5199 cat >>conftest.$ac_ext <<_ACEOF 5200 /* end confdefs.h. */ 5201 5202 5203 int 5204 main () 5205 { 5206 main (); 5207 ; 5208 return 0; 5209 } 5210 _ACEOF 5211 rm -f conftest.$ac_objext conftest$ac_exeext 5212 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5213 (eval $ac_link) 2>conftest.er1 5214 ac_status=$? 5215 grep -v '^ *+' conftest.er1 >conftest.err 5216 rm -f conftest.er1 5217 cat conftest.err >&5 5218 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5219 (exit $ac_status); } && 5220 { ac_try='test -z "$ac_c_werror_flag" 5221 || test ! -s conftest.err' 5222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5223 (eval $ac_try) 2>&5 5224 ac_status=$? 5225 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5226 (exit $ac_status); }; } && 5227 { ac_try='test -s conftest$ac_exeext' 5228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5229 (eval $ac_try) 2>&5 5230 ac_status=$? 5231 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5232 (exit $ac_status); }; }; then 5233 ac_cv_lib_pthread_main=yes 5234 else 5235 echo "$as_me: failed program was:" >&5 5236 sed 's/^/| /' conftest.$ac_ext >&5 5237 5238 ac_cv_lib_pthread_main=no 5239 fi 5240 rm -f conftest.err conftest.$ac_objext \ 5241 conftest$ac_exeext conftest.$ac_ext 5242 LIBS=$ac_check_lib_save_LIBS 5243 fi 5244 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_main" >&5 5245 echo "${ECHO_T}$ac_cv_lib_pthread_main" >&6 5246 if test $ac_cv_lib_pthread_main = yes; then 5247 FOUND_pthread=yes 5248 fi 5249 5250 if test "$FOUND_pthread" = "yes" ; then 5251 LIBS="$LIBS -lpthread" 5252 fi 5253 5254 5255 5256 5257 # FIXME: Replace `main' with a function in `-lm': 5258 5259 echo "$as_me:$LINENO: checking for main in -lm" >&5 5260 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6 5261 if test "${ac_cv_lib_m_main+set}" = set; then 5262 echo $ECHO_N "(cached) $ECHO_C" >&6 5263 else 5264 ac_check_lib_save_LIBS=$LIBS 5265 LIBS="-lm $LIBS" 5266 cat >conftest.$ac_ext <<_ACEOF 5267 /* confdefs.h. */ 5268 _ACEOF 5269 cat confdefs.h >>conftest.$ac_ext 5270 cat >>conftest.$ac_ext <<_ACEOF 5271 /* end confdefs.h. */ 5272 5273 5274 int 5275 main () 5276 { 5277 main (); 5278 ; 5279 return 0; 5280 } 5281 _ACEOF 5282 rm -f conftest.$ac_objext conftest$ac_exeext 5283 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5284 (eval $ac_link) 2>conftest.er1 5285 ac_status=$? 5286 grep -v '^ *+' conftest.er1 >conftest.err 5287 rm -f conftest.er1 5288 cat conftest.err >&5 5289 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5290 (exit $ac_status); } && 5291 { ac_try='test -z "$ac_c_werror_flag" 5292 || test ! -s conftest.err' 5293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5294 (eval $ac_try) 2>&5 5295 ac_status=$? 5296 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5297 (exit $ac_status); }; } && 5298 { ac_try='test -s conftest$ac_exeext' 5299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5300 (eval $ac_try) 2>&5 5301 ac_status=$? 5302 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5303 (exit $ac_status); }; }; then 5304 ac_cv_lib_m_main=yes 5305 else 5306 echo "$as_me: failed program was:" >&5 5307 sed 's/^/| /' conftest.$ac_ext >&5 5308 5309 ac_cv_lib_m_main=no 5310 fi 5311 rm -f conftest.err conftest.$ac_objext \ 5312 conftest$ac_exeext conftest.$ac_ext 5313 LIBS=$ac_check_lib_save_LIBS 5314 fi 5315 echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5 5316 echo "${ECHO_T}$ac_cv_lib_m_main" >&6 5317 if test $ac_cv_lib_m_main = yes; then 5318 cat >>confdefs.h <<_ACEOF 5319 #define HAVE_LIBM 1 5320 _ACEOF 5321 5322 LIBS="-lm $LIBS" 5323 5324 fi 5325 5326 5327 LIBS="$LIBS `pkg-config --libs gtk+-2.0`" 5328 5329 5330 # Checks for header files. 5331 echo "$as_me:$LINENO: checking for ANSI C header files" >&5 5332 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 5333 if test "${ac_cv_header_stdc+set}" = set; then 5334 echo $ECHO_N "(cached) $ECHO_C" >&6 5335 else 5336 cat >conftest.$ac_ext <<_ACEOF 5337 /* confdefs.h. */ 5338 _ACEOF 5339 cat confdefs.h >>conftest.$ac_ext 5340 cat >>conftest.$ac_ext <<_ACEOF 5341 /* end confdefs.h. */ 5342 #include <stdlib.h> 5343 #include <stdarg.h> 5344 #include <string.h> 5345 #include <float.h> 5346 5347 int 5348 main () 5349 { 5350 5351 ; 5352 return 0; 5353 } 5354 _ACEOF 5355 rm -f conftest.$ac_objext 5356 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5357 (eval $ac_compile) 2>conftest.er1 5358 ac_status=$? 5359 grep -v '^ *+' conftest.er1 >conftest.err 5360 rm -f conftest.er1 5361 cat conftest.err >&5 5362 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5363 (exit $ac_status); } && 5364 { ac_try='test -z "$ac_c_werror_flag" 5365 || test ! -s conftest.err' 5366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5367 (eval $ac_try) 2>&5 5368 ac_status=$? 5369 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5370 (exit $ac_status); }; } && 5371 { ac_try='test -s conftest.$ac_objext' 5372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5373 (eval $ac_try) 2>&5 5374 ac_status=$? 5375 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5376 (exit $ac_status); }; }; then 5377 ac_cv_header_stdc=yes 5378 else 5379 echo "$as_me: failed program was:" >&5 5380 sed 's/^/| /' conftest.$ac_ext >&5 5381 5382 ac_cv_header_stdc=no 5383 fi 5384 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5385 5386 if test $ac_cv_header_stdc = yes; then 5387 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 5388 cat >conftest.$ac_ext <<_ACEOF 5389 /* confdefs.h. */ 5390 _ACEOF 5391 cat confdefs.h >>conftest.$ac_ext 5392 cat >>conftest.$ac_ext <<_ACEOF 5393 /* end confdefs.h. */ 5394 #include <string.h> 5395 5396 _ACEOF 5397 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5398 $EGREP "memchr" >/dev/null 2>&1; then 5399 : 5400 else 5401 ac_cv_header_stdc=no 5402 fi 5403 rm -f conftest* 5404 5405 fi 5406 5407 if test $ac_cv_header_stdc = yes; then 5408 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 5409 cat >conftest.$ac_ext <<_ACEOF 5410 /* confdefs.h. */ 5411 _ACEOF 5412 cat confdefs.h >>conftest.$ac_ext 5413 cat >>conftest.$ac_ext <<_ACEOF 5414 /* end confdefs.h. */ 5415 #include <stdlib.h> 5416 5417 _ACEOF 5418 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5419 $EGREP "free" >/dev/null 2>&1; then 5420 : 5421 else 5422 ac_cv_header_stdc=no 5423 fi 5424 rm -f conftest* 5425 5426 fi 5427 5428 if test $ac_cv_header_stdc = yes; then 5429 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 5430 if test "$cross_compiling" = yes; then 5431 : 5432 else 5433 cat >conftest.$ac_ext <<_ACEOF 5434 /* confdefs.h. */ 5435 _ACEOF 5436 cat confdefs.h >>conftest.$ac_ext 5437 cat >>conftest.$ac_ext <<_ACEOF 5438 /* end confdefs.h. */ 5439 #include <ctype.h> 5440 #if ((' ' & 0x0FF) == 0x020) 5441 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 5442 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 5443 #else 5444 # define ISLOWER(c) \ 5445 (('a' <= (c) && (c) <= 'i') \ 5446 || ('j' <= (c) && (c) <= 'r') \ 5447 || ('s' <= (c) && (c) <= 'z')) 5448 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 5449 #endif 5450 5451 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 5452 int 5453 main () 5454 { 5455 int i; 5456 for (i = 0; i < 256; i++) 5457 if (XOR (islower (i), ISLOWER (i)) 5458 || toupper (i) != TOUPPER (i)) 5459 exit(2); 5460 exit (0); 5461 } 5462 _ACEOF 5463 rm -f conftest$ac_exeext 5464 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5465 (eval $ac_link) 2>&5 5466 ac_status=$? 5467 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5468 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 5469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5470 (eval $ac_try) 2>&5 5471 ac_status=$? 5472 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5473 (exit $ac_status); }; }; then 5474 : 5475 else 5476 echo "$as_me: program exited with status $ac_status" >&5 5477 echo "$as_me: failed program was:" >&5 5478 sed 's/^/| /' conftest.$ac_ext >&5 5479 5480 ( exit $ac_status ) 5481 ac_cv_header_stdc=no 5482 fi 5483 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 5484 fi 5485 fi 5486 fi 5487 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 5488 echo "${ECHO_T}$ac_cv_header_stdc" >&6 5489 if test $ac_cv_header_stdc = yes; then 5490 5491 cat >>confdefs.h <<\_ACEOF 5492 #define STDC_HEADERS 1 5493 _ACEOF 5494 5495 fi 5496 5497 5498 5499 for ac_header in stdlib.h string.h 4886 4887 4888 ;; 4889 4890 ### LINUX ### 4891 *Linux*) 4892 echo "Linux detected" 4893 4894 Linux="yes" 4895 4896 # checking gl header 4897 4898 for ac_header in GL/gl.h 5500 4899 do 5501 4900 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` … … 5642 5041 _ACEOF 5643 5042 5043 else 5044 { { echo "$as_me:$LINENO: error: cannot find opengl headers" >&5 5045 echo "$as_me: error: cannot find opengl headers" >&2;} 5046 { (exit 1); exit 1; }; } 5644 5047 fi 5645 5048 … … 5647 5050 5648 5051 5649 # Checks for typedefs, structures, and compiler characteristics.5650 echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&55651 echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&65652 if test "${ac_cv_ header_stdbool_h+set}" = set; then5052 # checking for Unix GL 5053 echo "$as_me:$LINENO: checking for main in -lGL" >&5 5054 echo $ECHO_N "checking for main in -lGL... $ECHO_C" >&6 5055 if test "${ac_cv_lib_GL_main+set}" = set; then 5653 5056 echo $ECHO_N "(cached) $ECHO_C" >&6 5654 5057 else 5655 cat >conftest.$ac_ext <<_ACEOF 5058 ac_check_lib_save_LIBS=$LIBS 5059 LIBS="-lGL $LIBS" 5060 cat >conftest.$ac_ext <<_ACEOF 5656 5061 /* confdefs.h. */ 5657 5062 _ACEOF … … 5660 5065 /* end confdefs.h. */ 5661 5066 5662 #include <stdbool.h>5663 #ifndef bool5664 # error bool is not defined5665 #endif5666 #ifndef false5667 # error false is not defined5668 #endif5669 #if false5670 # error false is not 05671 #endif5672 #ifndef true5673 # error true is not defined5674 #endif5675 #if true != 15676 # error true is not 15677 #endif5678 #ifndef __bool_true_false_are_defined5679 # error __bool_true_false_are_defined is not defined5680 #endif5681 5682 struct s { _Bool s: 1; _Bool t; } s;5683 5684 char a[true == 1 ? 1 : -1];5685 char b[false == 0 ? 1 : -1];5686 char c[__bool_true_false_are_defined == 1 ? 1 : -1];5687 char d[(bool) -0.5 == true ? 1 : -1];5688 bool e = &s;5689 char f[(_Bool) -0.0 == false ? 1 : -1];5690 char g[true];5691 char h[sizeof (_Bool)];5692 char i[sizeof s.t];5693 5067 5694 5068 int 5695 5069 main () 5696 5070 { 5697 return !a + !b + !c + !d + !e + !f + !g + !h + !i;5071 main (); 5698 5072 ; 5699 5073 return 0; 5700 5074 } 5701 5075 _ACEOF 5702 rm -f conftest.$ac_objext 5703 if { (eval echo "$as_me:$LINENO: \"$ac_ compile\"") >&55704 (eval $ac_ compile) 2>conftest.er15076 rm -f conftest.$ac_objext conftest$ac_exeext 5077 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5078 (eval $ac_link) 2>conftest.er1 5705 5079 ac_status=$? 5706 5080 grep -v '^ *+' conftest.er1 >conftest.err … … 5716 5090 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5717 5091 (exit $ac_status); }; } && 5718 { ac_try='test -s conftest .$ac_objext'5092 { ac_try='test -s conftest$ac_exeext' 5719 5093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5720 5094 (eval $ac_try) 2>&5 … … 5722 5096 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5723 5097 (exit $ac_status); }; }; then 5724 ac_cv_ header_stdbool_h=yes5098 ac_cv_lib_GL_main=yes 5725 5099 else 5726 5100 echo "$as_me: failed program was:" >&5 5727 5101 sed 's/^/| /' conftest.$ac_ext >&5 5728 5102 5729 ac_cv_header_stdbool_h=no 5730 fi 5731 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5732 fi 5733 echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5 5734 echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6 5735 echo "$as_me:$LINENO: checking for _Bool" >&5 5736 echo $ECHO_N "checking for _Bool... $ECHO_C" >&6 5737 if test "${ac_cv_type__Bool+set}" = set; then 5738 echo $ECHO_N "(cached) $ECHO_C" >&6 5739 else 5740 cat >conftest.$ac_ext <<_ACEOF 5741 /* confdefs.h. */ 5742 _ACEOF 5743 cat confdefs.h >>conftest.$ac_ext 5744 cat >>conftest.$ac_ext <<_ACEOF 5745 /* end confdefs.h. */ 5746 $ac_includes_default 5747 int 5748 main () 5749 { 5750 if ((_Bool *) 0) 5751 return 0; 5752 if (sizeof (_Bool)) 5753 return 0; 5754 ; 5755 return 0; 5756 } 5757 _ACEOF 5758 rm -f conftest.$ac_objext 5759 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5760 (eval $ac_compile) 2>conftest.er1 5761 ac_status=$? 5762 grep -v '^ *+' conftest.er1 >conftest.err 5763 rm -f conftest.er1 5764 cat conftest.err >&5 5765 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5766 (exit $ac_status); } && 5767 { ac_try='test -z "$ac_c_werror_flag" 5768 || test ! -s conftest.err' 5769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5770 (eval $ac_try) 2>&5 5771 ac_status=$? 5772 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5773 (exit $ac_status); }; } && 5774 { ac_try='test -s conftest.$ac_objext' 5775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5776 (eval $ac_try) 2>&5 5777 ac_status=$? 5778 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5779 (exit $ac_status); }; }; then 5780 ac_cv_type__Bool=yes 5781 else 5782 echo "$as_me: failed program was:" >&5 5783 sed 's/^/| /' conftest.$ac_ext >&5 5784 5785 ac_cv_type__Bool=no 5786 fi 5787 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5788 fi 5789 echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5 5790 echo "${ECHO_T}$ac_cv_type__Bool" >&6 5791 if test $ac_cv_type__Bool = yes; then 5792 5793 cat >>confdefs.h <<_ACEOF 5794 #define HAVE__BOOL 1 5795 _ACEOF 5796 5797 5798 fi 5799 5800 if test $ac_cv_header_stdbool_h = yes; then 5801 5802 cat >>confdefs.h <<\_ACEOF 5803 #define HAVE_STDBOOL_H 1 5804 _ACEOF 5805 5806 fi 5807 5808 5809 # Checks for library functions. 5810 5811 for ac_header in stdlib.h 5103 ac_cv_lib_GL_main=no 5104 fi 5105 rm -f conftest.err conftest.$ac_objext \ 5106 conftest$ac_exeext conftest.$ac_ext 5107 LIBS=$ac_check_lib_save_LIBS 5108 fi 5109 echo "$as_me:$LINENO: result: $ac_cv_lib_GL_main" >&5 5110 echo "${ECHO_T}$ac_cv_lib_GL_main" >&6 5111 if test $ac_cv_lib_GL_main = yes; then 5112 FOUND_GL=yes 5113 fi 5114 5115 if test "$FOUND_GL" = "yes" ; then 5116 LIBS="$LIBS -lGL" 5117 else 5118 echo "------------------" 5119 echo "opengl not found." 5120 echo "please install the opengl package which can be found at http://www.opengl.org" 5121 echo "------------------" 5122 exit -1 5123 fi 5124 5125 # cheking for GLU-header 5126 5127 for ac_header in GL/glu.h 5812 5128 do 5813 5129 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` … … 5954 5270 _ACEOF 5955 5271 5272 else 5273 { { echo "$as_me:$LINENO: error: cannot find opengl headers" >&5 5274 echo "$as_me: error: cannot find opengl headers" >&2;} 5275 { (exit 1); exit 1; }; } 5276 fi 5277 5278 done 5279 5280 5281 echo "$as_me:$LINENO: checking for gluProject in -lGLU" >&5 5282 echo $ECHO_N "checking for gluProject in -lGLU... $ECHO_C" >&6 5283 if test "${ac_cv_lib_GLU_gluProject+set}" = set; then 5284 echo $ECHO_N "(cached) $ECHO_C" >&6 5285 else 5286 ac_check_lib_save_LIBS=$LIBS 5287 LIBS="-lGLU $LIBS" 5288 cat >conftest.$ac_ext <<_ACEOF 5289 /* confdefs.h. */ 5290 _ACEOF 5291 cat confdefs.h >>conftest.$ac_ext 5292 cat >>conftest.$ac_ext <<_ACEOF 5293 /* end confdefs.h. */ 5294 5295 /* Override any gcc2 internal prototype to avoid an error. */ 5296 #ifdef __cplusplus 5297 extern "C" 5298 #endif 5299 /* We use char because int might match the return type of a gcc2 5300 builtin and then its argument prototype would still apply. */ 5301 char gluProject (); 5302 int 5303 main () 5304 { 5305 gluProject (); 5306 ; 5307 return 0; 5308 } 5309 _ACEOF 5310 rm -f conftest.$ac_objext conftest$ac_exeext 5311 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5312 (eval $ac_link) 2>conftest.er1 5313 ac_status=$? 5314 grep -v '^ *+' conftest.er1 >conftest.err 5315 rm -f conftest.er1 5316 cat conftest.err >&5 5317 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5318 (exit $ac_status); } && 5319 { ac_try='test -z "$ac_c_werror_flag" 5320 || test ! -s conftest.err' 5321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5322 (eval $ac_try) 2>&5 5323 ac_status=$? 5324 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5325 (exit $ac_status); }; } && 5326 { ac_try='test -s conftest$ac_exeext' 5327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5328 (eval $ac_try) 2>&5 5329 ac_status=$? 5330 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5331 (exit $ac_status); }; }; then 5332 ac_cv_lib_GLU_gluProject=yes 5333 else 5334 echo "$as_me: failed program was:" >&5 5335 sed 's/^/| /' conftest.$ac_ext >&5 5336 5337 ac_cv_lib_GLU_gluProject=no 5338 fi 5339 rm -f conftest.err conftest.$ac_objext \ 5340 conftest$ac_exeext conftest.$ac_ext 5341 LIBS=$ac_check_lib_save_LIBS 5342 fi 5343 echo "$as_me:$LINENO: result: $ac_cv_lib_GLU_gluProject" >&5 5344 echo "${ECHO_T}$ac_cv_lib_GLU_gluProject" >&6 5345 if test $ac_cv_lib_GLU_gluProject = yes; then 5346 FOUND_GLU=yes 5347 fi 5348 5349 if test "$FOUND_GLU" = "yes" ; then 5350 LIBS="$LIBS -lGLU" 5351 else 5352 echo "------------------" 5353 echo "GLU library not found." 5354 echo "please install the GLU library, that should come with openGL, which can be found at http://www.opengl.org" 5355 echo "------------------" 5356 exit -1 5357 fi 5358 5359 # checking for SDL-headers 5360 5361 for ac_header in SDL/SDL.h 5362 do 5363 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 5364 if eval "test \"\${$as_ac_Header+set}\" = set"; then 5365 echo "$as_me:$LINENO: checking for $ac_header" >&5 5366 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 5367 if eval "test \"\${$as_ac_Header+set}\" = set"; then 5368 echo $ECHO_N "(cached) $ECHO_C" >&6 5369 fi 5370 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 5371 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 5372 else 5373 # Is the header compilable? 5374 echo "$as_me:$LINENO: checking $ac_header usability" >&5 5375 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 5376 cat >conftest.$ac_ext <<_ACEOF 5377 /* confdefs.h. */ 5378 _ACEOF 5379 cat confdefs.h >>conftest.$ac_ext 5380 cat >>conftest.$ac_ext <<_ACEOF 5381 /* end confdefs.h. */ 5382 $ac_includes_default 5383 #include <$ac_header> 5384 _ACEOF 5385 rm -f conftest.$ac_objext 5386 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5387 (eval $ac_compile) 2>conftest.er1 5388 ac_status=$? 5389 grep -v '^ *+' conftest.er1 >conftest.err 5390 rm -f conftest.er1 5391 cat conftest.err >&5 5392 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5393 (exit $ac_status); } && 5394 { ac_try='test -z "$ac_c_werror_flag" 5395 || test ! -s conftest.err' 5396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5397 (eval $ac_try) 2>&5 5398 ac_status=$? 5399 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5400 (exit $ac_status); }; } && 5401 { ac_try='test -s conftest.$ac_objext' 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 ac_header_compiler=yes 5408 else 5409 echo "$as_me: failed program was:" >&5 5410 sed 's/^/| /' conftest.$ac_ext >&5 5411 5412 ac_header_compiler=no 5413 fi 5414 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5415 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 5416 echo "${ECHO_T}$ac_header_compiler" >&6 5417 5418 # Is the header present? 5419 echo "$as_me:$LINENO: checking $ac_header presence" >&5 5420 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 5421 cat >conftest.$ac_ext <<_ACEOF 5422 /* confdefs.h. */ 5423 _ACEOF 5424 cat confdefs.h >>conftest.$ac_ext 5425 cat >>conftest.$ac_ext <<_ACEOF 5426 /* end confdefs.h. */ 5427 #include <$ac_header> 5428 _ACEOF 5429 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 5430 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 5431 ac_status=$? 5432 grep -v '^ *+' conftest.er1 >conftest.err 5433 rm -f conftest.er1 5434 cat conftest.err >&5 5435 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5436 (exit $ac_status); } >/dev/null; then 5437 if test -s conftest.err; then 5438 ac_cpp_err=$ac_c_preproc_warn_flag 5439 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 5440 else 5441 ac_cpp_err= 5442 fi 5443 else 5444 ac_cpp_err=yes 5445 fi 5446 if test -z "$ac_cpp_err"; then 5447 ac_header_preproc=yes 5448 else 5449 echo "$as_me: failed program was:" >&5 5450 sed 's/^/| /' conftest.$ac_ext >&5 5451 5452 ac_header_preproc=no 5453 fi 5454 rm -f conftest.err conftest.$ac_ext 5455 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 5456 echo "${ECHO_T}$ac_header_preproc" >&6 5457 5458 # So? What about this header? 5459 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 5460 yes:no: ) 5461 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 5462 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 5463 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 5464 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 5465 ac_header_preproc=yes 5466 ;; 5467 no:yes:* ) 5468 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 5469 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 5470 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 5471 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 5472 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 5473 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 5474 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 5475 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 5476 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 5477 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 5478 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 5479 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 5480 ( 5481 cat <<\_ASBOX 5482 ## ------------------------------------------- ## 5483 ## Report this to orxonox-dev@mail.datacore.ch ## 5484 ## ------------------------------------------- ## 5485 _ASBOX 5486 ) | 5487 sed "s/^/$as_me: WARNING: /" >&2 5488 ;; 5489 esac 5490 echo "$as_me:$LINENO: checking for $ac_header" >&5 5491 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 5492 if eval "test \"\${$as_ac_Header+set}\" = set"; then 5493 echo $ECHO_N "(cached) $ECHO_C" >&6 5494 else 5495 eval "$as_ac_Header=\$ac_header_preproc" 5496 fi 5497 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 5498 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 5499 5500 fi 5501 if test `eval echo '${'$as_ac_Header'}'` = yes; then 5502 cat >>confdefs.h <<_ACEOF 5503 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 5504 _ACEOF 5505 5506 else 5507 { { echo "$as_me:$LINENO: error: cannot find SDL headers" >&5 5508 echo "$as_me: error: cannot find SDL headers" >&2;} 5509 { (exit 1); exit 1; }; } 5510 fi 5511 5512 done 5513 5514 5515 echo "$as_me:$LINENO: checking for main in -lSDL" >&5 5516 echo $ECHO_N "checking for main in -lSDL... $ECHO_C" >&6 5517 if test "${ac_cv_lib_SDL_main+set}" = set; then 5518 echo $ECHO_N "(cached) $ECHO_C" >&6 5519 else 5520 ac_check_lib_save_LIBS=$LIBS 5521 LIBS="-lSDL $LIBS" 5522 cat >conftest.$ac_ext <<_ACEOF 5523 /* confdefs.h. */ 5524 _ACEOF 5525 cat confdefs.h >>conftest.$ac_ext 5526 cat >>conftest.$ac_ext <<_ACEOF 5527 /* end confdefs.h. */ 5528 5529 5530 int 5531 main () 5532 { 5533 main (); 5534 ; 5535 return 0; 5536 } 5537 _ACEOF 5538 rm -f conftest.$ac_objext conftest$ac_exeext 5539 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5540 (eval $ac_link) 2>conftest.er1 5541 ac_status=$? 5542 grep -v '^ *+' conftest.er1 >conftest.err 5543 rm -f conftest.er1 5544 cat conftest.err >&5 5545 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5546 (exit $ac_status); } && 5547 { ac_try='test -z "$ac_c_werror_flag" 5548 || test ! -s conftest.err' 5549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5550 (eval $ac_try) 2>&5 5551 ac_status=$? 5552 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5553 (exit $ac_status); }; } && 5554 { ac_try='test -s conftest$ac_exeext' 5555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5556 (eval $ac_try) 2>&5 5557 ac_status=$? 5558 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5559 (exit $ac_status); }; }; then 5560 ac_cv_lib_SDL_main=yes 5561 else 5562 echo "$as_me: failed program was:" >&5 5563 sed 's/^/| /' conftest.$ac_ext >&5 5564 5565 ac_cv_lib_SDL_main=no 5566 fi 5567 rm -f conftest.err conftest.$ac_objext \ 5568 conftest$ac_exeext conftest.$ac_ext 5569 LIBS=$ac_check_lib_save_LIBS 5570 fi 5571 echo "$as_me:$LINENO: result: $ac_cv_lib_SDL_main" >&5 5572 echo "${ECHO_T}$ac_cv_lib_SDL_main" >&6 5573 if test $ac_cv_lib_SDL_main = yes; then 5574 FOUND_SDL=yes 5575 fi 5576 5577 if test "$FOUND_SDL" = "yes" ; then 5578 LIBS="$LIBS -lSDL" 5579 else 5580 echo "------------------" 5581 echo "SDL library not found." 5582 echo "please install the SDL library, which can be found at http://www.libsdl.org" 5583 echo "------------------" 5584 exit -1 5585 fi 5586 5587 # checking for SDL-Mixer-headers 5588 5589 for ac_header in SDL/SDL_mixer.h 5590 do 5591 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 5592 if eval "test \"\${$as_ac_Header+set}\" = set"; then 5593 echo "$as_me:$LINENO: checking for $ac_header" >&5 5594 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 5595 if eval "test \"\${$as_ac_Header+set}\" = set"; then 5596 echo $ECHO_N "(cached) $ECHO_C" >&6 5597 fi 5598 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 5599 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 5600 else 5601 # Is the header compilable? 5602 echo "$as_me:$LINENO: checking $ac_header usability" >&5 5603 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 5604 cat >conftest.$ac_ext <<_ACEOF 5605 /* confdefs.h. */ 5606 _ACEOF 5607 cat confdefs.h >>conftest.$ac_ext 5608 cat >>conftest.$ac_ext <<_ACEOF 5609 /* end confdefs.h. */ 5610 $ac_includes_default 5611 #include <$ac_header> 5612 _ACEOF 5613 rm -f conftest.$ac_objext 5614 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5615 (eval $ac_compile) 2>conftest.er1 5616 ac_status=$? 5617 grep -v '^ *+' conftest.er1 >conftest.err 5618 rm -f conftest.er1 5619 cat conftest.err >&5 5620 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5621 (exit $ac_status); } && 5622 { ac_try='test -z "$ac_c_werror_flag" 5623 || test ! -s conftest.err' 5624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5625 (eval $ac_try) 2>&5 5626 ac_status=$? 5627 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5628 (exit $ac_status); }; } && 5629 { ac_try='test -s conftest.$ac_objext' 5630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5631 (eval $ac_try) 2>&5 5632 ac_status=$? 5633 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5634 (exit $ac_status); }; }; then 5635 ac_header_compiler=yes 5636 else 5637 echo "$as_me: failed program was:" >&5 5638 sed 's/^/| /' conftest.$ac_ext >&5 5639 5640 ac_header_compiler=no 5641 fi 5642 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5643 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 5644 echo "${ECHO_T}$ac_header_compiler" >&6 5645 5646 # Is the header present? 5647 echo "$as_me:$LINENO: checking $ac_header presence" >&5 5648 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 5649 cat >conftest.$ac_ext <<_ACEOF 5650 /* confdefs.h. */ 5651 _ACEOF 5652 cat confdefs.h >>conftest.$ac_ext 5653 cat >>conftest.$ac_ext <<_ACEOF 5654 /* end confdefs.h. */ 5655 #include <$ac_header> 5656 _ACEOF 5657 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 5658 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 5659 ac_status=$? 5660 grep -v '^ *+' conftest.er1 >conftest.err 5661 rm -f conftest.er1 5662 cat conftest.err >&5 5663 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5664 (exit $ac_status); } >/dev/null; then 5665 if test -s conftest.err; then 5666 ac_cpp_err=$ac_c_preproc_warn_flag 5667 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 5668 else 5669 ac_cpp_err= 5670 fi 5671 else 5672 ac_cpp_err=yes 5673 fi 5674 if test -z "$ac_cpp_err"; then 5675 ac_header_preproc=yes 5676 else 5677 echo "$as_me: failed program was:" >&5 5678 sed 's/^/| /' conftest.$ac_ext >&5 5679 5680 ac_header_preproc=no 5681 fi 5682 rm -f conftest.err conftest.$ac_ext 5683 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 5684 echo "${ECHO_T}$ac_header_preproc" >&6 5685 5686 # So? What about this header? 5687 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 5688 yes:no: ) 5689 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 5690 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 5691 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 5692 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 5693 ac_header_preproc=yes 5694 ;; 5695 no:yes:* ) 5696 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 5697 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 5698 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 5699 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 5700 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 5701 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 5702 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 5703 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 5704 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 5705 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 5706 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 5707 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 5708 ( 5709 cat <<\_ASBOX 5710 ## ------------------------------------------- ## 5711 ## Report this to orxonox-dev@mail.datacore.ch ## 5712 ## ------------------------------------------- ## 5713 _ASBOX 5714 ) | 5715 sed "s/^/$as_me: WARNING: /" >&2 5716 ;; 5717 esac 5718 echo "$as_me:$LINENO: checking for $ac_header" >&5 5719 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 5720 if eval "test \"\${$as_ac_Header+set}\" = set"; then 5721 echo $ECHO_N "(cached) $ECHO_C" >&6 5722 else 5723 eval "$as_ac_Header=\$ac_header_preproc" 5724 fi 5725 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 5726 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 5727 5728 fi 5729 if test `eval echo '${'$as_ac_Header'}'` = yes; then 5730 cat >>confdefs.h <<_ACEOF 5731 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 5732 _ACEOF 5733 5734 else 5735 { { echo "$as_me:$LINENO: error: cannot find SDL headers" >&5 5736 echo "$as_me: error: cannot find SDL headers" >&2;} 5737 { (exit 1); exit 1; }; } 5738 fi 5739 5740 done 5741 5742 5743 5744 #checking for libSDL_mixer 5745 echo "$as_me:$LINENO: checking for main in -lSDL_mixer" >&5 5746 echo $ECHO_N "checking for main in -lSDL_mixer... $ECHO_C" >&6 5747 if test "${ac_cv_lib_SDL_mixer_main+set}" = set; then 5748 echo $ECHO_N "(cached) $ECHO_C" >&6 5749 else 5750 ac_check_lib_save_LIBS=$LIBS 5751 LIBS="-lSDL_mixer $LIBS" 5752 cat >conftest.$ac_ext <<_ACEOF 5753 /* confdefs.h. */ 5754 _ACEOF 5755 cat confdefs.h >>conftest.$ac_ext 5756 cat >>conftest.$ac_ext <<_ACEOF 5757 /* end confdefs.h. */ 5758 5759 5760 int 5761 main () 5762 { 5763 main (); 5764 ; 5765 return 0; 5766 } 5767 _ACEOF 5768 rm -f conftest.$ac_objext conftest$ac_exeext 5769 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5770 (eval $ac_link) 2>conftest.er1 5771 ac_status=$? 5772 grep -v '^ *+' conftest.er1 >conftest.err 5773 rm -f conftest.er1 5774 cat conftest.err >&5 5775 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5776 (exit $ac_status); } && 5777 { ac_try='test -z "$ac_c_werror_flag" 5778 || test ! -s conftest.err' 5779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5780 (eval $ac_try) 2>&5 5781 ac_status=$? 5782 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5783 (exit $ac_status); }; } && 5784 { ac_try='test -s conftest$ac_exeext' 5785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5786 (eval $ac_try) 2>&5 5787 ac_status=$? 5788 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5789 (exit $ac_status); }; }; then 5790 ac_cv_lib_SDL_mixer_main=yes 5791 else 5792 echo "$as_me: failed program was:" >&5 5793 sed 's/^/| /' conftest.$ac_ext >&5 5794 5795 ac_cv_lib_SDL_mixer_main=no 5796 fi 5797 rm -f conftest.err conftest.$ac_objext \ 5798 conftest$ac_exeext conftest.$ac_ext 5799 LIBS=$ac_check_lib_save_LIBS 5800 fi 5801 echo "$as_me:$LINENO: result: $ac_cv_lib_SDL_mixer_main" >&5 5802 echo "${ECHO_T}$ac_cv_lib_SDL_mixer_main" >&6 5803 if test $ac_cv_lib_SDL_mixer_main = yes; then 5804 FOUND_SDL_mixer=yes 5805 fi 5806 5807 if test "$FOUND_SDL_mixer" = "yes" ; then 5808 LIBS="$LIBS -lSDL_mixer" 5809 else 5810 echo "------------------" 5811 echo "SDL Mixer library not found." 5812 echo "please install the SDL Mixer library, which can be found at http://www.libsdl.org" 5813 echo "------------------" 5814 exit 1 5815 fi 5816 5817 ;; 5818 *) 5819 mingw="no" 5820 ;; 5821 esac 5822 echo "$as_me:$LINENO: result: $mingw" >&5 5823 echo "${ECHO_T}$mingw" >&6 5824 5825 5826 #### Checking for LIBraries. 5827 5828 # FIXME: Replace `main' with a function in `-lOSMesa': 5829 5830 echo "$as_me:$LINENO: checking for main in -lOSMesa" >&5 5831 echo $ECHO_N "checking for main in -lOSMesa... $ECHO_C" >&6 5832 if test "${ac_cv_lib_OSMesa_main+set}" = set; then 5833 echo $ECHO_N "(cached) $ECHO_C" >&6 5834 else 5835 ac_check_lib_save_LIBS=$LIBS 5836 LIBS="-lOSMesa $LIBS" 5837 cat >conftest.$ac_ext <<_ACEOF 5838 /* confdefs.h. */ 5839 _ACEOF 5840 cat confdefs.h >>conftest.$ac_ext 5841 cat >>conftest.$ac_ext <<_ACEOF 5842 /* end confdefs.h. */ 5843 5844 5845 int 5846 main () 5847 { 5848 main (); 5849 ; 5850 return 0; 5851 } 5852 _ACEOF 5853 rm -f conftest.$ac_objext conftest$ac_exeext 5854 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5855 (eval $ac_link) 2>conftest.er1 5856 ac_status=$? 5857 grep -v '^ *+' conftest.er1 >conftest.err 5858 rm -f conftest.er1 5859 cat conftest.err >&5 5860 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5861 (exit $ac_status); } && 5862 { ac_try='test -z "$ac_c_werror_flag" 5863 || test ! -s conftest.err' 5864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5865 (eval $ac_try) 2>&5 5866 ac_status=$? 5867 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5868 (exit $ac_status); }; } && 5869 { ac_try='test -s conftest$ac_exeext' 5870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5871 (eval $ac_try) 2>&5 5872 ac_status=$? 5873 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5874 (exit $ac_status); }; }; then 5875 ac_cv_lib_OSMesa_main=yes 5876 else 5877 echo "$as_me: failed program was:" >&5 5878 sed 's/^/| /' conftest.$ac_ext >&5 5879 5880 ac_cv_lib_OSMesa_main=no 5881 fi 5882 rm -f conftest.err conftest.$ac_objext \ 5883 conftest$ac_exeext conftest.$ac_ext 5884 LIBS=$ac_check_lib_save_LIBS 5885 fi 5886 echo "$as_me:$LINENO: result: $ac_cv_lib_OSMesa_main" >&5 5887 echo "${ECHO_T}$ac_cv_lib_OSMesa_main" >&6 5888 if test $ac_cv_lib_OSMesa_main = yes; then 5889 cat >>confdefs.h <<_ACEOF 5890 #define HAVE_LIBOSMESA 1 5891 _ACEOF 5892 5893 LIBS="-lOSMesa $LIBS" 5894 5895 fi 5896 5897 # FIXME: Replace `main' with a function in `-lX11': 5898 5899 echo "$as_me:$LINENO: checking for main in -lX11" >&5 5900 echo $ECHO_N "checking for main in -lX11... $ECHO_C" >&6 5901 if test "${ac_cv_lib_X11_main+set}" = set; then 5902 echo $ECHO_N "(cached) $ECHO_C" >&6 5903 else 5904 ac_check_lib_save_LIBS=$LIBS 5905 LIBS="-lX11 $LIBS" 5906 cat >conftest.$ac_ext <<_ACEOF 5907 /* confdefs.h. */ 5908 _ACEOF 5909 cat confdefs.h >>conftest.$ac_ext 5910 cat >>conftest.$ac_ext <<_ACEOF 5911 /* end confdefs.h. */ 5912 5913 5914 int 5915 main () 5916 { 5917 main (); 5918 ; 5919 return 0; 5920 } 5921 _ACEOF 5922 rm -f conftest.$ac_objext conftest$ac_exeext 5923 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5924 (eval $ac_link) 2>conftest.er1 5925 ac_status=$? 5926 grep -v '^ *+' conftest.er1 >conftest.err 5927 rm -f conftest.er1 5928 cat conftest.err >&5 5929 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5930 (exit $ac_status); } && 5931 { ac_try='test -z "$ac_c_werror_flag" 5932 || test ! -s conftest.err' 5933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5934 (eval $ac_try) 2>&5 5935 ac_status=$? 5936 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5937 (exit $ac_status); }; } && 5938 { ac_try='test -s conftest$ac_exeext' 5939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5940 (eval $ac_try) 2>&5 5941 ac_status=$? 5942 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5943 (exit $ac_status); }; }; then 5944 ac_cv_lib_X11_main=yes 5945 else 5946 echo "$as_me: failed program was:" >&5 5947 sed 's/^/| /' conftest.$ac_ext >&5 5948 5949 ac_cv_lib_X11_main=no 5950 fi 5951 rm -f conftest.err conftest.$ac_objext \ 5952 conftest$ac_exeext conftest.$ac_ext 5953 LIBS=$ac_check_lib_save_LIBS 5954 fi 5955 echo "$as_me:$LINENO: result: $ac_cv_lib_X11_main" >&5 5956 echo "${ECHO_T}$ac_cv_lib_X11_main" >&6 5957 if test $ac_cv_lib_X11_main = yes; then 5958 cat >>confdefs.h <<_ACEOF 5959 #define HAVE_LIBX11 1 5960 _ACEOF 5961 5962 LIBS="-lX11 $LIBS" 5963 5964 fi 5965 5966 # FIXME: Replace `main' with a function in `-lXt': 5967 5968 echo "$as_me:$LINENO: checking for main in -lXt" >&5 5969 echo $ECHO_N "checking for main in -lXt... $ECHO_C" >&6 5970 if test "${ac_cv_lib_Xt_main+set}" = set; then 5971 echo $ECHO_N "(cached) $ECHO_C" >&6 5972 else 5973 ac_check_lib_save_LIBS=$LIBS 5974 LIBS="-lXt $LIBS" 5975 cat >conftest.$ac_ext <<_ACEOF 5976 /* confdefs.h. */ 5977 _ACEOF 5978 cat confdefs.h >>conftest.$ac_ext 5979 cat >>conftest.$ac_ext <<_ACEOF 5980 /* end confdefs.h. */ 5981 5982 5983 int 5984 main () 5985 { 5986 main (); 5987 ; 5988 return 0; 5989 } 5990 _ACEOF 5991 rm -f conftest.$ac_objext conftest$ac_exeext 5992 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5993 (eval $ac_link) 2>conftest.er1 5994 ac_status=$? 5995 grep -v '^ *+' conftest.er1 >conftest.err 5996 rm -f conftest.er1 5997 cat conftest.err >&5 5998 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5999 (exit $ac_status); } && 6000 { ac_try='test -z "$ac_c_werror_flag" 6001 || test ! -s conftest.err' 6002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6003 (eval $ac_try) 2>&5 6004 ac_status=$? 6005 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6006 (exit $ac_status); }; } && 6007 { ac_try='test -s conftest$ac_exeext' 6008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6009 (eval $ac_try) 2>&5 6010 ac_status=$? 6011 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6012 (exit $ac_status); }; }; then 6013 ac_cv_lib_Xt_main=yes 6014 else 6015 echo "$as_me: failed program was:" >&5 6016 sed 's/^/| /' conftest.$ac_ext >&5 6017 6018 ac_cv_lib_Xt_main=no 6019 fi 6020 rm -f conftest.err conftest.$ac_objext \ 6021 conftest$ac_exeext conftest.$ac_ext 6022 LIBS=$ac_check_lib_save_LIBS 6023 fi 6024 echo "$as_me:$LINENO: result: $ac_cv_lib_Xt_main" >&5 6025 echo "${ECHO_T}$ac_cv_lib_Xt_main" >&6 6026 if test $ac_cv_lib_Xt_main = yes; then 6027 cat >>confdefs.h <<_ACEOF 6028 #define HAVE_LIBXT 1 6029 _ACEOF 6030 6031 LIBS="-lXt $LIBS" 6032 6033 fi 6034 6035 6036 6037 #checking for pthread libs 6038 echo "$as_me:$LINENO: checking for main in -lpthread" >&5 6039 echo $ECHO_N "checking for main in -lpthread... $ECHO_C" >&6 6040 if test "${ac_cv_lib_pthread_main+set}" = set; then 6041 echo $ECHO_N "(cached) $ECHO_C" >&6 6042 else 6043 ac_check_lib_save_LIBS=$LIBS 6044 LIBS="-lpthread $LIBS" 6045 cat >conftest.$ac_ext <<_ACEOF 6046 /* confdefs.h. */ 6047 _ACEOF 6048 cat confdefs.h >>conftest.$ac_ext 6049 cat >>conftest.$ac_ext <<_ACEOF 6050 /* end confdefs.h. */ 6051 6052 6053 int 6054 main () 6055 { 6056 main (); 6057 ; 6058 return 0; 6059 } 6060 _ACEOF 6061 rm -f conftest.$ac_objext conftest$ac_exeext 6062 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6063 (eval $ac_link) 2>conftest.er1 6064 ac_status=$? 6065 grep -v '^ *+' conftest.er1 >conftest.err 6066 rm -f conftest.er1 6067 cat conftest.err >&5 6068 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6069 (exit $ac_status); } && 6070 { ac_try='test -z "$ac_c_werror_flag" 6071 || test ! -s conftest.err' 6072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6073 (eval $ac_try) 2>&5 6074 ac_status=$? 6075 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6076 (exit $ac_status); }; } && 6077 { ac_try='test -s conftest$ac_exeext' 6078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6079 (eval $ac_try) 2>&5 6080 ac_status=$? 6081 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6082 (exit $ac_status); }; }; then 6083 ac_cv_lib_pthread_main=yes 6084 else 6085 echo "$as_me: failed program was:" >&5 6086 sed 's/^/| /' conftest.$ac_ext >&5 6087 6088 ac_cv_lib_pthread_main=no 6089 fi 6090 rm -f conftest.err conftest.$ac_objext \ 6091 conftest$ac_exeext conftest.$ac_ext 6092 LIBS=$ac_check_lib_save_LIBS 6093 fi 6094 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_main" >&5 6095 echo "${ECHO_T}$ac_cv_lib_pthread_main" >&6 6096 if test $ac_cv_lib_pthread_main = yes; then 6097 FOUND_pthread=yes 6098 fi 6099 6100 if test "$FOUND_pthread" = "yes" ; then 6101 LIBS="$LIBS -lpthread" 6102 fi 6103 6104 6105 6106 6107 # FIXME: Replace `main' with a function in `-lm': 6108 6109 echo "$as_me:$LINENO: checking for main in -lm" >&5 6110 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6 6111 if test "${ac_cv_lib_m_main+set}" = set; then 6112 echo $ECHO_N "(cached) $ECHO_C" >&6 6113 else 6114 ac_check_lib_save_LIBS=$LIBS 6115 LIBS="-lm $LIBS" 6116 cat >conftest.$ac_ext <<_ACEOF 6117 /* confdefs.h. */ 6118 _ACEOF 6119 cat confdefs.h >>conftest.$ac_ext 6120 cat >>conftest.$ac_ext <<_ACEOF 6121 /* end confdefs.h. */ 6122 6123 6124 int 6125 main () 6126 { 6127 main (); 6128 ; 6129 return 0; 6130 } 6131 _ACEOF 6132 rm -f conftest.$ac_objext conftest$ac_exeext 6133 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6134 (eval $ac_link) 2>conftest.er1 6135 ac_status=$? 6136 grep -v '^ *+' conftest.er1 >conftest.err 6137 rm -f conftest.er1 6138 cat conftest.err >&5 6139 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6140 (exit $ac_status); } && 6141 { ac_try='test -z "$ac_c_werror_flag" 6142 || test ! -s conftest.err' 6143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6144 (eval $ac_try) 2>&5 6145 ac_status=$? 6146 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6147 (exit $ac_status); }; } && 6148 { ac_try='test -s conftest$ac_exeext' 6149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6150 (eval $ac_try) 2>&5 6151 ac_status=$? 6152 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6153 (exit $ac_status); }; }; then 6154 ac_cv_lib_m_main=yes 6155 else 6156 echo "$as_me: failed program was:" >&5 6157 sed 's/^/| /' conftest.$ac_ext >&5 6158 6159 ac_cv_lib_m_main=no 6160 fi 6161 rm -f conftest.err conftest.$ac_objext \ 6162 conftest$ac_exeext conftest.$ac_ext 6163 LIBS=$ac_check_lib_save_LIBS 6164 fi 6165 echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5 6166 echo "${ECHO_T}$ac_cv_lib_m_main" >&6 6167 if test $ac_cv_lib_m_main = yes; then 6168 cat >>confdefs.h <<_ACEOF 6169 #define HAVE_LIBM 1 6170 _ACEOF 6171 6172 LIBS="-lm $LIBS" 6173 6174 fi 6175 6176 6177 LIBS="$LIBS `pkg-config --libs gtk+-2.0`" 6178 6179 6180 # Checks for header files. 6181 echo "$as_me:$LINENO: checking for ANSI C header files" >&5 6182 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 6183 if test "${ac_cv_header_stdc+set}" = set; then 6184 echo $ECHO_N "(cached) $ECHO_C" >&6 6185 else 6186 cat >conftest.$ac_ext <<_ACEOF 6187 /* confdefs.h. */ 6188 _ACEOF 6189 cat confdefs.h >>conftest.$ac_ext 6190 cat >>conftest.$ac_ext <<_ACEOF 6191 /* end confdefs.h. */ 6192 #include <stdlib.h> 6193 #include <stdarg.h> 6194 #include <string.h> 6195 #include <float.h> 6196 6197 int 6198 main () 6199 { 6200 6201 ; 6202 return 0; 6203 } 6204 _ACEOF 6205 rm -f conftest.$ac_objext 6206 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6207 (eval $ac_compile) 2>conftest.er1 6208 ac_status=$? 6209 grep -v '^ *+' conftest.er1 >conftest.err 6210 rm -f conftest.er1 6211 cat conftest.err >&5 6212 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6213 (exit $ac_status); } && 6214 { ac_try='test -z "$ac_c_werror_flag" 6215 || test ! -s conftest.err' 6216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6217 (eval $ac_try) 2>&5 6218 ac_status=$? 6219 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6220 (exit $ac_status); }; } && 6221 { ac_try='test -s conftest.$ac_objext' 6222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6223 (eval $ac_try) 2>&5 6224 ac_status=$? 6225 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6226 (exit $ac_status); }; }; then 6227 ac_cv_header_stdc=yes 6228 else 6229 echo "$as_me: failed program was:" >&5 6230 sed 's/^/| /' conftest.$ac_ext >&5 6231 6232 ac_cv_header_stdc=no 6233 fi 6234 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 6235 6236 if test $ac_cv_header_stdc = yes; then 6237 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 6238 cat >conftest.$ac_ext <<_ACEOF 6239 /* confdefs.h. */ 6240 _ACEOF 6241 cat confdefs.h >>conftest.$ac_ext 6242 cat >>conftest.$ac_ext <<_ACEOF 6243 /* end confdefs.h. */ 6244 #include <string.h> 6245 6246 _ACEOF 6247 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6248 $EGREP "memchr" >/dev/null 2>&1; then 6249 : 6250 else 6251 ac_cv_header_stdc=no 6252 fi 6253 rm -f conftest* 6254 6255 fi 6256 6257 if test $ac_cv_header_stdc = yes; then 6258 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 6259 cat >conftest.$ac_ext <<_ACEOF 6260 /* confdefs.h. */ 6261 _ACEOF 6262 cat confdefs.h >>conftest.$ac_ext 6263 cat >>conftest.$ac_ext <<_ACEOF 6264 /* end confdefs.h. */ 6265 #include <stdlib.h> 6266 6267 _ACEOF 6268 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6269 $EGREP "free" >/dev/null 2>&1; then 6270 : 6271 else 6272 ac_cv_header_stdc=no 6273 fi 6274 rm -f conftest* 6275 6276 fi 6277 6278 if test $ac_cv_header_stdc = yes; then 6279 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 6280 if test "$cross_compiling" = yes; then 6281 : 6282 else 6283 cat >conftest.$ac_ext <<_ACEOF 6284 /* confdefs.h. */ 6285 _ACEOF 6286 cat confdefs.h >>conftest.$ac_ext 6287 cat >>conftest.$ac_ext <<_ACEOF 6288 /* end confdefs.h. */ 6289 #include <ctype.h> 6290 #if ((' ' & 0x0FF) == 0x020) 6291 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 6292 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 6293 #else 6294 # define ISLOWER(c) \ 6295 (('a' <= (c) && (c) <= 'i') \ 6296 || ('j' <= (c) && (c) <= 'r') \ 6297 || ('s' <= (c) && (c) <= 'z')) 6298 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 6299 #endif 6300 6301 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 6302 int 6303 main () 6304 { 6305 int i; 6306 for (i = 0; i < 256; i++) 6307 if (XOR (islower (i), ISLOWER (i)) 6308 || toupper (i) != TOUPPER (i)) 6309 exit(2); 6310 exit (0); 6311 } 6312 _ACEOF 6313 rm -f conftest$ac_exeext 6314 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6315 (eval $ac_link) 2>&5 6316 ac_status=$? 6317 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6318 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 6319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6320 (eval $ac_try) 2>&5 6321 ac_status=$? 6322 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6323 (exit $ac_status); }; }; then 6324 : 6325 else 6326 echo "$as_me: program exited with status $ac_status" >&5 6327 echo "$as_me: failed program was:" >&5 6328 sed 's/^/| /' conftest.$ac_ext >&5 6329 6330 ( exit $ac_status ) 6331 ac_cv_header_stdc=no 6332 fi 6333 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 6334 fi 6335 fi 6336 fi 6337 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 6338 echo "${ECHO_T}$ac_cv_header_stdc" >&6 6339 if test $ac_cv_header_stdc = yes; then 6340 6341 cat >>confdefs.h <<\_ACEOF 6342 #define STDC_HEADERS 1 6343 _ACEOF 6344 6345 fi 6346 6347 6348 6349 for ac_header in stdlib.h string.h 6350 do 6351 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 6352 if eval "test \"\${$as_ac_Header+set}\" = set"; then 6353 echo "$as_me:$LINENO: checking for $ac_header" >&5 6354 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 6355 if eval "test \"\${$as_ac_Header+set}\" = set"; then 6356 echo $ECHO_N "(cached) $ECHO_C" >&6 6357 fi 6358 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 6359 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 6360 else 6361 # Is the header compilable? 6362 echo "$as_me:$LINENO: checking $ac_header usability" >&5 6363 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 6364 cat >conftest.$ac_ext <<_ACEOF 6365 /* confdefs.h. */ 6366 _ACEOF 6367 cat confdefs.h >>conftest.$ac_ext 6368 cat >>conftest.$ac_ext <<_ACEOF 6369 /* end confdefs.h. */ 6370 $ac_includes_default 6371 #include <$ac_header> 6372 _ACEOF 6373 rm -f conftest.$ac_objext 6374 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6375 (eval $ac_compile) 2>conftest.er1 6376 ac_status=$? 6377 grep -v '^ *+' conftest.er1 >conftest.err 6378 rm -f conftest.er1 6379 cat conftest.err >&5 6380 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6381 (exit $ac_status); } && 6382 { ac_try='test -z "$ac_c_werror_flag" 6383 || test ! -s conftest.err' 6384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6385 (eval $ac_try) 2>&5 6386 ac_status=$? 6387 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6388 (exit $ac_status); }; } && 6389 { ac_try='test -s conftest.$ac_objext' 6390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6391 (eval $ac_try) 2>&5 6392 ac_status=$? 6393 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6394 (exit $ac_status); }; }; then 6395 ac_header_compiler=yes 6396 else 6397 echo "$as_me: failed program was:" >&5 6398 sed 's/^/| /' conftest.$ac_ext >&5 6399 6400 ac_header_compiler=no 6401 fi 6402 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 6403 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 6404 echo "${ECHO_T}$ac_header_compiler" >&6 6405 6406 # Is the header present? 6407 echo "$as_me:$LINENO: checking $ac_header presence" >&5 6408 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 6409 cat >conftest.$ac_ext <<_ACEOF 6410 /* confdefs.h. */ 6411 _ACEOF 6412 cat confdefs.h >>conftest.$ac_ext 6413 cat >>conftest.$ac_ext <<_ACEOF 6414 /* end confdefs.h. */ 6415 #include <$ac_header> 6416 _ACEOF 6417 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 6418 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 6419 ac_status=$? 6420 grep -v '^ *+' conftest.er1 >conftest.err 6421 rm -f conftest.er1 6422 cat conftest.err >&5 6423 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6424 (exit $ac_status); } >/dev/null; then 6425 if test -s conftest.err; then 6426 ac_cpp_err=$ac_c_preproc_warn_flag 6427 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 6428 else 6429 ac_cpp_err= 6430 fi 6431 else 6432 ac_cpp_err=yes 6433 fi 6434 if test -z "$ac_cpp_err"; then 6435 ac_header_preproc=yes 6436 else 6437 echo "$as_me: failed program was:" >&5 6438 sed 's/^/| /' conftest.$ac_ext >&5 6439 6440 ac_header_preproc=no 6441 fi 6442 rm -f conftest.err conftest.$ac_ext 6443 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 6444 echo "${ECHO_T}$ac_header_preproc" >&6 6445 6446 # So? What about this header? 6447 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 6448 yes:no: ) 6449 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 6450 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 6451 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 6452 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 6453 ac_header_preproc=yes 6454 ;; 6455 no:yes:* ) 6456 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 6457 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 6458 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 6459 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 6460 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 6461 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 6462 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 6463 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 6464 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 6465 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 6466 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 6467 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 6468 ( 6469 cat <<\_ASBOX 6470 ## ------------------------------------------- ## 6471 ## Report this to orxonox-dev@mail.datacore.ch ## 6472 ## ------------------------------------------- ## 6473 _ASBOX 6474 ) | 6475 sed "s/^/$as_me: WARNING: /" >&2 6476 ;; 6477 esac 6478 echo "$as_me:$LINENO: checking for $ac_header" >&5 6479 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 6480 if eval "test \"\${$as_ac_Header+set}\" = set"; then 6481 echo $ECHO_N "(cached) $ECHO_C" >&6 6482 else 6483 eval "$as_ac_Header=\$ac_header_preproc" 6484 fi 6485 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 6486 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 6487 6488 fi 6489 if test `eval echo '${'$as_ac_Header'}'` = yes; then 6490 cat >>confdefs.h <<_ACEOF 6491 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 6492 _ACEOF 6493 6494 fi 6495 6496 done 6497 6498 6499 # Checks for typedefs, structures, and compiler characteristics. 6500 echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5 6501 echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6 6502 if test "${ac_cv_header_stdbool_h+set}" = set; then 6503 echo $ECHO_N "(cached) $ECHO_C" >&6 6504 else 6505 cat >conftest.$ac_ext <<_ACEOF 6506 /* confdefs.h. */ 6507 _ACEOF 6508 cat confdefs.h >>conftest.$ac_ext 6509 cat >>conftest.$ac_ext <<_ACEOF 6510 /* end confdefs.h. */ 6511 6512 #include <stdbool.h> 6513 #ifndef bool 6514 # error bool is not defined 6515 #endif 6516 #ifndef false 6517 # error false is not defined 6518 #endif 6519 #if false 6520 # error false is not 0 6521 #endif 6522 #ifndef true 6523 # error true is not defined 6524 #endif 6525 #if true != 1 6526 # error true is not 1 6527 #endif 6528 #ifndef __bool_true_false_are_defined 6529 # error __bool_true_false_are_defined is not defined 6530 #endif 6531 6532 struct s { _Bool s: 1; _Bool t; } s; 6533 6534 char a[true == 1 ? 1 : -1]; 6535 char b[false == 0 ? 1 : -1]; 6536 char c[__bool_true_false_are_defined == 1 ? 1 : -1]; 6537 char d[(bool) -0.5 == true ? 1 : -1]; 6538 bool e = &s; 6539 char f[(_Bool) -0.0 == false ? 1 : -1]; 6540 char g[true]; 6541 char h[sizeof (_Bool)]; 6542 char i[sizeof s.t]; 6543 6544 int 6545 main () 6546 { 6547 return !a + !b + !c + !d + !e + !f + !g + !h + !i; 6548 ; 6549 return 0; 6550 } 6551 _ACEOF 6552 rm -f conftest.$ac_objext 6553 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6554 (eval $ac_compile) 2>conftest.er1 6555 ac_status=$? 6556 grep -v '^ *+' conftest.er1 >conftest.err 6557 rm -f conftest.er1 6558 cat conftest.err >&5 6559 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6560 (exit $ac_status); } && 6561 { ac_try='test -z "$ac_c_werror_flag" 6562 || test ! -s conftest.err' 6563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6564 (eval $ac_try) 2>&5 6565 ac_status=$? 6566 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6567 (exit $ac_status); }; } && 6568 { ac_try='test -s conftest.$ac_objext' 6569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6570 (eval $ac_try) 2>&5 6571 ac_status=$? 6572 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6573 (exit $ac_status); }; }; then 6574 ac_cv_header_stdbool_h=yes 6575 else 6576 echo "$as_me: failed program was:" >&5 6577 sed 's/^/| /' conftest.$ac_ext >&5 6578 6579 ac_cv_header_stdbool_h=no 6580 fi 6581 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 6582 fi 6583 echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5 6584 echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6 6585 echo "$as_me:$LINENO: checking for _Bool" >&5 6586 echo $ECHO_N "checking for _Bool... $ECHO_C" >&6 6587 if test "${ac_cv_type__Bool+set}" = set; then 6588 echo $ECHO_N "(cached) $ECHO_C" >&6 6589 else 6590 cat >conftest.$ac_ext <<_ACEOF 6591 /* confdefs.h. */ 6592 _ACEOF 6593 cat confdefs.h >>conftest.$ac_ext 6594 cat >>conftest.$ac_ext <<_ACEOF 6595 /* end confdefs.h. */ 6596 $ac_includes_default 6597 int 6598 main () 6599 { 6600 if ((_Bool *) 0) 6601 return 0; 6602 if (sizeof (_Bool)) 6603 return 0; 6604 ; 6605 return 0; 6606 } 6607 _ACEOF 6608 rm -f conftest.$ac_objext 6609 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6610 (eval $ac_compile) 2>conftest.er1 6611 ac_status=$? 6612 grep -v '^ *+' conftest.er1 >conftest.err 6613 rm -f conftest.er1 6614 cat conftest.err >&5 6615 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6616 (exit $ac_status); } && 6617 { ac_try='test -z "$ac_c_werror_flag" 6618 || test ! -s conftest.err' 6619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6620 (eval $ac_try) 2>&5 6621 ac_status=$? 6622 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6623 (exit $ac_status); }; } && 6624 { ac_try='test -s conftest.$ac_objext' 6625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6626 (eval $ac_try) 2>&5 6627 ac_status=$? 6628 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6629 (exit $ac_status); }; }; then 6630 ac_cv_type__Bool=yes 6631 else 6632 echo "$as_me: failed program was:" >&5 6633 sed 's/^/| /' conftest.$ac_ext >&5 6634 6635 ac_cv_type__Bool=no 6636 fi 6637 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 6638 fi 6639 echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5 6640 echo "${ECHO_T}$ac_cv_type__Bool" >&6 6641 if test $ac_cv_type__Bool = yes; then 6642 6643 cat >>confdefs.h <<_ACEOF 6644 #define HAVE__BOOL 1 6645 _ACEOF 6646 6647 6648 fi 6649 6650 if test $ac_cv_header_stdbool_h = yes; then 6651 6652 cat >>confdefs.h <<\_ACEOF 6653 #define HAVE_STDBOOL_H 1 6654 _ACEOF 6655 6656 fi 6657 6658 6659 # Checks for library functions. 6660 6661 for ac_header in stdlib.h 6662 do 6663 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 6664 if eval "test \"\${$as_ac_Header+set}\" = set"; then 6665 echo "$as_me:$LINENO: checking for $ac_header" >&5 6666 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 6667 if eval "test \"\${$as_ac_Header+set}\" = set"; then 6668 echo $ECHO_N "(cached) $ECHO_C" >&6 6669 fi 6670 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 6671 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 6672 else 6673 # Is the header compilable? 6674 echo "$as_me:$LINENO: checking $ac_header usability" >&5 6675 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 6676 cat >conftest.$ac_ext <<_ACEOF 6677 /* confdefs.h. */ 6678 _ACEOF 6679 cat confdefs.h >>conftest.$ac_ext 6680 cat >>conftest.$ac_ext <<_ACEOF 6681 /* end confdefs.h. */ 6682 $ac_includes_default 6683 #include <$ac_header> 6684 _ACEOF 6685 rm -f conftest.$ac_objext 6686 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6687 (eval $ac_compile) 2>conftest.er1 6688 ac_status=$? 6689 grep -v '^ *+' conftest.er1 >conftest.err 6690 rm -f conftest.er1 6691 cat conftest.err >&5 6692 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6693 (exit $ac_status); } && 6694 { ac_try='test -z "$ac_c_werror_flag" 6695 || test ! -s conftest.err' 6696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6697 (eval $ac_try) 2>&5 6698 ac_status=$? 6699 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6700 (exit $ac_status); }; } && 6701 { ac_try='test -s conftest.$ac_objext' 6702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6703 (eval $ac_try) 2>&5 6704 ac_status=$? 6705 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6706 (exit $ac_status); }; }; then 6707 ac_header_compiler=yes 6708 else 6709 echo "$as_me: failed program was:" >&5 6710 sed 's/^/| /' conftest.$ac_ext >&5 6711 6712 ac_header_compiler=no 6713 fi 6714 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 6715 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 6716 echo "${ECHO_T}$ac_header_compiler" >&6 6717 6718 # Is the header present? 6719 echo "$as_me:$LINENO: checking $ac_header presence" >&5 6720 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 6721 cat >conftest.$ac_ext <<_ACEOF 6722 /* confdefs.h. */ 6723 _ACEOF 6724 cat confdefs.h >>conftest.$ac_ext 6725 cat >>conftest.$ac_ext <<_ACEOF 6726 /* end confdefs.h. */ 6727 #include <$ac_header> 6728 _ACEOF 6729 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 6730 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 6731 ac_status=$? 6732 grep -v '^ *+' conftest.er1 >conftest.err 6733 rm -f conftest.er1 6734 cat conftest.err >&5 6735 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6736 (exit $ac_status); } >/dev/null; then 6737 if test -s conftest.err; then 6738 ac_cpp_err=$ac_c_preproc_warn_flag 6739 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 6740 else 6741 ac_cpp_err= 6742 fi 6743 else 6744 ac_cpp_err=yes 6745 fi 6746 if test -z "$ac_cpp_err"; then 6747 ac_header_preproc=yes 6748 else 6749 echo "$as_me: failed program was:" >&5 6750 sed 's/^/| /' conftest.$ac_ext >&5 6751 6752 ac_header_preproc=no 6753 fi 6754 rm -f conftest.err conftest.$ac_ext 6755 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 6756 echo "${ECHO_T}$ac_header_preproc" >&6 6757 6758 # So? What about this header? 6759 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 6760 yes:no: ) 6761 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 6762 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 6763 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 6764 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 6765 ac_header_preproc=yes 6766 ;; 6767 no:yes:* ) 6768 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 6769 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 6770 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 6771 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 6772 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 6773 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 6774 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 6775 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 6776 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 6777 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 6778 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 6779 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 6780 ( 6781 cat <<\_ASBOX 6782 ## ------------------------------------------- ## 6783 ## Report this to orxonox-dev@mail.datacore.ch ## 6784 ## ------------------------------------------- ## 6785 _ASBOX 6786 ) | 6787 sed "s/^/$as_me: WARNING: /" >&2 6788 ;; 6789 esac 6790 echo "$as_me:$LINENO: checking for $ac_header" >&5 6791 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 6792 if eval "test \"\${$as_ac_Header+set}\" = set"; then 6793 echo $ECHO_N "(cached) $ECHO_C" >&6 6794 else 6795 eval "$as_ac_Header=\$ac_header_preproc" 6796 fi 6797 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 6798 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 6799 6800 fi 6801 if test `eval echo '${'$as_ac_Header'}'` = yes; then 6802 cat >>confdefs.h <<_ACEOF 6803 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 6804 _ACEOF 6805 5956 6806 fi 5957 6807 … … 6143 6993 6144 6994 6145 ac_config_files="$ac_config_files Makefile console/Makefile gui/Makefile src/Makefile"6995 ac_config_files="$ac_config_files Makefile console/Makefile gui/Makefile src/Makefile importer/Makefile" 6146 6996 6147 6997 cat >confcache <<\_ACEOF … … 6705 7555 "gui/Makefile" ) CONFIG_FILES="$CONFIG_FILES gui/Makefile" ;; 6706 7556 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 7557 "importer/Makefile" ) CONFIG_FILES="$CONFIG_FILES importer/Makefile" ;; 6707 7558 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 6708 7559 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; … … 6808 7659 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t 6809 7660 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t 7661 s,@mkdir_p@,$mkdir_p,;t t 6810 7662 s,@AWK@,$AWK,;t t 6811 7663 s,@SET_MAKE@,$SET_MAKE,;t t 6812 7664 s,@am__leading_dot@,$am__leading_dot,;t t 6813 s,@MSBITFIELDS@,$MSBITFIELDS,;t t6814 7665 s,@CXX@,$CXX,;t t 6815 7666 s,@CXXFLAGS@,$CXXFLAGS,;t t … … 6836 7687 s,@CPP@,$CPP,;t t 6837 7688 s,@EGREP@,$EGREP,;t t 7689 s,@MSBITFIELDS@,$MSBITFIELDS,;t t 6838 7690 s,@LIBOBJS@,$LIBOBJS,;t t 6839 7691 s,@LTLIBOBJS@,$LTLIBOBJS,;t t … … 7463 8315 # Extract the definition of DEP_FILES from the Makefile without 7464 8316 # running `make'. 7465 DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`8317 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 7466 8318 test -z "$DEPDIR" && continue 7467 8319 # When using ansi2knr, U may be empty or an underscore; expand it 7468 U=`sed -n -e '/^U = / s///p' < "$mf"`8320 U=`sed -n 's/^U = //p' < "$mf"` 7469 8321 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR" 7470 8322 # We invoke sed twice because it is the simplest approach to 7471 8323 # changing $(DEPDIR) to its actual value in the expansion. 7472 for file in `sed -n -e'8324 for file in `sed -n ' 7473 8325 /^DEP_FILES = .*\\\\$/ { 7474 8326 s/^DEP_FILES = //
Note: See TracChangeset
for help on using the changeset viewer.