Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 3238 in orxonox.OLD for orxonox/branches/nico/configure


Ignore:
Timestamp:
Dec 20, 2004, 2:42:54 AM (20 years ago)
Author:
bensch
Message:

orxonox/branches: updated branches: buerli, nico, sound. And moved bezierTrack to old.bezierTrack. Conflicts resolved in a usefull order.
Conflics mostly resolved in favor of trunk
merge.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/branches/nico/configure

    r3001 r3238  
    11#! /bin/sh
    22# Guess values for system-dependent variables and create Makefiles.
    3 # Generated by GNU Autoconf 2.59 for orxonox 0.1-pre-alpha.
     3# Generated by GNU Autoconf 2.59 for orxonox 0.2.0_alpha-r1.
    44#
    55# Report bugs to <orxonox-dev@mail.datacore.ch>.
     
    270270PACKAGE_NAME='orxonox'
    271271PACKAGE_TARNAME='orxonox'
    272 PACKAGE_VERSION='0.1-pre-alpha'
    273 PACKAGE_STRING='orxonox 0.1-pre-alpha'
     272PACKAGE_VERSION='0.2.0_alpha-r1'
     273PACKAGE_STRING='orxonox 0.2.0_alpha-r1'
    274274PACKAGE_BUGREPORT='orxonox-dev@mail.datacore.ch'
    275275
     
    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 build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot CXX CXXFLAGS LDFLAGS CPPFLAGS ac_ct_CXX EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CC CFLAGS ac_ct_CC CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CPP EGREP MSBITFIELDS PKG_CONFIG GTK2_CFLAGS GTK2_LIBS HAVE_GTK2_TRUE HAVE_GTK2_FALSE LIBOBJS LTLIBOBJS'
     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 DEBUG DOXYGEN DOXYGEN_TRUE DOXYGEN_FALSE MSBITFIELDS GTK2_LIBS GTK2_CFLAGS HAVE_GTK2_TRUE HAVE_GTK2_FALSE LIBOBJS LTLIBOBJS'
    315315ac_subst_files=''
    316316
     
    789789  # This message is too long to be a string in the A/UX 3.1 sh.
    790790  cat <<_ACEOF
    791 \`configure' configures orxonox 0.1-pre-alpha to adapt to many kinds of systems.
     791\`configure' configures orxonox 0.2.0_alpha-r1 to adapt to many kinds of systems.
    792792
    793793Usage: $0 [OPTION]... [VAR=VALUE]...
     
    856856if test -n "$ac_init_help"; then
    857857  case $ac_init_help in
    858      short | recursive ) echo "Configuration of orxonox 0.1-pre-alpha:";;
     858     short | recursive ) echo "Configuration of orxonox 0.2.0_alpha-r1:";;
    859859   esac
    860860  cat <<\_ACEOF
     
    865865  --disable-dependency-tracking  speeds up one-time build
    866866  --enable-dependency-tracking   do not reject slow dependency extractors
     867  --enable-debug          compiles in debug mode. Lots of debug info about the
     868                          game.
     869
     870Optional Packages:
     871  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
     872  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
     873  --without-gtk           Prevents GTK from being loaded
     874  --without-sdl-image     Prevents SDL_image from being loaded
    867875
    868876Some influential environment variables:
     
    976984if $ac_init_version; then
    977985  cat <<\_ACEOF
    978 orxonox configure 0.1-pre-alpha
     986orxonox configure 0.2.0_alpha-r1
    979987generated by GNU Autoconf 2.59
    980988
     
    990998running configure, to aid debugging if configure makes a mistake.
    991999
    992 It was created by orxonox $as_me 0.1-pre-alpha, which was
     1000It was created by orxonox $as_me 0.2.0_alpha-r1, which was
    9931001generated by GNU Autoconf 2.59.  Invocation command line was
    9941002
     
    17111719# Define the identity of the package.
    17121720 PACKAGE='orxonox'
    1713  VERSION='0.1-pre-alpha'
     1721 VERSION='0.2.0_alpha-r1'
    17141722
    17151723
     
    38303838
    38313839
     3840### CHECKING  OPTIONAT ARGUMENTS
     3841## DEBUG-statement
     3842DEBUG=no
     3843echo "$as_me:$LINENO: checking if DEBUG-mode should be enabled" >&5
     3844echo $ECHO_N "checking if DEBUG-mode should be enabled... $ECHO_C" >&6
     3845# Check whether --enable-debug or --disable-debug was given.
     3846if test "${enable_debug+set}" = set; then
     3847  enableval="$enable_debug"
     3848  DEBUG=$enableval
     3849fi;
     3850
     3851if test "$DEBUG" = "no"; then
     3852        echo "no"
     3853        echo " -> Setting debuglevel to 1. Like this you can still see errors."
     3854        DEBUG=1
     3855elif test "$DEBUG" = yes; then
     3856        echo "yes"
     3857        echo " -> Setting debuglevel to 3. HARD DEBUG MODE!!."
     3858        DEBUG=3
     3859else
     3860        echo "yes set to $DEBUG"
     3861fi
     3862
     3863cat >>confdefs.h <<_ACEOF
     3864#define DEBUG $DEBUG
     3865_ACEOF
     3866
     3867
     3868
     3869
     3870## GTK-disabled
     3871echo "$as_me:$LINENO: checking if gtk should be enabled" >&5
     3872echo $ECHO_N "checking if gtk should be enabled... $ECHO_C" >&6
     3873
     3874# Check whether --with-gtk or --without-gtk was given.
     3875if test "${with_gtk+set}" = set; then
     3876  withval="$with_gtk"
     3877  def_gtk=no
     3878else
     3879  def_gtk=yes
     3880fi;
     3881if test "$def_gtk" = yes; then
     3882  echo "yes"
     3883fi
     3884if test "$def_gtk" = no; then
     3885  echo "no"
     3886fi
     3887### SDL_image-disable
     3888def_sdl_image=yes
     3889echo "$as_me:$LINENO: checking if SDL_image should be enabled" >&5
     3890echo $ECHO_N "checking if SDL_image should be enabled... $ECHO_C" >&6
     3891
     3892# Check whether --with-sdl_image or --without-sdl_image was given.
     3893if test "${with_sdl_image+set}" = set; then
     3894  withval="$with_sdl_image"
     3895  def_sdl_image=no
     3896fi;
     3897if test "$def_sdl_image" = yes; then
     3898  echo "yes"
     3899fi
     3900if test "$def_sdl_image" = no; then
     3901  echo "no"
     3902fi
     3903
     3904
     3905## PROGRAMM CHECKING
     3906# checking for Doxygen
     3907# Extract the first word of "doxygen", so it can be a program name with args.
     3908set dummy doxygen; ac_word=$2
     3909echo "$as_me:$LINENO: checking for $ac_word" >&5
     3910echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
     3911if test "${ac_cv_path_DOXYGEN+set}" = set; then
     3912  echo $ECHO_N "(cached) $ECHO_C" >&6
     3913else
     3914  case $DOXYGEN in
     3915  [\\/]* | ?:[\\/]*)
     3916  ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
     3917  ;;
     3918  *)
     3919  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     3920for as_dir in $PATH
     3921do
     3922  IFS=$as_save_IFS
     3923  test -z "$as_dir" && as_dir=.
     3924  for ac_exec_ext in '' $ac_executable_extensions; do
     3925  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     3926    ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
     3927    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     3928    break 2
     3929  fi
     3930done
     3931done
     3932
     3933  ;;
     3934esac
     3935fi
     3936DOXYGEN=$ac_cv_path_DOXYGEN
     3937
     3938if test -n "$DOXYGEN"; then
     3939  echo "$as_me:$LINENO: result: $DOXYGEN" >&5
     3940echo "${ECHO_T}$DOXYGEN" >&6
     3941else
     3942  echo "$as_me:$LINENO: result: no" >&5
     3943echo "${ECHO_T}no" >&6
     3944fi
     3945
     3946
     3947
     3948if test $DOXYGEN; then
     3949  DOXYGEN_TRUE=
     3950  DOXYGEN_FALSE='#'
     3951else
     3952  DOXYGEN_TRUE='#'
     3953  DOXYGEN_FALSE=
     3954fi
     3955
     3956
    38323957### CHECKING FOR SYSTEM ###
    38333958
     
    47444869    fi
    47454870
    4746 
    47474871    ;;
    47484872
     
    47534877 Linux="yes"
    47544878
     4879CPPFLAGS="-I/usr/X11R6/include"
     4880LDFLAGS="-L/usr/Mesa-6.0.1/lib -L/usr/X11R6/lib $LDFLAGS"
    47554881# checking gl header
    47564882
     
    53725498
    53735499
    5374 # checking for SDL-libs
     5500# checking for SDL-lib
    53755501    echo "$as_me:$LINENO: checking for main in -lSDL" >&5
    53765502echo $ECHO_N "checking for main in -lSDL... $ECHO_C" >&6
     
    54455571     fi
    54465572
     5573
    54475574## checking for SDL
    54485575#    SDL_VERSION=1.2.7
     
    54615588 osX="yes"
    54625589
     5590 CPPFLAGS="-I/sw/include $CPPFLAGS"
    54635591# checking gl header
    54645592
     
    57895917       CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
    57905918       LIBS="$LIBS $SDL_LIBS"
     5919
    57915920    ;;
    57925921
     
    57975926
    57985927
    5799 
    5800 
    5801 
    5802 ## checking for GTK
    5803 
    5804   succeeded=no
    5805 
    5806   if test -z "$PKG_CONFIG"; then
    5807     # Extract the first word of "pkg-config", so it can be a program name with args.
    5808 set dummy pkg-config; ac_word=$2
    5809 echo "$as_me:$LINENO: checking for $ac_word" >&5
    5810 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
    5811 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
    5812   echo $ECHO_N "(cached) $ECHO_C" >&6
    5813 else
    5814   case $PKG_CONFIG in
    5815   [\\/]* | ?:[\\/]*)
    5816   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
    5817   ;;
    5818   *)
    5819   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    5820 for as_dir in $PATH
    5821 do
    5822   IFS=$as_save_IFS
    5823   test -z "$as_dir" && as_dir=.
    5824   for ac_exec_ext in '' $ac_executable_extensions; do
    5825   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    5826     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
    5827     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    5828     break 2
    5829   fi
    5830 done
    5831 done
    5832 
    5833   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
    5834   ;;
    5835 esac
    5836 fi
    5837 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
    5838 
    5839 if test -n "$PKG_CONFIG"; then
    5840   echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
    5841 echo "${ECHO_T}$PKG_CONFIG" >&6
    5842 else
    5843   echo "$as_me:$LINENO: result: no" >&5
    5844 echo "${ECHO_T}no" >&6
    5845 fi
    5846 
    5847   fi
    5848 
    5849   if test "$PKG_CONFIG" = "no" ; then
    5850      echo "*** The pkg-config script could not be found. Make sure it is"
    5851      echo "*** in your path, or set the PKG_CONFIG environment variable"
    5852      echo "*** to the full path to pkg-config."
    5853      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
    5854   else
    5855      PKG_CONFIG_MIN_VERSION=0.9.0
    5856      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
    5857         echo "$as_me:$LINENO: checking for gtk+-2.0 >= 2.0.3 gthread-2.0 >= 2.0.3" >&5
    5858 echo $ECHO_N "checking for gtk+-2.0 >= 2.0.3 gthread-2.0 >= 2.0.3... $ECHO_C" >&6
    5859 
    5860         if $PKG_CONFIG --exists "gtk+-2.0 >= 2.0.3 gthread-2.0 >= 2.0.3" ; then
    5861             echo "$as_me:$LINENO: result: yes" >&5
    5862 echo "${ECHO_T}yes" >&6
    5863             succeeded=yes
    5864 
    5865             echo "$as_me:$LINENO: checking GTK2_CFLAGS" >&5
    5866 echo $ECHO_N "checking GTK2_CFLAGS... $ECHO_C" >&6
    5867             GTK2_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0 >= 2.0.3 gthread-2.0 >= 2.0.3"`
    5868             echo "$as_me:$LINENO: result: $GTK2_CFLAGS" >&5
    5869 echo "${ECHO_T}$GTK2_CFLAGS" >&6
    5870 
    5871             echo "$as_me:$LINENO: checking GTK2_LIBS" >&5
    5872 echo $ECHO_N "checking GTK2_LIBS... $ECHO_C" >&6
    5873             GTK2_LIBS=`$PKG_CONFIG --libs "gtk+-2.0 >= 2.0.3 gthread-2.0 >= 2.0.3"`
    5874             echo "$as_me:$LINENO: result: $GTK2_LIBS" >&5
    5875 echo "${ECHO_T}$GTK2_LIBS" >&6
    5876         else
    5877             GTK2_CFLAGS=""
    5878             GTK2_LIBS=""
    5879             ## If we have a custom action on failure, don't print errors, but
    5880             ## do set a variable so people can do so.
    5881             GTK2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk+-2.0 >= 2.0.3 gthread-2.0 >= 2.0.3"`
    5882 
    5883         fi
    5884 
    5885 
    5886 
    5887      else
    5888         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
    5889         echo "*** See http://www.freedesktop.org/software/pkgconfig"
    5890      fi
    5891   fi
    5892 
    5893   if test $succeeded = yes; then
    5894      have_gtk2=yes
    5895   else
    5896      have_gtk2=no
    5897   fi
    5898 
    5899 
    5900 
    5901 
    5902 
    5903 if test "x$have_gtk2" = xyes; then
    5904   HAVE_GTK2_TRUE=
    5905   HAVE_GTK2_FALSE='#'
    5906 else
    5907   HAVE_GTK2_TRUE='#'
    5908   HAVE_GTK2_FALSE=
    5909 fi
    5910 
    5911 
    5912 
    5913 #checking for pthread libs
    5914  echo "$as_me:$LINENO: checking for main in -lpthread" >&5
    5915 echo $ECHO_N "checking for main in -lpthread... $ECHO_C" >&6
    5916 if test "${ac_cv_lib_pthread_main+set}" = set; then
    5917   echo $ECHO_N "(cached) $ECHO_C" >&6
    5918 else
    5919   ac_check_lib_save_LIBS=$LIBS
    5920 LIBS="-lpthread  $LIBS"
    5921 cat >conftest.$ac_ext <<_ACEOF
    5922 /* confdefs.h.  */
    5923 _ACEOF
    5924 cat confdefs.h >>conftest.$ac_ext
    5925 cat >>conftest.$ac_ext <<_ACEOF
    5926 /* end confdefs.h.  */
    5927 
    5928 
    5929 int
    5930 main ()
    5931 {
    5932 main ();
    5933   ;
    5934   return 0;
    5935 }
    5936 _ACEOF
    5937 rm -f conftest.$ac_objext conftest$ac_exeext
    5938 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    5939   (eval $ac_link) 2>conftest.er1
    5940   ac_status=$?
    5941   grep -v '^ *+' conftest.er1 >conftest.err
    5942   rm -f conftest.er1
    5943   cat conftest.err >&5
    5944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5945   (exit $ac_status); } &&
    5946          { ac_try='test -z "$ac_c_werror_flag"
    5947                          || test ! -s conftest.err'
    5948   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    5949   (eval $ac_try) 2>&5
    5950   ac_status=$?
    5951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5952   (exit $ac_status); }; } &&
    5953          { ac_try='test -s conftest$ac_exeext'
    5954   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    5955   (eval $ac_try) 2>&5
    5956   ac_status=$?
    5957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5958   (exit $ac_status); }; }; then
    5959   ac_cv_lib_pthread_main=yes
    5960 else
    5961   echo "$as_me: failed program was:" >&5
    5962 sed 's/^/| /' conftest.$ac_ext >&5
    5963 
    5964 ac_cv_lib_pthread_main=no
    5965 fi
    5966 rm -f conftest.err conftest.$ac_objext \
    5967       conftest$ac_exeext conftest.$ac_ext
    5968 LIBS=$ac_check_lib_save_LIBS
    5969 fi
    5970 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_main" >&5
    5971 echo "${ECHO_T}$ac_cv_lib_pthread_main" >&6
    5972 if test $ac_cv_lib_pthread_main = yes; then
    5973   FOUND_pthread=yes
    5974 fi
    5975 
    5976  if test "$FOUND_pthread" = "yes" ; then
    5977     LIBS="$LIBS -lpthread"
    5978  fi
    5979 
    5980 
    5981 # FIXME: Replace `main' with a function in `-lm':
    5982 
    5983 echo "$as_me:$LINENO: checking for main in -lm" >&5
    5984 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
    5985 if test "${ac_cv_lib_m_main+set}" = set; then
    5986   echo $ECHO_N "(cached) $ECHO_C" >&6
    5987 else
    5988   ac_check_lib_save_LIBS=$LIBS
    5989 LIBS="-lm  $LIBS"
    5990 cat >conftest.$ac_ext <<_ACEOF
    5991 /* confdefs.h.  */
    5992 _ACEOF
    5993 cat confdefs.h >>conftest.$ac_ext
    5994 cat >>conftest.$ac_ext <<_ACEOF
    5995 /* end confdefs.h.  */
    5996 
    5997 
    5998 int
    5999 main ()
    6000 {
    6001 main ();
    6002   ;
    6003   return 0;
    6004 }
    6005 _ACEOF
    6006 rm -f conftest.$ac_objext conftest$ac_exeext
    6007 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    6008   (eval $ac_link) 2>conftest.er1
    6009   ac_status=$?
    6010   grep -v '^ *+' conftest.er1 >conftest.err
    6011   rm -f conftest.er1
    6012   cat conftest.err >&5
    6013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    6014   (exit $ac_status); } &&
    6015          { ac_try='test -z "$ac_c_werror_flag"
    6016                          || test ! -s conftest.err'
    6017   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    6018   (eval $ac_try) 2>&5
    6019   ac_status=$?
    6020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    6021   (exit $ac_status); }; } &&
    6022          { ac_try='test -s conftest$ac_exeext'
    6023   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    6024   (eval $ac_try) 2>&5
    6025   ac_status=$?
    6026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    6027   (exit $ac_status); }; }; then
    6028   ac_cv_lib_m_main=yes
    6029 else
    6030   echo "$as_me: failed program was:" >&5
    6031 sed 's/^/| /' conftest.$ac_ext >&5
    6032 
    6033 ac_cv_lib_m_main=no
    6034 fi
    6035 rm -f conftest.err conftest.$ac_objext \
    6036       conftest$ac_exeext conftest.$ac_ext
    6037 LIBS=$ac_check_lib_save_LIBS
    6038 fi
    6039 echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
    6040 echo "${ECHO_T}$ac_cv_lib_m_main" >&6
    6041 if test $ac_cv_lib_m_main = yes; then
    6042   cat >>confdefs.h <<_ACEOF
    6043 #define HAVE_LIBM 1
    6044 _ACEOF
    6045 
    6046   LIBS="-lm $LIBS"
    6047 
    6048 fi
    6049 
    6050 
    6051 
    6052 # Checks for header files.
    6053 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
    6054 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
    6055 if test "${ac_cv_header_stdc+set}" = set; then
    6056   echo $ECHO_N "(cached) $ECHO_C" >&6
    6057 else
    6058   cat >conftest.$ac_ext <<_ACEOF
    6059 /* confdefs.h.  */
    6060 _ACEOF
    6061 cat confdefs.h >>conftest.$ac_ext
    6062 cat >>conftest.$ac_ext <<_ACEOF
    6063 /* end confdefs.h.  */
    6064 #include <stdlib.h>
    6065 #include <stdarg.h>
    6066 #include <string.h>
    6067 #include <float.h>
    6068 
    6069 int
    6070 main ()
    6071 {
    6072 
    6073   ;
    6074   return 0;
    6075 }
    6076 _ACEOF
    6077 rm -f conftest.$ac_objext
    6078 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    6079   (eval $ac_compile) 2>conftest.er1
    6080   ac_status=$?
    6081   grep -v '^ *+' conftest.er1 >conftest.err
    6082   rm -f conftest.er1
    6083   cat conftest.err >&5
    6084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    6085   (exit $ac_status); } &&
    6086          { ac_try='test -z "$ac_c_werror_flag"
    6087                          || test ! -s conftest.err'
    6088   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    6089   (eval $ac_try) 2>&5
    6090   ac_status=$?
    6091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    6092   (exit $ac_status); }; } &&
    6093          { ac_try='test -s conftest.$ac_objext'
    6094   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    6095   (eval $ac_try) 2>&5
    6096   ac_status=$?
    6097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    6098   (exit $ac_status); }; }; then
    6099   ac_cv_header_stdc=yes
    6100 else
    6101   echo "$as_me: failed program was:" >&5
    6102 sed 's/^/| /' conftest.$ac_ext >&5
    6103 
    6104 ac_cv_header_stdc=no
    6105 fi
    6106 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
    6107 
    6108 if test $ac_cv_header_stdc = yes; then
    6109   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
    6110   cat >conftest.$ac_ext <<_ACEOF
    6111 /* confdefs.h.  */
    6112 _ACEOF
    6113 cat confdefs.h >>conftest.$ac_ext
    6114 cat >>conftest.$ac_ext <<_ACEOF
    6115 /* end confdefs.h.  */
    6116 #include <string.h>
    6117 
    6118 _ACEOF
    6119 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
    6120   $EGREP "memchr" >/dev/null 2>&1; then
    6121   :
    6122 else
    6123   ac_cv_header_stdc=no
    6124 fi
    6125 rm -f conftest*
    6126 
    6127 fi
    6128 
    6129 if test $ac_cv_header_stdc = yes; then
    6130   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
    6131   cat >conftest.$ac_ext <<_ACEOF
    6132 /* confdefs.h.  */
    6133 _ACEOF
    6134 cat confdefs.h >>conftest.$ac_ext
    6135 cat >>conftest.$ac_ext <<_ACEOF
    6136 /* end confdefs.h.  */
    6137 #include <stdlib.h>
    6138 
    6139 _ACEOF
    6140 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
    6141   $EGREP "free" >/dev/null 2>&1; then
    6142   :
    6143 else
    6144   ac_cv_header_stdc=no
    6145 fi
    6146 rm -f conftest*
    6147 
    6148 fi
    6149 
    6150 if test $ac_cv_header_stdc = yes; then
    6151   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
    6152   if test "$cross_compiling" = yes; then
    6153   :
    6154 else
    6155   cat >conftest.$ac_ext <<_ACEOF
    6156 /* confdefs.h.  */
    6157 _ACEOF
    6158 cat confdefs.h >>conftest.$ac_ext
    6159 cat >>conftest.$ac_ext <<_ACEOF
    6160 /* end confdefs.h.  */
    6161 #include <ctype.h>
    6162 #if ((' ' & 0x0FF) == 0x020)
    6163 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
    6164 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
    6165 #else
    6166 # define ISLOWER(c) \
    6167                    (('a' <= (c) && (c) <= 'i') \
    6168                      || ('j' <= (c) && (c) <= 'r') \
    6169                      || ('s' <= (c) && (c) <= 'z'))
    6170 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
    6171 #endif
    6172 
    6173 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
    6174 int
    6175 main ()
    6176 {
    6177   int i;
    6178   for (i = 0; i < 256; i++)
    6179     if (XOR (islower (i), ISLOWER (i))
    6180         || toupper (i) != TOUPPER (i))
    6181       exit(2);
    6182   exit (0);
    6183 }
    6184 _ACEOF
    6185 rm -f conftest$ac_exeext
    6186 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    6187   (eval $ac_link) 2>&5
    6188   ac_status=$?
    6189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    6190   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
    6191   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    6192   (eval $ac_try) 2>&5
    6193   ac_status=$?
    6194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    6195   (exit $ac_status); }; }; then
    6196   :
    6197 else
    6198   echo "$as_me: program exited with status $ac_status" >&5
    6199 echo "$as_me: failed program was:" >&5
    6200 sed 's/^/| /' conftest.$ac_ext >&5
    6201 
    6202 ( exit $ac_status )
    6203 ac_cv_header_stdc=no
    6204 fi
    6205 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
    6206 fi
    6207 fi
    6208 fi
    6209 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
    6210 echo "${ECHO_T}$ac_cv_header_stdc" >&6
    6211 if test $ac_cv_header_stdc = yes; then
    6212 
    6213 cat >>confdefs.h <<\_ACEOF
    6214 #define STDC_HEADERS 1
    6215 _ACEOF
    6216 
    6217 fi
    6218 
    6219 
    6220 
    6221 for ac_header in stdlib.h string.h
     5928## check for SDL_Image
     5929if test "$def_sdl_image" = "yes"; then
     5930# checking for SDL_image-headers
     5931
     5932for ac_header in SDL/SDL_image.h
    62225933do
    62235934as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
     
    63646075_ACEOF
    63656076
     6077else
     6078  echo "sdl_image not found. falling back to other options"; def_sdl_image=no
    63666079fi
    63676080
    63686081done
    63696082
    6370 
    6371 # Checks for typedefs, structures, and compiler characteristics.
    6372 echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
    6373 echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6
    6374 if test "${ac_cv_header_stdbool_h+set}" = set; then
     6083fi
     6084if test "$def_sdl_image" = "yes"; then
     6085# checking for SDL_image-lib
     6086  echo "$as_me:$LINENO: checking for main in -lSDL_image" >&5
     6087echo $ECHO_N "checking for main in -lSDL_image... $ECHO_C" >&6
     6088if test "${ac_cv_lib_SDL_image_main+set}" = set; then
    63756089  echo $ECHO_N "(cached) $ECHO_C" >&6
    63766090else
    6377   cat >conftest.$ac_ext <<_ACEOF
     6091  ac_check_lib_save_LIBS=$LIBS
     6092LIBS="-lSDL_image  $LIBS"
     6093cat >conftest.$ac_ext <<_ACEOF
    63786094/* confdefs.h.  */
    63796095_ACEOF
     
    63826098/* end confdefs.h.  */
    63836099
    6384 #include <stdbool.h>
    6385 #ifndef bool
    6386 # error bool is not defined
    6387 #endif
    6388 #ifndef false
    6389 # error false is not defined
    6390 #endif
    6391 #if false
    6392 # error false is not 0
    6393 #endif
    6394 #ifndef true
    6395 # error true is not defined
    6396 #endif
    6397 #if true != 1
    6398 # error true is not 1
    6399 #endif
    6400 #ifndef __bool_true_false_are_defined
    6401 # error __bool_true_false_are_defined is not defined
    6402 #endif
    6403 
    6404         struct s { _Bool s: 1; _Bool t; } s;
    6405 
    6406         char a[true == 1 ? 1 : -1];
    6407         char b[false == 0 ? 1 : -1];
    6408         char c[__bool_true_false_are_defined == 1 ? 1 : -1];
    6409         char d[(bool) -0.5 == true ? 1 : -1];
    6410         bool e = &s;
    6411         char f[(_Bool) -0.0 == false ? 1 : -1];
    6412         char g[true];
    6413         char h[sizeof (_Bool)];
    6414         char i[sizeof s.t];
    64156100
    64166101int
    64176102main ()
    64186103{
    6419  return !a + !b + !c + !d + !e + !f + !g + !h + !i;
     6104main ();
    64206105  ;
    64216106  return 0;
    64226107}
    64236108_ACEOF
    6424 rm -f conftest.$ac_objext
    6425 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    6426   (eval $ac_compile) 2>conftest.er1
     6109rm -f conftest.$ac_objext conftest$ac_exeext
     6110if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     6111  (eval $ac_link) 2>conftest.er1
    64276112  ac_status=$?
    64286113  grep -v '^ *+' conftest.er1 >conftest.err
     
    64386123  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    64396124  (exit $ac_status); }; } &&
    6440          { ac_try='test -s conftest.$ac_objext'
     6125         { ac_try='test -s conftest$ac_exeext'
    64416126  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    64426127  (eval $ac_try) 2>&5
     
    64446129  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    64456130  (exit $ac_status); }; }; then
    6446   ac_cv_header_stdbool_h=yes
     6131  ac_cv_lib_SDL_image_main=yes
    64476132else
    64486133  echo "$as_me: failed program was:" >&5
    64496134sed 's/^/| /' conftest.$ac_ext >&5
    64506135
    6451 ac_cv_header_stdbool_h=no
    6452 fi
    6453 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
    6454 fi
    6455 echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
    6456 echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6
    6457 echo "$as_me:$LINENO: checking for _Bool" >&5
    6458 echo $ECHO_N "checking for _Bool... $ECHO_C" >&6
    6459 if test "${ac_cv_type__Bool+set}" = set; then
    6460   echo $ECHO_N "(cached) $ECHO_C" >&6
    6461 else
    6462   cat >conftest.$ac_ext <<_ACEOF
    6463 /* confdefs.h.  */
    6464 _ACEOF
    6465 cat confdefs.h >>conftest.$ac_ext
    6466 cat >>conftest.$ac_ext <<_ACEOF
    6467 /* end confdefs.h.  */
    6468 $ac_includes_default
    6469 int
    6470 main ()
    6471 {
    6472 if ((_Bool *) 0)
    6473   return 0;
    6474 if (sizeof (_Bool))
    6475   return 0;
    6476   ;
    6477   return 0;
    6478 }
    6479 _ACEOF
    6480 rm -f conftest.$ac_objext
    6481 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    6482   (eval $ac_compile) 2>conftest.er1
    6483   ac_status=$?
    6484   grep -v '^ *+' conftest.er1 >conftest.err
    6485   rm -f conftest.er1
    6486   cat conftest.err >&5
    6487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    6488   (exit $ac_status); } &&
    6489          { ac_try='test -z "$ac_c_werror_flag"
    6490                          || test ! -s conftest.err'
    6491   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    6492   (eval $ac_try) 2>&5
    6493   ac_status=$?
    6494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    6495   (exit $ac_status); }; } &&
    6496          { ac_try='test -s conftest.$ac_objext'
    6497   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    6498   (eval $ac_try) 2>&5
    6499   ac_status=$?
    6500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    6501   (exit $ac_status); }; }; then
    6502   ac_cv_type__Bool=yes
    6503 else
    6504   echo "$as_me: failed program was:" >&5
    6505 sed 's/^/| /' conftest.$ac_ext >&5
    6506 
    6507 ac_cv_type__Bool=no
    6508 fi
    6509 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
    6510 fi
    6511 echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
    6512 echo "${ECHO_T}$ac_cv_type__Bool" >&6
    6513 if test $ac_cv_type__Bool = yes; then
    6514 
    6515 cat >>confdefs.h <<_ACEOF
    6516 #define HAVE__BOOL 1
    6517 _ACEOF
    6518 
    6519 
    6520 fi
    6521 
    6522 if test $ac_cv_header_stdbool_h = yes; then
    6523 
    6524 cat >>confdefs.h <<\_ACEOF
    6525 #define HAVE_STDBOOL_H 1
    6526 _ACEOF
    6527 
    6528 fi
    6529 
    6530 
    6531 # Checks for library functions.
    6532 
    6533 for ac_header in stdlib.h
     6136ac_cv_lib_SDL_image_main=no
     6137fi
     6138rm -f conftest.err conftest.$ac_objext \
     6139      conftest$ac_exeext conftest.$ac_ext
     6140LIBS=$ac_check_lib_save_LIBS
     6141fi
     6142echo "$as_me:$LINENO: result: $ac_cv_lib_SDL_image_main" >&5
     6143echo "${ECHO_T}$ac_cv_lib_SDL_image_main" >&6
     6144if test $ac_cv_lib_SDL_image_main = yes; then
     6145  FOUND_SDL_image=yes
     6146fi
     6147
     6148     if test "$FOUND_SDL_image" = "yes" ; then
     6149       LIBS="$LIBS -lSDL_image"
     6150     else
     6151        echo "------------------"
     6152        echo "SDL_image library not found."
     6153        echo "please install the SDL_image library, which can be found at http://www.libsdl.org/projects/SDL_image/"
     6154        echo "------------------"
     6155        exit -1
     6156     fi
     6157fi
     6158
     6159
     6160if test "$def_sdl_image" = "no"; then
     6161 ## checking for libjpeg
     6162
     6163for ac_header in jpeglib.h
    65346164do
    65356165as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
     
    66756305#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
    66766306_ACEOF
     6307 jpegHeader="yes"
     6308else
     6309  jpegHeader="no"
     6310fi
     6311
     6312done
     6313
     6314 if test $jpegHeader = "no"; then
     6315        echo " not including jpeg."
     6316 else
     6317  echo "$as_me:$LINENO: checking for main in -ljpeg" >&5
     6318echo $ECHO_N "checking for main in -ljpeg... $ECHO_C" >&6
     6319if test "${ac_cv_lib_jpeg_main+set}" = set; then
     6320  echo $ECHO_N "(cached) $ECHO_C" >&6
     6321else
     6322  ac_check_lib_save_LIBS=$LIBS
     6323LIBS="-ljpeg  $LIBS"
     6324cat >conftest.$ac_ext <<_ACEOF
     6325/* confdefs.h.  */
     6326_ACEOF
     6327cat confdefs.h >>conftest.$ac_ext
     6328cat >>conftest.$ac_ext <<_ACEOF
     6329/* end confdefs.h.  */
     6330
     6331
     6332int
     6333main ()
     6334{
     6335main ();
     6336  ;
     6337  return 0;
     6338}
     6339_ACEOF
     6340rm -f conftest.$ac_objext conftest$ac_exeext
     6341if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     6342  (eval $ac_link) 2>conftest.er1
     6343  ac_status=$?
     6344  grep -v '^ *+' conftest.er1 >conftest.err
     6345  rm -f conftest.er1
     6346  cat conftest.err >&5
     6347  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6348  (exit $ac_status); } &&
     6349         { ac_try='test -z "$ac_c_werror_flag"
     6350                         || test ! -s conftest.err'
     6351  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     6352  (eval $ac_try) 2>&5
     6353  ac_status=$?
     6354  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6355  (exit $ac_status); }; } &&
     6356         { ac_try='test -s conftest$ac_exeext'
     6357  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     6358  (eval $ac_try) 2>&5
     6359  ac_status=$?
     6360  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6361  (exit $ac_status); }; }; then
     6362  ac_cv_lib_jpeg_main=yes
     6363else
     6364  echo "$as_me: failed program was:" >&5
     6365sed 's/^/| /' conftest.$ac_ext >&5
     6366
     6367ac_cv_lib_jpeg_main=no
     6368fi
     6369rm -f conftest.err conftest.$ac_objext \
     6370      conftest$ac_exeext conftest.$ac_ext
     6371LIBS=$ac_check_lib_save_LIBS
     6372fi
     6373echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_main" >&5
     6374echo "${ECHO_T}$ac_cv_lib_jpeg_main" >&6
     6375if test $ac_cv_lib_jpeg_main = yes; then
     6376  FOUND_jpeg=yes
     6377fi
     6378
     6379    if test "$FOUND_jpeg" = "yes" ; then
     6380      LIBS="$LIBS -ljpeg"
     6381    else
     6382         echo "------------------"
     6383         echo "jpeg library not found."
     6384         echo "please install the jpeg library from the Independent JPEG Group, which can be found at http://www.ijg.org"
     6385         echo "------------------"
     6386         exit -1
     6387    fi
     6388 fi
     6389
     6390 ## checking for libpng
     6391
     6392for ac_header in png.h
     6393do
     6394as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
     6395if eval "test \"\${$as_ac_Header+set}\" = set"; then
     6396  echo "$as_me:$LINENO: checking for $ac_header" >&5
     6397echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
     6398if eval "test \"\${$as_ac_Header+set}\" = set"; then
     6399  echo $ECHO_N "(cached) $ECHO_C" >&6
     6400fi
     6401echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
     6402echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
     6403else
     6404  # Is the header compilable?
     6405echo "$as_me:$LINENO: checking $ac_header usability" >&5
     6406echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
     6407cat >conftest.$ac_ext <<_ACEOF
     6408/* confdefs.h.  */
     6409_ACEOF
     6410cat confdefs.h >>conftest.$ac_ext
     6411cat >>conftest.$ac_ext <<_ACEOF
     6412/* end confdefs.h.  */
     6413$ac_includes_default
     6414#include <$ac_header>
     6415_ACEOF
     6416rm -f conftest.$ac_objext
     6417if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     6418  (eval $ac_compile) 2>conftest.er1
     6419  ac_status=$?
     6420  grep -v '^ *+' conftest.er1 >conftest.err
     6421  rm -f conftest.er1
     6422  cat conftest.err >&5
     6423  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6424  (exit $ac_status); } &&
     6425         { ac_try='test -z "$ac_c_werror_flag"
     6426                         || test ! -s conftest.err'
     6427  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     6428  (eval $ac_try) 2>&5
     6429  ac_status=$?
     6430  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6431  (exit $ac_status); }; } &&
     6432         { ac_try='test -s conftest.$ac_objext'
     6433  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     6434  (eval $ac_try) 2>&5
     6435  ac_status=$?
     6436  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6437  (exit $ac_status); }; }; then
     6438  ac_header_compiler=yes
     6439else
     6440  echo "$as_me: failed program was:" >&5
     6441sed 's/^/| /' conftest.$ac_ext >&5
     6442
     6443ac_header_compiler=no
     6444fi
     6445rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     6446echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
     6447echo "${ECHO_T}$ac_header_compiler" >&6
     6448
     6449# Is the header present?
     6450echo "$as_me:$LINENO: checking $ac_header presence" >&5
     6451echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
     6452cat >conftest.$ac_ext <<_ACEOF
     6453/* confdefs.h.  */
     6454_ACEOF
     6455cat confdefs.h >>conftest.$ac_ext
     6456cat >>conftest.$ac_ext <<_ACEOF
     6457/* end confdefs.h.  */
     6458#include <$ac_header>
     6459_ACEOF
     6460if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
     6461  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
     6462  ac_status=$?
     6463  grep -v '^ *+' conftest.er1 >conftest.err
     6464  rm -f conftest.er1
     6465  cat conftest.err >&5
     6466  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6467  (exit $ac_status); } >/dev/null; then
     6468  if test -s conftest.err; then
     6469    ac_cpp_err=$ac_c_preproc_warn_flag
     6470    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
     6471  else
     6472    ac_cpp_err=
     6473  fi
     6474else
     6475  ac_cpp_err=yes
     6476fi
     6477if test -z "$ac_cpp_err"; then
     6478  ac_header_preproc=yes
     6479else
     6480  echo "$as_me: failed program was:" >&5
     6481sed 's/^/| /' conftest.$ac_ext >&5
     6482
     6483  ac_header_preproc=no
     6484fi
     6485rm -f conftest.err conftest.$ac_ext
     6486echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
     6487echo "${ECHO_T}$ac_header_preproc" >&6
     6488
     6489# So?  What about this header?
     6490case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
     6491  yes:no: )
     6492    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
     6493echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
     6494    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
     6495echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
     6496    ac_header_preproc=yes
     6497    ;;
     6498  no:yes:* )
     6499    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
     6500echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
     6501    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
     6502echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
     6503    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
     6504echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
     6505    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
     6506echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
     6507    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
     6508echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
     6509    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
     6510echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
     6511    (
     6512      cat <<\_ASBOX
     6513## ------------------------------------------- ##
     6514## Report this to orxonox-dev@mail.datacore.ch ##
     6515## ------------------------------------------- ##
     6516_ASBOX
     6517    ) |
     6518      sed "s/^/$as_me: WARNING:     /" >&2
     6519    ;;
     6520esac
     6521echo "$as_me:$LINENO: checking for $ac_header" >&5
     6522echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
     6523if eval "test \"\${$as_ac_Header+set}\" = set"; then
     6524  echo $ECHO_N "(cached) $ECHO_C" >&6
     6525else
     6526  eval "$as_ac_Header=\$ac_header_preproc"
     6527fi
     6528echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
     6529echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
     6530
     6531fi
     6532if test `eval echo '${'$as_ac_Header'}'` = yes; then
     6533  cat >>confdefs.h <<_ACEOF
     6534#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
     6535_ACEOF
     6536 pngHeader="yes"
     6537else
     6538  pngHeader="no"
     6539fi
     6540
     6541done
     6542
     6543 if test $pngHeader = "no"; then
     6544        echo " not including png."
     6545 else
     6546  echo "$as_me:$LINENO: checking for main in -lpng" >&5
     6547echo $ECHO_N "checking for main in -lpng... $ECHO_C" >&6
     6548if test "${ac_cv_lib_png_main+set}" = set; then
     6549  echo $ECHO_N "(cached) $ECHO_C" >&6
     6550else
     6551  ac_check_lib_save_LIBS=$LIBS
     6552LIBS="-lpng  $LIBS"
     6553cat >conftest.$ac_ext <<_ACEOF
     6554/* confdefs.h.  */
     6555_ACEOF
     6556cat confdefs.h >>conftest.$ac_ext
     6557cat >>conftest.$ac_ext <<_ACEOF
     6558/* end confdefs.h.  */
     6559
     6560
     6561int
     6562main ()
     6563{
     6564main ();
     6565  ;
     6566  return 0;
     6567}
     6568_ACEOF
     6569rm -f conftest.$ac_objext conftest$ac_exeext
     6570if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     6571  (eval $ac_link) 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_exeext'
     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_lib_png_main=yes
     6592else
     6593  echo "$as_me: failed program was:" >&5
     6594sed 's/^/| /' conftest.$ac_ext >&5
     6595
     6596ac_cv_lib_png_main=no
     6597fi
     6598rm -f conftest.err conftest.$ac_objext \
     6599      conftest$ac_exeext conftest.$ac_ext
     6600LIBS=$ac_check_lib_save_LIBS
     6601fi
     6602echo "$as_me:$LINENO: result: $ac_cv_lib_png_main" >&5
     6603echo "${ECHO_T}$ac_cv_lib_png_main" >&6
     6604if test $ac_cv_lib_png_main = yes; then
     6605  FOUND_png=yes
     6606fi
     6607
     6608    if test "$FOUND_png" = "yes" ; then
     6609      LIBS="$LIBS -lpng"
     6610    else
     6611         echo "------------------"
     6612         echo "png library not found."
     6613         echo "please install the png library, which can be found at http://libpng.org/pub/png/libpng.html"
     6614         echo "------------------"
     6615         exit -1
     6616    fi
     6617 fi
     6618fi
     6619
     6620## checking for GTK
     6621if test "$def_gtk" = yes; then
     6622
     6623        #PKG_CHECK_MODULES(GTK2, gtk+-2.0 >= 2.0.3 gthread-2.0 >= 2.0.3, have_gtk2=yes, have_gtk2=no)
     6624        echo "$as_me:$LINENO: checking for gtk2.0" >&5
     6625echo $ECHO_N "checking for gtk2.0... $ECHO_C" >&6
     6626        if `pkg-config --exists gtk+-2.0`; then
     6627                echo "yes"
     6628                have_gtk2=yes
     6629                GTK2_LIBS=`pkg-config --libs gtk+-2.0`
     6630                GTK2_CFLAGS=`pkg-config --cflags gtk+-2.0`
     6631
     6632cat >>confdefs.h <<_ACEOF
     6633#define HAVE_GTK2 1
     6634_ACEOF
     6635
     6636        else
     6637                echo "no"
     6638        fi
     6639
     6640fi
     6641
     6642
     6643
     6644
     6645if test x$have_gtk2 = xyes; then
     6646  HAVE_GTK2_TRUE=
     6647  HAVE_GTK2_FALSE='#'
     6648else
     6649  HAVE_GTK2_TRUE='#'
     6650  HAVE_GTK2_FALSE=
     6651fi
     6652
     6653
     6654
     6655
     6656#checking for pthread libs
     6657# AC_CHECK_LIB([pthread], [main], FOUND_pthread=yes)
     6658# if test "$FOUND_pthread" = "yes" ; then
     6659#    LIBS="$LIBS -lpthread"
     6660# fi
     6661
     6662
     6663# FIXME: Replace `main' with a function in `-lm':
     6664
     6665echo "$as_me:$LINENO: checking for main in -lm" >&5
     6666echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
     6667if test "${ac_cv_lib_m_main+set}" = set; then
     6668  echo $ECHO_N "(cached) $ECHO_C" >&6
     6669else
     6670  ac_check_lib_save_LIBS=$LIBS
     6671LIBS="-lm  $LIBS"
     6672cat >conftest.$ac_ext <<_ACEOF
     6673/* confdefs.h.  */
     6674_ACEOF
     6675cat confdefs.h >>conftest.$ac_ext
     6676cat >>conftest.$ac_ext <<_ACEOF
     6677/* end confdefs.h.  */
     6678
     6679
     6680int
     6681main ()
     6682{
     6683main ();
     6684  ;
     6685  return 0;
     6686}
     6687_ACEOF
     6688rm -f conftest.$ac_objext conftest$ac_exeext
     6689if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     6690  (eval $ac_link) 2>conftest.er1
     6691  ac_status=$?
     6692  grep -v '^ *+' conftest.er1 >conftest.err
     6693  rm -f conftest.er1
     6694  cat conftest.err >&5
     6695  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6696  (exit $ac_status); } &&
     6697         { ac_try='test -z "$ac_c_werror_flag"
     6698                         || test ! -s conftest.err'
     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); }; } &&
     6704         { ac_try='test -s conftest$ac_exeext'
     6705  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     6706  (eval $ac_try) 2>&5
     6707  ac_status=$?
     6708  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6709  (exit $ac_status); }; }; then
     6710  ac_cv_lib_m_main=yes
     6711else
     6712  echo "$as_me: failed program was:" >&5
     6713sed 's/^/| /' conftest.$ac_ext >&5
     6714
     6715ac_cv_lib_m_main=no
     6716fi
     6717rm -f conftest.err conftest.$ac_objext \
     6718      conftest$ac_exeext conftest.$ac_ext
     6719LIBS=$ac_check_lib_save_LIBS
     6720fi
     6721echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
     6722echo "${ECHO_T}$ac_cv_lib_m_main" >&6
     6723if test $ac_cv_lib_m_main = yes; then
     6724  cat >>confdefs.h <<_ACEOF
     6725#define HAVE_LIBM 1
     6726_ACEOF
     6727
     6728  LIBS="-lm $LIBS"
     6729
     6730fi
     6731
     6732
     6733
     6734# Checks for header files.
     6735echo "$as_me:$LINENO: checking for ANSI C header files" >&5
     6736echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
     6737if test "${ac_cv_header_stdc+set}" = set; then
     6738  echo $ECHO_N "(cached) $ECHO_C" >&6
     6739else
     6740  cat >conftest.$ac_ext <<_ACEOF
     6741/* confdefs.h.  */
     6742_ACEOF
     6743cat confdefs.h >>conftest.$ac_ext
     6744cat >>conftest.$ac_ext <<_ACEOF
     6745/* end confdefs.h.  */
     6746#include <stdlib.h>
     6747#include <stdarg.h>
     6748#include <string.h>
     6749#include <float.h>
     6750
     6751int
     6752main ()
     6753{
     6754
     6755  ;
     6756  return 0;
     6757}
     6758_ACEOF
     6759rm -f conftest.$ac_objext
     6760if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     6761  (eval $ac_compile) 2>conftest.er1
     6762  ac_status=$?
     6763  grep -v '^ *+' conftest.er1 >conftest.err
     6764  rm -f conftest.er1
     6765  cat conftest.err >&5
     6766  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6767  (exit $ac_status); } &&
     6768         { ac_try='test -z "$ac_c_werror_flag"
     6769                         || test ! -s conftest.err'
     6770  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     6771  (eval $ac_try) 2>&5
     6772  ac_status=$?
     6773  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6774  (exit $ac_status); }; } &&
     6775         { ac_try='test -s conftest.$ac_objext'
     6776  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     6777  (eval $ac_try) 2>&5
     6778  ac_status=$?
     6779  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6780  (exit $ac_status); }; }; then
     6781  ac_cv_header_stdc=yes
     6782else
     6783  echo "$as_me: failed program was:" >&5
     6784sed 's/^/| /' conftest.$ac_ext >&5
     6785
     6786ac_cv_header_stdc=no
     6787fi
     6788rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     6789
     6790if test $ac_cv_header_stdc = yes; then
     6791  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
     6792  cat >conftest.$ac_ext <<_ACEOF
     6793/* confdefs.h.  */
     6794_ACEOF
     6795cat confdefs.h >>conftest.$ac_ext
     6796cat >>conftest.$ac_ext <<_ACEOF
     6797/* end confdefs.h.  */
     6798#include <string.h>
     6799
     6800_ACEOF
     6801if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
     6802  $EGREP "memchr" >/dev/null 2>&1; then
     6803  :
     6804else
     6805  ac_cv_header_stdc=no
     6806fi
     6807rm -f conftest*
     6808
     6809fi
     6810
     6811if test $ac_cv_header_stdc = yes; then
     6812  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
     6813  cat >conftest.$ac_ext <<_ACEOF
     6814/* confdefs.h.  */
     6815_ACEOF
     6816cat confdefs.h >>conftest.$ac_ext
     6817cat >>conftest.$ac_ext <<_ACEOF
     6818/* end confdefs.h.  */
     6819#include <stdlib.h>
     6820
     6821_ACEOF
     6822if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
     6823  $EGREP "free" >/dev/null 2>&1; then
     6824  :
     6825else
     6826  ac_cv_header_stdc=no
     6827fi
     6828rm -f conftest*
     6829
     6830fi
     6831
     6832if test $ac_cv_header_stdc = yes; then
     6833  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
     6834  if test "$cross_compiling" = yes; then
     6835  :
     6836else
     6837  cat >conftest.$ac_ext <<_ACEOF
     6838/* confdefs.h.  */
     6839_ACEOF
     6840cat confdefs.h >>conftest.$ac_ext
     6841cat >>conftest.$ac_ext <<_ACEOF
     6842/* end confdefs.h.  */
     6843#include <ctype.h>
     6844#if ((' ' & 0x0FF) == 0x020)
     6845# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
     6846# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
     6847#else
     6848# define ISLOWER(c) \
     6849                   (('a' <= (c) && (c) <= 'i') \
     6850                     || ('j' <= (c) && (c) <= 'r') \
     6851                     || ('s' <= (c) && (c) <= 'z'))
     6852# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
     6853#endif
     6854
     6855#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
     6856int
     6857main ()
     6858{
     6859  int i;
     6860  for (i = 0; i < 256; i++)
     6861    if (XOR (islower (i), ISLOWER (i))
     6862        || toupper (i) != TOUPPER (i))
     6863      exit(2);
     6864  exit (0);
     6865}
     6866_ACEOF
     6867rm -f conftest$ac_exeext
     6868if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     6869  (eval $ac_link) 2>&5
     6870  ac_status=$?
     6871  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6872  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
     6873  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     6874  (eval $ac_try) 2>&5
     6875  ac_status=$?
     6876  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6877  (exit $ac_status); }; }; then
     6878  :
     6879else
     6880  echo "$as_me: program exited with status $ac_status" >&5
     6881echo "$as_me: failed program was:" >&5
     6882sed 's/^/| /' conftest.$ac_ext >&5
     6883
     6884( exit $ac_status )
     6885ac_cv_header_stdc=no
     6886fi
     6887rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
     6888fi
     6889fi
     6890fi
     6891echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
     6892echo "${ECHO_T}$ac_cv_header_stdc" >&6
     6893if test $ac_cv_header_stdc = yes; then
     6894
     6895cat >>confdefs.h <<\_ACEOF
     6896#define STDC_HEADERS 1
     6897_ACEOF
     6898
     6899fi
     6900
     6901
     6902
     6903for ac_header in stdlib.h string.h
     6904do
     6905as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
     6906if eval "test \"\${$as_ac_Header+set}\" = set"; then
     6907  echo "$as_me:$LINENO: checking for $ac_header" >&5
     6908echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
     6909if eval "test \"\${$as_ac_Header+set}\" = set"; then
     6910  echo $ECHO_N "(cached) $ECHO_C" >&6
     6911fi
     6912echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
     6913echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
     6914else
     6915  # Is the header compilable?
     6916echo "$as_me:$LINENO: checking $ac_header usability" >&5
     6917echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
     6918cat >conftest.$ac_ext <<_ACEOF
     6919/* confdefs.h.  */
     6920_ACEOF
     6921cat confdefs.h >>conftest.$ac_ext
     6922cat >>conftest.$ac_ext <<_ACEOF
     6923/* end confdefs.h.  */
     6924$ac_includes_default
     6925#include <$ac_header>
     6926_ACEOF
     6927rm -f conftest.$ac_objext
     6928if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     6929  (eval $ac_compile) 2>conftest.er1
     6930  ac_status=$?
     6931  grep -v '^ *+' conftest.er1 >conftest.err
     6932  rm -f conftest.er1
     6933  cat conftest.err >&5
     6934  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6935  (exit $ac_status); } &&
     6936         { ac_try='test -z "$ac_c_werror_flag"
     6937                         || test ! -s conftest.err'
     6938  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     6939  (eval $ac_try) 2>&5
     6940  ac_status=$?
     6941  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6942  (exit $ac_status); }; } &&
     6943         { ac_try='test -s conftest.$ac_objext'
     6944  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     6945  (eval $ac_try) 2>&5
     6946  ac_status=$?
     6947  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6948  (exit $ac_status); }; }; then
     6949  ac_header_compiler=yes
     6950else
     6951  echo "$as_me: failed program was:" >&5
     6952sed 's/^/| /' conftest.$ac_ext >&5
     6953
     6954ac_header_compiler=no
     6955fi
     6956rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     6957echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
     6958echo "${ECHO_T}$ac_header_compiler" >&6
     6959
     6960# Is the header present?
     6961echo "$as_me:$LINENO: checking $ac_header presence" >&5
     6962echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
     6963cat >conftest.$ac_ext <<_ACEOF
     6964/* confdefs.h.  */
     6965_ACEOF
     6966cat confdefs.h >>conftest.$ac_ext
     6967cat >>conftest.$ac_ext <<_ACEOF
     6968/* end confdefs.h.  */
     6969#include <$ac_header>
     6970_ACEOF
     6971if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
     6972  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
     6973  ac_status=$?
     6974  grep -v '^ *+' conftest.er1 >conftest.err
     6975  rm -f conftest.er1
     6976  cat conftest.err >&5
     6977  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6978  (exit $ac_status); } >/dev/null; then
     6979  if test -s conftest.err; then
     6980    ac_cpp_err=$ac_c_preproc_warn_flag
     6981    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
     6982  else
     6983    ac_cpp_err=
     6984  fi
     6985else
     6986  ac_cpp_err=yes
     6987fi
     6988if test -z "$ac_cpp_err"; then
     6989  ac_header_preproc=yes
     6990else
     6991  echo "$as_me: failed program was:" >&5
     6992sed 's/^/| /' conftest.$ac_ext >&5
     6993
     6994  ac_header_preproc=no
     6995fi
     6996rm -f conftest.err conftest.$ac_ext
     6997echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
     6998echo "${ECHO_T}$ac_header_preproc" >&6
     6999
     7000# So?  What about this header?
     7001case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
     7002  yes:no: )
     7003    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
     7004echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
     7005    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
     7006echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
     7007    ac_header_preproc=yes
     7008    ;;
     7009  no:yes:* )
     7010    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
     7011echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
     7012    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
     7013echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
     7014    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
     7015echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
     7016    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
     7017echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
     7018    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
     7019echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
     7020    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
     7021echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
     7022    (
     7023      cat <<\_ASBOX
     7024## ------------------------------------------- ##
     7025## Report this to orxonox-dev@mail.datacore.ch ##
     7026## ------------------------------------------- ##
     7027_ASBOX
     7028    ) |
     7029      sed "s/^/$as_me: WARNING:     /" >&2
     7030    ;;
     7031esac
     7032echo "$as_me:$LINENO: checking for $ac_header" >&5
     7033echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
     7034if eval "test \"\${$as_ac_Header+set}\" = set"; then
     7035  echo $ECHO_N "(cached) $ECHO_C" >&6
     7036else
     7037  eval "$as_ac_Header=\$ac_header_preproc"
     7038fi
     7039echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
     7040echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
     7041
     7042fi
     7043if test `eval echo '${'$as_ac_Header'}'` = yes; then
     7044  cat >>confdefs.h <<_ACEOF
     7045#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
     7046_ACEOF
     7047
     7048fi
     7049
     7050done
     7051
     7052
     7053# Checks for typedefs, structures, and compiler characteristics.
     7054echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
     7055echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6
     7056if test "${ac_cv_header_stdbool_h+set}" = set; then
     7057  echo $ECHO_N "(cached) $ECHO_C" >&6
     7058else
     7059  cat >conftest.$ac_ext <<_ACEOF
     7060/* confdefs.h.  */
     7061_ACEOF
     7062cat confdefs.h >>conftest.$ac_ext
     7063cat >>conftest.$ac_ext <<_ACEOF
     7064/* end confdefs.h.  */
     7065
     7066#include <stdbool.h>
     7067#ifndef bool
     7068# error bool is not defined
     7069#endif
     7070#ifndef false
     7071# error false is not defined
     7072#endif
     7073#if false
     7074# error false is not 0
     7075#endif
     7076#ifndef true
     7077# error true is not defined
     7078#endif
     7079#if true != 1
     7080# error true is not 1
     7081#endif
     7082#ifndef __bool_true_false_are_defined
     7083# error __bool_true_false_are_defined is not defined
     7084#endif
     7085
     7086        struct s { _Bool s: 1; _Bool t; } s;
     7087
     7088        char a[true == 1 ? 1 : -1];
     7089        char b[false == 0 ? 1 : -1];
     7090        char c[__bool_true_false_are_defined == 1 ? 1 : -1];
     7091        char d[(bool) -0.5 == true ? 1 : -1];
     7092        bool e = &s;
     7093        char f[(_Bool) -0.0 == false ? 1 : -1];
     7094        char g[true];
     7095        char h[sizeof (_Bool)];
     7096        char i[sizeof s.t];
     7097
     7098int
     7099main ()
     7100{
     7101 return !a + !b + !c + !d + !e + !f + !g + !h + !i;
     7102  ;
     7103  return 0;
     7104}
     7105_ACEOF
     7106rm -f conftest.$ac_objext
     7107if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     7108  (eval $ac_compile) 2>conftest.er1
     7109  ac_status=$?
     7110  grep -v '^ *+' conftest.er1 >conftest.err
     7111  rm -f conftest.er1
     7112  cat conftest.err >&5
     7113  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     7114  (exit $ac_status); } &&
     7115         { ac_try='test -z "$ac_c_werror_flag"
     7116                         || test ! -s conftest.err'
     7117  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     7118  (eval $ac_try) 2>&5
     7119  ac_status=$?
     7120  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     7121  (exit $ac_status); }; } &&
     7122         { ac_try='test -s conftest.$ac_objext'
     7123  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     7124  (eval $ac_try) 2>&5
     7125  ac_status=$?
     7126  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     7127  (exit $ac_status); }; }; then
     7128  ac_cv_header_stdbool_h=yes
     7129else
     7130  echo "$as_me: failed program was:" >&5
     7131sed 's/^/| /' conftest.$ac_ext >&5
     7132
     7133ac_cv_header_stdbool_h=no
     7134fi
     7135rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     7136fi
     7137echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
     7138echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6
     7139echo "$as_me:$LINENO: checking for _Bool" >&5
     7140echo $ECHO_N "checking for _Bool... $ECHO_C" >&6
     7141if test "${ac_cv_type__Bool+set}" = set; then
     7142  echo $ECHO_N "(cached) $ECHO_C" >&6
     7143else
     7144  cat >conftest.$ac_ext <<_ACEOF
     7145/* confdefs.h.  */
     7146_ACEOF
     7147cat confdefs.h >>conftest.$ac_ext
     7148cat >>conftest.$ac_ext <<_ACEOF
     7149/* end confdefs.h.  */
     7150$ac_includes_default
     7151int
     7152main ()
     7153{
     7154if ((_Bool *) 0)
     7155  return 0;
     7156if (sizeof (_Bool))
     7157  return 0;
     7158  ;
     7159  return 0;
     7160}
     7161_ACEOF
     7162rm -f conftest.$ac_objext
     7163if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     7164  (eval $ac_compile) 2>conftest.er1
     7165  ac_status=$?
     7166  grep -v '^ *+' conftest.er1 >conftest.err
     7167  rm -f conftest.er1
     7168  cat conftest.err >&5
     7169  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     7170  (exit $ac_status); } &&
     7171         { ac_try='test -z "$ac_c_werror_flag"
     7172                         || test ! -s conftest.err'
     7173  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     7174  (eval $ac_try) 2>&5
     7175  ac_status=$?
     7176  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     7177  (exit $ac_status); }; } &&
     7178         { ac_try='test -s conftest.$ac_objext'
     7179  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     7180  (eval $ac_try) 2>&5
     7181  ac_status=$?
     7182  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     7183  (exit $ac_status); }; }; then
     7184  ac_cv_type__Bool=yes
     7185else
     7186  echo "$as_me: failed program was:" >&5
     7187sed 's/^/| /' conftest.$ac_ext >&5
     7188
     7189ac_cv_type__Bool=no
     7190fi
     7191rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     7192fi
     7193echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
     7194echo "${ECHO_T}$ac_cv_type__Bool" >&6
     7195if test $ac_cv_type__Bool = yes; then
     7196
     7197cat >>confdefs.h <<_ACEOF
     7198#define HAVE__BOOL 1
     7199_ACEOF
     7200
     7201
     7202fi
     7203
     7204if test $ac_cv_header_stdbool_h = yes; then
     7205
     7206cat >>confdefs.h <<\_ACEOF
     7207#define HAVE_STDBOOL_H 1
     7208_ACEOF
     7209
     7210fi
     7211
     7212
     7213# Checks for library functions.
     7214
     7215for ac_header in stdlib.h
     7216do
     7217as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
     7218if eval "test \"\${$as_ac_Header+set}\" = set"; then
     7219  echo "$as_me:$LINENO: checking for $ac_header" >&5
     7220echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
     7221if eval "test \"\${$as_ac_Header+set}\" = set"; then
     7222  echo $ECHO_N "(cached) $ECHO_C" >&6
     7223fi
     7224echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
     7225echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
     7226else
     7227  # Is the header compilable?
     7228echo "$as_me:$LINENO: checking $ac_header usability" >&5
     7229echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
     7230cat >conftest.$ac_ext <<_ACEOF
     7231/* confdefs.h.  */
     7232_ACEOF
     7233cat confdefs.h >>conftest.$ac_ext
     7234cat >>conftest.$ac_ext <<_ACEOF
     7235/* end confdefs.h.  */
     7236$ac_includes_default
     7237#include <$ac_header>
     7238_ACEOF
     7239rm -f conftest.$ac_objext
     7240if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     7241  (eval $ac_compile) 2>conftest.er1
     7242  ac_status=$?
     7243  grep -v '^ *+' conftest.er1 >conftest.err
     7244  rm -f conftest.er1
     7245  cat conftest.err >&5
     7246  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     7247  (exit $ac_status); } &&
     7248         { ac_try='test -z "$ac_c_werror_flag"
     7249                         || test ! -s conftest.err'
     7250  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     7251  (eval $ac_try) 2>&5
     7252  ac_status=$?
     7253  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     7254  (exit $ac_status); }; } &&
     7255         { ac_try='test -s conftest.$ac_objext'
     7256  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     7257  (eval $ac_try) 2>&5
     7258  ac_status=$?
     7259  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     7260  (exit $ac_status); }; }; then
     7261  ac_header_compiler=yes
     7262else
     7263  echo "$as_me: failed program was:" >&5
     7264sed 's/^/| /' conftest.$ac_ext >&5
     7265
     7266ac_header_compiler=no
     7267fi
     7268rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     7269echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
     7270echo "${ECHO_T}$ac_header_compiler" >&6
     7271
     7272# Is the header present?
     7273echo "$as_me:$LINENO: checking $ac_header presence" >&5
     7274echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
     7275cat >conftest.$ac_ext <<_ACEOF
     7276/* confdefs.h.  */
     7277_ACEOF
     7278cat confdefs.h >>conftest.$ac_ext
     7279cat >>conftest.$ac_ext <<_ACEOF
     7280/* end confdefs.h.  */
     7281#include <$ac_header>
     7282_ACEOF
     7283if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
     7284  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
     7285  ac_status=$?
     7286  grep -v '^ *+' conftest.er1 >conftest.err
     7287  rm -f conftest.er1
     7288  cat conftest.err >&5
     7289  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     7290  (exit $ac_status); } >/dev/null; then
     7291  if test -s conftest.err; then
     7292    ac_cpp_err=$ac_c_preproc_warn_flag
     7293    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
     7294  else
     7295    ac_cpp_err=
     7296  fi
     7297else
     7298  ac_cpp_err=yes
     7299fi
     7300if test -z "$ac_cpp_err"; then
     7301  ac_header_preproc=yes
     7302else
     7303  echo "$as_me: failed program was:" >&5
     7304sed 's/^/| /' conftest.$ac_ext >&5
     7305
     7306  ac_header_preproc=no
     7307fi
     7308rm -f conftest.err conftest.$ac_ext
     7309echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
     7310echo "${ECHO_T}$ac_header_preproc" >&6
     7311
     7312# So?  What about this header?
     7313case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
     7314  yes:no: )
     7315    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
     7316echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
     7317    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
     7318echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
     7319    ac_header_preproc=yes
     7320    ;;
     7321  no:yes:* )
     7322    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
     7323echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
     7324    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
     7325echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
     7326    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
     7327echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
     7328    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
     7329echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
     7330    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
     7331echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
     7332    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
     7333echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
     7334    (
     7335      cat <<\_ASBOX
     7336## ------------------------------------------- ##
     7337## Report this to orxonox-dev@mail.datacore.ch ##
     7338## ------------------------------------------- ##
     7339_ASBOX
     7340    ) |
     7341      sed "s/^/$as_me: WARNING:     /" >&2
     7342    ;;
     7343esac
     7344echo "$as_me:$LINENO: checking for $ac_header" >&5
     7345echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
     7346if eval "test \"\${$as_ac_Header+set}\" = set"; then
     7347  echo $ECHO_N "(cached) $ECHO_C" >&6
     7348else
     7349  eval "$as_ac_Header=\$ac_header_preproc"
     7350fi
     7351echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
     7352echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
     7353
     7354fi
     7355if test `eval echo '${'$as_ac_Header'}'` = yes; then
     7356  cat >>confdefs.h <<_ACEOF
     7357#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
     7358_ACEOF
    66777359
    66787360fi
     
    68657547
    68667548
    6867                                                   ac_config_files="$ac_config_files Makefile console/Makefile gui/Makefile src/Makefile importer/Makefile"
     7549                                                  ac_config_files="$ac_config_files Makefile src/console/Makefile src/gui/Makefile src/Makefile src/importer/Makefile"
    68687550
    68697551cat >confcache <<\_ACEOF
     
    69767658Usually this means the macro was only invoked conditionally." >&5
    69777659echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
     7660Usually this means the macro was only invoked conditionally." >&2;}
     7661   { (exit 1); exit 1; }; }
     7662fi
     7663if test -z "${DOXYGEN_TRUE}" && test -z "${DOXYGEN_FALSE}"; then
     7664  { { echo "$as_me:$LINENO: error: conditional \"DOXYGEN\" was never defined.
     7665Usually this means the macro was only invoked conditionally." >&5
     7666echo "$as_me: error: conditional \"DOXYGEN\" was never defined.
    69787667Usually this means the macro was only invoked conditionally." >&2;}
    69797668   { (exit 1); exit 1; }; }
     
    72577946cat >&5 <<_CSEOF
    72587947
    7259 This file was extended by orxonox $as_me 0.1-pre-alpha, which was
     7948This file was extended by orxonox $as_me 0.2.0_alpha-r1, which was
    72607949generated by GNU Autoconf 2.59.  Invocation command line was
    72617950
     
    73208009cat >>$CONFIG_STATUS <<_ACEOF
    73218010ac_cs_version="\\
    7322 orxonox config.status 0.1-pre-alpha
     8011orxonox config.status 0.2.0_alpha-r1
    73238012configured by $0, generated by GNU Autoconf 2.59,
    73248013  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
     
    74318120  # Handling of arguments.
    74328121  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
    7433   "console/Makefile" ) CONFIG_FILES="$CONFIG_FILES console/Makefile" ;;
    7434   "gui/Makefile" ) CONFIG_FILES="$CONFIG_FILES gui/Makefile" ;;
     8122  "src/console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/console/Makefile" ;;
     8123  "src/gui/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/gui/Makefile" ;;
    74358124  "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
    7436   "importer/Makefile" ) CONFIG_FILES="$CONFIG_FILES importer/Makefile" ;;
     8125  "src/importer/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/importer/Makefile" ;;
    74378126  "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
    74388127  "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
     
    75788267s,@CPP@,$CPP,;t t
    75798268s,@EGREP@,$EGREP,;t t
     8269s,@DEBUG@,$DEBUG,;t t
     8270s,@DOXYGEN@,$DOXYGEN,;t t
     8271s,@DOXYGEN_TRUE@,$DOXYGEN_TRUE,;t t
     8272s,@DOXYGEN_FALSE@,$DOXYGEN_FALSE,;t t
    75808273s,@MSBITFIELDS@,$MSBITFIELDS,;t t
    7581 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
     8274s,@GTK2_LIBS@,$GTK2_LIBS,;t t
    75828275s,@GTK2_CFLAGS@,$GTK2_CFLAGS,;t t
    7583 s,@GTK2_LIBS@,$GTK2_LIBS,;t t
    75848276s,@HAVE_GTK2_TRUE@,$HAVE_GTK2_TRUE,;t t
    75858277s,@HAVE_GTK2_FALSE@,$HAVE_GTK2_FALSE,;t t
Note: See TracChangeset for help on using the changeset viewer.