2 dnl Copyright 2002 Free Software Foundation, Inc.
4 dnl This file is part of GNU Radio
6 dnl GNU Radio is free software; you can redistribute it and/or modify
7 dnl it under the terms of the GNU General Public License as published by
8 dnl the Free Software Foundation; either version 3, or (at your option)
11 dnl GNU Radio is distributed in the hope that it will be useful,
12 dnl but WITHOUT ANY WARRANTY; without even the implied warranty of
13 dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 dnl GNU General Public License for more details.
16 dnl You should have received a copy of the GNU General Public License
17 dnl along with GNU Radio; see the file COPYING. If not, write to
18 dnl the Free Software Foundation, Inc., 51 Franklin Street,
19 dnl Boston, MA 02110-1301, USA.
22 dnl FIXME probably need to add linker flag too...
24 AC_DEFUN([GR_SET_GPROF],[
25 dnl Check for --with-gprof
26 AC_MSG_CHECKING([whether user wants gprof])
28 [ --with-gprof Turn on gprof profiling],
29 [], [ with_gprof=no ])
30 AC_MSG_RESULT($with_gprof)
32 dnl gprof profiling flags for the two main compilers
33 cc_profiling_flags="-pg"
34 cxx_profiling_flags="-pg"
35 ld_profiling_flags="-pg"
36 if test $with_gprof = yes
40 LF_CHECK_CC_FLAG($cc_profiling_flags)
44 LF_CHECK_CXX_FLAG($cxx_profiling_flags)
49 AC_DEFUN([GR_SET_PROF],[
50 dnl Check for --with-prof
51 AC_MSG_CHECKING([whether user wants prof])
53 [ --with-prof Turn on prof profiling],
55 AC_MSG_RESULT($with_prof)
57 dnl prof profiling flags for the two main compilers
58 cc_profiling_flags="-p"
59 cxx_profiling_flags="-p"
60 ld_profiling_flags="-p"
61 if test $with_prof = yes
65 LF_CHECK_CC_FLAG($cc_profiling_flags)
69 LF_CHECK_CXX_FLAG($cxx_profiling_flags)