dnl----------------------------------------------------------------------------- dnl Copyright (c) 2004 Media Development Loan Fund dnl dnl This file is part of the LiveSupport project. dnl http://livesupport.campware.org/ dnl To report bugs, send an e-mail to bugs@campware.org dnl dnl LiveSupport is free software; you can redistribute it and/or modify dnl it under the terms of the GNU General Public License as published by dnl the Free Software Foundation; either version 2 of the License, or dnl (at your option) any later version. dnl dnl LiveSupport is distributed in the hope that it will be useful, dnl but WITHOUT ANY WARRANTY; without even the implied warranty of dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the dnl GNU General Public License for more details. dnl dnl You should have received a copy of the GNU General Public License dnl along with LiveSupport; if not, write to the Free Software dnl Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA dnl dnl dnl Author : $Author: maroy $ dnl Version : $Revision: 1.4 $ dnl Location : $Source: /home/paul/cvs2svn-livesupport/newcvsrepo/livesupport/modules/db/etc/configure.ac,v $ dnl----------------------------------------------------------------------------- dnl----------------------------------------------------------------------------- dnl NOTE: Run all configure related scripts from the tmp directory of the dnl project. dnl This is due to the fact that configure spreads a lot of trash around, dnl like atom4te cache directories, config.* files, etc. into the directory dnl it is being run from. We clearly don't want these in our base directory. dnl----------------------------------------------------------------------------- AC_INIT(Db, 1.0, bugs@campware.org) AC_PREREQ(2.59) AC_COPYRIGHT([Copyright (c) 2004 Media Development Loan Fund under the GNU GPL]) AC_REVISION($Revision: 1.4 $) AC_CONFIG_SRCDIR(../include/LiveSupport/Db/ConnectionManagerInterface.h) AC_CONFIG_HEADERS(configure.h) AC_PROG_CXX() AC_CHECK_HEADERS(getopt.h) dnl----------------------------------------------------------------------------- dnl enable compilaton for code coverage data dnl----------------------------------------------------------------------------- AC_SUBST(COVERAGE_CXXFLAGS) AC_ARG_ENABLE( coverage, [ --enable-coverage enable code coverage data generaton (no) ], ENABLE_COVERAGE=${enableval}, ENABLE_COVERAGE="no" ) if test "x${ENABLE_COVERAGE}" == "xyes" ; then COVERAGE_CXXFLAGS="-fprofile-arcs -ftest-coverage" AC_MSG_RESULT([compiling in code coverage mode]) else AC_MSG_RESULT([not compiling in code coverage mode]) fi AC_CONFIG_FILES(../Makefile:../etc/Makefile.in) AC_OUTPUT()