Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 5223 in orxonox.OLD for trunk


Ignore:
Timestamp:
Sep 23, 2005, 6:31:20 PM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: modular configuration working on the sepp Plattform of the ETH.

to compile use:
CPPFLAGS=-I/home/grauerb/tmp/include ./configure —with-shared-lib-path=/home/grauerb/tmp/lib

libs will be up on the Server shortly

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/configure.ac

    r5222 r5223  
    7171AC_ARG_WITH([shared-lib-path],
    7272        AC_HELP_STRING( [--with-shared-lib-path], [Tells the executable, where to look for the shared libraries.]),
    73          SHARED_LIB_PATH=$enableval)
     73         SHARED_LIB_PATH=$withval)
    7474if test x$SHARED_LIB_PATH != xno; then
    7575        echo "set to $SHARED_LIB_PATH"
     
    362362CPPFLAGS="-I/usr/include $CPPFLAGS"
    363363if test x$SHARED_LIB_PATH != xno; then
    364         echo "setting new LDFlAGS with $SHARED_LIB_PATH"
    365         LDFLAGS="-Wl,-rpath,$SHARED_LIB_PATH $LDFLAGS"
    366 fi
    367 LDFLAGS="-L/usr/lib $LD_FLAGS"
     364        echo "setting new LDFLAGS with $SHARED_LIB_PATH"
     365        LDFLAGS="-Wl,-rpath,$SHARED_LIB_PATH -L$SHARED_LIB_PATH $LDFLAGS"
     366fi
     367LDFLAGS="-L/usr/lib $LDFLAGS"
    368368
    369369# checking gl header
     
    416416     fi
    417417# checking for alut
    418 #  AC_CHECK_LIB([alut], [main], [FOUND_openal=yes])
    419 #     if test x$FOUND_openal = xyes ; then
    420 #       LIBS="$LIBS -lalut"
    421 #     fi
     418  AC_CHECK_HEADERS([AL/alut.h] ,,
     419      [AC_MSG_ERROR([cannot find openAL Utility Toolkit (alut) header.])])
     420  AC_CHECK_LIB([alut], [main], [FOUND_openal=yes])
     421     if test x$FOUND_openal = xyes ; then
     422       LIBS="$LIBS -lalut"
     423     fi
    422424
    423425# checking for SDL
     
    426428  echo $SDL_VERSION
    427429
     430   CPPFLAGS="`sdl-config --cflags` $CPPFLAGS"
    428431   AC_CHECK_HEADERS([SDL.h] ,,
    429432      [AC_CHECK_HEADERS([SDL/SDL.h] ,,AC_MSG_ERROR([cannot find SDL header. please download from libsdl.org])]))
    430    CPPFLAGS="`sdl-config --cflags` $CPPFLAGS"
     433   LIBS="`sdl-config --libs` $LIBS"
    431434   AC_CHECK_LIB([SDL], [main], [FOUND_SDL=yes])
    432435    if test x$FOUND_SDL = xyes ; then
    433         LIBS="`sdl-config --libs` $LIBS"
     436     echo `sdl-config --libs`
    434437    else
    435438        echo "------------------"
Note: See TracChangeset for help on using the changeset viewer.