Changeset 7442 in orxonox.OLD for branches/qt_gui/configure.ac
- Timestamp:
- Apr 29, 2006, 3:15:15 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/qt_gui/configure.ac
r7256 r7442 108 108 fi 109 109 fi 110 111 if test $DEBUD > 3 ; then 112 CPPFLAGS="${CPPFLAGS} -g" 113 fi 110 114 AC_DEFINE_UNQUOTED(DEBUG, $DEBUG, [in which debug mode we are]) 111 115 AC_SUBST(DEBUG) … … 127 131 fi 128 132 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; then136 echo "yes"137 fi138 if test x$def_gtk = xno; then139 echo "no"140 fi141 133 142 134 #------------------# … … 152 144 echo "no" 153 145 fi 146 147 148 #-------------# 149 # with-qt-dir # 150 #-------------# 151 WITH_QT=yes 152 AC_MSG_CHECKING([if we want to use QT for the gui.]) 153 AC_ARG_WITH([modular-debug], 154 AS_HELP_STRING([--without-qt], [does not use QT for the display of the GUI]), 155 WITH_QT=$enableval) 156 if test x$WITH_QT = xno; then 157 echo "no" 158 elif 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 164 fi 165 AM_CONDITIONAL([WITH_QT], [test x$WITH_QT = xyes]) 166 167 #--------------# 168 # GTK-disabled # 169 #--------------# 170 171 AC_MSG_CHECKING([if gtk should be enabled]) 172 AC_ARG_WITH([gtk], 173 AS_HELP_STRING(--with-gtk, uses GTK for the GUI), [def_gtk=yes], [def_gtk=no]) 174 if test x$def_gtk = xyes; then 175 echo "yes" 176 fi 177 if test x$def_gtk = xno; then 178 echo "no" 179 fi 180 181 154 182 155 183 #-------------------# … … 211 239 fi 212 240 AM_CONDITIONAL(DOCUMENTATION, test x$def_documentation = xyes) 213 214 215 241 216 242 #---------------------------# … … 273 299 ## also checking for SDL on differen Systems 274 300 275 CPPFLAGS="$CPPFLAGS -g"276 277 278 301 AC_MSG_CHECKING([for System]) 279 302 ## checking for openGL-environment and other sys-specific parameters … … 556 579 AX_CHECK_REQUIRED_HEADER_LIB([ogg/ogg.h], [ogg], [main],,, [http://www.xiph.org/ogg/vorbis/index.html]) 557 580 558 559 #---------#560 # libcURL #561 #---------#562 AX_CHECK_HEADER_LIB([curl/curl.h], [curl], [main], [563 have_curl=yes564 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 ; then577 AC_CHECK_LIB([efence], [main], [FOUND_efence=yes; LIBS="$LIBS -lefence"])578 if test x$FOUND_efence != xyes ; then579 echo "efence was requested, but is not installed!! going on"580 fi581 582 fi583 581 584 582 #-----# … … 607 605 AM_CONDITIONAL(HAVE_GTK2, test x$have_gtk2 = xyes) 608 606 607 608 #---------# 609 # libcURL # 610 #---------# 611 AX_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 618 AC_SUBST(CURL_LIBS) 619 AC_SUBST(CURL_CFLAGS) 620 AM_CONDITIONAL(HAVE_CURL, test "x$have_curl" = "xyes") 621 622 #--------# 623 # efence # 624 #--------# 625 if 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 631 fi 609 632 610 633 # FIXME: Replace `main' with a function in `-lm': … … 643 666 src/lib/gui/gtk_gui/Makefile 644 667 src/lib/gui/gl_gui/Makefile 668 src/lib/gui/qt_gui/Makefile 645 669 src/lib/parser/Makefile 646 670 src/lib/parser/tinyxml/Makefile
Note: See TracChangeset
for help on using the changeset viewer.