Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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


Ignore:
Timestamp:
Feb 27, 2005, 7:51:36 PM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: nice-up patch:
configure.ac is now really nice.

  1. Intro
  2. initialization
  3. statement-checking
  4. System check
  5. header/lib-check
  6. output

also redisigned the look of different things so it is more standardized.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/trunk/configure

    r3423 r3424  
    867867  --enable-debug          compiles in debug mode. Lots of debug info about the
    868868                          game.
    869   --enable-sub-projects   also builds the subProjects by default
     869  --enable-sub-projects   also builds the subProjects while make from srcdir
    870870
    871871Optional Packages:
     
    13391339
    13401340
    1341 # Detect the canonical host and target build environment.
     1341## Detect the canonical host and target build environment.
    13421342ac_aux_dir=
    13431343for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
     
    14471447    NONENONEs,x,x, &&
    14481448  program_prefix=${target_alias}-
    1449 
    14501449
    14511450am__api_version="1.8"
     
    18541853
    18551854
    1856 
    1857 # Checks for programs.
     1855#########################
     1856## Checks for programs ##
     1857#########################
    18581858ac_ext=cc
    18591859ac_cpp='$CXXCPP $CPPFLAGS'
     
    38423842
    38433843
    3844 ### CHECKING  OPTIONAT ARGUMENTS
    3845 ## DEBUG-statement
     3844##################################
     3845## CHECKING  OPTIONAL ARGUMENTS ##
     3846##################################
     3847
     3848#-----------------#
     3849# DEBUG-statement #
     3850#-----------------#
    38463851DEBUG=no
    38473852echo "$as_me:$LINENO: checking if DEBUG-mode should be enabled" >&5
     
    38533858fi;
    38543859
    3855 if test "$DEBUG" = "no"; then
     3860if test x$DEBUG = xno; then
    38563861        echo "no"
    3857         echo " -> Setting debuglevel to 1. Like this you can still see errors."
    3858         DEBUG=1
    3859 elif test "$DEBUG" = yes; then
     3862        echo " -> Setting debuglevel to 3. (orxonox is still in Development. It really is needed."
     3863        DEBUG=3
     3864elif test x$DEBUG = xyes; then
    38603865        echo "yes"
    3861         echo " -> Setting debuglevel to 3. HARD DEBUG MODE!!."
    3862         DEBUG=3
    3863 else
    3864         echo "yes set to $DEBUG"
     3866        echo " -> Setting debuglevel to 4. HARD DEBUG MODE!!."
     3867        DEBUG=4
     3868else
     3869        echo "yes: setting debuglevel to to $DEBUG"
    38653870fi
    38663871
     
    38723877
    38733878
    3874 ## GTK-disabled
     3879#--------------#
     3880# GTK-disabled #
     3881#--------------#
    38753882echo "$as_me:$LINENO: checking if gtk should be enabled" >&5
    38763883echo $ECHO_N "checking if gtk should be enabled... $ECHO_C" >&6
     
    38833890  def_gtk=yes
    38843891fi;
    3885 if test "$def_gtk" = yes; then
     3892if test x$def_gtk = xyes; then
    38863893  echo "yes"
    38873894fi
    3888 if test "$def_gtk" = no; then
     3895if test x$def_gtk = xno; then
    38893896  echo "no"
    38903897fi
    38913898
    3892 ## gThread-disabled
     3899#------------------#
     3900# gThread-disabled #
     3901#------------------#
    38933902echo "$as_me:$LINENO: checking if gThread should be enabled" >&5
    38943903echo $ECHO_N "checking if gThread should be enabled... $ECHO_C" >&6
     
    39013910  def_gthread=yes
    39023911fi;
    3903 if test "$def_gthread" = yes; then
     3912if test x$def_gthread = xyes; then
    39043913  echo "yes"
    39053914fi
    3906 if test "$def_gthread" = no; then
     3915if test x$def_gthread = xno; then
    39073916  echo "no"
    39083917fi
    39093918
    3910 ## pthread-disabled
     3919#------------------#
     3920# pthread-disabled #
     3921#------------------#
    39113922echo "$as_me:$LINENO: checking if pthread should be enabled" >&5
    39123923echo $ECHO_N "checking if pthread should be enabled... $ECHO_C" >&6
     
    39193930  def_pthread=yes
    39203931fi;
    3921 if test "$def_pthread" = yes; then
     3932if test x$def_pthread = xyes; then
    39223933  echo "yes"
    39233934fi
    3924 if test "$def_pthread" = no; then
     3935if test x$def_pthread = xno; then
    39253936  echo "no"
    39263937fi
    39273938
    3928 ## libCurl disabled?
     3939#------------------#
     3940# libCurl-disabled #
     3941#------------------#
    39293942echo "$as_me:$LINENO: checking if libcURL should be enabled" >&5
    39303943echo $ECHO_N "checking if libcURL should be enabled... $ECHO_C" >&6
     
    39373950  def_curl=yes
    39383951fi;
    3939 if test "$def_curl" = yes; then
     3952if test x$def_curl = xyes; then
    39403953  echo "yes"
    39413954fi
    3942 if test "$def_curl" = no; then
     3955if test x$def_curl = xno; then
    39433956  echo "no"
    39443957fi
    39453958
    3946 ### SDL_image-disable
     3959#-------------------#
     3960# SDL_image-disable #
     3961#-------------------#
    39473962def_sdl_image=yes
    39483963echo "$as_me:$LINENO: checking if SDL_image should be enabled" >&5
     
    39543969  def_sdl_image=no
    39553970fi;
    3956 if test "$def_sdl_image" = yes; then
     3971if test x$def_sdl_image = xyes; then
    39573972  echo "yes"
    39583973fi
    3959 if test "$def_sdl_image" = no; then
     3974if test x$def_sdl_image = xno; then
    39603975  echo "no"
    39613976fi
    3962 
    3963 
    3964 ### SubProject-enable
    3965 def_sdl_image=yes
     3977#-------------------#
     3978# SubProject-enable #
     3979#-------------------#
     3980def_sub_projects=no
    39663981echo "$as_me:$LINENO: checking if the SubProjects should be built" >&5
    39673982echo $ECHO_N "checking if the SubProjects should be built... $ECHO_C" >&6
     
    39713986  def_sub_projects=yes
    39723987fi;
    3973 if test "$def_sub_projects" = yes; then
     3988if test x$def_sub_projects = xyes; then
    39743989  echo "yes"
    39753990fi
    3976 if test "$def_sub_projects" = no; then
     3991if test x$def_sub_projects = xno; then
    39773992  echo "no"
    39783993fi
     
    39884003
    39894004
    3990 ## PROGRAMM CHECKING
    3991 # checking for Doxygen
     4005#######################
     4006## PROGRAMM CHECKING ##
     4007## 3. party Programs ##
     4008#######################
     4009
     4010#----------------------#
     4011# checking for Doxygen #
     4012#----------------------#
    39924013# Extract the first word of "doxygen", so it can be a program name with args.
    39934014set dummy doxygen; ac_word=$2
     
    40404061
    40414062
    4042 ### CHECKING FOR SYSTEM ###
     4063#########################
     4064## CHECKING FOR SYSTEM ##
     4065#########################
     4066## here the system is checked, and openGL is included
     4067## also checking for SDL on differen Systems
    40434068
    40444069echo "$as_me:$LINENO: checking for System" >&5
     
    40464071## checking for openGL-environment and other sys-specific parameters
    40474072case "$target" in
    4048 ### WINDOWS ###
     4073#---------#
     4074# WINDOWS #
     4075#---------#
    40494076  *-*-mingw32*)
    40504077echo "mingw-WINDOWS detected"
     
    43494376fi
    43504377
    4351     if test "$FOUND_opengl32" = "yes" ; then
     4378    if test x$FOUND_opengl32 = xyes ; then
    43524379        LIBS="$LIBS -lopengl32"
    43534380    else
     
    45784605fi
    45794606
    4580     if test "$FOUND_glu32" = "yes" ; then
     4607    if test x$FOUND_glu32 = xyes ; then
    45814608        LIBS="$LIBS -lGLU32"
    45824609    else
     
    46514678fi
    46524679
    4653     if test $FOUND_mingw32 = "yes"; then
     4680    if test x$FOUND_mingw32 = xyes; then
    46544681        LIBS="$LIBS -lmingw32"
    46554682    fi
     
    48734900fi
    48744901
    4875     if test "$FOUND_sdlmain" = "yes" ; then
     4902    if test x$FOUND_sdlmain = xyes ; then
    48764903       LIBS="$LIBS -lsdlmain"
    48774904    else
     
    49444971fi
    49454972
    4946     if test "$FOUND_sdl" = "yes" ; then
     4973    if test x$FOUND_sdl = xyes ; then
    49474974       LIBS="$LIBS -lsdl"
    49484975    else
     
    49554982
    49564983    ;;
    4957 
    4958 ### LINUX ###
     4984#-------#
     4985# LINUX #
     4986#-------#
    49594987 *-*-linux*)
    49604988echo "Linux detected"
     
    51895217fi
    51905218
    5191    if test "$FOUND_GL" = "yes" ; then
     5219   if test x$FOUND_GL = xyes ; then
    51925220     LIBS="$LIBS -lGL"
    51935221   else
     
    54235451fi
    54245452
    5425     if test "$FOUND_GLU" = "yes" ; then
     5453    if test x$FOUND_GLU = xyes ; then
    54265454      LIBS="$LIBS -lGLU"
    54275455    else
     
    56525680fi
    56535681
    5654      if test "$FOUND_SDL" = "yes" ; then
     5682     if test x$FOUND_SDL = xyes ; then
    56555683       LIBS="$LIBS -lSDL"
    56565684     else
     
    56725700#    LIBS="$LIBS $SDL_LIBS"
    56735701    ;;
    5674 
    5675 ### OS X ###
     5702#-----------#
     5703# MAC -OS X #
     5704#-----------#
    56765705 *darwin*)
    5677 echo "OS X detected"
     5706 echo "OS X detected"
    56785707
    56795708 osX="yes"
     
    59936022   LIBS="$LIBS -framework OpenGL"
    59946023
     6024       SDL_CFLAGS=`sdl-config --cflags`
     6025       SDL_LIBS=`sdl-config --libs`
     6026       CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
     6027       LIBS="$LIBS $SDL_LIBS"
     6028
     6029
    59956030# checking for SDL-headers
    59966031#    AC_CHECK_HEADERS(SDL/SDL.h ,,
     
    60046039#      )
    60056040
    6006        SDL_CFLAGS=`sdl-config --cflags`
    6007        SDL_LIBS=`sdl-config --libs`
    6008        CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
    6009        LIBS="$LIBS $SDL_LIBS"
    60106041
    60116042    ;;
     
    60176048
    60186049
    6019 ## check for SDL_Image
    6020 if test "$def_sdl_image" = "yes"; then
     6050###################################
     6051## CHECKING FOR HEADERS AND LIBS ##
     6052###################################
     6053
     6054#-----------#
     6055# SDL_Image #
     6056#-----------#
     6057if test x$def_sdl_image = xyes; then
    60216058# checking for SDL_image-headers
    60226059
     
    61736210
    61746211fi
    6175 if test "$def_sdl_image" = "yes"; then
     6212if test x$def_sdl_image = xyes; then
    61766213# checking for SDL_image-lib
    61776214  echo "$as_me:$LINENO: checking for main in -lSDL_image" >&5
     
    62376274fi
    62386275
    6239      if test "$FOUND_SDL_image" = "yes" ; then
     6276     if test x$FOUND_SDL_image = xyes ; then
    62406277       LIBS="$LIBS -lSDL_image"
    62416278     else
     
    62486285fi
    62496286
    6250 
    6251 if test "$def_sdl_image" = "no"; then
    6252  ## checking for libjpeg
     6287## case no SDL-image:
     6288if test x$def_sdl_image = xno; then
     6289#---------#
     6290# libjpeg #
     6291#---------#
    62536292
    62546293for ac_header in jpeglib.h
     
    64036442done
    64046443
    6405  if test $jpegHeader = "no"; then
     6444 if test xjpegHeader = xno; then
    64066445        echo " not including jpeg."
    64076446 else
     
    64686507fi
    64696508
    6470     if test "$FOUND_jpeg" = "yes" ; then
     6509    if test x$FOUND_jpeg = xyes ; then
    64716510      LIBS="$LIBS -ljpeg"
    64726511    else
     
    64796518 fi
    64806519
    6481  ## checking for libpng
     6520#--------#
     6521# libpng #
     6522#--------#
    64826523
    64836524for ac_header in png.h
     
    66326673done
    66336674
    6634  if test $pngHeader = "no"; then
     6675 if test x$pngHeader = xno; then
    66356676        echo " not including png."
    66366677 else
     
    66976738fi
    66986739
    6699     if test "$FOUND_png" = "yes" ; then
     6740    if test x$FOUND_png = xyes ; then
    67006741      LIBS="$LIBS -lpng"
    67016742    else
     
    67096750fi
    67106751
    6711 ## checking for GTK
    6712 if test "$def_gtk" = yes; then
     6752#-----#
     6753# GTK #
     6754#-----#
     6755if test x$def_gtk = xyes; then
    67136756
    67146757        #PKG_CHECK_MODULES(GTK2, gtk+-2.0 >= 2.0.3 gthread-2.0 >= 2.0.3, have_gtk2=yes, have_gtk2=no)
     
    67436786
    67446787
    6745 ## checking for gThread
    6746 if test "$def_gthread" = yes; then
     6788#---------#
     6789# gThread #
     6790#---------#
     6791if test x$def_gthread = xyes; then
    67476792
    67486793        echo "$as_me:$LINENO: checking for gthread" >&5
     
    67766821
    67776822
    6778 ## checking for libcURL
    6779 if test "$def_curl" = yes; then
     6823#---------#
     6824# libcURL #
     6825#---------#
     6826if test x$def_curl = xyes; then
    67806827
    67816828
     
    70207067
    70217068
    7022 
    7023 ##checking for pthread
     7069#---------#
     7070# pthread #
     7071#---------#
    70247072if test x$def_pthread = xyes ; then
    70257073 if test x$have_gthread = xyes ; then
     
    72387286fi
    72397287
    7240    if test "$FOUND_pthread" = "yes" ; then
     7288   if test x$FOUND_pthread = xyes ; then
    72417289      LIBS="$LIBS -lpthread"
    72427290   fi
    72437291 fi
    72447292fi
     7293
     7294
    72457295# FIXME: Replace `main' with a function in `-lm':
    72467296
     
    81298179
    81308180
     8181######################
     8182## OUTPUT CONFIGURE ##
     8183######################
    81318184                                                  ac_config_files="$ac_config_files Makefile src/Makefile src/importer/Makefile src/console/Makefile src/gui/Makefile"
    81328185
Note: See TracChangeset for help on using the changeset viewer.