Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 2983 in orxonox.OLD for orxonox/branches/osX/configure


Ignore:
Timestamp:
Nov 25, 2004, 1:39:02 PM (20 years ago)
Author:
bensch
Message:

orxonox/branches/osX: merged back from trunk. command svn merge trunk/ branches/osX/ -r 2977:HEAD

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/branches/osX/configure

    r2978 r2983  
    312312#endif"
    313313
    314 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot CXX CXXFLAGS LDFLAGS CPPFLAGS ac_ct_CXX EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CC CFLAGS ac_ct_CC CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CPP EGREP MSBITFIELDS LIBOBJS LTLIBOBJS'
     314ac_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'
    315315ac_subst_files=''
    316316
     
    846846  --program-suffix=SUFFIX            append SUFFIX to installed program names
    847847  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
     848
     849System 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]
    848853_ACEOF
    849854fi
     
    860865  --disable-dependency-tracking  speeds up one-time build
    861866  --enable-dependency-tracking   do not reject slow dependency extractors
     867  --disable-sdltest       Do not try to compile and run a test SDL program
     868
     869Optional 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)
    862874
    863875Some influential environment variables:
     
    13211333
    13221334
    1323 am__api_version="1.8"
     1335
     1336# Detect the canonical host and target build environment.
    13241337ac_aux_dir=
    13251338for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
     
    13471360ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
    13481361
     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
     1365echo "$as_me: error: cannot run $ac_config_sub" >&2;}
     1366   { (exit 1); exit 1; }; }
     1367
     1368echo "$as_me:$LINENO: checking build system type" >&5
     1369echo $ECHO_N "checking build system type... $ECHO_C" >&6
     1370if test "${ac_cv_build+set}" = set; then
     1371  echo $ECHO_N "(cached) $ECHO_C" >&6
     1372else
     1373  ac_cv_build_alias=$build_alias
     1374test -z "$ac_cv_build_alias" &&
     1375  ac_cv_build_alias=`$ac_config_guess`
     1376test -z "$ac_cv_build_alias" &&
     1377  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
     1378echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
     1379   { (exit 1); exit 1; }; }
     1380ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
     1381  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
     1382echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
     1383   { (exit 1); exit 1; }; }
     1384
     1385fi
     1386echo "$as_me:$LINENO: result: $ac_cv_build" >&5
     1387echo "${ECHO_T}$ac_cv_build" >&6
     1388build=$ac_cv_build
     1389build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
     1390build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
     1391build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
     1392
     1393
     1394echo "$as_me:$LINENO: checking host system type" >&5
     1395echo $ECHO_N "checking host system type... $ECHO_C" >&6
     1396if test "${ac_cv_host+set}" = set; then
     1397  echo $ECHO_N "(cached) $ECHO_C" >&6
     1398else
     1399  ac_cv_host_alias=$host_alias
     1400test -z "$ac_cv_host_alias" &&
     1401  ac_cv_host_alias=$ac_cv_build_alias
     1402ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
     1403  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
     1404echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
     1405   { (exit 1); exit 1; }; }
     1406
     1407fi
     1408echo "$as_me:$LINENO: result: $ac_cv_host" >&5
     1409echo "${ECHO_T}$ac_cv_host" >&6
     1410host=$ac_cv_host
     1411host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
     1412host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
     1413host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
     1414
     1415
     1416echo "$as_me:$LINENO: checking target system type" >&5
     1417echo $ECHO_N "checking target system type... $ECHO_C" >&6
     1418if test "${ac_cv_target+set}" = set; then
     1419  echo $ECHO_N "(cached) $ECHO_C" >&6
     1420else
     1421  ac_cv_target_alias=$target_alias
     1422test "x$ac_cv_target_alias" = "x" &&
     1423  ac_cv_target_alias=$ac_cv_host_alias
     1424ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
     1425  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
     1426echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
     1427   { (exit 1); exit 1; }; }
     1428
     1429fi
     1430echo "$as_me:$LINENO: result: $ac_cv_target" >&5
     1431echo "${ECHO_T}$ac_cv_target" >&6
     1432target=$ac_cv_target
     1433target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
     1434target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
     1435target_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.
     1440test -n "$target_alias" &&
     1441  test "$program_prefix$program_suffix$program_transform_name" = \
     1442    NONENONEs,x,x, &&
     1443  program_prefix=${target_alias}-
     1444
     1445
     1446am__api_version="1.8"
    13491447# Find a good install program.  We prefer a C program (faster),
    13501448# so one script is as good as another.  But avoid the broken or
     
    33223420
    33233421
    3324 
    3325 
    3326 
    33273422ac_ext=c
    33283423ac_cpp='$CPP $CPPFLAGS'
     
    37463841echo "$as_me:$LINENO: checking for System" >&5
    37473842echo $ECHO_N "checking for System... $ECHO_C" >&6
    3748 case `uname` in
     3843## checking for openGL-environment and other sys-specific parameters
     3844case "$target" in
    37493845### WINDOWS ###
    3750   *MINGW*)
     3846  *-*-mingw32*)
    37513847echo "mingw-WINDOWS detected"
    37523848
     
    42894385    fi
    42904386
    4291 
    42924387# checking for mingw32
    42934388    echo "$as_me:$LINENO: checking for main in -lmingw32" >&5
     
    45764671
    45774672    if test "$FOUND_sdlmain" = "yes" ; then
    4578         LIBS="$LIBS -lsdlmain"
     4673       LIBS="$LIBS -lsdlmain"
    45794674    else
    4580         echo "------------------"
    4581         echo "SDL library not found."
    4582         echo "please install the SDL library, which can be found at http://www.libsdl.org"
    4583         echo "------------------"
    4584         exit 1
     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
    45854680    fi
    45864681    echo "$as_me:$LINENO: checking for main in -lsdl" >&5
     
    46474742
    46484743    if test "$FOUND_sdl" = "yes" ; then
    4649         LIBS="$LIBS -lsdl"
     4744       LIBS="$LIBS -lsdl"
    46504745    else
    4651         echo "------------------"
    4652         echo "SDL library not found."
    4653         echo "please install the SDL library, which can be found at http://www.libsdl.org"
    4654         echo "------------------"
    4655         exit -1
     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
    46564751    fi
    46574752
     4753
    46584754    ;;
    46594755
    46604756### LINUX ###
    4661  *Linux*)
     4757 *-*-linux*)
    46624758echo "Linux detected"
    46634759
     
    51275223    fi
    51285224
    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.
     5229if test "${with_sdl_prefix+set}" = set; then
     5230  withval="$with_sdl_prefix"
     5231  sdl_prefix="$withval"
     5232else
     5233  sdl_prefix=""
     5234fi;
     5235
     5236# Check whether --with-sdl-exec-prefix or --without-sdl-exec-prefix was given.
     5237if test "${with_sdl_exec_prefix+set}" = set; then
     5238  withval="$with_sdl_exec_prefix"
     5239  sdl_exec_prefix="$withval"
     5240else
     5241  sdl_exec_prefix=""
     5242fi;
     5243# Check whether --enable-sdltest or --disable-sdltest was given.
     5244if test "${enable_sdltest+set}" = set; then
     5245  enableval="$enable_sdltest"
     5246
     5247else
     5248  enable_sdltest=yes
     5249fi;
     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.
     5267set dummy sdl-config; ac_word=$2
     5268echo "$as_me:$LINENO: checking for $ac_word" >&5
     5269echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
     5270if test "${ac_cv_path_SDL_CONFIG+set}" = set; then
     5271  echo $ECHO_N "(cached) $ECHO_C" >&6
     5272else
     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
     5279for as_dir in $PATH
     5280do
     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
     5289done
     5290done
     5291
     5292  test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
     5293  ;;
     5294esac
     5295fi
     5296SDL_CONFIG=$ac_cv_path_SDL_CONFIG
     5297
     5298if test -n "$SDL_CONFIG"; then
     5299  echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5
     5300echo "${ECHO_T}$SDL_CONFIG" >&6
     5301else
     5302  echo "$as_me:$LINENO: result: no" >&5
     5303echo "${ECHO_T}no" >&6
     5304fi
     5305
     5306  min_sdl_version=$SDL_VERSION
     5307  echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5
     5308echo $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"
     5330else
     5331  cat >conftest.$ac_ext <<_ACEOF
     5332/* confdefs.h.  */
     5333_ACEOF
     5334cat confdefs.h >>conftest.$ac_ext
     5335cat >>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
     5343char*
     5344my_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
     5359int 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, &micro) != 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
     5396rm -f conftest$ac_exeext
     5397if { (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  :
     5408else
     5409  echo "$as_me: program exited with status $ac_status" >&5
     5410echo "$as_me: failed program was:" >&5
     5411sed 's/^/| /' conftest.$ac_ext >&5
     5412
     5413( exit $ac_status )
     5414no_sdl=yes
     5415fi
     5416rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
     5417fi
     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
     5424echo "${ECHO_T}yes" >&6
     5425     :
     5426  else
     5427     echo "$as_me:$LINENO: result: no" >&5
     5428echo "${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
     5444cat confdefs.h >>conftest.$ac_ext
     5445cat >>conftest.$ac_ext <<_ACEOF
     5446/* end confdefs.h.  */
     5447
     5448#include <stdio.h>
     5449#include "SDL.h"
     5450
     5451int main(int argc, char *argv[])
     5452{ return 0; }
     5453#undef  main
     5454#define main K_and_R_C_main
     5455
     5456int
     5457main ()
     5458{
     5459 return 0;
     5460  ;
     5461  return 0;
     5462}
     5463_ACEOF
     5464rm -f conftest.$ac_objext conftest$ac_exeext
     5465if { (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"
     5495else
     5496  echo "$as_me: failed program was:" >&5
     5497sed '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"
     5503fi
     5504rm -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
     5513echo "$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*)
     5527echo "OS X detected"
     5528
     5529 osX="yes"
     5530
     5531# checking gl header
     5532
     5533for ac_header in OpenGL/gl.h
    51325534do
    51335535as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
     
    52755677
    52765678else
    5277   { { echo "$as_me:$LINENO: error: cannot find SDL headers" >&5
    5278 echo "$as_me: error: cannot find SDL headers" >&2;}
     5679  { { echo "$as_me:$LINENO: error: cannot find opengl headers" >&5
     5680echo "$as_me: error: cannot find opengl headers" >&2;}
    52795681   { (exit 1); exit 1; }; }
    52805682fi
     
    52825684done
    52835685
    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
     5688for ac_header in OpenGL/glu.h
    55755689do
    55765690as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
     
    57255839done
    57265840
    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
     5846for ac_header in SDL/SDL.h
    57305847do
    57315848as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
     
    58735990
    58745991else
    5875   { { echo "$as_me:$LINENO: error: cannot find opengl headers" >&5
    5876 echo "$as_me: error: cannot find opengl headers" >&2;}
     5992  { { echo "$as_me:$LINENO: error: cannot find SDL headers" >&5
     5993echo "$as_me: error: cannot find SDL headers" >&2;}
    58775994   { (exit 1); exit 1; }; }
    58785995fi
     
    58815998
    58825999
    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.
     6004if test "${with_sdl_prefix+set}" = set; then
     6005  withval="$with_sdl_prefix"
     6006  sdl_prefix="$withval"
     6007else
     6008  sdl_prefix=""
     6009fi;
     6010
     6011# Check whether --with-sdl-exec-prefix or --without-sdl-exec-prefix was given.
     6012if test "${with_sdl_exec_prefix+set}" = set; then
     6013  withval="$with_sdl_exec_prefix"
     6014  sdl_exec_prefix="$withval"
     6015else
     6016  sdl_exec_prefix=""
     6017fi;
     6018# Check whether --enable-sdltest or --disable-sdltest was given.
     6019if test "${enable_sdltest+set}" = set; then
     6020  enableval="$enable_sdltest"
     6021
     6022else
     6023  enable_sdltest=yes
     6024fi;
     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.
     6042set dummy sdl-config; ac_word=$2
     6043echo "$as_me:$LINENO: checking for $ac_word" >&5
     6044echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
     6045if test "${ac_cv_path_SDL_CONFIG+set}" = set; then
     6046  echo $ECHO_N "(cached) $ECHO_C" >&6
     6047else
     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
     6054for as_dir in $PATH
     6055do
     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
     6064done
     6065done
     6066
     6067  test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
     6068  ;;
     6069esac
     6070fi
     6071SDL_CONFIG=$ac_cv_path_SDL_CONFIG
     6072
     6073if test -n "$SDL_CONFIG"; then
     6074  echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5
     6075echo "${ECHO_T}$SDL_CONFIG" >&6
     6076else
     6077  echo "$as_me:$LINENO: result: no" >&5
     6078echo "${ECHO_T}no" >&6
     6079fi
     6080
     6081  min_sdl_version=$SDL_VERSION
     6082  echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5
     6083echo $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"
     6105else
     6106  cat >conftest.$ac_ext <<_ACEOF
     6107/* confdefs.h.  */
     6108_ACEOF
     6109cat confdefs.h >>conftest.$ac_ext
     6110cat >>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
     6118char*
     6119my_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
     6134int 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, &micro) != 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
     6171rm -f conftest$ac_exeext
     6172if { (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  :
     6183else
     6184  echo "$as_me: program exited with status $ac_status" >&5
     6185echo "$as_me: failed program was:" >&5
     6186sed 's/^/| /' conftest.$ac_ext >&5
     6187
     6188( exit $ac_status )
     6189no_sdl=yes
     6190fi
     6191rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
     6192fi
     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
     6199echo "${ECHO_T}yes" >&6
     6200     :
     6201  else
     6202     echo "$as_me:$LINENO: result: no" >&5
     6203echo "${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
     6219cat confdefs.h >>conftest.$ac_ext
     6220cat >>conftest.$ac_ext <<_ACEOF
     6221/* end confdefs.h.  */
     6222
     6223#include <stdio.h>
     6224#include "SDL.h"
     6225
     6226int main(int argc, char *argv[])
     6227{ return 0; }
     6228#undef  main
     6229#define main K_and_R_C_main
     6230
     6231int
     6232main ()
     6233{
     6234 return 0;
     6235  ;
     6236  return 0;
     6237}
     6238_ACEOF
     6239rm -f conftest.$ac_objext conftest$ac_exeext
     6240if { (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"
     6270else
     6271  echo "$as_me: failed program was:" >&5
     6272sed '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"
     6278fi
     6279rm -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
     6288echo "$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    ;;
     6303esac
     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.
     6316set dummy pkg-config; ac_word=$2
     6317echo "$as_me:$LINENO: checking for $ac_word" >&5
     6318echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
     6319if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
     6320  echo $ECHO_N "(cached) $ECHO_C" >&6
     6321else
     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
     6328for as_dir in $PATH
     6329do
     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
     6338done
     6339done
     6340
     6341  test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
     6342  ;;
     6343esac
     6344fi
     6345PKG_CONFIG=$ac_cv_path_PKG_CONFIG
     6346
     6347if test -n "$PKG_CONFIG"; then
     6348  echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
     6349echo "${ECHO_T}$PKG_CONFIG" >&6
     6350else
     6351  echo "$as_me:$LINENO: result: no" >&5
     6352echo "${ECHO_T}no" >&6
     6353fi
     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
     6366echo $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
     6370echo "${ECHO_T}yes" >&6
     6371            succeeded=yes
     6372
     6373            echo "$as_me:$LINENO: checking GTK2_CFLAGS" >&5
     6374echo $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
     6377echo "${ECHO_T}$GTK2_CFLAGS" >&6
     6378
     6379            echo "$as_me:$LINENO: checking GTK2_LIBS" >&5
     6380echo $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
     6383echo "${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
     6411if test "x$have_gtk2" = xyes; then
     6412  HAVE_GTK2_TRUE=
     6413  HAVE_GTK2_FALSE='#'
     6414else
     6415  HAVE_GTK2_TRUE='#'
     6416  HAVE_GTK2_FALSE=
     6417fi
     6418
     6419
     6420
     6421#checking for pthread libs
     6422 echo "$as_me:$LINENO: checking for main in -lpthread" >&5
     6423echo $ECHO_N "checking for main in -lpthread... $ECHO_C" >&6
     6424if test "${ac_cv_lib_pthread_main+set}" = set; then
     6425  echo $ECHO_N "(cached) $ECHO_C" >&6
     6426else
     6427  ac_check_lib_save_LIBS=$LIBS
     6428LIBS="-lpthread  $LIBS"
     6429cat >conftest.$ac_ext <<_ACEOF
     6430/* confdefs.h.  */
     6431_ACEOF
     6432cat confdefs.h >>conftest.$ac_ext
     6433cat >>conftest.$ac_ext <<_ACEOF
     6434/* end confdefs.h.  */
     6435
     6436
     6437int
     6438main ()
     6439{
     6440main ();
     6441  ;
     6442  return 0;
     6443}
     6444_ACEOF
     6445rm -f conftest.$ac_objext conftest$ac_exeext
     6446if { (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
     6468else
     6469  echo "$as_me: failed program was:" >&5
     6470sed 's/^/| /' conftest.$ac_ext >&5
     6471
     6472ac_cv_lib_pthread_main=no
     6473fi
     6474rm -f conftest.err conftest.$ac_objext \
     6475      conftest$ac_exeext conftest.$ac_ext
     6476LIBS=$ac_check_lib_save_LIBS
     6477fi
     6478echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_main" >&5
     6479echo "${ECHO_T}$ac_cv_lib_pthread_main" >&6
     6480if test $ac_cv_lib_pthread_main = yes; then
     6481  FOUND_pthread=yes
     6482fi
     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
     6491echo "$as_me:$LINENO: checking for main in -lm" >&5
     6492echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
     6493if test "${ac_cv_lib_m_main+set}" = set; then
     6494  echo $ECHO_N "(cached) $ECHO_C" >&6
     6495else
     6496  ac_check_lib_save_LIBS=$LIBS
     6497LIBS="-lm  $LIBS"
     6498cat >conftest.$ac_ext <<_ACEOF
     6499/* confdefs.h.  */
     6500_ACEOF
     6501cat confdefs.h >>conftest.$ac_ext
     6502cat >>conftest.$ac_ext <<_ACEOF
     6503/* end confdefs.h.  */
     6504
     6505
     6506int
     6507main ()
     6508{
     6509main ();
     6510  ;
     6511  return 0;
     6512}
     6513_ACEOF
     6514rm -f conftest.$ac_objext conftest$ac_exeext
     6515if { (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
     6537else
     6538  echo "$as_me: failed program was:" >&5
     6539sed 's/^/| /' conftest.$ac_ext >&5
     6540
     6541ac_cv_lib_m_main=no
     6542fi
     6543rm -f conftest.err conftest.$ac_objext \
     6544      conftest$ac_exeext conftest.$ac_ext
     6545LIBS=$ac_check_lib_save_LIBS
     6546fi
     6547echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
     6548echo "${ECHO_T}$ac_cv_lib_m_main" >&6
     6549if 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
     6556fi
     6557
     6558
     6559
     6560# Checks for header files.
     6561echo "$as_me:$LINENO: checking for ANSI C header files" >&5
     6562echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
     6563if test "${ac_cv_header_stdc+set}" = set; then
     6564  echo $ECHO_N "(cached) $ECHO_C" >&6
     6565else
     6566  cat >conftest.$ac_ext <<_ACEOF
     6567/* confdefs.h.  */
     6568_ACEOF
     6569cat confdefs.h >>conftest.$ac_ext
     6570cat >>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
     6577int
     6578main ()
     6579{
     6580
     6581  ;
     6582  return 0;
     6583}
     6584_ACEOF
     6585rm -f conftest.$ac_objext
     6586if { (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
     6608else
     6609  echo "$as_me: failed program was:" >&5
     6610sed 's/^/| /' conftest.$ac_ext >&5
     6611
     6612ac_cv_header_stdc=no
     6613fi
     6614rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     6615
     6616if 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
     6621cat confdefs.h >>conftest.$ac_ext
     6622cat >>conftest.$ac_ext <<_ACEOF
     6623/* end confdefs.h.  */
     6624#include <string.h>
     6625
     6626_ACEOF
     6627if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
     6628  $EGREP "memchr" >/dev/null 2>&1; then
     6629  :
     6630else
     6631  ac_cv_header_stdc=no
     6632fi
     6633rm -f conftest*
     6634
     6635fi
     6636
     6637if 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
     6642cat confdefs.h >>conftest.$ac_ext
     6643cat >>conftest.$ac_ext <<_ACEOF
     6644/* end confdefs.h.  */
     6645#include <stdlib.h>
     6646
     6647_ACEOF
     6648if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
     6649  $EGREP "free" >/dev/null 2>&1; then
     6650  :
     6651else
     6652  ac_cv_header_stdc=no
     6653fi
     6654rm -f conftest*
     6655
     6656fi
     6657
     6658if 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  :
     6662else
     6663  cat >conftest.$ac_ext <<_ACEOF
     6664/* confdefs.h.  */
     6665_ACEOF
     6666cat confdefs.h >>conftest.$ac_ext
     6667cat >>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)))
     6682int
     6683main ()
     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
     6693rm -f conftest$ac_exeext
     6694if { (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  :
     6705else
     6706  echo "$as_me: program exited with status $ac_status" >&5
     6707echo "$as_me: failed program was:" >&5
     6708sed 's/^/| /' conftest.$ac_ext >&5
     6709
     6710( exit $ac_status )
     6711ac_cv_header_stdc=no
     6712fi
     6713rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
     6714fi
     6715fi
     6716fi
     6717echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
     6718echo "${ECHO_T}$ac_cv_header_stdc" >&6
     6719if test $ac_cv_header_stdc = yes; then
     6720
     6721cat >>confdefs.h <<\_ACEOF
     6722#define STDC_HEADERS 1
     6723_ACEOF
     6724
     6725fi
     6726
     6727
     6728
     6729for ac_header in stdlib.h string.h
    58886730do
    58896731as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
     
    60306872_ACEOF
    60316873
    6032 else
    6033   { { echo "$as_me:$LINENO: error: cannot find SDL headers" >&5
    6034 echo "$as_me: error: cannot find SDL headers" >&2;}
    6035    { (exit 1); exit 1; }; }
    60366874fi
    60376875
     
    60396877
    60406878
    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.
     6880echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
     6881echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6
     6882if test "${ac_cv_header_stdbool_h+set}" = set; then
    60586883  echo $ECHO_N "(cached) $ECHO_C" >&6
    60596884else
    6060   ac_check_lib_save_LIBS=$LIBS
    6061 LIBS="-lpthread  $LIBS"
    6062 cat >conftest.$ac_ext <<_ACEOF
     6885  cat >conftest.$ac_ext <<_ACEOF
    60636886/* confdefs.h.  */
    60646887_ACEOF
     
    60676890/* end confdefs.h.  */
    60686891
     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];
    60696923
    60706924int
    60716925main ()
    60726926{
    6073 main ();
     6927 return !a + !b + !c + !d + !e + !f + !g + !h + !i;
    60746928  ;
    60756929  return 0;
    60766930}
    60776931_ACEOF
    6078 rm -f conftest.$ac_objext conftest$ac_exeext
    6079 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    6080   (eval $ac_link) 2>conftest.er1
     6932rm -f conftest.$ac_objext
     6933if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     6934  (eval $ac_compile) 2>conftest.er1
    60816935  ac_status=$?
    60826936  grep -v '^ *+' conftest.er1 >conftest.err
     
    60926946  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    60936947  (exit $ac_status); }; } &&
    6094          { ac_try='test -s conftest$ac_exeext'
     6948         { ac_try='test -s conftest.$ac_objext'
    60956949  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    60966950  (eval $ac_try) 2>&5
     
    60986952  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    60996953  (exit $ac_status); }; }; then
    6100   ac_cv_lib_pthread_main=yes
     6954  ac_cv_header_stdbool_h=yes
    61016955else
    61026956  echo "$as_me: failed program was:" >&5
    61036957sed 's/^/| /' conftest.$ac_ext >&5
    61046958
    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
     6959ac_cv_header_stdbool_h=no
     6960fi
     6961rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     6962fi
     6963echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
     6964echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6
     6965echo "$as_me:$LINENO: checking for _Bool" >&5
     6966echo $ECHO_N "checking for _Bool... $ECHO_C" >&6
     6967if test "${ac_cv_type__Bool+set}" = set; then
    61296968  echo $ECHO_N "(cached) $ECHO_C" >&6
    61306969else
    6131   ac_check_lib_save_LIBS=$LIBS
    6132 LIBS="-lm  $LIBS"
    6133 cat >conftest.$ac_ext <<_ACEOF
     6970  cat >conftest.$ac_ext <<_ACEOF
    61346971/* confdefs.h.  */
    61356972_ACEOF
     
    61376974cat >>conftest.$ac_ext <<_ACEOF
    61386975/* end confdefs.h.  */
    6139 
    6140 
     6976$ac_includes_default
    61416977int
    61426978main ()
    61436979{
    6144 main ();
     6980if ((_Bool *) 0)
     6981  return 0;
     6982if (sizeof (_Bool))
     6983  return 0;
    61456984  ;
    61466985  return 0;
    61476986}
    61486987_ACEOF
    6149 rm -f conftest.$ac_objext conftest$ac_exeext
    6150 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    6151   (eval $ac_link) 2>conftest.er1
     6988rm -f conftest.$ac_objext
     6989if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     6990  (eval $ac_compile) 2>conftest.er1
    61526991  ac_status=$?
    61536992  grep -v '^ *+' conftest.er1 >conftest.err
     
    61637002  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    61647003  (exit $ac_status); }; } &&
    6165          { ac_try='test -s conftest$ac_exeext'
    6166   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    6167   (eval $ac_try) 2>&5
    6168   ac_status=$?
    6169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    6170   (exit $ac_status); }; }; then
    6171   ac_cv_lib_m_main=yes
    6172 else
    6173   echo "$as_me: failed program was:" >&5
    6174 sed 's/^/| /' conftest.$ac_ext >&5
    6175 
    6176 ac_cv_lib_m_main=no
    6177 fi
    6178 rm -f conftest.err conftest.$ac_objext \
    6179       conftest$ac_exeext conftest.$ac_ext
    6180 LIBS=$ac_check_lib_save_LIBS
    6181 fi
    6182 echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
    6183 echo "${ECHO_T}$ac_cv_lib_m_main" >&6
    6184 if test $ac_cv_lib_m_main = yes; then
    6185   cat >>confdefs.h <<_ACEOF
    6186 #define HAVE_LIBM 1
    6187 _ACEOF
    6188 
    6189   LIBS="-lm $LIBS"
    6190 
    6191 fi
    6192 
    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" >&5
    6199 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
    6200 if test "${ac_cv_header_stdc+set}" = set; then
    6201   echo $ECHO_N "(cached) $ECHO_C" >&6
    6202 else
    6203   cat >conftest.$ac_ext <<_ACEOF
    6204 /* confdefs.h.  */
    6205 _ACEOF
    6206 cat confdefs.h >>conftest.$ac_ext
    6207 cat >>conftest.$ac_ext <<_ACEOF
    6208 /* end confdefs.h.  */
    6209 #include <stdlib.h>
    6210 #include <stdarg.h>
    6211 #include <string.h>
    6212 #include <float.h>
    6213 
    6214 int
    6215 main ()
    6216 {
    6217 
    6218   ;
    6219   return 0;
    6220 }
    6221 _ACEOF
    6222 rm -f conftest.$ac_objext
    6223 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    6224   (eval $ac_compile) 2>conftest.er1
    6225   ac_status=$?
    6226   grep -v '^ *+' conftest.er1 >conftest.err
    6227   rm -f conftest.er1
    6228   cat conftest.err >&5
    6229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    6230   (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\"") >&5
    6234   (eval $ac_try) 2>&5
    6235   ac_status=$?
    6236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    6237   (exit $ac_status); }; } &&
    62387004         { ac_try='test -s conftest.$ac_objext'
    62397005  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     
    62427008  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    62437009  (exit $ac_status); }; }; then
    6244   ac_cv_header_stdc=yes
     7010  ac_cv_type__Bool=yes
    62457011else
    62467012  echo "$as_me: failed program was:" >&5
    62477013sed 's/^/| /' conftest.$ac_ext >&5
    62487014
    6249 ac_cv_header_stdc=no
     7015ac_cv_type__Bool=no
    62507016fi
    62517017rm -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
     7018fi
     7019echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
     7020echo "${ECHO_T}$ac_cv_type__Bool" >&6
     7021if test $ac_cv_type__Bool = yes; then
     7022
     7023cat >>confdefs.h <<_ACEOF
     7024#define HAVE__BOOL 1
     7025_ACEOF
     7026
     7027
     7028fi
     7029
     7030if test $ac_cv_header_stdbool_h = yes; then
    63577031
    63587032cat >>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
     7036fi
     7037
     7038
     7039# Checks for library functions.
     7040
     7041for ac_header in stdlib.h
    63677042do
    63687043as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
     
    65137188done
    65147189
    6515 
    6516 # Checks for typedefs, structures, and compiler characteristics.
    6517 echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
    6518 echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6
    6519 if test "${ac_cv_header_stdbool_h+set}" = set; then
    6520   echo $ECHO_N "(cached) $ECHO_C" >&6
    6521 else
    6522   cat >conftest.$ac_ext <<_ACEOF
    6523 /* confdefs.h.  */
    6524 _ACEOF
    6525 cat confdefs.h >>conftest.$ac_ext
    6526 cat >>conftest.$ac_ext <<_ACEOF
    6527 /* end confdefs.h.  */
    6528 
    6529 #include <stdbool.h>
    6530 #ifndef bool
    6531 # error bool is not defined
    6532 #endif
    6533 #ifndef false
    6534 # error false is not defined
    6535 #endif
    6536 #if false
    6537 # error false is not 0
    6538 #endif
    6539 #ifndef true
    6540 # error true is not defined
    6541 #endif
    6542 #if true != 1
    6543 # error true is not 1
    6544 #endif
    6545 #ifndef __bool_true_false_are_defined
    6546 # error __bool_true_false_are_defined is not defined
    6547 #endif
    6548 
    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 int
    6562 main ()
    6563 {
    6564  return !a + !b + !c + !d + !e + !f + !g + !h + !i;
    6565   ;
    6566   return 0;
    6567 }
    6568 _ACEOF
    6569 rm -f conftest.$ac_objext
    6570 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    6571   (eval $ac_compile) 2>conftest.er1
    6572   ac_status=$?
    6573   grep -v '^ *+' conftest.er1 >conftest.err
    6574   rm -f conftest.er1
    6575   cat conftest.err >&5
    6576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    6577   (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\"") >&5
    6581   (eval $ac_try) 2>&5
    6582   ac_status=$?
    6583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    6584   (exit $ac_status); }; } &&
    6585          { ac_try='test -s conftest.$ac_objext'
    6586   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    6587   (eval $ac_try) 2>&5
    6588   ac_status=$?
    6589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    6590   (exit $ac_status); }; }; then
    6591   ac_cv_header_stdbool_h=yes
    6592 else
    6593   echo "$as_me: failed program was:" >&5
    6594 sed 's/^/| /' conftest.$ac_ext >&5
    6595 
    6596 ac_cv_header_stdbool_h=no
    6597 fi
    6598 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
    6599 fi
    6600 echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
    6601 echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6
    6602 echo "$as_me:$LINENO: checking for _Bool" >&5
    6603 echo $ECHO_N "checking for _Bool... $ECHO_C" >&6
    6604 if test "${ac_cv_type__Bool+set}" = set; then
    6605   echo $ECHO_N "(cached) $ECHO_C" >&6
    6606 else
    6607   cat >conftest.$ac_ext <<_ACEOF
    6608 /* confdefs.h.  */
    6609 _ACEOF
    6610 cat confdefs.h >>conftest.$ac_ext
    6611 cat >>conftest.$ac_ext <<_ACEOF
    6612 /* end confdefs.h.  */
    6613 $ac_includes_default
    6614 int
    6615 main ()
    6616 {
    6617 if ((_Bool *) 0)
    6618   return 0;
    6619 if (sizeof (_Bool))
    6620   return 0;
    6621   ;
    6622   return 0;
    6623 }
    6624 _ACEOF
    6625 rm -f conftest.$ac_objext
    6626 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    6627   (eval $ac_compile) 2>conftest.er1
    6628   ac_status=$?
    6629   grep -v '^ *+' conftest.er1 >conftest.err
    6630   rm -f conftest.er1
    6631   cat conftest.err >&5
    6632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    6633   (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\"") >&5
    6637   (eval $ac_try) 2>&5
    6638   ac_status=$?
    6639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    6640   (exit $ac_status); }; } &&
    6641          { ac_try='test -s conftest.$ac_objext'
    6642   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    6643   (eval $ac_try) 2>&5
    6644   ac_status=$?
    6645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    6646   (exit $ac_status); }; }; then
    6647   ac_cv_type__Bool=yes
    6648 else
    6649   echo "$as_me: failed program was:" >&5
    6650 sed 's/^/| /' conftest.$ac_ext >&5
    6651 
    6652 ac_cv_type__Bool=no
    6653 fi
    6654 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
    6655 fi
    6656 echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
    6657 echo "${ECHO_T}$ac_cv_type__Bool" >&6
    6658 if test $ac_cv_type__Bool = yes; then
    6659 
    6660 cat >>confdefs.h <<_ACEOF
    6661 #define HAVE__BOOL 1
    6662 _ACEOF
    6663 
    6664 
    6665 fi
    6666 
    6667 if test $ac_cv_header_stdbool_h = yes; then
    6668 
    6669 cat >>confdefs.h <<\_ACEOF
    6670 #define HAVE_STDBOOL_H 1
    6671 _ACEOF
    6672 
    6673 fi
    6674 
    6675 
    6676 # Checks for library functions.
    6677 
    6678 for ac_header in stdlib.h
    6679 do
    6680 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
    6681 if eval "test \"\${$as_ac_Header+set}\" = set"; then
    6682   echo "$as_me:$LINENO: checking for $ac_header" >&5
    6683 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
    6684 if eval "test \"\${$as_ac_Header+set}\" = set"; then
    6685   echo $ECHO_N "(cached) $ECHO_C" >&6
    6686 fi
    6687 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
    6688 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
    6689 else
    6690   # Is the header compilable?
    6691 echo "$as_me:$LINENO: checking $ac_header usability" >&5
    6692 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
    6693 cat >conftest.$ac_ext <<_ACEOF
    6694 /* confdefs.h.  */
    6695 _ACEOF
    6696 cat confdefs.h >>conftest.$ac_ext
    6697 cat >>conftest.$ac_ext <<_ACEOF
    6698 /* end confdefs.h.  */
    6699 $ac_includes_default
    6700 #include <$ac_header>
    6701 _ACEOF
    6702 rm -f conftest.$ac_objext
    6703 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    6704   (eval $ac_compile) 2>conftest.er1
    6705   ac_status=$?
    6706   grep -v '^ *+' conftest.er1 >conftest.err
    6707   rm -f conftest.er1
    6708   cat conftest.err >&5
    6709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    6710   (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\"") >&5
    6714   (eval $ac_try) 2>&5
    6715   ac_status=$?
    6716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    6717   (exit $ac_status); }; } &&
    6718          { ac_try='test -s conftest.$ac_objext'
    6719   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    6720   (eval $ac_try) 2>&5
    6721   ac_status=$?
    6722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    6723   (exit $ac_status); }; }; then
    6724   ac_header_compiler=yes
    6725 else
    6726   echo "$as_me: failed program was:" >&5
    6727 sed 's/^/| /' conftest.$ac_ext >&5
    6728 
    6729 ac_header_compiler=no
    6730 fi
    6731 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
    6732 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
    6733 echo "${ECHO_T}$ac_header_compiler" >&6
    6734 
    6735 # Is the header present?
    6736 echo "$as_me:$LINENO: checking $ac_header presence" >&5
    6737 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
    6738 cat >conftest.$ac_ext <<_ACEOF
    6739 /* confdefs.h.  */
    6740 _ACEOF
    6741 cat confdefs.h >>conftest.$ac_ext
    6742 cat >>conftest.$ac_ext <<_ACEOF
    6743 /* end confdefs.h.  */
    6744 #include <$ac_header>
    6745 _ACEOF
    6746 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
    6747   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
    6748   ac_status=$?
    6749   grep -v '^ *+' conftest.er1 >conftest.err
    6750   rm -f conftest.er1
    6751   cat conftest.err >&5
    6752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    6753   (exit $ac_status); } >/dev/null; then
    6754   if test -s conftest.err; then
    6755     ac_cpp_err=$ac_c_preproc_warn_flag
    6756     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
    6757   else
    6758     ac_cpp_err=
    6759   fi
    6760 else
    6761   ac_cpp_err=yes
    6762 fi
    6763 if test -z "$ac_cpp_err"; then
    6764   ac_header_preproc=yes
    6765 else
    6766   echo "$as_me: failed program was:" >&5
    6767 sed 's/^/| /' conftest.$ac_ext >&5
    6768 
    6769   ac_header_preproc=no
    6770 fi
    6771 rm -f conftest.err conftest.$ac_ext
    6772 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
    6773 echo "${ECHO_T}$ac_header_preproc" >&6
    6774 
    6775 # So?  What about this header?
    6776 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
    6777   yes:no: )
    6778     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
    6779 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" >&5
    6781 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
    6782     ac_header_preproc=yes
    6783     ;;
    6784   no:yes:* )
    6785     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
    6786 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?" >&5
    6788 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
    6789     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
    6790 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\"" >&5
    6792 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" >&5
    6794 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" >&5
    6796 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
    6797     (
    6798       cat <<\_ASBOX
    6799 ## ------------------------------------------- ##
    6800 ## Report this to orxonox-dev@mail.datacore.ch ##
    6801 ## ------------------------------------------- ##
    6802 _ASBOX
    6803     ) |
    6804       sed "s/^/$as_me: WARNING:     /" >&2
    6805     ;;
    6806 esac
    6807 echo "$as_me:$LINENO: checking for $ac_header" >&5
    6808 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
    6809 if eval "test \"\${$as_ac_Header+set}\" = set"; then
    6810   echo $ECHO_N "(cached) $ECHO_C" >&6
    6811 else
    6812   eval "$as_ac_Header=\$ac_header_preproc"
    6813 fi
    6814 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
    6815 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
    6816 
    6817 fi
    6818 if test `eval echo '${'$as_ac_Header'}'` = yes; then
    6819   cat >>confdefs.h <<_ACEOF
    6820 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
    6821 _ACEOF
    6822 
    6823 fi
    6824 
    6825 done
    6826 
    68277190echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
    68287191echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6
     
    71217484Usually this means the macro was only invoked conditionally." >&5
    71227485echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
     7486Usually this means the macro was only invoked conditionally." >&2;}
     7487   { (exit 1); exit 1; }; }
     7488fi
     7489if test -z "${HAVE_GTK2_TRUE}" && test -z "${HAVE_GTK2_FALSE}"; then
     7490  { { echo "$as_me:$LINENO: error: conditional \"HAVE_GTK2\" was never defined.
     7491Usually this means the macro was only invoked conditionally." >&5
     7492echo "$as_me: error: conditional \"HAVE_GTK2\" was never defined.
    71237493Usually this means the macro was only invoked conditionally." >&2;}
    71247494   { (exit 1); exit 1; }; }
     
    76608030s,@ECHO_T@,$ECHO_T,;t t
    76618031s,@LIBS@,$LIBS,;t t
     8032s,@build@,$build,;t t
     8033s,@build_cpu@,$build_cpu,;t t
     8034s,@build_vendor@,$build_vendor,;t t
     8035s,@build_os@,$build_os,;t t
     8036s,@host@,$host,;t t
     8037s,@host_cpu@,$host_cpu,;t t
     8038s,@host_vendor@,$host_vendor,;t t
     8039s,@host_os@,$host_os,;t t
     8040s,@target@,$target,;t t
     8041s,@target_cpu@,$target_cpu,;t t
     8042s,@target_vendor@,$target_vendor,;t t
     8043s,@target_os@,$target_os,;t t
    76628044s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
    76638045s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
     
    77048086s,@CPP@,$CPP,;t t
    77058087s,@EGREP@,$EGREP,;t t
     8088s,@SDL_CONFIG@,$SDL_CONFIG,;t t
     8089s,@SDL_CFLAGS@,$SDL_CFLAGS,;t t
     8090s,@SDL_LIBS@,$SDL_LIBS,;t t
    77068091s,@MSBITFIELDS@,$MSBITFIELDS,;t t
     8092s,@PKG_CONFIG@,$PKG_CONFIG,;t t
     8093s,@GTK2_CFLAGS@,$GTK2_CFLAGS,;t t
     8094s,@GTK2_LIBS@,$GTK2_LIBS,;t t
     8095s,@HAVE_GTK2_TRUE@,$HAVE_GTK2_TRUE,;t t
     8096s,@HAVE_GTK2_FALSE@,$HAVE_GTK2_FALSE,;t t
    77078097s,@LIBOBJS@,$LIBOBJS,;t t
    77088098s,@LTLIBOBJS@,$LTLIBOBJS,;t t
Note: See TracChangeset for help on using the changeset viewer.