Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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


Ignore:
Timestamp:
Apr 29, 2006, 3:15:15 AM (18 years ago)
Author:
bensch
Message:

qt_gui: merged old qt_gui-changes back here.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/qt_gui/configure.ac

    r7256 r7442  
    108108  fi
    109109fi
     110
     111if test $DEBUD > 3 ; then
     112  CPPFLAGS="${CPPFLAGS} -g"
     113fi
    110114AC_DEFINE_UNQUOTED(DEBUG, $DEBUG, [in which debug mode we are])
    111115AC_SUBST(DEBUG)
     
    127131fi
    128132
    129 #--------------#
    130 # GTK-disabled #
    131 #--------------#
    132 AC_MSG_CHECKING([if gtk should be enabled])
    133 AC_ARG_ENABLE([gtk],
    134         AS_HELP_STRING(--disable-gtk,Prevents GTK from being loaded), [def_gtk=no], [def_gtk=yes])
    135 if test x$def_gtk = xyes; then
    136   echo "yes"
    137 fi
    138 if test x$def_gtk = xno; then
    139   echo "no"
    140 fi
    141133
    142134#------------------#
     
    152144  echo "no"
    153145fi
     146
     147
     148#-------------#
     149# with-qt-dir #
     150#-------------#
     151WITH_QT=yes
     152AC_MSG_CHECKING([if we want to use QT for the gui.])
     153AC_ARG_WITH([modular-debug],
     154        AS_HELP_STRING([--without-qt], [does not use QT for the display of the GUI]),
     155         WITH_QT=$enableval)
     156if test x$WITH_QT = xno; then
     157        echo "no"
     158elif test x$WITH_QT = xyes; then
     159        echo "yes"
     160        BNV_HAVE_QT
     161        if test x$have_qt = xno ; then
     162          WITH_QT=no
     163        fi
     164fi
     165AM_CONDITIONAL([WITH_QT], [test x$WITH_QT = xyes])
     166
     167#--------------#
     168# GTK-disabled #
     169#--------------#
     170
     171AC_MSG_CHECKING([if gtk should be enabled])
     172AC_ARG_WITH([gtk],
     173        AS_HELP_STRING(--with-gtk, uses GTK for the GUI), [def_gtk=yes], [def_gtk=no])
     174if test x$def_gtk = xyes; then
     175  echo "yes"
     176fi
     177if test x$def_gtk = xno; then
     178  echo "no"
     179fi
     180
     181
    154182
    155183#-------------------#
     
    211239fi
    212240AM_CONDITIONAL(DOCUMENTATION, test x$def_documentation = xyes)
    213 
    214 
    215241
    216242#---------------------------#
     
    273299## also checking for SDL on differen Systems
    274300
    275 CPPFLAGS="$CPPFLAGS -g"
    276 
    277 
    278301AC_MSG_CHECKING([for System])
    279302## checking for openGL-environment and other sys-specific parameters
     
    556579AX_CHECK_REQUIRED_HEADER_LIB([ogg/ogg.h], [ogg], [main],,, [http://www.xiph.org/ogg/vorbis/index.html])
    557580
    558 
    559 #---------#
    560 # libcURL #
    561 #---------#
    562 AX_CHECK_HEADER_LIB([curl/curl.h], [curl], [main], [
    563  have_curl=yes
    564   CURL_LIBS=`curl-config --libs`
    565   CURLCFLAGS=`curl-config --cflags`
    566   AC_DEFINE_UNQUOTED(HAVE_CURL, 1, [if we have CURL]) ]
    567   ,, [http://curl.haxx.se/])
    568 
    569 AC_SUBST(CURL_LIBS)
    570 AC_SUBST(CURL_CFLAGS)
    571 AM_CONDITIONAL(HAVE_CURL, test "x$have_curl" = "xyes")
    572 
    573 #--------#
    574 # efence #
    575 #--------#
    576 if test x$def_efence = xyes ; then
    577   AC_CHECK_LIB([efence], [main], [FOUND_efence=yes; LIBS="$LIBS -lefence"])
    578    if test x$FOUND_efence != xyes ; then
    579      echo "efence was requested, but is not installed!! going on"
    580    fi
    581 
    582 fi
    583581
    584582#-----#
     
    607605AM_CONDITIONAL(HAVE_GTK2, test x$have_gtk2 = xyes)
    608606
     607
     608#---------#
     609# libcURL #
     610#---------#
     611AX_CHECK_HEADER_LIB([curl/curl.h], [curl], [main], [
     612 have_curl=yes
     613  CURL_LIBS=`curl-config --libs`
     614  CURLCFLAGS=`curl-config --cflags`
     615  AC_DEFINE_UNQUOTED(HAVE_CURL, 1, [if we have CURL]) ]
     616  ,, [http://curl.haxx.se/])
     617
     618AC_SUBST(CURL_LIBS)
     619AC_SUBST(CURL_CFLAGS)
     620AM_CONDITIONAL(HAVE_CURL, test "x$have_curl" = "xyes")
     621
     622#--------#
     623# efence #
     624#--------#
     625if test x$def_efence = xyes ; then
     626  AC_CHECK_LIB([efence], [main], [FOUND_efence=yes; LIBS="$LIBS -lefence"])
     627   if test x$FOUND_efence != xyes ; then
     628     echo "efence was requested, but is not installed!! going on"
     629   fi
     630
     631fi
    609632
    610633# FIXME: Replace `main' with a function in `-lm':
     
    643666                 src/lib/gui/gtk_gui/Makefile
    644667                 src/lib/gui/gl_gui/Makefile
     668                 src/lib/gui/qt_gui/Makefile
    645669                 src/lib/parser/Makefile
    646670                 src/lib/parser/tinyxml/Makefile
Note: See TracChangeset for help on using the changeset viewer.