Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 3100 in orxonox.OLD for orxonox/trunk/configure


Ignore:
Timestamp:
Dec 5, 2004, 2:50:29 PM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: ability to disable GTK with ./configure —disable-gtk

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/trunk/configure

    r3099 r3100  
    865865  --disable-dependency-tracking  speeds up one-time build
    866866  --enable-dependency-tracking   do not reject slow dependency extractors
     867  --disable-gtk           Prevents GTK from being loaded
    867868
    868869Some influential environment variables:
     
    38303831
    38313832
     3833
     3834### CHECKING  OPTIONAT ARGUMENTS
     3835## GTK-disabled
     3836def_gtk=yes
     3837echo "$as_me:$LINENO: checking if gtk should be enabled" >&5
     3838echo $ECHO_N "checking if gtk should be enabled... $ECHO_C" >&6
     3839# Check whether --enable-gtk or --disable-gtk was given.
     3840if test "${enable_gtk+set}" = set; then
     3841  enableval="$enable_gtk"
     3842  def_gtk=no
     3843fi;
     3844if test "$def_gtk" = yes; then
     3845  echo "yes"
     3846fi
     3847if test "$def_gtk" = no; then
     3848  echo "no"
     3849fi
     3850
     3851
     3852
    38323853### CHECKING FOR SYSTEM ###
    38333854
     
    58015822
    58025823## 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
     5824if 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
    58055828echo $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
     5838fi
     5839
     5840
     5841
     5842
     5843if test x$have_gtk2 = xyes; then
    58195844  HAVE_GTK2_TRUE=
    58205845  HAVE_GTK2_FALSE='#'
     
    58235848  HAVE_GTK2_FALSE=
    58245849fi
     5850
    58255851
    58265852
Note: See TracChangeset for help on using the changeset viewer.