source: trunk/configure.ac @ 157

Last change on this file since 157 was 157, checked in by Jari Häkkinen, 17 years ago

Spelling error on gnuplot in previous commit.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.5 KB
Line 
1## Process this file with autoconf to produce a configure script.
2##
3## $Id: configure.ac 157 2006-08-14 18:53:21Z jari $
4##
5## If you grabbed the source from subversion you should, at top-level,
6## execute:
7##          ./bootstrap
8
9# Copyright (C) 2005, 2006 Jari Häkkinen, Peter Johansson
10#
11# This file is part of svndigest, http://lev.thep.lu.se/trac/svndigest
12#
13# svndigest is free software; you can redistribute it and/or modify it
14# under the terms of the GNU General Public License as published by
15# the Free Software Foundation; either version 2 of the License, or
16# (at your option) any later version.
17#
18# svndigest is distributed in the hope that it will be useful, but
19# WITHOUT ANY WARRANTY; without even the implied warranty of
20# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
21# General Public License for more details.
22#
23# You should have received a copy of the GNU General Public License
24# along with this program; if not, write to the Free Software
25# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
26# 02111-1307, USA.
27
28AC_PREREQ(2.57)
29AC_INIT([[svndigest]],[pre0.5],[jari@thep.lu.se])
30AC_CONFIG_SRCDIR([lib/File.h])
31AC_CONFIG_AUX_DIR([autotools])
32AC_PREFIX_DEFAULT([/usr/local])
33test $prefix = NONE && prefix=/usr/local
34
35AM_CONFIG_HEADER([config.h])
36AM_INIT_AUTOMAKE($PACKAGE_NAME,$PACKAGE_VERSION,$PACKAGE_BUGREPORT)
37
38# Checks for programs.
39AC_PROG_CPP
40AC_PROG_CXX
41AC_PROG_INSTALL
42AC_PROG_RANLIB
43AC_CHECK_PROG([GNUPLOT],[gnuplot],[ok])
44
45# -Wno-long-long is needed to suppress compiler diagnostics regarding
46# using extension beyond the C++ standard (usage of non C++ standard
47# 'long long' types).
48CXXFLAGS="-g -O -Wall -pedantic -Wno-long-long"
49CPPFLAGS="-DHAVE_INLINE=1"
50# Use these flags when compiling a production library
51#CXXFLAGS="-O3 -Wall -pedantic -Wno-long-long"
52#CPPFLAGS="-DNDEBUG -DGSL_RANGE_CHECK_OFF -DHAVE_INLINE=1"
53
54AC_ARG_WITH(apr,
55  [  --with-apr=DIR          prefix for installed APR or path to APR build
56                          tree [[PREFIX]]],
57  [ APR_PATH=$withval ],
58  [ APR_PATH=$prefix ])
59AC_SUBST(APR_PATH)
60
61AC_ARG_WITH(svn,
62  [  --with-svn=DIR          prefix for svn developer files [[PREFIX]]],
63  [ SVN_PATH=$withval ],
64  [ SVN_PATH=$prefix ])
65AC_SUBST(SVN_PATH)
66
67AC_CONFIG_FILES([Makefile
68                bin/Makefile
69                lib/Makefile
70                test/Makefile])
71
72AC_OUTPUT
73
74test "$GNUPLOT" = "ok" || \
75     AC_MSG_WARN([Gnuplot was not found. svndigest will compile
76     without gnuplot but will throw an exception at runtime. Please
77     install gnuplot (available for a wide range of operating systems
78     at http://www.gnuplot.info).])
Note: See TracBrowser for help on using the repository browser.