Changeset 7142 in orxonox.OLD for branches/qt_gui/configure.ac
- Timestamp:
- Feb 14, 2006, 7:11:45 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/qt_gui/configure.ac
r7140 r7142 105 105 fi 106 106 fi 107 108 if test $DEBUD > 3 ; then 109 CPPFLAGS="${CPPFLAGS} -g" 110 fi 107 111 AC_DEFINE_UNQUOTED(DEBUG, $DEBUG, [in which debug mode we are]) 108 112 AC_SUBST(DEBUG) … … 124 128 fi 125 129 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; then133 echo "yes"134 fi135 if test x$def_gtk = xno; then136 echo "no"137 fi138 130 139 131 #------------------# … … 149 141 echo "no" 150 142 fi 143 144 145 #-------------# 146 # with-qt-dir # 147 #-------------# 148 WITH_QT=yes 149 AC_MSG_CHECKING([if we use QT for the gui]) 150 AC_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 154 if test x$WITH_QT = xno; then 155 echo "no" 156 elif 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 162 fi 163 AM_CONDITIONAL([WITH_QT], [test x$WITH_QT = xyes]) 164 165 #--------------# 166 # GTK-disabled # 167 #--------------# 168 169 AC_MSG_CHECKING([if gtk should be enabled]) 170 AC_ARG_WITH([gtk], 171 AS_HELP_STRING(--with-gtk, uses GTK for the GUI), [def_gtk=yes], [def_gtk=no]) 172 if test x$def_gtk = xyes; then 173 echo "yes" 174 fi 175 if test x$def_gtk = xno; then 176 echo "no" 177 fi 178 179 151 180 152 181 #-------------------# … … 208 237 fi 209 238 AM_CONDITIONAL(DOCUMENTATION, test x$def_documentation = xyes) 210 211 212 239 213 240 #---------------------------# … … 270 297 ## also checking for SDL on differen Systems 271 298 272 CPPFLAGS="$CPPFLAGS -g"273 274 275 299 AC_MSG_CHECKING([for System]) 276 300 ## checking for openGL-environment and other sys-specific parameters … … 553 577 AX_CHECK_REQUIRED_HEADER_LIB([ogg/ogg.h], [ogg], [main],,, [http://www.xiph.org/ogg/vorbis/index.html]) 554 578 555 556 #---------#557 # libcURL #558 #---------#559 AX_CHECK_HEADER_LIB([curl/curl.h], [curl], [main], [560 have_curl=yes561 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 ; then574 AC_CHECK_LIB([efence], [main], [FOUND_efence=yes; LIBS="$LIBS -lefence"])575 if test x$FOUND_efence != xyes ; then576 echo "efence was requested, but is not installed!! going on"577 fi578 579 fi580 579 581 580 #-----# … … 604 603 AM_CONDITIONAL(HAVE_GTK2, test x$have_gtk2 = xyes) 605 604 605 606 #---------# 607 # libcURL # 608 #---------# 609 AX_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 616 AC_SUBST(CURL_LIBS) 617 AC_SUBST(CURL_CFLAGS) 618 AM_CONDITIONAL(HAVE_CURL, test "x$have_curl" = "xyes") 619 620 #--------# 621 # efence # 622 #--------# 623 if 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 629 fi 606 630 607 631 # FIXME: Replace `main' with a function in `-lm':
Note: See TracChangeset
for help on using the changeset viewer.