Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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


Ignore:
Timestamp:
Dec 20, 2004, 2:42:54 AM (21 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.ac

    r3001 r3238  
    22# Process this file with autoconf to produce a configure script.
    33
    4 #AC_PREREQ(2.56)
    5 AC_INIT(orxonox, 0.1-pre-alpha, orxonox-dev@mail.datacore.ch)
     4AC_PREREQ(2.56)
     5AC_INIT(orxonox, 0.2.0_alpha-r1, orxonox-dev@mail.datacore.ch)
    66
    77# Detect the canonical host and target build environment.
     
    2020AC_PROG_CXX
    2121AC_HEADER_STDC
     22
     23### CHECKING  OPTIONAT ARGUMENTS
     24## DEBUG-statement
     25DEBUG=no
     26AC_MSG_CHECKING([if DEBUG-mode should be enabled])
     27AC_ARG_ENABLE([debug],
     28        AC_HELP_STRING( [--enable-debug], [compiles in debug mode. Lots of debug info about the game.]),
     29         DEBUG=$enableval)
     30
     31if test "$DEBUG" = "no"; then
     32        echo "no"
     33        echo " -> Setting debuglevel to 1. Like this you can still see errors."
     34        DEBUG=1
     35elif test "$DEBUG" = yes; then
     36        echo "yes"
     37        echo " -> Setting debuglevel to 3. HARD DEBUG MODE!!."
     38        DEBUG=3
     39else       
     40        echo "yes set to $DEBUG"
     41fi
     42        AC_DEFINE_UNQUOTED(DEBUG, $DEBUG, [in which debug mode we are])
     43
     44AC_SUBST(DEBUG)
     45
     46## GTK-disabled
     47AC_MSG_CHECKING([if gtk should be enabled])
     48AC_ARG_WITH([gtk],
     49        AC_HELP_STRING( [--without-gtk],
     50        [Prevents GTK from being loaded]), [def_gtk=no], [def_gtk=yes])
     51if test "$def_gtk" = yes; then
     52  echo "yes"
     53fi
     54if test "$def_gtk" = no; then
     55  echo "no"
     56fi
     57### SDL_image-disable
     58def_sdl_image=yes
     59AC_MSG_CHECKING([if SDL_image should be enabled])
     60AC_ARG_WITH([sdl_image],
     61        AC_HELP_STRING( [--without-sdl-image],
     62        [Prevents SDL_image from being loaded]), [def_sdl_image=no])
     63if test "$def_sdl_image" = yes; then
     64  echo "yes"
     65fi
     66if test "$def_sdl_image" = no; then
     67  echo "no"
     68fi
     69
     70
     71## PROGRAMM CHECKING
     72# checking for Doxygen
     73AC_PATH_PROG(DOXYGEN, doxygen)
     74AM_CONDITIONAL(DOXYGEN, test $DOXYGEN)
    2275
    2376### CHECKING FOR SYSTEM ###
     
    99152    fi
    100153
    101 
    102154    ;;
    103155
     
    108160 Linux="yes"
    109161
     162CPPFLAGS="-I/usr/X11R6/include"
     163LDFLAGS="-L/usr/Mesa-6.0.1/lib -L/usr/X11R6/lib $LDFLAGS"
    110164# checking gl header
    111165   AC_CHECK_HEADERS(GL/gl.h ,,
     
    143197      [AC_MSG_ERROR([cannot find SDL headers]) ])
    144198
    145 # checking for SDL-libs
     199# checking for SDL-lib
    146200    AC_CHECK_LIB([SDL], [main], FOUND_SDL=yes)
    147201     if test "$FOUND_SDL" = "yes" ; then
     
    154208        exit -1
    155209     fi   
     210
    156211
    157212## checking for SDL
     
    171226 osX="yes"
    172227
     228 CPPFLAGS="-I/sw/include $CPPFLAGS"
    173229# checking gl header
    174230   AC_CHECK_HEADERS(OpenGL/gl.h ,,
     
    195251       CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
    196252       LIBS="$LIBS $SDL_LIBS"
     253
    197254    ;;
    198255
     
    203260AC_SUBST(MSBITFIELDS)
    204261
    205 
    206 
     262## check for SDL_Image
     263if test "$def_sdl_image" = "yes"; then
     264# checking for SDL_image-headers
     265  AC_CHECK_HEADERS(SDL/SDL_image.h ,,
     266      [echo "sdl_image not found. falling back to other options"; def_sdl_image=no ])
     267fi
     268if test "$def_sdl_image" = "yes"; then
     269# checking for SDL_image-lib
     270  AC_CHECK_LIB([SDL_image], [main], FOUND_SDL_image=yes)
     271     if test "$FOUND_SDL_image" = "yes" ; then
     272       LIBS="$LIBS -lSDL_image"
     273     else
     274        echo "------------------"
     275        echo "SDL_image library not found."
     276        echo "please install the SDL_image library, which can be found at http://www.libsdl.org/projects/SDL_image/"
     277        echo "------------------"
     278        exit -1
     279     fi   
     280fi
     281
     282
     283if test "$def_sdl_image" = "no"; then
     284 ## checking for libjpeg
     285 AC_CHECK_HEADERS(jpeglib.h ,jpegHeader="yes",
     286        jpegHeader="no")
     287 if test $jpegHeader = "no"; then
     288        echo " not including jpeg."
     289 else
     290  AC_CHECK_LIB([jpeg], [main], FOUND_jpeg=yes)
     291    if test "$FOUND_jpeg" = "yes" ; then
     292      LIBS="$LIBS -ljpeg"
     293    else
     294         echo "------------------"
     295         echo "jpeg library not found."
     296         echo "please install the jpeg library from the Independent JPEG Group, which can be found at http://www.ijg.org"
     297         echo "------------------"
     298         exit -1
     299    fi   
     300 fi
     301
     302 ## checking for libpng
     303 AC_CHECK_HEADERS(png.h ,pngHeader="yes",
     304        pngHeader="no")
     305 if test $pngHeader = "no"; then
     306        echo " not including png."
     307 else
     308  AC_CHECK_LIB([png], [main], FOUND_png=yes)
     309    if test "$FOUND_png" = "yes" ; then
     310      LIBS="$LIBS -lpng"
     311    else
     312         echo "------------------"
     313         echo "png library not found."
     314         echo "please install the png library, which can be found at http://libpng.org/pub/png/libpng.html"
     315         echo "------------------"
     316         exit -1
     317    fi
     318 fi   
     319fi
    207320
    208321## checking for GTK
    209 PKG_CHECK_MODULES(GTK2, gtk+-2.0 >= 2.0.3 gthread-2.0 >= 2.0.3, have_gtk2=yes, have_gtk2=no)
     322if test "$def_gtk" = yes; then
     323
     324        #PKG_CHECK_MODULES(GTK2, gtk+-2.0 >= 2.0.3 gthread-2.0 >= 2.0.3, have_gtk2=yes, have_gtk2=no)
     325        AC_MSG_CHECKING([for gtk2.0])
     326        if `pkg-config --exists gtk+-2.0`; then
     327                echo "yes"
     328                have_gtk2=yes
     329                GTK2_LIBS=`pkg-config --libs gtk+-2.0`
     330                GTK2_CFLAGS=`pkg-config --cflags gtk+-2.0`
     331                AC_DEFINE_UNQUOTED(HAVE_GTK2, 1, [if we have GTK2])
     332        else
     333                echo "no"
     334        fi
     335
     336fi
    210337AC_SUBST(GTK2_LIBS)
    211338AC_SUBST(GTK2_CFLAGS)
    212 AM_CONDITIONAL(HAVE_GTK2, test "x$have_gtk2" = xyes)
     339AM_CONDITIONAL(HAVE_GTK2, test x$have_gtk2 = xyes)
     340
    213341
    214342
    215343#checking for pthread libs
    216  AC_CHECK_LIB([pthread], [main], FOUND_pthread=yes)
    217  if test "$FOUND_pthread" = "yes" ; then
    218     LIBS="$LIBS -lpthread"
    219  fi
     344# AC_CHECK_LIB([pthread], [main], FOUND_pthread=yes)
     345# if test "$FOUND_pthread" = "yes" ; then
     346#    LIBS="$LIBS -lpthread"
     347# fi
    220348
    221349
     
    223351 AC_CHECK_LIB([m], [main])
    224352
    225 
     353 
    226354# Checks for header files.
    227355AC_HEADER_STDC
     
    236364
    237365AC_CONFIG_FILES([Makefile
    238                  console/Makefile
    239                  gui/Makefile
     366                 src/console/Makefile
     367                 src/gui/Makefile
    240368                 src/Makefile
    241                  importer/Makefile])
     369                 src/importer/Makefile])
    242370AC_OUTPUT
Note: See TracChangeset for help on using the changeset viewer.