Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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


Ignore:
Timestamp:
Feb 27, 2005, 7:11:19 PM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: merged branches/updater back into the trunk
merged with command: svn merge branches/updater trunk -r 3241:HEAD
resolved conflicts in debug.h in favor of the trunk.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/trunk/configure.ac

    r3385 r3423  
    5555  echo "no"
    5656fi
     57
     58## gThread-disabled
     59AC_MSG_CHECKING([if gThread should be enabled])
     60AC_ARG_WITH([gthread],
     61        AC_HELP_STRING( [--without-gthread],
     62        [Prevents gThread from being loaded]), [def_gthread=no], [def_gthread=yes])
     63if test "$def_gthread" = yes; then
     64  echo "yes"
     65fi
     66if test "$def_gthread" = no; then
     67  echo "no"
     68fi
     69
     70## pthread-disabled
     71AC_MSG_CHECKING([if pthread should be enabled])
     72AC_ARG_WITH([pthread],
     73        AC_HELP_STRING( [--without-pthread],
     74        [Prevents pthread from being loaded]), [def_pthread=no], [def_pthread=yes])
     75if test "$def_pthread" = yes; then
     76  echo "yes"
     77fi
     78if test "$def_pthread" = no; then
     79  echo "no"
     80fi
     81
     82## libCurl disabled?
     83AC_MSG_CHECKING([if libcURL should be enabled])
     84AC_ARG_WITH([curl],
     85        AC_HELP_STRING( [--without-curl],
     86        [Prevents libcURL from being loaded]), [def_curl=no], [def_curl=yes])
     87if test "$def_curl" = yes; then
     88  echo "yes"
     89fi
     90if test "$def_curl" = no; then
     91  echo "no"
     92fi
     93
    5794### SDL_image-disable
    5895def_sdl_image=yes
     
    353390AM_CONDITIONAL(HAVE_GTK2, test x$have_gtk2 = xyes)
    354391
    355 
    356 
    357 #checking for pthread libs
    358 # AC_CHECK_LIB([pthread], [main], FOUND_pthread=yes)
    359 # if test "$FOUND_pthread" = "yes" ; then
    360 #    LIBS="$LIBS -lpthread"
    361 # fi
    362 
    363 
     392## checking for gThread
     393if test "$def_gthread" = yes; then
     394
     395        AC_MSG_CHECKING([for gthread])
     396        if `pkg-config --exists gthread-2.0`; then
     397                echo "yes"
     398                have_gthread=yes
     399                GTHREAD_LIBS=`pkg-config --libs gthread-2.0`
     400                GTHREAD_CFLAGS=`pkg-config --cflags gthread-2.0`
     401                AC_DEFINE_UNQUOTED(HAVE_GTHREAD, 1, [if we have gThread])
     402        else
     403                echo "no"
     404        fi
     405
     406fi
     407AC_SUBST(GTHREAD_LIBS)
     408AC_SUBST(GTHREAD_CFLAGS)
     409AM_CONDITIONAL(HAVE_GTHREAD, test x$have_gthread = xyes)
     410
     411## checking for libcURL
     412if test "$def_curl" = yes; then
     413
     414 AC_CHECK_HEADERS([curl/curl.h], curlHeader="yes", curlHeader="no")
     415 AC_CHECK_LIB([curl], [main], [FOUND_curl=yes])
     416 if test x$curlHeader = xyes & test x$FOUND_curl = xyes ; then
     417  have_curl=yes
     418  CURL_LIBS=`curl-config --libs`
     419  CURLCFLAGS=`curl-config --cflags`
     420  AC_DEFINE_UNQUOTED(HAVE_CURL, 1, [if we have CURL])
     421 else
     422  have_curl=no
     423 fi
     424
     425fi
     426AC_SUBST(CURL_LIBS)
     427AC_SUBST(CURL_CFLAGS)
     428AM_CONDITIONAL(HAVE_CURL, test x$have_curl = xyes)
     429
     430
     431##checking for pthread
     432if test x$def_pthread = xyes ; then
     433 if test x$have_gthread = xyes ; then
     434  AC_CHECK_HEADERS([pthread.h], pthreadHeader="yes", pthreadHeader="no")
     435  AC_CHECK_LIB([pthread], [main], FOUND_pthread=yes)
     436   if test "$FOUND_pthread" = "yes" ; then
     437      LIBS="$LIBS -lpthread"
     438   fi
     439 fi
     440fi
    364441# FIXME: Replace `main' with a function in `-lm':
    365442 AC_CHECK_LIB([m], [main])
Note: See TracChangeset for help on using the changeset viewer.