Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 3788 in orxonox.OLD


Ignore:
Timestamp:
Apr 13, 2005, 10:27:59 AM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: profiling support enabled

Location:
orxonox/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • orxonox/trunk/configure

    r3592 r3788  
    870870                          differently on the many modules of orxonox.
    871871  --enable-sub-projects   also builds the subProjects while make from srcdir
     872  --enable-profile        builds orxonox with profiling support
    872873  --enable-documentation  also builds the sDocumentation while make from
    873874                          srcdir
     
    40314032
    40324033
     4034#-------------------#
     4035# Profiling Enabled #
     4036#-------------------#
     4037def_profiling=no
     4038echo "$as_me:$LINENO: checking if Profiling should be enabled" >&5
     4039echo $ECHO_N "checking if Profiling should be enabled... $ECHO_C" >&6
     4040# Check whether --enable-profile or --disable-profile was given.
     4041if test "${enable_profile+set}" = set; then
     4042  enableval="$enable_profile"
     4043  def_profiling=yes
     4044fi;
     4045if test x$def_profiling = xyes; then
     4046
     4047
     4048if test x$def_sub_projects = xyes; then
     4049  SUB_PROJECTS_TRUE=
     4050  SUB_PROJECTS_FALSE='#'
     4051else
     4052  SUB_PROJECTS_TRUE='#'
     4053  SUB_PROJECTS_FALSE=
     4054fi
     4055
     4056  echo "yes"
     4057  CXXFLAGS="$CXXFLAGS -pg"
     4058fi
     4059if test x$def_profiling = xno; then
     4060  echo "no"
     4061fi
     4062
     4063
    40334064#----------------------#
    40344065# Documentation-enable #
     
    83498380Usually this means the macro was only invoked conditionally." >&5
    83508381echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
     8382Usually this means the macro was only invoked conditionally." >&2;}
     8383   { (exit 1); exit 1; }; }
     8384fi
     8385if test -z "${SUB_PROJECTS_TRUE}" && test -z "${SUB_PROJECTS_FALSE}"; then
     8386  { { echo "$as_me:$LINENO: error: conditional \"SUB_PROJECTS\" was never defined.
     8387Usually this means the macro was only invoked conditionally." >&5
     8388echo "$as_me: error: conditional \"SUB_PROJECTS\" was never defined.
    83518389Usually this means the macro was only invoked conditionally." >&2;}
    83528390   { (exit 1); exit 1; }; }
  • orxonox/trunk/configure.ac

    r3592 r3788  
    172172AM_CONDITIONAL(SUB_PROJECTS, test x$def_sub_projects = xyes)
    173173
     174#-------------------#
     175# Profiling Enabled #
     176#-------------------#
     177def_profiling=no
     178AC_MSG_CHECKING([if Profiling should be enabled])
     179AC_ARG_ENABLE([profile],
     180        AC_HELP_STRING( [--enable-profile],
     181        [builds orxonox with profiling support]), [def_profiling=yes])
     182if test x$def_profiling = xyes; then
     183AM_CONDITIONAL(SUB_PROJECTS, test x$def_sub_projects = xyes)
     184  echo "yes"
     185  CXXFLAGS="$CXXFLAGS -pg"
     186fi
     187if test x$def_profiling = xno; then
     188  echo "no"
     189fi
     190
     191
    174192#----------------------#
    175193# Documentation-enable #
Note: See TracChangeset for help on using the changeset viewer.