Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 5221 in orxonox.OLD for trunk/configure.ac


Ignore:
Timestamp:
Sep 23, 2005, 5:05:39 PM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: configure.ac path, so now one can append a path for the shared-lib's dir

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/configure.ac

    r5220 r5221  
    6565
    6666#-----------------#
     67# shared-lib-path #
     68#-----------------#
     69SHARED_LIB_PATH=no
     70AC_MSG_CHECKING([shared lib path])
     71AC_ARG_WITH([shared-lib-path],
     72        AC_HELP_STRING( [--with-shared-lib-path], [Tells the executable, where to look for the shared libraries.]),
     73         SHARED_LIB_PATH=$enableval)
     74
     75if test x$SHARED_LIB_PATH = xno; then
     76        echo "no"
     77else
     78        echo $SHARED_LIB_PATH
     79fi
     80
     81
     82#-----------------#
    6783# DEBUG-statement #
    6884#-----------------#
     
    252268
    253269#-----------#
    254 # SDL (win) #
     270# SDL(win) #
    255271#-----------#
    256272# checking for SDL-headers
     
    346362 Linux="yes"
    347363
    348 CPPFLAGS="-I/usr/X11R6/include -I/usr/include -I$HOME/tmp/include"
    349 LDFLAGS=" -Wl,-rpath,$HOME/tmp/lib -L/usr/lib -L$HOME/tmp/lib $LDFLAGS"
     364CPPFLAGS="-I/usr/include"
     365if test x$SHARED_LIB_PATH != xno; then
     366        echo "setting new LDFlAGS with $SHARED_LIB_PATH"
     367        LDFLAGS="-Wl,-rpath,$SHARED_LIB_PATH $LDFLAGS"
     368fi
     369LDFLAGS="-L/usr/lib"
     370## LDFLAGS="-L/usr/lib -L$HOME/tmp/lib $LDFLAGS"
     371
    350372# checking gl header
    351373   AC_CHECK_HEADERS([GL/gl.h] ,,
     
    368390      [AC_MSG_ERROR([cannot find opengl headers]) ])
    369391
    370 #    AC_CHECK_LIB([GLU], [main], FOUND_GLU=yes)
    371 #    if test x$FOUND_GLU = xyes ; then
     392    AC_CHECK_LIB([GLU], [main], FOUND_GLU=yes)
     393    if test x$FOUND_GLU = xyes ; then
    372394      LIBS="$LIBS -lGLU"
    373 #    else
    374 #         echo "------------------"
    375 #         echo "GLU library not found."
    376 #         echo "please install the GLU library, that should come with openGL, which can be found at http://www.opengl.org"
    377 #         echo "------------------"
    378 #         exit -1
    379 #    fi
     395    else
     396         echo "------------------"
     397         echo "GLU library not found."
     398         echo "please install the GLU library, that should come with openGL, which can be found at http://www.opengl.org"
     399         echo "------------------"
     400         exit -1
     401    fi
    380402
    381403#--------#
     
    397419     fi
    398420# checking for alut
    399   AC_CHECK_LIB([alut], [main], [FOUND_openal=yes])
    400      if test x$FOUND_openal = xyes ; then
    401        LIBS="$LIBS -lalut"
    402      fi
     421#  AC_CHECK_LIB([alut], [main], [FOUND_openal=yes])
     422#     if test x$FOUND_openal = xyes ; then
     423#       LIBS="$LIBS -lalut"
     424#     fi
    403425
    404426# checking for SDL
     
    407429  echo $SDL_VERSION
    408430
    409    CPPFLAGS="`sdl-config --cflags` $CPPFLAGS"
    410431   AC_CHECK_HEADERS([SDL.h] ,,
    411432      [AC_CHECK_HEADERS([SDL/SDL.h] ,,AC_MSG_ERROR([cannot find SDL header. please download from libsdl.org])]))
    412 
    413    LIBS="`sdl-config --libs` $LIBS"
     433   CPPFLAGS="`sdl-config --cflags` $CPPFLAGS"
     434   AC_CHECK_LIB([SDL], [main], [FOUND_SDL=yes])
     435    if test x$FOUND_SDL = xyes ; then
     436        LIBS="`sdl-config --libs` $LIBS"
     437    else
     438        echo "------------------"
     439        echo "SDL library not found."
     440        echo "please install the SDL library, which can be found at http://www.libsdl.org"
     441        echo "------------------"
     442        exit -1
     443     fi
     444
    414445    ;;
    415446
     
    483514        exit -1
    484515     fi
    485 
    486516
    487517#-----------#
Note: See TracChangeset for help on using the changeset viewer.