Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 7142 in orxonox.OLD for branches/qt_gui/configure.ac


Ignore:
Timestamp:
Feb 14, 2006, 7:11:45 PM (19 years ago)
Author:
bensch
Message:

orxonox/qt_gui: compiling the QT-app

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/qt_gui/configure.ac

    r7140 r7142  
    105105  fi
    106106fi
     107
     108if test $DEBUD > 3 ; then
     109  CPPFLAGS="${CPPFLAGS} -g"
     110fi
    107111AC_DEFINE_UNQUOTED(DEBUG, $DEBUG, [in which debug mode we are])
    108112AC_SUBST(DEBUG)
     
    124128fi
    125129
    126 #--------------#
    127 # GTK-disabled #
    128 #--------------#
    129 AC_MSG_CHECKING([if gtk should be enabled])
    130 AC_ARG_ENABLE([gtk],
    131         AS_HELP_STRING(--disable-gtk,Prevents GTK from being loaded), [def_gtk=no], [def_gtk=yes])
    132 if test x$def_gtk = xyes; then
    133   echo "yes"
    134 fi
    135 if test x$def_gtk = xno; then
    136   echo "no"
    137 fi
    138130
    139131#------------------#
     
    149141  echo "no"
    150142fi
     143
     144
     145#-------------#
     146# with-qt-dir #
     147#-------------#
     148WITH_QT=yes
     149AC_MSG_CHECKING([if we use QT for the gui])
     150AC_ARG_WITH([modular-debug],
     151        AS_HELP_STRING([--without-qt], [does not use QT for the display of the GUI]),
     152         WITH_QT=$enableval)
     153
     154if test x$WITH_QT = xno; then
     155        echo "no"
     156elif test x$WITH_QT = xyes; then
     157        echo "yes"
     158        BNV_HAVE_QT
     159        if test x$have_qt = xno ; then
     160          WITH_QT=no
     161        fi
     162fi
     163AM_CONDITIONAL([WITH_QT], [test x$WITH_QT = xyes])
     164
     165#--------------#
     166# GTK-disabled #
     167#--------------#
     168
     169AC_MSG_CHECKING([if gtk should be enabled])
     170AC_ARG_WITH([gtk],
     171        AS_HELP_STRING(--with-gtk, uses GTK for the GUI), [def_gtk=yes], [def_gtk=no])
     172if test x$def_gtk = xyes; then
     173  echo "yes"
     174fi
     175if test x$def_gtk = xno; then
     176  echo "no"
     177fi
     178
     179
    151180
    152181#-------------------#
     
    208237fi
    209238AM_CONDITIONAL(DOCUMENTATION, test x$def_documentation = xyes)
    210 
    211 
    212239
    213240#---------------------------#
     
    270297## also checking for SDL on differen Systems
    271298
    272 CPPFLAGS="$CPPFLAGS -g"
    273 
    274 
    275299AC_MSG_CHECKING([for System])
    276300## checking for openGL-environment and other sys-specific parameters
     
    553577AX_CHECK_REQUIRED_HEADER_LIB([ogg/ogg.h], [ogg], [main],,, [http://www.xiph.org/ogg/vorbis/index.html])
    554578
    555 
    556 #---------#
    557 # libcURL #
    558 #---------#
    559 AX_CHECK_HEADER_LIB([curl/curl.h], [curl], [main], [
    560  have_curl=yes
    561   CURL_LIBS=`curl-config --libs`
    562   CURLCFLAGS=`curl-config --cflags`
    563   AC_DEFINE_UNQUOTED(HAVE_CURL, 1, [if we have CURL]) ]
    564   ,, [http://curl.haxx.se/])
    565 
    566 AC_SUBST(CURL_LIBS)
    567 AC_SUBST(CURL_CFLAGS)
    568 AM_CONDITIONAL(HAVE_CURL, test "x$have_curl" = "xyes")
    569 
    570 #--------#
    571 # efence #
    572 #--------#
    573 if test x$def_efence = xyes ; then
    574   AC_CHECK_LIB([efence], [main], [FOUND_efence=yes; LIBS="$LIBS -lefence"])
    575    if test x$FOUND_efence != xyes ; then
    576      echo "efence was requested, but is not installed!! going on"
    577    fi
    578 
    579 fi
    580579
    581580#-----#
     
    604603AM_CONDITIONAL(HAVE_GTK2, test x$have_gtk2 = xyes)
    605604
     605
     606#---------#
     607# libcURL #
     608#---------#
     609AX_CHECK_HEADER_LIB([curl/curl.h], [curl], [main], [
     610 have_curl=yes
     611  CURL_LIBS=`curl-config --libs`
     612  CURLCFLAGS=`curl-config --cflags`
     613  AC_DEFINE_UNQUOTED(HAVE_CURL, 1, [if we have CURL]) ]
     614  ,, [http://curl.haxx.se/])
     615
     616AC_SUBST(CURL_LIBS)
     617AC_SUBST(CURL_CFLAGS)
     618AM_CONDITIONAL(HAVE_CURL, test "x$have_curl" = "xyes")
     619
     620#--------#
     621# efence #
     622#--------#
     623if test x$def_efence = xyes ; then
     624  AC_CHECK_LIB([efence], [main], [FOUND_efence=yes; LIBS="$LIBS -lefence"])
     625   if test x$FOUND_efence != xyes ; then
     626     echo "efence was requested, but is not installed!! going on"
     627   fi
     628
     629fi
    606630
    607631# FIXME: Replace `main' with a function in `-lm':
Note: See TracChangeset for help on using the changeset viewer.