OSDN Git Service

Renamed ChangeLog to ChangeLog.2.
[ccunit/ccunit.git] / config / arg_enable_coverage.m4
1 ##                         -*- Autoconf -*-
2 dnl    Copyright (C) 2003, 2010 TSUTSUMI Kikuo.
3 dnl    This file is part of the CCUnit Library.
4
5 dnl    The CCUnit Library is free software; you can redistribute it and/or
6 dnl    modify it under the terms of the GNU Lesser General Public License
7 dnl    as published by the Free Software Foundation; either version 2.1 of
8 dnl    the License, or (at your option) any later version.
9
10 dnl    The CCUnit Library is distributed in the hope that it will be
11 dnl    useful, but WITHOUT ANY WARRANTY; without even the implied warranty
12 dnl    of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13 dnl    GNU Lesser General Public License for more details.
14
15 dnl    You should have received a copy of the GNU Lesser General Public
16 dnl    License along with the CCUnit Library; see the file COPYING.LESSER.
17 dnl    If not, write to the Free Software Foundation, Inc., 59 Temple
18 dnl    Place - Suite 330, Boston, MA 02111-1307, USA.  
19
20 dnl $Id$
21
22 AC_DEFUN([ARG_ENABLE_COVERAGE],
23 [AC_PREREQ(2.50)dnl
24 AC_ARG_ENABLE(coverage,
25   AC_HELP_STRING([--enable-coverage],[enable coverage testing]),
26   [ if test ${enableval-yes} = yes; then
27       COVERAGEFLAGS="-fprofile-arcs -ftest-coverage"
28     fi ])
29 AC_SUBST(COVERAGEFLAGS)])