Changeset 3100 in orxonox.OLD for orxonox/trunk
- Timestamp:
- Dec 5, 2004, 2:50:29 PM (20 years ago)
- Location:
- orxonox/trunk
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/Makefile.am
r2819 r3100 1 SUBDIRS = src console gui importer 1 if HAVE_GTK2 2 GTK_PROGS =gui console 3 else 4 GTK_PROGS = 5 endif 6 7 SUBDIRS = src importer $(GTK_PROGS) -
orxonox/trunk/Makefile.in
r3099 r3100 60 60 ETAGS = etags 61 61 CTAGS = ctags 62 DIST_SUBDIRS = $(SUBDIRS)62 DIST_SUBDIRS = src importer gui console 63 63 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) 64 64 distdir = $(PACKAGE)-$(VERSION) … … 164 164 target_os = @target_os@ 165 165 target_vendor = @target_vendor@ 166 SUBDIRS = src console gui importer 166 @HAVE_GTK2_FALSE@GTK_PROGS = 167 @HAVE_GTK2_TRUE@GTK_PROGS = gui console 168 SUBDIRS = src importer $(GTK_PROGS) 167 169 all: config.h 168 170 $(MAKE) $(AM_MAKEFLAGS) all-recursive … … 370 372 fi; \ 371 373 done 372 list='$( SUBDIRS)'; for subdir in $$list; do \374 list='$(DIST_SUBDIRS)'; for subdir in $$list; do \ 373 375 if test "$$subdir" = .; then :; else \ 374 376 test -d "$(distdir)/$$subdir" \ -
orxonox/trunk/configure
r3099 r3100 865 865 --disable-dependency-tracking speeds up one-time build 866 866 --enable-dependency-tracking do not reject slow dependency extractors 867 --disable-gtk Prevents GTK from being loaded 867 868 868 869 Some influential environment variables: … … 3830 3831 3831 3832 3833 3834 ### CHECKING OPTIONAT ARGUMENTS 3835 ## GTK-disabled 3836 def_gtk=yes 3837 echo "$as_me:$LINENO: checking if gtk should be enabled" >&5 3838 echo $ECHO_N "checking if gtk should be enabled... $ECHO_C" >&6 3839 # Check whether --enable-gtk or --disable-gtk was given. 3840 if test "${enable_gtk+set}" = set; then 3841 enableval="$enable_gtk" 3842 def_gtk=no 3843 fi; 3844 if test "$def_gtk" = yes; then 3845 echo "yes" 3846 fi 3847 if test "$def_gtk" = no; then 3848 echo "no" 3849 fi 3850 3851 3852 3832 3853 ### CHECKING FOR SYSTEM ### 3833 3854 … … 5801 5822 5802 5823 ## checking for GTK 5803 #PKG_CHECK_MODULES(GTK2, gtk+-2.0 >= 2.0.3 gthread-2.0 >= 2.0.3, have_gtk2=yes, have_gtk2=no) 5804 echo "$as_me:$LINENO: checking for gtk2.0" >&5 5824 if test "$def_gtk" = yes; then 5825 5826 #PKG_CHECK_MODULES(GTK2, gtk+-2.0 >= 2.0.3 gthread-2.0 >= 2.0.3, have_gtk2=yes, have_gtk2=no) 5827 echo "$as_me:$LINENO: checking for gtk2.0" >&5 5805 5828 echo $ECHO_N "checking for gtk2.0... $ECHO_C" >&6 5806 if `pkg-config --exists gtk+-2.0`; then 5807 echo "yes" 5808 have_gtk2=yes 5809 GTK2_LIBS=`pkg-config --libs gtk+-2.0` 5810 GTK2_CFLAGS=`pkg-config --cflags gtk+-2.0` 5811 else 5812 echo "no" 5813 fi 5814 5815 5816 5817 5818 if test "x$have_gtk2" = xyes; then 5829 if `pkg-config --exists gtk+-2.0`; then 5830 echo "yes" 5831 have_gtk2=yes 5832 GTK2_LIBS=`pkg-config --libs gtk+-2.0` 5833 GTK2_CFLAGS=`pkg-config --cflags gtk+-2.0` 5834 else 5835 echo "no" 5836 fi 5837 5838 fi 5839 5840 5841 5842 5843 if test x$have_gtk2 = xyes; then 5819 5844 HAVE_GTK2_TRUE= 5820 5845 HAVE_GTK2_FALSE='#' … … 5823 5848 HAVE_GTK2_FALSE= 5824 5849 fi 5850 5825 5851 5826 5852 -
orxonox/trunk/configure.ac
r3099 r3100 20 20 AC_PROG_CXX 21 21 AC_HEADER_STDC 22 23 24 ### CHECKING OPTIONAT ARGUMENTS 25 ## GTK-disabled 26 def_gtk=yes 27 AC_MSG_CHECKING([if gtk should be enabled]) 28 AC_ARG_ENABLE([gtk], 29 AC_HELP_STRING( [--disable-gtk], 30 [Prevents GTK from being loaded]), [def_gtk=no]) 31 if test "$def_gtk" = yes; then 32 echo "yes" 33 fi 34 if test "$def_gtk" = no; then 35 echo "no" 36 fi 37 38 22 39 23 40 ### CHECKING FOR SYSTEM ### … … 207 224 208 225 ## checking for GTK 209 #PKG_CHECK_MODULES(GTK2, gtk+-2.0 >= 2.0.3 gthread-2.0 >= 2.0.3, have_gtk2=yes, have_gtk2=no) 210 AC_MSG_CHECKING([for gtk2.0]) 211 if `pkg-config --exists gtk+-2.0`; then 212 echo "yes" 213 have_gtk2=yes 214 GTK2_LIBS=`pkg-config --libs gtk+-2.0` 215 GTK2_CFLAGS=`pkg-config --cflags gtk+-2.0` 216 else 217 echo "no" 226 if test "$def_gtk" = yes; then 227 228 #PKG_CHECK_MODULES(GTK2, gtk+-2.0 >= 2.0.3 gthread-2.0 >= 2.0.3, have_gtk2=yes, have_gtk2=no) 229 AC_MSG_CHECKING([for gtk2.0]) 230 if `pkg-config --exists gtk+-2.0`; then 231 echo "yes" 232 have_gtk2=yes 233 GTK2_LIBS=`pkg-config --libs gtk+-2.0` 234 GTK2_CFLAGS=`pkg-config --cflags gtk+-2.0` 235 else 236 echo "no" 237 fi 238 218 239 fi 219 240 AC_SUBST(GTK2_LIBS) 220 241 AC_SUBST(GTK2_CFLAGS) 221 AM_CONDITIONAL(HAVE_GTK2, test "x$have_gtk2" = xyes) 242 AM_CONDITIONAL(HAVE_GTK2, test x$have_gtk2 = xyes) 243 222 244 223 245
Note: See TracChangeset
for help on using the changeset viewer.