Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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


Ignore:
Timestamp:
May 12, 2006, 10:43:53 AM (18 years ago)
Author:
bensch
Message:

merged the old qt-gui back with
svn merge -r7438:HEAD https://svn.orxonox.net/orxonox/branches/qt_gui_old .
minor conflict in BuildLibs.am

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/qt_gui/configure.ac

    r7256 r7608  
    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# GTK-disabled #
     149#--------------#
     150
     151AC_MSG_CHECKING([if gtk should be enabled])
     152AC_ARG_WITH([gtk],
     153        AS_HELP_STRING(--with-gtk, uses GTK for the GUI), [def_gtk=yes], [def_gtk=no])
     154if test x$def_gtk = xyes; then
     155  echo "yes - will be overwritten if Qt is enabled"
     156fi
     157if test x$def_gtk = xno; then
     158  echo "no"
     159fi
     160
     161
    154162
    155163#-------------------#
     
    211219fi
    212220AM_CONDITIONAL(DOCUMENTATION, test x$def_documentation = xyes)
    213 
    214 
    215221
    216222#---------------------------#
     
    228234  CPPFLAGS="${CPPFLAGS} -I${PREFIX}/include"
    229235  LDFLAGS="${LDFLAGS} -L$PREFIX/${ARCH}/lib -Wl,-rpath -Wl,${PREFIX}/${ARCH}/lib"
     236
     237  ## QT
     238  QT_PREFIX=/usr/pack/qt-4.1.1-mo/${ARCH}
     239#  CPPFLAGS="${CPPFLAGS} -I${PREFIX_QT}/include"
     240#  LDFLAGS="${LDFLAGS} -L${QT_PREFIX}/lib -Wl,-rpath -Wl,${QT_PREFIX}/${ARCH}/lib"
     241
     242
     243
    230244  ## GTK
    231245  GTKPREFIX=/usr/pack/gtk-2.8.3-mo
     
    238252  echo "no"
    239253fi
     254
     255
    240256
    241257#######################
     
    272288## here the system is checked, and openGL is included
    273289## also checking for SDL on differen Systems
    274 
    275 CPPFLAGS="$CPPFLAGS -g"
    276 
    277290
    278291AC_MSG_CHECKING([for System])
     
    557570
    558571
    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
     572#----#
     573# QT #
     574#----#
     575AX_CHECK_QT([${QT_PREFIX}], [QtCore],, [http://www.trolltech.com])
     576if test x$have_qt = xno ; then
     577    WITH_QT=no
     578fi
     579
    583580
    584581#-----#
     
    607604AM_CONDITIONAL(HAVE_GTK2, test x$have_gtk2 = xyes)
    608605
     606
     607#---------#
     608# libcURL #
     609#---------#
     610AX_CHECK_HEADER_LIB([curl/curl.h], [curl], [main], [
     611 have_curl=yes
     612  CURL_LIBS=`curl-config --libs`
     613  CURLCFLAGS=`curl-config --cflags`
     614  AC_DEFINE_UNQUOTED(HAVE_CURL, 1, [if we have CURL]) ]
     615  ,, [http://curl.haxx.se/])
     616
     617AC_SUBST(CURL_LIBS)
     618AC_SUBST(CURL_CFLAGS)
     619AM_CONDITIONAL(HAVE_CURL, test "x$have_curl" = "xyes")
     620
     621#--------#
     622# efence #
     623#--------#
     624if test x$def_efence = xyes ; then
     625  AC_CHECK_LIB([efence], [main], [FOUND_efence=yes; LIBS="$LIBS -lefence"])
     626   if test x$FOUND_efence != xyes ; then
     627     echo "efence was requested, but is not installed!! going on"
     628   fi
     629
     630fi
    609631
    610632# FIXME: Replace `main' with a function in `-lm':
     
    643665                 src/lib/gui/gtk_gui/Makefile
    644666                 src/lib/gui/gl_gui/Makefile
     667                 src/lib/gui/qt_gui/Makefile
    645668                 src/lib/parser/Makefile
    646669                 src/lib/parser/tinyxml/Makefile
    647670                 src/lib/parser/ini_parser/Makefile
    648671                 src/lib/parser/cmdline_parser/Makefile
    649                 src/lib/parser/preferences/Makefile
     672                src/lib/parser/preferences/Makefile
    650673                 src/util/Makefile
    651674                 src/world_entities/Makefile
Note: See TracChangeset for help on using the changeset viewer.