~ubuntu-branches/debian/sid/freeciv/sid

« back to all changes in this revision

Viewing changes to m4/gprof.m4

  • Committer: Package Import Robot
  • Author(s): Clint Adams, Karl Goetz, Clint Adams
  • Date: 2011-08-28 22:40:00 UTC
  • mfrom: (1.2.19 upstream)
  • Revision ID: package-import@ubuntu.com-20110828224000-j2r1erewlem25dox
Tags: 2.3.0-1
[ Karl Goetz ]
* New upstream version.
* Fix themes_sdl_use_system_fonts.diff to apply cleanly on 2.3.0
* Massage work_around_unity_induced_breakage.diff to get it
  applying to the new codebase (The patch assumes commits made
  after 2.3.0 was tagged upstream).

[ Clint Adams ]
* Fudge build system to think there is no libtool mismatch.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
AC_DEFUN([FC_GPROF], [
 
2
AC_ARG_ENABLE(gprof,
 
3
[  --enable-gprof            turn on profiling [[default=no]]],
 
4
[case "${enableval}" in
 
5
  yes) enable_gprof=yes ;;
 
6
  no)  enable_gprof=no ;;
 
7
  *)   AC_MSG_ERROR([bad value ${enableval} for --enable-gprof]) ;;
 
8
esac], [enable_gprof=no])
 
9
 
 
10
dnl -g is added by AC_PROG_CC if the compiler understands it
 
11
if test "x$enable_gprof" = "xyes"; then
 
12
  FC_C_FLAGS([-pg], [], [EXTRA_DEBUG_CFLAGS])
 
13
  FC_CXX_FLAGS([-pg], [], [EXTRA_DEBUG_CXXFLAGS])
 
14
fi
 
15
])