Changeset 2983 in orxonox.OLD for orxonox/branches
- Timestamp:
- Nov 25, 2004, 1:39:02 PM (20 years ago)
- Location:
- orxonox/branches/osX
- Files:
-
- 11 edited
- 2 copied
Legend:
- Unmodified
- Added
- Removed
-
orxonox/branches/osX/Makefile.in
r2978 r2983 34 34 PRE_UNINSTALL = : 35 35 POST_UNINSTALL = : 36 subdir = . 36 host_triplet = @host@ 37 37 DIST_COMMON = README $(am__configure_deps) $(srcdir)/Makefile.am \ 38 38 $(srcdir)/Makefile.in $(srcdir)/config.h.in \ 39 39 $(top_srcdir)/configure AUTHORS COPYING ChangeLog INSTALL NEWS \ 40 TODO depcomp install-sh missing mkinstalldirs 40 config.guess config.sub depcomp install-sh missing \ 41 mkinstalldirs 42 subdir = . 41 43 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 42 44 am__aclocal_m4_deps = $(top_srcdir)/configure.ac … … 94 96 EGREP = @EGREP@ 95 97 EXEEXT = @EXEEXT@ 98 GTK2_CFLAGS = @GTK2_CFLAGS@ 99 GTK2_LIBS = @GTK2_LIBS@ 100 HAVE_GTK2_FALSE = @HAVE_GTK2_FALSE@ 101 HAVE_GTK2_TRUE = @HAVE_GTK2_TRUE@ 96 102 INSTALL_DATA = @INSTALL_DATA@ 97 103 INSTALL_PROGRAM = @INSTALL_PROGRAM@ … … 112 118 PACKAGE_VERSION = @PACKAGE_VERSION@ 113 119 PATH_SEPARATOR = @PATH_SEPARATOR@ 120 PKG_CONFIG = @PKG_CONFIG@ 121 SDL_CFLAGS = @SDL_CFLAGS@ 122 SDL_CONFIG = @SDL_CONFIG@ 123 SDL_LIBS = @SDL_LIBS@ 114 124 SET_MAKE = @SET_MAKE@ 115 125 SHELL = @SHELL@ … … 127 137 am__quote = @am__quote@ 128 138 bindir = @bindir@ 139 build = @build@ 129 140 build_alias = @build_alias@ 141 build_cpu = @build_cpu@ 142 build_os = @build_os@ 143 build_vendor = @build_vendor@ 130 144 datadir = @datadir@ 131 145 exec_prefix = @exec_prefix@ 146 host = @host@ 132 147 host_alias = @host_alias@ 148 host_cpu = @host_cpu@ 149 host_os = @host_os@ 150 host_vendor = @host_vendor@ 133 151 includedir = @includedir@ 134 152 infodir = @infodir@ … … 145 163 sharedstatedir = @sharedstatedir@ 146 164 sysconfdir = @sysconfdir@ 165 target = @target@ 147 166 target_alias = @target_alias@ 167 target_cpu = @target_cpu@ 168 target_os = @target_os@ 169 target_vendor = @target_vendor@ 148 170 SUBDIRS = src console gui importer 149 171 all: config.h -
orxonox/branches/osX/aclocal.m4
r2819 r2983 11 11 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A 12 12 # PARTICULAR PURPOSE. 13 14 15 dnl PKG_CHECK_MODULES(GSTUFF, gtk+-2.0 >= 1.3 glib = 1.3.4, action-if, action-not) 16 dnl defines GSTUFF_LIBS, GSTUFF_CFLAGS, see pkg-config man page 17 dnl also defines GSTUFF_PKG_ERRORS on error 18 AC_DEFUN(PKG_CHECK_MODULES, [ 19 succeeded=no 20 21 if test -z "$PKG_CONFIG"; then 22 AC_PATH_PROG(PKG_CONFIG, pkg-config, no) 23 fi 24 25 if test "$PKG_CONFIG" = "no" ; then 26 echo "*** The pkg-config script could not be found. Make sure it is" 27 echo "*** in your path, or set the PKG_CONFIG environment variable" 28 echo "*** to the full path to pkg-config." 29 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." 30 else 31 PKG_CONFIG_MIN_VERSION=0.9.0 32 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then 33 AC_MSG_CHECKING(for $2) 34 35 if $PKG_CONFIG --exists "$2" ; then 36 AC_MSG_RESULT(yes) 37 succeeded=yes 38 39 AC_MSG_CHECKING($1_CFLAGS) 40 $1_CFLAGS=`$PKG_CONFIG --cflags "$2"` 41 AC_MSG_RESULT($$1_CFLAGS) 42 43 AC_MSG_CHECKING($1_LIBS) 44 $1_LIBS=`$PKG_CONFIG --libs "$2"` 45 AC_MSG_RESULT($$1_LIBS) 46 else 47 $1_CFLAGS="" 48 $1_LIBS="" 49 ## If we have a custom action on failure, don't print errors, but 50 ## do set a variable so people can do so. 51 $1_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$2"` 52 ifelse([$4], ,echo $$1_PKG_ERRORS,) 53 fi 54 55 AC_SUBST($1_CFLAGS) 56 AC_SUBST($1_LIBS) 57 else 58 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." 59 echo "*** See http://www.freedesktop.org/software/pkgconfig" 60 fi 61 fi 62 63 if test $succeeded = yes; then 64 ifelse([$3], , :, [$3]) 65 else 66 ifelse([$4], , AC_MSG_ERROR([Library requirements ($2) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them.]), [$4]) 67 fi 68 ]) 69 70 71 72 # Configure paths for SDL 73 # Sam Lantinga 9/21/99 74 # stolen from Manish Singh 75 # stolen back from Frank Belew 76 # stolen from Manish Singh 77 # Shamelessly stolen from Owen Taylor 78 79 dnl AM_PATH_SDL([MINIMUM-VERSION, [ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]]]) 80 dnl Test for SDL, and define SDL_CFLAGS and SDL_LIBS 81 dnl 82 AC_DEFUN([AM_PATH_SDL], 83 [dnl 84 dnl Get the cflags and libraries from the sdl-config script 85 dnl 86 AC_ARG_WITH(sdl-prefix,[ --with-sdl-prefix=PFX Prefix where SDL is installed (optional)], 87 sdl_prefix="$withval", sdl_prefix="") 88 AC_ARG_WITH(sdl-exec-prefix,[ --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)], 89 sdl_exec_prefix="$withval", sdl_exec_prefix="") 90 AC_ARG_ENABLE(sdltest, [ --disable-sdltest Do not try to compile and run a test SDL program], 91 , enable_sdltest=yes) 92 93 if test x$sdl_exec_prefix != x ; then 94 sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix" 95 if test x${SDL_CONFIG+set} != xset ; then 96 SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config 97 fi 98 fi 99 if test x$sdl_prefix != x ; then 100 sdl_args="$sdl_args --prefix=$sdl_prefix" 101 if test x${SDL_CONFIG+set} != xset ; then 102 SDL_CONFIG=$sdl_prefix/bin/sdl-config 103 fi 104 fi 105 106 AC_REQUIRE([AC_CANONICAL_TARGET]) 107 PATH="$prefix/bin:$prefix/usr/bin:$PATH" 108 AC_PATH_PROG(SDL_CONFIG, sdl-config, no, [$PATH]) 109 min_sdl_version=ifelse([$1], ,0.11.0,$1) 110 AC_MSG_CHECKING(for SDL - version >= $min_sdl_version) 111 no_sdl="" 112 if test "$SDL_CONFIG" = "no" ; then 113 no_sdl=yes 114 else 115 SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags` 116 SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs` 117 118 sdl_major_version=`$SDL_CONFIG $sdl_args --version | \ 119 sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\1/'` 120 sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \ 121 sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\2/'` 122 sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \ 123 sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\3/'` 124 if test "x$enable_sdltest" = "xyes" ; then 125 ac_save_CFLAGS="$CFLAGS" 126 ac_save_LIBS="$LIBS" 127 CFLAGS="$CFLAGS $SDL_CFLAGS" 128 LIBS="$LIBS $SDL_LIBS" 129 dnl 130 dnl Now check if the installed SDL is sufficiently new. (Also sanity 131 dnl checks the results of sdl-config to some extent 132 dnl 133 rm -f conf.sdltest 134 AC_TRY_RUN([ 135 #include <stdio.h> 136 #include <stdlib.h> 137 #include <string.h> 138 #include "SDL.h" 139 140 char* 141 my_strdup (char *str) 142 { 143 char *new_str; 144 145 if (str) 146 { 147 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char)); 148 strcpy (new_str, str); 149 } 150 else 151 new_str = NULL; 152 153 return new_str; 154 } 155 156 int main (int argc, char *argv[]) 157 { 158 int major, minor, micro; 159 char *tmp_version; 160 161 /* This hangs on some systems (?) 162 system ("touch conf.sdltest"); 163 */ 164 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); } 165 166 /* HP/UX 9 (%@#!) writes to sscanf strings */ 167 tmp_version = my_strdup("$min_sdl_version"); 168 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { 169 printf("%s, bad version string\n", "$min_sdl_version"); 170 exit(1); 171 } 172 173 if (($sdl_major_version > major) || 174 (($sdl_major_version == major) && ($sdl_minor_version > minor)) || 175 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro))) 176 { 177 return 0; 178 } 179 else 180 { 181 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version); 182 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro); 183 printf("*** best to upgrade to the required version.\n"); 184 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n"); 185 printf("*** to point to the correct copy of sdl-config, and remove the file\n"); 186 printf("*** config.cache before re-running configure\n"); 187 return 1; 188 } 189 } 190 191 ],, no_sdl=yes,[echo $ac_n "cross compiling; assumed OK... $ac_c"]) 192 CFLAGS="$ac_save_CFLAGS" 193 LIBS="$ac_save_LIBS" 194 fi 195 fi 196 if test "x$no_sdl" = x ; then 197 AC_MSG_RESULT(yes) 198 ifelse([$2], , :, [$2]) 199 else 200 AC_MSG_RESULT(no) 201 if test "$SDL_CONFIG" = "no" ; then 202 echo "*** The sdl-config script installed by SDL could not be found" 203 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in" 204 echo "*** your path, or set the SDL_CONFIG environment variable to the" 205 echo "*** full path to sdl-config." 206 else 207 if test -f conf.sdltest ; then 208 : 209 else 210 echo "*** Could not run SDL test program, checking why..." 211 CFLAGS="$CFLAGS $SDL_CFLAGS" 212 LIBS="$LIBS $SDL_LIBS" 213 AC_TRY_LINK([ 214 #include <stdio.h> 215 #include "SDL.h" 216 217 int main(int argc, char *argv[]) 218 { return 0; } 219 #undef main 220 #define main K_and_R_C_main 221 ], [ return 0; ], 222 [ echo "*** The test program compiled, but did not run. This usually means" 223 echo "*** that the run-time linker is not finding SDL or finding the wrong" 224 echo "*** version of SDL. If it is not finding SDL, you'll need to set your" 225 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" 226 echo "*** to the installed location Also, make sure you have run ldconfig if that" 227 echo "*** is required on your system" 228 echo "***" 229 echo "*** If you have an old version installed, it is best to remove it, although" 230 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"], 231 [ echo "*** The test program failed to compile or link. See the file config.log for the" 232 echo "*** exact error that occured. This usually means SDL was incorrectly installed" 233 echo "*** or that you have moved SDL since it was installed. In the latter case, you" 234 echo "*** may want to edit the sdl-config script: $SDL_CONFIG" ]) 235 CFLAGS="$ac_save_CFLAGS" 236 LIBS="$ac_save_LIBS" 237 fi 238 fi 239 SDL_CFLAGS="" 240 SDL_LIBS="" 241 ifelse([$3], , :, [$3]) 242 fi 243 AC_SUBST(SDL_CFLAGS) 244 AC_SUBST(SDL_LIBS) 245 rm -f conf.sdltest 246 ]) 13 247 14 248 # -*- Autoconf -*- -
orxonox/branches/osX/config.h.in
r2978 r2983 15 15 /* Define to 1 if you have the `m' library (-lm). */ 16 16 #undef HAVE_LIBM 17 18 /* Define to 1 if you have the `OSMesa' library (-lOSMesa). */19 #undef HAVE_LIBOSMESA20 21 /* Define to 1 if you have the `X11' library (-lX11). */22 #undef HAVE_LIBX1123 24 /* Define to 1 if you have the `Xt' library (-lXt). */25 #undef HAVE_LIBXT26 17 27 18 /* Define to 1 if your system has a GNU libc compatible `malloc' function, and -
orxonox/branches/osX/configure
r2978 r2983 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 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 MSBITFIELDSLIBOBJS LTLIBOBJS'314 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot CXX CXXFLAGS LDFLAGS CPPFLAGS ac_ct_CXX EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CC CFLAGS ac_ct_CC CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CPP EGREP SDL_CONFIG SDL_CFLAGS SDL_LIBS MSBITFIELDS PKG_CONFIG GTK2_CFLAGS GTK2_LIBS HAVE_GTK2_TRUE HAVE_GTK2_FALSE LIBOBJS LTLIBOBJS' 315 315 ac_subst_files='' 316 316 … … 846 846 --program-suffix=SUFFIX append SUFFIX to installed program names 847 847 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 848 849 System types: 850 --build=BUILD configure for building on BUILD [guessed] 851 --host=HOST cross-compile to build programs to run on HOST [BUILD] 852 --target=TARGET configure for building compilers for TARGET [HOST] 848 853 _ACEOF 849 854 fi … … 860 865 --disable-dependency-tracking speeds up one-time build 861 866 --enable-dependency-tracking do not reject slow dependency extractors 867 --disable-sdltest Do not try to compile and run a test SDL program 868 869 Optional Packages: 870 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 871 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 872 --with-sdl-prefix=PFX Prefix where SDL is installed (optional) 873 --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional) 862 874 863 875 Some influential environment variables: … … 1321 1333 1322 1334 1323 am__api_version="1.8" 1335 1336 # Detect the canonical host and target build environment. 1324 1337 ac_aux_dir= 1325 1338 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do … … 1347 1360 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. 1348 1361 1362 # Make sure we can run config.sub. 1363 $ac_config_sub sun4 >/dev/null 2>&1 || 1364 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 1365 echo "$as_me: error: cannot run $ac_config_sub" >&2;} 1366 { (exit 1); exit 1; }; } 1367 1368 echo "$as_me:$LINENO: checking build system type" >&5 1369 echo $ECHO_N "checking build system type... $ECHO_C" >&6 1370 if test "${ac_cv_build+set}" = set; then 1371 echo $ECHO_N "(cached) $ECHO_C" >&6 1372 else 1373 ac_cv_build_alias=$build_alias 1374 test -z "$ac_cv_build_alias" && 1375 ac_cv_build_alias=`$ac_config_guess` 1376 test -z "$ac_cv_build_alias" && 1377 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 1378 echo "$as_me: error: cannot guess build type; you must specify one" >&2;} 1379 { (exit 1); exit 1; }; } 1380 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || 1381 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 1382 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} 1383 { (exit 1); exit 1; }; } 1384 1385 fi 1386 echo "$as_me:$LINENO: result: $ac_cv_build" >&5 1387 echo "${ECHO_T}$ac_cv_build" >&6 1388 build=$ac_cv_build 1389 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 1390 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 1391 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 1392 1393 1394 echo "$as_me:$LINENO: checking host system type" >&5 1395 echo $ECHO_N "checking host system type... $ECHO_C" >&6 1396 if test "${ac_cv_host+set}" = set; then 1397 echo $ECHO_N "(cached) $ECHO_C" >&6 1398 else 1399 ac_cv_host_alias=$host_alias 1400 test -z "$ac_cv_host_alias" && 1401 ac_cv_host_alias=$ac_cv_build_alias 1402 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || 1403 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 1404 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} 1405 { (exit 1); exit 1; }; } 1406 1407 fi 1408 echo "$as_me:$LINENO: result: $ac_cv_host" >&5 1409 echo "${ECHO_T}$ac_cv_host" >&6 1410 host=$ac_cv_host 1411 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 1412 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 1413 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 1414 1415 1416 echo "$as_me:$LINENO: checking target system type" >&5 1417 echo $ECHO_N "checking target system type... $ECHO_C" >&6 1418 if test "${ac_cv_target+set}" = set; then 1419 echo $ECHO_N "(cached) $ECHO_C" >&6 1420 else 1421 ac_cv_target_alias=$target_alias 1422 test "x$ac_cv_target_alias" = "x" && 1423 ac_cv_target_alias=$ac_cv_host_alias 1424 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` || 1425 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5 1426 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;} 1427 { (exit 1); exit 1; }; } 1428 1429 fi 1430 echo "$as_me:$LINENO: result: $ac_cv_target" >&5 1431 echo "${ECHO_T}$ac_cv_target" >&6 1432 target=$ac_cv_target 1433 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 1434 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 1435 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 1436 1437 1438 # The aliases save the names the user supplied, while $host etc. 1439 # will get canonicalized. 1440 test -n "$target_alias" && 1441 test "$program_prefix$program_suffix$program_transform_name" = \ 1442 NONENONEs,x,x, && 1443 program_prefix=${target_alias}- 1444 1445 1446 am__api_version="1.8" 1349 1447 # Find a good install program. We prefer a C program (faster), 1350 1448 # so one script is as good as another. But avoid the broken or … … 3322 3420 3323 3421 3324 3325 3326 3327 3422 ac_ext=c 3328 3423 ac_cpp='$CPP $CPPFLAGS' … … 3746 3841 echo "$as_me:$LINENO: checking for System" >&5 3747 3842 echo $ECHO_N "checking for System... $ECHO_C" >&6 3748 case `uname` in 3843 ## checking for openGL-environment and other sys-specific parameters 3844 case "$target" in 3749 3845 ### WINDOWS ### 3750 * MINGW*)3846 *-*-mingw32*) 3751 3847 echo "mingw-WINDOWS detected" 3752 3848 … … 4289 4385 fi 4290 4386 4291 4292 4387 # checking for mingw32 4293 4388 echo "$as_me:$LINENO: checking for main in -lmingw32" >&5 … … 4576 4671 4577 4672 if test "$FOUND_sdlmain" = "yes" ; then 4578 4673 LIBS="$LIBS -lsdlmain" 4579 4674 else 4580 4581 4582 4583 4584 4675 echo "------------------" 4676 echo "SDL library not found." 4677 echo "please install the SDL library, which can be found at http://www.libsdl.org" 4678 echo "------------------" 4679 exit 1 4585 4680 fi 4586 4681 echo "$as_me:$LINENO: checking for main in -lsdl" >&5 … … 4647 4742 4648 4743 if test "$FOUND_sdl" = "yes" ; then 4649 4744 LIBS="$LIBS -lsdl" 4650 4745 else 4651 4652 4653 4654 4655 4746 echo "------------------" 4747 echo "SDL library not found." 4748 echo "please install the SDL library, which can be found at http://www.libsdl.org" 4749 echo "------------------" 4750 exit -1 4656 4751 fi 4657 4752 4753 4658 4754 ;; 4659 4755 4660 4756 ### LINUX ### 4661 * Linux*)4757 *-*-linux*) 4662 4758 echo "Linux detected" 4663 4759 … … 5127 5223 fi 5128 5224 5129 # checking for SDL-headers 5130 5131 for ac_header in SDL/SDL.h 5225 ## checking for SDL 5226 SDL_VERSION=1.2.7 5227 5228 # Check whether --with-sdl-prefix or --without-sdl-prefix was given. 5229 if test "${with_sdl_prefix+set}" = set; then 5230 withval="$with_sdl_prefix" 5231 sdl_prefix="$withval" 5232 else 5233 sdl_prefix="" 5234 fi; 5235 5236 # Check whether --with-sdl-exec-prefix or --without-sdl-exec-prefix was given. 5237 if test "${with_sdl_exec_prefix+set}" = set; then 5238 withval="$with_sdl_exec_prefix" 5239 sdl_exec_prefix="$withval" 5240 else 5241 sdl_exec_prefix="" 5242 fi; 5243 # Check whether --enable-sdltest or --disable-sdltest was given. 5244 if test "${enable_sdltest+set}" = set; then 5245 enableval="$enable_sdltest" 5246 5247 else 5248 enable_sdltest=yes 5249 fi; 5250 5251 if test x$sdl_exec_prefix != x ; then 5252 sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix" 5253 if test x${SDL_CONFIG+set} != xset ; then 5254 SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config 5255 fi 5256 fi 5257 if test x$sdl_prefix != x ; then 5258 sdl_args="$sdl_args --prefix=$sdl_prefix" 5259 if test x${SDL_CONFIG+set} != xset ; then 5260 SDL_CONFIG=$sdl_prefix/bin/sdl-config 5261 fi 5262 fi 5263 5264 5265 PATH="$prefix/bin:$prefix/usr/bin:$PATH" 5266 # Extract the first word of "sdl-config", so it can be a program name with args. 5267 set dummy sdl-config; ac_word=$2 5268 echo "$as_me:$LINENO: checking for $ac_word" >&5 5269 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 5270 if test "${ac_cv_path_SDL_CONFIG+set}" = set; then 5271 echo $ECHO_N "(cached) $ECHO_C" >&6 5272 else 5273 case $SDL_CONFIG in 5274 [\\/]* | ?:[\\/]*) 5275 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path. 5276 ;; 5277 *) 5278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5279 for as_dir in $PATH 5280 do 5281 IFS=$as_save_IFS 5282 test -z "$as_dir" && as_dir=. 5283 for ac_exec_ext in '' $ac_executable_extensions; do 5284 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5285 ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext" 5286 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5287 break 2 5288 fi 5289 done 5290 done 5291 5292 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no" 5293 ;; 5294 esac 5295 fi 5296 SDL_CONFIG=$ac_cv_path_SDL_CONFIG 5297 5298 if test -n "$SDL_CONFIG"; then 5299 echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5 5300 echo "${ECHO_T}$SDL_CONFIG" >&6 5301 else 5302 echo "$as_me:$LINENO: result: no" >&5 5303 echo "${ECHO_T}no" >&6 5304 fi 5305 5306 min_sdl_version=$SDL_VERSION 5307 echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5 5308 echo $ECHO_N "checking for SDL - version >= $min_sdl_version... $ECHO_C" >&6 5309 no_sdl="" 5310 if test "$SDL_CONFIG" = "no" ; then 5311 no_sdl=yes 5312 else 5313 SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags` 5314 SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs` 5315 5316 sdl_major_version=`$SDL_CONFIG $sdl_args --version | \ 5317 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` 5318 sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \ 5319 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` 5320 sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \ 5321 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` 5322 if test "x$enable_sdltest" = "xyes" ; then 5323 ac_save_CFLAGS="$CFLAGS" 5324 ac_save_LIBS="$LIBS" 5325 CFLAGS="$CFLAGS $SDL_CFLAGS" 5326 LIBS="$LIBS $SDL_LIBS" 5327 rm -f conf.sdltest 5328 if test "$cross_compiling" = yes; then 5329 echo $ac_n "cross compiling; assumed OK... $ac_c" 5330 else 5331 cat >conftest.$ac_ext <<_ACEOF 5332 /* confdefs.h. */ 5333 _ACEOF 5334 cat confdefs.h >>conftest.$ac_ext 5335 cat >>conftest.$ac_ext <<_ACEOF 5336 /* end confdefs.h. */ 5337 5338 #include <stdio.h> 5339 #include <stdlib.h> 5340 #include <string.h> 5341 #include "SDL.h" 5342 5343 char* 5344 my_strdup (char *str) 5345 { 5346 char *new_str; 5347 5348 if (str) 5349 { 5350 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char)); 5351 strcpy (new_str, str); 5352 } 5353 else 5354 new_str = NULL; 5355 5356 return new_str; 5357 } 5358 5359 int main (int argc, char *argv[]) 5360 { 5361 int major, minor, micro; 5362 char *tmp_version; 5363 5364 /* This hangs on some systems (?) 5365 system ("touch conf.sdltest"); 5366 */ 5367 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); } 5368 5369 /* HP/UX 9 (%@#!) writes to sscanf strings */ 5370 tmp_version = my_strdup("$min_sdl_version"); 5371 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { 5372 printf("%s, bad version string\n", "$min_sdl_version"); 5373 exit(1); 5374 } 5375 5376 if (($sdl_major_version > major) || 5377 (($sdl_major_version == major) && ($sdl_minor_version > minor)) || 5378 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro))) 5379 { 5380 return 0; 5381 } 5382 else 5383 { 5384 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version); 5385 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro); 5386 printf("*** best to upgrade to the required version.\n"); 5387 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n"); 5388 printf("*** to point to the correct copy of sdl-config, and remove the file\n"); 5389 printf("*** config.cache before re-running configure\n"); 5390 return 1; 5391 } 5392 } 5393 5394 5395 _ACEOF 5396 rm -f conftest$ac_exeext 5397 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5398 (eval $ac_link) 2>&5 5399 ac_status=$? 5400 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5401 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 5402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5403 (eval $ac_try) 2>&5 5404 ac_status=$? 5405 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5406 (exit $ac_status); }; }; then 5407 : 5408 else 5409 echo "$as_me: program exited with status $ac_status" >&5 5410 echo "$as_me: failed program was:" >&5 5411 sed 's/^/| /' conftest.$ac_ext >&5 5412 5413 ( exit $ac_status ) 5414 no_sdl=yes 5415 fi 5416 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 5417 fi 5418 CFLAGS="$ac_save_CFLAGS" 5419 LIBS="$ac_save_LIBS" 5420 fi 5421 fi 5422 if test "x$no_sdl" = x ; then 5423 echo "$as_me:$LINENO: result: yes" >&5 5424 echo "${ECHO_T}yes" >&6 5425 : 5426 else 5427 echo "$as_me:$LINENO: result: no" >&5 5428 echo "${ECHO_T}no" >&6 5429 if test "$SDL_CONFIG" = "no" ; then 5430 echo "*** The sdl-config script installed by SDL could not be found" 5431 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in" 5432 echo "*** your path, or set the SDL_CONFIG environment variable to the" 5433 echo "*** full path to sdl-config." 5434 else 5435 if test -f conf.sdltest ; then 5436 : 5437 else 5438 echo "*** Could not run SDL test program, checking why..." 5439 CFLAGS="$CFLAGS $SDL_CFLAGS" 5440 LIBS="$LIBS $SDL_LIBS" 5441 cat >conftest.$ac_ext <<_ACEOF 5442 /* confdefs.h. */ 5443 _ACEOF 5444 cat confdefs.h >>conftest.$ac_ext 5445 cat >>conftest.$ac_ext <<_ACEOF 5446 /* end confdefs.h. */ 5447 5448 #include <stdio.h> 5449 #include "SDL.h" 5450 5451 int main(int argc, char *argv[]) 5452 { return 0; } 5453 #undef main 5454 #define main K_and_R_C_main 5455 5456 int 5457 main () 5458 { 5459 return 0; 5460 ; 5461 return 0; 5462 } 5463 _ACEOF 5464 rm -f conftest.$ac_objext conftest$ac_exeext 5465 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5466 (eval $ac_link) 2>conftest.er1 5467 ac_status=$? 5468 grep -v '^ *+' conftest.er1 >conftest.err 5469 rm -f conftest.er1 5470 cat conftest.err >&5 5471 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5472 (exit $ac_status); } && 5473 { ac_try='test -z "$ac_c_werror_flag" 5474 || test ! -s conftest.err' 5475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5476 (eval $ac_try) 2>&5 5477 ac_status=$? 5478 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5479 (exit $ac_status); }; } && 5480 { ac_try='test -s conftest$ac_exeext' 5481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5482 (eval $ac_try) 2>&5 5483 ac_status=$? 5484 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5485 (exit $ac_status); }; }; then 5486 echo "*** The test program compiled, but did not run. This usually means" 5487 echo "*** that the run-time linker is not finding SDL or finding the wrong" 5488 echo "*** version of SDL. If it is not finding SDL, you'll need to set your" 5489 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" 5490 echo "*** to the installed location Also, make sure you have run ldconfig if that" 5491 echo "*** is required on your system" 5492 echo "***" 5493 echo "*** If you have an old version installed, it is best to remove it, although" 5494 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" 5495 else 5496 echo "$as_me: failed program was:" >&5 5497 sed 's/^/| /' conftest.$ac_ext >&5 5498 5499 echo "*** The test program failed to compile or link. See the file config.log for the" 5500 echo "*** exact error that occured. This usually means SDL was incorrectly installed" 5501 echo "*** or that you have moved SDL since it was installed. In the latter case, you" 5502 echo "*** may want to edit the sdl-config script: $SDL_CONFIG" 5503 fi 5504 rm -f conftest.err conftest.$ac_objext \ 5505 conftest$ac_exeext conftest.$ac_ext 5506 CFLAGS="$ac_save_CFLAGS" 5507 LIBS="$ac_save_LIBS" 5508 fi 5509 fi 5510 SDL_CFLAGS="" 5511 SDL_LIBS="" 5512 { { echo "$as_me:$LINENO: error: *** SDL version $SDL_VERSION not found!" >&5 5513 echo "$as_me: error: *** SDL version $SDL_VERSION not found!" >&2;} 5514 { (exit 1); exit 1; }; } 5515 5516 fi 5517 5518 5519 rm -f conf.sdltest 5520 5521 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS" 5522 LIBS="$LIBS $SDL_LIBS" 5523 ;; 5524 5525 ### OS X ### 5526 *Darwin*) 5527 echo "OS X detected" 5528 5529 osX="yes" 5530 5531 # checking gl header 5532 5533 for ac_header in OpenGL/gl.h 5132 5534 do 5133 5535 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` … … 5275 5677 5276 5678 else 5277 { { echo "$as_me:$LINENO: error: cannot find SDLheaders" >&55278 echo "$as_me: error: cannot find SDLheaders" >&2;}5679 { { echo "$as_me:$LINENO: error: cannot find opengl headers" >&5 5680 echo "$as_me: error: cannot find opengl headers" >&2;} 5279 5681 { (exit 1); exit 1; }; } 5280 5682 fi … … 5282 5684 done 5283 5685 5284 5285 echo "$as_me:$LINENO: checking for main in -lSDL" >&5 5286 echo $ECHO_N "checking for main in -lSDL... $ECHO_C" >&6 5287 if test "${ac_cv_lib_SDL_main+set}" = set; then 5288 echo $ECHO_N "(cached) $ECHO_C" >&6 5289 else 5290 ac_check_lib_save_LIBS=$LIBS 5291 LIBS="-lSDL $LIBS" 5292 cat >conftest.$ac_ext <<_ACEOF 5293 /* confdefs.h. */ 5294 _ACEOF 5295 cat confdefs.h >>conftest.$ac_ext 5296 cat >>conftest.$ac_ext <<_ACEOF 5297 /* end confdefs.h. */ 5298 5299 5300 int 5301 main () 5302 { 5303 main (); 5304 ; 5305 return 0; 5306 } 5307 _ACEOF 5308 rm -f conftest.$ac_objext conftest$ac_exeext 5309 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5310 (eval $ac_link) 2>conftest.er1 5311 ac_status=$? 5312 grep -v '^ *+' conftest.er1 >conftest.err 5313 rm -f conftest.er1 5314 cat conftest.err >&5 5315 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5316 (exit $ac_status); } && 5317 { ac_try='test -z "$ac_c_werror_flag" 5318 || test ! -s conftest.err' 5319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5320 (eval $ac_try) 2>&5 5321 ac_status=$? 5322 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5323 (exit $ac_status); }; } && 5324 { ac_try='test -s conftest$ac_exeext' 5325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5326 (eval $ac_try) 2>&5 5327 ac_status=$? 5328 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5329 (exit $ac_status); }; }; then 5330 ac_cv_lib_SDL_main=yes 5331 else 5332 echo "$as_me: failed program was:" >&5 5333 sed 's/^/| /' conftest.$ac_ext >&5 5334 5335 ac_cv_lib_SDL_main=no 5336 fi 5337 rm -f conftest.err conftest.$ac_objext \ 5338 conftest$ac_exeext conftest.$ac_ext 5339 LIBS=$ac_check_lib_save_LIBS 5340 fi 5341 echo "$as_me:$LINENO: result: $ac_cv_lib_SDL_main" >&5 5342 echo "${ECHO_T}$ac_cv_lib_SDL_main" >&6 5343 if test $ac_cv_lib_SDL_main = yes; then 5344 FOUND_SDL=yes 5345 fi 5346 5347 if test "$FOUND_SDL" = "yes" ; then 5348 LIBS="$LIBS -lSDL" 5349 else 5350 echo "------------------" 5351 echo "SDL library not found." 5352 echo "please install the SDL library, which can be found at http://www.libsdl.org" 5353 echo "------------------" 5354 exit -1 5355 fi 5356 5357 # FIXME: Replace `main' with a function in `-lOSMesa': 5358 5359 echo "$as_me:$LINENO: checking for main in -lOSMesa" >&5 5360 echo $ECHO_N "checking for main in -lOSMesa... $ECHO_C" >&6 5361 if test "${ac_cv_lib_OSMesa_main+set}" = set; then 5362 echo $ECHO_N "(cached) $ECHO_C" >&6 5363 else 5364 ac_check_lib_save_LIBS=$LIBS 5365 LIBS="-lOSMesa $LIBS" 5366 cat >conftest.$ac_ext <<_ACEOF 5367 /* confdefs.h. */ 5368 _ACEOF 5369 cat confdefs.h >>conftest.$ac_ext 5370 cat >>conftest.$ac_ext <<_ACEOF 5371 /* end confdefs.h. */ 5372 5373 5374 int 5375 main () 5376 { 5377 main (); 5378 ; 5379 return 0; 5380 } 5381 _ACEOF 5382 rm -f conftest.$ac_objext conftest$ac_exeext 5383 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5384 (eval $ac_link) 2>conftest.er1 5385 ac_status=$? 5386 grep -v '^ *+' conftest.er1 >conftest.err 5387 rm -f conftest.er1 5388 cat conftest.err >&5 5389 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5390 (exit $ac_status); } && 5391 { ac_try='test -z "$ac_c_werror_flag" 5392 || test ! -s conftest.err' 5393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5394 (eval $ac_try) 2>&5 5395 ac_status=$? 5396 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5397 (exit $ac_status); }; } && 5398 { ac_try='test -s conftest$ac_exeext' 5399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5400 (eval $ac_try) 2>&5 5401 ac_status=$? 5402 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5403 (exit $ac_status); }; }; then 5404 ac_cv_lib_OSMesa_main=yes 5405 else 5406 echo "$as_me: failed program was:" >&5 5407 sed 's/^/| /' conftest.$ac_ext >&5 5408 5409 ac_cv_lib_OSMesa_main=no 5410 fi 5411 rm -f conftest.err conftest.$ac_objext \ 5412 conftest$ac_exeext conftest.$ac_ext 5413 LIBS=$ac_check_lib_save_LIBS 5414 fi 5415 echo "$as_me:$LINENO: result: $ac_cv_lib_OSMesa_main" >&5 5416 echo "${ECHO_T}$ac_cv_lib_OSMesa_main" >&6 5417 if test $ac_cv_lib_OSMesa_main = yes; then 5418 cat >>confdefs.h <<_ACEOF 5419 #define HAVE_LIBOSMESA 1 5420 _ACEOF 5421 5422 LIBS="-lOSMesa $LIBS" 5423 5424 fi 5425 5426 # FIXME: Replace `main' with a function in `-lX11': 5427 5428 echo "$as_me:$LINENO: checking for main in -lX11" >&5 5429 echo $ECHO_N "checking for main in -lX11... $ECHO_C" >&6 5430 if test "${ac_cv_lib_X11_main+set}" = set; then 5431 echo $ECHO_N "(cached) $ECHO_C" >&6 5432 else 5433 ac_check_lib_save_LIBS=$LIBS 5434 LIBS="-lX11 $LIBS" 5435 cat >conftest.$ac_ext <<_ACEOF 5436 /* confdefs.h. */ 5437 _ACEOF 5438 cat confdefs.h >>conftest.$ac_ext 5439 cat >>conftest.$ac_ext <<_ACEOF 5440 /* end confdefs.h. */ 5441 5442 5443 int 5444 main () 5445 { 5446 main (); 5447 ; 5448 return 0; 5449 } 5450 _ACEOF 5451 rm -f conftest.$ac_objext conftest$ac_exeext 5452 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5453 (eval $ac_link) 2>conftest.er1 5454 ac_status=$? 5455 grep -v '^ *+' conftest.er1 >conftest.err 5456 rm -f conftest.er1 5457 cat conftest.err >&5 5458 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5459 (exit $ac_status); } && 5460 { ac_try='test -z "$ac_c_werror_flag" 5461 || test ! -s conftest.err' 5462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5463 (eval $ac_try) 2>&5 5464 ac_status=$? 5465 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5466 (exit $ac_status); }; } && 5467 { ac_try='test -s conftest$ac_exeext' 5468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5469 (eval $ac_try) 2>&5 5470 ac_status=$? 5471 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5472 (exit $ac_status); }; }; then 5473 ac_cv_lib_X11_main=yes 5474 else 5475 echo "$as_me: failed program was:" >&5 5476 sed 's/^/| /' conftest.$ac_ext >&5 5477 5478 ac_cv_lib_X11_main=no 5479 fi 5480 rm -f conftest.err conftest.$ac_objext \ 5481 conftest$ac_exeext conftest.$ac_ext 5482 LIBS=$ac_check_lib_save_LIBS 5483 fi 5484 echo "$as_me:$LINENO: result: $ac_cv_lib_X11_main" >&5 5485 echo "${ECHO_T}$ac_cv_lib_X11_main" >&6 5486 if test $ac_cv_lib_X11_main = yes; then 5487 cat >>confdefs.h <<_ACEOF 5488 #define HAVE_LIBX11 1 5489 _ACEOF 5490 5491 LIBS="-lX11 $LIBS" 5492 5493 fi 5494 5495 # FIXME: Replace `main' with a function in `-lXt': 5496 5497 echo "$as_me:$LINENO: checking for main in -lXt" >&5 5498 echo $ECHO_N "checking for main in -lXt... $ECHO_C" >&6 5499 if test "${ac_cv_lib_Xt_main+set}" = set; then 5500 echo $ECHO_N "(cached) $ECHO_C" >&6 5501 else 5502 ac_check_lib_save_LIBS=$LIBS 5503 LIBS="-lXt $LIBS" 5504 cat >conftest.$ac_ext <<_ACEOF 5505 /* confdefs.h. */ 5506 _ACEOF 5507 cat confdefs.h >>conftest.$ac_ext 5508 cat >>conftest.$ac_ext <<_ACEOF 5509 /* end confdefs.h. */ 5510 5511 5512 int 5513 main () 5514 { 5515 main (); 5516 ; 5517 return 0; 5518 } 5519 _ACEOF 5520 rm -f conftest.$ac_objext conftest$ac_exeext 5521 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5522 (eval $ac_link) 2>conftest.er1 5523 ac_status=$? 5524 grep -v '^ *+' conftest.er1 >conftest.err 5525 rm -f conftest.er1 5526 cat conftest.err >&5 5527 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5528 (exit $ac_status); } && 5529 { ac_try='test -z "$ac_c_werror_flag" 5530 || test ! -s conftest.err' 5531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5532 (eval $ac_try) 2>&5 5533 ac_status=$? 5534 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5535 (exit $ac_status); }; } && 5536 { ac_try='test -s conftest$ac_exeext' 5537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5538 (eval $ac_try) 2>&5 5539 ac_status=$? 5540 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5541 (exit $ac_status); }; }; then 5542 ac_cv_lib_Xt_main=yes 5543 else 5544 echo "$as_me: failed program was:" >&5 5545 sed 's/^/| /' conftest.$ac_ext >&5 5546 5547 ac_cv_lib_Xt_main=no 5548 fi 5549 rm -f conftest.err conftest.$ac_objext \ 5550 conftest$ac_exeext conftest.$ac_ext 5551 LIBS=$ac_check_lib_save_LIBS 5552 fi 5553 echo "$as_me:$LINENO: result: $ac_cv_lib_Xt_main" >&5 5554 echo "${ECHO_T}$ac_cv_lib_Xt_main" >&6 5555 if test $ac_cv_lib_Xt_main = yes; then 5556 cat >>confdefs.h <<_ACEOF 5557 #define HAVE_LIBXT 1 5558 _ACEOF 5559 5560 LIBS="-lXt $LIBS" 5561 5562 fi 5563 5564 ;; 5565 5566 ### OS X ### 5567 *Darwin*) 5568 echo "OS X detected" 5569 5570 osX="yes" 5571 5572 # checking gl header 5573 5574 for ac_header in OpenGL/gl.h 5686 # cheking for GLU-header 5687 5688 for ac_header in OpenGL/glu.h 5575 5689 do 5576 5690 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` … … 5725 5839 done 5726 5840 5727 # cheking for GLU-header 5728 5729 for ac_header in OpenGL/glu.h 5841 5842 LIBS="$LIBS -framework OpenGL" 5843 5844 # checking for SDL-headers 5845 5846 for ac_header in SDL/SDL.h 5730 5847 do 5731 5848 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` … … 5873 5990 5874 5991 else 5875 { { echo "$as_me:$LINENO: error: cannot find openglheaders" >&55876 echo "$as_me: error: cannot find openglheaders" >&2;}5992 { { echo "$as_me:$LINENO: error: cannot find SDL headers" >&5 5993 echo "$as_me: error: cannot find SDL headers" >&2;} 5877 5994 { (exit 1); exit 1; }; } 5878 5995 fi … … 5881 5998 5882 5999 5883 LIBS="$LIBS -framework OpenGL" 5884 5885 # checking for SDL-headers 5886 5887 for ac_header in SDL/SDL.h 6000 ## checking for SDL 6001 SDL_VERSION=1.2.7 6002 6003 # Check whether --with-sdl-prefix or --without-sdl-prefix was given. 6004 if test "${with_sdl_prefix+set}" = set; then 6005 withval="$with_sdl_prefix" 6006 sdl_prefix="$withval" 6007 else 6008 sdl_prefix="" 6009 fi; 6010 6011 # Check whether --with-sdl-exec-prefix or --without-sdl-exec-prefix was given. 6012 if test "${with_sdl_exec_prefix+set}" = set; then 6013 withval="$with_sdl_exec_prefix" 6014 sdl_exec_prefix="$withval" 6015 else 6016 sdl_exec_prefix="" 6017 fi; 6018 # Check whether --enable-sdltest or --disable-sdltest was given. 6019 if test "${enable_sdltest+set}" = set; then 6020 enableval="$enable_sdltest" 6021 6022 else 6023 enable_sdltest=yes 6024 fi; 6025 6026 if test x$sdl_exec_prefix != x ; then 6027 sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix" 6028 if test x${SDL_CONFIG+set} != xset ; then 6029 SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config 6030 fi 6031 fi 6032 if test x$sdl_prefix != x ; then 6033 sdl_args="$sdl_args --prefix=$sdl_prefix" 6034 if test x${SDL_CONFIG+set} != xset ; then 6035 SDL_CONFIG=$sdl_prefix/bin/sdl-config 6036 fi 6037 fi 6038 6039 6040 PATH="$prefix/bin:$prefix/usr/bin:$PATH" 6041 # Extract the first word of "sdl-config", so it can be a program name with args. 6042 set dummy sdl-config; ac_word=$2 6043 echo "$as_me:$LINENO: checking for $ac_word" >&5 6044 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 6045 if test "${ac_cv_path_SDL_CONFIG+set}" = set; then 6046 echo $ECHO_N "(cached) $ECHO_C" >&6 6047 else 6048 case $SDL_CONFIG in 6049 [\\/]* | ?:[\\/]*) 6050 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path. 6051 ;; 6052 *) 6053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6054 for as_dir in $PATH 6055 do 6056 IFS=$as_save_IFS 6057 test -z "$as_dir" && as_dir=. 6058 for ac_exec_ext in '' $ac_executable_extensions; do 6059 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6060 ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext" 6061 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6062 break 2 6063 fi 6064 done 6065 done 6066 6067 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no" 6068 ;; 6069 esac 6070 fi 6071 SDL_CONFIG=$ac_cv_path_SDL_CONFIG 6072 6073 if test -n "$SDL_CONFIG"; then 6074 echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5 6075 echo "${ECHO_T}$SDL_CONFIG" >&6 6076 else 6077 echo "$as_me:$LINENO: result: no" >&5 6078 echo "${ECHO_T}no" >&6 6079 fi 6080 6081 min_sdl_version=$SDL_VERSION 6082 echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5 6083 echo $ECHO_N "checking for SDL - version >= $min_sdl_version... $ECHO_C" >&6 6084 no_sdl="" 6085 if test "$SDL_CONFIG" = "no" ; then 6086 no_sdl=yes 6087 else 6088 SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags` 6089 SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs` 6090 6091 sdl_major_version=`$SDL_CONFIG $sdl_args --version | \ 6092 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` 6093 sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \ 6094 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` 6095 sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \ 6096 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` 6097 if test "x$enable_sdltest" = "xyes" ; then 6098 ac_save_CFLAGS="$CFLAGS" 6099 ac_save_LIBS="$LIBS" 6100 CFLAGS="$CFLAGS $SDL_CFLAGS" 6101 LIBS="$LIBS $SDL_LIBS" 6102 rm -f conf.sdltest 6103 if test "$cross_compiling" = yes; then 6104 echo $ac_n "cross compiling; assumed OK... $ac_c" 6105 else 6106 cat >conftest.$ac_ext <<_ACEOF 6107 /* confdefs.h. */ 6108 _ACEOF 6109 cat confdefs.h >>conftest.$ac_ext 6110 cat >>conftest.$ac_ext <<_ACEOF 6111 /* end confdefs.h. */ 6112 6113 #include <stdio.h> 6114 #include <stdlib.h> 6115 #include <string.h> 6116 #include "SDL.h" 6117 6118 char* 6119 my_strdup (char *str) 6120 { 6121 char *new_str; 6122 6123 if (str) 6124 { 6125 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char)); 6126 strcpy (new_str, str); 6127 } 6128 else 6129 new_str = NULL; 6130 6131 return new_str; 6132 } 6133 6134 int main (int argc, char *argv[]) 6135 { 6136 int major, minor, micro; 6137 char *tmp_version; 6138 6139 /* This hangs on some systems (?) 6140 system ("touch conf.sdltest"); 6141 */ 6142 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); } 6143 6144 /* HP/UX 9 (%@#!) writes to sscanf strings */ 6145 tmp_version = my_strdup("$min_sdl_version"); 6146 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { 6147 printf("%s, bad version string\n", "$min_sdl_version"); 6148 exit(1); 6149 } 6150 6151 if (($sdl_major_version > major) || 6152 (($sdl_major_version == major) && ($sdl_minor_version > minor)) || 6153 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro))) 6154 { 6155 return 0; 6156 } 6157 else 6158 { 6159 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version); 6160 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro); 6161 printf("*** best to upgrade to the required version.\n"); 6162 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n"); 6163 printf("*** to point to the correct copy of sdl-config, and remove the file\n"); 6164 printf("*** config.cache before re-running configure\n"); 6165 return 1; 6166 } 6167 } 6168 6169 6170 _ACEOF 6171 rm -f conftest$ac_exeext 6172 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6173 (eval $ac_link) 2>&5 6174 ac_status=$? 6175 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6176 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 6177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6178 (eval $ac_try) 2>&5 6179 ac_status=$? 6180 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6181 (exit $ac_status); }; }; then 6182 : 6183 else 6184 echo "$as_me: program exited with status $ac_status" >&5 6185 echo "$as_me: failed program was:" >&5 6186 sed 's/^/| /' conftest.$ac_ext >&5 6187 6188 ( exit $ac_status ) 6189 no_sdl=yes 6190 fi 6191 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 6192 fi 6193 CFLAGS="$ac_save_CFLAGS" 6194 LIBS="$ac_save_LIBS" 6195 fi 6196 fi 6197 if test "x$no_sdl" = x ; then 6198 echo "$as_me:$LINENO: result: yes" >&5 6199 echo "${ECHO_T}yes" >&6 6200 : 6201 else 6202 echo "$as_me:$LINENO: result: no" >&5 6203 echo "${ECHO_T}no" >&6 6204 if test "$SDL_CONFIG" = "no" ; then 6205 echo "*** The sdl-config script installed by SDL could not be found" 6206 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in" 6207 echo "*** your path, or set the SDL_CONFIG environment variable to the" 6208 echo "*** full path to sdl-config." 6209 else 6210 if test -f conf.sdltest ; then 6211 : 6212 else 6213 echo "*** Could not run SDL test program, checking why..." 6214 CFLAGS="$CFLAGS $SDL_CFLAGS" 6215 LIBS="$LIBS $SDL_LIBS" 6216 cat >conftest.$ac_ext <<_ACEOF 6217 /* confdefs.h. */ 6218 _ACEOF 6219 cat confdefs.h >>conftest.$ac_ext 6220 cat >>conftest.$ac_ext <<_ACEOF 6221 /* end confdefs.h. */ 6222 6223 #include <stdio.h> 6224 #include "SDL.h" 6225 6226 int main(int argc, char *argv[]) 6227 { return 0; } 6228 #undef main 6229 #define main K_and_R_C_main 6230 6231 int 6232 main () 6233 { 6234 return 0; 6235 ; 6236 return 0; 6237 } 6238 _ACEOF 6239 rm -f conftest.$ac_objext conftest$ac_exeext 6240 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6241 (eval $ac_link) 2>conftest.er1 6242 ac_status=$? 6243 grep -v '^ *+' conftest.er1 >conftest.err 6244 rm -f conftest.er1 6245 cat conftest.err >&5 6246 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6247 (exit $ac_status); } && 6248 { ac_try='test -z "$ac_c_werror_flag" 6249 || test ! -s conftest.err' 6250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6251 (eval $ac_try) 2>&5 6252 ac_status=$? 6253 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6254 (exit $ac_status); }; } && 6255 { ac_try='test -s conftest$ac_exeext' 6256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6257 (eval $ac_try) 2>&5 6258 ac_status=$? 6259 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6260 (exit $ac_status); }; }; then 6261 echo "*** The test program compiled, but did not run. This usually means" 6262 echo "*** that the run-time linker is not finding SDL or finding the wrong" 6263 echo "*** version of SDL. If it is not finding SDL, you'll need to set your" 6264 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" 6265 echo "*** to the installed location Also, make sure you have run ldconfig if that" 6266 echo "*** is required on your system" 6267 echo "***" 6268 echo "*** If you have an old version installed, it is best to remove it, although" 6269 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" 6270 else 6271 echo "$as_me: failed program was:" >&5 6272 sed 's/^/| /' conftest.$ac_ext >&5 6273 6274 echo "*** The test program failed to compile or link. See the file config.log for the" 6275 echo "*** exact error that occured. This usually means SDL was incorrectly installed" 6276 echo "*** or that you have moved SDL since it was installed. In the latter case, you" 6277 echo "*** may want to edit the sdl-config script: $SDL_CONFIG" 6278 fi 6279 rm -f conftest.err conftest.$ac_objext \ 6280 conftest$ac_exeext conftest.$ac_ext 6281 CFLAGS="$ac_save_CFLAGS" 6282 LIBS="$ac_save_LIBS" 6283 fi 6284 fi 6285 SDL_CFLAGS="" 6286 SDL_LIBS="" 6287 { { echo "$as_me:$LINENO: error: *** SDL version $SDL_VERSION not found!" >&5 6288 echo "$as_me: error: *** SDL version $SDL_VERSION not found!" >&2;} 6289 { (exit 1); exit 1; }; } 6290 6291 fi 6292 6293 6294 rm -f conf.sdltest 6295 6296 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS" 6297 LIBS="$LIBS $SDL_LIBS" 6298 ;; 6299 6300 *) 6301 mingw="no" 6302 ;; 6303 esac 6304 6305 6306 6307 6308 6309 6310 ## checking for GTK 6311 6312 succeeded=no 6313 6314 if test -z "$PKG_CONFIG"; then 6315 # Extract the first word of "pkg-config", so it can be a program name with args. 6316 set dummy pkg-config; ac_word=$2 6317 echo "$as_me:$LINENO: checking for $ac_word" >&5 6318 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 6319 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then 6320 echo $ECHO_N "(cached) $ECHO_C" >&6 6321 else 6322 case $PKG_CONFIG in 6323 [\\/]* | ?:[\\/]*) 6324 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 6325 ;; 6326 *) 6327 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6328 for as_dir in $PATH 6329 do 6330 IFS=$as_save_IFS 6331 test -z "$as_dir" && as_dir=. 6332 for ac_exec_ext in '' $ac_executable_extensions; do 6333 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6334 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 6335 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6336 break 2 6337 fi 6338 done 6339 done 6340 6341 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" 6342 ;; 6343 esac 6344 fi 6345 PKG_CONFIG=$ac_cv_path_PKG_CONFIG 6346 6347 if test -n "$PKG_CONFIG"; then 6348 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 6349 echo "${ECHO_T}$PKG_CONFIG" >&6 6350 else 6351 echo "$as_me:$LINENO: result: no" >&5 6352 echo "${ECHO_T}no" >&6 6353 fi 6354 6355 fi 6356 6357 if test "$PKG_CONFIG" = "no" ; then 6358 echo "*** The pkg-config script could not be found. Make sure it is" 6359 echo "*** in your path, or set the PKG_CONFIG environment variable" 6360 echo "*** to the full path to pkg-config." 6361 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." 6362 else 6363 PKG_CONFIG_MIN_VERSION=0.9.0 6364 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then 6365 echo "$as_me:$LINENO: checking for gtk+-2.0 >= 2.0.3 gthread-2.0 >= 2.0.3" >&5 6366 echo $ECHO_N "checking for gtk+-2.0 >= 2.0.3 gthread-2.0 >= 2.0.3... $ECHO_C" >&6 6367 6368 if $PKG_CONFIG --exists "gtk+-2.0 >= 2.0.3 gthread-2.0 >= 2.0.3" ; then 6369 echo "$as_me:$LINENO: result: yes" >&5 6370 echo "${ECHO_T}yes" >&6 6371 succeeded=yes 6372 6373 echo "$as_me:$LINENO: checking GTK2_CFLAGS" >&5 6374 echo $ECHO_N "checking GTK2_CFLAGS... $ECHO_C" >&6 6375 GTK2_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0 >= 2.0.3 gthread-2.0 >= 2.0.3"` 6376 echo "$as_me:$LINENO: result: $GTK2_CFLAGS" >&5 6377 echo "${ECHO_T}$GTK2_CFLAGS" >&6 6378 6379 echo "$as_me:$LINENO: checking GTK2_LIBS" >&5 6380 echo $ECHO_N "checking GTK2_LIBS... $ECHO_C" >&6 6381 GTK2_LIBS=`$PKG_CONFIG --libs "gtk+-2.0 >= 2.0.3 gthread-2.0 >= 2.0.3"` 6382 echo "$as_me:$LINENO: result: $GTK2_LIBS" >&5 6383 echo "${ECHO_T}$GTK2_LIBS" >&6 6384 else 6385 GTK2_CFLAGS="" 6386 GTK2_LIBS="" 6387 ## If we have a custom action on failure, don't print errors, but 6388 ## do set a variable so people can do so. 6389 GTK2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk+-2.0 >= 2.0.3 gthread-2.0 >= 2.0.3"` 6390 6391 fi 6392 6393 6394 6395 else 6396 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." 6397 echo "*** See http://www.freedesktop.org/software/pkgconfig" 6398 fi 6399 fi 6400 6401 if test $succeeded = yes; then 6402 have_gtk2=yes 6403 else 6404 have_gtk2=no 6405 fi 6406 6407 6408 6409 6410 6411 if test "x$have_gtk2" = xyes; then 6412 HAVE_GTK2_TRUE= 6413 HAVE_GTK2_FALSE='#' 6414 else 6415 HAVE_GTK2_TRUE='#' 6416 HAVE_GTK2_FALSE= 6417 fi 6418 6419 6420 6421 #checking for pthread libs 6422 echo "$as_me:$LINENO: checking for main in -lpthread" >&5 6423 echo $ECHO_N "checking for main in -lpthread... $ECHO_C" >&6 6424 if test "${ac_cv_lib_pthread_main+set}" = set; then 6425 echo $ECHO_N "(cached) $ECHO_C" >&6 6426 else 6427 ac_check_lib_save_LIBS=$LIBS 6428 LIBS="-lpthread $LIBS" 6429 cat >conftest.$ac_ext <<_ACEOF 6430 /* confdefs.h. */ 6431 _ACEOF 6432 cat confdefs.h >>conftest.$ac_ext 6433 cat >>conftest.$ac_ext <<_ACEOF 6434 /* end confdefs.h. */ 6435 6436 6437 int 6438 main () 6439 { 6440 main (); 6441 ; 6442 return 0; 6443 } 6444 _ACEOF 6445 rm -f conftest.$ac_objext conftest$ac_exeext 6446 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6447 (eval $ac_link) 2>conftest.er1 6448 ac_status=$? 6449 grep -v '^ *+' conftest.er1 >conftest.err 6450 rm -f conftest.er1 6451 cat conftest.err >&5 6452 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6453 (exit $ac_status); } && 6454 { ac_try='test -z "$ac_c_werror_flag" 6455 || test ! -s conftest.err' 6456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6457 (eval $ac_try) 2>&5 6458 ac_status=$? 6459 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6460 (exit $ac_status); }; } && 6461 { ac_try='test -s conftest$ac_exeext' 6462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6463 (eval $ac_try) 2>&5 6464 ac_status=$? 6465 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6466 (exit $ac_status); }; }; then 6467 ac_cv_lib_pthread_main=yes 6468 else 6469 echo "$as_me: failed program was:" >&5 6470 sed 's/^/| /' conftest.$ac_ext >&5 6471 6472 ac_cv_lib_pthread_main=no 6473 fi 6474 rm -f conftest.err conftest.$ac_objext \ 6475 conftest$ac_exeext conftest.$ac_ext 6476 LIBS=$ac_check_lib_save_LIBS 6477 fi 6478 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_main" >&5 6479 echo "${ECHO_T}$ac_cv_lib_pthread_main" >&6 6480 if test $ac_cv_lib_pthread_main = yes; then 6481 FOUND_pthread=yes 6482 fi 6483 6484 if test "$FOUND_pthread" = "yes" ; then 6485 LIBS="$LIBS -lpthread" 6486 fi 6487 6488 6489 # FIXME: Replace `main' with a function in `-lm': 6490 6491 echo "$as_me:$LINENO: checking for main in -lm" >&5 6492 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6 6493 if test "${ac_cv_lib_m_main+set}" = set; then 6494 echo $ECHO_N "(cached) $ECHO_C" >&6 6495 else 6496 ac_check_lib_save_LIBS=$LIBS 6497 LIBS="-lm $LIBS" 6498 cat >conftest.$ac_ext <<_ACEOF 6499 /* confdefs.h. */ 6500 _ACEOF 6501 cat confdefs.h >>conftest.$ac_ext 6502 cat >>conftest.$ac_ext <<_ACEOF 6503 /* end confdefs.h. */ 6504 6505 6506 int 6507 main () 6508 { 6509 main (); 6510 ; 6511 return 0; 6512 } 6513 _ACEOF 6514 rm -f conftest.$ac_objext conftest$ac_exeext 6515 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6516 (eval $ac_link) 2>conftest.er1 6517 ac_status=$? 6518 grep -v '^ *+' conftest.er1 >conftest.err 6519 rm -f conftest.er1 6520 cat conftest.err >&5 6521 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6522 (exit $ac_status); } && 6523 { ac_try='test -z "$ac_c_werror_flag" 6524 || test ! -s conftest.err' 6525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6526 (eval $ac_try) 2>&5 6527 ac_status=$? 6528 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6529 (exit $ac_status); }; } && 6530 { ac_try='test -s conftest$ac_exeext' 6531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6532 (eval $ac_try) 2>&5 6533 ac_status=$? 6534 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6535 (exit $ac_status); }; }; then 6536 ac_cv_lib_m_main=yes 6537 else 6538 echo "$as_me: failed program was:" >&5 6539 sed 's/^/| /' conftest.$ac_ext >&5 6540 6541 ac_cv_lib_m_main=no 6542 fi 6543 rm -f conftest.err conftest.$ac_objext \ 6544 conftest$ac_exeext conftest.$ac_ext 6545 LIBS=$ac_check_lib_save_LIBS 6546 fi 6547 echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5 6548 echo "${ECHO_T}$ac_cv_lib_m_main" >&6 6549 if test $ac_cv_lib_m_main = yes; then 6550 cat >>confdefs.h <<_ACEOF 6551 #define HAVE_LIBM 1 6552 _ACEOF 6553 6554 LIBS="-lm $LIBS" 6555 6556 fi 6557 6558 6559 6560 # Checks for header files. 6561 echo "$as_me:$LINENO: checking for ANSI C header files" >&5 6562 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 6563 if test "${ac_cv_header_stdc+set}" = set; then 6564 echo $ECHO_N "(cached) $ECHO_C" >&6 6565 else 6566 cat >conftest.$ac_ext <<_ACEOF 6567 /* confdefs.h. */ 6568 _ACEOF 6569 cat confdefs.h >>conftest.$ac_ext 6570 cat >>conftest.$ac_ext <<_ACEOF 6571 /* end confdefs.h. */ 6572 #include <stdlib.h> 6573 #include <stdarg.h> 6574 #include <string.h> 6575 #include <float.h> 6576 6577 int 6578 main () 6579 { 6580 6581 ; 6582 return 0; 6583 } 6584 _ACEOF 6585 rm -f conftest.$ac_objext 6586 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6587 (eval $ac_compile) 2>conftest.er1 6588 ac_status=$? 6589 grep -v '^ *+' conftest.er1 >conftest.err 6590 rm -f conftest.er1 6591 cat conftest.err >&5 6592 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6593 (exit $ac_status); } && 6594 { ac_try='test -z "$ac_c_werror_flag" 6595 || test ! -s conftest.err' 6596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6597 (eval $ac_try) 2>&5 6598 ac_status=$? 6599 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6600 (exit $ac_status); }; } && 6601 { ac_try='test -s conftest.$ac_objext' 6602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6603 (eval $ac_try) 2>&5 6604 ac_status=$? 6605 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6606 (exit $ac_status); }; }; then 6607 ac_cv_header_stdc=yes 6608 else 6609 echo "$as_me: failed program was:" >&5 6610 sed 's/^/| /' conftest.$ac_ext >&5 6611 6612 ac_cv_header_stdc=no 6613 fi 6614 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 6615 6616 if test $ac_cv_header_stdc = yes; then 6617 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 6618 cat >conftest.$ac_ext <<_ACEOF 6619 /* confdefs.h. */ 6620 _ACEOF 6621 cat confdefs.h >>conftest.$ac_ext 6622 cat >>conftest.$ac_ext <<_ACEOF 6623 /* end confdefs.h. */ 6624 #include <string.h> 6625 6626 _ACEOF 6627 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6628 $EGREP "memchr" >/dev/null 2>&1; then 6629 : 6630 else 6631 ac_cv_header_stdc=no 6632 fi 6633 rm -f conftest* 6634 6635 fi 6636 6637 if test $ac_cv_header_stdc = yes; then 6638 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 6639 cat >conftest.$ac_ext <<_ACEOF 6640 /* confdefs.h. */ 6641 _ACEOF 6642 cat confdefs.h >>conftest.$ac_ext 6643 cat >>conftest.$ac_ext <<_ACEOF 6644 /* end confdefs.h. */ 6645 #include <stdlib.h> 6646 6647 _ACEOF 6648 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6649 $EGREP "free" >/dev/null 2>&1; then 6650 : 6651 else 6652 ac_cv_header_stdc=no 6653 fi 6654 rm -f conftest* 6655 6656 fi 6657 6658 if test $ac_cv_header_stdc = yes; then 6659 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 6660 if test "$cross_compiling" = yes; then 6661 : 6662 else 6663 cat >conftest.$ac_ext <<_ACEOF 6664 /* confdefs.h. */ 6665 _ACEOF 6666 cat confdefs.h >>conftest.$ac_ext 6667 cat >>conftest.$ac_ext <<_ACEOF 6668 /* end confdefs.h. */ 6669 #include <ctype.h> 6670 #if ((' ' & 0x0FF) == 0x020) 6671 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 6672 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 6673 #else 6674 # define ISLOWER(c) \ 6675 (('a' <= (c) && (c) <= 'i') \ 6676 || ('j' <= (c) && (c) <= 'r') \ 6677 || ('s' <= (c) && (c) <= 'z')) 6678 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 6679 #endif 6680 6681 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 6682 int 6683 main () 6684 { 6685 int i; 6686 for (i = 0; i < 256; i++) 6687 if (XOR (islower (i), ISLOWER (i)) 6688 || toupper (i) != TOUPPER (i)) 6689 exit(2); 6690 exit (0); 6691 } 6692 _ACEOF 6693 rm -f conftest$ac_exeext 6694 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6695 (eval $ac_link) 2>&5 6696 ac_status=$? 6697 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6698 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 6699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6700 (eval $ac_try) 2>&5 6701 ac_status=$? 6702 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6703 (exit $ac_status); }; }; then 6704 : 6705 else 6706 echo "$as_me: program exited with status $ac_status" >&5 6707 echo "$as_me: failed program was:" >&5 6708 sed 's/^/| /' conftest.$ac_ext >&5 6709 6710 ( exit $ac_status ) 6711 ac_cv_header_stdc=no 6712 fi 6713 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 6714 fi 6715 fi 6716 fi 6717 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 6718 echo "${ECHO_T}$ac_cv_header_stdc" >&6 6719 if test $ac_cv_header_stdc = yes; then 6720 6721 cat >>confdefs.h <<\_ACEOF 6722 #define STDC_HEADERS 1 6723 _ACEOF 6724 6725 fi 6726 6727 6728 6729 for ac_header in stdlib.h string.h 5888 6730 do 5889 6731 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` … … 6030 6872 _ACEOF 6031 6873 6032 else6033 { { echo "$as_me:$LINENO: error: cannot find SDL headers" >&56034 echo "$as_me: error: cannot find SDL headers" >&2;}6035 { (exit 1); exit 1; }; }6036 6874 fi 6037 6875 … … 6039 6877 6040 6878 6041 LIBS="$LIBS -L/sw/lib -lSDLmain -lSDL -framework Cocoa" 6042 6043 ;; 6044 6045 *) 6046 mingw="no" 6047 ;; 6048 esac 6049 6050 6051 6052 6053 6054 #checking for pthread libs 6055 echo "$as_me:$LINENO: checking for main in -lpthread" >&5 6056 echo $ECHO_N "checking for main in -lpthread... $ECHO_C" >&6 6057 if test "${ac_cv_lib_pthread_main+set}" = set; then 6879 # Checks for typedefs, structures, and compiler characteristics. 6880 echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5 6881 echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6 6882 if test "${ac_cv_header_stdbool_h+set}" = set; then 6058 6883 echo $ECHO_N "(cached) $ECHO_C" >&6 6059 6884 else 6060 ac_check_lib_save_LIBS=$LIBS 6061 LIBS="-lpthread $LIBS" 6062 cat >conftest.$ac_ext <<_ACEOF 6885 cat >conftest.$ac_ext <<_ACEOF 6063 6886 /* confdefs.h. */ 6064 6887 _ACEOF … … 6067 6890 /* end confdefs.h. */ 6068 6891 6892 #include <stdbool.h> 6893 #ifndef bool 6894 # error bool is not defined 6895 #endif 6896 #ifndef false 6897 # error false is not defined 6898 #endif 6899 #if false 6900 # error false is not 0 6901 #endif 6902 #ifndef true 6903 # error true is not defined 6904 #endif 6905 #if true != 1 6906 # error true is not 1 6907 #endif 6908 #ifndef __bool_true_false_are_defined 6909 # error __bool_true_false_are_defined is not defined 6910 #endif 6911 6912 struct s { _Bool s: 1; _Bool t; } s; 6913 6914 char a[true == 1 ? 1 : -1]; 6915 char b[false == 0 ? 1 : -1]; 6916 char c[__bool_true_false_are_defined == 1 ? 1 : -1]; 6917 char d[(bool) -0.5 == true ? 1 : -1]; 6918 bool e = &s; 6919 char f[(_Bool) -0.0 == false ? 1 : -1]; 6920 char g[true]; 6921 char h[sizeof (_Bool)]; 6922 char i[sizeof s.t]; 6069 6923 6070 6924 int 6071 6925 main () 6072 6926 { 6073 main ();6927 return !a + !b + !c + !d + !e + !f + !g + !h + !i; 6074 6928 ; 6075 6929 return 0; 6076 6930 } 6077 6931 _ACEOF 6078 rm -f conftest.$ac_objext conftest$ac_exeext6079 if { (eval echo "$as_me:$LINENO: \"$ac_ link\"") >&56080 (eval $ac_ link) 2>conftest.er16932 rm -f conftest.$ac_objext 6933 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6934 (eval $ac_compile) 2>conftest.er1 6081 6935 ac_status=$? 6082 6936 grep -v '^ *+' conftest.er1 >conftest.err … … 6092 6946 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6093 6947 (exit $ac_status); }; } && 6094 { ac_try='test -s conftest $ac_exeext'6948 { ac_try='test -s conftest.$ac_objext' 6095 6949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6096 6950 (eval $ac_try) 2>&5 … … 6098 6952 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6099 6953 (exit $ac_status); }; }; then 6100 ac_cv_ lib_pthread_main=yes6954 ac_cv_header_stdbool_h=yes 6101 6955 else 6102 6956 echo "$as_me: failed program was:" >&5 6103 6957 sed 's/^/| /' conftest.$ac_ext >&5 6104 6958 6105 ac_cv_lib_pthread_main=no 6106 fi 6107 rm -f conftest.err conftest.$ac_objext \ 6108 conftest$ac_exeext conftest.$ac_ext 6109 LIBS=$ac_check_lib_save_LIBS 6110 fi 6111 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_main" >&5 6112 echo "${ECHO_T}$ac_cv_lib_pthread_main" >&6 6113 if test $ac_cv_lib_pthread_main = yes; then 6114 FOUND_pthread=yes 6115 fi 6116 6117 if test "$FOUND_pthread" = "yes" ; then 6118 LIBS="$LIBS -lpthread" 6119 fi 6120 6121 6122 6123 6124 # FIXME: Replace `main' with a function in `-lm': 6125 6126 echo "$as_me:$LINENO: checking for main in -lm" >&5 6127 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6 6128 if test "${ac_cv_lib_m_main+set}" = set; then 6959 ac_cv_header_stdbool_h=no 6960 fi 6961 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 6962 fi 6963 echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5 6964 echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6 6965 echo "$as_me:$LINENO: checking for _Bool" >&5 6966 echo $ECHO_N "checking for _Bool... $ECHO_C" >&6 6967 if test "${ac_cv_type__Bool+set}" = set; then 6129 6968 echo $ECHO_N "(cached) $ECHO_C" >&6 6130 6969 else 6131 ac_check_lib_save_LIBS=$LIBS 6132 LIBS="-lm $LIBS" 6133 cat >conftest.$ac_ext <<_ACEOF 6970 cat >conftest.$ac_ext <<_ACEOF 6134 6971 /* confdefs.h. */ 6135 6972 _ACEOF … … 6137 6974 cat >>conftest.$ac_ext <<_ACEOF 6138 6975 /* end confdefs.h. */ 6139 6140 6976 $ac_includes_default 6141 6977 int 6142 6978 main () 6143 6979 { 6144 main (); 6980 if ((_Bool *) 0) 6981 return 0; 6982 if (sizeof (_Bool)) 6983 return 0; 6145 6984 ; 6146 6985 return 0; 6147 6986 } 6148 6987 _ACEOF 6149 rm -f conftest.$ac_objext conftest$ac_exeext6150 if { (eval echo "$as_me:$LINENO: \"$ac_ link\"") >&56151 (eval $ac_ link) 2>conftest.er16988 rm -f conftest.$ac_objext 6989 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6990 (eval $ac_compile) 2>conftest.er1 6152 6991 ac_status=$? 6153 6992 grep -v '^ *+' conftest.er1 >conftest.err … … 6163 7002 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6164 7003 (exit $ac_status); }; } && 6165 { ac_try='test -s conftest$ac_exeext'6166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&56167 (eval $ac_try) 2>&56168 ac_status=$?6169 echo "$as_me:$LINENO: \$? = $ac_status" >&56170 (exit $ac_status); }; }; then6171 ac_cv_lib_m_main=yes6172 else6173 echo "$as_me: failed program was:" >&56174 sed 's/^/| /' conftest.$ac_ext >&56175 6176 ac_cv_lib_m_main=no6177 fi6178 rm -f conftest.err conftest.$ac_objext \6179 conftest$ac_exeext conftest.$ac_ext6180 LIBS=$ac_check_lib_save_LIBS6181 fi6182 echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&56183 echo "${ECHO_T}$ac_cv_lib_m_main" >&66184 if test $ac_cv_lib_m_main = yes; then6185 cat >>confdefs.h <<_ACEOF6186 #define HAVE_LIBM 16187 _ACEOF6188 6189 LIBS="-lm $LIBS"6190 6191 fi6192 6193 6194 LIBS="$LIBS `pkg-config --libs gtk+-2.0`"6195 6196 6197 # Checks for header files.6198 echo "$as_me:$LINENO: checking for ANSI C header files" >&56199 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&66200 if test "${ac_cv_header_stdc+set}" = set; then6201 echo $ECHO_N "(cached) $ECHO_C" >&66202 else6203 cat >conftest.$ac_ext <<_ACEOF6204 /* confdefs.h. */6205 _ACEOF6206 cat confdefs.h >>conftest.$ac_ext6207 cat >>conftest.$ac_ext <<_ACEOF6208 /* end confdefs.h. */6209 #include <stdlib.h>6210 #include <stdarg.h>6211 #include <string.h>6212 #include <float.h>6213 6214 int6215 main ()6216 {6217 6218 ;6219 return 0;6220 }6221 _ACEOF6222 rm -f conftest.$ac_objext6223 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&56224 (eval $ac_compile) 2>conftest.er16225 ac_status=$?6226 grep -v '^ *+' conftest.er1 >conftest.err6227 rm -f conftest.er16228 cat conftest.err >&56229 echo "$as_me:$LINENO: \$? = $ac_status" >&56230 (exit $ac_status); } &&6231 { ac_try='test -z "$ac_c_werror_flag"6232 || test ! -s conftest.err'6233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&56234 (eval $ac_try) 2>&56235 ac_status=$?6236 echo "$as_me:$LINENO: \$? = $ac_status" >&56237 (exit $ac_status); }; } &&6238 7004 { ac_try='test -s conftest.$ac_objext' 6239 7005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 … … 6242 7008 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6243 7009 (exit $ac_status); }; }; then 6244 ac_cv_ header_stdc=yes7010 ac_cv_type__Bool=yes 6245 7011 else 6246 7012 echo "$as_me: failed program was:" >&5 6247 7013 sed 's/^/| /' conftest.$ac_ext >&5 6248 7014 6249 ac_cv_ header_stdc=no7015 ac_cv_type__Bool=no 6250 7016 fi 6251 7017 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 6252 6253 if test $ac_cv_header_stdc = yes; then 6254 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 6255 cat >conftest.$ac_ext <<_ACEOF 6256 /* confdefs.h. */ 6257 _ACEOF 6258 cat confdefs.h >>conftest.$ac_ext 6259 cat >>conftest.$ac_ext <<_ACEOF 6260 /* end confdefs.h. */ 6261 #include <string.h> 6262 6263 _ACEOF 6264 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6265 $EGREP "memchr" >/dev/null 2>&1; then 6266 : 6267 else 6268 ac_cv_header_stdc=no 6269 fi 6270 rm -f conftest* 6271 6272 fi 6273 6274 if test $ac_cv_header_stdc = yes; then 6275 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 6276 cat >conftest.$ac_ext <<_ACEOF 6277 /* confdefs.h. */ 6278 _ACEOF 6279 cat confdefs.h >>conftest.$ac_ext 6280 cat >>conftest.$ac_ext <<_ACEOF 6281 /* end confdefs.h. */ 6282 #include <stdlib.h> 6283 6284 _ACEOF 6285 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6286 $EGREP "free" >/dev/null 2>&1; then 6287 : 6288 else 6289 ac_cv_header_stdc=no 6290 fi 6291 rm -f conftest* 6292 6293 fi 6294 6295 if test $ac_cv_header_stdc = yes; then 6296 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 6297 if test "$cross_compiling" = yes; then 6298 : 6299 else 6300 cat >conftest.$ac_ext <<_ACEOF 6301 /* confdefs.h. */ 6302 _ACEOF 6303 cat confdefs.h >>conftest.$ac_ext 6304 cat >>conftest.$ac_ext <<_ACEOF 6305 /* end confdefs.h. */ 6306 #include <ctype.h> 6307 #if ((' ' & 0x0FF) == 0x020) 6308 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 6309 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 6310 #else 6311 # define ISLOWER(c) \ 6312 (('a' <= (c) && (c) <= 'i') \ 6313 || ('j' <= (c) && (c) <= 'r') \ 6314 || ('s' <= (c) && (c) <= 'z')) 6315 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 6316 #endif 6317 6318 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 6319 int 6320 main () 6321 { 6322 int i; 6323 for (i = 0; i < 256; i++) 6324 if (XOR (islower (i), ISLOWER (i)) 6325 || toupper (i) != TOUPPER (i)) 6326 exit(2); 6327 exit (0); 6328 } 6329 _ACEOF 6330 rm -f conftest$ac_exeext 6331 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6332 (eval $ac_link) 2>&5 6333 ac_status=$? 6334 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6335 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 6336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6337 (eval $ac_try) 2>&5 6338 ac_status=$? 6339 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6340 (exit $ac_status); }; }; then 6341 : 6342 else 6343 echo "$as_me: program exited with status $ac_status" >&5 6344 echo "$as_me: failed program was:" >&5 6345 sed 's/^/| /' conftest.$ac_ext >&5 6346 6347 ( exit $ac_status ) 6348 ac_cv_header_stdc=no 6349 fi 6350 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 6351 fi 6352 fi 6353 fi 6354 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 6355 echo "${ECHO_T}$ac_cv_header_stdc" >&6 6356 if test $ac_cv_header_stdc = yes; then 7018 fi 7019 echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5 7020 echo "${ECHO_T}$ac_cv_type__Bool" >&6 7021 if test $ac_cv_type__Bool = yes; then 7022 7023 cat >>confdefs.h <<_ACEOF 7024 #define HAVE__BOOL 1 7025 _ACEOF 7026 7027 7028 fi 7029 7030 if test $ac_cv_header_stdbool_h = yes; then 6357 7031 6358 7032 cat >>confdefs.h <<\_ACEOF 6359 #define STDC_HEADERS 1 6360 _ACEOF 6361 6362 fi 6363 6364 6365 6366 for ac_header in stdlib.h string.h 7033 #define HAVE_STDBOOL_H 1 7034 _ACEOF 7035 7036 fi 7037 7038 7039 # Checks for library functions. 7040 7041 for ac_header in stdlib.h 6367 7042 do 6368 7043 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` … … 6513 7188 done 6514 7189 6515 6516 # Checks for typedefs, structures, and compiler characteristics.6517 echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&56518 echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&66519 if test "${ac_cv_header_stdbool_h+set}" = set; then6520 echo $ECHO_N "(cached) $ECHO_C" >&66521 else6522 cat >conftest.$ac_ext <<_ACEOF6523 /* confdefs.h. */6524 _ACEOF6525 cat confdefs.h >>conftest.$ac_ext6526 cat >>conftest.$ac_ext <<_ACEOF6527 /* end confdefs.h. */6528 6529 #include <stdbool.h>6530 #ifndef bool6531 # error bool is not defined6532 #endif6533 #ifndef false6534 # error false is not defined6535 #endif6536 #if false6537 # error false is not 06538 #endif6539 #ifndef true6540 # error true is not defined6541 #endif6542 #if true != 16543 # error true is not 16544 #endif6545 #ifndef __bool_true_false_are_defined6546 # error __bool_true_false_are_defined is not defined6547 #endif6548 6549 struct s { _Bool s: 1; _Bool t; } s;6550 6551 char a[true == 1 ? 1 : -1];6552 char b[false == 0 ? 1 : -1];6553 char c[__bool_true_false_are_defined == 1 ? 1 : -1];6554 char d[(bool) -0.5 == true ? 1 : -1];6555 bool e = &s;6556 char f[(_Bool) -0.0 == false ? 1 : -1];6557 char g[true];6558 char h[sizeof (_Bool)];6559 char i[sizeof s.t];6560 6561 int6562 main ()6563 {6564 return !a + !b + !c + !d + !e + !f + !g + !h + !i;6565 ;6566 return 0;6567 }6568 _ACEOF6569 rm -f conftest.$ac_objext6570 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&56571 (eval $ac_compile) 2>conftest.er16572 ac_status=$?6573 grep -v '^ *+' conftest.er1 >conftest.err6574 rm -f conftest.er16575 cat conftest.err >&56576 echo "$as_me:$LINENO: \$? = $ac_status" >&56577 (exit $ac_status); } &&6578 { ac_try='test -z "$ac_c_werror_flag"6579 || test ! -s conftest.err'6580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&56581 (eval $ac_try) 2>&56582 ac_status=$?6583 echo "$as_me:$LINENO: \$? = $ac_status" >&56584 (exit $ac_status); }; } &&6585 { ac_try='test -s conftest.$ac_objext'6586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&56587 (eval $ac_try) 2>&56588 ac_status=$?6589 echo "$as_me:$LINENO: \$? = $ac_status" >&56590 (exit $ac_status); }; }; then6591 ac_cv_header_stdbool_h=yes6592 else6593 echo "$as_me: failed program was:" >&56594 sed 's/^/| /' conftest.$ac_ext >&56595 6596 ac_cv_header_stdbool_h=no6597 fi6598 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext6599 fi6600 echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&56601 echo "${ECHO_T}$ac_cv_header_stdbool_h" >&66602 echo "$as_me:$LINENO: checking for _Bool" >&56603 echo $ECHO_N "checking for _Bool... $ECHO_C" >&66604 if test "${ac_cv_type__Bool+set}" = set; then6605 echo $ECHO_N "(cached) $ECHO_C" >&66606 else6607 cat >conftest.$ac_ext <<_ACEOF6608 /* confdefs.h. */6609 _ACEOF6610 cat confdefs.h >>conftest.$ac_ext6611 cat >>conftest.$ac_ext <<_ACEOF6612 /* end confdefs.h. */6613 $ac_includes_default6614 int6615 main ()6616 {6617 if ((_Bool *) 0)6618 return 0;6619 if (sizeof (_Bool))6620 return 0;6621 ;6622 return 0;6623 }6624 _ACEOF6625 rm -f conftest.$ac_objext6626 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&56627 (eval $ac_compile) 2>conftest.er16628 ac_status=$?6629 grep -v '^ *+' conftest.er1 >conftest.err6630 rm -f conftest.er16631 cat conftest.err >&56632 echo "$as_me:$LINENO: \$? = $ac_status" >&56633 (exit $ac_status); } &&6634 { ac_try='test -z "$ac_c_werror_flag"6635 || test ! -s conftest.err'6636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&56637 (eval $ac_try) 2>&56638 ac_status=$?6639 echo "$as_me:$LINENO: \$? = $ac_status" >&56640 (exit $ac_status); }; } &&6641 { ac_try='test -s conftest.$ac_objext'6642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&56643 (eval $ac_try) 2>&56644 ac_status=$?6645 echo "$as_me:$LINENO: \$? = $ac_status" >&56646 (exit $ac_status); }; }; then6647 ac_cv_type__Bool=yes6648 else6649 echo "$as_me: failed program was:" >&56650 sed 's/^/| /' conftest.$ac_ext >&56651 6652 ac_cv_type__Bool=no6653 fi6654 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext6655 fi6656 echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&56657 echo "${ECHO_T}$ac_cv_type__Bool" >&66658 if test $ac_cv_type__Bool = yes; then6659 6660 cat >>confdefs.h <<_ACEOF6661 #define HAVE__BOOL 16662 _ACEOF6663 6664 6665 fi6666 6667 if test $ac_cv_header_stdbool_h = yes; then6668 6669 cat >>confdefs.h <<\_ACEOF6670 #define HAVE_STDBOOL_H 16671 _ACEOF6672 6673 fi6674 6675 6676 # Checks for library functions.6677 6678 for ac_header in stdlib.h6679 do6680 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`6681 if eval "test \"\${$as_ac_Header+set}\" = set"; then6682 echo "$as_me:$LINENO: checking for $ac_header" >&56683 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&66684 if eval "test \"\${$as_ac_Header+set}\" = set"; then6685 echo $ECHO_N "(cached) $ECHO_C" >&66686 fi6687 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&56688 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&66689 else6690 # Is the header compilable?6691 echo "$as_me:$LINENO: checking $ac_header usability" >&56692 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&66693 cat >conftest.$ac_ext <<_ACEOF6694 /* confdefs.h. */6695 _ACEOF6696 cat confdefs.h >>conftest.$ac_ext6697 cat >>conftest.$ac_ext <<_ACEOF6698 /* end confdefs.h. */6699 $ac_includes_default6700 #include <$ac_header>6701 _ACEOF6702 rm -f conftest.$ac_objext6703 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&56704 (eval $ac_compile) 2>conftest.er16705 ac_status=$?6706 grep -v '^ *+' conftest.er1 >conftest.err6707 rm -f conftest.er16708 cat conftest.err >&56709 echo "$as_me:$LINENO: \$? = $ac_status" >&56710 (exit $ac_status); } &&6711 { ac_try='test -z "$ac_c_werror_flag"6712 || test ! -s conftest.err'6713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&56714 (eval $ac_try) 2>&56715 ac_status=$?6716 echo "$as_me:$LINENO: \$? = $ac_status" >&56717 (exit $ac_status); }; } &&6718 { ac_try='test -s conftest.$ac_objext'6719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&56720 (eval $ac_try) 2>&56721 ac_status=$?6722 echo "$as_me:$LINENO: \$? = $ac_status" >&56723 (exit $ac_status); }; }; then6724 ac_header_compiler=yes6725 else6726 echo "$as_me: failed program was:" >&56727 sed 's/^/| /' conftest.$ac_ext >&56728 6729 ac_header_compiler=no6730 fi6731 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext6732 echo "$as_me:$LINENO: result: $ac_header_compiler" >&56733 echo "${ECHO_T}$ac_header_compiler" >&66734 6735 # Is the header present?6736 echo "$as_me:$LINENO: checking $ac_header presence" >&56737 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&66738 cat >conftest.$ac_ext <<_ACEOF6739 /* confdefs.h. */6740 _ACEOF6741 cat confdefs.h >>conftest.$ac_ext6742 cat >>conftest.$ac_ext <<_ACEOF6743 /* end confdefs.h. */6744 #include <$ac_header>6745 _ACEOF6746 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&56747 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er16748 ac_status=$?6749 grep -v '^ *+' conftest.er1 >conftest.err6750 rm -f conftest.er16751 cat conftest.err >&56752 echo "$as_me:$LINENO: \$? = $ac_status" >&56753 (exit $ac_status); } >/dev/null; then6754 if test -s conftest.err; then6755 ac_cpp_err=$ac_c_preproc_warn_flag6756 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag6757 else6758 ac_cpp_err=6759 fi6760 else6761 ac_cpp_err=yes6762 fi6763 if test -z "$ac_cpp_err"; then6764 ac_header_preproc=yes6765 else6766 echo "$as_me: failed program was:" >&56767 sed 's/^/| /' conftest.$ac_ext >&56768 6769 ac_header_preproc=no6770 fi6771 rm -f conftest.err conftest.$ac_ext6772 echo "$as_me:$LINENO: result: $ac_header_preproc" >&56773 echo "${ECHO_T}$ac_header_preproc" >&66774 6775 # So? What about this header?6776 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in6777 yes:no: )6778 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&56779 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}6780 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&56781 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}6782 ac_header_preproc=yes6783 ;;6784 no:yes:* )6785 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&56786 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}6787 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&56788 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}6789 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&56790 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}6791 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&56792 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}6793 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&56794 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}6795 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&56796 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}6797 (6798 cat <<\_ASBOX6799 ## ------------------------------------------- ##6800 ## Report this to orxonox-dev@mail.datacore.ch ##6801 ## ------------------------------------------- ##6802 _ASBOX6803 ) |6804 sed "s/^/$as_me: WARNING: /" >&26805 ;;6806 esac6807 echo "$as_me:$LINENO: checking for $ac_header" >&56808 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&66809 if eval "test \"\${$as_ac_Header+set}\" = set"; then6810 echo $ECHO_N "(cached) $ECHO_C" >&66811 else6812 eval "$as_ac_Header=\$ac_header_preproc"6813 fi6814 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&56815 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&66816 6817 fi6818 if test `eval echo '${'$as_ac_Header'}'` = yes; then6819 cat >>confdefs.h <<_ACEOF6820 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 16821 _ACEOF6822 6823 fi6824 6825 done6826 6827 7190 echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5 6828 7191 echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6 … … 7121 7484 Usually this means the macro was only invoked conditionally." >&5 7122 7485 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. 7486 Usually this means the macro was only invoked conditionally." >&2;} 7487 { (exit 1); exit 1; }; } 7488 fi 7489 if test -z "${HAVE_GTK2_TRUE}" && test -z "${HAVE_GTK2_FALSE}"; then 7490 { { echo "$as_me:$LINENO: error: conditional \"HAVE_GTK2\" was never defined. 7491 Usually this means the macro was only invoked conditionally." >&5 7492 echo "$as_me: error: conditional \"HAVE_GTK2\" was never defined. 7123 7493 Usually this means the macro was only invoked conditionally." >&2;} 7124 7494 { (exit 1); exit 1; }; } … … 7660 8030 s,@ECHO_T@,$ECHO_T,;t t 7661 8031 s,@LIBS@,$LIBS,;t t 8032 s,@build@,$build,;t t 8033 s,@build_cpu@,$build_cpu,;t t 8034 s,@build_vendor@,$build_vendor,;t t 8035 s,@build_os@,$build_os,;t t 8036 s,@host@,$host,;t t 8037 s,@host_cpu@,$host_cpu,;t t 8038 s,@host_vendor@,$host_vendor,;t t 8039 s,@host_os@,$host_os,;t t 8040 s,@target@,$target,;t t 8041 s,@target_cpu@,$target_cpu,;t t 8042 s,@target_vendor@,$target_vendor,;t t 8043 s,@target_os@,$target_os,;t t 7662 8044 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t 7663 8045 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t … … 7704 8086 s,@CPP@,$CPP,;t t 7705 8087 s,@EGREP@,$EGREP,;t t 8088 s,@SDL_CONFIG@,$SDL_CONFIG,;t t 8089 s,@SDL_CFLAGS@,$SDL_CFLAGS,;t t 8090 s,@SDL_LIBS@,$SDL_LIBS,;t t 7706 8091 s,@MSBITFIELDS@,$MSBITFIELDS,;t t 8092 s,@PKG_CONFIG@,$PKG_CONFIG,;t t 8093 s,@GTK2_CFLAGS@,$GTK2_CFLAGS,;t t 8094 s,@GTK2_LIBS@,$GTK2_LIBS,;t t 8095 s,@HAVE_GTK2_TRUE@,$HAVE_GTK2_TRUE,;t t 8096 s,@HAVE_GTK2_FALSE@,$HAVE_GTK2_FALSE,;t t 7707 8097 s,@LIBOBJS@,$LIBOBJS,;t t 7708 8098 s,@LTLIBOBJS@,$LTLIBOBJS,;t t -
orxonox/branches/osX/configure.ac
r2978 r2983 2 2 # Process this file with autoconf to produce a configure script. 3 3 4 AC_PREREQ(2.56)4 #AC_PREREQ(2.56) 5 5 AC_INIT(orxonox, 0.1-pre-alpha, orxonox-dev@mail.datacore.ch) 6 7 # Detect the canonical host and target build environment. 8 AC_CANONICAL_BUILD 9 AC_CANONICAL_HOST 10 AC_CANONICAL_TARGET 11 12 6 13 AM_INIT_AUTOMAKE 7 14 … … 12 19 # Checks for programs. 13 20 AC_PROG_CXX 14 AC_PROG_CC15 16 17 18 21 AC_HEADER_STDC 19 22 … … 21 24 22 25 AC_MSG_CHECKING([for System]) 23 case `uname` in 26 ## checking for openGL-environment and other sys-specific parameters 27 case "$target" in 24 28 ### WINDOWS ### 25 * MINGW*)29 *-*-mingw32*) 26 30 echo "mingw-WINDOWS detected" 27 31 … … 64 68 fi 65 69 66 67 70 # checking for mingw32 68 71 AC_CHECK_LIB([mingw32], [main], FOUND_mingw32=yes) … … 77 80 AC_CHECK_LIB([sdlmain], [main], FOUND_sdlmain=yes) 78 81 if test "$FOUND_sdlmain" = "yes" ; then 79 80 else 81 82 83 84 85 82 LIBS="$LIBS -lsdlmain" 83 else 84 echo "------------------" 85 echo "SDL library not found." 86 echo "please install the SDL library, which can be found at http://www.libsdl.org" 87 echo "------------------" 88 exit 1 86 89 fi 87 90 AC_CHECK_LIB([sdl], [main], FOUND_sdl=yes) 88 91 if test "$FOUND_sdl" = "yes" ; then 89 LIBS="$LIBS -lsdl" 90 else 91 echo "------------------" 92 echo "SDL library not found." 93 echo "please install the SDL library, which can be found at http://www.libsdl.org" 94 echo "------------------" 95 exit -1 96 fi 92 LIBS="$LIBS -lsdl" 93 else 94 echo "------------------" 95 echo "SDL library not found." 96 echo "please install the SDL library, which can be found at http://www.libsdl.org" 97 echo "------------------" 98 exit -1 99 fi 100 97 101 98 102 ;; 99 103 100 104 ### LINUX ### 101 * Linux*)105 *-*-linux*) 102 106 echo "Linux detected" 103 107 … … 135 139 fi 136 140 141 ## checking for SDL 142 SDL_VERSION=1.2.7 143 AM_PATH_SDL($SDL_VERSION, 144 :, 145 AC_MSG_ERROR([*** SDL version $SDL_VERSION not found!]) 146 ) 147 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS" 148 LIBS="$LIBS $SDL_LIBS" 149 ;; 150 151 ### OS X ### 152 *Darwin*) 153 echo "OS X detected" 154 155 osX="yes" 156 157 # checking gl header 158 AC_CHECK_HEADERS(OpenGL/gl.h ,, 159 [AC_MSG_ERROR([cannot find opengl headers]) ]) 160 # cheking for GLU-header 161 AC_CHECK_HEADERS(OpenGL/glu.h ,, 162 [AC_MSG_ERROR([cannot find opengl headers]) ]) 163 164 LIBS="$LIBS -framework OpenGL" 165 137 166 # checking for SDL-headers 138 167 AC_CHECK_HEADERS(SDL/SDL.h ,, 139 168 [AC_MSG_ERROR([cannot find SDL headers]) ]) 140 169 141 AC_CHECK_LIB([SDL], [main], FOUND_SDL=yes) 142 if test "$FOUND_SDL" = "yes" ; then 143 LIBS="$LIBS -lSDL" 144 else 145 echo "------------------" 146 echo "SDL library not found." 147 echo "please install the SDL library, which can be found at http://www.libsdl.org" 148 echo "------------------" 149 exit -1 150 fi 151 152 # FIXME: Replace `main' with a function in `-lOSMesa': 153 AC_CHECK_LIB([OSMesa], [main]) 154 # FIXME: Replace `main' with a function in `-lX11': 155 AC_CHECK_LIB([X11], [main]) 156 # FIXME: Replace `main' with a function in `-lXt': 157 AC_CHECK_LIB([Xt], [main]) 158 ;; 159 160 ### OS X ### 161 *Darwin*) 162 echo "OS X detected" 163 164 osX="yes" 165 166 # checking gl header 167 AC_CHECK_HEADERS(OpenGL/gl.h ,, 168 [AC_MSG_ERROR([cannot find opengl headers]) ]) 169 # cheking for GLU-header 170 AC_CHECK_HEADERS(OpenGL/glu.h ,, 171 [AC_MSG_ERROR([cannot find opengl headers]) ]) 172 173 LIBS="$LIBS -framework OpenGL" 174 175 # checking for SDL-headers 176 AC_CHECK_HEADERS(SDL/SDL.h ,, 177 [AC_MSG_ERROR([cannot find SDL headers]) ]) 178 179 LIBS="$LIBS -L/sw/lib -lSDLmain -lSDL -framework Cocoa" 180 170 ## checking for SDL 171 SDL_VERSION=1.2.7 172 AM_PATH_SDL($SDL_VERSION, 173 :, 174 AC_MSG_ERROR([*** SDL version $SDL_VERSION not found!]) 175 ) 176 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS" 177 LIBS="$LIBS $SDL_LIBS" 181 178 ;; 182 179 … … 188 185 AC_SUBST(MSBITFIELDS) 189 186 187 188 189 190 ## checking for GTK 191 PKG_CHECK_MODULES(GTK2, gtk+-2.0 >= 2.0.3 gthread-2.0 >= 2.0.3, have_gtk2=yes, have_gtk2=no) 192 AC_SUBST(GTK2_LIBS) 193 AC_SUBST(GTK2_CFLAGS) 194 AM_CONDITIONAL(HAVE_GTK2, test "x$have_gtk2" = xyes) 190 195 191 196 … … 197 202 198 203 199 200 201 204 # FIXME: Replace `main' with a function in `-lm': 202 205 AC_CHECK_LIB([m], [main]) 203 204 LIBS="$LIBS `pkg-config --libs gtk+-2.0`"205 206 206 207 -
orxonox/branches/osX/console/Makefile.am
r2589 r2983 1 AM_CXXFLAGS= `pkg-config --cflags gtk+-2.0`$(MSBITFIELDS)2 #AM_LDFLAGS=`pkg-config --libs gtk+-2.0` 1 AM_CXXFLAGS=$(GTK2_CFLAGS) $(MSBITFIELDS) 2 AM_LDFLAGS=$(GTK2_LIBS) 3 3 4 4 bin_PROGRAMS=console -
orxonox/branches/osX/console/Makefile.in
r2711 r2983 38 38 PRE_UNINSTALL = : 39 39 POST_UNINSTALL = : 40 host_triplet = @host@ 40 41 bin_PROGRAMS = console$(EXEEXT) 41 42 subdir = console … … 97 98 EGREP = @EGREP@ 98 99 EXEEXT = @EXEEXT@ 100 GTK2_CFLAGS = @GTK2_CFLAGS@ 101 GTK2_LIBS = @GTK2_LIBS@ 102 HAVE_GTK2_FALSE = @HAVE_GTK2_FALSE@ 103 HAVE_GTK2_TRUE = @HAVE_GTK2_TRUE@ 99 104 INSTALL_DATA = @INSTALL_DATA@ 100 105 INSTALL_PROGRAM = @INSTALL_PROGRAM@ … … 115 120 PACKAGE_VERSION = @PACKAGE_VERSION@ 116 121 PATH_SEPARATOR = @PATH_SEPARATOR@ 122 PKG_CONFIG = @PKG_CONFIG@ 123 SDL_CFLAGS = @SDL_CFLAGS@ 124 SDL_CONFIG = @SDL_CONFIG@ 125 SDL_LIBS = @SDL_LIBS@ 117 126 SET_MAKE = @SET_MAKE@ 118 127 SHELL = @SHELL@ … … 130 139 am__quote = @am__quote@ 131 140 bindir = @bindir@ 141 build = @build@ 132 142 build_alias = @build_alias@ 143 build_cpu = @build_cpu@ 144 build_os = @build_os@ 145 build_vendor = @build_vendor@ 133 146 datadir = @datadir@ 134 147 exec_prefix = @exec_prefix@ 148 host = @host@ 135 149 host_alias = @host_alias@ 150 host_cpu = @host_cpu@ 151 host_os = @host_os@ 152 host_vendor = @host_vendor@ 136 153 includedir = @includedir@ 137 154 infodir = @infodir@ … … 148 165 sharedstatedir = @sharedstatedir@ 149 166 sysconfdir = @sysconfdir@ 167 target = @target@ 150 168 target_alias = @target_alias@ 151 AM_CXXFLAGS = `pkg-config --cflags gtk+-2.0` $(MSBITFIELDS) 169 target_cpu = @target_cpu@ 170 target_os = @target_os@ 171 target_vendor = @target_vendor@ 172 AM_CXXFLAGS = $(GTK2_CFLAGS) $(MSBITFIELDS) 173 AM_LDFLAGS = $(GTK2_LIBS) 152 174 console_SOURCES = orxonox_console.cc orxonox_console_entry.cc orxonox_console_log.cc 153 175 noinst_HEADERS = orxonox_console.h orxonox_console_entry.h orxonox_console_log.h -
orxonox/branches/osX/gui/Makefile.am
r2613 r2983 1 AM_CXXFLAGS= `pkg-config --cflags gtk+-2.0`$(MSBITFIELDS)2 #AM_LDFLAGS=`pkg-config --libs gtk+-2.0` 1 AM_CXXFLAGS=$(GTK2_CFLAGS) $(MSBITFIELDS) 2 AM_LDFLAGS=$(GTK2_LIBS) 3 3 4 4 bin_PROGRAMS=gui -
orxonox/branches/osX/gui/Makefile.in
r2711 r2983 38 38 PRE_UNINSTALL = : 39 39 POST_UNINSTALL = : 40 host_triplet = @host@ 40 41 bin_PROGRAMS = gui$(EXEEXT) 41 42 subdir = gui … … 103 104 EGREP = @EGREP@ 104 105 EXEEXT = @EXEEXT@ 106 GTK2_CFLAGS = @GTK2_CFLAGS@ 107 GTK2_LIBS = @GTK2_LIBS@ 108 HAVE_GTK2_FALSE = @HAVE_GTK2_FALSE@ 109 HAVE_GTK2_TRUE = @HAVE_GTK2_TRUE@ 105 110 INSTALL_DATA = @INSTALL_DATA@ 106 111 INSTALL_PROGRAM = @INSTALL_PROGRAM@ … … 121 126 PACKAGE_VERSION = @PACKAGE_VERSION@ 122 127 PATH_SEPARATOR = @PATH_SEPARATOR@ 128 PKG_CONFIG = @PKG_CONFIG@ 129 SDL_CFLAGS = @SDL_CFLAGS@ 130 SDL_CONFIG = @SDL_CONFIG@ 131 SDL_LIBS = @SDL_LIBS@ 123 132 SET_MAKE = @SET_MAKE@ 124 133 SHELL = @SHELL@ … … 136 145 am__quote = @am__quote@ 137 146 bindir = @bindir@ 147 build = @build@ 138 148 build_alias = @build_alias@ 149 build_cpu = @build_cpu@ 150 build_os = @build_os@ 151 build_vendor = @build_vendor@ 139 152 datadir = @datadir@ 140 153 exec_prefix = @exec_prefix@ 154 host = @host@ 141 155 host_alias = @host_alias@ 156 host_cpu = @host_cpu@ 157 host_os = @host_os@ 158 host_vendor = @host_vendor@ 142 159 includedir = @includedir@ 143 160 infodir = @infodir@ … … 154 171 sharedstatedir = @sharedstatedir@ 155 172 sysconfdir = @sysconfdir@ 173 target = @target@ 156 174 target_alias = @target_alias@ 157 AM_CXXFLAGS = `pkg-config --cflags gtk+-2.0` $(MSBITFIELDS) 175 target_cpu = @target_cpu@ 176 target_os = @target_os@ 177 target_vendor = @target_vendor@ 178 AM_CXXFLAGS = $(GTK2_CFLAGS) $(MSBITFIELDS) 179 AM_LDFLAGS = $(GTK2_LIBS) 158 180 gui_SOURCES = orxonox_gui.cc orxonox_gui_video.cc orxonox_gui_audio.cc orxonox_gui_exec.cc orxonox_gui_flags.cc orxonox_gui_banner.cc orxonox_gui_keys.cc 159 181 noinst_HEADERS = orxonox_gui.h orxonox_gui_video.h orxonox_gui_audio.h orxonox_gui_exec.h orxonox_gui_flags.h orxonox_gui_banner.h orxonox_gui_keys.h -
orxonox/branches/osX/importer/Makefile.in
r2978 r2983 38 38 PRE_UNINSTALL = : 39 39 POST_UNINSTALL = : 40 host_triplet = @host@ 40 41 bin_PROGRAMS = importer$(EXEEXT) 41 42 subdir = importer 42 43 DIST_COMMON = $(noinst_HEADERS) $(srcdir)/Makefile.am \ 43 $(srcdir)/Makefile.in TODO44 $(srcdir)/Makefile.in 44 45 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 45 46 am__aclocal_m4_deps = $(top_srcdir)/configure.ac … … 98 99 EGREP = @EGREP@ 99 100 EXEEXT = @EXEEXT@ 101 GTK2_CFLAGS = @GTK2_CFLAGS@ 102 GTK2_LIBS = @GTK2_LIBS@ 103 HAVE_GTK2_FALSE = @HAVE_GTK2_FALSE@ 104 HAVE_GTK2_TRUE = @HAVE_GTK2_TRUE@ 100 105 INSTALL_DATA = @INSTALL_DATA@ 101 106 INSTALL_PROGRAM = @INSTALL_PROGRAM@ … … 116 121 PACKAGE_VERSION = @PACKAGE_VERSION@ 117 122 PATH_SEPARATOR = @PATH_SEPARATOR@ 123 PKG_CONFIG = @PKG_CONFIG@ 124 SDL_CFLAGS = @SDL_CFLAGS@ 125 SDL_CONFIG = @SDL_CONFIG@ 126 SDL_LIBS = @SDL_LIBS@ 118 127 SET_MAKE = @SET_MAKE@ 119 128 SHELL = @SHELL@ … … 131 140 am__quote = @am__quote@ 132 141 bindir = @bindir@ 142 build = @build@ 133 143 build_alias = @build_alias@ 144 build_cpu = @build_cpu@ 145 build_os = @build_os@ 146 build_vendor = @build_vendor@ 134 147 datadir = @datadir@ 135 148 exec_prefix = @exec_prefix@ 149 host = @host@ 136 150 host_alias = @host_alias@ 151 host_cpu = @host_cpu@ 152 host_os = @host_os@ 153 host_vendor = @host_vendor@ 137 154 includedir = @includedir@ 138 155 infodir = @infodir@ … … 149 166 sharedstatedir = @sharedstatedir@ 150 167 sysconfdir = @sysconfdir@ 168 target = @target@ 151 169 target_alias = @target_alias@ 170 target_cpu = @target_cpu@ 171 target_os = @target_os@ 172 target_vendor = @target_vendor@ 152 173 AM_CXXFLAGS = "-I/usr/X11R6/include" 153 174 AM_LDFLAGS = "-L/usr/Mesa-6.0.1/lib -L/usr/X11R6/lib -lXt -lX11" $(MWINDOWS) -
orxonox/branches/osX/src/Makefile.in
r2816 r2983 38 38 PRE_UNINSTALL = : 39 39 POST_UNINSTALL = : 40 host_triplet = @host@ 40 41 bin_PROGRAMS = orxonox$(EXEEXT) 41 42 subdir = src … … 113 114 EGREP = @EGREP@ 114 115 EXEEXT = @EXEEXT@ 116 GTK2_CFLAGS = @GTK2_CFLAGS@ 117 GTK2_LIBS = @GTK2_LIBS@ 118 HAVE_GTK2_FALSE = @HAVE_GTK2_FALSE@ 119 HAVE_GTK2_TRUE = @HAVE_GTK2_TRUE@ 115 120 INSTALL_DATA = @INSTALL_DATA@ 116 121 INSTALL_PROGRAM = @INSTALL_PROGRAM@ … … 131 136 PACKAGE_VERSION = @PACKAGE_VERSION@ 132 137 PATH_SEPARATOR = @PATH_SEPARATOR@ 138 PKG_CONFIG = @PKG_CONFIG@ 139 SDL_CFLAGS = @SDL_CFLAGS@ 140 SDL_CONFIG = @SDL_CONFIG@ 141 SDL_LIBS = @SDL_LIBS@ 133 142 SET_MAKE = @SET_MAKE@ 134 143 SHELL = @SHELL@ … … 146 155 am__quote = @am__quote@ 147 156 bindir = @bindir@ 157 build = @build@ 148 158 build_alias = @build_alias@ 159 build_cpu = @build_cpu@ 160 build_os = @build_os@ 161 build_vendor = @build_vendor@ 149 162 datadir = @datadir@ 150 163 exec_prefix = @exec_prefix@ 164 host = @host@ 151 165 host_alias = @host_alias@ 166 host_cpu = @host_cpu@ 167 host_os = @host_os@ 168 host_vendor = @host_vendor@ 152 169 includedir = @includedir@ 153 170 infodir = @infodir@ … … 164 181 sharedstatedir = @sharedstatedir@ 165 182 sysconfdir = @sysconfdir@ 183 target = @target@ 166 184 target_alias = @target_alias@ 185 target_cpu = @target_cpu@ 186 target_os = @target_os@ 187 target_vendor = @target_vendor@ 167 188 AM_CXXFLAGS = "-I/usr/X11R6/include" 168 189 AM_LDFLAGS = "-L/usr/Mesa-6.0.1/lib -L/usr/X11R6/lib -lXt -lX11" $(MWINDOWS)
Note: See TracChangeset
for help on using the changeset viewer.